query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
5aff895d40baf960d2a8f14040fbe15e
PPApplication.logE("[IN_BROADCAST] EditorProfilesActivity.refreshGUIBroadcastReceiver", "xxx"); boolean refresh = intent.getBooleanExtra(RefreshActivitiesBroadcastReceiver.EXTRA_REFRESH, true);
[ { "docid": "54c1e5aff2abc280d651e4405b1fb422", "score": "0.6886388", "text": "@Override\n public void onReceive( Context context, Intent intent ) {\n boolean refreshIcons = intent.getBooleanExtra(RefreshActivitiesBroadcastReceiver.EXTRA_REFRESH_ICONS, false);\n long profileId = intent.getLongExtra(PPApplication.EXTRA_PROFILE_ID, 0);\n long eventId = intent.getLongExtra(PPApplication.EXTRA_EVENT_ID, 0);\n // not change selection in editor if refresh is outside editor\n EditorProfilesActivity.this.refreshGUI(/*refresh,*//* true,*/ refreshIcons, false, profileId, eventId);\n }", "title": "" } ]
[ { "docid": "547b8b79a30a9a396e7db231d421a40a", "score": "0.6514965", "text": "@Override\n // All onXyz() callbacks are single threaded\n public void onReceive(Context context, Intent intent) {\n String statusMsg = intent.getStringExtra(UpdateIntent.STATUS_MSG_PAYLOAD);\n if (statusMsg != null) {\n Log.d(\"Broadcast information\", statusMsg);\n updateStatusBar(statusMsg);\n } else if (scheduler != null) {\n initializeStatusBar();\n }\n\n String statsMsg = intent.getStringExtra(UpdateIntent.STATS_MSG_PAYLOAD);\n if (statsMsg != null) {\n updateStatsBar(statsMsg);\n }\n }", "title": "" }, { "docid": "4512e41d6680b0ae3b7620879fe7d68d", "score": "0.6498236", "text": "@Override // android.content.BroadcastReceiver\n public void onReceive(Context context, Intent intent) {\n final String content;\n if (RomUpdateHelper.DEBUG) {\n Log.d(RomUpdateHelper.TAG, \"Filter = \" + RomUpdateHelper.this.mFilterName + \", onReceive intent = \" + intent);\n }\n if (intent != null) {\n try {\n ArrayList<String> configs = intent.getStringArrayListExtra(\"ROM_UPDATE_CONFIG_LIST\");\n if (configs != null && configs.contains(RomUpdateHelper.this.mFilterName) && content != null && RomUpdateHelper.this.mListener != null) {\n RomUpdateHelper.this.mHandler.post(new Runnable() {\n /* class com.oppo.romupdate.RomUpdateHelper.AnonymousClass1.AnonymousClass1 */\n\n public void run() {\n if (RomUpdateHelper.this.mListener != null) {\n RomUpdateHelper.this.mListener.onUpdateInfoChanged(content);\n }\n }\n });\n }\n } catch (Exception e) {\n Log.e(RomUpdateHelper.TAG, \"onReceive\" + RomUpdateHelper.this.mFilterName, e);\n }\n }\n }", "title": "" }, { "docid": "a7b2f18e0cd86584f658711bb3b337a8", "score": "0.6131339", "text": "@Override\r\n public void onReceive(Context context, Intent intent) {\r\n boolean succ = intent.getBooleanExtra(\"success\", false);\r\n Log.d(\"Succ\", \"got intent: \"+String.valueOf(succ));\r\n if (succ){\r\n Toast.makeText(getApplicationContext(), \"Connected to Moodlight!\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "title": "" }, { "docid": "a53d820cdf2633d999304620bdbaa332", "score": "0.61020195", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().matches(BROADCAST_ACTION)) {\n LocationManager locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n //Check if GPS is turned ON or OFF\n if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n Log.e(\"About GPS\", \"GPS is Enabled in your device\");\n// updateGPSStatus(\"GPS is Enabled in your device\");\n } else {\n //If GPS turned OFF show Location Dialog\n new Handler().postDelayed(sendUpdatesToUI, 10);\n showSettingDialog();\n// updateGPSStatus(\"GPS is Disabled in your device\");\n Log.e(\"About GPS\", \"GPS is Disabled in your device\");\n }\n\n }\n }", "title": "" }, { "docid": "a6f534a2c3ba896bfac54eb01b6ac77c", "score": "0.6059132", "text": "@Override\n public void run() {\n\n Context appContext= appContextWeakRef.get();\n\n if (appContext != null) {\n PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakeLock = null;\n try {\n if (powerManager != null) {\n wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, PPApplication.PACKAGE_NAME + \":ScreenOnOffBroadcastReceiver_onReceive\");\n wakeLock.acquire(10 * 60 * 1000);\n }\n\n //if (PPApplication.logEnabled()) {\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"start of handler post\");\n //}\n\n// PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"action=\"+action);\n\n switch (action) {\n case Intent.ACTION_SCREEN_ON: {\n /*if (PPApplication.logEnabled()) {\n PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"screen on\");\n PPApplication.logE(\"[XXX] ScreenOnOffBroadcastReceiver.onReceive\", \"restartAllScanners\");\n }*/\n\n// PowerManager pm = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n// if (pm != null) {\n// PPApplication.isScreenOn = pm.isInteractive();\n// PPApplication.logE(\"[IN_BROADCAST] ScreenOnOffBroadcastReceiver.onReceive (from PowerManager)\", \"isScreenOn=\"+PPApplication.isScreenOn);\n// }\n// else {\n PPApplication.isScreenOn = true;\n// PPApplication.logE(\"[IN_BROADCAST] ScreenOnOffBroadcastReceiver.onReceive\", \"isScreenOn=\"+PPApplication.isScreenOn);\n// }\n\n /*\n Profile profile = DatabaseHandler.getInstance(appContext).getActivatedProfile();\n //if (profile != null)\n // PPApplication.logE(\"******** ScreenOnOffBroadcastReceiver.onReceive\", \"profile._screenOnPermanent=\"+profile._screenOnPermanent);\n if ((profile != null) && (profile._screenOnPermanent == 1))\n ActivateProfileHelper.createKeepScreenOnView(appContext);\n else\n ActivateProfileHelper.removeKeepScreenOnView();\n */\n\n // restart scanners for screen on when any is enabled\n boolean restart = false;\n if (ApplicationPreferences.applicationEventLocationEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventWifiEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventBluetoothEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventMobileCellEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventOrientationEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventBackgroundScanningEnableScanning)\n restart = true;\n if (restart) {\n //PPApplication.logE(\"[RJS] ScreenOnOffBroadcastReceiver.onReceive\", \"restart all scanners for SCREEN_ON\");\n // for screenOn=true -> used only for Location scanner - start scan with GPS On\n //PPApplication.setBlockProfileEventActions(true);\n PPApplication.restartAllScanners(appContext, false);\n }\n break;\n }\n case Intent.ACTION_SCREEN_OFF: {\n /*if (PPApplication.logEnabled()) {\n PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"screen off\");\n PPApplication.logE(\"[XXX] ScreenOnOffBroadcastReceiver.onReceive\", \"restartAllScanners\");\n }*/\n\n// PowerManager pm = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n// if (pm != null) {\n// PPApplication.isScreenOn = pm.isInteractive();\n// PPApplication.logE(\"[IN_BROADCAST] ScreenOnOffBroadcastReceiver.onReceive (from PowerManager)\", \"isScreenOn=\"+PPApplication.isScreenOn);\n// }\n// else {\n PPApplication.isScreenOn = false;\n// PPApplication.logE(\"[IN_BROADCAST] ScreenOnOffBroadcastReceiver.onReceive\", \"isScreenOn=\"+PPApplication.isScreenOn);\n// }\n\n // call this, because device my not be locked immediately after screen off\n KeyguardManager keyguardManager = (KeyguardManager) appContext.getSystemService(Context.KEYGUARD_SERVICE);\n if (keyguardManager != null) {\n boolean secureKeyguard = keyguardManager.isKeyguardSecure();\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"secureKeyguard=\" + secureKeyguard);\n\n if (secureKeyguard) {\n int lockDeviceTime = Settings.Secure.getInt(appContext.getContentResolver(), \"lock_screen_lock_after_timeout\", 0);\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"lockDeviceTime=\"+lockDeviceTime);\n if (lockDeviceTime > 0)\n LockDeviceAfterScreenOffBroadcastReceiver.setAlarm(lockDeviceTime, appContext);\n }\n }\n\n //ActivateProfileHelper.removeKeepScreenOnView();\n\n //PPApplication.logE(\"[RJS] ScreenOnOffBroadcastReceiver.onReceive\", \"restart all scanners for SCREEN_OFF\");\n\n // for screen off restart scanners only when it is required for any scanner\n boolean restart = false;\n if (ApplicationPreferences.applicationEventBackgroundScanningEnableScanning &&\n ApplicationPreferences.applicationEventBackgroundScanningScanOnlyWhenScreenIsOn)\n restart = true;\n if (ApplicationPreferences.applicationEventLocationEnableScanning &&\n ApplicationPreferences.applicationEventLocationScanOnlyWhenScreenIsOn)\n restart = true;\n else if (ApplicationPreferences.applicationEventWifiEnableScanning &&\n ApplicationPreferences.applicationEventWifiScanOnlyWhenScreenIsOn)\n restart = true;\n else if (ApplicationPreferences.applicationEventBluetoothEnableScanning &&\n ApplicationPreferences.applicationEventBluetoothScanOnlyWhenScreenIsOn)\n restart = true;\n else if (ApplicationPreferences.applicationEventMobileCellEnableScanning &&\n ApplicationPreferences.applicationEventMobileCellScanOnlyWhenScreenIsOn)\n restart = true;\n else if (ApplicationPreferences.applicationEventOrientationEnableScanning &&\n ApplicationPreferences.applicationEventOrientationScanOnlyWhenScreenIsOn)\n restart = true;\n if (restart) {\n // for screenOn=false -> used only for Location scanner - use last usage of GPS for scan\n //PPApplication.setBlockProfileEventActions(true);\n PPApplication.restartAllScanners(appContext, false);\n }\n\n final Handler handler1 = new Handler(appContext.getMainLooper());\n handler1.post(() -> {\n// PPApplication.logE(\"[IN_THREAD_HANDLER] PPApplication.startHandlerThread\", \"START run - from=ScreenOnOffBroadcastReceiver.onReceive (2)\");\n //if (PhoneProfilesService.getInstance() != null) {\n if (PPApplication.lockDeviceActivity != null) {\n try {\n PPApplication.lockDeviceActivity.finish();\n } catch (Exception e) {\n PPApplication.recordException(e);\n }\n }\n //}\n });\n\n /*if (!Event.getGlobalEventsRunning()) {\n if (PhoneProfilesService.getInstance() != null)\n PhoneProfilesService.getInstance().showProfileNotification(false);\n }*/\n break;\n }\n case Intent.ACTION_USER_PRESENT:\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"screen unlock\");\n\n /*if (Build.VERSION.SDK_INT < 26) {\n if (ApplicationPreferences.notificationShowInStatusBar &&\n ApplicationPreferences.notificationHideInLockScreen) {\n if (PhoneProfilesService.getInstance() != null)\n PhoneProfilesService.getInstance().showProfileNotification(false/);\n }\n }*/\n\n // change screen timeout\n final int screenTimeout = ApplicationPreferences.prefActivatedProfileScreenTimeout;\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"screenTimeout=\" + screenTimeout);\n if ((screenTimeout > 0) && (Permissions.checkScreenTimeout(appContext))) {\n if (PPApplication.screenTimeoutHandler != null) {\n PPApplication.screenTimeoutHandler.post(() -> ActivateProfileHelper.setScreenTimeout(screenTimeout, appContext));\n }\n }\n\n // enable/disable keyguard\n try {\n // start PhoneProfilesService\n /*Intent serviceIntent = new Intent(appContext, PhoneProfilesService.class);\n serviceIntent.putExtra(PhoneProfilesService.EXTRA_ONLY_START, false);\n serviceIntent.putExtra(PhoneProfilesService.EXTRA_SWITCH_KEYGUARD, true);\n PPApplication.startPPService(appContext, serviceIntent);*/\n Intent commandIntent = new Intent(PhoneProfilesService.ACTION_COMMAND);\n //commandIntent.putExtra(PhoneProfilesService.EXTRA_ONLY_START, false);\n commandIntent.putExtra(PhoneProfilesService.EXTRA_SWITCH_KEYGUARD, true);\n PPApplication.runCommand(appContext, commandIntent);\n } catch (Exception e) {\n PPApplication.recordException(e);\n }\n\n /*if ((wakeLock != null) && wakeLock.isHeld()) {\n try {\n wakeLock.release();\n } catch (Exception ignored) {}\n }\n return;*/\n break;\n }\n\n if (Event.getGlobalEventsRunning()) {\n //PPApplication.logE(\"****** EventsHandler.handleEvents\", \"START run - from=ScreenOnOffBroadcastReceiver.onReceive\");\n\n// PPApplication.logE(\"[EVENTS_HANDLER_CALL] ScreenOnOffBroadcastReceiver.onReceive\", \"sensorType=SENSOR_TYPE_SCREEN\");\n //PPApplication.setBlockProfileEventActions(true);\n EventsHandler eventsHandler = new EventsHandler(appContext);\n eventsHandler.handleEvents(EventsHandler.SENSOR_TYPE_SCREEN);\n\n //PPApplication.logE(\"****** EventsHandler.handleEvents\", \"END run - from=ScreenOnOffBroadcastReceiver.onReceive\");\n }\n\n if (action.equals(Intent.ACTION_SCREEN_ON) || action.equals(Intent.ACTION_USER_PRESENT)) {\n /*if (Build.VERSION.SDK_INT < 26) {\n if (ApplicationPreferences.notificationShowInStatusBar &&\n ApplicationPreferences.notificationHideInLockScreen) {\n if (PhoneProfilesService.getInstance() != null)\n PhoneProfilesService.getInstance().showProfileNotification(false/);\n }\n } else {*/\n if (PhoneProfilesService.getInstance() != null)\n PhoneProfilesService.getInstance().showProfileNotification(false, true, false);\n //}\n }\n\n /*if (PPApplication.logEnabled()) {\n PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"end of handler post\");\n PPApplication.logE(\"PPApplication.startHandlerThread\", \"END run - from=ScreenOnOffBroadcastReceiver.onReceive\");\n }*/\n } catch (Exception e) {\n// PPApplication.logE(\"[IN_THREAD_HANDLER] PPApplication.startHandlerThread\", Log.getStackTraceString(e));\n PPApplication.recordException(e);\n } finally {\n if ((wakeLock != null) && wakeLock.isHeld()) {\n try {\n wakeLock.release();\n } catch (Exception ignored) {\n }\n }\n }\n }\n }", "title": "" }, { "docid": "f5941b4491a607a7e7ce6c73dbda4416", "score": "0.6043497", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String s = intent.getAction();\n System.out.println(s);\n if (s.equals(Constants.ApkUpdatebiz_ACTION)) {\n String updateMsg = intent.getStringExtra(\"updatemsg\");\n String filePath = intent.getStringExtra(\"filepath\");\n Log.d(\"HomeActivity\",\n (new StringBuilder(\"ApkUpdateReciver msg =\"))\n .append(updateMsg).append(\" ,path =\")\n .append(filePath).toString());\n updatDialog = createUpdateDialog(updateMsg, filePath);\n updatDialog\n .setOnShowListener(new DialogInterface.OnShowListener() {\n\n @Override\n public void onShow(DialogInterface dialog) {\n // TODO Auto-generated method stub\n\n // TODO Auto-generated method stub\n updatDialog.getButton(\n DialogInterface.BUTTON_NEUTRAL)\n .requestFocus();\n\n }\n });\n updatDialog.show();\n removeStickyBroadcast(intent);\n }\n }", "title": "" }, { "docid": "3743f6b3de7e77f52011c2fda5f12487", "score": "0.60148305", "text": "public void mo4718a(Intent intent) {\n if (intent.getAction().equals(\"com.igexin.sdk.action.snlrefresh\") && C0514k.f1321m) {\n String stringExtra = intent.getStringExtra(\"groupid\");\n String stringExtra2 = intent.getStringExtra(\"responseSNLAction\");\n boolean z = C0618g.f1638i;\n boolean z2 = C0618g.f1639j;\n String stringExtra3 = intent.getStringExtra(\"branch\");\n boolean a = C1151a.m4739a(System.currentTimeMillis());\n long a2 = C0628q.m2446a() + C0628q.m2447b();\n if (C0618g.f1633d.equals(stringExtra) && \"open\".equals(stringExtra3) && z && z2 && !a) {\n Intent intent2 = new Intent();\n intent2.setAction(stringExtra2);\n intent2.putExtra(\"groupid\", C0618g.f1633d);\n intent2.putExtra(\"branch\", \"open\");\n intent2.putExtra(\"pkgname\", C0618g.f1635f.getPackageName());\n intent2.putExtra(\"classname\", C0535e.m2034a().mo4360a(C0618g.f1635f));\n intent2.putExtra(\"startup_time\", C0618g.f1595T);\n intent2.putExtra(\"network_traffic\", a2);\n C0618g.f1635f.sendBroadcast(intent2);\n }\n } else if (intent.getAction().equals(C0618g.f1596U) && C0514k.f1321m) {\n String stringExtra4 = intent.getStringExtra(\"groupid\");\n String stringExtra5 = intent.getStringExtra(\"branch\");\n if (C0618g.f1633d.equals(stringExtra4) && \"open\".equals(stringExtra5)) {\n C0669i iVar = new C0669i();\n iVar.mo4730a(intent.getStringExtra(\"groupid\"));\n iVar.mo4733b(intent.getStringExtra(\"pkgname\"));\n iVar.mo4735c(intent.getStringExtra(\"classname\"));\n iVar.mo4729a(intent.getLongExtra(\"startup_time\", 0));\n iVar.mo4732b(intent.getLongExtra(\"network_traffic\", 0));\n this.f1799f.add(iVar);\n }\n } else if (intent.getAction().equals(\"com.igexin.sdk.action.snlretire\") && C0514k.f1321m) {\n String stringExtra6 = intent.getStringExtra(\"groupid\");\n String stringExtra7 = intent.getStringExtra(\"branch\");\n if (C0618g.f1633d.equals(stringExtra6) && \"open\".equals(stringExtra7)) {\n C0661a aVar = new C0661a();\n aVar.mo4702a(EnumC0602c.retire);\n C0617f.m2395a().mo4629h().mo4719a(aVar);\n }\n }\n }", "title": "" }, { "docid": "375ff02417ea50d8fef85287ac20d060", "score": "0.59981614", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n/*\n Log.d(\"onReceive\",intent.getStringExtra(Constants.EXTENDED_DATA_STATUS));\n MainActivity.textView.setText(intent.getStringExtra(Constants.EXTENDED_DATA_STATUS));*/\n }", "title": "" }, { "docid": "05d0830915683699339dca61f403c9e0", "score": "0.59514606", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context, \"Booting Completed - mycamera app receiver\", Toast.LENGTH_LONG).show();\n Log.d(\"BCAST_RECV\", \"Booting Completed - mycamera app receiver\");\n }", "title": "" }, { "docid": "c3e0bf8d83e07f3113475058b134d4fe", "score": "0.5906442", "text": "@Override\n public void onReceive(Context context, Intent intent)\n {\n Logger.log(tag, \"Получено сообщение: \" + intent.getAction());\n this.context = context;\n appData = AppData.readFromStorage(context, tag);\n gson = new Gson();\n\n switch (intent.getAction())\n {\n case Constants.ACTION_UPDATE:\n {\n if (appData != null) update();\n break;\n }\n case Constants.ACTION_BOOT_COMPLETED:\n {\n //Logger.exc(tag, \"YAHOOO\");\n RegisterUpdates.register(context);\n if (appData != null) update();\n break;\n }\n }\n }", "title": "" }, { "docid": "de2da01abf95f690753b343d5f1f94c7", "score": "0.59025025", "text": "protected void gotmessagessuccesfully(Context context, boolean b) {\n\t\t \t final SharedPreferences prefs = getGCMPreferences(context);\n\t\t \t //int appVersion = getAppVersion(context);\n\t\t \t //Log.i(Config.TAG, \"Saving regId on app version \" + appVersion);\n\t\t \t SharedPreferences.Editor editor = prefs.edit();\n\t\t \t editor.putBoolean(\"gotall\", b);\n\t\t \t \n\t\t \t //editor.putInt(PROPERTY_APP_VERSION, appVersion);\n\t\t \t editor.commit();\n\t\t\t}", "title": "" }, { "docid": "5f71621b7d58e85dafafb0a7380f6c54", "score": "0.5883994", "text": "public void onReceive(Context context, Intent intent){\n Log.w(\"ConnectionReceiver\", \"\" + intent.getAction()); // log warning\n if (intent.getAction().equals(\"com.example.broadcastapplication.SOME_ACTION\")) { //check intent status\n\n Toast.makeText(context, \"Action:\" + intent.getAction(), Toast.LENGTH_SHORT).show(); // make toast\n }\n }", "title": "" }, { "docid": "5cba9da66ee3a5561dceceb394f9cd3a", "score": "0.5868803", "text": "@Override\n public void onResume() {\n super.onResume();\n\n resInfoBroadcast = new UpdateData();\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(RES_DATA);\n getActivity().registerReceiver(resInfoBroadcast, intentFilter);\n\n }", "title": "" }, { "docid": "ecc2a24ac572d1ba1480ca9690d6df13", "score": "0.5844075", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n intent.getBundleExtra(EXTRA_SCAN_MODE);\n\n intent.getBundleExtra(EXTRA_PREVIOUS_SCAN_MODE);\n\n\n }", "title": "" }, { "docid": "d91cb46bf18ad8e1a28ba62909c4d773", "score": "0.583061", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n\n\n switch (action) {\n\n case Constants.CUSTOM_ACTION_ONE:\n\n Toast.makeText(context, \"Static: Custom Action one\", Toast.LENGTH_SHORT).show();\n\n break;\n\n case Intent.ACTION_AIRPLANE_MODE_CHANGED:\n boolean isAirpaneModeAcive = intent.getBooleanExtra(\"state\", false);\n\n if (isAirpaneModeAcive)\n Toast.makeText(context, \"Static: Airplane mode on\", Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(context, \"Static: Airplane mode off\", Toast.LENGTH_SHORT).show();\n break;\n\n }\n\n\n }", "title": "" }, { "docid": "184bb6263a526e9a75471aa29205d186", "score": "0.58283675", "text": "@Override\n protected void onHandleIntent(Intent intent) {\n PowerManager pm = (PowerManager) getSystemService(POWER_SERVICE);\n mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, \"My Service\");\n mWakeLock.acquire();\n\n // check the global background data setting\n ConnectivityManager cm = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n if (!cm.getActiveNetworkInfo().isConnected()) {\n stopSelf();\n return;\n }\n\n remoteDBHelper = new RemoteDBHelper(context);\n ArrayList<UpdateData> checkUpdates;\n\n sharedPref = PreferenceManager.getDefaultSharedPreferences(context);\n String last_update = sharedPref.getString(getApplicationContext().getString(R.string.last_update), \"2001-01-01 00:00:00\");\n Log.e(\"date in service\", \"\" + last_update);\n checkUpdates = remoteDBHelper.update(last_update);\n\n Intent i = new Intent(\"jason.networkapp.android.NOTIFY\");\n if (checkUpdates.size() > 0) {\n sendBroadcast(i);\n }\n stopSelf();\n }", "title": "" }, { "docid": "d3d83f4f3e7c414c1716c795bdeff0df", "score": "0.5813788", "text": "@Override\n public void onReceive(Context arg0, Intent arg1) {\n\n if(arg1.getStringExtra(\"GPS\")!=null){\n\n String loc= arg1.getStringExtra(\"GPS\");\n String dis= arg1.getStringExtra(\"DISTANCE\");\n GPSacc=Float.parseFloat(loc);\n UpdateGPS(GPSacc);\n\n Double dDis = new Double(dis);\n if(dDis <= 100) {\n new ResumeClock().execute();\n } else {\n Toast.makeText(getApplicationContext(),\n \"GPS detected!\\n\"\n + \"Accurate location: \" + String.valueOf(loc)+\"Meter\\n\"\n + \"Distance: \" + String.valueOf(dis)+\"Meter\",\n Toast.LENGTH_SHORT).show();\n }\n\n }\n\n\n }", "title": "" }, { "docid": "3633657731d5216d8b86c79b20870eeb", "score": "0.5804706", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n \tupdateDataConnStatus();\n \n //update profile list\n initSlpProfileList();\n updateSlpProfile(mAgpsMgr.getProfile());\n\n }", "title": "" }, { "docid": "0a81ca546f60d2ac80a431887003ae1d", "score": "0.5795206", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n }", "title": "" }, { "docid": "031db9bcd7d95b97ea56e64166d67184", "score": "0.57943386", "text": "@Override\n\tpublic void onReceive(Context arg0, Intent arg1) {\n\t//\tif(!flog){\n\t\t//\tflog = true;\n\t\t\t//arg0.registerReceiver(new FinishBrodcast(MyApplication.getInstance().getMainactivity()), new IntentFilter(\"com.markt.fnish\"));\n\t\t\tif(!Util.isAppOnForeground()){\n\t\t\t\tif((System.currentTimeMillis()-RapitUtile.getUpdate(RapitUtile.PULL_KEY))>1000*60*60*12){\n\t\t\t\t\tif(MyApplication.getInstance().getMainactivity()!=null){\n\t\t\t\t\t\tMyApplication.getInstance().getMainactivity().finish();\n\t\t\t\t\t}\n\t\t\t\t\t\tIntent intents = new Intent(arg0, ProuthouseActivity.class);\n\t\t\t\t\t\tintents.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\targ0.startActivity(intents);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "a602b5060a0f873ab3ae4e78aa5e64cf", "score": "0.57733756", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n switch (action) {\n case DownloadService.BROADCAST_ING_ACTION:\n Timber.d(\"\");\n String groupId = intent.getStringExtra(DownloadService.BROADCAST_CURRENT_DOWNLOADING);\n progressDialog.setMessage(\"Downloading \" + groupId);\n break;\n case DownloadService.BROADCAST_FINISH_ACTION:\n Timber.d(\"receive broadcast\");\n if (intent.getIntExtra(DownloadService.BROADCAST_PARA, 0) == DownloadService.BROADCAST_NO_NEED_UPDATE) {\n Toast.makeText(context, \"already update, no need to update\", Toast.LENGTH_SHORT).show();\n }\n progressDialog.dismiss();\n groupFragment = GroupFragment.newInstance();\n fragmentManager.beginTransaction()\n .replace(R.id.frame_content, groupFragment)\n .commit();\n\n LocalBroadcastManager.getInstance(getBaseContext()).unregisterReceiver(downloadReceiver);\n break;\n }\n }", "title": "" }, { "docid": "abf9e88fd90f48c8ff435438aa8991d9", "score": "0.5771235", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n\n }", "title": "" }, { "docid": "5e6706ef4ec541745d0040e7e5dfb6c9", "score": "0.5761408", "text": "@Override\n public void onReceive(Context ctx, Intent intent) {\n // If the incoming intent contains an update\n if (ActivityRecognitionResult.hasResult(intent)) {\n // Get the update\n ActivityRecognitionResult result =\n ActivityRecognitionResult.extractResult(intent);\n // Get the most probable activity\n DetectedActivity mostProbableActivity =\n result.getMostProbableActivity();\n /*\n * Get the probability that this activity is the\n * the user's actual activity\n */\n int confidence = mostProbableActivity.getConfidence();\n /*\n * Get an integer describing the type of activity\n */\n int activityType = mostProbableActivity.getType();\n String activityName = getNameFromType(activityType);\n Log.d(\"activiteit\", activityName);\n MainActivity mainac = (MainActivity) ctx;\n if(mainac!=null){\n mainac.activityState = \"\\\"activity\\\":\\\"\" + activityName + \"\\\"\";\n }\n\n /*\n * At this point, you have retrieved all the information\n * for the current update. You can display this\n * information to the user in a notification, or\n * send it to an Activity or Service in a broadcast\n * Intent.\n */\n }\n }", "title": "" }, { "docid": "8dd360a4fddb318ca689dcdc545f769c", "score": "0.57530594", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(context);\n\n if (mAuth.getCurrentUser() != null) {\n sharedPref.edit().putBoolean(\"UPDATE_LOCATION_RUNNING\",true).apply();\n context.startService(new Intent(context,UpdateLocationService.class));\n } else {\n sharedPref.edit().putBoolean(\"UPDATE_LOCATION_RUNNING\",false).apply();\n\n }\n }", "title": "" }, { "docid": "f5be83b7e55997ec60086e62b201eb16", "score": "0.57505816", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n }", "title": "" }, { "docid": "f5be83b7e55997ec60086e62b201eb16", "score": "0.57505816", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n }", "title": "" }, { "docid": "f5be83b7e55997ec60086e62b201eb16", "score": "0.57505816", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n }", "title": "" }, { "docid": "9d445a48170c3e17d78329d67695eae2", "score": "0.575019", "text": "public void UpdateActivity(){\n final Intent intent = new Intent(\"EXTRA_DATA\");\n intent.putExtra(\"Update\",\"\"+COUNT);\n sendBroadcast(intent);\n System.out.println(\"mmmm UpdateActivity\");\n }", "title": "" }, { "docid": "6213e183de25524bc07b4fc87ec0e0fa", "score": "0.5748099", "text": "private void registerAndLoadStatus() {\n\t\tmEquIntent = registerReceiver(mEquReceiver, new IntentFilter(PowerampAPI.ACTION_EQU_CHANGED));\n\t\tif(LOG) Log.w(TAG, \"registerAndLoadStatus mEquIntent=>\" + mEquIntent);\n\t}", "title": "" }, { "docid": "0f68d780284e992664f3d31e17e9ee9e", "score": "0.5746957", "text": "public void g(final Context context, Intent intent) {\n if (context != null && intent != null) {\n final String decrypt = Rijndael.decrypt(intent.getStringExtra(\"accId\"));\n String decrypt2 = Rijndael.decrypt(intent.getStringExtra(\"accKey\"));\n final String decrypt3 = Rijndael.decrypt(intent.getStringExtra(\"token\"));\n final String decrypt4 = Rijndael.decrypt(intent.getStringExtra(\"other_push_type\"));\n final String decrypt5 = Rijndael.decrypt(intent.getStringExtra(\"other_push_token\"));\n TLogger.i(\"PushServiceBroadcastHandler\", \"binder OtherPush token with accid = \" + decrypt + \" token = \" + decrypt3 + \" otherPushType = \" + decrypt4 + \" otherPushToken = \" + decrypt5);\n StringBuilder sb = new StringBuilder();\n sb.append(decrypt);\n sb.append(\"otherpush\");\n String string = SharePrefsUtil.getString(context, sb.toString(), \"\");\n if (!j.b(string)) {\n long j = SharePrefsUtil.getLong(context, decrypt + \"otherpushts\", -1);\n if (!string.equals(decrypt3 + \":\" + decrypt5) || Math.abs(System.currentTimeMillis() - j) <= 86400000) {\n TLogger.ii(\"PushServiceBroadcastHandler\", \"OtherToken or Mid changed , go on binder\");\n } else {\n TLogger.ii(\"PushServiceBroadcastHandler\", \"Already binder OtherPush succeed token with accid = \" + decrypt + \" token = \" + decrypt3 + \" otherPushType = \" + decrypt4 + \" otherPushToken = \" + decrypt5);\n return;\n }\n }\n c.a().a(Long.parseLong(decrypt), decrypt2, decrypt4, decrypt5, new com.tencent.android.tpush.service.c.a() {\n /* class com.tencent.android.tpush.service.a.AnonymousClass7 */\n\n @Override // com.tencent.android.tpush.service.c.a\n public void a(int i, String str, com.tencent.android.tpush.service.protocol.d dVar) {\n if (i == 0) {\n TLogger.ii(\"PushServiceBroadcastHandler\", \">> bind OtherPushToken success ack with [accId = \" + decrypt + \" , rsp = \" + i + \"] token = \" + decrypt3 + \" otherPushType = \" + decrypt4 + \" otherPushToken = \" + decrypt5);\n Context context = context;\n StringBuilder sb = new StringBuilder();\n sb.append(decrypt);\n sb.append(\"otherpush\");\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(decrypt3);\n sb3.append(\":\");\n sb3.append(decrypt5);\n SharePrefsUtil.setString(context, sb2, sb3.toString());\n Context context2 = context;\n SharePrefsUtil.setLong(context2, decrypt + \"ts\", System.currentTimeMillis());\n return;\n }\n TLogger.ee(\"PushServiceBroadcastHandler\", \">> updateOtherPushToken ack failed responseCode=\" + i);\n }\n\n @Override // com.tencent.android.tpush.service.c.a\n public void b(int i, String str, com.tencent.android.tpush.service.protocol.d dVar) {\n TLogger.ee(\"PushServiceBroadcastHandler\", \"@@ updateOtherPushToken onMessageSendFailed \" + i + \",\" + str);\n }\n });\n }\n }", "title": "" }, { "docid": "72acb60b4940f8654478ab8a3df89162", "score": "0.5745671", "text": "private void invokeServiceForBackgroundUpdate() {\n\n calendar = (GregorianCalendar) Calendar.getInstance();\n if (Consts.IS_DEBUG_LOG) {\n Log.d(Consts.LOG_TAG, \"starting invokeServiceForBackgroundUpdate\" + Calendar.getInstance().getTime());\n }\n\n Intent myIntent = new Intent(MainActivity.this, BackgroundSyncService.class);\n Messenger messenger = new Messenger(new Handler() {\n public void handleMessage(Message message) {\n if (Consts.IS_DEBUG_LOG)\n Log.d(Consts.LOG_TAG, \"handleMessage invokeServiceForBackgroundUpdate \" + Calendar.getInstance().getTime());\n Object path = message.obj;\n if (message.arg1 == RESULT_OK) {\n // Toast.makeText(SplashActivity.this, \"Done Sync\", Toast.LENGTH_LONG).show();\n if (Consts.IS_DEBUG_LOG)\n Log.d(Consts.LOG_TAG, \"Sync: Messenger: handleMessage\");\n\n } else {\n // Toast.makeText(SplashActivity.this, \"sync failed.\", Toast.LENGTH_LONG).show();\n if (Consts.IS_DEBUG_LOG)\n Log.d(Consts.LOG_TAG, \"Sync Messenger: handleMessage failed\");\n }\n\n }\n\n ;\n });\n myIntent.putExtra(\"MESSENGER\", messenger);\n //myIntent.setData(Uri.parse(\"http://\"));//\n myIntent.putExtra(\"appName\", \"some data_item\");\n pendingIntent = PendingIntent.getService(MainActivity.this, 0,\n myIntent, 0);\n\n alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n alarmManager.setRepeating(AlarmManager.RTC, calendar.getTimeInMillis(),\n timeIntervel, pendingIntent);\n }", "title": "" }, { "docid": "ca7b23870e7914d970dede18426d9480", "score": "0.5745136", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Bundle extras = intent.getExtras();\n //if there are extras lets doing something\n if (extras != null)\n {\n //lets get the new phone state\n String state = extras.getString(TelephonyManager.EXTRA_STATE);\n Log.d(\"PhoneReceiver\", state);\n\n //lets find out if the phone is ringing\n if(state.equals(TelephonyManager.EXTRA_STATE_RINGING))\n {\n //if it is ringing get the number\n String phoneNumber = extras.getString(TelephonyManager.EXTRA_INCOMING_NUMBER);\n Log.d(\"PhoneReceiver\", phoneNumber);\n }\n }\n }", "title": "" }, { "docid": "83f9c5b07b45273e9bdb419cd93696af", "score": "0.573604", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (AnnouncementsConstants.DISABLED) {\n return;\n }\n \n BackgroundService.runIntentInService(context, intent, AnnouncementsBroadcastService.class);\n }", "title": "" }, { "docid": "c8371987f221de696db755d721b88b13", "score": "0.57339627", "text": "@Override\n protected void onResume() {\n super.onResume();\n LocalBroadcastManager.getInstance(this).registerReceiver(bR,new IntentFilter(MESSAGE));\n }", "title": "" }, { "docid": "f103732d35a20a2d3fe3a39a10fa7410", "score": "0.5733256", "text": "private void receiveGPSBroadcast() {\n\n IntentFilter intentFilter = new IntentFilter(LocationService.BROADCAST_ACTION);\n\n receiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(LocationService.BROADCAST_ACTION) &&\n intent.hasExtra(\"Latitude\") && intent.hasExtra(\"Longitude\") && intent.hasExtra(\"Speed\") ) {\n double lat = intent.getDoubleExtra(\"Latitude\", 0);\n double lon = intent.getDoubleExtra(\"Longitude\", 0);\n int speed_kmh = intent.getIntExtra(\"Speed\", 0);\n\n latLoc.setText(\"\" + lat);\n lonLoc.setText(\"\" + lon);\n speed.setText(\"\" + speed_kmh);\n\n /*Toast.makeText(context,\n \"Lat: \" + lat + \" Lon: \" + lon + \" Provider: \" + provider,\n Toast.LENGTH_SHORT).show();*/\n }\n }\n };\n\n registerReceiver(receiver, intentFilter);\n\n }", "title": "" }, { "docid": "2e7f9072493369e0f5c016a295d450fe", "score": "0.5731542", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Action: \"+intent.getAction()+\"\\n\");\n sb.append(intent.getExtras().getString(Intent.EXTRA_TEXT));\n String log = sb.toString();\n Log.d(\"Received\", log);\n //Toast.makeText(context, log, Toast.LENGTH_LONG).show();\n //Intent myIntent = new Intent(MyBroadcastReceiver.class, Main2Activity.class);\n Intent i = new Intent(context, Main2Activity.class);\n i.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);\n i.putExtra(\"data\", log);\n context.startActivity(i);\n }", "title": "" }, { "docid": "c916bb47ecabb1e8a8685c3566ce9c5e", "score": "0.5710102", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n }", "title": "" }, { "docid": "c916bb47ecabb1e8a8685c3566ce9c5e", "score": "0.5710102", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n }", "title": "" }, { "docid": "671569b3383b88ebcbeedc9132c9b8a4", "score": "0.5709306", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Log.d(\"TAG!\",\"onReceive: \"+intent.getStringExtra(\"ACTIVITY\"));\n currentMode = intent.getStringExtra(\"ACTIVITY\");\n //makeToast(\"Mode: \" + currentMode);\n if(previousMode.equals(\"drive\") && currentMode.equals(\"no\")) {\n parkMode = true;\n if (ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(mContext, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return; }\n Location myLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n parkedLLTag = new LatLng(myLocation.getLatitude(), myLocation.getLongitude());\n Log.d(\"TAG!\",\"onReceive: Tagging\");\n }\n previousMode = currentMode;\n if(currentMode.equals(\"drive\"))\n parkMode = false;\n }", "title": "" }, { "docid": "1a30f127bcfc4e7a3e144547d4815c2a", "score": "0.5703986", "text": "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tif (intent.getAction().equals(\"RefreshRemind\")) {\n\t\t\t\tint remindNum = intent.getIntExtra(\"num\", 0);\n\t\t\t\tif (remindNum != 0) {\n\t\t\t\t\tremindTv_my.setVisibility(View.VISIBLE);\n\t\t\t\t\tremindTv_my.setText(remindNum + \"\");\n\t\t\t\t} else {\n\t\t\t\t\tremindTv_my.setVisibility(View.GONE);\n\t\t\t\t}\n\n\t\t\t} else if (intent.getAction().equals(\"RefreshContact\")) {\n\t\t\t\tm_timestampBean = m_timestampDb.selectTimestamp();\n\t\t\t\tif (\"0\".equals(m_timestampBean.getDepartmentTimestamp())\n\t\t\t\t\t\t&& \"0\".equals(m_timestampBean.getPersonTimestamp())) {\n\t\t\t\t\t// initContactData();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "1aaf516152f2d6045190af8ffb26456d", "score": "0.5675366", "text": "private void sendState() {\n Intent intent = new Intent(\"CoreService\");\n intent.putExtra(\"Staff\", true);\n intent.putExtra(\"State\", serviceState);\n sendBroadcast(intent);\n }", "title": "" }, { "docid": "d39f1081ae28e9cd04cb04c775ed7054", "score": "0.5674989", "text": "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e41f52c20d5ea089a228801b4f392b1f", "score": "0.5674438", "text": "@Override\n\t\t\t public void onReceive(Context context, Intent intent) {\n\t\t\t\t\tif (MetaWatchService.connectionState != ConnectionState.CONNECTED) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Preferences.logging) Log.d(MetaWatch.TAG, \"Lost connexion to watch, unregistering TIME_TICK\");\n\t\n\t\t\t\t\t\tcontext.unregisterReceiver(mReceiver);\n\t\t\t\t\t\tMetaWatch.analogFaceAppStarted=false; // app will get restarted and reregistered next time\n\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t \tif (Preferences.logging) Log.d(MetaWatch.TAG, \"Received TIME_TICK\");\n\t\t\t\t \t\n\t\t\t\t\t\t/*\n\t\t\t\t \t * following is probably not best solution: could not get the more logical call\n\t\t\t\t \t * \tApplication.updateAppMode(context);\n\t\t\t\t \t * nor\n\t\t\t\t \t *\t\tBitmap bitmap = update(context, false, MetaWatchService.watchType);\n\t\t\t\t \t * \tApplication.updateAppMode(context, bitmap);\n\t\t\t\t \t * work properly. Help required\n\t\t\t\t \t */\t\n\t\t\t\t \tBitmap bitmap = update(context, false, MetaWatchService.watchType);\n\t\t\t\t \tProtocol.sendLcdBitmap(bitmap, MetaWatchService.WatchBuffers.APPLICATION);\n\t\t\t\t\t\tProtocol.updateLcdDisplay(MetaWatchService.WatchBuffers.APPLICATION);\n\t\t\t\t\t}\n\t\t\t }", "title": "" }, { "docid": "93444d8894c63d2ffda967375d85465c", "score": "0.5672305", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n SharedPreferences sharedPreferences =\n PreferenceManager.getDefaultSharedPreferences(context);\n\n // this flag shows if the token has been sent to server\n boolean sentToken = sharedPreferences\n .getBoolean(QuickstartPreferences.SENT_TOKEN_TO_SERVER, false);\n if (sentToken) {\n Toast.makeText(getApplicationContext(),\"Token sent to server\",Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(),\"error when fetching token\",Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "2a64652463ba16dacae9cf972536549d", "score": "0.5661715", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n pref = context.getSharedPreferences(\"pulseidpreferences\", MODE_PRIVATE); // 0 - for private mode\n retrieveData(context);\n }", "title": "" }, { "docid": "7ed95b7d41b3a421db19f89b1e8a539b", "score": "0.56592745", "text": "static boolean m3179a(Context context, Intent intent) {\n if (context.getPackageManager().queryBroadcastReceivers(intent, 0).size() > null) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "421da235c5b6de7eff858168c2a51c0d", "score": "0.565448", "text": "private void enableBroadcastReceiver(){\n ComponentName receiver = new ComponentName(this, SmsListener.class);\n PackageManager pm = this.getPackageManager();\n\n pm.setComponentEnabledSetting(receiver,\n PackageManager.COMPONENT_ENABLED_STATE_ENABLED,\n PackageManager.DONT_KILL_APP);\n //Toast.makeText(this, \"Enabled broadcast receiver\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "e4bb9eab0a7cdb6076479fd6868dc039", "score": "0.56533325", "text": "@Override\n public void onResume() {\n this.getActivity().registerReceiver(shareBroadcastReceiver, new IntentFilter(BroadcastConstants.BROADCAST_SHARE));\n\n super.onResume();\n }", "title": "" }, { "docid": "526da4b7ceabbe9117793875a0e78ba9", "score": "0.564994", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent == null)\n return;\n\n if (!PPApplication.getApplicationStarted(true))\n // application is not started\n return;\n\n final String action = intent.getAction();\n if (action == null)\n return;\n\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"before start handler\");\n PPApplication.startHandlerThreadBroadcast(/*\"ScreenOnOffBroadcastReceiver.onReceive\"*/);\n final Handler __handler = new Handler(PPApplication.handlerThreadBroadcast.getLooper());\n __handler.post(new PPApplication.PPHandlerThreadRunnable(context.getApplicationContext()) {\n @Override\n public void run() {\n// PPApplication.logE(\"[IN_THREAD_HANDLER] PPApplication.startHandlerThread\", \"START run - from=ScreenOnOffBroadcastReceiver.onReceive\");\n\n Context appContext= appContextWeakRef.get();\n\n if (appContext != null) {\n PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakeLock = null;\n try {\n if (powerManager != null) {\n wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, PPApplication.PACKAGE_NAME + \":ScreenOnOffBroadcastReceiver_onReceive\");\n wakeLock.acquire(10 * 60 * 1000);\n }\n\n //if (PPApplication.logEnabled()) {\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"start of handler post\");\n //}\n\n// PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"action=\"+action);\n\n switch (action) {\n case Intent.ACTION_SCREEN_ON: {\n /*if (PPApplication.logEnabled()) {\n PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"screen on\");\n PPApplication.logE(\"[XXX] ScreenOnOffBroadcastReceiver.onReceive\", \"restartAllScanners\");\n }*/\n\n// PowerManager pm = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n// if (pm != null) {\n// PPApplication.isScreenOn = pm.isInteractive();\n// PPApplication.logE(\"[IN_BROADCAST] ScreenOnOffBroadcastReceiver.onReceive (from PowerManager)\", \"isScreenOn=\"+PPApplication.isScreenOn);\n// }\n// else {\n PPApplication.isScreenOn = true;\n// PPApplication.logE(\"[IN_BROADCAST] ScreenOnOffBroadcastReceiver.onReceive\", \"isScreenOn=\"+PPApplication.isScreenOn);\n// }\n\n /*\n Profile profile = DatabaseHandler.getInstance(appContext).getActivatedProfile();\n //if (profile != null)\n // PPApplication.logE(\"******** ScreenOnOffBroadcastReceiver.onReceive\", \"profile._screenOnPermanent=\"+profile._screenOnPermanent);\n if ((profile != null) && (profile._screenOnPermanent == 1))\n ActivateProfileHelper.createKeepScreenOnView(appContext);\n else\n ActivateProfileHelper.removeKeepScreenOnView();\n */\n\n // restart scanners for screen on when any is enabled\n boolean restart = false;\n if (ApplicationPreferences.applicationEventLocationEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventWifiEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventBluetoothEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventMobileCellEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventOrientationEnableScanning)\n restart = true;\n else if (ApplicationPreferences.applicationEventBackgroundScanningEnableScanning)\n restart = true;\n if (restart) {\n //PPApplication.logE(\"[RJS] ScreenOnOffBroadcastReceiver.onReceive\", \"restart all scanners for SCREEN_ON\");\n // for screenOn=true -> used only for Location scanner - start scan with GPS On\n //PPApplication.setBlockProfileEventActions(true);\n PPApplication.restartAllScanners(appContext, false);\n }\n break;\n }\n case Intent.ACTION_SCREEN_OFF: {\n /*if (PPApplication.logEnabled()) {\n PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"screen off\");\n PPApplication.logE(\"[XXX] ScreenOnOffBroadcastReceiver.onReceive\", \"restartAllScanners\");\n }*/\n\n// PowerManager pm = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE);\n// if (pm != null) {\n// PPApplication.isScreenOn = pm.isInteractive();\n// PPApplication.logE(\"[IN_BROADCAST] ScreenOnOffBroadcastReceiver.onReceive (from PowerManager)\", \"isScreenOn=\"+PPApplication.isScreenOn);\n// }\n// else {\n PPApplication.isScreenOn = false;\n// PPApplication.logE(\"[IN_BROADCAST] ScreenOnOffBroadcastReceiver.onReceive\", \"isScreenOn=\"+PPApplication.isScreenOn);\n// }\n\n // call this, because device my not be locked immediately after screen off\n KeyguardManager keyguardManager = (KeyguardManager) appContext.getSystemService(Context.KEYGUARD_SERVICE);\n if (keyguardManager != null) {\n boolean secureKeyguard = keyguardManager.isKeyguardSecure();\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"secureKeyguard=\" + secureKeyguard);\n\n if (secureKeyguard) {\n int lockDeviceTime = Settings.Secure.getInt(appContext.getContentResolver(), \"lock_screen_lock_after_timeout\", 0);\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"lockDeviceTime=\"+lockDeviceTime);\n if (lockDeviceTime > 0)\n LockDeviceAfterScreenOffBroadcastReceiver.setAlarm(lockDeviceTime, appContext);\n }\n }\n\n //ActivateProfileHelper.removeKeepScreenOnView();\n\n //PPApplication.logE(\"[RJS] ScreenOnOffBroadcastReceiver.onReceive\", \"restart all scanners for SCREEN_OFF\");\n\n // for screen off restart scanners only when it is required for any scanner\n boolean restart = false;\n if (ApplicationPreferences.applicationEventBackgroundScanningEnableScanning &&\n ApplicationPreferences.applicationEventBackgroundScanningScanOnlyWhenScreenIsOn)\n restart = true;\n if (ApplicationPreferences.applicationEventLocationEnableScanning &&\n ApplicationPreferences.applicationEventLocationScanOnlyWhenScreenIsOn)\n restart = true;\n else if (ApplicationPreferences.applicationEventWifiEnableScanning &&\n ApplicationPreferences.applicationEventWifiScanOnlyWhenScreenIsOn)\n restart = true;\n else if (ApplicationPreferences.applicationEventBluetoothEnableScanning &&\n ApplicationPreferences.applicationEventBluetoothScanOnlyWhenScreenIsOn)\n restart = true;\n else if (ApplicationPreferences.applicationEventMobileCellEnableScanning &&\n ApplicationPreferences.applicationEventMobileCellScanOnlyWhenScreenIsOn)\n restart = true;\n else if (ApplicationPreferences.applicationEventOrientationEnableScanning &&\n ApplicationPreferences.applicationEventOrientationScanOnlyWhenScreenIsOn)\n restart = true;\n if (restart) {\n // for screenOn=false -> used only for Location scanner - use last usage of GPS for scan\n //PPApplication.setBlockProfileEventActions(true);\n PPApplication.restartAllScanners(appContext, false);\n }\n\n final Handler handler1 = new Handler(appContext.getMainLooper());\n handler1.post(() -> {\n// PPApplication.logE(\"[IN_THREAD_HANDLER] PPApplication.startHandlerThread\", \"START run - from=ScreenOnOffBroadcastReceiver.onReceive (2)\");\n //if (PhoneProfilesService.getInstance() != null) {\n if (PPApplication.lockDeviceActivity != null) {\n try {\n PPApplication.lockDeviceActivity.finish();\n } catch (Exception e) {\n PPApplication.recordException(e);\n }\n }\n //}\n });\n\n /*if (!Event.getGlobalEventsRunning()) {\n if (PhoneProfilesService.getInstance() != null)\n PhoneProfilesService.getInstance().showProfileNotification(false);\n }*/\n break;\n }\n case Intent.ACTION_USER_PRESENT:\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"screen unlock\");\n\n /*if (Build.VERSION.SDK_INT < 26) {\n if (ApplicationPreferences.notificationShowInStatusBar &&\n ApplicationPreferences.notificationHideInLockScreen) {\n if (PhoneProfilesService.getInstance() != null)\n PhoneProfilesService.getInstance().showProfileNotification(false/);\n }\n }*/\n\n // change screen timeout\n final int screenTimeout = ApplicationPreferences.prefActivatedProfileScreenTimeout;\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"screenTimeout=\" + screenTimeout);\n if ((screenTimeout > 0) && (Permissions.checkScreenTimeout(appContext))) {\n if (PPApplication.screenTimeoutHandler != null) {\n PPApplication.screenTimeoutHandler.post(() -> ActivateProfileHelper.setScreenTimeout(screenTimeout, appContext));\n }\n }\n\n // enable/disable keyguard\n try {\n // start PhoneProfilesService\n /*Intent serviceIntent = new Intent(appContext, PhoneProfilesService.class);\n serviceIntent.putExtra(PhoneProfilesService.EXTRA_ONLY_START, false);\n serviceIntent.putExtra(PhoneProfilesService.EXTRA_SWITCH_KEYGUARD, true);\n PPApplication.startPPService(appContext, serviceIntent);*/\n Intent commandIntent = new Intent(PhoneProfilesService.ACTION_COMMAND);\n //commandIntent.putExtra(PhoneProfilesService.EXTRA_ONLY_START, false);\n commandIntent.putExtra(PhoneProfilesService.EXTRA_SWITCH_KEYGUARD, true);\n PPApplication.runCommand(appContext, commandIntent);\n } catch (Exception e) {\n PPApplication.recordException(e);\n }\n\n /*if ((wakeLock != null) && wakeLock.isHeld()) {\n try {\n wakeLock.release();\n } catch (Exception ignored) {}\n }\n return;*/\n break;\n }\n\n if (Event.getGlobalEventsRunning()) {\n //PPApplication.logE(\"****** EventsHandler.handleEvents\", \"START run - from=ScreenOnOffBroadcastReceiver.onReceive\");\n\n// PPApplication.logE(\"[EVENTS_HANDLER_CALL] ScreenOnOffBroadcastReceiver.onReceive\", \"sensorType=SENSOR_TYPE_SCREEN\");\n //PPApplication.setBlockProfileEventActions(true);\n EventsHandler eventsHandler = new EventsHandler(appContext);\n eventsHandler.handleEvents(EventsHandler.SENSOR_TYPE_SCREEN);\n\n //PPApplication.logE(\"****** EventsHandler.handleEvents\", \"END run - from=ScreenOnOffBroadcastReceiver.onReceive\");\n }\n\n if (action.equals(Intent.ACTION_SCREEN_ON) || action.equals(Intent.ACTION_USER_PRESENT)) {\n /*if (Build.VERSION.SDK_INT < 26) {\n if (ApplicationPreferences.notificationShowInStatusBar &&\n ApplicationPreferences.notificationHideInLockScreen) {\n if (PhoneProfilesService.getInstance() != null)\n PhoneProfilesService.getInstance().showProfileNotification(false/);\n }\n } else {*/\n if (PhoneProfilesService.getInstance() != null)\n PhoneProfilesService.getInstance().showProfileNotification(false, true, false);\n //}\n }\n\n /*if (PPApplication.logEnabled()) {\n PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"end of handler post\");\n PPApplication.logE(\"PPApplication.startHandlerThread\", \"END run - from=ScreenOnOffBroadcastReceiver.onReceive\");\n }*/\n } catch (Exception e) {\n// PPApplication.logE(\"[IN_THREAD_HANDLER] PPApplication.startHandlerThread\", Log.getStackTraceString(e));\n PPApplication.recordException(e);\n } finally {\n if ((wakeLock != null) && wakeLock.isHeld()) {\n try {\n wakeLock.release();\n } catch (Exception ignored) {\n }\n }\n }\n }\n }\n });\n //PPApplication.logE(\"@@@ ScreenOnOffBroadcastReceiver.onReceive\", \"after start handler\");\n }", "title": "" }, { "docid": "93e21a4c795986a56a50c75b934a328c", "score": "0.56390035", "text": "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tLog.d(\"UpdateViewReceiver\",\"onReceive\");\n\t\t//在实际使用场景中,重写方法\n\t\tString str = intent.getAction();\n\t\tswitch(str){\n\t\tcase UPDATE_VIEW:\n//\t\t\tBundle bundle = intent.getExtras();\n//\t\t\tMarketCommonFragment market = bundle.getParcelable(\"\");\n//\t\t\tmSoftReference = new SoftReference<>(market);\n//\t\t\tmSoftReference.get().updateInMarketHome();\n\t\t\tbreak;\n\n\t\tcase CLOSE_SOCKET:\n\t\t\tbreak;\n\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "fb19e39af8554010ef308225a0f7de95", "score": "0.5634582", "text": "public void onReceive(Context context, Intent intent) {\n BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);\n\n String action = intent.getAction();\n\n if (BluetoothAdapter.ACTION_STATE_CHANGED.equals(action)) {\n String strTmp = m_className;\n int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);\n switch (state) {\n case BluetoothAdapter.STATE_OFF:\n break;\n case BluetoothAdapter.STATE_TURNING_OFF:\n break;\n case BluetoothAdapter.STATE_ON:\n break;\n case BluetoothAdapter.STATE_TURNING_ON:\n break;\n default:\n break;\n }\n }\n else if (BluetoothDevice.ACTION_FOUND.equals(action)) {\n }\n else if (BluetoothDevice.ACTION_ACL_CONNECTED.equals(action)) {\n BTEventsForActivity btEventsForActivity=m_BTEventsForActivity;\n if (btEventsForActivity!=null) {\n BluetoothDevice activeDevice = btEventsForActivity.getActiveBluetoothDevice();\n if ((activeDevice != null) && (activeDevice.equals(device))) {\n btEventsForActivity.m_btStatus.m_stausDeviceConnection = BluetoothStatusClass.STATUS_DEVICE_CONNECTION.CONNECTED;\n Logger.i(m_className, \"ACTION_ACL_CONNECTED, device connected: \" + activeDevice.getAddress());\n ActivityHelper instActivityHelper = ActivityHelper.getInstance();\n DemoMainActivity act = instActivityHelper.getDemoMainActivity();\n if (act!=null) {\n act.refreshBluetoothPrinterTextRunOnUiThread();\n }\n else {\n Logger.w(m_className, \"registerBroadcastReceiver, DemoMainActivity is NULL\");\n }\n }\n }\n }\n else if (BluetoothAdapter.ACTION_DISCOVERY_FINISHED.equals(action)) {\n }\n else if (BluetoothDevice.ACTION_ACL_DISCONNECT_REQUESTED.equals(action)) {\n }\n else if (BluetoothDevice.ACTION_ACL_DISCONNECTED.equals(action)) {\n BTEventsForActivity btEventsForActivity=m_BTEventsForActivity;\n if (btEventsForActivity!=null) {\n BluetoothDevice activeDevice = btEventsForActivity.getActiveBluetoothDevice();\n if ((activeDevice != null) && (activeDevice.equals(device))) {\n btEventsForActivity.m_btStatus.m_stausDeviceConnection = BluetoothStatusClass.STATUS_DEVICE_CONNECTION.DISCONNECTED;\n Logger.i(m_className, \"ACTION_ACL_DISCONNECTED, device disconnected: \" + activeDevice.getAddress());\n ActivityHelper instActivityHelper = ActivityHelper.getInstance();\n DemoMainActivity act = instActivityHelper.getDemoMainActivity();\n if (act!=null) {\n act.refreshBluetoothPrinterTextRunOnUiThread();\n }\n else {\n Logger.w(m_className, \"registerBroadcastReceiver, DemoMainActivity is NULL\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "ef2c5a42faa8b6d6f22c03754e6f723c", "score": "0.56279695", "text": "@Override\r\n\tpublic void onReceive(Context arg0, Intent intent) {\n\t\tLog.d(Constants.APP_TAG, \"receive broadcast in BroadcastReceiver.\");\r\n\t\t\r\n\t\tLog.i(Constants.APP_TAG, intent.getStringExtra(Constants.SEND_MESSAGE));\r\n\t\tToast.makeText(arg0, intent.getStringExtra(Constants.SEND_MESSAGE), Toast.LENGTH_SHORT).show();\r\n\t}", "title": "" }, { "docid": "5aece519206f6f815ad1df2b8cf59ef3", "score": "0.5626588", "text": "@Override\n protected void onResume() {\n super.onResume();\n Log.d(\"E\",\"onResume\");\n updateView();\n if (dataUpdateReceiver == null) dataUpdateReceiver = new DataUpdateReceiver();\n IntentFilter intentFilter = new IntentFilter(\"LocationUpdated\");\n registerReceiver(dataUpdateReceiver, intentFilter);\n }", "title": "" }, { "docid": "8bafc2135232baf968f7eb931a29e830", "score": "0.5619465", "text": "@Override // Tell the compiler that you want to overwrite a certain function\n public void onReceive(Context context, Intent intent) {\n String message = \"Power USB connection: \" //The message we print in our toast to check that we received the broadcast\n + intent.getAction(); //Gets the action of the activity specified by the intent-filter\n\n Toast.makeText(context, message,\n Toast.LENGTH_LONG).show(); // A long toast with our message will be displayed to check if we received the broadcast.\n }", "title": "" }, { "docid": "f6f910500abc62402a080b0dae1f2d9e", "score": "0.56185424", "text": "private static boolean m53051a(Context context, Intent intent) {\n try {\n List<ResolveInfo> queryBroadcastReceivers = context.getPackageManager().queryBroadcastReceivers(intent, 32);\n return queryBroadcastReceivers != null && !queryBroadcastReceivers.isEmpty();\n } catch (Exception unused) {\n return true;\n }\n }", "title": "" }, { "docid": "60d383e4700aaa88c93d6144ba1be91a", "score": "0.5574434", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(AppConstants.REGISTRATION_COMPLETE)) {\n System.out.println(\"registration complete\");\n System.out.println(prefHelper.getFirebase_TOKEN());\n\n } else if (intent.getAction().equals(AppConstants.PUSH_NOTIFICATION)) {\n Bundle bundle = intent.getExtras();\n if (getTitleBar() != null)\n getTitleBar().showNotificationButton(prefHelper.getNotificationCount());\n }\n }", "title": "" }, { "docid": "777b0ec387ecf756b913f58009cc5507", "score": "0.5570018", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n\n Log.d(\"Broadcast\",\"In broadcast receiver\");\n if (Intent.ACTION_SCREEN_ON.equals(intent.getAction()) || Intent.ACTION_SCREEN_OFF.equals(intent.getAction()))\n {\n Log.d(\"In Broadcast class\", \"count incremented = \" + count);\n count++;\n if(count == 5)\n {\n count = 0;\n// Toast.makeText(context, \"MAIN ACTIVITY IS BEING CALLED\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(context, Main2Activity.class);\n// i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP);\n context.startActivity(i);\n }\n }\n }", "title": "" }, { "docid": "01bb0a5a3cb3f3044832c4200061b5ff", "score": "0.5566593", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n\n String s=intent.getStringExtra(\"EXTRA_DOIT\");\n Log.d(TAG, \"onReceive: We Have Connection\"+s);\n// NotificationCompat.Builder builder=(NotificationCompat.Builder) new NotificationCompat.Builder(this).setContentTitle(\"Other App\")\n// .setContentText(\"Come to us\").setSmallIcon(R.mipmap.ic_launcher);\n//\n// Intent intent1=new Intent();\n //throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "title": "" }, { "docid": "d4f88ef779db228489cfc31cb927bd2e", "score": "0.5565451", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n int interval_min = Integer.parseInt(Aware.getSetting(context, Settings.FREQUENCY_IO_METER));\n int samples = Integer.parseInt(Aware.getSetting(context, Settings.SAMPLES_MAGNETOMETER));\n //Check interval and lock status\n if (interval_min > 0 && !lockMagnetometer) {\n if (magnet_counter < samples) { //Process samples\n ContentValues values = (ContentValues) intent.getExtras().get(Magnetometer.EXTRA_DATA);\n double value_x = Double.parseDouble(values.get(Magnetometer_Provider.Magnetometer_Data.VALUES_0).toString());\n double value_y = Double.parseDouble(values.get(Magnetometer_Provider.Magnetometer_Data.VALUES_1).toString());\n double value_z = Double.parseDouble(values.get(Magnetometer_Provider.Magnetometer_Data.VALUES_2).toString());\n magnet_val += Math.sqrt(Math.pow(value_x, 2) + Math.pow(value_y, 2) + Math.pow(value_z, 2));\n magnet_counter++;\n } else {//Infer location type\n //Turn off the sensor for computation\n Aware.setSetting(context, Aware_Preferences.STATUS_MAGNETOMETER, false);\n Intent apply = new Intent(Aware.ACTION_AWARE_REFRESH);\n context.sendBroadcast(apply);\n if (DEBUG) Log.d(\"MagnetSensor\", \"Magnetometer turned off\");\n lockMagnetometer = true;\n if (magnet_counter > 0) {\n avg_magnet = (int) (magnet_val / magnet_counter);\n }\n if (avg_magnet <= 47) {\n if (DEBUG) Log.d(\"MagnetReceiver\", \"Low magnetism, probably inside\");\n decisionMatrix[0][0] = 1;\n decisionMatrix[1][0] = 0.7;\n } else if (avg_magnet > 47 && avg_magnet <= 52) {\n if (DEBUG) Log.d(\"MagnetReceiver\", \"Semindoor values, therefore indoor\");\n decisionMatrix[0][0] = 1;\n decisionMatrix[1][0] = 0.5;\n } else if (avg_magnet > 52 && avg_magnet < 60) {\n if (DEBUG) Log.d(\"MagnetReceiver\", \"High magnetism, therefore outdoors\");\n decisionMatrix[0][0] = 0;\n decisionMatrix[1][0] = 0.7;\n } else {\n if (DEBUG) Log.d(\"MagnetReceiver\", \"Really high magnetism, nearby electronic device therefore indoors\");\n decisionMatrix[0][0] = 1;\n decisionMatrix[1][0] = 0.5;\n }\n decisionMatrix[2][0] = avg_magnet;\n //Restart variables\n avg_magnet = 0;\n magnet_val = 0;\n magnet_counter = 0;\n updateStatus(context);\n }\n }\n }", "title": "" }, { "docid": "ac140c9915ecf03181b7060873d80c02", "score": "0.5560258", "text": "@Override\npublic void onReceive(Context context, Intent intent) {\n}", "title": "" }, { "docid": "8f71d53f5d730acdac43c296e3716caa", "score": "0.5556675", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Cronometer cronometerVariable = new Cronometer(context);\n MainActivity mainActivity = new MainActivity();\n SecondActivity secondActivity = new SecondActivity();\n\n //Checking internet availability\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();\n boolean isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n if (isConnected && intent.getAction()!= null && intent.getAction().equals(\"android.net.conn.CONNECTIVITY_CHANGE\")) {\n Toast.makeText(context, \"Active WiFi\", Toast.LENGTH_SHORT).show();\n long stopTime = System.currentTimeMillis();\n\n if (isScreenOn(context) == false) {\n return;\n }\n //Check if app is in foreground\n if (mainActivity.isActive == true || secondActivity.isActive == true) {\n\n //Using SharedPreferences to save stop time\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putLong(STOP_TIME, stopTime);\n editor.apply();\n\n cronometerVariable.getStopTime();\n\n cronometerVariable.sendOnLine();\n Log.e(\"Receiver\", \"sendOnLine\");\n }\n } else if (!isConnected){\n Toast.makeText(context, \"NOT Active WiFi\", Toast.LENGTH_SHORT).show();\n long startTime = System.currentTimeMillis();\n\n //Check if screen is off or in DOZE mode\n if (isScreenOn(context) == false) {\n return;\n }\n if (mainActivity.isActive == true || secondActivity.isActive == true) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putLong(START_TIME, startTime);\n editor.apply();\n }\n }\n }", "title": "" }, { "docid": "14178d49b30557de7fc566dc5462d419", "score": "0.55505466", "text": "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (getIntent() != null && getIntent().getExtras() != null) {\n\t\t\tint i = getIntent().getIntExtra(\"haveupdate\", -1);\n\t\t\tif (i == 1) {\n\t\t\t\tmcheckupdate.setEnabled(false);\n\t\t\t\tmdownload.setEnabled(true);\n\t\t\t\tmUpdate.setVisibility(View.INVISIBLE);\n\t\t\t\tmUpdatelater.setVisibility(View.INVISIBLE);\n\t\t\t\tmUpdate.setEnabled(false);\n\t\t\t\tmUpdatelater.setEnabled(false);\n\t\t\t\tmdoanLoadPro.setVisibility(View.INVISIBLE);\n\t\t\t\tmdowanloadSize.setVisibility(View.INVISIBLE);\n\t\t\t\tmProgressBar.setVisibility(View.INVISIBLE);\n\t\t\t\tmViewPager.setCurrentItem(0);\n\t\t\t\tmCheckMsg.setText(getResources().getString(\n\t\t\t\t\t\tR.string.main_have_new));\n\t\t\t\tmDownloadMsg.setText(\"\");\n//\t\t\t\tmtitledownload.setBackgroundResource(R.drawable.bg2);\n//\t\t\t\tmtitleupdate.setBackgroundResource(R.drawable.bg);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ca5f8922108e74b9f039d77cb775ccea", "score": "0.55487126", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Bundle extras = intent.getExtras();\n GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(context);\n String messageType = gcm.getMessageType(intent);\n\n if (!extras.isEmpty() &&\n GoogleCloudMessaging.MESSAGE_TYPE_MESSAGE.equals(messageType)) {\n // Check if an activity is visible. If so, then don't show the notification at\n // all; just update the list in realtime.\n // TODO: Might want to do something different if they have a fragment that\n // TODO: isn't the updates list open, like a little shake in the UI or something.\n if (VisibilityManager.isActivityVisible()) {\n\n HTTPFirebase.GET(\"/updates\", context,\n HackTheNorthApplication.Actions.SYNC_UPDATES);\n\n // Otherwise, show a notification.\n } else {\n\n // For simplicity, just give the user a notification, and have them\n // sync up with the new update when they open the app. In the future,\n // we may want to perform the HTTP requests here before showing the\n // user a notification (but we may have to use a Service instead, in\n // that case)\n HTNNotificationManager.sendUpdateNotification(context, intent);\n }\n }\n }", "title": "" }, { "docid": "ab93af7095399071fb2e249c0afd5bd9", "score": "0.5541633", "text": "private void broadcastUpdate(final String action) {\n\n if(action.equals(ACTION_GATT_SERVICES_DISCOVERED)) {\n\n }\n\n mUIHandler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"Broadcasting \" + action, Toast.LENGTH_LONG).show();\n }\n });\n\n //final Intent intent = new Intent(action);\n //sendBroadcast(intent);\n }", "title": "" }, { "docid": "f5d8484b699999f423f7d8f1730a2545", "score": "0.55293804", "text": "String getReceiveActivity();", "title": "" }, { "docid": "83ee5e8973da633faeefb2ea349e9ae2", "score": "0.55250764", "text": "@Override\n public void onReceive(Context context, Intent intent) { //triggered when data is sent from service\n if (intent.getAction().equals(\"LocationUpdated\")) {\n updateView();\n }\n }", "title": "" }, { "docid": "9e804194a47c489c70887dfdf5f7054c", "score": "0.5522062", "text": "private void bindBroadcast() {\n\t\tIntentFilter filter = new IntentFilter();\n\t\tfilter.addAction(Constants.HK_OPEN_AUTO_DETRCT_ACK);//设置属性\n\t\tfilter.addAction(Constants.HK_AUTO_DETRCT_WARN);\n\t\tthis.registerReceiver(mReceiver, filter);\n\t}", "title": "" }, { "docid": "4cbd81db5bbe025c6c3f6a813372602c", "score": "0.5521623", "text": "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n mContext = context;\n mStatusBarManager = (StatusBarManager)mContext.getSystemService(Context.STATUS_BAR_SERVICE);\n\t\tString action = intent.getAction();\n\t\tIntent service = new Intent();\n\t\tservice.setClass(context, SuperScreenShotService.class);\n\t\tmTelephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\t\tmInitialCallState = mTelephonyManager.getCallState();\n\t\tboolean inCall = mInitialCallState != TelephonyManager.CALL_STATE_IDLE;\n\t\tif(inCall)\n\t\t\treturn;\n\t\t// 广播内容\n\t\tLog.d(TAG, \"admas:SuperScreenShotReceiver\");\n\t\tif (SuperScreenShotConstant.BroadCast.LONG_SCREEN_SHOT_SHOW.equals(action)) {\n\t\t\t// 窗口开启\n\t\t\tservice.setAction(SuperScreenShotConstant.Intent.LONG_SCREEN_SHOT_ACTION);\n\t\t\tservice.putExtra(SuperScreenShotConstant.Service.SUPER_SCREEN_SHOT_VISIBILITY,\n\t\t\t\t\ttrue);\n\t\t\tcontext.startService(service);\n disableStatusbar();\n\t\t} else if (SuperScreenShotConstant.BroadCast.LONG_SCREEN_SHOT_DISMISS.equals(action) || action.equals (\"android.intent.action.PHONE_STATE\")) {\n\t\t\t// 窗口关闭\n\t\t\tLog.d(TAG, \"admas:SuperScreenShotReceiver LONG_SCREEN_SHOT_DISMISS\");\n\t\t\tservice.setAction(SuperScreenShotConstant.Intent.LONG_SCREEN_SHOT_ACTION);\n\t\t\tservice.putExtra(SuperScreenShotConstant.Service.SUPER_SCREEN_SHOT_VISIBILITY ,\n\t\t\t\t\tfalse);\n\t\t\tcontext.startService(service);\n enableStatusbar();\n\t\t} else if (SuperScreenShotConstant.BroadCast.HOME_SCREEN_SHOT_SHOW.equals(action)) {\n\t\t\t// 主窗口开启\n\t\t\tLog.d(TAG, \"admas:SuperScreenShotReceiver HOME_SCREEN_SHOT_SHOW\");\n\t\t\tservice.setAction(SuperScreenShotConstant.Intent.HOME_SCREEN_SHOT_ACTION);\n\t\t\tservice.putExtra(SuperScreenShotConstant.Service.SUPER_SCREEN_SHOT_VISIBILITY,\n\t\t\t\t\ttrue);\n\t\t\tcontext.startService(service);\n\t\t} else if (SuperScreenShotConstant.BroadCast.HOME_SCREEN_SHOT_DISMISS.equals(action)) {\n\t\t\t// 主窗口关闭\n\t\t\tLog.d(TAG, \"admas:SuperScreenShotReceiver HOME_SCREEN_SHOT_DISMISS\");\n\t\t\tservice.setAction(SuperScreenShotConstant.Intent.HOME_SCREEN_SHOT_ACTION);\n\t\t\tservice.putExtra(SuperScreenShotConstant.Service.SUPER_SCREEN_SHOT_VISIBILITY ,\n\t\t\t\t\tfalse);\n\t\t\tcontext.startService(service);\n\t\t}else if (SuperScreenShotConstant.BroadCast.FUNS_SCREEN_SHOT_SHOW.equals(action)) {\n\t\t\t// 窗口关闭\n\t\t\tLog.d(TAG, \"admas:SuperScreenShotReceiver LONG_SCREEN_SHOT_DISMISS\");\n\t\t\tservice.setAction(SuperScreenShotConstant.Intent.FUNS_SCREEN_SHOT_ACTION);\n\t\t\tservice.putExtra(SuperScreenShotConstant.Service.SUPER_SCREEN_SHOT_VISIBILITY ,\n\t\t\t\t\ttrue);\n\t\t\tcontext.startService(service);\n\t\t}else if (SuperScreenShotConstant.BroadCast.FUNS_SCREEN_SHOT_DISMISS.equals(action)) {\n\t\t\t// 主窗口关闭\n\t\t\tLog.d(TAG, \"admas:SuperScreenShotReceiver HOME_SCREEN_SHOT_DISMISS\");\n\t\t\tservice.setAction(SuperScreenShotConstant.Intent.FUNS_SCREEN_SHOT_ACTION);\n\t\t\tservice.putExtra(SuperScreenShotConstant.Service.SUPER_SCREEN_SHOT_VISIBILITY ,\n\t\t\t\t\tfalse);\n\t\t\tcontext.startService(service);\n\t\t}else if (SuperScreenShotConstant.BroadCast.NORMAL_SCREEN_SHOT_SHOW.equals(action)) {\n\t\t\t// 快速截屏窗口关闭\n\t\t\tLog.d(TAG, \"admas:SuperScreenShotReceiver NORMAL_SCREEN_SHOT_DISMISS\");\n\t\t\tservice.setAction(SuperScreenShotConstant.Intent.NORMAL_SCREEN_SHOT_ACTION);\n\t\t\tservice.putExtra(SuperScreenShotConstant.Service.SUPER_SCREEN_SHOT_VISIBILITY ,\n\t\t\t\t\ttrue);\n\t\t\tcontext.startService(service);\n\t\t}else if (SuperScreenShotConstant.BroadCast.NORMAL_SCREEN_SHOT_DISMISS.equals(action)) {\n\t\t\t// 快速截屏主窗口关闭\n\t\t\tLog.d(TAG, \"admas:SuperScreenShotReceiver NORMAL_SCREEN_SHOT_DISMISS\");\n\t\t\tservice.setAction(SuperScreenShotConstant.Intent.NORMAL_SCREEN_SHOT_ACTION);\n\t\t\tservice.putExtra(SuperScreenShotConstant.Service.SUPER_SCREEN_SHOT_VISIBILITY ,\n\t\t\t\t\tfalse);\n\t\t\tcontext.startService(service);\n\t\t}\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "1782da7a37ae987364ab40742d807838", "score": "0.55172855", "text": "public final void mo34025b() {\n if (!this.f2123b.getBooleanExtra(\"triggered_from_app_after_verification\", false)) {\n this.f2123b.putExtra(\"triggered_from_app_after_verification\", true);\n this.f2124c.sendBroadcast(this.f2123b);\n return;\n }\n this.f2125d.f1980a.mo33809b(\"Splits copied and verified more than once.\", new Object[0]);\n }", "title": "" }, { "docid": "ecb6ff12401f1bcabc7f24057587b57e", "score": "0.5502787", "text": "public void onReceive(Context context, Intent intent) {\n context.startService(new Intent(context, UpdaterService.class));\n Log.d(\"BootReceiver\", \"onReceived\");\n }", "title": "" }, { "docid": "9d89a26e7e5fd41d60911849f8549f24", "score": "0.5498129", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n\n try{\n Toast.makeText(getActivity(),\"Re-connecting...\",Toast.LENGTH_SHORT).show();\n Selected_gridtype=listname.get(gridviewposition);\n buttonAction(listname.get(gridviewposition));\n }catch (Exception e){\n e.printStackTrace();\n }\n\n\n }", "title": "" }, { "docid": "f665686fc52d79deac54753a67ad0fdf", "score": "0.54744303", "text": "public static void RefreshvalueTrue(Context context){\n GlobalVar.setMyBooleanPref(context,Constant.IsScreenRefresh,true);\n }", "title": "" }, { "docid": "d1cf66b62171b08a2456f2d89519670a", "score": "0.54651695", "text": "@Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\r\n }", "title": "" }, { "docid": "d862ea09817cd260d39c1f02998b5312", "score": "0.54638803", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n Logger.d(TAG, \"!--->onReceive-MMS-intent:\" + intent);\n String action = intent.getAction();\n if (action.equals(MMS_RECEIVE_ACTION)) {\n\n }\n\n }", "title": "" }, { "docid": "c379ddb3ecd618ba553180b6295bb2b2", "score": "0.5463239", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n try {\n if(isOnline(context)) {\n // Log.d(\"Check\", \"is ONline.\");\n MyService.isInternetActive = true;\n if(gpsEnabled())\n createNotification(\"App running in background.\");\n else\n createNotification(\"Gps Not Enabled.\");\n }\n else {\n // Log.d(\"Check\", \"is offline.\");\n MyService.isInternetActive = false;\n if(gpsEnabled())\n createNotification(\"Turn on the internet.\");\n else\n createNotification(\"Gps and Internet are off.\");\n }\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "4caafb1964df86ffe0cba762b13afefd", "score": "0.54553545", "text": "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\n\t\t}", "title": "" }, { "docid": "e004507695f75747a449e29595bd186a", "score": "0.5445208", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if( action.equals(RoosterConnectionService.SEND_MESSAGE))\n {\n Log.e(TAG,\"BroadcastMessage\");\n //SENDS THE ACTUAL MESSAGE TO THE SERVER\n sendMessage(intent.getStringExtra(RoosterConnectionService.BUNDLE_MESSAGE_BODY),\n intent.getStringExtra(RoosterConnectionService.BUNDLE_TO));\n }else{\n\n }\n }", "title": "" }, { "docid": "aae587ee278defc004eb5560cd58a4f9", "score": "0.5444799", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if (lastVisualDataChange != -1 && System.currentTimeMillis() - lastVisualDataChange < VISUAL_UPDATE_TIME_LIMIT) {\n updateVisualHandler.removeCallbacks(updateVisualRunnable);\n }\n\n if (intent.getAction().equals(ADD_CONNECTION)) {\n String appName = intent.getStringExtra(PACKAGE_NAME);\n String ip = intent.getStringExtra(DESTINATION_IP); //aqui se podría ver la ip???\n int length = intent.getIntExtra(PACKET_LENGTH, 0);\n String protocol = intent.getStringExtra(PROTOCOL_NAME);\n String trafficType = intent.getStringExtra(TRAFFIC_TYPE);\n\n if (appName != null && ip != null) {\n addConnection(appName, ip, length, protocol, trafficType);\n // PrivacyLeaksReportFragment.mapa_ip_test.put(appName,ip); //test para coger las ips.\n }\n } else {\n String appName = intent.getStringExtra(PACKAGE_NAME);\n String ip = intent.getStringExtra(DESTINATION_IP);\n if (appName != null && ip != null) {\n removeConnection(appName, ip);\n }\n }\n\n lastVisualDataChange = System.currentTimeMillis();\n updateVisualHandler.postDelayed(updateVisualRunnable, VISUAL_UPDATE_TIME_LIMIT);\n }", "title": "" }, { "docid": "7ae68344447dc6c3afeb11c44024a52c", "score": "0.54394853", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n // Update the notification.\n updateNotification();\n }", "title": "" }, { "docid": "58169ed885d6e35790363011cf62a098", "score": "0.54319084", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n if((intent!=null) && (Objects.requireNonNull(intent.getAction()).equals(\"top.mikoto.sangnam.ALARM\"))) {\n Log.d(\"MisakaMOE\", \"Alarm!\");\n Intent intent1 = new Intent(context, RingAlarmActivity.class);\n intent1.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);\n intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent1);\n }\n }", "title": "" }, { "docid": "d55b3e092da5c50a218e9a7b7344db3b", "score": "0.5429192", "text": "@Override\n\tpublic void onReceive(Context arg0, Intent intent) {\n\t\tLog.d(TAG, \"onReceive MyBroadcastReceiver\");\n\t\tString state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);\n\t\t\n\t\tif (state != null && state.equals(TelephonyManager.EXTRA_STATE_RINGING)){\n\t\t\tString tlf = intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);\n\t\t\tLog.d(TAG,\"llamada entrante de \" + tlf );\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3fd628d9f9b06a787045e6515b94c6d4", "score": "0.5428287", "text": "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tif (!getPause()\n\t\t\t\t\t&& intent.getAction().equals(\"zce.log.cat.LogCatService\")) {\n\t\t\t\tlistView.post(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tsimpleAdapter.notifyDataSetChanged();\n\t\t\t\t\t\tlistView.setSelection(listView.getBottom());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\t// Log.w(tag, \"程序后台运行中..暂停更新界面..\");\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "148201ea534710548a1869c31c925761", "score": "0.5428256", "text": "public void onStatusChanged(String provider, int status, Bundle extras) {\n}", "title": "" }, { "docid": "324672a0eea9f039783a8eaabf9a7d44", "score": "0.5425609", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n System.out.println(\"<<<>>> MyBootReceiver\");\n }", "title": "" }, { "docid": "38587eb027ceef206d11a5f22c8fea57", "score": "0.54188746", "text": "@Override\n protected void onResume() {\n super.onResume();\n Log.i(\"onResume\", \"Resume\");\n receiver = new MyReceiver();\n IntentFilter filter=new IntentFilter();\n filter.addAction(\"android.intent.action.bluetooth.admin.bluetooth\");\n MainActivity.this.registerReceiver(receiver,filter);\n }", "title": "" }, { "docid": "8bfb45b0c03f3b4095399eea6bdf760a", "score": "0.5418724", "text": "@Override\n public void onReceive(Context context, Intent intent)\n {\n Log.d(TAG, \"onclock......................\");\n String msg = intent.getStringExtra(\"msg\");\n Toast.makeText(context,msg,Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "a4aa5f647ec4d9c122c71fa8f15ec77d", "score": "0.5416863", "text": "@Override\n public void onReceive(Context arg0, Intent arg1){\n Log.i(\"Message_Check\",\"Entered\");\n // Display the Toast showing HotelsReceiver was clicked\n Toast.makeText(arg0,\"Hotels Receiver was Clicked!!!\",\n Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "bfa17227e98c774fcaaedc90b977bb25", "score": "0.5409504", "text": "@Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\r\n }", "title": "" }, { "docid": "82c1d82023bfc8eb1a73c869a5567a39", "score": "0.54093647", "text": "public boolean checkBroadcast(Intent intent, ComponentName resolvedBroadcast,int callerUid, int callerPid,\n String resolvedType, int receivingUid) {\n /*prize add for feature: frozen app 2018-05-02 begin */\n FireWallRule rule = new FireWallRule(receivingUid);\n int block = getBlockRule(receivingUid,callerUid,TYPE_BROADCAST,intent,rule,resolvedBroadcast);\n\n if(block == RULE_BLOCK){\n //disablelog_broadcast\n if (!TextUtils.isEmpty(intent.getAction())) {\n boolean found = false;\n for(String log:disablelog_broadcast){\n if(log.equals(intent.getAction())){\n found = true;\n break;\n }\n }\n\n if(!found){\n Slog.e(TAG, \"block Broadcast Intent :\"+intent+\" componentName:\"+resolvedBroadcast+\" uid:\"+receivingUid+\" callerUid:\"+callerUid+\" rule:\"+rule);\n }\n\n }\n\n return false;\n }\n /*prize add for feature: frozen app 2018-05-02 end */\n\n return checkIntent(mBroadcastResolver, intent.getComponent(), TYPE_BROADCAST, intent,\n callerUid, callerPid, resolvedType, receivingUid);\n }", "title": "" }, { "docid": "a6416eb37cd3127f5225761187503d8f", "score": "0.54036987", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n notificationManager = (NotificationManager) context.getSystemService(NOTIFICATION_SERVICE);\n Intent intent1;\n\n Bundle bundle = intent.getExtras();\n if (bundle != null) {\n for (String key : bundle.keySet()) {\n Object value = bundle.get(key);\n Log.d(TAG, String.format(\"%s %s (%s)\", key,\n value.toString(), value.getClass().getName()));\n }\n }\n // an Intent broadcast.\n if (intent.hasExtra(CommonMethod.ALARM_FROMTIMEPICKER)) {\n long startTime = SharePrefrancClass.getInstance(context).getLPref(CommonMethod.START_ALARM_TIME);\n long endTime = SharePrefrancClass.getInstance(context).getLPref(CommonMethod.END_ALARM_TIME);\n Log.d(getClass().getSimpleName(), \"startTime:\" + startTime);\n\n String time = SharePrefrancClass.getInstance(context).getPref(CommonMethod.SAVEALARMTIME);\n String amPm = SharePrefrancClass.getInstance(context).getPref(CommonMethod.ALARM_AP);\n\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, requestCode, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n RemoteViews remoteView = new RemoteViews(context.getPackageName(), R.layout.item_rv_alarm_notification);\n remoteView.setTextViewText(R.id.txt_app_name, \"NowZone\");\n remoteView.setTextViewText(R.id.txt_times, time + \" \" + amPm);\n remoteView.setTextViewText(R.id.txt_hours_diff, \"Hours\");\n// remoteView.setInt(R.id.relative,\"setBackgroundResource\",R.drawable.sun);\n Calendar c = Calendar.getInstance();\n long seconds = c.getTimeInMillis();\n\n Log.d(getClass().getSimpleName(), \"seconds:\" + c.getTime());\n Log.d(getClass().getSimpleName(), \"seconds:\" + c.getTime());\n remoteView.setTextViewText(R.id.txt_hours, calculateHours(seconds, startTime));\n //remoteView.setImageViewResource(R.id.img_close,R.drawable.ic_closes);\n remoteView.setOnClickPendingIntent(R.id.btn_close, createSelfPendingIntent(context));\n Log.d(getClass().getSimpleName(), \"Time:\" + time);\n noti = new NotificationCompat.Builder(context)\n .setAutoCancel(true)\n .setSmallIcon(R.drawable.ic_alarms)\n .setContentIntent(pendingIntent)\n .setCustomBigContentView(remoteView)\n .setPriority(Notification.PRIORITY_MIN)\n .setCustomContentView(remoteView)\n .setVisibility(Notification.PRIORITY_MIN)\n .setFullScreenIntent(pendingIntent, true);\n\n\n // .setContent(remoteView)\n\n\n // hide the notification after its selected\n SharePrefrancClass.getInstance(context).savePref(CommonMethod.SLEEP_STARTED, \"ss\");\n intent1 = new Intent(context.getResources().getString(R.string.action_device_sleep_start));\n intent1.putExtra(CommonMethod.START_ALARM_TIME, startTime);\n intent1.putExtra(CommonMethod.END_ALARM_TIME, endTime);\n LocalBroadcastManager.getInstance(context).sendBroadcast(intent1);\n notificationManager.notify(ALARM_ID, noti.build());\n // notificationManager.cancel(ALARM_ID);\n\n } else if (intent.hasExtra(CommonMethod.ALARM_END)) {\n notificationManager.cancel(ALARM_ID);\n intent1 = new Intent(context.getResources().getString(R.string.action_device_sleep_end));\n intent1.putExtra(CommonMethod.ALARM_END, System.currentTimeMillis());\n LocalBroadcastManager.getInstance(context).sendBroadcast(intent1);\n SharePrefrancClass.getInstance(context).clearPref(CommonMethod.SLEEP_STARTED);\n\n }\n\n\n }", "title": "" }, { "docid": "081ac6c1f871847d4446df000d988a62", "score": "0.53970075", "text": "@Override\n protected void onResume(){\n super.onResume();\n\n // If the workout has started\n if(started){\n SharedPreferences prefs = this.getSharedPreferences(\n \"com.example.alexsteenson.runningtracker\", Context.MODE_PRIVATE);\n prefs.edit().putBoolean(\"destroyed\", false).apply();\n // Start receiving broadcasts again\n receiver = new DistanceBroadcastReceiver(txtDistance, time, txtSpeed, txtMotiv, plan);\n IntentFilter filter = new IntentFilter(\"DISTANCE_BROADCAST\");\n LocalBroadcastManager.getInstance(this).registerReceiver(receiver, filter);\n }\n }", "title": "" }, { "docid": "8367a4841832a42e1f47e9673a26ac35", "score": "0.5391592", "text": "public void b(final Context context, Intent intent) {\n String str;\n Throwable th;\n final boolean z;\n String str2;\n if (context != null && intent != null) {\n final String decrypt = Rijndael.decrypt(intent.getStringExtra(\"accId\"));\n String decrypt2 = Rijndael.decrypt(intent.getStringExtra(\"accKey\"));\n final String decrypt3 = Rijndael.decrypt(intent.getStringExtra(\"packName\"));\n String decrypt4 = Rijndael.decrypt(intent.getStringExtra(\"ticket\"));\n int intExtra = intent.getIntExtra(\"ticketType\", -1);\n String decrypt5 = Rijndael.decrypt(intent.getStringExtra(\"qua\"));\n String stringExtra = intent.getStringExtra(\"appVer\");\n String decrypt6 = Rijndael.decrypt(intent.getStringExtra(\"reserved\"));\n TLogger.d(\"PushServiceBroadcastHandler\", \"receive intent, reserved: \" + decrypt6);\n long longExtra = intent.getLongExtra(\"accChannel\", -1);\n String stringExtra2 = intent.getStringExtra(\"url\");\n String stringExtra3 = intent.getStringExtra(\"otherToken\");\n String stringExtra4 = intent.getStringExtra(\"payload\");\n long longExtra2 = intent.getLongExtra(\"otherPushType\", -1);\n long longExtra3 = intent.getLongExtra(\"otherPushTokenOpType\", -1);\n boolean booleanExtra = intent.getBooleanExtra(\"aidl\", false);\n String stringExtra5 = intent.getStringExtra(\"channelToken\");\n String stringExtra6 = intent.getStringExtra(\"channelType\");\n long cloudVersion = CloudManager.getInstance(context).getCloudVersion();\n try {\n if (!j.b(decrypt5)) {\n z = booleanExtra;\n CacheManager.setQua(context, Long.parseLong(decrypt), decrypt5);\n } else {\n z = booleanExtra;\n }\n try {\n str2 = TpnsSecurity.getEncryptAPKSignature(context.createPackageContext(decrypt3, 0));\n } catch (Throwable unused) {\n str2 = \"\";\n }\n str = \"PushServiceBroadcastHandler\";\n try {\n c.a().a(Long.parseLong(decrypt), decrypt2, com.tencent.android.tpush.service.util.a.a(), decrypt4, intExtra, str2, stringExtra, decrypt6, longExtra2, stringExtra2, stringExtra4, stringExtra3, longExtra3, longExtra, stringExtra5, stringExtra6, cloudVersion, new com.tencent.android.tpush.service.c.a() {\n /* class com.tencent.android.tpush.service.a.AnonymousClass2 */\n\n @Override // com.tencent.android.tpush.service.c.a\n public void a(int i, String str, com.tencent.android.tpush.service.protocol.d dVar) {\n if (i == 0) {\n m mVar = new m();\n try {\n if (j.b(str)) {\n str = j.e(SharePrefsUtil.getString(context, \"REGISTERED_RSP\", \"\"));\n } else {\n SharePrefsUtil.setString(context, \"REGISTERED_RSP\", j.f(str));\n }\n mVar.a(str);\n TLogger.dd(\"PushServiceBroadcastHandler\", \">> Register onResponse [accId = \" + decrypt + \", token:\" + mVar.b + \", otherPushType:\" + mVar.d + \", otherToken:\" + mVar.e + \" , packName = \" + decrypt3 + \"]\");\n a.this.a(i, mVar, (l) dVar, decrypt3, z);\n c.b(context);\n XGApiConfig.setRegisterSuccess(context);\n } catch (Throwable unused) {\n TLogger.ee(\"PushServiceBroadcastHandler\", \">> Register onResponse fail, 解析返回内容格式错误 \" + i);\n a.this.a(-101, \"解析服务器返回内容失败\", (l) dVar, decrypt3);\n }\n } else {\n TLogger.ww(\"PushServiceBroadcastHandler\", \">> Register ack fail, 服务器处理失败,返回错误; responseCode = \" + i);\n a.this.a(i, \"服务器处理失败,返回错误\", (l) dVar, decrypt3);\n }\n }\n\n @Override // com.tencent.android.tpush.service.c.a\n public void b(int i, String str, com.tencent.android.tpush.service.protocol.d dVar) {\n TLogger.ee(\"PushServiceBroadcastHandler\", \"@@ registetr onMessageSendFailed: \" + i + \", \" + str);\n a.this.a(i, str, (l) dVar, decrypt3);\n }\n });\n } catch (Throwable th2) {\n th = th2;\n }\n } catch (Throwable th3) {\n th = th3;\n str = \"PushServiceBroadcastHandler\";\n TLogger.e(str, \">> register error \" + th);\n TLogger.e(str, \">> register error-> \" + TLogger.getStackTraceString(th));\n }\n }\n }", "title": "" }, { "docid": "c3523b4e334981baf2dac4f52e5e9160", "score": "0.53885853", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n super.onReceive(context, intent);\n\n // check whether is TASK_MODIFIED action that's broadcast by the database\n if (intent.getAction().equals(TaskListDB.TASK_MODIFIED)) {\n // update the app widget\n AppWidgetManager manager = \n AppWidgetManager.getInstance(context);\n // app widget provider Component identifier\n ComponentName provider = \n new ComponentName(context, AppWidgetTop3.class);\n // Get the list of appWidgetIds that have been bound to the given AppWidget provider.\n int[] appWidgetIds = manager.getAppWidgetIds(provider);\n // trigger onUpdate method to update widget display\n onUpdate(context, manager, appWidgetIds);\n }\n }", "title": "" }, { "docid": "a561fe23023fff90517bab9ab92b4fe1", "score": "0.53883106", "text": "@Override\n\tpublic void onResume() {\n\t\tfinal IntentFilter intentFilter = new IntentFilter();\n\t\tintentFilter.addAction(Global.TCP_SETUP_SIP_CALLBACK);\n\t\tintentFilter.addAction(\"com.smartbean.servertalk.action.SENDING_VOLUME\");\n\t\tgetActivity().registerReceiver(mBroadcastReceiver, intentFilter);\n\n\t\t\n\t\tsuper.onResume();\n\t}", "title": "" }, { "docid": "01b72f4897988896b17128d8a7296714", "score": "0.5382315", "text": "public PhoneBroadcastReceiver() {\n super();\n bleName = (String) SharedPreferencesUtils.readObject(MyApp.getApplication().getApplicationContext(), \"mylanya\");\n }", "title": "" }, { "docid": "da6431958312c8f0bbb5482ccf07cdcd", "score": "0.5382186", "text": "@Override\n protected void onResume() {\n\n\n mRefreshReceiver = new RefreshReceiver();\n IntentFilter filter = new IntentFilter(\"com.lge.email.intent.action.ACTION_REFRESH\");\n this.registerReceiver(mRefreshReceiver, filter);\n\n// final SwipeDetector swipeDetector = new SwipeDetector();\n mStockList = (ListView)findViewById(R.id.list_view);\n mStockList.setLongClickable(true);\n // mStockList.setOnTouchListener(swipeDetector);\n mStockList.setOnItemClickListener(new OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n // TODO Auto-generated method stub\n\n Intent editIntent = new Intent(MainActivity.this, StockDetailActivity.class);\n editIntent.putExtra(\"code_num\", (String)parent\n .getAdapter()\n .getItem(position));\n startActivity(editIntent);\n\n }\n });\n\n super.onResume();\n\n updateStockItem();\n }", "title": "" }, { "docid": "8ed1f5961f2a08a3fc7f2f93380adf23", "score": "0.537973", "text": "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t getActivity().registerReceiver(receiver, filter);\n\t\t \n\t}", "title": "" }, { "docid": "639640dbe233a20a16ef6a9c31cccf57", "score": "0.53737956", "text": "private void registerInternalDebugReceiver() {\n internalDebugReceiver = new BroadcastReceiver() {\n\n @Override\n public void onReceive(Context context, Intent intent) {\n DemoHelper.getInstance().logout(false,new EMCallBack() {\n\n @Override\n public void onSuccess() {\n runOnUiThread(new Runnable() {\n public void run() {\n finish();\n startActivity(new Intent(mContext, LoginActivity.class));\n Log.e(TAG,\"66666 LoginActivity\");\n// startActivity(new Intent(mContext, HuanxinIMDemoActivity.class));\n }\n });\n }\n @Override\n public void onProgress(int progress, String status) {}\n\n @Override\n public void onError(int code, String message) {}\n });\n }\n };\n IntentFilter filter = new IntentFilter(getPackageName() + \".em_internal_debug\");\n registerReceiver(internalDebugReceiver, filter);\n }", "title": "" }, { "docid": "4512dbfa136454b42f8a83351417d76d", "score": "0.537145", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);\n if (intent.getAction().equals(NEWS_ITEM_ACTION)) {\n int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,\n AppWidgetManager.INVALID_APPWIDGET_ID);\n String url = intent.getStringExtra(EXTRA_ITEM);\n Uri webPage = Uri.parse(url);\n Intent goToNewsIntent =\n new Intent(Intent.ACTION_VIEW, webPage).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n if (goToNewsIntent.resolveActivity(context.getPackageManager()) != null) {\n context.startActivity(goToNewsIntent);\n } else {\n Log.d(NewsWidgetProvider.class.getSimpleName() + \" DEBUG: \",\n \"Couldn't call \" + webPage.toString() + \", \" + \"no receiving apps \" +\n \"installed!\");\n }\n } else if (intent.getAction().equals(AukletSyncAdapter.SYNC_COMPLETED)) {\n Log.d(NewsWidgetProvider.class.getSimpleName(), \"SYNC_COMPLETED broadcast received\");\n //Update widget if SYNC_COMPLETED broadcast is received\n ComponentName thisAppWidget = new ComponentName(context.getPackageName(),\n NewsWidgetProvider.class.getName());\n int[] appWidgetIds = appWidgetManager.getAppWidgetIds(thisAppWidget);\n onUpdate(context, appWidgetManager, appWidgetIds);\n }\n super.onReceive(context, intent);\n }", "title": "" }, { "docid": "dea6197d40ba036fa9032682dca8559f", "score": "0.53685147", "text": "@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tLog.d(\"circle\",\"wearable Knock Knock heart rate\");\n \tIntent intentStartHeartRate=new Intent(context, MeasureActivity.class);\n \tintentStartHeartRate.putExtra(MeasureActivity.KEY_START_HEART_RATE, true);\n \tintentStartHeartRate.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n \tcontext.startActivity(intentStartHeartRate);\n\t}", "title": "" } ]
64085a673350ba88f9d5b2a85eec0454
Split DLMS PDU to wrapper frames.
[ { "docid": "a6b6e33d16146901bb68e8e96adb040c", "score": "0.5453664", "text": "static byte[] getWrapperFrame(final GXDLMSSettings settings,\n final GXByteBuffer data) {\n GXByteBuffer bb = new GXByteBuffer();\n // Add version.\n bb.setUInt16(1);\n if (settings.isServer()) {\n bb.setUInt16(settings.getServerAddress());\n bb.setUInt16(settings.getClientAddress());\n } else {\n bb.setUInt16(settings.getClientAddress());\n bb.setUInt16(settings.getServerAddress());\n }\n if (data == null) {\n // Data length.\n bb.setUInt16(0);\n } else {\n // Data length.\n bb.setUInt16(data.size());\n // Data\n bb.set(data);\n }\n // Remove sent data in server side.\n if (settings.isServer()) {\n if (data.size() == data.position()) {\n data.clear();\n } else {\n data.move(data.position(), 0, data.size() - data.position());\n data.position(0);\n }\n }\n return bb.array();\n }", "title": "" } ]
[ { "docid": "3406b647e39a13c680be21eda2802d9d", "score": "0.52650195", "text": "static byte[] getHdlcFrame(final GXDLMSSettings settings, final int frame,\n final GXByteBuffer data) {\n GXByteBuffer bb = new GXByteBuffer();\n int frameSize, len = 0;\n byte[] primaryAddress, secondaryAddress;\n if (settings.isServer()) {\n primaryAddress = getAddressBytes(settings.getClientAddress(), 0);\n secondaryAddress = getAddressBytes(settings.getServerAddress(),\n settings.getServerAddressSize());\n } else {\n primaryAddress = getAddressBytes(settings.getServerAddress(),\n settings.getServerAddressSize());\n secondaryAddress = getAddressBytes(settings.getClientAddress(), 0);\n }\n // Add BOP\n bb.setUInt8(GXCommon.HDLC_FRAME_START_END);\n frameSize = settings.getLimits().getMaxInfoTX();\n frameSize -= 11;\n // If no data\n if (data == null || data.size() == 0) {\n bb.setUInt8(0xA0);\n } else if (data.size() - data.position() <= frameSize) {\n len = data.size() - data.position();\n // Is last packet.\n bb.setUInt8(0xA0 | ((len >> 8) & 0x7));\n } else {\n len = frameSize;\n // More data to left.\n bb.setUInt8(0xA8 | ((len >> 8) & 0x7));\n }\n // Frame len.\n if (len == 0) {\n bb.setUInt8((byte) (5 + primaryAddress.length\n + secondaryAddress.length + len));\n } else {\n bb.setUInt8((byte) (7 + primaryAddress.length\n + secondaryAddress.length + len));\n }\n // Add primary address.\n bb.set(primaryAddress);\n // Add secondary address.\n bb.set(secondaryAddress);\n\n // Add frame ID.\n if (frame == 0) {\n bb.setUInt8(settings.getNextSend(true));\n } else {\n bb.setUInt8(frame);\n }\n // Add header CRC.\n int crc = GXFCS16.countFCS16(bb.getData(), 1, bb.size() - 1);\n bb.setUInt16(crc);\n if (len != 0) {\n // Add data.\n bb.set(data, len);\n // Add data CRC.\n crc = GXFCS16.countFCS16(bb.getData(), 1, bb.size() - 1);\n bb.setUInt16(crc);\n }\n // Add EOP\n bb.setUInt8(GXCommon.HDLC_FRAME_START_END);\n // Remove sent data in server side.\n if (settings.isServer()) {\n if (data != null) {\n if (data.size() == data.position()) {\n data.clear();\n } else {\n data.move(data.position(), 0,\n data.size() - data.position());\n data.position(0);\n }\n }\n }\n return bb.array();\n }", "title": "" }, { "docid": "9465ef634e6a610e5506fc640659a61b", "score": "0.50785094", "text": "public byte[] UnpackFrame(byte[] frame){\n //Create new btye array for new frame, block copy everything except header into new frame\n byte[] newFrame = new byte[frame.length-12];\n System.arraycopy(frame, 12, newFrame, 0, newFrame.length);\n return newFrame;\n }", "title": "" }, { "docid": "9bbfc89c24da0fa76880762156116a7b", "score": "0.5035713", "text": "public static List<byte[]> getSnMessages(final GXDLMSSNParameters p) {\n GXByteBuffer reply = new GXByteBuffer();\n java.util.ArrayList<byte[]> messages =\n new java.util.ArrayList<byte[]>();\n byte frame = 0x0;\n if (p.getCommand() == Command.AARQ) {\n frame = 0x10;\n } else if (p.getCommand() == Command.INFORMATION_REPORT) {\n frame = 0x13;\n } else if (p.getCommand() == Command.NONE) {\n frame = p.getSettings().getNextSend(true);\n }\n do {\n getSNPdu(p, reply);\n if (p.getCommand() != Command.AARQ\n && p.getCommand() != Command.AARE) {\n assert !(p.getSettings().getMaxPduSize() < reply.size());\n }\n // Command is not add to next PDUs.\n while (reply.position() != reply.size()) {\n if (p.getSettings()\n .getInterfaceType() == InterfaceType.WRAPPER) {\n messages.add(getWrapperFrame(p.getSettings(), reply));\n } else if (p.getSettings()\n .getInterfaceType() == InterfaceType.HDLC) {\n messages.add(getHdlcFrame(p.getSettings(), frame, reply));\n if (reply.position() != reply.size()) {\n if (p.getSettings().isServer()) {\n frame = 0;\n } else {\n frame = p.getSettings().getNextSend(false);\n }\n }\n } else if (p.getSettings()\n .getInterfaceType() == InterfaceType.PDU) {\n messages.add(reply.array());\n break;\n } else {\n throw new IllegalArgumentException(\"InterfaceType\");\n }\n }\n reply.clear();\n } while (p.getData() != null\n && p.getData().position() != p.getData().size());\n return messages;\n\n }", "title": "" }, { "docid": "d4928f8e322f6c3f355e34a9fd2d847b", "score": "0.5018024", "text": "public Value split( Value s_msg ){\n\t\t/* here we read the subnode of the request message */\n\t\tString string = s_msg.getFirstChild(\"string\").strValue();\n\t\tString regExpr = s_msg.getFirstChild(\"regExpr\").strValue();\n\n\t\tString[] sa = string.split( regExpr );\n\n\t\t/* here we prepare the reply message */\n\t\tValue s_res = Value.create();\n\t\tint i = 0;\n\n\t\t/* here we prepare the subnode 's_chunk' as an array of strings */\n\t\tfor( String s : sa ){\n\t\t\ts_res.getNewChild( \"s_chunk\" ).setValue( s );\n\t\t}\n\n\t\treturn s_res;\n\t}", "title": "" }, { "docid": "21e65c1c4019b0424ba00a234c166267", "score": "0.49536696", "text": "protected DataHeader split() {\n long newFp = dataPointer + (long) dataCount;\n DataHeader newData = new DataHeader(newFp, getFreeSpace());\n\n dataCapacity = dataCount;\n\n return newData;\n }", "title": "" }, { "docid": "417e5edca4347c0a43279fc5a3071921", "score": "0.4942254", "text": "public List<DataFrame> extractFrames () throws PcapParserException {\n // global header: 24 bytes\n // packet header: 16 bytes\n List<DataFrame> frames = new ArrayList<DataFrame>();\n int recordOffset = globalHeaderLength, currentFrameLen = 0, inclLen, origLen;\n ByteBuffer frameBytes = null;\n do {\n /* Parse records header */\n inclLen = inclLen(recordOffset);\n origLen = origLen(recordOffset);\n recordOffset += recordHeaderLength;\n\n /* Parse record data (splitted frames) */\n // New frame\n if (currentFrameLen == 0) {\n frameBytes = ByteBuffer.allocate(origLen);\n }\n\n // Extract record to frame\n frameBytes.put(bytes.array(), recordOffset, inclLen);\n currentFrameLen += inclLen;\n\n // End frame\n if (currentFrameLen == origLen) {\n currentFrameLen = 0; \n DataFrame newFrame = new DataFrame(frameBytes);\n System.out.println(\"Parsed frame: \" + newFrame + \"\\n\" + BinaryUtils.toHexString(frameBytes.array(), true, 0, frameBytes.limit()));\n frames.add(newFrame);\n } else if (currentFrameLen > origLen) throw new PcapParserException();\n\n recordOffset += inclLen;\n \n } while (recordOffset < this.bytes.limit());\n\n return frames;\n }", "title": "" }, { "docid": "d9a81f37647505c4d05050bea914dd41", "score": "0.47186264", "text": "public static J2735MessageFrame genericMessageFrame(MessageFrame mf)\n throws OssMessageFrameException, OssBsmPart2Exception {\n\n J2735MessageFrame genericMessageFrame = new J2735MessageFrame();\n \n genericMessageFrame.setMessageId( J2735DSRCmsgID.valueOf( mf.messageId.intValue() ));\n\n PERUnalignedCoder coder = J2735.getPERUnalignedCoder();\n\n if (genericMessageFrame.getMessageId() == J2735DSRCmsgID.BasicSafetyMessage) {\n\n // If basicSafetyMessage\n BasicSafetyMessage bsm;\n if (mf.value.getDecodedValue() != null) {\n bsm = (BasicSafetyMessage) mf.value.getDecodedValue();\n } else if (mf.value.getEncodedValueAsStream() != null) {\n bsm = new BasicSafetyMessage();\n try {\n coder.decode(mf.value.getEncodedValueAsStream(), bsm);\n } catch (DecodeFailedException | DecodeNotSupportedException e) {\n throw new OssMessageFrameException(\"Error decoding OpenType value\", e);\n }\n } else {\n throw new OssMessageFrameException(\"No OpenType value\");\n }\n\n genericMessageFrame.setValue(OssBsm.genericBsm(bsm));\n\n } else {\n throw new OssMessageFrameException(\"Unknown message type: \" + genericMessageFrame.getMessageId());\n }\n\n return genericMessageFrame;\n\n }", "title": "" }, { "docid": "fbdee6c5ea5850cf8fe1a7b9deb2d252", "score": "0.47046545", "text": "public static List<byte[]> getLnMessages(final GXDLMSLNParameters p) {\n GXByteBuffer reply = new GXByteBuffer();\n java.util.ArrayList<byte[]> messages = new ArrayList<byte[]>();\n byte frame = 0;\n if (p.getCommand() == Command.AARQ) {\n frame = 0x10;\n } else if (p.getCommand() == Command.EVENT_NOTIFICATION) {\n frame = 0x13;\n }\n do {\n getLNPdu(p, reply);\n p.setLastBlock(true);\n if (p.getAttributeDescriptor() == null) {\n p.getSettings().increaseBlockIndex();\n }\n if (p.getCommand() == Command.AARQ\n && p.getCommand() == Command.GET_REQUEST) {\n assert (!(p.getSettings().getMaxPduSize() < reply.size()));\n }\n while (reply.position() != reply.size()) {\n if (p.getSettings()\n .getInterfaceType() == InterfaceType.WRAPPER) {\n messages.add(getWrapperFrame(p.getSettings(), reply));\n } else if (p.getSettings()\n .getInterfaceType() == InterfaceType.HDLC) {\n messages.add(\n GXDLMS.getHdlcFrame(p.getSettings(), frame, reply));\n if (reply.position() != reply.size()) {\n if (p.getSettings().isServer()\n || p.getCommand() == Command.SET_REQUEST\n || p.getCommand() == Command.METHOD_REQUEST) {\n frame = 0;\n } else {\n frame = p.getSettings().getNextSend(false);\n }\n }\n } else if (p.getSettings()\n .getInterfaceType() == InterfaceType.PDU) {\n messages.add(reply.array());\n frame = 0;\n break;\n } else {\n throw new IllegalArgumentException(\"InterfaceType\");\n }\n }\n reply.clear();\n } while (p.getData() != null\n && p.getData().position() != p.getData().size());\n return messages;\n }", "title": "" }, { "docid": "2d573eb345abb1c1712678393f56ad45", "score": "0.4700089", "text": "@Test\n public void testIncomingFragmented() {\n PerMessageDeflateExtension ext = new PerMessageDeflateExtension();\n ext.setPolicy(WebSocketPolicy.newServerPolicy());\n ExtensionConfig config = ExtensionConfig.parse(\"permessage-deflate\");\n ext.setConfig(config);\n\n // Setup capture of incoming frames\n IncomingFramesCapture capture = new IncomingFramesCapture();\n\n // Wire up stack\n ext.setNextIncomingFrames(capture);\n\n String payload = \"Are you there?\";\n Frame ping = new PingFrame().setPayload(payload);\n ext.incomingFrame(ping);\n\n capture.assertFrameCount(1);\n capture.assertHasFrame(OpCode.PING, 1);\n WebSocketFrame actual = capture.getFrames().poll();\n\n assertEquals(OpCode.PING, actual.getOpCode());\n assertTrue(actual.isFin());\n assertFalse(actual.isRsv1());\n assertFalse(actual.isRsv2());\n assertFalse(actual.isRsv3());\n\n ByteBuffer expected = BufferUtils.toBuffer(payload, StandardCharsets.UTF_8);\n assertEquals(expected.remaining(), actual.getPayloadLength());\n ByteBufferAssert.assertEquals(\"Frame.payload\", expected, actual.getPayload().slice());\n }", "title": "" }, { "docid": "611c8948b2a6e8084b7b56c847714334", "score": "0.460723", "text": "@Override\n protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {\n in.markReaderIndex();\n\n boolean frameDecoded = false;\n\n try {\n if (!in.isReadable(FRAME_HEADER_LENGTH)) {\n return;\n }\n\n int frameVersion = in.readUnsignedByte();\n sessionHandler.versionRead(frameVersion);\n\n int frameType = in.readUnsignedByte();\n LOG.debug(\"Received a lumberjack frame of type {}\", (char) frameType);\n\n switch (frameType) {\n case TYPE_JSON:\n frameDecoded = handleJsonFrame(in, out);\n break;\n case TYPE_DATA:\n frameDecoded = handleDataFrame(in, out);\n break;\n case TYPE_WINDOW:\n frameDecoded = handleWindowFrame(in);\n break;\n case TYPE_COMPRESS:\n frameDecoded = handleCompressedFrame(ctx, in, out);\n break;\n default:\n throw new RuntimeException(\"Unsupported frame type=\" + frameType);\n }\n } finally {\n if (!frameDecoded) {\n LOG.debug(\"Not enough data to decode a complete frame, retry when more data is available. Reader index was {}\", in.readerIndex());\n in.resetReaderIndex();\n }\n }\n }", "title": "" }, { "docid": "6af4a3a2a5d6bd36a3430ab56e8e0a87", "score": "0.45818737", "text": "@Override\n\tprotected SubMemoryBlock split(long memBlockOffset) throws IOException {\n\t\tint offset = (int) (memBlockOffset - subBlockOffset);\n\t\tlong newLength = subBlockLength - offset;\n\t\tsubBlockLength = offset;\n\t\trecord.setLongValue(MemoryMapDBAdapter.SUB_LENGTH_COL, subBlockLength);\n\t\tadapter.updateSubBlockRecord(record);\n\n\t\tAddress newAddr = mappedAddress.add(offset);\n\t\tAddressMapDB addressMap = adapter.getMemoryMap().getAddressMap();\n\t\tlong encodedAddr = addressMap.getKey(newAddr, true);\n\n\t\tRecord newSubRecord = adapter.createSubBlockRecord(0, 0, newLength,\n\t\t\tMemoryMapDBAdapter.SUB_TYPE_BYTE_MAPPED, 0, encodedAddr);\n\n\t\treturn new ByteMappedSubMemoryBlock(adapter, newSubRecord);\n\t}", "title": "" }, { "docid": "640a8018a9d032a948218e4bdf71a3a8", "score": "0.4580848", "text": "public void mux_sequence_header(ByteBuffer vps, ByteBuffer sps, ByteBuffer pps, int dts, int pts, ArrayList<SrsFlvFrameBytes> frames) {\n if (true) {\n SrsFlvFrameBytes hdr = new SrsFlvFrameBytes();\n hdr.size = 23;\n hdr.data = ByteBuffer.allocate(hdr.size);\n\n // @see: Annex A Profiles and levels, H.264-AVC-ISO_IEC_14496-10.pdf, page 205\n // Baseline profile profile_idc is 66(0x42).\n // Main profile profile_idc is 77(0x4d).\n // Extended profile profile_idc is 88(0x58).\n byte profile_idc = 1; //sps.get(1);\n //u_int8_t constraint_set = frame[2];\n byte level_idc = 123;// sps.get(3);\n //1C 00 00 00 00 01 01 60 00 00 00 90 00 00 00 00 00 78 f0 00 fc fd f8 f8 00 00 0f 04\n //hdr.data.put((byte) 0x1c);\n //hdr.data.put((byte) 0x00);\n //hdr.data.put((byte) 0x00);\n //hdr.data.put((byte) 0x00);\n //hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x01);\n hdr.data.put((byte) profile_idc);\n hdr.data.put((byte) level_idc);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x90);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x78);\n hdr.data.put((byte) 0xf0);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0xfc);\n hdr.data.put((byte) 0xfd);\n hdr.data.put((byte) 0xf8);\n hdr.data.put((byte) 0xf8);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x00);\n hdr.data.put((byte) 0x0f);\n hdr.data.put((byte) 0x04);\n\n // reset the buffer.\n hdr.data.rewind();\n frames.add(hdr);\n }\n\n // vps\n if (true) {\n SrsFlvFrameBytes vps_hdr = new SrsFlvFrameBytes();\n vps_hdr.size = 5;\n vps_hdr.data = ByteBuffer.allocate(vps_hdr.size);\n\n // 5.3.4.2.1 Syntax, H.264-AVC-ISO_IEC_14496-15.pdf, page 16\n // numOfSequenceParameterSets, always 1\n vps_hdr.data.put((byte) 0x20);\n vps_hdr.data.put((byte) 0x00);\n\n vps_hdr.data.put((byte) 0x01);\n // sequenceParameterSetLength\n vps_hdr.data.putShort((short) vps.array().length);\n\n vps_hdr.data.rewind();\n frames.add(vps_hdr);\n\n // sequenceParameterSetNALUnit\n SrsFlvFrameBytes vps_bb = new SrsFlvFrameBytes();\n vps_bb.size = vps.array().length;\n vps_bb.data = vps.duplicate();\n frames.add(vps_bb);\n }\n // sps\n if (true) {\n\n SrsFlvFrameBytes sps_hdr = new SrsFlvFrameBytes();\n sps_hdr.size = 5;\n sps_hdr.data = ByteBuffer.allocate(sps_hdr.size);\n\n // 5.3.4.2.1 Syntax, H.264-AVC-ISO_IEC_14496-15.pdf, page 16\n // numOfSequenceParameterSets, always 1\n sps_hdr.data.put((byte) 0x21);\n sps_hdr.data.put((byte) 0x00);\n sps_hdr.data.put((byte) 0x01);\n // sequenceParameterSetLength\n sps_hdr.data.putShort((short) sps.array().length);\n\n sps_hdr.data.rewind();\n frames.add(sps_hdr);\n\n // sequenceParameterSetNALUnit\n SrsFlvFrameBytes sps_bb = new SrsFlvFrameBytes();\n sps_bb.size = sps.array().length;\n sps_bb.data = sps.duplicate();\n frames.add(sps_bb);\n }\n\n // pps\n if (true) {\n SrsFlvFrameBytes pps_hdr = new SrsFlvFrameBytes();\n pps_hdr.size = 5;\n pps_hdr.data = ByteBuffer.allocate(pps_hdr.size);\n\n // 5.3.4.2.1 Syntax, H.264-AVC-ISO_IEC_14496-15.pdf, page 16\n // numOfPictureParameterSets, always 1\n pps_hdr.data.put((byte) 0x22);\n pps_hdr.data.put((byte) 0x00);\n pps_hdr.data.put((byte) 0x01);\n // pictureParameterSetLength\n pps_hdr.data.putShort((short) pps.array().length);\n\n pps_hdr.data.rewind();\n frames.add(pps_hdr);\n\n // pictureParameterSetNALUnit\n SrsFlvFrameBytes pps_bb = new SrsFlvFrameBytes();\n pps_bb.size = pps.array().length;\n pps_bb.data = pps.duplicate();\n frames.add(pps_bb);\n }\n }", "title": "" }, { "docid": "74756a1945de05eef861be291af42969", "score": "0.45237848", "text": "public void deSerialize(DataInputStream inputStream)\n{\n\n UnsignedShort padding = new UnsignedShort(0); // padding--read just to be thrown away\n UnsignedShort length = new UnsignedShort(0); // length--read just to be thrown away\n\n//*******************************************************************************\n \n UnsignedByte firstByte = new UnsignedByte();\n \n firstByte.deSerialize(inputStream); \n\n try\n {\n inputStream.reset();\n }\n catch(IOException ioException)\n {\n throw new \n RuntimeException(\"deSerialize: Exception in ProtocolDataUnit. Error resetting stream.\");\n }\n \n setRtpHeaderEnabled (false);\n\n debug (\"deSerialize: firstByte=\" + firstByte + \", RtpHeader.RTP_VERSION * 64 = \" + RtpHeader.RTP_VERSION * 64);\n if( firstByte.intValue() == ( RtpHeader.RTP_VERSION * 64) )\n {\n setRtpHeaderEnabled (true);\n rtpHeader.deSerialize(inputStream); \n } \n \n//**********************************************************************************\n protocolVersion.deSerialize(inputStream);\n exerciseID.deSerialize(inputStream);\n pduType.deSerialize(inputStream);\n protocolFamily.deSerialize(inputStream);\n timestamp.deSerialize(inputStream);\n length.deSerialize(inputStream);\t\t\t// Nothing is done with this value\n padding.deSerialize(inputStream); // Nothing is done with this value\n\n return;\n}", "title": "" }, { "docid": "c8919ff9e0029241456483bb9eaaba4a", "score": "0.45167714", "text": "private Point2D[] splitFrames(Point2D pts[]) {\n \tdouble maxPPD = getMaxRenderPPD();\n \t \t\n \tif (renderPPD > maxPPD) {\n \tsamplesPerFrame = LINES_PER_FRAME;\n \t} else {\n \tsamplesPerFrame = (int)Math.ceil(LINES_PER_FRAME * (maxPPD/renderPPD)); \t\t\n \t}\n\n \tif (samplesPerFrame > getNumSamples()) {\n \t\tsamplesPerFrame=getNumSamples();\n \t} \t\n\n \thorizontalSplitCnt=(int)Math.ceil(1.0*getNumSamples()/samplesPerFrame);\n \t\n \tif (horizontalSplitCnt<1) {\n \t\thorizontalSplitCnt=1;\n \t}\n\n // If there's only 1 frame, this makes the linesLastFrame==linesPerFrame.\n \tsamplesLastFrame = getNumSamples() - samplesPerFrame*(horizontalSplitCnt-1);\n\n \tif (horizontalSplitCnt==1) {\n \t\t// No more work to do\n \t\treturn pts;\n \t}\n \t \t\n int numFrames =pts.length/4;\n \n Point2D[] newPoints = new Point2D[horizontalSplitCnt*numFrames * 4];\n \n// double framePercent = 1.0 / horizontalSplitCnt;\n \n int total_samples=getNumSamples();\n \n // Create image subframe geometry points through\n // interpolation from whole image. Frames start\n // from upper part of image.\n for (int i=0; i < numFrames; i++) { \t\n Point2D[] topRow = new Point2D[horizontalSplitCnt+1];\n Point2D[] botRow = new Point2D[horizontalSplitCnt+1];\n \n for (int n=0; n<(horizontalSplitCnt+1); n++) {\n \tif (n==horizontalSplitCnt) { // last column\n\t \t\tif (i==numFrames-1) { // last row\n\t \t\ttopRow[n]=imageProjection.lonLat(i*linesPerFrame, total_samples, new Point2D.Double());\n\t \t\tbotRow[n]=imageProjection.lonLat(numLines, total_samples, new Point2D.Double());\n\t \t\t} else {\n\t \t\ttopRow[n]=imageProjection.lonLat(i*linesPerFrame, total_samples, new Point2D.Double());\n\t \t\tbotRow[n]=imageProjection.lonLat((i+1)*linesPerFrame, total_samples, new Point2D.Double());\n\t \t\t} \t\t\n \t} else {\n\t \t\tif (i==numFrames-1) { // last row\n\t \t\ttopRow[n]=imageProjection.lonLat(i*linesPerFrame, (samplesPerFrame*n), new Point2D.Double());\n\t \t\tbotRow[n]=imageProjection.lonLat(numLines, (samplesPerFrame*n), new Point2D.Double());\n\t \t\t} else {\n\t \t\ttopRow[n]=imageProjection.lonLat(i*linesPerFrame, (samplesPerFrame*n), new Point2D.Double());\n\t \t\tbotRow[n]=imageProjection.lonLat((i+1)*linesPerFrame, (samplesPerFrame*n), new Point2D.Double());\n\t \t\t}\n \t}\n } \n \n int newFrameCnt = topRow.length-1;\n \n for (int j=0; j<newFrameCnt; j++) {\n \tint newFrameNum = horizontalSplitCnt*i+j;\n\n \tnewPoints[(4*newFrameNum) ]\t= botRow[j];\n \tnewPoints[(4*newFrameNum) +1]\t= botRow[j+1];\n \tnewPoints[(4*newFrameNum) +2]\t= topRow[j];\n \tnewPoints[(4*newFrameNum) +3]\t= topRow[j+1];\n } \n }\n\n return newPoints; \t\n }", "title": "" }, { "docid": "ec490832de67f711dcd53fe3957c21ee", "score": "0.45161563", "text": "SplitDose createSplitDose();", "title": "" }, { "docid": "efc3825663841c81e4f6fbda928915f2", "score": "0.4464769", "text": "@Test\n public void testDraft21TwoDeflateBlocksOneMessage() {\n Tester tester = clientExtensions.newTester(\"permessage-deflate\");\n\n tester.assertNegotiated(\"permessage-deflate\");\n\n tester.parseIncomingHex(// 1 message, 1 frame, 2 deflate blocks\n \"0xc1 0x0d\", // (HEADER added for this test)\n \"0xf2 0x48 0x05 0x00 0x00 0x00 0xff 0xff 0xca 0xc9 0xc9 0x07 0x00\"\n );\n\n tester.assertHasFrames(\"Hello\");\n }", "title": "" }, { "docid": "a83ad53853696332679e32384d849d29", "score": "0.4450045", "text": "byte [] header() {\n prefix(false);\n req.appendFrame(\"10N\"); // TransactionCode, Batch Changed Indicator: H1-H3\n //the N above is per CS rules, ignore the manual\n //following is spec'd as 7 alpha and 2 numeric\n req.appendFrame(\" 00\"); // System info: H4 - H7\n // sales\n CardSystemsAuth.AmountInfo(req,salesOnly.getTotal());\n// req.endFrame(); // end of this chunk\n CardSystemsAuth.AmountInfo(req,salesOnly.getCount());\n// req.endFrame(); // end of this chunk\n // returns\n CardSystemsAuth.AmountInfo(req,returnsOnly.getTotal());\n// req.endFrame(); // end of this chunk\n CardSystemsAuth.AmountInfo(req,returnsOnly.getCount());\n// req.endFrame(); // end of this chunk\n // voids\n CardSystemsAuth.AmountInfo(req,voidsOnly.getTotal());\n// req.endFrame(); // end of this chunk\n CardSystemsAuth.AmountInfo(req,voidsOnly.getCount());\n// req.endFrame(); // end of this chunk\n // batchid info\n req.appendFrame(String.valueOf(batchid)); // Free Form Data\n// req.endRecord(); // \"The Record Separators are for sending in mulitple records per line which you are not doing.\" - BB\n // add the details in a separate send ...\n req.end();\n dbg.ERROR(\"isOk() returned \" + req.isOk());\n return req.packet();\n }", "title": "" }, { "docid": "194c3479be0d7e743502c3233fc6d012", "score": "0.44493222", "text": "public void splitJoint(){\n FileChannel in = null;\n try{\n //in = fileItem.getInputStream();\n\n in = ((FileInputStream)fileItem.getInputStream()).getChannel();\n MappedByteBuffer buf = out.map(FileChannel.MapMode.READ_WRITE, start, end - start);\n\n int length = 1024;\n ByteBuffer byteBuffer = ByteBuffer.allocateDirect(length);\n\n while (buf.position() + length < buf.limit()){\n in.read(byteBuffer);\n byteBuffer.flip();\n buf.put(byteBuffer);\n byteBuffer.clear();\n }\n if(buf.limit() > buf.position()){\n byteBuffer = ByteBuffer.allocateDirect(buf.limit() - buf.position());\n in.read(byteBuffer);\n byteBuffer.flip();\n buf.put(byteBuffer);\n byteBuffer.clear();\n }\n\n /* int len = 0;\n int length = 1024;\n byte[] b = new byte[length];\n while (buf.position() + length < buf.limit()){\n in.read(b);\n buf.put(b);\n }\n if(buf.limit() > buf.position()){\n b = new byte[buf.limit() - buf.position()];\n in.read(b);\n buf.put(b);\n }*/\n IOUtil.closeMappedByteBuffer(buf);\n }catch (Exception e){\n e.getMessage();\n }finally {\n try {\n in.close();\n fileItem.delete();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n closeFile.countDown();\n }", "title": "" }, { "docid": "9a3732b173d7253a757d47b38269e1b3", "score": "0.4442412", "text": "public static ProtocolDataUnit byteArrayToPdu(byte pByteArray[])\n{\n ProtocolDataUnit newPdu; // The pdu we return from the datagram packet\n byte initialBuf[]; // data from datagram packet\n ByteArrayInputStream initialByteStream; // byte stream\n DataInputStream initialDataStream; // data stream\n UnsignedByte pduType = new UnsignedByte(); // pdu type\n\n\tdebug (\"translating a byte array into a PDU\");\n \n // Turn the byte array into an input data stream, so we can use nice, high-level\n // functions to read what's in it.\n\n initialBuf = pByteArray; // get data portion of Datagram\n initialByteStream = new ByteArrayInputStream(initialBuf); // wrap a byte stream around it\n initialDataStream = new DataInputStream(initialByteStream); // wrap a data stream around _that_\n\n//********************************************************************************\n\n // We need to find the value of the PDU type field, so we can determine what\n // constructor we need to run. The problem is that this can be a variable\n // number of bytes into the byte array. If we have an RTP header it will \n // be more bytes in; without, it will be less. So the steps we have to follow\n // are: 1) determine if we have an RTP header. We do this by looking for a \n // magic byte value in the first byte. If it's there, we know that we have\n // to skip over a known number of bytes in the array. After that we can offset\n // a constant number of bytes from the start of the PDU proper to the pdu type\n // field.\n \n UnsignedByte firstByte = new UnsignedByte();\n \n firstByte.deSerialize(initialDataStream); \n\n debug (\"byteArrayToPdu: firstByte=\" + firstByte + \", RtpHeader.RTP_VERSION * 64 = \" + RtpHeader.RTP_VERSION * 64);\n\n int offset = 0; // offset to the pdu type field\n\n // The magic number of the first byte indicates RTP. Calculate the correct offset to the\n // pdu type field. It's three bytes in from the start of the PDU. If we have an RTP\n // header, it's 12 bytes long. Note that we've already read one byte.\n\n if( firstByte.intValue() == ( RtpHeader.RTP_VERSION * 64 ) )\n {\n offset = 2 - 1 + 12; // the pdu type field is two bytes in (one already read) plus 12 RTP bytes\n }\n else // no rtp header\n {\n offset = 2 - 1; // pdu type field is the third byte in, one byte already read\n }\n \n try\n {\n initialDataStream.skipBytes(offset); // Skip to start of PDU type field \n pduType.deSerialize(initialDataStream); // read the pdu type \n }\n catch (IOException ioError)\n {\n throw new \n RuntimeException(\"Exception in ProtocolDataUnit. Error instantiating from datagram.\");\n }\n\n try\n {\n initialDataStream.reset(); // reset the stream to the start\n }\n catch(IOException ioException)\n {\n throw new \n RuntimeException(\"byteArrayToPdu: Exception in ProtocolDataUnit. Error resetting stream.\");\n }\n\n // We need to degrade gracefully if this is an unrecognized PDU...\n // we'll probably see a lot of pdus that we haven't implemented yet.\n\n debug (\"Got PDU of type \" + pduType + \", \" + PduTypeField.toString (pduType.shortValue()));\n\n switch(pduType.shortValue())\n {\n\t case PduTypeField.COLLISION:\n\t\t debug (\"got a packet with PduTypeField.COLLISION, instantiating a CollisionPdu\");\n\t\t newPdu = new CollisionPdu();\n\t\t break;\n\n\t case PduTypeField.COMMENT: \n\t\t debug (\"got a packet with PduTypeField.COMMENT, instantiating a CommentPdu\");\n\t\t newPdu = new CommentPdu();\n\t\t break;\n\n\t case PduTypeField.CREATEENTITY: \n\t\t debug (\"got a packet with PduTypeField.CREATEENTITY, instantiating a CreateEntityPdu\");\n\t\t newPdu = new CreateEntityPdu();\n\t\t break;\n\n\t case PduTypeField.DATA: \n\t\t debug (\"got a packet with PduTypeField.DATA, instantiating a DataPdu\");\n\t\t newPdu = new DataPdu();\n\t\t break;\n\n\t case PduTypeField.DETONATION:\n\t\t // detonation PDU is the fire PDU's frequent companion\n\t\t debug (\"got a packet with PduTypeField.DETONATION, instantiating a DetonationPdu\");\n\t\t newPdu = new DetonationPdu();\n\t\t break;\n\n\t case PduTypeField.ENTITYSTATE:\n\t\t debug (\"got a packet with PduTypeField.ENTITYSTATE, instantiating an EntityStatePdu (ESPDU)\");\n\t\t newPdu = new EntityStatePdu();\n\t\t break;\n\n\t case PduTypeField.FIRE:\n\t\t debug (\"got a packet with PduTypeField.FIRE, instantiating a FirePdu\");\n\t\t newPdu = new FirePdu();\n\t\t break;\n\n\t case PduTypeField.RECEIVER: \n\t\t debug (\"got a packet with PduTypeField.RECEIVER, instantiating a ReceiverPdu\");\n\t\t newPdu = new ReceiverPdu();\n\t\t break;\n\t\t \n\t case PduTypeField.REMOVEENTITY: \n\t\t debug (\"got a packet with PduTypeField.REMOVEENTITY, instantiating a RemoveEntityPdu\");\n\t\t newPdu = new RemoveEntityPdu();\n\t\t break;\n\n\t case PduTypeField.SIGNAL: \n\t\t debug (\"got a packet with PduTypeField.SIGNAL, instantiating a SignalPdu\");\n\t\t newPdu = new SignalPdu();\n\t\t break;\n\n\t case PduTypeField.TRANSMITTER: \n\t\t debug (\"got a packet with PduTypeField.TRANSMITTER, instantiating a TransmitterPdu\");\n\t\t newPdu = new TransmitterPdu();\n\t\t break;\n\n\t default: // unrecognized PDU type found\n\t\t trace (\"Unrecognized PDU type received in packet: \" + pduType.shortValue() + \", \"\n\t\t + PduTypeField.toString (pduType.shortValue()));\n ProtocolDataUnit.printPacketContents(pByteArray);\n\t\t return null;\n }\n\n newPdu.deSerialize(initialDataStream);\n //newPdu.printValues(7);\n\n debug (\"translated a datagram into a PDU\");\n \n return newPdu; // may be null if PDU type not recognized\n}", "title": "" }, { "docid": "178b3dda36e24d1bcc253f70808d4354", "score": "0.4431529", "text": "@Test\n public void testbuildCombinedFragment() {\n byte[] original = ArrayConverter.hexStringToByteArray(\"123456789A123456789A\");\n collector.addFragment(fragmentOfMsg(0, 0, 3, original));\n collector.addFragment(fragmentOfMsg(0, 3, 5, original));\n collector.addFragment(fragmentOfMsg(0, 8, 2, original));\n DtlsHandshakeMessageFragment fragment = collector.buildCombinedFragment();\n checkFragment(fragment, 0, 10, original);\n }", "title": "" }, { "docid": "cba2bbbf13e64332ef09d8323760f594", "score": "0.4415793", "text": "private SplitResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "f391fddb9b25f69756226a048fa05bd2", "score": "0.441519", "text": "public static void parseFrame(byte[] msg,int msgSize){\n\t\tif( msgSize < 3){\n\t\t\tLog.d(TAG, \"Received a frame with bad size\");\n\t\t\treturn;\n\t\t}\n\n\t\tByteBuffer temp = ByteBuffer.wrap(msg);\n\t\tshort frameSize;\n\t\tbyte delim;\n\t\twhile(temp.position() < msgSize){\n\t\t\tdelim = temp.get();\n\t\t\tif( delim != DELIMETER){\n\t\t\t\tLog.d(TAG, \"Did not receive a valid Xbee frame\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\t\n\t\t\tframeSize = temp.getShort();\n\t\t\tif( temp.remaining() < frameSize){\n\t\t\t\tLog.d(TAG, \"Received a frame with bad size\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tprocessFrame(temp,frameSize);\n\t\t}\n\t}", "title": "" }, { "docid": "6b789c017ba9075dd7be9449294fca2d", "score": "0.44017646", "text": "private DataPacket[] processToDataPackets(byte[] data) {\n \t\n\t\t//create DataPacket[] that is the maximum lenght we might need for this byte array\n \tDataPacket[] arrayForAdding = new DataPacket[ data.length / (DataPacket.PACKET_HEADER_LENGHT + DataPacket.PACKET_BODY_LENGHT) ];\n \tint addingCtr = 0;\n \t\n \t//look for 'GE0x15' header and if found, create DataPacket from packet.\n \tint n = 0;\n \tfor (; n < data.length - (DataPacket.PACKET_BODY_LENGHT + DataPacket.PACKET_HEADER_LENGHT - 1); n++ ) {\n \t\t\n \t\tif (data[n] == asciiG) {\n \t\t\tif (data[n+1] == asciiE && data[n+2] == ascii0x15) {\n \t\t\t\tbyte[] packetArray = new byte[DataPacket.PACKET_BODY_LENGHT];\n\t \t\tSystem.arraycopy(data, n+3, packetArray, 0, DataPacket.PACKET_BODY_LENGHT);\n\t \t\t\n\t \t\tarrayForAdding[addingCtr] = new DataPacket(packetArray);\n\t \t\taddingCtr++;\n\t \t\t\n\t\t\t\t\tn += (DataPacket.PACKET_BODY_LENGHT + DataPacket.PACKET_HEADER_LENGHT - 1);\n \t\t\t}\n \t\t}\n \t}\n \t\n \t//now add leftover bytes to leftoverBytes.\n \tfor (; n < data.length; n++) {\n \t\tleftoverBytes.add(Byte.valueOf(data[n]));\n \t}\n \t\n \tDataPacket[] arrayToReturn = new DataPacket[addingCtr];\n \t//Copy array to arrayToReturn\n \tSystem.arraycopy(arrayForAdding, 0, arrayToReturn, 0, addingCtr);\n \t\n \treturn arrayToReturn;\n }", "title": "" }, { "docid": "9f7979504e09719349f7bb54847fbe2b", "score": "0.43891716", "text": "public static void getPdu(final GXDLMSSettings settings,\n final GXReplyData data) {\n int cmd = data.getCommand();\n // If header is not read yet or GBT message.\n if (data.getCommand() == Command.NONE || data.getGbt()) {\n // If PDU is missing.\n if (data.getData().size() - data.getData().position() == 0) {\n throw new IllegalArgumentException(\"Invalid PDU.\");\n }\n int index = data.getData().position();\n // Get command.\n cmd = data.getData().getUInt8();\n data.setCommand(cmd);\n switch (cmd) {\n case Command.READ_RESPONSE:\n if (!handleReadResponse(settings, data, index)) {\n return;\n }\n break;\n case Command.GET_RESPONSE:\n if (!handleGetResponse(settings, data, index)) {\n return;\n }\n break;\n case Command.SET_RESPONSE:\n handleSetResponse(settings, data);\n break;\n case Command.WRITE_RESPONSE:\n handleWriteResponse(data);\n break;\n case Command.METHOD_RESPONSE:\n handleMethodResponse(settings, data);\n break;\n case Command.ACCESS_RESPONSE:\n handleAccessResponse(settings, data);\n break;\n case Command.GENERAL_BLOCK_TRANSFER:\n handleGbt(settings, data);\n break;\n case Command.AARQ:\n case Command.AARE:\n // This is parsed later.\n data.getData().position(data.getData().position() - 1);\n break;\n case Command.RELEASE_RESPONSE:\n break;\n case Command.CONFIRMED_SERVICE_ERROR:\n handleConfirmedServiceError(data);\n break;\n case Command.EXCEPTION_RESPONSE:\n handleExceptionResponse(data);\n break;\n case Command.GET_REQUEST:\n case Command.READ_REQUEST:\n case Command.WRITE_REQUEST:\n case Command.SET_REQUEST:\n case Command.METHOD_REQUEST:\n case Command.RELEASE_REQUEST:\n // Server handles this.\n if ((data.getMoreData().getValue()\n & RequestTypes.FRAME.getValue()) != 0) {\n break;\n }\n break;\n case Command.GLO_READ_REQUEST:\n case Command.GLO_WRITE_REQUEST:\n case Command.GLO_GET_REQUEST:\n case Command.GLO_SET_REQUEST:\n case Command.GLO_METHOD_REQUEST:\n cmd = handleGloRequest(settings, data, cmd);\n // Server handles this.\n break;\n case Command.GLO_READ_RESPONSE:\n case Command.GLO_WRITE_RESPONSE:\n case Command.GLO_GET_RESPONSE:\n case Command.GLO_SET_RESPONSE:\n case Command.GLO_METHOD_RESPONSE:\n case Command.GENERAL_GLO_CIPHERING:\n case Command.GLO_EVENT_NOTIFICATION_REQUEST:\n handleGloResponse(settings, data, index);\n break;\n case Command.DATA_NOTIFICATION:\n handleDataNotification(settings, data);\n break;\n case Command.EVENT_NOTIFICATION:\n // Client handles this.\n break;\n case Command.INFORMATION_REPORT:\n // Client handles this.\n break;\n case Command.GENERAL_CIPHERING:\n handleGeneralCiphering(settings, data);\n break;\n default:\n throw new IllegalArgumentException(\"Invalid Command.\");\n }\n } else if ((data.getMoreData().getValue()\n & RequestTypes.FRAME.getValue()) == 0) {\n // Is whole block is read and if last packet and data is not try to\n // peek.\n if (!data.getPeek() && data.getMoreData() == RequestTypes.NONE) {\n if (data.getCommand() == Command.AARE\n || data.getCommand() == Command.AARQ) {\n data.getData().position(0);\n } else {\n data.getData().position(1);\n }\n }\n // Get command if operating as a server.\n if (settings.isServer()) {\n // Ciphered messages are handled after whole PDU is received.\n switch (cmd) {\n case Command.GLO_READ_REQUEST:\n case Command.GLO_WRITE_REQUEST:\n case Command.GLO_GET_REQUEST:\n case Command.GLO_SET_REQUEST:\n case Command.GLO_METHOD_REQUEST:\n case Command.GLO_EVENT_NOTIFICATION_REQUEST:\n data.setCommand(Command.NONE);\n data.getData().position(data.getCipherIndex());\n getPdu(settings, data);\n break;\n default:\n break;\n }\n } else {\n // Client do not need a command any more.\n data.setCommand(Command.NONE);\n // Ciphered messages are handled after whole PDU is received.\n switch (cmd) {\n case Command.GLO_READ_RESPONSE:\n case Command.GLO_WRITE_RESPONSE:\n case Command.GLO_GET_RESPONSE:\n case Command.GLO_SET_RESPONSE:\n case Command.GLO_METHOD_RESPONSE:\n data.getData().position(data.getCipherIndex());\n getPdu(settings, data);\n break;\n default:\n break;\n }\n }\n }\n\n // Get data only blocks if SN is used. This is faster.\n if (cmd == Command.READ_RESPONSE\n && data.getCommandType() == SingleReadResponse.DATA_BLOCK_RESULT\n && (data.getMoreData().getValue()\n & RequestTypes.FRAME.getValue()) != 0) {\n return;\n }\n // Get data if all data is read or we want to peek data.\n if (data.getXml() == null && !data.getGbt()\n && data.getData().position() != data.getData().size()\n && (cmd == Command.READ_RESPONSE || cmd == Command.GET_RESPONSE\n || cmd == Command.METHOD_RESPONSE)\n && (data.getMoreData() == RequestTypes.NONE\n || data.getPeek())) {\n getValueFromData(settings, data);\n }\n }", "title": "" }, { "docid": "7e429fde86250828c55d037c4e9f5aee", "score": "0.4385612", "text": "@Override\n public HandshakeMessage decode(ByteBuffer bb) {\n while(bb.hasRemaining() && totalRead < bodyBytes.length){\n bodyBytes[totalRead++] = bb.get();\n }\n if(totalRead < 68) return null;\n /**\n * Verify this is a valid message\n */\n byte ptrLen = bodyBytes[0];\n if(ptrLen != HandshakeMessage.PTR_LEN) throw new RuntimeException(\"Not a valid handshake message: invalid ptrLen \"+ptrLen);\n\n String ptrStr = new String(bodyBytes, 1, 19);\n if(!Objects.equals(HandshakeMessage.PTR, ptrStr)) throw new RuntimeException(\"Not a valid handshake message: Invalid ptrString \"+ptrStr);\n\n byte[] infoHash = Arrays.copyOfRange(bodyBytes, 28, 48);\n byte[] peerBytes = Arrays.copyOfRange(bodyBytes, 48, 68);\n HandshakeMessage msg = new HandshakeMessage();\n msg.setPtrLen(ptrLen);\n msg.setPtrstr(ptrStr);\n msg.setInfoHash(infoHash);\n msg.setPeerId(new String(peerBytes));\n\n return msg;\n }", "title": "" }, { "docid": "91d5935c7fa569e5f750f248cb1299d1", "score": "0.43842047", "text": "public abstract void convert(byte[] bytes,List<Message> list);", "title": "" }, { "docid": "164ff0392298099925867ac172187afc", "score": "0.43745694", "text": "private void sendDMXFrame(){\n\n\t\tlong now = System.currentTimeMillis();\n\n\t\tif(now-lastSend>refreshDelay || needSend||!buffered){\n\n\t\t\t//register last time of sending.\n\t\t\tneedSend=false;\n\t\t\tlastSend=now;\n\n\t\t\tif(lanboxMessage!=null){\n\t\t\t\tudp.send(lanboxMessage,lanboxIP, lanboxPort);\n\t\t\t}\n\n\t\t\tif(dmxProMessage!=null){\n\t\t\t\tif(dmxProSerialPort!=null){\n\t\t\t\t\tdmxProSerialPort.write(dmxProMessage);\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"not sending DMX frame. serial port is null!!\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "59f356de39d5bdea0f8046c06f9253af", "score": "0.43620822", "text": "public List<byte[]> createOutgoingPackets(@NonNull byte[] payload) {\n final ArrayList<byte[]> packets = new ArrayList<>();\n if (payload.length <= HEADER_PACKET_PAYLOAD_LENGTH) {\n final byte[] headPacket = new byte[2 + payload.length];\n headPacket[1] = 1;\n System.arraycopy(\n /* src */ payload,\n /* srcStart */ 0,\n /* dest */ headPacket,\n /* destStart */ 2,\n /* length */ payload.length\n );\n packets.add(headPacket);\n } else {\n int lengthNoHeader = (payload.length - HEADER_PACKET_PAYLOAD_LENGTH);\n int packetCount = (int) Math.ceil(1f + lengthNoHeader / (float) BODY_PACKET_PAYLOAD_LENGTH);\n\n int bytesRemaining = payload.length;\n for (int packetIndex = 0; packetIndex < packetCount; packetIndex++) {\n if (packetIndex == 0) {\n final byte[] headerPacket = new byte[GattCharacteristic.PACKET_LENGTH];\n headerPacket[0] = (byte) packetIndex;\n headerPacket[1] = (byte) packetCount;\n\n System.arraycopy(\n /* src */ payload,\n /* srcStart */ 0,\n /* dest */ headerPacket,\n /* destStart */ 2,\n /* length */ HEADER_PACKET_PAYLOAD_LENGTH\n );\n bytesRemaining -= HEADER_PACKET_PAYLOAD_LENGTH;\n\n packets.add(headerPacket);\n } else {\n final int packetLength = (packetIndex == packetCount - 1) ? (bytesRemaining + 1) : GattCharacteristic.PACKET_LENGTH;\n final byte[] packet = new byte[packetLength];\n packet[0] = (byte) packetIndex;\n\n int dataStart = HEADER_PACKET_PAYLOAD_LENGTH + (packetIndex - 1) * BODY_PACKET_PAYLOAD_LENGTH;\n int dataAmount = packetLength - 1;\n System.arraycopy(\n /* src */ payload,\n /* srcStart */ dataStart,\n /* dest */ packet,\n /* destStart */ 1,\n /* length */ dataAmount\n );\n bytesRemaining -= dataAmount;\n\n packets.add(packet);\n }\n }\n }\n\n return packets;\n }", "title": "" }, { "docid": "53400a1482c0109113da069b11984705", "score": "0.43387192", "text": "@Test\n public void testParseFragmentedMessageGood() {\n Tester tester = clientExtensions.newTester(\"permessage-deflate\");\n\n tester.assertNegotiated(\"permessage-deflate\");\n\n tester.parseIncomingHex(// 1 message, 3 frame\n \"410C\", // HEADER TEXT / fin=false / rsv1=true\n \"F248CDC9C95700000000FFFF\",\n \"000B\", // HEADER CONTINUATION / fin=false / rsv1=false\n \"0ACF2FCA4901000000FFFF\",\n \"8003\", // HEADER CONTINUATION / fin=true / rsv1=false\n \"520400\"\n );\n\n Frame txtFrame = new TextFrame().setPayload(\"Hello \").setFin(false);\n Frame con1Frame = new ContinuationFrame().setPayload(\"World\").setFin(false);\n Frame con2Frame = new ContinuationFrame().setPayload(\"!\").setFin(true);\n\n tester.assertHasFrames(txtFrame, con1Frame, con2Frame);\n }", "title": "" }, { "docid": "b9139e55b7c16b381b4933b3028b5316", "score": "0.43311253", "text": "public void decodePackedData( CfmsVperfByteDecoder bd ) throws IOException, AqErrorException\n {\n fuelConsumed.decodeFromBytes( bd, FUEL_CONSUMED_MIN, FUEL_CONSUMED_RES, 2 );\n }", "title": "" }, { "docid": "8b5a0e46c16300024242184389ce27ad", "score": "0.43275675", "text": "DataSplitOrBuilder getSplitOrBuilder();", "title": "" }, { "docid": "8b5a0e46c16300024242184389ce27ad", "score": "0.43275675", "text": "DataSplitOrBuilder getSplitOrBuilder();", "title": "" }, { "docid": "c7831fb122ae98d6fd686d9a54bb933a", "score": "0.43256527", "text": "@Override\n protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {\n\n while (in.readableBytes() > 4) {\n\n byte [] magic = new byte[TbaMagic.MAGIC_OFFSET];\n for (int i = 0; i < TbaMagic.MAGIC_OFFSET; i++) {\n magic[i] = in.readByte();\n }\n TbaMagic magicHead = TbaHeadUtil.preParser(magic);\n\n int msg_len = magicHead.getLength();\n short flag = magicHead.getFlag();\n\n TbaRpcByteBuffer msg = null;\n byte[] relay = null;\n TbaRpcHead header = null;\n\n if(flag == TbaEncryptType.WHOLE) {\n\n byte[] encrypt = new byte[msg_len - 4];\n for (int i = 0; i < msg_len - 4; i++) {\n encrypt[i] = in.readByte();\n }\n\n SessionFactory factory = ApplicationContextUtils.getBean(SessionFactory.class);\n Session session = factory.getSessionByChannelId(ctx.channel().id().asLongText());\n String serverRandom = String.valueOf(session.getServerRandom());\n log.info(\"decrypt key: {}\", serverRandom);\n String original = TbaAesUtils.decode(new String(encrypt, \"utf-8\"), serverRandom);\n relay = original.getBytes(\"ISO8859-1\");\n msg = new TbaRpcByteBuffer(relay, relay.length);\n }\n if(flag == TbaEncryptType.BODY) {\n\n byte[] all = new byte[TbaHeadUtil.HEAD_SIZE];\n System.arraycopy(magic, 0 , all, 0, TbaMagic.MAGIC_OFFSET);\n for (int i = TbaMagic.MAGIC_OFFSET; i < TbaHeadUtil.HEAD_SIZE; i++) {\n all[i] = in.readByte();\n }\n\n byte[] encryptData = new byte[msg_len - TbaHeadUtil.HEAD_SIZE];\n for (int i = 0; i < msg_len - TbaHeadUtil.HEAD_SIZE; i++) {\n encryptData[i] = in.readByte();\n }\n\n header = TbaHeadUtil.parser(all);\n\n if (header.getType() == RpcEventType.ROOMGATE_CONNECT_RES) {\n\n SessionFactory factory = ApplicationContextUtils.getBean(SessionFactory.class);\n Session session = factory.getSessionByChannelId(ctx.channel().id().asLongText());\n String serverRandom = String.valueOf(session.getServerRandom());\n log.info(\"decrypt key: {}\", serverRandom);\n String original = TbaAesUtils.decode(new String(encryptData, \"utf-8\"), serverRandom);\n\n CommonRes res = new TbaSerializeUtils<CommonRes>().deserialize(original.getBytes(\"ISO8859-1\"), CommonRes.class);\n out.add(res);\n\n }\n else if (header.getType() == RpcEventType.ROOMGATE_CHAT_RELAY) {\n\n SessionFactory factory = ApplicationContextUtils.getBean(SessionFactory.class);\n Session session = factory.getSessionByChannelId(ctx.channel().id().asLongText());\n RelayProtocol proxy = new RelayProtocol();\n proxy.setHead(header);\n proxy.setData(encryptData);\n out.add(proxy);\n\n }\n\n return;\n }\n else {\n msg = new TbaRpcByteBuffer(msg_len);\n msg.writeI32(msg_len);\n msg.writeI16(flag);\n for (int i = 0; i < msg_len - 6; i++) {\n msg.writeByte(in.readByte());\n }\n }\n\n TbaRpcEventParser parser = new TbaRpcEventParser(msg);\n header = parser.Head();\n\n log.info(\"msg receive type: {}\", header.getType());\n\n try {\n if (header.getType() == RpcEventType.CONNECT_RES) {\n TbaRpcProtocolFactory<CommonRes> protocol = new TbaRpcProtocolFactory<CommonRes>(msg);\n out.add(protocol.Decode(CommonRes.class));\n }\n else if (header.getType() == RpcEventType.MT_HELLO_NOTIFY) {\n TbaRpcProtocolFactory<HelloNotify> protocol = new TbaRpcProtocolFactory<HelloNotify>(msg);\n out.add(protocol.Decode(HelloNotify.class));\n }\n }\n catch(TbaException e){\n log.error(e.getLocalizedMessage(), e);\n }\n catch(InstantiationException e){\n log.error(e.getLocalizedMessage(), e);\n }\n catch(IllegalAccessException e){\n log.error(e.getLocalizedMessage(), e);\n }\n }\n }", "title": "" }, { "docid": "bcd893ded3fbd2702e758cf17754c839", "score": "0.43053204", "text": "@Override\n\tpublic void unpackBody(IoBuffer arg0) {\n\n\t}", "title": "" }, { "docid": "d0d00fda4e1189c5f56a86b5b95933e5", "score": "0.42925054", "text": "private SmppSplitter createSplitter(Message in) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bd1eb1ab15f3d9981465bbbdb6d96002", "score": "0.42857522", "text": "@Test\n public void testSendMgmtFrameMixed() throws Exception {\n testSendMgmtFrameThrowsException();\n testSendMgmtFrameSuccess();\n testSendMgmtFrameSuccess();\n testSendMgmtFrameFailure();\n testSendMgmtFrameFailure();\n testSendMgmtFrameTimeout();\n testSendMgmtFrameTimeout();\n testSendMgmtFrameSuccess();\n testSendMgmtFrameTimeout();\n testSendMgmtFrameFailure();\n testSendMgmtFrameSuccess();\n }", "title": "" }, { "docid": "b83aafd92cd8fd24abcd365669dca4f4", "score": "0.42835587", "text": "private void decodeFromTCPStringDelimited(final String payload) {\n\t\tfinal String[] decoded = payload.split(fieldDelimiter);\n\n\t\tmessage.setInputChannel(decoded[0]);\n\t\tmessage.setSubchannel(decoded[1]);\n\t\tmessage.setSubsubchannel(decoded[2]);\n\t\tmessage.setLayer(decoded[3]);\n\t\tmessage.setManagedId(decoded[4]);\n\t\tfinal int timestamp = Integer.valueOf(decoded[5]);\n\t\tmessage.setTimestamp(timestamp);\n\t\tfinal short value = Short.valueOf(decoded[6]);\n\t\tmessage.setValue(value);\n\t\tmessage.setInvoker(decoded[7]);\n\t\tmessage.setInvokerVersion(decoded[8]);\n\t\tmessage.setTarget(decoded[9]);\n\t\tmessage.setTargetVersion(decoded[10]);\n\t\tmessage.setRequestProtocol(decoded[11]);\n\t\tmessage.setRetval(decoded[12]);\n\n\t}", "title": "" }, { "docid": "b73c9394db95c9199fde61d8c9189528", "score": "0.4279726", "text": "public static Pointer<PyObject > PyUnicodeUCS4_Splitlines(Pointer<PyObject > s, int keepends) {\n\t\treturn Pointer.pointerToAddress(PyUnicodeUCS4_Splitlines(Pointer.getPeer(s), keepends), PyObject.class);\n\t}", "title": "" }, { "docid": "9cc161eb946f2c1295178451c9026c03", "score": "0.4278799", "text": "public DBBuffer split(int offset) throws IndexOutOfBoundsException, IOException {\n\t\tsynchronized (dbh) {\n\t\t\tdbh.checkTransaction();\n\t\t\treturn new DBBuffer(dbh, buf.split(offset));\n\t\t}\n\t}", "title": "" }, { "docid": "980e6ac3201962d43841db9462e7863a", "score": "0.42770073", "text": "@Test\n public void prepareCommandStationPomMessage4() throws ProtocolException {\n byte[] message =\n new byte[] { 0x0D, 0x00, 0x1A, 0x67, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x02, 0x00, 0x00, 0x03 };\n CommandStationPomMessage pomMessage = new CommandStationPomMessage(message);\n Assert.assertNotNull(pomMessage);\n\n AddressData locoAddress = new AddressData(3, AddressTypeEnum.LOCOMOTIVE_FORWARD);\n\n LOGGER.info(\"Prepare pomMessage: {}\", pomMessage);\n Assert.assertEquals(pomMessage.getDecoderAddress(), locoAddress);\n\n Assert.assertEquals(pomMessage.getAddressX(), 0x00);\n Assert.assertEquals(pomMessage.getMid(), 0x00);\n Assert.assertEquals(pomMessage.getOpCode(), (int) PomOperation.WR_BYTE.getType());\n Assert.assertEquals(pomMessage.getCvNumber(), 3);\n Assert.assertEquals(pomMessage.getCvValue(), 3);\n }", "title": "" }, { "docid": "37826ecb1fa7072798a8f71f5b4d359e", "score": "0.42736363", "text": "@Test\r\n public void testMultipleDecode() throws UnsupportedEncodingException,\r\n AddATudeException, EOFException {\r\n String msg1 = \"ADDATUDEv1 345 NEW 1 1.2 3.4 2 BU6 Baylor\\r\\n\"\r\n + \"ADDATUDEv1 345 NEW 2 8 7.2 3 TCU\"\r\n + \"26 Texas Christian University\\r\\n\"\r\n + \"ADDATUDEv1 345 NEW 3 -45 106 2 TX4 Waco\\r\\n\";\r\n MessageInput in = new MessageInput(new ByteArrayInputStream(\r\n msg1.getBytes(MessageOutput.ENCODING)));\r\n\r\n AddATudeNewLocation newLocation1 = (AddATudeNewLocation) AddATudeMessage\r\n .decode(in);\r\n AddATudeNewLocation newLocation2 = (AddATudeNewLocation) AddATudeMessage\r\n .decode(in);\r\n AddATudeNewLocation newLocation3 = (AddATudeNewLocation) AddATudeMessage\r\n .decode(in);\r\n\r\n assertEquals(\"NEW\", newLocation1.getOperation());\r\n assertEquals(1, newLocation1.getLocationRecord().getUserId());\r\n assertEquals(\"1.2\", newLocation1.getLocationRecord().getLongitude());\r\n assertEquals(\"3.4\", newLocation1.getLocationRecord().getLatitude());\r\n assertEquals(\"BU\", newLocation1.getLocationRecord().getLocationName());\r\n assertEquals(\"Baylor\",\r\n newLocation1.getLocationRecord().getLocationDescription());\r\n assertEquals(\"NEW\", newLocation2.getOperation());\r\n assertEquals(2, newLocation2.getLocationRecord().getUserId());\r\n assertEquals(\"8\", newLocation2.getLocationRecord().getLongitude());\r\n assertEquals(\"7.2\", newLocation2.getLocationRecord().getLatitude());\r\n assertEquals(\"TCU\", newLocation2.getLocationRecord().getLocationName());\r\n assertEquals(\"Texas Christian University\",\r\n newLocation2.getLocationRecord().getLocationDescription());\r\n assertEquals(\"NEW\", newLocation3.getOperation());\r\n assertEquals(3, newLocation3.getLocationRecord().getUserId());\r\n assertEquals(\"-45\", newLocation3.getLocationRecord().getLongitude());\r\n assertEquals(\"106\", newLocation3.getLocationRecord().getLatitude());\r\n assertEquals(\"TX\", newLocation3.getLocationRecord().getLocationName());\r\n assertEquals(\"Waco\",\r\n newLocation3.getLocationRecord().getLocationDescription());\r\n }", "title": "" }, { "docid": "3c954a6fead300bd08a153e8154fdb7b", "score": "0.42695728", "text": "private static IoBuffer buildWSDataFrameBuffer(IoBuffer buf) {\n \n IoBuffer buffer = IoBuffer.allocate(buf.limit() + 2, false);\n buffer.setAutoExpand(true);\n buffer.put((byte) 0x82);\n if(buffer.capacity() <= 125){\n byte capacity = (byte) (buf.limit());\n buffer.put(capacity);\n }\n else{\n buffer.put((byte)126);\n buffer.putShort((short)buf.limit());\n } \n buffer.put(buf);\n buffer.flip();\n return buffer;\n }", "title": "" }, { "docid": "08a6ea4abd28740a85e25660cc497bd5", "score": "0.4269542", "text": "void processPacket(@NonNull byte[] packet) {\n int sequenceNumber = packet[0];\n if (this.expectedIndex != sequenceNumber) {\n cleanUp();\n\n dispatchError(new SenseProtobufError(SenseProtobufError.Reason.DATA_LOST_OR_OUT_OF_ORDER));\n\n return;\n } else {\n this.expectedIndex = sequenceNumber + 1;\n }\n\n\n final int packetBufferStart;\n if (sequenceNumber == 0) {\n // Assume the packets arrive in order.\n this.packetsProcessed = 0;\n this.totalPackets = packet[1];\n this.bufferOffset = 0;\n\n packetBufferStart = HEADER_PACKET_HEADER_LENGTH;\n\n int bufferSize = (HEADER_PACKET_PAYLOAD_LENGTH +\n BODY_PACKET_PAYLOAD_LENGTH * (this.totalPackets - 1));\n this.buffer = new byte[bufferSize];\n this.bufferDataLength = (packet.length - packetBufferStart);\n } else {\n packetBufferStart = BODY_PACKET_HEADER_LENGTH;\n this.bufferDataLength += (packet.length - packetBufferStart);\n }\n\n // copy data in packets to a continues payload buffer.\n if (this.bufferOffset < this.buffer.length) {\n int packetLength = (packet.length - packetBufferStart);\n System.arraycopy(\n /* src */ packet,\n /* srcStart */ packetBufferStart,\n /* dest */ buffer,\n /* destStart */ bufferOffset,\n /* length */ packetLength\n );\n\n bufferOffset += packetLength;\n }\n this.packetsProcessed++;\n\n if (this.packetsProcessed == this.totalPackets) {\n final MorpheusCommand data;\n try {\n // This particular Parser#parseFrom variant is not delegated in the generated MorpheusCommand.\n data = MorpheusCommand.PARSER.parseFrom(this.buffer, 0, bufferDataLength);\n this.dispatchData(data);\n } catch (InvalidProtocolBufferException e) {\n dispatchError(new SenseProtobufError(SenseProtobufError.Reason.INVALID_PROTOBUF));\n }\n\n cleanUp();\n }\n }", "title": "" }, { "docid": "6c381c6d545a6924942338b49322d71d", "score": "0.42673638", "text": "static void parseSnrmUaResponse(final GXByteBuffer data,\n final GXDLMSLimits limits) {\n // If default settings are used.\n if (data.available() != 0) {\n data.getUInt8(); // Skip FromatID\n data.getUInt8(); // Skip Group ID.\n data.getUInt8(); // Skip Group len\n int val;\n while (data.position() < data.size()) {\n short id = data.getUInt8();\n short len = data.getUInt8();\n switch (len) {\n case 1:\n val = data.getUInt8();\n break;\n case 2:\n val = data.getUInt16();\n break;\n case 4:\n val = (int) data.getUInt32();\n break;\n default:\n throw new GXDLMSException(\"Invalid Exception.\");\n }\n // RX / TX are delivered from the partner's point of view =>\n // reversed to ours\n switch (id) {\n case HDLCInfo.MAX_INFO_RX:\n limits.setMaxInfoTX(val);\n break;\n case HDLCInfo.MAX_INFO_TX:\n limits.setMaxInfoRX(val);\n break;\n case HDLCInfo.WINDOW_SIZE_RX:\n limits.setWindowSizeTX(val);\n break;\n case HDLCInfo.WINDOW_SIZE_TX:\n limits.setWindowSizeRX(val);\n break;\n default:\n throw new GXDLMSException(\"Invalid UA response.\");\n }\n }\n }\n }", "title": "" }, { "docid": "bfea945ff15b73a4096eece164eb2549", "score": "0.42644697", "text": "private ServiceMessage decode(ByteBuf dataBuffer, ByteBuf headersBuffer)\n throws MessageCodecException {\n ServiceMessage.Builder builder = ServiceMessage.builder();\n\n if (dataBuffer.isReadable()) {\n builder.data(dataBuffer);\n }\n\n if (headersBuffer.isReadable()) {\n try (ByteBufInputStream stream = new ByteBufInputStream(headersBuffer, true)) {\n builder.headers(headersCodec.decode(stream));\n } catch (Throwable ex) {\n ReferenceCountUtil.safestRelease(dataBuffer); // release data as well\n throw new MessageCodecException(\"Failed to decode message headers\", ex);\n }\n }\n\n return builder.build();\n }", "title": "" }, { "docid": "f456943dc50c7a620b6dbbd73ede55c9", "score": "0.42615128", "text": "ByteBuffer processPacket(ByteBuffer boss);", "title": "" }, { "docid": "54c42519dc9123fd12eed10f92f25584", "score": "0.4257753", "text": "static void getTcpData(final GXDLMSSettings settings,\n final GXByteBuffer buff, final GXReplyData data) {\n // If whole frame is not received yet.\n if (buff.size() - buff.position() < 8) {\n data.setComplete(false);\n return;\n }\n int pos = buff.position();\n int value;\n // Get version\n value = buff.getUInt16();\n if (value != 1) {\n throw new GXDLMSException(\"Unknown version.\");\n }\n\n // Check TCP/IP addresses.\n checkWrapperAddress(settings, buff, data);\n // Get length.\n value = buff.getUInt16();\n boolean compleate = !((buff.size() - buff.position()) < value);\n data.setComplete(compleate);\n if (!compleate) {\n buff.position(pos);\n } else {\n data.setPacketLength(buff.position() + value);\n }\n }", "title": "" }, { "docid": "f1cce9ff04f04553232dee1f394dd3da", "score": "0.42437997", "text": "private boolean processData() throws Exception {\n\n // outside frame?\n if (mFrameHeader == null) {\n\n // need at least 2 bytes from WS frame header to start processing\n if (mApplicationBuffer.position() >= 2) {\n\n byte b0 = mApplicationBuffer.get(0);\n boolean fin = (b0 & 0x80) != 0;\n int rsv = (b0 & 0x70) >> 4;\n int opcode = b0 & 0x0f;\n\n byte b1 = mApplicationBuffer.get(1);\n boolean masked = (b1 & 0x80) != 0;\n int payload_len1 = b1 & 0x7f;\n\n // now check protocol compliance\n\n if (rsv != 0) {\n throw new WebSocketException(\"RSV != 0 and no extension negotiated\");\n }\n\n if (masked) {\n // currently, we don't allow this. need to see whats the final spec.\n throw new WebSocketException(\"masked server frame\");\n }\n\n if (opcode > 7) {\n // control frame\n if (!fin) {\n throw new WebSocketException(\"fragmented control frame\");\n }\n if (payload_len1 > 125) {\n throw new WebSocketException(\"control frame with payload length > 125 octets\");\n }\n if (opcode != 8 && opcode != 9 && opcode != 10) {\n throw new WebSocketException(\"control frame using reserved opcode \" + opcode);\n }\n if (opcode == 8 && payload_len1 == 1) {\n throw new WebSocketException(\"received close control frame with payload len 1\");\n }\n } else {\n // message frame\n if (opcode != 0 && opcode != 1 && opcode != 2) {\n throw new WebSocketException(\"data frame using reserved opcode \" + opcode);\n }\n if (!mInsideMessage && opcode == 0) {\n throw new WebSocketException(\"received continuation data frame outside fragmented message\");\n }\n if (mInsideMessage && opcode != 0) {\n throw new WebSocketException(\"received non-continuation data frame while inside fragmented message\");\n }\n }\n\n int mask_len = masked ? 4 : 0;\n int header_len = 0;\n\n if (payload_len1 < 126) {\n header_len = 2 + mask_len;\n } else if (payload_len1 == 126) {\n header_len = 2 + 2 + mask_len;\n } else if (payload_len1 == 127) {\n header_len = 2 + 8 + mask_len;\n } else {\n // should not arrive here\n throw new Exception(\"logic error\");\n }\n\n // continue when complete frame header is available\n if (mApplicationBuffer.position() >= header_len) {\n\n // determine frame payload length\n int i = 2;\n long payload_len = 0;\n if (payload_len1 == 126) {\n payload_len = ((0xff & mApplicationBuffer.get(i)) << 8) | (0xff & mApplicationBuffer.get(i + 1));\n if (payload_len < 126) {\n throw new WebSocketException(\"invalid data frame length (not using minimal length encoding)\");\n }\n i += 2;\n } else if (payload_len1 == 127) {\n if ((0x80 & mApplicationBuffer.get(i + 0)) != 0) {\n throw new WebSocketException(\"invalid data frame length (> 2^63)\");\n }\n payload_len = ((0xff & mApplicationBuffer.get(i + 0)) << 56) |\n ((0xff & mApplicationBuffer.get(i + 1)) << 48) |\n ((0xff & mApplicationBuffer.get(i + 2)) << 40) |\n ((0xff & mApplicationBuffer.get(i + 3)) << 32) |\n ((0xff & mApplicationBuffer.get(i + 4)) << 24) |\n ((0xff & mApplicationBuffer.get(i + 5)) << 16) |\n ((0xff & mApplicationBuffer.get(i + 6)) << 8) |\n ((0xff & mApplicationBuffer.get(i + 7)));\n if (payload_len < 65536) {\n throw new WebSocketException(\"invalid data frame length (not using minimal length encoding)\");\n }\n i += 8;\n } else {\n payload_len = payload_len1;\n }\n\n // immediately bail out on frame too large\n if (payload_len > mWebSocketOptions.getMaxFramePayloadSize()) {\n throw new WebSocketException(\"frame payload too large\");\n }\n\n // save frame header metadata\n mFrameHeader = new WebSocketFrameHeader();\n mFrameHeader.setOpcode(opcode);\n mFrameHeader.setFin(fin);\n mFrameHeader.setReserved(rsv);\n mFrameHeader.setPayloadLength((int) payload_len);\n mFrameHeader.setHeaderLength(header_len);\n mFrameHeader.setTotalLen(mFrameHeader.getHeaderLength() + mFrameHeader.getPayloadLength());\n\n if (masked) {\n byte[] mask = new byte[4];\n for (int j = 0; j < 4; ++j) {\n mask[i] = (byte) (0xff & mApplicationBuffer.get(i + j));\n }\n mFrameHeader.setMask(mask);\n\n i += 4;\n } else {\n mFrameHeader.setMask(null);\n }\n\n // continue processing when payload empty or completely buffered\n return mFrameHeader.getPayloadLength() == 0 || mApplicationBuffer.position() >= mFrameHeader.getTotalLength();\n\n } else {\n\n // need more data\n return false;\n }\n } else {\n\n // need more data\n return false;\n }\n\n } else {\n\n /// \\todo refactor this for streaming processing, incl. fail fast on invalid UTF-8 within frame already\n\n // within frame\n\n // see if we buffered complete frame\n if (mApplicationBuffer.position() >= mFrameHeader.getTotalLength()) {\n\n // cut out frame payload\n byte[] framePayload = null;\n int oldPosition = mApplicationBuffer.position();\n if (mFrameHeader.getPayloadLength() > 0) {\n framePayload = new byte[mFrameHeader.getPayloadLength()];\n mApplicationBuffer.position(mFrameHeader.getHeaderLength());\n mApplicationBuffer.get(framePayload, 0, (int) mFrameHeader.getPayloadLength());\n }\n mApplicationBuffer.position(mFrameHeader.getTotalLength());\n mApplicationBuffer.limit(oldPosition);\n mApplicationBuffer.compact();\n\n if (mFrameHeader.getOpcode() > 7) {\n // control frame\n\n if (mFrameHeader.getOpcode() == 8) {\n\n int code = WebSocketCloseCode.RESERVED_NO_STATUS;\n String reason = null;\n\n if (mFrameHeader.getPayloadLength() >= 2) {\n\n // parse and check close code\n code = (framePayload[0] & 0xff) * 256 + (framePayload[1] & 0xff);\n if (code < 1000\n || (code >= 1000 && code <= 2999 &&\n code != 1000 && code != 1001 && code != 1002 && code != 1003 && code != 1007 && code != 1008 && code != 1009 && code != 1010 && code != 1011)\n || code >= 5000) {\n\n throw new WebSocketException(\"invalid close code \" + code);\n }\n\n // parse and check close reason\n if (mFrameHeader.getPayloadLength() > 2) {\n\n byte[] ra = new byte[mFrameHeader.getPayloadLength() - 2];\n System.arraycopy(framePayload, 2, ra, 0, mFrameHeader.getPayloadLength() - 2);\n\n Utf8Validator val = new Utf8Validator();\n val.validate(ra);\n if (!val.isValid()) {\n throw new WebSocketException(\"invalid close reasons (not UTF-8)\");\n } else {\n reason = new String(ra, WebSocket.UTF8_ENCODING);\n }\n }\n }\n onClose(code, reason);\n\n } else if (mFrameHeader.getOpcode() == 9) {\n // dispatch WS ping\n onPing(framePayload);\n\n } else if (mFrameHeader.getOpcode() == 10) {\n // dispatch WS pong\n onPong(framePayload);\n\n } else {\n\n // should not arrive here (handled before)\n throw new Exception(\"logic error\");\n }\n\n } else {\n // message frame\n\n if (!mInsideMessage) {\n // new message started\n mInsideMessage = true;\n mMessageOpcode = mFrameHeader.getOpcode();\n if (mMessageOpcode == 1 && mWebSocketOptions.getValidateIncomingUtf8()) {\n mUTF8Validator.reset();\n }\n }\n\n if (framePayload != null) {\n\n // immediately bail out on message too large\n if (mMessagePayload.size() + framePayload.length > mWebSocketOptions.getMaxMessagePayloadSize()) {\n throw new WebSocketException(\"message payload too large\");\n }\n\n // validate incoming UTF-8\n if (mMessageOpcode == 1 && mWebSocketOptions.getValidateIncomingUtf8() && !mUTF8Validator.validate(framePayload)) {\n throw new WebSocketException(\"invalid UTF-8 in text message payload\");\n }\n\n // buffer frame payload for message\n mMessagePayload.write(framePayload);\n }\n\n // on final frame ..\n if (mFrameHeader.isFin()) {\n\n if (mMessageOpcode == 1) {\n\n // verify that UTF-8 ends on codepoint\n if (mWebSocketOptions.getValidateIncomingUtf8() && !mUTF8Validator.isValid()) {\n throw new WebSocketException(\"UTF-8 text message payload ended within Unicode code point\");\n }\n\n // deliver text message\n if (mWebSocketOptions.getReceiveTextMessagesRaw()) {\n\n // dispatch WS text message as raw (but validated) UTF-8\n onRawTextMessage(mMessagePayload.toByteArray());\n\n } else {\n\n // dispatch WS text message as Java String (previously already validated)\n String s = new String(mMessagePayload.toByteArray(), WebSocket.UTF8_ENCODING);\n onTextMessage(s);\n }\n\n } else if (mMessageOpcode == 2) {\n\n // dispatch WS binary message\n onBinaryMessage(mMessagePayload.toByteArray());\n\n } else {\n\n // should not arrive here (handled before)\n throw new Exception(\"logic error\");\n }\n\n // ok, message completed - reset all\n mInsideMessage = false;\n mMessagePayload.reset();\n }\n }\n\n // reset frame\n mFrameHeader = null;\n\n // reprocess if more data left\n return mApplicationBuffer.position() > 0;\n\n } else {\n\n // need more data\n return false;\n }\n }\n }", "title": "" }, { "docid": "0f1435f1af5c26b53dd5b206ec12131a", "score": "0.42364693", "text": "public static DtlsHandshakeMessageFragment wrapInSingleFragment(HandshakeMessage message, TlsContext context) {\n byte[] bytes = getSerializedBytes(message, context);\n List<DtlsHandshakeMessageFragment> fragments = generateFragments(message, bytes, bytes.length, context);\n return fragments.get(0);\n }", "title": "" }, { "docid": "b84c66b514b0f499b8a696fe5094e250", "score": "0.42364255", "text": "static BleEntity stitch_chunks_to_entity(ArrayList<byte[]> arrayList, boolean z, boolean z2) {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ByteArrayOutputStream byteArrayOutputStream2 = new ByteArrayOutputStream();\n Iterator it = arrayList.iterator();\n while (it.hasNext()) {\n try {\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream((byte[]) it.next());\n int read = byteArrayInputStream.read();\n byte[] bArr = new byte[byteArrayInputStream.available()];\n byteArrayInputStream.read(bArr, 0, bArr.length);\n if (read == 4) {\n byteArrayOutputStream2.write(bArr);\n } else if (read == 3) {\n byteArrayOutputStream.write(bArr);\n } else {\n StringBuilder sb = new StringBuilder();\n sb.append(\"stitchChunksToEntity: UNDEFINE \");\n sb.append(read);\n Log.e(\"ChunkUtils\", sb.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n BleEntity bleEntity = null;\n try {\n byte[] d = setup_gzip_byte_stream(byteArrayOutputStream.toByteArray());\n byte[] byteArray = byteArrayOutputStream2.toByteArray();\n bleEntity = (BleEntity) (z ? Utils.fromMessagePacktoEntity(d, BleEntity.class) : new Gson().fromJson(new String(d), BleEntity.class));\n if (bleEntity.getEt() != 1) {\n bleEntity.setBinaryPart(byteArray);\n } else if (byteArray != null && byteArray.length > 0) {\n ArrayList a = byte_arraylist_to_byte_arrayb.deserialize(byteArray);\n bleEntity.setCt(new BleEntityContent((HashMap) Utils.fromMessagePacktoEntity(setup_gzip_byte_stream(CryptoRSA.decrypt(Bridgefy.getInstance().getBridgefyClient().getSecretKey(), (byte[]) a.get(0))), HashMap.class), ((BleEntityContent) bleEntity.getCt()).getId()));\n if (a.size() > 1) {\n ContentInfo findMatch = new ContentInfoUtil().findMatch((byte[]) a.get(1));\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"generateCompressedChunk: match data \");\n sb2.append(findMatch.getMimeType());\n Log.i(\"ChunkUtils\", sb2.toString());\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"generateCompressedChunk: match data mime \");\n sb3.append(findMatch.getContentType().getMimeType());\n Log.i(\"ChunkUtils\", sb3.toString());\n StringBuilder sb4 = new StringBuilder();\n sb4.append(\"generateCompressedChunk: match data simple \");\n sb4.append(findMatch.getContentType().getSimpleName());\n Log.i(\"ChunkUtils\", sb4.toString());\n if (findMatch == null || findMatch.getContentType().getMimeType().equals(\"image/jpeg\") || findMatch.getContentType().getMimeType().equals(\"image/jp2\") || findMatch.getContentType().getMimeType().equals(\"image/tiff\") || findMatch.getContentType().getMimeType().equals(\"image/png\") || findMatch.getContentType().getMimeType().equals(\"image/gif\") || findMatch.getContentType().getMimeType().equals(\"application/zip\") || findMatch.getContentType().getMimeType().equals(\"application/x-7z-compressed\")) {\n Log.i(\"ChunkUtils\", \"stitchChunksToEntity: not decompressing\");\n bleEntity.setData((byte[]) a.get(1));\n } else {\n Log.i(\"ChunkUtils\", \"stitchChunksToEntity: decompressing data\");\n bleEntity.setData(setup_gzip_byte_stream((byte[]) a.get(1)));\n }\n }\n }\n byteArrayOutputStream.flush();\n byteArrayOutputStream2.flush();\n } catch (Exception e2) {\n Log.e(\"ChunkUtils\", \"stitchChunksToEntity: \", e2);\n try {\n byteArrayOutputStream.flush();\n byteArrayOutputStream2.flush();\n } catch (IOException e3) {\n e3.printStackTrace();\n }\n }\n return bleEntity;\n }", "title": "" }, { "docid": "dc867b9284c59ec73d7f22d9830aa461", "score": "0.42343506", "text": "@Test\n public void testX1() {\n Supplier<Decoder> s = () -> {\n Decoder d = new Decoder(4096);\n // @formatter:off\n test(d, \"88 76 92 ca 54 a7 d7 f4 fa ec af ed 6d da 61 d7 bb 1e ad ff\" +\n \"df 61 97 c3 61 be 94 13 4a 65 b6 a5 04 00 b8 a0 5a b8 db 77\" +\n \"1b 71 4c 5a 37 ff 0f 0d 84 08 00 00 03\",\n\n \"[ 1] (s = 65) date: Fri, 24 Jun 2016 14:55:56 GMT\\n\" +\n \"[ 2] (s = 59) server: Jetty(9.3.z-SNAPSHOT)\\n\" +\n \" Table size: 124\",\n\n \":status: 200\\n\" +\n \"server: Jetty(9.3.z-SNAPSHOT)\\n\" +\n \"date: Fri, 24 Jun 2016 14:55:56 GMT\\n\" +\n \"content-length: 100000\"\n );\n // @formatter:on\n return d;\n };\n // For all splits of the following data fed to the supplied decoder we\n // must get what's expected\n // @formatter:off\n testAllSplits(s,\n \"88 bf be 0f 0d 84 08 00 00 03\",\n\n \"[ 1] (s = 65) date: Fri, 24 Jun 2016 14:55:56 GMT\\n\" +\n \"[ 2] (s = 59) server: Jetty(9.3.z-SNAPSHOT)\\n\" +\n \" Table size: 124\",\n\n \":status: 200\\n\" +\n \"server: Jetty(9.3.z-SNAPSHOT)\\n\" +\n \"date: Fri, 24 Jun 2016 14:55:56 GMT\\n\" +\n \"content-length: 100000\");\n // @formatter:on\n }", "title": "" }, { "docid": "e5f97b9f5cc208d4514fc7247fa70f6e", "score": "0.42204008", "text": "@Test\n public void prepareCommandStationXPomWrByte1Message() {\n AddressData locoAddress = new AddressData(3, AddressTypeEnum.LOCOMOTIVE_FORWARD);\n CommandStationPom opCode = CommandStationPom.X_WR_BYTE1;\n int cvNumber = 4;\n byte[] data = { 5 };\n\n CommandStationPomMessage message = new CommandStationPomMessage(locoAddress, opCode, cvNumber, data);\n\n LOGGER.debug(\"Created message: {}, hex: {}\", message, ByteUtils.bytesToHex(message.getData()));\n Assert.assertNotNull(message);\n\n Assert.assertEquals(message.getData()[0], (byte) 0x03); // ADDR_L\n Assert.assertEquals(message.getData()[1], (byte) 0x00); // ADDR_H\n\n Assert.assertEquals(message.getData()[2], (byte) 0x00); // ADDR_XL\n Assert.assertEquals(message.getData()[3], (byte) 0x00); // ADDR_XH\n\n Assert.assertEquals(message.getData()[4], (byte) 0x00); // MID\n\n Assert.assertEquals(message.getData()[5], opCode.getType()); // OPCODE\n\n Assert.assertEquals(message.getData()[6], (byte) cvNumber - 1); // CV_L\n Assert.assertEquals(message.getData()[7], (byte) 0x00); // CV_H\n Assert.assertEquals(message.getData()[8], (byte) 0x00); // CV_X\n\n Assert.assertEquals(message.getData()[9], (byte) 0x05); // DATA\n }", "title": "" }, { "docid": "2a23704c1b5169e34841fffdd8a5e201", "score": "0.42124504", "text": "@Override\n\tprotected void decode(ChannelHandlerContext ctx, ByteBuf in,\n\t\t\tList<Object> out) throws Exception {\n\t\tif (in.readableBytes() < 4) {\n\t\t\treturn ;\n\t\t}\n\t\tint length =in.getInt(in.readerIndex());\n\t\tif( in.readableBytes() < length +4){\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tByteBufInputStream ins = new ByteBufInputStream(in);\n\t\tRpcResponse response = serializer.decodeResponse(ins);\n\t\tout.add(response);\n\t}", "title": "" }, { "docid": "aed9db822fe73f71cd735e5918be42eb", "score": "0.42113703", "text": "@Splitter(inputChannel=\"newInvoicesChannel\", outputChannel=\"singleInvoicesChannel\")\n\tpublic List<Invoice> splitMessage(Message<List<Invoice>> message) {\n\t\treturn message.getPayload();\n\t}", "title": "" }, { "docid": "834292e99c57104708c84a9cdf5f50db", "score": "0.4208683", "text": "private void generateProtocolParts(List<Byte> sequence) throws InterruptedException, ExecutionException {\n Callable<ProtocolStructure> structureCallable = new LearnStructureCallable(sequence);\n Future<ProtocolStructure> structureFuture = AbstractThreadProcess.EXECUTOR.submit(structureCallable);\n try {\n protocolStructure = structureFuture.get();\n Model.INSTANCE.getLogger().info(\"Temporary protocol structure generated\");\n increaseWorkProgress();\n } catch (InterruptedException e) {\n structureFuture.cancel(true);\n throw e;\n }\n }", "title": "" }, { "docid": "76e80cee26ebafd270a79d8821649225", "score": "0.42085606", "text": "private DataSplit(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "0e01c4a71c47499cfb2e849a830dc26d", "score": "0.4202781", "text": "public void unpack(MAVLinkPayload payload) {\n payload.resetIndex();\n\t for (int i = 0; i < roll.length; i++) {\n\t\t\troll[i] = payload.getShort();\n\t\t}\n\t for (int i = 0; i < pitch.length; i++) {\n\t\t\tpitch[i] = payload.getShort();\n\t\t}\n\t for (int i = 0; i < yaw.length; i++) {\n\t\t\tyaw[i] = payload.getShort();\n\t\t}\n\t for (int i = 0; i < thrust.length; i++) {\n\t\t\tthrust[i] = payload.getShort();\n\t\t}\n\t group = payload.getByte();\n\t mode = payload.getByte(); \n }", "title": "" }, { "docid": "f118754ad5f70c336eb14a423e0af2aa", "score": "0.419542", "text": "public void parseString(String stringToParse) {\n\t\tStringBuilder sb = new StringBuilder(stringToParse);\n\t\tif(sb.toString().length() != (Channels.STRING_SIZE - 1)) {\n\t\t\tSystem.err.println(\"Received message lenght error\");\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tswitch (stringToParse.charAt(0)) {\n\t\t\tcase 0:\n\t\t\t\tParsedPage0 parsed0 = new ParsedPage0('0');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed0.splitString(sb.toString());\n\t\t\t\tdata.update(parsed0);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tParsedPage1 parsed1 = new ParsedPage1('1');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed1.splitString(sb.toString());\n\t\t\t\tdata.update(parsed1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tParsedPage2 parsed2 = new ParsedPage2('2');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed2.splitString(sb.toString());\n\t\t\t\tdata.update(parsed2);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tParsedPage3 parsed3 = new ParsedPage3('3');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed3.splitString(sb.toString());\n\t\t\t\tdata.update(parsed3);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tParsedPage4 parsed4 = new ParsedPage4('4');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed4.splitString(sb.toString());\n\t\t\t\tdata.update(parsed4);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tParsedPage5 parsed5 = new ParsedPage5('5');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed5.splitString(sb.toString());\n\t\t\t\tdata.update(parsed5);\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tParsedPage6 parsed6 = new ParsedPage6('6');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed6.splitString(sb.toString());\n\t\t\t\tdata.update(parsed6);\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\tParsedPage7 parsed7 = new ParsedPage7('7');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed7.splitString(sb.toString());\n\t\t\t\tdata.update(parsed7);\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\tParsedPage8 parsed8 = new ParsedPage8('8');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed8.splitString(sb.toString());\n\t\t\t\tdata.update(parsed8);\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\tParsedPage9 parsed9 = new ParsedPage9('9');\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed9.splitString(sb.toString());\n\t\t\t\tdata.update(parsed9);\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tParsedPage10 parsed10 = new ParsedPage10((char) 10);\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed10.splitString(sb.toString());\n\t\t\t\tdata.update(parsed10);\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tParsedPage11 parsed11 = new ParsedPage11((char) 11);\n\t\t\t\tsb.delete(Channels.HEADER_ID_START, Channels.HEADER_ID_END);\n\t\t\t\tparsed11.splitString(sb.toString());\n\t\t\t\tdata.update(parsed11);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.err.println(\"Page reading error\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2b2a8844c82f6da2b019c60ec5650949", "score": "0.41860902", "text": "public SinglyLinkedList split(){\n\t\t\n\t\tSinglyLinkedList newList = new SinglyLinkedList();\n\t\t\n\t\tNode<Integer> newHead = null;\n\t\tNode<Integer> newTail = null;\n\t\t\n\t\tint newSize = this.size / 2;\n\t\n\t\tNode<Integer> current = this.head.next(); \n\t\t\n\t\t//traverse the list to pick out the references that are needed to split\n\t\tfor(int i = 0; i < newSize; i++){\n\t\t\tcurrent = current.next();\n\t\t\tif(i == newSize - 2){\n\t\t\t\tnewTail = current;\n\t\t\t}\n\t\t\t\n\t\t\tif(i == newSize - 1){\n\t\t\t\tnewHead = current;\n\t\t\t\tcurrent = null;\n\t\t\t}\n\t\t}\n\t\t\n\t\tnewTail.setNext(null);\n\t\t\n\t\tnewList.head.setNext(newHead);\n\t\tnewList.tail = this.tail;\n\t\t\n\t\t\n\t\tthis.tail = newTail;\n\t\tif(this.size % 2 != 0){\n\t\t\tthis.size = newSize;\n\t\t\tnewList.size = newSize + 1;\n\t\t}\n\t\telse{\n\t\t\tnewList.size = newSize;\n\t\t\tthis.size = newSize;\n\t\t}\n\t\t\n\t\treturn newList;\n\t}", "title": "" }, { "docid": "a3196ba50c76b015c60fcfc8df0c7741", "score": "0.4186001", "text": "public int parseHeader(byte[] data){\r\n\t\tif(data.length < HEADER_LENGTH) {\r\n\t\t\tif(D) Log.e(TAG, \"Parse Header with length error.\");\r\n\t\t\treturn LT_LENGTH_ERROR;\r\n\t\t}\r\n\t\t\r\n\t\t// init the header variable, BIG_ENDDIAN\r\n\t\tmMagic \t\t\t= data[0];\r\n\t\tisError \t\t= (data[1] & 0x20) != 0;\r\n\t\tisAck\t\t\t= (data[1] & 0x10) != 0;\r\n\t\tmVersion\t\t= data[1] & 0x0f;\r\n\t\tmPayloadLength\t= ((data[2] << 8) | (data[3] & 0xff)) & 0xffff; // here must be care shift operation of negative\r\n\t\tmCRC16\t\t\t= ((data[4] << 8) | (data[5] & 0xff)) & 0xffff; // here must be care shift operation of negative\r\n\t\tmSequenceId\t\t= ((data[6] << 8) | (data[7] & 0xff)) & 0xffff; // here must be care shift operation of negative\r\n\t\t\r\n\t\t// init current payload length\r\n\t\tmCurrentPayloadLength = 0;\r\n\t\t\r\n\t\tif(D) Log.i(TAG, \"LT payload header is, mMagic: \" + mMagic +\r\n\t\t\t\t\t\t\t\t\t\t\t\", isError: \" + String.valueOf(isError) +\r\n\t\t\t\t\t\t\t\t\t\t\t\", isAck: \" + String.valueOf(isAck) +\r\n\t\t\t\t\t\t\t\t\t\t\t\", mVersion: \" + mVersion +\r\n\t\t\t\t\t\t\t\t\t\t\t\", mPayloadLength: \" + mPayloadLength +\r\n\t\t\t\t\t\t\t\t\t\t\t\", mCRC16: \" + mCRC16 +\r\n\t\t\t\t\t\t\t\t\t\t\t\", mSequenceId: \" + mSequenceId);\r\n\t\t\r\n\t\t// check magic\r\n\t\tif(mMagic != MAGIC_BYTE) {\r\n\t\t\tif(D) Log.e(TAG, \"Magic error.\");\r\n\t\t\treturn LT_MAGIC_ERROR;\r\n\t\t}\r\n\t\t\r\n\t\t// check ack flag\r\n\t\tif(isAck == true) {\r\n\t\t\t// check error flag\r\n\t\t\tif(isError == true) {\r\n\t\t\t\t//if(D) Log.d(TAG, \"Receive a error ack.\");\r\n\t\t\t\treturn LT_ERROR_ACK;\r\n\t\t\t} else {\r\n\t\t\t\t//if(D) Log.d(TAG, \"Receive a success ack.\");\r\n\t\t\t\treturn LT_SUCCESS_ACK;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// if have more data, pase data\r\n\t\tint remainPayloadLength = data.length - HEADER_LENGTH;\r\n\t\tif(remainPayloadLength > 0) {\r\n\t\t\tif(D) Log.d(TAG, \"parse header with remain data\");\r\n\t\t\tbyte[] payload = new byte[remainPayloadLength];\r\n\t\t\tSystem.arraycopy(data, HEADER_LENGTH, payload, 0, remainPayloadLength);\r\n\t\t\treturn parseData(payload);\r\n\t\t}\r\n\t\treturn LT_SUCCESS;\r\n\t}", "title": "" }, { "docid": "127adb1f2016b9cb0673a1d81e4d0846", "score": "0.4182842", "text": "protected void createFields() {\n recordsize = 341;\n fileid = fid;\n recordid = rid;\n message = new byte[getByteLength()];\n formatname = fmtname;\n fieldnames = fldnames;\n tagnames = tnames;\n fields = new MessageField[FIELDCOUNT];\n\n fields[0] = fieldHDAT\n = new DecimalField(message, HEADERSIZE + 0, 7, 0, \"HDAT\");\n fields[1] = fieldHTIM\n = new DecimalField(message, HEADERSIZE + 7, 7, 0, \"HTIM\");\n fields[2] = fieldHUSR\n = new CharacterField(message, HEADERSIZE + 14, 10, \"HUSR\");\n fields[3] = fieldHENV\n = new CharacterField(message, HEADERSIZE + 24, 1, \"HENV\");\n fields[4] = fieldHXML\n = new CharacterField(message, HEADERSIZE + 25, 10, \"HXML\");\n fields[5] = fieldHSEC\n = new CharacterField(message, HEADERSIZE + 35, 10, \"HSEC\");\n fields[6] = fieldHFIL\n = new CharacterField(message, HEADERSIZE + 45, 10, \"HFIL\");\n fields[7] = fieldHLEN\n = new DecimalField(message, HEADERSIZE + 55, 6, 0, \"HLEN\");\n fields[8] = fieldINDICA\n = new CharacterField(message, HEADERSIZE + 61, 100, \"INDICA\");\n fields[9] = fieldINVINT\n = new DecimalField(message, HEADERSIZE + 161, 8, 0, \"INVINT\");\n fields[10] = fieldINVVAL\n = new CharacterField(message, HEADERSIZE + 169, 12, \"INVVAL\");\n fields[11] = fieldINVNOP\n = new DecimalField(message, HEADERSIZE + 181, 11, 0, \"INVNOP\");\n fields[12] = fieldINVINI\n = new DecimalField(message, HEADERSIZE + 192, 7, 0, \"INVINI\");\n fields[13] = fieldINVVTO\n = new DecimalField(message, HEADERSIZE + 199, 7, 0, \"INVVTO\");\n fields[14] = fieldINVVNO\n = new DecimalField(message, HEADERSIZE + 206, 17, 2, \"INVVNO\");\n fields[15] = fieldTASA\n = new DecimalField(message, HEADERSIZE + 223, 11, 6, \"TASA\");\n fields[16] = fieldCODCLI\n = new DecimalField(message, HEADERSIZE + 234, 8, 0, \"CODCLI\");\n fields[17] = fieldNOMCLI\n = new CharacterField(message, HEADERSIZE + 242, 39, \"NOMCLI\");\n fields[18] = fieldTEXERR\n = new CharacterField(message, HEADERSIZE + 281, 60, \"TEXERR\");\n\n synchronized (tlookup) {\n if (tlookup.isEmpty()) {\n for (int i = 0; i < tnames.length; i++) {\n tlookup.put(tnames[i], new Integer(i));\n }\n }\n }\n\n taglookup = tlookup;\n }", "title": "" }, { "docid": "5ba6e888a9356afbb323442f64441230", "score": "0.417842", "text": "private void encodeProtocolDecorator(ByteBuf buf,ByteBuf out){\n /**\n * 2B:magic code\n * 4B:length of full length field\n */\n int dataTotalLength = 2 + 4 + buf.readableBytes();\n if ( out.capacity() < dataTotalLength ){\n out.capacity(dataTotalLength);\n }\n out.writeBytes(SSFProtocol.MAGIC_CODE_BYTES);\n //full length\n out.writeInt(dataTotalLength - 2);\n out.writeBytes(buf,buf.readerIndex(),buf.readableBytes());\n }", "title": "" }, { "docid": "73da49a5ede79365d40a303274f5a13e", "score": "0.41600037", "text": "@Override\n public Message parseMessage(List<ByteBuffer> messageBuffer) {\n ByteBuffer single;\n if (messageBuffer.size()>1) {\n ByteOrder order = ByteOrder.BIG_ENDIAN;\n // calculate total size\n int totalBytes = 0;\n for (ByteBuffer buffer : messageBuffer) {\n totalBytes += buffer.remaining();\n order = buffer.order();\n }\n single = ByteBuffer.allocate(totalBytes).order(order);\n for (ByteBuffer buffer : messageBuffer) {\n single.put(buffer);\n }\n single.flip();\n } else {\n single = messageBuffer.get(0);\n }\n\n // get message type\n MessageHeaderImpl header = new MessageHeaderImpl();\n header.parse(single);\n\n Message message = this.messageFactory.createMessage(header);\n message.parse(single);\n return message;\n }", "title": "" }, { "docid": "f6563d6fa0670770a47f4bffbf5c730d", "score": "0.41536906", "text": "protected abstract void handleData(byte[] buffer, int usedLength, boolean isEOM) throws XnsException, InterruptedException;", "title": "" }, { "docid": "ad1d79b35d65eec7e227ec1edcfc1718", "score": "0.4149278", "text": "@Test\n public void testDraft21DeflateBlockWithBFinal1() {\n Tester tester = clientExtensions.newTester(\"permessage-deflate\");\n\n tester.assertNegotiated(\"permessage-deflate\");\n\n tester.parseIncomingHex(// 1 message\n \"0xc1 0x08\", // header\n \"0xf3 0x48 0xcd 0xc9 0xc9 0x07 0x00 0x00\" // example payload\n );\n\n tester.assertHasFrames(\"Hello\");\n }", "title": "" }, { "docid": "64c4c3b7ac10988827a13404f077260b", "score": "0.41469872", "text": "@Test\n public void prepareCommandStationPomMessage2() throws ProtocolException {\n byte[] message = new byte[] { 0x0C, 0x00, 0x60, 0x67, 0x03, 0x00, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00 };\n CommandStationPomMessage pomMessage = new CommandStationPomMessage(message);\n Assert.assertNotNull(pomMessage);\n\n AddressData locoAddress = new AddressData(3, AddressTypeEnum.LOCOMOTIVE_FORWARD);\n\n LOGGER.info(\"Prepare pomMessage: {}\", pomMessage);\n Assert.assertEquals(pomMessage.getDecoderAddress(), locoAddress);\n\n Assert.assertEquals(pomMessage.getAddressX(), 0x00);\n Assert.assertEquals(pomMessage.getMid(), 0x00);\n Assert.assertEquals(pomMessage.getOpCode(), 0x01);\n }", "title": "" }, { "docid": "f1b22be5d0a625bb0dc22e09817ad4b3", "score": "0.41390383", "text": "public MO9029ParamsMobiFone ViettelTransformToMBFParams(String serviceid, String msisdn, String params, String amount, String command, String result){\n MO9029ParamsMobiFone objRet = new MO9029ParamsMobiFone();\n objRet.totalAmount = amount;\n objRet.msisdn = msisdn;\n objRet.result = result;\n try{\n String extraInfo = \"\";\n String priceLevelCode = \"NAP\"+this.getPriceLevelCode(amount);\n if(params!=null && !params.equalsIgnoreCase(\"\")){\n String[] arrParamsItems = params.split(\" \");\n for(int i=0;i<arrParamsItems.length;i++){\n if(i==0){ objRet.cpCode = arrParamsItems[i];}\n else if(i==2){ objRet.gameCode = arrParamsItems[i];}\n else if(i==3){ objRet.account = arrParamsItems[i];}\n else if(i>3){\n if(!extraInfo.equalsIgnoreCase(\"\")) extraInfo+=\" \";\n extraInfo+=arrParamsItems[i];\n }\n }\n }\n \n objRet.content_id = priceLevelCode;\n if(!extraInfo.equalsIgnoreCase(\"\")){\n objRet.content_id+=\"|\"+extraInfo;\n }\n }\n catch(Exception ex){}\n \n \n return objRet;\n }", "title": "" }, { "docid": "5f5d6581323a2865209c71ab2ee70d5b", "score": "0.41274995", "text": "DataSplit getSplit();", "title": "" }, { "docid": "5f5d6581323a2865209c71ab2ee70d5b", "score": "0.41274995", "text": "DataSplit getSplit();", "title": "" }, { "docid": "a5c316bb798d42a071728180ccff27d0", "score": "0.41261154", "text": "static final int opus_packet_parse_impl(final byte[] data, int doffset,// java\n\t\t\tint len,\n\t\t\tfinal boolean self_delimited,\n\t\t\t// final byte[] out_toc,// FIXME toc using only to test\n\t\t\tfinal int frames[/* 48 */],// java changed: offsets for data.\n\t\t\tint foffset,// java added\n\t\t\tfinal short size[/* 48 */],\n\t\t\tint soffset,// java added\n\t\t\t// final int[] payload_offset, final int[] packet_offset\n\t\t\tfinal Jopus_packet_data_aux aux// java\n\t\t\t)\n\t{\n\t\tfinal int data0 = doffset;\n\n\t\tif( size == null || len < 0 ) {\n\t\t\treturn Jopus_defines.OPUS_BAD_ARG;\n\t\t}\n\t\tif( len == 0 ) {\n\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t}\n\n\t\tfinal int framesize = opus_packet_get_samples_per_frame( data, doffset, 48000 );\n\n\t\tint pad = 0;\n\t\tfinal int toc = data[doffset++];\n\t\tlen--;\n\t\tint last_size = len;\n\t\tboolean cbr = false;\n\t\tint count;\n\t\tint bytes;\n\t\tswitch( toc & 0x3 )\n\t\t{\n\t\t\t/* One frame */\n\t\tcase 0:\n\t\t\tcount = 1;\n\t\t\tbreak;\n\t\t/* Two CBR frames */\n\t\tcase 1:\n\t\t\tcount = 2;\n\t\t\tcbr = true;\n\t\t\tif( ! self_delimited )\n\t\t\t{\n\t\t\t\tif( 0 != (len & 0x1) ) {\n\t\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t\t}\n\t\t\t\tlast_size = len >>> 1;\n\t\t\t\t/* If last_size doesn't fit in size[0], we'll catch it later */\n\t\t\t\tsize[soffset] = (short)last_size;\n\t\t\t}\n\t\t\tbreak;\n\t\t/* Two VBR frames */\n\t\tcase 2:\n\t\t\tcount = 2;\n\t\t\tbytes = parse_size( data, doffset, len, size, soffset );\n\t\t\tlen -= bytes;\n\t\t\tif( size[soffset] < 0 || size[soffset] > len ) {\n\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t}\n\t\t\tdoffset += bytes;\n\t\t\tlast_size = len - size[soffset];\n\t\t\tbreak;\n\t\t/* Multiple CBR/VBR frames (from 0 to 120 ms ) */\n\t\tdefault: /*case 3:*/\n\t\t\tif( len < 1 ) {\n\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t}\n\t\t\t/* Number of frames encoded in bits 0 to 5 */\n\t\t\tfinal int ch = data[doffset++];\n\t\t\tcount = ch & 0x3F;\n\t\t\tif( count <= 0 || framesize * count > 5760 ) {\n\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t}\n\t\t\tlen--;\n\t\t\t/* Padding flag is bit 6 */\n\t\t\tif( 0 != (ch & 0x40) )\n\t\t\t{\n\t\t\t\tint p;\n\t\t\t\tdo {\n\t\t\t\t\tif( len <= 0 ) {\n\t\t\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t\t\t}\n\t\t\t\t\tp = ((int)data[doffset++]) & 0xff;\n\t\t\t\t\tlen--;\n\t\t\t\t\tfinal int tmp = p == 255 ? 254 : p;\n\t\t\t\t\tlen -= tmp;\n\t\t\t\t\tpad += tmp;\n\t\t\t\t} while( p == 255 );\n\t\t\t}\n\t\t\tif( len < 0 ) {\n\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t}\n\t\t\t/* VBR flag is bit 7 */\n\t\t\tcbr = (ch & 0x80) == 0;\n\t\t\tif( ! cbr )\n\t\t\t{\n\t\t\t\t/* VBR case */\n\t\t\t\tlast_size = len;\n\t\t\t\tfor( int i = soffset, ie = soffset + count - 1; i < ie; i++ )\n\t\t\t\t{\n\t\t\t\t\tbytes = parse_size( data, doffset, len, size, i );\n\t\t\t\t\tlen -= bytes;\n\t\t\t\t\tif( size[i] < 0 || size[i] > len ) {\n\t\t\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t\t\t}\n\t\t\t\t\tdoffset += bytes;\n\t\t\t\t\tlast_size -= bytes + size[i];\n\t\t\t\t}\n\t\t\t\tif( last_size < 0 ) {\n\t\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t\t}\n\t\t\t} else if( ! self_delimited )\n\t\t\t{\n\t\t\t\t/* CBR case */\n\t\t\t\tlast_size = len / count;\n\t\t\t\tif( last_size * count != len ) {\n\t\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t\t}\n\t\t\t\tfor( int i = soffset, ie = soffset + count - 1; i < ie; i++ ) {\n\t\t\t\t\tsize[i] = (short)last_size;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tfinal int c1 = soffset + count - 1;// java\n\t\t/* Self-delimited framing has an extra size for the last frame. */\n\t\tif( self_delimited )\n\t\t{\n\t\t\tbytes = parse_size( data, doffset, len, size, c1 );\n\t\t\tlen -= bytes;\n\t\t\tif( size[c1] < 0 || size[c1] > len ) {\n\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t}\n\t\t\tdoffset += bytes;\n\t\t\t/* For CBR packets, apply the size to all the frames. */\n\t\t\tif( cbr )\n\t\t\t{\n\t\t\t\tif( size[c1] * count > len ) {\n\t\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t\t}\n\t\t\t\tfinal short size_c1 = size[c1];// java\n\t\t\t\tfor( int i = soffset; i < c1; i++ ) {\n\t\t\t\t\tsize[i] = size_c1;\n\t\t\t\t}\n\t\t\t} else if( bytes + size[c1] > last_size ) {\n\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\t/* Because it's not encoded explicitly, it's possible the size of the\n\t \t\tlast packet (or all the packets, for the CBR case ) is larger than\n\t \t\t1275. Reject them here.*/\n\t\t\tif( last_size > 1275 ) {\n\t\t\t\treturn Jopus_defines.OPUS_INVALID_PACKET;\n\t\t\t}\n\t\t\tsize[c1] = (short)last_size;\n\t\t}\n\n\t\tif( aux != null ) {// if( null != payload_offset ) {\n\t\t\taux.mPayloadOffset = (doffset - data0);\n\t\t}\n\n\t\tfor( final int ie = soffset + count; soffset < ie; )\n\t\t{\n\t\t\tif( null != frames ) {\n\t\t\t\tframes[foffset++] = doffset;// data;\n\t\t\t}\n\t\t\tdoffset += size[soffset++];\n\t\t}\n\n\t\tif( aux != null ) {// if( null != packet_offset ) {\n\t\t\taux.mPacketOffset = pad + (doffset - data0);\n\t\t}\n\n\t\tif( aux != null ) {// if( null != out_toc ) {\n\t\t\taux.mToc = (byte)toc;\n\t\t}\n\n\t\treturn count;\n\t}", "title": "" }, { "docid": "a58040049673db2689bada58e0029cc2", "score": "0.4117413", "text": "@Override\n public void unpack(MAVLinkPayload payload) {\n payload.resetIndex();\n \n this.MCU_temperature = payload.getShort();\n this.MCU_voltage = payload.getUnsignedShort();\n this.MCU_voltage_min = payload.getUnsignedShort();\n this.MCU_voltage_max = payload.getUnsignedShort();\n this.id = payload.getUnsignedByte();\n \n if (isMavlink2) {\n \n }\n }", "title": "" }, { "docid": "3551f9633706272a9ca7589ba6573c3a", "score": "0.41113234", "text": "@Test\n public void testbuildCombinedFragmentIncomplete() {\n byte[] original = ArrayConverter.hexStringToByteArray(\"123456789A123456789A\");\n collector.addFragment(fragmentOfMsg(0, 0, 5, original));\n collector.addFragment(fragmentOfMsg(0, 6, 4, original));\n DtlsHandshakeMessageFragment fragment = collector.buildCombinedFragment();\n byte[] expected = ArrayConverter.hexStringToByteArray(\"123456789A003456789A\");\n checkFragment(fragment, 0, 10, expected);\n }", "title": "" }, { "docid": "61d80c9654cdb9d3ac8f9ebf32ca3b8d", "score": "0.41065812", "text": "@Override\n protected ByteBuf extractFrame(ChannelHandlerContext ctx, ByteBuf buffer, int index, int length) {\n return buffer.slice(index, length);\n }", "title": "" }, { "docid": "5dbf869ee3a21b8d8f09fdb66c109308", "score": "0.4096814", "text": "private static TFtpPacket decodeDATAPacket(byte[] buf) throws BadPacketFormatException {\n if (buf.length < 4) {\n throw new BadPacketFormatException(\"bad data packet\");\n }\n DATAPacket packet = new DATAPacket();\n packet.setOperateCode(EnumTftpActCode.DATA);\n packet.setBlock(byte2int(buf[2]) * 256 + byte2int(buf[3]));\n //System.out.println(\"decode data packet,block:\"+packet.getBlock());\n byte[] data = new byte[buf.length - 4];\n System.arraycopy(buf, 4, data, 0, data.length);\n packet.setData(data);\n return packet;\n }", "title": "" }, { "docid": "f9393f260d62c0a5771d52632b52abcf", "score": "0.40964666", "text": "@Test\n\tpublic void testDomainSeparation() {\n\t\tCLSignature signature1 = CLSignature.signMessageBlock(sk, pk, attributes);\n\t\tIdemixCredential cred1 = new IdemixCredential(pk, attributes, signature1);\n\n\t\tCLSignature signature2 = CLSignature.signMessageBlock(sk, pk, attributes);\n\t\tIdemixCredential cred2 = new IdemixCredential(pk, attributes, signature2);\n\n\t\tRandom rnd = new Random();\n\t\tIdemixSystemParameters params = pk.getSystemParameters();\n\t\tBigInteger context = new BigInteger(params.get_l_h(), rnd);\n\t\tBigInteger nonce1 = new BigInteger(params.get_l_statzk(), rnd);\n\n\t\t// Create an IRMA signature\n\t\tboolean isSig = true;\n\t\tProofList collection = new ProofListBuilder(context, nonce1, isSig)\n\t\t\t\t.addProofD(cred1, Arrays.asList(1, 2))\n\t\t\t\t.addProofD(cred2, Arrays.asList(1, 3))\n\t\t\t\t.build();\n\n\t\t// Make sure we're verifying this signature as disclosure proof\n\t\tcollection.setSig(false);\n\n\t\tassertTrue(\"Combined signature should NOT verify as disclosure proof\", !collection\n\t\t\t\t.verify(context, nonce1, true));\n\t}", "title": "" }, { "docid": "6ca8cdaf520ab2298476f75a4d6c0993", "score": "0.4090316", "text": "@Test\n public void testDraft21HelloUnCompressedBlockFragmented() {\n Tester tester = clientExtensions.newTester(\"permessage-deflate\");\n\n tester.assertNegotiated(\"permessage-deflate\");\n\n tester.parseIncomingHex(// basic, 1 block, compressed with 0 compression level (aka, uncompressed).\n // Fragment 1\n \"0x41 0x03 0xf2 0x48 0xcd\",\n // Fragment 2\n \"0x80 0x04 0xc9 0xc9 0x07 0x00\");\n\n tester.assertHasFrames(\n new TextFrame().setPayload(\"He\").setFin(false),\n new ContinuationFrame().setPayload(\"llo\").setFin(true));\n }", "title": "" }, { "docid": "0c0416fb156ec2cac130172c5e704404", "score": "0.4087175", "text": "@Test\n public void largeMessage() throws Exception {\n// int largeSize = 8188;\n int largeSize = 130;\n int start = 120;\n System.setProperty(\"websocket.packatdump\", String.valueOf(\n PacketDumpUtil.HS_UP | PacketDumpUtil.HS_DOWN | PacketDumpUtil.FR_DOWN\n ));\n\n PowerMockito.mockStatic(Base64.class);\n when(Base64.encodeToString(any(byte[].class), anyBoolean())).thenReturn(\"TESTKEY\");\n\n // handshake request\n ms.addHttpRequest(new MockServer.VerifyRequest() {\n public void verify(ByteBuffer request) {\n }\n }, this.version);\n // handshake response\n ms.addResponse(toByteBuffer(\n \"HTTP/1.1 101 Switching Protocols\\r\\n\" +\n \"Upgrade: websocket\\r\\n\" +\n \"Connection: Upgrade\\r\\n\" +\n \"Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=\\r\\n\" +\n \"Sec-WebSocket-Protocol: chat\\r\\n\\r\\n\"));\n // send large message frame\n final int headerOffset = 2 + 8 + 4;\n final ByteBuffer reqbuf = ByteBuffer.allocate(largeSize + headerOffset);\n reqbuf.position(headerOffset);\n for (int j = 0; j < largeSize; j++) {\n reqbuf.put((byte) (j & 0xFF));\n }\n reqbuf.rewind();\n for (int i = start; i < largeSize; i++) {\n final int size = i;\n ms.addMaskRequest(new MockServer.VerifyRequest() {\n public void verify(ByteBuffer request) {\n// f.mask();\n FrameHeaderRfc6455 header = FrameBuilderRfc6455.createFrameHeader(size, false, Opcode.BINARY_FRAME);\n header.setMask(true);\n ByteBuffer buf = header.toByteBuffer();\n int idx = headerOffset - buf.remaining() - 4;\n reqbuf.position(idx);\n reqbuf.mark();\n reqbuf.put(buf);\n reqbuf.put(maskKey);\n reqbuf.reset();\n reqbuf.limit(headerOffset + size);\n Assert.assertEquals(\"Not equal binary frame.\", reqbuf, request.slice());\n System.out.println(\"size: \" + size + \" ... OK\");\n reqbuf.rewind();\n }\n });\n }\n ms.addResponse(new CloseFrame().toByteBuffer());\n ms.addClose((ByteBuffer) null);\n\n ms.start();\n\n WebSocketHandlerMock handler = new WebSocketHandlerMock();\n WebSocketImpl ws = new WebSocketImpl(\"ws://localhost:9999\", handler);\n ws.setBlockingMode(false);\n ws.connect();\n ByteBuffer buf = ByteBuffer.allocate(largeSize);\n for (int j = 0; j < buf.capacity(); j++) {\n buf.put((byte) (j & 0xFF));\n }\n buf.rewind();\n for (int j = start; j < buf.capacity(); j++) {\n //Thread.sleep(1000);\n buf.limit(j);\n ws.send(buf);\n buf.rewind();\n System.out.println(buf);\n }\n ws.awaitClose();\n\n Throwable t = ms.getThrowable();\n if (t != null) {\n t.printStackTrace();\n Assert.fail();\n }\n Assert.assertEquals(buf.capacity() - start, ms.getRequestCount());\n if (!handler.getOnErrorList().isEmpty()) {\n for (List l : handler.getOnErrorList()) {\n ((WebSocketException) l.get(1)).printStackTrace();\n }\n Assert.fail();\n }\n assertHandler(handler, 1, 0, 0, 1);\n }", "title": "" }, { "docid": "eab29b3c3bd26c05b1b80344abefa9f4", "score": "0.40868086", "text": "byte [] makeBuffer4SIM() {\n\t\ttry {\n\t\t\t// prepare key buffer\n\t \tbyte [] privExp = privKey != null ? privKey.getPrivateExponent().toByteArray() : null;\n\t \tbyte [] modulus = pubKey != null ? pubKey.getModulus().toByteArray() : null;\n\t \t\n\t \t// calculate buffer size\n\t \tint buffsize = 0;\n\t \tbuffsize += 2 + ( id_token != null ? id_token.length() : 0 );\n\t \tbuffsize += 2 + ( refresh_token != null ? refresh_token.length() : 0 );\n\t \tbuffsize += 2 + ( expires != null ? expires.length() : 0 );\n\t \tbuffsize += 2 + ( modulus != null ? modulus.length : 0 );\n\t \tbuffsize += 2 + ( privExp != null ? privExp.length : 0 );\n\n\t \t// allocate buffer according to size\n\t \tbyte [] buffer = new byte[buffsize+2];\n\n\t \t// copy data\n\t \tbuffer[0] = (byte)((buffsize&0x00FF00)>>8);\n\t \tbuffer[1] = (byte)(buffsize&0x00FF);\n\n\t \t// copy each token and key\n\t \tint offset = 2;\n\t \toffset = copyToBuffer( buffer, offset, ( id_token!=null ? id_token.getBytes(\"UTF8\") : null ) );\n\t \toffset = copyToBuffer( buffer, offset, ( refresh_token!=null ? refresh_token.getBytes(\"UTF8\") : null ) );\n\t \toffset = copyToBuffer( buffer, offset, ( expires!=null ? expires.getBytes(\"UTF8\") : null ) );\n\t \toffset = copyToBuffer( buffer, offset, modulus);\n\t \toffset = copyToBuffer( buffer, offset, privExp);\n\n\t \t// return prepared buffer\n\t \treturn buffer;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n \t\n\t\t// error occurred, nothing to return\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e1ee6e1136d9570d1e17835d68746384", "score": "0.4081944", "text": "@AutoGenerated\n\tprivate HorizontalSplitPanel buildHorizontalSplitPanel_2() {\n\t\thorizontalSplitPanel_2 = new HorizontalSplitPanel();\n\t\thorizontalSplitPanel_2.setImmediate(false);\n\t\thorizontalSplitPanel_2.setWidth(\"100.0%\");\n\t\thorizontalSplitPanel_2.setHeight(\"100.0%\");\n\t\thorizontalSplitPanel_2.setMargin(false);\n\t\t\n\t\t// verticalLayout_1\n\t\tverticalLayout_1 = buildVerticalLayout_1();\n\t\thorizontalSplitPanel_2.addComponent(verticalLayout_1);\n\t\t\n\t\t// verticalLayout_5\n\t\tverticalLayout_5 = buildVerticalLayout_5();\n\t\thorizontalSplitPanel_2.addComponent(verticalLayout_5);\n\t\t\n\t\treturn horizontalSplitPanel_2;\n\t}", "title": "" }, { "docid": "641b9057515ce8ae115166b5a39b553b", "score": "0.4076999", "text": "@Override\r\n\tpublic DataBuffers processBuffer(final HTTPIOHandler handler, final HTTPRequest request, ByteBuffer buffer) throws HTTPException\r\n\t{\r\n\t\tParseState state = currentState; // since currentState is volatile, lets cache local before tinkering with it\r\n\t\ttry\r\n\t\t{\r\n\t\t\tswitch(state)\r\n\t\t\t{\r\n\t\t\tcase BODY: // while in a body state, there's nothing to do but see if its done\r\n\t\t\t{\r\n\t\t\t\tif(buffer.position() >= buffer.capacity()) // the > part is a little silly\r\n\t\t\t\t{\r\n\t\t\t\t\tcurrentReq.finishRequest();\r\n\t\t\t\t\tstate=ParseState.DONE;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase FORWARD:\r\n\t\t\t{\r\n\t\t\t\tif(forwarder==null)\r\n\t\t\t\t\tstate=ParseState.DONE;\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbuffer.flip(); // turn the writeable buffer into a \"readable\" one\r\n\t\t\t\t\tfinal ByteBuffer writeableBuf=ByteBuffer.allocate(buffer.remaining());\r\n\t\t\t\t\twriteableBuf.put(buffer);\r\n\t\t\t\t\twriteableBuf.flip();\r\n\t\t\t\t\tforwarder.writeBytesToChannel(new CWDataBuffers(writeableBuf,0,false));\r\n\t\t\t\t\tbuffer.clear();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tdefault:\r\n\t\t\t{\r\n\t\t\t\tbuffer.flip(); // turn the writeable buffer into a \"readable\" one\r\n\t\t\t\tint lastEOLIndex = 0; // the marker for the last place an EOLN was found\r\n\t\t\t\tchar c;\t// current character being examined\r\n\t\t\t\twhile(buffer.position() < buffer.limit())\r\n\t\t\t\t{\r\n\t\t\t\t\tc=(char)buffer.get();\r\n\t\t\t\t\tswitch(state)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tcase CHUNKED_ENDER_INLINE:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(c=='\\r')\r\n\t\t\t\t\t\t\tstate=ParseState.CHUNKED_ENDER_EOLN;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow HTTPException.standardException(HTTPStatus.S400_BAD_REQUEST);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase CHUNKED_ENDER_EOLN:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(c=='\\n')\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlastEOLIndex=buffer.position();\r\n\t\t\t\t\t\t\tstate=ParseState.CHUNKED_HEADER_INLINE;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow HTTPException.standardException(HTTPStatus.S400_BAD_REQUEST);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase CHUNKED_HEADER_INLINE:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(c=='\\r')\r\n\t\t\t\t\t\t\tstate=ParseState.CHUNKED_HEADER_EOLN;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase CHUNKED_HEADER_EOLN:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (c=='\\n')\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfinal String chunkSizeStr = new String(Arrays.copyOfRange(buffer.array(), lastEOLIndex, buffer.position()-2),utf8).trim();\r\n\t\t\t\t\t\t\tlastEOLIndex=buffer.position();\r\n\t\t\t\t\t\t\tif (chunkSizeStr.length()>0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfinal String[] parts=chunkSizeStr.split(\";\");\r\n\t\t\t\t\t\t\t\tthis.nextChunkSize = Integer.parseInt(parts[0],16);\r\n\t\t\t\t\t\t\t\tif(this.nextChunkSize == 0) // we've reached the last chunk\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tbuffer = currentReq.setToReceiveContentChunkedBody((int)config.getRequestLineBufBytes());\r\n\t\t\t\t\t\t\t\t\tbuffer.flip();\r\n\t\t\t\t\t\t\t\t\tlastEOLIndex=0;\r\n\t\t\t\t\t\t\t\t\tstate=ParseState.CHUNKED_TRAILER_INLINE;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t // check for illegal request\r\n\t\t\t\t\t\t\t\t\tif((this.nextChunkSize + currentReq.getBufferSize()) > config.getRequestMaxBodyBytes())\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tthrow HTTPException.standardException(HTTPStatus.S413_REQUEST_ENTITY_TOO_LARGE);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbuffer = currentReq.setToReceiveContentChunkedBody(this.nextChunkSize);\r\n\t\t\t\t\t\t\t\t\tbuffer.flip();\r\n\t\t\t\t\t\t\t\t\tlastEOLIndex=0;\r\n\t\t\t\t\t\t\t\t\tstate=ParseState.CHUNKED_BODY;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tthrow HTTPException.standardException(HTTPStatus.S400_BAD_REQUEST);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthrow HTTPException.standardException(HTTPStatus.S400_BAD_REQUEST);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase REQ_INLINE:\r\n\t\t\t\t\t\tif(c=='\\r')\r\n\t\t\t\t\t\t\tstate=ParseState.REQ_EOLN;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase REQ_EOLN:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (c=='\\n')\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfinal String requestLine = new String(Arrays.copyOfRange(buffer.array(), lastEOLIndex, buffer.position()-2),utf8);\r\n\t\t\t\t\t\t\tlastEOLIndex=buffer.position();\r\n\t\t\t\t\t\t\tstate=ParseState.HDR_INLINE;\r\n\t\t\t\t\t\t\tif (requestLine.length()>0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcurrentReq.parseRequest(requestLine);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcatch(final NumberFormatException ne)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tthrow HTTPException.standardException(HTTPStatus.S400_BAD_REQUEST);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// ignore blank lines here -- perhaps someone telnetted in.\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse // an error! Ignore this line!\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlastEOLIndex=buffer.position();\r\n\t\t\t\t\t\t\tstate=ParseState.REQ_INLINE;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase HDR_INLINE:\r\n\t\t\t\t\t\tif(c=='\\r')\r\n\t\t\t\t\t\t\tstate=ParseState.HDR_EOLN;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase CHUNKED_TRAILER_INLINE:\r\n\t\t\t\t\t\tif(c=='\\r')\r\n\t\t\t\t\t\t\tstate=ParseState.CHUNKED_TRAILER_EOLN;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase CHUNKED_TRAILER_EOLN:\r\n\t\t\t\t\tcase HDR_EOLN:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (c=='\\n')\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfinal String headerLine = new String(Arrays.copyOfRange(buffer.array(), lastEOLIndex, buffer.position()-2),utf8);\r\n\t\t\t\t\t\t\tlastEOLIndex=buffer.position();\r\n\t\t\t\t\t\t\tif(headerLine.length()>0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tString host = currentReq.parseHeaderLine(headerLine);\r\n\t\t\t\t\t\t\t\tif (state == ParseState.CHUNKED_TRAILER_EOLN)\r\n\t\t\t\t\t\t\t\t\tstate=ParseState.CHUNKED_TRAILER_INLINE;\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tstate=ParseState.HDR_INLINE;\r\n\r\n\t\t\t\t\t\t\t\tif(host!=null)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tfinal int x=host.indexOf(':');\r\n\t\t\t\t\t\t\t\t\tif(x>0) host=host.substring(0, x); // we only care about the host, we KNOW the port.\r\n\t\t\t\t\t\t\t\t\tfinal Pair<String,WebAddress> forward=config.getPortForward(host,currentReq.getClientPort(),currentReq.getUrlPath());\r\n\t\t\t\t\t\t\t\t\tif((forward != null) && (state != ParseState.CHUNKED_TRAILER_INLINE))\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tfinal String requestLine=startPortForwarding(forward.second, forward.first);\r\n\t\t\t\t\t\t\t\t\t\tif(forwarder!=null)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tfinal DataBuffers out=new CWDataBuffers();\r\n\t\t\t\t\t\t\t\t\t\t\tout.add(ByteBuffer.wrap(requestLine.getBytes()),0,false);\r\n\t\t\t\t\t\t\t\t\t\t\tfinal ByteBuffer writeableBuf=ByteBuffer.allocate(buffer.remaining());\r\n\t\t\t\t\t\t\t\t\t\t\twriteableBuf.put(buffer);\r\n\t\t\t\t\t\t\t\t\t\t\twriteableBuf.flip();\r\n\t\t\t\t\t\t\t\t\t\t\tout.add(writeableBuf,0,false);\r\n\t\t\t\t\t\t\t\t\t\t\tforwarder.writeBytesToChannel(out);\r\n\t\t\t\t\t\t\t\t\t\t\tbuffer.clear();\r\n\t\t\t\t\t\t\t\t\t\t\tstate=ParseState.FORWARD;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\toutputThrottle = config.getResponseThrottle(host,currentReq.getClientPort(),currentReq.getUrlPath());\r\n\t\t\t\t\t\t\t\t\tcurrentReq.getAllHeaderReferences(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse // a blank line means the end of the header section!!!\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(state == ParseState.CHUNKED_TRAILER_EOLN)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tcurrentReq.finishRequest();\r\n\t\t\t\t\t\t\t\t\tstate=ParseState.DONE;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\tif(\"chunked\".equalsIgnoreCase(currentReq.getHeader(HTTPHeader.Common.TRANSFER_ENCODING.lowerCaseName())))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tstate=ParseState.CHUNKED_HEADER_INLINE;\r\n\t\t\t\t\t\t\t\t\tbuffer = currentReq.setToReceiveContentChunkedBody(0); // prepare for chunk length/headers\r\n\t\t\t\t\t\t\t\t\tbuffer.flip();\r\n\t\t\t\t\t\t\t\t\tlastEOLIndex=0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t//the headers will tell you what to do next \"BODY\" is too vague\r\n\t\t\t\t\t\t\t\t\tfinal String contentLengthStr=currentReq.getHeader(HTTPHeader.Common.CONTENT_LENGTH.lowerCaseName());\r\n\t\t\t\t\t\t\t\t\tif(contentLengthStr!=null)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t// moment of truth, do we have a body forthcoming?\r\n\t\t\t\t\t\t\t\t\t\t\tfinal int contentLength = Integer.parseInt(contentLengthStr);\r\n\t\t\t\t\t\t\t\t\t\t\tif ((contentLength < 0) || (contentLength > config.getRequestMaxBodyBytes())) // illegal request\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tthrow HTTPException.standardException(HTTPStatus.S413_REQUEST_ENTITY_TOO_LARGE);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\tif(contentLength == 0) // no content means we are done .. finish the request\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentReq.setToReceiveContentBody(contentLength);\r\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentReq.finishRequest();\r\n\t\t\t\t\t\t\t\t\t\t\t\tstate=ParseState.DONE;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse // a positive content length means we should prepare to receive the body\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tcurrentReq.setToReceiveContentBody(contentLength);\r\n\t\t\t\t\t\t\t\t\t\t\t\tstate=ParseState.BODY;\r\n\t\t\t\t\t\t\t\t\t\t\t\t// the line buffer might have contained the entire body, so check for that state and finish\r\n\t\t\t\t\t\t\t\t\t\t\t\t// if necessary\r\n\t\t\t\t\t\t\t\t\t\t\t\tif(currentReq.getBuffer().position() >= currentReq.getBuffer().capacity())\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentReq.finishRequest();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tstate=ParseState.DONE;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tcatch(final NumberFormatException ne)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tthrow HTTPException.standardException(HTTPStatus.S411_LENGTH_REQUIRED);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t// we have an http exception for this, but why be a jerk\r\n\t\t\t\t\t\t\t\t\t\tcurrentReq.finishRequest();\r\n\t\t\t\t\t\t\t\t\t\tstate=ParseState.DONE;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// continue\r\n\t\t\t\t\t\t\tif((state != ParseState.DONE)\r\n\t\t\t\t\t\t\t&&(currentReq.isExpect(\"100-continue\")))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(currentReq.getHttpVer()>1.0)\r\n\t\t\t\t\t\t\t\t\twriteBytesToChannel(new CWDataBuffers(ByteBuffer.wrap(HTTPIOHandler.CONT_RESPONSE),0,false));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse // an error! Ignore this line!\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlastEOLIndex=buffer.position();\r\n\t\t\t\t\t\t\tstate=ParseState.REQ_INLINE;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase CHUNKED_BODY: // while in a body state, there's nothing to do but see if its done\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbuffer.position(buffer.position()-1);\r\n\t\t\t\t\t\tfinal int len = (buffer.limit() >= this.nextChunkSize) ? this.nextChunkSize : buffer.limit();\r\n\t\t\t\t\t\tbuffer = this.currentReq.receiveChunkedContent(len);\r\n\t\t\t\t\t\tbuffer.flip();\r\n\t\t\t\t\t\tthis.nextChunkSize -= len;\r\n\t\t\t\t\t\tif(this.nextChunkSize <= 0)\r\n\t\t\t\t\t\t\tstate=ParseState.CHUNKED_ENDER_INLINE;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase FORWARD: // you can't get there from here\r\n\t\t\t\t\tcase BODY: // you can't get there from here\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase DONE: // if done, we're done\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// check the new state\r\n\t\t\t\tswitch(state)\r\n\t\t\t\t{\r\n\t\t\t\tcase DONE:\r\n\t\t\t\t\t// just here to be clear that there's nothing left to do...\r\n\t\t\t\tcase FORWARD:\r\n\t\t\t\t\t// nothing more to do in this case\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t{\r\n\t\t\t\t\t// nothing to do ..\r\n\t\t\t\t\tif(lastEOLIndex==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbuffer.position(buffer.limit());\r\n\t\t\t\t\t\tbuffer.limit(buffer.capacity());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(lastEOLIndex > buffer.limit())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbuffer.clear();\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\tbuffer.position(lastEOLIndex);\r\n\t\t\t\t\t\tbuffer.compact();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(state==ParseState.REQ_EOLN)\r\n\t\t\t\t\t\tstate=ParseState.REQ_INLINE;\r\n\t\t\t\t\telse\r\n\t\t\t\t\tif(state==ParseState.HDR_EOLN)\r\n\t\t\t\t\t\tstate=ParseState.HDR_INLINE;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(final IOException ioe)\r\n\t\t{\r\n\t\t\tconfig.getLogger().throwing(\"\", \"\", ioe);\r\n\t\t\tthrow HTTPException.standardException(HTTPStatus.S500_INTERNAL_ERROR);\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tcurrentState = state; // the state was cached local, so copy back to memory when done\r\n\t\t}\r\n\t\tif(currentReq.isFinished())\r\n\t\t{\r\n\t\t\tfinal HTTPReqProcessor processor = new HTTPReqProcessor(config);\r\n\t\t\tfinal DataBuffers bufs = processor.generateOutput(currentReq);\r\n\t\t\tlastHttpStatus = processor.getLastHttpStatusCode();\r\n\t\t\treturn bufs;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "ef896bc4fd6f65c4c73e270659a1f56f", "score": "0.40751594", "text": "public static WebSocketClientOnDataFrameParams deserialize(java.nio.ByteBuffer data) {\n if (data == null)\n return null;\n \n return deserialize(new org.chromium.mojo.bindings.Message(\n data, new java.util.ArrayList<org.chromium.mojo.system.Handle>()));\n }", "title": "" }, { "docid": "39705f27f747c9d74b2eec334884291f", "score": "0.4073109", "text": "public DSDV_Frame(int sender,int receiver,byte[] msg)\r\n\t{\r\n\t\tsuper(sender,receiver,msg);\r\n\t}", "title": "" }, { "docid": "668e02b367bfc8dc7a9ade6de18e2191", "score": "0.4072823", "text": "@Test\n public void prepareCommandStationPomMessage5() throws ProtocolException {\n byte[] message =\n new byte[] { 0x0D, 0x00, 0x1C, 0x67, 0x03, 0x00, 0x00, 0x00, 0x00, 0x03, 0x02, 0x00, 0x00, 0x04 };\n CommandStationPomMessage pomMessage = new CommandStationPomMessage(message);\n Assert.assertNotNull(pomMessage);\n\n AddressData locoAddress = new AddressData(3, AddressTypeEnum.LOCOMOTIVE_FORWARD);\n\n LOGGER.info(\"Prepare pomMessage: {}\", pomMessage);\n Assert.assertEquals(pomMessage.getDecoderAddress(), locoAddress);\n\n Assert.assertEquals(pomMessage.getAddressX(), 0x00);\n Assert.assertEquals(pomMessage.getMid(), 0x00);\n Assert.assertEquals(pomMessage.getOpCode(), (int) PomOperation.WR_BYTE.getType());\n Assert.assertEquals(pomMessage.getCvNumber(), 3);\n Assert.assertEquals(pomMessage.getCvValue(), 4);\n }", "title": "" }, { "docid": "b983d0f57fb436713a6504a91f76a46e", "score": "0.40636754", "text": "@Override\n public void onDecodeSecondData(byte[] data, int length) {\n if(mDecodeHelp != null && length > 4){\n mDecodeHelp.addFrame(data, 0, length);\n }\n }", "title": "" }, { "docid": "d5fb9dc28b08d8bcb841e4900f7bde0b", "score": "0.40635338", "text": "private void divideBytesIntoSeparateBits(byte[] treeStructureBytes) {\r\n treeStructureBits = new byte[treeSizeInBits];\r\n String result = \"\"; // String where the program writes all bytes from the treeStructureBytes as separate bytes\r\n\r\n for (byte treeStructureByte : treeStructureBytes) {\r\n result += byteToString(treeStructureByte);\r\n }\r\n\r\n char[] separateChars = result.toCharArray();\r\n createTreeStructureBitsArray(separateChars);\r\n }", "title": "" }, { "docid": "16cd88e57ce8e420fcbe948d84681da7", "score": "0.40608087", "text": "public static void getLNPdu(final GXDLMSLNParameters p,\n final GXByteBuffer reply) {\n boolean ciphering = p.getCommand() != Command.AARQ\n && p.getCommand() != Command.AARE\n && p.getSettings().getCipher() != null\n && p.getSettings().getCipher().getSecurity() != null\n && p.getSettings().getCipher().getSecurity() != Security.NONE;\n int len = 0;\n if (!ciphering\n && p.getSettings().getInterfaceType() == InterfaceType.HDLC) {\n addLLCBytes(p.getSettings(), reply);\n }\n if (p.getCommand() == Command.AARQ) {\n reply.set(p.getAttributeDescriptor());\n } else {\n if (p.getSettings().getNegotiatedConformance()\n .contains(Conformance.GENERAL_BLOCK_TRANSFER)) {\n reply.setUInt8(Command.GENERAL_BLOCK_TRANSFER);\n multipleBlocks(p, reply, ciphering);\n // Is last block\n if (!p.isLastBlock()) {\n reply.setUInt8(0);\n } else {\n reply.setUInt8(0x80);\n }\n // Set block number sent.\n reply.setUInt8(0);\n // Set block number acknowledged\n reply.setUInt8((byte) p.getBlockIndex());\n p.setBlockIndex(p.getBlockIndex() + 1);\n // Add APU tag.\n reply.setUInt8(0);\n // Add Addl fields\n reply.setUInt8(0);\n }\n // Add command.\n reply.setUInt8(p.getCommand());\n\n if (p.getCommand() == Command.EVENT_NOTIFICATION\n || p.getCommand() == Command.DATA_NOTIFICATION\n || p.getCommand() == Command.ACCESS_REQUEST\n || p.getCommand() == Command.ACCESS_RESPONSE) {\n // Add Long-Invoke-Id-And-Priority\n if (p.getCommand() != Command.EVENT_NOTIFICATION) {\n if (p.getInvokeId() != 0) {\n reply.setUInt32(p.getInvokeId());\n\n } else {\n reply.setUInt32(\n getLongInvokeIDPriority(p.getSettings()));\n }\n }\n // Add date time.\n if (p.getTime() == null) {\n reply.setUInt8(DataType.NONE.getValue());\n } else {\n // Data is send in octet string. Remove data type.\n int pos = reply.size();\n GXCommon.setData(reply, DataType.OCTET_STRING, p.getTime());\n reply.move(pos + 1, pos, reply.size() - pos - 1);\n }\n } else if (p.getCommand() != Command.RELEASE_REQUEST) {\n // Get request size can be bigger than PDU size.\n if (p.getCommand() != Command.GET_REQUEST && p.getData() != null\n && p.getData().size() != 0) {\n multipleBlocks(p, reply, ciphering);\n }\n // Change Request type if Set request and multiple blocks is\n // needed.\n if (p.getCommand() == Command.SET_REQUEST) {\n if (p.isMultipleBlocks()) {\n if (p.getRequestType() == 1) {\n p.setRequestType(2);\n } else if (p.getRequestType() == 2) {\n p.setRequestType(3);\n }\n }\n }\n // Change request type If get response and multiple blocks is\n // needed.\n if (p.getCommand() == Command.GET_RESPONSE) {\n if (p.isMultipleBlocks()) {\n if (p.getRequestType() == 1) {\n p.setRequestType(2);\n }\n }\n }\n reply.setUInt8(p.getRequestType());\n // Add Invoke Id And Priority.\n if (p.getInvokeId() != 0) {\n reply.setUInt8((byte) p.getInvokeId());\n } else {\n reply.setUInt8(getInvokeIDPriority(p.getSettings()));\n }\n }\n // Add attribute descriptor.\n reply.set(p.getAttributeDescriptor());\n if (p.getCommand() != Command.EVENT_NOTIFICATION\n && p.getCommand() != Command.DATA_NOTIFICATION\n && !p.getSettings().getNegotiatedConformance()\n .contains(Conformance.GENERAL_BLOCK_TRANSFER)) {\n // If multiple blocks.\n if (p.isMultipleBlocks()) {\n // Is last block.\n if (p.isLastBlock()) {\n reply.setUInt8(1);\n p.getSettings().setCount(0);\n p.getSettings().setIndex(0);\n } else {\n reply.setUInt8(0);\n }\n // Block index.\n reply.setUInt32(p.getBlockIndex());\n p.setBlockIndex(p.getBlockIndex() + 1);\n // Add status if reply.\n if (p.getStatus() != 0xFF) {\n if (p.getStatus() != 0\n && p.getCommand() == Command.GET_RESPONSE) {\n reply.setUInt8(1);\n }\n reply.setUInt8(p.getStatus());\n }\n // Block size.\n if (p.getData() != null) {\n len = p.getData().size() - p.getData().position();\n } else {\n len = 0;\n }\n int totalLength = len + reply.size();\n if (ciphering) {\n totalLength += CIPHERING_HEADER_SIZE;\n }\n\n if (totalLength > p.getSettings().getMaxPduSize()) {\n len = p.getSettings().getMaxPduSize() - reply.size();\n if (ciphering) {\n len -= CIPHERING_HEADER_SIZE;\n }\n len -= GXCommon.getObjectCountSizeInBytes(len);\n }\n GXCommon.setObjectCount(len, reply);\n reply.set(p.getData(), len);\n }\n }\n // Add data that fits to one block.\n if (len == 0) {\n // Add status if reply.\n if (p.getStatus() != 0xFF) {\n if (p.getStatus() != 0\n && p.getCommand() == Command.GET_RESPONSE) {\n reply.setUInt8(1);\n }\n reply.setUInt8(p.getStatus());\n }\n if (p.getData() != null && p.getData().size() != 0) {\n len = p.getData().size() - p.getData().position();\n // Get request size can be bigger than PDU size.\n if (p.getCommand() != Command.GET_REQUEST && len\n + reply.size() > p.getSettings().getMaxPduSize()) {\n len = p.getSettings().getMaxPduSize() - reply.size();\n }\n reply.set(p.getData(), len);\n }\n }\n if (ciphering) {\n if (p.getSettings().getCipher()\n .getSecuritySuite() == SecuritySuite.AES_GCM_128) {\n cipher0(p, reply);\n } else {\n cipher1(p, reply);\n }\n }\n }\n }", "title": "" }, { "docid": "f0b02e336a860e9fe77b27660dd19c41", "score": "0.40541103", "text": "public void makeBytes() {\n SendAttribute sattr = makeSendedPacket();\n packetmessages = sattr.getPacketMessage();\n }", "title": "" }, { "docid": "5a24c75031c132ab4121edccb6e0e093", "score": "0.40505067", "text": "public void decode(LittleEndianDataInputStream dis) throws IOException {\n capacity_full_specification = (int)dis.readInt();\n capacity_full = (int)dis.readInt();\n cycle_count = (int)dis.readUnsignedShort()&0x00FFFF;\n weight = (int)dis.readUnsignedShort()&0x00FFFF;\n discharge_minimum_voltage = (int)dis.readUnsignedShort()&0x00FFFF;\n charging_minimum_voltage = (int)dis.readUnsignedShort()&0x00FFFF;\n resting_minimum_voltage = (int)dis.readUnsignedShort()&0x00FFFF;\n id = (int)dis.readUnsignedByte()&0x00FF;\n battery_function = (int)dis.readUnsignedByte()&0x00FF;\n type = (int)dis.readUnsignedByte()&0x00FF;\n for (int i=0; i<16; i++) {\n serial_number[i] = (char)dis.readByte();\n }\n for (int i=0; i<50; i++) {\n device_name[i] = (char)dis.readByte();\n }\n discharge_maximum_current = (int)dis.readInt()&0x00FFFFFFFF;\n discharge_maximum_burst_current = (int)dis.readInt()&0x00FFFFFFFF;\n charging_maximum_voltage = (int)dis.readUnsignedShort()&0x00FFFF;\n cells_in_series = (int)dis.readUnsignedByte()&0x00FF;\n for (int i=0; i<11; i++) {\n manufacture_date[i] = (char)dis.readByte();\n }\n}", "title": "" }, { "docid": "473fb4fab9153ac5ae249e594b99e9e0", "score": "0.40475953", "text": "byte[] convertToDeXTTPayload();", "title": "" }, { "docid": "76620cfc0892352f4b273d3bfc63dc57", "score": "0.4043041", "text": "public static void processHeadersMessage(Message msg, SerializedBuffer inBuffer, MessageListener msgListener)\n\t\t\tthrows EOFException, VerificationException {\n\t\t//\n\t\t// Build the block header list\n\t\t//\n\t\tint count = inBuffer.getVarInt();\n\t\tif (count < 0 || count > 2000)\n\t\t\tthrow new VerificationException(\"More than 2000 headers\", RejectMessage.REJECT_INVALID);\n\t\tList<BlockHeader> hdrList = new ArrayList<>(count);\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\thdrList.add(new BlockHeader(inBuffer, true));\n\t\t\tinBuffer.getVarInt();\n\t\t}\n\t\t//\n\t\t// Notify the message listener\n\t\t//\n\t\tmsgListener.processBlockHeaders(msg, hdrList);\n\t}", "title": "" }, { "docid": "2006d9ba898e3f752c871146ce7c7808", "score": "0.40351534", "text": "public void input_splitter(byte INPUT[])\n\t{\n\t\tfor (int j = 0; j < MAIN_SIZE; j++)\n\t\t{\n\t\t\tswitch(j)\n\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\t\tSystem.arraycopy(INPUT, 0, split_0, 0, SECT_SIZE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 32:\n\t\t\t\t\tSystem.arraycopy(INPUT, SECT_SIZE, split_1, 0, SECT_SIZE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 64:\n\t\t\t\t\tSystem.arraycopy(INPUT, SECT_SIZE * 2, split_2, 0, SECT_SIZE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 96:\n\t\t\t\t\tSystem.arraycopy(INPUT, SECT_SIZE * 3, split_3, 0, SECT_SIZE);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "94e8f2dd32f05c25e7c3ec8623bb34ab", "score": "0.40253684", "text": "public static byte[] dataHeaderGenerator(int totalLenght, int localLength, boolean moreF, short idPaquet, int channel)\r\n/* 72: */ {\r\n/* 73:111 */ byte[] byteTotalLength = ByteBuffer.allocate(4).putInt(totalLenght).array();\r\n/* 74:112 */ byte[] byteLocalLength = ByteBuffer.allocate(4).putInt(localLength).array();\r\n/* 75:113 */ byte[] byteMoreF = new byte[1];\r\n/* 76:114 */ if (moreF) {\r\n/* 77:114 */ byteMoreF[0] = 1;\r\n/* 78: */ } else {\r\n/* 79:115 */ byteMoreF[0] = 0;\r\n/* 80: */ }\r\n/* 81:116 */ byte[] bytePointeurData = ByteBuffer.allocate(2).putShort(idPaquet).array();\r\n/* 82:117 */ byte[] byteChannel = ByteBuffer.allocate(4).putInt(channel).array();\r\n/* 83: */ \r\n/* 84:119 */ byte[] header = new byte[15];\r\n/* 85: */ \r\n/* 86:121 */ System.arraycopy(byteTotalLength, 0, header, 0, byteTotalLength.length);\r\n/* 87:122 */ System.arraycopy(byteLocalLength, 0, header, byteTotalLength.length, byteLocalLength.length);\r\n/* 88:123 */ System.arraycopy(byteMoreF, 0, header, byteTotalLength.length + byteLocalLength.length, byteMoreF.length);\r\n/* 89:124 */ System.arraycopy(bytePointeurData, 0, header, byteTotalLength.length + byteLocalLength.length + byteMoreF.length, bytePointeurData.length);\r\n/* 90:125 */ System.arraycopy(byteChannel, 0, header, byteTotalLength.length + byteLocalLength.length + byteMoreF.length + bytePointeurData.length, byteChannel.length);\r\n/* 91: */ \r\n/* 92:127 */ return header;\r\n/* 93: */ }", "title": "" }, { "docid": "5dab843792e858f878f251feeb88d67c", "score": "0.4023037", "text": "static void multipleBlocks(final GXDLMSLNParameters p,\n final GXByteBuffer reply, final boolean ciphering) {\n // Check is all data fit to one message if data is given.\n int len = p.getData().size() - p.getData().position();\n if (p.getAttributeDescriptor() != null) {\n len += p.getAttributeDescriptor().size();\n }\n if (ciphering) {\n len += CIPHERING_HEADER_SIZE;\n }\n if (!p.isMultipleBlocks()) {\n // Add command type and invoke and priority.\n p.setMultipleBlocks(\n 2 + reply.size() + len > p.getSettings().getMaxPduSize());\n }\n if (p.isMultipleBlocks()) {\n // Add command type and invoke and priority.\n p.setLastBlock(!(8 + reply.size() + len > p.getSettings()\n .getMaxPduSize()));\n }\n if (p.isLastBlock()) {\n // Add command type and invoke and priority.\n p.setLastBlock(!(8 + reply.size() + len > p.getSettings()\n .getMaxPduSize()));\n }\n }", "title": "" }, { "docid": "8ea9884b22cf6492d35036caa27f23d6", "score": "0.40147957", "text": "public int parseData(byte[] data){\r\n\t\tint futureLength = mCurrentPayloadLength + data.length;\r\n\t\t// Length check\r\n\t\tif(futureLength > MAX_L1_PAYLOAD_LENGTH || futureLength > mPayloadLength) {\r\n\t\t\tif(D) Log.e(TAG, \"Parse Payload with length error.\");\r\n\t\t\treturn LT_LENGTH_ERROR;\r\n\t\t}\r\n\r\n\t\tLogUtils.d(TAG, \">>> after : arraycopy data : \"+ StringByteTrans.byte2HexStr(data) + \" mPayloadBuffer : \"+StringByteTrans.byte2HexStr(mPayloadBuffer));\r\n\t\t// save the payload info\r\n\t\tSystem.arraycopy(data, 0, mPayloadBuffer, mCurrentPayloadLength, data.length);\r\n\r\n\t\tLogUtils.d(TAG, \">>> before : arraycopy data : \"+ StringByteTrans.byte2HexStr(data) + \" mPayloadBuffer : \"+StringByteTrans.byte2HexStr(mPayloadBuffer));\r\n\r\n\t\t// update current lenth\r\n\t\tmCurrentPayloadLength = futureLength;\r\n\t\t\r\n\t\t// check CRC only when a integrated packet receive\r\n\t\tif(mCurrentPayloadLength == mPayloadLength) {\r\n\t\t\tbyte[] payload = getRealPayload();\r\n\t\t\tif(checkCRC(payload) != true) {\r\n\t\t\t\treturn LT_CRC_ERROR;\r\n\t\t\t}\r\n\t\t\treturn LT_FULL_PACKET;\r\n\t\t}\r\n\t\treturn LT_SUCCESS;\r\n\t}", "title": "" }, { "docid": "e332cc994005b7edc5c2fac44d7c7d4b", "score": "0.40116885", "text": "public void unpack(MAVLinkPayload payload) {\n payload.resetIndex();\n\t xp1 = payload.getFloat();\n\t yp1 = payload.getFloat();\n\t zp1 = payload.getFloat();\n\t xp2 = payload.getFloat();\n\t yp2 = payload.getFloat();\n\t zp2 = payload.getFloat();\n\t timeout = payload.getShort();\n\t type = payload.getByte();\n\t color = payload.getByte();\n\t coordinate_system = payload.getByte();\n\t for (int i = 0; i < name.length; i++) {\n\t\t\tname[i] = payload.getByte();\n\t\t} \n }", "title": "" }, { "docid": "51096aed291b973c31b89be0a7226053", "score": "0.40095896", "text": "@Test\n public void testDraft21SharingL77SlidingWindowNoContextTakeover() {\n Tester tester = clientExtensions.newTester(\"permessage-deflate\");\n\n tester.assertNegotiated(\"permessage-deflate\");\n\n tester.parseIncomingHex(// 2 message, shared LZ77 window\n // message 1\n \"0xc1 0x07\", // (HEADER added for this test)\n \"0xf2 0x48 0xcd 0xc9 0xc9 0x07 0x00\",\n // message 2\n \"0xc1 0x05\", // (HEADER added for this test)\n \"0xf2 0x00 0x11 0x00 0x00\"\n );\n\n tester.assertHasFrames(\"Hello\", \"Hello\");\n }", "title": "" }, { "docid": "afe4b8a0636be4f2556bae6e87de59c8", "score": "0.40086886", "text": "public void testUnparsabeRelayMessage() {\n\t}", "title": "" }, { "docid": "77475a94613a192df0c20fb48f6868ce", "score": "0.400408", "text": "@Override\n public void onReceivedData(byte[] arg0) {\n String data = null;\n int k;\n\n for (int j = 0; j < arg0.length; j++) {\n\n if(i==0&&arg0[j]!=0x7E)\n continue;\n b[i] = arg0[j];\n i++;\n }\n\n if(b[2]+0x04==i)//condition for complete data frames\n {\n\n if (b[2]==0x15) {//receive pan id\n //tvAppend(textView, \"a\\n\");\n for (int j = 0; j < 25; j++) {\n s = Integer.toHexString(b[j]);\n CharSequence c = s + \" \";\n //tvAppend(textView, c);\n\n }\n //tvAppend(textView,\"\\n\");\n PANconnect(b);\n for(int j=0;j<25;j++)\n b[j] = 0;\n b[2]=0x6F;\n }\n\n else if(b[2] == 0x05)//receive ok status on connection\n {\n for (int j = 0; j < 9; j++) {\n s = Integer.toHexString(b[j]);\n CharSequence c = s + \" \";\n }\n //toast(\"select node\");\n for(int j=0;j<9;j++)\n b[j] = 0;\n\n }\n\n else if(b[2] == 0x0D)//receive current pan\n {\n String temp = new String();\n String panid =\"\";\n int flag = 0;\n for (int j = 8; j < 16; j++) {\n if (b[j] != 0 || flag == 1) {\n temp = Integer.toHexString(b[j]);\n if (temp.length()==1)\n temp = \"0\"+temp;\n flag = 1;\n panid += temp;\n\n }\n }\n toast(panid);\n\n }\n else if(b[2] == 0x10)\n {\n toast(\"data received\");\n byte rec_data[] = {b[17], b[18]};\n send_data(rec_data);\n\n for(int j=0;j<b[2]+4;j++)\n b[j]=0;\n }\n\n else if(b[2] > 0x19)\n {\n for (int j = 5; j < i; j++) {\n// if(b[j]>64&&b[j]<=90||b[j]>=48&&b[j]<58) {\n// s = Character.toString((char) b[j]);\n// nd = nd + s;\n// }\n if(b[j]==0x00&&(int)b[j+1]==(int)0x13)\n {\n toast(\"aaa\");\n nd_command(b, j);\n break;\n }\n }\n for(int j=0;j<b[2]+4;j++)\n b[j]=0;\n\n }\n i=0;\n }\n\n\n }", "title": "" }, { "docid": "0a7b907ae466728df909e5804ea4f0c2", "score": "0.39977825", "text": "static void addLLCBytes(final GXDLMSSettings settings,\n final GXByteBuffer data) {\n if (settings.isServer()) {\n data.set(0, GXCommon.LLC_REPLY_BYTES);\n } else {\n data.set(0, GXCommon.LLC_SEND_BYTES);\n }\n }", "title": "" }, { "docid": "87f2d9ea9148184dda9016c8f46ea066", "score": "0.39956456", "text": "public DLL<E> splitParity(boolean parity) {\n DLL<E> list = new DLL<>();\n if (first != null) {\n DLLNode<E> tmp = first;\n while (tmp != null) {\n if (parity) {\n if ((Integer)tmp.element % 2 == 0) {\n list.insertLast(tmp.element);\n }\n }else{\n if ((Integer)tmp.element % 2 != 0){\n list.insertLast(tmp.element);\n }\n }\n tmp = tmp.succ;\n }\n }\n return list;\n }", "title": "" } ]
ac230d5cd013641e128d8125c0ab488e
Generated method Setter of the PaymentSubscriptionResult.success attribute.
[ { "docid": "bf078b519f1030f3d216421c0fd0a6f8", "score": "0.0", "text": "public void setSuccess(final SessionContext ctx, final Boolean value)\n\t{\n\t\tsetProperty(ctx, SUCCESS,value);\n\t}", "title": "" } ]
[ { "docid": "13b0dffad734f857bbde2a4990f40d51", "score": "0.74735296", "text": "public void setSuccess(boolean success) {\n this.success = success;\n }", "title": "" }, { "docid": "13b0dffad734f857bbde2a4990f40d51", "score": "0.74735296", "text": "public void setSuccess(boolean success) {\n this.success = success;\n }", "title": "" }, { "docid": "0c21fd31fe1db64d68b4c3198d6023bb", "score": "0.7384362", "text": "public void setSuccess(boolean value) {\r\n this.success = value;\r\n }", "title": "" }, { "docid": "51789bc91239775b80ea0889e8f28e27", "score": "0.7061866", "text": "public void setSuccessProperty(String successProperty) {\n\t\tthis.successProperty = successProperty;\n\t\tthis.handleConfig(\"successProperty\", successProperty);\n\t}", "title": "" }, { "docid": "4f9785206b26dfc76610d4cc174e88eb", "score": "0.70104986", "text": "public Builder setSuccess(boolean value) {\n \n success_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4708e1d299aca17d5e187c8af3e4b473", "score": "0.6936144", "text": "private void setSuccess(boolean value) {\n \n success_ = value;\n }", "title": "" }, { "docid": "4708e1d299aca17d5e187c8af3e4b473", "score": "0.6936144", "text": "private void setSuccess(boolean value) {\n \n success_ = value;\n }", "title": "" }, { "docid": "4708e1d299aca17d5e187c8af3e4b473", "score": "0.6936144", "text": "private void setSuccess(boolean value) {\n \n success_ = value;\n }", "title": "" }, { "docid": "fc3cf3dcc8bf2ac29ad871e05a114975", "score": "0.6798372", "text": "protected void setSuccess(boolean newSuccess)\r\n {\r\n success = newSuccess;\r\n }", "title": "" }, { "docid": "6e17ecdf0377b8fb17993099d0b85a26", "score": "0.6795466", "text": "public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }", "title": "" }, { "docid": "6e17ecdf0377b8fb17993099d0b85a26", "score": "0.6795466", "text": "public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }", "title": "" }, { "docid": "6e17ecdf0377b8fb17993099d0b85a26", "score": "0.6795466", "text": "public Builder setSuccess(boolean value) {\n copyOnWrite();\n instance.setSuccess(value);\n return this;\n }", "title": "" }, { "docid": "d25336734984054bea43c32d98adb0cf", "score": "0.67869604", "text": "public void setIsSuccess(boolean value) {\n this.isSuccess = value;\n }", "title": "" }, { "docid": "6b40fb0bf3f9ec773ced6ba64d507156", "score": "0.6756469", "text": "public void setSuccess(boolean success);", "title": "" }, { "docid": "5c1b0f702dd1f3aaff83d6c488c81700", "score": "0.67242455", "text": "public void setSuccess(boolean success) {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Setting success to -> \"+ success);\n this.success = success;\n }", "title": "" }, { "docid": "cbeb8b089183d02178e266ed810ea649", "score": "0.66728616", "text": "public Boolean getSuccess() {\n\t\treturn success;\n\t}", "title": "" }, { "docid": "26567dc03fe3b03524036f476b219a04", "score": "0.6605123", "text": "public ChangeRegistrationResponse(@NonNull Boolean success, @NonNull Result resultCode) {\r\n\t\tthis();\r\n\t\tsetSuccess(success);\r\n\t\tsetResultCode(resultCode);\r\n\t}", "title": "" }, { "docid": "110232a93daf97fc9e55a4cf6bc68668", "score": "0.65796226", "text": "public void setIsSuccess(boolean isSuccess) {\r\n this.isSuccess = isSuccess;\r\n }", "title": "" }, { "docid": "cb615b35399674771ae1e2b2b4cec9ee", "score": "0.6534056", "text": "public void setOperationSuccess(boolean value) {\n this.operationSuccess = value;\n }", "title": "" }, { "docid": "e7283bb4d7b80021b1912457ecc47cdc", "score": "0.6477657", "text": "public ChannelProgressivePromise setSuccess()\r\n/* 41: */ {\r\n/* 42: 73 */ return setSuccess(null);\r\n/* 43: */ }", "title": "" }, { "docid": "e9a1dbffaab00388ff64f24f61798865", "score": "0.64451903", "text": "public boolean getSuccess() {\n return success_;\n }", "title": "" }, { "docid": "e9a1dbffaab00388ff64f24f61798865", "score": "0.64451903", "text": "public boolean getSuccess() {\n return success_;\n }", "title": "" }, { "docid": "e9a1dbffaab00388ff64f24f61798865", "score": "0.64451903", "text": "public boolean getSuccess() {\n return success_;\n }", "title": "" }, { "docid": "e9a1dbffaab00388ff64f24f61798865", "score": "0.64451903", "text": "public boolean getSuccess() {\n return success_;\n }", "title": "" }, { "docid": "92f86d5ddedd5d16d99b9ef9731a6a7b", "score": "0.64272714", "text": "public boolean getSuccess() {\n return success_;\n }", "title": "" }, { "docid": "3be73817dd53a2ae7756cafdfd5d5bd7", "score": "0.6415106", "text": "public void setTradeSuccess(Integer tradeSuccess) {\n this.tradeSuccess = tradeSuccess;\n }", "title": "" }, { "docid": "03b5e3f7f60e208f4d90f76bd5fec970", "score": "0.64018416", "text": "public void setActionSuccess(boolean actionSuccess)\n {\n m_actionSuccess = actionSuccess;\n }", "title": "" }, { "docid": "cca7ca1d0a444058d19dbbb5441030bf", "score": "0.6375267", "text": "public ChannelProgressivePromise setSuccess(Void result)\r\n/* 46: */ {\r\n/* 47: 78 */ super.setSuccess(result);\r\n/* 48: 79 */ return this;\r\n/* 49: */ }", "title": "" }, { "docid": "8ad3bf91483c7ec71a4f505f58fbf71f", "score": "0.6347407", "text": "public void setSuccess(final boolean value)\n\t{\n\t\tsetSuccess( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "51613c4e6ccceefab2c84499bf36b55b", "score": "0.629497", "text": "@Required\n\tpublic void setSuccessView(String successView) {\n\t\tthis.successView = successView;\n\t}", "title": "" }, { "docid": "430e876f37d1a4f6e2b1e62d0fe4445d", "score": "0.62935036", "text": "public void setSuccess(final Boolean value)\n\t{\n\t\tsetSuccess( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "baca82269b7d8cecba634264d761c04f", "score": "0.6276678", "text": "public void setIsSuccess(Integer isSuccess) {\n this.isSuccess = isSuccess;\n }", "title": "" }, { "docid": "7f5ccb97896c4def9489b7d71b490f69", "score": "0.6276063", "text": "public boolean patenteSuccess() {\n return this.success;\n }", "title": "" }, { "docid": "249c98b8763b7fc2d63f0ce3307cbccf", "score": "0.62684345", "text": "public int getSuccess() {\n return success;\n }", "title": "" }, { "docid": "7b0faf4629cf3186592c8d80794bfa34", "score": "0.6257335", "text": "@XmlTransient\n\tpublic boolean isSuccess() {\n\t\treturn errorCode == ActionErrorCode.SUCCESS;\n\t}", "title": "" }, { "docid": "52dfa6372640048b5dfc8b2ce4173d27", "score": "0.62522775", "text": "public boolean isSuccess() {\r\n return success;\r\n }", "title": "" }, { "docid": "52dfa6372640048b5dfc8b2ce4173d27", "score": "0.62522775", "text": "public boolean isSuccess() {\r\n return success;\r\n }", "title": "" }, { "docid": "3542ace659664c577147905b7ad51b39", "score": "0.6249641", "text": "boolean getSuccess();", "title": "" }, { "docid": "3542ace659664c577147905b7ad51b39", "score": "0.6249641", "text": "boolean getSuccess();", "title": "" }, { "docid": "3542ace659664c577147905b7ad51b39", "score": "0.6249641", "text": "boolean getSuccess();", "title": "" }, { "docid": "3542ace659664c577147905b7ad51b39", "score": "0.6249641", "text": "boolean getSuccess();", "title": "" }, { "docid": "65a162b570d78367471b76d9f655dacb", "score": "0.6246738", "text": "public boolean isSuccess()\r\n {\r\n return success;\r\n }", "title": "" }, { "docid": "79bdefcb2bfee0ad2f62e9e180bfb87e", "score": "0.62274283", "text": "public boolean isSuccess() {\n return success;\n }", "title": "" }, { "docid": "79bdefcb2bfee0ad2f62e9e180bfb87e", "score": "0.62274283", "text": "public boolean isSuccess() {\n return success;\n }", "title": "" }, { "docid": "79bdefcb2bfee0ad2f62e9e180bfb87e", "score": "0.62274283", "text": "public boolean isSuccess() {\n return success;\n }", "title": "" }, { "docid": "d35381f24c72b508a71c40db9bf48c37", "score": "0.6221391", "text": "public boolean isSuccess() {\n return mSuccess;\n }", "title": "" }, { "docid": "130aa6d514de9eedb54ebcda527fce0e", "score": "0.6210177", "text": "public boolean isSetSuccess() {\r\n return this.success != null;\r\n }", "title": "" }, { "docid": "130aa6d514de9eedb54ebcda527fce0e", "score": "0.6210177", "text": "public boolean isSetSuccess() {\r\n return this.success != null;\r\n }", "title": "" }, { "docid": "130aa6d514de9eedb54ebcda527fce0e", "score": "0.6210177", "text": "public boolean isSetSuccess() {\r\n return this.success != null;\r\n }", "title": "" }, { "docid": "130aa6d514de9eedb54ebcda527fce0e", "score": "0.6210177", "text": "public boolean isSetSuccess() {\r\n return this.success != null;\r\n }", "title": "" }, { "docid": "130aa6d514de9eedb54ebcda527fce0e", "score": "0.6210177", "text": "public boolean isSetSuccess() {\r\n return this.success != null;\r\n }", "title": "" }, { "docid": "130aa6d514de9eedb54ebcda527fce0e", "score": "0.6210177", "text": "public boolean isSetSuccess() {\r\n return this.success != null;\r\n }", "title": "" }, { "docid": "48817a603d00138b50e17f3af6d08088", "score": "0.61881965", "text": "public Promise<V> setSuccess(V result)\r\n/* 311: */ {\r\n/* 312:397 */ if (setSuccess0(result))\r\n/* 313: */ {\r\n/* 314:398 */ notifyListeners();\r\n/* 315:399 */ return this;\r\n/* 316: */ }\r\n/* 317:401 */ throw new IllegalStateException(\"complete already: \" + this);\r\n/* 318: */ }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" }, { "docid": "521e4d91d2f6c6a9a45a62de2b49be71", "score": "0.61540735", "text": "public boolean isSetSuccess() {\n return this.success != null;\n }", "title": "" } ]
370c09071006c0f730fa21b28d7f4f9a
Remove a connection from the target group.
[ { "docid": "36d4ce0c5275b3d41485c0d624942775", "score": "0.63225526", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<Void> removeConnectionFromGroupAsync(String hub, String group, String connectionId) {\n return removeConnectionFromGroupWithResponseAsync(hub, group, connectionId)\n .flatMap((Response<Void> res) -> Mono.empty());\n }", "title": "" } ]
[ { "docid": "5cf90775a045503e3fd0a0574bdc9d61", "score": "0.73012275", "text": "void removeConnection(Connection connection);", "title": "" }, { "docid": "c5717dd78392c4520cd5f95d4ceb7c75", "score": "0.692995", "text": "public void remove(Connection connection) { }", "title": "" }, { "docid": "be7e7621a246fc77b814a4e31cd2472d", "score": "0.68455034", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public void removeConnectionFromGroup(String hub, String group, String connectionId) {\n removeConnectionFromGroupAsync(hub, group, connectionId).block();\n }", "title": "" }, { "docid": "cf3c5b4e91671aa5fdbc67125dde45ec", "score": "0.6525127", "text": "public void removeSharedConnection();", "title": "" }, { "docid": "76c5e9c7c2603e5769c0bdb940b4b179", "score": "0.6507763", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<Void> removeConnectionFromGroupAsync(String hub, String group, String connectionId, Context context) {\n return removeConnectionFromGroupWithResponseAsync(hub, group, connectionId, context)\n .flatMap((Response<Void> res) -> Mono.empty());\n }", "title": "" }, { "docid": "6f3c7068a0314cdcf4a7129fea65d80d", "score": "0.63221496", "text": "public void disconnectFromGroup()\n {\n mDisconnectFromGroupStatus = -2;\n\n mManager.removeGroup(mChannel, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess()\n {\n Log.d(DEBUG_TAG, \"disconnectFromGroups() - success\");\n mDisconnectFromGroupStatus = -1;\n\n //forceRemoveGroup();\n }\n\n @Override\n public void onFailure(int reason)\n {\n Log.d(DEBUG_TAG, \"disconnectFromGroups() - failure: \" + reason);\n mDisconnectFromGroupStatus = reason;\n }\n });\n }", "title": "" }, { "docid": "fbe13771f1a9d020318a90caea3399f4", "score": "0.59419674", "text": "public void removeFromGroup(GroupMember member);", "title": "" }, { "docid": "bdc8865cc54d51855db2b21ee484aa43", "score": "0.5923105", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public Response<Void> removeConnectionFromGroupWithResponse(\n String hub, String group, String connectionId, Context context) {\n return removeConnectionFromGroupWithResponseAsync(hub, group, connectionId, context).block();\n }", "title": "" }, { "docid": "8a7fb8ba404750456f333d85dc42a8eb", "score": "0.5836586", "text": "protected void remove(ManagedConnection connection) {\n PoolEntry entry = (PoolEntry) _entries.remove(connection);\n if (entry != null) {\n if (entry.getAccepted()) {\n _accepted.remove(connection);\n } else {\n _connections.remove(connection);\n _handles.remove(connection);\n }\n URI remoteURI = null;\n URI localURI = null;\n try {\n remoteURI = connection.getRemoteURI();\n localURI = connection.getLocalURI();\n } catch (ResourceException exception) {\n _log.debug(\"Failed to get connection URIs\", exception);\n }\n\n try {\n connection.destroy();\n } catch (ResourceException exception) {\n _log.debug(\"Failed to destroy connection\", exception);\n }\n if (remoteURI != null && localURI != null) {\n notifyDisconnection(remoteURI, localURI);\n }\n } else {\n _log.debug(\"ManagedConnection not found\");\n }\n if (_entries.isEmpty()) {\n stopReaper();\n }\n }", "title": "" }, { "docid": "43e02b5c3c8cd5810e3d42ecdf3b7c0c", "score": "0.5777732", "text": "public void removeConnection(long userId) {\n connections.remove(userId);\n }", "title": "" }, { "docid": "169fbded2c8032db97357b8cbb79c2ea", "score": "0.5775214", "text": "public void removeConnectionListener(ConnectionListener listener){\r\n listenerList.remove(ConnectionListener.class, listener);\r\n }", "title": "" }, { "docid": "34eaff6003aeab4a8e92aa8a4fb0bfcc", "score": "0.5767093", "text": "public void removeWebSocketConnection() {\n this.con = null;\n this.dummyQueue.addToRemoveDummyQueue(this);\n }", "title": "" }, { "docid": "e47eb44a83c9dbb7281e347cf24c5dc8", "score": "0.5727139", "text": "@Override\n public void deleteConnection(String connectionId) {\n\n }", "title": "" }, { "docid": "f7af56e185f1d3d51b0fe2ebb11f295b", "score": "0.56886446", "text": "public ConnectionDescriptor remove(String name) {\n return descriptors.remove(name);\n }", "title": "" }, { "docid": "5a3bd224134aab075e5e07ce8ce283ac", "score": "0.5671308", "text": "@SuppressWarnings(\"unused\")\n public static void removeConnection() {\n if (tCurrent.get() != null) {\n tCurrent.get().setStarted(false);\n tCurrent.get().setConnection(null);\n } else {\n log.error(\"The current transaction entry has not been created.\");\n }\n }", "title": "" }, { "docid": "4e771a7e5b9feca4f0eb4335b07871b9", "score": "0.5625525", "text": "void dropConnection();", "title": "" }, { "docid": "6599b31d499cdc93fd03cf7ccaab0051", "score": "0.56143856", "text": "@Override\n public void removeGroup(Group group) {\n }", "title": "" }, { "docid": "2128573fcd891c50254b0153b89c576d", "score": "0.5612941", "text": "public static void deleteConnection(ClientConnection connection){\n allConnections.remove(connection);\n }", "title": "" }, { "docid": "b3f7c93ca86314869055cf4d4677e34c", "score": "0.560302", "text": "public void cancelConnectToGroup()\n {\n mCancelConnectToGroupStatus = -2;\n\n mManager.cancelConnect(mChannel, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess()\n {\n Log.d(DEBUG_TAG, \"cancelConnectToGroup() - success\");\n mCancelConnectToGroupStatus = -1;\n }\n\n @Override\n public void onFailure(int reason)\n {\n Log.d(DEBUG_TAG, \"cancelConnectToGroup() - failure\");\n mCancelConnectToGroupStatus = reason;\n }\n });\n\n }", "title": "" }, { "docid": "727650f4639b94f3c4d4285839405577", "score": "0.559222", "text": "public void removeConnection(ServerCommunicationLogic toBeRemoved){\n clientCommunication.remove(toBeRemoved);\n dataStore.userNotActive(toBeRemoved);\n }", "title": "" }, { "docid": "0fe338c9fd07bf1a6d239f0bc0946012", "score": "0.55621296", "text": "@Override\n\tpublic void removeConnectionListener(IConnectionListener listener) {\n\t\tlisteners = ListSupport.removeListener(listener, listeners);\n\t}", "title": "" }, { "docid": "1ebc6e175ab3a91d20f1001f8e1e1427", "score": "0.55527997", "text": "public void removeConnectionListener(final KNXListener l) {\n\t\tlisteners.remove(l);\n\t}", "title": "" }, { "docid": "1802d634a2c36e925687c80bf7ba71ad", "score": "0.55408555", "text": "private void deleteConnection(Uuid connectionUuid) {\n InstanceIdentifier<org.opendaylight.yang.gen.v1\n .urn.onf.otcc.yang.tapi.connectivity.rev181210.connectivity.context.Connection> connectionIID =\n InstanceIdentifier.builder(Context.class).augmentation(Context1.class)\n .child(org.opendaylight.yang.gen.v1.urn\n .onf.otcc.yang.tapi.connectivity.rev181210.context.ConnectivityContext.class)\n .child(org.opendaylight.yang.gen.v1.urn\n .onf.otcc.yang.tapi.connectivity.rev181210.connectivity.context.Connection.class,\n new org.opendaylight.yang.gen.v1.urn\n .onf.otcc.yang.tapi.connectivity.rev181210.connectivity.context.ConnectionKey(\n connectionUuid))\n .build();\n try {\n this.networkTransactionService.delete(LogicalDatastoreType.OPERATIONAL, connectionIID);\n this.networkTransactionService.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Failed to delete TAPI connection\", e);\n }\n }", "title": "" }, { "docid": "d7055a314e3551b85f85142f42bb36a6", "score": "0.55108446", "text": "@Override\n\tpublic void removeConnectionEventListener(ConnectionEventListener listener) {\n\t\tif (listener == null)\n\t\t\tthrow new IllegalArgumentException(\"Listener is null\");\n\n\t\tlisteners.remove(listener);\n\t}", "title": "" }, { "docid": "b8aa69afff8cb92dc4615e6920407b0d", "score": "0.5381346", "text": "public void delConnectionInfo(ConnectionInfo ci){\r\n\t\tcons.remove(ci);\r\n saveConnections();\r\n\t}", "title": "" }, { "docid": "236b5708aca16214e79dcf9e9cc0ade8", "score": "0.53805405", "text": "public void receiveResultremoveConnection(\n com.proclos.ns.etl_server.ETLServerStub.RemoveConnectionResponse result) {\n }", "title": "" }, { "docid": "f458ccbb42882b45d79c798fb6c6ec45", "score": "0.53607684", "text": "public void removeConnection(WebSocketConnection conn) {\n if (conn != null) {\n WebSocketScope scope = getScope(conn);\n if (scope != null) {\n scope.removeConnection(conn);\n notifyListeners(WebSocketEvent.CONNECTION_REMOVED, scope, conn);\n if (!scope.isValid()) {\n // scope is not valid, delete it\n removeWebSocketScope(scope);\n }\n }\n }\n }", "title": "" }, { "docid": "b45530610ef7cba5eb9dfb9a18a05fdc", "score": "0.5352637", "text": "public com.wordpress.metaphorm.authProxy.sb.model.OAuthConnection remove(\n\t\tlong connectionId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.wordpress.metaphorm.authProxy.sb.NoSuchOAuthConnectionException;", "title": "" }, { "docid": "48708a760aa233c8fa770f7e60aa81b9", "score": "0.5351618", "text": "boolean removeGroup(String galias, String oalias) throws RemoteException;", "title": "" }, { "docid": "8266c7b78d18a2f27ade0179bbe4d139", "score": "0.5339173", "text": "public com.wordpress.metaphorm.authProxy.sb.model.OAuthConnection removeByrealm(\n\t\tlong companyId, long groupId, long userId, java.lang.String realm)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.wordpress.metaphorm.authProxy.sb.NoSuchOAuthConnectionException;", "title": "" }, { "docid": "f6ca57631f293d062d85938f9ef32cfc", "score": "0.5328873", "text": "public void disconnect(){\r\n\t\tfor(int i = 0; i < links.size(); i++){\r\n\t\t\tConnector c = (Connector) links.get(i);\r\n\t\t\tint index = c.n.indexOf(this);\r\n\t\t\tif(index > -1){\r\n\t\t\t\tc.n.links.remove(index);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "92ff281884b0f2eec5aaf12a1b75716e", "score": "0.53212786", "text": "public void removePlotGroup(){\n itsPlotGroup = null;\n }", "title": "" }, { "docid": "13d7658d2a81461def9195360acdb494", "score": "0.531196", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<Response<Void>> removeConnectionFromGroupWithResponseAsync(\n String hub, String group, String connectionId, Context context) {\n if (this.client.getHost() == null) {\n return Mono.error(\n new IllegalArgumentException(\"Parameter this.client.getHost() is required and cannot be null.\"));\n }\n if (hub == null) {\n return Mono.error(new IllegalArgumentException(\"Parameter hub is required and cannot be null.\"));\n }\n if (group == null) {\n return Mono.error(new IllegalArgumentException(\"Parameter group is required and cannot be null.\"));\n }\n if (connectionId == null) {\n return Mono.error(new IllegalArgumentException(\"Parameter connectionId is required and cannot be null.\"));\n }\n return service.removeConnectionFromGroup(\n this.client.getHost(), hub, group, connectionId, this.client.getApiVersion(), context);\n }", "title": "" }, { "docid": "e52c208042764c44651f28f1ac20e96b", "score": "0.5299354", "text": "void removeGroupMember(removeGroupMemberCompletion notification);", "title": "" }, { "docid": "bc067eeb0f8e50c463cd249f93924f65", "score": "0.52976936", "text": "@Override\r\n\tpublic void removeConnectionNotify(final ModelElement element) {\r\n\t\tif (connectionsIn!=null && connectionsIn.indexOf(element)>=0) {connectionsIn.remove(element); fireChanged();}\r\n\t\tif (connectionOutSuccess==element) {connectionOutSuccess=null; fireChanged();}\r\n\t\tif (connectionOutCancel==element) {connectionOutCancel=null; fireChanged();}\r\n\t}", "title": "" }, { "docid": "715a4d139e474cfce1333e40769c4b3c", "score": "0.5293846", "text": "void removeBinding(ChannelBinding binding);", "title": "" }, { "docid": "ec4e78fc92552ce47ff8f2e080b276f3", "score": "0.5280883", "text": "void removeNonExistentPort(final RemoteGroupPort port);", "title": "" }, { "docid": "3f7bbf1f931cd7623d15065be865eab3", "score": "0.5258422", "text": "@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void disconnect() {\n\n if(myDevice.status == WifiP2pDevice.CONNECTED)\n manager.removeGroup(channel, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess() {\n Log.d(TAG, \"disconnect(): removeGroup() SUCCESS!\");\n //Toast.makeText(SensorActivity.this, \"Disconnected!\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(int error) {\n Log.d(TAG, \"disconnect(): removeGroup() ERROR!\"+ error);\n Toast.makeText(SensorActivity.this, \"Disconnection error! (\" + error + \")\", Toast.LENGTH_SHORT).show();\n }\n });\n\n deletePersistentGroup(manager, channel);\n\n hideDeviceList();\n\n /*Handling socket communication disconnections*/\n if(sensorServiceActive)\n if(connectedPeers != null && !connectedPeers.isEmpty())\n SensorService.startActionDisconnect(this);\n else\n SensorService.startActionStopConnection(this);\n\n sensorServiceActive = false;\n }", "title": "" }, { "docid": "040458d5eaeca5a104eccb78c935b0e5", "score": "0.52308124", "text": "void killConnection();", "title": "" }, { "docid": "0f45f7859d80ad70c991b9f0b9cd1b8f", "score": "0.522599", "text": "private void removeGroup(final GroupModel group)\n\t{\n\t\tObservableList<Tab> tabs = tabPane.getTabs();\n\n\t\tfor(Iterator<Tab> it = tabs.iterator(); it.hasNext();)\n\t\t{\n\t\t\tChatTab chatTab = (ChatTab)it.next();\n\n\t\t\tif(chatTab.getGroup().equals(group))\n\t\t\t{\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\n\t\tgroupListView.removeItem(group);\n\n\t}", "title": "" }, { "docid": "7de3480c3c35cea9156dd2c5dc668c66", "score": "0.5179849", "text": "Group deleteGroup(String groupName);", "title": "" }, { "docid": "890c97ee2fa909a95663f50411e8423b", "score": "0.5167562", "text": "void removeAllConnections();", "title": "" }, { "docid": "a256babbc4d1a5e4bf580fb54bcaabb4", "score": "0.5157618", "text": "@Override\n public boolean quit(Connection connection){\n user.remove(connection);\n return false;\n }", "title": "" }, { "docid": "8216c222c4d69a56239132ebe5dc4e9a", "score": "0.5153426", "text": "void deleteGroup(Group group);", "title": "" }, { "docid": "e4fffe2ddf0b7a75bb393849503eddad", "score": "0.5139485", "text": "void stopTransmitting(RemoteGroupPort port);", "title": "" }, { "docid": "66a7dda9960226641f7ba677d6e236c3", "score": "0.5137793", "text": "@Override\n protected void removeGroup(Group group, ChangeLogEntry changeLogEntry) {\n logger.info(\"consumer \" + this.getConsumerName() + \": Sync attribute removed (will stop sync until re-added) for group \" + group.getName());\n logger.debug(\"removeGroup() called (no effect except to stop future sync) for group \" + group.getName());\n }", "title": "" }, { "docid": "f9c8e19f0c7b88fcd5b5d1d7719f52ef", "score": "0.5127398", "text": "public void removeWidgetGroup(WidgetGroup group);", "title": "" }, { "docid": "f6bb221594725d1b2165f82146dae66d", "score": "0.5090154", "text": "public void removeByGroupId(long groupId);", "title": "" }, { "docid": "cc71bd754d465eafba4b2a1903c083a8", "score": "0.50895315", "text": "public abstract void removePeerName(String host);", "title": "" }, { "docid": "b5ea063786fa2b421187f433ab618135", "score": "0.50752896", "text": "public void disconnect(Connection connection) throws NetworkException {\r\n if (connections.remove(connection)) {\r\n connection.close();\r\n }\r\n }", "title": "" }, { "docid": "420b2f4ed925ba95f62756e373b1e012", "score": "0.50701636", "text": "public void unbindConnection(JsonRpcConnection connection) {\n connection.removeListener(mConnectionListener);\n }", "title": "" }, { "docid": "388df565c7ab0629c3feb7b006592dda", "score": "0.50682604", "text": "@Override\n\tpublic void disconnect(int connectionId) {\n\t\tthis.m_ClientList.remove(connectionId);\n\t}", "title": "" }, { "docid": "96cf45816492a1d3359d1c2a6af916a5", "score": "0.50589126", "text": "public void remove(Model theGraph) throws DataSourceException;", "title": "" }, { "docid": "e61ae48f8519abe6ddd4130b0976a53a", "score": "0.504854", "text": "public static void removeConnectionAndExit(Exception exception , DLogConnection dLogConnection) {\n dLogConnection.removeConnection();\n exception.printStackTrace();\n System.exit(Constants.ERROR_STATUS);\n }", "title": "" }, { "docid": "4c03f72435f7666b314596a0a9ee9ab8", "score": "0.5030143", "text": "@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<Response<Void>> removeConnectionFromGroupWithResponseAsync(\n String hub, String group, String connectionId) {\n if (this.client.getHost() == null) {\n return Mono.error(\n new IllegalArgumentException(\"Parameter this.client.getHost() is required and cannot be null.\"));\n }\n if (hub == null) {\n return Mono.error(new IllegalArgumentException(\"Parameter hub is required and cannot be null.\"));\n }\n if (group == null) {\n return Mono.error(new IllegalArgumentException(\"Parameter group is required and cannot be null.\"));\n }\n if (connectionId == null) {\n return Mono.error(new IllegalArgumentException(\"Parameter connectionId is required and cannot be null.\"));\n }\n return FluxUtil.withContext(\n context ->\n service.removeConnectionFromGroup(\n this.client.getHost(), hub, group, connectionId, this.client.getApiVersion(), context));\n }", "title": "" }, { "docid": "83f0b5f82511831a7814988c110905b6", "score": "0.5021803", "text": "@Override\r\n\tpublic void deleteConseiller(Conseiller conseiller) {\n\r\n\t}", "title": "" }, { "docid": "7dbda74fbacf007708cb1e487c971660", "score": "0.5021602", "text": "public static void delFromGroup( Channel channel, String sendTo, String group ) {\n try {\n\n channel.queueUnbind( ( sendTo + \"Text\" ), ( group + \"Text\" ), \"\" ); // exclui usuario da fila do grupo\n channel.queueUnbind( ( sendTo + \"File\" ), ( group + \"File\"), \"\" ); // exclui usuario da fila de arquivos do grupo\n System.out.println( \"Usuário \" + sendTo + \" foi removido do grupo \" + group + \" !\" );\n \n } catch ( Exception e ) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "title": "" }, { "docid": "686601bbaa9a3e6fda59188f57b13584", "score": "0.5017155", "text": "public void unsetGroup()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(GROUP$6);\r\n }\r\n }", "title": "" }, { "docid": "c4e20a21e827ee8f4c0192f1557004d4", "score": "0.5012932", "text": "void removeLayer() throws IllegalArgumentException;", "title": "" }, { "docid": "6dc485a97331bc076be209b57642a654", "score": "0.5008828", "text": "@Override\n\tpublic void deleteGroup() {\n\t\tSystem.out.println(\"Eliminando el grupo\");\n\t}", "title": "" }, { "docid": "da54e07baea20f34452c000c53968b80", "score": "0.5006648", "text": "public void stopConnection();", "title": "" }, { "docid": "96cc0a87670a7795e0e09f9da3ea5efc", "score": "0.500423", "text": "public static void removeVirtualConnection(Player player, VirtualConnection connection) {\n\t\tvirtualConnnectionCache.removeVirtualConnection(player, connection);\n\t}", "title": "" }, { "docid": "28f08193a7a860e3a65f4834755d198f", "score": "0.49914795", "text": "@Override\n\tpublic void unsetGroupRef() {\n\t\tif (hasGroupRef()) {\n\t\t\tGroup groupRef = getGroupRef();\n\t\t\tsetGroupRef(null);\n\t\t\tif (groupRef.hasPathwayElement(this)) {\n\t\t\t\tgroupRef.removePathwayElement(this);\n\t\t\t}\n\t\t\tfireObjectModifiedEvent(PathwayObjectEvent.createSinglePropertyEvent(this, StaticProperty.GROUPREF));\n\t\t}\n\t}", "title": "" }, { "docid": "a09ef7ea4d6f05d3528cdb94bee7bc95", "score": "0.49888942", "text": "private synchronized void release(IPacketConnector connector) {\r\n\t\tpackets.removeElement(connector);\t\t\r\n\t}", "title": "" }, { "docid": "3bcecdb5558ced59699425860cb0a3f0", "score": "0.4981258", "text": "public void disconnect(ClientForServer c);", "title": "" }, { "docid": "afd62db0994acb5d203ab7d6724492ba", "score": "0.49802125", "text": "public void removeClientConnectionAfterTimeout(String token, CuratorFramework connection) {\n\t\tZookeeperAccessService.stopConnectionCurator(connection);\n\t}", "title": "" }, { "docid": "f7a37987a7b90766cb3e1ed24873f2fa", "score": "0.49799618", "text": "public void closed(ManagedConnection source) {\n if (_log.isDebugEnabled()) {\n _log.debug(\"Connection \" + source + \" closed by peer, destroying\");\n }\n remove(source);\n }", "title": "" }, { "docid": "060df5c46a6ef17a253680c02079cb20", "score": "0.4962458", "text": "void removeHost(Host hostToRemove);", "title": "" }, { "docid": "c288e8719fbdb886d0c51e7a27815cc2", "score": "0.49242216", "text": "public void removeNetworkChangeListener(NetworkChangeListener listener, CallerContext context);", "title": "" }, { "docid": "d3164eec6ac0b1f18c987a78dfb80989", "score": "0.4917432", "text": "private void deleteConnectionWithCompId(final String compId) {\n for (Entry<String, ComponentConnection> e : new HashSet<Entry<String, ComponentConnection>>(\n connectionTable.entrySet())) {\n ComponentConnectionLogicAndNetwork val =\n (ComponentConnectionLogicAndNetwork) e.getValue();\n if (compId.equals(val.getLogicId())\n || compId.equals(val.getNetworkId())) {\n deleteConnections(val.getObjectId());\n }\n }\n }", "title": "" }, { "docid": "54a952133f9ebe0ae51abadf16f173bf", "score": "0.49149036", "text": "public void disconnect() {\n final Channel channel = channelRef.get();\n if (null != channel) {\n channel.close();\n }\n channelRef.set(null);\n }", "title": "" }, { "docid": "5364de0965404f9485c839c0d14cb282", "score": "0.49112937", "text": "public ModelElement removeTarget(ModelElement target1)\n // -end- 3627D5E9010E remove_head3624012E0352 \"Flow::removeTarget\"\n ;", "title": "" }, { "docid": "511e068a87844d8a4e1acc0843441942", "score": "0.48867345", "text": "void closeConnect(){\n this.connection.disconnect();\n }", "title": "" }, { "docid": "acb55499dfeebad3fe1f185fd729b3d5", "score": "0.4879145", "text": "native public void disconnect(AudioNode destination);", "title": "" }, { "docid": "acf51812e0a326d5bc761450301e338f", "score": "0.4874438", "text": "public void disconnect()\n {\n tn.disconnect();\n }", "title": "" }, { "docid": "d66ea7ab58af1d9a15b1c4a56ec53bd8", "score": "0.486948", "text": "TrafficEngine removeEdge(MapEdge edge);", "title": "" }, { "docid": "102310a94b142ea700d39b9061d9ac20", "score": "0.48687828", "text": "public void remove() {\n super.remove();\n // remove grid layer\n if (grid_layer != null) {\n grid_layer.remove();\n }\n }", "title": "" }, { "docid": "1279231b5ceac584e177409f11518296", "score": "0.48677772", "text": "public static void removeNetworkConnectionListener(NetworkConnectionListener skinChangeListener)\n {\n listeners.remove(skinChangeListener);\n }", "title": "" }, { "docid": "88a9959acb6994aa1bc88ab9ab84b461", "score": "0.48664755", "text": "protected boolean removeConnection (String address)\n {\n if (VERBOSE) System.out.println (\"Remove connection chiamato\");\n boolean res = true;\n if (all_active_connections.remove(address) == null) res = false;\n if (processes.remove(address) == null) res = false;\n if (last_communications != null) \n {\n last_communications.remove(address);\n }\n return res;\n }", "title": "" }, { "docid": "579590126445cbca2bf27bc689645358", "score": "0.48650512", "text": "public void removeEventListener(BLEConnectionEventListener listener) {\n\t\tlistenerManager.removeEventListener(listener);\n\t}", "title": "" }, { "docid": "634d092d84fc3b73702ecb097949ed86", "score": "0.4858173", "text": "void unregisterChannel (Connection c) {\n VoltPort port = (VoltPort)c;\n assert(c != null);\n SelectionKey selectionKey = port.getKey();\n \n acquireRegistrationLock();\n try {\n synchronized (m_ports) {\n if (!m_ports.contains(port)) {\n return;\n }\n }\n port.unregistering();\n selectionKey.cancel();\n selectionKey.attach(null);\n synchronized (m_ports) {\n m_ports.remove(port);\n }\n } finally {\n releaseRegistrationLock();\n }\n port.unregistered();\n }", "title": "" }, { "docid": "2e341bd7b711138f22088771604e77c8", "score": "0.48556283", "text": "public void stopConnection() {\n sendInstruction(CarInstruction.KILL);\n }", "title": "" }, { "docid": "c729790fc9acc71d87419c1cd474f206", "score": "0.48510677", "text": "void remoteDelete(String name) throws GitException;", "title": "" }, { "docid": "bb7e8805020105802d43173378a361f9", "score": "0.48491576", "text": "public void removeOutgoingLink(Link link, boolean notify);", "title": "" }, { "docid": "b53acc99aafa41c7dc870709c4bb17a6", "score": "0.48435268", "text": "public void disconnect() {\n\t\tif(! isConnected())\n\t\t\treturn;\n\t\t\n\t\ttry {\n\t\t\tconnection.close();\n\t\t} catch (IOException e) {\n\t\t\tlog.debug(\"Failed to disconnect from the KDB process. Will null socket manually. Error - {}\", e.getMessage());\n\t\t}\n\t\t\n\t\tconnection = null;\n\t\t\n\t\tlog.info(\"Disconnected from KDB process: {}\", process);\n\t}", "title": "" }, { "docid": "f574845c1cad989bb78765b358d0df0c", "score": "0.48410675", "text": "private JsonBean deleteConnection(RequestContext ctx) {\n String sxid = ctx.getLastURLElement();\n long xid = Long.valueOf(sxid);\n\n Repository repository = RepositoryManager.getInstance().getRepository();\n repository.deleteConnection(xid);\n\n return JsonBean.EMPTY_BEAN;\n }", "title": "" }, { "docid": "895534e770b07780b41d59c7a543cd2d", "score": "0.48384452", "text": "public void removeNode(Node<E> target) {\n\t\tif (target == first) \n\t\t\tfirst = first.getNext(); \n\t\telse { \n\t\t\tSNode<E> prevNode = (SNode<E>) this.getNodeBefore(target); \n\t\t\tprevNode.setNext(((SNode<E>) target).getNext()); \n\t\t}\n\t\t((SNode<E>) target).clean(); // clear all references from target\n\t\tlength--; \n\t\t\n\t}", "title": "" }, { "docid": "ee9d4acba22bb24e0b92b4ccc5232411", "score": "0.48220596", "text": "@Override\n public DeleteOutboundCrossClusterSearchConnectionResult deleteOutboundCrossClusterSearchConnection(DeleteOutboundCrossClusterSearchConnectionRequest request) {\n request = beforeClientExecution(request);\n return executeDeleteOutboundCrossClusterSearchConnection(request);\n }", "title": "" }, { "docid": "0324147cc3d4b7468e4f24b9132fe98f", "score": "0.4817588", "text": "public void deleteConnection(String address) {\n\t\tBLEConnection connection = connections.get(address);\n\t\tconnection.disconnect();\n\t\tconnection.close();\n\t}", "title": "" }, { "docid": "4d35d8ff4cebbd99897c25aff5c18832", "score": "0.48124015", "text": "public void removeListener(BLEConnectionListener listener) {\n if (listeners.contains(listener)) {\n listeners.remove(listener);\n }\n }", "title": "" }, { "docid": "4158191f13bd7b8081b673d113e5380e", "score": "0.48054582", "text": "public void disconnect() {\n if(executor!=null)\n executor.shutdownNow();\n if(thresholdManager!=null)\n thresholdManager.removeThresholdListener(this);\n eventSource = null;\n }", "title": "" }, { "docid": "9161a533d7a9a6b5f1243a9b3c49c9a4", "score": "0.4800231", "text": "@DELETE(\"user/devices/{serial}/remoteConnect\")\n Flowable<GenericResponse> releaseRemoteConnection(@Path(\"serial\") String serial);", "title": "" }, { "docid": "49f8f94587aa85f851042d995e98b9ad", "score": "0.4799726", "text": "public void deleteMembership(\n com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "title": "" }, { "docid": "875586cd91571c0e909d1e9bcfc4205f", "score": "0.47970358", "text": "public static void removeGroup( Channel channel, String group ) {\n try {\n \n channel.exchangeDelete( group + \"Text\" ); // exclui a fila do grupo\n channel.exchangeDelete( group + \"File\" ); // exclui a fila de arquivos do grupo\n System.out.println( \"Grupo \" + group + \" foi finalizado !\" );\n \n } catch ( Exception e ) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "title": "" }, { "docid": "897eab2778b7fbee08caa5561b297d0d", "score": "0.4792254", "text": "void disconnect(){\n if (connection != null) connection.close();\n if (master != null) master.disconnect();\n }", "title": "" }, { "docid": "715b8215abd2523e96c684b745559d5e", "score": "0.47797835", "text": "void removeUser(RemoveUserFromGroupRequest request);", "title": "" }, { "docid": "f5e065864b539a12d021ffa9be792ad9", "score": "0.47775576", "text": "public void disconnectFromUser(){\n sendMessage(new ConnectionClosure(UID));\n }", "title": "" }, { "docid": "e6e04ec2793ca43bb188a70280e15431", "score": "0.47725278", "text": "public com.google.longrunning.Operation deleteMembership(\n com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getDeleteMembershipMethod(), getCallOptions(), request);\n }", "title": "" }, { "docid": "f93059340f90145315a698161ae4687e", "score": "0.4771695", "text": "public void unJoinGroup(String groupName, String userId);", "title": "" }, { "docid": "83f0ac0e58b650bba3c1bd35de6a68f8", "score": "0.47689682", "text": "void removeChannelListener(DeviceId deviceId, ChannelListener listener);", "title": "" } ]
0b6612550cbb65b5d8c5936e11b9d3f9
This method is used to create VariantOptionQualifier
[ { "docid": "e94d7e034f1774386e59e6ed150dcf4c", "score": "0.48514858", "text": "protected Collection<VariantOptionQualifierData> getVariantOptionQualifierData(final String value, final String description)\n\t{\n\t\tfinal List<VariantAttributeDescriptorModel> descriptorModels = getVariantsService().getVariantAttributesForVariantType(\n\t\t\t\tcreateVariantType(SparVariantProductModel._TYPECODE));\n\n\t\tfinal Collection<VariantOptionQualifierData> variantOptionQualifiers = new ArrayList<VariantOptionQualifierData>();\n\t\tfor (final VariantAttributeDescriptorModel descriptorModel : descriptorModels)\n\t\t{\n\t\t\t// Create the variant qualifier\n\t\t\tfinal VariantOptionQualifierData variantOptionQualifier = new VariantOptionQualifierData();\n\t\t\tfinal String qualifier = descriptorModel.getQualifier();\n\t\t\tvariantOptionQualifier.setQualifier(qualifier);\n\t\t\tvariantOptionQualifier.setName(description);\n\t\t\tvariantOptionQualifier.setValue(value);\n\t\t\t// Add to list of variants\n\t\t\tvariantOptionQualifiers.add(variantOptionQualifier);\n\t\t}\n\t\treturn variantOptionQualifiers;\n\n\t}", "title": "" } ]
[ { "docid": "66f6fc317dc58b92be0b3e5745210b4f", "score": "0.5587873", "text": "private Builder() {\n super(org.opencb.biodata.models.variant.avro.VariantAnnotation.SCHEMA$);\n }", "title": "" }, { "docid": "39d01fb8b72619a7a7c625fc712b0126", "score": "0.5450043", "text": "public static org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder newBuilder() {\n return new org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder();\n }", "title": "" }, { "docid": "e8bb4e4d4a8aa942d069e5b1d6984653", "score": "0.5402521", "text": "public VariantAnnotation() {}", "title": "" }, { "docid": "1ffc974ecbe588e79a8b270e44210a4c", "score": "0.5366478", "text": "private Builder(org.opencb.biodata.models.variant.avro.VariantAnnotation other) {\n super(org.opencb.biodata.models.variant.avro.VariantAnnotation.SCHEMA$);\n if (isValidValue(fields()[0], other.chromosome)) {\n this.chromosome = data().deepCopy(fields()[0].schema(), other.chromosome);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.start)) {\n this.start = data().deepCopy(fields()[1].schema(), other.start);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.reference)) {\n this.reference = data().deepCopy(fields()[2].schema(), other.reference);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.alternate)) {\n this.alternate = data().deepCopy(fields()[3].schema(), other.alternate);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.ancestralAllele)) {\n this.ancestralAllele = data().deepCopy(fields()[4].schema(), other.ancestralAllele);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.id)) {\n this.id = data().deepCopy(fields()[5].schema(), other.id);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.xrefs)) {\n this.xrefs = data().deepCopy(fields()[6].schema(), other.xrefs);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.hgvs)) {\n this.hgvs = data().deepCopy(fields()[7].schema(), other.hgvs);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.displayConsequenceType)) {\n this.displayConsequenceType = data().deepCopy(fields()[8].schema(), other.displayConsequenceType);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.consequenceTypes)) {\n this.consequenceTypes = data().deepCopy(fields()[9].schema(), other.consequenceTypes);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.populationFrequencies)) {\n this.populationFrequencies = data().deepCopy(fields()[10].schema(), other.populationFrequencies);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.minorAllele)) {\n this.minorAllele = data().deepCopy(fields()[11].schema(), other.minorAllele);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.minorAlleleFreq)) {\n this.minorAlleleFreq = data().deepCopy(fields()[12].schema(), other.minorAlleleFreq);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.conservation)) {\n this.conservation = data().deepCopy(fields()[13].schema(), other.conservation);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.geneExpression)) {\n this.geneExpression = data().deepCopy(fields()[14].schema(), other.geneExpression);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.geneTraitAssociation)) {\n this.geneTraitAssociation = data().deepCopy(fields()[15].schema(), other.geneTraitAssociation);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.geneDrugInteraction)) {\n this.geneDrugInteraction = data().deepCopy(fields()[16].schema(), other.geneDrugInteraction);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.variantTraitAssociation)) {\n this.variantTraitAssociation = data().deepCopy(fields()[17].schema(), other.variantTraitAssociation);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.functionalScore)) {\n this.functionalScore = data().deepCopy(fields()[18].schema(), other.functionalScore);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.additionalAttributes)) {\n this.additionalAttributes = data().deepCopy(fields()[19].schema(), other.additionalAttributes);\n fieldSetFlags()[19] = true;\n }\n }", "title": "" }, { "docid": "f774fbb6889522117635f6243769562a", "score": "0.5114241", "text": "private Builder(org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.chromosome)) {\n this.chromosome = data().deepCopy(fields()[0].schema(), other.chromosome);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.start)) {\n this.start = data().deepCopy(fields()[1].schema(), other.start);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.reference)) {\n this.reference = data().deepCopy(fields()[2].schema(), other.reference);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.alternate)) {\n this.alternate = data().deepCopy(fields()[3].schema(), other.alternate);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.ancestralAllele)) {\n this.ancestralAllele = data().deepCopy(fields()[4].schema(), other.ancestralAllele);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.id)) {\n this.id = data().deepCopy(fields()[5].schema(), other.id);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.xrefs)) {\n this.xrefs = data().deepCopy(fields()[6].schema(), other.xrefs);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.hgvs)) {\n this.hgvs = data().deepCopy(fields()[7].schema(), other.hgvs);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.displayConsequenceType)) {\n this.displayConsequenceType = data().deepCopy(fields()[8].schema(), other.displayConsequenceType);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.consequenceTypes)) {\n this.consequenceTypes = data().deepCopy(fields()[9].schema(), other.consequenceTypes);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.populationFrequencies)) {\n this.populationFrequencies = data().deepCopy(fields()[10].schema(), other.populationFrequencies);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.minorAllele)) {\n this.minorAllele = data().deepCopy(fields()[11].schema(), other.minorAllele);\n fieldSetFlags()[11] = true;\n }\n if (isValidValue(fields()[12], other.minorAlleleFreq)) {\n this.minorAlleleFreq = data().deepCopy(fields()[12].schema(), other.minorAlleleFreq);\n fieldSetFlags()[12] = true;\n }\n if (isValidValue(fields()[13], other.conservation)) {\n this.conservation = data().deepCopy(fields()[13].schema(), other.conservation);\n fieldSetFlags()[13] = true;\n }\n if (isValidValue(fields()[14], other.geneExpression)) {\n this.geneExpression = data().deepCopy(fields()[14].schema(), other.geneExpression);\n fieldSetFlags()[14] = true;\n }\n if (isValidValue(fields()[15], other.geneTraitAssociation)) {\n this.geneTraitAssociation = data().deepCopy(fields()[15].schema(), other.geneTraitAssociation);\n fieldSetFlags()[15] = true;\n }\n if (isValidValue(fields()[16], other.geneDrugInteraction)) {\n this.geneDrugInteraction = data().deepCopy(fields()[16].schema(), other.geneDrugInteraction);\n fieldSetFlags()[16] = true;\n }\n if (isValidValue(fields()[17], other.variantTraitAssociation)) {\n this.variantTraitAssociation = data().deepCopy(fields()[17].schema(), other.variantTraitAssociation);\n fieldSetFlags()[17] = true;\n }\n if (isValidValue(fields()[18], other.functionalScore)) {\n this.functionalScore = data().deepCopy(fields()[18].schema(), other.functionalScore);\n fieldSetFlags()[18] = true;\n }\n if (isValidValue(fields()[19], other.additionalAttributes)) {\n this.additionalAttributes = data().deepCopy(fields()[19].schema(), other.additionalAttributes);\n fieldSetFlags()[19] = true;\n }\n }", "title": "" }, { "docid": "81c228f5afa28168959292a918ec1aca", "score": "0.5090882", "text": "public static org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder newBuilder(org.opencb.biodata.models.variant.avro.VariantAnnotation other) {\n return new org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder(other);\n }", "title": "" }, { "docid": "6d4993cf128ac5b8c9847a0ebda28466", "score": "0.50684863", "text": "public static org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder newBuilder(org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder other) {\n return new org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder(other);\n }", "title": "" }, { "docid": "7fb78d0abc6a949ecf11575cc3611d82", "score": "0.5059808", "text": "public io.opencannabis.schema.commerce.OrderItem.VariantSpec.Builder addVariantBuilder() {\n return getVariantFieldBuilder().addBuilder(\n io.opencannabis.schema.commerce.OrderItem.VariantSpec.getDefaultInstance());\n }", "title": "" }, { "docid": "a4bea2b1d59246821c9c4e3e7f57b71e", "score": "0.50543845", "text": "public AddProductChangeBuilder variantSelection(\n Function<com.commercetools.history.models.common.ProductVariantSelectionBuilder, com.commercetools.history.models.common.ProductVariantSelectionBuilder> builder) {\n this.variantSelection = builder\n .apply(com.commercetools.history.models.common.ProductVariantSelectionBuilder.of())\n .build();\n return this;\n }", "title": "" }, { "docid": "0fd39871a506c4804fe015c31e979734", "score": "0.5053828", "text": "public java.util.Locale.Builder setVariant(java.lang.String variant) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "91bb8089a2268ecc0c5dcd2e7149f972", "score": "0.5046277", "text": "public void setVariant(final String variant);", "title": "" }, { "docid": "80343bda4e407ee263a7c63098b675ee", "score": "0.5037757", "text": "@Override\n\tpublic void createControl(Composite parent) {\n\t\tsuper.createControl(parent);\n\t\t//force the option controls to generate the qualifier\n\t\tgetDialogSettings().put(\"qualifier\", true); //$NON-NLS-1$\n\t\tstoredQualifier = super.getQualifier();\n\t\tfTabFolder.getTabList()[1].dispose();\n\t\tfTabFolder.getTabList()[1].dispose();\n\t\tfTabFolder.getItems()[1].dispose();\n\t\tfTabFolder.getItems()[1].dispose();\n\t\tpageChanged();\n\t}", "title": "" }, { "docid": "fe01c35bddce1402437ede7edf9cd839", "score": "0.49411398", "text": "public Builder setVariantId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n variantId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3000a4d01c246587a666a67d5910fd1d", "score": "0.4865645", "text": "public abstract String createOption();", "title": "" }, { "docid": "422865bfd3da69a4c5a9e39c6f434c2d", "score": "0.47811443", "text": "Option createOption();", "title": "" }, { "docid": "4336af3120aad22722b5535a340d789b", "score": "0.4771175", "text": "public Variant()\r\n {\r\n }", "title": "" }, { "docid": "af258855f6829ff2108d8e97e564997e", "score": "0.47412816", "text": "public Variant() {\n criterionList = new CriterionList();\n aliasList = new AliasList();\n orderList = new OrderList();\n projectionList = Projections.projectionList();\n }", "title": "" }, { "docid": "5303973d6fcafe0e124042fe69b369ea", "score": "0.46830714", "text": "String getVariant() {\n return variant;\n }", "title": "" }, { "docid": "7fcf057e19a1e91c7c2e696e94d50087", "score": "0.46474683", "text": "public java.util.List<? extends io.opencannabis.schema.commerce.OrderItem.VariantSpecOrBuilder> \n getVariantOrBuilderList() {\n return variant_;\n }", "title": "" }, { "docid": "e73d3bc76d794c58e44ab0fdee1cbfec", "score": "0.46456212", "text": "public void setVariantDescription(String variant) {\r\n _variant = variant;\r\n }", "title": "" }, { "docid": "de1eb2b4dde2449a5095b6b6391fc7dc", "score": "0.46433935", "text": "public io.opencannabis.schema.commerce.OrderItem.VariantSpec.Builder getVariantBuilder(\n int index) {\n return getVariantFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "95e032a8d2c550122c5f5ca2debcd992", "score": "0.4642871", "text": "public int getVariantType() { return Variant.OBJECT; }", "title": "" }, { "docid": "5a61c28f47907ddf86eec182e934e985", "score": "0.46279705", "text": "public static void setVariant(int v)\n {\n variant = v;\n }", "title": "" }, { "docid": "0958ad6d242e5df04b603aa9c07482bf", "score": "0.46014056", "text": "public AddProductChangeBuilder withVariantSelection(\n Function<com.commercetools.history.models.common.ProductVariantSelectionBuilder, com.commercetools.history.models.common.ProductVariantSelection> builder) {\n this.variantSelection = builder\n .apply(com.commercetools.history.models.common.ProductVariantSelectionBuilder.of());\n return this;\n }", "title": "" }, { "docid": "414efebbfb8f2e34ed0f6078d4ca7d36", "score": "0.45941854", "text": "@Override\n\tpublic Object clone() {\n\t\treturn new ERXExistsQualifier(subqualifier, baseKeyPath, usesInQualInstead());\n\t}", "title": "" }, { "docid": "6c69187fa599fd3a971015ddc3ee946c", "score": "0.45844877", "text": "public void setMasterVariant(final ProductVariant masterVariant);", "title": "" }, { "docid": "7b6cdadc19a52088928e4bfdd0f6aaf9", "score": "0.456267", "text": "public static Pointer<UA_Variant > UA_Variant_new() {\n\t\treturn (Pointer)Pointer.pointerToAddress(UA_Variant_new$2(), UA_Variant.class);\n\t}", "title": "" }, { "docid": "aa809f49ae81def5ed0255dbbf18977b", "score": "0.4559308", "text": "private void createVariantDataForProductFlavors(\n @Nullable SigningConfig signingOverride,\n @NonNull List<GroupableProductFlavor> productFlavorList) {\n BuildTypeData testData = buildTypes.get(extension.getTestBuildType());\n if (testData == null) {\n throw new RuntimeException(String.format(\n \"Test Build Type '%1$s' does not exist.\", extension.getTestBuildType()));\n }\n\n BaseVariantData testedVariantData = null;\n\n ProductFlavorData<ProductFlavorDsl> defaultConfigData = basePlugin.getDefaultConfigData();\n ProductFlavorDsl defaultConfig = defaultConfigData.getProductFlavor();\n\n Closure<Void> variantFilterClosure = basePlugin.getExtension().getVariantFilter();\n\n for (BuildTypeData buildTypeData : buildTypes.values()) {\n boolean ignore = false;\n if (variantFilterClosure != null) {\n variantFilter.reset(defaultConfig, buildTypeData.getBuildType(), productFlavorList);\n variantFilterClosure.call(variantFilter);\n ignore = variantFilter.isIgnore();\n }\n\n if (!ignore) {\n BaseVariantData<?> variantData = createVariantData(\n buildTypeData.getBuildType(),\n productFlavorList,\n signingOverride);\n variantDataList.add(variantData);\n\n if (buildTypeData == testData) {\n GradleVariantConfiguration variantConfig = variantData.getVariantConfiguration();\n if (variantConfig.isMinifyEnabled() && variantConfig.getUseJack()) {\n throw new RuntimeException(\"Cannot test obfuscated variants when compiling with jack.\");\n }\n testedVariantData = variantData;\n }\n }\n }\n\n if (testedVariantData != null) {\n GradleVariantConfiguration testedConfig = testedVariantData.getVariantConfiguration();\n\n // handle test variant\n GradleVariantConfiguration testVariantConfig = new GradleVariantConfiguration(\n defaultConfig,\n defaultConfigData.getTestSourceSet(),\n testData.getBuildType(),\n null,\n VariantConfiguration.Type.TEST,\n testedVariantData.getVariantConfiguration(),\n signingOverride);\n\n for (GroupableProductFlavor productFlavor : productFlavorList) {\n ProductFlavorData<GroupableProductFlavorDsl> data = productFlavors\n .get(productFlavor.getName());\n\n String dimensionName = productFlavor.getFlavorDimension();\n if (dimensionName == null) {\n dimensionName = \"\";\n }\n testVariantConfig.addProductFlavor(\n data.getProductFlavor(),\n data.getTestSourceSet(),\n dimensionName);\n }\n\n // create the internal storage for this variant.\n TestVariantData testVariantData = new TestVariantData(\n basePlugin, testVariantConfig, (TestedVariantData) testedVariantData);\n // link the testVariant to the tested variant in the other direction\n ((TestedVariantData) testedVariantData).setTestVariantData(testVariantData);\n\n variantDataList.add(testVariantData);\n }\n }", "title": "" }, { "docid": "8db3398d17a44032326223aa5ba59ef5", "score": "0.4545772", "text": "private SkuOption createSkuOption(final Catalog catalog, final String name, final String... options) {\n\t\tSkuOption skuOption = getBeanFactory().getBean(ContextIdNames.SKU_OPTION);\n\t\t// create a Color sku option\n\t\tpopulateSkuOption(catalog, skuOption, name);\n\n\t\tfor (String option : options) {\n\t\t\tSkuOptionValue greenColorSkuOptionValue = getBeanFactory().getBean(ContextIdNames.SKU_OPTION_VALUE);\n\t\t\tgreenColorSkuOptionValue.setOptionValueKey(option);\n\t\t\tskuOption.addOptionValue(greenColorSkuOptionValue);\n\t\t}\t\t\n\t\treturn skuOption;\n\t}", "title": "" }, { "docid": "9c297c0c7de5cf40cf3d8d31d56fcae5", "score": "0.45182627", "text": "protected void createInstanceConditionCombo() {\r\n if (this.conditions == null) {\r\n this.conditions = new JComboBox();\r\n this.add(this.conditions, new GridBagConstraints(2, 0, 1, 1, 0, 0.0, GridBagConstraints.NORTHEAST,\r\n GridBagConstraints.NONE, new Insets(2, 2, 0, 0), 0, 0));\r\n this.conditions.addItem(\"<\");\r\n this.conditions.addItem(\"<=\");\r\n this.conditions.addItem(\"=\");\r\n this.conditions.addItem(\">=\");\r\n this.conditions.addItem(\">\");\r\n this.conditions.addItem(\"NULL\");\r\n this.conditions.setVisible(false);\r\n this.conditions.setSelectedIndex(2);\r\n }\r\n }", "title": "" }, { "docid": "933b84d4e91372b448bae547725d3861", "score": "0.45054466", "text": "public org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder setHgvs(java.util.List<java.lang.String> value) {\n validate(fields()[7], value);\n this.hgvs = value;\n fieldSetFlags()[7] = true;\n return this; \n }", "title": "" }, { "docid": "652ce317ee6d73da8048577a9357b2c9", "score": "0.44882742", "text": "static Variant createVariant(StudioAPI.VariantValue pbv, long timeDiff) {\n long ts = pbv.hasTimestamp() ? pbv.getTimestamp() + timeDiff : 0;\n Variant value;\n if (pbv.hasDValue())\n value = new Variant(CDPValueType.eDOUBLE, pbv.getDValue(), ts);\n else if (pbv.hasUi64Value())\n value = new Variant(CDPValueType.eUINT64, pbv.getUi64Value(), ts);\n else if (pbv.hasI64Value())\n value = new Variant(CDPValueType.eINT64, pbv.getI64Value(), ts);\n else if (pbv.hasFValue())\n value = new Variant(CDPValueType.eFLOAT, pbv.getFValue(), ts);\n else if (pbv.hasUiValue())\n value = new Variant(CDPValueType.eUINT, pbv.getUiValue(), ts);\n else if (pbv.hasIValue())\n value = new Variant(CDPValueType.eINT, pbv.getIValue(), ts);\n else if (pbv.hasUsValue())\n value = new Variant(CDPValueType.eUSHORT, pbv.getUsValue(), ts);\n else if (pbv.hasSValue())\n value = new Variant(CDPValueType.eSHORT, pbv.getSValue(), ts);\n else if (pbv.hasUcValue())\n value = new Variant(CDPValueType.eUCHAR, pbv.getUcValue(), ts);\n else if (pbv.hasCValue())\n value = new Variant(CDPValueType.eCHAR, pbv.getCValue(), ts);\n else if (pbv.hasBValue())\n value = new Variant(CDPValueType.eBOOL, pbv.getBValue(), ts);\n else if (pbv.hasStrValue())\n value = new Variant(CDPValueType.eSTRING, pbv.getStrValue(), ts);\n else\n value = new Variant(CDPValueType.eUNDEFINED, \"<no value>\", 0);\n return value;\n }", "title": "" }, { "docid": "c7ced59d3f419fe88b0a945bed989050", "score": "0.44839686", "text": "public CIMQualifier<?> getQualifier(int pIndex);", "title": "" }, { "docid": "900debf770ffde283fecca17d677170b", "score": "0.44724044", "text": "private Builder() {\n super(org.opencb.biodata.models.variant.avro.Cosmic.SCHEMA$);\n }", "title": "" }, { "docid": "6d93b015acc948a0a55a09a3634ed2a3", "score": "0.44689697", "text": "public Builder setVariantImage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n variantImage_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6762f59c88bdfd3c8012a371a9b0b7b7", "score": "0.44679654", "text": "public Builder setVariantIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n variantId_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5704faec54dcf6e6209c658b8cbdd6ed", "score": "0.44609234", "text": "public java.lang.String getVariant() { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "ac78eb97350145bb3a1a260b39b1857d", "score": "0.4453851", "text": "public Builder addVariant(io.opencannabis.schema.commerce.OrderItem.VariantSpec value) {\n if (variantBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureVariantIsMutable();\n variant_.add(value);\n onChanged();\n } else {\n variantBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "8e20c2bad1546842b778fd684a553c4e", "score": "0.4447449", "text": "public Qualifier set(int index, Qualifier qualifier);", "title": "" }, { "docid": "1e7299730b93a1ef970669fd7fff0f33", "score": "0.4445857", "text": "public Builder setVariant(\n int index, io.opencannabis.schema.commerce.OrderItem.VariantSpec value) {\n if (variantBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureVariantIsMutable();\n variant_.set(index, value);\n onChanged();\n } else {\n variantBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "2ef24430b4112b06b3bd1128a19cb684", "score": "0.44320118", "text": "private static Variant[] buildOrderedVariants(List<Variant> originalVariants,\n int[] originalVariantIndices) {\n ArrayList<Variant> enabledVariantList = new ArrayList<>();\n if (originalVariantIndices != null) {\n for (int i = 0; i < originalVariantIndices.length; i++) {\n enabledVariantList.add(originalVariants.get(originalVariantIndices[i]));\n }\n } else {\n // If variantIndices is null then all variants are initially considered.\n enabledVariantList.addAll(originalVariants);\n }\n\n ArrayList<Variant> definiteVideoVariants = new ArrayList<>();\n ArrayList<Variant> definiteAudioOnlyVariants = new ArrayList<>();\n for (int i = 0; i < enabledVariantList.size(); i++) {\n Variant variant = enabledVariantList.get(i);\n if (variant.format.height > 0 || variantHasExplicitCodecWithPrefix(variant, \"avc\")) {\n definiteVideoVariants.add(variant);\n } else if (variantHasExplicitCodecWithPrefix(variant, \"mp4a\")) {\n definiteAudioOnlyVariants.add(variant);\n }\n }\n\n if (!definiteVideoVariants.isEmpty()) {\n // We've identified some variants as definitely containing video. Assume variants within the\n // master playlist are marked consistently, and hence that we have the full set. Filter out\n // any other variants, which are likely to be audio only.\n enabledVariantList = definiteVideoVariants;\n } else if (definiteAudioOnlyVariants.size() < enabledVariantList.size()) {\n // We've identified some variants, but not all, as being audio only. Filter them out to leave\n // the remaining variants, which are likely to contain video.\n enabledVariantList.removeAll(definiteAudioOnlyVariants);\n } else {\n // Leave the enabled variants unchanged. They're likely either all video or all audio.\n }\n\n Variant[] enabledVariants = new Variant[enabledVariantList.size()];\n enabledVariantList.toArray(enabledVariants);\n Arrays.sort(enabledVariants, new Comparator<Variant>() {\n private final Comparator<Format> formatComparator =\n new Format.DecreasingBandwidthComparator();\n @Override\n public int compare(Variant first, Variant second) {\n return formatComparator.compare(first.format, second.format);\n }\n });\n\n return enabledVariants;\n }", "title": "" }, { "docid": "46b36d77462560171ac866d3e10a11a2", "score": "0.44280794", "text": "public static void UA_Variant_init(Pointer<UA_Variant > p) {\n\t\tUA_Variant_init(Pointer.getPeer(p));\n\t}", "title": "" }, { "docid": "e784f3fe7fd6378db3ac3a09806fa1f2", "score": "0.44181406", "text": "public String getQualifier() {\r\n return qualifier;\r\n }", "title": "" }, { "docid": "a871048ba65938e5b15df0704c21ead2", "score": "0.44149604", "text": "public AddProductChangeBuilder variantSelection(\n final com.commercetools.history.models.common.ProductVariantSelection variantSelection) {\n this.variantSelection = variantSelection;\n return this;\n }", "title": "" }, { "docid": "976c72fe8edea02cef47aa5ea4036674", "score": "0.44085228", "text": "@Override\n public void addVariant(BaseVariant variant) {\n if (variant instanceof LibraryVariant) {\n super.addVariant(variant);\n } else {\n featureVariantList.add((FeatureVariant) variant);\n }\n }", "title": "" }, { "docid": "0e90444593361f58202c93cd58ea823e", "score": "0.44059357", "text": "public io.opencannabis.schema.commerce.OrderItem.VariantSpecOrBuilder getVariantOrBuilder(\n int index) {\n return variant_.get(index);\n }", "title": "" }, { "docid": "b112da26dfdb693daaa430ad8cb4a52b", "score": "0.44024622", "text": "private ComboBox<String> generateChoices() {\n ComboBox<String> options = new ComboBox<>();\n options.setPrefHeight(30);\n options.getItems().addAll(playScaleType);\n return options;\n }", "title": "" }, { "docid": "07c20cb1e0497b67726cf755f1380941", "score": "0.4400174", "text": "public io.opencannabis.schema.commerce.OrderItem.VariantSpec.Builder addVariantBuilder(\n int index) {\n return getVariantFieldBuilder().addBuilder(\n index, io.opencannabis.schema.commerce.OrderItem.VariantSpec.getDefaultInstance());\n }", "title": "" }, { "docid": "6b0a8e75ad867d426667f7fcc958485d", "score": "0.43936297", "text": "Object variantCalc(TvmVariant variant, DataProvider provider);", "title": "" }, { "docid": "04fb7fd7f98f6c83f8d1254b0cb72ce3", "score": "0.43928748", "text": "@NotNull\n @JsonProperty(\"variant\")\n public String getVariant();", "title": "" }, { "docid": "304bbf3fa5d5205b98ebb974a9ab0db1", "score": "0.43767002", "text": "public void addVariant(VariantContext v){\n\t\tthis.addContig(v.getChr());\n\t\tString key = keyForVariant(v);\n\t\thMap.put(key, v);\n\t\ttMap.put(key, v);\n\t}", "title": "" }, { "docid": "264cd8acbed47e6596b9eb2513546412", "score": "0.43761313", "text": "public java.util.List<? extends io.opencannabis.schema.commerce.OrderItem.VariantSpecOrBuilder> \n getVariantOrBuilderList() {\n if (variantBuilder_ != null) {\n return variantBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(variant_);\n }\n }", "title": "" }, { "docid": "fa88bf4991c7254e47cbfa277c941559", "score": "0.4365812", "text": "public Builder clearVariantId() {\n \n variantId_ = getDefaultInstance().getVariantId();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "87943d070b3d6ee75d6e9d64349ab1e4", "score": "0.43539855", "text": "public PosSymbol getQualifier() {\n return qualifier;\n }", "title": "" }, { "docid": "f8709a0aff3ea222ff5e09f2c6095f3e", "score": "0.4353283", "text": "@Override\n\tpublic Object instanciateNewBuilder() {\n\t\tif (logger.isLoggable(Level.INFO)) {\n\t\t\tlogger.info(\"instanciateNewBuilder in FlexoComponentLibraryResource\");\n\t\t}\n\t\tVEShemaLibraryBuilder builder = new VEShemaLibraryBuilder(this, getProject().getResourceCenter().getOpenFlexoResourceCenter()\n\t\t\t\t.retrieveViewPointLibrary());\n\t\tbuilder.shemaLibrary = _resourceData;\n\t\treturn builder;\n\t}", "title": "" }, { "docid": "fe0752e179cd3eb2d8c042ed78eed070", "score": "0.43460926", "text": "public org.opencb.biodata.models.variant.avro.VariantAnnotation.Builder setAlternate(java.lang.String value) {\n validate(fields()[3], value);\n this.alternate = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "title": "" }, { "docid": "2d242665ada3eab0071e434cc186fa49", "score": "0.43409172", "text": "protected String getQualifier() {\n\t\treturn storedQualifier;\n\t}", "title": "" }, { "docid": "61dbf79e192b0eb067505675da6b5eef", "score": "0.43143043", "text": "private void recordOptionsPresence() throws Exception {\n this.optionsVector.clear();\n this.presentOptionsBitset.clear();\n\n String optionString = (String)optionsGetter.invoke(this.catalog);\n String[] currentOptionsCodes = optionString.split(\";\");\n\n Set<String> allowedOptionsSet = getAllowedOptionsSet(this.catalog.getClass());\n\n Set<String> presentOptionsSet = new HashSet<String>();\n\n /**\n * The default options String for certain catalogs(e.g. Bookmarklets) is \"\".\n * In that case, a default list of options is added using the allowedOptionsSet\n */\n if(currentOptionsCodes.length == 1 && currentOptionsCodes[0] == \"\") { \n int i = 0;\n for(String code : allowedOptionsSet) { \n presentOptionsSet.add(code);\n this.optionsVector.add(code);\n this.presentOptionsBitset.clear(i); \n i++;\n }\n }\n\n else {\n int i = 0;\n for(String code : currentOptionsCodes) {\n presentOptionsSet.add(code);\n this.optionsVector.add(code);\n this.presentOptionsBitset.set(i); \n i++;\n }\n\n HashSet<String> absentOptions = new HashSet<String>(this.optionsWidgetController.code2label.keySet());\n absentOptions.removeAll(presentOptionsSet); \n\n boolean addOption = false;\n\n for (String code: absentOptions) {\n if(Constraints.isAddOptionAllowed.contains(this.catalog.getClass()))\n addOption = allowedOptionsSet.contains(code) || !this.optionsWidgetController.code2label.get(code).isBuiltin;\n else\n addOption = allowedOptionsSet.contains(code);\n\n if(addOption) { \n this.optionsVector.add(code);\n this.presentOptionsBitset.clear(i);\n i++;\n }\n }\n }\n }", "title": "" }, { "docid": "c10b7e38da400600ede3c01816467dbc", "score": "0.43138793", "text": "public void setVariantId(final Long variantId);", "title": "" }, { "docid": "c205e5decaf4c9dbb4632eebb43cf485", "score": "0.42973605", "text": "public Object getQualifierValue(String pName);", "title": "" }, { "docid": "542e37e0add5ef757069fab807628b6f", "score": "0.42936525", "text": "public io.opencannabis.schema.commerce.OrderItem.VariantSpecOrBuilder getVariantOrBuilder(\n int index) {\n if (variantBuilder_ == null) {\n return variant_.get(index); } else {\n return variantBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "027cf934943ece622f6192fdf0c34546", "score": "0.4274356", "text": "public Builder addVariant(\n io.opencannabis.schema.commerce.OrderItem.VariantSpec.Builder builderForValue) {\n if (variantBuilder_ == null) {\n ensureVariantIsMutable();\n variant_.add(builderForValue.build());\n onChanged();\n } else {\n variantBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "aef33d1dcae197ca2defe8f574d5c044", "score": "0.42676294", "text": "ScopeDefiningElement getQualifier();", "title": "" }, { "docid": "952613455ece647a2b7893ca4e56ccbe", "score": "0.42612132", "text": "public void setQualifier(PosSymbol qualifier) {\n this.qualifier = qualifier;\n }", "title": "" }, { "docid": "805b69a38129cd1badbc70e6716fb24e", "score": "0.42530692", "text": "public io.opencannabis.schema.commerce.OrderItem.VariantSpec getVariant(int index) {\n return variant_.get(index);\n }", "title": "" }, { "docid": "f1aacc6931998e099a9c218848ad11e1", "score": "0.42528206", "text": "public io.opencannabis.schema.commerce.OrderItem.VariantSpec getVariant(int index) {\n if (variantBuilder_ == null) {\n return variant_.get(index);\n } else {\n return variantBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "72411b7bbbba6b48eddf7346a9faa580", "score": "0.4249782", "text": "@Override\n public String[] getSupportedDynamicOptions() {\n return new String[0];\n }", "title": "" }, { "docid": "c9113ae48d77e3e958d100c5b8a538ae", "score": "0.42396092", "text": "public java.util.List<io.opencannabis.schema.commerce.OrderItem.VariantSpec> getVariantList() {\n return variant_;\n }", "title": "" }, { "docid": "5e2c82ca702698b94a25f88e9e39da0a", "score": "0.4225669", "text": "public BaseVariantData<? extends BaseVariantOutputData> createVariantData(\n @NonNull BuildType buildType,\n @NonNull List<GroupableProductFlavor> productFlavorList,\n @Nullable SigningConfig signingOverride) {\n Splits splits = basePlugin.getExtension().getSplits();\n Set<String> densities = splits.getDensityFilters();\n Set<String> abis = splits.getAbiFilters();\n\n // check against potentially empty lists. We always need to generate at least one output\n densities = densities.isEmpty() ? Collections.singleton(NO_FILTER) : densities;\n abis = abis.isEmpty() ? Collections.singleton(NO_FILTER) : abis;\n\n ProductFlavorData<ProductFlavorDsl> defaultConfigData = basePlugin.getDefaultConfigData();\n\n ProductFlavorDsl defaultConfig = defaultConfigData.getProductFlavor();\n DefaultAndroidSourceSet defaultConfigSourceSet = defaultConfigData.getSourceSet();\n\n BuildTypeData buildTypeData = buildTypes.get(buildType.getName());\n\n Set<String> compatibleScreens = basePlugin.getExtension().getSplits().getDensity()\n .getCompatibleScreens();\n\n GradleVariantConfiguration variantConfig = new GradleVariantConfiguration(\n defaultConfig,\n defaultConfigSourceSet,\n buildTypeData.getBuildType(),\n buildTypeData.getSourceSet(),\n variantFactory.getVariantConfigurationType(),\n signingOverride);\n\n // Add the container of dependencies.\n // The order of the libraries is important, in descending order:\n // build types, flavors, defaultConfig.\n final List<ConfigurationProvider> variantProviders =\n Lists.newArrayListWithCapacity(productFlavorList.size() + 2);\n\n variantProviders.add(buildTypeData);\n\n for (GroupableProductFlavor productFlavor : productFlavorList) {\n ProductFlavorData<GroupableProductFlavorDsl> data = productFlavors.get(productFlavor.getName());\n\n String dimensionName = productFlavor.getFlavorDimension();\n if (dimensionName == null) {\n dimensionName = \"\";\n }\n\n variantConfig.addProductFlavor(\n data.getProductFlavor(),\n data.getSourceSet(),\n dimensionName);\n variantProviders.add(data.getMainProvider());\n }\n\n // now add the defaultConfig\n variantProviders.add(defaultConfigData.getMainProvider());\n\n // Create variant source sets if necessary.\n NamedDomainObjectContainer<AndroidSourceSet> sourceSetsContainer = extension\n .getSourceSetsContainer();\n\n if (!productFlavorList.isEmpty()) {\n DefaultAndroidSourceSet variantSourceSet =\n (DefaultAndroidSourceSet) sourceSetsContainer.maybeCreate(\n variantConfig.getFullName());\n variantConfig.setVariantSourceProvider(variantSourceSet);\n // TODO: hmm this won't work\n //variantProviders.add(new ConfigurationProviderImpl(project, variantSourceSet))\n }\n\n if (productFlavorList.size() > 1) {\n DefaultAndroidSourceSet multiFlavorSourceSet =\n (DefaultAndroidSourceSet) sourceSetsContainer.maybeCreate(\n variantConfig.getFlavorName());\n variantConfig.setMultiFlavorSourceProvider(multiFlavorSourceSet);\n // TODO: hmm this won't work\n //variantProviders.add(new ConfigurationProviderImpl(project, multiFlavorSourceSet))\n }\n\n // create the variant and get its internal storage object.\n BaseVariantData<?> variantData = variantFactory.createVariantData(variantConfig,\n densities, abis, compatibleScreens);\n\n VariantDependencies variantDep = VariantDependencies.compute(\n project, variantConfig.getFullName(),\n isVariantPublished(),\n variantFactory.isLibrary(),\n variantProviders.toArray(new ConfigurationProvider[variantProviders.size()]));\n variantData.setVariantDependency(variantDep);\n\n if (variantConfig.isMultiDexEnabled() && variantConfig.isLegacyMultiDexMode()) {\n project.getDependencies().add(\n variantDep.getCompileConfiguration().getName(), COM_ANDROID_SUPPORT_MULTIDEX);\n project.getDependencies().add(\n variantDep.getPackageConfiguration().getName(), COM_ANDROID_SUPPORT_MULTIDEX);\n }\n\n basePlugin.resolveDependencies(variantDep);\n variantConfig.setDependencies(variantDep);\n\n return variantData;\n }", "title": "" }, { "docid": "d5c45d12ac408434111b6c229ce37daf", "score": "0.42221078", "text": "protected VariantFilter makeVariantFilter() {\n logger.warn(\"Variants with only one sample genotyped will be skipped\");\n return new NumberOfMissingFilter(header.getNGenotypeSamples() - 1);\n }", "title": "" }, { "docid": "c551b3526d7aa91e01b80f65c909d1a6", "score": "0.42169076", "text": "public void setQualifier(String qualifier) {\r\n this.qualifier = qualifier;\r\n }", "title": "" }, { "docid": "00e2151ee11eb81bf413e7d164f89f26", "score": "0.42156017", "text": "private void createInterfaceFORMAT() {\n\t\tinterfaceFormat = cp5.addRadioButton(\"FORMAT\")\n\t\t\t\t.setPosition(352,myOrigine)\n\t\t\t\t.setSize(15,15)\n\t\t\t\t.setNoneSelectedAllowed(false)\n\t\t\t\t.setItemsPerRow(1)\n\t\t\t\t.setSpacingRow(17)\n\t\t\t\t.addItem(\"A4\", 1)\n\t\t\t\t.addItem(\"Letter\", 2)\n\t\t\t\t.activate(0)\n\t\t\t\t;\n\t\tinterfaceFormat.hideLabels();\n\t}", "title": "" }, { "docid": "4c0649edbcf7e3d2d946605ad8ad6d57", "score": "0.42003533", "text": "@Override\n\tpublic void addQualifierKeysToSet(NSMutableSet aSet) {\n \n\t}", "title": "" }, { "docid": "94cc5aa9a9e791250643d9b895cfda4c", "score": "0.41949084", "text": "public Long getVariantId() {\n return this.variantId;\n }", "title": "" }, { "docid": "3c9fa790121fc14465d6bf0dc2deb8cf", "score": "0.41942567", "text": "ObserverMethodConfigurator<T> addQualifier(Annotation qualifier);", "title": "" }, { "docid": "e136040600e560f02bcb73de071bc6f8", "score": "0.41885543", "text": "public Builder setVariantImageBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n variantImage_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fa9289436e053318d4f9f3c18a008813", "score": "0.41871154", "text": "protected void sequence_type_qualifier_list_linha(ISerializationContext context, TypeQualifierListLinhaAtion semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "af8c520d3377f3e05262c81428d7174a", "score": "0.4182673", "text": "@Test\n public void configVariant_setSupplier() {\n cache = builder()\n .set(cfg -> cfg.setResiliencePolicy(UniversalResiliencePolicy.supplier()))\n .with(UniversalResilienceConfig.class, builder -> builder\n .resilienceDuration(0, TimeUnit.MILLISECONDS)\n )\n .build();\n }", "title": "" }, { "docid": "7d039ab344ad7a862d5756b954bbf59d", "score": "0.41825607", "text": "private Builder(org.opencb.biodata.models.variant.avro.Cosmic.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.mutationId)) {\n this.mutationId = data().deepCopy(fields()[0].schema(), other.mutationId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.primarySite)) {\n this.primarySite = data().deepCopy(fields()[1].schema(), other.primarySite);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.siteSubtype)) {\n this.siteSubtype = data().deepCopy(fields()[2].schema(), other.siteSubtype);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.primaryHistology)) {\n this.primaryHistology = data().deepCopy(fields()[3].schema(), other.primaryHistology);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.histologySubtype)) {\n this.histologySubtype = data().deepCopy(fields()[4].schema(), other.histologySubtype);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.sampleSource)) {\n this.sampleSource = data().deepCopy(fields()[5].schema(), other.sampleSource);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.tumourOrigin)) {\n this.tumourOrigin = data().deepCopy(fields()[6].schema(), other.tumourOrigin);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.geneName)) {\n this.geneName = data().deepCopy(fields()[7].schema(), other.geneName);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.mutationSomaticStatus)) {\n this.mutationSomaticStatus = data().deepCopy(fields()[8].schema(), other.mutationSomaticStatus);\n fieldSetFlags()[8] = true;\n }\n }", "title": "" }, { "docid": "b586541bf14d56012c61413e960650ac", "score": "0.41801563", "text": "public int getQualifierCount();", "title": "" }, { "docid": "00816e7e77c21bbefe5176d3896e7d32", "score": "0.41796443", "text": "String buildOptionString(CommandLineFormat format) throws ConanParameterException;", "title": "" }, { "docid": "e69bf2a592fbcb46a9083ea2b9d0cb77", "score": "0.41733783", "text": "private String[][] extendOptions(String[] option) {\n String[][] options = new String[11][];\n for(int i = 0; i < options.length; i++) {\n options[i] = option;\n }\n return options;\n }", "title": "" }, { "docid": "c8581b2a90cbade3fb62670ef0ab811e", "score": "0.41716367", "text": "public OptionsRow(boolean isChecked, final String so, final int rowIndex) {\n this.rowIndex = rowIndex;\n\n this.setDraggable(\"true\");\n this.setDroppable(\"true\");\n\n SearchoptionsCheckbox c = new SearchoptionsCheckbox();\n c.setChecked(isChecked);\n\n final Code code = code2label.get(so); \n if (code == null)\n throw new RuntimeException(\"option code '\" + so + \"' is unknown, known codes are: \" + code2label.keySet());\n\n optLabel = new Label(code.label);\n\n this.appendChild(c);\n Hbox changeBox = new Hbox();\n changeBox.setWidth(\"100%\");\n\n changeBox.appendChild(optLabel);\n this.appendChild(changeBox);\n\n Hbox hb = new Hbox();\n hb.setAlign(\"center\");\n this.appendChild(new Label(so));\n\n ctxtMenuCheckBox = new Checkbox(\"(CtxtMenu)\");\n ctxtMenuCheckBox.setChecked(oReadableLabelBox.getContextMenuPreference(so));\n ctxtMenuCheckBox.setDisabled(!isChecked);\n ctxtMenuCheckBox.addEventListener(Events.ON_CHECK, new Utils.EventListenerAdapter(true) {\n public void onEvent(Event e) {\n if (ctxtMenuCheckBox.isChecked()) {\n oReadableLabelBox.addContextMenuPreference(so);\n } else {\n oReadableLabelBox.removeContextMenuPreference(so);\n }\n }\n });\n this.appendChild(ctxtMenuCheckBox);\n\n ChangeButton cb = new ChangeButton(changeBox);\n hb.appendChild(cb);\n\n if (!code.isBuiltin) {\n /**\n * Delete button. On clicking this button, if a custom option is not in use(by any other catalog) then it is deleted.\n */\n Button delButton = new Button(\"Delete\");\n\n delButton.addEventListener(Events.ON_CLICK, new Utils.EventListenerAdapter(true) {\n public void onEvent(Event e) { \n try {\n Searchoptions soptions = Model.getCurrentModel().getEdition().getSearchoptions();\n\n Catalogs cats = Model.getCurrentModel().getEdition().getCatalogs();\n HashSet<String> allOptionsSet = new HashSet<String>();\n\n for (CatalogsItem catitem : cats.getCatalogsItem()) {\n Object cat = catitem.getChoiceValue(); \n\n String options = (String)Utils.getBeanProperty(cat, \"options\");\n if (options != null) {\n for (String option : options.split(\";\")) {\n allOptionsSet.add(option);\n }\n }\n }\n\n if(!allOptionsSet.contains(so)) \n {\n\n /* as the option is removed, each catalog will build a new\n * OptionsPopupWindow (via \"searchoptionList\" listener.\n */\n for (Searchoption soption : soptions.getSearchoption()) {\n if(soption.getValue().equals(so)) { \n removeSearchOption(soptions, soption);\n break;\n }\n }\n }\n else {\n Messagebox.show(\"This option is being used in this or some other catalog. \" +\n \"You cannot delete it.\");\n } \n\n } catch(Exception exc) {\n MainWindowController.showException(exc); \n }\n } \n }); \n hb.appendChild(delButton);\n }\n this.appendChild(hb);\n\n /**\n * Takes care of reformulating the options after drag and drop.\n */\n this.addEventListener(Events.ON_DROP, new Utils.EventListenerAdapter() {\n public void onEvent(Event e) { \n try {\n DropEvent de = (DropEvent )e;\n Utils.dragAndDrop(de.getDragged(), OptionsRow.this, OptionsRow.this.getParent()); \n reFormulateOptionsString();\n } catch(Exception exc) {\n Utils.logUnexpectedException(exc);\n }\n } \n }); \n }", "title": "" }, { "docid": "a72d19a9782902cff7ba4f8936748b44", "score": "0.41685826", "text": "public List<MediaType> getVariantMediaTypes();", "title": "" }, { "docid": "eabcdbda450e02446c110d4a553ed9af", "score": "0.4168468", "text": "ResourceVariantResolution withResource(Resource resource);", "title": "" }, { "docid": "9a11a863dca71abb698345f48fcbe840", "score": "0.416296", "text": "protected void sequence_specifier_qualifier_list(ISerializationContext context, specifier_qualifier_list semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "title": "" }, { "docid": "b0585f59d27667dc0006acbec7884772", "score": "0.41623852", "text": "public interface BeaconUUIDs {\n\n public final static String BRANCH_1 = \"1\";\n\n public final static String BRANCH_2 = \"2\";\n\n public final static String BRANCH_3 = \"3\";\n\n // 본인이 연결할 Beacon의 ID와 Major / Minor Code를 알아야 한다.\n public final static Region BEACON_1 = new Region(\"ranged region\",UUID.fromString(\"74278BDA-B644-4520-8F0C-720EAF059935\"), 0, 0);\n\n public final static Region BEACON_2 = new Region(\"ranged region\",UUID.fromString(\"20CAE8A0-A9CF-11E3-A5E2-0800200C9A66\"), 87, 60872);\n\n public final static Region BEACON_3 = new Region(\"ranged region\",UUID.fromString(\"20CAE8A0-A9CF-11E3-A5E2-0800200C9A66\"), 87, 59355);\n\n\n}", "title": "" }, { "docid": "12224a69070e72073bff7580ba4c179b", "score": "0.41595286", "text": "private void updateQualityOptions() {\r\n // Check what the old selection is\r\n final Quality selectedQuality;\r\n if (qualitySelection.getItems().size() > 0) {\r\n selectedQuality = qualitySelection.getValue();\r\n } else {\r\n selectedQuality = Quality.valueOf(Pref.LAST_QUALITY.getString());\r\n }\r\n\r\n // Add qualities to the combo box\r\n final List<Quality> qualities = streamServiceSelection.getValue().getQualities();\r\n qualitySelection.getItems().setAll(qualities);\r\n\r\n // Select the last chosen quality\r\n if (qualities.contains(selectedQuality)) {\r\n qualitySelection.getSelectionModel().select(selectedQuality);\r\n } else {\r\n // Select the first option if the selected one isn't available for this service\r\n qualitySelection.getSelectionModel().select(0);\r\n }\r\n }", "title": "" }, { "docid": "b349452211d4a6bae5e02823764b752e", "score": "0.4157246", "text": "String getEncodedQualifier(String qualifier);", "title": "" }, { "docid": "e36e23ab459a227dddcb8814f53160d4", "score": "0.41553375", "text": "public ProductVariant(Long id) {\n\t\tArgs.positiveOrZero(id, \"Variant ID\");\n\n\t\tthis.id = id;\n\t\tthis.description = \"\";\n\t}", "title": "" }, { "docid": "368db1f0a3061436477ffc44ba485b83", "score": "0.41531554", "text": "public String getPolicyQualifierId()\n {\n return id;\n }", "title": "" }, { "docid": "5392d508e710d0908615a8a57486b012", "score": "0.4150101", "text": "private ProductSubType(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "c5cfa9aa8e40d55bf6c9ab7ad5bcb5c8", "score": "0.41460276", "text": "public Builder addVariant(\n int index, io.opencannabis.schema.commerce.OrderItem.VariantSpec value) {\n if (variantBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureVariantIsMutable();\n variant_.add(index, value);\n onChanged();\n } else {\n variantBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "a6c5ca6adbd87c324a18aa0e8fa13115", "score": "0.4144482", "text": "public AprioriTaggerBuilder(Iterable<Sense> senses) {\n this.senses = senses;\n }", "title": "" }, { "docid": "0ecf66495ec73e15f2a104fefe674982", "score": "0.41289976", "text": "protected abstract Map<String, ? extends Annotation> getVariantAnnotationsMap();", "title": "" }, { "docid": "d758ef8128e554569ddb60b0a5c09924", "score": "0.41279292", "text": "public AnyCompartmentChooser(){\n }", "title": "" }, { "docid": "ef7e51c4704bde4a7c2f4f5aea8f2bce", "score": "0.41275537", "text": "public byte[] getPolicyQualifier()\n {\n if ( qualifier == null )\n return null;\n\n return (byte[])qualifier.clone();\n }", "title": "" }, { "docid": "3054548db2e9852dd071549eef08413f", "score": "0.41266394", "text": "public VariantTypeModel createVariantType(final String variantTypeCode)\n\t{\n\t\treturn (VariantTypeModel) typeService.getComposedTypeForCode(variantTypeCode);\n\t}", "title": "" }, { "docid": "942790357df1a911a11ef2da6de49fa5", "score": "0.41222206", "text": "public Builder setVariant(\n int index, io.opencannabis.schema.commerce.OrderItem.VariantSpec.Builder builderForValue) {\n if (variantBuilder_ == null) {\n ensureVariantIsMutable();\n variant_.set(index, builderForValue.build());\n onChanged();\n } else {\n variantBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "82fc3f64c8c1ba7feffa416e79cedc89", "score": "0.41185465", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getVariantIdBytes() {\n java.lang.Object ref = variantId_;\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 variantId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" } ]
d80253d48a5ca2d6740679bc2dd13a99
Instantiates a new jar util exception.
[ { "docid": "345340648d3e6f25216fbec05c58d87a", "score": "0.6282001", "text": "public JarUtilException(String pMessage, Throwable pCause) {\r\n\t\t\tsuper(pMessage, pCause);\r\n\r\n\t\t}", "title": "" } ]
[ { "docid": "6d9cbd41ad1bd6a048a2eea77d1bee2b", "score": "0.79136693", "text": "public JarUtilException() {\r\n\t\t\tsuper();\r\n\r\n\t\t}", "title": "" }, { "docid": "b30e91b0e2fa8319f40eb7f1e8e6580a", "score": "0.7630258", "text": "private ExceptionUtil() {}", "title": "" }, { "docid": "f54e02f082ed6625c44742338945ab13", "score": "0.69864815", "text": "public LogLibException() {\n super();\n }", "title": "" }, { "docid": "cebbae5e3115a524572c51cb5724d1ee", "score": "0.69508183", "text": "private ECExceptionFactory() {\n }", "title": "" }, { "docid": "9bcda58a1ee4b0885c7e0f9ed6f4da9e", "score": "0.69127965", "text": "private ExceptionHelper() {}", "title": "" }, { "docid": "f323361b050d6273af26128dcc093330", "score": "0.68043697", "text": "public JarUtilException(String pMessage) {\r\n\t\t\tsuper(pMessage);\r\n\r\n\t\t}", "title": "" }, { "docid": "e961b81374ffdb108c7f64a47d688f87", "score": "0.64851123", "text": "public CustomException() { super(); }", "title": "" }, { "docid": "c377c766acc6a0eee5b71c68a5db49ba", "score": "0.64439374", "text": "public JarUtilException(Throwable pCause) {\r\n\t\t\tsuper(pCause);\r\n\r\n\t\t}", "title": "" }, { "docid": "46140bc674c2c344414dfcbd7962794e", "score": "0.6305728", "text": "public Myexception() { //make constructor\r\n\t\tsuper(); //execute parent constructor\r\n\t}", "title": "" }, { "docid": "3685100154b821b392e011e880e1c2e4", "score": "0.6289745", "text": "public UsageException() {\n }", "title": "" }, { "docid": "ba6cc9811c3db7dac238ef898e448a48", "score": "0.62833", "text": "public CustomException() {\n super();\n }", "title": "" }, { "docid": "8275f1ba03ffc1e0e9a59349f357ece5", "score": "0.61979157", "text": "public SystemException() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "b4cec6a437b0fa39440d49b5c2a139e7", "score": "0.6197264", "text": "public MyException() {\n }", "title": "" }, { "docid": "c25228455a6fcaedec149d649e851291", "score": "0.61351925", "text": "public JobStartException() {\n }", "title": "" }, { "docid": "3aa9f72eb60a7509a70aa535ec7d4263", "score": "0.61305827", "text": "public UnpackableException() {}", "title": "" }, { "docid": "8c70ec9e50777767346416b4365d0701", "score": "0.6121114", "text": "public CustomException() {\n\tsuper();\n }", "title": "" }, { "docid": "9045249ad5339be2b25350f6c8150710", "score": "0.60812443", "text": "public DIRuntimeException() {\n }", "title": "" }, { "docid": "d32021d32c78d7ecbef2e2aa753c2d30", "score": "0.60294133", "text": "public ImplementationException() {\r\n\t}", "title": "" }, { "docid": "622417fc8a5817833f75ad962da76d3a", "score": "0.5990183", "text": "public TestException() {\n super();\n }", "title": "" }, { "docid": "f4133fc748315d5b06fcb320a56f5617", "score": "0.59852856", "text": "public DocumentImportException() {}", "title": "" }, { "docid": "dde7202686209ef68be1b4a902d5194c", "score": "0.59683484", "text": "public MarsRuntimeException() {\n super();\n logger.error(\"\");\n }", "title": "" }, { "docid": "8ce88063f481faebc19c682223a03002", "score": "0.5958542", "text": "public HttpException() {}", "title": "" }, { "docid": "9585124b272091c2830330ddfb41b639", "score": "0.5956876", "text": "public ConfigurateException() {\n }", "title": "" }, { "docid": "3220990b0e5dd6acba86263322255b74", "score": "0.59159875", "text": "public LogLibException(String message) {\n super(message);\n }", "title": "" }, { "docid": "25b1ca07080dd2498ab6c68000d0ea17", "score": "0.5898735", "text": "public ApplicationException() {\n\t\tsuper(DEFAULT_MESSAGE);\n\t}", "title": "" }, { "docid": "ee00bd921a2c7295c4888da4b1be8ba2", "score": "0.58865875", "text": "public CadastroException() {\n }", "title": "" }, { "docid": "92e1bb78ad710732fcf7e3385be61f32", "score": "0.5878399", "text": "public ReplicationServiceException() {\n\t}", "title": "" }, { "docid": "285dcb120a45963c37f4049da90c37cf", "score": "0.5861632", "text": "public FabricTypeGenException()\n {\n // Empty implementation\n }", "title": "" }, { "docid": "6df8de113d6791b98dbc5f742a7c9af9", "score": "0.5833973", "text": "public SuceurException() {\n\tsuper();\n}", "title": "" }, { "docid": "a7ebbe2610333c6194780ded3b8f3f59", "score": "0.58173424", "text": "public OMSException() {\r\n super();\r\n }", "title": "" }, { "docid": "7117b18616a70047cd29befdcd692f4d", "score": "0.580869", "text": "public AonException() {\r\n super();\r\n }", "title": "" }, { "docid": "566e2b546ccfc3d3cd286463e29a3ce0", "score": "0.57942986", "text": "public EntryAccountManagerException() {\n super();\n }", "title": "" }, { "docid": "d31bd594d439cfab8a85834d9f42ab7c", "score": "0.5784987", "text": "public RuntimeException createError(RuntimeException exception) {\n return location.createError(exception);\n }", "title": "" }, { "docid": "ac9d8a23db58f627f34dcffb8214402f", "score": "0.57822", "text": "public DeliveryExceptionImpl() {\n }", "title": "" }, { "docid": "a16d58d3f36ff5ccc06db4775a578eeb", "score": "0.57786626", "text": "public NEOException()\n {\n }", "title": "" }, { "docid": "2d7e80793dcce89c1437c1128ad755de", "score": "0.57744896", "text": "public DFTException() {\n }", "title": "" }, { "docid": "6c4718329f85909d0054c85badc58ef5", "score": "0.5773465", "text": "public LogLibException(String message, Throwable cause) {\n super(message + \" (Caused by \" + cause + \")\");\n this.cause = cause; // Two-argument version requires JDK 1.4 or later\n }", "title": "" }, { "docid": "6e429016f595320a2ad31d815db8e519", "score": "0.5771542", "text": "public static void init() throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "498bfe1eb9640722b4d5efecc06d1825", "score": "0.5765596", "text": "public ProgramException() {\r\n //logger.error(\"program bug\", this);// or fatal?\r\n }", "title": "" }, { "docid": "1adf603a1c3ead4773a78ef495127fdb", "score": "0.57560265", "text": "public ItemRegistryException(String msg){ \r\n super(msg);\r\n }", "title": "" }, { "docid": "1662c254391d0c410738d6d26ef4d163", "score": "0.575545", "text": "public ApplicationError() {\r\n }", "title": "" }, { "docid": "6900473cd227af6f3f915526533d46fc", "score": "0.5747693", "text": "@SuppressWarnings(\"unused\")\n private ExceptionHolder() {\n this(\"\", \"\");\n }", "title": "" }, { "docid": "4100e603e29a2cf9a110cf844861f679", "score": "0.57448494", "text": "public TemplaterServiceException() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "430a7401205739d725380d5575e35c3e", "score": "0.5742037", "text": "public ModelRuntimeException() {\n }", "title": "" }, { "docid": "84a532200923abe29d37d17f4a23619b", "score": "0.57406956", "text": "public ICATAPIException() {\r\n super(\"Error occurred in application.\");\r\n uniqueId = this.generateExceptionId();\r\n }", "title": "" }, { "docid": "f68122c552ef52ec691b5762176c5d95", "score": "0.5736898", "text": "public LoginException() {\n\n\t}", "title": "" }, { "docid": "d5265b422df4b37f52af9d23a71a5d4e", "score": "0.5731342", "text": "public ServicoException() {\n }", "title": "" }, { "docid": "b1e4b309c323445a2a7bb9d4af941196", "score": "0.57265043", "text": "public BadRequestException() {\n }", "title": "" }, { "docid": "30cf9c3c0ddc8126a23820d6003a2843", "score": "0.572643", "text": "public CoincidirException(){}", "title": "" }, { "docid": "19df2dce90e778ac3be082fcac5efe31", "score": "0.572204", "text": "public XMLSignatureException(String paramString, Exception paramException) {\n/* 74 */ super(paramString, paramException);\n/* */ }", "title": "" }, { "docid": "aec467a1eea97dee370d89646971f1d7", "score": "0.5719535", "text": "public AuthenticationException() { }", "title": "" }, { "docid": "65ec611cf0b65284ba5d6c3175ab42b1", "score": "0.5698998", "text": "public OngeldigWachtwoordException()\n {\n }", "title": "" }, { "docid": "1b358ce54641b4480f071c4d830a3367", "score": "0.56870836", "text": "public NoFuelException() {\n }", "title": "" }, { "docid": "fd1f9cc5aeadf4c71954058bc8b0ea9f", "score": "0.5684374", "text": "private ExceptionUtils() {\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "4f59aba6edf372cb5d750d1d7953cc73", "score": "0.5681084", "text": "public CustomException(Exception ex) {\n\t\tsuper(ex);\n\t}", "title": "" }, { "docid": "ba0d1d842596c8d3c37dfb53c24161ea", "score": "0.566937", "text": "public DocumentImportException(Throwable ex) { super(ex); }", "title": "" }, { "docid": "6ef126cd23067084a1c41ec39dfe171b", "score": "0.56639206", "text": "public MarsRuntimeException(Exception exp) {\n super(exp);\n logger.error(MarsException.exceptionStack(exp));\n }", "title": "" }, { "docid": "13d64889c2d8ae0619e089a31a18b472", "score": "0.56538206", "text": "public MyExceptions(String message) {\n super(message);\n //Error Message\n }", "title": "" }, { "docid": "0527e7cd1578a14b2d126bc35bcb3c59", "score": "0.5648542", "text": "public SystemException() {\n\t\tsuper();\n\t\tthis.errorCode = \"\";\n\t}", "title": "" }, { "docid": "a514c8f7ce8bccfdc401dc1c093a6f06", "score": "0.564728", "text": "public AntFrameworkException(String msg){\n super(msg);\n }", "title": "" }, { "docid": "7f3434db2193e59228b12e391611090c", "score": "0.56243455", "text": "public EmailSendException(String message){super(message);}", "title": "" }, { "docid": "f7ebfb7766477796cdceb1c32e81be13", "score": "0.56182665", "text": "public MessageException() {\n }", "title": "" }, { "docid": "495fd95c577da9f37bb6efd57fedacf3", "score": "0.5616649", "text": "void init() throws Exception;", "title": "" }, { "docid": "60aeb683018a42ebb5d5622ff841e6aa", "score": "0.5602309", "text": "public MyException(String msg) {\n super(msg);\n }", "title": "" }, { "docid": "e46c3ab2856dc2af37a22d6c8ac6e069", "score": "0.5597736", "text": "public XdsbErrorFactory() {\n\t}", "title": "" }, { "docid": "fe936acc0185cacc09318f153db23b70", "score": "0.5582274", "text": "public TechnicalException() {\n super();\n localisationClass = \"\";\n localisationMethod = \"\";\n }", "title": "" }, { "docid": "36ec9b8e9ea6fd2bde98b427c4bd4b1e", "score": "0.5579143", "text": "public LogLibException(Throwable cause) {\n this(cause == null ? null : cause.toString(), cause);\n }", "title": "" }, { "docid": "e38601159857532fff8800962aa3821d", "score": "0.5579142", "text": "public RobeRuntimeException(Exception e) {\n this(\"Exception\", e.getMessage());\n this.initCause(e);\n }", "title": "" }, { "docid": "cd98b1b269a862a72b796e10162f6b2e", "score": "0.5574671", "text": "@Test\n public void testCtor3() {\n TaskManagementException exception = new TaskManagementException(CAUSE);\n\n // Verify the error cause\n assertSame(\"Error cause should be correct.\", CAUSE, exception.getCause());\n }", "title": "" }, { "docid": "eb24e9cdbb4e8a23ddfb0bd8e6d71917", "score": "0.55693775", "text": "protected Exception createServiceLocatorException(\n Constructor<Exception> exceptionConstructor, BeansException cause) {\n Class<?>[] paramTypes = exceptionConstructor.getParameterTypes();\n Object[] args = new Object[paramTypes.length];\n for (int i = 0; i < paramTypes.length; i++) {\n if (String.class == paramTypes[i]) {\n args[i] = cause.getMessage();\n } else if (paramTypes[i].isInstance(cause)) {\n args[i] = cause;\n }\n }\n return BeanUtils.instantiateClass(exceptionConstructor, args);\n }", "title": "" }, { "docid": "b93e0688d34f8cfc68a0a556f0c7659f", "score": "0.5569179", "text": "public InitializationException() \r\n {\r\n System.out.println(\"InitializationException\");\r\n }", "title": "" }, { "docid": "c24975574f7acf8dca285aa89f7ef875", "score": "0.5542207", "text": "public MarsRuntimeException(String msg, Throwable t) {\n super(msg,t);\n logger.error(msg + \": \" + MarsException.exceptionStack(t));\n }", "title": "" }, { "docid": "bc9051fca04c28fd7a5329e144a3d0d6", "score": "0.55332696", "text": "public ModelException() {\n }", "title": "" }, { "docid": "7b1529a5bc46f43c8edf7dc838440fd9", "score": "0.55273944", "text": "public DocumentImportException(String msg) { super(msg); }", "title": "" }, { "docid": "81aa9aa74fd2e6bf243d8a6024658798", "score": "0.5527213", "text": "public InvalidException() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "title": "" }, { "docid": "5590ae6b4093a0b2f633b186c0c8b4af", "score": "0.55103326", "text": "public DuplicateException() {\n super(\"This item already exists.\");\n }", "title": "" }, { "docid": "7e5c5926b5410762d41cf68e830bcbac", "score": "0.5505328", "text": "public RobeRuntimeException(String name, Exception e) {\n this(name, e.getMessage());\n this.initCause(e);\n }", "title": "" }, { "docid": "007fa5a4cd1b118b6d88ba9c998cbeae", "score": "0.55049574", "text": "public AssetReferenceException() {\n super();\n }", "title": "" }, { "docid": "505b0e3959c9b1c785ad331ee63fd8af", "score": "0.5499355", "text": "public ServiceRegistrationException() { throw new RuntimeException(\"Not Implemented! Used to compile Code\"); }", "title": "" }, { "docid": "5120bc00030c17fe17d61756cb445f1a", "score": "0.5497167", "text": "public DbException() {\r\n\t}", "title": "" }, { "docid": "50b4be43e838a2f24b9e9c0ec2db36e3", "score": "0.54917395", "text": "public BusinessException() {\n }", "title": "" }, { "docid": "8545aaf905035f206712b1c439b261a1", "score": "0.5467811", "text": "public native Exception exception(Object ex);", "title": "" }, { "docid": "87e1bbbc63cb841eb9700a756b6ae5ea", "score": "0.54672545", "text": "@Test\n public void testCtor4() {\n TaskManagementException exception =\n new TaskManagementException(DETAIL_MESSAGE, CAUSE);\n\n // Verify the error message\n assertEquals(\"Error message should be correct.\", DETAIL_MESSAGE, exception.getMessage());\n // Verify the error cause\n assertSame(\"Error cause should be correct.\", CAUSE, exception.getCause());\n }", "title": "" }, { "docid": "09086ee3b1d19af8a6147bd99e577319", "score": "0.5462536", "text": "private AppUtil()\n\t{\n\t\tthrow new Error(\"Do not need instantiate!\");\n\t}", "title": "" }, { "docid": "dcddb28b0c56cb89987619245cd591ad", "score": "0.5459878", "text": "public DuplicateException(String msg) {\n super(msg);\n }", "title": "" }, { "docid": "1222f18f5a78bc64e331bf2729a4649b", "score": "0.54592806", "text": "public ConexionHuelleroException() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "fcdbf9c79b1c41e11341a36e31cfbcf2", "score": "0.5432979", "text": "private InitializationException(final String message)\n {\n super(message);\n }", "title": "" }, { "docid": "d885b20ea13b2c2b34e257cad90eae83", "score": "0.5429731", "text": "public TimeTaskException() {\n }", "title": "" }, { "docid": "63d593ec646c73f76169015bb344af27", "score": "0.5427539", "text": "public ServiceException() {\n }", "title": "" }, { "docid": "683f4d012fd54fa38f494a25741323d0", "score": "0.5421397", "text": "public ObjectUnavailableException()\n {\n }", "title": "" }, { "docid": "c47d2af3ffd0bf113ccb33669efb124f", "score": "0.54189533", "text": "private void _init() throws Exception {\n }", "title": "" }, { "docid": "c47d2af3ffd0bf113ccb33669efb124f", "score": "0.54189533", "text": "private void _init() throws Exception {\n }", "title": "" }, { "docid": "c47d2af3ffd0bf113ccb33669efb124f", "score": "0.54189533", "text": "private void _init() throws Exception {\n }", "title": "" }, { "docid": "bd7da49f1c31dd39c213e1aaaaca1220", "score": "0.54148555", "text": "public ComponentException()\n {\n super();\n }", "title": "" }, { "docid": "f91456c42af7e0276857fd82e51a4952", "score": "0.5414148", "text": "public void init() throws Exception {\n \n }", "title": "" }, { "docid": "84b527f373aef33c9f9c924e78d51941", "score": "0.54139555", "text": "public SocketFactoryException() {\n super();\n }", "title": "" }, { "docid": "afa5177f9f86ffd59cc84fa0d9560b83", "score": "0.5400522", "text": "public ShellIOException() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "90666521b4426a6984d868ae4139e32c", "score": "0.53965634", "text": "public DocumentImportException(String msg, Throwable ex) {\n\t\tsuper(msg, ex);\n\t}", "title": "" }, { "docid": "59a32b60ae8e98f2bc5d83b2cb6dffbc", "score": "0.5393718", "text": "public SipException() \r\n {\r\n super();\r\n }", "title": "" }, { "docid": "a57b8c045e12367d908800b2636c9e60", "score": "0.5392253", "text": "public ConvertRequestException() {\n // empty\n }", "title": "" } ]
9f757d50cc87cd403096687322054f68
Implements the push operation
[ { "docid": "93ee21646145f5eb89eafd77777e2faf", "score": "0.0", "text": "void push(int e) {\r\n\t\tif (top==stack.length) {\r\n\t\t\tmakeNewArray();\r\n\t\t}\r\n\t\tstack[top] = e;\r\n\t\ttop++;\r\n\t}", "title": "" } ]
[ { "docid": "f79ef7a708f3f7065a573a94bc04c5ff", "score": "0.7701727", "text": "public void push(T data);", "title": "" }, { "docid": "f79ef7a708f3f7065a573a94bc04c5ff", "score": "0.7701727", "text": "public void push(T data);", "title": "" }, { "docid": "61f0323c9efed377024cc0a15ca3000e", "score": "0.7520867", "text": "public void push(String name);", "title": "" }, { "docid": "4830c9de562482db41baf1982345a265", "score": "0.7513597", "text": "public void push(E data);", "title": "" }, { "docid": "5dd19520b5980ac11723bd85cd724b60", "score": "0.7491637", "text": "public void push(T newItem);", "title": "" }, { "docid": "2a4b8e33430628f5d3eaab1db84e0edc", "score": "0.74203736", "text": "public void push(T x);", "title": "" }, { "docid": "45c309a4949d2eab0d9a6cced3d863ef", "score": "0.74140865", "text": "public void push(T item);", "title": "" }, { "docid": "490bf2eb7f2f4733f4ab874a30a0e469", "score": "0.7382384", "text": "public void push(E e) throws Exception;", "title": "" }, { "docid": "66660ed00ff98f86d741143d64f65a95", "score": "0.7366388", "text": "void push(T item);", "title": "" }, { "docid": "66660ed00ff98f86d741143d64f65a95", "score": "0.7366388", "text": "void push(T item);", "title": "" }, { "docid": "c5367c306b16f521e45fb73ef7d847d0", "score": "0.7351911", "text": "public void push(T aValue);", "title": "" }, { "docid": "81e692ac0eb418be4f474bf928f6c010", "score": "0.73461854", "text": "void push(T t);", "title": "" }, { "docid": "78206f4ce6b0aacf2844fbc461b5a4cc", "score": "0.73074925", "text": "void push(Object item);", "title": "" }, { "docid": "971460f6c67d6dffa17da861d4383c59", "score": "0.7298448", "text": "public void push(T dato );", "title": "" }, { "docid": "64945715a2a7b8f424b2f5e74ce6f13b", "score": "0.7212925", "text": "public abstract boolean push(Object E);", "title": "" }, { "docid": "700998d8edcf0e46a3cc4ae227719bab", "score": "0.7207179", "text": "public void push(E item);", "title": "" }, { "docid": "7a36cc5c5626c2c2341969540adf4184", "score": "0.7173443", "text": "@Override\r\n\tpublic void push(E e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "65f0b98f613c024a99fb5300febc1420", "score": "0.7171676", "text": "public void push(T element);", "title": "" }, { "docid": "65f0b98f613c024a99fb5300febc1420", "score": "0.7171676", "text": "public void push(T element);", "title": "" }, { "docid": "8cb1a9d2313c9e5da73617e82f29a98e", "score": "0.71557105", "text": "void push(E Obj);", "title": "" }, { "docid": "d4fd5b43776fb1b34d6d91b39fee9bb8", "score": "0.71474075", "text": "void push(T x);", "title": "" }, { "docid": "b18ee6967093c291a7ca3e4f0f4429f7", "score": "0.71414024", "text": "public void push(T elem);", "title": "" }, { "docid": "014402b308e925201692fd13cacc18b8", "score": "0.7137792", "text": "void push(String message);", "title": "" }, { "docid": "2ac1410cd7ed04802e00744c3274c77b", "score": "0.7100988", "text": "@Override\n\tpublic void push(E item) {\n\t\t\n\t}", "title": "" }, { "docid": "ba510c0c39dfe7ba7640d0831880bea3", "score": "0.70980626", "text": "public void push(E value);", "title": "" }, { "docid": "d1e26260bb7ee4234c069424c1d301f6", "score": "0.7069426", "text": "public Object push(Object arg)\n {\n dataList.add(arg);\n return arg;\n }", "title": "" }, { "docid": "93e73a1d4989c2aa051a644de48cd944", "score": "0.7059923", "text": "public void push(T entry)\n { \n first = push(entry, first);\n }", "title": "" }, { "docid": "249ce299b0bca1a17e6642810c4dca8c", "score": "0.70594656", "text": "public void push(E newItem);", "title": "" }, { "docid": "268ea561d9f3b56b221a11af51dfa3e3", "score": "0.7051204", "text": "void push(Object elem);", "title": "" }, { "docid": "2b3ea44162699d17d67a947eb1d2b37d", "score": "0.7026061", "text": "public abstract void push(SDGNode call);", "title": "" }, { "docid": "45e6e18574a0f236d6a5c6e6e4b8c591", "score": "0.7011401", "text": "public void push(T o) {\r\n\t\tadd(o);\t\r\n\t}", "title": "" }, { "docid": "72e936fd41e448593d596850eeb9e219", "score": "0.700417", "text": "void push(T item) {\n contents.addAtHead(item);\n }", "title": "" }, { "docid": "6d4c8c102fd6609375fb41151d66b63b", "score": "0.7000755", "text": "public void push(int elem);", "title": "" }, { "docid": "024c91d32f28300cef07fb2ec102729d", "score": "0.6982187", "text": "public void push(Object value) {\n\t\tthis.add(value);\n\t}", "title": "" }, { "docid": "75bad506ce8716977c3a45b96ad0c39b", "score": "0.69736814", "text": "public void push(T newEntry);", "title": "" }, { "docid": "ec0b820f12c51a7ab8e6398a7925c93d", "score": "0.6967652", "text": "void push(int value);", "title": "" }, { "docid": "4404da10fc56e4ecaaab651235e2be8a", "score": "0.69547564", "text": "public void push(T data)\n {\n ll.insert(ll.getSize(), data);\n }", "title": "" }, { "docid": "db496347cb2d21a7a6b1f5caa17d70ce", "score": "0.6936997", "text": "public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "title": "" }, { "docid": "0d80d92b02a049c3da4e9640172b422a", "score": "0.6924138", "text": "public void push(TYPE element);", "title": "" }, { "docid": "0ed94f7be19a46e47f07d0449c13032e", "score": "0.692338", "text": "public void push(Object anElement);", "title": "" }, { "docid": "c6e9215f16e9016e611f777529fe851c", "score": "0.69228196", "text": "public void push (E item){\n this.stack.add(item);\n }", "title": "" }, { "docid": "b75755d28601e1c891912cb5d8dbfe2b", "score": "0.691468", "text": "void push(E e);", "title": "" }, { "docid": "b75755d28601e1c891912cb5d8dbfe2b", "score": "0.691468", "text": "void push(E e);", "title": "" }, { "docid": "87c1bfbd5bbe7cca7b45f47e5148ea7f", "score": "0.6912607", "text": "void push(int element);", "title": "" }, { "docid": "77e7433076ba014b311eac74de7c7893", "score": "0.6911229", "text": "public void push(E element);", "title": "" }, { "docid": "d99b0a9cbdfd4a2993cb7c07d926c58f", "score": "0.6908751", "text": "public void push(T val){ if(this.isUpgraded) this.linkArray.push(val); else this.nativeArray.add(val); }", "title": "" }, { "docid": "04a1bbec215a1b7da7abb440102fe13e", "score": "0.69048667", "text": "public void push(int x) {\n push.push(x);\n }", "title": "" }, { "docid": "d4b19e06218ef99266a61055dc2418c1", "score": "0.69000185", "text": "public void push (E element);", "title": "" }, { "docid": "4e340b359467104aa9b924e8a60a4ae5", "score": "0.68763626", "text": "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Dynamic Stack\");\r\n\t}", "title": "" }, { "docid": "53b8581477bcfa192f908b4d55c66afb", "score": "0.6846683", "text": "public void push(T value) {\n \tstack.add(value);\n }", "title": "" }, { "docid": "10598a39fab4ebaa85f1bf1aca2f806e", "score": "0.68285537", "text": "@Override\n\tpublic void push(Object x) {\n\t\tlist.addFirst(x);\n\t}", "title": "" }, { "docid": "f247c074f4296172f6bb7fba6033a020", "score": "0.6821773", "text": "@Override\n public void push(T data) {\n if (data != null) {\n if (size == backing.length) {\n T[] newBacking = (T[]) new Object[backing.length * 2];\n for (int i = 0; i < size; i++) {\n newBacking[i] = backing[i];\n }\n newBacking[size++] = data;\n backing = newBacking;\n } else {\n backing[size] = data;\n size++;\n }\n } else {\n throw new IllegalArgumentException(\"Can't push null onto stack\");\n }\n }", "title": "" }, { "docid": "8715a49efe959d02905fe50448a2d437", "score": "0.681463", "text": "public void enqueue(T pushed)\n\t{insert(pushed);}", "title": "" }, { "docid": "875f7384336797911b167513b4209f62", "score": "0.68119806", "text": "void push(int in);", "title": "" }, { "docid": "e1261f18466b4216f083b70359f20690", "score": "0.6802497", "text": "public void push(Object activity);", "title": "" }, { "docid": "3a940ff4175171a8b8b40b633373b9af", "score": "0.6786015", "text": "void push() {\n\t\t// push logic here\n\t\t_pushes++;\n\t\t_money += _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "title": "" }, { "docid": "a2cb061d1500c11900727934f65c568d", "score": "0.67856157", "text": "void push(int i);", "title": "" }, { "docid": "f2f6410a386cd7684cc31068c5f1ac87", "score": "0.6779074", "text": "public void push(String message) throws IOException;", "title": "" }, { "docid": "265cdc39a834cb7260ce530d34ea14c6", "score": "0.6773714", "text": "@Override\n\tpublic void push(int item) {\n\n\t}", "title": "" }, { "docid": "3d117ab3adaa08d86c5bdea985614a7c", "score": "0.67559385", "text": "public void push(E object) {stackList.insertAtFront(object);}", "title": "" }, { "docid": "21783eb5f9d33a2370096593128abc50", "score": "0.6755349", "text": "public static void push(Object data) {\n list.add(data);\n }", "title": "" }, { "docid": "5c74038d81ae67022aea6682c1eab946", "score": "0.67511594", "text": "public final void mPUSH() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.PUSH;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:702:6: ( 'push' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:702:8: 'push'\n\t\t\t{\n\t\t\t\tthis.match(\"push\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}", "title": "" }, { "docid": "47725e4c81304c751473f75b61547b50", "score": "0.67456067", "text": "public void push(int x) {\n temp.push(x);\n }", "title": "" }, { "docid": "72e685c82297321f14e2198012ed41e8", "score": "0.67427313", "text": "void push(int v);", "title": "" }, { "docid": "527daeedcbd53e59e0b67decf014ff68", "score": "0.6725644", "text": "public void push(Item item){\n this.stack.add(item);\n\n }", "title": "" }, { "docid": "db8a104ee42d45e40ec201ff5c7ae3e4", "score": "0.6725509", "text": "public void push(E o) \r\n {\r\n list.add(o);\r\n }", "title": "" }, { "docid": "90b01f741b876855192f7ae7aedf9276", "score": "0.67085636", "text": "static void perform_push(String passed){\n\t\tint type = type_of_push(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tpush_to_stack(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "3e4b080d377f7eb5f4168577738a12a6", "score": "0.6695509", "text": "public Object push(Object o) {\n\t\tadd(o);\n\t\treturn o;\n\t}", "title": "" }, { "docid": "80f2b0eec8b253a0c17575c69d5eb894", "score": "0.6689167", "text": "public void push(E item) {\n addFirst(item);\n }", "title": "" }, { "docid": "e332e4d42cf208d48e9d139855194d25", "score": "0.66828024", "text": "public void push(int x) {\n s1.push(x);\n }", "title": "" }, { "docid": "d83c911a20cd96b407b912d95a2c9642", "score": "0.66773397", "text": "@Override\n public E push(final E obj) {\n // TODO\n top = new Node<>(obj, top);\n return obj;\n }", "title": "" }, { "docid": "1776eaace2df39559cc7ed6922a51a6d", "score": "0.6674088", "text": "public void push(E element) {\r\n items.add(0, element);\r\n }", "title": "" }, { "docid": "fa197a0ed79d6d12b4bed33e6ec26f31", "score": "0.6670495", "text": "@Override\r\n\tpublic void push() {\n\t\tSystem.out.println(\"Push logic for Fixed Stack\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8b8e0598dd14e0ce3ca126e233b0ba75", "score": "0.6669962", "text": "public void push(int x) {\n inSt.push(x);\n\n }", "title": "" }, { "docid": "afe10208473c17a136074edbff87e3c6", "score": "0.6659712", "text": "public void push(int x) {\n data.add(x);\n }", "title": "" }, { "docid": "fe21f6af1c7f2599d1d27d318d28d75b", "score": "0.66586643", "text": "public void push(int x) {\n s1.push(x);\n }", "title": "" }, { "docid": "fe21f6af1c7f2599d1d27d318d28d75b", "score": "0.66586643", "text": "public void push(int x) {\n s1.push(x);\n }", "title": "" }, { "docid": "fe21f6af1c7f2599d1d27d318d28d75b", "score": "0.66586643", "text": "public void push(int x) {\n s1.push(x);\n }", "title": "" }, { "docid": "3ca0bb4307c76a0ec0512bcded621791", "score": "0.6657106", "text": "void push(int x);", "title": "" }, { "docid": "70869aedda45ae4e3b4cbc9ca15a383b", "score": "0.6653274", "text": "@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapacity();\n\t\t\n\t\tstack[top] = element;\n\t\ttop++;\n\n\t}", "title": "" }, { "docid": "fdc45122d929ac037cc3277597da2276", "score": "0.6652157", "text": "public void push(T e) {\n\t\tif(size == data.length){\n\t\t\tresize(size * 2);\n\t\t}\n\t\tthis.data[size++] = e;\n\t}", "title": "" }, { "docid": "70c501dd99146296d98d9db458500df6", "score": "0.6648715", "text": "public void push(int x) {\n\t int size=q.size();\n\t q.offer(x);\n\t for(int i=0;i<size;i++){\n\t q.offer(q.poll());\n\t }\n\t \n\t }", "title": "" }, { "docid": "a99beb7ea1ff2865f9283a492b0fd22d", "score": "0.6639682", "text": "public void push(E o) {\n list.add(o);\n }", "title": "" }, { "docid": "822cfa68770ad22c575568a1ccc2a4d4", "score": "0.6634918", "text": "public void push(E inValue)\n {\n stack.insertFirst(inValue);\n }", "title": "" }, { "docid": "9c816f9e9cb7f4ba8f60dbed65728fec", "score": "0.66278374", "text": "@Override\n public void push(T element){\n arrayAsList.add(element);\n stackPointer++;\n }", "title": "" }, { "docid": "06559a4b752221eac9799c662f22de01", "score": "0.6623455", "text": "public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}", "title": "" }, { "docid": "08e4e9b20ae077215986ba976cea4d8f", "score": "0.66124576", "text": "public void push(T x) {\n\t\tl.push(x);\n\t}", "title": "" }, { "docid": "52ed7c30d7e17d84445d2bbd0415fa61", "score": "0.6595422", "text": "@Override\r\n\tpublic boolean push(T e) {\r\n\t\tif(!isFull()) {\r\n\t\t\tstack[topIndex + 1] = e;\r\n\t\t\ttopIndex++;\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6358e9bcf0d801e5ce5ef45b56c417aa", "score": "0.6595324", "text": "public void push(T element) {\n\t\t//add the new element\n\t\telements.add(element);\n\n\t}", "title": "" }, { "docid": "dad46324934d01d51332ba09c858f444", "score": "0.65827703", "text": "public void push(Object element)\n\t{\n\t\tensureCapacity();\n\t\telements[size++] = element;\n\t}", "title": "" }, { "docid": "98c3cce11ba45bba891c068e3da00de1", "score": "0.65752065", "text": "@Override\n public void push(Integer value) {\n ar[pos++] = value; \n }", "title": "" }, { "docid": "fc192907fe557ab35982d7dc44a1647e", "score": "0.6570662", "text": "public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }", "title": "" }, { "docid": "d6646d4b6d02a81e35d93d118af77d80", "score": "0.6563091", "text": "public void push(int x) {\n one.add(x);\n for(int i=0;i<one.size()-1;i++)\n {\n one.add(one.poll());\n }\n \n }", "title": "" }, { "docid": "99d8e522792cad723585c64e8dc7ea4b", "score": "0.655755", "text": "public void push(Item s){\n\n //create a new node and insert incoming data\n Node node=new Node();\n node.item=s;\n node.next=head; //make node the current head pointer\n //make head point the new node\n head=node;\n }", "title": "" }, { "docid": "dffcaee6f5ab9611a4c2efe90bc79629", "score": "0.6526571", "text": "@Override\r\n public boolean canBePushed()\r\n {\r\n return true;\r\n }", "title": "" }, { "docid": "0295dfef338d306ff436755a9aae20b0", "score": "0.6524465", "text": "public void push(int x) {\n \tlist.add(x);\n }", "title": "" }, { "docid": "ba80cb733f400f2e3f1737eccbc3789a", "score": "0.6524253", "text": "public void push(E value) {\n list.addLast(value);\n index++;\n }", "title": "" }, { "docid": "380342c34bbfe060a22f8a58b008fe73", "score": "0.6520531", "text": "public void push(int x) {\n q.add(x);\n for (int i = 0; i < q.size() - 1; ++i) {\n q.add(q.poll());\n }\n }", "title": "" }, { "docid": "49ae2fd736e629ed2351dbd41dd3285c", "score": "0.65106344", "text": "public void push(T newEntry) {\n ensureCapacity();\n stack[topIndex + 1] = newEntry;\n topIndex++;\n }", "title": "" }, { "docid": "5dec493010448055224a21db736e2401", "score": "0.6504249", "text": "public void push(int x) {\n q.offer(x);\n }", "title": "" }, { "docid": "b453c762adbce183a441be479cad72a9", "score": "0.64793843", "text": "public void testPush() {\n assertEquals(this.stack.size(), 10, 0.01);\n this.stack.push(10);\n assertEquals(this.stack.size(), 11, 0.01);\n assertEquals(this.stack.peek(), 10, 0.01);\n }", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
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.
[ { "docid": "3ff6b22aba2fd7549dc67b83db11fb8e", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnMatchRequest = new javax.swing.JButton();\n btnTransactionHistory = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n btnAnalysis = new javax.swing.JButton();\n lbl_show_thephoto = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(204, 255, 204));\n\n btnMatchRequest.setText(\"Manage Request\");\n btnMatchRequest.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnMatchRequestActionPerformed(evt);\n }\n });\n\n btnTransactionHistory.setText(\"Transaction History\");\n btnTransactionHistory.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTransactionHistoryActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"新細明體\", 0, 24)); // NOI18N\n jLabel4.setText(\"Transaction Manager Work Area\");\n\n btnAnalysis.setText(\"InMail\");\n btnAnalysis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAnalysisActionPerformed(evt);\n }\n });\n\n lbl_show_thephoto.setBackground(new java.awt.Color(255, 255, 204));\n lbl_show_thephoto.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/manager.png\"))); // NOI18N\n lbl_show_thephoto.setOpaque(true);\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(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 701, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(btnAnalysis, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnMatchRequest, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnTransactionHistory, 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, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lbl_show_thephoto)\n .addGap(116, 116, 116))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, 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(btnMatchRequest)\n .addGap(18, 18, 18)\n .addComponent(btnTransactionHistory)\n .addGap(18, 18, 18)\n .addComponent(btnAnalysis))\n .addComponent(lbl_show_thephoto, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(298, Short.MAX_VALUE))\n );\n }", "title": "" } ]
[ { "docid": "3b789e05401c843123f84caf842850e3", "score": "0.74118066", "text": "public Mainform() {\n initComponents();\n }", "title": "" }, { "docid": "c6aad17f0d00f4164576c96a51cda35a", "score": "0.7354273", "text": "public ClerkEntryForm() {\n initComponents();\n }", "title": "" }, { "docid": "8084612e7567636ec45f2cb3a26a8877", "score": "0.7345354", "text": "public ChordForm() {\n initComponents();\n }", "title": "" }, { "docid": "d5f307ec452210b7efa10782390ec006", "score": "0.73387647", "text": "public SilverForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7290526", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7290526", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7290526", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7290526", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "ab26f8df01ace94dc2e75db75c3c5a93", "score": "0.7203877", "text": "public FormFornecedor() {\n initComponents();\n }", "title": "" }, { "docid": "1742002976935899e1e18eb0120c8721", "score": "0.7202748", "text": "public Corref_UI() {\n initComponents();\n }", "title": "" }, { "docid": "cd7092d4cdaf7e8092dd8403e8808e1b", "score": "0.7202592", "text": "public Selection_form() {\n initComponents();\n this.setLocation(300,200);\n }", "title": "" }, { "docid": "9be06aa39008afd36508e7b586879b4b", "score": "0.7198717", "text": "public mainForm() {\n initComponents();\n }", "title": "" }, { "docid": "5fe497bb575aff1fc0c976d87be2dfc8", "score": "0.71715593", "text": "public Form_Pelanggan() {\n initComponents();\n }", "title": "" }, { "docid": "715c8a742f1556f2ec428bd030358949", "score": "0.7166346", "text": "public formpelanggan() {\n initComponents();\n }", "title": "" }, { "docid": "671bb9877d211fb5a71936386f1cdede", "score": "0.7165248", "text": "public VETREC_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "9cb4f71a715a0a81f18a8cc9010de27e", "score": "0.7156893", "text": "public FormDokter() {\n initComponents();\n }", "title": "" }, { "docid": "30e3a9e5f75d2b8265d4cbbe099d5459", "score": "0.71355647", "text": "public MatosForm() {\n initComponents();\n }", "title": "" }, { "docid": "e084b833445513a0bbd0afa7eadd6e40", "score": "0.7119973", "text": "public f14() {\n initComponents();\n }", "title": "" }, { "docid": "0d218a1c6381bc02fa17f906d6dfe5ab", "score": "0.71193963", "text": "public frmLA() {\n initComponents();\n }", "title": "" }, { "docid": "772ac2aad35b6cf977cd9ee52ee9c07a", "score": "0.70897317", "text": "public FormMenu() {\n initComponents();\n }", "title": "" }, { "docid": "8dd32b953c370ee05d489dbe10ddaf7f", "score": "0.70771736", "text": "public frmPizza() {\n initComponents();\n setVisible(true);\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "6df7a8ce34c0380eca0608e2f32f79ad", "score": "0.70213914", "text": "public FormPrincial() {\n initComponents();\n }", "title": "" }, { "docid": "fc213e7e6a7006f38549c61ea7cc9c9e", "score": "0.7016717", "text": "public jfRelLiExame_1() {\n initComponents();\n }", "title": "" }, { "docid": "57a872719b7eee5e3a93bcf79beb621a", "score": "0.70162183", "text": "public AnaForm() {\n initComponents();\n }", "title": "" }, { "docid": "4c351f4b561d8938838414ec1724e801", "score": "0.7011462", "text": "public Przedszkole() {\n initComponents();\n }", "title": "" }, { "docid": "8d8c7047005c72fda8cc2681c310fcf2", "score": "0.69804084", "text": "public frmStock() {\n initComponents();\n }", "title": "" }, { "docid": "cd6b1bb0c64543062e92ca4b5c6b66e1", "score": "0.69700974", "text": "public Preisumrechner() {\n initComponents();\n }", "title": "" }, { "docid": "19640aefbe7af37367e3f0ef53339784", "score": "0.6962749", "text": "public FormAddDok() {\n initComponents();\n }", "title": "" }, { "docid": "06f77a57587ad26b19ca1251de0dbfe7", "score": "0.6944837", "text": "public frm_utama() {\n initComponents();\n }", "title": "" }, { "docid": "8d7f570dda7805d87e5923744ad3f7bc", "score": "0.6940795", "text": "public Add_Visit_Form() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "9cd75f1622c58fced1fe6d82c61399a5", "score": "0.6937873", "text": "public StatisticForm() {\n initComponents();\n propertySheetView1.setDescriptionAreaVisible(true);\n }", "title": "" }, { "docid": "c03fedaf759a93c4cdfeff7f9d349675", "score": "0.69289273", "text": "public GameForm() {\r\n\t\tinitComponents();\r\n\t}", "title": "" }, { "docid": "164b39ac97975cccf3fb324775b25dbd", "score": "0.69235903", "text": "public frmFornecedores() {\n initComponents();\n }", "title": "" }, { "docid": "120b32b8a8b83bf59c2ead0dbac635e9", "score": "0.691051", "text": "public FormNilai1() {\n initComponents();\n }", "title": "" }, { "docid": "8134476dc6b52000055c99fefdb483bc", "score": "0.6908209", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n pack();\n }", "title": "" }, { "docid": "006e04be85c9d8cc91b5ee786b477ea9", "score": "0.6907558", "text": "public formCuaSoChinh() {\n initComponents();\n }", "title": "" }, { "docid": "e2be555f8a546a03abe2e48fb33d2ff9", "score": "0.6892114", "text": "public MainForm() {\n initComponents();\n ImageUtility.changeFrameBackgroundImage(this, \"src/images/bc.jpg\");\n setTitle(\"Computer Hardware Shop[\"+StatusClass.user+\"]\");\n }", "title": "" }, { "docid": "88fc69122aee4f4bec81ed2af45329d2", "score": "0.689038", "text": "public MIDDLECLASS() {\n initComponents();\n }", "title": "" }, { "docid": "d62a240281bb060c5422e93b89e4db71", "score": "0.68888843", "text": "public LOINCForm () {\r\n\r\n }", "title": "" }, { "docid": "cef08cb0ec9f4f71d0cd754434d9b734", "score": "0.68849343", "text": "public ThongKeSoCauThuCauLacBoUI() {\n initComponents();\n }", "title": "" }, { "docid": "4660140502277fb935d96e16fccb8a64", "score": "0.68721455", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n setLayout(new java.awt.BorderLayout());\n\n }", "title": "" }, { "docid": "4660140502277fb935d96e16fccb8a64", "score": "0.68721455", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n setLayout(new java.awt.BorderLayout());\n\n }", "title": "" }, { "docid": "0c632fb2755464a3466623d5ec8849b6", "score": "0.6867284", "text": "public frmTextProcessing() {\n initComponents();\n }", "title": "" }, { "docid": "453ca90376772193ec7d4c03b4354a85", "score": "0.6857886", "text": "public JFrmConsulCausas() {\n initComponents();\n }", "title": "" }, { "docid": "66fc723d7d1e260ccc3a91a62e6ba49b", "score": "0.6857537", "text": "public OrderInstrumentUI() {\n initComponents();\n }", "title": "" }, { "docid": "7032af178b57d8b59d3785c6fe5e97f8", "score": "0.68574697", "text": "public PreAddExamform() {\n initComponents();\n }", "title": "" }, { "docid": "c43127accd9d14864dd55df8157170d8", "score": "0.6855796", "text": "public CalculatorForm() {\n initComponents();\n\n lblInfo.setText(\"v \" + VERSION + \" (c) Andreas Erhard\");\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.68524104", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.68524104", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "bcf49a97d75f66802b966d80a7430dc6", "score": "0.68448734", "text": "public Instruction_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "8ffe2bbe07b0899953c5e973620f0e67", "score": "0.68422693", "text": "public KostAlladinNew() {\n initComponents();\n }", "title": "" }, { "docid": "c4026fcad0e3c78a64111c3380adb336", "score": "0.68366057", "text": "public frmPagamentoCad() {\n initComponents();\n \n }", "title": "" }, { "docid": "14f36524a56677d0e7232c49ebb69f17", "score": "0.6824457", "text": "public JanelaDefesaUI() {\n initComponents();\n }", "title": "" }, { "docid": "2ffc981c8bcc45bf73613e257291454e", "score": "0.6824155", "text": "public OptFrame() {\n initComponents();\n }", "title": "" }, { "docid": "a13c92e155a95210b1eee3298885a508", "score": "0.6823137", "text": "public frmMarca() {\n initComponents();\n }", "title": "" }, { "docid": "7da9d952179af00d03060aa434d18d96", "score": "0.68087953", "text": "public formCeasar() {\n initComponents();\n }", "title": "" }, { "docid": "65c63ac01e8a26883c7398e3cd04295c", "score": "0.6807609", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(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 .addGap(0, 300, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 600, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "90de453b4ac11a5b1cf439619f35ee40", "score": "0.6803312", "text": "public Thuong() {\n initComponents();\n }", "title": "" }, { "docid": "7422b5d6d4f274df8ed5773f5112e14e", "score": "0.6799921", "text": "public FormTela() {\n initComponents();\n }", "title": "" }, { "docid": "baa9a5d1c48307fa9683c030ca22f66f", "score": "0.6799768", "text": "protected void initForm() {\n }", "title": "" }, { "docid": "6c7178d448bc365bb2ba740ce5da5892", "score": "0.67958975", "text": "public UpdateForm() {\n initComponents();\n }", "title": "" }, { "docid": "6c7178d448bc365bb2ba740ce5da5892", "score": "0.67958975", "text": "public UpdateForm() {\n initComponents();\n }", "title": "" }, { "docid": "6c7178d448bc365bb2ba740ce5da5892", "score": "0.67958975", "text": "public UpdateForm() {\n initComponents();\n }", "title": "" }, { "docid": "d28d353c5081e744ee782a69e129f623", "score": "0.6779715", "text": "public fcsrttGUI() {\n initComponents();\n }", "title": "" }, { "docid": "93136379e740c50828e66e49ffa60694", "score": "0.6773775", "text": "public StudentForm() {\n initComponents(); \n }", "title": "" }, { "docid": "06e743d479eaa6452082bedac3e9f68e", "score": "0.6770456", "text": "public Loged() {\n initComponents();\n }", "title": "" }, { "docid": "d9d9d04b322185e26763df5fdc26ebaf", "score": "0.67675894", "text": "public DangNhap() {\n initComponents();\n }", "title": "" }, { "docid": "c7c6c307d992b73819e5b872eab5a876", "score": "0.6764447", "text": "public frmFacturaUp() {\n initComponents();\n }", "title": "" }, { "docid": "cab9987bef8d8dee50afe202ee674ce0", "score": "0.67601573", "text": "public formHoaDonNhapHang() {\n initComponents();\n }", "title": "" }, { "docid": "9da382a59f6c29b3f7794702873378db", "score": "0.67568606", "text": "public NewJFrameAhmedabad() {\n initComponents();\n }", "title": "" }, { "docid": "c76eca1d4f14154559fc85a56c3a31e8", "score": "0.6756447", "text": "public OrdersGUI() {\n initComponents();\n }", "title": "" }, { "docid": "5fa3510788cd5c178ef77e5fe40a0351", "score": "0.67555696", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n \n setLayout(new java.awt.BorderLayout());\n \n }", "title": "" }, { "docid": "8ab8678ef11462b4337884e01322abb3", "score": "0.6753834", "text": "public GroupForm() {\n initComponents();\n }", "title": "" }, { "docid": "152fd87262f9ebf2fd915b9cff18aada", "score": "0.6752398", "text": "public HolaMundo() {\n initComponents();\n }", "title": "" }, { "docid": "182220a859f0a1e03e78b4df1f73b0b4", "score": "0.67521477", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pack();\n }", "title": "" }, { "docid": "5725f215971661a873ed920597a4e9e6", "score": "0.67464566", "text": "public Tentang() {\n initComponents();\n }", "title": "" }, { "docid": "bef710e80312a2896f016489be036ed8", "score": "0.6744711", "text": "public frmAyuda() {\n initComponents();\n }", "title": "" }, { "docid": "1acb8903ef532a297bddff3cc696fe16", "score": "0.6744503", "text": "public DistNDivUI() {\n initComponents();\n }", "title": "" }, { "docid": "278f58cae5b23b07d12ad80bb4707ee9", "score": "0.67429894", "text": "public ana_ekran() {\n initComponents();\n }", "title": "" }, { "docid": "fc165d40568c4fd537c010ee1daedb99", "score": "0.67408425", "text": "public EditItemForm()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "269f2b3d89c51808a0e56e095a2bab9a", "score": "0.6732223", "text": "public Aula_1() {\n initComponents();\n }", "title": "" }, { "docid": "e38e7304f08e7c4e3895e880d78225f6", "score": "0.67249954", "text": "public RadioGUI() {\n initComponents();\n }", "title": "" }, { "docid": "23d92ba40c8de36c5337fa6d7bc2ac1a", "score": "0.6724878", "text": "public adelante() {\n initComponents();\n }", "title": "" }, { "docid": "d9ad2daaa1f55a554028df9230f00186", "score": "0.6723406", "text": "public view_form_daftar() {\n initComponents();\n setLocationRelativeTo(this);\n }", "title": "" }, { "docid": "f3f84513322646080796beb7bdae1c8a", "score": "0.67211294", "text": "public Tallerr() {\n initComponents();\n }", "title": "" }, { "docid": "f2d3a3d41b5d5fa5a608b606bf18339f", "score": "0.6721035", "text": "public UnderGraduateUI() {\n initComponents();\n }", "title": "" }, { "docid": "70172825ba2527ca831ed6096d3887a1", "score": "0.67206955", "text": "public BasePanelForm1() {\n initComponents();\n }", "title": "" }, { "docid": "59104e8e50595e3442ba7643b888d9e5", "score": "0.67197675", "text": "public Kuis2() {\n initComponents();\n }", "title": "" }, { "docid": "59104e8e50595e3442ba7643b888d9e5", "score": "0.67197675", "text": "public Kuis2() {\n initComponents();\n }", "title": "" }, { "docid": "86330ee5063c09ad7d258a6d6a589607", "score": "0.6719138", "text": "public FilterOffreUI() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "d41b84670182c7afef1683b93e0d7882", "score": "0.6711332", "text": "public frmPersonas() {\n initComponents();\n }", "title": "" }, { "docid": "73e8e4240af4ba188bab44938e586e62", "score": "0.6709251", "text": "public WarperGUI()\n {\n initComponents();\n }", "title": "" }, { "docid": "7dc409db8b51dd01f007e86003f8f128", "score": "0.67045075", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 807, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 444, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" }, { "docid": "8df390e5195809f1b6bee989698ca786", "score": "0.66991466", "text": "public EduSupportGUI() {\n initComponents();\n }", "title": "" }, { "docid": "674de145feb7391d245e02d56d5a0397", "score": "0.66964936", "text": "public AddSpeler() {\n initComponents();\n }", "title": "" }, { "docid": "28fff97058725deb181ab583cd534ce8", "score": "0.6692292", "text": "public GeometriesGUI() {\n initComponents();\n\n // centers the form at start\n this.setLocationRelativeTo(null);\n\n // set date on title bar\n this.setDate();\n }", "title": "" }, { "docid": "6f94fcde7cdd439cb5e0a9d91253d763", "score": "0.66893345", "text": "public bankUI() {\n\n initComponents();\n }", "title": "" }, { "docid": "365cf39c36911a2c40ed85cd85bfe55f", "score": "0.6684803", "text": "public MainForm() {\n initComponents();\n setLocationRelativeTo(null);\n this.setTitle(\"Loged in doctor: \" + Controller.getInstanca().getCurrentDoctor().toString());\n }", "title": "" }, { "docid": "ad718f2e773eb2bccd216127ec3c3f48", "score": "0.6680324", "text": "public AddBookForm() {\n initComponents();\n }", "title": "" }, { "docid": "899f2df576c327cf5154700fd7a79bd2", "score": "0.6678805", "text": "public Class_IX_D() {\n initComponents();\n }", "title": "" }, { "docid": "354c1f17a0bc9286d7df0c59ee44c66a", "score": "0.6678741", "text": "public FrmInCadLocal() {\n initComponents();\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "21296e58e743e858d308674701814a64", "score": "0.0", "text": "public static void main(String[] args) {\nPerson employee=new Employee(\"John\");\nPerson trainee=new Trainee(\"Tom\");\n//Trainee t1=new Trainee(\"Harry\")\nEmployee e1=new Employee(\"Tim\");\nSystem.out.println(employee.getName());\nSystem.out.println(trainee.getName());\n\nSystem.out.println (e1.calculateWeeklySalary(25.0,2500.00));\n//System.out.println(t1.addSubject());\n\t}", "title": "" } ]
[ { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6866318", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.68461496", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.68199706", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.6690517", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6571234", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.6433148", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.6424808", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.64108074", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63912827", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.63636446", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.63032013", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.62293875", "text": "Grensesnitt(){}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8fefe7b85b49281edb456698bfd556", "score": "0.616781", "text": "@Override\r\n\tpublic void descansar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61533993", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.61470556", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6139653", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "958663dc976180cba7b91b2a4ebcb522", "score": "0.61089844", "text": "@Override\n\tpublic void atualiza() {\n\n\t}", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.6105675", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6063955", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60215324", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.60198766", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.6001773", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.5986621", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "4f035da85a44bb830509e046190e6ee5", "score": "0.59682363", "text": "@Override\r\n\tpublic void rajastanroyals() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.59527355", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c744960aa067b28111e99db9ddf6aeed", "score": "0.59477377", "text": "@Override\r\n\tpublic void fragancia() {\n\t\t\r\n\t}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.59301406", "text": "User mo18615e();", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "416a053368cfd700d9d09414458911cd", "score": "0.58986443", "text": "@Override\n\tpublic void assamblyOfControlhead() {\n\t\t\n\t\t\n\t\t\n\t\n\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58706117", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.58528596", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.584987", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "60e50abec8df6d4d5a80de13ba750171", "score": "0.5842782", "text": "@Override\r\n\tpublic void retour() {\n\t\t\r\n\t}", "title": "" }, { "docid": "debc6b4612a5fe9f0680a6bff73f25e6", "score": "0.58388203", "text": "@Override\r\n\t\tpublic void emettreSon() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.5825308", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.5822819", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "d45e7311f809d3019d7382af887cb3cf", "score": "0.5799729", "text": "@Override\r\n\tpublic void dehlidervels() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "89b37f5fcca98bdfa7c243fc99d06675", "score": "0.5790634", "text": "@Override\r\n\tpublic void reanudar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.57720804", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5770528", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a46afb3a57efda28ee1b37c4a9b1960f", "score": "0.57642525", "text": "private void getEx() {\n\r\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b95bbed498007dfeba9b078798c02e53", "score": "0.5754483", "text": "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.57524616", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "b2cde12cf50e0ec60f909684878e936c", "score": "0.57514966", "text": "@Override\n\tpublic void wykonajZamknij() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a53d232dac89259f961cbc93762f65b2", "score": "0.5731746", "text": "@Override\r\n\t\t\tvoid n() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.57235396", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.5716563", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "7bbf3f0011f317b7faa88562e06495b7", "score": "0.5714223", "text": "@Override\r\n public void reculer() {\n }", "title": "" }, { "docid": "1ba6f6b334c51461b3fe944110e91ef5", "score": "0.5707728", "text": "@Override\n\tpublic void comerHojas() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "0ca16e78cddd3c7d9de74c662606bbac", "score": "0.5686997", "text": "public void mo4570b() {\n }", "title": "" }, { "docid": "359579516b65b36ff8c4344d8363a3ed", "score": "0.5686103", "text": "@Override\r\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "09488e6c7d4190869b37b126a578249f", "score": "0.56821704", "text": "@Override\r\n\t/**\r\n\t * \r\n\t */\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.5668976", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
ebdbb05498b5c982e42be77ea3a40722
sua don dat hang
[ { "docid": "04bd782991d76d572789c3ee0aac66b8", "score": "0.0", "text": "public boolean suaDonDatHang(DonDatHang ddh) {\n\t\tif(ddhDao.suaDonDatHang(ddh)) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "640f698dc1e8b42fc22c92f859f7365d", "score": "0.58215064", "text": "synchronized void askatu() throws InterruptedException {\r\n\t\twhile (! (egH==1 && egL==1)) wait();\r\n\t\tegH=0;\r\n\t\tegL=0;\r\n\t\tpantaila.askatuSuk(h,egH,l,egL);\r\n\t\tnotifyAll();\r\n\r\n\t}", "title": "" }, { "docid": "f43991b551cb1be7f6d49518bdf884be", "score": "0.5818417", "text": "private void sleep() {\n\t}", "title": "" }, { "docid": "1035517b806779f3182318a0f4eb05fa", "score": "0.5782291", "text": "public static void handle(JDA jda){\n System.out.println(\"Shutting down...\");\n jda.shutdown();\n // YOUR CODE HERE\n\n\n // YOUR CODE SHOULD PROBABLY END HERE\n\n // NOTE: Code below this point is very sensitive to changes, and if you aren't careful, your bot will hang\n // indefinitely when you try to shut it down. I have tested this part rigorously, it probably works good enough\n // for your use case without any changes.\n int count = 0;\n try{\n // I set this to time out after 1000ms (100*10ms). From my testing, the slowest it has ever shutdown properly\n // was 120ms. I set it this high because I could see someone having a ping of over 300ms, and it doesn't really matter anyways.\n while(!shutdown && count < 100){\n count++;\n // I picked this because it had to be something, and this seems to be about the right amount of time to wait.\n // plus, nice round number.\n Thread.sleep(10);\n }\n }\n catch (InterruptedException e){\n // I have never seen this happen, but it shouldn't cause much of a problem anyways.\n System.out.println(\"Shutdown interrupted after \" + count + \" tries.\");\n return;\n }\n if(!shutdown){\n System.out.println(\"Shutdown process terminated after 1000ms elapsed.\");\n return;\n }\n System.out.println(\"Shutdown properly after \" + count + \" tries.\");\n }", "title": "" }, { "docid": "6e59ed99579dc50251cdc941ed6e9427", "score": "0.5780061", "text": "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tThread.sleep(30000);\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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\tr_cmd1.destroy();\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}", "title": "" }, { "docid": "75f19b289d72b18296aa6575dd3a02d5", "score": "0.57431334", "text": "public void sleep() {\n\t\t\r\n\t}", "title": "" }, { "docid": "15dc64fa1f741ae04a78a4cd6f67873e", "score": "0.5668633", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(50000);\n\t\t\t\t\tif(mams_id.length()==0 && !hasGone){\n\t\t\t\t\t\tshandler.sendEmptyMessageDelayed(7, 0);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "a976468a6507d9c5805916409a08d084", "score": "0.56155676", "text": "@Override\r\n\tpublic void sleep() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5882c7e1c4908625b7a43c88d783f492", "score": "0.557372", "text": "public void sleep() {\n\t\t\n\t}", "title": "" }, { "docid": "aae84a82e837b6c332fd305494530195", "score": "0.55736303", "text": "public void halt();", "title": "" }, { "docid": "aae84a82e837b6c332fd305494530195", "score": "0.55736303", "text": "public void halt();", "title": "" }, { "docid": "ea4df9db3dd74500201b56b639f611bc", "score": "0.5553657", "text": "@Override\n public boolean awaitUninterruptibly( long timeout, TimeUnit unit )\n {\n return false;\n }", "title": "" }, { "docid": "b543ade4112627a79597e5a5ab697e2d", "score": "0.5540758", "text": "@Override\r\n protected Void doInBackground(Void... nada) {\r\n try{\r\n \tThread.sleep(6000);\r\n }catch(Exception e){}\r\n return null;\r\n }", "title": "" }, { "docid": "4f17a81dc376419971cfe61da8eb8eca", "score": "0.55380356", "text": "@Override\n public void run() {\n\n long futureTime = System.currentTimeMillis()+10000;\n while(System.currentTimeMillis() <futureTime){\n synchronized (this) { // kdo vise thredova da ne skacu jedan dgugome\n try{\n wait(futureTime-System.currentTimeMillis());\n }catch (Exception e){}\n }\n }\n handler.sendEmptyMessage(0);//pozivamo handlera\n }", "title": "" }, { "docid": "4c158fc3f1894e44195d60df50d42d88", "score": "0.55376375", "text": "protected void sleep ()\n {\n }", "title": "" }, { "docid": "7c7c6123c3f87ff379e635bed0fa3f12", "score": "0.5530991", "text": "@Override\r\n\tpublic void run() {\n\t\t\twhile(count>0){\r\n\t\t\t\t\r\n\t\t\txiaoshou();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "cddedae0f7af661334f20bdcfe975027", "score": "0.55204844", "text": "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tisSureQuit = false;\r\n\t\t\t\t}", "title": "" }, { "docid": "0ac5e3e707341cfa84fc4bbfec051136", "score": "0.55066615", "text": "public final void bNh() {\n AppMethodBeat.i(43231);\n final uo uoVar = new uo();\n uoVar.cQJ.cQL = \"1\";\n uoVar.callback = new Runnable() {\n public final void run() {\n AppMethodBeat.i(43221);\n if (!bo.isNullOrNil(uoVar.cQK.cQM)) {\n e.a(MallIndexUI.this.omz, uoVar.cQK.cQM, uoVar.cQK.content, uoVar.cQK.url);\n }\n AppMethodBeat.o(43221);\n }\n };\n com.tencent.mm.sdk.b.a.xxA.m(uoVar);\n AppMethodBeat.o(43231);\n }", "title": "" }, { "docid": "3ccfb848c4c4587444ca592c6eeb5ee8", "score": "0.55062926", "text": "public void halt(){\n \tmech.set(0);\n }", "title": "" }, { "docid": "e3d12ff9fd08568d10c19ba73a94531c", "score": "0.55005354", "text": "@Override\n protected void takeDown() {\n // Imprimir un mensaje de despedida\n System.out.println(\"¡Que tenga buen día! Agente evaluador \"+getAID().getName()+\" fuera de servicio.\");\n }", "title": "" }, { "docid": "a2aea7e3fbbba395cfc122ccd9f9dda9", "score": "0.54941094", "text": "@Override\n public void doTimeOutWork() {\n this.exit();\n }", "title": "" }, { "docid": "0214a4901f0bd59b4113af202561849a", "score": "0.54916954", "text": "private void untilDone() { }", "title": "" }, { "docid": "22cc6359af8450326a4932538383a331", "score": "0.5481354", "text": "@Override\n public void run(){\n System.out.println(\"this is Adeamon\");\n try{\n Thread.sleep(3000);\n }catch(Exception e) {\n e.printStackTrace();\n }finally {\n System.out.println(\"thread deamon :3 second ,this is final\");\n }\n }", "title": "" }, { "docid": "6f9aecc26694f37cbeed7d75466c2a21", "score": "0.54683954", "text": "@Override\n\tpublic void sleep() {\n\t\tSystem.out.println(\"帅哥休息好以恢复精力和体力。\");\n\t}", "title": "" }, { "docid": "a0e4b019037f7570c0198e3401327b4f", "score": "0.54627043", "text": "public void l() {\n if (!this.n) {\n this.n = true;\n this.i.postDelayed(new Runnable() {\n public void run() {\n try {\n p.a(3, \"BaseVideoTracker\", (Object) this, \"Shutting down.\");\n c.this.p.a();\n c.this.m = null;\n } catch (Exception e) {\n m.a(e);\n }\n }\n }, 500);\n }\n }", "title": "" }, { "docid": "be3a3a32db747bdc1331c8dcd39d24d7", "score": "0.5453823", "text": "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "title": "" }, { "docid": "0fcbe755ad3e1cbdd99f6a496c164c37", "score": "0.5453767", "text": "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tvercodeSOPA();\r\n\t\t\t\t\thandler.sendEmptyMessage(0);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "eb0578c4db18c08c5800383f0f378d8b", "score": "0.5446118", "text": "protected void commPilotExpressBusy() {\r\n\r\n\t}", "title": "" }, { "docid": "d90b8096016e79f99ac731ed9527950d", "score": "0.54379934", "text": "public int runHang(PrintWriter pw) throws RemoteException {\n boolean allowRestart = false;\n while (true) {\n String opt = getNextOption();\n if (opt == null) {\n pw.println(\"Hanging the system...\");\n pw.flush();\n this.mInterface.hang(new Binder(), allowRestart);\n return 0;\n } else if (opt.equals(\"--allow-restart\")) {\n allowRestart = true;\n } else {\n PrintWriter errPrintWriter = getErrPrintWriter();\n errPrintWriter.println(\"Error: Unknown option: \" + opt);\n return -1;\n }\n }\n }", "title": "" }, { "docid": "46b6e97a5e13bf37ee38b3df624f4d9f", "score": "0.5436965", "text": "static /* synthetic */ void m53772mA(int i) {\n int i2 = 0;\n AppMethodBeat.m2504i(58615);\n C4990ab.m7416i(\"MicroMsg.MMAutoAuth\", \"cancel: netid=\".concat(String.valueOf(i)));\n if (i < 0) {\n C4990ab.m7412e(\"MicroMsg.MMAutoAuth\", \"error netid < 0, \".concat(String.valueOf(i)));\n AppMethodBeat.m2505o(58615);\n return;\n }\n C37973z anp = C1892aa.anp();\n C4990ab.m7416i(\"MicroMsg.MMNativeNetTaskAdapter\", \"stopTask netId=\".concat(String.valueOf(i)));\n if (i < 0 || i >= 100) {\n AppMethodBeat.m2505o(58615);\n return;\n }\n synchronized (anp.gdP) {\n try {\n if (anp.gdP[i] != null) {\n i2 = anp.gdP[i].taskId;\n }\n } finally {\n while (true) {\n }\n AppMethodBeat.m2505o(58615);\n }\n }\n if (i2 != 0) {\n StnLogic.stopTask(i2);\n }\n synchronized (anp.gdP) {\n try {\n if (anp.gdP[i] != null) {\n C4990ab.m7417i(\"MicroMsg.MMNativeNetTaskAdapter\", \"mmcgi stopTask outQueue: netId:%d hash:%d type:%d\", Integer.valueOf(i2), Integer.valueOf(anp.gdP[i].gdT.getType()), Integer.valueOf(anp.gdP[i].gdT.acO()));\n anp.gdP[i] = null;\n }\n } catch (RemoteException e) {\n C4990ab.m7413e(\"MicroMsg.MMNativeNetTaskAdapter\", \"exception:%s\", C5046bo.m7574l(e));\n } catch (Throwable th) {\n AppMethodBeat.m2505o(58615);\n }\n }\n }", "title": "" }, { "docid": "0e93e3ddcaf1f4bd0e82b5fca0438681", "score": "0.54364306", "text": "@Override\n\t\t\tpublic void doTimeOutWork()\n\t\t\t{\n\t\t\t\tthis.exit();\n\t\t\t}", "title": "" }, { "docid": "97ca3e55b1388eaf0d60355033ab0bf6", "score": "0.5425945", "text": "private void trick() {\n try {\n sleep(Node.trickTimeMillisec);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "298a8c940c97641eaf70824d9119fda7", "score": "0.5425596", "text": "public void runLongSimulation() {\n simulate(50);\n }", "title": "" }, { "docid": "aa6eb508041be10762559e5614724b3b", "score": "0.5413379", "text": "public static void main(String[] args) throws InterruptedException {\n\t\t\n\t\tSystem.out.println(\"Sabiha Gökçen Havaalanına Hoşgeldiniz...\");\n\t\tString kurallar = \"Yurt dışına çıkabilmek için aşağıdaki şartların hepsini sağlamanız gerekiyor \\n\"\n\t\t\t\t\t\t+ \" - çıkmak istediğiniz ülkeye ait vizenizin olması\\n\"\n\t\t\t\t\t\t+ \"- yurt dışı harcını 15 tl olarak yatırmanız \\n\"\n\t\t\t\t\t\t+ \"- Herhangi bir yurtdışına çıkış ile ilgili siyasi yasağınızın olmaması \\n\";\n\t\t\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tSystem.out.println(kurallar);\n\t\t\t\n\t\t\tYolcu yolcu = new Yolcu();\n\t\t\t\n\t\t\tSystem.out.println(\"yurtdışı harcınız kontrol ediliyor ...\");\n\t\t\tThread.sleep(3000);\n\t\t\t\n\t\t\tif(yolcu.yurtDisiHarciKontrol() == false) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"yurtdışı harcınız tam yatırılmamış... Seyehat edemezsiniz.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"vize durumunuz kontrol ediliyor ...\");\n\t\t\tThread.sleep(3000);\n\t\t\t\n\t\t\tif(yolcu.vizeDurumuKontrol() == false) {\n\t\t\t\tSystem.out.println(\"vizenizde problem var...Seyehat edemezsiniz.\");\n\t\t\t\tbreak; \n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\" yurtdışına çıkmakla ilgili bir siyasi yasağınız var mı kontrol ediliyor...\");\n\t\t\tThread.sleep(3000);\n\t\t\t\n\t\t\tif(yolcu.siyasiYasakKontrol() == false) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"yurtdışı yasağınız var ....Seyehat edemezsiniz.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"bütün işlemleriniz tamamdır. İyi yolculuklar...\");\n\t\t\tbreak;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "43d0e3be32679d42e8a75309cc2da49e", "score": "0.54060125", "text": "@Override\n\tpublic Boolean pendingData(Bundle arg) throws Exception\n\t{\n\t\tThread.sleep(500);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "12420f0af3b81c4cdf479b169e567324", "score": "0.5405404", "text": "@Override\n public void run() {\n unblock();\n }", "title": "" }, { "docid": "2f4192183e07a00ff6de5d7d2de3582c", "score": "0.540313", "text": "@Override\n public boolean awaitUninterruptibly( long timeoutMillis )\n {\n return false;\n }", "title": "" }, { "docid": "cb31381f9a1785c728634f6598bd5c35", "score": "0.5402018", "text": "public static void idle() {\n\t\tint cont = 0;\r\n\t\t// criar outro do while aqui com ACABOU\r\n\r\n\t\tdo {\r\n\t\t\treceberInfo();\r\n\t\t\tprintVisaoAgente(mapa);\r\n\t\t\tanalisar();\r\n\t\t\tprintMovimento(mapa);\r\n\t\t\tcont++;\r\n\t\t\tSystem.out.println(\"----------------------------------------------------------------------------\");\r\n\t\t\t// algo estrnaho aqui\r\n\t\t\tif (contSacos > 12 && contBaus >= 4 && achouPorta == true || contSacos > 12 && contBaus ==0 && achouPorta == true ) {\r\n\t\t\t\tSystem.out.println(\"Achou todos os sacos\");\r\n\t\t\t\tearlygame = true;\r\n\t\t\t}\r\n\t\t} while (!earlygame);\r\n\r\n\t\tSystem.out.println(\"Achou todos os sacos\");\r\n\r\n\t\tfor (int i = 0; i < dindin.size(); i++) {\r\n\t\t\tSystem.out.println(dindin.get(i).getQuantidadeMoeda());\r\n\t\t}\r\n\r\n\t\t// theAlgoritmoGen();\r\n\t\tstarAlg();\r\n\r\n\t}", "title": "" }, { "docid": "47c24ad1fa83c249a762ec676db11c11", "score": "0.54012966", "text": "public void Hilo()\n {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "59f1dbdea66d2e092b32f4f74ad9b108", "score": "0.5396829", "text": "private void simulateSlowService() { //线程延迟,模仿查询数据库\n try {\n long time = 3000L;\n Thread.sleep(time);\n } catch (InterruptedException e) {\n throw new IllegalStateException(e);\n }\n }", "title": "" }, { "docid": "dcdaa3f0af1c9764ccc04c01072189a6", "score": "0.53842366", "text": "@Override\n\t\tpublic void run() {\n\n\t\t\tif (xufuhe == -1) {\n\t\t\t\tManualCheckLoadActivity.METHOD = 0;\n\t\t\t\tBlue.send(\n\t\t\t\t\t\taltek.fnTaitiCeShiLeiXingPeiZhiCanshu(0, 0, Integer.valueOf(maichongchangshu),\n\t\t\t\t\t\t\t\tInteger.valueOf(maichongchangshu), meter_numbers, meter1_no, meter2_no, meter3_no),\n\t\t\t\t\t\thandler);\n\t\t\t\trecv_state = true;\n\t\t\t\txufuhe++;\n\t\t\t\ttest_state = false;\n\t\t\t}\n\n\t\t\tif (recv_state) {\n\t\t\t\tif (MissionSingleInstance.getSingleInstance().isYuan_state()) {\n\t\t\t\t\tif (x % 2 == 0) {\n\t\t\t\t\t\tif (shizhong_state == -1) {\n\t\t\t\t\t\t\tManualCheckLoadActivity.METHOD = 2;\n\t\t\t\t\t\t\tBlue.send(altek.fnTaitiCeShiLeiXingPeiZhiCanshu(2, 0, Integer.valueOf(maichongchangshu),\n\t\t\t\t\t\t\t\t\tInteger.valueOf(maichongchangshu), meter_numbers, meter1_no, meter2_no, meter3_no),\n\t\t\t\t\t\t\t\t\thandler);\n\t\t\t\t\t\t\tshizhong_state++;\n\t\t\t\t\t\t\trecv_state = false;\n\t\t\t\t\t\t\tsend_state = true;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tBlue.send(altek.fnGetFrameByFunctionCode((byte) 0x61), handler);\n\t\t\t\t\tx++;\n\t\t\t\t}\n\t\t\t} else if (send_state)// 执行一次后,执行查数据命令\n\t\t\t{\n\n\t\t\t\tBlue.send(altek.fnTaitiShuChu(Float.parseFloat(dianya), Float.parseFloat(dianliu), 0,\n\t\t\t\t\t\tFloat.parseFloat(jiaodu), Float.parseFloat(pinlv), 0, 0, 0, Integer.valueOf(quanshu),\n\t\t\t\t\t\tInteger.valueOf(cishu), Integer.valueOf(ceshishijian), 11, 0), handler);\n\t\t\t\tsend_state = false;\n\t\t\t\trecv_state = true;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "373d9bef69a49bd595cd06f2f8ba642a", "score": "0.53831476", "text": "@Override\n\tpublic void dealTimeOut() {\n\t\t\n\t}", "title": "" }, { "docid": "15d24b0141ca1b0ae7c9d5ef30240de0", "score": "0.53763825", "text": "public void halt() {\n\n }", "title": "" }, { "docid": "0e2da1b8418bb52bb534b51e33484d36", "score": "0.53733414", "text": "private void g() {\n int n10;\n int n11;\n Object object = com.xiaomi.clientreport.manager.a.a(this.a).a();\n boolean bl2 = ((Config)object).isPerfUploadSwitchOpen();\n if (!bl2) {\n return;\n }\n Object object2 = this.a;\n object = new bh((Context)object2);\n object2 = com.xiaomi.clientreport.manager.a.a(this.a).a();\n long l10 = ((Config)object2).getPerfUploadFrequency();\n int n12 = (int)l10;\n if (n12 < (n11 = 1800)) {\n n12 = n11;\n }\n Object object3 = bm.a(this.a);\n Object object4 = \"sp_client_report_status\";\n String string2 = \"perf_last_upload_time\";\n long l11 = 0L;\n long l12 = ((bm)object3).a((String)object4, string2, l11);\n long l13 = System.currentTimeMillis() - l12;\n long l14 = l13 - (l12 = (long)(n12 * 1000));\n n11 = (int)(l14 == 0L ? 0 : (l14 < 0L ? -1 : 1));\n if (n11 > 0) {\n object3 = ai.a(this.a);\n object4 = new i(this, (bh)object);\n n10 = 15;\n ((ai)object3).a((Runnable)object4, n10);\n }\n object3 = a.class;\n synchronized (object3) {\n object4 = this.a;\n object4 = ai.a((Context)object4);\n boolean bl3 = ((ai)object4).a((ai$a)object, n12);\n if (!bl3) {\n object4 = this.a;\n object4 = ai.a((Context)object4);\n n10 = 100887;\n ((ai)object4).a(n10);\n object4 = this.a;\n object4 = ai.a((Context)object4);\n ((ai)object4).a((ai$a)object, n12);\n }\n return;\n }\n }", "title": "" }, { "docid": "dcc28971994aec76d6b3f57396330d77", "score": "0.5357847", "text": "@Override\n public void digerirAlimento() {\n suicidarse();\n }", "title": "" }, { "docid": "998ba89b064f47fb2e4a7b2c48bbec1a", "score": "0.53565454", "text": "public final void run() {\n try {\n Process.setThreadPriority(10);\n Thread.sleep(20000);\n int intParam = SysParamEntityManager.getIntParam(Constant.getContext(), Constant.ONLINE_UPDATE_SDK);\n KeyManager.initAppKey();\n if (\"5Mj22a4wHUAWEICARD\".equals(KeyManager.channel) && intParam == 0) {\n a = false;\n }\n if (NetUtil.checkAccessNetWork(2)) {\n a(true, true);\n if (intParam != 0) {\n E.a(H.UPDATE_PUBINFO);\n g.b();\n }\n }\n a = false;\n } catch (Throwable th) {\n a = false;\n }\n }", "title": "" }, { "docid": "2cfe38a2ffac2d5aeb0a1d65f48c774a", "score": "0.5329726", "text": "@Override\n protected boolean exec()\n {\n return false;\n }", "title": "" }, { "docid": "11639b7998307186c8d6f23b98d9b52d", "score": "0.5329648", "text": "Executor mo6648a();", "title": "" }, { "docid": "b889fac0791bcb4810de9ad43e064400", "score": "0.53291136", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tpointerUpAgain();\n\t\t\t\t\t}", "title": "" }, { "docid": "591a2d9883b2e5699fd6b7544010aec5", "score": "0.53246695", "text": "Executor mo6650b();", "title": "" }, { "docid": "96bd5078b1f3464e107a4c1f2b96f99c", "score": "0.53217596", "text": "public static void doDefault() throws Throwable {\n\t\twhile (true) Thread.sleep(1000 * 10);\n\t}", "title": "" }, { "docid": "ed6c3808380ff414490a67b0d386e589", "score": "0.5321639", "text": "public void mainExperimentNone(){\n while(running){\n try {\n Thread.sleep(250);\n \n // suspend pause \n this.waitSuspended();\n } catch (InterruptedException ex) {\n log.error(\"Cannot sleep\", ex);\n }\n }\n }", "title": "" }, { "docid": "f5048ece095d2ce855ed05f07f66f980", "score": "0.532087", "text": "protected void onOptOut() {}", "title": "" }, { "docid": "92e34a77b692f3fdda4dfeb3bcb33dca", "score": "0.5318567", "text": "void suspiciousInfluencers() throws InterruptedException;", "title": "" }, { "docid": "85269112373303d64fd476985ef104d0", "score": "0.5313619", "text": "public static void main(String[] args) {\n System.out.println(System.currentTimeMillis());\n long start = System.currentTimeMillis();\n long end = start+10*1000;\n while (System.currentTimeMillis()<end)\n {\n System.out.println(\"if niggers werent slave, they were probably dead\");\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n }", "title": "" }, { "docid": "ce46184ed778d8bd806a4472ce4cb632", "score": "0.5306745", "text": "public void mo59507e() {\n setResult(-1);\n finish();\n }", "title": "" }, { "docid": "8756d7715cbd3c3f2e1716a7f1afa1a3", "score": "0.53025216", "text": "public void killGetThread() {\n \tdownloadBin.running = false;\n }", "title": "" }, { "docid": "84c401a58bd1d658700f8406c3ecae69", "score": "0.52956295", "text": "private static synchronized void contend() {\n LockSupport.parkNanos(1000);\n }", "title": "" }, { "docid": "844af875f9b5666173ebd37efabc5b2f", "score": "0.5289351", "text": "private void timeout()\n {\n }", "title": "" }, { "docid": "d5dabdb5b96325d53f8343fd20b6f371", "score": "0.5289252", "text": "@Override\n public void run() {\n\n\n new PeilvAsyncTask().execute();\n if(!exit){\n handler.postDelayed(this,5000);\n }\n }", "title": "" }, { "docid": "7f00c40b069f85cb4aaf5459238a6caf", "score": "0.5286436", "text": "@Override\r\n\tpublic boolean exe_finish(int reason) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c86488011eedebc9e8cc9a1bb2452591", "score": "0.5284351", "text": "private void useAntiLockBrakes() {\n\t\t// code that sends a signal to anti-lock brakes\n\t}", "title": "" }, { "docid": "2b1aec126d3be6220925b5d0863ce1b4", "score": "0.5277074", "text": "public void run() {\n\t\t\ttry {\n\t\t\t\tint i=0;\n\t\t\t\thandshake = \"Initial\" + \":\" + portStr;\n\t\t\t\tportno = Integer.parseInt(base1) * 2;\n\t\t\t\tint indexofsucc=tempList1.indexOf(portStr);\n\t\t\t\tLog.d(\"index of succ is \",\"\"+indexofsucc);\n\t\t\t\tint flagcurr = send_data_with(Integer.parseInt(tempList1.get((indexofsucc+1)%5).toString())*2, handshake);\n\t\t\t\tLog.d(\"flag is \",\"\"+flagcurr);\n\t\t\t\tif(flagcurr==1){\n\t\t\t\t\tif(getquorum!=null){\n\t\t\t\t\t\tString revdrecovery[] = getquorum.split(\":\");\n\t\t\t\t\t\tLog.d(\"value is \",revdrecovery[0]);\n\t\t\t\t\t\twhile(!revdrecovery[i].equals(\"stop\")){\n\t\t\t\t\t\t\tLog.d(\"value is \",revdrecovery[0]);\n\t\t\t\t\t\t\tgetkey=revdrecovery[i].split(\",\");\n\t\t\t\t\t\t\taddtoCP(getkey[0],getkey[1]);\n\t\t\t\t\t\t\tLog.d(\"key is\",getkey[0]);\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti=0;\n\t\t\t\tindexofsucc=indexofsucc-1;\n\t\t\t\tif(indexofsucc<0){\n\t\t\t\t\tindexofsucc=4;\n\t\t\t\t}\n\t\t\t\tLog.d(\"index of pred is\",\":\"+tempList1.get(indexofsucc));\n\t\t\t\tint flagcu = send_data_with(Integer.parseInt(tempList1.get((indexofsucc)%5).toString())*2, handshake);\n\t\t\t\tLog.d(\"flag is \",\"\"+flagcurr);\n\t\t\t\tif(flagcu==1){\n\t\t\t\t\tif(getquorum!=null){\n\t\t\t\t\t\tString revdrecovery1[] = getquorum.split(\":\");\n\t\t\t\t\t\tLog.d(\"value is \",revdrecovery1[0]);\n\t\t\t\t\t\twhile(!revdrecovery1[i].equals(\"stop\")){\n\t\t\t\t\t\t\tLog.d(\"value is \",revdrecovery1[0]);\n\t\t\t\t\t\t\tgetkey1=revdrecovery1[i].split(\",\");\n\t\t\t\t\t\t\taddtoCP(getkey1[0],getkey1[1]);\n\t\t\t\t\t\t\tLog.d(\"key is\",getkey1[0]);\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a908be1c20e30cf2dd6863ae68f00512", "score": "0.5276919", "text": "public void sendPoisonPill() {\n execAsync( state -> askExit());\n }", "title": "" }, { "docid": "6b8acc141eb63106ba2a732a8e52a1dd", "score": "0.5273793", "text": "public void mo78648c() {\n cancel();\n purge();\n }", "title": "" }, { "docid": "e6516f14052f01156bdb9013f4c26124", "score": "0.5264861", "text": "public synchronized void sendFullJobs() {\n\t\tsend(\"The server is busy, try again later\");\n\t}", "title": "" }, { "docid": "318a57c8836a4789a4e6c210a8e26f46", "score": "0.52648485", "text": "public void stoptimertask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "title": "" }, { "docid": "318a57c8836a4789a4e6c210a8e26f46", "score": "0.52648485", "text": "public void stoptimertask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "title": "" }, { "docid": "318a57c8836a4789a4e6c210a8e26f46", "score": "0.52648485", "text": "public void stoptimertask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "title": "" }, { "docid": "318a57c8836a4789a4e6c210a8e26f46", "score": "0.52648485", "text": "public void stoptimertask() {\n if (timer != null) {\n timer.cancel();\n timer = null;\n }\n }", "title": "" }, { "docid": "c4980c3cf3f98d395926748eaeb36c41", "score": "0.5264438", "text": "private void waitForStartSignal() {\n\t\t\n\t}", "title": "" }, { "docid": "b3f647c23bbee395f61c7b841e0302f4", "score": "0.52644366", "text": "@SuppressWarnings(\"unused\")\r\n\tprivate void process(MACEvent wuc) {\r\n\t\tboolean res = false; // +++++++++++++ this.trySend(5); // #5#\r\n\r\n\t\tif (res) {\r\n\t\t\tif (LOGGER.isDebugEnabled()) {\r\n\t\t\t\tLOGGER.debug(\"successfully initiate the delayed trySend()\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5e64292fb57d0cd94959ab8114a320bc", "score": "0.526292", "text": "public final void run() {\n int type;\n int i;\n Throwable e;\n String KM;\n z VR = aa.VR();\n int i2 = this.ibp;\n int i3 = this.fma;\n int i4 = this.fmb;\n int i5 = -1;\n synchronized (VR.iaF) {\n int iS = VR.iS(i2);\n if (-1 == iS) {\n x.e(\"MicroMsg.MMNativeNetTaskAdapter\", \"mmcgi onGYNetEnd GET FROM QUEUE failed. native:[%d,%d] taskId:%d \", new Object[]{Integer.valueOf(i3), Integer.valueOf(i4), Integer.valueOf(i2)});\n return;\n }\n int KN;\n int i6;\n t VQ;\n h KJ;\n int i7 = 0;\n switch (i3) {\n case 0:\n i7 = 0;\n break;\n case 1:\n i7 = 2;\n break;\n case 2:\n i7 = 2;\n break;\n case 3:\n i7 = 1;\n break;\n case 4:\n i7 = 1;\n break;\n case 5:\n i7 = 1;\n break;\n case 6:\n i7 = 1;\n break;\n case 7:\n if (-3002 != i4 && -3003 != i4) {\n if (-10001 != i4) {\n i7 = 5;\n break;\n } else {\n i7 = 6;\n break;\n }\n }\n i7 = 4;\n break;\n break;\n case 8:\n i7 = 4;\n break;\n case 9:\n i7 = 1;\n break;\n default:\n x.f(\"MicroMsg.MMNativeNetTaskAdapter\", \"c2JavaErrorType not exits c_errType:%d\", new Object[]{Integer.valueOf(i3)});\n break;\n }\n if (i7 == 0) {\n i4 = 0;\n }\n if (i7 == 3) {\n i4 = -1;\n }\n if (!aa.VM().iaX && i7 == 1) {\n x.i(\"MicroMsg.MMNativeNetTaskAdapter\", \"network not available\");\n i7 = 2;\n i4 = -1;\n }\n r rVar = VR.iaF[iS].iaJ;\n l lVar = VR.iaF[iS].iaK;\n long j = VR.iaF[iS].startTime;\n VR.iaF[iS] = null;\n if (i7 == 0) {\n try {\n if (rVar.KJ().KN() != 0) {\n KN = rVar.KJ().KN();\n i6 = 4;\n type = rVar.getType();\n try {\n VQ = aa.VQ();\n byte[] Ks = rVar.KJ().Ks();\n try {\n x.d(\"MicroMsg.AutoAuth\", \"summerauth onGYNetEnd threadId: 0\" + \" errType: \" + i6 + \" errCode: \" + KN + \" errMsg: \" + null + \" rr: \" + rVar + \" type: \" + rVar.getType() + \" netIdGetCertBeforeAutoAuth: \" + VQ.hZO);\n if (KN != 0) {\n VQ.hZF++;\n } else if (rVar.getType() != 10) {\n VQ.hZF = 0;\n }\n KJ = rVar.KJ();\n switch (rVar.getType()) {\n case 126:\n case 701:\n case 702:\n x.i(\"MicroMsg.AutoAuth\", \"summerauth end type: %d, ret:[%d,%d][%s]\", new Object[]{Integer.valueOf(rVar.getType()), Integer.valueOf(i6), Integer.valueOf(KN), null});\n if (KJ.KN() == 0 || i6 != 0 || KN != 0) {\n if (rVar.getType() != 126) {\n switch (KN) {\n case -213:\n case -205:\n case -100:\n ac.getContext().getSharedPreferences(\"auth_hold_prefs\", 0).edit().putBoolean(\"auth_ishold\", true).commit();\n if (KN == -213) {\n if (KN == -100) {\n if (KN == -205) {\n d.pPH.a(148, 33, 1, false);\n break;\n }\n }\n d.pPH.a(148, 32, 1, false);\n break;\n }\n d.pPH.a(148, 31, 1, false);\n break;\n break;\n default:\n break;\n }\n }\n x.e(\"MicroMsg.AutoAuth\", \"net.end: reg err: type=\" + rVar.getType() + \" err=\" + i6 + \",\" + KN + \" errmsg=\" + null);\n break;\n }\n x.i(\"MicroMsg.AutoAuth\", \"summerauth accinfo doAuthEnd type:%d, ret:%d loginDecodeFailedTry:%d\", new Object[]{Integer.valueOf(rVar.getType()), Integer.valueOf(rVar.KK()), Integer.valueOf(VQ.hNB)});\n byte[] KO;\n if (rVar.KK() == 2) {\n if (rVar.getType() == 702) {\n d.pPH.a(148, 34, 1, false);\n VQ.hNB++;\n if (VQ.hNB <= 1) {\n i4 = KJ.Cg();\n KO = KJ.KO();\n if (VQ.g(bh.bw(KO) ? \"\" : bh.by(KO), bh.bw(Ks) ? \"\" : bh.by(Ks), i4)) {\n VQ.hZK.hnJ = Ks;\n } else {\n x.w(\"MicroMsg.AutoAuth\", \"summerauth save serverid aak failed 1\");\n }\n rVar.a(VQ.hZL, 0, 0);\n break;\n }\n x.w(\"MicroMsg.AutoAuth\", \"summerauth loginDecodeFailedTry beyond 1 no more try!\");\n VQ.d(i6, KN, \"auth_decode_failed_\" + bh.az(null, \"\"));\n break;\n }\n }\n VQ.hNB = 0;\n x.i(\"MicroMsg.AutoAuth\", \"summerauth accinfo %d: username:%s, wxusername:%s, ticket:%s, session:%s, uin:%d\", new Object[]{Integer.valueOf(rVar.getType()), rVar.KI().getUserName(), KJ.KS(), bh.VT(bh.bv(KJ.KO())), bh.VT(bh.bv(KJ.CF())), Integer.valueOf(KJ.Cg())});\n i7 = KJ.Cg();\n KO = KJ.KO();\n if (VQ.g(bh.bw(KO) ? \"\" : bh.by(KO), bh.bw(Ks) ? \"\" : bh.by(Ks), i7)) {\n VQ.hZK.hnJ = Ks;\n VQ.hZK.username = r5.getUserName();\n VQ.hZK.hZv = KJ.KS();\n VQ.hZK.v(KJ.CF(), KJ.Cg());\n VQ.hZK.hZu = KJ.Ku();\n o.getString(KJ.Cg());\n } else {\n d.pPH.a(148, 35, 1, false);\n x.w(\"MicroMsg.AutoAuth\", \"summerauth save serverid aak failed 2\");\n }\n x.i(\"MicroMsg.AutoAuth\", \"summerauth decode and save ok!\");\n break;\n break;\n case 381:\n if (i6 == 0 && KN == 0) {\n com.tencent.mm.protocal.ac.F(rVar.KJ().KP(), rVar.KJ().KQ(), rVar.KJ().KR());\n VQ.hZN = SystemClock.elapsedRealtime();\n }\n if (r.idt == 10003 || r.idu <= 0) {\n i = KN;\n i5 = i6;\n } else {\n if (r.idu <= 1) {\n r.idu = 0;\n }\n i5 = 4;\n i = 0;\n com.tencent.mm.protocal.ac.F(\"\", \"\", 0);\n }\n if (VQ.hZO != -1) {\n if (i5 == 0 && r3 == 0) {\n VQ.a(rVar, 0, 0);\n }\n VQ.hZO = -1;\n break;\n }\n break;\n }\n } catch (Throwable e2) {\n x.printErrStackTrace(\"MicroMsg.AutoAuth\", e2, \"summerauth save serverid aak failed 2 cookie:\" + bh.by(Ks), new Object[0]);\n x.cfk();\n throw e2;\n } catch (Throwable e22) {\n x.printErrStackTrace(\"MicroMsg.AutoAuth\", e22, \"summerauth save serverid aak failed 1 cookie:\" + bh.by(Ks), new Object[0]);\n x.cfk();\n throw e22;\n } catch (Throwable e222) {\n x.e(\"MicroMsg.AutoAuth\", \"exception:%s\", new Object[]{bh.i(e222)});\n }\n i = rVar.Kh();\n i4 = KN;\n i5 = i6;\n } catch (RemoteException e3) {\n e222 = e3;\n i5 = type;\n i4 = KN;\n i7 = i6;\n x.e(\"MicroMsg.MMNativeNetTaskAdapter\", \"exception:%s taskid:%d\", new Object[]{bh.i(e222), Integer.valueOf(i2)});\n i = 0;\n type = i5;\n i5 = i7;\n x.i(\"MicroMsg.MMNativeNetTaskAdapter\", \"mmcgi onTaskEnd type:%d time:%d hash[%d,%d] [%d,%d]\", new Object[]{Integer.valueOf(type), Long.valueOf(bh.bz(j)), Integer.valueOf(i2), Integer.valueOf(i), Integer.valueOf(i5), Integer.valueOf(i4)});\n if (4 == i5 && (-1 == i4 || -2 == i4 || -24 == i4 || -34 == i4)) {\n aa.VO().post(new 1(VR, type, i4));\n }\n try {\n KM = rVar.KJ().KM();\n if (KM != null || KM.length() <= 0) {\n lVar.a(iS, i5, i4, null, rVar, rVar.KJ().Ks());\n } else {\n lVar.a(iS, i5, i4, KM, rVar, rVar.KJ().Ks());\n return;\n }\n } catch (Throwable e4) {\n x.e(\"MicroMsg.MMNativeNetTaskAdapter\", \"onGYNetEnd cb %s\", new Object[]{e4.getMessage()});\n x.e(\"MicroMsg.MMNativeNetTaskAdapter\", \"exception:%s taskid:%d\", new Object[]{bh.i(e4), Integer.valueOf(i2)});\n return;\n }\n }\n }\n } catch (RemoteException e5) {\n e222 = e5;\n x.e(\"MicroMsg.MMNativeNetTaskAdapter\", \"exception:%s taskid:%d\", new Object[]{bh.i(e222), Integer.valueOf(i2)});\n i = 0;\n type = i5;\n i5 = i7;\n x.i(\"MicroMsg.MMNativeNetTaskAdapter\", \"mmcgi onTaskEnd type:%d time:%d hash[%d,%d] [%d,%d]\", new Object[]{Integer.valueOf(type), Long.valueOf(bh.bz(j)), Integer.valueOf(i2), Integer.valueOf(i), Integer.valueOf(i5), Integer.valueOf(i4)});\n aa.VO().post(new 1(VR, type, i4));\n KM = rVar.KJ().KM();\n if (KM != null) {\n }\n lVar.a(iS, i5, i4, null, rVar, rVar.KJ().Ks());\n }\n }\n KN = i4;\n i6 = i7;\n try {\n type = rVar.getType();\n VQ = aa.VQ();\n byte[] Ks2 = rVar.KJ().Ks();\n x.d(\"MicroMsg.AutoAuth\", \"summerauth onGYNetEnd threadId: 0\" + \" errType: \" + i6 + \" errCode: \" + KN + \" errMsg: \" + null + \" rr: \" + rVar + \" type: \" + rVar.getType() + \" netIdGetCertBeforeAutoAuth: \" + VQ.hZO);\n if (KN != 0) {\n VQ.hZF++;\n } else if (rVar.getType() != 10) {\n VQ.hZF = 0;\n }\n KJ = rVar.KJ();\n switch (rVar.getType()) {\n case 126:\n case 701:\n case 702:\n x.i(\"MicroMsg.AutoAuth\", \"summerauth end type: %d, ret:[%d,%d][%s]\", new Object[]{Integer.valueOf(rVar.getType()), Integer.valueOf(i6), Integer.valueOf(KN), null});\n if (KJ.KN() == 0) {\n }\n if (rVar.getType() != 126) {\n x.e(\"MicroMsg.AutoAuth\", \"net.end: reg err: type=\" + rVar.getType() + \" err=\" + i6 + \",\" + KN + \" errmsg=\" + null);\n break;\n }\n switch (KN) {\n case -213:\n case -205:\n case -100:\n ac.getContext().getSharedPreferences(\"auth_hold_prefs\", 0).edit().putBoolean(\"auth_ishold\", true).commit();\n if (KN == -213) {\n if (KN == -100) {\n if (KN == -205) {\n d.pPH.a(148, 33, 1, false);\n break;\n }\n }\n d.pPH.a(148, 32, 1, false);\n break;\n }\n d.pPH.a(148, 31, 1, false);\n break;\n break;\n default:\n break;\n }\n break;\n case 381:\n com.tencent.mm.protocal.ac.F(rVar.KJ().KP(), rVar.KJ().KQ(), rVar.KJ().KR());\n VQ.hZN = SystemClock.elapsedRealtime();\n if (r.idt == 10003) {\n break;\n }\n i = KN;\n i5 = i6;\n if (VQ.hZO != -1) {\n VQ.a(rVar, 0, 0);\n VQ.hZO = -1;\n break;\n }\n break;\n }\n i = rVar.Kh();\n i4 = KN;\n i5 = i6;\n } catch (RemoteException e6) {\n e222 = e6;\n i4 = KN;\n i7 = i6;\n x.e(\"MicroMsg.MMNativeNetTaskAdapter\", \"exception:%s taskid:%d\", new Object[]{bh.i(e222), Integer.valueOf(i2)});\n i = 0;\n type = i5;\n i5 = i7;\n x.i(\"MicroMsg.MMNativeNetTaskAdapter\", \"mmcgi onTaskEnd type:%d time:%d hash[%d,%d] [%d,%d]\", new Object[]{Integer.valueOf(type), Long.valueOf(bh.bz(j)), Integer.valueOf(i2), Integer.valueOf(i), Integer.valueOf(i5), Integer.valueOf(i4)});\n aa.VO().post(new 1(VR, type, i4));\n KM = rVar.KJ().KM();\n if (KM != null) {\n }\n lVar.a(iS, i5, i4, null, rVar, rVar.KJ().Ks());\n }\n }\n }", "title": "" }, { "docid": "65239f6062c6e0a3e706722e10512285", "score": "0.5260065", "text": "void ExitDaq_Action () {\n info_text.setText(\" \");\n\u0001D 22\n mySysExe.run_unix(\"recover\");\n info_text.setText(\"Command sent\" + \" KUKU GRINIA\");\n\u0001E 22\n\u0001I 22\n mySysExe.run_unix(\"daq_exit\");\n info_text.setText(\"Command sent\" + \" Your name will be reported...\");\n\u0001E 22\n}\n\n void ExitRocs_Action () {\n info_text.setText(\" \");\n// mySysExe.run_unix(\"close_roc_terms\");\n\t // info_text.setText(\"Command sent\");\n}\n\n void RebootRocs_Action () {\n info_text.setText(\" \");\n\u0001D 22\n // mySysExe.run_unix(\"reboot_all\");\n\u0001E 22\n\u0001I 22\n mySysExe.run_unix(\"reboot_all\");\n\u0001E 22\n\t // info_text.setText(\"Command sent\");\n}\n\n void Recover_Action () {\n\u0001I 22\n DataPool.daq_recover_clicked = 1;\n\u0001E 22\n info_text.setText(\" \");\n\u0001D 22\n mySysExe.run_unix(\"recover\");\n info_text.setText(\"Command sent\");\n // mySysExe.run_unix(\"close_roc_terms\");\n // info_text.setText(\"Command sent\");\n // mySysExe.run_unix(\"open_roc_terms\");\n // info_text.setText(\"Command sent\");\n\ttry {\n\tThread.sleep(30000);\n\t} catch (InterruptedException e) {\n\t System.out.println(\"interruped exception: \" +e);\n\t}\n\n mySysExe.run_unix(\"et_daqtlc.sh\");\n info_text.setText(\"Command sent\");\n\u0001E 22\n\u0001I 22\n mySysExe.run_unix(\"daq_recover\");\n info_text.setText(\"Daq_recover process is in progress. Please wait.\");\n\u0001E 22\n}\n\n void daq_recover_Action () {\n\u0001I 22\n DataPool.daq_recover_clicked = 1;\n\u0001E 22\n info_text.setText(\" \");\n\u0001D 19\n mySysExe.run_unix(\"recover\");\n info_text.setText(\"Command sent\");\n\u0001E 19\n\u0001I 19\n\u0001D 20\n mySysExe.run_unix(\"daq_recover\");\n\u0001E 20\n\u0001I 20\n mySysExe.run_unix(\"daq_recover\");\n\u0001E 20\n info_text.setText(\"Daq_recover process is in progress. Please wait.\");\n\u0001E 19\n\u0001D 20\n // mySysExe.run_unix(\"close_roc_terms\");\n // info_text.setText(\"Command sent\");\n // mySysExe.run_unix(\"open_roc_terms\");\n // info_text.setText(\"Command sent\");\n\u0001D 19\n\ttry {\n\u0001E 19\n\u0001I 19\n /*\ttry {\n\u0001E 19\n\tThread.sleep(30000);\n\u0001E 20\n\u0001I 20\n\u0001D 22\n \n\u0001E 22\n\u0001I 22\n\n\u0001E 22\n /*\n // Start progress bar\n pm = new ProgressMonitor(container, \"DAQ recovery process is in progress...\", \"Note: Please wait until Runcontrol GUI is up.\", 0, 100);\n pm.setMaximum(DataPool.MaxProgress);\n pm.setMillisToPopup(5000);\n progressCount = 0;\n pm.setProgress(progressCount+=DataPool.ProgressStep);\n //if( (pm!=null) && (pm.isCanceled()==false)) pm.setProgress(progressCount+=DataPool.ProgressStep);\n for(int l=51; l<900;l++){\t\n\ttry {\n\tThread.sleep(3000);\n\u0001E 20\n\t} catch (InterruptedException e) {\n\t System.out.println(\"interruped exception: \" +e);\n\t}\n\u0001D 20\n\n mySysExe.run_unix(\"et_daqtlc.sh\");\n info_text.setText(\"Command sent\");\n\u0001I 19\n */\n\u0001E 20\n\u0001I 20\n\tif( (pm!=null) && (pm.isCanceled()==false)) pm.setProgress(l);\t\n */\n\u0001E 20\n\u0001E 19\n\ttry {\n\u0001D 20\n\tThread.sleep(60000);\n\u0001E 20\n\u0001I 20\n\u0001D 21\n\tThread.sleep(120000);\n\u0001E 21\n\u0001I 21\n\u0001D 22\n\tThread.sleep(30000);\n\u0001E 22\n\u0001I 22\n\tThread.sleep(40000);\n\u0001E 22\n\u0001E 21\n\u0001E 20\n\t} catch (InterruptedException e) {\n\t System.out.println(\"interruped exception: \" +e);\n\t}\n\u0001D 20\n\t\tdaq_recover.setForeground(new Color(0)); \n\t\tdaq_recover.setBackground(new Color(-3355444)); \n\t daq_recover.setEnabled(false);\n\u0001E 20\n\u0001I 20\n\t \n\u0001D 22\n daq_recover.setForeground(new Color(0)); \n daq_recover.setBackground(new Color(-3355444)); \n\u0001E 22\n\u0001I 22\n\t// daq_recover.setForeground(new Color(0)); \n\t// daq_recover.setBackground(new Color(-3355444)); \n\u0001E 22\n daq_recover.setEnabled(false);\n\u0001D 22\n\t\n\u0001E 20\n\n\u0001E 22\n\u0001D 20\n}\n\u0001E 20\n\u0001I 20\n }\n\u0001E 20\n\n\u0001I 20\n\n\u0001E 20\n void online_recover_Action () {\n info_text.setText(\"Online Auto recovery\");\n\n DataPool.auto_recover = 0; \n\u0001D 23\n mySysExe.run_unix(\"recover_online\");\n\u0001E 23\n\u0001I 23\n mySysExe.run_unix(\"mon2_recover\");\n\u0001E 23\n\u0001I 6\n\ttry {\n\u0001D 7\n\tThread.sleep(7000);\n\t} catch (InterruptedException e) {\n\t System.out.println(\"interruped exception: \" +e);\n\t}\n\n\u0001E 6\n\u0001I 5\n mySysExe.run_unix(\"prtr_exit\");\n\u0001E 5\n\u0001I 4\n mySysExe.run_unix(\"et_prtr.sh\");\n\u0001E 4\n\ttry {\n\u0001E 7\n\tThread.sleep(30000);\n\t} catch (InterruptedException e) {\n\t System.out.println(\"interruped exception: \" +e);\n\t}\n\tDataPool.auto_recover = 1;\n\t\tonline_recover.setForeground(new Color(0)); \n\t\tonline_recover.setBackground(new Color(-3355444)); \n\t online_recover.setEnabled(false);\n\n}\n\n\n\n\n\n\n\n\tvoid miAbout_Action(java.awt.event.ActionEvent event) \n\t{ \n\t \t System.out.println(\"KUKU\");\n\t\t//{{CONNECTION \n\n\t\t// Action from About Create and show as modal \n\t\t //(new AboutDialog(this, true)).setVisible(true); \n\t\t//}} \n\t} \n\t \n\tvoid miExit_Action(java.awt.event.ActionEvent event) \n\t{ \n\t\t//{{CONNECTION \n\t\t// Action from Exit Create and show as modal \n\t (new QuitDialog(this, true)).setVisible(true); \n\t\t//}} \n\t} \n\t \n\tvoid miOpen_Action(java.awt.event.ActionEvent event) \n\t{ \n\t\t//{{CONNECTION \n\t\t// Action from Open... Show the OpenFileDialog \n\t\tint\t\tdefMode\t\t\t= openFileDialog1.getMode(); \n\t\tString\tdefTitle\t\t= openFileDialog1.getTitle(); \n\t\tString defDirectory\t= openFileDialog1.getDirectory(); \n\t\tString defFile\t\t\t= openFileDialog1.getFile(); \n \n\t\topenFileDialog1 = new java.awt.FileDialog(this, defTitle, defMode); \n\t\topenFileDialog1.setDirectory(defDirectory); \n\t\topenFileDialog1.setFile(defFile); \n\t\topenFileDialog1.setVisible(true); \n\t\t//}} \n\t} \n\n\n\n}", "title": "" }, { "docid": "154cc72b1f3822c59c489e12fc61a834", "score": "0.52527755", "text": "private void doSurpriseYay() {\n importantList.clear();\n indexMatch.clear();\n splitIncompleteList(controlCenter.getIncompleteTasks(), true);\n displayStatus = ListStatus.INCOMPLETE;\n switchTabSkin();\n listMain.scrollTo(highLightIndex);\n relayFb(Constants.CMD_SUCCESS_SURPRISED_YAY, MsgType.SUCCESS);\n }", "title": "" }, { "docid": "df054049d8ed9eb1de0e5b530199063c", "score": "0.52405816", "text": "public final void mo59508g() {\n setResult(0);\n finish();\n }", "title": "" }, { "docid": "a0d28fc9a11c15ff9ddcc4784d0295fd", "score": "0.52379584", "text": "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\thandler.sendEmptyMessage(2);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "title": "" }, { "docid": "ec61b4a7acb59991e8579f0b734f8b61", "score": "0.5237593", "text": "@Override\n\tpublic void abandon() {\n\t}", "title": "" }, { "docid": "6429801e43cbd16cf4936027d4819312", "score": "0.52315074", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tpointerDownAgain();\n\t\t\t\t\t}", "title": "" }, { "docid": "c737f3b81c4a3b54384045040c619b0e", "score": "0.52304363", "text": "@Test\n\tpublic void test() throws Exception {\n\t\twhile (true) {\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "9d3229624f399b987cd721f053478300", "score": "0.52271295", "text": "void awakenAll();", "title": "" }, { "docid": "84ca65f3f3db574f0f36e9c82cba248f", "score": "0.5222368", "text": "protected void execute() {\n \tSubsystems.INTAKE_SUBSYSTEM.intakeFB(Intake);\n \tSubsystems.INTAKE_SUBSYSTEM.lowerIntakeArm(!Lower, Lower);\n \tEnd = System.currentTimeMillis();\n }", "title": "" }, { "docid": "37bc04e9b843b2bdf087ab34eab84be8", "score": "0.5220168", "text": "@Override\n\tpublic void signalBroken(BrokenDA bda) {\n\t\t// SKIP\n\t}", "title": "" }, { "docid": "1c968a604a9a4482e75c2a868f4fc4fb", "score": "0.5219915", "text": "public static void main(String[] args) throws InterruptedException {\n\t\twhile(true) {\r\n\t\t\tlong lg = new Date().getTime();\r\n\t\t\tThread.sleep(50);\r\n\t\t\tbyte[] bt = Udp.send(\"172.28.13.5\", 50000,\"A026\",\"\"); \r\n\t\t\tif(bt!=null) { \r\n\t\t\t\t//System.out.println(new String(bt));\r\n\t\t\t\tSystem.out.println(CRC16.bytesToHex(bt));\r\n\t\t\t\tSystem.out.println(lg-new Date().getTime());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1687310814ceb43f3e71cd0bbdc0a6b8", "score": "0.52161634", "text": "@Override\n\tpublic void run() {\n\t\ts.elabora(10);\n\t}", "title": "" }, { "docid": "4e7c8b913c7d401fbcba2b990459d68d", "score": "0.5215274", "text": "@Override\n public void run() {\n //\n for (int i = 0; i < 10; i++) {\n System.out.println(getName() + \" funcionando\");\n try {\n Thread.sleep((long) (Math.random() * 600) + 1);\n } catch (InterruptedException ex) {\n Logger.getLogger(Hilo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n //Identificacion del ultimo hilo\n if (!getName().equals(\"Thread-4\")) {\n try {\n //Usamos el join para que los padres esperen a que terminen los hijos\n a.join();\n } catch (InterruptedException ex) {\n Logger.getLogger(Hilo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n System.out.println(getName() + \" fin\");\n }", "title": "" }, { "docid": "0a348757754c330ec48e71860764dd36", "score": "0.52044415", "text": "private void sleeep() {\n try {\n Thread.sleep(config.getTimeToSleep());\n } catch (InterruptedException ie) {\n }\n }", "title": "" }, { "docid": "cb3e893b1294907460accd5ddef813b5", "score": "0.519846", "text": "private void actionPerformedOnHangupButton()\r\n {\r\n Call call = getCall();\r\n \r\n NotificationManager.stopSound(NotificationManager.OUTGOING_CALL);\r\n NotificationManager.stopSound(NotificationManager.BUSY_CALL);\r\n \r\n if (call != null)\r\n CallManager.hangupCall(call);\r\n \r\n this.dispose();\r\n }", "title": "" }, { "docid": "62ca45eb8697ac5dfa515392c9d21d2a", "score": "0.51917505", "text": "private void sendUnchoke() {\n\t\tbyte[] unchoke = Message.generateMessage(1);\n\t\ttry {\n\t\t\tdos.write(unchoke); \n\t\t\tdos.flush();\n\t\t}catch (IOException e) { \n\t\t\tSystem.out.println(\"Unchoked failed to send!\");\n\t\t}\n\t}", "title": "" }, { "docid": "b6ca35ddd0715031becb58a5aedd9a61", "score": "0.5186017", "text": "@Override\n\tpublic void atirou() {\n\n\t\t\tatirou=true;\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "27a00072ab8940b4ea61c1fc210c1552", "score": "0.5184848", "text": "public void run() {\n\t\tboolean safeEnding = false;\n\t\twhile (!safeEnding) {\n\t\t\ttry {\n\t\t\t\tif (mUploadBitsSize == 0) mUploadBitsSize = mOjise.getUploadBitsSize();\n\t\t\t\t\n\t\t\t\twhile (true) {\t\n\t\t\t\t\tif (isCompleted()) {\n\t\t\t\t\t\tmOjise.notifyThreadCompleted(this);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (mOjise.getIse(mLocalId).isCompleted() || mOjise.isPaused()) return;\n\t\t\t\t\tif (this.isInterrupted()) return;\n\t\t\t\t\t\n\t\t\t\t\t//TODO, there is wahala here.\n\t\t\t\t\tint mSendSize = ((mCurrentSize + mUploadBitsSize) > mSize) ? (int)(mSize - mCurrentSize) : mUploadBitsSize;\t\t\n\t\t\t\t\tbyte[] data = null;\n\t\t\t\t\t\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdata = mOjise.getIse(mLocalId).read(mStartPos + mCurrentSize, mSendSize);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(10 * 1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//send the data\t\t\t\n\t\t\t\t\t//read response\n\t\t\t\t\tif (this.isInterrupted()) return;\n\t\t\t\t\t\n\t\t\t\t\tJSONObject item_meta = new JSONObject();\n\t\t\t\t\titem_meta.put(\"thread_id\", mId);\n\t\t\t\t\titem_meta.put(\"chunk_position\", mCurrentSize);\n\t\t\t\t\titem_meta.put(\"chunk_size\", mSendSize);\n\t\t\t\t\t\n\t\t\t\t\tJSONObject ojiseData = new JSONObject();\n\t\t\t\t\tojiseData.put(\"ojise_key\", mOjise.getOjiseKey());\n\t\t\t\t\tojiseData.put(\"batch_id\", mOjise.getBatchId());\n\t\t\t\t\tojiseData.put(\"item_meta\", item_meta);\n\t\n\t\t\t\t\t//ByteArrayInputStream bais = new ByteArrayInputStream(data);\n\t\t\t\t\t\n\t\t\t\t\t/* File item_chunk = File.createTempFile(\"ojise.\", \".tmp\", new File(\"C:/tmp/ojise/\"));\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(item_chunk);\n\t\t\t\t\tfos.write(data);\n\t\t\t\t\tfos.close(); */\n\t\t\t\t\t\n\t\t\t\t\tif (this.isInterrupted()) return;\n\t\t\t\t\t\n\t\t\t\t\tlong timeStore = System.currentTimeMillis();\n\t\t\t\t\t\n\t\t\t\t\tJSONObject ret = mOjise.getOjiseServerProxy()._uploadPart(ojiseData, data);\n\t\t\t\t\t//item_chunk.delete();\n\t\t\t\t\t\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tsleep((long)((2 + (Math.random() * mOjise.getTimeOut())) * 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\t\n\t\t\t\t\tlong timeDiff = System.currentTimeMillis() - timeStore;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (this.isInterrupted()) return;\n\t\t\t\t\t\n\t\t\t\t\tif (ret != null) {\n\t\t\t\t\t\tmOjise.setMerged(ret.getInt(\"batch_merged\") == 1);\n\t\t\t\t\t\tmOjise.setCompleted(ret.getInt(\"batch_completed\") == 1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tmOjise.getIse(mLocalId).setMerged(ret.getInt(\"item_merged\") == 1);\n\t\t\t\t\t\tmOjise.getIse(mLocalId).setCompleted(ret.getInt(\"item_completed\") == 1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsetCurrentSize(ret.getLong(\"current_size\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t//if (mOjise.isCompleted() || mOjise.getIse(mLocalId).isCompleted()) return;\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (mSendSize == mUploadBitsSize && timeDiff <= (mOjise.getTimeOut() * 1000 * 4 / 5)) { //with 4/5 of the time left.\n\t\t\t\t\t\t\tmUploadBitsSize += (int)Math.ceil((double)(mUploadBitsSize) / 5d);\n\t\t\t\t\t\t\tif (mUploadBitsSize > mOjise.getUploadBitsMaxSize()) mUploadBitsSize = mOjise.getUploadBitsMaxSize(); \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\tmUploadBitsSize = (int)Math.ceil((double)(mSendSize * 2) / 3d);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsafeEnding = true;\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif (safeEnding == false && !this.isInterrupted()) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(10 * 1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b1d810b9562de5c69c95e1120ae939dd", "score": "0.5183345", "text": "public void voikoSulkea() {\r\n\t\tif (muokattavana == true) {\r\n\t\t\tboolean vastaus = Dialogs.showQuestionDialog(\"Tallennus\", \"Tallenetaanko ennen sulkemista?\", \"Kyllä\", \"Ei\");\r\n\t\t\tif (vastaus) {\r\n\t\t\t\ttallenna();\r\n\t\t\t}\r\n\t\t}\r\n\t\tPlatform.exit();\r\n\t}", "title": "" }, { "docid": "e1c96334118ef28d5e0c237c5b81ca6c", "score": "0.518262", "text": "private void anunciar(){\n Thread hilo = new Thread(){\n public void run(){\n while(true){\n try {\n ServidorMulticast.getInstance().anunciar(nodo.getId());\n TimeUnit.SECONDS.sleep(5);\n } catch (IOException ex) {\n Logger.getLogger(Interfaz.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InterruptedException ex) {\n Logger.getLogger(Interfaz.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n };\n\n hilo.start();\n }", "title": "" }, { "docid": "bcbf3a277bba6139f678a92bde1fc1a4", "score": "0.51749665", "text": "public final void run() {\n /*\n r6 = this;\n r1 = r6.zzapf;\n monitor-enter(r1);\n r0 = r6.zzape;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzaoy;\t Catch:{ RemoteException -> 0x006b }\n if (r0 != 0) goto L_0x0035;\n L_0x000b:\n r0 = r6.zzape;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzge();\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zzim();\t Catch:{ RemoteException -> 0x006b }\n r2 = \"Failed to get conditional properties\";\n r3 = r6.zzanj;\t Catch:{ RemoteException -> 0x006b }\n r3 = com.google.android.gms.internal.measurement.zzfg.zzbm(r3);\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzanh;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzani;\t Catch:{ RemoteException -> 0x006b }\n r0.zzd(r2, r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapf;\t Catch:{ RemoteException -> 0x006b }\n r2 = java.util.Collections.emptyList();\t Catch:{ RemoteException -> 0x006b }\n r0.set(r2);\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapf;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n L_0x0034:\n return;\n L_0x0035:\n r2 = r6.zzanj;\t Catch:{ RemoteException -> 0x006b }\n r2 = android.text.TextUtils.isEmpty(r2);\t Catch:{ RemoteException -> 0x006b }\n if (r2 == 0) goto L_0x005b;\n L_0x003d:\n r2 = r6.zzapf;\t Catch:{ RemoteException -> 0x006b }\n r3 = r6.zzanh;\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzani;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzane;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zza(r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006b }\n L_0x004c:\n r0 = r6.zzape;\t Catch:{ RemoteException -> 0x006b }\n r0.zzcu();\t Catch:{ RemoteException -> 0x006b }\n r0 = r6.zzapf;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n L_0x0056:\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n goto L_0x0034;\n L_0x0058:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0058 }\n throw r0;\n L_0x005b:\n r2 = r6.zzapf;\t Catch:{ RemoteException -> 0x006b }\n r3 = r6.zzanj;\t Catch:{ RemoteException -> 0x006b }\n r4 = r6.zzanh;\t Catch:{ RemoteException -> 0x006b }\n r5 = r6.zzani;\t Catch:{ RemoteException -> 0x006b }\n r0 = r0.zze(r3, r4, r5);\t Catch:{ RemoteException -> 0x006b }\n r2.set(r0);\t Catch:{ RemoteException -> 0x006b }\n goto L_0x004c;\n L_0x006b:\n r0 = move-exception;\n r2 = r6.zzape;\t Catch:{ all -> 0x0093 }\n r2 = r2.zzge();\t Catch:{ all -> 0x0093 }\n r2 = r2.zzim();\t Catch:{ all -> 0x0093 }\n r3 = \"Failed to get conditional properties\";\n r4 = r6.zzanj;\t Catch:{ all -> 0x0093 }\n r4 = com.google.android.gms.internal.measurement.zzfg.zzbm(r4);\t Catch:{ all -> 0x0093 }\n r5 = r6.zzanh;\t Catch:{ all -> 0x0093 }\n r2.zzd(r3, r4, r5, r0);\t Catch:{ all -> 0x0093 }\n r0 = r6.zzapf;\t Catch:{ all -> 0x0093 }\n r2 = java.util.Collections.emptyList();\t Catch:{ all -> 0x0093 }\n r0.set(r2);\t Catch:{ all -> 0x0093 }\n r0 = r6.zzapf;\t Catch:{ all -> 0x0058 }\n r0.notify();\t Catch:{ all -> 0x0058 }\n goto L_0x0056;\n L_0x0093:\n r0 = move-exception;\n r2 = r6.zzapf;\t Catch:{ all -> 0x0058 }\n r2.notify();\t Catch:{ all -> 0x0058 }\n throw r0;\t Catch:{ all -> 0x0058 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzis.run():void\");\n }", "title": "" }, { "docid": "73229ca48721b9770edc8d6cebde55bd", "score": "0.5171052", "text": "private void DoEvents() {\n\t\t\n\t}", "title": "" }, { "docid": "0168d805da5206d78077039dc7c0302d", "score": "0.51646537", "text": "abstract public void bang(CMsgShuttle _msg);", "title": "" }, { "docid": "2282f6b1c4c42f4f2861854bdbc8caa1", "score": "0.5161252", "text": "void Trigger_test_Action () {\ninfo_text.setText(\"Attention: After this procedure yopu need \\n to end the run and start the new one.\");\n\u0001D 3\n mySysExe.run_unix(\"/usr/local/clas/work_src/daqdoc/trigger_test\");\n\u0001E 3\n\u0001I 3\n mySysExe.run_unix(\"$CLON_BIN/trigger_test\");\n\u0001E 3\n }\n\n //Action methods for online menu\n void StopAutoControl_Action() {\n\u0001D 22\n info_text.setText(\"Online auto recovery is disabled.\");\n DataPool.auto_recover = 0;\n\u0001E 22\n\u0001I 22\n info_text.setText(\"Online auto recovery is disabled.\");\n mySysExe.run_unix(\"control_procmgr_manager stop &; control_process_manager stop &; control_ipc_process_manager stop &\"); \n//DataPool.auto_recover = 0;\n\u0001E 22\n }\n void StartAutoControl_Action() {\n\u0001D 22\n info_text.setText(\"Online auto recovery is enabled.\");\n DataPool.auto_recover = 1;\n\u0001E 22\n\u0001I 22\n info_text.setText(\"Online auto recovery is enabled.\");\n mySysExe.run_unix(\"control_process_manager start &\");\n\u0001E 22\n }\n\u0001D 18\n void StartAlarmScreens_Action() { \n\u0001D 3\n mySysExe.run_unix(\"remsh -n clon00 \\\"(setenv DISPLAY clon05:0.1; /usr/local/clas/bin/alarm_browser -a clasprod -u alarm_browser) >& /dev/null &\\\" &\");\n\u0001E 3\n\u0001I 3\n mySysExe.run_unix(\"remsh -n clon00 \\\"(setenv DISPLAY clon05:0.1; $CLON_BIN/alarm_browser -a clasprod -u alarm_browser) >& /dev/null &\\\" &\");\n\u0001E 3\n info_text.setText(\"Alarm Browser is started. \");\n\u0001E 18\n\u0001I 18\n void StopOnline_Action() { \n\u0001I 22\n\u0001D 23\n mySysExe.run_unix(\"recover_online\");\n\u0001E 23\n\u0001I 23\n mySysExe.run_unix(\"mon2_recover\");\n\u0001E 23\n\u0001E 22\n // Add here the script\n\n\u0001E 18\n }", "title": "" }, { "docid": "2990f3456002b6c7dc031ed550c9fc52", "score": "0.5161046", "text": "public final void run() {\n /*\n r4 = this;\n r1 = r4.zzapf;\n monitor-enter(r1);\n r0 = r4.zzape;\t Catch:{ RemoteException -> 0x005a }\n r0 = r0.zzaoy;\t Catch:{ RemoteException -> 0x005a }\n if (r0 != 0) goto L_0x0022;\n L_0x000b:\n r0 = r4.zzape;\t Catch:{ RemoteException -> 0x005a }\n r0 = r0.zzge();\t Catch:{ RemoteException -> 0x005a }\n r0 = r0.zzim();\t Catch:{ RemoteException -> 0x005a }\n r2 = \"Failed to get app instance id\";\n r0.log(r2);\t Catch:{ RemoteException -> 0x005a }\n r0 = r4.zzapf;\t Catch:{ all -> 0x0057 }\n r0.notify();\t Catch:{ all -> 0x0057 }\n monitor-exit(r1);\t Catch:{ all -> 0x0057 }\n L_0x0021:\n return;\n L_0x0022:\n r2 = r4.zzapf;\t Catch:{ RemoteException -> 0x005a }\n r3 = r4.zzane;\t Catch:{ RemoteException -> 0x005a }\n r0 = r0.zzc(r3);\t Catch:{ RemoteException -> 0x005a }\n r2.set(r0);\t Catch:{ RemoteException -> 0x005a }\n r0 = r4.zzapf;\t Catch:{ RemoteException -> 0x005a }\n r0 = r0.get();\t Catch:{ RemoteException -> 0x005a }\n r0 = (java.lang.String) r0;\t Catch:{ RemoteException -> 0x005a }\n if (r0 == 0) goto L_0x004b;\n L_0x0037:\n r2 = r4.zzape;\t Catch:{ RemoteException -> 0x005a }\n r2 = r2.zzfu();\t Catch:{ RemoteException -> 0x005a }\n r2.zzbr(r0);\t Catch:{ RemoteException -> 0x005a }\n r2 = r4.zzape;\t Catch:{ RemoteException -> 0x005a }\n r2 = r2.zzgf();\t Catch:{ RemoteException -> 0x005a }\n r2 = r2.zzakb;\t Catch:{ RemoteException -> 0x005a }\n r2.zzbs(r0);\t Catch:{ RemoteException -> 0x005a }\n L_0x004b:\n r0 = r4.zzape;\t Catch:{ RemoteException -> 0x005a }\n r0.zzcu();\t Catch:{ RemoteException -> 0x005a }\n r0 = r4.zzapf;\t Catch:{ all -> 0x0057 }\n r0.notify();\t Catch:{ all -> 0x0057 }\n L_0x0055:\n monitor-exit(r1);\t Catch:{ all -> 0x0057 }\n goto L_0x0021;\n L_0x0057:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0057 }\n throw r0;\n L_0x005a:\n r0 = move-exception;\n r2 = r4.zzape;\t Catch:{ all -> 0x0071 }\n r2 = r2.zzge();\t Catch:{ all -> 0x0071 }\n r2 = r2.zzim();\t Catch:{ all -> 0x0071 }\n r3 = \"Failed to get app instance id\";\n r2.zzg(r3, r0);\t Catch:{ all -> 0x0071 }\n r0 = r4.zzapf;\t Catch:{ all -> 0x0057 }\n r0.notify();\t Catch:{ all -> 0x0057 }\n goto L_0x0055;\n L_0x0071:\n r0 = move-exception;\n r2 = r4.zzapf;\t Catch:{ all -> 0x0057 }\n r2.notify();\t Catch:{ all -> 0x0057 }\n throw r0;\t Catch:{ all -> 0x0057 }\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzil.run():void\");\n }", "title": "" }, { "docid": "1435c192d4d515d7636f14855c415b79", "score": "0.515702", "text": "public static void sustituir() {\n if (peso > Cinta.MAX_P_CONTENEDOR) {\n while (true) {\n ConcIO.printfnl(\"ERROR: el contenedor no se puede mover, peso \" + peso);\n try {\n Thread.sleep(1000);\n } catch (InterruptedException x) {}\n }\n }\n // Sólo simulamos un retardo constante\n preparado = false;\n try {\n ConcIO.printfnl(\"Retirando contenedor con peso \" + peso);\n lock.lock();\n int t = random.nextInt(peso / 10);\n peso = 0;\n lock.unlock();\n Thread.sleep(t);\n } catch (InterruptedException x) {}\n if (atascado) {\n while (true) {\n ConcIO.printfnl(\"ERROR: contenedor atascado por chatarra en carril.\");\n try {\n Thread.sleep(1000);\n } catch (InterruptedException x) {}\n }\n }\n preparado = true;\n }", "title": "" }, { "docid": "d274f60502730a3b75cc187a95dbf259", "score": "0.5153232", "text": "@Override\n public void done() {\n if(timer){\n JOptionPane.showMessageDialog(null, \"Se acabo el tiempo\");\n respuestaIncorrecta();\n }\n }", "title": "" }, { "docid": "6d5ca18572b5c63088cde68cd452e541", "score": "0.5150838", "text": "@Override\n\t\t\t\tpublic Object call() throws Exception\n\t\t\t\t{\n\t\t\t\t\ttry {\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\treturn devShakeHand();\n\t\t\t\t}", "title": "" }, { "docid": "b7b40f7eca11daf73706686a9d02964f", "score": "0.5150797", "text": "public void itxaron(int segundos){\r\n try {\r\n Thread.sleep(segundos * 1000);\r\n } catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "title": "" } ]
621a13a9e07653bfb8a2011a8117ef4d
Binds an item to the view
[ { "docid": "355f79325e16075e0403c1b71fd7265c", "score": "0.0", "text": "@Override\n public void onBindViewHolder(final Notification_View_Holder holder, final int position){\n holder.notification = mDataset.get(position);\n removeCard(holder, position);\n\n holder.uid = holder.notification.getUserID();\n holder.udb = new Users_DB();\n\n holder.mcbu = new myCallbackUser() {\n @Override\n public void onCallback(User u) {\n holder.currentUser = u;\n getSenderUser(holder, position);\n }\n };\n\n holder.udb.getUser(holder.uid, holder.mcbu);\n\n if (!holder.notification.getSeen()){\n holder.newAlertStar.setRating(1);\n }\n else{\n holder.newAlertStar.setRating(0);\n }\n\n //set the text of the notification based on the type\n holder.requestType = holder.notification.getRequestType();\n }", "title": "" } ]
[ { "docid": "6f8635004f16d8512ba1ef0c120991c5", "score": "0.74683374", "text": "public abstract void bindView(V holder, T item);", "title": "" }, { "docid": "2ab250f7a641d9575508e6cd61b826e4", "score": "0.6940842", "text": "public void bind(String item) {\n tvItem.setText(item);\n tvItem.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n //Return the position to the interface\n longClickListener.onItemLongClicked(getAdapterPosition());\n return true;\n }\n });\n }", "title": "" }, { "docid": "d22f33e132c367edf2c2f8aa20adf19b", "score": "0.66827893", "text": "private void bind(View view) {\n\n ImageView dealImage = (ImageView) view.findViewById(R.id.hot_deaL_image);\n dealImage.setImageResource(menuHotItems.getItemImage());\n TextView dealTitletitle = (TextView) view.findViewById(R.id.hot_deal_title);\n dealTitletitle.setText(menuHotItems.getItemName());\n dealTitletitle.setTypeface(AppUtils.getTypeface(getActivity(), AppUtils.FONT_BOLD));\n }", "title": "" }, { "docid": "199bf1c05ba1103312e292ce713e854f", "score": "0.65728784", "text": "public abstract void bindData(T holderItem);", "title": "" }, { "docid": "b374dff9b76832a6fb709b1e37e6303b", "score": "0.65070057", "text": "public ItemView(Product item){\n\t\t/*\n\t\tReplace with Item object, when backend arrives\n\t\t */\n\n\t\tthis.item=item;\n\n\t\tFXMLLoader fxmlLoader =\n\t\t\t\tnew FXMLLoader(getClass().getResource(\"FXMLFiles/ItemView.fxml\"));\n\n\n\n\t\tfxmlLoader.setRoot(this);\n\t\tfxmlLoader.setController(this);\n\n\t\ttry {\n\t\t\tfxmlLoader.load();\n\t\t} catch (IOException exception) {\n\t\t\tthrow new RuntimeException(exception);\n\t\t}\n\t}", "title": "" }, { "docid": "4fa1756fe77adbd7b3525b13893eb6d2", "score": "0.6471235", "text": "void bind(final Player item, final PlayersAdapter.OnItemClickedListener listener) {\n playerName.setText(item.getPlayerName());\n playerNumber.setText(item.getJerseyNumber());\n playerposition.setText(positionCoder(item.getPosition()));\n\n itemView.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n listener.onItemClick(item, playerData.indexOf(item));\n }\n\n });\n }", "title": "" }, { "docid": "5ff8b68a5f607bb35b3ba1b518723fa6", "score": "0.6414606", "text": "@Override\n\tpublic void bindView(View view, Context context, Cursor cursor) {\n\t\tItemData itemData = ItemDatabaseHelper.getItemDataFromCursor(cursor);\n\t\t\n\t\t// Populate name field\n\t\tTextView name = (TextView) view.findViewById(R.id.closet_value_name);\n\t\tif (itemData.getName().isEmpty()) {\n\t\t\tname.setText(context.getString(R.string.my_closet_value_item_name_default_value));\n\t\t} else {\n\t\t\tname.setText(context.getString(R.string.my_closet_label_item_name) \n\t\t\t\t\t+ itemData.getName());\n\t\t\t\n\t\t}\n\t\t\n\t\t// Populate description field\n\t\tTextView description = (TextView) view.findViewById(R.id.closet_value_description);\n\t\tif (itemData.getDescription().isEmpty()) {\n\t\t\tdescription.setText(context.getString(R.string.my_closet_value_item_description_default_value));\n\t\t} else {\n\t\t\tdescription.setText(context.getString(R.string.my_closet_label_item_description) \n\t\t\t\t\t+ itemData.getDescription());\n\t\t}\n\t\t\n\t\t// Populate image\n\t\tImageView image = (ImageView) view.findViewById(R.id.closet_value_image);\n\t\tnew ImageSubSampler(context).subSampleCroppedUri(itemData, image, context);;\n\t}", "title": "" }, { "docid": "764a2fc5ccb298d8366299771463deda", "score": "0.6343412", "text": "public void bind(final SearchedProject item, final ProjectsFeelingLuckyAdapter.ClickListener listener) {\n companyName.setText(item.getComapanyName());\n projectName.setText(item.getProjectName());\n collaborationName.setText(item.getCollaborationName());\n int sum = (item.getApplicantsNum());\n matches.setText(String .valueOf(sum)+mContext.getString(R.string.adapter_applications));\n int percent = (int)((item.getMatches()/(float)(item.getNumOfNeededSkills()))*100);\n percentage.setText(String.valueOf(percent)+mContext.getString(R.string.match));\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n listener.onItemClick(item);\n }\n });\n }", "title": "" }, { "docid": "81dd5bf3636571ffc03f9e0a00450b10", "score": "0.61434054", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n Log.v(LOG_TAG, \"Updating Listitem View\");\n\n //Collect (text)views from layout of list item\n Log.v(LOG_TAG, \"Fetching layout items from list\");\n TextView item_header_workplace =\n (TextView) view.findViewById(R.id.item_header_workplace);\n TextView item_header_status =\n (TextView) view.findViewById(R.id.item_header_status);\n TextView item_header_traincoach =\n (TextView) view.findViewById(R.id.item_header_traincoach);\n TextView item_content =\n (TextView) view.findViewById(R.id.item_content);\n\n //Set datafields in the list item\n Log.v(LOG_TAG, \"Binding datafields to list item\");\n item_header_workplace.setText(cursor.getString(IssueOverviewFragment.COL_ISSUE_WORKPLACE));\n item_header_status.setText(convertIssueStatus(cursor.getString(IssueOverviewFragment.COL_ISSUE_STATUS)));\n item_header_traincoach.setText(cursor.getString(IssueOverviewFragment.COL_ISSUE_TRAINCOACH));\n item_content.setText(cursor.getString(IssueOverviewFragment.COL_ISSUE_DESCRIPTION));\n Log.v(LOG_TAG, \"List item set!\");\n }", "title": "" }, { "docid": "b0e0265732777a803a39fa6fc9e3b6fb", "score": "0.6106307", "text": "protected void bindViewHolder(final VH holder, final T item) {\n holder.mTitleTextView.setText(item.getDisplayedTitle());\n holder.mPostedTextView.setText(item.getDisplayedTime(mContext));\n switch (item.getType()) {\n case job:\n holder.mSourceTextView.setText(null);\n holder.mSourceTextView.setCompoundDrawablesWithIntrinsicBounds(\n R.drawable.ic_work_grey600_18dp, 0, 0, 0);\n break;\n case poll:\n holder.mSourceTextView.setText(null);\n holder.mSourceTextView.setCompoundDrawablesWithIntrinsicBounds(\n R.drawable.ic_poll_grey600_18dp, 0, 0, 0);\n break;\n default:\n holder.mSourceTextView.setText(item.getSource());\n holder.mSourceTextView.setCompoundDrawables(null, null, null, null);\n break;\n }\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n handleItemClick(item, holder);\n }\n });\n holder.mCommentButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n handleCommentButtonClick(item, holder);\n }\n });\n decorateCardSelection(holder, item.getId());\n }", "title": "" }, { "docid": "d8caa6654427c3fb1cb12586bf7abc9e", "score": "0.60819995", "text": "@Override\n public View getView() {\n return itemView;\n }", "title": "" }, { "docid": "b1301ea5e6ff8efc3162307b0ecd3a2c", "score": "0.6080941", "text": "public void setItem(ModelData item) {\n this.item = item;\n }", "title": "" }, { "docid": "f6727072bffaff97822cfe759be845b7", "score": "0.60238844", "text": "public ViewHolder(@NonNull View itemView) {\n super(itemView);\n tvItem = itemView.findViewById(android.R.id.text1);\n }", "title": "" }, { "docid": "5290d2285911c9a244f0cace1ac04e82", "score": "0.60102344", "text": "public void bind(final RequestListItem requestListItem) {\n String str;\n this.userText.setText(generateUserText(this.context.getString(R.string.f171212131886286), requestListItem.getLastCommentingAgentNames()));\n TextView textView = this.subjectText;\n if (requestListItem.hasAgentReplied()) {\n str = this.context.getString(R.string.f171222131886287, new Object[]{requestListItem.getFirstMessage()});\n } else {\n str = requestListItem.getFirstMessage();\n }\n textView.setText(str);\n if (requestListItem.isClosed()) {\n this.commentText.setText(R.string.f171232131886288);\n } else if (requestListItem.isFailed()) {\n this.commentText.setText(R.string.f170362131886118);\n } else {\n this.commentText.setText(requestListItem.getLastMessage());\n }\n this.timeText.setText(getDateTimeString(requestListItem.getLastUpdated()));\n bindAvatar(requestListItem.hasAgentReplied(), requestListItem.getLastCommentingAgentNames(), requestListItem.getAvatar());\n style(requestListItem.isUnread(), requestListItem.isFailed(), requestListItem.isClosed());\n this.itemView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n RequestListViewHolder.this.listener.onClick(requestListItem);\n }\n });\n }", "title": "" }, { "docid": "54ac63aca336b9852aacf92f9c55ee24", "score": "0.5993724", "text": "void bind(ToDoItem toDoItem) {\n mToDoItem = toDoItem;\n mTitleTextView.setText(mToDoItem.getTitle());\n\n // check and strike through only if the To-Do is completed\n if (mToDoItem.getCompleted()) {\n mCBToDoItem.setChecked(true);\n mTitleTextView.setPaintFlags(Paint.STRIKE_THRU_TEXT_FLAG);\n } else {\n mCBToDoItem.setChecked(false);\n }\n\n // listen for a change in completed\n mCBToDoItem.setOnCheckedChangeListener(new MyCheckBoxListener());\n }", "title": "" }, { "docid": "ebadf27085780f6052a415e010d3ff85", "score": "0.5978831", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n TextView txtTitle = (TextView) view.findViewById(R.id.noteTitle);\n TextView txtNoteDescription = (TextView) view.findViewById(R.id.noteDescription);\n\n\n // Extract properties from cursor\n String mTitle = cursor.getString(cursor.getColumnIndexOrThrow(\"note_title\"));\n String mNoteDescription = cursor.getString(cursor.getColumnIndexOrThrow(\"note_description\"));\n\n // Populate fields with extracted properties\n txtTitle.setText(mTitle);\n txtNoteDescription.setText(mNoteDescription);\n\n }", "title": "" }, { "docid": "990775f77c11a476a3f0d8fc4ed45503", "score": "0.59782743", "text": "MyViewHolder(View itemView)\n {\n super(itemView);\n\n ButterKnife.bind(this, itemView);\n\n itemView.setTag(itemView);\n }", "title": "" }, { "docid": "d662b3b38901bcb0a18281669606569d", "score": "0.5967411", "text": "public BaseViewHolder(View itemView) {\n super(itemView);\n ButterKnife.bind(this, itemView);\n }", "title": "" }, { "docid": "c47d9eeef99c3de2bdf253a47842da9c", "score": "0.59534514", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n ViewHolder viewHolder = (ViewHolder) view.getTag();\n String imgUrl = cursor.getString(cursor.getColumnIndex(AlexandriaContract.BookEntry.IMAGE_URL));\n\n Picasso.with(context)\n .load(imgUrl)\n .placeholder(R.drawable.ic_launcher)\n .error(R.drawable.ic_launcher)\n .into(viewHolder.bookCover);\n\n viewHolder.bookTitle.setText(cursor.getString(cursor.getColumnIndex(AlexandriaContract.BookEntry.TITLE)));\n viewHolder.bookSubTitle.setText(cursor.getString(cursor.getColumnIndex(AlexandriaContract.BookEntry.SUBTITLE)));\n }", "title": "" }, { "docid": "3df11b23cf871e40889c87bde060848a", "score": "0.5951873", "text": "public void setItem(Item item) {\n this.item = item;\n }", "title": "" }, { "docid": "77cfcd62c280a8c4708eeae3169b8567", "score": "0.5939949", "text": "public Item(@NonNull View itemView) {\n super(itemView);\n textView = (TextView) itemView;\n }", "title": "" }, { "docid": "6f3fca62ede2dcd28d436f725b240a7c", "score": "0.5938469", "text": "@Override\n protected View bindViewAndData(LayoutInflater infater, int position, View convertView, ViewGroup parent) {\n NewsItemView itemView = (NewsItemView) convertView;\n if (itemView == null) {\n itemView = (NewsItemView) infater.inflate(R.layout.news_item, parent, false);\n }\n NewsItem item = (NewsItem) getDataSetItem(position);\n itemView.showNews(item, options);\n return itemView;\n }", "title": "" }, { "docid": "9afd52f91d6a5250fbd781b507a2c313", "score": "0.59227276", "text": "@Override\n public void bindView(View view, Context context, Movie movie) {\n DatosItemBinding binding = DataBindingUtil.getBinding(view);\n binding.tv1.setText(movie.getTitle());\n if (movie.getAdult()){\n binding.tv2.setText(\"Contenido para +18\");\n }else{\n binding.tv2.setText(\"Contenido para todo el publico\");\n }\n String urlImagen = \"https://image.tmdb.org/t/p/w500\"+movie.getPoster_path();\n Glide.with(context).load(urlImagen).into(binding.ivPosterImageList);\n }", "title": "" }, { "docid": "f34df2f41dbdd72e34bd3014f6c72303", "score": "0.59180224", "text": "@Override\r\n\tpublic void bindView(View view, Context context, Cursor cursor) {\n\t\tRouteInfo routeInfo = new RouteInfo(cursor.getLong(0), \r\n\t\t\t\tcursor.getString(1), cursor.getString(2));\r\n\t\t\r\n\t\t\r\n\t\tTextView nameTextView = (TextView) view.findViewById(R.id.nameLabel);\r\n\t\tnameTextView.setText(routeInfo.name);\r\n\t\tnameTextView.setTag(routeInfo);\r\n\t\t\r\n\t\tTextView dateTextView = (TextView) view.findViewById(R.id.dateLabel);\r\n\t\tdateTextView.setText(routeInfo.date);\r\n\t\tdateTextView.setTag(routeInfo); \r\n\t\t\r\n\t\tImageButton deleteButton = (ImageButton) view.findViewById(R.id.delete);\r\n\t\tdeleteButton.setTag(routeInfo);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6abfa12e5889d517d14a36308b981516", "score": "0.591704", "text": "public abstract void bindView(View view, Context context, Cursor cursor);", "title": "" }, { "docid": "cbc9600fbf14ffe0e010eef3ecfe09e7", "score": "0.5915798", "text": "@Override\n public void onBind(final ItemBridgeAdapter.ViewHolder itemViewHolder) {\n if (getOnItemViewClickedListener() != null) {\n final View itemView = itemViewHolder.mHolder.view;\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (getOnItemViewClickedListener() != null) {\n // Row is always null\n getOnItemViewClickedListener().onItemClicked(\n itemViewHolder.mHolder, itemViewHolder.mItem, null, null);\n }\n }\n });\n }\n }", "title": "" }, { "docid": "0128e4ad2eb4c851eebddb5ddebb9aed", "score": "0.59046197", "text": "public interface IListItemPresenter {\n\n //View에서 선택된 아이템의 위치를 나타냄\n void selectedItem(Tourist tourist);\n\n}", "title": "" }, { "docid": "3851ec6ee43068b196640b462e805575", "score": "0.58773506", "text": "@Override\n public void bindView(View view, final Context context, final Cursor cursor) {\n TextView item_name_view = (TextView) view.findViewById(R.id.item_name_text_view);\n TextView item_price_view = (TextView) view.findViewById(R.id.price_text_view);\n TextView item_quantity_view = (TextView) view.findViewById(R.id.current_quantity_text_view);\n ImageView item_image_view = (ImageView) view.findViewById(R.id.item_image_view);\n\n //Find the indices of name, price and quantity in the cursor\n final int idIndex = cursor.getColumnIndex(StockContract.ItemEntry._ID);\n int nameIndex = cursor.getColumnIndex(StockContract.ItemEntry.COLUMN_ITEM_NAME);\n int priceIndex = cursor.getColumnIndex(StockContract.ItemEntry.COLUMN_ITEM_PRICE);\n int quantityIndex = cursor.getColumnIndex(StockContract.ItemEntry.COLUMN_ITEM_QUANTITY);\n int imageIndex = cursor.getColumnIndex(StockContract.ItemEntry.COLUMN_ITEM_PICTURE);\n int emailIndex = cursor.getColumnIndex(StockContract.ItemEntry.COLUMN_ITEM_SUPPLIER_EMAIL);\n final int phoneIndex = cursor.getColumnIndex(StockContract.ItemEntry.COLUMN_ITEM_SUPPLIER_PHONE);\n\n //Get values for the fields\n String itemName = cursor.getString(nameIndex);\n Float price = cursor.getFloat(priceIndex);\n Integer quantity = cursor.getInt(quantityIndex);\n if (imageIndex>-1){\n String image = cursor.getString(imageIndex);\n if (!TextUtils.isEmpty(image))\n Picasso.with(context).load(Uri.parse(image)).resize(250,350).into(item_image_view);\n }\n\n final String supplierEmail = cursor.getString(emailIndex);\n final String supplierPhone = cursor.getString(phoneIndex);\n\n //Set values to the respective TextViews\n item_name_view.setText(itemName);\n item_price_view.setText(NumberFormat.getCurrencyInstance().format(price));\n item_quantity_view.setText(NumberFormat.getInstance().format(quantity));\n\n view.findViewById(R.id.track_sale).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (!TextUtils.isEmpty(supplierEmail)){\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\" + supplierEmail.trim()));\n if (intent.resolveActivity(context.getPackageManager())!=null){\n context.startActivity(intent);\n } else{\n Toast.makeText(context, \"No Application to send Email!\", Toast.LENGTH_SHORT).show();\n }\n } else if (!TextUtils.isEmpty(supplierPhone)){\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:\" + supplierPhone.trim()));\n if (intent.resolveActivity(context.getPackageManager())!=null){\n context.startActivity(intent);\n }\n } else {\n Toast.makeText(context, \"No Application to make a call!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n view.findViewById(R.id.openEditor).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Uri itemUri = ContentUris.withAppendedId(StockContract.ItemEntry.ITEMS_CONTENT_URI,cursor.getLong(idIndex));\n Intent intent = new Intent(context, ItemEditorActivity.class);\n intent.setData(itemUri);\n context.startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "0b48bd5908089d14715f7e597f314874", "score": "0.58737516", "text": "protected abstract void bindView(V view, int position);", "title": "" }, { "docid": "909ccb954b61a845f28a59c0fbda8baa", "score": "0.5869739", "text": "@Override\n public void onBindViewHolder(ToDoHolder holder, int position) {\n ToDoItem toDoItem = mToDoItems.get(position);\n holder.bind(toDoItem);\n }", "title": "" }, { "docid": "a4354386666714ac1e9f7519d868ed57", "score": "0.5864523", "text": "public ViewHolder(@NonNull View itemView) {\n super(itemView);\n tvAnimal = itemView.findViewById(R.id.tvAnimal); // Binds the tv view on list_animal xml\n tvDescription = itemView.findViewById(R.id.tvDescriptionDisplay);\n }", "title": "" }, { "docid": "5ccf00552903d492742cfca655710762", "score": "0.58120817", "text": "@Override\n\tpublic Items itemsView(int itnum) {\n\t\treturn sessionTemplate.selectOne(\"itemsView\", itnum);\n\t}", "title": "" }, { "docid": "52714ddcd0a8b570335c1f8b90ace6d7", "score": "0.58061963", "text": "@Override\n public void bindView(final View view, final Context context, Cursor cursor) {\n TextView itemNameTextView = (TextView) view.findViewById(R.id.name);\n TextView quantityTextView = (TextView) view.findViewById(R.id.quantity);\n TextView priceTextView = (TextView) view.findViewById(R.id.price);\n\n\n // Find the columns of item attributes that we're interested in\n int itemNameColumnIndex = cursor.getColumnIndex(InventoryContract.InventoryEntry.COLUMN_ITEM_NAME);\n int quantityColumnIndex = cursor.getColumnIndex(InventoryContract.InventoryEntry.COLUMN_NUMBER_OF_ITEMS);\n int priceColumnIndex = cursor.getColumnIndex(InventoryContract.InventoryEntry.COLUMN_PRICE_PER_ITEM);\n\n // Read the item attributes from the Cursor for the current item\n String itemName = cursor.getString(itemNameColumnIndex);\n final String quantity = cursor.getString(quantityColumnIndex);\n String price = cursor.getString(priceColumnIndex);\n price = \"$\" + price;\n\n // Update the TextViews with the attributes for the current item\n itemNameTextView.setText(itemName);\n quantityTextView.setText(quantity);\n priceTextView.setText(price);\n\n Button saleButton = (Button) view.findViewById(R.id.sell_button);\n\n final Uri Uri = ContentUris.withAppendedId(InventoryContract.InventoryEntry.CONTENT_URI, cursor.getInt(cursor.getColumnIndexOrThrow(InventoryContract.InventoryEntry._ID)));\n\n final int quantityInteger = cursor.getInt(quantityColumnIndex);\n\n saleButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (quantityInteger > 0) {\n int quantity = quantityInteger - 1;\n ContentValues values = new ContentValues();\n values.put(InventoryContract.InventoryEntry.COLUMN_NUMBER_OF_ITEMS, quantity);\n // Update the database\n context.getContentResolver().update(Uri, values, null, null);\n } else {\n Toast.makeText(context, context.getString(R.string.out_of_stock), Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "title": "" }, { "docid": "ba1f1994130dc6c7690abac7d5aa4080", "score": "0.58051616", "text": "public Item getItem() {\n return this.item;\n }", "title": "" }, { "docid": "67da948830ed4facd402f2984e8283c2", "score": "0.5796637", "text": "@Override\n\tpublic void bindView(View arg0, Context arg1, Cursor arg2) {\n\t}", "title": "" }, { "docid": "115353650d99c18d60a8311375fe1c07", "score": "0.5781611", "text": "public ItemView getItemView() {\n\t\treturn myItemView;\n\t}", "title": "" }, { "docid": "60ec6e413300e44d5ac429dc158e832d", "score": "0.57771313", "text": "public void bindView(int position) {\n name.setText(data.get(position).getStoreName());\n number.setText(data.get(position).getStorePhoneNo());\n pos = position;\n\n }", "title": "" }, { "docid": "1ea6369de5b945a5833fc731f47140a0", "score": "0.5774566", "text": "public void bind(final NotaBanca item, final OnItemClickListener listener) {\n\n dataOperazione.setText(item.getDataPagamento());\n dataValuta.setText(item.getDataValuta());\n descrizione.setText(item.getDescrizione());\n float tot = item.getDare() - item.getAvere();\n item.setTotale(tot);\n String price_formatted = Functions.format(Math.abs(tot));\n if (tot > 0) {\n totale.setText(\"+\" + price_formatted + \" €\");\n totale.setTextColor(Color.BLUE);\n } else if (tot < 0) {\n totale.setText(\"-\" + price_formatted + \" €\");\n totale.setTextColor(Color.RED);\n } else {\n totale.setText(price_formatted + \" €\");\n totale.setTextColor(Color.BLACK);\n }\n\n //Set listener item del recicler view\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n listener.onItemClick(item);\n }\n });\n\n PrimaNotaBancaOverflowListener listenerOverflow = new PrimaNotaBancaOverflowListener(itemView.getContext(), item);\n overflow.setOnClickListener(listenerOverflow);\n\n }", "title": "" }, { "docid": "9c09377e842d6a9fc31667421669253d", "score": "0.5770985", "text": "public ViewHolder(View v) {\n super(v);\n ButterKnife.bind(this, itemView);\n v.setOnClickListener(this);\n }", "title": "" }, { "docid": "a0fb5dcc9cda1405bbe81ca1321fc8b2", "score": "0.5770715", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n String posterPath = cursor.getString(PopularMoviesFragment.COLUMN_IMAGE_PATH_ID);\n ImageView imageView = (ImageView) view.findViewById(R.id.grid_item_movie_image);\n loadImage(imageView, posterPath);\n }", "title": "" }, { "docid": "0014499bb870f93b2c6128008b6ce038", "score": "0.5764618", "text": "public Item getItem() { return this; }", "title": "" }, { "docid": "e28cacd7e6f577fd5ebb8e7846686f0e", "score": "0.5761796", "text": "@Override\n public void onBindViewHolder(MyViewHolder myViewHolder, int position) {\n MyObject myObject = list.get(position);\n myViewHolder.bind(myObject);\n\n }", "title": "" }, { "docid": "ff1cd8c20bf860d16454414532cff1c6", "score": "0.57602626", "text": "public Item getItem() {\n \n return myItem;\n }", "title": "" }, { "docid": "af62d8226c383bd18dddb755a8dff6fc", "score": "0.5754953", "text": "@Override\n public void bindView(final View view, final Context context, final Cursor cursor) {\n ViewHolder holder = (ViewHolder) view.getTag();\n\n String title = cursor.getString(cursor.getColumnIndex(BookContract.BookEntry.COLUMN_TITLE));\n String author = cursor.getString(cursor.getColumnIndex(BookContract.BookEntry.COLUMN_AUTHOR));\n String publishingHouse = cursor.getString(cursor.getColumnIndex(BookContract.BookEntry.COLUMN_PUBLISHING_HOUSE));\n final int publicationDateInt = cursor.getInt(cursor.getColumnIndex(BookContract.BookEntry.COLUMN_PUBLICATION_DATE));\n String publicationDate = String.valueOf(publicationDateInt);\n String localization = cursor.getString(cursor.getColumnIndex(BookContract.BookEntry.COLUMN_LOCALIZATION));\n\n holder.titleView.setText(title);\n holder.authorView.setText(author);\n holder.publishingHouseView.setText(publishingHouse);\n holder.publicationDateView.setText(publicationDate);\n holder.localizationView.setText(localization);\n\n\n final String id = String.valueOf(cursor.getInt(cursor.getColumnIndex(BookContract.BookEntry._ID)));\n\n }", "title": "" }, { "docid": "8400e7df0772f73872f8d7dd898fbe2c", "score": "0.57446766", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n //Find views.\n TextView nameTextView = view.findViewById(R.id.item_name_text_view);\n TextView quantityTextView = view.findViewById(R.id.quantity_text_view);\n TextView priceTextView = view.findViewById(R.id.price_text_view);\n //Get data from cursor.\n String name = cursor.getString(cursor.getColumnIndexOrThrow\n (StoreEntry.COLUMN_PRODUCT_NAME));\n int quantity = cursor.getInt(cursor.getColumnIndexOrThrow(StoreEntry.COLUMN_QUANTITY));\n int price = cursor.getInt(cursor.getColumnIndexOrThrow(StoreEntry.COLUMN_PRICE));\n //Bind data to views.\n nameTextView.setText(name);\n String formattedQuantityString = context.getString(R.string.quantity_available, quantity);\n quantityTextView.setText(formattedQuantityString);\n String formattedPriceString = context.getString(R.string.price_with_dollar, price);\n priceTextView.setText(formattedPriceString);\n Button sellButton = view.findViewById(R.id.sell_button);\n // Get current row id;\n long currentId = cursor.getLong(cursor.getColumnIndex(StoreEntry._ID));\n Uri currentUri = ContentUris.withAppendedId(StoreEntry.CONTENT_URI, currentId);\n // Uri newUri = StoreEntry.CONTENT_URI.with id appended\n sellButton.setOnClickListener(new QuantityButtonListener(currentUri, -1,\n R.id.quantity_text_view, true));\n ImageView smallImageViewInList = view.findViewById(R.id.image_in_list_view);\n // if an uri for image exists - show image in List View.\n String imageUriString = cursor.getString(cursor.getColumnIndex(StoreEntry.COLUMN_IMAGE));\n if (!TextUtils.isEmpty(imageUriString)) {\n smallImageViewInList.setImageBitmap(getBitmapFromUri(Uri.parse(imageUriString), context));\n } else // make view transparent or views will be mixing up with images while scrolling\n {\n smallImageViewInList.setImageResource(0);\n }\n\n }", "title": "" }, { "docid": "ac0bd1c8991272145c643f3ab9794e93", "score": "0.57399", "text": "protected abstract void onBindToView(View view);", "title": "" }, { "docid": "978c473cb27015702534046fa2b73a59", "score": "0.57346123", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n ((TextView)view.findViewById(R.id.nameTextView)).\n setText(cursor.getString(cursor.getColumnIndex(\"name\")));\n\n ((TextView)view.findViewById(R.id.storeTextView)).\n setText(cursor.getString(cursor.getColumnIndex(\"store\")));\n\n ((TextView)view.findViewById(R.id.dateTextView)).\n setText(cursor.getString(cursor.getColumnIndex(\"date\")));\n\n\n }", "title": "" }, { "docid": "e0c3ba7881a5f144da78a81640a2007f", "score": "0.5718987", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n ViewHolder viewHolder = (ViewHolder) view.getTag();\n int stationType = cursor.getInt(cursor.getColumnIndex(FMRadioStation.Station.COLUMN_STATION_TYPE));\n int stationFreq = cursor.getInt(cursor.getColumnIndex(FMRadioStation.Station.COLUMN_STATION_FREQ));\n String stationName = cursor.getString(cursor.getColumnIndex(FMRadioStation.Station.COLUMN_STATION_NAME));\n if (FMRadioStation.STATION_TYPE_FAVORITE == stationType) {\n viewHolder.mStationTypeView.setImageResource(R.drawable.btn_fm_favorite_on);\n } else {\n viewHolder.mStationTypeView.setImageResource(0);\n }\n viewHolder.mStationFreqView.setText(FMRadioUtils.formatStation(stationFreq));\n viewHolder.mStationNameView.setText(stationName);\n }", "title": "" }, { "docid": "9694864df58b2ff681f73dcee1531205", "score": "0.5717904", "text": "@Override\n\tpublic void bindView(View arg0, Context arg1, Cursor arg2) {\n\n\t}", "title": "" }, { "docid": "f7df83b9b3ed8ede3f7611ffd124b544", "score": "0.57072055", "text": "@Override\n public void onBindViewHolder(final ItemViewHolder holder, int position) {\n holder.bind(items.get(holder.getAdapterPosition()));\n }", "title": "" }, { "docid": "3641bf8678032d91554d0e91d20931d9", "score": "0.5691538", "text": "public void showSearchItem(Object item)\r\n {\r\n }", "title": "" }, { "docid": "460a8e549ab31f11a1316fdf6d3752a3", "score": "0.56546503", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n TextView nameTextView = (TextView) view.findViewById(R.id.name);\n TextView genderTextView = (TextView) view.findViewById(R.id.gender);\n TextView weightTextView = (TextView) view.findViewById(R.id.weight);\n\n // Find the columns of pet attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(UserContract.UserEntry.COLUMN_USER_NAME);\n int genderColumnIndex = cursor.getColumnIndex(UserContract.UserEntry.COLUMN_USER_GENDER);\n int weightColumnIndex = cursor.getColumnIndex(UserContract.UserEntry.COLUMN_USER_WEIGHT);\n\n // Read the pet attributes from the Cursor for the current pet\n String userName = cursor.getString(nameColumnIndex);\n String userGender = cursor.getString(genderColumnIndex);\n String userWeight = cursor.getString(weightColumnIndex);\n\n // Update the TextViews with the attributes for the current pet\n nameTextView.setText(userName);\n genderTextView.setText(userGender);\n weightTextView.setText(userWeight);\n }", "title": "" }, { "docid": "904821d1b231a6ac58891fddb4c6dd92", "score": "0.56483316", "text": "@Override\n public void onBindViewHolder (BookViewHolder viewHolder,int position){\n BookEntity item = items.get(position);\n viewHolder.BookBind(item);\n }", "title": "" }, { "docid": "3e4fc0e3cc59eaa524f5f3b648c6141a", "score": "0.5643158", "text": "public ModelData getItem() {\n return item;\n }", "title": "" }, { "docid": "e8e7f813c02bdf6fd03282c42e97db44", "score": "0.56358624", "text": "public void itemClick(View view) {\n Intent myIntent = new Intent(this,\n ItemActivity.class);\n this.startActivity(myIntent);\n }", "title": "" }, { "docid": "fe5abb9eb5b44da733b77722a0cf5dfd", "score": "0.5627282", "text": "protected void populateItem(String key, ViewGroup item, int i) {\n\n }", "title": "" }, { "docid": "1047c5c5299281eb1cdcd6e8d54e96bc", "score": "0.56271404", "text": "public interface ItemViewProvider<T> {\n\n int itemLayoutResId();\n\n void bindItemData(ViewHolder holder, T itemData, int position);\n\n void onClick(View view, RecyclerView.ViewHolder holder, T itemData, int position);\n\n boolean onLongClick(View view, RecyclerView.ViewHolder holder, T itemData, int position);\n}", "title": "" }, { "docid": "a95d41068d2de4ba682aa95bee252c4b", "score": "0.5626511", "text": "@Override\n public void onBindViewHolder(PeopleAdapter.ViewHolder holder, int position) {\n //Get current sport\n Users currentUser = mUsers.get(position);\n //Populate the textviews with data\n holder.bindTo(currentUser);\n\n }", "title": "" }, { "docid": "c023cbc1eea55982a250b476ec088cb6", "score": "0.5620748", "text": "@Override\n public void bindView(final View view, final Context context, final Cursor cursor) {\n // Get the current position of the cursor in order to set a TAG with it on the sell button\n final int position = cursor.getPosition();\n\n // Find individual views that we want to modify in the list item layout\n TextView nameTextView = view.findViewById(R.id.name);\n TextView priceTextView = view.findViewById(R.id.unit_price_value);\n TextView quantityTextView = view.findViewById(R.id.stock_level_value);\n ImageView sellNowButtonImageView = view.findViewById(R.id.sell_button);\n ImageView editButtonImageView = view.findViewById(R.id.edit_button);\n\n // Set a TAG on the sell button with current position of cursor\n sellNowButtonImageView.setTag(position);\n\n // Set a TAG on the edit button with current position of cursor\n editButtonImageView.setTag(position);\n\n // Find the columns of book attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_BOOK_NAME);\n int priceColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_PRICE);\n int quantityColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_QUANTITY);\n\n // Read the book attributes from the Cursor for the current book\n String bookName = cursor.getString(nameColumnIndex);\n int bookPrice = cursor.getInt(priceColumnIndex);\n int bookQuantity = cursor.getInt(quantityColumnIndex);\n\n // Update the TextViews with the attributes for the current book\n nameTextView.setText(bookName);\n priceTextView.setText(context.getString(R.string.currency) + String.format(\"%,d\", bookPrice));\n quantityTextView.setText(String.valueOf(bookQuantity));\n\n sellNowButtonImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Integer position = (Integer) v.getTag();\n cursor.moveToPosition(position);\n Long rowId = cursor.getLong(cursor.getColumnIndex(BookEntry._ID));\n int quantityColumnIndex = cursor.getColumnIndex(BookEntry.COLUMN_QUANTITY);\n int currentQuantity = cursor.getInt(quantityColumnIndex);\n\n // If the stock level is still positive, then proceed with the sell of 1 unit\n if (currentQuantity > 0) {\n sellBookUnit(context, rowId, currentQuantity);\n } else {\n // Otherwise, show a toast message saying that the sell action is not possible\n // as the stock level has reached 0.\n Toast.makeText(context, context.getString(R.string.main_sell_book_item_failed_stock_empty),\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n editButtonImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(view.getContext(), EditorActivity.class);\n Integer position = (Integer) v.getTag();\n cursor.moveToPosition(position);\n Long rowId = cursor.getLong(cursor.getColumnIndex(BookEntry._ID));\n Uri currentBookURI = ContentUris.withAppendedId(BookEntry.CONTENT_URI, rowId);\n intent.setData(currentBookURI);\n context.startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "326da5d3f37d4e08f5e3ffd669462d2c", "score": "0.5614402", "text": "public UserViewHolder(@NonNull ItemUserBinding binding) {\n super(binding.getRoot());\n\n this.binding = binding;\n// name = itemView.findViewById(R.id.name);\n// messageBody = itemView.findViewById(R.id.message_body);\n// messageImage = itemView.findViewById(R.id.message_profile_image);\n\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ChatModel chatModel = list.get(getAdapterPosition());\n\n// Intent intent = new Intent(context, MessageActivity.class);\n Intent intent = new Intent(context, MessageActivity.class);\n intent.putExtra(Constants.KEY_CHAT_ID, chatModel.id);\n context.startActivity(intent);\n }\n });\n\n\n }", "title": "" }, { "docid": "d81de0c22626d7bf169cd2ebc97121f3", "score": "0.5608876", "text": "public void displayItem();", "title": "" }, { "docid": "06d1f9186037527d5a4bfcbe3ceb9a74", "score": "0.5595692", "text": "@Override\n\tprotected void bindEvent() {\n\t\tlv_adress.setOnItemClickListener(new itemclick(this) );\n\t}", "title": "" }, { "docid": "d86dff5db20cc116fadeff373f61202c", "score": "0.55916274", "text": "void bindView(View convertView){\n contactName = convertView.findViewById(R.id.contact_name);\n contactNumber = convertView.findViewById(R.id.contact_number);\n }", "title": "" }, { "docid": "8d3a6e399bf478abd05b0d09aa5caa05", "score": "0.55881053", "text": "private void loadDetailFragment(Reponses item) {\n this.detailFragment.update(item);\n }", "title": "" }, { "docid": "21ac2e02f71549577e9184a07ce61bf5", "score": "0.5581941", "text": "@Override\n\t \t\tpublic void itemClicked(VisualItem item, MouseEvent e) {\n\t \t\t\tsuper.itemClicked(item, e);\n\t \t\t\tString nome = item.getString(\"nome\");\n\t \t\t\tNodoData nodoData = NodoStatic.getNodoController(nome);\n\t \t\t\t\n\t\t\t\t\t\t\tif(nodoData != null){\n\t\t\t \t\t\t\tUpdate_view view = new Update_view(GrafoPanel.this, nodoData);\n\t\t\t \t\t\t\tview.setSize(450, 300);\n\t\t\t \t\t\t\tview.pack();\n\t\t\t \t\t\t\tview.setVisible(true);\n\t\t\t \t\t\t}\n\t \t\t\n\t \t}", "title": "" }, { "docid": "638302b0bf00b8286f20af868818ea07", "score": "0.5581367", "text": "public void itemView(int position) {\r\n\t\t// Get the cursor, positioned to the corresponding row in the result set\r\n\t\tCursor cursor = (Cursor) listView.getItemAtPosition(position);\r\n\r\n\t\tString _id = cursor.getString(cursor.getColumnIndexOrThrow(\"_id\"));\r\n\r\n\t\tNotificationManager mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\r\n\t\tmNotificationManager.cancelAll();\r\n\r\n\t\tstartActivity(new OpenContent(TrainingListView.this,\r\n\t\t\t\tAnnounceDBAdapter.SQLITE_TRAINING, _id).itemView());\r\n\r\n\t}", "title": "" }, { "docid": "4fdd234dfacf3405eb64e7d516eb64d8", "score": "0.55798346", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n\n TextView textviewContent = (TextView) view.findViewById(R.id.listitem_textview_content);\n String content = cursor.getString(cursor.getColumnIndex(LaterListSQLiteHelper.COLUMN_CONTENT));\n String formattedContent = UrlFinder.formatContent(content);\n textviewContent.setText(Html.fromHtml(formattedContent));\n textviewContent.setTextSize(PRIMARY_TEXT_SIZE);\n\n TextView textviewTime = (TextView) view.findViewById(R.id.listitem_textview_time);\n Date dateAddDtm = LaterListItem.getDateFromFormattedLong(cursor.getLong(cursor.getColumnIndex(LaterListSQLiteHelper.COLUMN_ADD_DTM)));\n textviewTime.setText(presentableDateFormat.format(dateAddDtm));\n textviewTime.setTextSize(PRIMARY_TEXT_SIZE - 2);\n\n TextView textviewId = (TextView) view.findViewById(R.id.listitem_textview_id);\n String id = cursor.getString(cursor.getColumnIndex(LaterListSQLiteHelper.COLUMN_ID));\n textviewId.setText(id);\n\n TextView textviewStatus = (TextView) view.findViewById(R.id.listitem_textview_status);\n int status = cursor.getInt(cursor.getColumnIndex(LaterListSQLiteHelper.COLUMN_STATUS));\n textviewStatus.setText(Integer.toString(status));\n }", "title": "" }, { "docid": "5fe9ed8a783a863a2296b75ff363b24a", "score": "0.5577131", "text": "public OfficeViewHolder(View itemView) {\n super(itemView);\n\n titleTextView = itemView.findViewById(R.id.title);\n priceTextView = itemView.findViewById(R.id.price);\n photoImageView = itemView.findViewById(R.id.photo);\n\n }", "title": "" }, { "docid": "38a799a2d5d96df350eaa120a35c9a1f", "score": "0.5565487", "text": "@Override\n public void onBindViewHolder(ViewHolderStructure vh, int index)\n {\n //pass the data to bind method in ViewHolderStructure. pass the qna and its index\n //index identifies the data element that ViewHolder should now display.\n vh.bind(qnaArrayList.get(index), index);\n }", "title": "" }, { "docid": "649df6779dd0a7fcf5121543c3a05637", "score": "0.55429476", "text": "private void updateItem(){\n// get item and send it to the form so it can fill in and update\n Item item = listModel.elementAt(rightClickIndex);\n if (item != null){\n new NewOrUpdateItem(item).setVisible(true);\n this.dispose();\n }\n getAllItems();\n }", "title": "" }, { "docid": "425008a04e074083657e75a1f0ef9ad8", "score": "0.55408794", "text": "public void itemOnClick(View v) {\n }", "title": "" }, { "docid": "1c7610719bb564ac9c9522279264f67e", "score": "0.5538995", "text": "@Override\n public void onBindViewHolder(NoteListAdapter.ViewHolder holder, int position) {\n\n final Note listItem = testItems.get(position);\n holder.textViewTitle.setText(listItem.getTitle());\n holder.textViewDNote.setText(listItem.getNote());\n holder.linearLayout.setOnClickListener(view -> {\n Intent intent = new Intent(context, EditorActivity.class);\n intent.putExtra(\"TITLE_EXTRA\", listItem.getTitle());\n context.startActivity(intent);\n Toast\n .makeText(context, \"Clicked on... \" + listItem.getTitle(), Toast.LENGTH_LONG)\n .show();\n });\n }", "title": "" }, { "docid": "cac717c5fc2327d5f0b93c8e1ba60ddd", "score": "0.55366427", "text": "private static void bindView(){\n\t\tPlayer player = GameEngine.getPlayer();\n\t\tViewBuilder.bind(player, GraphicEngine.getViewMain());\n\t\tViewBuilder.bind(player, GraphicEngine.getViewMinimap());\n\t}", "title": "" }, { "docid": "487e8f8ef6833ca3932d6214d17501a5", "score": "0.552592", "text": "@Override\n public void onBindViewHolder(TodoAdapter.ViewHolder viewHolder, int position) {\n TodoItem curTodo = mTodos.get(position); //TODO not sure that's necessary\n\n // Set item views based on your views and data model\n TextView textView = viewHolder.todoTextView;\n textView.setText(curTodo.getValue());\n }", "title": "" }, { "docid": "a487c4d4a433ad975fae4409c2e6cb9d", "score": "0.55253863", "text": "public void bindView() {\r\n\t\tview.getSelectedEvtTree()\r\n\t\t.addSelectionHandler(new SelectionHandler<TreeItem>(){\r\n\t\t\tpublic void onSelection(SelectionEvent<TreeItem> event) {\r\n\t\t\t\t//évite de recharger les donnée pour rien\r\n\t\t\t\tif(!event.getSelectedItem().equals(selectedItem)){\r\n\t\t\t\t\tsameItemSelected = false;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tsameItemSelected = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsetSelectedItem(event.getSelectedItem()); // fait des actions spécifique\r\n\t\t\t\t\r\n\t\t\t\t// l'arbo est aussi utilisé dans le userManger, mais il ne doit pas réagir à sa \r\n\t\t\t\tif(dispState != PageState.manageImage){\r\n\t\t\t\t\t//vérification des locks puis affichage dans l'event retour\r\n\t\t\t\t\teventBus.verifyPageLock((Long)event.getSelectedItem().getUserObject(), LockState.display);\r\n\t\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t\t}else {\r\n\t\t\t\t\tcreatePath();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tview.getExpandedEvtTree().addOpenHandler(new OpenHandler<TreeItem>(){\r\n\t\t\tpublic void onOpen(OpenEvent<TreeItem> event) {\r\n\t\t\t\texpandedItem = event.getTarget();\r\n\t\t\t\t// on ajoute les fils uniquement si sa n'a pas déjà été fait\r\n\t\t\t\tif(expandedItem.getChild(0).getUserObject()\r\n\t\t\t\t\t\t.getClass().getName().equals(new String(\"String\")));\r\n\t\t\t\t\tAddChildInTree();\r\n\t\t\t\t\t\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// commande pour la suppression d'une page\r\n\t\tthis.view.getPopUpMenuBar().setDelPageCommand(new Command(){\r\n\t\t\tpublic void execute() {\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t\tConfirmationBox confirmPopUp = new ConfirmationBox(\"ATTENTION\", view.getConstants().MsgDelPageAndChild());\r\n\t\t\t\tconfirmPopUp.getClickOkEvt().addClickHandler(new ClickHandler() {\r\n\t\t\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t\t\tdeletePage();\r\n\t\t\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t});\t\r\n\t\t\t}});\r\n\t\t\r\n\t\t// commande pour l'ajout d'une sous-page\r\n\t\tthis.view.getPopUpMenuBar().setRefreshCommand(new Command(){\r\n\t\t\tpublic void execute() {\r\n\t\t\t\tNavigationPanelPresenter.this.refreshChild();\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t}});\r\n\t\t\r\n\t\t// commande pour l'ajout d'une sous-page\r\n\t\tthis.view.getPopUpMenuBar().setAddPageCommand(new Command(){\r\n\t\t\tpublic void execute() {\r\n\t\t\t\tNavigationPanelPresenter.this.eventBus.addPage((Long) selectedItem.getUserObject());\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t}});\r\n\t\t\r\n\t\t// commande pour la modification d'une page\r\n\t\tthis.view.getPopUpMenuBar().setModifyPageCommand(new Command(){\r\n\t\t\tpublic void execute() {\r\n\t\t\t\t// demande de savoir l'état de la page et donc si on peut la modifié\r\n\t\t\t\tNavigationPanelPresenter.this.eventBus.\r\n\t\t\t\t\tverifyPageLock((Long) selectedItem.getUserObject(), LockState.modify);\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t}});\r\n\t\t\r\n\t\t// commande pour remonter une page dans la liste de fils\r\n\t\tthis.view.getPopUpMenuBar().setUpPageCommand(new Command() {\r\n\t\t\tpublic void execute() {\r\n\t\t\t\tupPageInTree();\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t}});\r\n\t\t\r\n\t\t// commande pour descendre une page dans la liste de fils\r\n\t\tthis.view.getPopUpMenuBar().setDownPageCommand(new Command() {\r\n\t\t\tpublic void execute() {\r\n\t\t\t\tdownPageInTree();\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t}});\r\n\t\t// commande pour afficher l'outil de reorganisation des fils\r\n\t\tthis.view.getPopUpMenuBar().setReorderPagesCommand(new Command() {\r\n\t\t\tpublic void execute() {\r\n\t\t\t\teventBus.startReorderPanel((Long)selectedItem.getUserObject());\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t}});\r\n\t\t// commande pour afficher l'outil de gestion des images\r\n\t\tthis.view.getPopUpMenuBar().setManageImagesCommand(new Command() {\r\n\t\t\tpublic void execute() {\r\n\t\t\t\t//fired this event to modify state into the pagePresenter\r\n\t\t\t\t//and make all test necessary before display imageManager\r\n\t\t\t\teventBus.menuImageManager();\r\n\t\t\t\tview.getPopUpMenuBar().hide();\r\n\t\t\t}});\r\n\t}", "title": "" }, { "docid": "8d5cc852df87472f0a3c918ae61b721d", "score": "0.551968", "text": "@Override\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n holder.itemValue.setText(items.get(position).getName().getFirst());\n\n final int pos = position;\n\n holder.layoutItem.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(cxt, DetailActivity.class);\n intent.putExtra(\"lastName\", items.get(pos).getName().getLast());\n intent.putExtra(\"gender\", items.get(pos).getGender());\n cxt.startActivity(intent);\n }\n });\n\n }", "title": "" }, { "docid": "87ba3a35406121adaf352922489c7a4a", "score": "0.55142033", "text": "void bind(IMenuModel model);", "title": "" }, { "docid": "eb850273245f4dfd8838eee90c3acd7f", "score": "0.5510624", "text": "@Override\n public void onBindViewHolder(ViewHolder viewHolder, int position) {\n viewHolder.bindTo(searchResults.get(position), clickListener);\n }", "title": "" }, { "docid": "561bbc121d5a9104259b5f3d53804fcb", "score": "0.55017966", "text": "void bindView(final List<Place> list, final int position) {\n mItemName.setText(list.get(position).getmName());\n mItemDescription.setText(list.get(position).getmDescription());\n mItemWebsite.setText(list.get(position).getmWebsite());\n mItemTel.setText(list.get(position).getmTel());\n mItemImg.setImageResource(list.get(position).getmImgSrc());\n\n //Listens when an item is clicked, and executes the interface's method\n mLayout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mCallback.onItemClicked(position, mItemName.getText().toString(),\n mItemDescription.getText().toString(),\n mItemWebsite.getText().toString(),\n mItemTel.getText().toString(), list.get(position).getmImgSrc());\n }\n });\n }", "title": "" }, { "docid": "b8f8c850927410cfa15e5a7566713098", "score": "0.55017436", "text": "protected View obtainItemView(ItemViewContext context){\n return mPageRecycler.obtainItemView(context);\n }", "title": "" }, { "docid": "e3d9e4f82b5bf74871a69d90fd58e38a", "score": "0.54957837", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n TextView tvTitle = (TextView) view.findViewById(R.id.title);\n TextView tvYear = (TextView) view.findViewById(R.id.year);\n TextView tvGenre = (TextView) view.findViewById(R.id.genre);\n\n // Extract properties from cursor\n String title = cursor.getString(cursor.getColumnIndexOrThrow(MovieEntry.COLUMN_TITLE));\n int year = cursor.getInt(cursor.getColumnIndexOrThrow(MovieEntry.COLUMN_YEAR));\n String genre = cursor.getString(cursor.getColumnIndexOrThrow(MovieEntry.COLUMN_GENRE));\n\n // Populate fields with extracted properties\n // TODO: Check if there is a year / genre\n tvTitle.setText(title);\n tvYear.setText(String.valueOf(year));\n tvGenre.setText(genre);\n }", "title": "" }, { "docid": "86dc8cf7903c1d0f488753b6bd6619e0", "score": "0.54905266", "text": "public interface RifaListItemView {\n void onItemRifaSaved();\n void onItemRifaUpdated(ItemRifa item);\n void setItemRifa(ItemRifa item);\n void setItemsRifa(List<ItemRifa> items);\n void showWin(ItemRifa item);\n}", "title": "" }, { "docid": "25fd4cc7bee8fa60b753a9a3b494e813", "score": "0.54895633", "text": "protected abstract void bindListViewHolder(ViewHolder viewHolder, int index, T data);", "title": "" }, { "docid": "28c09be6bdb918ae9ed307f1b20ede48", "score": "0.5472671", "text": "@Override\n public void onClick(Response.Item item, View view) {\n //Could've also made object parcelable and sent object in bundle\n Bundle args = new Bundle();\n\n String imageURL = item.getLinks().get(0).getHref();\n String title = item.getData().get(0).getTitle();\n String desc = item.getData().get(0).getDescription();\n String dateCreated = item.getData().get(0).getDate_created();\n\n args.putString(DetailFragment.BUNDLE_IMAGE_URL, imageURL);\n args.putString(DetailFragment.BUNDLE_TITLE, title);\n args.putString(DetailFragment.BUNDLE_DESC, desc);\n args.putString(DetailFragment.BUNDLE_DATE_CREATED, dateCreated);\n\n Log.i(TAG, \"Navigating to DetailFragment\");\n findNavController(view)\n .navigate(R.id.detailFragment, args);\n }", "title": "" }, { "docid": "76d433a49c6f1bce8f1ed2b6eba42537", "score": "0.5469495", "text": "@NonNull\n public static ItemTestBinding bind(@NonNull View rootView) {\n int id;\n missingId: {\n id = R.id.image;\n ShapeableImageView image = rootView.findViewById(id);\n if (image == null) {\n break missingId;\n }\n\n id = R.id.lnParent;\n LinearLayout lnParent = rootView.findViewById(id);\n if (lnParent == null) {\n break missingId;\n }\n\n id = R.id.txtDescription;\n TextView txtDescription = rootView.findViewById(id);\n if (txtDescription == null) {\n break missingId;\n }\n\n id = R.id.txtMoney;\n MaterialTextView txtMoney = rootView.findViewById(id);\n if (txtMoney == null) {\n break missingId;\n }\n\n id = R.id.txtQuestionCount;\n MaterialTextView txtQuestionCount = rootView.findViewById(id);\n if (txtQuestionCount == null) {\n break missingId;\n }\n\n id = R.id.txtTitle;\n TextView txtTitle = rootView.findViewById(id);\n if (txtTitle == null) {\n break missingId;\n }\n\n return new ItemTestBinding((LinearLayoutCompat) rootView, image, lnParent, txtDescription,\n txtMoney, txtQuestionCount, txtTitle);\n }\n String missingId = rootView.getResources().getResourceName(id);\n throw new NullPointerException(\"Missing required view with ID: \".concat(missingId));\n }", "title": "" }, { "docid": "2ebfc8b46e8d86228825c1c338fad15e", "score": "0.54674655", "text": "@Override\n public RemoteViews getViewAt(int position) {\n final RemoteViews remoteView = new RemoteViews(\n context.getPackageName(), R.layout.tournament_item_widget);\n Pair<String, String> listItem = listItemList.get(position);\n remoteView.setTextViewText(R.id.title, listItem.second);\n Intent fillInIntent = new Intent();\n fillInIntent.putExtra(DetailTournamentMatchesFragment.ARGUMENT_TOURNAMENT_ID, listItem.first);\n remoteView.setOnClickFillInIntent(R.id.itemClick, fillInIntent);\n return remoteView;\n }", "title": "" }, { "docid": "26a955a661cbb17a8b0d7eeb6a4a5f6b", "score": "0.5461925", "text": "public MyViewHolder(@NonNull View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n beerName = (TextView) itemView.findViewById(R.id.beerName);\n beerDesc = (TextView) itemView.findViewById(R.id.beerDesc);\n }", "title": "" }, { "docid": "a20dcd5a91049d9d755366ca2861588f", "score": "0.5456185", "text": "public interface ItemBinder<U, V extends RecyclerView.ViewHolder, B extends GraywaterAdapter.Binder<U, V, ? extends V>> {\n\t\t/**\n\t\t * @param model\n\t\t * \t\tthe model that will be bound.\n\t\t * @param position\n\t\t * \t\tthe position of the model in the list.\n\t\t * @return the list of binders to use.\n\t\t */\n\t\t@NonNull\n\t\tList<Provider<? extends B>> getBinderList(@NonNull U model, int position);\n\t}", "title": "" }, { "docid": "0744de8a04114564209d043efeab80a9", "score": "0.5454982", "text": "public AdapterHolder(View itemView) {\n super(itemView);\n\n studyName = (TextView) itemView.findViewById(R.id.tvStudyName);\n studyDescription = (TextView) itemView.findViewById(R.id.tvStudyDescription);\n itemView.setOnClickListener(this);\n\n }", "title": "" }, { "docid": "d0949b2df67be60b0a3f82e052197117", "score": "0.54518604", "text": "public ViewHolder(View itemView, final RecyclerViewAdapterDialogList.OnItemClickListener onClick) {\n super(itemView);\n ButterKnife.bind(this, itemView);\n\n layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onClick.onClick(getAdapterPosition());\n }\n });\n\n }", "title": "" }, { "docid": "4f957fc06d1b475d94ca307a9ba693ac", "score": "0.5448347", "text": "public MyHolder(View itemView) {\n super(itemView);\n recipeName = (TextView) itemView.findViewById(R.id.recipeName);\n recipeImage = (ImageView) itemView.findViewById(R.id.recipeImage);\n itemView.setOnClickListener(this);\n }", "title": "" }, { "docid": "f1f346ed783622f9a774eb7422ff8093", "score": "0.5445037", "text": "@Override\n public void onBindViewHolder(final MyViewHolder holder, final int position) {\n holder.mLocation = mDataset.get(position);\n holder.mContentView.setText(mDataset.get(position).getName());\n\n /*\n * set up a listener to handle if the user clicks on this list item, what should happen?\n */\n holder.mView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //on a phone, we need to change windows to the detail view\n //create our new intent with the new screen (activity)\n Intent intent = new Intent(getApplicationContext(), LocationDetailActivity.class);\n /*\n pass along the id of the location so we can retrieve the correct data in\n the next window\n */\n intent.putExtra(\"locationID\", \"\" + position);\n\n //now just display the new window\n startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "7bc8b862f85f007a2513372d16795041", "score": "0.5443472", "text": "@Override\n public void onBindViewHolder(@NonNull CoinHolder holder, final int position) {\n\n final Coin current = CoinStore.getCoinList().get(position);\n\n if (CoinStore.getCoinList() != null) {\n holder.bindTo(current);\n } else {\n holder.coinName.setText(\"No coin found\");\n }\n\n //TODO onClick\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Toast.makeText(mContext, \"ROW CLICKED\", Toast.LENGTH_SHORT).show();\n /*// Accordion\n // Get the current state of the item\n boolean expanded = current.isExpanded();\n // Change the state\n current.setExpanded(!expanded);\n // Notify the adapter\n notifyItemChanged(position);*/\n }\n });\n }", "title": "" }, { "docid": "13a8a1b662e9aa0e9ed4bebca2572f8b", "score": "0.54392076", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n int itemPosition = position;\n\n //ListView Clicked item value\n String itemValue = (String) lv.getItemAtPosition(position);\n\n globals.chosenProp = itemValue;\n\n goToPropView();\n }", "title": "" }, { "docid": "7bff0d4f258889737cb56f8b09ea039f", "score": "0.5438043", "text": "@Override\n\tprotected void getToView(String item) {\n\t\tsuper.getToView(item);\n\t\tclickOn(this.toggleComments);\n\t}", "title": "" }, { "docid": "721c8dc15d02b5eafc0840c8965c04a8", "score": "0.5434741", "text": "void doViewDataBindingVariable(ViewDataBinding viewDataBinding);", "title": "" }, { "docid": "271215c8f361fc3c4ffd95d11463a70a", "score": "0.54298425", "text": "@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n\n //find individual views\n TextView productNameTextView = view.findViewById(R.id.list_name);\n TextView productPriceTextView = view.findViewById(R.id.list_price);\n TextView productQuantityTextView = view.findViewById(R.id.list_quantity);\n ImageView productImageView = view.findViewById(R.id.list_image);\n Button saleButton = view.findViewById(R.id.list_sale_button);\n\n //find the columns of attributes we're interested in\n int productId = cursor.getColumnIndex(ProductEntry._ID);\n int productNameColumnIndex = cursor.getColumnIndexOrThrow(ProductEntry.COLUMN_PRODUCT_NAME);\n int productPriceColumnIndex = cursor.getColumnIndexOrThrow(ProductEntry.COLUMN_PRODUCT_PRICE);\n int productQuantityColumnIndex = cursor.getColumnIndexOrThrow(ProductEntry.COLUMN_PRODUCT_QUANTITY);\n int productImageColumnIndex = cursor.getColumnIndexOrThrow(ProductEntry.COLUMN_PRODUCT_IMAGE);\n\n //read the product attributes from the cursor of the current product\n String productName = cursor.getString(productNameColumnIndex);\n int productPrice = cursor.getInt(productPriceColumnIndex);\n final int productQuantity = cursor.getInt(productQuantityColumnIndex);\n String image = cursor.getString(productImageColumnIndex);\n final int id = cursor.getInt(productId);\n\n //update textview with attributes for the current product\n productNameTextView.setText(productName);\n productPriceTextView.setText(String.valueOf(productPrice));\n productQuantityTextView.setText(String.valueOf(productQuantity));\n productImageView.setImageURI(Uri.parse(image));\n\n //sale button\n //onclicklistener on sale button to update quantity if pressed\n saleButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (productQuantity > 0) {\n int qt = productQuantity - 1;\n Uri qtUri = ContentUris.withAppendedId(ProductEntry.CONTENT_URI, id);\n\n ContentValues values = new ContentValues();\n values.put(ProductEntry.COLUMN_PRODUCT_QUANTITY, qt);\n context.getContentResolver().update(qtUri, values, null, null);\n Toast.makeText(context, R.string.sale_button_success, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(context, R.string.sale_button_fail, Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "title": "" }, { "docid": "4ffee5216d5dc7a374454d1846c120ff", "score": "0.5426631", "text": "@Override\n\t\tpublic View getView(int pos, View view, ViewGroup arg2) {\n\t\t\tViewHolder vhold;\n\t\t\tPerson person = (Person) getItem(pos);\n\t\t\tif (view == null) {\n\t\t\t\tview = inflater.inflate(R.layout.layout_person, arg2, false);\n\t\t\t\tvhold = new ViewHolder(view);\n\t\t\t\tview.setTag(vhold);\n\t\t\t} else {\n\t\t\t\tvhold = (ViewHolder) view.getTag();\n\t\t\t}\n\t\t\tif (vhold != null) {\n\t\t\t\tvhold.setPerson(person);\n\t\t\t\tvhold.setVisible(person.visible);\n\t\t\t}\n\t\t\treturn view;\n\t\t}", "title": "" }, { "docid": "da7caf5a0e25f5a81884c2cf0756d9be", "score": "0.542476", "text": "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n\n TextView idtxt = (TextView) view.findViewById(R.id.id_txt);\n TextView apellidotxt = (TextView) view.findViewById(R.id.apellido_txt);\n TextView nombretxt = (TextView) view.findViewById(R.id.nombre_txt);\n TextView teltxt = (TextView) view.findViewById(R.id.phone_txt);\n // Extraccion de las propiedades del cursor\n\n int txtid = cursor.getInt(cursor.getColumnIndexOrThrow(\"_id\"));\n String txtapellido = cursor.getString(cursor.getColumnIndexOrThrow(\"apellido\"));\n String txtnombre = cursor.getString(cursor.getColumnIndexOrThrow(\"nombre\"));\n String txtphone = cursor.getString(cursor.getColumnIndexOrThrow(\"telefono\"));\n\n idtxt.setText(String.valueOf(txtid));\n apellidotxt.setText(txtapellido);\n nombretxt.setText(txtnombre);\n teltxt.setText(txtphone);\n\n }", "title": "" }, { "docid": "12bf9417e50283d652908bbea14e6155", "score": "0.54237306", "text": "@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n // Find individual views that we want to modify in the list item layout\n TextView mGameName = view.findViewById(R.id.game_name);\n TextView mGamePrice = view.findViewById(R.id.game_price);\n TextView mGameQuantity = view.findViewById(R.id.game_in_stock);\n ImageButton sellButton = view.findViewById(R.id.sell_button);\n\n // Find the columns of game attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(GameEntry.COLUMN_NAME);\n int priceColumnIndex = cursor.getColumnIndex(GameEntry.COLUMN_PRICE);\n int stockColumnIndex = cursor.getColumnIndex(GameEntry.COLUMN_QUANTITY);\n\n // Read the game attributes from the Cursor for the current pet\n String gameName = cursor.getString(nameColumnIndex);\n String gamePrice = cursor.getString(priceColumnIndex);\n String gameQuantity = cursor.getString(stockColumnIndex);\n\n\n //Add text to display values\n\n String gamePriceText = \"Price: \" + gamePrice + \" $\";\n String gameQuantityText = \"In stock: \" + gameQuantity + \" pcs\";\n\n // Update the TextViews with the attributes for the current game\n mGameName.setText(gameName);\n mGamePrice.setText(gamePriceText);\n mGameQuantity.setText(gameQuantityText);\n\n\n final int quantityColumnIndex = cursor.getColumnIndex(GameEntry.COLUMN_QUANTITY);\n String currentQuantity = cursor.getString(quantityColumnIndex);\n final int quantityIntCurrent = Integer.valueOf(currentQuantity);\n\n final int productId = cursor.getInt(cursor.getColumnIndex(GameEntry._ID));\n\n //Sell button which decrease quantity in storage\n sellButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n if (quantityIntCurrent > 0) {\n int newQuantity = quantityIntCurrent - 1;\n Uri quantityUri = ContentUris.withAppendedId(GameEntry.CONTENT_URI, productId);\n\n ContentValues values = new ContentValues();\n values.put(GameEntry.COLUMN_QUANTITY, newQuantity);\n context.getContentResolver().update(quantityUri, values, null, null);\n } else {\n Toast.makeText(context, \"This game is out of stock!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n }", "title": "" }, { "docid": "61d70a636bec5e824fea0584b91322e8", "score": "0.5414015", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tcontainer.addView(itemView);\n\t\t\t}", "title": "" } ]
b40317740cc1d96ce150b446d88f5f5c
Metodo alquiler que nos devuelve el resultado de la cuenta hecha para calcular el precio del bus
[ { "docid": "7797419b2183ed3c91366d3e9048d03a", "score": "0.6558849", "text": "@Override\r\n /**\r\n * Calculamos lo que cuesta alquilar el bus\r\n */\r\n public double alquiler ()\r\n {\r\n double importe_alquiler;\r\n importe_alquiler = this.getAlquiler_dias()*50+this.getNumero_plazas()*3.5;\r\n \r\n return importe_alquiler;\r\n }", "title": "" } ]
[ { "docid": "9a2d92a1790c03b75a755d8f33f2c4f4", "score": "0.6879297", "text": "@Override\n public double calcularPrecio(){\n double resultado =0;\n if(this.getFranja() == 0){\n resultado = this.getDuracion() * this.getPrecioUno();\n }else if(this.getFranja() == 1){ //Llamada: Lunes - Viernes 22:01 - 05:59\n resultado = this.getDuracion() * this.getPrecioDos();\n }else if (this.getFranja() == 2){ //Llamada: Sabado - Domingo 06:01 - 05:59\n resultado = this.getDuracion() * this.getPrecioTres();\n }\n return resultado;\n }", "title": "" }, { "docid": "43b043b861b26e5ba75864ec3ddc4103", "score": "0.66668946", "text": "public void calculaPrecio(){\n\t\tSystem.out.println(\"RESULTADO:\");\n\t\tfor(int i=0; i < compra.size(); i++){\n\t\t\tdouble impuestoProducto = 0.0;\n\t\t\tdouble totalProducto = 0.0;\n\n\t\t\tProducto actual = compra.get(i);\n\t\t\ttotalProducto += actual.getprecio();\n\t\t\tif (compra.get(i).getTipo().equals(tipo.IMPONIBLE)){\n\t\t\t\tdouble imp = actual.getprecio() * 0.1;\n\t\t\t\timpuestoProducto += ((double)Math.round(imp *100))/100;\n\t\t\t}\n\t\t\tif (compra.get(i).getImportado()){\n\t\t\t\tdouble imp = actual.getprecio() * 0.05;\n\t\t\t\timpuestoProducto += ((double)Math.round(imp *100))/100;\n\t\t\t}\n\n\t\t\ttotalProducto += impuestoProducto;\n\t\t\tSystem.out.println(\"1 \" + actual.getNombre() + \": \" + totalProducto + \" €\");\n\t\t\ttotal += totalProducto;\n\t\t\timpuesto += impuestoProducto;\n\t\t}\n\n\t\tSystem.out.println(\"impuesto sobre las ventas: \" + impuesto + \" €\");\n\t\tSystem.out.println(\"Total: \" + total + \" €\");\n\n\t}", "title": "" }, { "docid": "256582d82b365ce88a059b51b059fbbb", "score": "0.664202", "text": "abstract int calcularPrecioAlquiler();", "title": "" }, { "docid": "e9b202d8c934cdf3e83644a3112a56a6", "score": "0.6635335", "text": "double getTiempo_total();", "title": "" }, { "docid": "772759603b31dae57810ba5fb8f02ba0", "score": "0.64510065", "text": "public void calcularPrecio() {\n\t\tdouble precioMenu = 0.0;\n\t\tfor (Producto producto : productos) {\n\t\t\tprecioMenu = precioMenu + producto.getPrecio();\n\t\t}\n\t\t\n\t\tthis.precio = precioMenu;\n\t}", "title": "" }, { "docid": "94c73f50658e5ed1739e3ad06716801b", "score": "0.64432853", "text": "public float calificacionExamen(){\n float resultado=0;\n resultado=(this.examen_puntos_obtenidos / this.examen_reactivos)*100;\n return resultado;\n \n }", "title": "" }, { "docid": "db36a1406b79655f5375a98cefd03b96", "score": "0.63691795", "text": "public void calcularCostoInventario() {\n int numProductos = 0;\n int numExistencias = 0;\n double costos = 0;\n for (Producto producto : productos) {\n numProductos++;\n numExistencias += producto.getExistencias();\n costos += producto.getPrecioCompra();\n }\n System.out.println(\"En el inventario se cuenta con:\");\n System.out.println(\"***** \" + numProductos + \" productos diferentes *****\");\n System.out.println(\"de los cuales se cuenta con \" + numExistencias + \" existencias\");\n System.out.println(\"con un valor de $\" + costos + \" en total.\");\n }", "title": "" }, { "docid": "52fdb3e04c9fe648b76a1cac488fe855", "score": "0.6313171", "text": "public double calcularPrecio() {\n\t\tdouble output;\n\t\toutput = this.articulo.getPrecioObjetivo();\n\t\tif (!this.cliente.aplicarDescuento())\n\t\t\treturn output;\n\t\toutput -= this.articulo.calcularDescuento();\n\t\treturn output;\n\t}", "title": "" }, { "docid": "8d2812952ec2034f3b0841f07c337aa9", "score": "0.63003683", "text": "@Override\n public double valorTotal() {\n double precio;\n \n if(getColor() == \"Negro\"){\n precio = 150;\n }else if(getMarca() == \"Blanco\"){\n precio = 200;\n }else{\n precio= 50;\n }\n \n return precio;\n }", "title": "" }, { "docid": "4bed231738d5b0f5dab3fe1c8d598f47", "score": "0.6251275", "text": "public double pagoTotal(){\n return sueldo + bonificacionTrabajador() - descuentoTrabajador();\n }", "title": "" }, { "docid": "6e2a0043c3979571be9e4e1ae539424e", "score": "0.62496114", "text": "private void calculaMudancaPeso(double pesoUsual, double pesoAtual, String tempo) {\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\r\n\t\tdouble perdaPeso = (pesoUsual - pesoAtual) * 100 / pesoUsual;\r\n\t\tif (tempo != null && tempo.length() > 0) {\r\n\t\t\ttxPprtext.setVisible(true);\r\n\t\t\ttxPpr.setVisible(true);\r\n\t\t\ttxPpr.setText(df.format(perdaPeso) + \"% (BLACKBURN et al., 1977)\");\r\n\t\t\ttxTempotext.setVisible(true);\r\n\t\t\ttxTempo.setVisible(true);\r\n\t\t\tif (tempo.equalsIgnoreCase(\"1 semana\")) {\r\n\t\t\t\tif (perdaPeso <= 2) {\r\n\t\t\t\t\ttxTempo.setText(\"Moderada (LANG, 1987)\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttxTempo.setText(\"Intensa (LANG, 1987)\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (tempo.equalsIgnoreCase(\"1 mês\")) {\r\n\t\t\t\tif (perdaPeso <= 5) {\r\n\t\t\t\t\ttxTempo.setText(\"Moderada (LANG, 1987)\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttxTempo.setText(\"Intensa (LANG, 1987)\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (tempo.equalsIgnoreCase(\"3 meses\")) {\r\n\t\t\t\tif (perdaPeso <= 7.5) {\r\n\t\t\t\t\ttxTempo.setText(\"Moderada (LANG, 1987)\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttxTempo.setText(\"Intensa (LANG, 1987)\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (tempo.equalsIgnoreCase(\"6 meses ou mais\")) {\r\n\t\t\t\tif (perdaPeso <= 10) {\r\n\t\t\t\t\ttxTempo.setText(\"Moderada (LANG, 1987)\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttxTempo.setText(\"Intensa (LANG, 1987)\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\ttxPprtext.setVisible(false);\r\n\t\t\ttxPpr.setVisible(false);\r\n\t\t\ttxTempotext.setVisible(false);\r\n\t\t\ttxTempo.setVisible(false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8cfdc9c6ba8d98688100b5e396a15349", "score": "0.6245149", "text": "public double calTotalPaid(){\n\n double total;\n String[] timeQ = getTime();\n String strFee = fee;\n if(timeQ.length == 3){\n int hours = Integer.parseInt(timeQ[0]);\n int min = Integer.parseInt(timeQ[1]);\n int sec = Integer.parseInt(timeQ[2]);\n// total = (hours + min/60 + sec/3600) * Double.parseDouble(strFee)/60;\n total = (hours*60 + min + sec/60) * Double.parseDouble(strFee)/60;\n }else{\n int min = Integer.parseInt(timeQ[0]);\n int sec = Integer.parseInt(timeQ[1]);\n// total = (min/60 + sec/3600) * Double.parseDouble(strFee);\n total = (min + sec/60) * Double.parseDouble(strFee)/60;\n }\n\n\n /* if(total < 20){\n total = 20; // Base price.\n }*/\n return total;\n }", "title": "" }, { "docid": "e2b28e77004c9a35aa373873cc091b4f", "score": "0.623908", "text": "public double calcularPrecioTotal() {\n // Implementar este metodo la proxima clase\n return 0;\n }", "title": "" }, { "docid": "07279accebcd17a6c64d38545d175e61", "score": "0.6217903", "text": "public double calculaPreco() {\n double valor = this.quantidade * this.valorUnitario;\n return valor;\n }", "title": "" }, { "docid": "590ae44a79f6bc9b7c3f6ec8ae70b505", "score": "0.61954963", "text": "public double pesoTotal(){\n double peso = (double)this.pesounitario * this.quantidade;\n return peso;\n }", "title": "" }, { "docid": "1700b17fe1c35a9273044dc1c46ce34e", "score": "0.6188084", "text": "public double calcule_salaire() {\r\n return salaireBase + (100 * nbEmp);\r\n }", "title": "" }, { "docid": "12fff62586202ba1a63401a3544bef01", "score": "0.6181792", "text": "public void calcularBeneficiarioTotales(){\r\n\t\tBigDecimal bdPorcentajeTotalAportes= BigDecimal.ZERO;\r\n\t\tBigDecimal bdMontoTotalAportes= BigDecimal.ZERO;\r\n\t\tBigDecimal bdPorcentajeTotalRetiro= BigDecimal.ZERO;\r\n\t\tBigDecimal bdMontoTotalRetiro= BigDecimal.ZERO;\r\n\t\tBigDecimal bdMontoTotalBeneficiarios= BigDecimal.ZERO;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (BeneficiarioLiquidacion beneficiarioVista : listaBeneficiarioLiquidacionVista) {\r\n\t\t\t\tif(beneficiarioVista.getBdPorcentajeBeneficioApo()==null){\r\n\t\t\t\t\tbdPorcentajeTotalAportes = bdPorcentajeTotalAportes.add(BigDecimal.ZERO);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbdPorcentajeTotalAportes = bdPorcentajeTotalAportes.add(beneficiarioVista.getBdPorcentajeBeneficioApo());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(beneficiarioVista.getBdMontoAporte()==null){\r\n\t\t\t\t\tbdMontoTotalAportes = bdMontoTotalAportes.add(BigDecimal.ZERO);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbdMontoTotalAportes = bdMontoTotalAportes.add(beneficiarioVista.getBdMontoAporte());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(beneficiarioVista.getBdPorcentajeBeneficioRet()==null){\r\n\t\t\t\t\tbdPorcentajeTotalRetiro = bdPorcentajeTotalRetiro.add(BigDecimal.ZERO);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbdPorcentajeTotalRetiro = bdPorcentajeTotalRetiro.add(beneficiarioVista.getBdPorcentajeBeneficioRet());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(beneficiarioVista.getBdMontoRetiro()==null){\r\n\t\t\t\t\tbdMontoTotalRetiro = bdMontoTotalRetiro.add(BigDecimal.ZERO);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//03.06.2014 jchavez se adiciona interes calculado de fdo de retiro\r\n\t\t\t\t\tbdMontoTotalRetiro = bdMontoTotalRetiro.add(beneficiarioVista.getBdMontoRetiro());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(beneficiarioVista.getBdMontoTotal()==null){\r\n\t\t\t\t\tbdMontoTotalBeneficiarios = bdMontoTotalBeneficiarios.add(BigDecimal.ZERO);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tbdMontoTotalBeneficiarios = bdMontoTotalBeneficiarios.add(beneficiarioVista.getBdMontoTotal());\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(beneficiarioTotales == null){\r\n\t\t\t\tbeneficiarioTotales = new BeneficiarioLiquidacion();\t\r\n\t\t\t}\r\n\t\t\tbeneficiarioTotales.setBdPorcentajeBeneficioApo(bdPorcentajeTotalAportes);\r\n\t\t\tbeneficiarioTotales.setBdMontoAporte(bdMontoTotalAportes);\r\n\t\t\tbeneficiarioTotales.setBdPorcentajeBeneficioRet(bdPorcentajeTotalRetiro);\r\n\t\t\tbeneficiarioTotales.setBdMontoRetiro(bdMontoTotalRetiro);\r\n\t\t\tbeneficiarioTotales.setBdMontoTotal(bdMontoTotalBeneficiarios);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"Error en calcularBeneficiarioTotales ---> \"+e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "764d550803def708c450681541c79a91", "score": "0.6180424", "text": "public BigDecimal getTotalPesoDetalles()\r\n/* 789: */ {\r\n/* 790:864 */ return this.totalPesoDetalles;\r\n/* 791: */ }", "title": "" }, { "docid": "81beefcc1e0cb26202749051a9ed23c6", "score": "0.61600953", "text": "public int precio(){\n int valor=0;\r\n for (ProductoCarro prod: this.contenido){\r\n valor+=prod.getProd().getPrecio();\r\n }\r\n return valor;\r\n }", "title": "" }, { "docid": "a9bf928d3f25119327577b1897e11e98", "score": "0.61508036", "text": "@Override\r\n public double getPrecioEspecifico() {\n precioAutobus = getDatosTecnicos().getCilindrada() / FACTOR_CILINDRADA + FACTOR_NUMERO_PLAZAS * getDatosTecnicos().getNumeroPlazas();\r\n return precioAutobus;\r\n }", "title": "" }, { "docid": "d25fe1379f24db5a99f52f91fa932af9", "score": "0.613675", "text": "@SuppressLint(\"SetTextI18n\")\n private void calcularCuotasPrestamos()\n {\n double S = Double.parseDouble(txtMontoPrestamo.getText().toString());\n int n = (int) Double.parseDouble(txtPlazoArmotizacion.getText().toString());\n double J = Double.parseDouble(txtTipoInteres.getText().toString())/100;\n double m = 12;\n double i = J/m;\n double R;\n DecimalFormat df = new DecimalFormat(\"#.##\");\n\n R = S * i /1-((Math.pow(1+i,-n*m)));//Cuotas\n //Se envia el valor de la cuota\n objtPrestamosViewModel.setCuota(Double.parseDouble(df.format(R)));\n txtCantCuotas.setTextColor(Color.BLUE);\n txtCantCuotas.setText(\"Cuotas RD$ \"+df.format(R));\n objtPrestamosViewModel.setMonto(Double.parseDouble(df.format(S)));//Bien\n objtPrestamosViewModel.setTasaInteres(Double.parseDouble(df.format(J)));//Bien\n objtPrestamosViewModel.setPlazoArmotizacion(n);\n\n //Se procede a calcular los intereses ganados\n double monto = S*((Math.pow(1+i,n)));\n txtTotalInteres.setTextColor(Color.BLUE);\n\n txtTotalInteres.setText(\"Total Intereses RD$\"+df.format(monto-S));\n objtPrestamosViewModel.setTotalInteres(Double.valueOf(df.format(monto-S)));\n objtPrestamosViewModel.setMontoFinal(Double.valueOf(df.format(monto)));\n txtmontoFinal.setTextColor(Color.RED);\n txtmontoFinal.setText(\"Monto final RD$\"+df.format(monto));\n }", "title": "" }, { "docid": "19423af48ab2b8b03da1c00c0f5a52c0", "score": "0.6131588", "text": "public float getTotalPrecio() {\n\t\treturn (float)(cantidad*precio);\n\t}", "title": "" }, { "docid": "d7a45410580a4bc41068a5ebc9ae8849", "score": "0.6122541", "text": "public double calcular() {\n\t\treturn this.ingresso.getValor() - ( ( this.ingresso.getValor() * this.desconto.getValor()) / 100 ); \n\t\t\n\t}", "title": "" }, { "docid": "8e6dd759b43ba0989bac3cb0b7225bbe", "score": "0.6122266", "text": "@Override\n public double calcular(Contribuinte contribuinte){\n CalculoBase baseCalculo = new CalculoBase(contribuinte);\n double base = baseCalculo.calculoBaseCalculo();\n \n //define desconto simplificado\n double desconto = 0.05; \n \n //aplica desconto ao valor base\n double baseComDesconto = base - (base * desconto);\n \n //calcula valor a pagar utilizando a nova base, pos desconto\n CalculoValorPagamento valorPagamento = new CalculoValorPagamento(baseComDesconto);\n \n //retorna resultado de valor a pagar\n return valorPagamento.calculaValorPagamento();\n \n }", "title": "" }, { "docid": "4cebcdcc01246874b80a74dd615a5ae4", "score": "0.61071646", "text": "public double aPagar() {\n return peso * this.getPreco();\n }", "title": "" }, { "docid": "ae76ba7e2e88b60ff47d2d183ea6a163", "score": "0.6101869", "text": "private static void calcular() {\n\t\tint serie=0;\r\n\t\tfor(serie=0;serie<5;serie++) {\r\n\t\t\tsuma+=numeros[serie];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ce7bedf77131677df8a1c12aaf347c57", "score": "0.6092817", "text": "public double getFatTotalCli() {\n double res = 0;\n for (Map.Entry<Integer,Map<Produto,ValueProd>> v : this.meses.entrySet()){ //para cada mes\n int mes = v.getKey(); //para cada mes\n\n for(Map.Entry<Produto,ValueProd> vp : this.meses.get(mes).entrySet()){ //faturacao\n res += vp.getValue().getFact(); //faturacao anual do cliente\n }\n }\n return res;\n }", "title": "" }, { "docid": "ad400bdea9f87a0ef4d4b111a400890c", "score": "0.6069898", "text": "double getCantidad();", "title": "" }, { "docid": "5aea3f073662c2ca6cce7ac4edd5c2a4", "score": "0.60344696", "text": "public double CalcularPrecioHabitacion(int numHabitacion , String piso){ \r\n for(Habitacion e : habitaciones){\r\n if(e.getNumHab()==numHabitacion && e.getPiso().equals(piso))\r\n return e.getPrecioHab();\r\n }\r\n return 0;\r\n }", "title": "" }, { "docid": "28ce5788138f4344177959c6868671c3", "score": "0.60326576", "text": "public double calculaColaboracaoUASC() {\n\t\tif (this.getCusteio() <= 10000 && this.getCapital() <= 10000) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn 0.10 * this.calculaCustoTotal();\n\t}", "title": "" }, { "docid": "cc7fd5234a68961b36f6c65f77417f8f", "score": "0.60150373", "text": "public double disparar(){\r\n return (this.danio*this.precision)/100;\r\n }", "title": "" }, { "docid": "fe31756a8a20c75f6cb21ddb7daf81ca", "score": "0.6007108", "text": "private static Double calculaPorcentagem (Double valorPrevisto, Double variacao) {\r\n\t\r\n\t\tif (valorPrevisto != 0.0) {\r\n\t\t\tDouble porcentagem = variacao * 100 / valorPrevisto;\r\n\t\t\treturn porcentagem;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn 0.0;\r\n\t\t}\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "e75d926c192690afb5f1fb694b350d52", "score": "0.60027647", "text": "public void buscaOpcao6(TransacaoTipo listaTransacaoTipo){\n BigDecimal totalRecebido = BigDecimal.ZERO;\n for(Transacao transacao : listaTransacaoTipo.getRecebimentos()) {\n totalRecebido = totalRecebido.add(transacao.getValor().abs());\n }\n System.out.println(\"O total de dinheiro recebido foi de R$ \"+Transacao.formataValor(totalRecebido));\n System.out.println(PULA_LINHA);\n }", "title": "" }, { "docid": "aa73d879114f0be718f09aab5b6abe57", "score": "0.6002052", "text": "private Double calculeLaSommeApayer(Annonce annonce) {\n\t\t// Calculer Nombre d'heur à payer\n\t\tlong HeurFin= annonce.getHeure_fini().getTime() ;\n\t\tlong Heurdepart\t = annonce.getHeure_depart().getTime();\n\t\tlong nombreHeure = (HeurFin - Heurdepart) / (60 * 60 * 1000);\n\n\n\t\tDouble PrixPayer = nombreHeure * annonce.getPrix();\n\n\t\treturn PrixPayer;\n\t}", "title": "" }, { "docid": "f1d541e2a21b4c0c47b4d757d95679c0", "score": "0.6000405", "text": "public double calcularTotales(ArrayList<ArrayList<Object>> detalle, String tmpCantPreparado, String tmpCostoFormFarm)\n { double tmpSumaSubTotal = 0.0; \n double tmpMontoTotal = 0.0;\n double tmpCantEnvases = 0.0;\n double tmpCostoFF = 0.0 ;\n \n if(detalle.size()>0)\n { tmpCantEnvases = FarmaUtility.getDecimalNumber(tmpCantPreparado) ;\n tmpCostoFF = FarmaUtility.getDecimalNumber(tmpCostoFormFarm);\n }\n //se halla el costo total sumando los subtotales de los insumos y estandarizados\n if(detalle.size() > 0)\n { for( int i = 0; i < detalle.size(); i++)\n { double tmpSubTotalCalc = 0.0;\n ArrayList<Object> temp = detalle.get(i);\n try\n { tmpSubTotalCalc = FarmaUtility.getDecimalNumber(temp.get(7).toString());\n tmpSumaSubTotal = tmpSumaSubTotal + tmpSubTotalCalc;\n }\n catch(Exception ex)\n { log.error(\"\",ex);\n }\n }\n }\n \n //se aplica la formula del modulo heredado\n // TOTAL = CANT_FORM_FARM * CANT_ENV * (PREC_FORM_FARM + SUMA_SUB_TOT)\n tmpMontoTotal = 1 * tmpCantEnvases * ( tmpCostoFF + tmpSumaSubTotal);\n \n //se aplica IGV al total\n double auxPorcIgv; \n double valVenta = -1;\n try\n { auxPorcIgv = daoRecetario.getPorcIgv(ConstantsRecetario.COD_IGV_VIGENTE);\n \n valVenta = FarmaUtility.getDecimalNumberRedondeado(tmpMontoTotal);\n valVenta = UtilityModuloVenta.ajustarMonto(valVenta,2);\n VariablesRecetario.vValVenta = FarmaUtility.formatNumber(valVenta);\n VariablesRecetario.vValVentaSinRed = FarmaUtility.formatNumber(tmpMontoTotal,2);\n \n double valIgv = FarmaUtility.getDecimalNumberRedondeado(valVenta*(auxPorcIgv / 100));\n VariablesRecetario.vValIgv = FarmaUtility.formatNumber(valIgv);\n }\n catch(Exception e)\n { log.error(\"No recupero porcentaje de Igv.\\n\"+e);\n }\n \n return valVenta;\n }", "title": "" }, { "docid": "25e16ac838f56d81337fbcfb482419c9", "score": "0.5986595", "text": "public float RetornarTotalDetalleVenta(int id){\n float total1 = 0;\n String sql = \"SELECT * FROM detalleventa\"+\" WHERE venta_id='\"+id_aux+\"' && producto_id='\"+id+\"'\";\n Conexion con = new Conexion();\n Connection conexion = con.Conectar();\n Statement st;\n try{\n st = conexion.createStatement(); \n ResultSet resultado = st.executeQuery(sql);\n \n if(resultado.first()){\n total1 = Float.parseFloat(resultado.getString(\"Total\"));\n \n }\n \n \n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null,\"Datos incorrectos\",\"\",JOptionPane.ERROR_MESSAGE);\n \n //Logger.getLogger(Inventario.class.getName()).log(Level.SEVERE, null, ex);\n }\n return total1;\n }", "title": "" }, { "docid": "00e149f4578b012d05c8128386d7e5dc", "score": "0.5986194", "text": "public float precioConsumo() {\r\n float contador = 0;\r\n\r\n if (this.consumoEnergetico == 'A') {\r\n contador += 100;\r\n if (this.consumoEnergetico == 'B') {\r\n contador += 80;\r\n } else {\r\n if (this.consumoEnergetico == 'C') {\r\n contador += 60;\r\n } else {\r\n if (this.consumoEnergetico == 'D') {\r\n contador += 50;\r\n } else {\r\n if (this.consumoEnergetico == 'E') {\r\n contador += 30;\r\n } else {\r\n if (this.consumoEnergetico == 'F') {\r\n contador += 10;\r\n } else {\r\n contador = 0;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return contador;\r\n }", "title": "" }, { "docid": "febfc2b270119e5c426063cb8dc020bf", "score": "0.5981464", "text": "private void troco() {\n double valorPago;\n double troco;\n double total;\n // Linhas abaixo pega valores dos valores Jtextfield\n total = Double.parseDouble(txtValorTotalPedido.getText().replace(\",\", \".\"));\n valorPago = Double.parseDouble(txtValorPago.getText().replace(\",\", \".\"));\n // Calcula o valor Unitário * Quantidade e Soma com Valor já pedido.\n // Calcula o troco\n troco = valorPago - total;\n // Retorna os valores calculados.\n // Converter Double em 2 casas decimais\n DecimalFormat df = new DecimalFormat(\"###.00\");\n txtValorTotalPedido.setText(df.format(total).replace(\",\", \".\"));\n txtTroco.setText(df.format(troco).replace(\",\", \".\"));\n // Setar valor 0 no Total acumulado para não calcular novamente\n }", "title": "" }, { "docid": "d8898fe801d4e3122d06364c63c79fe8", "score": "0.59764576", "text": "public float promedio() {\n float suma = 0;\n for (Asignatura asignatura : asignaturaList) {\n\n suma += asignatura.getNota();\n }\n return (suma / asignaturaList.size());\n }", "title": "" }, { "docid": "8df4fb7612fa2d87a16bacfc63032a33", "score": "0.5975463", "text": "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\r\n \r\n double totaleuros;\r\n int oneeuro;\r\n int fiftycoins;\r\n int twentycoins;\r\n int tencoins;\r\n int fivecoins;\r\n int twocoins;\r\n int onecoins;\r\n \r\n System.out.print(\"enter the total euros\");\r\n totaleuros = input.nextDouble();\r\n \r\n //operaciones\r\n \r\n int totalcent = (int)(totaleuros * 100);\r\n oneeuro = totalcent / 100;\r\n fiftycoins = (totalcent%100) / 50 ;\r\n twentycoins = ((totalcent%100)%50) / 20;\r\n tencoins = (((totalcent%100)%50)%20)/ 10;\r\n fivecoins = ((((totalcent%100)%50)%20)%10) /5;\r\n twocoins = (((((totalcent%100)%50)%20)%10)%5) /2;\r\n onecoins = (((((totalcent%100)%50)%20)%10)%5)%2;\r\n \r\n \r\n \t\t \r\n System.out.println(totaleuros + \" son \" + oneeuro + \" monedas de un euro \" + fiftycoins \r\n \t\t + \" monedas de cincuenta centimos \" + twentycoins + \" monedas de veinte centimos \"\r\n \t\t + tencoins+ \" monedas de diez cetimos \"+ fivecoins+ \" monedas de cinco centimos \"+\r\n \t\t twocoins+ \" monedas de dos centimos \" + onecoins+ \" monedas de un centimo \");\t \r\n \r\n \r\n \r\n \r\n \r\n\t}", "title": "" }, { "docid": "4ae385adf6e9d2cd78b566b316045a95", "score": "0.59747624", "text": "public BigDecimal getPorcentajeRetener()\n/* 59: */ {\n/* 60:152 */ return this.porcentajeRetener;\n/* 61: */ }", "title": "" }, { "docid": "8a1d24d8024f6a8b689fce5eb8d95d8c", "score": "0.59652793", "text": "@Override\r\n public double hallarVolumen() {\r\n return largo*ancho*altura;\r\n \r\n }", "title": "" }, { "docid": "f53f26c0fe471a600ea3105f62dc6c19", "score": "0.5960673", "text": "@Test\n\tpublic void calcular_sumatoria_promedio(){\n\t\tRepositorioIndicadores repositorio = new RepositorioIndicadores();\n\t\tIndicador unIndicador = new Indicador(\"indicadorTestA2\", \"testCuenta * 5\");\n\t\tIndicador otroIndicador = new Indicador(\"indicadorTestB2\", \"testOtraCuenta + 10\");\n\t\t\n\t\trepositorio.agregar(unIndicador);\n\t\trepositorio.agregar(otroIndicador);\n\t\tValor unValor = new ValorIndicador(unIndicador.getNombre(), repositorio);\n\t\tSumatoria sumatoria = new Sumatoria(unValor);\n\t\tValor otroValor = new ValorIndicador(otroIndicador.getNombre(), repositorio);\n\t\tPromedio promedio = new Promedio(otroValor);\n\t\t\n\t\tEmpresa empresa = obtenerEmpresaParaTest();\n\t\t\n\t\tempresa.agregarCuenta(new Cuenta(\"testOtraCuenta\", \"2015\", \"15\"));\n\t\tempresa.agregarCuenta(new Cuenta(\"testOtraCuenta\", \"2016\", \"15\"));\n\t\tempresa.agregarCuenta(new Cuenta(\"testOtraCuenta\", \"2017\", \"15\"));\n\t\t\n\t\tAssert.assertEquals(sumatoria.calcular(empresa), 45.0, 0);\n\t\tAssert.assertEquals(promedio.calcular(empresa), 25.0, 0);\n\t}", "title": "" }, { "docid": "317dbf4933d216ad512219c559c1be84", "score": "0.5942727", "text": "public float monto(int codigo) throws DataAccessException{\n try{\n Connection con = BaseDeDatos.getInstance();\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(\"SELECT precio FROM pelicula WHERE codigo='\"+codigo+\"'\");\n float monto = 0;\n while(rs.next()){\n monto = rs.getFloat(\"precio\");\n }\n rs.close();\n st.close();\n return monto;\n }catch (Exception ex){throw new DataAccessException(\"Error en RegistroDAO.monto() \"+ex);}\n }", "title": "" }, { "docid": "de43ec1170cc3e4ff0ff1a0b3159b16e", "score": "0.5941485", "text": "public double darPromedioTotal( )\r\n {\r\n return encuesta.darPromedio( );\r\n }", "title": "" }, { "docid": "4f20e4eff53edb17a43b26fbc71e52c0", "score": "0.5940104", "text": "public float getCaloriasTotales(){\n return caloriasUsuario;\n }", "title": "" }, { "docid": "8d511b4d22a49bfcf81f4075f2d5bad8", "score": "0.5917266", "text": "private void soma() {\n double valorAcumulado;\n double valorUnitario;\n double quantidade;\n double valorPago;\n double troco;\n double total;\n // Linhas abaixo pega valores dos valores Jtextfield\n valorAcumulado = Double.parseDouble(txtValorAcumulado.getText().replace(\",\", \".\"));\n valorUnitario = Double.parseDouble(txtValorEntrada.getText().replace(\",\", \".\"));\n quantidade = Double.parseDouble(txtQtdEntrada.getText().replace(\",\", \".\"));\n valorPago = Double.parseDouble(txtValorPago.getText().replace(\",\", \".\"));\n // Calcula o valor Unitário * Quantidade e Soma com Valor já pedido.\n total = (valorUnitario * quantidade) + valorAcumulado;\n // Calcula o troco\n troco = valorPago - total;\n // Retorna os valores calculados.\n // Converter Double em 2 casas decimais\n DecimalFormat df = new DecimalFormat(\"###.00\");\n txtValorTotalPedido.setText(df.format(total).replace(\",\", \".\"));\n txtTroco.setText(df.format(troco).replace(\",\", \".\"));\n // Setar valor 0 no Total acumulado para não calcular novamente\n txtValorAcumulado.setText(df.format(total).replace(\",\", \".\"));\n }", "title": "" }, { "docid": "d154e405bf113f0df3e1a1591d87eb91", "score": "0.5912684", "text": "public void hacerCargo(double total){\n\t\t\n\t}", "title": "" }, { "docid": "fb021e4352089cb9be60986b374f069e", "score": "0.5894204", "text": "@Override\n\t\tpublic double calcolaPedaggio() {\n\t\t\n\t\tAutostrada a=caselloIn.codiceAutostrada;\n\t\tAutostrada b=caselloOut.codiceAutostrada;\n\t\tdouble y=a.getTariffaKm();\n\t\tdouble aggiunta=0;\n\t\t\n\t\t//mi prendo la classe del veicolo per poi calcolare l'aggiunta per la classe\n\t\tchar x=veicolo.getClasseveicolo();\n\t\t\n\t\tswitch(x) {\n\t\tcase 'B':\n\t\t\taggiunta=0.10;\n\t\t\tbreak;\n\t\tcase '3':\n\t\t\taggiunta=0.30;\n\t\t\tbreak;\n\t\tcase '4':\n\t\t\taggiunta = 0.50;\n\t\t\tbreak;\n\t\tcase '5':\n\t\t\taggiunta=0.70;\n\t\t\tbreak;\n\t\tdefault :\n\t\t\taggiunta=0.05; //Per default calcola l'aggiunta della classe A\n\t\t}\n\t\t\n\t\t\n\t\tif(a.equals(b)){\n\t\t\t\tdouble e=Math.abs(caselloIn.getAltezzaKm()-caselloOut.getAltezzaKm());\n\t\t\t\tdouble tot = e*y;\n\t\t\t\tfloat aggIVA= (float) (tot*(IVA)) ;\n\t\t\t\tdouble arr=(Math.round((tot + aggIVA)*10)/10)+aggiunta;\n\t\t\t\treturn arr;\t\t\n\t\t\t\t}\n\t\t\n\t\treturn 0;\n\t\t\n\t}", "title": "" }, { "docid": "3f6e06072d571c4de84551fad2dca312", "score": "0.589237", "text": "public double calculos(int opcion, double input1, double input2){\n DecimalFormat td = new DecimalFormat(\"#0.00\");\n \n if((input1 == 0 && input2 ==0) ){\n resultDisplay.setText(\"No se puede calcular\");\n }else{\n \n if(ps == 1){\n result = input1+input2;\n resultDisplay.setText(String.valueOf(td.format(result)));\n }else if(ps == 2){\n result = input1-input2;\n resultDisplay.setText(String.valueOf(td.format(result)));\n }else if(ps == 3){\n result = input1*input2;\n resultDisplay.setText(String.valueOf(td.format(result))); \n }else if(ps == 4){\n result = input1/input2;\n resultDisplay.setText(String.valueOf(td.format(result)));\n }\n }\n ps = 0;\n return result;\n }", "title": "" }, { "docid": "bbdbbf5bf1c188d8f670111f9e25114b", "score": "0.58849037", "text": "public double precio() {\n\n double total = items.stream().mapToDouble(item -> item.precio()).sum();\n\n return medio.precio(total, coeficienteDeRecargo, cuotas);\n }", "title": "" }, { "docid": "dfd0eb48e3a570d43b28f662a49658d2", "score": "0.58781147", "text": "public double consultarDeuda(){\n return montoPrestado - montoDevuelto;\n }", "title": "" }, { "docid": "d891589ab769fc83bf42762805afeca5", "score": "0.5871976", "text": "public void obtenerResultado(){\n\t\thabilitarRespuestaCasoPrueba = true;\t\t\n\t\ttry {\n\t\t\tcubeSummationDTO = cubeSummationWS.calcularSumaBloque(cubeSummationDTO);\n\t\t} catch (BusinessException e) {\n\t\t\tLogger.getLogger(CubeSummationMB.class.getName()).log(Level.SEVERE, null, e);\n\t\t\tUtil.lanzaMensajeWarn(e.getMessage());\n\t\t\tUtil.ejecutarUpdate(\":loginForm:msgCubeSummation\");\n\t\t}\n\t}", "title": "" }, { "docid": "64538775a2cd892e34e2f30655312df5", "score": "0.586564", "text": "long getTotalProduced();", "title": "" }, { "docid": "fe758b464a5064f682f1b16a03be6618", "score": "0.58561647", "text": "private int pago() {\n int pago_total = 0;\r\n for (Moneda not : this.ventaActual.getPagoMonedas()) {\r\n pago_total = pago_total + (not.getCantidad() * not.getDenominacion().getEnNumeros());\r\n }\r\n return pago_total;\r\n }", "title": "" }, { "docid": "e7871954428680be8811b862aab14e54", "score": "0.58510417", "text": "public double precoTotal() {\n\t\tdouble var = 0;\n\t\tfor (DetalhesEncomenda d : detalhesE) {\n\t\t\tvar += d.calcularPrecoTotal();\n\t\t}\n\t\treturn var;\n\t}", "title": "" }, { "docid": "a1ad48d94f254b1482fd7671f6a6a461", "score": "0.5845876", "text": "public ReporteTotalValor() {\r\n rutasTurnos= new ArrayList<>();\r\n super.darInstanciaMundo();\r\n rutasTurnos= mundo.seleccionarRutasDistintas();\r\n }", "title": "" }, { "docid": "ddea3312532d8e4dbc73f026dd165e87", "score": "0.5844517", "text": "private void rateiaValoresCabecalhoNosItens(CabecalhoPedido cabecalho) throws Exception {\r\n\t\t//Valores de Cabecalho\r\n\t\tBigDecimal valorFreteOperacao = cabecalho.getFrete();\r\n\t\tBigDecimal valorDescontoOperacao = cabecalho.getDesconto();\r\n\t\tBigDecimal valorIrOperacao = cabecalho.getIr();\r\n\t\tBigDecimal valorCsllOperacao = cabecalho.getCsll();\r\n\t\tBigDecimal valorCofinsOperacao = cabecalho.getCofins();\r\n\t\tBigDecimal valorIssOperacao = cabecalho.getIss();\r\n\t\tBigDecimal valorPisOperacao = cabecalho.getPis();\r\n\t\tBigDecimal valorInssOperacao = cabecalho.getInss();\r\n\r\n\t\t//Residuos\r\n\t\tBigDecimal valorResiduoFrete = new BigDecimal(0);\r\n\t\tBigDecimal valorResiduoDesconto = new BigDecimal(0);\r\n\t\tBigDecimal valorResiduoIr = new BigDecimal(0);\r\n\t\tBigDecimal valorResiduoCsll = new BigDecimal(0);\r\n\t\tBigDecimal valorResiduoCofins = new BigDecimal(0);\r\n\t\tBigDecimal valorResiduoIss = new BigDecimal(0);\r\n\t\tBigDecimal valorResiduoPis = new BigDecimal(0);\r\n\t\tBigDecimal valorResiduoInss = new BigDecimal(0);\r\n\r\n\t\tBigDecimal valorOperacao = new BigDecimal(0);\t\r\n\t\t\r\n\t\tList<ItemPedido> itensPedido = (List<ItemPedido>) cabecalho.getItensPedido();\r\n\t\tif (itensPedido != null) {\r\n\t\t\tvalorFreteOperacao = valorFreteOperacao == null ? new BigDecimal(0) : valorFreteOperacao;\r\n\t\t\tvalorDescontoOperacao = valorDescontoOperacao == null ? new BigDecimal(0) : valorDescontoOperacao;\r\n\t\t\tvalorIrOperacao = valorIrOperacao == null ? new BigDecimal(0) : valorIrOperacao;\r\n\t\t\tvalorCsllOperacao = valorCsllOperacao == null ? new BigDecimal(0) : valorCsllOperacao;\r\n\t\t\tvalorCofinsOperacao = valorCofinsOperacao == null ? new BigDecimal(0) : valorCofinsOperacao;\r\n\t\t\tvalorIssOperacao = valorIssOperacao == null ? new BigDecimal(0) : valorIssOperacao;\r\n\t\t\tvalorPisOperacao = valorPisOperacao == null ? new BigDecimal(0) : valorPisOperacao;\r\n\t\t\tvalorInssOperacao = valorInssOperacao == null ? new BigDecimal(0) : valorInssOperacao;\r\n\t\t\t\r\n\t\t\tfor (ItemPedido itemPedido : itensPedido) {\r\n\t\t\t\tvalorOperacao = valorOperacao.add( itemPedido.getTotal() );\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvalorResiduoFrete = valorFreteOperacao;\r\n\t\t\tvalorResiduoDesconto = valorDescontoOperacao;\r\n\t\t\tvalorResiduoIr = valorIrOperacao;\r\n\t\t\tvalorResiduoCsll = valorCsllOperacao;\r\n\t\t\tvalorResiduoCofins = valorCofinsOperacao;\r\n\t\t\tvalorResiduoIss = valorIssOperacao;\r\n\t\t\tvalorResiduoPis = valorPisOperacao;\r\n\t\t\tvalorResiduoInss = valorInssOperacao;\r\n\t\t\t\r\n\t\t\tfor (Iterator<ItemPedido> iterator = itensPedido.iterator(); iterator.hasNext(); ) {\r\n\t\t\t\tItemPedido itemPedido = (ItemPedido)iterator.next();\r\n\t\t\t\t\r\n\t\t\t\tif (itemPedido.getCabecalho().getTipoPedido().getId() != -89999999999294L) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tBigDecimal fator = itemPedido.getTotal().divide(valorOperacao, 9, BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\tBigDecimal valorFreteRateado = valorFreteOperacao.multiply(fator).setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\tBigDecimal valorDescontoRateado = valorDescontoOperacao.multiply(fator).setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\tBigDecimal valorIrRateado = valorIrOperacao.multiply(fator).setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\tBigDecimal valorCsllRateado = valorCsllOperacao.multiply(fator).setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\tBigDecimal valorCofinsRateado = valorCofinsOperacao.multiply(fator).setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\tBigDecimal valorIssRateado = valorIssOperacao.multiply(fator).setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\tBigDecimal valorPisRateado = valorPisOperacao.multiply(fator).setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\t\t\t\t\tBigDecimal valorInssRateado = valorInssOperacao.multiply(fator).setScale(2, BigDecimal.ROUND_HALF_UP);\r\n\t\r\n\t\t\t\t\tvalorResiduoFrete = valorResiduoFrete.subtract(valorFreteRateado);\r\n\t\t\t\t\tvalorResiduoDesconto = valorResiduoDesconto.subtract(valorDescontoRateado);\r\n\t\t\t\t\tvalorResiduoIr = valorResiduoIr.subtract(valorIrRateado);\r\n\t\t\t\t\tvalorResiduoCsll = valorResiduoCsll.subtract(valorCsllRateado);\r\n\t\t\t\t\tvalorResiduoCofins = valorResiduoCofins.subtract(valorCofinsRateado);\r\n\t\t\t\t\tvalorResiduoIss = valorResiduoIss.subtract(valorIssRateado);\r\n\t\t\t\t\tvalorResiduoPis = valorResiduoPis.subtract(valorPisRateado);\r\n\t\t\t\t\tvalorResiduoInss = valorResiduoInss.subtract(valorInssRateado);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!iterator.hasNext()) {\r\n\t\t\t\t\t\tvalorFreteRateado = valorFreteRateado.add(valorResiduoFrete);\r\n\t\t\t\t\t\tvalorDescontoRateado = valorDescontoRateado.add(valorResiduoDesconto);\r\n\t\t\t\t\t\tvalorIrRateado = valorIrRateado.add(valorResiduoIr);\r\n\t\t\t\t\t\tvalorCsllRateado = valorCsllRateado.add(valorResiduoCsll);\r\n\t\t\t\t\t\tvalorCofinsRateado = valorCofinsRateado.add(valorResiduoCofins);\r\n\t\t\t\t\t\tvalorIssRateado = valorIssRateado.add(valorResiduoIss);\r\n\t\t\t\t\t\tvalorPisRateado = valorPisRateado.add(valorResiduoPis);\r\n\t\t\t\t\t\tvalorInssRateado = valorInssRateado.add(valorResiduoInss);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\titemPedido.setFrete(valorFreteRateado);\r\n\t\t\t\t\titemPedido.setDesconto(valorDescontoRateado);\r\n\t\t\t\t\titemPedido.setIr(valorIrRateado);\r\n\t\t\t\t\titemPedido.setCsll(valorCsllRateado);\r\n\t\t\t\t\titemPedido.setCofins(valorCofinsRateado);\r\n\t\t\t\t\titemPedido.setIss(valorIssRateado);\r\n\t\t\t\t\titemPedido.setPis(valorPisRateado);\r\n\t\t\t\t\titemPedido.setInss(valorInssRateado);\r\n\t\t\t\t\t\r\n\t\t\t\t\titemPedido.setBase(itemPedido.getTotal()\r\n\t\t\t\t\t\t\t.add(itemPedido.getFrete())\r\n\t\t\t\t\t\t\t.subtract(itemPedido.getDesconto())\r\n\t\t\t\t\t\t\t.subtract(itemPedido.getDescontoItem() == null ? new BigDecimal(0) : itemPedido.getDescontoItem()));\r\n\t\t\t\t\t\r\n\t\t\t\t\titemPedido.setPrincipal(itemPedido.getBase()\r\n\t\t\t\t\t\t\t.add(itemPedido.getIr())\r\n\t\t\t\t\t\t\t.add(itemPedido.getCsll())\r\n\t\t\t\t\t\t\t.add(itemPedido.getCofins())\r\n\t\t\t\t\t\t\t.add(itemPedido.getIss())\r\n\t\t\t\t\t\t\t.add(itemPedido.getPis())\r\n\t\t\t\t\t\t\t.add(itemPedido.getInss()));\r\n\t\t\t\t} else {\r\n\t\t\t\t\titemPedido.setFrete(new BigDecimal(0));\r\n\t\t\t\t\titemPedido.setDesconto(new BigDecimal(0));\r\n\t\t\t\t\titemPedido.setBase(new BigDecimal(0));\r\n\t\t\t\t\titemPedido.setPrincipal(new BigDecimal(0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e4ebba8c8489fa06a6c9f5e085eb44bf", "score": "0.58443713", "text": "@Override\r\n public int calcularAlquiler(int dias) {\r\n return super.calcularAlquiler(dias) + this.numPlazas + estaRoto(true); //To change body of generated methods, choose Tools | Templates.\r\n }", "title": "" }, { "docid": "76029685a854a95b99e3a32b413608ad", "score": "0.58436173", "text": "public float getPrecioTotal() {\n return precioTotal;\n }", "title": "" }, { "docid": "8c6bae89cb5d0eb0ddcde1619c882d5f", "score": "0.584022", "text": "public double calcular(int cantidad) {\r\n\r\n\r\n\t\treturn super.calcular(cantidad);\r\n\t}", "title": "" }, { "docid": "d97c8400568f0cf50333e264275ac9a8", "score": "0.5827759", "text": "public Integer obtenerPesoCargado () {\r\n\t\tInteger pesoCargado=0;\r\n\t\tfor(Carga carga: cargas) {\r\n\t\t\tpesoCargado+=carga.getPeso();\r\n\t\t}\r\n\t\treturn pesoCargado;\r\n\t}", "title": "" }, { "docid": "49c56dd208cbeda49cf734c68d18276e", "score": "0.58249635", "text": "public int CalcularTotal()\n {\n return 1;\n }", "title": "" }, { "docid": "b53f2eea2ac74d5eeaaa73a545553beb", "score": "0.58230156", "text": "public void calculateResult() {\n\t\t\n\t}", "title": "" }, { "docid": "7238a28b71b447abce217a5413708339", "score": "0.58219993", "text": "public float precioFinal() {\r\n float contador = this.precioBase;\r\n contador += precioConsumo();\r\n contador += porPeso();\r\n\r\n return contador;\r\n }", "title": "" }, { "docid": "cd1dc1d927376e126ddb9862b548afe9", "score": "0.5821087", "text": "private void getPorcentagemPacienteConvenio() throws SQLException {\r\n ResultSet resultSet = DAO.getConsultarPorcentagemDePagamentoDeClienteEConvenio(con, handle_convenio);\r\n while (resultSet.next()) {\r\n // colocando dados nos objetos\r\n porcentPaciente = Double.valueOf(resultSet.getString(\"porcentPaciente\"));\r\n porcentConvenio = Double.valueOf(resultSet.getString(\"porcentConvenio\"));\r\n }\r\n }", "title": "" }, { "docid": "a14a6ba976fe2c48d147e5b7a0bab191", "score": "0.5814449", "text": "public static void muestaEstadisticasEquipo(int[] resultados) {\n\n\n System.out.println(\"Puntos totales \" + calculaPuntos(partidosGanados(resultados), partidosPerdidos(resultados), partidosEmpatados(resultados)));\n System.out.println(\"Han ganado \" + partidosGanados(resultados));\n System.out.println(\"Han empatado \" + partidosEmpatados(resultados));\n System.out.println(\"Han perdido \" + partidosPerdidos(resultados));\n\n System.out.println(\"Puntos totales en local \" + calculaPuntos(partidosGanados(filtraPartidosLocal(resultados)), partidosPerdidos(filtraPartidosLocal(resultados)), partidosEmpatados(filtraPartidosLocal(resultados))));\n System.out.println(\" En local han ganado \" + partidosGanados(filtraPartidosLocal(resultados)));\n System.out.println(\" En local han perdido \" + partidosPerdidos(filtraPartidosLocal(resultados)));\n System.out.println(\" En local han empatado \" + partidosEmpatados(filtraPartidosLocal(resultados)));\n\n System.out.println(\"Puntos totales en local \" + calculaPuntos(partidosGanados(filtraPartidosVisitante(resultados)), partidosPerdidos(filtraPartidosVisitante(resultados)), partidosEmpatados(filtraPartidosVisitante(resultados))));\n System.out.println(\" En local han ganado \" + partidosGanados(filtraPartidosVisitante(resultados)));\n System.out.println(\" En local han perdido \" + partidosPerdidos(filtraPartidosVisitante(resultados)));\n System.out.println(\" En local han empatado \" + partidosEmpatados(filtraPartidosVisitante(resultados)));\n }", "title": "" }, { "docid": "c0858411ef3fdb7679fed895fe0d4dbe", "score": "0.58013725", "text": "public double calcularPerimetro(){\n\t\treturn ((ancho*2) + (alto*2));\n\t}", "title": "" }, { "docid": "a079c75a92c281dc868b3d5a18935607", "score": "0.5800862", "text": "public static double[] chlorination(String caudal,String concentracionCl, String volTanque, String tRegarga, String hGoteoDia, String demCl, String clPricePerKG) {\n \tdouble[] res = new double[8];\n \tdouble vTank = Double.parseDouble(volTanque);\n \tdouble dC = Double.parseDouble(demCl); \n double flNat= Double.parseDouble(caudal); \n double hGoteo = Double.parseDouble(hGoteoDia);\n double dRecarga = Double.parseDouble(tRegarga); \n double perCl = Double.parseDouble(concentracionCl)/100;\n double clPrice = Double.valueOf(clPricePerKG);\n double cloroAdosificar= dC * flNat * DIA2S * hGoteo * dRecarga / (perCl * 24 * 1000000) ; // kg en el tiempo de recarga\n res[0] = cloroAdosificar*1000/dRecarga;// 1000 stands for g and dRecargar for day (g/day)\n res[1] = cloroAdosificar;// (kg/periodoRecarga)\n res[2] = cloroAdosificar*30.5/dRecarga;// 30 stands for days in month and dRecargar for day (kg/month)\n double caudalGoteo = vTank/(dRecarga*hGoteo*60); // 60 stands for min (l/min)\n res[3] = caudalGoteo;//l/min\n res[4] = caudalGoteo*1000;//1000 stands for ml (ml/min)\n res[5] = caudalGoteo*1000*ML2GOTAS; //1000 stands for ml (gotas/min)\n \n // Prices\n res[6] = res[1] * clPrice;\n res[7] = res[2] * clPrice;\n return res; \n }", "title": "" }, { "docid": "1a5137b28562e5043ea69e3c12243a9d", "score": "0.57985574", "text": "void calcularTiempos()\n {\n float latencia_media;\n\n for (int i = 0; i < Latencias.size(); i++) {\n latencia_media = 0;\n for (int j = 0; j < Latencias.get(i).size(); j++) {\n latencia_media += Latencias.get(i).get(j);\n }\n\n latencia_media = latencia_media / Latencias.get(i).size();\n Latencias.set(i, new ArrayList());\n Latencias.get(i).add((long) latencia_media);\n padre.print(\"Latencia medio del grupo \" + i + \" = \" + latencia_media + \" ms.\\n\");\n }\n latencia_media = 0;\n for (int i = 0; i < Latencias.size(); i++) {\n latencia_media += Latencias.get(i).get(0);\n }\n latencia_media = latencia_media / Latencias.size();\n padre.print(\"Latencia media total = \" + latencia_media + \" ms.\\n\");\n\n }", "title": "" }, { "docid": "f6039448a0de9fdbe75f1cb058cefea1", "score": "0.5797484", "text": "public void perfil(Celular aux) {\r\n\r\n analise = \" A partir das analises realizadas, \";\r\n\r\n if (aux.hardware >= 3.0 && aux.desempenho >= 3.0) {\r\n\r\n analise = analise + \"Voce é um usuario \"\r\n + \"que se importa muito com aplicações que exigem bom poder \"\r\n + \"de processamento, como jogos por exemplo. Leva em consideração \"\r\n + \"uma boa combinação entre hardware e desempenho. \";\r\n }\r\n\r\n if (aux.hardware < 3.0 && aux.desempenho < 3.0) {\r\n\r\n analise = analise + \"Voce e um usuario que não exige muito de desempenho \"\r\n + \"do smartphone, apenas uso casual. \";\r\n }\r\n\r\n if (aux.hardware < 3.0 && aux.desempenho >= 3.0) {\r\n\r\n analise = analise + \"Voce e um usuario que não exige muito hardware do seu \"\r\n + \"aprelho, entretanto exige um sitema que funcione bem, \"\r\n + \"que utilize o hardware da melhor forma possivel. \";\r\n }\r\n\r\n if (aux.hardware >= 3.0 && aux.desempenho < 3.0) {\r\n\r\n analise = analise + \"Voce e um usuario que exige muito hardware do seu aprelho, \"\r\n + \"entretanto não se importa muito com sistemas atualizados \"\r\n + \"por exemplo, acredita que um hardware potente consegue de \"\r\n + \"certa forma compensar sistemas lentos , ou antigos. \";\r\n }\r\n\r\n if (aux.custoBe <= 2.0) {\r\n\r\n analise = analise + \"Porem esta disposto a pagar por suas necessidades, dentro \"\r\n + \"do seus limites é claro. \";\r\n }\r\n\r\n if (aux.custoBe >= 3.0) {\r\n\r\n analise = analise + \"E leva muito em consideração o valor atribuido a esse \"\r\n + \"produto. \";\r\n }\r\n\r\n if (aux.camera <= 2.0) {\r\n\r\n analise = analise + \"Enxerga a camera apenas com uma ferramenta necessaria, \"\r\n + \"nada demais. \";\r\n }\r\n\r\n if (aux.camera >= 3.0) {\r\n\r\n analise = analise + \"Não abre mão de uma boa camera para registrar seus momentos. \";\r\n }\r\n\r\n if (aux.tela <= 2.0) {\r\n\r\n analise = analise + \"Para economizar um pouco não da aquela importancia pra tela, \"\r\n + \"não enxerga esse fato como diferencial. \";\r\n }\r\n\r\n if (aux.tela >= 3.0 && aux.camera >= 3.0 && aux.hardware >= 3.0 && aux.desempenho >= 3.0) {\r\n\r\n analise = analise + \"Da impotancia para tela, afinal ela te ajuda muito em \"\r\n + \"determinados jogos por exemplo, voce tambem da impotancia \"\r\n + \"a suas fotos, então uma tela te auxilia para vizuali-lás. \";\r\n }\r\n\r\n if (aux.tela >= 3.0 && aux.camera >= 3.0 && aux.hardware < 3.0 && aux.desempenho < 3.0) {\r\n\r\n analise = analise + \"Da impotancia para tela, afinal ela é importante para \"\r\n + \"vizualizar suas fotos por exemplo. \";\r\n }\r\n\r\n if (aux.tela >= 3 && aux.camera < 3 && aux.hardware >= 3 || aux.desempenho >= 3) {\r\n\r\n analise = analise + \"Da impotancia para tela, afinal ela te ajuda muito em \"\r\n + \"determinados jogos por exemplo. \";\r\n }\r\n\r\n analise = analise + \"Estes são os possíveis Smartphones que lhe atendem: \";\r\n\r\n }", "title": "" }, { "docid": "afa5f5d440859ed50769284effbfb26e", "score": "0.5796321", "text": "public List<BeneficiarioLiquidacion> calcularMontosPorcentajeBeneficiarios(){\r\n\t\tList<BeneficiarioLiquidacion> listaBeneficiarios = null;\r\n\t\ttry {\r\n\t\t\tif(listaBeneficiarioLiquidacionVista != null && !listaBeneficiarioLiquidacionVista.isEmpty()){\r\n\t\t\t\t \r\n\t\t\t\tlistaBeneficiarios = new ArrayList<BeneficiarioLiquidacion>();\r\n\r\n\t\t\t\tfor (BeneficiarioLiquidacion beneficiarioVista : listaBeneficiarioLiquidacionVista) {\r\n\t\t\t\t\tBigDecimal bdMontoTotalBeneficio = BigDecimal.ZERO;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Aportes ------------------------------->\r\n\t\t\t\t\tif(beanCuentaConceptoAportes != null && beanCuentaConceptoAportes.getCuentaConcepto().getListaCuentaDetalleBeneficio() != null\r\n\t\t\t\t\t\t&& !beanCuentaConceptoAportes.getCuentaConcepto().getListaCuentaDetalleBeneficio().isEmpty()){\r\n\t\t\t\t\t\tList<CuentaDetalleBeneficio> listaDetalleBeneficio = null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlistaDetalleBeneficio = beanCuentaConceptoAportes.getCuentaConcepto().getListaCuentaDetalleBeneficio();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(listaDetalleBeneficio != null && !listaDetalleBeneficio.isEmpty()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (CuentaDetalleBeneficio cuentaDetalleBeneficio : listaDetalleBeneficio) {\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(cuentaDetalleBeneficio.getIntItemVinculo().compareTo(beneficiarioVista.getIntItemViculo())==0){\r\n\t\t\t\t\t\t\t\t\t\tbeneficiarioVista.setBdPorcentajeBeneficioApo(cuentaDetalleBeneficio.getBdPorcentaje()== null ? BigDecimal.ZERO :cuentaDetalleBeneficio.getBdPorcentaje() );\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tif(beneficiarioVista.getBdPorcentajeBeneficioApo() != null && beneficiarioVista.getBdPorcentajeBeneficioApo().compareTo(BigDecimal.ZERO)!=0){\r\n\t\t\t\t\t\t\t\t\t\t\tbeneficiarioVista.setBdMontoAporte(beanCuentaConceptoAportes.getCuentaConcepto().getBdSaldo().multiply(beneficiarioVista.getBdPorcentajeBeneficioApo()).divide(new BigDecimal(100)));\r\n\t\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\t\tbeneficiarioVista.setBdMontoAporte(BigDecimal.ZERO);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbdMontoTotalBeneficio = bdMontoTotalBeneficio.add(beneficiarioVista.getBdMontoAporte());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Retiro -------------------------------------->\r\n\t\t\t\t\tif(beanCuentaConceptoRetiro != null && beanCuentaConceptoRetiro.getCuentaConcepto().getListaCuentaDetalleBeneficio() != null\r\n\t\t\t\t\t\t\t&& !beanCuentaConceptoRetiro.getCuentaConcepto().getListaCuentaDetalleBeneficio().isEmpty()){\r\n\t\t\t\t\t\t\tList<CuentaDetalleBeneficio> listaDetalleBeneficio = null;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlistaDetalleBeneficio = beanCuentaConceptoRetiro.getCuentaConcepto().getListaCuentaDetalleBeneficio();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(listaDetalleBeneficio != null && !listaDetalleBeneficio.isEmpty()){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tfor (CuentaDetalleBeneficio cuentaDetalleBeneficio : listaDetalleBeneficio) {\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tif(cuentaDetalleBeneficio.getIntItemVinculo().compareTo(beneficiarioVista.getIntItemViculo())==0){\r\n\t\t\t\t\t\t\t\t\t\t\tbeneficiarioVista.setBdPorcentajeBeneficioRet(cuentaDetalleBeneficio.getBdPorcentaje()== null ? BigDecimal.ZERO :cuentaDetalleBeneficio.getBdPorcentaje() );\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tif(beneficiarioVista.getBdPorcentajeBeneficioRet() != null && beneficiarioVista.getBdPorcentajeBeneficioRet().compareTo(BigDecimal.ZERO)!=0){\r\n\t\t\t\t\t\t\t\t\t\t\t\t//jchavez 03.06.2014 se agraga interes de fdo de retiro \r\n\t\t\t\t\t\t\t\t\t\t\t\tbeneficiarioVista.setBdMontoRetiro((beanCuentaConceptoRetiro.getCuentaConcepto().getBdSaldo().add(bdMontoInteresFdoRetiro)).multiply(beneficiarioVista.getBdPorcentajeBeneficioRet()).divide(new BigDecimal(100)));\r\n\t\t\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\t\t\tbeneficiarioVista.setBdMontoRetiro(BigDecimal.ZERO);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbdMontoTotalBeneficio = bdMontoTotalBeneficio.add(beneficiarioVista.getBdMontoRetiro());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Agremos el beneficiario con todo calculado a la lista.\r\n\t\t\t\t\tbeneficiarioVista.setBdMontoTotal(bdMontoTotalBeneficio);\r\n\t\t\t\t\tlistaBeneficiarios.add(beneficiarioVista);\r\n\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"Error calcularMontosPorcentajeBeneficiarios --> \"+e);\r\n\t\t}\r\n\t\t\r\n\t\treturn listaBeneficiarios ;\r\n\t}", "title": "" }, { "docid": "2e1589fa458ffc410ea6f2ccb7dce7c7", "score": "0.57912827", "text": "public float porPeso() {\r\n float contadorPeso = 0;\r\n if (this.peso >= 0 && this.peso <= 19) {\r\n contadorPeso += 10;\r\n } else {\r\n if (this.peso >= 20 && this.peso <= 49) {\r\n contadorPeso = +50;\r\n } else {\r\n if (this.peso >= 50 && this.peso <= 79) {\r\n contadorPeso += 80;\r\n } else {\r\n if (this.peso > 80) {\r\n contadorPeso += 100;\r\n } else {\r\n contadorPeso = 0;\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n return contadorPeso;\r\n }", "title": "" }, { "docid": "73bb91cd4cf6d96a0998945616fe5eca", "score": "0.5788881", "text": "@Test\n public void Test_CalcularValorTotal() {\n //Con plan europeo \n huesped.setPlan(\"Europeo\");\n reserva.setHuesped(huesped);\n COSTO_TOTAL_CON_PLAN = new IOHuespedes().LiquidarHuesped(reserva).getHuesped().getFactura().getValorTotal();\n assertEquals(COSTO_TOTAL_CON_PLAN, huesped.getFactura().getValorTotal());\n //Sin plan europeo\n huesped.setPlan(\"Todo Incluido\");\n reserva.setHuesped(huesped);\n COSTO_TOTAL_SIN_PLAN = new IOHuespedes().LiquidarHuesped(reserva).getHuesped().getFactura().getValorTotal();\n assertEquals(COSTO_TOTAL_SIN_PLAN, huesped.getFactura().getValorTotal());\n }", "title": "" }, { "docid": "681a92b8528d4b99331e5a178c670c05", "score": "0.5786808", "text": "public void mostrarDatos(){\n if(proteinasIngeridas!=0 || carbohidratosIngeridos!=0 || grasasIngeridas!=0){\n float totalGramos = proteinasIngeridas + carbohidratosIngeridos + grasasIngeridas;\n System.out.println(\"Nombre: \\t\\t\\t\\t\\t\" + nombreCompleto);\n System.out.println(\"Gramos totales de proteinas ingeridos: \\t\\t\" + proteinasIngeridas + \"(\" + ((proteinasIngeridas/totalGramos)*100) + \"%)\");\n System.out.println(\"Gramos totales de carbohidratos ingeridos: \\t\" + carbohidratosIngeridos + \"(\" + ((carbohidratosIngeridos/totalGramos)*100) + \"%)\");\n System.out.println(\"Gramos totales de grasas ingeridos: \\t\\t\" + grasasIngeridas + \"(\" + ((grasasIngeridas/totalGramos)*100) + \"%)\");\n System.out.println(\"Calorias totales ingeridas: \\t\\t\\t\" + caloriasUsuario);\n }\n else{\n System.out.println(\"Nombre: \\t\\t\\t\\t\\t\" + nombreCompleto);\n System.out.println(\"Gramos totales de proteinas ingeridos: \\t\\t\" + proteinasIngeridas);\n System.out.println(\"Gramos totales de carbohidratos ingeridos: \\t\" + carbohidratosIngeridos);\n System.out.println(\"Gramos totales de grasas ingeridos: \\t\\t\" + grasasIngeridas);\n System.out.println(\"Calorias totales ingeridas: \\t\\t\\t\" + caloriasUsuario);\n }\n }", "title": "" }, { "docid": "2cda936bedb9f90f2ebfe037f75b146b", "score": "0.57801", "text": "public java.math.BigDecimal getTotalTaskEstimatedTime(int taskid, int idMember,\n Timestamp start, Timestamp end, int idAccount) throws PersistenceBrokerException {\n System.out.println(\"getTotalTaskEstimatedTime\");\n \n // Query of all the schedules\n Criteria criteria = new Criteria();\n criteria.addEqualTo(\"task\", new Integer(taskid)); \n criteria.addEqualTo(\"member\", new Integer(idMember)); \n criteria.addEqualTo(\"id_account\", Integer.valueOf(\"\" + idAccount));\n // Restringido en el espacio de fechas dadas.\n criteria.addGreaterOrEqualThan(\"day\", start);\n criteria.addLessOrEqualThan(\"day\", end); \n ReportQueryByCriteria q = QueryFactory.newReportQuery(calendarData.class, criteria);\n // define the 'columns' of the report\n q.setColumns(new String[] { \" sum(hour_end - hour_start), sum(min_end - min_start) \"});\n Iterator iter = broker.getReportQueryIteratorByQuery(q);\n Integer totalHoras = new Integer(0);\n Integer totalMin = new Integer(0);\n if (iter.hasNext()) {\n Object[] arr = (Object[]) iter.next(); \n if (arr[0] != null) {\n //totalHoras = new Integer(((java.math.BigDecimal) arr[0]).intValue());\n totalHoras = new Integer(arr[0].toString());\n try {\n //totalMin = new Integer(((java.math.BigDecimal) arr[1]).intValue());\n totalMin = new Integer(arr[1].toString());\n } catch (Exception e) {\n totalMin = new Integer(0);\n }\n }\n /* else if (arr[0] != null) {\n totalHoras = (Integer)new Integer(arr[0].toString());\n totalMin = (Integer) new Integer(arr[1].toString());\n }*/ \n \n // En caso de que sea nulo el resultado, se regresa 0\n if (totalHoras == null)\n totalHoras = new Integer(0); \n if (totalMin == null)\n totalMin = new Integer(0); \n } \n // Se toman los minutos y se dividen entre 60, para sumarlos a las horas\n int subTotal = totalHoras.intValue();\n subTotal += totalMin.intValue() / 60; \n // Se pasa a un string.\n String val = \"\" + subTotal; \n \n // Se modifica la variable privada de total\n return new java.math.BigDecimal(val); \n }", "title": "" }, { "docid": "96a32fe5745598edc26c8c03ffc5093f", "score": "0.57678735", "text": "public void getTotal() {\n\t\t \n\t\t \n\t\tInvoiceDao.getFacturas().get(0).getItems().stream()\n\t\t\t.<BigDecimal>map(invoiceItem->invoiceItem.getPricePerUnit().multiply(BigDecimal.valueOf(invoiceItem.getQuantity())))\n\t\t\t.collect(Collectors.reducing(BigDecimal.ZERO,(sum, elem)->sum.add(elem)));\n\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t \n\t\t \n\t }", "title": "" }, { "docid": "6cc99b86054b17660e0cca4b83dc29bc", "score": "0.5762789", "text": "@Override\n\tpublic float themCoPhan(Scanner sc) {\n\t\tdo {\n\t\t\tthis.coPhan = Float.parseFloat(nhapGiaTri(\"\", sc, \"Nhập số cổ phần: \"));\n\t\t\tif (this.coPhan < 0 || this.coPhan > 100) {\n\t\t\t\tSystem.out.println(\"SAI. Số cổ phần lớn nhất là 100 phần trăm !\");\n\t\t\t}\n\t\t} while (this.coPhan < 0 || this.coPhan > 100);\n\n\t\treturn this.coPhan;\n\t}", "title": "" }, { "docid": "a482ee8e5cc23812f83560b7dba06e73", "score": "0.57597226", "text": "long getTotal();", "title": "" }, { "docid": "a482ee8e5cc23812f83560b7dba06e73", "score": "0.57597226", "text": "long getTotal();", "title": "" }, { "docid": "a482ee8e5cc23812f83560b7dba06e73", "score": "0.57597226", "text": "long getTotal();", "title": "" }, { "docid": "37d9dc3d0919456f2e6a6ffcb5bf5540", "score": "0.5758804", "text": "public double calculaCustoTotal() {\n\t\tdouble despesaTotal = 0;\n\t\tfor (String despesa : custos.keySet()) {\n\t\t\tdespesaTotal += custos.get(despesa).getValor();\n\t\t}\n\t\treturn despesaTotal;\n\t}", "title": "" }, { "docid": "e055db9b24c745cdef3105a727163ae7", "score": "0.5758393", "text": "public float calcularPrecoFinal() {\n\t\tfloat valorFinal = (this.getPrecoMotherboard() + this.getPrecoProcessador() + this.getPrecoMemoria() + this.getPrecoDiscoRigido() + this.getPrecoMonitor());\n\t\treturn valorFinal;\n\t}", "title": "" }, { "docid": "a8605e58aea8997382854c163cbe29c2", "score": "0.57552356", "text": "public void calcularDesconto() {\n\t\t\n\t\t\n\t\t\n\t\t// se a valor do desconto ou acrescimo for nulo, ele atribuir valor 0.0\n\t\t// tanto para desconto, quanto para acrescimo\n\t\tif (valorDescontoAcrescimo == null || valorDescontoAcrescimo == 0.0) {\n\t\t\tvalorDescontoAcrescimo = 0.0;\n\t\t\tdesconto = 0.0;\n\t\t\tacrescimo = 0.0;\n\t\t\tvendaCadastro.setValorPagar(vendaCadastro.getValorTotal());\n\t\t}\n\n\t\tif (tipoAcrescimo == 0 && valorDescontoAcrescimo != 0) {\n\t\t\t\n\t\t\t//se o valor do acrescimo digitado no teclado for maior que o valor desconto que está salvo no banco\n\t\t\t//atribui o valor maximo de porcetagem em desconto\n\t\t\tif(valorDescontoAcrescimo>formaPagamento.getDesconto()){\n\t\t\t\tvalorDescontoAcrescimo=formaPagamento.getDesconto();\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tdesconto = valorDescontoAcrescimo;\n\t\t\tacrescimo = 0.0;\n\n\t\t\tvendaCadastro.setValorPagar((vendaCadastro.getValorTotal())\n\t\t\t\t\t- (vendaCadastro.getValorTotal() * desconto) / 100);\n\n\t\t\tvendaCadastro.setDesconto(desconto);\n\t\t\tvendaCadastro.setAcrescimo(acrescimo);\n\n\t\t\tif (pagamento.getNumeroParcelas() == 0) {\n\t\t\t\tparcela.setValor(0.0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparcela.setValor(pagamento.getValorPagamento()\n\t\t\t\t\t/ pagamento.getNumeroParcelas());\n\n\t\t} else if (tipoAcrescimo == 1 && valorDescontoAcrescimo != 0) {\n\t\t\tif(valorDescontoAcrescimo>formaPagamento.getDesconto()){\n\t\t\t\tvalorDescontoAcrescimo=formaPagamento.getDesconto();\t\n\t\t\t}\n\t\t\tacrescimo = valorDescontoAcrescimo;\n\t\t\tdesconto = 0.0;\n\n\t\t\tvendaCadastro.setValorPagar((vendaCadastro.getValorTotal())\n\t\t\t\t\t+ (vendaCadastro.getValorTotal() * acrescimo) / 100);\n\n\t\t\tvendaCadastro.setAcrescimo(acrescimo);\n\t\t\tvendaCadastro.setDesconto(desconto);\n\n\t\t\tif (pagamento.getNumeroParcelas() == 0) {\n\t\t\t\tparcela.setValor(0.0);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tparcela.setValor(pagamento.getValorPagamento()\n\t\t\t\t\t/ pagamento.getNumeroParcelas());\n\t\t\tSystem.out.println(\"Passou no acrescimo\"\n\t\t\t\t\t+ pagamento.getValorPagamento());\n\t\t}\n\n\t}", "title": "" }, { "docid": "3ffe4571a8d118f3247746bbcd691cd1", "score": "0.5754023", "text": "public float calcularSalario() {\n\t\tif(Consulta.getNroConsultas() >= Consulta.getLimiteConsultas()) \n\t\t\treturn salarioBase + gratificacao;\n\t\t\n\t\tSystem.out.println(\"O limite de consultas mensais não foi atingido\");\n\t\treturn salarioBase;\n\t}", "title": "" }, { "docid": "ebbf4122b4f76c2e3c94878139bedc9a", "score": "0.5746747", "text": "@Test\r\n public void testMulherAbaixoDoPeso(){\r\n Calculo calculo = new Calculo(\"F\", 1.90, 40);\r\n \r\n int esperado = 0;\r\n int resultado = calculo.calcular();\r\n \r\n assertEquals(esperado, resultado);\r\n }", "title": "" }, { "docid": "d1fa7221687afbe4159f98e9e0cdd629", "score": "0.5742357", "text": "public void setPromedio(){\n double promedio=0;\n int cantidad=0;\n double suma=0;\n for (int i=0;i<notas.length;i++){\n suma=suma+notas[i];\n cantidad++;\n }\n promedio=suma/cantidad;\n this.promedio=promedio;\n}", "title": "" }, { "docid": "2e3c1717bff5d1cb11d23fce12870143", "score": "0.57360226", "text": "public String mostrarporcentajes() {\n\t\t/*Convertimos cantidades a %.*/\n\t\tfloat porh;\n\t\tporh=((float)cantidadhombres/cantidadvuelo)*100;\n\t\tdouble porm;\n\t\tporm=((float)cantidadmujeres/cantidadvuelo)*100;\n\t\tdouble porn;\n\t\tporn=((float)cantidadninos/cantidadvuelo)*100;\n\t\tString mensaje=(\"Los porcentajes son las siguientes: \"+ \"\\n Hombres: \"+ porh+ \"%\\n Mujeres: \" +porm+\"%\\n Ninos: \" +porn +\"%\\n Total vuelo: 100%\");\n\t\treturn mensaje;\n\t}", "title": "" }, { "docid": "408ed82a6d45bb07290dddcf6d2cee05", "score": "0.5735023", "text": "public static double calulateProz(int zuBerechnen, int total) {\n\t\treturn (total != 0) ? (double) zuBerechnen / (double) total : 0d;\n\t}", "title": "" }, { "docid": "82c9c70656b3db22d44a1cf187cd51e9", "score": "0.57346964", "text": "public BigDecimal getPesoEntrada()\r\n/* 476: */ {\r\n/* 477:536 */ return this.pesoEntrada;\r\n/* 478: */ }", "title": "" }, { "docid": "a1be50f11e1008c911f0d78983fda001", "score": "0.57305896", "text": "private double calcularPercentual(double parte) {\n\t\tdouble percentual = parte / this.eleitores * 100;\n\t\treturn percentual;\t\n}", "title": "" }, { "docid": "ec99834c3fb70017d56f59d0e4329f22", "score": "0.57251084", "text": "public void sumarPares();", "title": "" }, { "docid": "b9e67f429019983fde0175eea12c83ca", "score": "0.5722361", "text": "protected void calculerAire() {\r\n\t\taire = hauteur * largeur;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "aab13d53349763ce7c9b649f45fd56a2", "score": "0.5712127", "text": "private Double calcularDivisorPrecioCaja(ArticuloUnidadManejoDTO aum, Double precioBase){\n\t\ttry{\n\t\t\tdouble fraccion = 0d;\n\t\t\tDouble precioCaja = precioBase.doubleValue() * aum.getValorUnidadManejo().intValue();\n\t\t\tif(aum.getValorUnidadManejo() > SICArticuloCalculo.getInstancia().VALORMAXIMO_UNIDADVENTA_POS){\n\t\t\t\tfraccion = (double)(aum.getValorUnidadManejo().intValue() + SICArticuloCalculo.getInstancia().VALORMAXIMO_UNIDADVENTA_POS.intValue()) / SICArticuloCalculo.getInstancia().VALORMAXIMO_UNIDADVENTA_POS.intValue();\n\t\t\t}else if(precioCaja > SICArticuloCalculo.getInstancia().VALORMAXIMO_PRECIOVENTAVENTA_POS){\n\t\t\t\tfraccion = (precioCaja.doubleValue() + SICArticuloCalculo.getInstancia().VALORMAXIMO_PRECIOVENTAVENTA_POS.doubleValue()) / SICArticuloCalculo.getInstancia().VALORMAXIMO_PRECIOVENTAVENTA_POS.doubleValue();\n\t\t\t}else{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn Double.valueOf(fraccion);\n\n\t\t}catch (Exception e) {Logeable.LOG_SICV2.error(\"\", e);}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "061cb3d2d6f85c1bac49c547f87bd164", "score": "0.5706075", "text": "public float getCalorias100Gramos()\n {\n return (this.gramosProteínas * 4) + \n (this.gramosCarbohidratos * 4) + \n (this.gramosGrasas * 9);\n }", "title": "" }, { "docid": "9e2948fa172b4a5dfd1c225e36a2c016", "score": "0.5705359", "text": "@Test\r\n public void calculandoValorAPagar() throws QuantidadeInsuficienteException{\r\n Livro apostila = new Livro(\"Apostila de C\", 30.00);\r\n Perfume perfume = new Perfume(\"Perfume feminino\", 350.00);\r\n \r\n carrinho.add(perfume, 2);\r\n carrinho.add(apostila, 2);\r\n \r\n Double totalPagar = 2 * apostila.getPreco() + 2 * perfume.getPreco();\r\n \r\n assertEquals(totalPagar, carrinho.getTotal());\r\n }", "title": "" }, { "docid": "c28e1663c4d60ad1635f4b97587e026e", "score": "0.57040024", "text": "private void subtrair() {\n double ValorTotalPedido;\n double TotalSaida;\n double valorPago;\n double troco;\n double total;\n // Linhas abaixo pega valores dos valores Jtextfield\n ValorTotalPedido = Double.parseDouble(txtValorTotalPedido.getText().replace(\",\", \".\"));\n TotalSaida = Double.parseDouble(txtTotalSaida.getText().replace(\",\", \".\"));\n valorPago = Double.parseDouble(txtValorPago.getText().replace(\",\", \".\"));\n // Calcula o valor Unitário * Quantidade e Soma com Valor já pedido.\n total = ValorTotalPedido - TotalSaida;\n // Calcula o troco\n troco = valorPago - total;\n // Retorna os valores calculados.\n // Converter Double em 2 casas decimais\n DecimalFormat df = new DecimalFormat(\"###.00\");\n txtValorTotalPedido.setText(df.format(total).replace(\",\", \".\"));\n txtTroco.setText(df.format(troco).replace(\",\", \".\"));\n }", "title": "" }, { "docid": "7ccdc0fe6d93dcdd58842c93b2a97580", "score": "0.57031596", "text": "public double getTotal();", "title": "" }, { "docid": "c52894e01c81cc92f6fc8442a4b1f045", "score": "0.5702594", "text": "double getTotalFee();", "title": "" }, { "docid": "79824262e2dc15b03a53b78acb7f16c2", "score": "0.57005864", "text": "public double hallarPerimetro()\n {\n return 0;\n }", "title": "" } ]
ab076c029ad2d03e30d2ad2a66475666
receive from another mod
[ { "docid": "855b5e340ad3b2d45828c8e078e917dc", "score": "0.0", "text": "private void processIMC(final InterModProcessEvent event)\n {\n // some example code to receive and process InterModComms from other mods\n //LOGGER.info(\"Got IMC {}\", event.getIMCStream().\n // map(m->m.getMessageSupplier().get()).\n // collect(Collectors.toList()));\n }", "title": "" } ]
[ { "docid": "cc48bc130601f0a7c476881f215eaae9", "score": "0.6438462", "text": "@Override\r\n protected void onReceive(Message msg) {\r\n if (msg instanceof StringMessage) {\r\n StringMessage message = (StringMessage) msg;\r\n if (message.getMessage().equals(\"WAVE\") && !sent) {\r\n holder = message.getFinalSender();\r\n broadcastOutExceptParent(message.getFinalSender(), new StringMessage(\"WAVE\"));\r\n sent = true;\r\n \r\n if(!printParent)\r\n {\r\n System.out.println(\"Node \"+getNodeId()+\" has Parent -> \"+holder);\r\n printParent = true;\r\n }\r\n }\r\n }\r\n /* Ends */\r\n\r\n /* Handling the message related to the Raymond mutual exclusion algorithm */\r\n if (msg instanceof RaymondMsg) {\r\n RaymondMsg m = (RaymondMsg) msg;\r\n adapClock(m.getClock());\r\n incrementClock();\r\n\r\n if (m.type == RaymondMsg.REQUEST) {\r\n handleRequest(m);\r\n } else if (m.type == RaymondMsg.PREVILIGE) {\r\n handlePrivilege(m);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f579bd3eb4b21343ef93cfb5732a221c", "score": "0.6408104", "text": "@Override\n\t\t\tpublic void action() {\n\t\t\t\tACLMessage msg = myAgent.blockingReceive(mControlTemp);\n\t\t\t\tsetTimeStep(Integer.parseInt(msg.getContent()));\n\n\t\t\t\t// Actualiza su posicion y combustible\n\t\t\t\tactualizarPosicion();\n\t\t\t\tmandarMensaje(\"MOD\");\n\n\t\t\t\t// Espera una correccion de vuelo\n\t\t\t\tmsg = myAgent.blockingReceive(mAlmacenDInf);\n\t\t\t\tactualizarInformacion(msg.getContent());\n\t\t\t}", "title": "" }, { "docid": "5b6fcb6b6bfd900f11e0c376b5335f3b", "score": "0.63152796", "text": "@Override\n public void onReceive(Object msg) {\n if (msg instanceof MediatorHTTPRequest) {\n originalRequest = (MediatorHTTPRequest) msg;\n ack = new Gson().fromJson(((MediatorHTTPRequest) msg).getBody(), Ack.class);\n obtainOpenHIMTransactionByTransactionId(ack.getiLTransactionIDNumber());\n } else if (msg instanceof MediatorHTTPResponse) {\n log.info(\"Received feedback from core\");\n log.info(\"Core Response code = \" + ((MediatorHTTPResponse) msg).getStatusCode());\n log.info(\"Core Response body = \" + ((MediatorHTTPResponse) msg).getBody());\n updateOpenHIMTransactionByTransactionId(new JSONObject(((MediatorHTTPResponse) msg).getBody()));\n\n FinishRequest finishRequest = new FinishRequest(\"\", \"text/plain\", HttpStatus.SC_OK);\n (originalRequest).getRequestHandler().tell(finishRequest, getSelf());\n }\n }", "title": "" }, { "docid": "de209dee5ee9844259e8df207a48bf5f", "score": "0.62376523", "text": "void receiveCommand();", "title": "" }, { "docid": "dec865dbfee3c68ef3797c4bfcf0d5e4", "score": "0.61401224", "text": "@Override\n public void onReceiveMessage(int code, GotyeMessage message) {\n\n }", "title": "" }, { "docid": "dccbdba3237a2a306d04f3dccec30764", "score": "0.61004746", "text": "public void Receive(DataChat message) {\r\n \r\n }", "title": "" }, { "docid": "bce6da94297bbcdf361797ddbd04ac4a", "score": "0.6086072", "text": "public void processRecivedMessage() {\n\t\tMessage receivedMsg = inputBuffer.removeFirst();\n\t\tif (receivedMsg instanceof UpdateMessage) {\n\t\t\t//System.out.println(simulator.getNetworkLifetime() + \" - Node \" + id + \": recive UpdateMsg from Node \" + receivedMsg.getSenderID());\n\t\t\tthis.receiveUpdateMessage((UpdateMessage)receivedMsg);\n\t\t}\n\t\telse{\n\t\t\tif(receivedMsg instanceof PayloadMessage){\n\t\t\t\t//System.out.println(simulator.getNetworkLifetime() + \" - Node \" + id + \": recive Payloadmsg from Node \" + receivedMsg.getSenderID() + \". Source: \" + ((PayloadMessage)receivedMsg).getPayloadSourceAdress() + \" Sink: \" + ((PayloadMessage)receivedMsg).getPayloadDestinationAdress() + \" NextHop: \"+ receivedMsg.getDestinationID()\n\t\t\t\tif(((PayloadMessage)receivedMsg).getPayloadDestinationAdress() == this.id){\n\t\t\t\t\t//System.out.println(simulator.getNetworkLifetime() + \" - Node \" + id + \": recive Payloadmsg from Node \" + receivedMsg.getSenderID() + \". Source: \" + ((PayloadMessage)receivedMsg).getPayloadSourceAdress() + \" TransmissionTime: \" + (simulator.getNetworkLifetime() - receivedMsg.getStartTransmissionTime()));\n\t\t\t\t}\n\t\t\t\tthis.receivePayloadMessage((PayloadMessage)receivedMsg);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ae6e57246e17aa0ffb722b80feaf1e02", "score": "0.60506445", "text": "void messageReceived(Message message);", "title": "" }, { "docid": "3d73eca306bdc92e83b1e69c5e71cd98", "score": "0.6033766", "text": "CommandStatus receive(Command command);", "title": "" }, { "docid": "609d51414f30e6a74756359d4a5d146e", "score": "0.6009547", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tbyte[] data = HFSendCmdHelper.getSendSyncCmdHelper().sendLocalMsg(mi, t2);\n\t\t\t\t\tet.onRecv(mi, data);\n\t\t\t\t} catch (HFModuleException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tet.onRecv(mi, null);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "580471cf527e23acd4c733eb7dbc7cdf", "score": "0.60009146", "text": "@Override\n public void ReceiveMessage(Message msg) throws IOException {\n switch (msg.getType()) {\n\n // recevie invite to continue playing\n case 30: {\n int dialogButton = JOptionPane.YES_NO_OPTION;\n int dialogResult = JOptionPane.showConfirmDialog(rootPane, \"Bạn có muốn tiếp tục chơi!\");\n if (dialogResult == 0) {\n // Enter room and send message for competitor\n listenServer.SendMessage(31, null);\n PlayForm playForm = new PlayForm(listenServer);// Open room\n playForm.setVisible(true);\n this.setVisible(false);\n\n } else {\n listenServer.SendMessage(32, null);// refuse invite to continue playing\n }\n break;\n }\n\n //Open room to play\n case 33: {\n PlayForm playForm = new PlayForm(listenServer);\n playForm.setVisible(true);\n this.setVisible(false);\n this.dispose();\n break;\n }\n\n // Receive message that competitor don't want to play\n case 34: {\n JOptionPane.showMessageDialog(rootPane, \"Người chơi không đồng ý!\");\n break;\n }\n // Notify that competitor has left room\n case 71: {\n JOptionPane.showMessageDialog(rootPane, \"Đối thủ đã thoát!\");\n this.setVisible(false);\n HomeForm homeForm = new HomeForm(listenServer);\n homeForm.setVisible(true);\n break;\n }\n }\n }", "title": "" }, { "docid": "c21d63a1fa13feb8773798e05adea498", "score": "0.5989181", "text": "@TaskFunction(name = \"receive\")\n public void receive() {\n try {\n receiver.invoke();\n } finally {\n ServerManager.me().run(this, \"receive\");\n }\n }", "title": "" }, { "docid": "71cf843583995326681b70af12157a8f", "score": "0.59644675", "text": "private void serveReceive(String input) throws IOException {\r\n\t String message;\r\n\t try {\r\n\t\t //client is receiving, we are transmitting\r\n\t\t message = transmitFile(input, connection, currentDir);\r\n\t }\r\n\t catch(IOException x) {\r\n\t\t throw x;\r\n\t }\r\n\t catch(Exception x) {\r\n\t\t message = x.getMessage();\r\n\t }\r\n\t Packet response = newResponse(new CommandResponse(), message);\r\n\t connection.send(response);\r\n }", "title": "" }, { "docid": "26928ef75be046b535403b76f7ff8e58", "score": "0.59578574", "text": "public void receive(Message message) {\n\t\t\n\t}", "title": "" }, { "docid": "4d0cb81473f0fc4d1db16ab531e7ef26", "score": "0.59403235", "text": "@Override\n\tpublic void onReceiveProtocol(FedmIscReader arg0, byte[] arg1) {\n\t\t\n\t}", "title": "" }, { "docid": "30b0331e0aa36cb6bba91fe4558ab6d8", "score": "0.593814", "text": "@Override\r\n\tpublic void receiveMessage()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "afcc1a8d7c12a49e7ac06177c04b8f81", "score": "0.59374636", "text": "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tUUID uuid = UUID.randomUUID();\n\t\t\t\t\t\t\t// First generate a uuid with which to cache to dictionary\n\t\t\t\t\t\t\tMixedDataKey<Object> unknownMsgKey = new MixedDataKey<>(uuid, \"\", Object.class);\n\t\t\t\t\t\t\tcmd2ModelAdapter.putIntoLocalDict(unknownMsgKey, host);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Send new command request message to sender\n\t\t\t\t\t\t\tINewCmdReqMsg msg = new NewCmdReqMsg(index, uuid);\n\t\t\t\t\t\t\tOurDataPacket<INewCmdReqMsg, IChatServer> dataPacket = new OurDataPacket<INewCmdReqMsg, IChatServer>(\n\t\t\t\t\t\t\t\t\tINewCmdReqMsg.class, msg, cmd2ModelAdapter.getChatServer());\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\thost.getSender().receive(dataPacket);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "title": "" }, { "docid": "4795aea831b05287b7beb1751957dfef", "score": "0.59141487", "text": "public void action() {\n ACLMessage msg = receive(m1); \n if (msg!= null){ \n // display the message \n result.append(msg.getContent()); \n // confirm that the message has been received. \n ACLMessage reply = msg.createReply(); \n reply.setPerformative(ACLMessage.CONFIRM); \n send(reply); \n } else { \n block(); \n } \n }", "title": "" }, { "docid": "43d41558b0fd27227d51117ed177a6ad", "score": "0.5912727", "text": "public void byeReceived(LinphoneCore lc,String from);", "title": "" }, { "docid": "677a718ccd6a5a435e1f887ca8efe5c5", "score": "0.5902845", "text": "private void receive(){\n\t\ttry {\n\t\t\tshowMessage(enc.decrypt(in.readUTF()) + \"\\n\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "title": "" }, { "docid": "0a2d8f22caba6c04ff486a8ec6bb4835", "score": "0.58959275", "text": "public void runReceiving() {\r\n\ttry {\r\n\t\tBufferedReader socIn = null;\r\n\t\tsocIn = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\r\n\t\t\twhile (true) {\r\n\t\t\t\tString out = socIn.readLine(); // read from the socket\r\n\r\n\t\t\t\t// id attribution to each memeber of the conversation\r\n\t\t\t\tout = \"Member \" + this.id + \" : \" + out;\r\n\r\n\t\t\t\t// send the read information to all members connected to the chat\r\n\t\t\t\tfor (int i = 0; (i < listThreadsSending.size()); i++) {\r\n\t\t\t\t\tlistThreadsSending.get(i).runSending(out);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// creating a history file with all messages\r\n\t\t\t\tFileWriter fw = new FileWriter(\"history.txt\",true);\r\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\tbw.write(out+\"\\n\");\r\n\t\t\t\tbw.close();\r\n\t\t\t} \r\n\t\t}catch (Exception e) {\r\n\t\t\t\tSystem.err.println(\"Error in runReceiving:\" + e);\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "827fbe1a207572559072352200d0bc6f", "score": "0.58741266", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n if (\"a message is coming\".equals(action)) // 判断是否接到电池变换消息\n {\n // 处理内容\n anewhandler.sendEmptyMessage(1);\n }\n//\t\t\tif(\"loading complate\".equals(action))\n//\t\t\t{\n//\n//\t\t\t}\n }", "title": "" }, { "docid": "f2398b26d475061233ed71999f5db002", "score": "0.58638173", "text": "@Override\n public void onReceiveMessage(int code, GotyeMessage message, boolean unRead) {\n\n }", "title": "" }, { "docid": "4d472bc51aa28ca0d9a34adbb124f449", "score": "0.5836829", "text": "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Receiver gossiper started\");\n\t\tSystem.out.println(portNo);\n while(running.get())\n {\n try {\n byte[] buf = new byte[1024];\n DatagramPacket p = new DatagramPacket(buf, buf.length);\n server.receive(p);\n\n\n // extract the member arraylist out of the packet\n // TODO: maybe abstract this out to pass just the bytes needed\n ByteArrayInputStream bais = new ByteArrayInputStream(p.getData());\n ObjectInputStream ois = new ObjectInputStream(bais);\n\n Object readObject = ois.readObject();\n if(readObject instanceof List<?>) {\n List<FileList> list = (List<FileList>) readObject;\n// for (Member member : list)\n// {\n// String id = member.getId();\n// \n// }\n//\t System.out.println(\"object received\");\n MergeWithRemote(list);\n \n //Thread.sleep(1000);\n }\n } catch (IOException e) \n {\n e.printStackTrace();\n this.running.set(false);\n } catch (ClassNotFoundException e) \n {\n e.printStackTrace();\n this.running.set(false);\n }\n catch(InterruptedException ie)\n {\n \n ie.printStackTrace();\n this.running.set(false);\n }\n \n }\n\t\t\n\t}", "title": "" }, { "docid": "33b629bed426aff3d9d29fae122db55b", "score": "0.58203924", "text": "public synchronized void messageHandler(Message received) throws IOException {\n if(received.type == 1){\n String groupname = received.msg;\n if (Server.groups.containsKey(groupname)){\n Message exists = new Message(14, \"Group \"+groupname+\" already exists. Please choose another name.\", 0, received.source);\n this.sendMessage(exists);\n }\n else if(received.msg.equals(\"\")) {\n Message blank = new Message(14, \"Name for group cannot be the empty string.\", 0, received.source);\n this.sendMessage(blank);\n }\n else {\n Message m = new Message(19, groupname, 0, received.source);\n this.sendMessage(m);\n }\n return;\n //02:FROM:GROUPNAME#0 - 02 request to join GROUPNAME - (server should forward to coordinator)\n }else if(received.type == 2){\n String groupname = received.msg;\n if (Server.groups.containsKey(groupname)){\n int coordinator = Integer.parseInt(Server.groups.get(groupname).get(0));\n Message m = new Message(2, groupname, received.source, coordinator);\n this.sendMessage(m);\n }\n else {\n Message noGroup = new Message(14, \"Group \"+groupname+\" does not exist.\", 0, received.source);\n this.sendMessage(noGroup);\n }\n return;\n //03:FROM:MSG#TO - 03 response from coordinator to TO with \"accept\" or \"deny\"\n }else if(received.type == 3){\n // break the string into message and recipient part\n Message m = new Message(3, received.msg, received.source, received.dest);\n this.sendMessage(m);\n return;\n //04:FROM:GROUPNAME:TOADD - 04 message from coordinator to server with ID TOADD\n }else if(received.type == 4){\n String arr[] = (received.msg).split(\":\");\n String groupname = arr[0];\n String toAdd = arr[1];\n if (Server.groups.containsKey(groupname))\n Server.groups.get(groupname).add(toAdd);\n return;\n //05:FROM:GROUPNAME#0 - message to server requesting list of IDs in GROUPNAME\n }else if(received.type == 5){\n String groupname = received.msg;\n if (Server.groups.containsKey(groupname)){\n ArrayList<String> partners = Server.groups.get(groupname);\n Message m = new Message(6,\"\", 0, received.source);\n m.setMembers(partners);\n this.sendMessage(m);\n }\n return;\n //06:FROM:GROUPNAME:MSG - response from server with comma seperated MSG as a list of people in GROUPNAME\n }else if(received.type == 6){\n return;\n //10:FROM:MSG#TO - 10 Generic message. Send message to the TO\n }else if(received.type == 10){\n this.sendMessage(received);\n return;\n //11:FROM:MSG#GROUP\n }else if(received.type == 11){\n String message = received.msg.split(\":\")[0];\n\n if(!message.equals(\"\") && !message.equals(null)) {\n String group_name = received.msg.split(\":\")[1];\n\n if (Server.groups.containsKey(group_name)){\n ArrayList<String> partners = Server.groups.get(group_name);\n String p;\n for(int i = 0; i < partners.size(); i++){\n p = partners.get(i);\n if(Integer.parseInt(p) != received.source) {\n Message m = new Message(10, message, received.source, Integer.parseInt(p));\n this.sendMessage(m);\n }\n }\n }\n }\n else {\n Message noMessage = new Message(14, \"Blank message.\", 0, received.source);\n this.sendMessage(noMessage);\n }\n return;\n }else if (received.type == 12) {\n if (Server.groups.containsKey(received.msg)){\n ArrayList<String> partners = Server.groups.get(received.msg);\n String p;\n for(int i = 0; i < partners.size(); i++){\n p = partners.get(i);\n if (Integer.parseInt(p) != received.source){\n received.dest = Integer.parseInt(p);\n this.sendMessage(received);\n }\n }\n }\n return;\n } else if (received.type == 16) {\n if (Server.groups.containsKey(received.msg)){\n ArrayList<String> partners = Server.groups.get(received.msg);\n String p;\n for(int i = 0; i < partners.size(); i++){\n p = partners.get(i);\n if (Integer.parseInt(p) != received.source){\n received.dest = Integer.parseInt(p);\n this.sendMessage(received);\n }\n }\n }\n return;\n } else if (received.type == 17) {\n String group_name = received.msg;\n if (Server.groups.containsKey(group_name)){\n ArrayList<String> partners = Server.groups.get(group_name);\n Message m = new Message(18, group_name, 0, received.source);\n m.setMembers(partners);\n this.sendMessage(m);\n }\n return;\n } else if(received.type == 20) {\n //extract the group name and number of clusters\n String groupname = received.msg.split(\":\")[0];\n int numClusters = Integer.parseInt(received.msg.split(\":\")[1]);\n String algorithm = received.msg.split(\":\")[2];\n //create new group\n Server.groups.put(groupname,new ArrayList<String>());\n //add client as the first member (coordinator)\n Server.groups.get(groupname).add(Integer.toString(received.source));\n //send confirmation message\n Message success = new Message(15, \"Success! You have created group: \"+groupname, 0, received.source);\n this.sendMessage(success);\n return;\n // right dest\n } else if(received.type == 21) {\n sendMessage(received);\n return;\n } else if(received.type == 22) {\n String groupname = received.msg.split(\":\")[0];\n int numClusters = Integer.parseInt(received.msg.split(\":\")[1]);\n String algorithm = received.msg.split(\":\")[2];\n\n //create new group\n if (!Server.groups.containsKey(groupname)){\n Server.groups.put(groupname,new ArrayList<String>());\n Server.groups.get(groupname).add(Integer.toString(received.source));\n Message msg = new Message(24, Integer.toString(received.source), 0, received.source);\n try{\n sendMessage(msg);\n } catch (SocketException sce) {}\n }\n return;\n } else if(received.type == 23) {\n // NO AUTH version\n String arr[] = (received.msg).split(\":\");\n String groupname = arr[0];\n String toAdd = arr[1];\n if (Server.groups.containsKey(groupname)){\n if (!Server.groups.get(groupname).contains(toAdd)){\n Server.groups.get(groupname).add(toAdd);\n\n ArrayList<String> partners = Server.groups.get(groupname);\n Message m = new Message(24,toAdd, 0, 0);\n\n for (int i = 0; i < partners.size(); i++){\n int dest = Integer.parseInt(partners.get(i));\n m.dest = dest;\n this.sendMessage(m);\n }\n\n Message nm = new Message(06,\"\", 0, 0);\n nm.setMembers(partners);\n this.sendMessage(nm);\n }\n }\n return;\n }\n }", "title": "" }, { "docid": "5103ed146454acdf1ee9acf66394e1a7", "score": "0.58135235", "text": "public void receive(Card card);", "title": "" }, { "docid": "3149bafcd202abaf1ff6c3198f43c65a", "score": "0.58008677", "text": "public Packet receive();", "title": "" }, { "docid": "3e2c00e07ad570c25e39f8fb5e36aa15", "score": "0.57967424", "text": "public void unicastReceived(Address senderAddress, Serializable content)\n\t{ \n\t\tMessage message = (Message) content;\n\t\n\t\tif (senderAddress.toString().equals(getAddress()))\n\t\t{\t\n\t\t\t// Si on est l'expediteur et le destinataire (ie lors d'un envoi en broadcast)\n\t\t\t// alors on ne traite pas le message\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch (message.getType())\n\t\t\t{\n\t\t\t\t// Etat -1 : On recoit un message avec le pseudo de l'expediteur\n\t\t\t\tcase -1 :\n\t\t\t\t{\n\t\t\t\t\t// => Project_WMMessenger.java ligne 104\n\t\t\t\t\t// On ajoute le nickname a la liste pour ensuite tester \n\t\t\t\t\t// si notre pseudo est disponible ou non\n\t\t\t\t\tprogram.addNickname((String)message.getMessage());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat -2 : On recoit un message avec l'adresse (complete) de l'expediteur\n\t\t\t\tcase -2 :\n\t\t\t\t{\n\t\t\t\t\t// On ajoute la personne a la liste de contact\n\t\t\t\t\tprogram.getListContact().addContact((String)message.getMessage());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 11 : On recoit le fichier en broacast\n\t\t\t\tcase 11 :\n\t\t\t\t{\n\t\t\t\t\tString file_name = program.getChat().getBroadcast().getFileName();\n\t\t\t\t\t\n\t\t\t\t\t// On creer un popup avec 3 choix possible\n\t\t\t\t\tdialog_file = new JDialog_Get_File(program, \"Reception Fichier\", true, message, file_name);\n\t\t\t\t\t\n\t\t\t\t\tString file_path = \"\";\n\t\t\t\t\t\n\t\t\t\t\t// On test action de l'utilisateur\n\t\t\t\t\tswitch (dialog_file.getAction())\n\t\t\t\t\t{\n\t\t\t\t\t\t// Cas 1 : On a clique sur Accepter\n\t\t\t\t\t\tcase 1 :\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// On place donc notre fichier dans le repertoire par defaut (ici D:\\)\n\t\t\t\t\t\t\tfile_path = \"D:\\\\\" + file_name;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Cas 2 : On a clique sur Enregistrer Sous\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// On recupere l'emplacement du fichier\n\t\t\t\t\t\t\tfile_path = dialog_file.getPath();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t// Cas 3 : On a clique sur Refuser\n\t\t\t\t\t\t// On ne gere pas ce cas pour l'attribution du path\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Si on a Accepter le fichier (cas 1 ou cas 2), on enregistre le fichier\n\t\t\t\t\tif (dialog_file.getAction() != 3)\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbyte[] file_byte = (byte[]) message.getMessage();\n\t\t\n\t\t\t\t\t\t\tFileOutputStream fos = new FileOutputStream(file_path);\n\t\t\t\t\t\t\tfos.write(file_byte);\n\t\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (FileNotFoundException fnfe)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfnfe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IOException ioe)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// On creer un message pour nous meme disant que l'on a accepte le fichier\n\t\t\t\t\t\tMessage receipt_message = new Message(message.getSender(), null, 0, \"fichier \" + file_name + \" reçu\");\n\t\t\t\t\t\tprogram.getChat().getBroadcast().addMessage(receipt_message);\n\t\t\t\t\t}\n\t\t\t\t\t// Si on a Refuser le fichier\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// On creer un message pour nous meme disant que l'on a refuse le fichier\n\t\t\t\t\t\tMessage receipt_message = new Message(message.getSender(), null, 0, \"fichier \" + file_name + \" refusé\");\n\t\t\t\t\t\tprogram.getChat().getBroadcast().addMessage(receipt_message);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// On envoi ensuite un accuse de reception avec l'action effectue concernant le fichier\n\t\t\t\t\tString my_contact = netif.getAddress().toString() + \";\" + program.getNickname();\n\t\t\t\t\tString[] recipient = {message.getSender()};\n\t\t\t\t\tMessage acknowledge_receipt_message = new Message(my_contact, recipient, 13, dialog_file.getAction());\n\t\t\t\t\tsendUnicast(acknowledge_receipt_message);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 13 : On recoit l'accuse de reception du fichier en unicast\n\t\t\t\tcase 13 :\n\t\t\t\t{\n\t\t\t\t\tString action_message = \"\";\n\t\t\t\t\t\n\t\t\t\t\t// Selon le choix du destinataire du fichier, on affiche un message different\n\t\t\t\t\tif (((Integer) message.getMessage()).intValue() != 3)\n\t\t\t\t\t{\n\t\t\t\t\t\taction_message = \"fichier accepté\";\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\taction_message = \"fichier refusé\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// On creer un message pour nous meme avec l'action du destinataire du fichier \n\t\t\t\t\tMessage action_mes = new Message(message.getSender(), null, -1, action_message);\n\t\t\t\t\tprogram.getChat().getBroadcast().addMessage(action_mes);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 20 : On recoit un message texte en unicast\n\t\t\t\tcase 20 :\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t// On recherche dans quelle conversation le message va etre afficher\n\t\t\t\t\tint index_tab = getCurrentConversation(message);\n\t\t\t\t\t\n\t\t\t\t\t// On met une couleur rouge a l'onglet pour mettre en avant les nouveaux messages\n\t\t\t\t\tprogram.getChat().setForegroundAt(index_tab, Color.red);\n\t\t\t\t\t\n\t\t\t\t\t// On ajoute le message recu a l'historique de conversation\n\t\t\t\t\tPanel_Conversation conversation = (Panel_Conversation) program.getChat().getComponentAt(index_tab);\n\t\t\t\t\tconversation.addMessage(message);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 21 : On recoit le fichier en unicast\n\t\t\t\tcase 21 : \n\t\t\t\t{\n\t\t\t\t\t// Meme fonctionnement que la reception de fichier en broadcast, on\n\t\t\t\t\t// recupere juste en plus la conversation dans laquelle on insere les messages\n\t\t\t\t\tint index_tab = getCurrentConversation(message);\n\t\t\t\t\t\n\t\t\t\t\tprogram.getChat().setForegroundAt(index_tab, Color.red);\n\t\t\t\t\tPanel_Conversation conversation = (Panel_Conversation) program.getChat().getComponentAt(index_tab);\n\t\t\t\t\t\n\t\t\t\t\tdialog_file = new JDialog_Get_File(program, \"Reception Fichier\", true, message, conversation.getFileName());\n\t\t\t\t\t\n\t\t\t\t\tString file_path = \"\";\n\t\t\t\t\tswitch (dialog_file.getAction())\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 1 :\t\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfile_path = \"D:\\\\\" + conversation.getFileName();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase 2 :\n\t\t\t\t\t\t\tfile_path = dialog_file.getPath();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (dialog_file.getAction() != 3)\n\t\t\t\t\t{\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tbyte[] file_byte = (byte[]) message.getMessage();\n\t\t\n\t\t\t\t\t\t\tFileOutputStream fos = new FileOutputStream(file_path);\n\t\t\t\t\t\t\tfos.write(file_byte);\n\t\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (FileNotFoundException fnfe)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfnfe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IOException ioe)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tMessage receipt_message = new Message(message.getSender(), null, 0, \"fichier \" + conversation.getFileName() + \" reçu\");\n\t\t\t\t\t\tconversation.addMessage(receipt_message);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tMessage receipt_message = new Message(message.getSender(), null, 0, \"fichier \" + conversation.getFileName() + \" refusé\");\n\t\t\t\t\t\tconversation.addMessage(receipt_message);\n\t\t\t\t\t}\n\n\t\t\t\t\tString my_contact = netif.getAddress().toString() + \";\" + program.getNickname();\n\t\t\t\t\t\n\t\t\t\t\tString[] recipient = new String[message.getRecipients().length];\n\t\t\t\t\tint i = 0;\n\t\t\t\t\t\n\t\t\t\t\tfor (String contact : message.getRecipients())\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!contact.equals(my_contact))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trecipient[i] = contact;\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\trecipient[i] = message.getSender();\n\t\t\t\t\t\n\t\t\t\t\tMessage acknowledge_receipt_message = new Message(my_contact, recipient, 23, dialog_file.getAction());\n\t\t\t\t\tsendUnicast(acknowledge_receipt_message);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 22 : On recoit le nom du fichier qui va etre envoye en unicast\n\t\t\t\tcase 22 :\n\t\t\t\t{\n\t\t\t\t\tint index_tab = getCurrentConversation(message);\n\t\t\t\t\t\n\t\t\t\t\tPanel_Conversation conversation = (Panel_Conversation) program.getChat().getComponentAt(index_tab);\n\t\t\t\t\t// On l'enregistre, ca permet d'avoir le nom du fichier dans le \n\t\t\t\t\t// JFileChooser avec un nom de fichier par defaut\n\t\t\t\t\tconversation.setFileName((String) message.getMessage());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 23 : On recoit l'accuse de reception\n\t\t\t\t// Meme chose que l'accuse de reception en broadcast avec encore une fois\n\t\t\t\t// la recherche pour trouver le bon onglet\n\t\t\t\tcase 23 : \n\t\t\t\t{\n\t\t\t\t\tint index_tab = getCurrentConversation(message);\n\n\t\t\t\t\tPanel_Conversation conversation = (Panel_Conversation) program.getChat().getComponentAt(index_tab);\n\t\t\t\t\t\n\t\t\t\t\tString action_message = \"\";\n\t\t\t\t\tif (((Integer) message.getMessage()).intValue() != 3)\n\t\t\t\t\t{\n\t\t\t\t\t\taction_message = \"fichier accepté\";\n\t\t\t\t\t}\n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\taction_message = \"fichier refusé\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tMessage action_mes = new Message(message.getSender(), null, -1, action_message);\n\t\t\t\t\t\n\t\t\t\t\tconversation.addMessage(action_mes);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "31cff4d345d5d6e3493fbde5f49bf45d", "score": "0.57924604", "text": "@Override\n public void onReceive(Object msg) throws Exception {\n if (SimpleMediatorRequest.isInstanceOf(String.class, msg)) { //process message\n log.info(\"Sending data Thscp ...\");\n requestHandler = ((SimpleMediatorRequest) msg).getRequestHandler();\n forwardToThscp(((SimpleMediatorRequest) msg).getRequestObject().toString());\n\n } else if (msg instanceof MediatorHTTPResponse) { //respond\n log.info(\"Received response from THSCP\");\n requestHandler.tell(((MediatorHTTPResponse) msg).toFinishRequest(), getSelf());\n } else {\n unhandled(msg);\n }\n }", "title": "" }, { "docid": "b4cde9a8cd930664202b3e21f0610367", "score": "0.57918715", "text": "protected void receiveMessages() {\n\t\tprotocolMessage = \"\";\n\t\ttry {\n\t\t\tprotocolMessage = dis.readUTF();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Could not receive message code.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tif (protocolMessage.contains(\"getName\")) {\n\t\t\ttry {\n\t\t\t\tdos.writeBytes(\"sendName \" + playerName);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Could not send player name.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else if (protocolMessage.contains(\"getShips\")) {\n\t\t\t//sendShips();\n\t\t} else if (protocolMessage.contains(\"yourTurn\")) {\n\t\t\treadGuess();\n\t\t} else if (protocolMessage.contains(\"hit\")) {\n\t\t\ttry {\n\t\t\t\tplayerID = dis.readInt();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Could not get player ID.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//updateBoard(playerID, 1); // playerID tells updateBoard which\n\t\t\t\t\t\t\t\t \t // board to update, 1 is hit code\n\t\t} else if (protocolMessage.contains(\"miss\")) {\n\t\t\ttry {\n\t\t\t\tplayerID = dis.readInt();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Could not get player ID.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//updateBoard(playerID, 0); // 0 is miss code\n\t\t\t\n\t\t} else if (protocolMessage.contains(\"sunk\")) {\n\t\t\ttry {\n\t\t\t\tplayerID = dis.readInt();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Could not get player ID.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t// deal with sunk ship somehow\n\t\t\t//updateBoard(playerID, );\n\t\t}\n\t}", "title": "" }, { "docid": "6c6bf6b8f8f7d52ed8b109ae4dfd32bf", "score": "0.5754073", "text": "protected abstract void receive(EdxIO io);", "title": "" }, { "docid": "e5159af7c0856156711a4d933705657a", "score": "0.57519454", "text": "@Override\n protected void handleMessageReceived(int what, int arg1, int arg2, Object obj) {\n }", "title": "" }, { "docid": "4bd1b1d5fcf85054862d68c92c844905", "score": "0.57513094", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n\n BLog.d(TAG, \"RCS Receiver action:\"+action);\n\n Bundle bundle = intent.getExtras();\n if (bundle != null) {\n if (RECEIVE_PARTICIPANT_UPDATED.equals(action) || RECEIVE_PARTICIPANT_INSERTED.equals(action)) {\n String participant = bundle.getString(\"participant\");\n if (participant != null) {\n String number = participant.substring(4); // get the string after \"tel:\"\n BLog.d(TAG, \"Chat number is: \" + number);\n }\n } else if (RECEIVE_CHAT_INVITATION.equals(action)) {\n String subject = bundle.getString(\"subject\");\n if (subject != null) {\n BLog.d(TAG, \"Chat subject: \" + subject);\n }\n }\n }\n }", "title": "" }, { "docid": "05602a9a989ae0ba4935ec0366d31e02", "score": "0.5747629", "text": "public void receive(Object object);", "title": "" }, { "docid": "a36d95dd8ecef5dba398d8f4d267c006", "score": "0.57342327", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n mesHandler = handlerRecive.obtainMessage();\n mesHandler.obj = intent.getStringExtra(MyService.MES);\n handlerRecive.sendMessage(mesHandler);\n\n }", "title": "" }, { "docid": "7f334dde688a9342bd6a6419877bef9c", "score": "0.5734047", "text": "public void broadcastReceived (Address senderAddress, Serializable content) \n\t{\n\t\tMessage message = (Message) content;\n\n\t\tif (senderAddress.toString().equals(getAddress()))\n\t\t{\n\t\t\t// Si on est l'expediteur et le destinataire (ie lors d'un envoi en broadcast)\n\t\t\t// alors on ne traite pas le message\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch (message.getType())\n\t\t\t{\n\t\t\t\t// Etat 1 : On recoit un message voulant recuperer notre pseudo\n\t\t\t\tcase 1 :\n\t\t\t\t{\n\t\t\t\t\tString my_adress = netif.getAddress().toString();\n\t\t\t\t\tString[] recipient = {senderAddress.toString()};\n\t\t\t\t\tMessage answer = new Message(my_adress, recipient, -1, program.getNickname());\n\t\t\t\t\t\n\t\t\t\t\t// On envoi notre pseudo\n\t\t\t\t\tsendUnicast(answer);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 2 : On recoit un message hello.connect\n\t\t\t\tcase 2 :\n\t\t\t\t{\n\t\t\t\t\t// On ajoute la personne dans notre liste de contact\n\t\t\t\t\tprogram.getListContact().addContact((String)message.getMessage());\n\t\t\t\t\t\n\t\t\t\t\tString my_adress = netif.getAddress().toString();\n\t\t\t\t\tString[] recipient = {senderAddress.toString()};\n\t\t\t\t\tString my_contact = my_adress + \";\" + program.getNickname();\n\t\t\t\t\tMessage answer = new Message(my_adress, recipient, -2, my_contact);\n\n\t\t\t\t\t// Et on lui envoi un roger.connect pour qu'elle nous ajoute dans sa propre \n\t\t\t\t\t// liste\n\t\t\t\t\tsendUnicast(answer);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 3 : On recoit un message goodbye.connect\n\t\t\t\tcase 3 :\n\t\t\t\t{\n\t\t\t\t\t// On supprme cette personne de notre liste de contact\n\t\t\t\t\tprogram.getListContact().removeContact(message.getSender());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 10 : On recoit un message texte en brodcast\n\t\t\t\tcase 10 :\n\t\t\t\t{\n\t\t\t\t\t// On met une alerte pour demarquer les nouveaux messages\n\t\t\t\t\tprogram.getChat().setForegroundAt(0, Color.red);\n\t\t\t\t\t// Et on ajoute le message au broadcast\n\t\t\t\t\tprogram.getChat().getBroadcast().addMessage(message);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Etat 12 : On recoit le nom du fichier qui va etre envoye\n\t\t\t\tcase 12 :\n\t\t\t\t{\n\t\t\t\t\t// On l'enregistre, ca permet d'avoir le nom du fichier dans le \n\t\t\t\t\t// JFileChooser avec un nom de fichier par defaut\n\t\t\t\t\tprogram.getChat().getBroadcast().setFileName((String) message.getMessage());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e7c411cf6aea201c31902c80c7828f87", "score": "0.57028925", "text": "public abstract void onRIOReceive(Integer from, int protocol, byte[] msg);", "title": "" }, { "docid": "2c2607e114d16e96f5836c1ee7f1e77e", "score": "0.5699724", "text": "public void receive(Hand hand);", "title": "" }, { "docid": "5309ec1e16c9869a71da2e5cf45abe54", "score": "0.569784", "text": "@Override\n public boolean handleMessage(Message msg) {\n switch (msg.what) {\n case MainActivity.MESSAGE_READ:\n DataPacket readBuf = (DataPacket) msg.obj;\n // construct a string from the valid bytes in the buffer\n String readMessage = readBuf.data;\n Log.d(TAG, readMessage);\n msgFrag.updateChat(\"Received: \" + readMessage);\n break;\n\n case MainActivity.MY_HANDLE:\n ChatManager obj = (ChatManager)msg.obj;\n Toast.makeText(this,\"MyHandle\",Toast.LENGTH_LONG).show();\n msgFrag.chatManager = obj;\n break;\n case MainActivity.MY_CREDIT:\n Toast.makeText(this,\"Credit\",Toast.LENGTH_LONG).show();\n break;\n\n\n }\n return true;\n }", "title": "" }, { "docid": "562385d93af8fe2db1ae233b6071da83", "score": "0.5680562", "text": "public void handleTransferOver() {\n LOGD(\"传输完成\");\n if (EventBus.getDefault().isRegistered(this)) {\n EventBus.getDefault().unregister(this);\n }\n if (this.mHandler != null) {\n this.mHandler.removeMessages(5);\n this.mHandler.sendMessage(this.mHandler.obtainMessage(4));\n }\n }", "title": "" }, { "docid": "36a68dec38c3a1a5c9369e433d6daa56", "score": "0.5678493", "text": "private void processMessage(){\n synchronized (private_mailbox) {\n MessageWithSender msg = private_mailbox.poll();\n if (msg != null) {\n sender = (ActorRef<T>)(msg.getSender());\n receive((T) msg.getMessage());\n }\n }\n }", "title": "" }, { "docid": "84bb883d18c6b79d974644830c7c4bec", "score": "0.564913", "text": "@Override\r\n\t public void run() {\n\t Message msg = handler.obtainMessage();\r\n\t msg.arg1 = 2;\r\n\t handler.sendMessage(msg);\r\n\t }", "title": "" }, { "docid": "84bb883d18c6b79d974644830c7c4bec", "score": "0.564913", "text": "@Override\r\n\t public void run() {\n\t Message msg = handler.obtainMessage();\r\n\t msg.arg1 = 2;\r\n\t handler.sendMessage(msg);\r\n\t }", "title": "" }, { "docid": "342f0b7f9352e6ec029d92e575abd9d5", "score": "0.56362736", "text": "public abstract void receiveCommand(String message);", "title": "" }, { "docid": "95a85ea5938725665878b80cb13ab9fc", "score": "0.5630371", "text": "@Override\r\n\tprotected void dispatchReceivedMsg(String msg) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c035a65390e686f7e92f6e54f0fa86b8", "score": "0.56285375", "text": "public void receive(String msg) \n\t{\n\t\t\n\t\t\n\t\tJSONObject jsonObject = null;\n\t\ttry {\n\t\t\tjsonObject = new JSONObject(msg);\n\n\t\t\tif(jsonObject.has(\"error\")) {\t\t\t\n\t\t\t\tif(jsonObject.has(\"text\")) {\n\t\t\t\t\trunning = false;\n\t\t\t\t\tchat.showMessage(\"Server Error!\", jsonObject.getString(\"text\"));\t\t// reg_fail\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tchat.showMessage(\"Server Error!\", jsonObject.getString(\"error\"));\t// not_registered, already_registered, invalid json string\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(jsonObject.has(\"info\")) {\n\t\t\t\tchat.showMessage(\"Server Information\", jsonObject.getString(\"info\"));\t// information response to cmd info\n\t\t\t}\n\t\t\telse if(jsonObject.has(\"index\")) {\n\t\t\t\tregistered = true;\n\t\t\t\tchat.myIndex = jsonObject.getInt(\"index\");\n\t\t\t\tlamport = jsonObject.getInt(\"init_lamport\");\n\t\t\t\ttextMsgInputBuffer.lamportDelivered = lamport;\n\t\t\t\tchat.showMessage(\"Server Information\", \"Successfully registered!\");\n\t\t\t}\n\t\t\telse if(jsonObject.has(\"cmd\") && jsonObject.get(\"cmd\").equals(\"message\")) { // Message\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (jsonObject.has(\"sender\"))\n\t\t\t\t{\n\t\t\t\t\ttextMsgInputBuffer.addMsg(new TextMessage(jsonObject.get(\"sender\").toString(), jsonObject.get(\"text\").toString(), jsonObject.getInt(\"lamport\"))); //TODO: lamport\n\t\t\t\t\tlamport = Math.max(lamport, jsonObject.getInt(\"lamport\"));\n\t\t\t\t\tLog.d(\"msg\", jsonObject.get(\"text\").toString()+\" - \"+jsonObject.getInt(\"lamport\"));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tchat.showMessage(\"Server\", jsonObject.get(\"text\").toString());\n\t\t\t\t}\n\t\t\t\t\t\n//\t\t\t\t\tif(chat.clientNamehashtable.containsKey(jsonObject.get(\"sender\").toString()) == true) {\n//\t\t\t\t\t\tchat.showMessage(chat.clientNamehashtable.get(jsonObject.get(\"sender\").toString()), jsonObject.get(\"text\").toString());\t\n//\t\t\t\t\t}\n//\t\t\t\t\telse {\n//\t\t\t\t\t\tchat.showMessage(jsonObject.get(\"sender\").toString(), jsonObject.get(\"text\").toString());\n//\t\t\t\t\t\tsendClientListRequest();\n//\t\t\t\t\t}\n\t\t\t}\n\t\t\telse if(jsonObject.has(\"success\")) {\n\t\t\t\tif (jsonObject.get(\"success\").toString().equals(\"msg_ok\"))\n\t\t\t\t{\n\t\t\t\t\ttextMsgOutputBuffer.ack(this);\n\t\t\t\t\tLog.d(\"msg\", \"ack\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(jsonObject.has(\"clients\")) {\t// list of clients\n\t\t\t\tclientListReceived = true;\n\t\t\t\tchat.clientNamehashtable.clear();\n\t\t\t\tJSONObject clients = jsonObject.getJSONObject(\"clients\");\n\t\t\t\tIterator<?> keys = clients.keys();\n\t\t\t\t\n\t\t\t\twhile(keys.hasNext()) {\n\t\t\t\t\tString key = (String)keys.next();\n\t\t\t\t\tchat.clientNamehashtable.put(key, clients.get(key).toString());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tchat.showMessage(\"Unhandled msg:\", msg);\n\t\t\t}\n\t\t\t\t\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tLog.d(\"msg\", \"RawIn: \"+msg);\n\t}", "title": "" }, { "docid": "bc7a27814806b946cd80d7b1e8b0b904", "score": "0.5625394", "text": "void onGetDataMsg(GetDataMsg msg){\n server.tell(msg, getSelf());\n }", "title": "" }, { "docid": "c54e861db2c7ec987083a0acd48cc944", "score": "0.56253844", "text": "@EventHandler\n\tpublic void onReceivedData(ReceivedDataEvent event) {\n\t\tSystem.out.println(\"ReceivedDataEvent successfully fired and received. Processing in BungeeHandler.\");\n\t\tData data = event.getData();\n\t\tString packetType = data.getString(\"Packet\");\n\t\tSystem.out.println(\"PacketType: \" + packetType);\n\t\t//indicates that craft is on DB, ready to be received. Executed by receiving end\n\t\tif(packetType.equals(\"CraftSpawnPacket\")) {\n\t\t\tString targetServer = data.getString(\"TargetServer\");\n\t\t\tfinal String pilot = data.getString(\"Pilot\");\n\t\t\t//If this is the correct server\n\t\t\tif(Bukkit.getWorld(targetServer) != null) {\n\t\t\t\tBukkit.getScheduler().runTaskAsynchronously(Movecraft.getInstance(), new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tBungeeCraftReceiver.receiveCraft(pilot);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tSystem.out.println(\"Successfully dispatched CraftSpawnPacket to \" + targetServer + \" for pilot \" + pilot);\n\t\t\t}\n\t\t}\n\t\t//indicates that craft has been received, ready to connect players. Executed by sending end\n\t\telse if(packetType.equals(\"ConnectPlayerPacket\")) {\n\t\t\tfinal String targetServer = data.getString(\"TargetServer\");\n\t\t\tString currentServer = data.getString(\"CurrentServer\");\n\t\t\tfinal String player = data.getString(\"Player\");\n\t\t\t//if this is the correct server\n\t\t\tif(Bukkit.getWorld(currentServer) != null) {\n\t\t\t\tBukkit.getScheduler().runTaskAsynchronously(Movecraft.getInstance(), new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t//Sends plugin message to connect player to server\n\t\t\t\t\t\tByteArrayDataOutput out = ByteStreams.newDataOutput();\n\t\t\t\t\t\tout.writeUTF(\"Connect\");\n\t\t\t\t\t\tout.writeUTF(targetServer);\n\t\t\t\t\t\tBukkit.getPlayer(player).sendPluginMessage(Movecraft.getInstance(), \"BungeeCord\", out.toByteArray());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tSystem.out.println(\"Successfully dispatched ConnectPlayerPacket to \" + currentServer + \" for player \" + player);\n\t\t\t}\n\t\t}\n\t\t//indicates that all players have been teleported, ready for craft removal. Executed by sending end\n\t\telse if(packetType.equals(\"CraftRemovePacket\")) {\n\t\t\tfinal String pilot = data.getString(\"Pilot\");\n\t\t\tString oldServer = data.getString(\"OldServer\");\n\t\t\tif(Bukkit.getWorld(oldServer) != null) {\n\t\t\t\tBukkit.getScheduler().runTaskAsynchronously(Movecraft.getInstance(), new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tBungeeCraftConstructor.findAndRemove(pilot);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\tSystem.out.println(\"Successfully dispatched CraftRemovePacket to \" + oldServer + \" for pilot \" + pilot);\n\t\t}\n\t}", "title": "" }, { "docid": "4207af4534bed367b9969bc4b6c1e1b9", "score": "0.56091285", "text": "public void receive (String from, String line)\n\t{\n\t\tSystem.out.println(\"received from '\" + from + \"': \" + line);\n\t\tlocal.sendToAllPeer(from + \" said \" + line);\n\t\tif (line.compareTo(\"stop\") == 0)\n\t\t{\n\t\t\tlocal.sendToAllPeer(\"server is leaving\");\n\t\t\tstop = true;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "91ff8b6ece6ed94ac6a3acf475b276a1", "score": "0.56077164", "text": "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tsuper.run();\n\t\t\t\t\t\t\t\tMessage msg = handler.obtainMessage();\n\t\t\t\t\t\t\t\tmsg.arg1 = 200;\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t\t\t\t\tcopyObb(obb_path.get(pos), packageName, leixing.get(pos));\n\t\t\t\t\t\t\t\tmsg = handler.obtainMessage();\n\t\t\t\t\t\t\t\tmsg.arg1 = 201;\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "9be011be7301f09fc2c226530e6d1609", "score": "0.55693144", "text": "@Override\n\tpublic void receiveBlockRequest(BlockRequest br) {\n\t\tif (!br.getAuthor().equals(nodeID)) {\n\t\t\t// then if requesting the latest block\n\t\t\tif (br.getBlockHash().equals(\"latest\")) {\n\t\t\t\t//then make a block delivery\n\t\t\t\tBlock b = blockChain.getLastBlock();\n\t\t\t\tBlockDelivery bd = new BlockDelivery(b, nodeID, br.getAuthor()); // Author of request is the block recipient\n\t\t\t\ttry {\n\t\t\t\t\tsendMessage(bd);\n\t\t\t\t} catch (InvalidKeyException | NoSuchAlgorithmException | NoSuchProviderException | SignatureException\n\t\t\t\t\t\t| ClassNotFoundException | IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Made block delivery\");\n\t\t\t} else {\n\t\t\t\t// else check if I have block with this blockhash\n\t\t\t\tBlock b = blockChain.getBlock(br.getBlockHash());\n\t\t\t\tif (b != null) { // if I have the block\n\t\t\t\t\t// then make a block delivery\n\t\t\t\t\tBlockDelivery bd = new BlockDelivery(b, nodeID, br.getAuthor()); // Author of request is the block recipient\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsendMessage(bd);\n\t\t\t\t\t} catch (InvalidKeyException | NoSuchAlgorithmException | NoSuchProviderException | SignatureException\n\t\t\t\t\t\t\t| ClassNotFoundException | IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Made block delivery\");\n\t\t\t\t} else {\n\t\t\t\t\t// else, pass on the block request for someone else to fill\n\t\t\t\t\tdistributeMessage(br);\n\t\t\t\t\tSystem.out.println(\"passed on block request\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// if I'm asking for the block, pass along the request\n\t\t\tdistributeMessage(br);\n\t\t}\n\t}", "title": "" }, { "docid": "bba69f88b81ba88eaea87d9556acee4f", "score": "0.5562674", "text": "private void listen() {\n\t\tbyte[] b = new byte[BUFFER_LENGTH];\n\t\tDatagramPacket dgram = new DatagramPacket(b, b.length);\n\t\t\n\t\ttry {\n\t\t\tsocket.receive(dgram);\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\t\n\t\tString raw = new String(dgram.getData());\n\t\tString msg = raw.substring(0, raw.indexOf('\\0'));\n\t\t\t\n\t\t//System.out.println(msg);\n\t\t\n\t\tmsg = msg.replace(\"<(\", \"\");\n\t\tmsg = msg.replace(\")>\", \"\");\n\t\tmsg = msg.replaceAll(\"<.>\", \"\");\n\t\t\t\n\t\t//System.out.println(msg);\n\t\t\t\n\t\tString[] tokens = msg.split(\",\");\n\t\t\n//\t\tfor(int i = 0; i<tokens.length; i++) {\n//\t\t\tSystem.out.println(tokens[i]);\n//\t\t}\n\t\t\n//\t\tSystem.out.println(\"My ID: \" + ID);\n//\t\tSystem.out.println(\"Received ID: \" + tokens[0]);\n\t\t\n\t\tif( (new Integer(ID)).equals(Integer.valueOf(tokens[0])) ) {\n//\t\t\tKernel.getInstance().getSyslog().debug(\"Received '\" + msg +\"' from Vicon.\");\n\t\t\tdata = msg;\n\t\t}\n\t}", "title": "" }, { "docid": "d2a82dd688f8b263a854f561d7d96ee4", "score": "0.55591273", "text": "@Override\r\n public void onReceive(Context context, Intent intent) {\n }", "title": "" }, { "docid": "f5be83b7e55997ec60086e62b201eb16", "score": "0.55578977", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n }", "title": "" }, { "docid": "67e2c89de3a26ec234cbed1f215ab722", "score": "0.55559105", "text": "@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\tInputStream is;\n\n\t\ttry {\n\t\t\tis = socket.getInputStream();\n\t\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(is));\n\t\t\twhile (true) {\n\t\t\t\tString msg = reader.readLine();\n\t\t\t\tSystem.out.println(\"recive�߳�����ܵ�����Ϣ\" + msg);\n\t\t\t\tsplit = msg.split(\"-\");\n\t\t\t\t// �������\n\t\t\t\tif (split[0].equals(\"CHANT\")) {\n\t\t\t\t\tSystem.out.println(split[1]);\n\t\t\t\t\tif (split[1].equals(\"OK\")) {\n\t\t\t\t\t\tchantAear.append(\"\\n\" + split[2]);\n\t\t\t\t\t\tServer_frame.clientconnect = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchantAear.append(\"\\n\" + split[1]);\n\t\t\t\t\t}\n\n\t\t\t\t} else if (split[0].equals(\"ANNIU\")) {\n\t\t\t\t\tSystem.out.println(\"�������߳������水ť����control=\" + split[1]);\n\t\t\t\t\tanniucontrol();\n\t\t\t\t}\n\n\t\t\t\telse if (split[0].equals(\"XIAQI\"))//\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"����������\");\n\t\t\t\t\t// �������\n\t\t\t\t\twho = split[2]; // ˭���İ�������\n\t\t\t\t\tSystem.out.println(\"�������߳��е�XIAQI�ж�\");\n\t\t\t\t\txiaqicontrol();\n\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "c5ba912e33fafcceed5632d59dde5ccf", "score": "0.555444", "text": "@Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t\tLog.i(TAG, Thread.currentThread().toString());\n\n\t\t\t\t\tLog.i(TAG, msg.arg1 + \"\");\n\t\t\t\t\tMessage message = hand.obtainMessage();\n\t\t\t\t\tmessage.arg1 = 1;\n\t\t\t\t\t hand.sendMessage(message);\n//\t\t\t\t\tmessage.arg1 = 2;\n//\n//\t\t\t\t\tmessage.sendToTarget();\n\t\t\t\t}", "title": "" }, { "docid": "dea9d0d46d7b4d70bf5e20e290584625", "score": "0.5553338", "text": "private void sendMsg() {\n }", "title": "" }, { "docid": "2a5544afb7ab5f30e6ecad80ec2ce61b", "score": "0.55467075", "text": "void dataReceivedGateway();", "title": "" }, { "docid": "ef1a8799f4de391a29bcbd65cf4a4d8c", "score": "0.55430526", "text": "private void receive() throws IOException, ClassNotFoundException{\n\t\tSystem.out.println(\"Serveur écoute sur le port \" + PORT);\n\t\t\n\t\t// CREATION BUFFER AVEC 256\n\t\tbyte[] buffer = new byte[256];\n\t\t\n\t\t// CREATION DATAGRAM PACKET\n\t\tDatagramPacket packet = new DatagramPacket(buffer, buffer.length);\n\t\t\n\t\t// BOUCLE POUR RECEVOIR EN CONTINU\n\t\twhile(true){\n\t\t\t// RECEPTION PAQUET (BALLOON) SUR LE SOCKET\n\t\t\tsocket.receive(packet);\n\t\t\t// TRAITEMENT FLUX\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(packet.getData());\n\t\t\tObjectInputStream ois = new ObjectInputStream(bis);\n\t\t\tBalloon balloonRecu = (Balloon) ois.readObject();\n\t\t\tSystem.out.println(\"Ballon reçu de \" + packet.getSocketAddress());\n\t\t\tif (balloon == null) {\n\t\t\t\tballoon = balloonRecu;\n\t\t\t\tSystem.out.println(balloon);\n\t\t\t\tballoon.changeSize(21);\n\t\t\t\tsocketAddressPlayer1 = packet.getSocketAddress();\n\t\t\t\tSystem.out.println(\"Balloon envoyé à player 1...\");\n\t\t\t\tsend(balloon, socketAddressPlayer1);\n\t\t\t}else{\n\t\t\t\tif (packet.getSocketAddress().equals(socketAddressPlayer1)) {\n\t\t\t\t\tSystem.out.println(\"Balloon recu de player 1\");\n\t\t\t\t\tballoon = balloonRecu;\n\t\t\t\t\tif (socketAddressPlayer2 != null) {\n\t\t\t\t\t\t// SI PLAYER 2 EXISTE ON ENVOIE LE BALLOON\n\t\t\t\t\t\tSystem.out.println(\"Balloon envoyé à player 2\");\n\t\t\t\t\t\tsend(balloon, socketAddressPlayer2);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Joueur 2 inexistant...\");\n\t\t\t\t\t}\n\t\t\t\t}else if (packet.getSocketAddress().equals(socketAddressPlayer2)) {\n\t\t\t\t\tSystem.out.println(\"Balloon recu de player 2\");\n\t\t\t\t\tballoon = balloonRecu;\n\t\t\t\t\tsend(balloon, socketAddressPlayer1);\n\t\t\t\t}else{\n\t\t\t\t\t// CREATION SOCKET ADDRESS POUR PLAYER 2\n\t\t\t\t\tsocketAddressPlayer2 = packet.getSocketAddress();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "56c12972c7fb0494e5bc46dd665e5eb4", "score": "0.5538705", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n int message = intent.getIntExtra(\"message\", -1);\n if(message == 1) mConsumerService.sendData(\"stopservice\");\n if(message == 2) mConsumerService.sendData(\"startservice\");\n }", "title": "" }, { "docid": "62482ef2c610f6d13515ac321ba77d98", "score": "0.5538326", "text": "public abstract void onMessageReceived(Message msg);", "title": "" }, { "docid": "f44e46c1f40f34de22c9b0af799c95a9", "score": "0.5521358", "text": "@Override\n\t\t\tpublic void onReceive(Context arg0, Intent arg1) {\n\t\t\t\t final String action = arg1.getAction();\n\t\t\t\t Log.d(TAG, \"widget_service--->on service, receive msg=\"+action);\n\t\t\t\t \n\t\t\t\t if (action.equals(ConstDefine.ACTION_SOURCE_CHANGE)) {\n\t\t\t\t\t mCurSource = arg1.getIntExtra(SourceManager.EXTRA_SOURCE_NO, 0);\n\t\t\t\t\tLog.d(TAG, \"widget--->on service source changed,source=\"+mCurSource);\n\t\t\t\t\tgetSourceLogic(mCurSource);\n\t\t\t\t }else if (action.equals(SourceManager.ACTION_AUDIO_FUCOS_CHANGED)) {\n\t\t\t\t\t //音频焦点发生改变\n\t\t\t\t\t String getFucosPkg = arg1.getStringExtra(SourceManager.EXTRA_AUDIO_FUCOS.GOT_FUCOS_PKG);\n\t\t\t\t\t String lossFucosPkg = arg1.getStringExtra(SourceManager.EXTRA_AUDIO_FUCOS.LOSS_FUCOS_PKG);\n\t\t\t\t\t Log.d(TAG, \"widget--->on audio fucos changed, get=\"+getFucosPkg+\",loss=\"+lossFucosPkg);\n\t\t\t\t\t \n\t\t\t\t }else if (action.equals(WidgetsBase.ACTION_NEXT)\n\t\t\t\t\t\t || action.equals(WidgetsBase.ACTION_PREVIOUS)\n\t\t\t\t\t\t || action.equals(WidgetsBase.ACTION_PLAYPAUSE)\n\t\t\t\t\t\t || action.equals(WidgetsBase.ACTION_PLAY)\n\t\t\t\t\t\t || action.equals(WidgetsBase.ACTION_PAUSE)) {\n\t\t\t\t\t \n\t\t\t\t\t Message msg = new Message();\n\t\t\t\t\t msg.what = ConstDefine.WIDGET_BUTTON_MSG;\n\t\t\t\t\t msg.obj = (String)action;\n\t\t\t\t\t mHandler.sendMessage(msg);\n\t\t\t\t }\n\t\t\t}", "title": "" }, { "docid": "3ae64c5d0d9ee2f26c573c1f8a1308d0", "score": "0.55163276", "text": "@Override\r\n\t public void run() {\n\t Message msg = handler.obtainMessage();\r\n\t msg.what = 1;\r\n\t handler.sendMessage(msg);\r\n\t }", "title": "" }, { "docid": "3ae64c5d0d9ee2f26c573c1f8a1308d0", "score": "0.55163276", "text": "@Override\r\n\t public void run() {\n\t Message msg = handler.obtainMessage();\r\n\t msg.what = 1;\r\n\t handler.sendMessage(msg);\r\n\t }", "title": "" }, { "docid": "3ed0be6caab75373dd9f50454eacd2c9", "score": "0.55125123", "text": "protected Object receiveMessage() throws IOException, ClassNotFoundException {\n return this.objectReceiver.readObject();\n }", "title": "" }, { "docid": "f07f275b7c8ad73b63ac98cb5427ca24", "score": "0.5509065", "text": "public void recibir() {\n byte buffer[] = new byte[1024];\n // Luego el DatagramPacket para poder recibir\n this.recibe = new DatagramPacket(buffer, buffer.length);\n try {\n // Recibimos el mensaje\n this.ms.receive(this.recibe);\n String msj = new String(buffer, 0, this.recibe.getData().length);\n // Mostra el mensaje recibido en pantalla\n System.out.println(\"->> \" + msj);\n }\n catch (IOException ex) {\n ex.printStackTrace();\n }\n finally {\n this.ms.close();\n }\n }", "title": "" }, { "docid": "dd1bf0ee5caa9b50f197a509c0bbf025", "score": "0.55075413", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String resType=intent.getStringExtra(\"TYPE\");\n if(\"RESULT\".equals(resType)) {\n String message = intent.getStringExtra(\"OUTPUT\");\n// String message = intent.getStringExtra(ActivityDialog.RESULT);\n Log.d(\"abc\", \"message = \"+message);\n callback.onReceive(message);\n }\n }", "title": "" }, { "docid": "fa159585c193e676fd73b869ae0db8ed", "score": "0.5491138", "text": "private String receive() throws IOException{\n return in.readLine().trim();\n }", "title": "" }, { "docid": "0f4c937d03258b8b47224f39c0133add", "score": "0.54898506", "text": "abstract void send();", "title": "" }, { "docid": "0e0dffcd035386ab5eba77aa1da730e4", "score": "0.5488103", "text": "public void receive( MidiMessage m, SbOutput output );", "title": "" }, { "docid": "6069a8bc7550c152a6bdf85ae49e5a45", "score": "0.5488047", "text": "@Override\n\t\t\t\tpublic void onBufferReceived(byte[] p1)\n\t\t\t\t{\n\t\t\t\t}", "title": "" }, { "docid": "e0a8ab71d1b1c5613f89924cb784efa4", "score": "0.5487951", "text": "public void handleMessageFromServer(Object msg) {\n\t\tsetResultObject(msg);\n\t\tsynchronized (this) {\n\t\t\tsetGotMessage(true);\n\t\t}\n\n\t}", "title": "" }, { "docid": "abf9e88fd90f48c8ff435438aa8991d9", "score": "0.5485214", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n\n }", "title": "" }, { "docid": "da5517e9a3d96c36494d6560991361ea", "score": "0.54846835", "text": "@Override\r\n public void action()\r\n {\n ACLMessage msg = agent.receive(template);\r\n if (msg != null)\r\n {\r\n if (msg.getPerformative() == ACLMessage.INFORM)\r\n {\r\n Info info = null;\r\n try\r\n {\r\n info = Mapper.getObjectMapper().readValue(msg.getContent(), Info.class);\r\n }\r\n catch (Exception ex)\r\n {\r\n\r\n }\r\n switch (info.getType())\r\n {\r\n\r\n }\r\n }\r\n\r\n switch (agent.getModel().getGame().getNextTurn())\r\n {\r\n case ASK_EXCHANGE:\r\n {\r\n ACLMessage message = new ACLMessage(ACLMessage.INFORM);\r\n StringWriter sw = new StringWriter();\r\n\r\n Info info = new Info();\r\n info.setType(InfoType.PLAYER_TURN);\r\n\r\n try\r\n {\r\n Mapper.getObjectMapper().writeValue(sw, info);\r\n }\r\n catch (Exception e)\r\n {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n for (IPlayer player : agent.getModel().getGame().getExchanger())\r\n {\r\n message.addReceiver(agent.getModel().getPlayersMap().get(player));\r\n }\r\n message.setContent(sw.toString());\r\n\r\n agent.send(message);\r\n break;\r\n }\r\n\r\n case DETERMINATE_FIRST_PLAYER:\r\n {\r\n ACLMessage message = new ACLMessage(ACLMessage.INFORM);\r\n StringWriter sw = new StringWriter();\r\n\r\n Info info = new Info();\r\n info.setType(InfoType.PLAYER_START);\r\n\r\n try\r\n {\r\n Mapper.getObjectMapper().writeValue(sw, info);\r\n }\r\n catch (Exception e)\r\n {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n DFAgentDescription template = new DFAgentDescription();\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(\"Rule\");\r\n sd.setName(\"RuleAgent\");\r\n template.addServices(sd);\r\n try\r\n {\r\n DFAgentDescription[] result = DFService.search(this.agent, template);\r\n if (result.length > 0)\r\n {\r\n message.addReceiver(result[0].getName());\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n message.setContent(sw.toString());\r\n\r\n agent.send(message);\r\n break;\r\n }\r\n case DETERMINATE_SCORE:\r\n {\r\n ACLMessage message = new ACLMessage(ACLMessage.INFORM);\r\n StringWriter sw = new StringWriter();\r\n\r\n Info info = new Info();\r\n info.setType(InfoType.CALCUL_SCORE);\r\n\r\n try\r\n {\r\n Mapper.getObjectMapper().writeValue(sw, info);\r\n }\r\n catch (Exception e)\r\n {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n DFAgentDescription template = new DFAgentDescription();\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(\"Rule\");\r\n sd.setName(\"RuleAgent\");\r\n template.addServices(sd);\r\n try\r\n {\r\n DFAgentDescription[] result = DFService.search(this.agent, template);\r\n if (result.length > 0)\r\n {\r\n message.addReceiver(result[0].getName());\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n message.setContent(sw.toString());\r\n\r\n agent.send(message);\r\n break;\r\n }\r\n case DETERMINATE_WINNER:\r\n {\r\n ACLMessage message = new ACLMessage(ACLMessage.INFORM);\r\n StringWriter sw = new StringWriter();\r\n\r\n Info info = new Info();\r\n info.setType(InfoType.CALCUL_WINNER_FOLD);\r\n\r\n try\r\n {\r\n Mapper.getObjectMapper().writeValue(sw, info);\r\n }\r\n catch (Exception e)\r\n {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n DFAgentDescription template = new DFAgentDescription();\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(\"Rule\");\r\n sd.setName(\"RuleAgent\");\r\n template.addServices(sd);\r\n try\r\n {\r\n DFAgentDescription[] result = DFService.search(this.agent, template);\r\n if (result.length > 0)\r\n {\r\n message.addReceiver(result[0].getName());\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n message.setContent(sw.toString());\r\n\r\n agent.send(message);\r\n break;\r\n }\r\n case DISTRIBUTE:\r\n {\r\n ACLMessage message = new ACLMessage(ACLMessage.INFORM);\r\n StringWriter sw = new StringWriter();\r\n\r\n Info info = new Info();\r\n info.setType(InfoType.INIT_CARDS);\r\n\r\n try\r\n {\r\n Mapper.getObjectMapper().writeValue(sw, info);\r\n }\r\n catch (Exception e)\r\n {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n DFAgentDescription template = new DFAgentDescription();\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(\"Rule\");\r\n sd.setName(\"RuleAgent\");\r\n template.addServices(sd);\r\n try\r\n {\r\n DFAgentDescription[] result = DFService.search(this.agent, template);\r\n if (result.length > 0)\r\n {\r\n message.addReceiver(result[0].getName());\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n message.setContent(sw.toString());\r\n\r\n agent.send(message);\r\n break;\r\n }\r\n case END_GAME:\r\n break;\r\n case DO_EXCHANGE:\r\n {\r\n for (Entry<IPlayer, Deck> entry : agent.getModel().getGame().getExchange().entrySet())\r\n {\r\n\r\n }\r\n break;\r\n }\r\n case GIVE_PLAYER_TURN:\r\n {\r\n ACLMessage message = new ACLMessage(ACLMessage.INFORM);\r\n StringWriter sw = new StringWriter();\r\n\r\n Info info = new Info();\r\n info.setType(InfoType.PLAYER_TURN);\r\n\r\n try\r\n {\r\n Mapper.getObjectMapper().writeValue(sw, info);\r\n }\r\n catch (Exception e)\r\n {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n message.setContent(sw.toString());\r\n\r\n for (IPlayer player : agent.getModel().getGame().getTarget())\r\n {\r\n message.addReceiver(agent.getModel().getPlayersMap().get(player));\r\n }\r\n\r\n agent.send(message);\r\n }\r\n break;\r\n case WAIT:\r\n break;\r\n default:\r\n break;\r\n\r\n }\r\n }\r\n block();\r\n }", "title": "" }, { "docid": "372af93b52f6111b52f42b862dbefea2", "score": "0.548411", "text": "void ReceiveFileChunkFromNeighbor() throws Exception, ClassNotFoundException {\t\t\n\t\ttry {\n\t\t\tint\tchunkNum = Integer.parseInt((String)inDown.readObject());\n\t\t\tif (chunkNum == -1)\n\t\t\t\treturn;\n\t\t\t\n\t\t\tbyte[] msg = (byte[]) inDown.readObject();\n\t\t\t\n\t\t\t// Store the chunk received to \"chunks\" folder\n\t\t\tFile chunkFile = new File(\"Client\" + clientNum + \"/chunks/\" + filename + \".\" + chunkNum);\n\t\t\tFiles.write(chunkFile.toPath(), msg);\n\t\t\t\n\t\t\tavailableChunks[chunkNum] = chunkFile;\n\t\t\tSystem.out.println(\"Received chunk \" + chunkNum + \" from Client \" + dwldNeighbor);\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\tflag = true;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tflag = true;\n\t\t}\n\t}", "title": "" }, { "docid": "d2440a4f69bc25809bfe2e6db7cf35a3", "score": "0.5478313", "text": "private void act() {\r\n effOut.sendAgentMessage();\r\n }", "title": "" }, { "docid": "a9295150e1ae0dfc75751a9ac832a6df", "score": "0.5474166", "text": "@Override\n\t\t\t/**\n\t\t\t * This method executes when the server has received a reliable\n\t\t\t * message packet (TCP).\n\t\t\t *\n\t\t\t * @param server\n\t\t\t * the server listening to this socket and receiving.\n\t\t\t * @param client\n\t\t\t * the client connection which is sending.\n\t\t\t * @param bytes\n\t\t\t * the array of bytes in the message.\n\t\t\t */\n\t\t\tpublic void receivedMessage(final SocketServer server, final SocketClient client, final byte[] bytes) {\n\t\t\t\tString bufferString = LowEntry.bytesToStringUtf8(bytes);\n\t\t\t\tif (bufferString.equals(\"Bot\")) {\n\t\t\t\t\tString botID = client.getRemoteAddress().toString();\n\t\t\t\t\tboolean searching = true;\n\t\t\t\t\tRandom random = new Random();\n\t\t\t\t\tString roleName = null;\n\t\t\t\t\twhile (searching) {\n\t\t\t\t\t\tint role = random.nextInt(4);\n\t\t\t\t\t\tif (role == 0 && ALICE == null) {\n\t\t\t\t\t\t\tALICE = botID;\n\t\t\t\t\t\t\tsearching = false;\n\t\t\t\t\t\t\troleName = \"ALICE\";\n\t\t\t\t\t\t\tclient.sendMessage(LowEntry.stringToBytesUtf8(-4 + \"\"));\n\t\t\t\t\t\t} else if (role == 1 && BOB == null) {\n\t\t\t\t\t\t\tBOB = botID;\n\t\t\t\t\t\t\tsearching = false;\n\t\t\t\t\t\t\troleName = \"BOB\";\n\t\t\t\t\t\t\tclient.sendMessage(LowEntry.stringToBytesUtf8(-3 + \"\"));\n\t\t\t\t\t\t} else if (role == 2 && CAROL == null) {\n\t\t\t\t\t\t\tCAROL = botID;\n\t\t\t\t\t\t\tsearching = false;\n\t\t\t\t\t\t\troleName = \"CAROL\";\n\t\t\t\t\t\t\tclient.sendMessage(LowEntry.stringToBytesUtf8(-2 + \"\"));\n\t\t\t\t\t\t} else if (role == 3 && DAN == null) {\n\t\t\t\t\t\t\tDAN = botID;\n\t\t\t\t\t\t\tsearching = false;\n\t\t\t\t\t\t\troleName = \"DAN\";\n\t\t\t\t\t\t\tclient.sendMessage(LowEntry.stringToBytesUtf8(-1 + \"\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"Bot connected! \" + botID + \" as \" + roleName);\n\n\t\t\t\t\t// This is a state captured by some bot.\n\t\t\t\t} else if (bufferString.startsWith(\"bot:\")) {\n\t\t\t\t\tString botID = client.getRemoteAddress().toString();\n\t\t\t\t\tString roleName = null;\n\t\t\t\t\tif (botID.equals(ALICE)) {\n\t\t\t\t\t\troleName = \"ALICE\";\n\t\t\t\t\t} else if (botID.equals(BOB)) {\n\t\t\t\t\t\troleName = \"BOB\";\n\t\t\t\t\t} else if (botID.equals(CAROL)) {\n\t\t\t\t\t\troleName = \"CAROL\";\n\t\t\t\t\t} else if (botID.equals(DAN)) {\n\t\t\t\t\t\troleName = \"DAN\";\n\t\t\t\t\t}\n\n\t\t\t\t\t// Generate a simple series of decisions.\n\t\t\t\t\tint decision = 0;\n\t\t\t\t\tif (DEBUG_BOT) {\n\t\t\t\t\t\tif (!priorDecision.containsKey(botID)) {\n\t\t\t\t\t\t\tpriorDecision.put(botID, 0);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tint lastDecision = priorDecision.get(botID);\n\t\t\t\t\t\t\tswitch (lastDecision) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tdecision = 5;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\tdecision = 7;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\t\tdecision = 0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpriorDecision.put(botID, decision);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tGameState state = new GameState(bufferString.split(\":\")[1]);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdecision = RESTClient.getDecision(roleName, state).getBotCode();\n\t\t\t\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(botID + \" : \" + roleName + \" decided \" + decision + \" - \" + bufferString);\n\t\t\t\t\tclient.sendMessage(LowEntry.stringToBytesUtf8(decision + \"\"));\n\n\t\t\t\t\t// Respond to end-game signals to reset the server.\n\t\t\t\t} else if (bufferString.equals(\"Erase\")) {\n\t\t\t\t\tALICE = null;\n\t\t\t\t\tBOB = null;\n\t\t\t\t\tCAROL = null;\n\t\t\t\t\tDAN = null;\n\n\t\t\t\t\t// This is state from a player. Parse the message into JSON\n\t\t\t\t\t// format and take action.\n\t\t\t\t} else {\n\t\t\t\t\tif (!OFFLINE) {\n\t\t\t\t\t\tSystem.out.println(System.currentTimeMillis() + \" Stowing to RDS!\");\n\t\t\t\t\t\tDBConnect dbc;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdbc = RDSInserter.getDatabaseConnection();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tJSONArray jsonArray = (JSONArray) parser.parse(bufferString);\n\t\t\t\t\t\t\t\tString actionEntry = (String) jsonArray.get(jsonArray.size() - 1);\n\t\t\t\t\t\t\t\tint action = Integer.parseInt(actionEntry.split(\":\")[1].trim());\n\t\t\t\t\t\t\t\tfor (int i = 0; i < jsonArray.size() - 1; i++) {\n\t\t\t\t\t\t\t\t\tString row = tick + \",\" + (String) jsonArray.get(i) + \",\" + action;\n\t\t\t\t\t\t\t\t\tSystem.out.println(row);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tRDSInserter.insertRow(dbc, row);\n\t\t\t\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(System.currentTimeMillis() + \" Failed to insert row.\");\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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} catch (ParseException e) {\n\t\t\t\t\t\t\t\tSystem.out.println(System.currentTimeMillis() + \" Failed to parse state.\");\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\tSystem.out.println(System.currentTimeMillis() + \" Failed to connect to database.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "062e6d3499ac5c947c801bcd4d00e526", "score": "0.54722816", "text": "@Override\r\n\t public void messageReceived(MessageEvent m)\r\n\t { \r\n\t if (m.getType() == 0)\r\n\t { \r\n\t \tif((m.getMessage().contains(\"command does not exist\"))){\r\n\t \t\tif(picIsOn)\r\n\t \t\t\tpicIsOn = false;\r\n\t \t\telse\r\n\t \t\t\tpicIsOn = true;\r\n\t \t}\r\n\t \t\r\n\t \tif((m.getMessage().contains(\"have to kill all barrow brothers\"))){\r\n\t \t\tBarrowLibrary.falseLoot = true;\r\n\t \t}\r\n\t }\r\n\t }", "title": "" }, { "docid": "5ddcc4ddb78d5cc5e72d2638de4cb91c", "score": "0.5471577", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String com = intent.getAction();\n System.out.println(com);\n if (com.equals(PALY)) {\n } else if (com.equals(PAUSE)) {\n try {\n switch (type) {\n case 1:\n\n break;\n case 2:\n if (mediaPlayer.isPlaying()) {\n mediaPlayer.pause();\n } else {\n mediaPlayer.start();\n }\n break;\n case 3:\n if (chabovod.isPlaying()) {\n chabovod.pause();\n } else {\n chabovod.start();\n }\n break;\n case 4:\n break;\n default:\n if (chabovod.isPlaying()) {\n chabovod.pause();\n } else {\n chabovod.start();\n }\n break;\n }\n\n } catch (Exception e) {\n // TODO: handle exception\n }\n } else if (com.equals(STOP)) {\n finish();\n } else if (com.equals(FORWARD)) {\n\n try {\n if (timer != null) {\n timer.cancel();\n }\n timer = new Timer();\n if (cmmond.getType() == 2) {\n timer.schedule(new TimerTask() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n handle.sendEmptyMessage(1);\n\n }\n }, 0, 1 * 1000);\n\n }\n } catch (Exception e) {\n // TODO: handle exception\n System.out.println(e.toString());\n }\n\n } else if (com.equals(REWIND)) {\n try {\n if (timer != null) {\n timer.cancel();\n }\n timer = new Timer();\n if (cmmond.getType() == 2) {\n timer.schedule(new TimerTask() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n handle.sendEmptyMessage(2);\n }\n }, 0, 1 * 1000);\n }\n } catch (Exception e) {\n // TODO: handle exception\n System.out.println(e.toString());\n }\n } else if (com.equals(Cancle)) {\n if (timer != null) {\n timer.cancel();\n }\n\n }\n }", "title": "" }, { "docid": "5b432e8ad2775580214aa7113bd28e63", "score": "0.5463701", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n id = intent.getIntExtra(ID, 1);\n }", "title": "" }, { "docid": "80d55b92c0219b5e5a6545271d817d23", "score": "0.5462716", "text": "@Override\n public void messageReceived(\n ChannelHandlerContext ctx, MessageEvent e) {\n transferredMessages.incrementAndGet(); \n \tChannelBuffer buffer = (ChannelBuffer) e.getMessage();\n \tbyte[] b = buffer.array();\n \tMessagePack msgpck = new MessagePack();\n \t \tMessage m = Message.decode(b);\n System.out.println(\"Server receivedddd \"+m.toString());\n \t\n// e.getChannel().write(e.getMessage());\n \n \n \n// // Send back the received message to the remote peer.\n\n// transferredBytes.addAndGet(buffer.readableBytes());\n// System.out.println(\"Server get message :\"+buffer.toString(CharsetUtil.UTF_8)+\"from CHannel %\"+ctx.getChannel().getId()); \n// String json = buffer.toString(CharsetUtil.UTF_8);\n// //\tParse the json string\n// Gson gson = new Gson();\n// JsonParser parser = new JsonParser();\n// JsonArray array = parser.parse(json).getAsJsonArray();\n// String message = gson.fromJson(array.get(0), String.class);\n// int number = gson.fromJson(array.get(1), int.class);\n// // MyClass event = gson.fromJson(array.get(2), MyClass.class);\n// System.out.printf(\"Using Gson.fromJson() to get: %s, %d\\n\", message, number);\n// e.getChannel().write(e.getMessage());\n// //After parsing the message we would do some pile up work...\n// //Like some big switch case for some cocurrent queues,\n// // But now we would only execute them serializingly.\n }", "title": "" }, { "docid": "09ed2d42c01c1a49f2934c2740b65fbd", "score": "0.54564035", "text": "public void onReceive(Object message) {\n if (message instanceof Bet) {\n // todo\n } else if (message instanceof RetrieveBets) {\n // todo\n } else {\n unhandled(message);\n }\n }", "title": "" }, { "docid": "624601a7abee811e2071bb86a61aa7a2", "score": "0.5456013", "text": "@Override\n public void onReceive( Context context, Intent intent ) {\n tv_ch_url = intent.getStringExtra( \"url\" );\n current_ch_number = intent.getStringExtra( \"channel_number\" );\n\n Log.d( TAG, \"Got message : \" + current_ch_number );\n\n recreate();\n }", "title": "" }, { "docid": "641664c53a30cd4e1232b019dbf4d67e", "score": "0.54480207", "text": "@Override\n\tpublic void onRealTimeMessageReceived(RealTimeMessage rtm) {\n\t\tbyte[] buf = rtm.getMessageData();\n\t String sender = rtm.getSenderParticipantId();\n\t Log.d(\"harsim\",new String(buf));\n\t\tif(!buf.equals(game.update))\n\t\t{\n\t\t\tgame.update=new String(buf);\n\t\t\tgame.full=true;\n\t\t}\n\t}", "title": "" }, { "docid": "b710ce64e63526b0fe08a00af9e925d3", "score": "0.5442744", "text": "public abstract void SendCommando(byte[] block);", "title": "" }, { "docid": "b3167e161810da6ac316b17774d9566a", "score": "0.54416615", "text": "public void receive(Message message) throws IOException{\n\t\tsend(message);\r\n\t\tString s = msgParse(message);\r\n\t\tdisplay(s);\r\n\t}", "title": "" }, { "docid": "aa25a280d4fe15b036fc2d8b92233bde", "score": "0.54371697", "text": "@Override\r\n public void run() {\n DatagramPacket receivePacket = new DatagramPacket(data, data.length);\r\n setReceivePacket(receivePacket);\r\n try {\r\n socket.receive(receivePacket);\r\n //put the code from receiver 73 line to 144 \r\n \r\n } catch (IOException ex) {\r\n // TODO Auto-generated catch block\r\n ex.printStackTrace();\r\n }\r\n\r\n }", "title": "" }, { "docid": "f8098ea53e5741954d2b036fb5c8bf20", "score": "0.5434972", "text": "@Override\n public void run() {\n Message message = new Message();\n message.what = 1;\n handler.sendMessage(message);\n }", "title": "" }, { "docid": "868dffef415407de4a6f2a7ea2212ea3", "score": "0.54304695", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\treceiving = true;\n\n\t\t\t\t\t\t// Printing a message\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"\\nConnection received from computer with ID \"\n\t\t\t\t\t\t\t\t\t\t+ SenderID.ipToID(socket\n\t\t\t\t\t\t\t\t\t\t\t\t.getInetAddress()\n\t\t\t\t\t\t\t\t\t\t\t\t.getHostAddress()));\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Receiving file\n\t\t\t\t\t\t\treceive(client);\n\n\t\t\t\t\t\t\t// Unzip received file\n\t\t\t\t\t\t\tCmdZipper.unzip();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// Printing a message\n\t\t\t\t\t\t\tSystem.out.println(\"Unable to receive the file : \"\n\t\t\t\t\t\t\t\t\t+ e + \"\\n\");\n\n\t\t\t\t\t\t\t// Printing the error\n\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t// And exiting\n\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t// Setting receiving to false\n\t\t\t\t\t\t\treceiving = false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Printing a message\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"\\nServer is ready to receive new files\");\n\t\t\t\t\t}", "title": "" }, { "docid": "3dff394ddb35f3a9228bf3d4a80705cd", "score": "0.54300654", "text": "public void messageReceived(String message);", "title": "" }, { "docid": "7bfd0104ab24ee9da396ec3111bf044b", "score": "0.54292876", "text": "@OverLoadFunc void send();", "title": "" }, { "docid": "a43211fe0140abd4b2cb7fe6cdb3e022", "score": "0.5427958", "text": "@Override\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tif(intent.getAction().equals(LampService.RECEIVE_GROUPS)){\n\t\t\t\treceivedGroups(context, intent);\n\t\t\t}\n\t\t\telse if(intent.getAction().equals(LampService.RECEIVE_LAMP)){\n\t\t\t\treceiveLamp(context, intent);\n\t\t\t}\n\t\t\telse if(intent.getAction().equals(LampService.RECEIVE_CHANGEBRIGHT)){\n\t\t\t\treceiveChangeBright(context, intent);\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(intent.getAction().equals(LampService.RECEIVE_CHANGEPOWER)){\n\t\t\t\treceiveChangePower(context, intent);\t\n\t\t\t}\n\t\t\telse if(intent.getAction().equals(LampService.RECEIVE_CONSUMPTION)){\n\t\t\t\treceiveConsumptionEvent(context, intent);\n//\t\t\t\tToast.makeText(context, \"Received consumption broadcast\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a500f12743ebd2cdaee76b24d74746e2", "score": "0.5427503", "text": "@Override\n\t\t\tpublic void processMessage(Chat arg0, Message arg1)\n\t\t\t{\n\t\t\t}", "title": "" }, { "docid": "65c89726481d7c31cf73cb096cb22158", "score": "0.5426038", "text": "public void messageReceived(IoSession session, Object m) {\n\n\t}", "title": "" }, { "docid": "d5cc5b133c6f9fd550344c2d01375614", "score": "0.5418498", "text": "@Override\n\tpublic void run() {\n\t\tmsg = Message.obtain();\n\t//\tmsg.what = Util.CompareVersion(context, version);\n//\t\tmsg.obj = version;\n\t\tsendMessage();\n\t}", "title": "" }, { "docid": "649c308933d844faef66ca630f3068cc", "score": "0.5414932", "text": "@Override\n public void onReceiveReplayJoinGroup(int code, GotyeGroup group,\n GotyeUser sender, String message, boolean isAgree) {\n\n }", "title": "" }, { "docid": "5be04ffa7e9d52c5da367a282b21875c", "score": "0.5414176", "text": "@Override\r\n\tpublic void recv(String[] data) {\n\t}", "title": "" }, { "docid": "2474fb765717ad54f01dd6f58949e352", "score": "0.54120845", "text": "@Override\r\n public void pipeMsgEvent(PipeMsgEvent event) {\r\n\t synchronized(messageInLock){\r\n\t\t try {\r\n\t\t\t Message msg = event.getMessage();\r\n\t\t\t byte[] dataBytes = msg.getMessageElement(\"Data\").getBytes(true); \r\n\t\t\t byte[] reqBytes = msg.getMessageElement(\"Request\").getBytes(true); \r\n\t\t\t byte[] nameBytes = msg.getMessageElement(\"PName\").getBytes(true); \r\n\t\t\t byte[] fnBytes = msg.getMessageElement(\"FileName\").getBytes(true); \r\n\t\t\t String temp = new String(reqBytes);\r\n\t\t\t int req = Integer.parseInt(temp);\r\n\t\t\t reqType request = reqType.values()[req];\r\n\t\t\t String theirName = new String(nameBytes);\r\n\t\t\t String data;\r\n\t\t\t JPFSPrinting.printMessageHeader(request, theirName, dataBytes);\r\n\t\t\t if(request == reqType.FILERES){ // they sent us a file back!\r\n\t\t\t\t byte[] csbytes = msg.getMessageElement(\"Checksum\").getBytes(true); \r\n\t\t\t\t String checksum = new String(csbytes);\r\n\t\t\t\t X509EncodedKeySpec pkSpec = new X509EncodedKeySpec(msg.getMessageElement(\"PKey\").getBytes(true));\r\n\t\t\t\t KeyFactory kf = KeyFactory.getInstance(\"DSA\", \"SUN\");\r\n\t\t\t\t SignedContents sc = new SignedContents(kf.generatePublic(pkSpec), msg.getMessageElement(\"Signature\").getBytes(true));\r\n\t\t\t\t handleFile(dataBytes, new String(fnBytes), checksum, sc); //handle the bytes\r\n\t\t\t\t return;\r\n\t\t\t }else if(request == reqType.FILEINFORES){ // we got a response about file info\r\n\t\t\t\t File f = new File(\".\\\\temp\\\\\"+FilenameUtils.getBaseName(new String(fnBytes))+\".ser\");\r\n\t\t\t\t f.createNewFile();\r\n\t\t\t\t FileOutputStream fos = new FileOutputStream(f);\r\n\t\t\t\t byte[] decryp = EncryptUtil.decryptBits(eKey, eVector, dataBytes);\r\n\t\t\t\t fos.write(decryp);\r\n\t\t\t\t FileInputStream fis = new FileInputStream(f);\r\n\t\t\t\t ObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\t\t JPFSFile fInfo = (JPFSFile)ois.readObject();\r\n\t\t\t\t ois.close();\r\n\t\t\t\t fis.close();\r\n\t\t\t\t fos.close();\r\n\t\t\t\t displayFileInfo(fInfo, false);\r\n\t\t\t\t return;\r\n\t\t\t }else if(request == reqType.FILEINFOREQ){\r\n\t\t\t\t handleReq(new String(fnBytes),request,theirName);\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t data = new String(dataBytes);\r\n\t\t\t handleReq(data,request,theirName);\r\n\t\t }\r\n\t\t catch (Exception e) {\r\n \t JPFSPrinting.logError(\"Error reading message from output pipe\", errorLevel.RECOVERABLE);\r\n\t\t }\r\n\t }\r\n }", "title": "" }, { "docid": "8703f0e74c5bf6614a55e0f31c38ff45", "score": "0.54115653", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tbyte[] data = HFSendCmdHelper.getSendSyncCmdHelper().sendAuto(mi, t2);\n\t\t\t\t\tevt.onRecv(mi, data);\n\t\t\t\t} catch (HFModuleException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tevt.onRecv(mi, null);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "c94f45ae91bf9a727629c5df45ddadd2", "score": "0.5411469", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tMessage msg = new Message();\n\n\t\t\t\t// Imposta come destinatario tutti gli utenti presenti sul\n\t\t\t\t// server\n\t\t\t\tmsg.setTo(\"all@broadcast.ppl.eln.uniroma2.it\");\n\n\t\t\t\t// Controllo se sono Sender o Receiver. In base a questo\n\t\t\t\t// controllo aggiungo una stringa davanti al messaggio per\n\t\t\t\t// identificare chi manda i messaggi.\n\t\t\t\tif (isSender)\n\t\t\t\t\tscritta = \"SENDER\" + scritta;\n\t\t\t\telse\n\t\t\t\t\tscritta = \"RECEIVER\" + scritta;\n\n\t\t\t\tLog.d(\"XMPPChat\", \"Hai scritto: \" + scritta);\n\n\t\t\t\t// Inserisce il testo della TextView\n\t\t\t\tmsg.setBody(scritta);\n\n\t\t\t\t// Viene spedito il pacchetto\n\t\t\t\tconnection.sendPacket(msg);\n\n\t\t\t\t// Il messaggio che invio sono di questo tipo:\n\t\t\t\t// SENDERMOVE;50;47\n\t\t\t\t// RECEIVERDOWN;14;65\n\t\t\t\t//\n\t\t\t\t// Dove ho usato come delimitatore il carattere \";\" per\n\t\t\t\t// distinguere le parti del messaggio.\n\t\t\t\t// La prima indica se il SENDER o se il RECEIVER ha eseguito una\n\t\t\t\t// ACTION_DOWN o una ACTION_MOVE mentre la seconda e terza parte\n\t\t\t\t// del messaggio indicano le coordinate dell'azione espresse in\n\t\t\t\t// percentuale rispetto alla View di origine\n\t\t\t}", "title": "" }, { "docid": "4f2c33998f1d4b715fe67f2383165664", "score": "0.54090786", "text": "@Override\r\n\tpublic void run() {\r\n\r\n\t\tServerSocket serverSocket = null;\r\n\t\ttry {\r\n\r\n\t\t\tserverSocket = new ServerSocket(1111);\r\n\t\t\twhile (true) {\r\n\r\n\t\t\t\tSystem.out.println(\"Peer 1 started at port 1111....\");\r\n\t\t\t\tSocket otherPeerSocket = serverSocket.accept();\r\n\t\t\t\t/* start new thread for each request */\r\n\t\t\t\tnew Peer(otherPeerSocket).start();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\r\n\t\tMessage msg = null;\r\n\t\tObjectInputStream ois;\r\n\t\tObjectOutputStream oos = null;\r\n\r\n\t\tboolean isConnected = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tois = new ObjectInputStream(socket.getInputStream());\r\n\t\t\t\tmsg = (Message) ois.readObject();\r\n\t\t\t\tSystem.out.println(\"Peer 1 is being requested file \" + msg.getFileToSerach());\r\n\t\t\t\tString fileRequested = getAbsPathOfTheFile(msg.getFileToSerach(), CommonUtil.SEND);// CommonUtil.RCV+msg.getFileToSerach();\r\n\t\t\t\tString content = new String(Files.readAllBytes(Paths.get(fileRequested)));\r\n\t\t\t\toos = new ObjectOutputStream(socket.getOutputStream());\r\n\t\t\t\toos.writeObject(content);\r\n\t\t\t\toos.flush();\r\n\t\t\t\tisConnected = false;\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} while (isConnected);\r\n\t}", "title": "" } ]
e576c042a0438cf675f80e25098fc802
This method was generated by MyBatis Generator. This method sets the value of the database column treatment_record.hospital
[ { "docid": "d153e7334311a9909cd522bbf65e5226", "score": "0.61040574", "text": "public void setHospital(String hospital) {\r\n this.hospital = hospital == null ? null : hospital.trim();\r\n }", "title": "" } ]
[ { "docid": "61c5dbcc20043fd7b7f5001184e0a61e", "score": "0.6749213", "text": "public void setHospital(HospitalEntity hospital) {\n this.hospital = hospital;\n }", "title": "" }, { "docid": "757d9a3a563e71919d48495185a7d677", "score": "0.5619923", "text": "public String getHospital() {\r\n return hospital;\r\n }", "title": "" }, { "docid": "3182249191bd9d55ee73ac736f14abab", "score": "0.56116396", "text": "public void setHospitalId(java.lang.Integer hospitalId) {\n\t\tthis.hospitalId = hospitalId;\n\t}", "title": "" }, { "docid": "acca0aedf05da5c5bfee00f29ad55ebc", "score": "0.5519496", "text": "public HospitalEntity getHospital() {\n return hospital;\n }", "title": "" }, { "docid": "7c1cf74642da18fd06c027e37339d4d7", "score": "0.5428922", "text": "public void setHospitalDesdePaginaHospital(List<Hospital> hospital) {\n//\t\tSystem.out.println(\"ID del hospital: \"+hospital.get(0).getId());\n//\t\t\tSystem.out.println(\"ASDASDASDA ID hospitales: \"+this._hospitales.get(i).getId()+\"\\nID hospital: \"+hospital.get(0).getId());\n\t\t\t\n\t\t\n\t\t\n\t\tthis._hospital=hospital;\n//\t\tSystem.out.println(\"id: \" +index);\n\t\t\n//\t\tSystem.out.println(this._hospital.get(0).toString());\n\t\tthis._hospitales.set(this.getIndexHospitalDeHospitales(hospital),hospital.get(0)); //se establece el hospital modificado dentro de los demas \n\t}", "title": "" }, { "docid": "f558dee588aeb3b2b963687dd6e4bb74", "score": "0.5351806", "text": "int updateByPrimaryKeySelective(PublicHospital record);", "title": "" }, { "docid": "3fab97982276db0c9f8592cb1f436f25", "score": "0.53281456", "text": "int updateByPrimaryKey(PublicHospital record);", "title": "" }, { "docid": "2ecb3251da8300d8ee39cf0a688d68e1", "score": "0.52793574", "text": "public Hospital getHospital() {\n\t\treturn hospital;\n\t}", "title": "" }, { "docid": "293d2288966d20154da8c8207cd98b3f", "score": "0.5254158", "text": "DmBizdept selectByPrimaryKey(String hospitalId);", "title": "" }, { "docid": "91efc8c4b9c734e84435393c58b7f25c", "score": "0.52021146", "text": "int insertSelective(PublicHospital record);", "title": "" }, { "docid": "2acca6fe0d39bfe78a173cd44d7d07aa", "score": "0.5156265", "text": "int insertSelective(Hospital record);", "title": "" }, { "docid": "9fefcafc90e3d44cd1c0688e3339004f", "score": "0.50623685", "text": "public java.lang.Integer getHospitalId() {\n\t\treturn hospitalId;\n\t}", "title": "" }, { "docid": "d1ee76362a6b3ca6ea49f4533404180d", "score": "0.49952406", "text": "public void setVital (jkt.hrms.masters.business.MstrVitals vital) {\n\t\tthis.vital = vital;\n\t}", "title": "" }, { "docid": "229f66025d93d0ed812fccc216dba6f5", "score": "0.49527988", "text": "private PatientData createPatient(ResultSet resultSet, PatientData patient) throws SQLException {\n\n patient.setPatientId(resultSet.getInt(\"PATIENTID\"));\n patient.setFirstName(resultSet.getString(\"FIRSTNAME\"));\n patient.setLastName(resultSet.getString(\"LASTNAME\"));\n patient.setAddress(resultSet.getString(\"ADDRESS\"));\n patient.setPhone(resultSet.getString(\"PHONE\"));\n patient.setDiagnosis(resultSet.getString(\"DIAGNOSIS\"));\n patient.setAddmissionDate(resultSet.getTimestamp(\"ADMISSIONDATE\").toLocalDateTime());\n\n log.info(\"Patient bean was updated from ResultSet\");\n\n return patient;\n }", "title": "" }, { "docid": "f69b1c6ad571af074c09db034302dd74", "score": "0.4951588", "text": "public void setSalary(double empSalperhour, double hoursworked){\r\n salary = empSalperhour*hoursworked;\r\n }", "title": "" }, { "docid": "da6d75efbfd35cc923fea0bde62c504b", "score": "0.4949539", "text": "PublicHospital selectByPrimaryKey(BigDecimal hospitalId);", "title": "" }, { "docid": "312f34c7bf4cee86965fa31e24975d29", "score": "0.49488294", "text": "public void setSalary(double empSal){\r\n\t salary = empSal;\r\n\t }", "title": "" }, { "docid": "7f9c3cf9d1d6c949b8eabb4e63cc97c4", "score": "0.49400988", "text": "public void setPatient(Patient patient) \n {\n _patient = patient;\n }", "title": "" }, { "docid": "25fe311eab12e55ae864a4be8c9ff5a6", "score": "0.49313143", "text": "int updateByExampleSelective(@Param(\"record\") PublicHospital record, @Param(\"example\") PublicHospitalExample example);", "title": "" }, { "docid": "39e67f671725dfb6f25f1cb8e4fe2a83", "score": "0.48972964", "text": "int updateByExample(@Param(\"record\") PublicHospital record, @Param(\"example\") PublicHospitalExample example);", "title": "" }, { "docid": "405725e8f0573d7a1254098806b05528", "score": "0.48954827", "text": "public void setEmployeeDesignationId(int employeeDesignationId);", "title": "" }, { "docid": "d011fa05dfc15da2f7277b05ca4702e4", "score": "0.48922879", "text": "public void setTreatment (java.lang.String treatment) {\n\t\tthis.treatment = treatment;\n\t}", "title": "" }, { "docid": "b49b6edc996ec3839c13665991d300b8", "score": "0.48194414", "text": "int insert(PublicHospital record);", "title": "" }, { "docid": "ceec9d42fd0ea908339df0df51cb80be", "score": "0.48191485", "text": "public static void modify(){\n\t\tmodify_address(Data.baseHospitals);\n\t\tmodify_address(Data.newhopHospitals);\n\t\t\n\t\t//simplify the name of the hospital\n\t\tmodify_hname(Data.baseHospitals);\n\t\tmodify_hname(Data.newhopHospitals);\n\t\t\n\t\t//generate the matchString\n\t\tgenerate_match(Data.baseHospitals);\n\t\tgenerate_match(Data.newhopHospitals);\n\t\t\n\t\t//output\n//\t\toutput(Data.baseHospitals);\n//\t\toutput(Data.newhopHospitals);\n\t\t\n\t}", "title": "" }, { "docid": "450d6d1e629632dce179448cf3ac3e07", "score": "0.47868192", "text": "public void setEmployeeDepartmentId(int employeeDepartmentId);", "title": "" }, { "docid": "2babcbd00d328ac99145f193f47d88b7", "score": "0.47713983", "text": "private MedicationData createMedication(ResultSet resultSet, MedicationData medication) throws SQLException {\n\n medication.setId(resultSet.getInt(\"MEDICATIONID\"));\n medication.setPatientId(resultSet.getInt(\"PATIENTID\"));\n medication.setMedicat(resultSet.getString(\"MEDICAT\"));\n medication.setDosage(resultSet.getString(\"DOSAGE\"));\n medication.setForm(resultSet.getString(\"FORM\"));\n medication.setDateOfMedicat(resultSet.getTimestamp(\"DATEOFMED\").toLocalDateTime());\n\n log.info(\"Medication bean was created from ResultSet\");\n return medication;\n }", "title": "" }, { "docid": "01d00b98247dfbd42203fdde073a332c", "score": "0.47599626", "text": "public void setMaritalStatus(int maritalStatus);", "title": "" }, { "docid": "2002b762202eabafb1b68d27bd43822a", "score": "0.4732435", "text": "@Override\n\tpublic void update(Employee emp) {\n\t\ttemplate.updateFirst(new Query(Criteria.where(\"id\").is(emp.getId())), new Update().setOnInsert(\"department\", \"admin\"), Employee.class);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "db3b186bdd24d7e932a97bf9a4a3344d", "score": "0.4702401", "text": "public void setConsultant(Long consultant) {\r\n this.consultant = consultant;\r\n }", "title": "" }, { "docid": "e8c75609fc4fc03d6e7223dba006368f", "score": "0.46958286", "text": "public void setTreatmentdt (java.util.Date treatmentdt) {\n\t\tthis.treatmentdt = treatmentdt;\n\t}", "title": "" }, { "docid": "14455fcf8c2527b820952faf59fb48b5", "score": "0.46925783", "text": "public void setDepment(String depment)\r\n/* 36: */ {\r\n/* 37:24 */ this.depment = depment;\r\n/* 38: */ }", "title": "" }, { "docid": "92e5b055f77c6f4a873bcf390629f0ad", "score": "0.46782205", "text": "public boolean insert(Hospital hospital) {\n\n\t\t\tthis.open();\n\n\t\t\tContentValues cv = new ContentValues();\n\n\t\t\tcv.put(SQLiteHelper.COL_HOSPITAL_NAME, hospital.getHospitalName());\n\t\t\tcv.put(SQLiteHelper.COL_HOSPITAL_ADDRESS, hospital.getHospitalAddress());\n\t\t\tcv.put(SQLiteHelper.COL_HOSPITAL_LATITUDE,\n\t\t\t\t\thospital.getHospitalLatitude());\n\t\t\tcv.put(SQLiteHelper.COL_HOSPITAL_LONGITUDE,\n\t\t\t\t\thospital.getHospitalLongitude());\n\t\t\tcv.put(SQLiteHelper.COL_HOSPITAL_DESCRIPTION,\n\t\t\t\t\thospital.getHospitalDescription());\n\t\t\t\n\t\t\tLong check = hospitalDatabase.insert(\n\t\t\t\t\tSQLiteHelper.TABLE_HOSPITAL, null, cv);\n\t\t\thospitalDatabase.close();\n\n\t\t\tthis.close();\n\n\t\t\tif (check < 0)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "ea377e192899bfc9a0368aa0d4eb702a", "score": "0.46713898", "text": "private void setVacancyFields(PreparedStatement stmt, Vacancy vacancy) throws SQLException {\n stmt.setString(1, vacancy.getName());\n stmt.setString(2, vacancy.getDescription());\n stmt.setString(3, vacancy.getLink());\n stmt.setTimestamp(4, Timestamp.valueOf(vacancy.getCreated()));\n stmt.setTimestamp(5, Timestamp.valueOf(vacancy.getModified()));\n }", "title": "" }, { "docid": "d113906b39721e6894aebf6c3c812f01", "score": "0.4662208", "text": "public void setEmployeeSubDepartmentId(int employeeSubDepartmentId);", "title": "" }, { "docid": "eb92a36e638aa06c420bf2f3f013ab15", "score": "0.46432278", "text": "public void setPatientId(long value) {\n this.patientId = value;\n }", "title": "" }, { "docid": "e955121adaa6ed8e797d6eb41916c37d", "score": "0.46380973", "text": "public void modPatient() throws SQLException{\r\n \r\n \r\n String pName = patName.getText();\r\n String insName = ins.getText();\r\n String address = addr.getText();\r\n String cCity = city.getText();\r\n String sState = state.getText();\r\n String postal = p_code.getText();\r\n String pPhone = phone.getText();\r\n \r\n id = selectedCustomer.getPt_id();\r\n \r\n DBQuery pDao = new DBQuery();\r\n pDao.updatePatients(id, selectedCustomer.getAddressId(), pName, insName, address, cCity, sState, postal, pPhone);\r\n }", "title": "" }, { "docid": "e979a90ab969f0107e5e0df02a9a823a", "score": "0.45967206", "text": "public void setweeklysalary(double weeklysalary) {\n\t \t this.weeklysalary=weeklysalary;\r\n\t \r\n\t}", "title": "" }, { "docid": "17ecf4e1f8a56a94b987b13bd45aec71", "score": "0.4591512", "text": "public void setMealRecord(String mealRecord) {\n this.mealRecord = mealRecord == null ? null : mealRecord.trim();\n }", "title": "" }, { "docid": "a190c6c005a981e72bf55808dc0c8e13", "score": "0.4589611", "text": "public void hospitalizedIndividual()\n\t{\n\t\thospitalizedCount++;\n\t}", "title": "" }, { "docid": "ef6580989ea11de7a572d0fdef3c593d", "score": "0.45787", "text": "public void setEmpSalary(Double empSalary) {\n this.empSalary = empSalary;\n }", "title": "" }, { "docid": "2618e4cd9f19e6399f96f60b6c3ad2ae", "score": "0.45785436", "text": "public void setKapital(double kapital) {\r\n\t\tKapital = kapital;\r\n\t}", "title": "" }, { "docid": "ffd23b13e401bb7c623b933b120efdf9", "score": "0.45567456", "text": "public void setProfDepartment(Department profDepartment) {\n this.profDepartment = profDepartment;\n }", "title": "" }, { "docid": "2a8ba93f5d3800da39ea57454e981fd0", "score": "0.45544094", "text": "public void setDepartment(int department) {\r\n this.department = department;\r\n }", "title": "" }, { "docid": "adf98ae54022232ed172749102298cb5", "score": "0.45297366", "text": "public void setPatientTreatment(Patient patient) {\n this.patient = patient;\n if (!patient.getTreatments().contains(this)) {\n patient.getTreatments().add(this);\n }\n }", "title": "" }, { "docid": "4bd9849c59e77b694d97efa9ea8ac25d", "score": "0.4510908", "text": "public Hospital(int id) {\n\t\tsuper(id);\n\t}", "title": "" }, { "docid": "a42b7e738095747abba49b5c666eec9f", "score": "0.4485646", "text": "public void setMedicalTreatmentType(typekey.MedicalTreatmentType value) {\n __getInternalInterface().setFieldValue(MEDICALTREATMENTTYPE_PROP.get(), value);\n }", "title": "" }, { "docid": "95031b36bbf3decb9b248fdd8d372edf", "score": "0.44816697", "text": "public void setMedicalTreatmentType(typekey.MedicalTreatmentType value) {\n __getInternalInterface().setFieldValue(MEDICALTREATMENTTYPE_PROP.get(), value);\n }", "title": "" }, { "docid": "910d318b51f3d625522276e3b7ac059b", "score": "0.4460787", "text": "public void setEmployeeID(int empID)\n {\n employeeID = empID;\n }", "title": "" }, { "docid": "6803886966832c6e81326d5600f2c8cd", "score": "0.4453778", "text": "public void setDtmhorafinal(String dtmhorafinal) {\n this.dtmhorafinal = dtmhorafinal;\n }", "title": "" }, { "docid": "0fc280b7990aa1743cacd80d4b004941", "score": "0.44475543", "text": "public String updateByPrimaryKeySelective(Programmer record) {\n BEGIN();\n UPDATE(\"programmer\");\n \n if (record.getName() != null) {\n SET(\"name = #{name,jdbcType=VARCHAR}\");\n }\n \n WHERE(\"id = #{id,jdbcType=INTEGER}\");\n \n return SQL();\n }", "title": "" }, { "docid": "6574477356ca310fbfdf3e505f1de2c3", "score": "0.44310316", "text": "private void setSalary() {\n double salary = UserModel.getIncomeSource(\"Salary\", startDate, endDate);\n view.setSalary(salary);\n }", "title": "" }, { "docid": "793fd1a683dc8020235c015ab1f1513f", "score": "0.44272777", "text": "@InsertProvider(type=StatInstOccupancyMonthlySqlProvider.class, method=\"insertSelective\")\n int insertSelective(StatInstOccupancyMonthly record);", "title": "" }, { "docid": "0cdbcb411810187468f27f09b4486c03", "score": "0.44252127", "text": "List<PublicHospital> selectByExample(PublicHospitalExample example);", "title": "" }, { "docid": "df73a8864425ed658e08c6674165f4b1", "score": "0.4424355", "text": "public void setSalary(int salary) {\n this.salary = salary;\n }", "title": "" }, { "docid": "df73a8864425ed658e08c6674165f4b1", "score": "0.4424355", "text": "public void setSalary(int salary) {\n this.salary = salary;\n }", "title": "" }, { "docid": "9fa88abd1faebef6b6bd183b9d6b67b5", "score": "0.44196585", "text": "private void setData(MonhocEntity monHoc) {\n txtMaMH.setText(monHoc.getMaMonHoc());\n txtTenMH.setText(monHoc.getTenMonHoc());\n txtSoTinChi.setText(monHoc.getSoTinChi().toString());\n }", "title": "" }, { "docid": "744dccc3cbeae4506a02e60e8ac99044", "score": "0.4418188", "text": "public void setSalary(String salary) {\r\n this.salary = salary;\r\n }", "title": "" }, { "docid": "97eb3edd4f73ae870b420ecff109f1bd", "score": "0.44157493", "text": "public void setTreatment(String treatment, int SSN, String date)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tstatement.execute(\"UPDATE \"+tableName+\" SET treatment = '\"+treatment+\"' WHERE SSN = \"+SSN\r\n\t\t\t\t\t\t\t\t+\" AND date = '\"+date+\"';\");\r\n\t\t}\r\n\t\tcatch(SQLException sqlException)\r\n\t\t{\r\n\t\t\tsqlException.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0fd36166410c467885a23debfd90a533", "score": "0.44150442", "text": "public void setDistrictID(Integer districtID)\r\n/* 32: */ {\r\n/* 33:32 */ this.districtID = districtID;\r\n/* 34: */ }", "title": "" }, { "docid": "287d9b31a2138e3c378b3c62b3babfc4", "score": "0.44114873", "text": "public void setEmployee_Salary(double Employee_Salary) {\n\t\tthis.Employee_Salary=Employee_Salary;\n\t\t\n\t}", "title": "" }, { "docid": "5b2be7628389a1dac39f3db1e1a3db81", "score": "0.4408538", "text": "int updateByPrimaryKey(SysDept record);", "title": "" }, { "docid": "38cafaea7a81a716187a8d6e59c2e3cd", "score": "0.44059965", "text": "public void setDoctorTreatment(Doctor doctor) {\n this.doctor = doctor;\n if (!doctor.getTreatment().contains(this)) {\n doctor.getTreatment().add(this);\n }\n }", "title": "" }, { "docid": "51ca19762f62270f7e0609e06aeba00b", "score": "0.44022733", "text": "public void setC_BpSenior_ID (int C_BpSenior_ID);", "title": "" }, { "docid": "b39a3cdec88d741238522eb264c9e1a9", "score": "0.43919754", "text": "public void setHisPatientId(java.lang.String hisPatientId)\n {\n this._hisPatientId = hisPatientId;\n }", "title": "" }, { "docid": "038fecd353cb859d8dcad3bbbd446fef", "score": "0.43852893", "text": "public void setHealthrecord(String healthrecord) {\r\n this.healthrecord = healthrecord;\r\n }", "title": "" }, { "docid": "aa619c38b88097f1852f086105c19c2d", "score": "0.43814355", "text": "int updateByPrimaryKeySelective(SysDept record);", "title": "" }, { "docid": "fc39103d57daf8ab2e2c7d47d64d3bbc", "score": "0.43803403", "text": "public void setDtEmpleado(DataTable dtEmpleado)\r\n/* 262: */ {\r\n/* 263:370 */ this.dtEmpleado = dtEmpleado;\r\n/* 264: */ }", "title": "" }, { "docid": "d5bcd42351f046c5811bbff8dd38f338", "score": "0.43612194", "text": "@Override\n public int updateMedicat(MedicationData medication) throws SQLException {\n int result = 0;\n//PATIENTID, MEDICAT, DOSAGE, FORM, DATEOFMED\n String updateQuery = \"UPDATE MEDICATION \"\n + \"SET PATIENTID=?, MEDICAT=?, DOSAGE=?, FORM=?, DATEOFMED=? \"\n + \"WHERE ID = ?\";\n\n // first try-with-resources to close connections\n try (Connection connection = ConnectionHelper.getConnection();\n PreparedStatement statement = connection.prepareStatement(updateQuery);) {\n\n statement.setInt(1, medication.getPatientId());\n statement.setString(3, medication.getMedicat());\n statement.setString(3, medication.getDosage());\n statement.setString(3, medication.getForm());\n statement.setTimestamp(2, Timestamp.valueOf(medication.getDateOfMedicat()));\n statement.setInt(6, medication.getId());\n\n result = statement.executeUpdate();\n }\n log.info(\"# of Medication records updated : \" + result);\n return result;\n }", "title": "" }, { "docid": "e06aa0fb63562242ac5ea61f017364d0", "score": "0.43542576", "text": "public void setRegCapital(Integer regCapital) {\r\n this.regCapital = regCapital;\r\n }", "title": "" }, { "docid": "f7a18f881dc600f8457b410e2f5ef5b9", "score": "0.43487862", "text": "public void setCurrentPatient(String healthNum) {\n\t\tcurrentPatient = Patient.getPatientList().get(healthNum);\n\t}", "title": "" }, { "docid": "166bde4b705e16cb71942eea80e70fdf", "score": "0.43440005", "text": "public void setUserHospitalRoles(\n\t\t\tjava.util.Set<jkt.hms.masters.business.UserHospitalRole> userHospitalRoles) {\n\t\tthis.userHospitalRoles = userHospitalRoles;\n\t}", "title": "" }, { "docid": "2ab99185fb187b7b1aa77c0e891f2d3f", "score": "0.43335935", "text": "public void setPatient(org.hl7.fhir.ResourceReference patient)\n {\n generatedSetterHelperImpl(patient, PATIENT$20, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "title": "" }, { "docid": "1f776f569989cbc1817e641f61284a86", "score": "0.43241113", "text": "public void setChallenge(int member_id, Challenge challenge) {\n\t\t\n\t\tchallengeDao.savechallenge(challenge);\n\t\tMember member = userDao.findByID(member_id);\n\t\tmember.setChallengeId(challenge.getId());\n\t\tmember.setGoal(challenge.getGoal());\n\t\tchallenge.setRemainDay(daysTrain(challenge.getStartDate(),challenge.getEndDate(),challenge.getCheckDate()));\n\t\tuserDao.saveUser(member);\n\t\t// TODO Auto-generated method stub\n\t\t//user.setChallenge(challenge);\n\t}", "title": "" }, { "docid": "23c31d0ab0b021fc02a4919fa9c5f47f", "score": "0.43212146", "text": "@Override\n\tpublic int setTeacherInterview(Recruit recruit) {\n\t\treturn tDao.setTeacherInterview(recruit);\n\t}", "title": "" }, { "docid": "f598908ab105c1993a2128c3ff19400f", "score": "0.431998", "text": "public void setHouse(String h) { house = h; }", "title": "" }, { "docid": "54d46f0b2533417746561f4056bd4659", "score": "0.43182412", "text": "public void setEmpId(int value) {\n this.empId = value;\n }", "title": "" }, { "docid": "7e8c6f552a17056fa03bf103c3f4df40", "score": "0.43152657", "text": "@Override\n\tpublic MedicalRecord update(MedicalRecord t) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6352a2bf446f6ecbad9db0ed393761b1", "score": "0.43116882", "text": "@Override\n\tpublic void updateEmpSalary(Salary salary) {\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>\"+salary);\n\t\tsalaryMapper.updateByPrimaryKeySelective(salary);\n\t}", "title": "" }, { "docid": "05f73971a6209f8c7986d37fcfa7588b", "score": "0.43059906", "text": "@Override\n public DiseaseRecord update(DiseaseRecord diseaseRecord) {\n diseaseRecord.setCreatedDate(getDiseaseRecord(diseaseRecord.getId()).getCreatedDate());\n return diseaseRecordDao.update(diseaseRecord);\n }", "title": "" }, { "docid": "0b3bf50997120aedb351df9428873254", "score": "0.43045077", "text": "@Override public Patient updatePatient(Patient patient) {\n\t\treturn null;\t\t\n\t}", "title": "" }, { "docid": "a20cf1e9d67d993a986e22984abd6288", "score": "0.4302653", "text": "public void setDepartTime(String departTime){this.departTime = departTime;}", "title": "" }, { "docid": "d97a260531b9cbe2cad2aa98ab4540f5", "score": "0.42925283", "text": "public void assignDepartment();", "title": "" }, { "docid": "f59a33277fb926192611c99d315c8822", "score": "0.4289231", "text": "int updateByPrimaryKey(RepairDept record);", "title": "" }, { "docid": "14adbf29e37d642cd40aba5dd9ec71d7", "score": "0.42883596", "text": "public void save(VehicleHire vehicleHire) {\n\t\t\tvehicleHireRepository.save(vehicleHire);\n\t\t}", "title": "" }, { "docid": "a87a1b58930aadfb2a121a727bb6da08", "score": "0.4286659", "text": "int updateByPrimaryKeySelective(ServceDoctor record);", "title": "" }, { "docid": "f1ff3d1b3830a8c5ecaef314fa534dd4", "score": "0.42846426", "text": "public void setDepartment(String department) {\r\n this.department = department;\r\n }", "title": "" }, { "docid": "bab839e452fb732a3914f18b44142fc3", "score": "0.4278795", "text": "public void insertSelective(TCollege record) {\r\n\t\tgetSqlMapClientTemplate().insert(\r\n\t\t\t\t\"t_college.ibatorgenerated_insertSelective\", record);\r\n\t}", "title": "" }, { "docid": "2edd184b5f2ff3cc9bcabd2e4dcc7531", "score": "0.42786717", "text": "public void setInformantVillage(java.lang.String informantVillage) {\n\t\tthis.informantVillage = informantVillage;\n\t}", "title": "" }, { "docid": "64382608df232369e1dfd98f05c74535", "score": "0.42768297", "text": "int updateByPrimaryKeySelective(RepairDept record);", "title": "" }, { "docid": "8d2978bb94ba985a55ab5ed4d45ec0c7", "score": "0.42743185", "text": "protected void populateDto(MentorMentee dto, ResultSet rs) throws SQLException\n\t{\n\t\tdto.setMentorId( rs.getInt( COLUMN_MENTOR_ID ) );\n\t\tdto.setMenteeId( rs.getInt( COLUMN_MENTEE_ID ) );\n\t}", "title": "" }, { "docid": "8ebd309ecd7221fc50a7038d9f9575c7", "score": "0.42694902", "text": "public void setDept(String dept)\n/* */ {\n/* 214 */ this.dept = dept;\n/* */ }", "title": "" }, { "docid": "916c65a52031452865ce623e1a3b0a60", "score": "0.4267731", "text": "public void setDepartmentID(int value) {\r\n this.departmentID = value;\r\n }", "title": "" }, { "docid": "f00aaebd169387fc536aa9691845b6e9", "score": "0.42661664", "text": "public java.lang.String getHisPatientId()\n {\n return this._hisPatientId;\n }", "title": "" }, { "docid": "9abfb7490eb3e18fe1d2c52b3c159850", "score": "0.4262973", "text": "int updateByPrimaryKey(LegalHoliday record);", "title": "" }, { "docid": "18206c7c7ea9e9856b3990e2671e02f2", "score": "0.42627877", "text": "private void createHospital(String pred, ArrayList<Hospital> hospitals) {\n\n\t\t// (Hospital(h1))\n\t\tString params = pred.substring(H_PARAM, pred.length());\n\t\tString[] p = params.split(\",|\\\\)\");\n\n\t\tint id = Integer.parseInt(p[H_H]);\n\t\tHospital h = new Hospital(0, id, 3);\n\n\t\thospitals.add(h);\n\t}", "title": "" }, { "docid": "171516cfda7459fb74e61aa11d063301", "score": "0.42584535", "text": "int updateByPrimaryKeySelective(DrivingSchool record);", "title": "" }, { "docid": "a60abfec31a964d3bda93af7c48ae38c", "score": "0.4253605", "text": "private void getData(MonhocEntity monHoc) throws ParseException {\n monHoc.setTenMonHoc(txtTenMH.getText().toString());\n monHoc.setSoTinChi(Integer.parseInt(txtSoTinChi.getText()));\n }", "title": "" }, { "docid": "1257fb678db50581103ba5494d508a1d", "score": "0.42516136", "text": "public void setPossibleDiagnosis(String newPossibleDiagnosis){\r\n\tpossibleDiagnosis = newPossibleDiagnosis;\r\n}", "title": "" }, { "docid": "129404cd105c3efa50f647e5e5a8e7d1", "score": "0.42499784", "text": "public jkt.hrms.masters.business.MstrVitals getVital () {\n\t\treturn vital;\n\t}", "title": "" }, { "docid": "023a15706f1ee4962834c1a3d3fd315d", "score": "0.42473832", "text": "public void setCurrentPatient(Patient currentPatient) {\n this.currentPatient = currentPatient;\n }", "title": "" } ]
cb33ceaaa6d1de420f4130ea99ed3adc
This method was generated by MyBatis Generator. This method sets the value of the database column PMSORDER.QTY
[ { "docid": "1dc1ef0ae6b6e94a11de4bdf109e5897", "score": "0.7505263", "text": "public void setQTY(BigDecimal QTY) {\r\n this.QTY = QTY;\r\n }", "title": "" } ]
[ { "docid": "34571e3274e67ddd7708ab237439c0e9", "score": "0.67015326", "text": "public BigDecimal getQTY() {\r\n return QTY;\r\n }", "title": "" }, { "docid": "b35a2d3060d8f70fbd697afbacd5a350", "score": "0.66861075", "text": "public void setQty(BigDecimal qty) {\n this.qty = qty;\n }", "title": "" }, { "docid": "28e76a8843056669b1c15096b99c8ba9", "score": "0.6404253", "text": "public void setQty(java.lang.String qty) {\n this.qty = qty;\n }", "title": "" }, { "docid": "cc95aed002130c1ba21f6d202b803684", "score": "0.6306735", "text": "public BigDecimal getQty() {\n return qty;\n }", "title": "" }, { "docid": "a2d89c0927dbf572c7327e8138868b75", "score": "0.629755", "text": "public void setQuantity( int q ) \r\n { \r\n quantity = ( q > 0 ? q : 0 ); \r\n }", "title": "" }, { "docid": "45eeb541995aa0810a7ed812a0288a1c", "score": "0.6197793", "text": "void setQuantity(int q);", "title": "" }, { "docid": "299f14bd48fb1f5f0869458ea0ebf690", "score": "0.61760664", "text": "public void setReqQty(BigDecimal reqQty) {\n this.reqQty = reqQty;\n }", "title": "" }, { "docid": "50ff368a9550044dfc18885cd1bfb448", "score": "0.6155139", "text": "public void setRELEASED_QTY(BigDecimal RELEASED_QTY)\r\n {\r\n\tthis.RELEASED_QTY = RELEASED_QTY;\r\n }", "title": "" }, { "docid": "f2a0cfdc5ee98b87b2d6813307663063", "score": "0.6091919", "text": "public void setAP_QTY(Integer AP_QTY) {\n\t\tthis.AP_QTY = AP_QTY;\n\t}", "title": "" }, { "docid": "807f9ff7e0b0c58707b06e28a3a9e46b", "score": "0.6072624", "text": "public void Qty_Update(int New_Qty){\r\n\t\t\tthis.Item_Quantity = New_Qty;\r\n\t\t}", "title": "" }, { "docid": "819475acad1a84a10042ebf888d220ec", "score": "0.60123694", "text": "public void update(double availQty, double ordQty);", "title": "" }, { "docid": "cbea2a34df262c2816273a7a59f273d6", "score": "0.59784603", "text": "public java.lang.String getQty() {\n return qty;\n }", "title": "" }, { "docid": "3a1fe9c397b627aae851ee18e7219f22", "score": "0.58830476", "text": "public void setReply_QtyAvailable (BigDecimal Reply_QtyAvailable)\n{\nset_Value (\"Reply_QtyAvailable\", Reply_QtyAvailable);\n}", "title": "" }, { "docid": "cbddfb0ac3adfc759f454f180de949d4", "score": "0.5846299", "text": "public void updateQ() {\r\n\t\tthis.quantity--;\r\n\t}", "title": "" }, { "docid": "96b3f0b53d271e00615ceff3f3d9833e", "score": "0.58415574", "text": "public void setNoChkdQty(Number value) {\n setAttributeInternal(NOCHKDQTY, value);\n }", "title": "" }, { "docid": "d80dc96b87d0dae73e503ff2ce3d5d42", "score": "0.583314", "text": "public void setTotalCargoQty (BigDecimal TotalCargoQty)\n\t{\n\t\tset_Value (COLUMNNAME_TotalCargoQty, TotalCargoQty);\n\t}", "title": "" }, { "docid": "54772335054cfac9ae0c2feb887f885f", "score": "0.5821956", "text": "public void setQtyReserved(BigDecimal QtyReserved) {\n\t\tset_Value(\"QtyReserved\", QtyReserved);\n\t}", "title": "" }, { "docid": "3a958f7362ab7db419229a147700e47f", "score": "0.5817067", "text": "public void setReply_QtyConfirmed (BigDecimal Reply_QtyConfirmed)\n{\nset_Value (\"Reply_QtyConfirmed\", Reply_QtyConfirmed);\n}", "title": "" }, { "docid": "f55e641d117cc00322538164ae9ffced", "score": "0.58069026", "text": "public void setQuantity(int qty) {quantity = qty;}", "title": "" }, { "docid": "4ac1bd9a7b78932cf9dc902c091cf073", "score": "0.577989", "text": "public BigDecimal getReqQty() {\n return reqQty;\n }", "title": "" }, { "docid": "e46ee42848af9849ae74a0fbde569448", "score": "0.57794", "text": "void updateQtyByCartId(Integer qty, Long pid, Long uid) throws Exception;", "title": "" }, { "docid": "52cc29ba843042d6eadfc78c9dd67b99", "score": "0.57761973", "text": "public Integer getAP_QTY() {\n\t\treturn AP_QTY;\n\t}", "title": "" }, { "docid": "b91cae2557ac65124386d5726e82cd7a", "score": "0.56745946", "text": "public void setQtyAvailable(BigDecimal QtyAvailable) {\n\t\tset_Value(\"QtyAvailable\", QtyAvailable);\n\t}", "title": "" }, { "docid": "c54474d4af8caedfef1a1b6992330461", "score": "0.5665205", "text": "public void setDifQty(BigDecimal difQty) {\n this.difQty = difQty;\n }", "title": "" }, { "docid": "cabc549ed5e017506d82cc2682483c65", "score": "0.56442034", "text": "public void setRefQty(BigDecimal refQty) {\n this.refQty = refQty;\n }", "title": "" }, { "docid": "cec9d7342a91a864c886d8f45b08bef5", "score": "0.5634125", "text": "public void setMasterQty(BigDecimal masterQty) {\n this.masterQty = masterQty;\n }", "title": "" }, { "docid": "1eaf28ba42d297f59ce4c67f3dc25a80", "score": "0.56136733", "text": "public void setCartQuantity (int aQuantity)\r\n {\r\n this.cartQuantity = aQuantity;\r\n }", "title": "" }, { "docid": "52a213bddd2c7e3af1347aed25e99fe0", "score": "0.55959755", "text": "public int getqty() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "a1a7c2bcce4f5573682f574f15bb754b", "score": "0.55703264", "text": "public void setQuantity(int quantity);", "title": "" }, { "docid": "666c42b1111f8fd725f2919a56bff58d", "score": "0.5552692", "text": "public void setLBR_PISST_TotalQty (BigDecimal LBR_PISST_TotalQty)\n\t{\n\t\tset_Value (COLUMNNAME_LBR_PISST_TotalQty, LBR_PISST_TotalQty);\n\t}", "title": "" }, { "docid": "d23160ab2d5ca1f864cf29f09d0d2e42", "score": "0.55459476", "text": "public void updateQuantity(int id, int q) {\n try {\n OrderItem.updateQuantity(em, ut, id, q);\n } catch ( Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3d1d1c9d02d8480e7b9caacbd6a08c56", "score": "0.552372", "text": "public void setREAL_AP_QTY(Integer REAL_AP_QTY) {\n\t\tthis.REAL_AP_QTY = REAL_AP_QTY;\n\t}", "title": "" }, { "docid": "dad27184df7401c1f3beb78f456076db", "score": "0.55209", "text": "public void setAPP_QTY(Integer APP_QTY) {\n\t\tthis.APP_QTY = APP_QTY;\n\t}", "title": "" }, { "docid": "bb1bf4c4773b19570898ca1dce2c09f3", "score": "0.5518475", "text": "public void updateQuantityOfDetailOrder(int detailOrderId,\tint detailOrderQuantity) {\n\t\tQuery query= null;\n\t String hql = \"\";\n\t \n\t try{ \t\n\t hql = \"UPDATE DetailOrder set detailOrderQuantity = :detailOrderQuantity WHERE detailOrderId = :detailOrderId \";\n\t query = getSession().createQuery(hql);\n\t query.setParameter(\"detailOrderQuantity\", detailOrderQuantity);\n\t query.setParameter(\"detailOrderId\", detailOrderId);\t \n\t query.executeUpdate();\n\t \n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t //log.error(e);\n\t\n\t } \n\t}", "title": "" }, { "docid": "f9255cba9e201d4c5a27d3cf2d9b16ba", "score": "0.5502091", "text": "public Integer getREAL_AP_QTY() {\n\t\treturn REAL_AP_QTY;\n\t}", "title": "" }, { "docid": "482f98183dfa70290f399343a8d40b27", "score": "0.5488487", "text": "public void setINITIAL_PHYSICAL_QTY(BigDecimal INITIAL_PHYSICAL_QTY)\r\n {\r\n\tthis.INITIAL_PHYSICAL_QTY = INITIAL_PHYSICAL_QTY;\r\n }", "title": "" }, { "docid": "e1c4d54f5cf91cce6650b832d7089d17", "score": "0.5464741", "text": "public int updateQuotation(String productCode, int quantity, String customerId);", "title": "" }, { "docid": "370e51457d28046aeb7484519f9ebbe4", "score": "0.54553676", "text": "public Number getNoChkdQty() {\n return (Number)getAttributeInternal(NOCHKDQTY);\n }", "title": "" }, { "docid": "cd0e8eb9d5bbd0fc1dd87a7323c1545d", "score": "0.54368883", "text": "public void setQuantidade(int quantidade) {\r\n\t\tthis.quantidade = quantidade;\r\n\t}", "title": "" }, { "docid": "cd0e8eb9d5bbd0fc1dd87a7323c1545d", "score": "0.54368883", "text": "public void setQuantidade(int quantidade) {\r\n\t\tthis.quantidade = quantidade;\r\n\t}", "title": "" }, { "docid": "2c453a64a8683ccbd786b6286b74b627", "score": "0.5416413", "text": "public void setQ(int q) {\n this.q = q;\n }", "title": "" }, { "docid": "b5f82904a2b86f6fc6eff020105b9d4e", "score": "0.54151917", "text": "public BigDecimal getINITIAL_PHYSICAL_QTY()\r\n {\r\n\treturn INITIAL_PHYSICAL_QTY;\r\n }", "title": "" }, { "docid": "9ce57e0727ddc58d981a6430d64fd1d1", "score": "0.5412625", "text": "BigDecimal getDeliveredQty();", "title": "" }, { "docid": "db26727b457896ca64ab392be97151b8", "score": "0.54069096", "text": "public void setQuantity(int value) {\r\n this.quantity = value;\r\n }", "title": "" }, { "docid": "bf46f7f49a9f37595942c7918058ddfd", "score": "0.54068077", "text": "public void setMasterReqQty(BigDecimal masterReqQty) {\n this.masterReqQty = masterReqQty;\n }", "title": "" }, { "docid": "cc51434d52a5fcca1b635092e34df6e9", "score": "0.54041654", "text": "public void setSTOCK_NO(BigDecimal STOCK_NO)\r\n {\r\n\tthis.STOCK_NO = STOCK_NO;\r\n }", "title": "" }, { "docid": "451f7effa8d837a85346d7011c5b82f0", "score": "0.54001886", "text": "public void setQuantity(java.math.BigDecimal quantity)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(QUANTITY$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(QUANTITY$8);\n }\n target.setBigDecimalValue(quantity);\n }\n }", "title": "" }, { "docid": "451f7effa8d837a85346d7011c5b82f0", "score": "0.54001886", "text": "public void setQuantity(java.math.BigDecimal quantity)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(QUANTITY$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(QUANTITY$8);\n }\n target.setBigDecimalValue(quantity);\n }\n }", "title": "" }, { "docid": "451f7effa8d837a85346d7011c5b82f0", "score": "0.54001886", "text": "public void setQuantity(java.math.BigDecimal quantity)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(QUANTITY$8, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(QUANTITY$8);\n }\n target.setBigDecimalValue(quantity);\n }\n }", "title": "" }, { "docid": "39c070ff185896ca5a37088788591644", "score": "0.53954625", "text": "public void setQuantity(int value) {\n this.quantity = value;\n }", "title": "" }, { "docid": "014febae6110a3e81dfbcc1eb6160a09", "score": "0.538109", "text": "public void setQuantity(int newQuantityVal){\n this.quantity = newQuantityVal;\n }", "title": "" }, { "docid": "5d8145eb453825a5dc9001cdfc0783ba", "score": "0.5381083", "text": "@Then(\"^Unit price of the item is displayed on line item level with updated Qty in Qty field$\")\n\tpublic void unit_price_of_the_item_is_displayed_on_line_item_level_with_updated_qty_in_qty_field() throws Throwable {\n\t}", "title": "" }, { "docid": "cc5de6db7533d16ab7f92ac042f84a7e", "score": "0.5359495", "text": "public void setQuantidade(int quantidade) {\n\t\tthis.quantidade = quantidade;\n\t}", "title": "" }, { "docid": "e30e0491baab0db7b2245f590d2b580c", "score": "0.5349266", "text": "Stock updateStockQuantity(int stockId, double d);", "title": "" }, { "docid": "5049a0fc3f68833b13c5f55b3f315de7", "score": "0.5348621", "text": "public BigDecimal getRELEASED_QTY()\r\n {\r\n\treturn RELEASED_QTY;\r\n }", "title": "" }, { "docid": "b0cac3583e9cf3b0a168059c5f03b3cd", "score": "0.53446066", "text": "public void setQuantity(int newQuantity){\n this.quantity = newQuantity;\n }", "title": "" }, { "docid": "496406f0fe336fa381b99856adf4b296", "score": "0.53423685", "text": "private void changeQty(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\t\trequest.setCharacterEncoding(\"utf-8\");\n\t response.setCharacterEncoding(\"utf-8\");\n\t response.setContentType(\"application/json\");\n\t response.setHeader(\"Cache-Control\", \"no-cache\");\n\t \n \t\ttry {\n \t\t\t\n \t\t\t//request.getSession().removeAttribute(SessionName.errorMsg);\n \t\t\t//request.getSession().removeAttribute(SessionName.errorMsgC);\n \t\t\t\n \t\t\tString errorMsg = \"\";\n \t\t\t\n \t\t\tString successCode = StaticValueUtil.STATUS_NO;\n \t\t\tHttpSession session = request.getSession();\n \t\t\tString sessionId = session.getId();\n \t\t\tint oldQty = 0;\n \t\t\t\n \t\t\tHashMap<String, OrderItemBean> cartMap = (HashMap<String, OrderItemBean>)session.getAttribute(SessionName.orderCartItemMap);\n \t\t\t\n \t\t\tString cartId = request.getParameter(\"cartId\");\n \t\t\tString qty = request.getParameter(\"qty\"+cartId);\n \t\t\tlog.info(\"qty\" + qty);\n \t\t\tif(cartMap!= null) {\n \t\t\t\tOrderItemBean tempOrderItem = cartMap.get(cartId);\n \t\t\t\toldQty = tempOrderItem.getQuantity();\n\n \t\t\t\t//START QTY CONTROL CALCULATION \n \t\t\t\ttempOrderItem.setQuantity(Integer.parseInt(qty));\n \t\t\t\t\n \t\t\t\tboolean holdFlag = false;\n \t\t\t\t\n \t\t\t\tholdFlag = ReservationService.getInstance().holdItem(sessionId, tempOrderItem, true);\n \t\t\t\t\n \t\t\t\tlog.info(\"holdFlag: \" + holdFlag);\n \t\t\t\tif (!holdFlag){\n \t\t\t\t\tlog.info(\"oldQty: \" + oldQty);\n \t\t\t\t\tlog.info(\"getQuantity: \" + tempOrderItem.getQuantity());\n \t\t\t\t\t\n \t\t\t\t\t//tempOrderItem.setQuantity(oldQty);\n \t\t\t\t\t//cartMap.put(cartId, tempOrderItem);\n \t\t\t\t\terrorMsg = \"Insufficient stock \"+ tempOrderItem.getProductname() + \"\\\\n\";\n\n \t \t\t\t} else {\n \t \t\t\t\tOrderItemBean orderItem = cartMap.get(cartId);\n \t \t\t\t\torderItem.setQuantity(Integer.parseInt(qty));\n \t \t\t\t\t\n \t\t\t\t\tcartMap.put(cartId, orderItem);\n \t\t\t\t\tsuccessCode = StaticValueUtil.STATUS_YES;\n \t\t\t\t\tlog.info(orderItem.getQuantity());\n \t\t\t\t\tsession.setAttribute(SessionName.orderCartItemMap, cartMap);\n \t\t\t\t\tlog.info(\"Success Add item\");\n \t\t\t\t}\n \t\t\t\t\n \t\t\t} else {\n \t\t\t\tlog.info(\"cartMap is null\");\n \t\t\t}\n\n \t\t\tJSONObject jsonObject = new JSONObject();\n \t\t\tjsonObject.put(SessionName.successCode, successCode);\n \t\t\tjsonObject.put(SessionName.errorMsg, errorMsg);\n \t\t\tPrintWriter out = response.getWriter();\n \t\t\t//log.info(jsonObject);\n \t\t\tout.print(jsonObject);\n \t\t} catch (Exception e) {\n \t\t\t\n \t\t}\n\n \t\treturn;\n\n\t}", "title": "" }, { "docid": "6efb392f2aeb399b646cdaf6b3b6660b", "score": "0.5328651", "text": "public BigDecimal getSubQty() {\n return subQty;\n }", "title": "" }, { "docid": "6654a117310939b5ebd8197ca4f34dea", "score": "0.53274673", "text": "public BigDecimal getMasterQty() {\n return masterQty;\n }", "title": "" }, { "docid": "cb05fef531983a4f65aa4385fb328524", "score": "0.53112495", "text": "public void setPOSITION(BigDecimal POSITION) {\r\n\t\tthis.POSITION = POSITION;\r\n\t}", "title": "" }, { "docid": "9aca4c9e8b41d62a17b08418d8dc9783", "score": "0.53024554", "text": "public void setQuantity(int n)\n {\n if(n<0)\n {\n ;\n }\n \n else\n {\n quantity = n;\n }\n }", "title": "" }, { "docid": "3469259a6805a08b65ef41a028889434", "score": "0.5286112", "text": "public BigDecimal getRefQty() {\n return refQty;\n }", "title": "" }, { "docid": "1cd3804780b6539fab6a356085032962", "score": "0.5274005", "text": "public void updateProductQty(Product product) {\n String updateStatement = \"UPDATE product SET QUANTITY = ? WHERE ID = ?\";\n PreparedStatement preparedStatement = null;\n try {\n preparedStatement = conn.prepareStatement(updateStatement);\n preparedStatement.setFloat(1,product.getQuantity());\n preparedStatement.setInt(2,product.getId());\n // execute select SQL stetement\n preparedStatement.executeUpdate();\n\n } catch (SQLException e) {\n\n System.out.println(e.getMessage());\n\n } finally {\n try {\n if (preparedStatement != null) {\n preparedStatement.close();\n }\n } catch (SQLException sqlex) {\n System.out.println(sqlex.getMessage());\n\n }\n\n }\n }", "title": "" }, { "docid": "5b5c5524c8615216df6f4b8666f17fac", "score": "0.5268835", "text": "@Override\n public BigDecimal getQuantity() {\n return _quantity;\n }", "title": "" }, { "docid": "d89c58c3431d6f3ac89771a455cf372e", "score": "0.52662057", "text": "@Override\r\n\tpublic void setQuantity(int theQuantity) {\r\n\t\tmyQuantity = theQuantity;\r\n\t}", "title": "" }, { "docid": "f9eecb0571e50f9a2085dd75d1fc1e16", "score": "0.5243817", "text": "public synchronized int UpdateProduct(int prodid, int prodq) {\n\t\tString query = \"UPDATE productmaster set ProductQuantity = ProductQuantity - \" + prodq + \" WHERE ProductID=\"\n\t\t\t\t+ prodid + \" and ProductQuantity>=\" + prodq + \"\";\n\t\treturn Server.Server.dbConn.setData(query);\n\t}", "title": "" }, { "docid": "16ff8c7cd8dc1edaeb2de749dfe2730d", "score": "0.52276057", "text": "public void setSubQty(BigDecimal subQty) {\n this.subQty = subQty;\n }", "title": "" }, { "docid": "37c13bb86e39147d87b22354df47ba2a", "score": "0.5215508", "text": "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "title": "" }, { "docid": "37c13bb86e39147d87b22354df47ba2a", "score": "0.5215508", "text": "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "title": "" }, { "docid": "37c13bb86e39147d87b22354df47ba2a", "score": "0.5215508", "text": "public void setQuantity(int quantity) {\n this.quantity = quantity;\n }", "title": "" }, { "docid": "56908cfb9fdbb668f9ba7387c9de5962", "score": "0.51925457", "text": "public abstract boolean setTSYQuotes (\n\t\tfinal org.drip.analytics.support.CaseInsensitiveTreeMap<org.drip.param.definition.ProductQuote>\n\t\t\tmapCQTSY);", "title": "" }, { "docid": "28fc7d61c45a0eba9004457b2f7b52eb", "score": "0.5185837", "text": "public BigDecimal getMasterReqQty() {\n return masterReqQty;\n }", "title": "" }, { "docid": "fac0e7dbcde312692bc7a46aaaff3041", "score": "0.51855445", "text": "public void setQuantity(int quantity)\n\t{\n\t\tthis.quantity = quantity;\n\t}", "title": "" }, { "docid": "8401a5d93a66eefe63a7ca8e3e02b5c6", "score": "0.5163565", "text": "public void setAtr_qty(java.lang.Integer newValue) {\n\tthis.atr_qty = newValue;\n}", "title": "" }, { "docid": "daa5ebbe8f8366af7640ed8538c2b075", "score": "0.51634425", "text": "public void setExistingQuantity(int value) {\n this.existingQuantity = value;\n }", "title": "" }, { "docid": "2c400ff1fd43eba9a5db351e0a47fc88", "score": "0.51468736", "text": "public void setProductStockQuantity(Integer productStockQuantity) {\n this.productStockQuantity = productStockQuantity;\n }", "title": "" }, { "docid": "1596ef0116f6ddd771ba2be4a4efe0b4", "score": "0.51443726", "text": "public Order modifyOrder( int orderID, int shirtID, int newQuantity ) throws SQLException\n\t{\n\t\treturn ordersJDBC.modifyOrderJDBC(orderID, shirtID, newQuantity);\n\t}", "title": "" }, { "docid": "7d8f73ed715e6d3f59565521e3c1a945", "score": "0.51383644", "text": "public void increaseItemQuantityByOrder(Item itemOrdered){\n itemOrdered.setToolQuantity(50);\n }", "title": "" }, { "docid": "5e4878b9c55683e779429d95a3d73792", "score": "0.5137795", "text": "public void setQid(int value) {\n this.qid = value;\n }", "title": "" }, { "docid": "2001e593a10646887bc397a297550530", "score": "0.51323116", "text": "public void changeQuantity(String id, int num) throws SQLException {\n\t\tint idNum=Integer.parseInt(id);\n\t\tCartItem lci = list.get(idNum);\n\t\tlci.setQuantity(num);\n\t\tif (customer != null)\n\t\t\tupdateCartToDB(lci);\n\t}", "title": "" }, { "docid": "d319bd9c76e1924560acc563291e99a2", "score": "0.5121895", "text": "public void setQtyOnHand(BigDecimal QtyOnHand) {\n\t\tset_Value(\"QtyOnHand\", QtyOnHand);\n\t}", "title": "" }, { "docid": "e1dce7c6f8ef5e4dcec3f5bcd6220114", "score": "0.5121253", "text": "public void xsetQuantity(x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType quantity)\n {\n synchronized (monitor())\n {\n check_orphaned();\n x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType target = null;\n target = (x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType)get_store().find_element_user(QUANTITY$8, 0);\n if (target == null)\n {\n target = (x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType)get_store().add_element_user(QUANTITY$8);\n }\n target.set(quantity);\n }\n }", "title": "" }, { "docid": "e1dce7c6f8ef5e4dcec3f5bcd6220114", "score": "0.5120234", "text": "public void xsetQuantity(x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType quantity)\n {\n synchronized (monitor())\n {\n check_orphaned();\n x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType target = null;\n target = (x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType)get_store().find_element_user(QUANTITY$8, 0);\n if (target == null)\n {\n target = (x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType)get_store().add_element_user(QUANTITY$8);\n }\n target.set(quantity);\n }\n }", "title": "" }, { "docid": "e1dce7c6f8ef5e4dcec3f5bcd6220114", "score": "0.5120234", "text": "public void xsetQuantity(x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType quantity)\n {\n synchronized (monitor())\n {\n check_orphaned();\n x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType target = null;\n target = (x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType)get_store().find_element_user(QUANTITY$8, 0);\n if (target == null)\n {\n target = (x0301.oecdStandardAuditFileTaxPT1.SAFdecimalType)get_store().add_element_user(QUANTITY$8);\n }\n target.set(quantity);\n }\n }", "title": "" }, { "docid": "b957f06e50902f841029261660899fbe", "score": "0.5112938", "text": "public BigDecimal getDifQty() {\n return difQty;\n }", "title": "" }, { "docid": "8011feb024f36007fb10dafa996d9772", "score": "0.51099837", "text": "public BigDecimal getSubReqQty() {\n return subReqQty;\n }", "title": "" }, { "docid": "000b8ac2a3bd8cc83ce1199c3c48d2d3", "score": "0.5105114", "text": "public void\n\t setQuantity( int quantity) {\n\t\tthis.quantity = quantity;\n\t}", "title": "" }, { "docid": "3020ebf2d7643c6dd92360db7e33bbaa", "score": "0.5100874", "text": "public void setQuantidade(float pQuantidade){\n this.quantidade = pQuantidade;\n }", "title": "" }, { "docid": "4a494cec6ee4ca6d8fc401ce4809f0f6", "score": "0.510033", "text": "@Override\r\n\tpublic List<Products_Info> ORDER(int pid, int qty) {\n\t\treturn md.ORDER(pid,qty);\r\n\t}", "title": "" }, { "docid": "0881c5f1f1225e6e85ab2c1bbd77641a", "score": "0.5098632", "text": "public void setTotalRcvQty(Number value) {\n setAttributeInternal(TOTALRCVQTY, value);\n }", "title": "" }, { "docid": "a36d3cf9070b42fcf6d005a4674c107a", "score": "0.5097674", "text": "public void setQuantidade(Integer quantidade) {\n this.quantidade = quantidade;\n }", "title": "" }, { "docid": "d696ddfc1a3f4bc7088c995eaf51467c", "score": "0.5091914", "text": "public void setQuantity(BigDecimal quantity) {\n ArgumentChecker.notNull(quantity, \"quantity\");\n _quantity = quantity;\n }", "title": "" }, { "docid": "1fa89f625a13f3c20a288044d5ceb985", "score": "0.5091679", "text": "public void setQuantity(int quantity) {\n\t\tthis.quantity = quantity;\n\t}", "title": "" }, { "docid": "50f02024cc195569b593e9bf69ab4bcb", "score": "0.5089611", "text": "public void setTrxfr_qty(java.lang.Integer newValue) {\n\tthis.trxfr_qty = newValue;\n}", "title": "" }, { "docid": "7c290513848c1eabfe85b842017f3ee3", "score": "0.50828236", "text": "public void setQuantity(int newQuantity){\n\t\tquantity = newQuantity;\n\t}", "title": "" }, { "docid": "7c20f2aa7fdee50982de96221ed4b47e", "score": "0.5080436", "text": "public void setInventoryQuantity (int aQuantity)\r\n {\r\n this.inventoryQuantity = aQuantity;\r\n if(this.inventoryQuantity < 0)\r\n {\r\n this.inventoryQuantity = 0 - this.inventoryQuantity;\r\n }\r\n }", "title": "" }, { "docid": "0a4c67fe73c632239bd87e9caffb7622", "score": "0.50739294", "text": "public void changeQuantity(TableColumn.CellEditEvent editedCell) {\n SpareParts staffSelected = spareTable.getSelectionModel().getSelectedItem();\n staffSelected.setQuantity((Integer) editedCell.getNewValue());\n }", "title": "" }, { "docid": "b77469295735683264de49d1f3b674c4", "score": "0.5062644", "text": "public Integer getProductStockQuantity() {\n return productStockQuantity;\n }", "title": "" }, { "docid": "8b842c9c8f2b3f21d9d3fc95f73db39e", "score": "0.50589013", "text": "public BigDecimal getLBR_PISST_TotalQty () \n\t{\n\t\tBigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LBR_PISST_TotalQty);\n\t\tif (bd == null)\n\t\t\t return Env.ZERO;\n\t\treturn bd;\n\t}", "title": "" }, { "docid": "2b5fde44a77ec5ad8ea74d30896d0ab6", "score": "0.50568134", "text": "public Long getQuantity() {\n return this.quantity;\n }", "title": "" } ]
00dd1f610e911bb7acb0432fc9b16557
$ANTLR end "rule__XReturnExpression__Group__2" $ANTLR start "rule__XReturnExpression__Group__2__Impl" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13591:1: rule__XReturnExpression__Group__2__Impl : ( ( rule__XReturnExpression__ExpressionAssignment_2 )? ) ;
[ { "docid": "91fe2ea29d819a9386e1d7073453c638", "score": "0.854317", "text": "public final void rule__XReturnExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13595:1: ( ( ( rule__XReturnExpression__ExpressionAssignment_2 )? ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13596:1: ( ( rule__XReturnExpression__ExpressionAssignment_2 )? )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13596:1: ( ( rule__XReturnExpression__ExpressionAssignment_2 )? )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13597:1: ( rule__XReturnExpression__ExpressionAssignment_2 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13598:1: ( rule__XReturnExpression__ExpressionAssignment_2 )?\n int alt98=2;\n alt98 = dfa98.predict(input);\n switch (alt98) {\n case 1 :\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13598:2: rule__XReturnExpression__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_rule__XReturnExpression__ExpressionAssignment_2_in_rule__XReturnExpression__Group__2__Impl27460);\n rule__XReturnExpression__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "479dcb16e2a96e13e02d7a3e71dd67ec", "score": "0.8644193", "text": "public final void rule__XReturnExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13584:1: ( rule__XReturnExpression__Group__2__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13585:2: rule__XReturnExpression__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__XReturnExpression__Group__2__Impl_in_rule__XReturnExpression__Group__227433);\n rule__XReturnExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6767db5e73135aa4b06b99a889f0eddd", "score": "0.8338815", "text": "public final void rule__XReturnExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13756:1: ( ( ( rule__XReturnExpression__ExpressionAssignment_2 )? ) )\n // InternalAle.g:13757:1: ( ( rule__XReturnExpression__ExpressionAssignment_2 )? )\n {\n // InternalAle.g:13757:1: ( ( rule__XReturnExpression__ExpressionAssignment_2 )? )\n // InternalAle.g:13758:2: ( rule__XReturnExpression__ExpressionAssignment_2 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2()); \n }\n // InternalAle.g:13759:2: ( rule__XReturnExpression__ExpressionAssignment_2 )?\n int alt112=2;\n alt112 = dfa112.predict(input);\n switch (alt112) {\n case 1 :\n // InternalAle.g:13759:3: rule__XReturnExpression__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__XReturnExpression__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "05cb50f3cfda75be36acd7bc60210cd9", "score": "0.8306334", "text": "public final void rule__XReturnExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13745:1: ( rule__XReturnExpression__Group__2__Impl )\n // InternalAle.g:13746:2: rule__XReturnExpression__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XReturnExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0d8e233d74bf53c1813da94f39709c23", "score": "0.7953548", "text": "public final void rule__XReturnExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13553:1: ( rule__XReturnExpression__Group__1__Impl rule__XReturnExpression__Group__2 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13554:2: rule__XReturnExpression__Group__1__Impl rule__XReturnExpression__Group__2\n {\n pushFollow(FOLLOW_rule__XReturnExpression__Group__1__Impl_in_rule__XReturnExpression__Group__127371);\n rule__XReturnExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XReturnExpression__Group__2_in_rule__XReturnExpression__Group__127374);\n rule__XReturnExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bc9772a6d0523885be34d8a4f9ddf821", "score": "0.7597041", "text": "public final void rule__XReturnExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13718:1: ( rule__XReturnExpression__Group__1__Impl rule__XReturnExpression__Group__2 )\n // InternalAle.g:13719:2: rule__XReturnExpression__Group__1__Impl rule__XReturnExpression__Group__2\n {\n pushFollow(FOLLOW_58);\n rule__XReturnExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XReturnExpression__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7f808c92881a56ecb327014299a1b732", "score": "0.7498207", "text": "public final void rule__XReturnExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13522:1: ( rule__XReturnExpression__Group__0__Impl rule__XReturnExpression__Group__1 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13523:2: rule__XReturnExpression__Group__0__Impl rule__XReturnExpression__Group__1\n {\n pushFollow(FOLLOW_rule__XReturnExpression__Group__0__Impl_in_rule__XReturnExpression__Group__027310);\n rule__XReturnExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XReturnExpression__Group__1_in_rule__XReturnExpression__Group__027313);\n rule__XReturnExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "63615a5850e7301b5518542904ac2865", "score": "0.74647254", "text": "public final void rule__XReturnExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13565:1: ( ( 'return' ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13566:1: ( 'return' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13566:1: ( 'return' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13567:1: 'return'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); \n }\n match(input,73,FOLLOW_73_in_rule__XReturnExpression__Group__1__Impl27402); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8d12aeb3767cc7bb696ffd894a65e5d5", "score": "0.7382844", "text": "public final void rule__XParenthesizedExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9335:1: ( rule__XParenthesizedExpression__Group__2__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9336:2: rule__XParenthesizedExpression__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__XParenthesizedExpression__Group__2__Impl_in_rule__XParenthesizedExpression__Group__219090);\n rule__XParenthesizedExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cdd2deccd4a4df034d16700292d4228a", "score": "0.7337851", "text": "public final void rule__XReturnExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13534:1: ( ( () ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13535:1: ( () )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13535:1: ( () )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13536:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13537:1: ()\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13539:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a53a253d933a4a730020ef84f770a1cf", "score": "0.73099846", "text": "public final void ruleXReturnExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1732:2: ( ( ( rule__XReturnExpression__Group__0 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1733:1: ( ( rule__XReturnExpression__Group__0 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1733:1: ( ( rule__XReturnExpression__Group__0 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1734:1: ( rule__XReturnExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getGroup()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1735:1: ( rule__XReturnExpression__Group__0 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:1735:2: rule__XReturnExpression__Group__0\n {\n pushFollow(FOLLOW_rule__XReturnExpression__Group__0_in_ruleXReturnExpression3645);\n rule__XReturnExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4e67a225b5d8a4f906ab58a6148d4e7f", "score": "0.7268272", "text": "public final void rule__XReturnExpression__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13730:1: ( ( 'return' ) )\n // InternalAle.g:13731:1: ( 'return' )\n {\n // InternalAle.g:13731:1: ( 'return' )\n // InternalAle.g:13732:2: 'return'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); \n }\n match(input,83,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d9239d7a37d6bf6fd620a4087d64df05", "score": "0.72330487", "text": "public final void rule__XParenthesizedExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:9533:1: ( rule__XParenthesizedExpression__Group__2__Impl )\n // InternalAle.g:9534:2: rule__XParenthesizedExpression__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XParenthesizedExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3dd435c29530a73833965b18289390b3", "score": "0.7198383", "text": "public final void rule__XReturnExpression__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13691:1: ( rule__XReturnExpression__Group__0__Impl rule__XReturnExpression__Group__1 )\n // InternalAle.g:13692:2: rule__XReturnExpression__Group__0__Impl rule__XReturnExpression__Group__1\n {\n pushFollow(FOLLOW_92);\n rule__XReturnExpression__Group__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__XReturnExpression__Group__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cc51f6043a512d54df7afd157ffe08af", "score": "0.7155395", "text": "public final void rule__XThrowExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13488:1: ( rule__XThrowExpression__Group__2__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13489:2: rule__XThrowExpression__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__XThrowExpression__Group__2__Impl_in_rule__XThrowExpression__Group__227247);\n rule__XThrowExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e6d9a4dbc325ee75457fcc7d81341a97", "score": "0.7116171", "text": "public final void rule__XReturnExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13703:1: ( ( () ) )\n // InternalAle.g:13704:1: ( () )\n {\n // InternalAle.g:13704:1: ( () )\n // InternalAle.g:13705:2: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); \n }\n // InternalAle.g:13706:2: ()\n // InternalAle.g:13706:3: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "545a87f20fb6c072206eeed3871980e5", "score": "0.7065013", "text": "public final void rule__Return_Statement__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:11007:1: ( rule__Return_Statement__Group__2__Impl rule__Return_Statement__Group__3 )\n // InternalJava.g:11008:2: rule__Return_Statement__Group__2__Impl rule__Return_Statement__Group__3\n {\n pushFollow(FOLLOW_56);\n rule__Return_Statement__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Return_Statement__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1319ab963b8ce519afd9625f819e59ef", "score": "0.7060705", "text": "public final void rule__Expression__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:5596:1: ( rule__Expression__Group_2__1__Impl )\n // InternalJava.g:5597:2: rule__Expression__Group_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Expression__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e89db1b6ac3680ab3cc05012642b54a0", "score": "0.704928", "text": "public final void rule__XReturnExpression__ExpressionAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17604:1: ( ( ruleXExpression ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17605:1: ( ruleXExpression )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17605:1: ( ruleXExpression )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:17606:1: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); \n }\n pushFollow(FOLLOW_ruleXExpression_in_rule__XReturnExpression__ExpressionAssignment_235483);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f608704ee17bc570f31af9d5301f5fcd", "score": "0.6984725", "text": "public final void rule__DmxParenthesizedExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:11088:1: ( rule__DmxParenthesizedExpression__Group__2__Impl )\n // InternalPubProto.g:11089:2: rule__DmxParenthesizedExpression__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxParenthesizedExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4e44f7c5071df29efd35e52b3cdc5c5b", "score": "0.69468147", "text": "public final void ruleXReturnExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:1667:2: ( ( ( rule__XReturnExpression__Group__0 ) ) )\n // InternalAle.g:1668:2: ( ( rule__XReturnExpression__Group__0 ) )\n {\n // InternalAle.g:1668:2: ( ( rule__XReturnExpression__Group__0 ) )\n // InternalAle.g:1669:3: ( rule__XReturnExpression__Group__0 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getGroup()); \n }\n // InternalAle.g:1670:3: ( rule__XReturnExpression__Group__0 )\n // InternalAle.g:1670:4: rule__XReturnExpression__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__XReturnExpression__Group__0();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getGroup()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bdc4a4085913dc6586c65f260b2085f8", "score": "0.6930467", "text": "public final void rule__EXPRESSION__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:596:1: ( rule__EXPRESSION__Group_0__2__Impl )\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:597:2: rule__EXPRESSION__Group_0__2__Impl\n {\n pushFollow(FOLLOW_rule__EXPRESSION__Group_0__2__Impl_in_rule__EXPRESSION__Group_0__21212);\n rule__EXPRESSION__Group_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8f4961b16cb839a64f73bb337693880b", "score": "0.6868018", "text": "public final void rule__ParenthesizedExpression__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13871:1: ( rule__ParenthesizedExpression__Group_2__1__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13872:2: rule__ParenthesizedExpression__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__ParenthesizedExpression__Group_2__1__Impl_in_rule__ParenthesizedExpression__Group_2__127913);\n rule__ParenthesizedExpression__Group_2__1__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "995f516ccd4e6100d9600e01b1999a52", "score": "0.6856034", "text": "public final void rule__Evaluation__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTURN.g:6199:1: ( rule__Evaluation__Group__2__Impl )\n // InternalTURN.g:6200:2: rule__Evaluation__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Evaluation__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "084123750eb6adaaf89f3f7b28295cdd", "score": "0.6839332", "text": "public final void rule__XAssignment__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4268:1: ( rule__XAssignment__Group_0__2__Impl rule__XAssignment__Group_0__3 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4269:2: rule__XAssignment__Group_0__2__Impl rule__XAssignment__Group_0__3\n {\n pushFollow(FOLLOW_rule__XAssignment__Group_0__2__Impl_in_rule__XAssignment__Group_0__29132);\n rule__XAssignment__Group_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XAssignment__Group_0__3_in_rule__XAssignment__Group_0__29135);\n rule__XAssignment__Group_0__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c6852a8007229d1eddddcdcbbbdcd661", "score": "0.6826591", "text": "public final void rule__XThrowExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13664:1: ( rule__XThrowExpression__Group__2__Impl )\n // InternalAle.g:13665:2: rule__XThrowExpression__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XThrowExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a6472d298a5f961c8005edd3712218e7", "score": "0.6818436", "text": "public final void rule__XThrowExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:13675:1: ( ( ( rule__XThrowExpression__ExpressionAssignment_2 ) ) )\n // InternalAle.g:13676:1: ( ( rule__XThrowExpression__ExpressionAssignment_2 ) )\n {\n // InternalAle.g:13676:1: ( ( rule__XThrowExpression__ExpressionAssignment_2 ) )\n // InternalAle.g:13677:2: ( rule__XThrowExpression__ExpressionAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2()); \n }\n // InternalAle.g:13678:2: ( rule__XThrowExpression__ExpressionAssignment_2 )\n // InternalAle.g:13678:3: rule__XThrowExpression__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__XThrowExpression__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5b85a2c7ea09edec23656475d5cf1c5b", "score": "0.68052965", "text": "public final void rule__Expression__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:5567:1: ( rule__Expression__Group_2__0__Impl rule__Expression__Group_2__1 )\n // InternalJava.g:5568:2: rule__Expression__Group_2__0__Impl rule__Expression__Group_2__1\n {\n pushFollow(FOLLOW_33);\n rule__Expression__Group_2__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Expression__Group_2__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6c576a3a6fa34db2e1d4f088886c2141", "score": "0.676674", "text": "public final void rule__ParenthesizedExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13773:1: ( rule__ParenthesizedExpression__Group__2__Impl rule__ParenthesizedExpression__Group__3 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13774:2: rule__ParenthesizedExpression__Group__2__Impl rule__ParenthesizedExpression__Group__3\n {\n pushFollow(FOLLOW_rule__ParenthesizedExpression__Group__2__Impl_in_rule__ParenthesizedExpression__Group__227723);\n rule__ParenthesizedExpression__Group__2__Impl();\n _fsp--;\n\n pushFollow(FOLLOW_rule__ParenthesizedExpression__Group__3_in_rule__ParenthesizedExpression__Group__227726);\n rule__ParenthesizedExpression__Group__3();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6d13d2fc99f2ab4c86916cb74fa0fc0b", "score": "0.6754762", "text": "public final void rule__RelationalExpression__Group_1_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10172:1: ( rule__RelationalExpression__Group_1_0__2__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10173:2: rule__RelationalExpression__Group_1_0__2__Impl\n {\n pushFollow(FOLLOW_rule__RelationalExpression__Group_1_0__2__Impl_in_rule__RelationalExpression__Group_1_0__220638);\n rule__RelationalExpression__Group_1_0__2__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "66595867a9cd887584218127e76bbbc8", "score": "0.6750177", "text": "public final void rule__XThrowExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13499:1: ( ( ( rule__XThrowExpression__ExpressionAssignment_2 ) ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13500:1: ( ( rule__XThrowExpression__ExpressionAssignment_2 ) )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13500:1: ( ( rule__XThrowExpression__ExpressionAssignment_2 ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13501:1: ( rule__XThrowExpression__ExpressionAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2()); \n }\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13502:1: ( rule__XThrowExpression__ExpressionAssignment_2 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13502:2: rule__XThrowExpression__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_rule__XThrowExpression__ExpressionAssignment_2_in_rule__XThrowExpression__Group__2__Impl27274);\n rule__XThrowExpression__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e4e8f994195d4e520333e16a98cf4e4a", "score": "0.6746034", "text": "public final void rule__Return_Statement__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:10978:1: ( rule__Return_Statement__Group__1__Impl rule__Return_Statement__Group__2 )\n // InternalJava.g:10979:2: rule__Return_Statement__Group__1__Impl rule__Return_Statement__Group__2\n {\n pushFollow(FOLLOW_56);\n rule__Return_Statement__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Return_Statement__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "449d5fa31cd2513fc68066c92a9cf7e0", "score": "0.6743935", "text": "public final void rule__ArgumentStatement__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:17652:1: ( rule__ArgumentStatement__Group__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:17653:2: rule__ArgumentStatement__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__ArgumentStatement__Group__2__Impl_in_rule__ArgumentStatement__Group__236840);\n rule__ArgumentStatement__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "114ac2d7fd06df195d694d94215369c7", "score": "0.67357355", "text": "public final void rule__Simple_expression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:7278:1: ( rule__Simple_expression__Group__2__Impl )\n // InternalPascal.g:7279:2: rule__Simple_expression__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Simple_expression__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0ea02e695461f0db9017d5d43a67c034", "score": "0.6734765", "text": "public final void rule__Return_Statement__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:10990:1: ( ( RULE_RETURN ) )\n // InternalJava.g:10991:1: ( RULE_RETURN )\n {\n // InternalJava.g:10991:1: ( RULE_RETURN )\n // InternalJava.g:10992:1: RULE_RETURN\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getReturn_StatementAccess().getRETURNTerminalRuleCall_1()); \n }\n match(input,RULE_RETURN,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getReturn_StatementAccess().getRETURNTerminalRuleCall_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a24f467b20f955809e3817b35b209c15", "score": "0.67266375", "text": "public final void rule__XParenthesizedExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9346:1: ( ( ')' ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9347:1: ( ')' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9347:1: ( ')' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9348:1: ')'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); \n }\n match(input,51,FOLLOW_51_in_rule__XParenthesizedExpression__Group__2__Impl19118); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "05d31d01ed8184cfe460b456ad6ab404", "score": "0.67111474", "text": "public final void rule__Expression_aux__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:6458:1: ( rule__Expression_aux__Group_2__1__Impl )\n // InternalJava.g:6459:2: rule__Expression_aux__Group_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Expression_aux__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8e773cdef51778f79968189c48b9f51c", "score": "0.66990626", "text": "public final void rule__Assignment__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:504:1: ( rule__Assignment__Group__2__Impl )\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:505:2: rule__Assignment__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__Assignment__Group__2__Impl_in_rule__Assignment__Group__21029);\n rule__Assignment__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d12d54d79b4ef8979da37a53ba144e84", "score": "0.66941", "text": "public final void rule__XOrExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4577:1: ( rule__XOrExpression__Group__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4578:2: rule__XOrExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group__1__Impl_in_rule__XOrExpression__Group__19738);\n rule__XOrExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d55d31ebc9ec6253401a53f0a070f58d", "score": "0.66938037", "text": "public final void rule__Expression_aux__Group_2_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:6532:1: ( ( ( rule__Expression_aux__Expression2Assignment_2_0_1 ) ) )\n // InternalJava.g:6533:1: ( ( rule__Expression_aux__Expression2Assignment_2_0_1 ) )\n {\n // InternalJava.g:6533:1: ( ( rule__Expression_aux__Expression2Assignment_2_0_1 ) )\n // InternalJava.g:6534:1: ( rule__Expression_aux__Expression2Assignment_2_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getExpression_auxAccess().getExpression2Assignment_2_0_1()); \n }\n // InternalJava.g:6535:1: ( rule__Expression_aux__Expression2Assignment_2_0_1 )\n // InternalJava.g:6535:2: rule__Expression_aux__Expression2Assignment_2_0_1\n {\n pushFollow(FOLLOW_2);\n rule__Expression_aux__Expression2Assignment_2_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getExpression_auxAccess().getExpression2Assignment_2_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "44d5f07a3a2d1de022e4e7237b8a9bcb", "score": "0.6686302", "text": "public final void rule__PowerExpression__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10807:1: ( rule__PowerExpression__Group_1__2__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10808:2: rule__PowerExpression__Group_1__2__Impl\n {\n pushFollow(FOLLOW_rule__PowerExpression__Group_1__2__Impl_in_rule__PowerExpression__Group_1__221891);\n rule__PowerExpression__Group_1__2__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dbc49c5a833bd28e2de4abb0288653e9", "score": "0.6684364", "text": "public final void rule__XFunctionTypeRef__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:14870:1: ( ( ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) ) )\n // InternalAle.g:14871:1: ( ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) )\n {\n // InternalAle.g:14871:1: ( ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) )\n // InternalAle.g:14872:2: ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeAssignment_2()); \n }\n // InternalAle.g:14873:2: ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 )\n // InternalAle.g:14873:3: rule__XFunctionTypeRef__ReturnTypeAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__XFunctionTypeRef__ReturnTypeAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b693dceda399a9ed36354dfea77a71fc", "score": "0.668023", "text": "public final void rule__XVariableDeclaration__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11475:1: ( rule__XVariableDeclaration__Group__2__Impl rule__XVariableDeclaration__Group__3 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11476:2: rule__XVariableDeclaration__Group__2__Impl rule__XVariableDeclaration__Group__3\n {\n pushFollow(FOLLOW_rule__XVariableDeclaration__Group__2__Impl_in_rule__XVariableDeclaration__Group__223285);\n rule__XVariableDeclaration__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XVariableDeclaration__Group__3_in_rule__XVariableDeclaration__Group__223288);\n rule__XVariableDeclaration__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4cc6ddd60cdb1a5188cd892bcfcf6087", "score": "0.66668797", "text": "public final void rule__XParenthesizedExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:9544:1: ( ( ')' ) )\n // InternalAle.g:9545:1: ( ')' )\n {\n // InternalAle.g:9545:1: ( ')' )\n // InternalAle.g:9546:2: ')'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); \n }\n match(input,61,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1f10769239c5baf98b2cbd7f417a34c9", "score": "0.6660849", "text": "public final void rule__ParenthesizedExpression__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13840:1: ( rule__ParenthesizedExpression__Group_2__0__Impl rule__ParenthesizedExpression__Group_2__1 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13841:2: rule__ParenthesizedExpression__Group_2__0__Impl rule__ParenthesizedExpression__Group_2__1\n {\n pushFollow(FOLLOW_rule__ParenthesizedExpression__Group_2__0__Impl_in_rule__ParenthesizedExpression__Group_2__027851);\n rule__ParenthesizedExpression__Group_2__0__Impl();\n _fsp--;\n\n pushFollow(FOLLOW_rule__ParenthesizedExpression__Group_2__1_in_rule__ParenthesizedExpression__Group_2__027854);\n rule__ParenthesizedExpression__Group_2__1();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2c2adfd50f1dec01ba98c65f0c0a5ec5", "score": "0.66592604", "text": "public final void rule__Evaluation__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTURN.g:6334:1: ( rule__Evaluation__Group_2_1__2__Impl )\n // InternalTURN.g:6335:2: rule__Evaluation__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Evaluation__Group_2_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2f1235b8c98787d953285b60727d05e9", "score": "0.66507155", "text": "public final void rule__LetExpression__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:8206:1: ( rule__LetExpression__Group_2__1__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:8207:2: rule__LetExpression__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__LetExpression__Group_2__1__Impl_in_rule__LetExpression__Group_2__116764);\n rule__LetExpression__Group_2__1__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "03bef02c3d9871399a82d7f31102f20d", "score": "0.6646678", "text": "public final void rule__DmxListExpression__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:11250:1: ( rule__DmxListExpression__Group_2__1__Impl )\n // InternalPubProto.g:11251:2: rule__DmxListExpression__Group_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxListExpression__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d43bde7c2531e229f6da75999d56d5f1", "score": "0.6639879", "text": "public final void rule__Assignment_statement__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:5712:1: ( rule__Assignment_statement__Group__2__Impl )\n // InternalPascal.g:5713:2: rule__Assignment_statement__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Assignment_statement__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "42ef0fba80225f3628cdc09f5150cee8", "score": "0.66389275", "text": "public final void rule__DmxLiteralListExpression__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:11466:1: ( rule__DmxLiteralListExpression__Group_2__1__Impl )\n // InternalPubProto.g:11467:2: rule__DmxLiteralListExpression__Group_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxLiteralListExpression__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f19b781bbad20f05bb803fa2f5f933fd", "score": "0.66336197", "text": "public final void rule__ParenthesizedExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13785:1: ( ( ( rule__ParenthesizedExpression__Group_2__0 )* ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13786:1: ( ( rule__ParenthesizedExpression__Group_2__0 )* )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13786:1: ( ( rule__ParenthesizedExpression__Group_2__0 )* )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13787:1: ( rule__ParenthesizedExpression__Group_2__0 )*\n {\n before(grammarAccess.getParenthesizedExpressionAccess().getGroup_2()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13788:1: ( rule__ParenthesizedExpression__Group_2__0 )*\n loop99:\n do {\n int alt99=2;\n int LA99_0 = input.LA(1);\n\n if ( (LA99_0==37) ) {\n alt99=1;\n }\n\n\n switch (alt99) {\n \tcase 1 :\n \t // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13788:2: rule__ParenthesizedExpression__Group_2__0\n \t {\n \t pushFollow(FOLLOW_rule__ParenthesizedExpression__Group_2__0_in_rule__ParenthesizedExpression__Group__2__Impl27753);\n \t rule__ParenthesizedExpression__Group_2__0();\n \t _fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop99;\n }\n } while (true);\n\n after(grammarAccess.getParenthesizedExpressionAccess().getGroup_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6433ca70ab2969958f297f634bc14de9", "score": "0.66203004", "text": "public final void rule__XOrExpression__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4638:1: ( rule__XOrExpression__Group_1__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4639:2: rule__XOrExpression__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XOrExpression__Group_1__1__Impl_in_rule__XOrExpression__Group_1__19860);\n rule__XOrExpression__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ea286204026b63c802a1d5ec2e2774ee", "score": "0.66195595", "text": "public final void rule__Equation__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:5412:1: ( rule__Equation__Group__2__Impl rule__Equation__Group__3 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:5413:2: rule__Equation__Group__2__Impl rule__Equation__Group__3\n {\n pushFollow(FOLLOW_rule__Equation__Group__2__Impl_in_rule__Equation__Group__211285);\n rule__Equation__Group__2__Impl();\n _fsp--;\n\n pushFollow(FOLLOW_rule__Equation__Group__3_in_rule__Equation__Group__211288);\n rule__Equation__Group__3();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d114e3b8706e3def1b38e19521608597", "score": "0.66190445", "text": "public final void rule__Function_designator__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:8154:1: ( ( ( rule__Function_designator__ExpressionsAssignment_2 )? ) )\n // InternalPascal.g:8155:1: ( ( rule__Function_designator__ExpressionsAssignment_2 )? )\n {\n // InternalPascal.g:8155:1: ( ( rule__Function_designator__ExpressionsAssignment_2 )? )\n // InternalPascal.g:8156:2: ( rule__Function_designator__ExpressionsAssignment_2 )?\n {\n before(grammarAccess.getFunction_designatorAccess().getExpressionsAssignment_2()); \n // InternalPascal.g:8157:2: ( rule__Function_designator__ExpressionsAssignment_2 )?\n int alt59=2;\n int LA59_0 = input.LA(1);\n\n if ( (LA59_0==RULE_ID||LA59_0==RULE_ADDITION_OPERATOR||LA59_0==RULE_STRING||(LA59_0>=RULE_INTEGER_NUMBER && LA59_0<=RULE_SIGNED_REAL_NUMBER)||LA59_0==27||LA59_0==42||LA59_0==58||(LA59_0>=68 && LA59_0<=70)) ) {\n alt59=1;\n }\n switch (alt59) {\n case 1 :\n // InternalPascal.g:8157:3: rule__Function_designator__ExpressionsAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__Function_designator__ExpressionsAssignment_2();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getFunction_designatorAccess().getExpressionsAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cfd08fe4a9a8008279670227ad49377b", "score": "0.66172266", "text": "public final void rule__XClosure__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:8789:1: ( ( ( rule__XClosure__ExpressionAssignment_2 ) ) )\n // InternalAle.g:8790:1: ( ( rule__XClosure__ExpressionAssignment_2 ) )\n {\n // InternalAle.g:8790:1: ( ( rule__XClosure__ExpressionAssignment_2 ) )\n // InternalAle.g:8791:2: ( rule__XClosure__ExpressionAssignment_2 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXClosureAccess().getExpressionAssignment_2()); \n }\n // InternalAle.g:8792:2: ( rule__XClosure__ExpressionAssignment_2 )\n // InternalAle.g:8792:3: rule__XClosure__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__XClosure__ExpressionAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXClosureAccess().getExpressionAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1194f2cb6a1c2c44a5d2fea6a7075fd6", "score": "0.6611106", "text": "public final void rule__XBlockExpression__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11381:1: ( rule__XBlockExpression__Group_2__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:11382:2: rule__XBlockExpression__Group_2__1__Impl\n {\n pushFollow(FOLLOW_rule__XBlockExpression__Group_2__1__Impl_in_rule__XBlockExpression__Group_2__123098);\n rule__XBlockExpression__Group_2__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "86c21ab04ba538a4871764e7ebaee293", "score": "0.66081214", "text": "public final void rule__Creating_Expression__Group_1_2__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:8159:1: ( rule__Creating_Expression__Group_1_2__2__Impl )\n // InternalJava.g:8160:2: rule__Creating_Expression__Group_1_2__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Creating_Expression__Group_1_2__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c593a643978bde1a3a6ecc6a2670d91a", "score": "0.6597597", "text": "public final void rule__DATASEL_DECL__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2762:1: ( ( () ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2763:1: ( () )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2763:1: ( () )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2764:1: ()\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getDATASEL_DECLAccess().getDATASEL_DECLAction_2()); \r\n }\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2765:1: ()\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2767:1: \r\n {\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getDATASEL_DECLAccess().getDATASEL_DECLAction_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d2c6ddb25f1d74781a1e3b1679e01d56", "score": "0.6586539", "text": "public final void rule__CRITERION_DECL__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2600:1: ( ( () ) )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2601:1: ( () )\r\n {\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2601:1: ( () )\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2602:1: ()\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getCRITERION_DECLAccess().getCRITERION_DECLAction_2()); \r\n }\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2603:1: ()\r\n // ../org.xtext.module.dsl.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalModuleDsl.g:2605:1: \r\n {\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getCRITERION_DECLAccess().getCRITERION_DECLAction_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c2d1801d101bc9c2d3229551f03b9e45", "score": "0.6566989", "text": "public final void rule__Assignment__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:515:1: ( ( ( rule__Assignment__ExpressionAssignment_2 ) ) )\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:516:1: ( ( rule__Assignment__ExpressionAssignment_2 ) )\n {\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:516:1: ( ( rule__Assignment__ExpressionAssignment_2 ) )\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:517:1: ( rule__Assignment__ExpressionAssignment_2 )\n {\n before(grammarAccess.getAssignmentAccess().getExpressionAssignment_2()); \n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:518:1: ( rule__Assignment__ExpressionAssignment_2 )\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:518:2: rule__Assignment__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_rule__Assignment__ExpressionAssignment_2_in_rule__Assignment__Group__2__Impl1056);\n rule__Assignment__ExpressionAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAssignmentAccess().getExpressionAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "fb70c34b07f7c9ccff5a63d8ced084a1", "score": "0.65641916", "text": "public final void rule__XWhileExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10878:1: ( ( '(' ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10879:1: ( '(' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10879:1: ( '(' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10880:1: '('\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); \n }\n match(input,52,FOLLOW_52_in_rule__XWhileExpression__Group__2__Impl22125); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "352359061e5542f2691a29240e7ff9e4", "score": "0.65538734", "text": "public final void rule__RangeStatement__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:13326:1: ( rule__RangeStatement__Group__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:13327:2: rule__RangeStatement__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__RangeStatement__Group__2__Impl_in_rule__RangeStatement__Group__228344);\n rule__RangeStatement__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "680166ad328945046b20927756a36a89", "score": "0.6546054", "text": "public final void rule__XOtherOperatorExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5593:1: ( rule__XOtherOperatorExpression__Group__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5594:2: rule__XOtherOperatorExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XOtherOperatorExpression__Group__1__Impl_in_rule__XOtherOperatorExpression__Group__111734);\n rule__XOtherOperatorExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "475c8c56057366b3f9e8ec898e41677b", "score": "0.6542038", "text": "public final void rule__Return_Statement__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:10959:1: ( ( () ) )\n // InternalJava.g:10960:1: ( () )\n {\n // InternalJava.g:10960:1: ( () )\n // InternalJava.g:10961:1: ()\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getReturn_StatementAccess().getReturn_StatementAction_0()); \n }\n // InternalJava.g:10962:1: ()\n // InternalJava.g:10964:1: \n {\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getReturn_StatementAccess().getReturn_StatementAction_0()); \n }\n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1a0f609d0a0bd660d018855f3a1f50c2", "score": "0.6533007", "text": "public final void rule__XSwitchExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9720:1: ( rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9721:2: rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__2__Impl_in_rule__XSwitchExpression__Group__219842);\n rule__XSwitchExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XSwitchExpression__Group__3_in_rule__XSwitchExpression__Group__219845);\n rule__XSwitchExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "5a4d12e5a470a9aa8fd5d2e409c27487", "score": "0.6530375", "text": "public final void rule__XIfExpression__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9433:1: ( rule__XIfExpression__Group__2__Impl rule__XIfExpression__Group__3 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9434:2: rule__XIfExpression__Group__2__Impl rule__XIfExpression__Group__3\n {\n pushFollow(FOLLOW_rule__XIfExpression__Group__2__Impl_in_rule__XIfExpression__Group__219278);\n rule__XIfExpression__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XIfExpression__Group__3_in_rule__XIfExpression__Group__219281);\n rule__XIfExpression__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f3ebcf18dca5058c83d6f1f6acdfbe30", "score": "0.65295845", "text": "public final void rule__XReturnExpression__ExpressionAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:18452:1: ( ( ruleXExpression ) )\n // InternalAle.g:18453:2: ( ruleXExpression )\n {\n // InternalAle.g:18453:2: ( ruleXExpression )\n // InternalAle.g:18454:3: ruleXExpression\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); \n }\n pushFollow(FOLLOW_2);\n ruleXExpression();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8fc71416b98f87c45daa6c34381ef934", "score": "0.6524909", "text": "public final void rule__Expression_aux__Group_1_0__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:6376:1: ( ( ( rule__Expression_aux__Expression2Assignment_1_0_1 ) ) )\n // InternalJava.g:6377:1: ( ( rule__Expression_aux__Expression2Assignment_1_0_1 ) )\n {\n // InternalJava.g:6377:1: ( ( rule__Expression_aux__Expression2Assignment_1_0_1 ) )\n // InternalJava.g:6378:1: ( rule__Expression_aux__Expression2Assignment_1_0_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getExpression_auxAccess().getExpression2Assignment_1_0_1()); \n }\n // InternalJava.g:6379:1: ( rule__Expression_aux__Expression2Assignment_1_0_1 )\n // InternalJava.g:6379:2: rule__Expression_aux__Expression2Assignment_1_0_1\n {\n pushFollow(FOLLOW_2);\n rule__Expression_aux__Expression2Assignment_1_0_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getExpression_auxAccess().getExpression2Assignment_1_0_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "736be75ccb0726bf97576f956c91d403", "score": "0.6521344", "text": "public final void rule__Return_Statement__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:11019:1: ( ( ( rule__Return_Statement__RvAssignment_2 )? ) )\n // InternalJava.g:11020:1: ( ( rule__Return_Statement__RvAssignment_2 )? )\n {\n // InternalJava.g:11020:1: ( ( rule__Return_Statement__RvAssignment_2 )? )\n // InternalJava.g:11021:1: ( rule__Return_Statement__RvAssignment_2 )?\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getReturn_StatementAccess().getRvAssignment_2()); \n }\n // InternalJava.g:11022:1: ( rule__Return_Statement__RvAssignment_2 )?\n int alt83=2;\n int LA83_0 = input.LA(1);\n\n if ( (LA83_0==RULE_DECIMAL_DIGITS||LA83_0==RULE_ID||(LA83_0>=RULE_HEXA && LA83_0<=RULE_CHAR)) ) {\n alt83=1;\n }\n switch (alt83) {\n case 1 :\n // InternalJava.g:11022:2: rule__Return_Statement__RvAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__Return_Statement__RvAssignment_2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getReturn_StatementAccess().getRvAssignment_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c5a5c571382c8672841c72f4ace22fa8", "score": "0.6517031", "text": "public final void rule__RelationalExpression__Group_1_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10268:1: ( rule__RelationalExpression__Group_1_1__2__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:10269:2: rule__RelationalExpression__Group_1_1__2__Impl\n {\n pushFollow(FOLLOW_rule__RelationalExpression__Group_1_1__2__Impl_in_rule__RelationalExpression__Group_1_1__220824);\n rule__RelationalExpression__Group_1_1__2__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "84d13b8ab1c0be5f5c3352cc62e46967", "score": "0.6511425", "text": "public final void rule__EndExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13999:1: ( rule__EndExpression__Group__1__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:14000:2: rule__EndExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__EndExpression__Group__1__Impl_in_rule__EndExpression__Group__128159);\n rule__EndExpression__Group__1__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "29ea55079e5587788103a1f9f1f40e4a", "score": "0.65109074", "text": "public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10101:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10102:2: rule__XSwitchExpression__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__220599);\n rule__XSwitchExpression__Group_2_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e79a4839c5a6072f719426515567d7ca", "score": "0.65097106", "text": "public final void rule__ValueStatement__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:8994:1: ( rule__ValueStatement__Group__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:8995:2: rule__ValueStatement__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__ValueStatement__Group__2__Impl_in_rule__ValueStatement__Group__219829);\n rule__ValueStatement__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e4a039c53582a7cd1c46d7d43d1b2816", "score": "0.65095216", "text": "public final void rule__ArgumentStatement__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:17746:1: ( rule__ArgumentStatement__Group_2_1__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:17747:2: rule__ArgumentStatement__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__ArgumentStatement__Group_2_1__2__Impl_in_rule__ArgumentStatement__Group_2_1__237026);\n rule__ArgumentStatement__Group_2_1__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2324225229f0674be5231f84c060efa6", "score": "0.6508785", "text": "public final void rule__EXPRESSION__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:567:1: ( rule__EXPRESSION__Group_0__1__Impl rule__EXPRESSION__Group_0__2 )\n // ../org.correttouml.grammars.statemachineactions.ui/src-gen/org/correttouml/grammars/ui/contentassist/antlr/internal/InternalStateMachineActions.g:568:2: rule__EXPRESSION__Group_0__1__Impl rule__EXPRESSION__Group_0__2\n {\n pushFollow(FOLLOW_rule__EXPRESSION__Group_0__1__Impl_in_rule__EXPRESSION__Group_0__11152);\n rule__EXPRESSION__Group_0__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__EXPRESSION__Group_0__2_in_rule__EXPRESSION__Group_0__11155);\n rule__EXPRESSION__Group_0__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "71fa0cd8fd70f370da969710da79a6da", "score": "0.65084654", "text": "public final void rule__LetExpressionVariableDeclaration__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:8298:1: ( rule__LetExpressionVariableDeclaration__Group__2__Impl )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:8299:2: rule__LetExpressionVariableDeclaration__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__LetExpressionVariableDeclaration__Group__2__Impl_in_rule__LetExpressionVariableDeclaration__Group__216947);\n rule__LetExpressionVariableDeclaration__Group__2__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ac4b0635e5c816958bb8f1dafe6bd1be", "score": "0.65082103", "text": "public final void rule__KeyStatement__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:10514:1: ( rule__KeyStatement__Group__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:10515:2: rule__KeyStatement__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__KeyStatement__Group__2__Impl_in_rule__KeyStatement__Group__222813);\n rule__KeyStatement__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ccde74d3b208c9d22654ddf84cd0e142", "score": "0.6500009", "text": "public final void rule__XRelationalExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5222:1: ( rule__XRelationalExpression__Group__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5223:2: rule__XRelationalExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_rule__XRelationalExpression__Group__1__Impl_in_rule__XRelationalExpression__Group__111007);\n rule__XRelationalExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7241bc03c29f6cae0e575b302958650c", "score": "0.6496566", "text": "public final void rule__MongoProperty__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:3801:1: ( rule__MongoProperty__Group__2__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:3802:2: rule__MongoProperty__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__MongoProperty__Group__2__Impl_in_rule__MongoProperty__Group__28211);\n rule__MongoProperty__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f6df1d5a6324375c6e85d3422a3dc2e2", "score": "0.6494103", "text": "public final void rule__XOrExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:5213:1: ( rule__XOrExpression__Group__1__Impl )\n // InternalAle.g:5214:2: rule__XOrExpression__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__XOrExpression__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cb8911b031c1ce9d1008a596dbb14fe7", "score": "0.64849174", "text": "public final void rule__Assignment_statement__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:5723:1: ( ( ( rule__Assignment_statement__ExpressionAssignment_2 ) ) )\n // InternalPascal.g:5724:1: ( ( rule__Assignment_statement__ExpressionAssignment_2 ) )\n {\n // InternalPascal.g:5724:1: ( ( rule__Assignment_statement__ExpressionAssignment_2 ) )\n // InternalPascal.g:5725:2: ( rule__Assignment_statement__ExpressionAssignment_2 )\n {\n before(grammarAccess.getAssignment_statementAccess().getExpressionAssignment_2()); \n // InternalPascal.g:5726:2: ( rule__Assignment_statement__ExpressionAssignment_2 )\n // InternalPascal.g:5726:3: rule__Assignment_statement__ExpressionAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule__Assignment_statement__ExpressionAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAssignment_statementAccess().getExpressionAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "026cfe8f7b0c2aaeebc7df9352e98850", "score": "0.647586", "text": "public final void rule__XOtherOperatorExpression__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5654:1: ( rule__XOtherOperatorExpression__Group_1__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:5655:2: rule__XOtherOperatorExpression__Group_1__1__Impl\n {\n pushFollow(FOLLOW_rule__XOtherOperatorExpression__Group_1__1__Impl_in_rule__XOtherOperatorExpression__Group_1__111856);\n rule__XOtherOperatorExpression__Group_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e073c33f7e2de619d1e4d6ef12bf6546", "score": "0.64684916", "text": "public final void rule__Creating_Expression__Group_1_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:8142:1: ( ( ( rule__Creating_Expression__ExpressionAssignment_1_2_1 ) ) )\n // InternalJava.g:8143:1: ( ( rule__Creating_Expression__ExpressionAssignment_1_2_1 ) )\n {\n // InternalJava.g:8143:1: ( ( rule__Creating_Expression__ExpressionAssignment_1_2_1 ) )\n // InternalJava.g:8144:1: ( rule__Creating_Expression__ExpressionAssignment_1_2_1 )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getCreating_ExpressionAccess().getExpressionAssignment_1_2_1()); \n }\n // InternalJava.g:8145:1: ( rule__Creating_Expression__ExpressionAssignment_1_2_1 )\n // InternalJava.g:8145:2: rule__Creating_Expression__ExpressionAssignment_1_2_1\n {\n pushFollow(FOLLOW_2);\n rule__Creating_Expression__ExpressionAssignment_1_2_1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getCreating_ExpressionAccess().getExpressionAssignment_1_2_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8132123da72358b0dae0f8fd263a4752", "score": "0.6465393", "text": "public final void rule__GroupingStatement__Group_2_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:15193:1: ( ( '}' ) )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:15194:1: ( '}' )\n {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:15194:1: ( '}' )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:15195:1: '}'\n {\n before(grammarAccess.getGroupingStatementAccess().getRightCurlyBracketKeyword_2_1_2()); \n match(input,32,FOLLOW_32_in_rule__GroupingStatement__Group_2_1__2__Impl32019); \n after(grammarAccess.getGroupingStatementAccess().getRightCurlyBracketKeyword_2_1_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "50ec2d653146b6757421a62ebe4d3269", "score": "0.6460662", "text": "public final void rule__XSwitchExpression__Group_2_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10112:1: ( ( ')' ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10113:1: ( ')' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10113:1: ( ')' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10114:1: ')'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_1_2()); \n }\n match(input,51,FOLLOW_51_in_rule__XSwitchExpression__Group_2_1__2__Impl20627); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_1_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "97fee0b209109774a59428bd35d78187", "score": "0.6458053", "text": "public final void rule__Evaluation__Group_2_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTURN.g:6280:1: ( rule__Evaluation__Group_2_1__0__Impl rule__Evaluation__Group_2_1__1 )\n // InternalTURN.g:6281:2: rule__Evaluation__Group_2_1__0__Impl rule__Evaluation__Group_2_1__1\n {\n pushFollow(FOLLOW_42);\n rule__Evaluation__Group_2_1__0__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Evaluation__Group_2_1__1();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b6246584569ca37cbc80b78a2d7d76c9", "score": "0.64559346", "text": "public final void rule__Expression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPascal.g:7143:1: ( rule__Expression__Group__1__Impl )\n // InternalPascal.g:7144:2: rule__Expression__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Expression__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "56a2c5f780799f31db632b24914499b2", "score": "0.64542294", "text": "public final void rule__Evaluation__Group_2_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTURN.g:6307:1: ( rule__Evaluation__Group_2_1__1__Impl rule__Evaluation__Group_2_1__2 )\n // InternalTURN.g:6308:2: rule__Evaluation__Group_2_1__1__Impl rule__Evaluation__Group_2_1__2\n {\n pushFollow(FOLLOW_5);\n rule__Evaluation__Group_2_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_2);\n rule__Evaluation__Group_2_1__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6c7feaf722c81fb4e16080cc71de63c7", "score": "0.64512295", "text": "public final void rule__ExtensionStatement__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:17462:1: ( rule__ExtensionStatement__Group__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:17463:2: rule__ExtensionStatement__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__ExtensionStatement__Group__2__Impl_in_rule__ExtensionStatement__Group__236467);\n rule__ExtensionStatement__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e5d283587058743a1e91aac177db1bcf", "score": "0.64307773", "text": "public final void rule__DmxLiteralListExpression__Group_2_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPubProto.g:11520:1: ( rule__DmxLiteralListExpression__Group_2_1__1__Impl )\n // InternalPubProto.g:11521:2: rule__DmxLiteralListExpression__Group_2_1__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__DmxLiteralListExpression__Group_2_1__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "49197c7df0dc8bccce3d2dcf9ee6d214", "score": "0.64280164", "text": "public final void rule__Expression_aux__Group_1_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:6393:1: ( rule__Expression_aux__Group_1_0__2__Impl )\n // InternalJava.g:6394:2: rule__Expression_aux__Group_1_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Expression_aux__Group_1_0__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "727004e2aab52ac0e0997b7cb0d7dd7c", "score": "0.6423695", "text": "public final void rule__XIfExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9445:1: ( ( '(' ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9446:1: ( '(' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9446:1: ( '(' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9447:1: '('\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); \n }\n match(input,52,FOLLOW_52_in_rule__XIfExpression__Group__2__Impl19309); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ee4926110bcb5c77903d8012df6840a3", "score": "0.64231473", "text": "public final void rule__XTypeLiteral__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13307:1: ( ( '(' ) )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13308:1: ( '(' )\n {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13308:1: ( '(' )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:13309:1: '('\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); \n }\n match(input,52,FOLLOW_52_in_rule__XTypeLiteral__Group__2__Impl26901); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b810ebefb2aa0ce8ac29e6c02d618537", "score": "0.64219373", "text": "public final void rule__Expression_aux__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalJava.g:6521:1: ( rule__Expression_aux__Group_2_0__1__Impl )\n // InternalJava.g:6522:2: rule__Expression_aux__Group_2_0__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Expression_aux__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "03dcace26e6ee1b7955df7dbd9c55f06", "score": "0.64202386", "text": "public final void rule__EndExpression__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13980:1: ( ( () ) )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13981:1: ( () )\n {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13981:1: ( () )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13982:1: ()\n {\n before(grammarAccess.getEndExpressionAccess().getEndExpressionAction_0()); \n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13983:1: ()\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:13985:1: \n {\n }\n\n after(grammarAccess.getEndExpressionAccess().getEndExpressionAction_0()); \n\n }\n\n\n }\n\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "efc6991bec83dda8cb90a0eeb166a263", "score": "0.641643", "text": "public final void rule__XCatchClause__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14001:1: ( rule__XCatchClause__Group__2__Impl rule__XCatchClause__Group__3 )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:14002:2: rule__XCatchClause__Group__2__Impl rule__XCatchClause__Group__3\n {\n pushFollow(FOLLOW_rule__XCatchClause__Group__2__Impl_in_rule__XCatchClause__Group__228258);\n rule__XCatchClause__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XCatchClause__Group__3_in_rule__XCatchClause__Group__228261);\n rule__XCatchClause__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b57f56f0222138b72d1fe84f77039ce3", "score": "0.6414271", "text": "public final void rule__RangeStatement__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:13420:1: ( rule__RangeStatement__Group_2_1__2__Impl )\n // ../org.eclipse.yang.ui/src-gen/org/xtext/editor/yang/ui/contentassist/antlr/internal/InternalYang.g:13421:2: rule__RangeStatement__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__RangeStatement__Group_2_1__2__Impl_in_rule__RangeStatement__Group_2_1__228530);\n rule__RangeStatement__Group_2_1__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "094bb5ba62de6588fdce60aebe802021", "score": "0.64073217", "text": "public final void rule___Point__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAIProjectGratext.g:384:1: ( ( ( rule___Point__XAssignment_2 ) ) )\n // InternalAIProjectGratext.g:385:1: ( ( rule___Point__XAssignment_2 ) )\n {\n // InternalAIProjectGratext.g:385:1: ( ( rule___Point__XAssignment_2 ) )\n // InternalAIProjectGratext.g:386:2: ( rule___Point__XAssignment_2 )\n {\n before(grammarAccess.get_PointAccess().getXAssignment_2()); \n // InternalAIProjectGratext.g:387:2: ( rule___Point__XAssignment_2 )\n // InternalAIProjectGratext.g:387:3: rule___Point__XAssignment_2\n {\n pushFollow(FOLLOW_2);\n rule___Point__XAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.get_PointAccess().getXAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "49599f9be32fa39b259894af70d202c6", "score": "0.64070195", "text": "public final void rule__XWhileExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAle.g:11435:1: ( ( '(' ) )\n // InternalAle.g:11436:1: ( '(' )\n {\n // InternalAle.g:11436:1: ( '(' )\n // InternalAle.g:11437:2: '('\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); \n }\n match(input,60,FOLLOW_2); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "84d8fc5b0cd4b51da3681752b2973c5b", "score": "0.6404779", "text": "public final void rule__RangeExpression__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:9223:1: ( rule__RangeExpression__Group_1__2__Impl rule__RangeExpression__Group_1__3 )\n // ../org.eclipselabs.mscript.language.ui/src-gen/org/eclipselabs/mscript/language/ui/contentassist/antlr/internal/InternalMscript.g:9224:2: rule__RangeExpression__Group_1__2__Impl rule__RangeExpression__Group_1__3\n {\n pushFollow(FOLLOW_rule__RangeExpression__Group_1__2__Impl_in_rule__RangeExpression__Group_1__218769);\n rule__RangeExpression__Group_1__2__Impl();\n _fsp--;\n\n pushFollow(FOLLOW_rule__RangeExpression__Group_1__3_in_rule__RangeExpression__Group_1__218772);\n rule__RangeExpression__Group_1__3();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bbacb81ab6d112cb7be118c18992c4d1", "score": "0.64046866", "text": "public final void rule__Parenthesis__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalIoT.g:5169:1: ( rule__Parenthesis__Group__2__Impl )\n // InternalIoT.g:5170:2: rule__Parenthesis__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Parenthesis__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
c212daca052d63da92fd9ca1c3f98b25
set the product name given by the user
[ { "docid": "c51e992d8d3ff3a9bff7b2bf194842f3", "score": "0.7829001", "text": "public void setProductName(final String name)\r\n {\r\n this._productName=name;\r\n }", "title": "" } ]
[ { "docid": "e1960dc9b007294f6ab031309638d41e", "score": "0.7893833", "text": "public void setProductName(String product_Name) { this.product_Name = product_Name; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "2316c966b2f6182a55433aead1fdc661", "score": "0.7759373", "text": "public void setProductName(String productName) { this.productName = productName; }", "title": "" }, { "docid": "660a0e02e275227c5fec3e3bf4cc5c16", "score": "0.76384604", "text": "public void setProduct(String productName) { \r\n\t \tsearchBox.sendKeys(productName); \r\n\t }", "title": "" }, { "docid": "960fae1d59f0d9f8cbc4200dc7c85295", "score": "0.72011787", "text": "public void setProductName(String productName) {\r\n this.productName = productName;\r\n }", "title": "" }, { "docid": "a2ae98318b8254c38f00a46f4f74bfd7", "score": "0.7043618", "text": "public void setProductName(java.lang.String productName) {\n this.productName = productName;\n }", "title": "" }, { "docid": "198bd98105f3504582dd7d9d0bd92e93", "score": "0.7038231", "text": "public void setProductName(String productName) {\n this.productName = productName;\n }", "title": "" }, { "docid": "292122b24d0fe5c07e7f5a201d17e224", "score": "0.6978855", "text": "public void setProductName(final java.lang.String productName) {\n this.productName = productName;\n }", "title": "" }, { "docid": "37e617b309072ba453a48405c079d141", "score": "0.69674385", "text": "public void setName(String t) {\n name = t;\n getPreferences(MainActivity.MODE_PRIVATE).edit().putString(\"user.name\", name).commit();\n }", "title": "" }, { "docid": "e34925b3901dcd5fbdcac6bc2a318e04", "score": "0.68423027", "text": "public void setWmsProductName(String value) {\r\n setAttributeInternal(WMSPRODUCTNAME, value);\r\n }", "title": "" }, { "docid": "7d6f6f2590fa066e9128e401a99d8173", "score": "0.6842028", "text": "void setTitle(Product product, String title) {\n product.setName(title);\n }", "title": "" }, { "docid": "7a9c78cc6b03c2d2c43edc511be5c6fd", "score": "0.68264496", "text": "public void setName(String in){\n name = in;\n }", "title": "" }, { "docid": "3329238cc1b9c95d0d21f35956ce3c9e", "score": "0.6818916", "text": "public void setName(java.lang.String name) {\n _productType.setName(name);\n }", "title": "" }, { "docid": "2ec37d628e4aa2431ea9e7fcad80d8db", "score": "0.6795503", "text": "public void setName(String value)\n {\n this.name = value;\n }", "title": "" }, { "docid": "9e5ef066e9393cf53908db05b4245c17", "score": "0.6781793", "text": "public void setName(String value) {\n this.name = value;\n }", "title": "" }, { "docid": "96d368afc8ddda04fb7e8bfc77f80d55", "score": "0.6781056", "text": "public void setName(String name)\n {\n this.username = name;\n }", "title": "" }, { "docid": "461f607678d13a63b24cb79aa9b4ec69", "score": "0.6758922", "text": "public void setName(String name)\n {\n this.name = name; // store name\n }", "title": "" }, { "docid": "311215e6f4d29ab779ebc726d3741f03", "score": "0.67504704", "text": "public void setName(java.lang.String value);", "title": "" }, { "docid": "248088af2b7ab6276cfcf62ed138e7ec", "score": "0.6747607", "text": "public void setName( String name );", "title": "" }, { "docid": "8f4b9083b6aea8969cf5abd7cb344c2c", "score": "0.6743551", "text": "public void setName( String name)\r\n\t{\r\n\t\tName = name;\r\n\t}", "title": "" }, { "docid": "35f0df8c577e96f868ec92e0265c7a24", "score": "0.6742945", "text": "public void setName(String userName) {\n this.name = name;\n }", "title": "" }, { "docid": "770117034d2dc48f0c431088e3678cdd", "score": "0.6719848", "text": "public void setName(String name){\r\n this.name = name;\r\n }", "title": "" }, { "docid": "fd888fc8ea7c5e8b78c6dc8bd943130b", "score": "0.67100596", "text": "public String getProductName() { return product_Name; }", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.6698223", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.6698223", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.6698223", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.6698223", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.6698223", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.6698223", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "9e95f4df714f50c59de943e2f6ea787d", "score": "0.66946834", "text": "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "37745c081fe6f9eb0fad82140d833390", "score": "0.66923076", "text": "public static void setUserName(String name) {\n }", "title": "" }, { "docid": "9fce13f4d6d327f291841c741e812f10", "score": "0.6688639", "text": "public void setName(String userName){\n\t\tthis.userName = userName;\n\t}", "title": "" }, { "docid": "9a0e4509f39139eff34cad690a404a40", "score": "0.6680441", "text": "public void setProductName(String productName) {\n\t\tthis.productName = productName == null ? null : productName.trim();\n\t}", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.66788954", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.66788954", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.66788954", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.66788954", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a6131008cd5bc9b63674c1def1af122", "score": "0.66788954", "text": "public void setName(final String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "9a775968bdcc6873d82b72be14147562", "score": "0.6677929", "text": "public void setName(String name);", "title": "" }, { "docid": "09fea67e47d1c9b6396cf3a5f33324ce", "score": "0.6675627", "text": "public void setName(java.lang.String name){\n this.name = name;\n }", "title": "" }, { "docid": "5ca957d7776faf9f630f5960a318a94d", "score": "0.6674562", "text": "public void setName(String value) {\n\t\tthis.name = value;\n\t}", "title": "" }, { "docid": "e086ef6f25cd0e645ebaca3c75f5015b", "score": "0.6673786", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "42e1f70d753fb75d356bd66091319b65", "score": "0.66728115", "text": "public void setName(String name) {\n \tthis.name=name;\n }", "title": "" }, { "docid": "dd4a598a9e34fdb7db072d2769f9f3a9", "score": "0.6666134", "text": "public void setName(String name){\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "9957c93cbf28fd0c4647c766136024a8", "score": "0.66659737", "text": "public void setName(String name){\n this.name = name;\n }", "title": "" }, { "docid": "462e1ccab3dcb225b384a316620562c0", "score": "0.66640544", "text": "public void setName(String name){ \n\tthis.name=name ; \n\t}", "title": "" }, { "docid": "64ae514fb8504b416a60e403285d40d7", "score": "0.66572934", "text": "public void setName(String name){\n\t\tthis.name = name;\t\t\t\n\t}", "title": "" }, { "docid": "796a3c9e429392daa261a524426f1927", "score": "0.6652403", "text": "public void setName(String n){\n name = n;\n\n }", "title": "" }, { "docid": "4d47a2912d7f829a8afe1b3c19598c08", "score": "0.6651569", "text": "public void setName(String name){\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "4d47a2912d7f829a8afe1b3c19598c08", "score": "0.6651569", "text": "public void setName(String name){\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "4d47a2912d7f829a8afe1b3c19598c08", "score": "0.6651569", "text": "public void setName(String name){\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "a7f894638a2125563ea312aee621fb44", "score": "0.66508406", "text": "public void setName (String name){\r\n\t\tthis.name = name;\r\n\t}", "title": "" }, { "docid": "6e40d182435ed6fc71e93afd5b63b70f", "score": "0.6650505", "text": "public void setName(String value) {\n name = value;\n }", "title": "" }, { "docid": "2d0a6d5e3c1aff21c59eef2cfcaa1677", "score": "0.66497374", "text": "public void setName(String name){\n\n this.name = name;\n }", "title": "" }, { "docid": "001d975992e22bb7252de21d94e7e219", "score": "0.66494864", "text": "private void setName( String name ) { \n this.name=name;\n }", "title": "" }, { "docid": "4b4861aad641b81d79231f9b1e16b347", "score": "0.6648375", "text": "public void setName(java.lang.String value) {\n this.name = value;\n }", "title": "" }, { "docid": "4b4861aad641b81d79231f9b1e16b347", "score": "0.6648375", "text": "public void setName(java.lang.String value) {\n this.name = value;\n }", "title": "" }, { "docid": "4b4861aad641b81d79231f9b1e16b347", "score": "0.6648375", "text": "public void setName(java.lang.String value) {\n this.name = value;\n }", "title": "" }, { "docid": "4b4861aad641b81d79231f9b1e16b347", "score": "0.6648375", "text": "public void setName(java.lang.String value) {\n this.name = value;\n }", "title": "" }, { "docid": "e521d9140a5b483decb92931ab23a7b4", "score": "0.6643443", "text": "public void setName(String value) {\n name = value;\n }", "title": "" }, { "docid": "24cc547f0528412bdae5f4be72382742", "score": "0.66402936", "text": "public void setName(String name)\r\n\t{\r\n\t\t_Name = name;\r\n\t}", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.6635989", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.6635989", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.6635989", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.6635989", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.6635989", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.6635989", "text": "void setName(String name);", "title": "" }, { "docid": "a1152c660cbabcd54ec6b5f99e8b5fa5", "score": "0.6635989", "text": "void setName(String name);", "title": "" } ]
1772bb58fe9aa3d86c5feca8ea737d1f
your implementation goes here.
[ { "docid": "7e1c7974161409768f0703895bfbb0ff", "score": "0.0", "text": "public static int parallelFreq(int x, int[] A, int numThreads) {\n if(A.length==1){\n if(x==A[0])\n return 1;\n else\n return 0;\n }\n else\n SEQUENTIAL_CUTOFF = (int) Math.ceil((double)A.length/numThreads);\n\n Frequency task = new Frequency(0, A.length,A, x);\n ExecutorService executorService= Executors.newSingleThreadExecutor();\n Future<Integer> future = executorService.submit(task);\n\n\n\n// task.threadPool.shutdown();\n executorService.shutdown();\n int ans=0;\n try {\n ans = future.get().intValue();\n }\n catch (Exception e){\n\n }\n return ans;\n }", "title": "" } ]
[ { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.67904603", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6759702", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.6759702", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.6430251", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6289684", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.62552136", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.6224648", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.6122065", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.6110515", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "73d2e78e03547e3a30a40b196bae2c7d", "score": "0.60890985", "text": "@Override\r\n\tpublic void calificar() {\n\r\n\t}", "title": "" }, { "docid": "ab7a5f1def9085e1262fc7266d7e7ab9", "score": "0.6081714", "text": "@Override\r\n\t\t\tprotected void run() throws Exception {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.6081135", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.6063293", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.60607874", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "51d6a27e1b3f32053452afb911d0803f", "score": "0.604654", "text": "Inner method();", "title": "" }, { "docid": "a8caf6f2f9e55b3ddc2f9f3a0b418311", "score": "0.6046434", "text": "@Override\n\tprotected void _run() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.60179996", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.6017101", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.6002594", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.6000611", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "9e8629ced62a55ad1be791787c89f9d2", "score": "0.59928644", "text": "@Override\r\n\tpublic void process() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dbccea21c95a2d676935a3ea758b163e", "score": "0.5978795", "text": "@Override\r\n\tpublic void limpiar() {\n\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.59744924", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.59744924", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.59744924", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a7998d90f797991feb14594e625fab5d", "score": "0.5972088", "text": "private void Getdata() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5961964", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5961964", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5955045", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5948287", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5948287", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f5a32bcc258723c66b024ca08e01604f", "score": "0.5948287", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8ce70d18e04299fa79dc9066550f3a42", "score": "0.59407073", "text": "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.5939841", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5937646", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.59300053", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.5908372", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.58988035", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "9674eaf92d88fa5ee1741a3c135f859c", "score": "0.58984935", "text": "@Override\n\tpublic void Resert() {\n\n\t}", "title": "" }, { "docid": "458ffae3089883ac4724c25e0dd51682", "score": "0.589113", "text": "public abstract void stehReagieren();", "title": "" }, { "docid": "d21c0182e99096ca2dc2c306d4556e63", "score": "0.5889575", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.586097", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.586097", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5841416", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5823226", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5822381", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5822381", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e781f16e5db21a05c46f55bc0797da71", "score": "0.5802642", "text": "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5801788", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.5792105", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "8a33b8de7a2fdf8b7088903dc4a4cf5f", "score": "0.5786706", "text": "@Override\n\tpublic void affiche() {\n\n\t}", "title": "" }, { "docid": "176e34d0e98f75196c596e32acb014d3", "score": "0.5786101", "text": "protected Indirect() {/* intentionally empty block */}", "title": "" }, { "docid": "19048a87cb83d6c9503b806ebfa32926", "score": "0.5770112", "text": "@Override\n\tpublic void process() {\n\t\t\n\t}", "title": "" }, { "docid": "3b2bf26b4eb0717955fdd35991b8290d", "score": "0.5767187", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5759834", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "26af590d7d781c1609b61eb0131796e8", "score": "0.5754218", "text": "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "title": "" }, { "docid": "f0b15c91c94a59165e658cf7f5bdc34f", "score": "0.5750408", "text": "@Override\n\t\t\tpublic void method3() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.5746827", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "ab2f45ed8ffa08a06ff449780f0ea9da", "score": "0.5741453", "text": "@Override\r\n\tpublic void ha() {\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.57278407", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "cd5eb93cb2f9a955c7bd05aed8d4cf17", "score": "0.5725715", "text": "public void anzeigen(){\n \n }", "title": "" }, { "docid": "e15b56243a25fbab1517d03c8eaa727d", "score": "0.57245123", "text": "private void wijzigBestellingActie() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d9fe7dbb72e8c89ff99ebc5e4a3f2977", "score": "0.5713492", "text": "public void run() {\n\n\t\t\t\t\t\t}", "title": "" }, { "docid": "be003cdeb5f9015c1b6c92e2971811e2", "score": "0.5712826", "text": "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "6c823d8b0c4f55d3f03359daefc39a00", "score": "0.57118464", "text": "@Override\n\tpublic void lanzar() {\n\n\t}", "title": "" }, { "docid": "305e367657617e31b983525e47291648", "score": "0.5702527", "text": "@Override\n\tpublic void process() {\n\n\t}", "title": "" }, { "docid": "34e56b4d78803f4374e9edaf086bbf25", "score": "0.5701041", "text": "@Override\r\n\tpublic void validerEssai() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57002497", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57002497", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "6db196fe12df2040e890be66656ff251", "score": "0.5692359", "text": "@Override\n\tprotected void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "6db196fe12df2040e890be66656ff251", "score": "0.5692359", "text": "@Override\n\tprotected void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "43ad17972bd0bcece314b9a10d5ea4c8", "score": "0.5685743", "text": "@Override\n protected void prepareData()\n {\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5685386", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.5683744", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.56766", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "1e6a3bf22e0013d112519d0d27b82b32", "score": "0.5672388", "text": "@Override\r\n\tpublic void results() {\n\r\n\t}", "title": "" }, { "docid": "2d6a92f736b31aff99f8279ce9e9c8ec", "score": "0.5659323", "text": "@Override protected void initData() {\n\n }", "title": "" }, { "docid": "2d6a92f736b31aff99f8279ce9e9c8ec", "score": "0.5659323", "text": "@Override protected void initData() {\n\n }", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.56583565", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5654317", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "84759c3f875ced0d560d1325ea69c169", "score": "0.5650462", "text": "@Override\n\tpublic void carregar() {\n\t\t\n\t}", "title": "" }, { "docid": "f3d9d337b86266fa06b6c124066ba10f", "score": "0.5649566", "text": "@Override\n\tpublic void suivant() {\n\n\t}", "title": "" }, { "docid": "a9c3219cc6f580b12801e67d1572166b", "score": "0.56457", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t}", "title": "" }, { "docid": "c2016a04d768a96d9c5cfd01aa6d39eb", "score": "0.5638013", "text": "private theClimb() {\r\n }", "title": "" }, { "docid": "b4fd8b88ba6b84a6cb270b7b2afb555c", "score": "0.5633", "text": "@Override\n public void process() {\n }", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.56272703", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" }, { "docid": "28cb2cb30bd9eb65b330fc79c360bb50", "score": "0.56215316", "text": "@Override\n public void run( ) {\n\t // Implement by yourself\n\t}", "title": "" }, { "docid": "a022af65565a4f8abd010406a558fcb7", "score": "0.5619879", "text": "@Override\n protected void initData() {\n }", "title": "" }, { "docid": "9293596216c60e2004e0a8cfb950ad0f", "score": "0.56134224", "text": "@Override\r\n\tpublic void pripremi() {\n\r\n\t}", "title": "" }, { "docid": "78dd081191966d140e733a7a020d9c85", "score": "0.5613158", "text": "public void otraFuncion() {\n\t\t\n\t}", "title": "" }, { "docid": "fc442cc7865f95f8cc8be2ecf775f78e", "score": "0.5612221", "text": "@Override\n public void inizializza() {\n super.inizializza();\n }", "title": "" }, { "docid": "99592b7145deb1ebf164dd98d1da4f91", "score": "0.5607489", "text": "@Override\n\t public void run () {}", "title": "" }, { "docid": "978714c2ba628006b4e6c99a10bbcc97", "score": "0.56052446", "text": "private void update() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "15823e29a9b2fc554cc535992e0eacee", "score": "0.5600841", "text": "@Override\r\n\tpublic void initData() {\n\r\n\r\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55963576", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55963576", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55963576", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55963576", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55963576", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55963576", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.55963576", "text": "@Override\n protected void initialize() {\n }", "title": "" } ]
65dc70557b4a889f9b8cba25e6909d1f
Sets the superclass name of testcase.
[ { "docid": "47503913bc73a550f5103d04fe174431", "score": "0.7485887", "text": "public void setTestCaseSuperclassName(String testCaseSuperclassName) {\r\n this.testCaseSuperclassName = testCaseSuperclassName;\r\n }", "title": "" } ]
[ { "docid": "09f338d7704bb0db44f66bda1b8d3097", "score": "0.6987005", "text": "public void setSuperClass(String name) {\n this.superClass = name;\n }", "title": "" }, { "docid": "0edb63cbc3ff89f5ab07b8fe520dd765", "score": "0.6884231", "text": "public void setSuperclassName(String superclassName) {\r\n this.superclassName = superclassName;\r\n }", "title": "" }, { "docid": "395941539335b89240a5d6e3680bc59c", "score": "0.6292351", "text": "public void setSuperclass(String text) {\n txtSuperclass().setText(text);\n }", "title": "" }, { "docid": "a6a0bd4afcd435eecd89e82a64c4a8cd", "score": "0.6119422", "text": "public void setClassname (String Classname);", "title": "" }, { "docid": "f1f36ccc96e3b7a644d0b87e8e07a6c6", "score": "0.6001887", "text": "public void setName(String new_name){\n\t\tsuper.setName(new_name);\n\t}", "title": "" }, { "docid": "37912e8a8cdc88a2c56bc0f65f005951", "score": "0.59512687", "text": "public void setNameClass(String pNameClass) {\r\n\t nameClass = pNameClass;\r\n\t}", "title": "" }, { "docid": "3bf7d353df79d12762856deaa89ef3cb", "score": "0.585842", "text": "public void setTestName(final String testName) {\n\t\tthis.testName = testName;\n\t}", "title": "" }, { "docid": "b3bbb10177fba02dfbb8917af5a82368", "score": "0.58502257", "text": "public void setName (String s) {\n String name = super.getName ();\n if (name == null || !name.equals (s)) {\n super.setName (s);\n fireNameChange (name, s);\n }\n }", "title": "" }, { "docid": "3873d5e29ddb0840e47ea5d3fba7d690", "score": "0.5847444", "text": "public void setSIName(String SIName) {\n super.setProperty(SI_NAME,SIName); \n }", "title": "" }, { "docid": "e02308ed9b048f976bed12e0c62d38c8", "score": "0.58377326", "text": "@Override\n public String getTestName()\n {\n return testName.get();\n }", "title": "" }, { "docid": "ee9c26fb6d578cd2bdcdee1ca337c385", "score": "0.580477", "text": "@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}", "title": "" }, { "docid": "5001c6079c97a71051eaec9a84bb3e7f", "score": "0.5753018", "text": "@Override\n\tpublic void setName(String arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "3da1fb78007d56ac9ad357df18f8a610", "score": "0.5748217", "text": "public String getSuperclass() {\n return superclass;\n }", "title": "" }, { "docid": "2fec172cb7c05390fc770d87cd364ccd", "score": "0.56581986", "text": "public void setSuperClass(TypeInfo superClass) {\n\t\tthis.superClass = superClass;\n\t}", "title": "" }, { "docid": "11b36f0dd5b96863d03ee5814fcd9bae", "score": "0.5631075", "text": "public void setClassname(String classname) {\n this.classname = classname;\n }", "title": "" }, { "docid": "11b36f0dd5b96863d03ee5814fcd9bae", "score": "0.5631075", "text": "public void setClassname(String classname) {\n this.classname = classname;\n }", "title": "" }, { "docid": "92fe3b9999d3c55daa8e6b12f4a3fe09", "score": "0.5625307", "text": "protected void setUp() {\n \tSystem.err.println(\"Testcase: \" + getName());\n }", "title": "" }, { "docid": "0a708e4b021b9d3c95c05acbf73cae08", "score": "0.5603611", "text": "public LCSbaseTest(TestName testName, String className) {\n super(testName, className);\n }", "title": "" }, { "docid": "4dee928caad9a288a88b12436903f81e", "score": "0.55994534", "text": "public CPSUTest(String name) {\n\t\tsuper(name);\n\t}", "title": "" }, { "docid": "1e6ee3a80760780fb80b48855e5e07cb", "score": "0.55948037", "text": "public ZeusAdaptorTest(String name) {\n super(name); //pass it to parent class\n }", "title": "" }, { "docid": "c99c40add2f1f20051d6acd0b0e505cb", "score": "0.55926937", "text": "void setClassName(String className);", "title": "" }, { "docid": "ac617e65962365024ccb25835744fcd0", "score": "0.55869555", "text": "public MethodStartTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "title": "" }, { "docid": "332df13bf86aca3d57298e3a6873bcd5", "score": "0.55847013", "text": "public void typeSuperclass(String text) {\n txtSuperclass().typeText(text);\n }", "title": "" }, { "docid": "a9d50d81062b65e71a3948810f77e0c4", "score": "0.55349237", "text": "public abstract String getTestName();", "title": "" }, { "docid": "a692cf3ea59b283e0b68f3e14b3aa53a", "score": "0.553421", "text": "public abstract void setName(String name);", "title": "" }, { "docid": "90c52f474823a07c6228f5738188fab3", "score": "0.5522847", "text": "public final void setParentName(java.lang.String parentname)\r\n\t{\r\n\t\tsetParentName(getContext(), parentname);\r\n\t}", "title": "" }, { "docid": "0b51cc23597ea81335f72f2cace63b77", "score": "0.5514861", "text": "public void setSupervisorName(String SupervisorName);", "title": "" }, { "docid": "88e7b2c57be0e6633fe7dc3d0eb0a374", "score": "0.5503705", "text": "public void setClassName(String inClassName) {\n\n className = inClassName;\n\n }", "title": "" }, { "docid": "0b70a9063d79997de486eca00aa2fa24", "score": "0.55013734", "text": "@Override\n\tpublic void setClassName(String className) {\n\t\tthis.className = className;\n\t}", "title": "" }, { "docid": "a16f6be1a240ccd2cbff4d2fa34f96de", "score": "0.54957277", "text": "public void setName(String s) {\n\t\tsetName = s;\n\t}", "title": "" }, { "docid": "36c30a4eefd5d10e28a5e844e99dda95", "score": "0.5494757", "text": "public InspectionTest(String name) {\n\t\tsuper(name);\n\t}", "title": "" }, { "docid": "becadab9d199f576c7ca48a18b0d80cf", "score": "0.5483146", "text": "void setParentName( String parentName);", "title": "" }, { "docid": "99d22e5380ee8f6836dbcd0e03568c20", "score": "0.5480737", "text": "public SampleTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "title": "" }, { "docid": "a9e40e4e65aa5915e551d64f8b8462e6", "score": "0.5473146", "text": "public void setCaseName(String nameTmp) {\n\t\tthis.caseName=nameTmp;\n\t\t//System.out.print(this.caseName);\n\t}", "title": "" }, { "docid": "f6ddca39b9180354f1e3e9a3b2d05f42", "score": "0.5471631", "text": "public MarkSheet1Inheritance(String name) {\r\n super(name);\r\n }", "title": "" }, { "docid": "5d5a0c5b8287c034d2dce5e2ecb43b7e", "score": "0.5445244", "text": "public void setDefaultSuperTypeFullTrxClassNamePR( EAIMMCtxtIfc theCtxt, java.lang.String theDefaultSuperTypeFullTrxClassName) throws EAIException {\r\n\r\n // Get current value\r\n java.lang.String aDefaultSuperTypeFullTrxClassName = getDefaultSuperTypeFullTrxClassNamePR( theCtxt);\r\n // Check for new DefaultSuperTypeFullTrxClassName same as current one\r\n if( toObject( aDefaultSuperTypeFullTrxClassName) != null && toObject( aDefaultSuperTypeFullTrxClassName).equals( toObject( theDefaultSuperTypeFullTrxClassName))) { return;}\r\n\r\n vaDefaultSuperTypeFullTrxClassName = theDefaultSuperTypeFullTrxClassName;\r\n change( theCtxt, \"DefaultSuperTypeFullTrxClassName\", toObject( aDefaultSuperTypeFullTrxClassName), toObject( vaDefaultSuperTypeFullTrxClassName), \"vaDefaultSuperTypeFullTrxClassName\");\r\n }", "title": "" }, { "docid": "fc5026b1d265f0f45bf788462cc93b75", "score": "0.5443004", "text": "public void setParentTypeName(String value) {\n setAttributeInternal(PARENTTYPENAME, value);\n }", "title": "" }, { "docid": "8a6558d95f9eb66f9f3ebbde4a69bf9a", "score": "0.54327047", "text": "public String getTestCaseName() {\r\n\t\treturn testCaseName;\r\n\t}", "title": "" }, { "docid": "06213e8c99ffd71a3c4b66c099445483", "score": "0.542289", "text": "public void setName(String s) {\n }", "title": "" }, { "docid": "11299909b9c460f63e9fe2447ecf367d", "score": "0.54223204", "text": "public void setTestCaseName(String testCaseName) {\r\n\t\tthis.testCaseName = testCaseName;\r\n\t}", "title": "" }, { "docid": "2c2e0a698cb5574359e77c05a0ce3027", "score": "0.54088926", "text": "public void setClassName(final String className);", "title": "" }, { "docid": "e93eea4231e223006a0bfee5baaaccb9", "score": "0.5384341", "text": "public void setClassName(String s) {\n\t\tclassName = s;\n\t}", "title": "" }, { "docid": "ffa416dcf4215886c98875d2fc7e06c5", "score": "0.53819305", "text": "public static void setClassName(String className) {\n\t\t\tBaseUtils.className = className;\n\t\t}", "title": "" }, { "docid": "9e8c4df9f17bbea522eade6ad35f6444", "score": "0.5378649", "text": "private void setName(\n java.lang.String value) {\n value.getClass();\n \n name_ = value;\n }", "title": "" }, { "docid": "9e8c4df9f17bbea522eade6ad35f6444", "score": "0.5378649", "text": "private void setName(\n java.lang.String value) {\n value.getClass();\n \n name_ = value;\n }", "title": "" }, { "docid": "0c5626176734d38e8bef9c33fb5314be", "score": "0.5375399", "text": "public void setTest(String newTest) {\n this.setProperty(TEST, newTest);\n }", "title": "" }, { "docid": "49e9badcbac672ca59f521ceaab48768", "score": "0.5369504", "text": "protected String getTestedClassName() {\n return className;\n }", "title": "" }, { "docid": "219ab63656504a43e86d0a5fd674bbde", "score": "0.53648865", "text": "@Override\n public void setName(String name) {\n notifyUpdate(\"name\", this.name, name);\n super.setName(name);\n }", "title": "" }, { "docid": "93e7513197af2fa34c0f14fabfceffda", "score": "0.5364335", "text": "@Override\n public String getName()\n {\n return super.getName(); \n }", "title": "" }, { "docid": "5850958c73fd294e2a31548f356ff562", "score": "0.5364292", "text": "@Override\n public void setName(String name) \n {\n this.name = name;\n }", "title": "" }, { "docid": "61b60c1a3387fbe83ddeb2dfc1bfcff9", "score": "0.5361252", "text": "public void setName(String s) {\r\n\t\tname = s;\r\n\t}", "title": "" }, { "docid": "1df6d23901bcd14e355f7f3ff6a0d565", "score": "0.53465605", "text": "@Test\n public void testSetTypeName() {\n System.out.println(\"setTypeName\");\n String typeName = \"Studio\";\n instance.setTypeName(typeName);\n assertEquals(typeName, instance.getTypeName());\n }", "title": "" }, { "docid": "bfec14f61997f3932163963fb3ecda82", "score": "0.53408617", "text": "public void setName(String s) {\r\n\t\tthis.getDelegate().name = s;\r\n }", "title": "" }, { "docid": "0ff9865cdbfa9de104eceec4227b89eb", "score": "0.5339713", "text": "public void setName(String string) {\n\t\t\n\t}", "title": "" }, { "docid": "077101ed8499c5f1b6ca22d250199132", "score": "0.5339306", "text": "protected abstract String getClassName();", "title": "" }, { "docid": "30800ad333c73324194730a8aa3360d3", "score": "0.5330435", "text": "protected final void setName(String name){\n myName = name;\n }", "title": "" }, { "docid": "b81e3356dc429b42479c79cd22727db6", "score": "0.53279454", "text": "public void setName(String s){\n\t\tname = s;\n\t}", "title": "" }, { "docid": "5ec5f90152cfad83fa2b5dfd0f833a9b", "score": "0.5327584", "text": "public abstract void setLoginName(String login);", "title": "" }, { "docid": "e91b75d568529b5572f4f4cf8f0ae77a", "score": "0.5319719", "text": "@Override\r\n public void visit(int version, int access, String name, String signature,\r\n String superName, String[] interfaces) {\n super.visit(version, access, name, signature, superName, interfaces);\r\n \r\n this.className = name;\r\n }", "title": "" }, { "docid": "de8a3045f2f4ffd460830090c35c4534", "score": "0.53166884", "text": "public void setDefaultSuperTypeFullBaseClassNamePR( EAIMMCtxtIfc theCtxt, java.lang.String theDefaultSuperTypeFullBaseClassName) throws EAIException {\r\n\r\n // Get current value\r\n java.lang.String aDefaultSuperTypeFullBaseClassName = getDefaultSuperTypeFullBaseClassNamePR( theCtxt);\r\n // Check for new DefaultSuperTypeFullBaseClassName same as current one\r\n if( toObject( aDefaultSuperTypeFullBaseClassName) != null && toObject( aDefaultSuperTypeFullBaseClassName).equals( toObject( theDefaultSuperTypeFullBaseClassName))) { return;}\r\n\r\n vaDefaultSuperTypeFullBaseClassName = theDefaultSuperTypeFullBaseClassName;\r\n change( theCtxt, \"DefaultSuperTypeFullBaseClassName\", toObject( aDefaultSuperTypeFullBaseClassName), toObject( vaDefaultSuperTypeFullBaseClassName), \"vaDefaultSuperTypeFullBaseClassName\");\r\n }", "title": "" }, { "docid": "e64b3bc9015567a51041eb32e4d87270", "score": "0.5311544", "text": "public void setName(String s) {\n\t\tname = s;\n\t}", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.53107226", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.53107226", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "0f37526e0e37e5649565b0128726dd10", "score": "0.53107226", "text": "void setName(java.lang.String name);", "title": "" }, { "docid": "def21de59ee1a7cd70297b3cd16da822", "score": "0.5310461", "text": "public void setPreferredClassName(String className) {\n String old;\n synchronized (this) {\n if (className == null ? this.className == null : className.equals(this.className)) {\n return ;\n }\n old = className;\n this.className = className;\n }\n firePropertyChange (PROP_PREFERRED_CLASS_NAME, old, className);\n }", "title": "" }, { "docid": "5065fb11a40e48f981f3a449251aaf9a", "score": "0.5300979", "text": "public String getAbstractTestgenName() {\r\n StringConcatenation _builder = new StringConcatenation();\r\n String _testgenPackage = this.getTestgenPackage();\r\n _builder.append(_testgenPackage, \"\");\r\n _builder.append(\".\");\r\n String _abstractTestgenClass = this.getAbstractTestgenClass();\r\n _builder.append(_abstractTestgenClass, \"\");\r\n return _builder.toString();\r\n }", "title": "" }, { "docid": "c81ec6c4b87bfa2727ceff347c53401f", "score": "0.53005713", "text": "public PSDirectorySetTest(String name)\n {\n super(name);\n }", "title": "" }, { "docid": "4e3523eeed260715642300a761b98c35", "score": "0.529999", "text": "public void setName(String input) {\n\t\tname = input;\n\t}", "title": "" }, { "docid": "adecb639384810a79db57b6dd7231d85", "score": "0.5282007", "text": "@Override\n public void setName(String name) {\n this.name=name;\n }", "title": "" }, { "docid": "c2e811747e8a3e80fff332a1aaf2b713", "score": "0.52782273", "text": "protected void setName(String name){\r\n\t\tthis.name=name;\r\n\t}", "title": "" }, { "docid": "f2f94d878a4eaea4facce66cdd4983f0", "score": "0.5276599", "text": "public void setName(String s) {\n this.name = s;\n }", "title": "" }, { "docid": "36d7526d7576c958748f57191bf85acb", "score": "0.5271118", "text": "public void setClassName(String aClassName) {\n _class = aClassName;\n }", "title": "" }, { "docid": "847412625263caca5a2f069d20e7be90", "score": "0.5265167", "text": "public void setName(String n) {\n }", "title": "" }, { "docid": "dae9ca29b6db463cfc8e82c799c92e0d", "score": "0.5262655", "text": "public void startTest(Test test) {\n String testName;\n if (test instanceof TestCase) {\n testName = getClassBaseName(test) + \".\" + ((TestCase)test).getName();\n }\n else {\n testName = test.toString();\n }\n getWriter().print(\"RUN \" + testName);\n }", "title": "" }, { "docid": "c9c49da8d7700fac23a70d97f8220cfe", "score": "0.52560586", "text": "public EmployeeTest(final String testName) {\r\n super(testName);\r\n }", "title": "" }, { "docid": "d6a38e42092f26f080af8f1c555f1a48", "score": "0.5252514", "text": "public ScriptFactoryTest(String name) {\r\n super(name);\r\n }", "title": "" }, { "docid": "440708b3909771acbf19d746513565e8", "score": "0.5251508", "text": "void setDevicename(java.lang.String devicename);", "title": "" }, { "docid": "1c3bb2bbf14d37277e17de710a8a322e", "score": "0.5234646", "text": "@Override\n\tpublic synchronized void setName(String name) {\n\t}", "title": "" }, { "docid": "9e8f8f1cf81da5690f98eb9d7227ba9b", "score": "0.5223307", "text": "public void testSetName() {\n test.setName(\"test_name\");\n assertEquals(\"setName fails to set name correctly.\", \"test_name\", test.getName());\n }", "title": "" }, { "docid": "7d1f243ba7afde52bc3c476d4e9caf25", "score": "0.5212981", "text": "public void testCtor1SetsName() {\n checkDefaultName(createInstance1());\n }", "title": "" }, { "docid": "77727c38033eb95e6e4113c87f127cfb", "score": "0.5211764", "text": "@Override\n\tpublic void setTitle(CharSequence title) {\n\t\tsuper.setTitle(title);\n\t}", "title": "" }, { "docid": "70faa49f29cc56a71d5cdd5d0bfff98d", "score": "0.5195684", "text": "public void setBases(String baseChoice) {\n super.setBase(bases[Integer.parseInt(baseChoice) - 1]);\n }", "title": "" }, { "docid": "4f89e6b7cb26c4313bb9c03de2d8be82", "score": "0.51953626", "text": "@Override\n\tpublic void setNameLocalizationKey(java.lang.String nameLocalizationKey) {\n\t\t_testUnitSpecialization.setNameLocalizationKey(nameLocalizationKey);\n\t}", "title": "" }, { "docid": "0f586ed829a4c5dc97ca6b732937dfc1", "score": "0.519361", "text": "public void setDisplayName (String s) {\n String displayName = super.getDisplayName ();\n if (displayName == null || !displayName.equals (s)) {\n super.setDisplayName (s);\n fireDisplayNameChange (displayName, s);\n }\n }", "title": "" }, { "docid": "7c0e411486fd29807dbb59cc27e3c195", "score": "0.51912135", "text": "public void setSupertype(edoc.ECA.CCA.Choreography supertype) { \n\t\tthis.supertype = supertype;\n\t}", "title": "" }, { "docid": "0a31d6a9a6835e407b2d4240e6d2084b", "score": "0.5188359", "text": "void setName(String Name);", "title": "" }, { "docid": "e17ba52d72d0203dc745c4932cfe5c2a", "score": "0.51844555", "text": "public void setTitol(String nouTitol) {\n super.setTitle(Titol+nouTitol);\n }", "title": "" }, { "docid": "7037c9de9c108697d81633b61d00bee4", "score": "0.51835614", "text": "public void setRealName(String realName);", "title": "" }, { "docid": "759bf041414fc73c12b326764e35cd03", "score": "0.5181204", "text": "@Test\r\n\tpublic void setNameTest(){\r\n\t\t//case 1:\r\n\t\tassertEquals(\"testCountry\",country.getShowName());\r\n\t\tassertEquals(\"testcountry\",country.getName());\r\n\t\t//case 2:\r\n\t\tcountry.setName(\"changeName\");\r\n\t\tassertEquals(\"changeName\",country.getShowName());\r\n\t\tassertEquals(\"changename\",country.getName());\r\n\t\tSystem.out.println(\"Country Test: setName(String) finished.\");\r\n\t}", "title": "" }, { "docid": "cf06f3b6921a2e5a3ef6c073b818652e", "score": "0.51789004", "text": "@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}", "title": "" }, { "docid": "cf06f3b6921a2e5a3ef6c073b818652e", "score": "0.51789004", "text": "@Override\n\tpublic String getName() {\n\t\treturn super.getName();\n\t}", "title": "" }, { "docid": "311215e6f4d29ab779ebc726d3741f03", "score": "0.51787895", "text": "public void setName(java.lang.String value);", "title": "" }, { "docid": "311215e6f4d29ab779ebc726d3741f03", "score": "0.51787895", "text": "public void setName(java.lang.String value);", "title": "" }, { "docid": "68ae6e1bb995892581b5cf4c355008db", "score": "0.5168804", "text": "@Override\n public void setTitle(String name) {\n Log.d(TAG, \"setTitle: \" + name);\n }", "title": "" }, { "docid": "3fc5b145d0ed344d49addc1b72a5ae68", "score": "0.51638496", "text": "public void setName(IAstName name);", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5148309", "text": "public void setName (String Name);", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5148309", "text": "public void setName (String Name);", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5148309", "text": "public void setName (String Name);", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5148309", "text": "public void setName (String Name);", "title": "" }, { "docid": "02e90e4ec3ddf8889c9f97827427a7f6", "score": "0.5148309", "text": "public void setName (String Name);", "title": "" } ]
fd54dc3e58a4058dd225609746baaf51
This method was generated by MyBatis Generator. This method sets the value of the database column meetingroom.id
[ { "docid": "2f55f13f232ada678023e561a82c44c9", "score": "0.0", "text": "public void setId(Integer id) {\n this.id = id;\n }", "title": "" } ]
[ { "docid": "15c5260ce16820bcbbf4cf69b6b83215", "score": "0.69288653", "text": "@Override\n public void setMeetingRoomId(long meetingRoomId) {\n _meetingRoom.setMeetingRoomId(meetingRoomId);\n }", "title": "" }, { "docid": "a2605f0f502f108d029793d10b8a424a", "score": "0.6926012", "text": "public void setID(int _roomID){\n roomID = _roomID;\n }", "title": "" }, { "docid": "52b212c26e91124db4a8bf147ec100b7", "score": "0.6473862", "text": "@Override\n public void setPrimaryKey(long primaryKey) {\n _meetingRoom.setPrimaryKey(primaryKey);\n }", "title": "" }, { "docid": "07183d35cccf05b5c8caf9f361a7eeb5", "score": "0.6429993", "text": "@Override\n public long getMeetingRoomId() {\n return _meetingRoom.getMeetingRoomId();\n }", "title": "" }, { "docid": "2d89469ab394c21e64f06fbf7ffdf9d7", "score": "0.63117445", "text": "public void setRoomId(Long RoomId) {\n this.RoomId = RoomId;\n }", "title": "" }, { "docid": "668a25e469f0d96b623a5a41e9433f29", "score": "0.6252518", "text": "public void setRoomId(String roomId) {\n this.roomId = roomId;\n }", "title": "" }, { "docid": "40a5d8d415a3d02d8438ec1c47ca50bd", "score": "0.6211955", "text": "public void setID(int _room, int _serial){\n room = _room;\n serial = _serial;\n }", "title": "" }, { "docid": "77b7ac570c518bfcd8828a9072ba5b7e", "score": "0.6211773", "text": "public void setRoom(int newroom){\n \tthis.roomNumber=newroom;\n }", "title": "" }, { "docid": "4d81d36a53c96ea09e24bc6be26cfbd7", "score": "0.6157865", "text": "public String getRoomId() {\n return roomId;\n }", "title": "" }, { "docid": "4d81d36a53c96ea09e24bc6be26cfbd7", "score": "0.6157865", "text": "public String getRoomId() {\n return roomId;\n }", "title": "" }, { "docid": "a0254c70ab1793255f12e7ca06290fc5", "score": "0.6156236", "text": "public String getRoomId(){\n return room_Id;\n }", "title": "" }, { "docid": "8d2a2193b82480d3383c8f3781d065ab", "score": "0.6135243", "text": "@Override\n public long getPrimaryKey() {\n return _meetingRoom.getPrimaryKey();\n }", "title": "" }, { "docid": "b81368fc0e9e27825fe21645e89562ae", "score": "0.61142117", "text": "public Long getRoomId() {\n return this.RoomId;\n }", "title": "" }, { "docid": "a0506ec7f3096a3410462f2151591a06", "score": "0.6094074", "text": "public int getRoomID() { return roomID; }", "title": "" }, { "docid": "3044a33304c494703e8e820f23ba4f50", "score": "0.59908795", "text": "public void setRoom(Room room){\r\n this.room = room;\r\n }", "title": "" }, { "docid": "f17a776ab2fb794b431b742bae7c9694", "score": "0.59564877", "text": "@Override\n public void setUserId(long userId) {\n _meetingRoom.setUserId(userId);\n }", "title": "" }, { "docid": "2b911e20e865244154e54db27de7ba4f", "score": "0.5915921", "text": "@Override\n\tpublic void UpdateMR(Meetingroom meetingroom) {\n\t\tSession session=this.getSession();\n\t\tsession.update(meetingroom);\n\t\tsession.flush();\n\t\tsession.close();\n\t}", "title": "" }, { "docid": "d75b9db44c1a5b2869c858a249b3a15b", "score": "0.5876806", "text": "public void setRoom(Room room) {\n this.currentRoom = room;\n }", "title": "" }, { "docid": "fc7fc950abfa17998b0182a5d9ef7ede", "score": "0.5812137", "text": "public void setRoom(Room room) {\n this.room = room;\n }", "title": "" }, { "docid": "6256e7f2ea425f68702b4318f9462d3d", "score": "0.5811483", "text": "public String getRoomID(){\n return roomID;\n }", "title": "" }, { "docid": "1a15764990b8c90ee5caf253e1640978", "score": "0.5799722", "text": "public synchronized void setRoomIdAP(int partyId,int room){\n roomId[partyId] = room;\n }", "title": "" }, { "docid": "5e439e76fc947bb75ba959a7a751f810", "score": "0.56468844", "text": "@Override\n\tpublic void savaMR(Meetingroom meetingroom) {\n\t\tSession session=this.getSession();\n\t\tsession.save(meetingroom);\n\t\tsession.close();\n\t}", "title": "" }, { "docid": "f5b29dbd473bbdb254c28f0da834ba17", "score": "0.5642346", "text": "public void setRoom(Room kamar)\n {\n this.kamar=kamar;\n }", "title": "" }, { "docid": "86feb2a78a329fdee4cbbe1ddc2451a0", "score": "0.56213707", "text": "public void update(MeetingDB meeting) {\r\n\r\n SQLiteDatabase db = dbHelper.getWritableDatabase();\r\n ContentValues values = new ContentValues();\r\n\r\n values.put(MeetingDB.KEY_Date, meeting.date);\r\n values.put(MeetingDB.KEY_name, meeting.name);\r\n values.put(MeetingDB.KEY_Notes, meeting.notes);\r\n values.put(MeetingDB.KEY_LAT, meeting.lat);\r\n values.put(MeetingDB.KEY_LNG, meeting.lng);\r\n values.put(MeetingDB.KEY_LATLNG_NAME, meeting.location);\r\n\r\n // It's a good practice to use parameter ?, instead of concatenate string\r\n db.update(MeetingDB.TABLE, values, MeetingDB.KEY_ID + \"= ?\", new String[] { String.valueOf(meeting.meetingID) });\r\n db.close(); // Closing database connection\r\n }", "title": "" }, { "docid": "4b1e3430b3ae26dc8ad5fe35ec86345b", "score": "0.5598483", "text": "@javax.annotation.Nullable\n @ApiModelProperty(example = \"0ccc7b54-4df3-4bca-a65a-35a1ecc777f0\", value = \"Room ID associated with the recording.\")\n @JsonProperty(JSON_PROPERTY_ROOM_ID)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public UUID getRoomId() {\n return roomId;\n }", "title": "" }, { "docid": "ed660d34e190552eac07ba3b1efd8185", "score": "0.559081", "text": "public void setRoomIdentifier(String roomIdentifier) {\n this.roomIdentifier = roomIdentifier;\n }", "title": "" }, { "docid": "8a27bb876a65f3aa70adcb382ff16d08", "score": "0.5554448", "text": "public Room(int _roomID){ // room number\n roomID = _roomID;\n }", "title": "" }, { "docid": "8b6311cde433370197710a102482e5df", "score": "0.55535", "text": "public void setCurrentRoom(Room room)\n {\n currentRoom = room;\n }", "title": "" }, { "docid": "9df350d05e054be034787b03c2163ab4", "score": "0.5532659", "text": "public void setAppointmentId(long value) {\n this.appointmentId = value;\n }", "title": "" }, { "docid": "3aa95e55e0007d5a8e56cf09fbf483b7", "score": "0.548441", "text": "@Override\n public long getUserId() {\n return _meetingRoom.getUserId();\n }", "title": "" }, { "docid": "47c78afa85471a5e7e7ab6372bdb0ce6", "score": "0.54545224", "text": "public void setCurrentRoom(Room room) {\n currentRoom = room;\n }", "title": "" }, { "docid": "3112de850c7f04248e19d63689b11be8", "score": "0.5400156", "text": "public void setId(Long id)\n/* */ {\n/* 67 */ this.id = id;\n/* */ }", "title": "" }, { "docid": "923519951ea7767c2533a1783ef50420", "score": "0.53973716", "text": "@Override\n\tpublic void setId(long id) {\n\t\t_tempPassengerDetails.setId(id);\n\t}", "title": "" }, { "docid": "5faf768e34a4769aff96f88bc9419541", "score": "0.5393076", "text": "public String getRoomIdentifier() {\n return this.roomIdentifier;\n }", "title": "" }, { "docid": "82ac1be122d19d699137f3394aa5a488", "score": "0.5370116", "text": "public int getRoom(){\n \treturn roomNumber;\n \t\n }", "title": "" }, { "docid": "3ec7cc09f6acec8b7fe07ad1ad0f0417", "score": "0.53142655", "text": "@Override\n public void setCode(java.lang.String code) {\n _meetingRoom.setCode(code);\n }", "title": "" }, { "docid": "1bf3c1886f61f578134bcc010001d36b", "score": "0.529586", "text": "public void setId(Long id)\n/* */ {\n/* 62 */ this.id = id;\n/* */ }", "title": "" }, { "docid": "d45743525797296a95329cafb98b9dcf", "score": "0.52919257", "text": "public void setRoom(String room) throws NullPointerException{\n try{\n double s = Integer.parseInt(room);\n if (s<0)\n {\n throw new IllegalArgumentException(\"room number can not be less than zero\");\n }\n }catch (NumberFormatException ex){\n throw new NumberFormatException(\"room number can not be string\");\n }\n if(room==null)\n {\n throw new NullPointerException(\"room number can not be empty\");\n }\n this.room = room;\n }", "title": "" }, { "docid": "0a84b580501f5e4b3444825a25bf4774", "score": "0.52866304", "text": "public void setRoomNumber(int roomNumber)\n {\n this.roomNumber = roomNumber;\n }", "title": "" }, { "docid": "cd144f3dccfde14e070472619597d514", "score": "0.52853286", "text": "@Override\n public void setGroupId(long groupId) {\n _meetingRoom.setGroupId(groupId);\n }", "title": "" }, { "docid": "8baa33f17feae4dca721cc1e29bdc1d4", "score": "0.5260914", "text": "public void setClassRoomId(Long classRoomId) {\n this.classRoomId = classRoomId;\n }", "title": "" }, { "docid": "c25cbdad5efd59c76a3374c24683a099", "score": "0.5256706", "text": "void setId(Long id);", "title": "" }, { "docid": "c25cbdad5efd59c76a3374c24683a099", "score": "0.5256706", "text": "void setId(Long id);", "title": "" }, { "docid": "67905cd285c8c3aea76caaca56911730", "score": "0.5251076", "text": "public void setCurrentRoom(Room currentRoom) {\n\t\tthis.currentRoom = currentRoom;\n\t}", "title": "" }, { "docid": "32da771175d9c3233a2fa718d415bb1c", "score": "0.52380353", "text": "public void setId(Long id) {\n this.id = id;\n }", "title": "" }, { "docid": "1b7c892152540689389134a75ddcd3bd", "score": "0.5225868", "text": "public void setId(Long id)\n/* */ {\n/* 75 */ this.id = id;\n/* */ }", "title": "" }, { "docid": "ca207a2e66ef79bddbf28e66d9c3cf89", "score": "0.5224413", "text": "public void setId(Long id);", "title": "" }, { "docid": "2ff82da4c14d4dbc8014324c7d7cdb64", "score": "0.5213593", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_tempPassengerDetails.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "2920158a8bcae5ef0cf13164989bc537", "score": "0.5208384", "text": "@Override\n public void setCompanyId(long companyId) {\n _meetingRoom.setCompanyId(companyId);\n }", "title": "" }, { "docid": "096bbb7fe5cee69b16758e2e30905650", "score": "0.52056724", "text": "void setIdLocation (Integer idLocation);", "title": "" }, { "docid": "b67bd9de7a67ab89de28e813b3bbdfef", "score": "0.5198283", "text": "public void setId(long id);", "title": "" }, { "docid": "b67bd9de7a67ab89de28e813b3bbdfef", "score": "0.5198283", "text": "public void setId(long id);", "title": "" }, { "docid": "b67bd9de7a67ab89de28e813b3bbdfef", "score": "0.5198283", "text": "public void setId(long id);", "title": "" }, { "docid": "b67bd9de7a67ab89de28e813b3bbdfef", "score": "0.5198283", "text": "public void setId(long id);", "title": "" }, { "docid": "b19b43e91d602da18f8ceb620bc371bc", "score": "0.5193668", "text": "public void setId(Long id){\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "b19b43e91d602da18f8ceb620bc371bc", "score": "0.5193668", "text": "public void setId(Long id){\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "4e6688ce34e7b91c3ccbb6e850c30122", "score": "0.51932174", "text": "@Override\n\tpublic void setId(long id) {\n\t\t_agency.setId(id);\n\t}", "title": "" }, { "docid": "2b851899bb8cea41b41c07f5e345da26", "score": "0.51755995", "text": "Room selectByPrimaryKey(Integer id);", "title": "" }, { "docid": "7f79a32b5cc52ac9663df173f5935850", "score": "0.51700723", "text": "@Override\r\n public MeetingRoom findById(Integer id) {\r\n\r\n return this.meetingRoomList.stream().filter(val -> id == val.getId()).findAny().orElse(null);\r\n }", "title": "" }, { "docid": "b125d22b9923d1e70459501068b8f0a4", "score": "0.5162303", "text": "public void setLocation(Room currentRoom) {\n\t\tthis.room = currentRoom;\n\t}", "title": "" }, { "docid": "1344c35caa7ddd199d9d97373ddf707a", "score": "0.5155326", "text": "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_agency.setPrimaryKey(primaryKey);\n\t}", "title": "" }, { "docid": "e24af980e082aa14d2527662749bc2ef", "score": "0.5144415", "text": "private void setId( Long id )\n {\n this.id\t= id;\n }", "title": "" }, { "docid": "10f1a0d46a85e3cb4cce2e2eb2cfcc82", "score": "0.513434", "text": "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "ff72fbdf7d9c1d761d288221389122f7", "score": "0.51287514", "text": "@Override\n public long getGroupId() {\n return _meetingRoom.getGroupId();\n }", "title": "" }, { "docid": "8ccfdff72135c9db2022c50a8aa7282d", "score": "0.5126688", "text": "public void setIndexOfRoom(int index) {\n indexOfRoom = index;\n }", "title": "" }, { "docid": "35a7e3c4429a66c45c76270e17995ef5", "score": "0.5102066", "text": "public void setId(int _id)\n {\n id =_id;\n }", "title": "" }, { "docid": "4e52c4ec081c8496b1b276552dc3038a", "score": "0.51010257", "text": "public int getRoomNumber(){\n\t\treturn roomNumber;\n\t}", "title": "" }, { "docid": "51b777f1a77aab603c6f6b1123b4da9a", "score": "0.5098133", "text": "public void \r\n setId(Long anId)\r\n {\r\n theId = anId;\r\n }", "title": "" }, { "docid": "579e85846a9af2953b71313bf79f6aac", "score": "0.508978", "text": "void setId(long idL);", "title": "" }, { "docid": "7af954fa2014fa609d79c2197d6e96c0", "score": "0.508837", "text": "public void setMeetingRoomPersistence(\n MeetingRoomPersistence meetingRoomPersistence) {\n this.meetingRoomPersistence = meetingRoomPersistence;\n }", "title": "" }, { "docid": "74024128145b3c028737884d0dec420b", "score": "0.5086966", "text": "public void setRoomName(final String roomname) { this.room_name = roomname; }", "title": "" }, { "docid": "e1f21055e43c4461009eea02974a6e55", "score": "0.508137", "text": "public void setId(long id){\n\t\tthis.id=id;\n\t}", "title": "" }, { "docid": "fb1785ff7844e90eacbd7ca314053843", "score": "0.50802284", "text": "public void setIdAmbito( long idAmbito )\n {\n this.idAmbito = idAmbito;\n }", "title": "" }, { "docid": "de2eb3706a1370decea801e029040839", "score": "0.50738025", "text": "public void setMeetingRoomLocalService(\n com.LiferayEnEspanol.booking.service.MeetingRoomLocalService meetingRoomLocalService) {\n this.meetingRoomLocalService = meetingRoomLocalService;\n }", "title": "" }, { "docid": "2924c0dbac13d49c942d7f35206af7f7", "score": "0.50670886", "text": "public void setParticipantId(long participantId);", "title": "" }, { "docid": "7008c8cae42ba9cd1fca278170fae25c", "score": "0.50634706", "text": "void setIdentifierColumnValue( Integer identifierColumnValue );", "title": "" }, { "docid": "1361c5d76f36705c9552ac80dbf97d41", "score": "0.5063037", "text": "public void setMeetingRoomService(\n com.LiferayEnEspanol.booking.service.MeetingRoomService meetingRoomService) {\n this.meetingRoomService = meetingRoomService;\n }", "title": "" }, { "docid": "b4f612eaf5a2cc4dacaff9f081bcc8b9", "score": "0.5054775", "text": "private void setId(Long id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "35249bf391fea8600bb0250421f4aa28", "score": "0.5053801", "text": "public void setId( Long id ) {\n this.id = id ;\n }", "title": "" }, { "docid": "d7818b3f6cc68307b9abe17b95e6c658", "score": "0.5051992", "text": "@Override\r\n\tpublic int updRoom(Room room) {\n\t\treturn roomDubboService.updRoom(room);\r\n\t}", "title": "" }, { "docid": "7b8cf5b998bb2a3b414f956672e24cb8", "score": "0.5045378", "text": "public void setOrgId(Long orgId)\r\n/* 47: */ {\r\n/* 48:53 */ this.orgId = orgId;\r\n/* 49: */ }", "title": "" }, { "docid": "4381d4c43e290809d65e6075c662aed6", "score": "0.50409627", "text": "@Override\n public void setName(java.lang.String name) {\n _meetingRoom.setName(name);\n }", "title": "" }, { "docid": "e6b58fe66186f6c69d37004e92e5cdd0", "score": "0.5040921", "text": "public void setId(Long id) {\n\t\tthis.id=id;\n\t\t\n\t}", "title": "" }, { "docid": "94494c2ca879d4e8ff5ed31a144831c3", "score": "0.50379044", "text": "void setId(final Long id);", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "a59b681b5d3b2df2bd6516551c99352d", "score": "0.503518", "text": "public void setId(Long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "4cf5a2526c5ecb1d7826f270e66345e5", "score": "0.5033293", "text": "public void setId(Long id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "3a2bf3709d21a0de83dbc59c62f42470", "score": "0.50236446", "text": "@Override\n public java.lang.String getCode() {\n return _meetingRoom.getCode();\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.5021502", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.5021502", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "9e809db085a86e24c5f35ee7030c577d", "score": "0.5018341", "text": "int updateByPrimaryKey(Room record);", "title": "" }, { "docid": "fe94a8b92147633dced5097432ef275f", "score": "0.50124323", "text": "public void setId(Integer id)\r\n/* 39: */ {\r\n/* 40: 38 */ this.id = id;\r\n/* 41: */ }", "title": "" }, { "docid": "eb54b688c945966ec24ad449274caa5c", "score": "0.5007008", "text": "public void setId( long pId )\r\n {\r\n mId = pId;\r\n }", "title": "" }, { "docid": "59df99c03b6e6937231c14113de2e13d", "score": "0.5004987", "text": "public Builder setRoom(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n room_ = value;\n onChanged();\n return this;\n }", "title": "" } ]
ae7c986bcdea38ecea01348b3fd60bd3
this class is use for monitoring and verifying status changes in workflow
[ { "docid": "4cacb1d7f1c88889e84fd6169beda14e", "score": "0.0", "text": "public interface DataUpdateVerifier {\r\n\r\n\tpublic void verify(Object oldValue,Object newValue) throws Exception;\r\n}", "title": "" } ]
[ { "docid": "dce2282a146fcd9baea9f4ba081d61db", "score": "0.65831417", "text": "private void updateWorkflowStatus(String workflowId, String action, Integer newWorkflowStep) {\n //////// called after each step : Change ML State /////////\n ///////////////////////////////////////////////////////////\n\n String serviceName = schedulerConfiguration.getWorkflowStateServiceName();\n\n // Call a rest service\n ChangeWorkflowStatusManager changeWorkflowStatusManager = new ChangeWorkflowStatusManager(databaseClient,\n serviceName);\n changeWorkflowStatusManager.changeWorkflowStatus(workflowId, action, newWorkflowStep);\n\n }", "title": "" }, { "docid": "69aebbc126167b8e9d041511d147c7a2", "score": "0.6429825", "text": "public String getWorkflowStatus() {\n return workflowStatus;\n }", "title": "" }, { "docid": "cbd756858f5482b615951bbb1fbde52f", "score": "0.63638145", "text": "JobStatus status();", "title": "" }, { "docid": "79cf3bb5322432b800afe32979c57148", "score": "0.6335386", "text": "public void updateStatus() {\n\t}", "title": "" }, { "docid": "6dbda7d22afce3edf727edfc63ac1a8e", "score": "0.6327612", "text": "boolean hasChangeStatus();", "title": "" }, { "docid": "5f75ddb69b53f706611dcde4d21f21d9", "score": "0.6261259", "text": "void updateTaskStatus();", "title": "" }, { "docid": "7488de44a8798554770e66b923eee2a5", "score": "0.624417", "text": "StatusItem getStatus();", "title": "" }, { "docid": "7488de44a8798554770e66b923eee2a5", "score": "0.624417", "text": "StatusItem getStatus();", "title": "" }, { "docid": "7488de44a8798554770e66b923eee2a5", "score": "0.624417", "text": "StatusItem getStatus();", "title": "" }, { "docid": "86eb3f87dd3ef0f52338c6e58cf3e1b4", "score": "0.6236239", "text": "public abstract String checkStatus();", "title": "" }, { "docid": "5df4fef502daac236cc5412a4b68850e", "score": "0.61185503", "text": "public Bestelling.Status getStatus();", "title": "" }, { "docid": "ef09ca7be175ecae7fa1bba7822eba17", "score": "0.610683", "text": "abstract Status getStatus();", "title": "" }, { "docid": "3964e62719763e254d76d41ae83d48b7", "score": "0.60994214", "text": "TaskStatus getStatus();", "title": "" }, { "docid": "535ca8f6fc44c70eb9b1ef8afdaec1a1", "score": "0.6066082", "text": "public String executeCommandUpdateStatus(ActionContext context) {\n if (!(hasPermission(context, \"accounts-action-plans-edit\"))) {\n return (\"PermissionError\");\n }\n Exception errorMessage = null;\n Connection db = null;\n boolean status = false;\n ActionItemWork itemWork = null;\n ActionPhaseWork phaseWork = null;\n ActionPhaseWork nextPhaseWork = null;\n ActionItemWork nextItem = null;\n ActionPlanWork planWork = null;\n ActionItemWork oldItem = null;\n Organization orgDetails = null;\n boolean sendEmailForAllNewSteps = false;\n boolean sendEmailForNextStep = false;\n try {\n db = this.getConnection(context);\n\n String itemId = context.getRequest().getParameter(\"stepId\");\n String nextStepId = context.getRequest().getParameter(\"nextStepId\");\n String statusId = context.getRequest().getParameter(\"statusId\");\n\n String orgId = context.getRequest().getParameter(\"orgId\");\n orgDetails = new Organization(db, Integer.parseInt(orgId));\n context.getRequest().setAttribute(\"orgDetails\", orgDetails);\n\n if (itemId != null && Integer.parseInt(itemId) > 0) {\n itemWork = new ActionItemWork();\n itemWork.setBuildStep(true);\n itemWork.queryRecord(db, Integer.parseInt(itemId));\n phaseWork = new ActionPhaseWork(db, itemWork.getPhaseWorkId());\n planWork = new ActionPlanWork(db, phaseWork.getPlanWorkId());\n planWork.setBuildLinkedObject(true);\n //planWork.buildLinkedObject(db);\n planWork.buildPhaseWork(db);\n itemWork.setPlanWork(planWork);\n oldItem = new ActionItemWork();\n oldItem.setPlanWork(planWork);\n oldItem.queryRecord(db, itemWork.getId());\n\t\t\t\tif (Integer.parseInt(statusId) == ActionPlanWork.COMPLETED) {\n\t\t\t\t\titemWork.checkPreviousSteps(db, planWork);\n\t\t\t\t}\n if (statusId != null && Integer.parseInt(statusId) > 0) {\n itemWork.setStatusId(statusId);\n itemWork.setModifiedBy(this.getUserId(context));\n }\n\n if (nextStepId != null && Integer.parseInt(nextStepId) > 0) {\n nextItem = new ActionItemWork();\n nextItem.setBuildStep(true);\n nextItem.queryRecord(db, Integer.parseInt(nextStepId));\n nextItem.setPlanWork(planWork);\n if (nextItem.getPhaseWorkId() != itemWork.getPhaseWorkId()) {\n nextPhaseWork = new ActionPhaseWork(db, nextItem.getPhaseWorkId());\n nextPhaseWork.setPlanWork(planWork);\n nextPhaseWork.setBuildLinkedObject(true);\n nextPhaseWork.buildPhaseObject(db);\n nextPhaseWork.buildStepWork(db);\n if (nextPhaseWork != null && nextPhaseWork.getPhase().getRandom() && nextPhaseWork.noStepComplete()) {\n sendEmailForAllNewSteps = true;\n }\n }\n status = itemWork.updateStatus(db, nextItem);\n this.processUpdateHook(context, oldItem, itemWork);\n if (!sendEmailForAllNewSteps) {\n if (nextItem != null) {\n this.processUpdateHook(context, itemWork, nextItem);\n }\n }\n } else {\n status = itemWork.updateStatus(db, null);\n phaseWork.setBuildStepWork(true);\n phaseWork.setBuildPhase(true);\n phaseWork.queryRecord(db, itemWork.getPhaseWorkId());\n this.processUpdateHook(context, oldItem, itemWork);\n nextPhaseWork = phaseWork.getNextPhase(db);\n if (phaseWork.getPhase().getRandom() && phaseWork.allStepsComplete() && nextPhaseWork != null) {\n nextPhaseWork.setPlanWork(planWork);\n nextPhaseWork.setBuildLinkedObject(true);\n nextPhaseWork.buildStepWork(db);\n nextPhaseWork.buildPhaseObject(db);\n if (nextPhaseWork.getPhase().getRandom() && nextPhaseWork.noStepComplete()) {\n // random phase to random phase translation\n sendEmailForAllNewSteps = true;\n } else\n if (!nextPhaseWork.getPhase().getRandom() && nextPhaseWork.noStepComplete()) {\n // random phase to serial phase translation\n if (nextPhaseWork.getItemWorkList().size() > 0) {\n nextItem = (ActionItemWork) nextPhaseWork.getItemWorkList().get(0);\n nextItem.setPlanWork(planWork);\n nextItem.buildStep(db);\n nextItem.buildLinkedObject(db);\n this.processUpdateHook(context, itemWork, nextItem);\n }\n }\n }\n }\n }\n if (sendEmailForAllNewSteps) {\n if (nextPhaseWork != null && nextPhaseWork.getItemWorkList() != null) {\n Iterator iter = (Iterator) nextPhaseWork.getItemWorkList().iterator();\n while (iter.hasNext()) {\n nextItem = (ActionItemWork) iter.next();\n nextItem.setPlanWork(planWork);\n nextItem = new ActionItemWork(db, nextItem.getId());\n nextItem.buildStep(db);\n nextItem.buildLinkedObject(db);\n this.processUpdateHook(context, itemWork, nextItem);\n }\n }\n }\n String returnUrl = context.getRequest().getParameter(\"returnUrl\");\n context.getRequest().setAttribute(\"refreshUrl\", returnUrl);\n } catch (Exception e) {\n e.printStackTrace();\n context.getRequest().setAttribute(\"Error\", e);\n return (\"SystemError\");\n } finally {\n this.freeConnection(context, db);\n }\n boolean isAccountPopup = (context.getRequest().getParameter(\"popupType\") != null && \"inline\".equals(context.getRequest().getParameter(\"popupType\")));\n if (\"true\".equals(context.getRequest().getParameter(\"popup\")) && !isAccountPopup) {\n return \"UpdateStatusOK\";\n }\n return (executeCommandDetails(context));\n }", "title": "" }, { "docid": "c5179126b72605075264b8308b662783", "score": "0.60444796", "text": "Status getStatus();", "title": "" }, { "docid": "c5179126b72605075264b8308b662783", "score": "0.60444796", "text": "Status getStatus();", "title": "" }, { "docid": "c5179126b72605075264b8308b662783", "score": "0.60444796", "text": "Status getStatus();", "title": "" }, { "docid": "3474a3ecd48ce8d53d6364c2efafee08", "score": "0.6010504", "text": "public Status getStatus(){\n return localStatus;\n }", "title": "" }, { "docid": "ab888a6189d7da28546f120b4818cc17", "score": "0.5992675", "text": "public abstract Status status();", "title": "" }, { "docid": "11414d6a12e5b8a47bc912ceae23a81e", "score": "0.5971893", "text": "public void openUpdateStatus();", "title": "" }, { "docid": "0f1adcc2c0b238438fa930cbe3ae2923", "score": "0.59581316", "text": "Status status();", "title": "" }, { "docid": "0f1adcc2c0b238438fa930cbe3ae2923", "score": "0.59581316", "text": "Status status();", "title": "" }, { "docid": "cfe846f8cba716a61654e221f420610a", "score": "0.59400356", "text": "public boolean updateStatus(Connection db) throws SQLException {\n boolean commit = false;\n int count = 0;\n try {\n commit = db.getAutoCommit();\n if (commit) {\n db.setAutoCommit(false);\n }\n this.update(db);\n\n //Action Plan Work gets a new modified date when a step changes status\n ActionPhaseWork phaseWork = new ActionPhaseWork();\n phaseWork.setBuildStepWork(true);\n phaseWork.queryRecord(db, this.getPhaseWorkId());\n ActionPlanWork planWork = null;\n if (this.getPlanWork() != null) {\n planWork = this.getPlanWork();\n } else {\n planWork = new ActionPlanWork(db, phaseWork.getPlanWorkId());\n }\n planWork.setModifiedBy(this.getModifiedBy());\n\n //Take necessary action if this step allows skipping of previous steps\n if (allowSkipToHere) {\n //TODO: Add additional filters to restrict the size of the list\n ActionItemWorkList actionPlanSteps = new ActionItemWorkList();\n actionPlanSteps.setPlanWorkId(planWork.getId());\n actionPlanSteps.buildList(db);\n\n ActionItemWorkList skippedSteps = this.getSkippedSteps(actionPlanSteps);\n if (this.getPlanWork() == null || this.getPlanWork().getPhaseWorkList() == null || this.getPlanWork().getPhaseWorkList().size() == 0) {\n planWork.setBuildPhaseWork(true);\n planWork.buildPhaseWork(db);\n this.setPlanWork(planWork);\n }\n this.removeGlobalSteps(skippedSteps);\n skippedSteps.updateStatus(db, ActionPlanWork.SKIPPED);\n //action plan work current phase needs to be set\n planWork.setCurrentPhaseId(phaseWork.getActionPhaseId());\n }\n\n //reload the phase work for any changes\n phaseWork = new ActionPhaseWork();\n phaseWork.setBuildPhase(true);\n phaseWork.setBuildLinkedObject(true);\n phaseWork.setBuildStepWork(true);\n phaseWork.setPlanWork(planWork);\n phaseWork.queryRecord(db, this.getPhaseWorkId());\n //Take necessary action if this was the last step in the phase\n if (phaseWork.allStepsComplete()) {\n //Action Phase Work gets an EndDate when the last step of the phase has a valid status\n phaseWork.setStatusId(statusId);\n phaseWork.setModifiedBy(modifiedBy);\n phaseWork.setEndDate(\n new java.sql.Timestamp(\n new java.util.Date().getTime()));\n phaseWork.update(db);\n\n //The next Action Phase Work gets a StartDate when the last step of the previous phase has a valid status\n ActionPhaseWork nextPhase = phaseWork.getNextPhase(db);\n if (nextPhase == null) {\n //Last step of the last phase in the plan has been updated. Plan is complete\n planWork.setCurrentPhaseId(-1);\n } else {\n nextPhase.setModifiedBy(modifiedBy);\n nextPhase.setStartDate(\n new java.sql.Timestamp(\n new java.util.Date().getTime()));\n nextPhase.update(db);\n nextPhase.setPlanWork(planWork);\n nextPhase.buildStepWork(db);\n nextPhase.buildPhaseObject(db);\n if (nextPhase.getPhase().getRandom()) {\n nextPhase.buildStepWork(db);\n nextPhase.startRandomPhase(db);\n }\n if (phaseWork.getPhase().getRandom() && !nextPhase.getPhase().getRandom()\n && nextPhase.getItemWorkList() != null && nextPhase.getItemWorkList().size() > 0) {\n ActionItemWork nextStep = (ActionItemWork) nextPhase.getItemWorkList().get(0);\n nextStep.setStartDate(new java.sql.Timestamp(new java.util.Date().getTime()));\n nextStep.setPlanWork(planWork);\n nextStep.updateStatus(db);\n }\n //action plan work current phase needs to be set\n planWork.setCurrentPhaseId(nextPhase.getActionPhaseId());\n }\n }\n\n //Update the action plan work\n planWork.update(db);\n\n if (commit) {\n db.commit();\n }\n } catch (SQLException e) {\n if (commit) {\n db.rollback();\n }\n throw new SQLException(e.getMessage());\n } finally {\n if (commit) {\n db.setAutoCommit(true);\n }\n }\n return true;\n }", "title": "" }, { "docid": "1016538c11b47a5424e4bb1687b32eef", "score": "0.592146", "text": "@Test\n\tpublic void verifystatusAsScheduled() throws Exception{\n\t\tSoftAssert sa = new SoftAssert();\n\t\tAppElement lblStatusKA=new AppElement(OrderExecutionWidgetId.getWidgetId(\"frmOrderExecutionKA_lblStatusKA\"));;\n \tsa.assertEquals(lblStatusKA.getText(),\"SCHEDULED\");\n\t\tsa.assertAll();\n\t\t}", "title": "" }, { "docid": "9f139b3598c5786f966b304d97d01aac", "score": "0.59127295", "text": "public Status getStatus() {return status;}", "title": "" }, { "docid": "d5f949a93db0866d88fb331ed7844443", "score": "0.58916545", "text": "public void displayCurrentStatus();", "title": "" }, { "docid": "faeaad57a4d14b6e7cc1ed8406eb4128", "score": "0.58885604", "text": "@Override\r\n public synchronized void changeStatus(String login, Status status,\r\n String description) {\n\r\n }", "title": "" }, { "docid": "efbedc2963d8499fd8e20de3dba6ee5e", "score": "0.58829296", "text": "public interface WorkflowService extends Service\n{\n /**\n * retry n times until receiving an activity instance defined by the query\n * default is 5 times\n *\n * @see #activateNextActivityInstance(WorklistQuery query)\n */\n static final String ACTIVATE_NEXT_ACTIVITY_INSTANCE_RETRIES = \"Infinity.Engine.Tuning.Query.ActivateNextActivityInstance.Retries\";\n\n\n /**\n * If a synchronous interactive successor activity instance exists and can be activated\n * by the calling user, it will be immediately activated an returned.\n *\n * @see #activateNextActivityInstance(long)\n */\n int FLAG_ACTIVATE_NEXT_ACTIVITY_INSTANCE = 0x00000001;\n\n /**\n * Activates the interactive activity instance identified by the\n * <code>activityInstanceOID</code>.\n *\n * <p>Activating means:\n * <ul><li>Removing the activity instance from its original worklist.</li>\n * <li>Adding the activity instance to the logged-in user's worklist.</li>\n * <li>Setting the state of the activity instance to APPLICATION state.</li></ul>\n * </p>\n *\n * <p>State changes:\n * <ul><li>Activity state before: suspended, hibernated or application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: application, activity with application that provides asynchronous receive functionality: hibernated</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be activated.\n *\n * @return the {@link ActivityInstance} that was activated.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws AccessForbiddenException if the current user is not valid or is not\n * granted to execute the activity instance. Also thrown if the activity\n * instance is already terminated.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the current user is the one who worked on the previous workflow instance.\n *\n * @see #activateAndComplete\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n ActivityInstance activate(long activityInstanceOID)\n throws ConcurrencyException, ObjectNotFoundException, AccessForbiddenException;\n\n /**\n * Completes the interactive activity instance identified by the\n * <code>activityInstanceOID</code> on the behalf of the currently logged-in user.\n *\n * <p>State Changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: completed</li>\n * <li>Process state after: Completed if all activities are completed. Otherwise state does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be completed.\n * @param context the ID of the context on which the data mapping will be performed.\n * @param outData a map with the values of the out access points.\n *\n * @return the {@link ActivityInstance} that was completed.\n *\n * @throws ConcurrencyException if the activity instance is exclusively locked by another thread.\n * @throws IllegalStateChangeException if that state change is not permitted,\n * i.e. the activity is not active.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws InvalidValueException if one of the <code>outData</object> values to\n * be written is invalid, most probably as of a type conflict in case of\n * statically typed data.\n * @throws AccessForbiddenException if the current user is not allowed to complete the activity.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance and no {@link ActivityInstanceAttributes}\n * has been set before({@link WorkflowService#setActivityInstanceAttributes(ActivityInstanceAttributes)}).\n * @see #activateAndComplete(long, String, Map)\n * @see #complete(long, String, Map, int)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n ActivityInstance complete(long activityInstanceOID, String context, Map<String, ?> outData)\n throws ConcurrencyException, IllegalStateChangeException,\n ObjectNotFoundException, InvalidValueException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Completes the interactive activity instance identified by the\n * <code>activityInstanceOID</code> on the behalf of the currently logged-in user.\n *\n * <p>State Changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: completed</li>\n * <li>Process state after: Completed if all activities are completed. Otherwise state does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be completed.\n * @param context the ID of the context on which the data mapping will be performed.\n * @param outData a map with the values of the out access points.\n * @param flags Optional adjustment to some details of operation. Supported values are\n * {@link #FLAG_ACTIVATE_NEXT_ACTIVITY_INSTANCE}.\n *\n * @return A log describing the result of the invocation. Depends on the flags parameter.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws IllegalStateChangeException if that state change is not permitted,\n * i.e. the activity is not active.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws InvalidValueException if one of the <code>outData</object> values to\n * be written is invalid, most probably as of a type conflict in case of\n * statically typed data.\n * @throws AccessForbiddenException if the activity instance is\n * already terminated.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance and no {@link ActivityInstanceAttributes}\n * has been set before({@link WorkflowService#setActivityInstanceAttributes(ActivityInstanceAttributes)}).\n *\n * @see #complete(long, String, Map)\n * @see #activateAndComplete(long, String, Map)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n ActivityCompletionLog complete(long activityInstanceOID, String context, Map<String, ?> outData,\n int flags) throws ConcurrencyException, IllegalStateChangeException,\n ObjectNotFoundException, InvalidValueException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Activates and completes the interactive activity instance identified by the\n * <code>activityInstanceOID</code> on the behalf of the currently logged-in user.\n *\n * If the activity is activated to be immediately completed, this method is more\n * efficient than invoking activate(...) and complete(...) separately.\n *\n * @param activityInstanceOID the OID of the activity to be completed.\n * @param context the ID of the context on which the data mapping will be performed.\n * The value <code>null</code> will be interpreted as the default context.\n * @param outData a map with the values of the out access points.\n *\n * @return the {@link ActivityInstance} that was completed.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws InvalidValueException if one of the <code>outData</code> values to\n * be written is invalid, most probably as of a type conflict in case of\n * statically typed data.\n * @throws AccessForbiddenException if the current user is not valid or is not\n * granted to execute the activity instance. Also thrown if the activity\n * instance is already terminated.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the current user is the one who worked on the previous workflow instance\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance and no {@link ActivityInstanceAttributes}\n * has been set before({@link WorkflowService#setActivityInstanceAttributes(ActivityInstanceAttributes)}).\n *\n * @see #activate(long)\n * @see #complete(long, String, Map)\n * @see #activateAndComplete(long, String, Map, int)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n ActivityInstance activateAndComplete(long activityInstanceOID, String context,\n Map<String, ? > outData) throws ConcurrencyException, ObjectNotFoundException,\n InvalidValueException, AccessForbiddenException;\n\n /**\n * Activates and completes the interactive activity instance identified by the\n * <code>activityInstanceOID</code> on the behalf of the currently logged-in user.\n *\n * If the activity is activated to be immediately completed, this method is more\n * efficient than invoking activate(...) and complete(...) separately.\n *\n * @param activityInstanceOID the OID of the activity to be completed.\n * @param context the ID of the context on which the data mapping will be performed.\n * The value <code>null</code> will be interpreted as the default context.\n * @param outData a map with the values of the out access points.\n * @param flags Optional adjustment to some details of operation. Supported values are\n * {@link #FLAG_ACTIVATE_NEXT_ACTIVITY_INSTANCE}.\n *\n * @return A log describing the result of the invocation. Depends on the flags parameter.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws InvalidValueException if one of the <code>outData</object> values to\n * be written is invalid, most probably as of a type conflict in case of\n * statically typed data.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the current user is the one who worked on the previous workflow instance\n * @throws AccessForbiddenException if the current user is not valid or is not\n * granted to execute the activity instance. Also thrown if the activity\n * instance is already terminated.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance and no {@link ActivityInstanceAttributes}\n * has been set before({@link WorkflowService#setActivityInstanceAttributes(ActivityInstanceAttributes)}).\n * @see #activateAndComplete(long, String, Map)\n * @see #activate(long)\n * @see #complete(long, String, Map)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n ActivityCompletionLog activateAndComplete(long activityInstanceOID, String context,\n Map<String, ? > outData, int flags) throws ConcurrencyException, ObjectNotFoundException,\n InvalidValueException, AccessForbiddenException;\n\n /**\n * Retrieves all evaluated IN data mappings that match the provided application context\n * for the specified activity.\n *\n * @param activityInstanceOID the OID of the activity for which the data mappings are\n * to be retrieved.\n * @param context the application context for which the mappings are retrieved.\n * The value <code>null</code> will be interpreted as the default context.\n * @param id The ID of the data mapping to be retrieved.\n *\n * @return The retrieved value.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified\n * OID or there is no mapping with the given ID under the given context.\n *\n * @see #getInDataValues(long, String, Set)\n *\n * @since 3.1.2\n */\n // This method also checks data.readDataValues permission for the accessed data\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false)\n Serializable getInDataValue(long activityInstanceOID, String context, String id)\n throws ObjectNotFoundException;\n\n /**\n * Retrieves all evaluated IN data mappings that match the provided application context\n * for the specified activity.\n *\n * @param activityInstanceOID the OID of the activity for which the data mappings are\n * to be retrieved.\n * @param context the application context for which the mappings are retrieved.\n * The value <code>null</code> will be interpreted as the default context.\n * @param ids the set of data mapping IDs designating the values to be retrieved. If\n * <code>null</code> is passed, all IN data mappings for the context are\n * retrieved.\n *\n * @return A Map with corresponding (data mapping ID, data value)-pairs. Data values\n * are {@link java.io.Serializable}.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified\n * OID or not all mapping IDs can be resolved in the given context.\n *\n * @see #getInDataValue(long, String, String)\n *\n * @since 3.1.2\n */\n // This method also checks data.readDataValues permission for each accessed data\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false)\n Map<String, Serializable> getInDataValues(long activityInstanceOID, String context, Set<String> ids)\n throws ObjectNotFoundException;\n\n /**\n * Suspends the specified activity instance. It will be added to the same worklist\n * in which it was prior to activation, and the specified activity instance will be\n * set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n * @param outData the context data containing values of out access points to be stored.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws AccessForbiddenException if the activity instance is already terminated or is\n * currently processed by another user or the current user does not have the\n * required permission.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n *\n * @see #suspendToDefaultPerformer(long, String, Map)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n fixed={ExecutionPermission.Default.OWNER},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspend(long activityInstanceOID, ContextData outData)\n throws ObjectNotFoundException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Suspends the specified activity instance. It will be added to the worklist of the\n * default performer declared for the corresponding activity, and the specified\n * activity instance will be set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the activity instance is already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n *\n * @see #suspendToDefaultPerformer(long, String, Map)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToDefaultPerformer(long activityInstanceOID)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException;\n\n /**\n * Suspends the specified activity instance. It will be added to the worklist of the\n * default performer declared for the corresponding activity, and the specified\n * activity instance will be set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n * @param context the ID of the context on which the data mapping will be performed.\n * @param outData a map with values of out access points to be stored.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the activity instance is already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n *\n * @see #suspendToDefaultPerformer(long)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToDefaultPerformer(long activityInstanceOID, String context,\n Map<String, ? > outData) throws ObjectNotFoundException, ConcurrencyException,\n AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Suspends the specified activity instance. It will be added to the worklist of the\n * current user, and the specified activity instance will be set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n *\n * @see #suspendToUser(long, String, Map)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n fixed={ExecutionPermission.Default.OWNER},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToUser(long activityInstanceOID)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException;\n\n /**\n * Suspends the specified activity instance. It will be added to the worklist of the\n * current user, and the specified activity instance will be set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n * @param context the ID of the context on which the data mapping will be performed.\n * @param outData a map with values of out access points to be stored.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @see #suspendToUser(long)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToUser(long activityInstanceOID, String context, Map<String, ?> outData)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Suspends the specified activity instance. It will be added to the worklist of the\n * provided user, and the specified activity instance will be set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n * @param userOID the OID of the user.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the specified user is the one who worked on the previous workflow instance\n *\n * @see #suspendToUser(long, long, String, Map)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToUser(long activityInstanceOID, long userOID)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Suspends the specified activity instance. It will be added to the worklist of the\n * provided user, and the specified activity instance will be set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n * @param userOID the OID of the user.\n * @param context the ID of the context on which the data mapping will be performed.\n * @param outData a map with values of out access points to be stored.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the specified user is the one who worked on the previous workflow instance\n * @see #suspendToUser(long, long)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToUser(long activityInstanceOID, long userOID, String context,\n Map<String, ? > outData) throws ObjectNotFoundException, ConcurrencyException,\n AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Suspends the specified activity instance. It will be added to the worklist of the\n * provided performer, and the specified activity instance will be set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n * @param participant the ID of the performer.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n *\n * @see #suspendToParticipant(long, String, String, Map)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToParticipant(long activityInstanceOID, String participant)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException;\n\n /**\n * Suspends the specified activity instance. It will be added to the worklist of the\n * provided performer, and the specified activity instance will be set to SUSPENDED state.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity to be suspended.\n * @param participant the ID of the performer.\n * @param context the ID of the context on which the data mapping will be performed.\n * @param outData a map with values of out access points to be stored.\n *\n * @return the {@link ActivityInstance} that was suspended.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @see #suspendToParticipant(long, String)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToParticipant(long activityInstanceOID, String participant,\n String context, Map<String, ? > outData) throws ObjectNotFoundException,\n ConcurrencyException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Suspends the activity instance and, if the participant is not null, delegates it to the specified participant.\n *\n * <p>State changes:\n * <ul><li>Activity state before: application</li>\n * <li>Process state before: active, interrupted</li>\n * <li>Activity state after: suspended</li>\n * <li>Process state after: State does not change.</li></ul>\n * </p>\n *\n * @param activityInstanceOID the OID of the activity instance.\n * @param participant the participant (model participant, user or user group) to which the activity instance will be delegated.\n * @param outData the context data containing values of out access points to be stored.\n * @return the {@link ActivityInstance} that was suspended.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID or if the participant is not null\n * and could not be resolved to an actual user user group or model participant.\n * @throws AccessForbiddenException if the activity instance is already terminated or is\n * currently processed by another user or the current user does not have the\n * required permission or if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the passed participant is a user who worked on the previous workflow instance\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance suspendToParticipant(long activityInstanceOID, ParticipantInfo participant,\n ContextData outData) throws ObjectNotFoundException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Change the state of the specified activity instance to HIBERNATED.\n *\n * @param activityInstanceOID the OID of the activity to be hibernated.\n *\n * @return the {@link ActivityInstance} that was hibernated.\n *\n * @throws IllegalStateChangeException if that state change is not permitted,\n * i.e. the activity is already completed or aborted.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL})\n ActivityInstance hibernate(long activityInstanceOID)\n throws IllegalStateChangeException, ObjectNotFoundException;\n\n /**\n * Starts the process specified by the given <code>ID</code> using the provided data\n * and returns the OID of the newly created process instance.\n *\n * <p>State changes:\n * <ul><li>Process state after: active</li></ul>\n * </p>\n *\n * @param id The ID of the process to be started. If multiple models with different IDs\n * are deployed then the process definition id needs to be qualified with model id,\n * e.g. \"{modelId}processDefinitionId\"\n * @param data Contains data IDs as keyset and corresponding data values to be set\n * as values.\n * @param synchronously Determines whether the process will be started synchronously\n * or asynchronously.\n *\n * @return the {@link ProcessInstance} that was started.\n *\n * @throws ObjectNotFoundException if there is no process with the specified ID in the\n * active model or an invalid data id was specified.\n */\n @ExecutionPermission(id=ExecutionPermission.Id.startProcesses,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n ProcessInstance startProcess(String id, Map<String, ?> data, boolean synchronously)\n throws ObjectNotFoundException;\n\n\n @ExecutionPermission(id=ExecutionPermission.Id.startProcesses,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n ProcessInstance startProcess(String id, StartOptions options);\n\n /**\n * Spawns a process as subprocess of the specified process instance. The spawned\n * process executes asynchronously but has to be completed before the parent process is\n * able to complete.\n *\n * @param parentProcessInstanceOid\n * The oid of the process to spawn from.\n * @param spawnProcessID\n * The id of the process definition to spawn as a subprocess.\n * @param copyData\n * Defines if data of the parent process definition should be copied to the\n * spawned process.\n * @param data\n * Contains data IDs as keyset and corresponding data values to be set as\n * values.\n *\n * @return the {@link ProcessInstance} that was spawned.\n * @throws IllegalOperationException\n * if the process instance is not a case process instance, is not active or\n * if the process definition is from a different model.\n * @throws ObjectNotFoundException\n * if there is no process instance with the specified oid or if there is no\n * process definition with the specified id.\n * @throws ConcurrencyException\n * if a lock on transitions or process instances cannot be obtained.\n * This can happen while the process hierarchy is currently\n * locked because of case operations or subprocess creation.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.spawnSubProcessInstance,\n defaults={ExecutionPermission.Default.ALL})\n ProcessInstance spawnSubprocessInstance(long parentProcessInstanceOid,\n String spawnProcessID, boolean copyData, Map<String, ? > data)\n throws IllegalOperationException, ObjectNotFoundException, ConcurrencyException;\n\n /**\n * Spawns multiple processes as subprocesses of the specified process instance. The\n * spawned processes execute asynchronously but have to be completed before the parent\n * process is able to complete.\n *\n * @param parentProcessInstanceOid\n * The oid of the process to spawn from.\n * @param subprocessSpawnInfo\n * A List of {@link SubprocessSpawnInfo} holding information about the\n * subprocesses to be spawned.\n * @return A list of {@link ProcessInstance} that were spawned.\n * @throws IllegalOperationException\n * if the process instance is not a case process instance, is not active or\n * if the process definition is from a different model.\n * @throws ObjectNotFoundException\n * if there is no process instance with the specified oid or if there is no\n * process definition with the specified id.\n * @throws ConcurrencyException\n * if a lock on transitions or process instances cannot be obtained.\n * This can happen while the process hierarchy is currently\n * locked because of case operations or subprocess creation.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.spawnSubProcessInstance,\n defaults={ExecutionPermission.Default.ALL})\n List<ProcessInstance> spawnSubprocessInstances(long parentProcessInstanceOid,\n List<SubprocessSpawnInfo> subprocessSpawnInfo) throws IllegalOperationException,\n ObjectNotFoundException, ConcurrencyException;\n\n /**\n * Spawns a new root process and creates a link of type\n * {@link ProcessInstanceLinkType#SWITCH} to the specified process instance.<br>\n * Optionally existing data from the specified process instance can be copied to the\n * newly spawned process.\n * <p>\n * Please note that currently the specified process instance has to be aborted by\n * setting <code>abortProcessInstance</code> to <code>true</code>.\n *\n * @param processInstanceOid\n * The oid of the process to spawn from.\n * @param spawnProcessID\n * The id of the process definition to spawn as a new root process.\n * @param copyData\n * Defines if data of the parent process definition should be copied to the\n * spawned process.\n * @param data\n * Contains data IDs as keyset and corresponding data values to be set as\n * values.\n * @param abortProcessInstance\n * whether the originating process instance should be aborted. <b>Currently\n * has to be true</b>.\n * @param comment\n * Allows to specify a comment for the link that is created.\n * @return The {@link ProcessInstance} that was spawned.\n *\n * @throws IllegalOperationException\n * if the process instance is terminated or not a root process instance.\n * if the process instance and the process definition are from different models.\n * if the process instances process definition is the same as the specified process definition.\n * @throws ObjectNotFoundException\n * if the process instance for the specified oid or the process definition\n * for the specified process id is not found.\n * @throws InvalidArgumentException\n * if <code>abortProcessInstance</code> is false (currently not\n * implemented).\n * @throws ConcurrencyException\n * if a lock on process instances cannot be obtained.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.spawnPeerProcessInstance,\n defaults={ExecutionPermission.Default.ALL})\n public ProcessInstance spawnPeerProcessInstance(long processInstanceOid,\n String spawnProcessID, boolean copyData, Map<String, ? extends Serializable> data,\n boolean abortProcessInstance, String comment) throws IllegalOperationException,\n ObjectNotFoundException, InvalidArgumentException, ConcurrencyException;\n\n /**\n * Spawns a new root process and creates a link of type\n * {@link ProcessInstanceLinkType#SWITCH} to the specified process instance.<br>\n * Optionally existing data from the specified process instance can be copied to the\n * newly spawned process.\n * <p>\n * Please note that currently the specified process instance has to be aborted by\n * setting <code>abortProcessInstance</code> to <code>true</code>.\n *\n * @param processInstanceOid\n * The oid of the process to spawn from.\n * @param spawnProcessID\n * The id of the process definition to spawn as a new root process.\n * @param options\n * Options that controls how the spawning operation has to be performed.\n * @return The {@link ProcessInstance} that was spawned.\n *\n * @throws IllegalOperationException\n * if the process instance is terminated or not a root process instance.\n * if the process instance and the process definition are from different models.\n * if the process instances process definition is the same as the specified process definition.\n * @throws ObjectNotFoundException\n * if the process instance for the specified oid or the process definition\n * for the specified process id is not found.\n * @throws InvalidArgumentException\n * if <code>abortProcessInstance</code> is false (currently not\n * implemented).\n * @throws ConcurrencyException\n * if a lock on process instances cannot be obtained.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.spawnPeerProcessInstance,\n defaults={ExecutionPermission.Default.ALL})\n public ProcessInstance spawnPeerProcessInstance(long processInstanceOid,\n String spawnProcessID, SpawnOptions options) throws IllegalOperationException,\n ObjectNotFoundException, InvalidArgumentException, ConcurrencyException;\n\n /**\n * Creates a case process instance which groups the specified members as subprocesses.\n *\n * @param name\n * The name of the case.\n * @param description\n * A description for the case.\n * @param memberOids\n * The oids of the process instances which should become members of the case.\n * @return The case process instance.\n * @See {@link ProcessInstance#isCaseProcessInstance()}\n * @throws ObjectNotFoundException\n * if one of the process instances referenced by <code>memberOids</code> is\n * not found.\n * @throws IllegalOperationException\n * if <code>memberOids</code> contains a process instance which is not a\n * root process.\n * @throws InvalidArgumentException\n * if <code>memberOids</code> is empty or null.\n * @throws ConcurrencyException\n * if a lock on transitions or process instances cannot be obtained.\n * This can happen while the process hierarchy is currently\n * locked because of case operations or subprocess creation.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.createCase,\n defaults={ExecutionPermission.Default.ALL})\n ProcessInstance createCase(String name, String description, long[] memberOids)\n throws ObjectNotFoundException, IllegalOperationException, InvalidArgumentException, ConcurrencyException;\n\n /**\n * Adds the process instances referenced by the specified memberOids to the specified\n * case process instance.\n *\n * @param caseOid\n * The oid of the case process instance.\n * @param memberOids\n * The oids of the process instances which should become members of the case.\n * @return The case process instance.\n * @throws ObjectNotFoundException\n * if one of the process instances referenced by <code>memberOids</code> is\n * not found.\n * @throws IllegalOperationException\n * if <code>memberOids</code> contains a process instance which is not a\n * root process or is already a member of the case.\n * @throws AccessForbiddenException if the user is not the owner of the case.\n * @throws ConcurrencyException\n * if a lock on transitions or process instances cannot be obtained.\n * This can happen while the process hierarchy is currently\n * locked because of case operations or subprocess creation.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.modifyCase,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false)\n ProcessInstance joinCase(long caseOid, long[] memberOids)\n throws ObjectNotFoundException, IllegalOperationException, AccessForbiddenException, ConcurrencyException;\n\n /**\n * Removes the process instances referenced by the specified memberOids from the\n * specified case process instance.\n *\n * @param caseOid\n * The oid of the case process instance.\n * @param memberOids\n * The oids of the process instances which should be removed from the case.\n * @return The case process instance.\n * @throws ObjectNotFoundException\n * if one of the process instances referenced by <code>memberOids</code> is\n * not found.\n * @throws IllegalOperationException\n * if <code>memberOids</code> contains a process instance which is not a\n * root process or is not a member of the case.\n * @throws AccessForbiddenException\n * if the user is not the owner of the case.\n * @throws ConcurrencyException\n * if a lock on transitions or process instances cannot be obtained.\n * This can happen while the process hierarchy is currently\n * locked because of case operations or subprocess creation.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.modifyCase,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false)\n ProcessInstance leaveCase(long caseOid, long[] memberOids)\n throws ObjectNotFoundException, IllegalOperationException, AccessForbiddenException, ConcurrencyException;\n\n /**\n * Merges the specified source case process instances into the target case process instance\n * by adding all case members of the source case process instances as members of the target case process instance.\n *\n * @param targetCaseOid The target case process instance\n * @param sourceCaseOids The source case process instances.\n * @param comment Allows to specify a comment\n * @return The case process instance.\n * @throws ObjectNotFoundException\n * if one of the process instances referenced by <code>sourceCaseOids</code> is\n * not found.\n * @throws IllegalOperationException\n * if <code>sourceCaseOids</code> contains a process instance which is not a\n * case process instance.\n * if <code>sourceCaseOids</code> contains a process instance which is not active.\n * if <code>sourceCaseOids</code> contains a process instance which equals the <code>targetCaseOid</code>.\n * if <code>targetCaseOid</code> is not a case process instance.\n * @throws AccessForbiddenException\n * if the user is not the owner of the case.\n * @throws ConcurrencyException\n * if a lock on transitions or process instances cannot be obtained.\n * This can happen while the process hierarchy is currently\n * locked because of case operations or subprocess creation.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.modifyCase,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false)\n ProcessInstance mergeCases(long targetCaseOid, long[] sourceCaseOids, String comment)\n throws ObjectNotFoundException, IllegalOperationException, AccessForbiddenException, ConcurrencyException;\n\n /**\n * Delegates the case process instance to the specified participant.\n *\n * @param caseOid\n * The case process instance to delegate.\n * @param participant\n * The targetParticipant.\n * @return The case process instance.\n * @throws ObjectNotFoundException\n * if one of the process instances referenced by <code>caseOid</code> is not\n * found.\n * @throws IllegalOperationException\n * if <code>caseOid</code> is not a case process instance.\n * @throws AccessForbiddenException\n * if the user is not the owner of the case.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the specified user is the one who worked on the previous workflow instance\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n implied={ExecutionPermission.Id.delegateToDepartment})\n ProcessInstance delegateCase(long caseOid, ParticipantInfo participant)\n throws ObjectNotFoundException, IllegalOperationException, AccessForbiddenException;\n\n /**\n * Aborts the specified process instance and joins the data into the specified target\n * process instance. Existing data values of the target process instance are not\n * overwritten. Process attachments are merged.\n *\n * @param processInstanceOid\n * The oid of the process instance which should be aborted and joined into\n * the target process instance.\n * @param targetProcessInstanceOid\n * The oid of the process instance that should be the target of the join.\n * @param comment\n * Allows specifying a comment.\n * @return The target process instance.\n * @throws ObjectNotFoundException\n * if the process instance referenced by <code>processInstanceOid</code> or\n * <code>targetProcessInstanceOid</code> do not exist.\n * @throws IllegalOperationException\n * if the source and target are identical.<br>\n * if the source or target are not active.<br>\n * if the join target is a subprocess of the source process instance.<br>\n * if the source or target is a case process instance.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.joinProcessInstance,\n defaults={ExecutionPermission.Default.ALL})\n public ProcessInstance joinProcessInstance(long processInstanceOid,\n long targetProcessInstanceOid, String comment) throws ObjectNotFoundException, IllegalOperationException;\n\n /**\n * Aborts the specified activity instance, effectively aborting the whole process\n * instance hierarchy this activity instance belongs to.\n * <p/>\n * Aborting an activity instance is only allowed if the activity was modeled to be\n * abortable (@see Activity#isAbortable()}). Additionally it is required that the\n * aborting user is a valid performing participant for this activity.\n * <p/>\n * Behavior is equivalent to\n * {@link WorkflowService#abortActivityInstance(long, AbortScope)}\n * using <code>AbortScope.RootHierarchy</code>.\n * <p/>\n * Note: Abort is performed asynchronously.\n *\n * <p>State changes\n * <ul><li>Activity state before: suspended, application, interrupted, hibernated</li>\n * <li>Process state before: active, interrupted</li>\n * <li>State after:\n * <br><i>If abort scope is root hierarchy:</i> The state of the specified activity, its root process, all contained sub-processes and activities that are not yet completed changes to aborted.\n * <br><i>If abort scope is sub hierarchy:</i> The state of the specified activity changes to aborted. If activity instance is a subprocess then the state of contained subprocesses and activities also changes to aborted.\n * <br>If the last activity of the process is aborted and is not a subprocess then the process state will be set to completed.</li></ul>\n * </p>\n *\n * @param activityInstanceOID The OID of the activity instance to be aborted.\n *\n * @return The {@link ActivityInstance} that was aborted.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified\n * OID in the audit trail.\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the current user is not valid or is not granted\n * access to the activity instance. Also thrown if the activity instance is\n * already terminated or if the activity is not allowed to be aborted.\n *\n * @see AdministrationService#abortProcessInstance(long)\n * @see WorkflowService#abortActivityInstance(long, AbortScope)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.abortActivityInstances,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER})\n ActivityInstance abortActivityInstance(long activityInstanceOID)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException;\n\n /**\n * Aborts the specified activity instance, effectively aborting the whole process\n * instance hierarchy this activity instance belongs to.\n * <p/>\n * Aborting an activity instance is only allowed if the activity was modeled to be\n * abortable (see {@link Activity#isAbortable()}). Additionally it is required that the\n * aborting user is a valid performing participant for this activity.\n * <p/>\n * Note: Abort is performed asynchronously.\n *\n * <p>State changes\n * <ul><li>Activity state before: suspended, application, interrupted, hibernated</li>\n * <li>Process state before: active, interrupted</li>\n * <li>State after:\n * <br><i>If abort scope is root hierarchy:</i> The state of the specified activity, its root process, all contained sub-processes and activities that are not yet completed changes to aborted.\n * <br><i>If abort scope is sub hierarchy:</i> The state of the specified activity changes to aborted. If activity instance is a subprocess then the state of contained subprocesses and activities also changes to aborted.\n * <br>If the last activity of the process is aborted and is not a subprocess then the process state will be set to completed.</li></ul>\n * </p>\n *\n * @param activityInstanceOID The OID of the activity instance to be aborted.\n * @param abortScope The scope of abortion. You can either choose the current activity\n * or the entire process hierarchy.\n * <br/>If you have chosen <code>AbortScope.SubHierarchy</code> then the specified\n * activity instance is set to state <code>ActivityInstanceState.Aborting</code>.\n * The abort itself is performed asynchronously. If activity instance is a subprocess\n * then the complete subprocess hierarchy will be aborted.\n * <br/>If you have chosen <code>AbortScope.RootHierarchy</code> abortion is done\n * starting at the root process instance for specified activity instance. The\n * specified activity instance will be returned unchanged. The state of the\n * root process instance will be set to <code>ProcessInstanceState.Aborting</code>.\n * Abort itself will be performed asynchronously.\n *\n * @return The {@link ActivityInstance} that was aborted.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified\n * OID in the audit trail.\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws AccessForbiddenException if the current user is not valid or is not granted\n * access to the activity instance. Also thrown if the activity instance is\n * already terminated or if the activity is not allowed to be aborted.\n *\n * @see AdministrationService#abortProcessInstance(long)\n * @see WorkflowService#abortActivityInstance(long)\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.abortActivityInstances,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER})\n ActivityInstance abortActivityInstance(long activityInstanceOid,\n AbortScope abortScope) throws ObjectNotFoundException, ConcurrencyException,\n AccessForbiddenException;\n\n /**\n * Aborts the specified process instance. Depending on the scope, it will abort either\n * this process instance only (including eventual subprocesses) or the whole process\n * hierarchy starting with the root process.\n *\n * <p>State changes:\n * <ul><li>Process state before: active, interrupted</li>\n * <li>State after:\n * <br><i>If abort scope is root hierarchy:</i> The state of root process, all sub-processes and activities that are not yet completed changes to aborted.</li>\n * <br><i>If abort scope is sub hierarchy:</i> The state of the sub-process, all its subprocesses and activities that are not yet completed changes to aborted.\n * </li></ul>\n * </p>\n *\n * @param processInstanceOid The OID of the process instance to be aborted.\n * @param abortScope The scope of abortion. You can abort either the spawned process instance\n * or the entire process hierarchy.\n *\n * @return The {@link ProcessInstance} that was aborted.\n *\n * @throws ObjectNotFoundException if there is no process instance with the specified\n * OID in the audit trail.\n * @throws AccessForbiddenException if the current user is not valid or is not granted\n * access to abort the process instance.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.abortProcessInstances,\n scope=ExecutionPermission.Scope.processDefinition)\n ProcessInstance abortProcessInstance(long processInstanceOid,\n AbortScope abortScope) throws ObjectNotFoundException,\n AccessForbiddenException;\n\n /**\n * @deprecated\n *\n * Retrieves the active model.\n *\n * @return the active model.\n *\n * @throws ObjectNotFoundException if there is no active model.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.readModelData,\n defaults={ExecutionPermission.Default.ALL})\n DeployedModel getModel()\n throws ObjectNotFoundException;\n\n /**\n * Retrieves (parts of) the worklist of the currently logged-in user.\n *\n * @param query An instance of class {@link WorklistQuery} describing the requested\n * view on the worklist.\n *\n * @return An instance of {@link Worklist} making up the requested view on the\n * current user's worklist.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.readActivityInstanceData,\n scope=ExecutionPermission.Scope.workitem,\n defer=true,\n defaults={ExecutionPermission.Default.ALL},\n fixed={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n Worklist getWorklist(WorklistQuery query);\n\n /**\n * Activates the next activity instance from the given worklist query if any.\n *\n * @param worklist query.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the current user is the one who worked on the previous workflow instance\n *\n * @return the {@link ActivityInstance} that was activated.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.workitem,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n ActivityInstance activateNextActivityInstance(WorklistQuery query);\n\n /**\n * Activates the next activity instance after the specified one in the same process instance.\n * The activation is based on a given time frame between the completion of the current and the\n * instantiation of the next activity. There might occur scenarios where this method will not\n * be able to retrieve the next activity due to the runtime situation\n *\n * @param activityInstanceOID the OID of the last completed activity instance.\n *\n * @return the {@link ActivityInstance} that was activated.\n *\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the current user is the one who worked on the previous workflow instance\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defer=true,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n ActivityInstance activateNextActivityInstance(long activityInstanceOID)\n throws ObjectNotFoundException;\n\n /**\n * Activates the next activity instance for the specified process instance.\n * The activation is based on a given time frame between the completion of the current and the\n * instantiation of the next activity. There might occur scenarios where this method will not\n * be able to retrieve the next activity due to the runtime situation\n *\n * @param processInstanceOID the OID of the process instance.\n *\n * @return the {@link ActivityInstance} that was activated.\n *\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the current user is the one who worked on the previous workflow instance\n * @throws ObjectNotFoundException if there is no process instance with the specified OID.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defer=true,\n defaults={ExecutionPermission.Default.OWNER},\n changeable=false,\n administratorOverride=false)\n ActivityInstance activateNextActivityInstanceForProcessInstance(long processInstanceOID)\n throws ObjectNotFoundException;\n\n /**\n * Sets an OUT data path on a process instance as specified in the corresponding\n * process definition.\n *\n * @param processInstanceOID the OID of the process instance.\n * @param id the ID of the data path as defined in the model.\n * @param object the value to set on the data path.\n *\n * @throws ObjectNotFoundException if there is no process instance with the\n * specified OID, if there is no data path with the specified id or if the\n * underlying data is not found.\n * @throws InvalidValueException if the <code>object</object> to be written represents\n * an invalid value, most probably as of a type conflict in case of statically\n * typed data.\n *\n * @see #setOutDataPaths(long, Map)\n */\n // This method also checks data.modifyDataValues permission for the accessed data\n @ExecutionPermission(\n id=ExecutionPermission.Id.readProcessInstanceData,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n void setOutDataPath(long processInstanceOID, String id, Object object)\n throws ObjectNotFoundException, InvalidValueException;\n\n /**\n * Sets multiple OUT data paths on a process instance as specified in the corresponding\n * process definition.\n *\n * @param processInstanceOID the OID of the process instance.\n * @param values A map of (id, value) pairs to be set, where every ID has to designate\n * a valid data path as defined in the model.\n *\n * @throws ObjectNotFoundException if there is no process instance with the\n * specified OID, if there is no data path with the specified id or if the\n * underlying data is not found.\n * @throws InvalidValueException if one of the <code>values</object> to be written\n * represents is invalid, most probably as of a type conflict in case of\n * statically typed data.\n *\n * @see #setOutDataPath(long, String, Object)\n */\n // This method also checks data.modifyDataValues permission for each accessed data\n @ExecutionPermission(\n id=ExecutionPermission.Id.readProcessInstanceData,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n void setOutDataPaths(long processInstanceOID, Map<String, ?> values)\n throws ObjectNotFoundException, InvalidValueException;\n\n /**\n * Retrieves an IN data path on a process instance as specified in the corresponding\n * process definition.\n *\n * @param processInstanceOID the OID of the process instance.\n * @param id the ID of the data path as defined in the model.\n *\n * @return the value of the data path applied to the process instance.\n *\n * @throws ObjectNotFoundException if there is no process instance with the\n * specified OID, if there is no data path with the specified id or if the\n * underlying data is not found.\n *\n * @see #getInDataPaths(long, Set)\n */\n // This method also checks data.readDataValues permission for the accessed data\n @ExecutionPermission(\n id=ExecutionPermission.Id.readProcessInstanceData,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n Object getInDataPath(long processInstanceOID, String id)\n throws ObjectNotFoundException;\n\n /**\n * Retrieves multiple IN data paths from a process instance as specified in the\n * corresponding process definition.\n *\n * @param processInstanceOID the OID of the process instance.\n * @param ids the set of data path IDs designating the values to be retrieved. If\n * <code>null</code> is passed, all IN data paths for the process instance are\n * retrieved.\n *\n * @return the values of the data paths applied to the process instance.\n *\n * @throws ObjectNotFoundException if there is no process instance with the\n * specified OID, if there is no data path with the specified id or if the\n * underlying data is not found.\n *\n * @see #getInDataPath(long, String)\n */\n // This method also checks data.readDataValues permission for each accessed data\n @ExecutionPermission(\n id=ExecutionPermission.Id.readProcessInstanceData,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n Map<String, Serializable> getInDataPaths(long processInstanceOID, Set<String> ids)\n throws ObjectNotFoundException;\n\n /**\n * Delegates the specified activitiy instance to the default worklist of the\n * corresponding activity.\n *\n * @param activityInstanceOID the OID of the activity instance.\n *\n * @return the {@link ActivityInstance} that was delegated.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws AccessForbiddenException if the activity instance is already terminated.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance delegateToDefaultPerformer(long activityInstanceOID)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException;\n\n /**\n * Delegates the specified activity instance to a specific performer.\n *\n * @param activityInstanceOID the OID of the activity instance.\n * @param userOID the OID of the user to which the activity instance will be delegated.\n *\n * @return the {@link ActivityInstance} that was delegated.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws ObjectNotFoundException if there is no activity instance or user with the specified OIDs.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the specified user is the one who worked on the previous workflow instance\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance delegateToUser(long activityInstanceOID, long userOID)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Delegates the specified activity instance to a specific performer.\n *\n * @param activityInstanceOID the OID of the activity instance.\n * @param performer the ID of the performer to which the activity instance will be delegated.\n *\n * @return the {@link ActivityInstance} that was delegated.\n *\n * @throws ConcurrencyException if the same activity instance is being processed by another user.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws AccessForbiddenException if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance delegateToParticipant(long activityInstanceOID, String performer)\n throws ObjectNotFoundException, ConcurrencyException, AccessForbiddenException;\n\n /**\n * Delegates the activity instance to the specified participant as follows:\n * <ul>\n * <li>if the participant is null, then delegates the activity to the default performer.</li>\n * <li>if the participant is an instance of a UserInfo, then delegates the activity to the specified user.</li>\n * <li>if the participant is an instance of a UserGroupInfo, then delegates the activity to the specified user group.</li>\n * <li>if the participant is an instance of a ModelParticipantInfo, then delegates the activity to the specified model participant.</li>\n * </ul>\n * @param activityInstanceOID the OID of the activity instance.\n * @param participant the participant (model participant, user or user group) to which the activity instance will be delegated.\n * @return the {@link ActivityInstance} that was delegated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID or if the participant is not null\n * and could not be resolved to an actual user user group or model participant.\n * @throws AccessForbiddenException if the activity instance is already terminated or is\n * currently processed by another user or the current user does not have the\n * required permission or if the delegation target is not granted to execute\n * the activity instance or if the activity instance is already terminated.\n * @throws IllegalOperationException if the specified activity instance is a\n * quality assurance instance {@link QualityAssuranceState#IS_QUALITY_ASSURANCE}\n * and the specified user is the one who worked on the previous workflow instance\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.delegateToOther,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n implied={ExecutionPermission.Id.delegateToDepartment})\n ActivityInstance delegateToParticipant(long activityInstanceOID, ParticipantInfo participant)\n throws ObjectNotFoundException, AccessForbiddenException, InvalidArgumentException;\n\n /**\n * Retrieves the specified ActivityInstance.\n *\n * @param activityInstanceOID the OID of the activity instance.\n *\n * @return the {@link ActivityInstance}.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.readActivityInstanceData,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL},\n fixed={ExecutionPermission.Default.OWNER})\n ActivityInstance getActivityInstance(long activityInstanceOID)\n throws ObjectNotFoundException;\n\n /**\n * Retrieves the specified process instance.\n *\n * @param processInstanceOID the OID of the process instance.\n *\n * @return the {@link ProcessInstance}.\n *\n * @throws ObjectNotFoundException if there is no process instance with the specified OID.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.readProcessInstanceData,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n ProcessInstance getProcessInstance(long processInstanceOID)\n throws ObjectNotFoundException;\n\n /**\n * Process instances can declare or implement process interfaces. These process interfaces have\n * \"input\" and \"output\". \"input\" is represented by IN and INOUT parameters, \"output\" by OUT and INOUT parameters.\n *\n * This method allows to retrieve all \"output\" values for a specific process instance. This process instance\n * needs to be a terminated scope process instance which implements a process interface.\n *\n * @param processInstanceOID the OID of the process instance.\n *\n * @return map containing all \"output\" parameters defined in process interface of process instance. If the process instance does not implement any process interface the map will be empty.\n *\n * @throws ObjectNotFoundException if there is no process instance with the specified OID.\n * @throws AccessForbiddenException if the process instance is not completed, is no scope process instance or\n * the user does not have the permission to access this process.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.readProcessInstanceData,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n Map<String, Serializable> getProcessResults(long processInstanceOID)\n throws ObjectNotFoundException, AccessForbiddenException;\n\n /**\n * Binds an event handler to the specified activity instance.\n *\n * @param activityInstanceOID the OID of the activity instance.\n * @param eventHandler the specialized form of the event handler to bind.\n *\n * @return the {@link ActivityInstance}.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws BindingException in case of semantic binding errors.\n * @throws InvalidArgumentException in case eventHandler is null.\n *\n * @see #getActivityInstanceEventHandler\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.manageEventHandlers,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL}) // TODO: check if it should not be by default OWNER\n ActivityInstance bindActivityEventHandler(long activityInstanceOID, EventHandlerBinding eventHandler)\n throws ObjectNotFoundException, BindingException, InvalidArgumentException;\n\n /**\n * Binds an event handler to the specified process instance.\n *\n * @param processInstanceOID the OID of the process instance.\n * @param eventHandler the specialized form of the event handler to bind.\n *\n * @return the {@link ProcessInstance}.\n *\n * @throws ObjectNotFoundException if there is no process instance with the specified OID.\n * @throws BindingException in case of semantic binding errors.\n *\n * @see #getProcessInstanceEventHandler\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.manageEventHandlers,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n ProcessInstance bindProcessEventHandler(long processInstanceOID, EventHandlerBinding eventHandler)\n throws ObjectNotFoundException, BindingException;\n\n /**\n * Binds an event handler to the specified activity instance.\n *\n * @param activityInstanceOID the OID of the activity instance.\n * @param handler the ID of the event handler to bind.\n *\n * @return the {@link ActivityInstance}.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws BindingException in case of semantic binding errors.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.manageEventHandlers,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL}) // TODO: check if it should not be by default OWNER\n ActivityInstance bindActivityEventHandler(long activityInstanceOID, String handler)\n throws ObjectNotFoundException, BindingException;\n\n /**\n * Binds an event handler to the specified process instance.\n *\n * @param processInstanceOID the OID of the process instance.\n * @param handler the ID of the event handler to bind.\n *\n * @return the {@link ProcessInstance}.\n *\n * @throws ObjectNotFoundException if there is no process instance with the specified OID.\n * @throws BindingException in case of semantic binding errors.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.manageEventHandlers,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n ProcessInstance bindProcessEventHandler(long processInstanceOID, String handler)\n throws ObjectNotFoundException, BindingException;\n\n /**\n * Unbinds an event handler from the specified activity instance.\n *\n * @param activityInstanceOID the OID of the activity instance.\n * @param handler the ID of the event handler to unbind.\n *\n * @return the {@link ActivityInstance}.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n * @throws BindingException in case of semantic binding errors.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.manageEventHandlers,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL}) // TODO: check if it should not be by default OWNER\n ActivityInstance unbindActivityEventHandler(long activityInstanceOID, String handler)\n throws ObjectNotFoundException, BindingException;\n\n /**\n * Unbinds an event handler from the specified process instance.\n *\n * @param processInstanceOID the OID of the process instance.\n * @param handler the ID of the event handler to unbind.\n *\n * @return the {@link ProcessInstance}.\n *\n * @throws ObjectNotFoundException if there is no process instance with the specified OID.\n * @throws BindingException in case of semantic binding errors.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.manageEventHandlers,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n ProcessInstance unbindProcessEventHandler(long processInstanceOID, String handler)\n throws ObjectNotFoundException, BindingException;\n\n\n /**\n * Gets the binding state of an event handler for the specified activity instance.\n *\n * @param activityInstanceOID the OID of the activity instance.\n * @param handler the ID of the event handler.\n *\n * @return the {@link EventHandlerBinding}.\n *\n * @throws ObjectNotFoundException if there is no activity instance with the specified OID.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.manageEventHandlers,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL}) // TODO: check if it should not be by default OWNER\n EventHandlerBinding getActivityInstanceEventHandler(long activityInstanceOID, String handler)\n throws ObjectNotFoundException;\n\n /**\n * Gets the binding state of an event handler for the specified process instance.\n *\n * @param processInstanceOID the OID of the process instance.\n * @param handler the ID of the event handler.\n *\n * @return the {@link EventHandlerBinding}.\n *\n * @throws ObjectNotFoundException if there is no process instance with the specified OID.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.manageEventHandlers,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n EventHandlerBinding getProcessInstanceEventHandler(long processInstanceOID, String handler)\n throws ObjectNotFoundException;\n\n /**\n * Retrieves the possible targets for forward transitions starting from the specified activity instance.\n *\n * @param activityInstanceOid the oid of the activity instance from where the transition will be performed.\n * @param options search options, if null then TransitionOptions.DEFAULT will be used.\n * @param direction TODO\n * @return A list of possible transition targets.\n * @throws ObjectNotFoundException if there is no activity instance with the specified oid.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.readModelData,\n scope=ExecutionPermission.Scope.activity,\n defer=true,\n defaults={ExecutionPermission.Default.ALL})\n List<TransitionTarget> getAdHocTransitionTargets(long activityInstanceOid, TransitionOptions options, ScanDirection direction)\n throws ObjectNotFoundException;\n\n /**\n * Performs the transition from the specified activity instance to the specified target.\n *\n * @param activityInstanceOid the oid of the activity instance from where the transition will be performed.\n * @param target the transition target.\n * @param complete true if the activity instance specified should be completed, false if the activity should be aborted.\n * @return the activity instance from which the transition was performed.\n * @throws IllegalOperationException if the transition could not be performed because the specified TransitionTarget\n * did not originate from the specified activity instance, or the process instance containing the activity\n * instance has more than one active activity instance.\n * @throws AccessForbiddenException if the current user is not allowed to perform the ad-hoc transition, or the\n * activity instance was already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified oid.\n * @deprecated replaced with {@link #performAdHocTransition(TransitionTarget, boolean)}\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER})\n ActivityInstance performAdHocTransition(long activityInstanceOid, TransitionTarget target, boolean complete)\n throws IllegalOperationException, ObjectNotFoundException, AccessForbiddenException;\n\n /**\n * Performs the transition from the specified activity instance to the specified target.\n *\n * @param target the transition target.\n * @param complete true if the activity instance specified should be completed, false if the activity should be aborted.\n * @return a pair of activity instances, where the first is the activity instance from which the transition was performed\n * and the second is the activity instance that was created for the target activity.\n * @throws IllegalOperationException if the transition could not be performed because the specified TransitionTarget\n * did not originate from the specified activity instance, or the process instance containing the activity\n * instance has more than one active activity instance.\n * @throws AccessForbiddenException if the current user is not allowed to perform the ad-hoc transition, or the\n * activity instance was already terminated.\n * @throws ObjectNotFoundException if there is no activity instance with the specified oid.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.performActivity,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.OWNER})\n TransitionReport performAdHocTransition(TransitionTarget target, boolean complete)\n throws IllegalOperationException, ObjectNotFoundException, AccessForbiddenException;\n\n /**\n * Retrieves the list of process definitions that can be started by the current user.\n *\n * @return a List with {@link org.eclipse.stardust.engine.api.model.ProcessDefinition} objects.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.readModelData,\n defaults={ExecutionPermission.Default.ALL})\n List<ProcessDefinition> getStartableProcessDefinitions();\n\n /**\n * Retrieves information on the current user.\n *\n * @return the current user.\n */\n @ExecutionPermission\n User getUser();\n\n /**\n * Retrieves all permissions the current user has on this service.\n *\n * @return a list of permission ids.\n */\n @ExecutionPermission\n List<Permission> getPermissions();\n\n /**\n * Sets specific attributes of a process instance.\n * At the moment attributes has to be bound to a scope process instance.\n * <br/>\n * <br/>\n * Note: After a {@link ProcessInstanceAttributes} instance is applied to this method\n * it is discouraged to use this same instance again. Any new note which has been added\n * by the first use will be added again. In order to add new notes to a certain\n * process instance a fresh {@link ProcessInstance} has to be retrieved (e.g. by\n * {@link WorkflowService#getProcessInstance(long)}). Get a current copy of\n * {@link ProcessInstanceAttributes} by {@link ProcessInstance#getAttributes()}.\n *\n * @param attributes the container of attributes.\n *\n * @throws ObjectNotFoundException if there is no process instance with the specified OID.\n * @throws PublicException if the process instance is no scope process instance.\n * @throws InvalidArgumentException if attributes is null.\n */\n @ExecutionPermission(id=ExecutionPermission.Id.modifyAttributes,\n scope=ExecutionPermission.Scope.processDefinition,\n defaults={ExecutionPermission.Default.ALL})\n void setProcessInstanceAttributes(ProcessInstanceAttributes attributes)\n throws ObjectNotFoundException;\n\n /**\n * Sets attributes for an activity instance\n *\n * @param attributes - the attributes to set\n * @throws ObjectNotFoundException - if the activity instance specified by\n * {@link ActivityInstanceAttributes#getActivityInstanceOid()} could no be found.\n * @throws InvalidArgumentException - when a result is set ({@link ActivityInstanceAttributes#getQualityAssuranceResult()}\n * and the codes list({@link QualityAssuranceResult#getQualityAssuranceCodes()} contains a null element\n * @throws InvalidArgumentException - when the specified quality assurance {@link ActivityInstanceAttributes#getActivityInstanceOid()} instance is marked as\n * {@link ResultState#PASS_WITH_CORRECTION} or {@link ResultState#FAILED}, the corresponding activity for this activity instance\n * supplies error codes {@link IActivity#getQualityAssuranceCodes()} and no error code was supplied\n *\n */\n @ExecutionPermission(id=ExecutionPermission.Id.modifyAttributes,\n scope=ExecutionPermission.Scope.activity,\n defaults={ExecutionPermission.Default.ALL})\n void setActivityInstanceAttributes(ActivityInstanceAttributes attributes)\n throws ObjectNotFoundException, InvalidArgumentException;\n\n /**\n * Logs an audit trail event of type <code>LogCode.EXTERNAL</code>.\n * @param logType Set the type of log (info, warn, error etc.). Whereas the <code>Unknown</code> type is mapped to a warning.\n * @param contextType Set the context scope of the event\n * @param contextOid Oid of the runtime object (only used if context type is set to ProcessInstance or ActivityInstance)\n * @param message any message that should be logged\n * @param throwable any exception (or null) that should be appended to the message\n *\n * @exception ObjectNotFoundException if there is no runtime object with the specified OID\n */\n @ExecutionPermission(id=ExecutionPermission.Id.modifyAuditTrailStatistics)\n void writeLogEntry(LogType logType, ContextKind contextType, long contextOid,\n String message, Throwable throwable) throws ObjectNotFoundException;\n\n /**\n * Executes a {@link ServiceCommand} in a single engine transaction.\n *\n * If the service command implements <code>{@link Configurable}</code>, the following option may be provided:\n * <ul>\n * <li>\"<b>autoFlush</b>\" - automatically flushes the audit trail changes after every service call.\n * The value must be a <code>{@link Boolean}</code> object. The default value is <code>{@link Boolean#FALSE}</code>.\n * </ul>\n *\n * @param serviceCmd the {@link ServiceCommand} to be executed.\n * @return the result of the execution. May be <code>null</code> if the command has no result.\n * @throws ServiceCommandException that encapsulates any exception thrown during the execution of the command.\n */\n @ExecutionPermission\n Serializable execute(ServiceCommand serviceCmd) throws ServiceCommandException;\n\n /**\n * Creates a new business object instance if it does not exist.\n *\n * @param qualifiedBusinessObjectId the qualified id of the business object.\n * @param initialValue the initial value of the business instance (can be null).\n * @return the newly created business object instance.\n * @throws ObjectExistsException if BO already exists.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.modifyDataValues,\n scope=ExecutionPermission.Scope.data,\n defaults={ExecutionPermission.Default.ALL})\n BusinessObject createBusinessObjectInstance(String qualifiedBusinessObjectId, Object initialValue);\n\n /**\n * Updates the value of a business object instance.\n *\n * @param qualifiedBusinessObjectId the qualified id of the business object.\n * @param newValue the new value of the business instance (can be null).\n * @return the updated business object instance.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.modifyDataValues,\n scope=ExecutionPermission.Scope.data,\n defaults={ExecutionPermission.Default.ALL})\n BusinessObject updateBusinessObjectInstance(String qualifiedBusinessObjectId, Object newValue);\n\n /**\n * Deletes a business object instance.\n *\n * @param qualifiedBusinessObjectId the qualified id of the business object.\n * @param primaryKey the primary key identifying the instance to be deleted.\n */\n @ExecutionPermission(\n id=ExecutionPermission.Id.modifyDataValues,\n scope=ExecutionPermission.Scope.data,\n defaults={ExecutionPermission.Default.ALL})\n void deleteBusinessObjectInstance(String qualifiedBusinessObjectId, Object primaryKey);\n}", "title": "" }, { "docid": "6aaa9004d5f800db282430df746b2daf", "score": "0.5868548", "text": "IStatus getStatus();", "title": "" }, { "docid": "1da6f46036de1d4b084e184823829909", "score": "0.58530426", "text": "@ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n DomainArtifactsTabPanel.ArtifactRetrievalStatus getStatus() {\n return status;\n }", "title": "" }, { "docid": "af5040e5314d9ae83646a7b4513499e6", "score": "0.58509725", "text": "ubii.processing.ProcessingModuleOuterClass.ProcessingModule.Status getStatus();", "title": "" }, { "docid": "3340ec25228cc5d1877af69c069cf71f", "score": "0.58133787", "text": "QueryJobStatus getCurrentStatus();", "title": "" }, { "docid": "88fbbf7dcfba068aaafc306dbb9072fb", "score": "0.58072186", "text": "private void updateStatus() {\n var status = state.getStatus();\n if (status == Status.INFECTED) {\n return;\n }\n\n var newStatus = evaluateStatus();\n if (status != newStatus) {\n state.setStatus(newStatus);\n }\n }", "title": "" }, { "docid": "8df65ec20f5d7a688fbbcf5d73769c9c", "score": "0.580446", "text": "public interface ModifyStatusListener {\n\n void modifyStatusSuccess();\n\n void modifyStatusFailed(ErrorObj obj);\n\n void modifyStatusError(ErrorObj obj);\n}", "title": "" }, { "docid": "c708227f2fd2de1512bcfa8b4d9e33f6", "score": "0.5771702", "text": "private void changing_status(String btn) {\n\t\tSystem.out.println(\" btn pressed \"+btn);\r\n\t\tthreeTimesLAteReturnsController statusChange = (threeTimesLAteReturnsController) Controllers.getInstance().getController(ControllerType.THREE_LATE_RETURNS_CONTROLLER);\r\n\t\t\t\tLockResponse response = statusChange.changeStatus(btn);\r\n\t\t \t\t if (response.getText().equals(\"OK\")) {\r\n\t\t \t\t\t\tShowExtendDeadlineSuccessMessage(\"changing status is completed\");\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\r\n\t\t\t\r\n\t\t} \r\n\t}", "title": "" }, { "docid": "ffd652a1808e96149588cf49d5c19f6c", "score": "0.576421", "text": "@Override\n public int getStatus();", "title": "" }, { "docid": "59516c1b60cefc3afc04cd9890779741", "score": "0.5754946", "text": "@Test\n public void statusTest() {\n // TODO: test status\n }", "title": "" }, { "docid": "59516c1b60cefc3afc04cd9890779741", "score": "0.5754946", "text": "@Test\n public void statusTest() {\n // TODO: test status\n }", "title": "" }, { "docid": "59516c1b60cefc3afc04cd9890779741", "score": "0.5754946", "text": "@Test\n public void statusTest() {\n // TODO: test status\n }", "title": "" }, { "docid": "3671404ee3414c5a3808048a562d4600", "score": "0.57362914", "text": "public int changeStatus(SysJob job) throws SchedulerException;", "title": "" }, { "docid": "150f42b0f52a29ca915d4ad405779f17", "score": "0.5726389", "text": "public Status status() { return state.get().status(); }", "title": "" }, { "docid": "c78d9aea9110ffa398f2571667f0a6ff", "score": "0.5717593", "text": "boolean isSetStatus();", "title": "" }, { "docid": "c78d9aea9110ffa398f2571667f0a6ff", "score": "0.5717593", "text": "boolean isSetStatus();", "title": "" }, { "docid": "c78d9aea9110ffa398f2571667f0a6ff", "score": "0.5717593", "text": "boolean isSetStatus();", "title": "" }, { "docid": "de0ccfb96eb2af649b3d8014b1c5204b", "score": "0.570781", "text": "@Override\r\n\tpublic void onActiveWorkflows() {\n\r\n\t}", "title": "" }, { "docid": "8df03b4d1bdba69b36f18dd02f777465", "score": "0.5707344", "text": "public boolean getStatus(){ return status; }", "title": "" }, { "docid": "34a7916910a43e35e2c6595134a27e56", "score": "0.570012", "text": "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "8d9577647e50851d691d3192e52e7aaf", "score": "0.5678498", "text": "Status Status();", "title": "" }, { "docid": "27501d7fa87719d4bb69b45a6cd46052", "score": "0.56744707", "text": "@java.lang.Override\n public int getStatus() {\n return status_;\n }", "title": "" }, { "docid": "988f00bd7b7597e353b080f3ab1558e5", "score": "0.5668585", "text": "@Override\n public Status getStatus() {\n return getState();\n }", "title": "" }, { "docid": "fe52efe2be8f20cb4f1b5d3f4d6fdb3c", "score": "0.5662388", "text": "com.ververica.statefun.examples.shoppingcart.generated.ProtobufMessages.ItemAvailability.Status\n getStatus();", "title": "" }, { "docid": "ab269eb3b98d9798fad50ee7577d842c", "score": "0.5654497", "text": "public void setGetStatusResult(Status param){\n localGetStatusResultTracker = true;\n \n this.localGetStatusResult=param;\n \n\n }", "title": "" }, { "docid": "7799b9ccfab5ba89aa69a70904904800", "score": "0.56415087", "text": "public int getStatus() {\n return status;\n }", "title": "" }, { "docid": "f8716f3e7d01969ac43bfe85f24ea554", "score": "0.56396294", "text": "public static interface IToolStatusListener {\r\n \t\t\r\n \t\tvoid controllerStatusRequested(ToolStatus currentStatus, ToolStatus requestedStatus, List<DebugEvent> eventCollection);\r\n \t\t\r\n \t\tvoid controllerStatusRequestCanceled(ToolStatus currentStatus, ToolStatus requestedStatus, List<DebugEvent> eventCollection);\r\n \t\t\r\n \t\t/**\r\n \t\t * Should be fast!\r\n \t\t * \r\n \t\t * This method is called in the tool lifecycle thread\r\n \t\t * and blocks the queue.\r\n \t\t * \r\n \t\t * @param oldStatus\r\n \t\t * @param newStatus\r\n \t\t * @param eventCollection a collection, you can add you own debug events to.\r\n \t\t */\r\n \t\tvoid controllerStatusChanged(ToolStatus oldStatus, ToolStatus newStatus, List<DebugEvent> eventCollection);\r\n \t\t\r\n //\t\tvoid controllerBusyChanged(boolean isBusy, final List<DebugEvent> eventCollection);\r\n \t\t\r\n \t}", "title": "" }, { "docid": "cec2a7cc9345a131cdcdf08d5efc752b", "score": "0.56296", "text": "public StatusRequest getStatusRequest(){\n return localStatusRequest;\n }", "title": "" }, { "docid": "cec2a7cc9345a131cdcdf08d5efc752b", "score": "0.56296", "text": "public StatusRequest getStatusRequest(){\n return localStatusRequest;\n }", "title": "" }, { "docid": "4c0a9b5c499dded1caabfdf1c0e7f893", "score": "0.56290555", "text": "Status() {\n }", "title": "" }, { "docid": "1ab266804a27784248d8ec5a3a62d320", "score": "0.56275403", "text": "@ApiModelProperty(required = true, value = \"Tracks the lifecycle status of the product in the internal state machine of the processing system\")\n @NotNull\n public StatusEnum getStatus() {\n return status;\n }", "title": "" }, { "docid": "f9098999000e59b0bacc8fc554bad4be", "score": "0.56269056", "text": "static void status() {\n checkgit(\"status\");\n Branch currBranch = Utils.readObject(new File(FOLLOW_PATH),\n Branch.class);\n File notFollow = new File(NOTFOLLOW_PATH);\n List<String> branchNames = Utils.plainFilenamesIn(notFollow);\n String first = String.format(\"=== Branches ===%n*%s\",\n currBranch.getName());\n for (String branch : branchNames) {\n first = String.format(\"%s%n%s\", first, branch);\n }\n File addFile = new File(ADD_PATH);\n List<String> addFiles = Utils.plainFilenamesIn(addFile);\n Collections.sort(addFiles);\n String second = \"=== Staged Files ===\";\n for (String file : addFiles) {\n second = String.format(\"%s%n%s\", second, file);\n }\n List<String> remList = Utils.plainFilenamesIn(\n new File(REMOVED_PATH));\n String third = \"=== Removed Files ===\";\n for (String file : remList) {\n third = String.format(\"%s%n%s\", third, file);\n File update = new File(REMOVED_PATH, file);\n update.delete();\n }\n String fourth = \"=== Modifications Not Staged For Commit ===\";\n String fifth = \"=== Untracked Files ===\";\n System.out.println(String.format(\"%s%n%n%s%n%n%s%n%n%s%n%n%s%n\",\n first, second, third, fourth, fifth));\n }", "title": "" }, { "docid": "22a71ec450a818701720d4a637b8cdc5", "score": "0.56268203", "text": "public WorkflowStatus status() {\n return this.innerProperties() == null ? null : this.innerProperties().status();\n }", "title": "" }, { "docid": "0d37bd604696766e2b7cba4f281580d7", "score": "0.5625582", "text": "void controllerStatusChanged(ToolStatus oldStatus, ToolStatus newStatus, List<DebugEvent> eventCollection);", "title": "" }, { "docid": "8f7146e491ccf672fea1cc30445af56c", "score": "0.5624967", "text": "public interface TaskStatus {\n\n public String getActionText();\n\n public TaskStatus gotoDoing() throws NoSuchMethodException;\n\n public TaskStatus gotoToDo() throws NoSuchMethodException;\n\n public TaskStatus gotoDone() throws NoSuchMethodException;\n\n public TaskStatus gotoDefaultNextStatus() throws NoSuchMethodException;\n\n public TaskStatus getInstance();\n\n public String getLabel();\n}", "title": "" }, { "docid": "381e894d07ee0e62a1c06125b8efe5c5", "score": "0.5623588", "text": "@Override\n\t@Test @Ignore\n\tpublic void check_running_status_river() throws Exception {\n\t}", "title": "" }, { "docid": "1f50e0392ee5d494703cc1c69804fd6e", "score": "0.5623037", "text": "public boolean checkStatus(){\n \treturn status;\n }", "title": "" }, { "docid": "ec4807c30e86195f1727f8f35ba43207", "score": "0.5621487", "text": "public interface Status {\n /** created. */\n String CREATED = \"created\";\n /** already created. */\n String ALREADY_CREATED = \"already created\";\n }", "title": "" }, { "docid": "066fe953a63037b8eb3ead191c0cef64", "score": "0.5620531", "text": "public StatusValidation getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "6c3155f3eaa24d65e183d4a2f70037b6", "score": "0.561731", "text": "public Status getStatus() {\n return status;\n }", "title": "" }, { "docid": "510569a577faa7b86fe8c878b0cb8d7d", "score": "0.5614349", "text": "@Test(description = \"FP-TC-2769_Subject Status Change History - System status change displayed in the list\", groups = { \"\" })\n\t\tpublic void FPTC_2769_SystemStatusChangeDisplayedInHistoryListWithTheCorrespondingInformation() {\n\n\t\treportLog(\"1.1 Log in to Portal as a User from PR#1\");\n\t\tdashBoardPage = loginPage.loginInApplication(AT_ProdAdminOps, AT_Password);\n\t\tstudyNavigatorDashBoardPage = dashBoardPage.selectHorizontalUpperNavMenuItem(StudyDashBoardPage.class,\n\t\t\t\tConstants.NavigateText, Constants.StudyText);\n\t\tstudyNavigatorDashBoardPage.selectStudy(studyName,Constants.ATAssignedRater_10);\n\n\t\treportLog(\"1.2 Navigate to the Subject details page from Pr#6 by the user from Pr#2 \");\n\t\tstudyNavigatorDashBoardPage.searchSubject(subjectName__New_2103);\n\t\tstudyNavigatorDashBoardPage.clickOnSearchedSubject(subjectName__New_2103);\n\t\tsubjectDetailPage.verifyNewSubjectDetailPage();\n\n\t\treportLog(\"1.3verify control to open Subject history list is available on the page. \");\n\t\tsubjectDetailPage.verifyShowHistoryIconDisplayed();\n\n\t\treportLog(\"2.1Select the control to open Subject history modal window\");\n\t\tsubjectDetailPage.clickOnShowHistory();\n\n\t\treportLog(\"2.2Status Subject History modal window is opened. \");\n\t\tsubjectDetailPage.verifyHistoryPopUpDisplayed();\n\n\t\treportLog(\"2.3verify The record that the status is NEW and it was changed by System, is available\");\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_New, Constants.Status_System);\n\n\t\treportLog(\"2.4Close History Modal window Popup\");\n\t\tsubjectDetailPage.clickOnCloseButtonInHistoryModalPopUp();\n\n\t\tsubjectDetailPage.navigateBackToDashBoard();\n\t\tstudyNavigatorDashBoardPage = dashBoardPage.selectHorizontalUpperNavMenuItem(StudyDashBoardPage.class,\n\t\t\t\tConstants.NavigateText, Constants.StudyText);\n\n\t\treportLog(\"3.1. Navigate to the Subject details page from Pr#6 by the user from Pr#2 \");\n\t\tstudyNavigatorDashBoardPage.searchSubject(subjectName__Screened_2103);\n\t\tstudyNavigatorDashBoardPage.clickOnSearchedSubject(subjectName__Screened_2103);\n\t\tsubjectDetailPage.verifyNewSubjectDetailPage();\n\n\t\treportLog(\"3.2verify control to open Subject history list is available on the page. \");\n\t\tsubjectDetailPage.verifyShowHistoryIconDisplayed();\n\n\t\treportLog(\"3.3Select the control to open Subject history modal window\");\n\t\tsubjectDetailPage.clickOnShowHistory();\n\t\t\n\t\treportLog(\"3.4Status Subject History modal window is opened. \");\n\t\tsubjectDetailPage.verifyHistoryPopUpDisplayed();\n\n\t\treportLog(\"4.1 Records are sorted by date, the most recent on top. \");\n\t\tsubjectDetailPage.verifyDateAtTop();\n\n\t\treportLog(\n\t\t\t\t\"4.2The record that the status is Screened and it was changed by System, is available, record that the status is NEW and it was changed by System, is available\");\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_Screened, Constants.Status_System);\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_New, Constants.Status_System);\n\n\t\treportLog(\"4.3Close History Modal window Popup\");\n\t\tsubjectDetailPage.clickOnCloseButtonInHistoryModalPopUp();\n\n\t\tsubjectDetailPage.selectHorizontalUpperNavMenuItem(StudyDashBoardPage.class,\n\t\t\t\tConstants.NavigateText, Constants.StudyText);\n\n\t\treportLog(\"5.1.Navigate to the Subject details page from Pr#8 by the user from Pr#2 \");\n\t\tstudyNavigatorDashBoardPage.searchSubject(subjectName__Enrolled_2103);\n\t\tstudyNavigatorDashBoardPage.clickOnSearchedSubject(subjectName__Enrolled_2103);\n\t\tsubjectDetailPage.verifyNewSubjectDetailPage();\n\n\t\treportLog(\"5.2verify control to open Subject history list is available on the page. \");\n\t\tsubjectDetailPage.verifyShowHistoryIconDisplayed();\n\n\t\treportLog(\"6.1Select the control to open Subject history modal window\");\n\t\tsubjectDetailPage.clickOnShowHistory();\n\n\t\treportLog(\"6.2Status Subject History modal window is opened. \");\n\t\tsubjectDetailPage.verifyHistoryPopUpDisplayed();\n\n\t\treportLog(\"6.3Records are sorted by date, the most recent on top. \");\n\t\tsubjectDetailPage.verifyDateAtTop();\n\n\t\treportLog(\"6.4 The record that the status is Enrolled and it was changed by System, is available\"\n\t\t\t\t+ \"The record that the status is Screened and it was changed by System, is available\"\n\t\t\t\t+ \"The record that the status is NEW and it was changed by System, is available. \");\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_Enrolled, Constants.Status_System);\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_Screened, Constants.Status_System);\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_New, Constants.Status_System);\n\n\t\treportLog(\"6.5: Close History Modal window Popup\");\n\t\tsubjectDetailPage.clickOnCloseButtonInHistoryModalPopUp();\n\t\tsubjectDetailPage.selectHorizontalUpperNavMenuItem(StudyDashBoardPage.class,\n\t\t\t\tConstants.NavigateText, Constants.StudyText);\n\n\t\treportLog(\"7.1 Navigate to the Subject details page from Pr#9 by the user from Pr#2 \");\n\t\tstudyNavigatorDashBoardPage.searchSubject(subjectName__Completed_2103);\n\t\tstudyNavigatorDashBoardPage.clickOnSearchedSubject(subjectName__Completed_2103);\n\t\tsubjectDetailPage.verifyNewSubjectDetailPage();\n\n\t\treportLog(\"7.2 The control to open Subject history list is available on the page\");\n\t\tsubjectDetailPage.verifyShowHistoryIconDisplayed();\n\n\t\treportLog(\"8.1Select the control to open Subject history modal window\");\n\t\tsubjectDetailPage.clickOnShowHistory();\n\n\t\treportLog(\"8.2 Status Subject History modal window is opened.\");\n\t\tsubjectDetailPage.verifyHistoryPopUpDisplayed();\n\n\t\treportLog(\"8.3 Records are sorted by date, the most recent on top.\");\n\t\tsubjectDetailPage.verifyDateAtTop();\n\n\t\treportLog(\"8.9The record that the status is Completed and it was changed by System, is available. \"\n\t\t\t\t+ \"- The record that the status is Enrolled and it was changed by System, is available. \"\n\t\t\t\t+ \"- The record that the status is Screened and it was changed by System, is available.\"\n\t\t\t\t+ \"- The record that the status is NEW and it was changed by System, is available \");\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Complete_Status, Constants.Status_System);\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_Enrolled, Constants.Status_System);\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_Screened, Constants.Status_System);\n\t\tsubjectDetailPage.verifyHistoryModalWindowStatus(Constants.Status_New, Constants.Status_System);\n\t\t\n\t\treportLog(\"8.10: Close History Modal window Popup\");\n\t\tsubjectDetailPage.clickOnCloseButtonInHistoryModalPopUp();\n\n\t\treportLog(\"9: Logout application\");\n\t\tloginPage.logoutApplication();\n\n\t\treportLog(\"9.1: Verify user is logout\");\n\t\tloginPage.verifyUserLogout();\n\t}", "title": "" }, { "docid": "a9328e33bfa2a7fe84c002a25ff2ecda", "score": "0.5614202", "text": "@Override\r\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }", "title": "" }, { "docid": "f72a3beab557091887a1d5552168eb9d", "score": "0.56107205", "text": "public interface WorkflowConstants {\n public static final String DECISION_SUCCESS = \"SUCCESS\";\n public static final String DECISION_FAILURE = \"FAILURE\";\n\n }", "title": "" }, { "docid": "f1f1d420bde60c6a4c07b6ddbcf8cc71", "score": "0.56084377", "text": "public interface StatusListener {\r\n\t/**\r\n\t * Reports the listened status\r\n\t * @param status\r\n\t */\r\n\tvoid reportStatus(String status);\r\n}", "title": "" }, { "docid": "c823b613229409c701ae3324111209a8", "score": "0.55934656", "text": "private void logStatus()\n {\n try\n {\n logger.info(\"Scheduler meta info :\" + scheduler.getMetaData());\n List<JobExecutionContext> list = scheduler.getCurrentlyExecutingJobs();\n logger.info(\"Currently number of running jobs:\" + list.size());\n for (JobExecutionContext jobExecutionContext : list)\n {\n logger.info(\"Job running :\" + jobExecutionContext.getJobDetail().getFullName());\n }\n\n String[] groups = scheduler.getJobGroupNames();\n logger.info(\"Registered groups and jobs for each group\");\n for (String group : groups)\n {\n String[] jobnames = scheduler.getJobNames(group);\n logger.info(\"Jobnames for group :\" + group + \" -> \" + ToStringBuilder.reflectionToString(jobnames));\n }\n } catch (SchedulerException e)\n {\n //ignore\n }\n }", "title": "" }, { "docid": "66f5e079e934e7b329d4007e180fb939", "score": "0.5585222", "text": "private void status() {\n view.printCheckerboard(\n checkerboardManager.getCheckerboard().checkerboardToString());\n }", "title": "" }, { "docid": "4dc436f6e62ef5400e0201da1d1e11d5", "score": "0.55797726", "text": "public synchronized void updateStatus() {\n\t\tif (!GGEveApplicationRunner.getIsRunningOffline()) {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(\"http://api.eve-online.com/server/ServerStatus.xml.aspx\");\n\t\t\tHttpResponse response = null;\n\t\t\ttry {\n\t\t\t\tresponse = client.execute(request);\n\t\t\t} catch (ClientProtocolException e2) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te2.printStackTrace();\n\t\t\t} catch (IOException e2) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t\tint status = response.getStatusLine().getStatusCode();\n\t\t\tSystem.out.println(\"httpresponse error status: \" + status);\n\t\t\tif (status == HttpStatus.SC_OK) {\n\t\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\t\ttry {\n\t\t\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\t\tdb.reset();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSAXParserFactory spf = SAXParserFactory.newInstance();\n\t\t\t\t\t\tSAXParser sp = spf.newSAXParser();\n\t\t\t\t\t\tXMLReader reader = sp.getXMLReader();\n\t\t\t\t\t\tServerStatusEventHandler handler = new ServerStatusEventHandler();\n\t\t\t\t\t\treader.setContentHandler(handler);\n\t\t\t\t\t\tInputSource is = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tis = new InputSource(response.getEntity().getContent());\n\t\t\t\t\t\t} catch (IllegalStateException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treader.parse(is);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmyStatusInformation = handler.getServerStatus();\n\n\t\t\t\t\t} catch (SAXException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (ParserConfigurationException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cfb605665f75672799dde505d293b1d7", "score": "0.55776674", "text": "@Override\n\t\t\tpublic void currentStatus(List<? extends AlgorithmRunResult> runs) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "758adaf5c0981a049b54c09b4a575e95", "score": "0.5573851", "text": "@Override\n\t\t\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e4db5e6215e2596f59989599caee9389", "score": "0.5567422", "text": "public boolean getStatus(){\n return status;\n }", "title": "" }, { "docid": "6a73490f450bdf26dd330f0ceb6c2744", "score": "0.55662733", "text": "private StateChangeResponse processTaskStateChange(StateChangeRequest request){\n\t\ttry {\n\t\t\tif(request.getStates() != null){\n\t\t\t\tList<TaskState> states = request.getStates();\n\t\t\t\tfor (TaskState taskState : states) {\n\t\t\t\t\tString msgPrefix = \"Task(id=\"+ taskState.getId() +\") \";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlogger.info(msgPrefix +\"receive state(\"+ taskState.getState() +\") change request.\");\n\t\t\t\t\t\tCommanderTask task = (CommanderTask) getTask(taskState.getId(), false);\n\t\t\t\t\t\tif(task != null){\n\t\t\t\t\t\t\tswitch(TaskStatus.valueOf(taskState.getState())){\n\t\t\t\t\t\t\t\tcase RUNNING:\n\t\t\t\t\t\t\t\t\ttask.setStartedAt(taskState.getDate());\n\t\t\t\t\t\t\t\t\tlogger.info(msgPrefix + \" running on server(id=\" + task.getCurServerId()+\")\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase COMPLETED:\n\t\t\t\t\t\t\t\tcase ERROR:\n\t\t\t\t\t\t\t\tcase CANCELLED:\n\t\t\t\t\t\t\t\t\tcustomTaskRepository.updateTaskServer(taskState.getId(), null);\n\t\t\t\t\t\t\t\t\tif(taskState.getDate() != null){\n\t\t\t\t\t\t\t\t\t\ttask.setCompletedAt(taskState.getDate());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ttask.setTranscodingDuration(taskState.getTranscodingTime() == null ? 0 : taskState.getTranscodingTime());\n\t\t\t\t\t\t\t\t\ttask.setPostProcessingDuration(taskState.getPostProcessingTime() == null ? 0 : taskState.getPostProcessingTime());\n\t\t\t\t\t\t\t\t\tlogger.info(msgPrefix + taskState.getState()+\" on server(id=\" + task.getCurServerId()+\")\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tboolean updateFlag = true;\n\t\t\t\t\t\t\tif(task.getType() == 0){\n\t\t\t\t\t\t\t\t//if currently task type is M+N and current server id is same to the request's server id then update the task state\n\t\t\t\t\t\t\t\tif(task.getCurServerId().equals(request.getServerId())){\n\t\t\t\t\t\t\t\t\tlogger.info(\"change M+N task state to \" + taskState.getState());\n\t\t\t\t\t\t\t\t\ttask.setState(taskState.getState());\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tupdateFlag = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tlogger.info(\"change 1+1 task state to \" + taskState.getState());\n\t\t\t\t\t\t\t\ttask.setState(taskState.getState());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (updateFlag)\n\t\t\t\t\t\t\t\tupdateTaskProgress(task);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tlogger.error(msgPrefix + \"change state failed\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"process task state change request failed\", e);\n\t\t}\n\t\tStateChangeResponse response = new StateChangeResponse();\n\t\tresponse.setErrorCode(ActionErrorCode.SUCCESS);\n\t\treturn response;\n\t}", "title": "" }, { "docid": "233a2a452f49dbaaaf4c3d1938341a5e", "score": "0.55641836", "text": "boolean getStatus();", "title": "" }, { "docid": "233a2a452f49dbaaaf4c3d1938341a5e", "score": "0.55641836", "text": "boolean getStatus();", "title": "" }, { "docid": "4b1d33024aa49142792d712937bbd0fd", "score": "0.55636364", "text": "@Test\n public void testStatus() {\n URI lra = URI.create(invoke(REQUIRED_LRA_PATH, PUT, null, 200, ContextTckResource.EndPhase.ACCEPTED, 202));\n\n // verify that the resource was asked to complete and is in the state Completing\n String status = invoke(STATUS_PATH, HttpMethod.GET, lra, 202, ContextTckResource.EndPhase.SUCCESS, 200);\n lraTestService.waitForCallbacks(lra);\n assertEquals(testName.getMethodName() + \": participant is not completing\", ParticipantStatus.Completing.name(),\n status);\n\n // clear the EndPhase override data so that the next status request returns completed or compensated\n invoke(CLEAR_STATUS_PATH, HttpMethod.POST, lra, 200, ContextTckResource.EndPhase.SUCCESS, 200);\n\n // trigger a replay of the end phase\n lraTestService.waitForRecovery(lra);\n\n // and verify that the resource was asked to complete\n status = invoke(STATUS_PATH, HttpMethod.GET, lra, 200, ContextTckResource.EndPhase.SUCCESS, 200);\n assertEquals(testName.getMethodName() + \": participant is not completed\", ParticipantStatus.Completed.name(),\n status);\n }", "title": "" }, { "docid": "d5e3a1767607d858b90935e9860e2fc1", "score": "0.5563428", "text": "public void computeVersionStatus() {\n controller().updateVersionStatus(VersionStatus.compute(controller()));\n }", "title": "" }, { "docid": "dfa0363e1f0a17f0d3f5af8778fffdf1", "score": "0.5561959", "text": "private void doStatusUpdate() {\n \t\tIStatus[] status= new IStatus[] {\n \t\t\tfContainerStatus,\n \t\t\tisEnclosingTypeSelected() ? fEnclosingTypeStatus : fPackageStatus,\n \t\t\tfTypeNameStatus,\n \t\t\tfModifierStatus,\n \t\t\tfSuperClassStatus,\n \t\t\tfSuperInterfacesStatus\n \t\t};\n \n \t\t// the mode severe status will be displayed and the OK button enabled/disabled.\n \t\tupdateStatus(status);\n \t}", "title": "" }, { "docid": "987de2796c384383f8fbbfa4c8ea4f8f", "score": "0.55614334", "text": "private void newStateWaitForLaunch() {\n \t\tsetStatus(Status.WAIT_FOR_LAUNCH);\n \t}", "title": "" }, { "docid": "58f82925794658f4682e434de4a31288", "score": "0.5557792", "text": "private MsoSharedWorkspaceTaskStatus(int value) { this.value = value; }", "title": "" }, { "docid": "0c5bcd889ecd77385bf60b2c93ec19ef", "score": "0.5550248", "text": "public int checkStatus(){\n \n return 2;\n \n }", "title": "" }, { "docid": "1e73800e2317bffc06dfcdbf00aafd0f", "score": "0.55364865", "text": "public Status getStatus() {\r\n return status;\r\n }", "title": "" }, { "docid": "8ff324c0a5f71488241938bb0fd9e22e", "score": "0.5531826", "text": "private void updateDataDumpStatus() throws IOException {\n log.info(\"Changing status to completed\");\n //TODo change the status to complete based on etl request id\n if(isRequestFromSwagger){\n updateStatusInDB();\n }\n else{\n updateStatusInFile();\n }\n }", "title": "" }, { "docid": "10b8ba9953bf173ed7da9d09800f18dd", "score": "0.55273926", "text": "@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n\n }", "title": "" }, { "docid": "bf8a2114b7fa473e8ba66f3f12038f8f", "score": "0.552275", "text": "public int getStatus();", "title": "" }, { "docid": "bf8a2114b7fa473e8ba66f3f12038f8f", "score": "0.552275", "text": "public int getStatus();", "title": "" }, { "docid": "86df8a079286089f24493d92b4cf7f75", "score": "0.5520932", "text": "public int getStatus() \n \t{\n \t\treturn status;\n \t}", "title": "" }, { "docid": "ad6f33871a92f6bf63275b97e3ce7e45", "score": "0.5518811", "text": "public interface WorkflowDefinition{\n\n /**\n * Return a human readable name for this workflow definition.\n * \n * @return a human readable name for this workflow definition\n */\n String getName();\n\n /**\n * Return a version number for the current workflow definition. \n * <p>\n * Used when starting a new workflow instance. This workflow instance will live it's entire life on this version number. If you make changes that don't \n * break the backward compatibility, then you may keep the same version number and this workflow instance will start using the new definition after the \n * next deployment. But if you make changes that break the backward compatibility, you need to increase the version number, and then the instance won't \n * automatically migrate to the new definition.\n * \n * @return a version number for the current workflow definition\n */\n int getVersion();\n\n /**\n * This method will be called once per run-time when initializing the workflow definitions for the implementing classes. \n * <p>\n * Use the given factory like this:\n * <pre>\n * public void configureWorkflowDefinition( WorkflowFactory factory ){\n * \\/* @formatter:off *\\/\n * factory\n * .start()\n * .call( 1, \"helloWorldService\", \"sendHelloToCustomer\", \"${customerId}\" )\n * .end();\n * \\/* @formatter:on *\\/\n * }\n * </pre>\n * \n * @param factory factory provides the DSL API for constructing the workflow definition and is later used by the engine to convert the \n */\n void configureWorkflowDefinition( WorkflowFactory factory );\n \n /**\n * Return keep history boolean value (default value true) for the current workflow definition.\n * <p>\n * Value false is used for extremely long running workflows when history information in workflow_instances state and history field is growing too large.\n * When value is false then work_items with COMPLETED or CANCELLED status will be deleted. For workflow_instances state field only active token\n * will be kept in that field. For workflow_instances history field, only last completed, abort or aborted event will be kept in that field.\n * \n * @return true if workflow should keep history, false if not\n */\n default boolean getKeepHistory() {\n \treturn true;\n }\n\n /**\n * Returns archive period length in days for the workflow definition. Defaults to negative value which means archive is kept infinitely.\n * <p>\n * When workflow instance is fully executed or aborted, it's data is archived. Archived entries are stored for the given period.\n * When archive entry duration is over, it gets automatically deleted.\n *\n * @return archive period length in days for this workflow definition\n */\n default int getArchivePeriodLength() {\n return -1;\n }\n\n}", "title": "" }, { "docid": "ea4d533431e0eff0189a10ea2f053306", "score": "0.551293", "text": "@Value.Immutable\n@GithubStyle\n@JsonSerialize(as = ImmutableStatusEvent.class)\n@JsonDeserialize(as = ImmutableStatusEvent.class)\npublic interface StatusEvent extends BaseEvent, UpdateTracking {\n\n /** Status event id */\n @Nullable\n Long id();\n\n /** The Commit SHA. */\n @Nullable\n String sha();\n\n /** Full repository name. E.g. organization/repo-name */\n @Nullable\n String name();\n\n /** The optional link added to the status. */\n Optional<URI> targetUrl();\n\n /**\n * A string label to differentiate this status from the status of other systems. Example:\n * continuous-integration/jenkins Default: \"default\"\n */\n @Nullable\n String context();\n\n /** The optional human-readable description added to the status. */\n @Nullable\n Optional<String> description();\n\n /** The new state. Can be pending, success, failure, or error. */\n @Nullable\n String state();\n\n /** Related git commit */\n @Nullable\n CommitItem commit();\n\n /**\n * An array of branch objects containing the status' SHA. Each branch contains the given SHA, but\n * the SHA may or may not be the head of the branch. The array includes a maximum of 10 branches.\n */\n @Nullable\n List<Branch> branches();\n}", "title": "" }, { "docid": "9932db6b2d3b87e5103adf0854bda921", "score": "0.5511528", "text": "@Test\n public void test17() {\n TaskManagerEngine engine = new TaskManagerEngine(TaskManagerConfigurationBuilder.newBuilder().taskObjectManagerRegistry(TaskObjectManagerRegistryBuilder.newBuilder().addTaskObjectManager(\n TaskObjectManagerBuilder.<String, BusinessObject>newBuilder(BusinessObject.class).statusGraphs(StatusGraphsBuilder.<String>newBuilder().addNextStatusGraph(\"A\", \"ATask\").build())\n .addTaskChainCriteria(null, \"A\", \"(CHANGE1=>CHANGE2)=>(VERSA=>CHANGE3)\").build()).build()).taskDefinitionRegistry(\n TaskDefinitionRegistryBuilder.newBuilder().addTaskDefinition(TaskDefinitionBuilder.newBuilder(\"ATask\", new MultiUpdateStatusTaskService(\"A\")).build())\n .addTaskDefinition(TaskDefinitionBuilder.newBuilder(\"CHANGE1\", new ChangeCodeTaskService(\"VersB\")).build())\n .addTaskDefinition(TaskDefinitionBuilder.newBuilder(\"CHANGE2\", new ChangeCodeTaskService(\"VersA\")).build())\n .addTaskDefinition(TaskDefinitionBuilder.newBuilder(\"CHANGE3\", new ChangeCodeTaskService(\"VersC\")).build())\n .addTaskDefinition(TaskDefinitionBuilder.newBuilder(\"VERSA\", new VerifyCodeTaskService(\"VersA\")).build()).build()).build());\n\n BusinessObject businessObject = new BusinessObject();\n\n ITaskCluster taskCluster = engine.startEngine(businessObject);\n\n Assert.assertEquals(businessObject.getStatus(), \"A\");\n Assert.assertEquals(businessObject.getCode(), \"VersC\");\n Assert.assertTrue(taskCluster.isCheckArchived());\n }", "title": "" }, { "docid": "03904377e6217a14c372c741d3d27c6f", "score": "0.5509391", "text": "public int getStatus () {\n return status;\n }", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.55078363", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.55078363", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.55078363", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.55078363", "text": "int getStatus();", "title": "" }, { "docid": "7a8624dd557de4b6c00a35a550bbed24", "score": "0.55078363", "text": "int getStatus();", "title": "" } ]
132e20cbfebcfa69f04b6dc578ad5f4c
repeated .PropertyDat properties = 2;
[ { "docid": "c9ede4f42bffd690dd268e40ea63cdea", "score": "0.0", "text": "public protocol.BoomGameData.PropertyDat.Builder getPropertiesBuilder(\n int index) {\n return getPropertiesFieldBuilder().getBuilder(index);\n }", "title": "" } ]
[ { "docid": "31dffb16983aabae6faa28279d82a065", "score": "0.5916758", "text": "protocol.BoomGameData.PropertyDat getProperties(int index);", "title": "" }, { "docid": "48ec1ee89e3e378deecc6e4c2148ba9d", "score": "0.56453717", "text": "private void addPropertieForEntireSet(Properties props) {\n int i = 1;\n int index = 1;\n while (props.getProperty(\"Test\" + index) != null) {\n props.put(\"FailedTest\" + index, props.getProperty(\"Test\" + index));\n index++;\n }\n\n //add number of reruns\n if (!StringUtils.isEmpty(this.numberOfReruns)) {\n props.put(\"Reruns\" + i, this.numberOfReruns);\n }\n\n //add cleanup test\n if (!StringUtils.isEmpty(this.cleanupTest)) {\n props.put(\"CleanupTest\" + i, this.cleanupTest);\n }\n }", "title": "" }, { "docid": "6a4515da89a48c3dabfb364febf016d6", "score": "0.5590378", "text": "public void setProperties(ArrayOfDocumentProperty param){\n localPropertiesTracker = true;\n \n this.localProperties=param;\n \n\n }", "title": "" }, { "docid": "184cbac5788ca82ab6f66b0f5ab0140a", "score": "0.55218756", "text": "public int GetPropertyCount() {return 0;}", "title": "" }, { "docid": "e63844159080f07fb0a35057c8f07da7", "score": "0.5513268", "text": "protocol.BoomGameData.PropertyDatOrBuilder getPropertiesOrBuilder(\n int index);", "title": "" }, { "docid": "757bbcb689a7edfeaa1f85e9ea9d69a6", "score": "0.5458409", "text": "interface SpIterRepeatConstants\n{\n\n\tpublic static final String COUNT = \"repeatCount\" ;\n\tpublic static final int COUNT_DEF = 1 ;\n}", "title": "" }, { "docid": "5ec8c90dd8cf38cb226860abf8554c3d", "score": "0.54386646", "text": "public void buildAutoWithProperty(Properties carProperties);", "title": "" }, { "docid": "80f4cf356a40cf31e5ee737c16f110ac", "score": "0.54223835", "text": "@DISPID(164)\n @PropGet\n java.lang.Object getValues();", "title": "" }, { "docid": "8e3352a080358cb851cbe73e3cc769ee", "score": "0.5417088", "text": "public PredefinedPropSet(String... properties) {\n this.properties = properties;\n }", "title": "" }, { "docid": "86ad068375d13485bb847d0288df443c", "score": "0.5369405", "text": "@Override\r\n\tpublic int getPropertyCount() {\n\t\treturn 14;\r\n\t}", "title": "" }, { "docid": "f08fa76245973cfee10f0d67782a0586", "score": "0.5359047", "text": "int getPropertiesCount();", "title": "" }, { "docid": "f08fa76245973cfee10f0d67782a0586", "score": "0.5359047", "text": "int getPropertiesCount();", "title": "" }, { "docid": "f08fa76245973cfee10f0d67782a0586", "score": "0.5359047", "text": "int getPropertiesCount();", "title": "" }, { "docid": "f08fa76245973cfee10f0d67782a0586", "score": "0.5359047", "text": "int getPropertiesCount();", "title": "" }, { "docid": "9bd3fccab87b16ee8e9eb7162f43b876", "score": "0.5342756", "text": "private List<Property> createTestProperties(int count){\n List<Property> testProperties = new ArrayList<Property>();\n for (int i = 0; i < count; i++) {\n Property testProperty = new Property();\n testProperty.setName(\"test-property\"+i);\n testProperty.setOwner(\"test-owner\");\n testProperty.setValue(\"test-property\"+i+\"-value\");\n testProperties.add(testProperty);\n }\n try {\n return Lists.newArrayList(propertyRepository.indexAll(testProperties));\n } catch (Exception e) {\n propertyRepository.deleteAll(testProperties);\n return Collections.emptyList();\n }\n }", "title": "" }, { "docid": "8d7df8f23bb479f7d491ef373c42ee1b", "score": "0.5329238", "text": "public Property(){\n housesOwned = 0;\n colour = \"white\";\n }", "title": "" }, { "docid": "02a35f2223ff6c01f7e4a8daeb1ccdbe", "score": "0.53196317", "text": "public void getPropertyValues( Properties toFill );", "title": "" }, { "docid": "e867ba55ea10d42018241f2415947914", "score": "0.5223776", "text": "public ArrayOfDocumentProperty getProperties(){\n return localProperties;\n }", "title": "" }, { "docid": "3c4e568e555aa2a73546929d81489762", "score": "0.51910084", "text": "public void updateProperties() {\n \t}", "title": "" }, { "docid": "b8db0a1511c9720e107f31471ac2ccfc", "score": "0.51808906", "text": "Object properties();", "title": "" }, { "docid": "8570904f4faaa5cb22e9cb0a897aa555", "score": "0.51402485", "text": "public int getPropertyCount() {\n return 5;\n }", "title": "" }, { "docid": "6e4d89b98d0ca03857ace100c82c48f7", "score": "0.5116346", "text": "@Label(value = \"PROPERTIES\", usingIndexedPropertyOf = FileDescriptor.class)\npublic interface PropertyFileDescriptor extends FileDescriptor {\n\n @Relation(\"HAS\")\n public Set<PropertyDescriptor> getProperties();\n\n}", "title": "" }, { "docid": "3238b34f7382a58396ef90b3d03ece95", "score": "0.5111902", "text": "PropertyList createPropertyList();", "title": "" }, { "docid": "6a2dd66f1b55649c10e86bf783aebef0", "score": "0.5090384", "text": "public interface MultiProperty\r\n\t{\r\n\t\t/** \r\n\t\t * @return the number of this property name that is for property <propName>.x returns x \r\n\t\t * @param propName the property name to get the number of\r\n\t\t * @throws java.lang.IllegalArgumentException if the property name does not follow the <propName>.x name pattern\r\n\t\t */\r\n\t\tpublic int propertyNumber( String propName ) throws IllegalArgumentException;\r\n\r\n\t\t/** \r\n\t\t * @return the base property name for this multi-property that is the\r\n\t\t * name w/o the number suffix\r\n\t\t */\r\n\t\tpublic String getBasePropertyName();\r\n\r\n\t\t/** @return an iterator of the property names for this multi-property */\r\n\t\tpublic Iterator getPropertyNames();\r\n\r\n\t\t/** @return an iterator of the property names alphabetically sorted for this multi-property */\r\n\t\tpublic Iterator getSortedPropertyNames();\r\n\r\n\t\t/** @return an iterator of the property values for this multi-property */\r\n\t\tpublic Iterator getPropertyValues();\r\n\r\n\t\t/**\r\n\t\t * @return the value for this property from the full property name\r\n\t\t * @param propName the full property name <name>.x\r\n\t\t */\r\n\t\tpublic String getPropertyString( String propName );\r\n\r\n\t\t/**\r\n\t\t * @return the value for this property from the full property name\r\n\t\t * @param number suffix for the property name\r\n\t\t * @throws java.lang.IllegalArgumentException if the i negative\r\n\t\t */\r\n\t\tpublic String getPropertyString( int i ) throws IllegalArgumentException;\r\n\r\n\t\t/** @return the number of properties defined in this multi-property */\r\n\t\tpublic int getNumberOfProperties();\r\n\t}", "title": "" }, { "docid": "017199d876da36f0f176b1cc91eba009", "score": "0.50729656", "text": "@Override\n protected int getNumRepetitions() {\n return 1;\n }", "title": "" }, { "docid": "b03a0c251031d06ec9167774156c48dc", "score": "0.5046764", "text": "@Override\n\tpublic void updateProperties() {\n\n\t}", "title": "" }, { "docid": "9547e71e6b7dadb03e4dfe76ede1391f", "score": "0.5031099", "text": "public Property_type0[] getProperty(){\n return localProperty;\n }", "title": "" }, { "docid": "fc94e74557eae1bb0f0505d2074ae1da", "score": "0.50308055", "text": "public protocol.BoomGameData.PropertyDatOrBuilder getPropertiesOrBuilder(\n int index) {\n return properties_.get(index);\n }", "title": "" }, { "docid": "f53efef6db1b2e21785e5180e4c136d0", "score": "0.50292706", "text": "void init(Properties prop);", "title": "" }, { "docid": "c14a3ace322fdd66f82a75d1782bf6d9", "score": "0.5024865", "text": "protocol.BoomGameData.PropertyEnm getProperty();", "title": "" }, { "docid": "22bc052aecff0ce4a52883c8defac672", "score": "0.49819493", "text": "PropertySubstitutor() {}", "title": "" }, { "docid": "9ef39d46d25badd3ea6a12251bdd6b9f", "score": "0.4974161", "text": "private void populateData()\n {\n //populate application with dummy data.\n //create 20 property objects\n for(int i = 0; i < 20; i++) \n {\n //declare variables and assign its values\n String street = \"Street \" + i;\n String town = \"Town \" + i;\n String[] counties = {\"Sligo\", \"Dublin\", \"Donnegal\", \"Westmeath\", \"Meath\", \"Cork\"};\n String county = counties[i%6];\n Integer numBeds = i;\n Integer numBath = i * i;\n Integer numRecep = i * i + 1;\n Double price = 1000d * i;\n String[] types = {\"Detached\", \"Semi-Detached\", \"Bungalow\", \"Flat\"};\n String propType = types[i%4];\n //declare and instantiate a Property object\n Property newProperty = new Property(street, town, county,\n numBeds, numBath, numRecep, price, propType);\n \n //add a Property object into propertyList(ArrayList)\n propertyList.add(newProperty);\n }//end of for\n }", "title": "" }, { "docid": "aa52b5ae07c6bb28a8052bb3574d2955", "score": "0.4970675", "text": "protected abstract int getPropertiesDisplacement ();", "title": "" }, { "docid": "f3eac3079f5fa9661574ebec5bae9913", "score": "0.49633443", "text": "private PropertyDat(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "9c6b20c9b0d4ba59f40b1d06cee3be05", "score": "0.49536955", "text": "public DynaProperty[] getDynaProperties();", "title": "" }, { "docid": "f56d96c0e724cb1ed24ce4f10694ba28", "score": "0.49369088", "text": "private void addPropertiesForSpecificTests(Properties props){\n int j = 1;\n if(this.rerunSettingsModels != null && !this.rerunSettingsModels.isEmpty()) {\n for (RerunSettingsModel settings : this.rerunSettingsModels) {\n if (settings.getChecked()) {//test is selected\n props.put(\"FailedTest\" + j, settings.getTest());\n props.put(\"Reruns\" + j, String.valueOf(settings.getNumberOfReruns()));\n if (StringUtils.isEmpty(settings.getCleanupTest())){\n j++; continue;\n }\n props.put(\"CleanupTest\" + j, settings.getCleanupTest());\n j++;\n }\n }\n }\n }", "title": "" }, { "docid": "0b2a66afc6b2d04f1625e048813ade58", "score": "0.4932303", "text": "java.util.List<protocol.BoomGameData.PropertyDat> \n getPropertiesList();", "title": "" }, { "docid": "3217d0efada71da0698e36584d5f8ef7", "score": "0.4893902", "text": "private void initValues() {\n\n }", "title": "" }, { "docid": "e38c545dd220f4398d3d29ec9698bd9d", "score": "0.48825943", "text": "public void testAddProperty() {\n\t}", "title": "" }, { "docid": "769cefe4441eee0bc70982bd03567109", "score": "0.48760122", "text": "Properties createProperties();", "title": "" }, { "docid": "769cefe4441eee0bc70982bd03567109", "score": "0.48760122", "text": "Properties createProperties();", "title": "" }, { "docid": "40b55ef208b53119cb1392cfd36951a4", "score": "0.4873603", "text": "public AEDynamicProperties() {\r\n super(15);\r\n }", "title": "" }, { "docid": "fa4f8f283c109a19e972c3b1d29e056d", "score": "0.4861609", "text": "java.util.List<? extends protocol.BoomGameData.PropertyDatOrBuilder> \n getPropertiesOrBuilderList();", "title": "" }, { "docid": "bae43af75001648a9fd17a2367582c48", "score": "0.48532727", "text": "public void setProperties(ArrayOfNameValuePair param){\n localPropertiesTracker = true;\n \n this.localProperties=param;\n \n\n }", "title": "" }, { "docid": "961db0401da8ef3743b99a53023e4249", "score": "0.4845423", "text": "void addRepeat(Repeat repeat);", "title": "" }, { "docid": "183c595e439a2f36ae4cc2884e6fc5f2", "score": "0.4840008", "text": "public int[] GetProperties()\n\t{\n\t\treturn Properties;\n\t}", "title": "" }, { "docid": "a725475ee7d1f5276ff1defa29fb8121", "score": "0.48343626", "text": "public PropertyIdentifier(){\r\n\t\tthis.props = new Properties();\r\n\t}", "title": "" }, { "docid": "24e3ef2ec04202b5640f07a9e638cf8d", "score": "0.48304668", "text": "List<StringTriple> provideTriples(String propertyIri, int numberOfTriples);", "title": "" }, { "docid": "f645364b888ab2fa4f2adc50c6814b69", "score": "0.48218825", "text": "@DISPID(182)\n @PropGet\n int getExplosion();", "title": "" }, { "docid": "3f7211161b5787d337aaf97365cf13b1", "score": "0.48184198", "text": "public void setArrayOfDocumentProperty(ArrayOfDocumentProperty param){\n \n this.localArrayOfDocumentProperty=param;\n \n\n }", "title": "" }, { "docid": "f49f56c974966d056c078b029d1f77d9", "score": "0.48153105", "text": "public void setPropertySettings(ArrayOfDocumentPropertySetting param){\n localPropertySettingsTracker = true;\n \n this.localPropertySettings=param;\n \n\n }", "title": "" }, { "docid": "d23a8c68a1ef0b17d0aff60e42af5237", "score": "0.4813407", "text": "public void setArrayOfDocumentPropertySetting(ArrayOfDocumentPropertySetting param){\n \n this.localArrayOfDocumentPropertySetting=param;\n \n\n }", "title": "" }, { "docid": "eabe6dedffcc00ec9089661637674c95", "score": "0.48091066", "text": "@Fields({\n @Field(propName = \"id\", type = int.class, since = 1.2, until = 2.0),\n @Field(propName = \"name\" ,seriaName = \"stu_name\"),\n @Field(propName = \"desc\" , flags = FLAGS_MAIN_SCOPES_2 | FLAGS_NO_EXPOSE),\n @Field(propName = \"test\" , flags = FLAGS_MAIN_SCOPES_2 | FLAGS_NO_EXPOSE),\n})\npublic interface FlowItem extends com.heaven7.java.data.mediator.DataPools.Poolable {\n\n Property PROP_id = SharedProperties.get(\"int\", \"id\", 0);\n Property PROP_name = SharedProperties.get(\"java.lang.String\", \"name\", 0);\n Property PROP_desc = SharedProperties.get(\"java.lang.String\", \"desc\", 0);\n Property PROP_test = SharedProperties.get(\"java.lang.String\", \"test\", 0);\n\n int getId();\n\n FlowItem setId(int id1);\n\n String getName();\n\n FlowItem setName(String name1);\n\n String getDesc();\n\n FlowItem setDesc(String desc1);\n\n String getTest();\n\n FlowItem setTest(String test1);\n}", "title": "" }, { "docid": "aa2db322d377064b3b4c7413c1c278cc", "score": "0.47928655", "text": "public void setRepeat(byte repeat){\n this.repeat = repeat;\n }", "title": "" }, { "docid": "c4d664d417dd826ff7b89ba51ffbb96e", "score": "0.47913504", "text": "@Override\n public void init(Properties arg0) {\n\n }", "title": "" }, { "docid": "dec3b53f6ce49a8b4d06fc13182e9eb9", "score": "0.47796854", "text": "PEProperty createPEProperty();", "title": "" }, { "docid": "e3dbad29c477df8bb00ed052d07d72d5", "score": "0.4778735", "text": "public protocol.BoomGameData.PropertyDatOrBuilder getPropertiesOrBuilder(\n int index) {\n if (propertiesBuilder_ == null) {\n return properties_.get(index); } else {\n return propertiesBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "db9d4941272704f3652ea2addf8cb3f1", "score": "0.47623473", "text": "@Fields({\n @Field(propName = \"id\", seriaName = \"_id\", since = 1.1, until = 1.5),\n @Field(propName = \"test\", flags = FieldFlags.FLAGS_MAIN_SCOPES_2 &~ FieldFlags.FLAG_GSON_PERSISTENCE)\n})\npublic interface GsonTest extends DataPools.Poolable {\n\n Property PROP_id = SharedProperties.get(String.class.getName(), \"id\", 0);\n Property PROP_test = SharedProperties.get(String.class.getName(), \"test\", 0);\n\n GsonTest setId(String id1);\n\n String getId();\n\n GsonTest setTest(String test1);\n\n String getTest();\n}", "title": "" }, { "docid": "a4355a91d0a81a79c8762510c4b09e60", "score": "0.4761918", "text": "Vars createVars();", "title": "" }, { "docid": "ee9e5ecd12bd354131510ad89461d542", "score": "0.47607586", "text": "public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException {\n\t\tA obj =new A();\n\t\tClass cls = obj.getClass(); // Data + Meta\n\t\t//Class cls = A.class; // Meta \n\t\tField fields []=cls.getDeclaredFields();\n\t\tint privateCount = 0;\n\t\tSystem.out.println(fields.length);\n\t\tSystem.out.println(\"Before Loop \"+obj);\n\t\tfor(Field field : fields){\n\t\t\tif(Modifier.isPrivate(field.getModifiers())){\n\t\t\t\tfield.setAccessible(true);\n\t\t\t\tfield.set(obj, privateCount);\n\t\t\t\tprivateCount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Private Count is \"+privateCount);\n\t\tSystem.out.println(\"After Loop \"+obj);\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "bc136d91611381c385410e770730e506", "score": "0.47594064", "text": "default void init(Properties properties) {\n }", "title": "" }, { "docid": "98671e0945d81e09010d4646f505a9e4", "score": "0.47361252", "text": "public protocol.BoomGameData.PropertyDat.Builder addPropertiesBuilder(\n int index) {\n return getPropertiesFieldBuilder().addBuilder(\n index, protocol.BoomGameData.PropertyDat.getDefaultInstance());\n }", "title": "" }, { "docid": "eb645a828b37e9e73d6090a493db7f19", "score": "0.47357354", "text": "public void setProperties(Properties props);", "title": "" }, { "docid": "3bfdaf34a5c49819fae7d70e5ed7d1a6", "score": "0.4727971", "text": "public void setProperties(Properties properties);", "title": "" }, { "docid": "48d8e482889d49ba61cd2a5f08df9042", "score": "0.47256666", "text": "int getPropertyCount() {\n return properties.length;\n }", "title": "" }, { "docid": "7237604f14da420cc57bb833def2429b", "score": "0.47173166", "text": "public void setProperties(Properties properties) {\n }", "title": "" }, { "docid": "03acacd1742e69b4139e4a4b20402d8d", "score": "0.47036013", "text": "public protocol.BoomGameData.PropertyDat.Builder addPropertiesBuilder() {\n return getPropertiesFieldBuilder().addBuilder(\n protocol.BoomGameData.PropertyDat.getDefaultInstance());\n }", "title": "" }, { "docid": "c6183dd65ea0f9c3c308907339df8dda", "score": "0.46949372", "text": "@DISPID(1111)\n @PropGet\n java.lang.Object getXValues();", "title": "" }, { "docid": "0258850997efd31b5833573c579b7c6f", "score": "0.46930078", "text": "public protocol.BoomGameData.PropertyDat getProperties(int index) {\n return properties_.get(index);\n }", "title": "" }, { "docid": "2dbb4928f79ab39af4dd6d0f3b806631", "score": "0.46890703", "text": "public void setDocumentArrayProperty(DocumentArrayProperty param){\n \n this.localDocumentArrayProperty=param;\n \n\n }", "title": "" }, { "docid": "3e67c75d7cbadbeadaf2f01bbedc7fa1", "score": "0.46885234", "text": "void setIndividuals(int no_individuals)\n/* */ {\n/* 96 */ this.phenotype = new Number[no_individuals];\n/* 97 */ this.num_individuals = no_individuals;\n/* 98 */ this.breed = new String[no_individuals];\n/* 99 */ Logger.getAnonymousLogger().info(\"there are \" + no_individuals + \" individuals\");\n/* */ }", "title": "" }, { "docid": "fb832ffff4ddce7cf976444270d2c224", "score": "0.4686122", "text": "@Test\r\n public void testReadDupProps() throws Exception {\r\n StringBuilder propBuilder = new StringBuilder();\r\n propBuilder.append(\"duplication.1=abc.duracloud.org\\n\");\r\n propBuilder.append(\"duplication.2=def.duracloud.org\\n\");\r\n propBuilder.append(\"duplication.3.host=xyz.duracloud.org\\n\");\r\n propBuilder.append(\"duplication.3.spaces=space-1,space-2,space-3\\n\");\r\n\r\n Properties props = new Properties();\r\n props.load(new StringReader(propBuilder.toString()));\r\n\r\n DuplicationPropReader propReader = new DuplicationPropReader();\r\n\r\n Map<String, String> dupHosts = propReader.readDupProps(props);\r\n assertNotNull(dupHosts);\r\n assertEquals(3, dupHosts.size());\r\n assertEquals(DuplicationPropReader.ALL_SPACES,\r\n dupHosts.get(\"abc.duracloud.org\"));\r\n assertEquals(DuplicationPropReader.ALL_SPACES,\r\n dupHosts.get(\"def.duracloud.org\"));\r\n assertEquals(\"space-1,space-2,space-3\",\r\n dupHosts.get(\"xyz.duracloud.org\"));\r\n }", "title": "" }, { "docid": "89a15f73308bb7ee5dba80642489592d", "score": "0.46768177", "text": "public static interface Repetition {\n\t\tExpression get(int index);\n\t}", "title": "" }, { "docid": "2c780b85daac33aa6b559148e4a5660a", "score": "0.46762612", "text": "private void initValues() {\n }", "title": "" }, { "docid": "5c09c9521145510afbe14f57855807bc", "score": "0.46754935", "text": "private PropertyUpdateRep(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "57545ed4e7a21d128a8bea14b6381759", "score": "0.4670568", "text": "public interface IWSConstantKeys {\n\n /**\n * Constant attribute that represents the name of the property <code>IWS001</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_001 = \"IWS001\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS002</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_002 = \"IWS002\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS003</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_003 = \"IWS003\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS004</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_004 = \"IWS004\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS005</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_005 = \"IWS005\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS006</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_006 = \"IWS006\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS007</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_007 = \"IWS007\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS008</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_008 = \"IWS008\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS009</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_009 = \"IWS009\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS010</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_010 = \"IWS010\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS011</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_011 = \"IWS011\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS012</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_012 = \"IWS012\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS013</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_013 = \"IWS013\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS014</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_014 = \"IWS014\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS015</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_015 = \"IWS015\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS016</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_016 = \"IWS016\";\n \n /**\n * Constant attribute that represents the name of the property <code>IWS017</code> belonging to the file integra_xx_YY.properties.\n */\n String IWS_017 = \"IWS017\";\n \n}", "title": "" }, { "docid": "f81a4ba9237fcc7bd7a9074ba878bcff", "score": "0.46692312", "text": "private SCUsePropsRet() {}", "title": "" }, { "docid": "494972b9cddb02ee634a19c93eb514a7", "score": "0.46650472", "text": "public AdditionCombiner(){\n super();\n DiscreteStepProperty countProperty = new DiscreteStepProperty(\"InputCount\");\n countProperty.setMin(2.0);\n countProperty.setMax(6.0);\n countProperty.setStep(1.0);\n countProperty.setValue(2.0);\n properties.put(\"InputCount\", countProperty);\n }", "title": "" }, { "docid": "76c3b0d7bfa5d32cd48504efd97a9544", "score": "0.46495453", "text": "public void propertyGroup(String group) {\n }", "title": "" }, { "docid": "f6eacdf21e42bd1326e87872fff24638", "score": "0.4643496", "text": "public void setProperty(Property_type0[] param){\n \n validateProperty(param);\n\n localPropertyTracker = param != null;\n \n this.localProperty=param;\n }", "title": "" }, { "docid": "1b16a66c5be4d0e59bd1ed4a8ab4e33c", "score": "0.4641087", "text": "protected void validateProperty(Property_type0[] param){\n \n }", "title": "" }, { "docid": "e280e9a70dcc19970d6170689ade80a4", "score": "0.46394685", "text": "@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}", "title": "" }, { "docid": "11d432547350f0e4a93c71503014266f", "score": "0.4636597", "text": "public void setDocumentProperty(DocumentProperty[] param){\n \n validateDocumentProperty(param);\n\n localDocumentPropertyTracker = true;\n \n this.localDocumentProperty=param;\n }", "title": "" }, { "docid": "74a63035178e3abcddfbba61ae2978c9", "score": "0.46362787", "text": "public int addProperty(Property prop) {\r\n\t\tint index = negaIndex + 1;\r\n\t\t\r\n\t\tif(index >= this.MAX_PROPERTY)\r\n\t\t\treturn -1;\r\n\t\t\r\n\t\tthis.properties[index] = new Property(prop);\r\n\t\t\r\n\t\tnegaIndex = index;\r\n\t\treturn index;\r\n\t}", "title": "" }, { "docid": "53cb4c671c8f08cc74200249e4cf552a", "score": "0.46361735", "text": "public void addProperty(Property p){\n content.add(p);\n }", "title": "" }, { "docid": "28923f31e5c713db9128996c2352f125", "score": "0.46318737", "text": "int getPropertyBonus();", "title": "" }, { "docid": "b57d31b4ccd31b367a0e9f658c6b8c82", "score": "0.46275973", "text": "private RepeatedTest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "ec67c9d43234cd58a6cfeb7f4ece5af7", "score": "0.46272987", "text": "@Override\n\tpublic void setProperties(IDimensionProperties properties) {\n\t\t\n\t}", "title": "" }, { "docid": "ca23742bc371824eaac4dd10f130f6db", "score": "0.462681", "text": "public int getNumberOfN(){ return _numberOfN; }", "title": "" }, { "docid": "2e806d1d150cb592d70fc5bdb93c6686", "score": "0.4619834", "text": "@Override\n\tpublic void setProperties(Map<String, Double> properties) {\n\t\t\n\t}", "title": "" }, { "docid": "dbc96c4da2b5751d948b950081c56ffe", "score": "0.4619134", "text": "private void LoadProperties(String filename)throws IOException {\n \n FileInputStream fis = new FileInputStream(filename);\n Properties properties = new Properties();\n properties.load(fis);\n this.withnessesToCC = new ArrayList<>();\n String witnesses = properties.getProperty(\"withnessesToCC\");\n String[] witnesseAddresses = witnesses.split(\",\");\n for(String address : witnesseAddresses){\n this.withnessesToCC.add(new Person (address) );\n }\n numberOfGroups = Integer.parseInt(properties.getProperty(\"numberOfGroups\"));\n \n }", "title": "" }, { "docid": "adec8776952b100baacc84778c7f2b8f", "score": "0.46164808", "text": "public int getPropertiesCount() {\n return properties_.size();\n }", "title": "" }, { "docid": "62940cde4c6350840f58d9817edd0535", "score": "0.46156463", "text": "@Test\n public void test_getRequiredLongProperty_propertySet() {\n Properties props = new Properties();\n props.setProperty(\"hey\", \"2\");\n Config config = (Config) callConstructorWithArguments(Config.class, null, props);\n assertEquals(2, config.getRequiredLongProperty(\"hey\"));\n }", "title": "" }, { "docid": "ae8fef7c6220cd7db54554dce47daab1", "score": "0.46121645", "text": "public void setRepeat(String repeat) {\n\t\tthis.repeat = repeat;\n\t}", "title": "" }, { "docid": "74f54cdd87e3cb1b4ba74cd3129ba3ad", "score": "0.46114028", "text": "void insertPropertyPoints(Property property);", "title": "" }, { "docid": "9a6bd558471c47b069bcdad6bbe02320", "score": "0.4608493", "text": "public void addPropoperties(List<String> properties) {\r\n\t\tlines.addAll(properties);\r\n\t}", "title": "" }, { "docid": "183b57fed55cfbaa345ee97bb119a932", "score": "0.46054444", "text": "public int getPropertyCount() {\r\n\t\treturn properties.length;\r\n\t}", "title": "" }, { "docid": "fadfa20d8b38f0d80f3f66854e2665ea", "score": "0.46036407", "text": "public DocumentProperty[] getDocumentProperty(){\n return localDocumentProperty;\n }", "title": "" }, { "docid": "56ad147e61baeb40e6fcfe461014e2b5", "score": "0.45998177", "text": "OSCDynaProperties createOSCDynaProperties();", "title": "" }, { "docid": "86e91ace64b8c3356da3b9e66885cd29", "score": "0.4593682", "text": "public Property[] getProperties()\n {\n return properties;\n }", "title": "" }, { "docid": "e50a04fbe28837f66f2218d673704172", "score": "0.45905152", "text": "protected abstract List<Property<T>> getProperties();", "title": "" } ]
aeba5bac5e584dcdb406b961a062a3da
endregion region > findSubscriptionTypeByName (action)
[ { "docid": "6fec2d2aaaaefe306492fbde88e6e227", "score": "0.76878786", "text": "@Action(\n semantics = SemanticsOf.SAFE\n )\n @ActionLayout(\n bookmarking = BookmarkPolicy.AS_ROOT\n )\n @MemberOrder(sequence = \"13\")\n public List<SubscriptionType> findSubscriptionTypeByName(\n @ParameterLayout(named=\"Name\")\n final String name\n ) {\n return container.allMatches(\n new QueryDefault<>(\n SubscriptionType.class,\n \"findByName\",\n \"name\", name));\n }", "title": "" } ]
[ { "docid": "ab9526b9a87401c89ec962a6b6d4f372", "score": "0.6530649", "text": "public byte getSubscriptionType();", "title": "" }, { "docid": "a4b7f649d6e340ec171fb30ca65f9ae5", "score": "0.65242785", "text": "public String getSubscriptionTypeNames();", "title": "" }, { "docid": "8d26c3c8b8646259e657a3cad2631d25", "score": "0.6425036", "text": "@Action(\n semantics = SemanticsOf.SAFE\n )\n @ActionLayout(\n bookmarking = BookmarkPolicy.AS_ROOT\n )\n @MemberOrder(sequence = \"12\")\n public List<SubscriptionType> findSubscriptionTypeById(\n @ParameterLayout(named=\"Subscription Type Id\")\n final String subscriptionTypeId\n ) {\n return container.allMatches(\n new QueryDefault<>(\n SubscriptionType.class,\n \"findById\",\n \"subscriptionTypeId\", subscriptionTypeId));\n }", "title": "" }, { "docid": "82eea41716c47bb4233ee2d820d3a1f8", "score": "0.5726044", "text": "protected abstract T lookupType(TypeName typename);", "title": "" }, { "docid": "a076fb6d522cd9f7a9d17e93c572e1d9", "score": "0.5685698", "text": "List<Type> findByName(String name);", "title": "" }, { "docid": "264913aa210c45c714d4233b344860cb", "score": "0.5656204", "text": "@Action(\n semantics = SemanticsOf.SAFE\n )\n @ActionLayout(\n bookmarking = BookmarkPolicy.AS_ROOT\n )\n @MemberOrder(sequence = \"11\")\n public List<SubscriptionType> listAllSubscriptionTypes() {\n return container.allInstances(SubscriptionType.class);\n }", "title": "" }, { "docid": "3e6aeebd5574dc70d988878006a6ba81", "score": "0.5589395", "text": "java.lang.String getOfferType();", "title": "" }, { "docid": "ff5884dc382bcc74800bbe047580d55d", "score": "0.55825657", "text": "public String getType(String sampleName);", "title": "" }, { "docid": "0184c333c03f088ac2336e9cb8a4ee8e", "score": "0.55819225", "text": "public Type searchType(TypeVO oTypeVO);", "title": "" }, { "docid": "efb70b06e3c767a9819e4538e0c16406", "score": "0.5573243", "text": "String typeName (String itemType);", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5559423", "text": "String getType();", "title": "" }, { "docid": "bcc8c0c765e88ac3ab69ff6a302b027e", "score": "0.5512037", "text": "String findItemTypeCode(String integrationObjectCode, String integrationObjectItemCode);", "title": "" }, { "docid": "5720a9e1fc96aa4518b07294ac636188", "score": "0.54912597", "text": "public static ResourceType getByName(String type) throws DBException{\n ResourceType dummy = new ResourceType();\n List<ResourceType> list = dummy.getByField(\"type\", type);\n if(list.isEmpty()){\n throw new DBException(DBException.NO_SUCH_ENTRY, \"No resources found of type: \"+type);\n }\n return list.get(0);\n\n }", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5446173", "text": "java.lang.String getType();", "title": "" }, { "docid": "3022f397e607e0d67d0630f2579a4f30", "score": "0.54268724", "text": "KrmsTypeDefinition getTypeByName( String namespaceCode, String name)\n throws RiceIllegalArgumentException, RiceIllegalStateException;", "title": "" }, { "docid": "497ae510f83f552e9bd326ca996f5c86", "score": "0.542485", "text": "ResourceType type();", "title": "" }, { "docid": "7719229d6a20275953c5e4210f00e30b", "score": "0.54102725", "text": "String getTypeString();", "title": "" }, { "docid": "ec4ba0a5fba673c18e0da8d0beaebec3", "score": "0.5405174", "text": "public String getType ();", "title": "" }, { "docid": "159d1ce52fd038d65a51c4d8a5b91fb3", "score": "0.53887886", "text": "String getType();", "title": "" }, { "docid": "c52bffd72f4eed4b4c1b37f08a28d3ee", "score": "0.53813314", "text": "String getTypeName();", "title": "" }, { "docid": "c52bffd72f4eed4b4c1b37f08a28d3ee", "score": "0.53813314", "text": "String getTypeName();", "title": "" }, { "docid": "1e92535433ccd5cabfd835dcdd2fe44f", "score": "0.53804654", "text": "java.lang.String getType() throws java.rmi.RemoteException;", "title": "" }, { "docid": "0c3ba26e96762734f287e4931bcb5897", "score": "0.5372277", "text": "private String getUserStoreType(String typeName) {\n\n HashMap<String, String> userStoreMap = getHashMap();\n for (Map.Entry<String, String> stringEntry : userStoreMap.entrySet()) {\n if (typeName.equals(((Map.Entry) stringEntry).getValue())) {\n return (String) ((Map.Entry) stringEntry).getKey();\n }\n }\n return null;\n }", "title": "" }, { "docid": "13a361a3eb22ea964886382fbc92e403", "score": "0.5366457", "text": "String getTypeID();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "0440b245fa6be064b2639af29734e8f1", "score": "0.5365517", "text": "public String getType();", "title": "" }, { "docid": "9c50bff230e564eb39cb2d9490e29785", "score": "0.5343681", "text": "java.lang.String getUserType();", "title": "" }, { "docid": "9c50bff230e564eb39cb2d9490e29785", "score": "0.5343681", "text": "java.lang.String getUserType();", "title": "" }, { "docid": "c97b7edd315f16fb6574831f1653f10d", "score": "0.5331245", "text": "private RequestType getRequestTypeForTitle(String title)\n {\n Resources res = getResources();\n for(RequestType type : RequestType.values())\n {\n if(type.toString(res).equals(title))\n return type;\n }\n return null;\n }", "title": "" }, { "docid": "538b81b73a7caf01ace70f93f2e18a70", "score": "0.5328245", "text": "public Collection getSubscriptions(SubscriptionType stype) {\n\t\tAccessSubscriptionHome asHome = null;\n\t\tCollection c;\n\t\tInitialContext ic = null;\n\t\ttry {\n\t\t\tic = new InitialContext();\n\t\t\tasHome =\n\t\t\t\t(AccessSubscriptionHome)ic.lookup(AccessSubscriptionHome.JNDI_NAME);\n\t\t\tAccessSubscription as = asHome.create();\n\t\t\tc = as.findBySubscriptionType(getPK(), stype);\n\t\t}\n\t\tcatch (Exception fe) {\n\t\t\tthrow new EJBException(fe.toString());\n\t\t}\n\t\treturn c;\n\t}", "title": "" }, { "docid": "a94d36a1d3fbde10cb91fe4488bac8ad", "score": "0.5327106", "text": "String getCustomerType();", "title": "" }, { "docid": "55abc2b2614f3efc1c2ceddaa1b7113f", "score": "0.53193784", "text": "public abstract String getTypeName(ConstantType type);", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "f8fb30014b8ee2433a9cda69a5065174", "score": "0.52990216", "text": "public abstract String getType();", "title": "" }, { "docid": "4f9721ff3eb47605994306140a5b5f81", "score": "0.52981806", "text": "String getSubtype();", "title": "" }, { "docid": "3e82265920577b421112979a8397b681", "score": "0.52738", "text": "private UserSubscription getUserSubscriptionByType(\n\t\t\tSet<UserSubscription> userSubscrptionSet, Integer subScriptionType) {\n\t\tif (userSubscrptionSet == null || userSubscrptionSet.size() < 1) {\n\t\t\treturn null;\n\t\t}\n\t\tfor (UserSubscription userSub : userSubscrptionSet) {\n\t\t\tif (subScriptionType.equals(userSub.getId().getSubType())) {\n\t\t\t\treturn userSub;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\n\t}", "title": "" }, { "docid": "e8c766404e4a9bfb980236fc85ccf68c", "score": "0.5263664", "text": "String type ();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.5262874", "text": "String type();", "title": "" } ]
4d70d6be1b898acc77aac749848602eb
Test case number: 210 /Coverage entropy=3.9596209558485707
[ { "docid": "2d5b083cfd11109300de3d9ac4372f82", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test210() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n String[] stringArray0 = new String[0];\n ResultMatrixSignificance.main(stringArray0);\n int[] intArray0 = new int[4];\n intArray0[0] = 1;\n intArray0[1] = 1;\n resultMatrixCSV0.getColHidden(1);\n ResultMatrixPlainText.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "title": "" } ]
[ { "docid": "dc7afd015f73b66477d28310a9524aa9", "score": "0.69172317", "text": "@Test\n public void testEntropy() {\n System.out.println(\"entropy\");\n TDistribution instance = new TDistribution(20);\n Assert.assertEquals(1.46954202, instance.entropy(), 1.0E-7);\n }", "title": "" }, { "docid": "7b5f59baa009a02347ccd855580f091e", "score": "0.6828369", "text": "@Test(timeout = 4000)\n public void test83() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\" \");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(9, denseInstance0.numValues());\n assertEquals(9, denseInstance0.numAttributes());\n assertEquals(9, doubleArray0.length);\n \n ConverterUtils.DataSource converterUtils_DataSource0 = new ConverterUtils.DataSource(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(converterUtils_DataSource0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n \n DenseInstance denseInstance1 = (DenseInstance)converterUtils_DataSource0.nextElement(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance1);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(4, denseInstance1.numAttributes());\n assertNotSame(denseInstance1, denseInstance0);\n \n denseInstance1.setClassMissing();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(4, denseInstance1.numAttributes());\n assertNotSame(denseInstance1, denseInstance0);\n \n double double0 = evaluation0.evaluationForSingleInstance(doubleArray0, denseInstance1, true);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(2.0, double0, 0.01);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(9, doubleArray0.length);\n assertNotSame(denseInstance1, denseInstance0);\n \n String string0 = \"i\";\n try { \n evaluation0.KBMeanInformation();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute K&B Info score: class numeric!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "a896c2ea42e9ea47f4e47785dc75103a", "score": "0.6814567", "text": "@Test(timeout = 4000)\n public void test67() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals((-1), testInstances0.getClassIndex());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n try { \n evaluation0.toCumulativeMarginDistributionString();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Class must be nominal for margin distributions\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "573325d2a6229174e2df85e3d1e66f15", "score": "0.67741555", "text": "@Test(timeout = 4000)\n public void test82() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(capabilities0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n assertNotNull(textDirectoryLoader0);\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n \n Instances instances1 = textDirectoryLoader0.getStructure();\n assertNotNull(instances1);\n assertFalse(instances1.equals((Object)instances0));\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertNotSame(instances1, instances0);\n \n CostMatrix costMatrix0 = new CostMatrix(0);\n assertNotNull(costMatrix0);\n assertEquals(0, costMatrix0.numColumns());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numRows());\n \n CostMatrix costMatrix1 = new CostMatrix(costMatrix0);\n assertNotNull(costMatrix1);\n assertFalse(costMatrix1.equals((Object)costMatrix0));\n assertEquals(0, costMatrix0.numColumns());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numRows());\n assertEquals(0, costMatrix1.size());\n assertEquals(0, costMatrix1.numRows());\n assertEquals(0, costMatrix1.numColumns());\n \n Evaluation evaluation1 = new Evaluation(instances1, costMatrix1);\n assertNotNull(evaluation1);\n assertFalse(instances1.equals((Object)instances0));\n assertFalse(costMatrix0.equals((Object)costMatrix1));\n assertFalse(costMatrix1.equals((Object)costMatrix0));\n assertFalse(evaluation1.equals((Object)evaluation0));\n assertEquals(\"The character set to use when reading text files (eg UTF-8) - leave blank to use the default character set.\", textDirectoryLoader0.charSetTipText());\n assertEquals(\"Directories\", textDirectoryLoader0.getFileDescription());\n assertEquals(\"Whether to print additional debug information to the console.\", textDirectoryLoader0.debugTipText());\n assertEquals(\"Whether to store the filename in an additional attribute.\", textDirectoryLoader0.outputFilenameTipText());\n assertEquals(\"Loads all text files in a directory and uses the subdirectory names as class labels. The content of the text files will be stored in a String attribute, the filename can be stored as well.\", textDirectoryLoader0.globalInfo());\n assertEquals(\"\", textDirectoryLoader0.getCharSet());\n assertFalse(textDirectoryLoader0.getOutputFilename());\n assertFalse(textDirectoryLoader0.getDebug());\n assertEquals(0.0, instances1.sumOfWeights(), 0.01);\n assertEquals(0, instances1.size());\n assertTrue(instances1.checkForStringAttributes());\n assertEquals(2, instances1.numAttributes());\n assertEquals(0, instances1.numClasses());\n assertEquals(1, instances1.classIndex());\n assertEquals(0, instances1.numInstances());\n assertEquals(\"_home_ubuntu_evosuite_readability_gen_projects_107_weka\", instances1.relationName());\n assertEquals(0, costMatrix0.numColumns());\n assertEquals(0, costMatrix0.size());\n assertEquals(0, costMatrix0.numRows());\n assertEquals(0, costMatrix1.size());\n assertEquals(0, costMatrix1.numRows());\n assertEquals(0, costMatrix1.numColumns());\n assertEquals(Double.NaN, evaluation1.weightedFMeasure(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTrueNegativeRate(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.unweightedMicroFmeasure(), 0.01);\n assertEquals(1.0, evaluation1.kappa(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalsePositiveRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedTruePositiveRate(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedPrecision(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedFalseNegativeRate(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.weightedRecall(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n \n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) (-1);\n doubleArray0[1] = 204.02614061766;\n try { \n evaluation0.priorEntropy();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute entropy of class prior: class numeric!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "c65b340a88f97d0ba9031fa8ea0a70f8", "score": "0.67608094", "text": "@Test(timeout = 4000)\n public void test61() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n \n Instances instances0 = testInstances0.generate(\"{`vSB'pZn~rOk\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n \n boolean boolean0 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"kernelTipText\");\n assertFalse(boolean0);\n \n double double0 = evaluation0.correlationCoefficient();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, instances0.numClasses());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n \n // Undeclared exception!\n try { \n testInstances0.setRelationalFormat(2, instances0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"weka.core.TestInstances\", e);\n }\n }", "title": "" }, { "docid": "49f6c63d485c47ad930fe40da1da7580", "score": "0.6748398", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\")OLe\");\n Instances instances1 = new Instances(instances0);\n instances0.delete();\n MockRandom mockRandom0 = new MockRandom(0L);\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n Vector<String> vector0 = new Vector<String>();\n Attribute attribute0 = new Attribute(\"NONE\", vector0, (-147));\n instances0.sort(attribute0);\n double double1 = evaluation0.weightedFMeasure();\n assertEquals(double1, double0, 0.01);\n \n String string0 = evaluation0.toMatrixString(\")OLe\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\")OLe\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n }", "title": "" }, { "docid": "b8db410b5dab986f0afe7f01e70c5147", "score": "0.67463195", "text": "@Test(timeout = 4000)\n public void test64() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(9, denseInstance0.numValues());\n assertEquals(9, denseInstance0.numAttributes());\n assertEquals(9, doubleArray0.length);\n \n ConverterUtils.DataSource converterUtils_DataSource0 = new ConverterUtils.DataSource(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(converterUtils_DataSource0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertFalse(converterUtils_DataSource0.isIncremental());\n \n DenseInstance denseInstance1 = (DenseInstance)converterUtils_DataSource0.nextElement(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance1);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertNotSame(denseInstance1, denseInstance0);\n \n boolean boolean0 = false;\n double double0 = evaluation0.evaluationForSingleInstance(doubleArray0, denseInstance1, false);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(2.0, double0, 0.01);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(0.5287499998696148, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(1.0, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(1.0, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(1.0, evaluation0.numInstances(), 0.01);\n assertEquals(1.0, evaluation0.rootMeanSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(189.1252955549109, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(189.1252955549109, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.avgCost(), 0.01);\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(9, doubleArray0.length);\n assertNotSame(denseInstance1, denseInstance0);\n \n try { \n CostMatrix.parseMatlab(\"weka/core/Capabilities.props\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "title": "" }, { "docid": "c3b044fe5f89582eb0270a9e660d10f2", "score": "0.6711124", "text": "@Test(timeout = 4000)\n public void test69() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n \n Evaluation evaluation1 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation1);\n assertTrue(evaluation1.equals((Object)evaluation0));\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(0.0, evaluation1.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.errorRate(), 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation1.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation1.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation1.rootRelativeSquaredError(), 0.01);\n assertEquals(0.0, evaluation1.unclassified(), 0.01);\n assertEquals(0.0, evaluation1.correct(), 0.01);\n assertEquals(Double.NaN, evaluation1.SFMeanPriorEntropy(), 0.01);\n assertFalse(evaluation1.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation1.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation1.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation1.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation1.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation1.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation1.numInstances(), 0.01);\n \n double double0 = evaluation0.errorRate();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(Double.NaN, double0, 0.01);\n assertTrue(evaluation0.equals((Object)evaluation1));\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertNotSame(evaluation0, evaluation1);\n }", "title": "" }, { "docid": "de5f31512a14dd9e6b6125e90ac78777", "score": "0.6708927", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n \n String string0 = Evaluation.getGlobalInfo(regressionByDiscretization0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(string0);\n assertEquals(\"\\nSynopsis for weka.classifiers.meta.RegressionByDiscretization:\\n\\nA regression scheme that employs any classifier on a copy of the data that has the class attribute discretized. The predicted value is the expected value of the mean class value for each discretized interval (based on the predicted probabilities for each interval). This class now also supports conditional density estimation by building a univariate density estimator from the target values in the training data, weighted by the class probabilities. \\n\\nFor more information on this process, see\\n\\nEibe Frank, Remco R. Bouckaert: Conditional Density Estimation with Class Probability Estimators. In: First Asian Conference on Machine Learning, Berlin, 65-81, 2009.\", string0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n \n try { \n evaluation0.KBInformation();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute K&B Info score: class numeric!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "ba9d84782c614f661d54db618723186e", "score": "0.6704141", "text": "@Test(timeout = 4000)\n public void test63() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n \n double[] doubleArray0 = new double[4];\n doubleArray0[0] = 1000.0;\n doubleArray0[1] = (double) 0;\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n // Undeclared exception!\n try { \n evaluation0.updateMargins(doubleArray0, 0, (-1));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 250250\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "745cf64643086ece5d50f5d92b6359ff", "score": "0.66960496", "text": "@Test(timeout = 4000)\n public void test70() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n \n Enumeration enumeration0 = testInstances0.listOptions();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(enumeration0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"weka/core/Capabilities.props\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n \n MockRandom mockRandom0 = new MockRandom();\n assertNotNull(mockRandom0);\n \n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(20, instances0.size());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n \n try { \n evaluation0.KBRelativeInformation();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't compute K&B Info score: class numeric!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "de45aa0c400a7327b17abfcc5197d924", "score": "0.6637264", "text": "@Test(timeout = 4000)\n public void test78() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n \n Instances instances0 = testInstances0.generate(\" \");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(9, denseInstance0.numAttributes());\n assertEquals(9, denseInstance0.numValues());\n assertEquals(9, doubleArray0.length);\n \n ConverterUtils.DataSource converterUtils_DataSource0 = new ConverterUtils.DataSource(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(converterUtils_DataSource0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n \n DenseInstance denseInstance1 = (DenseInstance)converterUtils_DataSource0.nextElement(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance1);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertNotSame(denseInstance1, denseInstance0);\n \n double double0 = evaluation0.evaluationForSingleInstance(doubleArray0, denseInstance1, true);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(2.0, double0, 0.01);\n assertFalse(denseInstance1.equals((Object)denseInstance0));\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(189.1252955549109, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(189.1252955549109, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(1.0, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(1.0, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(1.0, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.pctUnclassified(), 0.01);\n assertFalse(converterUtils_DataSource0.isIncremental());\n assertEquals(4, denseInstance1.numValues());\n assertEquals(4, denseInstance1.numAttributes());\n assertEquals(1, denseInstance1.numClasses());\n assertEquals(3, denseInstance1.classIndex());\n assertEquals(1.0, denseInstance1.weight(), 0.01);\n assertEquals(9, doubleArray0.length);\n assertNotSame(denseInstance1, denseInstance0);\n \n String string0 = evaluation0.toSummaryString(\"weka/core/Capabilities.props\", true);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(string0);\n assertEquals(\"weka/core/Capabilities.props\\nCorrelation coefficient 0 \\nClass complexity | order 0 0 bits 0 bits/instance\\nClass complexity | scheme 0 bits 0 bits/instance\\nComplexity improvement (Sf) 0 bits 0 bits/instance\\nMean absolute error 1 \\nRoot mean squared error 1 \\nRelative absolute error 189.1253 %\\nRoot relative squared error 189.1253 %\\nCoverage of cases (0.95 level) 0 %\\nMean rel. region size (0.95 level) 0 %\\nTotal Number of Instances 1 \\n\", string0);\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(testInstances0.getNoClass());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(189.1252955549109, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(189.1252955549109, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(0.0, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(1.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(1.0, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(1.0, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(1.0, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.5287499998696148, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.pctUnclassified(), 0.01);\n \n try { \n CostMatrix.parseMatlab(\" \");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "title": "" }, { "docid": "004f484e9f3c80a6e34cd3b4d83d7296", "score": "0.663683", "text": "@Test(timeout = 4000)\n public void test59() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumAttributes());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumNominalValues());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumAttributes());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(0, testInstances0.getNumString());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(4, testInstances0.getNumAttributes());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n RandomForest randomForest0 = new RandomForest();\n assertNotNull(randomForest0);\n assertEquals(\"Print the individual trees in the output\", randomForest0.printTreesTipText());\n assertEquals(Double.NaN, randomForest0.measureOutOfBagError(), 0.01);\n assertEquals(0, randomForest0.getNumFeatures());\n assertFalse(randomForest0.getPrintTrees());\n assertEquals(1, randomForest0.getNumExecutionSlots());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", randomForest0.debugTipText());\n assertEquals(\"The number of execution slots (threads) to use for constructing the ensemble.\", randomForest0.numExecutionSlotsTipText());\n assertEquals(0, randomForest0.getMaxDepth());\n assertFalse(randomForest0.getDebug());\n assertEquals(\"The random number seed to be used.\", randomForest0.seedTipText());\n assertEquals(\"The number of attributes to be used in random selection (see RandomTree).\", randomForest0.numFeaturesTipText());\n assertEquals(\"The number of trees to be generated.\", randomForest0.numTreesTipText());\n assertEquals(10, randomForest0.getNumTrees());\n assertEquals(\"The maximum depth of the trees, 0 for unlimited.\", randomForest0.maxDepthTipText());\n assertEquals(1, randomForest0.getSeed());\n \n MockRandom mockRandom0 = new MockRandom();\n assertNotNull(mockRandom0);\n \n try { \n evaluation0.crossValidateModel((Classifier) regressionByDiscretization0, instances0, 2, (Random) mockRandom0, (Object[]) testInstances0.DEFAULT_WORDS);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // java.lang.String cannot be cast to weka.classifiers.evaluation.output.prediction.AbstractOutput\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "af7b9fc1b275132bf76307e72999c796", "score": "0.6605437", "text": "@Test(timeout = 4000)\n public void test57() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertNotNull(capabilities0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n evaluation0.addNumericTrainClass((-38.633626237796), 2);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(0, testInstances0.getClassType());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(1, instances0.numClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n \n try { \n evaluation0.toMatrixString(\"weka/core/Capabilities.props\");\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Evaluation: No confusion matrix possible!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "ce0fcc52279fed26cf36d3be64d1f417", "score": "0.6597346", "text": "@Test(timeout = 4000)\n public void test33() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getClassType());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n \n // Undeclared exception!\n try { \n evaluation0.weightedFalsePositiveRate();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "2113c80e5e564dc932231cc3351b5ea5", "score": "0.65910316", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n MockRandom mockRandom0 = new MockRandom();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.equals(textDirectoryLoader0);\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "ab98766dc59ea6a99ecdd14dcf840bb0", "score": "0.6533291", "text": "@Test(timeout = 4000)\n public void test41() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles/props\");\n byte[] byteArray0 = new byte[5];\n byteArray0[0] = (byte)47;\n byteArray0[1] = (byte)47;\n byteArray0[2] = (byte)47;\n byteArray0[3] = (byte) (-82);\n byteArray0[4] = (byte)67;\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n Attribute attribute1 = new Attribute(\"string\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"string\", arrayList0, 1);\n discretize0.setInputFormat(instances0);\n discretize0.m_NumBins = 1;\n FileSystemHandling.setPermissions(evoSuiteFile0, false, false, false);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(3);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "8794534ab53978d2b5179da94925dd54", "score": "0.6533146", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n \n Capabilities capabilities1 = Capabilities.forInstances(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(capabilities1);\n assertFalse(capabilities1.equals((Object)capabilities0));\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n assertEquals(1, capabilities1.getMinimumNumberInstances());\n assertFalse(capabilities1.hasDependencies());\n assertNotSame(capabilities0, capabilities1);\n assertNotSame(capabilities1, capabilities0);\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(capabilities0.equals((Object)capabilities1));\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(4, instances0.numAttributes());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.numInstances());\n assertEquals(20, instances0.size());\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n \n // Undeclared exception!\n try { \n evaluation0.weightedMatthewsCorrelation();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "b005af55cbcaed7b685f4b7b77cb58b4", "score": "0.6532341", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n \n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "3410295edee564fc8ea7abbae4795d97", "score": "0.6531072", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(1, testInstances0.getNumDate());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(0, testInstances0.getNumString());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumClasses());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(20, instances0.size());\n assertEquals(3, instances0.classIndex());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(20, instances0.numInstances());\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n \n try { \n evaluation0.toClassDetailsString();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Evaluation: No per class statistics possible!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "4c07843562d99d336b1f0c55b1c869a8", "score": "0.6524385", "text": "public void doTestWithClamping() throws Exception {\n\t\ttotalToks = 0;\n rightToks = 0;\n int flag1 = 0;\n //String combo = \"pubmed_cluster6\";\n //String comboNum = \"5\";\n String filename = \"xPubMed_ByHighestEntropy_t0l0l1l1_totalEntropy_3.csv\";\n \n \n \n //TreeMap<Integer, Integer> NodeCountMap = new TreeMap<Integer, Integer>();\n\t\t\n\t\t//Initialize List of CRFoutput to be sorted\n\t\t//CRFoutput = new ArrayList<CRFoutput>();\n\n CRFoutput CRFout = new CRFoutput();\n\t\t\n\t\t//Make output directory\n\t\tString outDirec = \"out2\";\n File dir = new File(baseDir + \"/\" + outDirec + \"/\" + outDir);\n\t\tdir.mkdirs();\n\t\t\n\t\t//Opens file that will read in tagged test data\n//\t\tTestData testData = new TestData(baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t+ inName + \".test\", delimit, impDelimit, groupDelimit);\n TestData testData = new TestData(baseDir + \"/data/PubMed_HighEntropy/\" \n + filename + \".test\", delimit, impDelimit, groupDelimit);\n\t\t\n\t\t//Writes a tagged exp test in the same format as the tagged data\n//\t\tTestDataWrite tdw = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\"\n//\t\t\t\t+ \"tempTagged\" + \".test\", baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t+ inName + \".test\", delimit, tagDelimit, impDelimit, labelMap);\n TestDataWrite tdw = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\"\n\t\t\t\t+ \"tempTagged\" + \".test\", baseDir + \"/data/PubMed_HighEntropy/\"\n\t\t\t\t+ filename + \".test\", delimit, tagDelimit, impDelimit, labelMap);\n\n\t\t//Reads in the original tagged testing set\n//\t\tTrainData taggedTestData = DataCruncher.readTagged(nlabels, baseDir\n//\t\t\t\t+ \"/data/\" + inName + \"/\" + inName + \".test\", baseDir\n//\t\t\t\t+ \"/data/\" + inName + \"/\" + inName + \".test\", delimit,\n//\t\t\t\ttagDelimit, impDelimit, labelMap);\n TrainData taggedTestData = DataCruncher.readTagged(nlabels, baseDir\n\t\t\t\t+ \"/data/PubMed_HighEntropy/\" + filename + \".test\", baseDir\n\t\t\t\t+ \"/data/PubMed_HighEntropy/\" + filename + \".test\", delimit,\n\t\t\t\ttagDelimit, impDelimit, labelMap);\n\n\t\t//testRecord holds String arrays of tagged data organized by tags \n String collect[] = new String[nlabels];\n\t\tTestRecord testRecord = new TestRecord(collect);\n \n //Create structures for storing information about top clusters\n String citation;\n Hashtable<Integer, ArrayList<String>> topClusters = new Hashtable<Integer, ArrayList<String>>();\n \n //Initialize files to be written\n f = new FileWriter(baseDir + \"/CRFoutput2.csv\", false);\n f2 = new FileWriter(baseDir + \"/citationTable2.csv\", false);\n f3 = new FileWriter(baseDir + \"/labelTable2.csv\", false);\n\n //facc = new FileWriter(baseDir + \"/data/PubMed_HighEntropy/clamped_\" + combo + \"_\" + comboNum\n //+ \".csv\", false);\n facc = new FileWriter(baseDir + \"/data/PubMed_HighEntropy/clamped_\" + filename,false);\n \n \n //Read in top clusters to be clamped and add to Hashtable\n FileInputStream fInStream = new FileInputStream(baseDir + \"/data/PubMed_HighEntropy/\" + filename); \n DataInputStream in = new DataInputStream(fInStream);\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in)); \n// String algorithm = br.readLine();\n while ((citation = br.readLine()) != null) {\n StringTokenizer strTok = new StringTokenizer(citation,\",\");\n //if (strTok.countTokens()!=7){\n\t\t\t//throw new Exception (\"Expected 7 tokens in CSV line, got \"+ strTok.countTokens());\n //}\n //Relative cluster ID (not needed)\n String relClusterID = strTok.nextToken();\n int citID = Integer.parseInt(strTok.nextToken().trim());\n ArrayList<String> clusterValues = new ArrayList<String>();\n for (int idx=0; idx<4; idx++) {\n clusterValues.add(idx,strTok.nextToken().replaceAll(\"\\\"\",\"\"));\n }\n clusterValues.add(4,relClusterID);\n \n topClusters.put(citID, clusterValues); \n }\n \n\t\tint instance = 1;\n\t\t\n \n \n\t\t//Loop takes in tagged data record by record\n\t\t// seq[] is an array of tokens\n for (String seq[] = testData.nextRecord(); seq != null && seq.length != 0; seq = testData\n\t\t\t\t.nextRecord()) {\n\t\t\t\n //Print timestamp\n System.out.println(\"CURRENT TIME IS: \" + System.currentTimeMillis() + \" \" + instance + \"\\n\");\n \n //Create tokenized record object\n\t\t\ttestRecord.init(seq);\n \n //Set values for output classes, CRFout and CitationTable\n \n CRFout.setCitationID(instance);\n CRFout.setSeqs(seq);\n \n FileInputStream fInStream2 = new FileInputStream(baseDir + \"/data/PubMed_HighEntropy/\" + filename); \n DataInputStream in2 = new DataInputStream(fInStream2);\n BufferedReader br2 = new BufferedReader(new InputStreamReader(in2));\n for (int line=0; line<instance; line++) {\n citation = br2.readLine();\n }\n StringTokenizer strTok = new StringTokenizer(citation,\",\");\n String relClusterID = strTok.nextToken();\n int citID = Integer.parseInt(strTok.nextToken().trim());\n \n //CitationTable citTable = new CitationTable(instance, testData.line);\n CitationTable citTable = new CitationTable(citID, testData.line);\n\t\t\t\n\t\t\tif (options.getInt(\"debugLvl\") > 1) {\n\t\t\t\t//Util.printDbg(\"Invoking segment on \" + seq);\n\t\t\t}\n\n // token[] is an array of labels for seq[]\n\t\t\tint[] token = allLabels(taggedTestData.nextRecord()); \n \n \n CRFout.setToks(token);\n\n//\t\t\ttdw = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\" + inName\n//\t\t\t\t\t+ \".test\", baseDir + \"/data/\" + inName + \"/\" + inName\n//\t\t\t\t\t+ \".test\", delimit, tagDelimit, impDelimit, labelMap);\n tdw = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\" + inName\n\t\t\t\t\t+ \".test\", baseDir + \"/data/PubMed_HighEntropy/\" + filename\n\t\t\t\t\t+ \".test\", delimit, tagDelimit, impDelimit, labelMap);\n\n\t\t\t/* Without Clamping */\n //Use raw record and CRF model to populate collect array with path labels\n\t\t\tint path[] = segment(testRecord, testData.groupedTokens(), collect);\n\t\t\t/////////////////////\n\n\t\t\t//for (int ii = 1; ii < path.length; ii++) {\n\t\t\t//\tSystem.out.println (path[ii] + \" \");\n\t\t\t//}\n\t\t\t//System.out.println(\"\\n\");\n\t\t\t\n\t\t\ttdw.writeRecord(path, testRecord.length(), instance);\n\t\t\ttdw.close();\n \n //Sunny code: outputting tokens?\n//\t\t\tTestDataWrite tdw1 = new TestDataWrite(baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t\t+ \"tempTagged2\" + \".test\", baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t\t+ inName + \".test\", delimit, tagDelimit, impDelimit,\n//\t\t\t\t\tlabelMap);\n TestDataWrite tdw1 = new TestDataWrite(baseDir + \"/data/\" + inName + \"/\"\n\t\t\t\t\t+ \"tempTagged2\" + \".test\", baseDir + \"/data/PubMed_HighEntropy/\" \n\t\t\t\t\t+ filename + \".test\", delimit, tagDelimit, impDelimit,\n\t\t\t\t\tlabelMap);\n\n\t\t\ttdw1.writeRecord(token, token.length, instance);\n\t\t\ttdw1.close();\n \n if (flag1==1) {\n //Computing and determining all marginals\n Marginals marginal = new Marginals(crfModel, testRecord, null);\n marginal.compute();\n marginal.printBetaVector();\n marginal.computeMarginal();\n marginal.normalize();\n //marginal.printNormalized();\n marginal.calculateEntropy(method);\n //System.out.println(\"\\n\");\n\n //Compute entropy\n Double[][] totalMarginal = new Double[token.length][nlabels];\n double[] ent = new double[token.length];\n for (int i=0; i<token.length; i++) {\n Double[] marg = new Double[nlabels];\n marg = marginal.getMarginalProb(i);\n System.arraycopy(marg, 0, totalMarginal[i], 0, nlabels);\n ent[i] = marginal.getEntropy(i);\n }\n\n //Set Marginal and Entropy values\n CRFout.setTotalMarginal(totalMarginal);\n CRFout.setEntropy(ent);\n }\n\t\t\t///////////////\n\t\t\t//NodeCountMap.put(instance, marginal.numHighEntropyNodes(0.2));\n\t\t\t//////////////\n\t\t\t\n\t\t\t\n\t\t\t//////////////\n\t\t\t//double THRESH = 0.2;\n\t\t\t//turkerData.add(new TurkerData(rawline, seq, marginal\n\t\t\t//\t\t.getNumMaxEntropyNodes(THRESH), marginal.getMaxEntropyNode()));\n\t\t\t/////////////\n\t\t\t\n\t\t\t// marginal.printEntropy();\n\n\t\t\t// f.write(marginal.getMaxEntropyNode() + \" \");\n\t\t\t\n\t\t\t\n\t\t\t/* without clamping */\n\t\t\t/*Exp 2*/\n\t\t\t/////////////////////////////////////////////////////////////////////////////////////\n\t\t\t////////////////////////////////////////////////////////////////////////////////////\n\t\t\t//double f1Score = calcWith(testRecord);\n\t\t\tdouble f1Before = calcWith(testRecord);\n\t\t\t////////////////////////////////////////////////////////////////////////////////////\n\t\t\t////////////////////////////////////////////////////////////////////////////////////\n\n\t\t\tdouble[] f1 = new double[token.length]; \n\t\t\t\n\t\t\t/* clamping */\n\t\t\t//System.out.println(\"Length:\" + token.length);\n\t\t\t\n// TrainData tdMan = DataCruncher.readTagged(nlabels, baseDir + \"/data/\"\n//\t\t\t\t+ inName + \"/\" + \"tempTagged2\" + \".test\", baseDir + \"/data/\"\n//\t\t\t\t+ inName + \"/\" + inName + \".test\", delimit, tagDelimit,\n//\t\t\t\timpDelimit, labelMap);\n// TrainData tdAuto = DataCruncher.readTagged(nlabels, baseDir + \"/\" + outDirec + \"/\"\n//\t\t\t\t+ outDir + \"/\" + inName + \".test\", baseDir + \"/data/\" + inName\n//\t\t\t\t+ \"/\" + inName + \".test\", delimit, tagDelimit, impDelimit,\n//\t\t\t\tlabelMap);\n TrainData tdMan = DataCruncher.readTagged(nlabels, baseDir + \"/data/\"\n\t\t\t\t+ inName + \"/\" + \"tempTagged2\" + \".test\", baseDir + \"/data/PubMed_HighEntropy/\"\n\t\t\t\t+ filename + \".test\", delimit, tagDelimit,\n\t\t\t\timpDelimit, labelMap);\n TrainData tdAuto = DataCruncher.readTagged(nlabels, baseDir + \"/\" + outDirec + \"/\"\n\t\t\t\t+ outDir + \"/\" + inName + \".test\", baseDir + \"/data/PubMed_HighEntropy/\"\n\t\t\t\t+ filename + \".test\", delimit, tagDelimit, impDelimit,\n\t\t\t\tlabelMap);\n \n //Accuracy Calculation for Clamping\n// for (int idx=0; idx<tdAuto.size(); idx++) {\n// TrainRecord trMan = tdMan.nextRecord();\n// TrainRecord trAuto = tdAuto.nextRecord();\n// //if (idx==(CRFout.citationID-1)) {\n// int tokenMan[] = allLabels(trMan);\n// int tokenAuto[] = allLabels(trAuto);\n// CRFout.setTrueLabels(tokenMan);\n// CRFout.setAutoLabels(tokenAuto);\n// for (int idx2=0; idx2<tokenMan.length; idx2++) {\n// totalToks++;\n// if (tokenMan[idx2]==tokenAuto[idx2])\n// rightToks++;\n// }\n// //}\n// }\n \n///////////////////////////////////////////////////////////////////////////////////////////////\n/////\n/////\n///// CLAMPING CODE\n/////\n///// Clamping Plan: \n//// 1. Read in list of selected citations and tokens to be clamped\n//// 2. Only clamp if citationID is in list\n/////////////////////////////////////////////////////////////////////////////////////////////// \n \n \n if (topClusters.containsKey(citTable.citationID)) {\n ArrayList<String> citValues = topClusters.get(citTable.citationID);\n \n FileInputStream fInStream3 = new FileInputStream(baseDir + \"/data/PubMed_HighEntropy/\" \n + filename + \".test.raw\"); \n DataInputStream in3 = new DataInputStream(fInStream3);\n BufferedReader br3 = new BufferedReader(new InputStreamReader(in3));\n for (int line=0; line<instance; line++) {\n citation = br3.readLine();\n }\n StringTokenizer tok = new StringTokenizer(citation.toLowerCase(),\n \" \", true);\n \n //FIGURE OUT TOKEN POSITION FROM CHARACTER POSITION HERE\n if (instance==26) \n {\n System.out.println(\"STOP\");\n }\n int fflag = 1;\n int charPos = Integer.parseInt(citValues.get(0).trim());\n int charLength = 0;\n int pos = 0;\n while (charLength < charPos) {\n //System.out.println(CRFout.seqs.length);\n// if(pos<CRFout.seqs.length) {\n// charLength += CRFout.seqs[pos].length() + 1;\n// pos++;\n// }\n if (tok.hasMoreTokens()) {\n String tt = tok.nextToken();\n int count = StringUtils.countMatches(tt, \"-\");\n int countb = StringUtils.countMatches(tt, \"--\");\n int count2 = StringUtils.countMatches(tt, \",\");\n int count3 = StringUtils.countMatches(tt, \":\");\n \n charLength += tt.length();\n //System.out.println(tt);\n if (!tt.equals(\" \"))\n pos++;\n for (int i=0; i<(count-2*countb); i++) {\n pos++;\n }\n for (int i=0; i<countb; i++) {\n pos++;\n }\n for (int i=0; i<count2; i++) {\n pos++;\n }\n }\n else{\n break;\n }\n }\n \n\n// path = segment(testRecord, testData.groupedTokens(), collect,pos, \n// Integer.parseInt(citValues.get(2).trim()));\n \n //Convert from text to truth label\n String lab = citValues.get(2).toLowerCase().trim();\n int label = -1;\n// if (lab.equals(\"title\")) {\n// label = 0;\n// }\n// else if (lab.equals(\"author\")) {\n// label = 1;\n// }\n// else if (lab.equals(\"conference\")) {\n// label = 2;\n// }\n// else if (lab.equals(\"isbn\")) {\n// label = 3;\n// }\n// else if (lab.equals(\"publisher\")) {\n// label = 4;\n// }\n// else if (lab.equals(\"series\")) {\n// label = 5;\n// }\n// else if (lab.equals(\"proceedings\")) {\n// label = 6;\n// }\n// else if (lab.equals(\"year\")) {\n// label = 7;\n// }\n \n if (lab.equals(\"title\")) {\n label = 0;\n }\n else if (lab.equals(\"source\")) {\n label = 1;\n }\n else if (lab.equals(\"author\")) {\n label = 2;\n }\n else if (lab.equals(\"issue\")) {\n label = 3;\n }\n else if (lab.equals(\"volume\")) {\n label = 4;\n }\n else if (lab.equals(\"pages\")) {\n label = 5;\n }\n else if (lab.equals(\"year\")) {\n label = 6;\n }\n \n path = segment(testRecord, testData.groupedTokens(), collect, pos, label);\n\n //FileWriter testf = new FileWriter(baseDir + \"/data/testf.txt\", true);\n \n //testf.write(citValues.get(3) + \" - \" + CRFout.seqs[pos] + \"\\n\");\n //testf.close();\n }\n //\t\t\tfor (int i = 0; i < token.length; i++) {\n//\t\t\t\tif (i == marginal.getMaxEntropyNode()) {\n//\t\t\t\t\ttdw1 = new TestDataWrite(baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t\t\t+ \"tempTagged\" + \".test\", baseDir + \"/data/\" + inName\n//\t\t\t\t\t\t+ \"/\" + inName + \".test\", delimit, tagDelimit,\n//\t\t\t\t\t\timpDelimit, labelMap);\n//\n//\t\t\t\t\ttdw1.writeRecord(token, token.length, instance);\n//\t\t\t\t\ttdw1.close();\n//\n//\t\t\t\t\t/* With Clamping */\n//\t\t\t\t\t\n//\t\t\t\t\tif (i==0) {\n//\t\t\t\t\t\tpath = segment(testRecord, testData.groupedTokens(), collect,\n//\t\t\t\t\t\t\t\ti, token[i], token[i+1],1);\n//\t\t\t\t\t}\n//\t\t\t\t\telse if (i==token.length) {\n//\t\t\t\t\t\tpath = segment(testRecord, testData.groupedTokens(), collect,\n//\t\t\t\t\t\t\t\ti, token[i-1], token[i],1);\n//\t\t\t\t\t}\n//\t\t\t\t\telse {\n//\t\t\t\t\t\t////////////////////\n//\t\t\t\t\t\tpath = segment(testRecord, testData.groupedTokens(), collect,\n//\t\t\t\t\t\t\t\ti, token[i], token[i-1], token[i+1]);\n//\t\t\t\t\t\t////////////////////\n//\t\t\t\t\t}\n// \t\t\tTestDataWrite tdw2 = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\"\n//\t\t\t\t\t\t+ inName + \".test\", baseDir + \"/data/\" + inName + \"/\"\n//\t\t\t\t\t\t+ inName + \".test\", delimit, tagDelimit, impDelimit,\n//\t\t\t\t\t\tlabelMap);\n TestDataWrite tdw2 = new TestDataWrite(baseDir + \"/\" + outDirec + \"/\" + outDir + \"/\"\n\t\t\t\t\t\t+ inName + \".test\", baseDir + \"/data/PubMed_HighEntropy/\" \n\t\t\t\t\t\t+ filename + \".test\", delimit, tagDelimit, impDelimit,\n\t\t\t\t\t\tlabelMap);\n\t\t\t\t\ttdw2.writeRecord(path, testRecord.length(), instance);\n\t\t\t\t\ttdw2.close();\n//\n\t\t\t\t\tdouble f1After = calcWith(testRecord);\n//\t\t\t\t\n//\t\t\t\t\n//\t\t\t\t// Prints the accuracy after clamping the maximum entropy node //\n//\t\t\t\t\n//\t\t\t\t\t//f.write(f1[i] + \" \");\n//\t\t\t\t\tMarginals _marginal = new Marginals(crfModel, testRecord,\n//\t\t\t\t\t\t\tnull);\n//\t\t\t\t\t_marginal.compute(i, token[i]);\n//\t\t\t\t\t_marginal.computeMarginal();\n//\t\t\t\t\t_marginal.normalize();\n//\t\t\t\t\t_marginal.calculateEntropy(i,method);\n//\t\t\t\t\t//f.write(_marginal.averageEntropy() + \" \");\n//\t\t\t\t\t/////////////////////////////////////////////////////////////////////////////////////\n//\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////\n//\t\t\t\t\tdouble THRESH = 0.13;\n//\t\t\t\t\tdouble f1After = calcWith(testRecord);\n//\t\t\t\t\t\n//\t\t\t\t\t\t\t//marginal.getNumMaxEntropyNodes(THRESH) + \" \");\n//\t\t\t\t\t//////////////\n//\t\t\t\t\t\n//\t\t\t\t\tturkerData.add(new TurkerData(rawline, seq, marginal\n//\t\t\t\t\t\t\t.getNumMaxEntropyNodes(THRESH), marginal.getMaxEntropyNode(),\n//\t\t\t\t\t\t\tf1Before,f1After,marginal.getEntropy(i), marginal.getNumMaxEntropyNodes(THRESH)));\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}\n\n\t\t\tinstance++;\n //////////////////////////////////////////////////////////////////////////////////////////////////// \n// f2.write(citTable.citationID + \", \\\"\" + citTable.rawText + \"\\\"\\n\");\n// for (int line=0; line<CRFout.seqs.length; line++) {\n// f.write(CRFout.citationID + \", \" \n// //+ citTable.rawText.indexOf(CRFout.seqs[line]) + \", \\\"\"\n// + line + \", \\\"\"\n// + CRFout.seqs[line] + \"\\\", \" \n// + Integer.toString(CRFout.trueLabels[line]) + \", \"\n// + Integer.toString(CRFout.autoLabels[line]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][0]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][1]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][2]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][3]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][4]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][5]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][6]) + \", \"\n// + Double.toString(CRFout.totalMarginal[line][7]) + \", \"\n// + Double.toString(CRFout.entropy[line]) + \"\\n\"\n// );\n// }\n \n// for (int line=0; line<CRFout.seqs.length; line++) {\n// f3.write(citTable.citationID + \", \"\n// + line + \", \"\n// + \"\\\"\" + CRFout.seqs[line] + \"\\\", \"\n// + CRFout.token[line] + \"\\n\");\n// }\n \n ////////////////////////////////////////////////////////////////////////////////////// \n\n int clamped = -1;\n\n if (topClusters.containsKey(citTable.citationID)) {\n clamped = 1;\n }\n else {\n clamped = 0;\n }\n \n// facc.write(citTable.citationID + \", \" + f1Before + \", \" + f1After + \", \" + clamped + \"\\n\");\n \n\n ArrayList<String> citValue = topClusters.get(citTable.citationID);\n if (citValue.size()>=4) {\n if (citValue.get(4)!=null) {\n facc.write(citTable.citationID + \", \" + f1Before + \", \" + f1After + \", \"\n + citValue.get(4) + \", \" + citValue.get(1) + \"\\n\");\n }\n }\n //if (marginal.getMaxEntropyNode() < token.length){\n\t\t\t\t//f.write(Double.toString(f1[marginal.getMaxEntropyNode()]) + \" \");\n\t\t\t//}\n\t\t\t//int count = 0;\n\n\t\t\t/* count of the number of nodes with accuracy improvement more than\n\t\t\t * that of the maximum entropy node.\n\t\t\t */\n\t\t\t//for (int i = 0; i < token.length; i++) {\n\t\t\t//\tif ((f1[marginal.getMaxEntropyNode()] <= f1[i])\n\t\t\t//\t\t\t&& (i != marginal.getMaxEntropyNode()))\n\t\t\t//\t\tcount++;\n\t\t\t//}\n\t\t\t//f.write(\"\\n\");\n\n\t\t\t//f.write(Integer.toString(count) + \"\\n\");\n\t\t}\n\t\t// tdw1.close();\n\t\t// tdw.close();\n\t\t// f.write(\"\\n\");\n\t\t\n\t\t// tdw.close();\n\t\t// testData = new TestData(baseDir + \"/data/\" + inName + \"/\" + inName\n\t\t// + \".test\", delimit, impDelimit, groupDelimit);\n\t\t// calc();\n\n\t\t//f2.write(\"\\n\\n\");\n\t\t// Sort the turkerdata\n\t\t\n//\t\tCollections.sort(turkerData, new Comparator<TurkerData>() {\n//\t\t\tpublic int compare(TurkerData data1, TurkerData data2) {\n//\t\t\t\treturn (data2.maxEntropy > data1.maxEntropy) ? 1 : 0;\n//\t\t\t}\n//\t\t});\n//\t\tdouble BUDGET = 1;\n//\t\tfor (int i=0; i<BUDGET; i++) {\n//\t\t\t//f_3.write(turkerData.get(i).beforeClampingScore + \" \" + \n//\t\t\t\t\t//turkerData.get(i).afterClampingScore + \" \" +\n//\t\t\t\t\t//turkerData.get(i).maxEntropy + \" \" +\n//\t\t\t\t\t//turkerData.get(i).maxEntropyNode + \"\\n\");\n//\t\t}\n//\t\t//f2.write(\"\\n\\n\");\n//\t\t// Sort the turkerdata\n//\t\tCollections.sort(turkerData, new Comparator<TurkerData>() {\n//\t\t\tpublic int compare(TurkerData data1, TurkerData data2) {\n//\t\t\t\treturn (data2.maxNum > data1.maxNum) ? 1 : 0;\n//\t\t\t}\n//\t\t});\n//\t\tfor (int i=0; i<BUDGET; i++) {\n//\t\t\t//f_3.write(turkerData.get(i).beforeClampingScore + \" \" + \n//\t\t\t\t\t//turkerData.get(i).afterClampingScore + \" \" +\n//\t\t\t\t\t//turkerData.get(i).maxNum + \" \" +\n//\t\t\t\t\t//turkerData.get(i).maxEntropy + \"\\n\");\n//\t\t}\n\t\t//f3.write(\"\\n\\n\");\n\t\t//generateTopK(2);\n\t\n\n\t\t\n\t\tf.close();\n f2.close();\n f3.close();\n// facc.close();\n// double acc = (double)rightToks/(double)totalToks;\n// System.out.println(\"Correct tokens: \" + rightToks);\n// System.out.println(\"Total tokens: \" + totalToks);\n// System.out.println(\"Accuracy: \" + acc);\n\t}", "title": "" }, { "docid": "ef37b9bb94a765e015e36ca043569ed7", "score": "0.65181047", "text": "@Test(timeout = 4000)\n public void test49() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n boolean boolean0 = FileSystemHandling.shouldThrowIOException(evoSuiteFile0);\n assertTrue(boolean0);\n \n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(regressionByDiscretization0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertNotNull(capabilities0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n \n Instances instances0 = testInstances0.generate(\" \");\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertFalse(regressionByDiscretization0.getDebug());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertFalse(testInstances0.getNoClass());\n assertEquals(20, testInstances0.getNumInstances());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNumeric());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(1, instances0.numClasses());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(3, instances0.classIndex());\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n \n // Undeclared exception!\n try { \n evaluation0.unweightedMicroFmeasure();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "0bed2fc034b0ebd12f4f278a525dbb87", "score": "0.6508816", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n int[] intArray0 = new int[6];\n intArray0[3] = (-1);\n intArray0[1] = (-2);\n intArray0[2] = (-2);\n intArray0[3] = (-2);\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n \n double double1 = evaluation0.weightedRecall();\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation1.setDiscardPredictions(false);\n double double2 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double2, 0.01);\n \n evaluation0.incorrect();\n double double3 = evaluation0.weightedFalsePositiveRate();\n assertEquals(double3, double1, 0.01);\n assertEquals(Double.NaN, double3, 0.01);\n }", "title": "" }, { "docid": "8dfaa898bc0d57d2c78fed4ed022ff1b", "score": "0.65038997", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n String[] stringArray0 = new String[5];\n stringArray0[0] = \".bsi\";\n stringArray0[1] = \".arff\";\n stringArray0[2] = \"@relation\";\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "26167dfb76c0499357e1d7f61c627592", "score": "0.6460449", "text": "@Test(timeout = 4000)\n public void test42() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(regressionByDiscretization0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n \n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertNotNull(capabilities0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n \n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(testInstances0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n \n Instances instances0 = testInstances0.generate(\"|J\");\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(instances0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n \n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertNotNull(evaluation0);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n double[] doubleArray0 = new double[9];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-2);\n doubleArray0[2] = (double) 1;\n doubleArray0[3] = (double) 0;\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n doubleArray0[6] = (double) 0;\n DenseInstance denseInstance0 = new DenseInstance(1, doubleArray0);\n assertEquals(6, AbstractInstance.s_numericAfterDecimalPoint);\n assertNotNull(denseInstance0);\n assertArrayEquals(new double[] {2.0, (-2.0), 1.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0}, doubleArray0, 0.01);\n assertEquals(1.0, denseInstance0.weight(), 0.01);\n assertEquals(9, denseInstance0.numAttributes());\n assertEquals(9, denseInstance0.numValues());\n assertEquals(9, doubleArray0.length);\n \n boolean boolean0 = FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"|J\");\n assertFalse(boolean0);\n \n double[] doubleArray1 = new double[3];\n assertFalse(doubleArray1.equals((Object)doubleArray0));\n \n doubleArray1[0] = (double) 2;\n doubleArray1[1] = (double) 2;\n doubleArray1[2] = (double) 1;\n evaluation0.updateMargins(doubleArray1, 2, 3284.69134);\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertArrayEquals(new double[] {2.0, 2.0, 1.0}, doubleArray1, 0.01);\n assertFalse(doubleArray1.equals((Object)doubleArray0));\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n assertEquals(3, doubleArray1.length);\n assertNotSame(doubleArray1, doubleArray0);\n \n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(1, RegressionByDiscretization.ESTIMATOR_KERNEL);\n assertEquals(0, RegressionByDiscretization.ESTIMATOR_HISTOGRAM);\n assertEquals(2, RegressionByDiscretization.ESTIMATOR_NORMAL);\n assertEquals((-2), TestInstances.NO_CLASS);\n assertEquals((-1), TestInstances.CLASS_IS_LAST);\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(\"Number of bins for discretization.\", regressionByDiscretization0.numBinsTipText());\n assertEquals(10, regressionByDiscretization0.getNumBins());\n assertEquals(\"If set to true, equal-frequency binning will be used instead of equal-width binning.\", regressionByDiscretization0.useEqualFrequencyTipText());\n assertFalse(regressionByDiscretization0.getUseEqualFrequency());\n assertFalse(regressionByDiscretization0.getDeleteEmptyBins());\n assertEquals(\"The base classifier to be used.\", regressionByDiscretization0.classifierTipText());\n assertEquals(\"Whether to delete empty bins after discretization.\", regressionByDiscretization0.deleteEmptyBinsTipText());\n assertFalse(regressionByDiscretization0.getDebug());\n assertEquals(\"The density estimator to use.\", regressionByDiscretization0.estimatorTypeTipText());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", regressionByDiscretization0.debugTipText());\n assertEquals(\"Whether to minimize absolute error.\", regressionByDiscretization0.minimizeAbsoluteErrorTipText());\n assertFalse(regressionByDiscretization0.getMinimizeAbsoluteError());\n assertTrue(capabilities0.hasDependencies());\n assertEquals(2, capabilities0.getMinimumNumberInstances());\n assertEquals(2, testInstances0.getNumRelationalNominalValues());\n assertEquals(1, testInstances0.getNumRelationalDate());\n assertEquals(20, testInstances0.getNumInstances());\n assertEquals(2, testInstances0.getNumClasses());\n assertEquals(0, testInstances0.getNumRelational());\n assertEquals(1, testInstances0.getNumDate());\n assertEquals(2, testInstances0.getNumNominalValues());\n assertFalse(testInstances0.getMultiInstance());\n assertEquals(10, testInstances0.getNumInstancesRelational());\n assertEquals(0, testInstances0.getClassType());\n assertEquals(1, testInstances0.getSeed());\n assertEquals((-1), testInstances0.getClassIndex());\n assertEquals(1, testInstances0.getNumRelationalNominal());\n assertEquals(\"Testdata\", testInstances0.getRelation());\n assertEquals(\" \", testInstances0.getWordSeparators());\n assertEquals(0, testInstances0.getNumString());\n assertEquals(1, testInstances0.getNumNominal());\n assertEquals(0, testInstances0.getNumRelationalString());\n assertEquals(1, testInstances0.getNumRelationalNumeric());\n assertEquals(4, testInstances0.getNumAttributes());\n assertEquals(1, testInstances0.getNumNumeric());\n assertFalse(testInstances0.getNoClass());\n assertEquals(3, instances0.classIndex());\n assertEquals(\"Testdata\", instances0.relationName());\n assertEquals(1, instances0.numClasses());\n assertEquals(4, instances0.numAttributes());\n assertEquals(20, instances0.numInstances());\n assertEquals(20.0, instances0.sumOfWeights(), 0.01);\n assertEquals(20, instances0.size());\n assertFalse(instances0.checkForStringAttributes());\n assertEquals(Double.NaN, evaluation0.pctIncorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.errorRate(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.incorrect(), 0.01);\n assertEquals(Double.NaN, evaluation0.avgCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctUnclassified(), 0.01);\n assertEquals(0.0, evaluation0.numInstances(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootRelativeSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.sizeOfPredictedRegions(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanSchemeEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.pctCorrect(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, evaluation0.SFMeanEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.correct(), 0.01);\n assertEquals(Double.NaN, evaluation0.coverageOfTestCasesByPredictedRegions(), 0.01);\n assertEquals(Double.NaN, evaluation0.relativeAbsoluteError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanPriorSquaredError(), 0.01);\n assertEquals(Double.NaN, evaluation0.rootMeanSquaredError(), 0.01);\n assertEquals(0.0, evaluation0.totalCost(), 0.01);\n assertEquals(Double.NaN, evaluation0.SFMeanPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanAbsoluteError(), 0.01);\n \n try { \n evaluation0.updateStatsForPredictor((-1), denseInstance0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // DenseInstance doesn't have access to a dataset!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "title": "" }, { "docid": "61029f039dd0c40f100ece6b9e94861d", "score": "0.6450427", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n assertEquals(2, CostSensitiveClassifier.MATRIX_SUPPLIED);\n assertEquals(1, CostSensitiveClassifier.MATRIX_ON_DEMAND);\n assertNotNull(costSensitiveClassifier0);\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier0.seedTipText());\n assertFalse(costSensitiveClassifier0.getDebug());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier0.globalInfo());\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier0.minimizeExpectedCostTipText());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier0.onDemandDirectoryTipText());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier0.classifierTipText());\n assertFalse(costSensitiveClassifier0.getMinimizeExpectedCost());\n assertEquals(1, costSensitiveClassifier0.getSeed());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier0.debugTipText());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier0.costMatrixTipText());\n assertEquals(0, costSensitiveClassifier0.graphType());\n \n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n assertEquals(2, CostSensitiveClassifier.MATRIX_SUPPLIED);\n assertEquals(1, CostSensitiveClassifier.MATRIX_ON_DEMAND);\n assertNotNull(costMatrix0);\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier0.seedTipText());\n assertFalse(costSensitiveClassifier0.getDebug());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier0.globalInfo());\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier0.minimizeExpectedCostTipText());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier0.onDemandDirectoryTipText());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier0.classifierTipText());\n assertFalse(costSensitiveClassifier0.getMinimizeExpectedCost());\n assertEquals(1, costSensitiveClassifier0.getSeed());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier0.debugTipText());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier0.costMatrixTipText());\n assertEquals(0, costSensitiveClassifier0.graphType());\n assertEquals(1, costMatrix0.numRows());\n assertEquals(1, costMatrix0.numColumns());\n assertEquals(1, costMatrix0.size());\n \n try { \n Evaluation.evaluateModel((Classifier) costSensitiveClassifier0, (String[]) null);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: null\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -g\n // \\tOnly outputs the graph representation of the classifier.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.meta.CostSensitiveClassifier:\n // \n // -M\n // \\tMinimize expected misclassification cost. Default is to\n // \\treweight training instances according to costs per class\n // -C <cost file name>\n // \\tFile name of a cost matrix to use. If this is not supplied,\n // \\ta cost matrix will be loaded on demand. The name of the\n // \\ton-demand file is the relation name of the training data\n // \\tplus \\\".cost\\\", and the path to the on-demand file is\n // \\tspecified with the -N option.\n // -N <directory>\n // \\tName of a directory to search for cost files when loading\n // \\tcosts on demand (default current directory).\n // -cost-matrix <matrix>\n // \\tThe cost matrix in Matlab single line format.\n // -S <num>\n // \\tRandom number seed.\n // \\t(default 1)\n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n // -W\n // \\tFull name of base classifier.\n // \\t(default: weka.classifiers.rules.ZeroR)\n // \n // Options specific to classifier weka.classifiers.rules.ZeroR:\n // \n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "32fb3df49ef6d9974dcba3cceab3dc68", "score": "0.6424907", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[12][8];\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"-R\";\n stringArray0[1] = \"_\";\n stringArray0[2] = \"^oR9z\";\n stringArray0[3] = \"inf\";\n stringArray0[4] = \"f3cB;\";\n discretize0.setDesiredWeightOfInstancesPerInterval(4.6);\n stringArray0[5] = \"Getting output instance\";\n discretize0.setOptions(stringArray0);\n discretize0.setUseEqualFrequency(false);\n discretize0.getRevision();\n discretize0.setMakeBinary(true);\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(9);\n assertTrue(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "4d7a960047c8f95dc0ab5b57fab49540", "score": "0.63890266", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 64;\n Version.MINOR = 493;\n doubleArray0[1] = 1608.2289599268;\n doubleArray0[4] = (double) 64;\n doubleArray0[3] = (double) 64;\n doubleArray0[4] = (double) 64;\n doubleArray0[5] = (double) 64;\n doubleArray0[6] = (double) 64;\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 1.0);\n double[] doubleArray1 = new double[2];\n doubleArray1[1] = (double) 64;\n double double0 = evaluation0.weightedFalseNegativeRate();\n double double1 = evaluation0.meanAbsoluteError();\n assertEquals(double1, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, evaluation0.meanPriorAbsoluteError(), 0.01);\n assertEquals(Double.NaN, double1, 0.01);\n }", "title": "" }, { "docid": "428d0516709a45c5fc51b4abdb99d48e", "score": "0.63378936", "text": "@Test(timeout = 4000)\n public void test54() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"HuI)L44;vn \", arrayList0, 1);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1);\n instances0.add((Instance) binarySparseInstance0);\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = 3800.84988;\n SparseInstance sparseInstance0 = new SparseInstance(3800.84988, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute0, (double) 1);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n sparseInstance1.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n binarySparseInstance0.isMissing(attribute0);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n discretize0.calculateCutPoints();\n }", "title": "" }, { "docid": "bbd257f816f94f9bd3f1f1b6ed097506", "score": "0.63003176", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getStructure();\n C45Loader c45Loader0 = new C45Loader();\n c45Loader0.setUseRelativePath(true);\n File file0 = c45Loader0.retrieveFile();\n textDirectoryLoader0.setDirectory(file0);\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"@data\");\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(true);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "0294779cf869a92f0915b487e30655a5", "score": "0.62947744", "text": "double getFeatureCoverage();", "title": "" }, { "docid": "e46fd90c4497bf2ddeccf61edf80ef95", "score": "0.6278633", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\".ycf\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"string\", arrayList0, 2);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n assertFalse(boolean0);\n \n discretize0.calculateCutPoints();\n String string0 = discretize0.getBinRangesString(0);\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"All\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "16c438cda8dc6b584d118f3877408d31", "score": "0.62690485", "text": "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 2);\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n discretize0.setOutputFormat();\n DenseInstance denseInstance0 = new DenseInstance(2);\n discretize0.input(denseInstance0);\n Random.setNextRandom(123);\n }", "title": "" }, { "docid": "fb037c5d52c29724a43fe2ee14715834", "score": "0.6221646", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[0] = \";C|gT,;vK_X2tBONoGI\";\n MockRandom mockRandom0 = new MockRandom(1110L);\n mockRandom0.doubles();\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n MockRandom mockRandom1 = new MockRandom(3328L);\n instances0.randomize(mockRandom1);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n evaluation0.setDiscardPredictions(false);\n evaluation0.KBRelativeInformation();\n evaluation0.incorrect();\n evaluation0.weightedFalsePositiveRate();\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getOptions();\n evaluation0.toSummaryString(true);\n AttributeSelectedClassifier attributeSelectedClassifier0 = new AttributeSelectedClassifier();\n evaluation0.SFSchemeEntropy();\n evaluation0.weightedFalseNegativeRate();\n String string1 = Evaluation.makeOptionString(attributeSelectedClassifier0, false);\n assertFalse(string1.equals((Object)string0));\n }", "title": "" }, { "docid": "336a378a9c40b86dce2e16c170074c16", "score": "0.620689", "text": "@Test\n public void fullCoverageTest() throws ClassNotFoundException, JMetalException {\n Solution solution ;\n for (int i = 0 ; i< solutionSetSize_; i++) {\n solution = new Solution(problem_);\n solution.setObjective(0, i);\n solution.setObjective(1, solutionSetSize_ - 1 - i);\n solutionSet1_.add(solution);\n }\n // Creating set (0.5,N), (1.5, N-1), (2.5, N-2), ... , (N-1+0.5, 1)\n for (int i = 0 ; i< solutionSetSize_; i++) {\n solution = new Solution(problem_);\n solution.setObjective(0, i+0.5);\n solution.setObjective(1, solutionSetSize_ - i);\n solutionSet2_.add(solution);\n }\n\n assertEquals(1.0, new SetCoverage().setCoverage(solutionSet1_, solutionSet2_), EPSILON) ;\n assertEquals(0.0, new SetCoverage().setCoverage(solutionSet2_, solutionSet1_), EPSILON) ;\n }", "title": "" }, { "docid": "2fef099118fccfe8227481d2ccacc0b2", "score": "0.6206426", "text": "@Test(timeout = 4000)\n public void test10() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 69;\n Version.MINOR = 493;\n doubleArray0[1] = 1608.2289599268;\n doubleArray0[4] = (double) 69;\n doubleArray0[3] = (double) 69;\n doubleArray0[4] = (double) 69;\n doubleArray0[5] = (double) 69;\n doubleArray0[6] = (double) 69;\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 1.0);\n double[] doubleArray1 = new double[2];\n doubleArray1[1] = (double) 69;\n textDirectoryLoader0.getDataSet();\n Evaluation evaluation1 = new Evaluation(instances0);\n evaluation0.SFMeanPriorEntropy();\n RandomSubSpace randomSubSpace0 = new RandomSubSpace();\n String string0 = Evaluation.makeOptionString(randomSubSpace0, true);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "02b932cbca7aef4bd7591c0fec257d46", "score": "0.61740595", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7590() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create random local variable\n byte[] vc_1543 = new byte []{109,86,75};\n // StatementAddOnAssert local variable replacement\n com.clearspring.analytics.stream.membership.BloomFilter mergeBf = ((com.clearspring.analytics.stream.membership.BloomFilter) (bf2.merge(bf)));\n // AssertGenerator replace invocation\n boolean o_testGetFalsePositiveProbability_cf7590__44 = // StatementAdderMethod cloned existing statement\nmergeBf.isPresent(vc_1543);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_testGetFalsePositiveProbability_cf7590__44);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "61c303dff56d544a134491674e7adb34", "score": "0.6170469", "text": "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"vjsx8!w\");\n LinkedList<Locale.LanguageRange> linkedList0 = new LinkedList<Locale.LanguageRange>();\n ArrayList<String> arrayList1 = new ArrayList<String>();\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) arrayList1);\n List<String> list1 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) list0);\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute1 = new Attribute(\"@attribute\", list1, protectedProperties0);\n arrayList0.add(attribute1);\n Instances instances0 = new Instances(\"string\", arrayList0, 4);\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(3);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 3\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "698e81af1f85436314dfd85615e9dd8b", "score": "0.6163382", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getOptions();\n double[][] doubleArray0 = new double[12][8];\n discretize0.getRevision();\n discretize0.setMakeBinary(true);\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(9);\n assertTrue(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "65411f74542c5574bbbeaf6a426d4acd", "score": "0.6150393", "text": "@Test\n public void testAutomated_readability_index() {\n System.out.println(\"automated_readability_index\");\n String strText = TEST_STRING;\n double expResult = 143.2;\n double result = ReadabilityStatistics.automated_readability_index(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "440f20938dbec66be0dc120df7086b46", "score": "0.6139065", "text": "@Test\n public void testColeman_liau_index() {\n System.out.println(\"coleman_liau_index\");\n String strText = TEST_STRING;\n double expResult = 6.8;\n double result = ReadabilityStatistics.coleman_liau_index(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "c2eeda1d0b4f386343617de1f629cbf1", "score": "0.61376745", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[0] = \";C|gT,;vK_X2tBONoGI\";\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n MockRandom mockRandom0 = new MockRandom(3328L);\n instances0.randomize(mockRandom0);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(\" -1 0 \\n\", string0);\n \n evaluation0.setDiscardPredictions(false);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n \n evaluation0.incorrect();\n double double1 = evaluation0.weightedFalsePositiveRate();\n assertEquals(Double.NaN, double1, 0.01);\n \n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n textDirectoryLoader0.getOptions();\n evaluation0.toSummaryString(true);\n AttributeSelectedClassifier attributeSelectedClassifier0 = new AttributeSelectedClassifier();\n evaluation0.weightedFalseNegativeRate();\n Evaluation.makeOptionString(attributeSelectedClassifier0, false);\n evaluation0.toSummaryString(\" \", false);\n assertEquals(Double.NaN, evaluation0.weightedFalsePositiveRate(), 0.01);\n }", "title": "" }, { "docid": "9ed4a1833deeb64b30ee9b91689a19a7", "score": "0.6131606", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7656() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create random local variable\n byte[] vc_1575 = new byte []{};\n // StatementAdderMethod cloned existing statement\n instance.add(vc_1575);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)instance).getHashCount(), 8);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)instance).buckets(), 192);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "d5b2bedb3b169ac4bf6eb3651dbccb8e", "score": "0.61014026", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[6];\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n SystemInUtil.addInputLine(\".ycf\");\n Attribute attribute0 = new Attribute(\".ycf\", 62);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\") can't be established.\", arrayList0, 4);\n discretize0.setInputFormat(instances0);\n discretize0.m_DesiredWeightOfInstancesPerInterval = 0.1111111111111111;\n stringArray0[0] = \") can't be established.\";\n stringArray0[1] = \") can't be established.\";\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "35d8648043f55bebc1ad57a92e3bf402", "score": "0.6089054", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n instances0.delete();\n MockRandom mockRandom0 = new MockRandom(0L);\n MockRandom mockRandom1 = new MockRandom(1110L);\n mockRandom1.doubles();\n instances0.randomize(mockRandom1);\n evaluation0.toCumulativeMarginDistributionString();\n evaluation0.setDiscardPredictions(false);\n evaluation0.KBRelativeInformation();\n evaluation0.incorrect();\n evaluation0.weightedFalsePositiveRate();\n textDirectoryLoader0.getOptions();\n String string0 = evaluation0.toSummaryString(true);\n AttributeSelectedClassifier attributeSelectedClassifier0 = new AttributeSelectedClassifier();\n evaluation0.SFSchemeEntropy();\n evaluation0.weightedFalseNegativeRate();\n String string1 = Evaluation.makeOptionString(attributeSelectedClassifier0, true);\n assertFalse(string1.equals((Object)string0));\n }", "title": "" }, { "docid": "93c4faac024be236e122b0991b6ffebc", "score": "0.6071762", "text": "float getEntropyScore();", "title": "" }, { "docid": "5dc173db7bb239858f10d4b1ef493553", "score": "0.60522884", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n instances0.delete();\n MockRandom mockRandom0 = new MockRandom(0L);\n MockRandom mockRandom1 = new MockRandom(1110L);\n instances0.randomize(mockRandom1);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(\" -1 0 \\n\", string0);\n \n evaluation0.setDiscardPredictions(false);\n evaluation0.KBRelativeInformation();\n evaluation0.incorrect();\n evaluation0.weightedFalsePositiveRate();\n String string1 = evaluation0.toSummaryString(true);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string1);\n \n String string2 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string2);\n }", "title": "" }, { "docid": "b8b77bec29656c013593a0d506bac511", "score": "0.60502166", "text": "void testAll()\n {\n String dna = \"CCGGSDFCGTCa\";\n //StorageResource set = new StorageResource();\n //set = getAllGenes(dna);\n //processGenes(set);\n //System.out.println(countGenes(dna));\n System.out.println(cgRatio(dna));\n }", "title": "" }, { "docid": "bf65f1e543ef47aec7546efe2ffa407e", "score": "0.60491014", "text": "@Test\n public void vulnerableXenHypervisorProbabilityTest() {\n Sampler.isDeterministic = false;\n assertEquals(\"Did not bypass IDSs.\", 0.75, probabilityTest(new VulnerableXenHypervisorProbabilityTest()), 0.1);\n }", "title": "" }, { "docid": "8d1c2f4af3966aa9ef786ec395485777", "score": "0.60378766", "text": "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\"L(&4\", linkedList0, (-679));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"string\", arrayList0, 1);\n instances0.toString();\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n discretize0.setOutputFormat();\n discretize0.numPendingOutput();\n attribute0.equalsMsg(\"@relation string\\n\\n@attribute L(&4 {}\\n\\n@data\\n\");\n discretize0.isNewBatch();\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 3;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance((-3103.837), doubleArray0);\n SparseInstance sparseInstance0 = new SparseInstance((SparseInstance) binarySparseInstance0);\n discretize0.convertInstance(binarySparseInstance0);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(2);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "def6f0ab5552338836e028d7b8bd9e77", "score": "0.60360855", "text": "@Test(timeout = 4000)\n public void test15() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-1550));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n }", "title": "" }, { "docid": "9a8de4c9a757dd1e01c8ad1ac1dfa7cc", "score": "0.603263", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7643_cf10382_failAssert0() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_44_1 = 150080;\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n // MethodAssertGenerator build local variable\n Object o_10_0 = instance.getHashCount();\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n // MethodAssertGenerator build local variable\n Object o_19_0 = instance.getHashCount();\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n // MethodAssertGenerator build local variable\n Object o_28_0 = instance.getHashCount();\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n // MethodAssertGenerator build local variable\n Object o_37_0 = instance.getHashCount();\n // StatementAddOnAssert local variable replacement\n com.clearspring.analytics.stream.membership.BloomFilter mergeBf = ((com.clearspring.analytics.stream.membership.BloomFilter) (bf2.merge(bf)));\n // AssertGenerator replace invocation\n int o_testGetFalsePositiveProbability_cf7643__42 = // StatementAdderMethod cloned existing statement\nmergeBf.emptyBuckets();\n // MethodAssertGenerator build local variable\n Object o_44_0 = o_testGetFalsePositiveProbability_cf7643__42;\n // StatementAdderOnAssert create null value\n java.lang.String vc_2194 = (java.lang.String)null;\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.BloomFilter vc_2192 = (com.clearspring.analytics.stream.membership.BloomFilter)null;\n // StatementAdderMethod cloned existing statement\n vc_2192.add(vc_2194);\n org.junit.Assert.fail(\"testGetFalsePositiveProbability_cf7643_cf10382 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "title": "" }, { "docid": "65c064137ab8e2d0f34ec79f4ff840fd", "score": "0.59937793", "text": "@Test(timeout = 4000)\n public void test43() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"relational\", arrayList0, 1);\n String[] stringArray0 = new String[7];\n SparseInstance sparseInstance0 = new SparseInstance(2);\n instances0.add((Instance) sparseInstance0);\n stringArray0[0] = \"@data\";\n stringArray0[2] = \"relational\";\n stringArray0[3] = \"relational\";\n stringArray0[4] = \"integer\";\n stringArray0[5] = \"real\";\n stringArray0[6] = \"date\";\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n SparseInstance sparseInstance1 = new SparseInstance(527.34601, doubleArray0);\n instances0.add((Instance) sparseInstance1);\n sparseInstance1.setValue(attribute0, (-2393.229239409172));\n SparseInstance sparseInstance2 = new SparseInstance(sparseInstance1);\n sparseInstance1.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n instances0.add((Instance) sparseInstance2);\n Filter.useFilter(instances0, discretize0);\n discretize0.setOutputFormat();\n System.setCurrentTimeMillis((-2594L));\n }", "title": "" }, { "docid": "57caf95c0f307a19620d9af5926e5342", "score": "0.59914356", "text": "@Test\n public void acquisitionCostTest() {\n // TODO: test acquisitionCost\n }", "title": "" }, { "docid": "3354ad0d6d1197be15430a0597436004", "score": "0.59888434", "text": "@Test\n public void testFlesch_kincaid_reading_ease() {\n System.out.println(\"flesch_kincaid_reading_ease\");\n String strText = TEST_STRING;\n double expResult = -188.4;\n double result = ReadabilityStatistics.flesch_kincaid_reading_ease(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "bbf16ada7753443eca4ab036e34ca842", "score": "0.5986749", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 69;\n doubleArray0[1] = 1608.2289599268;\n doubleArray0[2] = (double) 69;\n doubleArray0[3] = (double) 69;\n doubleArray0[4] = (double) 69;\n doubleArray0[5] = (double) 69;\n doubleArray0[6] = (double) 69;\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 1.0);\n evaluation0.setDiscardPredictions(true);\n double double0 = evaluation0.KBRelativeInformation();\n assertTrue(evaluation0.getDiscardPredictions());\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "741e07a41050e3bbe6f467426383fbed", "score": "0.59863245", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\".ycf\", (-1816));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"=\\\"D>o[8X:(P;+\", arrayList0, 0);\n Discretize discretize1 = new Discretize();\n assertFalse(discretize1.getMakeBinary());\n \n boolean boolean0 = discretize1.setInputFormat(instances0);\n assertFalse(boolean0);\n \n String[] stringArray0 = new String[0];\n discretize1.setOptions(stringArray0);\n assertEquals((-1.0), discretize1.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize1.getUseBinNumbers());\n assertFalse(discretize1.getUseEqualFrequency());\n assertFalse(discretize1.getFindNumBins());\n assertEquals(10, discretize1.getBins());\n }", "title": "" }, { "docid": "d959c3113fcf916afb48cd0d0a29eb4f", "score": "0.5985383", "text": "@Test\n\tpublic void testSingleCrossingScenarioEqualDemandCapacityRatio(){\n\t\tFixture fixture = new Fixture(900, 1800, 0.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzer = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzer = fixture.run(signalAnalyzer);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimes = signalAnalyzer.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycle = signalAnalyzer.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystem = signalAnalyzer.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLink = generalAnalyzer.getAvgDelayPerLink();\n\t\tDouble avgDelayWE = avgDelayPerLink.get(Id.createLinkId(\"2_3\"));\n\t\tDouble avgDelayNS = avgDelayPerLink.get(Id.createLinkId(\"7_3\"));\n\t\t\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimes.get(signalGroupId1) + \", \" + totalSignalGreenTimes.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycle.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycle.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystem.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayWE + \", \" + avgDelayNS);\n\t\t\n\t\tAssert.assertEquals(\"total signal green times should not differ more than 1%\", 1, \n\t\t\t\ttotalSignalGreenTimes.get(signalGroupId1)/totalSignalGreenTimes.get(signalGroupId2), 0.01);\n\t\tAssert.assertEquals(\"avg signal green times per cycle should not differ more than 1%\", \n\t\t\t\t1, avgSignalGreenTimePerCycle.get(signalGroupId1)/avgSignalGreenTimePerCycle.get(signalGroupId2), 0.01);\n//\t\tAssert.assertEquals(\"avg delay per vehicle per link should not differ more than 5%\", 1, avgDelayWE/avgDelayNS, 0.05);\n\t\t/* I commented the last line out because the delay strongly depends on the stabilizing regime, namely the arrival rates that are used.\n\t\t * Even if I use fixed average arrival rates of 0.5 per lane and link, the delays of both directions do not correlate.\n\t\t * Maybe that is okay since the signal green times are still the same, i.e. only the green phases are distributed differently over the simulation time...?\n\t\t * theresa, jun'2020\n\t\t */\n\t}", "title": "" }, { "docid": "6f5c860f3a2796dc965b5358f87aa031", "score": "0.59812504", "text": "@Test(timeout = 4000)\n public void test53() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/wekafiles\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"1]ucba&\\\"wjW~2a\");\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"HuI)L44;vn \", arrayList0, 1);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1);\n instances0.add((Instance) binarySparseInstance0);\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = 3800.84988;\n SparseInstance sparseInstance0 = new SparseInstance(3800.84988, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute0, (double) 1);\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n sparseInstance1.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n discretize0.setOutputFormat();\n System.setCurrentTimeMillis(2);\n discretize0.convertInstance(sparseInstance1);\n System.setCurrentTimeMillis(1);\n // Undeclared exception!\n try { \n discretize0.findNumBins(1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "85dfe69e7352b19e68c43b79cc1cfa09", "score": "0.59548813", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7646() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // AssertGenerator replace invocation\n java.lang.String o_testGetFalsePositiveProbability_cf7646__39 = // StatementAdderMethod cloned existing statement\ninstance.toString();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testGetFalsePositiveProbability_cf7646__39, \"{}\");\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "c5feb6a1c99a5b5706afd76ec76c8ac7", "score": "0.59492564", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7625() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.Filter[] vc_1558 = (com.clearspring.analytics.stream.membership.Filter[])null;\n // StatementAddOnAssert local variable replacement\n com.clearspring.analytics.stream.membership.BloomFilter mergeBf = ((com.clearspring.analytics.stream.membership.BloomFilter) (bf2.merge(bf)));\n // AssertGenerator replace invocation\n com.clearspring.analytics.stream.membership.Filter o_testGetFalsePositiveProbability_cf7625__44 = // StatementAdderMethod cloned existing statement\nmergeBf.merge(vc_1558);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7625__44).getHashCount(), 10);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7625__44).buckets(), 150080);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "35a02ea89c3d25597ce0616c3ed5328b", "score": "0.5947175", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n discretize0.setFindNumBins(true);\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"real\", arrayList0, 1);\n discretize0.setInputFormat(instances0);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n int[] intArray0 = new int[0];\n SparseInstance sparseInstance0 = new SparseInstance(1.7976931348623157E308, doubleArray0, intArray0, 1);\n instances0.add((Instance) sparseInstance0);\n SparseInstance sparseInstance1 = new SparseInstance((Instance) sparseInstance0);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "699b81a8d533705cf81ef0fa3481b4a8", "score": "0.5945627", "text": "@Test\n\tpublic void testSingleCrossingScenarioLowVsHighDemandWithMinG(){\n\t\tFixture fixture = new Fixture(90, 1800, 5.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzer = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzer = fixture.run(signalAnalyzer);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimes = signalAnalyzer.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycle = signalAnalyzer.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystem = signalAnalyzer.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLink = generalAnalyzer.getAvgDelayPerLink();\n\t\tDouble avgDelayWE = avgDelayPerLink.get(Id.createLinkId(\"2_3\"));\n\t\tDouble avgDelayNS = avgDelayPerLink.get(Id.createLinkId(\"7_3\"));\n\t\t\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimes.get(signalGroupId1) + \", \" + totalSignalGreenTimes.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycle.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycle.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystem.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayWE + \", \" + avgDelayNS);\n\t\t\n\t\tAssert.assertTrue(\"total signal green time of WE-direction should be higher than NS-direction\", \n\t\t\t\ttotalSignalGreenTimes.get(signalGroupId1)-totalSignalGreenTimes.get(signalGroupId2) > 0);\n\t\tAssert.assertTrue(\"avg signal green time per cycle of WE-direction should be higher than NS-direction\", \n\t\t\t\tavgSignalGreenTimePerCycle.get(signalGroupId1)-avgSignalGreenTimePerCycle.get(signalGroupId2) > 0);\n\t\tAssert.assertEquals(\"avg signal green time per cycle of NS-direction should be the minimum green time of 5 seconds\", \n\t\t\t\t5.0, avgSignalGreenTimePerCycle.get(signalGroupId2), MatsimTestUtils.EPSILON);\n\t\tAssert.assertTrue(\"cycle time should stay below 90 seconds\", avgCycleTimePerSystem.get(signalSystemId) <= 90);\n\t\tAssert.assertTrue(\"avg delay per vehicle on WS-direction should be less than on NS-direction\", avgDelayWE<avgDelayNS);\n\t}", "title": "" }, { "docid": "1343f846c3fe3f2e548733e74c18687e", "score": "0.59443873", "text": "@Test(timeout = 4000)\n public void test161() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 0);\n resultMatrixCSV0.doubleToString(0, 0);\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixCSV0);\n resultMatrixHTML0.setStdDevPrec(1);\n Integer integer0 = new Integer(0);\n resultMatrixHTML0.getMeanPrec();\n int int0 = 2418;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(2418, 3149);\n }", "title": "" }, { "docid": "e48c03ee221e510873da25939e63942a", "score": "0.59431106", "text": "@Test\n\tpublic void testSingleCrossingScenarioWithDifferentFlowCapacityFactors(){\n\t\tFixture fixtureFlowCap1 = new Fixture(360, 1800, 0.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzerFlowCap1 = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerFlowCap1 = fixtureFlowCap1.run(signalAnalyzerFlowCap1);\n\t\t\n\t\tFixture fixtureFlowCap2 = new Fixture(360, 1800, 0.0, Regime.COMBINED);\n\t\tfixtureFlowCap2.doublePopulation();\n\t\tSignalAnalysisTool signalAnalyzerFlowCap2 = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzerFlowCap2 = fixtureFlowCap2.run(signalAnalyzerFlowCap2);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimesFlowCap2 = signalAnalyzerFlowCap2.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleFlowCap2 = signalAnalyzerFlowCap2.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemFlowCap2 = signalAnalyzerFlowCap2.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkFlowCap2 = generalAnalyzerFlowCap2.getAvgDelayPerLink();\n\t\t\n\t\tlog.info(\"*** flow capacity 2.0 ***\");\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimesFlowCap2.get(signalGroupId1) + \", \" + totalSignalGreenTimesFlowCap2.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleFlowCap2.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleFlowCap2.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemFlowCap2.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkFlowCap2.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkFlowCap2.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerFlowCap2.getTotalDelay());\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimesFlowCap1 = signalAnalyzerFlowCap1.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycleFlowCap1 = signalAnalyzerFlowCap1.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystemFlowCap1 = signalAnalyzerFlowCap1.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLinkFlowCap1 = generalAnalyzerFlowCap1.getAvgDelayPerLink();\n\n\t\tlog.info(\"*** flow capacity 1.0 ***\");\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimesFlowCap1.get(signalGroupId1) + \", \" + totalSignalGreenTimesFlowCap1.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycleFlowCap1.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycleFlowCap1.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystemFlowCap1.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayPerLinkFlowCap1.get(Id.createLinkId(\"2_3\")) + \", \" + avgDelayPerLinkFlowCap1.get(Id.createLinkId(\"7_3\")));\n\t\tlog.info(\"Total delay: \" + generalAnalyzerFlowCap1.getTotalDelay());\n\t\t\n\t\tAssert.assertEquals(\"total signal green times should not differ\", 1, \n\t\t\t\ttotalSignalGreenTimesFlowCap1.get(signalGroupId1)/totalSignalGreenTimesFlowCap2.get(signalGroupId1), 0.01);\n\t\tAssert.assertEquals(\"total signal green times should not differ\", 1, \n\t\t\t\ttotalSignalGreenTimesFlowCap1.get(signalGroupId2)/totalSignalGreenTimesFlowCap2.get(signalGroupId2), 0.01);\n\t\tAssert.assertEquals(\"avg signal green times per cycle should not differ\", avgSignalGreenTimePerCycleFlowCap1.get(signalGroupId1), \n\t\t\t\tavgSignalGreenTimePerCycleFlowCap2.get(signalGroupId1), 0.1);\n\t\tAssert.assertEquals(\"avg signal green times per cycle should not differ\", avgSignalGreenTimePerCycleFlowCap1.get(signalGroupId2), \n\t\t\t\tavgSignalGreenTimePerCycleFlowCap2.get(signalGroupId2), 0.1);\n\t\tAssert.assertEquals(\"avg cycle time should not differ\", avgCycleTimePerSystemFlowCap1.get(signalSystemId),\n\t\t\t\tavgCycleTimePerSystemFlowCap2.get(signalSystemId), 0.1);\n\t\tAssert.assertEquals(\"avg delay per vehicle per link should not differ\", \n\t\t\t\tavgDelayPerLinkFlowCap1.get(Id.createLinkId(\"2_3\")), avgDelayPerLinkFlowCap2.get(Id.createLinkId(\"2_3\")), 0.1);\n\t\tAssert.assertEquals(\"avg delay per vehicle per link should not differ\", \n\t\t\t\tavgDelayPerLinkFlowCap1.get(Id.createLinkId(\"7_3\")), avgDelayPerLinkFlowCap2.get(Id.createLinkId(\"7_3\")), 2);\n\t\tAssert.assertEquals(\"total delay for doubled demand should be doubled\", 2, generalAnalyzerFlowCap2.getTotalDelay()/generalAnalyzerFlowCap1.getTotalDelay(), 0.1);\n\t}", "title": "" }, { "docid": "0fc50c4778508df8fe4d69c52c2eb9d7", "score": "0.5938871", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7623() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.Filter[] vc_1558 = (com.clearspring.analytics.stream.membership.Filter[])null;\n // AssertGenerator replace invocation\n com.clearspring.analytics.stream.membership.Filter o_testGetFalsePositiveProbability_cf7623__41 = // StatementAdderMethod cloned existing statement\ninstance.merge(vc_1558);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7623__41).buckets(), 192);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7623__41).getHashCount(), 8);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "048cac068e107213400de08e022f86c2", "score": "0.59343535", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7609() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.BloomFilter vc_1550 = (com.clearspring.analytics.stream.membership.BloomFilter)null;\n // AssertGenerator replace invocation\n com.clearspring.analytics.stream.membership.BloomFilter o_testGetFalsePositiveProbability_cf7609__41 = // StatementAdderMethod cloned existing statement\nvc_1550.alwaysMatchingBloomFilter();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7609__41).buckets(), 64);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)o_testGetFalsePositiveProbability_cf7609__41).getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "72d7f3d92872453d4a5d30d3b1df815f", "score": "0.59325975", "text": "@Test\n public void testDale_chall_grade() {\n System.out.println(\"dale_chall_grade\");\n String strText = TEST_STRING;\n double expResult = 16.0;\n double result = ReadabilityStatistics.dale_chall_grade(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "5c571e92ef67b0736e9ca82039479473", "score": "0.5923851", "text": "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"relational\", arrayList0, 1);\n String[] stringArray0 = new String[7];\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1);\n instances0.add((Instance) binarySparseInstance0);\n stringArray0[0] = \"@data\";\n stringArray0[2] = \"relational\";\n stringArray0[3] = \"relational\";\n stringArray0[4] = \"integer\";\n stringArray0[5] = \"real\";\n stringArray0[6] = \"date\";\n discretize0.setInputFormat(instances0);\n discretize0.setUseEqualFrequency(true);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n SparseInstance sparseInstance0 = new SparseInstance(527.34601, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute0, (-2393.229239409172));\n SparseInstance sparseInstance1 = new SparseInstance(sparseInstance0);\n sparseInstance0.toString(attribute0);\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, false, false);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n discretize0.setOutputFormat();\n System.setCurrentTimeMillis((-2594L));\n discretize0.convertInstance(sparseInstance0);\n assertTrue(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "ac3be5e7e8002767a4232ee165c046f7", "score": "0.59127593", "text": "@Test\n public void testFlesch_kincaid_grade_level() {\n System.out.println(\"flesch_kincaid_grade_level\");\n String strText = TEST_STRING;\n double expResult = 112.3;\n double result = ReadabilityStatistics.flesch_kincaid_grade_level(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "f6d82dda0d905aa55c4fc15250a9d0c8", "score": "0.5907709", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setAttributeIndices(\"\");\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(4, stringArray0.length);\n }", "title": "" }, { "docid": "261a2a0e3994509c73f891361905da2f", "score": "0.5906554", "text": "@Test\n\tpublic void testSingleCrossingScenarioLowVsHighDemandWoMinG(){\n\t\tFixture fixture = new Fixture(90, 1800, 0.0, Regime.COMBINED);\n\t\tSignalAnalysisTool signalAnalyzer = new SignalAnalysisTool();\n\t\tDelayAnalysisTool generalAnalyzer = fixture.run(signalAnalyzer);\n\t\t\n\t\tMap<Id<SignalGroup>, Double> totalSignalGreenTimes = signalAnalyzer.getTotalSignalGreenTime(); \n\t\tMap<Id<SignalGroup>, Double> avgSignalGreenTimePerCycle = signalAnalyzer.calculateAvgSignalGreenTimePerFlexibleCycle(); \n\t\tMap<Id<SignalSystem>, Double> avgCycleTimePerSystem = signalAnalyzer.calculateAvgFlexibleCycleTimePerSignalSystem(); \n\t\tMap<Id<Link>, Double> avgDelayPerLink = generalAnalyzer.getAvgDelayPerLink();\n\t\tDouble avgDelayWE = avgDelayPerLink.get(Id.createLinkId(\"2_3\"));\n\t\tDouble avgDelayNS = avgDelayPerLink.get(Id.createLinkId(\"7_3\"));\n\t\t\n\t\tlog.info(\"total signal green times: \" + totalSignalGreenTimes.get(signalGroupId1) + \", \" + totalSignalGreenTimes.get(signalGroupId2));\n\t\tlog.info(\"avg signal green times per cycle: \" + avgSignalGreenTimePerCycle.get(signalGroupId1) + \", \"\n\t\t\t\t+ avgSignalGreenTimePerCycle.get(signalGroupId2));\n\t\tlog.info(\"avg cycle time per system: \" + avgCycleTimePerSystem.get(signalSystemId));\n\t\tlog.info(\"avg delay per link: \" + avgDelayWE + \", \" + avgDelayNS);\n\t\t\n\t\tAssert.assertTrue(\"total signal green time of WE-direction should be higher than NS-direction\", \n\t\t\t\ttotalSignalGreenTimes.get(signalGroupId1)-totalSignalGreenTimes.get(signalGroupId2) > 0);\n\t\tAssert.assertTrue(\"avg signal green time per cycle of WE-direction should be higher than NS-direction\", \n\t\t\t\tavgSignalGreenTimePerCycle.get(signalGroupId1)-avgSignalGreenTimePerCycle.get(signalGroupId2) > 0);\n\t\tAssert.assertTrue(\"avg signal green time per cycle of NS-direction should be less than 5 seconds\", avgSignalGreenTimePerCycle.get(signalGroupId2) < 5.0);\n\t\tAssert.assertTrue(\"cycle time should stay below 90 seconds\", avgCycleTimePerSystem.get(signalSystemId) <= 90);\n\t\tAssert.assertTrue(\"avg delay per vehicle on WS-direction should be less than on NS-direction\", avgDelayWE<avgDelayNS);\n\t}", "title": "" }, { "docid": "9b98c7be0bce424078f3b733f5d5246a", "score": "0.58936816", "text": "@org.junit.Test(timeout = 10000)\n public void testSizing_cf57121_cf58414_failAssert78() throws java.io.IOException {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_71_1 = 150080;\n // MethodAssertGenerator build local variable\n Object o_69_1 = 10;\n com.clearspring.analytics.stream.membership.BloomFilter f = null;\n // MethodAssertGenerator build local variable\n Object o_2_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(10, 0.05)).buckets();\n // MethodAssertGenerator build local variable\n Object o_8_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100, 0.05).buckets();\n // MethodAssertGenerator build local variable\n Object o_11_0 = new com.clearspring.analytics.stream.membership.BloomFilter(1000, 0.05).buckets();\n // MethodAssertGenerator build local variable\n Object o_14_0 = new com.clearspring.analytics.stream.membership.BloomFilter(10000, 0.05).buckets();\n // MethodAssertGenerator build local variable\n Object o_17_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100000, 0.05).buckets();\n // MethodAssertGenerator build local variable\n Object o_20_0 = new com.clearspring.analytics.stream.membership.BloomFilter(1000000, 0.05).buckets();\n // MethodAssertGenerator build local variable\n Object o_23_0 = new com.clearspring.analytics.stream.membership.BloomFilter(10, 0.01).buckets();\n // MethodAssertGenerator build local variable\n Object o_26_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100, 0.01).buckets();\n // MethodAssertGenerator build local variable\n Object o_29_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(1000, 0.01)).buckets();\n // MethodAssertGenerator build local variable\n Object o_35_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(10000, 0.01)).buckets();\n // MethodAssertGenerator build local variable\n Object o_41_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(100000, 0.01)).buckets();\n // MethodAssertGenerator build local variable\n Object o_47_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(1000000, 0.01)).buckets();\n for (java.lang.String s : new com.clearspring.analytics.stream.membership.KeyGenerator.RandomStringGenerator(new java.util.Random().nextInt(), 1000000)) {\n f.add(s);\n }\n // MethodAssertGenerator build local variable\n Object o_60_0 = f.buckets();\n // StatementAdderOnAssert create random local variable\n byte[] vc_13027 = new byte []{59,33,36};\n // AssertGenerator add assertion\n byte[] array_1528637260 = new byte[]{59, 33, 36};\n\tbyte[] array_1529270037 = (byte[])vc_13027;\n\tfor(int ii = 0; ii <array_1528637260.length; ii++) {\n\t\torg.junit.Assert.assertEquals(array_1528637260[ii], array_1529270037[ii]);\n\t};\n // StatementAddOnAssert local variable replacement\n com.clearspring.analytics.stream.membership.BloomFilter mergeBf = ((com.clearspring.analytics.stream.membership.BloomFilter) (bf2.merge(bf)));\n // MethodAssertGenerator build local variable\n Object o_69_0 = ((com.clearspring.analytics.stream.membership.BloomFilter)mergeBf).getHashCount();\n // MethodAssertGenerator build local variable\n Object o_71_0 = ((com.clearspring.analytics.stream.membership.BloomFilter)mergeBf).buckets();\n // AssertGenerator replace invocation\n boolean o_testSizing_cf57121__67 = // StatementAdderMethod cloned existing statement\nmergeBf.isPresent(vc_13027);\n // MethodAssertGenerator build local variable\n Object o_75_0 = o_testSizing_cf57121__67;\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.BloomFilter vc_13228 = (com.clearspring.analytics.stream.membership.BloomFilter)null;\n // StatementAdderMethod cloned existing statement\n vc_13228.toString();\n org.junit.Assert.fail(\"testSizing_cf57121_cf58414 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "title": "" }, { "docid": "5bf8d5dbfa22705cd890f85a37101a2d", "score": "0.58936167", "text": "@org.junit.Test(timeout = 10000)\n public void testSizing_cf57160_failAssert16_add61758() throws java.io.IOException {\n // AssertGenerator generate try/catch block with fail statement\n try {\n com.clearspring.analytics.stream.membership.BloomFilter f = null;\n // MethodAssertGenerator build local variable\n Object o_2_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(10, 0.05)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_2_0, 128);\n // MethodAssertGenerator build local variable\n Object o_8_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_8_0, 768);\n // MethodAssertGenerator build local variable\n Object o_11_0 = new com.clearspring.analytics.stream.membership.BloomFilter(1000, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_11_0, 7040);\n // MethodAssertGenerator build local variable\n Object o_14_0 = new com.clearspring.analytics.stream.membership.BloomFilter(10000, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_14_0, 70080);\n // MethodAssertGenerator build local variable\n Object o_17_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100000, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_17_0, 700032);\n // MethodAssertGenerator build local variable\n Object o_20_0 = new com.clearspring.analytics.stream.membership.BloomFilter(1000000, 0.05).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_20_0, 7000064);\n // MethodAssertGenerator build local variable\n Object o_23_0 = new com.clearspring.analytics.stream.membership.BloomFilter(10, 0.01).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_23_0, 128);\n // MethodAssertGenerator build local variable\n Object o_26_0 = new com.clearspring.analytics.stream.membership.BloomFilter(100, 0.01).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_26_0, 1024);\n // MethodAssertGenerator build local variable\n Object o_29_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(1000, 0.01)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_29_0, 10048);\n // MethodAssertGenerator build local variable\n Object o_35_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(10000, 0.01)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_35_0, 100032);\n // MethodAssertGenerator build local variable\n Object o_41_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(100000, 0.01)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_41_0, 1000064);\n // MethodAssertGenerator build local variable\n Object o_47_0 = (f = new com.clearspring.analytics.stream.membership.BloomFilter(1000000, 0.01)).buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_47_0, 10000064);\n for (java.lang.String s : new com.clearspring.analytics.stream.membership.KeyGenerator.RandomStringGenerator(new java.util.Random().nextInt(), 1000000)) {\n // MethodCallAdder\n f.add(s);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)f).getHashCount(), 5);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)f).buckets(), 10000064);\n f.add(s);\n }\n // MethodAssertGenerator build local variable\n Object o_60_0 = f.buckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_60_0, 10000064);\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.BloomFilter vc_13046 = (com.clearspring.analytics.stream.membership.BloomFilter)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_13046);\n // StatementAdderMethod cloned existing statement\n vc_13046.tserializer();\n org.junit.Assert.fail(\"testSizing_cf57160 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "title": "" }, { "docid": "a5cb1365857a7666bbe9164fecb322ac", "score": "0.5888387", "text": "@Test(timeout = 4000)\n public void test48() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n StringTokenizer stringTokenizer0 = new StringTokenizer(\"@attribute\", \"string\");\n Instances instances0 = new Instances(\"real\", arrayList0, 1);\n arrayList0.add(attribute0);\n boolean boolean0 = discretize0.m_MakeBinary;\n discretize0.setInputFormat(instances0);\n discretize0.setMakeBinary(true);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(0);\n binarySparseInstance0.insertAttributeAt(0);\n instances0.add((Instance) binarySparseInstance0);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance(0);\n binarySparseInstance1.isMissing(attribute0);\n attribute0.value(1);\n instances0.add((Instance) binarySparseInstance1);\n Filter.useFilter(instances0, discretize0);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 1;\n BinarySparseInstance binarySparseInstance2 = new BinarySparseInstance((-2770.8229), doubleArray0);\n DenseInstance denseInstance0 = new DenseInstance(2);\n discretize0.convertInstance(denseInstance0);\n }", "title": "" }, { "docid": "d9e82a09f51eb7d1b13beb776a504f2f", "score": "0.5885371", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 2);\n instances0.toString();\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n discretize0.setOutputFormat();\n discretize0.isNewBatch();\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = (double) 2;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 3;\n doubleArray0[6] = (double) 0;\n doubleArray0[7] = (double) 0;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4, doubleArray0);\n SparseInstance sparseInstance0 = new SparseInstance((SparseInstance) binarySparseInstance0);\n discretize0.convertInstance(sparseInstance0);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(68);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 68\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "e3b741a33cd887ef3d23382bb5694de2", "score": "0.5885106", "text": "@Test(timeout = 4000)\n public void test163() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n resultMatrixHTML0.setMeanPrec((-3056));\n ResultMatrixHTML.main((String[]) null);\n }", "title": "" }, { "docid": "21cc61b1b15d485ef3f4f73b7cdc28cc", "score": "0.5881099", "text": "@Test\n public void testGunning_fog_score() {\n System.out.println(\"gunning_fog_score\");\n String strText = TEST_STRING;\n double expResult = 118.0;\n double result = ReadabilityStatistics.gunning_fog_score(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "6e6f24aec7661e8f400cd0aa6b8e76f9", "score": "0.5879415", "text": "@Test(timeout = 4000)\n public void test156() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[1] = true;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.setMeanPrec(320);\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.setStdDevPrec(1);\n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance(resultMatrixLatex0);\n resultMatrixSignificance1.toStringRanking();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(2, 2);\n ResultMatrixSignificance resultMatrixSignificance2 = new ResultMatrixSignificance(resultMatrixSignificance0);\n ResultMatrixSignificance resultMatrixSignificance3 = new ResultMatrixSignificance(0, 1814);\n ResultMatrixSignificance resultMatrixSignificance4 = new ResultMatrixSignificance(resultMatrixSignificance0);\n resultMatrixSignificance2.toStringSummary();\n resultMatrixSignificance0.setColNameWidth(1);\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n resultMatrixCSV0.getDisplayName();\n ResultMatrixPlainText resultMatrixPlainText1 = new ResultMatrixPlainText();\n resultMatrixPlainText1.getDefaultStdDevWidth();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n resultMatrixHTML0.globalInfo();\n resultMatrixCSV0.toStringMatrix();\n resultMatrixHTML0.setMeanPrec(1622);\n resultMatrixPlainText0.getRowHidden(2);\n resultMatrixSignificance0.getVisibleRowCount();\n resultMatrixHTML0.getRevision();\n int int0 = resultMatrixSignificance4.getCountWidth();\n assertEquals(1, resultMatrixSignificance0.getColNameWidth());\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "01666362f8b663c42192a78c443efa18", "score": "0.5879133", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7643_cf10382_failAssert0_literalMutation19342() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // MethodAssertGenerator build local variable\n Object o_44_1 = 150080;\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_44_1, 150080);\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n // MethodAssertGenerator build local variable\n Object o_10_0 = instance.getHashCount();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_10_0, 7);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n // MethodAssertGenerator build local variable\n Object o_19_0 = instance.getHashCount();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_19_0, 7);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n // MethodAssertGenerator build local variable\n Object o_28_0 = instance.getHashCount();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_28_0, 1);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)instance).getHashCount(), 7);\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(((com.clearspring.analytics.stream.membership.BloomFilter)instance).buckets(), 128);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n // MethodAssertGenerator build local variable\n Object o_37_0 = instance.getHashCount();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_37_0, 7);\n // StatementAddOnAssert local variable replacement\n com.clearspring.analytics.stream.membership.BloomFilter mergeBf = ((com.clearspring.analytics.stream.membership.BloomFilter) (bf2.merge(bf)));\n // AssertGenerator replace invocation\n int o_testGetFalsePositiveProbability_cf7643__42 = // StatementAdderMethod cloned existing statement\nmergeBf.emptyBuckets();\n // MethodAssertGenerator build local variable\n Object o_44_0 = o_testGetFalsePositiveProbability_cf7643__42;\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_44_0, 150080);\n // StatementAdderOnAssert create null value\n java.lang.String vc_2194 = (java.lang.String)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_2194);\n // StatementAdderOnAssert create null value\n com.clearspring.analytics.stream.membership.BloomFilter vc_2192 = (com.clearspring.analytics.stream.membership.BloomFilter)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_2192);\n // StatementAdderMethod cloned existing statement\n vc_2192.add(vc_2194);\n org.junit.Assert.fail(\"testGetFalsePositiveProbability_cf7643_cf10382 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n }", "title": "" }, { "docid": "dc5bf017236594d0eb6c0d81d4621e3a", "score": "0.5878378", "text": "@org.junit.Test(timeout = 10000)\n public void testGetFalsePositiveProbability_cf7642() {\n // These probabilities are taken from the bloom filter probability table at\n // http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n // AssertGenerator replace invocation\n int o_testGetFalsePositiveProbability_cf7642__39 = // StatementAdderMethod cloned existing statement\ninstance.emptyBuckets();\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testGetFalsePositiveProbability_cf7642__39, 192);\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "321084d5a48ecc5088f83fbdc29ebf48", "score": "0.5877274", "text": "@org.junit.Test\n public void testGetFalsePositiveProbability() {\n java.lang.System.out.println(\"expectedFalsePositiveProbability\");\n com.clearspring.analytics.stream.membership.BloomFilter instance = new com.clearspring.analytics.stream.membership.BloomFilter(100, 10);\n double expResult = 0.00819;// m/n=10, k=7\n \n double result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 10);\n expResult = 0.00819;// m/n=10, k=7\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(10, 7);\n org.junit.Assert.assertEquals(7, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 9.0E-6);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 2);\n expResult = 0.393;// m/n=2, k=1\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(2, 1);\n org.junit.Assert.assertEquals(instance.getHashCount(), 1);\n org.junit.Assert.assertEquals(expResult, result, 5.0E-4);\n instance = new com.clearspring.analytics.stream.membership.BloomFilter(10, 11);\n expResult = 0.00509;// m/n=11, k=8\n \n result = com.clearspring.analytics.stream.membership.BloomCalculations.getFalsePositiveProbability(11, 8);\n org.junit.Assert.assertEquals(8, instance.getHashCount());\n org.junit.Assert.assertEquals(expResult, result, 1.0E-5);\n }", "title": "" }, { "docid": "10275ddbd6c2bd027af3cbd4d2e9469c", "score": "0.586942", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.makeBinaryTipText();\n int int0 = 0;\n // Undeclared exception!\n try { \n discretize0.numPendingOutput();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // No output instance format defined\n //\n verifyException(\"weka.filters.Filter\", e);\n }\n }", "title": "" }, { "docid": "9385fdd2c94f3a77237202fb6af7cafb", "score": "0.585977", "text": "@Test\n public void testHypergeometricCdf() {\n System.out.println(\"HypergeometricCdf\");\n int k = 3;\n int n = 10;\n int Kp = 30;\n int Np = 100;\n double expResult = 0.65401998866081;\n double result = DiscreteDistributions.HypergeometricCdf(k, n, Kp, Np);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "35c1c7eba9604f64cf85b3ae55305a6c", "score": "0.5850643", "text": "@Test\n public void costTest() {\n // TODO: test cost\n }", "title": "" }, { "docid": "458a47e68c6c9e7d708eb127bc9dc410", "score": "0.584992", "text": "@Test(timeout = 4000)\n public void test166() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.m_StdDevPrec = 0;\n resultMatrixSignificance0.m_ShowStdDev = true;\n resultMatrixSignificance0.doubleToString((-2541.9081796), 0);\n resultMatrixSignificance0.m_EnumerateRowNames = true;\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n resultMatrixGnuPlot0.assign(resultMatrixSignificance0);\n Vector<String> vector0 = new Vector<String>();\n vector0.setSize(1);\n resultMatrixGnuPlot0.m_HeaderValues = vector0;\n vector0.removeAll(resultMatrixGnuPlot0.m_HeaderValues);\n resultMatrixGnuPlot0.getRevision();\n int int0 = new Integer(1);\n vector0.setSize(1);\n vector0.add(\"]\");\n resultMatrixGnuPlot0.m_PrintRowNames = true;\n resultMatrixSignificance0.setSignificanceWidth(1687);\n resultMatrixGnuPlot0.getRevision();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n double[] doubleArray0 = new double[2];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = (double) 2;\n resultMatrixPlainText0.m_Counts = doubleArray0;\n vector0.parallelStream();\n resultMatrixPlainText0.globalInfo();\n resultMatrixGnuPlot0.getDefaultMeanPrec();\n int[] intArray0 = new int[0];\n resultMatrixGnuPlot0.setColOrder(intArray0);\n assertEquals(1687, resultMatrixSignificance0.getSignificanceWidth());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(0, 1);\n String string0 = resultMatrixCSV0.toStringKey();\n assertEquals(\"Key,\\n\", string0);\n }", "title": "" }, { "docid": "97a1430b76d7d958bc99b0bf4d800cc5", "score": "0.58496946", "text": "@Test\n \tpublic void testGenerateUniformDistribution() {\n \t\tCollection<String> objects = new LinkedList<String>();\n \t\tfor (int i = 0; i < 8; i++) {\n \t\t\tobjects.add(\"\" + i);\n \t\t}\n \t\tMap<String, Double> result = Utils.generateUniformDistribution(objects);\n \t\tfor (String s : objects) {\n \t\t\tassertEquals(1. / 8, result.get(s), 0.0);\n \t\t}\n \t}", "title": "" }, { "docid": "708da27346521e23389bff04cd38abd6", "score": "0.5845893", "text": "public double getCoverage() {\n return ((double) numExamplesParsed) / numExamples;\n }", "title": "" }, { "docid": "1bc5c1a15ccdc96764d278d237a2ce3e", "score": "0.5839951", "text": "@Test\n public void testDale_chall_score() {\n System.out.println(\"dale_chall_score\");\n String strText = TEST_STRING;\n double expResult = 20.486603754266213;\n double result = ReadabilityStatistics.dale_chall_score(strText);\n assertEquals(expResult, result, TestConfiguration.DOUBLE_ACCURACY_HIGH);\n }", "title": "" }, { "docid": "f6900ffee957d2b3b57d258511a7bdd8", "score": "0.58368975", "text": "@Test(timeout = 4000)\n public void test55() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 2);\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n discretize0.setOutputFormat();\n discretize0.isNewBatch();\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = (double) 2;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 0;\n discretize0.setInvertSelection(true);\n doubleArray0[4] = (double) 2;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1.2, doubleArray0);\n binarySparseInstance0.setDataset(instances0);\n discretize0.convertInstance(binarySparseInstance0);\n }", "title": "" }, { "docid": "16de7e7459e077d5cab23de627177d8b", "score": "0.58287174", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setOutputFormat();\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getFindNumBins());\n }", "title": "" }, { "docid": "4c7c00d76e8bbbcbfdce051c6968e6fd", "score": "0.5828056", "text": "@Test\n public void test09() throws Throwable {\n Frequency frequency0 = new Frequency((Comparator) null);\n double double0 = frequency0.getPct(0L);\n frequency0.addValue(1598L);\n double double1 = frequency0.getCumPct((-2476));\n }", "title": "" }, { "docid": "b8865f5fd0309183e5057831342acb4e", "score": "0.5827112", "text": "@Test(timeout = 4000)\n public void test100() throws Throwable {\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertNotNull(resultMatrixSignificance0);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean[] booleanArray0 = new boolean[5];\n booleanArray0[0] = false;\n booleanArray0[1] = true;\n booleanArray0[2] = true;\n booleanArray0[3] = true;\n booleanArray0[4] = false;\n resultMatrixSignificance0.m_ColHidden = booleanArray0;\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n \n boolean[] booleanArray1 = new boolean[7];\n assertFalse(booleanArray1.equals((Object)booleanArray0));\n \n booleanArray1[0] = false;\n booleanArray1[1] = true;\n resultMatrixSignificance0.m_CountWidth = (-1);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n \n booleanArray1[2] = true;\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixSignificance0);\n assertNotNull(resultMatrixLatex0);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals((-1), resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n double double0 = resultMatrixLatex0.getCount(1);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(40, resultMatrixLatex0.getRowNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertEquals((-1), resultMatrixLatex0.getCountWidth());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0.0, double0, 0.01);\n \n ResultMatrixLatex resultMatrixLatex1 = new ResultMatrixLatex(resultMatrixSignificance0);\n assertNotNull(resultMatrixLatex1);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals((-1), resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n \n boolean boolean0 = resultMatrixLatex1.isAverage(21);\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals((-1), resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertFalse(boolean0);\n \n int int0 = resultMatrixLatex1.getDefaultSignificanceWidth();\n assertNotSame(resultMatrixLatex1, resultMatrixLatex0);\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals((-1), resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(1, resultMatrixLatex1.getVisibleColCount());\n assertEquals(1, resultMatrixLatex1.getColCount());\n assertEquals(0, resultMatrixLatex1.getDefaultStdDevWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowStdDev());\n assertFalse(resultMatrixLatex1.getRemoveFilterName());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex1.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex1.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex1.printRowNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex1.printColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex1.colNameWidthTipText());\n assertFalse(resultMatrixLatex1.getDefaultPrintColNames());\n assertEquals(2, resultMatrixLatex1.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex1.showAverageTipText());\n assertEquals(2, resultMatrixLatex1.getDefaultStdDevPrec());\n assertEquals((-1), resultMatrixLatex1.getCountWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex1.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex1.getDefaultRowNameWidth());\n assertTrue(resultMatrixLatex1.getDefaultEnumerateColNames());\n assertTrue(resultMatrixLatex1.getEnumerateColNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex1.stdDevPrecTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex1.rowNameWidthTipText());\n assertFalse(resultMatrixLatex1.getShowStdDev());\n assertEquals(0, resultMatrixLatex1.getMeanWidth());\n assertEquals(0, resultMatrixLatex1.getColNameWidth());\n assertFalse(resultMatrixLatex1.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex1.getSignificanceWidth());\n assertTrue(resultMatrixLatex1.getDefaultPrintRowNames());\n assertEquals(\"LaTeX\", resultMatrixLatex1.getDisplayName());\n assertEquals(2, resultMatrixLatex1.getMeanPrec());\n assertFalse(resultMatrixLatex1.getPrintColNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex1.meanWidthTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex1.globalInfo());\n assertFalse(resultMatrixLatex1.getShowAverage());\n assertEquals(0, resultMatrixLatex1.getDefaultCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex1.significanceWidthTipText());\n assertEquals(0, resultMatrixLatex1.getStdDevWidth());\n assertEquals(1, resultMatrixLatex1.getRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex1.enumerateRowNamesTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex1.stdDevWidthTipText());\n assertEquals(1, resultMatrixLatex1.getVisibleRowCount());\n assertEquals(0, resultMatrixLatex1.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixLatex1.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex1.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex1.getStdDevPrec());\n assertEquals(0, resultMatrixLatex1.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex1.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex1.getDefaultRemoveFilterName());\n assertEquals(40, resultMatrixLatex1.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex1.showStdDevTipText());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixLatex1.equals((Object)resultMatrixLatex0));\n assertEquals(0, int0);\n }", "title": "" }, { "docid": "a4521ffc921c00d8d28c91a4c5e43399", "score": "0.58198464", "text": "@Test(timeout = 4000)\n public void test227() throws Throwable {\n String[] stringArray0 = new String[0];\n ResultMatrixSignificance.main(stringArray0);\n ResultMatrixLatex.main(stringArray0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n String[] stringArray1 = new String[1];\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.setCount(2, 1450.0912323966943);\n ResultMatrixLatex.main(stringArray1);\n resultMatrixSignificance0.m_RowNameWidth = (-4580);\n assertEquals((-4580), resultMatrixSignificance0.getRowNameWidth());\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixPlainText0);\n ResultMatrixHTML resultMatrixHTML1 = new ResultMatrixHTML(resultMatrixHTML0);\n double double0 = resultMatrixHTML1.getAverage(1);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "c982102d4ddc2694ca9358c2469874bb", "score": "0.58162624", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"iV#\");\n MockRandom mockRandom0 = new MockRandom();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedMatthewsCorrelation();\n assertEquals(Double.NaN, double0, 0.01);\n \n evaluation0.SFSchemeEntropy();\n double double1 = evaluation0.kappa();\n assertEquals(1.0, double1, 0.01);\n assertEquals(Double.NaN, evaluation0.unweightedMicroFmeasure(), 0.01);\n }", "title": "" }, { "docid": "bc90dd8287d24db0509443bd8ce5753f", "score": "0.5811333", "text": "@Override\n public double getFeatureCoverage() {\n return featureCoverage_;\n }", "title": "" }, { "docid": "364e8abb2f94c94eb57248de3396dd7c", "score": "0.57978696", "text": "@Test\n public void test11() throws Throwable {\n Frequency frequency0 = new Frequency((Comparator) null);\n double double0 = frequency0.getPct(0L);\n long long0 = frequency0.getCount((-1592));\n frequency0.addValue((-1592));\n double double1 = frequency0.getCumPct((-1592));\n Integer integer0 = new Integer(1);\n frequency0.addValue(integer0);\n double double2 = frequency0.getCumPct('A');\n long long1 = frequency0.getCount((-1592));\n }", "title": "" }, { "docid": "31b0f6a40602d674ccd5fef1492c8a41", "score": "0.5793625", "text": "public void execute()\r\n/* 29: */ throws GlobalException\r\n/* 30: */ {\r\n/* 31: 65 */ if (this.input.getCDim() != 1) {\r\n/* 32: 65 */ throw new GlobalException(\"Sorry, only mono-channel images for now...\");\r\n/* 33: */ }\r\n/* 34: 67 */ Point[] domPoints = DominantPointsDetection.invoke(this.input, Double.valueOf(20.0D));\r\n/* 35: */ \r\n/* 36: */ \r\n/* 37: 70 */ ArrayList<Double> distances = new ArrayList();\r\n/* 38: */ \r\n/* 39: 72 */ double maxDist = 0.0D;\r\n/* 40: 75 */ for (int i = 0; i < domPoints.length; i++) {\r\n/* 41: 76 */ for (int j = 0; j < domPoints.length; j++) {\r\n/* 42: 77 */ if (i != j)\r\n/* 43: */ {\r\n/* 44: 79 */ dist = Distance.EuclideanDistance(domPoints[i], domPoints[j]);\r\n/* 45: 80 */ distances.add(Double.valueOf(dist));\r\n/* 46: 82 */ if (dist > maxDist) {\r\n/* 47: 82 */ maxDist = dist;\r\n/* 48: */ }\r\n/* 49: */ }\r\n/* 50: */ }\r\n/* 51: */ }\r\n/* 52: 86 */ this.output = new double[this.bins.intValue()];\r\n/* 53: 89 */ for (double dist = distances.iterator(); dist.hasNext();)\r\n/* 54: */ {\r\n/* 55: 89 */ double d = ((Double)dist.next()).doubleValue();\r\n/* 56: 90 */ int bin = (int)(d / maxDist * this.bins.intValue());\r\n/* 57: 91 */ if (bin == this.bins.intValue()) {\r\n/* 58: 91 */ bin--;\r\n/* 59: */ }\r\n/* 60: 92 */ this.output[bin] += 1.0D;\r\n/* 61: */ }\r\n/* 62: 96 */ for (int i = 0; i < this.output.length; i++) {\r\n/* 63: 97 */ this.output[i] /= distances.size();\r\n/* 64: */ }\r\n/* 65: */ }", "title": "" }, { "docid": "8e3f64ec44f4bfe7154f95e374eef21c", "score": "0.5787111", "text": "@Test(timeout = 4000)\n public void test25() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = discretize0.getOptions();\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(7, stringArray0.length);\n assertEquals(10, discretize0.getBins());\n }", "title": "" }, { "docid": "69e08603c19c4854252b3f96d330b3ec", "score": "0.5785073", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n regressionByDiscretization0.getCapabilities();\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\" \");\n TestInstances testInstances1 = new TestInstances();\n Object object0 = new Object();\n instances0.listIterator();\n testInstances0.generate(\" \");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.weightedPrecision();\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n Evaluation evaluation1 = null;\n try {\n evaluation1 = new Evaluation(instances0, costMatrix0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Throwable e) {\n //\n // Cost matrix not compatible with data!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "1f0f4a4adae35f82163d6b589c7bfa63", "score": "0.5784392", "text": "@Test(timeout = 4000)\n public void test179() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n resultMatrixCSV0.countWidthTipText();\n resultMatrixCSV0.m_ShowAverage = false;\n String[] stringArray0 = resultMatrixCSV0.getOptions();\n resultMatrixCSV0.isSignificance(352);\n ResultMatrixSignificance.main(stringArray0);\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n }", "title": "" } ]
6a0133fc7cc92eb07c6f308e21e07b79
1 CapBrick, Brick, Eagle and Rock; 2 Water
[ { "docid": "f090eb4b11124a4c0eca2643c49a7f38", "score": "0.0", "text": "private void checkBattleFieldObject(AbstractBattleFieldObject[][] object) {\n for (int i = 0; i < object.length; i++) {\n for (int j = 0; j < object[i].length; j++) {\n if (object[i][j] instanceof CapBrick || object[i][j] instanceof Brick || object[i][j] instanceof Eagle || object[i][j] instanceof Rock) {\n numberBattleFiel[i][j] = -1;\n } else {\n numberBattleFiel[i][j] = -2;\n }\n }\n }\n }", "title": "" } ]
[ { "docid": "cb3ee7a522e7b2e467e9efcc970ae2f5", "score": "0.5715797", "text": "static int flowerBouquets(int p, int q, String s) {\r\n // Write your code here\r\n int flower[] = new int[s.length()];\r\n\r\n for (int i = 0; i < s.length(); i++) {\r\n flower[i] = Integer.valueOf(s.substring(i, i + 1));\r\n }\r\n\r\n int typeRose = 0;\r\n ArrayList<String> bouquetListP = new ArrayList<>();\r\n HashMap<String, String[]> bouquetMapP = new HashMap<>();\r\n //All possible ROSE Bouquet\r\n for (int j = 0; j < (flower.length - 2); j++) {\r\n if (flower[j] == flower[j + 1] && flower[j + 1] == flower[j + 2] && flower[j] == typeRose) {\r\n bouquetListP.add(String.valueOf(j));\r\n bouquetListP.add(String.valueOf(j + 1));\r\n bouquetListP.add(String.valueOf(j + 2));\r\n\r\n bouquetMapP.put(String.valueOf(j), new String[]{String.valueOf(j), String.valueOf(j + 1), String.valueOf(j + 2)});\r\n }\r\n }\r\n\r\n ArrayList<String> bouquetListQ = new ArrayList<>();\r\n HashMap<String, String> bouquetMapQ = new HashMap<>();\r\n //All possible COSMOS Bouquet\r\n for (int j = 0; j < (flower.length - 1); j++) {\r\n if (flower[j] != flower[j + 1]) {\r\n bouquetListQ.add(String.valueOf(j));\r\n bouquetListQ.add(String.valueOf(j + 1));\r\n\r\n bouquetMapQ.put(String.valueOf(j), String.valueOf(j + 1));\r\n }\r\n }\r\n\r\n System.out.println(\"Bouquet ListPPP: \" + bouquetListP.size() + \" :: \" + bouquetListP.toString());\r\n System.out.println(\"Bouquet ListQQQ: \" + bouquetListQ.size() + \" :: \" + bouquetListQ.toString());\r\n\r\n //If price of P > Q then P combination takes priority & vice-versa\r\n //Finding the best Bouquet combination to get the MAXIMUM return\r\n int maxBouquetCost = 0;\r\n if (p > q) {\r\n maxBouquetCost = (int) Math.floor((bouquetListP.size() / 3)) * p;\r\n\r\n System.out.println(\"Bouquet ListPPP MAX PRICE: \" + (int) Math.floor((bouquetListP.size() / 3)) + \" :: \" + maxBouquetCost);\r\n for (String item : bouquetListP) {\r\n if (bouquetMapQ.containsKey(item) || bouquetMapQ.containsValue(item)) {\r\n bouquetMapQ.remove(item);\r\n }\r\n }\r\n System.out.println(\"Bouquet ListQQQ MAX PRICE: \" + (int) Math.floor((bouquetMapQ.size() / 2)) + \" :: \" + (int) Math.floor((bouquetMapQ.size() / 2)) * q);\r\n maxBouquetCost = maxBouquetCost + (int) Math.floor((bouquetMapQ.size() / 2)) * q;\r\n } else {\r\n for (int i = 0; i < bouquetListQ.size(); i++) {\r\n if (i > 0 && i < (bouquetListQ.size() - 1) && bouquetListQ.get(i).equals(bouquetListQ.get(i + 1))) {\r\n if (bouquetListP.contains(bouquetListQ.get(i - 1))) {\r\n bouquetListQ.remove(i - 1);\r\n bouquetListQ.remove(i);\r\n } else if (i + 2 < bouquetListQ.size() && bouquetListP.contains(bouquetListQ.get(i + 2))) {\r\n bouquetListQ.remove(i + 1);\r\n bouquetListQ.remove(i + 2);\r\n }\r\n }\r\n }\r\n\r\n System.out.println(\"Bouquet ListQQQ AFTER: \" + bouquetListQ.size() + \" :: \" + bouquetListQ.toString());\r\n\r\n maxBouquetCost = (int) Math.floor(bouquetListQ.size() / 2) * q;\r\n for (String sameQItem : bouquetListQ) {\r\n String mapKey = null;\r\n for (Map.Entry<String, String[]> entry : bouquetMapP.entrySet()) {\r\n for (int j = 0; j < entry.getValue().length; j++) {\r\n if (sameQItem.equalsIgnoreCase(entry.getValue()[j])) {\r\n mapKey = entry.getKey();\r\n }\r\n }\r\n }\r\n\r\n if (mapKey != null) {\r\n bouquetMapP.remove(mapKey);\r\n }\r\n }\r\n\r\n System.out.println(\"Bouquet ListPPP AFTER: \" + bouquetMapP.size() + \" :: \" + bouquetMapP.toString());\r\n maxBouquetCost = maxBouquetCost + bouquetMapP.size() * p;\r\n }\r\n\r\n System.out.println(\"BouquetMAX Cost: \" + maxBouquetCost);\r\n return maxBouquetCost;\r\n }", "title": "" }, { "docid": "af21ef5cd3f86595e370c7cea8c86ded", "score": "0.56544316", "text": "public static String lowerTower(String lowerbase, String loweredge){\n Picture pic6 = new Picture();\n lowerbase = \" \\\" \";\n loweredge = \"|\";\n int[] arr = new int[100];\n Picture pic5 = new Picture();\n for (int o = 1; o <= 1 ; o++) {\n for (int s = 1; s <= 2; s++) {\n if(arr[s] == (arr.length - 1)){\n System.out.printf(loweredge);\n } else {\n System.out.printf(lowerbase);\n }\n }\n System.out.println();\n }\n return null;\n\n\n }", "title": "" }, { "docid": "4e0de37b100860f52f91b5d59fa1c3bd", "score": "0.5209073", "text": "public String toString()\n {\n if(getIsWhite())//if piece is white\n return \"WB\";\n else\n return \"BB\";\n }", "title": "" }, { "docid": "6ac289dfbcf9631884056beb06e86838", "score": "0.5094505", "text": "Chao(String egg) {\n\n\n String[] nonshinyList = {\"White Egg\", \"Blue Egg\", \"Red Egg\", \"Yellow Egg\", \"Orange Egg\", \"Pink Egg\", \"Purple Egg\", \"Sky Blue Egg\", \"Green Egg\", \"Brown Egg\", \"Grey Egg\", \"Lime Green Egg \", \"Black Egg\"};\n String[] shinyList = {\"Shiny White Egg\", \"Shiny Blue Egg\", \"Shiny Red Egg\", \"Shiny Yellow Egg\", \"Shiny Orange Egg\", \"Shiny Pink Egg\", \"Shiny Purple Egg\", \"Shiny Sky Blue Egg\", \"Shiny Green Egg\", \"Shiny Brown Egg\", \"Shiny Grey Egg\", \"Shiny Lime Green Egg\", \"Shiny Black Egg\"};\n String[] jewelList = {\"Silver Egg\", \"Gold Egg\", \"Ruby Egg\", \"Sapphire Egg\", \"Amethyst Egg\", \"Emerald Egg\", \"Garnet Egg\", \"Aquamarine Egg\", \"Peridot Egg\", \"Topaz Egg\", \"Onyx Egg\"};\n String[] defaultList = {\"Normal Egg\", \"Default Egg\", \"Two-Tone Egg\", \"Egg\"}; //All possible different names for the same thing, no real canon name.\n\n if (Arrays.asList(nonshinyList).contains(egg) || Arrays.asList(shinyList).contains(egg)) {\n colorAllele1 = egg.replace(\" Egg\", \"\").replace(\"Shiny \", \"\");\n colorAllele2 = colorAllele1;\n colorPhenotype = colorAllele1;\n\n toneAllele1 = \"Mono-Tone\";\n toneAllele2 = toneAllele1;\n tonePhenotype = toneAllele1;\n\n if (Arrays.asList(nonshinyList).contains(egg)) {\n shineAllele1 = \"Non-Shiny\";\n shineAllele2 = shineAllele1;\n shinePhenotype = shineAllele1;\n } else {\n shineAllele1 = \"Shiny\";\n shineAllele2 = shineAllele1;\n shinePhenotype = shineAllele1;\n }\n\n jewelAllele1 = \"Non-Jewel\";\n jewelAllele2 = jewelAllele1;\n jewelPhenotype = jewelAllele1;\n\n if (shinePhenotype.equals(\"Shiny\")) {\n appearance = \"Shiny \" + tonePhenotype + \" \" + colorPhenotype;\n } else {\n appearance = tonePhenotype + \" \" + colorPhenotype;\n }\n } else if (Arrays.asList(jewelList).contains(egg)) {\n colorAllele1 = \"Normal\";\n colorAllele2 = colorAllele1;\n colorPhenotype = colorAllele1;\n\n toneAllele1 = \"Two-Tone\";\n toneAllele2 = toneAllele1;\n tonePhenotype = toneAllele1;\n\n shineAllele1 = \"Non-Shiny\";\n shineAllele2 = shineAllele1;\n shinePhenotype = shineAllele1;\n\n jewelAllele1 = egg.replace(\" Egg\", \"\");\n jewelAllele2 = jewelAllele1;\n jewelPhenotype = jewelAllele1;\n\n appearance = jewelPhenotype;\n } else if (Arrays.asList(defaultList).contains(egg)) {\n colorAllele1 = \"Normal\";\n colorAllele2 = colorAllele1;\n colorPhenotype = colorAllele1;\n\n toneAllele1 = \"Two-Tone\";\n toneAllele2 = toneAllele1;\n tonePhenotype = toneAllele1;\n\n shineAllele1 = \"Non-Shiny\";\n shineAllele2 = shineAllele1;\n shinePhenotype = shineAllele1;\n\n jewelAllele1 = \"Non-Jewel\";\n jewelAllele2 = jewelAllele1;\n jewelPhenotype = jewelAllele1;\n\n appearance = tonePhenotype + \" \" + colorPhenotype;\n } else {\n System.out.println(\"ERROR: Invalid egg type.\");\n }\n }", "title": "" }, { "docid": "8154076bc71f4cd2ec28cee46f5895dc", "score": "0.50826734", "text": "public char gloveBag(int white, int black){\n char[] bag = new char[white+black];\n Random rnd = new Random();\n\n for(int i=0; i<white; i++){\n bag[i] = 'w';\n }\n for(int i=white; i<white+black; i++){\n bag[i] = 'b';\n }\n for(int i=0; i<white+black-1; i++){\n char tmp = bag[white+black-1-i];\n int rndInd = rnd.nextInt(white+black-i);\n bag[white+black-1-i] = bag[rndInd];\n bag[rndInd] = tmp;\n }\n\n int remGlvs = white+black;\n while(remGlvs>1){\n int rndVal = rnd.nextInt(remGlvs-1);\n char first = bag[rndVal];\n bag[rndVal] = bag[remGlvs-1];\n rndVal = rnd.nextInt(remGlvs-1);\n if(bag[rndVal]==first){\n bag[rndVal] = 'b';\n } else {\n bag[rndVal] = 'w';\n }\n remGlvs--;\n }\n return bag[0];\n }", "title": "" }, { "docid": "c933faa8b4ccd427c28b5a75a1403094", "score": "0.50063694", "text": "int getBlindingCount();", "title": "" }, { "docid": "c933faa8b4ccd427c28b5a75a1403094", "score": "0.50063694", "text": "int getBlindingCount();", "title": "" }, { "docid": "c933faa8b4ccd427c28b5a75a1403094", "score": "0.50063694", "text": "int getBlindingCount();", "title": "" }, { "docid": "c933faa8b4ccd427c28b5a75a1403094", "score": "0.50063694", "text": "int getBlindingCount();", "title": "" }, { "docid": "865ac7433ac08557bd2fc3247c212cf0", "score": "0.49892896", "text": "@Override\n\t\tpublic String toString() {\n\t\t\tString s = \" \";\n\t\t\t\n\t\t\tif (hasRock()) {\n\t\t\t\ts = \"x\";\n\t\t\t}\n\t\t\t\n\t\t\tif (isCatOnTile()) {\n\t\t\t\ts = \"c\";\n\t\t\t}\n\t\t\t\n\t\t\tif (isMouseOnTile()) {\n\t\t\t\ts = isCatOnTile() ? \"*\" : \"m\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn s;\n\t\t}", "title": "" }, { "docid": "0bd66e5512daa8a44dddf410b52f6e68", "score": "0.4972484", "text": "public String monopoly() {\r\n Resource tmpResource = Resource.LUMBER;\r\n HashMap<Resource, Integer> resources = new HashMap<>();\r\n resources.put(Resource.BRICK, getBrick());\r\n resources.put(Resource.GRAIN, getGrain());\r\n resources.put(Resource.LUMBER, getLumber());\r\n resources.put(Resource.ORE, getOre());\r\n resources.put(Resource.WOOL, getWool());\r\n for (Resource resource : resources.keySet()) {\r\n if (resources.get(resource) < resources.get(tmpResource)) {\r\n tmpResource = resource;\r\n }\r\n }\r\n switch (tmpResource) {\r\n case LUMBER:\r\n return \"Lumber\";\r\n case BRICK:\r\n return \"Brick\";\r\n case GRAIN:\r\n return \"Grain\";\r\n case ORE:\r\n return \"Ore\";\r\n case WOOL:\r\n return \"Wool\";\r\n }\r\n return \"Lumber\";\r\n }", "title": "" }, { "docid": "79102b0e15fdde4177d14fd05eb9d5e4", "score": "0.49126607", "text": "public void cars(){\r\n\t// YOUR CODE HERE\r\n\tCar c1 = new Car(100,300, Color.red);\r\n\tCar c2 = new Car(400,300, Color.blue);\r\n\tc2.left();\r\n\tc2.left();\r\n\tc1.drive(20);\r\n\tc2.drive(20);\r\n\tc1.drive(20); \r\n\tc2.drive(20);\r\n\tc1.drive(20);\r\n\tc2.drive(20);\r\n\tc1.drive(20);\r\n\tc2.drive(20);\r\n\tc1.drive(20);\r\n\tc2.drive(20);\r\n\tc1.drive(20);\r\n\tc2.drive(20);\r\n\tc1.right();\r\n\tc2.right();\r\n\tc1.drive(20);\r\n\tc2.drive(20);\r\n\tc1.drive(20);\r\n\tc2.drive(20);\r\n\t// END OF YOUR CODE\r\n }", "title": "" }, { "docid": "7b38b627e80c5aef422b307753f22b83", "score": "0.48783705", "text": "@Override\n public void render(GameContainer gc, StateBasedGame game, Graphics g) throws SlickException {\n wheel.draw(310, 34, 0.3f);\n for (int c = 0; c < l.length; c++) {\n ShapeRenderer.draw(l[c]);\n }\n ShapeRenderer.draw(spring);\n ShapeRenderer.draw(r);\n\n for (int count = 0; count < 5; count += 1) {\n if (trec[count] > 0) {\n ShapeRenderer.draw(rec[count]);\n }\n System.out.println(trec[count]);\n if (trec[count] == 1) {\n brick1.draw(rec[count].getMinX() - 4, rec[count].getMinY() - 4, 1.5f);\n } else if (trec[count] == 2) {\n brick2.draw(rec[count].getMinX() - 4, rec[count].getMinY() - 4, 1.5f);\n } else if (trec[count] == 3) {\n brick3.draw(rec[count].getMinX() - 4, rec[count].getMinY() - 4, 1.5f);\n } else if (trec[count] == 4) {\n brick4.draw(rec[count].getMinX() - 4, rec[count].getMinY() - 4, 1.5f);\n } else if (trec[count] == 5) {\n brick5.draw(rec[count].getMinX() - 4, rec[count].getMinY() - 4, 1.5f);\n } else if (trec[count] == 6) {\n brick6.draw(rec[count].getMinX() - 4, rec[count].getMinY() - 4, 1.5f);\n }\n }\n\n for (int count = 0; count < cir.length; count += 1) {\n\n if (bHit[count] == false) {\n bumper.draw(cir[count].getMinX(), cir[count].getMinY(), 0.27f);\n } else {\n bumperH.draw(cir[count].getMinX(), cir[count].getMinY(), 0.27f);\n }\n }\n\n paddle.draw(r.getMinX() - 5, r.getMinY() - 5, 0.39f);\n flipper.draw(-10, 690, 0.3f);\n flipperH.draw(655, 690, 0.3f);\n ball.drawCentered(775, 30);\n ball.draw(c.getMinX(), c.getMinY(), 1.15f);\n g.drawString(String.valueOf(lives), 772, 27);\n arrow.draw(375 - arrow.getWidth() / 4, 100, 0.5f);\n if (relNum > 0) {\n rel.drawCentered(400, 400);\n }\n char[] temp = Integer.toString(drawnScore).toCharArray();\n String finalNum = \"\";\n int counter1 = -1;\n for (int counter2 = temp.length - 1; counter2 >= 0; counter2--) {\n counter1++;\n if (counter1 == 3) {\n finalNum = \",\" + finalNum;\n counter1 = 0;\n }\n finalNum = temp[counter2] + finalNum;\n }\n String print = \"\";\n for (int pad = 1; pad <= (17 - finalNum.length()); pad++) {\n print += \" \";\n }\n g.drawString(print + \"\" + finalNum, 585, 50);\n }", "title": "" }, { "docid": "142be8b5a6f63f52ea700f4cf543ae6b", "score": "0.48764017", "text": "protected boolean recruit(String player ,MBcard.battleCard battle){\n //Norse\n if (battle == MBcard.battleCard.cNorseHero){\n if(players.checkCubes(player, \"green\", -3)&\n players.checkCubes(player, \"golden\", -3))\n {\n players.setCubes(player, \"green\", -3);\n players.setCubes(player, \"golden\", -3);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.dwarf){\n if(players.checkCubes(player, \"green\", -2)&\n players.checkCubes(player, \"golden\", -2))\n {\n players.setCubes(player, \"green\", -2);\n players.setCubes(player, \"golden\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.froseGiant){\n if(players.checkCubes(player, \"green\", -4)&\n players.checkCubes(player, \"blue\", -2))\n {\n players.setCubes(player, \"green\", -4);\n players.setCubes(player, \"blue\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.hNorseHero){\n if(players.checkCubes(player, \"green\", -3)&\n players.checkCubes(player, \"golden\", -3))\n {\n players.setCubes(player, \"green\", -3);\n players.setCubes(player, \"golden\", -3);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.huskarl){\n if(players.checkCubes(player, \"green\", -1)&\n players.checkCubes(player, \"golden\", -2))\n {\n players.setCubes(player, \"green\", -1);\n players.setCubes(player, \"golden\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.jarl){\n if(players.checkCubes(player, \"green\", -1)&\n players.checkCubes(player, \"golden\", -1))\n {\n players.setCubes(player, \"green\", -1);\n players.setCubes(player, \"golden\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.mNorseHero){\n if(players.checkCubes(player, \"green\", -4)&\n players.checkCubes(player, \"blue\", -4))\n {\n players.setCubes(player, \"green\", -4);\n players.setCubes(player, \"blue\", -4);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.nidhogg){\n if(players.checkCubes(player, \"golden\", -4)&\n players.checkCubes(player, \"blue\", -1))\n {\n players.setCubes(player, \"golden\", -4);\n players.setCubes(player, \"blue\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.throwingAxe){\n if(players.checkCubes(player, \"green\", -1)&\n players.checkCubes(player, \"orange\", -1))\n {\n players.setCubes(player, \"green\", -1);\n players.setCubes(player, \"orange\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.troll){\n if(players.checkCubes(player, \"green\", -3)&\n players.checkCubes(player, \"orange\", -2))\n {\n players.setCubes(player, \"green\", -3);\n players.setCubes(player, \"orange\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.valkyrie){\n if(players.checkCubes(player, \"golden\", -1)&\n players.checkCubes(player, \"blue\", -3))\n {\n players.setCubes(player, \"golden\", -1);\n players.setCubes(player, \"blue\", -3);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } \n //Greek \n else if (battle == MBcard.battleCard.centaur){\n if(players.checkCubes(player, \"orange\", -3)&\n players.checkCubes(player, \"blue\", -1))\n {\n players.setCubes(player, \"orange\", -3);\n players.setCubes(player, \"blue\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.cGreekHero){\n if(players.checkCubes(player, \"green\", -3)&\n players.checkCubes(player, \"golden\", -3))\n {\n players.setCubes(player, \"green\", -3);\n players.setCubes(player, \"golden\", -3);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.cyclops){\n if(players.checkCubes(player, \"green\", -3)&\n players.checkCubes(player, \"blue\", -3))\n {\n players.setCubes(player, \"green\", -3);\n players.setCubes(player, \"blue\", -3);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.hGreekHero){\n if(players.checkCubes(player, \"green\", -3)&\n players.checkCubes(player, \"golden\", -4))\n {\n players.setCubes(player, \"green\", -3);\n players.setCubes(player, \"golden\", -4);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.hippokon){\n if(players.checkCubes(player, \"green\", -1)&\n players.checkCubes(player, \"golden\", -1))\n {\n players.setCubes(player, \"green\", -1);\n players.setCubes(player, \"golden\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.hoplite){\n if(players.checkCubes(player, \"green\", -1)&\n players.checkCubes(player, \"orange\", -1))\n {\n players.setCubes(player, \"green\", -1);\n players.setCubes(player, \"orange\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.hydra){\n if(players.checkCubes(player, \"golden\", -2)&\n players.checkCubes(player, \"blue\", -2))\n {\n players.setCubes(player, \"golden\", -2);\n players.setCubes(player, \"blue\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.manticore){\n if(players.checkCubes(player, \"green\", -2)&\n players.checkCubes(player, \"blue\", -2))\n {\n players.setCubes(player, \"green\", -2);\n players.setCubes(player, \"blue\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.medusa){\n if(players.checkCubes(player, \"green\", -1)&\n players.checkCubes(player, \"blue\", -3))\n {\n players.setCubes(player, \"green\", -1);\n players.setCubes(player, \"blue\", -3);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.mGreekHero){\n if(players.checkCubes(player, \"golden\", -4)&\n players.checkCubes(player, \"blue\", -4))\n {\n players.setCubes(player, \"golden\", -4);\n players.setCubes(player, \"blue\", -4);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.minotaur){\n if(players.checkCubes(player, \"green\", -2)&\n players.checkCubes(player, \"orange\", -2))\n {\n players.setCubes(player, \"green\", -2);\n players.setCubes(player, \"orange\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.toxotes){\n if(players.checkCubes(player, \"green\", -1)&\n players.checkCubes(player, \"orange\", -1))\n {\n players.setCubes(player, \"green\", -1);\n players.setCubes(player, \"orange\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } \n //Egypt\n else if (battle == MBcard.battleCard.anubite){\n if(players.checkCubes(player, \"golden\", -3)&\n players.checkCubes(player, \"blue\", -1))\n {\n players.setCubes(player, \"golden\", -3);\n players.setCubes(player, \"blue\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.chariotarcher){\n if(players.checkCubes(player, \"orange\", -1)&\n players.checkCubes(player, \"golden\", -1))\n {\n players.setCubes(player, \"orange\", -1);\n players.setCubes(player, \"golden\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.elephant){\n if(players.checkCubes(player, \"green\", -2)&\n players.checkCubes(player, \"golden\", -1))\n {\n players.setCubes(player, \"green\", -2);\n players.setCubes(player, \"golden\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.mummy){\n if(players.checkCubes(player, \"blue\", -2)&\n players.checkCubes(player, \"golden\", -3))\n {\n players.setCubes(player, \"blue\", -2);\n players.setCubes(player, \"golden\", -3);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.pharaoh){\n if(players.checkCubes(player, \"green\", -3)&\n players.checkCubes(player, \"golden\", -3))\n {\n players.setCubes(player, \"green\", -3);\n players.setCubes(player, \"golden\", -3);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.phoenix){\n if(players.checkCubes(player, \"blue\", -3)&\n players.checkCubes(player, \"orange\", -2))\n {\n players.setCubes(player, \"blue\", -3);\n players.setCubes(player, \"orange\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.priest){\n if(players.checkCubes(player, \"golden\", -4)&\n players.checkCubes(player, \"green\", -2))\n {\n players.setCubes(player, \"golden\", -4);\n players.setCubes(player, \"green\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.scorpionman){\n if(players.checkCubes(player, \"green\", -4)&\n players.checkCubes(player, \"golden\", -2))\n {\n players.setCubes(player, \"green\", -4);\n players.setCubes(player, \"golden\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.sonofosiris){\n if(players.checkCubes(player, \"golden\", -4)&\n players.checkCubes(player, \"blue\", -4))\n {\n players.setCubes(player, \"golden\", -4);\n players.setCubes(player, \"blue\", -4);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.spearman){\n if(players.checkCubes(player, \"green\", -1)&\n players.checkCubes(player, \"orange\", -1))\n {\n players.setCubes(player, \"green\", -1);\n players.setCubes(player, \"orange\", -1);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.sphinx){\n if(players.checkCubes(player, \"golden\", -2)&\n players.checkCubes(player, \"blue\", -2))\n {\n players.setCubes(player, \"golden\", -2);\n players.setCubes(player, \"blue\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n } else if (battle == MBcard.battleCard.wadjet){\n if(players.checkCubes(player, \"green\", -2)&\n players.checkCubes(player, \"blue\", -2))\n {\n players.setCubes(player, \"green\", -2);\n players.setCubes(player, \"blue\", -2);\n players.addUnit(player, battle);\n return true;\n }\n noResourceDia();\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "5f5cff38d87a8ac30038ca0624dcd271", "score": "0.48744026", "text": "private static Picture findbrick(Picture[] bricks, Color[] avgs, Color col)\n {\n int dif = Integer.MAX_VALUE, best = 0;\n for (int i = 0; i < avgs.length; i++)\n if (getDiff(avgs[i], col) < dif)\n {\n dif = getDiff(avgs[i], col);\n best = i;\n }\n return bricks[best];\n }", "title": "" }, { "docid": "33991d5464b991982a40021d4dc760a8", "score": "0.4848251", "text": "public static String base(String base, String edge){\n base = \" \\\" \";\n edge = \"|\";\n int[] arr = new int[100];\n Picture pic5 = new Picture();\n for (int m = 1; m <= 1; m++) {\n for (int n = 1; n <= 2; n++) {\n if(arr[n] == (arr.length - 1)){\n System.out.printf(edge);\n } else {\n System.out.printf(base);\n }\n }\n System.out.println();\n }\n return null;\n\n\n }", "title": "" }, { "docid": "9c878f4946bffabc790d3bf4d7db5e0d", "score": "0.48388246", "text": "public ArrayList<String> generateExtraText(){\n\t\tRandom gen = new Random();\n\t\tArrayList<String> wounded_parts = new ArrayList<String>(Arrays.asList(new String[]{\"Face\", \"Left arm\", \"Right arm\", \"Right leg\",\n\t\t\t\t\"Torso\", \"Beard\", \"Treacle aegis\", \"Left ear\", \"Digestive organ\"}));\n\t\tArrayList<String> inc_parts = new ArrayList<String>(wounded_parts);\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\tinc_parts.add(\"Suit\");\n\t\tint rand;\n\t\tString part;\n\t\tdouble finaldmg = getFinalDmg();\n\t\t\n\t\tif((finaldmg > 10 && gen.nextInt(10) > 5) || finaldmg > 40){\n\t\t\trand = gen.nextInt(wounded_parts.size());\n\t\t\tpart = wounded_parts.get(rand).toUpperCase();\n\t\t\twounded_parts.remove(rand);\n\t\t\tlist.add(\"Your \" + part + \" is wounded!\");\n\t\t}\n\t\tif((finaldmg > 10 && gen.nextInt(10) > 8) || finaldmg > 40){\n\t\t\trand = gen.nextInt(wounded_parts.size());\n\t\t\tpart = wounded_parts.get(rand).toUpperCase();\n\t\t\twounded_parts.remove(rand);\n\t\t\tlist.add(\"Your \" + part + \" is wounded!\");\n\t\t}\n\t\t\n\t\tif((finaldmg > 50 && gen.nextInt(10) > 7) || finaldmg > 90){\n\t\t\trand = gen.nextInt(inc_parts.size());\n\t\t\tpart = inc_parts.get(rand).toUpperCase();\n\t\t\tinc_parts.remove(rand);\n\t\t\tlist.add(\"Your \" + part + \" is incinerated!\");\n\t\t}\n\t\tif((finaldmg > 50 && gen.nextInt(10) > 7) || finaldmg > 90){\n\t\t\trand = gen.nextInt(inc_parts.size());\n\t\t\tpart = inc_parts.get(rand).toUpperCase();\n\t\t\tinc_parts.remove(rand);\n\t\t\tlist.add(\"Your \" + part + \" is incinerated!\");\n\t\t}\n\t\tif(finaldmg > 100){\n\t\t\trand = gen.nextInt(inc_parts.size());\n\t\t\tpart = inc_parts.get(rand).toUpperCase();\n\t\t\tinc_parts.remove(rand);\n\t\t\tlist.add(\"Your \" + part + \" is incinerated!\");\n\t\t}\n\t\tif(finaldmg > 150){\n\t\t\trand = gen.nextInt(inc_parts.size());\n\t\t\tpart = inc_parts.get(rand).toUpperCase();\n\t\t\tinc_parts.remove(rand);\n\t\t\tlist.add(\"Your \" + part + \" is incinerated!\");\n\t\t}\n\t\tif(finaldmg > 190){\n\t\t\trand = gen.nextInt(inc_parts.size());\n\t\t\tpart = inc_parts.get(rand).toUpperCase();\n\t\t\tinc_parts.remove(rand);\n\t\t\tlist.add(\"Your \" + part + \" is incinerated!\");\n\t\t}\n\t\tif(inc_parts.contains(\"Suit\") && finaldmg > 100 && gen.nextInt(10) > 3){\n\t\t\tlist.add(\"Your SUIT is incinerated!\");\n\t\t\tinc_parts.remove(inc_parts.indexOf(\"Suit\"));\n\t\t\t\n\t\t\tif(gen.nextInt(10) > 3){\n\t\t\t\tlist.add(\"Your NUDE DICK is incinerated!\");\n\t\t\t}\n\t\t}\n\t\tif(getFinalDmg() >= 100){\n\t\t\tlist.add(\"You are incinerated!\");\n\t\t\tlist.add(\"You are dead!\");\n\t\t}\n\t\telse{\n\t\t\tlist.add(\"You have \" + ResultLabel.getMaxDecimalString(Double.toString(100-getFinalDmg()), 2) + \" health left!\");\n\t\t\tif(getFinalDmg() > 30 && getFinalDmg() <= 50){\n\t\t\t\tlist.add(\"You are now bleeding!\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(getFinalDmg() < 80 && getFinalDmg() > 50){\n\t\t\t\t\tlist.add(\"You are now bleeding profusely!\");\n\t\t\t\t}\n\t\t\t\telse if(getFinalDmg() > 80){\n\t\t\t\t\tlist.add(\"You are now bleeding like a faucet!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(getEnemy() == \"Spaceman\"){\n\t\t\tlist.add(\"\");\n\t\t\tlist.add(getEnemy().toUpperCase() + \" reloads his strange gun.\");\n\t\t}\n\t\t\n\t\treturn list;\n\t}", "title": "" }, { "docid": "807bb9d56508e26d42d5af48128d1fc4", "score": "0.48209378", "text": "public String lostCrops(Broccoli broccoli, Carrot carrot, Corn corn, Potato potato, Rice rice, Tomato tomato) {\r\n \t int max=6;\r\n int min=1;\r\n Random random = new Random();\r\n\r\n int s = random.nextInt(max)%(max-min+1) + min;\r\n if (s == 1) {\r\n\t\t\tbroccoli.setSeedBroccoliQuantity(0);\r\n\t\t\tbroccoli.setSpeedBroccoli(0.25);\r\n\t\t\tbroccoli.setMaturityBroccoli(0);\r\n\t\t\treturn \"broccoli\";\r\n\t\t} if (s == 2) {\r\n\t\t\tcarrot.setSeedCarrotQuantity(0);\r\n\t\t\tcarrot.setSpeedCarrot(0.25);\r\n\t\t\tcarrot.setMaturityCarrot(0);\r\n\t\t\treturn \"carrot\";\r\n\t\t} if (s == 3) {\r\n\t\t\tcorn.setSeedCornQuantity(0);\r\n\t\t\tcorn.setSpeedCorn(0.33);\r\n\t\t\tcorn.setMaturityCorn(0);\r\n\t\t\treturn \"corn\";\r\n\t\t} if (s == 4) {\r\n\t\t\tpotato.setSeedPotatoQuantity(0);\r\n\t\t\tpotato.setSpeedPotato(0.34);\r\n\t\t\tpotato.setMaturityPotato(0);\r\n\t\t\treturn \"potato\";\r\n\t\t} if (s == 5) {\r\n\t\t\trice.setSeedRiceQuantity(0);\r\n\t\t\trice.setSpeedRice(0.34);\r\n\t\t\trice.setMaturityRice(0);\r\n\t\t\treturn \"rice\";\r\n\t\t} if (s == 6) {\r\n\t\t\ttomato.setSeedTamatoQuantity(0);;\r\n\t\t\ttomato.setSpeedTomato(0.25);\r\n\t\t\ttomato.setMaturityTomato(0);\r\n\t\t\treturn \"tomato\";\r\n\t\t}\r\n\t\treturn \"\";\r\n }", "title": "" }, { "docid": "5a7a3536d8237e0fe8f534322cb371b6", "score": "0.48004606", "text": "private long getRandomBand() {\n double randomTrinary = Math.random() * 3;\n if (randomTrinary < 1.0) {\n /*\n * Choose uniformly from all bands. This biases the song choices towards songs by bands with only a\n * small number of songs in the collection. For example, say we have 1 song by band A and 100 songs by\n * band B. We will choose band A with the same frequency we choose band B. Therefore A's single song\n * is 100 times more likely to be chosen than each of B's songs.\n */\n return getRandomBandUnweighted();\n } else if (randomTrinary < 2.0) {\n /*\n * Choose a random song, then choose that band. This biases the song choices towards songs by bands\n * with a large number of songs in the collection. For example, say band A's albums each have 21 short\n * songs on them, whereas band B's albums have 7 long songs. Even if we have the same quantity of music,\n * we'll choose A three times more often than B. This will roughly equalize the time spent listening to\n * A and B, but not the number of songs.\n */\n return getRandomBandWeightedBySong();\n } else {\n /*\n * Finally, choose a random album, then choose that band. This biases the selection towards bands with\n * lots of albums in the collection. This partially counteracts the worst of the biases in the other\n * two strategies.\n */\n return getRandomBandWeightedByAlbum();\n }\n }", "title": "" }, { "docid": "5a7a3536d8237e0fe8f534322cb371b6", "score": "0.48004606", "text": "private long getRandomBand() {\n double randomTrinary = Math.random() * 3;\n if (randomTrinary < 1.0) {\n /*\n * Choose uniformly from all bands. This biases the song choices towards songs by bands with only a\n * small number of songs in the collection. For example, say we have 1 song by band A and 100 songs by\n * band B. We will choose band A with the same frequency we choose band B. Therefore A's single song\n * is 100 times more likely to be chosen than each of B's songs.\n */\n return getRandomBandUnweighted();\n } else if (randomTrinary < 2.0) {\n /*\n * Choose a random song, then choose that band. This biases the song choices towards songs by bands\n * with a large number of songs in the collection. For example, say band A's albums each have 21 short\n * songs on them, whereas band B's albums have 7 long songs. Even if we have the same quantity of music,\n * we'll choose A three times more often than B. This will roughly equalize the time spent listening to\n * A and B, but not the number of songs.\n */\n return getRandomBandWeightedBySong();\n } else {\n /*\n * Finally, choose a random album, then choose that band. This biases the selection towards bands with\n * lots of albums in the collection. This partially counteracts the worst of the biases in the other\n * two strategies.\n */\n return getRandomBandWeightedByAlbum();\n }\n }", "title": "" }, { "docid": "e264077d8ac873c7bd3fa373c27fb464", "score": "0.47899267", "text": "public void giveTreat(){\n int treatsGiven = 0;\n int i = 1;\n\n for (Animal animalCheck : enclosure.animalsInTheEnclosure){\n\n while ( animalCheck.getHealth() <= i && treatsGiven <2 && i < 11){\n\n switch (animalCheck.getFavouriteTreat()){\n \n case \"Stroke\":\n animalCheck.treat();\n treatsGiven++;\n System.out.println(animalCheck + \" was treated\");\n break;\n case \"Hugs\":\n animalCheck.treat();\n treatsGiven++;\n System.out.println(animalCheck + \" was treated\");\n break;\n case \"Bath\":\n animalCheck.treat();\n treatsGiven++;\n System.out.println(animalCheck + \" was treated\");\n break;\n case \"Neck Massage\":\n animalCheck.treat();\n treatsGiven++;\n System.out.println(animalCheck + \" was treated\");\n break;\n\n }\n i++;\n }\n\n }\n System.out.println(\"Physio zookeeper treats given = \" + treatsGiven + \" and i = \" + i);\n }", "title": "" }, { "docid": "ec4a02a5846a1e98b5d9353c726c83c9", "score": "0.4777016", "text": "public String getBand();", "title": "" }, { "docid": "d11846496880b5498beb12f9d10dd88b", "score": "0.47676405", "text": "public static void main(String[] args)\r\n {\n City prague = new City();\r\n //Thing c1 = new Thing(prague, 1, 2);\r\n Robot karel = new Robot(prague, 0, 2, Direction.WEST,5);\r\n Wall p1=new Wall (prague,1,1,Direction.NORTH);\r\n Wall p2=new Wall (prague,1,2,Direction.NORTH);\r\n Wall p3=new Wall (prague,1,1,Direction.WEST);\r\n Wall p4=new Wall (prague,2,1,Direction.WEST);\r\n Wall p5=new Wall (prague,1,2,Direction.EAST);\r\n Wall p6=new Wall (prague,2,2,Direction.EAST);\r\n Wall p7=new Wall (prague,2,1,Direction.SOUTH);\r\n Wall p8=new Wall (prague,2,2,Direction.SOUTH);\r\n \r\n // Direct the robot to the final situation\r\n for (int i= 0;i<2;i++){\r\n karel.turnLeft(); \r\n }\r\n karel.move();\r\n for (int i= 0;i<3;i++){\r\n karel.turnLeft(); \r\n }\r\n for (int j= 0;j<3;j++){\r\n karel.move();\r\n karel.move();\r\n karel.move();\r\n for (int i= 0;i<3;i++){\r\n karel.turnLeft(); \r\n }\r\n }\r\n karel.move();\r\n karel.move();\r\n for (int i= 0;i<2;i++){\r\n karel.turnLeft(); \r\n }\r\n \r\n System.out.println(karel.countThingsInBackpack());\r\n }", "title": "" }, { "docid": "d9b9c7669fa2814f50718ba2f2333f11", "score": "0.4761503", "text": "int encounterBats();", "title": "" }, { "docid": "9d244eaba24e0661b30740a5776671c9", "score": "0.4752983", "text": "@Test\n\tvoid testBreakTie() throws IOException {\n Election e1 = new Election(\"Plurality\", 2, new File[0], false);\n Election e2 = new Election(\"Plurality\", 3, new File[0], false);\n\n Plurality plur = new Plurality(e1);\n Plurality plur1 = new Plurality(e2);\n\n\n Candidate c1 = new Candidate(\"c1\");\n Candidate c2 = new Candidate(\"c2\");\n Candidate c3 = new Candidate(\"c3\");\n Candidate c4 = new Candidate(\"c4\");\n Candidate c5 = new Candidate(\"c5\");\n Candidate c6 = new Candidate(\"c6\");\n Candidate c7 = new Candidate(\"c7\");\n Candidate c8 = new Candidate(\"c8\");\n e1.candidates.add(c1);\n e1.candidates.add(c2);\n e1.candidates.add(c3);\n e1.candidates.add(c4);\n e2.candidates.add(c5);\n e2.candidates.add(c6);\n e2.candidates.add(c7);\n e2.candidates.add(c8);\n\n Ballot ballot1 = new Ballot(e1.candidates, \"1,,,\");\n Ballot ballot2 = new Ballot(e1.candidates, \"1,,,\");\n Ballot ballot3 = new Ballot(e1.candidates, \",1,,\");\n Ballot ballot4 = new Ballot(e1.candidates, \",,1,\");\n Ballot ballot5 = new Ballot(e1.candidates, \",,,1\");\n Ballot ballot6 = new Ballot(e1.candidates, \",1,,\");\n Ballot ballot7 = new Ballot(e1.candidates, \",,1,\");\n\n Ballot ballot8 = new Ballot(e2.candidates, \"1,,,\");\n Ballot ballot9 = new Ballot(e2.candidates, \"1,,,\");\n Ballot ballot10 = new Ballot(e2.candidates, \",1,,\");\n Ballot ballot11 = new Ballot(e2.candidates, \",,1,\");\n Ballot ballot12 = new Ballot(e2.candidates, \",,,1\");\n Ballot ballot13 = new Ballot(e2.candidates, \",1,,\");\n Ballot ballot14 = new Ballot(e2.candidates, \",,1,\");\n\n c1.addBallot(ballot1);\n c1.addBallot(ballot2);\n c2.addBallot(ballot3);\n c2.addBallot(ballot6);\n c3.addBallot(ballot4);\n c3.addBallot(ballot7);\n c4.addBallot(ballot5);\n\n c5.addBallot(ballot8);\n c5.addBallot(ballot9);\n c6.addBallot(ballot10);\n c6.addBallot(ballot11);\n c7.addBallot(ballot12);\n c7.addBallot(ballot13);\n c8.addBallot(ballot14);\n\n\n\n plur.distributeVotes();\n plur1.distributeVotes();\n\n ArrayList<Candidate> tie = new ArrayList<>();\n tie.add(c1);\n tie.add(c2);\n tie.add(c3);\n\n ArrayList<Candidate> tie1 = new ArrayList<>();\n tie.add(c5);\n tie.add(c6);\n tie.add(c7);\n\n plur.breakTie(tie);\n plur1.breakTie(tie1);\n\n for(Candidate c: plur.plurWin){\n assertTrue(plur.plurWin.contains(c));\n }\n\n for(Candidate c: tie1){\n assertTrue(tie1.contains(c));\n }\n\t}", "title": "" }, { "docid": "35490d3c0fc7f6e9ba3c2f3c42356605", "score": "0.4744725", "text": "@Override\n\tpublic String toString(){\n\t\tif(this.getColor()==1){\n\t\t\treturn \"wR\";\n\t\t}else{\n\t\t\treturn \"bR\";\n\t\t}\n\t}", "title": "" }, { "docid": "1e9b446fd134a8924ea771b0ca899986", "score": "0.47326106", "text": "public static int material(){\n int points=0,noOfBishops=0;\n for(int i=0;i<64;i++){\n switch(Chess.board[i/8][i%8]){\n case \"P\" : points+=100;break;\n case \"K\" : points+=300;break;\n case \"B\" : noOfBishops++;break;\n case \"R\" : points+=500;break;\n case \"Q\" : points+=900;break;\n }\n }\n if(noOfBishops>=2)points+=noOfBishops*300;\n else points+=noOfBishops*250;\n return points;\n }", "title": "" }, { "docid": "3a01448cb735eb4af9224f64caf69b0d", "score": "0.4726289", "text": "abstract String chicken();", "title": "" }, { "docid": "83b02cac0d33d833fb414b1222853a38", "score": "0.472474", "text": "private List<View> getDrinkCompositionViews(Drink drink){\n ArrayList<View> compositionViews = new ArrayList<>();\n\n //Get all required components\n int waterLevel = drink.getWaterCompositionWeight();\n int evapLevel = drink.getEvaporatedMilkWeight();\n int condensedLevel = drink.getCondensedMilkWeight();\n int palmSugarLevel = drink.getPalmSugarWeight();\n int teaLevel = drink.getTeaWeight();\n int coffeeLevel = drink.getCoffeeWeight();\n\n //Get total weight level for weight sum\n float totalWeightLevel = waterLevel + evapLevel + condensedLevel + palmSugarLevel + teaLevel + coffeeLevel;\n\n //Go through all components and add those that are required\n LayoutInflater layoutInflater = LayoutInflater.from(EApplication.getInstance());\n boolean notFirst = false;\n if(waterLevel > 0){\n compositionViews.add(\n initDrinkComponent(layoutInflater,\n R.drawable.img_composition_water_glass,\n R.string.drink_composition_water,\n R.color.drinks_com_water,\n waterLevel/totalWeightLevel,\n notFirst));\n notFirst = true;\n }\n if(evapLevel > 0){\n compositionViews.add(\n initDrinkComponent(layoutInflater,\n R.drawable.img_composition_evaporated_milk,\n R.string.sweetener_evaporated_milk,\n R.color.drinks_com_evaporated_milk,\n evapLevel/totalWeightLevel,\n notFirst));\n notFirst = true;\n }\n if(condensedLevel > 0){\n compositionViews.add(\n initDrinkComponent(layoutInflater,\n R.drawable.img_composition_condensed_milk,\n R.string.sweetener_condensed_milk,\n R.color.drinks_com_condensed_milk,\n condensedLevel/totalWeightLevel,\n notFirst));\n notFirst = true;\n }\n if(palmSugarLevel > 0){\n compositionViews.add(\n initDrinkComponent(layoutInflater,\n R.drawable.img_composition_gula_melaka,\n R.string.sweetener_palm_sugar,\n R.color.drinks_com_palm_sugar,\n palmSugarLevel/totalWeightLevel,\n notFirst));\n notFirst = true;\n }\n if(teaLevel > 0){\n compositionViews.add(\n initDrinkComponent(layoutInflater,\n R.drawable.img_composition_tea_leaves,\n R.string.flavor_tea,\n R.color.drinks_com_tea,\n teaLevel/totalWeightLevel,\n notFirst));\n notFirst = true;\n }\n if(coffeeLevel > 0){\n compositionViews.add(\n initDrinkComponent(layoutInflater,\n R.drawable.img_composition_coffee,\n R.string.flavor_coffee,\n R.color.drinks_com_coffee,\n coffeeLevel/totalWeightLevel,\n notFirst));\n notFirst = true;\n }\n\n return compositionViews;\n }", "title": "" }, { "docid": "d0d00b8d33d49ff7c2b010963f4c80ff", "score": "0.47206518", "text": "@Override\r\n public void choice(animal c11,animal c21,grassland g1,grassland g2){\n carnivore c1=(carnivore)c11;\r\n carnivore c2=(carnivore)c21;\r\n grassland g=is_in_grassland(g1,g2);\r\n if ((c1==null)&&(c2==null)){\r\n System.out.println(\"Both the carnivores are dead\");\r\n int chance=new Random().nextInt(100);\r\n System.out.println(\"chance= \"+chance);\r\n if (chance<50){\r\n System.out.println(\"moving to nearest grassland\");\r\n move_to_grassland(g1,g2);\r\n if (g!=null)reduce_health(25);\r\n }\r\n }\r\n else if (g==null){\r\n System.out.println(\"herbivore not inside grassland\");\r\n turn_out++;\r\n if (turn_out>=7){\r\n reduce_health(5);\r\n }\r\n int chance=new Random().nextInt(100);\r\n System.out.println(\"chance= \"+chance);\r\n if (chance>=5){\r\n System.out.println(\"herbivore outside grassland and will not stay\");\r\n int chance2=new Random().nextInt(100);\r\n System.out.println(\"chance \"+chance2);\r\n if (chance2>=35){\r\n System.out.println(\"move 5 units towards nearest grassland\");\r\n move(g1,g2,5);\r\n set_current(g1,g2);\r\n }\r\n else{\r\n System.out.println(\"move 4 units away from nearest carnivore\");\r\n move_away(c1,c2,4);\r\n set_current(g1,g2);\r\n }\r\n }\r\n else{\r\n //condition 3a\r\n System.out.println(\"herbivore outside grassland and will stay\");\r\n //....\r\n }\r\n }\r\n else{\r\n turn_out=0;\r\n System.out.println(\"herbivore inside the grassland\");\r\n if (g.grass>=grass_capacity){\r\n System.out.println(\"grass available greater than capacity\");\r\n int chance2=new Random().nextInt(100);\r\n System.out.println(\"chance= \"+chance2);\r\n if (chance2<90){\r\n System.out.println(\"eat the grass\");\r\n int temp=grass_capacity;\r\n eat(temp,g);\r\n increase_health(50);\r\n }\r\n else{\r\n System.out.println(\"move from grassland\");\r\n reduce_health(25);\r\n int chance3=new Random().nextInt(100);\r\n System.out.println(\"chance \"+chance3);\r\n if (chance3<50){\r\n System.out.println(\"move away from carnivore\");\r\n move_away(c1,c2,2);\r\n set_current(g1,g2);\r\n }\r\n else{\r\n System.out.println(\"move towards grassland\");\r\n move(g1,g2,3);\r\n set_current(g1,g2);\r\n }\r\n }\r\n }\r\n else{\r\n System.out.println(\"grass available is less than grass capacity of herbivore\");\r\n int chance3=new Random().nextInt(100);\r\n System.out.println(\"chance \"+chance3);\r\n if (chance3<20){\r\n System.out.println(\"eat the grass\");\r\n int temp=g.grass;\r\n eat(temp,g);\r\n increase_health(20);\r\n }\r\n else{\r\n System.out.println(\"less grass and herbivore doesnt want to stay\");\r\n reduce_health(25);\r\n int chance4=new Random().nextInt(100);\r\n System.out.println(\"chance= \"+chance4);\r\n if (chance4<70){\r\n System.out.println(\"move away from carnivore\");\r\n move_away(c1,c2,4);\r\n set_current(g1,g2);\r\n }\r\n else{\r\n System.out.println(\"move towards grassland\");\r\n move(g1,g2,2);\r\n set_current(g1,g2);\r\n }\r\n }\r\n }\r\n //-------------\r\n }\r\n\r\n\r\n }", "title": "" }, { "docid": "697d135138a4b1990e90bdb0e94a59d8", "score": "0.471795", "text": "public static String waterType(double temp) {\n if (temp < FREEZING_POINT) {\n return \"solid\";\n } else if (temp < BOILING_POINT) {\n return \"liquid\";\n } else {\n return \"gas\";\n }\n }", "title": "" }, { "docid": "e914615530c1367bc9b24c28e6b96cc6", "score": "0.47062865", "text": "private static String group_state(int g)\r\n\t{\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tdouble radius = inner_side * 0.5 + outer_side;\r\n\t\tbuf.append(groups[g] + \", \" + score[g]);\r\n\t\tfor (int p = 0 ; p != pipers[g].length ; ++p) {\r\n\t\t\tdouble x = pipers[g][p].x / radius;\r\n\t\t\tdouble y = pipers[g][p].y / radius;\r\n\t\t\tint m = moves[g][p] != null && moves[g][p].play ? 1 : 0;\r\n\t\t\tbuf.append(\", \" + x + \", \" + y + \", \" + m);\r\n\t\t}\r\n\t\treturn buf.toString();\r\n\t}", "title": "" }, { "docid": "4cb517dbe530154094b8ccd709cc03df", "score": "0.47024837", "text": "@Override\n public String toString() {\n return face + \" of \" + suit;\n }", "title": "" }, { "docid": "e67a569779af6e44f78a3b03aba69dc7", "score": "0.4698699", "text": "public int layEggs(){\n \t\n \t//check forrest\n \tArrayList<Bird> birdsForrest = this.availableBirds(0);\n \t//check grasslands\n \tArrayList<Bird> birdsGrass = this.availableBirds(1);\n \t//check wetlands\n \tArrayList<Bird> birdsWet = this.availableBirds(2);\n \t\n \t//combine all birds into one list\n \tArrayList<Bird> allBirds = new ArrayList<>();\n \tallBirds.addAll(birdsForrest);\n \tallBirds.addAll(birdsGrass);\n \tallBirds.addAll(birdsWet);\n \t\n \tPlayerView.printLayEggBirds(allBirds);\n \t\n \tint num=PlayerView.selectBird();\n\t\tint ID=allBirds.get(num-1).getCardId();\n\t\tBird sel=board.searchBoard(ID);\n\n\t\tint addEggs = 1;\n\t\taddEggs += board.birdsInGrasslands();\n\t\t\n\t\t\n\t\teggCount = eggCount+addEggs; //update the egg count of the player\n \t\n \tsel.setEggsOnBird(addEggs);\n \t\n \t//update the board with updated Bird object\n \tint[] pos=board.findPos(sel.getCardId());\n \t\n \tint row=pos[0];\n \tint col=pos[1];\n \t\n \tboard.placeCard(row, col, sel);\n \t\n \treturn addEggs; \n }", "title": "" }, { "docid": "971b8c42a862f401d24b1fc2b387b798", "score": "0.46909845", "text": "public interface Brick {\n /**\n * Gets the score value for the brick\n * @return the score value for the brick\n */\n int getScore();\n\n /**\n * Gets the number of hits remaining to break the brick\n * @return the number of hits remaining to break the brick\n */\n int getHitsToBreak();\n\n /**\n * Sets the number of hits remaining to break the brick\n * @param hitsToBreak the new number of hits to break the brick\n */\n void setHitsToBreak(int hitsToBreak);\n\n /**\n * Removes the brick from the display\n * @param root the group that contains all of the objects currently being displayed\n */\n void destroy(Group root);\n\n /**\n * Gets the image for the brick itself\n * @return the image for the bricks\n */\n DisplayImage getMyBrickImage();\n}", "title": "" }, { "docid": "42ae5ae81d1b40eba24acad729454cc9", "score": "0.4687304", "text": "@Test\n\tpublic void checkCorrectQualityofCojuredItems(){\n\t\tint resultOfQuality = GildedRose.getList().get(5).getQuality();\n\t\tint resultOfSellIn = GildedRose.getList().get(5).getSellIn();\n\t\t//Assert\n\t\tassertEquals(4,resultOfQuality);\n\t\tassertEquals(2,resultOfSellIn);\n\t}", "title": "" }, { "docid": "501f1727856f3df72fbe08c0bb9a242c", "score": "0.46846837", "text": "public String bubbleBeam(Pokemon p);", "title": "" }, { "docid": "4d20d12964f980fdb6b760698eb01132", "score": "0.4682799", "text": "public String classify(String[] text)\n\t{\n\t\tcountCategory();\n\t\t//setCapbility(100);\n\t\treturn countFeature(text);\n\t}", "title": "" }, { "docid": "2420375d71d959837dceec32f252da18", "score": "0.46759707", "text": "public void boat() {\n\t\tSystem.out.println(\"The waterways transport of first type is Boat \");\n\t}", "title": "" }, { "docid": "9e87cac1fadff9ced3da99b8e9097e55", "score": "0.46756613", "text": "@Override \n\tpublic String checkConditions() {\n\t\tString nextState = \"\";\n\t\t\n\t\tboolean shouldStop = !InventoryHelper.isSpaceLeftToStore(ContextManager.farmedItem) || ContextManager.itemsToRecollect.size()==0;\n\t\tif (shouldStop) {\n\t\t\t// If the player has seeds in their inventory: plant if possible, else sell.\n\t\t\tif (ContextManager.inventoryContext.numSeedsAvailable() > 0) {\n\t\t\t\tif (ContextManager.numEmptyUsableSpots() > 0) {\n\t\t\t\t\tnextState = \"PlantState\";\n\t\t\t\t}\n\t\t\t\telse if (!InventoryHelper.isSpaceLeftToStore(ContextManager.farmedItem)) {\n\t\t\t\t\tnextState = \"SellState\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnextState = \"WaitForGrowthState\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// If the player doesn't have seeds : wait for crops to grow\n\t\t\telse {\n\t\t\t\tnextState = \"WaitForGrowthState\";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn nextState;\n\t}", "title": "" }, { "docid": "20476da0fc254730ca179f20492a17da", "score": "0.46673274", "text": "private String colorOfBall()\r\n\t{\r\n\t\tint threshold = 0 ;\r\n\t\tif(threshold < getFilteredData())\r\n\t\t{\r\n\t\t\treturn \"RED\";\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn \"BLUE\";\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d8bbdacbd38a0b24cd6cdade04810efa", "score": "0.46654117", "text": "private static String word(int bottles) {\n int remainder = bottles % 10;\n\n // 1 бутылка\n // 21 бутылка\n // 31 бутылка\n // 11 бутылок ***\n\n // 1'4'\n\n // esli ostatok 1 i chislo ne 11\n if (remainder == 1 && (bottles != 11)) {\n return \"бутылка\";\n } else if (remainder >= 2 && remainder <= 4 && !(bottles >= 12 && bottles <= 14)) {\n // '3' бутылки\n // '2' бутылки\n // 1'2' бутылки -> бутылок [12, 13, 14]\n // [2, 4]\n // 2'2' бутылки\n // 2'3' бутылки\n // 2'4' бутылки\n // 25 бутылок\n return \"бутылки\";\n } else {\n return \"бутылок\";\n }\n }", "title": "" }, { "docid": "427c92756cc366a5b25965dc7a2ed033", "score": "0.46581405", "text": "private List<Rose> bouqueteOfRose() {\n\t\tlistOfRose = new ArrayList<Rose>();\n\t\tint numublerOfFlower = rand.nextInt(5)+1;\n\t\tint whichOfFlower;\n\t\tfor(int i=0;i<numublerOfFlower;i++) {\n\t\t\twhichOfFlower = rand.nextInt(5)+1;\n\t\t\tif(whichOfFlower==1)listOfRose.add(new Rose(NameOfFlower.ROSE,Color.WHITE,15,3));\n\t\t\tif(whichOfFlower==2)listOfRose.add(new Rose(NameOfFlower.ROSE,Color.RED,25,2));\n\t\t\tif(whichOfFlower==3)listOfRose.add(new Rose(NameOfFlower.ROSE,Color.PINK,30,1));\n\t\t\tif(whichOfFlower==4)listOfRose.add(new Rose(NameOfFlower.ROSE,Color.RED,17,3));\n\t\t\tif(whichOfFlower==5)listOfRose.add(new Rose(NameOfFlower.ROSE,Color.WHITE,27,2));\n\t\t}\n\t\treturn listOfRose;\n\t}", "title": "" }, { "docid": "62ddd34b8b7e677ec0ac490257cf01fb", "score": "0.46547955", "text": "private int classifyHand(int color[],int number[]){\n\tboolean isFlush=true;\n\t// Is it a Flush?\n\tfor(int i=1;i<5;i++)if(color[i]!=color[0])isFlush=false;\n\tif(isFlush){\n\t\tif(isStraight(number)){\n\t\t\tfor(int i=0;i<5;i++)if(number[i]==13)return 10;\t//Royal flush\n\t\t\treturn 9;\t//Straight Flush\n\t\t}\n\t\treturn 6;\t//Flush \n\t}\n\t// Not a Flush\n\tint distr[]={1,1,1,1,1};\t// Initial distribution of numbers\n\tfor(int i=1;i<5;i++)for(int j=0;j<i;j++)if(number[i]==number[j]) distr[j]++;\n\tint product=1;\t// The product of the distribution numbers\n\tfor(int i=0;i<5;i++)product*=distr[i];\n\tswitch(product){\n\t\tcase 1: if(isStraight(number)) return 5;\t//Straight\n\t\t\treturn 1;\t\t// Nothing\n\t\tcase 2: return 2;\t// One pair\t(2!=2)\n\t\tcase 4: return 3;\t// Two pairs (2!*2!=4)\n\t\tcase 6: return 4;\t// Three of a kind (3!=6)\n\t\tcase 12: return 7;\t// Full house (3!*2!=12)\n\t\tcase 24: return 8;\t// Four of a kind (4!=24)\n\t}\n\treturn 0;//Though this is impossible.\n}", "title": "" }, { "docid": "ef7e9cab1a3d0d4ac2e4cfd9acb3e01b", "score": "0.46521944", "text": "public static boolean checkLayerOneBricks() {\n ArrayList<Integer> countList = new ArrayList<>(); // create arraylist to hold all values from 2d array\r\n for (int[] row : firstlayer) {\r\n for (int col : row) {\r\n countList.add(col); //fill arraylist\r\n }\r\n }\r\n\r\n for (int i = 1; i <= brickCount; i++) { //loop through all possible bricks\r\n int count = 0; //counter for every brick number occurrence\r\n for (int g : countList) { //loop through arraylist\r\n if (g == i) {\r\n count++; //counter+ if match found\r\n }\r\n }\r\n if (count != 2) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "a5e81b2dc90bc1e0a455f4ff129a7b71", "score": "0.46430042", "text": "static void printBottleStatus(Buffer unfinishedB1, Buffer unfinishedB2, \r\n Buffer packagedB1, Buffer packagedB2,\r\n Buffer sealed, Buffer godownB1, Buffer godownB2, \r\n Packaging packagingUnit, Sealing sealingUnit) {\r\n // store count of bottles in different buffers\r\n int countUnfinishedB1 = unfinishedB1.getSize();\r\n int countUnfinishedB2 = unfinishedB2.getSize();\r\n int countSealedB1 = packagedB1.getSize();\r\n int countSealedB2 = packagedB2.getSize();\r\n int countGodownB1 = godownB1.getSize();\r\n int countGodownB2 = godownB2.getSize();\r\n int countPackagedB1 = 0;\r\n int countPackagedB2 = 0;\r\n\r\n // store count of bottles in sealing buffer\r\n for (Bottle eachBottle : sealed.tray) {\r\n if (eachBottle.type == Bottle.Type.B1) {\r\n countPackagedB1++;\r\n } else {\r\n countPackagedB2++;\r\n }\r\n }\r\n\r\n // check if packaging unit is processsing a bottle\r\n if (packagingUnit.currentBottle != null) {\r\n // check type and status of bottle currently undergoing packaging and update\r\n // corrsponding counts\r\n if (packagingUnit.currentBottle.type == Bottle.Type.B1) {\r\n if (packagingUnit.currentBottle.state == Bottle.State.UNFINISHED) {\r\n countUnfinishedB1++;\r\n } else if (packagingUnit.currentBottle.state == Bottle.State.SEALED) {\r\n countSealedB1++;\r\n } else if (packagingUnit.currentBottle.state == Bottle.State.PACKAGED) {\r\n countPackagedB1++;\r\n }\r\n } else {\r\n if (packagingUnit.currentBottle.state == Bottle.State.UNFINISHED) {\r\n countUnfinishedB2++;\r\n } else if (packagingUnit.currentBottle.state == Bottle.State.SEALED) {\r\n countSealedB2++;\r\n } else if (packagingUnit.currentBottle.state == Bottle.State.PACKAGED) {\r\n countPackagedB2++;\r\n }\r\n }\r\n }\r\n\r\n // check if sealing unit is processing a bottle\r\n if (sealingUnit.currentBottle != null) {\r\n // check bottle type and state of the bottle currently in sealing unit and\r\n // update corresponding counts\r\n if (sealingUnit.currentBottle.type == Bottle.Type.B1) {\r\n if (sealingUnit.currentBottle.state == Bottle.State.UNFINISHED) {\r\n countUnfinishedB1++;\r\n } else if (sealingUnit.currentBottle.state == Bottle.State.SEALED) {\r\n countSealedB1++;\r\n } else if (sealingUnit.currentBottle.state == Bottle.State.PACKAGED) {\r\n countPackagedB1++;\r\n }\r\n } else {\r\n if (sealingUnit.currentBottle.state == Bottle.State.UNFINISHED) {\r\n countUnfinishedB2++;\r\n } else if (sealingUnit.currentBottle.state == Bottle.State.SEALED) {\r\n countSealedB2++;\r\n } else if (sealingUnit.currentBottle.state == Bottle.State.PACKAGED) {\r\n countPackagedB2++;\r\n }\r\n }\r\n }\r\n\r\n // print the bottles type and state-wise\r\n System.out.println(\"Bottle Type Status\\t\\t\\tCount\");\r\n System.out.println(\"B1 Packaged\\t\\t\\t\" + (countPackagedB1 + countGodownB1));\r\n System.out.println(\"B1 Sealed\\t\\t\\t\" + (countSealedB1 + countGodownB1));\r\n System.out.println(\"B1 In Godown\\t\\t\\t\" + countGodownB1);\r\n // System.out.println(\"B1 Unfinished\\t\\t\" + countUnfinishedB1);\r\n System.out.println(\"B2 Packaged\\t\\t\\t\" + (countPackagedB2 + countGodownB2));\r\n System.out.println(\"B2 Sealed\\t\\t\\t\" + (countSealedB2 + countGodownB2));\r\n System.out.println(\"B2 In Godown\\t\\t\\t\" + countGodownB2);\r\n // System.out.println(\"B2 Unfinished\\t\\t\" + countUnfinishedB2);\r\n }", "title": "" }, { "docid": "e9291407ff02824aacc6266e802251ab", "score": "0.46409705", "text": "private String getNewBreedName(){\n \tList<String> names = new ArrayList<String>();\n \tfor (BreedTag tag : breedtags){\n \t\tnames.add(tag.getName());\n \t\tnames.add(tag.getID());\n \t}\n String newBreedName = \"New Breed\";\n if(names.contains(newBreedName)){\n \tfor(int i = 2; ; i++){\n newBreedName = \"New Breed \" + Integer.toString(i);\n if(!names.contains(newBreedName)){\n \treturn newBreedName;\n }\n \t}\n }else{\n \treturn newBreedName;\n }\n }", "title": "" }, { "docid": "1af49af098a9480756d9c6e58598de8e", "score": "0.46390453", "text": "private static String breed(int parentA, int parentB){\n//\t\tint split = rand.nextInt(GAME_SIZE);\t\t//Random Splits\n int split = GAME_SIZE/2;\t\t\t//Half Splits.. ONLY ONE OF THESE TWO ACTIVE AT A TIME\n\n String offspring = population.get(parentA).substring(0,split)\n + population.get(parentB).substring(split, GAME_SIZE);\n\n if (rand.nextFloat() <= MUTATION_RATE){\n offspring = mutate(offspring);\n }\n return offspring;\n }", "title": "" }, { "docid": "ee21092c22009a948b356fde098a14de", "score": "0.4638634", "text": "public String setblutgruppe(String bg)\n {\n String a = \"Bitte gültige Blutgruppe eingeben!\";\n \n if(bg.equals(\"O+\")|bg.equals(\"O-\")|bg.equals(\"A+\")|bg.equals(\"A-\")|bg.equals(\"B+\")|\n bg.equals(\"B-\")|bg.equals(\"AB+\")|bg.equals(\"AB-\"))\n try\n {\n Blutgrupp=bg;\n }\n catch(Exception e)\n {\n return a;\n }\n return null;\n}", "title": "" }, { "docid": "6634f896130f69ef5b82d6e4c6891463", "score": "0.46379316", "text": "private static ArrayList<DeckItem> makeDeckLogical(ArrayList<DeckItem> deck, ArrayList<ProbList> probList) {\n\t\t// TODO Auto-generated method stub\n\t\tint[] bankos = new int[deck.size()];\n\t\tint[] manas = new int[deck.size()];\n\t\t// Reset bankos\n\t\tfor(int i = 0; i<bankos.length; i++) {\n\t\t\tbankos[i] = 0;\n\t\t\tmanas[i] = 0;\n\t\t}\n\t\t// Find bankos level 1\n\t\tfor(int i = 0; i<probList.size(); i++) {\n\t\t\tif(probList.get(i).getProbMin() < 6) {\n\t\t\t\tbankos[i] = 1;\n\t\t\t\tmanas[i] = probList.get(i).getItems().getLast().getCard().getMana();\n\t\t\t}\n\t\t}\n\t\t// Find level 2\n\t\tfor(int i=0;i<deck.size();i++) {\n\t\t\tif(bankos[i] == 0) {\n\t\t\t\tint lowM = findPrevMana(manas, i);\n\t\t\t\tint highM = findNextMana(manas, i);\n\t\t\t\tCard card = probList.get(i).getBestCardWithMana(lowM,highM);\n\t\t\t\tif(!card.getName().equals(\"UNKNOWN\")) {\n\t\t\t\t\tbankos[i] = 1;\n\t\t\t\t\tmanas[i] = card.getMana();\n\t\t\t\t}\n\t\t\t\tdeck.get(i).setCard(card);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Invalid deck page\n\t\tint count = 0;\n\t\tint unkCount = 0;\n\t\tfor (int i = 0; i<deck.size(); i++) {\n\t\t\tcount += deck.get(i).getCount();\n\t\t\tif(deck.get(i).getCard().getName().equalsIgnoreCase(\"UNKNOWN\")) {\n unkCount++;\n }\n\t\t}\n\t\t\n\t\tif (unkCount > 5)\t{\n \t\t// If there are 5 or more cards which we cannot detect then deck is invalid.\n Log.warn(\"Warning: \" + unkCount + \" unknown cards found in the deck export\");\n }\n\t\tif (deck.size() < 15) {\n // If deck has less than 15 different cards\n Log.warn(\"Warning: exported deck has fewer than 15 different cards (\" + deck.size() + \" different cards detected)\");\n }\n\n if (count < 30) {\n // Warn If there are less than 30 cards\n Log.warn(\"Warning: exported deck has fewer than 30 cards (\" + count + \" detected)\");\n }\n\n return deck;\n\t}", "title": "" }, { "docid": "d1b4944eed4410c7e44fc462bccc0c4c", "score": "0.46323803", "text": "public ArrayList<Bird> getBirdsCanLayEggs()\n {\n \tArrayList<Bird> birdsForrest = this.availableBirds(0);\n \t//check grasslands\n \tArrayList<Bird> birdsGrass = this.availableBirds(1);\n \t//check wetlands\n \tArrayList<Bird> birdsWet = this.availableBirds(2); \t\n \t//combine all birds into one list\n \tArrayList<Bird> allBirds = new ArrayList<>();\n \tallBirds.addAll(birdsForrest);\n \tallBirds.addAll(birdsGrass);\n \tallBirds.addAll(birdsWet);\n \treturn allBirds;\n }", "title": "" }, { "docid": "737da2b12804e001ffbab8891b9430a9", "score": "0.46225393", "text": "public int pickWinner(String choice1, String choice2){\n if(choice1.equals(\"rock\") && choice2.equals(\"scissors\")){\n return 0;\n }\n else if(choice1.equals(\"scissors\") && choice2.equals(\"paper\")){\n return 0;\n }\n else if(choice1.equals(\"paper\")&& choice2.equals(\"rock\")){\n return 0; \n }\n else if(choice1.equals(\"paper\") && choice2.equals(\"paper\")){\n return 2; \n } \n else if(choice1.equals(\"rock\") && choice2.equals(\"rock\")){\n return 2;\n }\n else if(choice1.equals(\"scissors\") && choice2.equals(\"scissors\")){\n return 2;\n }\n \n return 1;\n \n\n}", "title": "" }, { "docid": "944c87ba133b786f2d70285ebc70a8d9", "score": "0.4608601", "text": "private int nonMatchedBars() {\n\t\tcreditsWon = MULTIPLIER1 * bet;\n\t\treturn creditsWon;\n\t}", "title": "" }, { "docid": "5daa8279d98fb2db60d42ef9db699990", "score": "0.4593918", "text": "public Pair<List<MapleRing>, List<MapleRing>> getRings(boolean equip) {\n MapleInventory iv = getInventory(MapleInventoryType.EQUIPPED);\n Collection<IItem> equippedC = iv.list();\n List<Item> equipped = new ArrayList<Item>(equippedC.size());\n for (IItem item : equippedC) {\n equipped.add((Item) item);\n }\n Collections.sort(equipped);\n List<MapleRing> crings = new ArrayList<MapleRing>();\n List<MapleRing> frings = new ArrayList<MapleRing>();\n MapleRing ring;\n for (Item item : equipped) {\n if (item.getRing() != null) {\n ring = item.getRing();\n ring.setEquipped(true);\n if (GameConstants.isFriendshipRing(item.getItemId()) || GameConstants.isCrushRing(item.getItemId())) {\n if (equip) {\n if (GameConstants.isCrushRing(item.getItemId())) {\n crings.add(ring);\n } else if (GameConstants.isFriendshipRing(item.getItemId())) {\n frings.add(ring);\n }\n } else {\n if (crings.size() == 0 && GameConstants.isCrushRing(item.getItemId())) {\n crings.add(ring);\n } else if (frings.size() == 0 && GameConstants.isFriendshipRing(item.getItemId())) {\n frings.add(ring);\n } //for 3rd person the actual slot doesnt matter, so we'll use this to have both shirt/ring same?\n //however there seems to be something else behind this, will have to sniff someone with shirt and ring, or more conveniently 3-4 of those\n }\n }\n }\n }\n if (equip) {\n iv = getInventory(MapleInventoryType.EQUIP);\n for (IItem item : iv.list()) {\n if (item.getRing() != null && GameConstants.isCrushRing(item.getItemId())) {\n ring = item.getRing();\n ring.setEquipped(false);\n if (GameConstants.isFriendshipRing(item.getItemId())) {\n frings.add(ring);\n } else if (GameConstants.isCrushRing(item.getItemId())) {\n crings.add(ring);\n }\n }\n }\n }\n Collections.sort(frings, new MapleRing.RingComparator());\n Collections.sort(crings, new MapleRing.RingComparator());\n return new Pair<List<MapleRing>, List<MapleRing>>(crings, frings);\n }", "title": "" }, { "docid": "c1a55c96492a5db56f53bf000081a4eb", "score": "0.45896727", "text": "private void createPieces() {\n wK = new King(\"white\", \"e1\", this);\n bK = new King(\"black\", \"e8\", this);\n wR1 = new Rook(\"white\", \"a1\", this);\n wR2 = new Rook(\"white\", \"h1\", this);\n bR1 = new Rook(\"black\", \"a8\", this);\n bR2 = new Rook(\"black\", \"h8\", this);\n\n char[] letters = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'};\n for (int i = 0; i < 8; i++) {\n whitePieces.add(new Pawn(\"white\", letters[i] + \"2\", this));\n blackPieces.add(new Pawn(\"black\", letters[i] + \"7\", this));\n }\n\n whitePieces.add(wR1);\n whitePieces.add(wR2);\n blackPieces.add(bR1);\n blackPieces.add(bR2);\n whitePieces.add(new Knight(\"white\", \"b1\", this));\n whitePieces.add(new Knight(\"white\", \"g1\", this));\n blackPieces.add(new Knight(\"black\", \"b8\", this));\n blackPieces.add(new Knight(\"black\", \"g8\", this));\n whitePieces.add(new Bishop(\"white\", \"c1\", this));\n whitePieces.add(new Bishop(\"white\", \"f1\", this));\n blackPieces.add(new Bishop(\"black\", \"c8\", this));\n blackPieces.add(new Bishop(\"black\", \"f8\", this));\n whitePieces.add(new Queen(\"white\", \"d1\", this));\n blackPieces.add(new Queen(\"black\", \"d8\", this));\n whitePieces.add(wK);\n blackPieces.add(bK);\n }", "title": "" }, { "docid": "ff37d4c73c16e18af235cc63cc0c987c", "score": "0.45843628", "text": "public void getResult1(){\n if ((Integer)imageView1.getTag() == R.drawable.elephant){\n result_tv.setText(wText);\n won++;\n } else if ((Integer)imageView1.getTag() == R.drawable.cat){\n result_tv.setText(lText);\n lose++;\n } else {\n result_tv.setText(tText);\n tight++;\n }\n getStatus();\n getStatusSeekBar();\n }", "title": "" }, { "docid": "c7318c24288c6a43276e09d0a976d7b9", "score": "0.4583661", "text": "@Test\n public void testContextualBandits() throws IOException {\n String[] train = new String[]{\n \"1:2:0.4 | a c\",\n \"3:0.5:0.2 | b d\",\n \"4:1.2:0.5 | a b c\",\n \"2:1:0.3 | b c\",\n \"3:1.5:0.7 | a d\"\n };\n String cbModel = temporaryFolder.newFile().getAbsolutePath();\n VWMulticlassLearner vw = VWLearners.create(\"--quiet --cb 4 -f \" + cbModel);\n int[] trainPreds = new int[train.length];\n for (int i=0; i<train.length; ++i) {\n trainPreds[i] = vw.learn(train[i]);\n }\n int[] expectedTrainPreds = new int[]{1, 2, 2, 2, 2};\n vw.close();\n\n assertArrayEquals(expectedTrainPreds, trainPreds);\n\n vw = VWLearners.create(\"--quiet -t -i \" + cbModel);\n String[] test = new String[]{\n \"1:2 3:5 4:1:0.6 | a c d\",\n \"1:0.5 2:1:0.4 3:2 4:1.5 | c d\"\n };\n\n int[] testPreds = new int[test.length];\n for (int i=0; i<testPreds.length; ++i) {\n testPreds[i] = vw.predict(test[i]);\n }\n int[] expectedTestPreds = new int[]{4, 4};\n vw.close();\n assertArrayEquals(expectedTestPreds, testPreds);\n }", "title": "" }, { "docid": "900673f33a8944e785a5aa1bebdc054b", "score": "0.4581968", "text": "private void addTemporaryBirds() {\n\t\t\n\t\tBird duck = new Bird();\n\t\tduck.name = \"duck\";\n\t\tduck.id = \"d001\";\n\t\tduck.color = Bird.Color.WHITE;\n\t\tduck.canFly = true ;\n\t\tduck.canSwim = true ;\n\t\tBirdSanctuaryRespository.getInstance().add(duck);\n\t\t\n\t\n\t\t\n\t\tBird penguin = new Bird();\n\t\tpenguin.name = \"penguin\";\n\t\tpenguin.id = \"p001\";\n\t\tpenguin.color = Bird.Color.BLACK_WHITE;\n\t\tpenguin.canFly = false ;\n\t\tpenguin.canSwim = true ;\n\t\tBirdSanctuaryRespository.getInstance().add(penguin);\n\t\t\n\t}", "title": "" }, { "docid": "268fbd5c36389a1817d0768cb2ffaebd", "score": "0.45814955", "text": "private Alternative preNormalization(Guitar guitar){\r\n Alternative alternative;\r\n double vPrice = 0;\r\n double vWood = 0;\r\n double vBrand = 0;\r\n double vOrigin = 0;\r\n vPrice = guitar.getPrice().doubleValue();\r\n\r\n String attrStr = guitar.getAttributes().toString().toLowerCase();\r\n /* WOOD */\r\n // GỖ CAO CẤP\r\n if (attrStr.contains(\"cẩm lai\") || attrStr.contains(\"hồng sắc\") || attrStr.contains(\"mun\")\r\n || attrStr.contains(\"rosewood\") || attrStr.contains(\"óc chó\") || attrStr.contains(\"walnut\")\r\n || attrStr.contains(\"thích\") || attrStr.contains(\"maple\") || attrStr.contains(\"cẩm\")\r\n || attrStr.contains(\"ocbolo\") || attrStr.contains(\"zitricote\") || attrStr.contains(\"ovangkol\")\r\n || attrStr.contains(\"hawaiian koa\") || attrStr.contains(\"ovangkol\")) {\r\n vWood += 3;\r\n } // GÕ TRUNG CẤP\r\n else if (attrStr.contains(\"điệp\") || attrStr.contains(\"còng\") || attrStr.contains(\"thông\")\r\n || attrStr.contains(\"cườm\") || attrStr.contains(\"dái ngựa\") || attrStr.contains(\"mahogany\")\r\n || attrStr.contains(\"keo\") || attrStr.contains(\"koa\") || attrStr.contains(\"tuyết tùng\")\r\n || attrStr.contains(\"cồng\") || attrStr.contains(\"thao lao\") || attrStr.contains(\"sitka\")\r\n || attrStr.contains(\"cedar\") || attrStr.contains(\"gụ\") || attrStr.contains(\"spruce\")) {\r\n vWood += 2;\r\n } // GỖ PHỔ THÔNG\r\n else if (attrStr.contains(\"hồng đào\") || attrStr.contains(\"laminate\")\r\n || attrStr.contains(\"nato\") \r\n || attrStr.contains(\"sapele\")) {\r\n vWood += 1;\r\n } else {\r\n vWood += 1;\r\n }\r\n \r\n // GỖ THỊT \r\n if (attrStr.contains(\"nguyên\") || attrStr.contains(\"solid\") || attrStr.contains(\"thịt\")){\r\n vWood += 1;\r\n }\r\n // GỖ ÉP\r\n if (attrStr.contains(\"ván\") || attrStr.contains(\"ép\")){\r\n vWood -= 1;\r\n }\r\n /* Branding */\r\n String nameStr = guitar.getName().toLowerCase();\r\n\r\n if (nameStr.contains(\"martin\")\r\n || nameStr.contains(\"taylor\")\r\n || nameStr.contains(\"fender\")\r\n || nameStr.contains(\"samick\")\r\n || nameStr.contains(\"yamaha\")\r\n || nameStr.contains(\"suzuki\")\r\n || nameStr.contains(\"takamine\")\r\n || nameStr.contains(\"Ibanez\")\r\n || nameStr.contains(\"almansa\")) {\r\n vBrand = 3;\r\n }\r\n if (nameStr.contains(\"cordoba\")\r\n || nameStr.contains(\"cort\")\r\n || nameStr.contains(\"tanglewood\")\r\n || nameStr.contains(\"aria\")\r\n || nameStr.contains(\"sigma\")\r\n || nameStr.contains(\"stagg\")\r\n || nameStr.contains(\"everest\")\r\n || nameStr.contains(\"saga\")) {\r\n vBrand = 2;\r\n } else if (nameStr.contains(\"lazer\")\r\n || nameStr.contains(\"kapok\")\r\n || nameStr.contains(\"caravan\")\r\n || nameStr.contains(\"epiphone\")\r\n || nameStr.contains(\"poshman\")\r\n || nameStr.contains(\"ng\")\r\n || nameStr.contains(\"hohner\")\r\n || nameStr.contains(\"kepma\")\r\n || nameStr.contains(\"mantic\")\r\n || nameStr.contains(\"morrision\")\r\n || nameStr.contains(\"rosen\")) {\r\n vBrand = 1;\r\n } else {\r\n vBrand = 1;\r\n }\r\n\r\n /* ORIGIN */\r\n if (attrStr.contains(\"mỹ\")\r\n || attrStr.contains(\"usa\")\r\n || attrStr.contains(\"america\")\r\n || attrStr.contains(\"nhật\")\r\n || attrStr.contains(\"japan\")\r\n || attrStr.contains(\"tây ban nha\")\r\n || attrStr.contains(\"mexico\")\r\n || attrStr.contains(\"italy\")\r\n || attrStr.contains(\"bỉ\")) {\r\n vOrigin = 3;\r\n } else if (attrStr.contains(\"việt nam\") \r\n || attrStr.contains(\"vietnam\")\r\n || attrStr.contains(\"trung quốc\")\r\n || attrStr.contains(\"china\")\r\n || attrStr.contains(\"taiwan\")\r\n || attrStr.contains(\"indonesia\")) {\r\n vOrigin = 1;\r\n } else {\r\n vOrigin = 2;\r\n }\r\n \r\n alternative = new Alternative(guitar, vPrice, vWood, vBrand, vOrigin, vBrand); \r\n return alternative;\r\n }", "title": "" }, { "docid": "e98447ddaa1bcb4c4b0b10a9b74a2434", "score": "0.45804822", "text": "public String pickUp(Item i){\n\n\t\tList<Item> bp = backpack.getContainer();\n\t\tList<Item> kr = keyring.getContainer();\n\n\t\tif(i.getClass() != Key.class){\n\n\t\t\tif(!bp.contains(i)){\n\t\t\t\tif(bp.size() < Backpack.MAX_ITEMS){\n\t\t\t\t\tbp.add(i);\n\t\t\t\t\ti.setContainer(backpack);\n\t\t\t\t\tgetGridLocation().removeGameObject(i); // remove the item from the grid location.\n\t\t\t\t\treturn \"You receive loot \" + i.getName();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\treturn \"You are over burdened\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(i instanceof VendorItem){\n\t\t\t\tif(bp.size() < Backpack.MAX_ITEMS){\n\t\t\t\t\tbp.add(i);\n\t\t\t\t\ti.setContainer(backpack);\n\t\t\t\t\tgetGridLocation().removeGameObject(i); // remove the item from the grid location.\n\t\t\t\t\treturn \"You receive loot \" + i.getName();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\treturn \"You are over burdened\";\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn \"You have too many of this \" + i.getName();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(!kr.contains(i)){\n\t\t\t\tif(kr.size() < Keyring.MAX_KEYS){\n\t\t\t\t\tKey k = (Key) i;\n\t\t\t\t\tkr.add(k);\n\t\t\t\t\tk.setContainer(keyring);\n\t\t\t\t\tif(!k.isUnique()){\n\t\t\t\t\t\tgetGridLocation().removeGameObject(k);\n\t\t\t\t\t}\n\t\t\t\t\treturn \"You receive loot \" + i.getName();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\treturn \"You have too many keys\";\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn \"You have too many \" + i.getName() + \" 's\";\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "4593c555662f7c78b428ffb6cc5109ae", "score": "0.4577278", "text": "public int numeroBicisElectric() {\r\n\t\tint contador = 0;\r\n\t\tfor (Bike bici : getPack()) {\r\n\t\t\tif (bici instanceof ElectricBike) {\r\n\t\t\t\tcontador++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "title": "" }, { "docid": "5c8b1013d7cfb29bb730a23e390f02c4", "score": "0.45761377", "text": "int getBicCount();", "title": "" }, { "docid": "9681751acfb68cc578271048ee59fb48", "score": "0.45716426", "text": "private void prepare()\n {\n // Crab 1마리 (231, 203) 좌표에 추가\n Crab crab1 = new Crab();\n addObject(crab1, 231, 203);\n \n Worm[] worm;\n int[] x = new int[10];\n int[] y = new int[10];\n // Worm 10마리 랜덤 좌표에 추가\n worm = new Worm[10];\n for(int i=0;i<10;i++){\n x[i] = Greenfoot.getRandomNumber(561);\n y[i] = Greenfoot.getRandomNumber(561);\n worm[i] = new Worm();\n addObject(worm[i],x[i],y[i]);\n \n }\n \n // Lobster 3마리 추가\n Lobster lob1 = new Lobster(); Lobster lob2 = new Lobster(); Lobster lob3 = new Lobster();\n addObject(lob1, 334, 65); addObject(lob2, 481, 481); addObject(lob3, 79, 270);\n \n // 각 좌표는 (334, 65), (481, 481), (79, 270)\n \n Turtle turtle1 = new Turtle(100);\n int tx = Greenfoot.getRandomNumber(561);\n int ty = Greenfoot.getRandomNumber(561);\n addObject(turtle1, tx, ty);\n \n // 100을 세고 움직이는 Turtle 추가\n // 좌표는 랜덤\n }", "title": "" }, { "docid": "fcbcbf9dbaf05bf5f0bb5cc1a2e27445", "score": "0.4569916", "text": "private void decideWinner() {\n\n\t}", "title": "" }, { "docid": "bf20a9b4f8755606e8e7df0598877d1a", "score": "0.4568293", "text": "@Test\n\tpublic void testSampleSkirt() {\n\t\tPiece pyr1 = new Piece(Piece.PYRAMID_STR);\n\n\t\tassertEquals(new ArrayList<Integer>(Arrays.asList(new Integer[] {0, 0, 0})), pyr1.getSkirt());\n\n\t\tPiece s = new Piece(Piece.S1_STR);\t\n\t\tassertEquals(new ArrayList<Integer>(Arrays.asList(new Integer[] {0, 0, 1})), s.getSkirt());\n\t}", "title": "" }, { "docid": "b9f4425075e0a31894960d9df20e66bd", "score": "0.45670202", "text": "private void allBricksAtPlayPosition(GameContainer gameContainer, int g1,\n\t\t\tint g2, int g3, int g4) {\n\t\tRollDice rollDice = new RollDice();\n\t\trollDice.clickToRollDice(gameContainer);\n\n\t\tif (Play.diceValue == 6) {\n\t\t\tInput input = gameContainer.getInput();\n\t\t\tPlay.xposMouse = Mouse.getX();\n\t\t\tPlay.yposMouse = Mouse.getY();\n\t\t\t// player 1\n\t\t\tif (mouseClickPosition(xPosGreen1, xPosGreen1 + 25,\n\t\t\t\t\t700 - (yPosGreen1 + 25), 700 - yPosGreen1)) {\n\t\t\t\tif (input.isMouseButtonDown(0)) {\n\t\t\t\t\tbricksPosition(Play.listIteratorGreen1 + Play.diceValue, 1,\n\t\t\t\t\t\t\tPlay.listIteratorGreen1, 0);\n\t\t\t\t\tPlay.geeenPlayerThreadControll = true;\n\t\t\t\t\tint returnListiterator = checkOnWayHome(\n\t\t\t\t\t\t\tPlay.listIteratorGreen1, Play.listIteratorGreen1\n\t\t\t\t\t\t\t\t\t+ Play.diceValue);\n\t\t\t\t\tPlay.listIteratorGreen1 = returnListiterator;\n\t\t\t\t\t// Play.listIteratorGreen1 += Play.diceValue;\n\t\t\t\t\t//System.out.println(\":->:->\"+Play.boardStepPositionsLIST.get(Play.listIteratorGreen1).playerId);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// player2\n\t\t\telse if (mouseClickPosition(xPosGreen2, xPosGreen2 + 25,\n\t\t\t\t\t700 - (yPosGreen2 + 25), 700 - yPosGreen2)) {\n\t\t\t\tif (input.isMouseButtonDown(0)) {\n\t\t\t\t\tbricksPosition(Play.listIteratorGreen2 + Play.diceValue, 2,\n\t\t\t\t\t\t\tPlay.listIteratorGreen2, 0);\n\t\t\t\t\t\n\t\t\t\t\tPlay.geeenPlayerThreadControll = true;\n\t\t\t\t\tint returnListiterator = checkOnWayHome(\n\t\t\t\t\t\t\tPlay.listIteratorGreen2, Play.listIteratorGreen2\n\t\t\t\t\t\t\t\t\t+ Play.diceValue);\n\t\t\t\t\tPlay.listIteratorGreen2 = returnListiterator;\n\t\t\t\t\t//Play.listIteratorGreen2 += Play.diceValue;\n\t\t\t\t\t//System.out.println(\":->:->\"+Play.boardStepPositionsLIST.get(Play.listIteratorGreen2).playerId);\n\t\t\t\t\t// Play.playTurn=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// player3\n\t\t\telse if (mouseClickPosition(xPosGreen3, xPosGreen3 + 25,\n\t\t\t\t\t700 - (yPosGreen3 + 25), 700 - yPosGreen3)) {\n\t\t\t\tif (input.isMouseButtonDown(0)) {\n\t\t\t\t\tbricksPosition(Play.listIteratorGreen3 + Play.diceValue, 3,\n\t\t\t\t\t\t\tPlay.listIteratorGreen3, 0);\n\t\t\t\t\tPlay.geeenPlayerThreadControll = true;\n\t\t\t\t\tint returnListiterator = checkOnWayHome(\n\t\t\t\t\t\t\tPlay.listIteratorGreen3, Play.listIteratorGreen3\n\t\t\t\t\t\t\t\t\t+ Play.diceValue);\n\t\t\t\t\tPlay.listIteratorGreen3 = returnListiterator;\n\t\t\t\t\t//Play.listIteratorGreen3 += Play.diceValue;\n\t\t\t\t\t//System.out.println(\":->:->\"+Play.boardStepPositionsLIST.get(Play.listIteratorGreen3).playerId);\n\t\t\t\t\t// Play.playTurn=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// player4\n\t\t\telse if (mouseClickPosition(xPosGreen4, xPosGreen4 + 25,\n\t\t\t\t\t700 - (yPosGreen4 + 25), 700 - yPosGreen4)) {\n\t\t\t\tif (input.isMouseButtonDown(0)) {\n\t\t\t\t\tbricksPosition(Play.listIteratorGreen4 + Play.diceValue, 4,\n\t\t\t\t\t\t\tPlay.listIteratorGreen4, 0);\n\t\t\t\t\tPlay.geeenPlayerThreadControll = true;\n\t\t\t\t\tint returnListiterator = checkOnWayHome(\n\t\t\t\t\t\t\tPlay.listIteratorGreen4, Play.listIteratorGreen4\n\t\t\t\t\t\t\t\t\t+ Play.diceValue);\n\t\t\t\t\tPlay.listIteratorGreen4 = returnListiterator;\n\t\t\t\t\t//Play.listIteratorGreen4 += Play.diceValue;\n\t\t\t\t\t//System.out.println(\":->:->\"+Play.boardStepPositionsLIST.get(Play.listIteratorGreen4).playerId);\n\t\t\t\t\t// Play.playTurn=1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else if (Play.diceValue != 6) {\n\t\t\tInput input = gameContainer.getInput();\n\t\t\tPlay.xposMouse = Mouse.getX();\n\t\t\tPlay.yposMouse = Mouse.getY();\n\t\t\t// player 1\n\t\t\tif (mouseClickPosition(xPosGreen1, xPosGreen1 + 25,\n\t\t\t\t\t700 - (yPosGreen1 + 25), 700 - yPosGreen1)) {\n\t\t\t\tif (input.isMouseButtonDown(0)) {\n\t\t\t\t\tbricksPosition(Play.listIteratorGreen1 + Play.diceValue, 1,\n\t\t\t\t\t\t\tPlay.listIteratorGreen1, 0);\n\t\t\t\t\tPlay.geeenPlayerThreadControll = true;\n\t\t\t\t\t// Play.listIteratorGreen1 += Play.diceValue;\n\t\t\t\t\tint returnListiterator = checkOnWayHome(\n\t\t\t\t\t\t\tPlay.listIteratorGreen1, Play.listIteratorGreen1\n\t\t\t\t\t\t\t\t\t+ Play.diceValue);\n\t\t\t\t\tPlay.listIteratorGreen1 = returnListiterator;\n\t\t\t\t\t//System.out.println(\"->->->\"+Play.boardStepPositionsLIST.get(Play.listIteratorGreen1).playerId);\n\t\t\t\t\tPlay.playTurn = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// player2\n\t\t\telse if (mouseClickPosition(xPosGreen2, xPosGreen2 + 25,\n\t\t\t\t\t700 - (yPosGreen2 + 25), 700 - yPosGreen2)) {\n\t\t\t\tif (input.isMouseButtonDown(0)) {\n\t\t\t\t\tbricksPosition(Play.listIteratorGreen2 + Play.diceValue, 2,\n\t\t\t\t\t\t\tPlay.listIteratorGreen2, 0);\n\t\t\t\t\tPlay.geeenPlayerThreadControll = true;\n\t\t\t\t\tint returnListiterator = checkOnWayHome(\n\t\t\t\t\t\t\tPlay.listIteratorGreen2, Play.listIteratorGreen2\n\t\t\t\t\t\t\t\t\t+ Play.diceValue);\n\t\t\t\t\tPlay.listIteratorGreen2 = returnListiterator;\n\t\t\t\t\t// Play.listIteratorGreen2 += Play.diceValue;\n\t\t\t\t\t//System.out.println(\"->->->\"+Play.boardStepPositionsLIST.get(Play.listIteratorGreen2).playerId);\n\t\t\t\t\tPlay.playTurn = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// player3\n\t\t\telse if (mouseClickPosition(xPosGreen3, xPosGreen3 + 25,\n\t\t\t\t\t700 - (yPosGreen3 + 25), 700 - yPosGreen3)) {\n\t\t\t\tif (input.isMouseButtonDown(0)) {\n\t\t\t\t\tbricksPosition(Play.listIteratorGreen3 + Play.diceValue, 3,\n\t\t\t\t\t\t\tPlay.listIteratorGreen3, 0);\n\t\t\t\t\tPlay.geeenPlayerThreadControll = true;\n\t\t\t\t\tint returnListiterator = checkOnWayHome(\n\t\t\t\t\t\t\tPlay.listIteratorGreen3, Play.listIteratorGreen3\n\t\t\t\t\t\t\t\t\t+ Play.diceValue);\n\t\t\t\t\tPlay.listIteratorGreen3 = returnListiterator;\n\t\t\t\t\t// Play.listIteratorGreen3 += Play.diceValue;\n\t\t\t\t\t//System.out.println(\"->->->\"+Play.boardStepPositionsLIST.get(Play.listIteratorGreen3).playerId);\n\t\t\t\t\tPlay.playTurn = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// player4\n\t\t\telse if (mouseClickPosition(xPosGreen4, xPosGreen4 + 25,\n\t\t\t\t\t700 - (yPosGreen4 + 25), 700 - yPosGreen4)) {\n\t\t\t\tif (input.isMouseButtonDown(0)) {\n\t\t\t\t\tbricksPosition(Play.listIteratorGreen4 + Play.diceValue, 4,\n\t\t\t\t\t\t\tPlay.listIteratorGreen4, 0);\n\t\t\t\t\tPlay.geeenPlayerThreadControll = true;\n\t\t\t\t\tint returnListiterator = checkOnWayHome(\n\t\t\t\t\t\t\tPlay.listIteratorGreen4, Play.listIteratorGreen4\n\t\t\t\t\t\t\t\t\t+ Play.diceValue);\n\t\t\t\t\tPlay.listIteratorGreen4 = returnListiterator;\n\t\t\t\t\t// Play.listIteratorGreen4 += Play.diceValue;\n\t\t\t\t\t//System.out.println(\"->->->\"+Play.boardStepPositionsLIST.get(Play.listIteratorGreen4).playerId);\n\t\t\t\t\tPlay.playTurn = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ed3d796d5e085b66f9ad675f3302be3d", "score": "0.45594817", "text": "public String toString() {\n return \"bulls : \" + bulls + \", cows : \" + cows;\n }", "title": "" }, { "docid": "67421dc9be115af11a5fc8601573e366", "score": "0.45593438", "text": "public void startRobbing() {\r\n slowDown();\r\n ArrayList<Resource> resources = new ArrayList<>();\r\n int rob = getManagement().getRobber().cardNumberToRob(this);\r\n HashMap<Resource, Integer> numbers = new HashMap<>();\r\n numbers.put(Resource.BRICK, getSpecificResource(Resource.BRICK));\r\n numbers.put(Resource.ORE, getSpecificResource(Resource.ORE));\r\n numbers.put(Resource.WOOL, getSpecificResource(Resource.WOOL));\r\n numbers.put(Resource.GRAIN, getSpecificResource(Resource.GRAIN));\r\n numbers.put(Resource.LUMBER, getSpecificResource(Resource.LUMBER));\r\n LOGGER.info(\"Ai: Ressourcen 1, Brick: \" + numbers.get(Resource.BRICK) + \", Ore: \" + numbers.get(Resource.ORE) + \", Wool: \" + numbers.get(Resource.WOOL) + \", Grain: \" + numbers.get(Resource.GRAIN) + \", Lumber: \" + numbers.get(Resource.LUMBER));\r\n\r\n while (resources.size() < rob) {\r\n resources.add(largestResourceNumber(numbers));\r\n LOGGER.info(\"Ai: Ressourcen 1, Brick: \" + numbers.get(Resource.BRICK) + \", Ore: \" + numbers.get(Resource.ORE) + \", Wool: \" + numbers.get(Resource.WOOL) + \", Grain: \" + numbers.get(Resource.GRAIN) + \", Lumber: \" + numbers.get(Resource.LUMBER));\r\n\r\n }\r\n clientWriter.handInResources(resources);\r\n }", "title": "" }, { "docid": "84c7a46eb5db9bd14fe4c2f6079d027a", "score": "0.45539635", "text": "public String pickThreeHundred(int type) {\n PickUpResult result = new PickUpResult();\n if (type == 0) {\n // normal\n for (int i = 0; i < 30; i++) {\n PickUpResult temp = pickTenNormal();\n result.appendResult(temp);\n }\n } else if (type == 1) {\n for (int i = 0; i < 30; i++) {\n PickUpResult temp = pickTenPickUp();\n if (temp.getFirstAppear() != -1 && result.getFirstAppear() == -1) {\n result.setFirstAppear(i * 10 + temp.getFirstAppear());\n }\n result.appendResult(temp);\n }\n }\n\n String words = \"\";\n\n words += \"一星数量:\" + result.getOneNumber() + \"\\n\";\n words += \"两星数量:\" + result.getTwoNumber() + \"\\n\";\n words += \"三星数量:\" + result.getThreeNumber() + \"\\n\";\n words += \"pick up数量:\" + result.getRateUpNumber() + \"\\n\";\n words += \"全角色母猪石数量::\" + result.getStoneNumber() + \"\\n\";\n if (result.getFirstAppear() != -1) {\n words += \"pick up第一次是在第 \" + result.getFirstAppear() + \" 抽出现\\n\";\n } else {\n words += \"你井了!!!\\n\";\n }\n\n Random random = new Random();\n StringBuilder charList = new StringBuilder();\n if (type == 0) {\n // normal\n int time = result.getThreeNumber();\n ArrayList<String> chars = pcrMapper.getAllCharacter();\n for (int i = 0; i < time - 1; i++) {\n charList.append(chars.get(random.nextInt(chars.size()))).append(\", \");\n }\n if (time > 0) {\n charList.append(chars.get(random.nextInt(chars.size()))).append(\"\\n\");\n }\n\n } else if (type == 1) {\n int totalTime = result.getThreeNumber();\n int specialTime = result.getRateUpNumber();\n\n ArrayList<String> Nchars = pcrMapper.getNormalCharacter();\n ArrayList<String> Schars = pcrMapper.getUpCharacter();\n for (int i = 0; i < totalTime - 1; i++) {\n int dec = random.nextInt(totalTime - i);\n if (dec < specialTime) {\n charList.append(Schars.get(random.nextInt(Schars.size()))).append(\", \");\n specialTime--;\n } else {\n charList.append(Nchars.get(random.nextInt(Nchars.size()))).append(\", \");\n }\n\n }\n if (totalTime > 0) {\n if (specialTime > 0) {\n charList.append(Schars.get(random.nextInt(Schars.size()))).append(\"\\n\");\n } else {\n charList.append(Nchars.get(random.nextInt(Nchars.size()))).append(\"\\n\");\n }\n }\n }\n words += charList.toString();\n if (result.getThreeNumber() < 7) {\n words += \"\\n你也太非了吧, 别抽了,别抽了,入土吧~\\n\";\n } else if (result.getThreeNumber() < 11) {\n words += \"\\n符合数学预期水准,知足吧~\\n\";\n } else {\n words += \"\\n来人啊,把这只欧洲狗拖出去斩了~\\n\";\n }\n // System.out.println(words);\n return words;\n }", "title": "" }, { "docid": "f594a49f11b81c0feab00c4ddc7ec1a4", "score": "0.45492658", "text": "public void getImageSource(Integer faceValue, Suit suit)\n {\n\n if(faceValue == 1)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\Ace_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\Ace_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\Ace_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\Ace_Spades.jpg\";\n }\n else if(faceValue == 2)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\2_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\2_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\2_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\2_Spades.jpg\";\n }\n else if(faceValue == 3)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\3_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\3_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\3_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\3_Spades.jpg\";\n }\n else if(faceValue == 4)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\4_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\4_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\4_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\4_Spades.jpg\";\n }\n else if(faceValue == 5)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\5_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\5_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\5_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\5_Spades.jpg\";\n }\n else if(faceValue == 6)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\6_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\6_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\6_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\6_Spades.jpg\";\n }\n else if(faceValue == 7)\n {\n \n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\7_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\7_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\7_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\7_Spades.jpg\";\n }\n else if(faceValue == 8)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\8_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\8_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\8_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\8_Spades.jpg\";\n }\n else if(faceValue == 9)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\9_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\9_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\9_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\9_Spades.jpg\";\n }\n else if(faceValue == 10)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\10_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\10_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\10_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\10_Spades.jpg\";\n }\n else if(faceValue == 11)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\Jack_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\Jack_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\Jack_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\Jack_Spades.jpg\";\n }\n else if(faceValue == 12)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\Queen_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\Queen_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\Queen_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\Queen_Spades.jpg\";\n }\n else if(faceValue == 13)\n {\n if(suit == Suit.clubs )\n ImageResource = \"Cards\\\\King_Clubs.jpg\";\n else if(suit == Suit.Diamnonds )\n ImageResource = \"Cards\\\\King_Diamonds.jpg\";\n else if (suit == Suit.hearts)\n ImageResource = \"Cards\\\\King_Hearts.jpg\";\n else \n ImageResource = \"Cards\\\\King_Spades.jpg\";\n }\n else \n {\n System.out.println(\"setImage Error\");\n System.exit(0);\n } \n }", "title": "" }, { "docid": "078653a8b03a565953439930cccfa039", "score": "0.45479065", "text": "public void actionCollisionOfBallAndBrick() {\n\n\t\tIterator<Brick> iter = bricks.iterator();\n\n\t\twhile (iter.hasNext()) {\n\t\t\tBrick brickTemp = iter.next();\n\n\t\t\tif (brickTemp.overlaps(ball)) {\n\t\t\t\tif (isSoundOn)\n\t\t\t\t\tbrick_break_sound.play();\n\t\t\t\t// calculate Score\n\t\t\t\tcalculateScoreLevel1();\n\n\t\t\t\t// Change ball direction\n\t\t\t\tif (!alreadyChangedBallDirection) {\n\t\t\t\t\tchangeBallDirectionOnHittingObstacle(brickTemp);\n\t\t\t\t}\n\n\t\t\t\t// Check brick durability\n\t\t\t\tbrickTemp.decreaseDurability();\n\n\t\t\t\tif (brickTemp.getDurability() == 0) {\n\n\t\t\t\t\t// create Item image and dropped it\n\t\t\t\t\tif (brickTemp.getItem() != null) {\n\t\t\t\t\t\tLog.i(\"Item\", \"index: \" + iter.toString() + \",\"\n\t\t\t\t\t\t\t\t+ brickTemp.getItem().getName());\n\t\t\t\t\t\tcreateDroppedItem(brickTemp, brickTemp.getItem());\n\n\t\t\t\t\t\t// add item into the itemlist of Bar\n\t\t\t\t\t}\n\n\t\t\t\t\t// Delete the overlapped brick\n\t\t\t\t\titer.remove();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tif (bricks.isEmpty()) {\n\t\t\tspawnBoss = true;\n\t\t\tlastBossChangeDirectionTime = TimeUtils.nanoTime();\n\t\t\tlastBossStunTime = TimeUtils.nanoTime();\n\t\t\tlastDropTime = TimeUtils.nanoTime();\n\n\t\t\t// bg_start_music.stop();\n\t\t\tbg_boss_music.setLooping(true);\n\t\t\tif (isSoundOn) {\n\t\t\t\tbg_start_music.stop();\n\t\t\t\tbg_boss_music.play();\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "b2593df1699cf86a04da46efce32f9a6", "score": "0.4546201", "text": "private static String rats_state()\r\n\t{\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tdouble radius = inner_side * 0.5 + outer_side;\r\n\t\tfor (int r = 0 ; r != rats.length ; ++r) {\r\n\t\t\tdouble x = rats[r].x / radius;\r\n\t\t\tdouble y = rats[r].y / radius;\r\n\t\t\tdouble a = rat_angle[r];\r\n\t\t\tint t = rat_tune[r];\r\n\t\t\tbuf.append(x + \", \" + y + \", \" + a + \", \" + t);\r\n\t\t\tif (r + 1 != rats.length)\r\n\t\t\t\tbuf.append(\", \");\r\n\t\t}\r\n\t\treturn buf.toString();\r\n\t}", "title": "" }, { "docid": "9932e4bbfe980fdbe1a923232f971c9f", "score": "0.453514", "text": "private State getState() {\n\t\tif (inventory.isEmpty())\r\n\t\t\t\treturn State.BANK;\r\n\t\telse if ((inventory.getAmount(\"Jug\") == 14) && (inventory.getAmount(\"Soft clay\") == 14))\r\n\t\t\treturn State.BANK;\r\n\t\t\r\n\t\t// If inventory contains 14 Jug of water AND 14 Clay, soften\r\n\t\tif ((inventory.getAmount(\"Jug of water\") == 14) && (inventory.getAmount(\"Clay\") == 14))\r\n\t\t\treturn State.SOFTEN;\r\n\t\treturn State.WAIT;\r\n\t}", "title": "" }, { "docid": "af904d3311600c7f2a1ddf8e4b645e16", "score": "0.45338282", "text": "@Test\n\tpublic void test2() {\n\t\trun2(Blob1, 6, 1);\n\t\trun2(Blob2, 11, 2);\n\t\trun2(Blob3, 32, 8);\n\t\trun2(BlobLevelTest, 3, 2);\n\t\trun2(BlobLevelTestNoise, 341, 159);\n\t\trun2(BlobOriented, 10, 1);\n\t\trun2(BlobsInWhite, 4, 3);\n\t\trun2(BoatsTiny, 312, 70);\n\t\trun2(BoatsTinyB, 309, 69);\n\t\trun2(BoatsTinyBW, 3, 2);\n\t\trun2(BoatsTinyW, 313, 70);\n\t\trun2(BoatsTinyW2, 312, 69);\n\t\trun2(AllBlack, 1, 1);\n\t\trun2(AllWhite, 1, 1);\n\t}", "title": "" }, { "docid": "021cc20d8c53f3050c178c84acafd93e", "score": "0.45245534", "text": "@Test\n\tpublic void testSetUpWhites() {\n\t\tassertEquals(Marble.WW, b.getMarble(\"3C\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"4C\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"5C\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"1B\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"2B\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"3B\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"4B\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"5B\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"6B\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"1A\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"2A\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"3A\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"4A\"));\n\t\tassertEquals(Marble.WW, b.getMarble(\"5A\"));\n\t}", "title": "" }, { "docid": "37ff44b1c94d39fcacb9a0e07433dd1a", "score": "0.4523831", "text": "private Pit [] getPits(char side)\n {\n\t if (side == 'a')\n\t\t return a;\n\t else if (side == 'b')\n\t\t return b;\n\t \n\t return null;\n }", "title": "" }, { "docid": "4b71dc55d21029dc0203700cf0741064", "score": "0.45235345", "text": "@Test\n public void testGetComponents() {\n ArrayList<Component> expected = new ArrayList<Component>();\n expected.add(Brakes.AJ);\n expected.add(Fork.FT);\n expected.add(Frame.SPP);\n expected.add(Suspension.FRP23);\n expected.add(Wheels.DTSX1800);\n \n ArrayList<Component> actual = bike.getComponents();\n assertEquals(expected,actual);\n }", "title": "" }, { "docid": "4e8fa2d9985cf8a2ebe3d71c7321c434", "score": "0.452336", "text": "public void mapBeliefs() {\n\n int beliefCount = 0;\n\n for (MBelief belief : capability.getBeliefs()) {\n\n String beliefName = belief.getName();\n\n if (belief.getValue(access) instanceof EmotionalBelief) {\n\n EmotionalBelief emotionalBelief = (EmotionalBelief) belief.getValue(access);\n\n String capaBeliefName = belief.getCapabilityName() + \"/\" + emotionalBelief.getName();\n\n //System.err.println(beliefName + \" \" + emotionalBelief.getName() + \" \" + belief.getCapabilityName());\n\n if (emotionalBelief != null && emotionalBelief.getName() != null\n && !emotionalBelief.getName().equals(\"\") && (emotionalBelief.getName().equals(beliefName)\n || capaBeliefName.equals(beliefName))) {\n\n //if (belief.getCapabilityName() != null) engine.addElement(capaBeliefName, R.BELIEF);\n //else engine.addElement(beliefName, R.BELIEF);\n engine.addElement(beliefName, R.BELIEF);\n\n if (belief.getCapabilityName() != null) emotionalBelief.setName(capaBeliefName);\n\n beliefCount++;\n } else {\n if (!emotionalBelief.getName().equals(beliefName)) {\n System.err.println(\"Belief name doesn't match EmotionalBelief name: \" + belief.getName() + \", \" + emotionalBelief.getName());\n }\n }\n //BDI v3 doesn't support BeliefSet, so we have to check if this belief is a Collection,\n // to save it as BeliefSet in JBdiEmo\n } else if (belief.getValue(access) instanceof Collection) {\n\n ParameterizedType parameterizedType = (ParameterizedType) belief.getField().getField(agent.getClass().getClassLoader()).getGenericType();\n\n Class<?> listClass = (Class<?>) parameterizedType.getActualTypeArguments()[0];\n\n if (\"sk.tuke.fei.bdi.emotionalengine.belief.EmotionalBelief\".equals(listClass.getName())) {\n\n engine.addElement(beliefName, R.BELIEF_SET);\n\n Collection<EmotionalBelief> collection = (Collection<EmotionalBelief>) belief.getValue(access);\n\n Iterator iterator = collection.iterator();\n\n while (iterator.hasNext()) {\n\n Object object = iterator.next();\n\n if (object instanceof EmotionalBelief) {\n\n EmotionalBelief elementBelief = (EmotionalBelief) object;\n\n if (beliefName != null && !beliefName.equals(\"\")) {\n\n // Add element corresponding to particular belief into emotional engine\n engine.addElement(elementBelief.getName(), R.BELIEF_SET_BELIEF, beliefName);\n\n // Increment belief count\n beliefCount++;\n }\n }\n }\n\n }\n\n } else if (belief.getValue(access) instanceof Map) {\n Map map = (Map) belief.getValue(access);\n\n Type type = belief.getField().getField(agent.getClass().getClassLoader()).getGenericType();\n\n if (!(type instanceof ParameterizedType)) continue;\n\n ParameterizedType parameterizedType = (ParameterizedType) type;\n\n Class<?> listClass = (Class<?>) parameterizedType.getActualTypeArguments()[1];\n\n if (map != null && \"sk.tuke.fei.bdi.emotionalengine.belief.EmotionalBelief\".equals(listClass.getName())) {\n Iterator iterator = map.keySet().iterator();\n\n engine.addElement(beliefName, R.BELIEF_SET);\n\n while (iterator.hasNext()) {\n Map.Entry pair = (Map.Entry) iterator.next();\n\n if (pair.getValue() instanceof EmotionalBelief) {\n\n EmotionalBelief elementBelief = (EmotionalBelief) pair.getValue();\n\n if (beliefName != null && !beliefName.equals(\"\")) {\n\n // Add element corresponding to particular belief into emotional engine\n engine.addElement(elementBelief.getName(), R.BELIEF_SET_BELIEF, beliefName);\n\n // Increment belief count\n beliefCount++;\n }\n }\n }\n }\n }\n }\n\n int totalCount = capability.getBeliefs().size();\n\n System.out.println(\"Beliefs created : \" + beliefCount + \", total count of beliefs : \" + totalCount);\n\n }", "title": "" }, { "docid": "25ce2286a128d3b19a7814b390731631", "score": "0.4522763", "text": "int getBonesBuried();", "title": "" }, { "docid": "fe9b6d4579e353f559c871e68e47d68d", "score": "0.4519951", "text": "public int findStonesBlue(){\r\n if(crop != null) {\r\n int startX = 40, picWidth = 700, startY = 350, picHeight = 100;\r\n crop = new Mat(crop, new Rect(startX,startY,picWidth,picHeight));\r\n\r\n //apply yellow filter\r\n Imgproc.cvtColor(crop,crop,Imgproc.COLOR_RGB2HSV_FULL);\r\n\r\n //apply yellow mask;\r\n mask = new Mat();\r\n Core.inRange(crop,YELLOW_LOW, YELLOW_HIGH, mask);\r\n boolean[] yellowLines = findWhiteLines(picWidth,picHeight);\r\n\r\n int numBlackLinesFound = 0;\r\n int numWhiteLinesFound = 0;\r\n int stoneEnd = 0;\r\n int sumColumnIndex = 0;\r\n for(int i = 0; i < picWidth; i++) {\r\n if(yellowLines[i] == true) {\r\n numWhiteLinesFound++;\r\n if(numWhiteLinesFound > MIN_CONSECUTIVE_COLOR) {\r\n stoneEnd = i - MIN_CONSECUTIVE_COLOR;\r\n break;\r\n }\r\n }else numWhiteLinesFound = 0;\r\n } //Found stone end\r\n for(int i = stoneEnd; i <picWidth; i++) {\r\n if(yellowLines[i] == false) {\r\n numBlackLinesFound++;\r\n sumColumnIndex += i;\r\n }\r\n }\r\n if(numBlackLinesFound < (picWidth-stoneEnd )/ 5) skyStoneOrder = SKY_INSIDE;\r\n else {\r\n int blackColumn = sumColumnIndex / numBlackLinesFound;\r\n if(blackColumn-stoneEnd < (picWidth-stoneEnd ) / 2) skyStoneOrder = SKY_OUTSIDE;\r\n else skyStoneOrder = SKY_CENTER;\r\n }\r\n }\r\n \treturn skyStoneOrder;\r\n }", "title": "" }, { "docid": "0532ac00678c1ac3a84e629a3075c302", "score": "0.45188734", "text": "public int getUseInBoat();", "title": "" }, { "docid": "c1480217197273b10858cd6267b6b91c", "score": "0.45165086", "text": "public long whiteMen(){\r\n return whitePieces & ~kings;\r\n }", "title": "" }, { "docid": "9a765884a8afce710b95163f81e3a70e", "score": "0.45101643", "text": "public String combineSibPred(ArrayList<Object> candidates, ArrayList<Object> pcString) throws KSInternalErrorException {\n String candiStr = ((StringObj) candidates.get(0)).value;\n int where = candiStr.indexOf(\"(\"), typ1 = famPred(candiStr),\n comma = candiStr.indexOf(\",\");\n String pred1 = candiStr.substring(0, where),\n ego = candiStr.substring(comma + 1, candiStr.length() - 1);\n candiStr = ((StringObj) candidates.get(1)).value;\n where = candiStr.indexOf(\"(\");\n String pred2 = candiStr.substring(0, where);\n if (typ1 < 29) {\n return pred2;\n }\n int typ2 = famPred(candiStr);\n if (typ2 > 20 && typ2 < 30) { // simple sibling pred\n if (typ1 < 39) {\n return \"H\" + pred2.toLowerCase();\n } else {\n return \"St\" + pred2.toLowerCase();\n }\n }\n // OK, got a parent of a half- or step-sibling or a 31-43 with another 31-43\n if (typ1 < 39) { // a half-sibling\n if (typ2 < 3) { // parent of a half-sibling\n String[] parents = findParents(ego, pcString); // 0=mom, 1=dad\n where = candiStr.indexOf(\"(\");\n comma = candiStr.indexOf(\",\");\n String halfPar = candiStr.substring(where + 1, comma);\n if (halfPar.equals(parents[0]) || halfPar.equals(parents[1])) {\n return pred2;\n }\n return \"St\" + pred2.toLowerCase();\n } else {\n return null;\n }\n } else { // a step-sibling\n if (typ2 < 3) { // parent of a step-sibling\n String egoStepPar = findStepPar(ego, pcString);\n String[] family = bindFamily(candiStr);\n String altPar = family[0];\n if (egoStepPar.equals(altPar)) {\n return \"St\" + pred2.toLowerCase();\n }\n return null;\n } else {\n return null;\n }\n }\n }", "title": "" }, { "docid": "7e1084f6b60529bbd6d69dd2eaae32e7", "score": "0.45080099", "text": "public static void main(String[] args) throws IOException {\n\r\n\t\tString num;\r\n\t\t int l=1,c=0,r=0,tmp=0; \r\n\t\t \r\n\t\t BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t \r\n\t\tdo{\r\n System.out.print(\"Enter Value 50 character (A or B or C) :\");\r\n num = in.readLine();\r\n\t\t }while\r\n\t\t\t ((num.length() > 50 || num.length() < 1 || num.length() == 0) || (num.charAt(0)!='A'\r\n\t\t\t\t && num.charAt(0)!='B' && num.charAt(0)!='C'\r\n\t\t\t\t && num.charAt(0)!='a' && num.charAt(0)!='b' && num.charAt(0)!='c'));\r\n\t\t\r\n\t\tfor(int i=0;i<num.length();i++){\r\n\t\t\tif(num.charAt(i)=='A' || num.charAt(i)=='a'){ \r\n\t\t\t\ttmp=l;\r\n\t\t\t\tl=c;\r\n\t\t\t\tc=tmp;\r\n\t\t\t}\r\n\t\t\tif(num.charAt(i)=='B' || num.charAt(i)=='b'){\r\n\t\t\t\ttmp=c;\r\n\t\t\t\tc=r;\r\n\t\t\t\tr=tmp;\r\n\t\t\t}\r\n\t\t\tif(num.charAt(i)=='C' || num.charAt(i)=='c'){\r\n\t\t\t\ttmp=r;\r\n\t\t\t\tr=l;\r\n\t\t\t\tl=tmp;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(l==1) System.out.print(\"Glass 1 Left\\n\");\r\n\t\telse if(c==1) System.out.print(\"Glass 2 Center\\n\");\r\n\t\telse if(r==1) System.out.print(\"Glass 3 Right\\n\");\r\n\t}", "title": "" }, { "docid": "cecf653e792eae22ba88d71e595d2023", "score": "0.45047045", "text": "public String predictPartyVictory(String senate) {\n List<Integer> dSenators = new LinkedList<>();\n List<Integer> rSenators = new LinkedList<>();\n\n for(int i=0; i<senate.length(); i++){\n if(senate.charAt(i)=='D') dSenators.add(i);\n else rSenators.add(i);\n }\n while(!dSenators.isEmpty()&&!rSenators.isEmpty()){\n List<Integer> remainingDSenators = new LinkedList<>();\n List<Integer> remainingRSenators = new LinkedList<>();\n while(!dSenators.isEmpty()||!rSenators.isEmpty()){\n if(!dSenators.isEmpty()&&!rSenators.isEmpty()){\n if(dSenators.get(0)<rSenators.get(0)){\n remainingDSenators.add(dSenators.get(0));\n dSenators.remove(0);\n rSenators.remove(0);\n }\n else{\n remainingRSenators.add(rSenators.get(0));\n rSenators.remove(0);\n dSenators.remove(0);\n }\n }\n else if(rSenators.isEmpty()){\n remainingDSenators.add(dSenators.get(0));\n dSenators.remove(0);\n if(!remainingRSenators.isEmpty()) remainingRSenators.remove(0);\n else return \"Dire\";\n } else if (dSenators.isEmpty()) {\n remainingRSenators.add(rSenators.get(0));\n rSenators.remove(0);\n if(!remainingDSenators.isEmpty()) remainingDSenators.remove(0);\n else return \"Radiant\";\n }\n }\n rSenators = remainingRSenators;\n dSenators = remainingDSenators;\n }\n return rSenators.isEmpty()? \"Dire\":\"Radiant\";\n }", "title": "" }, { "docid": "7b7f101f510672cfe2ffe33cccc7bc54", "score": "0.44998613", "text": "public boolean less(int v, int w) { \n\t compV = rgbComponents(v);\n\t compW = rgbComponents(w);\n\t testV = v;\n\t testW = w;\n\t\tswitch(compOrder) {\n\t\tcase RGB: {\n\t\t\tbreak;\n\t\t}\n\t\tcase BRG: {\n\t\t\ttestV = composeColor(compV[2], compV[0], compV[1], 255);\n\t\t\ttestW = composeColor(compW[2], compW[0], compW[1], 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase GBR: {\n\t\t\ttestV = composeColor(compV[1], compV[2], compV[0], 255);\n\t\t\ttestW = composeColor(compW[1], compW[2], compW[0], 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase GRB: {\n\t\t\ttestV = composeColor(compV[1], compV[0], compV[2], 255);\n\t\t\ttestW = composeColor(compW[1], compW[0], compW[2], 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase BGR: {\n\t\t\ttestV = composeColor(compV[2], compV[1], compV[0], 255);\n\t\t\ttestW = composeColor(compW[2], compW[1], compW[0], 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase RBG: {\n\t\t\ttestV = composeColor(compV[0], compV[2], compV[1], 255);\n\t\t\ttestW = composeColor(compW[0], compW[2], compW[1], 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase HSB: {\n\t\t\tapp.colorMode(PApplet.HSB, 255);\n\t\t\tint hueV = Math.round(app.hue(v));\n\t\t\tint brightV = Math.round(app.brightness(v));\n\t\t\tint satV = Math.round(app.saturation(v));\n\t\t\tint hueW = Math.round(app.hue(w));\n\t\t\tint brightW = Math.round(app.brightness(w));\n\t\t\tint satW = Math.round(app.saturation(w));\n\t\t\ttestV = composeColor(hueV, satV, brightV, 255);\n\t\t\ttestW = composeColor(hueW, satW, brightW, 255);\n\t\t\tapp.colorMode(PApplet.RGB, 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase HBS: {\n\t\t\tapp.colorMode(PApplet.HSB, 255);\n\t\t\tint hueV = Math.round(app.hue(v));\n\t\t\tint brightV = Math.round(app.brightness(v));\n\t\t\tint satV = Math.round(app.saturation(v));\n\t\t\tint hueW = Math.round(app.hue(w));\n\t\t\tint brightW = Math.round(app.brightness(w));\n\t\t\tint satW = Math.round(app.saturation(w));\n\t\t\ttestV = composeColor(hueV, brightV, satV, 255);\n\t\t\ttestW = composeColor(hueW, brightW, satW, 255);\n\t\t\tapp.colorMode(PApplet.RGB, 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase BHS: {\n\t\t\tapp.colorMode(PApplet.HSB, 255);\n\t\t\tint hueV = Math.round(app.hue(v));\n\t\t\tint brightV = Math.round(app.brightness(v));\n\t\t\tint satV = Math.round(app.saturation(v));\n\t\t\tint hueW = Math.round(app.hue(w));\n\t\t\tint brightW = Math.round(app.brightness(w));\n\t\t\tint satW = Math.round(app.saturation(w));\n\t\t\ttestV = composeColor(brightV, hueV, satV, 255);\n\t\t\ttestW = composeColor(brightW, hueW, satW, 255);\n\t\t\tapp.colorMode(PApplet.RGB, 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase SHB: {\n\t\t\tapp.colorMode(PApplet.HSB, 255);\n\t\t\tint hueV = Math.round(app.hue(v));\n\t\t\tint brightV = Math.round(app.brightness(v));\n\t\t\tint satV = Math.round(app.saturation(v));\n\t\t\tint hueW = Math.round(app.hue(w));\n\t\t\tint brightW = Math.round(app.brightness(w));\n\t\t\tint satW = Math.round(app.saturation(w));\n\t\t\ttestV = composeColor(satV, hueV, brightV, 255);\n\t\t\ttestW = composeColor(satW, hueW, brightW, 255);\n\t\t\tapp.colorMode(PApplet.RGB, 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase BSH: {\n\t\t\tapp.colorMode(PApplet.HSB, 255);\n\t\t\tint hueV = Math.round(app.hue(v));\n\t\t\tint brightV = Math.round(app.brightness(v));\n\t\t\tint satV = Math.round(app.saturation(v));\n\t\t\tint hueW = Math.round(app.hue(w));\n\t\t\tint brightW = Math.round(app.brightness(w));\n\t\t\tint satW = Math.round(app.saturation(w));\n\t\t\ttestV = composeColor(brightV, satV, hueV, 255);\n\t\t\ttestW = composeColor(brightW, satW, hueW, 255);\n\t\t\tapp.colorMode(PApplet.RGB, 255);\n\t\t\tbreak;\n\t\t}\n\t\tcase SBH: {\n\t\t\tapp.colorMode(PApplet.HSB, 255);\n\t\t\tint hueV = Math.round(app.hue(v));\n\t\t\tint brightV = Math.round(app.brightness(v));\n\t\t\tint satV = Math.round(app.saturation(v));\n\t\t\tint hueW = Math.round(app.hue(w));\n\t\t\tint brightW = Math.round(app.brightness(w));\n\t\t\tint satW = Math.round(app.saturation(w));\n\t\t\ttestV = composeColor(satV, brightV, hueV, 255);\n\t\t\ttestW = composeColor(satW, brightW, hueW, 255);\n\t\t\tapp.colorMode(PApplet.RGB, 255);\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t\tcount++;\t\t\t\n\t\tif (isAscendingSort) return testV > testW;\n\t\treturn testV < testW;\n\t\t// return v < w; \n\t}", "title": "" }, { "docid": "aba2a2530f4613f9c03bf574998a8280", "score": "0.4499236", "text": "public void yourBouquet(int button , int color) {\n\t\tif(button==1) {\n\t\t\tif(color==1) listOfFlowers.add(new Rose(NameOfFlower.ROSE,Color.PINK,20,6));\n\t\t\tif(color==2) listOfFlowers.add(new Rose(NameOfFlower.ROSE,Color.RED,23,4));\n\t\t\tif(color==3) listOfFlowers.add(new Rose(NameOfFlower.ROSE,Color.WHITE,15,3));}\n\t\tif(button==2) { \n\t\t\tif(color==1) listOfFlowers.add(new Daisy(NameOfFlower.DAISY,Color.PINK,15,2));\n\t\t\tif(color==2) listOfFlowers.add(new Daisy(NameOfFlower.DAISY,Color.RED,12,1));\n\t\t\tif(color==3) listOfFlowers.add(new Daisy(NameOfFlower.DAISY,Color.WHITE,20,4));}\n\t\tif(button==3) {\n\t\t\tif(color==1)listOfFlowers.add(new —hamomile(NameOfFlower.CHAMOMILE,Color.PINK,25,7));\n\t\t\tif(color==2)listOfFlowers.add(new —hamomile(NameOfFlower.CHAMOMILE,Color.RED,30,3));\n\t\t\tif(color==3)listOfFlowers.add(new —hamomile(NameOfFlower.CHAMOMILE,Color.WHITE,40,1));}\n\t}", "title": "" }, { "docid": "36c1c836d8a9c862f880aadc3fb1bf75", "score": "0.44956318", "text": "public int secondaryGoods() {\n if (isForested()) return Goods.FURS;\n if (getAddition() >= ADD_HILLS) return Goods.ORE;\n switch(getType()) {\n case PLAINS:\n case PRAIRIE:\n case DESERT:\n return Goods.COTTON;\n case SWAMP:\n case GRASSLANDS:\n return Goods.TOBACCO;\n case SAVANNAH:\n return Goods.SUGAR;\n case MARSH:\n return Goods.FURS;\n case TUNDRA:\n case ARCTIC:\n default:\n return Goods.ORE;\n }\n }", "title": "" }, { "docid": "22218c9d630c99531ab73fab87780373", "score": "0.44944346", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"(a:\"+a+\",b:\"+b+\",w:\"+w+\")\";\n\t}", "title": "" }, { "docid": "22218c9d630c99531ab73fab87780373", "score": "0.44944346", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"(a:\"+a+\",b:\"+b+\",w:\"+w+\")\";\n\t}", "title": "" }, { "docid": "442bb250b8ca757d46480d9bdc834a20", "score": "0.44929823", "text": "void wise_play3(){\n\t\t\n\t\tint cc1=-1;\n\t\tfor (int i=0;i<3;i++){\n\t\tif (player.card[i].posi==5)cc1=i;\n\t\t}\n\t\tif(cc1>-1){\n\t\t\tint s1,s2;\n\t\t\tif(cc1==0){ \n\t\t\t\ts1=1;s2=2;\n\t\t\tif(opponate_opposite(s1)&&opponate_opposite(s2)){\n\t\t\t\tset_target(0);\n\t\t\t\tplayer.card[0].piority=8;\t\n\t\t\t}\n\t\t\t}\n\t\t\tif(cc1==1){\n\t\t\t\ts1=0;s2=2;\nif(opponate_opposite(s1)&&opponate_opposite(s2)){\n\tset_target(1);\n\tplayer.card[1].piority=8;\t\n\t\t\t}}\n\t\t\tif(cc1==2){\n\t\t\t\ts1=0;s2=1;\nif(opponate_opposite(s1)&&opponate_opposite(s2)){\n\tset_target(2);\n\tplayer.card[2].piority=8;\n\t\t\t}}\t\n\t\t\t\n\t\t}\n\t\t}", "title": "" }, { "docid": "0c58eddce4ea739d4f607c33be0364aa", "score": "0.44910452", "text": "public static String part1(String sandwich) {\r\n\tString[] splitArray = sandwich.split(\"bread\");\t//splits sandwich at bread\r\n\tString outputString = \"\";\t\t\t\t\t\t//initializes output to be a blank string\r\n\tint counter = 0;\t\t\t\t\t\t\t\t//counter to be used for array index\r\n\twhile (sandwich.indexOf(\"bread\") != -1 && counter + 1 < splitArray.length) { //tests if a bread exists in sandwich & if the counter for index is less than length \r\n\t\tsandwich = sandwich.substring(sandwich.indexOf(\"bread\")+5);\t//makes sandwich equal a substring for everything past the first bread\r\n\t\tif(sandwich.indexOf(\"bread\") != -1) {\t//tests if a bread exists (in this new substring)\r\n\t\t\tcounter++;\t\t\t\t\t\t\t//moves the counter up one, so the index is one more\r\n\t\t\toutputString+= splitArray[counter]; //use counter as the array index, and add that element to output\r\n\t\t}\r\n\t}\r\n\tif (counter!=0) { //if the while loop triggered, output the outputString\r\n\t\treturn outputString;\r\n\t}\r\n\treturn \"Oops, looks like your input isn't a sandwich!!!\"; //if while loop did not trigger, it is not a sandwich.\r\n}", "title": "" }, { "docid": "f3b574d64c08aa5fa88c6523c8512fbe", "score": "0.44901544", "text": "public CookBook() {\n super(\"cook book\", \"its a cookbook\");\n ArrayList<Pie> findablePies = GameState.getFindableWeapons();\n for(int i = 0; i < findablePies.size(); i+=2) {\n Node parent = GameState.getTree().find(findablePies.get(i)).getParent();\n if(parent == null) continue;\n String ingredient1 = findablePies.get(i).getName();\n String ingredient2 = findablePies.get(i+1).getName();\n String recipe = parent.getItem().getName() + \" = \" + ingredient1 + \" + \" + ingredient2;\n recipes.add(recipe);\n }\n }", "title": "" }, { "docid": "e3387f2efb8d0dc91cd2009a19e29d41", "score": "0.44852808", "text": "private String getTrackStyle(Double temperature) {\n\t\tif (temperature < 10d) {\n\t\t\treturn \"classical\";\n\t\t} else if (temperature < 14d) {\n\t\t\treturn \"rock\";\n\t\t} else if (temperature < 30d) {\n\t\t\treturn \"pop\";\n\t\t} else {\n\t\t\treturn \"party\";\n\t\t}\n\t}", "title": "" }, { "docid": "710a1b66dcd38bca278290545ca13a87", "score": "0.44850135", "text": "Chao() {\n String[] colorList = {\"Normal\", \"White\", \"Blue\", \"Red\", \"Yellow\", \"Orange\", \"Pink\", \"Purple\", \"Sky Blue\", \"Green\", \"Brown\", \"Grey\", \"Lime Green\", \"Black\"};\n String[] toneList = {\"Two-Tone\", \"Mono-Tone\"};\n String[] shineList = {\"Non-Shiny\", \"Shiny\"};\n String[] jewelList = {\"Non-Jewel\", \"Silver\", \"Gold\", \"Ruby\", \"Sapphire\", \"Amethyst\", \"Emerald\", \"Garnet\", \"Aquamarine\", \"Peridot\", \"Topaz\", \"Onyx\"};\n\n\n Random rand = new Random();\n\n\n colorAllele1 = colorList[rand.nextInt(colorList.length)];\n colorAllele2 = colorList[rand.nextInt(colorList.length)];\n //\n if (!colorAllele1.equals(\"Normal\") && !colorAllele2.equals(\"Normal\")) {\n String[] colorPhenotypePossibilities = {colorAllele1, colorAllele2};\n colorPhenotype = colorPhenotypePossibilities[rand.nextInt(colorPhenotypePossibilities.length)];\n } else if (!colorAllele1.equals(\"Normal\")) {\n colorPhenotype = colorAllele1;\n } else if (!colorAllele2.equals(\"Normal\")) {\n colorPhenotype = colorAllele2;\n } else {\n colorPhenotype = \"Normal\";\n }\n\n\n toneAllele1 = toneList[rand.nextInt(toneList.length)];\n toneAllele2 = toneList[rand.nextInt(toneList.length)];\n //\n String[] tonePhenotypePossibilities = {toneAllele1, toneAllele2};\n tonePhenotype = tonePhenotypePossibilities[rand.nextInt(tonePhenotypePossibilities.length)];\n\n\n shineAllele1 = shineList[rand.nextInt(shineList.length)];\n shineAllele2 = shineList[rand.nextInt(shineList.length)];\n //\n String[] shinePhenotypePossibilities = {shineAllele1, shineAllele2};\n shinePhenotype = shinePhenotypePossibilities[rand.nextInt(shinePhenotypePossibilities.length)];\n\n\n jewelAllele1 = jewelList[rand.nextInt(jewelList.length)];\n jewelAllele2 = jewelList[rand.nextInt(jewelList.length)];\n //\n if (!jewelAllele1.equals(\"Non-Jewel\") && !jewelAllele2.equals(\"Non-Jewel\")) {\n String[] jewelPhenotypePossibilities = {jewelAllele1, jewelAllele2};\n jewelPhenotype = jewelPhenotypePossibilities[rand.nextInt(jewelPhenotypePossibilities.length)];\n } else if (!jewelAllele1.equals(\"Non-Jewel\")) {\n jewelPhenotype = jewelAllele1;\n } else if (!jewelAllele2.equals(\"Non-Jewel\")) {\n jewelPhenotype = jewelAllele2;\n } else {\n jewelPhenotype = \"Non-Jewel\";\n }\n\n\n if (shinePhenotype.equals(\"Shiny\") && !jewelPhenotype.equals(\"Non-Jewel\")) {\n appearance = \"Shiny Jewel \" + colorPhenotype;\n } else if (!jewelPhenotype.equals(\"Non-Jewel\")) {\n appearance = jewelPhenotype;\n } else if (shinePhenotype.equals(\"Shiny\")) {\n appearance = \"Shiny \" + tonePhenotype + \" \" + colorPhenotype;\n } else {\n appearance = tonePhenotype + \" \" + colorPhenotype;\n }\n }", "title": "" }, { "docid": "67237a7224fc2a1029c31787d15254b9", "score": "0.44841036", "text": "public String homeOrAwayWin(){\n if(homeScore>awayScore){\n return Constants.HOME;\n }else if(awayScore>homeScore){\n return Constants.AWAY;\n }else{\n return Constants.DRAW;\n }\n }", "title": "" }, { "docid": "69de97a2e6b712725f869bcf367441e3", "score": "0.44839698", "text": "protected void randomDrinkGen() {\n int[] drink = new int[12];\n Random rand = new Random();\n switch(level) {\n //Levels 10-20 do not have any added features\n case 20:\n case 19:\n case 18:\n case 17:\n case 16:\n case 15:\n case 14:\n case 13:\n case 12:\n case 11:\n case 10:\n case 9: //levels 9 and above add the bottom row of syrups\n int syrup = rand.nextInt(4);\n switch(syrup) {\n case 1:\n drink[PEP_SHOT] = 1;\n break;\n case 2:\n drink[TOFFEE_SHOT] = 1;\n drink[CHOC_SHOT] = 1;\n break;\n case 3:\n drink[TOFFEE_SHOT] = 1;\n drink[CHOC_SHOT] = 1;\n drink[PEP_SHOT] = 1;\n break;\n }\n case 8: //level 8 has no added features\n case 7: //levels 7 and above add the top row of syrups\n syrup = rand.nextInt(3);\n switch(syrup){\n case 0:\n drink[HAZEL_SHOT] = 1;\n break;\n case 1:\n drink[CARA_SHOT] = 1;\n drink[VAN_SHOT] = 1;\n break;\n case 2:\n drink[CARA_SHOT] = 1;\n drink[HAZEL_SHOT] = 1;\n drink[VAN_SHOT] = 1;\n break;\n }\n case 6: //level 5 & 6 have no added features\n case 5:\n case 4://levels 4 and above add the possibility for 0-4 decaf shots of espresso\n if(level == 4) {\n drink[DEC_ESP] = 1;\n } else {\n drink[DEC_ESP] = rand.nextInt(5);\n }\n case 3: //levels 3 and above add the possibility for 0-4 regular shots of espresso\n if(level == 3) {\n drink[REG_ESP] = 1;\n } else {\n drink[REG_ESP] = rand.nextInt(5);\n }\n case 2: //levels 2 and above add the possibility for whip cream\n if(level == 2) {\n drink[WHP_CRM] = 1;\n } else {\n drink[WHP_CRM] = rand.nextInt(2);\n }\n case 1: //level 1 has no added feature\n case 0: //levels 0 and above require a cup size, possibility for steaming, and require\n //a milk type\n drink[CUP_SIZE] = rand.nextInt(3);\n drink[STEAM] = rand.nextInt(2);\n drink[MILK_TYPE] = rand.nextInt(3);\n break;\n\n }\n //sets the customer order to the generated drink\n customerOrder = drink.clone();\n\n }", "title": "" }, { "docid": "b04c45b8d4c967f6142a94f1a5a698aa", "score": "0.44837224", "text": "@Test\n\tpublic void testSetUpBlacks() {\n\t\tassertEquals(Marble.BB, b.getMarble(\"5I\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"6I\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"7I\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"8I\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"9I\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"4H\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"5H\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"6H\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"7H\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"8H\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"9H\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"5G\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"6G\"));\n\t\tassertEquals(Marble.BB, b.getMarble(\"7G\"));\n\t}", "title": "" }, { "docid": "0dda344efe68ee1fc9e2d94a11a40137", "score": "0.44784164", "text": "static Instances[] sample(int bottle){\n Instances all=ClassifierTools.loadData(DataSets.problemPath+\"/\"+problemName+\"/\"+problemName); \r\n Instances[] split=new Instances[2];\r\n split[0]=new Instances(all,0);\r\n split[1]=new Instances(all,0);\r\n \r\n for(Instance ins:all){\r\n if(ins.stringValue(0).equals(bottleID[bottle])) //Stringvalues? Debug\r\n split[1].add(ins);\r\n else\r\n split[0].add(ins);\r\n }\r\n//Remove the bottle ID \r\n split[0].deleteAttributeAt(0);\r\n split[1].deleteAttributeAt(0);\r\n return split;\r\n }", "title": "" }, { "docid": "ba8cf667a8abf312be7e033323734034", "score": "0.4476137", "text": "private void buildCuteAnimals()\n\t{\n\t\tcuteAnimalMemes.add(\"otter\");\n\t\tcuteAnimalMemes.add(\"FLOOFER\");\n\t\tcuteAnimalMemes.add(\"kittie\");\n\t\tcuteAnimalMemes.add(\"pupper\");\n\t}", "title": "" }, { "docid": "4a123054e584721d795c3981457e8628", "score": "0.4475099", "text": "public void generateItemAndAddIntoBrick() {\n\n\t\tnumberOfItems = getGeneratedNumberOfItemInARound();\n\t\tint count = 0;\n\t\tint index;\n\t\tboolean check;\n\t\tRandom random = new Random();\n\t\tLog.i(\"Item\", \"no of Item:\" + String.valueOf(numberOfItems));\n\t\twhile (count < numberOfItems) {\n\n\t\t\tItem item = generateItem();\n\t\t\tindex = random.nextInt(bricks.size() - 1);\n\n\t\t\tcheck = addItemIntoBrick(index, item);\n\t\t\tif (check) {\n\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" } ]
094179b998594d81f74a4635eb2a31fd
Created by hwr on 171023.
[ { "docid": "f123d4271778b3740df476ecb43f6421", "score": "0.0", "text": "public interface MutableFeeLogService {\n /**\n * 校验请求编号是否唯一\n * @param requestNo 请求编号\n * @throws ApiException 若请求编号不唯一,抛出异常:请求编号重复\n */\n void checkByRequestNo(String requestNo) throws ApiException;\n\n void saveMutableFeeLog(MutableFee mutableFee, String ip, String resultMsg);\n}", "title": "" } ]
[ { "docid": "ea8460c7314de45803a19bf7c984d4bf", "score": "0.5991481", "text": "@Override\n public void perish() {\n \n }", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.5927504", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.58698195", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "1260bf70decb91faff8466bae6765ba2", "score": "0.5843022", "text": "private stendhal() {\n\t}", "title": "" }, { "docid": "2f8bc325cbd58e19eae4acec86ffe12c", "score": "0.5837873", "text": "public final void mo51373a() {\n }", "title": "" }, { "docid": "680ac9d1bc1773741a758290a71e990c", "score": "0.5809029", "text": "@Override\n public void func_104112_b() {\n \n }", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.57856977", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "abcadad5e0834117553d2b9f67dbe5da", "score": "0.57856977", "text": "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3d9823aba51891281b4bbd4b1818b970", "score": "0.57615715", "text": "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.5758026", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "d61bad95071bf9780632fa87c434bab9", "score": "0.5716735", "text": "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5711947", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5711947", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5711947", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5711947", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5711947", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.56778777", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "5a2cf6475b24af1408d07534790462c3", "score": "0.5661998", "text": "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.56576484", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5656692", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "97d296a7afb7dc4215dea52c44825799", "score": "0.5645023", "text": "@Override\n\tpublic void anular() {\n\n\t}", "title": "" }, { "docid": "86ed6713ba8e5a54203c31fb8f461898", "score": "0.56384915", "text": "protected boolean func_70814_o() { return true; }", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.56311387", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.56250983", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da8e9683b65c2cb7a22ee151d8c65e1", "score": "0.5624167", "text": "public void gored() {\n\t\t\n\t}", "title": "" }, { "docid": "8c4be9114abb8cb7b57dc3c5d34882a8", "score": "0.56220853", "text": "public void mo38117a() {\n }", "title": "" }, { "docid": "a89a6a1e5b118a43de52e5ffd006970b", "score": "0.5616606", "text": "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "68abbc4a91a826dbc68f986dc9168393", "score": "0.5606415", "text": "private static void cajas() {\n\t\t\n\t}", "title": "" }, { "docid": "24836dd83ff94f056e1fcc3c7d1bd342", "score": "0.56060046", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "title": "" }, { "docid": "7a64af47763e4842ef0277e0c557687f", "score": "0.55864525", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.558574", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "28fcdb48fa0b9890f9666ae29ef02f55", "score": "0.5563628", "text": "private void init() {\n\n\t}", "title": "" }, { "docid": "6334f7375f24699d261bdb85e665c80d", "score": "0.55633765", "text": "@Override\r\n\tpublic void init() {}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5561144", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5561144", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5561144", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2294d0f36ffa5b7272e706b4b7564db", "score": "0.55602527", "text": "private void poetries() {\n\n\t}", "title": "" }, { "docid": "02a88abb18d1012583ded4c0528d64f1", "score": "0.55538934", "text": "private void m50366E() {\n }", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5552545", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5547444", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5547444", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5547444", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "188d6377aa200bdf28a0b41fdf4297f2", "score": "0.5545169", "text": "private void kk12() {\n\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5543764", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5543764", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5543764", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c0901f36c71f4626aadf1d2f7aa6f423", "score": "0.55388695", "text": "@Override\n void init() {\n }", "title": "" }, { "docid": "86232e6a9aaa22e4403270ce10de01d3", "score": "0.55327696", "text": "public void mo4359a() {\n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5530562", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "a7ada994943f62a4589674e89199475b", "score": "0.55294144", "text": "@Override\n public void init() {}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5528387", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5528387", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5510089", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5510089", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "d06828119af4f719fc9db2eac57f2601", "score": "0.55062526", "text": "@Override\n protected void initialize() {\n\n \n }", "title": "" }, { "docid": "92ff2215e2946927efe966014fa1b664", "score": "0.5494451", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "title": "" }, { "docid": "cc32bfffe770f8a5c5cf88e6af231ff8", "score": "0.5482161", "text": "@Override\n\tpublic void one() {\n\t\t\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.5476958", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.5471988", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "c682095c2b4f1946676c35a1deda3c6f", "score": "0.54710764", "text": "@Override\n\tpublic void nghe() {\n\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.54595333", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5459462", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "a515456a9e11b20998e2bfdd6c3dce67", "score": "0.54485065", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5418403", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5418403", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5418403", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5418403", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5418403", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5418403", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5418403", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "c9423b1c25dab1dabb18b267adb2b299", "score": "0.54179883", "text": "private void init() {\n\n\n\n }", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.5417958", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5413243", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5413243", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5413243", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5413243", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5413243", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5413243", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.5411563", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "42a58e800f8b31962353a7388593db61", "score": "0.54060286", "text": "@Override\n\t\tpublic void init() {\n\t\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5403945", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "2f2216d5b5c98690feaa3184c2634e23", "score": "0.53995746", "text": "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "title": "" }, { "docid": "85d60c34ac7fae3acfcbfd1abc377aee", "score": "0.5395872", "text": "@Override\n public int retroceder() {\n return 0;\n }", "title": "" }, { "docid": "137850fe8be37a8fdff9b5f1d19f9338", "score": "0.53854686", "text": "@Override\n protected void initialize() \n {\n \n }", "title": "" }, { "docid": "c9940a2fed925db29b582759590cb447", "score": "0.53731906", "text": "@Override\n public int describeContents() { return 0; }", "title": "" }, { "docid": "5cd7649cc995b736380728f2396683c8", "score": "0.53679144", "text": "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a3def2258601d63c48bf6eff66c59697", "score": "0.5367862", "text": "public void mo12628c() {\n }", "title": "" }, { "docid": "2fda59f727914730e1ccc0c0b05e57bd", "score": "0.53613836", "text": "Constructor() {\r\n\t\t \r\n\t }", "title": "" }, { "docid": "08c6d62200e5eee4b99e7fe5a43b2598", "score": "0.53585476", "text": "@Override\n public void init() {\n }", "title": "" }, { "docid": "1a99b3a047a548e9bddf06dab6f38cd7", "score": "0.53502613", "text": "private Rekenhulp()\n\t{\n\t}", "title": "" }, { "docid": "661a7406ad2d253d7fc116acf3b18bd9", "score": "0.5347736", "text": "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "title": "" }, { "docid": "fa27b313748d3dbdbb294e8ab31beafe", "score": "0.5345406", "text": "private void strin() {\n\n\t}", "title": "" }, { "docid": "3b4a1b8680f2061e6403550e9be09158", "score": "0.53451914", "text": "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b77eac7bccbd213b5d32d3e935c81ffe", "score": "0.5344722", "text": "@Override\n\tpublic void einkaufen() {\n\t}", "title": "" }, { "docid": "8e9347a77be4d83f1f380bc5ca012521", "score": "0.5343703", "text": "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "aec3a7a48966bc7785a86f4f8b2b498e", "score": "0.5338402", "text": "public abstract void mo70713b();", "title": "" }, { "docid": "0d81c067c8001661f6cbaddca50d165a", "score": "0.5329914", "text": "public void mo6081a() {\n }", "title": "" }, { "docid": "712a71c17db1c756dc28432e0a149340", "score": "0.53296274", "text": "protected void mo6255a() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.53235734", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.53235734", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.5318374", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "eabcb0160702ab0f9e2cde9a0db46a5d", "score": "0.0", "text": "@Override\n\tpublic void keyTyped(KeyEvent e) {\n\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593355", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649512", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64787245", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6443756", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.62889814", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277223", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.6273419", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230557", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218078", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61277896", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60921794", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6052283", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60330045", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60134614", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59843665", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.598327", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794915", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.59666646", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.596291", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59580564", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5951102", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.59232795", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.59119946", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58930063", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5845612", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841976", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58368444", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.5808944", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.57990485", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.57934815", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790544", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877386", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57625693", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754491", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.57471", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736261", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57292205", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57232136", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5712038", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705727", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699155", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56942755", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922704", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56854326", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.5657416", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
82d1b8c1a6ad91806e2451918a148e00
Build call for getWordsPerPage
[ { "docid": "5405b9c5bbbacb1d04ed7212962d95bb", "score": "0.44797856", "text": "public com.squareup.okhttp.Call getWordsPerPageCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBody = null;\n\n // create path and map variables\n String localVarPath = \"/pdf/{name}/pages/wordCount\"\n .replaceAll(\"\\\\{\" + \"name\" + \"\\\\}\", apiClient.escapeString(name.toString()));\n\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();\n if (storage != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"storage\", storage));\n if (folder != null)\n localVarQueryParams.addAll(apiClient.parameterToPair(\"folder\", folder));\n\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n final String[] localVarAccepts = {\n \"application/json\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n if (localVarAccept != null) localVarHeaderParams.put(\"Accept\", localVarAccept);\n\n final String[] localVarContentTypes = {\n \"application/json\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n localVarHeaderParams.put(\"Content-Type\", localVarContentType);\n\n if(progressListener != null) {\n apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {\n @Override\n public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {\n com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());\n return originalResponse.newBuilder()\n .body(new ProgressResponseBody(originalResponse.body(), progressListener))\n .build();\n }\n });\n }\n\n String[] localVarAuthNames = new String[] { };\n return apiClient.buildCall(localVarPath, \"GET\", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);\n }", "title": "" } ]
[ { "docid": "3ed250442028b022dd6c40ea77cdbe8a", "score": "0.6588153", "text": "public int totalWordsPages(int numPerPage) throws Exception;", "title": "" }, { "docid": "9d3e48760ed87a3bf62d044073a93087", "score": "0.5760016", "text": "int getPerPage();", "title": "" }, { "docid": "c67be59f107ebd7de6bd581d0dfce283", "score": "0.5599673", "text": "@Override\r\n\tpublic List<MemberVO> getMemberList(String searchOpt, String words, int pageStart, int pagePer) {\n\t\tMap<String, Object> map = new HashMap<>();\r\n\t\tmap.put(\"searchOpt\", searchOpt);\r\n\t\tmap.put(\"words\", words);\r\n\t\tmap.put(\"pageStart\", pageStart);\r\n\t\tmap.put(\"pagePer\", pagePer);\r\n\t\treturn sql.selectList(namespace+\".getMemberList\",map);\r\n\t}", "title": "" }, { "docid": "e82b3930a303cf0388ac98345cccd68d", "score": "0.55911756", "text": "private void appendPaginationInProvider(Method method) {\n\n List<String> bodyLines = method.getBodyLines();\n\n // delete the line of \"return sql.toString();\"\n bodyLines.remove(bodyLines.size() - 1);\n\n bodyLines.add(\"// add pagination for mysql with limit clause \");\n bodyLines.add(\"StringBuilder sqlBuilder = new StringBuilder(sql.toString());\");\n bodyLines.add(\"if(example != null && (example.getStart() > -1 || example.getCount() > -1) ){\");\n bodyLines.add(\"sqlBuilder.append(\\\" limit \\\");\");\n bodyLines.add(\"if(example.getStart() > -1 && example.getCount() > -1){\");\n bodyLines.add(\"sqlBuilder.append(example.getStart()).append(\\\",\\\").append(example.getCount());\");\n bodyLines.add(\"}else if( example.getStart() > -1 ){\");\n bodyLines.add(\"sqlBuilder.append(example.getStart());\");\n bodyLines.add(\"}else if( example.getCount() > -1 ){\");\n bodyLines.add(\"sqlBuilder.append(example.getCount());\");\n bodyLines.add(\"}\");\n bodyLines.add(\"}\");\n bodyLines.add(\"return sqlBuilder.toString();\");\n }", "title": "" }, { "docid": "4856056cfa5d6fcaffd4fd8b20df526e", "score": "0.5250313", "text": "private String getSearchResultUpAndDownPageCode(Integer page,Integer totalNum, String q, Integer pageSize, String projectContext){\n\t\tlong totalPage=totalNum%pageSize==0?totalNum/pageSize:totalNum/pageSize+1;\n\t\tStringBuffer pageCode = new StringBuffer();\n\t\tif(totalPage==0){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\tpageCode.append(\"<nav>\");\n\t\t\tpageCode.append(\"<ul class='pager'>\");\n\t\t\tif (page>1) {\n\t\t\t\tpageCode.append(\"<li><a href='\" + projectContext + \"/blog/q.html?page=\" +(page - 1)+ \"&q=\" + q +\"'>Previous</a></li>\");\n\t\t\t}else{\n\t\t\t\tpageCode.append(\"<li class='disable'><a href='#'>Previous</a></li>\");\n\t\t\t}\n\t\t\tif (page<totalPage) {\n\t\t\t\tpageCode.append(\"<li><a href='\" + projectContext + \"/blog/q.html?page=\" +(page + 1)+ \"&q=\" + q +\"'>Next</a></li>\");\n\t\t\t}else {\n\t\t\t\tpageCode.append(\"<li class='disable'><a href='#'>Next</a></li>\");\n\t\t\t}\n\t\t\tpageCode.append(\"</ul>\");\n\t\t\tpageCode.append(\"</nav>\");\n\t\t}\n\t\treturn pageCode.toString();\n\t}", "title": "" }, { "docid": "c7a67d2e2846448321ffc17851a39567", "score": "0.52138495", "text": "public List<PdsDto> getPdsPagingList(String id, PagingBean paging, String searchWord);", "title": "" }, { "docid": "e9758ca27cfdd9f0675f940511c76230", "score": "0.5157818", "text": "public cosmos.base.query.v1beta1.Pagination.PageResponse.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "7d73ad5812ed33a5b4199535501596f8", "score": "0.51378286", "text": "public int getPostsPerPage();", "title": "" }, { "docid": "11e7780a72005e9723f68530dad0409f", "score": "0.51273555", "text": "public cosmos.base.query.v1beta1.Pagination.PageRequest.Builder getPaginationBuilder() {\n \n onChanged();\n return getPaginationFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "88629284be7c65adff9deb538715fdc4", "score": "0.5061073", "text": "List<Post> getPage\n ( \n String from, \n int page, \n int count,\n int limit \n );", "title": "" }, { "docid": "ff59c8735a11592d03e6b950ecbe28ed", "score": "0.50587714", "text": "public JSONObject run() {\n if (this.endPoint == null || this.category == null) {\n System.err.println(\"endpoint or category is not set\");\n return null;\n }\n JSONObject query = get(\"query\", params);\n JSONObject currentPages = (JSONObject) ((JSONObject) query.get(\"query\")).get(\"pages\");\n\n while (query.get(\"query-continue\") != null) {\n HashMap<String, String> nparams = new HashMap<>(this.params);\n JSONObject queryContinue = (JSONObject) query.get(\"query-continue\");\n JSONObject categoryMembers = (JSONObject) queryContinue.get(\"categorymembers\");\n String gcmContinue = (String) categoryMembers.get(\"gcmcontinue\");\n nparams.put(\"gcmcontinue\", gcmContinue);\n query = get(\"query\", nparams);\n currentPages.putAll((JSONObject) ((JSONObject) query.get(\"query\")).get(\"pages\"));\n }\n pages = currentPages;\n return pages;\n }", "title": "" }, { "docid": "ebe5f36f375f059914f006864c3d82e5", "score": "0.50161254", "text": "public String buildPage()\n {\n return buildPages(getPrimaryTemplate());\n }", "title": "" }, { "docid": "2c23eebf3b4ed99f6e8f7f88e5ba0acf", "score": "0.5016095", "text": "private String composeLimitClause(int pageNo, int pageSize, Long total) {\n\t\tInteger start = 0;\n\t\tInteger noOfRecordsToFetch = pageSize;\n\t\tString limitClause = \"LIMIT \" + start + \",\" + noOfRecordsToFetch;\n\n\t\tInteger totalPages = total.intValue() / pageSize;\n\t\tif (total.intValue() % pageSize > 0) {\n\t\t\ttotalPages++;\n\t\t}\n\t\tif (pageNo > totalPages) {\n\t\t\tpageNo = totalPages;\n\t\t}\n\n\t\tif (pageSize > total) {\n\t\t\treturn limitClause;\n\t\t} else {\n\n\t\t\tstart = (pageNo - 1) * pageSize;\n\n\t\t\tlimitClause = \"LIMIT \" + start + \",\" + noOfRecordsToFetch;\n\t\t}\n\n\t\treturn limitClause;\n\t}", "title": "" }, { "docid": "d66bb73015371c67ffe2928e4ed1a3bc", "score": "0.5007388", "text": "public static Page page(int page, int pageSize, String sortBy,\n\t\t\tString order, String filter, String morewhere) {\n\t\tif (page < 1)\n\t\t\tpage = 1;\n\t\tString totalsql = \"select count(c) from DeviceDict c \";\n\t\tboolean orclause = false;\n\t\tif (filter == null || filter.equals(\"\")) {\n\n\t\t} else {\n\t\t\ttotalsql = totalsql + \" where (lower(c.wordch) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.worden) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.username) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.useremail) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.checked) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.comment) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.checkusername) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.checkuseremail) like :queryparam) \";\n\t\t\torclause = true;\n\t\t}\n\t\tif (!isEmtpy(morewhere)) {\n\t\t\tif(orclause){\n\t\t\t\ttotalsql = totalsql + \" and \" + morewhere;\n\t\t\t}else{\n\t\t\t\ttotalsql = totalsql + \" where \" + morewhere;\n\t\t\t\torclause = false;\n\t\t\t}\n\t\t}\n\t\tLong total = 0L;\n\t\tif (filter == null || filter.equals(\"\")) {\n\t\t\ttotal = (Long) JPA.em().createQuery(totalsql).getSingleResult();\n\t\t} else {\n\t\t\ttotal = (Long) JPA\n\t\t\t\t\t.em()\n\t\t\t\t\t.createQuery(totalsql)\n\t\t\t\t\t.setParameter(\"queryparam\",\n\t\t\t\t\t\t\t\"%\" + filter.toLowerCase() + \"%\").getSingleResult();\n\t\t}\n\n\t\tString listsql = \"from DeviceDict c \";\n\t\tif (isEmtpy(filter)) {\n\n\t\t} else {\n\t\t\tlistsql = listsql + \" where (lower(c.wordch) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.worden) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.username) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.useremail) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.checked) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.comment) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.checkusername) like :queryparam \"\n\t\t\t\t\t+ \"or lower(c.checkuseremail) like :queryparam )\";\n\t\t\torclause = true;\n\t\t}\n\t\tif (!isEmtpy(morewhere)) {\n\t\t\tif(orclause){\n\t\t\t\tlistsql = listsql + \" and \" + morewhere;\n\t\t\t}else{\n\t\t\t\tlistsql = listsql + \" where \" + morewhere;\n\t\t\t\torclause = false;\n\t\t\t}\n\t\t}\n\t\tlistsql = listsql + \" order by c.\" + sortBy + \" \" + order;\n\n\t\tList<DeviceDict> data;\n\t\tif (isEmtpy(filter)) {\n\t\t\tdata = JPA.em().createQuery(listsql)\n\t\t\t\t\t.setFirstResult((page - 1) * pageSize)\n\t\t\t\t\t.setMaxResults(pageSize).getResultList();\n\t\t} else {\n\t\t\tdata = JPA\n\t\t\t\t\t.em()\n\t\t\t\t\t.createQuery(listsql)\n\t\t\t\t\t.setParameter(\"queryparam\",\n\t\t\t\t\t\t\t\"%\" + filter.toLowerCase() + \"%\")\n\t\t\t\t\t.setFirstResult((page - 1) * pageSize)\n\t\t\t\t\t.setMaxResults(pageSize).getResultList();\n\t\t}\n\n\t\treturn new Page(data, total, page, pageSize);\n\t}", "title": "" }, { "docid": "f3d1be038c9e2d594fcb133901f9f80d", "score": "0.49640772", "text": "public PrunedCounts<String> getPageCounts(Language lang, int wpId, int maxPhrases) throws DaoException;", "title": "" }, { "docid": "5856782a4a6741a9fbc82300c2f82ee4", "score": "0.49570882", "text": "protected void definePageArg() {\r\n\t\tif (this.page > 0 && this.mode.equalsIgnoreCase(ModeEnum.RENDER)) {\r\n\t\t\tthis.javaDelegate.createArg().setLine(ARGUMENT__PAGE + \" \" + this.page);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d4991bd016f69a170b9b88ce6d60dbed", "score": "0.49546084", "text": "public int getEntriesPerPage();", "title": "" }, { "docid": "7383a862b35b0011c858e7020b950cf1", "score": "0.49376303", "text": "public static Pageable buildPage(Request<?> request) {\n\t\tint page = request.getPageSize() != 0 ? request.getFirst() / request.getPageSize() : 1;\n\t\tint size = request.getPageSize();\n\t\treturn size > 0 ? new PageRequest(page, size) : null;\n\t}", "title": "" }, { "docid": "90c15377fb2e41bfe235f0e463bcab86", "score": "0.4910532", "text": "public Integer initPaginition(int offSet, String lookup) {\n\t\t\t\t\tmgrLog(this.getClass(), \"initPaginition\", \"START\");\n\t\t\t\t\t Long pLength = getCountProducts(lookup);\n\t\t\t\t \tInteger fixedPageSize = 5;\n\t\t\t\t \tInteger maxResults = 0;\n\t\t\t\t \t int offSetVal = offSet * fixedPageSize;\n\t\t\t\t \t if((offSetVal + fixedPageSize) < pLength ){\n\t\t\t\t \t\t maxResults = offSetVal + fixedPageSize;\n\t\t\t\t \t }else{\n\t\t\t\t \t\t maxResults = pLength.intValue();\n\t\t\t\t \t }\n\t\t\t\t \t mgrLog(this.getClass(), \"initPaginition\", \"END with maxResults =\"+maxResults);\n\t\t\t\t\treturn maxResults;\n\t\t\t\t}", "title": "" }, { "docid": "5c6fcb9fc908d392abaeebedee812920", "score": "0.49058542", "text": "@Override\n\tpublic Page<SanPham> getSanPhamByTenSanPham(SearchSanPhamObject object, int page, int resultPerPage) {\n\t\tBooleanBuilder builder = new BooleanBuilder();\n//\t\tint resultPerPage = 12;\n\t\tString[] keywords = object.getKeyword();\n\t\tString sort = object.getSort();\n\t\tString price = object.getDonGia();\n\t\tString brand = object.getBrand();\n\t\tString manufactor = object.getManufactor();\n\t\t// Keyword\n\t\tbuilder.and(QSanPham.sanPham.tenSanPham.like(\"%\" + keywords[0] + \"%\"));\n\t\tif (keywords.length > 1) {\n\t\t\tfor (int i = 1; i < keywords.length; i++) {\n\t\t\t\tbuilder.and(QSanPham.sanPham.tenSanPham.like(\"%\" + keywords[i] + \"%\"));\n\t\t\t}\n\t\t}\n\t\t// Muc gia\n\t\tswitch (price) {\n\t\tcase \"duoi-2-trieu\":\n\t\t\tbuilder.and(QSanPham.sanPham.donGia.lt(2000000));\n\t\t\tbreak;\n\n\t\tcase \"2-trieu-den-4-trieu\":\n\t\t\tbuilder.and(QSanPham.sanPham.donGia.between(2000000, 4000000));\n\t\t\tbreak;\n\n\t\tcase \"4-trieu-den-6-trieu\":\n\t\t\tbuilder.and(QSanPham.sanPham.donGia.between(4000000, 6000000));\n\t\t\tbreak;\n\n\t\tcase \"6-trieu-den-10-trieu\":\n\t\t\tbuilder.and(QSanPham.sanPham.donGia.between(6000000, 10000000));\n\t\t\tbreak;\n\n\t\tcase \"tren-10-trieu\":\n\t\t\tbuilder.and(QSanPham.sanPham.donGia.gt(10000000));\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\t// Danh muc va hang san xuat\n\t\tif (brand.length()>1) {\n\t\t\tbuilder.and(QSanPham.sanPham.danhMuc.tenDanhMuc.eq(brand));\n\t\t}\n\t\tif (manufactor.length()>1) {\n\t\t\tbuilder.and(QSanPham.sanPham.hangSanXuat.tenHangSanXuat.eq(manufactor));\n\t\t}\n\n\t\t// Sap xep\n\t\tif (sort.equals(\"newest\")) {\n\t\t\treturn sanPhamRepo.findAll(builder, PageRequest.of(page - 1, resultPerPage, Sort.Direction.DESC, \"id\"));\n\t\t} else if (sort.equals(\"priceAsc\")) {\n\t\t\treturn sanPhamRepo.findAll(builder, PageRequest.of(page - 1, resultPerPage, Sort.Direction.ASC, \"donGia\"));\n\t\t} else if (sort.equals(\"priceDes\")) {\n\t\t\treturn sanPhamRepo.findAll(builder, PageRequest.of(page - 1, resultPerPage, Sort.Direction.DESC, \"donGia\"));\n\t\t}\n\t\treturn sanPhamRepo.findAll(builder, PageRequest.of(page - 1, resultPerPage));\n\t}", "title": "" }, { "docid": "14679b13b10552060e87429037e4092e", "score": "0.48817816", "text": "private void paginateChapter() {\n \t\ttry {\n \t\t\tboolean ok = utility.injectJavaScript(browser);\n \t\t\tif (ok) {\n \t\t\t\tpageCount = (int) Math.round((Double) browser.evaluate(\"return pageCount\"));\n \t\t\t\tpageWidth = EpubUiUtility.getPageWidth(browser);\n \t\t\t\tlastWidth = browser.getSize().x;\n \t\t\t\tlastHeight = browser.getSize().y;\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "title": "" }, { "docid": "fa3d6c885b292cbfde5ae5b6bf2c2072", "score": "0.48816112", "text": "public abstract void onLoadMore(int page, int totalItemsCount);", "title": "" }, { "docid": "b8876a8423a992a3ad4744019b6240b9", "score": "0.48777252", "text": "private Page getPageResult(Query query, int totalCount, int pageNo, int pageSize)\r\n/* */ {\r\n/* 409 */ if (totalCount < 1) {\r\n/* 410 */ return new Page();\r\n/* */ }\r\n/* */ \r\n/* 413 */ int startIndex = Page.getStartOfPage(pageNo, pageSize);\r\n/* 414 */ List list = query.setFirstResult(startIndex).setMaxResults(pageSize)\r\n/* 415 */ .list();\r\n/* */ \r\n/* 417 */ return new Page(startIndex, totalCount, pageSize, list);\r\n/* */ }", "title": "" }, { "docid": "74b0a0e6c2136ba4c32dca2d135ec675", "score": "0.48773044", "text": "public List<HashMap<String, String>> pagination()\n {\n if (0 == mNumResults) {\n return null;\n }\n\n // default pagination hard limit by Elasticsearch\n final int maxPage = 10000 / mResultsPerPage;\n\n final List<HashMap<String, String>> pagination = new ArrayList<>();\n int numPages = Math.min((int) Math.ceil((double) mNumResults / mResultsPerPage), maxPage);\n long displayPages = Math.min(Math.min(mCurrentPage + 5, numPages), maxPage);\n long startingPage = Math.min(Math.max(mCurrentPage - 4, 1), maxPage - 4);\n\n // go to first page\n if (5 < mCurrentPage) {\n final HashMap<String, String> page = new HashMap<>();\n page.put(\"pageNumber\", Integer.toString(1));\n page.put(\"ariaHiddenLabel\", \"←\");\n page.put(\"hiddenLabel\", \"First\");\n pagination.add(page);\n }\n\n // go to previous page\n if (1 != mCurrentPage) {\n final HashMap<String, String> page = new HashMap<>();\n page.put(\"pageNumber\", Long.toString(mCurrentPage - 1));\n page.put(\"ariaHiddenLabel\", \"«\");\n page.put(\"hiddenLabel\", \"Previous\");\n pagination.add(page);\n }\n\n // page numbers\n for (long i = startingPage; i <= displayPages; ++i) {\n final HashMap<String, String> page = new HashMap<>();\n page.put(\"pageNumber\", Long.toString(i));\n page.put(\"label\", Long.toString(i));\n if (i == mCurrentPage) {\n page.put(\"active\", \"1\");\n }\n pagination.add(page);\n }\n\n // go to next page\n if (numPages != mCurrentPage) {\n final HashMap<String, String> page = new HashMap<>();\n page.put(\"pageNumber\", Long.toString(mCurrentPage + 1));\n page.put(\"ariaHiddenLabel\", \"»\");\n page.put(\"hiddenLabel\", \"Next\");\n pagination.add(page);\n }\n\n return pagination;\n }", "title": "" }, { "docid": "c3060c08ea11e150314739770568c167", "score": "0.48660105", "text": "public List<PageSuggestion> suggestPages(Site site, String text, int limit)\n throws IllegalStateException {\n List<PageSuggestion> pages = new ArrayList<PageSuggestion>();\n SearchQuery search = new SearchQueryImpl(site);\n // search.withPage(text + \"*\");\n // search.withPageFacet();\n // TODO: implement search\n return pages;\n }", "title": "" }, { "docid": "5c95d55c978d803ffe7fba44e4ef0353", "score": "0.48393902", "text": "public void setPageSize(int param){\n \n this.localPageSize=param;\n \n\n }", "title": "" }, { "docid": "5c95d55c978d803ffe7fba44e4ef0353", "score": "0.48393902", "text": "public void setPageSize(int param){\n \n this.localPageSize=param;\n \n\n }", "title": "" }, { "docid": "51850480e92d07e589d5796b81df5020", "score": "0.48209158", "text": "int getSearchResultTotalPages();", "title": "" }, { "docid": "c751118f7f85b3a1680e2090b671b576", "score": "0.48205626", "text": "private List<WordDTO> getTopTenWords(List<WordDTO> wordsDTO) {\n return wordsDTO.stream()\n .sorted(new Comparator<WordDTO>() {\n @Override\n public int compare(WordDTO w1, WordDTO w2) {\n return w2.getNrAppar() - w1.getNrAppar();\n }\n })\n .limit(10)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "9cd6597b4169276d6370e0ce9ea79f3e", "score": "0.48003036", "text": "public void calculateResultPagesNumber() throws IOException {\n \r\n Document doc = Jsoup.connect(this.getSearchURL()).userAgent(this.getUserAgent()).timeout(0).get();\r\n Elements productsSearchResults=doc.select(\"div.paginationNumbers\");\r\n String encoded=productsSearchResults.text();\r\n if (!encoded.equals(\"\")) {\r\n if (encoded.contains(\"...\")) {\r\n String[] decode1=encoded.split(\" \");\r\n String[] decode2=decode1[0].split(Pattern.quote(\"...\"));\r\n this.setSearchPagesNumber((Integer.parseInt(decode2[1])-1)*10);\r\n } else { \r\n String decoded=Character.toString(encoded.charAt(encoded.length()-1));\r\n this.setSearchPagesNumber((Integer.parseInt(decoded)-1)*10);\r\n }\r\n }\r\n else\r\n this.setSearchPagesNumber(0);\r\n }", "title": "" }, { "docid": "e17101bee73e91a4fb6e8a31d6808229", "score": "0.47747236", "text": "List<Book> findWithMorePages(int pages);", "title": "" }, { "docid": "0c0507c0d7ee9e277f973109bf8fc3f7", "score": "0.47727433", "text": "@Override\r\n\tpublic int listByPageCount(Object condition, Object param) {\n\t\treturn listByPageCount(new Object[]{condition}, new Object[]{param});\r\n\t}", "title": "" }, { "docid": "08eb40ce94b63b77fe402218353852f1", "score": "0.47655296", "text": "Map<String, Object> searchLyric(String key, int currPage, int perPage) throws IOException;", "title": "" }, { "docid": "ea9d6116d9d988c9605dcc172679b8ac", "score": "0.47639176", "text": "public int getMessagesPerPage();", "title": "" }, { "docid": "9149d478a9d7069ed62b26c2f0a9a28c", "score": "0.4761956", "text": "public Page<String> getCombinationsPageWise(String digits, int page, int pagesize) {\r\n\t phoneCombinations(digits);\r\n List<String> comb = combinations;\r\n Page<String> pageList = new PageImpl<String>(comb, new PageRequest(page, pagesize), comb.size());\r\n return pageList;\r\n }", "title": "" }, { "docid": "40d8f9add2ab6f895359ebe34af528b7", "score": "0.47585586", "text": "protected abstract int getPageCount();", "title": "" }, { "docid": "4bea7cb87c452729d8a7f436e71368a1", "score": "0.47463378", "text": "public int getNumberPages ();", "title": "" }, { "docid": "0bcaee696e8edd5ba8e6917e2492ec13", "score": "0.4734284", "text": "public PaginationVO getSearchPerfectPagination(int allSearchPostCnt, int curPage, String searchVal) {\n\t\t\n\t\t\n\t\tpVO.setCurPage(curPage);\n\t\tpVO.setAllPostCnt(allSearchPostCnt);\n\t\t\n\t\t\n\t\tpVO.setAllPageCnt(this.getPageCnt(allSearchPostCnt));\n\t\tpVO.setAllRangeCnt(this.getRangeCnt(pVO.getAllPageCnt()));\n\t\t\n\t\t//現在ブロック\n\t\tthis.rangeSetting(curPage);\n\t\t\n\t\t// for SQLquery\n\t\tthis.startIndexSetting(curPage);\n\t\t\n\t\treturn pVO;\n\t}", "title": "" }, { "docid": "d2a7d4acbdae2beef4e6fa1cc6ca9521", "score": "0.47333422", "text": "protected String buildPages(PageTemplate template)\n {\n String output = \"\";\n if (template != null)\n {\n String[] segments = pageSegments.get(template);\n for (Map.Entry<String, Integer> entry : template.subPages.entrySet())\n {\n PageTemplate template1 = getTemplateToUseFor(entry.getKey());\n if (template1 != null)\n {\n segments[entry.getValue()] = buildPages(template1);\n }\n else\n {\n output += \"ERROR UNKNOWN TEMPLATE [\" + template.tag + \"]\";\n }\n }\n for (String s : segments)\n {\n output += s;\n }\n }\n return output;\n }", "title": "" }, { "docid": "06bdfc037126586fc2989b1e76a3b5c9", "score": "0.4730925", "text": "private static String paginate(String direction) {\n\n if (pages == null || pages.isEmpty()) {\n return \"Error, please try again\";\n }\n\n if (\"next\".equals(direction)) {\n if (!iterForward) {\n iter.next();\n iterForward = true;\n }\n if (iter.hasNext()) {\n int pageNum = iter.nextIndex() + 1;\n String pageContent = iter.next();\n return String.format(\"%s---PAGE %d OF %d---%n%n\", pageContent,\n pageNum,\n pages.size());\n }\n } else if (\"prev\".equals(direction)) {\n if (iterForward) {\n iter.previous();\n iterForward = false;\n }\n if (iter.hasPrevious()) {\n int pageNum = iter.previousIndex() + 1;\n String pageContent = iter.previous();\n return String.format(\"%s---PAGE %d OF %d---%n%n\", pageContent,\n pageNum,\n pages.size());\n }\n }\n return \"No more pages.\";\n }", "title": "" }, { "docid": "a431f05ab3aa5e7777e804a4ac4bd86a", "score": "0.4729598", "text": "UnigramLanguageModel(ArrayList<Data.Page> pagelist, int numResults) throws IOException {\n\t\tresult_map = new HashMap<>();\n\t\tresults = new HashMap<>();\n\t\tmaxResults = numResults;\n\t\tqp = new QueryParser(\"parabody\", new StandardAnalyzer());\n\t\tis = new IndexSearcher(\n\t\t\t\tDirectoryReader.open((FSDirectory.open(new File(QueryParagraphs.INDEX_DIRECTORY).toPath()))));\n\t\tir = is.getIndexReader();\n\t\tfloat sumTotalTermFreq = ir.getSumTotalTermFreq(\"parabody\");\n\t\tSimilarityBase custom = new SimilarityBase() {\n\t\t\tprotected float score(BasicStats stats, float freq, float docLen) {\n\n\t\t\t\treturn (float) ((freq + 1 / docLen));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t\tis.setSimilarity(custom);\n\n\t\t// For each page in the list\n\t\tfor (Data.Page page : pagelist) {\n\t\t\t// For every term in the query\n\n\t\t\tString queryId = page.getPageId();\n\t\t\tif (!results.containsKey(queryId)) {\n\t\t\t\tresults.put(queryId, new HashMap<String, DocInfo>());\n\t\t\t}\n\t\t\tfor (String term : page.getPageName().split(\" \")) {\n\t\t\t\tTerm t = new Term(\"parabody\", term);\n\t\t\t\tTermQuery tQuery = new TermQuery(t);\n\n\t\t\t\tTopDocs topDocs = is.search(tQuery, maxResults);\n\t\t\t\tfloat totalTermFreq = ir.totalTermFreq(t);\n\t\t\t\tScoreDoc[] scores = topDocs.scoreDocs;\n\t\t\t\tfor (int i = 0; i < topDocs.scoreDocs.length; i++) {\n\n\t\t\t\t\tDocument doc = is.doc(scores[i].doc);\n\t\t\t\t\tString paraId = doc.get(\"paraid\");\n\t\t\t\t\tString docBody = doc.get(\"parabody\");\n\t\t\t\t\tArrayList<String> unigram_list = analyzeByUnigram(docBody);\n\n\t\t\t\t\tint size_of_voc = getSizeOfVocabulary(unigram_list);\n\t\t\t\t\tint size_of_doc = unigram_list.size();\n\n\t\t\t\t\tif (!results.get(queryId).containsKey(paraId)) {\n\t\t\t\t\t\tresults.get(queryId).put(paraId, new DocInfo(0.0f, docBody));\n\t\t\t\t\t}\n\t\t\t\t\tfloat score = results.get(queryId).get(paraId).getScore();\n\t\t\t\t\tscore += (float) ((scores[i].score / (size_of_doc + size_of_voc)));\n\t\t\t\t\tresults.get(queryId).put(paraId, new DocInfo(score, docBody));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (Map.Entry<String, HashMap<String, DocInfo>> queryResult : results.entrySet()) {\n\t\t\tString queryId = queryResult.getKey();\n\t\t\tHashMap<String, DocInfo> paraResults = queryResult.getValue();\n\n\t\t\tArrayList<RankInfo> rankList = new ArrayList<RankInfo>();\n\n\t\t\tfor (Map.Entry<String, DocInfo> paraResult : paraResults.entrySet()) {\n\t\t\t\tString paraId = paraResult.getKey();\n\t\t\t\tfloat score = paraResult.getValue().getScore();\n\t\t\t\tString content = paraResult.getValue().getContent();\n\t\t\t\tDocumentResults docResult = new DocumentResults(paraId, score, content);\n\t\t\t\tdocQueue.add(docResult);\n\t\t\t}\n\t\t\tDocumentResults docResult;\n\t\t\tint count = 1;\n\t\t\twhile ((docResult = docQueue.poll()) != null) {\n\n\t\t\t\t// runfilestrings.add(\n\t\t\t\t// queryId + \" Q0 \" + docResult.paraId + \" \" + count + \" \" +\n\t\t\t\t// docResult.score + \" team1-UL-L\");\n\t\t\t\tRankInfo rank = new RankInfo();\n\t\t\t\trank.setQueryStr(queryId);\n\t\t\t\trank.setParaId(docResult.paraId);\n\t\t\t\trank.setRank(count);\n\t\t\t\trank.setScore(docResult.score);\n\t\t\t\trank.setTeam_method_name(\"team1-UL-L\");\n\t\t\t\trank.setParaContent(docResult.content);\n\n\t\t\t\trankList.add(rank);\n\t\t\t\tcount++;\n\t\t\t\tif (count > 10)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tresult_map.put(queryId, rankList);\n\t\t\tdocQueue.clear();\n\n\t\t}\n\t}", "title": "" }, { "docid": "7fd31506f1bf015520b254918398d081", "score": "0.4727586", "text": "@SuppressWarnings(\"rawtypes\")\n private com.squareup.okhttp.Call getWordsPerPageValidateBeforeCall(String name, String storage, String folder, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (name == null) {\n throw new ApiException(\"Missing the required parameter 'name' when calling getWordsPerPage(Async)\");\n }\n \n\n com.squareup.okhttp.Call call = getWordsPerPageCall(name, storage, folder, progressListener, progressRequestListener);\n return call;\n\n }", "title": "" }, { "docid": "4e610bd86b225807dd1c8c4fadc1d86a", "score": "0.46938422", "text": "@Range(from = 1, to = Long.MAX_VALUE)\n int getPageSize(int elementsPerPage);", "title": "" }, { "docid": "86d7692d8dc699f8f68708866915f81d", "score": "0.46814835", "text": "HashMap<String, Object> getPageInfomation(String pageNum);", "title": "" }, { "docid": "ae4d775a175a672f4596df316744802a", "score": "0.46670356", "text": "Tuple2<RichIterable<T>, Integer> page(int offset, int pageSize);", "title": "" }, { "docid": "05eb9afbe695fdeca8495b1114013615", "score": "0.4659242", "text": "@Override\n public void pagar() {\n }", "title": "" }, { "docid": "95955993921a9e9ca83f564c8db2cbed", "score": "0.46513572", "text": "private static void getWords(int number, String format) {\r\n\t\tif (StringUtils.equalsIgnoreCase(format, NumberPrinterConstant.WORDS)) {\r\n final NumberToWordsImpl numToWords = new NumberToWordsImpl();\r\n\t\t\tLOGGER.info(\"*********Numbers as Words*********: \"+numToWords.convertNumberToWords(number));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fd5e42213cb73c90d7a8248fed376461", "score": "0.46503383", "text": "public int getPageLength ();", "title": "" }, { "docid": "86a5254db7d0f209aa06880f8bc29ce1", "score": "0.46462157", "text": "Map<Integer, List<Integer>> retrieveWordsPagesPositions(List<String> words) throws SQLException;", "title": "" }, { "docid": "781be3383783ad27847bc3e699544285", "score": "0.46432385", "text": "public JaSuggestBuilder prebuiltWords() {\n this.prebuiltWords = true;\n return this;\n }", "title": "" }, { "docid": "9cbff72d4007cc719e0cebf9debb6284", "score": "0.463188", "text": "public int getPageSize();", "title": "" }, { "docid": "9cbff72d4007cc719e0cebf9debb6284", "score": "0.463188", "text": "public int getPageSize();", "title": "" }, { "docid": "9cbff72d4007cc719e0cebf9debb6284", "score": "0.463188", "text": "public int getPageSize();", "title": "" }, { "docid": "ef5fead64c866a8ec438921ab5285fa7", "score": "0.4631485", "text": "public String getWords() {\r\n return getWords(50);\r\n }", "title": "" }, { "docid": "447d15b3752f0c93804d1d41ea8373b0", "score": "0.4627875", "text": "public Pageable constructPageSpecification(int pageIndex,int numItems,String sortField) {\n\n // Create the Pageable object\n Pageable pageSpecification = new PageRequest(pageIndex, numItems, new Sort(Sort.Direction.ASC,sortField));\n\n // return the pageSpecification\n return pageSpecification;\n\n }", "title": "" }, { "docid": "5d25a8b4f8cd7c08c0a6377f1e82923b", "score": "0.46271697", "text": "int getPage();", "title": "" }, { "docid": "364875ee47edc972705d00515755852c", "score": "0.46179003", "text": "@Override\r\n\tpublic PageOperation getOperations(String codeCompte, int page, int size) {\n\t\tPageOperation pageOperation = new PageOperation();\r\n\t\tPage<Operation> ops = operationRepository.getOperations(codeCompte,new PageRequest(page, size));\r\n\t\tpageOperation.setOperations(ops.getContent());\r\n\t\tpageOperation.setSizePage(ops.getSize());\r\n\t\tpageOperation.setNumberPage(ops.getNumber());\r\n\t\tpageOperation.setTotalOperations((int)ops.getTotalElements());\r\n\t\tpageOperation.setTotalPages(ops.getTotalPages());\r\n\t\treturn pageOperation;\r\n\t}", "title": "" }, { "docid": "246744027c0af9a7fc3a3c23992ac036", "score": "0.46161762", "text": "List<String> getItemsPerPageOptionsConfig(long customerShopId);", "title": "" }, { "docid": "96843b18cff63a9c8093fd3d5fd1fee1", "score": "0.46144685", "text": "String getPage();", "title": "" }, { "docid": "53e76a44b37f4d5f51daa04f3ba93da7", "score": "0.46117777", "text": "public String asUrlArgsList(int page) {\n if(filter==null){\n return \"page=\"+page;\n }else{\n StringBuilder url = new StringBuilder();\n if(filter.isPaging()){\n url.append(String.format(\"page=%d&pagelimit=%d&\", page, filter.getNumberPerPage()));\n }\n if(filter.isByPartialTitleMatch()){\n url.append(String.format(\"searchterm=%s&\",MyUrlEncoder.encode(filter.getPartialTitleMatchString())));\n }\n if(filter.isBySeries()){\n url.append(String.format(\"series=%s&\", filter.getSeriesId()));\n }\n if(filter.isByPublisher()){\n url.append(String.format(\"publisher=%s&\", filter.getPublisherId()));\n }\n if(filter.isByBookId()){\n url.append(String.format(\"book=%s&\", filter.getBookId()));\n }\n if(filter.isByYear()){\n url.append(String.format(\"year=%d&\", filter.getYear()));\n }\n if(filter.isByAuthor()){\n url.append(String.format(\"author=%s&\", filter.getAuthorId()));\n }\n if(url.lastIndexOf(\"&\") == url.length()-1){\n url.replace(url.length()-1, url.length(),\"\");\n }\n return url.toString();\n }\n }", "title": "" }, { "docid": "d83c685bb878ce8fc9f782c6d45243d5", "score": "0.46104816", "text": "private static String getPagingSql(String sql, \n\t\tList<Object> parameters, int offset, int limit) throws SQLException\n\t{\n\t\tStringBuilder pagingSql = new StringBuilder(sql.length() + 100);\n\t\tboolean hasOffset = (offset > 1);\n\t\tboolean isCaseTwo = false;\n\t\tif (sql.indexOf(\" ORDER \") > 0 || sql.indexOf(\" DISTINCT \") > 0 || sql.indexOf(\" INTERSECT \") > 0\n\t\t\t\t|| sql.indexOf(\" GROUP \") > 0 || sql.indexOf(\" UNION \") > 0)\n\t\t{\n\t\t\tisCaseTwo = true;\n\t\t}\n\t\tif (hasOffset)\n\t\t{\n\t\t\t//Between offset and limit.\n\t\t\tif (isCaseTwo)\n\t\t\t{\n\t\t\t\tpagingSql.append(\"SELECT * FROM (SELECT rownum ROWNUM_,row_.* FROM (\");\n\t\t\t\tpagingSql.append(sql);\n\t\t\t\tpagingSql.append(\") row_ WHERE rownum<=?) WHERE ROWNUM_>=?\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpagingSql.append(\"SELECT * FROM (SELECT rownum ROWNUM_,\");\n\t\t\t\tpagingSql.append(sql.substring(sql.indexOf(\"SELECT \") + 7));\n\t\t\t\tif (sql.indexOf(\"WHERE \") > 0)\n\t\t\t\t{\n\t\t\t\t\tpagingSql.append(\" AND rownum<=?) row_ WHERE row_.ROWNUM_>=?\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpagingSql.append(\" WHERE rownum<=? ) row_ WHERE row_.ROWNUM_>=?\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tparameters.add(Integer.valueOf(limit));\n\t\t\tparameters.add(Integer.valueOf(offset));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//top n\n\t\t\tif (isCaseTwo)\n\t\t\t{\n\t\t\t\tpagingSql.append(\"SELECT row_.* FROM (\");\n\t\t\t\tpagingSql.append(sql);\n\t\t\t\tpagingSql.append(\") row_ WHERE rownum<=?\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tpagingSql.append(sql);\n\t\t\t\tif (sql.indexOf(\"WHERE \") > 0)\n\t\t\t\t{\n\t\t\t\t\tpagingSql.append(\" AND rownum<=?\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpagingSql.append(\" WHERE rownum<=?\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tparameters.add(Integer.valueOf(limit));\n\t\t}\n\t\treturn pagingSql.toString();\n\t}", "title": "" }, { "docid": "c7b91fe516e1ee5efe7e5792c357d8fd", "score": "0.4608453", "text": "private static Results locateItemsPerPageSection()\n {\n return Page.find().byId(\"grid-paging-header\");\n }", "title": "" }, { "docid": "6f565b1126ab232cebf0747aeaaae937", "score": "0.45956215", "text": "public static String getSearchPageBar(String url\n\t\t\t\t\t, int currentShowPageNo\n\t\t\t\t\t, int sizePerPage\n\t\t\t\t\t, int totalPage\n\t\t\t\t\t, int blockSize\n\t\t\t\t\t, String searchType\n\t\t\t\t\t, String searchName) {\n\n\t\t\t\tString pageBar = \"\";\n\n\t\t\t\tint pageNo = 1;\n\t\t\t\tint loop = 1;\n\n\t\t\t\tpageNo = ((currentShowPageNo - 1) / blockSize) * blockSize + 1;\n\t\t\t\t// 공식임.\n\n\t\t\t\t// currentShowPageNo pageNo\n\t\t\t\t// -------------------------------\n\t\t\t\t// 1 1\n\t\t\t\t// 2 1\n\t\t\t\t// .. ..\n\t\t\t\t// 10 1\n\t\t\t\t// \n\t\t\t\t// 11 11\n\t\t\t\t// 12 11\n\t\t\t\t// .. ..\n\t\t\t\t// 20 11\n\t\t\t\t// \n\t\t\t\t// 21 21 \n\t\t\t\t// 22 21 \n\t\t\t\t// .. ..\n\t\t\t\t// 30 21 \n\n\t\t\t\tif(pageNo == 1) {\n\t\t\t\t\tpageBar += \"\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpageBar += \"&nbsp;<li><a href=\\\"\"+url+\"?currentShowPageNo=\"+(pageNo-1)+\"&sizePerPage=\"+sizePerPage+\"&searchType=\"+searchType+\"&searchName=\"+searchName+\"\\\">[이전]</a></li>\";\n\t\t\t\t}\n\n\t\t\t\twhile( !(loop > blockSize || pageNo > totalPage) ) {\n\n\t\t\t\t\tif(pageNo == currentShowPageNo) {\n\t\t\t\t\t\tpageBar += \"&nbsp;<li><a><span style=\\\"color: red; font-size: 13pt; font-weight: bold; text-decoration: underline;\\\">\"+pageNo+\"</span></a></li>&nbsp;\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tpageBar += \"&nbsp;<li><a href=\\\"\"+url+\"?currentShowPageNo=\"+pageNo+\"&sizePerPage=\"+sizePerPage+\"&searchType=\"+searchType+\"&searchName=\"+searchName+\"\\\">\"+pageNo+\"</a></li>&nbsp;\";\n\t\t\t\t\t}\n\n\t\t\t\t\tpageNo++;\n\t\t\t\t\tloop++;\n\t\t\t\t}// end of while-------------------------\n\n\t\t\t\tif(pageNo > totalPage) {\n\t\t\t\t\tpageBar += \"\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpageBar += \"&nbsp;<li><a href=\\\"\"+url+\"?currentShowPageNo=\"+pageNo+\"&sizePerPage=\"+sizePerPage+\"&searchType=\"+searchType+\"&searchName=\"+searchName+\"\\\">[다음]</a></li>\";\n\t\t\t\t}\n\n\t\t\t\treturn pageBar;\n\n\t\t\t}", "title": "" }, { "docid": "45bce7509ecdc618daf76cae9149bc59", "score": "0.45780984", "text": "@Override\r\n \tpublic void addPages() {\r\n \t\tstartPointTypeSelectionPage = new StartPointTypeSelectionPage();\r\n \t\taddPage(startPointTypeSelectionPage);\r\n \t\tnewUrlStartPointPage = new NewUrlStartPointPage(startPointTypeSelectionPage);\r\n \t\taddPage(newUrlStartPointPage);\r\n \t\textentionStartPointSelectorPage = new ExtentionStartPointSelectorPage(extensionPointMap, project);\r\n \t\taddPage(extentionStartPointSelectorPage);\r\n \t}", "title": "" }, { "docid": "8d6b29632970a933619b55aeef9f610c", "score": "0.45767307", "text": "public List<Integer> getTotalPages(String lookUp) {\n\t\t\t\t\t mgrLog(this.getClass(), \"getTotalPages\", \"START to lookup pages for =\"+lookUp);\n\t\t\t\t\t Long pLength = getCountProducts(lookUp);\n\t\t\t\t \tInteger fixedPageSize = 5;\n\t\t\t\t \tInteger count = 0;\n\t\t\t\t \t\t\t\t\t \t\n\t\t\t\t \tList<Integer> pages = new ArrayList<Integer>();\n\t\t\t\t \t\n\t\t\t\t \tfor(int i=0; i < pLength; i=(i+=fixedPageSize)){\n\t\t\t\t \t\tcount++;\n\t\t\t\t \t\tpages.add(count);\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t mgrLog(this.getClass(), \"getTotalPages\", \"END with pages =\"+pages.size());\n\t\t\t\t \t\n\t\t\t\t\treturn pages;\n\t\t\t\t}", "title": "" }, { "docid": "2e7d54b61644371de7ca5ff69d0d9b8e", "score": "0.45760626", "text": "@Override\n public Pagination<Model> getListInPage(Integer pageNum, Integer pageSize, List<Condition> filters,\n List<OrderBy> orderBys) {\n PageHelper.startPage(pageNum, pageSize);\n Page<Model> page = (Page<Model>) dao.selectByExample(convertFilter2Example(filters, orderBys));\n Pagination<Model> pagination = new Pagination<Model>();\n pagination.setTotalItems(page.getTotal());\n pagination.setPageSize(pageSize);\n pagination.setCurrentPage(pageNum);\n pagination.setList(page);\n return pagination;\n }", "title": "" }, { "docid": "6258a3fbe172819407cdb8c9b815e3e0", "score": "0.45715305", "text": "Paging next();", "title": "" }, { "docid": "4a591f70a8d49ad617e2b97dfb777389", "score": "0.45643568", "text": "public int getPageCount();", "title": "" }, { "docid": "826c824b11b4c61f895ed356b8e8ed72", "score": "0.4561568", "text": "@Override\n public void onLoadMore(int page, int totalItemsCount) {\n customLoadMoreDataFromApi(page); \n // or customLoadMoreDataFromApi(totalItemsCount); \n }", "title": "" }, { "docid": "9b98a5e2b1ac854d9a12db0873e0d548", "score": "0.4549934", "text": "protected abstract List<PK> findPage(int start, int size);", "title": "" }, { "docid": "5ef377444de8cd1c440013a149738558", "score": "0.4547715", "text": "public PagingParams(long start, long pageSize)\n\t{\n\t\tthis.start = start;\n\t\tthis.startInt = (int) start;\n\t\tthis.pageSize = pageSize;\n\t\tthis.pageSizeInt = (int) pageSize;\n\t}", "title": "" }, { "docid": "6cabe4b7482492060dd1f23258567d04", "score": "0.4545293", "text": "@Override\n\tpublic PageBean fuzzyListPage(PageParam pageParam, Map<String, Object> paramMap) {\n\t\tPageBean fuzzyListPage = adminDao.fuzzyListPage(pageParam, paramMap);\n\t\treturn fuzzyListPage;\n\t}", "title": "" }, { "docid": "474f99e281c6704c2183342c767ffcce", "score": "0.45430958", "text": "List<Book> searchBooks(String name, int pages);", "title": "" }, { "docid": "2e4e735f0cd9eb882036d33bf758fd4c", "score": "0.45394465", "text": "@Override\n\tpublic Page<?> paginationParmsExtra(Integer pagenumber, Integer rows, String sortdireccion, String sortcolumn,\n\t\t\tObject filter, Object paramsExtra) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2e4e735f0cd9eb882036d33bf758fd4c", "score": "0.45394465", "text": "@Override\n\tpublic Page<?> paginationParmsExtra(Integer pagenumber, Integer rows, String sortdireccion, String sortcolumn,\n\t\t\tObject filter, Object paramsExtra) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "11c13fe12a625891febfbb0182bd31f1", "score": "0.45388004", "text": "public HashMap<String, String> paginationInfo()\n {\n HashMap<String, String> paginationInfo = new HashMap<>();\n paginationInfo.put(\"currentPage\", Long.toString(mCurrentPage));\n paginationInfo.put(\"resultsRangeStart\", Long.toString(1 + (mCurrentPage - 1) * mResultsPerPage));\n paginationInfo.put(\"resultsRangeEnd\", Long.toString(Math.min((mCurrentPage - 1) * mResultsPerPage + mResultsPerPage, mNumResults)));\n paginationInfo.put(\"numResults\", String.format(\"%,d%s\", mNumResults, terminatedEarly() ? \"+\" : \"\"));\n\n return paginationInfo;\n }", "title": "" }, { "docid": "4df64ff4cc553aa88bc91d0d70362b98", "score": "0.45375594", "text": "@Override\n public void onLoadMore(int page, int totalItemsCount, RecyclerView view) {\n if (itemList.size() <= 100) {\n makeRedditRequest(urlJsonObj, startValue, endValue);\n }\n }", "title": "" }, { "docid": "627f041caedfd74790815c02527a4e68", "score": "0.45226538", "text": "protected ListRecordsParameters buildParams() {\n ListRecordsParameters lip = ListRecordsParameters.request();\n lip.withMetadataPrefix(metadataPrefix);\n if (usesDateRange) {\n lip.withGranularity(granularity.toString());\n lip.withFrom(from);\n lip.withUntil(until);\n }\n if (usesSet && !set.equals(NULL_SET)) {\n lip.withSetSpec(set);\n }\n return lip;\n }", "title": "" }, { "docid": "a1617a4df7f0c58bdfb9aa232b23cf23", "score": "0.45216143", "text": "Page<Workflowexecute> listWithCriterasByPage(List<SearchCriteria> searchCriterias, Pageable pageable);", "title": "" }, { "docid": "355f3dcadb2201c3c2328bfcc9564460", "score": "0.45162746", "text": "@Override\n\t\t\tpublic void onLoadMore() {\n\t\t\t\tif(searchMode==1){\n\t\t\t\t\tif(searchAnimals!=null&&searchAnimals.size()>0){\n\t\t\t\t\t\taid=searchAnimals.get(searchAnimals.size()-1).a_id;\n\t\t\t\t\t}\n\t\t\t\t\tsearchPetOrUser(true); \n\t\t\t\t}else{\n\t\t\t\t\tpage++;\n\t\t\t\t\t searchPetOrUser(true); \n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "9e4ea59b64bea6b574f366d5398153cd", "score": "0.45134404", "text": "@RequestMapping({\"/list\"})\r\n/* 29: */ public String list(@RequestParam(value=\"page\", required=false) String page, @RequestParam(value=\"rows\", required=false) String rows, HttpServletResponse response)\r\n/* 30: */ throws Exception\r\n/* 31: */ {\r\n/* 32: 48 */ PageBean pageBean = new PageBean(Integer.parseInt(page), Integer.parseInt(rows));\r\n/* 33: 49 */ Map<String, Object> map = new HashMap();\r\n/* 34: 50 */ map.put(\"start\", Integer.valueOf(pageBean.getStart()));\r\n/* 35: 51 */ map.put(\"size\", Integer.valueOf(pageBean.getPageSize()));\r\n/* 36: 52 */ List<BlogType> blogTypeList = this.blogTypeService.list(map);\r\n/* 37: 53 */ Long total = this.blogTypeService.getTotal(map);\r\n/* 38: 54 */ JSONObject result = new JSONObject();\r\n/* 39: 55 */ JSONArray jsonArray = JSONArray.fromObject(blogTypeList);\r\n/* 40: 56 */ result.put(\"rows\", jsonArray);\r\n/* 41: 57 */ result.put(\"total\", total);\r\n/* 42: 58 */ ResponseUtil.write(response, result);\r\n/* 43: 59 */ return null;\r\n/* 44: */ }", "title": "" }, { "docid": "e2e7603d8da4037b5e95b34df011e6f7", "score": "0.44968703", "text": "@Override\n\tpublic PageBean<Annotation> getPageBeanByCondition(\n\t\t\tMap<String, Object> paraMap, int pageIndex, int pageSize) {\n\t\tPageBean<Annotation> pageBean=new PageBean<Annotation>();\n\t\tpageBean.setPageIndex(pageIndex);\n\t\tpageBean.setPageSize(pageSize);\n\t\tint count=annotationDao.getCountByCondition(paraMap, pageIndex, pageSize);\n\t\tpageBean.setTotalCount(count);\n\t\tpageBean.setPageCount();\n\t\tif(count>0){\n\t\t\tpageBean.setList(annotationDao.findPageByCondition(paraMap, pageIndex, pageSize));\n\t\t}\n\t\treturn pageBean;\n\t}", "title": "" }, { "docid": "67d90199b34f5d82aa3b7346f9a57de6", "score": "0.44939208", "text": "private void constructCurrentPage(int type) {\n // for display data\n List<BaseData> list = new ArrayList<BaseData>();\n if (state == STATUS_DEVICE_DISPLAY) {\n list.addAll(deviceList);\n } else {\n // access to current type of data\n list.addAll(getUIDataList(type));\n }\n\n // empty before the data\n uiData.clear();\n // add return items, each page for a return to the first paragraph\n addReturn();\n\n int size = list.size();\n if (size > 0) {\n totalPage = size / Constants.LIST_MODE_DISPLAY_NUM;\n totalPage += size % Constants.LIST_MODE_DISPLAY_NUM == 0 ? 0 : 1;\n\n int tail = 0;\n if (size > currentPage * Constants.LIST_MODE_DISPLAY_NUM) {\n tail = currentPage * Constants.LIST_MODE_DISPLAY_NUM;\n } else {\n tail = size;\n }\n Log.d(TAG, \"size : \" + size + \" tail : \" + tail + \"totalPage:\"\n + totalPage);\n\n int i = (currentPage - 1) * Constants.LIST_MODE_DISPLAY_NUM;\n for (; i < tail; i++) {\n BaseData bd = list.get(i);\n uiData.add(bd);\n }\n\n } else {\n totalPage = 1;\n }\n\n }", "title": "" }, { "docid": "692bb3a58d743d09739f9bfacd7535a9", "score": "0.44929725", "text": "private void printHelp(CommandSender sender, List<SubCommand> commands, int page, int maxPage) {\n new LangString(\"command.help.header\").send(sender);\n new LangString(\"command.help.about\").send(sender);\n\n // Calculate the first and last index to print\n int first = (page - 1) * PER_PAGE;\n int last = Math.min(commands.size(), page * PER_PAGE);\n\n for (int i = first; i < last; i++) {\n SubCommand cmd = commands.get(i);\n new LangString(\"command.help.format\", cmd.getUsage(), cmd.getDescription()).send(sender);\n }\n\n if (maxPage > 1) {\n new LangString(\"command.help.more-pages\", page, maxPage, getUsage()).send(sender);\n } else {\n new LangString(\"command.help.footer\").send(sender);\n }\n }", "title": "" }, { "docid": "01ec5b7e53695b35dc067354145c6aea", "score": "0.44848865", "text": "protected List<W> getDataFromPage(int page) {\n try {\n @SuppressWarnings(\"unchecked\")\n PagedResponse<W> searchResponse = (PagedResponse<W>) getWordpressClient().search(SearchRequest.Builder\n .aSearchRequest(getWordpressTypeClass())\n .withPagination(WordpressConsts.PAGE_SIZE, page)\n .withUri(getEndPointUri())\n .build());\n \n return searchResponse.getList();\n } catch (HttpClientErrorException e) {\n logger.warn(\"Http request failed\", e);\n }\n \n return Collections.emptyList();\n }", "title": "" }, { "docid": "9067e4eee1314b8d86cf42fe37a54dfe", "score": "0.44840446", "text": "public String getLetterPaging(int page, String letter, int pageCount){\n \tString paging = \"\";\n \tif (page > 1 ){\n \t\tpaging += \"<li ><a href=\\\"product?letter=\" + letter + \"&showPage=\" + String.valueOf(page-1) + \"\\\">< Previous</a></li>\";\n \t}\n \tif (page > 3) {\n\n }\n \tfor (int i = 1; i <= pageCount; i++) {\n if (page == i) {\n \tpaging += \"<li class=\\\"active\\\" ><a href=\\\"product?letter=\" + letter + \"&showPage=\" + i +\"\\\">\" + i + \"</a></li>\";\n }else{\n \tif (i < page + 3 && i > page - 3) {\n paging += \"<li ><a href=\\\"product?letter=\"+ letter + \"&showPage=\" + i + \"\\\">\" + i + \"</a></li>\";\n\n \t}\n }\n \t}\n \t\n if (page < pageCount) {\n \t\tpaging += \"<li ><a href=\\\"product?letter=\" +letter + \"&showPage=\" + String.valueOf(page + 1) + \"\\\">Next ></a></li>\";\n \n }\n\t\treturn paging;\n }", "title": "" }, { "docid": "b70cc3fb25ebb4f8ebd9cdeedf069033", "score": "0.44801766", "text": "private void customLoadMoreDataFromApi(int page) {\n //paginate only if online.\n populateTimeline(areWeOnline);\n }", "title": "" }, { "docid": "db74af1d9dd9701ae05acf029f16f3c7", "score": "0.4477148", "text": "public Builder setPagination(\n cosmos.base.query.v1beta1.Pagination.PageRequest.Builder builderForValue) {\n if (paginationBuilder_ == null) {\n pagination_ = builderForValue.build();\n onChanged();\n } else {\n paginationBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "f03385961742949cfdb4af715af1cfdc", "score": "0.44653314", "text": "private String fetchRandomWords(){\n String wordString = \"\";\n int numWordsToFetch = this.numWords;\n\n if(this.numWords == 0)\n numWordsToFetch = ConfigWrapper.getConfig().getInt(\"num-words\");\n\n if(this.useWordOfTheDay) numWordsToFetch--;\n\n try {\n List<String> words = dictionaryService.getRandomWords(numWordsToFetch);\n\n for (String word : words) {\n wordString += word + \" \";\n }\n\n wordString = wordString.trim();\n\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return wordString;\n }", "title": "" }, { "docid": "02408dbbde1f4de38dbfba8c1963a929", "score": "0.4464038", "text": "default PageRequest page(Integer currentPage, Integer pageSize, Direction direction, String... columns) {\n return PageRequest.of(currentPage - 1, pageSize, direction, columns);\n }", "title": "" }, { "docid": "efcd9f47307df4627ab7a46aa8c1683f", "score": "0.44563228", "text": "void initFragPageCount();", "title": "" }, { "docid": "91d6802f5430226597d4098b74ae449d", "score": "0.44558612", "text": "public String getWords(int amount, int startIndex) {\r\n if(startIndex < 0 || startIndex > 49) {\r\n throw new IndexOutOfBoundsException(\"startIndex must be >= 0 and < 50\");\r\n }\r\n\r\n int word = startIndex;\r\n StringBuilder lorem = new StringBuilder();\r\n\r\n for(int i = 0; i < amount; i++) {\r\n if(word == 50) {\r\n word = 0;\r\n }\r\n\r\n lorem.append(loremIpsumWords[word]);\r\n\r\n if(i < amount - 1) {\r\n lorem.append(' ');\r\n }\r\n\r\n word++;\r\n }\r\n\r\n return lorem.toString();\r\n }", "title": "" }, { "docid": "3aef209cc8a224481f193e0f08e0d7e8", "score": "0.44543245", "text": "public String createLastPageLink(int totalNumberOfPages, String asinCode);", "title": "" }, { "docid": "d643e1bdc08fd4d31f70cfe399e42bd4", "score": "0.44541004", "text": "private static void newPages(List<String> list) {\n pages = list;\n if (pages != null) {\n iter = pages.listIterator();\n iterForward = true;\n System.out.println(paginate(\"next\"));\n } else {\n System.out.println(\"Nothing found.\");\n }\n }", "title": "" }, { "docid": "0d7d47043686760fb72684c51a6466dc", "score": "0.44525096", "text": "int getTotalPage();", "title": "" }, { "docid": "e2a46f8c443b5050e168c443da984658", "score": "0.44467056", "text": "public pagination() {\n\t\tsuper(null);\n\t}", "title": "" }, { "docid": "b9ffa40910afcbb279f936f03f65e15e", "score": "0.44457364", "text": "@Override\r\n\tpublic int getMemberCount(String searchOpt, String words) {\n\t\tMap<String, Object> map = new HashMap<>();\r\n\t\tmap.put(\"searchOpt\", searchOpt);\r\n\t\tmap.put(\"words\", words);\r\n\t\treturn sql.selectOne(namespace+\".getMemberCount\", map);\r\n\t}", "title": "" }, { "docid": "d79ffcf742f1454e417821a5c2553dfd", "score": "0.4445429", "text": "public PrunedCounts<Integer> getPhraseCounts(Language lang, String phrase, int maxPages) throws DaoException;", "title": "" }, { "docid": "ebc3678113660eb0fd7c6af3508cd04e", "score": "0.44299757", "text": "private int processPageParameter(HttpServletRequest request, HttpServletResponse response, int listSize)\n throws ServletException, IOException {\n int page = 1;\n try {\n page = Integer.parseInt(request.getParameter(\"page\"));\n\n int pageNum;\n if (listSize % itemPerPage == 0) {\n pageNum = listSize / itemPerPage;\n } else {\n pageNum = (listSize / itemPerPage) + 1;\n }\n\n if (page < 1 || page > pageNum) {\n response.sendRedirect(request.getContextPath() + \"/nauth/404.jsp\");\n return -1;\n }\n } catch (NumberFormatException e) {\n System.out.println(e.getMessage() + \" at ~96 LessonController\");\n }\n\n return page;\n }", "title": "" }, { "docid": "2d6d249a7d060c6187e931b2d5fc2776", "score": "0.44236895", "text": "private void buildContext() {\n final Context context = m_wikiContext.clone();\n final Object o = m_iterator.next();\n if( o instanceof Page ) {\n context.setPage( ( Page )o );\n }\n\n pageContext.setAttribute( Context.ATTR_CONTEXT, context, PageContext.REQUEST_SCOPE );\n pageContext.setAttribute( getId(), o );\n }", "title": "" } ]
c8d9347f052efc6d603c026f5c1b1227
/ Noarg ctor for use by DPL.
[ { "docid": "f87c76c7783c820235708e7f76394f74", "score": "0.0", "text": "DeployShard() {\n }", "title": "" } ]
[ { "docid": "a914e44ffa4c341e5c03a8435fe7d85b", "score": "0.7267667", "text": "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "title": "" }, { "docid": "1c67c483c221c60e59e80a1ea2092907", "score": "0.69679534", "text": "defaultConstructor(){}", "title": "" }, { "docid": "07a1ef30e9a2e597563000179466b689", "score": "0.68196267", "text": "public D() {}", "title": "" }, { "docid": "613eaf0e2608925a418a73b23312e1bc", "score": "0.67590714", "text": "public Constructor(){\n\t\t\n\t}", "title": "" }, { "docid": "2fda59f727914730e1ccc0c0b05e57bd", "score": "0.6743441", "text": "Constructor() {\r\n\t\t \r\n\t }", "title": "" }, { "docid": "b2cd8c13e0eec7bc1a5eae0fed28fba9", "score": "0.67378503", "text": "void DefaultConstructor(){}", "title": "" }, { "docid": "a236f923a009e07ebb82aa7fb563558e", "score": "0.66968465", "text": "Reproducible newInstance();", "title": "" }, { "docid": "9681b61498fc19f71212d6013b67270d", "score": "0.6690953", "text": "private Instantiation(){}", "title": "" }, { "docid": "a41f0ca0df3f43df01e170547ff3f699", "score": "0.66547745", "text": "public Generic(){\n\t\tthis(null);\n\t}", "title": "" }, { "docid": "f13e73d3bbab75a6c489c84d6e34ec62", "score": "0.6651567", "text": "public lo() {}", "title": "" }, { "docid": "a50e225049de5302e22a2a0c0cc041a3", "score": "0.654338", "text": "protected abstract void construct();", "title": "" }, { "docid": "d0218daf8e06fda37508fb453546162e", "score": "0.6540309", "text": "O() { super(null); }", "title": "" }, { "docid": "40b71adfa1e520f1ec4fce66c3834fb5", "score": "0.64448357", "text": "private void __sep__Constructors__() {}", "title": "" }, { "docid": "c66472e003109de06ec554077db73075", "score": "0.6424918", "text": "private Node() {\n\n }", "title": "" }, { "docid": "019a2d104a80d8d9b6d8b31dce2c32b0", "score": "0.6421415", "text": "public Identity()\n {\n super( Fields.ARGS );\n }", "title": "" }, { "docid": "021109ea5121e34c4c5078832cb3ef5e", "score": "0.6414388", "text": "public BasicLineParser() {\n/* 99 */ this(null);\n/* */ }", "title": "" }, { "docid": "1a99b3a047a548e9bddf06dab6f38cd7", "score": "0.64142245", "text": "private Rekenhulp()\n\t{\n\t}", "title": "" }, { "docid": "414756c77c7b441fdbbd3f43a33436ca", "score": "0.6397376", "text": "public IntPar() { }", "title": "" }, { "docid": "0f60dade565bb442e76384f08c4c656c", "score": "0.6383598", "text": "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "title": "" }, { "docid": "a9ac28107677e6fdee874c14c21dba19", "score": "0.63815916", "text": "public native void constructor();", "title": "" }, { "docid": "1a24f501b3bd6514977456536a793343", "score": "0.6364053", "text": "public Clade() {}", "title": "" }, { "docid": "e971e793e9dfe055a8054918bccf5bff", "score": "0.6357028", "text": "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "title": "" }, { "docid": "01a9734118a766d21598d2bc978df094", "score": "0.6351914", "text": "protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }", "title": "" }, { "docid": "8e8d1590673cebf5b6b1e88b309e85f9", "score": "0.63507116", "text": "private Ognl() {\n }", "title": "" }, { "docid": "4143bb3cf91dad64de4b889d78c4f2b3", "score": "0.6344668", "text": "public Data() {}", "title": "" }, { "docid": "566c3505f411e9d8811588047a325824", "score": "0.6330198", "text": "private SpidSupport()\r\n {\r\n // Empty\r\n }", "title": "" }, { "docid": "a2d30106578fea4841a5b920d4b20b1b", "score": "0.6328465", "text": "public TTL_CIL_Communicator()\n {\n }", "title": "" }, { "docid": "9c41dd0a61d565a8aa178b187f5a58b1", "score": "0.6327327", "text": "public Employee()\n\t{\n\t\tthis(\"(2)Invoke Employee's overload constructor\");\n\t\tSystem.out.println(\"(3)Employee's no-arg constructor is invoked\");\n\t}", "title": "" }, { "docid": "01552678a6f7442894915235bd31fa75", "score": "0.6322899", "text": "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "title": "" }, { "docid": "1026ae97d8ebd39a3880570a4e051d25", "score": "0.63200074", "text": "private CLUtil()\n {\n }", "title": "" }, { "docid": "7595ab6677b89b9cd6bbd74ec8b7938b", "score": "0.6301467", "text": "public MySinglyLinkedList() { }", "title": "" }, { "docid": "7806cf0c61a9cf1ac47041c5933420e4", "score": "0.62992257", "text": "public Pitonyak_09_02() {\r\n }", "title": "" }, { "docid": "58c1d9c57eca2e3ec988f318253c6b1c", "score": "0.62990916", "text": "public DBPoolImpl()\n {\n }", "title": "" }, { "docid": "69ceac4b0242766b0d35a2e15d04e53a", "score": "0.629332", "text": "public CSSTidier() {\n\t}", "title": "" }, { "docid": "6425fd5d00f95513232ee6de3df9adbc", "score": "0.62865216", "text": "private SingleObject()\r\n {\r\n }", "title": "" }, { "docid": "39ac266f282a3d689cec93cc557aa4d2", "score": "0.628488", "text": "public no() {}", "title": "" }, { "docid": "99960d7b07822e140881b4d6ebf86eb8", "score": "0.62686056", "text": "private TMCourse() {\n\t}", "title": "" }, { "docid": "9662e3950f7d1a2bd3efbc38601c6bfe", "score": "0.62526506", "text": "public p7p2() {\n }", "title": "" }, { "docid": "72b5ca31d68506e73627ac207002bbdb", "score": "0.6248181", "text": "public PennCnvSeq() {\n }", "title": "" }, { "docid": "ee4ddd92c35d5152f2d15bc710f9a884", "score": "0.62397027", "text": "public StandardPipeline() {\n this(null);\n }", "title": "" }, { "docid": "05df188781adb6bd7513dc215d5a7627", "score": "0.6234995", "text": "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "title": "" }, { "docid": "262e2136a6f32595f5a2999822fdc268", "score": "0.62349576", "text": "protected IRFunctional() {\n _name = null;\n _params = null;\n _args = null;\n _fds = null;\n _vds = null;\n _body = null;\n }", "title": "" }, { "docid": "8671d1c9bb66bb11fc00c32d8bdca656", "score": "0.6218306", "text": "public CD() {}", "title": "" }, { "docid": "09c2e6f756e13725ec95c90d60e22ae5", "score": "0.6217235", "text": "public PipelineImpl() {\n }", "title": "" }, { "docid": "ae766385bdfb5368134572127f2524c2", "score": "0.62166744", "text": "@SuppressWarnings(\"unused\")\n public Item() {\n }", "title": "" }, { "docid": "50f9df56cb230d738443e56695e45aa8", "score": "0.6212316", "text": "public CacheFIFO()\r\n/* 16: */ {\r\n/* 17: 95 */ this(20);\r\n/* 18: */ }", "title": "" }, { "docid": "bfbd7514fc377722d71c53b247c9c7fa", "score": "0.6211027", "text": "public C23317d() {\n }", "title": "" }, { "docid": "ea478c3ff24a36738511d8da0403326a", "score": "0.62028843", "text": "public Node() {\n\t}", "title": "" }, { "docid": "151e3b4ee47b8c57ab3af6fd486443b3", "score": "0.62027544", "text": "public LpsClient() {\n super();\n }", "title": "" }, { "docid": "4af027f27410f59457890a1d09346e68", "score": "0.6196229", "text": "public Node() {}", "title": "" }, { "docid": "4af027f27410f59457890a1d09346e68", "score": "0.6196229", "text": "public Node() {}", "title": "" }, { "docid": "4af027f27410f59457890a1d09346e68", "score": "0.6196229", "text": "public Node() {}", "title": "" }, { "docid": "4af027f27410f59457890a1d09346e68", "score": "0.6196229", "text": "public Node() {}", "title": "" }, { "docid": "077daf7a0fb9450e3475cec899b815eb", "score": "0.61956143", "text": "public Node() {\r\n\t}", "title": "" }, { "docid": "077daf7a0fb9450e3475cec899b815eb", "score": "0.61956143", "text": "public Node() {\r\n\t}", "title": "" }, { "docid": "58472f953f7f275fb3e05d59c5c0a32e", "score": "0.61924416", "text": "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "title": "" }, { "docid": "278a404a14a8c828d133fa01b5152557", "score": "0.61911637", "text": "public Task() {\n\t}", "title": "" }, { "docid": "4b5cbc6ecc941c3202cacf800d4db088", "score": "0.6188578", "text": "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "title": "" }, { "docid": "64d999f42dd2467d2e1d0c1888654307", "score": "0.61856586", "text": "public OpDesc() {\n\n }", "title": "" }, { "docid": "5b5a30c393eaac4d9998364b10b0b5e6", "score": "0.61837447", "text": "public PQueue() {\n this(0,null);\n }", "title": "" }, { "docid": "7fca8e41f05c9bdd22ac89cda28e66af", "score": "0.61832315", "text": "public Basic() {}", "title": "" }, { "docid": "6b70ba53c4b8af7ceb999fdd8bb64c5f", "score": "0.618305", "text": "protected GraphNode() {\n }", "title": "" }, { "docid": "6b70ba53c4b8af7ceb999fdd8bb64c5f", "score": "0.618305", "text": "protected GraphNode() {\n }", "title": "" }, { "docid": "77fae38eb134e8c37508535c7d1560bf", "score": "0.61821973", "text": "public MonHoc() {\n }", "title": "" }, { "docid": "2b721a4b28a5543c2b4bbd5319c7d294", "score": "0.61703384", "text": "protected Depot() {\n\t\tthis(null);\n\t}", "title": "" }, { "docid": "0ed889d457856be3d06084bc6c464a25", "score": "0.616928", "text": "protected Recycler()\r\n/* 88: */ {\r\n/* 89:120 */ this(DEFAULT_MAX_CAPACITY_PER_THREAD);\r\n/* 90: */ }", "title": "" }, { "docid": "1d22e581754dc5a5e0d5c9fc2167b1de", "score": "0.6165533", "text": "public Phl() {\n }", "title": "" }, { "docid": "09413a1aef1a3438d95f11c42654fa42", "score": "0.6148186", "text": "public LocalObject() {}", "title": "" }, { "docid": "d7ceffd05682a223f99cf9c8b2a22da4", "score": "0.6144523", "text": "public Orbiter() {\n }", "title": "" }, { "docid": "bc16885474f6abda9d3438a4aed56ef3", "score": "0.61426175", "text": "public CMN() {\n\t}", "title": "" }, { "docid": "56b8994de0e83f1b533ea9b35c68c660", "score": "0.61413735", "text": "public Node(){\n }", "title": "" }, { "docid": "6e09fb3cd4e82bd66a392d550cb0fcef", "score": "0.61399573", "text": "public Method() {\n }", "title": "" }, { "docid": "9880e16fd6a9ab363b52cc5d8cc136e4", "score": "0.6139698", "text": "private Log()\n {\n //Hides implicit constructor.\n }", "title": "" }, { "docid": "ba16f4cf4bc3ed223e9b23dd233b4df8", "score": "0.6139225", "text": "private Composite() {\n }", "title": "" }, { "docid": "007b69daa17f90de67bd513ce2c57303", "score": "0.6138234", "text": "public Data() {\n }", "title": "" }, { "docid": "007b69daa17f90de67bd513ce2c57303", "score": "0.6138234", "text": "public Data() {\n }", "title": "" }, { "docid": "2a692495bd96437cb6377fa91e6f0f4d", "score": "0.6136663", "text": "public DoublyLL()\r\n\t{\r\n\t\tstart = null;\r\n\t\t//end = null;\r\n\t\tsize = 0;\r\n\t}", "title": "" }, { "docid": "6bd374f3ab76627ec5d8981a3c054e5b", "score": "0.6134007", "text": "private SingleObject(){}", "title": "" }, { "docid": "01985ccfa2334f0edf3e8916ff2bd482", "score": "0.61329097", "text": "public Member() {}", "title": "" }, { "docid": "3943c679b9f5145ce7ac033861586f9c", "score": "0.6131608", "text": "public LifeComponent() {\n // call other constructor with null param\n this(null);\n }", "title": "" }, { "docid": "a915300044ce7cfbb96d81338e4fc8d3", "score": "0.61299765", "text": "protected PrintBill() \r\n\t{/* nothing needed, but this prevents a public no-arg constructor from being created automatically */}", "title": "" }, { "docid": "9c08d5a20e2a417938285fd7c12a5bd3", "score": "0.61247665", "text": "public CacheFIFO(int paramInt)\r\n/* 11: */ {\r\n/* 12: 84 */ super(paramInt);\r\n/* 13: */ }", "title": "" }, { "docid": "a12e73afba42f071678b8083fdb1f440", "score": "0.61247224", "text": "public AbstractParallelAlgorithm()\n {\n this(null);\n }", "title": "" }, { "docid": "41a0dac5e5d3a7d276c8c2846e3ad2f4", "score": "0.61164016", "text": "public Task() {\r\n }", "title": "" }, { "docid": "12dee10ab6b5d65044410d710919ed24", "score": "0.61130214", "text": "public Parser()\n {\n //nothing to do\n }", "title": "" }, { "docid": "d5202ac714ad6b2bed988da32312de4c", "score": "0.6107176", "text": "private Converter()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "bfbd1aee0e6e82fa8e89791a3f133ecb", "score": "0.6105187", "text": "public MapNode()\n\t{\n\t\t// Call alternative constructor\n\t\tthis((AbstractNode)null);\n\t}", "title": "" }, { "docid": "c037d11313f440259ea931c48912ba62", "score": "0.6105186", "text": "public Packet() {\n\t}", "title": "" }, { "docid": "d3c0f40be1653877e2de4a8f17d5c734", "score": "0.6105086", "text": "public Node(){\n this(9);\n }", "title": "" }, { "docid": "0e97eea97f37c3c40b87dca2668c2c6e", "score": "0.6102744", "text": "public CampLease( ) {}", "title": "" }, { "docid": "dd9538bbeb042ba91a8d2d759452ba9a", "score": "0.61010534", "text": "protected DenseMatrix()\n\t{\n\t}", "title": "" }, { "docid": "8b15e62eac2a482a08994d85d97fe6a5", "score": "0.61003786", "text": "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0add8f2ccf31bdf63510f59e138982af", "score": "0.6099125", "text": "public p1() {\r\n this((java.lang.System[]) null);\r\n ppp$p1$$init$S();\r\n }", "title": "" }, { "docid": "17136953726b3d958b8d1a8c792cae0c", "score": "0.60977226", "text": "public AbstractT153()\n {\n }", "title": "" }, { "docid": "510a54341b17688417817b667bd09b4b", "score": "0.6096074", "text": "public RngObject() {\n\t\t\n\t}", "title": "" }, { "docid": "8ae9d6d049b1457e4587f37d7f9975cf", "score": "0.6093081", "text": "private TaskItem()\n {\n }", "title": "" }, { "docid": "f48d792167bda51e34f18d041439184a", "score": "0.60927576", "text": "private R() {\n\n }", "title": "" }, { "docid": "bc92d777860d2f7f3827681f5915497d", "score": "0.6092402", "text": "@DISPID(-2147417603)\n @PropGet\n com4j.Com4jObject constructor();", "title": "" }, { "docid": "568c6a875432c8984b475540db0d3ee7", "score": "0.60906446", "text": "public tn(String paramString, ho paramho)\r\n/* 12: */ {\r\n/* 13:11 */ super(paramString, paramho);\r\n/* 14: */ }", "title": "" }, { "docid": "b008cac4d22d206b6f7e576b47ec887d", "score": "0.608984", "text": "private NaturePackage() {}", "title": "" }, { "docid": "20b8164c50a0699b1a402f85998b681a", "score": "0.6083134", "text": "public Node(){}", "title": "" } ]
c74fcd7a79141a0f5569992e2ceb551c
Same graph as above, but now with 1 disallowed flight path
[ { "docid": "d1c20bcd9688909d6f138bf6d9d1f73b", "score": "0.6040254", "text": "@Test\n public void triangleTownImpossible() {\n List<Map<Integer, Integer>> graph = new ArrayList<>();\n for (int x = 0; x < 6; x++) graph.add(new HashMap<>());\n graph.get(0).put(1, 1);\n graph.get(0).put(2, 1);\n graph.get(1).put(2, 2);\n graph.get(1).put(3, 3);\n graph.get(3).put(4, 2);\n graph.get(3).put(5, 1);\n graph.get(4).put(5, 1);\n Set<Path> solution = new HashSet<>();\n solution.add(new Path(0, 2, 1));\n solution.add(new Path(1, 2, 2));\n solution.add(new Path(1, 3, 3));\n solution.add(new Path(3, 5, 1));\n solution.add(new Path(4, 5, 1));\n Set<Path> forbidden = new HashSet<>();\n forbidden.add(new Path(0, 1, 1));\n Assert.assertEquals(solution, Solution.relocateTheOwls(graph, forbidden));\n }", "title": "" } ]
[ { "docid": "3de52a82cc72a24092289ad196317c31", "score": "0.5870977", "text": "Path shortestComplexPath(Tile to) {\n Path p = new Path(this);//vertek van deze node\n ArrayList<Tile> goals = new ArrayList<Tile>();\n if(GameData.isPassable(to)){\n goals.add(to);\n }else{\n Logger.log(\"doel niet bereikbaar\");\n return null;\n }\n if(goals.contains(this) && GameData.isPassableOnTurn(this, GameData.currentturn()+1)){\n Logger.log(\"sta stil\");\n p = p.push(this);//sta stil\n return p;\n }\n //TODO: build connectivity map\n \n ArrayList<IntPath> memory = new ArrayList<IntPath>();\n HashSet<IntTile> beenthere = new HashSet<IntTile>();\n beenthere.add(new IntTile(this, GameData.currentturn()));\n IntPath start = new IntPath(this.getManhattenDistanceTo(to), p, GameData.currentturn()+1);\n memory.add(start);\n while(true){\n if(memory.isEmpty()){//geen enkel mogelijk pad, zelfs niet stilstaan...\n Logger.log(\"Ik vind geen enkel mogelijk complex pad\");\n return null;\n }\n int turn = memory.get(0).nextturn;\n Path shortest = memory.get(0).path;\n memory.remove(0);\n List<Tile> borders = shortest.getLastTile().getPassableBorderingTilesOnTurn(turn);\n if(GameData.isPassableOnTurn(shortest.getLastTile(), turn)){\n borders.add(shortest.getLastTile());\n }\n for(IntTile it:beenthere){\n if(it.turn==turn){\n borders.remove(it.tile);\n }\n }\n Collections.shuffle(borders);\n for(Tile b:borders){\n Path newpath = shortest.push(b);\n if(goals.contains(b)){\n //Logger.log( \"memory:\"+memory.size());\n Logger.log(\"Doel bereikt\");\n return newpath; //de eerste keer dat we uitkomen, hebben we bij benadering het beste pad\n }\n int estimatedtotaldistance = newpath.getDistance() + b.getManhattenDistanceTo(to);\n IntPath ip = new IntPath(estimatedtotaldistance, newpath, turn+1);\n int insert = Collections.binarySearch(memory, ip);\n if(insert<0){\n insert = -insert-1;\n }\n memory.add(insert, ip);\n beenthere.add(new IntTile(b, turn));\n }\n }\n }", "title": "" }, { "docid": "5d9b302f36feacee2a171862c9efbe54", "score": "0.5847101", "text": "Path setPath() {\n/* 885 */ setDebug(this.debug);\n/* 886 */ boolean finished = false;\n/* */ \n/* 888 */ PathTile now = this.finish;\n/* 889 */ PathTile stop = this.start;\n/* 890 */ this.pList = new LinkedList<>();\n/* 891 */ PathTile lastCurrent = now;\n/* */ \n/* 893 */ while (!finished) {\n/* */ \n/* */ \n/* */ \n/* 897 */ this.pList.add(now);\n/* */ \n/* 899 */ PathTile next = findLowestDist(this.start, now);\n/* 900 */ if (lastCurrent.equals(next)) {\n/* */ \n/* 902 */ finished = true;\n/* 903 */ logger.log(Level.WARNING, \"Loop in heuristicastar.\");\n/* */ } \n/* 905 */ lastCurrent = now;\n/* 906 */ now = next;\n/* 907 */ if (now.equals(stop)) {\n/* */ \n/* 909 */ if (Math.abs(lastCurrent.getTileX() - now.getTileX()) > 1 || \n/* 910 */ Math.abs(lastCurrent.getTileY() - now.getTileY()) > 1)\n/* 911 */ this.pList.add(now); \n/* 912 */ finished = true;\n/* */ } \n/* */ } \n/* 915 */ LinkedList<PathTile> inverted = new LinkedList<>();\n/* 916 */ for (Iterator<PathTile> it = this.pList.iterator(); it.hasNext();)\n/* */ {\n/* 918 */ inverted.addFirst(it.next());\n/* */ }\n/* */ \n/* 921 */ Path path = new Path(inverted);\n/* */ \n/* 923 */ setDebug(false);\n/* 924 */ return path;\n/* */ }", "title": "" }, { "docid": "cf76ff56e13fa333a5e57e4a16441845", "score": "0.58239114", "text": "public List<Edge> findPath(Node start) {\t\t\n\t\tComparator<Trip> fScorecomparator = new Comparator<Trip>() {\n @Override\n public int compare(Trip o1, Trip o2) {\n if (o1.getTripFCost() < o2.getTripFCost()) return -1;\n if (o1.getTripFCost() > o2.getTripFCost()) return 1;\n return 0;\n }\n };\n\n //openSET\n\t\tfinal PriorityQueue<Trip> PQTrip = new PriorityQueue<Trip>(fScorecomparator);\n\t\t//closeSET\n\t\tSet<Trip> exploredTrips = new HashSet<Trip>();\n\n\t\t//put starting node into queue\n\t\tint GCost = calculateGCost(null);\n\t\tint FCost = calculateFCost(GCost, listOfShipment);\n\t\tTrip newT = new Trip(listOfShipment, null, GCost, FCost, null,start, null);\n\t\tPQTrip.add(newT);\n\t\texploredTrips.add(newT);\n\n\t\twhile(!PQTrip.isEmpty()){\n\t\t\tTrip current = PQTrip.poll();\n\t\t\tNode currentNode = current.getTo();\n\t\t\tnodesExpanded++; // pop queue = nodes expanded + 1;\n\t\t\t\n\t\t\t//Run these statements after the first time. \n\t\t\tif(!PQTrip.isEmpty()) {\n\t\t\t\tfor(Edge e: current.getTripPath()) if(current.getListOfUncompletedShipment().contains(e)){\n\t\t\t\t\tcurrent.removeUncompletedShipment(e);\n\t\t\t\t}\n\t\t\t\texploredTrips.add(current);\n\t\t\t\tif(current.getListOfUncompletedShipment().size() == 0) {\n\t\t\t\t\treturn reorderPath(current); \n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(Edge e: current.getListOfUncompletedShipment()) {\n\t\t\t\tNode shipmentFrom = g.edgeFrom(e);\n\t\t\t\tNode shipmentTo = g.edgeTo(e);\n\t\t\t\tList<Edge> currentToShipment = new ArrayList<Edge>();\n\t\t\t\tif(!g.getNodeName(currentNode).equals(g.getNodeName(shipmentFrom)) ) {\n\t\t\t\t\tEdge currentToFrom = g.findEdge(currentNode, shipmentFrom);\n\t\t\t\t\tcurrentToShipment.add(currentToFrom);\n\t\t\t\t}\n\t\t\t\tcurrentToShipment.add(e);\n\t\t\t\t\n\t\t\t\tArrayList<Edge> clone = (ArrayList<Edge>) current.getListOfUncompletedShipment().clone();\n\t\t\t\tGCost = calculateGCost(reorderPath(current)) + calculateGCost(currentToShipment);\n\t\t\t\tFCost = calculateFCost(GCost, clone);\n\t\t\t\tnewT = new Trip(clone, currentToShipment, GCost, FCost,currentNode, shipmentTo, current);\n\t\t\t\t\n\t\t\t\tif(exploredTrips.contains(newT) && current.getTripFCost() >= FCost) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if(!PQTrip.contains(newT)|| current.getTripFCost() < FCost){\n\t\t\t\t\tif(PQTrip.contains(newT)) {\n\t\t\t\t\t\tPQTrip.remove(newT);\n\t\t\t\t\t}\n\t\t\t\t\tPQTrip.add(newT);\n\t\t\t\t}\t\n\n\t\t\t}\n\t\t}\t\t\n\t\treturn null; \t\n\t}", "title": "" }, { "docid": "ae5854c16276080899d1cdf4f27e4153", "score": "0.57051855", "text": "public boolean changePath() {\n\t\tif (currentPath != null && currentPath.size() > 0) {\n\n\t\t\tfor (int i = 0; i < currentPath.size(); i++) {\n\t\t\t\tPathNode pn = currentPath.get(i);\n\t\t\t\tif (pn.getTimeWindow() != null)\n\t\t\t\t\tTerminal.getInstance().unreserve(pn.getLocation().getRoad().getId(), this.getId(), pn.getTimeWindow());\n\t\t\t}\n\t\t\t// terminal.unreserve(currentLocation.getRoad().getId(), this.id);\n\t\t}\n\t\tif (currentDestination != null) {\n\t\t\tRouting rr = getRouting();\n\t\t\ttry {\n\n\t\t\t\tTime t = TimeScheduler.getInstance().getTime();\n\t\t\t\tPath newPath = rr.getShortestPath(currentLocation, currentDestination, t);\n\t\t\t\tboolean b = newPath.reserve();\n\t\t\t\twhile (!b) {\n\t\t\t\t\tSystem.out.println(roadStartTime + \"> CAN'T RESERVE PATH : \\n\" + newPath+\" @\"+t);\n\t\t\t\t\tt.add(0,0,1);\n\t\t\t\t\tnewPath = rr.getShortestPath(currentLocation, currentDestination, t);\n\t\t\t\t\tb = newPath.reserve();\n\t\t\t\t\t//return false;\n\t\t\t\t\t//\t\t\t\t\tnew Exception().printStackTrace();\n\t\t\t\t\t//\t\t\t\t\t//Try to recompute\n\t\t\t\t\t//\t\t\t\t\tnewPath = rr.getShortestPath(currentLocation, currentDestination, TimeScheduler.getInstance().getTime());\n\t\t\t\t\t//\t\t\t\t\tnewPath.reserve();\n\t\t\t\t}\n\t\t\t\tcurrentPath = newPath;\n\t\t\t\troadStartTime = TimeScheduler.getInstance().getTime();\n\t\t\t\tdouble waitTimeBefore = waitTime;\n\t\t\t\tboolean directionBefore = currentLocation.getDirection();\n\n\t\t\t\tLocation l2;\n\t\t\t\tif (currentPath.size() > 0) {\n\t\t\t\t\tl2 = currentPath.peek().getLocation();\n\t\t\t\t} else\n\t\t\t\t\tl2 = currentDestination;\n\n\t\t\t\tif (currentPath.size() == 1) {\n\t\t\t\t\tif (currentLocation.getRoad().isDirected() == false) {\n\t\t\t\t\t\tif (currentLocation.getDirection() == l2.getDirection()) {\n\n\t\t\t\t\t\t\t// Demi tour\n\t\t\t\t\t\t\twaitTime += model.getSpeedCharacteristics().getTurnBackTime();\n\t\t\t\t\t\t\tturnBack = true;\n\t\t\t\t\t\t\tcurrentLocation.setDirection(!l2.getDirection());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * else{ System.out.println(\"In good direction !\");\n\t\t\t\t\t\t * }\n\t\t\t\t\t\t */\n\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\tif (currentLocation.getRoad().getId().equals(l2.getRoad().getId())) {\n\t\t\t\t\t\tif (currentLocation.getRoad().isDirected() == false) {\n\t\t\t\t\t\t\tif (currentLocation.getDirection() != l2.getDirection()) {\n\n\t\t\t\t\t\t\t\t// Demi tour\n\t\t\t\t\t\t\t\twaitTime += model.getSpeedCharacteristics().getTurnBackTime();\n\t\t\t\t\t\t\t\tturnBack = true;\n\t\t\t\t\t\t\t\tcurrentLocation.setDirection(l2.getDirection());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (currentPath.getCost() == Double.POSITIVE_INFINITY) {\n\t\t\t\t\t// DO SOMETHING !!!\n\t\t\t\t\twaitTime = waitTimeBefore;\n\t\t\t\t\tcurrentLocation.setDirection(directionBefore);\n\t\t\t\t}\n\n\t\t\t} catch (NoPathFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tdestinationReached = true;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a71cc157871df751bcf2f26ce84b317a", "score": "0.57029873", "text": "public static void testPath(int currentNode){\r\n\tif(currentPath.get(currentPath.size() - 1) == 0) return;\r\n\r\n\tArrayList<Successor> currentNodeSuccessors = graph.getSuccessors(currentNode);\r\n\r\n\tif(debug)\r\n\t graph.printSuccessors(currentNode);\r\n\t\r\n\tfor(int i = 0; i < currentNodeSuccessors.size(); ++i){\r\n\r\n\t if(currentPath.get(currentPath.size() - 1) == 0){\r\n\t\tbreak;\r\n\t }\r\n\t \r\n\t int nextNode = minInDistance(currentNodeSuccessors);\r\n\r\n\t if(nextNode == -1){//current node does not have more successors without a visit\r\n\t\tcurrentPath.add(0);\r\n\t\tbreak;\r\n\t }else if(visited[nextNode] == 0 || visited[nextNode] == 2){\r\n\t\tcurrentPath.add(nextNode);\r\n\r\n\t\tif(nextNode > currentNode)\r\n\t\t currentDistance += currentNodeSuccessors.get(nextNode-1).distance;\r\n\t\telse\r\n\t\t currentDistance += currentNodeSuccessors.get(nextNode).distance;\r\n\t\t\r\n\t\t//these two conditional check if the next node is a valid node\t\t\r\n\t\tif(inValidTime()){\r\n\t\t if(isValidPath()){\r\n\r\n\t\t\tif(graph.getNode(nextNode).getType() == 'c'){\r\n\t\t\t visited[nextNode] = 1;\r\n\t\t\t numOfVisitedClients++;\r\n\t\t\t}\r\n\t\t\telse{//it is an station\r\n\t\t\t \r\n\t\t\t visited[nextNode] = 2; //station type\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(debug){\r\n\t\t\t System.out.println(\"Adding node: \" + nextNode);\r\n\t\t\t System.out.println(\"Path valid so far: \" + currentPath.toString());\r\n\t\t\t System.out.println(\"Num of visited so far: \" + numOfVisitedClients);\r\n\t\t\t}\r\n\t\t \r\n\t\t\ttestPath(nextNode);\r\n\t\t }else{//if the node is not valid\r\n \r\n\t\t\tif(debug)\r\n\t\t\t System.out.println(\"Node: \" + nextNode\r\n\t\t\t\t\t + \" IS NOT VALID fot the currentPath: \" + currentPath.toString());\r\n\t\t \r\n\t\t\tcurrentPath.remove(currentPath.size() - 1);\r\n\t\t }\r\n\t\t}else{ //if there are no more reachable nodes\r\n\t\t currentPath.remove(currentPath.size() - 1);\r\n\t\t currentPath.add(0);\r\n\t\t currentDistance = 0.0;\r\n\t\t break;\r\n\t\t}\r\n\t }\r\n\t}\r\n }", "title": "" }, { "docid": "1486f84596e06a388d22c4c4d957ab33", "score": "0.56883234", "text": "public void flagPath(List<Direction> path, Coord start);", "title": "" }, { "docid": "4595322528336e404ce0c6fbe18fccca", "score": "0.5685712", "text": "protected void tracePathsInStateSpace(ArrayList<Transition> currentPath,\n\t\t\tStateSpace coverabilityGraph, State currentState,\n\t\t\tHashSet<ModelGraphEdge> passedEdges,\n\t\t\tHashSet<ModelGraphEdge> blockedEdges) throws Exception {\n\n\t\t// Message.add(\"Path \" + temp + \" - State \" +\n\t\t// currentState.getIdentifier() + \" \" + currentState.getLabel(),\n\t\t// Message.DEBUG);\n\t\t// System.out.println(\"Path \" + temp + \" - Current path length: \" +\n\t\t// currentPath.size() + \" - Blocked Edges: \" + blockedEdges.size() +\n\t\t// \"Passed Edges: \" + passedEdges.size());\n\n\t\t// abort if user cancelled the log replay\n\t\tif (myProgress.isCanceled() == true) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"State Space traversal aborted while Processing Path No.\"\n\t\t\t\t\t\t\t+ temp);\n\t\t} else if (currentState.outDegree() > 0) {\n\t\t\tIterator outgoingEdges = currentState.getOutEdges().iterator();\n\t\t\t// prevent infinite cycles in the case that outdegree > 0\n\t\t\t// but these edges can all not be followed because they are blocked\n\t\t\tboolean noPathTracable = true;\n\t\t\twhile (outgoingEdges.hasNext()) {\n\t\t\t\tModelGraphEdge currentEdge = (ModelGraphEdge) outgoingEdges\n\t\t\t\t\t\t.next();\n\t\t\t\tTransition associatedTransition = (Transition) currentEdge.object;\n\t\t\t\t// only follow an edge that has not been followed before in\n\t\t\t\t// order to prevent infinite loops\n\t\t\t\tif (passedEdges.contains(currentEdge) == false) {\n\t\t\t\t\tnoPathTracable = false;\n\t\t\t\t\t// remember to prevent infinite loops\n\t\t\t\t\tHashSet<ModelGraphEdge> extendedPassedEdges = new HashSet<ModelGraphEdge>(\n\t\t\t\t\t\t\tpassedEdges);\n\t\t\t\t\textendedPassedEdges.add(currentEdge);\n\t\t\t\t\t// remember firing sequence so far\n\t\t\t\t\tArrayList<Transition> extendedFiringSequence = new ArrayList<Transition>(\n\t\t\t\t\t\t\tcurrentPath);\n\t\t\t\t\textendedFiringSequence.add(associatedTransition);\n\t\t\t\t\tState nextState = (State) currentEdge.getDest();\n\t\t\t\t\t// recursive call\n\t\t\t\t\ttracePathsInStateSpace(extendedFiringSequence,\n\t\t\t\t\t\t\tcoverabilityGraph, nextState, extendedPassedEdges,\n\t\t\t\t\t\t\tblockedEdges);\n\t\t\t\t}\n\t\t\t\t// second check: every edge is traced at most 2 times!\n\t\t\t\t// (afterwards it becomes blocked)\n\t\t\t\telse if (blockedEdges.contains(currentEdge) == false) {\n\t\t\t\t\tnoPathTracable = false;\n\t\t\t\t\t// remember to prevent infinite loops\n\t\t\t\t\tHashSet<ModelGraphEdge> extendedBlockedEdges = new HashSet<ModelGraphEdge>(\n\t\t\t\t\t\t\tblockedEdges);\n\t\t\t\t\textendedBlockedEdges.add(currentEdge);\n\t\t\t\t\tArrayList<Transition> extendedFiringSequence = new ArrayList<Transition>(\n\t\t\t\t\t\t\tcurrentPath);\n\t\t\t\t\textendedFiringSequence.add(associatedTransition);\n\t\t\t\t\tState nextState = (State) currentEdge.getDest();\n\t\t\t\t\t// recursive call\n\t\t\t\t\ttracePathsInStateSpace(extendedFiringSequence,\n\t\t\t\t\t\t\tcoverabilityGraph, nextState, passedEdges,\n\t\t\t\t\t\t\textendedBlockedEdges);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (noPathTracable == true) { // is the same as if there were no\n\t\t\t\t// further outedges in this state\n\t\t\t\tevaluatePath(currentPath);\n\t\t\t}\n\t\t} else {\n\t\t\t// evaluate this path according to analysis configuration\n\t\t\tevaluatePath(currentPath);\n\t\t}\n\t}", "title": "" }, { "docid": "f876f6e9c337268437fa7b63c740e9e1", "score": "0.5663624", "text": "public static void TSP(){\n\tArrayList<Integer> superPath = new ArrayList<Integer>();\r\n\t//successors of the depot node\r\n\tArrayList<Successor> currentNodeSuccessors;\r\n\t//holds the depot node id\r\n\tint depot;\r\n\t//hols the id of the current node\r\n\tint currentNode;\r\n\t//control the number of routes found so far\r\n\tint routes = 0;\r\n\r\n\tdepot = 0; //graph[0] is equal to the depot\r\n\tcurrentPath.add(depot);\r\n\tvisited[depot] = 1;\r\n\t\r\n\tcurrentNodeSuccessors = graph.getSuccessors(depot);\r\n\t\r\n\tif(debug){\r\n\t System.out.println(\"Adding node: \" + depot);\r\n\t graph.printSuccessors(depot);\r\n\t}\r\n\r\n\t//for each successor of depot\r\n\tfor(int i = 0; i < currentNodeSuccessors.size(); i++){\r\n\r\n\t if(numOfVisitedClients == numberOfClients){\r\n\t\tSystem.out.println(\"Clients visited: \" + numOfVisitedClients);\r\n\t\tbreak;\r\n\t }\r\n\r\n\t timeTakenByCar = 0.0;\r\n\t currentNode = minInDistance(currentNodeSuccessors);\r\n\r\n\t if(currentNode != -1 && (visited[currentNode] == 0 || visited[currentNode] == 2)){\r\n\t\tcurrentPath.add(currentNode);\r\n\t\tcurrentDistance += currentNodeSuccessors.get(currentNode-1).distance;\r\n\r\n\t\t//these two conditional check if the next node is a valid node\r\n\t\tif(inValidTime()){\r\n\t\t if(isValidPath()){\r\n\r\n\t\t\tif(graph.getNode(currentNode).getType() == 'c'){\r\n\t\t\t visited[currentNode] = 1;\r\n\t\t\t numOfVisitedClients++;\r\n\t\t\t}\r\n\t\t\telse{ //it is an station\r\n\t\t\t \r\n\t\t\t visited[currentNode] = 2; //station type\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(debug){\r\n\t\t\t System.out.println(\"Adding node: \" + currentNode);\r\n\t\t\t System.out.println(\"Path valid so far: \" + currentPath.toString());\r\n\t\t\t System.out.println(\"Num of visited so far: \" + numOfVisitedClients);\r\n\t\t\t}\r\n\t\t\ttestPath(currentNode);\r\n\t\t }else{ //if the node is not valid\r\n\t\t\tif(debug)\r\n\t\t\t System.out.println(\"Node: \" + currentNode\r\n\t\t\t\t\t + \" IS NOT VALID fot the currentPath: \" + currentPath.toString());\r\n\t\t \r\n\t\t\tcurrentPath.remove(currentPath.size() - 1);\t\t\r\n\t\t\tcontinue;\r\n\t\t }\r\n\t\t}else{\r\n\t\t System.out.println(\"Unreachable node: \" + currentPath.get(currentPath.size() - 1));\r\n\t\t}\r\n\t \r\n\t\tif(isHamiltonianPath()){\r\n\t\t System.out.println(\"Route \" + routes + \": \" + currentPath.toString());\r\n\t\t System.out.println(\"Time taken by car: \" + routes + \" is: \" + timeTakenByCar);\r\n\t\t System.out.println(\"\");\r\n\t\t routes++;\r\n\t\t}\r\n\t }else\r\n\t\tcontinue;\r\n\r\n\t //reset time, battery, and distance for the next car\r\n\t currentDistance = 0.0;\r\n\t batteryCapacityTemp = batteryCapacity;\r\n\t globalTime = 0.0;\r\n\r\n\t //adds this path to the superpath\r\n\t superPath.addAll(0, currentPath);\r\n\t int pathSize = currentPath.size() - 1;\r\n\t //erases the currentPath\r\n\t for(int x = pathSize; x > 0; x--)\r\n\t\tcurrentPath.remove(x);\r\n\t}\r\n\r\n\tif(trySolution(superPath))\r\n\t System.out.println(\"Valid Solution\");\r\n\telse\r\n\t System.out.println(\"Invalid Solution :(\");\r\n }", "title": "" }, { "docid": "03cfe5c1d49e1ff876d51751359b81b6", "score": "0.5552277", "text": "private void standard_trip(){\n\t\tArrayList<Location> itinerary_copy=new ArrayList<Location>();\n\t\tLocation current=getItinerary().get(0);\n\t\tdouble min_distance=getLegDistance(current,getItinerary().get(1));\n\t\titinerary_copy.add(current);\n\t\tgetItinerary().remove(current);\n\t\tint index=1;\n\t\twhile(getItinerary().size()!=0){\n\t\t\tfor(int i=0;i<getItinerary().size();i++){\n\t\t\t\tdouble distance=getLegDistance(current,getItinerary().get(i));\n\t\t\t\tif(distance<=min_distance){\n\t\t\t\t\tmin_distance=distance;\n\t\t\t\t\tindex=i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLocation oldCurrent = current;\n\t\t\tcurrent=getItinerary().get(index);\n\t\t\titinerary_copy.add(current);\n\t\t\tEdge addingEdge = new Edge(oldCurrent,current);\n\t\t\taddingEdge.setDistance(min_distance);\n\t\t\tedges.add(addingEdge);\n\t\t\tgetItinerary().remove(current);\n\t\t\tif(getItinerary().size()!=0)\n\t\t\tmin_distance=getLegDistance(current,getItinerary().get(0));\n\t\t}\n//\t\tfor(Location L:itinerary_copy){\n//\t\t\tSystem.out.println(L.city);\n//\t\t}\n\t\tsetItinerary(itinerary_copy);\n\t}", "title": "" }, { "docid": "19cee6a064ca4cec99bb8223689b430f", "score": "0.5544423", "text": "public synchronized void loadDependentPathways(final List<ICaleydoGraphItem> alVertex)\n \t{\n \n \t\tIterator<ICaleydoGraphItem> iterPathwayGraphItem = alVertex.iterator();\n \t\tIterator<IGraphItem> iterIdenticalPathwayGraphItemRep = null;\n \n \t\tIGraphItem pathwayGraphItem;\n \t\tint iPathwayID = 0;\n \n \t\twhile (iterPathwayGraphItem.hasNext())\n \t\t{\n \t\t\tpathwayGraphItem = iterPathwayGraphItem.next();\n \n \t\t\tif (pathwayGraphItem == null)\n \t\t\t{\n \t\t\t\t// generalManager.logMsg(\n \t\t\t\t// this.getClass().getSimpleName() + \" (\" + iUniqueID\n \t\t\t\t// + \"): pathway graph item is null. \",\n \t\t\t\t// LoggerType.VERBOSE);\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\titerIdenticalPathwayGraphItemRep = pathwayGraphItem.getAllItemsByProp(\n \t\t\t\t\tEGraphItemProperty.ALIAS_CHILD).iterator();\n \n \t\t\twhile (iterIdenticalPathwayGraphItemRep.hasNext())\n \t\t\t{\n \t\t\t\tiPathwayID = ((PathwayGraph) iterIdenticalPathwayGraphItemRep.next()\n \t\t\t\t\t\t.getAllGraphByType(EGraphItemHierarchy.GRAPH_PARENT).toArray()[0])\n \t\t\t\t\t\t.getId();\n \n \t\t\t\t// Only add pathway if it is not loaded yet\n \t\t\t\tif (!generalManager.getPathwayManager().isPathwayVisible(iPathwayID))\n \t\t\t\t\tiAlUninitializedPathwayIDs.add(iPathwayID);\n \t\t\t}\n \t\t}\n \n \t\tif (iAlUninitializedPathwayIDs.isEmpty())\n \t\t\treturn;\n \n \t\t// Disable picking until pathways are loaded\n \t\tgeneralManager.getViewGLCanvasManager().getPickingManager().enablePicking(false);\n \n \t\t// Zoom out of the bucket when loading pathways\n \t\tif (bucketMouseWheelListener.isZoomedIn())\n \t\t\tbucketMouseWheelListener.triggerZoom(false);\n \n \t\t// Turn on busy mode\n \t\tfor (AGLEventListener tmpGLEventListener : GeneralManager.get()\n \t\t\t\t.getViewGLCanvasManager().getAllGLEventListeners())\n \t\t{\n \t\t\tif (!tmpGLEventListener.isRenderedRemote())\n \t\t\t\ttmpGLEventListener.enableBusyMode(true);\n \t\t}\n \n \t\t// iSlerpFactor = 0;\n \t}", "title": "" }, { "docid": "255eed4a3cb46c594cb8d3e5f5d17dca", "score": "0.5542669", "text": "public void calcRouteMode(FlightGraph airlines) {\n String userInput;\n String userInput2;\n boolean validOrigin = false;\n boolean validDestination = false;\n System.out.println(\"Welcome to the Shortest Route Calculator!\");\n System.out.println();\n System.out.println(\"Current Airports: \");\n //System.out.println(airlines.getAirportsList().toString());\n System.out.println(showAirports(flights));\n\n System.out.println(\"Please input the name of origin airport:\");\n userInput = scanner.nextLine();\n System.out.println(\"Please input the name of destination airport:\");\n userInput2 = scanner.nextLine();\n /**\n * this for loop checks if the airports inputted exist in the current directory of airports\n */\n for (int i = 0; i < airlines.getAirportsList().size(); i++) {\n if (airlines.getAirportsList().get(i).equals(userInput)) {\n validOrigin = true;\n }\n if (airlines.getAirportsList().get(i).equals(userInput2)) {\n validDestination = true;\n }\n }\n if (validOrigin && validDestination) {\n try {\n String answer = airlines.getShortestPath(userInput, userInput2);\n System.out.println();\n System.out.println(\"Calculating...\");\n System.out.println(answer);\n }catch (NoSuchElementException e1){\n System.out.println();\n System.out.println(\"-------------------------------------------------------------------------\");\n System.out.println(\"ERROR: there is no connection between these two airports, please re-enter\");\n System.out.println(\"-------------------------------------------------------------------------\");\n System.out.println();\n calcRouteMode(flights);\n }\n System.out.println();\n } else {\n System.out.println(\n \"Please re-input the origin and destination airports, airports cannot be found in directory\");\n calcRouteMode(flights);\n }\n System.out.println(\"Press 'c' to calculate again or 'b' to exit!\");\n String input = \"\";\n while (!input.equals(\"c\") && !input.equals(\"b\")) {\n input = scanner.nextLine();\n if (input.equals(\"c\")) {\n calcRouteMode(flights);\n } else if (input.equals(\"b\")) {\n System.out.println();\n baseMenuDisplay();\n } else {\n System.out.println();\n System.out.println(\"Please enter either 'c' or 'b'.\");\n }\n }\n }", "title": "" }, { "docid": "5e6af72f239c7c928d29507498597f5d", "score": "0.5524578", "text": "private void DFS(Hub v, ArrayList<Hub> map,Hub dest, ArrayList<Highway> path) \n { \n map.add(v); \n if(dest.equals(v))\n {\n return;\n }\n \n for(Highway a: v.getHighways()) \n { \n Hub n = a.getEnd(); \n if (!map.contains(n)) \n { \n DFS(n,map,dest,path); \n }\n if(map.contains(dest))\n {\n path.add(a);\n return;\n }\n\n } \n }", "title": "" }, { "docid": "d5e408faa843179f032c582dd37341d6", "score": "0.55052614", "text": "public static boolean isValidPath(){\r\n\tfor(int i = 0; i < currentPath.size(); i++){\r\n\t for(int j = 0; j < currentPath.size(); j++){\r\n\t\tif(i != j && currentPath.get(i) == currentPath.get(j))\r\n\t\t if(graph.getNode(i).getType() == 'c')\r\n\t\t\treturn false;\r\n\t }\r\n\t}\r\n\treturn true;\r\n }", "title": "" }, { "docid": "1d5c066197f81dbb6f271b496ea4bcfb", "score": "0.54956114", "text": "List<Point> freePath(Point start, Point target, boolean standing) {\n\n // let the caller deal with this bad decision\n if (ground[target.x][target.y] != Const.GROUND_EMPTY) {\n return Collections.emptyList();\n }\n\n Queue<Point> frontier = new LinkedList<>();\n frontier.add(start);\n Map<Point, Point> cameFrom = new HashMap<>();\n cameFrom.put(start, null);\n\n while (!frontier.isEmpty()) {\n Point current = frontier.remove();\n\n // early exit (we are looking only for one destination)\n if (current.equals(target)) {\n break;\n }\n\n List<Point> neighbors = neighbors12(current, standing);\n\n for (Point next : neighbors) {\n if (!cameFrom.containsKey(next)) {\n frontier.add(next);\n cameFrom.put(next, current);\n }\n }\n }\n\n// log(\"found path from %s to %s\", start, target);\n\n // found the path, now unwrap it\n Point current = target;\n List<Point> path = new ArrayList<>();\n while (!current.equals(start)) {\n path.add(current);\n current = cameFrom.get(current);\n if (current == null) {\n // this may happen if the destination is unreachable\n return Collections.emptyList();\n }\n }\n path.add(start);\n Collections.reverse(path);\n\n String pathString = path.stream().map(Point::toString)\n .collect(Collectors.joining(\"-\"));\n log(\" => path from %s to %s is %s\", start, target, pathString);\n\n return path;\n }", "title": "" }, { "docid": "2f205a1353831a604ade093ce9e7daef", "score": "0.54877526", "text": "private List<PolyLine> routeFromNonArrangedEdgeSet(final List<PolyLine> linesInRoute)\n {\n // list to store all routes created\n final List<LinkedList<PolyLine>> routes = new ArrayList<>();\n // form the first route segment\n final List<LinkedList<PolyLine>> routeInformation = this.routeSet(linesInRoute);\n routes.add(routeInformation.get(0));\n List<PolyLine> membersLeft = new ArrayList<>(routeInformation.get(1));\n\n while (!membersLeft.isEmpty())\n {\n final List<LinkedList<PolyLine>> memberRouteInformation = this.routeSet(membersLeft);\n routes.add(memberRouteInformation.get(0));\n membersLeft = memberRouteInformation.get(1);\n }\n\n final List<PolyLine> disconnectedMembers = new ArrayList<>();\n\n if (routes.size() > 1)\n {\n disconnectedMembers.addAll(this.routeSetDisconnected(routes));\n }\n\n return disconnectedMembers;\n }", "title": "" }, { "docid": "80e36a607640251d8496108f7c9626e2", "score": "0.54764724", "text": "public static void main(String[] args) throws IOException {\n\n Route route = RoutesParser.INSTANCE.routes.get(1550L);\n System.out.println(\"Route\"+route.shortName);\n System.out.println(route.name);\n System.out.println(route.isCircular);\n\n System.out.println(\"--------------------------\");\n// Path.createBusWay(route).print(System.out);\n System.out.println(\"--------------------------\");\n\n\n Node __src = new Node(0, 29.864128, 59.880324); //stary petergof\n// Node __src = new Node(0, 30.679321289062496,59.89720326334451);\n Node __dst = new Node(0, 29.925383, 59.86466);\n// Node __dst = new Node(0, 30.146484374999996,60.056615845305764);\n\n System.out.println(\"Building graph:\");\n Graph[] graph = new Graph[1];\n printTime(() -> graph[0] = OsmParser.INSTANCE.graph);\n\n System.out.println(\"Find src:\");\n final Node src[] = new Node[1];\n printTime(() -> src[0] = graph[0].findNodeOrEdge(__src, 100));\n\n System.out.println(\"Find dst:\");\n final Node dst[] = new Node[1];\n printTime(() -> dst[0] = graph[0].findNodeOrEdge(__dst, 100));\n\n System.out.println(\"__src:\" + __src);\n System.out.println(\"src:\" + src[0]);\n\n System.out.println(\"__dst:\" + __dst);\n System.out.println(\"dst:\" + dst[0]);\n\n\n System.out.println(\"\");\n System.out.println(\"AStar:\");\n printTime(() -> graph[0].aStar(src[0], dst[0]).print(System.out));\n\n System.in.read();\n System.out.println(\"\");\n System.out.println(\"Djikstra:\");\n printTime(() -> graph[0].djikstra(src[0], dst[0]).print(System.out));\n\n System.out.println(\"Add aoe obstacle:\");\n printTime(() -> graph[0].addObstacle(new Obstacle(30.3125342000, 59.9371094000, true)));\n\n System.out.println(\"AStar:\");\n printTime(() -> graph[0].aStar(src[0], dst[0]).print(System.out));\n\n System.out.println(\"Obstacles:\");\n System.out.println((graph[0].allObstaclesSorted().toArray(new Obstacle[0])[0].print()));\n\n //remove\n for (Obstacle o: graph[0].allObstaclesSorted()) graph[0].removeObstacle(o.id);\n System.out.println();\n System.out.println(\"Try way obstacle:\");\n Obstacle obs = new Obstacle(30.3125342000, 59.9371094000, false);\n printTime(() -> {\n new Path(graph[0].findClosestPedestrianEdge(obs).orElse(null)).print(System.out);\n });\n\n System.out.println();\n System.out.println(\"Add way obstacle:\");\n printTime(() -> { graph[0].addObstacle(obs);});\n\n\n\n\n\n System.gc();\n System.in.read();\n }", "title": "" }, { "docid": "eb51683fab56344a955b6d855a87643b", "score": "0.5454645", "text": "public void showPath() {\t\t\n\t\t// clear labels\n\t\tfor (int i = 0; i < vertexList.length; i++)\n\t\t\tvertexList[i].label = ' ';\n\t\t\n\t\t// traverse back from end room to start room and mark solution path\n\t\tVertex v = vertexList[vertexList.length - 1];\n\t\twhile (v.parent != null) {\n\t\t\tv.label = '#';\n\t\t\tv = v.parent;\n\t\t}\n\t\tv.label = '#';\n\t}", "title": "" }, { "docid": "648fec5be7693f63d57fcd8d7bbbd520", "score": "0.543168", "text": "private void removeExtraPathsAndRecognition (Graph reducedForm, Set<IGraphComponent> removedVertex,\n List<IGraphPath> singleInstanceToInstancePaths, Set<Long> existingPathConceptIds,\n IGraphPath graphPathToRetain, List<IGraphComponent> usedVertices, String conceptName) {\n if (CollectionUtils.isEmpty(singleInstanceToInstancePaths) || graphPathToRetain == null) {\n return;\n }\n List<List<IGraphComponent>> pathsToRetain = new ArrayList<List<IGraphComponent>>(1);\n int pathToRetainStartIndex = 0;\n int pathToRetainLength = graphPathToRetain.getPathLength();\n\n // Add the partial paths to paths to retain list\n for (int pathToRetainEndIndex = 3; pathToRetainEndIndex <= pathToRetainLength;) {\n List<IGraphComponent> components = graphPathToRetain.getPartialPath(pathToRetainStartIndex,\n pathToRetainEndIndex);\n pathsToRetain.add(components);\n pathToRetainStartIndex = pathToRetainStartIndex + 2;\n pathToRetainEndIndex = pathToRetainEndIndex + 2;\n }\n\n for (List<IGraphComponent> pathToRetain : pathsToRetain) {\n DomainRecognition pathToRetainStartVertex = (DomainRecognition) pathToRetain.get(0);\n DomainRecognition pathToRetainEndVertex = (DomainRecognition) pathToRetain.get(2);\n for (IGraphPath graphPath1 : singleInstanceToInstancePaths) {\n // If path to retain and current path is same, then continue\n if (graphPath1.equals(graphPathToRetain) || graphPath1.intersectsWith(graphPathToRetain)) {\n continue;\n }\n\n reducedForm.removePath(graphPath1);\n\n int startIndex = 0;\n int pathLength = graphPath1.getPathLength();\n for (int endIndex = 3; endIndex <= pathLength;) {\n List<IGraphComponent> components = graphPath1.getPartialPath(startIndex, endIndex);\n DomainRecognition startVertex = (DomainRecognition) components.get(0);\n DomainRecognition endVertex = (DomainRecognition) components.get(2);\n startIndex = startIndex + 2;\n endIndex = endIndex + 2;\n\n // If start and end vertex are not of same concept, then continue\n if (!startVertex.getConceptName().equalsIgnoreCase(pathToRetainStartVertex.getConceptName())\n || !endVertex.getConceptName().equalsIgnoreCase(pathToRetainEndVertex.getConceptName())) {\n continue;\n }\n\n // If start vertex is the current single instance but start vertex is same as the selected end vertex\n if (pathToRetainStartVertex.getConceptName().equalsIgnoreCase(conceptName)\n && pathToRetainStartVertex.equals(endVertex)) {\n continue;\n } else if (pathToRetainEndVertex.getConceptName().equalsIgnoreCase(conceptName)\n && pathToRetainEndVertex.equals(startVertex)) {\n continue;\n }\n\n if (!usedVertices.contains(endVertex)) {\n removedVertex.add(endVertex);\n reducedForm.removeVertex(endVertex);\n }\n\n if (!usedVertices.contains(startVertex)\n && existingPathConceptIds.contains(startVertex.getConceptBEDId())) {\n removedVertex.add(startVertex);\n reducedForm.removeVertex(startVertex);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "a83f298ddd67c4e340935c17e625b364", "score": "0.54270726", "text": "@Override\n\tpublic ArrayList<String> shortestPath(Town sourceVertex, Town destinationVertex) {\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "eb547a345dd86e1071037b3450e6fdb3", "score": "0.54225624", "text": "private FlagTransferData routeForGaps(final Relation relation)\n {\n final List<String> instructionsAdd = new ArrayList<>();\n final EdgeLineData edgesPolyLines = this.polylineRouteRel(relation);\n final List<LineItem> edgesLines = edgesPolyLines.getEdgesLines();\n final List<PolyLine> allPolyLines = edgesPolyLines.getAllPolyLines();\n final List<AtlasEntity> edgesLinesFlagged = new ArrayList<>();\n\n if (allPolyLines.size() > 1)\n {\n final List<PolyLine> disconnectedMembers = this\n .routeFromNonArrangedEdgeSet(allPolyLines);\n\n if (!disconnectedMembers.isEmpty())\n {\n // add the edges and lines that are flagged\n for (int index = 0; index < allPolyLines.size(); index++)\n {\n if (disconnectedMembers.contains(allPolyLines.get(index)))\n {\n edgesLinesFlagged.add(edgesLines.get(index));\n }\n }\n\n instructionsAdd.add(this.getLocalizedInstruction(GAPS_IN_ROUTE_TRACK_INDEX,\n relation.getOsmIdentifier()));\n }\n }\n\n return new FlagTransferData(instructionsAdd, edgesLinesFlagged, null, null, null);\n }", "title": "" }, { "docid": "4ada65c3807919a10b2ed848df357264", "score": "0.5414095", "text": "private Path getOptimalPath(Node from, Node to) {\n\t\t// Not here\n\t\t\n\t\t//Sound.beepSequenceUp();\n\t\t//try {Thread.sleep(3000);} catch (InterruptedException e) {e.printStackTrace();}\n\t\t\n\t\t//if (from.getNeighbors().equals(null) || to.getNeighbors().equals(null)) {\n\t\t//\tSound.buzz();\n\t\t//\ttry {Thread.sleep(2000);} catch (InterruptedException e) {e.printStackTrace();}\n\t\t//\tSound.buzz();\n\t\t//\ttry {Thread.sleep(2000);} catch (InterruptedException e) {e.printStackTrace();}\n\t\t\t\n\t\t//}\n\t\t\n\t\tPath path = aStar.findPath(from, to);\n\t\t\n\t\ttry {\n\t\t\tWaypoint end = path.get(path.size() - 1);\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\tSound.beepSequence();\n\t\t\tSound.beepSequence();\n\t\t\tSound.beepSequence();\n\t\t\tthis.map.rebuildNeighbors();\n\t\t\tthis.map.restoreNeighbor(this.robot.getX(),this.robot.getY());\n\t\t\tpath = aStar.findPath(from, to);\n\t\t\t\n\t\t\ttry { Waypoint end = path.get(path.size() - 1); }\n\t\t\tcatch (NullPointerException e2) {\n\t\t\t\tthis.map.rebuildEdges();\n\t\t\t\tpath = aStar.findPath(from, to);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//try {Thread.sleep(2000);} catch (InterruptedException ie) {ie.printStackTrace();}\n\t\t\t\n\t\t}\n\t\t\n\t\t//Sound.twoBeeps();\n\t\t//try {Thread.sleep(1000);} catch (InterruptedException e) {e.printStackTrace();}\n\t\t//Sound.buzz();\n\t\t//try {Thread.sleep(3000);} catch (InterruptedException e) {e.printStackTrace();}\n\t\t\n\t\t\n\t\t// Check for null pointer not here\n\t\t//while (path.equals(null) || path.isEmpty() || !(path.get(path.size())) . ) {\n\t\t/*while (end.equals(null) || end.x != to.x && end.y != to.y) {\n\t\t\t//this.map.buildNeighbors();\n\t\t\t//path = aStar.findPath(from, to);\n\t\t\tSound.beepSequence();\n\t\t\tSound.beepSequence();\n\t\t\tSound.beepSequence();\n\t\t\ttry {Thread.sleep(2000);} catch (InterruptedException e) {e.printStackTrace();}\n\t\t}*/\n\t\t\n\t\treturn path;\n\t}", "title": "" }, { "docid": "4f3d5a778c01a631fd6e18c190c906db", "score": "0.53970677", "text": "public void taskOnePathing()\n {\n switch (pregameSetupTabData.startingLocation)\n {\n case kLeft:\n pathing.add(new Point(Constants.LEFT_STARTING_POSITION_X, Constants.LEFT_STARTING_POSITION_Y));\n pathing.add(new Point(Constants.LEFT_STARTING_POSITION_X, Constants.LEFT_STARTING_POSITION_Y + 36));\n break;\n case kRight:\n pathing.add(new Point(Constants.RIGHT_STARTING_POSITION_X, Constants.RIGHT_STARTING_POSITION_Y));\n pathing.add(new Point(Constants.RIGHT_STARTING_POSITION_X, Constants.RIGHT_STARTING_POSITION_Y + 36));\n break;\n case kCenter:\n pathing.add(new Point(Constants.CENTER_STARTING_POSITION_X, Constants.CENTER_STARTING_POSITION_Y));\n pathing.add(new Point(Constants.CENTER_STARTING_POSITION_X, Constants.CENTER_STARTING_POSITION_Y + 36));\n break;\n case kNone:\n break;\n }\n\n switch (pregameSetupTabData.task1Objective)\n {\n case kRocket:\n if (pregameSetupTabData.task1RocketHatch == RocketHatch.kFront)\n pathing.add(new Point(leftOrRight() * 200, 300));\n if (pregameSetupTabData.task1RocketHatch == RocketHatch.kBack)\n pathing.add(new Point(leftOrRight() * 200, 340));\n break;\n case kCargoShip:\n pathing.add(new Point(leftOrRight() * 100, 80));\n pathing.add(new Point(leftOrRight() * 100, 200));\n\n switch (pregameSetupTabData.task1CargoShip)\n {\n case kSideNear:\n pathing.add(new Point(leftOrRight() * 100, 210));\n break;\n\n case kSideMiddle:\n pathing.add(new Point(leftOrRight() * 100, 240));\n break;\n\n case kSideFar:\n pathing.add(new Point(leftOrRight() * 100, 280));\n break;\n }\n break;\n\n case kNothing:\n break;\n }\n }", "title": "" }, { "docid": "3dd72b2f393277ea1b8a65e045322e0c", "score": "0.5392935", "text": "private void computeIfPossibleTransition(PetriStateVertex state, int lastTransition){\n // Get list of transition possible from new state\n List<Integer> possibleTransition = getPossibleTransitions(state);\n\n // If list is not empty\n if(possibleTransition.isEmpty() == false){\n\n List<Integer> path = null;\n\n /* if(state.getRoute().contains(lastTransition)){\n List<Integer> tmpList = new LinkedList<>(state.getRoute());\n tmpList.add(lastTransition);\n path = transitionExistToRootFindNext(tmpList, lastTransition);\n }*/\n\n // Find if any of next possible transition is already on the route\n //if(path != null){\n for(Integer nTId : possibleTransition){\n // It might bee last transitions\n if(nTId == lastTransition){\n path = new LinkedList<>();\n path.add(lastTransition);\n break;\n }\n\n // or one from route\n if(state.getRoute().contains(nTId)){\n path = transitionExistToRoot(state.getRoute(), nTId, lastTransition);\n if(path != null)\n break;\n }\n }\n\n //}\n // If we find transition id we have loop\n if(path != null){\n\n // Calculate mark change on each place on the route so far\n int[] routeStateCount = new int[graph.getPlacesCount()];\n for(int k = 0; k < graph.getPlacesCount(); k++){\n routeStateCount[k] += tIncidenceMatrix[lastTransition][k];\n }\n for(int nTid : path){\n for(int k = 0; k < graph.getPlacesCount(); k++){\n routeStateCount[k] += tIncidenceMatrix[nTid][k];\n }\n }\n\n // List of bufers/collectors\n List<Integer> buferPlacesIds = new LinkedList<>();\n\n for(int k = 0; k < graph.getPlacesCount(); k++){\n // If status on place is positive it is collector\n if(routeStateCount[k] > 0 && tIncidenceMatrix[lastTransition][k] > 0){\n buferPlacesIds.add(k);\n }\n // but if any place has negative value it means\n // that the loop can be done only several times\n else if(routeStateCount[k] < 0 && graph.getIncidenceMatrix().sumPlaceChanges(k) < 0){\n buferPlacesIds.clear();\n break;\n }\n }\n\n // If we have at least one bufer\n if(buferPlacesIds.isEmpty() == false){\n // It is coverability graph\n isCoverabilityGraph = true;\n // Set bufer infinity as Integer max value\n for(int k : buferPlacesIds){\n state.updatePlaceMarksCount(k,Integer.MAX_VALUE);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "ac9f6c9f70b5a88e8362ee3612ef1b53", "score": "0.53785086", "text": "public void graphTransfer() {\r\n\r\n\t\tconnect = new boolean[numberOfCities * (T + 3)][numberOfCities * (T + 3)];\r\n\t\t// calculate distance\r\n\t\tdistance = new ArrayList<ArrayList<Edge>>();\r\n\t\tdistanceReverse = new ArrayList<ArrayList<Edge2>>();\r\n\r\n\t\t// only record Vst and O\r\n\t\tfor (int i = 0; i < numberOfCities * (T + 2); i++) {\r\n\t\t\tArrayList<Edge> templist = new ArrayList<Edge>();\r\n\t\t\tdistance.add(templist);\r\n\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < numberOfCities * (T + 3); i++) {\r\n\t\t\tArrayList<Edge2> templist2 = new ArrayList<Edge2>();\r\n\t\t\tdistanceReverse.add(templist2);\r\n\t\t}\r\n\r\n\t\t// add AT\r\n\t\tfor (int node = 0; node < numberOfCities; node++) {\r\n\t\t\tfor (int t = 0; t < T; t++) {\r\n\t\t\t\tEdge edge = new Edge();\r\n\t\t\t\tint nodeIndex = node * (T + 1) + t;\r\n\t\t\t\t\r\n\t\t\t\t//change cost to eliminate symmetry\r\n\t\t\t\tdouble changeCost=t*0.0001;\r\n\t\t\t\t\r\n\t\t\t\tedge.pointTo = nodeIndex + 1;\r\n\t\t\t\t\r\n\t\t\t\t//edge.length = 0;\r\n\t\t\t\tedge.length=changeCost;\r\n\t\t\t\t\r\n\t\t\t\tedge.setIndex = 2;\r\n\t\t\t\tedge.u = node;\r\n\t\t\t\tedge.v = node;\r\n\t\t\t\tedge.t1 = t;\r\n\t\t\t\tedge.t2 = t + 1;\r\n\t\t\t\tdistance.get(nodeIndex).add(edge);\r\n\t\t\t\tconnect[nodeIndex][nodeIndex + 1] = true;\r\n\r\n\t\t\t\tEdge2 edge2 = new Edge2();\r\n\t\t\t\tedge2.pointFrom = nodeIndex;\r\n\t\t\t\t//edge2.length = 0;\r\n\t\t\t\tedge2.length=changeCost;\r\n\t\t\t\t\r\n\t\t\t\tedge2.setIndex = 2;\r\n\t\t\t\tdistanceReverse.get(nodeIndex + 1).add(edge2);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// add hat A\r\n\t\tfor (int i = 0; i < numberOfCities; i++) {\r\n\t\t\tfor (int j = 0; j < numberOfCities; j++) {\r\n\t\t\t\tif (i != j) {\r\n\t\t\t\t\tdouble time = length[i][j] / averageSpeed;\r\n\t\t\t\t\tint timeLength = (int) Math.ceil(time);\r\n\r\n\t\t\t\t\tint t = timeLength;\r\n\t\t\t\t\tint nodeIndex1 = i * (T + 1);\r\n\t\t\t\t\tint nodeIndex2 = j * (T + 1) + timeLength;\r\n\r\n\t\t\t\t\twhile (t <= T) {\r\n\t\t\t\t\t\tEdge edge = new Edge();\r\n\t\t\t\t\t\tedge.pointTo = nodeIndex2;\r\n\t\t\t\t\t\tedge.length = length[i][j];\r\n\t\t\t\t\t\tedge.setIndex = 1;\r\n\t\t\t\t\t\tedge.u = i;\r\n\t\t\t\t\t\tedge.v = j;\r\n\t\t\t\t\t\tedge.t1 = t - timeLength;\r\n\t\t\t\t\t\tedge.t2 = t;\r\n\t\t\t\t\t\tdistance.get(nodeIndex1).add(edge);\r\n\t\t\t\t\t\tconnect[nodeIndex1][nodeIndex2] = true;\r\n\r\n\t\t\t\t\t\tEdge2 edge2 = new Edge2();\r\n\t\t\t\t\t\tedge2.pointFrom = nodeIndex1;\r\n\t\t\t\t\t\tedge2.length = edge.length;\r\n\t\t\t\t\t\tedge2.setIndex = 1;\r\n\t\t\t\t\t\tdistanceReverse.get(edge.pointTo).add(edge2);\r\n\r\n\t\t\t\t\t\tt++;\r\n\t\t\t\t\t\tnodeIndex1++;\r\n\t\t\t\t\t\tnodeIndex2++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// add AO:(Ok,n0)\r\n\t\tfor (int o = 0; o < numberOfCities; o++) {\r\n\t\t\tint oIndex = numberOfCities * (T + 1) + o;\r\n\r\n\t\t\t// for (int node = 0; node < numberOfCities; node++) {\r\n\t\t\t// int nodeIndex = node * (T + 1);\r\n\t\t\t// Edge edge = new Edge();\r\n\t\t\t// edge.pointTo = nodeIndex;\r\n\t\t\t// edge.length = length[o][node];\r\n\t\t\t// edge.setIndex = 3;\r\n\t\t\t// edge.u = o;\r\n\t\t\t// edge.v = node;\r\n\t\t\t// edge.t1 = -1;\r\n\t\t\t// edge.t2 = 0;\r\n\t\t\t// distance.get(oIndex).add(edge);\r\n\t\t\t// connect[oIndex][nodeIndex] = true;\r\n\t\t\t//\r\n\t\t\t// Edge2 edge2 = new Edge2();\r\n\t\t\t// edge2.pointFrom = oIndex;\r\n\t\t\t// edge2.length = edge.length;\r\n\t\t\t// edge2.setIndex = 3;\r\n\t\t\t// distanceReverse.get(edge.pointTo).add(edge2);\r\n\t\t\t//\r\n\t\t\t// }\r\n\t\t\tint nodeIndex = o * (T + 1);\r\n\t\t\tEdge edge = new Edge();\r\n\t\t\tedge.pointTo = nodeIndex;\r\n\t\t\tedge.length = 0;\r\n\t\t\tedge.setIndex = 3;\r\n\t\t\tedge.u = o;\r\n\t\t\tedge.v = o;\r\n\t\t\tedge.t1 = -1;\r\n\t\t\tedge.t2 = 0;\r\n\t\t\tdistance.get(oIndex).add(edge);\r\n\t\t\tconnect[oIndex][nodeIndex] = true;\r\n\r\n\t\t\tEdge2 edge2 = new Edge2();\r\n\t\t\tedge2.pointFrom = oIndex;\r\n\t\t\tedge2.length = 0;\r\n\t\t\tedge2.setIndex = 3;\r\n\t\t\tdistanceReverse.get(edge.pointTo).add(edge2);\r\n\t\t}\r\n\r\n\t\t// add AD:(nT,Dk)\r\n\t\tfor (int node = 0; node < numberOfCities; node++) {\r\n\t\t\tint nodeIndex = node * (T + 1) + T;\r\n\t\t\t// for (int d = 0; d < numberOfCities; d++) {\r\n\t\t\t// int dIndex = numberOfCities * (T + 2) + d;\r\n\t\t\t// Edge edge = new Edge();\r\n\t\t\t// edge.pointTo = dIndex;\r\n\t\t\t// edge.length = length[node][d];\r\n\t\t\t// edge.setIndex = 4;\r\n\t\t\t// edge.u = node;\r\n\t\t\t// edge.v = d;\r\n\t\t\t// edge.t1 = T;\r\n\t\t\t// edge.t2 = -1;\r\n\t\t\t// distance.get(nodeIndex).add(edge);\r\n\t\t\t// connect[nodeIndex][dIndex] = true;\r\n\t\t\t//\r\n\t\t\t// Edge2 edge2 = new Edge2();\r\n\t\t\t// edge2.pointFrom = nodeIndex;\r\n\t\t\t// edge2.length = edge.length;\r\n\t\t\t// edge2.setIndex = 4;\r\n\t\t\t// distanceReverse.get(edge.pointTo).add(edge2);\r\n\t\t\t// }\r\n\r\n\t\t\tint dIndex = numberOfCities * (T + 2) + node;\r\n\t\t\tEdge edge = new Edge();\r\n\t\t\tedge.pointTo = dIndex;\r\n\t\t\tedge.length = 0;\r\n\t\t\tedge.setIndex = 4;\r\n\t\t\tedge.u = node;\r\n\t\t\tedge.v = node;\r\n\t\t\tedge.t1 = T;\r\n\t\t\tedge.t2 = -2;\r\n\t\t\tdistance.get(nodeIndex).add(edge);\r\n\t\t\tconnect[nodeIndex][dIndex] = true;\r\n\r\n\t\t\tEdge2 edge2 = new Edge2();\r\n\t\t\tedge2.pointFrom = nodeIndex;\r\n\t\t\tedge2.length = 0;\r\n\t\t\tedge2.setIndex = 4;\r\n\t\t\tdistanceReverse.get(edge.pointTo).add(edge2);\r\n\t\t}\r\n\r\n\t\t// set b\r\n\t\tb = new int[numberOfCities * (T + 1)][numberOfDemandPair];\r\n\t\tfor (int p = 0; p < numberOfDemandPair; p++) {\r\n\t\t\tdemandPair pair = demandPairs.get(p);\r\n\t\t\tb[pair.s * (T + 1)][p] = pair.demandQuantity;\r\n\t\t\tb[pair.t * (T + 1) + T][p] = -pair.demandQuantity;\r\n\t\t}\r\n\r\n\t\t// for(int i=0;i<b.length;i++) {\r\n\t\t// System.out.println(Arrays.toString(b[i]));\r\n\t\t// }\r\n\r\n\t\t// for(int i=0;i<numberOfCities;i++) {\r\n\t\t// System.out.println(Arrays.toString(length[i]));\r\n\t\t// }\r\n\t\t// for(int index=0;index<distance.size();index++) {\r\n\t\t// for(Edge e:distance.get(index)) {\r\n\t\t// System.out.println(e.u+\",\"+e.t1+\"->\"+e.v+\",\"+e.t2+\": \"+e.length+\"\r\n\t\t// \"+e.setIndex);\r\n\t\t// }\r\n\t\t// System.out.println();\r\n\t\t// }\r\n\t}", "title": "" }, { "docid": "e9413fa6f925dc42e40b18a7487ed514", "score": "0.53648543", "text": "public void testFindPath() {\r\n\t\tGraph<String> gr1 = UndirectedWeightedGraph.empty();\r\n\t\tMap<String, Integer> gr1Distances = new HashMap<>();\r\n\t\tList<String> gr1Path = new LinkedList<>();\r\n\t\t\r\n\t\tDijkstraSearch djTest = new DijkstraSearch(gr1);\r\n\t\t\r\n\t\tgr1.add(v1);\r\n\t\tgr1.add(v2);\r\n\t\tgr1.add(v3);\r\n\t\tgr1.add(v4);\r\n\t\tgr1.add(v5);\r\n\t\t/**\r\n\t\t * v1--2--v2--3----------v3\r\n\t\t * \t\t--1--v4--1--v5--1^\r\n\t\t */\r\n\t\tgr1.set(v1, v2, 2);\r\n\t\tgr1.set(v2, v3, 3);\r\n\t\tgr1.set(v1, v4, 1);\r\n\t\tgr1.set(v4, v5, 1);\r\n\t\tgr1.set(v5, v3, 1);\r\n\t\tgr1Path.addAll(Arrays.asList(new String[]{v1,v4,v5,v3}));\r\n\t\t\r\n\t\tassertTrue(djTest.findPathToTarget(v1, v3).equals(gr1Path));\r\n\t\tassertTrue(djTest.findDistanceToTarget(v1, v3).equals(3));\r\n\t\t\r\n\t\tgr1.set(v4, v1, 5);\r\n\t\tgr1.set(v4, v2, 6);\r\n\t\tgr1.set(v4, v3, 7);\r\n\t\t\r\n\t\tgr1Path.clear();\r\n\t\tgr1Path.addAll(Arrays.asList(new String[] {v4,v1,v2}));\r\n\t\t\r\n\t\tassertTrue(djTest.findPathToTarget(v4, v2).equals(gr1Path));\r\n\t\tassertTrue(djTest.findPathToTarget(v4, v2).equals(gr1Path));\r\n\t\tassertTrue(djTest.findDistanceToTarget(v1, v3).equals(3));\r\n\t\t\r\n\t\t//remove v3 for testing no pathes\r\n\t\tgr1.remove(v3);\r\n\t\tgr1.add(v3);\r\n\t\t\r\n\t\t//clear path object, no pathes\r\n\t\tgr1Path.clear();\r\n\t\tassertTrue(djTest.findPathToTarget(v3, v1).equals(gr1Path));\r\n\t\tassertTrue(djTest.findPathToTarget(v3, v2).equals(gr1Path));\r\n\t\tassertTrue(djTest.findPathToTarget(v3, v4).equals(gr1Path));\r\n\t\tassertTrue(djTest.findPathToTarget(v3, v5).equals(gr1Path));\r\n\t\tassertTrue(djTest.findDistanceToTarget(v3, v4).equals(0));\r\n\t\tassertTrue(djTest.findDistanceToTarget(v3, v1).equals(0));\r\n\t\tassertTrue(djTest.findDistanceToTarget(v3, v2).equals(0));\r\n\t\tassertTrue(djTest.findDistanceToTarget(v3, v5).equals(0));\r\n\t}", "title": "" }, { "docid": "50b34e66e982bda219f97acffacd9e5e", "score": "0.5348058", "text": "public void findForbiddenComponentOf(){\n\t\tif(!arePathsSet())\r\n\t\t\tsetPaths(true, true);\r\n\t\t\r\n\t\tArrayList<EdgePath> indirectPaths = new ArrayList<EdgePath>();\r\n\t\tSystem.out.println(\"Intransitive ComponentOf: Identifying indirect functional parthood paths...\");\r\n\t\t//selects the paths which are indirect (ex: a wholeOf b; b' subtype of b; b' whole of c; path=a->b'->c)\r\n\t\tfor (EdgePath path : getPaths()) {\r\n\t\t\tif(!path.isCycle() && path.edges()>1){\r\n\t\t\t\tfor (DirectedEdge de : path.getEdges()) {\r\n\t\t\t\t\tif(!de.getTarget().getId().equals(((Property) de.getId()).getType())){\r\n\t\t\t\t\t\tindirectPaths.add(path);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Intransitive ComponentOf: Identifying alternative paths between functinal parthoods...\");\r\n\t\tfor (componentOf cp : parser.getAllInstances(componentOf.class)) {\r\n\t\t\tType whole = OntoUMLParser.getWholeEnd(cp).getType();\r\n\t\t\tType part = OntoUMLParser.getPartEnd(cp).getType();\r\n\t\t\t\r\n\t\t\tfor (EdgePath path : indirectPaths) {\r\n\t\t\t\tObject firstNode = path.getNodeIds(true).get(0);\r\n\t\t\t\tObject lastNode = path.getNodeIds(true).get(path.nodes()-1);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(firstNode.equals(whole) && lastNode.equals(part)){\r\n\t\t\t\t\tForbiddenComponentOf fcp = new ForbiddenComponentOf(cp, parser);\r\n\t\t\t\t\tfcp.setPath(path.getEdgeIdsOfType(Property.class));\r\n\t\t\t\t\tfcp.setNodes(path.getNodeIdsOfType(Classifier.class, true));\r\n\t\t\t\t\tfcp.classifyPath();\r\n\t\t\t\t\tforbidden.add(fcp);\r\n\t\t\t\t\tpublish(fcp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "386a795130dbc97fc05d79eb4e913f49", "score": "0.5342607", "text": "public void planPath() {\n goal = getGoal();\n currentDirection = robotController.getDirection();\n pathCalculated = true;\n if(debug) System.out.println(\"Plan path to \"+goal);\n \n Direction dir;\n tracing = false;\n index = 1;\n currentPathIndex = 0;\n int pathLength = 1;\n \n path[0] = current = robotController.getLocation();\n currentX = current.getX();\n currentY = current.getY();\n \n while(true) {\n if(current.equals(goal)) {\n //System.out.println(\"Arrived\");\n break;\n }\n \n if(pathLength >= maxPath-1) {\n //System.out.println(\"Path to big\");\n break;\n }\n \n dir = getNextDirection();\n if(dir == null) break;\n \n current = current.add(dir);\n \n //we only need to store waypoints, which is when the robot changes direction\n if(dir != currentDirection) {\n path[index] = current;\n index++;\n }\n currentX += dir.dx;\n currentY += dir.dy;\n currentDirection = dir;\n \n pathLength++;\n }\n path[index] = goal;\n index++;\n \n optimizePath();\n \n if(debug) {\n for(int c = 0; c < index; c++) {\n if(path[c] != null) {\n System.out.println(path[c]);\n }\n }\n }\n }", "title": "" }, { "docid": "24a93dca5c1d5b7cbea7a2481b28fd2d", "score": "0.5322717", "text": "private int nonIsolatedVertex(Graph G) {\n for (int v = 0; v < 6; v++)\n if (1 > 0)\n return v;\n return -1;\n }", "title": "" }, { "docid": "335f7bfd75de29506285e7a8c204abd3", "score": "0.5318062", "text": "public static Path getPathBetween(TileMap tileMap, Location origin, Location goal, boolean allowDiagonals) {\r\n\t\tWorld world = Main.gameplayScene.getCurrentWorld();\r\n\t\t\r\n\t\tTile originTile = world.getTile(origin);\r\n\t\tTile goalTile = world.getTile(goal);\r\n\t\t\r\n\t\tList<Node> path = new ArrayList<Node>();\r\n\t\t\r\n\t\tList<Node> valid = new ArrayList<Node>(); //List of nodes that have not been ruled out\r\n\t\tList<Node> invalid = new ArrayList<Node>(); //List of nodes that have been ruled out and will not be used in further calculations\r\n\t\t\r\n\t\tif (originTile == null || goalTile == null) return null;\r\n\t\t\r\n\t\tif (origin == goal || goalTile.isPassable() == false) return null;\r\n\t\t\r\n\t\tif (origin.isAdjacent(goal)) { //If the goal is directly adjacent to the origin\r\n\t\t\tpath.add(new Node(tileMap, origin));\r\n\t\t\tpath.add(new Node(tileMap, goal));\r\n\t\t\tPath newPath = new Path(path);\r\n\t\t\tnewPath.setCalculated(true);\r\n\t\t\t\r\n\t\t\treturn newPath;\r\n\t\t}\r\n\t\t\r\n\t\tboolean pathFound = false;\r\n\t\tNode start = new Node(tileMap, origin);\r\n\t\tNode end = new Node(tileMap, goal);\r\n\t\tNode current = start; //The node that is currently being examined (starting with the origin tile)\r\n\t\twhile (!pathFound) {\r\n\t\t\tif (current == null) return null; //If no path exists\r\n\t\t\tpathFound = handleAdjacentNodes(current, end, valid, invalid, allowDiagonals); //Do all the mathy stuff to the adjacent nodes, returns if the path was found\r\n\t\t\t\r\n\t\t\tif (pathFound == true) {\r\n\t\t\t\t//Track up through the node parents to find the path\r\n\t\t\t\tNode pathNode = end;\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tpath.add(0, pathNode); //Inserts the path into the first index because we're building the path backwards\r\n\t\t\t\t\tif (pathNode.parent == null) return new Path(path); //End of the path\r\n\t\t\t\t\tpathNode = pathNode.parent;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = getLowest(valid);\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "248d70f22777fcda9e9af1da3acca985", "score": "0.5309389", "text": "ArrayList <Edge> reconstructPath(AStarNodeWrapper n)\n {\n ArrayList<Edge> result = new ArrayList<Edge>();\n AStarNodeWrapper x = n;\n while (x.cameFrom != null)\n {\n result.add(x.edgeFrom); // add this edge to the front of the list\n x = x.cameFrom;\n }\n\n// Collections.reverse(result);\n \n if(result.size() < 1)\n \tSystem.out.println(\"stuipd path...\");\n return result;\n }", "title": "" }, { "docid": "585b4f43620b1fd1adf513af10d00d2a", "score": "0.53090787", "text": "@Override\r\n\tpublic int[] getShortestPaths(Graph arg0, int arg1) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5ec87251b9e8584379ba7addca6063e5", "score": "0.5297095", "text": "@Test\n public void triangleTown() {\n List<Map<Integer, Integer>> graph = new ArrayList<>();\n for (int x = 0; x < 6; x++) graph.add(new HashMap<>());\n graph.get(0).put(1, 1);\n graph.get(0).put(2, 1);\n graph.get(1).put(2, 2);\n graph.get(1).put(3, 3);\n graph.get(3).put(4, 2);\n graph.get(3).put(5, 1);\n graph.get(4).put(5, 1);\n Set<Path> solution = new HashSet<>();\n solution.add(new Path(0, 1, 1));\n solution.add(new Path(0, 2, 1));\n solution.add(new Path(1, 3, 3));\n solution.add(new Path(3, 5, 1));\n solution.add(new Path(4, 5, 1));\n Assert.assertEquals(solution, Solution.relocateTheOwls(graph, new HashSet<>()));\n }", "title": "" }, { "docid": "3273919ac4dc2feb6e70e1c92164180e", "score": "0.52957255", "text": "public static void addFlight(Flight newFlight) {\n\n try {\n // Check if the Flight is valid and overwrite if it already exists\n if (FlightDatabase.validFlight(newFlight)) {\n String id = newFlight.getFlightNumber();\n if (FlightDatabase.containsFlight(newFlight)) {\n FlightDatabase.removeFlight(id);\n }\n flightData.put(id, new HashSet<String>());\n idMap.put(id, newFlight);\n String origin = newFlight.getOrigin();\n String destination = newFlight.getDestination();\n Date departure = newFlight.getDepartureDate();\n Date arrival = newFlight.getArrival();\n for (Flight flight : FlightDatabase.getFlights()) {\n String flightId = flight.getFlightNumber();\n // Checks if the input flight is path for this flight\n if ((!(flight.equals(newFlight))) && (flight.getDestination().equals(origin))) {\n long startTime = departure.getTime();\n long earliestTime = startTime - DataConstants.MAXIMUM_TIME_GAP;\n startTime -= DataConstants.MINIMUM_TIME_GAP;\n // Arrival time of the current Flight object\n long arrivalTime = flight.getArrival().getTime();\n // Add the input Flight as a path for the current Flight object if\n // the current Flight's arrival time is within 6 hours of the input Flight's\n // departure time\n if ((arrivalTime >= earliestTime) && (arrivalTime <= startTime)) {\n // Adds input Flight (ID) as a path to the current Flight object\n flightData.get(flightId).add(id);\n }\n // Checks if this Flight is a path for the input Flight\n } else if ((!(flight.equals(newFlight))) && (flight.getOrigin().equals(destination))) {\n long startTime = arrival.getTime();\n long latestTime = startTime + DataConstants.MAXIMUM_TIME_GAP;\n startTime += DataConstants.MINIMUM_TIME_GAP;\n // Departure time of the current Flight object\n long departureTime = flight.getDepartureDate().getTime();\n if ((departureTime <= latestTime) && (departureTime >= startTime)) {\n // Adds Flight (flight) as a path for the input Flight\n flightData.get(id).add(flightId);\n }\n }\n }\n }\n } catch (NoSuchFlightException e) {\n // Will not reach\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "e09a3e60f4b61989c7e8c7fcf3c38190", "score": "0.5290532", "text": "private void resetVisitedGraph(){\r\n\t\tfor(int x = 0; x < this.size; x++){\r\n\t\t\tfor(int y = 0; y < this.size; y++){\r\n\t\t\t\tvisited[y][x] = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i=0 ; i < counter; i++) {\r\n\t\t\twinningPath[i] = null;\r\n\t\t}\r\n\t\tcounter = 0;\r\n\t}", "title": "" }, { "docid": "a33860747e474b7289059c7ab12ec245", "score": "0.528812", "text": "Path shortestPath(Tile to) {\n Path p = new Path(this);//vertek van deze node\n ArrayList<Tile> goals = new ArrayList<Tile>();\n if(GameData.isPassable(to)){\n goals.add(to);\n }else{\n goals.addAll(to.getPassableBorderingTiles());\n }\n if(goals.isEmpty()){//die tile is niet bereikbaar want ze is omringd door water\n return null;\n }\n if(goals.contains(this) && GameData.isPassableOnTurn(this, GameData.currentturn()+1)){\n p = p.push(this);//sta stil\n return p;\n }\n ArrayList<IntPath> memory = new ArrayList<IntPath>();\n HashSet<Tile> beenthere = new HashSet<Tile>();\n beenthere.add(this);\n IntPath start = new IntPath(this.getManhattenDistanceTo(to), p, GameData.currentturn()+1);\n memory.add(start);\n while(true){\n if(memory.isEmpty()){//die tile is niet bereikbaar want we zijn ervan afgesloten\n return null;\n }\n int turn = memory.get(0).nextturn;\n Path shortest = memory.get(0).path;\n memory.remove(0);\n List<Tile> borders = shortest.getLastTile().getPassableBorderingTilesOnTurn(turn);\n borders.removeAll(beenthere);\n Collections.shuffle(borders);\n for(Tile b:borders){\n Path newpath = shortest.push(b);\n if(goals.contains(b)){\n //Logger.log( \"memory:\"+memory.size());\n return newpath; //de eerste keer dat we uitkomen, hebben we bij benadering het beste pad\n }\n int estimatedtotaldistance = newpath.getDistance() + b.getManhattenDistanceTo(to);\n IntPath ip = new IntPath(estimatedtotaldistance, newpath, turn+1);\n int insert = Collections.binarySearch(memory, ip);\n if(insert<0){\n insert = -insert-1;\n }\n memory.add(insert, ip);\n beenthere.add(b);\n }\n }\n }", "title": "" }, { "docid": "5d6e192e1881e94c4a087bd451ac7be4", "score": "0.52701354", "text": "Path startAstar(int _startX, int _startY, int _endX, int _endY) throws NoPathException {\n/* 190 */ Path toReturn = new Path();\n/* */ \n/* */ try {\n/* 193 */ toReturn = astar(_startX, _startY, _endX, _endY, this.surfaced);\n/* 194 */ if (logger.isLoggable(Level.FINEST))\n/* */ {\n/* 196 */ logger.finest(this.creature.getName() + \" astared a path.\");\n/* */ }\n/* */ }\n/* 199 */ catch (NoPathException np2) {\n/* */ \n/* 201 */ if (this.creature != null) {\n/* */ \n/* 203 */ if ((this.creature.isKingdomGuard() || this.creature.isSpiritGuard() || this.creature.isUnique() || this.creature.isDominated()) && this.creature.target == -10L) {\n/* */ \n/* */ \n/* 206 */ int _diffX = Math.max(1, Math.abs(_endX - _startX) / 2);\n/* 207 */ int _diffY = Math.max(1, Math.abs(_endY - _startY) / 2);\n/* */ \n/* 209 */ int stepsX = Server.rand.nextInt(Math.min(50, _diffX + 1));\n/* 210 */ if (this.endX < this.startX)\n/* 211 */ stepsX = -stepsX; \n/* 212 */ this.endX = this.startX + stepsX;\n/* 213 */ int stepsY = Server.rand.nextInt(Math.min(50, _diffY + 1));\n/* 214 */ if (this.endY < this.startY)\n/* 215 */ stepsY = -stepsY; \n/* 216 */ this.endY = this.startY + stepsY;\n/* 217 */ if (stepsY != 0 || stepsX != 0) {\n/* */ \n/* 219 */ setMesh();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 224 */ if (!this.surfaced || this.creature.isKingdomGuard() || this.creature.isUnique() || this.creature.isDominated()) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 234 */ toReturn = astar(_startX, _startY, _endX, _endY, this.surfaced);\n/* */ } else {\n/* */ \n/* 237 */ toReturn = rayCast(_startX, _startY, _endX, _endY, this.surfaced);\n/* */ }\n/* */ \n/* */ } \n/* */ } else {\n/* */ \n/* 243 */ throw np2;\n/* */ } \n/* */ } else {\n/* 246 */ throw np2;\n/* */ } \n/* 248 */ } return toReturn;\n/* */ }", "title": "" }, { "docid": "1aa1ae71de1eb923ae86c9d649f65489", "score": "0.52670014", "text": "protected static ArrayList<String> GetDirections(ArrayList<Integer> path){\n\n /*\n Keeps track of the total distance of the route\n The RouteLength function is not used so that the sum of the rounded\n values presented to the user sum to the total value which is likely\n to be different to the actual total length\n Has a default value of 0 as the special cases for initial nodes do\n not change this so a default value is needed\n */\n int totalDistance = 0;\n ArrayList<String> directionList = new ArrayList<>();\n double straightDistance = (double) 0;\n if (path.size() == 1) {\n\n /*\n If there is only one node, the start and target node were the\n same so no directions are needed\n */\n directionList.add(\"You are at your destination already\");\n } else {\n int previousDirection;\n\n /*\n Special cases are needed for this stage as well as the main part\n of the algorithm in the loop for when a special case occurs for\n the first two nodes\n The special cases are simpler than their full versions as much\n of the resetting is unneeded\n\n Handles the lift special case if the nodes are the specific lift\n nodes\n This should never be chosen by the user as neither node is\n accessible as a start or end node but this allows for extension\n if any location could be chosen by the user\n */\n if ((path.get(0) == 119 && path.get(1) == 183)\n || (path.get(0) == 183 && path.get(1) == 119)){\n\n /*\n Adds the appropriate instruction based on which way around\n the two lift nodes are\n */\n if (path.get(0) == 119 && path.get(1) == 183){\n directionList.add(\"Go up in the lift\");\n } else {\n directionList.add(\"Go down in the lift\");\n }\n\n // Sets the direction to be coming out of the lift\n previousDirection = 1;\n } else {\n\n // Sets initial direction travelled\n previousDirection = CardinalDirection(path.get(0), path.get(1));\n\n // Handles the stairs special case\n if ((network.get(path.get(0)).z != network.get(path.get(1)).z)\n && !(path.get(0) == 179 || path.get(0) == 180)){\n\n /*\n Calculates the length of the stairs and adds this to the\n total distance\n */\n long stairLength = Math.round(StraightLineDistance(\n path.get(0), path.get(1)));\n totalDistance += stairLength;\n\n // Adds a stair instruction to the directions\n if (network.get(path.get(0)).z <\n network.get(path.get(1)).z){\n directionList.add(\"Go up the stairs \" +\n PluralChecker(stairLength));\n } else {\n directionList.add(\"Go down the stairs \" +\n PluralChecker(stairLength));\n }\n\n previousDirection = CardinalDirection(path.get(0),\n path.get(1));\n } else {\n\n // Sets the distance between the first two nodes\n straightDistance = StraightLineDistance(path.get(0),\n path.get(1));\n }\n }\n\n /*\n Loops for all nodes in the route except for the first (already\n processed) and the last as it does not have a node after it\n */\n for (int i = 1; i < (path.size() - 1); i++){\n\n // Find the direction between the next two nodes\n int newDirection = CardinalDirection(path.get(i),\n path.get(i + 1));\n\n /*\n Handles the lift special case if the nodes are the specific\n lift nodes\n */\n if ((path.get(i) == 119 && path.get(i + 1) == 183) ||\n (path.get(i) == 183 && path.get(i + 1) == 119)){\n\n /*\n Adds the current distance traveled in a straight line to\n the directions and resets the counter\n */\n if (straightDistance > 0) {\n directionList.add(\"Go forward \" + PluralChecker(\n Math.round(straightDistance)));\n totalDistance += straightDistance;\n straightDistance = (double) 0;\n }\n\n /*\n Adds the appropriate instruction based on which way\n around the two lift nodes are\n */\n if (path.get(i) == 119 && path.get(i + 1) == 183){\n directionList.add(\"Go up in the lift\");\n } else {\n directionList.add(\"Go down in the lift\");\n }\n\n // Sets the direction to be coming out of the lift\n previousDirection = 1;\n\n // Move on to the next node\n continue;\n }\n\n /*\n Handles stairs special case if the z co-ordinates are\n different (exception for the ramp)\n The small stairs are not counted here as they are not\n significant for users that can use stairs and may be more\n confusing, especially in the case where the small stairs are\n next to a full flight of stairs\n */\n if ((network.get(path.get(i)).z != network.get(\n path.get(i + 1)).z) &&\n !(path.get(i) == 179 || path.get(i) == 180)){\n\n /*\n Adds the current distance traveled in a straight line to\n the directions and resets the counter\n */\n if (straightDistance > 0) {\n directionList.add(\"Go forward \" + PluralChecker(\n Math.round(straightDistance)));\n totalDistance += straightDistance;\n straightDistance = (double) 0;\n }\n\n /*\n Calculates the length of the stairs and adds this to the\n total distance\n */\n long stairLength = Math.round(StraightLineDistance(\n path.get(i), path.get(i + 1)));\n totalDistance += stairLength;\n\n // Adds a stair instruction to the directions\n if (network.get(path.get(i)).z <\n network.get(path.get(i + 1)).z){\n directionList.add(\"Go up the stairs \" +\n PluralChecker(stairLength));\n } else {\n directionList.add(\"Go down the stairs \" +\n PluralChecker(stairLength));\n }\n\n // Updates direction travelled\n previousDirection = newDirection;\n\n // Move on to the next node\n continue;\n\n /*\n The turning part of the algorithm is deliberately\n skipped for stairs at the directions are clear enough\n already and having too many turning instructions adds\n unnecessary complexity to the directions for the user\n */\n }\n\n /*\n If the route is moving in a straight line, add to the\n straight line counter and move on to the next node\n */\n if (previousDirection == newDirection){\n straightDistance += StraightLineDistance(path.get(i),\n path.get(i + 1));\n continue;\n }\n\n /*\n At this point, the user must have gone round a corner\n Adds the current distance traveled in a straight line to the\n directions\n */\n if (straightDistance > 0) {\n directionList.add(\"Go forward \" + PluralChecker(Math.round(\n straightDistance)));\n totalDistance += straightDistance;\n }\n\n /*\n Sets the straight line counter to the distance travelled\n since the corner\n */\n straightDistance = StraightLineDistance(path.get(i),\n path.get(i + 1));\n\n // Makes an appropriate instruction to turn right or left\n String instruction = \"Turn \";\n if ((newDirection > previousDirection\n && !(newDirection == 4 &&previousDirection == 1))\n || (newDirection == 1 && previousDirection == 4)){\n\n /*\n Turns right if the direction is \"more right\" from north\n unless moving from north to west; moving west to north\n is also accepted as a special case\n */\n instruction = instruction + \"right\";\n } else {\n\n // If not turning right, the user must be turning left\n instruction = instruction + \"left\";\n }\n\n /*\n If possible, adds a label to the turn to make it easier to\n identify where to turn\n */\n String label = network.get(path.get(i)).identifier;\n if (!Objects.equals(label, \"blank\")){\n instruction = instruction + \" by \" + label;\n }\n\n // Adds the turning instruction to the directions\n directionList.add(instruction);\n\n // Updates direction travelled\n previousDirection = newDirection;\n }\n\n /*\n Finally, adds the remaining distance travelled to the\n destination and indicate that the route is finished\n */\n if (straightDistance > 0) {\n directionList.add(\"Go forward \" + PluralChecker(Math.round(\n straightDistance)) + \" to your destination\");\n totalDistance += straightDistance;\n } else {\n directionList.add(\"You have reached your destination\");\n }\n }\n\n /*\n Adds the total route distance to the list of directions\n Although this is not a direction, it is easier to add it here for\n when it is displayed in DisplayRoute\n */\n directionList.add(\"Total route distance: \" + PluralChecker(\n totalDistance));\n\n // Returns the directions\n return directionList;\n }", "title": "" }, { "docid": "f223500d9b17fd0b61dad86a5fe5f1e3", "score": "0.52664274", "text": "private ArrayList<Edge> getHighFluxPathV1() {\n \t\tOpenMapRealMatrix fluxes = new OpenMapRealMatrix(this.m_fFluxes);\n \t\t\n \t\tArrayList<Integer> indicies = getIndicies(m_target);\n \t\t\n \t\tArrayList<Integer> iList = new ArrayList<Integer>();\n \t\tArrayList<Double> fluxList = new ArrayList<Double>();\n \t\t\n \t\tint index = getIndicies(m_source).get(0).intValue();\n \t\t\n \t\tboolean hasPath = false;\n \t\ttry {\n \t\t\t/*\n \t\t\t * This recursion is dangerous because it can easily cause stack overflows\n \t\t\t * truthfully, this should be rewritten iteratively\n \t\t\t *\n \t\t\t */\n \t\t\thasPath = decompose( index, iList, fluxList, indicies, fluxes );\n \t\t} catch (StackOverflowError soe) {\n \t\t\tif (!this.error) {\n \t\t\t\tJOptionPane.showMessageDialog( null,\n \t\t\t\t\t\"TPT Calculation Caused a Stack Overflow. Increase stack space, or MSMExplorer may be unable to handle a graph this large at the moment\",\n \t\t\t\t\t\"TPT Overflow\",\n \t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n \t\t\t\tthis.error = true;\n \t\t\t\tSystem.err.println (\"Stack Overflow From TPT\");\n \t\t\t}\n \t\t}\n \t\tif ( hasPath == false )\n \t\t\treturn new ArrayList();\n \t\t\n \t\tiList.add(index);\n \t\t\n \t\tdouble f = fluxList.get(argmin(fluxList)).doubleValue();\n \t\tSystem.out.println (f);\n \t\t\n \t\tArrayList<Edge> edgeList = new ArrayList<Edge>();\n \t\t\n \t\tfor ( int k = 0; k < iList.size()-1; ++k ) {\n \t\t\t\n \t\t\tint j = iList.get(k);\n \t\t\tint i = iList.get(k+1);\n \t\t\t\n \t\t\tthis.m_fFluxes.addToEntry(i, j, -f);\n \t\t\t\n \t\t\tNode source = m_graph.getNode(i);\n \t\t\tNode target = m_graph.getNode(j);\n \t\t\tEdge e = m_graph.getEdge(source, target);\n \t\t\t\n \t\t\tsource.setDouble(\"flux\", source.getDouble(\"flux\") + f);\n \t\t\ttarget.setDouble(\"flux\", target.getDouble(\"flux\") + f);\n \t\t\tSystem.out.println(\"flux: \" + e.getDouble(\"flux\"));\n \t\t\te.setDouble(\"flux\", fluxList.get(k) + f);\n \t\t\t\n \t\t\tedgeList.add(e);\n \t\t}\n \t\t\n \t\treturn edgeList;\n \t}", "title": "" }, { "docid": "4cda9981f0fb6fd6a6b22ffe0fc27a24", "score": "0.52613133", "text": "protected void naaActivatePath(LinkedList path) {\r\n //copy the path, so it may be consumed.\r\n LinkedList tempPath = new LinkedList(path);\r\n\r\n State pathHead = (State) tempPath.removeFirst();\r\n pathHead.activateSelf(tempPath);\r\n }", "title": "" }, { "docid": "dc971bf4272d5a7ad05b610949d94619", "score": "0.52521056", "text": "protected DijkstraShortestPaths(BusStopMap graph, int s)\n {\n g = graph;\n\n //Initialize array of visited arrays to all elements false.\n boolean[] visited = new boolean[g.V()];\n for(int i = 0; i < g.V(); i++)\n {\n visited[i] = false;\n }\n\n //Initialize all distances to infinite.\n distTo = new Double[g.V()];\n for(int i = 0; i < g.V(); i++)\n {\n distTo[i] = null;\n }\n\n //Initialize all edges to null.\n edgeTo = new Integer[g.V()];\n for(int i = 0; i < g.V(); i++)\n {\n edgeTo[i] = null;\n }\n\n //Create a Queue for the vertices to be visited.\n MinPQ verticesToRelax = new MinPQ(3);\n distTo[s] = 0.0;\n verticesToRelax.insert(distTo[s], s);\n int currentVertex;\n\n //Relax all unvisited vertices.\n while(!verticesToRelax.isEmpty())\n {\n currentVertex = verticesToRelax.nextVertex();\n if(!visited[currentVertex])\n {\n visited[currentVertex] = true;\n for(Object o : g.adjacent(currentVertex))\n {\n WeightedEdge e = (WeightedEdge) o;\n //If distTo vertex is not infinite, compare it to current path. \n //If it is infinite, update distTo.\n if(distTo[e.to()] != null)\n {\n if((e.weight() + distTo[currentVertex]) < distTo[e.to()])\n {\n distTo[e.to()] = e.weight() + distTo[currentVertex];\n edgeTo[e.to()] = currentVertex;\n }\n }\n else\n {\n distTo[e.to()] = e.weight() + distTo[currentVertex];\n edgeTo[e.to()] = currentVertex;\n }\n //Add the unvisited vertex to the Queue.\n verticesToRelax.insert(distTo[e.to()], e.to());\n }\n }\n }\n }", "title": "" }, { "docid": "1fc53dbfa3c74d4c8e5a883715c1b788", "score": "0.52513194", "text": "private synchronized void createPathGraph() {\n\n if(!intraPatchDist) {\n pathGraph = getGraph();\n node2PathNodes = null;\n return;\n }\n \n HashMap2D<Node, Coordinate, Node> coord2PathNode = new HashMap2D<>(Collections.EMPTY_SET, Collections.EMPTY_SET, null);\n \n node2PathNodes = new HashMapList<>();\n\n BasicGraphBuilder gen = new BasicGraphBuilder();\n\n for(Edge edge : getEdges()) {\n Path p = (Path) edge.getObject();\n Coordinate c = p.getCoordinate(p.getPatch1());\n Node n1 = coord2PathNode.getValue(edge.getNodeA(), c);\n if(n1 == null) {\n n1 = gen.buildNode();\n n1.setObject(edge.getNodeA());\n gen.addNode(n1);\n node2PathNodes.putValue(edge.getNodeA(), n1);\n coord2PathNode.setValue(edge.getNodeA(), c, n1);\n }\n c = p.getCoordinate(p.getPatch2());\n Node n2 = coord2PathNode.getValue(edge.getNodeB(), c);\n if(n2 == null) {\n n2 = gen.buildNode();\n n2.setObject(edge.getNodeB());\n gen.addNode(n2);\n node2PathNodes.putValue(edge.getNodeB(), n2);\n coord2PathNode.setValue(edge.getNodeB(), c, n2);\n }\n Edge e = gen.buildEdge(n1, n2);\n e.setObject(edge);\n gen.addEdge(e);\n }\n\n for(Node node : getNodes()) {\n // add isolated patch\n if(!node2PathNodes.containsKey(node)) {\n Node n = gen.buildNode();\n n.setObject(node);\n gen.addNode(n);\n node2PathNodes.putValue(node, n);\n } else { // link all nodes of same patch\n Map<Coordinate, Node> nodes = coord2PathNode.getLine(node);\n List<Coordinate> coords = new ArrayList<>();\n for(Coordinate c : nodes.keySet()) {\n if(nodes.get(c) != null) {\n coords.add(c);\n }\n }\n for(int i = 0; i < coords.size(); i++) {\n for(int j = i+1; j < coords.size(); j++) {\n Coordinate c1 = coords.get(i);\n Coordinate c2 = coords.get(j);\n Edge e = gen.buildEdge(nodes.get(c1), nodes.get(c2));\n double[] costs = cost.getIntraLinkCost(c1, c2);\n if(costs == null) {\n throw new RuntimeException(\"No intra patch dist for \" + node.getObject());\n }\n e.setObject(costs);\n gen.addEdge(e);\n }\n }\n }\n }\n\n pathGraph = gen.getGraph();\n }", "title": "" }, { "docid": "3f1142a7638ec68d7c63e1fbf5004ae3", "score": "0.5251186", "text": "List<String> route(String start, String end, List<String> touristTraps)\n {\n ArrayList<String> path = new ArrayList<>();\n map.addEdge(start,start,0,0);\n Iterator<String> cityIndex = cityList.iterator();\n\n //initialized the visited with false and the distance hashtable\n //with infinity. The start location will be at vertex 0 and then \n //use dijkstra to visit each city. \n while(cityIndex.hasNext())\n {\n String city = cityIndex.next();\n if(city!=null)\n {\n isVisited.put(city,false);\n distance.put(city,Integer.MAX_VALUE);\n }\n }\n\n distance.put(start, 0);\n //loop through the city list and while the city has not been visited, set the vertex to \n //smallest() and then set the vertex to be discovered. Later go to through the adjacency list and then\n //invoke dijkstras to get the path.\n\n visitCities(cityList);\n\n ArrayList<Integer> sortTraps = new ArrayList<>();\n ArrayList<String> organizedAttractions= new ArrayList<>();\n Hashtable<Integer, String> conversion = new Hashtable<>();\n Iterator<String> attractionList = touristTraps.iterator();\n //sort the attractions/tourist traps from distance to prioritize which attraction to visit first.\n //the conversion hashtable serves as an estimator to determine the distance of each attraction in\n //order to sort the attracton list from closest to farthest. Then, add them into the organized list of \n //attractions, where the cities will be in order.\n while(attractionList.hasNext())\n {\n String attractionIndex = attractionList.next();\n sortTraps.add(distance.get(places.get(attractionIndex)));\n conversion.put(distance.get(places.get(attractionIndex)),attractionIndex);\n }\n\n Collections.sort(sortTraps);\n\n for(int index : sortTraps)\n {\n organizedAttractions.add(places.get(conversion.get(index)));\n }\n\n organizedAttractions.add(0,start);\n //this checks to see if the final attraction is at the final location, if not, then do\n //nothing or the roadtrip will stop abruptly after visitng the final attraction in many\n //scenarios. \n\n if(organizedAttractions.contains(end))\n {\n organizedAttractions.remove(end);\n organizedAttractions.add(end);\n }else{\n organizedAttractions.add(end);\n }\n //creates a stack that will push the nextAttraction\n //and then add to the miles taken and the time.\n //later pop from the stack and then add to the path list.\n Stack locationList = new Stack();\n\n for(int i =0;i<organizedAttractions.size()-1;i++)\n {\n String currentAttraction = organizedAttractions.get(i);\n String nextAttraction = organizedAttractions.get(i+1);\n String temp = organizedAttractions.get(i+1);\n\n locationList.push(nextAttraction);\n \n while(!currentAttraction.equals(nextAttraction))\n {\n String prevAttraction = previous.get(nextAttraction);\n milesTaken+=getWeight(nextAttraction,prevAttraction);\n time+=getTime(nextAttraction,prevAttraction);\n locationList.add(prevAttraction);\n nextAttraction=previous.get(nextAttraction);\n }\n\n while(!locationList.isEmpty())\n {\n path.add((String)locationList.pop());\n }\n\n //begin to reset the path information after each attractionn in order to\n //gurantee a path to backtrack.\n isVisited = new Hashtable<>();\n previous = new Hashtable<>();\n distance = new Hashtable<>();\n for(String cities: cityList)\n {\n if(cities!= null)\n {\n isVisited.put(cities,false);\n distance.put(cities,Integer.MAX_VALUE);\n }\n }\n distance.put(temp,0);\n visitCities(cityList);\n }\n return path;\n }", "title": "" }, { "docid": "ff81a3ff9ee8e4a7a424e51690fe2ca3", "score": "0.5251083", "text": "public static void main(String[] args)\n {\n DFS graph = new DFS();\n // graph.addEdge(\"A\", \"B\");\n /*graph.addEdge(\"A\", \"C\");\n graph.addEdge(\"B\", \"A\");\n graph.addEdge(\"B\", \"D\");\n graph.addEdge(\"B\", \"E\"); \n graph.addEdge(\"B\", \"F\");\n graph.addEdge(\"C\", \"A\");\n graph.addEdge(\"C\", \"E\");\n graph.addEdge(\"C\", \"F\");\n graph.addEdge(\"D\", \"B\");\n graph.addEdge(\"E\", \"C\");\n graph.addEdge(\"E\", \"F\");\n // graph.addEdge(\"F\", \"B\");\n graph.addEdge(\"F\", \"C\");\n graph.addEdge(\"F\", \"E\");*/\n \n \n \n /* graph.addTwoWayVertex(\"0\", \"3\");\n graph.addTwoWayVertex(\"3\", \"1\");\n graph.addTwoWayVertex(\"1\", \"3\");\n graph.addTwoWayVertex(\"4\", \"2\");\n graph.addTwoWayVertex(\"2\", \"3\");\n graph.addTwoWayVertex(\"5\", \"6\");\n graph.addTwoWayVertex(\"3\", \"4\");\n */\n \n /*0-----3 4\n -- -\n - - -\n - - -\n - - -\n - --\n 1 2*/\n \n \n \n /* graph.addEdge(\"1\",\"4\");\n graph.addEdge(\"1\", \"3\");\n graph.addEdge(\"1\", \"2\");\n graph.addEdge(\"2\", \"5\");\n graph.addEdge(\"3\", \"7\");\n graph.addEdge(\"3\", \"6\");\n graph.addEdge(\"9\", \"13\");\n graph.addEdge(\"9\", \"12\");\n graph.addEdge(\"9\", \"11\");\n graph.addEdge(\"9\", \"10\");\n graph.addEdge(\"10\", \"11\");\n graph.addEdge(\"11\", \"14\");\n graph.addEdge(\"12\", \"14\");*/\n \n graph.addEdge(\"0\",\"1\");\n graph.addEdge(\"0\", \"2\");\n graph.addEdge(\"1\", \"2\");\n graph.addEdge(\"2\", \"0\");\n graph.addEdge(\"2\", \"3\");\n graph.addEdge(\"3\", \"3\");\n \n \n START = \"2\";\n LinkedList<String> visited = new LinkedList();\n \n\t\t\n\t\tIterator<Entry<String, LinkedHashSet<String>>> itr = graph.map.entrySet().iterator();\n\t\tLinkedList<String> list = new LinkedList<String>();\n\t\tlist.add(START);\n\t\tprinted.add(START);\n\t\n\t\tSystem.out.print(START+\" \");\n\t\tgraph.breadthFirst(graph, list);\n\t\t\n }", "title": "" }, { "docid": "a89836bc9653840a565ad5c0246172c7", "score": "0.52460086", "text": "private boolean dfs(LinkedList<Edge>[] Gf, int s, int t,\n LinkedList<Edge> path, boolean[] visited){\n // found the ending !\n if(s == t) return true;\n\n visited[s] = true;\n for(Edge e: Gf[s]){\n if(e.getWeight() > 0){\n if(!visited[e.getY()]) {\n if (dfs(Gf, e.getY(), t, path, visited)) {\n path.add(e); // we find by this edge !\n return true;\n }\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "eb268ca587a2a1efb11a22c9626ac32c", "score": "0.5244129", "text": "public boolean calcPathTo(Destination endDest, boolean player) {\r\n // testing\r\n//\t\tif (player) {\r\n//\t\t\t System.out.println(\"player in a*\");\r\n//\t\t}\r\n//\t\telse {\r\n//\t\t\treturn false;\r\n//\t\t}\r\n\r\n\r\n//\t\tSystem.out.println(\"calcpathto: \" + endDest.getName());\r\n if (lastAStarFail > 0 && !player) {\r\n calcStraightPathTo(endDest);\r\n return true;\r\n }\r\n\r\n finalGoal = endDest;\r\n//\t\tSystem.out.println(army.getName() + \" getting new Path\"); not the problem for freezing\r\n//\t\tif (army.getParty().player) System.out.println(\"player getting new path\");\r\n // TODO remove news?\r\n dStack.clear();\r\n startCorner.loc = new PointH(start.getCenterX(), Map.HEIGHT - start.getCenterY());\r\n startCorner.init();\r\n endCorner.loc = new PointH(endDest.getCenterX(), Map.HEIGHT - endDest.getCenterY());\r\n endCorner.init();\r\n\r\n // VERY IMPORTANT\r\n // need to add any adjacent \"border\" corners to the new corner's \"Protrudes\" list\r\n // First step, find containing center\r\n//\t\tPoint point = new Point(startCorner.loc.x, startCorner.loc.y);\r\n//\t\tfor (Center center : map.vg.centers) { \r\n//\t\t\tif (map.kingdom.centerContainsDestination(center, point)) {\r\n//\t\t\t\tfor (Integer edgeIndex : center.adjEdges) {\r\n//\t\t\t\t\tstartCorner.protrudes.add(map.getEdge(edgeIndex));\r\n//\t\t\t\t\tSystem.out.println(\"Adding protruding edge to start corner\");\r\n//\t\t\t\t}\r\n//\t\t\t\tbreak;\r\n//\t\t\t}\r\n//\t\t}\r\n\r\n\r\n Edge edgeBlock = map.openPathInit(startCorner, endCorner);\r\n//\t\tif (army.getParty().player) {\r\n//\t\t\tif (map.isInWater(endDest))\r\n//\t\t\t\tSystem.out.println(\"destination in water!!!\");\r\n//\t\t}\r\n\r\n // allow armies off island to travel directly to destination on island\r\n // TODO Make armies off island head towards closest land\r\n if (edgeBlock == null || map.isInWater(start)) {\r\n\r\n//\t\t\tif (army.getParty().player) {\r\n//\t\t\t\tmap.testIndex = 1;\r\n//\t\t\t\t//\t\t\t\tSystem.out.println(\"open path\");\r\n//\t\t\t}\r\n dStack.add(endDest);\r\n return true;\r\n } else if (pathExists(endDest.getCenterX(), endDest.getCenterY())) {\r\n map.addCorner(endCorner);\r\n\r\n // This was the bug that was causing paths to not go through\r\n map.addCorner(startCorner);\r\n map.calcVisible(startCorner);\r\n//\t\t\tmap.calcVisible(endCorner);\r\n Stack<Destination> aStarStack = aStar(startCorner, endCorner, endDest);\r\n if (aStarStack != null) {\r\n this.dStack = aStarStack;\r\n//\t\t\t\tSystem.out.println(\"a star completed\");\r\n this.lastAStarFail = A_STAR_WAIT;\r\n } else {\r\n // this is really broken TODO fix\r\n System.out.println(\"a star failed\");\r\n map.removeCorner(endCorner);\r\n map.removeCorner(startCorner);\r\n this.lastAStarFail = A_STAR_WAIT;\r\n return false;\r\n }\r\n\r\n//\t\t\tif (army.getParty().player) {\r\n//\t\t\t\tmap.testIndex = map.impassable.indexOf(edgeBlock, true);\r\n//\t\t\t}\r\n\r\n map.removeCorner(endCorner);\r\n map.removeCorner(startCorner);\r\n return true;\r\n } else {\r\n System.out.println(start.getName() + \" can't access\");\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "723c25974c60c5ad130a5015c1d9e7f0", "score": "0.5242467", "text": "private static Coordinate[] reconstructPath(Intersection goal) {\n ArrayList<Coordinate> path = new ArrayList<>();\n path.add(AStar.providedGoalCoordinate);\n path.add(AStar.goal.getCoordinate());\n Intersection current = goal;\n while (cameFrom.containsKey(current)) {\n current = cameFrom.get(current);\n path.add(current.getCoordinate());\n }\n\n path.add(AStar.providedStartCoordinate);\n\n Collections.reverse(path);\n return path.toArray(new Coordinate[0]);\n }", "title": "" }, { "docid": "815d87dd09a78ca66e9d5da43043fe81", "score": "0.52401865", "text": "private void drawFlightPlan(){\n\n // First clear the map, before drawing on it\n mMap.clear();\n\n // Get the Fixes of the flight plan on the MarkerOption form\n ArrayList<MarkerOptions> fixesMarkerOptions = mFPLM.getFixesMarkerOptions();\n\n // Draw the path if asked using a Polyline\n if(DRAW_PATH) {\n PolylineOptions betweenFixLines = new PolylineOptions();\n for (int i = 0; i < fixesMarkerOptions.size(); i++) {\n betweenFixLines.add(fixesMarkerOptions.get(i).getPosition());\n }\n mMap.addPolyline(betweenFixLines);\n }\n\n // Draw the fixes if asked using Markers\n if(DRAW_FIXES) {\n for (int i = 0; i < fixesMarkerOptions.size(); i++) {\n Marker m = mMap.addMarker(fixesMarkerOptions.get(i));\n m.setTag(i);\n }\n }\n\n createDrone();\n\n }", "title": "" }, { "docid": "d237c21c55c661bbe45d03ee2fce6245", "score": "0.5232707", "text": "public Node get_forwarding_path(String f_graph_id, String f_path_id)\n {\n logger.debug(\"ServiceGraph::get_forwarding_path ENTER\");\n logger.info(\"ServiceGraph::get_forwarding_path: Processing forwarding path request for : \" + f_graph_id + \"(\" + f_path_id + \")\");\n if(f_graph.get(f_graph_id) == null)\n logger.error(\"ServiceGraph::get_forwarding_path: Forwarding path: \" + f_graph_id + \" not found\");\n if(f_graph.get(f_graph_id).get(f_path_id) == null)\n logger.error(\"ServiceGraph::get_forwarding_path: Forwarding path: \" + f_graph_id+ \"(\" + f_path_id + \") not found\");\n\n logger.debug(\"ServiceGraph::get_forwarding_path EXIT\");\n return f_graph.get(f_graph_id).get(f_path_id);\n\n }", "title": "" }, { "docid": "8f5cdb574b844e555e10f2844d3409fd", "score": "0.52309465", "text": "@Test\n public void getPath_noTovertex(){\n g.addEdge(\"A\", \"B\");\n g.addEdge(\"B\", \"C\");\n g.addEdge(\"C\", \"D\");\n LinkedList<String> l = new LinkedList<>();\n assertEquals(\"Checking that the method returns empty iterable when the graph's To vertex does not exist\",\n l, g.getPath(\"A\", \"F\"));\n \n }", "title": "" }, { "docid": "f3280992d29d3688a0cac175fa799235", "score": "0.5221923", "text": "private void removeRoute(){\n if(G == null){\n System.out.println(\"Please import a graph first (option 1).\");\n System.out.print(\"Please press ENTER to continue ...\");\n scan.nextLine();\n } else {\n for(int i=0; i<cityNames.length; i++){\n System.out.println(i+1 + \": \" + cityNames[i]);\n }\n System.out.print(\"Please enter source city (1-\" + cityNames.length + \"): \");\n int source = Integer.parseInt(scan.nextLine());\n System.out.print(\"Please enter destination city (1-\" + cityNames.length + \"): \");\n int destination = Integer.parseInt(scan.nextLine());\n\n G.removeEdge(source-1, destination-1);\n\n System.out.println(\"Route removed: from \" + cityNames[source-1] + \" to \" + cityNames[destination-1]);\n System.out.print(\"Please press ENTER to continue ...\");\n scan.nextLine();\n }\n\n }", "title": "" }, { "docid": "cf6f7c4acf1847f324bc6c05dc1ae466", "score": "0.5204743", "text": "private static boolean doesHaveTopoPath() {\n\t\tfor (int i = 0; i < Vertex.totalNumVertices; i++) {\n\t\t\tadjacencyLists.get(i).incomingEdgeCount = adjacencyLists.get(i).inEdges\n\t\t\t\t\t.size();\n\t\t}\n\n\t\tint pathCount = 0;\n\t\tint count = 0;\n\t\t// q to hold all the vertices with no incoming edges\n\t\tArrayDeque<Vertex> q = new ArrayDeque<Vertex>();\n\n\t\t// add vertices with no incoming edges to the queue\n\t\tfor (int i = 0; i < Vertex.totalNumVertices; i++) {\n\t\t\tif (adjacencyLists.get(i).incomingEdgeCount == 0) {\n\t\t\t\tq.add(adjacencyLists.get(i));\n\t\t\t}\n\t\t}\n\n\t\twhile (!q.isEmpty()) {\n\n\t\t\t// pull out a Vertex, add it to the topological Sort (print it)\n\t\t\tVertex vert = q.remove();\n\t\t\t// System.out.println(\"Removed: \" + vert.vertexNumber);\n\n\t\t\t// if what we just removed from the queue does not have a path\n\t\t\t// between what will be pulled next then there is no topopath\n\t\t\t\n\t\t\tif ((!q.isEmpty() && !vert.outEdges.contains(q.getFirst())) || (q.size() > 1)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tcount++;\n\n\t\t\t// need to decrement incoming edge count and if it hits zero add it\n\t\t\t// to the queue\n\t\t\tfor (int i = 0; i < Vertex.totalNumVertices; i++) {\n\t\t\t\tif (adjacencyLists.get(i).inEdges.contains(vert.vertexNumber)\n\t\t\t\t\t\t&& --adjacencyLists.get(i).incomingEdgeCount == 0) {\n\t\t\t\t\tq.add(adjacencyLists.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (count != Vertex.totalNumVertices) {\n\t\t\t// System.out.println(\"Error: There was a cycle\");\n\t\t\treturn false;\n\t\t}\n\t\t//System.out.println(\"Count: \" + count);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c714daab23cfe293ae97b67e62186b2a", "score": "0.520455", "text": "public List<node_info> shortestPath(int src, int dest) {\n //this comparator using the field tag of every node to compare\n Comparator<node_info> nodeInfoComparator= Comparator.comparingDouble(node_info::getTag);\n Queue<node_info> q=new PriorityQueue<>(nodeInfoComparator);\n HashMap<node_info,node_info> father=new HashMap<>();//this hashmap is using to recover the path\n initTags();//init all the tags to -1\n node_info start=myAlgoGraph.getNode(src);\n node_info end=myAlgoGraph.getNode(dest);\n if(start==null||end==null) return null;\n if(src==dest) {//if true then returns a list with only the start node\n List<node_info> temp= new LinkedList<>();\n temp.add(start);\n return temp;\n }\n node_info curr;\n start.setTag(0);//the distance between node to itself is 0\n q.add(start);\n boolean flag=false;\n while(!q.isEmpty()){\n curr=q.poll();//take a node\n for(node_info Ni: myAlgoGraph.getV(curr.getKey())) {//run for all of his Ni\n if (Ni.getKey() == dest) flag = true;//if flag==true then there is a path\n if (Ni.getTag()==-1) {//if the Ni never got visited\n Ni.setTag(curr.getTag() + myAlgoGraph.getEdge(Ni.getKey(), curr.getKey()));//the tag of this node is his father tag(recursive)+the weight of the edge who connects between the father to him.\n father.put(Ni, curr);//the HashMap builds in this path--> <the neighbor, his father>\n q.add(Ni);//O(logV)\n } else {//if the Ni already got visited\n //take the minimum between the Ni tag to the new path that found.\n double temp=Math.min(Ni.getTag(), curr.getTag() + myAlgoGraph.getEdge(Ni.getKey(), curr.getKey()));\n if(temp!=Ni.getTag()) {//if the new path is better\n father.put(Ni, curr);//set the new father of Ni\n Ni.setTag(temp);//set the new path of Ni\n }\n }\n }\n\n }\n if(!flag)//if there is no path then return null\n return null;\n\n return buildPath(father,end);//builds path using `buildPath` and return this list\n }", "title": "" }, { "docid": "efe5f228fd21b4684d424e796eade29e", "score": "0.52045363", "text": "public ArrayList<Edge> astarPath(GeoNode start, ArrayList <GeoNode> goal, Network network)\n\t {\n\n\t // initial check\n\t if (start == null || goal == null || goal.size() == 0)\n\t {\n\t System.out.println(\"Error: invalid nodeset provided to AStar\");\n\t return null;\n\t }\n\t else if(goal.contains(start))\n\t \treturn null;\n\n\t // containers for the metainformation about the Nodes relative to the\n\t // A* search\n\t HashMap<GeoNode, AStarNodeWrapper> foundNodes =\n\t new HashMap<GeoNode, AStarNodeWrapper>();\n\n\t AStarNodeWrapper startNode = new AStarNodeWrapper(start);\n\t foundNodes.put(start, startNode);\n\t startNode.gx = 0;\n\n\t ArrayList <AStarNodeWrapper> goalNodes = new ArrayList <AStarNodeWrapper> ();\n\t double minVal = Double.MAX_VALUE;\n\t for(GeoNode n: goal){\n\t \tAStarNodeWrapper goalNode = new AStarNodeWrapper(n); \n\t \tgoalNodes.add(goalNode);\n\t\t foundNodes.put(n, goalNode);\n\t\t \n\t\t double hval = heuristic(start, n);\n\t\t if(hval < minVal)\n\t\t \tminVal = hval;\n\t }\n\t startNode.hx = minVal;\n\t startNode.fx = minVal;\n\n\n\t // A* containers: nodes to be investigated, nodes that have been investigated\n\t ArrayList<AStarNodeWrapper> closedSet = new ArrayList<AStarNodeWrapper>(),\n\t openSet = new ArrayList<AStarNodeWrapper>();\n\t openSet.add(startNode);\n\n\n\t while (openSet.size() > 0)\n\t { // while there are reachable nodes to investigate\n\n\t AStarNodeWrapper x = findMin(openSet); // find the shortest path so far\n\t if (goal.contains(x.node))\n\t { // we have found the shortest possible path to the goal!\n\t // Reconstruct the path and send it back.\n\t return reconstructPath(foundNodes.get(x.node));\n\t }\n\t openSet.remove(x); // maintain the lists\n\t closedSet.add(x);\n\n\t // check all the edges out from this Node\n\t for (Object o : network.getEdgesOut(x.node)) // TODO: make sure this is still ok\n\t {\n\t \tEdge l = (Edge) o;\n\t GeoNode next = null;\n\t next = (GeoNode) l.getOtherNode(x.node);\n\t \n\t // get the A* meta information about this Node\n\t AStarNodeWrapper nextNode;\n\t if (foundNodes.containsKey(next))\n\t {\n\t nextNode = foundNodes.get(next);\n\t } else\n\t {\n\t nextNode = new AStarNodeWrapper(next);\n\t foundNodes.put(next, nextNode);\n\t }\n\n\t if (closedSet.contains(nextNode)) // it has already been considered\n\t {\n\t continue;\n\t }\n\n\t // otherwise evaluate the cost of this node/edge combo\n\t double tentativeCost = x.gx + length(l);\n\t boolean better = false;\n\n\t if (!openSet.contains(nextNode))\n\t {\n\t openSet.add(nextNode);\n\t minVal = Double.MAX_VALUE;\n\t for(GeoNode n: goal){\n\t \tdouble hval = heuristic(next, n); \n\t \tif(hval < minVal) minVal = hval;\n\t }\n\t nextNode.hx = minVal;\n\t better = true;\n\t } else if (tentativeCost < nextNode.gx)\n\t {\n\t better = true;\n\t }\n\n\t // store A* information about this promising candidate node\n\t if (better)\n\t {\n\t nextNode.cameFrom = x;\n\t nextNode.edgeFrom = l;\n\t nextNode.gx = tentativeCost;\n\t nextNode.fx = nextNode.gx + nextNode.hx;\n\t }\n\t }\n\t }\n\n\t System.out.println(\"A* ERROR: No path found. Graph has only \" + closedSet.size() + \" nodes associated with it\");\n\t return null;\n\t }", "title": "" }, { "docid": "3e19b4f3fbea5c7942bfc072387c8416", "score": "0.5204165", "text": "public ArrayList<PathTransition> dijkstraPath(List<Character> pathing, Shape block, int[] rand, boolean returning) {\n if(returning) {\n lastNode = '5';\n } else {\n lastNode = '0';\n }\n int duration = 0;\n double[] lastNodePos = new double[2];\n ArrayList<PathTransition> returnList = new ArrayList<>();\n //Building middle transitions\n for (Character c : pathing) {\n switch (c) {\n case '0':\n switch (lastNode) {\n case '1':\n duration = rand[0];\n lastNodePos[0] = r1.getTranslateX() + 25;\n lastNodePos[1] = r1.getTranslateY() + 25;\n break;\n case '3':\n duration = rand[1];\n lastNodePos[0] = r3.getTranslateX() + 25;\n lastNodePos[1] = r3.getTranslateY() + 25;\n break;\n }\n returnList.add(new PathTransition(Duration.seconds(duration), new Path(new MoveTo(lastNodePos[0], lastNodePos[1]), new LineTo(r0.getTranslateX() + 25, r0.getTranslateY() + 25)), block));\n lastNode = '0';\n break;\n //going to 1 from... (only 3 possible sources)\n case '1':\n switch (lastNode) {\n case '0':\n duration = rand[0];\n lastNodePos[0] = r0.getTranslateX() + 25;\n lastNodePos[1] = r0.getTranslateY() + 25;\n break;\n case '2':\n duration = rand[2];\n lastNodePos[0] = r2.getTranslateX() + 25;\n lastNodePos[1] = r2.getTranslateY() + 25;\n break;\n case '4':\n duration = rand[3];\n lastNodePos[0] = r4.getTranslateX() + 25;\n lastNodePos[1] = r4.getTranslateY() + 25;\n break;\n }\n //Add to list: a new pathtransition of time duration, containing a new path to the next node in pathing found by dijkstras.\n returnList.add(new PathTransition(Duration.seconds(duration), new Path(new MoveTo(lastNodePos[0], lastNodePos[1]), new LineTo(r1.getTranslateX() + 25, r1.getTranslateY() + 25)), block));\n lastNode = '1';\n break;\n\n //going to 2 from...\n case '2':\n switch (lastNode) {\n case '1':\n duration = rand[2];\n lastNodePos[0] = r1.getTranslateX() + 25;\n lastNodePos[1] = r1.getTranslateY() + 25;\n break;\n case '3':\n duration = rand[4];\n lastNodePos[0] = r3.getTranslateX() + 25;\n lastNodePos[1] = r3.getTranslateY() + 25;\n break;\n case '7':\n duration = rand[5];\n lastNodePos[0] = r7.getTranslateX() + 25;\n lastNodePos[1] = r7.getTranslateY() + 25;\n break;\n }\n returnList.add(new PathTransition(Duration.seconds(duration), new Path(new MoveTo(lastNodePos[0], lastNodePos[1]), new LineTo(r2.getTranslateX() + 25, r2.getTranslateY() + 25)), block));\n lastNode = '2';\n break;\n //going to 3 from...\n case '3':\n switch (lastNode) {\n case '0':\n duration = rand[1];\n lastNodePos[0] = r0.getTranslateX() + 25;\n lastNodePos[1] = r0.getTranslateY() + 25;\n break;\n case '2':\n duration = rand[4];\n lastNodePos[0] = r2.getTranslateX() + 25;\n lastNodePos[1] = r2.getTranslateY() + 25;\n break;\n case '6':\n duration = rand[6];\n lastNodePos[0] = r6.getTranslateX() + 25;\n lastNodePos[1] = r6.getTranslateY() + 25;\n break;\n }\n returnList.add(new PathTransition(Duration.seconds(duration), new Path(new MoveTo(lastNodePos[0], lastNodePos[1]), new LineTo(r3.getTranslateX() + 25, r3.getTranslateY() + 25)), block));\n lastNode = '3';\n break;\n\n case '4':\n switch (lastNode) {\n case '1':\n duration = rand[3];\n lastNodePos[0] = r1.getTranslateX() + 25;\n lastNodePos[1] = r1.getTranslateY() + 25;\n break;\n case '5':\n duration = rand[7];\n lastNodePos[0] = r5.getTranslateX() + 25;\n lastNodePos[1] = r5.getTranslateY() + 25;\n break;\n case '7':\n duration = rand[8];\n lastNodePos[0] = r7.getTranslateX() + 25;\n lastNodePos[1] = r7.getTranslateY() + 25;\n break;\n }\n returnList.add(new PathTransition(Duration.seconds(duration), new Path(new MoveTo(lastNodePos[0], lastNodePos[1]), new LineTo(r4.getTranslateX() + 25, r4.getTranslateY() + 25)), block));\n lastNode = '4';\n break;\n\n case '5':\n switch (lastNode) {\n case '4':\n duration = rand[7];\n lastNodePos[0] = r4.getTranslateX() + 25;\n lastNodePos[1] = r4.getTranslateY() + 25;\n break;\n case '6':\n duration = rand[9];\n lastNodePos[0] = r6.getTranslateX() + 25;\n lastNodePos[1] = r6.getTranslateY() + 25;\n break;\n }\n returnList.add(new PathTransition(Duration.seconds(duration), new Path(new MoveTo(lastNodePos[0], lastNodePos[1]), new LineTo(r5.getTranslateX() + 25, r5.getTranslateY() + 25)), block));\n lastNode = '5';\n break;\n\n case '6':\n switch (lastNode) {\n case '3':\n duration = rand[6];\n lastNodePos[0] = r3.getTranslateX() + 25;\n lastNodePos[1] = r3.getTranslateY() + 25;\n break;\n case '5':\n duration = rand[9];\n lastNodePos[0] = r5.getTranslateX() + 25;\n lastNodePos[1] = r5.getTranslateY() + 25;\n break;\n case '7':\n duration = rand[10];\n lastNodePos[0] = r7.getTranslateX() + 25;\n lastNodePos[1] = r7.getTranslateY() + 25;\n break;\n }\n returnList.add(new PathTransition(Duration.seconds(duration), new Path(new MoveTo(lastNodePos[0], lastNodePos[1]), new LineTo(r6.getTranslateX() + 25, r6.getTranslateY() + 25)), block));\n lastNode = '6';\n break;\n\n case '7':\n switch (lastNode) {\n case '2':\n duration = rand[5];\n lastNodePos[0] = r2.getTranslateX() + 25;\n lastNodePos[1] = r2.getTranslateY() + 25;\n break;\n case '4':\n duration = rand[8];\n lastNodePos[0] = r4.getTranslateX() + 25;\n lastNodePos[1] = r4.getTranslateY() + 25;\n break;\n case '6':\n duration = rand[3];\n lastNodePos[0] = r6.getTranslateX() + 25;\n lastNodePos[1] = r6.getTranslateY() + 25;\n break;\n }\n returnList.add(new PathTransition(Duration.seconds(duration), new Path(new MoveTo(lastNodePos[0], lastNodePos[1]), new LineTo(r7.getTranslateX() + 25, r7.getTranslateY() + 25)), block));\n lastNode = '7';\n break;\n }\n }\n return returnList;\n }", "title": "" }, { "docid": "fca8870ea6e7362ec90450ee1c4b5454", "score": "0.51976657", "text": "private void createThePath() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tState current = this.goal;\n\t\twhile(current != null){\n\t\t\tsb.append(current.getOperator());\n\t\t\tcurrent = current.getFatherState();\n\t\t}\n\t\tsb.setLength(sb.length() - 1);\n\t\tsb.reverse();\n\t\tthis.path = sb.toString();\n\t\t\n\t}", "title": "" }, { "docid": "4d04d78130b886cfd54674b86e9aa238", "score": "0.51878166", "text": "public ArrayList<Edge> astarPath(GeoNode start, GeoNode goal, Network network)\n {\n\n // initial check\n if (start == null || goal == null){\n System.out.println(\"Error: invalid node provided to AStar\");\n return null;\n }\n\n // if they're the same place, the path is empty but certainly exists\n if(start == goal)\n \treturn new ArrayList<Edge> ();\n\n // containers for the metainformation about the Nodes relative to the\n // A* search\n HashMap<GeoNode, AStarNodeWrapper> foundNodes =\n new HashMap<GeoNode, AStarNodeWrapper>();\n\n AStarNodeWrapper startNode = new AStarNodeWrapper(start);\n AStarNodeWrapper goalNode = new AStarNodeWrapper(goal);\n foundNodes.put(start, startNode);\n foundNodes.put(goal, goalNode);\n\n startNode.gx = 0;\n startNode.hx = heuristic(start, goal);\n startNode.fx = heuristic(start, goal);\n\n // A* containers: nodes to be investigated, nodes that have been investigated\n ArrayList<AStarNodeWrapper> closedSet = new ArrayList<AStarNodeWrapper>(),\n openSet = new ArrayList<AStarNodeWrapper>();\n openSet.add(startNode);\n\n\n while (openSet.size() > 0)\n { // while there are reachable nodes to investigate\n\n AStarNodeWrapper x = findMin(openSet); // find the shortest path so far\n if (x.node == goal)\n { // we have found the shortest possible path to the goal!\n // Reconstruct the path and send it back.\n return reconstructPath(goalNode);\n }\n openSet.remove(x); // maintain the lists\n closedSet.add(x);\n\n // check all the edges out from this Node\n// for (Object o : network.getEdgesOut(x.node))\n for (Object o : network.getEdges(x.node, null))\n {\n \tEdge l = (Edge) o;\n GeoNode next = null;\n next = (GeoNode) l.getOtherNode(x.node);\n \n // get the A* meta information about this Node\n AStarNodeWrapper nextNode;\n if (foundNodes.containsKey(next))\n {\n nextNode = foundNodes.get(next);\n } else\n {\n nextNode = new AStarNodeWrapper(next);\n foundNodes.put(next, nextNode);\n }\n\n if (closedSet.contains(nextNode)) // it has already been considered\n {\n continue;\n }\n\n // otherwise evaluate the cost of this node/edge combo\n double tentativeCost = x.gx + length(l);\n boolean better = false;\n\n if (!openSet.contains(nextNode))\n {\n openSet.add(nextNode);\n nextNode.hx = heuristic(next, goal);\n better = true;\n } else if (tentativeCost < nextNode.gx)\n {\n better = true;\n }\n\n // store A* information about this promising candidate node\n if (better)\n {\n nextNode.cameFrom = x;\n nextNode.edgeFrom = l;\n nextNode.gx = tentativeCost;\n nextNode.fx = nextNode.gx + nextNode.hx;\n }\n }\n }\n\n// System.out.println(\"A* Problem: graph has only \" + closedSet.size() + \" nodes associated with it\");\n return null;\n }", "title": "" }, { "docid": "fdb25cc8c052dd8f20f312eb57a82baa", "score": "0.51808447", "text": "ClassicPath() {\n super(80);\n setPathWaypoints();\n super.createMapCollision();\n }", "title": "" }, { "docid": "ea9af9d8c2a9c4f06571ab1c432d6e04", "score": "0.5176438", "text": "private int[] ancestralPath(Iterable<Integer> v, Iterable<Integer> w)\n {\n Queue<Integer> q = new Queue<>();\n boolean[] vmarked = new boolean[this.digraph.V()];\n int[] vdistTo = new int[this.digraph.V()];\n\n for (int x : v) {\n if (isVertexValid(x) && !vmarked[x]) {\n q.enqueue(x);\n vmarked[x] = true;\n vdistTo[x] = 0;\n }\n }\n\n int[] sapV = new int[2];\n sapV = bfs(q, vmarked, vdistTo);\n\n boolean[] wmarked = new boolean[this.digraph.V()];\n int[] wdistTo = new int[this.digraph.V()];\n for (int x : w) {\n if (isVertexValid(x) && !wmarked[x]) {\n q.enqueue(x);\n wmarked[x] = true;\n wdistTo[x] = 0;\n }\n }\n\n int[] sapW = new int[2];\n sapW = bfs(q, wmarked, wdistTo);\n\n int[] sapX = new int[2];\n sapX[0] = -1;\n sapX[1] = -1;\n for (int x = 0; x < this.digraph.V(); x++) {\n if (vmarked[x] && wmarked[x]) {\n int ndist = vdistTo[x] + wdistTo[x];\n if (sapX[0] == -1 || ndist < sapX[0]) {\n sapX[0] = ndist;\n sapX[1] = x;\n }\n }\n }\n return sapX;\n }", "title": "" }, { "docid": "ccbeedaa8febcde5ef7ea35d75783f0f", "score": "0.51696134", "text": "private void redrawPath() {\n if (mViewModel.path == null) {\n return;\n }\n PolylineOptions options = new PolylineOptions();\n for (Location location : mViewModel.path) {\n options.add(location.getLatLng());\n }\n\n if (mPolyline != null) {\n mPolyline.remove();\n }\n mPolyline = mMap.addPolyline(options);\n mPolyline.setColor(Color.RED);\n mPolyline.setWidth(5);\n }", "title": "" }, { "docid": "78b72b0abc1e61f67e175d1d1cb9fd42", "score": "0.5156962", "text": "private static boolean isUndirected(Edge edge){\r\n return edge.getEndpoint1() == Endpoint.CIRCLE && edge.getEndpoint2() == Endpoint.CIRCLE;\r\n }", "title": "" }, { "docid": "7196949b9fec6fa65bc0c48a47eae6ad", "score": "0.51545477", "text": "public ArrayList<T> findPath(T start, T end) { //Dijkstra\n ArrayList<Vertice> frontier = new ArrayList<>(); //separate copy of vertices\n for (Vertice vertice: vertices) { //set all weights to 1000000 except start (set to 0)\n if (vertice.getData() == start) {\n vertice.setWeight(0);\n vertice.clearPath();\n } else {\n vertice.setWeight(1000000);\n }\n frontier.add(vertice);\n\n }\n\n Vertice current; //vertice being analysed\n\n while (frontier.size() != 0) { //loop until frontier empty\n\n\n Collections.sort(frontier);//sort frontier\n\n current = frontier.get(0);//set current to the\n\n\n\n\n if(current.getData() == end){ //break if the current matches the end\n unWeightVertices();\n current.addToPath(current);\n break;\n }\n ArrayList<Vertice> neighbours = current.getNeighbours();\n\n for (int i = 0; i < neighbours.size(); i++) { //update neighbors\n Edge edgeCheck = current.getEdge(i);\n Vertice verticeCheck = edgeCheck.getOther(current);\n\n\n\n int newDistance = current.getWeight() + edgeCheck.getWeight(); //find possible new distance\n\n if (newDistance <= verticeCheck.getWeight()) { //if new distance is shorter than current distance\n verticeCheck.setWeight(newDistance);//sets distance to new distance\n verticeCheck.setPath(current.getPathCopy());//copies the path of current to verticeCheck\n verticeCheck.addToPath(current);//add current to the path\n }\n }\n frontier.remove(current);//remove current from frontier\n }\n\n return getVertice(end).getPathData(); //return explored;\n }", "title": "" }, { "docid": "ffa141ba357113e15226ed5caefee6cf", "score": "0.5154135", "text": "PathTile step() throws NoPathException {\n/* 348 */ int x = this.current.getTileX();\n/* 349 */ int y = this.current.getTileY();\n/* 350 */ boolean raycend = true;\n/* 351 */ if (!this.surfaced)\n/* 352 */ raycend = false; \n/* 353 */ if (raycend && Math.abs(this.endX - x) <= 1 && Math.abs(this.endY - y) <= 1) {\n/* */ \n/* */ \n/* 356 */ x = this.endX;\n/* 357 */ y = this.endY;\n/* */ }\n/* 359 */ else if (Math.abs(this.endX - x) < 1 && Math.abs(this.endY - y) < 1) {\n/* */ \n/* 361 */ x = this.endX;\n/* 362 */ y = this.endY;\n/* 363 */ logger.log(Level.INFO, \"This really shouldn't happen i guess, since it should have been detected already.\");\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 368 */ if (this.derivX > 0.0F && x < this.endX) {\n/* */ \n/* 370 */ if (this.derivX >= 1.0F) {\n/* 371 */ x++;\n/* */ } else {\n/* */ \n/* 374 */ this.restX += this.derivX;\n/* 375 */ if (this.restX >= 1.0F)\n/* */ {\n/* 377 */ x++;\n/* 378 */ this.restX--;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 383 */ } else if (this.derivX < 0.0F && x > this.endX) {\n/* */ \n/* 385 */ if (this.derivX <= -1.0F) {\n/* 386 */ x--;\n/* */ } else {\n/* */ \n/* 389 */ this.restX += this.derivX;\n/* 390 */ if (this.restX <= -1.0F) {\n/* */ \n/* 392 */ x--;\n/* 393 */ this.restX++;\n/* */ } \n/* */ } \n/* */ } \n/* */ \n/* 398 */ if (this.derivY > 0.0F && y < this.endY) {\n/* */ \n/* 400 */ if (this.derivY >= 1.0F) {\n/* 401 */ y++;\n/* */ } else {\n/* */ \n/* 404 */ this.restY += this.derivY;\n/* 405 */ if (this.restY >= 1.0F)\n/* */ {\n/* 407 */ y++;\n/* 408 */ this.restY--;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* 413 */ } else if (this.derivY < 0.0F && y > this.endY) {\n/* */ \n/* 415 */ if (this.derivY <= -1.0F) {\n/* */ \n/* 417 */ y--;\n/* */ }\n/* */ else {\n/* */ \n/* 421 */ this.restY += this.derivY;\n/* 422 */ if (this.restY <= -1.0F) {\n/* */ \n/* 424 */ y--;\n/* 425 */ this.restY++;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* 430 */ if (!this.mesh.contains(x, y))\n/* 431 */ throw new NoPathException(\"Path missed at \" + x + \", \" + y); \n/* 432 */ PathTile toReturn = null;\n/* */ \n/* */ try {\n/* 435 */ toReturn = this.mesh.getPathTile(x, y);\n/* */ \n/* 437 */ if (!canPass(this.current, toReturn))\n/* */ {\n/* 439 */ throw new NoPathException(\"Path blocked between \" + this.current.toString() + \" and \" + toReturn.toString());\n/* */ }\n/* */ }\n/* 442 */ catch (ArrayIndexOutOfBoundsException ai) {\n/* */ \n/* 444 */ logger.log(Level.WARNING, \"OUT OF BOUNDS AT RAYCAST: \" + x + \", \" + y + \": \" + ai.getMessage(), ai);\n/* 445 */ logger.log(Level.WARNING, \"Mesh info: \" + this.mesh.getBorderStartX() + \", \" + this.mesh.getBorderStartY() + \", to \" + this.mesh\n/* 446 */ .getBorderEndX() + \", \" + this.mesh.getBorderEndY());\n/* 447 */ logger.log(Level.WARNING, \"Size of meshx=\" + this.mesh.getSizex() + \", meshy=\" + this.mesh.getSizey());\n/* 448 */ throw new NoPathException(\"Path missed at \" + x + \", \" + y);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 466 */ if (this.stepsTaken > this.maxSteps) {\n/* */ \n/* 468 */ if (logger.isLoggable(Level.FINEST))\n/* */ {\n/* 470 */ logger.finest(\"Raycaster stops searching after \" + this.stepsTaken + \" steps, suspecting it missed the target.\");\n/* */ }\n/* 472 */ throw new NoPathException(\"Probably missed target using raycaster.\");\n/* */ } \n/* 474 */ this.stepsTaken++;\n/* 475 */ return toReturn;\n/* */ }", "title": "" }, { "docid": "1940abfa6e3494346021527574dffce8", "score": "0.5149729", "text": "private static List findChanges (Map<Collection<Node>, List<PossibleDConnectingPath>> paths) {\r\n List<Set<GraphChange>> pagChanges = new ArrayList<Set<GraphChange>>();\r\n\r\n Set<Map.Entry<Collection<Node>, List<PossibleDConnectingPath>>> entries = paths.entrySet();\r\n\r\n /* Loop through each entry, ie each conditioned set of variables. */\r\n for (Map.Entry<Collection<Node>, List<PossibleDConnectingPath>> entry : entries) {\r\n Collection<Node> conditions = entry.getKey();\r\n List<PossibleDConnectingPath> dConnecting = entry.getValue();\r\n\r\n /* loop through each path */\r\n for (PossibleDConnectingPath possible : dConnecting ) {\r\n List<Node> possPath = possible.getPath();\r\n\r\n /* Created with 2*# of paths as appoximation. might have to increase size once */\r\n Set<GraphChange> pathChanges = new HashSet<GraphChange>(2 * possPath.size());\r\n\r\n /* find those conditions which are not along the path (used in colider) */\r\n List<Node> outsidePath = new ArrayList<Node>(conditions.size());\r\n for (Node condition : conditions) {\r\n if (!possPath.contains(condition))\r\n outsidePath.add(condition);\r\n }\r\n\r\n /* Walk through path, node by node */\r\n for (int i = 0; i < possPath.size() - 1; i++) {\r\n Node current = possPath.get(i);\r\n Node next = possPath.get(i + 1);\r\n GraphChange gc;\r\n\r\n /* for each pair of nodes, add the operation to remove their edge */\r\n gc = new GraphChange();\r\n gc.addRemove(possible.getPag().getEdge(current, next));\r\n pathChanges.add(gc);\r\n\r\n /* for each triple centered on a node which is an element of the conditioning\r\n * set, add the operation to orient as a nonColider around that node */\r\n if (conditions.contains(current) && i > 0) {\r\n gc = new GraphChange();\r\n Triple nonColider = new Triple( possPath.get(i - 1), current, next);\r\n gc.addNonCollider(nonColider);\r\n pathChanges.add(gc);\r\n }\r\n\r\n /* for each node on the path not in the conditioning set, make a colider. It\r\n * is necessary though to ensure that there are no paths implying that a\r\n * conditioned variable (even outside the path) is a decendant of a colider */\r\n if ((!conditions.contains(current)) && i > 0) {\r\n Triple colider = new Triple( possPath.get(i - 1), current, next);\r\n\r\n if ( possible.getPag().isUnderlineTriple(possPath.get(i-1), current, next) )\r\n continue;\r\n\r\n Edge edge1 = possible.getPag().getEdge(colider.getX(), colider.getY());\r\n Edge edge2 = possible.getPag().getEdge(colider.getZ(), colider.getY());\r\n\r\n if (edge1.getNode1().equals(colider.getY())) {\r\n if (edge1.getEndpoint1().equals(Endpoint.TAIL)) {\r\n continue;\r\n }\r\n }\r\n else if (edge1.getNode2().equals(colider.getY())) {\r\n if (edge1.getEndpoint2().equals(Endpoint.TAIL)) {\r\n continue;\r\n }\r\n }\r\n\r\n if (edge2.getNode1().equals(colider.getY())) {\r\n if (edge2.getEndpoint1().equals(Endpoint.TAIL)) {\r\n continue;\r\n }\r\n }\r\n else if (edge2.getNode2().equals(colider.getY())) {\r\n if (edge2.getEndpoint2().equals(Endpoint.TAIL)) {\r\n continue;\r\n }\r\n }\r\n\r\n /* Simple case, no conditions outside the path, so just add colider */\r\n if (outsidePath.size() == 0) {\r\n gc = new GraphChange();\r\n gc.addCollider(colider);\r\n pathChanges.add(gc);\r\n continue;\r\n }\r\n\r\n /* ensure nondecendency in possible path between current and each conditioned\r\n * variable outside the path */\r\n for (Node outside : outsidePath) {\r\n\r\n /* list of possible decendant paths */\r\n\r\n List<PossibleDConnectingPath> decendantPaths = new ArrayList<PossibleDConnectingPath>();\r\n lock.lock();\r\n try {\r\n decendantPaths\r\n = PossibleDConnectingPath.findDConnectingPaths\r\n (possible.getPag(), current, outside, new ArrayList<Node>());\r\n }\r\n finally {lock.unlock();}\r\n\r\n\r\n /* loop over each possible path which might indicate decendency */\r\n for (PossibleDConnectingPath decendantPDCPath : decendantPaths) {\r\n List<Node> decendantPath = decendantPDCPath.getPath();\r\n\r\n /* walk down path checking orientation (path may already\r\n * imply non-decendency) and creating changes if need be*/\r\n boolean impliesDecendant = true;\r\n Set<GraphChange> colideChanges = new HashSet<GraphChange>();\r\n for (int j = 0; j < decendantPath.size() - 1; j++) {\r\n Node from = decendantPath.get(j);\r\n // chaneges from +1\r\n Node to = decendantPath.get(j+1);\r\n Edge currentEdge = possible.getPag().getEdge(from, to);\r\n\r\n if (currentEdge.getEndpoint1().equals(Endpoint.ARROW)) {\r\n impliesDecendant = false;\r\n break;\r\n }\r\n\r\n gc = new GraphChange();\r\n gc.addCollider(colider);\r\n gc.addRemove(currentEdge);\r\n colideChanges.add(gc);\r\n\r\n gc = new GraphChange();\r\n gc.addCollider(colider);\r\n gc.addOrient(to, from);\r\n colideChanges.add(gc);\r\n }\r\n if (impliesDecendant)\r\n pathChanges.addAll(colideChanges);\r\n }\r\n }\r\n }\r\n }\r\n\r\n pagChanges.add(pathChanges);\r\n }\r\n }\r\n return pagChanges;\r\n }", "title": "" }, { "docid": "99e5b5dc367230e51b869331f0dbf788", "score": "0.5136764", "text": "Path astar(int startTileX, int startTileY, int endTileX, int endTileY, boolean aSurfaced) throws NoPathException {\n/* 543 */ int endHeight = Tiles.decodeHeight(this.finish.getTile());\n/* 544 */ int startHeight = Tiles.decodeHeight(this.start.getTile());\n/* 545 */ if (this.creature != null && !this.creature.isSwimming() && !this.creature.isSubmerged() && endHeight < -this.creatureHalfHeight && \n/* */ \n/* 547 */ Tiles.decodeType(this.finish.getTile()) != Tiles.Tile.TILE_CAVE_EXIT.id && \n/* 548 */ Tiles.decodeType(this.finish.getTile()) != Tiles.Tile.TILE_HOLE.id && endHeight < startHeight) {\n/* 549 */ throw new NoPathException(\"Target in water.\");\n/* */ }\n/* 551 */ this.pathList = new LinkedList<>();\n/* */ \n/* */ \n/* 554 */ if (this.start != null && this.finish != null && this.start.equals(this.finish))\n/* 555 */ return null; \n/* 556 */ if (this.finish == null) {\n/* */ \n/* 558 */ if (this.creature != null) {\n/* 559 */ logger.log(Level.WARNING, this.creature.getName() + \" finish=null at \" + endTileX + \", \" + endTileY);\n/* */ } else {\n/* 561 */ logger.log(Level.WARNING, \"Finish=null at \" + endTileX + \", \" + endTileY);\n/* 562 */ } return null;\n/* */ } \n/* 564 */ if (this.start == null) {\n/* */ \n/* 566 */ if (this.creature != null) {\n/* 567 */ logger.log(Level.WARNING, this.creature.getName() + \" start=null at \" + startTileX + \", \" + startTileY);\n/* */ } else {\n/* 569 */ logger.log(Level.WARNING, \"start=null at \" + startTileX + \", \" + startTileY);\n/* 570 */ } return null;\n/* */ } \n/* 572 */ this.start.setDistanceFromStart(this.start, 0.0F);\n/* 573 */ this.pathList.add(this.start);\n/* */ \n/* 575 */ int pass = 0;\n/* */ \n/* 577 */ int lState = 0;\n/* 578 */ while (lState == 0 && pass < 10000) {\n/* */ \n/* 580 */ pass++;\n/* */ \n/* 582 */ lState = step2();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 592 */ if (lState == 1) {\n/* */ \n/* 594 */ if (pass > 4000) {\n/* */ \n/* 596 */ String cname = \"Unknown\";\n/* 597 */ if (this.creature != null)\n/* 598 */ cname = this.creature.getName(); \n/* 599 */ logger.log(Level.INFO, cname + \" pathed from \" + this.startX + \", \" + this.startY + \" to \" + this.endX + \", \" + this.endY + \" and found path after \" + pass + \" steps.\");\n/* */ } \n/* */ \n/* */ \n/* 603 */ return setPath();\n/* */ } \n/* */ \n/* */ \n/* 607 */ if (lState == 2) {\n/* 608 */ throw new NoPathException(\"No path possible after \" + pass + \" tries.\");\n/* */ }\n/* 610 */ throw new NoPathException(\"No path found after \" + pass + \" tries.\");\n/* */ }", "title": "" }, { "docid": "8c87c626ce3473717e8ec180153d3e72", "score": "0.5134082", "text": "public void dibujaCamino(Vector<Punto> path) {\r\n try {\r\n misPolilineas.clear();\r\n misMarcadores.clear();\r\n marcadoresPiso.clear();\r\n cantPisos = 0;\r\n Vector<String> edificios = new Vector<>();\r\n\r\n //Veo cuantos pisos hay\r\n for (int i = 0; i < path.size(); i++) {\r\n if (path.elementAt(i).getPiso() > cantPisos) {\r\n cantPisos = path.elementAt(i).getPiso();\r\n }\r\n }\r\n\r\n //Creo las polilineas y overlays que voy a usar\r\n cantPisos = cantPisos + 1;\r\n for (int i = 0; i < cantPisos; i++) {\r\n PolylineOptions p = new PolylineOptions().width(5).color(Color.RED);\r\n Vector<GroundOverlayOptions> g = new Vector<>();\r\n misPolilineas.add(p);\r\n misOverlays.add(g);\r\n }\r\n\r\n //Agrego puntos a las polilineas segun piso e identifico por que edificios y pisos pasa mi polilinea\r\n for (int i = 0; i < path.size(); i++) {\r\n misPolilineas.elementAt(path.elementAt(i).getPiso()).add(new LatLng(path.elementAt(i).getLatitud(), path.elementAt(i).getLongitud()));\r\n for (int j = 0; j < cantidad_edificios; j++) {\r\n //Veo si ese marcador está dentro de algun edificio con el mapa y la funcion dentroDeLimites\r\n //Tratar de optimizar esto\r\n if (hashMapBounds.containsKey(\"ed\" + j + \"_\" + path.elementAt(i).getPiso())) {\r\n if (dentroDeLimites(new LatLng(path.elementAt(i).getLatitud(), path.elementAt(i).getLongitud()), hashMapBounds.get(\"ed\" + j + \"_\" + path.elementAt(i).getPiso()))) {\r\n if (!edificios.contains(\"ed\" + j + \"_\" + path.elementAt(i).getPiso())) {\r\n edificios.add(\"ed\" + j + \"_\" + path.elementAt(i).getPiso());\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n //Agrego los overlays a mi vector\r\n for (int i = 0; i < edificios.size(); i++) {\r\n if (hashMapID.containsKey(edificios.elementAt(i))) {\r\n misOverlays.elementAt(Integer.parseInt(edificios.elementAt(i).substring(edificios.elementAt(i).indexOf(\"_\") + 1)))\r\n .add(new GroundOverlayOptions()\r\n .positionFromBounds(hashMapBounds.get(edificios.elementAt(i)))\r\n .image(BitmapDescriptorFactory.fromResource(hashMapID.get(edificios.elementAt(i)))));\r\n }\r\n }\r\n\r\n //Busco cuales marcadores por piso voy a tener\r\n marcadoresPiso.add(new MarkerOptions()\r\n .position(new LatLng(path.elementAt(0).getLatitud(), path.elementAt(0).getLongitud()))\r\n .title(path.elementAt(0).getNombre())\r\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\r\n\r\n for (int i = 1; i < path.size() - 1; i++) {\r\n if (path.elementAt(i).getPiso() != path.elementAt(i + 1).getPiso()) {\r\n marcadoresPiso.add(new MarkerOptions()\r\n .position(new LatLng(path.elementAt(i).getLatitud(), path.elementAt(i).getLongitud()))\r\n .title(path.elementAt(i).getNombre())\r\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\r\n marcadoresPiso.add(new MarkerOptions()\r\n .position(new LatLng(path.elementAt(i + 1).getLatitud(), path.elementAt(i + 1).getLongitud()))\r\n .title(path.elementAt(i + 1).getNombre())\r\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\r\n }\r\n }\r\n\r\n marcadoresPiso.add(new MarkerOptions()\r\n .position(new LatLng(path.elementAt(path.size() - 1).getLatitud(), path.elementAt(path.size() - 1).getLongitud()))\r\n .title(path.elementAt(path.size() - 1).getNombre())\r\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\r\n\r\n //Cargo las imagenes en el map\r\n cargarMapaImagnes(path);\r\n }catch (Exception e){\r\n\r\n\r\n log.registrar(this,\"dibujaCamino\",e);\r\n log.alertar(\"Ocurrió un error al momento de dibujar el camino.\",getActivity());\r\n\r\n }\r\n }", "title": "" }, { "docid": "ca683d1a5f76c52bd207bafe0e57b031", "score": "0.5132897", "text": "public static String tracePath(Puzzle p, int r, int c)\n {\n // COMPLETE THIS 11\n\n int[] lineSegments_Returns = lineSegments(p);\n int lineSegments = lineSegments_Returns[0];\n\n int count_loop =1;\n\n if(getConnections(p,r,c).size()==0){ //If line segment exist\n return \"No path\";\n }\n\n int[] current_coord ={r,c}; //initial coordinate\n\n ArrayList<int[]> Connections = getConnections(p,current_coord[0],current_coord[1]);\n int [] previous_coord = current_coord; \n current_coord = Connections.get(0); //previous coordinate\n\n do{ \n count_loop++;\n Connections = getConnections(p,current_coord[0],current_coord[1]); //fetches 1-4 coordinates\n\n //REMOVE PREVIOUS COORDINATE IN LIST SO THAT IT DOES NOT BACKTRACK \n int delete_index = 0;\n for (int[] coord : Connections){\n if((coord[0] == previous_coord[0]) && (coord[1] == previous_coord[1])){\n Connections.remove(delete_index);\n break;\n }\n delete_index++;\n }\n \n try{\n previous_coord = current_coord;\n current_coord = Connections.get(0);\n\n if(Connections.size()>=2){ //2 or 3 possible branching\n return \"Branching line\";\n }\n }\n catch(IndexOutOfBoundsException e){ // Connections.get(0) results in Exception for when no remaining path exist\n return \"Dangling end\";\n } // ENDS OF THE LOOP AS current_coord = null\n }while (!((current_coord[0]==r)&&(current_coord[1]==c)));//Repeat until it goes to back to the start\n\n return count_loop+\"\";\n }", "title": "" }, { "docid": "beb18d73ca8dcd034984b1a8500954a3", "score": "0.51239526", "text": "protected synchronized Graph getPathGraph() {\n if(pathGraph == null) {\n createPathGraph();\n }\n\n return pathGraph;\n }", "title": "" }, { "docid": "b91c7149642ea83669509b00df4c5bce", "score": "0.512261", "text": "public List<Edge> reorderPath(Trip current) {\n\t\tList<Edge> path = new ArrayList<Edge>();\n\t\twhile(current.getCameFrom() != null) {\n\t\t\tfor(int i = current.getTripPath().size() - 1; i >= 0 ; i-- ) {\n\t\t\t\tpath.add(current.getTripPath().get(i));\n\t\t\t}\n\t\t\tcurrent = current.getCameFrom();\n\t\t}\n\t\tCollections.reverse(path);\n\t\treturn path;\n\t}", "title": "" }, { "docid": "5b796f25e0eacd62b7061cdb5bff99c2", "score": "0.5122402", "text": "void dfs(List<List<String>> ladders, List<String> path,\n String start, String end,\n Map<String, List<String>> map,\n Set<String> visited) {\n if (visited.contains(start))return;\n else\n visited.add(start);\n path.add(start);\n if (end.equals(start)) {\n ladders.add(new ArrayList<String>(path));\n }\n else {\n //do dfs for each neighbors\n for (String next : map.get(start)) {\n\n dfs(ladders, path, next, end, map,visited);\n\n }\n }\n //reset status so that same position can be revisited for different starting points.\n //path and visited need to avoid cycle only in each of single traversal\n path.remove(path.size() - 1);\n visited.remove(start);\n }", "title": "" }, { "docid": "5931b8667aa9b8aa8e0d9f2978676f75", "score": "0.51191854", "text": "private List<RobotArmNode> robotBFS() {\n\t\tQueue<RobotArmNode> frontier = new LinkedList<RobotArmNode>();\n\t\tHashMap<RobotArmNode, RobotArmNode> visited = \n\t\t\t\tnew HashMap<RobotArmNode, RobotArmNode>();\n\t\tvisited.put(startNode, null);\n\t\t\n\t\t\n\t\tRobotArmNode currNode = startNode;\n\t\tList<RobotArmNode> successors;\n\t\tboolean goalNotFound = true;\n\t\tRobotArmNode goal = null;\n\t\t\n\t\t\n\t\twhile (goalNotFound){\n\t\t\tsuccessors = graph.getAdj(currNode);\n\t\t\tfor (int i = 0; i < successors.size(); i++){\n\t\t\t\t\n\t\t\t\tif (successors.get(i).equals(goalNode)){ //if goal found\n\t\t\t\t\tgoalNotFound = false;\n\t\t\t\t\tgoal = successors.get(i);\n\t\t\t\t\tvisited.put(successors.get(i), currNode);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (!visited.containsKey(successors.get(i))){ //If unvisited\n\t\t\t\t\tfrontier.add(successors.get(i));\n\t\t\t\t\tvisited.put(successors.get(i), currNode);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurrNode = frontier.poll();\n\t\t\tif (currNode == null)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif (goalNotFound){\n\t\t\tSystem.out.println(\"No valid path found.\");\n\t\t\treturn null;\n\t\t} \n\n\t\treturn backchain(goal, visited);\n\t}", "title": "" }, { "docid": "abcfadf12abb7fef3d4f6a7fbe5eb5ed", "score": "0.5112977", "text": "private void DFS(int i, path PATH){\n\t\tint t=0;\n\t\t//System.out.println(\"?\");\n\t\t//if (overState[i]==0) {\n\t\t//t++;\n\t\t\n\t\tfor (int j=0; j<N; j++){\n\t\t\t\n\t\t\tif (arrTranLists[i][j].getSize()>0 && overTransition[i][j]==2){\n\t\t\t\tt++;\n\t\t\t\t\n\t\t\t\t//overState[j]=1;\n\t\t\t\tarrTranLists[i][j].RemoveHead();\n\t\t\t\tif (arrTranLists[i][j].IsEmpty()){\n\t\t\t\t\toverTransition[i][j]=1;\n\t\t\t\t}\n\t\t\t\tarr.add(j);\n\t\t\n\t\t\t\tDFS(j, PATH);\n\t\t\t\tarr.remove(arr.size()-1);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t//}\n\t\tif (t==0){\n\t\t\tSystem.out.println();\n\t\t\tPATH.Add(arr);\n\t\t\t//arr = new ArrayList();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "de4f19a31d4065b37d0447e9a4172bc5", "score": "0.510946", "text": "void PFPathPlanning(Point currentPosition);", "title": "" }, { "docid": "bd311238118cd79cd0c543b409a4bf7f", "score": "0.5107351", "text": "@Override\n public boolean shouldSkipVertex(Vertex origin, Vertex target,\n SPTVertex parent, Vertex current, State state, ShortestPathTree spt,\n TraverseOptions traverseOptions) {\n if (current instanceof TPOfflineBlockArrivalVertex) {\n TPOfflineBlockArrivalVertex bav = (TPOfflineBlockArrivalVertex) current;\n StopTimeInstance instance = bav.getInstance();\n if (instance.getStop() == _originStop)\n return true;\n }\n \n /**\n * Skip a vertex that has moved on to the next service date\n */\n if (current instanceof HasStopTimeInstanceTransitVertex) {\n HasStopTimeInstanceTransitVertex v = (HasStopTimeInstanceTransitVertex) current;\n StopTimeInstance instance = v.getInstance();\n if (instance.getServiceDate() > _serviceDate + 12 * 60 * 60 * 1000)\n return true;\n }\n \n /**\n * Print the visited stop count as a show of progress\n */\n if (current instanceof HasStopTransitVertex) {\n HasStopTransitVertex v = (HasStopTransitVertex) current;\n StopEntry stop = v.getStop();\n if (_stops.add(stop) && _stops.size() % 100 == 0) {\n System.out.println(\"stops=\" + _stops.size());\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "a57c05fee5906069ff001ef1f5d024e1", "score": "0.51071644", "text": "@Override\n\tpublic void dijkstraShortestPath(Town sourceVertex) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "04e0cc5a52a5019b89b8cbcf61a14fe2", "score": "0.51045954", "text": "private void addRoute(){\n if(G == null){\n System.out.println(\"Please import a graph first (option 1).\");\n System.out.print(\"Please press ENTER to continue ...\");\n scan.nextLine();\n } else {\n for(int i=0; i<cityNames.length; i++){\n System.out.println(i+1 + \": \" + cityNames[i]);\n }\n System.out.print(\"Please enter source city (1-\" + cityNames.length + \"): \");\n int source = Integer.parseInt(scan.nextLine());\n System.out.print(\"Please enter destination city (1-\" + cityNames.length + \"): \");\n int destination = Integer.parseInt(scan.nextLine());\n System.out.print(\"Please enter the flight's distance (miles): \");\n int distance = Integer.parseInt(scan.nextLine());\n System.out.print(\"Please enter the flight's price (USD): \");\n int price = Integer.parseInt(scan.nextLine());\n Edge e = new Edge(source-1, destination-1, distance, price);\n G.addEdge(e);\n //System.out.println(e);\n System.out.println(\"Route added: from \" + cityNames[source-1] + \" to \" + cityNames[destination-1] +\n \" with a distance of \" + distance + \" miles, and a price of \" + price + \"USD.\");\n System.out.print(\"Please press ENTER to continue ...\");\n scan.nextLine();\n }\n\n }", "title": "" }, { "docid": "bb274ee0e9cb012c79a94bd098bac04e", "score": "0.5099079", "text": "protected static ArrayList<Integer> CreatePath(Map<Integer, Integer> path,\n int currentNode){\n ArrayList<Integer> completePath = new ArrayList<>();\n\n // Starts with the target node\n completePath.add(currentNode);\n\n /*\n While the current node was accessed from another node, trace back\n along this network, adding the source for reaching each node in the\n shortest way to the route\n */\n while (path.containsKey(currentNode)){\n currentNode = path.get(currentNode);\n completePath.add(currentNode);\n }\n\n /*\n The start node was never accessed from anywhere so the loop will\n break at this point when the start node is reached\n completePath is now the shortest route from the target node to the\n start node so this route should be reversed\n */\n Collections.reverse(completePath);\n\n // Returns the correctly ordered route\n return completePath;\n }", "title": "" }, { "docid": "33f2fef641ac930e150bc987a0d144f7", "score": "0.50972164", "text": "private ArrayList<Coordinates> getPath() {\n ArrayList<Coordinates> path = new ArrayList<>();\n Coordinates currentPoint = goalPosition;\n\n // iterate through the path, finding the next node by getting the parent of the current node\n while (currentPoint != startPosition) {\n if (!gameGrid[currentPoint.getX()][currentPoint.getY()].isType(GridPoint.Type.PLANET)) {\n path.add(currentPoint);\n }\n currentPoint = aStarGrid[currentPoint.getX()][currentPoint.getY()].getParent();\n }\n path.add(startPosition);\n Collections.reverse(path);\n return path;\n }", "title": "" }, { "docid": "dd42bc0828f0cd2b9af2a2bf3381fd8c", "score": "0.5084329", "text": "void createStar() {\n Point2D.Float point = start;\n p = new GeneralPath(GeneralPath.WIND_NON_ZERO);\n p.moveTo(point.x, point.y);\n p.lineTo(point.x + 20.0f, point.y - 5.0f); // Line from start to A\n point = (Point2D.Float)p.getCurrentPoint();\n p.lineTo(point.x + 5.0f, point.y - 20.0f); // Line from A to B\n point = (Point2D.Float)p.getCurrentPoint();\n p.lineTo(point.x + 5.0f, point.y + 20.0f); // Line from B to C\n point = (Point2D.Float)p.getCurrentPoint();\n p.lineTo(point.x + 20.0f, point.y + 5.0f); // Line from C to D\n point = (Point2D.Float)p.getCurrentPoint();\n p.lineTo(point.x - 20.0f, point.y + 5.0f); // Line from D to E\n point = (Point2D.Float)p.getCurrentPoint();\n p.lineTo(point.x - 5.0f, point.y + 20.0f); // Line from E to F\n point = (Point2D.Float)p.getCurrentPoint();\n p.lineTo(point.x - 5.0f, point.y - 20.0f); // Line from F to g\n p.closePath(); // Line from G to start\n }", "title": "" }, { "docid": "a1cef0d99f3d964bf77573d492465c03", "score": "0.50687414", "text": "public void reconstructPath() {\n\t\tNode current = Goal;\n\n\t\t// While the path doesn't reach the start, continue cycling\n\t\twhile (current != Start) {\n\t\t\tPath.add(current);\n\t\t\tcurrent = current.parent;\n\t\t}\n\t}", "title": "" }, { "docid": "bc90352f20fbd3f374d20a7afd025365", "score": "0.5063476", "text": "private List<Conf> obtainPathAlongGraph(Graph<Conf> roadMap,\n\t\t\tNode<Conf> startNode, Node<Conf> endNode) {\n\t\t// Initial setup\n\t\tSet<Node<Conf>> closed = new HashSet<>();\n\t\tMap<Conf, Conf> source = new HashMap<>();\n\t\tMap<Conf, Double> gVals = new HashMap<>();\n\t\tMap<Conf, Double> fVals = new HashMap<>();\n\t\tPriorityQueue<Node<Conf>> open = new PriorityQueue<>(roadMap.nodes.size(), new NodeCompVal<Conf>(fVals));\n\t\t\n\t\t// Setup first node\n\t\tgVals.put(startNode.data, 0.0);\n\t\tfVals.put(startNode.data, startNode.data.distance(endNode.data));\n\t\topen.add(startNode);\n\t\t\n\t\t// Constantly expand the highest priority nodes (lowest number)\n\t\tNode<Conf> cur;\n\t\twhile ((cur = open.poll()) != null) {\n\t\t\t// Test if we finished\n\t\t\tif (cur.equals(endNode)) {\n\t\t\t\t// Reconstruct path\n\t\t\t\tLinkedList<Conf> path = new LinkedList<>();\n\t\t\t\tConf tracer = cur.data;\n\t\t\t\twhile (tracer != null) {\n\t\t\t\t\tpath.addFirst(tracer);\n\t\t\t\t\ttracer = source.get(tracer);\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\t}\n\t\t\t\n\t\t\t// If not, visit this node\n\t\t\tclosed.add(cur);\n\t\t\t\n\t\t\t// For all successors\n\t\t\tfor (Node<Conf> successor : cur.neighbours) {\n\t\t\t\t// Ignore if already visited\n\t\t\t\tif (closed.contains(successor)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Get g-distance to this node\n\t\t\t\tdouble newGVal = gVals.get(cur.data) + cur.data.distance(successor.data);\n\t\t\t\tDouble currentGVal = gVals.get(successor.data);\n\t\t\t\t\n\t\t\t\t// If we haven't added it, or this distance is better, add it\n\t\t\t\tboolean inOpenSet = open.contains(successor);\n\t\t\t\tif (!inOpenSet || currentGVal == null || newGVal < currentGVal) {\n\t\t\t\t\t// Set this as a new node/update previous node data\n\t\t\t\t\tsource.put(successor.data, cur.data);\n\t\t\t\t\tgVals.put(successor.data, newGVal);\n\t\t\t\t\tfVals.put(successor.data, successor.data.distance(endNode.data));\n\t\t\t\t\t\n\t\t\t\t\t// Add this node to overall queue to visit if needed\n\t\t\t\t\tif (!inOpenSet) {\n\t\t\t\t\t\topen.add(successor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Fail if all nodes visited without success\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7947b9e5bf6b5f36c255afdff87d50c8", "score": "0.5062521", "text": "public static void run_floyd_warshall_path_reconstruction(){\n\t\tArrayList<Integer> vertices_list = new ArrayList<>();\n\t\tvertices_list.addAll(vertices);\n\t\tCollections.sort(vertices_list);\n\t\t\n\t\t// initialize the inner HashMaps of distances and next\n\t\tfor(Integer vertex : vertices_list){\n\t\t\tHashMap<Integer, Float> newHashMap1 = new HashMap<>();\n\t\t\tnewHashMap1.put(vertex, (float) 0.0);\n\t\t\tHashMap<Integer, Integer> newHashMap2 = new HashMap<>();\n\t\t\tdistances.put(vertex, newHashMap1);\n\t\t\tnext.put(vertex, newHashMap2);\n\t\t}\n\t\t\n\t\tfor (Integer vertex_1 : vertices_list){\n\t\t\tfor (Integer vertex_2 : vertices_list){\n\t\t\t\tif (vertex_1 == vertex_2){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (edges.containsKey(vertex_1) && edges.get(vertex_1).containsKey(vertex_2)){\n\t\t\t\t\t// distances[vertex_1][vertex_2] = edges[vertex_1][vertex_2]\n\t\t\t\t\tdistances.get(vertex_1).put(vertex_2, edges.get(vertex_1).get(vertex_2));\n\t\t\t\t\t// next[vertex_1][vertex_2] = vertex_2\n\t\t\t\t\tnext.get(vertex_1).put(vertex_2, vertex_2);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdistances.get(vertex_1).put(vertex_2, Float.MAX_VALUE);\n\t\t\t\t\tnext.get(vertex_1).put(vertex_2, null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (Integer k : vertices_list){\n\t\t\tfor (Integer i : vertices_list){\n\t\t\t\tfor (Integer j : vertices_list){\n\t\t\t\t\t// distances[i][j] = min(distances[i][j], distances[i][k] + distances[k][j])\n\t\t\t\t\t// update next[i][j] if using k is shorter\n\t\t\t\t\tif (distances.get(i).get(j) > distances.get(i).get(k) + distances.get(k).get(j)){\n\t\t\t\t\t\tdistances.get(i).put(j, distances.get(i).get(k) + distances.get(k).get(j));\n\t\t\t\t\t\tnext.get(i).put(j, k);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "521de0bec28e3ad63508d47d7851e920", "score": "0.5062398", "text": "public List<Edge<T, Double>> getPath() {\n return Collections.unmodifiableList(this.edges);\n }", "title": "" }, { "docid": "8f262f6d756cb4ec7816b295c0d38e3a", "score": "0.5060525", "text": "public TripGraph() {\n graph = new HashMap<>();\n }", "title": "" }, { "docid": "b7fd47348cf29b5cf185f7e3cb86a5cc", "score": "0.5050957", "text": "protected LinkedList<Vector2> constructPath(PathNode node, PathNode goal) {\n\t\tLinkedList<Vector2> path = new LinkedList<Vector2>();\n\t\tLogger.Debug(this.getClass(), \"constructPath\",\"Starting construction\");\n\t\twhile (node.pathParent != null) {\n\t\t\tLogger.Debug(this.getClass(), \"constructPath\",\"Adding \" + node.toString());\n\t\t\tpath.addFirst(new Vector2(node.x * Globals.TILE_PIXEL_WIDTH + (Globals.TILE_PIXEL_WIDTH * 0.5f),\n\t\t\t\t\tnode.y * Globals.TILE_PIXEL_HEIGHT + (Globals.TILE_PIXEL_HEIGHT * 0.5f)));\n\t\t\tLogger.Debug(this.getClass(), \"constructPath\",\"Setting \" + node.toString() + \" to \" + node.pathParent.toString());\n\n\t\t\tPathNode temp = node.pathParent;\n\t\t\tnode.pathParent = null;\n\t\t\tnode = temp;\n\t\t}\n\t\treturn path;\n\t}", "title": "" }, { "docid": "19fc0355fe08a4dee8f923e06a7c5e2b", "score": "0.5044377", "text": "private void stopPathRecording(){\n if(mIsPathRecording){\n mIsPathRecording = false;\n mCurrentJourney.setEndTimestamp(System.currentTimeMillis());\n //Save jurneys with at least 2 updates\n if(mCurrentJourney.getPath().size()>1){\n mJourneys.add(0, mCurrentJourney);\n }\n }\n }", "title": "" }, { "docid": "3ab73015bcc0e433614bd453ed96d015", "score": "0.5037892", "text": "private static int shortestPathLength(int[][] graph) {\n // the trick is we need to represent a path that has already been visited\n // we can use bit mask to represent path\n int n = graph.length;\n int fullMask = (1 << n) - 1; // from question: 1 <= n <= 12 // if n=5, 1 << 5 = 100000 = 32 (left shift)\n\n Set<String> visited = new HashSet<>();\n Queue<Node> queue = new LinkedList<>();\n\n // we may start from any node\n for (int i = 0; i < n; i++) {\n Node node = new Node(i, 1 << i);\n queue.offer(node);\n visited.add(node.toString());\n }\n\n int level = 0;\n while (!queue.isEmpty()) {\n int size = queue.size();\n for (int i = 0; i < size; i++) {\n Node node = queue.poll();\n if (node.mask == fullMask) { // see if we covered all nodes\n return level;\n }\n for (int id: graph[node.id]) {\n Node next = new Node(id, node.mask | (1 << id));\n System.out.println(next.toString());\n if (visited.contains(next.toString())) {\n continue;\n }\n queue.offer(next);\n visited.add(next.toString());\n }\n }\n level++;\n }\n return level;\n }", "title": "" }, { "docid": "0ae5a20ed936906954eabab36718a845", "score": "0.5037035", "text": "public void computeFastWay() {\r\n\t\tif (path != null)\r\n\t\t\tpath.setStandardAppearance();\r\n\t\tpath = net.computeFastWay2(start, stop);\r\n\t\tif (path != null) {\r\n\t\t\tpath.changePresentation(\"Way\");\r\n\t\t\t// path.debugPrint();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "53cdaad9eed284ff713801d64933b397", "score": "0.50260943", "text": "public int optimizePath() {\n MapLocation start, goal;\n \n int osize = index;\n int waypointIndex = 1;\n start = path[0];\n \n for(int c = 0; c < index - 2; c++) {\n //the goal will always be the MapLocation immediately after the waypoint\n goal = path[waypointIndex + 1];\n \n //try to go straight from start to goal\n if(canGo(start, goal)) {\n path[waypointIndex] = null;\n osize--;\n } else {\n //since we cant go directly from start to goal, we cannot get rid of the waypoint\n //so, lets make this waypoint the new start and continue\n start = path[waypointIndex];\n }\n \n //always advance to the next waypoint\n waypointIndex++;\n }\n return osize;\n }", "title": "" }, { "docid": "7d473231f39710a33a6a72e9d47c560a", "score": "0.5016572", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic void generatePaths(){\n\t\tthis.sp = board2[start[0]][start[1]];\r\n\t\t\t\r\n\t\tQueue lastVisited = new LinkedList();\r\n\t\tlastVisited.add(start);\r\n\t\taddPathSting2(start);\r\n\t\t\r\n\t\tint lastVisitedArray[][] = new int[dimension][dimension];\r\n\t\tlastVisitedArray[start[0]][start[1]] = 1;\r\n\t\t\r\n\t\tint totalVisitedArray[][] = new int[dimension][dimension];\t\t\r\n\t\t\r\n\t\tPath potentialDeadEnd[][] = new Path[dimension][dimension];\t\r\n\t\t\r\n\t\tint currentLoc[];\r\n\t\tint move[];\r\n\t\tIterator iterator;\t\r\n\t\t\t\r\n\t\t//loop through all locations lastVisited\r\n\t\twhile(lastVisited.size() != 0){\r\n\t\t\tcurrentLoc = (int[]) lastVisited.poll();\r\n\t\t\tboolean moveFound = false;\r\n\t\t\t//add it to totalVisitedArray\r\n\t\t totalVisitedArray[currentLoc[0]][currentLoc[1]] = 1;\r\n\t\t\titerator = piece.moves.iterator();\r\n\t\t\t//loop through all moves\r\n\t\t\twhile(iterator.hasNext()){\r\n\t\t\t\tmove = (int[]) iterator.next();\r\n\t\t\t\tint newLocation[] = {currentLoc[0] + move[0], currentLoc[1] + move[1]}; \r\n\t\t\t\t//if the move is to a location that is on the board and is not an obstacle and is not in totalVisitedArray\r\n\t\t\t\t//and not where you just came from\r\n\t\t\t\tif(newLocation[0] >= 0 && newLocation[1] >= 0 \r\n\t\t\t\t\t\t&& newLocation[0] < dimension && newLocation[1] < dimension\r\n\t\t\t\t\t\t&& board2[newLocation[0]][newLocation[1]] != -1\r\n\t\t\t\t\t\t&& totalVisitedArray[newLocation[0]][newLocation[1]] == 0\r\n\t\t\t\t\t\t&& !Arrays.equals(newLocation,currentLoc)){\r\n\t\t\t\t //and the matrix sum is SP\r\n\t\t\t\t if((board1[newLocation[0]][newLocation[1]] + board2[newLocation[0]][newLocation[1]]) == sp ){\r\n\t\t\t\t\t\t//add a path to it\r\n\t\t\t\t\t\tcreatePath(currentLoc, newLocation);\r\n\t\t\t\t\t\taddPathSting(currentLoc, newLocation);\r\n\t\t\t\t\t\t//add this new location to lastVisited\r\n\t\t\t\t\t\tlastVisited.add(newLocation);\r\n\t\t\t\t\t\tlastVisitedArray[newLocation[0]][newLocation[1]] = 1;\r\n\t\t\t\t\t\tmoveFound = true;\r\n\t\t\t\t }else{\r\n\t\t\t\t \t//if this move is on a straight line, then can take minus one of the sum.\r\n\t\t\t\t \t//this move is on a straight line if the next move in the same direction has the same or lower sp\r\n\t\t\t\t \tint nextLocation[] = {newLocation[0] + move[0], newLocation[1] + move[1]}; \r\n\t\t\t\t \tif(nextLocation[0] >= 0 && nextLocation[1] >= 0 \r\n\t\t\t\t\t\t\t\t&& nextLocation[0] < dimension && nextLocation[1] < dimension){ \r\n\t\t\t\t\t \tint lastSp = (board1[newLocation[0]][newLocation[1]] + board2[newLocation[0]][newLocation[1]]);\r\n\t\t\t\t\t \tint nextSp = (board1[nextLocation[0]][nextLocation[1]] + board2[nextLocation[0]][nextLocation[1]]);\r\n\t\t\t\t\t \tif( lastSp == nextSp && (nextSp - 1) == sp ){\r\n\t\t\t\t\t \t\tArrayList<Path> tempPaths = new ArrayList<Path>(); \r\n\t\t\t\t\t \t\t//add a temp path to it\r\n\t\t\t\t\t \t\ttempPaths.add(createTempPath(currentLoc, newLocation));\r\n\t\t\t\t\t \t\ttempPaths.add(createTempPath(newLocation, nextLocation));\r\n\t\t\t\t\t \t\tnextLocation[0] = newLocation[0] + move[0];\r\n\t\t\t\t\t \t\tnextLocation[1] = newLocation[1] + move[1]; \r\n\t\t\t\t\t \t\t//keep creating temp paths to unvisited locations on the board\r\n\t\t\t\t\t \t\twhile(nextLocation[0] >= 0 && nextLocation[1] >= 0 \r\n\t\t\t\t\t \t\t\t\t&& nextLocation[0] < dimension && nextLocation[1] < dimension\r\n\t\t\t\t\t \t\t\t\t&& board2[nextLocation[0]][nextLocation[1]] != -1\r\n\t\t\t\t\t \t\t\t\t&& totalVisitedArray[nextLocation[0]][nextLocation[1]] == 0){\r\n\t\t\t\t\t\t \t\t//add a temp path to it\r\n\t\t\t\t\t\t \t\ttempPaths.add(createTempPath(newLocation, nextLocation));\r\n\t\t\t\t\t\t \t\tnewLocation = nextLocation.clone();\r\n\t\t\t\t\t\t \t\t//if you find a sp location\r\n\t\t\t\t\t\t \t\tnextSp = (board1[nextLocation[0]][nextLocation[1]] + board2[nextLocation[0]][nextLocation[1]]);\r\n\t\t\t\t\t\t \t\tif (nextSp == sp){\r\n\t\t\t\t\t\t \t\t\t//add it to visited\r\n\t\t\t\t\t\t \t\t\tlastVisited.add(nextLocation);\r\n\t\t\t\t\t\t\t\t\t\t//add all temp paths to paths\r\n\t\t\t\t\t\t \t\t\tpaths.addAll(tempPaths);\r\n\t\t\t\t\t\t \t\t\taddPathSting(currentLoc, nextLocation);\r\n\t\t\t\t\t\t \t\t\tbreak;\r\n\t\t\t\t\t\t \t\t}\r\n\t\t\t\t\t\t \t\tnextLocation[0] = nextLocation[0] + move[0];\r\n\t\t\t\t\t\t \t\tnextLocation[1] = nextLocation[1] + move[1]; \r\n\t\t\t\t\t \t\t}\r\n\r\n\t\t\t\t\t \t}else if (nextSp == sp){\r\n\t\t\t\t\t \t\t//add a path to it\r\n\t\t\t\t\t \t\tcreatePath(currentLoc, newLocation);\r\n\t\t\t\t\t \t\taddPathSting(currentLoc, newLocation);\r\n\t\t\t\t\t\t\t\t//add this new location to lastVisited\r\n\t\t\t\t\t\t\t\tlastVisited.add(newLocation);\r\n\t\t\t\t\t\t\t\tlastVisitedArray[newLocation[0]][newLocation[1]] = 1;\r\n\t\t\t\t\t \t\t//add a path to it\r\n\t\t\t\t\t\t\t\tcreatePath(newLocation, nextLocation);\r\n\t\t\t\t\t\t\t\taddPathSting(newLocation, nextLocation);\r\n\t\t\t\t\t\t\t\t//add this new location to lastVisited\r\n\t\t\t\t\t\t\t\tlastVisited.add(nextLocation);\r\n\t\t\t\t\t\t\t\tlastVisitedArray[nextLocation[0]][nextLocation[1]] = 1;\r\n\t\t\t\t\t\t\t\tmoveFound = true;\r\n\t\t\t\t\t \t}\r\n\t\t\t\t \t}\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//for all the new moves that are optimal, repeat\r\n\t}", "title": "" }, { "docid": "c5351ddbf437364962b48ccb55a59f53", "score": "0.501515", "text": "public List<Node> getPath(Node start, Node destination) throws Exception {\n List<Node> open = new ArrayList<Node>();\n List<Node> closed = new ArrayList<Node>();\n\n start.g = 0;\n start.h = estimateDistance(start, destination);\n start.f = start.h;\n\n open.add(start);\n\n while (true) {\n Node current = null;\n\n if (open.size() == 0) {\n throw new Exception(\"No route found\");\n }\n\n // Take the lower node cost\n for (Node node : open) {\n if (current == null || node.f < current.f) {\n current = node;\n }\n }\n\n // Break the loop\n if (current.equals(destination)) {\n destination = current;\n break;\n }\n\n open.remove(current);\n closed.add(current);\n\n List<Node> neighbors = getNeighbors(current);\n for (Node neighbor : neighbors) {\n int nextG = current.g + neighbor.cost;\n\n // Only keep the less expensive neighbor\n if (nextG < neighbor.g) {\n open.remove(neighbor);\n closed.remove(neighbor);\n }\n\n if (!open.contains(neighbor) && !closed.contains(neighbor)) {\n neighbor.g = nextG;\n neighbor.h = estimateDistance(neighbor, destination);\n neighbor.f = neighbor.g + neighbor.h;\n // neighbor.f = neighbor.g;\n // ^ for Dijkstra: http://stackoverflow.com/a/16268762\n neighbor.parent = current;\n open.add(neighbor);\n }\n }\n }\n\n // Create the node list of the route\n List<Node> nodes = new ArrayList<Node>();\n Node current = destination;\n while (current.parent != null) {\n nodes.add(current);\n current = current.parent;\n }\n nodes.add(start);\n Collections.reverse(nodes);\n\n return nodes;\n }", "title": "" }, { "docid": "1f608b3c0fad9560ef4d7d080bb86925", "score": "0.5014557", "text": "private void populateRouteGraph() {\n routeChart.getData().clear();\n ObservableList<String> airportNames = FXCollections.observableArrayList();\n ArrayList<DataPoint> myPoints;\n\n if (getCountry() == null) {\n ArrayList<String> menus = new ArrayList<>(Arrays.asList(getCountry()));\n myPoints = Filter.filterSelections(menus, \"\", DataTypes.AIRPORTPOINT);\n } else if (getCountry().equals(\"All\") || getCountry().equals(\"Select Country\")) {\n myPoints = Filter.getAllPoints(DataTypes.AIRPORTPOINT);\n } else {\n ArrayList<String> menus = new ArrayList<>(Arrays.asList(getCountry()));\n myPoints = Filter.filterSelections(menus, \"\", DataTypes.AIRPORTPOINT);\n }\n\n myPoints = Analyser.rankAirportsByRoutes(myPoints);\n ArrayList<AirportPoint> myAirportPoints = new ArrayList<>();\n for (DataPoint currentPoint : myPoints) {\n AirportPoint cp2 = (AirportPoint) currentPoint;\n myAirportPoints.add(cp2);\n }\n\n if (myPoints.size() > 1) {\n xAxisRoute.setCategories(airportNames);\n xAxisRoute.setTickLabelRotation(270);\n XYChart.Series<String, Integer> series = new XYChart.Series<>();\n XYChart.Series<String, Integer> series2 = new XYChart.Series<>();\n int maxAirports = 20;\n if (myAirportPoints.size() < 20) {\n maxAirports = myAirportPoints.size();\n }\n\n for (int i = 0; i < maxAirports; i++) {\n String name = myAirportPoints.get(i).getAirportName();\n if (!airportNames.contains(name)) {\n airportNames.add(name);\n } else {\n airportNames.add(name + i);\n }\n }\n for (int i = 0; i < maxAirports; i++) {\n DataPoint currentPoint = myPoints.get(i);\n AirportPoint castedPoint = (AirportPoint) currentPoint;\n series.getData().add(new XYChart.Data<>(airportNames.get(i), castedPoint.getIncomingRoutes()));\n series2.getData().add(new XYChart.Data<>(airportNames.get(i), castedPoint.getOutgoingRoutes()));\n }\n routeChart.getData().addAll(series, series2);\n }\n }", "title": "" }, { "docid": "c8deef069bd8b8c38276e6c42398f66e", "score": "0.5007909", "text": "public void updateBestPath(ArrayList path) {\n bestPathList.clear();\n\n for (int j = 0; j < path.size() - 1; j++) { // go thru the path\n TSACity from = (TSACity) path.get(j);\n TSACity to = (TSACity) path.get(j+1);\n BestPath p = new BestPath(from, to, this); // create a red path between them\n bestPathList.add(p); // ... and store it both in list\n bestPath.putObjectAt(from.getX(), from.getY(), p); // ... and grid\n }\n }", "title": "" }, { "docid": "cae32facd5a534fd35a95aeda3fb342e", "score": "0.49891642", "text": "protected void calculateEdges() {\n // Clear existing edge list\n pathEdges.clear();\n\n for (int i = 0; i < (pathNodes.size() - 1); i++) {\n // Locate forward edges\n boolean found = false;\n for (Edge edge : pathNodes.get(i).getEdges().values()) {\n if (edge.getEnd().equals(pathNodes.get(i + 1))) {\n // Forward edge found, add it to the list.\n pathEdges.add(edge);\n found = true;\n }\n }\n if (!found) {\n pathEdges.clear();\n pathNodes.clear();\n return;\n }\n }\n }", "title": "" }, { "docid": "23be28c4ab994369efb4865b123ea613", "score": "0.49847975", "text": "public static int[] calculate( AbstractTSP tsp) {\n AbstractTSP.distance = Delaunay.getDelaunay(tsp._x, tsp._y);\n// tsp.distance = RemoveEdges.execute(tsp);\n TSP_Graphics graphics = new TSP_Graphics();\n //array of permutation\n int[] permut = new int[AbstractTSP.distance.length];\n //citys selected to tour\n ArrayList<Integer> tour = new ArrayList<>(permut.length);\n Graph graph = new Graph(AbstractTSP.distance);\n\n ArrayList<Integer> notSelected = new ArrayList<>(permut.length);\n for (int i = 0; i < permut.length; i++) {\n notSelected.add(i);\n }\n int begin = (new Random()).nextInt(permut.length);\n int end = graph.getBestEdge(begin,0);\n tour.add((Integer) begin);\n tour.add((Integer) end);\n graph.removeEdge(end, begin);\n\n while (tour.size() < AbstractTSP.distance.length) {\n int edge1 = graph.getBestEdge(begin,end);\n int edge2 = graph.getBestEdge(end,begin);\n if (AbstractTSP.distance[edge1][begin] < AbstractTSP.distance[edge2][end]) {\n tour.add(0, edge1);\n graph.removeEdge(edge1, begin);\n graph.removeVertex(begin);\n begin = edge1;\n } else {\n tour.add((Integer) edge2);\n graph.removeEdge(edge2, end);\n graph.removeVertex(end);\n end = edge2;\n }\n\n\n //transfer ArrayList to permutation\n int [] path = new int[tour.size()];\n for (int i = 0; i < tour.size(); i++) {\n path[i] = tour.get(i);\n }\n graphics.getImage(tsp, 1000, 1000, \"_GeredyEdges.jpg\", path);\n System.out.println(\"\" + tour);\n System.out.println(\"\");\n }\n\n //transfer ArrayList to permutation\n for (int i = 0; i < permut.length; i++) {\n permut[i] = tour.get(i);\n }\n return permut;\n }", "title": "" }, { "docid": "3bcdf405db7a7aa0061a9ce3f6d0df57", "score": "0.49803537", "text": "@Override\n public void dijkstraShortestPath(){\n Vertex<T> source = graph.vertexList.get(0);\n // Holds distance as key and Vertex as value, sorted in ascending order of distance\n Map<Integer, Vertex<T>> mapSortedByDistance = new TreeMap<Integer, Vertex<T>>((Integer o1, Integer o2) -> {\n int result = o1.compareTo(o2);\n return result == 0 ? 1: result;\n });\n\n // Holds final result- vertex as key and distance as distance\n Map<Vertex<T>, Integer> distanceMap = new HashMap<Vertex<T>, Integer>(graph.vertexList.size() * 4/3 +1);\n // Holds final result - Destination vertex as key and immediate parent as value\n Map<Vertex<T>, Vertex<T>> parentMap = new HashMap<Vertex<T>, Vertex<T>>(graph.vertexList.size() * 4/3 +1);\n // Source's immediate parent would be always null\n parentMap.put(source, null);\n // source distance is always 0\n mapSortedByDistance.put(0, source);\n // taking Integer.MAX_VALUE distance for rest of the vertex\n graph.vertexList.stream().filter(vertex -> vertex.value != source.value).forEach(vertex -> mapSortedByDistance.put(Integer.MAX_VALUE, vertex));\n\n while (mapSortedByDistance.size() > 0){\n Iterator<Map.Entry<Integer, Vertex<T>>> itr = mapSortedByDistance.entrySet().iterator();\n Map.Entry<Integer, Vertex<T>> entry = itr.next();\n Vertex<T> vertex = entry.getValue();\n Integer distance = entry.getKey();\n itr.remove();\n distanceMap.put(vertex, distance);\n Map<Integer, Vertex<T>> tempMap = new HashMap<Integer, Vertex<T>>(vertex.neighbours.size() * 4/3+1);\n while (itr.hasNext()){\n Map.Entry<Integer, Vertex<T>> entry1 = itr.next();\n if (vertex.neighbours.contains(entry1.getValue())) {\n Vertex<T> vertex1 = entry1.getValue();\n Integer dis = entry1.getKey();\n int distanceFromNeighbour = vertex.edges.stream().filter( edge -> edge.destination.value == vertex1.value).findFirst().get().weight;\n if (dis > distance + distanceFromNeighbour){\n itr.remove();\n tempMap.put(distance + distanceFromNeighbour, vertex1);\n parentMap.put(vertex1, vertex);\n }\n }\n }\n mapSortedByDistance.putAll(tempMap);\n }\n\n showVertexDistanceFromSource(distanceMap);\n showPathDestinationToSource(parentMap);\n }", "title": "" }, { "docid": "5150e7dd099432a08bd70d05cf577e01", "score": "0.4978555", "text": "private static void printPath(List<Node> path) {\r\n\t\tif (path != null && path.size() > 0) {\r\n\t\t\tNode prevNode = null;\r\n\t\t\tfor (Node node : path) {\r\n\t\t\t\tif (prevNode == null) {\r\n\t\t\t\t\tprevNode = node;\r\n\t\t\t\t\tSystem.out.print(\" \" + prevNode.getName());\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tList<Edge> edges = prevNode.getAdjacencies();\r\n\t\t\t\tdouble minDist = Double.POSITIVE_INFINITY;\r\n\t\t\t\tfor (Edge edge : edges) {\r\n\t\t\t\t\tif (edge.getTarget().getName()\r\n\t\t\t\t\t\t\t.equalsIgnoreCase(node.getName())) {\r\n\t\t\t\t\t\tif (edge.getWeight() < minDist) {\r\n\t\t\t\t\t\t\tminDist = edge.getWeight();\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\tSystem.out.print(\" \" + minDist + \" \" + node.getName());\r\n\t\t\t\tprevNode = node;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Path does not exist\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4704cda28e7d9eb97c50042168405f26", "score": "0.4978221", "text": "public void travel(List<Room> path);", "title": "" }, { "docid": "8255365c41e2580457b45fafdd6af906", "score": "0.49740332", "text": "private LinkedList<Point2D> calcPath(int x, int y, Point2D destination) {\n LinkedList<Point2D> newPath = new LinkedList<>();\n if (!(x < 0 || x > getRealBuilding().getWidth() || y < 0 ||\n y > getRealBuilding().getDepth() ||\n destination.getX() < 0 || destination.getX() > getRealBuilding().getWidth() ||\n destination.getY() < 0 || destination.getY() > getRealBuilding().getDepth())) {\n\n // both point are inside the building\n PriorityQueue<ExpandedGridPoint> queueA = new PriorityQueue<>();\n PriorityQueue<ExpandedGridPoint> queueB = new PriorityQueue<>();\n HashMap<Point2D, Point2D> childParentMapA = new HashMap<>();\n HashMap<Point2D, Point2D> childParentMapB = new HashMap<>();\n\n // set up queues and maps with location and destination\n Point2D location = new Point2D.Double(x, y);\n queueA.add(new ExpandedGridPoint(location, 0, location.distance(destination)));\n queueB.add(new ExpandedGridPoint(destination, 0, destination.distance(location)));\n childParentMapA.put(location, null);\n childParentMapB.put(destination, null);\n\n // create 2 BFS trees until a common node is found or we find one queue empty (the start of that queue is isolated)\n Point2D commonPoint = null;\n while (commonPoint == null && (queueA.size() > 0 && queueB.size() > 0)) {\n ExpandedGridPoint A = queueA.poll();\n ExpandedGridPoint B = queueB.poll();\n\n // expand frontier A\n //noinspection Duplicates - surpress warning since loops are similar but cannot be a separate function\n for (Point2D n : getSurroundingGridPoints(A.gridPoint)) {\n if (!childParentMapA.containsKey(n)) {\n // unseen point\n childParentMapA.put(n, A.gridPoint); // mark A as parent of n\n RealObject obstacle =\n getRealBuilding().destinationObstructed(n, getFloor(), false);\n if (obstacle == null || obstacle instanceof RealHuman) {\n // the point is not obstructed so it can be in our path since we can move there\n if (childParentMapB.containsKey(n)) {\n // we found our shared node\n commonPoint = n;\n } else {\n ExpandedGridPoint newPoint = new ExpandedGridPoint(\n n, A.travel + n.distance(A.gridPoint),\n n.distance(destination));\n queueA.add(newPoint);\n }\n }\n }\n }\n // expand frontier B\n //noinspection Duplicates - surpress warning since loops are similar but cannot be a separate function\n for (Point2D n : getSurroundingGridPoints(B.gridPoint)) {\n if (!childParentMapB.containsKey(n)) {\n // unseen point\n childParentMapB.put(n, B.gridPoint); // mark B as parent of n\n RealObject obstacle =\n getRealBuilding().destinationObstructed(n, getFloor(), false);\n if (obstacle == null) {\n // the point is not obstructed so it can be in our path since we can move there\n if (childParentMapA.containsKey(n)) {\n // we found our shared node\n commonPoint = n;\n } else {\n ExpandedGridPoint newPoint = new ExpandedGridPoint(\n n, B.travel + n.distance(B.gridPoint),\n n.distance(location));\n queueB.add(newPoint);\n }\n }\n }\n }\n }\n\n if (commonPoint != null) {\n newPath = new LinkedList<>(); // we have a path so instantiate our variable\n\n // trace path both ways\n Point2D p = commonPoint;\n // trace from halfway point to start and add all nodes in between to the path\n while (p != null) {\n newPath.addFirst(p);\n p = childParentMapA.get(p);\n }\n // common point is already in path, start with its parent in the other direction\n p = childParentMapB.get(commonPoint);\n // trace from halfway point to end and add all nodes in between to the path\n while (p != null) {\n newPath.add(p);\n p = childParentMapB.get(p);\n }\n // path is constructed, return it\n }\n }\n\n return newPath;\n }", "title": "" }, { "docid": "151d6fd922810a0ee36d6aad825cc64f", "score": "0.49721465", "text": "private void removeNodesFromPath(AntUser firstNode, TimeLapse timeLapse) {\n List<AntUser> path = intendedPath.getPath();\n\n for (int i = 0; i < path.size(); i++) {\n if (firstNode == path.get(i)) {\n // Remove all subsequent nodes from the path and intention ants,\n // as well as calculating the new merit of the remaining path\n for (int j = path.size() - 1; j >= i; j--) {\n AntUser followingAntUser = path.get(j);\n IntentionAnt antToRemove = intentionAnts.keySet().stream()\n .filter(o -> o.getSecondaryAgent() == followingAntUser)\n .findFirst().get();\n intentionAnts.remove(antToRemove);\n }\n\n intendedPath.removeAntUserFromPath(firstNode);\n if (intendedPath.getPath().isEmpty()) {\n state = delegateMasState.initialState;\n payload = Optional.absent();\n chargingStatus = ChargingStatus.Idle;\n return;\n }\n recalculateMeritCurrentPath(timeLapse);\n break;\n }\n }\n\n }", "title": "" }, { "docid": "55961f4aee34533254dc77d933353d3e", "score": "0.496839", "text": "@Override\n public Node getGraph() {\n return null;\n }", "title": "" } ]
9419f435faed79e23f203fd188df23c2
Converts a byte array to an integer value
[ { "docid": "95bf9b9b543a8e6a29f98a63b65021e3", "score": "0.7715635", "text": "public static int byteArrayToInt(byte[] bytes) {\r\n\t\tint n = 0;\r\n\t\tn += ((int) bytes[0] & 0xff) << 24;\r\n\t\tn += ((int) bytes[1] & 0xff) << 16;\r\n\t\tn += ((int) bytes[2] & 0xff) << 8;\r\n\t\tn += ((int) bytes[3] & 0xff) << 0;\r\n\t\treturn n;\r\n\t}", "title": "" } ]
[ { "docid": "d78a757e8be6e64a639754e86bfd7799", "score": "0.8687429", "text": "public static int toInt(byte[] array) {\n int i = 0;\n i += ((int) array[0] & 0xFF) << 24;\n i += ((int) array[1] & 0xFF) << 16;\n i += ((int) array[2] & 0xFF) << 8;\n i += ((int) array[3] & 0xFF);\n return i;\n }", "title": "" }, { "docid": "6f167203a4f46d66ee194c0d4ae5cabb", "score": "0.7986069", "text": "public static int toInt(byte[] bytes) {\r\n return ByteBuffer.wrap(bytes).getInt();\r\n }", "title": "" }, { "docid": "58503e366535d62f928d8f0b2481d392", "score": "0.785866", "text": "private int convertToInteger( final byte[] aContent ) throws IOException\n {\n if ( ( aContent == null ) || ( ( aContent.length <= 0 ) || ( aContent.length > 4 ) ) )\n {\n throw new IOException( \"Failed to instantiate integer: no/invalid content!\" );\n }\n\n int result = aContent[0];\n for ( int i = 1; i < aContent.length; i++ )\n {\n result <<= 8;\n result |= ( aContent[i] & 0xFF );\n }\n\n return result;\n }", "title": "" }, { "docid": "428ea9aac8e49751b9da91e43e478e4b", "score": "0.78585404", "text": "public static int bytesToInt(byte[] buffer)\n {\n return bytesToInt(buffer, 0);\n }", "title": "" }, { "docid": "ebe2a6540e3134adaddea579a6a1f445", "score": "0.7852386", "text": "private int bytesToInteger(byte[] bytes, int offset) {\n int result = 0;\n for (int i = 3; i >= 0; i--) {\n result <<= 8;\n result |= (bytes[offset + i] & 0xFF);\n }\n return result;\n }", "title": "" }, { "docid": "30b3c534322331f86d3d24bc8781eb18", "score": "0.78523463", "text": "private int byteArrayToInt(byte[] bytes) {\n \n int value = (0xFF & bytes[0]) << 24;\n value += (0xFF & bytes[1]) << 16;\n value += (0xFF & bytes[2]) << 8;\n value += 0xFF & bytes[3];\n \n return value;\n }", "title": "" }, { "docid": "a579c6cdecc3215190758e04842064f8", "score": "0.7810386", "text": "private int arrayToInt(byte[] intBytes) {\n\t\tint result = 0;\n\t\tfor(int i = 0; i < intBytes.length; i++) {\n\t\t\tresult = (result << 8) + (intBytes[i] & 0xff);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "f1301599e59cab96fdd0136182ead403", "score": "0.7774508", "text": "public static int byteArrayToInteger(byte[] bArray) {\n\t\tif (bArray.length != 4) {\r\n\t\t\tlogger.log(Level.SEVERE,\"\"+_numClient+\" byteArrayToInteger \"+bArray.length);\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tByteBuffer bb = ByteBuffer.wrap(bArray);\r\n\t\t// si on est en litteEndian on fera\r\n\t\t//bb.order(ByteOrder.LITTLE_ENDIAN);\r\n\t\treturn bb.getInt();\t\r\n\t}", "title": "" }, { "docid": "823a0336febdd01bfafebc84dd3e477f", "score": "0.7759748", "text": "public static int toInt(final byte[] bytes)\n {\n return toInt(bytes[0], bytes[1], bytes[2], bytes[3]);\n }", "title": "" }, { "docid": "b943bc8f0a97613797f95993038d4c13", "score": "0.774441", "text": "public static int byteArrayToType(byte[] bytes) {\r\n\t\tint n = 0;\r\n\t\tn += ((int) bytes[0] & 0xff) << 0;\r\n\t\treturn n;\r\n\t}", "title": "" }, { "docid": "ad1ea44f31936502866a7ab6a1a4f851", "score": "0.77308357", "text": "public static int toInt(byte[] array, int offset) {\n // FIXME: It may be better to do as in toInt(byte[]) but with offsets.\n // But since I absolutly don't know what the compiler and the\n // jvm will do of this code, it sounds like premature\n // optimisation. Thus I'll leave it as it for now.\n byte[] i = new byte[4];\n System.arraycopy(array, offset, i, 0, 4);\n return toInt(i);\n }", "title": "" }, { "docid": "c33f505239e547ee755ec214491cf62f", "score": "0.76939815", "text": "public static int byteArrayToInt(byte[] bytes) {\n\t\tint val = 0;\n\t\t\n\t\tfor(int i = 0; i < bytes.length; i++) {\n\t\t\tint n = (bytes[i] < 0 ? (int)bytes[i] + 256 : (int)bytes[i]) << (8 * i);\n\t\t\tval += n;\n\t\t}\n\t\t\n\t\treturn val;\n\t}", "title": "" }, { "docid": "c54fa80037b2f8cc02ed6712e68ce49e", "score": "0.7651684", "text": "public static int byteArrayToInt(byte[] b)\r\n/* 210: */ {\r\n/* 211:317 */ int start = 0;\r\n/* 212:318 */ int low = b[start] & 0xFF;\r\n/* 213:319 */ int high = b[(start + 1)] & 0xFF;\r\n/* 214:320 */ return high << 8 | low;\r\n/* 215: */ }", "title": "" }, { "docid": "085459ee592b5a87cf620416a650890b", "score": "0.7645662", "text": "public static int byteArrayToInt(byte[] intBytes){\n ByteBuffer byteBuffer = ByteBuffer.wrap(intBytes);\n return byteBuffer.getInt();\n }", "title": "" }, { "docid": "035fe7a977fc71c6087a30bcc8ba0be2", "score": "0.76019895", "text": "public static int byteArrayToInt(byte[] b) \n\t{\n\t return b[3] & 0xFF |\n\t (b[2] & 0xFF) << 8 |\n\t (b[1] & 0xFF) << 16 |\n\t (b[0] & 0xFF) << 24;\n\t}", "title": "" }, { "docid": "4c193399c34f4c643324f8b8c2535a2c", "score": "0.75869334", "text": "public static int getInt(final byte[] b) {\n return getInt(b, 0);\n }", "title": "" }, { "docid": "435e269201e1b8511021508260856328", "score": "0.7537032", "text": "public static int bytesToInt( byte[] abInt ) \n {\n Util.panicIf(abInt.length != 4);\n Util.debug(\"Util.bytesToInt(): abInt: \" + abInt[0] + \",\" + abInt[1] + \",\" + abInt[2] + \",\" + abInt[3]);\n int byteValue3 = (256 + abInt[3]) & 255;\n int byteValue2 = ((256 + abInt[2]) & 255) * 256;\n int byteValue1 = ((256 + abInt[1]) & 255) * 256 * 256;\n int byteValue0 = ((256 + abInt[0]) & 255) * 256 * 256 * 256;\n int i = byteValue0 | byteValue1 | byteValue2 | byteValue3;\n \n return i;\n }", "title": "" }, { "docid": "d2a02a81ea22b960b9e4d1ed30853f83", "score": "0.7508169", "text": "public static int convert1ByteToInt(byte[] buffer, int offset)\n throws IOException\n {\n // ByteArrayInputStream byte_in = new ByteArrayInputStream(buf);\n // DataInputStream data_in = new DataInputStream(byte_in);\n // /* skip the offset */\n // data_in.skip(off);\n //\n // int value;\n // value = data_in.readUnsignedByte();\n //\n // return value;\n return convertNBytesToInt(buffer, offset, 1);\n // TODO : probably more efficient to use : return\n // unsignedByteToInt(buf[off]) ??\n }", "title": "" }, { "docid": "a0e9d9b90664ea0615e2f3a6fd6c13ff", "score": "0.7505098", "text": "private int byteArrayToInt(byte[] b, int offset) {\n int value = 0;\n for (int i = 0; i < 4; i++) {\n int shift = (i) * 8;\n value += (b[i + offset] & 0x000000FF) << shift;\n }\n return value;\n }", "title": "" }, { "docid": "aa013e700d3627b9721e47e3c11cfec7", "score": "0.7488", "text": "public static int convertToInt(byte[] bytes){\n\t\tif(bytes.length > 4)\n\t\t\tthrow new IllegalArgumentException(\"The number of bytes can not exceed four.\");\n\t\tint nbOfBytes = bytes.length;\n\t\tbyte[] convertedBytes = new byte[4];\n\t\tfor(int i=0; i<nbOfBytes; i++){\n\t\t\tconvertedBytes[i+(4-nbOfBytes)] = bytes[i];\n\t\t}\n\t\tByteBuffer bb = ByteBuffer.wrap(convertedBytes); // big-endian by default\n\t\tint result = bb.getInt();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9df63e62dc843faa87b1f816841c9ca1", "score": "0.7443977", "text": "public int byteArrayToInt(byte[] bytes, int off) {\n\t\tint i = 0;\n\t\tfor(int x = 0; x < 4; x++)\n\t\t\ti = (i << 8) | (bytes[x+off] & 0xFF);\n\t\treturn i;\n\t}", "title": "" }, { "docid": "6fc9c8c8e225fbd9bdeab96e28f59ca1", "score": "0.7386108", "text": "private int[] bytesToInts(byte[] inArray) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tDataInputStream bis = new DataInputStream(new ByteArrayInputStream(inArray));\n\n\t\t// Define an array to return\n\t\tint[] outArr = new int[inArray.length/4];\n\t\tfor(int i=0; i<inArray.length/4;i++){\n\t\t\toutArr[i] = bis.readInt();\n\t\t}\n\n\t\treturn outArr;\n\t}", "title": "" }, { "docid": "67d852fe0060d5af3b732c57b1777d77", "score": "0.7321637", "text": "public static int fromByteArray(byte[] bytes) {\n return bytes[0] << 24 | (bytes[1] & 0xFF) << 16 | (bytes[2] & 0xFF) << 8 | (bytes[3] & 0xFF);\n }", "title": "" }, { "docid": "2312ec61e8c227347c192a0c4371a5b9", "score": "0.72861445", "text": "public static int byteToInt(byte[] src) {\n return byteToInt(src, ByteOrder.LITTLE_ENDIAN);\n }", "title": "" }, { "docid": "9377cfe2d01facff58df4cf567e57ca9", "score": "0.7274753", "text": "public static int parseInt (byte[] bArray) throws NumberFormatException {\n return parseInt (bArray,10);\n }", "title": "" }, { "docid": "bff0bb9a478d4822c8ca5edb627e246c", "score": "0.7248184", "text": "private int unsignedDualByteToInt(final byte[] byteArray) {\n \t\tint i = 0;\n \t\ti |= byteArray[0] & 0xFF;\n \t\ti <<= 8;\n \t\ti |= byteArray[1] & 0xFF;\n \t\treturn i;\n \t}", "title": "" }, { "docid": "d8017701d9a21b3bd04d530ed07c692e", "score": "0.72401595", "text": "public static int[] byteToIntArray(byte[] data, int offset, int length) \r\n {\r\n int[] temp = new int[length];\r\n for (int i = 0; i < length; i++) {\r\n temp[i] = (int)data[i+offset]<0 \r\n ? 256+(int)data[i+offset] \r\n : (int)data[i+offset];\r\n }\r\n return temp;\r\n }", "title": "" }, { "docid": "9b03b71697485635fcf5fbe2a48c687c", "score": "0.7231421", "text": "public static int unsignedByte2Int(byte[] src, int offset) {\n return src[offset] & 0xFF;\n }", "title": "" }, { "docid": "a91c1f3d8f1ec28a9f1ec659e609bdd8", "score": "0.71548295", "text": "private int GetIntValue( byte[] array, int startIndex )\n {\n\n return ByteBuffer.wrap(array, startIndex, 4).getInt();\n }", "title": "" }, { "docid": "29bddf2f105a8a8d90f26c72e759dad6", "score": "0.7152733", "text": "public static int toInt(final byte[] bytes, final int start)\n {\n return toInt(bytes[start], bytes[start + 1], bytes[start + 2], bytes[start + 3]);\n }", "title": "" }, { "docid": "0f398aab59b314691a95f627859c21c7", "score": "0.7138135", "text": "public static int fromBytes (byte... b)\r\n {\r\n int value = 0;\r\n for (int i = 0; i < b.length; i++)\r\n {\r\n value = value | (b[i] & 0xFF) << (8 * i);\r\n }\r\n return value;\r\n }", "title": "" }, { "docid": "1f8bddb0f47e9c67a242aeb5add6458c", "score": "0.70599246", "text": "int convertRxbytesToInt(int offset, byte buffer[]) {\n\t\tint v;\n\t\tbyte[] t = new byte[4];\n\n\t\tfor (int i=0; i<4; i++) {\n\t\t\tt[3-i] = buffer[i+offset];\n\t\t}\n\n\t\tv = ByteBuffer.wrap(t).getInt(0);\n\n\t\treturn v; \n\t}", "title": "" }, { "docid": "d9d7107da9d580729fd723867a12392d", "score": "0.7059641", "text": "int fromBytes(byte[] data, int pos);", "title": "" }, { "docid": "43360f36a9aeff4715325428cb01677f", "score": "0.7034959", "text": "public static int bytesToInt(byte[] buffer, int index)\n {\n // note: java treats byte as a signed value, while the ID3v2.x spec treats bytes as unsigned.\n // this necessitates converting each byte to a larger value (integer) and then shifting and adding them.\n return ((buffer[index] & 0xFF ) << 24) + ((buffer[index + 1] & 0xFF) << 16) + ((buffer[index + 2] & 0xFF) << 8) + (buffer[index + 3] & 0xFF);\n }", "title": "" }, { "docid": "75d01c9953ca530a7f5175d901530bdc", "score": "0.6998546", "text": "public static final int getInt (byte[] data, int offset)\n {\n int result = (data[offset] & 0x0F);\n result += (((data[offset] >> 4) & 0x0F) * 16);\n result += ((data[offset + 1] & 0x0F) * 256);\n result += (((data[offset + 1] >> 4) & 0x0F) * 4096);\n result += ((data[offset + 2] & 0x0F) * 65536);\n result += (((data[offset + 2] >> 4) & 0x0F) * 1048576);\n result += ((data[offset + 3] & 0x0F) * 16777216);\n result += (((data[offset + 3] >> 4) & 0x0F) * 268435456);\n return (result);\n }", "title": "" }, { "docid": "f1d830e006687b0f44f9767ee07c23b2", "score": "0.69748825", "text": "public static int convertMultiByteToInt(int[] bytes) {\n\t\t\n\t\tif (bytes.length > 4) {\n\t\t\tthrow new RuntimeException(\"too big\");\n\t\t} else if (bytes.length == 4 && ((bytes[0] & 0x80) == 0x80)) {\n\t\t\t// 0x80 == 10000000, 0x7e == 01111111\n\t\t\tthrow new IllegalArgumentException(\"Java int can't support a four byte value with msb byte greater than 7e\");\n\t\t}\n\t\t\n\t\tint val = 0;\n\t\t\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\t\n\t\t\tif (bytes[i] > 0xFF) {\n\t\t\t\tthrow new IllegalArgumentException(\"Values exceeds byte range: \" + bytes[i]);\n\t\t\t}\n\t\t\t\n\t\t\tif (i == (bytes.length - 1)) {\n\t\t\t\tval+= bytes[i];\n\t\t\t} else {\n\t\t\t\tval+= bytes[i] << ((bytes.length - i - 1) * 8);\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn val;\n\t}", "title": "" }, { "docid": "4e60f594fddfb0bf5c1350c145f5759d", "score": "0.69571954", "text": "public static int byteToInt(byte[] src, ByteOrder byteOrder) {\n if (src.length != 4) {\n throw new IllegalArgumentException(\"Attempted to convert size \" +\n src.length + \" to int (invalid size)\");\n }\n return ByteBuffer.wrap(src).order(byteOrder).getInt();\n }", "title": "" }, { "docid": "3065bc1f750fd16567c7e1d269af4013", "score": "0.6934158", "text": "public static int bytesToInt(final byte[] bytes, final int off)\n {\n return ((bytes[off + 0] & 0xff) << 24 | //\n (bytes[off + 1] & 0xff) << 16 | //\n (bytes[off + 2] & 0xff) << 8 | //\n (bytes[off + 3] & 0xff) << 0);\n }", "title": "" }, { "docid": "819693614fb74839bb5e3a279f8a03bf", "score": "0.69004095", "text": "public static int[] toIntArray(byte[] bytes) {\r\n\t\tString[] dataMachValString = new String[bytes.length];\r\n\t\tint[] data = new int[bytes.length];\r\n\t\tfor (int i = 0; i < bytes.length; i++) {\r\n\t\t\tdataMachValString[i] = HexUtil.bytesToHex(new byte[] { bytes[i] });\r\n\t\t\tInteger dataMachValShort = Integer.decode(\"0x\" + dataMachValString[i]);\r\n\t\t\tdata[i] = dataMachValShort.byteValue();\r\n\t\t\tdata[i] = ByteUtils.getUnsigned((byte) data[i]);\r\n\t\t}// for\r\n\t\treturn data;\r\n\r\n\t}", "title": "" }, { "docid": "9f807f4bb98f533225afba8478d9ebf7", "score": "0.689208", "text": "public static int getInt(final byte[] b, final int offset) {\n return (b[offset + 0] & 0xFF) << 0 |\n (b[offset + 1] & 0xFF) << 8 |\n (b[offset + 2] & 0xFF) << 16 |\n (b[offset + 3] & 0xFF) << 24;\n }", "title": "" }, { "docid": "9a21a16a6bd3850f756f4c86541ff23f", "score": "0.6869615", "text": "public int byteToInt(byte b) {\n\t\t\n\t\treturn (int) b ;\n\t}", "title": "" }, { "docid": "5b652dcbf07ecc779353c7aad4a22a68", "score": "0.6861263", "text": "private static int hexToInt(byte[] b, int off, int len) {\n int val = 0;\n\n for (int i = len; --i >= 0; ) {\n val = (val << 4) + Character.digit((char)(b[off++] & 0xff), 16);\n }\n\n return val;\n }", "title": "" }, { "docid": "073e0ddf8ab3e1ea0f5de81141210d73", "score": "0.68201864", "text": "public static int byteToInt( byte b_ ) \n {\n int intValue = (256 + b_) & 255;\n \n return( intValue );\n }", "title": "" }, { "docid": "629a4d85761f8c5c359acf70e243278f", "score": "0.68177974", "text": "public static int convert2BytesToInt(byte[] buffer, int offset)\n throws IOException\n {\n return convertNBytesToInt(buffer, offset, 2);\n }", "title": "" }, { "docid": "7ce99d733c874e37c75af080b05e2c85", "score": "0.68056995", "text": "public int cnvertoint( Object X ){\n errormessage =\"\";\n try{\n if( X instanceof byte[] )\n X = new String( ( byte[] )X );\n \n if( X instanceof String )\n return new Integer( ( String )X ).intValue( );\n \n if( X instanceof Integer ) \n return ( ( Integer )X ).intValue();\n \n if( X instanceof int[] )\n if( ( ( int[] )X ).length >= 1 ) \n return ( ( int[] )X )[ 0 ];\n if( X instanceof float[] )\n if( ( ( float[] )X ).length == 1 ) \n return new Float(( ( float[] )X )[ 0 ]).intValue();\n if( X instanceof long[] )\n if( ( ( long[] )X ).length >= 1 ) \n return new Long(( ( long[] )X )[ 0 ]).intValue();\n if( X instanceof short[] )\n if( ( ( short[] )X ).length >= 1 ) \n return new Short(( ( short[] )X )[ 0 ]).intValue();\n if( X instanceof double[] )\n if( ( ( double[] )X ).length >= 1 ) \n return new Double(( ( double[] )X )[ 0 ]).intValue();\n errormessage = \"improper data type to convert to int \"+X.getClass();\n return -1;\n }catch( Exception s ){\n errormessage = s.getMessage();\n }\n return -1;\n }", "title": "" }, { "docid": "67691bd54bd4b8e348efeabecc9bdf15", "score": "0.67736113", "text": "public static int parseInt (byte[] bArray, int radix) throws NumberFormatException {\n int length = bArray.length;\n if (length > 9)\n throw new NumberFormatException (\"Number can have maximum 9 digits\");\n int result = 0;\n int index = 0;\n int digit = Character.digit((char)bArray[index++], radix);\n if (digit == -1)\n throw new NumberFormatException (\"Byte array contains non-digit\");\n result = digit;\n while (index < length) {\n result *= radix;\n digit = Character.digit((char)bArray[index++],radix);\n if (digit == -1)\n throw new NumberFormatException (\"Byte array contains non-digit\");\n result += digit;\n }\n return result;\n }", "title": "" }, { "docid": "7d76716ed1c126824178ed9c640c19c0", "score": "0.67501146", "text": "public static int getValue(int[] reply) //eject int (4 bytes) value from byte array\n {\n String value = \"\";\n boolean minus = false;\n int a;\n int b = 2147483647;\n int c;\n if (reply[4] < 0) {\n reply[4] -= 128;\n minus = true;\n }\n for (int i = 4; i < 8; i++) {\n value += String.format(\"%02X\", (byte) reply[i]);\n }\n if (!minus) return Integer.parseInt(value, 16);\n c = b - Integer.parseInt(value, 16);\n return (c + 1) * -1;\n }", "title": "" }, { "docid": "8ad707b678cb7aa0d7fd307263a5abb0", "score": "0.67453164", "text": "public static int unsignedInt2IntBE(byte[] src, int offset) {\n int result = 0;\n for (int i = offset; i < offset + 4; i++) {\n result |= (src[i] & 0xff) << (offset + 3 - i) * 8;\n }\n return result;\n }", "title": "" }, { "docid": "38d708bff81123681962dbbbd4ebb256", "score": "0.67403704", "text": "public static int toShortInt(byte[] array) {\n int i = 0;\n i += ((int) array[0] & 0xFF) << 8;\n i += ((int) array[1] & 0xFF);\n return i;\n }", "title": "" }, { "docid": "d96827a9a7138557ee227bd523a0e068", "score": "0.6707764", "text": "public static int[] bytesToMachineBytes(byte[] data) {\r\n\t\tString[] dataString = new String[data.length];\r\n\t\tint[] dataOut = new int[data.length];\r\n\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\tdataString[i] = HexUtil.bytesToHex(new byte[] { data[i] });\r\n\t\t\tInteger dataInt = Integer.decode(\"0x\" + dataString[i]);\r\n\t\t\tdataOut[i] = dataInt.intValue();\r\n\t\t}\r\n\t\treturn dataOut;\r\n\t}", "title": "" }, { "docid": "82800caea9a3cf21de6dbee4da5d4f4b", "score": "0.6663442", "text": "public static int parseInteger(ByteBuffer byteBuffer) {\n return byteBuffer.order(ByteOrder.BIG_ENDIAN).getInt();\n }", "title": "" }, { "docid": "2bf820e992da7facb5c88f3877d86634", "score": "0.664688", "text": "public static int getIntValue(int pos, byte[] data) {\n\n return ((data[pos] & 0xff) << 24) | ((data[pos + 1] & 0xff) << 16)\n | ((data[pos + 2] & 0xff) << 8) | (data[pos + 3] & 0xff);\n\n }", "title": "" }, { "docid": "77ed2f5d962e537d09ffcc693ded3891", "score": "0.664627", "text": "public static int getIntFromTwoBytesBigEndian(byte[] source){\n \treturn (source.length == 2 ?\n \t\t\tcomposeInt(byteToIntUnsigned(source[0]),byteToIntUnsigned(source[1])) :\n \t\t\t-1);\n }", "title": "" }, { "docid": "e478ea831dc57fdfd4b5be9951205d14", "score": "0.6608677", "text": "public static int toIntFromNibbles(final byte[] nibbles)\n {\n return toInt(nibbles[0], nibbles[1], nibbles[2], nibbles[3], nibbles[4], nibbles[5], nibbles[6], nibbles[7]);\n }", "title": "" }, { "docid": "17d75feeeaa547c2f1f7b4fd5dee41f3", "score": "0.65960836", "text": "protected static int[] byteToIntUnsigned(byte[] file) {\n\t\tint fileLen = file.length;\n\t\tint intValue = 0;\n\t\tint[] unsignedInt = new int[fileLen];\n\t\tfor (int i = 0; i < fileLen; i++) {\n\t\t\tintValue = file[i];\n\t\t\tif (intValue < 0) {\n\t\t\t\tintValue = intValue + 256;\n\t\t\t}\n\t\t\tunsignedInt[i] = intValue;\n\t\t}\n\t\treturn unsignedInt;\n\t}", "title": "" }, { "docid": "11abea0346a75e0968fa0631b26f93d8", "score": "0.65762496", "text": "public static int toInt(final NibbleArray nibbles)\n {\n return toInt(nibbles.get(0), nibbles.get(1), nibbles.get(2), nibbles.get(3), nibbles.get(4), nibbles.get(5), nibbles.get(6), nibbles.get(7));\n }", "title": "" }, { "docid": "84731e7ef8a72df5c7d9d0fd4aa1299b", "score": "0.65699625", "text": "public static long getUnsignedInt(final byte[] b) {\n return getUnsignedInt(b, 0);\n }", "title": "" }, { "docid": "221915d1fbd443b657678d2f4e42c6a0", "score": "0.6541963", "text": "public static int btoi( byte b_ ) \n {\n return byteToInt( b_ );\n }", "title": "" }, { "docid": "69232789c3d947ea4ef0e2ca565e68f6", "score": "0.64866924", "text": "public static int bytesToInt(byte b1, byte b2, byte b3, byte b4) {\n\t\tint ret = b4;\n\t\tret |= (b3) << 8;\n\t\tret |= (b2) << 16;\n\t\tret |= (b1) << 24;\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "a45f60b41e7887da4103989f4d51ea05", "score": "0.64462894", "text": "public static int toIntFromNibbles(final byte[] nibbles, final int start)\n {\n return toInt(nibbles[start], nibbles[start + 1], nibbles[start + 2], nibbles[start + 3], nibbles[start + 4], nibbles[start + 5], nibbles[start + 6], nibbles[start + 7]);\n }", "title": "" }, { "docid": "b6d3e644ddc654bda5b593d2db83f748", "score": "0.64180267", "text": "public static int getIntFromTwoBytesLittleEndian(byte[] source){\n \treturn (source.length == 2 ?\n \t\t\tcomposeInt(byteToIntUnsigned(source[1]),byteToIntUnsigned(source[0])) :\n \t\t\t-1);\n }", "title": "" }, { "docid": "3e183ea70e75523a49c8ad97aab747ae", "score": "0.64022714", "text": "public static int convert3BytesToInt(byte[] buffer, int offset)\n throws IOException\n {\n return convertNBytesToInt(buffer, offset, 3);\n }", "title": "" }, { "docid": "79941071f3cd84263835f62b7911b88f", "score": "0.6386238", "text": "private int toBinary(int[] array) {\n int decimalNumber = 0;\n for (int i = 0; i < array.length; i++) {\n decimalNumber = decimalNumber * 2 + array[i];\n }\n return decimalNumber;\n }", "title": "" }, { "docid": "acc48e1dcaa9c8b8d603e12560454213", "score": "0.6353886", "text": "static int readInt(byte data[], int nOffset) {\n int b1 = ((int) data[nOffset + 0] & 0xff);\n int b2 = ((int) data[nOffset + 1] & 0xff) << 8;\n int b3 = ((int) data[nOffset + 2] & 0xff) << 16;\n int b4 = ((int) data[nOffset + 3] & 0xff) << 24;\n return b4 | b3 | b2 | b1;\n }", "title": "" }, { "docid": "f25e6977fab46d9b625779ec509900ea", "score": "0.6349463", "text": "private static long byteArrayToLong(byte[] bytes) {\r\n\t\tlong n = 0;\r\n\t\tn += ((long) bytes[0] & 0xff) << 24;\r\n\t\tn += ((long) bytes[1] & 0xff) << 16;\r\n\t\tn += ((long) bytes[2] & 0xff) << 8;\r\n\t\tn += ((long) bytes[3] & 0xff) << 0;\r\n\t\treturn n;\r\n\t}", "title": "" }, { "docid": "6fde26a9ce05b9533f1786940dea2763", "score": "0.63450557", "text": "public static int toInt(final NibbleArray nibbles, final int start)\n {\n return toInt(nibbles.get(start), nibbles.get(start + 1), nibbles.get(start + 2), nibbles.get(start + 3), nibbles.get(start + 4), nibbles.get(start + 5), nibbles.get(start + 6), nibbles.get(start + 7));\n }", "title": "" }, { "docid": "56942cfec2b78b8502afd5db551a484e", "score": "0.6345006", "text": "public static int unsignedInt2IntLE(byte[] src, int offset) {\n int value = 0;\n for (int i = offset; i < offset + 4; i++) {\n value |= (src[i] & 0xff) << (i - offset) * 8;\n }\n return value;\n }", "title": "" }, { "docid": "10f114d3150fab83c3b3693c58082bde", "score": "0.6295879", "text": "public static int littleEndianBytesToInt(byte[] bytes, int index)\n {\n return ((bytes[index] & 0xFF )) | ((bytes[index + 1] & 0xFF) << 8) | ((bytes[index + 2] & 0xFF) << 16) | ((bytes[index + 3] & 0xFF) << 24);\n }", "title": "" }, { "docid": "987d9eaa2b1c1b81f0a2ff36623beb1e", "score": "0.62801015", "text": "int mo1631a(byte[] bArr);", "title": "" }, { "docid": "11ba45f84a20f632d2b0f4654d6e3942", "score": "0.62708294", "text": "public long asInt() {\n boolean negative = false;\n\n int i = offset;\n\n if (bytes[i] == '-') {\n negative = true;\n\n i++;\n }\n\n long x = 0;\n\n while (i < offset + length) {\n byte b = bytes[i++];\n\n if (b < '0' || b > '9')\n notInt();\n\n x = 10 * x + b - '0';\n }\n\n return negative ? -x : +x;\n }", "title": "" }, { "docid": "01e6b378e7e6a0ecebb5fb1666786d95", "score": "0.62215835", "text": "private static int twoBytesToInt(byte a, byte b) {\r\n return ((a & 0xff) << 8) | (b & 0xFF);\r\n }", "title": "" }, { "docid": "f147b4d93478c346eb3edd9de5b6cb64", "score": "0.6215772", "text": "public static int bytesToIntLE(final byte[] bytes, final int off)\n {\n return ((bytes[off + 0] & 0xff) << 0 | //\n (bytes[off + 1] & 0xff) << 8 | //\n (bytes[off + 2] & 0xff) << 16 | //\n (bytes[off + 3] & 0xff) << 24);\n }", "title": "" }, { "docid": "e08c37c72799cefa651a67677a6bd58f", "score": "0.6206903", "text": "public static\n int hexByteToInt(byte b) {\n switch (b) {\n case '0':\n return 0;\n case '1':\n return 1;\n case '2':\n return 2;\n case '3':\n return 3;\n case '4':\n return 4;\n case '5':\n return 5;\n case '6':\n return 6;\n case '7':\n return 7;\n case '8':\n return 8;\n case '9':\n return 9;\n case 'A':\n case 'a':\n return 10;\n case 'B':\n case 'b':\n return 11;\n case 'C':\n case 'c':\n return 12;\n case 'D':\n case 'd':\n return 13;\n case 'E':\n case 'e':\n return 14;\n case 'F':\n case 'f':\n return 15;\n default:\n throw new IllegalArgumentException(\"Error decoding byte\");\n }\n }", "title": "" }, { "docid": "8ccb517c22b5a669229db1e336d38d4d", "score": "0.61776376", "text": "public static int bytesToSynchsafeInt(byte[] buffer, int index)\n {\n // note: java treats byte as a signed value, while the ID3v2.3 spec treats bytes as unsigned.\n // this necessitates converting each byte to a larger value (integer) and then shifting and adding them.\n return ((buffer[index] & 0xFF ) << 21) + ((buffer[index + 1] & 0xFF) << 14) + ((buffer[index + 2] & 0xFF) << 7) + (buffer[index + 3] & 0xFF);\n }", "title": "" }, { "docid": "a9a32b220d58f60b204ec8d28e8110c3", "score": "0.6146867", "text": "public static final int[] byte2Int(byte[] inData, boolean byteSwap) {\n\t\tint j = 0;\n\t\tint length = inData.length / 4;\n\t\tint[] outData = new int[length];\n\t\tif (!byteSwap)\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\tj = i * 4;\n\t\t\t\toutData[i] = (((inData[j] & 0xff) << 24)\n\t\t\t\t\t\t+ ((inData[j + 1] & 0xff) << 16)\n\t\t\t\t\t\t+ ((inData[j + 2] & 0xff) << 8) + ((inData[j + 3] & 0xff) << 0));\n\t\t\t}\n\t\telse\n\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\tj = i * 4;\n\t\t\t\toutData[i] = (((inData[j + 3] & 0xff) << 24)\n\t\t\t\t\t\t+ ((inData[j + 2] & 0xff) << 16)\n\t\t\t\t\t\t+ ((inData[j + 1] & 0xff) << 8) + ((inData[j] & 0xff) << 0));\n\t\t\t}\n\n\t\treturn outData;\n\t}", "title": "" }, { "docid": "5e5bb4822b40e7fe8e92dfcfdd1c82ad", "score": "0.61420673", "text": "public int getInt2() {\r\n\t\treturn ((payload.readByte() & 0xff) << 16)\r\n\t\t\t\t| ((payload.readByte() & 0xff) << 24)\r\n\t\t\t\t| (payload.readByte() & 0xff)\r\n\t\t\t\t| ((payload.readByte() & 0xff) << 8);\r\n\t}", "title": "" }, { "docid": "869f55bada4388c1e9fd70f9476318e1", "score": "0.6139888", "text": "private static int unserializeUint32(byte[] arr, int offset) {\r\n int i;\r\n int r = 0;\r\n\r\n for (i = 3; i >= 0; i--)\r\n r |= (byte2int(arr[offset++])) << (i * 8);\r\n return r;\r\n }", "title": "" }, { "docid": "472ebbee387899c658696d40d42f6d1e", "score": "0.6139755", "text": "public static long toLong(byte[] array) {\n long l = 0;\n l += ((int) array[0] & 0xFF) << 56;\n l += ((int) array[1] & 0xFF) << 48;\n l += ((int) array[2] & 0xFF) << 40;\n l += ((int) array[3] & 0xFF) << 32;\n l += ((int) array[4] & 0xFF) << 24;\n l += ((int) array[5] & 0xFF) << 16;\n l += ((int) array[6] & 0xFF) << 8;\n l += ((int) array[7] & 0xFF);\n return l;\n }", "title": "" }, { "docid": "8a4cb7d02f81d936d1a6db5c07b9db41", "score": "0.60983545", "text": "public int parseInt() {\n\t\treturn dataBuffer.getInt();\n\t}", "title": "" }, { "docid": "1c28c88c0b6a68638482fa2df33164bc", "score": "0.6097473", "text": "native public static int getTaintByteArray(byte[] array);", "title": "" }, { "docid": "28d6c7dcd380c2ebedb675d7ae604230", "score": "0.60797995", "text": "public static int networkByteOrderToInt(byte[] buf, int start, int count) {\n if (count > 4) {\n throw new IllegalArgumentException(\"Cannot handle more than 4 bytes\");\n }\n\n int result = 0;\n\n for (int i = 0; i < count; i++) {\n result <<= 8;\n result |= (buf[start + i] & 0xff);\n }\n\n return result;\n }", "title": "" }, { "docid": "dbd6995ea5cbd66e2f9759ae5cc0d681", "score": "0.60708565", "text": "private int unsignedSingleByteToInt(final byte unsignedByte) {\n \t\tint i = 0;\n \t\ti |= unsignedByte & 0xFF;\n \t\treturn i;\n \t}", "title": "" }, { "docid": "6636821f62563e2533bc341b75221b92", "score": "0.60650754", "text": "protected int getInt2(byte[] int2) {\n return (((int2[0] & 0xff) << 8) | (int2[1] & 0xff)) & 0xffff;\n }", "title": "" }, { "docid": "5c06163fdc4beecaa8add0e89c826544", "score": "0.60626453", "text": "public int getInt1() {\r\n\t\treturn ((payload.readByte() & 0xff) << 8)\r\n\t\t\t\t| (payload.readByte() & 0xff)\r\n\t\t\t\t| ((payload.readByte() & 0xff) << 24)\r\n\t\t\t\t| ((payload.readByte() & 0xff) << 16);\r\n\t}", "title": "" }, { "docid": "2f588640870fc347f9c965a5f696915f", "score": "0.6045839", "text": "public static int unsignedByteToInt(byte b) {\n\t\t/*\n\t\t * & 0xFF while seemingly doing nothing to the individual bits,\n\t\t * forces java to recognize the byte as unsigned. so, we return to\n\t\t * the calling function a number between 0 and 256.\n\t\t */\n\t\treturn ((int) b & 0xFF);\n\t}", "title": "" }, { "docid": "ff19003177fb382734839d7887e699eb", "score": "0.60310084", "text": "public static int getInt(byte[] buf, int o) {\n\treturn ((buf[o]&255)|((buf[o+1]&255)<<8)|((buf[o+2]&255)<<16)|((buf[o+3]&255)<<24));\n }", "title": "" }, { "docid": "19a386aff569b674ac07f156f1803911", "score": "0.5994131", "text": "int convertRxbytesToInt16(int offset, byte buffer[]) {\n\t\tint v;\n\t\tbyte[] t = new byte[2];\n\n\t\tfor (int i=0; i<2; ++i) {\n\t\t\tt[1-i] = buffer[i+offset];\n\t\t}\n\n\t\tv = (int) ByteBuffer.wrap(t).getShort(0) & 0xffff;\n\n\t\treturn v; \n\t}", "title": "" }, { "docid": "55dc742c6451d683bc48f5b1bccc998c", "score": "0.59900117", "text": "public LargeInteger(byte[] b) {\n\t\tval = b;\n\t}", "title": "" }, { "docid": "5b6ed5c6a6ec73da5d87533e9685e6a7", "score": "0.59506416", "text": "@VisibleForTesting\n public static int bytes3ToInt(Bytes src, int pos) {\n checkArgument(pos >= 0, \"Expected positive pos but got %s\", pos);\n return ((src.get(pos) & 0xFF) << 16)\n | ((src.get(pos + 1) & 0xFF) << 8)\n | (src.get(pos + 2) & 0xFF);\n }", "title": "" }, { "docid": "b7a95b1ef860bd81baf86ffbc0103f36", "score": "0.59487015", "text": "private int unsignedByteValue(byte b) {\n return ((int) b) & 0xff;\n }", "title": "" }, { "docid": "d47e5332dbcc0c799d5f39afd9cf9a94", "score": "0.5923278", "text": "public static int [] toIntArray(String [] array) {\n int [] intArray = new int[array.length];\n \n for (int i=0; i<intArray.length; i++) {\n try {\n intArray[i]=Integer.parseInt(array[i]);\n } catch (Exception e) {\n System.out.println(\"Error. method toIntArray couldn't be completed. Additional info about error: \"+ e );\n }\n }\n return intArray;\n }", "title": "" }, { "docid": "228ae5d3f476d3ac936636e089ae892a", "score": "0.5921152", "text": "public int ECF_NumeroIntervencoes(byte[] contador);", "title": "" }, { "docid": "c5e22f8d60893a95cfe197de2e18ed6f", "score": "0.5919965", "text": "public int UnpackInt()\r\n {\r\n return Helpers.BytesToInt32L(UnpackBitsArray(32), 0);\r\n }", "title": "" }, { "docid": "9081521dcf167736a7fc4103fb88828f", "score": "0.5905024", "text": "public static int toInt(final byte a, final byte b, final byte c, final byte d)\n {\n return (a << (BYTE_SIZE * 3)) | ((b & BYTE_MASK) << (BYTE_SIZE * 2)) | ((c & BYTE_MASK) << BYTE_SIZE) | (d & BYTE_MASK);\n }", "title": "" }, { "docid": "f13c5e4d8bbdf20c1aef574b66e9a7f6", "score": "0.59030557", "text": "public int toInt();", "title": "" }, { "docid": "e5662cbdb372f7a218cecfbf90c2d417", "score": "0.59029716", "text": "public static long getUnsignedInt(final byte[] b, final int offset) {\n return getInt(b, offset) & 0x00000000FFFFFFFFL;\n }", "title": "" }, { "docid": "942b358b36f51508c1142218a50b0edd", "score": "0.58786654", "text": "int[] convertToInt(String[] sArray);", "title": "" }, { "docid": "f7679bdb6c1ad714534d02f68e74ee4c", "score": "0.58424973", "text": "private static int byteArrayToBool(byte[] bytes) {\r\n\t\tint n = 0;\r\n\t\tn += ((int) bytes[0] & 0xff) << 0;\r\n\t\treturn n;\r\n\t}", "title": "" }, { "docid": "c5370d8da3a384947b8dee4d696e207c", "score": "0.5821207", "text": "private int toDecimal(byte[] input) {\n\t\tint result = 0;\n\t\tint position = 0;\n\t\t\n\t\tfor(int i = input.length - 1; i >= 0; i--) {\n\t\t\tif(input[i] == 1) {\n\t\t\t\tresult += Math.pow(2, position);\n\t\t\t}\n\t\t\t\n\t\t\tposition++;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e9f78d2bfe47c82b2b4a63df17e96b81", "score": "0.581988", "text": "public static long byteArrayToLong(byte[] bArray) {\n\t\tif (bArray.length != 8) {\r\n\t\t\tlogger.log(Level.SEVERE,\"\"+_numClient+\" byteArrayToLong \"+bArray.length);\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tByteBuffer bb = ByteBuffer.wrap(bArray);\r\n\t\t// si on est en litteEndian on fera\r\n\t\t//bb.order(ByteOrder.LITTLE_ENDIAN);\r\n\t\treturn bb.getLong();\t\r\n\t}", "title": "" } ]
c010454d19bab222c5f2e80491761a1f
Tanggal Pengerjaan: 12 Mei 2021 NIM: 10118068 Nama: Satria Aji Putra Karma J Kelas: IF2 / AKB2
[ { "docid": "f12d13ca7f32d93bf15d6b17affcbb9b", "score": "0.0", "text": "public interface MusicPresenter {\n void store(MusicModel music);\n void update(MusicModel music);\n void delete(MusicModel music);\n void load();\n}", "title": "" } ]
[ { "docid": "dbb8e5c117c6dc0263b05a88499dcca2", "score": "0.6147053", "text": "@Data(size=4, value=\"HVC9\")\n IString gtAnulPrePagam() ;", "title": "" }, { "docid": "e237bc58c6b345990f1b3dc261693e18", "score": "0.6056455", "text": "@Data(size=4, value=\"HVE0\")\n IString gtPpTransferencia() ;", "title": "" }, { "docid": "a194b19f63955c9ccf2651d7fc9736c6", "score": "0.5993945", "text": "@Data(size=4, value=\"HVD6\")\n IString gtTransferencia() ;", "title": "" }, { "docid": "9157d4a2cd0282b00e0003f971275fcb", "score": "0.5979316", "text": "public static void daftarMataKuliah()\n {\n System.out.println();\n System.out.println(\"[ Daftar Mata Kuliah ]\");\n System.out.println();\n \n // Melakukan perulangan berdasarkan jumlah Mata Kuliah\n for (int i = 0; i < mata_kuliah.length; i++) {\n System.out.println(i + 1 + \". \" + mata_kuliah[i]);\n }\n }", "title": "" }, { "docid": "914b4f0e16ca68b2dd06bcaecaf1788a", "score": "0.5957112", "text": "@Data(size=4, value=\"0024\")\n IString pagJuroVenc() ;", "title": "" }, { "docid": "7321f13f4b32e3d843aa9164ff6c3877", "score": "0.59484434", "text": "private void getInfomation() {\n Sanpham sanpham = (Sanpham) getIntent().getSerializableExtra(\"thongtinsanpham\");\n id = sanpham.getId();\n tenChitiet = sanpham.getTensanpham();\n giaChitiet = sanpham.getGiasanpham();\n haChitiet = sanpham.getHinhanhsanpham();\n motaChitiet = sanpham.getMotasanpham();\n idSanpham = sanpham.getIdsanpham();\n\n //set giaa tri de hien thi\n namechitietTv.setText(tenChitiet);\n DecimalFormat decimalFormat = new DecimalFormat(\"###,###,###\");\n giachitietTv.setText(\"Giá: \"+decimalFormat.format(giaChitiet)+\" VNĐ\");\n motachitietspTv.setText(motaChitiet);\n\n Picasso.get().load(haChitiet)\n .placeholder(R.drawable.noimg)\n .error(R.drawable.error)\n .into(detailsIv);\n }", "title": "" }, { "docid": "12e2d21bc979581d33cccea005e6e246", "score": "0.5881318", "text": "@Data(size=4, value=\"HVA2\")\n IString levantNumerario() ;", "title": "" }, { "docid": "75621e03006fe868473ce89500716d47", "score": "0.5875414", "text": "@Data(size=4, value=\"HVA5\")\n IString abertDpPorTrsf() ;", "title": "" }, { "docid": "d207fb979de0b247382554c4d787b90a", "score": "0.58750427", "text": "double tunjanganFamili(String statusKeluarga) {\n\t\ttunjanganKeluarga = 0 ;\n\t\tif(statusKeluarga.equals(\"y\")) {\n\t\t\ttunjanganKeluarga += 0.02*gapok;\n\t\t\t\n\t\t}\n\t\treturn tunjanganKeluarga;\n\t}", "title": "" }, { "docid": "6867bd3537cd8655127fdab22418e49f", "score": "0.58658254", "text": "@Data(size=4, value=\"TSUG\")\n IString etgaLoteValorTsu() ;", "title": "" }, { "docid": "5200bba4d362ebfcfdbfe4ecd63d1a91", "score": "0.58240265", "text": "static void getJinhuoMess() {\n\t\tint Purchase_row = table.getSelectedRow();\n\t\tpno = (String) table.getValueAt(Purchase_row, model.findColumn(\"进货单号\"));// 返回值为 row和 column的单元格值。\n\t\tdate = (String) table.getValueAt(Purchase_row, model.findColumn(\"进货日期\"));\n\t\teno = (String) table.getValueAt(Purchase_row, model.findColumn(\"员工编号\"));\n\t\tsum = (String) table.getValueAt(Purchase_row, model.findColumn(\"总金额\"));\n\t\tsno = (String) table.getValueAt(Purchase_row, model.findColumn(\"供应商编号\"));\n\t\taccount = (String) table.getValueAt(Purchase_row, model.findColumn(\"记账人\"));\n\t\tnote = (String) table.getValueAt(Purchase_row, model.findColumn(\"备注\"));\n//\t\t{ \"序号\", \"进货单号\", \"进货日期\", \"员工编号\", \"总金额\", \"供应商编号\", \"记账人\" ,\"备注\"};\n\t}", "title": "" }, { "docid": "3ec977a8b1b54bd0e742ec749230aa78", "score": "0.5799332", "text": "@Data(size=4, value=\"HVE7\")\n IString ducTransferencia() ;", "title": "" }, { "docid": "3f8e38f25d07c34de54b227355098f8d", "score": "0.5793626", "text": "@Data(size=4, value=\"HVD8\")\n IString gtAnulacao() ;", "title": "" }, { "docid": "32de7f490ed49de3c91d28f2d1d3e1f0", "score": "0.57739544", "text": "@Data(size=4, value=\"HVC8\")\n IString debitoComQuedaPend() ;", "title": "" }, { "docid": "11d575725c24b085f2a5d91605948095", "score": "0.57666665", "text": "public void hapusDerivationSuffiks(){\r\n String hasil1 = null;\r\n if ((bersikan.endsWith(\"i\")) || (bersikan.endsWith(\"kan\")) ||(bersikan.endsWith(\"an\"))) {\r\n hasil1 = bersikan.replaceAll(\"(i|an)$\", \"\"); \r\n \r\n if (cekKamus(hasil1)){\r\n akarKata = hasil1;\r\n }\r\n else{\r\n if (hasil1.endsWith(\"k\")){\r\n akarKata = hasil1.replaceAll(\"(k)$\", \"\");\r\n }else{\r\n akarKata = kata;\r\n } \r\n }\r\n } \r\n }", "title": "" }, { "docid": "31a62ce4472aca4a671b01c7f90c642a", "score": "0.57587785", "text": "@Data(size=4, value=\"HVD1\")\n IString pagJurVencOnLine() ;", "title": "" }, { "docid": "8eb8c72eb8b91363375452f71ce52860", "score": "0.5757207", "text": "public static void main(String[] args){\n String identitas = \"Chatlea Cinta Putri Widyanto / XRPL5 / 08\";\r\n tampilJudul(identitas);\r\n \r\n Scanner baca = new Scanner(System.in);\r\n String jenisbarang[] = new String[]{\"A\", \"B\", \"C\", \"D\", \"E\"}; \r\n int berat[] = new int[]{4, 5, 2, 3, 7};\r\n int bayaran[] = new int[]{5000, 7000, 2000, 3000, 10000};\r\n int harga;\r\n int total = 0;\r\n int jumlah;\r\n System.out.print(\"Masukkan berat : \");\r\n int beratmuatan = baca.nextInt();\r\n \r\n \r\n for(int i = 0; i < jenisbarang.length; i++){\r\n if( beratmuatan >= berat [i]){\r\n jumlah = beratmuatan / berat[i];\r\n beratmuatan = beratmuatan % berat[i];\r\n harga = jumlah * bayaran[i];\r\n total += harga;\r\n System.out.println(\"Barang \" + jenisbarang[i] + \" sebanyak \" + jumlah);\r\n System.out.println(\"Bayaran : Rp \" + harga); \r\n}\r\n}\r\n System.out.println(\"Total bayaran : Rp \" + total);\r\n}", "title": "" }, { "docid": "201a9460fe56333ea33ff10f99ffa99c", "score": "0.5747882", "text": "@Data(size=4, value=\"HVA1\")\n IString entregaNumerario() ;", "title": "" }, { "docid": "b847a674d4130f0f12412c8ea8187f4f", "score": "0.57460594", "text": "@Data(size=4, value=\"HVB0\")\n IString descatComDebito() ;", "title": "" }, { "docid": "66a490fbf501fc265b659e4ae6fd0a47", "score": "0.57397586", "text": "public String getAmtInWords (String amount, String iso) throws Exception\r\n {\r\n if (amount == null)\r\n return amount;\r\n //\r\n StringBuffer sb = new StringBuffer ();\r\n int pos = amount.lastIndexOf ('.');\r\n int pos2 = amount.lastIndexOf (',');\r\n if (pos2 > pos)\r\n pos = pos2;\r\n String oldamt = amount;\r\n amount = amount.replaceAll (\",\", \"\");\r\n int newpos = amount.lastIndexOf ('.');\r\n if (newpos != -1) {\r\n int pesos = Integer.parseInt(amount.substring(0, newpos));\r\n System.out.println(pesos);\r\n if (iso.equals(\"THB\")) {\r\n sb.append(convert(pesos)).append(\"\\u0e1a\\u0e32\\u0e17\");\r\n for (int i = 0; i < oldamt.length(); i++) {\r\n if (pos == i) { // we are done\r\n String cents = oldamt.substring(i + 1);\r\n int stang = Integer.parseInt(cents);\r\n if (stang != 0) {\r\n sb.append(convert(stang)).append(\"\\u0e2a\\u0e15\\u0e32\\u0e07\\u0e04\\u0e4c\");\r\n } else {\r\n sb.append(\"\\u0e16\\u0e49\\u0e27\\u0e19\");\r\n }\r\n// sb.append (' ').append (cents).append (\"/100\");\r\n break;\r\n }\r\n }\r\n } else {\r\n sb.append(convert(pesos)).append(\"\\u0e40\\u0e2b\\u0e23\\u0e35\\u0e22\\u0e0d\");\r\n for (int i = 0; i < oldamt.length(); i++) {\r\n if (pos == i) { // we are done\r\n String cents = oldamt.substring(i + 1);\r\n int stang = Integer.parseInt(cents);\r\n if (stang != 0) {\r\n sb.append(convert(stang)).append(\"\\u0e40\\u0e0b\\u0e47\\u0e19\\u0e15\\u0e4c\").append( \" [\" +iso +\"]\");\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n } else {\r\n int pesos = Integer.parseInt(amount);\r\n if (iso.equals(\"THB\")) {\r\n sb.append(convert(pesos)).append(\"\\u0e1a\\u0e32\\u0e17\").\r\n append(\"\\u0e16\\u0e49\\u0e27\\u0e19\");\r\n } else {\r\n sb.append(convert(pesos)).append(\"\\u0e40\\u0e2b\\u0e23\\u0e35\\u0e22\\u0e0d\").append( \" [\" +iso +\"]\");\r\n }\r\n }\r\n return sb.toString ();\r\n }", "title": "" }, { "docid": "c70da92a1a2630bb1f872f247865b39f", "score": "0.57362616", "text": "public String getNoPegawai() { // Method untuk memanggil inputan noPegawai.\r\n return noPegawai; // Nilai pengembalian dari noPegawai.\r\n }", "title": "" }, { "docid": "0949da17ed453a195d923e6bdcdba0ed", "score": "0.5726162", "text": "public static void main(String[] args) {\n Scanner prima = new Scanner(System.in);\n \n //memulai input angka sembarang untuk ditentukan\n System.out.println(\"Algoritma untuk menentukan suatu bilangan\\nmerupakan bilangan prima atau bukan\\n\");\n System.out.println(\"Bilangan prima adalah bilangan yang tidak\\nhabis bersisa jika dibagi dengan angka berapapun\\n\");\n System.out.print(\"Masukkan angka sembarang = \");\n int angka = prima.nextInt(); //input untuk sebarang angka\n\n /*memulai algoritma penentu bilangan prima\n *angka yang diinputkan akan dibagi oleh serangkaian angka utama pembagi\n *yang dapat menghasilkan sisa nol\n */\n if ((angka % 2) != 0) {\n if ((angka % 3) != 0) {\n if ((angka % 4) != 0) {\n if ((angka % 5) != 0) {\n if ((angka % 6) != 0) {\n if ((angka % 7) != 0) {\n if ((angka % 8) != 0) {\n if ((angka % 9) != 0) {\n System.out.println(\"Angka \" + angka + \" adalah bilangan prima\");\n } else {\n System.out.println(\"Angka \" + angka + \" bukanlah bilangan prima\");\n }\n } else {\n System.out.println(\"Angka \" + angka + \" bukanlah bilangan prima\");\n }\n } else {\n System.out.println(\"Angka \" + angka + \" bukanlah bilangan prima\");\n }\n } else {\n System.out.println(\"Angka \" + angka + \" bukanlah bilangan prima\");\n }\n } else {\n System.out.println(\"Angka \" + angka + \" bukanlah bilangan prima\");\n }\n } else {\n System.out.println(\"Angka \" + angka + \" bukanlah bilangan prima\");\n }\n } else {\n System.out.println(\"Angka \" + angka + \" bukanlah bilangan prima\");\n }\n } else {\n System.out.println(\"Angka \" + angka + \" bukanlah bilangan prima\");\n }\n }", "title": "" }, { "docid": "d08ed8481b78ce5fefcf9200f89fabd5", "score": "0.5691851", "text": "public void getIva(){\n if (objTipDoc.getst_iva().equals(\"S\")){\n dblPorIva = objCtaCtb.getPorcentajeIvaCompras();\n }else{\n dblPorIva = 0; \n }\n lblIva.setText(\"IVA \" + dblPorIva + \"%\");\n }", "title": "" }, { "docid": "1b78af4f05c26051765579682c66667a", "score": "0.5683609", "text": "public int getTanggalLahir() {\n return tanggalLahir; // Nilai pengembalian dari tanggal lahir dokter.\r\n }", "title": "" }, { "docid": "6387496275b2f5301b101ece87e8b970", "score": "0.5677639", "text": "@Data(size=4, value=\"0079\")\n IString impostoDivida() ;", "title": "" }, { "docid": "dbef6baead559f22f44b390e53e4699c", "score": "0.5674522", "text": "double tunjanganEmployee(double masaKerja) {\n\t\ttunjanganPegawai = 0;\n\t\tif(masaKerja < 3) {\n\t\t\ttunjanganPegawai += tunjanganKu[0];\n\t\t}\n\t\telse if(masaKerja < 5) {\n\t\t\ttunjanganPegawai += tunjanganKu[1];\n\t\t}\n\t\telse {\n\t\t\ttunjanganPegawai += tunjanganKu[2];\n\t\t}\n\t\treturn tunjanganPegawai;\n\t}", "title": "" }, { "docid": "1260e263c8b26a95a9d07ecbe5708941", "score": "0.5672773", "text": "public String nomorOto(){\n String kode=\"KRT-001\";\n EntityManager em=null;\n try{\n em=getEntityManager();\n Query q=em.createQuery(\"select k from Kereta k order by k.kodeKereta\");\n List list = q.getResultList();\n int row=list.size();\n row--;\n Kereta k=(Kereta) list.get(row);\n if(q!=null){\n \n DecimalFormat formatnomor=new DecimalFormat(\"KRT-000\");\n String nomorurut=k.getKodeKereta().substring(4);\n kode=formatnomor.format(Double.parseDouble(nomorurut)+1);\n }\n }catch(NoResultException ex){}\n return kode;\n }", "title": "" }, { "docid": "d1743be1024e4f93211b17fd4097cdb5", "score": "0.56715214", "text": "@Data(size=4, value=\"HVD3\")\n IString unificaDeposito() ;", "title": "" }, { "docid": "8d46d5bdb52445cf75f084c249b95fb7", "score": "0.56675035", "text": "public String getDataLancamentoFormatoBr() {\n String dataFormatoBr;\n dataFormatoBr = dataLancamento.substring(8) + '/' +\n dataLancamento.substring(5,7) + '/' + dataLancamento.substring(0,4);\n return dataFormatoBr;\n }", "title": "" }, { "docid": "c00be1732f579f86319d8dcaa5c6eb78", "score": "0.56645083", "text": "@Data(size=4, value=\"0051\")\n IString cobrancaJuros() ;", "title": "" }, { "docid": "42923026268b3de6f5355127082ab373", "score": "0.56481737", "text": "public void tampil_biodata(String nama, String nim, String alamat){\n System.out.println(\"1. Nama : \" + nama);\n System.out.println(\"2. Nim : \" + nim);\n System.out.println(\"3. Alamat : \" + alamat);\n }", "title": "" }, { "docid": "a10096dbd4b2420e17b4bf4f0336748d", "score": "0.5639277", "text": "@Data(size=4, value=\"HVF5\")\n IString simulacaoDebito() ;", "title": "" }, { "docid": "e25af46a6898dddbfdd9b9a4c0efea5d", "score": "0.56354123", "text": "public static void daftarMahasiswa()\n {\n System.out.println();\n System.out.println(\"[ Daftar Mahasiswa ]\");\n System.out.println();\n \n // Melakukan perulangan berdasarkan jumlah mahasiswa\n for (int i = 0; i < mahasiswa.length; i++) {\n System.out.println(i + 1 + \". \" + mahasiswa[i]);\n }\n }", "title": "" }, { "docid": "f31be72c696b39405276acd3299b125f", "score": "0.56318104", "text": "@Data(size=4, value=\"HVD2\")\n IString regulJurosPagos() ;", "title": "" }, { "docid": "623641a65ad79844e077523e01afe119", "score": "0.55895376", "text": "@Data(size=4, value=\"HVK7\")\n IString anulacaoDepEstr() ;", "title": "" }, { "docid": "c3df55718c0c8718f83a564c4e116321", "score": "0.55868506", "text": "public static void main(String[] args) {\n String Judul1 = \"PROGRAM MENENTUKAN BILANGAN GANJIL\";\n String Judul2 = \".....................................\";\n System.out.println(Judul1);\n System.out.println(Judul2);\n\n String textAngka;\n Scanner myInput = new Scanner(System.in); // deklarasi 'myInput' sebagai variable input dari user\n\n\n System.out.println(\"\\nMasukkan Angka : \");\n int angka = myInput.nextInt(); // memasukkan input 'nilai' ke variabel 'angka'\n System.out.println(\"Angka yang dimasukkan : \"+angka);\n System.out.println(\"\\nStatus Bilangan : \");\n\n\n // Memvalidasi apakah angka yang dimasukan adalah bilangan ganjil atau bukan dengan menggunakan IF ELSE Statement\n // Jika suatu angka di bagi 2 hasilnya bersisa maka angka tersebut termasuk bilangan ganjil\n if (angka %2 == 1) {\n textAngka = \"adalah Bilangan Ganjil\";\n System.out.println(\"\\nAngka \" +angka+ \" \" +textAngka);\n } else{\n textAngka = \"adalah Bilangan Genap\";\n System.out.println(\"\\nAngka \" +angka+ \" \" +textAngka);\n }\n\n // Memvalidasi apakah Bilangan ganjil tersebut dibawah range 1000\n if (angka < 1000){\n System.out.println(angka +\" \"+ \"merupakan bilangan di bawah Range 1000\");\n }else {\n System.out.println(angka +\" \"+ \"merupakan bilangan di atas Range 1000\");\n }\n\n }", "title": "" }, { "docid": "e5bcf6b20812a313a4e8510575d6b0b6", "score": "0.55856293", "text": "private String calcolaCodice() {\n String str = getCognome().toUpperCase() + getNome().toUpperCase() + getAnno() + getMese() + getGiorno() + getComune();\n // String str = getCognome().toUpperCase()+getNome().toUpperCase()+getAnno()+getMese()+getGiorno()+\"C741\";\n int pari = 0, dispari = 0;\n\n for (int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i); // i-esimo carattere della stringa\n\n // Il primo carattere e' il numero 1 non 0\n if ((i + 1) % 2 == 0) {\n int index = Arrays.binarySearch(elencoPari, ch); // ricerco il carattere nell'array statico elencoPari dichiarato sopra.\n pari += ((index >= 10) ? index - 10 : index); // Nella tabella di conversione i numeri da 0 a 9 come le lettere da A a J hanno un numero come valore \t\t\t\t\t // corrispondente\n } else {\n int index = Arrays.binarySearch(elencoPari, ch); // l'indice del carattere trovato in elencoPari corrisponde all'indice ->\n dispari += elencoDispari[index]; // -> del codice cercato in elencoDispari\n }\n }\n\n int controllo = (pari + dispari) % 26;\n controllo += 10; // Utilizzo la tabella elencoPari escludendo i numeri\n\n return elencoPari[controllo] + \"\";\n }", "title": "" }, { "docid": "d6809b5ed23dd52bc8a60c770ecb8e78", "score": "0.5576323", "text": "@Data(size=4, value=\"HOE2\")\n IString regulJurospendLanc() ;", "title": "" }, { "docid": "4e1882e3730dbf2f8f42a58ad1940073", "score": "0.5570493", "text": "java.lang.String getKabamNaid();", "title": "" }, { "docid": "0bdbca226ae2c9427ef31a2f884994ce", "score": "0.55659443", "text": "@Data(size=4, value=\"0054\")\n IString cobrancaImobilizado() ;", "title": "" }, { "docid": "7249e5fbbf5ac90dc8287dc5d8d04d10", "score": "0.55369467", "text": "@SuppressLint(\"SetTextI18n\")\n private void tangkapDataIntent() {\n dataNamaPengunjung = getIntent().getExtras().getString(\"namaPengunjung\");\n\n //set nama pengunjung\n tv_welcomePengunjung.setText(\"Selamat Datang \"+dataNamaPengunjung);\n }", "title": "" }, { "docid": "3b73ae662acab45ad3f56d23490c7198", "score": "0.55296683", "text": "int jumlahPenghasilanKu(double gajiKotor , double gajiLembur) {\n\t\tjumlahPenghasilan = (int)(gajiKotor+gajiLembur);\n\t\treturn jumlahPenghasilan;\n\t}", "title": "" }, { "docid": "084ced91690bcf27b47a79b1dcf826d3", "score": "0.55077696", "text": "public void getText(){\n br = txt_Barcode.getText();\n pn = txt_P_name.getText();\n pup = txt_pur_price.getText();\n sp = txt_sel_price.getText();\n P_D = txt_Prod_Date.getText();\n E_D = txt_Exp_date.getText();\n try {\n dm.parse(P_D);\n dd.parse(E_D);\n } catch (ParseException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n q_d = txt_Qua_Dam.getText();\n u = txt_Unit.getText();\n \n String iro = String.valueOf(row);\n int ro = Integer.parseInt(iro);\n table.getRowCount();\n su = Integer.parseInt(table.getValueAt(ro, 0).toString());\n String r = String.valueOf(su);\n \n JOptionPane.showMessageDialog(null, r+pn);\n \n \n \n }", "title": "" }, { "docid": "2aa373b8971060d6b4966daade835c99", "score": "0.55048627", "text": "@Data(size=4, value=\"HVD5\")\n IString subscricDepEstrut() ;", "title": "" }, { "docid": "d0a4628757b10314abadd11ab89929f0", "score": "0.5497282", "text": "@Data(size=4, value=\"0056\")\n IString diarizacao() ;", "title": "" }, { "docid": "f203e6bdd32c135f64c30138de15d96a", "score": "0.5496793", "text": "public String getSIMnameByNumber(String no) {\n\n if (no.substring(0, 6).trim().equals(\"+88019\") || no.substring(0, 3).trim().equals(\"019\")\n ) {\n return \"BL\";\n } else if (\n no.substring(0, 6).trim().equals(\"+88017\") || no.substring(0, 3).trim().equals(\"017\")) {\n return \"GP\";\n } else if (\n no.substring(0, 6).trim().equals(\"+88016\") || no.substring(0, 3).trim().equals(\"016\")) {\n\n return \"Airtel\";\n } else if (\n no.substring(0, 6).trim().equals(\"+88018\") || no.substring(0, 3).trim().equals(\"018\")) {\n return \"Robi\";\n } else if (\n no.substring(0, 6).trim().equals(\"+88015\") || no.substring(0, 3).trim().equals(\"015\")) {\n return \"Teletalk\";\n } else {\n Log.d(\"ok\", no.substring(0, 6) + \"@@\" + no.substring(0, 3));\n return \"Error\";\n }\n\n\n }", "title": "" }, { "docid": "e0420ddde3d35929a26223decf4a0f3f", "score": "0.5487063", "text": "public void getNamaAnak() {\n refOrtu.addValueEventListener(new ValueEventListener() {\n\n /* Override method di bawah merupakan penerapan konsep Polymorphism */\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String namaAnak = dataSnapshot.child(\"namaAnak\").getValue(String.class);\n\n tvKid.setText(namaAnak);\n }\n\n /* Override method di bawah merupakan penerapan konsep Polymorphism */\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "title": "" }, { "docid": "d8ebe6dd4843132b08227d79051b008d", "score": "0.54810697", "text": "public void masak(){\n panjangDada = 4.7;\n ketebalanSayap = 1;\n ketebalanPaha = 1.9;\n }", "title": "" }, { "docid": "a1442f0cdf871228cc0af56e5629eb15", "score": "0.5477354", "text": "public int maasHesapla(int gunSayisi) {\n\t\treturn gunSayisi*8*15;\n\t}", "title": "" }, { "docid": "da8b8e9cc0349cfbd079f6b8ff4d8d90", "score": "0.5476981", "text": "private void setData(ServerResponseDetailPembelian body) {\n DecimalFormat kursIndonesia = (DecimalFormat) DecimalFormat.getCurrencyInstance();\n DecimalFormatSymbols formatRp = new DecimalFormatSymbols();\n formatRp.setCurrencySymbol(\"\");\n formatRp.setMonetaryDecimalSeparator(',');\n formatRp.setGroupingSeparator('.');\n kursIndonesia.setDecimalFormatSymbols(formatRp);\n String total_biaya_rupiah = \"IDR \" + kursIndonesia.format(body.getHarga());\n\n\n //FORMAT TANGGAL\n String tanggal[] = body.getTanggal().split(\"-\", 3);\n String day = tanggal[2];\n String month = tanggal[1];\n String year = tanggal[0];\n\n if (month.equals(\"01\")) {\n month = \"Januari\";\n } else if (month.equals(\"02\")) {\n month = \"Februari\";\n } else if (month.equals(\"03\")) {\n month = \"Maret\";\n } else if (month.equals(\"04\")) {\n month = \"April\";\n } else if (month.equals(\"05\")) {\n month = \"Mei\";\n } else if (month.equals(\"06\")) {\n month = \"Juni\";\n } else if (month.equals(\"07\")) {\n month = \"Juli\";\n } else if (month.equals(\"08\")) {\n month = \"Agustus\";\n } else if (month.equals(\"09\")) {\n month = \"September\";\n } else if (month.equals(\"10\")) {\n month = \"Oktober\";\n } else if (month.equals(\"11\")) {\n month = \"November\";\n } else if (month.equals(\"12\")) {\n month = \"Desember\";\n }\n\n tvKapal.setText(body.getKapal());\n tvHarga.setText(total_biaya_rupiah);\n tvTanggal.setText(day + \" \" + month + \" \" + year);\n tvAsal.setText(body.getPelabuhan_asal());\n tvTujuan.setText(body.getPelabuhan_tujuan());\n tvBerangkat.setText(body.getWaktu_berangkat().substring(0, Math.min(body.getWaktu_berangkat().length(), 5)) + \" WITA\");\n tvSampai.setText(body.getWaktu_sampai().substring(0, Math.min(body.getWaktu_sampai().length(), 5)) + \" WITA\");\n tvStatusBayar.setText(\"Selesai\");\n tvStatusBayar.setTextColor(ContextCompat.getColor(ReviewKapalDetailActivity.this, R.color.Safety_Green));\n\n if(state.equals(\"reviewed\")){\n ratingBar.setRating(body.getRating());\n ratingBar.setIsIndicator(true);\n etUlasanKapal.setText(body.getReview());\n etUlasanKapal.setEnabled(false);\n btnSubmit.setVisibility(View.GONE);\n }\n\n }", "title": "" }, { "docid": "c39319e80754ad5bbc89e2a99267ca10", "score": "0.547389", "text": "@Data(size=4, value=\"0017\")\n IString emissaoDclAno() ;", "title": "" }, { "docid": "9ec6875cca67af4da8f9ba4fa94f5667", "score": "0.54706436", "text": "@Data(size=4, value=\"0095\")\n IString etgaLotesDesdobCtd() ;", "title": "" }, { "docid": "1e264bd8f9d888030ff6a13d59673396", "score": "0.5447976", "text": "@Data(size=4, value=\"HOB1\")\n IString transferencia() ;", "title": "" }, { "docid": "22f1217de17ce8c125d77b63c2b0b9c3", "score": "0.5425325", "text": "@Data(size=4, value=\"HVC4\")\n IString pagJurosOnLine() ;", "title": "" }, { "docid": "238d0f5820c1be99985efa11e912f6e3", "score": "0.5421013", "text": "static public String getCompanyCountryFromBarcode(String ean13) {\n String country;\r\n country = \"unknown\";\r\n int n = 0;\r\n char[] c = ean13.toCharArray();\r\n String vmes = \"\" + c[0] + \"\" + c[1] + \"\" + c[2];\r\n n = Integer.valueOf(vmes);\r\n if (000 == n) country = \"ZDA\";\r\n if (100 == n) country = \"ZDA\";\r\n if (300 <= n && n <= 370) country = \"Francija\";\r\n if (380 == n) country = \"Bulgarija\";\r\n if (383 == n) country = \"Slovenija\";\r\n if (385 == n) country = \"Hrvaška\";\r\n if (387 == n) country = \"BIH\";\r\n if (389 == n) country = \"Črna Gora\";\r\n if (400 <= n && n <= 440) country = \"Nemčija\";\r\n if (460 == n) country = \"Rusija\";\r\n if (470 == n) country = \"Kirgistan\";\r\n if (n == 471) country = \"Taivan\";\r\n if (n == 474) country = \"Estonija\";\r\n if (n == 475) country = \"Latvija\";\r\n if (n == 476) country = \"Azerbejdžan\";\r\n if (n == 477) country = \"Litva\";\r\n if (n == 478) country = \"Uzbekistan\";\r\n if (n == 479) country = \"Šri Lanka\";\r\n if (n == 480) country = \"Filipini\";\r\n if (n == 481) country = \"Belorusija\";\r\n if (n == 482) country = \"Ukrajina\";\r\n if (n == 484) country = \"Moldavija\";\r\n if (n == 485) country = \"Armenija\";\r\n if (n == 486) country = \"Gruzija\";\r\n if (n == 487) country = \"Kazahstan\";\r\n if (n == 489) country = \"Hong Kong\";\r\n if (490 == n) country = \"Japonska\";\r\n if (500 == n) country = \"VB\";\r\n if (n == 520) country = \"Grčija\";\r\n if (n == 528) country = \"Libanon\";\r\n if (n == 529) country = \"Ciper\";\r\n if (n == 530) country = \"Albanija\";\r\n if (n == 531) country = \"Makedonija\";\r\n if (n == 535) country = \"Malta\";\r\n if (n == 539) country = \"Irska\";\r\n if (540 == n) country = \"Belgija & Luksemburg\";\r\n if (n == 560) country = \"Portugalska\";\r\n if (n == 569) country = \"Islandija\";\r\n if (570 == n) country = \"Danska\";\r\n if (n == 590) country = \"Polska\";\r\n if (n == 594) country = \"Romunija\";\r\n if (n == 599) country = \"Madžarska\";\r\n if (n == 600 || n == 601) country = \"Islandija\";\r\n if (n == 608) country = \"Bahrain\";\r\n if (n == 609) country = \"Mauricius\";\r\n if (n == 611) country = \"Maroko\";\r\n if (n == 613) country = \"Alžirija\";\r\n if (n == 616) country = \"Kenija\";\r\n if (n == 619) country = \"Tunizija\";\r\n if (n == 621) country = \"Sirija\";\r\n if (n == 622) country = \"Egipt\";\r\n if (n == 624) country = \"Libija\";\r\n if (n == 625) country = \"Jordanija\";\r\n if (n == 626) country = \"Iran\";\r\n if (n == 627) country = \"Kuvait\";\r\n if (n == 628) country = \"Saudova Arabija\";\r\n if (n == 629) country = \"Emirati\";\r\n if (640 == n) country = \"Finska\";\r\n if (690 == n) country = \"Kitajska\";\r\n if (700 == n) country = \"Norveška\";\r\n if (n == 729) country = \"Izrael\";\r\n if (730 <= n && n <= 739) country = \"Švedska\";\r\n if (n == 740) country = \"Gvatemala\";\r\n if (n == 741) country = \"El Salvador\";\r\n if (n == 742) country = \"Honduras\";\r\n if (n == 743) country = \"Nikaragva\";\r\n if (n == 744) country = \"Kostarika\";\r\n if (n == 745) country = \"Panama\";\r\n if (n == 746) country = \"Dom. republika\";\r\n if (n == 750) country = \"Mehika\";\r\n if (754 == n || n == 755) country = \"Kanada\";\r\n if (n == 759) country = \"Venezuela\";\r\n if (760 == n) country = \"Švica\";\r\n if (n == 770) country = \"Kolumbija\";\r\n if (n == 773) country = \"Kolumbija\";\r\n if (n == 775) country = \"Peru\";\r\n if (n == 775) country = \"Bolivija\";\r\n if (n == 779) country = \"Argentina\";\r\n if (n == 780) country = \"Čile\";\r\n if (n == 784) country = \"Paragvaj\";\r\n if (n == 786) country = \"Ekvador\";\r\n if (789 == n || n == 790) country = \"Brazilija\";\r\n if (800 <= n && n <= 839) country = \"Italija\";\r\n if (840 == n) country = \"Španija\";\r\n if (n == 850) country = \"Kuba\";\r\n if (n == 858) country = \"Slovaška\";\r\n if (n == 859) country = \"Češka\";\r\n if (n == 860) country = \"Srbija\";\r\n if (n == 865) country = \"Mongolija\";\r\n if (n == 867) country = \"Severna Koreja\";\r\n if (n == 869) country = \"Turčija\";\r\n if (870 == n) country = \"Nizozemska\";\r\n if (n == 880) country = \"Južna Koreja\";\r\n if (n == 884) country = \"Kambodja\";\r\n if (n == 885) country = \"Tajska\";\r\n if (n == 888) country = \"Singapur\";\r\n if (n == 890) country = \"Indija\";\r\n if (n == 893) country = \"Vietnam\";\r\n if (n == 899) country = \"Indonezija\";\r\n if (900 <= n && n <= 910) country = \"Avstrija\";\r\n if (930 == n) country = \"Avstralija\";\r\n if (n == 955) country = \"Malezija\";\r\n if (n == 958) country = \"Makao\";\r\n\r\n return country;\r\n }", "title": "" }, { "docid": "5f3535ebc8cf154a9078817aedd82d83", "score": "0.541503", "text": "protected void tampilkanPilihan(String pilihan) {\r\n\t\ttry {\r\n\t\t\t// Intent digunakan untuk sebagai pengenal suatu activity\r\n\t\t\tIntent i = null;\r\n\t\t\tif (pilihan.equals(\"Do'a Agar Diberi Jodoh\")) {\r\n\t\t\t\ti = new Intent(this, dd1.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Supaya Diperlakukan Adil\")) {\r\n\t\t\t\ti = new Intent(this, dd2.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Agar Diberi Kemudahan Urusan\")) {\r\n\t\t\t\ti = new Intent(this, dd3.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Sapu jagad\")) {\r\n\t\t\t\ti = new Intent(this, dd4.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Menghadapi Lawan\")) {\r\n\t\t\t\ti = new Intent(this, dd5.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Menjauhi Kesesatan\")) {\r\n\t\t\t\ti = new Intent(this, dd6.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Diberi Keselamatan\")) {\r\n\t\t\t\ti = new Intent(this, dd7.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Agar Terhindar Dari Siksa Neraka\")) {\r\n\t\t\t\ti = new Intent(this, dd8.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Agar Diberi Limpahan Rezeki\")) {\r\n\t\t\t\ti = new Intent(this, dd9.class);\r\n\t\t\t} else if (pilihan.equals(\"Do'a Agar Mendapat Kedudukan Yang Mulia\")) {\r\n\t\t\t\ti = new Intent(this, dd10.class);\r\n\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tToast.makeText(\r\n\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\"Anda Memilih: \" + pilihan\r\n\t\t\t\t\t\t\t\t+ \" , Actionnya belum dibuat\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t\tstartActivity(i);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ebbbd1050a7115ad8efa412abff0cc9c", "score": "0.5414407", "text": "private String getCampo3() {\r\n String campo = boleto.getNossoNumero().substring(7) + boleto.getIOS() + boleto.getCarteira();\r\n \r\n return boleto.getDigitoCampo(campo,1);\r\n }", "title": "" }, { "docid": "9adde2b943ab5c5b051021f4bb064055", "score": "0.5412542", "text": "public String bacaInput() {\n File file = new File(filePathName);\r\n String row = \"\";\r\n\r\n //File file = new File(\"D:\\\\Data\\\\Rendra\\\\Kuliah\\\\Jaringan Syaraf Tiruan\\\\09. Tugas Besar\\\\Program\\\\JSTSom\\\\fileIkan.txt\");\r\n //DefaultTableModel model = null;\r\n try {\r\n FileReader fr = new FileReader(file);\r\n BufferedReader br = new BufferedReader(fr);\r\n // model = (DefaultTableModel) dataTabel.getModel();\r\n Object[] lines = br.lines().toArray();\r\n\r\n for (int i = 0; i < lines.length; i++) {\r\n //row = lines[i].toString() + \"\\n\";\r\n row = lines[i].toString();\r\n if (i == 0) {\r\n String[] hasil = row.split(\"=\");\r\n jumlahMesin = hasil[1];\r\n } else if (i >= 1) {\r\n if(i == 1) {\r\n this.tempArrival = row.split(\"=\");\r\n mode = this.tempArrival[1];\r\n }\r\n else {\r\n String[] temp = row.split(\"=\");\r\n if(temp[0].equals(\"a\")) {\r\n tempArrival = temp[1].split(\",\");\r\n arrival = new int[tempArrival.length];\r\n for(int j = 0;j<arrival.length;j++) {\r\n arrival[j] = Integer.parseInt(tempArrival[j]);\r\n }\r\n }\r\n else {\r\n tempUang = temp[1].split(\",\");\r\n uang = new int[tempUang.length];\r\n for(int j = 0;j<uang.length;j++) {\r\n uang[j] = Integer.parseInt(tempUang[j]);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n } catch (FileNotFoundException ex) {\r\n //Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return row;\r\n }", "title": "" }, { "docid": "b90fe804bceafb19a6fcec1976273c07", "score": "0.5406788", "text": "public static String nombreMesIngles(Date datFecha_p) {\n String strNombre_t;\n\n strNombre_t = dateToString(datFecha_p, \"MMM\").toLowerCase();\n\n if (strNombre_t.length() > 3) {\n strNombre_t = strNombre_t.substring(0, 3);\n }\n return strNombre_t;\n }", "title": "" }, { "docid": "693bdd34655a0b1b01d3b3b02981408e", "score": "0.5405398", "text": "@Data(size=4, value=\"0018\")\n IString infElectronicaDgci() ;", "title": "" }, { "docid": "c9c9a3fd3cc44cf00de1eb4eb52e976c", "score": "0.5398633", "text": "public void showInfo(String nama, int kadaluarsa){\r\n System.out.println(\"Nama :\"+nama+\"Kadaluarsa \"+kadaluarsa);\r\n }", "title": "" }, { "docid": "e2ec9dbd2418691af31d7bea6386d805", "score": "0.539829", "text": "public static void main (String [] args){\r\n\ttiketPersib as = new tiketPersib(\"15:10\",\"Timur\", 75000 , 2 , 033 , 1933673393 ,\"Si Jalak Harupat\" ,\"14 Maret 2018\" ,\"Persib Bandung Vs Persija\" ,\"Semua Kalangan\",\"G33, G34\");\r\n\tSystem.out.println(\"============================\");\r\n\tSystem.out.println(\"--------Tiket Persib--------\");\r\n\tSystem.out.println(\"============================\");\r\n\tSystem.out.println(\"No Tiket\t\t: \"+as.No());\r\n\tSystem.out.println(\"Nama Stadion\t\\t: \"+as.NamaStadion());\r\n\tSystem.out.println(\"Tanggal\t\t\t: \"+as.Tanggal());\r\n\tSystem.out.println(\"Jam\t\t\t: \"+as.Jam());\r\n\tSystem.out.println(\"Laga\t\t\t: \"+as.Laga());\r\n\tSystem.out.println(\"Umur\t\t\t: \"+as.Umur());\r\n\tSystem.out.println(\"Seat\t\t\t: \"+as.Seat());\r\n\tSystem.out.println(\"Tribun\t\t\t: \"+as.Tribun());\r\n\tSystem.out.println(\"Banyak Tiket\t\t: \"+as.BanyakTiket());\r\n\tSystem.out.println(\"Harga Tiket\t\t: \"+as.HargaTiket());\r\n\tSystem.out.println(\"Kode Tiket\t\t: \"+as.Kode());\r\n\tSystem.out.println(\"============================\");\r\n\t}", "title": "" }, { "docid": "49a11cfc3a3ce12c49832f67c4383753", "score": "0.5391543", "text": "public String getName() {\r\n return \"能量股份\";\r\n }", "title": "" }, { "docid": "4120cd20668705c2723de9d4a8829e87", "score": "0.5378591", "text": "public String tinhToanThoiGian()\r\n\t{\r\n\t\tString thoiGian = \"\";\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tString gio = String.valueOf(calendar.get(Calendar.HOUR));\r\n\t\tString phut = String.valueOf(calendar.get(Calendar.MINUTE));\r\n\t\tString giay = String.valueOf(calendar.get(Calendar.SECOND));\r\n\t\tString milis = String.valueOf(calendar.get(Calendar.MILLISECOND));\r\n\r\n\t\tthoiGian += \"[ \"+gio+\":\"+phut+\":\"+giay+\".\"+milis+\" ] \";\r\n\t\treturn thoiGian;\r\n\t}", "title": "" }, { "docid": "a11e239d183691f017e15938cf0687bb", "score": "0.53761536", "text": "public float getPorsiMakanan() {\n return (float) (0.05 * beratBadan);\n }", "title": "" }, { "docid": "efb4aa01e6b886f202e483d8449e72aa", "score": "0.53708905", "text": "String ultimo_ele(Metodos_pilha P) {\n return vetor[P.topo];\n }", "title": "" }, { "docid": "de260a5d4cd762ee9265021783117e2f", "score": "0.53667426", "text": "@Data(size=4, value=\"3200\")\n IString evGrupoGat() ;", "title": "" }, { "docid": "893877828922613dc8a6267caba0d211", "score": "0.53634393", "text": "@Data(size=4, value=\"0059\")\n IString despManutMensualiz() ;", "title": "" }, { "docid": "5c9172c35ca338c6f3efcc0f247871fd", "score": "0.5356238", "text": "public String getNama() {\r\n //Pengembalian nama kepada method getNama()\r\n return nama;\r\n }", "title": "" }, { "docid": "2ea636d76097453531e26bfbda4894b7", "score": "0.53509974", "text": "public Pasien panggilPasien(int nomorAntri)throws Exception{\r\n return DaftarPasien[nomorAntri];\r\n \r\n }", "title": "" }, { "docid": "cd9893985b1f305ddb5630bfd31d030f", "score": "0.53443336", "text": "@Data(size=4, value=\"3203\")\n IString evUtilizacaoPpGat() ;", "title": "" }, { "docid": "45b05bbdf141c5205029e1d92fc2e508", "score": "0.53442025", "text": "@Data(size=4, value=\"0076\")\n IString juroVencidoDiv() ;", "title": "" }, { "docid": "387c033195c266aae91fc83b8fd1aabc", "score": "0.5344097", "text": "private String formatearData(){\n String time = \"%02d/%02d/%04d\";\n int[] times = {00, 00, 0000};\n times[0]=dia;\n times[1]=mes;\n times[2]=any;\n return time.format(time, times[0], times[1], times[2]);\n }", "title": "" }, { "docid": "49db3fbf9e4d7cf1a6397d8e5fd439a5", "score": "0.53428334", "text": "private String[] bagiPasangan(String new_string){\n //tambahkan karakter z apabila panjang string ganjil\n if(new_string.length() % 2 == 1){\n new_string += \"z\";\n }\n String plain = format(new_string);\n int size = plain.length();\n if (size % 2 != 0)\n {\n size++;\n plain = plain + 'x';\n }\n String x[] = new String[size / 2];\n int counter = 0;\n for (int i = 0; i < size / 2; i++)\n {\n x[i] = plain.substring(counter, counter + 2);\n counter = counter + 2;\n }\n return x;\n }", "title": "" }, { "docid": "19c21ca15c8130d3b6c2b6b288dc74df", "score": "0.5333391", "text": "@Data(size=4, value=\"0080\")\n IString juroMoraDivida() ;", "title": "" }, { "docid": "8502c2f9e7a65ed5a861974a5f70cc4f", "score": "0.5332214", "text": "@Data(size=4, value=\"0049\")\n IString passagJuroVenc() ;", "title": "" }, { "docid": "e8cc8291624b01f28e0bc6e655cbc2cd", "score": "0.5331803", "text": "@Override\n\tpublic String getInformeFinanciero() {\n\t\treturn \"Mejor de ventas en el trimestre 3\";\n\t}", "title": "" }, { "docid": "fba5ceaee7d1fe44d1b91c66e457e9f0", "score": "0.5331287", "text": "static void nomPaysEgalNomCap(Pays [] pays, int nbPays) {\n\t\tString s = \"\";\n\t\tfor(int i=0; i<nbPays; i++) {\t//1- Parcourir le tableau\n\t\t\tif ( pays[i].getPays().trim().equals( pays[i].getCap().trim() )){//2- Comparer les capitale de chaque pays avec son nom\n\t\t\t\ts += pays[i] + \"\\n\";\t// Générer la chaine des noms de pays\n\t\t\t}\n\t\t}\n\t\t//3- Afficher\n\t\tif (s.equals(\"\")) System.out.printf(\"\\nAucun pays n'a le nom de sa capitale !!!\");\n\t\telse\t\n\t\t\tSystem.out.printf(\"\\n4- Les pays dont le nom égal au nom de sa capitale sont :\\n%s\", s);\n\t\tSystem.out.printf(\"\\n\\n\");\n\t}", "title": "" }, { "docid": "36246259beb515fa1299f40dde2a7751", "score": "0.53297925", "text": "private String getJabatann(int position){\r\n String course=\"\";\r\n try {\r\n JSONObject json = resultt.getJSONObject(position);\r\n course = json.getString(\"nama_jabatan\");\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n return course;\r\n }", "title": "" }, { "docid": "dcbe4736b4097e65e104e08517f25497", "score": "0.5328517", "text": "private static void HUF(double initial) {\n\t\tSystem.out.println(\"The Hungarian Forint is \" + df2.format(initial * 299.97) + \" when the American Dollar is $\" + initial);\n\n\t}", "title": "" }, { "docid": "11eaf10c6f760d60e93e8aada7044935", "score": "0.53275985", "text": "@Data(size=4, value=\"0063\")\n IString altProduto() ;", "title": "" }, { "docid": "3312588d83d6d74e863d62ca858553dd", "score": "0.53259826", "text": "public int getTanggalAntrian() {\r\n return tanggalAntrian;\r\n }", "title": "" }, { "docid": "010571fd69a238b6e82f82bdda57ba32", "score": "0.5325577", "text": "public String jourDeSemaine() { //Toujours erreur dans la formule\n\t\t\n\n\t\tint jj = this.jour;\n\t\tint mZ=this.mois;\n\t\tint anneeZ=this.annee;\n\t\t\n\t\tif (mZ == 1) {\n\t\t\tmZ = 11;\n\t\t\tanneeZ--;\n\t\t}\n\t\tif (mZ == 2) {\n\t\t\tmZ = 12;\n\t\t\tanneeZ--;\n\t\t}\n\t\telse {\n\t\t\tmZ=mZ-2;\n\t\t}\n\t\t\n\t\tint aZ = anneeZ % 100;\n\t\tint sZ = (int) (anneeZ / 100);\n\t\t\n\t\tint Z = ((int)((2.6 * mZ - 0.2) + jj + aZ + (int)(aZ/4) + (int)(sZ/4 - 2*sZ)))%7; \n\t\t\n\t\tif(Z<0) {\n\t\t\tZ=Z+7;\n\t\t}\n\t\t//ERREUR CALCUL, RESULTAT \"ADAPTE A L ERREUR\n\n\t\tswitch(Z) {\n\t\tcase 5: return \"Vendredi\";\n\t\tcase 6: return \"Samedi\";\n\t\tcase 0: return \"Dimanche\";\n\t\tcase 1: return \"Lundi\";\n\t\tcase 2: return \"Mardi\";\n\t\tcase 3: return \"Mercredi\";\n\t\tcase 4: return \"Jeudi\";\n\t\t\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "679eb440980dfbe16ced63f26349013a", "score": "0.5320651", "text": "@AutoEscape\r\n\tpublic String getMaTuSinh();", "title": "" }, { "docid": "2948d5681310cfbbd76868a2bfdcbe65", "score": "0.5312117", "text": "String metodo(String cadena);", "title": "" }, { "docid": "313ee22b0adb9ab0ccb3d2f9f1325f9a", "score": "0.530633", "text": "private void modIdentificare() {\n\t\tSystem.out.println(\"Alege modul de autentificare, tastand:\");\n\t\tSystem.out.println(\"\\\"1\\\" - Nume si prenume\");\n\t\tSystem.out.println(\"\\\"2\\\" - Email\");\n\t\tSystem.out.println(\"\\\"3\\\" - Numar de telefon (format \\\"+40733386463\\\"));\");\n\t}", "title": "" }, { "docid": "0aaf53fab7b462e088db349f85a37427", "score": "0.5295196", "text": "public String hentPoeng(){\n return eier.toString() + \" har \" + summerPoeng() + \" poeng\";\n }", "title": "" }, { "docid": "466c385f48ed42e775a6eae77b2bad6b", "score": "0.529304", "text": "@Data(size=4, value=\"ENTB\")\n IString etgaEntdBancarias() ;", "title": "" }, { "docid": "3440a08719cad754ff6a3cb138910c84", "score": "0.52924716", "text": "double tunjanganKhusus(String tempatKerja) {\n\t\ttunjanganKhusus = 0;\n\t\tif(tempatKerja.equals(\"Jakarta\")) {\n\t\t\ttunjanganKhusus += 1000000;\n\t\t}\n\t\treturn tunjanganKhusus;\n\t}", "title": "" }, { "docid": "db19dfef01461d8ad1ebff43232b3a5c", "score": "0.5288374", "text": "@Override\r\n\tpublic String getBebida() {\n\t\treturn mod.getBebida() + \" com Limão\";\r\n\t}", "title": "" }, { "docid": "c1f7eedae2a33a09b4aa91203b1aed93", "score": "0.5286977", "text": "@Data(size=4, value=\"HVB8\")\n IString anulPagamPremios() ;", "title": "" }, { "docid": "eac90c3c8517946d8b8dbe9f350832e6", "score": "0.52865964", "text": "@Data(size=4, value=\"HVB6\")\n IString iniczCaderneta() ;", "title": "" }, { "docid": "558a6aaf2447ce2460b8a02dbe02e0f1", "score": "0.528132", "text": "@Data(size=4, value=\"0026\")\n IString pagJuroBem() ;", "title": "" }, { "docid": "40263366bab9297150d6e717d8f97b5d", "score": "0.5264616", "text": "public String getDataDiaBr() {\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n String diaIguana = df.format(new Date());\n return diaIguana;\n }", "title": "" }, { "docid": "faf733a1cb170b0f3d0de57b66190fa9", "score": "0.52581567", "text": "private String ObtenerCabecera(){\n int columns = jTable1.getColumnCount();\n String [] headers = new String[columns];\n for (int i = 0; i < columns; i++)\n {\n headers[i] = jTable1.getColumnName(i);\n }\n String header = Arrays.toString(headers);\n String head = header.substring(1,header.indexOf(\"]\"));\n return head;\n \n }", "title": "" }, { "docid": "00aa1df45d069d9c2424ffd242f18102", "score": "0.52404666", "text": "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t// Nhap so luong PT\n\t\tint soPT = 0;\n\t\tdo {\n\t\t\tSystem.out.println(\"Nhap vao so phan tu cua mang\");\n\t\t\tsoPT = scan.nextInt();\n\t\t} while (soPT <= 0);\n\t\t// Nhap phan tu vao mang\n\t\tint mang[] = new int[soPT];\n\t\tfor (int i = 0; i < mang.length; i++) {\n\t\t\tSystem.out.println(\"Nhap phan tu thu \" + (i + 1));\n\t\t\tmang[i] = scan.nextInt();\n\t\t}\n\t\t// Sap xep mang\n\t\tint tam = 0;\n\t\tfor (int i = 0; i < mang.length; i++) {\n\t\t\tfor (int j = 0; j < mang.length; j++)\n\t\t\t\tif (mang[i] < mang[j]) {\n\t\t\t\t\ttam = mang[i];\n\t\t\t\t\tmang[i] = mang[j];\n\t\t\t\t\tmang[j] = tam;\n\t\t\t\t}\n\t\t}\n\t\t// in ra man hinh\n\t\tString mangSapxep = \"\";\n\t\tfor (int i = 0; i < mang.length; i++) {\n\t\t\tmangSapxep += mang[i] + \" \";\n\t\t}\n\t\tSystem.out.println(\"Mang da sap xep: \" + mangSapxep);\n\t\tSystem.out.println(\"Phan tu nho nhat: \" + mang[0]);\n\t\t// Tinh trung binh cong so chia het cho 3\n\t\tdouble tong = 0;\n\t\tint n = 0;\n\t\tfor (int i = 0; i < mang.length; i++) {\n\t\t\tif (mang[i] % 3 == 0) {\n\t\t\t\ttong += mang[i];\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"TB cong phan tu chia het cho 3 la: \" + tong/n);\n\t}", "title": "" }, { "docid": "330ebbc281e718ea36ab65c2c1f718fb", "score": "0.52354646", "text": "@Data(size=4, value=\"HOE1\")\n IString regulJurAguarLanc() ;", "title": "" }, { "docid": "295de6d56bf16642a5356fe7e01f4f0c", "score": "0.5225857", "text": "public abstract String getInfoAjuda(String atributo);", "title": "" }, { "docid": "9139b66ce912d62ab69099ad9a8e4a7f", "score": "0.5225005", "text": "int tipoBoton(char letra) {\n\t\tif (Character.isDigit(letra))\n\t\t\treturn ESNUM;\n\t\telse if (\"+-*/\".indexOf(letra) != -1)\n\t\t\treturn ESOP;\n\t\telse if (letra == 'C')\n\t\t\treturn ESC;\n\t\telse return ESIGUAL;\n\t}", "title": "" }, { "docid": "13fbb7f356a62d0e3f39aaa7b19affb8", "score": "0.52193093", "text": "public static void main(String[] args) {\n\n int a, b;\n //Type sout and TAB to create above\n System.out.println(\"Berikut beberapa Operasi Aritmatika pada JAVA\");\n System.out.println(\"1. Penjumlahan \\n\");\n int hasilPenjumlahan = 5 + 1;\n System.out.println(\"Hasil 5 + 1 = \" + hasilPenjumlahan);\n System.out.println();\n System.out.println(\"2. Pengurangan \\n\");\n int hasilPengurangan = 4 - 1;\n System.out.println(\"Hasil 4 - 1 = \" + hasilPengurangan);\n System.out.println();\n System.out.println(\"3. Perkalian \\n\");\n int hasilPengalian = 5 * 5;\n System.out.println(\"Hasil 5 * 5 = \" + hasilPengalian);\n System.out.println();\n System.out.println(\"4. Pembagian \\n\");\n int hasilPembagian = 20 / 2;\n System.out.println(\"Hasil 20 / 2 = \" + hasilPembagian);\n System.out.println();\n System.out.println(\"5. Hasil Bagi (MOD) \\n\");\n int hasilSisa = 8 % 2;\n System.out.println(\"Hasil 8 % 2 = \" + hasilSisa);\n int hasilSisaLain = 9 % 2;\n System.out.println(\"Hasil 9 % 2 = \" + hasilSisaLain);\n System.out.println();\n\n }", "title": "" }, { "docid": "c37412fe29116ca61bc9a98d53ba9000", "score": "0.52174133", "text": "public String IzvestajZaLekara() {\r\n\t\treturn \"Pacijent: \" + pacijent.getImePrezime() + \", datum i vreme: \" + datumIVreme.toString();\r\n\t}", "title": "" } ]
d9dcecac3eabd5b017a69067b8fd802e
Tweak the SFTPFileSystem to change the port to point to embedded sftp server
[ { "docid": "3c36add54809e80e15e549fbfac43b8d", "score": "0.78090054", "text": "@SneakyThrows\n private void changeSFTPFileSystemPort(SFTPFileSystemSSHD sftp, int sftpServerPort) {\n Field fInfo = sftp.getClass().getDeclaredField(\"connectionInfo\");\n fInfo.setAccessible(true);\n SFTPConnectionInfo info = (SFTPConnectionInfo) fInfo.get(sftp);\n Field fPort = info.getClass().getDeclaredField(\"port\");\n fPort.setAccessible(true);\n fPort.set(info, sftpServerPort);\n log.info(\"sftpServerPort {}\", sftpServerPort);\n }", "title": "" } ]
[ { "docid": "d17917cd7ee5766a6c770d649eabbbfb", "score": "0.6224137", "text": "private void SFTPConnect( String realservername, String realusername, int realport, String realpassword,\n String realFTPDirectory ) throws Exception {\n sftpclient = new SFTPClient( InetAddress.getByName( realservername ), realport, realusername );\n\n // login to ftp host ...\n sftpclient.login( realpassword );\n\n // move to spool dir ...\n if ( !Utils.isEmpty( realFTPDirectory ) ) {\n sftpclient.chdir( realFTPDirectory );\n if ( isDetailed() ) {\n logDetailed( \"Changed to directory [\" + realFTPDirectory + \"]\" );\n }\n }\n\n }", "title": "" }, { "docid": "8df0887c6c0aeb4f1932a79da05a476b", "score": "0.6098922", "text": "public FTPServer(){\n\t\tport = 21;\n\t\tuserManager = new InMemoryUserManager();\n\t}", "title": "" }, { "docid": "a35870481a0e4a2c1e0783119d1e3d79", "score": "0.569396", "text": "public UploadFtpServer() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "7cd91ca2095b8f8b22e0a8c11df3e3b8", "score": "0.5455162", "text": "private void FTPSConnect( String realservername, String realusername, int realport, String realpassword,\n String realFTPDirectory, int realtimeout ) throws Exception {\n ftpsclient =\n new FTPSConnection( getFTPSConnectionType(), realservername, realport, realusername, realpassword );\n\n if ( !Utils.isEmpty( proxyHost ) ) {\n String realProxy_host = environmentSubstitute( proxyHost );\n String realProxy_username = environmentSubstitute( proxyUsername );\n String realProxy_password = Utils.resolvePassword( this, proxyPassword );\n\n ftpsclient.setProxyHost( realProxy_host );\n if ( !Utils.isEmpty( realProxy_username ) ) {\n ftpsclient.setProxyUser( realProxy_username );\n }\n if ( !Utils.isEmpty( realProxy_password ) ) {\n ftpsclient.setProxyPassword( realProxy_password );\n }\n if ( isDetailed() ) {\n logDetailed( BaseMessages.getString( PKG, \"JobEntryFTPDelete.OpenedProxyConnectionOn\", realProxy_host ) );\n }\n\n int proxyport = Const.toInt( environmentSubstitute( proxyPort ), 21 );\n if ( proxyport != 0 ) {\n ftpsclient.setProxyPort( proxyport );\n }\n } else {\n if ( isDetailed() ) {\n logDetailed( BaseMessages.getString( PKG, \"JobEntryFTPDelete.OpenedConnectionTo\", realservername ) );\n }\n }\n\n // set activeConnection connectmode ...\n if ( activeConnection ) {\n ftpsclient.setPassiveMode( false );\n if ( isDetailed() ) {\n logDetailed( BaseMessages.getString( PKG, \"JobEntryFTPDelete.SetActive\" ) );\n }\n } else {\n ftpsclient.setPassiveMode( true );\n if ( isDetailed() ) {\n logDetailed( BaseMessages.getString( PKG, \"JobEntryFTPDelete.SetPassive\" ) );\n }\n }\n\n // Set the timeout\n ftpsclient.setTimeOut( realtimeout );\n if ( isDetailed() ) {\n logDetailed( BaseMessages.getString( PKG, \"JobEntryFTPDelete.SetTimeout\", String.valueOf( realtimeout ) ) );\n }\n\n // now connect\n ftpsclient.connect();\n\n // move to spool dir ...\n if ( !Utils.isEmpty( realFTPDirectory ) ) {\n ftpsclient.changeDirectory( realFTPDirectory );\n if ( isDetailed() ) {\n logDetailed( \"Changed to directory [\" + realFTPDirectory + \"]\" );\n }\n }\n }", "title": "" }, { "docid": "142532961885db22ad7f92c1a89f02b4", "score": "0.54422826", "text": "public void setSecurePort(int p) {\n\tsecurePort=p;\n }", "title": "" }, { "docid": "748892c14cee034af7c5fab3d04ca120", "score": "0.54071164", "text": "public TFTPServer(String homeDir){\n\t\tsetHomeDirectory(homeDir);\n\t}", "title": "" }, { "docid": "d6968df03fb77bb3c805d66251ae117b", "score": "0.5397192", "text": "public BeanShellServer(int port, String file) {\n super();\n serverfile = file;// can be the empty string\n serverport = port;\n }", "title": "" }, { "docid": "4588ad616f37ea3fd63182f0b975b33d", "score": "0.53650755", "text": "protected SshAuthenticationServerFactory() {\r\n }", "title": "" }, { "docid": "948ca7b69d7925fa0181191a7a28bbc0", "score": "0.5361542", "text": "public TFTPServer(){\t\n\t}", "title": "" }, { "docid": "d9a5174141e280d24b227791ac4f4d73", "score": "0.531557", "text": "@JSFunction \n\tpublic Object getSftpChannel() throws JSchException {\n\t\tif (sftpChannel == null) {\n\t\t\tsftpChannel = session.openChannel(\"sftp\");\n\t\t\tsftpChannel.connect();\n\t\t}\n\t\treturn sftpChannel;\n\t}", "title": "" }, { "docid": "16c576d300837c69f6d0e43c4592208f", "score": "0.5304844", "text": "void setStreamPort(UUID uuid, URI streamPort) throws FactoryObjectInformationException;", "title": "" }, { "docid": "2430909e602e86badbde4609ab0ec948", "score": "0.52693504", "text": "public void connectServer() {\n\t\tServerFTSocket newFTS = new ServerFTSocket(ftcSocket, ftSocket);\n\t\tfts.add(newFTS);\n\t\tnewFTS.start();\n\t\tscs.connect();\n\t}", "title": "" }, { "docid": "d4e8c59030a4a1b4776f2e7a6da15edc", "score": "0.52636206", "text": "private void initilizeFTP() {\n\n\t\ttry {\n\t\t\t/*\n\t\t\t * Logging statement\n\t\t\t */\n\t\t\tinfoLog_buffer.append(\"Initilizing connections to mysql and client ftp's\\n\");\n\t\t\t/*\n\t\t\t * Connect to FTP through Java Secure Shell\n\t\t\t */\n\t\t\tif(fo.isSFTP()){\n\t\t\t\tSystem.out.println(\"SFTP connect\");\n\t\t\tthis.ftpsession = jsch.getSession(this.fo.getFTP_UNAME(), this.fo.getFTPHOST(), this.dobj.getSshport());\n\t\t\tthis.ftpsession.setPassword(this.fo.getFTPPassword());\n\t\t\tthis.ftpsession.setConfig(\"StrictHostKeyChecking\", \"no\");\n\t\t\tinfoLog_buffer.append(\"Establishing Connection... with client end point\\n\");\n\t\t\tthis.ftpsession.connect();\n\t\t\tthis.sftpChannel = (ChannelSftp) ftpsession.openChannel(\"sftp\");\n\t\t\tthis.sftpChannel.connect();\n\t\t\tinfoLog_buffer.append(\"SFTP Channel created\\n\");\n\t\t\t}\n\t\t\t//FTPClient ftpClient = new FTPClient();\n\t\t\telse\n\t\t\t{\n\t\t\t//System.out.println(this.fo.getFTPHOST()+\"\\t\"+this.dobj.getSftpport());\n\t\t\tthis.ftpClient.connect(this.fo.getFTPHOST(), this.dobj.getSftpport());\n\t\t\tint replyCode = ftpClient.getReplyCode();\n\t\t\tif (!FTPReply.isPositiveCompletion(replyCode)) {\n\t\t\t\tSystem.out.println(\"Operation failed. Server reply code: \" + replyCode + \"\\n\");\n\t\t\t}\n\t\t\t/*\n\t\t\t * Login to the FTP client with the given username and password. If\n\t\t\t * not success, appropriate error messages are logged.\n\t\t\t */\n\t\t\tboolean success = ftpClient.login(this.fo.getFTP_UNAME(), this.fo.getFTPPassword());\n\t\t\tif (!success) {\n\t\t\t\tSystem.err.println(\"Could not login to the FTP server provided\\n\");\n\n\t\t\t} else {\n\t\t\t\t/*\n\t\t\t\t * If success, then success message is logged.\n\t\t\t\t */\n\t\t\t\tSystem.out.println(\"Logged into FTP server\\n\");\n\t\t\t\tSystem.out.println(ftpClient.isConnected());\n\t\t\t\tftpClient.enterLocalPassiveMode();\n\t\t\t}\n\t\t\t}\n//\t\t\tSystem.out.println(\"user name: \"+this.fo.getFTP_UNAME()+\" Host: \"+this.fo.getFTPHOST()+\" PORt: \"+this.dobj.getSftpport()+\" Password: \"+this.fo.getFTPPassword());\n\t\t\t\n\t\t\t/*\n\t\t\t * Connect to MySQl server to write the database query to files.\n\t\t\t */\n\t\t\tthis.sessionmysql = jsch.getSession(\"root\", this.dobj.getMysqlHost(), this.dobj.getSshport());\n\t\t\tthis.sessionmysql.setPassword(this.dobj.getRootpwd());\n\t\t\tthis.sessionmysql.setConfig(\"StrictHostKeyChecking\", \"no\");\n\t\t\tinfoLog_buffer.append(\"Establishing Connection...with mysql server\\n\");\n\t\t\tthis.sessionmysql.connect();\n\t\t\tthis.sftpMySqlChannel = (ChannelSftp) this.sessionmysql.openChannel(\"sftp\");\n\t\t\tsftpMySqlChannel.connect();\n\t\t\t\n\t\t\tinfoLog_buffer.append(\"SFTP Channel for mysql created\\n\");\n\t\t\tSystem.out.println(\"SFTP Channel for mysql created\\n\");\n\t\t\tinfoLog_buffer.append(\"Connections established\\n\");\n\n\t\t} catch (JSchException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\terrorLog_buffer.append(\"Problem in finding the file\\n\");\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "1fda5e7f80736a36c182e5c0d5b1ed98", "score": "0.5206778", "text": "protected abstract void startConnector(String server, int port);", "title": "" }, { "docid": "e7d207651465860b1a06280b20df7601", "score": "0.5177665", "text": "public void setServerName(String serverName)\n {\n myServerName = serverName;\n }", "title": "" }, { "docid": "b2500b5f224550015fba1e5cc9fb4b3e", "score": "0.51707953", "text": "public FishStickServer(int portNum) {\n\t\tthis.portNum = portNum;\n\t}", "title": "" }, { "docid": "38a4f0ee424874402cc75a791f84479e", "score": "0.51676583", "text": "@Override\n public void setSail() {\n originPort = taskForce.getReference();\n }", "title": "" }, { "docid": "54d090dfc1642643ae35467f452e5b78", "score": "0.5161819", "text": "public static FTPClient createConnection(String hostname, int port, String username, String password, String workingDirectory, FileSystemOptions fileSystemOptions) throws FileSystemException\n {\n // Determine the username and password to use\n if (username == null)\n {\n username = \"anonymous\";\n }\n\n if (password == null)\n {\n password = \"anonymous\";\n }\n\n try\n {\n final FTPClient client = new FTPClient();\n\n FTPFileEntryParserFactory myFactory = FtpFileSystemConfigBuilder.getInstance().getEntryParserFactory(fileSystemOptions);\n if (myFactory != null)\n {\n client.setParserFactory(myFactory);\n }\n\n try\n {\n client.connect(hostname, port);\n\n int reply = client.getReplyCode();\n if (!FTPReply.isPositiveCompletion(reply))\n {\n throw new FileSystemException(\"vfs.provider.ftp/connect-rejected.error\", hostname);\n }\n\n // Login\n if (!client.login(username, password))\n {\n throw new FileSystemException(\"vfs.provider.ftp/login.error\", new Object[]{hostname, username}, null);\n }\n\n // Set binary mode\n if (!client.setFileType(FTP.BINARY_FILE_TYPE))\n {\n throw new FileSystemException(\"vfs.provider.ftp/set-binary.error\", hostname);\n }\n\n // Change to root by default\n // All file operations a relative to the filesystem-root\n // String root = getRoot().getName().getPath();\n\n Boolean userDirIsRoot = FtpFileSystemConfigBuilder.getInstance().getUserDirIsRoot(fileSystemOptions);\n if (workingDirectory != null && (userDirIsRoot == null || !userDirIsRoot.booleanValue()))\n {\n if (!client.changeWorkingDirectory(workingDirectory))\n {\n throw new FileSystemException(\"vfs.provider.ftp/change-work-directory.error\", \"/\");\n }\n }\n\n Boolean passiveMode = FtpFileSystemConfigBuilder.getInstance().getPassiveMode(fileSystemOptions);\n if (passiveMode != null && passiveMode.booleanValue())\n {\n client.enterLocalPassiveMode();\n }\n }\n catch (final IOException e)\n {\n if (client.isConnected())\n {\n client.disconnect();\n }\n throw e;\n }\n\n return client;\n }\n catch (final Exception exc)\n {\n throw new FileSystemException(\"vfs.provider.ftp/connect.error\", new Object[]{hostname}, exc);\n }\n }", "title": "" }, { "docid": "79547882a4302425ad67e72a9d6f367f", "score": "0.5134185", "text": "public SFTPSession(){\n sessions = new HashMap<Credential, Session>();\n usedSessions = new HashMap<>();\n }", "title": "" }, { "docid": "9d4ff98283201d251145722d0f1b037f", "score": "0.5127679", "text": "private void openServerSocket() {\n try {\n this.serverSocket = new ServerSocket(this.SERVER_PORT);\n } catch (IOException e) {\n throw new RuntimeException(\"Cannot open port 8080\", e);\n }\n }", "title": "" }, { "docid": "f767d2f954d6c94654df7948c8626794", "score": "0.5115497", "text": "@BeforeClass\n public static void setup() throws FtpException, IOException {\n ftpServer = new FtpBaseServer(USER, PASS, FTP_RESOURCES_PATH, FtpBaseServer.DEFAULT_PORT);\n ftpServer.init();\n ftpServer.start();\n\n ftpClient = new FtpClient(\"localhost\", FtpBaseServer.DEFAULT_PORT, USER, PASS);\n ftpClient.open();\n }", "title": "" }, { "docid": "ef3c04a3f5906bfeb237b5893269fcf4", "score": "0.50952303", "text": "public FTPFileSender(String server,String username,String password,String remoteDirectory,String[] files,boolean secure,boolean generateRandomRemoteFileNames,MessageLogger logger,JProgressBar progressBar) throws NoSuchAlgorithmException, IOException, FTPException {\n\t\tSafeProgressBarUpdaterThread progressBarUpdater = null;\n\t\tif (progressBar != null) {\n\t\t\tprogressBarUpdater = new SafeProgressBarUpdaterThread(progressBar);\n\t\t}\n\t\tFTPClient ftp = secure ? new FTPSClient(\"TLS\",false/*isImplicit*/) : new FTPClient();\n\t\tslf4jlogger.debug(\"FTPClient original connect timeout = {} ms\",ftp.getConnectTimeout());\n\t\tftp.setConnectTimeout(socketConnectTimeoutInMilliSeconds);\n\t\tslf4jlogger.debug(\"FTPClient replaced connect timeout = {} ms\",ftp.getConnectTimeout());\n\t\tif (slf4jlogger.isDebugEnabled()) ftp.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.err)));\t// This is not right ... need to find a way to create PrintWriter that sends to SLF4H :(\n\t\ttry {\n\t\t\tint reply;\n\t\t\tif (secure) {\n\t\t\t\ttry {\n\t\t\t\t\tslf4jlogger.debug(\"Trying to connect in explicit mode to {}\",server);\n\t\t\t\t\tftp.connect(server);\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tslf4jlogger.debug(\"Failed to connect in explicit mode to {}\",server,e);\n\t\t\t\t\tslf4jlogger.debug(\"Trying again in implicit mode on port 990\");\n\t\t\t\t\t// failed so try implicit mode on port 990\n\t\t\t\t\tftp = new FTPSClient(\"TLS\",true/*isImplicit*/);\n\t\t\t\t\tslf4jlogger.debug(\"FTPClient original connect timeout = {} ms\",ftp.getConnectTimeout());\n\t\t\t\t\tftp.setConnectTimeout(socketConnectTimeoutInMilliSeconds);\n\t\t\t\t\tslf4jlogger.debug(\"FTPClient replaced connect timeout = {} ms\",ftp.getConnectTimeout());\n\t\t\t\t\tftp.setDefaultPort(990);\n\t\t\t\t\tif (slf4jlogger.isDebugEnabled()) ftp.addProtocolCommandListener(new PrintCommandListener(new PrintWriter(System.err)));\t// This is not right ... need to find a way to create PrintWriter that sends to SLF4H :(\n\t\t\t\t\tslf4jlogger.debug(\"About to connect\");\n\t\t\t\t\tftp.connect(server);\n\t\t\t\t\tslf4jlogger.debug(\"Back from connect\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Let any failure fall through with no retry ...\n\t\t\t\tftp.connect(server);\n\t\t\t}\n\t\t\tslf4jlogger.debug(\"Connected to {}\",server);\n\t\t\tslf4jlogger.debug(ftp.getReplyString());\n\t\t\treply = ftp.getReplyCode();\n\t\t\tif(!FTPReply.isPositiveCompletion(reply)) {\n\t\t\t\tftp.disconnect();\n\t\t\t\tthrow new FTPException(\"FTP server \"+server+\" refused connection\");\n\t\t\t}\n\t\t\tif (secure) {\n\t\t\t\t((FTPSClient)ftp).execPBSZ(0);\t\t\t// required, but only value permitted is 0\n\t\t\t\t((FTPSClient)ftp).execPROT(\"P\");\t\t// otherwise transfers will be unencrypted\n\t\t\t}\n\t\t\tif (!ftp.login(username, password)) {\n\t\t\t\tftp.disconnect();\n\t\t\t\tthrow new FTPException(\"FTP server \"+server+\" login failed\");\n\t\t\t}\n\t\t\t// transfer files\n\t\t\t\n\t\t\tftp.enterLocalPassiveMode();\n\t\t\t\n\t\t\tif (remoteDirectory != null && remoteDirectory.length() > 0) {\n\t\t\t\tif (!ftp.changeWorkingDirectory(remoteDirectory)) {\n\t\t\t\t\tftp.disconnect();\n\t\t\t\t\tthrow new FTPException(\"FTP server \"+server+\" cwd to \"+remoteDirectory+\" failed\");\n\t\t\t\t}\n\t\t\t\tslf4jlogger.debug(\"Working directory is now {}\",ftp.printWorkingDirectory());\n\t\t\t}\n\n\t\t\tif (!ftp.setFileType(FTP.BINARY_FILE_TYPE)) {\n\t\t\t\tftp.disconnect();\n\t\t\t\tthrow new FTPException(\"FTP server \"+server+\" set file type to Binary failed\");\n\t\t\t}\n\n\t\t\tApplicationEventDispatcher applicationEventDispatcher = ApplicationEventDispatcher.getApplicationEventDispatcher();\n\t\t\tint maximum = files.length;\n\t\t\tSafeProgressBarUpdaterThread.startProgressBar(progressBarUpdater,maximum);\n\t\t\tint done=0;\n\t\t\tfor (String localFilename: files) {\n\t\t\t\tSafeProgressBarUpdaterThread.updateProgressBar(progressBarUpdater,done);\n\t\t\t\tFile localFile = new File(localFilename);\n\t\t\t\tInputStream i = new FileInputStream(localFile);\n\t\t\t\tString remoteFilename = generateRandomRemoteFileNames ? UUID.randomUUID().toString() : localFile.getName();\n\t\t\t\tslf4jlogger.debug(\"Attempting to store local {} to remote {}\",localFilename,remoteFilename);\n\t\t\t\tif (!ftp.storeFile(remoteFilename,i)) {\n\t\t\t\t\tftp.disconnect();\n\t\t\t\t\tthrow new FTPException(\"FTP server \"+server+\" file store of local \"+localFilename+\" to remote \"+remoteFilename+\" failed\");\n\t\t\t\t}\n\t\t\t\ti.close();\n\t\t\t\tslf4jlogger.debug(\"Successfully stored local {} to remote {}\",localFilename,remoteFilename);\n\t\t\t\tif (logger != null) {\n\t\t\t\t\tlogger.sendLn(\"Successfully stored local \"+localFilename+\" to remote \"+remoteFilename);\n\t\t\t\t}\n\t\t\t\tSafeProgressBarUpdaterThread.endProgressBar(progressBarUpdater);\n\t\t\t\tif (applicationEventDispatcher != null) {\n\t\t\t\t\tapplicationEventDispatcher.processEvent(new StatusChangeEvent(\"Sent \"+localFilename+\" to Registry\"));\n\t\t\t\t}\n\t\t\t\t++done;\n\t\t\t}\n\n\t\t\tftp.logout();\n\t\t}\n\t\tfinally {\n\t\t\tif(ftp.isConnected()) {\n\t\t\t\tslf4jlogger.debug(\"FTPFileSender(): finally so disconnect\");\n\t\t\t\tftp.disconnect();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7563dd09abd131d83f137f7e205d0ac8", "score": "0.50920707", "text": "protected void setViaPort(int port) { this.viaPort = port; }", "title": "" }, { "docid": "1f10fad681f1ee28a9672aec09b0e7ce", "score": "0.5065307", "text": "ActivationServerSocketFactory(ServerSocket param1ServerSocket) {\n/* 2230 */ this.serverSocket = param1ServerSocket;\n/* */ }", "title": "" }, { "docid": "c9c28a331bb033af3e22d4c2a32e5261", "score": "0.5052146", "text": "void setServerSocket(ServerSocket serverSocket) {\n\t\tthis.serverSocket = serverSocket;\n\t}", "title": "" }, { "docid": "e9a3f9a3134139111624bf90372a678e", "score": "0.50343794", "text": "public void setFileSystem(String FileSystem) {\n this.FileSystem = FileSystem;\n }", "title": "" }, { "docid": "385bdd939805afefe705ab7c674b5f13", "score": "0.5029937", "text": "private ServerSocket openSocket(int port) {\n try {\n return new ServerSocket(port);\n } catch (IOException e) {\n // avoid printing a scary stack that is due to handover.\n CLog.w(\n \"Failed to open server socket: %s. Probably due to another instance of TF \"\n + \"running.\",\n e.getMessage());\n return null;\n }\n }", "title": "" }, { "docid": "b9899f88f8660488ab0966ba2e2759bf", "score": "0.5028834", "text": "private void configureConnectors() {\n final HttpConfiguration httpConfiguration = new HttpConfiguration();\n httpConfiguration.setRequestHeaderSize(HEADER_BUFFER_SIZE);\n httpConfiguration.setResponseHeaderSize(HEADER_BUFFER_SIZE);\n\n if (properties.getPort() != null) {\n final Integer port = properties.getPort();\n if (port < 0 || (int) Math.pow(2, 16) <= port) {\n throw new IllegalStateException(\"Invalid HTTP port: \" + port);\n }\n\n logger.info(\"Configuring Jetty for HTTP on port: \" + port);\n\n // create the connector\n final ServerConnector http = new ServerConnector(server, new HttpConnectionFactory(httpConfiguration));\n\n // set host and port\n if (StringUtils.isNotBlank(properties.getHttpHost())) {\n http.setHost(properties.getHttpHost());\n }\n http.setPort(port);\n\n // add this connector\n server.addConnector(http);\n } else if (properties.getSslPort() != null) {\n final Integer port = properties.getSslPort();\n if (port < 0 || (int) Math.pow(2, 16) <= port) {\n throw new IllegalStateException(\"Invalid HTTPs port: \" + port);\n }\n\n logger.info(\"Configuring Jetty for HTTPs on port: \" + port);\n\n // add some secure config\n final HttpConfiguration httpsConfiguration = new HttpConfiguration(httpConfiguration);\n httpsConfiguration.setSecureScheme(\"https\");\n httpsConfiguration.setSecurePort(properties.getSslPort());\n httpsConfiguration.addCustomizer(new SecureRequestCustomizer());\n\n // build the connector\n final ServerConnector https = new ServerConnector(server,\n new SslConnectionFactory(createSslContextFactory(), \"http/1.1\"),\n new HttpConnectionFactory(httpsConfiguration));\n\n // set host and port\n if (StringUtils.isNotBlank(properties.getHttpsHost())) {\n https.setHost(properties.getHttpsHost());\n }\n https.setPort(port);\n\n // add this connector\n server.addConnector(https);\n }\n }", "title": "" }, { "docid": "9cda41c822a5b90be17ee3b43c94ce53", "score": "0.5014116", "text": "@FXML\n public final void editServer() {\n config = new Settings().open(config);\n }", "title": "" }, { "docid": "287293e4eefa28ea50646c339dfb1d0c", "score": "0.49968335", "text": "public synchronized void setServerPort(int port)\n {\n\tserver_port = port;\n }", "title": "" }, { "docid": "b35537ba51950973b8ec6f8718adf285", "score": "0.49399403", "text": "public void openServerSocket(String ip, int port){\n\t\ttry {\n serverSocket = new ServerSocket(myPort);\n } catch (IOException e) {\n throw new RuntimeException(\"Cannot open port\", e);\n }\n\t}", "title": "" }, { "docid": "99a23a04f2ef583e8e20fd31ff02e1ab", "score": "0.49329492", "text": "private static void setupFileTransferChannel() {\n final ClientBootstrap fileBootstrap = new ClientBootstrap(\n new NioClientSocketChannelFactory(\n Executors.newFixedThreadPool(1),\n Executors.newFixedThreadPool(2)));\n\n // Set up the pipeline factory.\n fileBootstrap.setPipelineFactory(new ChannelPipelineFactory() {\n public ChannelPipeline getPipeline() throws Exception {\n ChannelPipeline pipeline = Channels.pipeline();\n\n FileTransferManager manager = controller.getFileTransferManager();\n pipeline.addLast(\"logger\", new LoggerHandler(Level.FINE, Level.INFO));\n pipeline.addLast(\"reconnector\", new Reconnector(fileBootstrap, manager, controller));\n pipeline.addLast(\"file receiver\", new FileReceiver(controller));\n\n return pipeline;\n }\n });\n\n InetSocketAddress remoteAddress = new InetSocketAddress(host, filePort);\n\n //notification and log\n String uuid = UUID.randomUUID().toString();\n String message = String.format(\"Trying to connect to %s\", remoteAddress.toString());\n LOG.log(Level.INFO, message);\n commandManager.executeCommand(Notification.operationStarted(message, uuid));\n\n connect(fileBootstrap, remoteAddress, uuid);\n\n }", "title": "" }, { "docid": "520550647a021ffa168cd5c6ec2cb2eb", "score": "0.49274048", "text": "@Override\n public int getServerPort() {\n return mServerSocket.getLocalPort();\n }", "title": "" }, { "docid": "c9f63ce52adbda60fec8d640eb49bbad", "score": "0.4923627", "text": "public void openServerSocket() {\n try {\n this.serverSocket = new ServerSocket(this.port);\n init = false;\n System.out.println(\"SERVER RUNNING ON PORT \" + this.port);\n } catch (IOException e) {\n throw new RuntimeException(\"Not able to open the server\", e);\n } \n }", "title": "" }, { "docid": "fb7dc0257c6548d9aa537f5dd71a0d04", "score": "0.49203348", "text": "public DefaultServerProtocolTCP() {\n\t\tthis(2000);\n\t}", "title": "" }, { "docid": "0a935a17fa2a934092e37994c3ad8feb", "score": "0.49140656", "text": "public EmbeddedServerPortFileWriter()\n/* */ {\n/* 59 */ this(new File(\"application.port\"));\n/* */ }", "title": "" }, { "docid": "198b884986700b5418be0e1c75f8816e", "score": "0.49137214", "text": "public void setupChunkserverHost() throws RemoteException;", "title": "" }, { "docid": "942eeae0497221ed95eddde0ef5852a3", "score": "0.49082318", "text": "public List<String> getFileServer(){\n\t\tList<String> listFiles = new ArrayList<>();\n\t\tLOG.info(\"--METHOD: getFileServer();\");\n\t\t\n\t\ttry {\n\t\t\tJSch jsch = new JSch();\t\t\t\n\t\t\tSession session = jsch.getSession(Constants.USER_SERVER, Constants.IP_SERVER, Constants.PORT_SERVER);\n\t\t\tsession.setPassword(Constants.PASSWORD_SERVER);\n\t\t\tjava.util.Properties config = new java.util.Properties();\n\t\t\tconfig.put(\"StrictHostKeyChecking\", \"no\");\n\t\t\tsession.setConfig(config);\n\t\t\tsession.connect();\n\t\t\tChannel channel = session.openChannel(\"sftp\");\n\t\t\tchannel.connect();\n\t\t\tChannelSftp sftpChannel = (ChannelSftp) channel;\n\t\t\tsftpChannel.cd(Constants.PATH_SERVER);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<LsEntry> filesEntries = sftpChannel.ls(Constants.PATH_SERVER);\n\t\t\tfor (LsEntry file : filesEntries) {\n\t\t\t\t//LOG.info(\"--FILE: \" + file.getFilename());\n\t\t\t\tif(!file.getFilename().equals(\"..\") && !file.getFilename().equals(\".\")) {\n\t\t\t\t\tbyte[] buffer = new byte[1024];\n\t\t\t\t\tBufferedInputStream bis = new BufferedInputStream(sftpChannel.get(file.getFilename()));\n\t\t\t\t\tFile outputfile = new File(Constants.PATH_LOCAL + file.getFilename());\n\t\t\t\t\tOutputStream os = new FileOutputStream(outputfile);\n\t\t\t\t\tBufferedOutputStream bos = new BufferedOutputStream(os);\t\t\t\t\t\n\t\t\t\t\tint readCount;\n\t\t\t\t\twhile((readCount = bis.read(buffer)) > 0) {\n\t\t\t\t\t\tbos.write(buffer, 0, readCount);\n\t\t\t\t\t}\n\t\t\t\t\tbis.close();\n\t\t\t\t\tbos.close();\n\t\t\t\t\t\n\t\t\t\t\tlistFiles.add(file.getFilename());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tsftpChannel.exit();\n\t\t\tsftpChannel.disconnect();\t\t\n\t\t\t\n\t\t}catch(Exception ex) {\n\t\t\tLOG.error(\"ERROR AL DESCARGAR ARCHIVO: \" + ex.getMessage());\n\t\t}\t\t\n\t\t\n\t\t\n\t\treturn listFiles;\n\t}", "title": "" }, { "docid": "2af5f6b8cc91eebf8d9109c67136fb58", "score": "0.48938683", "text": "@Override\n public int getServerPort() {\n return serverPort;\n }", "title": "" }, { "docid": "af985ca20abdf04f056726754563f198", "score": "0.4890914", "text": "private void setEnvironmentForFile(ConfigurableApplicationContext ctx,\n\t\t\tString fileName) {\n\t\tStandardEnvironment environment = new StandardEnvironment();\n\t\tProperties props = new Properties();\n\n\t\t// populate properties for file\n\t\tprops.setProperty(\"host\", env.getProperty(\"batch.sftp.hostname\"));\n\t\tprops.setProperty(\"user\", env.getProperty(\"batch.sftp.username\"));\n\t\tprops.setProperty(\"password\", env.getProperty(\"batch.sftp.password\"));\n\t\tprops.setProperty(\"port\", env.getProperty(\"batch.sftp.port\"));\n\t\tprops.setProperty(\"remote.directory\", getRemoteDirectoryForFile(fileName));\n\t\tPropertiesPropertySource pps = new PropertiesPropertySource(\"ftpprops\",\n\t\t\t\tprops);\n\t\tenvironment.getPropertySources().addLast(pps);\n\t\tctx.setEnvironment(environment);\n\t}", "title": "" }, { "docid": "fee84ae9b18efdf6fc56d87728bc68b6", "score": "0.4884452", "text": "public static void main(String args[]) {\n try {\n // Setup a logfile\n /*Handler fh = new FileHandler(\"example.log\");\n fh.setFormatter(new SimpleFormatter());\n Logger.getLogger(\"com.sshtools\").setUseParentHandlers(false);\n Logger.getLogger(\"com.sshtools\").addHandler(fh);\n Logger.getLogger(\"com.sshtools\").setLevel(Level.ALL);*/\n // Configure J2SSH (This will attempt to install the bouncycastle provider\n // under jdk 1.3.1)\n ConfigurationLoader.initialize(false);\n BufferedReader reader =\n new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Connect to host? \");\n String hostname = reader.readLine();\n // Make a client connection\n SshClient ssh = new SshClient();\n // Connect to the host\n ssh.connect(hostname);\n // Create a password authentication instance\n PasswordAuthenticationClient pwd = new PasswordAuthenticationClient();\n // Get the users name\n System.out.print(\"Username? \");\n String username = reader.readLine();\n pwd.setUsername(username);\n // Get the password\n System.out.print(\"Password? \");\n String password = reader.readLine();\n pwd.setPassword(password);\n // Try the authentication\n int result = ssh.authenticate(pwd);\n // Evaluate the result\n if (result == AuthenticationProtocolState.COMPLETE) {\n // The connection is authenticated we can now do some real work!\n SftpClient sftp = ssh.openSftpClient();\n // Make a directory\n try {\n sftp.mkdir(\"j2ssh\");\n }\n catch (IOException ex) {\n }\n // Change directory\n sftp.cd(\"j2ssh\");\n logger.info(sftp.pwd());\n // Change the mode\n sftp.chmod(0777, \"j2ssh\");\n sftp.lcd(\"c:/\");\n // Upload a file\n sftp.put(\"system.gif\");\n // Change the local directory\n sftp.lcd(\"localdir\");\n // Download a file\n sftp.get(\"somefile.txt\", \"anotherfile.txt\");\n // Remove a directory or file\n sftp.rm(\"j2ssh\");\n // Quit\n sftp.quit();\n ssh.disconnect();\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n System.exit(0);\n }\n }", "title": "" }, { "docid": "93c54b4b2500a37c288fb3718bbf9748", "score": "0.48560867", "text": "public void setRemoteServerPort(int remoteServerPort)\r\n\t{\r\n\t\tthis.remoteServerPort = remoteServerPort;\r\n\t}", "title": "" }, { "docid": "ffe62826a7bb4b3ce6cccf928b8dbf2d", "score": "0.48170167", "text": "@Override\r\n protected String getServerName() {\n return \"localhost\";\r\n }", "title": "" }, { "docid": "3a4f2d36a5e4bcc709e1bb6ce628b952", "score": "0.48116454", "text": "private void doInitSocketServerSctp() throws IOException {\n\t\tdirtyServerSctp = SctpServerChannel.open();\r\n\t\tdirtyServerSctp.configureBlocking(false);\r\n\r\n\t\t// Bind the server socket to the specified address and port\r\n\t\tInetSocketAddress isa = new InetSocketAddress(CLIENT_HOST, CLIENT_PORT);\r\n\t\tdirtyServerSctp.bind(isa);\r\n\t}", "title": "" }, { "docid": "56bad48c1275fcef48fbbf7b96734af5", "score": "0.47949168", "text": "private void setServerPort() {\r\n\r\n\t\tString testString = textFieldServerport.getText();\r\n\t\tif (testString.matches(\"[0-9]+\")) {\r\n\t\t\tInteger iServerPort = new Integer(textFieldServerport.getText());\r\n\t\t\tif ((iServerPort < 1) || (iServerPort > 65535)) {\r\n\t\t\t\t// Nicht im Wertebereich\r\n\t\t\t\t// Aktualisieren des Frames auf dem Bildschirm\r\n\t\t\t\tstartable = false;\r\n\t\t\t\tserverport.setTextFill(Color.web(SystemConstants.RED_COLOR));\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Serverport: \" + iServerPort);\r\n\t\t\t\tiParam.setRemoteServerPort(iServerPort.intValue());\r\n\t\t\t\tserverport.setTextFill(Color.web(SystemConstants.BLACK_COLOR));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tstartable = false;\r\n\t\t\tserverport.setTextFill(Color.web(SystemConstants.RED_COLOR));\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "99e0548a5ad24c38e090485698a80de8", "score": "0.47947514", "text": "private FTPServer() throws IOException {\n serverSocket = new ServerSocket();\n serverSocket.bind(new InetSocketAddress(SERVER_PORT));\n\n LOG_PATH.mkdirs();\n\n logFileWriter = new FileWriter(LOG_FILE, true);\n logPrintWriter = new PrintWriter(System.out, true);\n }", "title": "" }, { "docid": "5a1a46452f92479d0dfbc67f362f2a69", "score": "0.4787266", "text": "public void setFile(ch.ivyteam.ivy.admin.tool.ClientServerRemoteFile _file)\n {\n file = _file;\n }", "title": "" }, { "docid": "0e04c99d57cdb5bfbfcfa1aec21b97f9", "score": "0.47845212", "text": "Integer getRepositoryServerPort();", "title": "" }, { "docid": "b5bcb72f7bfffef712942b7098d1624e", "score": "0.47790778", "text": "ServerControl start(int port) throws IOException;", "title": "" }, { "docid": "318a5b850f0a75080a591341480d12df", "score": "0.4774248", "text": "@Override\n public void setServerPort(int serverPort) {\n this.serverPort = serverPort;\n }", "title": "" }, { "docid": "8cabcf75885a733f80c88a6876aae016", "score": "0.4773073", "text": "public void passiveServer ( ) {\r\n remoteProtocol.passive();\r\n return;\r\n}", "title": "" }, { "docid": "822a88ba0692371a5bf6f34441bcd654", "score": "0.47683838", "text": "Builder ftpPassiveModeEnabled(boolean ftpPassiveMode);", "title": "" }, { "docid": "7b446e56fe310fcf53c8d22cdb76806c", "score": "0.4763379", "text": "public void server() {\n\t\tThreadManager.create(\"ipc.shereFiles-UDPServer\", new Thread() {\n\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t\t server = NetworkManager.udp();\n\t\t\t\t\t\t\t\t server.\n\t\t\t\t\t\t\t\t\t expect(\":shereFilesBroadcast\", new Action() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run(Request request) {\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 (request.same()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\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\t// Destination = Target's IP and Port\n\t\t\t\t\t\t\t\t\t\t\t\tString destination = server.\n\t\t\t\t\t\t\t\t\t\t\t\t\ttarget(request.from());\n\t\t\t\t\t\t\t\t\t\t\t\tFile folder = new File(AppSettings.\n\t\t\t\t\t\t\t\t\t\t\t\t\tinstance().get(keyPathFiles));\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (!folder.exists()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tnew File(AppSettings.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tinstance().\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tget(keyPathFiles)).\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmkdir();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfolder = new File(AppSettings.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tinstance().\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tget(keyPathFiles));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tString message = AppSettings.\n\t\t\t\t\t\t\t\t\t\t\t\t\tinstance().\n\t\t\t\t\t\t\t\t\t\t\t\t\tget(\"TCP_PORT\") + \"|\" + \"\";\n\n\t\t\t\t\t\t\t\t\t\t\t\tFile[] listOfFiles = folder.\n\t\t\t\t\t\t\t\t\t\t\t\t\tlistFiles();\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (listOfFiles != null && listOfFiles.length > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (File file : listOfFiles) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (file.isFile()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmessage += file.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetName() + \" \" + file.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlength() + \" bytes;\";\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}\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\tserver.\n\t\t\t\t\t\t\t\t\t\t\t\t\tsend(\":shereFiles-port|:shereFiles-files\", destination, message);\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t server.\n\t\t\t\t\t\t\t\t\t expect(\":shereFiles-port|:shereFiles-files\", new Action() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run(Request request) {\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 (request.same()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\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\tMap<String, String> hostInformations = new LinkedHashMap<>();\n\t\t\t\t\t\t\t\t\t\t\t\thostInformations.\n\t\t\t\t\t\t\t\t\t\t\t\t\tput(\"reference\", \"files\");\n\t\t\t\t\t\t\t\t\t\t\t\thostInformations.\n\t\t\t\t\t\t\t\t\t\t\t\t\tput(\"ip\", request.from());\n\t\t\t\t\t\t\t\t\t\t\t\thostInformations.\n\t\t\t\t\t\t\t\t\t\t\t\t\tput(\"hostname\", request.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thostname());\n\t\t\t\t\t\t\t\t\t\t\t\thostInformations.\n\t\t\t\t\t\t\t\t\t\t\t\t\tput(\"port\", request.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tget(\"shereFiles-port\").\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tget(0));\n\t\t\t\t\t\t\t\t\t\t\t\thostInformations.\n\t\t\t\t\t\t\t\t\t\t\t\t\tput(\"files\", request.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tget(\"shereFiles-files\").\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tget(0));\n\t\t\t\t\t\t\t\t\t\t\t\tNotification.filesInformer().\n\t\t\t\t\t\t\t\t\t\t\t\t\tnotifyChange(hostInformations);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t });\n\t\tThreadManager.run(\"ipc.shereFiles-UDPServer\");\n\t}", "title": "" }, { "docid": "fcf2fde059ced2e38cf8fd5148d8edfb", "score": "0.47616798", "text": "@Override\n public void setUsePassiveMode(boolean usePassiveMode)\n {\n m_usePassiveMode = usePassiveMode;\n }", "title": "" }, { "docid": "2ed365b7761ad113306b9d4b68a30856", "score": "0.47527528", "text": "public interface IJschDependency {\n\n Session createNewSftpSession(Map<String,String> props, String sftpHost, int sftpPort,\n String sftpUser, String sftpKeyLocation);\n ChannelSftp createdNewSftpChannel(Session session,String sftpHost,int sftpPort,\n String sftpUser,String sftpKeyLocation);\n\n // boolean issueKerberosToken(Map<String,String> props);\n\n}", "title": "" }, { "docid": "1aaf81d31370510b030943b4d445330c", "score": "0.47416508", "text": "public void setSSDPPort(int port) {\n\t\tthis.port = port;\n\t}", "title": "" }, { "docid": "cf12c66c60e37a1f358b5b7bf0209de3", "score": "0.47402516", "text": "private void startServer() {\n\t\ttry {\n\t\t\t// Set the default Port\n\t\t\tif (System.getProperty(\"ks.test.default.port\")==null||System.getProperty(\"ks.test.default.port\").isEmpty()){\n\t\t\t\tSystem.setProperty(\"ks.test.port\", \"9191\");\n\t\t\t} else {\n\t\t\t\tSystem.setProperty(\"ks.test.port\", System.getProperty(\"ks.test.default.port\"));\n\t\t\t}\n\n\t\t\t// Grab the client annotation and set the service implementation and\n\t\t\t// port as system properties\n\t\t\tfor (Field f : testImplClass.getDeclaredFields()) {\n\t\t\t\tif (f.isAnnotationPresent(Client.class)) {\n\t\t\t\t\tClient a = f.getAnnotation(Client.class);\n\t\t\t\t\tif (a.secure()) {\n\t\t\t\t\t\tSystem.setProperty(\"ks.test.serviceImplSecure\", a\n\t\t\t\t\t\t\t\t.value());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.setProperty(\"ks.test.serviceImplClass\", a\n\t\t\t\t\t\t\t\t.value());\n\t\t\t\t\t}\n\t\t\t\t\tif(a.port()!=null&&!a.port().isEmpty()){\n\t\t\t\t\t\tSystem.setProperty(\"ks.test.port\", a.port());\n\t\t\t\t\t}\n\t\t\t\t\tif(!\"\".equals(a.additionalContextFile())){\n\t\t\t\t\t\tSystem.setProperty(\"ks.test.additionalContextFile\", a.additionalContextFile());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.setProperty(\"ks.test.additionalContextFile\", \"classpath:*noSuchContextFile.xml\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If no secure client defined, set secure service endpoint impl\n\t\t\t// to be same as non-secure endpoint impl\n\t\t\tif (System.getProperty(\"ks.test.serviceImplSecure\") == null) {\n\t\t\t\tSystem.setProperty(\"ks.test.serviceImplSecure\", System\n\t\t\t\t\t\t.getProperty(\"ks.test.serviceImplClass\"));\n\t\t\t}\n\n\t\t\t// Grab the persistence context loacation or set a default value\n\t\t\tif (testImplClass\n\t\t\t\t\t.isAnnotationPresent(PersistenceFileLocation.class)) {\n\t\t\t\tPersistenceFileLocation a = testImplClass\n\t\t\t\t\t\t.getAnnotation(PersistenceFileLocation.class);\n\t\t\t\tSystem.setProperty(\"ks.test.persistenceLocation\", a.value());\n\t\t\t} else {\n\t\t\t\tSystem.setProperty(\"ks.test.persistenceLocation\",\n\t\t\t\t\t\t\"classpath:META-INF/persistence.xml\");\n\t\t\t}\n\n\t\t\t// Grab the Dao information and pass it to a System variable\n\t\t\tDaos daos = testImplClass.getAnnotation(Daos.class);\n\n\t\t\tString daoImpls = \"\";\n\t\t\tif (daos != null) {\n\t\t\t\tint i = 1;\n\t\t\t\tfor (Dao dao : daos.value()) {\n\t\t\t\t\tdaoImpls += dao.value() + \"|\" + dao.testDataFile() +\"|\" + dao.testSqlFile() ;\n\t\t\t\t\tif (i < daos.value().length) {\n\t\t\t\t\t\tdaoImpls += \",\";\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.setProperty(\"ks.test.daoImplClasses\", daoImpls);\n\t\t\t\n\t\t\tserver = new Server(Integer.valueOf(System\n\t\t\t\t\t.getProperty(\"ks.test.port\")));\n\n\t\t\tContext context = new Context();\n\t\t\tServletHandler servletHandler = new ServletHandler();\n\t\t\tServletHolder servletHolder = new ServletHolder();\n\t\t\tServletMapping servletMapping = new ServletMapping();\n\t\t\tContextLoaderListener contextLoaderListener = new ContextLoaderListener();\n\n\t\t\t\n Class<?> servletClass;\n\t\t\tString wsEngine;\n\t\t\ttry{\n\t\t\t servletClass = Class.forName(\"org.apache.cxf.transport.servlet.CXFServlet\");\t\t \n\t\t\t wsEngine = \"cxf\";\n\t\t\t} catch (ClassNotFoundException e) {\n\t servletClass = Class.forName(\"com.sun.xml.ws.transport.http.servlet.WSSpringServlet\");\n\t\t\t\twsEngine = \"jaxws\";\n\t\t\t}\n\n\t\t\tServlet servlet = (Servlet) servletClass.newInstance();\n\n\t\t\tservletHolder.setName(\"Service\");\n\t\t\tservletHolder.setServlet(servlet);\n\t\t\tservletHandler.setServlets(new ServletHolder[] { servletHolder });\n\n\t\t\tservletMapping.setPathSpec(\"/*\");\n\t\t\tservletMapping.setServletName(\"Service\");\n\t\t\tservletHandler\n\t\t\t\t\t.setServletMappings(new ServletMapping[] { servletMapping });\n\n\t\t\tcontext.setContextPath(\"/Service\");\n\t\t\tcontext.setResourceBase(\"src/test/resources\");\n\n\t\t\tMap<String, String> initParams = new HashMap<String, String>();\n\t\t\t\n\t\t\t//Set the context config location\n\t\t\tString contextConfigLocation = \"classpath:META-INF/\" + wsEngine + \"-context.xml\";\n\t\t\tif(!\"\".equals(daoImpls)){\n\t\t\t\t//If there are Daos defined, add the dao context file\n\t\t\t\tcontextConfigLocation +=\"\\nclasspath:META-INF/default-dao-context-test.xml\";\n\t\t\t}\n\t\t\t\n\t\t\tinitParams.put(\"contextConfigLocation\", contextConfigLocation);\n\t\t\tinitParams.put(\"log4jConfigLocation\", \"log4j.properties\");\n\t\t\tcontext.setInitParams(initParams);\n\t\t\tcontext\n\t\t\t\t\t.setEventListeners(new EventListener[] { contextLoaderListener });\n\t\t\tcontext.setServletHandler(servletHandler);\n\n\t\t\tserver.setHandler(context);\n\n\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t}", "title": "" }, { "docid": "2798079477e18715669042bdc721edbe", "score": "0.47396612", "text": "@Bean\n @ConditionalOnProperty(value=\"tcp.mode\", havingValue = \"server\")\n public AbstractServerConnectionFactory serverConnectionFactory(@Value(\"${tcp.port}\") int port) {\n return new TcpNioServerConnectionFactory(port);\n }", "title": "" }, { "docid": "53e6721ecdc7978591ebc7aea9f9df51", "score": "0.47341383", "text": "public ServerSupport(ClientsTracker ct, String filename, \r\n\t\t\tlong filesize, int port, InputStream isr, OutputStream os, \r\n\t\t\tString string,boolean running) {\r\n\t\tsuper();\r\n\t\tthis.cmd=string;\r\n\t\tthis.ct = ct;\r\n\t\tthis.filename=filename;\r\n\t\tthis.port=port;\r\n\t\tthis.filesize = filesize;\r\n\t\tthis.os=os;\r\n\t\tthis.isr=isr;\r\n\t\tthis.running=running;\r\n\t\t\r\n\t\tif(data_socket!=null&&data_socket.getLocalPort()==port){\r\n\t\t\tSystem.out.println(\"Old reference returned\");\r\n\t\t\tthis.data_socket = data_socket;\r\n\t\t\t}\r\n\t\telse\r\n\t\t\ttry {\r\n\t\t\t\tdata_socket = new ServerSocket(port);\r\n\t\t\t\tSystem.out.println(data_socket);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "90c82f1076aba11cf461bcaa0e230ef9", "score": "0.47203115", "text": "private void setupConnection() throws IOException\n {\n FTPClient ftpClient = server.getFTPClient();\n\n // Set the connection timeout (in milliseconds)\n ftpClient.setConnectTimeout(1500); // 1.5 sec\n\n // Set the keep alive timeout (in milliseconds)\n ftpClient.setControlKeepAliveTimeout(5000); // 5 sec\n\n // Switch mode to avoid firewall blocking\n ftpClient.enterLocalPassiveMode();\n\n // Connect and login to FTP server\n ftpClient.connect(server.getAddress(), server.getPort());\n System.out.println(ftpClient.getReplyString());\n connectionDetails.appendText(\"\\nConnection successful.\");\n\n ftpClient.login(server.getUser(), server.getPassword());\n connectionDetails.appendText(\"\\nLogin as \" + server.getUser() + \" successful.\");\n\n // Set file type to be transferred to binary\n ftpClient.setFileType(FTP.BINARY_FILE_TYPE);\n\n // Change working directory to root\n ftpClient.changeWorkingDirectory(\"/\");\n System.out.println(\"Remote system is \" + ftpClient.getSystemType());\n System.out.println(\"Current directory is \" + ftpClient.printWorkingDirectory());\n\n System.out.println(ftpClient.getStatus());\n\n System.out.println(\"Keep Alive Timeout: \" + ftpClient.getControlKeepAliveTimeout());\n System.out.println(\"Keep Alive Reply Timeout: \" + ftpClient.getControlKeepAliveReplyTimeout());\n\n // Clean-up on exit of window\n RootController.getPrimaryStage().setOnHidden(e ->\n {\n // Check if connection ongoing\n if (connectionLiveProp.getValue())\n {\n disconnect();\n }\n });\n }", "title": "" }, { "docid": "58d48ad3892331119ae23331a34658fb", "score": "0.47062486", "text": "public void initNewFileSystem() {\r\n\t\tfileSystem = new FileSystemHandler();\r\n\t}", "title": "" }, { "docid": "5000b88f75608f2ee18905af8efe931b", "score": "0.46949348", "text": "public void setServer( boolean isServer )\n {\n this.isServer = isServer;\n }", "title": "" }, { "docid": "f7ac07bb702fc7d6f1a97cb6895046d0", "score": "0.46932858", "text": "@Override\n public void onStartServerSocketThread() {\n\n }", "title": "" }, { "docid": "2b16e81ad1afc4995437747da6435de7", "score": "0.46927318", "text": "public OperationSetFileTransferSSHImpl(\n ProtocolProviderServiceSSHImpl parentProvider)\n {\n this.parentProvider = parentProvider;\n }", "title": "" }, { "docid": "839a5fbd4f020e345e57cd3c990c28ca", "score": "0.46860534", "text": "public void initServer() throws Exception {\r\n ConfigHelper configHelper = ConfigHelper.getInstance();\r\n // create the IPServer\r\n ipServer = new IPServer(configHelper.getAddress(), configHelper.getPort(), configHelper.getMaxConnections(),\r\n 0, ConfigHelper.MESSAGE_FACTORY_NAMESPACE);\r\n\r\n // create a file registry\r\n IDGenerator idGenerator = IDGeneratorFactory.getIDGenerator(ConfigHelper.IDGENERATOR_NAMESPACE);\r\n FileSystemRegistry registry = new FileSystemXmlRegistry(ConfigHelper.SERVER_FILES_FILE,\r\n ConfigHelper.SERVER_GROUPS_FILE, idGenerator);\r\n // create the file persistence\r\n FileSystemPersistence serverPersistence = new FileSystemPersistence();\r\n // create the upload request validator\r\n ObjectValidator validator = new UploadRequestValidator(new FreeDiskSpaceNonNativeChecker(\r\n ConfigHelper.SERVER_FILE_LOCATION));\r\n // creat the search manager\r\n SearchManager searchManager = new SearchManager();\r\n searchManager.addFileSearcher(\"regex\", new RegexFileSearcher(registry));\r\n searchManager.addGroupSearcher(\"regex\", new RegexGroupSearcher(registry));\r\n searchManager.addGroupSearcher(\"fileId\", new FileIdGroupSearcher(registry));\r\n // create the handler\r\n FileSystemHandler fileSystemHandler = new FileSystemHandler(configHelper.getMaxRequests(), registry,\r\n serverPersistence, ConfigHelper.SERVER_FILE_LOCATION, validator, searchManager);\r\n ipServer.addHandler(handlerId, fileSystemHandler);\r\n }", "title": "" }, { "docid": "417199a922554fe056f8e50edf20f098", "score": "0.4685675", "text": "private void startServer() throws IOException{\n UUID uuid = new UUID(\"1101\", true);\n //Create the servicve url\n String connectionString = \"btspp://localhost:\" + uuid +\";name=Sample SPP Server\";\n\n //open server url\n StreamConnectionNotifier streamConnNotifier = (StreamConnectionNotifier) Connector.open(connectionString);\n\n //Wait for client connection\n System.out.println(\"\\nServer Started. Waiting for clients to connect...\");\n int count = 0;\n while(true) {\n StreamConnection connection=streamConnNotifier.acceptAndOpen();\n ServerImplementation serverImplementation = new ServerImplementation(connection);\n Thread serverimpl = new Thread(serverImplementation);\n serverimpl.start();\n count++;\n }\n\n\n }", "title": "" }, { "docid": "ee05dfea2bf604321d43fb2d4da7a8bd", "score": "0.46829093", "text": "public void connect(String host, String login, String password, int port)\r\n\t\t\tthrows Exception {\n\t\tif (command != null) {\r\n\t\t\tdisconnect();\r\n\t\t}\r\n\t\tFileSystemOptions fso = new FileSystemOptions();\r\n\r\n\t\tSftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(fso,\r\n\t\t\t\t\"no\");\r\n\t\tsession = SftpClientFactory.createConnection(host, port,\r\n\t\t\t\tlogin.toCharArray(), password.toCharArray(), fso);\r\n\t\tChannel channel = session.openChannel(\"sftp\");\r\n\t\tchannel.connect();\r\n\t\tcommand = (ChannelSftp) channel;\r\n\r\n\t\tif (!command.isConnected()) {\r\n\t\t\tthrow new Exception(\"vfs.provider.ftp/connect.error. Server : \"\r\n\t\t\t\t\t+ host);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dfc830554443ef8123fba98cfdeba2d1", "score": "0.4672544", "text": "public MultiServer() {\r\n\t\tport = 8080;\r\n\t}", "title": "" }, { "docid": "48bebd9f11cab6724ac68628ee4b1104", "score": "0.46718302", "text": "public void setPort(PortEmbed port)\n {\n this.port = port;\n \n /*\n // server/1e00\n if (_clusterServer == null)\n initConfig(_configFile);\n \n // XXX: port.bindTo(_clusterServer);\n */\n }", "title": "" }, { "docid": "3441eebe2cdc2d1ec7e0ec5ed6830fdf", "score": "0.46711457", "text": "public FTPSettings() {\n\t\tthis.address = Settings.getSetting(PropertyId.REPOSITORY_FTP_ADDRESS);\n\t\tthis.portNumber = Settings.getSetting(PropertyId.REPOSITORY_FTP_PORT_NUMBER);\n\t\tthis.user = Settings.getSetting(PropertyId.REPOSITORY_FTP_USER);\n\t\tthis.password = Settings.getSetting(PropertyId.REPOSITORY_FTP_PASSWORD);\n\t\tthis.applicationPath = Settings.getSetting(PropertyId.REPOSITORY_APPLICATION_PATH);\n\t\tthis.catalogDataPath = Settings.getSetting(PropertyId.REPOSITORY_DATA_PATH);\n\t\tthis.artworksDataPath = Settings.getSetting(PropertyId.REPOSITORY_ARTWORKS_PATH);\n\t\tthis.mameDataPath = Settings.getSetting(PropertyId.REPOSITORY_MAME_ROMS_PATH);\n\t\tthis.snesDataPath = Settings.getSetting(PropertyId.REPOSITORY_SNES_ROMS_PATH);\n\t\tthis.fusionDataPath = Settings.getSetting(PropertyId.REPOSITORY_FUSION_ROMS_PATH);\n\t\tthis.nesDataPath = Settings.getSetting(PropertyId.REPOSITORY_NES_ROMS_PATH);\n\t}", "title": "" }, { "docid": "9e8dbf37eb268ee71dff04e0b3351f01", "score": "0.46675834", "text": "@Override\n\tpublic void setServicePort(int port) {\n\n\t}", "title": "" }, { "docid": "f2348b04235f851c22c5eec2157e77bd", "score": "0.46672833", "text": "public void setSrlFileServerPath(String value) {\r\n setAttributeInternal(SRLFILESERVERPATH, value);\r\n }", "title": "" }, { "docid": "8417deb9d48cbad856abd00fb3f1e78e", "score": "0.46479928", "text": "public void setPort( final int serverPort )\n {\n port = serverPort;\n }", "title": "" }, { "docid": "74b98e6f7817da1a629f1e1d3d110787", "score": "0.46364406", "text": "void setupStreamHandler() {\n strmHandler = streamHandlers.get(protocol);\n if (strmHandler != null) {\n return;\n }\n\n // If there is a stream handler factory, then attempt to\n // use it to create the handler.\n if (streamHandlerFactory != null) {\n strmHandler = streamHandlerFactory.createURLStreamHandler(protocol);\n if (strmHandler != null) {\n streamHandlers.put(protocol, strmHandler);\n return;\n }\n }\n\n switch (protocol) {\n case \"http\":\n case \"https\":\n strmHandler = new TXHRStreamHandler();\n break;\n case \"ftp\":\n strmHandler = new TDummyStreamHandler(21);\n break;\n default:\n strmHandler = new TDummyStreamHandler(-1);\n break;\n }\n\n }", "title": "" }, { "docid": "6c0afadef00e727ca770c34ab7782c90", "score": "0.4634435", "text": "@Before \n public void getFs() throws IOException{\n Configuration conf = new Configuration(); \n //to set a parameter, figure out the filesystem is hdfs \n conf.set(\"fs.defaultFS\", BASE_DIR); \n conf.set(\"dfs.replication\",\"1\"); \n \n //get a instance of HDFS FileSystem Client \n fs = FileSystem.get(conf); \n \n }", "title": "" }, { "docid": "342ffa958be3da0a515fbe1ca4124593", "score": "0.46315905", "text": "void failbackFileSystem(URI fsURI, StoragePort nfsPort, StoragePort cifsPort, boolean replicateConfiguration, String taskId)\n throws ControllerException;", "title": "" }, { "docid": "3da583519f857126c04c2e5ca69e3ecb", "score": "0.46099418", "text": "protected void setThePort(int newPort) \r\n\t{\r\n\t\tif (this.isClosed) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.setPort(newPort);\r\n\t\t\t\tSystem.out.println(\"Successfully changed server port to \" + newPort);\r\n\t\t\t} catch (Throwable t) {\r\n\t\t\t\tSystem.out.println(\"ERROR - Could not set new port.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"ERROR - Please close the server first. Then set port.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "019676a98fa31dce62e6bd50a61351d7", "score": "0.4609694", "text": "public void setPort(int port) {\n\t\tgetManagedSocket().setPort(port);\n\t\tthis.targetPort = port;\n\t}", "title": "" }, { "docid": "8173504c618b3dd37bddc83095adfc59", "score": "0.46093932", "text": "public PullServer (int port)\r\n\t{\r\n\t\tthisPort = port;\r\n\t}", "title": "" }, { "docid": "2c82f1029f564e31c2d4f37369a3128a", "score": "0.46081057", "text": "public void setPort(int port) {\n this.port = port;\n }", "title": "" }, { "docid": "c9610b03d19461193667bbc07256615d", "score": "0.46068713", "text": "@Test\n\tpublic void testFtpsListFiles() throws FtpException, IOException {\n\n\t\tProperties properties =\n\t\t PropertyFileInitializer.initPropertiesClasspath(FTPS_PROPERTIES);\n\n\t\tFTPSClient ftpsClient = new FTPSClient();\n\n\t\tString ftpServer = (String) properties.get(\"ftp.server\");\n\t\tint port =\n\t\t NumberUtils.createInteger((String) properties.get(\"ftp.port\"));\n\t\tString user = (String) properties.get(\"ftp.user\");\n\t\tString password = (String) properties.get(\"ftp.password\");\n\t\tString storeType = (String) properties.get(\"keystore.type\");\n\t\tString storePath =\n\t\t findKeystoreFileClasspath((String) properties\n\t\t .get(\"keystore.file\"));\n\t\tString storePass = (String) properties.get(\"keystore.password\");\n\t\tString keyAlias = (String) properties.get(\"key.alias\");\n\t\tString keyPass = (String) properties.get(\"key.password\");\n\n\t\tSystem.setProperty(FTPClient.FTP_SYSTEM_TYPE, \"WINDOWS\");\n\t\tSystem.setProperty(FTPClient.FTP_SYSTEM_TYPE_DEFAULT, \"WINDOWS\");\n\n\t\tftpsClient.setTrustManager(TrustManagerUtils\n\t\t .getAcceptAllTrustManager());\n\n\t\tFile storePathFile = new File(storePath);\n\n\t\tKeyManager km;\n\t\ttry {\n\t\t\tkm =\n\t\t\t KeyManagerUtils.createClientKeyManager(storeType,\n\t\t\t storePathFile, storePass, keyAlias, keyPass);\n\t\t} catch (IOException e) {\n\t\t\tString msg =\n\t\t\t \"IOException caught initializing key manager. \"\n\t\t\t + \"Keystore path = \" + storePathFile.getAbsolutePath();\n\t\t\tLOGGER.error(msg, e);\n\t\t\tthrow new FtpException(msg, e);\n\t\t} catch (GeneralSecurityException e) {\n\t\t\tString msg =\n\t\t\t \"GeneralSecurityException caught initializing key manager. \"\n\t\t\t + \"Keystore path = \" + storePathFile.getAbsolutePath();\n\t\t\tLOGGER.error(msg, e);\n\t\t\tthrow new FtpException(msg, e);\n\t\t} catch (Exception e) {\n\t\t\t// Catching raw exception to handle a NullPointerException\n\t\t\t// that's\n\t\t\t// thrown when the key alias is bad.\n\t\t\tString msg =\n\t\t\t \"Exception caught initializing key manager. \"\n\t\t\t + \"Keystore path = \" + storePathFile.getAbsolutePath();\n\t\t\tLOGGER.error(msg, e);\n\t\t\tthrow new FtpException(msg, e);\n\t\t}\n\n\t\tftpsClient.setKeyManager(km);\n\n\t\tftpsClient.connect(ftpServer, port);\n\t\tLOGGER.info(ftpsClient.getReplyString());\n\t\tftpsClient.login(user, password);\n\t\tLOGGER.info(ftpsClient.getReplyString());\n\n\t\tFTPFile[] ftpFiles = ftpsClient.listFiles();\n\t\tfor (int i = 0; i < ftpFiles.length; i++) {\n\t\t\tLOGGER.info(\"File name = \" + ftpFiles[i].getName());\n\t\t}\n\n\t\tassertFalse(\"FTPS server should not be stopped\", ftpsTestServer\n\t\t .getFtpServer().isStopped());\n\n\t}", "title": "" }, { "docid": "7b6210830bcbe7453c7e58ef2e434abd", "score": "0.46024698", "text": "public Server(){\n this.port = 1500;\n }", "title": "" }, { "docid": "08f5039beffb81728b771e1559765e10", "score": "0.46017906", "text": "public static void downloadFileListFromConnectedServer() throws RemoteException, JSchException, SftpException, Exception {\n\n if (ClientConfig.getServerList().get(ClientConfig.getCurrentServerIndex()).getServerAPI() == null) {\n try {\n ClientConfig.getServerList().get(ClientConfig.getCurrentServerIndex()).setRegistry(\n LocateRegistry.getRegistry(ClientConfig.getServerList().get(ClientConfig.getCurrentServerIndex()).getServerIP(),\n ClientConfig.getServerList().get(ClientConfig.getCurrentServerIndex()).getPort()));\n ClientConfig.getServerList().get(ClientConfig.getCurrentServerIndex()).setServerAPI((ServerAPI) (ClientConfig.getServerList().get(ClientConfig.getCurrentServerIndex()).getRegistry()).lookup(\"serverUtility\"));\n } catch (NotBoundException ex) {\n }\n }\n\n ServerAPI server = ClientConfig.getServerList().get(ClientConfig.getCurrentServerIndex()).getServerAPI();\n\n server.saveFileListHashtable();\n\n SFTPService sftpService = new SFTPService(ClientConfig.getServerList().get(ClientConfig.getCurrentServerIndex()).getServerIP());\n sftpService.downloadFile(FileInfoService.getSERVER_USERS_FOLDER() + ClientConfig.getCurrentClient().getClientID() + \"/filelist.xml\", FileInfoService.getSERVER_USERS_FOLDER() + ClientConfig.getCurrentClient().getClientID() + \"/filelist.xml\");\n }", "title": "" }, { "docid": "5e2b91b5d7ed0da3de56bdca867c6879", "score": "0.4600583", "text": "private void SSHConnect( String realservername, String realserverpassword, int realserverport,\n String realUsername, String realPassword, String realproxyhost, String realproxyusername,\n String realproxypassword, int realproxyport, String realkeyFilename, String realkeyPass ) throws Exception {\n\n Connection conn = new Connection( realservername, realserverport );\n\n /* We want to connect through a HTTP proxy */\n if ( useproxy ) {\n conn.setProxyData( new HTTPProxyData( realproxyhost, realproxyport ) );\n\n /* Now connect */\n // if the proxy requires basic authentication:\n if ( !Utils.isEmpty( realproxyusername ) || !Utils.isEmpty( realproxypassword ) ) {\n conn\n .setProxyData( new HTTPProxyData( realproxyhost, realproxyport, realproxyusername, realproxypassword ) );\n }\n }\n\n if ( timeout > 0 ) {\n // Use timeout\n conn.connect( null, 0, timeout * 1000 );\n\n } else {\n // Cache Host Key\n conn.connect();\n }\n\n // Authenticate\n\n boolean isAuthenticated = false;\n if ( publicpublickey ) {\n isAuthenticated = conn.authenticateWithPublicKey( realUsername, new File( realkeyFilename ), realkeyPass );\n } else {\n isAuthenticated = conn.authenticateWithPassword( realUsername, realserverpassword );\n }\n\n if ( !isAuthenticated ) {\n throw new Exception( \"Can not connect to \" );\n }\n\n sshclient = new SFTPv3Client( conn );\n\n }", "title": "" }, { "docid": "20ea9994c2ad9139a75118630bed3294", "score": "0.45953727", "text": "ServerControl start(int port, boolean ssl) throws IOException;", "title": "" }, { "docid": "3b303020d8221a312ba55543c2af2c16", "score": "0.45881486", "text": "private void createServerSocket() {\n Thread t = new Thread(this);\n t.start();\n }", "title": "" }, { "docid": "3b8f6f1dcf96bae8ce6c5587a9aa287a", "score": "0.458784", "text": "FTP createFTP();", "title": "" }, { "docid": "358b2081796f7b1846e5091380ca6aa9", "score": "0.45804852", "text": "public void setPort(final int port) {\n\n }", "title": "" }, { "docid": "840ab5f345e81920d5646ab52c05fad6", "score": "0.4565516", "text": "public SafeWalkServer() throws IOException {\r\n super(0);\r\n System.out.println(\"Port not specified. Using free port \" + this.getLocalPort());\r\n clients = new ArrayList<Socket>();\r\n name = new ArrayList<String>();\r\n to = new ArrayList<String>();\r\n from = new ArrayList<String>();\r\n }", "title": "" }, { "docid": "4983666ff8df980bb3212c495b3e9088", "score": "0.45637882", "text": "protected Server findServer() {\n if (settings == null) {\n return null;\n }\n String serverID = hudsonURL.getHost();\n if ((hudsonURL.getPort() != -1) && (hudsonURL.getPort() != hudsonURL.getDefaultPort())) {\n serverID = serverID + \":\" + hudsonURL.getPort();\n }\n return settings.getServer(serverID);\n }", "title": "" }, { "docid": "a9ee58354e7528424f605f09cf05215c", "score": "0.45601928", "text": "public void setServerName(String serverName) {\n this.serverName = serverName;\n }", "title": "" }, { "docid": "cf860b8095789164bd642c8dae029f4b", "score": "0.45555863", "text": "public InnovServerImplTCP(int port) {\r\n this.port = port;\r\n }", "title": "" }, { "docid": "44a0ff05a750fb4826fb74a2ab0abf9c", "score": "0.4551402", "text": "void setIDE(String name, String portS) throws MalformedURLException { \n\n\tint port = 0; \n\ttry {\n\t port = Integer.parseInt(portS);\n\t}\n\tcatch(NumberFormatException nfe) {\n\t throw new MalformedURLException(\"Port number is not an integer\"); //NOI18N\n\t}\n\n\ttry { \n\t if(ideServer == null) \n\t\tideServer = new URL(\"http\", name, port, putServlet).toString(); //NOI18N\n\t else \n\t\totherIDEs.add(new URL(\"http\", name, port, putServlet).toString()); //NOI18N \n\t\n\t}\n\tcatch(MalformedURLException mux) {\n\t throw mux;\n\t}\n }", "title": "" }, { "docid": "482330cc409ac3049ecf176bc22abf7f", "score": "0.45401156", "text": "ServerSocket getSmtpSocket()\r\n {\r\n return ivSmtpSocket;\r\n }", "title": "" }, { "docid": "146548e5a8ec50d8412928e11904f941", "score": "0.4532171", "text": "public RemoteOpExecServer()\n {\n super();\n setServerName( \"RemoteOpExecServer\" );\n setLogFilename( \"RemoteOpExecLog.txt\" );\n // debug_server = true;\n }", "title": "" }, { "docid": "52ce525cba22585988b795faee96627c", "score": "0.45271558", "text": "public StreamServerMocket (int port)\n throws IOException\n {\n _logger = Logger.getLogger (\"us.ihmc.mockets\");\n try {\n _serverSocket = new DatagramSocketWrapper (port);\n\n // read the port number out of the Socket once it has been initialized\n // because if the port given by whoever call the constructor was 0,\n // the Socket chose a random port number.\n _port = _serverSocket.getLocalPort();\n }\n catch (IOException ex) {\n throw ex;\n }\n\n this.initSynHistoryArray();\n }", "title": "" }, { "docid": "3cbda1d6f4b2f7ffe4005f14b3c23678", "score": "0.45231095", "text": "@ConfigProperty\n (\n type = String.class,\n description = \"Cassandra connection.host.\",\n defaultValue = \"localhost\",\n ignore = false,\n supportsDynamicUpdates = false,\n confidential = false\n )\n public void setServerName (String server)\n {\n String old = _ServerName;\n _ServerName = server;\n firePropertyChange (\"ServerName\", old, _ServerName);\n }", "title": "" }, { "docid": "7bf6ac2b4e8f9a266b1dccbb7a5c19ea", "score": "0.45225397", "text": "interface Factory {\n\n /**\n * Connects to the supplied process.\n *\n * @param processId The process id.\n * @return The connection to the virtual machine with the supplied process id.\n * @throws IOException If an I/O exception occurs during connecting to the targeted VM.\n */\n Connection connect(String processId) throws IOException;\n\n /**\n * A factory for attaching via a socket file.\n */\n abstract class ForSocketFile implements Factory {\n\n /**\n * The name prefix for a socket.\n */\n private static final String SOCKET_FILE_PREFIX = \".java_pid\";\n\n /**\n * The name prefix for an attachment file indicator.\n */\n private static final String ATTACH_FILE_PREFIX = \".attach_pid\";\n\n /**\n * The temporary directory to use.\n */\n private final String temporaryDirectory;\n\n /**\n * The maximum amount of attempts for checking the establishment of a socket connection.\n */\n private final int attempts;\n\n /**\n * The pause between two checks for an established socket connection.\n */\n private final long pause;\n\n /**\n * The time unit of the pause time.\n */\n private final TimeUnit timeUnit;\n\n /**\n * Creates a connection factory for creating a socket connection via a file.\n *\n * @param temporaryDirectory The temporary directory to use.\n * @param attempts The maximum amount of attempts for checking the establishment of a socket connection.\n * @param pause The pause between two checks for an established socket connection.\n * @param timeUnit The time unit of the pause time.\n */\n protected ForSocketFile(String temporaryDirectory, int attempts, long pause, TimeUnit timeUnit) {\n this.temporaryDirectory = temporaryDirectory;\n this.attempts = attempts;\n this.pause = pause;\n this.timeUnit = timeUnit;\n }\n\n /**\n * {@inheritDoc}\n */\n @SuppressFBWarnings(value = \"DMI_HARDCODED_ABSOLUTE_FILENAME\", justification = \"File name convention is specified.\")\n public Connection connect(String processId) throws IOException {\n File socket = new File(temporaryDirectory, SOCKET_FILE_PREFIX + processId);\n if (!socket.exists()) {\n String target = ATTACH_FILE_PREFIX + processId, path = \"/proc/\" + processId + \"/cwd/\" + target;\n File attachFile = new File(path);\n try {\n if (!attachFile.createNewFile() && !attachFile.isFile()) {\n throw new IllegalStateException(\"Could not create attach file: \" + attachFile);\n }\n } catch (IOException ignored) {\n attachFile = new File(temporaryDirectory, target);\n if (!attachFile.createNewFile() && !attachFile.isFile()) {\n throw new IllegalStateException(\"Could not create attach file: \" + attachFile);\n }\n }\n try {\n kill(processId, 3);\n int attempts = this.attempts;\n while (!socket.exists() && attempts-- > 0) {\n timeUnit.sleep(pause);\n }\n if (!socket.exists()) {\n throw new IllegalStateException(\"Target VM did not respond: \" + processId);\n }\n } catch (InterruptedException exception) {\n Thread.currentThread().interrupt();\n throw new IllegalStateException(exception);\n } finally {\n if (!attachFile.delete()) {\n attachFile.deleteOnExit();\n }\n }\n }\n return doConnect(socket);\n }\n\n /**\n * Sends a kill signal to the target process.\n *\n * @param processId The process id.\n * @param signal The signal to send.\n */\n protected abstract void kill(String processId, int signal);\n\n /**\n * Connects to the supplied POSIX socket.\n *\n * @param socket The socket to connect to.\n * @return An active connection to the supplied socket.\n * @throws IOException If an error occurs during connection.\n */\n protected abstract Connection doConnect(File socket) throws IOException;\n }\n }", "title": "" }, { "docid": "ea4651a55dbefee925274d697e2f8aba", "score": "0.4521553", "text": "public FTPProtocol ( ) {\r\n \r\n //create the instance of remote\r\n rProtocol=new Remote(this);\r\n \r\n\t//create the instance of local\r\n\tlProtocol=new Local(this);\r\n\r\n\t//create the instance of remote protocol\r\n/** BIPIN\r\n\tremoteProtocol=Remote.getRemoteProtocol(this);\r\n*/\r\n\tlocalProtocol = (Local)lProtocol;\r\n\tremoteProtocol = (Remote)rProtocol;\r\n \r\n //create the instance of command interpreter\r\n commandInterpreter= new CommandInterpreter(this);\r\n}", "title": "" }, { "docid": "0edad5d44bddb0a15d4427146cd842d9", "score": "0.4520665", "text": "@Override\n\tpublic void doHost( Context context ) throws SFException {\n\n\t}", "title": "" } ]
2aa39673426887c72dbce30650c814bf
Create custom layout for your inspector.
[ { "docid": "a775465f550756fdfeef76297229243c", "score": "0.0", "text": "@Override\n public void showAnnotationInspector(boolean animate) {\n View inspectorRoot = getLayoutInflater().inflate(R.layout.custom_annotation_inspector, null);\n LinearLayout inspectorContainer = inspectorRoot.findViewById(R.id.inspectorContainer);\n\n // We are reusing our inspector views just for the sake of simplicity.\n List<PropertyInspectorView> inspectorViews = getInspectorViews();\n if (inspectorViews == null) {\n cancel();\n return;\n }\n for (PropertyInspectorView inspectorView : inspectorViews) {\n inspectorContainer.addView(inspectorView.getView());\n }\n\n // Create alert dialog with inspector layout set as content view.\n this.dialog = new AlertDialog.Builder(getContext())\n .setView(inspectorRoot)\n .setPositiveButton(android.R.string.ok, (dialog, which) -> dialog.dismiss())\n .setCancelable(true)\n .show();\n }", "title": "" } ]
[ { "docid": "b7e481a6bfee5b2cfaeef2c9d27a0d9f", "score": "0.6441758", "text": "private void setupLayout()\n {\n Label moduleName = new Label(\"Kurs erstellen\");\n HorizontalLayout foot = new HorizontalLayout();\n VerticalLayout moduleLayout = new VerticalLayout();\n\n vertilay.addComponent(courseName);\n vertilay.addComponent(rta);\n vertilay.addComponent(date);\n vertilay.addComponent(hours);\n vertilay.addComponent(room);\n\n foot.addComponent(submit);\n\n moduleLayout.addComponents(moduleName, vertilay, foot);\n layout.addComponent(moduleLayout);\n\n //Styling\n vertilay.setStyleName(\"moduleContent\");\n vertilay.setSpacing(true);\n foot.setStyleName(\"moduleFoot\");\n moduleName.setStyleName(\"moduleHead\");\n moduleLayout.setStyleName(\"module\");\n layout.setStyleName(\"page\");\n }", "title": "" }, { "docid": "81b6e7d076bb58edeedab498af6e3877", "score": "0.64384586", "text": "public abstract AbstractViewLayout createLayout();", "title": "" }, { "docid": "4a2b11bcd64060debd50981fc6694dd2", "score": "0.64071137", "text": "void layout();", "title": "" }, { "docid": "b82b5348b09e8aa6d3436a24efb9de51", "score": "0.613647", "text": "@Override\r\n\tpublic void createInitialLayout(IPageLayout layout) {\n\t\taddViews(layout);\r\n\t\taddActionSets(layout);\r\n\t\taddNewWizardShortcuts(layout);\r\n\t\taddPerspectiveShortcuts(layout);\r\n\t\taddViewShortcuts(layout);\r\n\t}", "title": "" }, { "docid": "f4a23699d089006d3d5c08529bb71086", "score": "0.6064426", "text": "public static void buildLayout() {\n\t\tusernameField = new TextField(\"Username\");\n\t\tusernameField.setValue(\"anhmnguy@cisco.fts.ts4svc\");\n\t\tpasswordField = new PasswordField(\"Password\");\n\t\tloginButton = new Button(\"Login\");\n\t\tLabel message = new Label (\"Last Step: Please sign into your destination environment.\");\n\t\tmessage.addStyleName(\"label\");\n\t\taddEnterKeyActionToPasswordField(passwordField); \n\t\t\n\t\tlayout.addStyleName(\"layoutCenter\");\n\t\tlayout.addComponent(message);\n\t\tlayout.addComponent(usernameField);\n\t\tlayout.addComponent(passwordField);\n\t\tlayout.addComponent(loginButton);\n\n\t}", "title": "" }, { "docid": "3d82145edaabd808fc78c7251e12d659", "score": "0.60572284", "text": "public CustomLayout createVaadinCustomLayout() {\n\n Document d = Jsoup.parse(html);\n HashMap<String, String> styles = new HashMap<>();\n\n getImageStyles(d, styles);\n\n String clean = Jsoup.clean(d.html(), Whitelist.relaxed().addTags(\"hr\"));\n\n d = Jsoup.parse(clean);\n d = addImageDivs(d, styles);\n d = addLinkDivs(d);\n\n ResourceManager.cleanResources(htmlId, foundFiles);\n\n ByteArrayInputStream str = new ByteArrayInputStream(\n d.toString().getBytes());\n CustomLayout layout = null;\n try {\n layout = new CustomLayout(str);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if (layout != null) {\n addImages(layout, d);\n addLinks(layout, d);\n }\n\n return layout;\n }", "title": "" }, { "docid": "58dc8b7c853405cf8d003e14cd72282b", "score": "0.6040444", "text": "public void createInitialLayout(IPageLayout layout) {\n\t\tString editorArea = layout.getEditorArea();\n\t\taddFastViews(layout);\n\t\taddViewShortcuts(layout);\n\t\taddPerspectiveShortcuts(layout);\n\t\t\n\t\tIFolderLayout leftFolder = layout.createFolder(\"left\", IPageLayout.LEFT, 0.32f, editorArea);\n\t\tleftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);\n\t\t//folderLayout.addView(\"org.eclipse.ui.views.ContentOutline\");\n\n\t\tIFolderLayout bottomFolder = layout.createFolder(\"bottom\", IPageLayout.BOTTOM, 0.79f, editorArea);\n\t\tbottomFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);\n\t\tbottomFolder.addView(LOG_VIEW_ID);\n\t\tbottomFolder.addView(IPageLayout.ID_PROGRESS_VIEW);\n\t\tbottomFolder.addView(MARKERS_VIEW_ID);\n\n\t\tIFolderLayout folderLayout = layout.createFolder(\"right\", IPageLayout.RIGHT, 0.6f, editorArea);\n\t\tfolderLayout.addView(IPageLayout.ID_OUTLINE);\n\n\t}", "title": "" }, { "docid": "e922c9da8132e4c0e70bb44a74d3968b", "score": "0.60228616", "text": "private void buildLayout () throws FileNotFoundException {\n\n\t\tlayout = new BorderPane();\n\t\tspace = new Space();\n\t\tinfo = new Info(space);\n\n\t\tlayout.setCenter(space.getSpace());\n\t\tlayout.setRight(info.getInfo());\n\n\t}", "title": "" }, { "docid": "9d389af1fdf48127a22f0610ada0ca90", "score": "0.6008351", "text": "public void layoutForSimView()\n {\n preferredSize = new Dimension(1248, 562);\n if((ViewableComponent)withName(\"Pedestrian Generator\")!=null)\n ((ViewableComponent)withName(\"Pedestrian Generator\")).setPreferredLocation(new Point(130, 364));\n if((ViewableComponent)withName(\"Sensor Data Generator\")!=null)\n ((ViewableComponent)withName(\"Sensor Data Generator\")).setPreferredLocation(new Point(290, 244));\n if((ViewableComponent)withName(\"Junction\")!=null)\n ((ViewableComponent)withName(\"Junction\")).setPreferredLocation(new Point(375, 38));\n if((ViewableComponent)withName(\"Collision Observer\")!=null)\n ((ViewableComponent)withName(\"Collision Observer\")).setPreferredLocation(new Point(648, 325));\n if((ViewableComponent)withName(\"Control System\")!=null)\n ((ViewableComponent)withName(\"Control System\")).setPreferredLocation(new Point(787, 245));\n if((ViewableComponent)withName(\"Obstacle Generator\")!=null)\n ((ViewableComponent)withName(\"Obstacle Generator\")).setPreferredLocation(new Point(118, 126));\n }", "title": "" }, { "docid": "45fbaf0dc7aec8378e1683878d3d484f", "score": "0.5980909", "text": "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n mainLayout.marginHeight = 3;\n mainLayout.marginWidth = 3;\n mainLayout.verticalSpacing = 5;\n return mainLayout;\n }", "title": "" }, { "docid": "147454ad4b3fb79571012bbad6652258", "score": "0.5971462", "text": "public void createInitialLayout( IPageLayout layout )\n {\n String editorArea = layout.getEditorArea();\n \n // Top left: Resource Navigator view\n IFolderLayout left = layout.createFolder( \"left\", IPageLayout.LEFT, 0.25f,\n editorArea );\n left.addView( \"mm.eclipse.trac.views.TracNavigator\" );\n \n // Bottom: Page Histoy view\n IFolderLayout bottom = layout.createFolder( \"bottom\", IPageLayout.BOTTOM, 0.85f,\n editorArea );\n bottom.addView( \"mm.eclipse.trac.server.ServerView\" );\n bottom.addView( \"mm.eclipse.trac.views.WikiPageHistory\" );\n \n // Top Right: Outline view\n IFolderLayout right = layout.createFolder( \"right\", IPageLayout.RIGHT, 0.75f,\n editorArea );\n right.addView( IPageLayout.ID_OUTLINE );\n \n }", "title": "" }, { "docid": "06e8e147f5b5bfbda3e1b764f49a4104", "score": "0.59628874", "text": "void layout(Map args);", "title": "" }, { "docid": "f0ca9e90409ce5c78af6224b5d9c3f63", "score": "0.595983", "text": "public void setupLayouts(){\n layouts.add(new Layout(new int[]{5})); //layout 1\n layouts.add(new Layout(new int[]{1,3,7,9})); //layout 2\n layouts.add(new Layout(new int[]{4,6})); //layout 3\n layouts.add(new Layout(new int[]{2,8})); //etc.\n layouts.add(new Layout(new int[]{4,3,9}));\n layouts.add(new Layout(new int[]{1,7,6}));\n layouts.add(new Layout(new int[]{1,3,8}));\n layouts.add(new Layout(new int[]{2,7,9}));\n layouts.add(new Layout(new int[]{4,11,12,13,14}));\n layouts.add(new Layout(new int[]{4,15,16,17,18}));\n layouts.add(new Layout(new int[]{1,7,11,12,13,14}));\n layouts.add(new Layout(new int[]{1,7,15,16,17,18}));\n }", "title": "" }, { "docid": "0bfcf2a399f6f0de83c764490f4ba348", "score": "0.59590703", "text": "protected void buildLayout()\n {\n getOverlay().setLayout(\n new FormLayout(\"left:pref:grow, center:pref, right:pref:grow\",\n \"top:pref:grow, center:pref, bottom:pref:grow\"));\n \n getOverlay().add(overlayLabel, new CellConstraints(2, 2));\n \n getContent().setLayout(new BorderLayout(0, 1));\n getContent().add(diagramPane, BorderLayout.CENTER);\n getContent().add(toolbarPane, BorderLayout.PAGE_END);\n \n toolbar.add(firstButtonPage);\n toolbar.add(firstButtonDiagram);\n toolbar.add(prevButtonPage);\n toolbar.add(prevButtonDiagram);\n toolbar.add(pageSelect);\n toolbar.add(nextButtonPage);\n toolbar.add(nextButtonDiagram);\n toolbar.add(lastButtonPage);\n toolbar.add(lastButtonDiagram);\n \n toolbarPane.setLayout(new FlowLayout(FlowLayout.LEADING, 5, 0));\n toolbarPane.add(toolbar);\n \n }", "title": "" }, { "docid": "8865996b88899eca4996dc899fa3219f", "score": "0.5959059", "text": "private void setupLayout() {\n\n\t\tif ( DeviceConfiguration.isLargeScreen(getApplicationContext()) ) {\n\t\t\tint[] layouts = new int[] {\n\t\t\t\t\tR.id.addAccount_layoutName,\n\t\t\t\t\tR.id.addAccount_layoutNickname,\n\t\t\t\t\tR.id.addAccount_layoutType,\n\t\t\t\t\tR.id.addAccount_layoutCurrency,\n\t\t\t\t\tR.id.addAccount_layoutBank,\n\t\t\t\t\tR.id.addAccount_layoutInitBal,\n\t\t\t\t\tR.id.addAccount_layoutCredit,\n\t\t\t\t\tR.id.addAccount_layoutOverdraft,\n\t\t\t};\n\t\t\tfor ( int i = layouts.length - 1; i >= 0; --i ) { \n\t\t\t\tLinearLayout layout = (LinearLayout)findViewById(layouts[i]);\n\t\t\t\tlayout.setOrientation(LinearLayout.HORIZONTAL);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fcf7b04fd7df624e8d55c8ceeb3f3ff7", "score": "0.59530497", "text": "private void defineLayout ()\r\n {\r\n FormLayout layout = Panel.makeFormLayout(2, 3);\r\n\r\n // Specify that columns 1, 5 & 9 as well as 3, 7 & 11 have equal widths\r\n layout.setColumnGroups(\r\n new int[][]{\r\n {1, 5, 9},\r\n {3, 7, 11}\r\n });\r\n\r\n PanelBuilder builder = new PanelBuilder(layout, getBody());\r\n builder.setDefaultDialogBorder();\r\n\r\n CellConstraints cst = new CellConstraints();\r\n\r\n int r = 1; // --------------------------------\r\n builder.add(x.getLabel(), cst.xy(1, r));\r\n builder.add(x.getField(), cst.xy(3, r));\r\n x.getField()\r\n .setColumns(5);\r\n\r\n builder.add(width.getLabel(), cst.xy(5, r));\r\n builder.add(width.getField(), cst.xy(7, r));\r\n\r\n builder.add(level.getLabel(), cst.xy(9, r));\r\n builder.add(level.getField(), cst.xy(11, r));\r\n\r\n r += 2; // --------------------------------\r\n builder.add(y.getLabel(), cst.xy(1, r));\r\n builder.add(y.getField(), cst.xy(3, r));\r\n\r\n builder.add(height.getLabel(), cst.xy(5, r));\r\n builder.add(height.getField(), cst.xy(7, r));\r\n }", "title": "" }, { "docid": "45db95872ea78238702bafa6b54c76e3", "score": "0.5942617", "text": "private void layoutGUI(){\n\t\tmakeAndLayoutViews();\n\t\tsetLayoutAndAddComponentsToFrame();\n\t}", "title": "" }, { "docid": "7a7f37a2958ecab397435b0d9ab32565", "score": "0.5925572", "text": "public void layoutForSimView()\n {\n preferredSize = new Dimension(918, 536);\n ((ViewableComponent)withName(\"TQ Offset Control 1\")).setPreferredLocation(new Point(657, 209));\n ((ViewableComponent)withName(\"Radar 1\")).setPreferredLocation(new Point(155, 30));\n ((ViewableComponent)withName(\"TQ Offset Control 2\")).setPreferredLocation(new Point(658, 286));\n ((ViewableComponent)withName(\"Radar 2\")).setPreferredLocation(new Point(149, 338));\n ((ViewableComponent)withName(\"TrackGenerator\")).setPreferredLocation(new Point(12, 252));\n }", "title": "" }, { "docid": "cb85795447b5a0d42dfe9c6060b1fa5c", "score": "0.58818924", "text": "protected void buildLayout()\r\n \t{\r\n \t\t\r\n\t\t\troot.add(lblMessage ,new CellConstraints(\"1,4,2,1\"));\t\r\n\t\t\troot.add(btnExport ,new CellConstraints(\"4,5\"));\t\r\n\t\t\troot.add(btnExpandAll ,new CellConstraints(\"4,3\"));\t\r\n\t\t\troot.add(Label_32 ,new CellConstraints(\"1,2\"));\t\r\n\t\t\troot.add(cmbOperations ,new CellConstraints(\"1,3,2,1\"));\t\r\n\t\t\tPanel_16.add(btnRead ,new CellConstraints(\"8,3\"));\t\r\n\t\t\tPanel_16.add(txtPassword ,new CellConstraints(\"2,3\"));\t\r\n\t\t\tPanel_16.add(txtUserName ,new CellConstraints(\"2,2\"));\t\r\n\t\t\tPanel_16.add(lblPwd ,new CellConstraints(\"1,3\"));\t\r\n\t\t\tPanel_16.add(lblUser ,new CellConstraints(\"1,2\"));\t\r\n\t\t\tPanel_16.add(txtInstance ,new CellConstraints(\"6,1\"));\t\r\n\t\t\tPanel_16.add(lblColon1 ,new CellConstraints(\"3,1\"));\t\r\n\t\t\tPanel_16.add(txtPort ,new CellConstraints(\"4,1\"));\t\r\n\t\t\tPanel_16.add(lblColon2 ,new CellConstraints(\"5,1\"));\t\r\n\t\t\tPanel_16.add(txtServer ,new CellConstraints(\"2,1\"));\t\r\n\t\t\tPanel_16.add(lblUrl1 ,new CellConstraints(\"1,1\"));\t\r\n\t\t\troot.add(Panel_16 ,new CellConstraints(\"1,1,2,1\"));\t\r\n\t\t\troot.add(txtQuickSearch ,new CellConstraints(\"2,2\"));\t\r\n\t\t\troot.add(btnAnalyse ,new CellConstraints(\"3,3\"));\t\r\n\t\t\troot.add(treeAifOperation ,new CellConstraints(\"1,5,3,2\"));\r\n \t}", "title": "" }, { "docid": "f18ab2c8456c275859a332a182c2026f", "score": "0.58699274", "text": "public void createViz() {\n createViz(LAYOUT, COMPACT, ALL, 500, 500);\n }", "title": "" }, { "docid": "805cb5f94bc561b08da88e2eeab1d197", "score": "0.58400685", "text": "@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(true);\r\n\t\tmainLayout.setWidth(\"720px\");\r\n\t\tmainLayout.setHeight(\"710px\");\r\n\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"720px\");\r\n\t\tsetHeight(\"710px\");\r\n\r\n\t\t// labelPrototype\r\n\t\tlabelPrototype = new Label();\r\n\t\tlabelPrototype.setStyleName(\"prototype2\");\r\n\t\tlabelPrototype.setImmediate(false);\r\n\t\tlabelPrototype.setWidth(\"-1px\");\r\n\t\tlabelPrototype.setHeight(\"-1px\");\r\n\t\tlabelPrototype.setValue(\"Label\");\r\n\t\tmainLayout.addComponent(labelPrototype, \"top:0.0px;right:0.0px;\");\r\n\r\n\t\t// table\r\n\t\ttable = new Table();\r\n\t\ttable.setImmediate(true);\r\n\t\ttable.setWidth(\"695px\");\r\n\t\ttable.setHeight(\"120px\");\r\n\t\tmainLayout.addComponent(table, \"top:20.0px;left:20.0px;\");\r\n\r\n\t\t// addButton\r\n\t\taddButton = new Button();\r\n\t\taddButton.setCaption(\"New\");\r\n\t\taddButton.setImmediate(true);\r\n\t\taddButton.setWidth(\"-1px\");\r\n\t\taddButton.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(addButton, \"top:150.0px;left:20.0px;\");\r\n\r\n\t\t// removeButton\r\n\t\tremoveButton = new Button();\r\n\t\tremoveButton.setCaption(\"Remove\");\r\n\t\tremoveButton.setImmediate(true);\r\n\t\tremoveButton.setWidth(\"-1px\");\r\n\t\tremoveButton.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(removeButton, \"top:150.0px;left:100.0px;\");\r\n\r\n\t\t// number\r\n\t\tnumber = new TextField();\r\n\t\tnumber.setCaption(\"Number\");\r\n\t\tnumber.setImmediate(true);\r\n\t\tnumber.setWidth(\"100px\");\r\n\t\tnumber.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(number, \"top:200.0px;left:20.0px;\");\r\n\r\n\t\t// title\r\n\t\ttitle = new TextField();\r\n\t\ttitle.setCaption(\"Title\");\r\n\t\ttitle.setImmediate(true);\r\n\t\ttitle.setWidth(\"570px\");\r\n\t\ttitle.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(title, \"top:200.0px;left:140.0px;\");\r\n\r\n\t\t// fileName\r\n\t\tfileName = new TextField();\r\n\t\tfileName.setCaption(\"File Name\");\r\n\t\tfileName.setEnabled(false);\r\n\t\tfileName.setImmediate(true);\r\n\t\tfileName.setVisible(false);\r\n\t\tfileName.setWidth(\"-1px\");\r\n\t\tfileName.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(fileName, \"top:300.0px;left:200.0px;\");\r\n\r\n\t\t// uploadFile\r\n\t\tuploadFile = new Upload();\r\n\t\tuploadFile.setCaption(\"Upload PDF file here\");\r\n\t\tuploadFile.setImmediate(false);\r\n\t\tuploadFile.setWidth(\"280px\");\r\n\t\tuploadFile.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(uploadFile, \"top:310.0px;left:20.0px;\");\r\n\r\n\t\t// description\r\n\t\tdescription = new TextArea();\r\n\t\tdescription.setCaption(\"Description\");\r\n\t\tdescription.setImmediate(true);\r\n\t\tdescription.setWidth(\"400px\");\r\n\t\tdescription.setHeight(\"100px\");\r\n\t\tmainLayout.addComponent(description, \"top:240.0px;left:300.0px;\");\r\n\r\n\t\t// browser\r\n\t\tbrowser = new BrowserFrame();\r\n\t\tbrowser.setEnabled(false);\r\n\t\tbrowser.setImmediate(false);\r\n\t\tbrowser.setVisible(false);\r\n\t\tbrowser.setWidth(\"700px\");\r\n\t\tbrowser.setHeight(\"350px\");\r\n\t\tmainLayout.addComponent(browser, \"top:360.0px;left:20.0px;\");\r\n\r\n\t\treturn mainLayout;\r\n\t}", "title": "" }, { "docid": "db31a0794ccad88134503374f90ac55e", "score": "0.583099", "text": "private void createUI() {\n\t\tcenterImg = new Image(\"images/employee_manager_background.jpg\");\n\t\tcenterImg.setStyleName(\"centerImg\");\n\t\tRootPanel.get().add(centerImg, 0, 0);\n\t\t\n\t\ttopPanel = new HorizontalPanel();\n\t\ttopPanel.setStyleName(\"topPanel\");\n\t\ttopPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\ttopPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\t\n\t\tImage logoImg = new Image(\"images/javalabs_employee_manager.jpg\");\n\t\tlogoImg.setStyleName(\"logoImg\");\n\t\tlogoImg.setPixelSize(400, 75);\n\n\t\tRootPanel.get().add(topPanel, 0, 0);\n\t\t\n\t\ttopPanel.add(logoImg);\n\t\ttopPanel.setCellHorizontalAlignment(logoImg, HasHorizontalAlignment.ALIGN_LEFT);\n\t\t\n\t\tloginPanel.setStyleName(\"loginPanel\");\n\t\ttopPanel.add(loginPanel);\n\t\t\n\t\tresize();\n\t\t\n\t\tWindow.addResizeHandler(new ResizeHandler() {\n\t\t\t@Override\n\t\t\tpublic void onResize(ResizeEvent event) {\n\t\t\t\tresize();\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//createCenterPanel();\n\t}", "title": "" }, { "docid": "bf5372b86ab7119c5176382f07fff893", "score": "0.58283395", "text": "public static void StartUpLayout() {\nStdDraw.setCanvasSize(1900, 950);\r\n\tStdDraw.picture(GUItemp.xMidCoord(0.0,1.0), GUItemp.yMidCoord(0.0,1.0), String.valueOf(Paths.get(\"Pictures/\"+GUItemp.ChooseWallpaper(3)).toAbsolutePath()), 1.0, 1.0);\r\n\tStdDraw.picture(GUItemp.xMidCoord(0.4,0.6), GUItemp.yMidCoord(0.8,1.0), String.valueOf(Paths.get(\"Pictures/Title.png\").toAbsolutePath()));\r\n\tStdDraw.picture(GUItemp.xMidCoord(0.8,0.99), GUItemp.yMidCoord(0.29,0.49), String.valueOf(Paths.get(\"Pictures/StatusPieceAlloc.png\").toAbsolutePath()), 0.2, 0.75);\r\n\tStdDraw.picture(GUItemp.xMidCoord(0.8,0.99), GUItemp.yMidCoord(0.01,0.21), String.valueOf(Paths.get(\"Pictures/textmove.png\").toAbsolutePath()), 0.15, 0.1);\r\n}", "title": "" }, { "docid": "051f383db124573ccfa8bcf2bf4dbaa8", "score": "0.58254164", "text": "private void addViews(IPageLayout layout) {\n\t\tIFolderLayout left = layout.createFolder(\"left\", IPageLayout.LEFT, 0.25f, layout.getEditorArea());\r\n\t\t\r\n\t\t// left panel contains the message timeline and properties view/sheet\r\n\t\tleft.addView(TwitterMessageTimelineView.ID);\r\n\t\tleft.addView(IPageLayout.ID_PROP_SHEET);\r\n\t\t\r\n\t\t// create the bottom panel view area\r\n\t\t// bottom panel will occupy 25% of the vertical space originally given to the editor area\r\n\t\tIFolderLayout bottom = layout.createFolder(\"bottom\", IPageLayout.BOTTOM, 0.75f, layout.getEditorArea());\r\n\t\tbottom.addView(IPageLayout.ID_PROP_SHEET);\r\n\t\tbottom.addView(IPageLayout.ID_PROBLEM_VIEW);\r\n\t\tbottom.addView(\"org.eclipse.pde.runtime.LogView\");\r\n\t\t\r\n\t\t// create the right panel view area\r\n\t\t// right panel will occupy 25% of the horizontal space originally given to the editor area\r\n\t\tIFolderLayout right = layout.createFolder(\"right\", IPageLayout.RIGHT, 0.75f, layout.getEditorArea());\r\n\t\tright.addView(IPageLayout.ID_OUTLINE);\r\n\t}", "title": "" }, { "docid": "62a7a33a0085ca4a2dc8b8daca625786", "score": "0.58226275", "text": "public void layoutForSimView()\n {\n preferredSize = new Dimension(721, 379);\n if((ViewableComponent)withName(\"fireonce-neuron2\")!=null)\n ((ViewableComponent)withName(\"fireonce-neuron2\")).setPreferredLocation(new Point(352, 66));\n if((ViewableComponent)withName(\"fireonce-neuron1\")!=null)\n ((ViewableComponent)withName(\"fireonce-neuron1\")).setPreferredLocation(new Point(184, 59));\n if((ViewableComponent)withName(\"pg\")!=null)\n ((ViewableComponent)withName(\"pg\")).setPreferredLocation(new Point(-28, 150));\n if((ViewableComponent)withName(\"fireonce-neuron4\")!=null)\n ((ViewableComponent)withName(\"fireonce-neuron4\")).setPreferredLocation(new Point(475, 170));\n if((ViewableComponent)withName(\"fireonce-neuron3\")!=null)\n ((ViewableComponent)withName(\"fireonce-neuron3\")).setPreferredLocation(new Point(276, 248));\n }", "title": "" }, { "docid": "2f77de27dc6e2ddf717166ed7d0bb352", "score": "0.58129853", "text": "private void createUI() {\r\n\t\tJPanel panel = new JPanel();\r\n\t\tfor(ItemButton b : presetButtons)\r\n\t\t\tpanel.add(b);\r\n\t\t\r\n\t\tpanel.add(customItem);\r\n\t\tpanel.add(customPrice);\r\n\t\tpanel.add(customBtn);\r\n\t\tpanel.add(readOut);\r\n\t\tpanel.add(calculateBtn);\r\n\t\t\r\n\t\tadd(panel);\r\n\t}", "title": "" }, { "docid": "b5fe0314c10adc7c5fe72006d22cbbd9", "score": "0.5805289", "text": "private SideSlideLayout createLayout() {\n mSideSlideLayout = new SideSlideLayout(getContext());\n mSideSlideLayout.setLayoutParams(\n new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));\n return mSideSlideLayout;\n }", "title": "" }, { "docid": "f4e51f92274ad340e76013c09710ed29", "score": "0.58003265", "text": "private void layoutComponents() {\n // Add toolbar at top in a flow layout panel to make it centered\n JPanel panel = new JPanel();\n panel.add(this.toolBar);\n add(panel, ProportionalLayout.Constraints.TOP);\n // Add printable component at bottom of proportional layout panel\n add(this.printableComponent, ProportionalLayout.Constraints.BOTTOM);\n }", "title": "" }, { "docid": "a0e8ace6928031e181d793223fc77c08", "score": "0.5795941", "text": "private void makeDesign(){\n\t\tGroupLayout layout = new GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\n\t\t//creating horizontal group, ordinate axis is compressed\t\n\t\t\n\t\tGroupLayout.SequentialGroup topGrp = layout.createSequentialGroup();\n\t\ttopGrp.addComponent(previousPrimers);\n\t\ttopGrp.addComponent(solutionParameters);\n\t\t\n\t\tGroupLayout.ParallelGroup HORbigGroup = layout.createParallelGroup();\n\t\tHORbigGroup.addGroup(topGrp);\n\t\tHORbigGroup.addComponent(editedExtract);\n\t\tHORbigGroup.addComponent(geneAndRenzymes, GroupLayout.Alignment.CENTER);\n\t\n\t\tlayout.setHorizontalGroup(HORbigGroup);\n\t\t\n\t\t//creating vertical group, X axis is compressed\t\n\n\t\tGroupLayout.ParallelGroup VtopGrp = layout.createParallelGroup();\n\t\tVtopGrp.addComponent(previousPrimers);\n\t\tVtopGrp.addComponent(solutionParameters);\n\t\t\n\t\tGroupLayout.SequentialGroup VERbigGroup = layout.createSequentialGroup();\n\t\tVERbigGroup.addGroup(VtopGrp);\n\t\tVERbigGroup.addComponent(editedExtract);\n\t\tVERbigGroup.addComponent(geneAndRenzymes);\n\t\t\n\t\tlayout.setVerticalGroup(VERbigGroup);\n\t\tlayout.linkSize(SwingConstants.VERTICAL, previousPrimers, solutionParameters);\n\t\t\n\t}", "title": "" }, { "docid": "40f02f5130a3e53202ac9a4bd9a52f4e", "score": "0.57682097", "text": "private void createUI(){\n createLabels();\n createTextFields();\n createButtons();\n setErrorFieldPosition();\n }", "title": "" }, { "docid": "0bddca98ffd1e8478bd8e0e97eca31cf", "score": "0.5767972", "text": "private void setupLayout() {\n\t\tfor(Node node : rootContainer.getChildren()) {\r\n\t\t\tVBox.setMargin(node, new Insets(2, 2, 5, 2));\r\n\t\t}\r\n\t\t\r\n\t\tTooltip inputTooltip = new Tooltip(\"Enter raw text here to be sanitized.\");\r\n\t\tinputTooltip.setAutoHide(true);\r\n\t\t\r\n\t\tinputArea.setTooltip(inputTooltip);\r\n\t\t\r\n\t\toutputArea.setEditable(false);\r\n\t}", "title": "" }, { "docid": "28baaa91507b093600e1e2bd07c02d3d", "score": "0.575748", "text": "public void createView() {\r\n\t\tthis.main = new LayoutPanel();\r\n\t\tthis.main.setStyleName(\"tinyMceContainer\");\r\n\t\tthis.displayEditor(\"\"); // first initialization\r\n\t\tthis.initWidget(main);\r\n\t\t//System.out.println(\"TinyMCEPanel createView\");\r\n\t}", "title": "" }, { "docid": "3669fdf320a7a2022b192474a669e66d", "score": "0.57471395", "text": "private JPanel createLayout() {\n // create the sub-pane for the sample text output\n JPanel samplePanel = new JPanel();\n samplePanel.add(sampleTextLabel);\n samplePanel.setBorder(BorderFactory.createCompoundBorder(\n EMPTY_BORDER, BorderFactory.createLineBorder(Color.black)));\n\n // create the sub-pane to show the list of available text items\n JScrollPane scrollPane = new JScrollPane(screenElementList,\n ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JLabel screenElementLabel = ((JListHelper) screenElementList).getDefaultLabel();\n JPanel screenElementPane = new JPanel(new BorderLayout());\n screenElementPane.add(screenElementLabel, BorderLayout.NORTH);\n screenElementPane.add(scrollPane, BorderLayout.CENTER);\n\n // create the font items pane\n JPanel labelsPane = new JPanel(new GridLayout(2, 0));\n labelsPane.add(fontFamilyLabel);\n labelsPane.add(fontSizeLabel);\n labelsPane.setBorder(EMPTY_BORDER);\n\n JPanel fieldsPane = new JPanel(new GridLayout(2, 0));\n JPanel p1 = new JPanel(new BorderLayout());\n p1.add(fontFamilyList, BorderLayout.NORTH);\n fieldsPane.add(p1);\n JPanel p2 = new JPanel(new BorderLayout());\n p2.add(fontSizeField, BorderLayout.NORTH);\n fieldsPane.add(p2);\n fieldsPane.setBorder(EMPTY_BORDER);\n\n JPanel fontItemsPane = new JPanel(new BorderLayout());\n fontItemsPane.add(labelsPane, BorderLayout.WEST);\n fontItemsPane.add(fieldsPane, BorderLayout.CENTER);\n\n JPanel backButtonP1 = new JPanel(new GridLayout(1, 0, 5, 5));\n backButtonP1.add(backgroundColorButton);\n JPanel backButtonP2 = new JPanel(new BorderLayout());\n backButtonP2.add(backButtonP1, BorderLayout.EAST);\n backButtonP2.setBorder(EMPTY_BORDER);\n JPanel backButtonP3 = new JPanel(new BorderLayout());\n backButtonP3.add(backButtonP2, BorderLayout.SOUTH);\n\n Box fontItemsPane2 = new Box(BoxLayout.Y_AXIS);\n fontItemsPane2.add(fontItemsPane);\n fontItemsPane2.add(backButtonP2);\n\n JPanel fontItemsPane3 = new JPanel(new BorderLayout());\n fontItemsPane3.add(fontItemsPane2, BorderLayout.NORTH);\n fontItemsPane3.setBorder(BorderFactory.createCompoundBorder(\n BorderFactory.createTitledBorder(UIMessages.PROPERTIES_DISPLAY_TEXT_COMMON_TEXT_TITLE),\n fontItemsPane3.getBorder()));\n\n // create the style options pane\n JPanel styleOptionsPane = new JPanel(new BorderLayout());\n JPanel styleOptionsPane2 = new JPanel(new GridLayout(3, 0));\n styleOptionsPane2.add(boldCheckBox);\n styleOptionsPane2.add(italicCheckBox);\n styleOptionsPane2.add(underlineCheckBox);\n styleOptionsPane.add(styleOptionsPane2, BorderLayout.NORTH);\n styleOptionsPane.setBorder(BorderFactory.createCompoundBorder(\n BorderFactory.createTitledBorder(UIMessages.PROPERTIES_DISPLAY_TEXT_STYLE_TITLE),\n styleOptionsPane.getBorder()));\n\n JPanel buttonP1 = new JPanel(new GridLayout(1, 0, 5, 5));\n buttonP1.add(foregroundColorButton);\n JPanel buttonP2 = new JPanel(new BorderLayout());\n buttonP2.add(buttonP1, BorderLayout.EAST);\n buttonP2.setBorder(EMPTY_BORDER);\n JPanel buttonP3 = new JPanel(new BorderLayout());\n buttonP3.add(buttonP2, BorderLayout.SOUTH);\n\n Box customTextPane = new Box(BoxLayout.Y_AXIS);\n customTextPane.add(styleOptionsPane);\n customTextPane.add(buttonP3);\n\n JPanel gridPanel = new JPanel(new GridLayout(0, 2));\n JPanel screenElementPane2 = new JPanel(new BorderLayout());\n screenElementPane2.add(screenElementPane, BorderLayout.NORTH);\n gridPanel.add(screenElementPane2);\n JPanel customTextPane2 = new JPanel(new BorderLayout());\n customTextPane2.add(customTextPane, BorderLayout.NORTH);\n gridPanel.add(customTextPane2);\n\n JPanel gridPanel2 = new JPanel(new BorderLayout());\n gridPanel2.add(gridPanel, BorderLayout.NORTH);\n gridPanel2.setBorder(BorderFactory.createCompoundBorder(\n BorderFactory.createTitledBorder(UIMessages.PROPERTIES_DISPLAY_TEXT_CUSTOM_TEXT_TITLE),\n gridPanel2.getBorder()));\n\n Box myp3 = new Box(BoxLayout.Y_AXIS);\n myp3.add(fontItemsPane3);\n myp3.add(gridPanel2);\n\n JPanel myp4 = new JPanel(new BorderLayout());\n myp4.add(myp3, BorderLayout.NORTH);\n myp4.add(samplePanel, BorderLayout.SOUTH);\n\n return myp4;\n }", "title": "" }, { "docid": "2cbd8c99a18b0a4a9f0dc60a94c1d69e", "score": "0.57326424", "text": "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"300px\");\n\t\tmainLayout.setHeight(\"300px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"300px\");\n\t\tsetHeight(\"300px\");\n\t\t\n\t\t// label_1\n\t\tlabel_1 = new Label();\n\t\tlabel_1.setImmediate(false);\n\t\tlabel_1.setWidth(\"-1px\");\n\t\tlabel_1.setHeight(\"-1px\");\n\t\tlabel_1.setValue(\"Name\");\n\t\tmainLayout.addComponent(label_1, \"top:20.0px;left:20.0px;\");\n\t\t\n\t\t// label_2\n\t\tlabel_2 = new Label();\n\t\tlabel_2.setImmediate(false);\n\t\tlabel_2.setWidth(\"-1px\");\n\t\tlabel_2.setHeight(\"-1px\");\n\t\tlabel_2.setValue(\"Email\");\n\t\tmainLayout.addComponent(label_2, \"top:66.0px;left:20.0px;\");\n\t\t\n\t\t// label_3\n\t\tlabel_3 = new Label();\n\t\tlabel_3.setImmediate(false);\n\t\tlabel_3.setWidth(\"-1px\");\n\t\tlabel_3.setHeight(\"-1px\");\n\t\tlabel_3.setValue(\"Phone\");\n\t\tmainLayout.addComponent(label_3, \"top:109.0px;left:20.0px;\");\n\t\t\n\t\t// label_4\n\t\tlabel_4 = new Label();\n\t\tlabel_4.setImmediate(false);\n\t\tlabel_4.setWidth(\"-1px\");\n\t\tlabel_4.setHeight(\"-1px\");\n\t\tlabel_4.setValue(\"Address\");\n\t\tmainLayout.addComponent(label_4, \"top:156.0px;left:21.0px;\");\n\t\t\n\t\t// textField_1\n\t\ttextField_1 = new TextField();\n\t\ttextField_1.setImmediate(false);\n\t\ttextField_1.setWidth(\"177px\");\n\t\ttextField_1.setHeight(\"-1px\");\n\t\ttextField_1.setSecret(false);\n\t\tmainLayout.addComponent(textField_1, \"top:20.0px;left:83.0px;\");\n\t\t\n\t\t// textField_2\n\t\ttextField_2 = new TextField();\n\t\ttextField_2.setImmediate(false);\n\t\ttextField_2.setWidth(\"177px\");\n\t\ttextField_2.setHeight(\"-1px\");\n\t\ttextField_2.setSecret(false);\n\t\tmainLayout.addComponent(textField_2, \"top:62.0px;left:83.0px;\");\n\t\t\n\t\t// textField_3\n\t\ttextField_3 = new TextField();\n\t\ttextField_3.setImmediate(false);\n\t\ttextField_3.setWidth(\"177px\");\n\t\ttextField_3.setHeight(\"-1px\");\n\t\ttextField_3.setSecret(false);\n\t\tmainLayout.addComponent(textField_3, \"top:109.0px;left:83.0px;\");\n\t\t\n\t\t// textField_4\n\t\ttextField_4 = new TextField();\n\t\ttextField_4.setImmediate(false);\n\t\ttextField_4.setWidth(\"177px\");\n\t\ttextField_4.setHeight(\"54px\");\n\t\ttextField_4.setSecret(false);\n\t\tmainLayout.addComponent(textField_4, \"top:156.0px;left:83.0px;\");\n\t\t\n\t\t// button_1\n\t\tbutton_1 = new Button();\n\t\tbutton_1.setCaption(\"Save\");\n\t\tbutton_1.setImmediate(true);\n\t\tbutton_1.setWidth(\"-1px\");\n\t\tbutton_1.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(button_1, \"top:220.0px;left:140.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "title": "" }, { "docid": "7eec186320d0dcc2f9a538c88591cb0a", "score": "0.5721857", "text": "private void createView() {\n getStyleClass().add(\"background\");\n setMinSize(1200, 800);\n\n }", "title": "" }, { "docid": "f9b79f6bf7098123ef3c086ccbce06c5", "score": "0.57114977", "text": "@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"770px\");\r\n\t\tmainLayout.setHeight(\"320px\");\r\n\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"770px\");\r\n\t\tsetHeight(\"320px\");\r\n\r\n\t\t// labelPrototype\r\n\t\tlabelPrototype = new Label();\r\n\t\tlabelPrototype.setStyleName(\"prototype2\");\r\n\t\tlabelPrototype.setImmediate(false);\r\n\t\tlabelPrototype.setWidth(\"-1px\");\r\n\t\tlabelPrototype.setHeight(\"-1px\");\r\n\t\tlabelPrototype.setValue(\"Label\");\r\n\t\tmainLayout.addComponent(labelPrototype, \"top:0.0px;right:0.0px;\");\r\n\r\n\t\t// desc1\r\n\t\tdesc1 = new TextArea();\r\n\t\tdesc1.setImmediate(false);\r\n\t\tdesc1.setWidth(\"600px\");\r\n\t\tdesc1.setHeight(\"100px\");\r\n\t\tmainLayout.addComponent(desc1, \"top:20.0px;left:20.0px;\");\r\n\r\n\t\t// label_Millions\r\n\t\tlabel_Millions = new Label();\r\n\t\tlabel_Millions.setImmediate(false);\r\n\t\tlabel_Millions.setWidth(\"100px\");\r\n\t\tlabel_Millions.setHeight(\"20px\");\r\n\t\tlabel_Millions.setValue(\"$ Millions\");\r\n\t\tmainLayout.addComponent(label_Millions, \"top:140.0px;left:20.0px;\");\r\n\r\n\t\t// label_base\r\n\t\tlabel_base = new Label();\r\n\t\tlabel_base.setImmediate(false);\r\n\t\tlabel_base.setWidth(\"120px\");\r\n\t\tlabel_base.setHeight(\"20px\");\r\n\t\tlabel_base.setValue(\"Base\");\r\n\t\tmainLayout.addComponent(label_base, \"top:160.0px;left:20.0px;\");\r\n\r\n\t\t// label_RnC\r\n\t\tlabel_RnC = new Label();\r\n\t\tlabel_RnC.setImmediate(false);\r\n\t\tlabel_RnC.setWidth(\"120px\");\r\n\t\tlabel_RnC.setHeight(\"20px\");\r\n\t\tlabel_RnC.setValue(\"Risk & Contingency\");\r\n\t\tmainLayout.addComponent(label_RnC, \"top:180.0px;left:20.0px;\");\r\n\r\n\t\t// label_TotalProject\r\n\t\tlabel_TotalProject = new Label();\r\n\t\tlabel_TotalProject.setImmediate(false);\r\n\t\tlabel_TotalProject.setWidth(\"120px\");\r\n\t\tlabel_TotalProject.setHeight(\"20px\");\r\n\t\tlabel_TotalProject.setValue(\"Total Project\");\r\n\t\tmainLayout.addComponent(label_TotalProject, \"top:200.0px;left:20.0px;\");\r\n\r\n\t\t// label_Request0\r\n\t\tlabel_Request0 = new Label();\r\n\t\tlabel_Request0.setImmediate(false);\r\n\t\tlabel_Request0.setWidth(\"-1px\");\r\n\t\tlabel_Request0.setHeight(\"20px\");\r\n\t\tlabel_Request0.setValue(\"Current Request\");\r\n\t\tmainLayout.addComponent(label_Request0, \"top:220.0px;left:20.0px;\");\r\n\r\n\t\t// label_Request1\r\n\t\tlabel_Request1 = new Label();\r\n\t\tlabel_Request1.setImmediate(false);\r\n\t\tlabel_Request1.setWidth(\"-1px\");\r\n\t\tlabel_Request1.setHeight(\"20px\");\r\n\t\tlabel_Request1.setValue(\"Request Date\");\r\n\t\tmainLayout.addComponent(label_Request1, \"top:240.0px;left:20.0px;\");\r\n\r\n\t\t// label_Request2\r\n\t\tlabel_Request2 = new Label();\r\n\t\tlabel_Request2.setImmediate(false);\r\n\t\tlabel_Request2.setWidth(\"-1px\");\r\n\t\tlabel_Request2.setHeight(\"20px\");\r\n\t\tlabel_Request2.setValue(\"Request Date\");\r\n\t\tmainLayout.addComponent(label_Request2, \"top:260.0px;left:20.0px;\");\r\n\r\n\t\t// label_Prior\r\n\t\tlabel_Prior = new Label();\r\n\t\tlabel_Prior.setImmediate(false);\r\n\t\tlabel_Prior.setWidth(\"60px\");\r\n\t\tlabel_Prior.setHeight(\"20px\");\r\n\t\tlabel_Prior.setValue(\"Prior\");\r\n\t\tmainLayout.addComponent(label_Prior, \"top:140.0px;left:200.0px;\");\r\n\r\n\t\t// yearCurrent\r\n\t\tyearCurrent = new TextField();\r\n\t\tyearCurrent.setCaption(\"Current\");\r\n\t\tyearCurrent.setImmediate(false);\r\n\t\tyearCurrent.setWidth(\"60px\");\r\n\t\tyearCurrent.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(yearCurrent, \"top:140.0px;left:260.0px;\");\r\n\r\n\t\t// year1\r\n\t\tyear1 = new TextField();\r\n\t\tyear1.setCaption(\"Year 1\");\r\n\t\tyear1.setImmediate(false);\r\n\t\tyear1.setWidth(\"60px\");\r\n\t\tyear1.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(year1, \"top:140.0px;left:320.0px;\");\r\n\r\n\t\t// year2\r\n\t\tyear2 = new TextField();\r\n\t\tyear2.setCaption(\"Year2\");\r\n\t\tyear2.setImmediate(false);\r\n\t\tyear2.setWidth(\"60px\");\r\n\t\tyear2.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(year2, \"top:140.0px;left:380.0px;\");\r\n\r\n\t\t// year3\r\n\t\tyear3 = new TextField();\r\n\t\tyear3.setCaption(\"Year3\");\r\n\t\tyear3.setImmediate(false);\r\n\t\tyear3.setWidth(\"60px\");\r\n\t\tyear3.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(year3, \"top:140.0px;left:440.0px;\");\r\n\r\n\t\t// year4\r\n\t\tyear4 = new TextField();\r\n\t\tyear4.setCaption(\"Year4\");\r\n\t\tyear4.setImmediate(false);\r\n\t\tyear4.setWidth(\"60px\");\r\n\t\tyear4.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(year4, \"top:140.0px;left:500.0px;\");\r\n\r\n\t\t// yearPost\r\n\t\tyearPost = new TextField();\r\n\t\tyearPost.setCaption(\"PostYear\");\r\n\t\tyearPost.setImmediate(false);\r\n\t\tyearPost.setWidth(\"80px\");\r\n\t\tyearPost.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(yearPost, \"top:140.0px;left:560.0px;\");\r\n\r\n\t\t// label_Total\r\n\t\tlabel_Total = new Label();\r\n\t\tlabel_Total.setImmediate(false);\r\n\t\tlabel_Total.setWidth(\"60px\");\r\n\t\tlabel_Total.setHeight(\"-1px\");\r\n\t\tlabel_Total.setValue(\"Total\");\r\n\t\tmainLayout.addComponent(label_Total, \"top:142.0px;left:640.0px;\");\r\n\r\n\t\t// label_Auth\r\n\t\tlabel_Auth = new Label();\r\n\t\tlabel_Auth.setImmediate(false);\r\n\t\tlabel_Auth.setWidth(\"60px\");\r\n\t\tlabel_Auth.setHeight(\"20px\");\r\n\t\tlabel_Auth.setValue(\"Auth\");\r\n\t\tmainLayout.addComponent(label_Auth, \"top:140.0px;left:700.0px;\");\r\n\r\n\t\t// basePrior\r\n\t\tbasePrior = new TextField();\r\n\t\tbasePrior.setImmediate(true);\r\n\t\tbasePrior.setWidth(\"60px\");\r\n\t\tbasePrior.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(basePrior, \"top:160.0px;left:200.0px;\");\r\n\r\n\t\t// baseCurrent\r\n\t\tbaseCurrent = new TextField();\r\n\t\tbaseCurrent.setImmediate(true);\r\n\t\tbaseCurrent.setWidth(\"60px\");\r\n\t\tbaseCurrent.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(baseCurrent, \"top:160.0px;left:260.0px;\");\r\n\r\n\t\t// baseYear1\r\n\t\tbaseYear1 = new TextField();\r\n\t\tbaseYear1.setImmediate(true);\r\n\t\tbaseYear1.setWidth(\"60px\");\r\n\t\tbaseYear1.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(baseYear1, \"top:160.0px;left:320.0px;\");\r\n\r\n\t\t// baseYear2\r\n\t\tbaseYear2 = new TextField();\r\n\t\tbaseYear2.setImmediate(true);\r\n\t\tbaseYear2.setWidth(\"60px\");\r\n\t\tbaseYear2.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(baseYear2, \"top:160.0px;left:380.0px;\");\r\n\r\n\t\t// baseYear3\r\n\t\tbaseYear3 = new TextField();\r\n\t\tbaseYear3.setImmediate(true);\r\n\t\tbaseYear3.setWidth(\"60px\");\r\n\t\tbaseYear3.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(baseYear3, \"top:160.0px;left:440.0px;\");\r\n\r\n\t\t// baseYear4\r\n\t\tbaseYear4 = new TextField();\r\n\t\tbaseYear4.setImmediate(true);\r\n\t\tbaseYear4.setWidth(\"60px\");\r\n\t\tbaseYear4.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(baseYear4, \"top:160.0px;left:500.0px;\");\r\n\r\n\t\t// basePost\r\n\t\tbasePost = new TextField();\r\n\t\tbasePost.setImmediate(true);\r\n\t\tbasePost.setWidth(\"80px\");\r\n\t\tbasePost.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(basePost, \"top:160.0px;left:560.0px;\");\r\n\r\n\t\t// baseTotal\r\n\t\tbaseTotal = new Label();\r\n\t\tbaseTotal.setImmediate(false);\r\n\t\tbaseTotal.setWidth(\"60px\");\r\n\t\tbaseTotal.setHeight(\"20px\");\r\n\t\tbaseTotal.setValue(\"0\");\r\n\t\tmainLayout.addComponent(baseTotal, \"top:160.0px;left:640.0px;\");\r\n\r\n\t\t// rncPrior\r\n\t\trncPrior = new TextField();\r\n\t\trncPrior.setImmediate(true);\r\n\t\trncPrior.setWidth(\"60px\");\r\n\t\trncPrior.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(rncPrior, \"top:180.0px;left:200.0px;\");\r\n\r\n\t\t// rncCurrent\r\n\t\trncCurrent = new TextField();\r\n\t\trncCurrent.setImmediate(true);\r\n\t\trncCurrent.setWidth(\"60px\");\r\n\t\trncCurrent.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(rncCurrent, \"top:180.0px;left:260.0px;\");\r\n\r\n\t\t// rncYear1\r\n\t\trncYear1 = new TextField();\r\n\t\trncYear1.setImmediate(true);\r\n\t\trncYear1.setWidth(\"60px\");\r\n\t\trncYear1.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(rncYear1, \"top:180.0px;left:320.0px;\");\r\n\r\n\t\t// rncYear2\r\n\t\trncYear2 = new TextField();\r\n\t\trncYear2.setImmediate(true);\r\n\t\trncYear2.setWidth(\"60px\");\r\n\t\trncYear2.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(rncYear2, \"top:180.0px;left:380.0px;\");\r\n\r\n\t\t// rncYear3\r\n\t\trncYear3 = new TextField();\r\n\t\trncYear3.setImmediate(true);\r\n\t\trncYear3.setWidth(\"60px\");\r\n\t\trncYear3.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(rncYear3, \"top:180.0px;left:440.0px;\");\r\n\r\n\t\t// rncYear4\r\n\t\trncYear4 = new TextField();\r\n\t\trncYear4.setImmediate(true);\r\n\t\trncYear4.setWidth(\"60px\");\r\n\t\trncYear4.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(rncYear4, \"top:180.0px;left:500.0px;\");\r\n\r\n\t\t// rncPost\r\n\t\trncPost = new TextField();\r\n\t\trncPost.setImmediate(true);\r\n\t\trncPost.setWidth(\"80px\");\r\n\t\trncPost.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(rncPost, \"top:180.0px;left:560.0px;\");\r\n\r\n\t\t// rncTotal\r\n\t\trncTotal = new Label();\r\n\t\trncTotal.setImmediate(false);\r\n\t\trncTotal.setWidth(\"60px\");\r\n\t\trncTotal.setHeight(\"20px\");\r\n\t\trncTotal.setValue(\"0\");\r\n\t\tmainLayout.addComponent(rncTotal, \"top:180.0px;left:640.0px;\");\r\n\r\n\t\t// dateTotal\r\n\t\tdateTotal = new PopupDateField();\r\n\t\tdateTotal.setImmediate(false);\r\n\t\tdateTotal.setWidth(\"80px\");\r\n\t\tdateTotal.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(dateTotal, \"top:200.0px;left:120.0px;\");\r\n\r\n\t\t// totalPrior\r\n\t\ttotalPrior = new Label();\r\n\t\ttotalPrior.setImmediate(false);\r\n\t\ttotalPrior.setWidth(\"60px\");\r\n\t\ttotalPrior.setHeight(\"20px\");\r\n\t\ttotalPrior.setValue(\"0\");\r\n\t\tmainLayout.addComponent(totalPrior, \"top:200.0px;left:200.0px;\");\r\n\r\n\t\t// totalCurrent\r\n\t\ttotalCurrent = new Label();\r\n\t\ttotalCurrent.setImmediate(false);\r\n\t\ttotalCurrent.setWidth(\"60px\");\r\n\t\ttotalCurrent.setHeight(\"20px\");\r\n\t\ttotalCurrent.setValue(\"0\");\r\n\t\tmainLayout.addComponent(totalCurrent, \"top:200.0px;left:260.0px;\");\r\n\r\n\t\t// totalYear1\r\n\t\ttotalYear1 = new Label();\r\n\t\ttotalYear1.setImmediate(false);\r\n\t\ttotalYear1.setWidth(\"60px\");\r\n\t\ttotalYear1.setHeight(\"20px\");\r\n\t\ttotalYear1.setValue(\"0\");\r\n\t\tmainLayout.addComponent(totalYear1, \"top:200.0px;left:320.0px;\");\r\n\r\n\t\t// totalYear2\r\n\t\ttotalYear2 = new Label();\r\n\t\ttotalYear2.setImmediate(false);\r\n\t\ttotalYear2.setWidth(\"60px\");\r\n\t\ttotalYear2.setHeight(\"20px\");\r\n\t\ttotalYear2.setValue(\"0\");\r\n\t\tmainLayout.addComponent(totalYear2, \"top:200.0px;left:380.0px;\");\r\n\r\n\t\t// totalYear3\r\n\t\ttotalYear3 = new Label();\r\n\t\ttotalYear3.setImmediate(false);\r\n\t\ttotalYear3.setWidth(\"60px\");\r\n\t\ttotalYear3.setHeight(\"20px\");\r\n\t\ttotalYear3.setValue(\"0\");\r\n\t\tmainLayout.addComponent(totalYear3, \"top:200.0px;left:440.0px;\");\r\n\r\n\t\t// totalYear4\r\n\t\ttotalYear4 = new Label();\r\n\t\ttotalYear4.setImmediate(false);\r\n\t\ttotalYear4.setWidth(\"60px\");\r\n\t\ttotalYear4.setHeight(\"20px\");\r\n\t\ttotalYear4.setValue(\"0\");\r\n\t\tmainLayout.addComponent(totalYear4, \"top:200.0px;left:500.0px;\");\r\n\r\n\t\t// totalPost\r\n\t\ttotalPost = new Label();\r\n\t\ttotalPost.setImmediate(false);\r\n\t\ttotalPost.setWidth(\"80px\");\r\n\t\ttotalPost.setHeight(\"20px\");\r\n\t\ttotalPost.setValue(\"0\");\r\n\t\tmainLayout.addComponent(totalPost, \"top:200.0px;left:560.0px;\");\r\n\r\n\t\t// totalTotal\r\n\t\ttotalTotal = new Label();\r\n\t\ttotalTotal.setImmediate(false);\r\n\t\ttotalTotal.setWidth(\"60px\");\r\n\t\ttotalTotal.setHeight(\"20px\");\r\n\t\ttotalTotal.setValue(\"0\");\r\n\t\tmainLayout.addComponent(totalTotal, \"top:200.0px;left:640.0px;\");\r\n\r\n\t\t// dateReq0\r\n\t\tdateReq0 = new PopupDateField();\r\n\t\tdateReq0.setImmediate(false);\r\n\t\tdateReq0.setWidth(\"80px\");\r\n\t\tdateReq0.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(dateReq0, \"top:220.0px;left:120.0px;\");\r\n\r\n\t\t// req0Prior\r\n\t\treq0Prior = new TextField();\r\n\t\treq0Prior.setImmediate(true);\r\n\t\treq0Prior.setWidth(\"60px\");\r\n\t\treq0Prior.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req0Prior, \"top:220.0px;left:200.0px;\");\r\n\r\n\t\t// req0Current\r\n\t\treq0Current = new TextField();\r\n\t\treq0Current.setImmediate(true);\r\n\t\treq0Current.setWidth(\"60px\");\r\n\t\treq0Current.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req0Current, \"top:220.0px;left:260.0px;\");\r\n\r\n\t\t// req0Year1\r\n\t\treq0Year1 = new TextField();\r\n\t\treq0Year1.setImmediate(true);\r\n\t\treq0Year1.setWidth(\"60px\");\r\n\t\treq0Year1.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req0Year1, \"top:220.0px;left:320.0px;\");\r\n\r\n\t\t// req0Year2\r\n\t\treq0Year2 = new TextField();\r\n\t\treq0Year2.setImmediate(true);\r\n\t\treq0Year2.setWidth(\"60px\");\r\n\t\treq0Year2.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req0Year2, \"top:220.0px;left:380.0px;\");\r\n\r\n\t\t// req0Year3\r\n\t\treq0Year3 = new TextField();\r\n\t\treq0Year3.setImmediate(true);\r\n\t\treq0Year3.setWidth(\"60px\");\r\n\t\treq0Year3.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req0Year3, \"top:220.0px;left:440.0px;\");\r\n\r\n\t\t// req0Year4\r\n\t\treq0Year4 = new TextField();\r\n\t\treq0Year4.setImmediate(true);\r\n\t\treq0Year4.setWidth(\"60px\");\r\n\t\treq0Year4.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req0Year4, \"top:220.0px;left:500.0px;\");\r\n\r\n\t\t// req0Post\r\n\t\treq0Post = new TextField();\r\n\t\treq0Post.setImmediate(true);\r\n\t\treq0Post.setWidth(\"80px\");\r\n\t\treq0Post.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req0Post, \"top:220.0px;left:560.0px;\");\r\n\r\n\t\t// req0Total\r\n\t\treq0Total = new Label();\r\n\t\treq0Total.setImmediate(false);\r\n\t\treq0Total.setWidth(\"60px\");\r\n\t\treq0Total.setHeight(\"20px\");\r\n\t\treq0Total.setValue(\"0\");\r\n\t\tmainLayout.addComponent(req0Total, \"top:220.0px;left:640.0px;\");\r\n\r\n\t\t// req0Auth\r\n\t\treq0Auth = new TextField();\r\n\t\treq0Auth.setImmediate(false);\r\n\t\treq0Auth.setWidth(\"60px\");\r\n\t\treq0Auth.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req0Auth, \"top:220.0px;left:700.0px;\");\r\n\r\n\t\t// dateReq1\r\n\t\tdateReq1 = new PopupDateField();\r\n\t\tdateReq1.setImmediate(false);\r\n\t\tdateReq1.setWidth(\"80px\");\r\n\t\tdateReq1.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(dateReq1, \"top:240.0px;left:120.0px;\");\r\n\r\n\t\t// req1Prior\r\n\t\treq1Prior = new TextField();\r\n\t\treq1Prior.setImmediate(true);\r\n\t\treq1Prior.setWidth(\"60px\");\r\n\t\treq1Prior.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req1Prior, \"top:240.0px;left:200.0px;\");\r\n\r\n\t\t// req1Current\r\n\t\treq1Current = new TextField();\r\n\t\treq1Current.setImmediate(true);\r\n\t\treq1Current.setWidth(\"60px\");\r\n\t\treq1Current.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req1Current, \"top:240.0px;left:260.0px;\");\r\n\r\n\t\t// req1Year1\r\n\t\treq1Year1 = new TextField();\r\n\t\treq1Year1.setImmediate(true);\r\n\t\treq1Year1.setWidth(\"60px\");\r\n\t\treq1Year1.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req1Year1, \"top:240.0px;left:320.0px;\");\r\n\r\n\t\t// req1Year2\r\n\t\treq1Year2 = new TextField();\r\n\t\treq1Year2.setImmediate(true);\r\n\t\treq1Year2.setWidth(\"60px\");\r\n\t\treq1Year2.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req1Year2, \"top:240.0px;left:380.0px;\");\r\n\r\n\t\t// req1Year3\r\n\t\treq1Year3 = new TextField();\r\n\t\treq1Year3.setImmediate(true);\r\n\t\treq1Year3.setWidth(\"60px\");\r\n\t\treq1Year3.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req1Year3, \"top:240.0px;left:440.0px;\");\r\n\r\n\t\t// req1Year4\r\n\t\treq1Year4 = new TextField();\r\n\t\treq1Year4.setImmediate(true);\r\n\t\treq1Year4.setWidth(\"60px\");\r\n\t\treq1Year4.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req1Year4, \"top:240.0px;left:500.0px;\");\r\n\r\n\t\t// req1Post\r\n\t\treq1Post = new TextField();\r\n\t\treq1Post.setImmediate(true);\r\n\t\treq1Post.setWidth(\"80px\");\r\n\t\treq1Post.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req1Post, \"top:240.0px;left:560.0px;\");\r\n\r\n\t\t// req1Total\r\n\t\treq1Total = new Label();\r\n\t\treq1Total.setImmediate(false);\r\n\t\treq1Total.setWidth(\"60px\");\r\n\t\treq1Total.setHeight(\"20px\");\r\n\t\treq1Total.setValue(\"0\");\r\n\t\tmainLayout.addComponent(req1Total, \"top:240.0px;left:640.0px;\");\r\n\r\n\t\t// req1Auth\r\n\t\treq1Auth = new TextField();\r\n\t\treq1Auth.setImmediate(false);\r\n\t\treq1Auth.setWidth(\"60px\");\r\n\t\treq1Auth.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req1Auth, \"top:240.0px;left:700.0px;\");\r\n\r\n\t\t// dateReq2\r\n\t\tdateReq2 = new PopupDateField();\r\n\t\tdateReq2.setImmediate(false);\r\n\t\tdateReq2.setWidth(\"80px\");\r\n\t\tdateReq2.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(dateReq2, \"top:260.0px;left:120.0px;\");\r\n\r\n\t\t// req2Prior\r\n\t\treq2Prior = new TextField();\r\n\t\treq2Prior.setImmediate(true);\r\n\t\treq2Prior.setWidth(\"60px\");\r\n\t\treq2Prior.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req2Prior, \"top:260.0px;left:200.0px;\");\r\n\r\n\t\t// req2Current\r\n\t\treq2Current = new TextField();\r\n\t\treq2Current.setImmediate(true);\r\n\t\treq2Current.setWidth(\"60px\");\r\n\t\treq2Current.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req2Current, \"top:260.0px;left:260.0px;\");\r\n\r\n\t\t// req2Year1\r\n\t\treq2Year1 = new TextField();\r\n\t\treq2Year1.setImmediate(true);\r\n\t\treq2Year1.setWidth(\"60px\");\r\n\t\treq2Year1.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req2Year1, \"top:260.0px;left:320.0px;\");\r\n\r\n\t\t// req2Year2\r\n\t\treq2Year2 = new TextField();\r\n\t\treq2Year2.setImmediate(true);\r\n\t\treq2Year2.setWidth(\"60px\");\r\n\t\treq2Year2.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req2Year2, \"top:260.0px;left:380.0px;\");\r\n\r\n\t\t// req2Year3\r\n\t\treq2Year3 = new TextField();\r\n\t\treq2Year3.setImmediate(true);\r\n\t\treq2Year3.setWidth(\"60px\");\r\n\t\treq2Year3.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req2Year3, \"top:260.0px;left:440.0px;\");\r\n\r\n\t\t// req2Year4\r\n\t\treq2Year4 = new TextField();\r\n\t\treq2Year4.setImmediate(true);\r\n\t\treq2Year4.setWidth(\"60px\");\r\n\t\treq2Year4.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req2Year4, \"top:260.0px;left:500.0px;\");\r\n\r\n\t\t// req2Post\r\n\t\treq2Post = new TextField();\r\n\t\treq2Post.setImmediate(true);\r\n\t\treq2Post.setWidth(\"80px\");\r\n\t\treq2Post.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req2Post, \"top:260.0px;left:560.0px;\");\r\n\r\n\t\t// req2Total\r\n\t\treq2Total = new Label();\r\n\t\treq2Total.setImmediate(false);\r\n\t\treq2Total.setWidth(\"60px\");\r\n\t\treq2Total.setHeight(\"20px\");\r\n\t\treq2Total.setValue(\"0\");\r\n\t\tmainLayout.addComponent(req2Total, \"top:260.0px;left:640.0px;\");\r\n\r\n\t\t// req2Auth\r\n\t\treq2Auth = new TextField();\r\n\t\treq2Auth.setImmediate(false);\r\n\t\treq2Auth.setWidth(\"60px\");\r\n\t\treq2Auth.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(req2Auth, \"top:260.0px;left:700.0px;\");\r\n\r\n\t\t// label_targetBudget\r\n\t\tlabel_targetBudget = new Label();\r\n\t\tlabel_targetBudget.setImmediate(false);\r\n\t\tlabel_targetBudget.setWidth(\"-1px\");\r\n\t\tlabel_targetBudget.setHeight(\"20px\");\r\n\t\tlabel_targetBudget.setValue(\"Target Budget\");\r\n\t\tmainLayout.addComponent(label_targetBudget, \"top:280.0px;left:20.0px;\");\r\n\r\n\t\t// targetBudget\r\n\t\ttargetBudget = new TextField();\r\n\t\ttargetBudget.setImmediate(false);\r\n\t\ttargetBudget.setWidth(\"100px\");\r\n\t\ttargetBudget.setHeight(\"20px\");\r\n\t\tmainLayout.addComponent(targetBudget, \"top:280.0px;left:620.0px;\");\r\n\r\n\t\treturn mainLayout;\r\n\t}", "title": "" }, { "docid": "2517e42aea072d583437dbd1fec1b2a1", "score": "0.5691861", "text": "public native static Layout create();", "title": "" }, { "docid": "78d62fe8fb2399ee9b027d867d86a4e2", "score": "0.5685114", "text": "private void createPogEditor() {\n\t\tcenterContent = new LayoutPanel();\n\t\tcenterContent.setHeight(\"100%\");\n\t\tcenterContent.setWidth(\"100%\");\n\t\tcenterGrid = new Grid();\n\t\tcenterGrid.setWidth(\"95%\");\n\t\tcenterGrid.resize(8, 2);\n\t\tcenterGrid.getColumnFormatter().setWidth(0, \"100px\");\n\t\tselectedPog = new SelectedPog(null);\n\t\tHeaderPanel vpanel = new HeaderPanel();\n\t\tvpanel.setHeaderWidget(centerGrid);\n\t\tvpanel.setContentWidget(pogSelection);\n\t\tLayoutPanel lp = new LayoutPanel();\n\t\tlp.setHeight(\"70px\");\n\t\tlp.add(selectedPog);\n\t\tvpanel.setFooterWidget(lp);\n\t\tcenterContent.add(vpanel);\n\t\tcreateGridContent();\n\t}", "title": "" }, { "docid": "e8966b993503674fde5ea7fd3feecd5a", "score": "0.5675261", "text": "private LayoutManager createLayout ()\r\n {\r\n return new TitlePaneLayout ();\r\n }", "title": "" }, { "docid": "c130e85ec9718a286128f64f4ac41b9b", "score": "0.56746775", "text": "private HorizontalLayout createHorizontalLayout() {\n\t\tHorizontalLayout horizontalLayout = new HorizontalLayout();\n\t\thorizontalLayout.setCaption(\"Horizontal Layout\");\n\t\thorizontalLayout.setStyleName(ValoTheme.LAYOUT_COMPONENT_GROUP);\n\t\thorizontalLayout.setSpacing(true);\n\t\t\n\t\tLabel label1 = new Label(\"Label 1\");\n\t\tlabel1.setStyleName(ValoTheme.LABEL_BOLD);\n\t\thorizontalLayout.addComponent(label1);\n\t\t\n\t\tlabel1 = new Label(\"Label 2\");\n\t\tlabel1.setStyleName(ValoTheme.LABEL_COLORED);\n\t\thorizontalLayout.addComponent(label1);\n\n\t\tlabel1 = new Label(\"Label 3\");\n\t\tlabel1.setStyleName(ValoTheme.LABEL_FAILURE);\n\t\thorizontalLayout.addComponent(label1);\n\n\t\tlabel1 = new Label(\"Label 4\");\n\t\tlabel1.setStyleName(ValoTheme.LABEL_HUGE);\n\t\thorizontalLayout.addComponent(label1);\n\n\t\tlabel1 = new Label(\"Label 5\");\n\t\tlabel1.setStyleName(ValoTheme.LABEL_LARGE);\n\t\thorizontalLayout.addComponent(label1);\n\n\t\tlabel1 = new Label(\"Label 6\");\n\t\tlabel1.setStyleName(ValoTheme.LABEL_LIGHT);\n\t\thorizontalLayout.addComponent(label1);\n\n\t\tlabel1 = new Label(\"Label 7\");\n\t\tlabel1.setStyleName(ValoTheme.LABEL_SPINNER);\n\t\thorizontalLayout.addComponent(label1);\n\n\t\tlabel1 = new Label(\"Label 8\");\n\t\tlabel1.setStyleName(ValoTheme.LABEL_TINY);\n\t\thorizontalLayout.addComponent(label1);\n\t\t\n\t\treturn horizontalLayout;\n\t}", "title": "" }, { "docid": "67876e124317dc0ade9a275533e01622", "score": "0.56713945", "text": "@AutoGenerated\r\n\tprivate HorizontalLayout buildPnl5() {\n\t\tpnl5 = new HorizontalLayout();\r\n\t\tpnl5.setImmediate(false);\r\n\t\tpnl5.setWidth(\"-1px\");\r\n\t\tpnl5.setHeight(\"-1px\");\r\n\t\tpnl5.setMargin(false);\r\n\t\tpnl5.setSpacing(true);\r\n\t\t\r\n\t\t// btnGrabar\r\n\t\tbtnGrabar = new Button();\r\n\t\tbtnGrabar.setCaption(\"Grabar\");\r\n\t\tbtnGrabar.setImmediate(true);\r\n\t\tbtnGrabar.setWidth(\"80px\");\r\n\t\tbtnGrabar.setHeight(\"-1px\");\r\n\t\tpnl5.addComponent(btnGrabar);\r\n\t\t\r\n\t\t// btnCancelar\r\n\t\tbtnCancelar = new Button();\r\n\t\tbtnCancelar.setCaption(\"Cancelar\");\r\n\t\tbtnCancelar.setImmediate(true);\r\n\t\tbtnCancelar.setWidth(\"80px\");\r\n\t\tbtnCancelar.setHeight(\"-1px\");\r\n\t\tpnl5.addComponent(btnCancelar);\r\n\t\t\r\n\t\treturn pnl5;\r\n\t}", "title": "" }, { "docid": "f96a5124fe254c1a279709ededdc0553", "score": "0.5668742", "text": "private void setupLayout()\r\n\t{\t\r\n\t\t// Create a new TileSheet \r\n\t\tTileSheet sheet = new TileSheet(new File(selectedFilePath), (Integer)xSize.getValue(), (Integer)ySize.getValue(), transparentColor);\r\n\t\tSystem.out.println(\"You chose to open this file: \" + selectedFilePath);\r\n\t\t\r\n\t\t// Create the map, tile, and object panels\t\t\t\t\t\r\n\t\tTilePanel tilePanel = new TilePanel(sheet, false);\r\n\t\tTilePanel objectPanel = new TilePanel(sheet, true);\r\n\t\tMapPanel mapPanel = new MapPanel(parentFrame, (Integer)xTiles.getValue(), (Integer)yTiles.getValue(), tilePanel, objectPanel);\r\n\t\t\r\n\t\t// Assign the panels to the main frame\r\n\t\tparentFrame.setTilePanel(tilePanel);\r\n\t\tparentFrame.setMapPanel(mapPanel);\r\n\t\t\r\n\t\t// Assign the map panel to the tile selection panels\r\n\t\ttilePanel.setMapPanel(mapPanel);\r\n\t\tobjectPanel.setMapPanel(mapPanel);\r\n\t\t\r\n\t\tLayoutManager manager;\r\n\t\t\r\n\t\t// If a layout manager doesn't already exist, create one\r\n\t\tif (parentFrame.getLayoutManager() == null)\r\n\t\t{\r\n\t\t\tmanager = new LayoutManager(parentFrame, mapPanel);\r\n\t\t\tparentFrame.setLayoutManager(manager);\r\n\t\t}\r\n\t\t// If one does exist, clear old layout and update it with the new info\r\n\t\telse\r\n\t\t{\r\n\t\t\tmanager = parentFrame.getLayoutManager();\r\n\t\t\tmanager.clearExistingLayout();\r\n\t\t\tmanager.setNewInfo(parentFrame, mapPanel);\r\n\t\t\tparentFrame.setTitle(\"Tile Mapper\");\r\n\t\t}\r\n\t\t\r\n\t\tmanager.initializeLayout();\r\n\t}", "title": "" }, { "docid": "aca35545250bdfdf9547c6766f42e474", "score": "0.56520563", "text": "public void initLayout(){\n\t\t\n\t\tint i; // for counting\n\t\t\n\t\t// Initialize game state variables\n\t\tclockTime = 0;\n\t\tlivesLeft = 3;\n\t\t\n\t\t// make a game object factory to setup the world\n\t\tmyGOFactory = new GameObjectFactory(this.getProxy());\n\t\t\n\t\t// create the player car and add to myObjs\n\t\tmyObjs.add(myGOFactory.getGameObject(\"PLAYER\"));\n\t\t\n\t\t// create three NPCs near the start, add to myObjs\n\t\tfor(i=1; i<=3; i++)\n\t\t\tmyObjs.add(myGOFactory.getGameObject(\"NPC\"));\n\t\t\t\n\t\t\n\t\t// create four pylons to create a demo track\n\t\tfor(i=1; i<=4; i++)\n\t\t\tmyObjs.add(myGOFactory.getGameObject(\"PYLON\"));\n\t\t\n\t\t// create 3 randomized birds\n\t\tfor(i=1; i<=3; i++)\n\t\t\tmyObjs.add(myGOFactory.getGameObject(\"BIRD\"));\n\t\t\n\t\t// create 3 random oil slicks\n\t\tfor(i=1; i<=3; i++)\n\t\t\tmyObjs.add(myGOFactory.getGameObject(\"OIL\"));\n\t\t\n\t\t// create 3 random fuel cans\n\t\tfor(i=1; i<=3; i++)\n\t\t\tmyObjs.add(myGOFactory.getGameObject(\"FUEL\"));\n\t}", "title": "" }, { "docid": "852fd301f78a04c90f2ece440c105037", "score": "0.5642383", "text": "@AutoGenerated\r\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"100.0%\");\r\n\t\t\r\n\t\t// btnNewPatient\r\n\t\tbtnNewPatient = new Button();\r\n\t\tbtnNewPatient.setCaption(\"Neuer Patient\");\r\n\t\tbtnNewPatient.setImmediate(true);\r\n\t\tbtnNewPatient.setWidth(\"-1px\");\r\n\t\tbtnNewPatient.setHeight(\"-1px\");\r\n\t\tmainLayout.addComponent(btnNewPatient, \"top:20.0px;left:250.0px;\");\r\n\t\t\r\n\t\t// panMaster\r\n\t\tpanMaster = buildPanMaster();\r\n\t\tmainLayout.addComponent(panMaster, \"top:60.0px;left:20.0px;\");\r\n\t\t\r\n\t\t// lblView\r\n\t\tlblView = new Label();\r\n\t\tlblView.setImmediate(false);\r\n\t\tlblView.setWidth(\"-1px\");\r\n\t\tlblView.setHeight(\"-1px\");\r\n\t\tlblView.setValue(\"Patient\");\r\n\t\tmainLayout.addComponent(lblView, \"top:20.0px;left:20.0px;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "title": "" }, { "docid": "ef787e5f2ba92aa20611ca4826e6b75f", "score": "0.55999786", "text": "public abstract int initLayout();", "title": "" }, { "docid": "3357c9c82fe28a223f75ddbf018c121f", "score": "0.55914265", "text": "protected void createContents() {\n\t\tsetText(\"Engima\");\n\t\tsetSize(450, 300);\n\n\t}", "title": "" }, { "docid": "ddcd48f35c40d0fad3125c2befb3221d", "score": "0.558735", "text": "private void $$$setupUI$$$() {\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n fieldEditor = new JPanel();\n fieldEditor.setLayout(new GridLayoutManager(5, 9, new Insets(10, 10, 10, 10), -1, -1));\n fieldEditor.setMaximumSize(new Dimension(587, 257));\n panel1.add(fieldEditor, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 5, new Insets(5, 5, 5, 5), -1, -1));\n fieldEditor.add(panel2, new GridConstraints(0, 0, 1, 9, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel2.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Identification\"));\n final JLabel label1 = new JLabel();\n label1.setHorizontalAlignment(4);\n label1.setText(\"Field Name:\");\n panel2.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(90, -1), null, new Dimension(90, -1), 0, false));\n fieldLabel = new JLabel();\n fieldLabel.setText(\"Card Field:\");\n panel2.add(fieldLabel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n partLabel = new JLabel();\n partLabel.setText(\"Card Part:\");\n panel2.add(partLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n partLabelValue = new JLabel();\n partLabelValue.setText(\"Label\");\n panel2.add(partLabelValue, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fieldLabelValue = new JLabel();\n fieldLabelValue.setText(\"Label\");\n panel2.add(fieldLabelValue, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fieldName = new JTextField();\n panel2.add(fieldName, new GridConstraints(0, 1, 1, 4, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel2.add(spacer1, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n idLabelValue = new JLabel();\n idLabelValue.setText(\"Label\");\n panel2.add(idLabelValue, new GridConstraints(1, 4, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setHorizontalAlignment(2);\n label2.setInheritsPopupMenu(false);\n label2.setText(\"Field ID:\");\n panel2.add(label2, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(7, 3, new Insets(5, 5, 5, 5), -1, -1));\n fieldEditor.add(panel3, new GridConstraints(1, 0, 2, 6, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel3.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Look and Feel\"));\n isWrapText = new JCheckBox();\n isWrapText.setText(\"Don't Wrap\");\n isWrapText.setToolTipText(\"Do not wrap long lines; scroll horizontally instead.\");\n panel3.add(isWrapText, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n isLockText = new JCheckBox();\n isLockText.setText(\"Lock Text\");\n isLockText.setToolTipText(\"Make the text of this field uneditable to the user.\");\n panel3.add(isLockText, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n style = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n style.setModel(defaultComboBoxModel1);\n panel3.add(style, new GridConstraints(0, 1, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Style:\");\n panel3.add(label3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n isVisible = new JCheckBox();\n isVisible.setText(\"Visible\");\n isVisible.setToolTipText(\"Hide or show this field on the card.\");\n panel3.add(isVisible, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n showLines = new JCheckBox();\n showLines.setText(\"Show Lines\");\n showLines.setToolTipText(\"Draw dottled rule underneath lines of text.\");\n panel3.add(showLines, new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n sharedText = new JCheckBox();\n sharedText.setText(\"Shared Text\");\n sharedText.setToolTipText(\"Share the text of this field across all cards in this background. (Applies only to background fields.)\");\n panel3.add(sharedText, new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n enabled = new JCheckBox();\n enabled.setText(\"Enabled\");\n enabled.setToolTipText(\"Enable or disable (grey-out) this field.\");\n panel3.add(enabled, new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n isWideMargins = new JCheckBox();\n isWideMargins.setText(\"Wide Margins\");\n isWideMargins.setToolTipText(\"Inset the text 15px from the edges of the field.\");\n panel3.add(isWideMargins, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n autoTab = new JCheckBox();\n autoTab.setText(\"Auto Tab\");\n autoTab.setToolTipText(\"Transfer focus to the next part when the tab key is pressed.\");\n panel3.add(autoTab, new GridConstraints(4, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n autoSelect = new JCheckBox();\n autoSelect.setText(\"Auto Select\");\n autoSelect.setToolTipText(\"Automatically select the entire line of text that was clicked; makes this a \\\"list field.\\\"\");\n panel3.add(autoSelect, new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n multipleLines = new JCheckBox();\n multipleLines.setText(\"Multiple Lines\");\n multipleLines.setToolTipText(\"Applies only to \\\"Auto Select\\\"; allows multiple lines to be selected together.\");\n panel3.add(multipleLines, new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n scrolling = new JCheckBox();\n scrolling.setText(\"Scrolling\");\n scrolling.setToolTipText(\"Allow the field to scroll vertically if text exceeds visual bounds.\");\n panel3.add(scrolling, new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n dontSearch = new JCheckBox();\n dontSearch.setText(\"Don't Search\");\n panel3.add(dontSearch, new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n editScriptButton = new JButton();\n editScriptButton.setText(\"Edit Script...\");\n fieldEditor.add(editScriptButton, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n textStyleButton = new JButton();\n textStyleButton.setEnabled(true);\n textStyleButton.setText(\"Text Style...\");\n fieldEditor.add(textStyleButton, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setText(\"OK\");\n fieldEditor.add(saveButton, new GridConstraints(4, 8, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer2 = new Spacer();\n fieldEditor.add(spacer2, new GridConstraints(4, 7, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final Spacer spacer3 = new Spacer();\n fieldEditor.add(spacer3, new GridConstraints(4, 1, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new GridLayoutManager(2, 4, new Insets(5, 5, 5, 5), -1, -1));\n fieldEditor.add(panel4, new GridConstraints(1, 6, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel4.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Location\"));\n final JLabel label4 = new JLabel();\n label4.setText(\"Height:\");\n panel4.add(label4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Width:\");\n panel4.add(label5, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fieldHeight = new JSpinner();\n panel4.add(fieldHeight, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(75, -1), new Dimension(75, -1), 0, false));\n fieldWidth = new JSpinner();\n panel4.add(fieldWidth, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(75, -1), new Dimension(75, -1), 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Top:\");\n panel4.add(label6, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label7 = new JLabel();\n label7.setText(\"Left:\");\n panel4.add(label7, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fieldTop = new JSpinner();\n panel4.add(fieldTop, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(75, -1), new Dimension(75, -1), 0, false));\n fieldLeft = new JSpinner();\n panel4.add(fieldLeft, new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(75, -1), new Dimension(75, -1), 0, false));\n previewPanel = new JPanel();\n previewPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n fieldEditor.add(previewPanel, new GridConstraints(2, 6, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n previewPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Preview\"));\n previewImage = new JLabel();\n previewImage.setText(\"\");\n previewPanel.add(previewImage);\n }", "title": "" }, { "docid": "b738a2646ba11e120d4c4b79f055aa9a", "score": "0.55846965", "text": "private VerticalLayout buildTabSheetLayout() {\n VerticalLayout layout = new VerticalLayout();\n layout.setImmediate(false);\n layout.setSizeFull();\n layout.setMargin(true);\n tabSheetMain = new TabSheet();\n tabSheetMain.setSizeFull();\n layout.addComponent(tabSheetMain);\n return layout;\n }", "title": "" }, { "docid": "9dad3a63d993c193b7d53819b8f3530c", "score": "0.5580234", "text": "protected RegistrationLayoutsContainer createLayouts()\n\t{\n\t\tVerticalLayout main = new VerticalLayout();\n\t\tmain.setSpacing(true);\n\t\tmain.setMargin(false);\n\t\tmain.setWidth(100, Unit.PERCENTAGE);\n\t\tsetCompositionRoot(main);\n\t\t\n\t\taddLogo(main);\n\t\t\n\t\tLabel formName = new Label(form.getDisplayedName().getValue(msg));\n\t\tformName.addStyleName(Styles.vLabelH1.toString());\n\t\tformName.addStyleName(\"u-reg-title\");\n\t\tmain.addComponent(formName);\n\t\tmain.setComponentAlignment(formName, Alignment.MIDDLE_CENTER);\n\t\t\n\t\tString info = form.getFormInformation() == null ? null : form.getFormInformation().getValue(msg);\n\t\tif (info != null)\n\t\t{\n\t\t\tHtmlConfigurableLabel formInformation = new HtmlConfigurableLabel(info);\n\t\t\tformInformation.addStyleName(\"u-reg-info\");\n\t\t\tmain.addComponent(formInformation);\n\t\t\tmain.setComponentAlignment(formInformation, Alignment.MIDDLE_CENTER);\n\t\t}\n\t\t\n\t\tRegistrationLayoutsContainer container = new RegistrationLayoutsContainer(formWidth(), formWidthUnit());\n\t\tcontainer.addFormLayoutToRootLayout(main);\n\t\treturn container;\n\t}", "title": "" }, { "docid": "2d4ab18530c30ee173d49d0df43ab1ba", "score": "0.55786395", "text": "@AutoGenerated\r\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\r\n\t\tmainLayout.setSpacing(true);\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"100.0%\");\r\n\r\n\t\t// entityTable\r\n\t\tentityTable = new Table();\r\n\t\tentityTable.setImmediate(false);\r\n\t\tentityTable.setWidth(\"100%\");\r\n\t\tentityTable.setHeight(\"-1px\");\r\n\t\tentityTable.setSelectable(false);\r\n\t\tentityTable.setMultiSelect(false);\r\n\r\n\t\ttittleLabel = new Label();\r\n\t\tlayoutHeader = new HorizontalLayout();\r\n\t\tlayoutHeader.addComponent(tittleLabel);\r\n\t\tlayoutHeader.setComponentAlignment(tittleLabel, Alignment.MIDDLE_LEFT);\r\n\t\t//layoutHeader.setSpacing(true);\r\n\t\tlayoutHeader.setWidth(\"100%\");\r\n\t\tmainLayout.addComponent(layoutHeader);\r\n\t\tmainLayout.addComponent(entityTable);\r\n\r\n\t\tvl = new VerticalLayout();\r\n\t\trowActionLayout = new HorizontalLayout();\r\n\t\treturn mainLayout;\r\n\t}", "title": "" }, { "docid": "fc3b955a5b80196317c81a8f465c4ba2", "score": "0.5577215", "text": "private void createPnl(){\n setPnl(clipPnl);\n setImage();\n addClippyTxt();\n setSpeechImg();\n addBtn();\n addField();\n clipPnl.setBackground(getBgColor());\n }", "title": "" }, { "docid": "a2e8b02398a25cdaa33f92f07ebd9cb6", "score": "0.55705076", "text": "protected void addViews(IPageLayout layout) {\n\n\t\tString editorArea = layout.getEditorArea();\n\n\t\t// Everything is based off the editor area\n\n\t\t// Top left: Resource Navigator view and PHP Explorer\n\t\tIFolderLayout topLeft = layout.createFolder(TOP_LEFT_LOCATION,\n\t\t\t\tIPageLayout.LEFT, 0.22f, editorArea);\n\t\ttopLeft.addView(ID_EXPLORER);\n\t\t// topLeft.addView(ID_TYPEHIERARCHY);\n\n\t\t// Bottom: Attributes view, Problem View, Task List, placeholder for\n\t\t// Design View Log\n\t\tIFolderLayout bottom = layout.createFolder(BOTTOM_LOCATION,\n\t\t\t\tIPageLayout.BOTTOM, 0.75f, editorArea);\n\t\tbottom.addView(IPageLayout.ID_PROBLEM_VIEW);\n\t\t// bottom.addView(IPageLayout.ID_TASK_LIST);\n\t\tbottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);\n\t\tbottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);\n\n\t\tIFolderLayout outlineFolder = layout.createFolder(TOP_RIGHT_LOCATION,\n\t\t\t\tIPageLayout.RIGHT, (float) 0.75, editorArea); \n\t\toutlineFolder.addView(IPageLayout.ID_OUTLINE);\n\t\toutlineFolder.addPlaceholder(ID_PROJECT_OUTLINE);\n\t\toutlineFolder.addPlaceholder(ID_MVC);\n\t\toutlineFolder.addPlaceholder(ID_FUNCTIONS);\n\t}", "title": "" }, { "docid": "9f78a8da4b05ab8b4c134a62c8728816", "score": "0.55555695", "text": "public void CreateVisualStack()\n\t{\n\t\tindex = 0;\n\t\t//create top node\n\t\tnodes[9] = new GUIstackNode(this, \"top\");\n\t\tstackExists = true;\n\t}", "title": "" }, { "docid": "0c1371dd996f0c23df74bbc85e7eb45d", "score": "0.5536916", "text": "public void LayoutUI() {\n for (int i = 1; i <= 7; i++) {\n ShowItem(i);\n }\n }", "title": "" }, { "docid": "a5625c2923d7d7845fbdb9499ad42f59", "score": "0.55356324", "text": "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// Benutzer_Label\n\t\tBenutzer_Label = new Label();\n\t\tBenutzer_Label.setImmediate(false);\n\t\tBenutzer_Label.setWidth(\"-1px\");\n\t\tBenutzer_Label.setHeight(\"30px\");\n\t\tBenutzer_Label.setValue(\"Benutzer\");\n\t\tmainLayout.addComponent(Benutzer_Label);\n\t\t\n\t\t// panel_2\n\t\tpanel_2 = buildPanel_2();\n\t\tmainLayout.addComponent(panel_2);\n\t\t\n\t\treturn mainLayout;\n\t}", "title": "" }, { "docid": "f0451746099b530bf2b4094caeed818b", "score": "0.55345595", "text": "private void createLayout(final List<LayoutGroup> list) {\n \t\t// add the groups\n \t\tfor (final LayoutGroup layoutGroup : list) {\n \t\t\tdetailsView.addGroup(layoutGroup);\n \t\t}\n \n \t\t// save references to the DetailsCells and the Portals\n \t\tdetailsCells = detailsView.getCells();\n \t\tportals = detailsView.getPortals();\n \n \t\t// Setup click handlers for the navigation buttons\n \t\tfor (final DetailsCell detailsCell : detailsCells) {\n \t\t\tfinal LayoutItemField layoutItemField = detailsCell.getLayoutItemField();\n \t\t\tif (layoutItemField == null) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tif (layoutItemField.getAddNavigation()) {\n \t\t\t\tdetailsCell.setOpenButtonClickHandler(new ClickHandler() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic void onClick(final ClickEvent event) {\n \t\t\t\t\t\tfinal TypedDataItem primaryKeyItem = Utils.getTypedDataItem(layoutItemField.getGlomType(),\n \t\t\t\t\t\t\t\tdetailsCell.getData());\n \t\t\t\t\t\tprocessNavigation(layoutItemField.getNavigationTableName(), primaryKeyItem);\n \n \t\t\t\t\t}\n \t\t\t\t});\n \t\t\t}\n \t\t}\n \n \t}", "title": "" }, { "docid": "08904989cde817770cec553d152506a9", "score": "0.5528624", "text": "protected void layoutContainer(IInventory playerInventory, IInventory chestInventory)\n/* 37: */ {\n/* 38: 38 */ layoutPlayerInventory(playerInventory);\n/* 39: 39 */ layoutInventory(chestInventory);\n/* 40: */ }", "title": "" }, { "docid": "760fe40a1029681c9279608eb8545329", "score": "0.55275536", "text": "protected void createContents() {\r\n\t\tsetText(\"Neuen Bereich aus Musterprojekt importieren\");\r\n\t\tsetSize(576, 391);\r\n\r\n\t}", "title": "" }, { "docid": "1e94f370c4d10a010c844963f140883b", "score": "0.5523446", "text": "protected void createContents() {\n\t\tshlHostel = new Shell();\n\t\tshlHostel.setBackground(SWTResourceManager.getColor(255, 182, 193));\n\t\tshlHostel.setSize(450, 300);\n\t\tshlHostel.setText(\"Hostel\");\n\t\t\n\t\tLabel lblNewLabel = new Label(shlHostel, SWT.NONE);\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(255, 218, 185));\n\t\tlblNewLabel.setBounds(10, 10, 414, 159);\n\t\tlblNewLabel.setText(\"About the hostel\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shlHostel, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(10, 179, 127, 72);\n\t\tlblNewLabel_1.setText(\"pics\");\n\t\t\n\t\tLabel lblPics = new Label(shlHostel, SWT.NONE);\n\t\tlblPics.setBounds(143, 179, 140, 72);\n\t\tlblPics.setText(\"pics\");\n\t\t\n\t\tLabel lblPics_1 = new Label(shlHostel, SWT.NONE);\n\t\tlblPics_1.setBounds(289, 179, 121, 71);\n\t\tlblPics_1.setText(\"pics\");\n\n\t}", "title": "" }, { "docid": "1ef62a24049d13597f6ee2705235d0d7", "score": "0.55184966", "text": "public void setUpLayout(){\n myLinearLayout = (LinearLayout)rootView.findViewById(R.id.container_pastupcoming);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n myLinearLayout.removeAllViews();\n\n // Add LayoutParams\n paramsJarakAntarEvent = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n paramsJarakAntarEvent.setMargins(0, 15, 20, 0);\n\n paramsJarakAntarIsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n paramsJarakAntarIsi.setMargins(5, 0, 0, 0);\n\n paramsJarakIsiDenganButton = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n paramsJarakIsiDenganButton.setMargins(5, 5, 0, 15);\n\n rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Buat linear layout vertical untuk menampung kata-kata\n colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 10, 10, 0);\n\n subRowLayout = new LinearLayout(getActivity());\n subRowLayout.setOrientation(LinearLayout.HORIZONTAL);\n }", "title": "" }, { "docid": "fb88a12e2100d0bb141dd8df11038314", "score": "0.55144984", "text": "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(6, 2, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n panel1.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n buttonOK = new JButton();\n buttonOK.setText(\"OK\");\n panel2.add(buttonOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel2.add(buttonCancel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JPanel panel4 = new JPanel();\n panel4.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(panel4, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n databasesLbl = new JLabel();\n databasesLbl.setText(\"databases:\");\n panel4.add(databasesLbl, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel4.add(scrollPane1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n databaseList = new JList();\n databaseList.setSelectionMode(0);\n scrollPane1.setViewportView(databaseList);\n final JPanel panel5 = new JPanel();\n panel5.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(panel5, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n filedsLbl = new JLabel();\n filedsLbl.setText(\"fields:\");\n panel5.add(filedsLbl, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane2 = new JScrollPane();\n panel5.add(scrollPane2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n fieldList = new JList();\n fieldList.setSelectionMode(0);\n scrollPane2.setViewportView(fieldList);\n final JPanel panel6 = new JPanel();\n panel6.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(panel6, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n tablesLbl = new JLabel();\n tablesLbl.setText(\"tables:\");\n panel6.add(tablesLbl, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane3 = new JScrollPane();\n panel6.add(scrollPane3, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n tableList = new JList();\n tableList.setSelectionMode(0);\n scrollPane3.setViewportView(tableList);\n final JSeparator separator1 = new JSeparator();\n contentPane.add(separator1, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n selectedLbl = new JLabel();\n selectedLbl.setText(\"ignored list:\");\n contentPane.add(selectedLbl, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n ignoreBtn = new JButton();\n ignoreBtn.setText(\"ignore it\");\n contentPane.add(ignoreBtn, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane4 = new JScrollPane();\n contentPane.add(scrollPane4, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n selectedList = new JList();\n final DefaultListModel defaultListModel1 = new DefaultListModel();\n selectedList.setModel(defaultListModel1);\n selectedList.setSelectionMode(0);\n scrollPane4.setViewportView(selectedList);\n deleteFilter = new JButton();\n deleteFilter.setText(\"delete filter\");\n contentPane.add(deleteFilter, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n }", "title": "" }, { "docid": "717519cecfdc246559fb9de6eb51f979", "score": "0.5512685", "text": "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(3, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n panel1.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1, true, false));\n panel1.add(panel2, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n bOK = new JButton();\n bOK.setText(\"OK\");\n panel2.add(bOK, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n bCancel = new JButton();\n bCancel.setText(\"Cancel\");\n panel2.add(bCancel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(10, 2, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(223, 313), null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Name\");\n panel3.add(label1, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label2 = new JLabel();\n label2.setText(\"Align X\");\n panel3.add(label2, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"Align Y\");\n panel3.add(label3, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label4 = new JLabel();\n label4.setText(\"Width\");\n panel3.add(label4, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label5 = new JLabel();\n label5.setText(\"Height\");\n panel3.add(label5, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label6 = new JLabel();\n label6.setText(\"Angle\");\n panel3.add(label6, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label7 = new JLabel();\n label7.setText(\"Depth\");\n panel3.add(label7, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label8 = new JLabel();\n label8.setText(\"Image File\");\n panel3.add(label8, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label9 = new JLabel();\n label9.setText(\"Parameters\");\n panel3.add(label9, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n fName = new JTextField();\n panel3.add(fName, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fAlignX = new JTextField();\n panel3.add(fAlignX, new com.intellij.uiDesigner.core.GridConstraints(1, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fAlignY = new JTextField();\n panel3.add(fAlignY, new com.intellij.uiDesigner.core.GridConstraints(2, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fWidth = new JTextField();\n panel3.add(fWidth, new com.intellij.uiDesigner.core.GridConstraints(3, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fHeight = new JTextField();\n panel3.add(fHeight, new com.intellij.uiDesigner.core.GridConstraints(4, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fAngle = new JTextField();\n panel3.add(fAngle, new com.intellij.uiDesigner.core.GridConstraints(5, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fDepth = new JTextField();\n panel3.add(fDepth, new com.intellij.uiDesigner.core.GridConstraints(6, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fImageFile = new JTextField();\n panel3.add(fImageFile, new com.intellij.uiDesigner.core.GridConstraints(7, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fParameters = new JTextField();\n panel3.add(fParameters, new com.intellij.uiDesigner.core.GridConstraints(8, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n fLog = new JTextField();\n fLog.setEditable(false);\n fLog.setEnabled(true);\n panel3.add(fLog, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 2, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\n final JLabel label10 = new JLabel();\n Font label10Font = this.$$$getFont$$$(null, -1, 22, label10.getFont());\n if (label10Font != null) label10.setFont(label10Font);\n label10.setText(\"New Object\");\n contentPane.add(label10, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "title": "" }, { "docid": "7b17181d45f34e24841e440b6aacc60b", "score": "0.55118316", "text": "private void setupLayout() {\r\n\t\tsetLayout(layout);\r\n\r\n\t\tadd(btnPausePlay);\r\n\t\tadd(btnStop);\r\n\t\tadd(btnReset);\r\n\r\n\t\tsetBorder(BorderFactory.createCompoundBorder(new EtchedBorder(), new EmptyBorder(10, 10, 10, 10)));\r\n\t}", "title": "" }, { "docid": "e81ef5047b08fbdffb6a13f9958b8b89", "score": "0.55076116", "text": "private void createMain() {\r\n\t\tfinal Group g = new Group(this, SWT.NONE);\r\n\t\tfinal GridLayout gl = new GridLayout(2, false);\r\n //gl.horizontalSpacing = HORIZONTAL_SPACING;\r\n\t\tg.setText(Messages.HEComposite_Scheme);\r\n g.setLayout(gl);\r\n g.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, true, true));\r\n this.createButtonArea(g);\r\n this.createAlgoArea(g);\r\n\t}", "title": "" }, { "docid": "a1947b1ff8b5d1799e5f53761222b5d1", "score": "0.5502906", "text": "@Override\n public void setLayout(Layout layout) {\n }", "title": "" }, { "docid": "65812c01bdd69b76611333767aa447f9", "score": "0.55027074", "text": "@Override\n\tprotected void createUI() {\n\t}", "title": "" }, { "docid": "9f9877aed1b01640cdf747479716cc48", "score": "0.54977953", "text": "public void defineLayout(IPageLayout layout) {\n \t\tString editorArea = layout.getEditorArea();\n \n \t\t// Top left.\n \t\tIFolderLayout topLeft = layout.createFolder(\"topLeft\", IPageLayout.LEFT, 0.25f, editorArea);//$NON-NLS-1$\n \t\ttopLeft.addView(ID_J2EE_HIERARCHY_VIEW);\n \t\ttopLeft.addPlaceholder(IPageLayout.ID_RES_NAV);\n \t\ttopLeft.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);\n \t\ttopLeft.addPlaceholder(JavaUI.ID_PACKAGES_VIEW);\n \n \t\t// Bottom right.\n \t\tIFolderLayout bottomRight = layout.createFolder(\"bottomRight\", IPageLayout.BOTTOM, 0.7f, editorArea);//$NON-NLS-1$\n \t\tbottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);\n \t\tbottomRight.addView(IPageLayout.ID_TASK_LIST);\n \t\tbottomRight.addView(IPageLayout.ID_PROP_SHEET);\n \t\tbottomRight.addView(ID_SERVERS_VIEW);\n \t\taddDBViewIfPresent(layout,bottomRight);\n \t\tbottomRight.addView(ID_WST_SNIPPETS_VIEW);\n \t\t\n \t\tbottomRight.addPlaceholder(ID_CONSOLE_VIEW);\n \t\tbottomRight.addPlaceholder(IPageLayout.ID_BOOKMARKS);\n \t\tbottomRight.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);\n \t\tbottomRight.addPlaceholder(ID_SEARCH_VIEW);\n \n \t\t// Top right.\n \t\tIFolderLayout topRight = layout.createFolder(\"topRight\", IPageLayout.RIGHT, 0.7f, editorArea);//$NON-NLS-1$\n \t\ttopRight.addView(IPageLayout.ID_OUTLINE);\n \t}", "title": "" }, { "docid": "c1e1e362a7a94adaf825b9d984494a4f", "score": "0.5489619", "text": "private void defineLayouts() {\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t\tpainelTBJogador.setLayout(new GridLayout(10, 10));\n\t\tpainelTBNPC.setLayout(new GridLayout(10, 10));\n\t\tpainelBotoes.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t}", "title": "" }, { "docid": "943f14719f14a4c114254b5b54b08109", "score": "0.5487851", "text": "private void layoutComponents() {\n labels = new FruitMachineLabels(modelObject);\n cards = new FruitMachineCards();\n buttons = new FruitMachineButtons(controllerObject);\n\n// Adds the above JPanels (and an empty one) to the JFrame\n this.add(labels);\n this.add(new JPanel());\n this.add(cards);\n this.add(buttons);\n }", "title": "" }, { "docid": "633943352ef4099758c3461566b30fa3", "score": "0.5483885", "text": "private void makeGUI()\n\t{\n\t\t//set the applt to use flow layout\n\t\tsetLayout(new FlowLayout());\n\t\t\n\t\t//make two buttons\n\t\tjAlpha = new JButton(\"Alpha\");\n\t\tjBeta = new JButton(\"Beta\");\n\t\t\n\t\t//Add action listener for Alpha\n\t\tjAlpha.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"Alpha was processed\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Add action for beta\n\t\tjBeta.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"Beta was processed\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Add the button to content pane\n\t\tadd(jAlpha);\n\t\tadd(jBeta);\n\t\t\n\t\t// create a text based lebel\n\t\tlabel = new JLabel(\"Press a Button\");\n\t\t\n\t\t//Add the level to content pane\n\t\tadd(label);\n\t}", "title": "" }, { "docid": "e84aa56174c8e119eb504082d9607d6b", "score": "0.54833215", "text": "@AutoGenerated\r\n\tprivate void buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"100.0%\");\r\n\r\n\t\tglGeral = bglGeral();\r\n\t\tmainLayout.addComponent(glGeral);\r\n\r\n\t\ttsGeral = new TabSheet();\r\n\t\ttsGeral.setImmediate(true);\r\n\t\ttsGeral.setSizeFull();\r\n\r\n\t\ttsGeral.addTab(bvlGeralPessoaFisica(), 0);\r\n\t\ttsGeral.addTab(bvlGeralPessoaJuridica(), 1);\r\n\t\ttsGeral.addTab(bvlPessoaContato(), 2);\r\n\t\ttsGeral.addTab(bvlPessoaEndereco(), 3);\r\n\t\ttsGeral.addTab(bvlCliente(), 4);\r\n\t\t// tsGeral.addSelectedTabChangeListener(event ->\r\n\t\t// controller.stceSelectTab(\r\n\t\t// event, tsGeral.getTabPosition(tsGeral.getTab(tsGeral\r\n\t\t// .getSelectedTab()))));\r\n\r\n\t\tmainLayout.addComponent(tsGeral);\r\n\t\tmainLayout.setExpandRatio(tsGeral, 1);\r\n\t}", "title": "" }, { "docid": "5343f70ce42453820dd59a798c8ca073", "score": "0.54733807", "text": "public void addLayout(int statenum, Terminal layout, Terminal token);", "title": "" }, { "docid": "05a40052c479087a713cb11e51497e65", "score": "0.54708123", "text": "public int onCreateViewLayout() {\n return R.layout.gb_fragment_experience_settings;\n }", "title": "" }, { "docid": "0edb54d4011af46a20e466968a8cb214", "score": "0.54642785", "text": "Visualizer createVisualizer();", "title": "" }, { "docid": "5a340483a53de559c373782ec51ee590", "score": "0.5462731", "text": "public void layoutPlayerInventory(IInventory playerInventory)\n/* 43: */ {\n/* 44: 44 */ int leftCol = 8;\n/* 45: 45 */ int yPos = getPlayerInventoryY();\n/* 46: 47 */ for (int row = 0; row < 3; row++) {\n/* 47: 49 */ for (int col = 0; col < 9; col++) {\n/* 48: 51 */ addSlotToContainer(new Slot(playerInventory, col + row * 9 + 9, leftCol + col * 18, 0 + row * 18 + yPos));\n/* 49: */ }\n/* 50: */ }\n/* 51: 55 */ for (int hotbarSlot = 0; hotbarSlot < 9; hotbarSlot++) {\n/* 52: 57 */ addSlotToContainer(new Slot(playerInventory, hotbarSlot, leftCol + hotbarSlot * 18, 58 + yPos));\n/* 53: */ }\n/* 54: */ }", "title": "" }, { "docid": "024f112fd714c933cb4ba72ce7f79341", "score": "0.5462577", "text": "private VerticalLayout initVerticalLayoutLeft(){\n VerticalLayout left = new VerticalLayout();\n\n HorizontalLayout name = new HorizontalLayout();\n HorizontalLayout emailPhone = new HorizontalLayout();\n HorizontalLayout centerRoom = new HorizontalLayout();\n HorizontalLayout addressIban = new HorizontalLayout();\n\n TextField firstname = new TextField();\n firstname.setValue(userEntity.getFirstName());\n firstname.setLabel(\"Vorname\");\n firstname.setReadOnly(true);\n\n TextField surname = new TextField();\n surname.setValue(userEntity.getSurname());\n surname.setLabel(\"Nachname\");\n surname.setReadOnly(true);\n\n TextField email = new TextField();\n email.setValue(userEntity.getEmail());\n email.setLabel(\"E-Mail\");\n email.setReadOnly(true);\n\n TextField telephone = new TextField();\n telephone.setValue(userEntity.getTelephoneNumber());\n telephone.setLabel(\"Telefonnummer\");\n telephone.setReadOnly(true);\n\n TextField center = new TextField();\n center.setValue(userEntity.getCenter());\n center.setLabel(\"Center\");\n center.setReadOnly(true);\n\n TextField roomnumber = new TextField();\n roomnumber.setValue(userEntity.getRoomNumber());\n roomnumber.setLabel(\"Raumnummer\");\n roomnumber.setReadOnly(true);\n\n TextArea address = new TextArea();\n address.setValue(addressEntity.getStreetName()+\" \"+ addressEntity.getStreetNumber()+\"\\n\"+\n addressEntity.getPostcode()+\" \"+ addressEntity.getCity());\n address.setLabel(\"Adresse\");\n address.setReadOnly(true);\n\n TextField iban = new TextField();\n iban.setWidth(\"250px\");\n iban.setValue(userEntity.getIban());\n iban.setLabel(\"Kontodaten\");\n iban.setReadOnly(true);\n\n\n name.addComponentAsFirst(firstname);\n name.addComponentAtIndex(1, surname);\n left.addComponentAsFirst(name);\n\n emailPhone.addComponentAsFirst(email);\n emailPhone.addComponentAtIndex(1, telephone);\n left.addComponentAtIndex(1, emailPhone);\n\n centerRoom.addComponentAsFirst(center);\n centerRoom.addComponentAtIndex(1, roomnumber);\n left.addComponentAtIndex(2, centerRoom);\n\n addressIban.addComponentAsFirst(address);\n addressIban.addComponentAtIndex(1, iban);\n left.addComponentAtIndex(3, addressIban);\n\n return left;\n }", "title": "" }, { "docid": "e3e93ad415d02e2406962bd5552cfea2", "score": "0.546198", "text": "private void createGUI() {\n this.setPreferredSize(new Dimension(width, height));\n this.setMinimumSize(new Dimension(700, 550));\n this.setVisible(true);\n this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n //add keylistener to frame\n this.requestFocus();\n this.addKeyListener(this);\n\n JPanel container = new JPanel();\n BoxLayout bl = new BoxLayout(container, BoxLayout.Y_AXIS);\n container.setLayout(bl);\n container.setPreferredSize(new Dimension(width, height));\n\n if (showPanels) {\n container.setBackground(Color.gray);\n }\n\n container.add(createTop());\n container.add(createMain());\n\n this.getContentPane().add(container);\n this.pack();\n\n }", "title": "" }, { "docid": "316d610157320a262b7595eeecddd59b", "score": "0.5461485", "text": "private void createPanel()\n\t{\n\t\treportPanel = new JPanel();\n\t\treportPanel.setLayout(new GridLayout(reportNameLabels.length, 2, 10, 10));\n\t}", "title": "" }, { "docid": "e7f9e690059afdaf607b6b6b2cc4abc9", "score": "0.5460674", "text": "protected void createContents() {\n\t\tsetText(\"Hoạt động người dùng\");\n\t\tsetSize(670, 415);\n\t\tnew FormTemplate().setCenterScreen(getShell());\n\t}", "title": "" }, { "docid": "6f2a537850932469c5b1a9c45abeb26e", "score": "0.54587734", "text": "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// pnlWorkflow\n\t\tpnlWorkflow = buildPnlWorkflow();\n\t\tmainLayout.addComponent(pnlWorkflow);\n\t\tmainLayout.setExpandRatio(pnlWorkflow, 0.3f);\n\t\t\n\t\t// txtTitle\n\t\ttxtTitle = new TextField();\n\t\ttxtTitle.setCaption(\"Title\");\n\t\ttxtTitle.setImmediate(true);\n\t\ttxtTitle.setWidth(\"50.0%\");\n\t\ttxtTitle.setHeight(\"-1px\");\n\t\ttxtTitle.setSecret(false);\n\t\tmainLayout.addComponent(txtTitle);\n\t\tmainLayout.setExpandRatio(txtTitle, 0.1f);\n\t\t\n\t\t// txtaDescription\n\t\ttxtaDescription = new TextArea();\n\t\ttxtaDescription.setCaption(\"Description (Plaintext)\");\n\t\ttxtaDescription.setImmediate(false);\n\t\ttxtaDescription.setWidth(\"100.0%\");\n\t\ttxtaDescription.setHeight(\"100.0%\");\n\t\tmainLayout.addComponent(txtaDescription);\n\t\tmainLayout.setExpandRatio(txtaDescription, 0.4f);\n\t\t\n\t\t// vlParser\n\t\tvlParser = buildVlParser();\n\t\tmainLayout.addComponent(vlParser);\n\t\tmainLayout.setExpandRatio(vlParser, 0.2f);\n\t\t\n\t\treturn mainLayout;\n\t}", "title": "" }, { "docid": "119d5cfb6a71ae79ac69479f020b955c", "score": "0.54517823", "text": "private void createMainLayout(JComponent... arg){\n JPanel panel = new JPanel();\n GridLayout gl = new GridLayout(1, 1);\n panel.setLayout(gl);\n panel.add(arg[0]);\n this.getContentPane().add(panel);\n }", "title": "" }, { "docid": "0f66cdf77487260b112d968e9fbd806b", "score": "0.5434833", "text": "@AutoGenerated\n\tprivate VerticalLayout buildVerticalLayout_4() {\n\t\tverticalLayout_4 = new VerticalLayout();\n\t\tverticalLayout_4.setImmediate(false);\n\t\tverticalLayout_4.setWidth(\"100.0%\");\n\t\tverticalLayout_4.setHeight(\"100.0%\");\n\t\tverticalLayout_4.setMargin(false);\n\t\t\n\t\t// AccountName_textField\n\t\tAccountName_textField = new TextField();\n\t\tAccountName_textField.setCaption(\"Accountname\");\n\t\tAccountName_textField.setImmediate(false);\n\t\tAccountName_textField.setWidth(\"-1px\");\n\t\tAccountName_textField.setHeight(\"24px\");\n\t\tverticalLayout_4.addComponent(AccountName_textField);\n\t\tverticalLayout_4.setComponentAlignment(AccountName_textField,\n\t\t\t\tnew Alignment(48));\n\t\t\n\t\t// Vorname_textField\n\t\tVorname_textField = new TextField();\n\t\tVorname_textField.setCaption(\"Vorname\");\n\t\tVorname_textField.setImmediate(false);\n\t\tVorname_textField.setWidth(\"-1px\");\n\t\tVorname_textField.setHeight(\"-1px\");\n\t\tverticalLayout_4.addComponent(Vorname_textField);\n\t\tverticalLayout_4.setComponentAlignment(Vorname_textField,\n\t\t\t\tnew Alignment(48));\n\t\t\n\t\t// Nachname_textField\n\t\tNachname_textField = new TextField();\n\t\tNachname_textField.setCaption(\"Nachname\");\n\t\tNachname_textField.setImmediate(false);\n\t\tNachname_textField.setWidth(\"-1px\");\n\t\tNachname_textField.setHeight(\"-1px\");\n\t\tverticalLayout_4.addComponent(Nachname_textField);\n\t\tverticalLayout_4.setComponentAlignment(Nachname_textField,\n\t\t\t\tnew Alignment(48));\n\t\t\n\t\t// eMail_textField\n\t\teMail_textField = new TextField();\n\t\teMail_textField.setCaption(\"eMail-Adresse\");\n\t\teMail_textField.setImmediate(false);\n\t\teMail_textField.setWidth(\"-1px\");\n\t\teMail_textField.setHeight(\"-1px\");\n\t\tverticalLayout_4.addComponent(eMail_textField);\n\t\tverticalLayout_4.setComponentAlignment(eMail_textField, new Alignment(\n\t\t\t\t48));\n\t\t\n\t\t// Benutzertyp_textField\n\t\tBenutzertyp_textField = new TextField();\n\t\tBenutzertyp_textField.setCaption(\"Benutzertyp\");\n\t\tBenutzertyp_textField.setImmediate(false);\n\t\tBenutzertyp_textField.setWidth(\"-1px\");\n\t\tBenutzertyp_textField.setHeight(\"-1px\");\n\t\tverticalLayout_4.addComponent(Benutzertyp_textField);\n\t\tverticalLayout_4.setComponentAlignment(Benutzertyp_textField,\n\t\t\t\tnew Alignment(48));\n\t\t\n\t\t// gridLayout_2\n\t\tgridLayout_2 = buildGridLayout_2();\n\t\tverticalLayout_4.addComponent(gridLayout_2);\n\t\tverticalLayout_4.setComponentAlignment(gridLayout_2, new Alignment(24));\n\t\t\n\t\treturn verticalLayout_4;\n\t}", "title": "" }, { "docid": "27324666359e744f75b02545c6ca86d2", "score": "0.54333586", "text": "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(2, 2, new Insets(10, 10, 10, 10), -1, -1));\n mainPanel.setBackground(new Color(-1));\n mainPanel.setEnabled(true);\n dataPanel = new DataPanel();\n mainPanel.add(dataPanel.$$$getRootComponent$$$(), new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n graphPanel = new AdditionalPanel();\n mainPanel.add(graphPanel.$$$getRootComponent$$$(), new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n rightPanel = new JPanel();\n rightPanel.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(15, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(rightPanel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 2, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n startTestButton = new JButton();\n startTestButton.setBackground(new Color(-13391104));\n startTestButton.setEnabled(false);\n startTestButton.setForeground(new Color(-16777216));\n startTestButton.setText(\"Начать испытание\");\n rightPanel.add(startTestButton, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n stopTestButton = new JButton();\n stopTestButton.setBackground(new Color(-5167828));\n stopTestButton.setEnabled(false);\n stopTestButton.setForeground(new Color(-16777216));\n stopTestButton.setText(\"Завершить испытание\");\n rightPanel.add(stopTestButton, new com.intellij.uiDesigner.core.GridConstraints(2, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer1 = new com.intellij.uiDesigner.core.Spacer();\n rightPanel.add(spacer1, new com.intellij.uiDesigner.core.GridConstraints(1, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, new Dimension(-1, 10), new Dimension(-1, 10), new Dimension(-1, 10), 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer2 = new com.intellij.uiDesigner.core.Spacer();\n rightPanel.add(spacer2, new com.intellij.uiDesigner.core.GridConstraints(3, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n statusLabel = new JLabel();\n statusLabel.setText(\"\");\n rightPanel.add(statusLabel, new com.intellij.uiDesigner.core.GridConstraints(6, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Измереное значение\");\n rightPanel.add(label1, new com.intellij.uiDesigner.core.GridConstraints(13, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer3 = new com.intellij.uiDesigner.core.Spacer();\n rightPanel.add(spacer3, new com.intellij.uiDesigner.core.GridConstraints(12, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new com.intellij.uiDesigner.core.GridLayoutManager(1, 3, new Insets(0, 5, 0, 5), -1, -1, true, false));\n rightPanel.add(panel1, new com.intellij.uiDesigner.core.GridConstraints(14, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_BOTH, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));\n final JLabel label2 = new JLabel();\n label2.setText(\"Проводимость\");\n panel1.add(label2, new com.intellij.uiDesigner.core.GridConstraints(0, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n firstChanel = new JLabel();\n firstChanel.setText(\"\");\n panel1.add(firstChanel, new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label3 = new JLabel();\n label3.setText(\"о.е.\");\n panel1.add(label3, new com.intellij.uiDesigner.core.GridConstraints(0, 2, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_EAST, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n connectToCOMButton = new JButton();\n connectToCOMButton.setText(\"Подключиться\");\n rightPanel.add(connectToCOMButton, new com.intellij.uiDesigner.core.GridConstraints(8, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n disconnectToCOMButton = new JButton();\n disconnectToCOMButton.setEnabled(true);\n disconnectToCOMButton.setText(\"Отключиться\");\n disconnectToCOMButton.setVisible(false);\n rightPanel.add(disconnectToCOMButton, new com.intellij.uiDesigner.core.GridConstraints(9, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer4 = new com.intellij.uiDesigner.core.Spacer();\n rightPanel.add(spacer4, new com.intellij.uiDesigner.core.GridConstraints(7, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n COMStatus = new JLabel();\n COMStatus.setText(\"COM: отключено\");\n rightPanel.add(COMStatus, new com.intellij.uiDesigner.core.GridConstraints(11, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_NONE, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer5 = new com.intellij.uiDesigner.core.Spacer();\n rightPanel.add(spacer5, new com.intellij.uiDesigner.core.GridConstraints(10, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n deleteLastBar = new JButton();\n deleteLastBar.setBackground(new Color(-34795));\n deleteLastBar.setEnabled(false);\n deleteLastBar.setText(\"Удалить последнее значение\");\n rightPanel.add(deleteLastBar, new com.intellij.uiDesigner.core.GridConstraints(4, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_SHRINK | com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_CAN_GROW, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final com.intellij.uiDesigner.core.Spacer spacer6 = new com.intellij.uiDesigner.core.Spacer();\n rightPanel.add(spacer6, new com.intellij.uiDesigner.core.GridConstraints(5, 0, 1, 1, com.intellij.uiDesigner.core.GridConstraints.ANCHOR_CENTER, com.intellij.uiDesigner.core.GridConstraints.FILL_VERTICAL, 1, com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n }", "title": "" }, { "docid": "eb566fce3f68c85ea01f7e1142a98b63", "score": "0.54327625", "text": "@AutoGenerated\r\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"600px\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"600px\");\r\n\t\tsetHeight(\"-1px\");\r\n\t\t\r\n\t\t// pnlPrincipal\r\n\t\tpnlPrincipal = buildPnlPrincipal();\r\n\t\tmainLayout.addComponent(pnlPrincipal);\r\n\t\tmainLayout.setComponentAlignment(pnlPrincipal, new Alignment(20));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "title": "" }, { "docid": "fd2b972ee14c9fa3528a5b17f8c4035d", "score": "0.54288274", "text": "private void InitializeUI() {\n\t\tLog.d(\"Main\", \"Before Creating Layouts\");\n createLayout();\n \n Log.d(\"Main\", \"After Creating Layouts\");\n \n\t}", "title": "" }, { "docid": "583723dca6dffe28e832286d0bcc6659", "score": "0.54280937", "text": "private void setLayout() {\n\t\tnotificationHeader = (ImageView) findViewById(R.id.notofication);\n\t\t// notificationRequiest = (ImageView) findViewById(R.id.notofication);\n\t\tnotificationHeaderTextView = (TextView) findViewById(R.id.notificationCount);\n\t\t// notificationRequiestTextView = (TextView)\n\t\t// findViewById(R.id.notificationRCount);\n\t\tleft_button = (ImageButton) findViewById(R.id.left_buton);\n\t\tright_button = (ImageButton) findViewById(R.id.right_buton);\n\t\tback_button = (ImageButton) findViewById(R.id.back_button);\n\t\t// layoutHome = (LinearLayout) findViewById(R.id.home);\n\t\theaderIcon = (ImageView) findViewById(R.id.icon);\n\t\ttitle = (TextView) findViewById(R.id.titleTextView);\n\t\tlayoutProfile = (LinearLayout) findViewById(R.id.profile);\n\t\tlayoutFindDudes = (LinearLayout) findViewById(R.id.findDudes);\n\t\t// layoutGetMatches = (LinearLayout) findViewById(R.id.getMatches);\n\t\tlayoutDailyKrave = (LinearLayout) findViewById(R.id.dailyKrave);\n\t\tlayoutChatMatches = (LinearLayout) findViewById(R.id.chatMatches);\n\t\tlayoutSetting = (LinearLayout) findViewById(R.id.setting);\n\t\tlayoutContactUs = (LinearLayout) findViewById(R.id.contactUs);\n\t\t// layoutMap = (LinearLayout) findViewById(R.id.map);\n\t\tlayoutLogout = (LinearLayout) findViewById(R.id.logout);\n\n\t\trightContainer = (FrameLayout) findViewById(R.id.rightContainer);\n\t\tsettingAllGuysLayout();\n\t}", "title": "" }, { "docid": "4927a6919587e84edf316c069ef85fc1", "score": "0.54272556", "text": "public void createFields() {\n JPanel container = new JPanel(new BorderLayout());\n container.setBackground(UIHelper.BG_COLOR);\n\n JPanel northPanel = new JPanel(new BorderLayout());\n northPanel.setBackground(UIHelper.BG_COLOR);\n\n JLabel header = new JLabel(panelHeader, JLabel.RIGHT);\n northPanel.add(header, BorderLayout.NORTH);\n\n container.add(northPanel, BorderLayout.NORTH);\n container.add(createStudyDesc(), BorderLayout.CENTER);\n\n JPanel subforms = new JPanel();\n subforms.setLayout(new BoxLayout(subforms, BoxLayout.PAGE_AXIS));\n\n Box subPanel = Box.createVerticalBox();\n subPanel.add(Box.createVerticalStrut(20));\n\n subPanel.add(createStudyDesignSubForm());\n subPanel.add(Box.createVerticalStrut(20));\n\n subPanel.add(createStudyPublicationSubForm());\n subPanel.add(Box.createVerticalStrut(20));\n\n subPanel.add(createStudyFactorsSubForm());\n subPanel.add(Box.createVerticalStrut(20));\n\n subPanel.add(createStudyAssaysSubForm());\n subPanel.add(Box.createVerticalStrut(20));\n\n subPanel.add(createStudyProtocolsSubForm());\n subPanel.add(Box.createVerticalStrut(20));\n\n subPanel.add(createStudyContactsSubForm());\n subPanel.add(Box.createVerticalStrut(20));\n\n // todo for next release integrate use of Comment section in Study and Investigation definition.\n//\t\tsubPanel.add(createStudyCommentsSubForm());\n//\t\tsubPanel.add(Box.createVerticalStrut(20));\n\n container.add(subPanel, BorderLayout.SOUTH);\n\n JScrollPane containerScroller = new JScrollPane(container,\n JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n containerScroller.setBorder(null);\n\n IAppWidgetFactory.makeIAppScrollPane(containerScroller);\n\n add(containerScroller);\n }", "title": "" }, { "docid": "798801c8949a7914d287c7a2a4bad16c", "score": "0.54240644", "text": "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// tabSheet_1\n\t\ttabSheet_1 = buildTabSheet_1();\n\t\tmainLayout.addComponent(tabSheet_1, \"top:10.0px;left:10.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "title": "" }, { "docid": "ec56883dea40b39ce1bbd39871751a22", "score": "0.5416554", "text": "public void buildGUI() {\n\t\tContainer container = getContentPane();\n\t\tcontainer.setLayout(new FlowLayout());\n\t\t\n\t\t/*\n\t\t * 3. ADD COMPONENTS TO THE CONTAINER\n\t\t */\n\t\tcreateLabel(container);\n\t\tcreateText(container);\n\t\tcreateButton(container);\n\t}", "title": "" }, { "docid": "cc2fb5dc2aea738bdac5d3064dea3879", "score": "0.54122764", "text": "@AutoGenerated\n\tprivate VerticalLayout buildVerticalLayout_1() {\n\t\tverticalLayout_1 = new VerticalLayout();\n\t\tverticalLayout_1.setImmediate(false);\n\t\tverticalLayout_1.setWidth(\"100.0%\");\n\t\tverticalLayout_1.setHeight(\"100.0%\");\n\t\tverticalLayout_1.setMargin(false);\n\t\t\n\t\t// name\n\t\tname = new TextField();\n\t\tname.setCaption(\"用户名\");\n\t\tname.setImmediate(false);\n\t\tname.setWidth(\"-1px\");\n\t\tname.setHeight(\"-1px\");\n\t\tverticalLayout_1.addComponent(name);\n\t\t\n\t\t// label_1\n\t\tlabel_1 = new Label();\n\t\tlabel_1.setImmediate(false);\n\t\tlabel_1.setWidth(\"-1px\");\n\t\tlabel_1.setHeight(\"-1px\");\n\t\tlabel_1.setValue(\"性别\");\n\t\tverticalLayout_1.addComponent(label_1);\n\t\t\n\t\t// sex\n\t\tsex = new CheckBox();\n\t\tsex.setCaption(\"男\");\n\t\tsex.setImmediate(false);\n\t\tsex.setWidth(\"-1px\");\n\t\tsex.setHeight(\"-1px\");\n\t\tverticalLayout_1.addComponent(sex);\n\t\t\n\t\t// inlineDateField_1\n\t\tinlineDateField_1 = new InlineDateField();\n\t\tinlineDateField_1.setCaption(\"日历\");\n\t\tinlineDateField_1.setImmediate(false);\n\t\tinlineDateField_1.setWidth(\"-1px\");\n\t\tinlineDateField_1.setHeight(\"-1px\");\n\t\tverticalLayout_1.addComponent(inlineDateField_1);\n\t\t\n\t\treturn verticalLayout_1;\n\t}", "title": "" }, { "docid": "5fe4bdd54e37dc90514067aa4014e199", "score": "0.54122716", "text": "private HorizontalLayout initContent(){\n HorizontalLayout data = new HorizontalLayout();\n\n data.setSizeFull();\n\n data.addComponentAsFirst(initVerticalLayoutLeft());\n data.addComponentAtIndex(1, initVerticalLayoutRight());\n\n return data;\n }", "title": "" }, { "docid": "d4af2b2b48d4ccb21f86651b6f45d11d", "score": "0.541136", "text": "private void setLayoutAndAddComponentsToFrame() {\n\t\tthis.setPreferredSize(new Dimension(352, 352));\n\t\tthis.setVisible(true);\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.add(pokemonPanel, BorderLayout.NORTH);\n\t\tthis.add(trainerPanel, BorderLayout.CENTER);\n\t\tthis.add(buttonPanel, BorderLayout.SOUTH);\n\t}", "title": "" }, { "docid": "cea176d81b93cd1e6289921a5270b5de", "score": "0.5405038", "text": "@AutoGenerated\r\n\tprivate HorizontalLayout buildPnl1_1() {\n\t\tpnl1_1 = new HorizontalLayout();\r\n\t\tpnl1_1.setImmediate(false);\r\n\t\tpnl1_1.setWidth(\"-1px\");\r\n\t\tpnl1_1.setHeight(\"-1px\");\r\n\t\tpnl1_1.setMargin(false);\r\n\t\tpnl1_1.setSpacing(true);\r\n\t\t\r\n\t\t// txtDescripcion\r\n\t\ttxtDescripcion = new TextField();\r\n\t\ttxtDescripcion.setCaption(\"Descripción\");\r\n\t\ttxtDescripcion.setImmediate(false);\r\n\t\ttxtDescripcion.setWidth(\"401px\");\r\n\t\ttxtDescripcion.setHeight(\"-1px\");\r\n\t\tpnl1_1.addComponent(txtDescripcion);\r\n\t\t\r\n\t\treturn pnl1_1;\r\n\t}", "title": "" }, { "docid": "88a14d954e921cdf4851f7ba4e48fd7d", "score": "0.5401462", "text": "public void setLayout()\n {\n setLayout(\"Radial\");\n }", "title": "" }, { "docid": "09e46500665fc32f804e5b49555fd183", "score": "0.53979045", "text": "@Override\n\tprotected Control createContents(final Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\tcontainer.setLayout(new GridLayout(1, false));\n\t\ttitleFont = new Font(this.getShell().getDisplay(), \"Arial\", 10, SWT.BOLD);\n\n\t\t// ****** CANVAS NAME *********\n\t\tgroupName(container);\n\n\t\tgroupReturnType(container);\n\n\t\tgroupVar(container);\n\n\t\t// ****** CANVAS GAMLCODE *********\n\t\tgroupGamlCode(container);\n\n\t\treturn container;\n\t}", "title": "" }, { "docid": "e16951f1ed71ccb4298457b9162c73f9", "score": "0.53966343", "text": "protected abstract int getLayout();", "title": "" }, { "docid": "e16951f1ed71ccb4298457b9162c73f9", "score": "0.53966343", "text": "protected abstract int getLayout();", "title": "" }, { "docid": "e16951f1ed71ccb4298457b9162c73f9", "score": "0.53966343", "text": "protected abstract int getLayout();", "title": "" }, { "docid": "83c17bd1fb42327749a160554fe6e496", "score": "0.53918546", "text": "public Pane createContent() {\n\n\t\tBorderPane pane =new BorderPane(); \n\t\tVBox labels = new VBox();\n\n\n\t\tHBox hbButtons = new HBox();\n\t\thbButtons.setSpacing(10.0);\n\t\thbButtons.setAlignment(Pos.CENTER); // Aligns HBox and controls in HBox\n\t\tbtnSubmit = new Button(\"Submit\");\n\t\tbtnExit = new Button(\"Exit\");\n\t\tprogressBar = new ProgressBar(0);\n\t\tLabel lblName2 = new Label(\"Creation Name:\");\n\t\ttfName2 = new TextField();\n\t\thbButtons.getChildren().addAll(btnSubmit,btnExit);\n\t\tlabels.getChildren().addAll(lblName2,tfName2);\n\t\tVBox layout = new VBox(10);\n\t\tlayout.setAlignment(Pos.CENTER);\n\n\t\tlayout.getChildren().setAll(\n\t\t\t\tlabels,\n\t\t\t\thbButtons,\n\t\t\t\t_status,\n\t\t\t\tprogressBar\n\t\t\t\t);\n\t\tlayout.setPrefWidth(320);\n\n\t\tpane.setCenter(layout);\n\t\treturn pane;\n\n\t}", "title": "" }, { "docid": "4ebe8ee9444954a9069a909ecfb95cc2", "score": "0.5388346", "text": "private GroupLayout createLayout() {\n GroupLayout layout = new GroupLayout(this.pnMain);\n layout.setAutoCreateContainerGaps(true);\n layout.setAutoCreateGaps(true);\n\n layout.setHorizontalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.CENTER, true)\n .addGroup(GroupLayout.Alignment.LEADING,\n layout.createSequentialGroup()\n .addComponent(lbMail, 128, 128, 128)\n .addComponent(tfMail, 128, 128, 128))\n .addGroup(GroupLayout.Alignment.LEADING,\n layout.createSequentialGroup()\n .addComponent(lbPassword, 128, 128, 128)\n .addComponent(tfPassword, 128, 128, 128))\n .addGroup(GroupLayout.Alignment.LEADING,\n layout.createSequentialGroup()\n .addComponent(lbPassword, 128, 128, 128)\n .addComponent(tfPasswordRecap, 128, 128, 128))\n .addGroup(GroupLayout.Alignment.LEADING,\n layout.createSequentialGroup()\n .addComponent(lbFirstname, 128, 128, 128)\n .addComponent(tfFirstname, 128, 128, 128))\n .addGroup(GroupLayout.Alignment.LEADING,\n layout.createSequentialGroup()\n .addComponent(lbLastname, 128, 128, 128)\n .addComponent(tfLastname, 128, 128, 128))\n .addGroup(GroupLayout.Alignment.CENTER,\n layout.createSequentialGroup()\n .addGap(128, 128, 128)\n .addComponent(bnRegister)\n .addComponent(bnBack))\n );\n\n layout.setVerticalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.CENTER, true)\n .addGroup(layout.createSequentialGroup()\n .addGroup(\n layout.createParallelGroup(\n GroupLayout.Alignment.LEADING, true)\n .addComponent(lbMail, 32, 32, 32)\n .addComponent(tfMail, 32, 32, 32))\n .addGroup(\n layout.createParallelGroup()\n .addComponent(lbPassword, 32, 32, 32)\n .addComponent(tfPassword, 32, 32, 32))\n .addGroup(\n layout.createParallelGroup()\n .addComponent(lbPassword, 32, 32, 32)\n .addComponent(tfPasswordRecap, 32, 32, 32))\n .addGroup(\n layout.createParallelGroup()\n .addComponent(lbFirstname, 32, 32, 32)\n .addComponent(tfFirstname, 32, 32, 32))\n .addGroup(\n layout.createParallelGroup()\n .addComponent(lbLastname, 32, 32, 32)\n .addComponent(tfLastname, 32, 32, 32))\n .addGroup(\n layout.createParallelGroup(\n GroupLayout.Alignment.TRAILING)\n .addGap(10, 20, 30)\n .addComponent(bnRegister)\n .addComponent(bnBack)))\n );\n\n return layout;\n }", "title": "" }, { "docid": "75e5f9e634565949bcfb4cc8ca653430", "score": "0.53860956", "text": "public abstract int getLayout();", "title": "" } ]
d1ace4792a193b4b38a84d9e786ca97d
$ANTLR end "rule__Transition__Group__2" $ANTLR start "rule__Transition__Group__2__Impl" InternalStatemachine.g:825:1: rule__Transition__Group__2__Impl : ( 'goto' ) ;
[ { "docid": "fa1b5bbd6f0abeb221e4852100d9845d", "score": "0.8569531", "text": "public final void rule__Transition__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:829:1: ( ( 'goto' ) )\n // InternalStatemachine.g:830:1: ( 'goto' )\n {\n // InternalStatemachine.g:830:1: ( 'goto' )\n // InternalStatemachine.g:831:2: 'goto'\n {\n before(grammarAccess.getTransitionAccess().getGotoKeyword_2()); \n match(input,18,FOLLOW_2); \n after(grammarAccess.getTransitionAccess().getGotoKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
[ { "docid": "0fdfcf4263ddb5c69bdf76cd98b9ddfe", "score": "0.7157526", "text": "public final void rule__Transition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:817:1: ( rule__Transition__Group__2__Impl rule__Transition__Group__3 )\n // InternalStatemachine.g:818:2: rule__Transition__Group__2__Impl rule__Transition__Group__3\n {\n pushFollow(FOLLOW_7);\n rule__Transition__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Transition__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bd53818cd9af17f80eda393a6f5a6297", "score": "0.69582975", "text": "public final void rule__Transition__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:790:1: ( rule__Transition__Group__1__Impl rule__Transition__Group__2 )\n // InternalStatemachine.g:791:2: rule__Transition__Group__1__Impl rule__Transition__Group__2\n {\n pushFollow(FOLLOW_13);\n rule__Transition__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Transition__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a3b025d22f9c9aa78cc7c73b60c08a86", "score": "0.68551266", "text": "public final void rule__Statemachine__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:385:1: ( rule__Statemachine__Group__2__Impl )\n // InternalStatemachine.g:386:2: rule__Statemachine__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Statemachine__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "92834f811be3c283d10b673028833696", "score": "0.6835914", "text": "public final void rule__Transition__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:763:1: ( rule__Transition__Group__0__Impl rule__Transition__Group__1 )\n // InternalStatemachine.g:764:2: rule__Transition__Group__0__Impl rule__Transition__Group__1\n {\n pushFollow(FOLLOW_7);\n rule__Transition__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Transition__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e2fc15a5094032f384039a421b9b6824", "score": "0.6795705", "text": "public final void ruleTransition() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:195:2: ( ( ( rule__Transition__Group__0 ) ) )\n // InternalStatemachine.g:196:2: ( ( rule__Transition__Group__0 ) )\n {\n // InternalStatemachine.g:196:2: ( ( rule__Transition__Group__0 ) )\n // InternalStatemachine.g:197:3: ( rule__Transition__Group__0 )\n {\n before(grammarAccess.getTransitionAccess().getGroup()); \n // InternalStatemachine.g:198:3: ( rule__Transition__Group__0 )\n // InternalStatemachine.g:198:4: rule__Transition__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Transition__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTransitionAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "de41e41f17a0ad26725e0a522495f5e5", "score": "0.65417", "text": "public final void rule__Transition__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:844:1: ( rule__Transition__Group__3__Impl )\n // InternalStatemachine.g:845:2: rule__Transition__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Transition__Group__3__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1dfb8836a176186264684187f1c1d34c", "score": "0.64952403", "text": "public final void rule__Statemachine__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:358:1: ( rule__Statemachine__Group__1__Impl rule__Statemachine__Group__2 )\n // InternalStatemachine.g:359:2: rule__Statemachine__Group__1__Impl rule__Statemachine__Group__2\n {\n pushFollow(FOLLOW_3);\n rule__Statemachine__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Statemachine__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9dd255ddfccd8e2cf2526d601fa4c10f", "score": "0.64642626", "text": "public final void mGOTO() throws RecognitionException {\n try {\n int _type = GOTO;\n // JS.g:162:6: ( 'goto' )\n // JS.g:162:8: 'goto'\n {\n match(\"goto\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "title": "" }, { "docid": "7d1be19ffffdc1f82c5af8b12458adcd", "score": "0.63650197", "text": "public final void rule__Event__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:1033:1: ( rule__Event__Group__2__Impl )\n // InternalStatemachine.g:1034:2: rule__Event__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Event__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3f266d9a0b7f4ce251ad63cdff109d5d", "score": "0.63602054", "text": "public final void rule__State__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:655:1: ( rule__State__Group__2__Impl rule__State__Group__3 )\n // InternalStatemachine.g:656:2: rule__State__Group__2__Impl rule__State__Group__3\n {\n pushFollow(FOLLOW_10);\n rule__State__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__State__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "255607e261a67d93813be26043c21580", "score": "0.6277476", "text": "public final void rule__Moves__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:3284:1: ( rule__Moves__Group__1__Impl )\n // InternalRPG.g:3285:2: rule__Moves__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Moves__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0841f0f395b05a0b8127e9ae9f1773f5", "score": "0.6255502", "text": "public final void rule__Statemachine__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:331:1: ( rule__Statemachine__Group__0__Impl rule__Statemachine__Group__1 )\n // InternalStatemachine.g:332:2: rule__Statemachine__Group__0__Impl rule__Statemachine__Group__1\n {\n pushFollow(FOLLOW_3);\n rule__Statemachine__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Statemachine__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d1dea6f858d3ce0aa54a7cbea021b37e", "score": "0.62521344", "text": "public final void rule__Move__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:3372:1: ( rule__Move__Group__2__Impl rule__Move__Group__3 )\n // InternalRPG.g:3373:2: rule__Move__Group__2__Impl rule__Move__Group__3\n {\n pushFollow(FOLLOW_29);\n rule__Move__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Move__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "23003cad452d6e7151526fb850d31f2f", "score": "0.62308246", "text": "public final void rule__Rule__Group_0__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4047:1: ( rule__Rule__Group_0__2__Impl )\n // InternalRPG.g:4048:2: rule__Rule__Group_0__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Rule__Group_0__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6086d9c25d9cdad3423cd48fb1b10210", "score": "0.62257075", "text": "public final void rule__Page__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNav.g:798:1: ( rule__Page__Group__2__Impl )\n // InternalNav.g:799:2: rule__Page__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Page__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "89fe1b8d8e8305f79c8560d1c4353a62", "score": "0.62146556", "text": "public final void rule__State__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:628:1: ( rule__State__Group__1__Impl rule__State__Group__2 )\n // InternalStatemachine.g:629:2: rule__State__Group__1__Impl rule__State__Group__2\n {\n pushFollow(FOLLOW_10);\n rule__State__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__State__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cf7e1d104947cd98ca43e5a7031c0dd7", "score": "0.6210948", "text": "public final void rule__At__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDependency.g:480:1: ( rule__At__Group__2__Impl )\n // InternalDependency.g:481:2: rule__At__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__At__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "eb002886352c70d3bb04a72151392e17", "score": "0.620898", "text": "public final void rule__Team__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4797:1: ( rule__Team__Group__2__Impl )\n // InternalRPG.g:4798:2: rule__Team__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Team__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "580cd8f374ea5445745316cb06a0d2e5", "score": "0.6207625", "text": "public final void rule__Menu__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNav.g:447:1: ( rule__Menu__Group__2__Impl rule__Menu__Group__3 )\n // InternalNav.g:448:2: rule__Menu__Group__2__Impl rule__Menu__Group__3\n {\n pushFollow(FOLLOW_5);\n rule__Menu__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Menu__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dfd753ec70154da072130c738a1130b6", "score": "0.61160827", "text": "public final void rule__ThroughLifePlanning__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4788:1: ( rule__ThroughLifePlanning__Group__2__Impl rule__ThroughLifePlanning__Group__3 )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4789:2: rule__ThroughLifePlanning__Group__2__Impl rule__ThroughLifePlanning__Group__3\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group__2__Impl_in_rule__ThroughLifePlanning__Group__29601);\n rule__ThroughLifePlanning__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group__3_in_rule__ThroughLifePlanning__Group__29604);\n rule__ThroughLifePlanning__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "53de7f00aa23a67aae74ae98afb42f14", "score": "0.610828", "text": "public final void rule__Signal__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:466:1: ( rule__Signal__Group__2__Impl )\n // InternalStatemachine.g:467:2: rule__Signal__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Signal__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0bd0ce8f2cdafd4442f627888cc24789", "score": "0.6084778", "text": "public final void rule__TargetChain__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNgt.g:2021:1: ( rule__TargetChain__Group__2__Impl )\n // InternalNgt.g:2022:2: rule__TargetChain__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__TargetChain__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c16453d84179bd133ae7433a9ef4dd49", "score": "0.6069615", "text": "public final void rule__Model__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWorkflow.g:445:1: ( rule__Model__Group__2__Impl )\n // InternalWorkflow.g:446:2: rule__Model__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Model__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "455a7a5011ac9cf3fb86fd8793e8332b", "score": "0.6056855", "text": "public final void rule__ThroughLifePlanning__Group_8__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5355:1: ( rule__ThroughLifePlanning__Group_8__1__Impl )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5356:2: rule__ThroughLifePlanning__Group_8__1__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_8__1__Impl_in_rule__ThroughLifePlanning__Group_8__110722);\n rule__ThroughLifePlanning__Group_8__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4f267fa71d318f69ca83fb5057ed5bb3", "score": "0.6029122", "text": "public final void rule__Table__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:788:1: ( rule__Table__Group__2__Impl rule__Table__Group__3 )\n // InternalMyDsl.g:789:2: rule__Table__Group__2__Impl rule__Table__Group__3\n {\n pushFollow(FOLLOW_11);\n rule__Table__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Table__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "98c1f9245e26e9e06d70c98e34791525", "score": "0.60170776", "text": "public final void rule__Rule__Group_0__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4058:1: ( ( 'then' ) )\n // InternalRPG.g:4059:1: ( 'then' )\n {\n // InternalRPG.g:4059:1: ( 'then' )\n // InternalRPG.g:4060:2: 'then'\n {\n before(grammarAccess.getRuleAccess().getThenKeyword_0_2()); \n match(input,35,FOLLOW_2); \n after(grammarAccess.getRuleAccess().getThenKeyword_0_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d8cd4c4a60b9e4c0476e279da7ecb55e", "score": "0.6008518", "text": "public final void rule__Transition__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:775:1: ( ( 'if' ) )\n // InternalStatemachine.g:776:1: ( 'if' )\n {\n // InternalStatemachine.g:776:1: ( 'if' )\n // InternalStatemachine.g:777:2: 'if'\n {\n before(grammarAccess.getTransitionAccess().getIfKeyword_0()); \n match(input,17,FOLLOW_2); \n after(grammarAccess.getTransitionAccess().getIfKeyword_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7ab26b901fab79724c7c8a18d6185682", "score": "0.59998137", "text": "public final void rule__EntityMoves__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4648:1: ( rule__EntityMoves__Group__1__Impl )\n // InternalRPG.g:4649:2: rule__EntityMoves__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__EntityMoves__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "b9e95e301367c2c985abd2ff392c7cae", "score": "0.59735423", "text": "public final void rule__MoveE__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:1967:1: ( rule__MoveE__Group__2__Impl rule__MoveE__Group__3 )\n // InternalRPG.g:1968:2: rule__MoveE__Group__2__Impl rule__MoveE__Group__3\n {\n pushFollow(FOLLOW_10);\n rule__MoveE__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__MoveE__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dc56b13b3b4322e5fcd790c01adce3e1", "score": "0.59501636", "text": "public final void rule__Statement__Group_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:5263:1: ( rule__Statement__Group_1__2__Impl )\n // InternalRPG.g:5264:2: rule__Statement__Group_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Statement__Group_1__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "75f4c1556c0b7006c3dcefd2e44ce52a", "score": "0.5935957", "text": "public final void rule__GrupoSeguridad__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:7873:1: ( rule__GrupoSeguridad__Group_2__1__Impl )\n // InternalCeffective.g:7874:2: rule__GrupoSeguridad__Group_2__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__GrupoSeguridad__Group_2__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ea28511ea94d06c66f2d5b3d1b8dde6a", "score": "0.59278226", "text": "public final void rule__ThroughLifePlanning__Group_6__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5231:1: ( rule__ThroughLifePlanning__Group_6__1__Impl )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5232:2: rule__ThroughLifePlanning__Group_6__1__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_6__1__Impl_in_rule__ThroughLifePlanning__Group_6__110478);\n rule__ThroughLifePlanning__Group_6__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "e9724c347c89bad0867c7fc346b13f50", "score": "0.5921244", "text": "public final void ruleStatemachine() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:70:2: ( ( ( rule__Statemachine__Group__0 ) ) )\n // InternalStatemachine.g:71:2: ( ( rule__Statemachine__Group__0 ) )\n {\n // InternalStatemachine.g:71:2: ( ( rule__Statemachine__Group__0 ) )\n // InternalStatemachine.g:72:3: ( rule__Statemachine__Group__0 )\n {\n before(grammarAccess.getStatemachineAccess().getGroup()); \n // InternalStatemachine.g:73:3: ( rule__Statemachine__Group__0 )\n // InternalStatemachine.g:73:4: rule__Statemachine__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Statemachine__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getStatemachineAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7dcf179e8b2623a68a523f563906c2e1", "score": "0.59178203", "text": "public final void rule__State__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalStatemachine.g:601:1: ( rule__State__Group__0__Impl rule__State__Group__1 )\n // InternalStatemachine.g:602:2: rule__State__Group__0__Impl rule__State__Group__1\n {\n pushFollow(FOLLOW_7);\n rule__State__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__State__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1541b85f089d5730d0b1450cfbfe4103", "score": "0.5916776", "text": "public final void rule__XSwitchExpression__Group_2_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:9853:1: ( rule__XSwitchExpression__Group_2_0__2__Impl )\r\n // InternalBugsly.g:9854:2: rule__XSwitchExpression__Group_2_0__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "510665fa3a0e90d020047e68922510b1", "score": "0.59084517", "text": "public final void rule__Relations__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:2656:1: ( rule__Relations__Group__2__Impl )\n // InternalRPG.g:2657:2: rule__Relations__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Relations__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f6876af6264c0796e26f6131a28c1864", "score": "0.5907708", "text": "public final void rule__Move__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:3345:1: ( rule__Move__Group__1__Impl rule__Move__Group__2 )\n // InternalRPG.g:3346:2: rule__Move__Group__1__Impl rule__Move__Group__2\n {\n pushFollow(FOLLOW_28);\n rule__Move__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Move__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "52a3fb5c464416ff567f67f5d7f2747e", "score": "0.5901316", "text": "public final void rule__Resume__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLPDSL.g:1912:1: ( rule__Resume__Group__2__Impl rule__Resume__Group__3 )\r\n // InternalLPDSL.g:1913:2: rule__Resume__Group__2__Impl rule__Resume__Group__3\r\n {\r\n pushFollow(FOLLOW_15);\r\n rule__Resume__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_2);\r\n rule__Resume__Group__3();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "fbda41feae40205de37e952a8489ee34", "score": "0.5898793", "text": "public final void rule__Move__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:3318:1: ( rule__Move__Group__0__Impl rule__Move__Group__1 )\n // InternalRPG.g:3319:2: rule__Move__Group__0__Impl rule__Move__Group__1\n {\n pushFollow(FOLLOW_3);\n rule__Move__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Move__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6740af582188ed616db0235190be0876", "score": "0.5887322", "text": "public final void rule__Loc__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:2440:1: ( rule__Loc__Group__2__Impl rule__Loc__Group__3 )\n // InternalRPG.g:2441:2: rule__Loc__Group__2__Impl rule__Loc__Group__3\n {\n pushFollow(FOLLOW_3);\n rule__Loc__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Loc__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "633e19ec4447a9c2b8cda6b79f9c1e2e", "score": "0.5872018", "text": "public final void rule__XSwitchExpression__Group_2_0_0_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:9961:1: ( rule__XSwitchExpression__Group_2_0_0_0__2__Impl )\r\n // InternalBugsly.g:9962:2: rule__XSwitchExpression__Group_2_0_0_0__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0_0_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d36fe72aa52d496e6060790c51704c1a", "score": "0.58587843", "text": "public final void rule__Menu__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNav.g:420:1: ( rule__Menu__Group__1__Impl rule__Menu__Group__2 )\n // InternalNav.g:421:2: rule__Menu__Group__1__Impl rule__Menu__Group__2\n {\n pushFollow(FOLLOW_4);\n rule__Menu__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Menu__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "8cdb5bad24ad49c8a85d5927aed59d39", "score": "0.58516306", "text": "public final void rule__Moves__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:3257:1: ( rule__Moves__Group__0__Impl rule__Moves__Group__1 )\n // InternalRPG.g:3258:2: rule__Moves__Group__0__Impl rule__Moves__Group__1\n {\n pushFollow(FOLLOW_26);\n rule__Moves__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Moves__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a84474315bf50c26a572749dfa9026ad", "score": "0.5844217", "text": "public final void rule__S_Other__Group__2() throws RecognitionException {\n int rule__S_Other__Group__2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 384) ) { return ; }\n // InternalGaml.g:7097:1: ( rule__S_Other__Group__2__Impl )\n // InternalGaml.g:7098:2: rule__S_Other__Group__2__Impl\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__S_Other__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 384, rule__S_Other__Group__2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cf9ec3a7edd1c57e91a23160583d0b0b", "score": "0.5840656", "text": "public final void rule__From__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:1564:1: ( rule__From__Group__2__Impl rule__From__Group__3 )\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:1565:2: rule__From__Group__2__Impl rule__From__Group__3\n {\n pushFollow(FOLLOW_rule__From__Group__2__Impl_in_rule__From__Group__23134);\n rule__From__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__From__Group__3_in_rule__From__Group__23137);\n rule__From__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "4a761e02e43d87f92e6e606187f76191", "score": "0.58377135", "text": "public final void rule__Teams__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4709:1: ( rule__Teams__Group__1__Impl )\n // InternalRPG.g:4710:2: rule__Teams__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Teams__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "1c5567b10b6addb45b45c054c9e029fb", "score": "0.5830303", "text": "public final void rule__Rule__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:926:1: ( rule__Rule__Group__2__Impl rule__Rule__Group__3 )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:927:2: rule__Rule__Group__2__Impl rule__Rule__Group__3\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__Rule__Group__2__Impl_in_rule__Rule__Group__21940);\r\n rule__Rule__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FollowSets000.FOLLOW_rule__Rule__Group__3_in_rule__Rule__Group__21943);\r\n rule__Rule__Group__3();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "222ecc6bf36093b26ad549ddba1c01ca", "score": "0.58224726", "text": "public final void rule__ThroughLifePlanning__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4757:1: ( rule__ThroughLifePlanning__Group__1__Impl rule__ThroughLifePlanning__Group__2 )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4758:2: rule__ThroughLifePlanning__Group__1__Impl rule__ThroughLifePlanning__Group__2\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group__1__Impl_in_rule__ThroughLifePlanning__Group__19539);\n rule__ThroughLifePlanning__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group__2_in_rule__ThroughLifePlanning__Group__19542);\n rule__ThroughLifePlanning__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "df074460c71fe2b044c6fc118eb5eecd", "score": "0.580277", "text": "public final void rule__NavModel__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNav.g:231:1: ( rule__NavModel__Group__2__Impl rule__NavModel__Group__3 )\n // InternalNav.g:232:2: rule__NavModel__Group__2__Impl rule__NavModel__Group__3\n {\n pushFollow(FOLLOW_5);\n rule__NavModel__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__NavModel__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "51b1927e552c4d742dfe0f6dcc10cfd5", "score": "0.5799392", "text": "public final void rule__AEffect__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:3669:1: ( rule__AEffect__Group__2__Impl )\n // InternalRPG.g:3670:2: rule__AEffect__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__AEffect__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "cc56f5580a52f2becdb9095b15e72151", "score": "0.57971114", "text": "public final void rule__GrupoSeguridad__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:7426:1: ( ( ( rule__GrupoSeguridad__Group_2__0 )? ) )\n // InternalCeffective.g:7427:1: ( ( rule__GrupoSeguridad__Group_2__0 )? )\n {\n // InternalCeffective.g:7427:1: ( ( rule__GrupoSeguridad__Group_2__0 )? )\n // InternalCeffective.g:7428:2: ( rule__GrupoSeguridad__Group_2__0 )?\n {\n before(grammarAccess.getGrupoSeguridadAccess().getGroup_2()); \n // InternalCeffective.g:7429:2: ( rule__GrupoSeguridad__Group_2__0 )?\n int alt68=2;\n int LA68_0 = input.LA(1);\n\n if ( (LA68_0==27) ) {\n alt68=1;\n }\n switch (alt68) {\n case 1 :\n // InternalCeffective.g:7429:3: rule__GrupoSeguridad__Group_2__0\n {\n pushFollow(FOLLOW_2);\n rule__GrupoSeguridad__Group_2__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getGrupoSeguridadAccess().getGroup_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "0c170455782602b3955b8cb59c981430", "score": "0.57924235", "text": "public final void rule__S_Loop__Group__2() throws RecognitionException {\n int rule__S_Loop__Group__2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 362) ) { return ; }\n // InternalGaml.g:6757:1: ( rule__S_Loop__Group__2__Impl rule__S_Loop__Group__3 )\n // InternalGaml.g:6758:2: rule__S_Loop__Group__2__Impl rule__S_Loop__Group__3\n {\n pushFollow(FollowSets000.FOLLOW_20);\n rule__S_Loop__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FollowSets000.FOLLOW_2);\n rule__S_Loop__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 362, rule__S_Loop__Group__2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c5c19515c8d207480be8742f2d0a8a04", "score": "0.5786475", "text": "public final void rule__URL__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLPDSL.g:1210:1: ( rule__URL__Group__2__Impl )\r\n // InternalLPDSL.g:1211:2: rule__URL__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__URL__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "53b33044e1398fffb992e03ff752c8d5", "score": "0.57725024", "text": "public final void rule__Model__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:652:1: ( ( 'from' ) )\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:653:1: ( 'from' )\n {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:653:1: ( 'from' )\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:654:1: 'from'\n {\n before(grammarAccess.getModelAccess().getFromKeyword_2()); \n match(input,20,FOLLOW_20_in_rule__Model__Group__2__Impl1342); \n after(grammarAccess.getModelAccess().getFromKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ad30ee27739d00e22c6622489942d671", "score": "0.5771554", "text": "public final void rule__Death__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4378:1: ( rule__Death__Group__1__Impl )\n // InternalRPG.g:4379:2: rule__Death__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Death__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "60a8b763acfed9eb2584f36b8b4a9bda", "score": "0.5768586", "text": "public final void rule__XSwitchExpression__Group_2_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:10015:1: ( rule__XSwitchExpression__Group_2_1__1__Impl )\r\n // InternalBugsly.g:10016:2: rule__XSwitchExpression__Group_2_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_1__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0423dc666668cbc142ebdbc62e3ce4c8", "score": "0.57663196", "text": "public final void rule__MEffect__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:3507:1: ( rule__MEffect__Group__2__Impl )\n // InternalRPG.g:3508:2: rule__MEffect__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__MEffect__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "15fe5105a79d6ca94a5fc0ed6d27fda3", "score": "0.5764708", "text": "public final void rule__ThroughLifePlanning__Group_4__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5105:1: ( rule__ThroughLifePlanning__Group_4__1__Impl )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5106:2: rule__ThroughLifePlanning__Group_4__1__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_4__1__Impl_in_rule__ThroughLifePlanning__Group_4__110232);\n rule__ThroughLifePlanning__Group_4__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "f063469e4a11ccb2b0c62f1b98364481", "score": "0.5762023", "text": "public final void rule__TestTarget__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNgt.g:1130:1: ( rule__TestTarget__Group__1__Impl )\n // InternalNgt.g:1131:2: rule__TestTarget__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__TestTarget__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d69acbc3ce7bb45e7eba77471eac13b0", "score": "0.576097", "text": "public final void rule__ThroughLifePlanning__Group_8__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5326:1: ( rule__ThroughLifePlanning__Group_8__0__Impl rule__ThroughLifePlanning__Group_8__1 )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5327:2: rule__ThroughLifePlanning__Group_8__0__Impl rule__ThroughLifePlanning__Group_8__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_8__0__Impl_in_rule__ThroughLifePlanning__Group_8__010662);\n rule__ThroughLifePlanning__Group_8__0__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_8__1_in_rule__ThroughLifePlanning__Group_8__010665);\n rule__ThroughLifePlanning__Group_8__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "df99bf50077854807a6c09fbf3411f3a", "score": "0.5760698", "text": "public final void rule__Rule__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:3939:1: ( rule__Rule__Group__2__Impl rule__Rule__Group__3 )\n // InternalRPG.g:3940:2: rule__Rule__Group__2__Impl rule__Rule__Group__3\n {\n pushFollow(FOLLOW_34);\n rule__Rule__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Rule__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7744e953884e876d8b2e980fe663c584", "score": "0.5755075", "text": "public final void rule__Ontology__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:1770:1: ( rule__Ontology__Group__2__Impl rule__Ontology__Group__3 )\n // InternalDSL.g:1771:2: rule__Ontology__Group__2__Impl rule__Ontology__Group__3\n {\n pushFollow(FOLLOW_5);\n rule__Ontology__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Ontology__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "91347ae03b11776fb673aa498bf260bf", "score": "0.57491094", "text": "public final void rule__MoveE__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:1994:1: ( rule__MoveE__Group__3__Impl )\n // InternalRPG.g:1995:2: rule__MoveE__Group__3__Impl\n {\n pushFollow(FOLLOW_2);\n rule__MoveE__Group__3__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "acd260b99c771fca043c595dd866f0d4", "score": "0.57457364", "text": "public final void rule__S_Action__Group__2() throws RecognitionException {\n int rule__S_Action__Group__2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 432) ) { return ; }\n // InternalGaml.g:7847:1: ( rule__S_Action__Group__2__Impl rule__S_Action__Group__3 )\n // InternalGaml.g:7848:2: rule__S_Action__Group__2__Impl rule__S_Action__Group__3\n {\n pushFollow(FollowSets000.FOLLOW_30);\n rule__S_Action__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FollowSets000.FOLLOW_2);\n rule__S_Action__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 432, rule__S_Action__Group__2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "23940992c8e0e4bc0da06c36750edc69", "score": "0.5735401", "text": "public final void rule__Table__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:761:1: ( rule__Table__Group__1__Impl rule__Table__Group__2 )\n // InternalMyDsl.g:762:2: rule__Table__Group__1__Impl rule__Table__Group__2\n {\n pushFollow(FOLLOW_3);\n rule__Table__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Table__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ebf6f2cd8f67335288827223e2720c67", "score": "0.5733089", "text": "public final void rule__Cost_Impl__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:7630:1: ( rule__Cost_Impl__Group__2__Impl rule__Cost_Impl__Group__3 )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:7631:2: rule__Cost_Impl__Group__2__Impl rule__Cost_Impl__Group__3\n {\n pushFollow(FollowSets000.FOLLOW_rule__Cost_Impl__Group__2__Impl_in_rule__Cost_Impl__Group__215208);\n rule__Cost_Impl__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__Cost_Impl__Group__3_in_rule__Cost_Impl__Group__215211);\n rule__Cost_Impl__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9946fc3ec3acce17a26a06c042fcae49", "score": "0.5730194", "text": "public final void rule__NamedUnit_Impl__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDSL.g:21318:1: ( rule__NamedUnit_Impl__Group__2__Impl rule__NamedUnit_Impl__Group__3 )\n // InternalDSL.g:21319:2: rule__NamedUnit_Impl__Group__2__Impl rule__NamedUnit_Impl__Group__3\n {\n pushFollow(FOLLOW_43);\n rule__NamedUnit_Impl__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__NamedUnit_Impl__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ad87b442a828af3542ad3376ff3fdccd", "score": "0.5728461", "text": "public final void rule__S_Loop__Group__3() throws RecognitionException {\n int rule__S_Loop__Group__3_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 364) ) { return ; }\n // InternalGaml.g:6786:1: ( rule__S_Loop__Group__3__Impl )\n // InternalGaml.g:6787:2: rule__S_Loop__Group__3__Impl\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__S_Loop__Group__3__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 364, rule__S_Loop__Group__3_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "a049d0f55cff580333d404da369cfca5", "score": "0.57226056", "text": "public final void rule__Relation__Group_0_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNgt.g:1805:1: ( rule__Relation__Group_0_1__2__Impl )\n // InternalNgt.g:1806:2: rule__Relation__Group_0_1__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Relation__Group_0_1__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "48b8575845212e5e1278f13b2b4d6b06", "score": "0.5722281", "text": "public final void rule__Expression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:998:1: ( ( 'from' ) )\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:999:1: ( 'from' )\n {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:999:1: ( 'from' )\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:1000:1: 'from'\n {\n before(grammarAccess.getExpressionAccess().getFromKeyword_2()); \n match(input,20,FOLLOW_20_in_rule__Expression__Group__2__Impl2024); \n after(grammarAccess.getExpressionAccess().getFromKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "3896055cf1d7b4b565c6cd372d584ceb", "score": "0.5714332", "text": "void goto_end () throws BaseException;", "title": "" }, { "docid": "7ed1ca6c6b4ac48cc2b0d4b6b5d650ff", "score": "0.5712501", "text": "public final void rule__S_Return__Group__2() throws RecognitionException {\n int rule__S_Return__Group__2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 390) ) { return ; }\n // InternalGaml.g:7189:1: ( rule__S_Return__Group__2__Impl rule__S_Return__Group__3 )\n // InternalGaml.g:7190:2: rule__S_Return__Group__2__Impl rule__S_Return__Group__3\n {\n pushFollow(FollowSets000.FOLLOW_24);\n rule__S_Return__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FollowSets000.FOLLOW_2);\n rule__S_Return__Group__3();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 390, rule__S_Return__Group__2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d358f185f63e825c7c7e9186dd1ae239", "score": "0.57070154", "text": "public final void rule__SystemRPG__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:1609:1: ( rule__SystemRPG__Group__2__Impl )\n // InternalRPG.g:1610:2: rule__SystemRPG__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__SystemRPG__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ab67e226654983a6b045370dc95a0632", "score": "0.57004625", "text": "public final void rule__XThrowExpression__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:13471:1: ( rule__XThrowExpression__Group__2__Impl )\r\n // InternalBugsly.g:13472:2: rule__XThrowExpression__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XThrowExpression__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "23c997269378ed318a298a16c329d4f3", "score": "0.56946456", "text": "public final void rule__XSwitchExpression__Group_2_1__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10102:1: ( rule__XSwitchExpression__Group_2_1__2__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:10103:2: rule__XSwitchExpression__Group_2_1__2__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_1__2__Impl_in_rule__XSwitchExpression__Group_2_1__220600);\n rule__XSwitchExpression__Group_2_1__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7412cc079c51cd67b5d6ddab7e03e70a", "score": "0.56938714", "text": "public final void rule__Page__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalNav.g:771:1: ( rule__Page__Group__1__Impl rule__Page__Group__2 )\n // InternalNav.g:772:2: rule__Page__Group__1__Impl rule__Page__Group__2\n {\n pushFollow(FOLLOW_4);\n rule__Page__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Page__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ec03fa1ff5e9b870eb815354b930233d", "score": "0.5691075", "text": "public final void rule__ThroughLifePlanning__Group_6__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5200:1: ( rule__ThroughLifePlanning__Group_6__0__Impl rule__ThroughLifePlanning__Group_6__1 )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5201:2: rule__ThroughLifePlanning__Group_6__0__Impl rule__ThroughLifePlanning__Group_6__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_6__0__Impl_in_rule__ThroughLifePlanning__Group_6__010416);\n rule__ThroughLifePlanning__Group_6__0__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_6__1_in_rule__ThroughLifePlanning__Group_6__010419);\n rule__ThroughLifePlanning__Group_6__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "bfecbbe36eacdc847f05c68c564ecc00", "score": "0.56908524", "text": "public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9919:1: ( rule__XSwitchExpression__Group_2_0__1__Impl )\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:9920:2: rule__XSwitchExpression__Group_2_0__1__Impl\n {\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2_0__1__Impl_in_rule__XSwitchExpression__Group_2_0__120237);\n rule__XSwitchExpression__Group_2_0__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c32b19560b3d384a9c97e24240d294f6", "score": "0.5688521", "text": "public final void rule__Servidor_Impl__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:5686:1: ( rule__Servidor_Impl__Group__2__Impl rule__Servidor_Impl__Group__3 )\n // InternalCeffective.g:5687:2: rule__Servidor_Impl__Group__2__Impl rule__Servidor_Impl__Group__3\n {\n pushFollow(FOLLOW_34);\n rule__Servidor_Impl__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Servidor_Impl__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "dcb8d2f01d62e5d9bca96de965b28e50", "score": "0.5680276", "text": "public final void rule__Type__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:2933:1: ( rule__Type__Group__2__Impl )\n // InternalRPG.g:2934:2: rule__Type__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Type__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "7fc73b5ab5efcf11889d2207bfddee21", "score": "0.5679416", "text": "public final void rule__EntityMoves__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4621:1: ( rule__EntityMoves__Group__0__Impl rule__EntityMoves__Group__1 )\n // InternalRPG.g:4622:2: rule__EntityMoves__Group__0__Impl rule__EntityMoves__Group__1\n {\n pushFollow(FOLLOW_3);\n rule__EntityMoves__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__EntityMoves__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "40d913f436806239271a56a9bad333f6", "score": "0.56777316", "text": "public final void rule__XSwitchExpression__Group_2_0_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalBugsly.g:9880:1: ( rule__XSwitchExpression__Group_2_0_0__0__Impl )\r\n // InternalBugsly.g:9881:2: rule__XSwitchExpression__Group_2_0_0__0__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XSwitchExpression__Group_2_0_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "46e89dc00774823484ad3dd4ea8ef577", "score": "0.567761", "text": "public final void rule__Connection__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:387:1: ( rule__Connection__Group__2__Impl )\r\n // ../ru.spbau.luchikhin.graph.ui/src-gen/ru/spbau/luchikhin/ui/contentassist/antlr/internal/InternalGraph.g:388:2: rule__Connection__Group__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Connection__Group__2__Impl_in_rule__Connection__Group__2729);\r\n rule__Connection__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2dc3e1891e44f9c771d70392a41dd3fd", "score": "0.5675909", "text": "public final void rule__GrupoSeguridad__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCeffective.g:7846:1: ( rule__GrupoSeguridad__Group_2__0__Impl rule__GrupoSeguridad__Group_2__1 )\n // InternalCeffective.g:7847:2: rule__GrupoSeguridad__Group_2__0__Impl rule__GrupoSeguridad__Group_2__1\n {\n pushFollow(FOLLOW_12);\n rule__GrupoSeguridad__Group_2__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__GrupoSeguridad__Group_2__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "698c74143548c3d4dc956a1400236907", "score": "0.5675692", "text": "public final void rule__Property__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWorkflow.g:1073:1: ( rule__Property__Group__2__Impl )\n // InternalWorkflow.g:1074:2: rule__Property__Group__2__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Property__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "da3c7d9577af523452afe1e09f0feba9", "score": "0.56747586", "text": "public final void rule__ThroughLifePlanning__Group__8__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4976:1: ( ( ( rule__ThroughLifePlanning__Group_8__0 )? ) )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4977:1: ( ( rule__ThroughLifePlanning__Group_8__0 )? )\n {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4977:1: ( ( rule__ThroughLifePlanning__Group_8__0 )? )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4978:1: ( rule__ThroughLifePlanning__Group_8__0 )?\n {\n before(grammarAccess.getThroughLifePlanningAccess().getGroup_8()); \n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4979:1: ( rule__ThroughLifePlanning__Group_8__0 )?\n int alt50=2;\n int LA50_0 = input.LA(1);\n\n if ( (LA50_0==30||(LA50_0>=54 && LA50_0<=55)) ) {\n alt50=1;\n }\n switch (alt50) {\n case 1 :\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4979:2: rule__ThroughLifePlanning__Group_8__0\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_8__0_in_rule__ThroughLifePlanning__Group__8__Impl9997);\n rule__ThroughLifePlanning__Group_8__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getThroughLifePlanningAccess().getGroup_8()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "ca59d18bcc1a4a60255689ced257f9e5", "score": "0.5670583", "text": "public final void rule__Locations__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:2352:1: ( rule__Locations__Group__1__Impl )\n // InternalRPG.g:2353:2: rule__Locations__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Locations__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9b2d071c671d5b78a2793fbab37aee43", "score": "0.5666316", "text": "public final void rule__Team__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4743:1: ( rule__Team__Group__0__Impl rule__Team__Group__1 )\n // InternalRPG.g:4744:2: rule__Team__Group__0__Impl rule__Team__Group__1\n {\n pushFollow(FOLLOW_3);\n rule__Team__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Team__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "42ee5a5ddeec172f5d2cc3e306f76350", "score": "0.5664616", "text": "public final void rule__Block__Group__2() throws RecognitionException {\n int rule__Block__Group__2_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 614) ) { return ; }\n // InternalGaml.g:10690:1: ( rule__Block__Group__2__Impl )\n // InternalGaml.g:10691:2: rule__Block__Group__2__Impl\n {\n pushFollow(FollowSets000.FOLLOW_2);\n rule__Block__Group__2__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 614, rule__Block__Group__2_StartIndex); }\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "70ccc53f8be536f03369ae5e4fa58966", "score": "0.5661302", "text": "public final void rule__CellularAutomata__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:832:1: ( rule__CellularAutomata__Group__2__Impl )\r\n // ../org.kermeta.language.sample.cellularautomata.rules.evolution.cs.ui/src-gen/org/kermeta/language/sample/cellularautomata/rules/ui/contentassist/antlr/internal/InternalEvol.g:833:2: rule__CellularAutomata__Group__2__Impl\r\n {\r\n pushFollow(FollowSets000.FOLLOW_rule__CellularAutomata__Group__2__Impl_in_rule__CellularAutomata__Group__21753);\r\n rule__CellularAutomata__Group__2__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "bf1b6fb23c89f3c171eef7b75a89b0ef", "score": "0.5661065", "text": "public final void rule__Check__Group_8_0__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:4763:1: ( rule__Check__Group_8_0__2__Impl )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:4764:2: rule__Check__Group_8_0__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Check__Group_8_0__2__Impl_in_rule__Check__Group_8_0__210104);\r\n rule__Check__Group_8_0__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "26cd6da1585f6ba1eab26a548961a5ec", "score": "0.56585103", "text": "public final void rule__Metamodel__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:892:1: ( rule__Metamodel__Group__2__Impl )\n // ../emfviews.dsl.ui/src-gen/emfviews/dsl/ui/contentassist/antlr/internal/InternalSqlview.g:893:2: rule__Metamodel__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__Metamodel__Group__2__Impl_in_rule__Metamodel__Group__21808);\n rule__Metamodel__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "9eee833c75c57561554687e3c7a16c58", "score": "0.56535256", "text": "public final void rule__Update__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1463:1: ( rule__Update__Group__2__Impl rule__Update__Group__3 )\n // InternalMyDsl.g:1464:2: rule__Update__Group__2__Impl rule__Update__Group__3\n {\n pushFollow(FOLLOW_17);\n rule__Update__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Update__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2aa4792e6408768552d678c0d3bd8695", "score": "0.5649321", "text": "public final void rule__Resume__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLPDSL.g:1885:1: ( rule__Resume__Group__1__Impl rule__Resume__Group__2 )\r\n // InternalLPDSL.g:1886:2: rule__Resume__Group__1__Impl rule__Resume__Group__2\r\n {\r\n pushFollow(FOLLOW_5);\r\n rule__Resume__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_2);\r\n rule__Resume__Group__2();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "f26a923042566925bda849b12013a943", "score": "0.5648469", "text": "public final void rule__ThroughLifePlanning__Group_9__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5416:1: ( rule__ThroughLifePlanning__Group_9__1__Impl )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:5417:2: rule__ThroughLifePlanning__Group_9__1__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group_9__1__Impl_in_rule__ThroughLifePlanning__Group_9__110844);\n rule__ThroughLifePlanning__Group_9__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "d9cd63de4133f0b300d073581da7b3aa", "score": "0.56477463", "text": "public final void rule__Rule__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:4020:1: ( rule__Rule__Group_0__1__Impl rule__Rule__Group_0__2 )\n // InternalRPG.g:4021:2: rule__Rule__Group_0__1__Impl rule__Rule__Group_0__2\n {\n pushFollow(FOLLOW_36);\n rule__Rule__Group_0__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Rule__Group_0__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "32bb0e4f0d7ffcd40ebe3369bc51d481", "score": "0.56456625", "text": "public final void rule__At__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDependency.g:453:1: ( rule__At__Group__1__Impl rule__At__Group__2 )\n // InternalDependency.g:454:2: rule__At__Group__1__Impl rule__At__Group__2\n {\n pushFollow(FOLLOW_6);\n rule__At__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__At__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "c1ebf68acd40ddf7174907929b241e65", "score": "0.56454545", "text": "public final void rule__Effect__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRPG.g:1724:1: ( rule__Effect__Group__1__Impl )\n // InternalRPG.g:1725:2: rule__Effect__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Effect__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2ebbdf20adc3819079e5b56f44d8f133", "score": "0.56432927", "text": "public final void rule__XSwitchExpression__Group_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:12438:1: ( rule__XSwitchExpression__Group_2__0__Impl )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:12439:2: rule__XSwitchExpression__Group_2__0__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XSwitchExpression__Group_2__0__Impl_in_rule__XSwitchExpression__Group_2__025214);\r\n rule__XSwitchExpression__Group_2__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "80843b1b36c541e15d305454a17d4d0f", "score": "0.564152", "text": "public final void rule__ThroughLifePlanning__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4726:1: ( rule__ThroughLifePlanning__Group__0__Impl rule__ThroughLifePlanning__Group__1 )\n // ../org.xtext.Scenario.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalScenario.g:4727:2: rule__ThroughLifePlanning__Group__0__Impl rule__ThroughLifePlanning__Group__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group__0__Impl_in_rule__ThroughLifePlanning__Group__09478);\n rule__ThroughLifePlanning__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__ThroughLifePlanning__Group__1_in_rule__ThroughLifePlanning__Group__09481);\n rule__ThroughLifePlanning__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "1c7d52d99ca40eee088981a2216cfb76", "score": "0.0", "text": "public char[] getOrg_id() {\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
331cf3e9ed9828e0510b4ebabd4b5959
//////////////////////////////////////////////////// Recording functionality ////////////////////////////////////////////////////
[ { "docid": "6de63385c4bce9b2a4b4920e97ba05eb", "score": "0.6806642", "text": "public static int startRecording(String filename) {\n logger.debug(\"Enter startRecording\");\n\n DataLine.Info info;\n TargetDataLine targetDataLine;\n AudioFormat audioFormat;\n AudioFileFormat.Type targetType;\n\n // Initialise preferences\n audioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, 44100.0F, 16, 2, 4, 44100.0F, false);\n targetType = AudioFileFormat.Type.WAVE;\n\n // Data line later used to read data\n info = new DataLine.Info(TargetDataLine.class, audioFormat);\n targetDataLine = null;\n try {\n targetDataLine = (TargetDataLine) AudioSystem.getLine(info);\n targetDataLine.open(audioFormat);\n } catch (LineUnavailableException e) {\n // CALL_debug.printlog(CALL_debug.MOD_IO, CALL_debug.ERROR,\n // \"Unable to get a recording line\");\n logger.error(\"Unable to get a recording line\");\n return -1;\n }\n // 2012.02.17 T.Tajima add\n catch (IllegalArgumentException e) {\n JOptionPane.showMessageDialog(null,\n \"処理中にエラーが発生しました\\nマイクが接続されていないか、または\\nお使いの環境が44.1kHz 16bit stereo PCMの録音に対応しているかご確認ください\", \"録音エラー\",\n JOptionPane.INFORMATION_MESSAGE);\n logger.error(\"Cannot recording by IllegalArgumentException\");\n return -1;\n }\n\n // Create SimpleAudioRecorder object for starting and stopping the\n // recording, reading audio data, and outputting to file\n recorder = new CALL_record(targetDataLine, targetType, filename);\n\n // Start Recording\n recordingInIO = true;\n recorder.start();\n\n logger.debug(\"Return from startRecording\");\n return 0;\n }", "title": "" } ]
[ { "docid": "ca1195ce26d81f9e5fe190321d18c05a", "score": "0.76681995", "text": "private void afterRecording() {\n }", "title": "" }, { "docid": "345007306ec56f6bbb26dda9cd0bc016", "score": "0.7418818", "text": "public void recordFrame() {\r\n \t\tif (isRecording)\r\n \t\t\tmovieMaker.addFrame();\r\n \t}", "title": "" }, { "docid": "405b15ba561796a32d0f4faf7a6f96b6", "score": "0.70854723", "text": "private void recordAudio() {\r\n\t\ttry {\r\n\t\t\tadFormat = getAudioFormat();\r\n\t\t\tDataLine.Info dataLineInfo = new DataLine.Info(TargetDataLine.class, adFormat);\r\n\t\t\ttargetDataLine = (TargetDataLine) AudioSystem.getLine(dataLineInfo);\r\n\t\t\ttargetDataLine.open(adFormat);\r\n\t\t\ttargetDataLine.start();\r\n\r\n\t\t\tThread recordThread = new Thread(new recordThread());\r\n\t\t\trecordThread.start();\r\n\t\t} catch (Exception e) {\r\n\t\t\tStackTraceElement stackEle[] = e.getStackTrace();\r\n\t\t\tfor (StackTraceElement val : stackEle) {\r\n\t\t\t\tSystem.out.println(val);\r\n\t\t\t}\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d86b5169dd1cbbae781f127f40109af9", "score": "0.70322335", "text": "boolean isRecording();", "title": "" }, { "docid": "744fb09404531e918ce8b82c65eb2695", "score": "0.7009828", "text": "private void startRecording() {\n mRecorder = new MediaRecorder();\n mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);\n /**In the lines below, we create a directory VoiceRecorderSimplifiedCoding/Audios in the phone storage\n * and the audios are being stored in the Audios folder **/\n\n\n\n File root = android.os.Environment.getExternalStorageDirectory();\n File file = new File(root.getAbsolutePath() + \"/Audios\");\n if (!file.exists()) {\n file.mkdirs();\n }\n\n fileName = root.getAbsolutePath() + \"/Audios/\" +\n String.valueOf(System.currentTimeMillis() + \".mp3\");\n Log.d(\"filename\",fileName);\n mRecorder.setOutputFile(fileName);\n mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);\n\n try {\n mRecorder.prepare();\n imageViewRecord.setEnabled(false);\n mRecorder.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n lastProgress = 0;\n seekBar.setProgress(0);\n stopPlaying();\n //starting the chronometer\n chronometer.setBase(SystemClock.elapsedRealtime());\n chronometer.start();\n }", "title": "" }, { "docid": "0db096e0191bc3a9ebf557e57a558a78", "score": "0.69750255", "text": "void startRecording()\n\t{\n\t\tif(android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED))\n\t\t{\n\t\t\t// create the directory\n\t\t\tFile external = Environment.getExternalStorageDirectory();\n\t\t\tFile audio = new File(external.getAbsolutePath() + \"/stegDroid\"); \n\t\t\taudio.mkdirs();\n\t\t\tLog.w(\"Rehearsal Assistant\", \"writing to directory \" + audio.getAbsolutePath());\n\n\n\t\t\t// set to uncompressed\n\t\t\tboolean uncompressed = true;\n\n\t\t\t// construct file name\n\t\t\tmOutputFile =\n\t\t\t\taudio.getAbsolutePath() + \"/unencoded\"\n\t\t\t\t+ (uncompressed ? \".wav\" : \".3gp\");\n\t\t\tLog.w(\"Rehearsal Assistant\", \"writing to file \" + mOutputFile);\n\n\t\t\t// start the recording\n\t\t\tif(!uncompressed)\n\t\t\t{\n\t\t\t\tmRecorder = new RehearsalAudioRecorder(false, 0, 0, 0, 0);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint i=0;\n\t\t\t\tdo\n\t\t\t\t{\n\t\t\t\t\tif (mRecorder != null)\n\t\t\t\t\t\tmRecorder.release();\n\t\t\t\t\tmRecorder = new RehearsalAudioRecorder(true, AudioSource.MIC, sampleRates[i], AudioFormat.CHANNEL_CONFIGURATION_MONO,\n\t\t\t\t\t\t\tAudioFormat.ENCODING_PCM_16BIT);\n\t\t\t\t} while((++i<sampleRates.length) & !(mRecorder.getState() == RehearsalAudioRecorder.State.INITIALIZING));\n\t\t\t}\n\t\t\tmRecorder.setOutputFile(mOutputFile);\n\t\t\tmRecorder.prepare();\n\t\t\tmRecorder.start(); // Recording is now started\n\n\t\t}\n\t\tmState = State.RECORDING;\n\t}", "title": "" }, { "docid": "3e34b8c8f392c5c8e681c8453473895d", "score": "0.696866", "text": "private int InitRecording(int r21, int r22) {\n /*\n r20 = this;\n r1 = r20;\n r8 = r21;\n r0 = r22;\n r2 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n r9 = 2;\n if (r2 == 0) goto L_0x0023;\n L_0x000d:\n r2 = \"TRAE\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"InitRecording entry:\";\n r3.append(r4);\n r3.append(r8);\n r3 = r3.toString();\n com.tencent.rtmp.sharp.jni.QLog.w(r2, r9, r3);\n L_0x0023:\n r2 = r1._isRecording;\n r10 = -1;\n if (r2 != 0) goto L_0x01f7;\n L_0x0028:\n r2 = r1._audioRecord;\n if (r2 != 0) goto L_0x01f7;\n L_0x002c:\n if (r0 <= r9) goto L_0x0030;\n L_0x002e:\n goto L_0x01f7;\n L_0x0030:\n r2 = 16;\n if (r0 != r9) goto L_0x0039;\n L_0x0034:\n r2 = 12;\n r11 = 12;\n goto L_0x003b;\n L_0x0039:\n r11 = 16;\n L_0x003b:\n r12 = android.media.AudioRecord.getMinBufferSize(r8, r11, r9);\n r2 = r8 * 20;\n r2 = r2 * r0;\n r2 = r2 * 2;\n r13 = r2 / 1000;\n r0 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n if (r0 == 0) goto L_0x0083;\n L_0x004d:\n r0 = \"TRAE\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"InitRecording: min rec buf size is \";\n r2.append(r3);\n r2.append(r12);\n r3 = \" sr:\";\n r2.append(r3);\n r3 = r20.getLowlatencySamplerate();\n r2.append(r3);\n r3 = \" fp\";\n r2.append(r3);\n r3 = r20.getLowlatencyFramesPerBuffer();\n r2.append(r3);\n r3 = \" 20msFZ:\";\n r2.append(r3);\n r2.append(r13);\n r2 = r2.toString();\n com.tencent.rtmp.sharp.jni.QLog.w(r0, r9, r2);\n L_0x0083:\n r0 = r8 * 5;\n r0 = r0 / 200;\n r1._bufferedRecSamples = r0;\n r0 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n if (r0 == 0) goto L_0x00a7;\n L_0x008f:\n r0 = \"TRAE\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \" rough rec delay set to \";\n r2.append(r3);\n r3 = r1._bufferedRecSamples;\n r2.append(r3);\n r2 = r2.toString();\n com.tencent.rtmp.sharp.jni.QLog.w(r0, r9, r2);\n L_0x00a7:\n r0 = r1._audioRecord;\n r14 = 0;\n if (r0 == 0) goto L_0x00b3;\n L_0x00ac:\n r0 = r1._audioRecord;\n r0.release();\n r1._audioRecord = r14;\n L_0x00b3:\n r15 = 4;\n r7 = new int[r15];\n r7 = {0, 1, 5, 0};\n r0 = r1._audioSourcePolicy;\n r0 = com.tencent.rtmp.sharp.jni.TraeAudioManager.getAudioSource(r0);\n r2 = 0;\n r7[r2] = r0;\n r0 = r12;\n r6 = 0;\n L_0x00c4:\n r2 = r7.length;\n if (r6 >= r2) goto L_0x019d;\n L_0x00c7:\n r2 = r1._audioRecord;\n if (r2 != 0) goto L_0x019d;\n L_0x00cb:\n r2 = r7[r6];\n r1._audioSource = r2;\n r5 = 1;\n r4 = 1;\n L_0x00d1:\n if (r4 > r9) goto L_0x0192;\n L_0x00d3:\n r3 = r12 * r4;\n r0 = r13 * 4;\n if (r3 >= r0) goto L_0x00e4;\n L_0x00d9:\n if (r4 >= r9) goto L_0x00e4;\n L_0x00db:\n r17 = r4;\n r19 = r6;\n r16 = r7;\n r15 = 1;\n goto L_0x0187;\n L_0x00e4:\n r0 = new android.media.AudioRecord;\t Catch:{ Exception -> 0x014f }\n r2 = r1._audioSource;\t Catch:{ Exception -> 0x014f }\n r16 = 2;\n r17 = r2;\n r2 = r0;\n r18 = r3;\n r3 = r17;\n r17 = r4;\n r4 = r21;\n r15 = 1;\n r5 = r11;\n r19 = r6;\n r6 = r16;\n r16 = r7;\n r7 = r18;\n r2.<init>(r3, r4, r5, r6, r7);\t Catch:{ Exception -> 0x014b }\n r1._audioRecord = r0;\t Catch:{ Exception -> 0x014b }\n r0 = r1._audioRecord;\n r0 = r0.getState();\n if (r0 == r15) goto L_0x0147;\n L_0x010c:\n r0 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n if (r0 == 0) goto L_0x013d;\n L_0x0112:\n r0 = \"TRAE\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"InitRecording: rec not initialized,try agine, minbufsize:\";\n r2.append(r3);\n r3 = r18;\n r2.append(r3);\n r4 = \" sr:\";\n r2.append(r4);\n r2.append(r8);\n r4 = \" as:\";\n r2.append(r4);\n r4 = r1._audioSource;\n r2.append(r4);\n r2 = r2.toString();\n com.tencent.rtmp.sharp.jni.QLog.w(r0, r9, r2);\n goto L_0x013f;\n L_0x013d:\n r3 = r18;\n L_0x013f:\n r0 = r1._audioRecord;\n r0.release();\n r1._audioRecord = r14;\n goto L_0x0187;\n L_0x0147:\n r3 = r18;\n r0 = r3;\n goto L_0x0196;\n L_0x014b:\n r0 = move-exception;\n r3 = r18;\n goto L_0x0157;\n L_0x014f:\n r0 = move-exception;\n r17 = r4;\n r19 = r6;\n r16 = r7;\n r15 = 1;\n L_0x0157:\n r2 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n if (r2 == 0) goto L_0x017c;\n L_0x015d:\n r2 = \"TRAE\";\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r0 = r0.getMessage();\n r4.append(r0);\n r0 = \" _audioRecord:\";\n r4.append(r0);\n r0 = r1._audioRecord;\n r4.append(r0);\n r0 = r4.toString();\n com.tencent.rtmp.sharp.jni.QLog.w(r2, r9, r0);\n L_0x017c:\n r0 = r1._audioRecord;\n if (r0 == 0) goto L_0x0185;\n L_0x0180:\n r0 = r1._audioRecord;\n r0.release();\n L_0x0185:\n r1._audioRecord = r14;\n L_0x0187:\n r4 = r17 + 1;\n r0 = r3;\n r7 = r16;\n r6 = r19;\n r5 = 1;\n r15 = 4;\n goto L_0x00d1;\n L_0x0192:\n r19 = r6;\n r16 = r7;\n L_0x0196:\n r6 = r19 + 1;\n r7 = r16;\n r15 = 4;\n goto L_0x00c4;\n L_0x019d:\n r2 = r1._audioRecord;\n if (r2 != 0) goto L_0x01af;\n L_0x01a1:\n r0 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n if (r0 == 0) goto L_0x01ae;\n L_0x01a7:\n r0 = \"TRAE\";\n r2 = \"InitRecording fail!!!\";\n com.tencent.rtmp.sharp.jni.QLog.w(r0, r9, r2);\n L_0x01ae:\n return r10;\n L_0x01af:\n r2 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n if (r2 == 0) goto L_0x01e7;\n L_0x01b5:\n r2 = \"TRAE\";\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \" [Config] InitRecording: audioSession:\";\n r3.append(r4);\n r4 = r1._sessionId;\n r3.append(r4);\n r4 = \" audioSource:\";\n r3.append(r4);\n r4 = r1._audioSource;\n r3.append(r4);\n r4 = \" rec sample rate set to \";\n r3.append(r4);\n r3.append(r8);\n r4 = \" recBufSize:\";\n r3.append(r4);\n r3.append(r0);\n r0 = r3.toString();\n com.tencent.rtmp.sharp.jni.QLog.w(r2, r9, r0);\n L_0x01e7:\n r0 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n if (r0 == 0) goto L_0x01f4;\n L_0x01ed:\n r0 = \"TRAE\";\n r2 = \"InitRecording exit\";\n com.tencent.rtmp.sharp.jni.QLog.w(r0, r9, r2);\n L_0x01f4:\n r0 = r1._bufferedRecSamples;\n return r0;\n L_0x01f7:\n r0 = com.tencent.rtmp.sharp.jni.QLog.isColorLevel();\n if (r0 == 0) goto L_0x0215;\n L_0x01fd:\n r0 = \"TRAE\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"InitRecording _isRecording:\";\n r2.append(r3);\n r3 = r1._isRecording;\n r2.append(r3);\n r2 = r2.toString();\n com.tencent.rtmp.sharp.jni.QLog.e(r0, r9, r2);\n L_0x0215:\n return r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.rtmp.sharp.jni.AudioDeviceInterface.InitRecording(int, int):int\");\n }", "title": "" }, { "docid": "3b69f2e891086c7a67e6e831d0caa1e9", "score": "0.6928167", "text": "protected void resumeRecording() {\n }", "title": "" }, { "docid": "ceabf228d9e81e19313ee8fe654ca1bf", "score": "0.69001114", "text": "private String startRecording(){\n String path = getFilename();\n recorder = new MediaRecorder();\n recorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n recorder.setOutputFormat(output_formats[currentFormat]);\n recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);\n recorder.setOutputFile(path);\n recorder.setOnErrorListener(errorListener);\n recorder.setOnInfoListener(infoListener);\n\n try {\n recorder.prepare();\n recorder.start();\n } catch (IllegalStateException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return path;\n }", "title": "" }, { "docid": "6a80db5b959674265fdf6199c8a82233", "score": "0.6892737", "text": "private void startRecording() {\n String recordPath = getExternalFilesDir(\"/\").getAbsolutePath();\n\n //Get current date and time\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy_MM_dd_hh_mm_ss\", Locale.CANADA);\n Date now = new Date();\n\n //initialize filename variable with date and time at the end to ensure the new file wont overwrite previous file\n recordFile = \"Recording_\" + formatter.format(now) + \".wav\";\n recorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n //recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);\n recorder.setOutputFormat(AudioFormat.ENCODING_PCM_16BIT);\n\n //recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);\n recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);\n\n recorder.setOutputFile(recordPath + \"/\" + recordFile);\n\n recorder.setAudioChannels(1);\n\n try {\n recorder.prepare();\n Log.e(\"AudioRecordTest\", \"preparing....\");\n } catch (IOException e) {\n Log.e(\"AudioRecordTest\", \"prepare failed \" + e.getMessage());\n }\n\n recorder.start();\n }", "title": "" }, { "docid": "ee4ae35977bed769af050da2dacba3bf", "score": "0.6872807", "text": "@Override\n public void onRecordingStarted(Room room) {\n\n }", "title": "" }, { "docid": "fb409df1fde4aa1fb4772bfd1c8ca8f0", "score": "0.6851176", "text": "public void startRecording() throws java.lang.IllegalStateException { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "4b998dc4c9ad039b04add814796cfd3b", "score": "0.68299186", "text": "private void startRecording() {\n myAudioRecorder = new MediaRecorder();\n myAudioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n myAudioRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);\n myAudioRecorder.setOutputFile(generateRecordPath());\n myAudioRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);\n\n try {\n myAudioRecorder.prepare();\n } catch (IOException e) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n WRITE_STORAGE_PERMISSION);\n }\n\n try\n {\n myAudioRecorder.start();\n }catch (IllegalStateException e)\n {\n Toast toast = Toast.makeText(getApplicationContext(), \"Can't record voice message, please try again\", Toast.LENGTH_SHORT);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n }\n }", "title": "" }, { "docid": "3a0e6829549ec70713679794bd4ab2b5", "score": "0.6824251", "text": "@Override public void startRecording() {\n Toast.makeText(getActivity(), \"Start Recording\", Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "c0791af092d0df76c9eae5cd70346c56", "score": "0.6742769", "text": "public interface Recorder {\n\n void onPlay(boolean start);\n\n void onRecord(boolean start);\n\n void onPause();\n\n void startPlaying();\n\n void stopPlaying();\n\n String startRecording();\n\n void stopRecording();\n\n void stop();\n}", "title": "" }, { "docid": "5db5bb0f789effcde684266303900909", "score": "0.6691334", "text": "protected void transportRecord(){\r\n\t\tswitch(player.getStatus()){\r\n\t\t\tcase AudioPlayer.READY_FOR_REC:\r\n\t\t\t\ttry {\r\n\t\t\t\t\tplayer.rec();\r\n\t\t\t\t} catch (NotReadyException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\terrorMessage(e.getMessage());\r\n\t\t\t\t} catch (LineUnavailableException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\terrorMessage(e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\terrorMessage(\"Not ready for recording: \" + player.getStatus());\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "762050797984a8c39874f0eecba60ec8", "score": "0.66765416", "text": "@Override\n\t\t\tpublic void voiceRecordingStarted(String recordingPath) {\n\n\t\t\t}", "title": "" }, { "docid": "f764c4e49dd464e98e774021b0b91a43", "score": "0.66355914", "text": "public void run(){\n\t\t \t\t \t\n\t\t \t\t \t // We're important...\n\t\t \t\t \tandroid.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_AUDIO);\n\n\t\t \t\t \t int minBufferSize = AudioRecord.getMinBufferSize(sampleRate, channelConfig, audioEncoding);\n\n\t\t \t\t\t int bufferSize = 2 * minBufferSize;\n\t\t \t\t\t AudioRecord recordInstance =\n\t\t \t\t\t new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, channelConfig, audioEncoding,\n\t\t \t\t\t bufferSize);\n\t\t \t\t\t \n\t\t \t\t\t if (recordInstance.getState() != AudioRecord.STATE_INITIALIZED) {\n\t\t \t\t\t \n\t\t \t\t\t \t Log.e(WavRecorder.class.getName(), \"Unable to access the audio recording hardware - is your mic working?\");\n\t\t \t\t\t \t \n\n\t\t \t\t\t return;\n\t\t \t\t\t }\n\n\t\t \t\t\t byte[] tempBuffer = new byte[bufferSize];\n\n\t\t \t\t\t \n\t\t \t\t\t outFile = new File(fileName);\n\t\t \t\t\t if (outFile.exists())\n\t\t \t\t\t outFile.delete();\n\n\t\t \t\t\t FileOutputStream outStream = null;\n\t\t \t\t\t try {\n\t\t \t\t\t outFile.createNewFile();\n\t\t \t\t\t outStream = new FileOutputStream(outFile);\n\t\t \t\t\t outStream.write(createHeader(0));// Write a dummy header for a file of length 0 to get updated later\n\t\t \t\t\t } catch (Exception e) {\n\t\t \t\t\t \t \n\t\t \t\t\t \t Log.e(WavRecorder.class.getName(), \"unable to create file\");\n\t\t \t\t\t \t \n\n\t\t \t\t\t return;\n\t\t \t\t\t }\n\n\t\t \t\t\t recordInstance.startRecording();\n/**\n *\trecording cycle\t \t\t\t \t \t\t\t \n*/\t\t \t\t\t try {\n\t\t \t\t\t \t \n\t\t \t\t\t \t Date start = new Date();\n\t\t \t\t\t \t Date end = new Date(); \n\t\t \t\t\t // let record for some seconds\n\t\t \t\t\t \t while (end.getTime() - start.getTime() < seconds * 1000) {\n\t\t \t\t\t // record into buffer\n\t\t \t\t\t \trecordInstance.read(tempBuffer, 0, bufferSize);\n\t\t \t\t\t outStream.write(tempBuffer);\n\t\t \t\t\t // update time \n\t\t \t\t\t end = new Date();\n\t\t \t\t\t }\n\t\t \t\t\t } catch (final IOException e) {\n\t\t \t\t\t \t Log.e(WavRecorder.class.getName(), e.getMessage());\n\n\t\t \t\t\t } catch (OutOfMemoryError om) {\n\t\t \t\t\t \t Log.e(WavRecorder.class.getName(), \"out of memory\");\n\n\t\t \t\t\t }\n\n\t\t \t\t\t // we're done recording\n\t\t \t\t\t Log.d(\"Capture\", \"Stopping recording\");\n\t\t \t\t\t recordInstance.stop();\n\t\t \t\t\t try {\n\t\t \t\t\t outStream.close();\n\t\t \t\t\t \n\t\t \t\t\t } catch (Exception e) {\n\t\t \t\t\t e.printStackTrace();\n\t\t \t\t\t }\n\t\t \t\t\t \n\t\t \t\t\t isListening = false;\n\t\t \t\t\t \n\t\t \t\t\t finalizeWriteToFile();\n\t\t \t\t\t \n\t\t \t\t }", "title": "" }, { "docid": "dca4ccac29ac3d28dda799e20fafa26e", "score": "0.662808", "text": "@Override\n public void onRecordingStarted(Room room) {\n Log.d(TAG, \"onRecordingStarted\");\n }", "title": "" }, { "docid": "3ba7b8d44d413503d4792b12f911d014", "score": "0.6621673", "text": "public String startRecording() {\n if (!isArmed()) {\n return null;\n }\n\n final FileManager fileManager = View.context.getFileManager();\n File recordDirectory = fileManager.recordDirectoryForSource(recordSourceId);\n final String recordDirectoryPath = recordDirectory.getAbsolutePath();\n final List<String> allRecordedFiles = Arrays.asList(recordDirectory.list());\n String recordFileName;\n do {\n recordFileName = \"R\" + (currFileNum++) + \".wav\";\n } while (allRecordedFiles.contains(recordFileName));\n currRecordFileName = recordDirectoryPath + \"/\" + recordFileName;\n\n try {\n FileOutputStream out = WavFileUtil.writeWavFileHeader(currRecordFileName, 0, 0);\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n state = State.RECORDING;\n if (listener != null) {\n listener.onRecordStart();\n }\n return currRecordFileName;\n }", "title": "" }, { "docid": "20190e2320f6141844a9d19cdf93b867", "score": "0.66171145", "text": "@Override\n\t public void run() {\n\t // We're important...\n\t android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_AUDIO);\n\n\t // Allocate Recorder and Start Recording...\n\t int minBufferSize = AudioRecord.getMinBufferSize(sampleRate, channelConfig, audioEncoding);\n\t Log.d(\"minbuffersize reqd for audiorecorder obj creation\",\"\"+minBufferSize);\n\t if (AudioRecord.ERROR_BAD_VALUE == minBufferSize || AudioRecord.ERROR == minBufferSize){\n\t runOnUiThread(new Runnable() {\n\t @Override\n\t public void run() {\n\t showDialog(\"Error recording audio\", \"Your audio hardware doesn't support the sampling rate 44100.\");\n\t toggleButton.performClick();\n\t }\n\t });\n\t return;\n\t }\n\t int bufferSize = 2 * minBufferSize;\n\t Log.d(\"bufferSize\",\"\"+bufferSize);\n\t recordInstance =\n\t new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRate, channelConfig, audioEncoding,\n\t bufferSize);\n\t Log.d(\"recordInstance in Capture\",\"\"+recordInstance);\n\t if (recordInstance.getState() != AudioRecord.STATE_INITIALIZED) {\n\t runOnUiThread(new Runnable() {\n\t @Override\n\t public void run() {\n\t showDialog(\"Error recording audio\", \"Unable to access the audio recording hardware - is your mic working?\");\n\t toggleButton.performClick();\n\t }\n\t });\n\t return;\n\t }\n \n\t byte[] tempBuffer = new byte[bufferSize];\n\t String sdDirectory = Environment.getExternalStorageDirectory().getAbsolutePath().toString();\n\t outFile = new File(sdDirectory + \"/ContinuousVoiceRecorder\"+\"/\" + filename);\n\t if (outFile.exists())\n\t outFile.delete();\n\t outStream = null;\n\t try {\n\t outFile.createNewFile();\n\t outStream = new FileOutputStream(outFile);\n\t Log.d(\"outstream\", \"\"+outStream);\n\t outStream.write(createHeader(0));// Write a dummy header for a file of length 0 to get updated later\n\t } catch (Exception e) {\n\t runOnUiThread(new Runnable() {\n\t @Override\n\t public void run() {\n\t showDialog(\"Error creating file\", \"The WAV file you specified \"\n\t + \"couldn't be created. Try again with a \" + \"different filename.\");\n\t outFile = null;\n\t toggleButton.performClick();\n\t }\n\t });\n\t return;\n\t }\n\n\t recordInstance.startRecording();\n\n\t try {\n\t while (isRecording) {\n\t \trecordInstance.read(tempBuffer, 0, bufferSize);\n\t outStream.write(tempBuffer);\n\t }\n\t } catch (final IOException e) {\n\t runOnUiThread(new Runnable() {\n\n\t @Override\n\t public void run() {\n\t showDialog(\"IO Exception\", \"An exception occured when writing to disk or reading from the microphone\\n\"\n\t + e.getLocalizedMessage()\n\t + \"\\nWhat you have recorded so far should be saved to disk.\");\n\t toggleButton.performClick();\n\t }\n\n\t });\n\t } catch (OutOfMemoryError om) {\n\t runOnUiThread(new Runnable() {\n\t @Override\n\t public void run() {\n\t showDialog(\"Out of memory\", \"The system has been \" + \"too strong for too long - but what you \"\n\t + \"recorded up to now has been saved.\");\n\t System.gc();\n\t toggleButton.performClick();\n\t }\n\t });\n\t }\n\n\t \n\t }", "title": "" }, { "docid": "da3f185fe0ff6655f91d23e4262d23e8", "score": "0.6604327", "text": "private void startRecording(){\n\t\thandler = new Handler(){\n\t\t\t@Override\n\t\t\tpublic void handleMessage(Message msg){\t\t\t\t\n\t\t\t\tFLACRecorder.Amplitudes amp = (FLACRecorder.Amplitudes)msg.obj;\n\t\t\t\tLog.d(\"DEBUG\",\"Handler message: \" + amp.toString());\n\t\t\t\tif(msg.toString() == String.valueOf(MSG_AMPLITUDES)){\t\t\t\t\t\n\t\t\t\t\tLog.d(\"DEBUG\",\"Amplitude message\");\n\t\t\t\t\t//update progress bar here\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t};\n\t\t\n\t\t//init FLACRecorder\n\t\tfullPathLastRecord = MUSIC_PATH + \"/voiceRecord.wav\";\n\t\tfr = new FLACRecorder(fullPathLastRecord,handler);\n\t\tfr.run();\n\t\tisRecording = true;\n\t}", "title": "" }, { "docid": "d687f3fb98cc202a00b32744d1fcac06", "score": "0.653907", "text": "@Override\n public void run() {\n stopRecording();\n }", "title": "" }, { "docid": "3e4e9eb8a7c30d218e60bf3f00535c4c", "score": "0.6530666", "text": "public void start() {\n audioRecorder.startRecording();\n currentlyRecording = true;\n\n //New thread for recording to not overload the graphical\n recordingThread = new Thread(new Runnable() {\n @Override\n public void run() {\n writeAudioFile();\n }\n });\n\n recordingThread.start();\n\n\n }", "title": "" }, { "docid": "5ba6bc54cf1b68d5607840e96899b1e6", "score": "0.65306276", "text": "public abstract int getRecordingMode();", "title": "" }, { "docid": "1879fe3b0d1850c3b6a61084d58970ea", "score": "0.65108085", "text": "private void startRecording() {\n // initialize video camera\n // test if MediaRecorder is working correctly and if file could be written\n if (prepareVideoRecorder() & write(GPXFILE_BEGINNING)) {\n\n // set wakelock until recording is stopped\n wLock.acquire();\n\n // write XML header for Trackpoints\n write(TRACKPOINTS_BEGINNING);\n\n // Camera is available and unlocked, MediaRecorder is prepared,\n // now you can start recording\n mMediaRecorder.start();\n\n // inform the user that recording has started\n captureButton.setText(\"Stop\");\n\n // set the backround color to red when recording\n findViewById(R.id.background_capture_video_and_gps)\n .setBackgroundColor(Color.RED);\n\n isRecording = true;\n } else {\n // prepare didn't work, release the camera\n releaseMediaRecorder();\n Toast.makeText(getApplicationContext(),\n \"ERROR! Could not start Recorder\", Toast.LENGTH_LONG)\n .show();\n }\n }", "title": "" }, { "docid": "021c68883be734eb2c9c8e6bc8648ffc", "score": "0.649798", "text": "@Override\n public void onRecordingStopped(Room room) {\n\n }", "title": "" }, { "docid": "4b94a27006256b7e1f8d10f050f7edaf", "score": "0.6461271", "text": "private void startRecording() {\n\t\tif (isRecording) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.setupMediaRecorder();\n\t\t\n\t\t// Set the stop button to fully opaque.\n\t\tbtnStop.getBackground().setColorFilter(Color.argb(255, 255, 0, 0), PorterDuff.Mode.MULTIPLY);\n\t\tbtnStop.setTextColor(Color.argb(255, 255, 255, 255));\n\t\tbtnStop.setClickable(true);\n\t\tbtnStart.getBackground().setColorFilter(Color.argb(102, 102, 255, 102), PorterDuff.Mode.MULTIPLY);\n\t\tbtnStart.setTextColor(Color.argb(102, 0, 0, 0));\n\t\t\n\t\t// The filepath we will be saving to should have already been set. If not, set it.\n\t\tif (currentFileRecording == null) {\n\t\t\tcurrentFileRecording = this.fileForSDCardWrite();\t\n\t\t}\n\t\t\n\t\tString filepath = currentFileRecording.getAbsolutePath();\n\t\trecorder.setOutputFile(filepath);\n\t\ttry {\n\t\t\trecorder.prepare();\n\t\t} catch (IllegalStateException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\trecorder.start();\n\t\tWorkflowLogger.log(\"AudioEntryActivity - started recording audio\");\n\t\tToast.makeText(this, \"Now recording...\", Toast.LENGTH_SHORT).show();\n\t\tisRecording = true;\n\n\t\t// Start the timer counter.\n\t\tstartTimer();\n\t}", "title": "" }, { "docid": "f05bd8996f8addcc846a82a593ee8fe9", "score": "0.6418795", "text": "private void startRecording() {\n\t\ttry {\n\t\t\tmRecordButton.setText(mRecStateText[2]);\n\t\t\tmRecordButton.setEnabled(false);\n\t\t\tmAPIConfig = new APIConfiguration(mAppKeyTextBox.getText(), mAppSecretTextBox.getText(), mServerListBox.getSelectedIndex());\n\t\t\tmMicrophoneSpeechRecognizer.setAPIConfig(mAPIConfig);\n\t\t\tmMicrophoneSpeechRecognizer.start();\n\t\t\tmRecordButton.setText(mRecStateText[1]);\n\t\t\tmRecordButton.setEnabled(true);\n\t\t\tmIsRecording = true;\n\t\t} catch (Exception ex) {\n\t\t\tcancelRecognizing();\n\t\t\tJOptionPane.showMessageDialog(mFrame, ex.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}", "title": "" }, { "docid": "2abcc3fb071e4fe0897d0255111f334d", "score": "0.64182705", "text": "private void startRecording() {\n // initializing MediaRecorder\n// recorder = new MediaRecorder();\n// recorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n// recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);\n// recorder.setOutputFile(fileName);\n// recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);\n\n minBuffer = AudioRecord.getMinBufferSize(inSampleRate, AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT);\n\n audioRecord = new AudioRecord(\n MediaRecorder.AudioSource.MIC,\n inSampleRate,\n AudioFormat.CHANNEL_IN_MONO,\n AudioFormat.ENCODING_PCM_16BIT,\n minBuffer * 2\n );\n\n short[] buffer = new short[inSampleRate * 2 * 2];\n\n byte[] mp3buffer = new byte[(int) (7200 + buffer.length * 2 * 1.25)];\n\n try {\n outputStream = new FileOutputStream(new File(filePath));\n } catch (FileNotFoundException e) {\n Log.d(\"File\", \"File not Found\");\n e.printStackTrace();\n }\n\n androidLame = new LameBuilder()\n .setInSampleRate(inSampleRate)\n .setOutChannels(1)\n .setOutBitrate(32)\n .setOutSampleRate(inSampleRate)\n .build();\n System.out.println(\"Start Recording....\");\n Log.d(\"Recording\", \"Start Recording...\");\n\n audioRecord.startRecording();\n mSocket.on(\"stop record\", onRecStop);\n\n int bytesRead = 0;\n\n while(isRecording) {\n bytesRead = audioRecord.read(buffer, 0, minBuffer);\n Log.d(\"Recording\", \"bytes read = \" + bytesRead);\n\n if (bytesRead > 0) {\n int bytesEncoded = androidLame.encode(buffer, buffer, bytesRead, mp3buffer);\n\n if (bytesEncoded > 0) {\n try {\n Log.d(\"Recording\", \"Writing to File\");\n outputStream.write(mp3buffer, 0, bytesEncoded);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n\n int outputMp3Buff = androidLame.flush(mp3buffer);\n if (outputMp3Buff > 0) {\n try {\n outputStream.write(mp3buffer, 0, outputMp3Buff);\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n audioRecord.stop();\n audioRecord.release();\n androidLame.close();\n\n isRecording = false;\n\n // SENDING BYTE ARRAY TO SERVER\n String deviceName ;\n String fp = android.os.Build.FINGERPRINT;\n String[] fp_arr = fp.split(\"/\");\n deviceName = fp_arr[4];\n deviceName = deviceName.substring(0, deviceName.indexOf(':'));\n deviceName += Build.MANUFACTURER;\n deviceName += \"_\" + timestamp;\n\n try {\n File fileToSend = new File(filePath);\n byte[] byteArr = getBytes(fileToSend);\n\n //add another argument for recording name which should be the same name that's shown in main minus the brand name\n mSocket.emit(\"Send File\", byteArr, deviceName);\n }\n catch (Exception e){\n Log.e(LOG_TAG, \"No File Found\");\n }\n\n // go to finish recording\n Intent recorderIntent = new Intent(this, FinishRecording.class);\n startActivity(recorderIntent);\n finish();\n }", "title": "" }, { "docid": "7e2d09662a39af78edacccf2ac88044e", "score": "0.6385631", "text": "public boolean isRecording(){\n\t\treturn recording;\n\t}", "title": "" }, { "docid": "60845856756ccde3646294ca84880aa3", "score": "0.6381099", "text": "@Override\n public void onRecordingDone() {\n if (mLogVerbose) Log.v(TAG, \"Recording done callback triggered\");\n sendMessage(EFFECT_NONE, EFFECT_MSG_RECORDING_DONE);\n }", "title": "" }, { "docid": "099ef4c619f5b5eb5df7faab4ad70c49", "score": "0.6379979", "text": "Recording() {\n messages = new ArrayList<List<ShortMessage>>();\n timestamps = new ArrayList<List<Long>>();\n messages.add(new ArrayList<ShortMessage>());\n timestamps.add(new ArrayList<Long>());\n\n // Try to get the default synthesizer\n try {\n sequencer = MidiSystem.getSequencer();\n sequencer.open();\n } catch (MidiUnavailableException | NullPointerException e) {\n // Print an error message if sequencer is unavailable\n // TODO better error handing\n System.out.println(\"MIDI sequencer is unavailable\");\n }\n }", "title": "" }, { "docid": "928307e21378127ce7062e82b901819f", "score": "0.6375241", "text": "public interface IRecorder {\n\t\n\t// Records the A/B result\n\tpublic void recordResult(ABResult result);\n\n}", "title": "" }, { "docid": "4389931028b9e1a9d4cdb5a52cf67a3e", "score": "0.6371757", "text": "void onClickRecordButton() {\n if (null != mService) {\n if (mService.getCurrentState() == SoundRecorderService.STATE_RECORDING) {\n LogUtils.d(TAG, \"already in recording state, not disable button\");\n return;\n }\n disableButton();\n mService.startRecordingAsync(RecordParamsSetting.getRecordParams(mRequestedType, mSelectedFormat,\n mSelectedMode, mSelectEffectArray), (int) mMaxFileSize);\n }\n long mEndRecordingTime = System.currentTimeMillis();\n Log.i(TAG, \"[Performance test][SoundRecorder] recording end [\" + mEndRecordingTime + \"]\");\n }", "title": "" }, { "docid": "1c5aa387115349added49a298fc38b17", "score": "0.6361185", "text": "public interface VoiceRecorderCallback {\n\n boolean onRecorderReady();\n\n boolean onRecorderStart();\n\n void onRecordedFail(int errorCode);\n\n void onRecorded(short[] wave);\n\n void onRecorderStop();\n\n void onRecordVolume(double volume);\n\n}", "title": "" }, { "docid": "154ced9b3fec91a2107711978b5ded0a", "score": "0.63429475", "text": "public void playOccurred(RecordedPlay recordedPlay);", "title": "" }, { "docid": "c200c2304761da5cb050bf7dddf6890c", "score": "0.63425547", "text": "public interface IAudioRecorder {\n\n enum RecorderStatus {\n\n // 三种状态 :准备、录制、暂停、到达时限\n PREPARE, RECORDING, PAUSE, FILLED\n }\n\n // 开始\n void start();\n\n // 暂停\n void pause();\n\n // 重置\n void reset();\n\n // 释放\n void release();\n\n // 设置录制监听\n void setOnRecorderListener(OnRecorderListener recorderListener);\n\n // 设置录取时间限制,单位为秒\n void setTimeLimitation(int seconds);\n\n // 获取合成后的音频文件路径\n Observable<String> getAudioFilePath();\n\n interface OnRecorderListener {\n\n // 向外抛出录制状态\n void onStatusChange(RecorderStatus recorderStatus);\n\n // 视频录制时,实时向外报告当前录制时间,单位为 \"秒\"\n void onRecording(int seconds);\n }\n}", "title": "" }, { "docid": "e16065e62bf6add4239bb7e07e8e4828", "score": "0.63398993", "text": "public void onMarkerReached(android.media.AudioRecord recorder);", "title": "" }, { "docid": "b0bbd6d9c125b0c980b8377e4ac4c594", "score": "0.6332654", "text": "public void beginRecording(String fileName){\n\t\t\n\t\tthis.fileName = fileName; \n\t\t\n\t\t isListening = true;\n\t\t \n\t\t Thread t = new Thread(new Capture());\n\t\t t.start();\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t\n\t}", "title": "" }, { "docid": "a829d071f4e751589a6a034571111387", "score": "0.6328098", "text": "public boolean isRecording() {\n return isRecording;\n }", "title": "" }, { "docid": "77c86b50257e81ccdd6c63aeed469f8c", "score": "0.63209504", "text": "public AudioRecording() {\n\n File directory = new File(FileHandler.PATH);\n //If directory don't exist create it\n if (!directory.isDirectory()) {\n directory.mkdirs();\n }\n\n audioFile = new File(directory, \"temp.pcm\");\n\n audioRecorder = new AudioRecord.Builder().setAudioSource(MediaRecorder.AudioSource.VOICE_RECOGNITION)\n .setAudioFormat(new AudioFormat.Builder().setEncoding(AudioFormat.ENCODING_PCM_16BIT)\n .setSampleRate(SAMPLERATE).setChannelMask(AudioFormat.CHANNEL_IN_MONO).build())\n .setBufferSizeInBytes(BUFFERELEMENTS).build();\n\n\n }", "title": "" }, { "docid": "03624b5e34bb73c0c3f60e0bb6e9582d", "score": "0.62950134", "text": "@Test\n public void record() {\n StepMessage msg = new StepMessage(IncomingMessageType.STEP.toString());\n MessageRecorder recorder = new MessageRecorder();\n Assert.assertFalse(recorder.hasMoreMessages());\n recorder.record(msg);\n Assert.assertTrue(recorder.hasMoreMessages());\n }", "title": "" }, { "docid": "8865a8575b487f8aca6cc7757d1d9ec5", "score": "0.6291151", "text": "public void run()\r\n\t{\r\n\t\tlngStartTimeStamp = System.currentTimeMillis(); // Get Time Stamp\r\n\t\t\r\n\t\t// ********* Start Thread Cycle ***********************************\r\n\t\twhile(!Thread.currentThread().isInterrupted())\r\n\t\t{\r\n\t\t\r\n\t\t\t//Note: possible IllegalStateException\r\n //if audio recording is already recording or otherwise not available\r\n //AudioRecord.getState() will be AudioRecord.STATE_UNINITIALIZED\r\n\t\t\t\r\n\t\t if(recorder.getState() == recorder.STATE_UNINITIALIZED)\r\n {\r\n \t b.putInt(\"beat\", -1); //ERROR -1 : AudioRecorder not Initialized\r\n Message msg = hd.obtainMessage();\r\n msg.what = 1;\r\n msg.setData(b);\r\n hd.sendMessage(msg);\r\n Thread.interrupted();\r\n break;\r\n }\r\n else if(bufferSize == AudioRecord.ERROR_BAD_VALUE)\r\n {\r\n b.putInt(\"beat\", -3); //ERROR -3 : BAD ENCODING VALUE\r\n Message msg = hd.obtainMessage();\r\n msg.what = 1;\r\n msg.setData(b);\r\n hd.sendMessage(msg);\r\n Thread.interrupted();\r\n break;\r\n }\r\n else if (bufferSize == AudioRecord.ERROR)\r\n {\r\n b.putInt(\"beat\", -4); //ERROR -4 : ERROR CREATING BUFFER SIZE\r\n Message msg = hd.obtainMessage();\r\n msg.what = 1;\r\n msg.setData(b);\r\n hd.sendMessage(msg);\r\n Thread.interrupted();\r\n break;\r\n }\r\n // NO ERROR START RECORDING\r\n else if(recorder.getState() == recorder.STATE_INITIALIZED)\r\n {\r\n \t bolHearing = true;\r\n \t recorder.startRecording(); // Start Recording HERE\r\n }\r\n \r\n\t\t //*********** HERE WE GET THE AUDIO SAMPLE***********************\r\n bufferResult = recorder.read(readBuffer,0,bufferSize); //READ AUDIO SAMPLE\r\n \t \r\n \t // check for error conditions\r\n if (bufferResult == AudioRecord.ERROR_INVALID_OPERATION)\r\n {\r\n \t b.putInt(\"beat\", -2); //ERROR -2 : ERROR INVALID OPERATION\r\n Message msg = hd.obtainMessage();\r\n msg.what = 1;\r\n msg.setData(b);\r\n hd.sendMessage(msg);\r\n Thread.interrupted();\r\n break;\r\n }\r\n else if (bufferResult == AudioRecord.ERROR_BAD_VALUE)\r\n {\r\n \t b.putInt(\"beat\", -3); //ERROR -3: BAD VALUE \r\n Message msg = hd.obtainMessage();\r\n msg.what = 1;\r\n msg.setData(b);\r\n hd.sendMessage(msg);\r\n Thread.interrupted();\r\n break;\r\n }\r\n else // no errors, do Audio Signal processing\r\n { \r\n \t // HERE WE DETECT HIGH AMPLITUDE OR NOT\r\n \t heard = clipListener.heard(readBuffer, sampleRate); \r\n \t \r\n \t\r\n if (heard) // Hearth Beat UP\r\n { \r\n \t b.putInt(\"beat\", 1);\r\n Message msg = hd.obtainMessage();\r\n msg.what = 1;\r\n msg.setData(b);\r\n hd.sendMessage(msg);\r\n }\r\n else\r\n {\r\n \t b.putInt(\"beat\", 0);\r\n Message msg = hd.obtainMessage();\r\n msg.what = 1;\r\n msg.setData(b);\r\n hd.sendMessage(msg);\r\n }\r\n \r\n //Send Audio to Intent Service to Play It in Real Time\r\n audioIntent.putExtra(\"BEATS\", readBuffer);\r\n ctxCurrent.startService(audioIntent);\r\n }\r\n \r\n // HERE WE CREATE THE AUDIO FILE\r\n try\r\n {\r\n lngStopTimeStamp = getTimeFrame(); \r\n \r\n \t if(lngStopTimeStamp <= ctxCurrent.getResources().getInteger(R.integer.RecordingTimeFrame))\r\n \t {\r\n \t bData = short2byte(readBuffer); //Convert Buffer Short to Byte \r\n \t os.write(bData, 0, bufferSize * BytesPerElement);\r\n \t }\r\n \t else\r\n \t {\r\n \t\t os.close(); \r\n \t }\r\n }\r\n catch (IOException e) \r\n {\r\n \t \r\n }\r\n \t \r\n \r\n \t} //************* End Thread Cycle **************************\r\n\t\t\r\n\t done(); // Free Memory\r\n\t \r\n\t // Close File if it still Open\r\n try \r\n {\r\n \tif(os != null)\r\n os.close();\r\n\t } catch (IOException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n \r\n generate_WAV_File();\r\n \r\n\t}", "title": "" }, { "docid": "167c9c963fe04f2527b4f8ee8f97c14c", "score": "0.62777245", "text": "public void finishRepRecording(){\n stageCount = 0;\n isRecording = false;\n updateReps(repCount);\n repCount++;\n }", "title": "" }, { "docid": "e3fe0a4b7b5ca5adc7459f6108dd645b", "score": "0.62760365", "text": "public FileChartRecorder() {\n recorder = new FileRecorder();\n }", "title": "" }, { "docid": "d3384a0e97e65786d5344c02815c95f8", "score": "0.6270451", "text": "public void startRecording() {\n this.mCameraActivity.disableAutoOffTimer();\n VideoSize videoSize = this.getParams().getVideoSize();\n VideoStabilizer videoStabilizer = this.getParams().getVideoStabilizer();\n String string = RecordingUtil.getOutputFile(videoSize.getVideoProfile().mExt, (Context)this.mCameraActivity);\n RecordingUtil.deleteFile(string, true);\n boolean bl = this.getParams().getMicrophone().getBooleanValue();\n VideoSavingRequest videoSavingRequest = this.createMovieSavingRequest(videoSize.getVideoProfile(), string);\n this.mCameraWindow.setRecordingOrientation(this.mCameraActivity.getOrientation());\n this.mCameraActivity.getCameraDevice().unlockCamera();\n try {\n if (!this.mVideoDevice.setup(videoSize, videoStabilizer, bl, videoSavingRequest, string, this.getOrientation(), this.mParameterManager.getParameters().getShutterSound())) {\n this.mCameraActivity.getCameraDevice().lockCamera();\n this.onVideoError(false);\n return;\n }\n }\n catch (FileNotFoundException var7_6) {\n this.mCameraActivity.getCameraDevice().lockCamera();\n this.onVideoError(true);\n return;\n }\n CameraWindow cameraWindow = this.mCameraWindow;\n int n = this.mVideoDevice.getDuration();\n boolean bl2 = videoSize.isConstraint() || this.mCameraActivity.getConfigurations().hasLimitForSizeOrDuration();\n cameraWindow.prepareRecording(n, bl2, this.mCameraDevice.isVideoHdrOn());\n this.mCameraDevice.startVideoMetadata();\n this.mCameraDevice.setVideoDevice(this.mVideoDevice);\n if (this.mVideoDevice.start()) {\n this.mCameraWindow.showRecordingView();\n if (ClassDefinitionChecker.isMediaRecorderPauseAndResumeSupported()) {\n this.mCameraWindow.requestToAddVideoChapter(this.getOrientation());\n }\n if (!VideoStabilizer.isIntelligentActive(videoStabilizer)) return;\n this.mCameraDevice.setVideoRecordingSound(ShutterSound.OFF);\n this.mCameraDevice.commit();\n return;\n }\n this.mCameraWindow.hideRecordingView();\n this.updateSelftimers();\n this.releaseVideoDevice();\n if (!this.mCameraActivity.isOneShot()) {\n if (this.mControllerManager.getType() == 1 && this.shouldRestartPreview(this.mCameraDevice.getPhotoPreviewSize(this.getParams().getResolution()))) {\n this.mCameraWindow.setResolution(this.getParams().getResolution());\n this.mCameraDevice.finishRec(this.getParams().getResolution());\n this.mCameraWindow.showSurfaceView();\n }\n this.finishRecording(null);\n }\n if (videoSavingRequest.getFilePath() != null) {\n try {\n File file = new File(videoSavingRequest.getFilePath());\n if (file.exists() && file.isFile() && !file.delete()) {\n CameraLogger.e(TAG, \"videoFile.delete(): [Unable to delete empty video file.]\");\n }\n }\n catch (Exception var12_11) {\n CameraLogger.e(TAG, \"DoFastestCamcordTask: [Unable to delete empty media file.]\");\n }\n }\n if (AudioResourceChecker.isAudioResourceAvailable((BaseActivity)this.mCameraActivity)) {\n Executor.postEvent(ControllerEvent.EV_DEVICE_ERROR, 100, null);\n return;\n }\n Executor.postEmptyEvent(ControllerEvent.EV_AUDIO_RESOURCE_ERROR);\n }", "title": "" }, { "docid": "3b308efc43c58c25e517c828d35edd8d", "score": "0.62694883", "text": "public boolean isRecording() {\n\t\treturn recording;\n\t}", "title": "" }, { "docid": "d1507d595f6936fb9cf5f9e3a65232c0", "score": "0.6247303", "text": "public void btnBeginRecording(View v){\n if(!canRecord){\n recStatus.setText(\"Begin exercise\");\n startButton.setText(\"Stop\");\n canRecord = true;\n } else if(canRecord){\n canRecord = false;\n\n // save data to be sent to phone\n Intent intent = new Intent(this, SendingDataActivity.class);\n intent.putExtra(\"activity\", \"rep\");\n intent.putExtra(\"data\", repCount);\n startActivity(intent);\n finish();\n }\n\n }", "title": "" }, { "docid": "bc6136c4302e1f43b52b909837e800f5", "score": "0.62439036", "text": "private void onRecord(boolean start){\n\n if (start) {\n // start recording\n mRecordButton.setImageResource(R.mipmap.ic_media_stop);\n //mPauseButton.setVisibility(View.VISIBLE);\n// File folder = new File(Environment.getExternalStorageDirectory() + \"/SoundRecorder\");\n// File folder = new File(Environment.getExternalStorageDirectory() + \"/SoundRecorder\");\n// if (!folder.exists()) {\n// //folder /SoundRecorder doesn't exist, create the folder\n// folder.mkdir();\n// }\n File folder=AppTool.getAudioFolder(mContext,\"\");\n //start Chronometer\n mChronometer.setBase(SystemClock.elapsedRealtime());\n mChronometer.start();\n mChronometer.setOnChronometerTickListener(new Chronometer.OnChronometerTickListener() {\n @Override\n public void onChronometerTick(Chronometer chronometer) {\n if (mRecordPromptCount == 0) {\n mRecordingPrompt.setText(\"正在录音\" + \".\");\n } else if (mRecordPromptCount == 1) {\n mRecordingPrompt.setText(\"正在录音\" + \"..\");\n } else if (mRecordPromptCount == 2) {\n mRecordingPrompt.setText(\"正在录音\" + \"...\");\n mRecordPromptCount = -1;\n }\n\n mRecordPromptCount++;\n }\n });\n\n //start RecordingService\n// mContext.startService(intent);\n //keep screen on while recording\n startRecording();\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n mRecordingPrompt.setText(\"正在录音\" + \".\");\n mRecordPromptCount++;\n\n } else {\n //stop recording\n mRecordButton.setImageResource(R.mipmap.ic_media_stop);\n //mPauseButton.setVisibility(View.GONE);\n mChronometer.stop();\n mChronometer.setBase(SystemClock.elapsedRealtime());\n timeWhenPaused = 0;\n mRecordingPrompt.setText(\"正在录音\");\n if (mRecorder != null) {\n stopRecording();\n }\n\n //allow the screen to turn off again once recording is finished\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n\n }\n }", "title": "" }, { "docid": "3aff3936dbab8112a74bf567897d65f8", "score": "0.62328225", "text": "public boolean isRecording() {\n return startTime != 0;\n }", "title": "" }, { "docid": "ff50690b00d3bca2afbf3f5e5f13f385", "score": "0.622871", "text": "public void onPeriodicNotification(android.media.AudioRecord recorder);", "title": "" }, { "docid": "499fb98f54dcbab1bf9bbf6f48f2dd39", "score": "0.6226423", "text": "@Override\n public void onOver() {\n\n pauseRecording();\n System.out.println(\"onOver\");\n }", "title": "" }, { "docid": "00ac85193643b946287379b9cffec744", "score": "0.6213558", "text": "private void RecordVideo() {\n\t\tIntent intent = new Intent(this, RecordVideoActivity.class);\n\t\tstartActivityForResult(intent, NoticeAction.VIDEO_CAPTURE_SELF);\n\t}", "title": "" }, { "docid": "24b29ed155c490c0b98622d1f03e82de", "score": "0.6206874", "text": "public void send() {\n\t\tif (is_recording) {\n\t\t\ttry {\n\t\t\t\trc.stopRecord();\n\t\t\t\trc.commit();\n\t\t\t\trecorder.stop();\n\t\t\t\trecorder.close();\n\t\t\t\tis_recording=false;\n\t\t\t\t//play(buffer.toByteArray());\n\t\t\t\tsend(buffer.toByteArray());\n\t\t\t}\n\t\t\tcatch (MediaException e) { e.printStackTrace(); printLog(e.toString()); }\n\t\t\tcatch (IOException e) { e.printStackTrace(); printLog(e.toString()); } \n\t\t}\n\t}", "title": "" }, { "docid": "f80aea2988536f5709bb608f4a00a914", "score": "0.61952895", "text": "public void setRecordingName(String value){\n\t\tthis.recordingName = value ;\n\t}", "title": "" }, { "docid": "c6bb9320c5b160a0dd81034072a6cd55", "score": "0.61878365", "text": "private void stopRecording() {\n Log.v(TAG, \"stopRecording\");\n recoTransaction.stopRecording();\n }", "title": "" }, { "docid": "c16d4564090cdf8436a9cbdaddd77fc4", "score": "0.6186986", "text": "private void stopRecording() {\n\n if (isRecording) {\n callProducer.stopRecording();\n isRecording = false;\n }\n\n if (recordCallback != null) recordCallback.onRecordStopped();\n\n }", "title": "" }, { "docid": "006fb9b54fee996e888f7eb00e1397a6", "score": "0.6166142", "text": "private void startRecording() {\n minSize = AudioRecord.getMinBufferSize(RECORDER_SAMPLERATE, RECORDER_CHANNELS,\n RECORDER_AUDIO_ENCODING);\n recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, RECORDER_SAMPLERATE,\n RECORDER_CHANNELS,\n RECORDER_AUDIO_ENCODING, minSize);\n System.out.println(\"minSize:\" + minSize);\n recorder.startRecording();\n short[] buffer = new short[minSize];\n recorder.read(buffer, 0, minSize); // record data from mic into buffer\n// byte[] bData = short2byte(buffer);\n// double[] micBufferData = byte2double(bData);\n// Complex[] fftArray = double2Complex(micBufferData);\n frequencyScanner = new FrequencyScanner();\n double frequency = frequencyScanner.extractFrequency(buffer, 44100);\n System.out.println(frequency);\n logToDisplay(\"Frequency: \" + frequency);\n// isRecording = true;\n// recordingThread = new Thread(new Runnable() {\n// public void run() {\n// readAudioStream();\n// }\n// }, \"AudioRecorder Thread\");\n// recordingThread.start();\n\n\n\n\n\n\n\n// try {\n// mRecorder.prepare();\n// } catch (IOException e) {\n// Log.e(LOG_TAG, \"prepare() failed\");\n// }\n//\n// mRecorder.start();\n }", "title": "" }, { "docid": "2bccbdc357d45e1c9caae6946ccb5227", "score": "0.61587346", "text": "public void startRecording(android.media.MediaSyncEvent syncEvent) throws java.lang.IllegalStateException { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "07f9ed4468a21f096b88d8f746f0d7b7", "score": "0.61556107", "text": "void stopRecording()\n\t{\n\t\tif(mState != State.RECORDING)\n\t\t\treturn;\n\n\t\tif(mRecorder != null)\n\t\t{\n\t\t\tmRecorder.stop();\n\t\t\tmRecorder.release();\n\t\t}\n\n\t\tmState = State.STARTED;\n\t}", "title": "" }, { "docid": "2b59cdad631528421289ffc20d2c9a4e", "score": "0.6142719", "text": "public void startRecording(SoundClass sound) {\n if (sound.lineOutPlaying || sound.synth.isRunning()) {\n waveRecorder.start();\n System.out.println(\"The sample is being recorded\");\n }\n }", "title": "" }, { "docid": "477f32f309cc3395c37a026194f322f4", "score": "0.6128071", "text": "public void resumeRepRecording(){\n if(canRecord){\n isRecording = true;\n updateReps(repCount);\n }\n }", "title": "" }, { "docid": "d34a5e435902954c83fcf1e4d407a799", "score": "0.6117073", "text": "public void startRecord(String traceNo) {\n\n\t}", "title": "" }, { "docid": "869f4c10cc8cf4ebfaf46221b9005472", "score": "0.6113179", "text": "@Override\n public void onRecordingStopped(Room room) {\n Log.d(TAG, \"onRecordingStopped\");\n }", "title": "" }, { "docid": "690b3689405ba5b5e24df376bf75c180", "score": "0.61085767", "text": "public final synchronized boolean isRecording() {\n return recording;\n }", "title": "" }, { "docid": "8ebac4e033027da550f5ed98c9a1b34b", "score": "0.60918325", "text": "@Override\n\t\tpublic void run() {\n\t\t\tint recordMinSize = 8000;\n\t\t\tbyte[] encoded = new byte[recordMinSize*60];\n\t\t\tshort[] audioData = new short[recordMinSize*60];\n\t\t\tmAudioRecord.startRecording();\n\t\t\tint ret = 0;\n\t\t\tint reads = 0;\n\n\t\t\twhile(mAudioRecord.getRecordingState()==AudioRecord.RECORDSTATE_RECORDING&&reads<recordMinSize*60){\n\t\t\t\tret = mAudioRecord.read(audioData,reads, recordMinSize);\n\t\t\t\tif(ret == AudioRecord.ERROR_BAD_VALUE||ret == AudioRecord.ERROR_INVALID_OPERATION){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treads = ret+reads;\n\t\t\t}\n\n\t\t\tif(isCancelRecord){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tString fileTmpName = String.valueOf(new Date().getTime());\n\t\t\tFile file = new File(soundDir,fileTmpName + \".spx\");\n\t\t\t\n\t\t\tint size = speex.encode(audioData, 0, encoded, reads);\n\t\t\t\n\t\t\ttry {\t\t\t\t\n\t\t\t\tFileOutputStream out = new FileOutputStream(file);\n\t\t\t\tout.write(encoded, 0, size);\n\t\t\t\tout.close();\n\t\t\t\tLog.e(TAG, \"spx file size:\"+file.length()+\" origin file size:\"+reads+\" compress rate:\"+(float)((float)size/(float)reads));\n\t\t\t\tstatus.recordStatus(3, file.getAbsolutePath());\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(TAG, e.getMessage(),e);\n\t\t\t\tstatus.recordStatus(4, null);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f411eb265949a7c4173f0216fd3919e4", "score": "0.6083293", "text": "private void setupMediaRecorder() {\n\t\trecorder.reset();\n\t\trecorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n\t\trecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);\n\t\trecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);\n\t\trecorder.setMaxDuration(30*1000);\n\t\trecorder.setOnInfoListener(this);\n\t}", "title": "" }, { "docid": "5685a19542082622c8eb43104b944198", "score": "0.6072752", "text": "public void startRecording(View v) {\n\t\tLog.d(TAG, \"startRecording()\");\n\t\t// we need to unlock the camera so that mediaRecorder can use it\n\t\tthis.camera.unlock(); // unnecessary in API >= 14\n\t\t// now we can initialize the media recorder and set it up with our\n\t\t// camera\n\t\tthis.mediaRecorder = new MediaRecorder();\n\t\tthis.mediaRecorder.setCamera(this.camera);\n\t\tthis.mediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);\n\t\tthis.mediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);\n\t\tthis.mediaRecorder.setProfile(CamcorderProfile\n\t\t\t\t.get(CamcorderProfile.QUALITY_HIGH));\n\t\tthis.mediaRecorder.setOutputFile(this.initFile().getAbsolutePath());\n\t\tthis.mediaRecorder.setPreviewDisplay(this.cameraPreview.getHolder()\n\t\t\t\t.getSurface());\n\t\ttry {\n\t\t\tthis.mediaRecorder.prepare();\n\t\t\t// start the actual recording\n\t\t\t// throws IllegalStateException if not prepared\n\t\t\tthis.mediaRecorder.start();\n\t\t\tToast.makeText(this, R.string.recording, Toast.LENGTH_SHORT).show();\n\t\t\t// enable the stop button by indica\tting that we are recording\n\t\t\tthis.toggleButtons(true);\n\t\t} catch (Exception e) {\n\t\t\tLog.wtf(TAG, \"Failed to prepare MediaRecorder\", e);\n\t\t\tToast.makeText(this, R.string.cannot_record, Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\tthis.releaseMediaRecorder();\n\t\t}\n\t}", "title": "" }, { "docid": "9e004943967dd205efe975713a8ca64d", "score": "0.60674745", "text": "@Override\n\t\t\tpublic void voiceRecordingCompleted(String recordedVoicePath) {\n\n\t\t\t}", "title": "" }, { "docid": "c2f17c5dd0eb5e1ef9a8a81793e20a0b", "score": "0.6061731", "text": "private void stopRecording() {\n isRecording = false;\n mSocket.off(\"stop record\", onRecStop);\n// if (recorder != null) {\n// try {\n// recorder.stop();\n// } catch (RuntimeException stopException) {\n// recorder.reset();\n// return;\n// }\n//\n// recorder.release();\n// recorder = null;\n// }\n\n // obtaining unique filename to prevent overwriting\n// String deviceName ;\n// String fp = android.os.Build.FINGERPRINT;\n// String[] fp_arr = fp.split(\"/\");\n// deviceName = fp_arr[4];\n// deviceName = deviceName.substring(0, deviceName.indexOf(':'));\n// deviceName += Build.MANUFACTURER;\n// deviceName += \"_\" + timestamp;\n\n\n\n\n //convert audio file to byte array\n// try {\n// File fileToSend = new File(fileName);\n// byte[] byteArr = getBytes(fileToSend);\n//\n// mSocket.emit(\"Send File\", byteArrMp3, deviceName);\n// //add another argument for recording name which should be the same name that's shown in main minus the brand name\n// }\n// catch (Exception e){\n// Log.e(LOG_TAG, \"No File Found\");\n// }\n//\n// // go to finish recording\n// Intent recorderIntent = new Intent(this, FinishRecording.class);\n// startActivity(recorderIntent);\n// finish();\n }", "title": "" }, { "docid": "0ac525daac98b69c981ef6565f686d59", "score": "0.605188", "text": "public void run()\n\t\t {\n\t\t final int sample_rates[] = { 96000, /* Samsung galaxy S2 phones broken here 48000, */ 44100, 22050, 11025, 8000 };\n\t\t final int configs[] = { AudioFormat.CHANNEL_IN_MONO, AudioFormat.ENCODING_PCM_16BIT };\n\t\t final int formats[] = { AudioFormat.ENCODING_PCM_16BIT, AudioFormat.ENCODING_PCM_8BIT };\n\t\n\t\t int sample_rate = -1;\n\t\t int channel_config = -1;\n\t\t int format = -1;\n\t\n\t\t int bufsize = AudioRecord.ERROR_BAD_VALUE;\n\t\t AudioRecord recorder = null;\n\t\n\t\t boolean found = false;\n\t\t for (int x = 0 ; !found && x < formats.length ; ++x) {\n\t\t format = formats[x];\n\t\n\t\t for (int y = 0 ; !found && y < sample_rates.length ; ++y) {\n\t\t sample_rate = sample_rates[y];\n\t\n\t\t for (int z = 0 ; !found && z < configs.length ; ++z) {\n\t\t channel_config = configs[z];\n\t\n\t\t Log.d(\"DEBUG\", \"Trying: \" + format + \"/\" + channel_config + \"/\" + sample_rate);\n\t\t bufsize = 2 * AudioRecord.getMinBufferSize(sample_rate, channel_config, format);\n\t\t Log.d(\"DEBUG\", \"Bufsize: \" + bufsize);\n\t\n\t\t // Handle invalid configs\n\t\t if (AudioRecord.ERROR_BAD_VALUE == bufsize) {\n\t\t continue;\n\t\t }\n\t\t if (AudioRecord.ERROR == bufsize) {\n\t\t Log.e(\"DEBUG\", \"Unable to query hardware!\");\n\t\t mHandler.obtainMessage(MSG_HARDWARE_UNAVAILABLE).sendToTarget();\n\t\t return;\n\t\t }\n\t\n\t\t try {\n\t\t // Set up recorder\n\t\t recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, sample_rate,\n\t\t channel_config, format, bufsize);\n\t\t\t\t\tint istate = recorder.getState();\n\t\t\t\t\tif (istate != AudioRecord.STATE_INITIALIZED) // it lied to us\n\t\t\t\t\t\tcontinue;\n\t\t } catch (IllegalArgumentException ex) {\n\t\t recorder = null;\n\t\t Log.e(\"DEBUG\", \"Failed to set up recorder!\");\n\t\t continue;\n\t\t }\n\t\n\t\t // Got a valid config.\n\t\t found = true;\n\t\t break;\n\t\t }\n\t\t }\n\t\t }\n\t\n\t\t if (!found) {\n\t\t Log.e(\"DEBUG\", \"Sample rate, channel config or format not supported!\");\n\t\t mHandler.obtainMessage(MSG_INVALID_FORMAT).sendToTarget();\n\t\t return;\n\t\t }\n\t\t Log.d(\"DEBUG\", \"Using: \" + format + \"/\" + channel_config + \"/\" + sample_rate);\n\t\n\t\t mShouldRun = true;\n\t\t mShouldRecord = true;\n\t\t boolean oldShouldRecord = false;\n\t\t\n\t\t try {\n\t\t // Initialize variables for calculating the recording duration.\n\t\t int mapped_format = mapFormat(format);\n\t\t int mapped_channels = mapChannelConfig(channel_config);\n\t\t int bytesPerSecond = sample_rate * (mapped_format / 8) * mapped_channels;\n\t\n\t\t // Set up encoder. Create path for the file if it doesn't yet exist.\n\t\t Log.d(\"DEBUG\", \"Setting up encoder \" + mPath + \" rate: \" + sample_rate + \" channels: \" + mapped_channels + \" format \" + mapped_format);\n\t\n\t\t //mEncoder = new FLACStreamEncoder(mPath, sample_rate, mapped_channels, mapped_format);\n\t\n\t\t // Start recording loop\n\t\t mDuration = 0.0;\n\t\t ByteBuffer buffer = ByteBuffer.allocateDirect(bufsize);\n\t\t while (mShouldRun) {\n\t\t // Toggle recording state, if necessary\n\t\t if (mShouldRecord != oldShouldRecord) {\n\t\t // State changed! Let's see what we are supposed to do.\n\t\t if (mShouldRecord) {\n\t\t Log.d(\"DEBUG\", \"Start recording!\");\n\t\t recorder.startRecording();\n\t\t }\n\t\t else {\n\t\t Log.d(\"DEBUG\", \"Stop recording!\");\n\t\t recorder.stop();\n\t\t mEncoder.flush();\n\t\t }\n\t\t oldShouldRecord = mShouldRecord;\n\t\t }\n\t\n\t\t // If we're supposed to be recording, read data.\n\t\t if (mShouldRecord) {\n\t\t int result = recorder.read(buffer, bufsize);\n\t\t switch (result) {\n\t\t case AudioRecord.ERROR_INVALID_OPERATION:\n\t\t Log.e(\"DEBUG\", \"Invalid operation.\");\n\t\t mHandler.obtainMessage(MSG_READ_ERROR).sendToTarget();\n\t\t break;\n\t\n\t\t case AudioRecord.ERROR_BAD_VALUE:\n\t\t Log.e(\"DEBUG\", \"Bad value.\");\n\t\t mHandler.obtainMessage(MSG_READ_ERROR).sendToTarget();\n\t\t break;\n\t\n\t\t default:\n\t\t if (result > 0) {\n\t\t //Log.d(LTAG, \"*** CHIPMUNK got: \" + result);\n\t\t //java.nio.ShortBuffer s = buffer.asShortBuffer();\n\t\t //s.rewind();\n\t\t //for (int i = 0 ; i < (result / (format / 8)) ; ++i) {\n\t\t // short v = s.get(i);\n\t\t // if (Math.abs(v) <= 255) {\n\t\t // Log.d(LTAG, \"*** CHIPMUNK sample \" + i + \": \" + v);\n\t\t // }\n\t\t //}\n\t\n\t\t // Compute time recorded\n\t\t double read_ms = (1000.0 * result) / bytesPerSecond;\n\t\t mDuration += read_ms;\n\t\t Log.d(\"DEBUG\",\"result: \" + result);\n\t\t //long start = System.currentTimeMillis();\n\t\t \n//\t\t int write_result = mEncoder.write(buffer, result);\n//\t\t if (write_result != result) {\n//\t\t Log.e(\"DEBUG\", \"Attempted to write \" + result\n//\t\t + \" but only wrote \" + write_result);\n//\t\t mHandler.obtainMessage(MSG_WRITE_ERROR).sendToTarget();\n//\t\t }\n//\t\t else {\n\t\t Amplitudes amp = getAmplitudes();\n\t\t //Log.d(\"DEBUG\",\"Amplitudes: \" + amp.toString());\n\t\t //TODO update progress bar here by sending the amplitude\n\t\t mHandler.obtainMessage(MSG_AMPLITUDES, amp).sendToTarget();\n//\t\t }\n\t\t //long end = System.currentTimeMillis();\n\t\t //Log.d(LTAG, \"Write of \" + result + \" bytes took \" + (end - start) + \" msec.\");\n\t\t }\n\t\t }\n\t\t }\n\t\t }\n\t\n\t\t recorder.release();\n\t\t mEncoder.release();\n\t\t mEncoder = null;\n\t\n\t\t } catch (IllegalArgumentException ex) {\n\t\t Log.e(\"DEBUG\", \"Illegal argument: \" + ex.getMessage());\n\t\t mHandler.obtainMessage(MSG_ILLEGAL_ARGUMENT, ex.getMessage()).sendToTarget();\n\t\t }\n\t\n\t\t mHandler.obtainMessage(MSG_OK).sendToTarget();\n\t\t }", "title": "" }, { "docid": "4980a0e4bcb1982ac06229436d65957c", "score": "0.60517776", "text": "@Override\n\t\t\t\tpublic void voiceRecordingCompleted(String recordedVoicePath) {\n\n\t\t\t\t}", "title": "" }, { "docid": "1d319162b5a184d779a5872b98d83423", "score": "0.60500467", "text": "public int getRecordingState() { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "cc502925df51858c32c57ee92e7e1bcd", "score": "0.60481375", "text": "private void stopRecording() {\r\n\t\trecoTransaction.stopRecording();\r\n\t}", "title": "" }, { "docid": "c17878deb02120dc2fa49b77e6122412", "score": "0.6034328", "text": "@Override\n public synchronized void run() {\n Thread.currentThread().setPriority(Thread.MIN_PRIORITY);\n //Used to check when its time to save wav files for debug:\n int wavCounter=0;\n int wavFileNumber=0;\n //This buffer is used for storing wav-files for debug.\n //All the buffers should be the same length, using data6 here but hopefully could have used any array:\n byte[] testBuffer=new byte[data6.length];\n int testBufferDataSize=dataSize6;\n ArrayList<Byte> recordingList = new ArrayList<Byte>();\n i = 0;\n // byte[] temp;\n int startWritingPoint=0;\n int counter=0;\n //ArrayList for storing values for cumulative echo-function:\n ArrayList<Byte> echoBuffer = new ArrayList<Byte>();\n while(!m_stop)\n {\n //Should store a files about twice per second.\n //Uncomment to save wav files for debug:\n /*\n if(wavCounter>2000)\n {\n WavWriter ww = new WavWriter();\n ww.setDataSize((long) testBuffer.length);\n ww.setDataChunk(testBuffer);\n ww.writeToWav(\"noiseDebug\"+wavFileNumber+\".wav\");\n wavFileNumber++;\n wavCounter=0;\n }*/\n\n //temp = Arrays.copyOfRange(testBuffer,i,i+bufferLength);\n //this is where all the byte arrays are written to, and is at the end of this audio\n //loop passed to AudioTrack:\n byte[] temp = new byte[bufferLength];\n //Poorly named temporary byte array used in the loops for adding arrays to the mix below:\n byte[] resultingBuffer = new byte[temp.length];\n //Cumulative echo:\n if(echoing)\n {\n if(firstTimeEchoing)\n {\n echoCounter=0;\n echoLoopCounter=0;\n echoBuffer.clear();\n firstTimeEchoing=false;\n }\n if(echoCounter>=delay)\n {\n addEcho=true;\n }\n echoCounter+=bufferLength;\n }\n /*The below section of the code does not yet have very thorough comments:*/\n if(addBuffer1)\n {\n if(i==0)//Letting tracks in at zero.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn1=true;\n }\n else if(!letIn1)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn1)\n {\n byte[] subBuffer = Arrays.copyOfRange(data1, addCounter1, addCounter1 + bufferLength);\n\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data1, data1.length-addCounter1-bufferLength, data1.length-addCounter1);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter1 += 2;\n if (addCounter1 >= (data1.length - bufferLength)) {\n addCounter1 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n Log.d(TAG,\"dataEcho1 size: \"+dataEcho1.length);\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho1, addCounterEcho1, addCounterEcho1 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho1 += 2;\n if (addCounterEcho1 >= (dataEcho1.length - bufferLength)) {\n addCounterEcho1 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n\n if(addBuffer2)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn2=true;\n }\n else if(!letIn2)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn2) {\n byte[] subBuffer = Arrays.copyOfRange(data2, addCounter2, addCounter2 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data2, data2.length-addCounter2-bufferLength, data2.length-addCounter2);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter2 += 2;\n if (addCounter2 >= (data2.length - bufferLength)) {\n addCounter2 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho2, addCounterEcho2, addCounterEcho2 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho2 += 2;\n if (addCounterEcho2 >= (dataEcho2.length - bufferLength)) {\n addCounterEcho2 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n\n if(addBuffer3)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn3=true;\n }\n else if(!letIn3)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn3) {\n byte[] subBuffer = Arrays.copyOfRange(data3, addCounter3, addCounter3 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data3, data3.length-addCounter3-bufferLength, data3.length-addCounter3);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter3 += 2;\n if (addCounter3 >= (data3.length - bufferLength)) {\n addCounter3 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho3, addCounterEcho3, addCounterEcho3 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho3 += 2;\n if (addCounterEcho3 >= (dataEcho3.length - bufferLength)) {\n addCounterEcho3 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n\n if(addBuffer4)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn4=true;\n }\n else if(!letIn4)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn4) {\n byte[] subBuffer = Arrays.copyOfRange(data4, addCounter4, addCounter4 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data4, data4.length-addCounter4-bufferLength, data4.length-addCounter4);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter4 += 2;\n if (addCounter4 >= (data4.length - bufferLength)) {\n addCounter4 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho4, addCounterEcho4, addCounterEcho4 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho4 += 2;\n if (addCounterEcho4 >= (dataEcho4.length - bufferLength)) {\n addCounterEcho4 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n\n if(addBuffer5)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn5=true;\n }\n else if(!letIn5)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn5) {\n byte[] subBuffer = Arrays.copyOfRange(data5, addCounter5, addCounter5 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data5, data5.length-addCounter5-bufferLength, data5.length-addCounter5);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter5 += 2;\n if (addCounter5 >= (data5.length - bufferLength)) {\n addCounter5 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho5, addCounterEcho5, addCounterEcho5 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho5 += 2;\n if (addCounterEcho5 >= (dataEcho5.length - bufferLength)) {\n addCounterEcho5 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n //\n if(addBuffer6)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn6=true;\n }\n else if(!letIn6)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn6) {\n byte[] subBuffer = Arrays.copyOfRange(data6, addCounter6, addCounter6 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data6, data6.length-addCounter6-bufferLength, data6.length-addCounter6);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n //Comment away to reapply start at current position in array:\n addCounter6 += 2;\n if (addCounter6 >= (data6.length - bufferLength)) {\n addCounter6 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho6, addCounterEcho6, addCounterEcho6 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho6 += 2;\n if (addCounterEcho6 >= (dataEcho6.length - bufferLength)) {\n addCounterEcho6 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n\n if(addBuffer7)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn7=true;\n }\n else if(!letIn7)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn7) {\n byte[] subBuffer = Arrays.copyOfRange(data7, addCounter7, addCounter7 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data7, data7.length-addCounter7-bufferLength, data7.length-addCounter7);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter7 += 2;\n if (addCounter7 >= (data7.length - bufferLength)) {\n addCounter7 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho7, addCounterEcho7, addCounterEcho7 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho7 += 2;\n if (addCounterEcho7 >= (dataEcho7.length - bufferLength)) {\n addCounterEcho7 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n if(addBuffer8)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn8=true;\n }\n else if(!letIn8)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn8) {\n byte[] subBuffer = Arrays.copyOfRange(data8, addCounter8, addCounter8 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data8, data8.length-addCounter8-bufferLength, data8.length-addCounter8);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter8 += 2;\n if (addCounter8 >= (data8.length - bufferLength)) {\n addCounter8 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho8, addCounterEcho8, addCounterEcho8 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho8 += 2;\n if (addCounterEcho8 >= (dataEcho8.length - bufferLength)) {\n addCounterEcho8 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n if(addBuffer9)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn9=true;\n }\n else if(!letIn9)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn9) {\n byte[] subBuffer = Arrays.copyOfRange(data9, addCounter9, addCounter9 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data9, data9.length-addCounter9-bufferLength, data9.length-addCounter9);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter9 += 2;\n if (addCounter9 >= (data9.length - bufferLength)) {\n addCounter9 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho9, addCounterEcho9, addCounterEcho9 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho9 += 2;\n if (addCounterEcho9 >= (dataEcho9.length - bufferLength)) {\n addCounterEcho9 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n //\n if(addBuffer10)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn10=true;\n }\n else if(!letIn10)\n {\n if(i%1600==0)\n {\n //Update blinking animation.\n }\n }\n if(letIn10) {\n byte[] subBuffer = Arrays.copyOfRange(data10, addCounter10, addCounter10 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data10, data10.length-addCounter10-bufferLength, data10.length-addCounter10);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter10 += 2;\n if (addCounter10 >= (data10.length - bufferLength)) {\n addCounter10 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho10, addCounterEcho10, addCounterEcho10 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho10 += 2;\n if (addCounterEcho10 >= (dataEcho10.length - bufferLength)) {\n addCounterEcho10 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n //\n if(addBuffer11)\n {\n if(i==0)//actually should be 37220, but i is always a multiple of bufferlength, which is 100.Fun fact : there is an asteroid called 18610 ArthurDent.\n {\n Log.d(TAG,\"Letting tracks in.\");\n letIn11=true;\n }\n else if(!letIn11)\n {\n boolean lightOn=false;\n if(i%(bufferLength*100)==0)\n {\n if(lightOn)\n {\n //light off\n // ((ImageButton) findViewById(R.id.buttonEleven)).setImageDrawable(redButtonLightOff);\n // setOff11();\n lightOn=false;\n }\n else if(!lightOn)\n {\n // setOn11();\n //((ImageButton) findViewById(R.id.buttonEleven)).setImageDrawable(redButtonLightOn);\n lightOn=true;\n //light on.\n }\n Log.d(TAG,\"GOOD BLINK RATE? \");\n }\n //Blink\n }\n if(letIn11) {\n byte[] subBuffer = Arrays.copyOfRange(data11, addCounter11, addCounter11 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data11, data11.length-addCounter11-bufferLength, data11.length-addCounter11);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter11 += 2;\n if (addCounter11 >= (data11.length - bufferLength)) {\n addCounter11 = 0;\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho11, addCounterEcho11, addCounterEcho11 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho11 += 2;\n if (addCounterEcho11 >= (dataEcho11.length - bufferLength)) {\n addCounterEcho11 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n }\n if(addBuffer17) {\n Log.d(TAG,\"This is length of byte array for data17: \"+data17+\"\");\n byte[] subBuffer = Arrays.copyOfRange(data17, addCounter17, addCounter17 + bufferLength);\n if(backwards)\n {\n subBuffer = Arrays.copyOfRange(data17, data17.length-addCounter17-bufferLength, data17.length-addCounter17);\n byte[] temp2 = new byte[subBuffer.length];\n for(int i=0;i<subBuffer.length;i+=2)\n {\n temp2[i]=subBuffer[subBuffer.length-i-2];\n temp2[i+1]=subBuffer[subBuffer.length-i-1];\n }\n subBuffer=temp2;\n }\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer[m + 1];\n short buf2b = subBuffer[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n short res = (short) (buf1c + buf2c);\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounter17 += 2;\n if (addCounter17 >= (data17.length - bufferLength))\n {\n addCounter17 = 0;\n addBuffer17=false;\n numberOfStreams-=decreaseStreamNumber(echoing2);\n if(numberOfStreams==0)\n {\n stopStream=true;\n }\n }\n }\n temp = resultingBuffer;\n if(echoing2)\n {\n byte[] subBuffer2 = Arrays.copyOfRange(dataEcho17, addCounterEcho17, addCounterEcho17 + bufferLength);\n byte[] temporaryBufferWithAdjustedAmplitude2 = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < subBuffer.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = subBuffer2[m + 1];\n short buf2b = subBuffer2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Dividing amplitude by half and writing to temporary buffer.\n\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / numberOfStreams);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude2[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude2[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude2[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude2[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n addCounterEcho17 += 2;\n if (addCounterEcho17 >= (dataEcho17.length - bufferLength)) {\n addCounterEcho17 = 0;\n }\n }\n }\n temp=resultingBuffer;\n }\n\n\n if(addEcho)\n {\n //echoLoopCounter comes the first time with value zero.\n //\n int n = (echoLoopCounter%(delay));\n // temp[i]+=echoBuffer.get(n+i);\n // Log.d(TAG,\"added echo: \"+echoBuffer.get(n+i)+\"\");\n Log.d(TAG,\"This is the size of echoBuffer: \"+echoBuffer.size());\n Log.d(TAG,\"This is the value of n: \"+n);\n Log.d(TAG,\"This is the value of n+temp\"+temp.length+n);\n byte[] temporaryBufferWithAdjustedAmplitude = new byte[bufferLength];\n short resPrevious=0;\n for (int m = 0; m < temp.length; m += 2) {\n short buf1a = temp[m + 1];\n short buf2a = temp[m];\n buf1a = (short) ((buf1a & 0xff) << 8);\n buf2a = (short) (buf2a & 0xff);\n short buf1b = echoBuffer.get(m+n+1);\n short buf2b = echoBuffer.get(m+n);\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //\n //Dividing amplitude by half and writing to temporary other buffer.\n short dudette = (short) (buf1b + buf2b);\n float fdudette = (float) (dudette / 2);\n dudette = (short) fdudette;\n temporaryBufferWithAdjustedAmplitude[m] = (byte) dudette;\n temporaryBufferWithAdjustedAmplitude[m + 1] = (byte) (dudette >> 8);\n //Getting values from temporary buffer.\n\n //Getting values from temporary other buffer.\n buf1b = temporaryBufferWithAdjustedAmplitude[m + 1];\n buf2b = temporaryBufferWithAdjustedAmplitude[m];\n buf1b = (short) ((buf1b & 0xff) << 8);\n buf2b = (short) (buf2b & 0xff);\n //Adding buffers.\n short buf1c = (short) (buf1a + buf1b);\n short buf2c = (short) (buf2a + buf2b);\n short res = (short) (buf1c + buf2c);\n if(res>10000) //Avoid 'normal' cases where amplitude shifts from f.ex. 4 to -2, which we want to keep.\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n Log.d(TAG,\"res:\"+res+\"\");\n res = resPrevious;\n }\n }\n if(res<-10000)\n {\n if((res*resPrevious)<0) //If the sign has changed suddenly for a large number, use the previous number.\n {\n res = resPrevious;\n }\n }\n resPrevious=res;\n resultingBuffer[m] = (byte) res;\n resultingBuffer[m + 1] = (byte) (res >> 8);\n }\n temp=resultingBuffer;\n }\n if(recording)\n {\n if(firstLoopRecording)\n {\n recordingList.clear();\n firstLoopRecording=false;\n }\n for(int i=0;i<temp.length;i++)\n {\n recordingList.add(temp[i]);\n }\n }\n if(saveRecording)\n {\n //Stop filling ArrayList, write to array and then to WavWriter.\n byte[] temp2 = new byte[recordingList.size()];\n for (int i=0;i<recordingList.size();i++)\n {\n temp2[i]=recordingList.get(i);\n }\n WavWriter ww = new WavWriter();\n ww.setDataSize((long) temp2.length);\n ww.setDataChunk(temp2);\n ww.writeToWav(\"testingDude.wav\");\n saveRecording=false;\n }\n // Log.d(TAG,\"writing to audioTrack\");\n // Log.d(TAG,\"this is i: \"+i+\"\");\n if(!m_stop) {\n try {\n m_audioTrack.write(temp, 0, temp.length);//To register changes faster, try writing shorter parts at a time.\n } catch (Exception e) {\n throw e;\n }\n }\n i=i+bufferLength;\n wavCounter++;\n //While echo-counter is less than the delay, elements are added to the arraylist:\n if(echoing & !addEcho)\n {\n for(int i=0;i<temp.length;i++)\n {\n echoBuffer.add(temp[i]);\n }\n Log.d(TAG,\"Increasing in echoBuffer.\");\n }\n //While echoCounter is larger than the delay, elements start rewriting the buffer.\n else if(echoing & addEcho)\n {\n for(int i=0;i<temp.length;i++)\n {\n int positionToSet = (echoLoopCounter)%(delay);\n echoBuffer.set(positionToSet,temp[i]);\n Log.d(TAG,\"Replacing in echoBuffer\");\n echoLoopCounter++;\n }\n }\n if(i>outputBuffer.length-bufferLength)\n {\n i=0;\n }\n if(stopStream)\n {\n m_stop = true;\n Log.d(TAG,\"Calling m_stop\");\n m_audioTrack.stop();\n Log.d(TAG,\"Stopping AudioTrack\");\n m_audioTrack.release();\n Log.d(TAG,\"Releasing AudioTrack.\");\n i=0;\n }\n }\n }", "title": "" }, { "docid": "59b3ed6f3e97f7ad524b88642531fd23", "score": "0.60124475", "text": "public LiveRecording record(String bridgeId, String name, String format, int maxDurationSeconds, int maxSilenceSeconds, String ifExists, boolean beep, String terminateOn) throws RestException;", "title": "" }, { "docid": "f12bf197489adc791178e6c7242cfddb", "score": "0.60089016", "text": "@Test\n public void recordChannelTest() {\n String channelId = null;\n String name = null;\n String format = null;\n Integer maxDurationSeconds = null;\n Integer maxSilenceSeconds = null;\n String ifExists = null;\n Boolean beep = null;\n String terminateOn = null;\n // LiveRecording response = api.recordChannel(channelId, name, format, maxDurationSeconds, maxSilenceSeconds, ifExists, beep, terminateOn);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "54ecb949b75837eb1f694d75e27f12b1", "score": "0.60021937", "text": "protected void end() {\n SmartDashboard.putBoolean(\"recordingTeleop\", false);\n Robot.recorder.write(RobotMap.RECORDING_SAVE_PATH + \"/\" + (String) Robot.recordingChooser.getSelected());\n }", "title": "" }, { "docid": "a164034c43e519f771ab516d24a5a337", "score": "0.5999136", "text": "@Override\r\n\tpublic void captureData()\r\n\t{\n\r\n\t}", "title": "" }, { "docid": "52635a1b57b9748ee01e2495db4bbefc", "score": "0.59960055", "text": "public interface RecordingSession {\n\n /**\n * Removes and returns the first call on the call-stack.\n *\n * @return the first call (or null if none).\n */\n RecordedMethodCall getFirstCall();\n\n /**\n * Clears all calls in the session.\n */\n void clear();\n\n /**\n * Gets the flag that indicates if there is any calls in the session.\n *\n * @return true, if there is no calls in the session.\n */\n boolean isEmpty();\n\n /**\n * Removes and returns the first call on the call-stack.\n *\n * <p>\n * throws IllegalStateException if no calls on the call-stack.\n * </p>\n *\n * @return the first call (never null).\n */\n RecordedMethodCall getSafeFirstCall();\n\n /**\n * Removes and returns the last call on the call-stack.\n *\n * @return the last call (or null if none).\n */\n RecordedMethodCall getLastCall();\n\n /**\n * Removes and returns the last call on the call-stack.\n *\n * <p>\n * throws IllegalStateException if no calls on the call-stack.\n * </p>\n *\n * @return the last call (never null).\n */\n RecordedMethodCall getSafeLastCall();\n\n /**\n * Adds a method call to the recording session.\n *\n * @param call\n * the call to add.\n */\n void addCall(RecordedMethodCall call);\n\n /**\n * Adds a nested method call to the recording session.\n *\n * @param call\n * the call to add.\n */\n void addNestedCall(RecordedMethodCall call);\n}", "title": "" }, { "docid": "bc0bd29d381a6249528d753e8a548b9d", "score": "0.59730756", "text": "void recordTiming(StatsdPoint point, long value, double sampleRate);", "title": "" }, { "docid": "863b71db04a884dd7cdecca29a006d3c", "score": "0.596794", "text": "public void monitor(){\n Message msg = Message.obtain();\n msg.what = MessageType.NO_DATA_PRESENT.ordinal();\n mHandler.sendMessage(msg);\n \tshort[] buffer = new short[bufferSize];\n \tboolean silent = true;\n \tshort bufferVal;\n \tboolean effectivelySilent;\n startRecording();\n int found = 0;\n int quorum = 5; //number of non-silent samples to find before we begin recording.\n int bufferReadResult = 0;\n while(silent && recording){\n\t \tbufferReadResult = audioRecord.read(buffer, 0, bufferSize);\n\t \tfound = 0;\n\t \tfor (int i = 0; i < bufferReadResult; i++){\n\t \t\tbufferVal = buffer[i];\n\t \t\t//debug(TAG, \"monitor val:\"+bufferVal+\", found:\"+found);\n\t \t\teffectivelySilent =Math.abs(bufferVal) < silenceLevel; \n\t \t\tif (silent && !effectivelySilent){\n\t\t \t\tfound++;\n\t\t \t\tif (found > quorum){\n\t\t \t\t\tsilent = false;\n\t\t \t\t\tmsg = Message.obtain();\n\t\t \t\t\tmsg.what = MessageType.DATA_PRESENT.ordinal();\n\t\t \t\t\tmHandler.sendMessage(msg);\n\t\t \t\t}\n\t \t\t}else{ //need non-silent samples to be next to each other.\n\t \t\t\tfound = 0;\n\t \t\t}\n\t \t}\n }\n if (!silent){\n \trecordData(buffer, bufferReadResult); //pass because we're going to consider this part of the swipe\n }\n\t}", "title": "" }, { "docid": "77a3fc5025c0a065ee463cad15af0d83", "score": "0.59646815", "text": "private void _startCaptureRealTime() throws IOException {\n\t\tboolean signed = true;\n\t\tboolean bigEndian = true;\n\n\t\tAudioFormat format = new AudioFormat(_sampleRate, _sampleSizeInBits,\n\t\t\t\t_channels, signed, bigEndian);\n\n\t\t_frameSizeInBytes = format.getFrameSize();\n\n\t\tDataLine.Info targetInfo = new DataLine.Info(TargetDataLine.class,\n\t\t\t\tformat, AudioSystem.NOT_SPECIFIED);\n\n\t\t// The following works under Windows Java 1.3.0 RC2 but\n\t\t// not under Tritonus under Linux, so comment out.\n\t\t// if (!AudioSystem.isLineSupported(targetInfo)) {\n\t\t// // FIXME: throw exception here.\n\t\t// System.out.println(\"Line matching \" + targetInfo +\n\t\t// \" not supported.\");\n\t\t// return;\n\t\t// }\n\t\ttry {\n\t\t\t_targetLine = (TargetDataLine) AudioSystem.getLine(targetInfo);\n\n\t\t\t// Note: 2nd parameter is the buffer size (in bytes).\n\t\t\t// Larger values increase latency but may be required if\n\t\t\t// garbage collection, etc. is an issue.\n\t\t\t_targetLine.open(format, _bufferSize * _frameSizeInBytes);\n\t\t} catch (LineUnavailableException ex) {\n\t\t\tthrow new IOException(\"Unable to open the line for \"\n\t\t\t\t\t+ \"real-time audio capture: \" + ex);\n\t\t}\n\n\t\t// The following works under Windows Java 1.3.0 RC2 but\n\t\t// not under Tritonus under Linux, so comment out.\n\t\t// if (!AudioSystem.isLineSupported(sourceInfo)) {\n\t\t// //FIXME: handle this correctly.\n\t\t// System.err.println(\"Line matching \" + sourceInfo +\n\t\t// \" not supported.\");\n\t\t// return;\n\t\t// }\n\t\t// Array of audio samples in byte format.\n\t\t_data = new byte[_productionRate * _frameSizeInBytes];\n\n\t\t_bytesPerSample = _sampleSizeInBits / 8;\n\n\t\t// Start the target data line\n\t\t_targetLine.start();\n\t}", "title": "" }, { "docid": "88f761728ddddad30ea8286721f5e1ce", "score": "0.59632486", "text": "void track();", "title": "" }, { "docid": "cffa47f3032d8de15097db70f7fc51b1", "score": "0.5958645", "text": "@Test\n public void getStoredRecordingFileTest() {\n String recordingName = null;\n // byte[] response = api.getStoredRecordingFile(recordingName);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "c544ac9661a234452a0bcafe8c0aad14", "score": "0.5942773", "text": "protected String rec(){\n\t\tif(recorder != null){\n\t\t\treturn recorder.getOnEventText(); \n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "b698c5410479791278b83a527291b92a", "score": "0.59369475", "text": "public void startRecording() throws LineUnavailableException {\n\t\tfinal AudioFormat format = getFormat();\n\t\tDataLine.Info info = new DataLine.Info(TargetDataLine.class, format);\n\t\tfinal TargetDataLine line = (TargetDataLine) AudioSystem.getLine(info);\n\t\tline.open(format);\n\t\tline.start();\n\t\t// llamo al hilo que captura audio y lo guarda en un buffer\n\t\tnew Thread(new CaptureThread(line)).start();\n\t}", "title": "" }, { "docid": "d6afc0a8da4bb1b641a1114931498cfe", "score": "0.59330136", "text": "private void startRecord(){\r\n\r\n final Camera camera = FPVDemoApplication.getCameraInstance();\r\n if (camera != null) {\r\n camera.startRecordVideo(new CommonCallbacks.CompletionCallback(){\r\n @Override\r\n public void onResult(DJIError djiError)\r\n {\r\n if (djiError == null) {\r\n showToast(\"Record video: success\");\r\n }else {\r\n showToast(djiError.getDescription());\r\n }\r\n }\r\n }); // Execute the startRecordVideo API\r\n }\r\n }", "title": "" }, { "docid": "ab261a6517dd397afa2da14466f3df00", "score": "0.59297514", "text": "public void stopRecording() {\n if (null != recorder) {\r\n isRecording = false;\r\n recorder.stop();\r\n recorder.release();\r\n recorder = null;\r\n recordingThread = null;\r\n }\r\n }", "title": "" }, { "docid": "d9a771d46e30c59ce082ad80f43e7156", "score": "0.5914214", "text": "public void setCapture() {\n\n }", "title": "" }, { "docid": "4f836bb0fe191029f5f301e9f9c932fd", "score": "0.5905567", "text": "public void captureAudio() {\n this.cordova.startActivityForResult(this, new Intent(\"android.provider.MediaStore.RECORD_SOUND\"), 0);\n }", "title": "" }, { "docid": "2ac7ab4deea2c59550cb9ec01cf74eb9", "score": "0.5891363", "text": "private void startIO(String bugId) {\n new File(this.mBugFileUtils.reportDirname(bugId)).mkdirs();\n this.mFilename = this.mBugFileUtils.reportFilename(bugId, BugFileUtils.DESCRIPTION_RECORDING);\n this.mRecorder = new MediaRecorder();\n this.mRecorder.setAudioSource(1);\n this.mRecorder.setOutputFormat(2);\n this.mRecorder.setAudioEncoder(1);\n this.mRecorder.setOutputFile(this.mFilename);\n final boolean success = true;\n try {\n this.mRecorder.prepare();\n this.mRecorder.start();\n } catch (IOException | IllegalStateException e) {\n e.printStackTrace();\n success = false;\n }\n new Handler(this.mContext.getMainLooper()).post(new Runnable() {\n /* class com.oculus.bugreporter.DescriptionRecorder.AnonymousClass2 */\n\n @Override // java.lang.Runnable\n public void run() {\n DescriptionRecorder.this.mCallback.onDescriptionRecordingStarted(success);\n }\n });\n }", "title": "" }, { "docid": "a441bacdd5a2b8dc289b88bc3cadf6fe", "score": "0.588705", "text": "@Test\n public void getStoredRecordingTest() {\n String recordingName = null;\n // StoredRecording response = api.getStoredRecording(recordingName);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "caf4b53ff145630347b44e02e56dea8e", "score": "0.58869225", "text": "protected File recordUtterance() throws LineUnavailableException, IOException {\n\t\tif (AudioSystem.isLineSupported(Port.Info.MICROPHONE)) {\n\t\t\tAudioFormat format = new AudioFormat(16000.0f, 16, 1, true, false);\n\t\t\tTargetDataLine microphone = AudioSystem.getTargetDataLine(format);\n\n\t\t\t// 0. Open and start the microphone\n\t\t\tmicrophone.open();\n\t\t\tmicrophone.start();\n\n\t\t\t// 0.1 Will hold the last 3 data buffers\n\t\t\t// to save them all into the .wav file\n\t\t\t// when speech is detected.\n\t\t\tList<byte[]> dataBuffers = new ArrayList<>();\n\t\t\tint dbi = 0;\n\t\t\tfinal int dbSize = CONSECUTIVE_SPEECH_SAMPLES + 5 * CONSECUTIVE_SILENCE_SAMPLES;\n\n\t\t\tfor (int i = 0; i < dbSize; i++) {\n\t\t\t\tdataBuffers.add(new byte[microphone.getBufferSize() / 5]);\n\t\t\t}\n\n\t\t\tbyte[] data = dataBuffers.get(dbi);\n\n\t\t\tmicrophone.read(data, 0, data.length);\n\n\t\t\tfloat dataStdDev = signalStandardDeviation(data);\n\t\t\tboolean silenceFlag = isSilence(dataStdDev);\n\n\t\t\tLOGGER.info(\"Listening...\");\n\n\t\t\tint speechCount = 0;\n\n\t\t\t// 1. Remain in this loop while\n\t\t\t// there is no speech detected.\n\t\t\twhile (silenceFlag || speechCount < CONSECUTIVE_SPEECH_SAMPLES) {\n\t\t\t\tdbi++;\n\n\t\t\t\tif (dbi % dbSize == 0) {\n\t\t\t\t\tdbi = 0;\n\t\t\t\t}\n\n\t\t\t\tdata = dataBuffers.get(dbi);\n\n\t\t\t\t// Read the next chunk of data from the TargetDataLine.\n\t\t\t\tmicrophone.read(data, 0, data.length);\n\t\t\t\tdataStdDev = signalStandardDeviation(data);\n\n\t\t\t\tsilenceFlag = isSilence(dataStdDev);\n\n\t\t\t\tif (silenceFlag) {\n\t\t\t\t\tspeechCount = 0;\n\n\t\t\t\t\tif (silenceSamplesStdDevs.size() == SILENCE_SAMPLES_STDDEVS_LENGTH) {\n\t\t\t\t\t\tsilenceSamplesStdDevs.removeFirst();\n\t\t\t\t\t}\n\n\t\t\t\t\tif (dbi % 10 == 0) {\n\t\t\t\t\t\tsilenceSamplesStdDevs.add(dataStdDev);\n\t\t\t\t\t\t// LOGGER.info(\"Instant silence std. dev. = \" + dataStdDev);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// LOGGER.info(\"Instant speech #\" + speechCount + \" std. dev. = \" + dataStdDev);\n\t\t\t\t\tspeechCount++;\n\t\t\t\t}\n\t\t\t} // end silence loop\n\n\t\t\tLOGGER.info(\"Speech detected! Speech std. dev. = \" + dataStdDev\n\t\t\t\t\t+ \", Silence std. dev. = \" + silenceSignalLevel);\n\n\t\t\t// 2. Collect speech samples and save them into voiceData\n\t\t\tLinkedList<Byte> voiceData = new LinkedList<>();\n\t\t\tint silenceCount = 0;\n\n\t\t\t// 2.2 Here we record the actual speech\n\t\t\t// coming from the microphone\n\t\t\tdo {\n\t\t\t\tfor (byte b : data) {\n\t\t\t\t\tvoiceData.add(b);\n\t\t\t\t}\n\n\t\t\t\t// Read the next chunk of data from the TargetDataLine.\n\t\t\t\tmicrophone.read(data, 0, data.length);\n\t\t\t\tdataStdDev = signalStandardDeviation(data);\n\n\t\t\t\t// LOGGER.info(\"Speech std. dev. = \" + dataStdDev);\n\n\t\t\t\tsilenceFlag = isSilence(dataStdDev);\n\n\t\t\t\tif (silenceFlag) {\n\t\t\t\t\tsilenceCount++;\n\t\t\t\t} else {\n\t\t\t\t\tsilenceCount = 0;\n\t\t\t\t}\n\t\t\t} // end speech loop\n\t\t\twhile (!silenceFlag || silenceCount < CONSECUTIVE_SILENCE_SAMPLES);\n\n\t\t\tLOGGER.info(\"Speech stopped.\");\n\n\t\t\t// 2.3 Collect the last buffers as well\n\t\t\t// to get the start of the syllable.\n\t\t\tint dbc = 0;\n\n\t\t\tdbi--;\n\n\t\t\twhile (dbi >= 0\n\t\t\t\t\t&& dbc < CONSECUTIVE_SPEECH_SAMPLES + (CONSECUTIVE_SILENCE_SAMPLES / 2)) {\n\t\t\t\tbyte[] pastdata = dataBuffers.get(dbi);\n\n\t\t\t\tfor (int i = pastdata.length - 1; i >= 0; i--) {\n\t\t\t\t\tvoiceData.addFirst(pastdata[i]);\n\t\t\t\t}\n\n\t\t\t\tdbi--;\n\t\t\t\tdbc++;\n\t\t\t}\n\n\t\t\t// 3. And save it to the .wav file\n\t\t\tbyte[] pcmData = ArrayUtils.toPrimitive(voiceData.toArray(new Byte[0]));\n\n\t\t\tAudioInputStream ais = new AudioInputStream(new ByteArrayInputStream(pcmData), format,\n\t\t\t\t\tpcmData.length / format.getFrameSize());\n\t\t\tFile wav = new File(\"test.wav\");\n\t\t\tAudioSystem.write(ais, AudioFileFormat.Type.WAVE, wav);\n\n\t\t\t// 4. Release the microphone resource\n\t\t\tmicrophone.stop();\n\t\t\tmicrophone.close();\n\n\t\t\treturn wav;\n\t\t} else {\n\t\t\tthrow new LineUnavailableException();\n\t\t}\n\t}", "title": "" }, { "docid": "9369d04870f4cbe99f095770372ef802", "score": "0.58855873", "text": "public void record(String bridgeId, String name, String format, int maxDurationSeconds, int maxSilenceSeconds, String ifExists, boolean beep, String terminateOn, AriCallback<LiveRecording> callback);", "title": "" }, { "docid": "db04e7495374de30bbd40e00974c2f03", "score": "0.588367", "text": "@Override\n public void onStartedRecording(Transaction transaction) {\n setState(State.LISTENING);\n startAudioLevelPoll();\n }", "title": "" }, { "docid": "cc49f98eaa1af019d2931da25d6b7ea2", "score": "0.58811504", "text": "private void stopRecording() {\n\n write(trackpoints);\n write(TRACKPOINTS_ENDING);\n write(GPXFILE_ENDING);\n trackpoints = \"\";\n // stop recording and release camera\n mMediaRecorder.stop(); // stop the recording\n releaseMediaRecorder(); // release the MediaRecorder object\n mCamera.lock(); // take camera access back from MediaRecorder\n // inform the user that recording has stopped\n captureButton.setText(\"Capture\");\n\n findViewById(R.id.background_capture_video_and_gps).setBackgroundColor(\n Color.WHITE);\n isRecording = false;\n\n // release wakelock\n wLock.release();\n\n }", "title": "" }, { "docid": "7c4a2ce52e82b79d32bb68cbe1d9d448", "score": "0.58726925", "text": "public void beginRecordCode() {\n monitorCurrentActivity();\n\n new Thread(new Runnable() {\n public void run() {\n while (true) {\n sleep(50);\n ArrayList<View> newViews = getTargetViews();\n if (newViews.size() == 0) {\n continue;\n }\n setDefaultFocusView();\n for (View view : newViews) {\n try {\n setHookListenerOnView(view);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }, \"keep hooking new views\").start();\n\n handleRecordMotionEventQueue();\n handleOutputEventQueue();\n\n mLastEventTime = System.currentTimeMillis();\n local.sleep(2000);// waiting for monitor working\n printLog(\"ViewRecorder is ready to work.\");\n }", "title": "" }, { "docid": "cafea1d20fe77f2f718e32ded8a764d1", "score": "0.5866399", "text": "public void done()\r\n {\r\n if (recorder != null)\r\n {\r\n recorder.stop();\r\n recorder.release();\r\n recorder = null;\r\n bolHearing = false;\r\n }\r\n }", "title": "" } ]
38b771adf6efcf13d77f0ff00de33c51
Time complexity: O(1), Space complexity: O(1)
[ { "docid": "1c1a248bf4f1ad597a8815dcde2f8969", "score": "0.0", "text": "public static int hammingWeight(int n) {\n int mask = 1;\n int count = 0;\n\n for(int i = 0; i < 32; i++) {\n if((n & mask) != 0) {\n count++;\n }\n mask <<= 1;\n }\n return count;\n }", "title": "" } ]
[ { "docid": "4393e91597793f7803689aaf85b1de6f", "score": "0.63007367", "text": "@Override\r\n\tpublic BigO solutionTimeComplexity() {\r\n\t\treturn BigO.LINEAR;\r\n\t}", "title": "" }, { "docid": "70f80b5d34e9f835f48391b2f47ee171", "score": "0.5729441", "text": "int getRedundantCopies();", "title": "" }, { "docid": "3637acfce9f3552bd201c5527ad350fc", "score": "0.57120067", "text": "private int mytry(int[] nums) {\n int n = nums.length;\n int result = 0;\n for (int i = 0; i < n; i++) {\n int j = i;\n Set<Integer> set = new HashSet<>();\n while (j < n && set.size() <= 2) {\n set.add(nums[j++]);\n }\n if (set.size() > 2) {\n j--;\n }\n result = Math.max(result, j - i);\n }\n return result;\n }", "title": "" }, { "docid": "51606e9802b40f574bbd6c9f71cbbcb4", "score": "0.56895846", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tint a[] = {1,2,3,3,4,5} ;\n\t\tint duplicateNum = Integer.MAX_VALUE ;\n\t\t\n\t\tfor(int i = 0 ; i< a.length ; i++)\n\t\t{\n\t\t\tfor(int j = 0 ; j < a.length ; j++)\n\t\t\t{\n\t\t\t\tif(i==j)\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tif(a[i] == a[j])\n\t\t\t\t\tduplicateNum = a[i];\n\t\t\t\t \n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The duplicate Number is \" + duplicateNum);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//In O(n) time complexity using HashSet but O(n) of space complexity\n\t\t\n\t\tint b[] = { 2,3,5,6,7,8,9,9,10};\n\t\tint bDuplicate= Integer.MAX_VALUE;\n\t\t\n\t\tHashSet<Integer>set = new HashSet();\n\t\t\n\t\tfor(int i = 0 ; i < b.length ; i++)\n\t\t{\n\t\t\tif(!set.add(b[i]))\n\t\t\t\tbDuplicate=b[i];\n\t\t\t\t\n\t\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"The duplcate elemnt in b array is\"+ bDuplicate);\n\t\n\t\n\t\n\t\n\t//To find multiple occurences of values using HashTable or HashMap\n\t\n\tint c[] = { 1,1,2,2,3,3,4,5,7,8,9,7,8,1,5};\n\t\n\t\n\tHashMap<Integer,Integer> map = new HashMap<>();\n\t\n\tfor(int i = 0 ; i < c.length ; i++)\n\t{\n\t\tif(!map.containsKey(c[i]))\n\t\t map.put(c[i],1);\n\t\telse\n\t\t\tmap.put(c[i], map.get(c[i])+ 1);\n\t}\n\t\n\tfor( int i : map.keySet())\n\t\tSystem.out.println(\"Num : \"+i +\"\\t\"+\"Count : \"+ map.get(i));\n\n}", "title": "" }, { "docid": "2e3f75f04e17b29f6f3bdb036f1ecd29", "score": "0.56453216", "text": "public void doIt() {\n\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tSystem.out.println(linearSearch(array, ARRAY_SIZE/2-1));\r\n\t\tlong stopOne = System.currentTimeMillis();\r\n\t\tSystem.out.println(binSrch(array, ARRAY_SIZE/2-1));\r\n\t\tlong stopTwo = System.currentTimeMillis();\r\n\t\t\r\n\t\tSystem.out.println(\"Iter took \" + (stopOne-start) + \" Recur took \" + (stopTwo - stopOne));\r\n//\t\tSystem.out.println(recBinSrch(array, ARRAY_SIZE/2-1, 0, array.length-1));\r\n}", "title": "" }, { "docid": "f7329c1dbb13e85fb87a04e8a38de4d0", "score": "0.5609044", "text": "public static void efficientMethod(int[] arr, int n)\n {\n int[] newArr = new int[n];\n for(int i = 0; i<n; i++)\n {\n if(arr[i] == 0)\n newArr[i] = -1;\n else\n newArr[i] = arr[i];\n }\n int sum = 0;\n int prefixSum = 0 ;\n int res = 0;\n HashMap<Integer, Integer> hashMap = new HashMap<>();\n for(int i = 0; i<n;i++)\n {\n prefixSum += newArr[i];\n if(prefixSum == sum)\n res = i+1;\n if(!hashMap.containsKey(prefixSum))\n hashMap.put(prefixSum, i);\n\n if(hashMap.containsKey(prefixSum - sum))\n res = Math.max(res, i - hashMap.get(prefixSum-sum));\n\n }\n\n System.out.println(\"Longest SubArray with Equal 0's and 1's: \" + res);\n }", "title": "" }, { "docid": "8c84dced969c368bec6195b9360c6940", "score": "0.5601808", "text": "static int [] findTwoElement(int a[], int n) {\n int res[]={0,0};\n for(int j=0;j<n;j++)\n a[j]=(-1)*a[j];\n int i=0;\n long sum=0;\n while(i<n)\n {\n \n if(a[i]>=0)\n {\n i++;\n continue;\n }\n int ind=Math.abs(a[i])-1;\n //1 4 3 3 5\n //-1 -4 -3 -3 -5\n //1 -4 -3 -3 -5\n //1 \n if(a[ind]>=0)\n {\n sum+=ind+1;\n a[ind]+=1;\n a[i]=0;\n if(a[ind]>1)\n res[0]=ind+1;\n i++;\n }\n else \n {\n a[i]=a[ind];\n sum+=ind+1;\n a[ind]=1;\n }\n }\n System.out.println(Arrays.toString(a));\n long totalSum=(n*(n+1))/2;\n\n return res;\n }", "title": "" }, { "docid": "c036ac202cd52671bcc18b61a1c24826", "score": "0.5583056", "text": "public int singleNumber(int[] nums) {\n // Below method takes O(n) space\n// HashMap<Integer,Integer> checkNumber = new HashMap<>();\n// for (int i=0; i<nums.length; i++) {\n// if (checkNumber.containsKey(nums[i])) {\n// int appendValue = checkNumber.get(nums[i]);\n// appendValue++;\n// checkNumber.replace(nums[i],appendValue);\n// } else {\n// checkNumber.put(nums[i],1);\n// }\n// }\n// if(checkNumber.containsValue(1)) {\n// for (Object o : checkNumber.keySet()) {\n// if (checkNumber.get(o).equals(1)) {\n// return (int)o;\n// }\n// }\n// }\n // This takes O(1) space complexity\n int ans = 0;\n for (int i=0; i<nums.length; i++) {\n ans ^= nums[i];\n }\n return ans;\n }", "title": "" }, { "docid": "747749e0c0c1e7e5fe8bbb4e24168a0a", "score": "0.5558083", "text": "private static int magicFast_nondistinct_util(int[] array, int start, int end) {\n\t\tif(end<start || start<0 || end>=array.length){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t\r\n\t\tint mid= (start+end)/2;\r\n\t\tif(array[mid] == mid){\r\n\t\t\treturn mid;\r\n\t\t}\r\n\t\t\r\n\t\t//search left\r\n\t\tint leftIndex = Math.min(mid-1, array[mid]);\r\n\t\tint left = magicFast_nondistinct_util(array,start,leftIndex);\r\n\t\tif(left>-1){\r\n\t\t\treturn left;\r\n\t\t}\r\n\t\t\r\n\t\t//search right\r\n\t\tint rightIndex = Math.max(mid+1, array[mid]);\r\n\t\tint right = magicFast_nondistinct_util(array,rightIndex, end);\r\n\t\treturn right;\r\n\t}", "title": "" }, { "docid": "d083fa96515e31891f1047c4b9b1b703", "score": "0.55452156", "text": "public String lcsBigO3(String s) {\n\n String reverse_s = \"\";\n String longest_string = \"\";\n\n // 1. empty check\n if (s.length() == 0) {\n return \"\";\n }\n if (s.length() == 1) {\n return s;\n }\n // 2. reverse string ( N time)\n for (int i =0; i< s.toCharArray().length; i++) {\n reverse_s = reverse_s + s.charAt((s.length() - 1) - i);\n }\n\n if(s.equals(reverse_s)) {\n return s;\n }\n\n\n char[] a = s.toCharArray();\n char[] b = reverse_s.toCharArray();\n int[][] metrics = new int[a.length][b.length];\n\n // 3. Make metrics!\n for (int i =0; i < a.length; i++) {\n for (int j = 0; j < b.length; j++) {\n if (a[i] == b[j]) {\n if ( (i > 0 && j > 0) && metrics[i-1][j-1] > 0) {\n\n // 1. Set metrics\n metrics[i][j] = metrics[i-1][j-1] + 1;\n // 2. Check if it's palindromic\n // start_index and last_index\n int start_index = i - metrics[i][j] + 1;\n int last_index = i;\n boolean is_palindromic = true;\n String candidate_palindromic = \"\";\n\n for (int ii = start_index; ii <= i; ii++) {\n candidate_palindromic = candidate_palindromic + a[ii];\n // ++ --\n if(a[ii] != a[last_index]) {\n is_palindromic = false;\n break;\n }\n last_index--;\n }\n\n // 4. if it's a palindromic then compare longest then samp!\n if (is_palindromic && longest_string.length() < metrics[i][j]) {\n longest_string = candidate_palindromic;\n }\n\n } else {\n metrics[i][j] = 1;\n\n // If there is no value then set data\n if (longest_string.length() == 0) {\n longest_string = longest_string + a[i];\n }\n\n }\n } else {\n metrics[i][j] = 0;\n }\n }\n }\n\n return longest_string;\n }", "title": "" }, { "docid": "86f98d28d2e47f4683f27a0efe0f7031", "score": "0.5531311", "text": "public abstract long mostRepeated(long[] vector) throws Exception;", "title": "" }, { "docid": "f9e7c7195aff0bdda6ecc12ccca6a3a6", "score": "0.55228513", "text": "static int Q15(ArrayList<Integer> input){\n \tint maxtime=0;\n \tint result=0;\n \t\n \t\n \tfor(int e:input){\n \t\tint time=0;\n \t\tfor(int e2:input){\n \t\t\tif(e==e2){\n \t\t\t\ttime++;\n \n \t\t\t}\n \t\t\t\n \t\t\t\n \t\t}\n \t\tif(maxtime<time){\n \t\t\tresult=e;\n \t\t\tmaxtime=time;\n \t\t\t\n\t\t\t}\n \t}\n\n return result;\n }", "title": "" }, { "docid": "df532c9704bc0d82ba3fba6b55f7240e", "score": "0.5476188", "text": "public static int reduce(int[] sr, int[] sc, int pos){\n List<Integer>list=new ArrayList<Integer>(); \n List<Integer>list2=new ArrayList<Integer>(); \n for(int i:sr)\n list.add(i);\n for(int i:sc)\n list2.add(i);\n \n int count=0;\n for (int i=0; i<pos+1;i++){\n for (int k=0; k<i; k++){\n if(list.get(i)==list.get(k) && list2.get(i)==list2.get(k)){\n count++;\n }\n if (count>0){ \n list.remove(i);\n list2.remove(i);\n pos--;\n count=0;\n break;\n }\n }\n }\n \n for(int i=0; i<list.size()-1;i++){\n if (list.get(i)==0 && list2.get(i)==0 && list.get(i)==0 && list2.get(i)==0){\n list.remove(i);\n list2.remove(i);\n }\n }\n \n for(int i=0; i<list.size();i++){\n sr[i]=list.get(i);\n sc[i]=list2.get(i);\n } \n return (pos); \n }", "title": "" }, { "docid": "31f488fc1bdba2edd3586f00c9a74505", "score": "0.5421802", "text": "public int findDuplicate2(int[] nums) {\n int slow = nums[0], fast = nums[nums[0]];\n while (slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n fast = 0;\n while (slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n }", "title": "" }, { "docid": "1b90fc9c01ab41caad08062a08766703", "score": "0.54153097", "text": "public int findMiss(ArrayList<Integer> a){//array a stores all numbers from 0 to n except 1\n\t\tint n = a.size();\n\t\tif (n == 0)//if size is zero, then we have all used up all \"zeros\"\n\t\t\treturn 1;\n\t\tif (n == 1)//if size is one, then we reach the last digit\n\t\t\treturn (a.get(0) & 1) == 0 ? 1 : 0;\n\t\tint c = (int)Math.ceil(Math.log(n+1)/Math.log(2));\n\t\tArrayList<Integer> zeros = new ArrayList<Integer>();\n\t\tArrayList<Integer> ones = new ArrayList<Integer>();\n\t\tfor (int e : a){\n\t\t\tif (getOneDigit(e, c-1) == 0){\n\t\t\t\tzeros.add(e);\n\t\t\t} else{\n\t\t\t\tones.add(e);\n\t\t\t}\n\t\t}\n\t\tif (zeros.size() == Math.pow(2, c-1)){\n\t\t\treturn findMiss(ones) + (int)Math.pow(2, c-1);\n\t\t} else{\n\t\t\treturn findMiss(zeros);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "43a731a27662d85103ade0f1f5ce7c2d", "score": "0.5411674", "text": "public static int solution(int[] A) {\n\t\t int result = 0;\r\n\t /*for(int i = 0; i<A.length;i++){\r\n\t for(int j = i;j<A.length;j++){\r\n\t if(A[i] == 0 && A[j] == 1){\r\n\t result++;\r\n\t }\r\n\t }\r\n\t }*/\r\n\t \r\n\t // O(n)\r\n\t int east = 0;\r\n\t for(int i = 0; i<A.length; i++){\r\n\t\t if(A[i] == 0){\r\n\t\t east++;\r\n\t\t }\r\n\t\t else{\r\n\t\t result+=east;\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t if(Math.abs(result) > 1000000000){\r\n\t\t return -1;\r\n\t\t }\r\n\t\t return result;\r\n\t }", "title": "" }, { "docid": "31daa93c293b57333546a3f824004bcc", "score": "0.5394847", "text": "static void checkForDoublesV2(int[] array) {\n int count = 0;\n int max = 0;\n for (int value : array) { //O(n)\n if (value > max) {\n max = value;\n }\n }\n\n int[] arr = new int[max+1];\n\n for (int i = 0; i < array.length; i++) { //O(n)\n if (arr[array[i]] == array[i]) {\n System.out.println(arr[array[i]]);\n count++;\n } else {\n arr[array[i]] = array[i];\n }\n }\n System.out.println(\"The count is:\");\n System.out.println(count);\n\n }", "title": "" }, { "docid": "974cabdce45ce7d7ed8d75d7d887fff6", "score": "0.53894365", "text": "public static void main(String[] args) {\n\tint [] x=new int[]{9,7,9,8};int c=0,s=0;\r\n\tfor(int i=0;i<x.length;i++){\r\n\t\tfor(int j=i+1;j<x.length;j++){\r\n\t\tif(x[i]==x[j]){\r\n\t\t\tc++;\r\n\t\ts=x[i];\t\r\n\t\t\t}\r\n\t\t\t\r\n}\r\n\t}System.out.println(s);\r\n}", "title": "" }, { "docid": "3e03f6538d16e9aa05c50801351872fa", "score": "0.53829604", "text": "static int Q8(ArrayList<Integer> input){\n \tQ1(input);\n \tint index=input.size()-2;\n \twhile (input.get(index)==input.get(index+1)){\n \t\tindex--;\n \t}\n \t\n \t\n\n return input.get(index);\n }", "title": "" }, { "docid": "c6cc2e838c5391cf977b1de589e51087", "score": "0.53818464", "text": "public int findDuplicate(int[] nums) {\n // write your code here\n if(nums == null || nums.length < 2) {\n return -1;\n }\n int len = nums.length;\n int left = 0, right = len-1;\n while(left + 1 < right) {\n int mid = left + (right-left)/2;\n boolean res = check(nums, mid);\n if(res) {\n // 结果可能包含在mid中\n right = mid;\n } else {\n // 结果一定不在mid中\n left = mid + 1;\n }\n }\n if(check(nums, left)) {\n return left;\n }\n return right;\n}", "title": "" }, { "docid": "de7e4bb53880011082c0e85cab542b4e", "score": "0.53816736", "text": "private static int bruteForce(int[] cost) {\n //int[] cache = new int[cost.length];\n //Arrays.fill(cache, -1);\n int one = bruteForceHelper(cost, 0, 0);\n int two = bruteForceHelper(cost, 1, 0);\n\n return Math.min(one, two);\n }", "title": "" }, { "docid": "14a07854e5d03fdf8176b58152bb65a0", "score": "0.53669316", "text": "private static void iterative(int[] a, int i) {\n\t\tint n=a.length/2;\r\n\t\tint k=0,j=a.length;\r\n\t\twhile(j>=0&&k<a.length) {\r\n\t\t\t//n=n/2;\r\n\t\t\tif(a[n]==i)\r\n\t\t\t\t{ System.out.println(n);\r\n\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\tif(a[n]>i)\r\n\t\t\t{\t\r\n\t\t\t//n=n/2;\r\n\t\t\tj=n-1;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//n=(int) (1.5*n);\r\n\t\t\t\tk=n+1;\r\n\t\t\t}\r\n\t\t\tn=(k+j)/2;\r\n\t\t}\r\n\t\tSystem.out.println(\"not found\");\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "95e6c8fc12ccf5971b32ff0bf1892cdd", "score": "0.53551495", "text": "ArrayList<Pair> method2(int a[], int sum){\r\n ArrayList<Pair> l = new ArrayList<Pair>();\r\n HashSet<Integer> hs = new HashSet<Integer>();\r\n for(int i: a){\r\n int c = sum-i;\r\n if(!hs.contains(c) && hs.contains(i)){\r\n l.add(new Pair(i,c));\r\n }\r\n hs.add(i);\r\n }\r\n return l;\r\n }", "title": "" }, { "docid": "0090bc7143100e0c1305058772f765bb", "score": "0.53383696", "text": "static void whatFlavors(int[] cost, int money) {\n boolean loop = false;\n int x,y;\n int m = money;\n HashMap<Integer, Integer> element = new HashMap<Integer, Integer>();\n for(int i =0;i<cost.length;i++){\n x=cost[i];\n y=m-x;\n if(element.get(y)!=null){\n System.out.println((element.get(y))+\" \"+(i+1));\n }\n else element.put(x,(i+1));\n\n\n\n\n\n //this algorithm is n^2\n\n // for(int j = 1; j<cost.length; j++){\n // if(cost[i]+cost[j]==money){\n // System.out.println((i+1)+\" \"+(j+1));\n // loop = true;\n // break;\n // }\n // }\n // if(loop==true){\n // break;\n // }\n\n\n\n\n }\n\n }", "title": "" }, { "docid": "83b69a247491f96f1d33ee75ca8aa4b6", "score": "0.533522", "text": "void method1(int a[], int sum){\r\n for(int i=0;i<a.length-1;i++){\r\n for(int j=i+1;i<a.length;j++){\r\n if((a[i]+a[j])==sum){\r\n System.out.println(\"Pair: \"+a[i]+\" \"+a[j]);\r\n System.out.println();\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "25b811b69c498bcfa4c77b9f9f00df4e", "score": "0.5322368", "text": "static int removeDuplicates2(int[] nums) {\n if (nums.length == 0) return 0;\n if (nums.length == 1) return 1;\n int i=1;\n int min = nums[0];\n for (int j = 1; j < nums.length; j++) {\n if (min < nums[j]) {\n int temp = nums[j];\n nums[j] = nums[i];\n nums[i++] = temp;\n min = temp;\n }\n }\n return i;\n }", "title": "" }, { "docid": "b876860e22106bf3a607362ca8d3db63", "score": "0.5308365", "text": "static int Q1(ArrayList<Integer> input){\n \t\n \n \t\n \t\n\t\t\n \tfor(int j=0;j<input.size();j++){\n \t\tint minvalue = input.get(j);\n \t\tint minindex=j;\n \t\tfor(int i=j+1;i<input.size();i++){\n \t\t\t\n \t\t\tif(minvalue>input.get(i)){\n \t\t\t\t\n \t\t\t\tminvalue=input.get(i);\n \t\t\t\tminindex=i;\n \t\t\t}\n \t\t\t\n \t\t\t\n \t\t\n \t\t\t\n \t\t}\n \t\t\n \t\tinput.set(minindex, input.get(j));\n \t\tinput.set(j, minvalue);\n\t\t\n \t\t}\n\n return input.get(0);\n }", "title": "" }, { "docid": "aaca09ee9830f6551b66cc52f0869a96", "score": "0.52873427", "text": "static\nvoid\nUnionArray(\nint\narr1[], \n\nint\narr2[]) \n\n{\n\nint\nm = arr1[arr1.length - \n1\n]; \n\nint\nn = arr2[arr2.length - \n1\n]; \n\n\nint\nans = \n0\n; \n\n\nif\n(m > n) \n\n{ \n\nans = m; \n\n} \n\nelse\n\nans = n; \n\n\n// Finding elements from 1st array \n\n// (non duplicates only). Using \n\n// another array for storing union \n\n// elements of both arrays \n\n// Assuming max element present \n\n// in array is not more than 10^7 \n\nint\nnewtable[] = \nnew\nint\n[ans + \n1\n]; \n\n\n// First element is always \n\n// present in final answer \n\nSystem.out.print(arr1[\n0\n] + \n\" \"\n); \n\n\n// Incrementing the First element's count \n\n// in it's corresponding index in newtable \n\n++newtable[arr1[\n0\n]]; \n\n\n// Starting traversing the first \n\n// array from 1st index till last \n\nfor\n(\nint\ni = \n1\n; i < arr1.length; i++) \n\n{ \n\n// Checking whether current element \n\n// is not equal to it's previous element \n\nif\n(arr1[i] != arr1[i - \n1\n]) \n\n{ \n\nSystem.out.print(arr1[i] + \n\" \"\n); \n\n++newtable[arr1[i]]; \n\n} \n\n} \n\n\n// Finding only non common \n\n// elements from 2nd array \n\nfor\n(\nint\nj = \n0\n; j < arr2.length; j++) \n\n{ \n\n// By checking whether it's already \n\n// present in newtable or not \n\nif\n(newtable[arr2[j]] == \n0\n) \n\n{ \n\nSystem.out.print(arr2[j] + \n\" \"\n); \n\n++newtable[arr2[j]]; \n\n} \n\n} \n\n}", "title": "" }, { "docid": "b6c2a2a250b9861bf56dd139942a84cb", "score": "0.5266516", "text": "private int linearHelper(int[] nums){\n if(nums.length == 0) return 0;\n int longestSteak = 1;\n HashSet<Integer> a = new HashSet<>(nums.length);\n for(int i=0; i<nums.length; ++i){\n a.add(nums[i]);\n }\n\n for(int i=0; i<nums.length; ++i){\n int cur = nums[i];\n int steak = 1;\n\n boolean found;\n do{\n cur += 1;\n found = a.contains(cur);\n if(found)\n longestSteak = Math.max(longestSteak, ++steak);\n }while(found);\n }\n\n return longestSteak;\n }", "title": "" }, { "docid": "8587c16585d26bf0a9559aba06946cfd", "score": "0.5256916", "text": "private int getLastIndex(){\n return arr.size() - 1; // O(1)\n }", "title": "" }, { "docid": "acfa67f19a4615c12af40086351e57fa", "score": "0.5227002", "text": "public static List<Integer> unionHandleDuplicate(int[] arr1, int[] arr2) { // Time: O(n1 + n2)\n int n1 = arr1.length;\n int n2 = arr2.length;\n\n int a = arr1[n1 - 1];\n int b = arr2[n2 - 1];\n\n int maxValue = 0;\n\n if (a > b) {\n maxValue = a;\n } else {\n maxValue = b;\n }\n\n int[] dp = new int[maxValue + 1]; // Space: O(max(a, b))\n List<Integer> result = new ArrayList<Integer>(); // O(n1 + n2)\n\n result.add(arr1[0]);\n\n ++dp[arr1[0]]; // First element is always present in the final result\n\n for (int i = 1; i < n1; i++) {\n if (arr1[i] != arr1[i - 1]) {\n result.add(arr1[i]);\n ++dp[arr1[i]];\n }\n }\n\n for (int i = 0; i < n2; i++) {\n if (dp[arr2[i]] == 0) { // find elements not yet found in dp\n result.add(arr2[i]);\n ++dp[arr2[i]];\n }\n }\n\n return result;\n }", "title": "" }, { "docid": "5ad7ccb8f45039dda412aa4ace709ba4", "score": "0.52203315", "text": "public boolean containsNearbyDuplicate(int[] nums, int k) {\r\n for (int i = 0; i < nums.length; ++i) {\r\n for (int j = Math.max(i - k, 0); j < i; ++j) {\r\n if (nums[i] == nums[j]) return true;\r\n }\r\n }\r\n return false;\r\n}", "title": "" }, { "docid": "1a3614958ddc3bdf3cd5c0e4c6d6acce", "score": "0.5216993", "text": "@Test\r\n\tpublic void test1() {\r\n\r\n\t\tint[] input = { 4, 5, 2, 1, 5, 4, 2, 1, 0, 1 };\r\n\t\tSystem.out.println(mostRepeated(input));\r\n\t}", "title": "" }, { "docid": "bc72c94e1494170bbc4acdb0401f6dc8", "score": "0.5213014", "text": "public static void main(String[] args) {\n\t\tint n = 1;\n\t\tSystem.out.println(n);\n\n\t\t// O(1) it will execute only once how ? its just checking number no matter\n\t\t// how big number and deciding its odd or even\n\t\tint number = 20;\n\t\tif (number % 2 == 0) {\n\t\t\tSystem.out.println(\"even\");\n\t\t} else {\n\t\t\tSystem.out.println(\"odd\");\n\t\t}\n\n\t\t/**\n\t\t * this concept calls Big O of n O(n) how here q=10 is constant value inside for\n\t\t * loop i iterate 10 times it could be 100 0r one thousand or more we take it as\n\t\t * n number print line is also constant at the end we drop constant values we\n\t\t * have n it means our statement execute n number of time O(n)\n\t\t */\n\t\tint q = 10;\n\t\tfor (int i = 0; i <= q; i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\n\t\t// program to find largest num in unsorted array\n\t\t/**\n\t\t * TIME COMLEXITY FOR THIS STATEMENT IS: max = 0; CONSTANT EQUAL 1 LOOP EXECUTE\n\t\t * BASED ON ARRAY LENGHT IT MEANS n time and printing line also constant 1 then\n\t\t * ignoring all the constant we n Big O of n 1+n+1 ==> 2n ==> n ==> 0(n)\n\t\t */\n\t\tint nume[] = { 23, 45, 67, 65, 78, 98, 89, 55, 101, 19, 108 };\n\t\tint max = 0;\n\t\tfor (int i = 0; i < nume.length; i++) { // this line looping\n\t\t\tif (max < nume[i]) { // this line one by one checking\n\t\t\t\tmax = nume[i]; // this line comparing until finding large numb\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"max number is: \" + max);\n\n\t\t// getting student marks with hashmap\n\t\t// this also equal to O(1) because executing only once\n\n\t\tMap<String, Integer> marks = new HashMap<String, Integer>();\n\t\tmarks.put(\"Jeyhun\", 100);\n\t\tmarks.put(\"Naveen\", 101);\n\t\tmarks.put(\"Ahmed\", 99);\n\t\tmarks.put(\"Ali\", 105);\n\t\tmarks.put(\"Tom\", 110);\n\n\t\tInteger getvalue = marks.get(\"Naveen\");\n\t\tSystem.out.println(\"student marks:\" + getvalue);\n\n\t\t/**\n\t\t * this all example is liner equation\n\t\t */\n\n\t\t/**\n\t\t * this two for loop concept outer for loop and inner for loop will create\n\t\t * QUADRATIC EQUATION time complexity O(n^2) Big O n square of 2\n\t\t */\n\t\tfor (int i = 0; i <= 5; i++) {\n\t\t\tfor (int y = 0; y <= 5; y++) {\n\t\t\t\tSystem.out.print(i + \"\" + y + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t// another example of O(n^2)\n\t\t// wap to find duplicate array from an arraylist\n\t\t/**\n\t\t * this statement is also O n Square\n\t\t * O(n^2)\n\t\t */\n\t\tint arr[] = { 22, 3, 5, 76, 88, 55, 33, 3, 22, 56, 78, 90, 00, 00, 76, 55, };\n\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int y = 0; y < arr.length; y++) {\n\t\t\t\tif (i == y) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (arr[i] == arr[y]) {\n\t\t\t\t\tSystem.out.println(arr[i] + \" --- is dublicate\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\n\t\t// this example of 3 for loop \n\t\t// this concept call \n\t\t// this statement is O n Square 3\n\t\t// O(n^3)\n\t\tint ar[] = { 22, 3, 5, 76, 88, 55, 33, 3, 22, 56, 78, 90, 00, 00, 76, 55, };\n\n\t\tfor (int i = 0; i < ar.length; i++) {\n\t\t\tfor (int y = 0; y < ar.length; y++) {\n\t\t\t\tfor (int j = 0; j < ar.length; j++) {\n\t\t\t\t\tif (i == y || i == j) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (ar[i] == ar[y] || ar[i] == ar[j]) {\n\t\t\t\t\t\tSystem.out.println(ar[j] + \" --- is dublicate\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "299581f40e4fe522dd1f7ce09e93f4da", "score": "0.5207442", "text": "private static int removeDuplicates(int[] p) {\n int newLength = 0;\n int temp = 0;\n for (int i = 0; i < p.length; i++) {\n if (p[i] != p[i + i]) {\n p[temp++] = p[i];\n }\n p[temp++] = p[p.length - 1];\n }\n newLength = p.length;\n return newLength;\n }", "title": "" }, { "docid": "2ec6b7bb8f104bc3d0011cf30a78cc4e", "score": "0.52073085", "text": "public static int findDuplicate(int[] nums) {\n if(nums != null && nums.length > 1)\n {\n int slow=nums[0];\n int fast=nums[2];\n \n while(slow != fast)\n {\n slow=nums[slow];\n fast=nums[nums[fast]];\n }\n fast=0;\n while(fast != slow)\n {\n slow=nums[slow];\n fast=nums[fast];\n }\n return slow;\n }\n \n return -1;\n \n }", "title": "" }, { "docid": "18ef20c71dab13cfa2dd8916d291eb1d", "score": "0.52015305", "text": "public static void main(String[] args) {\n Scanner S=new Scanner(System.in);\n int n=S.nextInt();\n int b=S.nextInt();\n int a[]=new int [n];\n int i=0,s=0;\n for(i=0;i<n;i++)\n {\n a[i]=S.nextInt();\n }\n int c[]=new int[n];\n int j=0,k=0,m=0;\n c[0]=-1;\n for(i=0;i<n;i++)\n {\n for(j=i+1;j<n;j++)\n {\n if((a[i]+a[j])==b)\n {\n m++;\n c[k]=a[i];\n k++;\n c[k]=a[j];\n k++;\n break;\n }\n if(a[i]==b&&s==0)\n {\n m++;\n s=1;\n break;\n }\n }\n }\n for(i=0;i<k;i++)\n {\n for(j=i+2;j<k;j++)\n {\n if(c[i]==c[j])\n {\n m--;\n i++;\n break;\n }\n }\n }\n System.out.println(m);\n }", "title": "" }, { "docid": "848a825b33cb00b5d87f286f9f214d1e", "score": "0.5201283", "text": "void dfs0(int u, int p) {\n sum[u] = a[u];\n\n for (int i = 0; i < g[u].size(); i++) {\n int v = (int) g[u].get(i);\n\n if (v != p) {\n dfs0(v, u);\n sum[u] += sum[v];\n }\n }\n\n //map.merge(sum[u], 1, (x, y) -> x + y);\n\n long g = gcd(sum[u], tot);\n\n if (tot / g <= n) {\n cnt[(int) (tot / g)]++;\n }\n }", "title": "" }, { "docid": "e2db3c035ab28a78fd9fc31be305f063", "score": "0.52002555", "text": "O apply(I input);", "title": "" }, { "docid": "16d62b1013fa199c18b05d0af7e66b9e", "score": "0.51942533", "text": "void method3(int a[], int sum){\r\n Arrays.sort(a);\r\n int f = 0;\r\n int l = a.length-1;\r\n while(f<l){\r\n int s = a[f] + a[l];\r\n if(s == sum){\r\n System.out.println(a[f]+\" \"+a[l]);\r\n }\r\n f++;\r\n l--;\r\n }\r\n }", "title": "" }, { "docid": "029fd9957658996a71b9f5e1eb9a6ed4", "score": "0.5192856", "text": "int solution(int X, int Y, int[] A) {\nint N = A.length;\nint result = -1;\nint nX = 0;\nint nY = 0;\nfor (int i = 0; i < N; i++) {\nif (A[i] == X)\nnX += 1;\nif (A[i] == Y)\nnY += 1;\nif (nX == nY && nX!=0 && nY!=0 ) // this line\nresult = i;\n\n}\nreturn result;\n}", "title": "" }, { "docid": "16c12324ae778699db93d53320a71c2d", "score": "0.5186994", "text": "static public int solutionFast(int[] A) {\n\t\tArrays.parallelSort(A);\n\t\tlong start = System.nanoTime();\n\t\tint n = Arrays.stream(A)\n\t\t\t\t.filter(e->e<0)\n\t\t\t\t.filter(e->Arrays.binarySearch(A, -e) >=0)\n\t\t\t\t.map(Math::abs)\n\t\t\t\t.findFirst()\n\t\t\t\t.orElse(0);\n\t\tlong time = System.nanoTime() - start;\n\t\tSystem.out.println( \"solutionFast search = \"+time+\" nano\");\n\t\treturn n;\n\t}", "title": "" }, { "docid": "2d2ad8ea007fed714a0057072d1fd2c6", "score": "0.5183265", "text": "public static void letsTravelTheWorldsAndInfectSomeRabbits(){\n //Integer sequence A000041 + fastest implementation\n //Sequence: https://oeis.org/A000041\n //Fastest implementation: http://jeromekelleher.net/category/combinatorics.html\n int[] a = new int[numOfRabbits];\n int k = 1,l,x,y = numOfRabbits-1;\n while (k != 0) {\n x = a[k - 1] + 1;\n k -= 1;\n while (x << 1 <= y) {\n a[k] = x;\n y -= x;\n k += 1;}\n l = k + 1;\n while (x <= y) {\n a[k] = x;\n a[l] = y;\n \n //found valid partiion\n if (foundRabbits(a, k + 2)) justDoIt(a,k+2);\n \n x += 1;\n y -= 1;}\n a[k] = x + y;\n y += x - 1;\n\n //found valid partiion\n if (foundRabbits(a, k + 1)) justDoIt(a,k+1);}\n }", "title": "" }, { "docid": "83fcda063acd0a9808bce37a277c7918", "score": "0.5163105", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint soa = sc.nextInt();\n\t\tint[] arr = new int[soa];\n\t\tfor (int i = 0; i < soa; i++)\n\t\t\tarr[i] = sc.nextInt();\n\n\t\tint sum = 0;\n\t\tboolean fz = false;\n\t\tboolean fo = false;\n\n\t\tfor (int i = 0; i < soa; i++) {\n\t\t\tif (arr[i] == 0)\n\t\t\t\tfz = true;\n\t\t\tif (arr[i] == 1)\n\t\t\t\tfo = true;\n\t\t}\n\t\tif (fz == false || fo == false) {\n\t\t\tSystem.out.println(\"Not Found\");\n\t\t\treturn;\n\t\t}\n\n\t\tfor (int i = 0; i < soa; i++) {\n\t\t\tarr[i] = arr[i] == 0 ? -1 : 1;\n\n\t\t}\n\t\tfor (int i = 0; i < soa; i++) {\n\t\t\tsum += arr[i];\n\t\t}\n\t\tif (sum == 0) {\n\t\t\tfor (int i = 0; i < soa; i++) {\n\t\t\t\tSystem.out.print((arr[i] = arr[i] == -1 ? 0 : 1) + \" \");\n\n\t\t\t}\n\t\t\treturn;\n\n\t\t}\n\t\tsum = 0;\n\t\tint maxlen = 0;\n\t\tint osi = 0;\n\t\tint oei = 0;\n\t\tHashMap<Integer, Pair> map = new HashMap<>();\n\t\tfor (int i = 0; i < soa; i++) {\n\t\t\tsum += arr[i];\n\t\t\tmap.put(sum, map.containsKey(sum) ? new Pair(map.get(sum).si, i) : new Pair(i, i));\n\n\t\t\tPair temp = map.get(sum);\n\t\t\tif (temp.ei - temp.si >= maxlen) {\n\t\t\t\tmaxlen = temp.ei - temp.si;\n\t\t\t\tosi = temp.si;\n\t\t\t\toei = temp.ei;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = osi + 1; i <= oei; i++)\n\t\t\tSystem.out.print((arr[i] = arr[i] == -1 ? 0 : 1) + \" \");\n\n\t}", "title": "" }, { "docid": "b926c2f2613272fc24ebf2440c2e1ea6", "score": "0.5163004", "text": "public boolean improved(int[] nums, int k) {\n int n = nums.length;\n if (n % k != 0)\n return false;\n HashMap<Integer, Integer> map = new HashMap<>();\n Queue<Integer> q = new LinkedList<>();// 用于保存最小元素\n\n for (int i = 0; i < nums.length; i++) {\n int key = nums[i];\n Integer n_ = map.get(key);\n map.put(key, (n_ == null ? 1 : n_ + 1));\n }\n\n // for (int i = 0; i < nums.length; i++)\n // if (!map.containsKey(nums[i] - 1))\n // q.add(nums[i]);\n Set<Integer> keySet = map.keySet();\n for (int key : keySet) {\n if (!map.containsKey(key - 1))\n q.add(key);\n }\n\n int t;\n int _key;\n while (map.size() != 0) {\n Integer key = q.poll();\n Integer val = map.get(key);\n for (int i = k - 1; i != -1; i--) {\n _key = key + i;\n Integer l = map.get(_key);\n if (l == null)\n return false;\n t = l - val;\n map.put(_key, t);\n if (t == 0) {\n Integer _x = map.get(_key + 1);\n if (_x != null && _x != 0)\n q.add(_key + 1);\n map.remove(_key);\n }\n if (t < 0)\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "4fa816a8807860b1ded0a8fb36d46e59", "score": "0.5161753", "text": "static int removeDuplicates3(int[] nums) {\n if (nums.length == 0) return 0;\n int i = 0;\n for (int j=1;j<nums.length;j++) {\n if (nums[j]!=nums[i]) {\n nums[++i] = nums[j];\n }\n }\n return i+1;\n }", "title": "" }, { "docid": "b5d40f04789f73b34246506473f43d2f", "score": "0.51550895", "text": "public static void optimizedMethod(){\r\n\r\n\t\tlong start = System.nanoTime();\r\n\t\tlong sum = 0;\r\n\t\tlong squared = 0;\r\n\t\tlong result = 0;\r\n\t\t \r\n\t\tint N = 100;\r\n\t\t \r\n\t\tsum = N * (N+1)/ 2;\r\n\t\tsquared = (N * (N + 1) * (2 * N + 1)) / 6;\r\n\t\t\r\n\t\tresult = sum * sum - squared;\r\n\t\t\r\n\t\tSystem.out.println(\"Difference is for new method :\" + result);\r\n\t\t\r\n\t\tlong stop = System.nanoTime();\r\n\t System.out.println(\"New Time: \" + (stop - start) / 1000 + \" microseconds\");\r\n\t}", "title": "" }, { "docid": "0de4556b3c2714ad595cec7109589e87", "score": "0.5153956", "text": "private static void findNoUsingHashing(int[] arr, int n) {\n\t\tint result[] = new int[n+2];\r\n\t\tArrays.fill(result, 0);\r\n\t\tfor(int i=0; i<n; i++)\r\n\t\t{\r\n\t\t\tresult[arr[i]] = 1;\r\n\t\t}\r\n\t\tfor(int i=0; i<n+2; i++)\r\n\t\t{\r\n\t\t\tif(result[i+1] == 0)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"findNoUsingHashing: \"+(i+1));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0531df1145ea822759cd4c84b0516d40", "score": "0.5148913", "text": "public int removeDuplicates(int[] nums) {\n if(nums.length == 0) return 0;\n int i = 0; // slow pointer\n for(int j = 1; j<nums.length; j++){\n if(nums[i] != nums[j]){\n i++; // doesn't update current element, always the next\n nums[i] = nums[j];\n }\n }\n return i + 1; // has all unique elements\n }", "title": "" }, { "docid": "83986e690be034d88112da4e353a2d13", "score": "0.51484877", "text": "private double fun7(int[] nums1,int[] nums2) {\n\t\t int[] nums;\n\t\t int m = nums1.length;\n\t\t int n = nums2.length;\n\t\t nums = new int[m + n];\n\t\t if (m == 0) {\n\t\t if (n % 2 == 0) {\n\t\t return (nums2[n / 2 - 1] + nums2[n / 2]) / 2.0;\n\t\t } else {\n\n\t\t return nums2[n / 2];\n\t\t }\n\t\t }\n\t\t if (n == 0) {\n\t\t if (m % 2 == 0) {\n\t\t return (nums1[m / 2 - 1] + nums1[m / 2]) / 2.0;\n\t\t } else {\n\t\t return nums1[m / 2];\n\t\t }\n\t\t }\n\n\t\t int count = 0;\n\t\t int i = 0, j = 0;\n\t\t while (count != (m + n)) {\n\t\t if (i == m) {\n\t\t while (j != n) {\n\t\t nums[count++] = nums2[j++];\n\t\t }\n\t\t break;\n\t\t }\n\t\t if (j == n) {\n\t\t while (i != m) {\n\t\t nums[count++] = nums1[i++];\n\t\t }\n\t\t break;\n\t\t }\n\n\t\t if (nums1[i] < nums2[j]) {\n\t\t nums[count++] = nums1[i++];\n\t\t } else {\n\t\t nums[count++] = nums2[j++];\n\t\t }\n\t\t }\n\n\t\t if (count % 2 == 0) {\n\t\t return (nums[count / 2 - 1] + nums[count / 2]) / 2.0;\n\t\t } else {\n\t\t return nums[count / 2];\n\t\t }\n\n\n\t}", "title": "" }, { "docid": "7d71709f176eba208262bd4dc5c67510", "score": "0.5143527", "text": "private int countTrees(int a) {\n\n int[] cache= new int[a+1];\n cache[0] = 1;\n cache[1] = 1;\n for (int i = 2; i <= a; i++) {\n for (int j = 0; j < i; j++) {\n cache[i]=cache[i]+cache[j]*cache[i-j-1];\n }\n }\n return cache[a];\n }", "title": "" }, { "docid": "d80258bab3bd0f6bc7cce51f05938e79", "score": "0.51425385", "text": "static int findUnique(int[] arr){\n\n int results = arr[0]; // to hold our first position\n\n // for loop to loop through the array the use the XOR\n for(int i = 1 ; i < arr.length; i++)\n\n results = results ^ arr[i]; // the way the XOR works is it takes the number that are the same and matches them.\n // i.e (2^2) (3^3) (4^0) like that so basically 4 is matched to 0\n\n return results; // return what we found the unique element\n\n\n }", "title": "" }, { "docid": "74f254b63301d95fc09263821e00a881", "score": "0.5138389", "text": "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n\n int n,i,j;\n n = sc.nextInt();\n int[] arr = new int[100000];\n boolean[][] dp = new boolean[100000][101];\n HashSet<Integer> set = new HashSet<>();\n for(i=0; i<n; ++i) {\n arr[i] = sc.nextInt();\n }\n dp[0][arr[0]]= true;\n set.add(arr[0]);\n for(i=1;i<n;++i){\n dp[i][arr[i]]=true;\n set.add(arr[i]);\n for(j=1;j<=100;++j){\n if(dp[i-1][j]){\n int new_gcd = gcd(j,arr[i]);\n dp[i][new_gcd] = true;\n set.add(new_gcd);\n }\n }\n }\n System.out.println(set.size());\n }", "title": "" }, { "docid": "fc4c8d67026622e54227d28823ffc35d", "score": "0.5132655", "text": "private static int findMissingM1(int[] arr) {\n\t Arrays.sort(arr);\n\t for(int i=0;i<arr.length - 1;i++) {\n\t if(arr[i] == (arr[i+1] - 1)) {\n\t continue;\n\t } else {\n\t \t\tSystem.out.println(arr[i] + 1);\n\t return arr[i] + 1;\n\t }\n\t }\n\t return 0;\n\t}", "title": "" }, { "docid": "e8cd925a8a499651e4dad2ce5911aac0", "score": "0.5131604", "text": "public static int lonelyinteger(List<Integer> a) {\n int count=0;\n for(int num:a){\n if(a.size()==1){\n return num;\n }\n for(int i=0;i<a.size();i++){\n if(a.indexOf(num)!=i){\n if(num==a.get(i))\n {\n count+=1;\n int index=a.indexOf(num);\n a.remove(index);\n a.remove(i);\n break;\n }\n }\n }\n if (count==0) {\n a.remove(0);\n lonelyinteger(a);\n System.out.println(num);\n return num;\n }\n else\n count=0;\n }\n return 0;\n }", "title": "" }, { "docid": "5eec6002f9740601f9d6683f8e2d4d3e", "score": "0.5129155", "text": "public boolean containsNearbyDuplicate(int[] nums, int k) {\r\n Set<Integer> set = new HashSet<>();\r\n for (int i = 0; i < nums.length; ++i) {\r\n if (set.contains(nums[i])) return true;\r\n set.add(nums[i]);\r\n if (set.size() > k) {\r\n set.remove(nums[i - k]);\r\n }\r\n }\r\n return false;\r\n}", "title": "" }, { "docid": "3c32a24fc076961835209cd9bc5e70e5", "score": "0.5121884", "text": "static int getMinimumCost(int k, int[] c) {\n Arrays.sort(c);\n int sum = 0;\n int count[] = new int[k];\n int p = 0;\n for (int i = c.length - 1; i >= 0; i--)\n {\n sum += (count[p] + 1) * c[i];\n count[p]++;\n p++;\n if (p == k)\n {\n p = 0;\n }\n }\n return sum;\n}", "title": "" }, { "docid": "5c8259f6da86a0cad1410925a6999cb1", "score": "0.5121486", "text": "public void testP029() {\r\n final Set<List<Long>> s = new HashSet<List<Long>>();\r\n final int N = 100;\r\n for (int a = 2; a <= N; ++a) {\r\n final List<Long> fa = PrimeUtils.factor(a);\r\n for (int b = 2; b <= N; ++b) {\r\n final List<Long> fab = CollectionUtils.nAppends(fa, b);\r\n Collections.sort(fab);\r\n s.add(fab);\r\n }\r\n }\r\n // System.out.println(s);\r\n assertEquals(9183, s.size());\r\n }", "title": "" }, { "docid": "9a9b9dbc2b869d41dbf39ed8bb52b1f6", "score": "0.51150393", "text": "private int encode(int i, int j) {\n return i * N + j + 1;\n\n }", "title": "" }, { "docid": "ae2d97811535b208b96009a5bf1011d8", "score": "0.5112984", "text": "private static void uniqueness()\n {\n int removed = 0;\n\n for(int i = 0; i < pairs.size()-1;i++)\n {\n\n for(int j =i+1; j< pairs.size();j++)\n {\n\n if(listsareEquivelent(pairs.get(i),pairs.get(j)))\n {\n pairs.remove(pairs.get(j));\n removed++;\n\n }\n }\n }\n\n }", "title": "" }, { "docid": "4eefa9b6559a4a7eb275297db555317b", "score": "0.51057297", "text": "private int findUniqueCoins(int[] a, int m, int N) {\n\t\tif (N == 0)\n\t\t\treturn 1;\n\t\tif (N < 0 || (m < 0 && N >= 1))\n\t\t\treturn 0;\n\t\treturn findUniqueCoins(a, m - 1, N - a[m]) + findUniqueCoins(a, m - 1, N);\n\t}", "title": "" }, { "docid": "dd4042d5c8a2e7679cdf70c35737fb4f", "score": "0.50966734", "text": "public abstract List<BigPoint> determine0PointSet();", "title": "" }, { "docid": "7682c0bc47945105ce041c39a8b7b0a7", "score": "0.5092432", "text": "public static void main(String args[])\r\n\t{\n\t\tScanner scanner=new Scanner(System.in);\r\n\t\t\r\n\t\tint _no_element=scanner.nextInt();\r\n\t\tint _no_sequence=scanner.nextInt();\r\n\t\t\r\n\t\r\n\t\tHashMap<Integer,List<Long>> hash=new HashMap();\r\n\t\tfor(int i=0;i<_no_sequence;i++)\r\n\t\t{\r\n\t\t\tList<Long> mylist=new ArrayList<Long>();\r\n\t\t\t for(int j=0;j<_no_element+1;j++)\r\n\t\t\t {\r\n\t\t\t\t mylist.add(scanner.nextLong());\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t hash.put(i,mylist);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tArrayList<List<Long>> myarrlist=new ArrayList<List<Long>>();\r\n\t\tfor(int z=0;z<_no_element;z++)\r\n\t\t\tmyarrlist.add(new ArrayList<Long>());\r\n\t\t\r\n\t\tlong lastAns=0;\r\n\t\t\r\n\t/*\tIterator myiterator1=hash.keySet().iterator();\r\n\t\twhile(myiterator1.hasNext())\r\n\t\t{\r\n\t\t\tint key=(Integer)myiterator1.next();\r\n\t\t\tList<Integer> mylist=hash.get(key);\r\n\t\t\t for(int i=0;i<mylist.size();i++)\r\n\t\t\t {\r\n\t\t\t\t System.out.println \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t} */\r\n\t\t\r\n\t\tIterator myiterator=hash.keySet().iterator();\r\n\t\twhile(myiterator.hasNext())\r\n\t\t{\r\n\t\t\tint key=(Integer)myiterator.next();\r\n\t\t\tList<Long> mylist=hash.get(key);\r\n\t\t\t//for(int i=0;i<mylist.size();i++)\r\n\t\t\t//{\r\n\t\t\t\tlong master_element=mylist.get(0);\r\n\t\t\t\tif(master_element==1)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Query 1\r\n\t\t\t\t\t int element=(int)((mylist.get(1)^lastAns)%_no_element);\r\n\t\t\t\t\t List<Long> temp_List=myarrlist.get(element);\r\n\t\t\t\t\t temp_List.add(mylist.get(2));\r\n\t\t\t\t}\r\n\t\t\t\telse if(master_element==2)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Query 2\r\n\t\t\t\t\tint element=(int)((mylist.get(1)^lastAns)%_no_element);\r\n\t\t\t\t\t//System.out.println(\"element=\"+element);\r\n\t\t\t\t\tList<Long> temp_List=myarrlist.get(element);\r\n\t\t\t\t\tint index=(int)(mylist.get(2)%(temp_List.size()));\r\n\t\t\t\t\t//System.out.println(\"index=\"+index+\"\");\r\n\t\t\t\t\tlastAns=temp_List.get(index);\r\n\t\t\t\t\tSystem.out.println(lastAns);\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "1ea4e122e4fbbb25a2d4a44d161b315e", "score": "0.5091524", "text": "public static void main(String[] args) {\n int n,i,j;\n int s1=0,s=0;\n Scanner sc= new Scanner(System.in);\n n=sc.nextInt();\n if(n>1){\n int [][]a=new int[n][n];\n for( i=0;i<n;i++){\n for( j=0;j<n;j++){\n \n a[i][j]=sc.nextInt();\n }\n }\n for( i=0;i<n;i++){\n for( j=0;j<n;j++){\n if(i==j){\n s=s+a[i][j];\n }\n }\n }\n //int c1=0,c2=n-1;\n for(i=0;i<n;i++){\n for(j=0;j<n;j++){\n if((i+j) == n-1){\n s1=s1+a[i][j];\n //c1++;\n //c2--;\n }\n }\n }\n int x;\n x=s-s1;\n if(x<0){\n x=-x;\n }\n //System.out.println(s);\n //System.out.println(s1);\n System.out.println(x);}\n }", "title": "" }, { "docid": "1ee450f8123ecd698fefbec0745066d1", "score": "0.5089444", "text": "public boolean containsNearbyDuplicate(int[] nums, int k) {\r\n Set<Integer> set = new TreeSet<>();\r\n for (int i = 0; i < nums.length; ++i) {\r\n if (set.contains(nums[i])) return true;\r\n set.add(nums[i]);\r\n if (set.size() > k) {\r\n set.remove(nums[i - k]);\r\n }\r\n }\r\n return false;\r\n}", "title": "" }, { "docid": "73cc9d3533c88e0558105dff3ae02627", "score": "0.5089392", "text": "public int reductionOperations(int[] nums) {\n if (nums == null || nums.length == 0) return 0;\n \n int res = 0, start = 0, n = nums.length;\n Arrays.sort(nums);\n while (start < n - 1 && nums[start] == nums[start + 1]) start++;\n \n for (int i = n - 1; i > start; i--) {\n int cur = nums[i];\n \n while (i - 1 >= 0 && nums[i - 1] == nums[i]) i--;\n \n res += (n - i);\n }\n \n return res;\n }", "title": "" }, { "docid": "d18410f9a4fa7b315dc72d3cf5f9c8f7", "score": "0.5088467", "text": "public static int tripplet_sum2(int ar[],int sum) // Time-O(n^2) Space-O(1)\r\n\t{\r\n\t\tint counter=0;\r\n\t\tArrays.sort(ar);\r\n\t\tint start,mid,end=ar.length-1;\r\n\t\tfor(start=0;start<ar.length-1;start++)\r\n\t\t{\r\n\t\t\tmid = start+1;\r\n\t\t\twhile(mid<end)\r\n\t\t\t{\r\n\t\t\t\tint val = ar[start]+ar[mid]+ar[end];\r\n\t\t\t\tif(val==sum)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(ar[start]+\" \"+ar[mid]+\" \"+ar[end]);\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tmid++;\r\n\t\t\t\t\tend--;\r\n\t\t\t\t}\r\n\t\t\t\telse if(val<sum)\r\n\t\t\t\t\tmid++;\r\n\t\t\t\telse\r\n\t\t\t\t\tend--;\r\n\t\t\t}\r\n\t\t}\r\n\t return counter;\r\n\t}", "title": "" }, { "docid": "ebc99f1e53e9aa00ecbffe33c6333510", "score": "0.5085208", "text": "public static void main(String[] args) {\n\t\tint arr[]=new int[1000001];\n\t\tint prime[]=new int[1001];\n\t\tfor(int i=0;i<arr.length;i++)\n\t\t{\n\t\t\tarr[i]=i;\n\t\t}\n\t\tarr[0]=arr[1]=-1;\n\t\t\n\t\tint c=0;\n\t\tfor(int i=2;i<arr.length;i++)\n\t\t{\n\t\t\tif(arr[i]==i)\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tfor(int j=i;j<arr.length;j+=i)\n\t\t\t\t{\n\t\t\t\t\tarr[j]=i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tSystem.out.println(c);\n\t\t\t\n\t\tfor(int i=-999;i<=1000;i++)\n\t\t{\n\t\t\t\n\t\t\tfor(int j=-1;j<prime.length;j++)\n\t\t\t{\n\t\t\t\tint n=0;\n\t\t\t\tint exp=n*n+n*i+j;\n\t\t\t\tif(j==2&&(i&1)==0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "1ea2fe9c01a4405f18211d694d23da83", "score": "0.5083549", "text": "public int solution(int[] A) {\n int n = A.length;\n boolean [] map = new boolean[n+1];\n for(int i =0 ; i < n ; i++){\n long num = A[i];\n if(num <= n) {\n map[((int) num)] = !map[((int) num)];\n }\n }\n\n for(int i =1 ;i <=n ; i++){\n if(!map[i]) return 0;\n }\n return 1;\n }", "title": "" }, { "docid": "452bee0d6b6112ddafea050dd803daf7", "score": "0.50833654", "text": "private static int solution(int[] arr1, int[] arr2) {\n\t\tint n = arr1.length;\n\t\tint m = arr2.length;;\n\t\tArrays.sort(arr1);//Sorting Array 1\n\t\tArrays.sort(arr2);//Sorting Array 2\n\t\tint i = 0;\n\t\tfor (int k = 0; k < n; k++) {\n\t\t\twhile(i < m - 1 && arr2[i] < arr1[k])\n\t\t\t\ti++;\n\t\t\tif (arr1[k] == arr2[i])\n\t\t\t\treturn arr1[k];//result\n\t\t}\n\t\treturn -1;//result\n\t}", "title": "" }, { "docid": "51e6660236d3eabf7d5aa9e263dfd171", "score": "0.5075888", "text": "public static void main(String[] args) {\n\n long sum =0L;\n for (long i = 1; i<2_000_000L;i++){\n int c=0;\n if (i%2==0)\n continue;\n for (long j = 1L;j<=i;j++){\n\n if (i%j==0)\n c++;\n\n\n }\n\n if (c==2)\n sum+=i;\n\n }\n\n System.out.println(sum);\n\n }", "title": "" }, { "docid": "89577cd69ed92f5cbce639e97c33feec", "score": "0.50735176", "text": "private static int lilysHomework(int[] arr) {\r\n Map<Integer, Integer> indexes = new HashMap<>();\r\n int[] sorted = new int[arr.length];\r\n int[] copy = new int[arr.length];\r\n\r\n for(int i=0; i<arr.length; i++){\r\n sorted[i] = arr[i];\r\n copy[i] = arr[i];\r\n indexes.put(arr[i], i);\r\n }\r\n\r\n Arrays.sort(sorted);\r\n int swapA = 0;\r\n for(int i=0; i<arr.length; i++){\r\n if(sorted[i] != arr[i]){ //mismatch\r\n int tempIndex = indexes.get(sorted[i]); //index of the sorted element in the original array\r\n indexes.put(sorted[i], i);\r\n indexes.put(arr[i], tempIndex);\r\n swapA++;\r\n \r\n int tmp = arr[i];\r\n arr[i] = arr[tempIndex];\r\n arr[tempIndex] = tmp;\r\n } \r\n }\r\n \r\n //reset the map\r\n for(int i=0; i<arr.length; i++){\r\n \tindexes.put(copy[i], i);\r\n }\r\n int swapD = 0;\r\n for(int i=arr.length-1, j=0; i>=0 && j<arr.length; i--, j++){\r\n if(sorted[i] != copy[j]){ //mismatch\r\n int tempIndex = indexes.get(sorted[i]); //index of the sorted element in the original array\r\n indexes.put(sorted[i], j);\r\n indexes.put(copy[j], tempIndex);\r\n swapD++;\r\n \r\n int tmp = copy[j];\r\n copy[j] = copy[tempIndex];\r\n copy[tempIndex] = tmp;\r\n } \r\n }\r\n return Math.min(swapA, swapD);\r\n\r\n }", "title": "" }, { "docid": "5f82327fcc7be5723a1335e493d33d77", "score": "0.50728375", "text": "private static void findNoUsingSum(int[] arr, int n) {\n\t\tint sum = ((n+1) *(n+2))/2;\r\n\t\tfor(int i =0; i<n; i++)\r\n\t\t{\r\n\t\t\tsum -=arr[i];\r\n\t\t}\r\n\t\tSystem.out.println(\"findNoUsingSum : \"+ sum);\r\n\t}", "title": "" }, { "docid": "1afd82df6e0394c7443f09b2bf72c9a0", "score": "0.5069098", "text": "public int removeDuplicates(int[] nums) {\n if (nums.length <= 1) return nums.length;\n\n int slow = 0, quick = 1;\n for (int i = 0; i < nums.length-1; ++i) {\n if (nums[slow] != nums[quick]) {\n ++slow;\n if (slow != quick) nums[slow] = nums[quick];\n ++quick;\n } else {\n quick++;\n }\n }\n\n return slow+1;\n }", "title": "" }, { "docid": "2bc4381ff014fd56722639c7df9f8754", "score": "0.5067596", "text": "O Search(K key);", "title": "" }, { "docid": "9e9e518bcce8ca8110032e97344277a5", "score": "0.50636977", "text": "private static void findNoUsingBitOperation(int[] arr, int n) {\n\t\tint sum1 = arr[0];\r\n\t\tint sum2 = 1;\r\n\t\tfor(int i=1; i<n; i++ )\r\n\t\t{\r\n\t\t\tsum1 = sum1^arr[i];\r\n\t\t}\r\n\t\tfor(int i=2; i<n+2; i++)\r\n\t\t{\r\n\t\t\tsum2 ^= i;\r\n\t\t}\r\n\t\tSystem.out.println(\"findNoUsingBitOperation : \"+ (sum2^sum1));\r\n\t}", "title": "" }, { "docid": "fddf8a3615288e04d3bc46983fa80edc", "score": "0.5061501", "text": "O map(I element);", "title": "" }, { "docid": "3a6ce334ebb3d0a510e36f5b08827968", "score": "0.5059439", "text": "public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n int N = Integer.parseInt(f.readLine());\n for(int i = 0; i < N; i++){\n StringTokenizer st = new StringTokenizer(f.readLine());\n int initial = Integer.parseInt(st.nextToken()) * 1000 + Integer.parseInt(st.nextToken()) * 100 + Integer.parseInt(st.nextToken()) * 10 + Integer.parseInt(st.nextToken());\n st = new StringTokenizer(f.readLine());\n int target = Integer.parseInt(st.nextToken()) * 1000 + Integer.parseInt(st.nextToken()) * 100 + Integer.parseInt(st.nextToken()) * 10 + Integer.parseInt(st.nextToken());\n boolean[] seen = new boolean[10000];\n int n = Integer.parseInt(f.readLine());\n for(int j = 0; j < n; j++){\n st = new StringTokenizer(f.readLine());\n int forbidden = Integer.parseInt(st.nextToken()) * 1000 + Integer.parseInt(st.nextToken()) * 100 + Integer.parseInt(st.nextToken()) * 10 + Integer.parseInt(st.nextToken());\n seen[forbidden] = true;\n }\n Queue<Integer> queue = new LinkedList<>();\n queue.add(initial);\n boolean found = false;\n int steps = 0;\n while(!queue.isEmpty()){\n int size = queue.size();\n for(int j = 0; j < size; j++) {\n int next = queue.poll();\n if (next == target) {\n found = true;\n break;\n }\n int first = next / 1000;\n next %= 1000;\n int second = next / 100;\n next %= 100;\n int third = next / 10;\n next %= 10;\n int fourth = next;\n int transformation1 = ((first + 1) % 10) * 1000 + second * 100 + third * 10 + fourth;\n if (!seen[transformation1]) {\n queue.add(transformation1);\n seen[transformation1] = true;\n }\n int transformation2 = first * 1000 + ((second + 1) % 10) * 100 + third * 10 + fourth;\n if (!seen[transformation2]) {\n queue.add(transformation2);\n seen[transformation2] = true;\n }\n int transformation3 = first * 1000 + second * 100 + ((third + 1) % 10) * 10 + fourth;\n if (!seen[transformation3]) {\n queue.add(transformation3);\n seen[transformation3] = true;\n }\n int transformation4 = first * 1000 + second * 100 + third * 10 + ((fourth + 1) % 10);\n if (!seen[transformation4]) {\n queue.add(transformation4);\n seen[transformation4] = true;\n }\n int transformation5 = ((first - 1) < 0 ? 9 : first - 1) * 1000 + second * 100 + third * 10 + fourth;\n if (!seen[transformation5]) {\n queue.add(transformation5);\n seen[transformation5] = true;\n }\n int transformation6 = first * 1000 + ((second - 1) < 0 ? 9 : second - 1) * 100 + third * 10 + fourth;\n if (!seen[transformation6]) {\n queue.add(transformation6);\n seen[transformation6] = true;\n }\n int transformation7 = first * 1000 + second * 100 + ((third - 1) < 0 ? 9 : third - 1) * 10 + fourth;\n if (!seen[transformation7]) {\n queue.add(transformation7);\n seen[transformation7] = true;\n }\n int transformation8 = first * 1000 + second * 100 + third * 10 + ((fourth - 1) < 0 ? 9 : fourth - 1);\n if (!seen[transformation8]) {\n queue.add(transformation8);\n seen[transformation8] = true;\n }\n }\n if(found){\n break;\n }\n steps++;\n }\n out.println(found ? steps:-1);\n f.readLine();\n }\n f.close();\n out.close();\n }", "title": "" }, { "docid": "c45a10b385ff3f627ca98b57489fb33d", "score": "0.5059147", "text": "public static void main(String[] args) {\nint[] a= {1,2,2,3,4,5,5,6};\nint[] temp=new int[a.length];\nint j=0;\nfor(int i=0;i<a.length-1;i++) {\n\tif(a[i]!=a[i+1])\n\t{\n\t\ttemp[j]=a[i];\n\t\tj++;\n\t}\n\t}\n\ttemp[j]=a[a.length-1];\n\n\tfor(int j1=0;j1<temp.length;j1++)\n\t{\nSystem.out.println(temp[j1]+\" \");\n\t}\n\n}", "title": "" }, { "docid": "f055179c5f6cd642d5e4405ae1583dff", "score": "0.50479496", "text": "public:\n int minCut(string s) {\n vector<int>res(s.size(),0);\n bool mp[s.size()][s.size()];\n \n for (int i=s.size()-1;i>=0;i--){\n for (int j=i;j<s.size();j++){\n if ((s[i]==s[j]) && (j-i<2 || mp[i+1][j-1])){\n mp[i][j]=true;\n }else{\n mp[i][j]=false;\n }\n }\n }\n \n for (int i=0;i<s.size();i++){\n int ms = s.size();\n if (mp[0][i]){\n res[i]=0;\n }else{\n for (int j=0;j<i;j++){\n if (mp[j+1][i] && ms>res[j]+1 ) {\n ms=res[j]+1;\n } \n }\n res[i]=ms;\n }\n } \n return res[s.size()-1];\n }", "title": "" }, { "docid": "73dfed514de9508a846f9a1d8aa0a778", "score": "0.5038854", "text": "public void removeDuplicates(){\r\n \t\r\n \t for (int i = 0; i < size; i++) {\r\n \t for (int j = 0; j < size; j++) {\r\n \t if ((theData[i].equals(theData[j])) & (i != j)) {\r\n \t remove(j);\r\n \t } \t \r\n \t }\r\n \t }\r\n }", "title": "" }, { "docid": "6ac4cca93054c91ef612ce122845f5e6", "score": "0.5038853", "text": "public static void justDoIt(int[] a, int end) {\n BigInteger multiplicities = one, count = one, rabbits = one;\n int biggest = 0, remaining = numOfRabbits;\n for (int i = 0; i < end; i++) {\n if (a[i]>biggest) biggest=a[i];\n if ((i< end-1) && (a[i]==a[i+1])){\n count = count.add(one);\n multiplicities = multiplicities.multiply(count);\n }\n if((i< end-1) &&(a[i]!=a[i+1])) count = one;\n \n rabbits = rabbits.multiply(\n nCr(remaining,a[i])\n .multiply(all(a[i]))\n );\n remaining -= a[i];\n }\n rabbits = rabbits.divide(multiplicities)\n .multiply(BigInteger.valueOf(biggest));\n infectedRabbits = infectedRabbits.add(rabbits);\n }", "title": "" }, { "docid": "e55a6caa3fe22a50a2b4c17ca8e2299f", "score": "0.5038578", "text": "public boolean isEmpty(){\n return arr.size() < 1; // O(1)\n }", "title": "" }, { "docid": "12757226964139dfb8bf0898e3b2fd94", "score": "0.5032276", "text": "static void removeDuplicates()\n\t{\n\t\tint[] a = {1,2,3,4,5,6,2,3,6,7,9};\n\t\tHashSet<Integer> myset = new HashSet<Integer>();\n\t\t\n\t\tfor(int i =0;i<a.length;i++){\n\t\t\tmyset.add(a[i]);\t\t\n\t\t}\n\t\tmyset.toArray();\n\t\t\n\t\taccessElement(myset);\n\t\t\n\t}", "title": "" }, { "docid": "41b0104b5ec212722e786bb3a459527a", "score": "0.5031928", "text": "int find(int a)\n {\n\t\twhile(!(a == array[a]))\n\t\t{\n\t\t\tarray[a] = array[array[a]];\n\t\t\ta = array[a];\n\t\t}\n return a;\n }", "title": "" }, { "docid": "0a218936ad581ff26cc6a29cf4ecbe8f", "score": "0.5027006", "text": "private static int solution(int[] a) {\n\t\tint count =0;\n\t\tfor(int i = 1; i+1 < a.length;) {\n\t\t\t\n\t\t\tif(a[i-1] < a[i] && a[i] > a[i+1] ) {\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(a[i-1] > a[i] && a[i] < a[i+1]) {\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\ta=a;\n\t\t\t}\n\t\t\ti = i+ 2;\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "7265152e6dc4a706adc609911a184591", "score": "0.5026521", "text": "public static int method1(int[] arr, int n) {\n int count = 0;\n long sum = 0;\n for (int i = 0; i < n; i++) {\n if (arr[i] == 0) {\n count++;\n }\n sum = arr[i];\n for (int j = i + 1; j < n; j++) {\n sum += arr[j];\n if (sum == 0) {\n count++;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "da170d378f6489211ae1579390bb347d", "score": "0.50233054", "text": "protected double jaccard(Set a, Set b){\n HashSet intersection = new HashSet();\n intersection.addAll(a);\n intersection.retainAll(b);\n double score = (double)intersection.size() / ((double)a.size() + (double)b.size() - (double)intersection.size());\n return score;\n }", "title": "" }, { "docid": "e18181d813d3c18858c52105906f3d11", "score": "0.5016059", "text": "public int solution(int[] A) {\n Set<Integer> values = new HashSet<>();\n for (int i : A) {\n values.add(i);\n }\n for (int i = 1; i <= 1000001; i++) {\n if (!values.contains(i))\n return i;\n }\n return -1;\n }", "title": "" }, { "docid": "685bdbddf37830f83dc1164f8a0c0858", "score": "0.5015172", "text": "static void bruteForce(String word){\n char[] str_array = word.toCharArray();\n Arrays.sort(str_array);\n boolean flag=false;\n for(int i=1;i<word.length();i++){\n if(str_array[i-1] == str_array[i]){\n flag = true;\n break;\n }\n }\n\n if(flag){\n System.out.println(\"Duplicates present\");\n }else{\n System.out.println(\"Duplicates not present\");\n }\n\n }", "title": "" }, { "docid": "d9773ebd37930a0de4e58210b8050f58", "score": "0.5008973", "text": "private long runLongVersion() {\n\t\tlong first = 1;\n\t\tlong second = 1;\n\t\tfor (long i = 2; i < n; i++) {\n\t\t\tlong temp = second;\n\t\t\tsecond = first + second;\n\t\t\tfirst = temp;\n\t\t}\n\t\treturn second;\n\t}", "title": "" }, { "docid": "661f0b50ac198ad224b59c5062c0c046", "score": "0.50087464", "text": "int find1(int n,int he,int a[])\n {\n int A[]=new int[n+5],sum=0,index=0,j,k,m,B[]=new int[n+5];\n A[0]=10;\n //A[n+1]=750;\n //B[n+1]=750;\n System.out.println(\"Enter array\");\n int k1,qs;\n\t \tfor(int i=1;i<n;i++)\n\t \t{\n\t \t\tfor(k1=1;k1<=n-i;k1++)\n\t \t\t{\n\t \t\t\tif(a[k1]>a[k1+1])\n\t \t\t\t{\n\t \t\t\t\tqs=a[k1];\n\t \t\t\t\ta[k1]=a[k1+1];\n\t \t\t\t\ta[k1+1]=qs;\n\t \t\t\t}\n\t \t\t}\n\t \t}\n for(int i=1;i<=n;i++)\n {\n A[i]=a[i];\n }\n System.out.println(\"Enter header\");\n int header=he;\n\tfor(int i=0;i<=n;i++)\n\t{\n\t\tif(A[i]==header)\n\t\t{\n\t\t\tindex=i;\n\t\t\tbreak;\n\t\t}\n\t}\n j=index;\n k=j+1;\n System.out.println(\"Header is \"+ header);\n B[1]=header;\n int b=2;\n while(j<n+1 && k<n+1)\n {\n sum=sum+Math.abs(A[k]-A[j]);\n System.out.println(\"Header is moving towards \" + A[k]);\n B[b]=A[k];\n b++;\n j++;\n k++;\n }\n\t/*for(j=index,k=j+1;j<=n,k<=n;j++,k++) \n\t{\n\t\tsum=sum+Math.abs(A[k]-A[j]);\n\t}*/\n int\tl=n;\n int q;\n\tint i=1;\n\tsum=sum+Math.abs(A[l]-A[i]);\n System.out.println(\"Header is moving towards \" + A[i]);\n m=1;\n q=m+1;\n\twhile(m!=index && q!=index)\n\t{\n\t\tsum=sum+Math.abs(A[m]-A[q]);\n System.out.println(\"Header is moving towards \" + A[q]);\n B[b]=A[m];\n b++;\n m++;\n q++;\n\t}\n int u=index-1;\n B[b]=A[u];\n System.out.println(\"Total Number of tracks \" + sum);\n for(int y=1;y<=b;y++)\n {\n a[y]=B[y];\n }\nreturn sum;\n }", "title": "" }, { "docid": "f5aff505a162141c7a96d3f089bd1b1e", "score": "0.5008016", "text": "public int findDulicateInArrayOfNInteger(int[] nums){\n //int[] nums = {1,2,3,4,5,3};\n for(int i=0;i<nums.length;i++){\n if(nums[Math.abs(nums[i])] >= 0){\n nums[Math.abs(nums[i])] = -nums[Math.abs(nums[i])];\n //System.out.println(\"i-->\"+i);\n for(int j=0;j<nums.length;j++){\n //System.out.print(nums[j]+\"\\t\");\n }\n\n }else{\n //System.out.println(\"Duplicate element:\"+ Math.abs(nums[i]));\n return Math.abs(nums[i]);\n }\n }\n return -1;\n }", "title": "" }, { "docid": "c07ab98a708eebf80274b57cb079f3dc", "score": "0.50063366", "text": "static public int solutionFastest(int[] A) {\n\t\tArrays.parallelSort(A);\n\t\tint n = 0;\n\t\tlong start = System.nanoTime();\n\t\tfor(int e: A) {\n\t\t\tif(e > 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif( Arrays.binarySearch(A, -e) >= 0 ) {\n\t\t\t\tn = Math.abs(e);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tlong time = System.nanoTime() - start;\n\t\tSystem.out.println( \"solutionFastest search = \"+time+\" nano\");\n\t\treturn n;\n\t}", "title": "" }, { "docid": "ee44126bf36f11efc0ed4995c8667c7d", "score": "0.5005918", "text": "public static int removeDuplicates(int[] A) {\n\t if(A == null) {\n\t return 0;\n\t } else if(A.length <= 1) {\n\t return A.length;\n\t } else if(A.length == 2 && A[0] == A[1]) {\n\t\t int[] B = new int[1];\n\t\t System.arraycopy(A, 0, B, 0, 1);\t\n\t\t return 1;\n\t }\n\t int i=0;\n\t int j=i+1;\n\t while(j < A.length) {\n\t boolean toprocess = false;\n\t while(i<A.length && j<A.length && A[i] == A[j]) {\n\t A[j] = -1;\n\t toprocess = true;\n\t if(j == A.length - 1) {\n\t \tbreak;\n\t }\n\t j++;\n\t }\n\t if(toprocess) {\n\t \tif(A[i+1] != A[j]) {\n\t \t\tA[++i] = A[j];\n\t \t}\n\t } else {\n\t i++;\n\t j++;\n\t }\n\t if(j==A.length-1) {\n\t \tbreak;\n\t }\n\t }\n\t int al = i+1;\n\t if(i==A.length -2 && A[i] != A[j]) {\n\t \tal = j+1;\n\t }\n\t int[] B = new int[al];\n\t System.arraycopy(A, 0, B, 0, al);\n\t MaxHeap.printArray(B);\n\t return i+1;\n }", "title": "" }, { "docid": "a035eb25514df106e094e7aaa25f86b2", "score": "0.5005633", "text": "public static void main(String[] args) {\n\t\tint[] array = \r\n\t\t{-10,-5,2,2,2,3,4,8,9,12,13};\r\n\t\t//{-40,-20,-1,1,2,3,5,7,9,12,13};\r\n\t\tSystem.out.println(magicFast(array));\r\n\t\tSystem.out.println(magicFast_nondistinct(array));\r\n\t}", "title": "" }, { "docid": "40e38799e8d1a65312ff51c80d50d573", "score": "0.5003746", "text": "static void findThePairsNLogN(int inputArray[], int inputNumber) {\n\n Arrays.sort(inputArray);\n\n System.out.println(\"O(nLogn) Pairs of elements whose sum is \" + inputNumber + \" are : \");\n int i = 0;\n int j = inputArray.length - 1;\n while (i < j) {\n if (inputArray[i] + inputArray[j] == inputNumber) {\n System.out.println(inputArray[i] + \" + \" + inputArray[j] + \" = \" + inputNumber);\n i++;\n j--;\n } else if (inputArray[i] + inputArray[j] < inputNumber) {\n i++;\n } else if (inputArray[i] + inputArray[j] > inputNumber) {\n j--;\n }\n }\n }", "title": "" }, { "docid": "801f37b9acd736acb55cb78155e49ab9", "score": "0.50002635", "text": "public int solution(int[] A) {\n Set s = new HashSet();\n\t\tfor(int i=0;i<A.length;i++)\n\t\t\t{\n\t\t s.add(A[i]);\n\t\t\t}\n\t\tfor(int i=1;i<A.length+1;i++)\n\t\t {\n\t\t if(!s.contains(i)) \n\t\t \t{\n\t\t return 0;\n\t\t \t}\n\t\t }\n\t\treturn 1;\n }", "title": "" }, { "docid": "a9868cef78d1fb6f71aa1a99c42a9bc2", "score": "0.49979365", "text": "public int[] optimized(int[] nums, int target){\n Map<Integer, Integer> indexToDifference = new HashMap<Integer, Integer>();\n for(int i = 0; i < nums.length; i++){\n indexToDifference.put(target - nums[i], i);\n }\n\n for(int i = 0; i < nums.length; i++){\n if(indexToDifference.get(nums[i]) != null){\n if(i != indexToDifference.get(nums[i]))\n return new int[]{i, indexToDifference.get(nums[i])};\n }\n }\n return null;\n }", "title": "" }, { "docid": "38efc43752ecc41065e71e93303ad273", "score": "0.4994639", "text": "public static int count(int[] a) {\n\n int n = a.length;\n int count=0;\n for (int i = 0; i <n; i++) {\n for (int j = i+1; j <n; j++) {\n for (int k = j+1; k <n; k++) {\n if (a[i] + a[j] + a[k] == 0) {\n count++;\n }\n\n }\n\n }\n\n }\n return count;\n }", "title": "" }, { "docid": "153327d378c0d2ce35fced9230ba573c", "score": "0.49912736", "text": "private static int fun3(int a) {\n\t\tint sum = 0;\n\t\tif(a<=1) {\n\t\t\treturn a;\n\t\t}\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tsum+=i;\n\t\t}\n\t\treturn sum;\n\t}", "title": "" } ]
0f63be24b186c6c883a4dc142f76f635
Called once after isFinished returns true
[ { "docid": "4d105967f7f53bd23f7c8dad57c0894d", "score": "0.0", "text": "protected void end() {\n\t\tRobot.climber.climb(0);\n\t}", "title": "" } ]
[ { "docid": "ba1e21b3099c65117f344aef57a2c9b0", "score": "0.8583928", "text": "@Override\n protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "28c90585faf810fc2b27e4f92a22bfab", "score": "0.85407865", "text": "@Override\n protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "32ed5bc320668109a3891376d97adb7a", "score": "0.8388128", "text": "@Override\n protected boolean isFinished() {\n\treturn true;\n }", "title": "" }, { "docid": "ae3b5250c89e76665ca3b7affbce0805", "score": "0.8335386", "text": "@Override\n public boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "1ee79903b31c35663540a2b0218fb157", "score": "0.8333937", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "f9fa4bfb1168c887506244f2664ce033", "score": "0.8278117", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "cf7cb8bb87fc5df7f25b0664bc139364", "score": "0.82611126", "text": "@Override\n\t\t\tprotected boolean isFinished() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "612d49d5330531bbbae86260e21fd5a8", "score": "0.82562906", "text": "@Override\r\n protected boolean isFinished() {\r\n return false;\r\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.82387143", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.82387143", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.82387143", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eef63e5181bcfb095372f45b09374d1d", "score": "0.82387143", "text": "@Override\n protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "cfa973d0b13424b774a3b574d9beb3db", "score": "0.82258785", "text": "protected boolean isFinished() {\r\n return true;\r\n }", "title": "" }, { "docid": "cfa973d0b13424b774a3b574d9beb3db", "score": "0.82258785", "text": "protected boolean isFinished() {\r\n return true;\r\n }", "title": "" }, { "docid": "143b84eb8b125ff728eeee1a80cfc79a", "score": "0.82155377", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "143b84eb8b125ff728eeee1a80cfc79a", "score": "0.82155377", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6ff0476d3a87a4c39ca07df3b6164b90", "score": "0.82087004", "text": "protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "6ff0476d3a87a4c39ca07df3b6164b90", "score": "0.82087004", "text": "protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "6ff0476d3a87a4c39ca07df3b6164b90", "score": "0.82087004", "text": "protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "6ff0476d3a87a4c39ca07df3b6164b90", "score": "0.82087004", "text": "protected boolean isFinished() {\n return true;\n }", "title": "" }, { "docid": "a80b3d94f4221ba02a89f10ee789d0bc", "score": "0.8203303", "text": "@Override\n public boolean isFinished()\n {\n return false;\n }", "title": "" }, { "docid": "27a8454045586cc628caa61ac448a4fe", "score": "0.818812", "text": "@Override\n protected boolean isFinished() {\n \n return false;\n }", "title": "" }, { "docid": "1f1913332a22d91f613f4d3bbe4681e1", "score": "0.81598526", "text": "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1f1913332a22d91f613f4d3bbe4681e1", "score": "0.81598526", "text": "@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "4c087c1d269bb73bbef6e13e6adc7458", "score": "0.81588256", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "5ab0d84adf17dc65bffa4988feba1675", "score": "0.8153611", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "e2a307b142ec513358364f8a54c1e092", "score": "0.81390613", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "eca50e355e004236f2b900c0bee40033", "score": "0.8127766", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eca50e355e004236f2b900c0bee40033", "score": "0.8127766", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "eca50e355e004236f2b900c0bee40033", "score": "0.8127766", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "978c0e0458802cf9ab49daa0d2f08f43", "score": "0.81177175", "text": "@Override\r\n\tprotected boolean isFinished() {\n\t\t run = true;\r\n\t\t return false;\r\n\t}", "title": "" }, { "docid": "43425b00dfef1d1561e3819e7c289ae5", "score": "0.81153935", "text": "@Override\n public boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "b71dc24da5fdd6f0908aa12f3e7cfbbc", "score": "0.8097224", "text": "@Override\n protected boolean isFinished() {\n return _isFinished;\n }", "title": "" }, { "docid": "fbf42dcfc159223ac94cd257691dc16f", "score": "0.80962944", "text": "protected boolean isFinished() {\r\n \r\n return false;\r\n \r\n }", "title": "" }, { "docid": "d7f298434922e48c65a81f772bd9afdf", "score": "0.8086631", "text": "@Override\n\t\t\tpublic void onFinished() {\n\n\t\t\t}", "title": "" }, { "docid": "2da98f1340746614922a0c0905ed93ae", "score": "0.8044112", "text": "protected boolean isFinished() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2da98f1340746614922a0c0905ed93ae", "score": "0.8044112", "text": "protected boolean isFinished() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "2da98f1340746614922a0c0905ed93ae", "score": "0.8044112", "text": "protected boolean isFinished() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6dd1428bea805835c26c3aab21464438", "score": "0.80383325", "text": "@Override\n\t\t\tpublic boolean isFinished() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd9195ef1c78371a896f85474adcbdf8", "score": "0.8034683", "text": "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" }, { "docid": "7dd587a27eaa04704b6b3b1b6e0709ea", "score": "0.8028651", "text": "protected boolean isFinished() {\n return false;\n }", "title": "" } ]
aa45a08e09449ac202cbad8b3d90a66d
Setter for property isoIDs.
[ { "docid": "f0725b10a9d9db9f100dde3ccb1f2cb1", "score": "0.79006857", "text": "public void setIsoIDs(List isoIDs) {\n \n this.isoIDs = isoIDs;\n }", "title": "" } ]
[ { "docid": "2a9c9b6e290320495e9063b4f0400634", "score": "0.70715475", "text": "public List getIsoIDs() {\n \n return this.isoIDs;\n }", "title": "" }, { "docid": "01d194ad1981cc22e19c440ec01c8dad", "score": "0.6561097", "text": "public void setIsoId(Integer isoId) {\r\n this.isoId = isoId;\r\n }", "title": "" }, { "docid": "9a9f3461957beeefce12a81e1ad5131b", "score": "0.630785", "text": "public Integer getIsoId() {\r\n return isoId;\r\n }", "title": "" }, { "docid": "b0dc7f935a4b33aeb296ce9ada249b1b", "score": "0.62330896", "text": "public void setIsoforms(List isoforms) {\n \n this.isoforms = isoforms;\n }", "title": "" }, { "docid": "39715053bbb7495f253ede2fc4eef947", "score": "0.62327003", "text": "@Override\n\tpublic boolean setISO(int iso) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "93e9d532b0fd0893a8e7b2a59c8de40e", "score": "0.5609003", "text": "private void setValoresISOVectores(){\n //Establece los valores isometricos para la graficacion \n PuntosU = Iso(baseU.get(0), baseU.get(1), baseU.get(2));\n PuntosV = Iso(baseV.get(0), baseV.get(1), baseV.get(2));\n PuntosW = Iso(baseW.get(0), baseW.get(1), baseW.get(2));\n }", "title": "" }, { "docid": "9f90cf5440b738903763ecb78cf8f1ed", "score": "0.5389473", "text": "public Isoform() {\n this.names = new ArrayList();\n this.isoIDs = new ArrayList();\n }", "title": "" }, { "docid": "f67d19ff3bb1748d6c9d85f1eccdf678", "score": "0.5381806", "text": "public void setNamedIsoforms(int namedIsoforms) {\n \n this.namedIsoforms = namedIsoforms;\n }", "title": "" }, { "docid": "87c8a067993682f8649dd0d267a7b944", "score": "0.5329077", "text": "public List getIsoforms() {\n \n return this.isoforms;\n }", "title": "" }, { "docid": "da87d52e552253c3e74b059d95ba28fb", "score": "0.52542686", "text": "@RelativeOrder(3)\r\n\t@Mask(\"000\")\r\n\t@DescribedAs(\"Three digit Identifies a physical territory\")\r\n\tpublic String getIsoNumber() {\r\n\t\treturn isoNumber;\r\n\t}", "title": "" }, { "docid": "aa883ec57e536051b458e3182adad968", "score": "0.52519614", "text": "public void setIsoCode(String isoCode) {\n this.isoCode = isoCode;\n }", "title": "" }, { "docid": "82cbbc9012d8262414ed1ab6a9f1df15", "score": "0.51985097", "text": "public void setDozentUnivISID(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDozentUnivISID)));\n\t\tthis.m_sDozentUnivISID=value;\n\t}", "title": "" }, { "docid": "007fa220eb7cd790d58d835c10037e1a", "score": "0.5133613", "text": "public int getNamedIsoforms() {\n \n return this.namedIsoforms;\n }", "title": "" }, { "docid": "0218de8d2843deb99f73ec6cca7d06b0", "score": "0.5023815", "text": "@Basic\n @Column(name = \"iso_code\")\n public String getIsoCode() {\n return isoCode;\n }", "title": "" }, { "docid": "0aee8a834dc5ea3f9755ca9e22c6b095", "score": "0.48720068", "text": "OcSalesInfo setNumIid(String numIid);", "title": "" }, { "docid": "4f4b644cad9a2dbf135c09a5b5c213dc", "score": "0.4858629", "text": "public void setIdubi(String value)\n {\n setAttributeInternal(IDUBI, value);\n }", "title": "" }, { "docid": "4de1f7103051b9ca1f94132abf2c1fab", "score": "0.48494524", "text": "void setOid(Integer oid) {\n\t\tthis.oid = oid;\n\t}", "title": "" }, { "docid": "54ca5c91be7acbe6f4a6bc1ac864dcea", "score": "0.4815326", "text": "@Property((PurgeDocumentIds))\n public void setPurgeDocumentIds(Long[] purgeDocumentIds);", "title": "" }, { "docid": "2757045aab1b5cc3030a1e69c8c50e46", "score": "0.47898325", "text": "public int[] getIDs(){\n \n return this.identifiers; \n }", "title": "" }, { "docid": "d60d11d75e0d8d71aed07e9b1e5b7972", "score": "0.4771967", "text": "public void setIsoInput(boolean isoInput) {\r\n\t\tWindowsListener.isoInput = isoInput;\r\n\t}", "title": "" }, { "docid": "e9b14078f35752465ab6290690d77861", "score": "0.47628552", "text": "public Set<String> getPropertyIds();", "title": "" }, { "docid": "a81a79617e136e0428c50ecf1b4be890", "score": "0.47508383", "text": "protected void setIdents(java.util.Vector newIdents) {\n\tidents = newIdents;\n}", "title": "" }, { "docid": "ad0e69dbeb87b60325059dd8a07aea7e", "score": "0.47294018", "text": "public native final VolumeInfoIndustryIdentifier identifier(String val) /*-{\n\t\tthis[\"identifier\"] = val;\n\t\treturn this;\n\t}-*/;", "title": "" }, { "docid": "aeadaf8cc3a6a202ec8a9b941104c1f4", "score": "0.46888006", "text": "public void setOid(Integer oid) {\n this.oid = oid;\n }", "title": "" }, { "docid": "d506ffc0d35a61fb3b7afa1ce066ecc9", "score": "0.46855706", "text": "private void setValoresISOVectoresCambioAngulo(double angulo){\n //Establece los valores isometricos con el cambio de angulo \n baseU = Iso(baseU.get(0), baseU.get(1), baseU.get(2),angulo);\n baseV = Iso(baseV.get(0), baseV.get(1), baseV.get(2),angulo);\n baseW = Iso(baseW.get(0), baseW.get(1), baseW.get(2),angulo);\n }", "title": "" }, { "docid": "81f6c69c26dc44ed256c9589a52ac197", "score": "0.46711725", "text": "public final Set<Integer> getIdSet() { \n return initObjects.keySet();\n }", "title": "" }, { "docid": "31be1b2217b8327e05390166665d1338", "score": "0.46375552", "text": "public String [] getIds() {\n return this.Ids;\n }", "title": "" }, { "docid": "af040814b05284c7f55589f3f7351816", "score": "0.46272942", "text": "public void setIds(String [] Ids) {\n this.Ids = Ids;\n }", "title": "" }, { "docid": "e6337d786ca960f709ab7f16751866df", "score": "0.46175098", "text": "@Override\n\tpublic int getISO() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2a8d70e1e36efc9c037ed1ff1517508a", "score": "0.460356", "text": "private void setProperties(final String _oid) {\n SearchQuery query = new SearchQuery();\n try {\n query.setExpand(_oid, \"Admin_Common_Property\\\\Abstract\");\n query.addSelect(\"Name\");\n query.addSelect(\"Value\");\n query.executeWithoutAccessCheck();\n\n while (query.next()) {\n super.setProperty((String) query.get(\"Name\"), (String) query\n .get(\"Value\"));\n }\n } catch (EFapsException e) {\n LOG.error(\"setProperties(String)\", e);\n } catch (CacheReloadException e) {\n LOG.error(\"setProperties(String)\", e);\n }\n\n }", "title": "" }, { "docid": "065e0fb32552747e9ba3709f4ef41401", "score": "0.4602221", "text": "public void setOid(long value) {\n this.oid = value;\n }", "title": "" }, { "docid": "fa7dc4c654ba65f8116acd91afb2cf7e", "score": "0.45828882", "text": "void setSldIdArray(org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdListEntry[] sldIdArray);", "title": "" }, { "docid": "1850d6417ab13faf3c984fdcaeb615f4", "score": "0.4566692", "text": "@Override\n\tpublic Object[] getIds() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "997f01b2d83bf7e1166cb30b55b7e762", "score": "0.45563188", "text": "public SelectBuilder oid()\n {\n addPoint();\n this.bldr.append(\"oid\");\n return this;\n }", "title": "" }, { "docid": "b807d7e46391623328aff6b3551a29f9", "score": "0.45494965", "text": "void setNilDepositIdList();", "title": "" }, { "docid": "0e54c3252fcb2659186ebcbb38661d13", "score": "0.45409375", "text": "public void setSpatialId(IntsRef flags, int id) {\n spatialEncoder.setInt(false, flags, id);\n }", "title": "" }, { "docid": "233ce01d424f8ce5722e7f60ce6317c1", "score": "0.4530782", "text": "@Override\n public void setId() {\n this.id = \"\";\n if (this.getAccountId() != null) {\n this.id += this.getAccountId().toString();\n }\n if (this.getCampaignId() != null) {\n this.id += \"-\" + this.getCampaignId().toString();\n }\n if (this.getAdGroupId() != null) {\n this.id += \"-\" + this.getAdGroupId().toString();\n }\n\n this.id += setIdDates();\n\n // Geo Ids\n if (this.getCountryTerritory() != null) {\n this.id += \"-\" + this.getCountryTerritory().toString();\n } else {\n this.id += \"-\";\n }\n if (this.getRegion() != null) {\n this.id += \"-\" + this.getRegion().toString();\n } else {\n this.id += \"-\";\n }\n if (this.getMetroArea() != null) {\n this.id += \"-\" + this.getMetroArea().toString();\n } else {\n this.id += \"-\";\n }\n if (this.getCityCriteriaId() != null) {\n this.id += \"-\" + this.getCityCriteriaId().toString();\n } else {\n this.id += \"-\";\n }\n if (this.getMostSpecificLocation() != null) {\n this.id += \"-\" + this.getMostSpecificLocation().toString();\n } else {\n this.id += \"-\";\n }\n\n // Adding extra fields for unique ID\n if (this.getAdNetwork() != null && this.getAdNetwork().length() > 0) {\n this.id += \"-\" + this.getAdNetwork();\n }\n if (this.getAdNetworkPartners() != null && this.getAdNetworkPartners().length() > 0) {\n this.id += \"-\" + this.getAdNetworkPartners();\n }\n if (this.getDevice() != null && this.getDevice().length() > 0) {\n this.id += \"-\" + this.getDevice();\n }\n if (this.getClickType() != null && this.getClickType().length() > 0) {\n this.id += \"-\" + this.getClickType();\n }\n }", "title": "" }, { "docid": "5e8be8d057f7513370ddbd9b5f90faa5", "score": "0.45210174", "text": "@JsonProperty\n public void setKeyIds(final List<String> ids) {\n this.keyIds = ids;\n }", "title": "" }, { "docid": "b342a59b6e9ba6f14bf09b137bb6bfdf", "score": "0.45173392", "text": "void setSldIdArray(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdListEntry sldId);", "title": "" }, { "docid": "f40778ad733076925922758e0752e595", "score": "0.45077452", "text": "@Override\n public void setEnterpriseOid(String oid) throws IllegalArgumentException {\n enterpriseOid = new SnmpOid(oid) ;\n }", "title": "" }, { "docid": "c78831580032c237d9316b43f3a1b39d", "score": "0.4498078", "text": "public void setIdentificacionCliente(String identificacionCliente)\r\n/* 100: */ {\r\n/* 101:117 */ this.identificacionCliente = identificacionCliente;\r\n/* 102: */ }", "title": "" }, { "docid": "b0b9a6b61cd07a7e049930e555c58e51", "score": "0.44918942", "text": "void setDepositIdList(com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfint depositIdList);", "title": "" }, { "docid": "52f1d7694af82706f88594e8dd324363", "score": "0.44849685", "text": "@Override\n public Collection<?> getContainerPropertyIds() {\n return items.getContainerPropertyIds();\n }", "title": "" }, { "docid": "99a36425e3bfafd6f7a4bd94d6144b34", "score": "0.44836435", "text": "public void setIdentifierAttribute(String localName, String uri) {\r\n _idName = localName;\r\n _idURI = uri;\r\n }", "title": "" }, { "docid": "c84bb643da0a64051c6ec1e621af38a9", "score": "0.44782263", "text": "public void setIMSI(String imsi) {\n if (imsi != null) {\n this.imsi = imsi;\n }\n }", "title": "" }, { "docid": "ae157d8c0229880e6c16e2ad934b0fb0", "score": "0.4469999", "text": "public Set<Integer> getStringIds() {\n return stringIds;\n }", "title": "" }, { "docid": "1ea349a2742f31274ef7b292562341b7", "score": "0.44608772", "text": "public void setIsec(ArrayList<Sensor> ec) {\n\n for(Sensor tmpTS : ec) {\n\n// System.err.println(\"Putting \" + tmpTS.getName());\n\n isec.put(tmpTS.getName(), tmpTS);\n }\n }", "title": "" }, { "docid": "70f690baf515e494c6cf5eaecfa094aa", "score": "0.44484496", "text": "void xsetObservations(org.apache.xmlbeans.XmlInteger observations);", "title": "" }, { "docid": "c5aec4ad888a933e4cafef4ad1199306", "score": "0.4436202", "text": "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The IMSI is the unique ID for the (e|nu|whatever)SIM card on your device. This is the primary identifier for your device on the network.\")\n\n public String getImsi() {\n return imsi;\n }", "title": "" }, { "docid": "d36cdab94d9900fa14f4c1d0865acedc", "score": "0.4425854", "text": "public void setHkQuantityTypeIdentifierDietaryNiacin(final String value)\n\t{\n\t\tsetHkQuantityTypeIdentifierDietaryNiacin( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "f3a73cbbb6b41654dda95db8904e4faa", "score": "0.44199982", "text": "void setIntProperty(String name, int value);", "title": "" }, { "docid": "5407b8057701b4b3691fc79e606a32e6", "score": "0.44084463", "text": "public void setIdubisalida(String value)\n {\n setAttributeInternal(IDUBISALIDA, value);\n }", "title": "" }, { "docid": "9f10cd1a8ae54d2fc2b8dfbe4c1cfde5", "score": "0.4408011", "text": "void setOfficeID(int officeID);", "title": "" }, { "docid": "9721e04e962e4dedf37cf0779fa36893", "score": "0.4400319", "text": "public void setOctaves(int _value) {\n this.octaves = _value;\n }", "title": "" }, { "docid": "4211466001cbae4b8299685c6ac92803", "score": "0.43984988", "text": "Collection<String> getIds();", "title": "" }, { "docid": "756be66332bf0cac44aad6153672b45d", "score": "0.43967232", "text": "@JSProperty(\"instruments\")\n void setInstruments(SonificationObject value);", "title": "" }, { "docid": "ff29e8ff7df09cc57b929b4857e20643", "score": "0.43962383", "text": "public static Set getSupportedIdentifiers() {\n Set set = new HashSet();\n\n set.add(NAME_FLOOR);\n\n return set;\n }", "title": "" }, { "docid": "d84e0224ad3a4942ff5431069158cbf0", "score": "0.43957725", "text": "void setID(int i) throws RemoteException;", "title": "" }, { "docid": "ee10799e30f827dc16fb6837ce8f99cb", "score": "0.43871504", "text": "public IdentifierType getIdentifiers() {\n return identifiers;\n }", "title": "" }, { "docid": "08c9b9b479bb7ecdb247c746b61ed432", "score": "0.43868095", "text": "@Property((CompletelyPurgedDocumentIds))\n public void setCompletelyPurgedDocumentIdsInternal(Long[] completelyPurgedDocumentIds);", "title": "" }, { "docid": "e3e6338586477e277beb0fbfc102392b", "score": "0.43834025", "text": "public void setHkQuantityTypeIdentifierDietaryIodine(final String value)\n\t{\n\t\tsetHkQuantityTypeIdentifierDietaryIodine( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "7b73b308ec061a500e2574b733621f71", "score": "0.437969", "text": "public void setIdentity() {\n\t\tthis.path = null;\n\t\tthis.firstSegmentDirection = detectFirstSegmentDirection(null);\n\t\tthis.curvilineTranslation = 0.;\n\t\tthis.shiftTranslation = 0.;\n this.isIdentity = Boolean.TRUE;\n\t}", "title": "" }, { "docid": "281a86d4c956bc9d7762f7eaff9b294b", "score": "0.4374288", "text": "void setClosedPagePaths(List<String> pathIdList) throws UnifyException;", "title": "" }, { "docid": "4490aa28ab5b8636dac3ef2fc36f294c", "score": "0.43686268", "text": "public void setIDDCode(Integer code);", "title": "" }, { "docid": "aaf716953d173fbec0e107fe87918c0f", "score": "0.4366915", "text": "public String getCodecIso() {\n return codecIso;\n }", "title": "" }, { "docid": "1ca2966f508c37fef1bd9b902d026036", "score": "0.4350467", "text": "public void setIdCodigo(int value) {\r\n this.idCodigo = value;\r\n }", "title": "" }, { "docid": "94fd09f6cec711b52df5cf887dce33b6", "score": "0.43456832", "text": "@JsonSetter(\"id\")\r\n public void setId (String value) { \r\n this.id = value;\r\n }", "title": "" }, { "docid": "46262939e0b59ca88e86097ee14c6cb9", "score": "0.43423644", "text": "public void setHkQuantityTypeIdentifierDietaryIodine(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, HKQUANTITYTYPEIDENTIFIERDIETARYIODINE,value);\n\t}", "title": "" }, { "docid": "5e13510a9b76380b5e58a3e7ad979ddf", "score": "0.43411767", "text": "public java.util.List<java.lang.Integer>\n getAreaIdsList() {\n return java.util.Collections.unmodifiableList(AreaIds_);\n }", "title": "" }, { "docid": "ad8d040ef5a22704db585313f2d857cf", "score": "0.4340847", "text": "public void setStoreIds(List<Long> storeIds) {\n this.storeIds = storeIds;\n }", "title": "" }, { "docid": "743e50ed52bd6794e1d67c345472b531", "score": "0.4336999", "text": "Set<String> getResultIdentifierPropertyPaths();", "title": "" }, { "docid": "8cb8d8c2e25f12165e0e8099fbc80b38", "score": "0.43347126", "text": "@JsonIgnore\n public void setShippingAddressIds(final String... shippingAddressIds);", "title": "" }, { "docid": "791394c726d114f854149bdcd1dc6c9b", "score": "0.43326434", "text": "public static String[] getISOCountries() {\n if (isoCountries == null) {\n isoCountries = new String[compressedIsoCountries.length() / 6];\n for (int i = 0; i < isoCountries.length; i++)\n isoCountries[i] = compressedIsoCountries.substring((i * 6) + 1, (i * 6) + 3);\n }\n String[] result = new String[isoCountries.length];\n System.arraycopy(isoCountries, 0, result, 0, isoCountries.length);\n return result;\n }", "title": "" }, { "docid": "1e5f36aa07f805d56bcd1fb6f7940473", "score": "0.4313004", "text": "public Builder identifier(Collection<Identifier> identifier) {\n this.identifier = new ArrayList<>(identifier);\n return this;\n }", "title": "" }, { "docid": "1e5f36aa07f805d56bcd1fb6f7940473", "score": "0.4313004", "text": "public Builder identifier(Collection<Identifier> identifier) {\n this.identifier = new ArrayList<>(identifier);\n return this;\n }", "title": "" }, { "docid": "1f8177b200006bcc70a8ffc8cd54b8f3", "score": "0.4309054", "text": "public void setNAICS(net.opengis.xls.NAICSType naics)\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.xls.NAICSType target = null;\n target = (net.opengis.xls.NAICSType)get_store().find_element_user(NAICS$0, 0);\n if (target == null)\n {\n target = (net.opengis.xls.NAICSType)get_store().add_element_user(NAICS$0);\n }\n target.set(naics);\n }\n }", "title": "" }, { "docid": "8602591c6fd8ae8144f50f23b8d45bab", "score": "0.43015325", "text": "private void reserveAllSelectedIds() {\n myProperty.getComponents().stream()\n .map(NlComponent::getId)\n .filter(id -> !StringUtil.isEmpty(id))\n .forEach(myReservedIds::add);\n }", "title": "" }, { "docid": "65a951b6b02052bb1d6bd1ac493ec87e", "score": "0.42942542", "text": "public void setIId(int value) {\n this.iId = value;\n }", "title": "" }, { "docid": "40c36dcad5317d122101b7c7646a30db", "score": "0.4290095", "text": "public java.util.List<java.lang.Integer>\n getAreaIdsList() {\n return AreaIds_;\n }", "title": "" }, { "docid": "98b765a8564251630c34a5168c230415", "score": "0.42787844", "text": "public void setC_Region_ID (int C_Region_ID);", "title": "" }, { "docid": "3f7a1275ca9319b1fb3fb9ec0a988e46", "score": "0.42714873", "text": "@JsonProperty(\"ISOUnderlyingInstrumentIndex\")\n public Derived.ISOUnderlyingInstrumentIndex getISOUnderlyingInstrumentIndex() {\n return iSOUnderlyingInstrumentIndex;\n }", "title": "" }, { "docid": "3bca022b996e338c5b8c9adcfcfadeb5", "score": "0.4267961", "text": "public void setListaTipoIdentificacionCombo(List<TipoIdentificacion> listaTipoIdentificacionCombo)\r\n/* 225: */ {\r\n/* 226:212 */ this.listaTipoIdentificacionCombo = listaTipoIdentificacionCombo;\r\n/* 227: */ }", "title": "" }, { "docid": "2a4e4f071f72e382976aaffae4292ca9", "score": "0.42647588", "text": "public RangeDisplayEpoxyModel_ m5367id(Number... ids) {\n super.mo11721id(ids);\n return this;\n }", "title": "" }, { "docid": "0aff4a47e5a2996d8e4fd81aec462566", "score": "0.4263539", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getOnsetPublicID();", "title": "" }, { "docid": "71bc6b951c59fed8a62bb32bcc15a3ba", "score": "0.42630944", "text": "public void setDatasetProperties(Individual datasetIndv, int properties) {\n\t\tLiteral propertiesLiteral = ontModel.createTypedLiteral(properties, getPrimitiveTypes().get(properties));\n\t\tStatement property = datasetIndv.getProperty(VOIDOntologyVocabulary.DATASET_properties_prp);\n\t\tif (property != null) {\n\t\t\tproperty.changeObject(propertiesLiteral);\n\t\t} else {\n\t\t\tdatasetIndv.setPropertyValue(VOIDOntologyVocabulary.DATASET_properties_prp, propertiesLiteral);\n\t\t}\n\t}", "title": "" }, { "docid": "59bc84c2db02cdb028aba342d184f784", "score": "0.42607966", "text": "public void setHkQuantityTypeIdentifierDietaryNiacin(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, HKQUANTITYTYPEIDENTIFIERDIETARYNIACIN,value);\n\t}", "title": "" }, { "docid": "ff5cb287220033780b4a62bd92d4188d", "score": "0.42514777", "text": "public void setAutoid( Integer autoid)\r\n\t{\r\n\t\tthis.autoid = autoid;\r\n\t}", "title": "" }, { "docid": "da86ccc28f6d2e704883d1cfeaed6dd1", "score": "0.424851", "text": "public void setObjectId(String value) {\n setAttributeInternal(OBJECTID, value);\n }", "title": "" }, { "docid": "af3e5ae9785da8de9abd4386ac892dd5", "score": "0.42460552", "text": "public Set<String> getIdentityTypes();", "title": "" }, { "docid": "a7eca65cd478e348e125c7247089f1d4", "score": "0.42399478", "text": "public void setDisks(final Disk[] disks) {\n this.cimiObject.setDisks(MachineConfiguration.diskArrayToCimiDiskConfigurationArray(disks));\n }", "title": "" }, { "docid": "a21327c992fa3909df5d611b31a36e66", "score": "0.42312145", "text": "@JsonSetter(\"chronic_diseases\")\r\n public void setChronicDiseases (List<ChronicDisease2> value) { \r\n this.chronicDiseases = value;\r\n notifyObservers(this.chronicDiseases);\r\n }", "title": "" }, { "docid": "d61a0ddaae1d08d04945cdfbaa253dba", "score": "0.42295748", "text": "void setObjectId(gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId objectId);", "title": "" }, { "docid": "579e53ae5067c0f849df4c344004a0e5", "score": "0.4228294", "text": "@Override\r\n\tpublic void playerIDs(List<String> playerIDs) {\n\t\t\r\n\t}", "title": "" }, { "docid": "838d6af528acbadb7dab200555811679", "score": "0.42282528", "text": "public void setID(String[] id)\n\t{\n\t\tMap<String, String> map = new HashMap<String, String>();\n\t\tfor (int i = 0; i < id.length; i++)\n\t\t\tmap.put(id[i], \"\");\n\t\tthis.setDocuments(map);\n\t}", "title": "" }, { "docid": "5bebe84336e7f855d5d33f048c044b79", "score": "0.42262655", "text": "void setID(int inte);", "title": "" }, { "docid": "8697795dda4a5136e0240b9811e8dcfc", "score": "0.42254168", "text": "public final void setIdentity() {\n/* 219 */ this.m00 = 1.0D;\n/* 220 */ this.m01 = 0.0D;\n/* 221 */ this.m02 = 0.0D;\n/* */ \n/* 223 */ this.m10 = 0.0D;\n/* 224 */ this.m11 = 1.0D;\n/* 225 */ this.m12 = 0.0D;\n/* */ \n/* 227 */ this.m20 = 0.0D;\n/* 228 */ this.m21 = 0.0D;\n/* 229 */ this.m22 = 1.0D;\n/* */ }", "title": "" }, { "docid": "8a5eecb2d9265cf95f660d7eb16bd9fd", "score": "0.42225692", "text": "void xsetOfficeID(org.apache.xmlbeans.XmlInt officeID);", "title": "" }, { "docid": "4798e11858f5ae8900a08d58441d184f", "score": "0.42209426", "text": "public String[] getSeriesGeoIds() {\n\t\tif (seriesGeoIds == null) {\n\t\t\tArrayList temp = arrayAnalysisAssembler.getSeriesGEOIds();\n\t\t\tseriesGeoIds = new String[temp.size()];\n\t\t\tfor (int i = 0; i < temp.size(); i++)\n\t\t\t\tseriesGeoIds[i] = (String) temp.get(i);\n\t\t}\n\t\treturn seriesGeoIds;\n\t}", "title": "" }, { "docid": "69b05e6e68717ea96a34229b2f60dc72", "score": "0.42146865", "text": "public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) {\n\t\tthrow new ADOMException(\r\n\t\t\tnew DOMException(DOMException.NOT_SUPPORTED_ERR, \r\n\t\t\t\t\t\"setIdAttributeNS not supported\"));\r\n//\t\tgetDElement().setIdAttributeNS(namespaceURI, localName, isId);\r\n\t}", "title": "" }, { "docid": "2d70b6876b9a233eec1a23175fd12c29", "score": "0.42136556", "text": "public void setIdartif(String value)\n {\n setAttributeInternal(IDARTIF, value);\n }", "title": "" } ]
1860a2cfaa9334e02b6789b4727d035b
Shrink the window size by discarding data before the shift And return the new size of the window
[ { "docid": "fbe49a63dab9f0c9568a88b9083147f7", "score": "0.74218976", "text": "public int shrinkWindowSize() {\n\t\tthis.preWindowSize = adwin.getWidth();\n\t\treturn preWindowSize;\n\t}", "title": "" } ]
[ { "docid": "98307689474a7d7abc005204a0417f98", "score": "0.6093174", "text": "ResizeToFill createResizeToFill();", "title": "" }, { "docid": "11117cfb967e9e554e91b7654153d990", "score": "0.5919015", "text": "public abstract void screenResized(Window window);", "title": "" }, { "docid": "7a531dfb269abee6789974b283a81e62", "score": "0.5798871", "text": "ResizeToFit createResizeToFit();", "title": "" }, { "docid": "e8e59b17462fa9a349170ab809d73ea0", "score": "0.5706844", "text": "private double rescaleW() {\r\n\t\treturn (double) canvasW / (double) DEFAULT_WIDTH;\r\n\t}", "title": "" }, { "docid": "a7b8ca7e6568a2e6d62bce96dbd33953", "score": "0.568185", "text": "private void resize() {\n \t\n }", "title": "" }, { "docid": "13c6b41c5f0a9cc2f432f47f1dfb0e0b", "score": "0.5564799", "text": "public void decreaseWidth() {\n\n //removes one column from the gridpane. If the mapsquare getting removed is a starting position\n // or a goal tile, it moves it to the left\n int removeIndex = getMapWidth() - 1;\n for (int i = 0; i < getMapHeight(); i++) {\n MapSquare toRemove = map[i][removeIndex];\n if (toRemove.getTile() instanceof GoalTile) {\n map[i][removeIndex - 1].setTile(new GoalTile(0));\n }\n if (toRemove.isStartingPosition()) {\n map[i][removeIndex - 1].setStartingPosition(true);\n }\n this.getChildren().remove(toRemove);\n }\n\n // instantiates a new map with width 1 smaller and copies over the elements of the current map\n MapSquare[][] newMap = new MapSquare[getMapHeight()][getMapWidth() - 1];\n for (int row = 0; row < getMapHeight(); row++) {\n for (int col = 0; col < getMapWidth() - 1; col++) {\n newMap[row][col] = map[row][col];\n }\n }\n\n map = newMap;\n }", "title": "" }, { "docid": "c0b2e9eb32ffcc8a0526ed7033e32f60", "score": "0.5547226", "text": "public void shrinkSquare() {\n squareSize--;\r\n }", "title": "" }, { "docid": "533294ac0b5577e5942e1a19bfec4d34", "score": "0.54710835", "text": "private void shrink() {\n int size = size();\n int len = items.length;\n int a = lCount;\n int b = a + len / 4 + 1;\n //int x = ((a + b + 1) / 2 - (len / 4));\n int x = a - (len / 8) + 1;\n T[] shortBoi = (T []) new Object[items.length / 2];\n System.arraycopy(items, a + 1, shortBoi, a + 1 - x, size);\n lCount = a - x;\n rCount = rCount - x;\n items = shortBoi;\n\n /*\n if(size() < items.length / 2) {\n System.out.println(\"Too much ono\");\n printDeque();\n }\n\n */\n }", "title": "" }, { "docid": "23df4e636c066b5aa6c044c115c2b3d4", "score": "0.54562795", "text": "private void updateSize(){\n int width = positionGraphModel.getNumExperiments() * (elementWidth + 5) + insets.left + insets.right;\n width += cytoBandsCanvas.getPreferredSize().getWidth();\n\n //int height = (int) ((positionGraphModel.getMaxClonePosition() * unitLength) + (insets.top + insets.bottom ));\n int height = (int) ((cytoBandsModel.getMaxPosition() * unitLength) + (insets.top + insets.bottom ));\n\n setSize(width, height);\n setPreferredSize(new Dimension(width, height));\n\n //repaint();\n }", "title": "" }, { "docid": "ed472a7b8eff28ef89e5db0bdebb2a06", "score": "0.5356898", "text": "@Override\r\n\tpublic void windowMaximise(WindowEvent we) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9fd3fd96e198a6a093e82e26ccca7e8", "score": "0.533969", "text": "void changeSize(String name, int startingTime, int height, int width, int endingTime);", "title": "" }, { "docid": "ea78f2102cb3e912456d1cb7628df374", "score": "0.53218853", "text": "void resizeWindowContainer() {\n mTask.resize(false /* relayout */, false /* forced */);\n }", "title": "" }, { "docid": "77139d6c8273ded728a258b069e271ef", "score": "0.5275428", "text": "public int getMaxWindowSize();", "title": "" }, { "docid": "bdb7e4631527d74d50f77e018cef0d91", "score": "0.5259647", "text": "@Override\r\n\tpublic void windowMinimise(WindowEvent we) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ecd167242b151709d35eefd9fba693de", "score": "0.52493", "text": "private void shrink() {\r\n\t\tint shrinkSize = array.length>>1;\r\n\t\tarray = Arrays.copyOf(array, shrinkSize);\r\n\t}", "title": "" }, { "docid": "f8d507692089d93c08eb3b841d48408c", "score": "0.5238466", "text": "public void shrink() {\n\t\tsnakeBody.removeData(snakeLength - 1);\n\t\tsnakeLength--;\n\t}", "title": "" }, { "docid": "051c537fd361a550ef2c05d623ce8bff", "score": "0.5229867", "text": "private void enforceWindow()\n\t{\n\t\tif (list.size() > SAMPLE_WINDOW)\n\t\t{\n\t\t\tlist.removeFirst();\n\t\t}\n\t}", "title": "" }, { "docid": "b5f904bc983852cff1ba237647840773", "score": "0.52284676", "text": "public void trimToSize() {\n\t\tactivateForWrite();\n\t\tresize(size());\n\t}", "title": "" }, { "docid": "e5b3baccc4009b57788c5edd4e047fa2", "score": "0.5217753", "text": "@Override\n\tpublic Dimension getSize() {\n\t\treturn new Dimension(windowLength, windowHeight);\n\t}", "title": "" }, { "docid": "48f55eb9dd725b3ed390025930dd8e84", "score": "0.52141964", "text": "public Dimension getWindowSize() {\n return (Dimension) bus.broadcast(new WindowSizeRequest());\n }", "title": "" }, { "docid": "42a5d97965f84bb35dc447219ab5cb90", "score": "0.5204054", "text": "private void backUp() {\n\t\tSystem.arraycopy(widths, 0, xWidths, 0, widths.length);\n\t\t// make a copy of original heights\n\t\tSystem.arraycopy(heights, 0, xHeights, 0, heights.length);\n\t\t// make a copy of original grid\n\t\tfor(int i = 0; i < width; i ++) {\n\t\t\tSystem.arraycopy(grid[i], 0, xGrid[i], 0, height);\n\t\t}\n\t\t// make a copy of maxHeight\n\t\txMaxHeight = maxHeight;\n\t}", "title": "" }, { "docid": "d4942043cb5d25c1c3fa9a7e7f34755f", "score": "0.5202163", "text": "@Override\n\tpublic float getResizeWidth() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "857313e8210c4d3ab1d645c5fbf37b05", "score": "0.5166957", "text": "int getCurrentSize();", "title": "" }, { "docid": "6e9dc7bdd0b6eb42b8bd0c331eebcb65", "score": "0.51540107", "text": "private void shrink() {\n if (size > 0 && size == items.length / 4) {\n items = Arrays.copyOf(items, items.length / 2);\n }\n }", "title": "" }, { "docid": "968217acb9a9677648fda9ce584f15b1", "score": "0.51527023", "text": "@Test\r\n public void testShrink() {\n GeoPoint center = unboundedArea.getLocation();\r\n unboundedArea.shrink(0.5);\r\n assertEquals(center, unboundedArea.getLocation());\r\n unboundedArea.setFinalTime(2);\r\n unboundedArea.setTime(1);\r\n unboundedArea.setShrinkTransition();\r\n assertEquals(center, unboundedArea.getLocation());\r\n unboundedArea.finishShrink();\r\n assertEquals(center, unboundedArea.getLocation());\r\n }", "title": "" }, { "docid": "6675c2b373943f95b63d61a4f4680351", "score": "0.51402986", "text": "public void _collapseToSize(){\n boolean bResult = false;\n int width = 1, height = 1;\n\n // collapseToSize() method test\n oObj.collapseToSize (width + 3, height + 3);\n\n // checking results\n int cols = ((XColumnRowRange)\n UnoRuntime.queryInterface(\n XColumnRowRange.class, oObj) ).getColumns().getCount();\n int rows = ((XColumnRowRange)\n UnoRuntime.queryInterface(\n XColumnRowRange.class, oObj) ).getRows().getCount();\n\n if (cols == width + 3 && rows == height + 3) {\n bResult = true ;\n } else {\n bResult = false ;\n log.println( \"After collapseToSize() call region must have size \"\n + (width + 3) + \"x\" + (height + 3) + \" but it is \"\n + cols + \"x\" +rows);\n }\n\n tRes.tested(\"collapseToSize()\", bResult) ;\n\n // restore original size\n oObj.collapseToSize(width, height) ;\n }", "title": "" }, { "docid": "eee3ccd6c6332c741821f5663708d442", "score": "0.5139499", "text": "public void shrink() {\n if( size-1 < a.length/4 ) {\n int[] b = new int[ a.length / 2 ] ;/*#TC*/ /*#I makeNewArray(b);*/ /*#/TC*/\n for( int i=0; i < size-1 ; ++i )\n b[i] = a[i] ;/*#TC*/ /*#I replaceArray(a, b);*/ /*#/TC*/ \n a = b ; }\n --size ;\n }", "title": "" }, { "docid": "73f4290e022bc2e9ef9023d0cd3625fb", "score": "0.5121208", "text": "protected final void decreaseSize() { -- this.n; }", "title": "" }, { "docid": "f61da0c96db3fd062e837ee92dc97954", "score": "0.51152575", "text": "private void adjustSize()\n\t{\n\t\tif (getNoOfCards() > 0)\n\t\t\tthis.setSize(width, Card.HEIGHT + SHIFT * getNoOfCards() - SHIFT);\n\t\telse\n\t\t\tsetSize(Card.WIDTH, Card.HEIGHT);\n\t}", "title": "" }, { "docid": "fe01de01f0909fe9a723acfb0b8fe3fc", "score": "0.50939924", "text": "void resize(int width, int height);", "title": "" }, { "docid": "fe01de01f0909fe9a723acfb0b8fe3fc", "score": "0.50939924", "text": "void resize(int width, int height);", "title": "" }, { "docid": "661e9a7b2bfca4dbcfaa0969583afc4d", "score": "0.5081053", "text": "public void shrink() {\n\t\tfor (int i = 0; i < panels.length; i++) {\n\t\t\tpanels[i].setPreferredSize(new Dimension(0, 50));\n\t\t}\n\t\tthis.setPreferredSize(new Dimension(0, 450));\n\t}", "title": "" }, { "docid": "42ed1b4d54066aa322bc2bfb1f49ee17", "score": "0.5077653", "text": "public myapp.avro.MinTopKEntry.Builder clearEndingWindow() {\n fieldSetFlags()[3] = false;\n return this;\n }", "title": "" }, { "docid": "8ffe9e79b9450abf56ef9c3d2270e611", "score": "0.50765824", "text": "public void resizeR(int deltaW) {\r\n\t\tint delta = getWidth() + deltaW < minWidth ? getWidth()-minWidth : deltaW;\r\n\t\tsetWidth(getWidth() + delta);\r\n\t\telements.stream().forEach(e -> e.resizeR(delta));\r\n\t}", "title": "" }, { "docid": "4c05ae94c9fb127f074328ce0200a27b", "score": "0.5071702", "text": "private void resizeWindow(Rectangle mySquare, Stage primaryStage) {\n\t\tint boardSize = board.GRID_SIZE;\n\t\tint heightChange = rectHeightChange + (boardSize-1) * gapNum;\n\t\tmySquare.heightProperty().bind((primaryStage.heightProperty().subtract(\n\t\t\t\t\t\theightChange)).divide(boardSize));\n\t\tint widthChange = rectWidthChange + (boardSize-1) * gapNum;\n\t\tmySquare.widthProperty().bind((primaryStage.widthProperty().subtract(\n\t\t\t\t\t\twidthChange)).divide(boardSize));\n\t}", "title": "" }, { "docid": "8424a353ed49d96fd1bbd44391fe90ea", "score": "0.5071056", "text": "public static double getWindowSizeForFrameDataToFeatureConversion() {\n return windowSizeForFrameDataToFeatureConversion;\n }", "title": "" }, { "docid": "6aae92e09a00ffcb2bb0c57b47f3b47d", "score": "0.5055626", "text": "private void resize() {\r\n\t\tbyte[] nbuffer = new byte[buffer.length * resizefac[resize]];\r\n\t\tSystem.arraycopy(buffer, 0, nbuffer, 0, buffer.length);\r\n\t\tbuffer = nbuffer;\r\n\t\tif (resize < resizefac.length) {\r\n\t\t\tresize++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "85e4461ba8baaf0faae7746cbfb240dd", "score": "0.50411975", "text": "private void changeSizeTo(int widthDest , int heightDest){\r\n if(widthCurrent < widthDest) {\r\n widthCurrent = (widthCurrent >= widthDest - WIDTH_CHANGE_SPEED) ? widthDest : widthCurrent + WIDTH_CHANGE_SPEED;\r\n }else if(widthCurrent > widthDest) {\r\n widthCurrent = (widthCurrent <= widthDest + WIDTH_CHANGE_SPEED) ? widthDest : widthCurrent - WIDTH_CHANGE_SPEED;\r\n }\r\n if(heightCurrent < heightDest) {\r\n heightCurrent = (heightCurrent >= heightDest - HEIGHT_CHANGE_SPEED) ? heightDest : heightCurrent + HEIGHT_CHANGE_SPEED;\r\n }else if(heightCurrent > heightDest) {\r\n heightCurrent = (heightCurrent <= heightDest + HEIGHT_CHANGE_SPEED) ? heightDest : heightCurrent - HEIGHT_CHANGE_SPEED;\r\n }\r\n\r\n }", "title": "" }, { "docid": "cbbf7c949959027d362e4defba49a96c", "score": "0.5030786", "text": "private void canvasResize() {\r\n \t\tframe.addComponentListener(new ComponentAdapter() {\r\n \t\t\tpublic void componentResized(ComponentEvent e) {\r\n \t\t\t\t//plotter.updateSize(frame.getWidth()- controlsWidth,frame.getHeight()- controlsHeight);\r\n \t\t\t\t\r\n \t\t\t\t// Er nedenstende ndvendigt ?\r\n \t\t\t\t// XXX Ja, med mindre du har en bedre lsning. \r\n \t\t\t\t// Problemet er, at frame.pack() resizer vinduet. \r\n \t\t\t\t// Dvs. uden dette check opns et uendeligt loop.\r\n \t\t\t\tif(!e.getSource().equals(frame) || maximized){\r\n \t\t\t\t\tframe.pack();\r\n \t\t\t\t\tmaximized = false;\r\n \t\t\t\t}\r\n \t\t\t\tif(e.getSource().toString().contains(\"maximized\")){\r\n \t\t\t\t\tframe.pack();\r\n \t\t\t\t\tmaximized = true;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t});\r\n \t}", "title": "" }, { "docid": "6b3ba290dc8b09b78196e5239ecce1e4", "score": "0.50250167", "text": "@Override\n\tpublic void resize() {\n\t\tdecoratedShape.resize();\n\t}", "title": "" }, { "docid": "992a9406e695e7e425c35e2524eddc37", "score": "0.5023696", "text": "public void screenSizeChanged(int new_w, int new_h) {\n if(combine_shader == null)\n return;\n\n combine_shader.begin();\n combine_shader.setUniformf(\"viewport_size\", new Vector2(new_w, new_h));\n combine_shader.end();\n }", "title": "" }, { "docid": "2bf443ad8da242d7dbc82b04e4b07a56", "score": "0.5016688", "text": "Tupel<Integer, Integer> getWorkbenchSize();", "title": "" }, { "docid": "8b49836ec83b51b2fd18d25575263a3d", "score": "0.5011412", "text": "@Override\n\tpublic void fireOutstretchHeightEvent() {\n\t\t\n\t}", "title": "" }, { "docid": "c9cb7a50dfe0cd9f4163ea1275db998d", "score": "0.50060385", "text": "public void resetShellBounds(int x, int y, int w, int h) {\n\n\t}", "title": "" }, { "docid": "d9b7d1bc8379b564e84e0745d5c62cbb", "score": "0.500539", "text": "void setWidth(double w);", "title": "" }, { "docid": "346627ddbab0ca94e29918442c8899d6", "score": "0.49955857", "text": "private void resize(int w, int h) {\n\t\tw -=1; h -=-1;\n\t\twt = w/xTiles; ht = h/yTiles;\n\t\tht = Math.min(wt, ht); wt = ht;\n\t\txInit = (w%xTiles)/2; yInit = (h%yTiles)/2;\n\t\txEnd = xInit+wt*xTiles; yEnd = yInit+ht*yTiles;\n\t}", "title": "" }, { "docid": "e73de853a851c53aee7e2ff942b78dab", "score": "0.49690142", "text": "public void resize() \n\t{\n\t\tscaleX = (float)Data.ACTUAL_WIDTH / (float)1920;\n\t\tscaleY = (float)Data.ACTUAL_HEIGHT / (float)1080;\n\t}", "title": "" }, { "docid": "a47122cc5b7e076657e4387e13609697", "score": "0.496437", "text": "@Override \r\n\tprotected void updateSize()\r\n\t{\r\n\t\tsuper.updateSize();\r\n\r\n\t\t//_text.width = _width-10;\r\n\t\t//_text.height = _height-15;\r\n\t}", "title": "" }, { "docid": "5d6493656f14ba95f313cc71c636c774", "score": "0.4961799", "text": "void onWidthChange(int oldWidth, int newWidth);", "title": "" }, { "docid": "8663b26b734cb9cb92dc4fb5070dd2c9", "score": "0.49579024", "text": "@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t\tmWidth = getWidth();\n\t\tmHeight = getHeight();\n\t\trWidth = mWidth / (length + 2);\n\t\tscale = mHeight * 7 / (8 * 100);\n\t}", "title": "" }, { "docid": "fcf0172e160fe29180599e287cfea0e5", "score": "0.49534675", "text": "private void updateSizeForWizard(IWizard sizingWizard) {\n Point delta = new Point(0, 0);\n IWizardPage[] pages = sizingWizard.getPages();\n for (IWizardPage page : pages) {\n // ensure the page container is large enough\n Point pageDelta = calculatePageSizeDelta(page);\n delta.x = Math.max(delta.x, pageDelta.x);\n delta.y = Math.max(delta.y, pageDelta.y);\n }\n if (delta.x > 0 || delta.y > 0) {\n // increase the size of the shell\n Shell shell = getShell();\n Point shellSize = shell.getSize();\n setShellSize(shellSize.x + delta.x, shellSize.y + delta.y);\n }\n }", "title": "" }, { "docid": "39e494bcf0271762345b6e63c3b81c48", "score": "0.49474508", "text": "public void originalSize() {\r\n length = 200;\r\n Bitmap b = Bitmap.createScaledBitmap(bitmap, 220, 70, false);\r\n bitmap = b;\r\n }", "title": "" }, { "docid": "9b94a76e737b9d13a623ca7616d91204", "score": "0.4945875", "text": "private static Point adjustSize(Point size, Widget widget) {\n\t\tif (size == null)\n\t\t\treturn null;\n\t\tif (widget instanceof Scrollable) {\n\t\t\tsize = new Point(size.x, size.y);\n\t\t\tScrollable scr = (Scrollable) widget;\n\t\t\tPoint cSize = scr.computeSize(size.x, size.y);\n\t\t\tsize.x -= cSize.x - size.x;\n\t\t\tsize.y -= cSize.y - size.y;\n\t\t} //System.out.println(\"ADJUSTED SIZE to \" + size + \" for \" + widget);\n\t\treturn size;\n\t}", "title": "" }, { "docid": "f0d6458da7683369c83ccc8462cdea9f", "score": "0.4945392", "text": "private void resize() {\r\n\t\tdouble min = Math.min(this.width.get(), this.height.get());\r\n\t\tthis.gameScreen.setWidth(min);\r\n\t\tthis.gameScreen.setHeight(min);\r\n\t}", "title": "" }, { "docid": "71d72e646df8a58f5438c78cdc6529b3", "score": "0.49382475", "text": "private double getWorkingWidth() {\r\n return getWidth();\r\n }", "title": "" }, { "docid": "014ddb8e06989c3a3d9af8b6d910a13d", "score": "0.4935551", "text": "private void shrinkTheArray() {\n if (size > 0 && size == array.length / 4) {\n resize(array.length / 2);\n }\n }", "title": "" }, { "docid": "5988ce81e2848bde27c0318a6e66b972", "score": "0.49352327", "text": "void setWidth(double newWidth);", "title": "" }, { "docid": "e98e4f400fc9b417cecd1cbc39a159aa", "score": "0.493209", "text": "public void setSizeW(int sizeW) {\n\t\tSizeW = sizeW;\n\t}", "title": "" }, { "docid": "a3dc40a0c1d041aa8905a5cbf6deccbd", "score": "0.49309185", "text": "public void setWidth (double newWidth) { width = newWidth; }", "title": "" }, { "docid": "26d4d61b2e46957f63dffd7b76934eae", "score": "0.49173358", "text": "public void refreshSize() {\r\n\t\tDimension dim = new Dimension(\r\n\t\t\t\tthis.hiddenDeck.getWidth()+this.visibleDeck.getWidth()+INSET_X, \r\n\t\t\t\tthis.getHeight());\r\n\t\tthis.setSize(dim);\r\n\t\tthis.setPreferredSize(dim);\r\n\t\t\r\n\t\tthis.validate();\r\n\t\tthis.repaint();\r\n\t}", "title": "" }, { "docid": "c4409f9097270758199093d378427c6f", "score": "0.49022382", "text": "public int getCurrentWidth();", "title": "" }, { "docid": "1d9c51ac9d5c0f132ea033627e4ca359", "score": "0.49005452", "text": "public void decreaseHeight() {\n\n //removes one row from the gridpane. If the mapsquare getting removed is a starting position\n // or a goal tile, it moves it to the left\n int removeIndex = getMapHeight() - 1;\n for (int i = 0; i < getMapWidth(); i++) {\n MapSquare toRemove = map[removeIndex][i];\n if (toRemove.getTile() instanceof GoalTile) {\n map[removeIndex - 1][i].setTile(new GoalTile(0));\n }\n if (toRemove.isStartingPosition()) {\n map[removeIndex - 1][i].setStartingPosition(true);\n }\n this.getChildren().remove(toRemove);\n }\n\n // instantiates a new map with width 1 smaller and copies over the elements of the current map\n MapSquare[][] newMap = new MapSquare[getMapHeight() - 1][getMapWidth()];\n for (int row = 0; row < getMapHeight() - 1; row++) {\n for (int col = 0; col < getMapWidth(); col++) {\n newMap[row][col] = map[row][col];\n }\n }\n\n map = newMap;\n\n }", "title": "" }, { "docid": "b754ca2c66de76494fbe0ec1d2b54ef5", "score": "0.49000815", "text": "int getW();", "title": "" }, { "docid": "c4527a7340178e9a3c24486e2f7d2ece", "score": "0.4893826", "text": "private BufferedImage stretchCroppingMaskToFitEdge(BufferedImage source, int newW, int newH) {\r\n\t\t\r\n\t\tif( source.getWidth() > newW ) {\r\n\t\t\tRect r = new Rect(0,0,newW, source.getHeight());\r\n\t\t\tsource = ImageProcessing.cropImage(source, r);\r\n\t\t}\r\n\t\tif( source.getHeight() > newH ) {\r\n\t\t\tRect r = new Rect(0,0,source.getWidth(), newH);\r\n\t\t\tsource = ImageProcessing.cropImage(source, r);\r\n\t\t} \r\n\r\n \r\n\t\tif( source.getWidth() < newW) {\r\n\t\t\tsource = ImageProcessing.resizeTo(source,newW, source.getHeight());\r\n\t\t}\r\n\t\tif( source.getHeight() < newH) {\r\n\t\t\tsource = ImageProcessing.resizeTo(source,source.getWidth(), newH);\r\n\t\t}\r\n\r\n\t\t//System.out.println(\"matchImageSize: postScaledSize \" + source.getWidth() + \" \" + source.getHeight());\r\n\t\treturn source;\r\n\t}", "title": "" }, { "docid": "e546983e8d4794daebf8190087e796a0", "score": "0.48935026", "text": "private void movingWindowAverageOriginalWave(byte[] dataFromWaveFile) {\n int N = dataFromWaveFile.length;\n double[] d = new double[N / 2];\n XYSeries temporaryAverageTimeSeries = new XYSeries(\"Temporary Series\");\n //For classification we segment using a small window\n int numberOfSegments = (int) (dataFromWaveFile.length / SEGMENT_SIZE);\n //convert bytes to short values\n for (int i = 0; i < N / 2; i++) {\n d[i] = ((short) (((dataFromWaveFile[2 * i + 1] & 0xFF) << 8) + (dataFromWaveFile[2 * i] & 0xFF))) / ((double) Short.MAX_VALUE);\n if (i % 100 == 0) {\n amplitudeTimeSeries.add(i * parentForm.TimeIntervalBetTwoBytes * 2, d[i]);\n }\n }\n\n //draw original wave and average \n for (int segmentCount = 0; segmentCount < numberOfSegments; segmentCount++) {\n int j = 0;\n int valueCount =0;\n double amplitudeAvaregeperSegment=0; \n for (j = (SEGMENT_SIZE/2) * (segmentCount); j < (SEGMENT_SIZE/2)* (segmentCount + 1); j++) {\n amplitudeAvaregeperSegment += (d[j]*d[j]);\n valueCount++;\n }\n amplitudeAvaregeperSegment = amplitudeAvaregeperSegment / valueCount;\n temporaryAverageTimeSeries.add(j * parentForm.TimeIntervalBetTwoBytes * 2, amplitudeAvaregeperSegment);\n\n }\n //copy first value\n averageAmplitudeTimeSeries.add(temporaryAverageTimeSeries.getDataItem(0).getX(), temporaryAverageTimeSeries.getDataItem(0).getY());\n //moving average intermediate values\n for(int count=1;count<temporaryAverageTimeSeries.getItemCount()-1;count++)\n {\n double previousVal = temporaryAverageTimeSeries.getDataItem(count-1).getYValue();\n double currentVal = temporaryAverageTimeSeries.getDataItem(count).getYValue();\n double nextVal = temporaryAverageTimeSeries.getDataItem(count+1).getYValue();\n double currentTimeVal = temporaryAverageTimeSeries.getDataItem(count).getXValue();\n double average = (previousVal+currentVal+nextVal)/3.0;\n averageAmplitudeTimeSeries.add(currentTimeVal,average);\n }\n //copy last value\n int lastCount = temporaryAverageTimeSeries.getItemCount()-1;\n averageAmplitudeTimeSeries.add(temporaryAverageTimeSeries.getDataItem(lastCount).getX(), temporaryAverageTimeSeries.getDataItem(lastCount).getY());\n \n //draw original wave\n dataset.addSeries(amplitudeTimeSeries);\n chart = ChartFactory.createXYLineChart(\"\",\n \"Time\",\n \"Amplitude\",\n dataset,\n PlotOrientation.VERTICAL,\n true,\n false,\n false);\n }", "title": "" }, { "docid": "7a55d63825cafd893ea8ef6ff32792c6", "score": "0.4890451", "text": "private void shrinkMatrixSize() {\n\t\tincSize = (int) (0.5 * incSize);\n\t\tif (edgesNum < 0.5 * incSize) {\n\n\t\t\tint[][] newIncMatrix = new int[size][incSize];\n\t\t\tint i = 0;\n\t\t\tboolean smaller = i < size;\n\t\t\twhile (smaller) {\n\t\t\t\ti++;\n\t\t\t\tnewIncMatrix[i] = Arrays.copyOf(incMatrix[i], edgesNum);\n\t\t\t}\n\t\t\tthis.incMatrix = newIncMatrix;\n\t\t}\n\t\tint vSize = vertexesList.size();\n\t\tif (vSize < 0.5 * size) {\n\t\t\tsize = (int) (0.5 * size);\n\t\t\tint[][] newIncMatrix = new int[size][edgesNum];\n\t\t\tint i = 0;\n\t\t\twhile (i < vertexesList.size()) {\n\t\t\t\ti++;\n\t\t\t\tnewIncMatrix[i] = Arrays.copyOf(incMatrix[i], edgesNum);\n\t\t\t}\n\t\t\tthis.incMatrix = newIncMatrix;\n\t\t}\n\n\t}", "title": "" }, { "docid": "be538f1ca7f58668100dbba21dcfbb7f", "score": "0.48848656", "text": "@Override\n\tpublic void componentResized(ComponentEvent evt){\n\t\t\n\t\tif(Main.getControlPanel().hasStarted()) {\n\t\t\tif(evt.getSource().equals(Main.getWindow())){\n\t\t\t\tiSize = new Dimension((int)(iSize.width/(double)iSize.height*Main.getControlPanel().getScroller().getVisibleRect().getHeight()), (int)Main.getControlPanel().getScroller().getVisibleRect().getHeight());\n\t\t\t\tsetScale(scale);\n\t\t\t}\n\t\t\telse if(evt.getSource().equals(this)){\n\t\t\t\ttry{\n\t\t\t\t\tJViewport vp = Main.getControlPanel().getScroller().getViewport();\n\t\t\t\t\tRectangle rect = vp.getViewRect();\n\t\t\t\t\trect.x = newMiddle.x - vp.getWidth()/2;\n\t\t\t\t\trect.y = newMiddle.y - vp.getHeight()/2;\n\t\t\t\t\tvp.setViewPosition(new Point(rect.x, rect.y));\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException e){\n\t\t\t\t\t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "89c81e197366129ec75199213d15af7b", "score": "0.48839363", "text": "public static double getWindowSpacingForFrameDataToFeatureConversion() {\n return windowSpacingForFrameDataToFeatureConversion;\n }", "title": "" }, { "docid": "9c7120d6c852145d871a4af898814332", "score": "0.48753145", "text": "void setSizeX(int sizeX);", "title": "" }, { "docid": "27b15a3e72a17814bc2651af56cd4a11", "score": "0.48749584", "text": "@Override\n public void resize()\n {\n }", "title": "" }, { "docid": "c93a9de8caad506438a72baa82d7d94a", "score": "0.48689374", "text": "public void onSize600x400(ActionEvent ev)\n {\n kMain.getCanvas().setPreferredSize(new Dimension(600, 400));\n kMain.getTopWindow().pack();\n }", "title": "" }, { "docid": "97858ab5e10f9c4cd1950eb2d20f060f", "score": "0.48631534", "text": "protected void toggleSize() {\n //isMaxedOut = getWidth() > defaultWidth && getHeight() > defaultHeight;\n if (getWidth() > defaultWidth && getHeight() > defaultHeight) {\n overlayState = OverlayState.EXPANDED;\n } else {\n overlayState = OverlayState.MINIMIZED;\n }\n\n if (!isExpanded()) { // maximize\n expand();\n } else { // minimize\n minimize();\n }\n }", "title": "" }, { "docid": "43d6faa95ee11a6262e1928ba6085378", "score": "0.48527133", "text": "public void resetSize(int newWidth, int newHeight) {\n setSize(newWidth, newHeight);\n \n // redo layout\n m_vis.run(\"init\");\n }", "title": "" }, { "docid": "f4db5faed72afb609004e7a9746461bd", "score": "0.48517835", "text": "public void setWindowSize(int newWindowSize) {\n\n m_WindowSize = newWindowSize;\n }", "title": "" }, { "docid": "048fe095e1f027c13a236247f05a7b48", "score": "0.48514518", "text": "@Override\n public Vector2i size()\n {\n Vector2i window = Engine.Display.size();\n this.size.set(window.x - this.position.x, window.y - this.position.y);\n\n return this.size;\n }", "title": "" }, { "docid": "111a4700e42d1f19bf0ba84f3a1f16b3", "score": "0.48484507", "text": "private void trimToMaxSize()\r\n {\n while (actionList.size() > maxUndo)\r\n {\r\n actionList.remove(0);\r\n --undoCursor;\r\n }\r\n }", "title": "" }, { "docid": "269555c762a11c07fb92819a0a8ccf59", "score": "0.48467192", "text": "public abstract void resize(int width, int height);", "title": "" }, { "docid": "a21d5311b2206f930cc963cfcfdeed3d", "score": "0.48459452", "text": "public final native Resize resizing(boolean val)/*-{\n\t\tthis.set(\"resizing\", val);\n\t\treturn this;\n\t}-*/;", "title": "" }, { "docid": "af54b26deb5bfb751243a983005786d2", "score": "0.48362917", "text": "public abstract void onResize(int width, int height);", "title": "" }, { "docid": "7cbf22aaa6f643646c654f4c8a208670", "score": "0.48268348", "text": "private void changeWindowSize(Stage MainGameWindow){\n Stage windowSizeMenu = new Stage();\n windowSizeMenu.setTitle(\"Changing window size\");\n\n ImageView menuBackground = new ImageView(new Image(\"file:Images/PopupMenuBackground.jpg\", 400, 250, false, true));\n //source: http://www.sawyoo.com/postpic/2011/08/italian-dinner-menu-background_426936.jpg\n\n Label windowSizeGreeting = new Label(\"Which size would you prefer?\");\n AnchorPane.setTopAnchor(windowSizeGreeting, 10.0);\n AnchorPane.setLeftAnchor(windowSizeGreeting, 10.0);\n\n ComboBox<String> sizeChoiceBox = new ComboBox<>();\n sizeChoiceBox.getItems().addAll(\"800x480\", \"1080x600\", \"1200x720\"); //making any bigger bugged out on my laptop. booooo lame screen\n sizeChoiceBox.setPromptText(\"Please choose from this menu\");\n AnchorPane.setLeftAnchor(sizeChoiceBox, 20.0);\n AnchorPane.setTopAnchor(sizeChoiceBox, 40.0);\n\n Button confirmButton = new Button(\"Confirm\");\n AnchorPane.setRightAnchor(confirmButton, 100.0);\n AnchorPane.setBottomAnchor(confirmButton, 10.0);\n confirmButton.setOnMouseClicked(e -> {\n MainGameWindow.setResizable(true);\n if(sizeChoiceBox.getValue()!=null) {\n String choice = sizeChoiceBox.getValue();\n switch (choice) {\n case \"800x480\":\n windowWidth = 800;\n windowHeight = 480;\n break;\n case \"1080x600\":\n windowWidth = 1080;\n windowHeight = 600;\n break;\n case \"1200x720\":\n windowWidth = 1200;\n windowHeight = 720;\n break;\n }\n displayMainMenu(MainGameWindow);\n windowSizeMenu.close();\n }\n else{\n sizeChoiceBox.setBackground(new Background(new BackgroundFill(new LinearGradient(0, 0, 200, 200, false, CycleMethod.NO_CYCLE, new Stop(0, Color.DARKORANGE), new Stop(1, Color.ORANGERED)), new CornerRadii(10), Insets.EMPTY)));\n }\n });\n\n Button cancelButton = new Button(\"Cancel\");\n AnchorPane.setRightAnchor(cancelButton, 10.0);\n AnchorPane.setBottomAnchor(cancelButton, 10.0);\n cancelButton.setOnMouseClicked(e -> windowSizeMenu.close());\n\n AnchorPane menuPane = new AnchorPane();\n menuPane.getChildren().addAll(menuBackground, windowSizeGreeting, sizeChoiceBox, confirmButton, cancelButton);\n\n Scene menuScene = new Scene(menuPane);\n menuScene.getStylesheets().add(\"file:PracticeCode/MenuTesting/WindowSizeFormatting.css\");\n\n windowSizeMenu.setScene(menuScene);\n windowSizeMenu.showAndWait();\n }", "title": "" }, { "docid": "8816711a87c80020fa9355c710613ed7", "score": "0.48167944", "text": "private void configureTableResizing(final Table table) {\n ControlAdapter resizer= new ControlAdapter() {\n private boolean fIsResizing= false;\n// private final int[] fWidths= {100, 70, 70, 130, 45};\n private final int[] fWidths = {120,280};\n private int fSum= TABLE_WIDTH;\n public void controlResized(ControlEvent e) {\n if (fIsResizing)\n return;\n try {\n fIsResizing= true;\n int clientAreaWidth= table.getClientArea().width;\n TableColumn[] columns= table.getColumns();\n int calculatedtableWidth= 0;\n\n if (e.widget == table) {\n int initial[]= {120,280};\n int minimums[]= new int[columns.length];\n int minSum= 0;\n for (int i= 0; i < columns.length; i++) {\n // don't make a column narrower than the minimum,\n // or than what it is currently if less than the minimum\n minimums[i]= Math.min(fWidths[i], initial[i]);\n minSum+= minimums[i];\n }\n\n int newWidth= fSum < clientAreaWidth ? clientAreaWidth : Math.max(clientAreaWidth, minSum);\n final int toDistribute= newWidth - fSum;\n int lastPart= toDistribute;\n if (toDistribute != 0) {\n int[] iteration= {0,1}; // give the description column all the rest\n for (int i= 0; i < iteration.length; i++) {\n int c= iteration[i];\n int width;\n if (fSum > 0) {\n int part;\n if (i == iteration.length - 1)\n part= lastPart;\n else\n // current width is the weight for the distribution of the extra space\n part= toDistribute * fWidths[c] / fSum;\n lastPart-= part;\n width= Math.max(minimums[c], fWidths[c] + part);\n } else {\n width= toDistribute * initial[c] / TABLE_WIDTH;\n }\n columns[c].setWidth(width);\n fWidths[c]= width;\n calculatedtableWidth+= width;\n }\n fSum= calculatedtableWidth;\n }\n } else {\n // column being resized\n // on GTK, the last column gets auto-adapted - ignore this\n if (e.widget == columns[2])\n return;\n for (int i= 0; i < columns.length; i++) {\n fWidths[i]= columns[i].getWidth();\n calculatedtableWidth+= fWidths[i];\n }\n fSum= calculatedtableWidth;\n }\n\n // set scroll bar visible\n table.getHorizontalBar().setVisible(calculatedtableWidth > clientAreaWidth);\n } finally {\n fIsResizing= false;\n }\n }\n };\n table.addControlListener(resizer);\n TableColumn[] columns= table.getColumns();\n for (int i= 0; i < columns.length; i++) {\n columns[i].addControlListener(resizer);\n }\n }", "title": "" }, { "docid": "8ecce59756649cdbde47019022acfc46", "score": "0.48148078", "text": "private Rect resize(Rect frame, int newWidth, boolean keepInside)\n {\n // Recalculate frame based on new width\n final Rect newFrame = new Rect();\n float scale = (float) newWidth / (float) getOriginalWidth();\n newFrame.left = Math.round(frame.left * scale);\n newFrame.top = Math.round(frame.top * scale);\n newFrame.right = Math.round(frame.right * scale);\n newFrame.bottom = Math.round(frame.bottom * scale);\n\n int dx = -(Math.min(newWidth, getRootViewWidth()) - newFrame.width()) / 2;\n final int newHeight = Math.round(getOriginalHeight() * scale);\n int dy = -(Math.min(newHeight, getRootViewHeight()) - newFrame.height()) / 2;\n newFrame.offset(dx, dy);\n\n if (keepInside)\n {\n Point scroll = calculateSafeScroll(newFrame.left, newFrame.top, newWidth, newHeight);\n newFrame.offsetTo(scroll.x, scroll.y);\n }\n \n return newFrame;\n }", "title": "" }, { "docid": "35b5a583a03dae0180b4dda986e146a1", "score": "0.48107415", "text": "public void newSize(int widthDestination,int heightDestination){\r\n this.widthDest = widthDestination;\r\n this.heightDest = heightDestination;\r\n }", "title": "" }, { "docid": "1b5f996a5b23c76261bcfaa2f2ff3fe4", "score": "0.48104215", "text": "private void makeWindowAware(Engine engine) {\n\t\t\n\t\tengine.plotEvent(new MakeWindowAwareEvent(building.getWindows()[windowRow][windowColumn]));\n\t\n\t}", "title": "" }, { "docid": "a4f01ac3f0b92cd544f419009b7c10de", "score": "0.48084515", "text": "@Override\n public void mouseDragged(MouseEvent event) {\n \t\t\tif (signalValues.getPanelWidth() <= 5 && event.getX() < 0) {\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t\tif (signalValues.getPanelWidth() + event.getX() <= 2\n \t\t\t\t\t|| signalValues.getPanelWidth() + event.getX() >= 650) {\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tsignalValues.setPanelWidth(event.getX() + signalValues.getPanelWidth());\n \t\t\tsignalValues.repaint();\n \t\t\tcp.doLayout();\n \t\t}", "title": "" }, { "docid": "a05513383112b930f6b5b584b09174d4", "score": "0.4805954", "text": "static void makeLarge() {\n\t\tscale = 2;\n\t\timg = new BufferedImage(width * scale, height * scale, BufferedImage.TYPE_4BYTE_ABGR);\n\t\tb2d = img.createGraphics();\n\t\tsmall = false;\n\t\tmattw.powder.old.Window.window.resize();\n\t}", "title": "" }, { "docid": "a7c51c60483a8b751b582cd14eb236b8", "score": "0.48047283", "text": "void _resizeApplet(int[] widthHeight);", "title": "" }, { "docid": "7d637b6005458fa0278db488bdef5710", "score": "0.48010767", "text": "public void changeSize() {\n\n\t}", "title": "" }, { "docid": "2249aaea673b7e340a047b92f6c5ed6c", "score": "0.4793735", "text": "private void resize() {\n String[] newData = new String[data.length * 2 + 1];\n for (int i = 0; i < data.length; i++) {\n newData[i] = data[i];\n }\n data = newData;\n\n }", "title": "" }, { "docid": "dfb695a27082621e3be92938828f254d", "score": "0.47933373", "text": "public abstract Dimension getPanelSize();", "title": "" }, { "docid": "57ccfd2c31b9d5c5354b34fb551296f8", "score": "0.47933152", "text": "private void expandSize() {\n\t\tT[] newStack = (T[]) (new Object[stack.length + sizeIncrease]);\n\t\tfor (int i = 0; i < stack.length; i++) {\n\t\t\tnewStack[i] = stack[i];\n\t\t}\n\t\tstack = newStack;\n\t}", "title": "" }, { "docid": "a2894fba8eca5f19a1c9472adc3c4425", "score": "0.4791629", "text": "private int cropX(int w) {\n\t\treturn crop(w, MAP_WIDTH);\n\t}", "title": "" }, { "docid": "63298b4ab8d33233ce07f41312a71d89", "score": "0.47916073", "text": "public void scaleUp() {\n\t\tthis.width++;\n\t\tthis.height++;\n\n\t}", "title": "" }, { "docid": "ca51e819f483d9694a6036f1b7374384", "score": "0.479088", "text": "private void updateSize(int newWidth, int newHeight){\n String txtWidth = Integer.toString(newWidth);\n String txtHeight = Integer.toString(newHeight);\n\n this.dimWidth .setText(txtWidth);\n this.dimHeight.setText(txtHeight);\n\n return;\n }", "title": "" }, { "docid": "43af10ad27099f4aaf27e71b1791c68d", "score": "0.47879383", "text": "private void resize() {\n\t\tint temp = myArray.length;\n\t\tRectangle[] copyArray = new Rectangle[temp + 5];\n\t\tfor (int i = 0; i < myArray.length; i++) {\n\t\t\tcopyArray[i] = myArray[i];\n\t\t}\n\t\tmyArray = new Rectangle[temp + 5];\n\t\tfor (int i = 0; i < copyArray.length; i++) {\n\t\t\tmyArray[i] = copyArray[i];\n\t\t}\n\t}", "title": "" }, { "docid": "acf61d87fb6149ee2759ac803bef9339", "score": "0.47876918", "text": "public synchronized void doReshape(int w, int h) {\n // System.out.println(\"doReshape \" + w);\n myUT.glutInitWindowSize(w, h);\n\n if (view != null) {\n view.markDimensionDirty();\n // then doDisplay will be called by glutReshapeFunc\n }\n\n }", "title": "" }, { "docid": "86790f49ec6ad2955497df946fe6f632", "score": "0.4784937", "text": "@Override\n public void resize(int arg0, int arg1) {\n \n }", "title": "" }, { "docid": "a4da04511a8cb3ad127b6733de222688", "score": "0.4783479", "text": "public void trimToSize() {\n values = ArraysExt.resize(values, length(size));\n }", "title": "" }, { "docid": "e68385833626ce634e1952bace7991e5", "score": "0.47794014", "text": "public void onEventResize(ScheduleEntryResizeEvent event) {\n\t}", "title": "" }, { "docid": "df1575021d197f04be6b334f9dae5cfc", "score": "0.47773275", "text": "@Override\n public void componentResized(ComponentEvent componentEvent) {\n Dimension newSize = componentEvent.getComponent().getSize();\n Insets i = getInsets();\n newSize.width -= i.left + i.right;\n newSize.height -= i.bottom + i.top;\n onResize(newSize);\n }", "title": "" } ]
2337d64b5c074c43cd5182c4479b0eaf
Interface implemented by different UDH part types
[ { "docid": "da0e66b664613bb4ba404633e4128d39", "score": "0.6337216", "text": "public interface UserDataHeaderPart extends PduComponent {\n\t/**\n\t * Gets the length, in octets, of this {@link UserDataHeaderPart}.\n\t * This length does not include IE-Identifier or IE-Length\n\t * @return the length, in octets, of this {@link UserDataHeaderPart}\n\t */\n\tpublic int getLength();\n\t\n\t/**\n\t * Gets the Information-Element-Identifier for this header part.\n\t * @return the Information-Element-Identifier, a single octet.\n\t */\n\tpublic int getIEId();\n}", "title": "" } ]
[ { "docid": "acfb655faf1d0a0898411431c5cf5586", "score": "0.6292354", "text": "public interface WSDLPart extends WSDLObject {\n /**\n * Gets wsdl:part@name attribute value.\n */\n String getName();\n\n /**\n * Gets the wsdl:part binding as seen thru wsdl:binding\n */\n ParameterBinding getBinding();\n\n /**\n * Index value is as the order in which the wsdl:part appears inside the input or output wsdl:message.\n * @return n where n {@literal >=} 0\n */\n int getIndex();\n\n /**\n * Gives the XML Schema descriptor referenced using either wsdl:part@element or wsdl:part@type.\n */\n WSDLPartDescriptor getDescriptor();\n}", "title": "" }, { "docid": "23afa86e1fc46f00c73b98692d6c932f", "score": "0.6234973", "text": "public interface Pushhead extends MechanicalPart {\r\n}", "title": "" }, { "docid": "cb4d90a1c8a9e3b5d6ded3239c0e13e2", "score": "0.60274506", "text": "public interface Delivery_unitmanagement extends UcFindDelivery_Unit, UcManageDelivery_Unit {\n\n}", "title": "" }, { "docid": "f379b8f18370834f661f456f3130b8be", "score": "0.60032856", "text": "public interface UmegToERPService {\n public String UmegToERP(PhE001OutHeader phE001OutHeader);\n}", "title": "" }, { "docid": "7dc689a8b11de9b878fda199e96a5ae1", "score": "0.5813735", "text": "public interface UNITType extends EObject {\n}", "title": "" }, { "docid": "a95a316931d090c8d902f604bc5a9d03", "score": "0.5794593", "text": "public interface IPowerfactor extends IMeasurement{\n\n\tpublic IRI iri();\n\n}", "title": "" }, { "docid": "d66b4c2b9f2a822d86c4e1167f0eaef0", "score": "0.578611", "text": "public interface IQPalXELessonVO extends ILMSMediaContentVO {\n\n\n public String getLessonName();\n\n public String getLessonDescription();\n\n public Long getELearningCourseID();\n\n public String getProficiencyRankingScaleFloor();\n\n public String getProficiencyRankingScaleCeiling();\n\n public Long getTutorialLevelCalendarID();\n\n public Long getEducationalInstitutionID();\n\n public ProficiencyRankingScaleE getProficiencyRankingScaleFloorE();\n\n public ProficiencyRankingScaleE getProficiencyRankingScaleCeilingE();\n\n public boolean isActive();\n\n}", "title": "" }, { "docid": "8b22b808edd283fa46c55d1861b0d244", "score": "0.57057315", "text": "typeDefinitionPart createtypeDefinitionPart();", "title": "" }, { "docid": "de9c2361fee4ae729ad567a10510b1db", "score": "0.56893456", "text": "private interface PuckPart{\n\t\t/*\n\t\t * Draw this part to the provided canvas.\n\t\t * */\n\t\tpublic void draw(Canvas canvas);\n\t\t/*\n\t\t * set the color of this puckpart to the provided color, as an int.\n\t\t * @param color\n\t\t */\n\t\tpublic void setColor(int color);\n\t\t /**\n * Set this PuckPart to the provided position.\n * @param position\n */\n public void setPosition(Point position);\n\n /**\n * Sets this PuckPart's radius to the provided radius.\n * @param radius\n */\n public void setRadius(int radius);\n }", "title": "" }, { "docid": "e4bb48664cfbdc739de9a74a09400bcb", "score": "0.56809384", "text": "public interface C0313h {\n}", "title": "" }, { "docid": "2c3e7fb83efb6e31dd89252c092ffc76", "score": "0.56674933", "text": "public Part getPart() {\r\n return part;\r\n }", "title": "" }, { "docid": "6e4e7fe7fb5437361967e64f29e58c9c", "score": "0.56394225", "text": "variantPart createvariantPart();", "title": "" }, { "docid": "81da1fcc39460847498ebc5b5138a1c7", "score": "0.5623154", "text": "public interface AbstractC1637aH {\n}", "title": "" }, { "docid": "f00c912cd15415a06a6080bf82a36a1e", "score": "0.561653", "text": "public interface Part extends Nameable<WSDLComponent>, ReferenceableWSDLComponent {\n public static final String ELEMENT_PROPERTY = \"element\";\n public static final String TYPE_PROPERTY = \"type\";\n\n /**\n * Sets the element attribute value to a GlobalReference to a schema component \n * @param elementRef GlobalReference to a schema component\n */\n void setElement(NamedComponentReference<GlobalElement> elementRef);\n \n /**\n * Retrieves the element attribute value. The attribute value is a GlobalReference to\n * a schema component.\n */\n NamedComponentReference<GlobalElement> getElement();\n \n /**\n * Sets the type attribute value to a GlobalReference to a schema component \n * @param typeRef GlobalReference to a schema component\n */\n void setType(NamedComponentReference<GlobalType> typeRef);\n \n /**\n * Retrieves the type attribute value. The attribute value is a GlobalReference to\n * a schema component.\n */\n NamedComponentReference<GlobalType> getType();\n\n /**\n * Returns string value of the attribute from different namespace.\n * If given QName has prefix, it will be ignored.\n * @param attr non-null QName represents the attribute name.\n * @return attribute value\n */\n String getAnyAttribute(QName attr);\n\n /**\n * Set string value of the attribute identified by given QName.\n * This will fire property change event using attribute local name.\n * @param attr non-null QName represents the attribute name.\n * @param value string value for the attribute.\n */\n void setAnyAttribute(QName attr, String value);\n}", "title": "" }, { "docid": "d3572248396ba87d17fd4c73318d124c", "score": "0.559673", "text": "public interface TypePartnerEAO extends GenericEAO<TypePartner, Integer> {\n\n /**\n * Find Remote Allowed Cancellation Period\n *\n * @param supplierId, Supplier Identification Id\n * @param partnerId, Partner Identification Id\n * @return int\n * @throws Exception, Exception\n */\n public int getRemoteAllowedCancellationPeriod(Integer supplierId, Integer partnerId) throws Exception;\n\n\tpublic List<TypePartner> findBySystemType(Integer type) throws GenericPersistenceEAOException;\n\n\tpublic List<TypePartner> findProspects() throws GenericPersistenceEAOException;\n}", "title": "" }, { "docid": "7c2d7789e88062058ca99ffca368ee86", "score": "0.55792546", "text": "public interface ExtendHDD extends PortableHDD {\n\n void setMemoryCard(MemoryCard memoryCard);\n\n MemoryCard removeMemoryCard();\n\n}", "title": "" }, { "docid": "5444b7adf362b1c6dd50b290cbd96d5e", "score": "0.55493045", "text": "public interface RestApplicationModelPropertiesEditionPart {\n\n\t/**\n\t * @return the name\n\t * \n\t */\n\tpublic String getName();\n\n\t/**\n\t * Defines a new name\n\t * @param newValue the new name to set\n\t * \n\t */\n\tpublic void setName(String newValue);\n\n\n\n\n\t/**\n\t * Init the methodTypes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initMethodTypes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the methodTypes\n\t * @param newValue the methodTypes to update\n\t * \n\t */\n\tpublic void updateMethodTypes();\n\n\t/**\n\t * Adds the given filter to the methodTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMethodTypes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the methodTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMethodTypes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the methodTypes table\n\t * \n\t */\n\tpublic boolean isContainedInMethodTypesTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the dataTypes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initDataTypes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the dataTypes\n\t * @param newValue the dataTypes to update\n\t * \n\t */\n\tpublic void updateDataTypes();\n\n\t/**\n\t * Adds the given filter to the dataTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToDataTypes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the dataTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToDataTypes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the dataTypes table\n\t * \n\t */\n\tpublic boolean isContainedInDataTypesTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the mediaTypes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initMediaTypes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the mediaTypes\n\t * @param newValue the mediaTypes to update\n\t * \n\t */\n\tpublic void updateMediaTypes();\n\n\t/**\n\t * Adds the given filter to the mediaTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMediaTypes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the mediaTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMediaTypes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the mediaTypes table\n\t * \n\t */\n\tpublic boolean isContainedInMediaTypesTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the resourceTypes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initResourceTypes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the resourceTypes\n\t * @param newValue the resourceTypes to update\n\t * \n\t */\n\tpublic void updateResourceTypes();\n\n\t/**\n\t * Adds the given filter to the resourceTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToResourceTypes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the resourceTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToResourceTypes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the resourceTypes table\n\t * \n\t */\n\tpublic boolean isContainedInResourceTypesTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the relTypes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initRelTypes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the relTypes\n\t * @param newValue the relTypes to update\n\t * \n\t */\n\tpublic void updateRelTypes();\n\n\t/**\n\t * Adds the given filter to the relTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToRelTypes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the relTypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToRelTypes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the relTypes table\n\t * \n\t */\n\tpublic boolean isContainedInRelTypesTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the optypes\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initOptypes(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the optypes\n\t * @param newValue the optypes to update\n\t * \n\t */\n\tpublic void updateOptypes();\n\n\t/**\n\t * Adds the given filter to the optypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToOptypes(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the optypes edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToOptypes(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the optypes table\n\t * \n\t */\n\tpublic boolean isContainedInOptypesTable(EObject element);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "title": "" }, { "docid": "53f40f151562aa41db3c318ba934c7ae", "score": "0.5537344", "text": "public interface IUSBView {\n void onDataChange(String data);\n\n void onDeviceConnect();\n\n void onDeviceUnConnect();\n\n void onAddDevice(UsbDevice device);\n}", "title": "" }, { "docid": "c73bcec0733e9244186e57539bfe4903", "score": "0.5504146", "text": "public interface OpenWorkloadType extends WorkloadType {\n}", "title": "" }, { "docid": "ef4528a2badff4b034ab708730562081", "score": "0.5498431", "text": "public interface DiskTrimmableRegistry {\n void mo1325a(DiskTrimmable diskTrimmable);\n}", "title": "" }, { "docid": "8c796a4d061e66539ad2aa02d79bca3e", "score": "0.5492244", "text": "public interface EXTERNALFILESType extends EXTERNALRESOURCEType {\n}", "title": "" }, { "docid": "4be3506b08f7453976eb079ae995d9b1", "score": "0.54908955", "text": "public interface ISuperKlass extends IKlassPart {\n String getSuperKlass();\n}", "title": "" }, { "docid": "fe51721bec997358bae6b1451af2fbee", "score": "0.54884285", "text": "public interface Efficiency extends QualityType {\n}", "title": "" }, { "docid": "3ad03ce44dfc6114abcf497d07b83f23", "score": "0.54772687", "text": "public Class<? extends AbstractAEPartBase> getPartClass()\n\t{\n\t\treturn this.partClass;\n\t}", "title": "" }, { "docid": "8e75d3c2f6087a8d033b7cf0a25de796", "score": "0.5474518", "text": "public interface IACTFReportGenerator extends IViewPart, IMediatorEventListener {\n\n}", "title": "" }, { "docid": "c7bfb2c0a64a169e6cc27880f00a733f", "score": "0.5468448", "text": "public interface CartaDePartido {\n public String getPartido(); //Más adelante haremos que esto nos de la foto a mostrar\n}", "title": "" }, { "docid": "62d2b404d8c94b17168130c971c7b1a9", "score": "0.54608655", "text": "Part createPart();", "title": "" }, { "docid": "f480e75a7d35e3bfa72f39e8e8372310", "score": "0.5442753", "text": "public interface C3684f extends C3693o {\n}", "title": "" }, { "docid": "0f6f75b76ccaa4f71149f231966e5104", "score": "0.5426791", "text": "public interface CAcquisitionGrilleImpl {\r\n FileGrille getFileGrille();\r\n AutoGrille getAutoGrille();\r\n ManuelGrille getManualGrille();\r\n PictureGrille getPictureGrille();\r\n}", "title": "" }, { "docid": "2c480117bb4e7f131bd65a828e524efd", "score": "0.5416901", "text": "public interface ObjectMediaDesc extends MediaDesc\n{\n}", "title": "" }, { "docid": "6b9ded4586ab47b35e480db1158b2ffe", "score": "0.5403747", "text": "public interface PolyhedralSurfaceType extends SurfaceType {\n}", "title": "" }, { "docid": "f85fe32ca0266fc396ce98c48c64e66a", "score": "0.5403078", "text": "public Part(final ComponentDefinition cd) throws LibraryException {\n name = cd.getDisplayId();\n try {\n sequence = cd.getSequences().iterator().next().getElements();\n } catch (final NullPointerException e) {\n throw new LibraryException(\"Error with Part sequence.\");\n }\n final URI role = cd.getRoles().iterator().next();\n String type = \"\";\n if (role.equals(SequenceOntology.PROMOTER)) {\n type = \"promoter\";\n }\n if (role.equals(SequenceOntology.CDS)) {\n type = \"cds\";\n }\n if (role.equals(SequenceOntology.RIBOSOME_ENTRY_SITE)) {\n type = \"rbs\";\n }\n if (role.equals(SequenceOntology.TERMINATOR)) {\n type = \"terminator\";\n }\n if (role.equals(URI.create(\"http://identifiers.org/so/SO:0000374\"))) {\n type = \"ribozyme\";\n }\n if (role.equals(URI.create(\"http://identifiers.org/so/SO:0001953\"))) {\n type = \"scar\";\n }\n if (cd.getDisplayId().equals(\"backbone\")) {\n type = \"backbone\";\n }\n this.type = type;\n uri = cd.getIdentity();\n }", "title": "" }, { "docid": "7741ab3f2d9d3513a958c6000529d792", "score": "0.5395373", "text": "public interface C3397e {\n byte[] getExtras();\n\n String getName();\n}", "title": "" }, { "docid": "b2b26b4c07feb0ed34ec8c64d9d6f494", "score": "0.539294", "text": "public interface C248516g {\n void A6c(C248816j r1);\n\n String AWU();\n}", "title": "" }, { "docid": "450cf61784d01b1794256edf840e708c", "score": "0.53861845", "text": "public interface C3643h {\n List<C3634d<?>> getComponents();\n}", "title": "" }, { "docid": "2141b8d2fa4b4367df71a91a44cc7cc9", "score": "0.5359819", "text": "public interface CustomAttachmentType {\n // 多端统一\n int HomeWork = 0;\n int Guess = 1;\n int SnapChat = 2;\n int Sticker = 3;\n int RTS = 4;\n int NOTICE = 5;\n int HUODONG_G = 6;\n int HUODONG_C = 7;\n}", "title": "" }, { "docid": "9ee3417fc8b9503c3e13a97fcb30c0e2", "score": "0.53546125", "text": "public interface AbstractC28141Tb {\n void A3s(C28131Ta v);\n}", "title": "" }, { "docid": "35dd5decc57b7d02e17fe51b7891bcf3", "score": "0.53476137", "text": "public interface TdsBaseSystemUnit extends Unit {\r\n}", "title": "" }, { "docid": "87e79448dc54fbb092a8fc8316b3f9ee", "score": "0.53419393", "text": "private boolean isCompatiblePart(VehiclePart part){\n\t\tif(!model.validPart(part))\n\t\t\treturn false;\n\t\tif(chosenTypes.contains(part.type))\n\t\t\treturn false;\n\t\tif(part.type != VehiclePartType.Airco && part.type != VehiclePartType.Engine && part.type != VehiclePartType.Spoiler && part.type != VehiclePartType.Wheels)\n\t\t\treturn true;\n\t\tif(part.type == VehiclePartType.Airco){\n\t\t\tif(chosenParts.contains(VehiclePart.ENGINE_8) && part == VehiclePart.AIRCO_AUTO)\n\t\t\t\treturn false;\n\t\t}\n\t\tif(part.type == VehiclePartType.Engine){\n\t\t\tif(chosenParts.contains(VehiclePart.BODY_SPORT) && part == VehiclePart.ENGINE_4)\n\t\t\t\treturn false;\n\t\t}\n\t\tif(part.type == VehiclePartType.Spoiler){\n\t\t\tif(chosenParts.contains(VehiclePart.BODY_SPORT) && part == VehiclePart.SPOILER_NONE)\n\t\t\t\treturn false;\n\t\t}\n\t\tif(part.type == VehiclePartType.Wheels){\n\t\t\tif(chosenParts.contains(VehiclePart.BODY_PLATFORM) && part != VehiclePart.WHEELS_HEAVY_DUTY)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "8d377e30ba97ef03b433bb41380985d5", "score": "0.5337904", "text": "public interface C38436m {\n C10448l aHR();\n}", "title": "" }, { "docid": "529671752465f302e005600f7e578d7d", "score": "0.53356534", "text": "usesUnitsPart createusesUnitsPart();", "title": "" }, { "docid": "12ca1c66254bbb66f1f483b2d965be49", "score": "0.5319377", "text": "public interface Pm4611BS {\n \n /**\n * Save.\n *\n * @param pm4611 the pm 4611\n * @return true, if successful\n */\n\tboolean save(Pm4611 pm4611);\n\n\t/**\n\t * Delete.\n\t *\n\t * @param pm4611 the pm 4611\n\t */\n\tvoid delete(Pm4611 pm4611);\n\n\t/**\n\t * Clean.\n\t *\n\t * @param pm4611 the pm 4611\n\t * @return the pm 4611\n\t */\n\tPm4611 clean(Pm4611 pm4611);\n\n\t/**\n\t * Cancel.\n\t *\n\t * @param pm4611 the pm 4611\n\t */\n\tvoid cancel(Pm4611 pm4611);\n\n\t/**\n\t * Validate txt.\n\t *\n\t * @param pm4611 the pm 4611\n\t * @return true, if successful\n\t */\n\tboolean validateTxt(Pm4611 pm4611);\n\n\t/**\n\t * Find by anual.\n\t *\n\t * @param idSector the id sector\n\t * @param anual the anual\n\t * @return true, if successful\n\t */\n\tboolean findByAnual(Integer idSector, Integer anual);\n}", "title": "" }, { "docid": "524c234e5d3e250fd1d24a89a7100227", "score": "0.5316059", "text": "public interface ExtendFacade\r\n extends org.andromda.metafacades.uml.ModelElementFacade\r\n{\r\n\r\n /**\r\n * \r\n */\r\n public org.andromda.metafacades.uml.UseCaseFacade getBase();\r\n\r\n /**\r\n * \r\n */\r\n public org.andromda.metafacades.uml.UseCaseFacade getExtension();\r\n\r\n /**\r\n * \r\n */\r\n public java.util.List getExtensionPoints();\r\n\r\n}", "title": "" }, { "docid": "5fb507dedcfa5e8a13c967d013a7601e", "score": "0.53147066", "text": "public Type_definition_partElements getType_definition_partAccess() {\n\t\treturn pType_definition_part;\n\t}", "title": "" }, { "docid": "b7e88482110441626e6258b8ce8cb4c6", "score": "0.5313385", "text": "public interface FeatureEvaluation extends TechnologySolutionBase {\n}", "title": "" }, { "docid": "60172321dec2a2502b8ace94f1c76845", "score": "0.5313173", "text": "public interface ViewChiTietSanPham {\n void hienThiSliderSP(String[] linkHinhSP);\n void hienThiChiTietSanPham(SanPham sanPham);\n}", "title": "" }, { "docid": "9ba472b7010d38db90cf1c2f517a741f", "score": "0.5300522", "text": "public int getPartcode() {\n\treturn part;\n}", "title": "" }, { "docid": "704eaf227f7d117c063bd1daa02f6f13", "score": "0.52967614", "text": "public interface FrontEndInterface extends FrontEndInterfaceOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "title": "" }, { "docid": "e3dd6cdcc2989bebb23878848e5a5b07", "score": "0.5292908", "text": "public interface Cardmanagement extends UcFindCard, UcManageCard {\n\n}", "title": "" }, { "docid": "347d1558d9cc936bb8ab787ecb63f537", "score": "0.5291669", "text": "public interface ConditionPropertiesEditionPart {\n\n\t/**\n\t * @return the description\n\t * \n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Defines a new description\n\t * @param newValue the new description to set\n\t * \n\t */\n\tpublic void setDescription(String newValue);\n\n\n\t/**\n\t * @return the expression\n\t * \n\t */\n\tpublic String getExpression();\n\n\t/**\n\t * Defines a new expression\n\t * @param newValue the new expression to set\n\t * \n\t */\n\tpublic void setExpression(String newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "title": "" }, { "docid": "c10149a1fb8b3d5af1012a99a3174de2", "score": "0.52840036", "text": "public interface Edition {\n\n String getNameOfTheEdition();\n int getYearOfTheEdition();\n\n\n}", "title": "" }, { "docid": "df16265ed2ffcea284da123d681d287f", "score": "0.5280924", "text": "public interface IHtr extends IModule {\n\n//\tpublic void createModel(String path, String[] pars);\n /**\n * in URO-CITlab this is done by an MDRNN (sprnn). Output in this case would\n * be a Confidence-Matrix.\n *\n * @param pathToOpticalModel is either path to serialized RNN or path to\n * GMM/HMM.\n * @param pathToLanguageModel is either path to ARPA-file or other language\n * resource file.\n * @param pathToCharacterMap is path to character map file (TODO: add link\n * to file description)\n * @param image\n * @param xmlInOut\n * @param storageDir\n * @param lineIds\n * @param props set of parameters for recognition (has to be documented)\n */\n public void process(\n String pathToOpticalModel,\n String pathToLanguageModel,\n String pathToCharacterMap,\n Image image,\n String xmlInOut,\n String storageDir,\n String[] lineIds,\n String[] props\n );\n\n// /**\n// * in URO-CITlab this is done by an MDRNN (sprnn). Output in this case would\n// * be a Confidence-Matrix.\n// *\n// * @param pathToOpticalModel is either path to serialized RNN or path to\n// * GMM/HMM.\n// * @param pathToLanguageModel is either path to ARPA-file or other language\n// * resource file.\n// * @param pathToCharacterMap is path to character map file (TODO: add link\n// * to file description)\n// * @param image\n// * @param xmlInOut\n// * @param storageDir\n// * @param pathToAbbrDict\n// * @param lineIds\n// * @param props set of parameters for recognition (has to be documented)\n// */\n// public void process(\n// String pathToOpticalModel,\n// String pathToLanguageModel,\n// String pathToCharacterMap,\n// Image image,\n// String xmlInOut,\n// String storageDir,\n// String pathToAbbrDict,\n// String[] lineIds,\n// String[] props\n// );\n\n// public static boolean process(String pathToModels, Image image, String pageXmlIn, String pageXmlOut, String storageDir, String[] props);\n// public boolean process(Image image, String pageXmlIn, String pageXmlOut, String storageDir, String[] props);\n// public boolean processDecoding(String pathToModel, Image image, String pageXmlIn, String pageXmlOut, String storageDir, String[] props);\n// public boolean processBoth(String pathToModel, Image image, String pageXmlIn, String pageXmlOut, String storageDir, String[] props);\n //public boolean processOutput(Serializable representation, String[] properties);\n// public String processOutput(File path, String[] properties);\n// public Serializable processRepresentation(Image pageImage, Region[] lineRegions, String pathToModel, String[] properties);\n}", "title": "" }, { "docid": "b31652ff4fc850ea1b40a5b5cd18389e", "score": "0.5280743", "text": "public interface EuDevice {\n void powerOn();\n}", "title": "" }, { "docid": "50f40c30d79946f61ac8530e0a216745", "score": "0.5267409", "text": "public interface C3538r {\n}", "title": "" }, { "docid": "a8a6af36d95ef50042d207fb76a00ced", "score": "0.52670777", "text": "public interface IEspActionData extends IEspActionDevice\n{\n \n}", "title": "" }, { "docid": "dd889bcc23e9d55fe2e175eef9e0d3e6", "score": "0.5263842", "text": "public interface TypeProg {\n\n\tpublic String getNom();\n}", "title": "" }, { "docid": "42f4dd8161a8904ab67f92f163545b7d", "score": "0.52599555", "text": "public interface ISmintIoDataType {\n\n}", "title": "" }, { "docid": "fe394f6c39dfaebd3023f1f76143d67d", "score": "0.52579725", "text": "public interface ComputerI extends OfferedI{\n\t\n\t/** Mise à jour de la disponibilité d'un coeur vis-à-vis d'une machine virtuelle\n\t * @param uriCore uri du Coeur\n\t * @param b booléen de la disponibilité\n\t */\n\tpublic void setCoreAvailability(String uriCore, boolean b) throws RemoteException;\n\n\t/** Fonction retournant la liste des uri des coeurs disponibles dans l'ordinateur\n\t * @return liste des uri des coeurs disponibles\n\t */\n\tpublic ArrayList<String> getAvailableCores() throws RemoteException;\n\t\n\tpublic String getId() throws RemoteException;\n\t\n}", "title": "" }, { "docid": "7c0822136abb4799a92ed4368bc90377", "score": "0.52437353", "text": "@Override\npublic String getComponentType() {\n return UILiveData.COMPONENT_TYPE;\n}", "title": "" }, { "docid": "76c76cc8a9e00c115eb52bd4736e3203", "score": "0.5242433", "text": "public interface ComponentRealizationConfiguration extends ComponentRealization, RealizationConfiguration {\n}", "title": "" }, { "docid": "c5f7d3e9e9a174b8975adc9a75356423", "score": "0.5229825", "text": "public interface IUIAdapterJunctionWayPoint extends IUIAdapterWayPoint<JunctionWayPoint> {\n\n}", "title": "" }, { "docid": "40c459106d4c91f5d9fe916a4a4b60c1", "score": "0.52280945", "text": "public interface IExternalItemType {\n int getTypeId();\n Drawable getDrawable();\n BaseSystem getSystem();\n ComponentFactory getComponentFactory();\n void injectMappers();\n void injectDependencies(com.artemis.World engine, RayHandler rayHandler, World world, IResourceRetriever rm);\n}", "title": "" }, { "docid": "63d57ba5f82a105e8b5a13d604f4149a", "score": "0.52213186", "text": "public interface Polisher extends Machine {\r\n}", "title": "" }, { "docid": "24539821a83f4012af569f18d4912237", "score": "0.5217802", "text": "public interface Edition {\n\n String getEditionName();\n int publishYear();\n}", "title": "" }, { "docid": "e6c75cc54bda812c2f7eced5ca8c40ed", "score": "0.52103597", "text": "public interface Electronics extends Item, Technical\r\n{\r\n\t/**\r\n\t * Gets the maximum amount of capacitance supported by\r\n\t * this electrical item. This is the maximum power the item\r\n\t * can store up and utilize before it shuts off. Only the\r\n\t * item itself knows how much it wants to use at any particular\r\n\t * time.\r\n\t * @see Electronics#setPowerCapacity(long)\r\n\t * @return the maximum amount of stored power capacity\r\n\t */\r\n\tpublic long powerCapacity();\r\n\r\n\t/**\r\n\t * Sets the maximum amount of capacitance supported by\r\n\t * this electrical item. This is the maximum power the item\r\n\t * can store up and utilize before it shuts off. Only the\r\n\t * item itself knows how much it wants to use at any particular\r\n\t * time.\r\n\t * @see Electronics#powerCapacity()\r\n\t * @param capacity the maximum amount of stored power capacity\r\n\t */\r\n\tpublic void setPowerCapacity(long capacity);\r\n\r\n\t/**\r\n\t * Gets the amount of power capacitance remaining in this\r\n\t * electrical item. The item will continue to use this\r\n\t * power until it doesn't have enough to operate, and\r\n\t * then turn off.\r\n\t * @see Electronics#setPowerRemaining(long)\r\n\t * @return the amount of power capacitance remaining\r\n\t */\r\n\tpublic long powerRemaining();\r\n\r\n\t/**\r\n\t * Sets the amount of power capacitance remaining in this\r\n\t * electrical item. The item will continue to use this\r\n\t * power until it doesn't have enough to operate, and\r\n\t * then turn off.\r\n\t * @see Electronics#powerRemaining()\r\n\t * @param remaining the amount of power capacitance remaining\r\n\t */\r\n\tpublic void setPowerRemaining(long remaining);\r\n\r\n\t/**\r\n\t * Gets the amount of power capacitance to allow this\r\n\t * electrical item to charge up to. It should always\r\n\t * be less than powerCapacity.\r\n\t *\r\n\t * @see Electronics#setPowerTarget(long)\r\n\t * @return the amount of power capacitance max to draw\r\n\t */\r\n\tpublic long powerTarget();\r\n\r\n\t/**\r\n\t * Sets the amount of power capacitance to allow this\r\n\t * electrical item to charge up to. It should always\r\n\t * be less than powerCapacity.\r\n\t *\r\n\t * @see Electronics#powerTarget()\r\n\t * @param remaining the amount of power capacitance remaining\r\n\t */\r\n\tpublic void setPowerTarget(long remaining);\r\n\r\n\t/**\r\n\t * Returns the immediate power needs of this electrical item.\r\n\t * Typically powerCapacity - powerAvailable\r\n\t * @see Electronics#powerRemaining()\r\n\t * @see Electronics#powerCapacity()\r\n\t * @return the amount of power this item can still absorb\r\n\t */\r\n\tpublic int powerNeeds();\r\n\r\n\t/**\r\n\t * Gets whether this electrical item is \"turned on\".\r\n\t * An activated item can do the stuff it is supposed to,\r\n\t * but off it cannot.\r\n\t * @see Electronics#activate(boolean)\r\n\t * @return whether this electrical item is \"turned on\"\r\n\t */\r\n\tpublic boolean activated();\r\n\r\n\t/**\r\n\t * Sets whether this electrical item is \"turned on\".\r\n\t * An activated item can do the stuff it is supposed to,\r\n\t * but off it cannot.\r\n\t * @see Electronics#activated()\r\n\t * @param truefalse true to activate, false to deactivate\r\n\t */\r\n\tpublic void activate(boolean truefalse);\r\n}", "title": "" }, { "docid": "1ebb0f29f9a5f6540d3b52bbf2421ebc", "score": "0.5209145", "text": "public interface WriteSupportTicket extends EObject {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model roomRequired=\"true\" roomOrdered=\"false\" descriptionDataType=\"org.eclipse.uml2.types.String\" descriptionRequired=\"true\" descriptionOrdered=\"false\"\n\t * @generated\n\t */\n\tvoid newSupportTicket(Room room, String description);\n\n}", "title": "" }, { "docid": "08d82e8dee04b9d6b4a329fb594e306e", "score": "0.52041787", "text": "public interface IPartitionValueDetermination {\n\n double computeValue(MrlWorld world, Partition partition);\n\n}", "title": "" }, { "docid": "b23a3a381323cc5e3e69515ae058cb14", "score": "0.52034885", "text": "public void addPart(VehiclePart part){\n\t\tif(isCompatiblePart(part)){\n\t\t\tchosenParts.add(part);\n\t\t\tchosenTypes.add(part.type);\n\t\t}\n\t}", "title": "" }, { "docid": "3b3d2eed49cf3bef5980b175088aba5e", "score": "0.51999056", "text": "public interface B2SQL2 extends EObject\n{\n}", "title": "" }, { "docid": "3cdc29ab5d4ec4e8aefa1a24906dd7f2", "score": "0.5199875", "text": "public interface ILAHeaderPresenter extends IPresenter<ILAHeaderView> {\n\n void getWorks(int flag);\n\n void getInvsByWorkId(String workId, int flag);\n\n void getStorageNum(String workId, String workCode, String invId, String invCode);\n}", "title": "" }, { "docid": "5e9a98bf6f946a8a3537cee2bca09dae", "score": "0.5198835", "text": "public interface UltraSoundInterface {\n\n void init();\n\n long getMeasure();\n\n Position getPosition();\n\n int getThreshold();\n}", "title": "" }, { "docid": "f4e1ce21996f6f06f5992208ff3ebf27", "score": "0.51851094", "text": "public interface HLCDimensionDetailLocalHome extends EJBLocalHome {\n\n public HLCDimensionDetailLocal findByPrimaryKey(String dimensionId) throws FinderException;\n public HLCDimensionDetailLocal create(String displaySubTypeId , String dimensionTypeId, String mediaId, String dimensionName, String height,\n String width, String units, String imagePath) throws CreateException;\n public Collection findByAll() throws FinderException;\n public List findByMediaTypeAndDisplayType(String mediaId, String displayId) throws FinderException;\n \n // public Collection findByDimensionTypeName(String dimensionTypeName) throws FinderException; \n \n}", "title": "" }, { "docid": "96324e9e63ad122ed1e0579ff6db5360", "score": "0.51675594", "text": "public interface IStopLossChartObject extends IOrderLineChartObject {\r\n\r\n}", "title": "" }, { "docid": "dc10c8cd649c28b3ebdc742f7431789e", "score": "0.5163115", "text": "@UML(identifier=\"PF_PortrayalService\", specification=ISO_19117)\npublic interface PortrayalService {\n\n}", "title": "" }, { "docid": "fbbc54365fce2484e7d8e20751377bf0", "score": "0.5157808", "text": "public interface IEsimUhfService {\n boolean initRFID();\n\n boolean startScanning();\n\n boolean stopScanning();\n\n boolean closeRFID();\n\n boolean startStopScanning();\n\n boolean isEnable();\n\n boolean isStart();\n\n void setSoundOpen(boolean isOpen);\n\n boolean isSound();\n\n int getDownKey();\n}", "title": "" }, { "docid": "e364fe89085fcae27634798e57c72878", "score": "0.51524407", "text": "public interface DiagramGUISupport {\r\n\r\n /**\r\n * Returns the font size of the diagram headline.\r\n * \r\n * @return The font size of the diagram headline.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public int getFontSizeDiagramHeadline();\r\n\r\n /**\r\n * Returns the font size for the subtitles of the diagram.\r\n *\r\n * @return The font size for the subtitles of the diagram.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public int getFontSizeSubtitles();\r\n\r\n /**\r\n * Returns the font size for the table contents of the diagram.\r\n *\r\n * @return The font size for the table contents of the diagram.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public int getFontSizeTableContents();\r\n\r\n /**\r\n * Returns the name of the color which is used to paint relations between the tables.\r\n *\r\n * @return The name of the color which is used to paint relations between the tables.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public Color getRelationColorRegular();\r\n\r\n /**\r\n * Returns the name of the color which is used to paint relations to external tables.\r\n *\r\n * @return The name of the color which is used to paint relations to external tables.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public Color getRelationColorToExternalTables();\r\n\r\n /**\r\n * Checks if deprecated tables should be hidden in the diagram.\r\n *\r\n * @return <CODE>true</CODE> if the deprecated tables should be hidden in the diagram.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public boolean isDeprecatedTablesHidden();\r\n\r\n /**\r\n * Checks for marking writable members in the table view.\r\n *\r\n * @return <CODE>true</CODE> if writeable members should be marked in the table view.\r\n *\r\n * @changed OLI 26.04.2013 - Added.\r\n */\r\n abstract public boolean isMarkUpRequiredFieldNames();\r\n\r\n /**\r\n * Checks if technical fields should be painted in gray color.\r\n *\r\n * @return <CODE>true</CODE> if technical fields should be painted in gray color.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public boolean isPaintTechnicalFieldsInGray();\r\n\r\n /**\r\n * Checks if transient fields should be painted in gray color.\r\n *\r\n * @return <CODE>true</CODE> if transient fields should be painted in gray color.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public boolean isPaintTransientFieldsInGray();\r\n\r\n /**\r\n * Checks if the reference data should be shown in the tables on the diagram.\r\n *\r\n * @return <CODE>true</CODE> if the reference data should be shown in the tables on the\r\n * diagram.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public boolean isShowReferencedColumns();\r\n\r\n /**\r\n * Sets a new font size for the diagram headline.\r\n *\r\n * @param fontSize The new font size for the diagram headline.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public void setFontSizeDiagramHeadline(int fontSize);\r\n\r\n /**\r\n * Sets a new font size for the subtitles of the diagram.\r\n *\r\n * @param fontSize The new font size for the subtitles of the diagram.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public void setFontSizeSubtitles(int fontSize);\r\n\r\n /**\r\n * Sets a new font size for the table contents of the diagram.\r\n *\r\n * @param fontSize The new font size for the table contents of the diagram.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public void setFontSizeTableContents(int fontSize);\r\n\r\n /**\r\n * Sets or resets the flag for marking writable members in the table view.\r\n *\r\n * @param markUp The new value for the flag.\r\n *\r\n * @changed OLI 26.04.2013 - Added.\r\n */\r\n abstract public void setMarkUpRequiredFieldNames(boolean markUp);\r\n\r\n /**\r\n * Sets a new state for the flag which is checked for painting technical fields in gray\r\n * color.\r\n * \r\n * @param paintTechnicalFieldsInGray Set this flag to have technical fields painted in gray\r\n * color.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public void setPaintTechnicalFieldsInGray(boolean paintTechnicalFieldsInGray);\r\n\r\n /**\r\n * Sets a new state for the flag which is checked for painting transient fields in gray\r\n * color.\r\n * \r\n * @param paintTransientFieldsInGray Set this flag to have transient fields painted in gray\r\n * color.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public void setPaintTransientFieldsInGray(boolean paintTransientFieldsInGray);\r\n\r\n /**\r\n * Sets a new name of the color which is used to paint relations to external tables.\r\n *\r\n * @param colorName Sets a new of the color which is used to paint relations to external\r\n * tables.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public void setRelationColorToExternalTables(Color colorName);\r\n\r\n /**\r\n * Sets a new name of the color which is used to paint relations between the tables.\r\n *\r\n * @param colorName Sets a new of the color which is used to paint relations between the\r\n * tables.\r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public void setRelationColorRegular(Color colorName);\r\n\r\n /**\r\n * Sets a new state for the flag which decides if the reference data should be shown in the\r\n * tables on the diagram.\r\n *\r\n * @param showReferences Set this flag to get the information about the references shown in\r\n * the diagram. \r\n *\r\n * @changed OLI 17.06.2016 - Added.\r\n */\r\n abstract public void setShowReferencedColumns(boolean showReferences);\r\n\r\n}", "title": "" }, { "docid": "c39f4763ec4d37acfd40ea2a52b2a72c", "score": "0.51512307", "text": "public interface Warehouse {\n\t/**\n\t * Stuurt de robot naar het volgende product\n\t * \n\t * @param location\n\t * @param robotId\n\t */\n\tpublic abstract void retrieveProduct(Location location, int robotId);\n\t\n\t/**\n\t * Zet het pakketje op de binpacker\n\t * \n\t * @param robotId\n\t */\n\tpublic abstract void bringToBinPacker(int robotId);\n\t\n\t/**\n\t * Breng de robot naar de binpacker\n\t * \n\t * @param robotId\n\t */\n\tpublic abstract void moveToStart(int robotId);\n\t\n\t/**\n\t * Geeft het aantal robots terug\n\t * \n\t * @return \n\t */\n\tpublic abstract int getNumberOfRobots();\n\t\n\t/**\n\t * Geeft de startlocatie van de meegeven robot \n\t * \n\t * @param robotId\n\t * @return\n\t */\n\tpublic abstract Location getStartLocation(int robotId);\n\n\t/**\n\t * Geeft het maximale aantal producten op de fork terug\n\t * \n\t * @return\n\t */\n\tpublic abstract int getMaxLoad();\n}", "title": "" }, { "docid": "6e3f492622de6af96bf715f310f20d3c", "score": "0.5151064", "text": "public interface IElement extends IEngineLoopable, IHasShape, IBBox, IScaleRotationIgnore, IOffset {\n\n}", "title": "" }, { "docid": "d5438fb233587acfed8d6f7876bab044", "score": "0.51464", "text": "public interface IInputParameterSection {\r\n\t/**\r\n\t * @return the userSpaceName\r\n\t */\r\n\tpublic String getUserSpaceName();\r\n\t/**\r\n\t * @return the userSpaceLibraryName\r\n\t */\r\n\tpublic String getUserSpaceLibraryName();\r\n\t/**\r\n\t * @return the formatNamez\r\n\t */\r\n\tpublic String getFormatName();\r\n\t/**\r\n\t * @return the objectNameSpecified\r\n\t */\r\n\tpublic String getObjectNameSpecified();\r\n\t/**\r\n\t * @return the objectLibraryNameSpecified\r\n\t */\r\n\tpublic String getObjectLibraryNameSpecified();\r\n\t/**\r\n\t * @return the objectTypeSpecified\r\n\t */\r\n\tpublic String getObjectTypeSpecified();\r\n\r\n\t/**\r\n\t * @return the reservedInputParameterSection\r\n\t */\r\n\tpublic String getReservedInputParameterSection();\r\n\t/**\r\n\t * @return the errorCodeBytesProvided\r\n\t */\r\n\tpublic Integer getErrorCodeBytesProvided();\r\n\t/**\r\n\t * @return the lengthOfAuthorityControlFormatSpecified\r\n\t */\r\n\tpublic Integer getLengthOfAuthorityControlFormatSpecified();\r\n\t/**\r\n\t * @return the callLevel\r\n\t */\r\n\tpublic Integer getCallLevelSpecified();\r\n\t/**\r\n\t * @return the displacementToObjectAuthoritiesz\r\n\t */\r\n\tpublic Integer getDisplacementToObjectAuthoritiesz();\r\n\t/**\r\n\t * @return the numberOfObjectAuthorities\r\n\t */\r\n\tpublic Integer getNumberOfObjectAuthorities();\r\n\t/**\r\n\t * @return the displacementToLibraryAuthorities\r\n\t */\r\n\tpublic Integer getDisplacementToLibraryAuthorities();\r\n\t/**\r\n\t * @return the numberOfLibraryAuthorities\r\n\t */\r\n\tpublic Integer getNumberOfLibraryAuthorities();\r\n\t/**\r\n\t * @return the lengthOfSelectionControlFormat\r\n\t */\r\n\tpublic Integer getLengthOfSelectionControlFormat();\r\n\t/**\r\n\t * @return the selectOrOmitStatusValue\r\n\t */\r\n\tpublic Integer getSelectOrOmitStatusValue();\r\n\t/**\r\n\t * @return the displacementToStatuses\r\n\t */\r\n\tpublic Integer getDisplacementToStatuses();\r\n\t/**\r\n\t * @return the numberOfStatuses\r\n\t */\r\n\tpublic Integer getNumberOfStatuses();\r\n\t/**\r\n\t * @return the lengthOfAuxillaryStoragePoolControlFormat\r\n\t */\r\n\tpublic Integer getLengthOfAuxillaryStoragePoolControlFormat();\r\n\t/**\r\n\t * @return the aSPDeviceName\r\n\t */\r\n\tpublic String getASPDeviceName();\r\n\t/**\r\n\t * @return the aSPSearchType\r\n\t */\r\n\tpublic String getASPSearchType();\r\n\r\n\t\r\n}", "title": "" }, { "docid": "46de90b70327df0f7f3b47eb24dcdb59", "score": "0.5145669", "text": "public interface UsbSerialDevice {\n\n public abstract void write(byte[] data);\n\n public abstract void read(byte[] data);\n}", "title": "" }, { "docid": "107a9d232701b579f682da5588a14aa1", "score": "0.514414", "text": "public interface ElectricityStorage extends EnergyStorage {\n\n\t/**\n\t * 1 : Generic battery <br>\n\t * 2 : Generic redox flow battery <br>\n\t * 3 : Generic capacitor <br>\n\t * 4 : Generic mechanical storage <br>\n\t * 5 : Generic chemical storage <br>\n\t * 6 : Generic thermal storage for electrical energy<br>\n\t *\n\t * 10 : Lithium-ion battery <br>\n\t * 11 : Lead-acid battery <br>\n\t * 12 : VRLA battery (valve-regulated lead–acid) <br>\n\t * 13 : Sodium-sulfur battery <br>\n\t * 14 : Nickel-iron battery <br>\n\t *\n\t * 20 : Vanadium redox flow battery <br>\n\t * 21 : Zink bromine flow battery <br>\n\t *\n\t * 40 : Flywheel <br>\n\t * 41 : Pumped-storage hydro<br>\n\t * 42 : Compressed air <br>\n\t *\n\t * 50 : Hydrogen <br>\n\t * 51 : Methane (synthetic natural gas) <br>\n\t *\n\t * 60 : Molten salt <br>\n\t *\n\t * 9999 : Other <br>\n\t *\n\t */\n\tIntegerResource type();\n\n\t/**\n\t * Electrical connection of the storage. <br>\n\t * Also contains information on rated values (power, voltage, current, power\n\t * factor, etc.), in {@link org.ogema.model.sensors.Sensor#ratedValues()}. \n\t * For instance, the maximum allowed charge rate (power) is given in \n\t * {@link org.ogema.model.sensors.Sensor#ratedValues() electricityConnection.powerSensor().ratedValues()}.\n\t * <br>\n\t * If the storage device is a battery with an integrated inverter, this connection shall be interpreted as\n\t * the AC connection of the inverter. The DC connection is modeled in the inverter.\n\t */\n\tElectricityConnection electricityConnection();\n\t\n\t/**\n\t * Number of charge cycles so far.\n\t */\n\tIntegerResource cycles();\n\n\t/**\n\t * Estimated number of charge cycles before considerable loss of capacity\n\t * occurs.\n\t */\n\tIntegerResource maximumCycles();\n\n\t/**\n\t * Operating temperature, relevant only to a limited set of storage types.\n\t */\n\tTemperatureSensor temperatureSensor();\n\n\t/**\n\t * Battery internal voltage.\n\t */\n\tElectricVoltageSensor internalVoltage();\n}", "title": "" }, { "docid": "d602cf82844bff14d39bda7205df3f4a", "score": "0.51434517", "text": "interface ProductA {\n public void printDescriptionA();\n\n // ... Other methods specific to product A ...\n}", "title": "" }, { "docid": "eb82a0371a44996be4a4fe8fe0233e21", "score": "0.5122717", "text": "interface RequiredRawMaterialDbIf {\n}", "title": "" }, { "docid": "2ad4fbbb66c3c65914ead7e26a5a74ba", "score": "0.5121087", "text": "public interface AbstractC08900bw {\n}", "title": "" }, { "docid": "f5523cf7a862ec9554ee21c739be7506", "score": "0.5119453", "text": "public interface OpCom_interface {\n\n public void putControlDataPoint(DoublePoint dp);\n\n public void putMeasurementDataPoint(PlotData pd);\n\n\n}", "title": "" }, { "docid": "d51b8a2dd15d246d9e19e42af01674c6", "score": "0.51167196", "text": "public interface UMarkerRemote extends javax.ejb.EJBObject, com.arexis.mugen.genotype.umarker.UMarkerRemoteBusiness {\n \n \n}", "title": "" }, { "docid": "d9d6df3dfb9648d577e9208a39a5407e", "score": "0.5111377", "text": "public interface HasParts<E extends Enum<E>> {\n\n /**\n * Checks whether the present value is a part of \n * the given value.\n * @param whole - the part to be checked\n * @return - true if the present part is part of whole; false otherwise\n */\n boolean isPartOf(E whole);\n\n}", "title": "" }, { "docid": "35945171d65e2a3ea6f0b003f3058b1f", "score": "0.51068544", "text": "public interface Segment {\n\n String getSegmentType();\n\n String toEdifactString(EdifactSeparators edifactSeparators);\n\n\n}", "title": "" }, { "docid": "07390dfbc5f3983efb69e7a2fa7e3fd8", "score": "0.51036495", "text": "public interface Parmadi extends IDataStruct {\n \n /**\n * C_PAIS_ISO_ALFN\n */\n @Data(size=3)\n IString cPaisIsoAlfn() ;\n \n /**\n * C_MNEM_EMP_GCX\n */\n @Data(size=3)\n IString cMnemEmpGcx() ;\n \n /**\n * C_ADI_CMCZ\n */\n @Data(size=3)\n IString cAdiCmcz() ;\n \n /**\n * C_FAMI_CMCZ_CLI\n */\n @Data(size=3)\n IString cFamiCmczCli() ;\n \n /**\n * C_CMCZ_CLI\n */\n @Data(size=3)\n IString cCmczCli() ;\n \n /**\n * C_FAMI_PROD_MKT\n */\n @Data(size=3)\n IString cFamiProdMkt() ;\n \n /**\n * C_TIPO_ALVO_PRMZ\n */\n @Data(size=1)\n IString cTipoAlvoPrmz() ;\n \n /**\n * C_SEGM_CRM\n */\n @Data(size=10)\n IString cSegmCrm() ;\n \n /**\n * C_GRAN_CLI\n */\n @Data(size=3)\n IString cGranCli() ;\n \n /**\n * Z_INIC_VLDE\n */\n @Data(size=10)\n IString zInicVlde() ;\n \n /**\n * Z_FIM_VLDE\n */\n @Data(size=10)\n IString zFimVlde() ;\n \n /**\n * NS_PARM_ADI_CMCZ\n */\n @Data(size=7, signed=true, compression=COMP3)\n IInt nsParmAdiCmcz() ;\n \n /**\n * C_TIPO_ADI_CMCZ\n */\n @Data(size=1)\n IString cTipoAdiCmcz() ;\n \n /**\n * C_USID_CRIZ\n */\n @Data(size=8)\n IString cUsidCriz() ;\n \n /**\n * C_USID_ACTZ_ULT\n */\n @Data(size=8)\n IString cUsidActzUlt() ;\n \n /**\n * TS_ACTZ_ULT\n */\n @Data(size=26)\n IString tsActzUlt() ;\n \n }", "title": "" }, { "docid": "12d42dcd714d74cf2e64b9c88289ea81", "score": "0.50989723", "text": "public interface LizaVehicle extends Vehicle{\n\n}", "title": "" }, { "docid": "ec83fdbfc0c89f30b1b9accf7f412717", "score": "0.50970066", "text": "public interface FaceTemplate {\n\n double[] getSecureSketch();\n\n// void setExtractor (FeatureExtractor extractor1);\n\n FeatureExtractor getExtractor ();\n\n void makeTemplate ( ArrayList<Mat> enrollmentData );\n\n void computeCodeook (Codebook mainCodebook);\n\n}", "title": "" }, { "docid": "5c90da623fa272669665746838318f2b", "score": "0.50893486", "text": "public interface AssaultPartyInterface extends Remote{\n \n /**\n * prapareExcursion: the ordinary thieves wait until the last thief join and\n * wake up the master thief\n *\n * Called by the ordinary Thief\n *\n * @param id the thief Id\n * @param vt\n * @return \n * @throws java.rmi.RemoteException\n */\n public VectorTimestamp prapareExcursion(int id, VectorTimestamp vt)throws RemoteException;\n \n /**\n * crawl in: crawl in processes\n *\n * Called by the ordinary Thief\n * @param id the thief Id\n * @param vt\n * @return \n * @throws java.rmi.RemoteException\n */\n public VectorTimestamp crawlin(int id, VectorTimestamp vt)throws RemoteException;\n \n /**\n * reverseDirection: live thievesFIFO that controls the crawl movement and\n * join at room FIFO to wait others\n *\n * Called by the ordinary Thief\n * @param id the thief Id\n * @param vt\n * @return \n * @throws java.rmi.RemoteException\n */\n public VectorTimestamp reverseDirection(int id, VectorTimestamp vt)throws RemoteException;\n \n /**\n * crawl out: crawl out processes\n *\n * Called by the ordinary Thief\n * @param id the thief Id\n * @param vt\n * @return \n * @throws java.rmi.RemoteException\n */\n public VectorTimestamp crawlout(int id, VectorTimestamp vt)throws RemoteException;\n \n /**\n * sendAssaultParty: send the party waking up the first thief in the FIFO\n *\n * Called by the Master Thief\n *\n * @param roomID the room this party must go\n * @param vt\n * @return \n * @throws java.rmi.RemoteException\n */\n public VectorTimestamp sendAssaultParty(Integer roomID, VectorTimestamp vt)throws RemoteException;\n \n /**\n * get the room to go\n *\n * @return the room of this party\n * @throws java.rmi.RemoteException\n */\n public Integer getRoomId()throws RemoteException;\n \n public void signalShutdown() throws RemoteException;\n}", "title": "" }, { "docid": "b59226cca884f51388c6672ae2ce4940", "score": "0.5088768", "text": "public interface isInventoryItemImplementation extends IsInventoryItemPopupContent , isPopupTypeImplementation{ // extends IsWidget\n//IsWidget ,\n\t\n\n\t \n}", "title": "" }, { "docid": "818bbf798363af65d13c72f424af3329", "score": "0.5085235", "text": "@Override\n public String getPartName()\n {\n return this.partName;\n }", "title": "" }, { "docid": "941f595c989ea540db285be7b110a358", "score": "0.5083343", "text": "public interface IMainPresenter {\n void loadAllAreaUnitAsPretty();\n void loadAllLengthUnitAsPretty();\n void loadAllDielecticosAsPretty();\n void loadAllCapacitaciaUnitAsPretty();\n void calcularCapacitancia(Area area, Longitud longitud, Dielectrico dielectrico, UCapacitancia unidadRespuesta);\n}", "title": "" }, { "docid": "eaab171250e215282090d14050d62b95", "score": "0.5082109", "text": "public interface IThEBlocks {\r\n\r\n ITileDefinition infusionProvider();\r\n}", "title": "" }, { "docid": "e0dbb23e7ea215b375587a8290290d80", "score": "0.50793916", "text": "@TypeDefinitionId(\"nsu=http://opcfoundation.org/UA/DI/;i=15051\")\npublic interface IDeviceHealthType extends BaseInterfaceType {\n String DEVICE_HEALTH_ALARMS = \"DeviceHealthAlarms\";\n\n String DEVICE_HEALTH = \"DeviceHealth\";\n\n @Optional\n BaseDataVariableType getDeviceHealthNode();\n\n @Optional\n DeviceHealthEnumeration getDeviceHealth();\n\n @Optional\n void setDeviceHealth(DeviceHealthEnumeration value) throws StatusException;\n\n @Optional\n FolderType getDeviceHealthAlarmsNode();\n}", "title": "" }, { "docid": "329943dd2be1bd2c1f421ce31fd671cf", "score": "0.5077466", "text": "String getImplementation();", "title": "" }, { "docid": "329943dd2be1bd2c1f421ce31fd671cf", "score": "0.5077466", "text": "String getImplementation();", "title": "" }, { "docid": "2cc3c91ef9850bd56eb2e6047eea358c", "score": "0.5072895", "text": "public interface PartDao {\n void addPart(String name, int price, int catalogNumber);\n\n Part findPpartById(int id);\n\n Part findPpartByCatalogNumber(int catalogNumber);\n\n Part findPartByName(String name);\n\n List<Part> findPartByavailable_quantity();\n\n List<Part> findAll();\n\n void addPart();\n}", "title": "" } ]
762ace437cdd78d9ab94f826d8d4c8f5
/ Given a List of Strings, write a method removeDuplicates that removes duplicate words from the List and returns an ArrayList of all the unique words. The returned ArrayList should be lexically alphabetically.
[ { "docid": "d5bfa56bc09ed838d1137167b5f6bf81", "score": "0.81159925", "text": "public static List<String> removeDuplicates(List<String> input) {\n return new ArrayList<>(\n input.stream().collect(Collectors.toCollection(() -> new TreeSet<>(String::compareTo)))\n );\n }", "title": "" } ]
[ { "docid": "1a6d1435233fbb0db15285133d521649", "score": "0.77104634", "text": "static ArrayList<String> removeDuplicates(ArrayList<String> list) {\n\tArrayList<String> result = new ArrayList<>();\r\n\r\n\t// Record encountered Strings in HashSet.\r\n\tHashSet<String> set = new HashSet<>();\r\n\r\n\t// Loop over argument list.\r\n\tfor (String item : list) {\r\n\r\n\t // If String is not in set, add it to the list and the set.\r\n\t if (!set.contains(item)) {\r\n\t\tresult.add(item);\r\n\t\tset.add(item);\r\n\t }\r\n\t}\r\n\treturn result;\r\n }", "title": "" }, { "docid": "1e419ffc780663f5901871eef2f1a2af", "score": "0.76134086", "text": "static ArrayList<String> removeDuplicates(ArrayList<String> list) {\n\t\tArrayList<String> sortedlist= new ArrayList<String>();\r\n\r\n\t\t// Record encountered Strings in HashSet.\r\n\t\tHashSet<String> set = new HashSet<String>();\r\n\r\n\t\t// Loop over argument list.\r\n\t\tfor (String item : list) {\r\n\r\n\t\t // If String is not in set, add it to the list and the set.\r\n\t\t if (!set.contains(item)) {\r\n\t\t \tsortedlist.add(item);\r\n\t\t \tset.add(item);\r\n\t\t }\r\n\t\t}\r\n\t\treturn sortedlist;\r\n\t }", "title": "" }, { "docid": "192de826d9e1a191eae2adbf2b6036a2", "score": "0.6980586", "text": "public void removeDuplicates(ArrayList<String> input){\r\n\t\tSet<String> hs = new HashSet<>();\r\n\t\ths.addAll(input);\r\n\t\tinput.clear();\r\n\t\tinput.addAll(hs);\r\n\t}", "title": "" }, { "docid": "3136a525801e711ea43dab5aa274b310", "score": "0.685287", "text": "private void removeDuplicates() {\n int wordsRemoved = 0;\n for (int j = 1; j < count; j++) {\n if (elements[j].equals(elements[j - 1])) {\n wordsRemoved++;\n }\n elements[j - wordsRemoved] = elements[j];\n }\n count -= wordsRemoved;\n }", "title": "" }, { "docid": "8e5329e63d08f284e0be4282d22eb6a9", "score": "0.66829395", "text": "public static <T> ArrayList<T> removeDuplicates(ArrayList<T> list) \r\n { \r\n \r\n // Create a new ArrayList \r\n ArrayList<T> newList = new ArrayList<T>(); \r\n \r\n // Traverse through the first list \r\n for (T element : list) { \r\n \r\n // If this element is not present in newList \r\n // then add it \r\n if (!newList.contains(element)) { \r\n \r\n newList.add(element); \r\n } \r\n } \r\n \r\n // return the new list \r\n return newList; \r\n }", "title": "" }, { "docid": "abdacd49b41a351282b25dc3408bcd8e", "score": "0.66282016", "text": "private static <T> ArrayList<T> removeDuplicates(ArrayList<T> list) {\n\n // Create a new ArrayList\n ArrayList<T> newList = new ArrayList<T>();\n\n // Traverse through the first list\n for (T element : list) {\n\n // If this element is not present in newList\n // then add it\n if (!newList.contains(element)) {\n\n newList.add(element);\n }\n }\n\n // return the new list\n return newList;\n }", "title": "" }, { "docid": "e945ae2efed1bf37b4d5686fa5997be6", "score": "0.65373045", "text": "public <T> List<T> removeDuplicate(List<T> list);", "title": "" }, { "docid": "c0d5f490a489cb797bcf8e543dcb7d95", "score": "0.64177626", "text": "public static ArrayList<StringWithPrefix> getUniquePrefixes (ArrayList<String> input) {\r\n\t\t\r\n\t\tArrayList<StringWithPrefix> output = new ArrayList<StringWithPrefix>();\t\t\r\n\t\t\r\n\t\tfor (String word : input) {\t\t\r\n\t\t\t\r\n\t\t\tint index = input.indexOf(word);\r\n\t\t\tString prefix = getUniquePrefix(word, index, input);\t\r\n\t\t\toutput.add(new StringWithPrefix(prefix, word));\t\t\t\t\t\t\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "title": "" }, { "docid": "636065f78cd1a0d16959313592fa1808", "score": "0.6397904", "text": "public ArrayList<String> SortedWords(ArrayList<String> Words){\n\t\tArrayList<Map.Entry<String, Integer>> semiFinalList = new ArrayList<Map.Entry<String, Integer>>(); \n\t\tArrayList<String> sortedList = new ArrayList<String>();\n\t\tfor(String str: Words){\n\t\t\t//debug portion:\n\t\t\tSystem.out.println(str+\": \");\n\t\t\tsemiFinalList = sortByValue(hashTable_For(str));\n\t\t\tif(semiFinalList==null){\n\t\t\t\tSystem.out.println(\"No direct result for: \"+str);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfor(Map.Entry<String, Integer> x: semiFinalList){\n//\t\t\t\tSystem.out.println(\"link: \"+x.getKey());\n\t\t\t\tsortedList.add(x.getKey());\n//\t\t\t\tSystem.out.println(\"frequency: \"+x.getValue());\n\t\t\t}//end debug portion\n\t\t}\n\t\tsortedList.removeAll(finalResultList);\n\t\treturn sortedList;\n\t}", "title": "" }, { "docid": "301ac538bf042dd507daf89533bb77b0", "score": "0.6374829", "text": "private static List<String> removeDuplications(List<String> list){\n Iterator<String> iterator = list.iterator();\n String last = null;\n while (iterator.hasNext()){\n String current = iterator.next();\n if (current.equals(last)){\n iterator.remove();\n }else {\n last = current;\n }\n }\n return list;\n }", "title": "" }, { "docid": "ab715b9b39112929822430fb0df00b29", "score": "0.62957454", "text": "public static List<String> sortWords(List<String> words) {\n\t\tString a;\n\t\tString b;\n\t\tArrayList<String> wordlist = new ArrayList<String>();\n\t\tfor (String string : words) {\n\t\t\twordlist.add(string);\n\t\t}\n\t\tfor (int i = 0; i < words.size() - 1; i++) {\n\t\t\ta = words.get(i);\n\t\t\tb = words.get(i++);\n\t\t\tif (a.compareToIgnoreCase(b) > 0) {\n\t\t\t\twordlist.remove(i);\n\t\t\t\twordlist.add(i++, a);\n\t\t\t}\n\t\t}\n\n\t\treturn wordlist;\n\t}", "title": "" }, { "docid": "4cdb2cd84b70dc33724cfae195c4fc4f", "score": "0.6181348", "text": "public void removeDuplicates(){\n out.println(\"***removeDuplicates()\");\n\n Collection<String> col = List.of(\"spades\", \"spades\",\"hearts\", \"hearts\", \"diamonds\", \"clubs\");\n out.printf(\"%nElements with Duplicates: %n%s\", col);\n\n Set set = col.stream().collect(Collectors.toSet());\n out.printf(\"%n%nElements after removing duplicates: %n%s\", set);\n\n }", "title": "" }, { "docid": "04b3bd77bf9679f995d5463940bb5774", "score": "0.6050567", "text": "public static List<List<String>> groupAnagrams(String... words) {\n\n Map<String, List<String>> map = new LinkedHashMap<>();\n for (String word : words) {\n String wordWithSortedLetters = sortWordLetters(word);\n\n if (!map.containsKey(wordWithSortedLetters)) {\n map.put(wordWithSortedLetters, new ArrayList<>());\n }\n\n map.get(wordWithSortedLetters).add(word);\n }\n\n return new ArrayList<>(map.values());\n }", "title": "" }, { "docid": "b34189c12624fa352a466b58dd2b755d", "score": "0.60326177", "text": "private static ArrayList<String> filterOutNonDictionaryWords(ArrayList<String> words) {\n\t\tArrayList<String> result = new ArrayList<>();\n\t\tfor (String word : words) {\n\t\t\tif (DictionaryBuilder.getDictionary().containsKey(word)) {\n\t\t\t\tresult.add(word);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "69ef119ce1a76c909e41bdabe45e7e2e", "score": "0.5995528", "text": "public static Set<String> asSet(final List<String> list) {\n if (list == null) {\n return Sets.newHashSet();\n }\n return Sets.newHashSet(Iterators.transform(list.iterator(),\n new Function<String, String>() {\n @Nullable\n @Override\n public String apply(@Nullable String input) {\n return input == null ? null : input.toUpperCase();\n }\n }));\n }", "title": "" }, { "docid": "1670385ddc6f9ad1cc13a53f03962dbd", "score": "0.59894466", "text": "public List<String> ordenarString(List<String> lista){\n HashSet hs = new HashSet();\n hs.addAll(lista);\n lista.clear();\n lista.addAll(hs);\n hs.clear();\n java.util.Collections.sort(lista);\n return lista;\n }", "title": "" }, { "docid": "35f0586f8a34e1e860747b033b6f949d", "score": "0.5983562", "text": "static ArrayList<String> remove(ArrayList<String> arraylist1) {\n\t\t// Init a new list\n\t\tArrayList<String> arraylist2 = new ArrayList<String>();\n\n\t\t// check if new list contains the string if false add the string\n\t\tfor (String string : arraylist1) {\n\t\t\tif (!arraylist2.contains(string)) {\n\t\t\t\tarraylist2.add(string);\n\t\t\t}\n\t\t}\n\n\t\t// return arraylist after removing dublicates\n\t\treturn arraylist2;\n\t}", "title": "" }, { "docid": "4b88ad2a8839cc625ffdeaa01cc00bbf", "score": "0.5949236", "text": "public static void scrambleOrRemove(List<String> wordList) {\n /* to be implemented in part (b) */\n }", "title": "" }, { "docid": "5192d25724bf2f85f0bcf225b4f8e3d9", "score": "0.5932975", "text": "public static List<String> removeByIterArrayList(List<String> searchTerms) {\n List<String> result = new ArrayList<>(searchTerms);\n Iterator<String> iter = result.iterator();\n while (iter.hasNext()) {\n String e = iter.next();\n if (e == null || e.isEmpty()) {\n iter.remove();\n }\n }\n return result;\n }", "title": "" }, { "docid": "2bdf10e4b15f2dd5f3f2aff3d3fda8dd", "score": "0.5876735", "text": "ArrayList<String> prepTextFile(ArrayList<String> list){\n \tArrayList<String> newList = new ArrayList<String>();\n for(String i:list){\n \tnewList.add(i.replaceAll(\"(\\\\w+)\\\\p{Punct}(\\\\s|$)\", \"$1$2\")\n \t\t.replaceAll(\"-\", \" \").replaceAll(\" +\", \" \")); // remove punctuation and multiple spaces\n }\n \n ArrayList<String> words = new ArrayList<String>();\n for(String i:newList){\n String[] indivWords = i.toLowerCase().split(\"\\\\s+\");\t// break the words by space in the text\n words.addAll(Arrays.asList(indivWords)); \t\t\t\t// convert array to arraylist\n }\n return words;\n }", "title": "" }, { "docid": "8e5cba577d500cb4cbb25657b3115f02", "score": "0.58406705", "text": "private static List<String> getValidWords(String s){\n String[] allWords = s.split(\"[^a-zA-Z0-9]+\");\n Set<String> setOfValidWords = new HashSet<>(); //all the unique and valid words in a set\n // keeping the uniq words in a list if the order is important in the result string?\n // if the order is now important the setOfValidWords is enough no need this list.\n List<String> validWords = new ArrayList<>();\n for(String word : allWords){\n if(word.length() > 3 && !validWords.contains(word)){\n validWords.add(word.toLowerCase());\n setOfValidWords.add(word);\n }\n }\n return validWords;\n }", "title": "" }, { "docid": "9bf3b4ad9cbc1e00bfe0405996158b97", "score": "0.58366066", "text": "public static void main(String[] args) {\n\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(4,23,1,4,23,5,3,5,7));\n System.out.println(Duplicates.removeDup(list));\n //System.out.println(new LinkedHashSet<>(list));\n\n\n }", "title": "" }, { "docid": "b50a47b0cd722f7cead6519b6491e59b", "score": "0.5808698", "text": "public static <E> List<E> removeDuplicateElements(List<E> list) {\r\n\t\tint size = list.size();\r\n\t\tif ((size == 0) || (size == 1)) {\r\n\t\t\treturn list;\r\n\t\t}\r\n\t\treturn removeDuplicateElements(list, size);\r\n\t}", "title": "" }, { "docid": "4c972f29b8ee29b2d96da5445b57b2cf", "score": "0.5802891", "text": "public ArrayList<Integer> removeDuplicates(List<Integer> list) \n\t {\n\t ArrayList<Integer> newList = new ArrayList<Integer>(); \n\t \n\t // Traverse through the first list \n\t for (Integer element : list) { \n\t \n\t // If this element is not present in newList \n\t // then add it \n\t if (!newList.contains(element)) { \n\t \n\t newList.add(element); \n\t } \n\t } \n\t \n\t // return the new list \n\t return newList; \n\t }", "title": "" }, { "docid": "f6cb2664a1eeebe7638c623373d677c6", "score": "0.57510155", "text": "@SuppressWarnings(\"unchecked\")\r\n public String removeDuplicatesFromString(String str) {\r\n String[] wordsArr = str.split(\" \");\r\n\r\n StringBuilder parentBuilder = new StringBuilder();\r\n for (String word : wordsArr) {\r\n clear();\r\n\r\n for (Object ch : word.split(\"\")) {\r\n add((T) ch);\r\n }\r\n\r\n deduplicate();\r\n StringBuilder childBuilder = new StringBuilder();\r\n Node<T> currentNode = firstNode;\r\n while (currentNode != null) {\r\n childBuilder.append(currentNode.value);\r\n currentNode = currentNode.next;\r\n }\r\n\r\n parentBuilder.append(childBuilder.toString()).append(\" \");\r\n }\r\n\r\n clear();\r\n return parentBuilder.toString().trim();\r\n }", "title": "" }, { "docid": "8fb92f8f438661cd02408d61ba894a1b", "score": "0.5744158", "text": "public String[] removeDuplicates(String[] possibleDoops){\n\t\tString[] result = new String[possibleDoops.length];\n\t\tint insertedNum = 0;\n\t\tint incrementor = 0;\n\t\t//System.err.println(possibleDoops.length);\n\t\twhile(possibleDoops[incrementor] != null && incrementor < possibleDoops.length-1){\n\t\t\tif(isWord(possibleDoops[incrementor])){\n\t\t\t\tif(!AnagramSolver.contains(result, possibleDoops[incrementor])){\n\t\t\t\t\tresult[insertedNum++] = possibleDoops[incrementor];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tincrementor++;\n\t\t}\n\t\t//System.err.println(\"Done removing all duplicates in answer It took: \" + (System.currentTimeMillis()-startTime));\n\t\treturn result;\n\t}", "title": "" }, { "docid": "f81cdb5fb1387e5fcb40f8206732d41d", "score": "0.5722588", "text": "private List<String> listOfWords(List<String> newsList) {\n List<String> words = new ArrayList<>();\n\n for (String s1 : newsList) {\n String[] arrOfWords = s1.split(\" \");\n List<String> l1 = Arrays.asList(arrOfWords);\n words.addAll(l1);\n\n }\n return words;\n\n }", "title": "" }, { "docid": "e768e1f992d5e5c0debf6d196b2a1b48", "score": "0.5663994", "text": "public static List<String> filterStopWords(List<String> words) {\n List<String> filtered = new ArrayList<String>();\n for (String word : words) {\n if (!stopList.contains(word) && !word.matches(\".*\\\\W+.*\")) {\n filtered.add(word);/**/\n }\n }\n return filtered;\n }", "title": "" }, { "docid": "5cd3ae61730a0103ae2842dc9d4bc1a8", "score": "0.5628461", "text": "public ArrayList<String> getAllTerms(ArrayList<Document> list){\r\n\t\tArrayList<String> tempTerms = new ArrayList<String>();\r\n\t\t//create arraylist containing every unique term in all documents\r\n\t\tfor(Document doc : list) {\r\n\t\t\tList<String> terms = Arrays.asList(doc.toArray()).stream().sorted().collect(Collectors.toList());\r\n\t\t\tfor(int i = 0; i < terms.size(); i++) {\r\n\t\t\t\ttempTerms.add(terms.get(i));\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t//sorting and removing empty indices\r\n\t\ttempTerms = (ArrayList<String>) tempTerms.stream().distinct().sorted().collect(Collectors.toList());\r\n\t\tArrayList<String> allTerms = new ArrayList<String>();\r\n\t\tfor(int i = 0; i < tempTerms.size(); i++) {\r\n\t\t\tif(!tempTerms.get(i).equals(\"\")) {\r\n\t\t\t\tallTerms.add(tempTerms.get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn allTerms;\r\n\t}", "title": "" }, { "docid": "092280c7911835bfe9d2d7af940cae96", "score": "0.5609364", "text": "public void remove(String fileName) throws IOException {\r\nBufferedReader br1 = new BufferedReader(new FileReader(fileName));\r\nString line1 = br1.readLine();\r\nwhile(line1 != null)\r\n{\r\n String temp[] = line1.split(\" \");\r\n for(String i:temp)\r\n {\r\n if(!uniqueWords.contains(i)) uniqueWords.add(i);\r\n }\r\nline1 = br1.readLine();\r\n}\r\n\r\nbr1.close();\r\n }", "title": "" }, { "docid": "0fc628b377bf086145e248504f69ef45", "score": "0.559439", "text": "public <T> List<T> takeOddLinkedHashSetAndHashSetForDuplicatesTypeSafeOrderByAppearance(List<T> list) {\n if (list == null) {\n return new ArrayList<T>();\n }\n Set<T> countSet = new LinkedHashSet<T>();\n Set<T> duplicatedSet = new HashSet<T>();\n for (T obj : list) {\n if (!countSet.add(obj) && !duplicatedSet.add(obj)) {\n duplicatedSet.remove(obj);\n }\n }\n countSet.removeAll(duplicatedSet);\n return new ArrayList<T>(countSet);\n }", "title": "" }, { "docid": "645272a1887d5d2e75a3febdc1547f33", "score": "0.559406", "text": "public static void main(String args[]){\n\t HashSet<String> set = new HashSet<String>(); \n\t ArrayList<String> list = new ArrayList<String>();\n\t \n\t set.add(\"Ravi\"); \n\t list.add(\"Ravi\");\n\t \n\t set.add(\"Vijay\");\n\t list.add(\"Vijay\");\n\t \n\t set.add(\"Ravi\"); //Duplicate\n\t list.add(\"Ravi\");\n\t \n\t set.add(\"Ajay\"); \n\t list.add(\"Ajay\");\n\t \n\t //Traversing elements in list\n\t System.out.println(\"Traversing elements in list\");\n\t for(String name:list) {\n\t\t System.out.println(name);\n\t }\n\t \n\t \n\t //Traversing elements in set \n\t System.out.println(\"Traversing elements in set\");\n\t Iterator<String> itr=set.iterator(); \n\t while(itr.hasNext()){ \n\t System.out.println(itr.next()); \n\t } \n\t \n\t \n\tHashSet<String> temp = new HashSet<String>(list);\n\tlist = new ArrayList<String>(temp);\n\t\n\t \n\t//list = new ArrayList<String>(new HashSet<String>(list));\n\t\n\t\n\t //After duplicates removed \n\t System.out.println(\"After duplicates removed\");\n\tfor(String name:list) {\n\t\t System.out.println(name);\n\t }\n\t \n\t }", "title": "" }, { "docid": "48053aabcca5cad0590814ee737243ca", "score": "0.5518331", "text": "public String removeDuplicates(String s) {\n// // corner case\n// if (S == null || S.length() == 0) return \"\";\n\n// Stack<Character> stack = new Stack<>();\n// for (int i = 0; i < S.length(); i++) {\n// char c = S.charAt(i);\n// if (stack.isEmpty()) {\n// stack.push(c);\n// continue;\n// }\n// if (stack.peek() == c) stack.pop();\n// else stack.push(c);\n// }\n// StringBuilder sb = new StringBuilder();\n// while (!stack.isEmpty()) sb.append(stack.pop());\n// return sb.reverse().toString();\n\n if (s == null || s.length() <= 1) {\n return s;\n }\n char[] words = s.toCharArray();\n\n // [0, slow] no adjacent duplicate so far\n // (slow, fast) explored and will be removed\n //[fast, length) to be checked\n //\n int slow = -1;\n int fast = 0;\n int length = words.length;\n while (fast < length) {\n if (slow == -1) {\n slow++;\n words[slow] = words[fast];\n fast++;\n } else if (words[fast] == words[slow]) {\n fast++;\n slow--;\n } else {\n slow++;\n words[slow] = words[fast];\n fast++;\n }\n }\n length = slow + 1;\n return String.valueOf(words, 0, length);\n // return S;\n }", "title": "" }, { "docid": "ccf8d923c42989399d47fcebd6600063", "score": "0.55012673", "text": "public List<String> diffLists( List<String> words, List<String> _set){\n int nb = 0;\n List<String> rest = new ArrayList<String>();\n for( int w =0; w< words.size() ; w++ ){\n int n = nb;\n //System.out.println( words.get( w ) );\n if( ! ( _set.contains( words.get( w ) ) ) ){\n nb++;\n }\n if( nb != n )\n rest.add( words.get( w ) );\n\n }\n return rest;\n }", "title": "" }, { "docid": "8aafcca44c28227a2d570590eba0e3f2", "score": "0.5490158", "text": "private List<String> sortedWordsByLength() {\n ArrayList<String> sortedList = new ArrayList<>(words);\n Collections.sort(sortedList, new WordLenComparator());\n return sortedList;\n }", "title": "" }, { "docid": "1bb00b5cb4ced5c39f5cf33d6f47a9f8", "score": "0.5484984", "text": "public List<String> extractTags(String tags) {\n\n\n // probably more efficent ways to do this.\n //\n // whitespace = re.compile('\\s')\n\n /*tags = tags.replaceAll(\"\\\\s\", \"\");\n String[] tagArray = tags.split(\",\");\n\n // let's clean it up, removing the empty string and removing dups\n ArrayList<String> cleaned = new ArrayList<>();\n \n for (String tag : tagArray) {\n if (!tag.equals(\"\") && !cleaned.contains(tag)) {\n cleaned.add(tag);\n }\n }\n\n return cleaned;*/\n\n final String TAGS_PATTERN = \"\\\\s*(\\\\w+)\\\\s*,*\";\n Pattern pattern = Pattern.compile(TAGS_PATTERN);\n\n List<String> match_tags = new ArrayList<>();\n\n Matcher matcher = pattern.matcher(tags);\n\n while (matcher.find()) {\n match_tags.add(matcher.group(1));\n }\n\n return match_tags.stream().distinct().collect(Collectors.toList());\n }", "title": "" }, { "docid": "bd274ed89fd7d57214e663ed6ad67c21", "score": "0.54811656", "text": "ArrayList<String> removeDuplicates(ArrayList<String> parsedIntArgumentList) {\n if (parsedIntArgumentList == null) {\n return new ArrayList<String>();\n }\n HashSet<String> hs = new HashSet<>();\n hs.addAll(parsedIntArgumentList);\n parsedIntArgumentList.clear();\n parsedIntArgumentList.addAll(hs);\n return parsedIntArgumentList;\n }", "title": "" }, { "docid": "ecb0a034e7ed021f940aad0b39cb1eef", "score": "0.54711956", "text": "public static ArrayList<String> anagrams(String[] strs) {\n ArrayList<String> ret = new ArrayList<String>();\n if(strs.length == 0)return ret;\n HashMap<String, ArrayList<String>> map = new HashMap<String, ArrayList<String>>();\n \n for(String str:strs)\n {\n String tmpStr = sortStr(str);\n if(!map.containsKey(tmpStr))\n {\n ArrayList<String> arr = new ArrayList<String>();\n map.put(tmpStr,arr);\n }\n ArrayList<String> arr = map.get(tmpStr);\n arr.add(str);\n \n }\n for(ArrayList<String> arr : map.values())\n {\n if(arr.size()>1){\n \tret.addAll(arr);\n\n }\n }\n return ret;\n }", "title": "" }, { "docid": "9679df5b3017bb2ec0480aa39c263fe5", "score": "0.5468283", "text": "public static void main(String[] args) {\n ListUtils listUtil = new ListUtils();\n List<String> wordList = new ArrayList(Arrays.asList(\"hi\",\"hey\",\"hi\",\"yo\"));\n boolean found = listUtil.removeAll(wordList,\"hi\");\n System.out.println(\"Found: \" + found);\n System.out.println(\"Updated List: \" + wordList);\n }", "title": "" }, { "docid": "523534957833ff30387276d7d19dce9a", "score": "0.541851", "text": "private Collection<String> makeLowerCase(final Collection<String> words) {\n return words.stream().map(String::toLowerCase).collect(toImmutableList());\n }", "title": "" }, { "docid": "d68e9890492b263ae4405196950ada46", "score": "0.5400539", "text": "public static ArrayList<String> stripWordsByLine(String text) {\n StringTokenizer st = new StringTokenizer(text);\n ArrayList<String> words = new ArrayList<String>();\n while (st.hasMoreTokens()) {\n String temp = st.nextToken();\n String word = temp.replaceAll(\"\\\\W+\", \"\");\n words.add(word);\n }\n return words;\n }", "title": "" }, { "docid": "c01581fc5c3f912241006d9f2f2fe099", "score": "0.53976893", "text": "public static ArrayList deleteDuplicate(ArrayList info){\n String next;\n ArrayList updatedList=new ArrayList();\n for( Object s: info ){\n next=(String)s;\n if(!updatedList.contains(next))\n updatedList.add(next);\n }\n return updatedList;\n }", "title": "" }, { "docid": "e01387657295e76e3aaa59f0b85cfd9b", "score": "0.5387335", "text": "private static <E> List<E> removeDuplicateElements(List<E> list, int size) {\r\n\t\tList<E> result = new ArrayList<E>(size);\r\n\t\tSet<E> set = new HashSet<E>(size);\t\t// take advantage of hashed look-up\r\n\t\tfor (E item : list) {\r\n\t\t\tif (set.add(item)) {\r\n\t\t\t\tresult.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "cc90841e7bd46704137aed958da90b6c", "score": "0.53774256", "text": "public static Collection<String> sortWords(Collection<String> words) {\n List<String> sortedPossibleWords = new ArrayList<>(words);\n sortedPossibleWords.sort(new LengthComparator());\n return sortedPossibleWords;\n }", "title": "" }, { "docid": "2e3a8a85ee61515527d2f0b4e2bc3e39", "score": "0.5370228", "text": "private static Stream<String> uniqueWords(Stream<String> stream) {\n\t\treturn stream.distinct();\n\t}", "title": "" }, { "docid": "714bf41f1fd19b1bc241d77b4e268bd2", "score": "0.5366201", "text": "private ArrayList<String> lowerCase(ArrayList<String> words) {\n for (int i = 0 ; i < words.size() ; i++) {\n words.set(i, words.get(i).toLowerCase());\n }\n return words;\n }", "title": "" }, { "docid": "9f0b4583dd9f42950d16917388fa8f66", "score": "0.5345783", "text": "ArrayList<String> removeStopWords(ArrayList<String> sample){\n \n sample.removeAll(stopWords);\n \n return sample;\n }", "title": "" }, { "docid": "63cfc5f2d4b77dce159d37451057a7ca", "score": "0.53451926", "text": "public static <T> void removeDuplicates(List<T> list,\n BiPredicate<T, T> comp) {\n List<Integer> forRemoval = new ArrayList<>(list.size());\n for (int i = 0; i < list.size(); i ++) {\n for (int j = i + 1; j < list.size(); j ++) {\n if (comp.test(list.get(i), list.get(j))) {\n forRemoval.add(j);\n }\n }\n }\n\n Integer[] rem = (Integer[])forRemoval.stream().distinct().toArray();\n for (int i = rem.length - 1; i >= 0; i --) {\n list.remove(rem[i].intValue());\n }\n }", "title": "" }, { "docid": "9537e78d035c05bd00c81a98178b588e", "score": "0.53341395", "text": "public List<String> removeAllOccurences() {\n stringList.clear();\n return stringList;\n }", "title": "" }, { "docid": "fea3218f7858c5d45585686211abe48b", "score": "0.5328427", "text": "public List<List<String>> groupAnagrams(String[] strs) {\n HashMap<String, List<String>> hashMap = new HashMap<>();\n for (String s : strs) {\n char[] c = s.toCharArray();\n Arrays.sort(c);\n String temp = new String(c);\n List<String> l = hashMap.get(temp);\n if (l == null) {\n l = new ArrayList<>();\n l.add(s);\n hashMap.put(temp, l);\n } else {\n l.add(s);\n }\n }\n\n return new ArrayList<>(hashMap.values());\n }", "title": "" }, { "docid": "ec06af633e515cd5ce347a7fab8ec867", "score": "0.53227353", "text": "private boolean noDuplicates() {\n checkRep();\n List<String> wordList = new ArrayList<String>();\n for (Entry entry : entries) {\n wordList.add(entry.getWord());\n }\n Set<String> wordSet = new HashSet<String>(wordList); // Convert wordList to a Set to remove duplicate words\n return wordList.size() == wordSet.size();\n }", "title": "" }, { "docid": "dde956c73794488e9070976f243930e8", "score": "0.5314382", "text": "public static ArrayList<Integer> removeDuplicates(ArrayList<Integer> numList) {\n // Should I use numList.size() here?\n ArrayList<Integer> noDupes = new ArrayList<Integer>(numList.size());\n\n for (Integer element : numList) {\n boolean found = false;\n // Check if we found the element\n for (int i = 0; i < noDupes.size(); i++) {\n if (element == noDupes.get(i))\n found = true;\n }\n\n // If we didn't find it, add it since it's not a dupe\n if (!found)\n noDupes.add(element);\n }\n return noDupes;\n }", "title": "" }, { "docid": "d7b7e146dadcd46a75f753f4c340cdd3", "score": "0.5314287", "text": "@Override\r\n public List<Integer> removeDuplicates(List<Integer> inThisList) {\n List<Integer> result = new ArrayList<>();\r\n for(Integer x : inThisList){\r\n if(!result.contains(x)){\r\n result.add(x);\r\n }\r\n }\r\n //System.out.println(result);\r\n return result;\r\n }", "title": "" }, { "docid": "6458bb5f1ec875a1d60978778ddbdbbc", "score": "0.5299303", "text": "public List<List<String>> all_anagram_groups(String[] words) {\n\t\tMap<String,List<String>> map = new HashMap<String,List<String>>();\r\n\t\tfor(int i=0;i<words.length;i++) {\r\n\t\t\tchar[] word = words[i].toCharArray();\r\n\t\t\tArrays.sort(word);\r\n\t\t\tString sorted_word = new String(word);\r\n\t\t\tsorted_word = sorted_word.trim();\r\n\t\t\tif(map.containsKey(sorted_word)) {\r\n\t\t\t\tList<String> group = map.get(sorted_word);\r\n\t\t\t\tgroup.add(words[i]);\r\n\t\t\t\tmap.put(sorted_word, group);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tList<String> group = new LinkedList<String>();\r\n\t\t\t\tgroup.add(words[i]);\r\n\t\t\t\tmap.put(sorted_word, group);\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<List<String>> lists = new LinkedList<List<String>>();\r\n\t\tfor(Entry<String,List<String>> entry:map.entrySet()) {\r\n\t\t\tlists.add(entry.getValue());\r\n\t\t}\r\n\t\treturn lists;\r\n\t}", "title": "" }, { "docid": "fc33aecf1aea28a81b54a17fba2d0eb8", "score": "0.52780014", "text": "public static List<List<String>> groupAnagrams2(String[] strs){\n List<List<String>> result = new ArrayList<>();\n\n Map<String, ArrayList<String>> map = new HashMap<>();\n\n for(String s : strs){\n char[] sCharArray = s.toCharArray();\n\n Arrays.sort(sCharArray);\n String sSorted = new String(sCharArray);\n //add to map if not there\n if(!map.containsKey(sSorted)){\n map.put(sSorted, new ArrayList<String>());\n }\n map.get(sSorted).add(s);\n\n }\n\n map.forEach((k, v) ->{\n result.add(map.get(k));\n });\n\n return result;\n\n }", "title": "" }, { "docid": "22957ae51fd026c3f5461beb97c891b3", "score": "0.5252222", "text": "public List<List<String>> groupAnagrams(String[] strs) {\n Map<String,List<String>> hmap= new HashMap<>();\n for(String str:strs){\n String key= sortedString(str);\n //optimization to store the list\n if(!hmap.containsKey(key))\n hmap.put(key,new ArrayList<String>());\n hmap.get(key).add(str);\n }\n //hmap.values gives collection<String>.. It can be converted to arrayList\n return new ArrayList(hmap.values());\n }", "title": "" }, { "docid": "226014cc5b317d48eac65e14f4273ecc", "score": "0.52471936", "text": "public static void main(String[] args) {\n String str = \"aa\";\n ArrayList<String> permutation = permutation(str);\n ArrayList<String> collect = (ArrayList<String>) permutation.stream().distinct().collect(Collectors.toList());\n System.out.println(permutation.stream().distinct().collect(Collectors.toList()));\n // System.out.println(permutation);\n }", "title": "" }, { "docid": "259a22283dbf5a9a0571aff032966942", "score": "0.52415806", "text": "public List<List<String>> groupAnagrams(String[] strs) {\n HashMap <String,List<String>> map = new HashMap<>();\n for(String x:strs){\n char c[] = x.toCharArray();\n Arrays.sort(c);\n String temp = String.valueOf(c);\n if(!map.containsKey(temp))\n map.put(temp,new ArrayList<String>());\n map.get(temp).add(x);\n }\n return new ArrayList<List<String>>(map.values());\n \n }", "title": "" }, { "docid": "a0048b79017bd97231412e3fef02829d", "score": "0.5239086", "text": "public static LinkedList<String> similarWords(String inputWord) {\n LinkedList<String> similarList = new LinkedList<>();\n String newWord;\n \n for(char letter = 'a'; letter <= 'z'; letter++) { //iterate over alphabet\n \n //I use StringBuilder to append characters to inputWord to find similar words\n newWord = new StringBuilder().append(letter).append(inputWord).toString();\n if(table.get(newWord) != null) {\n similarList.add(newWord);\n }\n \n newWord = new StringBuilder().append(inputWord).append(letter).toString();\n if(table.get(newWord) != null) {\n similarList.add(newWord);\n }\n \n }\n //now trying to remove characters from front and end of word\n newWord = new StringBuilder().append(inputWord).substring(1).toString();\n if(table.get(newWord) != null) {\n similarList.add(newWord);\n }\n \n newWord = new StringBuilder().append(inputWord).substring(0, inputWord.length() - 1).toString();\n if(table.get(newWord) != null) {\n similarList.add(newWord);\n }\n \n for(int i = 0; i < inputWord.length() - 1; i++) {\n \n //swapping adjacent characters in word and seeing if they're in hashtable\n String beginning = new StringBuilder().append(inputWord).substring(0, i);\n String firstSwapped = new StringBuilder().append(inputWord).substring((i + 1), (i + 2));\n String secondSwapped = new StringBuilder().append(inputWord).substring(i, i + 1);\n String end = \"\";\n if((i + 2) < inputWord.length())\n end = new StringBuilder().append(inputWord).substring(i + 2);\n \n newWord = new StringBuilder().append(beginning).append(firstSwapped).append(secondSwapped).append(end).toString();\n if(table.get(newWord) != null) {\n similarList.add(newWord);\n }\n }\n \n return similarList; //returns list even if it's empty\n }", "title": "" }, { "docid": "3e5b27e870d30ce798df0e68bd6144e6", "score": "0.5216792", "text": "public static <T,U> void removeDupsFromLists( List<T> list1, List<U> list2 )\n {\n List<T> dups = new ArrayList<>();\n int ii = 0;\n for( Iterator<T> iter = list1.listIterator(); iter.hasNext(); )\n {\n T l = iter.next();\n if(!dups.contains(l))\n {\n dups.add(l); // Add unique entry\n ii++;\n }\n else\n { // It's a duplicate, remove\n iter.remove();\n list2.remove(ii);\n }\n }\n }", "title": "" }, { "docid": "1262d7d856cb23d76bf6013570a367ba", "score": "0.52094185", "text": "public List<String> findAllConcatenatedWordsInADict(String[] words) {\n\n Trie dict = new Trie();\n for (String word : words){\n dict.insert(word);\n }\n\n List<String> res = new ArrayList<>();\n //process in the order of length by the algorithm nature\n for (String word : words){\n if (dict.checkIfConcatenatedWords(word, 0, 0)) {\n res.add(word);\n }\n }\n return res;\n }", "title": "" }, { "docid": "fb2c210e2b2736a05cb3f245625940c4", "score": "0.52040166", "text": "public List<List<String>> convertListOfStringsIntoListOfBagOfWords(List<String> listOfStrings) {\n System.out.println(new Date().toString() + \": Converting list of strings in tokenized strings...\");\n List<List<String>> listOfBagOfWordsToReturn = new ArrayList<List<String>>();\n String[] tokens = null;\n\n for (String transaction : listOfStrings) {\n tokens = transaction.split(\" \");\n\n List<String> tokensContainedInTransaction = new ArrayList<>();\n for (String token : tokens) {\n if (token.equals(\"\") == false) {\n tokensContainedInTransaction.add(token);\n }\n }\n\n listOfBagOfWordsToReturn.add(tokensContainedInTransaction);\n }\n System.gc();\n\n System.out.println(new Date().toString() + \": Done converting list of strings in tokenized strings.\");\n\n return listOfBagOfWordsToReturn;\n }", "title": "" }, { "docid": "a96ba86b43bfe91d0fb670abfe24f5d3", "score": "0.51976067", "text": "public static void removeDuplicatesInPlace(ArrayList<Integer> numList) {\n return;\n }", "title": "" }, { "docid": "ceda055c2964d16911ec042c097fc6d6", "score": "0.51961166", "text": "public static String[] getAll() {\n Arrays.sort(words);\n return words;\n }", "title": "" }, { "docid": "0fda64ce0759f3455315771553c9f309", "score": "0.5168084", "text": "public ArrayList<Suspect> allPairsDeduplication() {\n\t//deduplicated ArrayList to be returned\n\tArrayList<Suspect> finals = new ArrayList<>();\n\t\n\tfor (int i = 0; i < suspects.size(); i++) {// runs for each item in list\n\t if (!finals.contains(suspects.get(i))) {//if item has not existed\n\t\tfinals.add(suspects.get(i));// adds item to the final list\n\t }\n\t}\n\treturn finals;\n }", "title": "" }, { "docid": "3b80077e8386d838ae353c0a5544de72", "score": "0.5149344", "text": "public static void main(String[] args) throws IOException {\n String text = new String(Files.readAllBytes(Paths.get(\"D:\\\\Harry.txt\")));\n //Clean text from symbols using ReGex\n String cleanedText = text.replaceAll(\"[\\\\P{L}]+\", \" \");\n //Put string into Array list\n List<String> harryList = new ArrayList<String>(Arrays.asList(cleanedText.split(\" \")));\n //Count how many times the word occurrence\n Set<String> uniqueWords = new HashSet<String>(harryList);\n Map<String, Integer> frequencyMap = new HashMap<>();\n System.out.println(\"Unique words and their occurrence number: \");\n for (String s : harryList) {\n Integer count = frequencyMap.get(s);\n if (count == null)\n count = 0;\n frequencyMap.put(s, count + 1);\n }\n for (Map.Entry<String, Integer> entry : frequencyMap.entrySet()) {\n System.out.println(entry.getKey() + \": \" + entry.getValue());\n }\n //Clear Array list from duplicates\n Set<String> set = new HashSet<>(harryList);\n harryList.clear();\n harryList.addAll(set);\n // Finding all unique proper names\n List<String> filteredList = harryList.stream()\n .filter(s -> Character.isUpperCase(s.charAt(0)))\n .collect(Collectors.toList());\n //Sort in alphabetic order\n Collections.sort(filteredList);\n System.out.println(\"Sorted in alphabetic order proper names:\");\n for (String temp : filteredList) {\n System.out.println(temp);\n }\n //Get Array list into array to get number of proper names\n String[] array = new String[filteredList.size()];\n filteredList.toArray(array);\n for(int i = 0; i< array.length; i++) {\n }\n System.out.println(\"The number of proper names is \" + array.length);\n\n }", "title": "" }, { "docid": "780490af3b21cf4c08202f44ac1ad1d7", "score": "0.50959116", "text": "private static List<String> findAnagrams(List<String> words) {\n boolean[] anagramValues = new boolean[words.size()];\n\n List<String> anagrams = new ArrayList<>();\n\n //Time complexity: O(n * n * m) = O(m*n^2) where n is the number of words & m is the word length\n\n //Space complexity: O(n) + O(m) + O(n) = O(n + m)\n\n // O(m)\n for(int i = 0; i < words.size() - 1; i++) {\n for(int j = i + 1; j < words.size(); j++) {\n if(areAnagrams(words.get(i),words.get(j))) {\n anagramValues[i] = true;\n anagramValues[j] = true;\n }\n }\n }\n\n //O(n)\n for(int i = 0; i < anagramValues.length; i++) {\n if(anagramValues[i]) {\n anagrams.add(words.get(i));\n }\n }\n return anagrams;\n }", "title": "" }, { "docid": "6ae659aa8b8d00528c78215cd127bffd", "score": "0.5094604", "text": "public ArrayList<Suspect> quickSortDeduplication() {\n\t// performs quick sort on the original list of Suspect objects\n\tquickSort(suspects, 0, suspects.size() - 1);\n\n\tif (suspects.size() < 2) {// if list has 0 or 1 item\n\t return suspects;\n\t}\n\t\n\t// deduplicated ArrayList to be returned\n\tArrayList<Suspect> finals = new ArrayList<Suspect>();\n\n\t// loops through original list of Suspect objects\n\tfor (int i = 0; i < suspects.size() - 1; i++) {\n\t // compares items at index i and (i+1)\n\t if (suspects.get(i).compareTo(suspects.get(i+1)) != 0) {\n\t\tfinals.add(suspects.get(i));// add item at index i to final list\n\t }\t\t\n\t}\n\tfinals.add(suspects.get(suspects.size() - 1));// adds last element to final list\n\t\n\treturn finals;\n }", "title": "" }, { "docid": "97223950ce7d962563a337ba81d7ca87", "score": "0.5085423", "text": "public static void main(String[] args)\n {\n ArrayList<String> values = new ArrayList<String>();\n String[] words = {\"bathtub\", \"fish\", \"computer\", \"cat\", \"foo\"};\n for (int i = 0; i < words.length; i ++)\n {\n values.add(words[i]);\n }\n removeLongStrings(values);\n System.out.println(\"Expected Result:\\t [fish, cat, foo]\");\n System.out.println(\"Your Result:\\t\\t \" + values);\n }", "title": "" }, { "docid": "a5ecdcc533876efda8b093e91a370524", "score": "0.50823987", "text": "java.util.List<com.sri.bolt.message.BoltMessages.StringAttribute> \n getAmbiguousWordsList();", "title": "" }, { "docid": "9085caa66f915a8acb15870e5cb5e6d5", "score": "0.50733924", "text": "public static void main(String[] args) {\n ArrayList<Integer> list=new ArrayList<>(Arrays.asList(2,2,2,3,3,2,2,2,5,6,6,7,7,7,8,8));\r\n // removeDuplicates(list,list.size()-2);\r\n sumofDuplicates(list);\r\n System.out.println(list);\r\n }", "title": "" }, { "docid": "8ec137cbc5d69e9dce858374a5121197", "score": "0.50712895", "text": "public List<List<String>> groupAnagrams(String[] strs) {\n if (strs == null || strs.length == 0)\n return new ArrayList<>();\n \n Map<String, List<String>> record = new HashMap<>();\n \n for (String str : strs) {\n char[] strArr = str.toCharArray();\n Arrays.sort(strArr);\n String key = new String(strArr);\n if (record.get(key) == null)\n record.put(key, new ArrayList<>());\n \n record.get(key).add(str);\n }\n \n List<List<String>> result = new ArrayList<>();\n for (Map.Entry<String, List<String>> entry: record.entrySet()) \n result.add(entry.getValue());\n \n return result;\n }", "title": "" }, { "docid": "1c4abea5f106bd26348a2c88daf2d5cd", "score": "0.50687194", "text": "public static void printUniqueWords(String[] words) {\n String name = \"\";\n for (int i = 0; i < words.length; i++) {\n\n\n for (int x = 0; x < words.length; x++) {\n int count = 0;\n if (words.equals(i) != words.equals(x)) {\n count++;\n }\n if (count == 1) {\n name += count;\n }\n\n System.out.println(name);\n }\n }\n }", "title": "" }, { "docid": "b40c559e845eb961d1471e59066a92ec", "score": "0.50647926", "text": "private List<String> getWordList(String fileURI) throws IOException, URISyntaxException {\n\t\tBufferedReader in = new BufferedReader(new FileReader(new File(new URI(fileURI))));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString s;\n\t\twhile ((s = in.readLine()) != null) {\n\t\t\tsb.append(s.toLowerCase());\n\t\t}\n\t\tin.close();\n\t\tString[] arr = sb.toString().split(\"\\\\W\");\n\t\tStrLen cmp = new StrLen();\n\t\tArrays.sort(arr, cmp);\n\t\tList<String> list = Arrays.asList(arr);\n\t\tList<String> resultList = new ArrayList<String>();\n\t\tfor (String ss : list) {\n\t\t\tif (ss.length() > 2) {\n\t\t\t\tresultList.add(ss);\n\t\t\t}\n\t\t}\n\t\treturn resultList;\n\t}", "title": "" }, { "docid": "731a6e071f3cb927a6350d7a31ebd4b0", "score": "0.5058935", "text": "public Collection<String> createNonDuplicatedFruitList(Collection<String> fruits){\n Set<String> nonDuplicatedSet = new LinkedHashSet<>();\n\n if (fruits != null && fruits.size() > 0){\n nonDuplicatedSet.addAll(fruits);\n }\n return nonDuplicatedSet;\n }", "title": "" }, { "docid": "e214f2ec9b8094689f41731ed268da48", "score": "0.5049495", "text": "public ArrayList<String> anagrams(String[] strs) {\n if(strs==null||strs.length==0) return new ArrayList<String>();\n Map<String,ArrayList<String>> dict=new HashMap<String,ArrayList<String>>();\n ArrayList<String> ret=new ArrayList<String>();\n for(int i=0;i<strs.length;i++){\n char[] temp=strs[i].toCharArray();\n Arrays.sort(temp);\n String s=new String(temp);\n ArrayList<String> cur;\n if(dict.get(s)==null) cur=new ArrayList<String>();\n else cur=dict.get(s);\n cur.add(strs[i]);\n dict.put(s,cur);\n }\n for(String cur:dict.keySet()){\n if(dict.get(cur).size()>1){\n for(int i=0;i<dict.get(cur).size();i++)\n ret.add(dict.get(cur).get(i));\n }\n }\n return ret;\n }", "title": "" }, { "docid": "1be9f5fe139738dacacee124c7badabf", "score": "0.50393105", "text": "public Vector removeRepeatedElements(Vector input)\n {\n Vector output = new Vector();\n for (int i=0;i<input.size();i++)\n {\n if (!output.contains(input.elementAt(i)))\n output.addElement(input.elementAt(i));\n }\n return output;\n }", "title": "" }, { "docid": "36029c47b72ff5f0e414606af429f7b3", "score": "0.5038776", "text": "public ArrayList<String> getAllWords()\n\t{\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\t\n\t\t//Add every item in the map to the array list\n\t\tfor (Map.Entry<String, Integer> entry : wordMap.entrySet())\n\t\t{\n\t\t\twords.add(entry.getKey());\n\t\t}\n\t\t\n\t\t\n\t\treturn words;\n\t}", "title": "" }, { "docid": "25bf5a2896998d23309a94acf2c2b074", "score": "0.50268203", "text": "public static void removeDuplicates(ArrayList<ArrayList<Integer>> c1) {\n\t\tSet<Integer> seen = new HashSet<Integer>();\n\n\t\tfor (List<Integer> l : c1) {\n\t\t\tfor (Iterator<Integer> iter = l.iterator(); iter.hasNext();) {\n\t\t\t\tif (!seen.add(iter.next())) {\n\t\t\t\t\titer.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// REMOVE EMPTY LISTS\n\t\tfor (int i = 0; i < c1.size(); i++) {\n\t\t\tif (c1.get(i).isEmpty()) {\n\t\t\t\tc1.remove(i);\n\t\t\t}\n\t\t}\n\n\t\t// GET CLUSTER INFORMATION\n\t\tclusterInfo(c1, outliers);\n\n\t}", "title": "" }, { "docid": "21e0dc9989f03e3e30de52958966449f", "score": "0.5002931", "text": "public ArrayList<String> words(String text);", "title": "" }, { "docid": "1e86a4efd15b22f544c88b2057796618", "score": "0.500243", "text": "public static List<String> processKeywords(List<String> list, Normalizer normalizer) {\n\t\tList<String> retValue = new ArrayList<String>();\n\t\tString string;\n\t\tString curr;\n\t\tString[] split;\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tstring = list.get(i).toLowerCase();\n\t\t\t\n\t\t\tif(normalizer != null)\n\t\t\t\tstring = normalizer.normalize(string);\t\t\n\t\t\t\n\t\t\tsplit = string.split(\"\\\\s\");\n\t\t\t\n\t\t\tfor (int j = 0; j < split.length; j++) {\n\t\t\t\tcurr = split[j].trim();\n\t\t\t\tif(curr.isEmpty()) continue;\n\t\t\t\tif(EnglishUtility.isStopword(curr)) continue;\n\t\t\t\tif(!retValue.contains(curr))\n\t\t\t\t\tretValue.add(curr);\n\t\t\t}\n\t\t}\n\t\treturn retValue;\n\t}", "title": "" }, { "docid": "511b092b35a7b483e1db1811d82f5b33", "score": "0.49793932", "text": "public static void main(String[] args) {\n\t\tList<String> lt=new ArrayList<>(Arrays.asList(\"pooja\",\"manish\",\"papa\",\"Mummy\",\"pooja\",\"papa\"));\n\t\tList<String> lt1=new ArrayList<>();\n\t\t//Set<String> st=new HashSet<>();\n\t\t\n\t\tfor(String Temp:lt)\n\t\t{\n\t\t\tif(!lt1.contains(Temp))\n\t\t\t{\n\t\t\t\tlt1.add(Temp);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(lt1);\n\t\t\n\n\t}", "title": "" }, { "docid": "6eb70a29e13326f11f5462db2cf84764", "score": "0.49777982", "text": "public List<List<String>> groupAnagrams(String[] strs) {\n \tHashMap<String, ArrayList<String>> set = new HashMap<String, ArrayList<String>>();\n \tList<List<String>> ret = new ArrayList<List<String>>();\n \t\n \tint size = strs.length;\n \tif(size == 0)\n \t\treturn ret;\n \t\n \tfor(int i = 0; i < size; i++) {\n \t\t//check if the string is anagram then add the index to its value\n \t\tchar[] s1 = strs[i].toCharArray();\n Arrays.sort(s1);\n String s2 = new String(s1);\n \t\tif(set.containsKey(s2)) {\n \t\t\t//get the value \n \t\t\tArrayList<String> temp = set.get(s2);\n \t\t\ttemp.add(s2);\n \t\t\t//put the array back into the hashset\n \t\t\tset.put(s2, temp);\n \t\t} else {\n \t\t\tArrayList<String> arr = new ArrayList<String>();\n \t\t\tarr.add(s2);\n \t\t\tset.put(s2, arr);\n \t\t}\n \t}\n \t\n \t//Now get all the elements from the hashset and put it into the arrayList\n \tfor (Map.Entry<String, ArrayList<String>> entry : set.entrySet()) {\n \t\tret.add(entry.getValue());\n\t\t}\n \treturn ret;\n }", "title": "" }, { "docid": "94cef8ab34470b32ae8eb6255b6259a7", "score": "0.49766266", "text": "public static ArrayList<String> sortList(ArrayList<String> listOfNames){\n Collections.sort(listOfNames);\n return listOfNames;\n }", "title": "" }, { "docid": "39d60ad5b52fde70390bce28165eb8aa", "score": "0.49671727", "text": "private ArrayList<String> getSimiliarWords(String str, HashSet<String> dict) {\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (String s : dict) {\n\t\t\tif (difference(s, str) == 1) {\n\t\t\t\tresult.add(s);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "c3d08d07c7f997ee14872ce2d3ee0405", "score": "0.49578384", "text": "public void removeDuplicates() {\r\n Set Filter = new HashSet<>(Entries);\r\n Entries.clear();\r\n Entries.addAll(Filter);\r\n }", "title": "" }, { "docid": "60332bb7dafbb8200624b02b5ea84578", "score": "0.4951648", "text": "public Set<String> whiteSpace(String word) {\n Set<String> currentList = new TreeSet<String>();\n\n for (int i = 1; i < word.length(); i++) {\n String word1 = word.substring(0, i);\n String word2 = word.substring(i);\n\n if (this.hasWord(word1) && this.hasWord(word2)) {\n StringBuilder sb = new StringBuilder();\n sb.append(word1);\n sb.append(' ');\n sb.append(word2);\n currentList.add(sb.toString());\n }\n }\n return currentList;\n }", "title": "" }, { "docid": "45ec559d3b97c0bbc22fd12d9a3ad15b", "score": "0.4947594", "text": "public void clearArrayList() {\n wordList.clear();\n }", "title": "" }, { "docid": "66bc99eb9df6a77f3d70604980941795", "score": "0.49471465", "text": "public static List<String> getRepeat(List<String> list) {\n List<String> rtn = new ArrayList<>();\n Set<String> idSet = new HashSet<>();\n\n for (String id : list) {\n if (idSet.contains(id)) {\n rtn.add(id);\n } else {\n idSet.add(id);\n }\n }\n\n return rtn;\n }", "title": "" }, { "docid": "4efcee0a799c37ac86922aa7e9cebebf", "score": "0.492936", "text": "public static ArrayList<String> combinations(String s){\n ArrayList<String> words = new ArrayList<String>();\n help(s, words, \"\", 0);\n Collections.sort(words);\n return words;\n }", "title": "" }, { "docid": "7b536f37836c5fb2f970491cee833e9e", "score": "0.49236992", "text": "public void sortList(List<String> list) {\r\n\t\tCollections.sort(list, String.CASE_INSENSITIVE_ORDER);\r\n\r\n\t}", "title": "" }, { "docid": "e34258975597bc2d7e233beae85e60b2", "score": "0.49199352", "text": "public static void main(String[] args) {\n\n String st = \"Java is a programming Language. Java is also an Island of Indonesia. Java is widely used language\";\nString[] word =st.split(\" \");\n List<String> words = Arrays.asList(word);\n Set<String> duplicates = new HashSet<>(words);\n double total = 0.0;\n int divisor = word.length;\n for (String s:duplicates){\n System.out.println(s + \" number of occurences \" + Collections.frequency(words, s));\n\n }\n for ( String m:word){\n total += m.length();\n }\n System.out.println(\"the average length of the words are: \" + (total/divisor));\n }", "title": "" }, { "docid": "c407c709f7c60de793012648edf67e40", "score": "0.49158335", "text": "public List<QuestionEntity> removeDuplicateQuestions(List<QuestionEntity> questions) {\n\t\tMap<Long, QuestionEntity> questionsMap = new HashMap<Long, QuestionEntity>();\n\t\tfor (QuestionEntity ques : questions) {\n\t\t\tif (questionsMap.containsKey(ques.getQuesId()) == false) {\n\t\t\t\tquestionsMap.put(ques.getQuesId(), ques);\n\t\t\t}\n\t\t}\n\t\tList<QuestionEntity> distinctQuestions = new ArrayList<QuestionEntity>(questionsMap.values());\n\t\treturn distinctQuestions;\n\t}", "title": "" }, { "docid": "d5ed4feb3b85c3acc023e266673e04fd", "score": "0.4913453", "text": "public List<List<String>> groupAnagrams2(String[] strs) {\n Map<String, List<String>> result = new HashMap<String, List<String>>();\n for (String s : strs) {\n int[] key = new int[26];\n Arrays.fill(key, 0);\n char[] keyChar = s.toCharArray();\n for (char c : keyChar) {\n key[c - 'a']++;\n }\n StringBuilder builder = new StringBuilder();\n Arrays.stream(key).forEach(val -> {\n builder.append(\"#\");\n builder.append(val);\n });\n\n String k = builder.toString();\n // return new sorted string\n if (result.get(k) == null) {\n result.put(k, new ArrayList<>());\n }\n result.get(k).add(s);\n }\n return new ArrayList<>(result.values());\n }", "title": "" }, { "docid": "0e12ad8a434c8ab31a440c7a605a332c", "score": "0.49020308", "text": "public static String removeDuplicate(String[] reqString){\n // Remove duplicates...\n LinkedHashSet <String> tagSet = new LinkedHashSet <>( Arrays.asList(reqString));\n StringBuffer stringBuffer = new StringBuffer();\n int tempInd = 0;\n\n for (String s : tagSet){\n if (s != null){\n stringBuffer.append( s.trim() );\n stringBuffer.append( \", \" );\n }\n tempInd++;\n }\n\n return stringBuffer.toString();\n }", "title": "" }, { "docid": "3037ff8eca71debce5cf5d73152ffcbb", "score": "0.49014032", "text": "static List<Integer> removeDuplicates(List<Integer> a) {\n\t\t\t//int i = a.getHead();\n\t\t\tif(a.isEmpty() || a.getTail().isEmpty()) {\n\t\t\t\treturn a;\n\t\t\t}else if(a.getHead() == a.getTail().getHead()) {\n\t\t\t\treturn removeDuplicates(a.getTail());\n\t\t\t}else {\n\t\t\t\treturn new List(a.getHead(), removeDuplicates(a.getTail()));\n\t\t\t}\n\t\t\t//return new List<Integer>(); //replace this by your code\n\t}", "title": "" }, { "docid": "41552f4f5f0a0c4b29d09e0aa9d68b09", "score": "0.48961893", "text": "public static List<List<String>> groupAnagrams(String[] strs) {\n List<List<String>> list = new LinkedList<>();\n Map<String, List<String>> map = new HashMap<>();\n for (String str: strs) {\n char[] array = str.toCharArray();\n Arrays.sort(array);\n String code = new String(array);\n\n if (!map.containsKey(code)) {\n map.put(code, new LinkedList<>());\n }\n\n map.get(code).add(str);\n }\n\n for (List<String> l: map.values()){\n list.add(l);\n }\n\n return list;\n }", "title": "" }, { "docid": "29b632a1caba7820cdf5a853eb68b48b", "score": "0.48870528", "text": "List<String> getWordListFrom(String source);", "title": "" }, { "docid": "3e63d30864c9239fa109983889e790b5", "score": "0.48771396", "text": "public static List<Site> determineUniqueSiteList ( List<TS> tslist ) {\n\t\tSite site;\n\t\tList<Site> siteList = new ArrayList<Site>();\n\t\tfor ( TS ts : tslist ) {\n\t\t\tsite = ts.getSite();\n\t\t\tString siteId = site.getSiteId();\n\t\t\tboolean found = false;\n\t\t\tfor ( Site s : siteList ) {\n\t\t\t\tif ( s.getSiteId().equals(siteId) ) {\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( !found ) {\n\t\t\t\tsiteList.add(site);\n\t\t\t}\n\t\t}\n\t\treturn siteList;\n\t}", "title": "" }, { "docid": "c94bdca6a4db7a255adafc09178e9cb1", "score": "0.4876127", "text": "public void removeDuplicatesSortedList(){\n Node current = head;\n Node nextNode;\n while (current.next !=null){\n nextNode = current.next;\n if(current.data == nextNode.data){\n current.next = nextNode.next; //skip the next node\n }else {\n current = current.next;\n }\n }\n }", "title": "" } ]
000e97bf5454a686aab72ee7d6c09091
Example methods for driving with mechanum wheels They aren't used because they cannot easily be implemented with the joysticks
[ { "docid": "ab05a0887cef1b561d931fb3e608d911", "score": "0.0", "text": "public void DriveStraight(double speed) {\n\t\tfrontLeft.set(speed);\n\t\tfrontRight.set(speed);\n\t\tbackLeft.set(speed);\n\t\tbackRight.set(-speed);\n\t}", "title": "" } ]
[ { "docid": "279c005e85908b0376119e3cdd7ba97f", "score": "0.7769392", "text": "public abstract void wheels();", "title": "" }, { "docid": "15e875948b26c2e177abfabd84f76d8e", "score": "0.6738087", "text": "@Override\n\tpublic void testPeriodic() {\n\t\t// Tuning wheels\n\t\t\n\t\tsetPIDs(pidDir,false);\n\t\tencoder[0].reset();\n\t\tencoder[1].reset();\n\t\tencoder[2].reset();\n\t\tencoder[3].reset();\n\t\tint wheelTune = 0;\n\t\tif (controlDrive.getRawButton(1)) wheelTune = 0;\n\t\tif (controlDrive.getRawButton(2)) wheelTune = 1;\n\t\tif (controlDrive.getRawButton(3)) wheelTune = 2;\n\t\tif (controlDrive.getRawButton(4)) wheelTune = 3;\n\t\t\n\t\tswitch (wheelTune) {\n\t\tcase 0:\n\t\t\tif (controlDrive.getRawButton(5)) motorDir[0].set(0.3);\n\t\t\telse if (controlDrive.getRawButton(6)) motorDir[0].set(-0.3); else motorDir[0].set(0);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tif (controlDrive.getRawButton(5)) motorDir[1].set(0.3);\n\t\t\telse if (controlDrive.getRawButton(6)) motorDir[1].set(-0.3); else motorDir[1].set(0);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tif (controlDrive.getRawButton(5)) motorDir[2].set(0.3);\n\t\t\telse if (controlDrive.getRawButton(6)) motorDir[2].set(-0.3); else motorDir[2].set(0);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tif (controlDrive.getRawButton(5)) motorDir[3].set(0.3);\n\t\t\telse if (controlDrive.getRawButton(6)) motorDir[3].set(-0.3); else motorDir[3].set(0);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "1b7eaa4db8153081af6ec457fde9881d", "score": "0.6409735", "text": "public static void main(String[] args) {\n//\t\t\n//\t\t// first motor backwards\n//\t\tmotor1.backward();\t\n//\t\tButton.waitForAnyPress();\n//\t\tmotor1.stop();\n//\t\t\n//\t\t// second motor backwards\n//\t\tmotor2.backward();\n//\t\tButton.waitForAnyPress();\n//\t\tmotor1.stop();\n//\t\t\n//\t\t// turn on axis\n//\t\tmotor1.forward();\n//\t\tmotor2.backward();\n//\t\tButton.waitForAnyPress();\n//\t\tmotor1.stop();\n//\t\tmotor2.stop();\n//\t\t\n//\t\t// turn on axis (other direction)\n//\t\tmotor1.backward();\n//\t\tmotor2.forward();\n//\t\tButton.waitForAnyPress();\n//\t\tmotor1.stop();\n//\t\tmotor2.stop();\n//\t\t\n//\t\t// both motors forwards\n//\t\tmotor1.forward();\n//\t\tmotor2.forward();\n//\t\tButton.waitForAnyPress();\n//\t\tmotor1.stop();\n//\t\tmotor2.stop();\n//\t\t\n//\t\t// both motors backwards\n//\t\tmotor1.backward();\n//\t\tmotor2.backward();\n//\t\tButton.waitForAnyPress();\n//\t\tmotor1.stop();\n//\t\tmotor2.stop();\n\t\t\n\t\tNXTRegulatedMotor motorLeft = Motor.A;\n\t\tNXTRegulatedMotor motorRight = Motor.B;\n\t\tNXTRegulatedMotor motorLateral = Motor.C;\n\t\t\n\t\tDifferentialPilot pilot = new DifferentialPilot(TireDiameterMm, TrackWidthMm, motorLeft, motorRight, false);\n\t\tpilot.setTravelSpeed(pilot.getMaxTravelSpeed() * 0.5);\n\t\tmotorLateral.setSpeed(motorLateral.getMaxSpeed());\n\n\t\tmotorLateral.backward();\n\t\tmotorRight.setSpeed(200);\n\t\tmotorRight.backward();\n\t\t//motorLeft.setSpeed(300);\n\t\t//motorLeft.forward();\n\t\tButton.waitForAnyPress();\n\t\tmotorLateral.stop();\n\t\tmotorRight.stop();\n\t\t//motorLeft.stop();\n\t\t\n\t\tmotorLateral.forward();\n\t\tmotorLeft.setSpeed(200);\n\t\tmotorLeft.backward();\n\t\t//motorRight.setSpeed(300);\n\t\t//motorRight.forward();\n\t\tButton.waitForAnyPress();\n\t\tmotorLateral.stop();\n\t\tmotorLeft.stop();\n\t\t//motorRight.stop();\n\t}", "title": "" }, { "docid": "12c6e0c463253ce791513d6948bf17cb", "score": "0.6383298", "text": "private void controlIntakeWheel(){\n if (gamepad1.y) {\n intakeWheelServo.setPower(-0.8); // reverse\n } else if (gamepad1.b || gamepad2.right_bumper) {\n //we want the intake wheel to help move the minerals to the back during transfer\n intakeWheelServo.setPower(0.8); // forward\n } else {\n intakeWheelServo.setPower(0.0);\n }\n }", "title": "" }, { "docid": "d325c0c1792f5440b1f4a78bfbec5a98", "score": "0.63495064", "text": "@Override //signal to the compile that I overide a method\n public int wheels () {\n return 2;\n }", "title": "" }, { "docid": "bf4c13271e17eec40d3de8bce3e61d99", "score": "0.6178607", "text": "private void driverPowerWheels(double forward, double right, double clockwise) {\n\n currentForward = calculateNextSpeed(forward, currentForward, MIN_FORWARD);\n currentRight = calculateNextSpeed(right, currentRight, MIN_RIGHT);\n currentClockwise = calculateNextSpeed(clockwise, currentClockwise, MIN_CLOCKWISE);\n wheels.powerMotors(currentForward, currentRight, currentClockwise);\n }", "title": "" }, { "docid": "fa6330d8023f18a3982077ab7a58b2a5", "score": "0.61772305", "text": "public static void main(String[] args) throws Exception {\nRobot r = new Robot();\nr.penDown();\nr.setSpeed(10);\nr.move(400);\n\n // 3. Put the robot's pen down\n\n\n // 6. Make the robot move as fast as possible\n\n\n // 5. Do everything below here 4 times\n\n\n // 2. Move your robot 200 pixels\n\n\n // 4. Turn the robot 90 degrees to the right (90 degrees)\n\n\n }", "title": "" }, { "docid": "dd6ffff41c7275ef63a759ea619795b6", "score": "0.6158214", "text": "public SixWheelDriveTrainSubsystem() {\n left1 = new WPI_TalonSRX(Constants.MOTOR_LEFT1_ID);\n left2 = new WPI_TalonSRX(Constants.MOTOR_LEFT2_ID);\n right1 = new WPI_TalonSRX(Constants.MOTOR_RIGHT1_ID);\n right2 = new WPI_TalonSRX(Constants.MOTOR_RIGHT2_ID);\n\n leftEncoder = new Encoder(Constants.DRIVE_ENCODER_LEFT_ID[0], Constants.DRIVE_ENCODER_LEFT_ID[1], true);\n rightEncoder = new Encoder(Constants.DRIVE_ENCODER_RIGHT_ID[0], Constants.DRIVE_ENCODER_RIGHT_ID[1]);\n\n // navX = new AHRS(I2C.Port.kMXP);\n gyro = new PigeonIMU(Constants.PIGEON_CAN_ID);\n resetGyro();\n gearSolenoid = new Solenoid(Constants.PCM_CAN_ID, Constants.DRIVE_TRAIN_GEARSWITCH_ID);\n left2.set(ControlMode.Follower, Constants.MOTOR_LEFT1_ID);\n right2.set(ControlMode.Follower, Constants.MOTOR_RIGHT1_ID);\n \n driveOdometry = new DifferentialDriveOdometry(Rotation2d.fromDegrees(getAngle()));\n \n // right1.setInverted(true);\n // right2.setInverted(true); \n left1.setInverted(true);\n left2.setInverted(true);\n\n leftEncoder.setDistancePerPulse(Constants.DRIVE_ENCODER_DISTANCE_PER_PULSE);\n rightEncoder.setDistancePerPulse(Constants.DRIVE_ENCODER_DISTANCE_PER_PULSE);\n\n left1.setNeutralMode(NeutralMode.Brake);\n left2.setNeutralMode(NeutralMode.Brake);\n right1.setNeutralMode(NeutralMode.Brake);\n right2.setNeutralMode(NeutralMode.Brake);\n\n Robot.getDiagnostics().addDiagnosable(new DiagEncoder(\"Left Drive Encoder\", 200, leftEncoder));\n Robot.getDiagnostics().addDiagnosable(new DiagEncoder(\"Right Drive Encoder\", 200, rightEncoder));\n // Robot.getDiagnostics().addDiagnosable(new DiagNavX(\"NavX Gyro\", 90, navX));\n Robot.getDiagnostics().addDiagnosable(new DiagPigeon(\"Pigeon\", 90, gyro));\n }", "title": "" }, { "docid": "65e892fc85b8b63d5fc1bfbf499f460c", "score": "0.6148505", "text": "@Override\n public void loop() {\n double leftPower;\n double rightPower;\n\n // Choose to drive using either Tank Mode, or POV Mode\n // Comment out the method that's not used. The default below is POV.\n\n // POV Mode uses left stick to go forward, and right stick to turn.\n // - This uses basic math to combine motions and is easier to drive straight.\n leftPower = gamepad1.left_stick_y;\n rightPower = -gamepad1.right_stick_y;\n\n // Send calculated power to wheels\n leftFrontMotor.setPower(leftPower);\n rightFrontMotor.setPower(rightPower);\n leftBackMotor.setPower(leftPower);\n rightBackMotor.setPower(rightPower);\n try{\n record();\n }\n catch (IOException ioe)\n {\n System.out.println(\"Exception!!!\");\n ioe.printStackTrace();\n }\n\n // Show the elapsed game time and wheel power.\n //telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n //telemetry.addData(\"Motors\", \"left (%.2f), right (%.2f)\", leftPower, rightPower);\n }", "title": "" }, { "docid": "848cc211c788829de1538ba2abd82412", "score": "0.61467075", "text": "private void wheels() {\r\n\t\tgraphics.setColor(new Color(0, 0, 0));\r\n\t\tgraphics.fillOval((int) (this.point.x - this.size * 2.5 / 8), this.point.y + this.size * 17 / 4, this.size / 4,\r\n\t\t\t\tthis.size / 4);\r\n\t\tgraphics.fillOval((int) (this.point.x + this.size * 8.6 / 8), this.point.y + this.size * 17 / 4, this.size / 4,\r\n\t\t\t\tthis.size / 4);\r\n\t\tgraphics.fillOval((int) (this.point.x - this.size * 0.5 / 8), this.point.y + this.size * 4, this.size / 4,\r\n\t\t\t\tthis.size / 4);\r\n\t\tgraphics.fillOval((int) (this.point.x + this.size * 6.5 / 8), this.point.y + this.size * 4, this.size / 4,\r\n\t\t\t\tthis.size / 4);\r\n\t}", "title": "" }, { "docid": "7cdb38c1cd553e219240df2b5f7de4ab", "score": "0.6106186", "text": "public void Drive() {\n\n //Starts the auto line up code\n if (xbController.getBButton()) {\n HumanOperator = false;\n RobotMap.limelight.set(true);\n } else {\n HumanOperator = true;\n RobotMap.limelight.set(false);\n }\n\n //Human operator stuff, duh\n if (HumanOperator) {\n driveTrain.arcadeDrive(xbController.getDriveSpeed(), xbController.getTurnSpeed() * turnMultiplier);\n //System.out.println(\"updated drive base\");\n\n\n \n if (xbController.getBumper(Hand.kLeft) && xbController.getBumper(Hand.kRight) && !alreadyActuated) {\n actuateSolenoid();\n alreadyActuated = true;\n } else if (alreadyActuated && (!xbController.getBumper(Hand.kLeft) || !xbController.getBumper(Hand.kRight))) {\n alreadyActuated = false;\n }\n \n\n\n if (xbController.getAButtonPressed()) {\n if (RobotMap.compressor.enabled()) {\n RobotMap.compressor.stop();\n } else {\n RobotMap.compressor.start();\n RobotMap.compressor.setClosedLoopControl(true);\n }\n }\n\n\n\n \n }\n else {\n\n /**\n * Code for the auto aiming capabilities with our budget limelight\n */\n if (xbController.getBButton()) {\n System.out.println(\"Auto Aim\");\n double yaw = piData.getYaw();\n System.out.println(\"yaw: \" + yaw);\n \n if (yaw > 10) {\n driveTrain.arcadeDrive(0, .4 * ShootDirection);\n System.out.println(\"Turning: \" + .4 * ShootDirection);\n } else if (yaw > 4) {\n driveTrain.arcadeDrive(0, .3 * ShootDirection);\n System.out.println(\"Turning: \" + .3 * ShootDirection);\n } else if (yaw < -10) {\n driveTrain.arcadeDrive(0, -.4 * ShootDirection);\n System.out.println(\"Turning: \" + -.4 * ShootDirection);\n } else if (yaw < -4) {\n driveTrain.arcadeDrive(0, -.3);\n System.out.println(\"Turning: \" + -.3 * ShootDirection);\n } else {\n driveTrain.arcadeDrive(0,0);\n System.out.println(\"Stopped\");\n SmartDashboard.putBoolean(\"Lined Up\", true);\n }\n \n \n }\n else {\n HumanOperator = true;\n }\n }\n\n }", "title": "" }, { "docid": "ae1878dee996bcd061300e489d1e71f7", "score": "0.6088313", "text": "public void trigMecRun() {\n // start of trig version for mecanum wheel drive\n\n motorFL.setDirection(DcMotorSimple.Direction.REVERSE);\n motorBL.setDirection(DcMotorSimple.Direction.REVERSE);\n\n r = Math.hypot(gamepad1.left_stick_x, gamepad1.left_stick_y);\n double robotAngle = Math.atan2(gamepad1.left_stick_y, gamepad1.left_stick_x) - Math.PI / 4;\n\n //test code\n if (gamepad1.left_stick_y > 0.8) {\n rightX = gamepad1.right_stick_x * -0.5;\n } else {\n rightX = gamepad1.right_stick_x * -0.25;\n }\n\n //used to counteract the rotation from strafing\n if (Math.abs(gamepad1.left_stick_y) < 0.1 && gamepad1.left_stick_x > 0) {\n rightX -= strafeCounter * Math.abs(gamepad1.left_stick_x);\n } else if (Math.abs(gamepad1.left_stick_y) < 0.1 && gamepad1.left_stick_x < 0) {\n rightX += strafeCounter * Math.abs(gamepad1.left_stick_x);\n\n }\n\n //sets the power for each of the motor variables\n velocityConst = 1.414213565;\n vFL = (r * Math.sin(robotAngle) + rightX) * velocityConst;\n vFR = (r * Math.cos(robotAngle) - rightX) * velocityConst;\n vBL = (r * Math.cos(robotAngle) + rightX) * velocityConst;\n vBR = (r * Math.sin(robotAngle) - rightX) * velocityConst;\n\n restrictPower(1);\n\n motorFL.setPower(vFL); //* -1\n motorFR.setPower(vFR);\n motorBL.setPower(vBL); // *-1\n motorBR.setPower(vBR);\n //end of trig version\n\n //telemetry adding the status of run time to the screen of the android phones\n telemetry.addData(\"Status\", \"Run Time: \" + runtime.toString());\n telemetry.addData(\"vFL\", \"vFL: \" + vFL);\n telemetry.addData(\"VFR\", \"vFR: \" + vFR);\n telemetry.addData(\"vBL\", \"vBl: \" + vBL);\n telemetry.addData(\"vBR\", \"vBR: \" + vBR);\n telemetry.addData(\"Strafe Counter\", \"SC: \" + strafeCounter);\n telemetry.update();\n }", "title": "" }, { "docid": "c76fd5d691fa49dcd1894c446f762c28", "score": "0.6085258", "text": "public void setInputs(double fwd, double str, double rcw, double gyro_angle) {\n\n // Here, we need to scale back the twist motion. If unchecked, a full twist of 1.0\n // would lead to full speed on the wheels -- which for a normal robot, would be\n // on the order of 1000 degrees per second.\n rcw = rcw * m_spin_scale;\n\n // Convert the inputs for use in field-centric orienation. If \n // field-centric orientation is not used, set the gyro angle to zero.\n double g = m_gyro_angle * Math.PI / 180.0;\n double temp = fwd * Math.cos(g) + str * Math.sin(g);\n str = -fwd * Math.sin(g) + str * Math.cos(g);\n fwd = temp;\n\n double a = str - rcw * m_lr;\n double b = str + rcw * m_lr;\n double c = fwd - rcw * m_wr;\n double d = fwd + rcw * m_wr;\n\n // Wheel Speeds...\n m_wsFR = Math.sqrt(b*b + c*c); \n m_wsFL = Math.sqrt(b*b + d*d);\n m_wsBL = Math.sqrt(a*a + d*d);\n m_wsBR = Math.sqrt(a*a + c*c);\n\n // Wheel Angles...\n m_waFR = Math.atan2(b, c) * 180.0 / Math.PI;\n m_waFL = Math.atan2(b, d) * 180.0 / Math.PI;\n m_waBL = Math.atan2(a, d) * 180.0 / Math.PI;\n m_waBR = Math.atan2(a, c) * 180.0 / Math.PI;\n\n // Max Wheel Speed\n double maxws = Math.max(m_wsFL, m_wsFR);\n maxws = Math.max(maxws, m_wsBL);\n maxws = Math.max(maxws, m_wsBR);\n\n // Don't allow any wheels to go over the max. If they\n // do, then scale back all by the same factor.\n if (maxws > 1.0) {\n m_wsFR = m_wsFR / maxws;\n m_wsFL = m_wsFL / maxws;\n m_wsBL = m_wsBL / maxws;\n m_wsBR = m_wsBR / maxws;\n }\n\n m_wsFR = m_wsFR * RobotMap.MaxSpeed; \n m_wsFL = m_wsFL * RobotMap.MaxSpeed; \n m_wsBL = m_wsBL * RobotMap.MaxSpeed; \n m_wsBR = m_wsBR * RobotMap.MaxSpeed; \n }", "title": "" }, { "docid": "7de776b510bd7d4c6a42a59d0d4ae32d", "score": "0.60791093", "text": "public void xboxDrivetrainControl()\n {\n //Rotation values are grabbed from the triggers of the driver controller. Left rotates left, right rotates right\n double rotation = 0.0;\n if (RobotMap.driverController.getTriggerAxis(Hand.kLeft) >= RobotMap.TRIGGER_DEADBAND)\n rotation = -RobotMap.driverController.getTriggerAxis(Hand.kLeft);\n else if (RobotMap.driverController.getTriggerAxis(Hand.kRight) >= RobotMap.TRIGGER_DEADBAND)\n rotation = RobotMap.driverController.getTriggerAxis(Hand.kRight);\n\n RobotMap.drivetrain.driveCartesian(\n RobotMap.driverController.getY(Hand.kRight), \n RobotMap.driverController.getX(Hand.kLeft), \n rotation);\n }", "title": "" }, { "docid": "ea546c42c15e28d4fe1aa58cd27e0983", "score": "0.6060767", "text": "public void curvatureDrive(double linearPercent, double curvaturePercent, boolean isQuickTurn) {\n double quickStopAccumulator = 0.0;\n double angularPower;\n boolean overPower;\n linearPercent = Util.limit(linearPercent,1);\n linearPercent = Util.deadband(linearPercent, 0.1);\n\n curvaturePercent = Util.deadband(curvaturePercent, 0.1);\n\n if (isQuickTurn) {\n if (Math.abs(linearPercent) < Constants.TestDrive.kQuickStopThreshold) {\n quickStopAccumulator = (1 - Constants.TestDrive.kQuickStopAlpha) * quickStopAccumulator +\n Constants.TestDrive.kQuickStopAlpha * curvaturePercent * 2.0;\n }\n\n overPower = true;\n angularPower = curvaturePercent;\n } else {\n overPower = false;\n angularPower = Math.abs(linearPercent) * curvaturePercent - quickStopAccumulator;\n\n if(quickStopAccumulator > 1){\n quickStopAccumulator -= 1;\n }else if(quickStopAccumulator < -1){\n quickStopAccumulator += 1;\n }else{\n quickStopAccumulator = 0;\n }\n }\n\n double leftMotorOutput = linearPercent + angularPower;\n double rightMotorOutput = linearPercent - angularPower;\n\n // If rotation is overpowered, reduce both outputs to within acceptable range\n if (overPower) {\n if(leftMotorOutput > 1.0){\n rightMotorOutput -= leftMotorOutput - 1.0;\n leftMotorOutput = 1.0;\n }else if(rightMotorOutput > 1.0) {\n leftMotorOutput -= rightMotorOutput - 1.0;\n rightMotorOutput = 1.0;\n }else if(leftMotorOutput < -1.0) {\n rightMotorOutput -= leftMotorOutput + 1.0;\n leftMotorOutput = -1.0;\n }else if(rightMotorOutput < -1.0){\n leftMotorOutput -= rightMotorOutput + 1.0;\n rightMotorOutput = -1.0;\n }\n }\n\n // Normalize the wheel speeds (keep them between -1 and 1)\n double maxMagnitude = Math.max(Math.abs(leftMotorOutput), Math.abs(rightMotorOutput));\n if (maxMagnitude > 1.0) {\n leftMotorOutput /= maxMagnitude;\n rightMotorOutput /= maxMagnitude;\n }\n \n setSpeed(new DriveSignal(leftMotorOutput,rightMotorOutput));\n}", "title": "" }, { "docid": "3f67cde5e00696486e8bf4e14a469d40", "score": "0.60398483", "text": "public ObjectDetectionSystem() {\n wheelsMotor1 = new DifferentialDrive(new PWMVictorSPX(0), new PWMVictorSPX(2));\n wheelsMotor2 = new DifferentialDrive(new PWMVictorSPX(1), new PWMVictorSPX(3));\n }", "title": "" }, { "docid": "96a28d77b52b7320926e11093a3740b6", "score": "0.60381806", "text": "S toWheelSpeeds(ChassisSpeeds chassisSpeeds);", "title": "" }, { "docid": "b07ff71b7c8d31b2710c90c40884e90b", "score": "0.60297483", "text": "@Override\n public void teleopPeriodic() {\n drivetrain.curvatureDrive(-joystick.getY(), joystick.getX(), joystick.getRawButton(1)); // We're passing in input into the this method, it needs it to be able to execute and move the motors.\n }", "title": "" }, { "docid": "abeebd37d7685e946d0edd466109e7cc", "score": "0.60283935", "text": "public DifferentialDriveWheelSpeeds getWheelSpeeds() {\n //return new DifferentialDriveWheelSpeeds(leftEncoder.getRate(), rightEncoder.getRate());\n return new DifferentialDriveWheelSpeeds(leftFront.getSelectedSensorVelocity() / 8.333 * 0.1524 * Math.PI / 60,\n rightFront.getSelectedSensorVelocity() / 8.333 * 0.1524 * Math.PI / 60);\n \n\n }", "title": "" }, { "docid": "1c06e0261b513c5d061a11f7ef21a32c", "score": "0.6004426", "text": "public void robotDrive(double strafe, double driveSpeed, double spin) {\n double strafeMultiplier = (strafe < 0)\n ? 0.5 //left\n : 0.1; //right\n //strafe += strafeMultiplier; //originally was spin... correct to strafe\n //SmartDashboard.putNumber(\"strafeMultiplier\", strafeMultiplier);\n \n double curveMultiplier = (driveSpeed > 0)\n ? 0.1\n : -0.1;\n //spin += curveMultiplier*driveSpeed;\n driveChassis.driveCartesian(strafe, SPEEDMULTIPLIER*driveSpeed, spin); \n //SmartDashboard.putNumber(\"spin\", spin);\n \n \n }", "title": "" }, { "docid": "5f12b66fe924db038f4321a3abc7c5a6", "score": "0.5997749", "text": "public MecanumDrive(Hardware r) {\n robot = r;\n }", "title": "" }, { "docid": "5e8e52c2c88e58c9091d6f92a743194a", "score": "0.59863245", "text": "public FinalBot(BotWheels wheels, BotIntake intake, BotArm arm){\n\n this.wheels = wheels;\n this.intake = intake;\n this.arm = arm;\n\n //insert sensor code here\n\n }", "title": "" }, { "docid": "7b935336cedbbf346497676f10369f06", "score": "0.5980878", "text": "public interface RobotController {\n\t/**\n\t * Attempts to connect to the robot\n\t * \n\t * @throws Exception\n\t * if connection failed\n\t */\n\tpublic void connect() throws Exception;\n\n\t/**\n\t * Tests if the robot is connected\n\t */\n\tpublic boolean isConnected();\n\n\t/**\n\t * Tests if the robot is ready to receive commands\n\t */\n\tpublic boolean isReady();\n\n\t/**\n\t * Disconnects from the robot\n\t */\n\tpublic void disconnect();\n\n\t/**\n\t * Tells the robot to stop\n\t * \n\t * @return A confirmation code for the command\n\t */\n\tpublic int stop();\n\n\t// /**\n\t// * Tells the robot to beep 3 times\n\t// *\n\t// * @return A confirmation code for the command\n\t// */\n\t// public int beep();\n\n\t/**\n\t * Tells the robot to kick\n\t * \n\t * @return A confirmation code for the command\n\t */\n\tpublic int kick();\n\n\t/**\n\t * Tells the robot to activate it's dribbler\n\t * \n\t * @param direction\n\t * Tells which direction the dribbler should move. Use 1 for\n\t * forward (as in dribbling) and 2 for backward (as in kicking).\n\t * @return A confirmation code for the command\n\t */\n\tpublic int dribble(int direction);\n\n\t/**\n\t * Stops the dribbler so that we don't drain the battery.\n\t * \n\t * @return A confirmation code for the command\n\t */\n\tpublic int stopdribble();\n\n\t/**\n\t * Tells the robot to move along a vector, relative to the robot\n\t * \n\t * @param speedX\n\t * A speed setting for the left/right wheels, from -100 to 100\n\t * @param speedY\n\t * A speed setting for the forward/backward wheels, from -100 to\n\t * 100\n\t * @return A confirmation code for the command\n\t */\n\tpublic int move(int speedX, int speedY);\n\n\t/**\n\t * Tells the robot to rotate by an angle\n\t * \n\t * @param angleDeg\n\t * The angle to rotate by, in degrees\n\t * @return A confirmation code for the command\n\t */\n\tpublic int rotate(int angleDeg);\n\n\t/**\n\t * @param left\n\t * left wheel speed out of 100\n\t * @param right\n\t * right wheel speed of 100\n\t * @return\n\t */\n\tpublic int arc(int left, int right);\n\n\t/**\n\t * Tells the robot to rotate while moving along a vector, relative to the\n\t * robot<br/>\n\t * NOTE: this vector will change as the robot rotates!\n\t * \n\t * @param speedX\n\t * A speed setting for the left/right wheels, from -100 to 100\n\t * @param speedY\n\t * A speed setting for the forward/backward wheels, from -100 to\n\t * 100\n\t * @param rotSpeed\n\t * The speed to rotate at, in degrees per second\n\t * @return A confirmation code for the command\n\t */\n\tpublic int rotateMove(int speedX, int speedY, int rotSpeed);\n\n\t/**\n\t * Clears the command / confirmation buffers for the robot\n\t */\n\tpublic void clearBuff();\n\n\tpublic void forcequit();\n}", "title": "" }, { "docid": "bbadfce3e6c6eb98765d7a69a05d7738", "score": "0.59794843", "text": "@Override\n public void autonomousPeriodic() {\n if (leftButton.get()) { \n hothBot.tankDrive(-vessel.getRawAxis(1), -vessel.getRawAxis(5)); \n } else if (rightButton.get()) { \n hothBot.tankDrive(vessel.getRawAxis(5) * .75, vessel.getRawAxis(1) * .75); \n } else { \n hothBot.tankDrive(-vessel.getRawAxis(1)* .75, -vessel.getRawAxis(5)* .75); \n }\n\n /*\n If the y button is pressed on joystick 2 and the potentiometer value is more than 57, then the arm will go up.\n If the a button is pressed on joystick 2 and the potentiometer value is less than 159, then the arm will go down. \n If the potentiometer value is less than 57 OR more than 159, then the arm does nothing. \n */ \n if (y.get() && (stringPot.get() > 57.0)) { \n arm.set(ControlMode.PercentOutput, -.50); \n } else if (a.get() && stringPot.get() < 159.0) { \n arm.set(ControlMode.PercentOutput, .50); \n } else if (stringPot.get() < 57.0 || stringPot.get() > 159.0) { \n arm.set(ControlMode.PercentOutput, 0); \n }\n\n /*\n If the x button is pressed on joystick 2, then the right and left wheel on arm turn inward. \n If the b button is pressed on joystick 2, then the right and left wheel on arm turn outward.\n Otherwise if none of the buttons are pressed, then the right and left wheel on arm do nothing.\n */\n if (x.get()) {\n rightW.set(ControlMode.PercentOutput, -.75); \n leftW.set(ControlMode.PercentOutput, .75);\n } else if (b.get()) {\n rightW.set(ControlMode.PercentOutput, .75);\n leftW.set(ControlMode.PercentOutput, -.75);\n } else { \n rightW.set(ControlMode.PercentOutput, 0); \n leftW.set(ControlMode.PercentOutput, 0);\n }\n\n /*\n If the right shoulder button is pressed on joystick 2, then set boolean to true and extend both pistons.\n Otherwise if it is not pressed, then set boolean to false and don't extend both pistons. \n */\n if (rightB.get()) { \n beakThingOne.set(true); \n beakThingTwo.set(true);\n } else {\n beakThingOne.set(false); \n beakThingTwo.set(false);\n }\n\n SmartDashboard.putBoolean(\"Ultrasonic\", (ultra.getRangeInches()>18 && ultra.getRangeInches()<23)); // ultrasonic values to appear on SmartDashboard\n\n }", "title": "" }, { "docid": "afbb3dce553f754aedc2112ea79a36e6", "score": "0.59752375", "text": "public void runOpMode() {\r\n\r\n hwMap = hardwareMap;\r\n // Below is the device declaration of motors, sensors and sensors\r\n // This is neccessary for the robot phones as it uses the \"deviceName\" to\r\n // detect which specific motor need to move at that time\r\n\r\n leftFront = hardwareMap.get(DcMotor.class, \"leftFront_drive\");\r\n rightRear = hardwareMap.get(DcMotor.class, \"rightRear_drive\");\r\n leftRear = hardwareMap.get(DcMotor.class, \"leftRear_drive\");\r\n rightFront = hardwareMap.get(DcMotor.class, \"rightFront_drive\");\r\n\r\n vacuum1=hardwareMap.get(Servo.class, \"vacuum1_Servo\");\r\n vacuum2= hardwareMap.get(Servo.class, \"vacuum2_Servo\");\r\n lift= hardwareMap.get(DcMotor.class, \"liftMotor\");\r\n\r\n //grip1=hardwareMap.get(Servo.class, \"grip1Servo\");\r\n // grip2=hardwareMap.get(Servo.class,\"grip2Servo\");\r\n lHook=hardwareMap.get(Servo.class,\"lHookServo\");\r\n rHook=hardwareMap.get(Servo.class, \"rHookServo\");\r\n tapeM=hardwareMap.get(CRServo.class, \"tapeMServo\");\r\n flip=hardwareMap.get(Servo.class, \"flipServo\");\r\n cap=hardwareMap.get(Servo.class, \"capServo\");\r\n\r\n leftFront.setDirection(DcMotorSimple.Direction.REVERSE);\r\n rightFront.setDirection(DcMotorSimple.Direction.FORWARD);\r\n leftRear.setDirection(DcMotorSimple.Direction.REVERSE);\r\n rightRear.setDirection(DcMotorSimple.Direction.FORWARD);\r\n // Sets the direction for the four wheels\r\n\r\n\r\n waitForStart();\r\n\r\n while (opModeIsActive()) { // The code below is essential to the movement of the robot\r\n // We utilited trigonometry for movement, basing off controls off the unit cirlce.\r\n double r = Math.hypot(gamepad1.left_stick_x, gamepad1.left_stick_y);\r\n double robotAngle = Math.atan2(gamepad1.left_stick_y, gamepad1.left_stick_x) - Math.PI / 4;\r\n double rightX = gamepad1.right_stick_x;\r\n final double v1 = r * Math.cos(robotAngle) + rightX;\r\n final double v2 = r * Math.sin(robotAngle) - rightX;\r\n final double v3 = r * Math.sin(robotAngle) + rightX;\r\n final double v4 = r * Math.cos(robotAngle) - rightX;\r\n\r\n leftFront.setPower(v1);\r\n rightFront.setPower(v2);\r\n leftRear.setPower(v3);\r\n rightRear.setPower(v4);\r\n // Setting power equal to each direction of the joystick\r\n\r\n\r\n\r\n\r\n if(gamepad1.dpad_up)//pressed \"down\" on the dpad, the motor lift will go down.\r\n {\r\n lift.setPower(-1.0);\r\n\r\n }\r\n\r\n else {\r\n lift.setPower(0.0);\r\n }\r\n\r\n if(gamepad1.dpad_down)//pressed \"down\" on the dpad, the motor lift will go down.\r\n {\r\n lift.setPower(1.0);\r\n\r\n }\r\n\r\n else {\r\n lift.setPower(0.0);\r\n }\r\n\r\n if(gamepad1.dpad_right)// if we press the right button on the dpad, the hook will grab onto the foundation\r\n {\r\n rHook.setPosition(0.2); //0.0\r\n lHook.setPosition(1.0); //1.0\r\n\r\n }\r\n\r\n\r\n else\r\n {\r\n rHook.setPosition(1.0);\r\n lHook.setPosition(0.5);\r\n\r\n }\r\n\r\n if(gamepad1.right_bumper)\r\n {\r\n\r\n vacuum1.setPosition(-180);\r\n }\r\n\r\n else\r\n {\r\n\r\n vacuum1.setPosition(0.5);\r\n }\r\n\r\n if (gamepad1.right_bumper)\r\n {\r\n vacuum2.setPosition(180);\r\n }\r\n else {\r\n vacuum2.setPosition(0.5);\r\n }\r\n\r\n if (gamepad1.x)\r\n {\r\n contPower= 0.2;\r\n }\r\n else if (gamepad1.y)\r\n {\r\n contPower=-0.2;\r\n }\r\n else\r\n {\r\n contPower=0.0;\r\n }\r\n tapeM.setPower(contPower);\r\n\r\n if (gamepad1.left_bumper)\r\n {\r\n flip.setPosition(0.0);\r\n }\r\n else\r\n {\r\n flip.setPosition(0.5);\r\n }\r\n if (gamepad1.right_trigger>=0.1)\r\n {\r\n cap.setPosition(1.0);\r\n }\r\n else\r\n {\r\n cap.setPosition(0.0);\r\n }\r\n /*\r\n if (gamepad1.b)\r\n {\r\n vacuum1.setPosition(-180);\r\n vacuum2.setPosition(180);\r\n\r\n }\r\n else {\r\n vacuum1.setPosition(0.5);\r\n vacuum2.setPosition(0.5);\r\n }\r\n\r\n */\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n }\r\n }", "title": "" }, { "docid": "870e9beeaae98782019a688c48178d85", "score": "0.5975037", "text": "SupersonicRuckusRobot(HardwareMap hw) {\n\n // Initialize robot components\n // Init Nav (navigation target tracker)\n //nav = new Navigation(hw.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hw.appContext.getPackageName()));\n\n // Init color / distance sensor\n //color = new ColorDistanceSensor(hw.get(com.qualcomm.robotcore.hardware.ColorSensor.class, \"sensor_color_distance\"), hw.get(DistanceSensor.class, \"sensor_color_distance\"));\n\n // Init drivetrain\n drive = new Drivetrain(\n hw.get(DcMotor.class, \"leftFront\"),\n hw.get(DcMotor.class, \"rightFront\"),\n hw.get(DcMotor.class, \"leftRear\"),\n hw.get(DcMotor.class, \"rightRear\"),\n hw.get(BNO055IMU.class, \"imu\")\n );\n\n // Init collector\n collect = new CollectorArm(hw.get(DcMotor.class, \"collector_arm_drive1\"), (hw.get(DcMotor.class, \"collector_arm_drive2\")), (hw.get(DcMotor.class, \"elbow_drive\")) /*(hw.get(Servo.class, \"hold_drive\" ))*/);\n\n // Init Sweeper\n // sweep = new Sweeper(hw.get(DcMotor.class, \"sweeper_drive\"), hw.get(Servo.class, \"SweeperRelease\"));\n\n // Init Mineral Detector\n //mineral = new MineralDetector(hw.appContext.getResources().getIdentifier(\"tfodMonitorViewId\", \"id\", hw.appContext.getPackageName()));\n\n\n }", "title": "" }, { "docid": "0ef2cf523cced24cbcacb8c999c1d04c", "score": "0.59686995", "text": "public void Near() {\n\n if(!handler.started){\n start();\n augustus = (RobotAugustus)robot;\n }\n\n switch (state) {\n case 0:\n // Extend the knocker\n if(handler.runTime.milliseconds() >= 1500) next();\n augustus.knocker.out();\n break;\n case 1:\n // Detect the color of the Jewel and determine which case to move to\n // based on what the color sensor sees and the Side enum\n if((side == Side.BLUE && augustus.knocker.colorRangeSensor.isRed())\n || (side == Side.RED && !augustus.knocker.colorRangeSensor.isRed()))\n next(side == Side.RED ? -2 : 2);\n else\n next(side == Side.RED ? 2 : -2);\n break;\n case -2:\n //Turn for 2 seconds, direction determined by Side enum\n if(handler.runTime.milliseconds() >= (handler.lastTick + 2000)) next(-3);\n augustus.drive.setAllDrive(side == Side.RED ? .05 : -.05);\n break;\n case -3:\n //retract knocker and turn for 2 seconds, direction determined by Side enum\n augustus.knocker.in();\n if(handler.runTime.milliseconds() >= (handler.lastTick + 2000)) next(4);\n augustus.drive.setAllDrive(side == Side.RED ? -.05 : .05);\n break;\n case 2:\n //Turn for 1 second, direction determined by Side enum\n if(handler.runTime.milliseconds() >= (handler.lastTick + 1000)) next(3);\n augustus.drive.setAllDrive(side == Side.RED ? -0.05 : 0.05);\n break;\n case 3:\n //Pull the knocker in and turn, direction determined by Side enum\n augustus.knocker.in();\n augustus.drive.setAllDrive(side == Side.RED ? 0.05 : -0.05);\n next();\n break;\n case 4:\n //Drive forward/backwards for 2.8 sections, direction determined by Side enum\n if(handler.runTime.milliseconds() >= (handler.lastTick + 2800)) next();\n augustus.drive.setDrive(side == Side.RED ? HoloDir.FORWARD : HoloDir.BACKWARD, .5);\n break;\n case 5:\n //turn for .98 seconds\n if(handler.runTime.milliseconds() >= (handler.lastTick + 980)) next();\n augustus.drive.setAllDrive(0.5);\n break;\n case 6:\n //move elevator out until it is in the STOPPED position\n if(augustus.elevator.xPos == ElevatorXPos.STOPPED) next();\n augustus.elevator.out(false);\n break;\n case 7:\n //Pause for 2 seconds\n if(handler.runTime.milliseconds() >= (handler.lastTick + 2000)) next();\n break;\n case 8:\n //open Claw until it is in the STOPPED position\n if(((JClaw)augustus.elevator.claw).p == ClawPos.STOPPED) next();\n augustus.elevator.claw.release(false);\n break;\n case 9:\n //2.5 second pause\n if(handler.runTime.milliseconds() >= (handler.lastTick + 2500)) next();\n break;\n case 10:\n //Drive backwards for 1 second\n if(handler.runTime.milliseconds() >= (handler.lastTick + 1000)) next();\n augustus.drive.setDrive(HoloDir.BACKWARD, 0.5);\n break;\n case 11:\n //turn for 1.08 seconds\n if(handler.runTime.milliseconds() >= (handler.lastTick + 1080)) next();\n augustus.drive.setAllDrive(0.5);\n break;\n case 12:\n //Move left for 1.6 seconds\n //slam Glyph into Cryptobox\n if(handler.runTime.milliseconds() >= (handler.lastTick + 1600)) next();\n augustus.drive.setDrive(HoloDir.LEFT, 0.8);\n break;\n case 13:\n //Move right for .5 seconds\n if(handler.runTime.milliseconds() >= (handler.lastTick + 500)) next();\n augustus.drive.setDrive(HoloDir.RIGHT, 0.5);\n break;\n default:\n //Stop robot if the next case can not be found\n robot.stop();\n break;\n }\n }", "title": "" }, { "docid": "b34ac743d77a78af99afbd5786b77c05", "score": "0.5965849", "text": "public void drive(double xMove, double yMove, double turnForce)\n {\n\n //get desired movement magnitude\n drive = Math.sqrt( Math.pow(yMove, 2) + Math.pow(xMove, 2) );\n\n drive = Math.pow(drive, .5);\n //get desired movement direction FIELD ORIENTED by CurrAngle\n angle = Math.atan2( yMove , xMove) - CurrAngle;\n\n //Rotation based turning\n turn = -Math.abs(turnForce) * turnForce;\n\n //Place to put the desired angle input\n\n\n //determines drive coefficient based on turn force and drive force\n coeff = drive;\n if(Math.abs(turn) > coeff) coeff = Math.abs(turn);\n if(coeff > 1) coeff = 1;\n\n\n //sets each motor to the power of a trig function\n //Axis is rotated CW PI/4\n LFPower = (drive * Math.sin(angle - Math.PI/4) + turn);\n RFPower = (drive * Math.cos(angle - Math.PI/4) - turn);\n LBPower = (drive * Math.cos(angle - Math.PI/4) + turn);\n RBPower = (drive * Math.sin(angle - Math.PI/4) - turn);\n\n\n //finds maximum power and makes that 1, increases all others proportionally\n max = Math.abs(LFPower);\n if (Math.abs(RFPower) > max) max = Math.abs(RFPower);\n if (Math.abs(LBPower) > max) max = Math.abs(LBPower);\n if (Math.abs(RBPower) > max) max = Math.abs(RBPower);\n LFPower /= (max);\n RFPower /= (max);\n LBPower /= (max);\n RBPower /= (max);\n\n\n //multiplies by driving coefficient so that sensitivity exists\n LFPower *= coeff;\n RFPower *= coeff;\n LBPower *= coeff;\n RBPower *= coeff;\n\n\n\n\n\n //actually sets the power to the motors\n leftFront.setPower(LFPower);\n rightFront.setPower(RFPower);\n leftBack.setPower(LBPower);\n rightBack.setPower(RBPower);\n\n }", "title": "" }, { "docid": "e3b9a32301fa9ceb7abc120472b51d14", "score": "0.59602", "text": "public int wheels() {\n return 4;\n }", "title": "" }, { "docid": "88fda07c537944d2786e0fae12d7a2e8", "score": "0.5959128", "text": "@Override\n\tpublic void teleopDrive() {\n\t\tboolean squareJoy = Robot.getBool(\"Square Joystick Values\", true);\n\t\tif (SmartDashboard.getBoolean(\"Arcade Drive\", true)) {\n\t\t\tdouble forw;\n\t\t\tdouble turn;\n\t\t\tif (Robot.getBool(\"Arcade Drive Default Setup\", true)) {\n\t\t\t\tforw = -Robot.oi.leftJoy.getY();\n\t\t\t\tturn = Robot.oi.rightJoy.getX();\n\t\t\t\tSystem.out.println(\"Forward is \" + forw + \" and turn is \" + turn);\n\t\t\t\tRobot.dt.arcadeDrive(squareJoy ? Robot.oi.squareValueKeepSign(forw) : forw,\n\t\t\t\t\t\tsquareJoy ? Robot.oi.squareValueKeepSign(turn) : turn);\n\t\t\t} else {\n\t\t\t\tforw = -Robot.oi.rightJoy.getY();\n\t\t\t\tturn = Robot.oi.leftJoy.getX();\n\t\t\t\tRobot.dt.arcadeDrive(squareJoy ? Robot.oi.squareValueKeepSign(forw) : forw,\n\t\t\t\t\t\tsquareJoy ? Robot.oi.squareValueKeepSign(turn) : turn);\n\t\t\t}\n\t\t} else {\n\t\t\tdouble left = -Robot.oi.leftJoy.getY();\n\t\t\tdouble right = -Robot.oi.rightJoy.getY();\n\t\t\tRobot.dt.tankDrive(squareJoy ? Robot.oi.squareValueKeepSign(left) : left,\n\t\t\t\t\tsquareJoy ? Robot.oi.squareValueKeepSign(right) : right);\n\t\t}\n\t\tSmartDashboard.putNumber(\"Drivetrain/Left VPID Targ\", leftVelocityController.getSetpoint());\n\t\tSmartDashboard.putNumber(\"Drivetrain/Right VPID Targ\", rightVelocityController.getSetpoint());\n\t\tSmartDashboard.putNumber(\"Drivetrain/Current Max Speed\", getCurrentMaxSpeed());\n\t\tSmartDashboard.putNumber(\"Drivetrain/Left Enc Dist\", leftEncDist.getDistance());\n\t\tSmartDashboard.putNumber(\"Drivetrain/Left Enc Rate\", leftEncRate.getRate());\n\t\tSmartDashboard.putNumber(\"Drivetrain/Right Enc Dist\", rightEncDist.getDistance());\n\t\tSmartDashboard.putNumber(\"Drivetrain/Right Enc Rate\", rightEncRate.getRate());\n\t\tSmartDashboard.putNumber(\"Drivetrain/Enc Avg Dist\", distEncAvg.pidGet());\n\t}", "title": "" }, { "docid": "40e8bf328e2aeae3319ff74430167d4e", "score": "0.5945158", "text": "@Override\n public void loop() {\n wheelControl();\n intakeControl();\n //bdControl();\n armControl();\n }", "title": "" }, { "docid": "fc9feb70e4ce2b6c209e2509f77f6eb9", "score": "0.5934344", "text": "public static void main(String[] args) {\n Turtle t = new Turtle(); //Creates the Turtle\n // polywheel(t,4,50); //Test Case\n // polywheel(t,3,70); //Test Case\n polywheel(t,12,15); //Test Case\n\n }", "title": "" }, { "docid": "5667ae1da0597720740bcd6912811bfc", "score": "0.58960557", "text": "public void runOpMode() throws InterruptedException{\n motorControllerP0 = hardwareMap.dcMotorController.get(\"MCP0\");\n motorControllerP1 = hardwareMap.dcMotorController.get(\"MCP1\");\n motorControllerP4 = hardwareMap.dcMotorController.get(\"MCP4\");\n\n\n motor1 = hardwareMap.dcMotor.get(\"motorFrontL\"); //MCP4\n motor2 = hardwareMap.dcMotor.get(\"motorFrontR\"); //MCP4\n motor3 = hardwareMap.dcMotor.get(\"motorBackL\"); //MCP1 Back of motor 1\n motor4 = hardwareMap.dcMotor.get(\"motorBackR\"); //MCP1 Back of motor 2\n\n launcherMotor = hardwareMap.dcMotor.get(\"motorLauncher\"); //hardwaremapping the motor for the launcher MCP0 motor 1\n sweeperMotor = hardwareMap.dcMotor.get(\"motorSweeper\"); //hardwaremapping the motor for the sweeper MCP0 motor 2\n\n /*Setting channel modes*/\n motor1.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motor2.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motor3.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n motor4.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n launcherMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n sweeperMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n motor2.setDirection(DcMotorSimple.Direction.REVERSE);\n motor3.setDirection(DcMotorSimple.Direction.REVERSE);\n //launcherMotor.setDirection(DcMotorSimple.Direction.REVERSE); We did this so that when the joystick is pushed up, the ball will launch upwards; when the joystick is pushed down, the ball will launch downwards\n\n servoController = hardwareMap.servoController.get(\"SCP2\"); //hardwaremapping the servo controller\n\n colorSensorServo = hardwareMap.servo.get(\"servo\"); //hardwaremapping the servo\n\n\n interfaceModule = hardwareMap.deviceInterfaceModule.get(\"DIM\"); //hardware map the device interface module which controls the color sensor\n\n colorSensor = hardwareMap.colorSensor.get(\"Color sensor\"); //hardware map the color sensor\n colorSensor.setI2cAddress(COLOR_SENSOR_ORIGINAL_ADDRESS); //we made it so this one has to be this address, need seperate program to change this\n\n beaconSensor = hardwareMap.colorSensor.get(\"Beacon Color sensor\");\n beaconSensor.setI2cAddress(COLOR_SENSOR_CHANGED_ADDRESS); //we made it so this one has to be this address\n\n //color sensor intial states\n colorSensor.enableLed(true); //makes it so shadows/lighting doesn't affect it's reading\n beaconSensor.enableLed(false); //makes it so it can see the led light behind the plastic of the beacon cover\n\n\n //variables for going to the tape and rotating\n boolean seenTape = false;\n boolean alignedToTape = false;\n long lastTime = System.currentTimeMillis(); //I believe gets time in milliseconds for when the robot enters the tape\n long newTime = System.currentTimeMillis(); //gets the time for when the robot leaves the tape\n long changeInTime = (newTime-lastTime); //gets the amount of time it took for the robot to travel across the tape\n double tapeLengthTraveled = 0; //temporary until it is changed later in the autonomous\n double tapeWidth = 2; //in inches; actual tape measurements found on http://www.andymark.com/FTC17-p/am-3160.htm\n double speed = 15.5; //robot's speed at 0.5 power in inches/seconds\n double turningAngle = Math.asin(tapeWidth/tapeLengthTraveled); //finds angle to turn(Note: I believe asin.(number) = inverse sine)\n long turningAngleLong = (long) turningAngle;//turn the turning angle into a long so that it can be used in the time\n long rotateSpeed = 162; //robot's rotational degrees per second at 0.5 power; needs to be long so it can be used in the calculation for time\n\n\n waitForStart(); //all code below is what the robot actually does\n\n while(opModeIsActive()){\n\n // What the robot will do to get to the Beacons and align to them\n\n //What happens until robot sees the tape\n if((colorSensor.red() > 10 || colorSensor.blue() > 10 || colorSensor.green() < 10) || (colorSensor.red() < 2 || colorSensor.blue() < 2 || colorSensor.green() < 2)){ //should see anything else but white\n MoveForward(0.5); //go until see white tape\n }\n\n else if (colorSensor.red() < 10 && colorSensor.blue() < 10 && colorSensor.green() < 10 && colorSensor.red() >= 2 && colorSensor.blue() >= 2 && colorSensor.green() >= 2){ //I believe this makes it see if white\n seenTape = true; //initiates other stuff; makes all this stuff within this block of code instantaneous rather than looped\n lastTime = System.currentTimeMillis(); //get the current time now when the robot enters the tape\n }\n\n //What happens when the robot sees the tape\n if (colorSensor.red() < 10 && colorSensor.blue() < 10 && colorSensor.green() < 10 && colorSensor.red() >= 2 && colorSensor.blue() >= 2 && colorSensor.green() >= 2 && (seenTape)){\n MoveForward(0.5); //move foward\n }\n\n //what happens when the robot passes the tape\n if ((colorSensor.red() > 10 || colorSensor.blue() > 10 || colorSensor.green() < 10) || (colorSensor.red() < 2 || colorSensor.blue() < 2 || colorSensor.green() < 2) && (seenTape)){\n\n //update all variables\n newTime = System.currentTimeMillis();\n changeInTime = (newTime - lastTime) / 1000; //divide by 1000 to convert to seconds from milliseconds\n tapeLengthTraveled = changeInTime * speed;\n turningAngle = Math.asin(tapeWidth/tapeLengthTraveled);\n turningAngleLong = (long) turningAngle;\n\n BackUp(0.5, changeInTime * 1000 / 2); //I believe this will make it so the robot moves to the center of the white tape\n rotateRight(0.5, turningAngleLong/rotateSpeed);\n\n alignedToTape = true; //initiates poker stuff makes it so the robot doesn't constantly repeat this block of code\n }\n\n\n //poker stuff begins here; poker is on the right side of our robot\n if (alignedToTape == true){\n\n //if we are on the blue team\n if (beaconSensor.red() > beaconSensor.blue()){ //if sense red on the right\n servoposition = 0.95; //left\n }\n else if (beaconSensor.blue() > beaconSensor.red()){//if sense blue on the right\n servoposition = 0.05; //right\n }\n else {\n MoveForward(0.5);\n }\n }\n\n\n colorSensorServo.setPosition(servoposition); //constantly updates servo position and set's servo to the position\n\n //hopefully shows on phone what colors are being shown\n telemetry.addData(\"Red \", colorSensor.red());\n telemetry.addData(\"Green\", colorSensor.green());\n telemetry.addData(\"Blue \", colorSensor.blue());\n\n telemetry.addData(\"Beacon Red \", beaconSensor.red());\n telemetry.addData(\"Beacon Blue \", beaconSensor.blue());\n telemetry.addData(\"Beacon Green \", beaconSensor.green());\n\n telemetry.addData(\"Time over tape: \", changeInTime);\n\n telemetry.update();\n\n }\n }", "title": "" }, { "docid": "836219c2e0deca987d04085d5d6c9585", "score": "0.58707285", "text": "public void drive (double leftVal, double rightVal)\r\n{\r\n double leftOut = super.scaleJoystickForDeadband(leftVal)\r\n * super.getCurrentGearRatio();\r\n double rightOut = super.scaleJoystickForDeadband(rightVal)\r\n * super.getCurrentGearRatio();\r\n\r\n super.driveRaw(leftOut, rightOut);\r\n}", "title": "" }, { "docid": "84e0bbf2772ebfd3c06e1ecc5c9d227b", "score": "0.5868094", "text": "public Drivetrain() {\n configMotor(motorRight1, true);\n configMotor(motorRight2, true);\n configMotor(motorRight3, true);\n motorRight2.follow(motorRight1);\n motorRight3.follow(motorRight1);\n\n configMotor(motorLeft1, false);\n configMotor(motorLeft2, false);\n configMotor(motorLeft3, false);\n motorLeft2.follow(motorLeft1);\n motorLeft3.follow(motorLeft1);\n }", "title": "" }, { "docid": "dbf959c49d1a6bd9e8939c56854ec808", "score": "0.5866505", "text": "public void demoModeArmControl()\n {\n //Wrist value\n //If the left trigger is pressed, move the wrist forwards. If the right is pressed, move it backwards. Negative value = backwads\n double wrist = 0.0;\n if (RobotMap.assistantDriverController.getTriggerAxis(Hand.kLeft) >= RobotMap.TRIGGER_DEADBAND)\n wrist = RobotMap.assistantDriverController.getTriggerAxis(Hand.kLeft);\n else if (RobotMap.assistantDriverController.getTriggerAxis(Hand.kRight) >= RobotMap.TRIGGER_DEADBAND)\n wrist = -RobotMap.assistantDriverController.getTriggerAxis(Hand.kRight);\n\n //Gimbal value\n //If the left bumper is pressed, rotate the base left. If the right is pressed, rotate the base right. Negative value = right\n double gimbal = 0.0;\n if (RobotMap.assistantDriverController.getBumper(Hand.kLeft))\n gimbal = RobotMap.GIMBAL_SPEED;\n else if (RobotMap.assistantDriverController.getBumper(Hand.kRight));\n gimbal = -RobotMap.GIMBAL_SPEED;\n\n //Grabber\n //When the a-button is pressed, switch between grabbing and releasing.\n if (RobotMap.assistantDriverController.getAButtonPressed())\n {\n if (RobotMap.grabberIsGrabbed)\n RobotMap.grabberSolenoid.set(Value.kReverse);\n else\n RobotMap.grabberSolenoid.set(Value.kForward);\n \n //Invert the flag\n RobotMap.grabberIsGrabbed = !RobotMap.grabberIsGrabbed;\n }\n\n //Move the arm\n RobotMap.armSubsystem.moveArmAtSpeed(\n RobotMap.assistantDriverController.getY(Hand.kLeft), \n RobotMap.assistantDriverController.getY(Hand.kRight), \n wrist, \n gimbal);\n }", "title": "" }, { "docid": "b41a4c701bef1d0f5fd8eb09d291c0b6", "score": "0.58619475", "text": "@Override\n public void runOpMode() throws InterruptedException\n {\n\n leftWheel = hardwareMap.dcMotor.get(\"leftWheel\");\n rightWheel = hardwareMap.dcMotor.get(\"rightWheel\");\n\n lift = hardwareMap.dcMotor.get(\"liftMotor\");\n\n claw = hardwareMap.servo.get(\"clawServo\");\n\n // Initialize Motors and Servos\n rightWheel.setDirection(DcMotor.Direction.FORWARD);\n leftWheel.setDirection(DcMotor.Direction.REVERSE);\n lift.setDirection(DcMotor.Direction.FORWARD);\n\n claw.setPosition(0);\n\n double robotLength = 15.625;\n leftWheelTargetPosition = inchesToTicks(0);\n rightWheelTargetPosition = inchesToTicks((Math.PI * robotLength)/2);\n\n\n //------------------------------------------------------------------------------------------\n waitForStart();\n //Instructions After Init. and Start.\n\n moveForward(leftWheelTargetPosition, rightWheelTargetPosition, 0.1);\n }", "title": "" }, { "docid": "15643361ed056d1d992963af386008fe", "score": "0.58549887", "text": "public void doBehavior() {\n\t\t\n\t\t//bij de eerste run\n\t\tif (state == stateInit) {\n\t\t\tSystem.out.println(\"Starting curious behaviour loop\");\n\t\t\tjoBot.setStatusLeds(false, false, false);\n\t\t\tstate = stateSense;\n\t\t}\n\n\t\t//state om te bekijken wat er nu moet gebeuren\n\t\tif (state == stateSense) {\n\t\t\t\n\t\t\t// Sla de vorige afstand tot object op\n\t\t\tprevious_object_distance = object_distance;\n\t\t\t\n\t\t\t// Lees nieuwe waarde voor afstandssensor\n\t\t\tobject_distance = joBot.getSensorValue(BaseController.SENSOR_DS);\n\t\t\tobject_speed = absDiff(object_distance, previous_object_distance) + 1;\n\t\t\t\n\t\t\t//check of er een object te vinden is of niet\n\t\t\tif (object_distance < threshold) {\n\t\t\t\tstate = stateWander; //ga gewoon willekeurig rijden\n\t\t\t} else if(object_distance >= max_distance) {\n\t\t\t\tstate = stateBackoff;\n\t\t\t} else {\n\t\t\t\tstate = stateFollow;\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\n\t\t//Voor state uit\n\t\tint next_state = stateSense;\n\t\tif(state == stateWander) { //Just a little bit of speed, mostly turn around to look for object\n\t\t\t\n\t\t\tSystem.out.println(\"Wandering..\");\n\t\t\tjoBot.setStatusLeds(false, false, false);\n\t\t\t\n\t\t\t//wait = 3; // Change wait to random value\n\t\t\tboolean des = random(0x7F) < 64;\n\t\t\tint speed = random1(0x3F);\n\t\t\t\n\t\t\tif(des)\n\t\t\t\tjoBot.drive((int)(speed*1.5), (int)(speed*0.3));\n\t\t\telse\n\t\t\t\tjoBot.drive((int)(speed*0.3), (int)(speed*1.5));\n\t\t\t//next_state = StateWait;\t\n\t\t\t\n\t\t} else if(state == stateFollow) {\n\t\t\tjoBot.drive(20, 20);\n\t\t} else if(state == stateBackoff) {\n\t\t\tSystem.out.println(\"backing off\");\n\t\t\tturn_direction = random(0x7F) < 64;\n\t\t\tif(turn_direction)\n\t\t\t\tjoBot.drive(80, 0);\n\t\t\telse\n\t\t\t\tjoBot.drive(0, 80);\n\t\t\twait = 6;\n\t\t\tnext_state = StateWait;\t\n\t\t\tafter_state = stateBackoffForward;\n\t\t} else if(state == stateBackoffForward) {\n\t\t\tjoBot.drive(70, 70);\n\t\t\twait = 10;\n\t\t\tnext_state = StateWait;\t\n\t\t\tafter_state = stateTurnBack;\n\t\t} else if(state == stateTurnBack) { \n\t\t\tif(turn_direction)\n\t\t\t\tjoBot.drive(0,80);\n\t\t\telse\n\t\t\t\tjoBot.drive(80, 0);\n\t\t\t\n\t\t\twait = 8;\n\t\t\tnext_state = StateWait;\t\n\t\t\t\n\t\t} else if(state == StateWait) {\n\t\t\tif(wait-- > 0) {\n\t\t\t\tnext_state = StateWait;\n\t\t\t} else if(after_state != 0) {\n\t\t\t\tnext_state = after_state;\n\t\t\t\tafter_state = 0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tstate = next_state;\n\t}", "title": "" }, { "docid": "84f084057b4e78af3c58a09a010a1b5f", "score": "0.58507246", "text": "@Test\r\n\tpublic void testWheelSpin() {\r\n\t\t\r\n\t\t//Create some Outcomes\r\n\t\tOutcome doubleZero = new Outcome(\"00-0-1-2-3\", 6);\r\n\t\tOutcome twelve = new Outcome(\"12\", 35);\r\n\t\tOutcome eleven = new Outcome(\"11\", 35);\r\n\t\tOutcome twentyFive = new Outcome(\"25\", 35);\r\n\t\tOutcome four = new Outcome(\"4\", 35);\r\n\t\tOutcome thirty = new Outcome(\"30\", 35);\r\n\t\t\r\n\t\tOutcome red = new Outcome(\"Red\", 2);\r\n\t\tOutcome black = new Outcome(\"Black\", 2);\r\n\t\tOutcome firstTwelve = new Outcome(\"firstTwelve\", 3);\r\n\t\t\t\t\r\n\t\t//Create a wheel:\r\n\t\t//Using a known seed means we can predict the results\r\n\t\tWheel wheel = new Wheel(new Random(1));\r\n\t\twheel.addOutcomeToBin(25, doubleZero);\r\n\t\twheel.addOutcomeToBin(18, twelve);\r\n\t\twheel.addOutcomeToBin(18, red);\r\n\t\twheel.addOutcomeToBin(18, firstTwelve);\r\n\t\twheel.addOutcomeToBin(17, eleven);\r\n\t\twheel.addOutcomeToBin(17, black);\r\n\t\twheel.addOutcomeToBin(21, twentyFive);\r\n\t\twheel.addOutcomeToBin(21, red);\r\n\t\twheel.addOutcomeToBin(0, four);\r\n\t\twheel.addOutcomeToBin(0, black);\r\n\t\twheel.addOutcomeToBin(0, firstTwelve);\r\n\t\twheel.addOutcomeToBin(24, thirty);\r\n\t\twheel.addOutcomeToBin(24, red);\r\n\t\t\r\n\t\t//Now 'randomly' select some bins and check results\r\n\t\tBin firstResult = wheel.next();\r\n\t\tassertNotNull(firstResult);\r\n\t\tassertEquals(wheel.getBin(25), firstResult);\r\n\t\tassertTrue(firstResult.size() == 1);\r\n\t\tassertTrue(firstResult.contains(doubleZero));\r\n\t\t\r\n\t\tBin secondResult = wheel.next();\r\n\t\tassertNotNull(secondResult);\r\n\t\tassertEquals(wheel.getBin(18), secondResult);\r\n\t\tassertTrue(secondResult.size() == 3);\r\n\t\tassertTrue(secondResult.contains(twelve));\r\n\t\tassertTrue(secondResult.contains(red));\r\n\t\tassertTrue(secondResult.contains(firstTwelve));\r\n\t\t\r\n\t\tBin thirdResult = wheel.next();\r\n\t\tassertNotNull(thirdResult);\r\n\t\tassertEquals(wheel.getBin(17), thirdResult);\r\n\t\tassertTrue(thirdResult.size() == 2);\r\n\t\tassertTrue(thirdResult.contains(eleven));\r\n\t\tassertTrue(thirdResult.contains(black));\r\n\t\t\r\n\t\t\r\n\t\tBin fourthResult = wheel.next();\r\n\t\tassertNotNull(fourthResult);\r\n\t\tassertEquals(wheel.getBin(21), fourthResult);\r\n\t\tassertTrue(fourthResult.size() == 2);\r\n\t\tassertTrue(fourthResult.contains(twentyFive));\r\n\t\tassertTrue(fourthResult.contains(red));\r\n\t\t\r\n\t\tBin fifthResult = wheel.next();\r\n\t\tassertNotNull(fifthResult);\r\n\t\tassertEquals(wheel.getBin(0), fifthResult);\r\n\t\tassertTrue(fifthResult.size() == 3);\r\n\t\tassertTrue(fifthResult.contains(four));\r\n\t\tassertTrue(fifthResult.contains(black));\r\n\t\tassertTrue(fifthResult.contains(firstTwelve));\r\n\t\t\r\n\t\tBin sixthResult = wheel.next();\r\n\t\tassertNotNull(sixthResult);\r\n\t\tassertEquals(wheel.getBin(24), sixthResult);\r\n\t\tassertTrue(sixthResult.size() == 2);\r\n\t\tassertTrue(sixthResult.contains(thirty));\r\n\t\tassertTrue(sixthResult.contains(red));\r\n\t}", "title": "" }, { "docid": "1dfdd3777f8a3b6de46f886c4cd1bde5", "score": "0.58489776", "text": "@Override\n public void loop() {\n // Setup a variable for each drive wheel to save power level for telemetry\n // Tank Mode uses one stick to control each wheel.\n // - This requires no math, but it is hard to drive forward slowly and keep straight.\n double leftPower = -gamepad1.left_stick_y;\n double rightPower = -gamepad1.right_stick_y;\n\n double speed = 1.0d;\n\n // Send calculated power to wheels\n driveLeftFront.setPower(leftPower);\n driveLeftBack.setPower(leftPower);\n driveRightFront.setPower(rightPower);\n driveRightBack.setPower(rightPower);\n\n if (gamepad1.dpad_up) {\n marker.setPosition(1.0d);\n }\n else if (gamepad1.dpad_down) {\n marker.setPosition(0.0d);\n }\n\n if (gamepad2.dpad_up) {\n endgame = true;\n }\n else if (gamepad2.dpad_down) {\n endgame = false;\n }\n\n if (endgame) {\n if (liftLeft.getMode() != DcMotor.RunMode.RUN_TO_POSITION) {\n liftLeft.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n }\n\n if (liftRight.getMode() != DcMotor.RunMode.RUN_TO_POSITION) {\n liftRight.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n }\n\n if (gamepad2.y) {\n liftLeft.setPower(-speed);\n liftRight.setPower(-speed);\n\n liftLeft.setTargetPosition(ascend);\n liftRight.setTargetPosition(ascend);\n }\n else if (gamepad2.a) {\n liftLeft.setPower(speed);\n liftRight.setPower(speed);\n\n liftLeft.setTargetPosition(decend);\n liftRight.setTargetPosition(decend);\n }\n }\n else\n {\n if (liftLeft.getMode() != DcMotor.RunMode.RUN_USING_ENCODER) {\n liftLeft.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n\n if (liftRight.getMode() != DcMotor.RunMode.RUN_USING_ENCODER) {\n liftRight.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n\n if (gamepad2.right_bumper && (liftLeft.getCurrentPosition() <= decend && liftRight.getCurrentPosition() <= decend)) {\n liftLeft.setPower(speed);\n liftRight.setPower(speed);\n } else if (gamepad2.left_bumper && (liftLeft.getCurrentPosition() >= ascend && liftRight.getCurrentPosition() >= ascend)) {\n liftLeft.setPower(-speed);\n liftRight.setPower(-speed);\n } else {\n liftLeft.setPower(0.0d);\n liftRight.setPower(0.0d);\n }\n }\n\n telemetry.addData(\"Mode: \", (endgame) ? \"Endgame\" : \"Teleop\" );\n telemetry.addData(\"Lift Left: \", liftLeft.getCurrentPosition());\n telemetry.addData(\"Lift Right: \", liftRight.getCurrentPosition());\n\n telemetry.addData(\"Drive Left: \", driveLeftFront.getCurrentPosition());\n telemetry.addData(\"Drive Right: \", driveRightFront.getCurrentPosition());\n }", "title": "" }, { "docid": "38146faa0f119d7d8434416c59a8af5d", "score": "0.584886", "text": "public RobotContainer() {\n\n // VERY IMPORTANT: drive need be created before oi since oi creates Turn90DegreesCommand object in which need drive object\n drive = new Drive();\n climb = new Climb();\n colorWheel = new ColorWheel();\n ballPickUp = new BallPickUp();\n ballShooter = new BallShooter();\n ballStorage = new BallStorage();\n turret = new Turret();\n oi = new OI(); // need be after drive object\n\n // Configure the button bindings\n configureButtonBindings();\n\n drive.resetEncoders();\n drive.resetHeading();\n odometry = new RobotOdometry(drive, drive.getPigeonIMU());\n odometry.resetOdometry();\n\n drive.setDefaultCommand(new ManualDriveCommand());\n climb.setDefaultCommand(new ClimbCommand());\n ballStorage.setDefaultCommand( new BallStorageCommand());\n ballPickUp.setDefaultCommand(new BallPickUpCommand());\n\n autoChooser.setDefaultOption(\"Auto (Shot and Move)\", new NewCommandGroup(odometry, drive));\n \n //autoChooser.setDefaultOption(\"AutoNav (Barrel Racing)\", new RunAutoNavBarrelRacing(odometry, drive));\n \n autoChooser.addOption(\"Galactic Search (A)\", new RunGalacticSearchA(odometry, drive));\n autoChooser.addOption(\"Galactic Search (B)\", new RunGalacticSearchB(odometry, drive));\n\n autoChooser.addOption(\"AutoNav (Slalom)\", new RunAutoNavSlalom(odometry, drive));\n autoChooser.addOption(\"AutoNav (Bounce)\", new RunAutoNavBounce(odometry, drive));\n \n autoChooser.addOption(\"Galactic Search (A/Blue)\", new RunGalacticSearchABlue(odometry, drive));\n autoChooser.addOption(\"Galactic Search (A/Red)\", new RunGalacticSearchARed(odometry, drive));\n autoChooser.addOption(\"Galactic Search (B/Blue)\", new RunGalacticSearchBBlue(odometry, drive));\n autoChooser.addOption(\"Galactic Search (B/Red)\", new RunGalacticSearchBRed(odometry, drive));\n \n SmartDashboard.putData(\"Auto Mode\", autoChooser);\n\n }", "title": "" }, { "docid": "b2ce020cedd4b3f1c984dc952dae0a86", "score": "0.5848033", "text": "public FinalBot(HardwareMap map){\n\n //CRServo w = map.get(CRServo.class, \"wristServo\");\n //w.setPower(0);\n\n wheels = new BotWheels(map.get(DcMotor.class, \"frontLeft\"),map.get(DcMotor.class, \"frontRight\"),map.get(DcMotor.class, \"backLeft\"),map.get(DcMotor.class, \"backRight\"));\n //initializes botWheels\n\n // [!] intake = new BotIntake(map.get(DcMotor.class, \"intakeLeft\"),map.get(DcMotor.class, \"intakeRight\"),map.get(ModernRoboticsI2cRangeSensor.class,\"intakeDistance\"),map.get(Servo.class, \"finger\"));\n intake = new BotIntake(map.get(DcMotor.class, \"intakeLeft\"),map.get(DcMotor.class, \"intakeRight\"),map.get(CRServo.class, \"finger\"));\n //creates intake w/o distance sensor\n\n //initializes intake motors and touch sensor(can replace with distance sensor in the future)\n\n /*[!]*/arm = new BotArm(map.get(DcMotor.class, \"baseMotor\"),map.get(Servo.class, \"wristServo\"), map.get(Servo.class, \"handServo\"), (ModernRoboticsI2cRangeSensor) map.get(\"armDistance\"), (Servo) map.get(\"dropCap\")); //change motor names\n arm.wristServo.setPosition(1);\n\n //colors = map.get(ColorSensor.class, \"colorSensor\");//initializes color sensor\n\n //gyro = map.get(GyroSensor.class, \"gyroscope\");\n\n hook = new BotHook(map.get(Servo.class, \"hook\"), map.get(Servo.class, \"hook2\"));\n\n\n\n }", "title": "" }, { "docid": "dd9a3e79420abf8666d6a1b8f5c5433b", "score": "0.58476335", "text": "@Override\n\tpublic void drive() {\n\t\tSystem.out.println(\"TwoWheeler: drive \");\n\t}", "title": "" }, { "docid": "cdff5b9027941718aad14aad110a68b5", "score": "0.58445966", "text": "public OI() {\n JoystickButton but = new JoystickButton(left, RobotMap.white);\n but.whenPressed(new Reset(10000));\n /* JoystickButton simpleAcquisition = new JoystickButton(right, 9);\n simpleAcquisition.toggleWhenPressed(new SimpleAcquisitionCommand());\n JoystickButton simpleLift = new JoystickButton(right, 11);\n simpleLift.toggleWhenPressed(new SimpleLifterCommand());\n JoystickButton simpleDrive = new JoystickButton(right, 7);\n simpleDrive.toggleWhenPressed(new SimpleManualDrive());\n*/\n /*double x = 1.0;\n\t\tdouble y = 3.0;\n\t\tdouble a = 0.0;\n\t\tSmartDashboard.delete(\"auto_move\");\n\t\tNetwork n = Robot.getNetwork(0);\n\t\tif(n != null) {\n\t\t\tSystem.out.println(\"Network called\");\n\t\t\t//but.whenPressed(new NetworkCommand(n, x, y, a, 0.2, 10000, true));\n }\n but.whenPressed(new PIDSpin(180.0, true, 4000, 1.0));\n (new JoystickButton(right, 11)).whenPressed(new PIDSpin(0.0, true, 4000, 1.0));*/\n }", "title": "" }, { "docid": "88f122a14e6b529ad5364706474454dd", "score": "0.5838498", "text": "public void loop() {\n\n double joystickX = gamepad1.left_stick_x;\n double joystickY = gamepad1.left_stick_y;\n\n boolean joystickYPositive = true;\n double upperAngle = 0;\n // Statements\n if (joystickY > 0) {\n upperAngle = Math.toDegrees(Math.atan(joystickX / joystickY));\n // Q1 is positive, Q4 is negative\n } else if (joystickY < 0) {\n upperAngle = -(Math.toDegrees(Math.atan(joystickX / joystickY)));\n // Q2 is negative, Q3 is positive\n joystickYPositive = false;\n } else {\n upperAngle = 0;\n }\n\n double speedModifier = 1 - (Math.abs(upperAngle) / 45);\n double vectorMagnitude = Math.hypot(joystickX, joystickY); // The power of the motors\n\n double leftPower = 0;\n double rightPower = 0;\n // Determining which side\n if (upperAngle > 0 && upperAngle < 90) {\n if (joystickYPositive = true) {\n leftPower = vectorMagnitude;\n rightPower = speedModifier;\n } else if (joystickYPositive = false) {\n leftPower = -vectorMagnitude;\n rightPower = -speedModifier;\n }\n } else if (upperAngle < 0 && upperAngle > -90) {\n if (joystickYPositive = true) {\n leftPower = speedModifier;\n rightPower = vectorMagnitude;\n } else if (joystickYPositive = false) {\n leftPower = -speedModifier;\n rightPower = -vectorMagnitude;\n }\n } else {\n leftPower = 0;\n rightPower = 0;\n }\n\n leftPower = Range.clip(leftPower, -1, 1);\n rightPower = Range.clip(rightPower, -1, 1);\n\n motorL.setPower(leftPower); // Sets the motor power equal to\n motorR.setPower(rightPower); // each's respective power\n // Example scenario: x = 0, y = 1 -- robot should move forward\n // Example scenario: x = -1, y = 0 -- robot should rotate, motorR forward and motorL backwards\n\n /* -------------------------------------------------------------------------------------- */\n\n /** Add telemetry here **/\n /* -------------------------------------------------------------------------------------- */\n telemetry.addData(\"Angle\", upperAngle);\n telemetry.addData(\"Motor Power\", vectorMagnitude);\n telemetry.addData(\"Speed Modifier\", speedModifier);\n\n telemetry.addData(\"Left Motor Power\", leftPower); // Adds telemetry\n telemetry.addData(\"Right Motor Power\", rightPower);\n\n /* - UPDATE TELEMETRY - */\n telemetry.update(); // Updates telemetry\n /* -------------------------------------------------------------------------------------- */\n }", "title": "" }, { "docid": "334be88c833875018367842ee7328e12", "score": "0.58272916", "text": "public RobotContainer() {\r\n SmartDashboard.putData(\"Calibrate\", new Calibrate(chassis));\r\n if (Constants.isRobotA) {\r\n compressor = new Compressor(RobotA.pcmPort);\r\n } else {\r\n compressor = new Compressor(RobotB.pcm1Port);\r\n }\r\n\r\n \r\n m_climb.drumSubsystem.setDefaultCommand(new DrumCommand(m_climb, secondaryController));\r\n m_climb.telescopeSubsystem.setDefaultCommand(new TelescopeCommand(m_climb, secondaryController));\r\n\r\n // Configure the button bindings\r\n configureButtonBindings();\r\n /*\r\n * m_chooser.setDefaultOption(\"Power\", new PowerDrive(chassis, inputDevice));\r\n * m_chooser.addOption(\"Velocity\", new VelocityDrive(chassis, inputDevice));\r\n * SmartDashboard.putData(\"Driving Type\", m_chooser);\r\n */\r\n // SmartDashboard.putData(\"go2Pose\", new InstantCommand(() ->{\r\n // chassis.resetOdometry(new Pose2d(3 , -2, Rotation2d.fromDegrees(180)));\r\n // }, chassis).andThen(new Go2Pose(1, new Translation2d(2, -2), chassis, true)));\r\n // SmartDashboard.putData(\"test reset gyro\" , new InstantCommand(() ->{\r\n // chassis.resetGyro(90);\r\n // }, chassis));\r\n // SmartDashboard.putData(\"go straight\", getMovingStraightCommand());\r\n // SmartDashboard.putData(\"turn by degrees\", getTurnByDegreesCommand());\r\n // SmartDashboard.putData(\"angle test\", new AngleTest(chassis));\r\n // SmartDashboard.setDefaultString(\"Path Following\", \"Test\");\r\n // SmartDashboard.putData(\"Path Follow test\", getPathFollowingCommand());\r\n\r\n /*\r\n * method_chooser.setDefaultOption(\"2 Joystick\", DrivingMethods.JS_2);\r\n * method_chooser.addOption(\"1 Joystick\", DrivingMethods.JS_1);\r\n * method_chooser.addOption(\"xbox 1 stick\", DrivingMethods.XBOX_1Stick);\r\n * method_chooser.addOption(\"xbox 2 sticks\", DrivingMethods.XBOX_2Sticks);\r\n * method_chooser.addOption(\"XBOX - ORBIT - ULTRA - MODE\",\r\n * DrivingMethods.XBOX_Orbit); method_chooser.addOption(\"Yorgen Mode\",\r\n * DrivingMethods.YorgenMode); method_chooser.addOption(\"Einziger\",\r\n * DrivingMethods.Einziger); SmartDashboard.putData(\"Driving method\",\r\n * method_chooser);\r\n */\r\n }", "title": "" }, { "docid": "2d95d22f864a91ac0fc89055cce09108", "score": "0.5824965", "text": "public void handsOnDemoModeArmControl()\n {\n //If the left button is pressed, go left. If the right is pressed, go right\n double gimbal = 0.0;\n if (RobotMap.leftGimbalButton.get())\n gimbal = RobotMap.GIMBAL_SPEED;\n else if (RobotMap.rightGimbalButton.get())\n gimbal = -RobotMap.GIMBAL_SPEED;\n\n //if th grabber button is pressed, GRAB BOI\n if (RobotMap.grabberButton.getButtonPressed())\n {\n if (RobotMap.grabberIsGrabbed)\n RobotMap.grabberSolenoid.set(Value.kReverse);\n else\n RobotMap.grabberSolenoid.set(Value.kForward);\n \n //Invert the flag\n RobotMap.grabberIsGrabbed = !RobotMap.grabberIsGrabbed;\n }\n\n RobotMap.armSubsystem.moveArmAtSpeed(\n RobotMap.firstArmSegmentJoystick.getY(),\n RobotMap.secondArmSegmentJoystick.getY(),\n RobotMap.wristJoystick.getY(),\n gimbal);\n }", "title": "" }, { "docid": "881f554f2fcc16f69f4eafa961f1c0c5", "score": "0.58144855", "text": "public static void main(String[] args) {\n\t\t\n\t\tList<Movement> movements = new ArrayList<Movement>();\n\n\t\tmovements.add(Movement.FORWARD);\n\t\tmovements.add(Movement.FORWARD);\n\t\tmovements.add(Movement.LEFT);\n\t\tmovements.add(Movement.FORWARD);\n\t\tmovements.add(Movement.FORWARD);\n\n\t\tint turnangle = 255;\n\t\t\n\t leftMotor.setSpeed(200);\n\t rightMotor.setSpeed(200);\n\t \n\t\tfloat desiredDistance = 6.0f;\n\t\t\n\t\tdouble oneRotationMovement = Math.PI * wheelD;\n\t\tSystem.out.println(\"One rotation = \" + oneRotationMovement);\n\t\t\n\t\tdouble turns = desiredDistance / oneRotationMovement;\n\t\tSystem.out.println(\"Need to do \" + turns + \" rotations\");\n\t\t\n\t\tdouble degrees = turns * 360;\n\t\t\n\t\tRegulatedMotor[] motors = new RegulatedMotor[1];\n\t\tmotors[0] = rightMotor;\n\t\t\n\t\t//leftMotor.synchronizeWith(m);\n\t\tfor ( Movement m : movements){\n\t\t\tSystem.out.println(\"Moving\");\n\t\t\t\n\t\t\tswitch (m){\n\t\t\t\tcase FORWARD:\n\t\t\t\t\tMovements.MoveForward(leftMotor, rightMotor, (int)degrees);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LEFT:\n\t\t\t\t\tMovements.RotateLeft(leftMotor, rightMotor, (int)turnangle);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t \t\tDelay.msDelay(2000);\n\n\t\t}\n\n\n\t\trightMotor.close();\n\t\tleftMotor.close();\n\t\t\n\t}", "title": "" }, { "docid": "18c9fbf6fb34ba6ea251526498acf480", "score": "0.58126634", "text": "protected void execute() {\n \tJoystick control = Robot.oi.xBoxController;\n \tdouble speed = -control.getRawAxis(1) * 0.7;\n \tdouble turn = control.getRawAxis(4) * 0.7;\n \tWheelMotors.robotDriveSystem.arcadeDrive(speed, turn);\n }", "title": "" }, { "docid": "96bee808eac35b7b6da8f5d1ee3d5d19", "score": "0.5806766", "text": "@Override\n public void autonomousPeriodic()\n {\n //The number of inches the right wheel has moved\n double right = drivetrain.getRightDistanceInch();\n\n //The number of inches the left wheel has moved\n double left = drivetrain.getLeftDistanceInch();\n\n //The angle (z-axis) our robot has rotated\n double angle = drivetrain.getAngle();\n\n //How to drive the robot\n //drivetrain.arcadeDrive(forwardSpeed, rotationSpeed);\n }", "title": "" }, { "docid": "f8261369970639093ca91634b6ece966", "score": "0.5802643", "text": "@Override\n public void loop () {\n\n double drive = -gamepad1.left_stick_y;\n double turn = gamepad1.right_stick_x;\n\n // calculating power for left and right wheels using previous variables\n\n left = drive + turn;\n right = drive - turn;\n\n // making sure left and right don't go over set maxvalue which is 0.8\n\n MAXVALUE = Math.max(Math.abs(left), Math.abs(right));\n if (MAXVALUE > 1.0)\n {\n left /= MAXVALUE;\n right /= MAXVALUE;\n }\n\n // giving power to all motors\n robot.leftBack.setPower(left);\n robot.rightBack.setPower(right);\n robot.leftFront.setPower(left);\n robot.rightFront.setPower(right);\n\n /* if (drive == 0){\n for (double i=drive; i == 0; i-=0.1) {\n robot.rightFront.setPower(i);\n robot.leftFront.setPower(i);\n robot.leftBack.setPower(i);\n robot.rightBack.setPower(i);\n }\n } */\n\n // if statement to check if triggers are being pressed at all, if they are then give power to right motors\n // if right trigger is pressed then strafe right\n boolean G1rightBumper = gamepad1.right_bumper;\n boolean G1leftBumper = gamepad1.left_bumper;\n\n if(G1rightBumper){\n robot.leftBack.setPower(MAXVALUE);\n robot.leftFront.setPower(-MAXVALUE);\n robot.rightBack.setPower(-MAXVALUE);\n robot.rightFront.setPower(MAXVALUE);\n }\n else if(G1leftBumper){\n robot.leftBack.setPower(-MAXVALUE);\n robot.leftFront.setPower(MAXVALUE);\n robot.rightBack.setPower(MAXVALUE);\n robot.rightFront.setPower(-MAXVALUE);\n }\n\n\n }", "title": "" }, { "docid": "cd680774da6d283db379fc6cf09be5e3", "score": "0.57990974", "text": "public void driveWithJoystick(Joystick stick) {\n\n //creates variables for joystick x and y values\n double zRotation = ThrottleScale(Math.abs(stick.getY()* 1), stick.getRawAxis(4)* -1);\n double xSpeed = JoystickDeadBand(stick.getY()* 1);\n\n //uses joystick to do driving thing\n drRobotDrive.curvatureDrive(xSpeed, zRotation, true);\n\n // double dSquareFactor2 = SmartDashboard.getNumber(\"dSquareFactor\", dSquareFactor);\n // double dThrottleFactor2 = SmartDashboard.getNumber(\"dThrottleFactor\", dThrottleFactor);\n\n // if((dSquareFactor2 != dSquareFactor)) {dSquareFactor = dSquareFactor2;}\n // if((dThrottleFactor2 != dThrottleFactor)) {dThrottleFactor = dThrottleFactor2;}\n }", "title": "" }, { "docid": "4490966cc4037c8d47cb80fbc38cab7d", "score": "0.5797818", "text": "public static void main(String[] args) throws Exception {\r\n\t\tGpioController gpio = GpioFactory.getInstance();\r\n\t\t\r\n\t\tGpioPinPwmOutput motor1pin = gpio.provisionPwmOutputPin(RaspiPin.GPIO_26);\r\n\t\t//GpioPinPwmOutput motor2pin = gpio.provisionPwmOutputPin(RaspiPin.GPIO_23);\r\n\t\t\r\n\t\tcom.pi4j.wiringpi.Gpio.pwmSetMode(com.pi4j.wiringpi.Gpio.PWM_MODE_MS);\r\n com.pi4j.wiringpi.Gpio.pwmSetRange(2000);\r\n com.pi4j.wiringpi.Gpio.pwmSetClock(192);\r\n\t\t\r\n Thread.sleep(1000);\r\n \r\n\t\t//motor1pin.setPwm(240);\r\n\t\t//motor2pin.setPwm(240);\r\n\t\t//System.out.println(\"Connect your power\");\r\n\t //System.in.read();\r\n\t\t\r\n\t\t//motor1pin.setPwm(120);\r\n\t\t//motor2pin.setPwm(120);\r\n\t\t//Thread.sleep(1000);\r\n\t\t//motor1pin.setPwm(0);\r\n\t\t//motor2pin.setPwm(0);\r\n\t\t\r\n\t\t//System.out.println(\"Arming\");\r\n\t //System.in.read();\r\n\t //Thread.sleep(1000);\r\n\t \r\n\t motor1pin.setPwm(140);\r\n\t //motor2pin.setPwm(120);\r\n\t Thread.sleep(1500);\r\n\t motor1pin.setPwm(0);\r\n\t //motor2pin.setPwm(0);\r\n\t \r\n\t\tgpio.shutdown();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f7c8aa1c47a4c4b4f3d79d35bf21cca0", "score": "0.579094", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tif(joy.getRawButton(5)){\n\t\t\tdrivePower = 1;\n\t\t}\n\t\telse{\n\t\t\tdrivePower=.8f;\n\t\t}\n\t\tScheduler.getInstance().run();\n\t\tdrive.tankDrive((-joy.getRawAxis(1) * offsetFactor) * drivePower, -joy.getRawAxis(5) * drivePower);\n\t\t\n\t\t\n\t\t//Straight driving\n\t\tif (joy.getRawButton(6)) {\n\t\t\tdrive.tankDrive((-joy.getRawAxis(1) *offsetFactor) * drivePower, -joy.getRawAxis(1) * drivePower);\n\t\t}\n\t\t\n\t\t//Backwards driving\n\t\tif (joy.getRawButton(3)) {\n\t\t\tdrive.tankDrive((joy.getRawAxis(1) * offsetFactor) * drivePower, joy.getRawAxis(5) * drivePower);\n\t\t\t\n\t\t\t//Backwards and Straight\n\t\t\tif (joy.getRawButton(6)) {\n\t\t\t\tdrive.tankDrive((joy.getRawAxis(1) * offsetFactor) * drivePower, joy.getRawAxis(1) * drivePower);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Pneumatics actuating\n\t\tif (joy.getRawButton(1)) {\n\t\t\tlidPiss.set(DoubleSolenoid.Value.kForward);\n\t\t} else if (joy.getRawButton(2)) {\n\t\t\tlidPiss.set(DoubleSolenoid.Value.kReverse);\n\t\t} else {\n\t\t\tlidPiss.set(DoubleSolenoid.Value.kOff);\n\t\t}\n\t\tif (joy.getRawButton(3)) {\n\t\t\tgearPiss.set(DoubleSolenoid.Value.kForward);\n\t\t} else if (joy.getRawButton(4)) {\n\t\t\tgearPiss.set(DoubleSolenoid.Value.kReverse);\n\t\t}\n\t\n\t\t\n\t//\tgearPiss.set(DoubleSolenoid.Value.kForward);\n\t\n\t\tfound = table.getBoolean(\"found\", false);\n\t\toffset = table.getString(\"centered\", \"default\");\n\t\tdistance = table.getNumber(\"distance\", 100.0);\n\t\t\n\n\t\ttestTime++;\n\t\ttable.putNumber(\"time\", testTime);\n\t\tSystem.out.println(testTime);\n\t\tSystem.out.println(\"Found?\" + found + \"offset?\" + offset + \"distance\" + distance);\n\t\t\n\t\t//System.out.println(\"Gyro: \" + imu.getYaw());\n\t\tSystem.out.println(\"Left Encoder:\" + leftEncoder.get() + \"Right Encoder: \"+rightEncoder.get());\n\t\tSystem.out.println(\"Left Joy: \" + joy.getRawAxis(1) + \"Right Joy: \" + joy.getRawAxis(5));\n\t\tif(joy.getRawButton(9)){\n\t\t\tresetEncoders();\n\t\t} if(joy.getRawButton(10)){\n\t\t\timu.zeroYaw();\n\t\t}\n\t}", "title": "" }, { "docid": "aa45f1428b7efe3f1bb1b0a406267fdd", "score": "0.5789613", "text": "@Override\n public void teleopPeriodic() \n {\n //Drivetrain control and driver assist\n if(lJoy.getRawButton(Constants.LJoy.LIMELIGHT_ALIGN_BUTTON) || rJoy.getRawButton(Constants.RJoy.LIMELIGHT_ALIGN_BUTTON)) \n {\n //Line up with bay and deliver panel\n if(initDriverAssist)\n {\n //Make sure PIDs are turned off \n drive.disableDriverAssist();\n initDriverAssist = false;\n }\n\n if(!deliverDone && drive.limeLightAlign()) \n {\n //Stop lining up with limelight when done.\n deliverDone = true;\n }\n } \n else if(lJoy.getRawButton(Constants.LJoy.TURN_FIELD_BUTTON_0))\n {\n if(initDriverAssist)\n {\n drive.rotateToAngle(0);\n initDriverAssist= false;\n }\n }\n else if(lJoy.getRawButton(Constants.LJoy.TURN_FIELD_BUTTON_90))\n {\n if(initDriverAssist)\n {\n drive.rotateToAngle(90);\n initDriverAssist= false;\n }\n }\n else if(lJoy.getRawButton(Constants.LJoy.TURN_FIELD_BUTTON_180))\n {\n if(initDriverAssist)\n {\n drive.rotateToAngle(180);\n initDriverAssist= false;\n }\n }\n else if(lJoy.getRawButton(Constants.LJoy.TURN_FIELD_BUTTON_270))\n {\n if(initDriverAssist)\n {\n drive.rotateToAngle(270);\n initDriverAssist= false;\n }\n }\n else if(rJoy.getRawButton(Constants.RJoy.TURN_ROBOT_BUTTON_NEG45))\n {\n if(initDriverAssist)\n {\n drive.beginRelativeTurn(-45);\n initDriverAssist = false;\n }\n }\n else if(rJoy.getRawButton(Constants.RJoy.TURN_ROBOT_BUTTON_45))\n {\n if(initDriverAssist)\n {\n drive.beginRelativeTurn(45);\n initDriverAssist = false;\n }\n }\n else \n { \n //Control drive train using joysticks with a dead zone\n //Get joystick values and make correct direction and with a dead zone\n double rPower = -rJoy.getY();\n if(Math.abs(rPower) < Constants.RJoy.DEAD_ZONE)\n {\n rPower = 0.0;\n }\n double lPower = -lJoy.getY();\n if(Math.abs(lPower) < Constants.LJoy.DEAD_ZONE)\n {\n lPower = 0.0;\n }\n\n // Drive straight\n if(rJoy.getRawButton(Constants.RJoy.DRIVE_STRAIGHT_BUTTON))\n {\n if(initDriverAssist)\n {\n drive.driveStraight(lPower, true);\n initDriverAssist = false;\n }\n else\n {\n drive.driveStraight(lPower, false);\n }\n }\n else if(lJoy.getRawButton(Constants.LJoy.DRIVE_STRAIGHT_BUTTON))\n {\n if(initDriverAssist)\n {\n drive.driveStraight(rPower, true);\n initDriverAssist = false;\n }\n else\n {\n drive.driveStraight(rPower, false);\n } \n }\n else\n {\n //Disable PIDs from driver assist and sets boolean flags for driver assist being done\n if(!initDriverAssist)\n {\n drive.disableDriverAssist();\n initDriverAssist = true;\n deliverDone = false;\n\n if(encoderDrive)\n {\n drive.driveEncoderLeft(0.0, true);\n drive.driveEncoderRight(0.0, true);\n }\n }\n\n //Set powers equal to go straight if joysticks are close enough together\n if(Math.abs(rPower - lPower) < 0.05)\n {\n double power = (rPower + lPower) / 2;\n rPower = power;\n lPower = power;\n }\n\n //Set motor power using joysticks\n if(encoderDrive)\n {\n //Square powers while maintaining negatives for encoder drive only\n if(rPower > 0)\n {\n rPower *= rPower;\n }\n else\n {\n rPower *= -rPower;\n }\n if(lPower > 0)\n {\n lPower *= lPower;\n }\n else\n {\n lPower *= -lPower;\n }\n drive.driveEncoderLeft(lPower, false);\n drive.driveEncoderRight(rPower, false);\n }\n else\n {\n drive.setRight(rPower);\n drive.setLeft(lPower);\n }\n } \n }\n\n //Arm position control\n if(xBox.getRawButton(Constants.XBox.ARM_DOWN_BUTTON))\n {\n cargoTransport.setArmPosition(ArmPosition.ARM_DOWN);\n }\n else if(xBox.getRawButton(Constants.XBox.ROCKET_BACK_BUTTON))\n {\n cargoTransport.setArmPosition(ArmPosition.ROCKET_BACK);\n }\n else if(xBox.getRawButton(Constants.XBox.SHIP_BACK_BUTTON))\n {\n cargoTransport.setArmPosition(ArmPosition.SHIP_BACK);\n }\n else if(xBox.getRawButton(Constants.XBox.SHIP_FORWARD_BUTTON))\n {\n cargoTransport.setArmPosition(ArmPosition.SHIP_FORWARD);\n }\n\n //Roller speed control\n if(xBox.getRawButton(Constants.XBox.INTAKE_CARGO_BUTTON))\n {\n cargoTransport.setRoller(0.8);\n }\n else\n {\n cargoTransport.setRoller(-xBox.getRawAxis(Constants.XBox.OUTTAKE_CARGO_AXIS) * 0.8);\n }\n\n //Panel transport control\n panelTransport.setPanelHold(!xBox.getRawButton(Constants.XBox.PANEL_HOLDER_BUTTON));\n panelTransport.setPusherOut(xBox.getRawAxis(Constants.XBox.PANEL_PUSHER_AXIS) > 0.25);\n\n //Climb if match time is in last 30 seconds and button is pushed\n //or when 2 buttons are pushed in case match time is incorrect\n if((xBox.getRawButton(Constants.XBox.CLIMB_BUTTON) && DriverStation.getInstance().getMatchTime() <= 20)\n || (xBox.getRawButton(Constants.XBox.CLIMB_BUTTON) && xBox.getRawButton(Constants.XBox.CLIMB_OVERRIDE_BUTTON))\n || (lJoy.getRawButton(1) && lJoy.getRawButton(2) && rJoy.getRawButton(1) && rJoy.getRawButton(2)))\n { \n antiClimber.set(false);\n climber.set(true);\n }\n \n //Override Control\n if(xBox.getRawButton(Constants.XBox.TOGGLE_ARM_OVERRIDE_BUTTON))\n { \n //Only toggle once per button push\n if(tempIsOverride)\n {\n //Toggle cargo arm PID\n cargoTransport.togglePID();\n armOverride = !armOverride;\n tempIsOverride = false;\n }\n }\n else if(lJoy.getRawButton(Constants.LJoy.TOGGLE_ENCODER_DRIVE) || rJoy.getRawButton(Constants.RJoy.TOGGLE_ENCODER_DRIVE))\n {\n if(tempIsOverride)\n {\n tempIsOverride = false;\n encoderDrive = !encoderDrive;\n initDriverAssist = false;\n }\n }\n else\n {\n //Allow for toggle after button is released\n tempIsOverride = true;\n }\n\n //Sets arm motor power during override mode\n if(armOverride)\n {\n cargoTransport.overrideArm(xBox.getRawAxis(Constants.XBox.ARM_OVERRIDE_AXIS));\n }\n\n if(lJoy.getRawButton(Constants.LJoy.RESET_NAVX_BUTTON) || rJoy.getRawButton(Constants.RJoy.RESET_NAVX_BUTTON))\n {\n drive.resetNavx();\n }\n\n Util.threadSleep(1);\n }", "title": "" }, { "docid": "fdcbe72715ed1da8d2a1f30e4c09dc8f", "score": "0.577184", "text": "@Override\r\n public void runOpMode() {\n Beholder robot = new Beholder(this);\r\n\r\n //Now we call the initialization method.\r\n robot.init();\r\n\r\n // Wait until the start button is clicked!\r\n waitForStart();\r\n\r\n //Now we start the logging of measured acceleration.\r\n robot.imu.startAccelerationIntegration(new Position(), new Velocity(), 1000);\r\n\r\n //Now we drive to the lip of the crater & knock off the center mineral.\r\n robot.Drive(DRIVE_SPEED, 32);\r\n sleep(100);\r\n\r\n //Now we back up so as to not hit the other minerals.\r\n robot.Drive(DRIVE_SPEED, -10);\r\n sleep(100);\r\n\r\n //Now we turn to be parallel with the markers for the minerals.\r\n robot.Turn(90, DRIVE_SPEED);\r\n sleep(100);\r\n\r\n //Now we drive towards our alliance's wall and stop short.\r\n robot.Drive(DRIVE_SPEED, 50);\r\n sleep(100);\r\n\r\n //Now we turn to face the alliance depot.\r\n robot.Turn(30,DRIVE_SPEED);\r\n sleep(100);\r\n\r\n //Now we drive to the alliance depot.\r\n robot.Drive(DRIVE_SPEED, 40);\r\n sleep(100);\r\n\r\n //Now we drop off our game piece.\r\n robot.Intake1.setPower(-1);\r\n robot.Intake2.setPower(1);\r\n sleep(3000);\r\n robot.Intake1.setPower(0);\r\n robot.Intake2.setPower(0);\r\n\r\n //Now we drive backwards across the field and into the crater.\r\n robot.Drive(DRIVE_SPEED, -95);\r\n\r\n //Now we manually stop, just in case.\r\n robot.StopDriving();\r\n }", "title": "" }, { "docid": "dbdeb7757de41cf5c046c5bdf2827e6a", "score": "0.577053", "text": "public Robot(HardwareMap hardwareMap){\n DcMotor main1 = hardwareMap.dcMotor.get(\"main1\");\n DcMotor main2 = hardwareMap.dcMotor.get(\"main2\");\n DcMotor minor1 = hardwareMap.dcMotor.get(\"minor1\");\n DcMotor minor2 = hardwareMap.dcMotor.get(\"minor2\");\n\n MecanumDrive mecanumDrive = new MecanumDrive(main1, main2, minor1, minor2);\n\n setDrivetrain(mecanumDrive);\n\n\n //change mecanum drive to have sides\n main2.setDirection(DcMotorSimple.Direction.REVERSE);\n minor2.setDirection(DcMotorSimple.Direction.REVERSE);\n\n main1.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n main2.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n minor1.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n minor2.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n //minor1.setDirection(DcMotorSimple.Direction.REVERSE); for some reason after changing the motor this isn't needed\n\n mecanumDrive.setModes(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n }", "title": "" }, { "docid": "c5db20cb5d45fe82575d5078ecb9c80a", "score": "0.57451016", "text": "@Override\n\tpublic void robotInit() {\n\t\t//Autonomous selector setup onto the SmartDashboard\n\t\tautonomousChooser.addDefault(\"Do Nothing\", doNothingAuto);\n\t\tautonomousChooser.addObject(\"Drive Forward\", driveForwardAuto);\n\t\tautonomousChooser.addObject(\"Center Gear\", centerGearAuto);\n\t\tautonomousChooser.addObject(\"Left Gear\", leftGearAuto);\n\t\tautonomousChooser.addObject(\"Right Gear\", rightGearAuto);\n\t\tSmartDashboard.putData(\"Auto choices\", autonomousChooser);\n\t\t\n\t\t\n\t\t//Robot class method calls\n\t\tdisplaySettings();\n\t\tsetConstants();\n\t\t\n\t\t\n\t\t//manipulator stick instantiations\n\t\tmanipulatorStick = new Joystick(MANIPULATOR_STICK_PORT);\n\t\tgearPanButton = new Toggle(manipulatorStick, GEAR_PAN_BUTTON);\n\t\t\n\t\t//mobility stick instantiations\n\t\tmobilityStick = new Joystick(MOBILITY_STICK_PORT);\n\t\tarcadeDriveYAxis = DeadZone.deadZone(mobilityStick.getRawAxis(ARCADE_DRIVE_Y_AXIS));\n\t\tarcadeDriveRotateAxis = DeadZone.deadZone(mobilityStick.getRawAxis(ARCADE_DRIVE_ROTATE_AXIS));\n\t\tmecanumDriveYAxis = DeadZone.deadZone(mobilityStick.getRawAxis(MECANUM_DRIVE_Y_AXIS));\n\t\tmecanumDriveXAxis = DeadZone.deadZone(mobilityStick.getRawAxis(MECANUM_DRIVE_X_AXIS));\n\t\tmecanumDriveRotateAxis = DeadZone.deadZone(mobilityStick.getRawAxis(MECANUM_DRIVE_ROTATE_AXIS));\n\t\tdriveSwitchButton = new Toggle(mobilityStick, DRIVE_SWITCH_BUTTON);\n\t\t\n\t\t//motor controller instantiations\n\t\tintakeMotor = new WPI_TalonSRX(INTAKE_MOTOR_PORT);\n\t\tshooterMotor = new WPI_TalonSRX(SHOOTER_MOTOR_PORT);\n\t\taugerMotor = new WPI_TalonSRX(AUGER_MOTOR_PORT);\n\t\tclimberMotor = new WPI_TalonSRX(CLIMBER_MOTOR_PORT);\n\t\t\n\t\tfrontLeftMotor = new WPI_TalonSRX(FRONT_LEFT_MOTOR_PORT);\n\t\trearLeftMotor = new WPI_TalonSRX(REAR_LEFT_MOTOR_PORT);\n\t\tleftMotors = new SpeedControllerGroup(frontLeftMotor, rearLeftMotor);\n\t\t\n\t\tfrontRightMotor = new WPI_TalonSRX(FRONT_RIGHT_MOTOR_PORT);\n\t\trearRightMotor = new WPI_TalonSRX(REAR_LEFT_MOTOR_PORT);\n\t\trightMotors = new SpeedControllerGroup(frontRightMotor, rearLeftMotor);\n\t\t\n\t\t//solenoid instantiations\n\t\tgearPanSolenoid = new Solenoid(GEAR_PAN_SOLENOID_PORT);\n\t\tfrontLeftSolenoid = new Solenoid(FRONT_LEFT_SOLENOID_PORT);\n\t\trearLeftSolenoid = new Solenoid(REAR_LEFT_SOLENOID_PORT);\n\t\tfrontRightSolenoid = new Solenoid(FRONT_RIGHT_SOLENOID_PORT);\n\t\trearRightSolenoid = new Solenoid(REAR_RIGHT_SOLENOID_PORT);\n\t\t\n\t\t//other instantiations\n\t\tdifferentialDrive = new DifferentialDrive(leftMotors, rightMotors);\n\t\tmecanumDrive = new MecanumDrive(frontLeftMotor, rearLeftMotor, frontRightMotor, rearRightMotor);\n\t\tgyro = new AHRS(SPI.Port.kMXP);\n\t\t\n\t\t//project class instantiations\n\t\tshooter = new Shooter(this);\n\t\tintake = new Intake(this);\n\t\tclimber = new Climber(this);\n\t\tdrive = new Drive(this);\n\t\tautonomousMethods = new AutonomousMethods(this);\n\t\tautonomousPrograms = new AutonomousPrograms(this);\n\t\t\n\t\tsetInverts();\n\t}", "title": "" }, { "docid": "230cd2e0ddcabe9fbd684bf53c4782c8", "score": "0.57439226", "text": "public void run() {\n\t\twhile (true) {\n\t\t\t// currentAngle = getHeading();\n\t\t\t// angleLock(joy.getAxisGreaterThan(0, 0.1),\n\t\t\t// joy.getAxisGreaterThan(1, 0.1), joy.getAxisGreaterThan(2, 0.1),\n\t\t\t// currentAngle);\n\t\t\tif (autoDrive) {\n\t\t\t\t// currentAngle = getHeading();\n\t\t\t\t// angleLock();\n\t\t\t\t// System.out.println(\"Distance: \" + ultra.getDistance());\n\t\t\t\t// System.out.println(\"Voltage: \" + ultra.getVoltage());\n\t\t\t\t// checking in centimeters\n\t\t\t\tif (ultra.getDistance() < STOPPING_DISTANCE) {\n\t\t\t\t\tSystem.out.println(\"distance less than STOPPING_DISTANCE, drive stopped\");\n\t\t\t\t\tdrive(0, 0, 0, 0);\n\t\t\t\t} else {\n\t\t\t\t\tmecanumDrive(Drive.xaxis, Drive.yaxis, Drive.zaxis, Drive.angle);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmecanumDrive(Drive.xaxis, Drive.yaxis, Drive.zaxis, Drive.angle);\n\t\t}\n\t}", "title": "" }, { "docid": "dd1cbf790a13c72188021fa157abdfd8", "score": "0.5739779", "text": "public void turn(){\n encoderDrive(.3, -4, -4.5, 5);\n sleep(1000);\n encoderDrive(.3, -6, 6, 5);\n sleep(1000); \n encoderDrive(.3, 13, 13, 5);\n sleep(1000);\n encoderDrive(.3, -6, 6, 5);\n sleep(1000);\n encoderDrive(.3, 4, 4, 5); \n }", "title": "" }, { "docid": "444083ef54674c926a0f2b7f75857e3e", "score": "0.573621", "text": "@Override\n public void runOpMode() {\n cBot.init(hardwareMap);\n\n drive = new DirectDrive(cBot, telemetry, this);\n stone = new Stone(cBot, telemetry, this);\n intake = new Intake(cBot, telemetry, this);\n colorDistance = new ColorDistance(cBot, telemetry, this);\n\n\n //cBot.leftIntake.setPower(0.4);\n //cBot.rightIntake.setPower(0.4);\n\n waitForStart();\n\n //intake.start();\n\n drive.driveByProximity(0.5, 1.2);\n\n\n //intake.stop();\n\n\n /*drive.forward(2, 0.3, 100);\n intake.stop();\n drive.rotateRight(10, 0.5);\n drive.forward(20, 0.3,100);\n */\n\n }", "title": "" }, { "docid": "12ddf9c58ea4ec1f4c4b720592e2a5e0", "score": "0.5727906", "text": "private void mecanumDrive(double xaxis, double yaxis, double raxis, double gyroAngle) {\n\n\t\tdouble xIn = xaxis;\n\t\tdouble yIn = yaxis;\n\t\t// Negate y for the joystick.\n\t\tyIn = -yIn;\n\t\traxis = -raxis;\n\t\t// Compensate for gyro angle.\n\t\tdouble[] rotated = rotateVector(xIn, yIn, gyroAngle);\n\t\txIn = rotated[0];\n\t\tyIn = rotated[1];\n\n\t\tif (numMotors == 4) {\n\t\t\t// had to change new double[numMotors] to 14 so we can use\n\t\t\t// motor #s > 4\n\t\t\tdouble[] wheelSpeeds = new double[14];\n\t\t\twheelSpeeds[0] = xIn + yIn + raxis;\n\t\t\twheelSpeeds[9] = -xIn + yIn - raxis;\n\t\t\twheelSpeeds[8] = -xIn + yIn + raxis;\n\t\t\twheelSpeeds[1] = xIn + yIn - raxis;\n\n\t\t\tnormalize(wheelSpeeds);\n\t\t\tfrontLeftMotor1.set(wheelSpeeds[0]);\n\t\t\tfrontRightMotor1.set(wheelSpeeds[9]);\n\t\t\tbackLeftMotor1.set(wheelSpeeds[8]);\n\t\t\tbackRightMotor1.set(wheelSpeeds[1]);\n\n\t\t} else {\n\t\t\tdouble[] wheelSpeeds = new double[numMotors];\n\t\t\twheelSpeeds[0] = xIn + yIn + raxis;\n\t\t\twheelSpeeds[1] = xIn + yIn + raxis;\n\t\t\twheelSpeeds[2] = -xIn + yIn - raxis;\n\t\t\twheelSpeeds[3] = -xIn + yIn - raxis;\n\t\t\twheelSpeeds[4] = -xIn + yIn + raxis;\n\t\t\twheelSpeeds[5] = -xIn + yIn + raxis;\n\t\t\twheelSpeeds[6] = xIn + yIn - raxis;\n\t\t\twheelSpeeds[7] = xIn + yIn - raxis;\n\n\t\t\tnormalize(wheelSpeeds);\n\t\t\tfrontLeftMotor1.set(wheelSpeeds[0]);\n\t\t\tfrontLeftMotor2.set(wheelSpeeds[1]);\n\t\t\tfrontRightMotor1.set(wheelSpeeds[2]);\n\t\t\tfrontRightMotor2.set(wheelSpeeds[3]);\n\t\t\tbackLeftMotor1.set(wheelSpeeds[4]);\n\t\t\tbackLeftMotor2.set(wheelSpeeds[5]);\n\t\t\tbackRightMotor1.set(wheelSpeeds[6]);\n\t\t\tbackRightMotor2.set(wheelSpeeds[7]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "9df295458e19f205ca4d49e21ea64470", "score": "0.57245404", "text": "@Override\n public void runOpMode() {\n stanga0 = hardwareMap.dcMotor.get(\"stanga0\");\n dreapta1 = hardwareMap.dcMotor.get(\"dreapta1\");\n s0 = hardwareMap.crservo.get(\"s0\");\n s1=hardwareMap.crservo.get(\"s1\");\n s2=hardwareMap.crservo.get(\"s2\");\n arm2 = hardwareMap.dcMotor.get(\"arm2\");\n extension3 =hardwareMap.dcMotor.get(\"extension3\");\n\n // Reverse one of the drive motors.\n // You will have to determine which motor to reverse for your robot.\n // In this example, the right motor was reversed so that positive\n // applied power makes it move the robot in the forward direction.\n stanga0.setDirection(DcMotorSimple.Direction.REVERSE);\n// dreapta1.setDirection(DcMotorSimple.Direction.REVERSE);\n\n waitForStart();\n if (opModeIsActive()) {\n // Put run blocks here.\n while (opModeIsActive()) {\n // Put loop blocks here.\n // Use left stick to drive and right stick to turn\n // The Y axis of a joystick ranges from -1 in its topmost position\n // to +1 in its bottommost position. We negate this value so that\n // the topmost position corresponds to maximum forward power.\n stanga0.setPower(-gamepad1.left_stick_y + gamepad1.right_stick_x);\n dreapta1.setPower(-gamepad1.left_stick_y - gamepad1.right_stick_x);\n\n while (gamepad1.dpad_up) {\n arm2.setPower(-0.5);\n }\n while (gamepad1.dpad_down) {\n arm2.setPower(0.5);\n }\n while (gamepad1.left_trigger>0) {\n arm2.setPower(-1);\n }\n while (gamepad1.right_trigger>0) {\n arm2.setPower(1);\n }\n while(gamepad1.dpad_left){\n extension3.setPower(1);\n }\n while(gamepad1.dpad_right){\n extension3.setPower(-1);\n }\n while (gamepad1.right_bumper) {\n s0.setPower(1);\n }\n while (gamepad1.left_bumper) {\n s0.setPower(-1);\n }\n while(gamepad1.a){\n s1.setPower(-1);\n s2.setPower(1);\n }\n while(gamepad1.y)\n {\n s1.setPower(1);\n s2.setPower(-1);\n }\n while (gamepad1.left_stick_button) {\n s0.setPower(0);\n }\n s1.setPower(0);\n s2.setPower(0);\n\n arm2.setPower(0);\n extension3.setPower(0);\n arm2.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n extension3.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n telemetry.addData(\"Left Pow\", stanga0.getPower());\n telemetry.addData(\"Right Pow\", dreapta1.getPower());\n telemetry.update();\n }\n }\n }", "title": "" }, { "docid": "fd447ab906fdbb5df25c428a6edc1331", "score": "0.5723788", "text": "public void run() {\n\t\tlong updateStart, updateEnd;\n\n\t\twhile (true) {\n\t\t\tupdateStart = System.currentTimeMillis();\n\t\t\t\n\t\t\t//Update odometer based on tachometer count\n\t\t\tdouble distL, distR, deltaD, deltaT, dX, dY = 0;\n\t\t\t\n\t\t\tsynchronized (lock) {\n\t\t\t\t//Get the Tacho count of the Motor\n\t\t\t\tnowTachoL = Robot.LEFT_WHEEL.getTachoCount();\n\t\t\t\tnowTachoR = Robot.RIGHT_WHEEL.getTachoCount();\n\t\t\t\t\n\t\t\t\t//Get Distance traveled based on the movement of the left and right wheels\n\t\t\t\tdistL = Math.PI * Robot.WHEEL_RADIUS * (nowTachoL - lastTachoL) / 180;\n\t\t\t\tdistR = Math.PI * Robot.WHEEL_RADIUS * (nowTachoR - lastTachoR) / 180;\n\t\t\t\t\n\t\t\t\t//Store previous Tacho Count\n\t\t\t\tlastTachoL = nowTachoL;\n\t\t\t\tlastTachoR = nowTachoR;\n\t\t\t\t\n\t\t\t\t//Distance traveled by the center of the wheel base\n\t\t\t\tdeltaD = 0.5*(distL + distR);\n\t\t\t\t\n\t\t\t\t//Difference in heading from previous reading\n\t\t\t\tdeltaT = (distL - distR) / (Robot.WHEEL_BASE * Robot.ANGLE_CORRECTION);\n\t\t\t\n\t\t\t\t\n\t\t\t\t//Update heading\n\t\t\t\ttheta += deltaT;\n\t\t\t\t\n\t\t\t\t//Keep theta within the range of 0 - 2pi\n\t\t\t\tif (theta > 2*Math.PI){\n\t\t\t\t\ttheta -= 2*Math.PI;\n\t\t\t\t}\n\t\t\t\tif (theta < 0){\n\t\t\t\t\ttheta += 2*Math.PI;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t dX = deltaD * Math.sin(theta);\n\t\t\t\tdY = deltaD * Math.cos(theta);\n\t\t\t\t\n\t\t\t\t//Add distance traveled in X and Y to the previous values\n\t\t\t\tx = x + dX;\n\t\t\t\ty = y + dY;\n\t\t\t}\n\t\t\t\n\t\t\tRobot.debugSet(\"X: \" + (int)x, 0, 0, true);\n\t\t\tRobot.debugSet(\"Y: \" + (int)y, 0, 1, true);\n\t\t\tRobot.debugSet(\"T: \" + (int)(theta*180/Math.PI), 0, 2, true);\n\n\t\t\t//This ensures that the odometer only runs once every period\n\t\t\tupdateEnd = System.currentTimeMillis();\n\t\t\tif (updateEnd - updateStart < ODOMETER_PERIOD) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(ODOMETER_PERIOD - (updateEnd - updateStart));\n\t\t\t\t} catch (InterruptedException e) {\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e70cd2ec685d8124529a5869da280322", "score": "0.5713862", "text": "public void joystickControl(Joystick joystick);", "title": "" }, { "docid": "6808d5fa8b2009cea4832e109a9ec8b6", "score": "0.5700867", "text": "public MacenumWheelsTrigger(RobotHW robotTmp) {\n this.robot = robotTmp;\n\n }", "title": "" }, { "docid": "9502c8f360fdf524fe4428f5fe721440", "score": "0.57006705", "text": "@Override\n public void teleopPeriodic() {\n\n //driver controls\n \n double triggerVal = m_driverController.getTriggerAxis(Hand.kRight) - m_driverController.getTriggerAxis(Hand.kLeft);\n double stick = m_driverController.getX(Hand.kLeft) * Map.TURNING_RATE;\n \n m_robotDrive.tankDrive((triggerVal - stick) * Map.DRIVING_SPEED, (triggerVal + stick) * Map.DRIVING_SPEED);\n\n }", "title": "" }, { "docid": "9c492c807a5bc47c3842ccc89d1d7131", "score": "0.5689785", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tmotorA = new EV3MediumRegulatedMotor(MotorPort.A);\r\n\t\tLCD.drawString(\"FORWARD\",0,0);\r\n\t\tmotorA.forward();\r\n\t\tButton.waitForAnyPress();\r\n\t\tLCD.drawString(\"BACKWARD\",0,0);\r\n\t\tmotorA.backward();\r\n\t\tButton.waitForAnyPress();\r\n\t\tmotorA.stop(); \r\n\t\t\r\n\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3003ee2e1ad98757689776ad48e80202", "score": "0.5680759", "text": "public VehicleBuilder(String engine, int wheels) {\n\t\t\tthis.engine = engine;\n\t\t\tthis.wheels = wheels;\n\t\t}", "title": "" }, { "docid": "483ccb3e05da7845d7c7c510337a55e6", "score": "0.567827", "text": "public VehicleBuilder(String engine, int wheel) {\n\t\t\tthis.engine = engine;\n\t\t\tthis.wheel = wheel;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "5f80864521b8a1bf9ed6ab8febfbbb14", "score": "0.56689227", "text": "public static void main(String[] args) throws OdometerExceptions, InterruptedException {\n\t\tint buttonChoice;\n\n\t\tOdometer odometer = Odometer.getOdometer(leftMotor, rightMotor, TRACK, WHEEL_RAD);\n\t\tNavigation navigation = new Navigation(leftMotor, rightMotor, WHEEL_RAD, TRACK, TILE_SIZE, odometer);\n\t\tUltrasonicLocalizer usLocalizer = new UltrasonicLocalizer(leftMotor, rightMotor, odometer);\n\t\tLightLocalizer lsLocalizer = new LightLocalizer(leftMotor, rightMotor, odometer, WHEEL_RAD, TRACK);\n\t\tDetection detection = new Detection(leftMotor, rightMotor, WHEEL_RAD, TRACK, TILE_SIZE, odometer, navigation);\n\t\t\n\t\t// set up ultrasonic poller\n\t\t@SuppressWarnings(\"resource\")\n\t\tSensorModes usSensor = new EV3UltrasonicSensor(usPort);\n\t\tSampleProvider usDistance = usSensor.getMode(\"Distance\");\n\t\tfloat[] usData = new float[usDistance.sampleSize()];\n\t\tUltrasonicPoller usPoller = new UltrasonicPoller(usDistance, usData, odometer);\n\n\t\t// set up light sensor poller\n\t\t@SuppressWarnings(\"resource\")\n\t\tSensorModes lsSensor = new EV3ColorSensor(linePort);\n\t\tSampleProvider lsDistance = lsSensor.getMode(\"Red\");\n\t\tfloat[] lsData = new float[lsDistance.sampleSize()];\n\n\t\tSensorModes colorSensor = new EV3ColorSensor(colorPort);\n\t\tSampleProvider colorDistance = colorSensor.getMode(\"RGB\");\n\t\tfloat[] colorData = new float[colorDistance.sampleSize()];\n\n\t\tLightPoller lsPoller = new LightPoller(lsDistance, lsData, colorDistance, colorData, odometer, lsLocalizer);\n\t\t// create threads\n\t\tThread odoThread = new Thread(odometer);\n\t\tThread usThread = new Thread(usPoller);\n\t\tThread lsThread = new Thread(lsPoller);\n\n\t\tdo {\n\t\t\tlcd.clear();\n\t\t\tlcd.drawString(\"< Left | Right > \", 0, 0);\n\t\t\tlcd.drawString(\" Detect | Start \", 0, 1);\n\t\t\tlcd.drawString(\" Color | Search \", 0, 2);\n\t\t\tlcd.drawString(\" | \", 0, 3);\n\t\t\tlcd.drawString(\"----------------- \", 0, 4);\n\t\t\tlcd.drawString(\" Down \", 0, 5);\n\t\t\tlcd.drawString(\" Track Testing \", 0, 6);\n\n\t\t\tbuttonChoice = Button.waitForAnyPress();\n\t\t} while (buttonChoice != Button.ID_LEFT && buttonChoice != Button.ID_RIGHT && buttonChoice != Button.ID_DOWN);\n\n\t\tif (buttonChoice == Button.ID_DOWN) {\n\t\t\t// In order to check if the track is working this section makes the robot turn\n\t\t\t// 360 degrees\n\t\t\tleftMotor.setSpeed(ROTATE_SPEED);\n\t\t\trightMotor.setSpeed(ROTATE_SPEED);\n\n\t\t\tleftMotor.rotate(Navigation.convertAngle(WHEEL_RAD, TRACK, 360), true);\n\t\t\trightMotor.rotate(-Navigation.convertAngle(WHEEL_RAD, TRACK, 360), false);\n\t\t} else {\n\t\t\tif (buttonChoice == Button.ID_LEFT) {\n\n\t\t\t\tlcd.clear();\n\t\t\t\tlsThread.start();\n\t\t\t\t\n\t\t\t\twhile (Button.waitForAnyPress() != Button.ID_ESCAPE) {\n\t\t\t\t\tdetection.detect();\n\t\t\t\t\tButton.waitForAnyPress();\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\tlcd.clear();\n\t\t\t\t\n\t\t\t\tLocalizer localizer = new Localizer(usLocalizer, lsLocalizer, usThread, lsThread, navigation, 1, lcd, detection);\n\t\t\t\todoThread.start();\n\t\t\t\tlocalizer.start();\n\n\t\t\t\twhile (Button.waitForAnyPress() != Button.ID_ESCAPE)\n\t\t\t\t\t;\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\twhile (Button.waitForAnyPress() != Button.ID_ESCAPE)\n\t\t\t\t;\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "4707ce26b9ff9a9e3f881b517adae108", "score": "0.5665557", "text": "public static void memes(Robot r) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tdouble driveSpeed = RobotMap.CROSS_OBSTACLE_DRIVE_SPEED;\n\t\twhile ((System.currentTimeMillis() <= startTime + 450) && r.isAutonomous()) {\n\t\t\tdriveSpeed = driveSpeed + (1/450);\n\t\t\tRobot.botDrive.tankDrive(driveSpeed, driveSpeed);\n\t\t}\n\t\tstartTime = System.currentTimeMillis();\n\t\twhile ((Math.abs(startTime - System.currentTimeMillis()) <= RobotMap.AUTONOMOUS_DRIVE_OVER_OBSTACLE_TIME - 1300) && r.isAutonomous() && r.isEnabled()) {\n\t\t\tdriveSpeed = 1.0;\n\t\t\tRobot.botDrive.tankDrive(RobotMap.CROSS_OBSTACLE_DRIVE_SPEED, RobotMap.CROSS_OBSTACLE_DRIVE_SPEED);\n\t\t}\n\t\tstartTime = System.currentTimeMillis();\n\t\twhile ((System.currentTimeMillis() <= startTime + 450) && r.isAutonomous()) {\n\t\t\tdriveSpeed = driveSpeed - (1/450);\n\t\t\tRobot.botDrive.tankDrive(driveSpeed, driveSpeed);\n\t\t}\n\t}", "title": "" }, { "docid": "5820a870ef47b070a1581f58c1cb4a4a", "score": "0.56605554", "text": "public void drive() { // drive method actions of the class\n\t\tSystem.out.println(\"Driving\"+brand);\n\t}", "title": "" }, { "docid": "7f3adf0672a5237cab87bd6af2121063", "score": "0.5657174", "text": "@Override\n public void runOpMode() {\n robot.init(hardwareMap, true, false);\n\n /* Wait for start button to be pressed */\n waitForStart();\n\n /* When start button is pressed; run main code */\n // Move forward 50 cm\n robot.encoderDrive(0.5, 50, 10);\n // robot.encoderDriveLeftEncoder(0.5, 50, 10);\n // Move backward 50 cm\n robot.encoderDrive(0.5, -50, 10);\n // robot.encoderDriveLeftEncoder(0.5, -50, 10);\n\n telemetry.addData(\"Info\", \"Moved forward and backward. Turning in 5 seconds.\");\n telemetry.update();\n // Delay the turning for 5 seconds\n sleep(5000);\n\n robot.encoderEachDrive(0.6, -5, 5, 5);\n robot.encoderEachDrive(0.6, 10, -10, 5);\n\n // Turn left on the spot for 90 degrees\n // robot.encoderTurnLeft(0.4, 90, 10);\n // Turn right on the spot for 90 degrees\n // robot.encoderTurnRight(0.4, 90, 10);\n\n }", "title": "" }, { "docid": "c99f3b64443c0d9a7dfa252a3d71502a", "score": "0.5655976", "text": "public void driveWithJoystick(Joystick joystick) {\n//\t\tdouble speed = 0;\n//\t\tdouble angle = 0;\n//\t\tdouble turn = 0;\n//\t\tturn = joystick.getZ();\n//\t\tspeed = Math.sqrt(Math.pow(joystick.getX(), 2)+ Math.pow(joystick.getY(),2));\n//\t\tangle = Math.atan(Math.abs(joystick.getY()/joystick.getX()));\n//\t\tthis.drive(speed, angle, turn);\n\t\t//drive.mecanumDrive_Cartesian(joystick.getX(), joystick.getY(), joystick.getZ(), 0);\n//\t\tSystem.out.println(\"Front Left: \" + frontLeft.get());\n//\t\tSystem.out.print(\" Front Right: \" + frontRight.get());\n//\t\tSystem.out.print(\" Back Right: \"+ backRight.get());\n//\t\tSystem.out.println(\" Back Left: \" + backLeft.get());\n\t\tdouble x = joystick.getX(); //changed to getX from getY\n\t\tdouble y = -joystick.getY(); //changed to getY from getX \n\t\tdouble z = joystick.getZ();\n\t\t\n\t\tdouble one = x+y+z;\n\t\tdouble two = y-x-z;\n\t\tdouble three = y-x+z;\n\t\tdouble four = x+y-z;\n\t\t\n\t\tfrontLeft.set(one / 3);\n\t\tfrontRight.set(two / 3);\n\t\tbackLeft.set(three / 3);\n\t\tbackRight.set(-four/3);\n\t\tSystem.out.println(\"FL: \" + one/3 + \" FR: \"+ two/3 + \" BL: \" + three/3 + \" BR: \" + -four/3);\n\t}", "title": "" }, { "docid": "f372389b40bf98ae84e9eebef2d9983c", "score": "0.5655379", "text": "public void EncoderDriveTank(double speed, double leftInches, double rightInches, double timeoutS)\n {\n //reset encoders\n robot.rearLeftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.rearRightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.frontLeftMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n robot.frontRightMotor.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n opMode.idle();\n\n robot.rearLeftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rearRightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.frontLeftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.frontRightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n int newRearLeftTarget;\n int newRearRightTarget;\n int newFrontLeftTarget;\n int newFrontRightTarget;\n\n //ensure that the opmode is still active\n if(opMode.opModeIsActive())\n {\n //determine target positions\n newRearLeftTarget = robot.rearLeftMotor.getCurrentPosition() + (int) (leftInches * COUNTS_PER_INCH);\n newRearRightTarget = robot.rearRightMotor.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);\n newFrontLeftTarget = robot.frontLeftMotor.getCurrentPosition() + (int) (leftInches * COUNTS_PER_INCH);\n newFrontRightTarget = robot.frontRightMotor.getCurrentPosition() + (int) (rightInches * COUNTS_PER_INCH);\n robot.rearLeftMotor.setTargetPosition(newRearLeftTarget);\n robot.rearRightMotor.setTargetPosition(newRearRightTarget);\n robot.frontLeftMotor.setTargetPosition(newFrontLeftTarget);\n robot.frontRightMotor.setTargetPosition(newFrontRightTarget);\n\n robot.rearLeftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.rearRightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.frontLeftMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n robot.frontRightMotor.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n runtime.reset();\n\n //turn on motors to specified speed\n robot.rearLeftMotor.setPower(Math.abs(speed));\n robot.rearRightMotor.setPower(Math.abs(speed));\n robot.frontLeftMotor.setPower(Math.abs(speed));\n robot.frontRightMotor.setPower(Math.abs(speed));\n\n //keep looping until one of the motors finished its movement\n while(opMode.opModeIsActive() &&\n (runtime.seconds() < timeoutS) &&\n (robot.rearLeftMotor.isBusy() && robot.rearRightMotor.isBusy() && robot.frontLeftMotor.isBusy() && robot.frontRightMotor.isBusy()))\n {\n\n //report target and current positions to driver station\n opMode.telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newRearLeftTarget, newRearRightTarget, newFrontLeftTarget, newFrontRightTarget);\n opMode.telemetry.addData(\"Path2\", \"Running at %7d :%7d\",\n robot.rearLeftMotor.getCurrentPosition(),\n robot.rearRightMotor.getCurrentPosition(),\n robot.frontLeftMotor.getCurrentPosition(),\n robot.frontRightMotor.getCurrentPosition());\n opMode.telemetry.update();\n }\n\n TurnOffMotors();\n\n robot.rearLeftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.rearRightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.frontLeftMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n robot.frontRightMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n }\n }", "title": "" }, { "docid": "bfd8ef787e679ed07a9a117b4a7a1895", "score": "0.56512547", "text": "@Override\n public void runOpMode() throws InterruptedException {\n mRF = new DcMotorX(hardwareMap.dcMotor.get(\"mRF\"));\n mLF = new DcMotorX(hardwareMap.dcMotor.get(\"mLF\"));\n mRB = new DcMotorX(hardwareMap.dcMotor.get(\"mRB\"));\n mLB = new DcMotorX(hardwareMap.dcMotor.get(\"mLB\"));\n\n // Get the odometry wheels\n wheelR = new DcMotorX(hardwareMap.dcMotor.get(\"mRB\"), ticksPerRev, circumference);\n wheelL = new DcMotorX(hardwareMap.dcMotor.get(\"mLF\"), ticksPerRev, circumference);\n wheelB = new DcMotorX(hardwareMap.dcMotor.get(\"mRF\"), ticksPerRev, circumference);\n\n // Create an odometry instance for the drivetrain\n Odometry positionTracker = new Odometry(wheelR, wheelL, wheelB, 50, backDistancePerRadian, width, x0, y0, phi0);\n\n // Instantiate the PID-controlled drivetrain\n drivetrain = new ControlledDrivetrain(mRF, mLF, mRB, mLB, positionTracker);\n drivetrain.reverse();\n drivetrain.telemetry = telemetry;\n\n // Register the Wobble Arm\n arm = new LimitedMotorX(hardwareMap.dcMotor.get(\"arm\"), 3*288, 360);\n arm.setLowerLimit(hardwareMap.touchSensor.get(\"armLimit\"));\n arm.setBrake(true);\n\n launcher = new DcMotorX(hardwareMap.dcMotor.get(\"launcher\"));\n launcher.controlVelocity();\n\n flipper = new ServoX(hardwareMap.servo.get(\"flipper\"));\n flipper.setAngle(50);\n\n intake = new DcMotorX(hardwareMap.dcMotor.get(\"intake\"));\n intake.setBrake(true);\n\n intakeWheels = new DcMotorX(hardwareMap.dcMotor.get(\"intakeWheels\"));\n\n claw = new ServoX(hardwareMap.servo.get(\"claw\"), 270, 180);\n claw.setAngle(0);\n\n try {\n tfod = new TensorFlowX(\n TFOD_MODEL_ASSET,\n VUFORIA_KEY,\n VuforiaLocalizer.CameraDirection.BACK,\n new String[]{QUAD_LABEL, SINGLE_LABEL},\n hardwareMap\n );\n }catch(Exception e){\n telemetry.addData(\"Error initializing TensorFlow\", e);\n }\n\n telemetry.addData(\"Done initializing\", \"\");\n telemetry.update();\n\n waitForStart();\n\n // Run it in a separate thread\n Thread drivetrainThread = new Thread(drivetrain);\n // Start the thread\n drivetrainThread.start();\n\n // Zero arm position\n arm.reset();\n arm.goToPosition(-33, 1);\n\n // Determine where to deliver the Wobble Goal by looking at the starter stack\n // Give the bot 2 seconds to look\n char zone = determineTargetZone(6000);\n\n telemetry.addData(\"Target Zone: \", zone);\n telemetry.update();\n\n // Shoot 3 rings\n shootHighGoal(false);\n // Drop wobble #1\n driveToTargetZone(zone);\n\n // Drive to wobble #2\n pickUpWobble(zone);\n\n if (zone == 'c') {\n shootHighGoal(true);\n }\n\n // Drop wobble #2\n driveToTargetZone(zone, 10, 15);\n\n // Park the robot on the launch line based on where it is after driving to target zone\n if(zone != 'b'){\n parkOverLaunchLine(zone);\n }\n\n tfod.shutdown();\n\n drivetrain.setBrake(true);\n drivetrain.stop();\n drivetrain.setActive(false);\n drivetrain.stopController();\n }", "title": "" }, { "docid": "cf1690c1936e54870424bf29eec0f6ee", "score": "0.5651115", "text": "public void driveWithInput(float directionX,float directionY,float rotation){\n float theta = (float)Math.atan2(directionY,directionX);\n float amplitude = (float)Math.hypot(directionX,directionY);\n\n float FrontLeft = (float)(-Math.sin(theta+((1.0/4.0) * Math.PI)) * 1.0/.71 * amplitude - (rotation / .75));\n float BackRight = (float)((Math.sin(theta+((1.0/4.0) * Math.PI)) * 1.0/.71 * amplitude - (rotation / .75)));\n float FrontRight = (float)(Math.sin(theta-((1.0/4.0) * Math.PI)) * 1.0/.71 * amplitude - (rotation / .75));\n float BackLeft = (float)(-Math.sin(theta-((1.0/4.0) * Math.PI)) * 1.0/.71 * amplitude - (rotation / .75));\n\n // clip the right/left values so that the values never exceed +/- 1\n FrontRight = Range.clip(FrontRight, -1, 1);\n FrontLeft = Range.clip(FrontLeft, -1, 1);\n BackLeft = Range.clip(BackLeft, -1, 1);\n BackRight = Range.clip(BackRight, -1, 1);\n\n // write the values to the motors\n motorFrontRight.setPower(FrontRight);\n motorFrontLeft.setPower(FrontLeft);\n motorBackLeft.setPower(BackLeft);\n motorBackRight.setPower(BackRight);\n\n\n /*\n * Telemetry for debugging\n */\n telemetry.addData(\"Text\", \"*** Robot Data***\");\n telemetry.addData(\"Joy XL YL XR\", String.format(\"%.2f\", directionX) + \" \" +\n String.format(\"%.2f\", directionY) + \" \" + String.format(\"%.2f\", directionX));\n// telemetry.addData(\"f left pwr\", \"front left pwr: \" + String.format(\"%.2f\", FrontLeft));\n// telemetry.addData(\"f right pwr\", \"front right pwr: \" + String.format(\"%.2f\", FrontRight));\n// telemetry.addData(\"b right pwr\", \"back right pwr: \" + String.format(\"%.2f\", BackRight));\n// telemetry.addData(\"b left pwr\", \"back left pwr: \" + String.format(\"%.2f\", BackLeft));\n telemetry.addData(\"Theta\", \"Theta: \" + String.format(\"%.2f\", theta));\n// telemetry.addData(\"VerticalLift Height\", \"Height: \" + String.format(\"%.2f\",verticalLift.getCurrentPosition()));\n\n\n }", "title": "" }, { "docid": "9cd2eedbd2817c754beb122d303a572b", "score": "0.5644412", "text": "void commonLoop() {\n\t\t\n\t\t// Get joystick Y axis value\n\t\tdouble yAxisValue = joystick.getY();\n\t\t\n\t\tdouble motorOutput = talon.getMotorOutputPercent();\t\t// Get current motor level to display on SmartDashboard\n\t\t\n\t\t// Check whether button 1 or 2 is pressed\n\t\tboolean button1Pressed = joystick.getRawButton(1);\n\t\tboolean button2Pressed = joystick.getRawButton(2);\n\t\t\n\t\t// Deadband - Ignore Y-axis near the neutral point\n\t\tif (Math.abs(yAxisValue) < 0.10) {\n\t\t\t/* within 10% of zero */\n\t\t\tyAxisValue = 0;\n\t\t}\n\n\t\t// Display various status information to SmartDashboard\n\t\tSmartDashboard.putNumber(\"Joystick y Axis Value\", yAxisValue);\n\t\tSmartDashboard.putNumber(\"Motor Output\", motorOutput);\n\t\tSmartDashboard.putBoolean(\"Button1 Pressed?\", button1Pressed);\n\t\tSmartDashboard.putBoolean(\"Button2 Pressed?\", button2Pressed);\n\t\tSmartDashboard.putBoolean(\"Was Previous Press Button1?\", wasPrevPressButton1);\n\t\t\n\t\t// Prepare line to print to RioLog\n\t\tstringBuffer.append(\"\\tMotor Output: \");\n\t\t// Cast to int to remove decimal places to display as %\n\t\tstringBuffer.append((int) (motorOutput * 100));\n\t\tstringBuffer.append(\"%\"); \n\n\t\tstringBuffer.append(\"\\tCurrent Position: \");\n\t\tstringBuffer.append(talon.getSelectedSensorPosition(Constants.kPIDLoopIdx));\n\t\tstringBuffer.append(\"units\");\n\n\t\t// On button1 press, enter closed-loop mode on target position (but ignore sequential presses)\n\t\tif (!wasPrevPressButton1 && button1Pressed) {\n\t\t\t// Position mode - button1 just pressed - display it in RioLog\n\t\t\tstringBuffer.append(\"Button 1 pressed\\n\");\n\t\t\t\n\t\t\t// Scale target based on max joystick value - express in sensor units\n\t\t\ttargetPositionUnits = yAxisValue * targetRotations * unitsPerRevolution;\n\t\t\ttalon.set(ControlMode.Position, targetPositionUnits);\n\t\t\t\n\t\t\t// Display the target position on the SmartDashboard\n\t\t\tSmartDashboard.putNumber(\"Target Position (units)\", targetPositionUnits);\n\t\t}\n\t\t\n\t\t// On button2 just straight drive\n\t\tif (button2Pressed) {\n\t\t\t// Percent voltage mode - button2 just pressed - display it in RioLog\n\t\t\tstringBuffer.append(\"Button 2 pressed\\n\");\n\t\t\t\n\t\t\t// Set motor output to be whatever the joystick y-axis value was when button 2 pressed\n\t\t\ttalon.set(ControlMode.PercentOutput, yAxisValue);\t\t\t\n\t\t}\n\t\t\n\t\t// If Talon is in position closed-loop, print some more info\n\t\tif (talon.getControlMode() == ControlMode.Position) {\n\t\t\t// Output error and target position to RioLog\n\n\t\t\tstringBuffer.append(\"\\tClosed Loop Error: \");\t\t\n\t\t\tint currentClosedLoopError = talon.getClosedLoopError(Constants.kPIDLoopIdx);\n\t\t\tstringBuffer.append(currentClosedLoopError);\n\t\t\tstringBuffer.append(\"units\");\n\n\t\t\tstringBuffer.append(\"\\tTarget: \");\n\t\t\tstringBuffer.append(targetPositionUnits);\n\t\t\tstringBuffer.append(\"units\"); /* units */\n\n\t\t\t// Display error in SmartDashboard\n\t\t\tSmartDashboard.putNumber(\"Current Closed Loop Error\", currentClosedLoopError);\n\n\t\t\t//TODO Display the current position in SmartDashboard\n\t\t}\n\n\t\t// Print every ten loops, printing too much too fast is generally bad for performance\n\t\tif (++nLoops >= 10) {\n\t\t\tnLoops = 0;\n\t\t\tSystem.out.println(stringBuffer.toString());\n\t\t}\n\t\t\n\t\t// Clear the RioLog string\n\t\tstringBuffer.setLength(0);\n\t\t\n\t\t// Remember the whether the previous button was button 1\n\t\twasPrevPressButton1 = button1Pressed;\n\t}", "title": "" }, { "docid": "135fbe4e27d41fee90ed40a5bee1956a", "score": "0.5637242", "text": "public RobotContainer() {\n // Configure the button bindings\n configureButtonBindings();\n\n m_driveSubsystem.setDefaultCommand(\n new RunCommand(() -> m_driveSubsystem.manualDrive(-driverstick.getY(), driverstick.getX()), m_driveSubsystem));\n System.out.println(\"setDewfaultCommnd\");\n\n // Add commands to the autonomous command chooser\n\n\n\n m_chooser = new SendableChooser<>();\n m_chooser.addOption(\"Do nothing\", new AutoDoNothing()); \n m_chooser.addOption(\"Move forward\", new MoveForward(m_driveSubsystem)); \n m_chooser.addOption(\"DeployFuel\", new DeployFuel(m_driveSubsystem, m_rampSubsystem)); \n SmartDashboard.putData(\"Autonomous select\", m_chooser);\n\n // Put the chooser on the dashboard\n // Shuffleboard.getTab(\"Autonomous\").add(m_chooser);System.out.println(\"setDewfaultCommnd\");\n SmartDashboard.putData(\"Pick Me\", m_chooser);\n System.out.println(\"setDewfaultCommnd\");\n\n // Shuffleboard.getTab(\"Autonomous\").add(m_chooser);System.out.println(\"setDewfaultCommnd\");\n System.out.println(\"\");\n }", "title": "" }, { "docid": "9f5ebc08c8c664d933a515e39960952b", "score": "0.56253064", "text": "@Override\n\tpublic void operatorControl() {\n\t\tmyRobot.setSafetyEnabled(true); \n\t\twhile (isOperatorControl() && isEnabled()) {\n\t\t\tmyRobot.arcadeDrive(-stick.getY(), (-stick.getZ()));\t\n\t\t\t\n\t\t\tTimer.delay(0.005); // wait for a motor update time\n\t\t}\n\t}", "title": "" }, { "docid": "f5a72926c46e6633efaef41cf1d36f10", "score": "0.5624378", "text": "public void operatorControl() {\n while (isOperatorControl() && isEnabled()) {\n //mecanum.tankDrive(-stickLef.getY(), -stickRig.getY());\n dash.putNumber(\"Right joy WHY\", -stickRig.getY());\n dash.putNumber(\"Right joy EX\", -stickRig.getX());\n dash.putNumber(\"Left joy\", stickLef.getY());\n dash.putNumber(\"Gyro Value\", gro.getAngle());\n dash.putNumber(\"Swag\", 2);\n System.out.println(\"2\");\n \tmecanum.mecanumDrive_Cartesian(stickRig.getX(), stickRig.getY(), getRotation(), 0); \n }\n }", "title": "" }, { "docid": "0f12bacb622cedc7be71b8e47974beea", "score": "0.5619661", "text": "@Override\n public void testPeriodic() {\n double leftY = oi.getDriveThrottle();\n // drivetrain.setMotors(leftY, leftY);\n // endgame.testMotor(leftY);\n System.out.println(leftY);\n drivetrain.testMotor(leftY);\n }", "title": "" }, { "docid": "78e1481d3cbf6de31e3b1ff069395c5e", "score": "0.56170976", "text": "@Override\n public void runOpMode() {\n double threshold = 0.3; // deadzone of the gampad analog sticks\n double rightStickX; // driver gampad right stick X\n double leftStickX; // driver gampad left stick X\n double leftStickY; // driver gampad left stick Y\n\n // variables to calculate the wheel speed\n double rightFrontSpeed = 0.0;\n double rightRearSpeed = 0.0;\n double leftFrontSpeed = 0.0;\n double leftRearSpeed = 0.0;\n\n /* Initialize the hardware variables.\n * The init() method of the hardware class does all the work here\n */\n robot.init(hardwareMap);\n\n // Wait for the game to start (driver presses PLAY)\n waitForStart();\n\n // run until the end of the match (driver presses STOP)\n while (opModeIsActive()) {\n\n leftFrontSpeed = 0;\n leftRearSpeed = 0;\n rightRearSpeed = 0;\n rightFrontSpeed = 0;\n\n // capture the gamepad right and left analog stick values\n rightStickX = gamepad1.right_stick_x;\n leftStickX = gamepad1.left_stick_y;\n leftStickY = gamepad1.left_stick_x;\n\n // Output the safe vales to the motor drives.\n if (abs(gamepad1.left_stick_x) > threshold || abs(gamepad1.left_stick_y) > threshold) {\n rightFrontSpeed = -leftStickY - leftStickX;\n rightRearSpeed = leftStickY - leftStickX;\n leftFrontSpeed = leftStickY - leftStickX;\n leftRearSpeed = -leftStickY - leftStickX;\n }\n\n if (abs(gamepad1.right_stick_x) > threshold) {\n /*\n rotate using the Mecanum wheels - used for doing circular turns\n */\n rightFrontSpeed = -rightStickX;\n rightRearSpeed = -rightStickX;\n leftFrontSpeed = rightStickX;\n leftRearSpeed = rightStickX;\n }\n\n\n // Set power to the motors\n robot.rightFront.setPower(rightFrontSpeed);\n robot.leftFront.setPower(leftFrontSpeed);\n robot.rightRear.setPower(rightRearSpeed);\n robot.leftRear.setPower(leftRearSpeed);\n\n telemetry.addData(\"leftFront Power \", leftFrontSpeed);\n telemetry.addData(\"leftRear Power \", leftRearSpeed);\n telemetry.addData(\"rightFront Power \", rightFrontSpeed);\n telemetry.addData(\"rightRear Power \", rightRearSpeed);\n\n telemetry.addData(\"gamepad1.right_stick_x\", gamepad1.right_stick_x);\n telemetry.addData(\"gamepad1.left_stick_x\", gamepad1.left_stick_x);\n telemetry.addData(\"gamepad1.left_stick_y\", gamepad1.left_stick_y);\n telemetry.update();\n\n // Pace this loop so jaw action is reasonable speed.\n sleep(50);\n }\n }", "title": "" }, { "docid": "5ae41731c38578db610195391a5a7b0e", "score": "0.5609212", "text": "private OI() \t\n\t{\t\n\t\t// =========== Driver ======================================\n\t\t_driverController = new BeakXboxController(0);\n\t\t//==========================================================\n\n\t\t// Driver Controller -> Command Mapping\n\t\t_driverController.leftStick.whileActive(new DriveCommand(_driverController));\t\n\t\t_driverController.leftStick.whenReleased(new DriveCommand(_driverController));\n\t\t_driverController.rightStick.whileActive(new DriveCommand(_driverController));\t\n _driverController.rightStick.whenReleased(new DriveCommand(_driverController));\n \n _driverController.back.whenPressed(new ZeroGyro());\n\n _driverController.start.whenPressed(new ToggleFieldOriented());\n\n\n\n }", "title": "" }, { "docid": "d348653192bab6342f52c2d93f5c200a", "score": "0.5603685", "text": "public static void init() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n liftPIDliftMotor = new Talon(4);\r\n LiveWindow.addActuator(\"LiftPID\", \"liftMotor\", (Talon) liftPIDliftMotor);\r\n \r\n liftPIDliftLimitBottom = new DigitalInput(1);\r\n LiveWindow.addSensor(\"LiftPID\", \"liftLimitBottom\", liftPIDliftLimitBottom);\r\n \r\n liftPIDliftLimitTop = new DigitalInput(0);\r\n LiveWindow.addSensor(\"LiftPID\", \"liftLimitTop\", liftPIDliftLimitTop);\r\n \r\n liftPIDLiftEncoder = new Encoder(6, 7, false, EncodingType.k1X);\r\n LiveWindow.addSensor(\"LiftPID\", \"LiftEncoder\", liftPIDLiftEncoder);\r\n liftPIDLiftEncoder.setDistancePerPulse(0.00988);\r\n liftPIDLiftEncoder.setPIDSourceParameter(PIDSourceParameter.kDistance);\r\n driveStrafeSolenoid = new DoubleSolenoid(0, 4, 5); \r\n LiveWindow.addActuator(\"Drive\", \"StrafeSolenoid\", driveStrafeSolenoid);\r\n \r\n driveSpeedController2 = new Talon(2);\r\n LiveWindow.addActuator(\"Drive\", \"Speed Controller 2\", (Talon) driveSpeedController2);\r\n \r\n driveSpeedController1 = new Talon(1);\r\n LiveWindow.addActuator(\"Drive\", \"Speed Controller 1\", (Talon) driveSpeedController1);\r\n \r\n driveSpeedController3 = new Talon(3);\r\n LiveWindow.addActuator(\"Drive\", \"Speed Controller 3\", (Talon) driveSpeedController3);\r\n \r\n driveSpeedController0 = new Talon(0);\r\n LiveWindow.addActuator(\"Drive\", \"Speed Controller 0\", (Talon) driveSpeedController0);\r\n \r\n driveRobotDrive4 = new RobotDrive(driveSpeedController0, driveSpeedController2,\r\n driveSpeedController1, driveSpeedController3);\r\n \r\n driveRobotDrive4.setSafetyEnabled(false);\r\n driveRobotDrive4.setExpiration(0.1);\r\n driveRobotDrive4.setSensitivity(0.5);\r\n driveRobotDrive4.setMaxOutput(1.0);\r\n driveRobotDrive4.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);\r\n driveRobotDrive4.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);\r\n driveRobotDrive4.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);\r\n driveRobotDrive4.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);\r\n drivedriveGyro = new Gyro(0);\r\n LiveWindow.addSensor(\"Drive\", \"driveGyro\", drivedriveGyro);\r\n drivedriveGyro.setSensitivity(0.007);\r\n driveStrafeMotor = new Talon(7);\r\n LiveWindow.addActuator(\"Drive\", \"StrafeMotor\", (Talon) driveStrafeMotor);\r\n \r\n pneumaticsvalveArm2_1 = new Solenoid(0, 2);\r\n LiveWindow.addActuator(\"pneumatics\", \"valveArm2_1\", pneumaticsvalveArm2_1);\r\n \r\n pneumaticsvalveArm1_1 = new Solenoid(0, 0);\r\n LiveWindow.addActuator(\"pneumatics\", \"valveArm1_1\", pneumaticsvalveArm1_1);\r\n \r\n pneumaticsvalveArm1_2 = new Solenoid(0, 1);\r\n LiveWindow.addActuator(\"pneumatics\", \"valveArm1_2\", pneumaticsvalveArm1_2);\r\n \r\n pneumaticsvalveArm2_2 = new Solenoid(0, 3);\r\n LiveWindow.addActuator(\"pneumatics\", \"valveArm2_2\", pneumaticsvalveArm2_2);\r\n \r\n pneumaticsCompressor1 = new Compressor(0);\r\n \r\n \r\n pneumaticscanGrabSolenoid1 = new Solenoid(0, 6);\r\n LiveWindow.addActuator(\"pneumatics\", \"canGrabSolenoid1\", pneumaticscanGrabSolenoid1);\r\n \r\n pneumaticscanGrabSolenoid2 = new Solenoid(0, 7);\r\n LiveWindow.addActuator(\"pneumatics\", \"canGrabSolenoid2\", pneumaticscanGrabSolenoid2);\r\n \r\n intakeIntakeMotor2 = new Talon(5);\r\n LiveWindow.addActuator(\"Intake\", \"IntakeMotor2\", (Talon) intakeIntakeMotor2);\r\n \r\n intakeIntakeMotor1 = new Talon(6);\r\n LiveWindow.addActuator(\"Intake\", \"IntakeMotor1\", (Talon) intakeIntakeMotor1);\r\n \r\n intakeBottomIntakeMotor1 = new Talon(8);\r\n LiveWindow.addActuator(\"Intake\", \"Bottom Intake Motor 1\", (Talon) intakeBottomIntakeMotor1);\r\n \r\n intakeBottomIntakeMotor2 = new Talon(9);\r\n LiveWindow.addActuator(\"Intake\", \"Bottom Intake Motor 2\", (Talon) intakeBottomIntakeMotor2);\r\n \r\n encoderSubsystemleftEncoder = new Encoder(2, 3, true, EncodingType.k4X);\r\n LiveWindow.addSensor(\"encoderSubsystem\", \"leftEncoder\", encoderSubsystemleftEncoder);\r\n encoderSubsystemleftEncoder.setDistancePerPulse(0.00409061543436171);\r\n encoderSubsystemleftEncoder.setPIDSourceParameter(PIDSourceParameter.kDistance);\r\n encoderSubsystemrightEncoder = new Encoder(4, 5, true, EncodingType.k4X);\r\n LiveWindow.addSensor(\"encoderSubsystem\", \"rightEncoder\", encoderSubsystemrightEncoder);\r\n encoderSubsystemrightEncoder.setDistancePerPulse(0.00409061543436171);\r\n encoderSubsystemrightEncoder.setPIDSourceParameter(PIDSourceParameter.kDistance);\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n }", "title": "" }, { "docid": "84a945397d1a12c1d3879e7a5752a356", "score": "0.5594596", "text": "public void runWheelsInLo() {\n mTalonLeft.set(ControlMode.PercentOutput, 0.1);\n mTalonRight.set(ControlMode.PercentOutput, 0.1);\n }", "title": "" }, { "docid": "0510f8747eae3e2abcb136fe60a751ed", "score": "0.5590771", "text": "private void initMotors() {\n driveTrain = new DifferentialDrive(RobotMap.DriveFrontLeft, RobotMap.DriveFrontRight);\n RobotMap.DriveBackLeft.follow(RobotMap.DriveFrontLeft);\n RobotMap.DriveBackRight.follow(RobotMap.DriveFrontRight);\n driveTrain.setSafetyEnabled(false);\n }", "title": "" }, { "docid": "56c86d0b414c2be7fc1113396cdeb7c7", "score": "0.5590732", "text": "private void encoderDrive(double speed,\n double leftInches, double rightInches,\n double timeoutS) {\n int newLeftFrontTarget;\n int newLeftBackTarget;\n int newRightFrontTarget;\n int newRightBackTarget;\n\n // ensure that the opmode is still active\n if (opModeIsActive()) {\n\n robot.resetWheelEncoders();\n\n // Determine new target position, and pass to motor controller\n newLeftFrontTarget = robot.leftFront.getCurrentPosition() + (int) (leftInches * TICKS_PER_INCH);\n newLeftBackTarget = robot.leftBack.getCurrentPosition() + (int) (leftInches * TICKS_PER_INCH);\n newRightFrontTarget = robot.rightFront.getCurrentPosition() + (int) (rightInches * TICKS_PER_INCH);\n newRightBackTarget = robot.rightBack.getCurrentPosition() + (int) (rightInches * TICKS_PER_INCH);\n robot.leftFront.setTargetPosition(newLeftFrontTarget);\n robot.leftBack.setTargetPosition(newLeftBackTarget);\n robot.rightFront.setTargetPosition(newRightFrontTarget);\n robot.rightBack.setTargetPosition(newRightBackTarget);\n\n // turn On RUN_TO_POSITION\n robot.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n\n\n // reset the timeout time and start motion.\n encoderTime.reset();\n robot.driveForward(Math.abs(speed));\n\n // wait for motors to not be busy\n while (opModeIsActive() &&\n (encoderTime.seconds() < timeoutS) &&\n (robot.leftFront.isBusy() && robot.leftBack.isBusy() && robot.rightFront.isBusy() && robot.rightBack.isBusy())) {\n\n // display it for the driver.\n telemetry.addData(\"Goal Position\", \"%7d :%7d :%7d :%7d\", newLeftFrontTarget, newLeftBackTarget, newRightFrontTarget, newRightBackTarget);\n telemetry.addData(\"Current Position\", \"%7d :%7d :%7d :%7d\",\n robot.leftFront.getCurrentPosition(),\n robot.leftBack.getCurrentPosition(),\n robot.rightFront.getCurrentPosition(),\n robot.rightBack.getCurrentPosition());\n telemetry.update();\n }\n\n // stop all motion;\n robot.stopDriving();\n\n // turn off RUN_TO_POSITION\n robot.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n\n sleep(100); // optional pause after each move\n }\n }", "title": "" }, { "docid": "3959a427c7b6c9f7f0526743e256344c", "score": "0.55867684", "text": "private void turnWheelsOff()\n\t{\n\t\tLEFT_WHEEL.controlMotor(MOTOR_POWER, 3);\n\t\tRIGHT_WHEEL.controlMotor(MOTOR_POWER, 3);\n\t}", "title": "" }, { "docid": "1443bb71d4f0a6edd5db679bda9fe644", "score": "0.55839014", "text": "public RobotBehaviourControl(RobotCommunication rb){\n\t\tspeed = 30;\n\t\tpilot = new DifferentialPilot(56, 135, Motor.A, Motor.B); // parameters in cm\n\t\tpilot.setTravelSpeed(speed);\n\t\tpilot.setRotateSpeed(30);\n\t\tsensor = new SensorInfo();\n\t\trobotComms = rb;\n\t\trange = new UltrasonicSensor(SensorPort.S4);\n\t\todoPose = new OdometryPoseProvider(pilot);\n\t\tpose = odoPose.getPose();\n\t\tpose.setLocation(0, 0);\n\t\tstatusMonitor = new RobotStatusMonitor(pilot);\n\t}", "title": "" }, { "docid": "92512b87d975b247ea5642f486c75407", "score": "0.55819744", "text": "void runLMotors(double power) {\n BLMotor.setPower(power);\n FLMotor.setPower(power);\n }", "title": "" }, { "docid": "4cf2f244119574c978a359d535d61ab0", "score": "0.5579191", "text": "@Override\n public void robotInit() {\n\n xbox = new XboxController(3);\n\n RRearWheel = new WPI_TalonSRX(6); // right rear wheel\n RFrontWheel = new WPI_TalonSRX(0); // right front wheel\n LRearWheel = new WPI_TalonSRX(3); // left rear wheel\n LFrontWheel = new WPI_TalonSRX(2); // left front wheel\n\n right = new SpeedControllerGroup(RRearWheel, RFrontWheel); // right speed controller group \n left = new SpeedControllerGroup(LRearWheel, LFrontWheel); // left speed controller group \n roboDrive = new DifferentialDrive(left, right); // making both speed controllers part of the overall drive\n\n roboDrive.tankDrive(0, 0);\n\n }", "title": "" }, { "docid": "a48f227724d3ce2fe10855b76c5b59d0", "score": "0.55787134", "text": "public void highWrap(GpioTest wheel){\n wheel.high();\n }", "title": "" }, { "docid": "a547921b258f8303320367cc67785fb8", "score": "0.55775815", "text": "public void robotInit() {\n \t//opening a new 4 motor drive\n myRobot = new RobotDrive(1,0,3,2);\n \n //defines the usb ports for each controller\n driveStick = new Joystick(0);\n mechStick = new Joystick(1);\n \n //defines pwms for motors seperate from drive\n liftMotor = new Victor(4);\n intakeRight = new Victor(5);\n intakeLeft = new Victor(6);\n \n //inverts motors\n myRobot.setInvertedMotor(MotorType.kFrontLeft, true);\n myRobot.setInvertedMotor(MotorType.kRearLeft, true);\n \n\t\tautonomousCommand = new AutoCommands();\n }", "title": "" }, { "docid": "429f124ffd4443742f196923205fabf9", "score": "0.5570878", "text": "@Override\n protected void constructHardware() {\n scheduler.schedule(drive, executor);\n\n dcr = new DriveCommandRunning();\n\n ahrs = drive.ahrs;\n\n joystickRight = new Joystick(1);\n listenerRight = new ListenerManager(joystickRight);\n addListenerManager(listenerRight);\n\n joystickLeft = new Joystick(0);\n listenerLeft = new ListenerManager(joystickLeft);\n addListenerManager(listenerLeft);\n\n }", "title": "" }, { "docid": "42e11cf89308afb2a79667a97c67d599", "score": "0.5566451", "text": "@Override\n public void runOpMode() throws InterruptedException {\n motorFrontLeft = hardwareMap.get(DcMotor.class, \"leftFrontDrive\");\n motorFrontRight = hardwareMap.get(DcMotor.class, \"rightFrontDrive\");\n motorBackLeft = hardwareMap.get(DcMotor.class, \"leftBackDrive\");\n motorBackRight = hardwareMap.get(DcMotor.class, \"rightBackDrive\");\n wheelBoiLeft = hardwareMap.get(DcMotor.class, \"wheelBoiLeft\");\n wheelBoiRight = hardwareMap.get(DcMotor.class, \"wheelBoiRight\");\n rotateBoiLeft = hardwareMap.get(DcMotor.class, \"rotateBoiLeft\");\n rotateBoiRight = hardwareMap.get(DcMotor.class, \"rotateBoiRight\");\n\n /* This sets the maximum power of the motors to half of their\n * actual maximum power, so our robot doesn't go supa fast. */\n double maxPower = 0.5;\n\n /* Here we give the program instructions for each direction\n * of travel: up, down, left, and right. */\n double[][] directions = {\n {1, 1, 1, 1}, /* up */\n {-1, -1, -1, -1}, /* down */\n {-1, 1, 1, -1}, /* left */\n {1, -1, -1, 1}, /* right */\n };\n\n telemetry.addData(\">\", \"Press Start To Run TeleOp\");\n telemetry.update();\n\n\t//when the scissorlift motor is set to zero, it will resist rotating\n //so as to hold the lift in an elevated position\n scislift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\tint[] liftlvls= [0, 10, 30, 60, 90];\n \tint count = 0;\n\n\n /* Doesn't start input events until program intializes */\n waitForStart();\n\n /* This makes it so that the program only runs when it\n * is meant to. */\n while (opModeIsActive()) {\n /* This inverts the joystick inputs,\n * since the joystick inputs are gay. */\n /* Up, down, left, and right on the joystick are\n * not static values. It's not just \"joystick is up\n * or joystick isn't up\", the joystick can be\n * halfway up, causing the value to be 0.5 (to represent half),\n * and making the robot move at half the speed. Also,\n * if the joystick is all the way to the right and you\n * move it upwards, the value for right will decrease\n * even if you don't move the joystick left, since the\n * joystick moves in a circular movement, not a square. */\n double leftStickX = -gamepad1.left_stick_x;\n double leftStickY = -gamepad1.left_stick_y;\n double rightStickX = -gamepad1.right_stick_x;\n\n /* These variables are placeholders for the values\n * we will set the power of the motors to. We will\n * use these are a medium for our calculations.*/\n double FLpower = 0.f;\n double FRpower = 0.f;\n double BLpower = 0.f;\n double BRpower = 0.f;\n\n double totalPower = abs(leftStickX) + abs(leftStickY);\n\n /* This only makes the code move the robot if the\n * LEFT joystick is being used. This section of the\n * code will be used for movement (strafing) of the\n * robot, using ONLY the LEFT joystick. */\n if (leftStickX != 0 || leftStickY != 0) {\n /* These are placeholders for the directions\n * that are actually being inputted, which will\n * be used for the instructions for the directions\n * used in the beginning of the code. */\n int dir1 = 0;\n int dir2 = 0;\n\n /* This checks where the joystick is in an x and\n * y location. This is used to assign values for\n * the direction placeholders.*/\n if (leftStickX > 0) {\n dir1 = 3;\n } else if (leftStickX < 0) {\n dir1 = 2;\n }\n if (leftStickY > 0) {\n dir2 = 1;\n } else if (leftStickY < 0) {\n dir2 = 0;\n }\n\n /* Since movement is not static, as said earlier, the\n * instructions for the directions that the joystick\n * is at are applied to the motor's power by a certain\n * amount, depending on how far the joystick is pressed.\n * For example, pushing the joystick halfway up will\n * only using the instructions for \"up\" at a half amount,\n * resulting in the robot moving forward at half speed.*/\n FLpower += (directions[dir1][0] * totalPower * abs(leftStickX)) + (directions[dir2][0] * totalPower * abs(leftStickY));\n FRpower += (directions[dir1][1] * totalPower * abs(leftStickX)) + (directions[dir2][1] * totalPower * abs(leftStickY));\n BLpower += (directions[dir1][2] * totalPower * abs(leftStickX)) + (directions[dir2][2] * totalPower * abs(leftStickY));\n BRpower += (directions[dir1][3] * totalPower * abs(leftStickX)) + (directions[dir2][3] * totalPower * abs(leftStickY));\n }\n\n if (abs(rightStickX) > 0.05) {\n /* This code changes the power of each wheel by the same\n * amount, depending on how far the RIGHT joystick is\n * pressed, which will rotate the robot at a certain speed. */\n FLpower = (FLpower + rightStickX) / 2;\n FRpower = (FRpower - rightStickX) / 2;\n BLpower = (BLpower - rightStickX) / 2;\n BRpower = (BRpower + rightStickX) / 2;\n }\n\n /* Applies maximum power setting */\n FLpower *= maxPower;\n FRpower *= maxPower;\n BLpower *= maxPower;\n BRpower *= maxPower;\n\n /* Applies the power to motors */\n motorFrontLeft.setPower(FLpower);\n motorFrontRight.setPower(FRpower);\n motorBackLeft.setPower(BLpower);\n motorBackRight.setPower(BRpower);\n\n\t //scissorlift Movement\n //have different levels of elevation depending on how many blocks are already stacked\n\t //use left and right bumper to iterate between levels\n\n if (gamepad2.a) {\n wheelBoiLeft.setPower(1);\n wheelBoiRight.setPower(-1);\n }\n if (gamepad2.left_bumper) {\n rotateBoiLeft.setPower(0.5);\n rotateBoiRight.setPower(-0.5);\n } else if (gamepad2.left_bumper) {\n rotateBoiLeft.setPower(-0.5);\n rotateBoiRight.setPower(0.5);\n }\n /* Prevents the controller from being dead inside */\n idle();\n }\n}", "title": "" }, { "docid": "f641145786e6a8423a5d2e604038284a", "score": "0.55657256", "text": "public testAuto() {\n addSequential(new DriveWithGyro(300));\n addSequential(new Turn(90));\n addSequential(new SetCargoFolderState(Value.kForward));\n addSequential(new ReachLiftHeight(LiftHeight.kCargoShip));\n //addSequential(command);\n\n }", "title": "" }, { "docid": "000dceb374319ba8f26683a288e1a176", "score": "0.5563388", "text": "public void driveWithController(XboxController controller)\n {\n if (RobotContainer.m_controller.getYButtonPressed())\n {\n if (m_mode == DriveMode.TANK)\n {\n m_mode = DriveMode.ARCADE;\n driveMode = \"Arcade Drive\";\n }\n else if (m_mode == DriveMode.ARCADE)\n {\n m_mode = DriveMode.TANK;\n driveMode = \"Tank Drive\";\n }\n }\n\n switch (m_mode)\n {\n case TANK:\n // left speed, right speed, squared inputs\n double leftSpeed = controller.getRawAxis(XBOX.LEFT_STICK_Y) * DriveConstants.MAX_OUTPUT;\n double rightSpeed = controller.getRawAxis(XBOX.RIGHT_STICK_Y) * DriveConstants.MAX_OUTPUT;\n SmartDashboard.putNumber(\"Left Speed\", leftSpeed);\n SmartDashboard.putNumber(\"Right Speed\", rightSpeed);\n m_drive.tankDrive(leftSpeed, rightSpeed, false);\n break;\n case ARCADE:\n // double speed = filter.calculate(controller.getRawAxis(XBOX.LEFT_STICK_Y) * DriveConstants.MAX_OUTPUT);\n // double turnRate = filter.calculate(controller.getRawAxis(XBOX.RIGHT_STICK_X) * DriveConstants.MAX_OUTPUT);\n double speed = controller.getRawAxis(XBOX.LEFT_STICK_Y) * DriveConstants.MAX_OUTPUT;\n double turnRate = controller.getRawAxis(XBOX.RIGHT_STICK_X) * DriveConstants.MAX_OUTPUT;\n // Experimental: using LR triggers to increase/reduce speed\n // Decrease speed when right trigger pressed, increase speed when right button pressed\n if (controller.getRawAxis(XBOX.RIGHT_TRIGGER) > 0) turnRate = Math.copySign(0.30, turnRate);\n else if (controller.getRawButton(XBOX.RB)) \n {\n turnRate /= Math.min(turnRate/DriveConstants.MAX_OUTPUT, Math.copySign(DriveConstants.MAX_OUTPUT, turnRate));\n }\n\n if (controller.getRawAxis(XBOX.LEFT_TRIGGER) > 0) speed = Math.copySign(0.30, speed);\n else if (controller.getRawButton(XBOX.LB))\n {\n speed = Math.min(speed/DriveConstants.MAX_OUTPUT, Math.copySign(DriveConstants.MAX_OUTPUT, speed));\n\n }\n //\n\n if (controller.getRawButton(XBOX.LOGO_RIGHT))\n {\n speed = filter.calculate(speed);\n turnRate = filter.calculate(speed);\n }\n\n m_drive.arcadeDrive(speed, -turnRate, true);\n\n SmartDashboard.putNumber(\"Speed\", speed);\n SmartDashboard.putNumber(\"Turn Rate\", turnRate);\n SmartDashboard.putNumber(\"X Displacement\", m_gyro.getDisplacementX());\n SmartDashboard.putNumber(\"Y Displacement\", m_gyro.getDisplacementY());\n SmartDashboard.putNumber(\"Z Displacement\", m_gyro.getDisplacementZ());\n break;\n }\n\n // Display values to smart dashboard\n SmartDashboard.putString(\"Arcade Drive\", driveMode);\n }", "title": "" }, { "docid": "860f8281483d0a015e9d6fe66579e51c", "score": "0.5555275", "text": "@Override\n public void loop() {\n int red = cSensor.red();\n int green = cSensor.green();\n int blue = cSensor.blue();\n\n telemetry.addData(\"Status\", \"Running: \" + runtime.toString());\n telemetry.addData(\"Red\",\"\" + red);\n telemetry.addData(\"Green\",\"\" + green);\n telemetry.addData(\"Blue\",\"\" + blue);\n\n // eg: Run wheels in tank mode (note: The joystick goes negative when pushed forwards)\n // leftMotor.setPower(-gamepad1.left_stick_y);\n // rightMotor.setPower(-gamepad1.right_stick_y);\n\n double leftX = gamepad1.left_stick_x;\n double leftY = -gamepad1.left_stick_y;\n\n double rightX = gamepad1.right_stick_x;\n double rightY = -gamepad1.right_stick_y;\n\n double throttle = gamepad1.right_trigger;\n\n if(rightX >= .5){\n turingBot.cWise(throttle);\n\n telemetry.addData(\"Direction\", \"Clock-wise\");\n }\n\n else if(rightX <= -0.5){\n turingBot.cCWise(throttle);\n\n telemetry.addData(\"Direction\", \"Counter Clock-wise\");\n }\n\n else if(leftX <= -.5 && (leftY < .5 && leftY > -.5)){\n turingBot.left(throttle);\n\n telemetry.addData(\"Direction\", \"Left\");\n }\n\n else if(leftX >= .5 && (leftY < .5 && leftY > -.5)){\n turingBot.right(throttle);\n\n telemetry.addData(\"Direction\",\"Right\");\n }\n\n else if(leftY >= .5){\n if(leftX > .5) {\n turingBot.forRight(throttle);\n\n telemetry.addData(\"Direction\", \"Forward-Right\");\n }\n\n else if(leftX < -.5){\n turingBot.forLeft(throttle);\n\n telemetry.addData(\"Direction\", \"Forward-Left\");\n }\n\n else if(leftX >= -.5 && leftX <= .5){\n turingBot.forward(throttle);\n\n telemetry.addData(\"Direction\", \"Forward\");\n }\n }\n else if(leftY <= -.5){\n if(leftX > .5){\n turingBot.backwRight(throttle);\n\n telemetry.addData(\"Direction\", \"Back-Right\");\n }\n\n else if(leftX < -.5){\n turingBot.backwLeft(throttle);\n\n telemetry.addData(\"Direction\", \"Back-Left\");\n }\n\n else if(leftX >= -.5 && leftX <= .5){\n turingBot.back(throttle);\n\n telemetry.addData(\"Direction\", \"Back\");\n }\n }\n else{\n turingBot.forward(0);\n }\n\n if(gamepad1.dpad_up){\n turingBot.elevate(1);\n\n telemetry.addData(\"Elevator\", \"Active\");\n }\n else{\n turingBot.elevate(0);\n }\n\n if(rightY >= .5){\n turingBot.moveClaws(rightY * .5);\n\n telemetry.addData(\"Claw\", \"Raising\");\n }\n else if(rightY <= -.5){\n turingBot.moveClaws(rightY * .1);\n\n telemetry.addData(\"Claw\", \"Lowering\");\n }\n else{\n turingBot.moveClaws(0);\n }\n\n if(gamepad1.left_bumper) {\n poker.setPosition(1);\n }\n else if(gamepad1.left_trigger > .49){\n poker.setPosition(0); // 0 = forward\n }\n else{\n poker.setPosition(.5);\n }\n\n\n if(gamepad1.dpad_right){\n bBsktServo.setPosition(1);\n fBsktServo.setPosition(0);\n }\n else if(gamepad1.dpad_down){\n bBsktServo.setPosition(.25); //1 = in; 0 = out .25\n fBsktServo.setPosition(.75); //0 = in;1 = out .75\n }\n else if(gamepad1.dpad_left){\n bBsktServo.setPosition(0);\n fBsktServo.setPosition(1);\n }\n\n }", "title": "" }, { "docid": "de4e751ce183404d15f480792cf13108", "score": "0.55544305", "text": "public void encoderDrive(double speed,\n double leftInches, double rightInches,\n double timeout) {\n int newLFTarget;\n int newRFTarget;\n int newLBTarget;\n int newRBTarget;\n \n if (opModeIsActive()) {\n newLFTarget = LF.getCurrentPosition() + (int)(leftInches * COUNTS_PER_INCH);\n newRFTarget = RF.getCurrentPosition() + (int)(rightInches * COUNTS_PER_INCH);\n newLBTarget = LB.getCurrentPosition() + (int)(leftInches * COUNTS_PER_INCH);\n newRBTarget = RB.getCurrentPosition() + (int)(rightInches * COUNTS_PER_INCH);\n \n LF.setTargetPosition(newLFTarget);\n RF.setTargetPosition(newRFTarget);\n LB.setTargetPosition(newLBTarget);\n RB.setTargetPosition(newRBTarget);\n \n\n LF.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n RF.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n LB.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n RB.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n \n // reset the timeout time and start motion.\n runtime.reset();\n LF.setPower(Math.abs(speed));\n RF.setPower(Math.abs(speed));\n LB.setPower(Math.abs(speed));\n RB.setPower(Math.abs(speed));\n \n while (opModeIsActive() &&\n (runtime.seconds() < timeout) &&\n (LF.isBusy() || RF.isBusy()) && (LB.isBusy() || RB.isBusy() )) {\n telemetry.addData(\"Path1\", \"Running to %7d :%7d\", newLFTarget, newRFTarget);\n telemetry.addData(\"Path2\", \"Running at %7d :%7d\",LF.getCurrentPosition(), RF.getCurrentPosition());\n \n telemetry.update();\n }\n\n \n LF.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n RF.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n LB.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n RB.setMode(DcMotor.RunMode.RUN_USING_ENCODER);\n \n sleep(250); // optional pause after each move\n }\n }", "title": "" } ]
0781e745138beb55fac7a1246f375abb
Create new instance if null
[ { "docid": "c0bc6d6cc172c6e029fddcad377003bd", "score": "0.0", "text": "public void addUserLoginListener(UserLoginListener listener) {\n\t\tif (listeners == null) listeners = new ArrayList<>(0);\n\t\tlisteners.add(listener);\n\t}", "title": "" } ]
[ { "docid": "3941e17d94496b9c3ab97c77bacc0a63", "score": "0.6862472", "text": "@Override\n\tprotected Object createNewInstance() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "57765e5017b14d4ed4e39e7e50423d8d", "score": "0.65091264", "text": "Null createNull();", "title": "" }, { "docid": "43b0eae7d17374169f0bb201ba76f7a0", "score": "0.62439233", "text": "private T newRecord() {\n try {\n return (T) getType().newInstance();\n } catch (Exception e) {\n return null;\n }\n }", "title": "" }, { "docid": "8129ea3f9a7ac916c8fbd6ec389e8245", "score": "0.623719", "text": "@Override\r\n \tpublic E createNewInstance()\r\n \t{\r\n \t\ttry\r\n \t\t{\r\n \t\t\treturn this.entityClass.newInstance();\r\n \t\t}\r\n \t\tcatch (Exception e)\r\n \t\t{\r\n \t\t\treturn null;\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "07951cfd18ce812885d70fa0466f7616", "score": "0.61455494", "text": "public Obj createNull() throws PDFNetException {\n/* 95 */ return Obj.__Create(CreateNull(this.a), this);\n/* */ }", "title": "" }, { "docid": "8aa36d403c8609d57d239fd16beab217", "score": "0.6023205", "text": "@Override\n public T instantiate() {\n return null;\n }", "title": "" }, { "docid": "0c827d38492a61335d562d13167416ca", "score": "0.6023164", "text": "@Override\r\n \tpublic E create()\r\n \t{\r\n \t\treturn this.create(null);\r\n \t}", "title": "" }, { "docid": "eb569d8e3ae7c0c56c75269c31792c21", "score": "0.60087836", "text": "private Object createNewVO() throws MediatorException {\r\n Object o;\r\n try {\r\n o = clazz.newInstance();\r\n } catch (Exception e) {\r\n throw new MediatorException(e);\r\n }\r\n return o;\r\n }", "title": "" }, { "docid": "e207286f340c5e348a202feff2f41b2b", "score": "0.59744245", "text": "One createOne();", "title": "" }, { "docid": "e990f5dee32821dc61c452dc1d17d51b", "score": "0.5929009", "text": "Optional<T> create(T entity);", "title": "" }, { "docid": "0b7c623bdc7eed28946138404e93aa16", "score": "0.5856315", "text": "@Test\n public void create() {\n this.repository.create(null);\n Assert.assertEquals(null, null);\n }", "title": "" }, { "docid": "0b7c623bdc7eed28946138404e93aa16", "score": "0.5856315", "text": "@Test\n public void create() {\n this.repository.create(null);\n Assert.assertEquals(null, null);\n }", "title": "" }, { "docid": "9177099ff3e5a73a6375efb5eb060ed4", "score": "0.5850777", "text": "@Override\n public DataModel create(String name) {\n return create(name, (Map)null);\n }", "title": "" }, { "docid": "2203980f7ae1e3a0aff032e1267aafdf", "score": "0.58201015", "text": "protected abstract @NotNull C create();", "title": "" }, { "docid": "0aca5af342b8addce01d22bcebe481b7", "score": "0.58014095", "text": "@Override\n\tpublic boolean create(Object obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "517ddf33d5f78654a6aa43b4ec5a85bc", "score": "0.5800158", "text": "T create();", "title": "" }, { "docid": "517ddf33d5f78654a6aa43b4ec5a85bc", "score": "0.5800158", "text": "T create();", "title": "" }, { "docid": "517ddf33d5f78654a6aa43b4ec5a85bc", "score": "0.5800158", "text": "T create();", "title": "" }, { "docid": "00591a9401f340e1818752a71e51741c", "score": "0.5799336", "text": "@Access(AccessType.UNAVAILABLE)\r\n \tpublic void create() {\r\n \t}", "title": "" }, { "docid": "8c46dceacdf64bacfa935e13b5fd3650", "score": "0.5697349", "text": "public T createInstance(JSONObject info) {\r\n\t\t\r\n\t\tif(info == null) { //si el json info del argumento es null salta excepcion\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t\r\n\t\tString type = info.getString(\"type\");\r\n\t\tJSONObject data = info.getJSONObject(\"data\");\r\n\t\t\r\n\t\tT t = null;\r\n\t\t\r\n\t\tif(type.equalsIgnoreCase(typeTag)) { //si el type es el mismo que el type del builder especifico llama al metodo createTheInstance\r\n\t\t\tt = createTheInstance(info);\r\n\t\t}\r\n\t\t\r\n\t\treturn t;\r\n\t}", "title": "" }, { "docid": "f567ce9e210647e0edb52ccd99bd2199", "score": "0.5687579", "text": "@Override\n\tpublic void create() {\n\n\t}", "title": "" }, { "docid": "6bd374f3ab76627ec5d8981a3c054e5b", "score": "0.5687427", "text": "private SingleObject(){}", "title": "" }, { "docid": "1aaa6566596843bd5fa5a39935efedde", "score": "0.5670892", "text": "public T create(T t);", "title": "" }, { "docid": "4f61f109e7b08f471abf5123a88917cb", "score": "0.56514007", "text": "private static person newperso() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e58275cf997609374a697f050c52e0d7", "score": "0.5643155", "text": "@Override\n\tpublic boolean create(Visiteur obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "6f06981182a8ae01005bb9ed105e6f9e", "score": "0.5634064", "text": "@Override\n\tpublic boolean create(Personne obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "50f03117df45706aeb52ed3be3162772", "score": "0.5633748", "text": "@Test\n public void getInstanceIsNotNull() {\n createSimpleTables();\n assertNotNull(sqLiteStorageHelper);\n }", "title": "" }, { "docid": "62373a0e1625a487307595285987f766", "score": "0.5632951", "text": "@Nullable\n Object getInstance();", "title": "" }, { "docid": "cde5fb101c70cc26b5baf6371005a7ff", "score": "0.56276625", "text": "T create(T t);", "title": "" }, { "docid": "ff6e2918ef1eada040d15b39043d5fc5", "score": "0.5597645", "text": "private PrincipalPrivilegeSet createOnNull(PrincipalPrivilegeSet pps) {\n if (pps == null) {\n pps = new PrincipalPrivilegeSet();\n }\n if (pps.getUserPrivileges() == null) {\n pps.setUserPrivileges(new HashMap<String, List<PrivilegeGrantInfo>>());\n }\n if (pps.getRolePrivileges() == null) {\n pps.setRolePrivileges(new HashMap<String, List<PrivilegeGrantInfo>>());\n }\n return pps;\n }", "title": "" }, { "docid": "c6068152d0cc1f5e27d178236840eae4", "score": "0.5591903", "text": "public static Thumbor create() {\n return new Thumbor(null);\n }", "title": "" }, { "docid": "db91816673c001530af272eb0ac87383", "score": "0.55846024", "text": "public void createInstantiate() {\n\t\tinstantiate();\n\t\t//bindByReferenceCalls();\n\t\treturn ;\n\t}", "title": "" }, { "docid": "283020c6a1cbd44e46b6cb09232cd866", "score": "0.55797195", "text": "@Override\n\tpublic Individual createSpecificIndividual(Object init,\n\t\t\tGAParameterSet params) throws NullPointerException,\n\t\t\tClassCastException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ab5db38d22f7e1fe3545d631c405ffa9", "score": "0.55782807", "text": "public abstract OneShotItem createInstance();", "title": "" }, { "docid": "48c8341ab7634e0b292c86e22d8d4902", "score": "0.5574129", "text": "@Test\n void constructorEmptyStringTest() {\n Executable exec = () -> {\n new PartTypeImpl(\"\",new CategoryImpl(\"engine\"));\n };\n\n assertThrows(IllegalArgumentException.class,exec);\n }", "title": "" }, { "docid": "f5c12d88b8bbf1250cdcc2fa38416f29", "score": "0.5571348", "text": "@Override\n\tpublic Item create(Item item) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d04355b7ad17e966b9f1c072e9560857", "score": "0.55482996", "text": "@Override\n\tpublic void create() {\n\t\t\n\t}", "title": "" }, { "docid": "dd0a038f25256e400ae05090bd6aee04", "score": "0.55478793", "text": "Person() {\n name = \"John Doe\";\n address = \"#null#\";\n phoneNumber = \"#null#\";\n email = \"#null#\";\n }", "title": "" }, { "docid": "b5c01dfcee0df34ef2a430569f6ba612", "score": "0.55265707", "text": "public Product() {}", "title": "" }, { "docid": "b5c01dfcee0df34ef2a430569f6ba612", "score": "0.55265707", "text": "public Product() {}", "title": "" }, { "docid": "b7cf393296aebd28616ebf45639b4625", "score": "0.5524146", "text": "public void nuevoO(){\r\n if(o1==null){\r\n Random rand = new Random(); \r\n int rand_int1 = rand.nextInt(15);\r\n if(rand_int1==1){\r\n o1 = new Objetivo(hi, true);\r\n o2 = new Objetivo(hi);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5f8ab31af55d2adc22d5d361480c9544", "score": "0.55195224", "text": "public ExistedInstance(ExistedInstance source) {\n if (source.Usable != null) {\n this.Usable = new Boolean(source.Usable);\n }\n if (source.UnusableReason != null) {\n this.UnusableReason = new String(source.UnusableReason);\n }\n if (source.AlreadyInCluster != null) {\n this.AlreadyInCluster = new String(source.AlreadyInCluster);\n }\n if (source.InstanceId != null) {\n this.InstanceId = new String(source.InstanceId);\n }\n if (source.InstanceName != null) {\n this.InstanceName = new String(source.InstanceName);\n }\n if (source.PrivateIpAddresses != null) {\n this.PrivateIpAddresses = new String[source.PrivateIpAddresses.length];\n for (int i = 0; i < source.PrivateIpAddresses.length; i++) {\n this.PrivateIpAddresses[i] = new String(source.PrivateIpAddresses[i]);\n }\n }\n if (source.PublicIpAddresses != null) {\n this.PublicIpAddresses = new String[source.PublicIpAddresses.length];\n for (int i = 0; i < source.PublicIpAddresses.length; i++) {\n this.PublicIpAddresses[i] = new String(source.PublicIpAddresses[i]);\n }\n }\n if (source.CreatedTime != null) {\n this.CreatedTime = new String(source.CreatedTime);\n }\n if (source.CPU != null) {\n this.CPU = new Long(source.CPU);\n }\n if (source.Memory != null) {\n this.Memory = new Long(source.Memory);\n }\n if (source.OsName != null) {\n this.OsName = new String(source.OsName);\n }\n if (source.InstanceType != null) {\n this.InstanceType = new String(source.InstanceType);\n }\n if (source.AutoscalingGroupId != null) {\n this.AutoscalingGroupId = new String(source.AutoscalingGroupId);\n }\n if (source.InstanceChargeType != null) {\n this.InstanceChargeType = new String(source.InstanceChargeType);\n }\n if (source.IPv6Addresses != null) {\n this.IPv6Addresses = new String[source.IPv6Addresses.length];\n for (int i = 0; i < source.IPv6Addresses.length; i++) {\n this.IPv6Addresses[i] = new String(source.IPv6Addresses[i]);\n }\n }\n }", "title": "" }, { "docid": "00e0f836c4e2bc13cec52e5b807d9e5e", "score": "0.55191", "text": "@Override\n\tpublic boolean create(Temps obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5028c04f7439fb054517e3f605dfaeb2", "score": "0.55116165", "text": "public static SingleTonClass objectCreationMethod() {\n if (obj == null) {\n obj = new SingleTonClass();\n\n }\n return obj;\n }", "title": "" }, { "docid": "f701eebaaa36e5604f5d7caedb6f67d0", "score": "0.55086416", "text": "@Override\n\tpublic Tag create(Tag tag) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fe5176a9d092a37504dc1f47778ea08f", "score": "0.5505856", "text": "public abstract boolean create(T t);", "title": "" }, { "docid": "fc5b66d4e96c84cdfcea9d08d92ce522", "score": "0.5495712", "text": "@Test\n\tpublic void c_createTransportWithNullId() {\n\t\tcreatedTransport = new Transport(\"prestaTrans2\", \"villeArriveeTrans2\", \"villeDepartTrans2\", (double) 100,\n\t\t\t\ttypeTransEnum.AVION);\n\t\tcreatedTransport.setId(null);// pour etre sur que id = null\n\t\tcreatedTransport = transService.createTransport(createdTransport);\n\t\tassertNotNull(createdTransport);\n\t}", "title": "" }, { "docid": "c6ca494cff5599f2940540facd83d0aa", "score": "0.5477701", "text": "@Override\r\n \tpublic synchronized E create(Object oid)\r\n \t{\r\n \t\treturn this.create(oid, true);\r\n \t}", "title": "" }, { "docid": "855c4528159de2adb96304640a3edfd9", "score": "0.546585", "text": "@Override\r\n\tpublic ProductionOrder Create(ProductionOrder po) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "60dee483f57d85867e11ddd92b60fe60", "score": "0.5463278", "text": "private Element createDetailSomehow() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2dfc1a029042782398ce89c01d9601e6", "score": "0.54629755", "text": "public Model() {}", "title": "" }, { "docid": "6060477e0e5828d15710433823dd5d53", "score": "0.5454927", "text": "public static Model createModelOrNull(String modelFilename){try{return createModel(modelFilename);}catch(Exception e){e.printStackTrace();return null;}}", "title": "" }, { "docid": "8f3cc12346f28f1e5c73f19ee290f819", "score": "0.5451413", "text": "public static Person createEntity() {\n Person person = new Person()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER);\n return person;\n }", "title": "" }, { "docid": "e19680419f07a9efeed488e9f2bd46f4", "score": "0.54500794", "text": "Person createPerson();", "title": "" }, { "docid": "20e633f17109ebf664196b4744a7d604", "score": "0.5445337", "text": "public Note() { this(null); }", "title": "" }, { "docid": "772d18cbf601f8daaa7e782d54b81850", "score": "0.5441691", "text": "public void create(Object obj);", "title": "" }, { "docid": "dcca8da0bac901e152ed311d2fdba030", "score": "0.5437386", "text": "@Test\n @Execution(ExecutionMode.SAME_THREAD)\n void constructor() {\n assertNotEquals(0, database.get(Period.class).size());\n assertNotEquals(0, database.get(SolidCategory.class).size());\n\n ExistingPeriod period = database.get(ExistingPeriod.class).get(0);\n SolidCategory solidCategory = database.get(SolidCategory.class).get(0);\n\n assertThrows(NullPointerException.class, () -> new FixedPeriodFundEvent(\"\", null, period, 1, false));\n assertThrows(NonCorruptingException.class, () -> new FixedPeriodFundEvent(\"\", solidCategory, null, 1, false));\n assertThrows(NonCorruptingException.class, () -> new FixedPeriodFundEvent(\"\", solidCategory, period, 0, false));\n assertThrows(NonCorruptingException.class, () -> new FixedPeriodFundEvent(\"\", solidCategory, period, -1, false));\n assertDoesNotThrow(() -> new FixedPeriodFundEvent(\"\", solidCategory, period, 1, false));\n }", "title": "" }, { "docid": "9a0558e8bcc4fefe416ecb7c537c4812", "score": "0.5436717", "text": "@Before\n public void createInstance() {\n }", "title": "" }, { "docid": "f8833e6e1010dcd69809d8d551d1f4d2", "score": "0.5427977", "text": "@Test(expected = NullPointerException.class)\n public void constructingNothingUseful()\n {\n new Point2D(0, 0, null);\n }", "title": "" }, { "docid": "59363c7700022617710a299b8ec5789e", "score": "0.5424435", "text": "@Override\r\n protected <T> T createInstance( Class<T> clazz, KieSession ksession )\r\n {\r\n T instance = null;\r\n \r\n if( (instance = create( getConstructor( clazz ) ) ) != null )\r\n {\r\n return instance;\r\n }\r\n if( (instance = create( getConstructor( clazz, KieSession.class ), ksession ) ) != null )\r\n {\r\n return instance;\r\n }\r\n if( (instance = create( getConstructor( clazz, KieSession.class, ServiceWorkflowManager.class ), ksession, workflowManager ) ) != null )\r\n {\r\n return instance;\r\n }\r\n \r\n throw new IllegalStateException( \"Could not find a constructor for \" + clazz );\r\n }", "title": "" }, { "docid": "3b51cca1e93f8a484b9d2654f2d79244", "score": "0.54237753", "text": "public Result create() {\n return edit(0L);\n }", "title": "" }, { "docid": "ea75d2671b42026bd17f583a7c3d6c81", "score": "0.5412011", "text": "@Override\r\n\tpublic Statistique creer(Statistique obj) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e163d1f7c187020609dd3a0fb57a3455", "score": "0.5406945", "text": "@Override\n\tpublic boolean create(Carte obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "57d1d661e9b18b4fcf7e44ed0c0052ad", "score": "0.54021674", "text": "Record createRecord();", "title": "" }, { "docid": "fd117bd8af82e83b8b28488192dde636", "score": "0.5397352", "text": "private SampleCreator() { }", "title": "" }, { "docid": "61c789b02e2b193295e27b732a271efa", "score": "0.5388096", "text": "public ProductDetails() {}", "title": "" }, { "docid": "a2423be92b93e7e9562645adabc31766", "score": "0.53800184", "text": "public PagoDTO(PagoEntity entity){\r\n if(entity!=null){\r\n this.id = entity.getId();\r\n this.valor = entity.getValor();\r\n this.fecha = entity.getFecha();\r\n }\r\n}", "title": "" }, { "docid": "929ebeff5374d4bc71ec8a93d2bada26", "score": "0.53799874", "text": "protected abstract T createObject();", "title": "" }, { "docid": "8417175d76a3b9d14c09f4fd7e4cf75e", "score": "0.5378321", "text": "public NewPost() {\n }", "title": "" }, { "docid": "06eff0129cb6203448c53621db0512c0", "score": "0.5376955", "text": "public T create() {\n\t\ttry {\n\t\t\treturn constructor.newInstance();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t} catch (InstantiationException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t} catch (IllegalAccessException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t} catch (InvocationTargetException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "fc59532fffbd85327ad70b407a5bbe2d", "score": "0.5375471", "text": "@Test\n public void testGetInstance() {\n XMLParser xmlParser = new XMLParser();\n xmlParser.setInstance(null);\n Assert.assertNotNull(xmlParser.getInstance());\n }", "title": "" }, { "docid": "64a04d36a4a0804279c588760c447b87", "score": "0.5373655", "text": "@Override\n\tpublic boolean create(LivreEmprunte obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "19e5705e73d616532cae8e34cb7bfd57", "score": "0.53720427", "text": "public Instance(Instance source) {\n if (source.InstanceId != null) {\n this.InstanceId = new String(source.InstanceId);\n }\n if (source.InstanceName != null) {\n this.InstanceName = new String(source.InstanceName);\n }\n if (source.InstanceState != null) {\n this.InstanceState = new String(source.InstanceState);\n }\n if (source.Image != null) {\n this.Image = new Image(source.Image);\n }\n if (source.SimpleModule != null) {\n this.SimpleModule = new SimpleModule(source.SimpleModule);\n }\n if (source.Position != null) {\n this.Position = new Position(source.Position);\n }\n if (source.Internet != null) {\n this.Internet = new Internet(source.Internet);\n }\n if (source.InstanceTypeConfig != null) {\n this.InstanceTypeConfig = new InstanceTypeConfig(source.InstanceTypeConfig);\n }\n if (source.CreateTime != null) {\n this.CreateTime = new String(source.CreateTime);\n }\n if (source.TagSet != null) {\n this.TagSet = new Tag[source.TagSet.length];\n for (int i = 0; i < source.TagSet.length; i++) {\n this.TagSet[i] = new Tag(source.TagSet[i]);\n }\n }\n if (source.LatestOperation != null) {\n this.LatestOperation = new String(source.LatestOperation);\n }\n if (source.LatestOperationState != null) {\n this.LatestOperationState = new String(source.LatestOperationState);\n }\n if (source.RestrictState != null) {\n this.RestrictState = new String(source.RestrictState);\n }\n if (source.SystemDiskSize != null) {\n this.SystemDiskSize = new Long(source.SystemDiskSize);\n }\n if (source.DataDiskSize != null) {\n this.DataDiskSize = new Long(source.DataDiskSize);\n }\n if (source.UUID != null) {\n this.UUID = new String(source.UUID);\n }\n if (source.PayMode != null) {\n this.PayMode = new Long(source.PayMode);\n }\n if (source.ExpireTime != null) {\n this.ExpireTime = new String(source.ExpireTime);\n }\n if (source.IsolatedTime != null) {\n this.IsolatedTime = new String(source.IsolatedTime);\n }\n if (source.RenewFlag != null) {\n this.RenewFlag = new Long(source.RenewFlag);\n }\n if (source.ExpireState != null) {\n this.ExpireState = new String(source.ExpireState);\n }\n if (source.SystemDisk != null) {\n this.SystemDisk = new DiskInfo(source.SystemDisk);\n }\n if (source.DataDisks != null) {\n this.DataDisks = new DiskInfo[source.DataDisks.length];\n for (int i = 0; i < source.DataDisks.length; i++) {\n this.DataDisks[i] = new DiskInfo(source.DataDisks[i]);\n }\n }\n if (source.NewFlag != null) {\n this.NewFlag = new Long(source.NewFlag);\n }\n if (source.SecurityGroupIds != null) {\n this.SecurityGroupIds = new String[source.SecurityGroupIds.length];\n for (int i = 0; i < source.SecurityGroupIds.length; i++) {\n this.SecurityGroupIds[i] = new String(source.SecurityGroupIds[i]);\n }\n }\n if (source.VirtualPrivateCloud != null) {\n this.VirtualPrivateCloud = new VirtualPrivateCloud(source.VirtualPrivateCloud);\n }\n if (source.ISP != null) {\n this.ISP = new String(source.ISP);\n }\n if (source.PhysicalPosition != null) {\n this.PhysicalPosition = new PhysicalPosition(source.PhysicalPosition);\n }\n }", "title": "" }, { "docid": "a7c15504d7dfee23bfbd7eb230ca0c27", "score": "0.53550893", "text": "public Entity() {\n }", "title": "" }, { "docid": "a7c15504d7dfee23bfbd7eb230ca0c27", "score": "0.53550893", "text": "public Entity() {\n }", "title": "" }, { "docid": "e540839c51ba5e6603605333184e347a", "score": "0.5353184", "text": "Entity createEntity();", "title": "" }, { "docid": "e540839c51ba5e6603605333184e347a", "score": "0.5353184", "text": "Entity createEntity();", "title": "" }, { "docid": "0d975b40bfcd6838cadcbd9c8e1f24b6", "score": "0.53485906", "text": "@Override\n public void should_instantiate_with_null_arg() throws Exception {\n }", "title": "" }, { "docid": "32d604c66f7475780b40039f58acb820", "score": "0.53472346", "text": "RelationInstance createRelationInstance();", "title": "" }, { "docid": "d3ef1500231e6b08f267924fd3b6a328", "score": "0.53383714", "text": "SingleValue createSingleValue();", "title": "" }, { "docid": "6a7d750770d02aa4db23a06f6637f971", "score": "0.5338047", "text": "private void createEmpty() {\n assert objectId == 0L;\n\n objectId = createShape();\n assert objectId != 0L;\n logger2.log(Level.FINE, \"Created Shape {0}\", Long.toHexString(objectId));\n\n setScale(scale);\n setMargin(margin);\n }", "title": "" }, { "docid": "9c723c17b7447e5094bf7a35d6dff2bb", "score": "0.5329697", "text": "public RequestSpecification construct() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "2a13c08b60c7c75e9078ce720a0da508", "score": "0.5329473", "text": "@Override\r\n\tpublic boolean create(EmploiDuTempsEntity obj) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "8a80ef508be4476ec2373f99cb36db65", "score": "0.53235114", "text": "Empty createEmpty();", "title": "" }, { "docid": "0b45fb6ffe84e994bb757ca6ccc3fc2a", "score": "0.5320934", "text": "@Test\n public void testConstructorResourceNull()\n {\n final List<TreeNode> children = null;\n\n try\n {\n new MarketDataTreeNode((ResourceProduct)null, children);\n fail(\"Should have thrown an exception\");\n }\n catch (final NullPointerException e)\n {\n assertNull(e.getMessage());\n }\n }", "title": "" }, { "docid": "dc47574c0d3505436d5aa800a995c99e", "score": "0.53149164", "text": "@Test(expectedExceptions = IllegalArgumentException.class)\n public void factoryOfExternalIdNull() {\n ExternalIdBundle.of((ExternalId) null);\n }", "title": "" }, { "docid": "be822ce627375d21c4e440b7d3a44d7d", "score": "0.53116506", "text": "private InstanceHolder() {\n\t}", "title": "" }, { "docid": "8346c03950cdd4aee147953c5026668b", "score": "0.5308472", "text": "public IndividualOperator createInstance(String instancename, String classname) {\r\n\t\tOntClass oc = cacheData.getClassOperator(classname).getOntClass();\r\n\t\tif (oc == null)\r\n\t\t\treturn null;\r\n\t\telse {\r\n\t\t\tIndividual individual = oc.createIndividual(instancename);\r\n\t\t\tif (individual != null)\r\n\t\t\t\treturn new IndividualOperator(individual);\r\n\t\t\telse\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "3d16219313d69811fa5e3d56d3d3b960", "score": "0.53041756", "text": "public XNull createXNull()\n {\n return new XNull();\n }", "title": "" }, { "docid": "7df32d038829b812127ddb2bf9cde58b", "score": "0.53040534", "text": "public T create() {\n return create(Twilio.getRestClient());\n }", "title": "" }, { "docid": "438667f5ea4d59a704afc73ee7171727", "score": "0.5300914", "text": "public PersonVO() {\r\n\t\tthis(null, null);\r\n\t}", "title": "" }, { "docid": "fd87c199e697591748a1062de015c204", "score": "0.53005135", "text": "protected @NotNull Reference create() {\r\n return factory.get();\r\n }", "title": "" }, { "docid": "7fa21b57264789909b6e8f3465b4203b", "score": "0.52994376", "text": "@Test\n\tpublic void testCreationNotNull() {\n\n\t\tGetGenomeReleaseCommand c = new GetGenomeReleaseCommand();\n\n\t\tassertNotNull(c);\n\n\t}", "title": "" }, { "docid": "1cb135409f27ab27601a0154d32a4773", "score": "0.52982545", "text": "@Test(expected = IllegalArgumentException.class)\n public void testcreateModelWithGlossaryNull() {\n service.createModel(new CreateModelOptions.Builder(modelId).build()).execute();\n }", "title": "" }, { "docid": "5f52d8539b21b103453d5ec6c4b9e060", "score": "0.52978086", "text": "public StoreObject() {\n\t}", "title": "" }, { "docid": "2736a96fe76d54629f1147705bc8dcf2", "score": "0.52956766", "text": "protected abstract T createInstance(String json);", "title": "" }, { "docid": "7949c68ba0ec8257d85d20ecc6b288bf", "score": "0.5292266", "text": "public Product() {\n\t}", "title": "" }, { "docid": "6f6b542e70eb760cf600015a84344822", "score": "0.5291831", "text": "@SuppressWarnings({ \"static-method\", \"unused\" })\n @Test (expected = NullPointerException.class)\n public final void testCopyConstructorWithNull() {\n new Piece(null);\n }", "title": "" }, { "docid": "77e0746bdc80e835e90f4b2173dc6350", "score": "0.52855486", "text": "public ProductData() {}", "title": "" }, { "docid": "7c7299d5d195bb49fe2aa481ca7474c5", "score": "0.52830815", "text": "@Override\n\tpublic Individual createDefaultIndividual(GAParameterSet params) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cacc038da09ff6397b7f3ab6133ec6e3", "score": "0.528283", "text": "public Entity newEntity() { return newMyEntity(); }", "title": "" } ]
12e3009b0213e38511cf5ca47f01b2e5
Get AddressSpacePlan definition by name of the config file
[ { "docid": "4c761327ba1acb75d6e1ca9299c25194", "score": "0.63312984", "text": "public static AddressSpacePlan getAddressSpacePlanConfig(Kubernetes kubernetes, String config) {\n return kubernetes.getAddressSpacePlanConfig(config);\n }", "title": "" } ]
[ { "docid": "4ee641f61cd387afeee433c0d8beedb4", "score": "0.7335731", "text": "public static AddressPlan getAddressPlanConfig(String configName) throws NotImplementedException {\n throw new NotImplementedException();\n }", "title": "" }, { "docid": "4b6fff2183d6a23ccc9d2ead69abd48a", "score": "0.5678118", "text": "public ExecutionPlanConfigurationFile getExecutionPlanConfigurationFileByName(String name,\n int tenantId) {\n Map<String, ExecutionPlanConfigurationFile> configurationFileMap = tenantSpecificExecutionPlanFiles.get(tenantId);\n if (configurationFileMap != null) {\n for (ExecutionPlanConfigurationFile file : configurationFileMap.values()) {\n if (name.equals(file.getExecutionPlanName())) {\n return file;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "3461ba739ff8cd855830f6701d590e00", "score": "0.56295824", "text": "mrtech.smarthome.rpc.Models.Plan getPlan();", "title": "" }, { "docid": "3461ba739ff8cd855830f6701d590e00", "score": "0.562811", "text": "mrtech.smarthome.rpc.Models.Plan getPlan();", "title": "" }, { "docid": "a8002e893493227bfe1a06b5eb4a5a4a", "score": "0.5442985", "text": "public static ConfigurationNode findConfigNode(String configName) {\n try {\n String fileName = System.getProperty( getBootstrapper().getOa4mpConfigFileKey());\n if (fileName == null) {\n throw new MyConfigurationException(\"Error: No configuration file specified\");\n }\n XMLConfiguration cfg = null;\n if (fileName.length() != 0) {\n // A properties file is supplied. Use that.\n try {\n cfg = Configurations.getConfiguration(new File(fileName));\n } catch (MyConfigurationException cx) {\n cx.printStackTrace();\n // plan B, maybe it's in the deployment itself? try to get as a resource\n URL url = TransactionStoreTest.class.getResource(fileName);\n if (url == null) {\n throw new MyConfigurationException(\"Error:No configuration found. for \\\"\" + fileName + \"\\\"\");\n }\n cfg = Configurations.getConfiguration(url);\n\n }\n } else {\n throw new MyConfigurationException(\"Error:No configuration file found.\");\n\n }\n ConfigurationNode cn = null;\n\n if (configName == null) {\n // try to find a specified configuration.\n String cfgName = System.getProperty(getBootstrapper().getOa4mpConfigNameKey());\n if (cfgName == null) {\n System.out.println(\"no name for a configuration given\");\n cn = cfg.configurationAt(COMPONENT).getRootNode();\n\n } else {\n System.out.println(\"getting named configuration \\\"\" + cfgName + \"\\\"\");\n cn = Configurations.getConfig(cfg, COMPONENT, cfgName);\n }\n\n } else {\n cn = Configurations.getConfig(cfg, COMPONENT, configName);\n }\n return cn;\n } catch (Exception x) {\n throw new MyConfigurationException(\"Error loading configuration\", x);\n }\n }", "title": "" }, { "docid": "4ba59e4f7447bba07ce9771884e0646b", "score": "0.50158346", "text": "public static Config getConfig(String name)\n {\n return new Config(singleton, name);\n }", "title": "" }, { "docid": "ed15b30f709e2978a5382fe59fd87b67", "score": "0.49740615", "text": "public Optional<Arena> getArena(String name) {\n\t\tfor(Arena arena : arenas) {\n\t\t\tif(arena.getOptions().getName().equalsIgnoreCase(name)) {\n\t\t\t\treturn Optional.of(arena);\n\t\t\t}\n\t\t}\n\t\treturn Optional.absent();\n\t}", "title": "" }, { "docid": "f02686bec004421a558e1c64e9e05c1c", "score": "0.496506", "text": "Plan getRealityPlan();", "title": "" }, { "docid": "943f660a70c9306fbfa39c2cdf55f7a4", "score": "0.49577212", "text": "public Object getConfigParam(String name)\n {\n return configs.get(name.toLowerCase());\n }", "title": "" }, { "docid": "59fa29dde953026823d3420694992fe9", "score": "0.4925193", "text": "public static Config getConfig(String name) {\n return getConfig(name, null);\n }", "title": "" }, { "docid": "e51828ca00315fa60b3bb3c461c14f8b", "score": "0.49215144", "text": "Portfolio get(String portfName);", "title": "" }, { "docid": "d55ad275c45540583d2a1b42c3894882", "score": "0.48630372", "text": "org.zenoss.cloud.collection.Config getConfiguration(int index);", "title": "" }, { "docid": "a747056a73923b7218f1ecfd5a371042", "score": "0.4844294", "text": "FileConfiguration getConfig(Config configType);", "title": "" }, { "docid": "a0b98d57294c7e6e5ccff086c0ba82fe", "score": "0.48411632", "text": "public Cost construct(String config_string);", "title": "" }, { "docid": "f391004f9b3c486465f047f2e4ce2c92", "score": "0.48195618", "text": "private static String getLocalConfigSetting(String name) throws IOException {\n\n Properties prop = new Properties();\n InputStream input = null;\n\n try {\n input = ConfigManager.class.getClassLoader().getResourceAsStream(\"config.properties\");\n\n // load a properties file\n prop.load(input);\n\n return prop.getProperty(name);\n } finally {\n if (input != null) {\n input.close();\n }\n }\n }", "title": "" }, { "docid": "a2089ae3fd8cb80f51e2f3a03ba10097", "score": "0.47787416", "text": "AddressSpacePreferences getAddressSpacePreferences();", "title": "" }, { "docid": "234bf66a8d0f9cd66b37a4e27acd6138", "score": "0.47721893", "text": "Arena getArena(String name);", "title": "" }, { "docid": "d2dfb507c6dceb5e39279a5f08da39f3", "score": "0.47575182", "text": "mrtech.smarthome.rpc.Models.SambaConfig getSambaConfig();", "title": "" }, { "docid": "d2dfb507c6dceb5e39279a5f08da39f3", "score": "0.47575182", "text": "mrtech.smarthome.rpc.Models.SambaConfig getSambaConfig();", "title": "" }, { "docid": "258108d1085c325a1b25104fbe89cd60", "score": "0.4749902", "text": "public Mapping getMapping(String config) {\n\t\tMapping m = new Mapping();\n\t\tDocument doc;\n\t\ttry {\n\t\t\tthis.configFile = config;\n\t\t\t\n//\t\t\tdoc = reader.read(this.configFile);\n\t\t\tdoc = reader.read(this.getClass().getClassLoader().getResource(configFile).getPath());\n\n\t\t\tString mappingsDefaultAttr = this.getMappingsDefaultAttr(doc);\n\t\t\tElement mappingTypeElement = (Element) doc\n\t\t\t\t\t.selectSingleNode(\"//mapping-type[@id='\" + mappingsDefaultAttr + \"']\");\n\t\t\tString mappingType = mappingTypeElement.attributeValue(\"type\");\n\n\t\t\t// use the corresponding method for getting the mappings depending on the\n\t\t\t// mapping type;\n\t\t\tswitch (mappingType) {\n\t\t\t// Excel mapping type handing:\n\t\t\tcase ExcelUtilsConfig.MAPPING_TYPE_EXCEL:\n\t\t\t\tm = getExcelMapping(mappingTypeElement);\n\t\t\tdefault:\n\t\t\t\t;\n\t\t\t}\n\n\t\t} catch (DocumentException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn m;\n\t}", "title": "" }, { "docid": "fd86ea7924b7004114f51fb568418cdd", "score": "0.4734358", "text": "public PortConfiguration getPortConfiguration(){\n \t\treturn this.portConfigurationProvider.getPortConfiguration(this);\n \t}", "title": "" }, { "docid": "8471d268ff83d249e44c5ea9589fde18", "score": "0.4722022", "text": "private ILaunchConfiguration getILaunchConfigurationFromTree(\n\t\t\tString typeName, String confName) {\n\t\tfor (Entry<String, List<ILaunchConfiguration>> entry : availableLaunchConfiguration\n\t\t\t\t.entrySet()) {\n\t\t\tif (entry.getKey().equals(typeName)) {\n\t\t\t\tfor (ILaunchConfiguration conf : entry.getValue()) {\n\t\t\t\t\tif (conf.getName().equals(confName)) {\n\t\t\t\t\t\treturn conf;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "70236125bcc4c81fe82972d39d7dda66", "score": "0.47047985", "text": "public static File getConfigFile(final String filename, final String typeName) {\n File specFile = new File(filename);\n if (specFile.exists()) {\n return specFile;\n }\n \n // search ${serengeti.home.dir}/conf directory\n String homeDir = System.getProperties().getProperty(\"serengeti.home.dir\");\n if (homeDir != null && !homeDir.trim().isEmpty()) {\n StringBuilder builder = new StringBuilder();\n builder.append(homeDir).append(File.separator).append(\"conf\")\n .append(File.separator).append(filename);\n specFile = new File(builder.toString());\n \n if (!specFile.exists()) {\n logger.warn(typeName + \" file does not exist: \" + builder);\n } else {\n return specFile;\n }\n }\n \n // search in class paths\n URL filePath = ConfigurationUtils.locate(filename);\n if (filePath != null) {\n specFile = ConfigurationUtils.fileFromURL(filePath);\n }\n \n if (!specFile.exists()) {\n String errorMsg = \"Can not find file\" + filename;\n logger.fatal(errorMsg);\n new RuntimeException(errorMsg);\n }\n \n return specFile;\n }", "title": "" }, { "docid": "4c5e4c061873f463fa4e58eeff17c5a3", "score": "0.469901", "text": "Element getConfig(NodeSet configs, String name) {\n Element config = configs.first();\n if (!config.name.equals(name)) {\n config = null;\n for (Element elem : configs) {\n if (elem.name.equals(name)) {\n config = elem;\n }\n }\n }\n return config;\n }", "title": "" }, { "docid": "a1ec3bbcc8793d601a03a52d73e3d8fb", "score": "0.46944344", "text": "mrtech.smarthome.rpc.Models.SambaConfig getConfig();", "title": "" }, { "docid": "a1ec3bbcc8793d601a03a52d73e3d8fb", "score": "0.46944344", "text": "mrtech.smarthome.rpc.Models.SambaConfig getConfig();", "title": "" }, { "docid": "3403488e84749bca3b2abd371c109a9d", "score": "0.46779868", "text": "public CacheConfig getConfigByConvention();", "title": "" }, { "docid": "47c9472f99edef2c70de1aea1605af58", "score": "0.46731982", "text": "public mrtech.smarthome.rpc.Models.Plan getPlan() {\n return plan_;\n }", "title": "" }, { "docid": "47c9472f99edef2c70de1aea1605af58", "score": "0.46731243", "text": "public mrtech.smarthome.rpc.Models.Plan getPlan() {\n return plan_;\n }", "title": "" }, { "docid": "80970bb67079728939a5eae09b604cd9", "score": "0.46720457", "text": "PortletConfig getPortletConfig();", "title": "" }, { "docid": "83ad3ffbd93845992ab435bba766a706", "score": "0.46629435", "text": "@SuppressWarnings(\"resource\")\n\tpublic DatapathId getPGateway(String apn) {\n\t\tPreparedStatement preparedStatement = null;\n\t\tDatapathId dpid = null;\n\t\tResultSet rs = null;\n\t\tString selectSQL = \"SELECT pgw_dpid from apn_to_pgw where apn = ?\";\n\t\ttry {\n\t\t\tpreparedStatement = dbConnection.prepareStatement(selectSQL);\n\t\t\tpreparedStatement.setLong(1, Long.parseLong(apn));\n\t\t\trs = preparedStatement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tdpid = DatapathId.of(rs.getLong(\"pgw_dpid\"));\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn dpid;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\treturn null;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (rs != null) {\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "037928728a2538062135e0f40d23ec24", "score": "0.4655982", "text": "public String getParam(String name) {\n if (config == null) {\n return (String)config.get(name);\n }\n return null;\n }", "title": "" }, { "docid": "c35d10f1cd5dbbc79815faba803fd9e4", "score": "0.46546417", "text": "ExecutionDag get(K conf);", "title": "" }, { "docid": "b4190060ab1cc80682306c4f68a3a4ce", "score": "0.4653849", "text": "public synchronized String getConfigParameter( String name )\n {\n try\n {\n return getASPConfig().getParameter(name);\n }\n catch ( Throwable e )\n {\n error(e);\n return null;\n }\n }", "title": "" }, { "docid": "ad71ad6635cf1672fce051e555ce7edd", "score": "0.46363282", "text": "protected ODocument getClusterConfiguration(String iClusterName) {\n final ODocument clusters = getConfiguredClusters();\n\n if (iClusterName == null) iClusterName = ALL_WILDCARD;\n\n final ODocument cfg;\n if (!clusters.containsField(iClusterName))\n // NO CLUSTER IN CFG: GET THE DEFAULT ONE\n cfg = clusters.field(ALL_WILDCARD);\n else\n // GET THE CLUSTER CFG\n cfg = clusters.field(iClusterName);\n\n if (cfg == null) return new ODocument();\n\n return cfg;\n }", "title": "" }, { "docid": "6c0cfc584220f071f5105c765e4266af", "score": "0.4636134", "text": "public String getPlan() {\n\treturn plan;\n }", "title": "" }, { "docid": "04f1aec32417af465bd51e98f5ee6e30", "score": "0.46276113", "text": "public Mapping getMapping() {\n\t\treturn this.getMapping(this.configFile);\n\t}", "title": "" }, { "docid": "a21e048c4f846c4a780072bd551fed42", "score": "0.4620324", "text": "mrtech.smarthome.rpc.Models.Plan getResult(int index);", "title": "" }, { "docid": "6ad2703318db0032de0f743d37b34385", "score": "0.46190232", "text": "public String getPlanId();", "title": "" }, { "docid": "e575038c3161ec56bf130188f20bd305", "score": "0.45942873", "text": "private File configurationFile(String fileName) {\n \t/*\n \t * Open file location\n \t */\n \tString osName = System.getProperty(\"os.name\").toLowerCase();\n \tFile configuration;\n\t if(osName.contains(\"win\")) {\n\t \tconfiguration = new File(\"configurations\\\\\" + fileName);\n\t\t}else {\n\t\t\tconfiguration = new File(\"configurations/\" + fileName);\n\t\t}\n\t \n\t /*\n\t * Check if the file exist.\n\t */\n\t \n\t if(configuration.exists() && configuration.isFile()) {\n\t \treturn configuration;\n\t }else {\n\t \treturn null;\n\t }\n \t\n }", "title": "" }, { "docid": "ee9956b5a5b07a0ce784e34f3842fcf6", "score": "0.45771235", "text": "public Configuration getConfiguration(String configurationName) {\r\n return configurations.get(configurationName);\r\n }", "title": "" }, { "docid": "1f2ec05f0060019b0a35d61394f6fd36", "score": "0.45701346", "text": "public AIConfig loadConfig(String location);", "title": "" }, { "docid": "d862e9ff5a25c2796de4016e9d19a935", "score": "0.45583546", "text": "int getPlanId();", "title": "" }, { "docid": "d862e9ff5a25c2796de4016e9d19a935", "score": "0.45583546", "text": "int getPlanId();", "title": "" }, { "docid": "d862e9ff5a25c2796de4016e9d19a935", "score": "0.45583546", "text": "int getPlanId();", "title": "" }, { "docid": "d862e9ff5a25c2796de4016e9d19a935", "score": "0.45583546", "text": "int getPlanId();", "title": "" }, { "docid": "665e57d18c501c5fcb5b8f987fbc698f", "score": "0.45566115", "text": "PortletConfigEx getPortletConfig();", "title": "" }, { "docid": "e459f570ddf99c75d6527ee784dde87b", "score": "0.455578", "text": "ConfigRequest<ISpoofaxProjectConfig> get(FileObject rootFolder);", "title": "" }, { "docid": "8bbb58be9bc071f249bed61d3cd107e7", "score": "0.4555239", "text": "private void selectConfig(String name) {\n LayoutDevice device = getSelectedDevice();\n DeviceConfig config = null;\n if (device != null) {\n config = device.getDeviceConfigByName(name);\n }\n selectDeviceConfig(config);\n }", "title": "" }, { "docid": "cc6219fda5d599744ef1460ccd75dbfa", "score": "0.45551294", "text": "public Config getConfig();", "title": "" }, { "docid": "db61a35c3ce77c02d2aaf4027c2fa7fd", "score": "0.4551695", "text": "public int find (String config);", "title": "" }, { "docid": "e7b1cff69d867a0cf9f33c9e299489e6", "score": "0.454133", "text": "public String getSAPConfigurationName();", "title": "" }, { "docid": "e4e99c059caa4abbc65bafe933c9e33c", "score": "0.45328248", "text": "public static String getProjectNameFromConfig(final File config) {\n \t\tString projname = null;\n \t\tSAXBuilder builder;\n \t\tDocument doc;\n \t\t\n \t\tif (config.exists()) {\n \t\t\t// Make engine\n \t\t\tbuilder = new SAXBuilder();\t\n \t\t\ttry {\n \t\t\t\t// Load XML File\n \t\t\t\tdoc = builder.build(config);\t\t\t\n \t\t\t\t// Load Root element\n \t\t\t\tfinal Element rootNode = doc.getRootElement(); \t\t\t\n \t\t\t\t// Load Name space (required for manipulate attributes)\n \t\t\t\t//Namespace ns = rootNode.getNamespace(\"android\");\t\n \n \t\t\t\tfor (final Element element : rootNode.getChildren(\"string\")) {\n \t\t\t\t\tif (element.getAttribute(\"name\").getValue()\n \t\t\t\t\t\t\t.equals(\"app_name\")) {\n \t\t\t\t\t\tprojname = element.getValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t} catch (final JDOMException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\tConsoleUtils.displayError(e);\n \t\t\t} catch (final IOException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\tConsoleUtils.displayError(e);\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn projname;\n \t}", "title": "" }, { "docid": "efbaf88b31b4c1c39331d9b3692eb471", "score": "0.4528122", "text": "public Definition getDefinition( String sessionIdentifier, String definitionName ) throws InsufficientPermissionException, GeneralizedException, NoSessionException, NotFoundException{\n\t\tcheckRight( sessionIdentifier, \"System.Configuration.View\");\n\t\t\n\t\t\n\t\t// 1 -- Perform the operation\n\t\treturn archive.getDefinition(definitionName);\n\n\t}", "title": "" }, { "docid": "2a8edd25ee8f40bcd5ea3269d26d8cae", "score": "0.45259792", "text": "Optional<PlanWithCost<Plan, PlanDetailedCost>> plan(Query query);", "title": "" }, { "docid": "b426b5fa41c6261d3409733e1301844f", "score": "0.45240745", "text": "Configuration getConfiguration();", "title": "" }, { "docid": "b426b5fa41c6261d3409733e1301844f", "score": "0.45240745", "text": "Configuration getConfiguration();", "title": "" }, { "docid": "b426b5fa41c6261d3409733e1301844f", "score": "0.45240745", "text": "Configuration getConfiguration();", "title": "" }, { "docid": "16b58ff61bfc0a5eabd51fd8419a42f7", "score": "0.45228428", "text": "public Optional<Definition> getDefinition(String name) {\n for (Definition definition : definitions) {\n if (definition.getName().equals(name)) {\n return Optional.of(definition);\n }\n }\n return Optional.empty();\n }", "title": "" }, { "docid": "8d24f20ed59b9be675649056d9d7e7f1", "score": "0.45162264", "text": "public Cable getPort(String name) {\n\t\treturn ports.get(name);\n\t}", "title": "" }, { "docid": "a1e83729e7814c8dbb00bd469d764a5b", "score": "0.45142555", "text": "public abstract ConfigFileName getConfigFileName();", "title": "" }, { "docid": "cc559629ad6e11f923e60852d59c55ee", "score": "0.44934615", "text": "public Object getPlan(String planId) {\n \treturn valueOperations.get(planId);\n \t\n }", "title": "" }, { "docid": "fa4dc742d8544b1e6f98311a481f355b", "score": "0.44844192", "text": "Optional<BasePlan> getBasePlanById(int baseplanId);", "title": "" }, { "docid": "244e6768a367c4a065ddf1986e921c68", "score": "0.4475935", "text": "public Area getAreaByName(String name){\n for(Area a: listAreas){\n if(a.getNome().equals(name.trim())) return a;\n }\n return null;\n }", "title": "" }, { "docid": "01b53d54ee90e23ef0b65ec7c8f121d9", "score": "0.44746622", "text": "public String getName() {\n return config.getName();\n }", "title": "" }, { "docid": "4a4911d2f5c0175fcafe0a694892a16d", "score": "0.44730994", "text": "Configuration getConf();", "title": "" }, { "docid": "25146285382807364d6eb1dd4bc0e872", "score": "0.4460007", "text": "mrtech.smarthome.rpc.Models.WlanConfig getConfig();", "title": "" }, { "docid": "25146285382807364d6eb1dd4bc0e872", "score": "0.4458874", "text": "mrtech.smarthome.rpc.Models.WlanConfig getConfig();", "title": "" }, { "docid": "97c6915af98c57b67f01c06d45494c6a", "score": "0.4457937", "text": "Configuration find(Resource resource, String applicationId);", "title": "" }, { "docid": "29e50cc94209b80ae5f0923647836118", "score": "0.44493115", "text": "mrtech.smarthome.rpc.Models.SystemConfiguration getConfiguration();", "title": "" }, { "docid": "29e50cc94209b80ae5f0923647836118", "score": "0.44493115", "text": "mrtech.smarthome.rpc.Models.SystemConfiguration getConfiguration();", "title": "" }, { "docid": "7553a47f51d4631468a739156ade8ba7", "score": "0.44472304", "text": "public static Address getNameServerAddress() {\n BufferedReader reader = null;\n Address nameServerAddress = null;\n String line;\n try {\n File file = new File(\"publicDNS.txt\");\n reader = new BufferedReader(new FileReader(file));\n while ((line = reader.readLine()) != null) {\n String[] strs = line.split(\":\");\n String IPaddress = strs[0];\n String port = strs[1];\n if (IPaddress != null && port != null) {\n nameServerAddress = new Address(IPaddress, port);\n }\n }\n if (nameServerAddress != null) {\n return nameServerAddress;\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"\\n Error: can't find \\\"publicDNS.txt\\\".\");\n } catch (IOException e) {\n System.err.println(\"\\n Error: can't read \\\"publicDNS.txt\\\".\");\n } finally {\n try {\n reader.close();\n } catch (IOException e) {\n System.err.println(e.toString());\n }\n }\n return null;\n }", "title": "" }, { "docid": "5c319b99bae73f9e5c522a235fd94ee0", "score": "0.44430545", "text": "ConfigurationType getConfiguration();", "title": "" }, { "docid": "69b6585d59b9ec9305e5c3398db50a19", "score": "0.4439023", "text": "mrtech.smarthome.rpc.Models.WlanConfig getWlanConfig();", "title": "" }, { "docid": "69b6585d59b9ec9305e5c3398db50a19", "score": "0.4439023", "text": "mrtech.smarthome.rpc.Models.WlanConfig getWlanConfig();", "title": "" }, { "docid": "73213d4ec836307623e01f0319e460bc", "score": "0.44375145", "text": "mrtech.smarthome.rpc.Models.EthernetConfiguration getConfiguration();", "title": "" }, { "docid": "73213d4ec836307623e01f0319e460bc", "score": "0.44375145", "text": "mrtech.smarthome.rpc.Models.EthernetConfiguration getConfiguration();", "title": "" }, { "docid": "6a1aa8f04f7dd183f63cb46cd01d16b2", "score": "0.44244152", "text": "mrtech.smarthome.rpc.Models.PlanOrBuilder getPlanOrBuilder();", "title": "" }, { "docid": "6a1aa8f04f7dd183f63cb46cd01d16b2", "score": "0.44235325", "text": "mrtech.smarthome.rpc.Models.PlanOrBuilder getPlanOrBuilder();", "title": "" }, { "docid": "30c9825c04dc29606ceb63621ebff3de", "score": "0.44163555", "text": "public static void main (String args[]) throws FileNotFoundException\n {\n /*\n BindZone zone = new BindZone (\"scopesconf.org\");\n new Parser (new FileInputStream (\"scopesconf.org\"), zone);\n System.out.println (zone);\n */\n }", "title": "" }, { "docid": "5f9986dfecabb0efcd1843883b1cd368", "score": "0.44094083", "text": "private String getEndpointByName() {\n\t\tfinal String endpointName = this.getServiceName();\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.finest(\"Trying to get service endpoint by name '\" + endpointName + \"'\");\n\t\t}\n\t\tif (endpointName != null) {\n\t\t\tfor (final TokenServiceCatalog tsc : this.token.getServiceCatalog()) {\n\t\t\t\tif (endpointName.equals(tsc.getName())) {\n\t\t\t\t\tfor (final TokenServiceCatalogEndpoint endpoint : tsc.getEndpoints()) {\n\t\t\t\t\t\tif (this.region.equals(endpoint.getRegion())) {\n\t\t\t\t\t\t\treturn endpoint.getPublicURL();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3aa5917d08bcedc668a59ff5d31beb15", "score": "0.44066325", "text": "@Nonnull\n public ImmutableMap<ServiceIdentifier<?>, ImmutableMap<NodeIdentifier, Integer>> getServicePlan() {\n return servicePlan;\n }", "title": "" }, { "docid": "73d7912ee35f6255e5a4a68973106a66", "score": "0.4397641", "text": "public Configuration getConfiguration();", "title": "" }, { "docid": "fddc27c101791b77025da3ad09026407", "score": "0.4391996", "text": "@Nullable ISpoofaxProjectConfig get(IProject project);", "title": "" }, { "docid": "600c5e760c49271aeb3a816a321dfc93", "score": "0.43899193", "text": "public PerformanceBenchmarking getDynamic(String name) {\n for (PerformanceBenchmarking ui : getAll()) {\n if (ui != null && ui.getUrlName() != null) {\n if (name != null && ui.getUrlName().equals(name)) {\n return ui;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "b368db3c6ee51bc3817803b4c9182e0b", "score": "0.43820217", "text": "public Resource getResource(String name) {\r\n\t\t/* PROTECTED REGION ID(java.implementation._17_0_5_12d203c6_1363357352383_552883_2852) ENABLED START */\r\n\t\treturn this.resources.get(name);\r\n\t\t/* PROTECTED REGION END */\r\n\t}", "title": "" }, { "docid": "7b201521bc0c07fd9e5a1b23b4bbe0f1", "score": "0.43810114", "text": "public Configuration(String file_name)\n {\n // E.B - URL support\n if (Config.startWithProtocol(file_name))\n {\n try\n {\n this.config_url = new URL(file_name);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n load();\n }\n else\n {\n this.config_file = new File(file_name);\n load();\n }\n }", "title": "" }, { "docid": "94394d4d7b9e84f4a427fa334af0e71f", "score": "0.43809283", "text": "public Arena getArenaByName(String arenaName) {\n\n for (Arena arena : this.arenas) {\n if (arena.getArenaName().equalsIgnoreCase(arenaName)) {\n return arena;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "f98362ff2c1724cb40e9fecc9882da9d", "score": "0.43745363", "text": "Network getByName(String name);", "title": "" }, { "docid": "c8f365e4902e1f533de3250527fb907e", "score": "0.43721747", "text": "@Override\n\tpublic Account findPlanByaccountId(Long accountId) throws Exception {\n\t\tAccount account = accountMapper.selectByPrimaryKey(accountId);\n\t\treturn account;\n\t}", "title": "" }, { "docid": "14ad2ddd2ae529f6dcfb4fbd17f1267f", "score": "0.43710363", "text": "public interface ConfigurationNames {\n\n\tString AVAILABILITY_ZONE \t\t\t\t= \"availability_zone_infn\";\n\tString IAAS_FLAVOR \t\t\t\t\t\t= \"iaas_flavor\";\n\tString IAAS_IMAGES \t\t\t\t\t\t= \"iaas_images\";\n\tString IAAS_PROFILE \t\t\t\t\t= \"iaas_profile\";\n\tString PAAS_APPAAS_SERVER_TYPE \t\t\t= \"paas_appaas_server_servertype\";\n\tString PAAS_APPAAS_WEB_SERVER\t\t\t= \"paas_appaas_web_server\";\n\tString PAAS_APPAAS_APPLICATION_SERVER\t= \"paas_appaas_application_server\";\n\tString PAAS_BIAAS_PENTAHO_DATABASE \t\t= \"paas_biaas_pentaho_database\";\n\tString PAAS_BIAAS_PENTAHO_VOLUME\t\t= \"paas_biaas_pentaho_volume\";\n\tString PAAS_DBAAS_BACKUP \t\t\t\t= \"paas_dbaas_backup\";\n\tString PAAS_DBAAS_DBMS \t\t\t\t\t= \"paas_dbaas_dbms\";\n\tString PAAS_LOAD_BALANCING\t\t\t\t= \"paas_load_balancing\";\n\tString PAAS_RABBIT_VERSIONS \t\t\t= \"paas_rabbit_versions\";\n\tString UPLOAD_FILE_SIZE \t\t\t\t= \"uploadFileSize\";\n}", "title": "" }, { "docid": "b9ab880337df84dde7ee3181fee68b01", "score": "0.43660003", "text": "public DataSource get(String name) {\n final List<DataSource> list = findByName(name);\n\n if (list.isEmpty()) {\n throw new IllegalArgumentException(\"Data source not found : \" + name);\n }\n\n if (list.size() > 1) {\n throw new IllegalArgumentException(\"More than one data source found : \" + name);\n }\n\n return list.get(0);\n }", "title": "" }, { "docid": "0a76440d3e4be90d300c55ba49b1b8ac", "score": "0.4362183", "text": "VolatilityCubeDefinition<?, ?, ?> getDefinition(String name);", "title": "" }, { "docid": "d66dd3ab69e40767ed4638b8142a4a72", "score": "0.43500495", "text": "abstract public ObjectPath readAlias(String name);", "title": "" }, { "docid": "bdb6c277ff6a1becf6660510785d77b3", "score": "0.4341752", "text": "Config getConfig();", "title": "" }, { "docid": "a0ed12d450bc196647655e3cebe2daa7", "score": "0.43403882", "text": "private RulesConfig getRulesConfig(String ruleAlias) {\n\t\t// TODO : Consider moving this to global cache when implemented.\n\t\treturn rulesConfigCache.computeIfAbsent(ruleAlias, k -> getRulesEngineFactory().createConfig(k));\n\t}", "title": "" }, { "docid": "29fe17fd390226b982595b4e4902b865", "score": "0.4336185", "text": "String consultarPlan(String identificador, Long planId);", "title": "" }, { "docid": "5f7cb9acacaad27e741705f26a22846b", "score": "0.43331373", "text": "public interface MappingConfigManager {\n\n void loadConfig(File configFile) throws Exception;\n\n GlobalConfig getGlobalConfig();\n\n SectionConfig getSectionConfig(String sectionName);\n\n}", "title": "" }, { "docid": "e65fe94aabba342fe1b8ed00973f5c87", "score": "0.4326297", "text": "public IRuleCommand<String> getRule( String name )\n\t{\n\t\treturn ruleProcessingMap.get( name );\n\t}", "title": "" }, { "docid": "19c381c90ed233721c40674655190a5c", "score": "0.43258947", "text": "private MazeConfiguration loadMazeConfigurationFromFile(String filename) {\n MazeFileReader mfr = new MazeFileReader(filename,getApplicationContext()) ;\n // obtain MazeConfiguration\n return mfr.getMazeConfiguration();\n }", "title": "" } ]
eefa6741a73c6bdc3f811f5fb7a5263e
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier generalinfo: Reference to a third party servicing mandate used when a third party is requesting the service order
[ { "docid": "57cc82f582784594adfa37d275998075", "score": "0.0", "text": "public String getThirdPartyServicingMandateReference() {\n return thirdPartyServicingMandateReference;\n }", "title": "" } ]
[ { "docid": "a3db8699211939ade0165ad736c8db76", "score": "0.58086896", "text": "Map<String, Object> getBusinessDocumentFromS4ServiceOrderCode(SAPOrderModel serviceOrderData);", "title": "" }, { "docid": "6b97d8c3e9a66c8f0f1801ba0351a148", "score": "0.55983984", "text": "private xtreemfs_get_suitable_osdsResponse() {\n initFields();\n }", "title": "" }, { "docid": "6d750cabc77a298d62b49b7f8bd86e69", "score": "0.5415662", "text": "public interface OriginEntryInformation extends BusinessObject {\n\n /**\n * gets the transactionLedgerEntryDescription attribute value\n * \n * @return\n */\n String getTransactionLedgerEntryDescription();\n\n /**\n * sets the transactionLedgerEntryDescription attribute value\n * \n * @param transactionLedgerEntryDescription\n */\n void setTransactionLedgerEntryDescription(String transactionLedgerEntryDescription);\n\n /**\n * gets the documentNumber attribute value\n * \n * @return\n */\n String getDocumentNumber();\n\n /**\n * sets the documentNumber attribute value\n * \n * @param documentNumber\n */\n void setDocumentNumber(String documentNumber);\n\n /**\n * This gets the origin entry in its standard string output form\n * \n * @return\n */\n String getLine();\n\n /**\n * gets the referenceFinancialDocumentNumber attribute value\n * \n * @return\n */\n String getReferenceFinancialDocumentNumber();\n\n /**\n * sets the referenceFinancialDocumentNumber attribute value\n * \n * @param referenceFinancialDocumentNumber\n */\n void setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber);\n\n /**\n * gets the organizationReferenceId attribute value\n * \n * @return\n */\n String getOrganizationReferenceId();\n\n /**\n * sets the organizationReferenceId attribute value\n * \n * @param organizationReferenceId\n */\n void setOrganizationReferenceId(String organizationReferenceId);\n\n /**\n * gets the accountNumber attribute value\n * \n * @return\n */\n String getAccountNumber();\n\n /**\n * sets the accountNumber attribute value\n * \n * @param accountNumber\n */\n void setAccountNumber(String accountNumber);\n\n /**\n * gets the subAccountNumber attribute value\n * \n * @return\n */\n String getSubAccountNumber();\n\n /**\n * sets the subAccountNumber attribute value\n * \n * @param subAccountNumber\n */\n void setSubAccountNumber(String subAccountNumber);\n\n /**\n * gets the chartOfAccountsCode attribute value\n * \n * @return\n */\n String getChartOfAccountsCode();\n\n /**\n * sets the chartOfAccountsCode attribute value\n * \n * @param chartOfAccountsCode\n */\n void setChartOfAccountsCode(String chartOfAccountsCode);\n\n /**\n * gets the projectCode attribute value\n * \n * @return\n */\n String getProjectCode();\n\n /**\n * sets the projectCode attribute value\n * \n * @param projectCode\n */\n void setProjectCode(String projectCode);\n\n /**\n * gets the universityFiscalYear attribute value\n * \n * @return\n */\n Integer getUniversityFiscalYear();\n\n /**\n * sets the universityFiscalYear attribute value\n * \n * @param fiscalYear\n */\n void setUniversityFiscalYear(Integer fiscalYear);\n\n /**\n * gets the transactionDate attribute value\n * \n * @return\n */\n Date getTransactionDate();\n\n /**\n * sets the transactionDate attribute value\n * \n * @param transactionDate\n */\n void setTransactionDate(Date transactionDate);\n\n /**\n * gets the financialDocumentTypeCode attribute value\n * \n * @return\n */\n String getFinancialDocumentTypeCode();\n\n /**\n * sets the financialDocumentTypeCode attribute value\n * \n * @param financialDocumentTypeCode\n */\n void setFinancialDocumentTypeCode(String financialDocumentTypeCode);\n\n /**\n * gets the financialSystemOriginationCode attribute value\n * \n * @return\n */\n String getFinancialSystemOriginationCode();\n\n /**\n * sets the financialSystemOriginationCode attribute value\n * \n * @param origCode\n */\n void setFinancialSystemOriginationCode(String origCode);\n\n /**\n * gets the financialObjectCode attribute value\n * \n * @return\n */\n String getFinancialObjectCode();\n\n /**\n * sets the financialObjectCode attribute value\n * \n * @param financialObjectCode\n */\n void setFinancialObjectCode(String financialObjectCode);\n\n /**\n * gets the financialObjectTypeCode attribute value\n * \n * @return\n */\n String getFinancialObjectTypeCode();\n\n /**\n * sets the financialObjectTypeCode attribute value\n * \n * @param financialObjectTypeCode\n */\n void setFinancialObjectTypeCode(String financialObjectTypeCode);\n\n /**\n * gets the financialSubObjectCode attribute value\n * \n * @return\n */\n String getFinancialSubObjectCode();\n\n /**\n * sets the financialSubObjectCode attribute value\n * \n * @param financialSubObjectCode\n */\n void setFinancialSubObjectCode(String financialSubObjectCode);\n\n /**\n * gets the transactionLedgerEntryAmount attribute value\n * \n * @return\n */\n KualiDecimal getTransactionLedgerEntryAmount();\n\n /**\n * sets the transactionLedgerEntryAmount attribute value\n * \n * @param amount\n */\n void setTransactionLedgerEntryAmount(KualiDecimal amount);\n\n /**\n * gets the transactionDebitCreditCode attribute value\n * \n * @return\n */\n String getTransactionDebitCreditCode();\n\n /**\n * sets the transactionDebitCreditCode attribute value\n * \n * @param debitCreditCode\n */\n void setTransactionDebitCreditCode(String debitCreditCode);\n\n /**\n * gets the financialBalanceTypeCode attribute value\n * \n * @return\n */\n String getFinancialBalanceTypeCode();\n\n /**\n * sets the financialBalanceTypeCode attribute value\n * \n * @param balanceTypeCode\n */\n void setFinancialBalanceTypeCode(String balanceTypeCode);\n\n /**\n * gets the financialDocumentReversalDate attribute value\n * \n * @return\n */\n Date getFinancialDocumentReversalDate();\n\n /**\n * sets the financialDocumentReversalDate attribute value\n * \n * @param reversalDate\n */\n void setFinancialDocumentReversalDate(Date reversalDate);\n\n /**\n * true if this origin entry is a credit, false otherwise\n * \n * @return\n */\n boolean isCredit();\n\n /**\n * true if this origin entry is a debit, false otherwise\n * \n * @return\n */\n boolean isDebit();\n\n /**\n * gets the universityFiscalPeriodCode attribute value\n * \n * @return\n */\n String getUniversityFiscalPeriodCode();\n\n /**\n * sets the universityFiscalPeriodCode attribute value\n * \n * @param fiscalPeriodCode\n */\n void setUniversityFiscalPeriodCode(String fiscalPeriodCode);\n\n /**\n * gets the referenceFinancialDocumentTypeCode attribute value\n * \n * @return\n */\n String getReferenceFinancialDocumentTypeCode();\n\n /**\n * sets the referenceFinancialDocumentTypeCode attribute value\n * \n * @param refernenceFinancialDocumentTypeCode\n */\n void setReferenceFinancialDocumentTypeCode(String refernenceFinancialDocumentTypeCode);\n\n /**\n * gets the referenceFinancialSystemOriginationCode attribute value\n * \n * @return\n */\n String getReferenceFinancialSystemOriginationCode();\n\n /**\n * sets referenceFinancialSystemOriginationCode attribute value\n * \n * @param referenceFinancialSystemOriginationCode\n */\n void setReferenceFinancialSystemOriginationCode(String referenceFinancialSystemOriginationCode);\n\n /**\n * gets transactionEncumbranceUpdateCode attribute value\n * \n * @return\n */\n String getTransactionEncumbranceUpdateCode();\n\n /**\n * sets transactionEncumbranceUpdateCode attribute value\n * \n * @param code\n */\n void setTransactionEncumbranceUpdateCode(String code);\n\n /**\n * gets the organizationDocumentNumber attribute value\n * \n * @return\n */\n String getOrganizationDocumentNumber();\n\n /**\n * sets the organizationDocumentNumber attribute value\n * \n * @param organizationDocumentNumber\n */\n void setOrganizationDocumentNumber(String organizationDocumentNumber);\n\n /**\n * gets the transactionLedgerEntrySequenceNumber attribute value\n * \n * @return\n */\n Integer getTransactionLedgerEntrySequenceNumber();\n\n /**\n * sets the transactionLedgerEntrySequenceNumber attribute value\n * \n * @param transactionLedgerEntrySequenceNumber\n */\n void setTransactionLedgerEntrySequenceNumber(Integer transactionLedgerEntrySequenceNumber);\n\n /**\n * gets the transactionScrubberOffsetGenerationIndicator attribute value\n * \n * @param b\n */\n void setTransactionScrubberOffsetGenerationIndicator(boolean b);\n\n /**\n * sets the entryGroupId attribute value\n * \n * @param groupId\n */\n void setEntryGroupId(Integer groupId);\n\n /**\n * This method forces the origin entryable to reset its id to null\n */\n void resetEntryId();\n}", "title": "" }, { "docid": "4e2a51d3c28888383a90b31ca21ea914", "score": "0.541174", "text": "public abstract ExtendedCAServiceInfo getExtendedCAServiceInfo();", "title": "" }, { "docid": "f6a20986bcf9227cba12a7fb7ad95cbb", "score": "0.5257271", "text": "@Override\r\n\tpublic boolean synDueDataByService() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "84ddfdbe51d536324574f4d19968f917", "score": "0.52049464", "text": "public interface SysRepairOrderService {\n /**\n * 获取瑞加+系统的工单统计信息\n * @return\n */\n void getRepairOrder();\n\n}", "title": "" }, { "docid": "af742f83d167b9947ad48f786c7f281f", "score": "0.52039325", "text": "LoanCIBILEntity queryCibilInformation(@Param(\"orderNo\") String orderNo);", "title": "" }, { "docid": "091242659a213ab63f87c66a51098819", "score": "0.52011347", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails();\n String string0 = EWrapperMsgGenerator.bondContractDetails(3694, contractDetails0);\n assertEquals(\"reqId = 3694 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = null\\nconid = 0\\nminTick = 0.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "title": "" }, { "docid": "4ee7b3b96400bb00e146056212495c31", "score": "0.51953936", "text": "public net.is_bg.mon.wsclient.stub.WsStub.GetSpecialitiesDataResponse getSpecialitiesData(\r\n\r\n net.is_bg.mon.wsclient.stub.WsStub.GetSpecialitiesData getSpecialitiesData12)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/getSpecialitiesData\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getSpecialitiesData12,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getSpecialitiesData\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getSpecialitiesData\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsStub.GetSpecialitiesDataResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsStub.GetSpecialitiesDataResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getSpecialitiesData\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getSpecialitiesData\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getSpecialitiesData\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5c1662989bbddd07fde658321f091104", "score": "0.51480806", "text": "void sellerApproveNeedReturn(AfsOrder afsOrder, Boolean isSystem, String address, Boolean isLogistics);", "title": "" }, { "docid": "4339976bd63b6304cfc002900b01882b", "score": "0.5089709", "text": "public List<InfoServiceOrderFixVo> queryInfoServiceOrderFixByOrderNo(InfoServiceOrderFixVo vo)throws Exception;", "title": "" }, { "docid": "295e4dcf8a3991a19052a7133b39f8b4", "score": "0.50799805", "text": "@Test(timeout = 4000)\n public void test067() throws Throwable {\n String string0 = EWrapperMsgGenerator.orderStatus((-630), \"id=13 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = N/A\", 159, (-630), (-630), (-630), (-630), 159, 1144, \"id=13 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = N/A\");\n assertEquals(\"order status: orderId=-630 clientId=1144 permId=-630 status=id=13 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = N/A filled=159 remaining=-630 avgFillPrice=-630.0 lastFillPrice=159.0 parent Id=-630 whyHeld=id=13 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = N/A\", string0);\n }", "title": "" }, { "docid": "050a5a34e1b2e0eeda7fe1e412d42d5e", "score": "0.5070072", "text": "@Test(timeout = 4000)\n public void test48() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails();\n String string0 = EWrapperMsgGenerator.bondContractDetails((-1839), contractDetails0);\n assertEquals(\"reqId = -1839 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = null\\nconid = 0\\nminTick = 0.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "title": "" }, { "docid": "5c96a5701c7c62d4b637749ccc56c82e", "score": "0.5068412", "text": "@Service(name = \"OpenAccount\")\n@OpenlegacyDesigntime(editor = \"WebServiceEditor\")\npublic interface OpenAccountService {\n\n public OpenAccountOut getOpenAccount(OpenAccountIn openAccountIn) throws Exception;\n\n @Getter\n @Setter\n public static class OpenAccountIn {\n \n String dsAccount;\n \n String dsCustid;\n \n String dsCustname;\n \n String dsIban;\n \n String dsBankid;\n \n String dsBranchid;\n \n String dsCntrycd;\n \n String dsTypcd;\n \n String dsSubtypcd;\n \n String dsTypename;\n \n String dsTypedesc;\n \n String dsBalance;\n \n String dsCurrency;\n \n String dsCrtdt;\n \n String dsUpdtdt;\n \n String dsLocked;\n \n String output;\n\n }\n \n @Schema(name = \"OpenAccountOut\", description = \"\")\n @Getter\n @Setter\n public static class OpenAccountOut {\n \n @Schema(description = \"Ds Account\")\n String dsAccount;\n \n @Schema(description = \"Ds Custid\")\n String dsCustid;\n \n @Schema(description = \"Ds Custname\")\n String dsCustname;\n \n @Schema(description = \"Ds Iban\")\n String dsIban;\n \n @Schema(description = \"Ds Bankid\")\n String dsBankid;\n \n @Schema(description = \"Ds Branchid\")\n String dsBranchid;\n \n @Schema(description = \"Ds Cntrycd\")\n String dsCntrycd;\n \n @Schema(description = \"Ds Typcd\")\n String dsTypcd;\n \n @Schema(description = \"Ds Subtypcd\")\n String dsSubtypcd;\n \n @Schema(description = \"Ds Typename\")\n String dsTypename;\n \n @Schema(description = \"Ds Typedesc\")\n String dsTypedesc;\n \n @Schema(description = \"Ds Balance\")\n String dsBalance;\n \n @Schema(description = \"Ds Currency\")\n String dsCurrency;\n \n @Schema(description = \"Ds Crtdt\")\n String dsCrtdt;\n \n @Schema(description = \"Ds Updtdt\")\n String dsUpdtdt;\n \n @Schema(description = \"Ds Locked\")\n String dsLocked;\n \n @Schema(description = \"Output\")\n String output;\n }\n}", "title": "" }, { "docid": "3ebe3b5dacdd192e3175e1c372f16bcd", "score": "0.50570905", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n String string0 = EWrapperMsgGenerator.nextValidId(0);\n assertEquals(\"Next Valid Order ID: 0\", string0);\n \n UnderComp underComp0 = new UnderComp();\n OrderState orderState0 = new OrderState();\n Vector<Integer> vector0 = new Vector<Integer>();\n Contract contract0 = new Contract(2042, (String) null, \"\", \"x=~<TPQ\", (-155.0408124), \"askPrice\", \"TB]4X%8#dxSQ(_\", \"5OkiTV\", \"lowEFP\", \"lowEFP\", vector0, \"5OkiTV\", false, \" avgFillPrice=\", \"5OkiTV\");\n Order order0 = new Order();\n EWrapperMsgGenerator.openOrder(0, contract0, order0, orderState0);\n String string1 = EWrapperMsgGenerator.deltaNeutralValidation(0, underComp0);\n assertEquals(\"id = 0 underComp.conId =0 underComp.delta =0.0 underComp.price =0.0\", string1);\n \n String string2 = EWrapperMsgGenerator.tickEFP(0, 0, (-803.31952526859), (String) null, (-1037.31654603), (-5183), \"OptionAskExchStr\", Integer.MAX_VALUE, 2408.571);\n assertEquals(\"id=0 bidSize: basisPoints = -803.31952526859/null impliedFuture = -1037.31654603 holdDays = -5183 futureExpiry = OptionAskExchStr dividendImpact = 2.147483647E9 dividends to expiry = 2408.571\", string2);\n \n ContractDetails contractDetails0 = new ContractDetails();\n String string3 = EWrapperMsgGenerator.bondContractDetails(3770, contractDetails0);\n assertEquals(\"reqId = 3770 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = null\\nconid = 0\\nminTick = 0.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string3);\n }", "title": "" }, { "docid": "0117af89e2992ddaefb1e7d34a3c23fb", "score": "0.5053667", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, (String) null, (String) null, 1.0, \" It does not support realtime bar data query cancellation.\", \"U:tt\", (-1), \"d+X3\", \": basisPoints = \", \" warningText=\", (String) null, (String) null, \" warningText=\", (String) null, (String) null);\n String string0 = EWrapperMsgGenerator.contractDetails(30, contractDetails0);\n assertEquals(\"reqId = 30 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\nmarketName = null\\ntradingClass = null\\nminTick = 1.0\\nprice magnifier = 0\\norderTypes = It does not support realtime bar data query cancellation.\\nvalidExchanges = U:tt\\nunderConId = -1\\nlongName = d+X3\\ncontractMonth = : basisPoints = \\nindustry = warningText=\\ncategory = null\\nsubcategory = null\\ntimeZoneId = warningText=\\ntradingHours = null\\nliquidHours = null\\n ---- Contract Details End ----\\n\", string0);\n }", "title": "" }, { "docid": "3b575cb27a28f28dd5416b898fbcc968", "score": "0.50397646", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Vector<Object> vector0 = new Vector<Object>();\n Contract contract0 = new Contract((-1478), \">c(|\", \"BAG\", \">c(|\", 0L, \"FA: null >c(|\", (String) null, (String) null, \"FA: null >c(|\", \">c(|\", vector0, \"FA: null >c(|\", true, \"O1\", \"g<]<<@)g/\");\n Order order0 = new Order();\n order0.m_basisPoints = (double) (-1478);\n OrderState orderState0 = new OrderState((String) null, \">c(|\", \"BAG\", \" It does not support realtime bar data query cancellation.\", 679.672068597088, 1.7976931348623157E308, 0, \" It does not support snapshot market data requests.\", \"cTb}\");\n String string0 = EWrapperMsgGenerator.openOrder((-1478), contract0, order0, orderState0);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "9ab77aa4d6367eb8cb264505e2148eef", "score": "0.50235265", "text": "public interface GeneralLedgerPendingEntrySourceDetail extends PersistableBusinessObject {\n /**\n * @return Returns the chartOfAccountsCode.\n */\n public abstract String getChartOfAccountsCode();\n /**\n * @return Returns the accountNumber.\n */\n public abstract String getAccountNumber();\n /**\n * @return Returns the account.\n */\n public abstract Account getAccount();\n /**\n * @return Returns the documentNumber.\n */\n public abstract String getDocumentNumber();\n /**\n * @return Returns the financialObjectCode.\n */\n public abstract String getFinancialObjectCode();\n /**\n * @return Returns the objectCode.\n */\n public abstract ObjectCode getObjectCode();\n /**\n * @return Returns the organizationReferenceId.\n */\n public abstract String getOrganizationReferenceId();\n /**\n * @return Returns the projectCode.\n */\n public abstract String getProjectCode();\n /**\n * @return Returns the referenceNumber.\n */\n public abstract String getReferenceNumber();\n /**\n * @return Returns the referenceTypeCode.\n */\n public abstract String getReferenceTypeCode();\n /**\n * @return Returns the referenceOriginCode.\n */\n public abstract String getReferenceOriginCode();\n /**\n * @return Returns the subAccountNumber.\n */\n public abstract String getSubAccountNumber();\n /**\n * @return Returns the financialSubObjectCode.\n */\n public abstract String getFinancialSubObjectCode();\n /**\n * @return Returns the financialDocumentLineDescription.\n */\n public abstract String getFinancialDocumentLineDescription();\n /**\n * @return Returns the amount.\n */\n public abstract KualiDecimal getAmount();\n /**\n * @return Returns the postingYear.\n */\n public abstract Integer getPostingYear();\n /**\n * @return Returns the balanceTypeCode.\n */\n public abstract String getBalanceTypeCode();\n}", "title": "" }, { "docid": "5313c8b38d3419fc671ab27b4e664f04", "score": "0.50229514", "text": "@Test\n\tpublic void testReq13() throws Exception {\n\t\tDescribeSObjectResult dso = soap.describeSObject(\"Customer_Category__c\", sh, null, null);\n\t\tSystem.out.println(\"Table Customer_Category__c\");\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n//\t\tCustomerCategoryC\n\t\tQueryResult query = soap.query(\"SELECT Account_Number__c, GLOBAL_ACCT__c, HIGH_DEN_ACCT__c, BASELINE_ACCT__c, AEB_P1_ACCT__c, AEB_P2_ACCT__c FROM Customer_Category__c \", sh, null, null, null);\n\t\tList<SObject> objects = query.getRecords();\n\t\tfor (SObject so : objects) {\n\t\t\tlogger.debug(\"{}\",so);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "2b1b8a6e3308a0adbc3e8c22abe15d5b", "score": "0.50217175", "text": "@Test(timeout = 4000)\n public void test068() throws Throwable {\n String string0 = EWrapperMsgGenerator.orderStatus(0, (String) null, 0, 0, 0.0, (-38), 2929, 0.0, (-38), \",?@YW`U %4$XY|7jK>L\");\n assertEquals(\"order status: orderId=0 clientId=-38 permId=-38 status=null filled=0 remaining=0 avgFillPrice=0.0 lastFillPrice=0.0 parent Id=2929 whyHeld=,?@YW`U %4$XY|7jK>L\", string0);\n }", "title": "" }, { "docid": "31de36a80c14d1cf2b15f7bd903dcddc", "score": "0.50144887", "text": "public boolean isInformationOn ()\n {\n return false;\n }", "title": "" }, { "docid": "5a53c699ff18d1faf021d8be8263ff7c", "score": "0.50005597", "text": "public VehicleDealerFinanceDetails() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "54f7ea0d26cd67a45b9b157dcfeb488a", "score": "0.49906018", "text": "com.cdiscount.www.OrderTypeEnum xgetOrderType();", "title": "" }, { "docid": "1a76cdc1b4bf410b36f04d8928aca9bf", "score": "0.4977464", "text": "@Test\n\tpublic void testReq04() throws Exception {\n\t\tDescribeSObjectResult dso = soap.describeSObject(\"Competitor_price__c\", sh, null, null);\n\t\tSystem.out.println(\"Table Competitor_price__c\");\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\tSystem.out.println(\"Table Competitor_Price_Item__c\");\n\t\tdso = soap.describeSObject(\"Competitor_Price_Item__c\", sh, null, null);\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t\n\t\tQueryResult query = soap.query(\"SELECT Name,Status__c,Submit_Date__c,Product_Type__c,Application__c,Density__c,Compatible_MXIC_EPN__c,Grade__c,Package_Name__c,Pin_Count__c,Remark__c,Customer__c,Customer_English_Short_Name__c,Customer_Region__c,Group_ID__c,Group_English_Short_Name__c,CreatedById,CreatedDate,OwnerId,Visit_Report_Doc_No__c,Visit_Report_URL__c,Related_Person__c, (SELECT Competitor_Price__c,Name,Competitor_Name__c,Currency__c,Exchange_Rate_USD__c,Exchange_Rate_JPY__c,Exchange_Rate_JPY_USD__c,Month1__c,US_ASP1__c,End_Price_1__c,Month2__c,US_ASP2__c,End_Price_2__c,Month3__c,US_ASP3__c,End_Price_3__c,Month4__c,US_ASP4__c,End_Price_4__c,Month5__c,US_ASP5__c,End_Price_5__c,Month6__c,US_ASP6__c,End_Price_6__c FROM Competitor_price__c.Competitor_Price_Item__r) FROM Competitor_price__c as cp\", sh, null, null, null);\n\t\tList<SObject> objects = query.getRecords();\n\t\tSystem.out.println(\"object size[\"+objects.size()+\"]\");\n\t\tfor (SObject so : objects) {\n\t\t\tSystem.out.println(so);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b0f322e2471aefc35091acae9d1f7563", "score": "0.49765357", "text": "protected void processReceivedInfo(byte[] rdt) throws Exception\n\t{\n\t\tAs21Id23 id23dt = new As21Id23(rdt) ;\n\n\t\t//#CM32682\n\t\t// Based on the AGCNo. received, generate the instance of GroupController.\n\t\tGroupController gct = GroupController.getInstance(wConn , wAgcNumber);\n\t\tString str = id23dt.getResponseClassification ();\n\n\t\t//#CM32683\n\t\t// Normal end\n\t\tif (str.equals(As21Id23.NORMAL_END))\n\t\t{\n\t\t\t//#CM32684\n\t\t\t// If hte classificaiton of response is normal, set the GroupController.Status off-line.\n\t\t\tgct.setStatus(GroupController.STATUS_OFFLINE);\n\n\t\t\t//#CM32685\n\t\t\t// Updating the machine table\n\t\t\t//#CM32686\n\t\t\t// Generatest the list of machine information based on the AGCNo.\n\t\t\tMachineSearchKey mk = new MachineSearchKey();\n\t\t\tMachineHandler mh = new MachineHandler(wConn);\n\n\t\t\tmk.setControllerNumber(wAgcNumber); \n\t\t\tMachine[] machines = (Machine[])mh.find(mk);\n\t\t\tfor (int i = 0 ; i < machines.length ; i++)\n\t\t\t{\n\t\t\t\t//#CM32687\n\t\t\t\t// If the machine status is other than offline, change status to no communication (status disabled)\n\t\t\t\tif (machines[i].getState() != As21MachineState.STATE_OFFLINE )\n\t\t\t\t{\n\t\t\t\t\tMachineAlterKey mak = new MachineAlterKey();\n\t\t\t\t\tmak.setMachineType(machines[i].getMachineType());\n\t\t\t\t\tmak.setMachineNumber(machines[i].getMachineNumber());\n\t\t\t\t\tmak.setControllerNumber(machines[i].getControllerNumber());\n\t\t\t\t\tmak.updateState(Machine.STATE_DISCONNECT);\n\t\t\t\t\tmak.updateErrorCode(null);\n\t\t\t\t\tmh.modify(mak);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//#CM32688\n\t\t\t// update station and aisle status\n\t\t\tId30Process id30 = new Id30Process(wAgcNumber);\n\t\t\tfor (int i = 0 ; i < machines.length ; i++)\n\t\t\t{\n\t\t\t\tStation st = StationFactory.makeStation(wConn, machines[i].getStationNumber());\n\t\t\t\tid30.updateStatus(wConn, st);\n\t\t\t}\t\t\t\n\t\t}\n\t\t//#CM32689\n\t\t// Not able to end\n\t\telse if (str.equals(As21Id23.END_IMPOSS))\n\t\t{\n\t\t\t//#CM32690\n\t\t\t// Sets GroupController.Status on-line.\n\t\t\tgct.setStatus(GroupController.STATUS_ONLINE);\n\t\t\tObject[] tObj = new Object[2] ;\n\t\t\ttObj[0] = id23dt.getModelCode() ;\n\t\t\ttObj[1] = id23dt.getMachineNo() ;\n\t\t\t//#CM32691\n\t\t\t// 6024028=Unable to terminate was received in response to End Work. Machine type Code={0} Machine No.={1}.\n\t\t\tRmiMsgLogClient.write(6024028, LogMessage.F_WARN, \"Id23Process\", tObj);\n\t\t}\n\t\t//#CM32692\n\t\t// Data error\n\t\telse if (str.equals(As21Id23.DATA_ERR))\n\t\t{\n\t\t\t//#CM32693\n\t\t\t// Sets GroupController.Status on-line\n\t\t\tgct.setStatus(GroupController.STATUS_ONLINE);\n\t\t\tObject[] tObj = new Object[2] ;\n\t\t\ttObj[0] = id23dt.getModelCode() ;\n\t\t\ttObj[1] = id23dt.getMachineNo() ;\n\t\t\t//#CM32694\n\t\t\t// 6024029=Data error was received in response to End Work. Machine type Code={0} Machine No.={1}\n\t\t\tRmiMsgLogClient.write(6024029, LogMessage.F_WARN, \"Id23Process\", tObj);\n\t\t}\n\t\t//#CM32695\n\t\t// Classificaiton of replay is invalid.\n\t\telse\n\t\t{\n\t\t\t//#CM32696\n\t\t\t// Sets GroupController.Status on-line\n\t\t\tgct.setStatus(GroupController.STATUS_ONLINE);\n\t\t\tObject[] tObj = new Object[2] ;\n\t\t\ttObj[0] = \"23\";\n\t\t\ttObj[1] = str;\n\t\t\t//#CM32697\n\t\t\t// 6026037=Response category for text ID {0} is invalid. Receive response category={1}\n\t\t\tRmiMsgLogClient.write(6026037, LogMessage.F_ERROR, \"Id23Process\", tObj);\n\t\t}\n\t}", "title": "" }, { "docid": "061488ee92180f3b7e1963575eee01be", "score": "0.49745974", "text": "@Test\n\tpublic void testReq07() throws Exception {\n\t\tDescribeSObjectResult dso = soap.describeSObject(\"Product_Opportunity__c\", sh, null, null);\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t\n\t\tQueryResult query = soap.query(\"SELECT Id,Design_in_Site_ID__c,Prospect_Group_No__c,EPN__c,Application__c,SAM_Avg_Amount__c,First_MP_Order_No__c FROM Product_Opportunity__c WHERE First_MP_Order_No__c <> null and Check_Result__c = null\", sh, null, null, null);\n\t\tList<SObject> objects = query.getRecords();\n\t\tfor (SObject so : objects) {\n\t\t\tlogger.debug(\"{}\",so);\n\t\t}\n\t}", "title": "" }, { "docid": "889bec3d51509e8781a9488e7c268ad9", "score": "0.49726665", "text": "@Test(timeout = 4000)\n public void test091() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails();\n String string0 = EWrapperMsgGenerator.bondContractDetails(0, contractDetails0);\n assertEquals(\"reqId = 0 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = null\\nconid = 0\\nminTick = 0.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "title": "" }, { "docid": "ff3e68f3f598f000cd6807ee5b72bf97", "score": "0.4964229", "text": "public net.is_bg.mon.wsclient.stub.WsStub.GetUniversitiesDataResponse getUniversitiesData(\r\n\r\n net.is_bg.mon.wsclient.stub.WsStub.GetUniversitiesData getUniversitiesData6)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/getUniversitiesData\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getUniversitiesData6,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getUniversitiesData\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getUniversitiesData\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsStub.GetUniversitiesDataResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsStub.GetUniversitiesDataResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getUniversitiesData\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getUniversitiesData\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getUniversitiesData\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "aacf1258e87e20d9fa3569273fa54e6d", "score": "0.49587545", "text": "public Object getServicingOrderRecord() {\n return servicingOrderRecord;\n }", "title": "" }, { "docid": "39360d4dc404cd45f4aba03669a17b78", "score": "0.49584925", "text": "private xtreemfs_get_suitable_osdsRequest() {\n initFields();\n }", "title": "" }, { "docid": "7be9560f0f276e22d0118ec5ddf39e5c", "score": "0.49548244", "text": "@Test(timeout = 4000)\n public void test067() throws Throwable {\n String string0 = EWrapperMsgGenerator.orderStatus((-1792986280), \"\", 1219, 1219, (-1792986280), 0, 3053, 1.7976931348623157E308, 3053, \"hVIbz\\\"T\");\n assertEquals(\"order status: orderId=-1792986280 clientId=3053 permId=0 status= filled=1219 remaining=1219 avgFillPrice=-1.79298628E9 lastFillPrice=1.7976931348623157E308 parent Id=3053 whyHeld=hVIbz\\\"T\", string0);\n }", "title": "" }, { "docid": "85104854f2288d944017669bba8ef9f9", "score": "0.4948848", "text": "public com.service_now.www.ServiceNow_u_cmdb_rel_inboundStub.GetResponse get(\r\n\r\n com.service_now.www.ServiceNow_u_cmdb_rel_inboundStub.Get get14)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\r\n _operationClient.getOptions().setAction(\"http://www.service-now.com/u_cmdb_rel_inbound/get\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n get14,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www.service-now.com\",\r\n \"get\")));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n com.service_now.www.ServiceNow_u_cmdb_rel_inboundStub.GetResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (com.service_now.www.ServiceNow_u_cmdb_rel_inboundStub.GetResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex=\r\n (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }", "title": "" }, { "docid": "e8c20c068b156e8831be2a40cf6d4b5f", "score": "0.49403173", "text": "public ServiceOrder getServiceOrderStatusAndCompletedDate(String serviceOrderID) throws DataServiceException;", "title": "" }, { "docid": "a95800e9a1f3b71aed7cdc8e0183f4e0", "score": "0.49356338", "text": "@Test\n\tpublic void testReq12() throws Exception {\n\t\tDescribeSObjectResult dso = soap.describeSObject(\"Account\", sh, null, null);\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t\n\t\tQueryResult query = soap.query(\"SELECT AccountNumber, Record_Type__c, Account_Group__c FROM Account WHERE Record_Type__c = 'SAP_Customer'\", sh, null, null, null);\n\t\tList<SObject> objects = query.getRecords();\n\t\tfor (SObject so : objects) {\n\t\t\tlogger.debug(\"{}\",so);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "396fa8b340a26cdeb5ed8b5a546e2919", "score": "0.49354407", "text": "public String getServicingOrderReference() {\n return servicingOrderReference;\n }", "title": "" }, { "docid": "93c7f0be4ccc9f9cf46ff25f305ec471", "score": "0.49350753", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Vector<Object> vector0 = new Vector<Object>();\n Contract contract0 = new Contract((-1478), \">c(|\", \"BAG\", \">c(|\", 0L, \"FA: null >c(|\", (String) null, (String) null, \"FA: null >c(|\", \">c(|\", vector0, \"FA: null >c(|\", false, \"id=13 modelOptComp: vol = N/A delta = N/A: modelPrice = N/A: pvDividend = 427.24772474\", \"g<]<<@)g/\");\n Order order0 = new Order();\n UnderComp underComp0 = new UnderComp();\n contract0.m_underComp = underComp0;\n OrderState orderState0 = new OrderState((String) null, \"nextOptionPartial = \", \"BAG\", \" It does not support realtime bar data query cancellation.\", 702.897, 1.7976931348623157E308, 0, \" It does not support snapshot market data requests.\", \"cTb}\");\n String string0 = EWrapperMsgGenerator.openOrder(0, contract0, order0, orderState0);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "217ae31729af104bcc1938386234489a", "score": "0.4934351", "text": "public ErrorInfo sendOOrder(String atn,LSRDataBean lsrDataBean,String orderType,Vector tnList,Hashtable reqData,VendorTableDataBean vendorBean,Vector vendorAsocVector){\n \n ErrorInfo resultStr = new ErrorInfo();\n LSRdao lsrDao = new LSRdao();\n \n try {\n Log.write(\"BWDCRISOrderWebservice webServiceInvoke calling: \");\n ExpressWebService expressWebserviceImpl = new ExpressWebService_Impl();\n \n ExpressOrderWebLayer expressWebLayer = expressWebserviceImpl.getExpressOrderWebLayer();\n\n //code to change Endpoint URL dynamically based on lsr.properties entry for lsr.bwexpressord.URL\n ExpressOrderWebLayer_Stub ewlStub = (ExpressOrderWebLayer_Stub)expressWebLayer;\n URL urlString = new URL(PropertiesManager.getProperty(\"lsr.bwexpressord.URL\",\"\"));\n\n Log.write(\"BW ExpressOrd URL prior to dynamic setting : \"+ewlStub._getTargetEndpoint());\n ewlStub._setTargetEndpoint(urlString);\n Log.write(\"BW ExpressOrd URL after to dynamic setting : \"+ewlStub._getTargetEndpoint());\n\n \n OpCreateExpressOrderRequest createRequest = new OpCreateExpressOrderRequest();\n \n \n String atnWithoutHyphens;\n ServiceData [] serviceOrderArray;\n AsocData [] asocDataArray;\n \n //get SPflag\n \n String spFlag = lsrDao.retrieveSPFlag(lsrDataBean.getReqstNmbr(),lsrDataBean.getReqstVer());\n \n //do all variable substitutions to get values from Simple Port valid fields instead of \n //Complex port valid fields\n \n if(spFlag.equals(\"Y\")) {\n //lsrDataBean.setAct\n \n lsrDataBean.setSimpleportAccountNo(lsrDataBean.getAccountNo());\n lsrDataBean.setSimpleportDDD(lsrDataBean.getDesiedDueDate());\n \n //AddressBean addr = lsrDataBean.getAddress();\n \n Map mapAddress = lsrDataBean.getAddressMap();\n AddressBean addr = (AddressBean) mapAddress.get(\"EU_LA\");\n Log.write(\"LSRBaseValidator setting SPZIP with EU ZIP value :\" + addr.getZip());\n \n \n lsrDataBean.setSimpleportZIP(addr.getZip());\n \n if(addr.getZip() != null)\n Log.write(\"Zip code from SPSR :\"+addr.getZip());\n \n lsrDataBean.setNewNetworkSP(lsrDataBean.getNewNetwork());\n \n List gotoList = lsrDataBean.getPortedNBR();\n \n String portedNumber = (String) gotoList.get(0);\n \n portedNumber = portedNumber.replaceAll(\"-\",\"\");\n \n //lsrDao.getPortedTNs(lsrDataBean.getReqstNmbr(),)\n \n //lsrDataBean.getPortedNBR();\n \n lsrDataBean.setAccountTelephoneNo(portedNumber);\n \n Log.write(\"ported Number :\"+portedNumber);\n }\n \n //create empty ASOC \n \n AsocData [] emptyAsocDataArray = new AsocData[1];\n\n emptyAsocDataArray[0] = new AsocData();\n\n //send an empty asoc list for all types except UNEP CONV\n emptyAsocDataArray[0].setAsocActionInd(\"\");//always I\n emptyAsocDataArray[0].setAsocID(\"\");//asoc name/ID\n emptyAsocDataArray[0].setAsocQty(\"\");//always 1\n emptyAsocDataArray[0].setAsocRate(\"\");//asoc t\n emptyAsocDataArray[0].setAsocRemark(\"\");//always empty\n emptyAsocDataArray[0].setAsocSeqNum(\"\");//always 1\n emptyAsocDataArray[0].setAsocSign(\"\");//always +\n emptyAsocDataArray[0].setAsocType(\"\");// always an I \n \n if(lsrDataBean.getSerRequestType().trim().equals(\"G\") || \n lsrDataBean.getSerRequestType().trim().equals(\"H\") ||\n lsrDataBean.getSerRequestType().trim().equals(\"J\")) {\n asocDataArray = emptyAsocDataArray;\n } else {\n \n if(vendorAsocVector.size() > 0) {\n //get asoc data from vendor table only for service order asoc\n //only for UNEP CONV PONs add one more array element to add\n //PLOCK ASOC for FPI = A, B or E\n if(lsrDataBean.getSerRequestType().trim().equals(\"M\") \n && lsrDataBean.getActivity().trim().equals(\"V\")) {\n asocDataArray = new AsocData[vendorAsocVector.size()+1];\n } else {\n asocDataArray = new AsocData[vendorAsocVector.size()];\n }\n\n for(int i = 0; i < vendorAsocVector.size(); i++) {\n\n Hashtable ht = (Hashtable) vendorAsocVector.get(i);\n\n asocDataArray[i] = new AsocData();\n\n Log.write(\"ABout to display value of Asoc ht...\");\n Log.write(\"ASOC CD : \"+(String)ht.get(\"ASOC_CD\"));\n Log.write(\"ASOC CD : \"+(String)ht.get(\"ASOC_FEE_RATE\"));\n Log.write(\"Vendor BTN : \"+vendorBean.getBTN());\n String howAsocFeeApplies = (String) ht.get(\"HOW_ASOC_FEE_APPLIES\"); \n \n //send a filled asoc list for all types except Directory PONs\n //and for UNEPs we will send asoc list from PS form of PON\n // for all other types we send asoc list from vendor table\n asocDataArray[i].setAsocActionInd(\"I\");//always I\n asocDataArray[i].setAsocID((String) ht.get(\"ASOC_CD\"));//asoc name/ID\n asocDataArray[i].setAsocQty(\"1\");//always 1\n asocDataArray[i].setAsocRate((String) ht.get(\"ASOC_FEE_RATE\"));//asoc t\n \n //for PS ASOCS dont put BTN in remarks and asoc type is N\n if(howAsocFeeApplies.equals(\"PS_ASOC\")) {\n asocDataArray[i].setAsocRemark(\"\");//always empty\n asocDataArray[i].setAsocType(\"N\");// always an I \n } else {\n asocDataArray[i].setAsocRemark(vendorBean.getBTN());//always empty\n asocDataArray[i].setAsocType(\"B\");// always an I \n }\n \n asocDataArray[i].setAsocSeqNum(\"1\");//always 1\n asocDataArray[i].setAsocSign(\"+\");//always +\n } \n } else {//if vendorasocvector size = 0\n asocDataArray = new AsocData[1];\n\n asocDataArray[0] = new AsocData();\n\n //send an empty asoc list for all types except UNEP CONV\n asocDataArray[0].setAsocActionInd(\"\");//always I\n asocDataArray[0].setAsocID(\"\");//asoc name/ID\n asocDataArray[0].setAsocQty(\"\");//always 1\n asocDataArray[0].setAsocRate(\"\");//asoc t\n asocDataArray[0].setAsocRemark(\"\");//always empty\n asocDataArray[0].setAsocSeqNum(\"\");//always 1\n asocDataArray[0].setAsocSign(\"\");//always +\n asocDataArray[0].setAsocType(\"\");// always an I \n }//end of asocvector size = 0\n }//end of if DA types\n \n \n \n serviceOrderArray = new ServiceData[tnList.size()];\n\n for (int i = 0; i < tnList.size(); i++) {\n\n serviceOrderArray[i] = new ServiceData();\n\n atnWithoutHyphens = tnList.get(i).toString().replaceAll(\"-\",\"\").trim();\n\n\t\t//if UNEP CONV PON then disassemble string to get PIC,IPIC and FPI\n String pic = \"\";\n String iPic = \"\";\n String fpi = \"\";\n \n if(lsrDataBean.getSerRequestType().trim().equals(\"M\") \n && lsrDataBean.getActivity().trim().equals(\"V\")) {\n \n String [] unepList = atnWithoutHyphens.split(\"/\");\n \n atnWithoutHyphens = unepList[0].trim();\n pic = unepList[1];\n iPic = unepList[2];\n fpi = unepList[3];\n \n if(fpi != null && (fpi.trim().equals(\"A\") || fpi.trim().equals(\"B\") ||\n fpi.trim().equals(\"E\"))) {\n asocDataArray[vendorAsocVector.size()] = new AsocData();\n\n //add ASOC for PLOCK as FPI is a A,B or E\n asocDataArray[vendorAsocVector.size()].setAsocActionInd(\"I\");//always I\n asocDataArray[vendorAsocVector.size()].setAsocID(\"PLOCK\");//asoc name/ID\n asocDataArray[vendorAsocVector.size()].setAsocQty(\"1\");//always 1\n asocDataArray[vendorAsocVector.size()].setAsocRate(\"0.0\");//asoc t\n asocDataArray[vendorAsocVector.size()].setAsocRemark(fpi.trim()+\"W\");//always empty\n asocDataArray[vendorAsocVector.size()].setAsocSeqNum(\"1\");//always 1\n asocDataArray[vendorAsocVector.size()].setAsocSign(\"+\");//always +\n asocDataArray[vendorAsocVector.size()].setAsocType(\"I\");// always an I \n } else {\n asocDataArray[vendorAsocVector.size()] = new AsocData();\n\n //add empty ASOC if FPI is not a A,B or E\n asocDataArray[vendorAsocVector.size()].setAsocActionInd(\"\");//always I\n asocDataArray[vendorAsocVector.size()].setAsocID(\"\");//asoc name/ID\n asocDataArray[vendorAsocVector.size()].setAsocQty(\"\");//always 1\n asocDataArray[vendorAsocVector.size()].setAsocRate(\"\");//asoc t\n asocDataArray[vendorAsocVector.size()].setAsocRemark(\"\");//always empty\n asocDataArray[vendorAsocVector.size()].setAsocSeqNum(\"\");//always 1\n asocDataArray[vendorAsocVector.size()].setAsocSign(\"\");//always +\n asocDataArray[vendorAsocVector.size()].setAsocType(\"\");// always an I \n }\n }\n serviceOrderArray[i].setTelephoneNumber(atnWithoutHyphens);//atn without hyphens\n \n //associate asoc list only with the first TN or Pilot TN in TNlist\n if(i == 0) {\n serviceOrderArray[i].setArrayOfRecAsoc(asocDataArray);//?\n } else {\n serviceOrderArray[i].setArrayOfRecAsoc(emptyAsocDataArray);//?\n }\n \n //if UNEP Conv PON send PIC and IPIC value from lsrDataBean\n // for all other types send empty values of IPIC and PIC\n if(lsrDataBean.getSerRequestType().trim().equals(\"M\")\n && lsrDataBean.getActivity().trim().equals(\"V\")) {\n serviceOrderArray[i].setIpic(pic);\n serviceOrderArray[i].setPic(iPic);\n \n } else {\n \n serviceOrderArray[i].setIpic(\"NONE\");\n serviceOrderArray[i].setPic(\"NONE\");\n }//if for pic and ipic\n }//for loop with TNlist\n \n createRequest.setArrayOfServiceData(serviceOrderArray);\n \n AddressData addressData = new AddressData();\n \n Map addressMap = lsrDataBean.getAddressMap();\n \n AddressBean addrBean;\n \n if(orderType.equals(\"DD\")) {\n addrBean = (AddressBean) addressMap.get(\"DSR\");\n } else {\n addrBean = (AddressBean) addressMap.get(\"EU_LA\"); \n }\n \n //Fix for Jira Issue# 46 - Antony - 06/17/2010\n \n String addrLine1 = \"\";\n String addrLine1Upper=\"\";\n String addrLine2 = \"\";\n String addrLine2Upper=\"\";\n String addrLine3 = \"\";\n String addrLine3Upper=\"\";\n String addrCity = \"\";\n String addrState = \"\";\n String addrZip = \"\";\n String addrCityUpper = \"\";\n String addrStateUpper = \"\";\n String addrZipUpper = \"\";\n Addr camsAddress = null;\n AddLn camsAddrLines [] = null;\n ValidationDataBean validationData = null;\n \n //fix for SPIRA\n \n if(spFlag.equals(\"Y\")) {\n //call BW custprofile project only if it is a SP as we need address lines from CAMS\n BWCusInfoWebservice bwcusInfows = new BWCusInfoWebservice();\n Log.write(\"BWCusInfoWebservice calling from BWDCRISOrder for SP\");\n bwcusInfows.webServiceInvoke(lsrDataBean);\n \n //Log.write(\" processRequest method reqNo: \" + reqNo + \" reqUrl: \" + reqUrl + \" objLSRDataBean \" + objLSRDataBean);\n\n /*\n * creating ValidationDataBean instance\n */\n\n validationData = bwcusInfows.getValidationBean();\n \n camsAddress = validationData.getCustAddress();\n camsAddrLines = camsAddress.getAddrLine();\n }\n \n if(orderType.equals(\"DD\")) {\n addrLine1 = lsrDataBean.getDsrName();\n \n if(addrLine1 != null)\n addrLine1Upper = addrLine1.toUpperCase();\n \n Log.write(\"Value of addrLine1 in Upper case: \"+addrLine1Upper); \n \n addressData.setAddressLine1(addrLine1Upper);//dsr form name\n } else {\n addrLine1 = lsrDataBean.getEuName();\n \n if(addrLine1 != null)\n addrLine1Upper = addrLine1.toUpperCase();\n \n Log.write(\"Value of addrLine1 in Upper case: \"+addrLine1Upper); \n \n addressData.setAddressLine1(addrLine1Upper);//eu form name\n \n if(spFlag.equals(\"Y\")) {\n addressData.setAddressLine1(validationData.getCustName());\n }\n \n }\n \n addrLine2 = addrBean.getStreet();\n \n if(addrLine2 != null)\n addrLine2Upper = addrLine2.toUpperCase();\n\n Log.write(\"Value of addrLine2 in Upper case: \"+addrLine2Upper); \n\n addressData.setAddressLine2(addrLine2Upper);//concatenated string of all eu addr fields as per Tana\n \n if(spFlag.equals(\"Y\")) {\n //addressData.setAddressLine2(\"50 EXECUTIVE PARKWAY HUDSON OH 44236\");\n addressData.setAddressLine2(camsAddrLines[0].getAddrLn());\n }\n \n addrLine3 = addrBean.getCity()+\" \"+addrBean.getState()+\" \"+addrBean.getZip();\n \n if(addrLine3 != null)\n addrLine3Upper = addrLine3.toUpperCase();\n\n Log.write(\"Value of addrLine3 in Upper case: \"+addrLine3Upper); \n\n addressData.setAddressLine3(addrLine3Upper);//conc of city,state and zip always\n \n //addressData.setAddressLine2(addrBean.getStreet());//concatenated string of all eu addr fields as per Tana\n //addressData.setAddressLine3(addrBean.getCity()+\" \"+addrBean.getState()+\" \"+addrBean.getZip());//conc of city,state and zip always\n \n addrCity = addrBean.getCity();\n \n if(addrCity != null)\n addrCityUpper = addrCity.toUpperCase();\n\n Log.write(\"Value of addrCity in Upper case: \"+addrCityUpper); \n\n addressData.setCity(addrCityUpper);//eu city\n \n //addressData.setCity(addrBean.getCity());//eu city\n \n if(spFlag.equals(\"Y\")) \n addressData.setCity(camsAddress.getCity());\n \n addrState = addrBean.getState();\n \n if(addrState != null)\n addrStateUpper = addrState.toUpperCase();\n\n Log.write(\"Value of addrState in Upper case: \"+addrStateUpper); \n\n addressData.setState(addrStateUpper);//eu/rt state\n //addressData.setState(addrBean.getState());//eu/rt state\n \n addrZip = addrBean.getZip();\n \n if(addrZip != null)\n addrZipUpper = addrZip.toUpperCase();\n\n Log.write(\"Value of addrZip in Upper case: \"+addrZipUpper); \n\n addressData.setZip(addrZipUpper);//eu zip\n //addressData.setZip(addrBean.getZip());//eu zip\n \n createRequest.setAddressLsrEUForm(addressData);\n \n ApplicationInfo appInfo = new ApplicationInfo();\n appInfo.setApplicationID(\"Fqyc@tUFosBi4xY0FnM34FLRW8!\");\n appInfo.setApplicationName(\"EXPRESS\");\n \n \n createRequest.setApplicationInfo(appInfo);\n \n //get asoc data from vendor table only for npub and nlist asocs\n // for unep conv and NP PONs; others add empty asoc list\n \n if((lsrDataBean.getSerRequestType().trim().equals(\"C\") || lsrDataBean.getSerRequestType().trim().equals(\"M\"))\n && (lsrDataBean.getActivity().trim().equals(\"V\"))) {\n \n Vector occAsocDataVector = lsrDao.getVTNPubNListASOCs(vendorBean.getVendorConfigSqncNumber(),reqData);\n\n if(occAsocDataVector != null && occAsocDataVector.size() > 0) {\n \n AsocData [] occAsocDataArray = new AsocData[occAsocDataVector.size()];\n \n for(int i = 0; i < occAsocDataVector.size(); i++) {\n\n Hashtable ht = (Hashtable) occAsocDataVector.get(i);\n\n occAsocDataArray[i] = new AsocData();\n\n //send an empty asoc list for all types except UNEP CONV\n occAsocDataArray[i].setAsocActionInd(\"I\");//always I\n occAsocDataArray[i].setAsocID((String) ht.get(\"ASOC_CD\"));//asoc name/ID\n occAsocDataArray[i].setAsocQty(\"1\");//always 1\n occAsocDataArray[i].setAsocRate((String) ht.get(\"ASOC_FEE_RATE\"));//asoc t\n \n String asocType = (String) ht.get(\"ASOC_TYPE\");\n \n if(asocType.trim().equals(\"17\"))\n occAsocDataArray[i].setAsocRemark(\"EXPRESSNONPUB\");\n else if(asocType.trim().equals(\"18\"))\n occAsocDataArray[i].setAsocRemark(\"EXPRESSNONLIST\");\n \n occAsocDataArray[i].setAsocSeqNum(\"1\");//always 1\n occAsocDataArray[i].setAsocSign(\"+\");//always +\n occAsocDataArray[i].setAsocType(\"I\");// always an I \n }\n createRequest.setArrayOfOCCAsocData(occAsocDataArray);\n } else {//if occvector size = 0\n createRequest.setArrayOfOCCAsocData(emptyAsocDataArray);\n }\n } else {\n createRequest.setArrayOfOCCAsocData(emptyAsocDataArray);//if serv act type is NP or UNEP CONV\n }\n \n \n createRequest.setCustTypeCode(lsrDataBean.getCompanyCode());//rt\n createRequest.setDisconnectReason(\"DC\");//always DC\n \n //create SimpleDateFormat object with source string date format\n SimpleDateFormat sdfSource = new SimpleDateFormat(\"MM-dd-yyyy\");\n \n //parse the string into Date object \n Date date = sdfSource.parse(lsrDataBean.getDesiedDueDate());\n \n //create SimpleDateFormat object with desired date format\n SimpleDateFormat sdfDestination = new SimpleDateFormat(\"yyMMdd\");\n \n //parse the date into another format\n String strDueDate = sdfDestination.format(date); \n \n //if(orderType.equals(\"DD\")) { not needed as getDesiredDueDate returns correct date for all types\n createRequest.setDueDate(strDueDate);//lsr dd\n \n if(lsrDataBean.getEUListTreatment() != null) {\n createRequest.setEltInd(lsrDataBean.getEUListTreatment());//eu_t\n } else {\n createRequest.setEltInd(\"\");//eu_t \n }\n \n if(lsrDataBean.getEURetainingList() != null) {\n createRequest.setErlInd(lsrDataBean.getEURetainingList());//eu_t \n } else {\n createRequest.setErlInd(\"\");//eu_t \n \n if(spFlag.equals(\"Y\")) \n createRequest.setErlInd(\"N\");\n \n }\n \n if(lsrDataBean.getListActivity() != null) {\n createRequest.setLactInd(lsrDataBean.getListActivity());//eu_t\n } else {\n createRequest.setLactInd(\"\");//eu_t \n }\n \n \n createRequest.setExpressOrderType(orderType);//NP,UD,RD..\n createRequest.setGoToCount(String.valueOf(lsrDataBean.getPortedNBR().size()));\n createRequest.setLspac800Number(\"8008651498\");\n createRequest.setOcnNumber(lsrDataBean.getOCNcd());//rt\n \n if(orderType.equals(\"DD\")) {\n createRequest.setPilotTN(lsrDataBean.getExitingActTeleNo());//dsr ATN\n /*} else if(orderType.equals(\"NP\") && spFlag.equals(\"Y\")) {\n createRequest.setPilotTN(tnList.get(0).toString().replaceAll(\"-\",\"\").trim());\n Log.write(\"Inside Simple Order if block...\");\n */\n } else {\n createRequest.setPilotTN(lsrDataBean.getAccountTelephoneNo());//rt\n }\n \n createRequest.setPonNumber(lsrDataBean.getReqstPon());//rt\n createRequest.setPonVersion(lsrDataBean.getReqstVer());//rt\n \n String vtTaxJur = vendorBean.getTXJUR();\n String taxJur = \"\";\n \n if (vtTaxJur == null)\n taxJur = (String)reqData.get(\"CUST_TAXJUR\");\n else\n taxJur = (String)reqData.get(\"CUST_TAXJUR\")+\"/\"+vendorBean.getTXJUR();\n \n taxJur = taxJur.replaceAll(\"/\",\"\");\n createRequest.setTaxJur(taxJur);\n \n createRequest.setTransactionID(\"123456789012345678901234567\");\n createRequest.setUserID(\"EXP5072A\");\n \n //String [] vendorBTN = vendorBean.getBTN().split(\",\");\n createRequest.setVendorBTN(vendorBean.getBTN());//vt\n \n createRequest.setVendorContactNumber(vendorBean.getContactNo());//vt\n //fix for Jira issue 50 - Antony - 06162010\n String vendorName = (String)reqData.get(\"COMP_NAME\");\n String vendorNameUpper=\"\";\n \n if(vendorName != null)\n vendorNameUpper = vendorName.toUpperCase();\n \n Log.write(\"Value of Vendor Name in Upper case: \"+vendorNameUpper);\n \n createRequest.setVendorName(vendorNameUpper);\n \n //fix for SPIRA incident #to do -- send HD and DD from vendor table with request -- Antony -- 06/01/2011\n \n createRequest.setHasDirectoryInd(vendorBean.getIsDirectory());\n createRequest.setDeleteDirectoryInd(vendorBean.getIsEligibleToDeleteDir());\n \n createRequest.setWirelessInd((String)reqData.get(\"WIRELESS_IND\"));\n \n String isBroadBandCustomer = (String) reqData.get(\"BROADBAND_CUST\");\n \n \n //commenting out check for broadband,resale disc or unep conversion YYN and units block\n // Antony - 05/23/2012\n /*\n if(isBroadBandCustomer != null && isBroadBandCustomer.equalsIgnoreCase(\"Y\")\n && ((lsrDataBean.getSerRequestType().trim().equals(\"E\")//Resale Disconnect PONs\n && lsrDataBean.getActivity().trim().equals(\"D\")) ||\n (lsrDataBean.getSerRequestType().trim().equals(\"M\")//UNEP Conversion PONs\n && lsrDataBean.getActivity().trim().equals(\"V\"))\n )) {\n createRequest.setWorkForceIorder(\"YYN\");//\n createRequest.setWorkForceOorder(\"YYN\");//\n createRequest.setWorkUnitsIorder(\"2\");//\n createRequest.setWorkUnitsOorder(\"2\");//\n } else { */\n createRequest.setWorkForceIorder(\"\");//\n createRequest.setWorkForceOorder(\"\");//\n createRequest.setWorkUnitsIorder(\"0\");//\n createRequest.setWorkUnitsOorder(\"0\");//\n //}\n \n //set native indicator for request\n int isNativeNumber = lsrDao.getWindstreamNativeNumberLerg(atn);\n String nonNativeFlag = \"\";\n \n if(isNativeNumber == 1)\n nonNativeFlag = \"N\";\n else if(isNativeNumber == 0)\n nonNativeFlag = \"Y\";\n else {\n //send to MR\n Exception ex = new Exception(\"LERG\");\n throw ex;\n }\n \n if(nonNativeFlag.equals(\"Y\") && spFlag.equals(\"Y\")) {\n createRequest.setLactInd(\"D\");\n }\n \n createRequest.setNonNativeInd(nonNativeFlag);\n \n //code to set CLEC and SP indicator for Simple Orders project - Antony - 4/15/2011\n \n createRequest.setSimpleInd(spFlag);\n \n String CLECInd = (String) reqData.get(\"COMP_TYPE\");\n \n if(CLECInd != null && CLECInd.equals(\"C\"))\n createRequest.setClecInd(\"Y\");\n else\n createRequest.setClecInd(\"N\");\n \n Log.write(\"createRequest \"+createRequest.toString());\n OpCreateExpressOrderReply createReply = \n expressWebLayer.opCreateExpressOrder(createRequest);\n \n resultStr = createReply.getErrorInfo();\n \n \n Log.write(\"Create DCRIS order Response :\"+createReply.toString());\n \n } catch(JAXRPCException jx) {\n // BW Dcris Order webservice down call MR stored procedure to update with error\n try {\n lsrDao.callMRStatusUpdateProc(lsrDataBean.getReqstPon(),lsrDataBean.getReqstVer(),lsrDataBean.getOCNcd(),\"7001\",\"Businessware DCRIS Order Webservice down.\");\n } catch(Exception dbEx) {\n \n }\n } catch(Exception ex) {\n ex.printStackTrace();\n Log.write(\"Exception :\"+ex.getMessage());\n \n // BW Dcris Order webservice down call MR stored procedure to update with error\n try {\n if(ex.getMessage().trim().equals(\"LERG\"))\n lsrDao.callMRStatusUpdateProc(lsrDataBean.getReqstPon(),lsrDataBean.getReqstVer(),lsrDataBean.getOCNcd(),\"7005\",\"Internal Error ! Unable to connect to LERG for Non Native Indicator.\");\n else\n lsrDao.callMRStatusUpdateProc(lsrDataBean.getReqstPon(),lsrDataBean.getReqstVer(),lsrDataBean.getOCNcd(),\"7002\",\"Internal Error ! Exception in calling DCRIS order webservice.\");\n } catch(Exception dbEx) {\n \n }\n \n //ExceptionHandler.handleException(\"Exception:BW \",ex);\n }\n \n return resultStr;\n }", "title": "" }, { "docid": "c4a237594c4c7f0ae246db7839d736b4", "score": "0.49327946", "text": "@Override\n\tpublic IOrderProduct getFullInfo(Integer id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c3cd0b84127e60543700067e13cfa563", "score": "0.49308047", "text": "protected MicrotransactionServices mo1154e() {\n return new C0490b();\n }", "title": "" }, { "docid": "9b80ddac76f9d81655f43c9a3dcb216c", "score": "0.49278", "text": "public void testinternalFaultOrder() throws java.lang.Exception {\n com.ycsoft.boss.remoting.cfocn.CFOCN_WebSvc_WorkOrderStub stub = new com.ycsoft.boss.remoting.cfocn.CFOCN_WebSvc_WorkOrderStub(); //the default implementation should point to the right endpoint\n\n com.ycsoft.boss.remoting.cfocn.CFOCN_WebSvc_WorkOrderStub.InternalFaultOrder internalFaultOrder20 =\n (com.ycsoft.boss.remoting.cfocn.CFOCN_WebSvc_WorkOrderStub.InternalFaultOrder) getTestObject(com.ycsoft.boss.remoting.cfocn.CFOCN_WebSvc_WorkOrderStub.InternalFaultOrder.class);\n // TODO : Fill in the internalFaultOrder20 here\n assertNotNull(stub.internalFaultOrder(internalFaultOrder20));\n }", "title": "" }, { "docid": "bce122243047252ddf4ef4cf9274d98e", "score": "0.4924906", "text": "java.lang.String getPartnerOrderRef();", "title": "" }, { "docid": "2a21d75932400fa35294751941591f78", "score": "0.4914457", "text": "@Test\n\tpublic void testReq06() throws Exception {\n\t\tDescribeSObjectResult dso = soap.describeSObject(\"Opportunity\", sh, null, null);\n\t\tSystem.out.println(\"Table Opportunity\");\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t\n\t\tdso = soap.describeSObject(\"DI_Case_Status__c\", sh, null, null);\n\t\tSystem.out.println(\"Table DI_Case_Status__c\");\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t\n\t\tdso = soap.describeSObject(\"DI_Related_Account__c\", sh, null, null);\n\t\tSystem.out.println(\"Table DI_Related_Account__c\");\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t\n\t\tdso = soap.describeSObject(\"Key_Milestone__c\", sh, null, null);\n\t\tSystem.out.println(\"Table Key_Milestone__c\");\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t\n\t\tdso = soap.describeSObject(\"Product_Opportunity__c\", sh, null, null);\n\t\tSystem.out.println(\"Table Product_Opportunity__c\");\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t\n\t\tdso = soap.describeSObject(\"Opportunity_Data__c\", sh, null, null);\n\t\tSystem.out.println(\"Table Opportunity_Data__c\");\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(\"\t\"+field.getName());\n\t\t}\n\t\t/*\n\t\tQueryResult query = conn.query(\"SELECT AccountId, Email, LastModifiedDate FROM EPN_Master__c\");\n\t\tSObject[] objects = query.getRecords();\n\t\tSystem.out.println(\"object size[\"+objects.length+\"]\");\n\t\tfor (SObject so : objects) {\n\t\t\tSystem.out.println(so);\n\t\t}\n\t\t*/\n\t\tQueryResult query = soap.query(\"SELECT Name,Document_Status__c FROM Opportunity WHERE Id <> null and StageName <> 'Draft'\", sh, null, null, null);\n\t\tList<SObject> objects = query.getRecords();\n\t\tfor (SObject so : objects) {\n\t\t\tlogger.debug(\"{}\",so);\n\t\t}\n\t\t/*\n\t\tquery = soap.query(\"SELECT StageName__c,StageDate__c FROM DI_Case_Status__c\", sh, null, null, null);\n\t\tobjects = query.getRecords();\n\t\tfor (SObject so : objects) {\n\t\t\tlogger.debug(\"{}\",so);\n\t\t}\n\t\t*/\n\t\t\n\t\tquery = soap.query(\"SELECT Name, Id, (SELECT StageName__c,StageDate__c FROM Opportunity.DI_Case_Status__r) FROM Opportunity WHERE Id <> null and Document_Status__c <> 'Draft' \", sh, null, null, null);\n\t\t\n\t}", "title": "" }, { "docid": "8057ee0b994919911f985ba1a6ef26eb", "score": "0.49085054", "text": "public ServiceOrderIvrDetailsVO getSoCustomReferencesWS(String soId)throws DataServiceException;", "title": "" }, { "docid": "ef7b1d8bd5872279029daea74c9cbeb9", "score": "0.490701", "text": "@Test\n\tpublic void testReq02() throws Exception {\n\t\tDescribeSObjectResult dso = soap.describeSObject(\"EPN_Master__c\", sh, null, null);\n\t\tfor (Field field : dso.getFields()) {\n\t\t\tSystem.out.println(field.getName());\n\t\t}\n\t\t/*WHERE LastModifiedDate<2012-06-06T05:00:00Z*/\n\t\t/*\n\t\tQueryResult query = soap.query(\"SELECT LastModifiedDate,Group_Line__c,Name,Product_Type__c,Density__c,Voltage__c,Pkg_Type__c,PKG_Name__c,Pin_Count__c,Grade__c,Car_Grade_Flag__c,Brand__c,Body_Size__c,Expired_Date__c,Mark_for_Delete__c,EOL_Flag__c,EOL_Issue_Date__c,LO_Date__c,LS_Date__c FROM EPN_Master__c\", sh, null, null, null);\n\t\tList<SObject> objects = query.getRecords();\n\t\tSystem.out.println(\"object size[\"+objects.size()+\"]\");\n\t\tfor (SObject so : objects) {\n\t\t\tSystem.out.println(so);\n\t\t}\n\t\t*/\n\t}", "title": "" }, { "docid": "73b1df6e062b2bf0d748a45c675ea937", "score": "0.49041787", "text": "@ModelAttribute(\"directDebitTypes\")\n\tprotected Map<String, String> referenceData() {\n\t\tLOGGER.info(\"cancelling Direct Debit type...\");\n\t\tMap<String, String> directDebitTypes = new LinkedHashMap<>();\n\t\tdirectDebitTypes.put(\"One-off\", \"One-off\");\n\t\tdirectDebitTypes.put(\"Recurring\", \"Recurring\");\n\t\treturn directDebitTypes;\n\t}", "title": "" }, { "docid": "797be22bcc1710e8963f092e268589c7", "score": "0.49036276", "text": "public interface OrderService {\n\n /**\n * Find all orders.\n * \n * @return orders set or empty set.\n * @throws LogiwebServiceException\n * if something unexpected happens\n */\n Set<OrderModel> findAllOrders() throws LogiwebServiceException;\n\n \n\n /**\n * Create new empty delivery order with Not Ready status.\n * \n * @param newOrder\n * @return id of created order\n * @throws LogiwebServiceException\n * if something unexpected happens\n */\n int createNewEmptyOrder()\n throws LogiwebServiceException;\n\n /**\n * Find order by id.\n * \n * @param id\n * @return order model or null if not found\n * @throws LogiwebServiceException\n * if something unexpected happens\n */\n OrderModel findOrderById(int id) throws LogiwebServiceException;\n\n /**\n * Assign truck to order. Truck must by managed entity.\n * \n * @param truckId\n * @param orderId\n * @throws ServiceValidationException\n * if truck is not Free or broken.\n * @throws LogiwebServiceException\n * if unexpected happened\n */\n void assignTruckToOrder(int truckId, int orderId)\n throws ServiceValidationException, LogiwebServiceException;\n\n /**\n * Sets 'READY' status for order if order have at least one cargo and assign\n * truck with full crew.\n * \n * @param orderId\n * @throws LogiwebServiceException\n * if unexpected happened\n * @throws ServiceValidationException\n * if validation failed. Description in message.\n */\n void setReadyStatusForOrder(int orderId)\n throws ServiceValidationException, LogiwebServiceException;\n\n /**\n * Sets 'DELIVERED' status for order if all cargoes for this order were\n * delivered.\n * Unassign truck and drivers from order.\n * \n * @param order\n * @throws LogiwebServiceException\n * if unexpected happened\n * @throws ServiceValidationException\n * if validation failed. Description in message.\n * Thrown if order have undelivered cargo.\n */\n void setStatusDeliveredForOrder(int orderId)\n throws ServiceValidationException, LogiwebServiceException;\n\n /**\n * Check if all cargoes were delivered and order can be set to Delivered.\n * \n * @param orderId\n * @return true if order complete and false if there are undelivered cargoes\n * inside order.\n * @throws LogiwebServiceException\n * if validation failed. Description in message.\n */\n boolean isAllCargoesInOrderDelivered(int orderId) throws LogiwebServiceException;\n}", "title": "" }, { "docid": "966c151ef2ed9660aab35d31c7e39bea", "score": "0.4893722", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n String string0 = EWrapperMsgGenerator.orderStatus(0, \"\", 0, (-816), 0, (-816), 0, 0, 0, \"\");\n assertEquals(\"order status: orderId=0 clientId=0 permId=-816 status= filled=0 remaining=-816 avgFillPrice=0.0 lastFillPrice=0.0 parent Id=0 whyHeld=\", string0);\n \n String string1 = EWrapperMsgGenerator.updateMktDepthL2(0, (-3312), \"\", (-3312), 0, (-1975.26), (-4253));\n assertEquals(\"updateMktDepth: 0 -3312 -3312 0 -1975.26 -4253\", string1);\n \n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, (String) null, \"updateMktDepth: 0 -3312 -3312 0 -1975.26 -4253\", 0, \"|K'\", \"id=\", 0, \"h`$qYs?;QePPZR_%:\", (String) null, \"\", (String) null, \"id=\", (String) null, \"\", \"\");\n String string2 = EWrapperMsgGenerator.contractDetails(1692, contractDetails0);\n assertEquals(\"reqId = 1692 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\nmarketName = null\\ntradingClass = updateMktDepth: 0 -3312 -3312 0 -1975.26 -4253\\nminTick = 0.0\\nprice magnifier = 0\\norderTypes = |K'\\nvalidExchanges = id=\\nunderConId = 0\\nlongName = h`$qYs?;QePPZR_%:\\ncontractMonth = null\\nindustry = \\ncategory = null\\nsubcategory = id=\\ntimeZoneId = null\\ntradingHours = \\nliquidHours = \\n ---- Contract Details End ----\\n\", string2);\n \n String string3 = EWrapperMsgGenerator.bondContractDetails(1470, contractDetails0);\n assertEquals(\"reqId = 1470 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = updateMktDepth: 0 -3312 -3312 0 -1975.26 -4253\\nconid = 0\\nminTick = 0.0\\norderTypes = |K'\\nvalidExchanges = id=\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = h`$qYs?;QePPZR_%:\\n ---- Bond Contract Details End ----\\n\", string3);\n \n EWrapperMsgGenerator.scannerParameters(\"updateMktDepth: 0 -3312 -3312 0 -1975.26 -4253\");\n String string4 = EWrapperMsgGenerator.tickOptionComputation((-1), (-1022), 1470, (-4487.301257910224), 0.0, (-1975.26));\n assertEquals(\"id=-1 unknown: vol = 1470.0 delta = N/A\", string4);\n }", "title": "" }, { "docid": "7ff537d177688f8b563d429d7d82a8e2", "score": "0.4893651", "text": "@Test(timeout = 4000)\n public void test095() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails();\n String string0 = EWrapperMsgGenerator.bondContractDetails(0, contractDetails0);\n assertEquals(\"reqId = 0 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = null\\nconid = 0\\nminTick = 0.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "title": "" }, { "docid": "82698ba3018bb3795b72cf28261a346d", "score": "0.48898417", "text": "public interface TransactionService \r\n{\r\n \r\n\tpublic static String POS_TRANSACTION_SEQ = \"F4POS_TRANSACTION_SEQ\";\r\n\tpublic static String POS_TRANSACTION_STATUS_NEW = \"NEW\";\r\n\tpublic static String POS_TRANSACTION_STATUS_FEE_INVOICED = \"FEE INVOICED\";\r\n\tpublic static String POS_TRANSACTION_STATUS_FEE_VOIDED = \"FEE VOIDED\";\r\n\tpublic static String POS_TRANSACTION_STATUS_PAID = \"PAID\";\r\n\tpublic static String POS_TRANSACTION_STATUS_PAYMENT_VOIDED = \"PAYMENT VOIDED\";\r\n\tpublic static String POS_TRANSACTION_STATUS_REFUNDED = \"REFUNDED\";\r\n\t\r\n /**\r\n * \r\n * @param servProvCode\r\n * @param qf\r\n * @param callerID\r\n * @return\r\n * @throws AAException\r\n * @throws RemoteException\r\n */\r\n public Collection getTransactionList(String servProvCode, QueryFormat qf, String callerID)throws AAException,RemoteException;\r\n /**\r\n * get transaction model\r\n * @param servProvCode\r\n * @param transactionID\r\n * @param callerID\r\n * @return\r\n * @throws AAException\r\n * @throws RemoteException\r\n */\r\n public TransactionModel getTransaction(String servProvCode, Long transactionID, String callerID)throws AAException,RemoteException;\r\n\r\n /**\r\n * \r\n * @param servProvCode\r\n * @param trans\r\n * @param qf\r\n * @param callerID\r\n * @return\r\n * @throws AAException\r\n * @throws RemoteException\r\n */\r\n public Collection getTransactionConditionList(TransactionModel trans, QueryFormat qf, String callerID)throws AAException,RemoteException;\r\n\r\n /**\r\n * \r\n * @param servProvCode\r\n * @param date\r\n * @param qf\r\n * @param callerID\r\n * @return\r\n * @throws AAException\r\n * @throws RemoteException\r\n */\r\n public\tvoid removeTransactionDirtyList(String servProvCode, CapIDModel capID,Date date , QueryFormat qf, String callerID)throws AAException,RemoteException;\r\n\r\n \t/**\r\n \t * Returns POS transaction sequence number\r\n \t * \r\n \t * @param POS transaction model\r\n \t * @param callerID\r\n \t * @return transaction sequence\r\n \t * @throws AAException\r\n \t */\r\n \tpublic Long createTransaction(TransactionModel transaction, String callerID) throws AAException, RemoteException;\r\n \t\r\n\t/**\r\n\t * Update a transaction\r\n\t * \r\n\t * @param POS transaction model\r\n\t * @param callerID\r\n\t * @return \r\n\t * @throws AAException\r\n\t */\r\n\tpublic void updateTransaction(TransactionModel transaction, String callerID) throws AAException, RemoteException;\r\n \t\r\n \t/**\r\n \t * Returns the total amount of fee items with special status in a POS transaction.\r\n \t * \r\n \t * @param service provider code\r\n \t * @param capID the POS cap ID.\r\n \t * @param POS transaction sequence\r\n \t * @param fee item stats\r\n \t * @return total fee amount\r\n \t * @throws AAException\r\n \t */\r\n \tpublic double getTotalAmount(String servProvCode, CapIDModel capID, Long posTransSeq, String[] status, String callerID) throws AAException, RemoteException;\r\n \t\r\n\t/**\r\n\t * Returns the paid amount for a special POS transaction.\r\n\t * \r\n\t * @param service provider code\r\n\t * @param POS CapID.\r\n\t * @param Pos trasaction sequence.\r\n\t * @return the paid amount; Zero is return if no fee is paid.\r\n\t * @throws AAException any runtime exception.\r\n\t */\r\n\tpublic double getTotalPaid(String servProvCode, CapIDModel capID, Long posTransSeq, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Returns all fee item of a POS Transaction\r\n\t *\r\n\t *@param service provider code\r\n\t * @param capID the POS cap ID. \r\n\t * @param POS transaction sequence\r\n\t * @return a collection of F4FeeItemModel; an empty collection is returned if there is no fee item.\r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic Collection getFeeItemList(String servProvCode, CapIDModel capID, Long posTransSeq, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Create a fee item for POS transaction and update transaction information. \r\n\t * \r\n\t * @param service provider code\r\n\t * @param Pos transaction sequence number\r\n\t * @param Pos Cap ID\r\n\t * @param f4FeeItemModel the model to represent a fee item.\r\n\t * @param callerID the caller ID.\r\n\t * @return the fee item sequence number.\r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic long createFeeItem(String servProvCode, Long posTransSeq, CapIDModel capID, F4FeeItemModel f4FeeItemModel, String callerID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Update a fee item for POS transaction and update transaction information. \r\n\t * \r\n\t * @param service provider code\r\n\t * @param Pos transaction sequence number\r\n\t * @param Pos Cap ID\r\n\t * @param Fee Item Model\r\n\t * @param callerID the caller ID.\r\n\t * @return\r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic void updateFeeItem(String servProvCode, Long posTransSeq, CapIDModel capID, F4FeeItemModel f4FeeItemModel, String callerID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Void a fee item for POS transaction and update transaction information. \r\n\t * \r\n\t * @param service provider code\r\n\t * @param Pos transaction sequence number\r\n\t * @param Pos Cap ID\r\n\t * @param fee item sequence number\r\n\t * @param flag\r\n\t * @param callerID the caller ID.\r\n\t * @param comment the fee void comment\r\n\t * @param reason the fee void reason\r\n\t * \r\n\t * @return\r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic Hashtable voidFeeItem(String servProvCode, Long posTransSeq, CapIDModel capID, long feeSeqNbr,String flag, String comments, String reason, String callerID, String sessionID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get invoice list of a special POS transaction \r\n\t * \r\n\t * @param service provider code\r\n\t * @param Pos transaction sequence number\r\n\t * @param Pos Cap ID\r\n\t * @param callerID the caller ID.\r\n\t * @return invoice list\r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic Collection getInvoiceList(String servProvCode, Long posTransSeq, CapIDModel capID,String callerID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Create invoice for a special POS transaction\r\n\t * \r\n\t * @param service provider code\r\n\t * @param POS capID\r\n\t * @param feeSeqList\r\n\t * @param paymentPeriodList\r\n\t * @param callerID\r\n\t * @return \r\n\t * @throws \r\n\t */\r\n\tpublic Hashtable createInvoice(String servProvCode, Long posTransSeq, CapIDModel capID, String feeSeqList, String paymentPeriodList, String callerID)throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Create invoice for a special POS transaction\r\n\t * \r\n\t * @param service provider code\r\n\t * @param posTransSeq\r\n\t * @param callerID\r\n\t * @return Hashtable\r\n\t * @throws \r\n\t */\t\r\n\tpublic Hashtable createInvoice4PlanReview(String servProvCode, Long posTransSeq, String callerID)throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Get payment list of a special POS transaction \r\n\t * \r\n\t * @param service provider code\r\n\t * @param Pos transaction sequence number\r\n\t * @param Pos Cap ID\r\n\t * @param callerID the caller ID.\r\n\t * @return payment list\r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic Collection getPaymentList(String servProvCode, Long posTransSeq, CapIDModel capID, QueryFormat qf, String callerID)throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Create payment for a special POS transaction\r\n\t * \r\n\t * @param service provider code\r\n\t * @param POS capID\r\n\t * @param feeSeqList\r\n\t * @param paymentPeriodList\r\n\t * @param callerID\r\n\t * @return payment number\r\n\t * @throws AAException\r\n\t */\r\n\tpublic long createPayment(String servProvCode, long posTransSeq, PaymentModel payment, String callerID)throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Returns the refunded fee amount based on the payments and receipts.\r\n\t * \r\n\t * @param service provider code\r\n\t * @param PaymentModel the model of payment.\r\n\t * @param receiptComment the receipt comment.\r\n\t * @param receiptDate the receipt date.\r\n\t * @param receiptBatchDate the receipt batch date.\r\n\t * @param receiptStatus the receipt staus.\r\n\t * @return Receipt Number \r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic long makeRefund(String servProvCode, Long posTransSeq, PaymentModel payment,String receiptComment,Date receiptDate,Date receiptBatchDate,String receiptStatus, String callerID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Returns the list of all cashier ID.\r\n\t * \r\n\t * @param service provider code\r\n\t * @param callerID\r\n\t * @return cashier ID list \r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic Collection getCashierList(String servProvCode, String callerID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Returns the list of all recorder ID.\r\n\t * \r\n\t * @param service provider code\r\n\t * @param callerID\r\n\t * @return recorder ID list \r\n\t * @throws AAException if there is any exception.\r\n\t */\r\n\tpublic Collection getRecorderList(String servProvCode, String callerID) throws AAException, RemoteException;\r\n\t/**\r\n\t * return the amount that not allocated\r\n\t * @param capID\r\n\t * @param posTransSeq\r\n\t * @param callerID\r\n\t * @return\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic double getSumNotAllocated(CapIDModel capID,Long posTransSeq, String callerID)throws AAException, RemoteException;\r\n\t/**\r\n\t * update the status of the transaction\r\n\t * @param servProvCode\r\n\t * @param posTransSeq\r\n\t * @param status\r\n\t * @param callerID\r\n\t * @throws AAException\r\n\t */\r\n\tpublic void updateTransStatus(String servProvCode, Long posTransSeq, String status, String callerID)throws AAException, RemoteException;\r\n\t/**\r\n\t * At first time, it will create fee item for pos transaction.\r\n\t * \r\n\t * For Self-plan checking, please refer to the following process.\r\n\t * 1. Get self-plan checking Cap ID to be defined in SmartChoice.\r\n\t * 2. Get fee schedule.\r\n\t * 3. Create pos transaction.\r\n\t * 4. Create fee items.\r\n\t * 5. Generate invoice automatically.\r\n\t * \r\n\t * @param spCode\r\n\t * @param callId\r\n\t * @return\r\n\t */\r\n\tpublic List createFeeItemsForPosTransaction(String spCode, String callId) \r\n\t\tthrows AAException,RemoteException;\r\n\t\r\n\t/**\r\n\t * At first time, it will create fee item for pos transaction.\r\n\t * \r\n\t * For Self-plan checking, please refer to the following process.\r\n\t * 1. Get self-plan checking Cap ID from BizDomain.\r\n\t * 2. Create fee items.\r\n\t * 3. Generate invoice automatically.\r\n\t * \r\n\t * @param refFeeItems\r\n\t * @param callId\r\n\t * @return\r\n\t */\r\n\tpublic List createFeeItemsForPosTransaction(Collection refFeeItems,Long posTransId) \r\n\t\tthrows AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Get CAPID for plan review based on standard choice.\r\n\t * @param spCode\r\n\t * @return\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic CapIDModel getCapId4PlanReview(String spCode) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Return total fee for POS transaction.\r\n\t * \r\n\t * For self-plan checking, \r\n\t * the user cannot input anything for fee, so it only return fee total.\r\n\t * \r\n\t * @param spCode\r\n\t * @param posTransSeq\r\n\t * @param callId\r\n\t * @return\r\n\t */\r\n\tpublic double getFeeTotalByPosTransaction(String spCode, Long posTransSeq, String callId) \r\n\t\tthrows AAException,RemoteException;\r\n\t/**\r\n\t * It is a session facade for self plan payment.\r\n\t * \r\n\t * 1. Create fee items.\r\n\t * 2. Generate invoice automatically.\r\n\t * 3. Return total fee and pos transaction sequence.\r\n\t * \t\tString[] return = new String[] {pos transaction ID, total fee}\r\n\t * @param spCode\r\n\t * @param planSeqNum\r\n\t * @param callerID\r\n\t * @return\r\n\t */\r\n\tpublic String[] getSelfPlanFeeTotal(String spCode, Long planSeqNum, String callerID)\r\n\t\tthrows AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * Get all f4feeitem of a special POS transaction \r\n\t * @param spCode\r\n\t * @param tranSeqNum\r\n\t * @param couponCode\r\n\t * @param callerID\r\n\t * @return f4feeitem List\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic List getFeeEstimate4PlanReview(String spCode, Long tranSeqNum,\r\n\t\t\tString feeShedule, String callerID) throws AAException, RemoteException;\r\n\t\r\n\t/**\r\n\t * get transaction level, return cap level or agency level.\r\n\t * @param servProvCode TODO\r\n\t * @return\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic String getTransLevel(String servProvCode) throws AAException, RemoteException;\r\n\t\r\n}", "title": "" }, { "docid": "92f6b35800919842adff90a2da4dbe60", "score": "0.4886295", "text": "@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED, style = SOAPBinding.Style.DOCUMENT)\n@PortableWebService(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/\",\n name=\"CarsBCUtilityServicesAMService\", wsdlLocation=\"gov/ca/dir/acct/cars/adf/service/appmodule/common/serviceinterface/CarsBCUtilityServicesAMService.wsdl\")\n@SDODatabinding(schemaLocation=\"gov/ca/dir/acct/cars/adf/service/appmodule/common/serviceinterface/CarsBCUtilityServicesAMService.xsd\")\npublic interface CarsBCUtilityServicesAMService {\n\n\n public static final String NAME = \"{/gov/ca/dir/acct/cars/adf/service/appmodule/common/}CarsBCUtilityServicesAMService\";\n\n /**\n * Exported method getEventIDSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getEventIDSequence\",\n operationName=\"getEventIDSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getEventIDSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getEventIDSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getEventIDSequence() throws ServiceException;\n\n /**\n * Exported method getARStatusIDSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getARStatusIDSequence\",\n operationName=\"getARStatusIDSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getARStatusIDSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getARStatusIDSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getARStatusIDSequence() throws ServiceException;\n\n /**\n * Exported method getPartyIDSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getPartyIDSequence\",\n operationName=\"getPartyIDSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getPartyIDSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getPartyIDSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getPartyIDSequence() throws ServiceException;\n\n /**\n * Exported method getParticipantRoleIdSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getParticipantRoleIdSequence\",\n operationName=\"getParticipantRoleIdSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getParticipantRoleIdSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getParticipantRoleIdSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getParticipantRoleIdSequence() throws ServiceException;\n\n /**\n * Exported method getContactMethodIdSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getContactMethodIdSequence\",\n operationName=\"getContactMethodIdSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getContactMethodIdSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getContactMethodIdSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getContactMethodIdSequence() throws ServiceException;\n\n /**\n * Exported method getAddressIdSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getAddressIdSequence\",\n operationName=\"getAddressIdSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getAddressIdSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getAddressIdSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getAddressIdSequence() throws ServiceException;\n\n /**\n * Exported method getAcctgTransactionIdSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getAcctgTransactionIdSequence\",\n operationName=\"getAcctgTransactionIdSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getAcctgTransactionIdSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getAcctgTransactionIdSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getAcctgTransactionIdSequence() throws ServiceException;\n\n /**\n * Exported method getAcctgEntryIdSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getAcctgEntryIdSequence\",\n operationName=\"getAcctgEntryIdSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getAcctgEntryIdSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getAcctgEntryIdSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getAcctgEntryIdSequence() throws ServiceException;\n\n /**\n * Exported method getNoteIdSequence from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getNoteIdSequence\",\n operationName=\"getNoteIdSequence\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getNoteIdSequence\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getNoteIdSequenceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getNoteIdSequence() throws ServiceException;\n\n /**\n * Exported method isEventReversed from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/isEventReversed\",\n operationName=\"isEventReversed\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isEventReversed\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isEventReversedResponse\")\n @WebResult(name=\"result\")\n BigDecimal isEventReversed(@WebParam(mode = WebParam.Mode.IN, name=\"currentDocumentNumber\")\n String currentDocumentNumber) throws ServiceException;\n\n /**\n * Exported method isChildrenExist from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/isChildrenExist\",\n operationName=\"isChildrenExist\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isChildrenExist\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isChildrenExistResponse\")\n @WebResult(name=\"result\")\n BigDecimal isChildrenExist(@WebParam(mode = WebParam.Mode.IN, name=\"currentDocumentNumber\")\n String currentDocumentNumber) throws ServiceException;\n\n\n /**\n * Exported method is2YearsPrior from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/is2YearsPrior\",\n operationName=\"is2YearsPrior\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"is2YearsPrior\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"is2YearsPriorResponse\")\n @WebResult(name=\"result\")\n BigDecimal is2YearsPrior(@WebParam(mode = WebParam.Mode.IN, name=\"ReferenceDocument\")\n String ReferenceDocument) throws ServiceException;\n\n /**\n * Exported method getCurrentBalance from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/getCurrentBalance\",\n operationName=\"getCurrentBalance\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getCurrentBalance\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"getCurrentBalanceResponse\")\n @WebResult(name=\"result\")\n BigDecimal getCurrentBalance(@WebParam(mode = WebParam.Mode.IN, name=\"ReferenceDocument\")\n String ReferenceDocument) throws ServiceException;\n\n\n /**\n * Exported method isReclassNeeded from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/isReclassNeeded\",\n operationName=\"isReclassNeeded\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isReclassNeeded\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isReclassNeededResponse\")\n @WebResult(name=\"result\")\n BigDecimal isReclassNeeded(@WebParam(mode = WebParam.Mode.IN, name=\"ReferenceDocument\")\n String ReferenceDocument) throws ServiceException;\n\n /**\n * Exported method findAROtherReferenceDocumentWithParams from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/findAROtherReferenceDocumentWithParams\",\n operationName=\"findAROtherReferenceDocumentWithParams\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"findAROtherReferenceDocumentWithParams\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"findAROtherReferenceDocumentWithParamsResponse\")\n @WebResult(name=\"result\")\n String findAROtherReferenceDocumentWithParams(@WebParam(mode = WebParam.Mode.IN,\n name=\"rootDocument\")\n String rootDocument) throws ServiceException;\n\n /**\n * Exported method findAROthersContingentRefDoc from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/findAROthersContingentRefDoc\",\n operationName=\"findAROthersContingentRefDoc\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"findAROthersContingentRefDoc\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"findAROthersContingentRefDocResponse\")\n @WebResult(name=\"result\")\n String findAROthersContingentRefDoc(@WebParam(mode = WebParam.Mode.IN,\n name=\"referenceDocument\")\n String referenceDocument) throws ServiceException;\n\n /**\n * Exported method isAROthersRefDocExisted from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/isAROthersRefDocExisted\",\n operationName=\"isAROthersRefDocExisted\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isAROthersRefDocExisted\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isAROthersRefDocExistedResponse\")\n @WebResult(name=\"result\")\n BigDecimal isAROthersRefDocExisted(@WebParam(mode = WebParam.Mode.IN,\n name=\"ReferenceDocument\")\n String ReferenceDocument) throws ServiceException;\n\n /**\n * Exported method isDecisionAfterReclassExisted from CarsBCUtilityServicesAM.\n */\n @WebMethod(action=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/isDecisionAfterReclassExisted\",\n operationName=\"isDecisionAfterReclassExisted\")\n @RequestWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isDecisionAfterReclassExisted\")\n @ResponseWrapper(targetNamespace=\"/gov/ca/dir/acct/cars/adf/service/appmodule/common/types/\",\n localName=\"isDecisionAfterReclassExistedResponse\")\n @WebResult(name=\"result\")\n BigDecimal isDecisionAfterReclassExisted(@WebParam(mode = WebParam.Mode.IN,\n name=\"ReferenceDocument\")\n String ReferenceDocument, @WebParam(mode = WebParam.Mode.IN, name=\"eventDateStr\")\n String eventDateStr, @WebParam(mode = WebParam.Mode.IN, name=\"eventTypeCode\")\n String eventTypeCode) throws ServiceException;\n}", "title": "" }, { "docid": "7ee800bb5a9dcf373a764db0d41c74b4", "score": "0.48842648", "text": "public interface IOrder {\r\n\r\n /**\r\n * Indicates state of the order\r\n */\r\n enum State {\r\n /**\r\n * Set right after order submission and before order acceptance by the server\r\n */\r\n CREATED,\r\n \r\n /**\r\n * Set after order submission for conditional orders. Simple BUY or SELL orders can have this state before filling or can get FILLED\r\n * state right after CREATED state\r\n */\r\n OPENED,\r\n \r\n /**\r\n * Set after order was fully or partially filled. Partially filled orders have different values returned from getRequestedAmount\r\n * and getAmount methods\r\n */\r\n FILLED,\r\n \r\n /**\r\n * Set after order was closed\r\n */\r\n CLOSED,\r\n \r\n /**\r\n * Set after order was canceled\r\n */\r\n CANCELED\r\n }\r\n\r\n /**\r\n * Returns instrument of the order\r\n * \r\n * @return instrument\r\n */\r\n Instrument getInstrument();\r\n\r\n /**\r\n * Returns label\r\n * \r\n * @return label\r\n */\r\n String getLabel();\r\n \r\n /**\r\n * Returns position or entry ID\r\n * \r\n * @return id\r\n */\r\n String getId();\r\n\r\n /**\r\n * Returns creation time. This is the time when server accepted the order, not the time when it was submitted\r\n * For global accounts it is always 0.\r\n * \r\n * @return creation time\r\n */\r\n long getCreationTime();\r\n \r\n /**\r\n * Returns time when server closed the order\r\n * \r\n * @return time when order was closed\r\n */\r\n long getCloseTime();\r\n \r\n /**\r\n * Returns {@link IEngine.OrderCommand} of this message. \r\n * After the order fill returns {@link IEngine.OrderCommand#BUY} if the order is LONG,\r\n * {@link IEngine.OrderCommand#SELL} otherwise.\r\n * \r\n * @return order command of this message\r\n */\r\n IEngine.OrderCommand getOrderCommand();\r\n \r\n /**\r\n * Returns true if order is LONG. Equals to <code>getOrderCommand().isLong()</code>\r\n * \r\n * @return true if order is LONG\r\n */\r\n boolean isLong();\r\n\r\n /**\r\n * Returns time of the fill\r\n * \r\n * @return time of the order fill\r\n */\r\n long getFillTime();\r\n \r\n /**\r\n * Returns original constant amount of the order. The value is set on order submit and cannot be changed later.\r\n * @see IEngine#submitOrder(String, Instrument, com.dukascopy.api.IEngine.OrderCommand, double)\r\n * \r\n * @return original amount of the order\r\n */\r\n double getOriginalAmount();\r\n\r\n /**\r\n * Returns amount of the order. For orders in {@link State#OPENED} state returns amount requested. For orders in {@link State#FILLED}\r\n * state will return filled amount. Filled amount can be different from requested amount (partial fill).\r\n * \r\n * @return amount of the order\r\n */\r\n double getAmount();\r\n \r\n /**\r\n * Returns requested amount\r\n * \r\n * @return amount requested\r\n */\r\n double getRequestedAmount();\r\n\r\n /**\r\n * Returns entry level price for conditional orders in {@link State#CREATED} and {@link State#OPENED} state or price at which order was\r\n * filled for orders in {@link State#FILLED} or {@link State#CLOSED} states\r\n * \r\n * @return entry level for conditional orders or open price for positions\r\n */\r\n double getOpenPrice();\r\n\r\n /**\r\n * Returns price at which order was closed or 0 if order or order part wasn't closed. This is the price of latest close operation in case\r\n * of partial close\r\n * \r\n * @return close price for closed orders, return 0 for any other type of order\r\n */\r\n double getClosePrice();\r\n\r\n /**\r\n * Returns price of stop loss condition or 0 if stop loss condition is not set. Orders submitted with stop loss condition, will have this\r\n * price set only after server accepts order\r\n * \r\n * @return stop loss price or 0\r\n */\r\n double getStopLossPrice();\r\n\r\n /**\r\n * Returns price of take profit condition or 0 if take profit condition is not set. Orders submitted with take profit condition,\r\n * will have this price set only after server accepts order\r\n * \r\n * @return take profit price or 0\r\n */\r\n double getTakeProfitPrice();\r\n\r\n /**\r\n * Sets stop loss price. If price is 0 or negative, then stop loss condition will be removed. Default stop loss side is BID for long orders and ASK\r\n * for short. This method will send command to the server, {@link #getStopLossPrice()} method will still return old value until server\r\n * will accept this changes.\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED} and {@link State#FILLED}. By default, may not be called on the same order more often than once per second \r\n * (exact value of max order update per second is sent by server).\r\n * Not applicable for Global accounts.\r\n * \r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.FILLED\r\n * || (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional())\r\n * ) {\r\n * order.setStopLossPrice(order.getOpenPrice() - instrument.getPipValue() * 20);\r\n * }\r\n * }</pre>\r\n * \r\n * @param price price to set\r\n * @throws JFException when method fails for some reason\r\n */\r\n void setStopLossPrice(double price) throws JFException;\r\n\r\n /**\r\n * Sets stop loss price. If price is 0 or negative, then stop loss condition will be removed. This method will send command to the server,\r\n * {@link #getStopLossPrice()} method will still return old value until server will accept this changes\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED} and {@link State#FILLED}. By default, may not be called on the same order more often than once per second \r\n * (exact value of max order update per second is sent by server).\r\n * Not applicable for Global accounts.\r\n * \r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.FILLED\r\n * || (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional())\r\n * ) {\r\n * order.setStopLossPrice(order.getOpenPrice() - instrument.getPipValue() * 20, OfferSide.BID);\r\n * }\r\n * }</pre>\r\n * \r\n * @param price price to set\r\n * @param side side that will be used to check stop loss condition\r\n * @throws JFException when method fails for some reason\r\n */\r\n void setStopLossPrice(double price, OfferSide side) throws JFException;\r\n \r\n /**\r\n * Sets stop loss price. If price is 0 or negative, then stop loss condition will be removed. If trailingStep is bigger than 10, then trailing step\r\n * logic will be applied for stop loss price. This method will send command to the server, {@link #getStopLossPrice()} method will still\r\n * return old value until server will accept this changes\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED} and {@link State#FILLED}. By default, may not be called on the same order more often than once per second \r\n * (exact value of max order update per second is sent by server).\r\n * Not applicable for Global accounts.\r\n * \r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.FILLED\r\n * || (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional())\r\n * ) {\r\n * order.setStopLossPrice(order.getOpenPrice() - instrument.getPipValue() * 20, OfferSide.BID, 10);\r\n * }\r\n * }</pre>\r\n * \r\n * @param price price to set\r\n * @param side side that will be used to check stop loss condition\r\n * @param trailingStep if == 0 then adds stop loss order without trailing step. Should be 0 or &ge; 10\r\n * @throws JFException trailingStep is &gt; 0 and &lt; 10 or when method fails for some reason\r\n */\r\n void setStopLossPrice(double price, OfferSide side, double trailingStep) throws JFException;\r\n\r\n /**\r\n * Sets label for entry orders.\r\n * \r\n * <p>By default, may not be called on the same order more often than once per second \r\n * (exact value of max order update per second is sent by server).\r\n * \r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional()) {\r\n * order.setLabel(\"new_\"+order.getLabel());\r\n * }\r\n * }</pre>\r\n * \r\n * @param label new label\r\n * @throws JFException if order is not in {@link State#OPENED} state or new label is null or empty\r\n */\r\n void setLabel(String label) throws JFException;\r\n\r\n /**\r\n * Returns side that is used to check stop loss condition\r\n * \r\n * @return stop loss side\r\n */\r\n OfferSide getStopLossSide();\r\n\r\n /**\r\n * Returns current trailing step or 0 if no trailing step is set\r\n * \r\n * @return trailing step value\r\n */\r\n double getTrailingStep();\r\n \r\n /**\r\n * Sets take profit price. If price is 0 or negative, then take profit condition will be removed. This method will send command to the server,\r\n * {@link #getTakeProfitPrice()} method will still return old value until server will accept this changes\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED} and {@link State#FILLED}. By default, may not be called on the same order more often than once per second \r\n * (exact value of max order update per second is sent by server).\r\n * Not applicable for Global accounts.\r\n * \r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.FILLED\r\n * || (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional())\r\n * ) {\r\n * order.setTakeProfitPrice(order.getOpenPrice() + instrument.getPipValue() * 20);\r\n * }\r\n * }</pre>\r\n * \r\n * @param price price to set\r\n * @throws JFException when method fails for some reason\r\n */\r\n void setTakeProfitPrice(double price) throws JFException;\r\n \r\n /**\r\n * Returns comment that was set when order was submitted\r\n * \r\n * @return comment\r\n */\r\n String getComment();\r\n\r\n /**\r\n * Sets comment for pending orders.\r\n *\r\n * <p>By default, may not be called on the same order more often than once per second\r\n * (exact value of max order update per second is sent by server).\r\n *\r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.OPENED && order.getOrderCommand() != BUY && order.getOrderCommand() != SELL) {\r\n * order.setComment(\"new_\"+order.getComment());\r\n * }\r\n * }</pre>\r\n *\r\n * @param comment comment text\r\n * @throws JFException if order is not in {@link State#OPENED} state\r\n */\r\n void setComment(String comment) throws JFException;\r\n\r\n /**\r\n * Sets amount of order in {@link State#OPENED} state or cancels pending part of partially\r\n * filled order when amount equals to zero is set.\r\n * \r\n * <p>By default, may not be called on the same order more often than once per second \r\n * (exact value of max order update per second is sent by server).\r\n * \r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional()) {\r\n * order.setRequestedAmount(0); //cancel conditional order\r\n * }\r\n * \r\n * if (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional()) {\r\n * order.setRequestedAmount(order.getAmount() * 2); //double the order amount\r\n * }\r\n * }</pre>\r\n * \r\n * @param amount new amount\r\n * @throws JFException when:\r\n * <ul>\r\n\t * <li>Order is neither {@link State#OPENED} nor {@link State#FILLED}</li>\r\n\t * <li>Order is {@link State#OPENED} and amount is less than the minimum allowed and not 0</li>\r\n\t * <li>Order is fully filled, i.e., in {@link State#FILLED} and with {@link IOrder#getRequestedAmount()}=={@link IOrder#getAmount()}</li>\r\n\t * <li>Order is partially filled, i.e., in {@link State#FILLED} and the amount is not 0</li>\r\n\t * </ul>\r\n */\r\n void setRequestedAmount(double amount) throws JFException;\r\n\r\n /**\r\n * Sets open price for order in {@link State#OPENED} state or pending part of partially filled order\r\n * \r\n * <p>By default, may not be called on the same order more often than once per second \r\n * (exact value of max order update per second is sent by server).\r\n * \r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional()) {\r\n * //raise open price by two pips\r\n * order.setOpenPrice(order.getOpenPrice() + order.getInstrument().getPipValue() * 2);\r\n * }\r\n * \r\n * if (order.getState() == IOrder.State.FILLED && order.getOrderCommand().isConditional()\r\n * && order.getAmount() < order.getRequestedAmount()\r\n * ) {\r\n * //change open price for the UNFILLED part\r\n * order.setOpenPrice(order.getOpenPrice() + order.getInstrument().getPipValue() * 2);\r\n * }\r\n * }</pre>\r\n * \r\n * @param price price of the opening condition\r\n * @throws JFException when price change fails\r\n */\r\n void setOpenPrice(double price) throws JFException;\r\n\r\n /**\r\n * Sets open price for order in {@link State#OPENED} state or pending part of partially filled order\r\n *\r\n * <p>By default, may not be called on the same order more often than once per second\r\n * (exact value of max order update per second is sent by server).\r\n *\r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional()) {\r\n * //raise open price by two pips\r\n * order.setOpenPrice(order.getOpenPrice() + order.getInstrument().getPipValue() * 2, 1);\r\n * }\r\n *\r\n * if (order.getState() == IOrder.State.FILLED && order.getOrderCommand().isConditional()\r\n * && order.getAmount() < order.getRequestedAmount()\r\n * ) {\r\n * //change open price for the UNFILLED part\r\n * order.setOpenPrice(order.getOpenPrice() + order.getInstrument().getPipValue() * 2, 1);\r\n * }\r\n * }</pre>\r\n *\r\n * @param price price of the opening condition\r\n * @param slippage required price slippage. The value of slippage means following:\r\n * <ul>\r\n * <li>if negative then default value of 5 pips is used\r\n * <li>if <code>Double.isNaN(slippage) == true</code> then no slippage is used\r\n * <li>otherwise, slippage is set in pips, you should pass 1, not 0.0001\r\n * </ul>\r\n * @throws JFException when price change fails\r\n */\r\n void setOpenPrice(double price, double slippage) throws JFException;\r\n\r\n /**\r\n * Sends a request to close the position with specified amount, price and slippage. \r\n * If order has both pending and filled parts and amount is greater than 0, only filled part will be closed.\r\n * If amount is 0 then both filled and pending parts will be closed/canceled.\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED} and {@link State#FILLED}. Full position close is not allowed for Global accounts. \r\n * \r\n * <pre>\r\n * if (order.getState() == IOrder.State.FILLED) {\r\n * // conditional partial close by price, with default slippage of 1 pip\r\n * double lastBid = history.getLastTick(instrument).getBid();\r\n * order.close(0.003, lastBid - 1 * instrument.getPipValue(), 1);\r\n * }\r\n * </pre>\r\n * \r\n * @param amount closing amount. Can be less than opened amount, in this case partial close will take place. If 0 is provided then all\r\n * amount will be closed\r\n * @param price required close price. Close will be rejected if no liquidity at this price. This parameter doesn't affect \r\n * entry (conditional) orders.\r\n * @param slippage required price slippage. The value of slippage means following:\r\n * <ul>\r\n * <li>if negative then default value of 5 pips is used\r\n * <li>if <code>Double.isNaN(slippage) == true</code> then no slippage is used\r\n * <li>otherwise, slippage is set in pips, you should pass 1, not 0.0001\r\n * </ul>\r\n * @throws JFException when called for order not in {@link State#OPENED} or {@link State#FILLED} state. \r\n * And if order is {@link State#OPENED}, but <code>amount</code> != 0 or <code>price</code> != 0 or <code>slippage</code> &ge; 0\r\n */\r\n void close(double amount, double price, double slippage) throws JFException;\r\n\r\n /**\r\n * Sends a request to close the position with specified amount, price and default slippage.\r\n * If order has both pending and filled parts and amount is greater than 0, only filled part will be closed.\r\n * If amount is 0 then both filled and pending parts will be closed/canceled.\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED} and {@link State#FILLED}. Full position close is not allowed for Global accounts. \r\n * \r\n * <b>Note:</b> default value of 5 pips slippage is used. To specify custom slippage, or disable slippage at all, please use extended <code>close(...)</code> methods.\r\n * \r\n * <pre>\r\n * if (order.getState() == IOrder.State.FILLED) {\r\n * // conditional partial close by price, with default slippage of 5 pips\r\n * double lastBid = history.getLastTick(instrument).getBid();\r\n * order.close(0.003, lastBid - 1 * instrument.getPipValue());\r\n * }\r\n * </pre>\r\n * \r\n * <b>Note:</b> default value of 5 pips slippage is used. To specify custom slippage, or disable slippage at all, please use extended <code>close(...)</code> methods.\r\n * \r\n * @param amount closing amount. Can be less than opened amount, in this case partial close will take place. If 0 is provided then all\r\n * amount will be closed\r\n * @param price required close price. Close will be rejected if no liquidity at this price. This parameter doesn't affect \r\n * entry (conditional) orders.\r\n * @throws JFException when called for order not in {@link State#OPENED} or {@link State#FILLED} state. \r\n * And if order is {@link State#OPENED}, but <code>amount</code> != 0 or <code>price</code> != 0\r\n */\r\n void close(double amount, double price)throws JFException;\r\n\r\n /**\r\n * Sends a request to close the position with specified amount, by market price and default slippage.\r\n * If order has both pending and filled parts and amount is greater than 0, only filled part will be closed.\r\n * If amount is 0 then both filled and pending parts will be closed/canceled.\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED} and {@link State#FILLED}. Full position close is not allowed for Global accounts. \r\n * \r\n * <pre>\r\n * if (order.getState() == IOrder.State.FILLED) {\r\n * // unconditional partial close\r\n * order.close(order.getAmount() / 2);\r\n * }\r\n * </pre>\r\n * \r\n * @param amount closing amount. Can be less than opened amount, in this case partial close will take place. If 0 is provided then all\r\n * amount will be closed\r\n * @throws JFException when called for order not in {@link State#OPENED} or {@link State#FILLED} state. \r\n * And if order is {@link State#OPENED}, but <code>amount</code> != 0\r\n */\r\n void close(double amount) throws JFException;\r\n\r\n /**\r\n * Sends a request to fully close position by market price or cancel entry order.\r\n * If order has both pending and filled parts, both will be closed/canceled.\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED} and {@link State#FILLED}. Not allowed for Global accounts.\r\n * \r\n * <pre>{@code\r\n * if (order.getState() == IOrder.State.FILLED) {\r\n * // unconditional close\r\n * order.close();\r\n * }\r\n * \r\n * if (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional()) {\r\n * // cancel conditional order\r\n * order.close();\r\n * }\r\n * }</pre>\r\n *\r\n * @throws JFException if order is not in {@link State#OPENED} or {@link State#FILLED} state\r\n */\r\n void close() throws JFException;\r\n\r\n /**\r\n * Returns current {@link State} of the order\r\n * \r\n * @return state\r\n */\r\n State getState();\r\n\r\n /**\r\n * Sets \"good till time\" for BIDs, OFFERs and LIMIT orders.\r\n * \r\n * <p>Applicable to orders of state {@link State#OPENED}. By default, may not be called on the same order more often than once per second \r\n * (exact value of max order update per second is sent by server).\r\n * \r\n * <pre>{@code\r\n * //order \"expires\" 1 minute after its creation\r\n * if (order.getState() == IOrder.State.OPENED && order.getOrderCommand().isConditional()) {\r\n * order.setGoodTillTime(order.getCreationTime() + TimeUnit.MINUTES.toMillis(1));\r\n * }\r\n * }</pre>\r\n * @param goodTillTime time when BID, OFFER or LIMIT orders should be canceled\r\n * @throws JFException when order is simple market order\r\n */\r\n void setGoodTillTime(long goodTillTime) throws JFException;\r\n \r\n /**\r\n * Returns time when order will be cancelled or 0 if order is \"good till cancel\"\r\n * \r\n * @return cancel time or 0\r\n */\r\n long getGoodTillTime();\r\n \r\n /**\r\n * Blocks strategy thread (with exception of {@link IStrategy#onMessage(IMessage)}) until the order changes it's state or any order value gets updated.\r\n * All the ticks, bars and other feed elements that platform receives while waiting get dropped.\r\n * \r\n * <p>The method should be used for imminent order updates (e.g., set stop loss, close order). Consequently it should not be used for non-imminent order updates\r\n * like order close on stop loss, conditional order fill, etc.\r\n * The method <u>must not</u> be called from the {@link IStrategy#onMessage(IMessage)} method.\r\n * \r\n * <p>See usage example at {@link #waitForUpdate(long, TimeUnit, State...)}\r\n *\r\n * @param timeoutMills timeout to wait for order state change\r\n */\r\n void waitForUpdate(long timeoutMills);\r\n\r\n /**\r\n * Blocks strategy thread (with exception of {@link IStrategy#onMessage(IMessage)}) until the order changes it's state or any order value gets updated.\r\n * All the ticks, bars and other feed elements that platform receives while waiting get dropped.\r\n * \r\n * <p>The method should be used for imminent order updates (e.g., set stop loss, close order). Consequently it should not be used for non-imminent order updates\r\n * like order close on stop loss, conditional order fill, etc.\r\n * The method <u>must not</u> be called from the {@link IStrategy#onMessage(IMessage)} method.\r\n * \r\n * <p>See usage example at {@link #waitForUpdate(long, TimeUnit, State...)}\r\n *\r\n * @param timeout how long to wait before giving up, in units of\r\n * <code>unit</code>\r\n * @param unit a <code>TimeUnit</code> determining how to interpret the\r\n * <code>timeout</code> parameter\r\n * @return message generated as the result of order update or null if method exited by timeout\r\n */\r\n IMessage waitForUpdate(long timeout, TimeUnit unit);\r\n\r\n /**\r\n * Blocks strategy thread (with exception of {@link IStrategy#onMessage(IMessage)}) until the order changes it's state value to one of the expected <code>states</code>. \r\n * If <code>states</code> is empty, any order update will cause the thread unblocking.\r\n * All the ticks, bars and other feed elements that platform receives while waiting get dropped.\r\n * \r\n * <p>The method should be used for imminent order updates (e.g., set stop loss, close order). Consequently it should not be used for non-imminent order updates\r\n * like order close on stop loss, conditional order fill, etc.\r\n * The method <u>must not</u> be called from the {@link IStrategy#onMessage(IMessage)} method.\r\n * \r\n * <p>See usage example at {@link #waitForUpdate(long, TimeUnit, State...)}\r\n *\r\n * @param states a set of expected states. If null or empty - blocks until order changes it's state to any value.\r\n * \r\n * @throws JFException when order is in state that cannot be changed to one of expected states\r\n * @return message generated as the result of order update. Can be null if method exited by timeout\r\n */\r\n IMessage waitForUpdate(State ...states) throws JFException;\r\n \r\n /**\r\n * Blocks strategy thread (with exception of {@link IStrategy#onMessage(IMessage)}) until the order changes it's state value to one of the expected <code>states</code>. \r\n * If <code>states</code> is empty, any order update will cause the thread unblocking.\r\n * All the ticks, bars and other feed elements that platform receives while waiting get dropped.\r\n * \r\n * <p>The method should be used for imminent order updates (e.g., set stop loss, close order). Consequently it should not be used for non-imminent order updates\r\n * like order close on stop loss, conditional order fill, etc.\r\n * The method <u>must not</u> be called from the {@link IStrategy#onMessage(IMessage)} method.\r\n * \r\n * <p>See usage example at {@link #waitForUpdate(long, TimeUnit, State...)}\r\n *\r\n * @param timeoutMills timeout to wait for order state change\r\n * @param states a set of expected states. If null or empty - blocks until order changes it's state to any value. \r\n * \r\n * @throws JFException when order is in state that cannot be changed to one of expected states\r\n * @return message generated as the result of order update. Can be null if method exited by timeout\r\n */\r\n IMessage waitForUpdate(long timeoutMills, State ...states) throws JFException;\r\n \r\n /**\r\n * Blocks strategy thread (with exception of {@link IStrategy#onMessage(IMessage)}) until the order changes it's state value to one of the expected <code>states</code>. \r\n * If <code>states</code> is empty, any order update will cause the thread unblocking.\r\n * All the ticks, bars and other feed elements that platform receives while waiting get dropped.\r\n * \r\n * <p>The method should be used for imminent order updates (e.g., set stop loss, close order). Consequently it should not be used for non-imminent order updates\r\n * like order close on stop loss, conditional order fill, etc.\r\n * The method <u>must not</u> be called from the {@link IStrategy#onMessage(IMessage)} method.\r\n * \r\n * <pre>\r\n * public void onStart(IContext context) throws JFException {\r\n * IEngine engine = context.getEngine();\r\n * IConsole console = context.getConsole();\r\n * context.setSubscribedInstruments(java.util.Collections.singleton(Instrument.EURUSD), true);\r\n * \r\n * //submit order and await its fill data\r\n * IOrder o = engine.submitOrder(\"order\", Instrument.EURUSD, OrderCommand.BUY, 0.001);\r\n * o.waitForUpdate(2, TimeUnit.SECONDS, IOrder.State.FILLED); \r\n * console.getOut().format(\"After fill: open price=%.5f, fill time=%s\", o.getOpenPrice(), DateUtils.format(o.getFillTime())).println();\r\n * \r\n * //adjust stop loss to be in 5 pip distance from open price and await the assigned SL price\r\n * o.setStopLossPrice(o.getOpenPrice() - 0.0005);\r\n * //wait max 2 sec for SL price to get updated; note that we don't expect IOrder.State change here \r\n * o.waitForUpdate(2, TimeUnit.SECONDS); \r\n * console.getOut().format(\"After SL update: stop loss=%.5f\", o.getStopLossPrice()).println(); \r\n * }\r\n * </pre>\r\n *\r\n * @param timeout how long to wait before giving up, in units of\r\n * <code>unit</code>\r\n * @param unit a <code>TimeUnit</code> determining how to interpret the\r\n * <code>timeout</code> parameter.\r\n * @param states a set of expected states. If null or empty - blocks until order changes it's state to any value. \r\n * @throws JFException when order is in state that cannot be changed to one of expected states \r\n * @return message generated as the result of order update. Can be null if method exited by timeout\r\n */\r\n IMessage waitForUpdate(long timeout, TimeUnit unit, State ...states) throws JFException;\r\n\r\n /**\r\n * Returns profit/loss in pips. The value is rounded to 0.1 pips.\r\n *\r\n * @return profit/loss in pips\r\n */\r\n double getProfitLossInPips();\r\n\r\n /**\r\n * Returns profit/loss in USD\r\n *\r\n * @return profit/loss in USD\r\n */\r\n double getProfitLossInUSD();\r\n\r\n /**\r\n * Returns profit/loss in account currency\r\n *\r\n * @return profit/loss in account currency\r\n */\r\n double getProfitLossInAccountCurrency();\r\n \r\n /**\r\n * Return position's commission in account currency.\r\n * \r\n * <p>For global accounts (i.e., {@link IAccount#isGlobal()}) returns the accumulated commission\r\n * of the instrument's position that has been accumulated over the current trading session.\r\n * Which means that the value gets reset with every platform reconnect.\r\n * \r\n * @return position's commission in account currency\r\n */\r\n double getCommission();\r\n \r\n /**\r\n * Return position's commission in USD\r\n\t *\r\n * <p>For global accounts (i.e., {@link IAccount#isGlobal()}) returns the accumulated commission\r\n * of the instrument's position that has been accumulated over the current trading session.\r\n * Which means that the value gets reset with every platform reconnect.\r\n * \r\n * @return position's commission in USD\r\n */\r\n double getCommissionInUSD();\r\n \r\n /**\r\n * Returns ordered history of order filling. History is sorted by fill time in ascending order.\r\n * \r\n * @return ascending ordered history of order filling\r\n */\r\n List<IFillOrder> getFillHistory();\r\n \r\n /**\r\n * Returns ordered history of order closing. History is sorted by close time in ascending order.\r\n * \r\n * @return ascending ordered history of order closing\r\n */\r\n List<ICloseOrder> getCloseHistory();\r\n \r\n /**\r\n * Returns whether this order is One Cancels the Other order.\r\n *\r\n * @return true if this order is One Cancels the Other order.\r\n */\r\n boolean isOCO();\r\n\r\n /**\r\n * Adds this order with specified second order to One Cancels the Other group.\r\n *\r\n * @param second second order in OCO group\r\n * @throws JFException if orders can't be added to OCO group\r\n */\r\n void groupToOco(IOrder second) throws JFException;\r\n\r\n /**\r\n * Removes this order from One Cancels the Other group.\r\n *\r\n * @throws JFException if order can't be removed from OCO group\r\n */\r\n void ungroupOco() throws JFException;\r\n\r\n /**\r\n * Compares order to current one\r\n * \r\n * @deprecated use {@link java.lang.Object#equals(Object)}\r\n * \r\n * @param order to compare with current\r\n * @return true if all fields are equal\r\n */\r\n @Deprecated\r\n boolean compare(IOrder order);\r\n\r\n /**\r\n * Returns instrument of the order\r\n * @return financialInstrument\r\n * @deprecated use {@link #getInstrument()}\r\n */\r\n @Deprecated\r\n IFinancialInstrument getFinancialInstrument();\r\n\r\n}", "title": "" }, { "docid": "e74e9279992a3aa8ff12bc1d649ae74b", "score": "0.48817956", "text": "public String getTxnPrmryRefNo();", "title": "" }, { "docid": "aa22d488b4e2f71552e7f9f311846ac8", "score": "0.48767", "text": "amdocs.iam.pd.webservices.quotation.getquoteoutput.Amounts getOC();", "title": "" }, { "docid": "93e736455debddf84bc8d794658103c2", "score": "0.4876676", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n Vector<TagValue> vector0 = new Vector<TagValue>();\n Contract contract0 = new Contract(3694, \"updateMktDepth: -197 -197 projection= 0 0 0.0 2\", \"BAG\", \"/~~G}3\", (-1275), \"I\\\"\", \"${-'Q*A{v7N\", \"auctionImbalance\", \"f20u_%FnT_t.!5{)d\", \"updateMktDepth: -197 -197 projection= 0 0 0.0 2\", vector0, \" trailStopPrice=\", true, \"OptionImpliedVolatility\", \"BAG\");\n Order order0 = new Order();\n OrderState orderState0 = new OrderState();\n contract0.m_comboLegsDescrip = \" trailStopPrice=\";\n String string0 = EWrapperMsgGenerator.openOrder(0, contract0, order0, orderState0);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "1bf38f65c3752c47be1608258da3b539", "score": "0.48752585", "text": "public String getOrderNo()\n/* */ {\n/* 127 */ return this.orderNo;\n/* */ }", "title": "" }, { "docid": "131ed9a64f80cdf0494e783220a4e4d7", "score": "0.48743317", "text": "@Test(timeout = 4000)\n public void test069() throws Throwable {\n String string0 = EWrapperMsgGenerator.orderStatus(2146755143, \"OD`Izqg$-~f#\", 2146755143, 2146755143, 59.8, 2145042848, 2146755143, 2146755143, 2146755143, \"OD`Izqg$-~f#\");\n assertEquals(\"order status: orderId=2146755143 clientId=2146755143 permId=2145042848 status=OD`Izqg$-~f# filled=2146755143 remaining=2146755143 avgFillPrice=59.8 lastFillPrice=2.146755143E9 parent Id=2146755143 whyHeld=OD`Izqg$-~f#\", string0);\n }", "title": "" }, { "docid": "63c7cb5fc33a0a333dc16bbdb2f44c9f", "score": "0.48725352", "text": "public com.service_now.www.ServiceNow_u_cmdb_rel_inboundStub.UpdateResponse update(\r\n\r\n com.service_now.www.ServiceNow_u_cmdb_rel_inboundStub.Update update6)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"http://www.service-now.com/u_cmdb_rel_inbound/update\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n update6,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www.service-now.com\",\r\n \"update\")));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n com.service_now.www.ServiceNow_u_cmdb_rel_inboundStub.UpdateResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (com.service_now.www.ServiceNow_u_cmdb_rel_inboundStub.UpdateResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex=\r\n (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }", "title": "" }, { "docid": "5082dbd978cdffed9faf4a5a45414517", "score": "0.48581105", "text": "public interface DataMappingConstants {\r\n\r\n /** Abbreviations\r\n OC = Object Class\r\n NA = Naming Attribute\r\n CFG = Configuration\r\n DEV = Device\r\n **/\r\n\r\n /**\r\n * Misc. CONSTANTS *\r\n */\r\n public static final String OC = \"objectclass\";\r\n public static final String OC_ALL_FILTER = \"(objectclass=*)\";\r\n\r\n public static final String RESOURCE_TYPE_OC = \"dcdOrgUnit\";\r\n public static final String RESOURCE_TYPE_NA = \"ou\"; //ex. ou=routers,...\r\n\r\n /**\r\n * CONSISTENCY CONSTANTS *\r\n */\r\n public static final String CON_REALM_NA = \"dc\";\r\n public static final String CON_LAST_MOD_TIME = \"cnxidaLastModifyTime\";\r\n public static final String CON_LAST_MOD_TIME_MILLISECONDS = \"cnxidaLockToken\";\r\n public static final String CON_LAST_MOD_BY = \"cnxidaLastModifyBy\";\r\n public static final String CON_CREATED_TIME = \"cnxidaInstallTime\";\r\n public static final String CON_CREATED_BY = \"cnxidaInstallBy\";\r\n\r\n /**\r\n * DEVICE CONSTANTS *\r\n */\r\n public static final String DEV_VTMOS_OC = \"cnxidoVTMOS\";\r\n public static final String DEV_KNOWLEDGE_OC = \"cnxidoXKnowledge\";\r\n public static final String DEV_FACTORY_OC = \"DeviceComInterfaceFactory\";\r\n public static final String DEV_SCRIPT_OC = \"DeviceScript\";\r\n public static final String DEV_NA = \"xen\";\r\n public static final String DEV_MODEL_NA = \"ou\";\r\n public static final String DEV_TYPE_NA = \"ou\";\r\n public static final String DEV_VENDOR_NA = \"ou\";\r\n public static final String DEV_OS_NA = \"ou\";\r\n public static final String DEV_ATTRIBUTE_NA = \"xen\";\r\n public static final String DEV_FACTORY_NA = \"xen\";\r\n public static final String DEV_COMPRESSION_FORMAT = \"cnxidaXCompressionFormat\";\r\n public static final String DEV_COMPRESSED_BLOB = \"cnxidaXCompressedObjectBlob\";\r\n public static final String DEV_BLOB = \"cnxidaxobjectblob\";\r\n public static final String DEV_ELEMENTS_SUPPORTED = \"cnxidaElementsSupported\";\r\n public static final String DEV_REGEX_SUPPORTED = \"cnxidaRegExSupported\";\r\n public static final String DEV_XPREFIX = \"cnxidaXPrefix\";\r\n public static final String DEV_XROOT_ELEMENT = \"cnxidaXRootElement\";\r\n public static final String DEV_X_ELEMENT_OC = \"cnxidoXElement\";\r\n public static final String DEV_X_ELEMENT_TOP = \"top\";\r\n public static final String DEV_X_VALUE = \"cnxidaXValue\";\r\n public static final String DEV_X_ELEMENT_NA = \"xen\";\r\n public static final String DEV_X_ATTRIBUTE_OC = \"cnxidoXAttribute\";\r\n public static final String DEV_X_ATTRIBUTE_TOP = \"top\";\r\n public static final String DEV_ELEMENT_MASK = \"cnxidaElementMask\";\r\n public static final String DEV_SCHEMA_VERSION = \"cnxidaXSchemaVersion\";\r\n\r\n // Command UOW command attribute names\r\n public static final String COMMAND_RESOURCE_TYPE = \"CommandResource\";\r\n public static final String COMMAND_TYPE_PROPERTY_NAME = \"CommandType\";\r\n public static final String COMMAND_IS_PARENT_PROPERTY_NAME = \"IsParent\";\r\n public static final String UOW_COMMAND_RESOURCE_KEY_PROPERTY_NAME = \"ResourceKey\";\r\n public static final String UOW_COMMAND_CONFIGURATION_KEY_PROPERTY_NAME = \"ConfigurationKey\";\r\n public static final String UOW_COMMAND_EXECUTION_HIERARCHY_PROPERTY_NAME = \"ExecutionHierarchy\";\r\n public static final String UOW_COMMAND_NAME = \"command\";\r\n public static final String UOW_COMMAND_ID = \"rdu=command\";\r\n\r\n //TODO: Move these back to the IRM package when the backwards references are resolved.\r\n public static final String NR_OC = \"cnxidoResource\";\r\n public static final String NR_NA = \"reuid\";\r\n public static final String NR_HOST_NAME = \"ren\";\r\n public static final String NR_ACTUAL_INFO = \"cnxidaResourceInformation\";\r\n public static final String NR_ACTUAL_MODEL = \"cnxidaActualModel\";\r\n public static final String NR_LOCK_EXECUTION_KEY = \"cnxidaLockExecutionKey\";\r\n public static final String NR_LOCK_ROOT_EXECUTION_KEY = \"cnxidaLockRootExecutionKey\";\r\n public static final String NR_MODEL = \"cnxidaModel\";\r\n public static final String NR_TYPE = \"cnxidaType\";\r\n public static final String NR_VENDOR = \"cnxidaVendor\";\r\n public static final String NR_ACTUAL_OS_VERSION = \"cnxidaActualOSVersion\";\r\n public static final String NR_ACTIVE_STATE = \"cnxidaREState\";\r\n public static final String NR_CHILD_OC = \"cnxidoResourceManagement\";\r\n public static final String CFG_OC = \"cnxidoResourceGlobalElement\";\r\n public static final String CFG_CURRENT_CFG_DN_AS_OF_LAST_SAVE = \"cnxidaCurrentCfgDN\";\r\n public static final String CFG_DOM_VALUE = \"cnxidaXValue\";\r\n public static final String CFG_OS_VERSION = \"cnxidaGlobalOSVersion\";\r\n public static final String CFG_ACTUAL_OS_VERSION = \"cnxidaActualOSVersion\";\r\n public static final String CFG_EDIT_STATE = \"cnxidaGlobalCfgState\";\r\n public static final String CFG_NA = \"ceuid\";\r\n public static final String CFG_NAME = \"cn\";\r\n public static final String CFG_EDIT_STATE_VERSIONED = \"versioned\";\r\n public static final String CFG_COMMENT = \"cnxidaComment\";\r\n //TODO: Move these back to the ADMIN package when the backwards references are resolved.\r\n public static final String PS_VALUE = \"cnxidaXValue\";\r\n\r\n // **************************************************\r\n // New Attribute FrameworkUserKey.\r\n public static final String IDX_USER_KEY_NAME = \"FrameworkUserKey\";\r\n\r\n /**\r\n * Binary Attribute Names *\r\n */\r\n public static final String BIN_ATTRIBUTE_NAMES = \"cnxidaXCompressedObjectBlob \" +\r\n \"cnxidaBinaryDataCompressedBlob \" +\r\n \"cnxidaBinaryDataBlob \" +\r\n \"cnxidaGlobalCfgVersionCompressedBlob \" +\r\n \"FrameworkUserKey \" +\r\n \"cnxidaAuthenticationCredentials \" +\r\n \"cnxidaAuthenticationPassword \" +\r\n \"LocCredentials \" +\r\n \"ErrorLog \" +\r\n \"LocalRoutingInformation \" +\r\n \"voiceDialByNameNumber \" +\r\n \"changes \" +\r\n \"userPassword;hash-md5 \" +\r\n \"DSAEJavaSerializedData \" +\r\n \"javaSerializedData \" +\r\n \"entrustPolicyCertificate \" +\r\n \"entrustRoamFileEncInfo \" +\r\n \"entrustRoamingCAPAB \" +\r\n \"entrustRoamingEOP \" +\r\n \"entrustRoamingPAB \" +\r\n \"entrustRoamingProfile \" +\r\n \"entrustRoamingPRV \" +\r\n \"entrustRoamingRecipList \" +\r\n \"entrustRoamingSLA\";\r\n\r\n /*\r\n ** PDN = Partial Distinguished Name\r\n ** These are constants the represent all the partial dn's that are used\r\n ** throughout the system to build up full dn's from pieces.\r\n */\r\n public static final String PDN_FRAMEWORK = \"ou=framework\";\r\n public static final String PDN_DOMAIN_OBJECTS = \"ou=domainobjects\";\r\n public static final String PDN_OPER_STATE = \"cn=work queue state\";\r\n public static final String PDN_SYS_OPER_STATE = \"cn=system work queue state\";\r\n public static final String PDN_ICOS_STATE = \"cn=icos state\";\r\n public static final String PDN_ACTION_GROUP = \"ou=actiongroups\";\r\n public static final String PDN_RECYCLE = \"ou=recycle\";\r\n public static final String PDN_PEOPLE = \"ou=people\";\r\n\r\n public static final String PDN_NET_RES_CFG = \"cn=CFG\";\r\n public static final String PDN_NET_RES_UOW = \"cn=UOW\";\r\n public static final String PDN_NET_RES_CNT = \"cn=CONTENT\";\r\n\r\n public static final String PDN_HASH = \"xen=hash\";\r\n public static final String PDN_NC_GENERATION_DATA = \"xen=NativeCommandGenerationData\";\r\n public static final String PDN_DEVICESCRIPT_DATA = \"xen=DeviceScript\";\r\n public static final String PDN_KNOWLEDGE = \"ou=knowledge\";\r\n public static final String PDN_VENDOROBJECTS = \"ou=vendorobjects\";\r\n public static final String PDN_SUPPORTED = \"ou=supported\";\r\n public static final String PDN_VENDOR_MASK = \"ou=vendorMask\";\r\n public static final String PDN_HASHLETS = \"ou=hashlets\";\r\n\r\n public static final String PDN_APP_TCKT_WORKFLOW = \"cn=workflow\";\r\n public static final String PDN_UOW_SUBCLASS_NODE = \"xen=UowProperties\";\r\n\r\n public static final String PDN_CUSTOMER_OBJECTS = \"ou=customerobjects\";\r\n public static final String PDN_POLICIES = \"ou=policies\";\r\n\r\n public static final String PDN_ELEMENT_PERMISSIONS = \"ou=elementpermissions\";\r\n public static final String PDN_ACTIVITIES = \"ou=activities\";\r\n public static final String PDN_ACCESS_DOCUMENT = \"xen=ResourceAccessDocument\";\r\n public static final String PDN_COMMAND_RESTRICTION = \"xen=RestrictedCommands\";\r\n public static final String COMMAND_RESTRICTION_DELIMETER = \":\";\r\n\r\n\r\n // Resource config stuff\r\n public static final String NR_ONLINE = \"ONLINE\";\r\n public static final String NR_DEFAULT_CONFIG = \"DefaultConfiguration\";\r\n public static final String NR_OFFLINE = \"OFFLINE\";\r\n\r\n public static final String NR_ONLINE_FILTER =\r\n \"(\" + NR_ACTIVE_STATE + \"=\" + NR_ONLINE + \")\";\r\n public static final String NR_DEFAULT_CONFIG_FILTER =\r\n \"(\" + NR_ACTIVE_STATE + \"=\" + NR_DEFAULT_CONFIG + \")\";\r\n public static final String NR_OFFLINE_FILTER =\r\n \"(\" + NR_ACTIVE_STATE + \"=\" + NR_OFFLINE + \")\";\r\n\r\n public static final String NR_ONLINE_OR_DEFCONFIG_FILTER =\r\n \"(|\" + NR_ONLINE_FILTER + NR_DEFAULT_CONFIG_FILTER + \")\";\r\n\r\n public static final String NR_CURRENT_CONFIG_FILTER =\r\n \"(&\" + NR_ONLINE_FILTER +\r\n \"(\" + CFG_CURRENT_CFG_DN_AS_OF_LAST_SAVE + \"=*)\" +\r\n \")\";\r\n\r\n}", "title": "" }, { "docid": "e4d264549d2205bed0d4c8456af56381", "score": "0.4856242", "text": "private Map<String, String> translateRefNumberToOLEAccountInfo(String vendorReferenceNumber)throws Exception{\n //HashMap<String, String> fundCodes = new OLEAccountInfoExtractor().buildAccountInfoMap(vendorReferenceNumber);\n HashMap<String, String> fundCodes = getVendorAccountObjectDetails(vendorReferenceNumber);\n return fundCodes;\n }", "title": "" }, { "docid": "c4d703142f8b381acc0cc1844730551f", "score": "0.4855785", "text": "public String getBOMProductType() \n{\nreturn (String)get_Value(\"BOMProductType\");\n}", "title": "" }, { "docid": "1569122d43ea7375dea5e750d15a981d", "score": "0.48419753", "text": "@Override\r\n\tpublic List<TInstanceInfoBO> detailServiceInfo(final int orderId, final int type, final int vOrs) throws SQLException {\r\n\t\tString sql = \"select i.*,o.RESOURCE_INFO, s.EXPIRY_DATE as EXPIRE_DATE, t.`CODE` TEMPLATE_CODE, t.TEMPLATE_DESC,t.NETWORK_DESC,t.EXTEND_ATTR_JSON,\";\r\n\t\tsql += \" o.MEMORY_SIZE ORDER_MEMORY_SIZE ,o.CPU_NUM ORDER_CPU_NUM,o.REASON,t.CPUFREQUENCY,t.RESOURCE_POOLS_ID,o.STORAGE_SIZE ORDER_STORAGE_SIZE, \";\r\n\t\tsql +=\" s.PERIOD,s.UNIT,s.PRICE \";\r\n\t\tsql +=\" FROM T_SCS_INSTANCE_INFO i \";\r\n\t\tsql += \" left join T_SCS_PRODUCT_INSTANCE_REF r on r.INSTANCE_INFO_ID = i.ID \";\r\n\t\tsql += \" left join T_SCS_SERVICE_INSTANCE s on s.ID = r.SERVICE_INSTANCE_ID \";\r\n\t\tif (type == 3) {// 小型机\r\n\t\t\t// T_SCS_TEMPLATE_MC表没有字段: NETWORK_DESC, EXTEND_ATTR_JSON\r\n\t\t\tsql = \"select i.*,t.`CODE` TEMPLATE_CODE, t.TEMPLATE_DESC,\";\r\n\t\t\tsql += \"o.MEMORY_SIZE ORDER_MEMORY_SIZE ,o.CPU_NUM ORDER_CPU_NUM,o.REASON,t.CPUFREQUENCY,t.RESOURCE_POOLS_ID,o.STORAGE_SIZE ORDER_STORAGE_SIZE FROM T_SCS_INSTANCE_INFO i \";\r\n\t\t\tsql += \"join T_SCS_TEMPLATE_MC t on i.TEMPLATE_ID = t.ID \"\r\n\t\t\t\t+ \" join T_SCS_PRODUCT_INSTANCE_REF r on r.INSTANCE_INFO_ID = i.ID \"\r\n\t\t\t\t+ \" join T_SCS_ORDER o on o.SERVICE_INSTANCE_ID = r.SERVICE_INSTANCE_ID \"\r\n\t\t\t\t+ \" join T_SCS_SERVICE_INSTANCE s on s.ID = r.SERVICE_INSTANCE_ID \"\r\n\t\t\t\t+ \" or o.INSTANCE_INFO_ID = i.ID \"\r\n\t\t\t\t+\" where o.ORDER_ID = ? and i.TEMPLATE_TYPE=? \";\r\n\t\t} else {// 虚机或块存储 ,备份,监控和网络\r\n\t\t\tsql += \" join T_SCS_TEMPLATE_VM t on i.TEMPLATE_ID = t.ID \"\r\n\t\t\t\t//to fix bug:5045 5053 4828 5073\r\n//\t\t\t\t+ \" join T_SCS_PRODUCT_INSTANCE_REF r on r.INSTANCE_INFO_ID = i.ID \"\r\n//\t\t\t\t+ \" join T_SCS_SERVICE_INSTANCE s on s.ID = r.SERVICE_INSTANCE_ID \"\r\n\t\t\t\t+ \" join T_SCS_ORDER o on o.SERVICE_INSTANCE_ID = r.SERVICE_INSTANCE_ID \"\r\n\t\t\t\t+ \" or o.INSTANCE_INFO_ID = i.ID \"\r\n\t\t\t\t+ \" where o.ORDER_ID = ? and i.TEMPLATE_TYPE=? \";\r\n\t\t}\r\n\t\t//\t\tSystem.out.println(\"detailServiceInfo sql = \"+sql);\r\n\t\tBeanPropertyRowMapper<TInstanceInfoBO> infoRowMapper = new BeanPropertyRowMapper<TInstanceInfoBO>(TInstanceInfoBO.class);\r\n\t\tList<TInstanceInfoBO> returnList = null;\r\n\t\ttry {\r\n\t\t\treturnList = this.getJdbcTemplate().query(sql, new PreparedStatementSetter() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void setValues(PreparedStatement ps) throws SQLException {\r\n\t\t\t\t\tps.setInt(1, orderId);\r\n\t\t\t\t\tps.setInt(2, type);\r\n\r\n\t\t\t\t}\r\n\t\t\t}, infoRowMapper);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new SQLException(\"查询实例信息失败。失败原因:\" + e.getMessage());\r\n\t\t}\r\n\t\treturn returnList;\r\n\t}", "title": "" }, { "docid": "db8aff691f4b74b9da6c3126e5f609aa", "score": "0.48361194", "text": "@Test(timeout = 4000)\n public void test23() throws Throwable {\n Vector<Object> vector0 = new Vector<Object>();\n Order order0 = new Order();\n OrderState orderState0 = new OrderState(\"O\", \"qlv\", (String) null, (String) null, 216.0, 1.7976931348623157E308, Integer.MAX_VALUE, (String) null, (String) null);\n Contract contract0 = new Contract(0, \"A ]QL\", \"qlv\", \"x=32=mf;LJX1\", 1.7976931348623157E308, \"qlv\", (String) null, (String) null, (String) null, \"updateMktDepth: -197 -197 projection= 0 0 0.0 2\", vector0, (String) null, true, \"qlv\", \"\");\n String string0 = EWrapperMsgGenerator.openOrder(0, contract0, order0, orderState0);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "89373843311bf92bf267d8eeee59cc2b", "score": "0.48352712", "text": "public void testACFT_COMPLETE_DEFAULT_WITHNONMANDATORY_VALIDATION() throws Exception {\n\n // create inventory map\n Map<String, String> lMapInventory = new LinkedHashMap<String, String>();\n\n lMapInventory.put( \"SERIAL_NO_OEM\", \"'ACFT-00001'\" );\n lMapInventory.put( \"PART_NO_OEM\", \"'ACFT_ASSY_PN8'\" );\n lMapInventory.put( \"MANUFACT_CD\", \"'10001'\" );\n lMapInventory.put( \"LOC_CD\", \"'OPS'\" );\n lMapInventory.put( \"AC_REG_CD\", \"'AC-TEST'\" );\n lMapInventory.put( \"INV_OPER_CD\", \"'NORM'\" );\n lMapInventory.put( \"ISSUE_ACCOUNT_CD\", \"'5'\" );\n // lMapInventory.put( \"INV_COND_CD\", \"'INSRV'\" );\n lMapInventory.put( \"MANUFACT_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_INVENTORY, lMapInventory ) );\n\n // insert eng 1\n lMapInventory.clear();\n lMapInventory.put( \"SERIAL_NO_OEM\", \"'ASSY-00001'\" );\n lMapInventory.put( \"PART_NO_OEM\", \"'ENG_ASSY_PN8'\" );\n lMapInventory.put( \"MANUFACT_CD\", \"'ABC11'\" );\n lMapInventory.put( \"LOC_CD\", \"'OPS'\" );\n // lMapInventory.put( \"INV_OPER_CD\", \"'NORM'\" );\n lMapInventory.put( \"ISSUE_ACCOUNT_CD\", \"'5'\" );\n // lMapInventory.put( \"INV_COND_CD\", \"'INSRV'\" );\n lMapInventory.put( \"MANUFACT_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_INVENTORY, lMapInventory ) );\n\n // insert eng 2\n lMapInventory.clear();\n lMapInventory.put( \"SERIAL_NO_OEM\", \"'ASSY-00002'\" );\n lMapInventory.put( \"PART_NO_OEM\", \"'ENG_ASSY_PN8'\" );\n lMapInventory.put( \"MANUFACT_CD\", \"'ABC11'\" );\n lMapInventory.put( \"LOC_CD\", \"'OPS'\" );\n // lMapInventory.put( \"INV_OPER_CD\", \"'NORM'\" );\n lMapInventory.put( \"ISSUE_ACCOUNT_CD\", \"'5'\" );\n // lMapInventory.put( \"INV_COND_CD\", \"'INSRV'\" );\n lMapInventory.put( \"MANUFACT_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_INVENTORY, lMapInventory ) );\n\n // import eng 1 attached\n Map<String, String> lMapInventoryAttach = new LinkedHashMap<String, String>();\n lMapInventoryAttach.put( \"PARENT_SERIAL_NO_OEM\", \"'ACFT-00001'\" );\n lMapInventoryAttach.put( \"PARENT_PART_NO_OEM\", \"'ACFT_ASSY_PN8'\" );\n lMapInventoryAttach.put( \"PARENT_MANUFACT_CD\", \"'10001'\" );\n lMapInventoryAttach.put( \"ATTACH_SERIAL_NO_OEM\", \"'ASSY-00001'\" );\n lMapInventoryAttach.put( \"ATTACH_PART_NO_OEM\", \"'ENG_ASSY_PN8'\" );\n lMapInventoryAttach.put( \"ATTACH_MANUFACT_CD\", \"'ABC11'\" );\n lMapInventoryAttach.put( \"BOM_PART_CD\", \"'ENG-ASSY'\" );\n lMapInventoryAttach.put( \"EQP_POS_CD\", \"'1'\" );\n lMapInventoryAttach.put( \"INSTALL_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_ATTACH, lMapInventoryAttach ) );\n\n // import eng 2 attached\n lMapInventoryAttach.clear();\n lMapInventoryAttach.put( \"PARENT_SERIAL_NO_OEM\", \"'ACFT-00001'\" );\n lMapInventoryAttach.put( \"PARENT_PART_NO_OEM\", \"'ACFT_ASSY_PN8'\" );\n lMapInventoryAttach.put( \"PARENT_MANUFACT_CD\", \"'10001'\" );\n lMapInventoryAttach.put( \"ATTACH_SERIAL_NO_OEM\", \"'ASSY-00002'\" );\n lMapInventoryAttach.put( \"ATTACH_PART_NO_OEM\", \"'ENG_ASSY_PN8'\" );\n lMapInventoryAttach.put( \"ATTACH_MANUFACT_CD\", \"'ABC11'\" );\n lMapInventoryAttach.put( \"BOM_PART_CD\", \"'ENG-ASSY'\" );\n lMapInventoryAttach.put( \"EQP_POS_CD\", \"'2'\" );\n lMapInventoryAttach.put( \"INSTALL_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_ATTACH, lMapInventoryAttach ) );\n\n // create sub inv map\n Map<String, String> lMapInventoryChild = new LinkedHashMap<String, String>();\n lMapInventoryChild.put( \"PARENT_SERIAL_NO_OEM\", \"'ACFT-00001'\" );\n lMapInventoryChild.put( \"PARENT_PART_NO_OEM\", \"'ACFT_ASSY_PN8'\" );\n lMapInventoryChild.put( \"PARENT_MANUFACT_CD\", \"'10001'\" );\n lMapInventoryChild.put( \"BOM_PART_CD\", \"'ACFT-SYS-2-CHILD-TRK-2'\" );\n lMapInventoryChild.put( \"EQP_POS_CD\", \"'1'\" );\n lMapInventoryChild.put( \"SERIAL_NO_OEM\", \"'NONMAND0001'\" );\n lMapInventoryChild.put( \"PART_NO_OEM\", \"'A0000240'\" );\n lMapInventoryChild.put( \"MANUFACT_CD\", \"'11111'\" );\n lMapInventoryChild.put( \"INV_CLASS_CD\", \"'TRK'\" );\n lMapInventoryChild.put( \"MANUFACT_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert(\n TableUtil.getInsertForTableByMap( TableUtil.C_RI_INVENTORY_SUB, lMapInventoryChild ) );\n\n // call inventory validation & import\n runValidateInv( \"FULL\" );\n checkInventoryNoWarnings( \"PASS\" );\n\n }", "title": "" }, { "docid": "4c15ef0f334d4c7a7e8fd5f7392ed684", "score": "0.48272416", "text": "@Test(timeout = 4000)\n public void test20() throws Throwable {\n Vector<Object> vector0 = new Vector<Object>();\n Contract contract0 = new Contract((-2145090141), \"pdateMktDepth: -17 -197 projection= 0 0 0.0 2\", \"BAG\", \"w$adcnY>-U\", (-2145090141), \"+-R>U3Z/Qi$j\", \"\\\"ndexuturePret_ium\", (String) null, (String) null, \"-I|<V Ks\\\"84\", vector0, \"pdateMktDepth: -17 -197 projection= 0 0 0.0 2\", true, \"9,Tr[CxPa,+l$v~&:d_\", \"lwEF\");\n Order order0 = new Order();\n UnderComp underComp0 = new UnderComp();\n contract0.m_underComp = underComp0;\n OrderState orderState0 = new OrderState(\"[GL<ivqo 0Xg&\", \"\\\"ndexuturePret_ium\", \"BAG\", (String) null, 0.0, 0.0, (-2463.2), \"6zXQSLMO\", \"<AG\");\n String string0 = EWrapperMsgGenerator.openOrder((-1046), contract0, order0, orderState0);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "f70a8739347e141253ab6c6cff27abc6", "score": "0.48225608", "text": "public ServiceOrder getServiceOrderForAPI(String serviceOrderID) throws DataServiceException;", "title": "" }, { "docid": "bdeb0414fd6694c966f3d952354d1dc6", "score": "0.48207337", "text": "@Test(timeout = 4000)\n public void test131() throws Throwable {\n ContractDetails contractDetails0 = new ContractDetails();\n String string0 = EWrapperMsgGenerator.bondContractDetails((-2658), contractDetails0);\n assertEquals(\"reqId = -2658 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = null\\nconid = 0\\nminTick = 0.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string0);\n }", "title": "" }, { "docid": "fa119206e6127a7aa5f3de132245d5ca", "score": "0.48205647", "text": "private Info m471C() {\n C0626d.m970c();\n Info info = null;\n try {\n info = AdvertisingIdClient.getAdvertisingIdInfo(this.f666z);\n } catch (IOException e) {\n C0562j.m759c(\"Unabled to access advertising Id: \" + e.getMessage());\n } catch (GooglePlayServicesRepairableException e2) {\n C0562j.m759c(\"Unabled to access advertising Id: \" + e2.getMessage());\n } catch (GooglePlayServicesNotAvailableException e3) {\n C0562j.m759c(\"Unabled to access advertising Id: \" + e3.getMessage());\n } catch (SecurityException e4) {\n C0562j.m759c(\"Not permitted to get advertising Id: \" + e4.getMessage());\n }\n return info;\n }", "title": "" }, { "docid": "2d39129eb10ce5b63d0d653b793c2b3a", "score": "0.48195577", "text": "public String getSerialNumberFlag() throws BusinessException;", "title": "" }, { "docid": "c2fcd2042756c41eb17d111a2c6008e8", "score": "0.48186257", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSnapshotEnd((-396));\n assertEquals(\"id=-396 =============== end ===============\", string0);\n \n Contract contract0 = new Contract();\n contract0.m_includeExpired = true;\n ContractDetails contractDetails0 = new ContractDetails(contract0, (String) null, \"d8^fSsPhi|G}eu\", 0.0, \" faGroup=\", (String) null, (-1), \"`@%%3Uv\", \"\", (String) null, (String) null, \" equityWithLoan=\", \" goodAfterTime=\", \" faGroup=\", \"right = \");\n contractDetails0.m_notes = \"OgvV#D6KSAn1TP\";\n contractDetails0.m_liquidHours = \"G#=&8Q8%)hDx:0\";\n String string1 = EWrapperMsgGenerator.bondContractDetails((-922), contractDetails0);\n assertEquals(\"reqId = -922 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = d8^fSsPhi|G}eu\\nconid = 0\\nminTick = 0.0\\norderTypes = faGroup=\\nvalidExchanges = null\\nnextOptionDate = null\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = OgvV#D6KSAn1TP\\nlongName = `@%%3Uv\\n ---- Bond Contract Details End ----\\n\", string1);\n \n contractDetails0.m_priceMagnifier = (-922);\n contractDetails0.m_nextOptionType = null;\n String string2 = EWrapperMsgGenerator.updateAccountValue((String) null, \"d8^fSsPhi|G}eu\", (String) null, \"\");\n assertEquals(\"updateAccountValue: null d8^fSsPhi|G}eu null \", string2);\n \n String string3 = EWrapperMsgGenerator.nextValidId((-396));\n assertEquals(\"Next Valid Order ID: -396\", string3);\n \n String string4 = EWrapperMsgGenerator.historicalData((-1002), (String) null, 0.0, (-922), 0.0, 1.7976931348623157E308, (-1166), 0, 0.0, false);\n assertEquals(\"id=-1002 date = null open=0.0 high=-922.0 low=0.0 close=1.7976931348623157E308 volume=-1166 count=0 WAP=0.0 hasGaps=false\", string4);\n }", "title": "" }, { "docid": "757e0a320a32d1de2d69bb4958e40cc8", "score": "0.48155951", "text": "boolean isNilPartnerOrderRef();", "title": "" }, { "docid": "589909cfc7d993890f1a0e7c22046980", "score": "0.4813772", "text": "public com.comverse.www.ShortAttributeJAXBElement getServiceInternalIdResets(){\n return localServiceInternalIdResets;\n }", "title": "" }, { "docid": "bc668954278d290dac1b3985324c899d", "score": "0.48102468", "text": "public TSOWorkOrderDetails() {\n }", "title": "" }, { "docid": "d5cf2968c2836691eabdde0cafa33ae4", "score": "0.48017713", "text": "public String getSpecialInformation();", "title": "" }, { "docid": "3727161b64783e484e883a4faf1c1a01", "score": "0.4801496", "text": "public net.is_bg.mon.wsclient.stub.WsStub.GetUniversityStudentDataFromEGNResponse getUniversityStudentDataFromEGN(\r\n\r\n net.is_bg.mon.wsclient.stub.WsStub.GetUniversityStudentDataFromEGN getUniversityStudentDataFromEGN18)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/getUniversityStudentDataFromEGN\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getUniversityStudentDataFromEGN18,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getUniversityStudentDataFromEGN\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getUniversityStudentDataFromEGN\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsStub.GetUniversityStudentDataFromEGNResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsStub.GetUniversityStudentDataFromEGNResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getUniversityStudentDataFromEGN\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getUniversityStudentDataFromEGN\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getUniversityStudentDataFromEGN\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d12bf50f873947b2f2f5de439ecc8aa4", "score": "0.47999316", "text": "@Override\r\n\tpublic Map<String, String> closeorder(MicroOrder order, String ip) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "aba5b7c3eb8ee9948dd9a6a4f65d31f7", "score": "0.4794832", "text": "public interface IPartnerInfo\n{\n /**\n * Name for Activity entity.\n */\n public static final String ENTITY_NAME = \"PartnerInfo\";\n\n /**\n * FieldId for UId. A Number.\n */\n public static final Number UID = new Integer(0); //Long\n\n /**\n * FieldId for Whether-the-Activity-can-be-deleted flag. A Boolean.\n */\n public static final Number CAN_DELETE = new Integer(1); //Boolean\n\n /**\n * FieldId for Version. A double.\n */\n public static final Number VERSION = new Integer(2); //Double\n\n /**\n * FieldId for PartnerID. A String.\n */\n public static final Number PARTNER_ID = new Integer(3); //String\n\n /**\n * FieldId for PartnerName. A String.\n */\n public static final Number PARTNER_NAME = new Integer(4); //String\n\n /**\n * FieldId for PartnerType. A String.\n */\n public static final Number PARTNER_TYPE = new Integer(5); //String\n\n /**\n * FieldId for PartnerGroup. A String.\n */\n public static final Number PARTNER_GROUP = new Integer(6); //String\n\n /**\n * FieldId for NodeID. A Long.\n */\n public static final Number NODE_ID = new Integer(7); //Long\n\n /**\n * FieldId for BizEntityID. A String.\n */\n public static final Number BIZ_ENTITY_ID = new Integer(8); //String\n\n /**\n * FieldId for BizEntityUuid. A String.\n */\n public static final Number BIZ_ENTITY_UUID = new Integer(9); //String\n\n /**\n * FieldId for RegistryQueryUrl. A String.\n */\n public static final Number REGISTRY_QUERY_URL = new Integer(10); //String\n\n}", "title": "" }, { "docid": "bb2c8cbb40d44c886a33aba8d000e8b8", "score": "0.47861657", "text": "@Test\n public void testSubtypeAttributes() throws JAXBException {\n final DataIdentification identification = new DataIdentification() {\n @Override public InternationalString getAbstract() {\n NameFactory factory = FactoryFinder.getNameFactory(null);\n Map<Locale, String> names = new HashMap<Locale, String>();\n names.put(Locale.ENGLISH, \"Description\");\n return factory.createInternationalString(names);\n }\n\n @Override public InternationalString getEnvironmentDescription() {\n NameFactory factory = FactoryFinder.getNameFactory(null);\n Map<Locale, String> names = new HashMap<Locale, String>();\n names.put(Locale.ENGLISH, \"Environment\");\n return factory.createInternationalString(names);\n }\n\n @Override public InternationalString getSupplementalInformation() {return null;}\n @Override public Citation getCitation() {return null;}\n @Override public InternationalString getPurpose() {return null;}\n @Override public Collection<SpatialRepresentationType> getSpatialRepresentationTypes() {return null;}\n @Override public Collection<Resolution> getSpatialResolutions() {return null;}\n @Override public Collection<Locale> getLanguages() {return null;}\n @Override public Collection<CharacterSet> getCharacterSets() {return null;}\n @Override public Collection<TopicCategory> getTopicCategories() {return null;}\n @Override public Collection<Extent> getExtents() {return null;}\n @Override public Collection<String> getCredits() {return null;}\n @Override public Collection<Progress> getStatus() {return null;}\n @Override public Collection<ResponsibleParty> getPointOfContacts() {return null;}\n @Override public Collection<MaintenanceInformation> getResourceMaintenances() {return null;}\n @Override public Collection<BrowseGraphic> getGraphicOverviews() {return null;}\n @Override public Collection<Format> getResourceFormats() {return null;}\n @Override public Collection<Keywords> getDescriptiveKeywords() {return null;}\n @Override public Collection<Usage> getResourceSpecificUsages() {return null;}\n @Override public Collection<Constraints> getResourceConstraints() {return null;}\n @Override public Collection<AggregateInformation> getAggregationInfo() {return null;}\n };\n final DefaultMetadata data = new DefaultMetadata();\n assertTrue(data.getIdentificationInfo().add(identification));\n final String xml = XML.marshal(data);\n /*\n * A few simple checks.\n */\n assertTrue(\"Missing Identification attribute.\", xml.contains(\"Description\"));\n assertTrue(\"Missing DataIdentification attribute.\", xml.contains(\"Environment\"));\n }", "title": "" }, { "docid": "fc0516c554112128e18de044e213a852", "score": "0.47841504", "text": "@Test(timeout = 4000)\n public void test066() throws Throwable {\n String string0 = EWrapperMsgGenerator.orderStatus(0, (String) null, Integer.MAX_VALUE, 0, 2, Integer.MAX_VALUE, 0, 'n', '?', (String) null);\n assertEquals(\"order status: orderId=0 clientId=63 permId=2147483647 status=null filled=2147483647 remaining=0 avgFillPrice=2.0 lastFillPrice=110.0 parent Id=0 whyHeld=null\", string0);\n }", "title": "" }, { "docid": "655e12c472444ded9a1a9b0ee43a2530", "score": "0.47769195", "text": "public interface AcAaAirWaybillServiceIF\n extends AcModelServiceIF\n{\n AcAaAirWaybill getAaAirWaybill(Integer id);\n AcAaAirWaybill getAaAirWaybill(AcAaAirWaybillPkIF pk);\n boolean aaAirWaybillExists(Integer id);\n boolean aaAirWaybillExists(AcAaAirWaybillPkIF pk);\n AcAaAirWaybill getAaAirWaybillByWebKey(String webKey);\n JwList<AcAaAirWaybill> getAll();\n JwList<AcAaAirWaybill> getAllAvailable();\n JwList<AcAaAirWaybill> getAllWhere(String whereClause, Integer rowLimit);\n AcAaAirWaybill getByConsignmentId(Integer consignmentId);\n JwList<AcAaAirWaybill> getAllByNumber(String number);\n Integer insert(AcAaAirWaybill aaAirWaybill);\n void update(AcAaAirWaybill aaAirWaybill);\n void delete(Integer id);\n JwList<AcAaAirWaybill> getAllByIdsIn(JwList<Integer> ids);\n AcAaAirWaybillDetailsVo getAaAirWaybillDetailsVo(Integer awbId);\n JwList<AcAaAirWaybillIntervalVo> getCreatedIntervals(JwTimestamp createdStartUtcTs, JwTimestamp createdEndUtcTs, String originAirportCode, String destinationAirportCode, String postCode, String inRouteAirportCode);\n JwList<AcAaAirWaybillIntervalVo> getDepartureIntervals(JwTimestamp departureStartLocalTs, JwTimestamp departureEndLocalTs, String originAirportCode, String destinationAirportCode, String postCode, String inRouteAirportCode);\n JwList<AcAaAirWaybill> getAllByCreatedWithItemCount(JwTimestamp createdStartUtcTs, JwTimestamp createdEndUtcTs, String originAirportCode, String destinationAirportCode, String postCode, String inRouteAirportCode);\n JwList<AcAaAirWaybill> getAllByDepartureWithItemCount(JwTimestamp departureStartLocalTs, JwTimestamp departureEndLocalTs, String originAirportCode, String destinationAirportCode, String postCode, String inRouteAirportCode);\n JwList<Integer> getItemIdsByCreatedAndLane(JwTimestamp createdStartUtcTs, JwTimestamp createdEndUtcTs, String originAirportCode, String destinationAirportCode, String postCode, String inRouteAirportCode);\n JwList<Integer> getItemIdsByDepartureAndLane(JwTimestamp departureStartLocalTs, JwTimestamp departureEndLocalTs, String originAirportCode, String destinationAirportCode, String postCode, String inRouteAirportCode);\n}", "title": "" }, { "docid": "1f413cc6fc65cc13aed0f8dc274a130e", "score": "0.47706994", "text": "public OrderIdStruct acceptOrder( OrderStruct order )\n\t throws CommunicationException,\n DataValidationException,\n\t\t\t TransactionFailedException,\n\t\t NotAcceptedException,\n\t\t\t AuthorizationException,\n SystemException\n { \n \tOrderIdStruct orderIdStruct = null;\n \tString sessionName = order.sessionNames[0];\n int productKey = order.productKey;\n \t\n \tlong id = TransactionTimingUtil.generateOrderMetricId(order.orderId, sessionName);\n TransactionTimingUtil.sendMethodEvent(TransactionTimingRegistration.FE_NEW_ORDER_COLLECTOR_TYPE, id, 0);\n \n long entityId = 0L;\n boolean exceptionWasThrown = true; /* Prepare for the worst --- clear flag after success */\n try\n {\n \tentityId = TransactionTimingUtil.getEntityID();\n }\n catch (Exception e)\n {\n \tLog.information(this, \"Unable to get EntityID! Exception details: \" + e.getMessage());\n }\n boolean exceptionThrown = true;\n OrderHandlingService service = null;\n \t\tTransactionTimingUtil.generateOrderEvent(TransactionTimingRegistration.getRoutingBCLookupEmitPoint(), entityId, TransactionTimer.Enter );\n try {\n \tservice =(OrderHandlingService) getServiceByProduct(sessionName, productKey );\n \texceptionThrown = false;\n }finally {\n \tTransactionTimingUtil.generateOrderEvent(TransactionTimingRegistration.getRoutingBCLookupEmitPoint(), entityId, \n \t\t\t\texceptionThrown?TransactionTimer.LeaveWithException:TransactionTimer.Leave );\t\n }\n \n \n\n \ttry\n {\n //enter TTE emitpoint for order before server call.\n TransactionTimingUtil.generateOrderEvent(TransactionTimingRegistration.getOrderRoutingProxyEmitPoint(), entityId, TransactionTimer.Enter ); \t\t\n orderIdStruct = service.acceptOrder( order );\n TransactionTimingUtil.sendMethodEvent(TransactionTimingRegistration.FE_NEW_ORDER_COLLECTOR_TYPE, id, 1);\n exceptionWasThrown = false;\n }\n catch(org.omg.CORBA.OBJECT_NOT_EXIST e)\n {\n throw convertToNotAcceptedException(e, \"acceptOrder Failed for order branch:seq#::\" + order.orderId.branch + \":\" + order.orderId.branchSequenceNumber);\n }\n \tfinally\n \t{\n \t\t// exit TTE emitpoint for order after server call.\n \t\tTransactionTimingUtil.generateOrderEvent(TransactionTimingRegistration.getOrderRoutingProxyEmitPoint(), entityId,\n \t\t exceptionWasThrown?TransactionTimer.LeaveWithException:TransactionTimer.Leave );\n \t}\n \n \treturn orderIdStruct;\n }", "title": "" }, { "docid": "d3598565b8170747b69f41ffe1879032", "score": "0.47706896", "text": "public ServiceInformationType getServiceInformationType()\n {\n return data.serviceInformationType;\n }", "title": "" }, { "docid": "e93f063c18951aa0c888d18ee6c84c01", "score": "0.47702342", "text": "@Test(timeout = 4000)\n public void test065() throws Throwable {\n String string0 = EWrapperMsgGenerator.orderStatus('f', (String) null, 0, 0, 0.0, 0, 0, 'f', 0, (String) null);\n assertEquals(\"order status: orderId=102 clientId=0 permId=0 status=null filled=0 remaining=0 avgFillPrice=0.0 lastFillPrice=102.0 parent Id=0 whyHeld=null\", string0);\n }", "title": "" }, { "docid": "67abddb37f222ac86d8594787c02325f", "score": "0.47697613", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1436), \"currency = \");\n assertEquals(\"id = -1436 len = 11\\ncurrency = \", string0);\n \n String string1 = EWrapperMsgGenerator.tickPrice((-1436), (-1436), 1.7976931348623157E308, (-1436));\n assertEquals(\"id=-1436 unknown=1.7976931348623157E308 canAutoExecute\", string1);\n \n ContractDetails contractDetails0 = new ContractDetails();\n contractDetails0.m_nextOptionDate = \"!\";\n contractDetails0.m_timeZoneId = \"id=-1436 unknown=1.7976931348623157E308 canAutoExecute\";\n String string2 = EWrapperMsgGenerator.bondContractDetails((-1436), contractDetails0);\n assertEquals(\"reqId = -1436 ===================================\\n ---- Bond Contract Details begin ----\\nsymbol = null\\nsecType = null\\ncusip = null\\ncoupon = 0.0\\nmaturity = null\\nissueDate = null\\nratings = null\\nbondType = null\\ncouponType = null\\nconvertible = false\\ncallable = false\\nputable = false\\ndescAppend = null\\nexchange = null\\ncurrency = null\\nmarketName = null\\ntradingClass = null\\nconid = 0\\nminTick = 0.0\\norderTypes = null\\nvalidExchanges = null\\nnextOptionDate = !\\nnextOptionType = null\\nnextOptionPartial = false\\nnotes = null\\nlongName = null\\n ---- Bond Contract Details End ----\\n\", string2);\n \n String string3 = EWrapperMsgGenerator.updateMktDepthL2(0, 0, (String) null, 0, 0, 0.0, 1075);\n assertEquals(\"updateMktDepth: 0 0 null 0 0 0.0 1075\", string3);\n \n String string4 = EWrapperMsgGenerator.tickString((-2331), (-1485), (String) null);\n assertEquals(\"id=-2331 unknown=null\", string4);\n \n String string5 = EWrapperMsgGenerator.tickOptionComputation(0, (-1485), 0.0, 1075, (-779.978211), 0.0);\n assertEquals(\"id=0 unknown: vol = 0.0 delta = N/A\", string5);\n \n String string6 = EWrapperMsgGenerator.scannerDataEnd(0);\n assertEquals(\"id = 0 =============== end ===============\", string6);\n \n String string7 = EWrapperMsgGenerator.contractMsg(contractDetails0.m_summary);\n assertEquals(\"conid = 0\\nsymbol = null\\nsecType = null\\nexpiry = null\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\n\", string7);\n \n String string8 = EWrapperMsgGenerator.currentTime(0);\n assertEquals(\"current time = 0 (Jan 1, 1970 12:00:00 AM)\", string8);\n \n EWrapperMsgGenerator.managedAccounts((String) null);\n String string9 = EWrapperMsgGenerator.contractDetailsEnd(0);\n assertEquals(\"reqId = 0 =============== end ===============\", string9);\n \n EWrapperMsgGenerator.accountDownloadEnd(\"id=-1436 unknown=1.7976931348623157E308 canAutoExecute\");\n String string10 = EWrapperMsgGenerator.realtimeBar(228, 1257L, 1257L, 1.0, 0.0, 1257L, 1L, 0.0, 0);\n assertEquals(\"id=228 time = 1257 open=1257.0 high=1.0 low=0.0 close=1257.0 volume=1 count=0 WAP=0.0\", string10);\n }", "title": "" }, { "docid": "f643537821e08ba217827c417cf4605c", "score": "0.47666472", "text": "net.protol.common.Common.client_info getClientInfo();", "title": "" }, { "docid": "64ad12a03b7de861753d5a464dad8288", "score": "0.47637615", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n UnderComp underComp0 = new UnderComp();\n String string0 = EWrapperMsgGenerator.deltaNeutralValidation(39, underComp0);\n Vector<Integer> vector0 = new Vector<Integer>();\n Contract contract0 = new Contract(167, \"ewErA\", \"ewErA\", \"\", (-2988), \"id = 39 underComp.conId =0 underComp.delta =0.0 underComp.price =0.0\", \"\", \"ewErA\", \" clientId=\", \"\", vector0, \"3%jN{F]\", false, \"$'n16\", \" It does not support historical data backfill.\");\n Order order0 = new Order();\n contract0.equals(\"$'n16\");\n Contract contract1 = new Contract((-1726031376), (String) null, (String) null, \"$'n16\", 2398.1600654212098, \"ewErA\", (String) null, \" clientId=\", \"ewErA\", \"2w|j1'B%k'gr0s^\", (Vector) null, (String) null, false, \" open=\", \"unknown\");\n Order order1 = new Order();\n OrderState orderState0 = new OrderState();\n EWrapperMsgGenerator.openOrder(38, contract1, order0, orderState0);\n EWrapperMsgGenerator.openOrder(0, contract1, order1, orderState0);\n order1.m_algoStrategy = \"ewErA\";\n EWrapperMsgGenerator.managedAccounts(\"/z\\\"gCC;2]Lc!A^!@#H\");\n System.setCurrentTimeMillis(1L);\n String string1 = EWrapperMsgGenerator.openOrder(24, contract0, order1, orderState0);\n assertFalse(string1.equals((Object)string0));\n }", "title": "" }, { "docid": "e47a4c0b0ce2873e9f5d0ad0158115d1", "score": "0.47621664", "text": "public OrderStruct getOrderById(String userId, OrderIdStruct order)\n throws CommunicationException,\n DataValidationException,\n NotFoundException,\n AuthorizationException,\n SystemException\n {\n // changed the async calls to sync calls\n\n boolean serviceNotFound = false;\n String serviceNotFoundMessage = \"\";\n\n \tSet<String> enabledSessions = \n \t\tServicesHelper.getUserEnablementHome().getUserEnablement(userId).getSessionsWithAnyEnablements();\n for (String serviceRoute : uniqueServiceRefByProcess.keySet() )\n {\n \tStringTokenizer st = new StringTokenizer(serviceRoute, \":\");\n String strSessionName = st.nextToken();\n \tif (enabledSessions.contains(strSessionName))\n \t{\n if (!orderByIdQueryRouteFilterEnabled || serviceRoute.indexOf(orderByIdQueryRouteFilter) >= 0)\n {\n if (Log.isDebugOn())\n {\n\t Log.debug(this, \"Sending request to service (getOrderById): \" + serviceRoute);\n\t }\n\t OrderHandlingService targetService = (OrderHandlingService) uniqueServiceRefByProcess.get(serviceRoute);\n try\n {\n\t return targetService.getOrderById(userId, order);\n }\n catch (com.cboe.exceptions.NotFoundException notfe)\n {\n if (Log.isDebugOn())\n {\n\t Log.debug(this, \"(getOrderById, NotFoundException) Error sending request to service: \" + serviceRoute);\n\t }\n }\n catch (com.cboe.exceptions.DataValidationException e)\n {\n if (Log.isDebugOn())\n {\n\t Log.debug(this, \"(getOrderById, DataValidationException) Error on Sending request to service \" + serviceRoute);\n\t }\n }\n catch (com.cboe.exceptions.CommunicationException e)\n {\n if (Log.isDebugOn())\n {\n\t Log.debug(this, \"(getOrderById, CommunicationException) Failure on Sending request to service \" + serviceRoute);\n\t }\n }\n catch (org.omg.CORBA.OBJECT_NOT_EXIST e)\n {\n\t serviceNotFound = true;\n\t serviceNotFoundMessage = serviceNotFoundMessage + \" Object not found for service: \" + serviceRoute;\n\t }\n\t }\n \t}\n }\n\n if (serviceNotFound)\n {\n if (order.branchSequenceNumber > 0)\n {\n Log.alarm(this,\n \"(getOrderById, serviceNotFound), No order had been found for user:branch:seq#::\" + userId + \":\" + order.branch + \":\" + order.branchSequenceNumber + \" with error:\" + serviceNotFoundMessage);\n }\n else\n {\n Log.alarm(this,\n \"(getOrderById, serviceNotFound), No order had been found for user:high:low::\" + userId + \":\" + order.highCboeId + \":\" + order.lowCboeId + \" with error:\" + serviceNotFoundMessage);\n }\n throw ExceptionBuilder.communicationException(\"getOrderById, No order has been found due to:\" + serviceNotFoundMessage, CommunicationFailureCodes.SERVER_NOT_AVAILABLE);\n }\n else\n {\n if (order.branchSequenceNumber > 0)\n {\n Log.alarm(this,\n \"(getOrderById, serviceNotFound), No order had been found for user:branch:seq#::\" + userId + \":\" + order.branch + \":\" + order.branchSequenceNumber);\n }\n else\n {\n Log.alarm(this,\n \"(getOrderById, serviceNotFound), No order had been found for user:high:low::\" + userId + \":\" + order.highCboeId + \":\" + order.lowCboeId);\n }\n throw ExceptionBuilder.notFoundException(\"getOrderById, No order has been found\", 0);\n\n }\n\n }", "title": "" }, { "docid": "b73cbfa129c131de4382e29172eef95b", "score": "0.4761625", "text": "public net.is_bg.mon.wsclient.stub.WsStub.GetStudentDataFromEGNExtendedResponse getStudentDataFromEGNExtended(\r\n\r\n net.is_bg.mon.wsclient.stub.WsStub.GetStudentDataFromEGNExtended getStudentDataFromEGNExtended14)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/getStudentDataFromEGNExtended\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromEGNExtended14,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getStudentDataFromEGNExtended\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getStudentDataFromEGNExtended\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsStub.GetStudentDataFromEGNExtendedResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsStub.GetStudentDataFromEGNExtendedResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGNExtended\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGNExtended\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGNExtended\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "510a077d266d6614b406bda0eab5e842", "score": "0.47581726", "text": "public String getAktAbonentBillInfo() {\n if (to.getVo() != null && to.getVo().getIdLeasebill() != null) {\n CDBCRowObject ro = CDBC_AbonentBills_Object.findAbonentBill(to.getVo().getIdLeasebill().intValue());\n AbonentBill_VO vo = new AbonentBill_VO(ro);\n return \"№ \" + vo.getBillnumber() + \" от \" + format.format(vo.getBilldate());\n }\n return \"\";\n}", "title": "" }, { "docid": "fdf43897c6d2c2d625070dc9d2a5d14e", "score": "0.4756459", "text": "public interface I_M_DiscountSchemaLine \n{\n\n /** TableName=M_DiscountSchemaLine */\n public static final String Table_Name = \"M_DiscountSchemaLine\";\n\n /** SPS_Table_ID=50324 */\n public static final int SPS_Table_ID = 50324;\n KeyNamePair Model = new KeyNamePair(SPS_Table_ID, Table_Name);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name C_BPartner_ID */\n public static final String COLUMNNAME_C_BPartner_ID = \"C_BPartner_ID\";\n\n\t/** Set Business Partner .\n\t * Identifies a Business Partner\n\t */\n\tpublic void setC_BPartner_ID (int C_BPartner_ID);\n\n\t/** Get Business Partner .\n\t * Identifies a Business Partner\n\t */\n\tpublic int getC_BPartner_ID();\n\n /** Column name C_ConversionType_ID */\n public static final String COLUMNNAME_C_ConversionType_ID = \"C_ConversionType_ID\";\n\n\t/** Set Currency Type.\n\t * Currency Conversion Rate Type\n\t */\n\tpublic void setC_ConversionType_ID (int C_ConversionType_ID);\n\n\t/** Get Currency Type.\n\t * Currency Conversion Rate Type\n\t */\n\tpublic int getC_ConversionType_ID();\n\n /** Column name Classification */\n public static final String COLUMNNAME_Classification = \"Classification\";\n\n\t/** Set Classification.\n\t * Classification for grouping\n\t */\n\tpublic void setClassification (String Classification);\n\n\t/** Get Classification.\n\t * Classification for grouping\n\t */\n\tpublic String getClassification();\n\n /** Column name ConversionDate */\n public static final String COLUMNNAME_ConversionDate = \"ConversionDate\";\n\n\t/** Set Conversion Date.\n\t * Date for selecting conversion rate\n\t */\n\tpublic void setConversionDate (Date ConversionDate);\n\n\t/** Get Conversion Date.\n\t * Date for selecting conversion rate\n\t */\n\tpublic Date getConversionDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Date getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Group1 */\n public static final String COLUMNNAME_Group1 = \"Group1\";\n\n\t/** Set Group1\t */\n\tpublic void setGroup1 (String Group1);\n\n\t/** Get Group1\t */\n\tpublic String getGroup1();\n\n /** Column name Group2 */\n public static final String COLUMNNAME_Group2 = \"Group2\";\n\n\t/** Set Group2\t */\n\tpublic void setGroup2 (String Group2);\n\n\t/** Get Group2\t */\n\tpublic String getGroup2();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name Limit_AddAmt */\n public static final String COLUMNNAME_Limit_AddAmt = \"Limit_AddAmt\";\n\n\t/** Set Limit price Surcharge Amount.\n\t * Amount added to the converted/copied price before multiplying\n\t */\n\tpublic void setLimit_AddAmt (BigDecimal Limit_AddAmt);\n\n\t/** Get Limit price Surcharge Amount.\n\t * Amount added to the converted/copied price before multiplying\n\t */\n\tpublic BigDecimal getLimit_AddAmt();\n\n /** Column name Limit_Base */\n public static final String COLUMNNAME_Limit_Base = \"Limit_Base\";\n\n\t/** Set Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic void setLimit_Base (String Limit_Base);\n\n\t/** Get Limit price Base.\n\t * Base price for calculation of the new price\n\t */\n\tpublic String getLimit_Base();\n\n /** Column name Limit_Discount */\n public static final String COLUMNNAME_Limit_Discount = \"Limit_Discount\";\n\n\t/** Set Limit price Discount %.\n\t * Discount in percent to be subtracted from base, if negative it will be added to base price\n\t */\n\tpublic void setLimit_Discount (BigDecimal Limit_Discount);\n\n\t/** Get Limit price Discount %.\n\t * Discount in percent to be subtracted from base, if negative it will be added to base price\n\t */\n\tpublic BigDecimal getLimit_Discount();\n\n /** Column name Limit_Fixed */\n public static final String COLUMNNAME_Limit_Fixed = \"Limit_Fixed\";\n\n\t/** Set Fixed Limit Price.\n\t * Fixed Limit Price (not calculated)\n\t */\n\tpublic void setLimit_Fixed (BigDecimal Limit_Fixed);\n\n\t/** Get Fixed Limit Price.\n\t * Fixed Limit Price (not calculated)\n\t */\n\tpublic BigDecimal getLimit_Fixed();\n\n /** Column name Limit_MaxAmt */\n public static final String COLUMNNAME_Limit_MaxAmt = \"Limit_MaxAmt\";\n\n\t/** Set Limit price max Margin.\n\t * Maximum difference to original limit price;\n ignored if zero\n\t */\n\tpublic void setLimit_MaxAmt (BigDecimal Limit_MaxAmt);\n\n\t/** Get Limit price max Margin.\n\t * Maximum difference to original limit price;\n ignored if zero\n\t */\n\tpublic BigDecimal getLimit_MaxAmt();\n\n /** Column name Limit_MinAmt */\n public static final String COLUMNNAME_Limit_MinAmt = \"Limit_MinAmt\";\n\n\t/** Set Limit price min Margin.\n\t * Minimum difference to original limit price;\n ignored if zero\n\t */\n\tpublic void setLimit_MinAmt (BigDecimal Limit_MinAmt);\n\n\t/** Get Limit price min Margin.\n\t * Minimum difference to original limit price;\n ignored if zero\n\t */\n\tpublic BigDecimal getLimit_MinAmt();\n\n /** Column name Limit_Rounding */\n public static final String COLUMNNAME_Limit_Rounding = \"Limit_Rounding\";\n\n\t/** Set Limit price Rounding.\n\t * Rounding of the final result\n\t */\n\tpublic void setLimit_Rounding (String Limit_Rounding);\n\n\t/** Get Limit price Rounding.\n\t * Rounding of the final result\n\t */\n\tpublic String getLimit_Rounding();\n\n /** Column name List_AddAmt */\n public static final String COLUMNNAME_List_AddAmt = \"List_AddAmt\";\n\n\t/** Set List price Surcharge Amount.\n\t * List Price Surcharge Amount\n\t */\n\tpublic void setList_AddAmt (BigDecimal List_AddAmt);\n\n\t/** Get List price Surcharge Amount.\n\t * List Price Surcharge Amount\n\t */\n\tpublic BigDecimal getList_AddAmt();\n\n /** Column name List_Base */\n public static final String COLUMNNAME_List_Base = \"List_Base\";\n\n\t/** Set List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic void setList_Base (String List_Base);\n\n\t/** Get List price Base.\n\t * Price used as the basis for price list calculations\n\t */\n\tpublic String getList_Base();\n\n /** Column name List_Discount */\n public static final String COLUMNNAME_List_Discount = \"List_Discount\";\n\n\t/** Set List price Discount %.\n\t * Discount from list price as a percentage\n\t */\n\tpublic void setList_Discount (BigDecimal List_Discount);\n\n\t/** Get List price Discount %.\n\t * Discount from list price as a percentage\n\t */\n\tpublic BigDecimal getList_Discount();\n\n /** Column name List_Fixed */\n public static final String COLUMNNAME_List_Fixed = \"List_Fixed\";\n\n\t/** Set Fixed List Price.\n\t * Fixes List Price (not calculated)\n\t */\n\tpublic void setList_Fixed (BigDecimal List_Fixed);\n\n\t/** Get Fixed List Price.\n\t * Fixes List Price (not calculated)\n\t */\n\tpublic BigDecimal getList_Fixed();\n\n /** Column name List_MaxAmt */\n public static final String COLUMNNAME_List_MaxAmt = \"List_MaxAmt\";\n\n\t/** Set List price max Margin.\n\t * Maximum margin for a product\n\t */\n\tpublic void setList_MaxAmt (BigDecimal List_MaxAmt);\n\n\t/** Get List price max Margin.\n\t * Maximum margin for a product\n\t */\n\tpublic BigDecimal getList_MaxAmt();\n\n /** Column name List_MinAmt */\n public static final String COLUMNNAME_List_MinAmt = \"List_MinAmt\";\n\n\t/** Set List price min Margin.\n\t * Minimum margin for a product\n\t */\n\tpublic void setList_MinAmt (BigDecimal List_MinAmt);\n\n\t/** Get List price min Margin.\n\t * Minimum margin for a product\n\t */\n\tpublic BigDecimal getList_MinAmt();\n\n /** Column name List_Rounding */\n public static final String COLUMNNAME_List_Rounding = \"List_Rounding\";\n\n\t/** Set List price Rounding.\n\t * Rounding rule for final list price\n\t */\n\tpublic void setList_Rounding (String List_Rounding);\n\n\t/** Get List price Rounding.\n\t * Rounding rule for final list price\n\t */\n\tpublic String getList_Rounding();\n\n /** Column name M_DiscountSchema_ID */\n public static final String COLUMNNAME_M_DiscountSchema_ID = \"M_DiscountSchema_ID\";\n\n\t/** Set Discount Schema.\n\t * Schema to calculate the trade discount percentage\n\t */\n\tpublic void setM_DiscountSchema_ID (int M_DiscountSchema_ID);\n\n\t/** Get Discount Schema.\n\t * Schema to calculate the trade discount percentage\n\t */\n\tpublic int getM_DiscountSchema_ID();\n\n /** Column name M_DiscountSchemaLine_ID */\n public static final String COLUMNNAME_M_DiscountSchemaLine_ID = \"M_DiscountSchemaLine_ID\";\n\n\t/** Set Discount Pricelist.\n\t * Line of the pricelist trade discount schema\n\t */\n\tpublic void setM_DiscountSchemaLine_ID (int M_DiscountSchemaLine_ID);\n\n\t/** Get Discount Pricelist.\n\t * Line of the pricelist trade discount schema\n\t */\n\tpublic int getM_DiscountSchemaLine_ID();\n\n /** Column name M_Product_Category_ID */\n public static final String COLUMNNAME_M_Product_Category_ID = \"M_Product_Category_ID\";\n\n\t/** Set Product Category.\n\t * Category of a Product\n\t */\n\tpublic void setM_Product_Category_ID (int M_Product_Category_ID);\n\n\t/** Get Product Category.\n\t * Category of a Product\n\t */\n\tpublic int getM_Product_Category_ID();\n\n /** Column name M_Product_ID */\n public static final String COLUMNNAME_M_Product_ID = \"M_Product_ID\";\n\n\t/** Set Product.\n\t * Product, Service, Item\n\t */\n\tpublic void setM_Product_ID (int M_Product_ID);\n\n\t/** Get Product.\n\t * Product, Service, Item\n\t */\n\tpublic int getM_Product_ID();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Std_AddAmt */\n public static final String COLUMNNAME_Std_AddAmt = \"Std_AddAmt\";\n\n\t/** Set Standard price Surcharge Amount.\n\t * Amount added to a price as a surcharge\n\t */\n\tpublic void setStd_AddAmt (BigDecimal Std_AddAmt);\n\n\t/** Get Standard price Surcharge Amount.\n\t * Amount added to a price as a surcharge\n\t */\n\tpublic BigDecimal getStd_AddAmt();\n\n /** Column name Std_Base */\n public static final String COLUMNNAME_Std_Base = \"Std_Base\";\n\n\t/** Set Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic void setStd_Base (String Std_Base);\n\n\t/** Get Standard price Base.\n\t * Base price for calculating new standard price\n\t */\n\tpublic String getStd_Base();\n\n /** Column name Std_Discount */\n public static final String COLUMNNAME_Std_Discount = \"Std_Discount\";\n\n\t/** Set Standard price Discount %.\n\t * Discount percentage to subtract from base price\n\t */\n\tpublic void setStd_Discount (BigDecimal Std_Discount);\n\n\t/** Get Standard price Discount %.\n\t * Discount percentage to subtract from base price\n\t */\n\tpublic BigDecimal getStd_Discount();\n\n /** Column name Std_Fixed */\n public static final String COLUMNNAME_Std_Fixed = \"Std_Fixed\";\n\n\t/** Set Fixed Standard Price.\n\t * Fixed Standard Price (not calculated)\n\t */\n\tpublic void setStd_Fixed (BigDecimal Std_Fixed);\n\n\t/** Get Fixed Standard Price.\n\t * Fixed Standard Price (not calculated)\n\t */\n\tpublic BigDecimal getStd_Fixed();\n\n /** Column name Std_MaxAmt */\n public static final String COLUMNNAME_Std_MaxAmt = \"Std_MaxAmt\";\n\n\t/** Set Standard max Margin.\n\t * Maximum margin allowed for a product\n\t */\n\tpublic void setStd_MaxAmt (BigDecimal Std_MaxAmt);\n\n\t/** Get Standard max Margin.\n\t * Maximum margin allowed for a product\n\t */\n\tpublic BigDecimal getStd_MaxAmt();\n\n /** Column name Std_MinAmt */\n public static final String COLUMNNAME_Std_MinAmt = \"Std_MinAmt\";\n\n\t/** Set Standard price min Margin.\n\t * Minimum margin allowed for a product\n\t */\n\tpublic void setStd_MinAmt (BigDecimal Std_MinAmt);\n\n\t/** Get Standard price min Margin.\n\t * Minimum margin allowed for a product\n\t */\n\tpublic BigDecimal getStd_MinAmt();\n\n /** Column name Std_Rounding */\n public static final String COLUMNNAME_Std_Rounding = \"Std_Rounding\";\n\n\t/** Set Standard price Rounding.\n\t * Rounding rule for calculated price\n\t */\n\tpublic void setStd_Rounding (String Std_Rounding);\n\n\t/** Get Standard price Rounding.\n\t * Rounding rule for calculated price\n\t */\n\tpublic String getStd_Rounding();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Date getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}", "title": "" }, { "docid": "96131ffd83e0baba7eacbc01f19720a9", "score": "0.47554615", "text": "public void setOrderNo(String orderNo)\n/* */ {\n/* 136 */ this.orderNo = orderNo;\n/* */ }", "title": "" }, { "docid": "46a0d5698389070b5c7bfb044ca4b2e1", "score": "0.47549286", "text": "public void testACFT_COMPLETE_INSRV_VALUE_VALIDATION() throws Exception {\n\n // create inventory map\n Map<String, String> lMapInventory = new LinkedHashMap<String, String>();\n\n lMapInventory.put( \"SERIAL_NO_OEM\", \"'ACFT-00001'\" );\n lMapInventory.put( \"PART_NO_OEM\", \"'ACFT_ASSY_PN8'\" );\n lMapInventory.put( \"MANUFACT_CD\", \"'10001'\" );\n lMapInventory.put( \"LOC_CD\", \"'OPS'\" );\n lMapInventory.put( \"AC_REG_CD\", \"'AC-TEST'\" );\n lMapInventory.put( \"INV_OPER_CD\", \"'NORM'\" );\n lMapInventory.put( \"ISSUE_ACCOUNT_CD\", \"'5'\" );\n lMapInventory.put( \"INV_COND_CD\", \"'INSRV'\" );\n lMapInventory.put( \"MANUFACT_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_INVENTORY, lMapInventory ) );\n\n // insert eng 1\n lMapInventory.clear();\n lMapInventory.put( \"SERIAL_NO_OEM\", \"'ASSY-00001'\" );\n lMapInventory.put( \"PART_NO_OEM\", \"'ENG_ASSY_PN8'\" );\n lMapInventory.put( \"MANUFACT_CD\", \"'ABC11'\" );\n lMapInventory.put( \"LOC_CD\", \"'OPS'\" );\n // lMapInventory.put( \"INV_OPER_CD\", \"'NORM'\" );\n lMapInventory.put( \"ISSUE_ACCOUNT_CD\", \"'5'\" );\n // lMapInventory.put( \"INV_COND_CD\", \"'INSRV'\" );\n lMapInventory.put( \"MANUFACT_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_INVENTORY, lMapInventory ) );\n\n // insert eng 2\n lMapInventory.clear();\n lMapInventory.put( \"SERIAL_NO_OEM\", \"'ASSY-00002'\" );\n lMapInventory.put( \"PART_NO_OEM\", \"'ENG_ASSY_PN8'\" );\n lMapInventory.put( \"MANUFACT_CD\", \"'ABC11'\" );\n lMapInventory.put( \"LOC_CD\", \"'OPS'\" );\n // lMapInventory.put( \"INV_OPER_CD\", \"'NORM'\" );\n lMapInventory.put( \"ISSUE_ACCOUNT_CD\", \"'5'\" );\n // lMapInventory.put( \"INV_COND_CD\", \"'INSRV'\" );\n lMapInventory.put( \"MANUFACT_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_INVENTORY, lMapInventory ) );\n\n // import eng 1 attached\n Map<String, String> lMapInventoryAttach = new LinkedHashMap<String, String>();\n lMapInventoryAttach.put( \"PARENT_SERIAL_NO_OEM\", \"'ACFT-00001'\" );\n lMapInventoryAttach.put( \"PARENT_PART_NO_OEM\", \"'ACFT_ASSY_PN8'\" );\n lMapInventoryAttach.put( \"PARENT_MANUFACT_CD\", \"'10001'\" );\n lMapInventoryAttach.put( \"ATTACH_SERIAL_NO_OEM\", \"'ASSY-00001'\" );\n lMapInventoryAttach.put( \"ATTACH_PART_NO_OEM\", \"'ENG_ASSY_PN8'\" );\n lMapInventoryAttach.put( \"ATTACH_MANUFACT_CD\", \"'ABC11'\" );\n lMapInventoryAttach.put( \"BOM_PART_CD\", \"'ENG-ASSY'\" );\n lMapInventoryAttach.put( \"EQP_POS_CD\", \"'1'\" );\n lMapInventoryAttach.put( \"INSTALL_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_ATTACH, lMapInventoryAttach ) );\n\n // import eng 2 attached\n lMapInventoryAttach.clear();\n lMapInventoryAttach.put( \"PARENT_SERIAL_NO_OEM\", \"'ACFT-00001'\" );\n lMapInventoryAttach.put( \"PARENT_PART_NO_OEM\", \"'ACFT_ASSY_PN8'\" );\n lMapInventoryAttach.put( \"PARENT_MANUFACT_CD\", \"'10001'\" );\n lMapInventoryAttach.put( \"ATTACH_SERIAL_NO_OEM\", \"'ASSY-00002'\" );\n lMapInventoryAttach.put( \"ATTACH_PART_NO_OEM\", \"'ENG_ASSY_PN8'\" );\n lMapInventoryAttach.put( \"ATTACH_MANUFACT_CD\", \"'ABC11'\" );\n lMapInventoryAttach.put( \"BOM_PART_CD\", \"'ENG-ASSY'\" );\n lMapInventoryAttach.put( \"EQP_POS_CD\", \"'2'\" );\n lMapInventoryAttach.put( \"INSTALL_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert( TableUtil.getInsertForTableByMap( TableUtil.C_RI_ATTACH, lMapInventoryAttach ) );\n\n // create sub inv map\n Map<String, String> lMapInventoryChild = new LinkedHashMap<String, String>();\n lMapInventoryChild.put( \"PARENT_SERIAL_NO_OEM\", \"'ACFT-00001'\" );\n lMapInventoryChild.put( \"PARENT_PART_NO_OEM\", \"'ACFT_ASSY_PN8'\" );\n lMapInventoryChild.put( \"PARENT_MANUFACT_CD\", \"'10001'\" );\n // lMapInventoryChild.put( \"BOM_PART_CD\", \"'ACFT-SYS-2-CHILD-TRK-2'\" );\n // lMapInventoryChild.put( \"EQP_POS_CD\", \"'1'\" );\n lMapInventoryChild.put( \"SERIAL_NO_OEM\", \"'SER0001'\" );\n lMapInventoryChild.put( \"PART_NO_OEM\", \"'A0001260'\" );\n lMapInventoryChild.put( \"MANUFACT_CD\", \"'11111'\" );\n lMapInventoryChild.put( \"INV_CLASS_CD\", \"'SER'\" );\n lMapInventoryChild.put( \"MANUFACT_DT\", \"to_date('01/01/2015','mm/dd/yyyy')\" );\n\n // insert map\n runInsert(\n TableUtil.getInsertForTableByMap( TableUtil.C_RI_INVENTORY_SUB, lMapInventoryChild ) );\n\n // call inventory validation & import\n runValidateInv( \"FULL\" );\n checkInventoryNoWarnings( \"PASS\" );\n\n }", "title": "" }, { "docid": "70df7ccea0255a6f5527a220c17e550a", "score": "0.47541514", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime(1613L);\n assertEquals(\"current time = 1613 (Jan 1, 1970 12:26:53 AM)\", string0);\n \n EWrapperMsgGenerator eWrapperMsgGenerator0 = new EWrapperMsgGenerator();\n Contract contract0 = new Contract();\n Order order0 = new Order();\n String string1 = EWrapperMsgGenerator.tickEFP(0, (-2582), 1.7976931348623157E308, \">0[AXSuQ\", (-889.3889396246395), 0, \"\", 0, 907.3498);\n assertEquals(\"id=0 unknown: basisPoints = 1.7976931348623157E308/>0[AXSuQ impliedFuture = -889.3889396246395 holdDays = 0 futureExpiry = dividendImpact = 0.0 dividends to expiry = 907.3498\", string1);\n \n OrderState orderState0 = new OrderState(\"WtfF9%2h1]@JeESW[z\", \"FA:\", (String) null, \"IFJ7:mK&,d4}bNz\", Integer.MAX_VALUE, 0, (-1), \"com.ib.client.UnderComp\", \"\");\n EWrapperMsgGenerator.openOrder((-1), contract0, order0, orderState0);\n Contract contract1 = new Contract();\n contract1.m_expiry = \"@LZiO^X,JBQK\";\n contract1.m_symbol = \"FA:\";\n contract1.clone();\n ContractDetails contractDetails0 = new ContractDetails(contract1, \"[;3GKACQ9kHf-f\\\"eI<\", \"[;3GKACQ9kHf-f\\\"eI<\", 0.0, \"FA:\", (String) null, (-386), (String) null, (String) null, (String) null, (String) null, \"sLk0\", (String) null, \"\", \"SCANNER PARAMETERS:\");\n String string2 = EWrapperMsgGenerator.contractDetails((-386), contractDetails0);\n assertEquals(\"reqId = -386 ===================================\\n ---- Contract Details begin ----\\nconid = 0\\nsymbol = FA:\\nsecType = null\\nexpiry = @LZiO^X,JBQK\\nstrike = 0.0\\nright = null\\nmultiplier = null\\nexchange = null\\nprimaryExch = null\\ncurrency = null\\nlocalSymbol = null\\nmarketName = [;3GKACQ9kHf-f\\\"eI<\\ntradingClass = [;3GKACQ9kHf-f\\\"eI<\\nminTick = 0.0\\nprice magnifier = 0\\norderTypes = FA:\\nvalidExchanges = null\\nunderConId = -386\\nlongName = null\\ncontractMonth = null\\nindustry = null\\ncategory = null\\nsubcategory = sLk0\\ntimeZoneId = null\\ntradingHours = \\nliquidHours = SCANNER PARAMETERS:\\n ---- Contract Details End ----\\n\", string2);\n \n String string3 = EWrapperMsgGenerator.openOrderEnd();\n assertEquals(\" =============== end ===============\", string3);\n \n String string4 = EWrapperMsgGenerator.accountDownloadEnd((String) null);\n assertEquals(\"accountDownloadEnd: null\", string4);\n }", "title": "" }, { "docid": "a4aa2ea1a2338ff65edfe30f027faa9e", "score": "0.47532558", "text": "@Override\r\n\tpublic Map<String, Object> getEContractInfo(Map<String, Object> param) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "de3832563504134249c06caedcb84d35", "score": "0.47506198", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateAccountValue(\"6TFi$|\", \"com.ib.client.OrderState\", \"\", \"com.ib.client.OrderState\");\n assertEquals(\"updateAccountValue: 6TFi$| com.ib.client.OrderState com.ib.client.OrderState\", string0);\n \n String string1 = EWrapperMsgGenerator.currentTime((-1439L));\n assertEquals(\"current time = -1439 (Dec 31, 1969 11:36:01 PM)\", string1);\n \n Contract contract0 = new Contract();\n ContractDetails contractDetails0 = new ContractDetails(contract0, (String) null, (String) null, 0.0, (String) null, \"6TFi$|\", (-355), \"uBD%\", \"current time = -1439 (Dec 31, 1969 11:36:01 PM)\", \"BOND\", \"com.ib.client.OrderState\", \"\", (String) null, (String) null, \"^hz3LZDj^Iz[.uiH6&\");\n String string2 = EWrapperMsgGenerator.scannerData((-329), (-329), contractDetails0, (String) null, (String) null, (String) null, \"\");\n assertEquals(\"id = -329 rank=-329 symbol=null secType=null expiry=null strike=0.0 right=null exchange=null currency=null localSymbol=null marketName=null tradingClass=null distance=null benchmark=null projection=null legsStr=\", string2);\n }", "title": "" }, { "docid": "4ac6926f11d3f15a6606e4d4b906c8bf", "score": "0.4748656", "text": "private Map<String,Object> getServiceDefinitionMetadata() {\n\t\tMap<String,Object> sdMetadata = new HashMap<String,Object>();\n\t\tsdMetadata.put(\"displayName\", \"Bugzilla\");\n\t\tsdMetadata.put(\"imageUrl\",\"http://www.bugzilla.org/img/buggie.png\");\n\t\tsdMetadata.put(\"longDescription\",\"Bugzilla Service\");\n\t\tsdMetadata.put(\"providerDisplayName\",\"Pivotal\");\n\t\tsdMetadata.put(\"documentationUrl\",\"http://www.bugzilla.org/docs/\");\n\t\tsdMetadata.put(\"supportUrl\",\"http://www.bugzilla.org/\");\n\t\treturn sdMetadata;\n\t}", "title": "" }, { "docid": "8a9d841be3c6b3d0ecbb79c3c747ffca", "score": "0.47472382", "text": "public FinanceGuaranties getDocumentDetail(String documentNo);", "title": "" }, { "docid": "7ecbedcc671c8c62ad6d120ede65c0dc", "score": "0.47470206", "text": "public ParcelDelivery getOrderDelivery() throws ClassCastException;", "title": "" }, { "docid": "e29cd8eef2f058c155493f9394288ab7", "score": "0.47430262", "text": "public interface OrdersAndCargoService {\n \n /**\n * Find all orders.\n * \n * @return orders set or empty set.\n * @throws LogiwebServiceException if something unexpected happens\n */\n Set<DeliveryOrder> findAllOrders() throws LogiwebServiceException;\n \n /**\n * Find all cargoes.\n * \n * @return cargoes set or empty set.\n * @throws LogiwebServiceException if something unexpected happens\n */\n Set<Cargo> findAllCargoes() throws LogiwebServiceException;\n \n /**\n * Add new order. \n * @param newOrder\n * @return same order\n * @throws LogiwebServiceException if something unexpected happens\n */\n DeliveryOrder addNewOrder(DeliveryOrder newOrder) throws LogiwebServiceException;\n \n /**\n * Find ofrder by id.\n * \n * @param id\n * @return order or null if not found \n * @throws LogiwebServiceException if something unexpected happens\n */\n DeliveryOrder findOrderById(int id) throws LogiwebServiceException;\n \n /**\n * Add new cargo. \n * Cargo must contain title, origin and delivery cities, weight and order, to which it must be assigned.\n * @param newCargo\n * @throws LogiwebServiceException -- if unexpected happened\n * @throws ServiceValidationException -- if new cargo doesn't fit requirements\n */\n void addCargo(Cargo newCargo) throws ServiceValidationException, LogiwebServiceException;\n \n /**\n * Assign truck to order.\n * Truck must by managed entity.\n * \n * @param truck\n * @param orderId\n * @throws ServiceValidationException if truck is not Free or broken.\n * @throws LogiwebServiceException if unexpected happened\n */\n void assignTruckToOrder(Truck truck, int orderId) throws ServiceValidationException, LogiwebServiceException;\n\n /**\n * Sets 'READY' status for order if order have at least one cargo and assign truck with full crew.\n * \n * @param order\n * @throws LogiwebServiceException if unexpected happened\n * @throws ServiceValidationException if validation failed. Description in message.\n */\n void setReadyStatusForOrder(DeliveryOrder order)\n throws ServiceValidationException, LogiwebServiceException;\n}", "title": "" }, { "docid": "c348f769b2e07b3641d93828a8bc0c42", "score": "0.47422478", "text": "public net.is_bg.mon.wsclient.stub.WsStub.GetVersionResponse getVersion(\r\n\r\n net.is_bg.mon.wsclient.stub.WsStub.GetVersion getVersion16)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/getVersion\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getVersion16,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getVersion\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/\",\r\n \"getVersion\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsStub.GetVersionResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsStub.GetVersionResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getVersion\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getVersion\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getVersion\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "69c70823df29eb824a8bb217d4f5cebb", "score": "0.47390434", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Contract contract0 = new Contract();\n Order order0 = new Order();\n order0.m_algoStrategy = \"BOND\";\n OrderState orderState0 = new OrderState(\"tfBf*V~8#fHH|P\", (String) null, \"updateMktDepth: \", \"tfBf*V~8#fHH|P\", 2, 1535.8734, (-1377.228), \"cw\", \"MP8pzEJ' /pM(xeE#\");\n String string0 = EWrapperMsgGenerator.openOrder(1897, contract0, order0, orderState0);\n assertNotNull(string0);\n }", "title": "" }, { "docid": "5250c51aa30b3444d5884d3e5a67d96f", "score": "0.47354633", "text": "ServiceInformation getServiceInformation();", "title": "" } ]
82e01410fe330ea36c9445c0883c4f62
Test of clone method, of class CriterionPrototype.
[ { "docid": "ef378d285c46270e0694b30b4d84570e", "score": "0.727055", "text": "@Test\n public void testClone() {\n assertEquals(three.getName(), prototype.clone(\"namethree\").getName());\n assertEquals(two.getName(), prototype.clone(\"nametwo\").getName());\n assertEquals(one.getName(), prototype.clone(\"nameone\").getName());\n \n }", "title": "" } ]
[ { "docid": "4b0ba4d4fddf53590784b950c3173a47", "score": "0.7370526", "text": "public abstract AbstractPrototype clone() throws CloneNotSupportedException;", "title": "" }, { "docid": "062ed8f32d7415fb64dee13c6f8bc972", "score": "0.7119092", "text": "TestClone makecloneobj() {\r\n\t\ttry {\r\n\r\n\t\t\t// call clone in Object.\r\n\t\t\treturn (TestClone) super.clone();\r\n\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\tSystem.out.println(\"Cloning not allowed.\");\r\n\t\t\treturn this;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "55b82f3be8605c63dbe4abcfb6ff61e0", "score": "0.7082363", "text": "Object clone()throws CloneNotSupportedException;", "title": "" }, { "docid": "efc9b772c9cb9db81b1e56952b99b2e2", "score": "0.7003687", "text": "@Test\n\tpublic void testClone()\n\t{\n\t\tSystem.out.println( \"clone\" );\n\t\tfinal ValueObjectForIntervalTable instance = new ValueObjectForIntervalTableImpl();\n\t\tfinal ValueObjectForIntervalTable clone = instance.clone();\n\t\tassertEquals( instance.getName(), clone.getName() );\n\t}", "title": "" }, { "docid": "c1c172d7564f0abc92b36f9bcd28eccd", "score": "0.6919033", "text": "public java.lang.Object clone() { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "f2aeb08cbedca0725b0554704a03b4ed", "score": "0.68970776", "text": "Object clone() throws CloneNotSupportedException;", "title": "" }, { "docid": "f2aeb08cbedca0725b0554704a03b4ed", "score": "0.68970776", "text": "Object clone() throws CloneNotSupportedException;", "title": "" }, { "docid": "5d25ce48a913f97f7ff193851b269b3c", "score": "0.6761443", "text": "public Object clone() throws CloneNotSupportedException {\n/* 265 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "465f9d495429d2db3f53bd96d221d863", "score": "0.67343175", "text": "public abstract Object clone();", "title": "" }, { "docid": "465f9d495429d2db3f53bd96d221d863", "score": "0.67343175", "text": "public abstract Object clone();", "title": "" }, { "docid": "465f9d495429d2db3f53bd96d221d863", "score": "0.67343175", "text": "public abstract Object clone();", "title": "" }, { "docid": "b880238a26943abb91529c465be8b76a", "score": "0.6713345", "text": "@Test\r\n public void testCloneAndEquals() {\r\n Group other = this.objectToTest.clone();\r\n Assertions.assertEquals(other, this.objectToTest);\r\n }", "title": "" }, { "docid": "fb0ee5e1d49baffc42c02e9c1dec12b3", "score": "0.67104906", "text": "public Object clone ()\r\n {\n }", "title": "" }, { "docid": "ec1628b7ea7d3a2060eb24830a3402f0", "score": "0.6705009", "text": "public final void mClone() throws RecognitionException {\n try {\n int _type = Clone;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/sidharth/Documents/code/phpparser/grammar/Php.g:88:7: ( 'clone' )\n // /Users/sidharth/Documents/code/phpparser/grammar/Php.g:88:9: 'clone'\n {\n match(\"clone\"); if (state.failed) return ;\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "ca25278e4f1cae3e4ec3f55005d58f63", "score": "0.6683247", "text": "@Test\n public void testClone(){\n turn.getTurnHelp().addToHarborDisplay(blueShipCard);\n turn.addMove(player2, blueShipCard);\n turn.setActivePlayer(activePlayer);\n turn.setActingPlayer(player2);\n turn.setPlayerList(playerList);\n match.setPlayerList(playerList);\n clonedTurn = turn.clone(match);\n clonedTurn.setPlayerList(playerList);\n clonedTurn.setActivePlayer(activePlayer);\n\n testClonedTurn(turn, clonedTurn);\n testClonedTurn(turn.getTurnHelp().getTurn(),clonedTurn.getTurnHelp().getTurn());\n\n for(int i=0; i<clonedTurn.getTurnHelp().getColorsOfShips().length; i++) {\n int turnColor = turn.getTurnHelp().getColorsOfShips()[i];\n int clonedTurnColor = clonedTurn.getTurnHelp().getColorsOfShips()[i];\n Assert.assertEquals(turnColor, clonedTurnColor);\n }\n }", "title": "" }, { "docid": "304419c6955f47b949d74805daf868d0", "score": "0.6622684", "text": "@SuppressWarnings(\"resource\")\n @Test\n public void testClone() {\n try {\n PolicyGroupListOptions policygrouplistoptions1 = new PolicyGroupListOptions(Integer.valueOf(-78),\n Long.valueOf(42),\n Order.getDefault(),\n \"c7115cf9-bcb1-4052-8d94-756b560f1697\",\n null, null);\n PolicyGroupListOptions policygrouplistoptions2 = policygrouplistoptions1.clone();\n assertNotNull(policygrouplistoptions1);\n assertNotNull(policygrouplistoptions2);\n assertNotSame(policygrouplistoptions2, policygrouplistoptions1);\n assertEquals(policygrouplistoptions2, policygrouplistoptions1);\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }", "title": "" }, { "docid": "5d9f0b02ced7672c57ae2ed161872de2", "score": "0.66211325", "text": "public void testClone() {\n PredictedLocation pl1 = new PredictedLocation(1, \"ABCD\", \"A\", 0.87);\n PredictedLocation pl2 = (PredictedLocation) pl1.clone();\n\n Assert.assertEquals(pl1, pl2);\n Assert.assertEquals(pl2, pl1);\n\n pl2.setLocation(5);\n\n Assert.assertTrue(!pl1.equals(pl2));\n Assert.assertTrue(!pl2.equals(pl1));\n\n pl1.setLocation(5);\n Assert.assertEquals(pl1, pl2);\n Assert.assertEquals(pl2, pl1);\n }", "title": "" }, { "docid": "7fab9c01acde9556a441cb2ee1ca9778", "score": "0.6613101", "text": "public Object clone() {\n/* 246 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "fb62d8cb659d504cbb25c3bc901eae6d", "score": "0.65813506", "text": "protected void beforeClone() {\n }", "title": "" }, { "docid": "aecc5003851cb12b7e68297c880116ae", "score": "0.65423506", "text": "Object clone();", "title": "" }, { "docid": "aecc5003851cb12b7e68297c880116ae", "score": "0.65423506", "text": "Object clone();", "title": "" }, { "docid": "aecc5003851cb12b7e68297c880116ae", "score": "0.65423506", "text": "Object clone();", "title": "" }, { "docid": "aecc5003851cb12b7e68297c880116ae", "score": "0.65423506", "text": "Object clone();", "title": "" }, { "docid": "aecc5003851cb12b7e68297c880116ae", "score": "0.65423506", "text": "Object clone();", "title": "" }, { "docid": "e6144246472215ba0f19eafc060a3552", "score": "0.65377665", "text": "public boolean isClone();", "title": "" }, { "docid": "e72d6745bad98b041cc9efe1aab71c04", "score": "0.65206206", "text": "public Object clone();", "title": "" }, { "docid": "e72d6745bad98b041cc9efe1aab71c04", "score": "0.65206206", "text": "public Object clone();", "title": "" }, { "docid": "e72d6745bad98b041cc9efe1aab71c04", "score": "0.65206206", "text": "public Object clone();", "title": "" }, { "docid": "e72d6745bad98b041cc9efe1aab71c04", "score": "0.65206206", "text": "public Object clone();", "title": "" }, { "docid": "e72d6745bad98b041cc9efe1aab71c04", "score": "0.65206206", "text": "public Object clone();", "title": "" }, { "docid": "e72d6745bad98b041cc9efe1aab71c04", "score": "0.65206206", "text": "public Object clone();", "title": "" }, { "docid": "e3af74a7427399a66249f0f924cb90c8", "score": "0.6501067", "text": "@Test\n public void cloneCard() throws CloneNotSupportedException {\n ToolCard testCloneToolCard = testToolCard.clone();\n\n Assert.assertSame(testToolCard.getCardName(), testCloneToolCard.getCardName());\n Assert.assertEquals(testToolCard.getNumMarkers(), testCloneToolCard.getNumMarkers());\n Assert.assertEquals(testToolCard.getPrice(), testCloneToolCard.getPrice());\n Assert.assertSame(testToolCard.getCardDescription(), testCloneToolCard.getCardDescription());\n Assert.assertEquals(testToolCard.getCardNumber(),testCloneToolCard.getCardNumber());\n Assert.assertSame(testToolCard.getColor(), testCloneToolCard.getColor());\n }", "title": "" }, { "docid": "db2fd6c5cbeedb0a2109715c9c6a5b6f", "score": "0.64806277", "text": "@Test\n public void testClone() {\n Sentence s2 = s.clone();\n assertEquals(s2.toString(), s2.toString());\n }", "title": "" }, { "docid": "2e38c6ed450a5d238035fcbc279368cb", "score": "0.6476913", "text": "@Test(dataProvider = \"copyData\")\n public void copyShouldReturnCopy(RankableObjectWithFields original) {\n // given\n\n // when\n Rankable copy = original.copy();\n\n // then\n assertThat(copy.getObject()).isEqualTo(original.getObject());\n assertThat(copy.getCount()).isEqualTo(original.getCount());\n }", "title": "" }, { "docid": "dc9d168517b6901471a1eb1949861730", "score": "0.64748764", "text": "public interface Prototype {\n public Object clone();\n}", "title": "" }, { "docid": "c619649a10e421f743a54cd988ce2ce4", "score": "0.6454879", "text": "@Test\n public void testShallowCopy() {\n System.out.println(\"shallowCopy\");\n PhenotypeData instance = phenotypeData;\n PhenotypeData expResult = phenotypeData;\n PhenotypeData result = instance.shallowCopy();\n assertNotSame(expResult.hashCode(), result.hashCode());\n }", "title": "" }, { "docid": "5c3bb31f2a73a6cd27aba3678ee331be", "score": "0.64147", "text": "abstract public AbstractObject clone();", "title": "" }, { "docid": "18a1ae5170e6c6eaca02d037da2d65cd", "score": "0.64094836", "text": "@TestMethod(\"testClone\")\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\n\t\tMolecularFormulaRange clone = new MolecularFormulaRange();\n\t\tIterator<IIsotope> iterIso = this.isotopes().iterator();\n\t\twhile(iterIso.hasNext()){\n\t\t\tIIsotope isotope = iterIso.next();\n\t\t\tclone.addIsotope((IIsotope) isotope.clone(),getIsotopeCountMin(isotope),getIsotopeCountMax(isotope));\n\t\t}\n\t\treturn clone;\n\t}", "title": "" }, { "docid": "7bc293f4f5a0190338c5172218256ada", "score": "0.63641745", "text": "public void testCloning() {\n EmptyBlock b1 = new EmptyBlock(1.0, 2.0);\n EmptyBlock b2 = null;\n try {\n b2 = (EmptyBlock) b1.clone();\n } catch (CloneNotSupportedException e) {\n fail(e.toString());\n }\n }", "title": "" }, { "docid": "7be3a1dcf90eac5be416a3ff91457949", "score": "0.633659", "text": "private void cloning() {\n\t\t\n\t\tArrays.sort(population);\n\t\tint index = 0;\n\t\tfor (int rank = 1; rank <= population.length; rank++) {\n\t\t\t\n\t\t\tint copies = (int)((paramβ*paramN)/((double) rank) + 0.5);\n\t\t\tfor (int copy = 0; copy < copies; copy++) {\n\t\t\t\tclonedPopulation[index] = (Antibody) population[rank-1].clone();\n\t\t\t\tclonedPopulationRanks[index] = rank;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "4a485c9cc73a37787aeca587c63897c2", "score": "0.63214546", "text": "@Override\n public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "title": "" }, { "docid": "a1a3443982158fa7b99a779b1cbc26e9", "score": "0.631705", "text": "@SuppressWarnings(\"resource\")\n @Test\n public void testClone() {\n try {\n FirmwareImage firmwareimage1 = new FirmwareImage(new Date(1574704665692L),\n \"0ff55cac-bcd8-4758-ae41-e65813cfed78\", 110,\n \"9480fa4d-e9b1-44f0-b88a-e4a16a4c764a\",\n \"d6bb1473-2289-4c22-a4f3-71968c4d9938\",\n \"a6d3850f-008b-402f-b0ac-c2ef937163cd\",\n \"aa244565-5868-405f-87be-79cd597fa016\",\n new Date(1574704669900L));\n FirmwareImage firmwareimage2 = firmwareimage1.clone();\n assertNotNull(firmwareimage1);\n assertNotNull(firmwareimage2);\n assertNotSame(firmwareimage2, firmwareimage1);\n assertEquals(firmwareimage2, firmwareimage1);\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }", "title": "" }, { "docid": "7a8e1b6f4598c0cb4b255e36b0e1a0ee", "score": "0.6311372", "text": "@Override\r\n public final Object clone() throws CloneNotSupportedException {\r\n throw new CloneNotSupportedException();\r\n }", "title": "" }, { "docid": "6f2d4c45241d6894bf54e966788ebcd0", "score": "0.6309301", "text": "public final zzji clone() {\n throw new UnsupportedOperationException(\"clone() should be implemented by subclasses.\");\n }", "title": "" }, { "docid": "dcc3aded9800ea45d4d2e085de78a26f", "score": "0.6308313", "text": "public static void main(String[] args)\n {\n \n\n CloneTest c1 = new CloneTest(10);\n CloneTest c2;\n \n c2 = (CloneTest) c1.clone();\n \n System.out.println(c1.getData());\n System.out.println(c2.getData());\n \n System.out.println(c1);\n System.out.println(c2);\n \n if(c1.equals(c2))\n {\n System.out.println(\"같다\"); // 출력안됨\n }\n \n \n }", "title": "" }, { "docid": "b9c1b7ff0d76cdb776bfdba2ad16def8", "score": "0.6293818", "text": "public Object clone()\n {\n\n try\n {\n \t\treturn super.clone();\n\t}\n catch (CloneNotSupportedException e)\n {\n \t\t// This should never happen because this class implements Cloneable\n throw new InternalError();\n }\n }", "title": "" }, { "docid": "18087175071fb273758400d3139f8a91", "score": "0.62932044", "text": "@Override\r\n\tpublic Object clone() {\r\n\t\t// TODO\r\n\t\tthrow new RuntimeException(\"CompositeFilter.clone() not implemented yet\");\r\n\t}", "title": "" }, { "docid": "6284326769b2ec31319b50fb78c42520", "score": "0.6281219", "text": "public java.lang.Object clone() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: gov.nist.core.GenericObjectList.clone():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.core.GenericObjectList.clone():java.lang.Object\");\n }", "title": "" }, { "docid": "b26be2acb32499ea87716cfcc07a4b93", "score": "0.62626207", "text": "@TestTargetNew(\n level = TestLevel.COMPLETE,\n notes = \"\",\n method = \"clone\",\n args = {}\n )\n public final void testClone() throws InvalidAlgorithmParameterException {\n Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet();\n if (taSet == null) {\n fail(getName()\n + \": not performed (could not create test TrustAnchor set)\");\n }\n \n PKIXParameters cpp = new PKIXParameters(taSet);\n PKIXParameters cppc = (PKIXParameters) cpp.clone();\n \n assertEquals(cpp.getPolicyQualifiersRejected(), cppc\n .getPolicyQualifiersRejected());\n assertEquals(cpp.getCertPathCheckers(), cppc.getCertPathCheckers());\n assertEquals(cpp.getCertStores(), cppc.getCertStores());\n assertEquals(cpp.getDate(), cppc.getDate());\n assertEquals(cpp.getInitialPolicies(), cppc.getInitialPolicies());\n assertEquals(cpp.getSigProvider(), cppc.getSigProvider());\n assertEquals(cpp.getTargetCertConstraints(), cppc\n .getTargetCertConstraints());\n assertEquals(cpp.getTrustAnchors(), cppc.getTrustAnchors());\n \n assertEquals(cpp.isAnyPolicyInhibited(), cppc.isAnyPolicyInhibited());\n assertEquals(cpp.isExplicitPolicyRequired(), cppc\n .isExplicitPolicyRequired());\n assertEquals(cpp.isPolicyMappingInhibited(), cppc\n .isPolicyMappingInhibited());\n assertEquals(cpp.isRevocationEnabled(), cppc.isRevocationEnabled());\n \n cpp.setDate(Calendar.getInstance().getTime());\n cpp.setPolicyQualifiersRejected(!cppc.getPolicyQualifiersRejected());\n assertFalse(cpp.getDate().equals(cppc.getDate()));\n assertFalse(cpp.getPolicyQualifiersRejected() == cppc\n .getPolicyQualifiersRejected());\n \n cppc.setExplicitPolicyRequired(!cpp.isExplicitPolicyRequired());\n cppc.setRevocationEnabled(!cpp.isRevocationEnabled());\n \n assertFalse(cpp.isExplicitPolicyRequired() == cppc\n .isExplicitPolicyRequired());\n assertFalse(cpp.isRevocationEnabled() == cppc.isRevocationEnabled());\n \n PKIXParameters cpp1 = null;\n try {\n cpp1.clone();\n } catch (NullPointerException e) {\n // expected\n }\n }", "title": "" }, { "docid": "09f90f98b030357b50bb971f1f913b1d", "score": "0.62531495", "text": "@Override\n protected Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "title": "" }, { "docid": "e0f66dac7252d4fe98d76d73c0b3e9af", "score": "0.623605", "text": "public Object clone()throws CloneNotSupportedException{ \n\t\t\treturn (CloneableInterface)super.clone(); \n\t\t }", "title": "" }, { "docid": "e5f005f560a0656742366c4db724df73", "score": "0.6230538", "text": "public static void main(String[] args) {\r\n\t\tSpecificPrototype s=new SpecificPrototype(\"1\");\r\n\t\tSystem.out.println(\"id=\"+s.getId());\r\n\t\tSpecificPrototype sClone=(SpecificPrototype)s.clone();\r\n\t\tSystem.out.println(\"idClone=\"+sClone.getId());\r\n\t\tSystem.out.println(\"s==sClone:\"+String.valueOf(s==sClone));\r\n\t}", "title": "" }, { "docid": "3d36cee316e0fc707cb30498268629a9", "score": "0.6219758", "text": "public Object clone(){\n try{\n return super.clone();\n }catch (CloneNotSupportedException e){\n return null;\n }\n }", "title": "" }, { "docid": "e2a9d378728a3a213e0daf2378057fab", "score": "0.6193516", "text": "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException(\"Clone is not allowed for this object!\");\n\t}", "title": "" }, { "docid": "01ed9f86e52925138b4bae701d8c900e", "score": "0.6187976", "text": "public Object clone()\n {\n Object o = null;\n try\n {\n o = super.clone();\n }\n catch (CloneNotSupportedException e)\n {\n e.printStackTrace();\n }\n return o;\n}", "title": "" }, { "docid": "01ed9f86e52925138b4bae701d8c900e", "score": "0.6187976", "text": "public Object clone()\n {\n Object o = null;\n try\n {\n o = super.clone();\n }\n catch (CloneNotSupportedException e)\n {\n e.printStackTrace();\n }\n return o;\n}", "title": "" }, { "docid": "d0fd1d3e02743757212d77d206693ad4", "score": "0.6183675", "text": "public final Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "title": "" }, { "docid": "6ba0e40960e1d012f70a44539e3c51a2", "score": "0.613556", "text": "@Override\n public SearchBasedAgentState clone() {\n int[][] newWorld = new int[9][14];\n\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 14; col++) {\n newWorld[row][col] = bosque[row][col];\n }\n }\n\n int[] newPosition = new int[2];\n newPosition[0] = posicionActual[0];\n newPosition[1] = posicionActual[1];\n\n \tSystem.out.print(\"CLONE ----- \\n\");\n \tfor(int[] c :casillerosRecorridos) {\n \t\tSystem.out.print(c[0]+\" \"+c[1]+\" - \");\n \t}\n \tSystem.out.print(\"\\n\");\n\n CaperucitaAgentState newState = new CaperucitaAgentState(newWorld,\n newPosition[0], newPosition[1],this.cantidadDulces, this.vidas,this.casillerosRecorridos);\n newState.setPosicionLobo(posicionLobo);\n \n return newState;\n }", "title": "" }, { "docid": "adf8eff67074c1d58f2db62b23a74291", "score": "0.6131604", "text": "public abstract Persona clone();", "title": "" }, { "docid": "fa838f5ee02ed228c967b0cf3f40d22e", "score": "0.61223406", "text": "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException(\"Can't clone a this object\");\n\t}", "title": "" }, { "docid": "1298db69ee4a2de40cd45d2a0d423331", "score": "0.609809", "text": "public final void testClone()\r\n {\r\n String url = \"http://www.displaytag.org/displaytag/index.jsp?param1=1&param2=2#thisanchor\";\r\n Href href = new DefaultHref(url);\r\n Href clone = (Href) href.clone();\r\n assertEquals(href, clone);\r\n\r\n clone.addParameter(\"onlyinclone\", \"1\");\r\n assertFalse(href.equals(clone));\r\n }", "title": "" }, { "docid": "857ab89c450829da77f6238b04ac33c6", "score": "0.60930735", "text": "protected Object clone() throws CloneNotSupportedException {\n\t\t// no cloning for now\n\t\tthrow new CloneNotSupportedException();\n\t}", "title": "" }, { "docid": "cb43c9d6455df2d82a24f6a3123d03ed", "score": "0.6071236", "text": "public Object clone(){\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "title": "" }, { "docid": "7046477c11f3e89e791e1f5db7e5013e", "score": "0.6047071", "text": "public @Override Object clone() { return DeepCopy.copy(this); }", "title": "" }, { "docid": "dd85bd1b9142e410dd256b272b97143d", "score": "0.6023792", "text": "@Override\n public Population clone() {\n try {\n Population result = (Population) super.clone();\n result.individuals = CollectionUtils.deepCopy(individuals);\n return result;\n } catch (Exception e) {\n ConsoleLogger.logThrowable(\"Unexpected error occured:\", e);\n throw new RuntimeException(\"failed to clone\");\n }\n }", "title": "" }, { "docid": "e01a1e2fc89bbe577bc98cf79bdd7c72", "score": "0.60226536", "text": "public final Object clone() throws java.lang.CloneNotSupportedException {\n throw new java.lang.CloneNotSupportedException();\n }", "title": "" }, { "docid": "f50d597917d380f71b2854f59f3f9c5e", "score": "0.60172576", "text": "Drs clone();", "title": "" }, { "docid": "485fe91dc702c180636d9fc738d42880", "score": "0.60142666", "text": "public Object clone ()\n\t{\n\t\tIndividual individualClone = null;\n\t\t\n\t\ttry \n\t\t{\n\t\t\tindividualClone = ( Individual )super.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) \n\t\t{\n // This should never happen\n throw new InternalError(e.toString());\n\t\t}\n\t\t\n\t\t// 1. clone MemoryModule\n\t\tif ( this._memoryModule != null )\n\t\t\tindividualClone._memoryModule = (MemoryModule)this._memoryModule.clone(); \n\n\t\t//if ( this._parameterSet != null )\n\t\t//\tindividualClone._parameterSet = (ParameterSet)this._parameterSet.clone(); \n\t\t\n\t\t// 2. clone operators\n\t\tindividualClone._variationOperatorList = new ArrayList();\n\t\tfor ( int i = 0 ; i != this._variationOperatorList.size() ; i++ )\n\t\t\tindividualClone._variationOperatorList.add(((VariationOperator)this._variationOperatorList.get(i)).clone());\n\t\t\n\t\t// 3. clone elements\n\t\tindividualClone._elementList = new ArrayList();\n\t\tfor ( int i = 0 ; i != this._elementList.size() ; i++ )\n\t\t\tindividualClone._elementList.add(((Element)this._elementList.get(i)).clone());\n\t\t\n\t\treturn (individualClone);\n\t}", "title": "" }, { "docid": "791a8e0e1f89d52ddc37c53ad324ef81", "score": "0.59845114", "text": "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "title": "" }, { "docid": "791a8e0e1f89d52ddc37c53ad324ef81", "score": "0.59845114", "text": "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "title": "" }, { "docid": "791a8e0e1f89d52ddc37c53ad324ef81", "score": "0.59845114", "text": "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "title": "" }, { "docid": "791a8e0e1f89d52ddc37c53ad324ef81", "score": "0.59845114", "text": "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "title": "" }, { "docid": "eec0ed4ebce37f54f0390fecada1f65a", "score": "0.59704465", "text": "@Override\n\tpublic Rule clone() throws CloneNotSupportedException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f5389404c3e3b03a6d15e664116a5525", "score": "0.595323", "text": "@Override\n\tpublic Object clone() {\n\t\ttry{\n\t\t\treturn super.clone();\n\t\t}catch(CloneNotSupportedException e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "fc7ca3ea30988bbea024272a5b728732", "score": "0.5951374", "text": "@Override\n public Object clone() throws CloneNotSupportedException {\n return super.clone();\n }", "title": "" }, { "docid": "e4eb3a89660e6a68a830e5fd8de4b015", "score": "0.5946528", "text": "public Table clone();", "title": "" }, { "docid": "9e048b5d2ec76d49eb4e653e0e2c5adc", "score": "0.5946286", "text": "@Override\n public ConquestGame clone() {\n \n return new ConquestGame(config, map.clone(), playerNames, round, turn, phase,\n \t\t new ArrayList<Region>(pickableRegions));\n }", "title": "" }, { "docid": "ea7049b764ff66a60ef7edec7649f1a1", "score": "0.59445435", "text": "@Override\n public Object clone() throws CloneNotSupportedException\n {\n return super.clone();\n }", "title": "" }, { "docid": "29bf0cc25fc7610bb56c4c2033b23ded", "score": "0.5942964", "text": "public Object clone(){\n\treturn super.clone();\n }", "title": "" }, { "docid": "a811baa2b010208d4e356a487bcedf40", "score": "0.5935985", "text": "public Object clone() throws CloneNotSupportedException {\n return super.clone();\n }", "title": "" }, { "docid": "dbd7eb8713aa54d7093d0b395205a6d6", "score": "0.5935269", "text": "public E clone();", "title": "" }, { "docid": "ffe3e8215cda9d3d9dd58c1010749484", "score": "0.59316653", "text": "public abstract EvObject cloneEvObject();", "title": "" }, { "docid": "86cdcd327980a49d5329177678303afd", "score": "0.5925123", "text": "@Override\n protected Object clone() throws CloneNotSupportedException {\n return super.clone();\n }", "title": "" }, { "docid": "d8b10eae3ee3a861104ddf89daeded63", "score": "0.59249884", "text": "@Override\n\tpublic Classification cloned() {\n\t\treturn new Classification(task.cloned(), machineCount, jobCount, deadlines, shopClass);\n\t}", "title": "" }, { "docid": "5500dc6c6b9cbe2900bb40befb8fb96b", "score": "0.5923402", "text": "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\n\t\t\n\t\treturn super.clone();\n\t}", "title": "" }, { "docid": "2ca70b245ac193491ecd0e1e631bdddc", "score": "0.5920269", "text": "public void testCloning() throws CloneNotSupportedException {\n LegendItemCollection c1 = new LegendItemCollection();\n LegendItem item1 = new LegendItem(\"Item 1\");\n c1.add(item1);\n LegendItemCollection c2 = (LegendItemCollection) c1.clone();\n Rectangle2D item1Shape = (Rectangle2D) item1.getShape();\n item1Shape.setRect(1.0, 2.0, 3.0, 4.0);\n }", "title": "" }, { "docid": "f71ddedf116c1cf5590eed18475ae3a6", "score": "0.59187865", "text": "public interface Cloneable<T> {\n T Clone();\n}", "title": "" }, { "docid": "0dfcc5046992fd238e343cd7a9e519e2", "score": "0.5916799", "text": "public Object clone() {\r\n try {\r\n return super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n // will never get here\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "84c562c749a62146c5eaf16b12755c6e", "score": "0.591055", "text": "public void testClonedTurn(Turn turn, Turn clonedTurn){\n\n checkCardArrayContent(turn.getHarbourDisplay(),clonedTurn.getHarbourDisplay());\n for(int i=0; i < playerList.size();i++){\n checkIfPlayerContentIsEqual(turn.getPlayerList().get(i),clonedTurn.getPlayerList().get(i));\n }\n ArrayList<Move> clonedMoves = clonedTurn.getMoves();\n testMovesEqual(clonedMoves, this.turn.getMoves());\n\n for(int i=0; i< undoHistory.size(); i++) {\n checkIfPlayerContentIsEqual( turn.getUndoHistory().pop().getPlayer(), clonedTurn.getUndoHistory().pop().getPlayer());\n Assert.assertEquals(turn.getUndoHistory().pop().getPlayerIsActive(), clonedTurn.getUndoHistory().pop().getPlayerIsActive());\n }\n checkIfPlayerContentIsEqual(turn.getActivePlayer(), clonedTurn.getActivePlayer());\n\n Assert.assertEquals(this.turn.getIsPhaseDiscover(), clonedTurn.getIsPhaseDiscover());\n Assert.assertEquals(this.turn.getMatch(),this.clonedTurn.getMatch());\n }", "title": "" }, { "docid": "7ace4861b102748f2eab3694364808be", "score": "0.59051573", "text": "public Instrument clone();", "title": "" }, { "docid": "861d0ab63aa6787634bc251e30c7fd45", "score": "0.5900646", "text": "@Override\n //made public and changed the return type\n public GameUnit clone() throws CloneNotSupportedException {\n\n GameUnit unit = (GameUnit) super.clone();\n\n //whenever we are cloning an ibject we want to make sure that we reset its all values to initial stage\n unit.initialize();\n return unit;\n }", "title": "" }, { "docid": "9a51ec3fc16d6028c91bae5f753752fb", "score": "0.58976847", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic MutableNumber<N> clone()\n\t{\n\t\ttry\n\t\t{\n\t\t\tMutableNumber<N> copy = (MutableNumber<N>) super.clone();\n\t\t\tcopy.number = this.number;\n\t\t\treturn copy;\n\t\t}\n\t\tcatch(CloneNotSupportedException caught)\n\t\t{\n\t\t\tLOGGER.error(\"CloneNotSupportedException caught but not expected!\", caught);\n\t\t\tthrow new UnexpectedDannError(\"CloneNotSupportedException caught but not expected\", caught);\n\t\t}\n\t}", "title": "" }, { "docid": "b9358dc5f14f078e7e59f0c80487d5fb", "score": "0.5894187", "text": "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "title": "" }, { "docid": "b9358dc5f14f078e7e59f0c80487d5fb", "score": "0.5894187", "text": "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "title": "" }, { "docid": "b9358dc5f14f078e7e59f0c80487d5fb", "score": "0.5894187", "text": "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "title": "" }, { "docid": "b9358dc5f14f078e7e59f0c80487d5fb", "score": "0.5894187", "text": "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "title": "" }, { "docid": "3ce8366c3de32f388d488b7ad1db49c4", "score": "0.58940315", "text": "@Override\n\t\tprotected Object clone() throws CloneNotSupportedException {\n\t\t\treturn super.clone();\n\t\t}", "title": "" }, { "docid": "9a84a555465b9906da5e4b4b5be71c85", "score": "0.5892747", "text": "public Object clone() {\n return new InequalitySplitter(index, threshold, desc);\n }", "title": "" }, { "docid": "6b9aa2cd5ee2843a91c3759903593008", "score": "0.5888832", "text": "public Object clone()\r\n { \r\n SB_Behavior copy = null;\r\n \r\n try {\r\n ByteArrayOutputStream out = new ByteArrayOutputStream();\r\n ObjectOutputStream sOut = new ObjectOutputStream(out);\r\n this.writeExternal(sOut);\r\n sOut.flush();\r\n ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());\r\n ObjectInputStream sIn = new ObjectInputStream(in);\r\n Behavior copyModel = new Behavior(this.getBehaviorModel());\r\n copy = new SB_Behavior(copyModel);\r\n copy.readExternal(sIn);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.err.println(\"Exception while duplicating behavior\");\r\n }\r\n \r\n // update polys to point to cloned behavior\r\n //for (int i=0; i<copy.getPolys().size(); ++i)\r\n // ((SB_Polymorphism)(copy.getPolys().get(i))).setParent(copy);\r\n return copy;\r\n }", "title": "" }, { "docid": "f0cbf14bd321fb5e79e322c2ce7d8db0", "score": "0.588457", "text": "public Object clone(mathbuild.Environment env);", "title": "" } ]
518bf5364cda3c6202a1a392996f93d1
Inflate the menu; this adds items to the action bar if it is present.
[ { "docid": "bb66b464065c22cd72c2f1e8dbd36822", "score": "0.0", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" } ]
[ { "docid": "b470b12158e9a37414c1897a8fc7b04e", "score": "0.7134913", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater mif = getMenuInflater();\n\t\tmif.inflate(R.menu.main_activity_action, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "151647a1c7c796d4b4fcea37328b2b10", "score": "0.7131035", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "68a1977a92e0b8e933170762c8315622", "score": "0.7092974", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.activity_main_actions, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t\t// getMenuInflater().inflate(R.menu.main, menu);\n\t\t// return true;\n\t}", "title": "" }, { "docid": "9813d71a4b724b9d132f23a2cb80322c", "score": "0.70815885", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_activity_actions, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "ae6770bef72e453795f043f65b45fc1b", "score": "0.701645", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.add_book_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "d83eee3c4e2b466a94746cdd441e72a2", "score": "0.6992384", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_actions, menu);\n return super.onCreateOptionsMenu(menu);\n\n }", "title": "" }, { "docid": "6bc41924693d7c39db4a2483c17f988e", "score": "0.6960132", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.base_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "16bfeccedb091017e43ebbb179fc1754", "score": "0.69322574", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6919955", "text": "@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 }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6919955", "text": "@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 }", "title": "" }, { "docid": "47d16fa25d516c847da78250e2c606c7", "score": "0.6919955", "text": "@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 }", "title": "" }, { "docid": "19c1490e7b539ea97e0c879a1dd8ade3", "score": "0.6892823", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator=new MenuInflater(this);\n\t\tinflator.inflate(R.menu.main,menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "f304fe6295a960f8f167014d279e4a2a", "score": "0.68793684", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater menuInflater = getMenuInflater();\n\t\tmenuInflater.inflate(R.menu.action_main, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "4b695542930b2e201fe9008a5ab09b12", "score": "0.6878923", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "cea85d9c926cce277c147f401352f100", "score": "0.68743634", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_activity, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "de5e53984a38ae9a6df1e8d74ad8d5ac", "score": "0.6873904", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n android.util.Log.d(this.getClass().getSimpleName(), \"called onCreateOptionsMenu()\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7c8d124753fb8bcbcf2dfea69b43451c", "score": "0.6871697", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\r\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\r\n\t}", "title": "" }, { "docid": "26421ae3b50846848b118373825d2e24", "score": "0.6855595", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.catalog_screen, menu);\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "adeb821bed22cdc354bbd21fc992fa61", "score": "0.685344", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\r\n MenuInflater blowup=getMenuInflater();\r\n blowup.inflate(R.menu.menu, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "fd295b9c2381cce6e1ec813642bc7df4", "score": "0.68316025", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.activity_item, menu); \r\n return true; \r\n }", "title": "" }, { "docid": "6aa78d05071eea3d0c06c1663d8d86b3", "score": "0.6820566", "text": "@Override\n\tpublic boolean onCreateOptionsMenu( Menu menu )\n\t{\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate( R.menu.activity_main, menu );\n\t\treturn super.onCreateOptionsMenu( menu );\n\t}", "title": "" }, { "docid": "a6ba221423784f86e4efcf17cdf92606", "score": "0.68164414", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "28381dc71b823b004e96496b41d248d8", "score": "0.6814066", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.alinone_main_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "eb2ad33d9fba8f1215f676ff5d25950b", "score": "0.6792355", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.main, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "eb2ad33d9fba8f1215f676ff5d25950b", "score": "0.6792355", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.main, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "title": "" }, { "docid": "43e2f63c7b405f49108e78b085837102", "score": "0.6791159", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "6bf16c21c399246b1a590868abc8a071", "score": "0.6784329", "text": "@Override\npublic boolean onCreateOptionsMenu(Menu menu)\n{\n\tMenuInflater inflater = getMenuInflater();\n\tinflater.inflate(R.menu.menu, menu);\n\treturn super.onCreateOptionsMenu(menu);\n}", "title": "" }, { "docid": "9ce940b0b5cd673acf0cd5bbd2550f56", "score": "0.6771538", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.introduce, menu);\r\n MenuInflater inflater2 = getMenuInflater(); //对action bar的声明\r\n inflater2.inflate(R.menu.action, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "b114ff862859f241ad1a077501569b50", "score": "0.67621326", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_admin_actionbar, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "743dbf1881079a462ee08bbbb7597e41", "score": "0.6761242", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t/*\n\t\t * \n\t\t * The getMenuInflater() takes the xml definition of the menu\n\t\t * (referenced in R.menu) and use it to configure the UI to create an\n\t\t * options menu.\n\t\t * \n\t\t * Note, the Android lingo for the action of taking an xml file ref and\n\t\t * turning into a UI widget is called 'inflate'\n\t\t */\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d40521005a4c9f3b839eaefad5019b2f", "score": "0.6754184", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = this.getMenuInflater();\n\t\t\n\t\t//Inflar um XML\n\t\tinflater.inflate(R.menu.unidadesaude, menu);\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3f46c0bff583686d3c321ec36830cc67", "score": "0.6752012", "text": "public boolean onCreateOptionsMenu(android.view.Menu menu) {\n\tsuper.onCreateOptionsMenu(menu);\n\tMenuInflater blowup=getMenuInflater();\n\tblowup.inflate(R.menu.main, menu);\n\treturn true;\n}", "title": "" }, { "docid": "9a24788111ecb76a26193ca1fa0299ec", "score": "0.67371094", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// Inflate from resource the file menu.xml, create the menu\n\t\t// and attached the menu item to it ...\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "0a77c1a8b906bb037c793de10adf77f5", "score": "0.6734677", "text": "@Override\r\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\t\r\n\t\tinflater.inflate(R.menu.task_menu, menu);\r\n\t\r\n\t}", "title": "" }, { "docid": "64ef882891be72cc74332317e08860be", "score": "0.6734098", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\t\n \tinflater.inflate(R.menu.main_menu, menu);\n return true;\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67270494", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7beece16a3151963d6658b28e9b28066", "score": "0.67270494", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "5a5317ec4b46edf2e394dffb1f35e6d0", "score": "0.67254555", "text": "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.action_bar_tasks, menu);\n\t\tMenuItem sortItem = menu.findItem(R.id.action_sort_by);\n\t\tsortItem.setIcon(\n\t\t\t\tnew IconDrawable(getActivity(), IconValue.fa_sort_amount_desc)\n\t\t\t\t.colorRes(R.color.white)\n\t\t\t\t.actionBarSize());\n\t\tmenu.findItem(R.id.action_new).setIcon(\n \t\t\t new IconDrawable(getActivity(), IconValue.fa_plus)\n \t\t\t .colorRes(R.color.white)\n \t\t\t .actionBarSize());\n\t}", "title": "" }, { "docid": "526e8805b07c6003103b8e632076aab0", "score": "0.6724849", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater blowup=getMenuInflater();\r\n\t\tblowup.inflate(R.menu.listmenu, menu);\r\n\t\treturn true;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "321bef6552f3521973ff6ae71a6c78a4", "score": "0.672454", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "05f9a32fcd0eab319d1d5a9bbee7c6da", "score": "0.67189205", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater= getMenuInflater();\n menuInflater.inflate(R.menu.menu_layout, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "70cf5cfa728c4168bad2a370e23963d2", "score": "0.67177147", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n return true;\n }", "title": "" }, { "docid": "0b13a0a1019ee93973e07e1330e7fd9c", "score": "0.67151666", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.weather_activity, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "f5f70cabf18b79a4f4ab3c3be1e7172b", "score": "0.6713509", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\r\n // the menu being referenced here is the menu.xml from res/menu/menu.xml\r\n inflater.inflate(R.menu.menu_main, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n\r\n }", "title": "" }, { "docid": "7479ffba24017a2ab803e103185ad0ed", "score": "0.6710862", "text": "public boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowup=getMenuInflater();\n\t\tblowup.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fbfe5f7fb9486d8fc056ff922706085e", "score": "0.6708543", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "d57512b9f235fc25ed8994e1569f2f5a", "score": "0.67064536", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing_info, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7c00a7f47a04755c41ed404d45192ea8", "score": "0.66981304", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6f1c9bd6a7305473f8fe5946120cd961", "score": "0.6691238", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // inflate items\n getMenuInflater().inflate(R.menu.menu_main,menu);\n return true;\n }", "title": "" }, { "docid": "58b51e90d6d0a69b04c4cd210f2e31b4", "score": "0.66911286", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);//Menu Resource, Menu\n return true;\n }", "title": "" }, { "docid": "fb3b688c178c183da8d2f6b262b77ad7", "score": "0.6690791", "text": "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "f0e79b08257047bf78d6f24887ae1e09", "score": "0.6690252", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n\n\n }", "title": "" }, { "docid": "b1631b737fc46ad9ef9203bd94535a01", "score": "0.66864955", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "b1631b737fc46ad9ef9203bd94535a01", "score": "0.66864955", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "b1631b737fc46ad9ef9203bd94535a01", "score": "0.66864955", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "440112e276929c8473c6fb53c65923fa", "score": "0.6686317", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "7e3fc9c2240433fb6496c3c608cac595", "score": "0.6686044", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.main_menu, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "e77433cdd4e09e5c29e5cfbd2ab45c52", "score": "0.66853315", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n // the menu being referenced here is the menu.xml from res/menu/menu.xml\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n\n }", "title": "" }, { "docid": "7bbacd93c651f5fe326791e9c1d5c925", "score": "0.6678586", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "8286001700aaf93216cfd1708a970d7a", "score": "0.66762054", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu){\r\n\t\tsuper.onCreateOptionsMenu(menu);\r\n\t\tMenuInflater mInflater = getMenuInflater();\r\n\t\tmInflater.inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "6cc5da99a32692d41c31cc394b4bd681", "score": "0.667199", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "title": "" }, { "docid": "89d08db6734f62c736882b3842146a6c", "score": "0.6671917", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "6c85e8d78b2f8b6ec8f043830f44b97d", "score": "0.6669967", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.allmenu, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "5751a6be5fffb31016a5de3c1d7f01a7", "score": "0.666856", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tlogcat( \"Inflating Menu\");\n \t//Inflate the menu xml file\n getSupportMenuInflater().inflate(R.menu.main, menu);\n logcat( \"Menu inflated\");\n return true;\n }", "title": "" }, { "docid": "aba1fba6ddcb6bb43753edbad2938279", "score": "0.66655695", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.main, menu);\r\n \treturn true;\r\n }", "title": "" }, { "docid": "c1e17f42c2a25bdc9eac1ee15ec0b5ff", "score": "0.666553", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.id.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c2eb37232367f9c0e5248d28f2e9e8c7", "score": "0.66635174", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu_main, menu);\r\n //getMenuInflater().inflate(R.menu.menu_main, menu);\r\n return true;\r\n\r\n }", "title": "" }, { "docid": "f807b68a581506c39628b6b18cdd1817", "score": "0.6663429", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.taxi_menu, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "title": "" }, { "docid": "2048a935480d812df1931f3024445816", "score": "0.66623133", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.action_menu, menu);\n return true;\n }", "title": "" }, { "docid": "9e90ee9aba69fb886ba0bf4523a44895", "score": "0.66613185", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "84677e94eed853c7df78ea3062b6b1b6", "score": "0.66611975", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Mostrar MENU en activity_main.xml\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6660078", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6660078", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6660078", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "834f6c62845d947459df685b80dd2f2d", "score": "0.6660078", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "title": "" }, { "docid": "60a0a65d0954b254ea5a1db9f907e51c", "score": "0.6659513", "text": "@Override\r\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n \t\treturn true;\r\n \t}", "title": "" }, { "docid": "dc2a239ad8585a760cddce752273dc63", "score": "0.6659389", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.menu_listproduct, menu);\n }", "title": "" }, { "docid": "5335d23fd2d7871c8f778385cb6a3e5a", "score": "0.6657036", "text": "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menuitem, menu);\n return true;\n }", "title": "" }, { "docid": "0f5e6187e60c8bc5b25320c8776a318f", "score": "0.6654778", "text": "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n }", "title": "" }, { "docid": "414cf64a54332c2885f9d15b5bfd8e12", "score": "0.6652649", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n //Returns a MenuInflater with this context.\n //Returns MenuInflater:This value will never be null.\n return super.onCreateOptionsMenu(menu);\n //returns the menu\n }", "title": "" }, { "docid": "4d8e375ab613f0abe1555926244bc257", "score": "0.6650181", "text": "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "title": "" }, { "docid": "9dca17d45fa66b42cb7ea82fe6b57d82", "score": "0.6649712", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu)\n\t{\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "54819dae6818a8473fc7ab2591c860f7", "score": "0.6646577", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.init, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c8f5502ccbcf42ac436a8f3234a428b5", "score": "0.6646303", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) \n \t{\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "0181b7386216e6a65ca7795d1db8652a", "score": "0.6646216", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\t/* load buttom menu */\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "85db32fc0846a45b7fac662f88ca99d5", "score": "0.6645772", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n getMenuInflater().inflate(R.menu.menu_items, menu);\n\n return true;\n }", "title": "" }, { "docid": "900a36000f78a3d530e62c09e4bfd1b7", "score": "0.6644308", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n getMenuInflater().inflate(R.menu.my_toolbar_menu_main_act, menu);\r\n return true;\r\n }", "title": "" }, { "docid": "d56408934caa4fd5707b117c5a9d88b4", "score": "0.6641583", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\r\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "15fe6f1e998d52e09e59560df0d09455", "score": "0.6641302", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\treturn true;\n\n\t}", "title": "" }, { "docid": "896f040bae68c8182568c18af9f1b080", "score": "0.66396356", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "48d3bc69eb7089db46a1bf9456378346", "score": "0.6637551", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "45442c87d381deee3a66e950c314c3b6", "score": "0.66370606", "text": "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "title": "" }, { "docid": "129047db332e82aa713ca7ce8b15f5c7", "score": "0.663465", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_items, menu);\n return true;\n }", "title": "" }, { "docid": "3207663c5e0053801611a164b1663d8d", "score": "0.663203", "text": "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "5d51df589d97b9d300a71addab9f2758", "score": "0.66284204", "text": "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu_gamecast, menu);\r\n return super.onCreateOptionsMenu(menu);\r\n }", "title": "" }, { "docid": "bc2c422c1ff45e5139c86c1c115a7b9a", "score": "0.6628144", "text": "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.food, menu);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5707a8adb79da21934c175b10bb2d618", "score": "0.6624576", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.main, menu);\n \treturn true;\n }", "title": "" }, { "docid": "da97f767cd6840a74b9e5bdebadbe154", "score": "0.6624505", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // super.onCreateOptionsMenu(menu);\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.app_menu, menu);\n return true;\n }", "title": "" }, { "docid": "13a3b153e3724a1c3daece8365467d4b", "score": "0.66236305", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "title": "" }, { "docid": "e61927ab94c77e121c8805bbf8b3211a", "score": "0.6623368", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\tgetMenuInflater().inflate(com.thoughtworks.R.menu.main, menu);\n\treturn true;\n }", "title": "" }, { "docid": "e6e35486e4e866efaea31a0161da40f4", "score": "0.6623246", "text": "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return true;}", "title": "" } ]
6a6f55ea84eb6d1253e8c7f25b7a1869
Sets a new Y velocity
[ { "docid": "275b975ab0854c2b99d44ba2efecb9fb", "score": "0.72689015", "text": "public void setVeloY(double updateYVelo) {\n\t\tveloY = updateYVelo;\n\t}", "title": "" } ]
[ { "docid": "6eb6996ad1b7e9e11a4cc2b2ab52b961", "score": "0.84301496", "text": "@Override\npublic void setYVelocity(int velocity) {\n\t}", "title": "" }, { "docid": "be3921d9ddf50ee021c802a8a1200d7c", "score": "0.8251019", "text": "public Builder setVelocityY(int value) {\n bitField0_ |= 0x00000008;\n velocityY_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b0b1821b92839f4aa231e210ee6ddc45", "score": "0.80990565", "text": "public void setyVelocity(int yVelocity) {\n this.yVelocity = yVelocity;\n }", "title": "" }, { "docid": "a635d7b05f92082b6cbdc2e642905814", "score": "0.8083064", "text": "@Raw\r\n\tpublic void setYVelocity(double yVelocity){\r\n\t\tif(canHaveAsVelocity(getVelocity().getX(), yVelocity))\r\n\t\t\tthis.velocity = new Vector2d(getVelocity().getX(), yVelocity);\r\n\t}", "title": "" }, { "docid": "42aaeef31c2bbd8cddc2e458f5301ae7", "score": "0.79783344", "text": "@Override\n public void setVelocityY(int value){\n super.setVelocityY(value);\n }", "title": "" }, { "docid": "26a664dc7c1ed7d7a6dcfa88a9e58856", "score": "0.7913035", "text": "public void setyVelocity(double yVelocity) {\n\t\tthis.yVelocity = yVelocity;\n\t}", "title": "" }, { "docid": "b40acd32a36f399a879efcda5439da1d", "score": "0.788888", "text": "public synchronized void setY_vel(double param) {\r\n vel.set(1, 0, param);\r\n }", "title": "" }, { "docid": "e062d8da163d3c0a6f23ffbb0ee4be72", "score": "0.7658189", "text": "public void setY(double y) {}", "title": "" }, { "docid": "c7448351225e282d67ba987d06070fde", "score": "0.76557344", "text": "void setY(double value);", "title": "" }, { "docid": "d8c3db79cb13f04e294fe54bca698bac", "score": "0.76225275", "text": "@Override\n public void setY(int y) {\n lastPosY = this.getY();\n this.y = y;\n calculateMovementVector();\n }", "title": "" }, { "docid": "b8b475248c348a45e57a5be7f4a0c562", "score": "0.7583455", "text": "public void setY(double value) {\n this.Y = value;\n }", "title": "" }, { "docid": "97cd6c2ec5cfddf8458dd92457917433", "score": "0.75450754", "text": "public void setY(double value) {\n this.y = value;\n }", "title": "" }, { "docid": "ad88e29e470814d10276c5dd15d3aec7", "score": "0.75241256", "text": "public void setY( float y );", "title": "" }, { "docid": "24989819fff375707d5a4b7e384a35e5", "score": "0.7512684", "text": "public void bounceY () {\n vvelocity_=vvelocity_*-1;\n }", "title": "" }, { "docid": "4215bde4fc77322d57b132be7a5134bd", "score": "0.748778", "text": "void setY(double y);", "title": "" }, { "docid": "4215bde4fc77322d57b132be7a5134bd", "score": "0.748778", "text": "void setY(double y);", "title": "" }, { "docid": "31d43b4650f08c281f0ccd8b2f58c54d", "score": "0.74846154", "text": "public void setY (double newY) {\n \n this.y = newY;\n \n }", "title": "" }, { "docid": "b90f83ed157a37a0157d91a73f7e14eb", "score": "0.74568075", "text": "public void setY(double newY) {\n this.y = newY;\n }", "title": "" }, { "docid": "ec6be821c9fac8169742a87d05704439", "score": "0.7456761", "text": "private void setY(double value) {\n \n y_ = value;\n }", "title": "" }, { "docid": "2f045e091e7a3900d971be2c13c7811f", "score": "0.74173844", "text": "public void setY(double y)\r\n\t{\r\n\t\tthis.y = y;\r\n\t}", "title": "" }, { "docid": "a92743623fa816f5b6b1e29be79db199", "score": "0.7387812", "text": "public void setY(double y) {\n this.y = y;\n }", "title": "" }, { "docid": "a92743623fa816f5b6b1e29be79db199", "score": "0.7387812", "text": "public void setY(double y) {\n this.y = y;\n }", "title": "" }, { "docid": "a92743623fa816f5b6b1e29be79db199", "score": "0.7387812", "text": "public void setY(double y) {\n this.y = y;\n }", "title": "" }, { "docid": "803e3213ad11d9df00c151f52a380795", "score": "0.7354973", "text": "public void setY(double y) {\n\t\t\n\t\tthis.y = y;\t\n\t}", "title": "" }, { "docid": "b10f7d6040deaf6324b7e14dc08536b4", "score": "0.7336882", "text": "public synchronized void setY_rot_vel(double param) {\r\n vel.set(4, 0, param);\r\n }", "title": "" }, { "docid": "7cb27663b348d76f29335219ad1e1946", "score": "0.7336712", "text": "public Vector setY(double y) {\n\t\tthis.y = y;\n\t\treturn this;\n\t}", "title": "" }, { "docid": "5912e9b32f4816f7c0ee032346e06432", "score": "0.7331605", "text": "public void setY(double y) {\n this.y = y;\n updatePositionBackend();\n }", "title": "" }, { "docid": "9ffb07b7ae50b0af77b61a69cad4c4c4", "score": "0.731959", "text": "public void setVy(double vy) {\n setVector(vx, vy);\n }", "title": "" }, { "docid": "bb719553b5ecb3b5f7b48d74e0de8407", "score": "0.7289383", "text": "public void setY(double y) {\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "78575a0f7e68ae0e53b7764afbef664c", "score": "0.7279005", "text": "public void setY(int yVal)\r\n {\r\n this.y = yVal;\r\n }", "title": "" }, { "docid": "d8c545663b820fdb77f765e0755fa4f0", "score": "0.7268357", "text": "public void setY(Double y)\n {\n this.y = y;\n }", "title": "" }, { "docid": "57a1ec50a53b52867a61eaadb3cf34bb", "score": "0.7261263", "text": "public Builder clearVelocityY() {\n bitField0_ = (bitField0_ & ~0x00000008);\n velocityY_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0875e11e6fd4519e6795a9d1cee3bf51", "score": "0.721769", "text": "public void setY( float y) {\r\n this.y = y;\r\n }", "title": "" }, { "docid": "d897f709768bef17a1e5b5f52d47226a", "score": "0.7195418", "text": "public void setY(int newY){\n\t\ty = newY;\n\t}", "title": "" }, { "docid": "471f5688d97bd8fee77e7651719e0a1a", "score": "0.7191093", "text": "public void setY(float y)\n {\n this.y = y;\n }", "title": "" }, { "docid": "ff4d37240564f93436431c3ca18b415a", "score": "0.7177068", "text": "public void setY(final double y) {\n place(getX(), y);\n }", "title": "" }, { "docid": "04fe46a8395c2e9a49ceaa3d3e850550", "score": "0.71737504", "text": "public void setY(double y) {\n\t\tsetY((float)y);\n\t}", "title": "" }, { "docid": "af247789b0fc48aab96d56e45a558fff", "score": "0.71608263", "text": "public void setY(int value) {\n this.y = value;\n }", "title": "" }, { "docid": "ea105ee2f3859180018d31b538f4b238", "score": "0.71556556", "text": "public void setY(float y){\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "087cbc1ee67056d1fd33201c63c26bae", "score": "0.7135779", "text": "public void setY(double y1) {\n this.y = y1;\n }", "title": "" }, { "docid": "014db42614241d4f2f103fb001dded21", "score": "0.71185434", "text": "public void setY (int y) {\r\n this.y = y;\r\n }", "title": "" }, { "docid": "170f053985a2d595f2e9644436507540", "score": "0.7110497", "text": "public void setY(double Y) {\n\n\t\t// Your code goes here\n\t\tthis.y = Y;\n\t}", "title": "" }, { "docid": "ef1e9fd3a07c1bff1feebbbe906a6d9a", "score": "0.7108297", "text": "public void setY(int y)\r\n\t{\r\n\t\tposy = y;\r\n\t}", "title": "" }, { "docid": "ed311ed1cb01c6d0277588fa1f7929bf", "score": "0.7107193", "text": "public void setY(int y) {\r\n this.y = y;\r\n }", "title": "" }, { "docid": "4c9310bf0c8fb10307c54c97e22950a0", "score": "0.7095543", "text": "public Builder setY(double value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7602efc7a4d61ea45e0709df8cb512d6", "score": "0.7095357", "text": "public void setY(int y) \r\n\t{\r\n\t\tthis.y = y;\r\n\t}", "title": "" }, { "docid": "2e0128fb9b58b1d2d8ed04cf4085335c", "score": "0.7094011", "text": "public int getVelocityY() {\n return velocityY_;\n }", "title": "" }, { "docid": "fc37a71bf09136f63108cee37320fcec", "score": "0.7092032", "text": "public void setVectorY(double vect_y) {\n\t\tthis.vect_y = vect_y;\n\t}", "title": "" }, { "docid": "81ebfe0430605893ba57c7a54b7f40ef", "score": "0.7090468", "text": "public void setY(float value) {\n\t\ty = value;\n\t}", "title": "" }, { "docid": "467084ce2863a950b75cea5c7c68a54a", "score": "0.7088165", "text": "public void setY(int y){\n this.y = y;\n }", "title": "" }, { "docid": "9ad0b66ac698a99770a2b8cad1e7581f", "score": "0.7085186", "text": "protected void setY(int y) {\n\n this.y = y;\n }", "title": "" }, { "docid": "939709efc0f4c9614f674d303e65b4fd", "score": "0.70804167", "text": "public void setY(int y);", "title": "" }, { "docid": "9f579b64febaa11eab12f0b92707d13a", "score": "0.70803165", "text": "public void setVY(double vy) {\n\t\tthis.vy = vy;\n\t}", "title": "" }, { "docid": "8f6ff8f71af6eca9c843a29cfc4c0bc5", "score": "0.7080128", "text": "public void setY(double y) \r\n\t{\r\n\t\tsynchronized (lock) \r\n\t\t{\r\n\t\t\tthis.y = y;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3c5af2368e6569524a38cf3bdbb979da", "score": "0.70790195", "text": "public void setY (int y) {\n this.y = y;\n }", "title": "" }, { "docid": "caa4bac3ae700572cf7db9c11a41204a", "score": "0.7077947", "text": "public int getVelocityY() {\n return velocityY_;\n }", "title": "" }, { "docid": "b2cb6df0892c22a9d446cd421775bea6", "score": "0.70723", "text": "public Builder setY(float value) {\n \n y_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "86ee7e5ce71f3ca4d3a73573cac284a7", "score": "0.70716643", "text": "public void changeYDirection() {\n increaseYBall = -increaseYBall;\n }", "title": "" }, { "docid": "fc9614f9434321e5055544b753d6b076", "score": "0.70675594", "text": "@Raw\r\n\tpublic void setVelocity(double xVelocity, double yVelocity){\r\n\t\tif(canHaveAsVelocity(xVelocity, yVelocity))\r\n\t\t\tthis.velocity = new Vector2d(xVelocity, yVelocity);\r\n\t}", "title": "" }, { "docid": "67f73a1697bb2719f1ed8d5cd7968b13", "score": "0.7065395", "text": "private void setY(int newY) {\r\n if (newY >0 && newY<5)\r\n {\r\n this.y = newY; \r\n }\r\n else\r\n {\r\n this.y = 3;\r\n }\r\n }", "title": "" }, { "docid": "420409985eb9a1c335eb5c3249017d1d", "score": "0.7065101", "text": "public void setY(int y) {\n this.y = y;\n }", "title": "" }, { "docid": "420409985eb9a1c335eb5c3249017d1d", "score": "0.7065101", "text": "public void setY(int y) {\n this.y = y;\n }", "title": "" }, { "docid": "420409985eb9a1c335eb5c3249017d1d", "score": "0.7065101", "text": "public void setY(int y) {\n this.y = y;\n }", "title": "" }, { "docid": "420409985eb9a1c335eb5c3249017d1d", "score": "0.7065101", "text": "public void setY(int y) {\n this.y = y;\n }", "title": "" }, { "docid": "420409985eb9a1c335eb5c3249017d1d", "score": "0.7065101", "text": "public void setY(int y) {\n this.y = y;\n }", "title": "" }, { "docid": "7312682de4398b472eb784c64b0401ba", "score": "0.7056814", "text": "public abstract void setY(double y);", "title": "" }, { "docid": "56d64a7c5cd0f97a539739770e06da44", "score": "0.70548135", "text": "public void setY(Float y) {\n this.y = y;\n }", "title": "" }, { "docid": "55fc6b4c712c9524519e40a095033bb3", "score": "0.7052085", "text": "public double getyVelocity() {\n\t\treturn yVelocity;\n\t}", "title": "" }, { "docid": "78482cf263391db7566a13404c1ca504", "score": "0.7046226", "text": "public void setY(int y){\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "d245e529ab97f7e4370c299c33d2fa23", "score": "0.7033734", "text": "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "title": "" }, { "docid": "d245e529ab97f7e4370c299c33d2fa23", "score": "0.7033734", "text": "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "title": "" }, { "docid": "1794d9a78f2dd2e9abb2ae962b07ae92", "score": "0.70196754", "text": "@Override\n public int getVelocityY(){\n return super.getVelocityY();\n }", "title": "" }, { "docid": "f739b5f09737d090385f588e27127f84", "score": "0.7017875", "text": "public void setY(int y) {\r\n\t\tthis.y=y;\r\n\t}", "title": "" }, { "docid": "4c5aa75d830afdf3e38072c54e70a69d", "score": "0.7016897", "text": "public final void setY(int y) {\n\tthis.y = y;\n }", "title": "" }, { "docid": "62d53c3ee85052854077f69c51b7772a", "score": "0.700628", "text": "public void setY(float y)\r\n\t{\r\n\t\trect.setY(y);\r\n\t}", "title": "" }, { "docid": "e3034986c0453354e9492ecde6eb36b7", "score": "0.70051", "text": "public void setY_pos(int y_pos);", "title": "" }, { "docid": "93984faa2eb865301ebf02c1952940c4", "score": "0.6998384", "text": "public void setY(float y) {\n\t\tthis.position.setY(y);\n\t}", "title": "" }, { "docid": "05d71d1cd47dadab40b26c1a2125ff60", "score": "0.6995083", "text": "protected void setY(int y) {\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "d470d1fb83a49f214cc3f45542853174", "score": "0.6989379", "text": "public abstract void setPositionY(float y);", "title": "" }, { "docid": "f18e3fda3bf8404d7567edd3d095b1d9", "score": "0.6987374", "text": "public void setY(float y) {\n this.mY = y;\n this.mPosition.y = y;\n }", "title": "" }, { "docid": "811b09e19871b447a6193b6951e58eb6", "score": "0.69681394", "text": "public int getyVelocity() {\n return yVelocity;\n }", "title": "" }, { "docid": "384acd579756fc1e3072df681589410f", "score": "0.6966095", "text": "public void setY(int y){\n \tyPos=y;\n \tif (y>1000){\t//if the new value set is over 1000, then its not on the screeen anymore and will be removed\n \t\tonScreen=false;\n \t}\n }", "title": "" }, { "docid": "4def390045793ba544a86c217d246b9d", "score": "0.6954372", "text": "public void setYPos(int y){\n\t\tyPos = y;\n\t}", "title": "" }, { "docid": "40ca89809a8a83004afcc6f1d7e7d7b4", "score": "0.6951858", "text": "public void setY(final int theY) {\r\n myY = theY;\r\n }", "title": "" }, { "docid": "0387bb10ad284cfaa84bb4bce1d61eb0", "score": "0.6947853", "text": "@Override\n\tpublic void setY(int y) {\n\t\tpecaPositionAtual[2] = y;\n\t\tpecaPosition[atual+2] = y;\n\t}", "title": "" }, { "docid": "50adda3636ddaef01633790160350124", "score": "0.6944224", "text": "public double getYVelocity() {\n return yvel;\n }", "title": "" }, { "docid": "60f65abeda667946fe5d4ddf798b94d9", "score": "0.6938221", "text": "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "60f65abeda667946fe5d4ddf798b94d9", "score": "0.6938221", "text": "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "60f65abeda667946fe5d4ddf798b94d9", "score": "0.6938221", "text": "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "60f65abeda667946fe5d4ddf798b94d9", "score": "0.6938221", "text": "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "ec4e7d3f0c43f0c2353ef64f87562890", "score": "0.69356704", "text": "@Override\r\n\tpublic void setY(int y) {\n\t\tthis.y=y;\r\n\t}", "title": "" }, { "docid": "20e8207d51ed961af02f5b28f47b9f20", "score": "0.6934169", "text": "public void setY ( Integer y ) {\r\n\t\tgetStateHelper().put(PropertyKeys.y, y);\r\n\t\thandleAttribute(\"y\", y);\r\n\t}", "title": "" }, { "docid": "678f1d50a7c572042b7122172b02ad5a", "score": "0.6931692", "text": "public double getYVelocity() {\n return vvelocity_;\n }", "title": "" }, { "docid": "7eae848b3e64a3c4f136095dacb00b3a", "score": "0.6931666", "text": "public com.xplordat.kbe.avro.RawVertex.Builder setY(double value) {\n validate(fields()[3], value);\n this.Y = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "title": "" }, { "docid": "18fd8483d7ccc6a8c51fdb2d22fa4694", "score": "0.69291866", "text": "public Builder setVY(int value) {\n bitField0_ |= 0x00000200;\n vY_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c0076df8c8f08e213204d2576cc26698", "score": "0.69255376", "text": "public Builder setY(double value) {\n copyOnWrite();\n instance.setY(value);\n return this;\n }", "title": "" }, { "docid": "919568b533996b0311f84303e49eb4ca", "score": "0.6922979", "text": "public void setY(DoubleData y) {\n\t\tthis.y = y;\n\t}", "title": "" }, { "docid": "b76a95f8663613a409f440127ef7fc3e", "score": "0.6919129", "text": "public void setY(float gY){\n y = gY;\n }", "title": "" }, { "docid": "d4659e373ca6b2f4ec2be6eb99e9dcf6", "score": "0.689577", "text": "public void setY(int y) {\n this.positionY = y;\n }", "title": "" }, { "docid": "b82c49336dd9b4608520efa78bafca87", "score": "0.6890966", "text": "public void setCurrentYPos(int y) {\n\t\tcurrentYPos = y;\n\n\t}", "title": "" } ]
47e7c503df105e122ae9bff7c4dc9303
: move down (closer to the end) the corresponding item in the TodoList. If the item cannot be found or is already at the end, do nothing
[ { "docid": "e405263889c95cdd85161cf9e320b761", "score": "0.66417336", "text": "public void moveDownItem(TodoItem item) {\r\n\t\tlist.moveDown(item);\r\n\t}", "title": "" } ]
[ { "docid": "781a2e069f0b6c9e51ef4d574eca0530", "score": "0.61724204", "text": "public void moveUpItem(TodoItem item) {\r\n\t\tlist.moveUp(item);\r\n\t}", "title": "" }, { "docid": "ff8095899d4355a9b7bafb9892ce8536", "score": "0.6027386", "text": "public TodoItem findItemByIndex(int i) {\r\n\t\tif(list.size() == 0 || i >= list.size()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\tTodoItem getNewItem = list.get(i);\r\n\t\t\treturn getNewItem;\r\n\t}", "title": "" }, { "docid": "36222a90f40687887e58eec7df9a920a", "score": "0.5897671", "text": "void moveNext(){\r\n\t\tif(cursor!=null){\r\n\t\t\tif(index()!=length()-1){\r\n\t\t\t\tcursor = cursor.next;\r\n\t\t\t\tind++;\r\n\t\t\t}else{\r\n\t\t\t\tcursor=null;\r\n\t\t\t\tind=-1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3abd3e9d3a22b63c5ef48cd4d7fa65a8", "score": "0.5830517", "text": "public synchronized RSSItem itemNextTo(final RSSItem item, final boolean before) {\n RSSItem adjacentItem = null;\n int i = items.indexOf(item);\n\n if (before) {\n if (i > 0) {\n adjacentItem = (RSSItem) items.elementAt(--i);\n }\n } else if (i < size() - 1) {\n adjacentItem = (RSSItem) items.elementAt(++i);\n }\n\n return adjacentItem;\n }", "title": "" }, { "docid": "db5cd53adc5ec4529348937ccb6ada99", "score": "0.5586553", "text": "private TreeItem getNextVisibleItem(TreeItem item, boolean includeChildren) {\n\tif (includeChildren && item.getItemCount() > 0 && item.getExpanded()) {\n\t\treturn item.getItems()[0];\n\t}\n\t// look sideways\n\tTreeItem parent = item.getParentItem();\n\tTreeItem[] peers = (parent != null) ? parent.getItems() : tree.getItems();\n\tfor (int i = 0; i < peers.length - 1; i++) {\n\t\tif (peers[i] == item) return peers[i + 1];\n\t}\n\t// look up\n\tif (parent != null) return getNextVisibleItem(parent, false);\n\treturn null;\n}", "title": "" }, { "docid": "c266730a1d2eb8938bdea8c32f6aab1f", "score": "0.5563457", "text": "public int moveDown(int index) {\n\tint newIndex;\n\tSong temp = songList.remove(index);\n\tif (index == songList.size())\n\t{\n\tsongList.add(0, temp);\n\tnewIndex = 0;\n\t}\n\telse\n\t{\n\tnewIndex = index +1;\n\tsongList.add(newIndex, temp);\n\t}\n\n\treturn newIndex;\n\t}", "title": "" }, { "docid": "64e7d4d9a69dc8100bd4166722456f17", "score": "0.5563101", "text": "public boolean move(int indexFrom, int indexTo)\r\n\t{\r\n\t\tString tmpItem;\r\n\t\t\r\n\t\tif (indexFrom < 0 || indexFrom > theItinerary.getQueueSize() || indexTo < 0 || indexTo > theItinerary.getQueueSize() || indexFrom == indexTo)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\ttmpItem = theItinerary.delete(indexFrom);\r\n\t\t\t\r\n\t\t\tif (theItinerary.insert(tmpItem, indexTo))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a7d45905325dea592261df6f57c2fe0d", "score": "0.5544076", "text": "public void moveLastToFirst() {\n\t\t\r\n\t\tif(isEmpty()) {\r\n\t\t\tthrow new NoSuchElementException(\"List is empty\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(size > 1) {\r\n\t\t\t\tNode<E>temp= tail;\r\n\t\t\t\tgetNodeBefore(size-1).next= null;\r\n\t\t\t\ttail= getNodeBefore(size-1);\r\n\t\t\t\tNode<E>temp2= head.next;\r\n\t\t\t\t\r\n\t\t\t\thead.next= temp;\r\n\t\t\t\thead.next.next= temp2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "9ac8a84e2fc400ed420ab59d0d228952", "score": "0.5541035", "text": "public void moveToEnd() { \n if (this.size >= 1) {\n this.curr = this.tail;\n }\n }", "title": "" }, { "docid": "58f831b42cf1f1f264ff158878e8229a", "score": "0.55319345", "text": "public boolean moveToEnd() {\n\t\tif (numberOfEntries > 1) {\n\t\t\tT entry = remove(1);\n\t\t\tadd(entry);\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0acb6bbb25a89bcff57bf4ce98deceba", "score": "0.55315554", "text": "public void moveFirstToLast() {\n\t\t\tif(isEmpty()) {\r\n\t\t\tthrow new NoSuchElementException(\"List is empty\");\r\n\t\t\t}\r\n\t\t\tif(size>1) {\r\n\t\t\tNode<E>temp= head.next;\r\n\t\t\thead.next= head.next.next;\r\n\t\t\ttail.next = temp;\r\n\t\t\ttail= tail.next;\r\n\t\t\ttail.next= null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t}", "title": "" }, { "docid": "7a20c85071f14ffef2224fcad7e671f6", "score": "0.55211043", "text": "public void moveToBack(E element){\r\n if(element == null || !this.contains(element))\r\n throw new IllegalArgumentException(\"Object null or no in list.\");\r\n \r\n if(remove(element))\r\n addLast(element);\r\n }", "title": "" }, { "docid": "50888a56c59d93d2958b4730dec97e91", "score": "0.55016875", "text": "boolean moveToFirst();", "title": "" }, { "docid": "c214eff844f31651af76cc50ad371cee", "score": "0.5497473", "text": "public boolean step() {\n\tAgendaItem item;\n\tStepper stomp;\n\t/* fetch some one item from myToDOList by creating a stepper, fetching with it, and\n\tdestroying the stepper.\n\tIf there were no items left\n\t\treturn, telling the caller that there is nothing left to do. (We may do this repeatedly...)\n\tstep the item.\n\t\tif it returned false\n\t\t\tunregister the item\n\t\t\tatomically\n\t\t\t\tdestroy it (nuke it?)\n\treturn whether there are any more things to do. */\n\titem = (AgendaItem) (stomp = myToDoList.stepper()).fetch();\n\tstomp.destroy();\n\tSomeone.thingToDo();\n\t/* The above code is n-squared. It should probably be fixed up during tuning. */\n\tif (item == null) {\n\t\treturn false;\n\t}\n\tif ( ! (item.step())) {\n\t\tunregisterItem(item);\n\t\tAboraBlockSupport.enterConsistent(2);\n\t\ttry {\n\t\t\titem.destroy();\n\t\t\tSomeone.thingToDo();\n\t\t\t/* find out if the consistent block is necessary/appropriate */\n\t\t\t;\n\t\t}\n\t\tfinally {\n\t\t\tAboraBlockSupport.exitConsistent();\n\t\t}\n\t}\n\treturn ! myToDoList.isEmpty();\n/*\nudanax-top.st:424:Agenda methodsFor: 'accessing'!\n{BooleanVar} step\n\t\"'step' one of my component items. If I return FALSE, that means there's nothing currently left to do. However, since more AgendaItems may get registered later, there may later be something more for me to do, so I shouldn't necessarily be destroyed. This creates a composition problem: If an Agenda is stored as an item within another Agenda, then when the outer Agenda is stepped and it in turn steps the inner Agenda, if the inner Agenda returns FALSE, the outer Agenda will destroy it. This is all legal and shouldn't be a problem as long as one is aware of this behavior\"\n\t\n\t| item {AgendaItem | NULL} stomp {Stepper} |\n\t\n\t\"fetch some one item from myToDOList by creating a stepper, fetching with it, and\n\tdestroying the stepper.\n\tIf there were no items left\n\t\treturn, telling the caller that there is nothing left to do. (We may do this repeatedly...)\n\tstep the item.\n\t\tif it returned false\n\t\t\tunregister the item\n\t\t\tatomically\n\t\t\t\tdestroy it (nuke it?)\n\treturn whether there are any more things to do.\"\n\t\n\titem _ (stomp _ myToDoList stepper) fetch cast: AgendaItem.\n\tstomp destroy.\n\tself thingToDo.\t\"The above code is n-squared. It should probably be fixed up during tuning.\"\n\titem == NULL\n\t\tifTrue: [^false].\n\titem step\n\t\tifFalse: \n\t\t\t[self unregisterItem: item.\n\t\t\tDiskManager consistent: 2 with:\n\t\t\t\t[item destroy.\n\t\t\t\tself thingToDo.\t\"find out if the consistent block is necessary/appropriate\"]].\n\t^myToDoList isEmpty not!\n*/\n}", "title": "" }, { "docid": "6743145c7b7299cfa9470050e1d8fc71", "score": "0.5468811", "text": "private void moveDown(int index){\n for(int i = index; i < storedElements; i++)\n list[i] = list[i + 1];\n }", "title": "" }, { "docid": "47a15133d47d794d94ec73d74b39de7d", "score": "0.54492533", "text": "public void runTo(int index) {\n/* 801 */ if (this.m_foundLast || (index >= 0 && index <= getCurrentPos())) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 806 */ if (-1 == index) { int n; do {\n/* */ \n/* 808 */ } while (-1 != (n = nextNode())); }\n/* */ else\n/* */ { int i;\n/* */ \n/* 812 */ while (-1 != (i = nextNode())) {\n/* */ \n/* 814 */ if (getCurrentPos() >= index) {\n/* */ break;\n/* */ }\n/* */ } }\n/* */ \n/* */ }", "title": "" }, { "docid": "10ac39fdb66a238858dd046a2582309f", "score": "0.5447998", "text": "void moveNext(){\n\n\t\t// if iterator is defined and not at the front\n\t\t// move it forward one element and inc index\n\t\tif (iterator != null && !iterator.equals(back)){\n\n\t\t\titerator = iterator.next; \n\t\t\tindex++; \n\t\t} // else set it to undefined if back\n\t\telse if (iterator == back) {\n\t\t\titerator = null; \n\t\t\tindex = -1; \n\t\t}\n\n\t}", "title": "" }, { "docid": "df8f5fa40bb54dfc7f60b473d94d120b", "score": "0.54433376", "text": "boolean moveToNext();", "title": "" }, { "docid": "63230af67129424f41df828485ed607c", "score": "0.5442289", "text": "public boolean moveToNext();", "title": "" }, { "docid": "982d550c82634c74f227c83e1d4252cd", "score": "0.5437805", "text": "private void moveToEnd (T key) {\n\t\tfinal Node<T,U> currentNode = keyNodeMap.get(key);\n\t\tif (!tail.equals(currentNode) && !head.equals(currentNode)) {\n\t\t\tcurrentNode.prev.next = currentNode.next;\n\t\t\ttail.next = currentNode;\n\t\t\tcurrentNode.prev = tail;\n\t\t\ttail = currentNode;\n\t\t} else if (head.equals(currentNode)) {\n\t\t\thead = currentNode.next;\n\t\t\tcurrentNode.next.prev = null;\n\t\t\tcurrentNode.prev = tail;\n\t\t\ttail.next = currentNode;\n\t\t\ttail = currentNode;\n\t\t}\n\t}", "title": "" }, { "docid": "90f4494dc7ad59709fcea2b823a5e917", "score": "0.54243547", "text": "public void deleteFromList(String ind, UI ui) throws WhoBotException {\n assert ui != null;\n try {\n int index = Integer.parseInt(ind) - 1;\n if (index < list.size()) {\n Task temp = list.get(index);\n\n if (!WhoBot.isGui()) {\n ui.echo(\"Are you sure you want to delete this task: \\\"\" + temp.getDescription() + \"\\\" ? (Yes/No)\",\n UI.Type.COMPLETE);\n System.out.print(UI.COLOR_PURPLE + \"> \" + UI.COLOR_RESET);\n String confirm = UI.CMD_READER.nextLine().trim();\n if (confirm.toLowerCase(Locale.ROOT).equals(\"yes\")) {\n list.remove(index);\n String tag = temp.hasTag() ? temp.getTag() : NO_TAG;\n taggedList.get(tag).remove(temp);\n if (!tag.equals(NO_TAG) && taggedList.get(tag).size() == 0) {\n taggedList.remove(tag);\n }\n ui.echo(\"I have deleted this task from the list: \\\"\" + temp.getDescription() + \"\\\"\",\n UI.Type.START);\n ui.echo(\"You now have \" + list.size() + \" task(s) in the list.\", UI.Type.END);\n } else {\n ui.echo(\"The deletion has been cancelled.\", UI.Type.COMPLETE);\n }\n } else {\n list.remove(index);\n String tag = temp.hasTag() ? temp.getTag() : NO_TAG;\n taggedList.get(tag).remove(temp);\n if (!tag.equals(NO_TAG) && taggedList.get(tag).size() == 0) {\n taggedList.remove(tag);\n }\n ui.echo(\"I have deleted this task from the list: \\\"\" + temp.getDescription() + \"\\\"\", UI.Type.START);\n ui.echo(\"You now have \" + list.size() + \" task(s) in the list.\", UI.Type.END);\n }\n } else {\n throw new WhoBotException(\"Oops, The index you gave is out of bound. \"\n + \"There are only \" + list.size() + \" tasks\");\n }\n } catch (NumberFormatException ex) {\n throw new WhoBotException(\"I didn't get what you meant. \"\n + \"Ensure that the command is of the form \\\"delete #index\\\"\");\n }\n }", "title": "" }, { "docid": "48873a1935914f8cf0af6039b157e949", "score": "0.5408928", "text": "public void addAfter(T element, T target) throws ElementNotFoundException\r\n {\r\n if (size() == list.length)\r\n expandCapacity();\r\n\r\n int scan = 0;\r\n\t\t\r\n\t\t// find the insertion point\r\n while (scan < rear && !target.equals(list[scan])) \r\n scan++;\r\n \r\n if (scan == rear)\r\n throw new ElementNotFoundException(\"UnorderedList\");\r\n \r\n scan++;\r\n\t\t\r\n\t\t// shift elements up one\r\n for (int shift=rear; shift > scan; shift--)\r\n list[shift] = list[shift-1];\r\n\r\n\t\t// insert element\r\n\t\tlist[scan] = element;\r\n rear++;\r\n\t\tmodCount++;\r\n }", "title": "" }, { "docid": "2f870ce73f90364fd526b51a0dfdc64b", "score": "0.5380702", "text": "public boolean moveToFirst();", "title": "" }, { "docid": "7417bd84e418d6ff35b0fa1199ab7509", "score": "0.53731465", "text": "public int findItem(dItem item) { return -1; }", "title": "" }, { "docid": "ac03a1b764f1c7a1ea6ff22eead60d08", "score": "0.537302", "text": "boolean onMoveItem(int fromPosition, int toPosition);", "title": "" }, { "docid": "5f28e6a3edf48c7ce166b8481b9d30ff", "score": "0.53726625", "text": "public TodoItem insertAfterItem(TodoItem existingItem, String title) {\r\n\t\tTodoItem newItem = new TodoItem(title);\r\n\t\tlist.insertAfter(existingItem, newItem);\r\n\t\treturn newItem;\r\n\t}", "title": "" }, { "docid": "3b5e0d12ec702b61c8b806c712131777", "score": "0.53555304", "text": "protected void pull() {\n\n // Null check\n if (next == null) {\n return;\n }\n\n if (nextDistance() > Snake.snakeStep) {\n next.setLocation(lastLocation.copy());\n next.pull();\n }\n }", "title": "" }, { "docid": "97c3a1e0c84367a0cc4201630705f861", "score": "0.5324186", "text": "@Test\r\n void removeItem() {\n ToDoList testList = new ToDoList();\r\n testList.addItem(\"NewItem1\", LocalDate.of(2021, 7, 5), false);\r\n ToDoItem newItem = new ToDoItem(\"NewItem1\", LocalDate.of(2021, 7, 5), false);\r\n testList.removeItem(newItem.getDesc());\r\n assertFalse(testList.getToDoItems().contains(newItem));\r\n }", "title": "" }, { "docid": "72484e983b6c28d79ec47c38c8c07b17", "score": "0.53161794", "text": "void onItemMove(int fromPosition, int toPosition);", "title": "" }, { "docid": "e4756d9740635c9a67596580e60b7337", "score": "0.52955157", "text": "public static boolean checkForDuplicate(List<Item> itemList, Item item, int index)\r\n {\n if (index >= itemList.size()) {\r\n if (TYPE_SENSE.equals(itemList.get(itemList.size() - 1).getType())) {\r\n return false;\r\n }\r\n else {\r\n int senseItemIndex = index - 1;\r\n while (TYPE_EXAMPLE.equals(itemList.get(senseItemIndex).getType())) {\r\n senseItemIndex--;\r\n }\r\n for (int i = senseItemIndex + 1; i < itemList.size()\r\n && TYPE_EXAMPLE.equals(itemList.get(i).getType()); i++) {\r\n // Check if the new item is equivalent to the current existing item\r\n // but not *the same*. We still might want to reorder things under a sense,\r\n // that is why we do not consider *the same* here.\r\n Item existingItem = itemList.get(i);\r\n boolean documentEqual = existingItem.getCorpusId().equals(item.getCorpusId())\r\n && existingItem.getDocumentId().equals(item.getDocumentId());\r\n boolean offsetsEqual = existingItem.getBeginOff() == item.getBeginOff()\r\n && existingItem.getEndOff() == item.getEndOff();\r\n boolean matchEqual = existingItem.getBeginMatch() == item.getBeginMatch()\r\n && existingItem.getEndMatch() == item.getEndMatch();\r\n boolean isSame = existingItem == item;\r\n if (documentEqual && offsetsEqual && matchEqual && !isSame) {\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // Adding to the middle of the list\r\n\r\n int senseItemIndex = index;\r\n // Check for adding an example\r\n if ((itemList.indexOf(item) != -1)) {\r\n // Check for a moving up an example or if the target index -1 is a sense\r\n if ((index < itemList.indexOf(item))\r\n || (TYPE_SENSE.equals(itemList.get(index - 1).getType()))) {\r\n senseItemIndex--;\r\n }\r\n }\r\n // if it's an update by moving item\r\n else if (TYPE_SENSE.equals(itemList.get(index - 1).getType())) {\r\n senseItemIndex--;\r\n }\r\n else if (TYPE_EXAMPLE.equals(itemList.get(index - 1).getType())) {\r\n senseItemIndex--;\r\n }\r\n\r\n while (TYPE_EXAMPLE.equals(itemList.get(senseItemIndex).getType())) {\r\n senseItemIndex--;\r\n }\r\n for (int i = senseItemIndex + 1; i < itemList.size()\r\n && TYPE_EXAMPLE.equals(itemList.get(i).getType()); i++) {\r\n // Check if the new item is equivalent to the current existing item\r\n // but not *the same*. We still might want to reorder things under a sense,\r\n // that is why we do not consider *the same* here.\r\n\r\n Item existingItem = itemList.get(i);\r\n boolean documentEqual = existingItem.getCorpusId().equals(item.getCorpusId())\r\n && existingItem.getDocumentId().equals(item.getDocumentId());\r\n boolean offsetsEqual = existingItem.getBeginOff() == item.getBeginOff()\r\n && existingItem.getEndOff() == item.getEndOff();\r\n boolean matchEqual = existingItem.getBeginMatch() == item.getBeginMatch()\r\n && existingItem.getEndMatch() == item.getEndMatch();\r\n boolean isSame = existingItem == item;\r\n if (documentEqual && offsetsEqual && matchEqual && !isSame) {\r\n return true;\r\n }\r\n }\r\n\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "3ed0f8e2261299d42ef812696a46197e", "score": "0.529079", "text": "public void tossItem(int index) {\n if (index >= items.size() || index < 0) {\n // Internal notice that item does not exist\n }\n else { items.remove(index); }\n return;\n }", "title": "" }, { "docid": "684a7cddb8ac4b618600db71d51d3714", "score": "0.5284312", "text": "void moveBack(){\r\n\t\tif(size!=0){\r\n\t\t\tcursor = tail;\r\n\t\t\tind = length()-1;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9c2079cfb427399f7272f4a56d5b2c49", "score": "0.52838176", "text": "@Override\n public int lastIndexOf(T anEntry) {\n checkInitialization();\n int position = -1;\n\n if (!(isEmpty())) {\n int index = numberOfElements - 1;\n\n // Searching from back of list\n do {\n if (anEntry.equals(list[index])) {\n position = index;\n }\n index--;\n } while ((position < 0) && (index >= 0));\n }\n\n return position;\n }", "title": "" }, { "docid": "000e602945b38f5a216b0fffa6bbdcbf", "score": "0.5280241", "text": "public void advance() {\n if (endpos()) {\n throw new NoSuchElementException(\"Already at the end of this List\");\n }\n pos = pos.next;\n }", "title": "" }, { "docid": "4a2c0f3813edf61f87f4b433a551c53f", "score": "0.52686745", "text": "@Override\n public boolean remove(E item) {\n int hashCode = item.hashCode();\n if (isEmpty() || hashCode < head.hashCode || hashCode > tail.hashCode) {\n return false;\n }\n\n //search for item between head and tail\n SearchResult<E> searchResult = search(hashCode);\n\n // Remove node if found, otherwise nothing to do and return false\n if (searchResult.current.hashCode == hashCode) {\n if (searchResult.current == head && searchResult.current == tail) {\n // We are removing the last item\n head = null;\n tail = null;\n }\n else if (searchResult.current == head) {\n // Adjust head to point to the next item if given item refers to head\n head = head.next;\n } else if (searchResult.current == tail) {\n // Adjust tail to point to the predecessor item if given item refers to tail\n searchResult.predecessor.next = null;\n tail = searchResult.predecessor;\n } else {\n // Item is somewhere between tail and head\n searchResult.predecessor.next = searchResult.current.next;\n }\n return true;\n } else {\n // Not found, so nothing to do\n return false;\n }\n }", "title": "" }, { "docid": "798892b3c6b4c79ce2120f3bfcf8622b", "score": "0.5264892", "text": "private static void moveToEndOfQueue(EntryInfo e) {\n\t\te.next.prev = e.prev;\n\t\tif (e == entryQueueHead) {\n\t\t\tentryQueueHead = e.next;\n\t\t} else {\n\t\t\te.prev.next = e.next;\n\t\t}\n\t\tentryQueueTail.next = e;\n\t\te.prev = entryQueueTail;\n\t\te.next = null;\n\t\tentryQueueTail = e;\n\t}", "title": "" }, { "docid": "13b20578fe35b32d7f6762c9b2ba5958", "score": "0.5264543", "text": "@Nonnull\n public Optional<Integer> findPosition(@Nonnull T item) {\n // Queue is empty.\n if (newEnd == null) {\n assert oldEnd == null;\n return Optional.empty();\n }\n // Item not in queue.\n if (!hashLookup.containsKey(item)) {\n return Optional.empty();\n }\n // Item in queue.\n int index = 0;\n Node<T> current = newEnd;\n //noinspection ConditionalBreakInInfiniteLoop\n while (true) {\n if (current.item.equals(item)) {\n break;\n }\n index++;\n current = current.older;\n assert current != null: \"The item should exit but was not found\";\n }\n return Optional.of(index);\n }", "title": "" }, { "docid": "cbf0228a8c86575961dc8fba158f8782", "score": "0.5258742", "text": "@Override\n public void remove()\n {\n if (isEmpty() || lastItemReturned == null)\n {\n throw new NoSuchElementException();\n }\n else\n {\n // only one node in list\n if (size() == 1)\n {\n head = null;\n }\n\n // first node in list\n else if (lastItemReturned.previous == null)\n {\n head = nextItem;\n lastItemReturned.next.previous = null;\n }\n // last node in list\n else if (lastItemReturned.next == null)\n {\n lastItemReturned.previous.next = null;\n }\n else // everything else in between\n {\n lastItemReturned.previous.next = lastItemReturned.next;\n lastItemReturned.next.previous = lastItemReturned.previous;\n }\n size--;\n lastItemReturned = null;\n }\n }", "title": "" }, { "docid": "ab424a6ac3049d5af8757cddd5bcf328", "score": "0.52490216", "text": "void addItemToTodoList(ListItems item);", "title": "" }, { "docid": "fb5ce2a21c1eda9c635932773a729c15", "score": "0.52470857", "text": "private void siftDown() {\r\n\t\tint k = 0;\r\n\t\tint l = 2 * k + 1;\r\n\t\twhile (l < items.size()) {\r\n\t\t\tint max = l, r = l + 1;\r\n\t\t\tif (r < items.size()) { // there is a right child\r\n\t\t\t\tif (items.get(r).compareTo(items.get(l)) > 0) {\r\n\t\t\t\t\tmax++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (items.get(k).compareTo(items.get(max)) < 0) {\r\n\t\t\t\t// switch\r\n\t\t\t\tItem temp = items.get(k);\r\n\t\t\t\titems.set(k, items.get(max));\r\n\t\t\t\titems.set(max, temp);\r\n\t\t\t\tk = max;\r\n\t\t\t\tl = 2 * k + 1;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cf8b4db242ff0943da5cf7470e617f9b", "score": "0.52468693", "text": "@Override\n public void onItemMoved(int source, int destination) {\n swappedPositions.clear();\n persistenceManager.swapPriorities(getItemId(source), getItemId(destination));\n changeCursor(persistenceManager.getAllToDosCursor());\n }", "title": "" }, { "docid": "762a3b86980cdd8895e581f597f71972", "score": "0.5234323", "text": "public Item removeFirst(){\n\n \t\tif(isEmpty()){\n \t\t\tthrow new NoSuchElementException();\n \t\t}\n\n \t\t//return list.removeFirst();\n\n\n \t\tNode toreturn = first;\n\n \t\tfirst = first.next;\n\n \t\tif(first != null){\n \t\t\tfirst.previous = null;\n \t\t}else{\n \t\t\tlast = null;\n \t\t}\n\n \t\tsize--;\n\n \t\treturn toreturn.item;\n \t}", "title": "" }, { "docid": "f215084c32763923a48ad50540de26a8", "score": "0.52307814", "text": "abstract int moveTask(String taskName, TaskList listName);", "title": "" }, { "docid": "0843b3d5c41ce0bd7d925c90eaf46ebd", "score": "0.52162164", "text": "public <T> boolean insertAfter(T obj, T newObj){\r\n Link<T> newLink = new Link<T>(newObj);\r\n Link<T> curLink = front;\r\n if(isEmpty()) return false;\r\n else{\r\n while(!isEquals(curLink.data, obj)){\r\n curLink = curLink.next;\r\n if(curLink == front) return false; // can not find obj in the list\r\n }\r\n newLink.next = curLink.next;\r\n curLink.next = newLink;\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "7f3d63566d92e76ec0baabd44ea78af1", "score": "0.5211993", "text": "public void delete() {\n if (endpos()) {\n throw new NoSuchElementException(\"Already at the end of this List\");\n }\n pos.next = pos.next.next;\n zustand++;\n }", "title": "" }, { "docid": "129c31481ff6d7654f5c728b9fb69bc2", "score": "0.51950824", "text": "private Optional<WalkInAppointment> nextWalkInAppointment(List<WalkInAppointment> walkInAppointmentList, int appointmentId) {\n Iterator<WalkInAppointment> itr = walkInAppointmentList.iterator();\n while (itr.hasNext()) {\n WalkInAppointment nextWalkInAppointment = itr.next();\n if (nextWalkInAppointment.getWalkInAppointmentId().equals(appointmentId)\n && itr.hasNext()) {\n nextWalkInAppointment = itr.next();\n log.info(\"Next WalkInAppointment: \" + nextWalkInAppointment);\n return Optional.of(nextWalkInAppointment);\n }\n }\n return Optional.empty();\n }", "title": "" }, { "docid": "78f5cf9c69e84d360ec635d333742c8a", "score": "0.51865655", "text": "public void takeItem(Item item) {\r\n for(int i = 0; i < items.length; i++) {\r\n if(items[i].getItemNum() == item.getItemNum()) {\r\n items[i].takeItem(true);\r\n return;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ee8fd0ce18093b42c1d05182a2e69ed4", "score": "0.5177492", "text": "public void moveToStart() {\n this.curr = this.head;\n }", "title": "" }, { "docid": "8c738d5a9e14cc6e8b6b259571a0a31e", "score": "0.51737547", "text": "public int moveUp(int index) {\n\tint newIndex;\n\tSong temp = songList.remove(index);\n\tif (index == 0)\n\t{\n\tsongList.add(temp);\n\tnewIndex = songList.size()-1;\n\n\t}\n\telse\n\t{\n\tnewIndex = index - 1;\n\tsongList.add(newIndex, temp);\n\t}\n\n\treturn newIndex;\n\t}", "title": "" }, { "docid": "06fdc88d9e96e7929be8b8e882bb5350", "score": "0.5169537", "text": "public void moveDown() {\t\n\t\tif (getSelectedItem() >= getItems().size()-1) return;\n\t\tswitchItems(getItems(), getSelectedItem(), getSelectedItem()+1);\n\t\t\n\t\tgetListener().updateArguments(getItems());\n\t\tsetAvailabilityButtons();\n\t\t\n\t}", "title": "" }, { "docid": "ebf3c9ff9f0e7b9066613af62bb080a0", "score": "0.5161063", "text": "@Test\n void able_to_remove_item_to_existing_todo_list() {\n }", "title": "" }, { "docid": "d854484ecda640ba58231e254c5022f3", "score": "0.51585025", "text": "public String mSearchItem(String mSearch){\n\n int index = mTodoList.indexOf(mSearch);\n\n if (index < 0){\n return null;\n } else {\n return mTodoList.get(index);\n }\n\n }", "title": "" }, { "docid": "04d5de0c47384c1aeab94d34358ac638", "score": "0.5153975", "text": "public void remove()\n {\n if (lastItemReturned == null)\n {\n throw new IllegalStateException();\n }\n if (lastItemReturned == mHead) {//if we are trying to remove the head\n \t\tmHead = nextItem;\n \t\tmHead.prev = null;\n \t\t\n }\n else if(lastItemReturned == mTail) {//trying to remove the tail\n \t\tlastItemReturned.prev.next = null;\n \t\tmTail = lastItemReturned.prev;\n \t\tmTail.next = null;\n\n }\n else if (lastItemReturned != mHead && lastItemReturned != mTail){\n \t\tlastItemReturned.next.prev = lastItemReturned.prev;\n \t\tlastItemReturned.prev.next = lastItemReturned.next;\n }\t\n \t\tsize--;\n \t\tindex--;\n }", "title": "" }, { "docid": "dae63529095f2d6c27dea143ae399c7e", "score": "0.5150206", "text": "boolean onItemMove(RecyclerView.ViewHolder srcHolder, RecyclerView.ViewHolder targetHolder);", "title": "" }, { "docid": "fd7a2eedf47c1e79340242a0806b6fd0", "score": "0.51488686", "text": "@Override\r\n\tpublic void addAfter(T element, T target) {\r\n\t\tint targetIndex = indexOf(target);\r\n\r\n\t\tif (targetIndex == -1) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tadd(targetIndex + 1, element);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "eed16face3fcd98fc472de288a3ee177", "score": "0.5134942", "text": "public void insertAtBack( T insertItem )\n {\n if ( isEmpty() ) // firstNode and lastNode refer to same Object\n firstNode = lastNode = new ListNode( insertItem );\n else // lastNode's nextNode refers to new node\n lastNode = lastNode.nextNode = new ListNode( insertItem );\n }", "title": "" }, { "docid": "3ccc0c082f03a76b14c2349273818b47", "score": "0.5134433", "text": "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK && requestCode == 1) {\n // Extract name value from result extras\n String task = data.getStringExtra(\"task\");\n int position = (int) data.getExtras().get(\"position\");\n int id = (int)data.getExtras().get(\"id\");\n Date date = (Date)data.getExtras().get(\"duedate\");\n String status = data.getStringExtra(\"status\");\n ToDoItem toDoItem = new ToDoItem(task, date, status);\n toDoItem.setId(id);\n db.updateTask(toDoItem);\n toDoItems.remove(position);\n toDoItems.add(position,toDoItem);\n aToDoAdapter.notifyDataSetChanged();\n\n\n }\n }", "title": "" }, { "docid": "12bb4c353f35549eb8168432f0a42b17", "score": "0.51254123", "text": "private void removeItem() {\n\t\tcurrentUsersFollows.remove(currentPosition);\n\t\tfollowItems.remove(currentPosition);\n\t\t// remove from list view\n\t\tListView followList = (ListView) findViewById(R.id.listView_follow);\n\t\tFollowListAdapter badapter = (FollowListAdapter) followList.getAdapter();\n\t\tbadapter.notifyDataSetChanged();\n\t}", "title": "" }, { "docid": "cc91c5e23ed9d36da0e8482a6fd384d9", "score": "0.51172805", "text": "private void moveAllEntriesBack() {\n final List<ListEntry> allEntries = getAllEntries();\n final SQLiteDatabase db = this.getWritableDatabase();\n\n for (final ListEntry e : allEntries) {\n e.setOrderIndex(e.getOrderIndex() + 1);\n final ContentValues allEntriesValues = new ContentValues();\n allEntriesValues.put(ListEntryTable.COLUMN_ORDERINDEX, e.getOrderIndex());\n db.update(ListEntryTable.TABLE_NAME, allEntriesValues, ListEntryTable.COLUMN_ID + \" = ?\",\n new String[]{String.valueOf(e.getId())});\n }\n db.close();\n }", "title": "" }, { "docid": "b06a18820a17d4ed3c40380f107b0e3f", "score": "0.5116135", "text": "public boolean moveToPos(int pos) {\n if (pos >= this.length() || pos < 0) {\n System.out.println(this.currPos());\n return false;\n }\n \n while (this.currPos() != pos) {\n if (this.curr == this.tail) {\n this.curr = this.head;\n } else {\n this.next();\n }\n }\n return true;\n }", "title": "" }, { "docid": "12140fac6c4060e02cee95bf536f2b8e", "score": "0.511181", "text": "private void siftUp() {\r\n\t\tint k = items.size() - 1;\r\n\t\twhile (k > 0) {\r\n\t\t\tint p = (k - 1) / 2;\r\n\t\t\tItem item = items.get(k);\r\n\t\t\tItem parent = items.get(p);\r\n\t\t\tif (item.compareTo(parent) > 0) {\r\n\r\n\t\t\t\t// swap\r\n\t\t\t\titems.set(k, parent);\r\n\t\t\t\titems.set(p, item);\r\n\r\n\t\t\t\t// move up one level\r\n\t\t\t\tk = p;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b17ca206209738baabc86be32f7fe320", "score": "0.5100104", "text": "boolean moveToLast();", "title": "" }, { "docid": "cf6bcb539005d1b6690c32bfb17c66cc", "score": "0.5100075", "text": "private void removeItemByIndex(int position) {\n\t\t\n\t\tif(position == 0){\n\t\t\tthis.start = this.start.getNextNode();\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tint index = 0;\n\t\tfor(Node<Item> node = this.start; node != null; node=node.getNextNode(), index++){\n\t\t\tif(index+1 == position){\n\t\t\t\tif(position != size-1)\n\t\t\t\t\tnode.setNextNode(node.getNextNode().getNextNode());\n\t\t\t\telse\n\t\t\t\t\tnode.setNextNode(null);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0b25ba9f976792facdfbf0cbb312c4c8", "score": "0.50997454", "text": "static void vimlist_remove(list_C l, listitem_C item, listitem_C item2)\n {\n /* notify watchers */\n for (listitem_C ip = item; ip != null; ip = ip.li_next)\n {\n --l.lv_len;\n list_fix_watch(l, ip);\n if (ip == item2)\n break;\n }\n\n if (item2.li_next == null)\n l.lv_last = item.li_prev;\n else\n item2.li_next.li_prev = item.li_prev;\n if (item.li_prev == null)\n l.lv_first = item2.li_next;\n else\n item.li_prev.li_next = item2.li_next;\n l.lv_idx_item = null;\n }", "title": "" }, { "docid": "21edd0715f6764ecd7e94e49a5a63f58", "score": "0.5095914", "text": "public static void moveListItemDown(JList list,int index)\n {\n Object item = ((DefaultListModel)list.getModel()).remove(index);\n ((DefaultListModel)list.getModel()).add(index + 1, item);\n list.setSelectedIndex(index + 1);\n }", "title": "" }, { "docid": "ddbe392cd41346c601a0655c940f07e9", "score": "0.50958335", "text": "@Override\n public T removeFirst() {\n ItemNode first = sentinel.next;\n if (first == sentinel) {\n return null;\n } else {\n first.next.prev = sentinel;\n sentinel.next = first.next;\n size -= 1;\n return first.item;\n }\n }", "title": "" }, { "docid": "9bab6a0644d8c2ef110646ba669e4665", "score": "0.509493", "text": "void changeOneItemPlace(final org.eclipse.swt.widgets.List source, final org.eclipse.swt.widgets.List destination) {\n if (source.getSelectionIndex() < 0) {\n return;\n }\n String selected = source.getItem(source.getSelectionIndex());\n destination.add(selected);\n source.remove(selected);\n }", "title": "" }, { "docid": "8300682a7712669f8ddb2e5fb1b09613", "score": "0.50943005", "text": "private static void wantedToEdit(TaskList myTaskList, String secondWord, String strFileReadContent){\n try {\n // Edit - Update Task (regarding to Task ID)\n if (secondWord.equals(\"-u\")) {\n System.out.println(\"second word (-u): \" + secondWord);\n System.out.println(\"|ID|hasDone|ProjectName|TaskTitle|DateCreated|DateDue|\");\n System.out.println(myTaskList.toString());\n System.out.println(\"Select the ID of Task that you want to update\");\n int updateID = Integer.valueOf(reader.nextLine());\n try {\n // Find the Task whose ID was entered\n Optional<Task> t = myTaskList.listOfTasks.stream()\n .filter(i -> i.getID() == updateID)\n .findFirst();\n // Check the entered Task ID - If there is a task whose ID has entered, update\n if (!t.equals(Optional.empty())) {\n System.out.println(\"Please update the task (ID: \" + updateID + \")\");\n toUpdateTask = ToDoApp.createTask(updateID);\n int indexOfTask = myTaskList.listOfTasks.indexOf(t.get());\n myTaskList.listOfTasks.get(indexOfTask).setNameProject(toUpdateTask.getNameProject());\n myTaskList.listOfTasks.get(indexOfTask).setTitleTask(toUpdateTask.getTitleTask());\n myTaskList.listOfTasks.get(indexOfTask).setDateDueDate(toUpdateTask.getDueDate());\n toUpdateTask = null;\n // If the entered ID is wrong\n } else\n System.out.println(\"Wrong index! Please try again!\");\n } catch (IndexOutOfBoundsException iobedit){\n System.out.println(\"Wrong index! Please try again!\");\n }\n\n // Edit - Mark as Done\n } else if (secondWord.equals(\"-m\")) {\n System.out.println(\"second word (-m): \" + secondWord);\n System.out.println(\"|ID|hasDone|ProjectName|TaskTitle|DateCreated|DateDue|\");\n System.out.println(myTaskList.toString());\n System.out.println(\"Select the ID of Task that you want to mar as done or not\");\n int markDoneID = Integer.valueOf(reader.nextLine());\n try {\n // Find the Task whose ID was entered\n Optional<Task> t = myTaskList.listOfTasks.stream()\n .filter(i -> i.getID() == markDoneID)\n .findFirst();\n // Check the entered Task ID - If there is a task whose ID has entered, mark as Done\n if ( !t.equals(Optional.empty())) {\n int indexOfTask = myTaskList.listOfTasks.indexOf(t.get());\n myTaskList.listOfTasks.get(indexOfTask).setHasDone();\n System.out.println(\"|ID|hasDone|ProjectName|TaskTitle|DateCreated|DateDue|\");\n System.out.println(myTaskList.toString());\n }\n // If the entered ID is wrong\n else\n System.out.println(\"Wrong index! Please try again!\");\n } catch (IndexOutOfBoundsException iobedit){\n System.out.println(\"Wrong index! Please try again!\");\n }\n // Edit - Remove\n } else if (secondWord.equals(\"-r\")) {\n System.out.println(\"second word (-r): \" + secondWord);\n System.out.println(\"|ID|hasDone|ProjectName|TaskTitle|DateCreated|DateDue|\");\n System.out.println(myTaskList.toString());\n System.out.println(\"Select the ID of Task that you want to remove\");\n int removeTaskID = Integer.valueOf(reader.nextLine());\n try {\n // Find the Task whose ID was entered\n Optional<Task> t = myTaskList.listOfTasks.stream()\n .filter(i -> i.getID() == removeTaskID)\n .findFirst();\n // Check the entered Task ID - If there is a task whose ID has entered, remove\n if (!t.equals(Optional.empty())) {\n int indexOfTask = myTaskList.listOfTasks.indexOf(t.get());\n myTaskList.listOfTasks.remove(indexOfTask);\n System.out.println(\"|ID|hasDone|ProjectName|TaskTitle|DateCreated|DateDue|\");\n System.out.println(myTaskList.toString());\n // If the entered ID is wrong\n }else\n System.out.println(\"Wrong index! Please try again!\");\n } catch (IndexOutOfBoundsException iobedit){\n System.out.println(\"Wrong index! Please try again!\");\n }\n //System.out.println(myTaskList.toString());\n\n } else {\n System.out.println(\"second word : \" + secondWord + \"\\t Wrong parameter! Try again. 'help' for the commands list\");\n }\n }catch (NullPointerException ex) {\n System.out.println(\"second word : \" + secondWord + \"\\t Wrong parameter! Try again. 'help' for the commands list\");\n //System.out.println(ex);\n //System.out.println(\"<----- PRINT FILE CONTENT AS STRING ----->\");\n //System.out.println(strFileReadContent);\n }\n }", "title": "" }, { "docid": "59487545414fe9a5900b49d5b8022eb0", "score": "0.50888497", "text": "static private <T extends Comparable<? super T>> void insertInOrder(T item, ListInterface<T> list, int first,\n\t\t\tint last) {\n\t\t\n\t\t// work from the last to first, since we have to shift items\n\t\t\n\t\tint index = last;\n\n\t\tfor (; index >= first; index--) {\n\t\t\tT current = list.getEntry(index);\n\t\t\t// shift the item to the right if it is larger\n\t\t\tif (current.compareTo(item) > 0)\n\t\t\t\tlist.replace(index + 1, current);\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\t// went one too far, replace current item in the right slot.\n\t\tlist.replace(index + 1, item);\n\n\t}", "title": "" }, { "docid": "2a89d2c742f8ca15c00acd0a00585124", "score": "0.5082988", "text": "public TodoItem getTodoItem(String item_name) {\n\n for (TodoItem item : item_list) {\n if (item.getTitle().equals(item_name)) {\n return item;\n }\n }\n return null;\n }", "title": "" }, { "docid": "954502eca447d381dd73cd5f3000e22c", "score": "0.5080412", "text": "Item pop();", "title": "" }, { "docid": "954502eca447d381dd73cd5f3000e22c", "score": "0.5080412", "text": "Item pop();", "title": "" }, { "docid": "24c1ed31c01cc377348fa5ea57214c5e", "score": "0.5080357", "text": "void traverseBackward(DoublyLinkedList<T> newElement);", "title": "" }, { "docid": "b2b1908c9f1ff472cf3c48288919e2af", "score": "0.5079269", "text": "private boolean testAddAfter(IndexedUnsortedList<Integer> list, Integer target, Integer element, Result expectedResult) {\r\n\t\tResult result;\r\n\t\ttry {\r\n\t\t\tlist.addAfter(element, target);\r\n\t\t\tresult = Result.NoException;\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tresult = Result.NoSuchElement;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.printf(\"%s caught unexpected %s\\n\", \"testAddAfter\", e.toString());\r\n\t\t\te.printStackTrace();\r\n\t\t\tresult = Result.UnexpectedException;\r\n\t\t}\r\n\t\treturn result == expectedResult;\r\n\t}", "title": "" }, { "docid": "e942e61af4e1cf4f54dea324237a015f", "score": "0.5078523", "text": "@Override\n\t\tpublic void endToDo() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e3f88a559a5dbf02438dd7ecf30d4d90", "score": "0.5076912", "text": "public void moveQueueItem(int index1, int index2) {\n synchronized (this) {\n if (index1 >= mPlayListLen) {\n index1 = mPlayListLen - 1;\n }\n if (index2 >= mPlayListLen) {\n index2 = mPlayListLen - 1;\n }\n if (index1 < index2) {\n long tmp = mPlayList[index1];\n for (int i = index1; i < index2; i++) {\n mPlayList[i] = mPlayList[i+1];\n }\n mPlayList[index2] = tmp;\n if (mPlayPos == index1) {\n mPlayPos = index2;\n } else if (mPlayPos >= index1 && mPlayPos <= index2) {\n mPlayPos--;\n }\n } else if (index2 < index1) {\n long tmp = mPlayList[index1];\n for (int i = index1; i > index2; i--) {\n mPlayList[i] = mPlayList[i-1];\n }\n mPlayList[index2] = tmp;\n if (mPlayPos == index1) {\n mPlayPos = index2;\n } else if (mPlayPos >= index2 && mPlayPos <= index1) {\n mPlayPos++;\n }\n }\n notifyChange(QUEUE_CHANGED);\n }\n }", "title": "" }, { "docid": "ef0dce1fbe3721771d767dd6a3c82661", "score": "0.507384", "text": "public static List<Integer> moveElementToEnd(List<Integer> array, int toMove) {\n\t\tInteger[] arrayed = new Integer[array.size()];\n\t\tfor(int i = 0; i < array.size(); i++) {\n\t\t\tarrayed[i] = array.get(i);\n\t\t}\n\t\t\n\t\tfor(int index = 0; index < arrayed.length; index++) {\n\t\t\t\n\t\t\tif(arrayed[index] == toMove) {\n\t\t\t\n\t\t\t\tif(index + 1 < arrayed.length) {\n\t\t\t\t\tint j = index + 1;\n\t\t\t\t\twhile(j < arrayed.length -1 && arrayed[j] == toMove) {\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\tint temp = arrayed[j];\n\t\t\t\tarrayed[index] = temp;\n\t\t\t\tarrayed[j] = toMove;\n\t\t\t\t} \n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n return Arrays.asList(arrayed);\n\t\t\n }", "title": "" }, { "docid": "13e1d0b96aef99449aba90d6adbb2e1d", "score": "0.50701356", "text": "static boolean next_for_item(forinfo_C fi, Bytes arg)\n {\n listitem_C item = fi.fi_lw.lw_item;\n if (item == null)\n return false;\n\n fi.fi_lw.lw_item = item.li_next;\n return ex_let_vars(arg, item.li_tv, true, fi.fi_semicolon, fi.fi_varcount, null);\n }", "title": "" }, { "docid": "012886abcdec56381aa691d9f21db5a0", "score": "0.5065874", "text": "@Override\r\n\tpublic int insertAfter(Object element, Object after) {\n\t\tif(indexOf(element) == indexOf(after)){\r\n\t\t\treturn indexOf(element);\r\n\t\t}\r\n\t\t// if doesn't contain after, returns -1;\r\n\t\t// could return idexOf(after), however means going through list twice.\r\n\t\telse if (!contains(after)){\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t\r\n\t\t//uses insetAt method to add the element to list (efficiency), index offset by +1 so it's after.\r\n\t\tinsertAt(element, indexOf(after)+1);\r\n\r\n\t\treturn indexOf(element);\r\n\t}", "title": "" }, { "docid": "100eeb85c212c3621cdd7df37f390e75", "score": "0.50635487", "text": "public void backUpMove(){\n Move lastMove = getLastMove();\n //Flip flops the move so now the end is the start\n Move reverseMove = new Move(lastMove.getEnd(), lastMove.getStart());\n game.makeMove(reverseMove);\n\n Piece p = game.backupLastMove();\n if (p != null){\n //even if the move is made by the red person, the original\n //will be returned\n Move convertedMove = game.moveConverter(lastMove);\n Position piecePos = game.getPiecePosition(convertedMove);\n game.addPiece(piecePos.getRow(), piecePos.getCol(), p);\n }\n //if we have nothing in the queue (meaning we went all the way back\n //to start of turn, look for anymove anywhere\n if(game.isTurnEmpty()) {\n lookForMoves();\n //else, look for moves only at that last move, so the jump\n //in the middle of the last double jump\n } else {\n lastMove = game.moveConverter(lastMove);\n lookInSpace(lastMove.getStart().getRow(), lastMove.getStart().getCol());\n }\n }", "title": "" }, { "docid": "96c71e5152e72acfa5c6518ddef09db4", "score": "0.50607103", "text": "public String doMoveDownEntry( HttpServletRequest request )\n {\n Plugin plugin = getPlugin( );\n IEntry entry;\n\n String strIdEntry = request.getParameter( PARAMETER_ID_ENTRY );\n int nIdEntry = SuggestUtils.getIntegerParameter( strIdEntry );\n\n entry = EntryHome.findByPrimaryKey( nIdEntry, plugin );\n\n Suggest suggest = SuggestHome.findByPrimaryKey( _nIdSuggest, plugin );\n\n if ( ( entry == null ) || ( suggest == null ) ||\n !RBACService.isAuthorized( Suggest.RESOURCE_TYPE, EMPTY_STRING + _nIdSuggest,\n SuggestResourceIdService.PERMISSION_MODIFY, getUser( ) ) )\n {\n return getJspManageSuggest( request );\n }\n\n List<IEntry> listEntry;\n EntryFilter filter = new EntryFilter( );\n filter.setIdSuggest( entry.getSuggest( ).getIdSuggest( ) );\n listEntry = EntryHome.getEntryList( filter, plugin );\n\n int nIndexEntry = SuggestUtils.getIndexEntryInTheEntryList( nIdEntry, listEntry );\n\n if ( nIndexEntry != ( listEntry.size( ) - 1 ) )\n {\n int nNewPosition;\n IEntry entryToInversePosition;\n entryToInversePosition = listEntry.get( nIndexEntry + 1 );\n entryToInversePosition = EntryHome.findByPrimaryKey( entryToInversePosition.getIdEntry( ), plugin );\n nNewPosition = entryToInversePosition.getPosition( );\n entryToInversePosition.setPosition( entry.getPosition( ) );\n entry.setPosition( nNewPosition );\n EntryHome.update( entry, plugin );\n EntryHome.update( entryToInversePosition, plugin );\n }\n\n return getJspModifySuggest( request, suggest.getIdSuggest( ) );\n }", "title": "" }, { "docid": "99a92f501dbdc13e7b8c1c1afd0895b9", "score": "0.50582784", "text": "public void moveDown() {\r\n\r\n\t\tint[] selectionIndices = SWTList.getSelectionIndices();\r\n\t\tint selectionIndex = ArrayUtils.smaller(selectionIndices);\r\n\t\tmoveTo(selectionIndex+1, selectionIndices);\r\n\t\tSWTList.moveDown(selectionIndices, selectionIndex+1);\r\n\r\n\t}", "title": "" }, { "docid": "8b8962ae6aa7a1751cfe22a7dadb7fa3", "score": "0.5043763", "text": "private item<K, V> findKey(item<K, V> i, K key) {\n if (i.getKey().equals(key)) {\n continas = true;\n prev = i;\n return i;\n }\n\n while (i != null) {\n if (i.getKey().equals(key)) {\n continas = true;\n return i;\n }\n prev = i;\n i = i.getNext();\n }\n\n return prev;\n }", "title": "" }, { "docid": "99513d62ecbf807fe09d2937f040d2f0", "score": "0.5033504", "text": "public void markAsUndone(String ind, UI ui) throws WhoBotException {\n assert ui != null;\n try {\n int index = Integer.parseInt(ind) - 1;\n if (index < list.size()) {\n list.get(index).markAsUndone();\n ui.echo(\"I have marked this task incomplete: \\\"\" + list.get(index).getDescription() + \"\\\"\",\n UI.Type.COMPLETE);\n } else {\n throw new WhoBotException(\"Oops, The index you gave is out of bound. There are only \"\n + list.size() + \" tasks\");\n }\n } catch (NumberFormatException ex) {\n throw new WhoBotException(\"I didn't get what you meant. \"\n + \"Ensure that the command is of the form \\\"undo #index\\\"\");\n }\n }", "title": "" }, { "docid": "5d8d6452f3e8da05ded0e0394f4c577d", "score": "0.50216764", "text": "protected void lowerItem(int index){//TODO\n\t\t\n\t\tfinal SVGHandle handle=Editor.getEditor().getHandlesManager().getCurrentHandle();\n\t\tAnimationListItem listItem=(AnimationListItem)animationList.getSelectedValue();\n\t\tfinal Element currentElement=listItem.getAnimationObject().getAnimationElement();\n\t\tfinal Element parentElement=(Element)currentElement.getParentNode();\n\t\tElement nextElement=null;\n\t\t\n\t\t//getting the next element\n\t\tif(index+1<animationList.getModel().getSize()) {\n\t\t\t\n\t\t\tAnimationListItem nextListItem=(AnimationListItem)\n\t\t\t\tanimationList.getModel().getElementAt(index+1);\n\t\t\t\n\t\t\tif(nextListItem!=null) {\n\n\t\t\t\tnextElement=nextListItem.getAnimationObject().getAnimationElement();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfinal Element fnextElement=nextElement;\n\t\tRunnable executeRunnable=null, undoRunnable=null;\n\t\t\n\t\tif(nextElement!=null) {\n\t\t\t\n\t\t\t//getting the next element of the next element\n\t\t\tElement nextNextElement=null;\n\t\t\t\n\t\t\tif(index+2<animationList.getModel().getSize()) {\n\t\t\t\t\n\t\t\t\tAnimationListItem nextNextListItem=\n\t\t\t\t\t(AnimationListItem)animationList.getModel().getElementAt(index+2);\n\t\t\t\t\n\t\t\t\tif(nextNextListItem!=null) {\n\n\t\t\t\t\tnextNextElement=\n\t\t\t\t\t\tnextNextListItem.getAnimationObject().getAnimationElement();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal Element fnextNextElement=nextNextElement;\n\t\t\t\n\t\t\t//the runnable used to execute the action\n\t\t\texecuteRunnable=new Runnable() {\n\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\n\t\t\t\t\tif(fnextNextElement!=null) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//putting the current element before the next element of the next element\n\t\t\t\t\t\tparentElement.insertBefore(currentElement, fnextNextElement);\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//putting the current element at the end of all the animation nodes\n\t\t\t\t\t\tparentElement.appendChild(currentElement);\n\t\t\t\t\t}\n\n\t\t\t\t\thandle.getSvgDOMListenerManager().\n\t\t\t\t\t\tfireNodeInserted(parentElement, currentElement);\n\t\t\t\t\thandle.getSelection().handleSelection(parentElement, false, true);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t//the undo runnable\n\t\t\tundoRunnable=new Runnable() {\n\n\t\t\t\tpublic void run() {\n\t\t\t\t\t\n\t\t\t\t\t//putting the current element before the next element\n\t\t\t\t\tparentElement.insertBefore(currentElement, fnextElement);\n\t\t\t\t\thandle.getSvgDOMListenerManager().\n\t\t\t\t\t\tfireNodeInserted(parentElement, currentElement);\n\t\t\t\t\thandle.getSelection().handleSelection(parentElement, false, true);\n\t\t\t\t}\n\t\t\t};\n\t\t\t\n\t\t\t//adding the undo/redo action\n\t\t\tgetAnimationsAndActionsMenu().addUndoRedoAction(\n\t\t\t\t\texecuteRunnable, undoRunnable, executeRunnable);\n\t\t}\n\t}", "title": "" }, { "docid": "ca0b201bd9b9529b2702c88aeb54a353", "score": "0.5020991", "text": "@Override\n public void onClick(View view) {\n listadapter.restoreItem(deletedItem, deletedIndex);\n\n\n // workoutList.add(deletedIndex,deletedItem);\n\n }", "title": "" }, { "docid": "fefb5188bd107c37ed7d0937a9e2a019", "score": "0.5014495", "text": "public void scrollListToLastPosition(){\n int index = itemsListView.getFirstVisiblePosition();\n View v = itemsListView.getChildAt(0);\n int top = (v == null) ? 0 : (v.getTop() - itemsListView.getPaddingTop());\n\n // restore index and position\n itemsListView.setSelectionFromTop(index, top);\n\n }", "title": "" }, { "docid": "4f38b09669d9437409aeb46d6979177e", "score": "0.50136447", "text": "private boolean findItem(Node current, int value) {\n\t\t// TODO Auto-generated method stub\n\t\tif (current==null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (current.value== value) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn current.value>value ?findItem(current.left, value):findItem(current.right, value);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "2914ff1fb4f094a32ac37c6809e93d28", "score": "0.50130767", "text": "public void undo() {\n tasks.add(position, task);\n adapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "7787a6fedae0cd32cfacfc8feccae541", "score": "0.5011039", "text": "public void checkItem(final ToDoItem item) {\n if (mClient == null) {\n return;\n }\n\n // Set the item as completed and update it in the table\n item.setComplete(true);\n\n AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>(){\n @Override\n protected Void doInBackground(Void... params) {\n try {\n\n checkItemInTable(item);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (item.isComplete()) {\n mAdapter.remove(item);\n }\n }\n });\n } catch (final Exception e) {\n createAndShowDialogFromTask(e, \"Error\");\n }\n\n return null;\n }\n };\n\n runAsyncTask(task);\n\n }", "title": "" }, { "docid": "47911d93e2434e87d7d594318f475d84", "score": "0.5003551", "text": "protected abstract void findNext();", "title": "" }, { "docid": "9af98d9a7b38ddba7395a21c2ad43577", "score": "0.49999502", "text": "void deleteBack(){\n\n\t\tif (this.length() > 0){ // failed here\n\n\t\t\t// if the index is at the end of the list and \n\t\t\t// not off end, dec index and make it off end\n\t\t\tif (index == this.length() - 1) { \n\t\t\t\titerator = null; \n\t\t\t\tindex = -1; \n\t\t\t}\n\n\t\t\tif (len == 1){\n\n\t\t\t\tfront = back = null; \n\t\t\t\tlen = 0; \n\t\t\t}\n\t\t\telse {\n\n\t\t\t\tback = back.prev; \n\t\t\t\tback.next = null; \n\t\t\t\tlen--; \n\t\t\t}\n\t\t\t\n\n\t\t} else \n\t\tthrow new RuntimeException(\"Error, List is empty.\"); \n\n\t}", "title": "" }, { "docid": "4ec76dc70f54c8abd74a1865dfde4f4d", "score": "0.4997873", "text": "public Item removeLast(){\n\n \t\tif(isEmpty()){\n \t\t\tthrow new NoSuchElementException();\n \t\t}\n\n \t\tNode toreturn = last;\n\n \t\tif(last.previous != null){\n \t\t\tlast.previous.next = null;\n \t\t}else{\n \t\t\tfirst = null;\n \t\t}\n\n \t\tlast = last.previous;\n\n\n\n \t\tsize--;\n\n \t\treturn toreturn.item;\n \t\t//return list.removeLast();\n \t}", "title": "" }, { "docid": "ff52384986a2b736c5f04e68169378e3", "score": "0.49967888", "text": "public void markAsDone(String ind, UI ui) throws WhoBotException {\n assert ui != null;\n try {\n int index = Integer.parseInt(ind) - 1;\n if (index < list.size()) {\n list.get(index).markAsDone();\n ui.echo(\"Congrats! I have marked this task complete: \\\"\" + list.get(index).getDescription() + \"\\\"\",\n UI.Type.COMPLETE);\n } else {\n throw new WhoBotException(\"Oops, The index you gave is out of bound. \"\n + \"There are only \" + list.size() + \" tasks\");\n }\n } catch (NumberFormatException ex) {\n throw new WhoBotException(\"I didn't get what you meant. \"\n + \"Ensure that the command is of the form \\\"done #index\\\"\");\n }\n }", "title": "" }, { "docid": "9195d0386d9a156509cb23d7c40d7129", "score": "0.49943358", "text": "public songLink remove(String song, String artist) {\n\t\tsongLink current = first;\n\t\tsongLink previous = null; // Prepare for loop to remove from list\n\t\t\n\t\twhile (current != null) { // Loop until item is found or end of list\n\t\t\tint compare = artist.compareTo(current.getArtist());\n\t\t\tif (compare == 0) { // Was artist found\n\t\t\t\tint titleCompare = song.compareTo(current.getSongTitle());\n\t\t\t\tif (titleCompare == 0) { // Was song title found\n\t\t\t\t\tif(previous == null) { // Is item the first item in the list\n\t\t\t\t\t\tsongLink temp = first; // Remove first item from the linked List\n\t\t\t\t\t\tfirst = first.next;\n\t\t\t\t\t\tnElems--;\n\t\t\t\t\t\treturn temp; // Return item removed\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\tprevious.next = current.next; // Item is not first item in list, change pointers to remove current item\n\t\t\t\t\t\tsongLink tempNext = current.next;\n\t\t\t\t\t\ttempNext.previous = previous;\n\t\t\t\t\t\tsongLink temp = current;\n\t\t\t\t\t\tnElems--;\n\t\t\t\t\t\treturn temp; // Return removed item\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tprevious = current; // Song title does not match, move to next item\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tprevious = current; // Artist does not match, move to next item\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t}\n\t\treturn null; // Item not found, return null\n\t}", "title": "" }, { "docid": "acb3ac83cc8f343d85cd3d47bf9ae461", "score": "0.4979278", "text": "public void pushAtNewEnd(@Nonnull T item) {\n // Check 'already newest' special case at beginning.\n if (newEnd != null && item.equals(newEnd.item)) {\n return;\n }\n Node<T> newNode;\n if (newEnd == null) {\n // The queue is empty.\n assert oldEnd == null;\n newNode = new Node<>(item, null, null);\n oldEnd = newNode;\n newEnd = newNode;\n hashLookup.put(item, newNode);\n return;\n }\n // The queue is not empty.\n assert oldEnd != null;\n Node<T> existingNode = hashLookup.get(item);\n if (existingNode == null) {\n // Not in queue, insert at new end.\n newNode = Node.after(newEnd, item);\n newEnd.newer = newNode;\n newEnd = newNode;\n hashLookup.put(item, newNode);\n return;\n }\n // Already in the queue, and not newest.\n assert existingNode.newer != null: \"existing node is not at new end, so it must have a previous item\";\n existingNode.newer.older = existingNode.older;\n if (existingNode.older != null) {\n existingNode.older.newer = existingNode.newer;\n } else {\n oldEnd = existingNode.newer;\n }\n existingNode.older = newEnd;\n existingNode.newer = null;\n newEnd.newer = existingNode;\n newEnd = existingNode;\n }", "title": "" }, { "docid": "cf2f5907cdbe86f6f75a56325cb0198f", "score": "0.49789023", "text": "public boolean remove(Athlete toRemove){\n boolean result = false;\n int pos = this.removeHelp(toRemove);\n // shift items over to fill in space of deleted item\n if (pos >= 0) { // found it!\n for (int i = pos; i < this.currSize-1; i++){\n this.data[i] = this.data[i+1];\n }\n this.currSize--; // remember that list is smaller now\n result = true;\n }\n return result;\n }", "title": "" }, { "docid": "6e3ec7d7d504e780433f6ce7e862a3b3", "score": "0.49774218", "text": "public void addBack(E item);", "title": "" }, { "docid": "04b8d93d098b2ab540d69b2f3dcf5e98", "score": "0.49773356", "text": "public void popItem ()\r\n\t\r\n\t{\r\n\t\t\r\n\t\tif( first != null )\r\n\t\t\r\n\t\t\tfirst = first.node;\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "528e1392ad0ba7a6e20564bcdba4e658", "score": "0.49681607", "text": "private void goUpOnePosition() {\n currentPosition ++;\n if (currentPosition >= DESIRED_ELBOW_POSITIONS.length) {\n currentPosition = DESIRED_ELBOW_POSITIONS.length - 1;\n }\n setDesiredPosition(currentPosition);\n }", "title": "" } ]
79e10033cacd216fafaf7af09003afc9
private Dbwaveerp dbServices = (Dbwaveerp) RuntimeAccess.getInstance().getServiceBean("dbwaveerp");
[ { "docid": "51671e53bd77244d462147805dbed070", "score": "0.7070223", "text": "public systemUserFunc() {\n super(INFO);\n //dbServices = (Dbwaveerp) RuntimeAccess.getInstance().getServiceBean(\"Dbwaveerp\");\n }", "title": "" } ]
[ { "docid": "d1c175de10b08eaa51fab2c13634c3cd", "score": "0.64195997", "text": "private DbService getDb() {\r\n\t\treturn db;\r\n\t}", "title": "" }, { "docid": "d95ea0e4b901a9141ac2d2b93bd7ce2d", "score": "0.6145374", "text": "private static ItfDatabaseManager getBean() throws Exception{\n return EJBHelper.getBeanRemoteInstance(SLSBDatabaseManager.class, ItfDatabaseManager.class);\n\n }", "title": "" }, { "docid": "058504edd63c0bebb79dbdfc47304d1a", "score": "0.6055725", "text": "public interface AppBsetFl2B01Service extends BaseService<AppBsetFl2B01,String> {\n\n int saveFromYw(DataSource dataSource)throws Exception;\n int saveFromZdwx(DataSource dataSource)throws Exception;\n String toSqliteInsertSql(AppBsetFl2B01 entity);\n}", "title": "" }, { "docid": "27c33263cd090b89911f0119ec521453", "score": "0.60177404", "text": "public interface DBService {\n\n /**\n * List all planet list.\n *\n * @return the list\n */\n List<Planet> listAllPlanet();\n\n /**\n * Route details list.\n *\n * @return the list\n */\n List<RouteDetail> routeDetails();\n\n /**\n * Save planet data.\n *\n * @param planets the planets\n */\n void savePlanetData(List<Planet> planets);\n\n /**\n * Save routs data.\n *\n * @param routes the routes\n */\n void saveRoutsData(List<Route> routes);\n\n /**\n * Save traffic data.\n *\n * @param traffic the traffic\n */\n void saveTrafficData(List<Traffic> traffic);\n\n /**\n * Gets planet name.\n *\n * @param pid the pid\n * @return the planet name\n */\n String getPlanetName(String pid);\n\n}", "title": "" }, { "docid": "f6561aa6fe47783370e74d05938cd456", "score": "0.5914412", "text": "LightyServices getServices();", "title": "" }, { "docid": "2643eee565a812d613a27a435fa8ae27", "score": "0.5906277", "text": "@RemoteServiceRelativePath(\"database\")\npublic interface DBConnection extends RemoteService {\n\tpublic User authenticateUser(String user, String pass);\n\tpublic Boolean insertOrUpdate(String sqlCmd);\n\tpublic Boolean generateCodeSendEmail(String email, String link);\n\tpublic Boolean checkRecord(String sqlCmd);\n\tpublic String [] getFields(String sqlCmd, String [] columnNames);\n\tpublic Boolean checkRecordSendEmail(String email, String link);\n\t\n\tpublic List<Question> getFieldsSurvey(String sqlCmd);\n\tpublic Boolean InsertAllRecords ( int UserID, List<Question> AllAnswers);\n\t\n\t//for user admin page\n\tList<SurevyStats> getSurveyStatistics(String sqlCmd);\n\tString getSingleIntValue(String sqlCmd);\n}", "title": "" }, { "docid": "6891cd5a48a5435d1e9eed428677efd6", "score": "0.5897468", "text": "public interface DubboService {\n String getName();\n}", "title": "" }, { "docid": "132aab1239e781bf08a33d75c0347d55", "score": "0.58290726", "text": "public IDatabaseServices getIntegrationDatabaseServices(IRuntimeDatabaseConfiguration databaseConfiguration);", "title": "" }, { "docid": "1761a9ef9f6de8e69d54ded3514e1588", "score": "0.58261275", "text": "private static void initServices(){\n\t\t\t gmgr = PSGuidManagerLocator.getGuidMgr();\n\t\t\t m_cws = PSContentWsLocator.getContentWebservice();\n\t secSvc = PSSecurityWsLocator.getSecurityDesignWebservice(); \t \n\t}", "title": "" }, { "docid": "432dd96f34971c1ac4333e52b676ba2d", "score": "0.58260244", "text": "private DBAccess(){\n\t\t\n\t}", "title": "" }, { "docid": "15d4704dceb7a18144afebd856f7fa41", "score": "0.57573515", "text": "private BusinessObjectService getBusinessObjectService() {\n return KraServiceLocator.getService(BusinessObjectService.class);\n }", "title": "" }, { "docid": "81eea2d1e87b58780ecd57381e5758e5", "score": "0.5751294", "text": "public interface Service {\n\n Map<String, String> getCommandsList();\n\n Set<String> getList() throws SQLException;\n\n String updateTable() throws SQLException;\n\n Map<String, List<String>> tablePresenter(String tableName, String limitOffset) throws SQLException;\n\n void dropTable() throws SQLException;\n\n void clearTable() throws SQLException;\n\n void createTable() throws SQLException;\n\n void delete() throws SQLException;\n\n void insert() throws SQLException;\n\n void execute(String query) throws SQLException;\n\n void update() throws SQLException;\n\n int getInsertColumnsNumber(QueryParameters queryParameters) throws SQLException;\n\n SQLDatabaseConnector connect(String dbName, String userName, String password);\n\n List getInsertColumnsName() throws SQLException;\n\n}", "title": "" }, { "docid": "0612ac512007696ce1b508e3089201d0", "score": "0.5729833", "text": "@Override\n public Object[] loadAfterService() {\n Shop shop = shopservice.getDAO().find(\"123\");\n Warehouse wh = wser.getDao().find(\"123\"); \n \n return new Object[]{shop, wh};\n }", "title": "" }, { "docid": "83fb7f40f48bf5ffecaf3201e5d4e7d0", "score": "0.5723498", "text": "@Bean\n\t@Scope(\"prototype\")\n\tpublic GenericInfoService dbServiceBean() {\n\t\treturn new DbInfoService();\n\t}", "title": "" }, { "docid": "ca6994dab49762af0eb0fbd31127b314", "score": "0.5707214", "text": "public static Servicios_DAO getInstance(){\n\n\n if(servicios_dao==null) servicios_dao= new Servicios_DAO();\n return servicios_dao;\n\n }", "title": "" }, { "docid": "f9f6e0d0989391c59469acf32732b3ef", "score": "0.5684122", "text": "public GPSService(String name) {\n super(name);\n this.dbPosition = new DAO_Position(this);\n this.dbPerformance = new DAO_Performance(this);\n this.dbParcours = new DAO_Parcours(this);\n }", "title": "" }, { "docid": "5cd95c93f3fd349743477f077052731b", "score": "0.5684112", "text": "public DatabaseBridge()\n {\n sqlDB = new SqlDatabase();\n\n }", "title": "" }, { "docid": "64eea6e989187b6dbd70a7da1f05cd34", "score": "0.5676171", "text": "public Object getService() {\n Object[] objs = m_ps.getInstanceManager().getPojoObjects();\n if (objs == null) { \n return null;\n } else {\n return objs[0];\n }\n }", "title": "" }, { "docid": "7fd7de922ae67a712e4209a760bbd92f", "score": "0.566942", "text": "public interface ImWarehouseVoService extends Service<ImWarehouseVo> {\r\n \r\n\r\n}", "title": "" }, { "docid": "56abc45c04757b7ab611761a70a262cb", "score": "0.56638896", "text": "DCFactory getDCFactory();", "title": "" }, { "docid": "89fc3e6c8a707378941353c299c5c709", "score": "0.56636435", "text": "public interface AcGlobalDomesticPlannedRouteLegServiceIF\n extends AcModelServiceIF\n{\n AcGlobalDomesticPlannedRouteLeg getGlobalDomesticPlannedRouteLeg(Integer globalDomesticPlannedRouteId, Integer sequence);\n AcGlobalDomesticPlannedRouteLeg getGlobalDomesticPlannedRouteLeg(AcGlobalDomesticPlannedRouteLegPkIF pk);\n boolean globalDomesticPlannedRouteLegExists(Integer globalDomesticPlannedRouteId, Integer sequence);\n boolean globalDomesticPlannedRouteLegExists(AcGlobalDomesticPlannedRouteLegPkIF pk);\n AcGlobalDomesticPlannedRouteLeg getGlobalDomesticPlannedRouteLegByWebKey(String webKey);\n JwList<AcGlobalDomesticPlannedRouteLeg> getAll();\n JwList<AcGlobalDomesticPlannedRouteLeg> getAllAvailable();\n JwList<AcGlobalDomesticPlannedRouteLeg> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcGlobalDomesticPlannedRouteLeg> getAllByGlobalDomesticPlannedRouteId(Integer globalDomesticPlannedRouteId);\n void insert(AcGlobalDomesticPlannedRouteLeg globalDomesticPlannedRouteLeg);\n void update(AcGlobalDomesticPlannedRouteLeg globalDomesticPlannedRouteLeg);\n void delete(Integer globalDomesticPlannedRouteId, Integer sequence);\n}", "title": "" }, { "docid": "1ad30e1de2757ac730880d2bd41d7c52", "score": "0.5660628", "text": "@Override\n\tprotected RockWellBaseServiceImpl<Object> getService() {\n\t\treturn plancuringparameterSrv;\n\t}", "title": "" }, { "docid": "75038d083a8dba2de7e10eef29a15ff6", "score": "0.560442", "text": "private static void getService() {\n try {\n Service service = ServiceDAL.getServiceByServiceId(serviceId);\n System.out.println(service.toString());\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "0dad5bf0ab4208ff157437ba8c17baf5", "score": "0.56009775", "text": "private void openDB()\n {\n myDb = new RegisterServicesAdapter(this);\n myDb.open();\n }", "title": "" }, { "docid": "be9281e0152f4a419bdefcb7afb038eb", "score": "0.55955267", "text": "private PersistenceService() {\r\n activeDatabases = new HashMap<>();\r\n }", "title": "" }, { "docid": "07d2bfa230bc0d0aef6a6d63771ab42d", "score": "0.5592301", "text": "public StockService getStockService(){\n return new BasicStockService(); \n }", "title": "" }, { "docid": "d270024039a6688dc86325e11e4c0612", "score": "0.5591988", "text": "public interface StageDAO\r\n extends GenericDAO<Stage, Long>\r\n{\r\n\r\n /**\r\n * Nom du service\r\n * \r\n */\r\n public final static String SERVICE_NAME = \"StageDAO\";\r\n\r\n}", "title": "" }, { "docid": "f435e9278f65b109332d5751bed659c8", "score": "0.55880255", "text": "public interface IUrgentDrillBeanService extends IBizService {\n List<UrgentDrillBean> query(UrgentDrillBean dictBean);\n}", "title": "" }, { "docid": "b632a2b571664c2dccb7f2b59b31ccbc", "score": "0.55879265", "text": "@RemoteServiceRelativePath(\"springGwtServices/sqService\")\r\npublic interface SQService extends RemoteService\r\n{\r\n GameHistoryDO clear(String uid, List<Integer> indices);\r\n \r\n GameHistoryDO getHistory(String uid);\r\n \r\n GameHistoryDO addGame(String uid, int sq);\r\n}", "title": "" }, { "docid": "d341306772cb9befd076e7ea78100ad6", "score": "0.5568691", "text": "private J2EEDataAccessObjectFactory() {\r\n\tinitialize();\r\n\tAS2Context.setSingletonReference(this);\t\r\n}", "title": "" }, { "docid": "fc9293ba1f328a2ceee69cd79c8abe36", "score": "0.55578405", "text": "public interface SiteService extends DSpaceObjectService<Site> {\n\n public Site createSite(Context context) throws SQLException;\n\n public Site findSite(Context context) throws SQLException;\n}", "title": "" }, { "docid": "39d50adbcde384b9b77f18803811ecd2", "score": "0.55464935", "text": "public OracleDwDB(){\n\t\t\ttry {\n//\t\t\t\tdbConnect = new OracleDBConnection(\"jdbc:oracle:thin:@//injpaymntdb01.barnesandnoble.com:1521/injpaymntdb\", \"qa_user\", \"qa_user\");\n\t\t\t\tdbConnect = new OracleDBConnection(\"jdbc:oracle:thin:@//inydwdb01:1521/EAI_XA_DW.barnesandnoble.com\", \"qa_user\", \"qa_user\");\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "45162cbebe76f8b1daad61cd05d6870c", "score": "0.5532175", "text": "private void call(ServiceCall call) throws ApplicationException\n {\n if (Application.inClientMode())\n return; // als Client muessen wir die DB nicht installieren\n\n HBCIDBService service = null;\n try\n {\n // Da die Service-Factory zu diesem Zeitpunkt noch nicht da ist, erzeugen\n // wir uns eine lokale Instanz des Services.\n service = new HBCIDBServiceImpl();\n service.start();\n call.call(service);\n }\n catch (ApplicationException ae)\n {\n throw ae;\n }\n catch (Exception e)\n {\n Logger.error(\"unable to init db service\",e);\n I18N i18n = getResources().getI18N();\n String msg = i18n.tr(\"Hibiscus-Datenbank konnte nicht initialisiert werden.\\n\\n{0} \", e.getMessage());\n \n // Wenn wir die H2-DB verwenden, koennte es sich um eine korrupte Datenbank handeln\n String driver = HBCIDBService.SETTINGS.getString(\"database.driver\",null);\n if (driver != null && driver.equals(DBSupportH2Impl.class.getName()))\n {\n msg += \"\\n\\nMöglicherweise ist die Hibiscus-Datenbank defekt. Klicken Sie bitte auf \\\"Datei>Backups verwalten\\\", \" +\n \t\t \"wählen Sie das Backup vom letzten Tag aus, an dem der Fehler noch nicht auftrat und klicken \" +\n \t\t \"Sie anschließend auf \\\"Ausgewähltes Backup wiederherstellen...\\\". Beim nächsten Start von Hibiscus \" +\n \t\t \"wird das Backup automatisch wiederhergestellt. Sollte sich das Problem hierdurch nicht beheben lassen, \" +\n \t\t \"besuchen Sie bitte http://www.willuhn.de/wiki/doku.php?id=support:fehlermelden\";\n }\n\n throw new ApplicationException(msg,e);\n }\n finally\n {\n if (service != null)\n {\n try\n {\n service.stop(true);\n }\n catch (Exception e)\n {\n Logger.error(\"error while closing db service\",e);\n }\n }\n }\n }", "title": "" }, { "docid": "b2d3fc5b9f87beb72697930d0053098e", "score": "0.5524308", "text": "public VRpDyBscGprsCsBhDAOImpl() {\r\n super();\r\n }", "title": "" }, { "docid": "d6de18377f5bf99965b06bfbdafcaaad", "score": "0.55147815", "text": "public void service_INIT(){\n }", "title": "" }, { "docid": "15b1406e9109c354795a3184d3e33ae1", "score": "0.548397", "text": "public Object gateObject(String db);", "title": "" }, { "docid": "93708301909024717ecaed955fad3a9c", "score": "0.54730535", "text": "public interface Photosservice extends Hostel_photosdao {\n}", "title": "" }, { "docid": "55b9a8389be0fd1d795b81b7a88ae468", "score": "0.5472071", "text": "private void doBindDatabaseService() {\n this.databaseConnection = this.getServiceConnection();\n super.bindService( new Intent( this, DatabaseController.class ),\n this.databaseConnection, Context.BIND_AUTO_CREATE );\n }", "title": "" }, { "docid": "72a88a6ab16be52c59f568d1f9e3220e", "score": "0.5464788", "text": "public static void addInstances(){\r\n//\tBookDatabase bd = new BookDatabase();\r\n\t}", "title": "" }, { "docid": "0368cbc4e98363cf6d01787b0cc2a99c", "score": "0.5463849", "text": "public interface DatabaseServiceCreator {\n\n void createDBService(ProjectDetails projectDetails);\n}", "title": "" }, { "docid": "97d505a2b98b2c5a4a72fe6bf4c4457e", "score": "0.54631084", "text": "Service getService();", "title": "" }, { "docid": "97d505a2b98b2c5a4a72fe6bf4c4457e", "score": "0.54631084", "text": "Service getService();", "title": "" }, { "docid": "829d22b874be6f1b819311653f1e1d7c", "score": "0.5456877", "text": "public interface IWaveRpcService {\n}", "title": "" }, { "docid": "b3a382899a095d9d70fefb3db330153e", "score": "0.5455444", "text": "public interface IELTSTInfoService {\n\n public void delete(String ids);\n\n public void edit(VoIELTSTrain voIELTSTrain);\n\n public void add(VoIELTSTrain voIELTSTrain);\n\n public DataGrid dataGrid(VoIELTSTrain voIELTSTrain);\n\n public List<VoIELTSTrain> combobox();\n}", "title": "" }, { "docid": "ab19f933be8e79dce25a8878224699fb", "score": "0.5455345", "text": "public interface PoLocationService extends DBActionService<PoLocationHolder>\r\n{\r\n public List<PoLocationHolder> selectLocationsByPoOid(BigDecimal poOid) throws Exception;\r\n \r\n \r\n public List<PoLocationHolder> selectOptionalLocations(PoLocationHolder parameter) throws Exception;\r\n \r\n \r\n public List<PoLocationHolder> selectOptionalLocationsByPoOid(BigDecimal poOid) throws Exception;\r\n \r\n \r\n public List<PoLocationHolder> selectLocationsByPoOidAndStoreCode(BigDecimal poOid, String locationCode) throws Exception;\r\n\r\n \r\n public PoLocationHolder selectLocationByPoOidAndLineSeqNo(BigDecimal poOid, int lineSeqNo)throws Exception;\r\n \r\n \r\n public List<MissingGrnReportParameter> selectMissingGrnReprotRecords(BigDecimal buyerOid, String supplierCode, Date begin, Date end)throws Exception;\r\n}", "title": "" }, { "docid": "626683c9bb6969b16becc29c536315a3", "score": "0.5451289", "text": "public interface DubboService {\n String getSysTime(Guest guest);\n}", "title": "" }, { "docid": "3c6418ee9ec12971f4625cf7dac3ff76", "score": "0.54495186", "text": "public interface DbManager {\n}", "title": "" }, { "docid": "0186fd61a6506eec3ce0f463d73283e7", "score": "0.54441273", "text": "public java.lang.String getServiceRef(){\r\n return localServiceRef;\r\n }", "title": "" }, { "docid": "a8527ffcb5e990982cfd181b2fdad7c1", "score": "0.5438762", "text": "public interface SqlServiceBase extends ServiceBase {\n\n}", "title": "" }, { "docid": "e5ac208771014d35985fbd5437d93afa", "score": "0.54361355", "text": "public interface ILookAndFeelManagementServices {\n\n String ejbMappedName = \"java:global/lurin/com.zed.lurin.lookfeel.management.services/LookAndFeelManagementServicesImpl!com.zed.lookfeel.management.services.ILookAndFeelManagementServices\";\n\t\n /**\n * <p>method that creates a theme</p>\n * @param theme\n * @return id self-generated\n */\n\tThemes createTheme(Themes theme);\n\t\n /**\n * <p>method that updates a theme</p>\n * @param theme\n * @return Object {@link com.zed.lurin.domain.jpa.Themes}\n */\n\tThemes updateTheme(Themes theme);\n\t\n /**\n * <p>method that delete a carrier theme</p>\n * @param theme_id theme id to delete\n * @return void\n */\n\tvoid deleteTheme(long theme_id);\n\t\n\t/**\n\t * <p>method that obtain a Theme</p>\n * @param theme_id \n\t * @return Object {@link com.zed.lurin.domain.jpa.Themes}\n\t */\n\tThemes getThemeById(long theme_id, String lang);\n\t\n /**\n * <p>method that obtain all themes</p>\n * <p>Note: criteria documentation jpa in\n * <a href=\"http://www.objectdb.com/java/jpa/query/jpql/select\">JPA Select</a></p>\n * @return Object {@link com.zed.lurin.domain.jpa.Themes}\n */\n\tList<Themes> getAllThemes(String lang, String token);\n\n\t/**\n\t * method that returns operators per user\n\t * @param username\n\t * @return List by Operators\n\t */\n\tList<OnlyCarriersByUserNameView> getOnlyCarriersByUserName(String username);\n\n\t/**\n\t * method that return roles for username\n\t * @param user\n\t * @return\n\t */\n\tList<RolesByUserNameView> getRoleFromUserName(Users user);\n\n\t/**\n\t * Method that returns a list of results based on a token\n\t * @param token\n\t * @return List to {@link UsersControlAccess}\n\t */\n\tList<UsersControlAccess> getUserControlAccessByToken(String token);\n\n}", "title": "" }, { "docid": "c723f845f4d58986f6dff94a91b3e5c3", "score": "0.54354715", "text": "public IPortletInterfaceDAO getDAO( )\r\n {\r\n return _dao;\r\n }", "title": "" }, { "docid": "a2adb331f7f49ac29b9f4d860f9f2056", "score": "0.54331636", "text": "public interface DBProperties {\n\n public String IP =\"localhost\";\n public String PORT = \"1521\";\n public String USER = \"sys as sysdba\";\n public String PASS = \"admin\";\n public String DRIVER_CLASS =\"oracle.jdbc.driver.OracleDriver\";\n\n\n}", "title": "" }, { "docid": "a337033e3ce72c8ac08e3e2bde96d289", "score": "0.5429739", "text": "public NonDBAppModuleServiceImpl() {\r\n }", "title": "" }, { "docid": "9d13a31ec8a1cc854f3499650ca05425", "score": "0.5416707", "text": "public interface IMonitorService {\r\n\r\n //查询称重\r\n public GridModel qryWeightList(WeightEntity weightEntity);\r\n\r\n //查询采样\r\n public GridModel qrySampleList(WeightRptEntity sampleEntity);\r\n\r\n //提交控制设备命令\r\n public void commitCtrlCmd(CtrlEntity ctrlEntity);\r\n\r\n //设置当前卸煤船\r\n public void setCurrentShip(ShipEntity shipEntity);\r\n\r\n //设置当前卸煤船\r\n public void setMultCurrentShip(ShipEntity shipEntity);\r\n\r\n //今日来煤信息汇总查询\r\n public GridModel qryTodayArrivedCoal();\r\n\r\n //查询今日汽车动态信息\r\n public GridModel qryCarDynamic();\r\n\r\n //查询制样结果动态信息\r\n public GridModel qrySampling();\r\n\r\n //查询操作日志功能\r\n public GridModel qryOpLogInfo(LogOpRecEntity logOpRecEntity);\r\n\r\n public GridModel qryOpLogInfoXW(LogOpRecEntity logOpRecEntity);\r\n\r\n //查询设备动态信息\r\n public GridModel qryDeviceBroad(DeviceBroadEntity deviceBroadEntity);\r\n\r\n //查询设备动态信息\r\n public GridModel qryDeviceBroadView(DeviceBroadEntity deviceBroadEntity);\r\n\r\n //查询故障报警信息\r\n public GridModel qryDeviceErr();\r\n\r\n //查询故障报警信息\r\n public GridModel qryDeviceErrView(DeviceErrEntity deviceErrEntity);\r\n\r\n //查询故障报警信息\r\n public List qryDeviceErrList();\r\n\r\n //查询故障报警信息详情\r\n public DeviceBroadEntity qryDeviceErrDetail(String recId);\r\n\r\n //故障报警处理\r\n public void deviceErrDeal(DeviceBroadEntity deviceBroadEntity);\r\n //强制结束批次\r\n public void forceUpdateBatch(ShipEntity shipEntity);\r\n //存查样柜的柜子状态查询\r\n public List<SampleBoxEntity> qrySampleBoxesInfo();\r\n\r\n //查询柜子里的样包信息\r\n public List<SampleBoxEntity> qrySampleBagInfo(String boxNo);\r\n\r\n //查询某柜子里的样包信息,用于审批查询使用\r\n public GridModel qrySampleBag4Get(SampleBoxEntity sampleBoxEntity);\r\n\r\n //火车注册\r\n public void trainRegister(RegisterEntity registerEntity);\r\n\r\n //火车大票批量录入\r\n public void batchTrainDPRecord(RegisterEntity registerEntity);\r\n\r\n //火车大票批量录入并同时分批\r\n public void batchTrainDPRecordAndBatch(RegisterEntity registerEntity);\r\n\r\n //新增火车,可以在原来车次上新增,也可以新增测试\r\n public void addNewTrain(RegisterEntity registerEntity);\r\n\r\n //合并火车车次\r\n public void mergeTrain(RegisterEntity registerEntity);\r\n\r\n //合并车辆批次\r\n public void mergeCarBatchNo(RegisterEntity registerEntity);\r\n\r\n //拆分车次\r\n public void splitTrain(RegisterEntity registerEntity);\r\n\r\n //调整编辑顺序\r\n public void adjustTrainOrder(RegisterEntity registerEntity);\r\n\r\n //火车来煤分批\r\n public void dealTrainBatchInfo(RegisterEntity registerEntity);\r\n\r\n //煤样追踪查询-煤样瓶接收确认\r\n public void confirmSampleRecv(SampleTraceEntity sampleTraceEntity);\r\n\r\n //删除单个车厢\r\n public void deleteOneTrain(RegisterEntity registerEntity);\r\n\r\n //查询火车入厂登记信息详情\r\n public GridModel qryTrainDetailList(RegisterEntity registerEntity);\r\n //查询火车入厂登记信息详情\r\n public GridModel qryTrainDetailListHf(RegisterEntity registerEntity);\r\n //查询火车入厂登记信息合计\r\n public GridModel qryTrainDetailListSummary(RegisterEntity registerEntity);\r\n\r\n //查询火车入厂登记信息详情\r\n public GridModel qryTrainDetailListDk(RegisterEntity registerEntity);\r\n\r\n //查询火车入厂登记信息详情 for fc\r\n public GridModel qryTrainDetailListfc(RegisterEntity registerEntity);\r\n\r\n //查询火车入厂登记信息详情\r\n public GridModel qryTrainBasicList(RegisterEntity registerEntity);\r\n\r\n //根据车次号删除火车记录\r\n public void deleteTrainInfo(String trainNo);\r\n\r\n //新增汽车信息\r\n public void addCarInfo(CarInfoEntity carInfoEntity);\r\n //新增汽车信息\r\n public void updateCarInfo(CarInfoEntity carInfoEntity);\r\n\r\n //新增矿卡信息\r\n public void addMineCardInfo(MineCardDetailEntity mineCardDetailEntity);\r\n\r\n //查询登记注册汽车基本信息\r\n public GridModel qryRegisteredCarList(CarInfoEntity carInfoEntity);\r\n\r\n\r\n\r\n public GridModel qryTransRegisteredList(TransmstEntity transmstEntity);\r\n\r\n //查询登记注册汽车基本信息\r\n public GridModel qryRegisterMineList(MineCardInfoEntity mineCardInfoEntity);\r\n\r\n //删除注册的汽车信息\r\n public void deleteCarRegInfo(String recId);\r\n\r\n //作废注册的汽车信息\r\n public void unableCarRegInfo(CarInfoEntity carInfoEntity);\r\n\r\n //删除注册的汽车信息\r\n public void deleteMineRegInfo(String cardRecId);\r\n\r\n //查询车辆详细信息\r\n public CarInfoEntity qryCarDetail(String recId);\r\n\r\n //查询车辆详细信息\r\n public MineCardDetailEntity qryMineCardDetail(String cardRecId);\r\n\r\n //修改汽车信息\r\n public void modifyCarInfo(CarInfoEntity carInfoEntity);\r\n\r\n\r\n //批量删除车节信息\r\n public void deleteMassTrainBody(RegisterEntity registerEntity);\r\n\r\n //批量删除车节信息\r\n public void operateTrains(RegisterEntity registerEntity);\r\n\r\n\r\n //修改矿卡信息\r\n public void modifyMineCardInfo( MineCardDetailEntity mineCardDetailEntity);\r\n\r\n //查询当天注册发卡了多少汽车\r\n public Integer qryTodayRegisterCarCnt();\r\n\r\n //查询当天注册发卡了多少矿卡\r\n public Integer qryTodayRegisterMineCnt();\r\n\r\n //定位汽车信息\r\n public CarInfoEntity focusCar(CarInfoEntity carInfoEntity);\r\n\r\n //新增汽车来煤信息\r\n public void addCarTransRecord(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //新增汽车来煤信息\r\n public void addCarTransRecordNew(CarTransRecordEntity carTransRecordEntity);\r\n\r\n public void confirmUnload(CarTransRecordEntity carTransRecordEntity);\r\n\r\n ////切换入厂车的通道\r\n public void changeChannel(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //查询汽车来煤信息\r\n public GridModel qryCarTransRecordList(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //查询汽车来煤信息4DWK\r\n public GridModel qryCarTransRecordList4DWK(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //查询织金项目开元气动存查样柜信息\r\n public GridModel qryKYCabinetInfoList(CabinetEntity cabinetEntity);\r\n\r\n //查询织金项目开元气动存查样柜汇总信息\r\n public CabinetEntity qryKYCabinetSumInfo();\r\n\r\n //查询气动存查样柜信息\r\n public List<CabinetEntity> qryCabinetInfoList(CabinetEntity cabinetEntity);\r\n\r\n //查询气动存查样柜信息,老谢新的简化后的\r\n public List<CabinetEntity> qryCabinetInfoListNew(CabinetEntity cabinetEntity);\r\n\r\n //查询气动存查样柜历史信息\r\n public GridModel qryCabinetOpRecList(CabinetOpRecEntity cabinetOpRecEntity);\r\n public GridModel qryCabinetOpRecListMain(CabinetOpRecEntity cabinetOpRecEntity);\r\n public GridModel qryCabinetOpRecList2(CabinetOpRecEntity cabinetOpRecEntity);\r\n\r\n //查询气动存查样柜取样取样申请记录\r\n public GridModel qryCabinetApplyRecList(CabinetOpRecEntity cabinetOpRecEntity);\r\n\r\n //查询气动存查样柜信息-取样,弃样\r\n public GridModel qryCabinetSampleList(CabinetEntity cabinetEntity);\r\n\r\n //查询气动存查样柜信息-取样、弃样(谏壁-支持分页)\r\n public GridModel qryCabinetSampleListPage(CabinetEntity cabinetEntity);\r\n\r\n //查询气动存查样柜信息-取样,弃样\r\n public GridModel qryCabinetSampleListNew(CabinetEntity cabinetEntity);\r\n\r\n //查询单个车厢详情\r\n public RegisterEntity qryOneTrainDetail(String recordNo);\r\n\r\n //查询单个车厢详情 for fc\r\n public RegisterEntity qryOneTrainDetailfc(String recordNo);\r\n\r\n //修改单个车厢信息\r\n public void modifyOneTrainInfo(RegisterEntity registerEntity);\r\n\r\n //查询集样罐状的采样编码\r\n public GridModel qrySampleCodes(String machineType, String command);\r\n\r\n //查询集样罐状的采样编码\r\n public GridModel qrySampleCodesByTransType(String machineType, String command, String transType);\r\n\r\n public List<TakeSampleRecEntity> qryTakeSampleRec(TakeSampleRecEntity takeSampleRecEntity);\r\n\r\n //使用新工作模式\r\n public void addNewWorkMode(WorkModeEntity workModeEntity);\r\n\r\n //查询系统工作模式\r\n public WorkModeEntity qryWorkModeInfo();\r\n public DeviceBroadEntity qryEmergencyWarnMsg(DeviceBroadEntity entity);\r\n //查询船舶入厂工作模式(谏壁)\r\n public WorkModeEntity qryShipSampleWorkMode();\r\n\r\n //查询人工采样编码信息\r\n public GridModel qryManSampleInfo(ManualSampleEntity manualSampleEntity);\r\n\r\n //查询煤场信息\r\n public GridModel qryMcInfo(CoalPileInfoEntity coalPileInfoEntity);\r\n\r\n //查询人工采样编码信息\r\n public GridModel qryManInfo(ManualSampleEntity manualSampleEntity);\r\n\r\n //查询人工采样编码信息\r\n public GridModel qryCarManSampleInfo(ManualSampleEntity manualSampleEntity);\r\n\r\n //查询入炉采样编码信息\r\n public GridModel qryLcManSampleInfo(ManualSampleEntity manualSampleEntity);\r\n //获取人工制样封装码\r\n public void getPackCode(ManualSampleEntity manualSampleEntity);\r\n\r\n //调用操作记录发送接口报文\r\n public String callYGWSIntf(String opRecId);\r\n\r\n //调用接口查询远光柜子的存储汇总信息\r\n public YGCabinetEntity qryYGCabinetSumInfo();\r\n\r\n //调用接口查询远光柜子的存储汇总信息\r\n public YGCabinetEntity qryYGCabinetSumInfoExpiredCnt(String typeId,String comeTag);\r\n\r\n //查询远光存查样柜的存样信息\r\n public GridModel qryYGCabinetInfo(YGCabinetEntity yGCabinetEntity);\r\n\r\n //查询汽车违规信息\r\n public GridModel qryViolaData(ViolaEntity violaEntity);\r\n\r\n //查询汽车违规详细信息\r\n public ViolaEntity viewViolaDetail(String violaRecId);\r\n\r\n //修改汽车违规信息\r\n public void editViolaDetail( ViolaEntity violaEntity);\r\n\r\n public List<CarInfoEntity> qryCarByCarIdOrCardId(CarInfoEntity carInfoEntity);\r\n\r\n //查询船运信息\r\n public GridModel qryShipTransInfo(ShipEntity shipEntity);\r\n\r\n //蚌埠-查询船运煤批次信息\r\n public GridModel qryShipBatch(ShipEntity shipEntity);\r\n\r\n //查询船资料信息\r\n public GridModel qryShipInfo(ShipEntity shipEntity);\r\n\r\n //查询船运的货运信息\r\n public GridModel qryShipCargoInfo(ShipEntity shipEntity);\r\n\r\n //编辑轮船信息\r\n public void editShipTransRec(ShipEntity shipEntity);\r\n\r\n //编辑轮船信息\r\n public void submitEditShipInfo(ShipEntity shipEntity);\r\n\r\n //编辑船运煤信息\r\n public void editShipCargoRec(ShipEntity shipEntity);\r\n //结束卸煤\r\n public void finishUnloadRec(ShipEntity shipEntity);\r\n //查询船运分批详细信息\r\n public GridModel qryShipBatchInfo(BatchNoInfoEntity batchNoInfoEntity);\r\n\r\n //补录人工制样的封装码信息\r\n public void editSamplingResultRec(EditSamplingRptEntity editsamplingRptEntity);\r\n\r\n //新增系统外批次\r\n public void addVirtualBatchInfoRecord(SamplingRptEntity samplingRptEntity);\r\n\r\n //新增系统外批次\r\n public void addFurnaceBatchInfoRecord(SamplingRptEntity samplingRptEntity);\r\n\r\n //底样批次操作\r\n public void carAttachBatchForBat(RegisterEntity registerEntity);\r\n\r\n //删除整个车次(用存储过程)\r\n public void deleteWholeTrain(RegisterEntity registerEntity);\r\n\r\n //结束或删除船运批次\r\n public void compOrDelShipBatchPro(ShipEntity shipEntity);\r\n\r\n //查询卸煤沟当前信息\r\n public GridModel qryXmTransList(XmTransSetEntity xmTransSetEntity);\r\n\r\n\r\n\r\n //修改汽车队列\r\n public void editCarQueue(XmTransSetEntity xmTransSetEntity);\r\n\r\n\r\n //修改卸煤通道信息\r\n public void editxmTransDetail(XmTransSetEntity xmTransSetEntity);\r\n\r\n //皮带秤计量信息查询\r\n public GridModel qryBeltBalanceInfo(BatchNoInfoEntity beltBalanceEntity);\r\n\r\n //确认上传燃料MIS(衡丰)\r\n public void uploadToMis(UploadToMisEntity uploadToMisEntity);\r\n\r\n //确认上传燃料MIS(哈平南 远光MIS)\r\n public void uploadToMisYg(UploadToMisEntity uploadToMisEntity);\r\n\r\n //编辑汽车违规信息(新增)\r\n public void addViolateRecord(ViolaEntity violaEntity);\r\n\r\n //蚌埠新增船煤批次\r\n public void addNewShipBatch(ShipEntity shipEntity);\r\n\r\n //蚌埠操作状态\r\n public void operateBatchStatus(ShipEntity shipEntity);\r\n //补录人工采样信息\r\n public void editSampleResultRec(SampleRptEntity sampleRptEntity);\r\n\r\n //蚌埠校准船运卸煤吨位\r\n public void modifyAllNetQty(ShipEntity shipEntity);\r\n\r\n //wangz ,20160727 参考接口文档: 3.6.10\t样品全量盘点下达(31200),远光 ChaXun31200\r\n //调用此方法,需要注意异常 throw RuntimeException\r\n public String callYGIntfForCode31200();\r\n\t\r\n\tpublic GridModel qryShipWeightListInfo(ShipEntity shipEntity);\r\n\r\n public GridModel qryAccessControlInfoList(AccessControlEntity accessControlEntity);\r\n\r\n //查询煤样追踪信息记录\r\n public GridModel qrySampleDetailList(SampleTraceEntity sampleTraceEntity);\r\n\r\n public BatchNoInfoEntity qrySampleBatchNoInfo(BatchNoInfoEntity batchNoInfoEntity);\r\n\t\r\n //提交控制设备命令\r\n public void commitCtrlCmd2(CtrlEntity ctrlEntity);\r\n\r\n //江南,对于0.2mm待取样的化验样,自动发送取样到化验室的指令到远光存查样柜\r\n public void saveYg02mmAutoToLab();\r\n\r\n public void modifyBatchNoInfo(SamplingRptEntity samplingRptEntity);\r\n\r\n //入厂入炉批次重量信息修改 for常州 20170207\r\n public void editBatchWeightInfo(SampleRptEntity sampleRptEntity);\r\n\r\n /*江南项目人工增加汽车煤批次***/\r\n public void manualCarBatchInfo(BatchNoInfoEntity batchNoInfoEntity);\r\n\r\n /*江南汽车煤批次信息查询**/\r\n public GridModel qryManualCarBatchList(BatchNoInfoEntity batchNoInfoEntity);\r\n\t\r\n\t//编辑锁车信息(给织金使用)\r\n public void addLockCarRecord(CarLockInfoEntity carLockInfoEntity);\r\n\r\n //查询锁车信息(给织金使用)\r\n public GridModel qryLockCarList( CarLockInfoEntity carLockInfoEntity);\r\n\t\r\n\t/*存查样柜提交样品延期清样*/\r\n public void submitCabinetDelay(CabinetEntity cabinetEntity);\r\n\r\n public GridModel qryCabinetDelayRecList(CabinetEntity cabinetEntity);\r\n\r\n /*批量删除故障信息**/\r\n public void massSaveErrInfo(DeviceErrEntity deviceErrEntity);\r\n\r\n /*根据用户名称查询密码**/\r\n public String qryPwdByUserName(String userName);\r\n\t\r\n\t//录入采样报告信息\r\n public void editSampleReport(SampleRptEntity sampleRptEntity);\r\n\r\n public void dealEmergencyWarn(DeviceBroadEntity deviceBroadEntity);\r\n\r\n //录入制样报告信息\r\n public void editSamplingReport(SamplingRptEntity samplingRptEntity);\r\n\r\n //九江-记录皮带秤数据\r\n public void saveBeltWeightInfo(BeltWeightEntity beltWeightEntity);\r\n\r\n //九江-查询皮带秤数据\r\n public GridModel qryBeltWeightInfo(BeltWeightEntity beltWeightEntity);\r\n\r\n //九江-船运皮带秤批次计量 信息查询\r\n //liuzh 2020-02-12\r\n public GridModel qryShipBatchQtyInfo(ShipBatchQtyEntity shipBatchQtyEntity);\r\n\r\n //泉州-查询皮带秤数据\r\n public GridModel qryBeltWeightRec4Qz(BeltWeightEntity beltWeightEntity);\r\n\r\n //查询大开汽车来煤信息\r\n public GridModel qryCarTransRecordList4DK(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //打开执行分批\r\n public void doBatch(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //聊城查询人工采样编码信息\r\n public GridModel qryManInfo4LC(ManualSampleEntity manualSampleEntity);\r\n\r\n //化验编码打印计数\r\n public void addPrintNum(ManualSampleEntity manualSampleEntity);\r\n\r\n //编码打印记录\r\n public void addPrintRec(ManualSampleEntity manualSampleEntity);\r\n\r\n //聊城查询气动存查样柜信息-取样,弃样\r\n public GridModel qryCabinetSampleList4LC(CabinetEntity cabinetEntity);\r\n\r\n public void manualControlBeltWeight(ShipEntity shipEntity);\r\n\r\n //汽车车卡注册 用于存储过程 以便记录日志 xxs20180527\r\n public void addCarInfoNew(CarInfoEntity carInfoEntity);\r\n\r\n //宣威自动随机取样功能\r\n public void autoTakeSample4XW(ApproveEntity approveEntity);\r\n\r\n //查询汽车来煤信息4XW\r\n public GridModel qryCarTransRecordList4XW(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //管理员权限账号列表 查询\r\n public GridModel qrySysUserApprList(ApproveEntity approveEntity);\r\n\r\n //查询封装码的打印次数 宣威先要的\r\n public GridModel qryManInfoPackCode(ManualSampleEntity manualSampleEntity);\r\n\r\n //查询采制化编码的打印次数 宣威先要的\r\n public GridModel qryManInfo4XW(ManualSampleEntity manualSampleEntity);\r\n\r\n //查询汽车批次信息详情\r\n public GridModel qryCarBasicList(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //合并汽车批次 宣威\r\n public void mergeCarBatchs(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //查询火车重量修改记录 聊城\r\n public GridModel qryOneTrainHisList(RegisterEntity registerEntity);\r\n\r\n public void dealCarTransRecord4KcAppr(CarTransRecordEntity carTransRecordEntity);\r\n\r\n //查询船运的货运信息\r\n public GridModel qryShipCargoInfo4LD(ShipEntity shipEntity);\r\n\r\n public void manualSampleKlmy(Map<String,Object> params);\r\n}", "title": "" }, { "docid": "88039404d2002e1c3440e495f0612c3f", "score": "0.54146343", "text": "private GestorDB() {\n \t//este constructor solo se ejecuta una vez, cuando la INSTANCE = null\n \tbd = new DB();\n \tthis.generarBD();\n }", "title": "" }, { "docid": "37fceb3edbec394c3528894b7e9db4ee", "score": "0.54101926", "text": "void setDatabaseService(DatabaseService databaseService) {\n this.databaseService = databaseService;\n }", "title": "" }, { "docid": "f9ecbe63bab40e4bcf3968d8495ee161", "score": "0.5406048", "text": "public IStructureDatabase getDatabase();", "title": "" }, { "docid": "973b4e99019eba6e25e9aeafbd5aa1c8", "score": "0.54014045", "text": "public interface BaseDbService extends BaseService{\n\n boolean isExist(String modelName);\n\n List<Map<String, Object>> queryTable(String tableName);\n\n List<Map<String, Object>> allTable();\n\n List<Map<String, Object>> refresh();\n\n List<Map<String, Object>> query(String modelName, Map<String, Object> params);\n\n List<Map<String, Object>> all(String modelName);\n\n int count(String modelName);\n\n List<Map<String, Object>> paging(String modelName, Map<String, Object> params, int start, int limit);\n\n int save(String modelName, Map<String, Object> model);\n\n int delete(String modelName, String pk);\n}", "title": "" }, { "docid": "cf9f76dbb4d3b66f9199bf4a3226d522", "score": "0.53957385", "text": "public interface BssService extends BaseService<Reconcilia> {\n\n /**\n * 分页查询\n * @param reconcilia 查询条件\n * @param pageCode 当前页\n * @param pageSize 每页的记录数\n * @return\n */\n PageBean findByPage(ReconciliaVO reconcilia, int pageCode, int pageSize);\n\n // 导出资产列表\n Result exportBssDataList(OutputStream out, ReconciliaVO vo);\n\n\n List<Reconcilia> findByValueBean(ReconciliaVO reconcilia);\n\n}", "title": "" }, { "docid": "10d864a3eddef455c59e9fd694b4e4af", "score": "0.53913116", "text": "public abstract Object getDatabase();", "title": "" }, { "docid": "bb0866dbe3253870d9e3ad990076e167", "score": "0.5386763", "text": "private static VendorDAO dao() { \n DbConnection db = new DbConnection(); \n return db.getConnect().onDemand(VendorDAO.class); \n }", "title": "" }, { "docid": "34a988d02e6aa20e340a3ddeae0c5090", "score": "0.53843886", "text": "public void databaseInit(){\r\n\t\r\n\t\ttry {\r\n\t\t\tbackend = (CoauthorDataServiceInterface) Naming.lookup(\"rmi://\" + HOSTNAME + \"/\"\r\n\t\t\t\t\t+ CoauthorDataServiceInterface.SERVICE_NAME);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "721d53bab5b96e9985c23bc420f1a700", "score": "0.5384369", "text": "public interface HelperService {\n List<DataBaseDTO> getInfoFromDataBase(int id, String table, String column, String query);\n\n\n}", "title": "" }, { "docid": "fb398602fae5ee855b8f0095d70498fd", "score": "0.5376593", "text": "public interface DataService {\r\n\t/**\r\n\t * Methods that are related to data access and manipulation with DB\r\n\t */\r\n\t/*\r\n\t * Retrieve only one data information set from database using device ID based on different sensor types and retrieve types.\r\n\t */\r\n\tpublic DataValue retrieveData(String deviceId, String sensorType, String retrieveType) throws Exception;\r\n\t/*\r\n\t * Retrieve data list set from database according to different sensor types and retrieve types\r\n\t */\r\n\tpublic List<DataValue> retrieveDataList(String deviceId, String sensorType, String retrieveType) throws Exception;\r\n\t/*\r\n\t * Retrieve data list set from database according to a specific date interval defined by the one who requests.\r\n\t */\r\n\tpublic List<DataValue> retrieveDataList(String deviceId, String sensorType, String startDate, String endDate) throws Exception;\r\n\t/*\r\n\t * Retrieve data list set from database according to a specific time interval defined by the one who requests.\r\n\t */\r\n\tpublic List<DataValue> retrieveDataList(String deviceId, String sensorType, String startDate, String startTime, String endDate, String endTime) throws Exception;\r\n\t/*\r\n\t * After collecting data from end devices, insert sensor data value into database.\r\n\t */\r\n\tpublic int insertSensorData(DataValue dataVal) throws Exception;\r\n\t\r\n\t/**\r\n\t * Methods that are related to data collection and control with Arduino\r\n\t */\r\n\t/*\r\n\t * Collect data from end devices and insert into database.\r\n\t */\r\n\tpublic boolean collectData(String deviceId, String sensorType, String dataCollectionIntervalType) throws Exception;\r\n}", "title": "" }, { "docid": "d2e236f6f9b86dcb1455c9cbed47db2f", "score": "0.535917", "text": "public interface DBService {\n long addAudio(Audio audio);\n\n void deleteAudio(Audio audio);\n\n Audio getAudioById(long id);\n\n long addLink(AudioLink audioLink);\n\n List<AudioLink> getAllLink();\n\n void deleteLink(AudioLink audioLink);\n\n boolean isAlreadyAdded(AudioLink audioLink);\n}", "title": "" }, { "docid": "65bddd2327e7dee6fa6808a80dcfe449", "score": "0.5352452", "text": "public interface SysImportExportService extends BaseService {\n\n}", "title": "" }, { "docid": "8642e813742ff8761fe8e66cd95cabbc", "score": "0.53448546", "text": "public interface AcUspsInternationalCgrSubmissionLegServiceIF\n extends AcModelServiceIF\n{\n AcUspsInternationalCgrSubmissionLeg getUspsInternationalCgrSubmissionLeg(Integer id);\n AcUspsInternationalCgrSubmissionLeg getUspsInternationalCgrSubmissionLeg(AcUspsInternationalCgrSubmissionLegPkIF pk);\n boolean uspsInternationalCgrSubmissionLegExists(Integer id);\n boolean uspsInternationalCgrSubmissionLegExists(AcUspsInternationalCgrSubmissionLegPkIF pk);\n AcUspsInternationalCgrSubmissionLeg getUspsInternationalCgrSubmissionLegByWebKey(String webKey);\n JwList<AcUspsInternationalCgrSubmissionLeg> getAll();\n JwList<AcUspsInternationalCgrSubmissionLeg> getAllAvailable();\n JwList<AcUspsInternationalCgrSubmissionLeg> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcUspsInternationalCgrSubmissionLeg> getAllByUspsInternationalCgrSubmissionOfferId(Integer uspsInternationalCgrSubmissionOfferId);\n Integer insert(AcUspsInternationalCgrSubmissionLeg uspsInternationalCgrSubmissionLeg);\n void update(AcUspsInternationalCgrSubmissionLeg uspsInternationalCgrSubmissionLeg);\n void delete(Integer id);\n}", "title": "" }, { "docid": "5827c779305fe584369d11cf8285cc80", "score": "0.53277236", "text": "private void initService() {\n if (service == null) {\n service = RPCJavaSqlServiceAsync.Util.getInstance(\"RPCJavaSqlTestCase\");\n }\n }", "title": "" }, { "docid": "34bfcac13f83b360e01fe702f1c9eb0d", "score": "0.5323935", "text": "@Override\n\tprotected RockWellBaseServiceImpl<Object> getService() {\n\t\treturn curingMoldServiceImpl;\n\t}", "title": "" }, { "docid": "a0f00ed3287bf4782599e3a7c6b23c0e", "score": "0.53226876", "text": "public interface BGroupPricePlanClient \r\n{\r\n /**\r\n * Create, update an entry in the pricePlan to ratePlan mapping table.\r\n */\r\n void setBusinessGroupPricePlan(final Context ctx, final int spid, final String businessGroupID,\r\n final long pricePlanID) throws BGroupPricePlanException;\r\n\r\n /**\r\n * Query existing business group price plan mapping. Mappings are segmented by Service Provider.\r\n */\r\n long getBusinessGroupPricePlan(final Context ctx, final int spid, final String businessGroupID)\r\n throws BGroupPricePlanException;\r\n}", "title": "" }, { "docid": "9c9ad607013ffca52c60c52593ff0c08", "score": "0.53223723", "text": "public interface ConvensionDAO\r\n extends GenericDAO<Convension, Long>\r\n{\r\n\r\n /**\r\n * Nom du service\r\n * \r\n */\r\n public final static String SERVICE_NAME = \"ConvensionDAO\";\r\n\r\n}", "title": "" }, { "docid": "a1a5103e0e5365bfddf8ccc824523b2c", "score": "0.53211814", "text": "private IndiciDAO(){\n\t\ttry {\n\t\t\t//Carica il driver MySQL connector Java a runtime tramite reflection\n\t\t\tClass.forName(driverName);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tcloseResource();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "0446503bff8a396cde6c62fb225e2358", "score": "0.53171456", "text": "public abstract DBManipulationDAO getDBManipulationDAO();", "title": "" }, { "docid": "f72d373f0debb21f83ca0bf06878bc71", "score": "0.53107786", "text": "public DisruptorDataEventHandler() {\n \tklineDataDao = SpringBeanFactoryContext.findBean(KlineDataDao.class);\n }", "title": "" }, { "docid": "dba2affc13ade9a13c289c28c934d62f", "score": "0.5309823", "text": "public interface BrowseService {\n\n int get(Long ddnid);\n\n void add(Long ddnid);\n}", "title": "" }, { "docid": "fe7592e06116b8a65fcb98e0c03ac6d2", "score": "0.5306303", "text": "public interface DatabaseService {\n\n /**\n * Gets the database specified by ID\n *\n * @return the database or null if not found\n */\n List<? extends Database> list(String instanceId);\n\n /**\n * Create a new database\n *\n * @return the action response\n */\n ActionResponse create(String id, Databases databases);\n\n /**\n * Deletes the database\n *\n * @return the action response\n */\n ActionResponse delete(String instanceId, String name);\n\n}", "title": "" }, { "docid": "7073e94aba7b493b1dbabfa8f840690a", "score": "0.52972025", "text": "public abstract IClientJDBCDAO getClientJDBCDAO();", "title": "" }, { "docid": "73994d46fe2c2c85537ac0df75168df0", "score": "0.5294569", "text": "private ServiceConnection getServiceConnection() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "55d9331ede7f5c6bee542dcdddca7e35", "score": "0.5293338", "text": "public void setDb(Db db)\n {\n this.db = db;\n }", "title": "" }, { "docid": "e5f3f7f0ca7651b4325b7bf537f2b0df", "score": "0.5283914", "text": "public interface C {\n\n /** Name of the main persistence unit */\n public static final String PU = \"mainPU\";\n\n /** JNDI of the main data */\n public static final String DS_JNDI = \"java:global/jdbc/mainDS\";\n\n /** Name of the main driver */\n public static final String DS_EMBEDDED_DRIVER = \"org.apache.derby.jdbc.EmbeddedDriver\";\n\n /** URL of the main database */\n public static final String DS_URL = \"jdbc:derby:memory:mainDB\";\n\n /** Http port to try open first */\n public static final int PORT_START = 8180;\n\n /** How many ports to try for */\n public static final int PORT_TRIES = 1000;\n\n String APP_NAME = \"jee-crud\";\n\n}", "title": "" }, { "docid": "4cdff88cb1d28608775f91b6f2d827aa", "score": "0.5275557", "text": "public DataService getDataService() {\n return this.dataService;\n // return null;\n }", "title": "" }, { "docid": "4c17c50099600a40f90673a6600abaa3", "score": "0.5274731", "text": "ServiceDef getServiceDef();", "title": "" }, { "docid": "bf90926a938504c3d9cd4ac60b326295", "score": "0.527229", "text": "public interface DocHdworkdochdIService {\r\n\r\n public List<DocHdworkdochd> getBoxInfo();\r\n\r\n public void saveBoxInfo(List<DocHdworkdochd> list);\r\n}", "title": "" }, { "docid": "f466dd37924fc015d929dc53c56e0bbf", "score": "0.5266812", "text": "RLiveObjectService getLiveObjectService();", "title": "" }, { "docid": "6f1c92014c6504d591febe84eca65165", "score": "0.52617234", "text": "public abstract String getService();", "title": "" }, { "docid": "9e87e634c0aa9110b48ddf871fb69352", "score": "0.52614945", "text": "public interface SyApplyService extends Service<SyApply> {\n /**\n * 送检清单\n * @param sqph\n * @return\n */\n String exportReport(String sqph);\n\n /**\n * 抽检批次清单\n * @param sqph\n * @return\n */\n String exportBill(String sqph);\n\n void updateFlowStatus(String sqph);\n}", "title": "" }, { "docid": "693a5d077015f2ef73dc589ce3ee999f", "score": "0.5258937", "text": "public interface IPLMProductTypeLawFileService {\n public void save(IPLMProductTypeLaw object);\n public void save(List<IPLMProductTypeLaw> objects);\n public void delete(IPLMProductTypeLaw object);\n public void deleteByProductTypeCode(String typecode);\n String searchLawSysCodeBy(String productType,int docType);\n IMetaDBQuery getLawFileLists(String productType);\n\n}", "title": "" }, { "docid": "9632c3af8755e55c538f7163553ee67c", "score": "0.5258343", "text": "public VOService getService() {\n return service;\n }", "title": "" }, { "docid": "236463a5e41c7369e32a549c129a73bd", "score": "0.52522624", "text": "public interface CpfxgcService {\n public WsCpfxgc getWsCpfxgc(String Ajxh);\n\n public List<WsCpfxgcFlft> getWsCpfxgcFlftList(String Ajxh);\n\n public List<WsCpfxgcLxqj> getWsCpfxgcLxqjList(String Ajxh);\n}", "title": "" }, { "docid": "abcd2d4a20e076536168fdf6838c67b9", "score": "0.52482796", "text": "@Override\r\n\tprotected void initVariable() {\n\t\tmDbService = AppContext.getArticleDBService(getActivity());\r\n\t}", "title": "" }, { "docid": "64bf8006ec7a478663b543287d93cfb3", "score": "0.5248104", "text": "public JEvolution(ServiceBBDDServer service){\n this.service = service;\n }", "title": "" }, { "docid": "42f338d6b3d4afdbee42a93481dc7e05", "score": "0.5246744", "text": "public GestionDao(){\r\n db = Db4oEmbedded.openFile(\"ligapokemon\");\r\n }", "title": "" }, { "docid": "64f2c63b1b7da211232b4452019a1fa2", "score": "0.5244839", "text": "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"GGUS_ATTACHService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[4];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"urn:GGUS_ATTACH\", \"getOneAttachment\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"urn:GGUS_ATTACH\", \"getAttachIDs\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"urn:GGUS_ATTACH\", \"addAttachment\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"urn:GGUS_ATTACH\", \"getAttachments\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n }", "title": "" }, { "docid": "9d9e97bd0c79073ccf271d3ad3f09d50", "score": "0.523609", "text": "public interface LcmsCmiIaService {\n List selectLcmsCmiIaPageList(Map<String, Object> commandMap) throws Exception;\n int selectLcmsCmiIaPageListTotCnt(Map<String, Object> commandMap) throws Exception;\n List selectLcmsCmiIaList(Map<String, Object> commandMap) throws Exception;\n Object selectLcmsCmiIa( Map<String, Object> commandMap) throws Exception;\n Object insertLcmsCmiIa( Map<String, Object> commandMap) throws Exception;\n int updateLcmsCmiIa( Map<String, Object> commandMap) throws Exception;\n int updateFieldLcmsCmiIa( Map<String, Object> commandMap) throws Exception;\n int deleteLcmsCmiIa( Map<String, Object> commandMap) throws Exception;\n int deleteLcmsCmiIaAll(Map<String, Object> commandMap) throws Exception;\n Object existLcmsCmiIa( LcmsCmiIa lcmsCmiIa) throws Exception;\n}", "title": "" }, { "docid": "b8c200f244c118e0313ac8a01a6c6156", "score": "0.5235829", "text": "public interface IDBAdmin {\n\n /**\n * Gets the storage interval (in ms), which determines how often\n * modified programs are saved to disk.\n */\n long getStorageInterval() ;\n\n /**\n * Sets the storage interval (in ms), which determines how often\n * modified programs are saved to disk. If the interval is set too\n * low, performance can be impacted since programs being actively\n * modified must be locked to store them. If the interval is set too\n * high, then the potential for lost changes is greater in the event\n * of a crash.\n *\n * @param interval period in ms between checking for and storing\n * modifications\n * @throws IllegalArgumentException if <code>interval</code> is 0 or less\n */\n void setStorageInterval(long interval) throws IllegalArgumentException;\n\n /**\n * Shuts down the database in an orderly manner. If this method is not\n * used to stop the database server then some unsaved modifications could\n * be lost.\n */\n void shutdown() ;\n\n void stopDb() ;\n \n /**\n * This method returns a DBStatus object containing all the information related\n * to the ODB status, updated when the call is executed.\n *\n * @return a DBStatus Object\n * @\n */\n DBStatus getStatus() ;\n\n /**\n * Returns the total storage size, on disk, or zero for transient databases.\n * @return total disk storage in bytes, or zero for transient databases\n */\n long getTotalStorage();\n\n}", "title": "" }, { "docid": "7c3f8cb6e601665d6ee121cdd66c6fa1", "score": "0.52349603", "text": "public DataDictionaryService getDataDictionaryService() {\n return dataDictionaryService;\n }", "title": "" }, { "docid": "45ab5511f46b8ca9c6f58d9b4f44e33a", "score": "0.52349186", "text": "public interface SimpleDataAccessService {\n\n /**\n * Read data from database.\n * @param modelActuality model actuality\n * @param dataActuality data actuality\n * @param calculation current calculation object\n * @param profile calculation profile\n * @param entityMetaKey entity metakey\n * @param paramPairs list of parameters, ex. [{\"KEY\": \"DATAACC0102\"}, {\"CLASSIFIER01#NUMBER\": 20}]\n * @return list of entities\n */\n List<?> lookupData(LocalDateTime modelActuality, LocalDateTime dataActuality, Calculation calculation, Entity profile, String entityMetaKey,\n ScriptObjectMirror... paramPairs);\n}", "title": "" }, { "docid": "b26df6c26e3355b2b3ccfcfe30eb861b", "score": "0.52323556", "text": "public interface TbMedRecService {\n /**\n * 创建新的病历表\n * @param medRec\n * @return\n */\n public boolean newMedRe(TbMedRec medRec);\n}", "title": "" }, { "docid": "2a6a780133e2ae63c06cc52587603b59", "score": "0.523179", "text": "Boundservice getService() {\n return Boundservice.this;\n }", "title": "" }, { "docid": "da91f83e42b5a3ed865243fc552062a5", "score": "0.5230099", "text": "public PFS_DB(){\n\t\t\ttry {\n\t\t\t\tdbConnect = new OracleDBConnection(\"jdbc:oracle:thin:@//injpfsdb01:1521/PFSNK.barnesandnoble.com\", \"PFS_UPDATE\", \"PFS_UPDATE\");\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "title": "" } ]
65b0d938270e19de63cf25068487c17a
Filters an input against the set of filters and decides whether the input should be allowed
[ { "docid": "8f272200517178df02f70c85c5f3c6f7", "score": "0.5279203", "text": "public boolean filterBoolean(FilterArgs args) {\n return filterAll.decide(args).isAllowed;\n }", "title": "" } ]
[ { "docid": "340f8e5141682aa15f1116ff1ee6068d", "score": "0.67287093", "text": "private static boolean isFiltersValid(FilterBy... filters) throws Exception {\n\t\tif (filters == null || (filters != null && filters.length == 0))\n\t\t\tthrow new Exception(\"None filter to filter mainList\");\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "197da24b999d08818cc5d071c0c47df4", "score": "0.64997065", "text": "public void validateFilter(String filters) throws MAValidationException {\r\n\t\tif (filters.isEmpty()) {\r\n\t\t\tlogger.error(\"Filter Should be a valid Boolean\");\r\n\t\t\tthrow new MAValidationException(filters, null, \"invalid.filter\",\r\n\t\t\t\t\tHIDContants.INVALIDFILTER, HIDContants.BADREQUEST);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c917dee04128cb0a6c560efb824cf815", "score": "0.648532", "text": "protected abstract boolean verifiesFilter(T value);", "title": "" }, { "docid": "2836d36fdc996258969a500d308ff904", "score": "0.63278365", "text": "boolean hasFilter();", "title": "" }, { "docid": "2836d36fdc996258969a500d308ff904", "score": "0.63278365", "text": "boolean hasFilter();", "title": "" }, { "docid": "2836d36fdc996258969a500d308ff904", "score": "0.63278365", "text": "boolean hasFilter();", "title": "" }, { "docid": "9cb4c40584070e3521312f5caf9452c8", "score": "0.6304722", "text": "@Test\r\n public void booleanPredicate() throws Exception{\r\n\r\n Filter filter;\r\n \r\n // and sample\r\n filter = ECQL.toFilter(\"ATTR1 < 10 AND ATTR2 < 2 \");\r\n \r\n Assert.assertTrue(filter instanceof And);\r\n \r\n // or sample\r\n filter = ECQL.toFilter(\"ATTR1 < 10 OR ATTR2 < 2 \");\r\n \r\n Assert.assertTrue(filter instanceof Or);\r\n\r\n // not sample\r\n filter = ECQL.toFilter(\"NOt ATTR < 10\");\r\n \r\n Assert.assertTrue(filter instanceof Not);\r\n }", "title": "" }, { "docid": "d717ff2ef2954653947a741a9cd50abc", "score": "0.62008387", "text": "protected abstract boolean shouldFilter() throws IOException;", "title": "" }, { "docid": "a6848d12e4d3b520de7fa86ce19bffbb", "score": "0.61648625", "text": "boolean hasFilterable();", "title": "" }, { "docid": "bca98308f134a5dab35908dd4d8ebe06", "score": "0.6107093", "text": "@Test\n public void componentTestWhiteBlackDomainFilter() {\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"test@example.com\"), equalTo(false));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"test@another.com\"), equalTo(false));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"test@subdomain.another.com\"), equalTo(false));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"test@ok.domain.com\"), equalTo(true));\n\n // Ensure white lists entries pass unless they occur in a black list\n whiteBlackDomainFilter.setWhitelist(ImmutableList.of(\"example.com\", \"foo.com\"));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"test@example.com\"), equalTo(false));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"test@foo.com\"), equalTo(true));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"test@subdomain.foo.com\"), equalTo(true));\n\n // Bad input should fail\n assertThat(whiteBlackDomainFilter.passesFilterCheck(null), equalTo(false));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"foo%example.com\"), equalTo(false));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"fffff@\"), equalTo(false));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"@\"), equalTo(false));\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"fffff@ddddd@ddddd\"), equalTo(false));\n\n // Empty white lists should fail\n whiteBlackDomainFilter.setWhitelist(ImmutableList.of());\n assertThat(whiteBlackDomainFilter.passesFilterCheck(\"test@foo.com\"), equalTo(false));\n\n }", "title": "" }, { "docid": "3717bd795e2355bdd2b2cd1ae1dc8fe2", "score": "0.6105466", "text": "@Override\n\tpublic boolean checkFilterConditions() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b719a9b173b6fd7ed7de4b120dcebee8", "score": "0.6055159", "text": "public void validateSupportedFilters(@Nullable final List<FilterBy> acceptedFilters) {\n // Do nothing, when all filters are accepted.\n if (acceptedFilters != null) {\n for (final Map.Entry<FilterBy, String> definedFilter : filters.entrySet()) {\n if (!acceptedFilters.contains(definedFilter.getKey())) {\n throw new CotSdkException(String.format(\"This filter is not available in used api [%s]\", definedFilter.getKey()));\n }\n }\n }\n }", "title": "" }, { "docid": "5e4e4ffcb87a9dce613fc22c5f7ff3d8", "score": "0.6030442", "text": "public boolean isAllowed(String path) {\n for (String filter : STARTS_WITH_FILTER) {\n if (path.startsWith(filter)) {\n return false;\n }\n }\n for (String filter : CONTAINS_FILTER) {\n if (path.contains(filter)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "39528bfadbc54ca722df84392b8c4fa7", "score": "0.60223556", "text": "public abstract boolean isAcceptedByFilter(final Object object);", "title": "" }, { "docid": "ea4e711519aa9edebcf972340b889989", "score": "0.59986013", "text": "public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {\n boolean valid = true;\n Map parameters = req.getParameterMap();\n\n // iterates through all the values inputted in different input fields in the form\n // checks if any of the input values contains SQL command if true it stops the iteration\n if(parameters != null) {\n Object[] inputFieldKeys = parameters.keySet().toArray();\n for (var key : inputFieldKeys ) {\n String[] inputValues = (String[])parameters.get(key.toString());\n\n for (var value:inputValues) {\n if(checkCharacters(value) == true) {\n valid = false;\n break;\n }\n }\n\n if(valid == false ){break;}\n }\n }\n\n // if any of the input fields contain sql injection it diplays a error message to the user\n if(valid == false) {\n try{\n RequestDispatcher dispatcher = req.getRequestDispatcher(\"/error.jsp\");\n req.setAttribute(\"message\", \"Unsuccesful action. Form contains sql commands such as '<, >, !, {, } , insert, into, where, script, delete, input.'\");\n dispatcher.forward(req, resp);\n }\n catch (Exception ex) {\n ex.printStackTrace();\n }\n }else{\n // calls the next filter in the filtering chain\n chain.doFilter(req, resp);\n }\n }", "title": "" }, { "docid": "4be0125bb84bb3454c0f377a20fa20c8", "score": "0.58756304", "text": "@SuppressWarnings({\"unchecked\"})\n void filter() {\n if (!returnList.isEmpty()) {\n // Type filter\n if (spinnerType.getSelectedItemPosition() != 0) {\n for (Iterator<Place> i = returnList.iterator(); i.hasNext(); ) {\n Place item = i.next();\n if (!checkType(item))\n i.remove();\n }\n }\n // Rating filter\n for (Iterator<Place> i = returnList.iterator(); i.hasNext(); ) {\n Place item = i.next();\n if (!checkRating(item))\n i.remove();\n }\n }\n }", "title": "" }, { "docid": "b68eb5d2f217f915e120214b981dfb75", "score": "0.5838811", "text": "@Override\n public boolean eval( Filter filter ) {\n return false;\n }", "title": "" }, { "docid": "65dd9bbd908693f0dabe8557f531325c", "score": "0.5837186", "text": "public interface Filter {\n\t\n\tpublic static final double BYTES_IN_KB = 1024.0;\n\tpublic static final String YES = \"YES\";\n\tpublic static final String NO = \"NO\";\n\t\n\t/**\n\t * Check if the given file passes the filter.\n\t * @param f The given file\n\t * @return True if the given file passes the filter.\n\t */\n\tpublic boolean isPass(File f);\n\t\n}", "title": "" }, { "docid": "3ab58b33b37f414ede0429d2abb3c792", "score": "0.58014256", "text": "@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6e743d36c042cfb8a0915d317e9a7a3c", "score": "0.57700545", "text": "public boolean isAnyFilter() {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:66119:Filter methodsFor: 'testing'!\n{BooleanVar CLIENT} isAnyFilter\n\t\"Essential. Whether this is an 'any' Filter, i.e. it matches Regions which contain anything in the baseRegion\"\n\t\n\tself subclassResponsibility!\n*/\n}", "title": "" }, { "docid": "4a53275ee671bf2f60c2af44b91f0806", "score": "0.57299805", "text": "@Override\n\t\t\tpublic boolean apply(Request<?> arg3) {\n\t\t\t\tboolean v0 = arg3.getTag() == null\n\t\t\t\t\t\t|| !arg3.getTag().equals(\"UN_FILTER\") ? true : false;\n\t\t\t\treturn v0;\n\t\t\t}", "title": "" }, { "docid": "4a53275ee671bf2f60c2af44b91f0806", "score": "0.57299805", "text": "@Override\n\t\t\tpublic boolean apply(Request<?> arg3) {\n\t\t\t\tboolean v0 = arg3.getTag() == null\n\t\t\t\t\t\t|| !arg3.getTag().equals(\"UN_FILTER\") ? true : false;\n\t\t\t\treturn v0;\n\t\t\t}", "title": "" }, { "docid": "29535823694f54440c43599250f89a40", "score": "0.57270914", "text": "@Test\n public void testApplyFilter_1()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "0ffc76bd8465ea0cdcd0c7c607f5f848", "score": "0.57210785", "text": "@Test\n public void testApplyFilter_15()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "5a8436af5ecc9f8c5a63addbfd5213b3", "score": "0.5715393", "text": "@Test\n public void testApplyFilter_2()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setActions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "b845bba799d5788b9da6d87dae5e3253", "score": "0.5701303", "text": "@Override\r\n public boolean shouldFilter() {\r\n return true;\r\n }", "title": "" }, { "docid": "349055c61e34e54a34701bf5c6340798", "score": "0.56977093", "text": "protected abstract boolean testFilterPredicate(D item, String filter);", "title": "" }, { "docid": "48fc3043908eaa19a82e9d6efc3be292", "score": "0.56690717", "text": "@Test\n public void testApplyFilter_5()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setActions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "491831b6899b6d2f6a0b55a225b51edc", "score": "0.56518084", "text": "public boolean isFiltering()\n {\n return hideErrors || filters.size() > 0;\n }", "title": "" }, { "docid": "2ba307c8142759ac9be9f6b65b8ec290", "score": "0.56333756", "text": "@Test\n public void testApplyFilter_4()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setActions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "940625ca3f6a38dd2349b67260b12198", "score": "0.56332064", "text": "@Override\n public boolean shouldFilter() {\n return true;\n }", "title": "" }, { "docid": "bc11e08c25f775f51309cf9c0007333f", "score": "0.56282055", "text": "@Test\n public void testApplyFilter_11()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "743b18623416d4d63cc64ff20c28d50e", "score": "0.56250703", "text": "@Test\n public void testApplyFilter_16()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "342b9c4ee68f7180156d6bf1c8e029d3", "score": "0.5617497", "text": "@Test\n public void testApplyFilter_14()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "f5fa27742b59f770ee7444feb527b460", "score": "0.56122094", "text": "SearchRequest<T> filter(Iterable<FilterExpression> filters);", "title": "" }, { "docid": "3bd8619be3739e1bddee76df2dc4cd17", "score": "0.5607456", "text": "@Test\n public void testApplyFilter_8()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setActions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "560e8965568d54b39a1e111b5310989b", "score": "0.559298", "text": "@Test\n public void testApplyFilter_13()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "f5d72cd2cc2c4c5e9f2a5eb0a3aac681", "score": "0.55924636", "text": "@Test\n public void testApplyFilter_12()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "13c62aa91f51b1394714054bcd02fe8c", "score": "0.5587919", "text": "@Override\n\tpublic boolean shouldFilter() {\n\t\tSystem.out.println(\"Should Filter invoked \");\n\t\treturn true;\n\t}", "title": "" }, { "docid": "895c814e05eadd2f2b838693eed9ba4e", "score": "0.5578924", "text": "@Override\n\tpublic boolean supportsFiltering() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2c93b69e616ab0822b7797662c3a81bb", "score": "0.55781853", "text": "public String safetyInFilter(String s);", "title": "" }, { "docid": "e5ca32b088d9632fa4c21e27e138e202", "score": "0.55773926", "text": "@Test\n public void testApplyFilter_10()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "448484545811cb4e718d5b35a91dd095", "score": "0.5575092", "text": "@Test\n public void testApplyFilter_6()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setActions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "3ad9d23b9bc7c37dc493c513ec03a6c5", "score": "0.5571504", "text": "@Test\n public void testApplyFilter_3()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "c9a1ce28012f5f51e5b34610035babd1", "score": "0.5562575", "text": "private FletcherFilterPrule() {\n // More specific rules could be added to match specific filter conditions\n // in order to offload the computation to the correct Fletcher kernel\n super(RelOptHelper.any(FilterPrel.class), \"FletcherFilterPrule\");\n }", "title": "" }, { "docid": "c5fd1c2ec318e5648f70ecf093d4601a", "score": "0.5558176", "text": "public static Filter createFilter(String[] sectionArray) throws TypeOneException\n {\n // if NOT is found when given a filter we turn notsuffix to true\n if(sectionArray.length >= 2 && (sectionArray[sectionArray.length-1].equals(NOT_FILTER)))\n //notSuffix = true;\n return new NegationFilter(FilterFactory.createFilter(Arrays.copyOfRange(sectionArray,0,sectionArray.length-1)));\n\n //handling all types of filters by the given name and creating the filter object\n switch (sectionArray[0])\n {\n case (\"greater_than\"):\n double greaterThen = Double.parseDouble(sectionArray[1]);\n if(greaterThen>=0)\n {\n if(notSuffix) //if Not was given\n return new NegationFilter(new GreaterThenFilter(greaterThen));\n return new GreaterThenFilter(greaterThen);}\n else //if the parameters aren't good, throw\n throw new BadParametersException(WARNING_MSG);\n\n case (\"between\"):\n double value1 = Double.parseDouble(sectionArray[1]);\n double value2 = Double.parseDouble(sectionArray[2]);\n\n if(value1< value2 && value1>=0 && value2>0){ //param check\n if(notSuffix)\n return new NegationFilter(new BetweenFilter(value1,value2));\n return new BetweenFilter(value1,value2);}\n else\n throw new BadParametersException(WARNING_MSG);\n\n case (\"smaller_than\"):\n double smallerThen = Double.parseDouble(sectionArray[1]);\n if(smallerThen>0){//param check\n if(notSuffix)\n return new NegationFilter(new SmallerThenFilter(smallerThen));\n return new SmallerThenFilter(smallerThen);}\n else//if the parameters aren't good, throw\n throw new BadParametersException(WARNING_MSG);\n\n case (\"file\"):\n String fileName = sectionArray[1];\n if(notSuffix)\n return new NegationFilter(new FileNameFilter(fileName));\n return new FileNameFilter(fileName);\n\n case (\"contains\"):\n String contains = sectionArray[1];\n if(notSuffix)\n return new NegationFilter(new ContainsFilter(contains));\n return new ContainsFilter(contains);\n\n case (\"prefix\"):\n String prefix = sectionArray[1];\n if(notSuffix)\n return new NegationFilter(new PrefixFilter(prefix));\n return new PrefixFilter(prefix);\n\n case (\"suffix\"):\n String suffix = sectionArray[1];\n if(notSuffix)\n return new NegationFilter(new SuffixFilter(suffix));\n return new SuffixFilter(suffix);\n\n case (\"writable\"):\n String writable = sectionArray[1];\n if(writable.equals(\"YES\")||writable.equals(\"NO\")){//param check\n if(notSuffix)\n return new NegationFilter(new WritableFilter(writable));\n return new WritableFilter(writable);}\n else//if the parameters aren't good, throw\n throw new BadParametersException(WARNING_MSG);\n\n case (\"executable\"):\n String executable = sectionArray[1];\n if((executable.equals(\"YES\"))||(executable.equals(\"NO\"))){//param check\n if(notSuffix)\n return new NegationFilter(new ExecutableFilter(executable));\n return new ExecutableFilter(executable);}\n else//if the parameters aren't good, throw\n throw new BadParametersException(WARNING_MSG);\n\n case (\"hidden\"):\n String hidden = sectionArray[1];\n if((hidden.equals(\"YES\"))||(hidden.equals(\"NO\"))){//param check\n if(notSuffix)\n return new NegationFilter(new HiddenFilter(hidden));\n return new HiddenFilter(hidden);}\n else//if the parameters aren't good, throw\n throw new BadParametersException(WARNING_MSG);\n\n case(\"all\"):\n if(notSuffix)\n return new NegationFilter(new DefaultFilter());\n return new DefaultFilter();\n\n default://default throw exception if you didn't find the filter name\n // , we will handle it later and we'll give the Defualt filter\n throw new BadParametersException(WARNING_MSG);\n\n\n }\n\n }", "title": "" }, { "docid": "13d2f6e14393fa422052c55da8a12412", "score": "0.5540065", "text": "private List<PhoneDto> applyValidityFilter(Optional<Boolean> validFilter, List<PhoneDto> unfilteredResponse) {\n if (validFilter.isEmpty())\n return unfilteredResponse;\n return validFilter.orElse(true) ? unfilteredResponse.stream()\n .filter(phoneDto -> phoneDto.getValidityStatus())\n .collect(Collectors.toList())\n : unfilteredResponse.stream()\n .filter(phoneDto -> !phoneDto.getValidityStatus())\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "4850ff385bfdfe1689475da346645992", "score": "0.553624", "text": "public static Predicate<ApiFilter> isNonAggregatableInFilter() {\n return apiFilter ->\n !apiFilter.getDimensionField().equals(apiFilter.getDimension().getKey()) ||\n apiFilter.getValues().size() != 1 ||\n !(\n apiFilter.getOperation().equals(FilterOperation.in) ||\n apiFilter.getOperation().equals(FilterOperation.eq)\n );\n }", "title": "" }, { "docid": "1b3dcd1a3505ae9e58bba10160ccc4fb", "score": "0.5535327", "text": "private void applyFilter() {\n\t\t// Remove all old elements shown in the TableView\n\t\tshadowsDisplayed.removeAll(shadowsDisplayed);\n\t\t\n\t\t// Add all OutputShadows to shadowsDisplayed\n\t\tshadowsDisplayed.addAll(shadows);\n\t\t// Apply filters: remove entries that do not agree with the specified filter(s)\n\t\t// Filter 1: resource mean\n\t\tif (LayoutManager.isNormal(textFieldFilterResourceMean) && textFieldFilterResourceMean.getText().length()>0) {\n\t\t\tdouble value = Double.parseDouble(textFieldFilterResourceMean.getText());\n\t\t\tfor (Iterator<OutputShadow> it = shadowsDisplayed.iterator(); it.hasNext();){\n\t\t\t\tOutputShadow s = it.next();\n\t\t\t\tif (!s.resourceValueMean.equals(value, true))\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Filter 2: resource SD\n\t\tif (LayoutManager.isNormal(textFieldFilterResourceSD) && textFieldFilterResourceSD.getText().length()>0) {\n\t\t\tdouble value = Double.parseDouble(textFieldFilterResourceSD.getText());\n\t\t\tfor (Iterator<OutputShadow> it = shadowsDisplayed.iterator(); it.hasNext();){\n\t\t\t\tOutputShadow s = it.next();\n\t\t\t\tif (!s.resourceValueSD.equals(value, true))\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Filter 3: extrinsic mean\n\t\tif (LayoutManager.isNormal(textFieldFilterExtrinsicMean) && textFieldFilterExtrinsicMean.getText().length()>0) {\n\t\t\tdouble value = Double.parseDouble(textFieldFilterExtrinsicMean.getText());\n\t\t\tfor (Iterator<OutputShadow> it = shadowsDisplayed.iterator(); it.hasNext();){\n\t\t\t\tOutputShadow s = it.next();\n\t\t\t\tif (!s.extrinsicEventMean.equals(value, true))\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Filter 4: extrinsic SD\n\t\tif (LayoutManager.isNormal(textFieldFilterExtrinsicSD) && textFieldFilterExtrinsicSD.getText().length()>0) {\n\t\t\tdouble value = Double.parseDouble(textFieldFilterExtrinsicSD.getText());\n\t\t\tfor (Iterator<OutputShadow> it = shadowsDisplayed.iterator(); it.hasNext();){\n\t\t\t\tOutputShadow s = it.next();\n\t\t\t\tif (!s.extrinsicEventSD.equals(value, true))\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Filter 5: interruption rate\n\t\tif (LayoutManager.isNormal(textFieldFilterInterruptionRate) && textFieldFilterInterruptionRate.getText().length()>0) {\n\t\t\tdouble value = Double.parseDouble(textFieldFilterInterruptionRate.getText());\n\t\t\tfor (Iterator<OutputShadow> it = shadowsDisplayed.iterator(); it.hasNext();){\n\t\t\t\tOutputShadow s = it.next();\n\t\t\t\tif (!s.interruptionRate.equals(value, true))\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t// Automatically select the first\n\t\tif (shadows.size()>0)\n\t\t\ttableviewOutputShadows.getSelectionModel().selectFirst();\n\t\t\n\t\t// Show the user the result\n\t\ttableviewOutputShadows.refresh();\n\t}", "title": "" }, { "docid": "2862736a89aea68bb107c90d4203e68e", "score": "0.5534081", "text": "private void createFilter() {\n\t}", "title": "" }, { "docid": "60da446eb9c36e4107320c6816e4cf52", "score": "0.55139965", "text": "public FilterResult filter(FilterArgs args) {\n return filterAll.decide(args);\n }", "title": "" }, { "docid": "f7de174c7a7fe113e63a91e6f838e3c7", "score": "0.5513842", "text": "protected abstract boolean matchesFilter(File toFilter);", "title": "" }, { "docid": "b49481ff3d1d39504d3bbc4c8ce51be6", "score": "0.5504006", "text": "SearchRequest<T> filter(FilterExpression filter, FilterExpression... filters);", "title": "" }, { "docid": "aeb3ccf6c1dfd018e5778d2e91b464a3", "score": "0.549446", "text": "public interface Filter {\n public boolean accept(String prefix, Object object);\n}", "title": "" }, { "docid": "3a7016743aff197e7a5d1da9fc23da39", "score": "0.5488397", "text": "@Test\n public void testApplyFilter_9()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "ff0f29509d0cef3d72c1f89bb41827da", "score": "0.548394", "text": "@Test\n public void testApplyFilter_7()\n throws Exception {\n ScriptFilter filter = new ScriptFilter();\n filter.setConditions(new HashSet());\n filter.setActions(new HashSet());\n filter.setAllConditionsMustPass(true);\n List<ScriptStep> steps = new LinkedList();\n\n ScriptFilterUtil.applyFilter(filter, steps);\n\n }", "title": "" }, { "docid": "3023b2dfc278e30c91ae4047fd6a38d3", "score": "0.5479721", "text": "public boolean shouldFilter() {\n return false; //(context.getRequest().getParameter(\"service\") == null &&\n // context.getResponse().getStatus() == 200);\n }", "title": "" }, { "docid": "d3aea4b636cbfffed606a9c6b4b7bd1c", "score": "0.5475004", "text": "Filter createFilter();", "title": "" }, { "docid": "23c21658b568f48c32710b3c4a6d0aa0", "score": "0.54711205", "text": "public abstract Filter getValidToSelectFilter(SwccgGame game, Collection<PhysicalCard> cardsSelected);", "title": "" }, { "docid": "52f724b48290f069ce30dc832029f059", "score": "0.5463474", "text": "public boolean usesFilter(String fName)\n {\n return (indexOfFilter(fName) >= 0);\n }", "title": "" }, { "docid": "8aa653695672921332d8387861c87b6d", "score": "0.54599434", "text": "private static boolean passFilters(OEGraphMol mol)\n {\n //number of heavy atoms should be less than maxAtoms \n if (oechem.OECount(mol, new OEIsHeavy()) > maxAtoms) {\n System.err.println(\"Ignoring molecule name: \" + mol.GetTitle() + \", it has more than \" + maxAtoms + \" atoms.\");\n return false;\n }\n //number of heavy atoms should be greater than 1\n if (oechem.OECount(mol, new OEIsHeavy()) < 1) {\n System.err.println(\"Ignoring molecule name: \" + mol.GetTitle() + \", it does not have any atoms\");\n return false;\n }\n //keep molecules containing one component\n int[] parts = new int[mol.GetMaxAtomIdx()];\n int count = oechem.OEDetermineComponents(mol, parts);\n if (count > 1) {\n System.err.println(\"Ignoring molecule name: \" + mol.GetTitle() + \", it has \" + count + \" structures\");\n return false;\n }\n\n //atomic elements greater than 1\n for (OEAtomBase atom : mol.GetAtoms()) {\n if (atom.GetAtomicNum() < 1) {\n System.err.println(\"Ignoring molecule name: \" + mol.GetTitle() + \", it has an invalid atom: \" + atom.GetName());\n return false;\n }\n //ignore atoms greater than Iodine\n if (atom.GetAtomicNum() > 53) {\n System.err.println(\"Ignoring molecule name: \" + mol.GetTitle() + \", it has an atomic number greater than 53 (Iodine): \" + atom.GetName());\n return false;\n }\n //ignore molecules with Neon\n if (atom.GetAtomicNum() == 10) {\n System.err.println(\"Ignoring molecule name: \" + mol.GetTitle() + \", it has an atomic number 10 (Neon): \" + atom.GetName());\n return false;\n }\n }\n\n //filter out compounds with invalid valence\n /* it appears that we don't have license to the filter toolkit\n if (! filter.call(mol)) {\n System.err.println(\"Failed valence check: \" + mol.GetTitle() );\n return false;\n }\n */\n\n return true;\n }", "title": "" }, { "docid": "3fb529a52c6b7bafad4ad68561717e13", "score": "0.54560137", "text": "public boolean matchesFilter(String nameFilter, String genderFilter, String ageFilter) {\n return matchesShelterName(nameFilter) && matchesGender(genderFilter) && matchesAgeRange(ageFilter);\n }", "title": "" }, { "docid": "f7bdf3972a7a9ede79e714e9beea7a52", "score": "0.5448555", "text": "@Override\n public boolean accept(File file) {\n\n // unconditional checks\n if ((file.isFile() && onlyDirectories) ||\n (file.isDirectory() && onlyFiles)) {\n return false;\n }\n // if short file name != null, it must match\n if (shortFileName != null) {\n if (file.isFile() && file.getName().equals(shortFileName)) {\n return true;\n } else {\n return false;\n }\n }\n\n boolean accept = false;\n // if we meet an or condition, don't check anymore\n accept = satisfiesOr(file);\n\n // if or conditions not satisfied but ands are\n if (!accept && satisfiesAnd(file)) {\n accept = true;\n String fileName = file.getName();\n // reject if directory and we don't do directories\n if (file.isDirectory() && (!isDirectoryFilter())) {\n accept = false;\n }\n // do the ends with check - inverse logic a bit\n // the file must end with one of the strings in\n // the endsWith list in order to be accepted.\n if (accept && endsWith.size() > 0) {\n accept = false;\n for (String ew : endsWith) {\n if (ew != null && (fileName.endsWith(ew))) {\n accept = true;\n break;\n }\n }\n }\n // passed the directory and end with check\n if (accept && includes.size() > 0) {\n for (String incl : includes) {\n if (!fileName.contains(incl)) {\n accept = false;\n break;\n }\n }\n }\n // passed the include filter\n if (accept && excludes.size() > 0) {\n for (String excl : excludes) {\n if (fileName.contains(excl)) {\n accept = false;\n break;\n }\n }\n }\n // passed the inclusion filters, insure that the name matches\n if (accept && includeRegExpr.size() > 0) {\n for (String regex : includeRegExpr) {\n if (!Pattern.matches(regex, fileName) &&\n !Pattern.matches(regex, file.getAbsolutePath())) {\n accept = false;\n break;\n }\n }\n }\n\n // using the exclusion filters, make sure the name doesn't match\n if (accept && excludeRegExpr.size() > 0) {\n for (String regex : excludeRegExpr) {\n if (Pattern.matches(regex, shortFileName) ||\n Pattern.matches(regex, file.getAbsolutePath())) {\n accept = false;\n break;\n }\n }\n }\n\n }\n return accept;\n }", "title": "" }, { "docid": "ecc4a6966208cddf00952e8506f11fb9", "score": "0.54399526", "text": "@Test\n public void testFilterOnField_2()\n throws Exception {\n String filterField = \"\";\n ScriptFilterCondition condition = new ScriptFilterCondition();\n condition.setCondition(\"\");\n condition.setValue(\"\");\n ScriptStep currentStep = new ScriptStep();\n\n boolean result = ScriptFilterUtil.filterOnField(filterField, condition, currentStep);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "48deafcd0a84e4011a44ea686402154d", "score": "0.54281116", "text": "@Test\n public void filter_match() {\n assertIsSuccess(t.filter(s -> true));\n }", "title": "" }, { "docid": "4f11bc6c51e78a780a109f086efca7a7", "score": "0.5407936", "text": "@Test\n public void testFilterOnField_3()\n throws Exception {\n String filterField = \"\";\n ScriptFilterCondition condition = new ScriptFilterCondition();\n condition.setCondition(\"\");\n condition.setValue(\"\");\n ScriptStep currentStep = new ScriptStep();\n\n boolean result = ScriptFilterUtil.filterOnField(filterField, condition, currentStep);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "f9dbba4be82076a00be929b637e4a04e", "score": "0.5403605", "text": "private static String[] filter(String[] strs, Filter filterObj){\n List<String> filtered = new ArrayList();\n for (String str : strs) {\n if(filterObj.validate(str)){\n filtered.add(str);\n }\n }\n return filtered.toArray(new String[0]);\n }", "title": "" }, { "docid": "f0a3a469e52a6ade82943f4fb277be43", "score": "0.53874964", "text": "@Test\n public void testApplyFilters_1()\n throws Exception {\n Collection<ScriptFilter> filters = new LinkedList();\n List<ScriptStep> steps = new LinkedList();\n\n List<ScriptStep> result = ScriptFilterUtil.applyFilters(filters, steps);\n\n assertNotNull(result);\n assertEquals(0, result.size());\n }", "title": "" }, { "docid": "9f9db7188a3467696bad1e4c431babb1", "score": "0.5386423", "text": "public String secondaryUserInputFilter(final String s);", "title": "" }, { "docid": "c089228e835d813d4aa7e11fca587514", "score": "0.538548", "text": "@Test\n public void testFilterOnFieldSets_2()\n throws Exception {\n Set<RequestData> fields = null;\n ScriptFilterCondition condition = new ScriptFilterCondition();\n ScriptStep currentStep = new ScriptStep();\n List<ScriptStep> steps = new LinkedList();\n\n boolean result = ScriptFilterUtil.filterOnFieldSets(fields, condition, currentStep, steps);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.5382175", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "511b99014c486f1c361e8db1a69b7326", "score": "0.5382175", "text": "java.lang.String getFilter();", "title": "" }, { "docid": "37ac5a9c5e500b794ffd397eb5ff72b0", "score": "0.5382024", "text": "protected abstract boolean matchesThisFilter (final DATATYPE aValue);", "title": "" }, { "docid": "e09c0a4b7d71132bb0073e4d2029125e", "score": "0.53791004", "text": "@Test\n public void testFilterOnField_1()\n throws Exception {\n String filterField = null;\n ScriptFilterCondition condition = new ScriptFilterCondition();\n ScriptStep currentStep = new ScriptStep();\n\n boolean result = ScriptFilterUtil.filterOnField(filterField, condition, currentStep);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "0227083b7c27b52522cad6cae4b5b0b3", "score": "0.5369433", "text": "public boolean isAllFilter() {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:66114:Filter methodsFor: 'testing'!\n{BooleanVar CLIENT} isAllFilter\n\t\"Essential. Whether this is an 'all' Filter, i.e. it only matches Regions which contain everything in the baseRegion\"\n\t\n\tself subclassResponsibility!\n*/\n}", "title": "" }, { "docid": "756007b6f2ec155695f3e382b21ef3fb", "score": "0.53632414", "text": "@Override\r\n\tpublic void setFilter(int arg0, boolean arg1) {\n\r\n\t}", "title": "" }, { "docid": "65e3e16029599755002534a5e2f9d058", "score": "0.5346191", "text": "@Override\n\tpublic boolean checkFilterConditions(Object entityToFilter) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "badf71b4896c363cbc0a01890dcb9d21", "score": "0.5338489", "text": "public boolean accept( String name )\r\n {\r\n if( name == null )\r\n \treturn false;\r\n if( this.rule.equals( Rules.CaseInsensitive ))\r\n \tname = name.trim().toLowerCase();\r\n if( StringUtils.isEmpty(this.sWild) || S_ALL.equals(sWild))\r\n \treturn true;\r\n return( name.matches( sWild ));\r\n }", "title": "" }, { "docid": "e06dd8965eefee3411b10c65087ae48b", "score": "0.53379095", "text": "@Test\n public void testFilterOnField_5()\n throws Exception {\n String filterField = \"\";\n ScriptFilterCondition condition = new ScriptFilterCondition();\n condition.setCondition(\"\");\n condition.setValue(\"\");\n ScriptStep currentStep = new ScriptStep();\n\n boolean result = ScriptFilterUtil.filterOnField(filterField, condition, currentStep);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "8338b35da04686fa7401bdd27ab56121", "score": "0.53377646", "text": "public void filterAttacks(Predicate<AttackVector> filter)\n\t{\n\t\tthis.filter = filter;\n\t\tAttackVectors.forEach(av ->\n\t\t{\n\t\t\tboolean pred = (filter == null || filter.test(av)) && av.canShow();\n\t\t\tboolean shown = isShown(av);\n\t\t\tif (pred && !shown)\n\t\t\t\tattemptAddAttack(av);\n\t\t\telse if (!pred && shown)\n\t\t\t\thideAttack(av);\n\t\t});\n\n\t\tpurgeFlagged();\n\t}", "title": "" }, { "docid": "412439ec7b366224d82d91e5d47e2aef", "score": "0.5337414", "text": "@Override\n public boolean test(Record record) {\n Iterator<Predicate<Record>> it = filters.iterator();\n while (it.hasNext()) {\n if(it.next().test(record)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "ccf452b288e715113a59155e87e33073", "score": "0.5336339", "text": "public FilterSet(BasicPlugin pl) {\n defaultResult = FilterResult.DENY_FINAL;//changed during load()\n permission = null;//TODO set permission for groups\n visibleCommands = new HashSet<>();\n invisibleCommands = new HashSet<>();\n filtersEnabled = new HashMap<>();\n filterGroups = new HashMap<>();\n\n plugin = pl;\n filters = new HashMap<>();\n\n filterWhitelist = new Filter(FilterResult.ALLOW_FINAL, FilterResult.SKIP,\n args -> visibleCommands.contains(args.getCommand())\n );\n filterBlacklist = new Filter(FilterResult.DENY_FINAL, FilterResult.SKIP,\n args -> invisibleCommands.contains(args.getCommand())\n );\n\n filters.put(\"whitelist\", filterWhitelist);\n filters.put(\"blacklist\", filterBlacklist);\n\n filters.put(\"group-whitelists\", new Filter(FilterResult.ALLOW_FINAL, FilterResult.SKIP,\n args -> {\n for (FilterSet groupFilterSet : filterGroups.values()) {\n if (groupFilterSet.hasPermission(args)) {\n if (groupFilterSet.filterWhitelist.decide(args) == FilterResult.ALLOW_FINAL) {\n return true;\n }\n }\n }\n return false;\n }\n ));\n filters.put(\"group-blacklists\", new Filter(FilterResult.DENY_FINAL, FilterResult.SKIP,\n args -> {\n for (FilterSet groupFilterSet : filterGroups.values()) {\n if (groupFilterSet.hasPermission(args)) {\n if (groupFilterSet.filterWhitelist.decide(args) == FilterResult.DENY_FINAL) {\n return true;\n }\n }\n }\n return false;\n }\n ));\n filterAll = new Filter(FilterResult.ALLOW_FINAL, FilterResult.DENY_FINAL,\n args -> {\n FilterResult currentResult = FilterResult.SKIP;\n for (Filter filter : filtersEnabled.values()) {\n FilterResult result = filter.decide(args);\n if (result.isFinal) {\n return result.isAllowed;\n }\n if (!result.isSkipped && result.overrides(currentResult)) {\n currentResult = result;\n }\n }\n if (currentResult.isSkipped) {\n currentResult = defaultResult;\n }\n return currentResult.isAllowed;\n }\n );\n }", "title": "" }, { "docid": "115a7e0186b73a2dfca16dae324b2b8c", "score": "0.5330302", "text": "protected void filterRequested(List<AttributeType> converted)\n\t{\n\t}", "title": "" }, { "docid": "08296719a767b50f300826738263976e", "score": "0.5328379", "text": "@Test\n public void testFilterOnFieldSets_6()\n throws Exception {\n Set<RequestData> fields = new HashSet();\n ScriptFilterCondition condition = new ScriptFilterCondition();\n condition.setCondition(\"\");\n ScriptStep currentStep = new ScriptStep();\n List<ScriptStep> steps = new LinkedList();\n\n boolean result = ScriptFilterUtil.filterOnFieldSets(fields, condition, currentStep, steps);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "a77c6738d9896fe0a79f4ab6eb8036df", "score": "0.532665", "text": "@Test\n public void testFilterOnFieldSets_5()\n throws Exception {\n Set<RequestData> fields = new HashSet();\n ScriptFilterCondition condition = new ScriptFilterCondition();\n condition.setCondition(\"\");\n ScriptStep currentStep = new ScriptStep();\n List<ScriptStep> steps = new LinkedList();\n\n boolean result = ScriptFilterUtil.filterOnFieldSets(fields, condition, currentStep, steps);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "248146495130a625474e93d9c6d9e6b7", "score": "0.53260237", "text": "private boolean filterEdit(String s, Filter editFilter) {\r\n \t\tDisplay display = Display.getDefault();\r\n \t\tFilterShell filterEdit = new FilterShell(display, s, account, accounts);\r\n \t\tfilterEdit.setFilter(editFilter);\r\n \t\tfilterEdit.open();\r\n \t\treturn true;\r\n \t}", "title": "" }, { "docid": "9b07d4d739b8e7af55348e40f4cf7525", "score": "0.5325516", "text": "public void setFilter(String filterText) {\n Objects.requireNonNull(filterText, \"Filter text cannot be null.\");\n if (Objects.equals(this.filterText, filterText.trim())) {\n return;\n }\n this.filterText = filterText.trim().toLowerCase(Locale.ENGLISH);\n\n setFilter(Manufacturers -> passesFilter(Manufacturers.getId(), this.filterText)\n || passesFilter(Manufacturers.getProduct().getName(), this.filterText)\n || passesFilter(Manufacturers.getOrder().getCustomer(), this.filterText)\n || passesFilter(Manufacturers.getOrder().getCreated(), this.filterText)\n || passesFilter(Manufacturers.getOrder().getDone(), this.filterText)\n || passesFilter(Manufacturers.getOrder().getId(), this.filterText)\n || passesFilter(Manufacturers.getHeight(), this.filterText)\n || passesFilter(Manufacturers.getQuantity(), this.filterText)\n || passesFilter(Manufacturers.getMaterialClass(), this.filterText)\n || passesFilter(Manufacturers.getMaterialColor(), this.filterText)\n || passesFilter(Manufacturers.getMaterialCover(), this.filterText)\n\n\n );\n }", "title": "" }, { "docid": "6b17104db04d41d5cc52b69ed51c081e", "score": "0.53233325", "text": "public void filter() {\r\n\t\t// no implementation provided\r\n\t}", "title": "" }, { "docid": "acb57e42235c6690ec7f5e49c1408696", "score": "0.532133", "text": "boolean Argument_checks(int index, int int_Args[], float float_Args[]){\n String TAG = \"Invalid input:\";\n if(index >4 || index <0){\n Log.e(TAG, \"Index of Filter should be between 0 to 4\");\n return false;\n }\n\n switch (index){\n\n case MOTION_BLUR :\n //Check Arguments for motion blur\n if(int_Args == null){\n Log.e(TAG,\"Motion Blur - Int Args is null\");\n return false;\n }\n if(int_Args[0] < 0 || int_Args[1] > 1 || int_Args[1] < 0) {\n Log.e(TAG,\"Motion Blur - Provide the radius greater than 0 and blur direction as 0 or 1\");\n return false;\n }\n break;\n case GAUSSIAN_BLUR :\n //Check Arguments for Gaussian Blur\n if(int_Args == null || float_Args==null){\n Log.e(TAG,\"Gaussian Blur - Int or Float Args is null\");\n return false;\n }\n if(int_Args[0]< 0 || float_Args[0] <0) {\n Log.e(TAG, \"Gaussian Blur - The radius and standard deviation should be greater than 0\");\n return false;\n }\n break;\n case SOBEL_FILTER :\n //Check Arguments for Sobel Filter\n if(int_Args == null){\n Log.e(TAG,\"Sobel Filter - Int Args is null\");\n return false;\n }\n if(int_Args[0]< 0 ||int_Args[0]>2){\n Log.e(TAG, \"Sobel Filter - a0 should be within 0 and 2 inclusive.\");\n return false;\n }\n break;\n case UNSHARP_MASK :\n // Check the Arguments for Unsharp Mask transform\n if(float_Args == null){\n Log.e(TAG,\"Unsharp Mask - Float Args is null\");\n return false;\n }\n if(float_Args[0]<0||float_Args[1]<0) {\n Log.e(TAG, \"Unsharp Mask - The scaling factor and standard deviation should be greater than 0\");\n return false;\n }\n break;\n case NEON_EDGES:\n // Check the Arguments for Neon Edges\n if(float_Args == null){\n Log.e(TAG,\"Neon Edges - Float Args is null\");\n return false;\n }\n if(float_Args[0]<0|| float_Args[1]<0 || float_Args[2]<0) {\n Log.e(TAG, \"Neon Edges - The scaling factors and standard deviation should be greater than 0\");\n return false;\n }\n break;\n\n }\n\n return true;\n\n\n }", "title": "" }, { "docid": "ee3407b1abc5bf447b26e8de7c14a034", "score": "0.5317354", "text": "@Override\n public boolean satisfies(Spec<? super Task> filter) {\n return true;\n }", "title": "" }, { "docid": "7673dafab88bfe8e6c023f83f6566edf", "score": "0.5292618", "text": "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults results=new FilterResults();\n\n\n if(constraint != null && constraint.length() > 0)\n {\n constraint=constraint.toString().toUpperCase();\n ArrayList<Plant> filteredPlants=new ArrayList<>();\n\n for (int i=0;i<filterList.size();i++)\n {\n if(filterList.get(i).getPlantName().toUpperCase().contains(constraint))\n {\n filteredPlants.add(filterList.get(i));\n }\n }\n\n results.count=filteredPlants.size();\n results.values=filteredPlants;\n }else\n {\n results.count=filterList.size();\n results.values=filterList;\n\n }\n return results;\n }", "title": "" }, { "docid": "392f2c4b08b1168ab256f31b8de5d396", "score": "0.52884704", "text": "@Override\n\t\t\t public void run() {\n\t\t\t\t String value = (filterField.getRawValue() == null)?\"\":filterField.getRawValue().trim();\n\t\t\t\t if (!value.equals(filter.trim())) {\n\t\t\t \t\t if (value.trim().length() < MIN_FILTER_LENGTH) {\n\t\t\t \t\t\t //\tFeedback here...\n\t\t\t \t\t\t grid.getStore().removeAll();\n\t\t\t \t\t\t gridView.setEmptyText(\"Enter at least \" + MIN_FILTER_LENGTH + \" characters with which to search.\");\n\t\t\t \t\t } else {\n\t\t\t\t\t\t // This optimization makes sure the user has stopped (or at least paused) in typing... if the value is changing, wait until it doesn't\n\t\t\t\t\t\t if (value.equals(lastTestFilter))\n\t\t\t\t\t\t\t loadFiltered(filterField.getRawValue());\n\t\t\t\t\t\t else\n\t\t\t\t\t\t\t lastTestFilter = value;\n\t\t\t \t\t }\n\t\t\t\t }\n\t\t\t }", "title": "" }, { "docid": "b274920eb0bd4975c581567c736a8fb7", "score": "0.5284766", "text": "@Override\n\tpublic boolean filter(ChangeEffect changeEffectResut) {\n\t\treturn filterOut.contains(changeEffectResut.getEffectType());\n\t}", "title": "" }, { "docid": "efed3969cc73d446adc53a13bbb900d7", "score": "0.52803975", "text": "private void applyFilterChain() {\n this.skip = new boolean[individuals.size()]; // initialized to false\n if (filterChain == null) // no filter chain, do not reject any individuals\n return;\n for (IndividualFilter filter : filterChain) {\n LOG.info(\"applying filter {}\", filter);\n int rejected = 0;\n int i = 0;\n for (Individual individual : this.individuals) {\n boolean skipThis = ! filter.filter(individual);\n if (skipThis)\n rejected += 1;\n skip[i++] |= skipThis;\n }\n LOG.info(\"accepted {} rejected {}\", skip.length - rejected, rejected);\n }\n int rejected = 0;\n for (boolean s : skip)\n if (s)\n rejected += 1;\n LOG.info(\"TOTALS: accepted {} rejected {}\", skip.length - rejected, rejected);\n \n }", "title": "" }, { "docid": "f1afc374222e47cf968abbe1c5c5a72f", "score": "0.52709126", "text": "boolean hasEnableProfanityFilter();", "title": "" }, { "docid": "54acf93078557bdfc8a1576ec137c74c", "score": "0.52555716", "text": "private static boolean isValid(String s, TextFieldValidInputCriterium criterium) {\n\t\tswitch(criterium) {\n\t\tcase DOUBLE: \t\t\treturn Helper.isDouble(s);\n\t\tcase POSITIVE_DOUBLE: \treturn Helper.isPositiveDouble(s);\n\t\tcase NEGATIVE_DOUBLE:\treturn Helper.isNegativeDouble(s);\n\t\tcase NON_NEGATIVE_DOUBLE: return Helper.isDouble(s) && !Helper.isNegativeDouble(s);\n\t\tcase NON_POSITIVE_DOUBLE: return Helper.isDouble(s) && !Helper.isPositiveDouble(s);\n\t\t\n\t\tcase INTEGER: \t\t\treturn Helper.isInteger(s);\n\t\tcase POSITIVE_INTEGER: \treturn Helper.isPositiveInteger(s);\n\t\tcase NEGATIVE_INTEGER:\treturn Helper.isNegativeInteger(s);\n\t\tcase NON_NEGATIVE_INTEGER: return Helper.isInteger(s) && !Helper.isNegativeInteger(s);\n\t\tcase NON_POSITIVE_INTEGER: return Helper.isInteger(s) && !Helper.isPositiveInteger(s);\n\t\t\n\t\tcase DOUBLE_ALLOWING_EMPTY: \t\t\t return s.length()==0 || Helper.isDouble(s);\n\t\tcase POSITIVE_DOUBLE_ALLOWING_EMPTY: \t return s.length()==0 || Helper.isPositiveDouble(s);\n\t\tcase NEGATIVE_DOUBLE_ALLOWING_EMPTY:\t return s.length()==0 || Helper.isNegativeDouble(s);\n\t\tcase NON_NEGATIVE_DOUBLE_ALLOWING_EMPTY: return s.length()==0 || Helper.isDouble(s) && !Helper.isNegativeDouble(s);\n\t\tcase NON_POSITIVE_DOUBLE_ALLOWING_EMPTY: return s.length()==0 || Helper.isDouble(s) && !Helper.isPositiveDouble(s);\n\t\t\n\t\tcase PROBABILITY:\t\t\t\t\t\treturn Helper.isProbability(s);\n\t\tcase PROBABILITY_ALLOWING_EMPTY:\t\treturn s.length()==0 || Helper.isProbability(s);\n\t\t\n\t\tdefault:\t\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "0c1a6a90f74e92a18cacb8eea2e35375", "score": "0.5251194", "text": "@Test\n public void testFilterOnField_8()\n throws Exception {\n String filterField = \"\";\n ScriptFilterCondition condition = new ScriptFilterCondition();\n condition.setCondition(\"\");\n ScriptStep currentStep = new ScriptStep();\n\n boolean result = ScriptFilterUtil.filterOnField(filterField, condition, currentStep);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "7b02955b246409f84617872c5b9d64d4", "score": "0.52499664", "text": "public List<Recipe> checkAllRecipes(String... filters) {\n ArrayList<Recipe> validRecipes = new ArrayList<>();\n List<Recipe> allRecipes = RecipeDatabase.getInstance().getAllRecipes();\n \n //Don't @ me, I'm already ashamed of this.\n \n //First, check to make sure that filters isn't null/empty\n if (filters != null && filters.length > 0 && !filters[0].equalsIgnoreCase(\"\")) {\n Iterator<Recipe> itr = allRecipes.iterator(); //Create an iterator for the master list of recipes so we can run through it without a ConcurrentModification exception\n int tags; //We'll need an int variable to keep track of the number of tags the recipe has in common with the filter array\n \n //Iterate through the master list\n while (itr.hasNext()) {\n Recipe recipe = (Recipe) itr.next(); //Throw the current list item into a Recipe object so we can get access to its flavor tags\n List<String> flavorTags = recipe.getFlavorTags(); //Get the recipe's tags and store them in a list\n tags = 0; //Set tags to 0\n \n //Compare each flavor tag in the recipe with the provided filters\n for (String flavorTag : flavorTags) {\n for (int i = 0; i < filters.length; i++) {\n //If the flavor tag matches the filter tag, increment tags\n if (flavorTag.equalsIgnoreCase(filters[i])) {\n tags++;\n break;\n }\n }\n }\n \n //If, after comparing each flavor tag to each filter tag, the tags variable is still less than the length of the filters array, then the recipe\n //doesn't meet the filter specifications and should be removed\n if (tags < filters.length)\n itr.remove();\n }\n }\n \n for (Recipe recipe : allRecipes) {\n if (checkRecipe(recipe))\n validRecipes.add(recipe);\n }\n \n return validRecipes;\n }", "title": "" }, { "docid": "0d857ba741a33709e0963bd58069e66f", "score": "0.5244906", "text": "@Test\n public void testFilterOnField_4()\n throws Exception {\n String filterField = \"\";\n ScriptFilterCondition condition = new ScriptFilterCondition();\n condition.setCondition(\"\");\n condition.setValue(\"\");\n ScriptStep currentStep = new ScriptStep();\n\n boolean result = ScriptFilterUtil.filterOnField(filterField, condition, currentStep);\n\n assertEquals(false, result);\n }", "title": "" }, { "docid": "86f29d11a2fea6be9e4573605dfca38a", "score": "0.5239649", "text": "@Override\n public boolean isFiltered(Context context, CreateRequest request) {\n if (request.getContent().get(field) == null || request.getContent().get(field).isNull()) {\n return false;\n }\n try {\n return super.isFiltered(context, request);\n } catch (IllegalArgumentException e) {\n // don't filter an action that isn't one of the designated enum constants\n return false;\n }\n }", "title": "" } ]
6ee6677256ff36e75af836e26fd36ac6
Don't call super.setup() to avoid listening to the ot object inneccesarily
[ { "docid": "eaf0e7c48522c390fb2ee65e6f4c1d26", "score": "0.60787094", "text": "protected void setup(OTObject doc) {\n \t\tpfObject = (OTDocument) doc;\n \t}", "title": "" } ]
[ { "docid": "61e7c788d0cf26bfab7cdfd267eff05e", "score": "0.7372437", "text": "protected abstract void setup();", "title": "" }, { "docid": "a659da016a3c0c56bf81ee8adae11b7c", "score": "0.7144076", "text": "@Override\r\n public void setup() {\r\n\r\n\r\n }", "title": "" }, { "docid": "0f05553132b96c366cae9ec29f6ec33a", "score": "0.70594954", "text": "@Override\n\tpublic void otherSetup() \n\t{\n\t}", "title": "" }, { "docid": "e9dd9b5761119aa7974498c5ff6fd08a", "score": "0.70402884", "text": "@Override\n protected void setup() { \n super.setup();\n \n Object[] args = getArguments();\n if(args.length == 1){\n model = (Model) args[0];\n } else {\n model = new Model();\n }\n \n registerO2AInterface(CarInterface.class, this);\n \n addBehaviour(new MoveBehaviour(this));\n addBehaviour(new CarMessagesBehaviour());\n }", "title": "" }, { "docid": "d9966dd6a369a5c1f7fc423cbd6917ee", "score": "0.7019898", "text": "private void setup() {\n setPhysics(false);\n setInteractOverride(true);\n }", "title": "" }, { "docid": "dff7c08101cf7d0a0941236f45aea3c7", "score": "0.692103", "text": "@Override\n public void setup() {\n \n }", "title": "" }, { "docid": "12c5a6dd64d9c35c018ba08bb60d5c0a", "score": "0.69124544", "text": "@Override\n\tpublic void setup() {\n\n\t}", "title": "" }, { "docid": "56e7ffc4c074540327c9895b0b9a1fc2", "score": "0.6902299", "text": "@Override\n\tpublic void setup() {\n\t\t\n\t}", "title": "" }, { "docid": "d02ebe903982465fdad6d3757233a6d2", "score": "0.6878282", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void setup() {\n\t\tcodec = new SLCodec();\n\t\tevacOntology = EvacuationOntology.getInstance();\n\t\tgetContentManager().registerLanguage(codec);\n\t\tgetContentManager().registerOntology(evacOntology);\n\t\tanswerBehavior = new answerDoorCoordinateRequests(this);\n\t\taddBehaviour(new movementBehaviour(this));\n\t\taddBehaviour(answerBehavior);\n\t}", "title": "" }, { "docid": "b8af389e3f09aba4d59eb5b5eacb7694", "score": "0.68195224", "text": "@Override\n\tpublic void setup() {\n\t}", "title": "" }, { "docid": "b8af389e3f09aba4d59eb5b5eacb7694", "score": "0.68195224", "text": "@Override\n\tpublic void setup() {\n\t}", "title": "" }, { "docid": "e65c2c1e707f6bfe83eb8c9a845ffa41", "score": "0.67997473", "text": "private void setup() {\n }", "title": "" }, { "docid": "67b80bbaafe9706ae01973e80a137768", "score": "0.67926824", "text": "@Override\n public void setup ()\n {\n //dor = (DomainObjectReader) SpringApplicationContext.getBean(\"reader\");\n brokerRepo = (BrokerRepo) SpringApplicationContext.getBean(\"brokerRepo\");\n ttx = new ArrayList<TariffTransaction>();\n\n registerNewObjectListener(new TimeslotUpdateHandler(),\n TimeslotUpdate.class);\n registerNewObjectListener(new TariffTxHandler(),\n TariffTransaction.class);\n try {\n data = new PrintWriter(new File(dataFilename));\n }\n catch (FileNotFoundException e) {\n// log.error(\"Cannot open file \" + dataFilename);\n }\n }", "title": "" }, { "docid": "7532887a7aa261a8da3f54b2f4c5bb83", "score": "0.67461884", "text": "protected void setup() {\n\t\taddBehaviour(new Saludo());\n\t\t\n\t\t//Se añade el comportamiento para busque agentes\n\t\tBuscarAgentes buscarAgentes = new BuscarAgentes(this,100);\n\t\taddBehaviour(buscarAgentes);\n\t\t\n\t\taddBehaviour(new LeerMensajeTelegram());\n\t\t\t \t\n\t}", "title": "" }, { "docid": "021cb9f1ebc39f7e7a5aececfe556689", "score": "0.66896003", "text": "protected void setup() { \t\n System.out.println(\"Hello World! My name is \" + getAID().getLocalName());\n \n registerAgent();\n \n addBehaviour(new BehaviourKillIfOverseerIsDead(this, 1000));\n addBehaviour(new BehaviourReceiveMessage(this, 100, new Random().nextInt()));\n }", "title": "" }, { "docid": "7506b04f60e5f033cbf403ba10aa901d", "score": "0.6617326", "text": "@Override\n public void autonomousInit() {\n }", "title": "" }, { "docid": "7506b04f60e5f033cbf403ba10aa901d", "score": "0.6617326", "text": "@Override\n public void autonomousInit() {\n }", "title": "" }, { "docid": "1555728c70522acbc8e231c64e01b1ed", "score": "0.6544574", "text": "@Override\n public void autonomousInit() {\n\n }", "title": "" }, { "docid": "6359d1e3bfb6cf96a6af6dc59bed9618", "score": "0.6541125", "text": "protected void onSetupCompleted() {\n }", "title": "" }, { "docid": "524a62228e00a705e5dd10683b5c6978", "score": "0.6534492", "text": "public void setup();", "title": "" }, { "docid": "724c5512d55589214d20fbebb5118f03", "score": "0.6460933", "text": "public void setup() {\n\t\t\n\t}", "title": "" }, { "docid": "d077d309e40c94a9121bf0248492e65b", "score": "0.64597625", "text": "public void setUp() {\n mManager = GraphManager2dFactory.getInstance().makeDefaultGraphManager();\n mCalled = false;\n }", "title": "" }, { "docid": "a1e510f1497e40545277c64b7a130ab3", "score": "0.64473325", "text": "protected abstract void onInitialize();", "title": "" }, { "docid": "27f442f9aea9908b29ba53dec4e9e06a", "score": "0.64418286", "text": "public static void setup(){\n\t}", "title": "" }, { "docid": "69adb56edd6a7ebaf6f65a09b00fcc52", "score": "0.641917", "text": "protected void init() {\n\t\t// Let subclasses implement it\n\t}", "title": "" }, { "docid": "ecd5b9e9ff11ccf887380afdc21dc1d0", "score": "0.64165694", "text": "@Override\n protected void initialize() {\n // We don't need an initialize because we did all the initializing on robot\n // start.\n }", "title": "" }, { "docid": "5f8cb01f4c091f01fcec5911c83a04c2", "score": "0.64156926", "text": "@Override\n\tprotected void initEvents() {\n\n\t}", "title": "" }, { "docid": "fc553b74c0864f15d249a9905885c8f8", "score": "0.6392672", "text": "@Before\n public void setup()\n {\n classUnderTest = new DocumentManager();\n classUnderTest.addListener(mock);\n }", "title": "" }, { "docid": "3654bcc3a568715bce08965f78243f8a", "score": "0.6367631", "text": "public void setup() {\r\n\t}", "title": "" }, { "docid": "6d28ab902aa9739f453417e476044998", "score": "0.63457036", "text": "private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.63129556", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "9f5ee5795cc09a7db57e3377df722d60", "score": "0.630112", "text": "protected abstract void setup() throws ClipsException;", "title": "" }, { "docid": "088e3e11a3bb7509e2e6502647106227", "score": "0.6297089", "text": "@Override\n protected void doSetUp() throws Exception {\n super.doSetUp();\n }", "title": "" }, { "docid": "30b9887b708b151f2eb4d0e7948f2418", "score": "0.6284624", "text": "public void setup() {\n\t\tplayers = new ArrayList<Player>();\n\t\tblocks = new ArrayList<BlockState>();\n\t\tdead = new ArrayList<LivingEntity>();\n\t\tenabled = false;\n\t\tinstance = this;\n\t}", "title": "" }, { "docid": "664ff271c67a604bfb1b9028dba7d43f", "score": "0.62769896", "text": "@Override\n\tpublic void setup(Publisher publisher) {\n\t\tthis.publisher = publisher;\n\t}", "title": "" }, { "docid": "cd779aacc91809113f74aef470842acb", "score": "0.62753695", "text": "protected void init() {}", "title": "" }, { "docid": "a7ccda09a888a0e040321b8d2bafedb7", "score": "0.62690187", "text": "protected void setup(Context context) throws IOException,\r\n\t\t\tInterruptedException {\r\n\t\t// NOTHING\r\n\t}", "title": "" }, { "docid": "a1ec4d9722b069095f89afb269ac02f8", "score": "0.62602603", "text": "@Override\n public void initialize() {\n Robot.transporter.changeState(State.SHOOT);\n }", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.6236363", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "3a14f6bcf465ecea4995028da4680e06", "score": "0.6233175", "text": "public void setup() throws Exception { }", "title": "" }, { "docid": "7ae8e50255ff6ac998e86d9699a32850", "score": "0.6226446", "text": "@Override\n protected void setUp() throws Exception {\n super.setUp();\n\n setActivityInitialTouchMode(false);\n\n if(mOscOut != null) {\n mOscOut.close();\n mOscOut = null;\n }\n\n mOscOut = new OSCPortOut(InetAddress.getByName(\"192.168.56.101\"), 8092);\n }", "title": "" }, { "docid": "0c42063da867156f57ee59f0a3e9ac74", "score": "0.62130684", "text": "public void setup() {\n \t\t\n \t}", "title": "" }, { "docid": "7a746a1c67298b2e74e373fda044da38", "score": "0.6200893", "text": "@Override\n public void init() {\n super.init();\n }", "title": "" }, { "docid": "7a746a1c67298b2e74e373fda044da38", "score": "0.6200893", "text": "@Override\n public void init() {\n super.init();\n }", "title": "" }, { "docid": "e23cab19126b0d873c6cfb0d94701317", "score": "0.61964583", "text": "@Before\n\tpublic void setUp()\n\t{\n\t\tQualifiedObservableConnector.resetSingleton();\n\t}", "title": "" }, { "docid": "1b2b14182c814ea12be48fa3ab499e9d", "score": "0.61932826", "text": "@Override\r\n\tprotected void initialize() {\r\n\t}", "title": "" }, { "docid": "3f485c48252a81fdcb7eacc535bd727e", "score": "0.6192535", "text": "public abstract void onInit();", "title": "" }, { "docid": "cfa35af6de5d87f75a7f7c949c59a3fc", "score": "0.61904675", "text": "@Before\n\tpublic void setup() {\n\t\tMockitoAnnotations.initMocks(this);\n\t\tappender = new WorkflowPropertiesAppender(workflowSupportService);\n\t}", "title": "" }, { "docid": "c12b2b98773f0551a4d420ef9bd5840b", "score": "0.61890537", "text": "public void setup () {\n\t\treturn;\n\t}", "title": "" }, { "docid": "b7e696d3072f95e58c1b860b7b615c70", "score": "0.61870813", "text": "protected void init() { }", "title": "" }, { "docid": "4c00151f8b468efb41105489ac932d7d", "score": "0.61841726", "text": "protected void initAfterReady() {\n\t}", "title": "" }, { "docid": "25a74d538989d77fe04051d250991154", "score": "0.61778766", "text": "protected void setup() {\r\n\t\tSystem.out.println(\"Agent \" + getLocalName() + \" started.\");\r\n\r\n\t\t/* Here DBagents must register */\r\n\t\tthis.register();\r\n\t\t/* Here DBAgent must connect to annotation db */\r\n\t\t// this.annConnect();\r\n\r\n\t\t/* Here DBagent must connect with its local database */\r\n\t\tthis.dbConnect(sn, md, pharmuser, pharmkey);\r\n\r\n\t\t/* Add a behaviour */\r\n\t\taddBehaviour(new waitRequest());\r\n\r\n\t}", "title": "" }, { "docid": "e6289b53c4fcb48707cd5fb136f8ae25", "score": "0.61723834", "text": "@Override\n\tprotected void setup(Context context) throws IOException, InterruptedException {\n\t}", "title": "" }, { "docid": "fb3ebfaff3019e36ae25bca7af541453", "score": "0.61621135", "text": "@Before\n\tpublic void setup(){\n\t\t\n\t\tconfig = new StateChangeConfiguration();\n\t\t\n\t\tfinal Map<String, String> eventMap = Maps.newHashMap();\n\t\teventMap.put(\"Created\", TOPIC);\n\t\teventMap.put(\"Deleted\", TOPIC);\n\t\teventMap.put(\"Updated\", TOPIC);\n\t\t\n\t\tfinal Map<String, Map<String, String>> modelMap = Maps.newHashMap();\n\t\tmodelMap.put(Book.class.getName(), eventMap);\n\t\tconfig.setEvents(modelMap);\n\t\tchangePublisher = new StateChangePublisher(config, this.publisher);\n\t}", "title": "" }, { "docid": "a96cc911044be9d14521a8a6ed6707e4", "score": "0.6156542", "text": "@Override\n protected void setupDependencies() {\n\n sessionManager = new Logger();\n transaction = new Transaction();\n reservation = new Reservation();\n priceManager = new PriceManager();\n seatManager = new SeatManager();\n }", "title": "" }, { "docid": "b3bcb7821a60291324561b26db2771c2", "score": "0.61434656", "text": "@Override\r\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "c1909c6727ebcb94dfd59e78ea09af2d", "score": "0.6132822", "text": "public void setup() {\n\n }", "title": "" }, { "docid": "2830c15122ea2c6c5da535e809673ac7", "score": "0.6126528", "text": "protected void init() {\r\n\r\n }", "title": "" }, { "docid": "e0f729328fd258821b24508a3ef1a130", "score": "0.61137456", "text": "protected void initialize() {}", "title": "" }, { "docid": "5bfa7e2e1e9ccd477d5dc1801c7c612b", "score": "0.61023647", "text": "public void setup() {\n\t\tsuper.setup();\n\t\t// No necesitamos cargar archivo de configuracion ya que los lotes nos los\n\t\t// proporcionara el barco pesquero\n\t\tinit();\n\t}", "title": "" }, { "docid": "e0202e158e31065e9dd8680cb851ce23", "score": "0.6096124", "text": "protected void initialize() {\n super.initialize();\n }", "title": "" }, { "docid": "8d91ee82223b60589bd78bfb66b99fd2", "score": "0.6083665", "text": "private void initEvents() {\n\r\n\t}", "title": "" }, { "docid": "f7302f3d45122b0f508cbc4c2240a52b", "score": "0.6077529", "text": "@Override\n public void teleopInit() {\n }", "title": "" }, { "docid": "a23406391e423f27a9f3361443c59809", "score": "0.6071734", "text": "@Override\n\tpublic void teleopInit() {\n\t\t\n\t}", "title": "" }, { "docid": "5ecbba2fbbded245f44bab7a6e4a5b2e", "score": "0.6068842", "text": "@Override\n\tprotected void initialize() {\n\t\tif (hood.getCurrentCommand() instanceof Target) {\n\t\t\thood.setTarget(HoodTarget.LOW);\n\t\t}\n\t}", "title": "" }, { "docid": "a7ada994943f62a4589674e89199475b", "score": "0.6068669", "text": "@Override\n public void init() {}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.6060118", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c8e3d315cbfe49718416b0da72e7655b", "score": "0.6059696", "text": "@Override\n protected void setUp() throws Exception {\n trailerSignal = new CountDownLatch(1);\n reviewSignal = new CountDownLatch(1);\n }", "title": "" }, { "docid": "892215be92643b7e563925e454136d8c", "score": "0.6057354", "text": "protected void init(){}", "title": "" }, { "docid": "892215be92643b7e563925e454136d8c", "score": "0.6057354", "text": "protected void init(){}", "title": "" }, { "docid": "991b076c6beff60a51faa16349b869ec", "score": "0.6055817", "text": "protected abstract void onSetup( ManifestAieon manifest );", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.60554475", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.60554475", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.60554475", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.60554475", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "674c522600474f917b4ba910ffcc6373", "score": "0.6055187", "text": "public void initialize() {\n\t\tinstance().addObserver(fridgeContext);\n\t\tinstance().addObserver(freezerContext);\n\t\tfridgeContext.initialize();\n\t\tfreezerContext.initialize();\n\t}", "title": "" }, { "docid": "d6272a5059f2a2029dfb69c5cec44c18", "score": "0.6053587", "text": "protected abstract void eventFirstInit();", "title": "" }, { "docid": "ef593d5dc5f2e2d30718cc4b07f4e5d6", "score": "0.60501367", "text": "public void initEvents() {\n }", "title": "" }, { "docid": "1ca0931a53af0a01ab716ee488b62b0d", "score": "0.6049425", "text": "@Override\n public void onStart() {\n super.onStart();\n\n EventBus.getDefault().register(this);\n }", "title": "" }, { "docid": "748a0cd346ace97e8650640546927586", "score": "0.6045994", "text": "protected void init() {\n\t}", "title": "" }, { "docid": "78f6ffa16ff249e4dee556180740d04d", "score": "0.6040389", "text": "public void autonomousInit() {\n \t\n }", "title": "" }, { "docid": "3b692156b01996df3112c7476648283e", "score": "0.6039005", "text": "@Override\n\t\tprotected void setup() throws ConnectionLostException {\n\t\t\ttry{\n\t\t\t\tLED = ioio_.openDigitalOutput(LED_PIN, true);\n\t\t\t\tLamp = ioio_.openDigitalOutput(Lamp_PIN, false);\n\t\t\t\tSmell = ioio_.openDigitalOutput(Smell_PIN, false);\n\t\t\t\t\n\t\t\t\tMotor = ioio_.openPwmOutput(new DigitalOutput.Spec(Heat_PIN, Mode.OPEN_DRAIN), Heat_FREQ);\n\t\t\t\tmAnalog = ioio_.openAnalogInput(Analog_PIN);\n\t\t\t\tAnalog_LED = ioio_.openDigitalOutput(Analog_LED_PIN);\n\n\t\t\t\tVibrator = ioio_.openPwmOutput(new DigitalOutput.Spec(Vibrator_PIN, Mode.OPEN_DRAIN), Vibrator_FREQ);\n\t\t\t\t\n\t\t\t\tenableUi(true);\n\t\t\t}catch(ConnectionLostException e){\n\t\t\t\tenableUi(false);\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "438fa94287d9ee82fce3795aa71a1cf8", "score": "0.6038327", "text": "@Override\n protected void initialize() {\n super.initialize();\n LOG.info(getName() + \" Initialized\");\n }", "title": "" }, { "docid": "b11ea8c9c0798f65615b409b44e71e4b", "score": "0.6028255", "text": "protected void setUp() {\n notificationType = new NotificationType(1, \"dummy\");\n }", "title": "" }, { "docid": "f890e5bcc169d740ca9eaf2caf4a93fb", "score": "0.60266554", "text": "private void init() {\n mHolder = getHolder();\n mHolder.addCallback(this);\n }", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.6025758", "text": "@Override\n\tpublic void init() {}", "title": "" }, { "docid": "79434840a1497982c86bb9b36527139d", "score": "0.6025758", "text": "@Override\n\tpublic void init() {}", "title": "" } ]
9e2ffe9b21f7a1bd52187a62ea402ddc
Pattern p = Pattern.compile("\\((.?)\\)",Pattern.DOTALL);
[ { "docid": "13e5b262738a67c73af93264a6059f55", "score": "0.0", "text": "private ArrayList<String> extractStaticQueryPart (String queryStr)\n\t{\n\t\tPattern p = Pattern.compile(\"((.*))\");\n\t\tMatcher matcher = p.matcher(queryStr);\n\t\tArrayList<String> triples = new ArrayList<String>(); \n\t\twhile(matcher.find())\n\t\t{\n\t\t\t//int beginIndex = matcher.group(1).indexOf(\"bgp\\n (triple\");\n\t\t\t//int endIndex = matcher.group().length();\n\t\t\tString part = matcher.group(1).trim();\n\t\t\tif(part.contains(\"triple\"))\n\t\t\t{\n\t\t\t\tString target = \"(triple \";\n\t\t\t\tString replacement = \" \";\n\t\t\t\tString trip=\tpart.replace(target, replacement);\n\n\t\t\t\tif(part.contains(\"(bgp\"))\n\t\t\t\t{\n\t\t\t\t\ttrip=\ttrip.replace(\"(bgp\", replacement);\n\t\t\t\t}\n\n\t\t\t\ttrip = trip.replace(\")\", \" \");\n\t\t\t\t//String oldChar = \"?\";\n\t\t\t\t//String newChar = \":\";\n\t\t\t\t//trip = trip.replace(oldChar, newChar);\n\t\t\t\t//trip = trip.replace(oldChar, newChar);\n\t\t\t\t//System.out.println(\"triples\"+trip);\n\t\t\t\ttriples.add(trip);\n\t\t\t}\n\t\t}\n\t\treturn triples;\n\t}", "title": "" } ]
[ { "docid": "3833ee86842990b72239354750f5f6ad", "score": "0.5064648", "text": "@Test\n public void test_multiNote() {\n String text = \"a+max(b,c) /* min(a,b)\\n\" +\n \"x+b*c;a=b+c; dkfdk\\n\" +\n \"x+b*c */ a=b+c; dkfdk\\n\";\n String text2 = \"/* /*\\n\" +\n \" dskfsk\\n\" +\n \" */*/\";\n match(\"/\\\\*([^*]|\\\\*(?!/))*\\\\*/\", \"/*kdfjlsdj*/\");\n match(\"/\\\\*([^*]|\\\\*(?!/))*\\\\*/\", \"/* kdfj\\nlsdj*/dksfjdks/*skdfjsk\\tksjs */\");\n// match(\"/\\\\*[.\\r\\n]*\\\\*/\", text);\n// match(\"/\\\\*[.\\r\\n]*\\\\*/\", text2);\n }", "title": "" }, { "docid": "6f4c386feca9777baccd700f523a21db", "score": "0.4931192", "text": "public String parseInside(Scanner scanner) {\n StringBuilder stringBuilder = new StringBuilder();\n char c = ' ';\n int countOfBrackets = 1;\n while (scanner.hasNext() && countOfBrackets > 0) {\n try {\n c = scanner.findInLine(\".\").charAt(0);\n\n } catch (NullPointerException e) {\n stringBuilder.append(\"\\n\");\n scanner.nextLine();\n continue;\n }\n if (c == '{') countOfBrackets++;\n else if (c == '}') countOfBrackets--;\n if (countOfBrackets > 0) {\n stringBuilder.append(c);\n }\n if (countOfBrackets == 0) {\n return stringBuilder.toString();\n }\n\n\n }\n\n throw new BracketNotFoundException(\"closing } not found in \" + stringBuilder.toString());\n }", "title": "" }, { "docid": "0a1440712d164bade103bb62cf640d1a", "score": "0.45838222", "text": "private void leftParnPressed(){\n\t\tSystem.out.println(\"leftparen\");\n\t\tint carrotPosition = getCaretPosition();\n\t\tString str = getText();\n\t\t//make sure there is more open then close parens\n\t\t//())\n\t\tint parenCount = 0;\n\t\tfor(int i = 0; i<str.length();i++){\n\t\t\tif(str.charAt(i) == '(')\n\t\t\t\tparenCount++;\n\t\t\telse if(str.charAt(i) == ')')\n\t\t\t\tparenCount--;\n\t\t}\n\t\tSystem.out.println(\"count:\"+parenCount);\n\t\tif(parenCount >= 0){\n\t\t\taddText(\")\");\n\t\t\tsetCaretPosition(carrotPosition);\n\t\t}\n\t}", "title": "" }, { "docid": "2724864cd80f802bf6622b794cfd1be5", "score": "0.45741034", "text": "Parser statementParser();", "title": "" }, { "docid": "fba46245308aaeaac6702b6f25eda775", "score": "0.45215058", "text": "private static String grep(final CharBuffer cb, final Pattern pattern) {\n\n\t\tMatcher lm = linePattern.matcher(cb); // Line matcher\n\t\tMatcher pm = null; // Pattern matcher\n\n\t\twhile (lm.find()) {\n\t\t\tCharSequence cs = lm.group(); // The current line\n\t\t\tif (pm == null)\n\t\t\t\tpm = pattern.matcher(cs);\n\t\t\telse\n\t\t\t\tpm.reset(cs);\n\t\t\tif (pm.find()) {\n\t\t\t\treturn pm.group();\n\t\t\t}\n\t\t\tif (lm.end() == cb.limit())\n\t\t\t\tbreak;\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "7319301b22b516a4d13fbc5e88b72eb6", "score": "0.44548327", "text": "public static void main(String[] args) {\n\t\r\n\t\t\r\n\t\tString s = \"[QTY+12][segment 23] QTY01[subelement:3] content should be PCE\";\r\n\t\tString regex = \".*\\\\[segment ([0-9]+)\\\\].*\";\r\n\t\tPattern p = Pattern.compile(regex);\r\n\t Matcher m = p.matcher(s);\r\n\t\tif(m.find())\r\n\t\t\tSystem.out.println(m.group(1));\r\n\t\r\n\t\r\n\t}", "title": "" }, { "docid": "a3531bde7945f50c762702b4e11dcbab", "score": "0.44223756", "text": "Find(String pattern) {\n p = Pattern.compile(pattern);\n }", "title": "" }, { "docid": "eb49df7f04a40782a3c24a8a19f7dfc7", "score": "0.4404087", "text": "public CharSequence peek(CharSequence pattern) {\n return null;\n }", "title": "" }, { "docid": "5c79b76b8639c08f979f49e8a15c2373", "score": "0.43728343", "text": "private static int countParen(String line, int numParen) {\n\t\tif (line.trim().length() ==0) {\n\t\t\treturn numParen;\n\t\t}\n\n\t\tif (line.indexOf(\"//\") != -1) {\n\t\t\tline = line.substring(0,line.indexOf(\"//\"));\n\t\t}\n\n\n\t\tMatcher mopen = Pattern.compile(\"(\\\\{)\").matcher(line);\n\t\tMatcher mclose = Pattern.compile(\"(\\\\})\").matcher(line);\n\n\t\twhile (mopen.find()) {\n\t\t\tnumParen++;\n\t\t}\n\n\t\twhile (mclose.find()) {\n\t\t\tnumParen--;\n\t\t}\n\n\t\t//System.out.println(\"DEBUG: \" + numParen);\n\n\t\treturn numParen;\n\t}", "title": "" }, { "docid": "ec51d73ef1c7de827831522e1e017198", "score": "0.4343647", "text": "private char[] getCompletionText(String fullCompletionExpression) {\n List<Character> chars = new LinkedList<Character>();\n if (fullCompletionExpression == null) {\n return new char[0];\n }\n char[] fullArray = fullCompletionExpression.toCharArray();\n int newIndex = CharOperation.indexOf(\"new \".toCharArray(), fullArray,\n true) + 4;\n if (newIndex == -1) {\n return null;\n }\n for (int i = newIndex; i < fullArray.length; i++) {\n if (Character.isWhitespace(fullArray[i])) {\n continue;\n } else if (Character.isJavaIdentifierPart(fullArray[i]) || fullArray[i] == '.') {\n chars.add(fullArray[i]);\n } else {\n // fail fast if something odd is found like parens or brackets\n return null;\n }\n }\n char[] res = new char[chars.size()];\n int i = 0;\n for (Character c : chars) {\n res[i] = c.charValue();\n i++;\n }\n return res;\n }", "title": "" }, { "docid": "a12fd8e98d59172b6dbd5ba0f7fb5f15", "score": "0.4314835", "text": "@Test\n public void regexp_positive() throws Throwable {\n TestableLanguagePrefilter pf = new TestableLanguagePrefilter(Pattern.compile(\"P[ae]g\"));\n\n startText(pf);\n String header = \"==[[Peg]]==\";\n sendCharacters(pf, header);\n sendCharacters(pf, \"First line to keep\\nKeep Line 2\");\n sendCharacters(pf, \"Keep Line 3\");\n sendCharacters(pf, \"which is longer than the rest\");\n endText(pf);\n assertEquals(header + \"First line to keep\\nKeep Line 2Keep Line 3which is longer than the rest\",\n pf.sent());\n }", "title": "" }, { "docid": "90511f9d996b0d7edcdea3b11807a7f3", "score": "0.43089387", "text": "public final CharSequence yytext() {\n\t\treturn zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n\t}", "title": "" }, { "docid": "fde67461d27359566e8be54fbadd649e", "score": "0.42911258", "text": "@Test\n public void dotToken() throws Exception {\n checkToken(\" . \", \"DOT\");\n }", "title": "" }, { "docid": "b83f549a28bfc98a2677c51b21a271a8", "score": "0.42863655", "text": "public static PatternParserResult parsePattern(String pattern) {\n\t\tif (pattern.contains(\" <--> \")) {\n\t\t\tString[] ps = pattern.split(\" <--> \");\n\t\t\tpattern = ps[1];\n\t\t}\n\t\tPatternParserResult parserResult = new PatternParserResult();\n\t\tallPaths = new ArrayList<String>();\n\t\tString[] elements = null;\n\t\tString query = \"\";\n\t\tNode<String> root = new Node<>(\"\");\n\t\tList<Node<String>> parents = new ArrayList<Node<String>>();\n\t\tparents.add(root);\n\t\tPattern p;\n\t\tMatcher m;\n\t\tboolean match;\n\t\tboolean hasInvalidPattern = false;\n\t\tString invalidPattern = \"\";\n\t\tif (debug) {\n\t\t\tSystem.out.println(\"Input: \" + pattern);\n\t\t}\n\t\tpattern = pattern.replaceAll(\" \", \"\");\n\t\tif (pattern.contains(\"*\")) {\n\t\t\tp = Pattern.compile(\"(<)(\\\\{.*\\\\})(\\\\*)(>)\");\n\t\t\tm = p.matcher(pattern);\n\t\t\tif (m.matches()) {\n\t\t\t\tString excluded = pattern.replaceAll(\"^\\\\<\\\\{\", \"\").replaceAll(\"\\\\}\\\\*\\\\>$\", \"\");\n\t\t\t\t// query = \"{!complexphrase inOrder=true} -seq:(\\\"/\" + excluded\n\t\t\t\t// + \"/\\\")\";\n\t\t\t\tquery = \" -(\\\"/\" + excluded + \"/\\\")\";\n\t\t\t\tif (debug) {\n\t\t\t\t\tSystem.out.println(query);\n\t\t\t\t}\n\t\t\t\t// searchSolr(query);\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (pattern.contains(\"-\")) {\n\t\t\t\telements = pattern.split(\"-\");\n\t\t\t} else {\n\t\t\t\telements = processCompactPattern(pattern);\n\t\t\t}\n\t\t\tif (debug) {\n\n\t\t\t\tfor (int i = 0; i < elements.length; i++) {\n\t\t\t\t\tif (i == 0) {\n\n\t\t\t\t\t\tSystem.out.print(elements[i]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\"-\" + elements[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < elements.length; i++) {\n\t\t\t\tmatch = false;\n\t\t\t\t// System.out.println(elements[i] + \" | \" + parents);\n\t\t\t\tif (elements[i].contains(\"X\") || elements[i].contains(\"x\")) {\n\t\t\t\t\t// Match x or X repeat range\n\t\t\t\t\tp = Pattern.compile(\"(<)?(x|X)\\\\((\\\\d+)\\\\,(\\\\d+)\\\\)(>)?\");\n\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t// System.out.println(elements[i]);\n\t\t\t\t\t\tprocessRepeatXRange(parents, m);\n\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t}\n\t\t\t\t\t// Match x or X repeat\n\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(x|X)\\\\((\\\\d+)\\\\)\\\\s*(>)?\");\n\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\tprocessRepeatX(parents, m);\n\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t}\n\t\t\t\t\t// Match x or X\n\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(x|X)\\\\s*(>)?\");\n\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\tprocessSingleX(parents, m);\n\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (elements[i].contains(\"[\") && elements[i].contains(\"]\")) {\n\t\t\t\t\t\t// Match ambiguities accept repeat range\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\[\\\\w+\\\\])\\\\((\\\\d)\\\\)\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\tprocessAmbiguityAcceptRepeat(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Match ambiguities accept repeat\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\[\\\\w+\\\\])\\\\((\\\\d)\\\\,(\\\\d)\\\\)\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\tprocessAmbiguityAcceptRepeatRange(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Match ambiguities accept\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\[\\\\w+\\\\])\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\tprocessAmbiguityAccept(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (elements[i].contains(\"{\") && elements[i].contains(\"}\")) {\n\t\t\t\t\t\t// Match ambiguities except repeat range\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\{\\\\w+\\\\})\\\\((\\\\d+)\\\\,(\\\\d+)\\\\)\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\tprocessAmbiguityExceptRepeatRange(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Match ambiguities except repeat\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\{\\\\w+\\\\})\\\\((\\\\d+)\\\\)\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\tprocessAmbiguityExceptRepeat(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Match ambiguities except\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\{\\\\w+\\\\})\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\tprocessAmbiguityExcept(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Match single amino acid repeat\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\w)\\\\((\\\\d+)\\\\,(\\\\d+)\\\\)\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\tprocessSingleAminoAcidRepeatRange(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Match single amino acid repeat\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\w)\\\\((\\\\d+)\\\\)\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\tprocessSingleAminoAcidRepeat(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Match single amino acid\n\t\t\t\t\t\tp = Pattern.compile(\"(<)?\\\\s*(\\\\w)\\\\s*(>)?\");\n\t\t\t\t\t\tm = p.matcher(elements[i]);\n\t\t\t\t\t\tif (m.matches()) {\n\t\t\t\t\t\t\t// System.out.println(\"??? \"+ elements[i]);\n\t\t\t\t\t\t\tprocessSingleAminoAcid(parents, m);\n\t\t\t\t\t\t\tmatch = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (match == false) {\n\t\t\t\t\t//System.out.println(\"Invalid pattern: \" + elements[i]);\n\t\t\t\t\thasInvalidPattern = true;\n\t\t\t\t\tinvalidPattern = \"Invalid pattern for \\\"\"+pattern+\"\\\" at position \" + (i+1) + \": '\"+ elements[i]+\"'.\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!hasInvalidPattern) {\n\t\t\t\tshowLeafPaths(root, new StringBuilder());\n\t\t\t\t// query = \"{!complexphrase inOrder=true} seq:(\";\n\t\t\t\tquery = \"(\";\n\t\t\t\tfor (int i = 0; i < allPaths.size(); i++) {\n\t\t\t\t\tString path = allPaths.get(i).replaceAll(\"\\\\s+\", \" \").replace(\"<\", \"NT\").replace(\">\", \"CT\");\n\t\t\t\t\tif (debug) {\n\t\t\t\t\t\tSystem.out.println(\"Path \" + (i + 1) + \": \" + path);\n\t\t\t\t\t}\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tquery += \"\\\"\" + path + \"\\\"\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tquery += \" OR \\\"\" + path + \"\\\"\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tquery += \")\";\n\t\t\t\t// System.out.println(query);\n\t\t\t\t// searchSolr(query);\n\t\t\t\tparserResult.setParsedPattern(\"seq: \"+query);\n\t\t\t} else {\n\t\t\t\tMessage message = new Message(invalidPattern, Message.Type.DANGER);\n\t\t\t\tparserResult.setLog(message);\n\t\t\t}\n\t\t}\n\t\tif(debug) {\n\t\t\tSystem.out.println(pattern + \" <--> \" + parserResult);\n\t\t}\n\t\treturn parserResult;\n\n\t}", "title": "" }, { "docid": "73db98d903e0d87b3cbf0ccf1d5ebf2e", "score": "0.42818365", "text": "private List<Token> match(String toMatch) {\n if (tokenList.size() < 1) {\n System.out.println(\"ERROR Parser - Expected [\" + toMatch + \"] got end of stream.\");\n fail = true;\n errCount++;\n return null;\n }\n Token currentToken = peek(tokenList);\n if (Pattern.matches(toMatch, currentToken.getFlavor())) {\n //pop topmost token off of stack\n pop();\n } else {\n error(toMatch);\n //clears the stack\n }\n return null;\n }", "title": "" }, { "docid": "d992e29ac2b5ddacc835e1e53cbe6cd4", "score": "0.42641264", "text": "public static void Pattern1 () {\n\n for (int line = 1; line <= SIZE; line++) {\n System.out.print(\"|\");\n spacesDown(line);\n System.out.print(\"<>\");\n for (int dot = 1; dot <= 4 * line - SIZE+1; dot++) {\n System.out.print(\".\");\n }\n System.out.print(\"<>\");\n spacesDown(line);\n System.out.println(\"|\");\n }\n }", "title": "" }, { "docid": "5584eee4402036018abc5ff25fe8fb02", "score": "0.42581782", "text": "private static void printEndExpression(){\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\twhile(sc.lookahead().getTokenType() != Token.PERIOD) {\r\n\t\t\tToken current = getNextToken();\r\n\t\t\tsb.append(current.toString());\r\n\t\t}\r\n\t\tdest.print(\"System.out.println(\" + sb.toString() + \");\");\r\n\t}", "title": "" }, { "docid": "7662fb942283085ec56b3de217e46c95", "score": "0.42562452", "text": "String formatFullParenthesis();", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "30ff17395f436dc12c4cbb8c5f556e66", "score": "0.42517883", "text": "public final CharSequence yytext() {\n return zzBuffer.subSequence(zzStartRead, zzMarkedPos);\n }", "title": "" }, { "docid": "0d979743a0c91a0f70a0464fecfa32f4", "score": "0.42449206", "text": "public static String extractPlainText(String syntaxTree) {\n\t\t// ArrayList<String> words = new ArrayList<String>();\n\t\tStringBuilder sb = new StringBuilder();\n\t\t// the index of )\n\t\tint rightBIdx = -1;\n\t\twhile ((rightBIdx = syntaxTree.indexOf(')', rightBIdx + 1)) > 0) {\n\t\t\tif (syntaxTree.charAt(rightBIdx - 1) == ')') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint start = rightBIdx;\n\t\t\t// special case, character is \")\"\n\t\t\tif (syntaxTree.charAt(start - 1) == ' ') {\n\t\t\t\tsb.append(\")\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\n\t\t\t\tstart--;\n\t\t\t\tif (syntaxTree.charAt(start) == ' ') {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString word = syntaxTree.substring(start + 1, rightBIdx);\n\t\t\tsb.append(word);\n\t\t}\n\t\treturn sb.toString();\n\t\t// return words;\n\t}", "title": "" }, { "docid": "d104c39af97fa161e28a29277b2cb7e4", "score": "0.42259133", "text": "public void poke(CharSequence pattern) {\n\n }", "title": "" }, { "docid": "36301ecb6af0e44ec531707dbf7e22fe", "score": "0.4214104", "text": "String[] findMethodBody() throws BadMethodDeclarationException, IOException {\n List<String> lines = new LinkedList<>();\n int curlyCounter = 1;\n String line;\n do {\n line = reader.getRawLine();\n if (line == null) {\n throw new BadMethodDeclarationException(); // Body did not close properly\n }\n if (Symbols.L_CURLY_SUFFIX.matcher(line).find()) {\n curlyCounter++;\n } else if (Symbols.R_CURLY_LINE.matcher(line).find()) {\n curlyCounter--;\n }\n lines.add(line);\n } while (curlyCounter != 0);\n return lines.toArray(new String[lines.size()]);\n }", "title": "" }, { "docid": "cb99ca763a8ae94e7c7ec27395bc412d", "score": "0.4198626", "text": "private void match(String s) throws SyntaxException {\n\t\t\tscanner.match(new Token(s));\n }", "title": "" }, { "docid": "a91e4291aea1a06eb89b28ed172c4cc0", "score": "0.4190591", "text": "boolean Everything_GetRegex();", "title": "" }, { "docid": "23ed49bd06f543c210482018b4b8d966", "score": "0.41840518", "text": "protected void Prg()\r\n {\r\n Blk();\r\n match(Token.EndOfFile);\r\n }", "title": "" }, { "docid": "ecb5800e62a1ab8399ccb347140f7550", "score": "0.412845", "text": "public interface PsiRecursiveVisitor {\n}", "title": "" }, { "docid": "32306a10530f1809a28e6ddbf96839e3", "score": "0.41258022", "text": "public static void main(String[] args) {\n System.out.println(\"corresponde com o padrao 'abc.def.ghi.jkl' qnao podendo ser newline\");\n //check(\"\\\\w{3}(\\\\.\\\\w{3}){3}\");\n //check(\"(\\\\w{3}\\\\.?){4}\");\n check(\"(.{3}\\\\.?){4}\");\n }", "title": "" }, { "docid": "196e67dc01d08f3f5dba6faa9c29b871", "score": "0.41255203", "text": "String getRegex();", "title": "" }, { "docid": "d28e37f3614e0bf67d35eb37d2995187", "score": "0.4123778", "text": "Parser importantParser();", "title": "" }, { "docid": "4f06913f1fdc54912b8dc40ec1e40af0", "score": "0.41231224", "text": "private boolean matchstar(String s, String regexp3, char c)\n\t{\t\n\t\t//x*x* xxxb\n\t\tif (s.isEmpty())\n\t\t\treturn matchhere(s, regexp3);\n\t\t\n\t\tint t;\n\t\tfor (t = 0; t < s.length() && (s.charAt(t) == c || c == '.'); t++);\n\t\t\n\t\t//if (t == s.length())\n\t\t\t//t--;\n\t\tendIndex += t;\n\t\t\n\t\twhile (t >= 0)\n\t\t{\n\t\t\t//System.out.println(s.substring(t) + \", \" + t + \", \" + regexp3);\n\t\t\tif (matchhere(s.substring(t), regexp3))\n\t\t\t\treturn true;\n\t\t\tt--;\n\t\t\tendIndex--;\n\t\t} \n\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "637e1ffb9ee78c819424b2b885daeac7", "score": "0.41200727", "text": "public static void Pattern2 () {\n for (int line = 1; line <= SIZE; line++) {\n System.out.print(\"|\");\n spacesUp(line);\n\n System.out.print(\"<>\");\n for (int dot = 1; dot <= -4 * line + 4*SIZE; dot++) {\n System.out.print(\".\");\n }\n System.out.print(\"<>\");\n spacesUp(line);\n\n System.out.println(\"|\");\n }\n }", "title": "" }, { "docid": "c2df19d7b25a597e9c3355ce619417b6", "score": "0.41183248", "text": "private void compileImpl(String pattern, int flags) throws PatternSyntaxException {\n if (pattern == null) {\n throw new NullPointerException();\n }\n \n if ((flags & LITERAL) != 0) {\n pattern = quote(pattern);\n }\n \n // These are the flags natively supported by ICU.\n // They even have the same value in native code.\n flags = flags & (CASE_INSENSITIVE | COMMENTS | MULTILINE | DOTALL | UNIX_LINES);\n \n mNativePattern = NativeRegEx.open(pattern, flags);\n mGroupCount = NativeRegEx.groupCount(mNativePattern);\n }", "title": "" }, { "docid": "3aa4daf9c1c43fec47b41798a0d8f854", "score": "0.41158068", "text": "public static void main(String[] args) {\n String str = \"<table>aa</table>aaaa<table>aa</table>\";\n // 贪婪的正则\n Pattern pattern = Pattern.compile(\"<table>.*</table>\");\n Matcher matcher = pattern.matcher(str);\n matcher.find();\n // <table>aa</table>aaaa<table>aa</table> 把.*贪婪了\n System.out.println(matcher.group());\n // 非贪婪 *+后面加一个?\n pattern = Pattern.compile(\"<table>.*?</table>\");\n matcher = pattern.matcher(str);\n matcher.find();\n // <table>aa</table> 非贪婪\n System.out.println(matcher.group());\n }", "title": "" }, { "docid": "5361b28570b871431d4e0afdc09aef89", "score": "0.41091996", "text": "public LookaroundOptions getLookbehind()\n {\n return lookbehind;\n }", "title": "" }, { "docid": "5f57c79976a5392a6868588af05bc77a", "score": "0.40999395", "text": "private boolean regexCall(String pattern, String search) {\n\t\t Pattern P = Pattern.compile(pattern);\n\t\t Matcher M = P.matcher(search);\n\t\t return M.find();\n\t }", "title": "" }, { "docid": "f78cbae697e4737a7bbec0d2502b45ff", "score": "0.4096712", "text": "public final void mDOT() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = DOT;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\Phil\\\\Documents\\\\GitHub\\\\CS4420\\\\src\\\\gt\\\\cs4420\\\\relationaldb\\\\database\\\\query\\\\SQL.g:471:5: ( '.' )\r\n\t\t\t// C:\\\\Users\\\\Phil\\\\Documents\\\\GitHub\\\\CS4420\\\\src\\\\gt\\\\cs4420\\\\relationaldb\\\\database\\\\query\\\\SQL.g:471:7: '.'\r\n\t\t\t{\r\n\t\t\tmatch('.'); \r\n\t\t\t}\r\n\r\n\t\t\tstate.type = _type;\r\n\t\t\tstate.channel = _channel;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t// do for sure before leaving\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ab9cc2b80e5a6dd4e2ddad778f72d784", "score": "0.4088472", "text": "@Test\n public void test36() throws Throwable {\n JavaParser javaParser0 = new JavaParser(\" rava JavaParser inputZile\");\n assertFalse(javaParser0.lookingAhead);\n assertNotNull(javaParser0);\n \n try {\n javaParser0.PostfixExpression();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Parse error at line 1, column 0. Encountered: <EOF>\n //\n }\n }", "title": "" }, { "docid": "936233d741a7acf1eb5d9e8092038790", "score": "0.40869915", "text": "public abstract List<MCPatternBlock> extractAll() throws IOException;", "title": "" }, { "docid": "e14823b35b1db1569be84d3e7d2b4870", "score": "0.40849337", "text": "private final String summarize(String s) {\n\t\ts = s.trim();\n\t\tint pPos = s.indexOf('.');\n\t\tint rPos = s.indexOf('\\n');\n\t\tif (rPos < 0 && pPos < 0) {\n\t\t\treturn s;\n\t\t}\n\t\treturn s.substring(0,Math.min(pPos < 0 ? Integer.MAX_VALUE : pPos,\n\t\t\t\t\t\t\t\t\t\t\t\t\trPos < 0 ? Integer.MAX_VALUE : rPos));\n\t}", "title": "" }, { "docid": "5fffd2b9a48002ae197c69581f443e2d", "score": "0.40689564", "text": "private Pattern processFilenamePattern(String filenamePattern) {\r\n\t\t\tif (filenamePattern == null)\r\n\t\t\t\treturn null;\r\n\t\t\ttry {\r\n\t\t\t\t// escape all .'s\r\n\t\t\t\tfilenamePattern = filenamePattern.replaceAll(\"\\\\.\", \"\\\\\\\\.\");\r\n\t\t\t\t// replace all *'s with \".*\" to make this a proper regex\r\n\t\t\t\tfilenamePattern = filenamePattern.replaceAll(\"\\\\*\", \".*\");\r\n\t\t\t\t// return compiled regex\r\n\t\t\t\treturn Pattern.compile(filenamePattern);\r\n\t\t\t} catch (Throwable error) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "779239372cebff339092b583e3a2e650", "score": "0.40672356", "text": "public final void mDOT() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = DOT;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// org/apache/hadoop/hive/ql/parse/HiveLexer.g:354:5: ( '.' )\n\t\t\t// org/apache/hadoop/hive/ql/parse/HiveLexer.g:354:7: '.'\n\t\t\t{\n\t\t\tmatch('.'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "2d2b5d403eef1fb81c94e51c7eb6fbf4", "score": "0.40632603", "text": "@Override\n\tpublic void endMatch() {\n\n\t}", "title": "" }, { "docid": "710acb96965f028c824c4aba0d439919", "score": "0.40522426", "text": "public static String[] splitParagraphIntoSentences(String paragraph) {\r\n\t\tList<String> sentences = new ArrayList<String>();\r\n\t\tString par = replaceAllNonDotPunctWithSpace(paragraph);\r\n\t\tString[] splitSentences = par.split(\"\\\\.\");\r\n\t\tfor (int i = 0; i < splitSentences.length; i++) {\r\n\t\t\tsentences.add(splitSentences[i].trim());\r\n\t\t}\r\n\t\treturn (String[]) sentences.toArray(new String[sentences.size()]);\r\n\t}", "title": "" }, { "docid": "7955f51585151a8fb22e8087672824dd", "score": "0.4049977", "text": "private boolean isOpeningParanthesis(Character ch) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cbbf31c764e7f08030508ce0861dc39e", "score": "0.4049346", "text": "public String getPattern();", "title": "" }, { "docid": "a19653b5007db3047ddf22889e8cd95a", "score": "0.40415877", "text": "public Arbol pdfParser(String lastSelected) {\r\n lastSelected = lastSelected.replace(\" \", \"\");\r\n Arbol arbol = new Arbol();\r\n try{\r\n File file = new File(\"src\\\\library\\\\\"+lastSelected); \r\n PDDocument documento = PDDocument.load(file);\r\n documento.getClass();\r\n if (!documento.isEncrypted()){\r\n PDFTextStripperByArea stripper = new PDFTextStripperByArea();\r\n stripper.setSortByPosition(true);\r\n PDFTextStripper Tstripper = new PDFTextStripper();\r\n String str = Tstripper.getText(documento);\r\n Scanner scanner = null; \r\n scanner = new Scanner(str);\r\n String line=\"\";\r\n while (scanner.hasNextLine()) { \r\n line = scanner.nextLine(); \r\n String[] fields = line.split(FieldDelimiter, -1);\r\n insertLineInTree(fields, arbol, lastSelected);\r\n System.out.println(\"\\n\"+line);\r\n } \r\n return arbol;\r\n }\r\n documento.close();\r\n }catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return arbol;\r\n \r\n }", "title": "" }, { "docid": "c6692e8b42383070f3f6a980e25e9ec7", "score": "0.4041246", "text": "public String getPattern() {\n/* 80 */ return this.pattern;\n/* */ }", "title": "" }, { "docid": "746cf36fe2421ce9b2bdca1cfd8ea560", "score": "0.4037737", "text": "private Pattern keywordPattern() {\n\t\tStringBuilder sb = new StringBuilder();\t\t//using a \"matcher\" class. i don't fully understand it either\n\t\tString[] keyWords = new String[]{\"if\", \"else\", \"for\", \"while\"};\n\t\tfor (String word : keyWords) {\n\t\t\tsb.append(\"\\\\b\"); //start of word boundary\n\t\t\tsb.append(word);\n\t\t\tsb.append(\"\\\\b|\"); //end of word boundary\n\t\t}\n\t\tif (sb.length() > 0) {\n\t\t\tsb.deleteCharAt(sb.length() - 1); //Remove the trailing \"|\";\n\t\t}\n\n\t\tPattern p = Pattern.compile(sb.toString());\n\n\t\treturn p;\n\t}", "title": "" }, { "docid": "038bb65df8211fbfaaa4033ef5b4dee8", "score": "0.40271065", "text": "public void getPTags() {\n\t\tString html = \"<p>Para1</p><pre>Pre1</pre><p>Para2</p><pre>Pre2</pre>\";\n\t\tDocument doc = Jsoup.parse(html);\n\n\t\tElements pTags = doc.select(\"p,pre,span, ul,li,td,tr,th,table,ol\");\n\n\t\tfor (int i = 0; i < pTags.size(); i++) {\n\t\t\tcurrentHTag = pTags.get(i);\n\n\t\t}\n\t}", "title": "" }, { "docid": "7972ee566ce69065cc5e7786ace7e4ec", "score": "0.40241736", "text": "private static int findInlineTagDelim(String inlineText, int searchStart) {\n\tint delimEnd, nestedOpenBrace;\n\tif ((delimEnd = inlineText.indexOf(\"}\", searchStart)) == -1) {\n\t return -1;\n\t} else if (((nestedOpenBrace = inlineText.indexOf(\"{\", searchStart)) != -1) && nestedOpenBrace &lt; delimEnd) {\n\t //Found a nested open brace.\n\t int nestedCloseBrace = findInlineTagDelim(inlineText, nestedOpenBrace + 1);\n\t return (nestedCloseBrace != -1) ? findInlineTagDelim(inlineText, nestedCloseBrace + 1) : -1;\n\t} else {\n\t return delimEnd;\n\t}\n }", "title": "" }, { "docid": "cd2ee98b25e41652be95988168ff8dcb", "score": "0.4023867", "text": "@Test\n public void test08() throws Throwable {\n JavaParser javaParser0 = new JavaParser(\"?S,$bUl4O]\");\n assertFalse(javaParser0.lookingAhead);\n assertNotNull(javaParser0);\n \n try {\n javaParser0.SynchronizedStatement();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Parse error at line 1, column 0. Encountered: <EOF>\n //\n }\n }", "title": "" }, { "docid": "2004ee5f1a67ac1f63a53a2a2a35d338", "score": "0.40218207", "text": "List<Ristorante> freeTextSearch(String pattern);", "title": "" }, { "docid": "fbf6e8d1a8d0bca23303314f0097dc17", "score": "0.40182617", "text": "private List<Token> eatDottedName(DSLMessage error) {\n List<Token> result = new ArrayList<Token>(3);\n Token name = tokens.next();\n if (!name.isKind(TokenKind.IDENTIFIER)) {\n tokens.raiseException(name.startPos, error, name.data != null ? name.data\n : new String(name.getKind().tokenChars));\n }\n result.add(name);\n while (tokens.peek(TokenKind.DOT)) {\n if (!tokens.isNextAdjacent()) {\n tokens.raiseException(tokens.peek().startPos, DSLMessage.NO_WHITESPACE_IN_DOTTED_NAME);\n }\n result.add(tokens.next()); // consume dot\n if (tokens.peek(TokenKind.IDENTIFIER) && !tokens.isNextAdjacent()) {\n tokens.raiseException(tokens.peek().startPos, DSLMessage.NO_WHITESPACE_IN_DOTTED_NAME);\n }\n result.add(tokens.eat(TokenKind.IDENTIFIER));\n }\n return result;\n }", "title": "" }, { "docid": "bc72c4ecbd2ca0f932992219d10b5aed", "score": "0.40150315", "text": "public static boolean isOpenParen(String s)\n {\n return \"(\".equals(s);\n }", "title": "" }, { "docid": "18c8cc1d8d0364b42438b8bace35e33f", "score": "0.40075663", "text": "public String parseFile() {\n phrase = abcParser.parse();\n return phrase.toString();\n }", "title": "" }, { "docid": "e14628b243df8aa04b887775cc5e392d", "score": "0.40031826", "text": "public static String filterText(String text)\n {\n Document doc = Jsoup.parseBodyFragment(text);\n Elements divElements = doc.select(\"a, b, strong, i, em, u, ins, s, strike, del, br, :matchText\");\n String[] formatElements = { \"a\", \"b\", \"strong\", \"i\", \"em\", \"u\", \"ins\", \"s\", \"strike\", \"del\" };\n List<String> texts = new ArrayList<>(divElements.size());\n for (Element el: divElements) {\n // add newline in the end of <p>\n if (el.tagName().equalsIgnoreCase(\"p\")) {\n String pText = el.wholeText();\n if (el.parent() != null && (el.siblingIndex() + 1 >= el.parent().childNodeSize())) {\n pText += \"\\n\";\n }\n texts.add(pText);\n continue;\n }\n // add newline when we get <br>\n if (el.tagName().equalsIgnoreCase(\"br\")) {\n texts.add(\"\\n\");\n continue;\n }\n boolean gotFormat = false;\n for(String f : formatElements) {\n if (el.tagName().equalsIgnoreCase(f)) {\n texts.add(el.outerHtml());\n gotFormat = true;\n break;\n }\n }\n if (gotFormat) continue;\n \n if (el.hasText()) {\n texts.add(el.wholeText());\n }\n }\n\n String result = String.join(\"\", texts);\n return result;\n }", "title": "" }, { "docid": "2c390a64cd9a4bc0ff9eb804d65c4328", "score": "0.39968586", "text": "@Test\n public void test13() throws Throwable {\n JavaParser javaParser0 = new JavaParser(\"*,\");\n assertFalse(javaParser0.lookingAhead);\n assertNotNull(javaParser0);\n \n try {\n javaParser0.Arguments();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Parse error at line 1, column 0. Encountered: <EOF>\n //\n }\n }", "title": "" }, { "docid": "812058a0308cb08069b25c436824ec47", "score": "0.39966908", "text": "private String discoverTagName(RSyntaxDocument doc, int dot) {\r\n\r\n\t\t\tString candidate = null;\r\n\r\n\t\t\tElement root = doc.getDefaultRootElement();\r\n\t\t\tint curLine = root.getElementIndex(dot);\r\n\r\n\t\t\t// For now, we only check for tags on the current line, for\r\n\t\t\t// simplicity. Tags spanning multiple lines aren't common anyway.\r\n\t\t\tToken t = doc.getTokenListForLine(curLine);\r\n\t\t\twhile (t!=null && t.isPaintable()) {\r\n\t\t\t\tif (t.getType()==Token.MARKUP_TAG_DELIMITER) {\r\n\t\t\t\t\tif (t.isSingleChar('<')) {\r\n\t\t\t\t\t\tt = t.getNextToken();\r\n\t\t\t\t\t\tif (t!=null && t.isPaintable()) {\r\n\t\t\t\t\t\t\tcandidate = t.getLexeme();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (t.isSingleChar('>')) {\r\n\t\t\t\t\t\tif (t.getOffset()==dot) {\r\n\t\t\t\t\t\t\tif (candidate==null ||\r\n\t\t\t\t\t\t\t\t\tshouldAutoCloseTag(candidate)) {\r\n\t\t\t\t\t\t\t\treturn candidate;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (t.is(Token.MARKUP_TAG_DELIMITER, \"</\")) {\r\n\t\t\t\t\t\tcandidate = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tt = t.getNextToken();\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn null; // No match found\r\n\r\n\t\t}", "title": "" }, { "docid": "1ee3eb15095573f34d2c9002ab7986eb", "score": "0.3996534", "text": "public Builder something() {\n return this.add(\"(?:.+)\");\n }", "title": "" }, { "docid": "066c1f9c8843b4fe665d4f5ce85bc4d5", "score": "0.39962146", "text": "public static void main(String[] args) throws FileNotFoundException,IOException{\n\tString teststring=\"this is abc test test\\n\";\n\tMap<String, String> patterns = new HashMap<String, String>();\n\tpatterns.put(\"word\", \"(\\\\w)+\");\n\tpatterns.put(\"newline\", \"(\\\\n)\");\n\tint n=2;\n\tint char_count=0,word_count=0,line_count=0;\n\t/*\n\ttry {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append('\\n');\n line = br.readLine();\n }\n teststring = sb.toString();\n } finally {\n br.close();\n }\n */\n\tString s = cvtLineTerminators (teststring);\n\tPattern p[]= new Pattern[n];\n\tint i=0;\n\tfor(String pattern:patterns.keySet()){\n\ttry\n {\n p[i++] = Pattern.compile (patterns.get(pattern));\n }\n catch (PatternSyntaxException e)\n {\n System.out.println (\"Erroneous pattern: \" + e.getPattern ());\n return;\n }\n\t}\n \n try{\n\twhile (s.length()>0)\n {\n Matcher m = p[1].matcher (s);\n\tMatcher m2=p[0].matcher(s);\n if(m.find() && m.start()==0){\n\tword_count++;\n\tchar_count+=m.end()-m.start();\n\ts = s.substring(m.end());\n continue;\n\t}\n if(m2.find() && m2.start()==0){\n\tline_count++;\n\ts = s.substring(m.end());\n continue;\n\t}\n else\n\ts = s.substring(1);\n\t}\n\t}\n\tcatch(Exception e){\n\t}\n\tSystem.out.println(\"linecount=\"+line_count+\" wordcount=\"+word_count+\" charcount=\"+char_count);\n}", "title": "" }, { "docid": "fab62c774da1a80ea22752f6dc0b0ba3", "score": "0.39954472", "text": "private Token matchEOF() throws SyntaxException {\r\n\t\tif (isKind(EOF)) {\r\n\t\t\treturn t;\r\n\t\t}\r\n\t\tthrow new SyntaxException(t,\"from matchEOF()\"); //TODO give a better error message!\r\n\t}", "title": "" }, { "docid": "d63d0e856f6b147dfd8716d9496076d6", "score": "0.39923602", "text": "@Override\n public void visit(ParensExp n) {\n out.print(\"(\");\n n.exp.accept(this);\n out.print(\")\");\n }", "title": "" }, { "docid": "b92544b714c9d33c6d26b9593041c89d", "score": "0.3992122", "text": "private Line parse()\r\n\t{\n\t\twhile (!walker.atLineEnd())\r\n\t\t{\r\n\t\t\tif (inCodeFragment && isStillInsideCodeFragment())\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tif (handleEscapeSign())\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tString urlPrefix = findURLPrefix();\r\n\t\t\tif (urlPrefix != null)\r\n\t\t\t{\r\n\t\t\t\thandleURL(urlPrefix);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\thandleMarkup();\r\n\t\t}\r\n\t\twalker.forward(); // Go to start of next line, if any\r\n\r\n\t\t// We reached the end of line, see if some text remains to be processed\r\n\t\tpopStack(stack.size() - 1, line);\r\n\r\n\t\treturn line;\r\n\t}", "title": "" }, { "docid": "c2991841f7b6c5cd7265dcf7ae6de391", "score": "0.3986431", "text": "public int matchEnd() {\n return matchEnd;\n }", "title": "" }, { "docid": "c8bf3d8348545201552d89d4cdd5a487", "score": "0.39858648", "text": "public final void mCOMMENTS() throws RecognitionException {\n try {\n int _type = COMMENTS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Users\\\\shashikant460032\\\\Workspace\\\\eclipse\\\\SIMLanguage\\\\src\\\\main\\\\resources\\\\com\\\\mmpnc\\\\simlanguage\\\\grammar\\\\SimLanguageGrammar.g:156:10: ( '//' ( . )* ( '\\\\n' | '\\\\r' ) )\n // C:\\\\Users\\\\shashikant460032\\\\Workspace\\\\eclipse\\\\SIMLanguage\\\\src\\\\main\\\\resources\\\\com\\\\mmpnc\\\\simlanguage\\\\grammar\\\\SimLanguageGrammar.g:156:12: '//' ( . )* ( '\\\\n' | '\\\\r' )\n {\n match(\"//\"); \n\n\n\n // C:\\\\Users\\\\shashikant460032\\\\Workspace\\\\eclipse\\\\SIMLanguage\\\\src\\\\main\\\\resources\\\\com\\\\mmpnc\\\\simlanguage\\\\grammar\\\\SimLanguageGrammar.g:156:17: ( . )*\n loop13:\n do {\n int alt13=2;\n int LA13_0 = input.LA(1);\n\n if ( (LA13_0=='\\n'||LA13_0=='\\r') ) {\n alt13=2;\n }\n else if ( ((LA13_0 >= '\\u0000' && LA13_0 <= '\\t')||(LA13_0 >= '\\u000B' && LA13_0 <= '\\f')||(LA13_0 >= '\\u000E' && LA13_0 <= '\\uFFFF')) ) {\n alt13=1;\n }\n\n\n switch (alt13) {\n \tcase 1 :\n \t // C:\\\\Users\\\\shashikant460032\\\\Workspace\\\\eclipse\\\\SIMLanguage\\\\src\\\\main\\\\resources\\\\com\\\\mmpnc\\\\simlanguage\\\\grammar\\\\SimLanguageGrammar.g:156:17: .\n \t {\n \t matchAny(); \n\n \t }\n \t break;\n\n \tdefault :\n \t break loop13;\n }\n } while (true);\n\n\n if ( input.LA(1)=='\\n'||input.LA(1)=='\\r' ) {\n input.consume();\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;\n }\n\n\n _channel = HIDDEN;\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "af9a8dffd55331cc0686256cacf0f5fe", "score": "0.39703903", "text": "int startOfLineAnyEOL(int index);", "title": "" }, { "docid": "df7d447f744b812092753e72d7d32350", "score": "0.3967181", "text": "public final static String wrapParagraph(String s) {\r\n\ts = noNull(s);\r\n\r\n\tStringBuffer result = new StringBuffer();\r\n\tresult.append(\"<p>\");\r\n\r\n\tchar lastC = 0;\r\n\tchar thisC;\r\n\r\n\tfor (int i = 0; i < s.length(); i++) {\r\n\t thisC = s.charAt(i);\r\n\r\n\t if ((thisC == '\\n') && (lastC == '\\n')) {\r\n\t\tresult.append(\"</p>\\n\\n<p>\");\r\n\t } else {\r\n\t\tresult.append(thisC);\r\n\t }\r\n\r\n\t lastC = thisC;\r\n\t}\r\n\r\n\tresult.append(\"</p>\");\r\n\r\n\treturn result.toString();\r\n }", "title": "" }, { "docid": "f53d9299b27f52c8fa7ed51590c2806a", "score": "0.39644074", "text": "private List<String> splitText(String text) throws Exception {\r\n //int len = 0;\r\n List<String> result = new ArrayList<String>();\r\n StringBuilder currentSentence = new StringBuilder();\r\n\r\n /*\r\n this breaks the sentence into\r\n 1. Any text before a separator\r\n 2. The separator [.!?:\\n]\r\n 3.\r\n */\r\n Matcher matcher = SEPARATOR_BREAK_PATTERN.matcher(text);\r\n while(matcher.find()) {\r\n String sentenceMatch = JNinkaRegularExpression.getGroupValue(matcher, 1);\r\n String punctuation = JNinkaRegularExpression.getGroupValue(matcher, 2);\r\n String sentence = sentenceMatch + punctuation;\r\n String after = JNinkaRegularExpression.getGroupValue(matcher, 3);\r\n text = JNinkaRegularExpression.postMatch(SEPARATOR_BREAK_PATTERN, text);//!!!put after all operations\r\n\r\n //if next character is not a space, then we are not in a sentence\"\r\n if (!\" \".equals(after) && !\"\\t\".equals(after)) {\r\n currentSentence.append(sentence);\r\n continue;\r\n }\r\n\r\n //at this point we know that there is a space after\r\n if (\":\".equals(punctuation) || \"?\".equals(punctuation) || \"!\".equals(punctuation)){\r\n //let us consider this right here a beginning of a sentence\r\n result.add(currentSentence + sentence);\r\n currentSentence.setLength(0);\r\n continue;\r\n }\r\n if (\".\".equals(punctuation)){\r\n //we have a bunch of alternatives\r\n //for the time being just consider a new sentence\r\n\r\n /*\r\n TODO\r\n simple heuristic... let us check that the next words are not the beginning of a sentence\r\n in our library\r\n ENDTODO\r\n */\r\n\r\n //is the last word an abbreviation? For this the period has to follow the word\r\n //this expression might have to be updated to take care of special characters in names :(\r\n Matcher matcher2 = LAST_WORD_ABBREVIATION_PATTERN.matcher(sentenceMatch);\r\n if (matcher2.matches()) {\r\n String before = JNinkaRegularExpression.getGroupValue(matcher2, 1);\r\n String lastWord = JNinkaRegularExpression.getGroupValue(matcher2, 2);\r\n\r\n //is it an abbreviation\r\n if (lastWord.length() == 1 ){\r\n //single character abbreviations are special...\r\n //we will assume they never split the sentence if they are capitalized.\r\n char c = lastWord.charAt(0);\r\n if ((c >= 'A') && (c <= 'Z')){\r\n currentSentence.append(sentence);\r\n continue;\r\n }\r\n if (logger.isLoggable(Level.FINER)) {\r\n logger.finer(\"last word an abbrev \" + sentenceMatch + \" lastword [\" + lastWord + \"] before [\" + before + \"]\");\r\n }\r\n\r\n //but some are lowercase!\r\n if ((c == 'e') || (c == 'i')){\r\n currentSentence.append(sentence);\r\n continue;\r\n }\r\n if (logger.isLoggable(Level.FINER)) {\r\n logger.finer(\"2 last word an abbrev \" + sentenceMatch + \" lastword [\" + lastWord + \"] before [\" + before + \"]\");\r\n }\r\n } else {\r\n lastWord = lastWord.toLowerCase();\r\n //only accept abbreviations if the previous char to the abbrev is space or\r\n //is empty (beginning of line). This avoids things like .c\r\n if ((\"\".equals(before) || \" \".equals(before)) && this.abbreviations.contains(lastWord)) {\r\n currentSentence.append(sentence);\r\n continue;\r\n }\r\n// else {\r\n// //just keep going, we handle this case below\r\n// }\r\n }\r\n }\r\n result.add(currentSentence + sentence);\r\n currentSentence.setLength(0);\r\n continue;\r\n }\r\n\r\n logger.severe(\"We have not dealt with this case\");\r\n throw new IllegalStateException();\r\n }\r\n\r\n result.add(currentSentence + text);\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "cdab76cb1ad03e8a6e11214d7791dda9", "score": "0.39598283", "text": "private SVIndentToken consume_expression() {\n \t\tSVIndentToken tok = current();\n \t\tboolean is_indent = false;\n \t\tboolean search_for_close_brace = false;\n \t\t// Get next token\n \t\tif (is_open_brace(tok)) {\n \t\t\ttok = next_s();\n \t\t\tsearch_for_close_brace = true;\n \t\t\tif (tok.isEndLine()) {\n \t\t\t\t// Should indent (?)\n \t\t\t}\n \t\t}\n \t\tdo {\n \t\t\t// braces on a new line get indented\n \t\t\tif (tok.isStartLine() && (is_indent == false)) {\n \t\t\t\tis_indent = true;\n \t\t\t\tstart_of_scope(tok);\n \t\t\t\tenter_scope(tok);\n \t\t\t}\n \t\t\t// If we have an open brace, check if we need to indent, and call this function again to evaluate the expression\n \t\t\tif (is_open_brace(tok)) {\n \t\t\t\t// recursively call this function, checking for nested braces\n \t\t\t\ttok = consume_expression();\n \t\t\t\t// If we come back (will be on a brace, and we had just indented, \n \t\t\t}\n \t\t\t// Allow for ()\n \t\t\telse if (is_close_brace(tok)) {}\n \t\t\telse {\n \t\t\t\ttok = next_s();\n \t\t\t}\n \t\t} while (!is_close_brace(tok) && search_for_close_brace);\n \t\t\n \t\t// If we come back (will be on a brace, and we had just indented, \n \t\tif (is_indent) {\n \t\t\tleave_scope(tok);\n \t\t}\n \t\t\n \t\tif (is_close_brace(tok)) {\n \t\t\ttok = next_s();\n \t\t}\n \t\t\n \t\treturn tok;\n \t}", "title": "" }, { "docid": "814028b8409afc2efbe38abf3d556077", "score": "0.39566723", "text": "public static SelectExpression parseSelect (String text)\n throws CompilationException\n {\n return (parseSelect (text, null));\n }", "title": "" }, { "docid": "74c09f23cbe11bc5ea8c552f57e36b4c", "score": "0.39512166", "text": "private List<TextDetail> matchWholeFile(CharSequence cb, FileObject fo)\n throws DataObjectNotFoundException {\n\n Matcher textMatcher = pattern.matcher(cb);\n DataObject dataObject = null;\n LineInfoHelper lineInfoHelper = new LineInfoHelper(cb);\n\n List<TextDetail> textDetails = null;\n\n while (textMatcher.find()) {\n if (textDetails == null) {\n textDetails = new LinkedList<>();\n dataObject = DataObject.find(fo);\n fileMatches++;\n }\n itemMatches++;\n TextDetail ntd = new TextDetail(dataObject, searchPattern);\n lineInfoHelper.findAndSetPositionInfo(ntd, textMatcher.start(),\n textMatcher.end(), textMatcher.group());\n textDetails.add(ntd);\n if (fileMatches >= Constants.COUNT_LIMIT\n || itemMatches\n >= Constants.DETAILS_COUNT_LIMIT) {\n break;\n }\n }\n return textDetails;\n }", "title": "" }, { "docid": "c62da2b89c5ee5650cd3ce70a724f857", "score": "0.39493412", "text": "private Node parseFunctionBody()\n throws IOException\n {\n ++nestingOfFunction;\n Node pn = nf.createBlock(ts.getLineno());\n try {\n bodyLoop: for (;;) {\n Node n;\n int tt = peekToken();\n switch (tt) {\n case Token.ERROR:\n case Token.EOF:\n case Token.RC:\n break bodyLoop;\n\n case Token.FUNCTION:\n consumeToken();\n n = function(FunctionNode.FUNCTION_STATEMENT);\n break;\n default:\n n = statement();\n break;\n }\n nf.addChildToBack(pn, n);\n }\n } catch (ParserException e) {\n // Ignore it\n } finally {\n --nestingOfFunction;\n }\n\n return pn;\n }", "title": "" }, { "docid": "dce7ecdaabc7627f23895b44cf3b941d", "score": "0.3937786", "text": "public Builder endCapture() {\n if (this.suffixes.indexOf(\")\") != -1) {\n this.suffixes.setLength(suffixes.length() - 1);\n return this.add(\")\");\n } else {\n throw new IllegalStateException(\"Can't end capture (group) when it not started\");\n }\n }", "title": "" }, { "docid": "ceb76541dd20e201b24951604bba9270", "score": "0.39354694", "text": "private String extractExpression(String s) {\n String expression = \"\";\n int expressionIndex = s.indexOf(EXPRESSION_FLAG);\n if (expressionIndex != -1) \n expression = s.substring(expressionIndex + EXPRESSION_FLAG.length(), s.indexOf(END_FLAG, expressionIndex));\n\n return removeExpressionBreaks(expression);\n }", "title": "" }, { "docid": "8c24a049429f8ee5c2fac61ef9d59b21", "score": "0.3934592", "text": "public final void mDOT() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = DOT;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// src/main/resources/org/kie/workbench/common/services/datamodeller/parser/Java.g:2170:5: ( '.' )\n\t\t\t// src/main/resources/org/kie/workbench/common/services/datamodeller/parser/Java.g:2170:9: '.'\n\t\t\t{\n\t\t\tmatch('.'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "c62001aa1a2d7adabfc83dfe21cd578e", "score": "0.39344656", "text": "String getPattern();", "title": "" }, { "docid": "c62001aa1a2d7adabfc83dfe21cd578e", "score": "0.39344656", "text": "String getPattern();", "title": "" }, { "docid": "b19261eaac5eb08deaf89ec58bb154ea", "score": "0.39306122", "text": "public interface SelectConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SELECT = 4;\n /** RegularExpression Id. */\n int FROM = 5;\n /** RegularExpression Id. */\n int WHERE = 6;\n /** RegularExpression Id. */\n int EXIT = 7;\n /** RegularExpression Id. */\n int STAR = 8;\n /** RegularExpression Id. */\n int EQUAL = 9;\n /** RegularExpression Id. */\n int QUOTATION = 10;\n /** RegularExpression Id. */\n int SPACE = 11;\n /** RegularExpression Id. */\n int NUMBER = 12;\n /** RegularExpression Id. */\n int SEMICOLON = 13;\n /** RegularExpression Id. */\n int ALPHANUMERIC = 14;\n /** RegularExpression Id. */\n int LISTATTR = 15;\n /** RegularExpression Id. */\n int COMMA = 16;\n /** RegularExpression Id. */\n int CAPITAL = 17;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\r\\\\n\\\"\",\n \"<SELECT>\",\n \"<FROM>\",\n \"<WHERE>\",\n \"<EXIT>\",\n \"\\\"*\\\"\",\n \"\\\"=\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\" \\\"\",\n \"<NUMBER>\",\n \"\\\";\\\"\",\n \"<ALPHANUMERIC>\",\n \"<LISTATTR>\",\n \"\\\",\\\"\",\n \"<CAPITAL>\",\n };\n\n}", "title": "" }, { "docid": "6cd0705c780aba24ef400f024e958cab", "score": "0.39302278", "text": "@Test\n\tpublic void newlinesAsStatementTerminators() {\n\t\tevaluate(\"o = {\\n duplicateWord: \\n (name) {\\n\\n calc = (n\\n) {\\n\"\n\t\t\t\t+ \"\\n rv = n * 1\\n return rv * name\\n } \\n\"\n\t\t\t\t+ \" return calc(1) * 2\\n\\n\\n }\\n}\");\n\t\tassertEquals(\"abcabc\", evaluate(\"o.duplicateWord('abc')\"));\n\t}", "title": "" }, { "docid": "77ad0e266599e4e38ce7db25b7e2d2d0", "score": "0.39299592", "text": "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "title": "" }, { "docid": "ee7b8a48134d9b78654fa34394296ce5", "score": "0.39270625", "text": "@Test\n public void test15() throws Throwable {\n JavaParser javaParser0 = new JavaParser(\"\");\n assertFalse(javaParser0.lookingAhead);\n assertNotNull(javaParser0);\n \n try {\n javaParser0.LabeledStatement();\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Parse error at line 1, column 0. Encountered: <EOF>\n //\n }\n }", "title": "" }, { "docid": "c98f09e1d1ab0120d1887907db42fc4c", "score": "0.39252102", "text": "public String starOut(String str) {\n return str.replaceAll(\".?\\\\*+.?\", \"\");\n}", "title": "" }, { "docid": "683893ab8fb3a5e85132cccde5d58524", "score": "0.3913253", "text": "public static Pattern exprRegexNodeCompilePattern(String text) {\n try {\n return Pattern.compile(text);\n } catch (PatternSyntaxException ex) {\n throw new EPException(\"Error compiling regex pattern '\" + text + \"': \" + ex.getMessage(), ex);\n }\n }", "title": "" }, { "docid": "842fbdd3d610f4cc4b49f32af9dc1fb3", "score": "0.39116082", "text": "public final void mDOT_() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = DOT_;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// myCompiler.g:486:5: ( '.' )\n\t\t\t// myCompiler.g:486:7: '.'\n\t\t\t{\n\t\t\tmatch('.'); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "title": "" }, { "docid": "7d84ac3ff1dd36a092f95ba3fecb7a21", "score": "0.39094335", "text": "public static String returnGroup1(String pattern, String line) {\n Pattern r = Pattern.compile(pattern);\n // Now create matcher object.\n Matcher m = r.matcher(line);\n if (m.find()) {\n return m.group(1);\n }\n return null;\n }", "title": "" }, { "docid": "6b2709a5248a706c8dfc9f7fc19c55f4", "score": "0.39082694", "text": "@Test\n public void whenSearchingByRegExpThenFindIt() {\n this.testCase(\"test.*end$\", \"-r\", true);\n this.result.delete();\n }", "title": "" }, { "docid": "73502adabbfd3086af4c2e4737107230", "score": "0.39055848", "text": "@Override\n\tpublic void visit(RegExpMatchOperator arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "bd9f1f707e89e41513fee1ac62b8ec51", "score": "0.3900236", "text": "public String newParagraph(){\n return \"\\n\\n\";\n }", "title": "" }, { "docid": "886c8ca9ca20059f426e7c0c04faba83", "score": "0.38947707", "text": "@Test\n public void test_GH_340() {\n List<RPsiLet> es = ORUtil.findImmediateChildrenOfClass(parseCode(\"let fn cond i j = match cond with | Some i, Some j -> i < j\\n let fn2 s = ()\"), RPsiLet.class);\n\n assertSize(2, es);\n assertEquals(\"let fn cond i j = match cond with | Some i, Some j -> i < j\", es.get(0).getText());\n assertEquals(\"let fn2 s = ()\", es.get(1).getText());\n }", "title": "" }, { "docid": "c252f38fb3f9401deae2037ba7cf60de", "score": "0.38930598", "text": "public static void main(String[] args) {\n\t\tString t1 = \"Longlonglong ago , in a galaxy far far away\" ;\r\n\t\t\r\n\t\tPattern p = Pattern.compile(\"(long){2}\") ;\r\n\t\t//Pattern pp = Pattern.compile(\"(gal.{3}\");\r\n\t\t\r\n\t\tMatcher m = p.matcher(t1) ;\r\n\t\t//Matcher mm = pp.matcher(t2) ;\r\n\t\t\r\n\t\twhile(m.find()) {\r\n\t\t\tSystem.out.println(m.group());\r\n\t\t}\r\n\t\t\r\n\t\tString t2 = \"Long time ago , there was a long river ... \" ;\r\n\t\t\r\n\t\tPattern pp = Pattern.compile(\"gal.{3}\");\r\n\t\tMatcher mm = pp.matcher(t2) ;\r\n\t\t\r\n\t\t/*\r\n\t\twhile(mm.find()) {\r\n\t\t\tSystem.out.println(mm.group(0));\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\tif(mm.find()) {\r\n\t\t\tSystem.out.println(mm.group(0));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "db714d6f8e713ac5986a25bcef1fb8eb", "score": "0.38905743", "text": "CurlyBraces createCurlyBraces();", "title": "" } ]
f7c2a72b3d8ca84dade886a0499960fa
(This method prompts the user for the ID Number of an employee that they wish to remove.)
[ { "docid": "2789125b6048a9028d83ce6b2077587e", "score": "0.65652937", "text": "public static int deleteEmp(ArrayList<Payroll> temp) { \n\t\tScanner keyboard = new Scanner(System.in);\n\t\tSystem.out.print(\"Please Enter the ID Number of an Employee That You Wish to Remove: \");\n\t\tboolean badInput = true;\n\t\tint lookNumber = 0;\n\t\twhile (badInput == true) {\n\t\t\ttry {\n\t\t\t\tlookNumber = Integer.parseInt(keyboard.nextLine());\n\t\t\t\tbadInput = false;\n\t\t\t} \n\t\t\tcatch (NumberFormatException e) { \n\t\t\t\tSystem.out.print(\"\\tINVALID NUMBER *Please Enter a Valid ID Number (Integer)*: \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tboolean remove = false;\n\t\twhile (remove == false) {\n\t\t\tint counter = 0;\n\t\t\tbadInput = true;\n\t\t\tIterator<Payroll> it = temp.iterator();\n\t\t\twhile (it.hasNext()) { \n\t\t\t\tPayroll current = it.next();\n\t\t\t\tint booty = current.getIdNumber();\n\t\t\t\tif (lookNumber == booty) { \n\t\t\t\t\ttemp.remove(counter);\n\t\t\t\t\tremove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcounter ++;\n\t\t\t}\t\n\t\t\tif (remove == false) {\n\t\t\t\tSystem.out.print(\"\\tID NUMBER NOT FOUND *Please Enter a Valid ID Number*: \");\n\t\t\t\twhile (badInput == true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlookNumber = Integer.parseInt(keyboard.nextLine());\n\t\t\t\t\t\tbadInput = false;\n\t\t\t\t\t} \n\t\t\t\t\tcatch (NumberFormatException e) { \n\t\t\t\t\t\tSystem.out.print(\"\\tINVALID NUMBER *Please Enter a Valid ID Number (Integer)*: \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\treturn lookNumber;\n\t}", "title": "" } ]
[ { "docid": "5847e1740f891f1b7d50279249e839d7", "score": "0.6750613", "text": "public void showDeleteEmployee() {\n\t\tshowListEmployees();\n\t\t//Get Object with Surname and Prename\n\t\tSystem.out.println(\"Enter the Prename of the Person you want to delete: \");\n\t\tString prename = scanner.next();\n\t\tSystem.out.println(\"Enter the Surname of the Person you want to delete: \");\n\t\tString surname = scanner.next();\n\n\t\tEmployee delEmployee = HRManagerUtil.getEmployeeByName(prename, surname, db.getEmployees());\n\n\t\t//If Employee exists with the input name\n\t\tif (delEmployee != null) {\n\t\t\t//delete it\n\t\t\tdb.deleteEmployee(delEmployee);\n\t\t\tSystem.out.println(\"Deleted!\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Employee dosen't exist\");\n\t\t}\n\t}", "title": "" }, { "docid": "9394035105f63f5dc1db3e2bf2015577", "score": "0.6441239", "text": "public void delete(EmployeeDAO empDAO) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter Employee ID to Delete: \");\n\t\tint id = Integer.parseInt(sc.nextLine());\n\n\t\tif (empDAO.deleteEmployee(id))\n\t\t\tSystem.out.println(\"Employee \" + id + \" Deleted.\");\n\t\telse\n\t\t\tSystem.out.println(\"Employee Not Deleted.\");\n\n\t}", "title": "" }, { "docid": "1a5eaa5e64fca0f8c5add875d6c0bce8", "score": "0.6428267", "text": "private static void deletedata()\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\tSystem.out.println(\"Enter the id to be deleted\");\r\n\t\tint Id = scan.nextInt();\r\n\t\t\r\n\t\tString sql = \"DELETE FROM employee WHERE id= ?\";\r\n\t\tps = con.prepareStatement(sql);\r\n\t\tps.setInt(1, Id);\r\n\t\tps.executeUpdate();\r\n\t\tSystem.out.println(\"DELETED\");\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "732394740fee9334f0e1196ea61f237f", "score": "0.6403056", "text": "public void showEditEmployee() throws ParseException {\n\t\tshowListEmployees();\n\t\t//Get Object with Surname and Prename\n\t\tSystem.out.println(\"Enter the Prename of the Person you want to delete: \");\n\t\tString prename = scanner.next();\n\t\tSystem.out.println(\"Enter the Surname of the Person you want to delete: \");\n\t\tString surname = scanner.next();\n\n\t\tEmployee editEmployee = HRManagerUtil.getEmployeeByName(prename, surname, db.getEmployees());\n\t\t//If Employee exsist\n\t\tif (editEmployee != null) {\n\t\t\tshowEmployee(editEmployee);\n\t\t\tSystem.out.println(\"\\nEnter 1 for Prename\");\n\t\t\tSystem.out.println(\"Enter 2 for Surname\");\n\t\t\tSystem.out.println(\"Enter 3 for Birthdate\");\n\t\t\tSystem.out.println(\"Enter 4 for Jobdescription\");\n\t\t\tSystem.out.println(\"Enter 5 for Salary\");\n\t\t\tSystem.out.println(\"Enter 6 for EmploymentDate\");\n\n\t\t\t// While input != int\n\t\t\twhile (!scanner.hasNextInt()) {\n\t\t\t\tscanner.next();\n\t\t\t\tSystem.out.println(\"Please enter a valid Integer!\");\n\t\t\t}\n\t\t\tint menuInput = scanner.nextInt();\n\n\t\t\t//Switch case for input\n\t\t\tswitch (menuInput) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"new Prename: \");\n\t\t\t\tString prename1 = scanner.next();\n\t\t\t\teditEmployee.setPrename(prename1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.print(\"new Surname: \");\n\t\t\t\teditEmployee.setSurname(scanner.next());\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.print(\"new Birthdate(dd.MM.yyyy): \");\n\t\t\t\ttry {\n\t\t\t\t\teditEmployee.setBirthdate(HRManagerUtil.formatter.parse(scanner.next()));\n\t\t\t\t} catch (ParseException e2) {\n\t\t\t\t\tSystem.out.println(\"Invalid Date Format!\");\n\t\t\t\t\teditEmployee.setBirthdate(HRManagerUtil.formatter.parse(\"01.01.1970\"));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.print(\"new Jobdescription: \");\n\t\t\t\teditEmployee.setJobDescription(scanner.next());\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.print(\"new Salary: \");\n\t\t\t\teditEmployee.setSalary(scanner.nextDouble());\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.print(\"new EmploymentDate(dd.MM.yyyy): \");\n\t\t\t\ttry {\n\t\t\t\t\teditEmployee.setEmploymentDate(HRManagerUtil.formatter.parse(scanner.next()));\n\t\t\t\t} catch (ParseException e2) {\n\t\t\t\t\tSystem.out.println(\"Invalid Date Format!\");\n\t\t\t\t\teditEmployee.setEmploymentDate(HRManagerUtil.formatter.parse(\"01.01.1970\"));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Wrong Input!\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdb.updateEmployee(editEmployee);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Employee dosen't exist\");\n\t\t}\n\t}", "title": "" }, { "docid": "e999edc088404b13892aeeeb25379ae7", "score": "0.6371935", "text": "public void deleteEmployee(String empId) {\n\t}", "title": "" }, { "docid": "fb13fa828810d874edbc32950e9f262b", "score": "0.6365393", "text": "private void removeTeacher() {\n System.out.println(\"Please enter teacher ID: \");\n try {\n int id = Integer.valueOf(input.next());\n if (findTeacherByID(id) != null) {\n Teacher toRemove = findTeacherByID(id);\n mySchool.removeTeacher(toRemove);\n toRemove.schoolAttended = null;\n System.out.println(\"Teacher successfully removed.\");\n } else {\n System.out.println(\"Teacher not found. Try again.\");\n }\n } catch (NumberFormatException e) {\n System.out.println(\"Please enter a valid 6-digit teacher ID.\");\n }\n }", "title": "" }, { "docid": "457863e3a53bb3b294828d70ecdbb947", "score": "0.63518584", "text": "private void remove() {\n // get user input\n // displays message, and returns a string of text from text box\n String ssn = JOptionPane.showInputDialog(\"Enter person's ssn\");\n // get reference to real person using searchKey person\n // \"searchKey\" variable only contains the search key SSN\n Person searchKey = new Person(ssn);\n tree.remove(searchKey);\n }", "title": "" }, { "docid": "53aa0f57e36fd44c539b5a3e43663774", "score": "0.629686", "text": "public void deleteEmployee(Long employeeNo) throws Exception;", "title": "" }, { "docid": "6991f7d9aa04c3e1de89e1b48ab169bc", "score": "0.62478375", "text": "public void delete(){\n employeeCrud.delete(employeeCrud.read(employeeFrame.getSelected()));\n refresh();\n }", "title": "" }, { "docid": "703daec3722eb7b5557b4ca5b2e0f42c", "score": "0.6205588", "text": "private void removeStudent() {\n System.out.println(\"Please enter student ID: \");\n try {\n int id = Integer.valueOf(input.next());\n if (findStudentByID(id) != null) {\n Student toRemove = findStudentByID(id);\n mySchool.removeStudent(toRemove);\n toRemove.schoolAttended = null;\n System.out.println(\"Student successfully removed.\");\n } else {\n System.out.println(\"Student not found. Try again.\");\n }\n } catch (NumberFormatException e) {\n System.out.println(\"Please enter a valid 6-digit student ID.\");\n }\n }", "title": "" }, { "docid": "92f3af0c10193fef9f3755a2157f471f", "score": "0.6178589", "text": "Boolean deleteEmployee(Integer id) throws AppException;", "title": "" }, { "docid": "d9af2b821ae8cebaf934b36b202689a4", "score": "0.6162596", "text": "private void btn_deleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_deleteActionPerformed\n \n if(!txt_employeeid.getText().equals(\"\"))\n {\n try{\n Connection con = getConnection();\n String sqlDelete = \"DELETE FROM mv_staff WHERE employeeid=?\";\n PreparedStatement ps = con.prepareStatement(sqlDelete);\n \n int employeeid = Integer.parseInt(txt_employeeid.getText());\n ps.setInt(1, employeeid);\n ps.executeUpdate();\n Show_Staff_In_JTable();\n Show_StaffTotals_In_JTable();\n \n JOptionPane.showMessageDialog(null, \"Staff Record has been Deleted\");\n \n }catch (SQLException ex){\n Logger.getLogger(Staff_Total2.class.getName()).log(Level.SEVERE, null, ex);\n JOptionPane.showMessageDialog(null,\"Staff Record Not Deleted\");\n }\n }else{\n JOptionPane.showMessageDialog(null,\"Staff Record Not Deleted: No Employee ID to Delete\");\n }\n }", "title": "" }, { "docid": "b9ea4e4cc6757a3ed705725dd560dddd", "score": "0.61434036", "text": "private static void eliminarEmpleado() {\n Integer keyTienda = seleccionarTienda();\n\n if (keyTienda != null) {\n Tienda tienda = empresa.getTienda(keyTienda);\n if (tienda.listarEmpleados()) {\n Integer keyEmpleado = KeyboardReader.readInt(\"Introduzca el número de empleado (0 para salir): \",\n \"Error con el número introducido\");\n\n if (keyEmpleado != 0) {\n while (tienda.getEmpleado(keyEmpleado) == null) {\n System.out.println(\"El código no corresponde a ningún empleado\");\n keyEmpleado = KeyboardReader.readInt(\"Introduzca el número de empleado (0 para salir): \",\n \"Error con el número introducido\");\n\n if (keyEmpleado == 0) {\n break;\n }\n }\n\n if (keyEmpleado != 0 && confirmarSiNo(\"¿Realmente quiere eliminar el empleado? (S/N): \",\n \"Eliminación cancelada\")) {\n tienda.eliminarEmpleado(keyEmpleado);\n saveJSON(\"empresa.json\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "0a98e554b3b6b70e567a03d6e5c8b206", "score": "0.61306655", "text": "private void DeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_DeleteActionPerformed\n Delete d = new Delete();\n try {\n d.deleteEntry(Integer.valueOf(idTxt.getText()));\n }\n // Message pops up if user tries to enter a non-integer value for ID\n catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"ID must be an integer.\", \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n updateTable();\n clearDataFields();\n }", "title": "" }, { "docid": "d949e0e75b5f7bf41fcf43c180c102d3", "score": "0.61180645", "text": "public void deleteUser()\r\n {\r\n LinkedHashSet<Integer> userRollNumbers = new LinkedHashSet<Integer>() ;\r\n int deleteRollNumber ;\r\n for(int i = 0 ; i < listOfUsers.size() ; i++)\r\n {\r\n userRollNumbers.add(listOfUsers.get(i).getRollNumber()) ;\r\n }\r\n System.out.println(\"enter the user's roll number for deleting that user's details \");\r\n while(true)\r\n {\r\n \r\n deleteRollNumber = getValidInt() ;\r\n if(userRollNumbers.contains(deleteRollNumber))\r\n {\r\n List<Integer> rollNumbers = new ArrayList<Integer>(userRollNumbers);\r\n int removeFromPosition = rollNumbers.indexOf(deleteRollNumber) ;\r\n listOfUsers.remove(removeFromPosition);\r\n break ;\r\n }\r\n else\r\n {\r\n System.out.println(\"the roll number doesn't exist\");\r\n break ;\r\n }\r\n \r\n \r\n }\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "f381327ebb3a411cd464c22649a6af19", "score": "0.6044984", "text": "private static void delEmpleado() {\n System.out.println();\n\n Empleado empleado = selectEmpleado();\n\n if (empleado != null && confirmarSiNo(\n \"¿Realmente quiere eliminar el empleado? (S/N): \")) {\n System.out.println();\n if (empresa.delEmpleado(empleado)) {\n System.out.println(\"Empleado eliminado correctamente\");\n } else {\n System.out.println(\"Error al eliminar el empleado\");\n System.out.println(\"Revise el registro de la aplicación\");\n }\n }\n }", "title": "" }, { "docid": "451801dd6a709807c33ad129515d8175", "score": "0.60345", "text": "private static void displayDetailToDelete() {\n int k = 1;\n displayDepartment();\n System.out.println(\"Chon 1 phong ban de xem chi tiet:\");\n int choice1 = sc.nextInt();\n ArrayList<Employee> employees = Department.listDepartment.get(choice1 - 1).getListEmployee();\n for (Employee employee : employees) {\n if (employee instanceof HourlyEmployee) {\n System.out.println(k + \".\");\n ((HourlyEmployee) employee).display();\n } else {\n System.out.println(k + \".\");\n ((SalariedEmployee) employee).display();\n }\n k++;\n }\n System.out.println(\"Chon số đứng trước của thông tin nhân viên để xóa\");\n int choice2 = sc.nextInt();\n Department.listDepartment.get(choice1 - 1).getListEmployee().remove(choice2);\n }", "title": "" }, { "docid": "ceac2748fb25ff97d5563d728a4b8dad", "score": "0.6033211", "text": "public void remove() {\n String first_Name = fname.getText();\n String last_Name = lname.getText();\n Instate instate = new Instate(first_Name, last_Name, 0, 0);\n // No first name input\n if (first_Name.equals(\"\")) {\n console_Text += \"Must have a first-name!\\n\";\n update_Console();\n return;\n }\n // No last name input\n if (last_Name.equals(\"\")) {\n console_Text += \"Must have a last-name!\\n\";\n update_Console();\n return;\n }\n if (tuition_List.remove(instate)) {\n console_Text += \"removed\\n\";\n } else {\n console_Text += \"Student not exist\\n\";\n }\n update_Console();\n }", "title": "" }, { "docid": "6ab02bae17ad300d19fb53a070d38d24", "score": "0.60222316", "text": "@FXML\n public void removeEmployee(ActionEvent event) {\n try {\n if (dealer.removePerson(txtID.getText())) {\n Alert alertInfo = new Alert(AlertType.INFORMATION);\n alertInfo.setHeaderText(null);\n alertInfo.setTitle(\"Employee removed\");\n alertInfo.setContentText(\"The employee with ID \" + txtID.getText() + \" has been successfully removed from the system.\");\n alertInfo.showAndWait();\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"employees-mod.fxml\"));\n fxmlLoader.setController(this);\n Parent employeesMod = fxmlLoader.load();\n primaryStage.setTitle(\"EMPLOYEES MODULE\");\n primaryStage.setScene(new Scene(employeesMod));\n primaryStage.show();\n } else {\n Alert alertWarning = new Alert(AlertType.WARNING);\n alertWarning.setHeaderText(null);\n alertWarning.setTitle(\"Removing process interrupted\");\n alertWarning.setContentText(\"This employee is not registered in the system.\");\n alertWarning.showAndWait();\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "title": "" }, { "docid": "4a473857081041e1b182617e4659eba7", "score": "0.60058767", "text": "public List<Employee> deleteEmployee(int employeeId);", "title": "" }, { "docid": "298d8826b84460c5a92bdf98e3d0203b", "score": "0.5995775", "text": "public void delete() {\n\t\tSystem.out.println(\"Enter First Name\");\n\t\tString firstName = myObj.nextLine();\n\t\tSystem.out.println(\"Enter Last Name\");\n\t\tString lastName = myObj.nextLine();\n\t\tfor (int i = 0; i < contactList.size(); i++) {\n\t\t\tif ((contactList.get(i).firstName.equals(firstName)) && (contactList.get(i).lastName.equals(lastName))) {\n\t\t\t\tcontactList.remove(i);\n\t\t\t\tSystem.out.println(\"Contact Deleted\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b5d39d2de4f5cc418371b9f104f18c12", "score": "0.5995212", "text": "public void DeleteExpense()\n {\n boolean ExpenseIDMatch = false;\n boolean fIntegerFound = false; \n \n String ExpenseN = GUI.txtExpense.getText(); // the expense name to be deleted\n \n int Count = -1;\n // ==============================DATA VALIDATION FOR DELETE Expense ======================\n \n if ( (ExpenseN.equals(\"\")))\n GUI.txtDisplayFieldS.setText(\"Please enter a expense name.\");\n \n else //Expense name is not left blank \n {\n for (int f=0; f<ExpenseN.length(); f++)\n if(Character.isDigit(ExpenseN.charAt(f))) // if a integer has been in the expense\n {\n fIntegerFound = true;\n break; //exits the loop\n }\n }\n \n if (fIntegerFound)\n {\n GUI.txtDisplayFieldS.setText(\"Expenses: should be in form of letters.\");\n }\n else\n {\n for ( int i=0; i < expSize; i++)\n {\n \n if (ExpenseN.equals (daExp[i].getExpenses()))\n {\n ExpenseIDMatch=true;\n Count = i; \n for ( int j = Count; j < expSize-1; j++)\n {\n daExp[j].setExpenseName(daExp[j+1].getExpenses());\n daExp[j].setExpenseValue(daExp[j+1].getexpVal());\n \n }\n GUI.txtDisplayFieldS.setText ((ExpenseN) + \" has been deleted successfully\");\n expSize=expSize -1;\n break;\n }\n else\n GUI.txtDisplayFieldS.setText (\" Enter expense name\");\n }\n } \n \n \n \n }", "title": "" }, { "docid": "bc29e36c57fe3d502c9595da75edbdc2", "score": "0.5992463", "text": "@Override\r\n\tpublic void delete(int employeeId) {\n\t\t\r\n\t}", "title": "" }, { "docid": "3065b7ac7bf920ac4a6c69a78a0d6b2a", "score": "0.59892464", "text": "public void deleteEmployee(String empID, String username,\n\t\t\tString designation, Date joiningDate, String companyEmailID,\n\t\t\tString managerID, String firstName, String lastName) {\n\t\tSystem.out.println(\"Inside Business layer\");\n\n\t}", "title": "" }, { "docid": "89642af38a9faadba778527198248797", "score": "0.5987037", "text": "@Override\r\n\tpublic boolean deleteEmployee(int id) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1149898a4432cd758c09f5b3e41fe695", "score": "0.5968479", "text": "public static void delete(long employeeNum) throws Exception {\n String command = \"DELETE FROM employee \" + \"WHERE EmployeeNum = \" + POut.long(employeeNum);\n Db.nonQ(command);\n }", "title": "" }, { "docid": "eff8c0097f460db9398d886eb67e9577", "score": "0.5931135", "text": "void remove(Employee employee);", "title": "" }, { "docid": "5b7cbc6c91a11aff25ce6d950739cdc1", "score": "0.59298414", "text": "public void excluir(int ID){\r\n\r\n\t\tArrays.dadosEmpregados.remove(ID);\r\n\r\n\t}", "title": "" }, { "docid": "30998950ab5735cd72a05860806e6d08", "score": "0.5905723", "text": "public String removeEmployee(long empId){\n \tEmployeeEntity empExist = empRepository.findEmployeeById(empId);\n \tif(null==empExist)\n \t{\t\n \t\tlogger.warn(\"Employee id does not exist\");\n \t\tString errorMessage = \"Employee id does not exist\";\n \t\treturn errorMessage;\n \t\t\n \t}\n\t\tempRepository.delete(empId);\n\t\treturn \"Employee with id \"+empId+\" has been deleted\";\n }", "title": "" }, { "docid": "ca2d7625e50350055bda2a7ac7035868", "score": "0.5894974", "text": "public void deleteRecords() throws IOException {\r\n\t\tsession = createSession();\r\n\t\tlog.info(\"Session updated for delete operation\");\r\n\t\tTransaction t = session.beginTransaction();\r\n\t\tSystem.out.println(\"Enter ID: \");\r\n\t\tInputStreamReader ir = new InputStreamReader(System.in);\r\n\t\tBufferedReader br = new BufferedReader(ir);\r\n\t\tlong delId = Long.parseLong(br.readLine());\r\n\t\tEmployee e1 = (Employee) session.get(Employee.class, delId);\r\n\t\tsession.delete(e1);\r\n\t\tt.commit();\r\n\t\tlog.info(\"Record \" + delId + \"deleted Employee table successfully\");\r\n\t\tsession.close();\r\n\t\tSystem.out.println(\"successfully saved\");\r\n\r\n\t}", "title": "" }, { "docid": "cb271a335e238d70077caba27ee2795a", "score": "0.5884466", "text": "@Override\n\tpublic int deleteEmployeeByID(int employeeID) {\n\t\treturn centerPersonManageService.deleteEmployee(employeeID);\n\t}", "title": "" }, { "docid": "f891b68a497bfd503303544b975f750b", "score": "0.586594", "text": "Employee retrieveEmployeeByIdentifyNumber(String identifyNumber);", "title": "" }, { "docid": "cf5bb32e705638e29fc29e8a7586d44b", "score": "0.5859307", "text": "public String removeTrainee() {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true) {\n\t\tLOGGER.info(\"Remove a Trainne\");\n\t\tLOGGER.info(\"Enter Emp Id\");\n\t\tint id = sc.nextInt();\n\t\tif(!Validation.validEmpId(id)) {\n\t\t\tLOGGER.error(\"Emp id size should be 6 digits\");\n\t\t\tcontinue;\n\t\t}\n\t\tString result = traineeRepo.removeTrainee(id);\n\t\n\t\t return result; \n\t\t}\n\t}", "title": "" }, { "docid": "494283ec0a3f6be75690dc6f7477ee19", "score": "0.5856366", "text": "public void removeStudent( ) {\n\t\t\n\t\tScanner r = new Scanner(System.in);\n\t\tallStudents();\n \t\tSystem.out.print(\"Enter the id of the student you want to remove: \");\n \t\tLong id = r.nextLong();\n\t\t\n\n\t\tfor (Entry<Long, Student> Entry : studentClass.entrySet()) {\n\t\t \t\n\t\t\t if(id.equals(Entry.getKey()))\n\t\t\t \n\t\t\t\t studentClass.remove(id);\n\t\t }\n\t\t\n \t\tSystem.out.println(\"The student has been deleted \");\n \t\tSystem.out.println(\"This is the new School list.\");\n \t//Computations: n+6\n\n\t}", "title": "" }, { "docid": "254870079cb8f01b9319055807acccbe", "score": "0.5855335", "text": "public void remove(Employee employee) {\n\t}", "title": "" }, { "docid": "0b0ea19a7fe065ffb66dca008247fdea", "score": "0.58450055", "text": "@Override\r\n\tpublic void deleteEmployeeById(int id) throws EmployeeNotFoundException {\n\t\t\r\n\t}", "title": "" }, { "docid": "380f4ac3dfc5737d857ff9696be15342", "score": "0.58385134", "text": "private static void Remove() {\n\t\tSystem.out.println(\"--------Remove--------\");\n\t\tSystem.out.println(\"Enter id of student : \");\n\t\tint index = -1;\n\t\tint id = Integer.parseInt(sc.nextLine());\n\t\tfor(int i=0;i< list.size();i++) {\n\t\t\tif(list.get(i).getId() == id) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(index == -1) {\n\t\t\tSystem.out.println(\"The student is not in list\");\n\t\t\treturn ;\n\t\t}\n\t\tlist.remove(index);\n\t\tSystem.out.println(\"Remove is successful \");\n\t}", "title": "" }, { "docid": "b05f5177fade2316382573070f9d0ee3", "score": "0.58356005", "text": "@Override\n\tpublic String deleteEmployeeById(String empId) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "39d42be9c1c9ae7e5b1c403fa056110a", "score": "0.58295983", "text": "public void deleteEmployee(Employee emp);", "title": "" }, { "docid": "775ba71aa33ec7bc6bb5d3712d507952", "score": "0.58211726", "text": "@Override\n\tpublic void deleteEmployee(Long employeeNumber) {\n\t\temployeeRepository.deleteById(employeeNumber);\n\t}", "title": "" }, { "docid": "96717cc52cf29f417dba32724a961110", "score": "0.5816371", "text": "@Override\n\tpublic boolean deleteEmployeeInfo(int id) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a7560fff502bb24d44a4fbb281feae80", "score": "0.57903475", "text": "public String removePerson(String input) {\n try {\n people.removeIf(person -> person.getId() == Integer.parseInt(input));\n teachersList.removeIf(person -> person.getId() == Integer.parseInt(input));\n studentList.removeIf(person -> person.getId() == Integer.parseInt(input));\n return \"Person with number: \" + input + \" has been deleted.\";\n } catch (NumberFormatException exception) {\n people.removeIf(person -> person.getName().equals(input));\n teachersList.removeIf(person -> person.getName().equals(input));\n studentList.removeIf(person -> person.getName().equals(input));\n return \"Person with name: \" + input + \" has been deleted.\";\n }\n}", "title": "" }, { "docid": "73e6fc6ea96b03142737f42de8f13314", "score": "0.5783534", "text": "public void RemoveByFirst(){\r\n\r\n\t \tString FirstName = JOptionPane.showInputDialog(\"Please Enter first name\");\r\n\t \tif(FirstName.equals(\"\")){\r\n\t \t\tJOptionPane.showMessageDialog(null,\"Please enter person name to delete.\");\r\n\t \t}\t \t\r\n\t \telse {\r\n\t \t\tAddressBook.deleteByFirstName(FirstName);\r\n\t \t\tJOptionPane.showMessageDialog(null,FirstName+\" Record(s) deleted.\");\r\n\t \t}\t \t\r\n }", "title": "" }, { "docid": "e548d8bfed0b311ab89da1dfd164fc45", "score": "0.5780692", "text": "@Override\n\tpublic boolean deleteEmployeeInfo(String id) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d13fce691c2604017f836021b414a220", "score": "0.5764328", "text": "public void deleteContact() {\n String[] namesArray = new String[this.contactList.size()];\n String stringResponse;\n int index = 0, response;\n for (Contact contact : this.contactList) {\n namesArray[index] = (index + 1) + \". \" + (contact.getFirstName() + \" \" + contact.getLastName()).toUpperCase();\n index++;\n }\n stringResponse = (String) JOptionPane.showInputDialog(null, \"Select an option:\", \"Delete user Dropdown\", JOptionPane.PLAIN_MESSAGE, null, namesArray, this.contactList.get(0));\n response = Integer.parseInt(stringResponse.substring(0, 1));\n this.contactList.remove(response - 1);\n }", "title": "" }, { "docid": "bf8484e5b7e353122f3b0c59a7759f3d", "score": "0.5759051", "text": "@DeleteMapping(\"/admin/employee/{empId}\")\r\n\t public String removeEmployee(@PathVariable(\"empId\") int empId) \r\n\t {\r\n\t return employeeService.removeEmployee(empId); \r\n\t }", "title": "" }, { "docid": "fd8b7d3015415cc743c815026f657b0b", "score": "0.5729108", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif((memberID.getText().toString().isEmpty() == false))\r\n\t\t\t\t{\r\n\t\t\t\tint confirm = JOptionPane.showConfirmDialog(memberCreationFrame, \"Are you sure you want to remove?\", \"REMOVE\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\tSystem.out.println(\"CONFIRM Value is : \" + confirm);\r\n\t\t\t\tif(confirm==0)\r\n\t\t\t\t{\r\n\t\t\t\t\r\n \t\tDbConnection db = new DbConnection();\r\n \t\t\t\tString sqlQuery = \"DELETE from membercreation where memberID = '\" + memberID.getText().toString() + \"'\";\r\n \t\t\t\tSystem.out.println(sqlQuery);\r\n \t\t\t\ttry {\r\n \t\t\t\t\tdb.connect();\r\n \t\t\t\t\tdb.exeUpdate(sqlQuery);\r\n \t\t\t\t\tdb.close();\r\n \t\t\t\t\tJOptionPane.showMessageDialog(contentPane, \"Deleted Successfully!!!\",\r\n \t\t\t\t\t\t\t\t\"DONE\", JOptionPane.PLAIN_MESSAGE);\r\n \t\t\t\t\tresetAll();\r\n \t\t\t\t\tdisplaymembercreation();\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\tcatch (SQLException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(contentPane, \"No Data for Entered customer Number\",\r\n\t\t\t\t\t\t\t\"ERROR\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(contentPane, \"Please enter the Member ID to delete!!!\",\r\n\t\t\t\t\t\t\t\"No Value Found\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\tmemberID.requestFocus();\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "0cd1beac2fc308ee131705b0e06ca3d8", "score": "0.5717552", "text": "@FXML\r\n public void remove(){\r\n\r\n if(!checkValForRemove()){\r\n return;\r\n }\r\n\r\n RadioButton rb = (RadioButton) group.getSelectedToggle();\r\n String dept = rb.getText();\r\n LocalDate d = dateField.getValue();\r\n String name = nameField.getText();\r\n Date date = new Date(\"\"+d.getMonthValue()+\"/\"+d.getDayOfMonth()+\"/\"+d.getYear());\r\n Profile profile = new Profile(name, dept, date);\r\n\r\n Management management = new Management(profile, 0, 0);\r\n Parttime parttime = new Parttime(profile, 0);\r\n\r\n if(!company.remove(management)){\r\n if(company.remove(parttime)){\r\n messageArea.appendText(\"Employee removed.\\n\");\r\n\r\n }\r\n else {\r\n messageArea.appendText(\"Employee does not exist.\\n\");\r\n }\r\n }\r\n else {\r\n messageArea.appendText(\"Employee removed.\\n\");\r\n }\r\n resetFields();\r\n }", "title": "" }, { "docid": "276d2fb86c900b452dca7fd343981068", "score": "0.57083136", "text": "private void deleteContactByPhoneNumber() {\r\n\t\tScanner in = new Scanner(System.in);\r\n System.out.println(\"\\nDelete Contact -> Delete Contact by Phone Number\");\r\n System.out.print(\"\\nPlease enter the 10-digit phone number of the contact\\n\" +\r\n \"you would like to delete (e.g., 0123456789 or (012)-345-6789): \");\r\n try {\r\n \tString phoneNumber = in.nextLine();\r\n \tphoneNumber = Person.phoneNumberFormatter(phoneNumber);\r\n \tPerson match = phoneBook.searchByPhoneNumber(phoneNumber);\r\n \tdeleteContactHandler(match);\r\n } catch (InputMismatchException e) {\r\n \tSystem.out.println(\"\\n**********************************************************\");\r\n\t\t\tSystem.out.println(\"Please enter only parentheses, dashes, or numbers, as required.\");\r\n\t\t\tSystem.out.println(\"**********************************************************\");\r\n\t\t\tthis.deleteContactMenu();\r\n } catch (InvalidPhoneNumberException e3) {\r\n\t\t\tSystem.out.println(\"\\n**********************************************************\");\r\n\t\t\tSystem.out.println(\"Please enter a valid phone number, formatted as shown in prompt.\");\r\n\t\t\tSystem.out.println(\"**********************************************************\");\r\n\t\t\tthis.deleteContactMenu();\r\n\t\t}\r\n in.close();\r\n\t}", "title": "" }, { "docid": "ce03ccdc96dea0909b5c05ab2898f1db", "score": "0.56829196", "text": "public static boolean deleteEmployee(int ID) {\n\t\t\n\t\tboolean isSuccess = false;\n\t\ttry {\n\t\t\tDBConnection con = new DBConnection();\n\t\t\tstmt = con.getConnection().createStatement();\n\t\t\t//sql query \n\t\t\tString sql = \"delete from employee where Emp_ID='\"+ID+\"'\";\n\t\t\t\n\t\t\tint rs = stmt.executeUpdate(sql);\n\t\t\t\n\t\t\tif(rs>0) {\n\t\t\t\tisSuccess = true;\n\t\t\t}else {\n\t\t\t\tisSuccess = false;\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\treturn isSuccess;\n\t}", "title": "" }, { "docid": "ae7316c943236841769a75ab9ce58661", "score": "0.5681531", "text": "public void removeItemProcess() {\n String str;\n int num;\n System.out.println(\"What would you like to remove? (Enter 1-\" + menu.length() + \" or 0 to cancel)\");\n while (true) {\n\n str = input.next();\n try {\n num = Integer.parseInt(str);\n if (num > 0 && num <= menu.length()) {\n System.out.println(menu.getItem(num).getName() + \" has been removed.\");\n menu.removeItem(num);\n break;\n } else if (num == 0) {\n break;\n } else {\n System.out.println(\"Invalid input, Please try again.\");\n }\n } catch (Exception e) {\n System.out.println(\"Invalid input, Please try again. (Enter 1-\" + menu.length() + \" or 0 to cancel)\");\n }\n }\n }", "title": "" }, { "docid": "f9ea155de401c7910f921c313ab69108", "score": "0.5676284", "text": "@Override\n protected void removePrompt(TaskList current) {\n try {\n System.out.print(\"Enter the index of the task you wish to delete: \");\n int index = input.nextInt();\n\n current.deleteItem(index);\n } catch(InputMismatchException e) {\n System.out.println(\"Index must be an integer\");\n } catch(IndexOutOfBoundsException e) {\n System.out.println(\"Index does not exist\");\n } catch(Exception e) {\n System.out.println(e.getMessage() + \": Task was not deleted.\");\n } finally {\n input.nextLine();\n }\n }", "title": "" }, { "docid": "f831d68212676db38a051a5bad1ad917", "score": "0.56706446", "text": "public void removeStudent(Scanner input) {\n\t\tSystem.out.println(\"Please enter the ID (in form of cXXXXXX) of the student you wish to remove\");\n\t\tString id = input.nextLine();\n\t\t\n\t\t//validate the number is of the form 'cXXXXXX'\n\t\tPattern pattern = Pattern.compile(\"^c[0-9]{6}$\");\n\t\tif (!pattern.matcher(id).matches()) {\n\t\t\tSystem.out.println(\"Invalid ID. Returning to menu\");\n\t\t}\n\t\tSystem.out.println(\"\"); //print a line\n\t\t\n\t\tIterator<Student> it = this.rosterList.iterator();\n\t\t\n\t\twhile(it.hasNext()) {\n\t\t\tStudent nextStudent = it.next();\n\t\t\tif (nextStudent.getID().equals(id)) {\n\t\t\t\tit.remove();\n\t\t\t\tSystem.out.println(\"Student \" + id + \" removed!\\n\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Student Not present in list\\n\");\n\t\t\n\t}", "title": "" }, { "docid": "920f69186dbef1cb384a986adef011b5", "score": "0.5624071", "text": "private void fireEmployee(List<Employee> employees, int id) {\n if (id > 0 && id <= employeeNumber) {\n System.out.format(\"University employee with ID equal %d was fired: \", id);\n employees.removeIf(nextEmployee -> nextEmployee.getId() == id);\n } else {\n System.out.println(\"Firing of non-existent employee\");\n }\n }", "title": "" }, { "docid": "2750c68e2327155f96f6e0de78066250", "score": "0.5621687", "text": "private void removeCourse() {\n System.out.println(\"Please enter course name. Format example: 'CPSC-210'\");\n String id = input.next();\n if (findCourseByName(id) != null) {\n mySchool.removeCourse(findCourseByName(id));\n System.out.println(\"Course successfully removed.\");\n } else {\n System.out.println(\"Course not found. Try again.\");\n }\n }", "title": "" }, { "docid": "05b7f51702ed1fe7497b9a9800d0ff1e", "score": "0.5619342", "text": "@Override\n\tpublic void deleteByID(int theID) {\n\t\t\n\t\tEmployee theEmployee = entityManager.find(Employee.class, theID);\n\t\t\n\t\tentityManager.remove(theEmployee);\n\t\t\n\n\t}", "title": "" }, { "docid": "b9b14fe074607491e173d4eb468ccede", "score": "0.56177354", "text": "public void deleteEmployee(String name,String id){\n\t\ttry{\n\t\t\tst=con.createStatement();\n\t\t\tString sql=\"delete from employee where name= '\"+name+\"'and username='\"+id+\"';\";\n\t\t\tst.executeUpdate(sql);\n\t\t}catch(Exception ex){\n\t\t\tJOptionPane.showMessageDialog(null,ex);\n\t\t}\n\t\t\t\t\t\n\t}", "title": "" }, { "docid": "51ca4fe3125d50f67a0f4d17203a0b20", "score": "0.56072503", "text": "private static void deleteAnItem() {\n\t\t\tSystem.out.print(\"Enter the range to delete: \");\n\t\t\tString range = in.nextLine();\n\t\t\tSystem.out.print(\"Enter the manufacturer to delete: \");\n\t\t\tString make = in.nextLine();\n\t\t\tSystem.out.print(\"Enter the model to delete: \");\n\t\t\tString model = in.nextLine();\n\t\t\tSystem.out.print(\"Enter the price to delete: \");\n\t\t\tString price = in.nextLine();\n\t\t\tElectricCar toDelete = new ElectricCar(range, make, model, price);\n\t\t\tecc.deleteItem(toDelete);\n\n\t\t}", "title": "" }, { "docid": "d555d69a4dcca7a2422d20d20608a0e8", "score": "0.5600717", "text": "public String remove() {\r\n \tString message = \"Record not found\\n\";\r\n \tString n = name.getText();\r\n \tint d = Integer.parseInt(day.getText());\r\n int m = Integer.parseInt(month.getText());\r\n int y = Integer.parseInt(year.getText());\r\n if (n.isEmpty()) {\r\n \treturn message;\r\n }\r\n else {\r\n \tmyAthletes.removeEntry(n, d, m, y);\r\n \tmessage = \"Record removed\\n\";\r\n }\r\n \treturn message;\r\n }", "title": "" }, { "docid": "29099ac00b922e248753fec631a771c4", "score": "0.5574664", "text": "public void RemoveInput (int input_number) {\n inputs.remove(\"\"+input_number);\n this.conti=input_number-1;\n int N_inputs= this.GetNbInputs()+1;\n this.SetNbInputs((int)this.conti);\n for (int n= input_number+1; n < N_inputs; n++) {\n variable v= this.GetInput(n);\n inputs.remove(\"\"+n);\n this.AddInput(v);\n }\n }", "title": "" }, { "docid": "6081a2fbd2029226fb5251e9c85dccd8", "score": "0.55711645", "text": "public void deleteEmployee(int id){\n\t\t\temployeeDao.deleteEmployee(id);\n\t\t}", "title": "" }, { "docid": "0d2933f845f76d6dd5345a12b28f9dc3", "score": "0.556856", "text": "@Override\r\n\tpublic void delete() {\n\t\tSystem.out.println(\"Available Desserts : \"+dessertMap.toString()+\"\\nEnter the No. key of dessert to be deleted :\");\r\n\t\tint itemNo = scan.nextInt();\r\n\t\tdessertMap.remove(itemNo);\r\n\t\tSystem.out.println(\"Dessert deleted!\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2989334ce49da3ba91aace36400ea1fd", "score": "0.5551322", "text": "@DeleteMapping(value=\"/employees/{id}\")\n\t\t\t\t\t\t\t\t\t\t\tpublic void deletEmployee(@PathVariable Integer id) {\n\t\t\t\t\t\t\t\t\t\t\temployeeservice .deletEmployee(id);\n\t}", "title": "" }, { "docid": "098fc34b789c49322909bb546d60d54b", "score": "0.5550695", "text": "@Override\r\n\tpublic void deleteEmployee(Employee employee) {\n\t\t\r\n\t}", "title": "" }, { "docid": "37a44e88a1788f986b3d483c5187bfa0", "score": "0.5546058", "text": "public void deleteEmployee(Integer EmployeeID) {\n Session session = factory.openSession();\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n Employee employee\n = (Employee) session.get(Employee.class, EmployeeID);\n session.delete(employee);\n tx.commit();\n session.close();\n } catch (HibernateException e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "e14d6ddcb5a3dd9751eb2bd897bf2cbc", "score": "0.55345905", "text": "@Override\n\tpublic void delete() {\n\t\tEmployee employee= validate();\n\t\tif(employee == null) {\n\t\t\tSystem.out.println(\"id not found\");\n\t\t}\n\t\telse {\n\t\t\tcom.te.designpattern.hibernate.dao.EmployeeImplementing employeeImplementing = new com.te.designpattern.hibernate.dao.EmployeeImplementing();\n\t\t\temployeeImplementing.delete(employee);\t\n\t\t}\n\t}", "title": "" }, { "docid": "dac7d6778f29e22ab0765e3eeb66cf32", "score": "0.5532932", "text": "public void removePlayer() {\r\n\t\tSystem.out.println(\"\\n__________________________________________________________\\n*** Remove Player ***\\n\");\r\n\t\tString id;\r\n\t\t\r\n\t\t//prompts user to enter id of player to be removed\r\n\t\tSystem.out.print(String.format(\"%-25s %s\",\"Enter ID:\", \"\"));\r\n\t\tid = input.nextLine();\r\n\t\t\r\n\t\t//removes player or catches and displays an error that the player could not be found\r\n\t\ttry {\r\n\t\t\tif(gameEngine.removePlayer(gameEngine.getPlayer(id)) == false) throw new Exception();\r\n\t\t}\r\n\t\tcatch(Exception E){\r\n\t\t\tSystem.out.println(\"ERROR - Player not found\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "21f23cb29deb5b8346cce007c01e5e5d", "score": "0.55327415", "text": "public void processRemove (ActionRequest actionRequest, ActionResponse actionResponse) \n\t\t\tthrows IOException, PortletException {\n\t\t\t\n\t\t\tString primKey = ParamUtil.getString(actionRequest, \"primKey\");\n\t\t\t\n\t\t\tif (Validator.isNotNull(primKey) && Validator.isNumber(primKey)) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tContactInfoLocalServiceUtil.remove(Long.parseLong(primKey));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (PortalException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (SystemException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fcaab40fc3398ddedde0ed5ca7473aa4", "score": "0.55246526", "text": "public void deleteEmployee(ActionEvent e) {\n\t\tObservableList<Employee> selectedCells = tableView.getSelectionModel().getSelectedItems();\n\t\tif (selectedCells.size() != 0) {\n\t\t\tshowConfirmationDialog();\n\t\t}\n\t}", "title": "" }, { "docid": "54750368db900417a150c047574d87cb", "score": "0.55196023", "text": "public boolean delete_emp(int employeeID) {\n\t\tif(init()) {\n\t\t\tString sql = String.format(\"DELETE FROM emp_db WHERE emp_id = '%d'\", employeeID);\n\t\t\tString sql2 = String.format(\"DELETE FROM emp_dept WHERE emp_id = '%d'\", employeeID);\n\t\t\ttry {\n\t\t\t\tStatement create_statement = connection.createStatement();\n\t\t\t\tint rows = create_statement.executeUpdate(sql);\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tint rows2 = create_statement.executeUpdate(sql2);\n\t\t\t\tif (rows > 0) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t\tlogs.logger.info(String.format(\"Employee no : '%d' was sucessfully deleted\", employeeID));\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tlogs.logger.warning(\"Deletion operation failed.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e62959da30e1bf7481f1f4e6ff9c7ef2", "score": "0.55192477", "text": "@Override\n\tpublic int deleteEmployee(int id) {\n\t\tint i=0;\n\t\ttry {\n\t\t\tString sql =\"delete from employee where empid=?\";\n \t\tPreparedStatement pst = con.prepareStatement(sql);\n \t\tpst.setInt(1, id);\n \t\ti=pst.executeUpdate();\n\t\t}catch(SQLException e1) {\n\t\t\te1.printStackTrace();\n}\n\t\treturn i;\n\t}", "title": "" }, { "docid": "6c9d8746a6dd6f3b752b062cfc426ba2", "score": "0.5516403", "text": "@Override\r\n\tpublic int deleteEmpById(int id) {\n\t\treturn ed.deleteEmpById(id);\r\n\t}", "title": "" }, { "docid": "86a89b514e88d41503a0c98e9bd8a022", "score": "0.5510001", "text": "static void Delete(){\n\t\tSystem.out.println(\"Delete\");\r\n\t\tSystem.out.println(\"-------------------\");\r\n\t\tif(!(getList()==null)){\r\n\t\t\tif(!(getList().size()==0)){\r\n\t\t\t\tint ID=getIntFromUser(\"ID of record\");\r\n\t\t\t\tWork work = new Work();\r\n\t\t\t\tString answer=\"\";\r\n\t\t\t\tif(isIdExists(ID)){\r\n\t\t\t\t\twork = getWorkWithID(ID);\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\twork.display();\r\n\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\tanswer=getUserStr(\"***(y) for delete or any key for cancel***\");\r\n\t\t\t\t\tswitch(answer){\r\n\t\t\t\t\tcase\"Y\":\r\n\t\t\t\t\tcase\"y\":\r\n\t\t\t\t\t\tif(getList()!=null){\r\n\t\t\t\t\t\t\tmainList=getList();\r\n\t\t\t\t\t\t\tmainList.remove(getWorkWithIdIndex(ID));\r\n\t\t\t\t\t\t\twriteList(mainList);\r\n\t\t\t\t\t\t\tSystem.out.println(\"-------------------\");\r\n\t\t\t\t\t\t\tSystem.out.println(\"D_E_L_E_T_E_D\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\treturn;\t\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t}else System.out.println(\"***Records with this ID do not exists***\");\r\n\t\t\t}else System.out.println(\"***No records***\");\r\n\t\t}else System.out.println(\"***No records***\");\r\n\t}", "title": "" }, { "docid": "3bbcec996ae00769b11a614b5a1106ea", "score": "0.5505671", "text": "private void removeFromRegister() {\r\n\t\tSystem.out.println(\"Enter index: \");\r\n\t\ttry {\r\n\t\t\tint index = Integer.parseInt(readLine());\r\n\t\t\tPerson person = register.getPerson(index - 1);\r\n\t\t\tregister.removePerson(person);\r\n\t\t} catch (NumberFormatException ex) {\r\n\t\t\tSystem.err.println(\"Musis zadat len cisla.\");\r\n\t\t} catch (BadIndexException e) {\r\n\t\t\tSystem.err.println(\"Nemozem odstranit osobu: \" + e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c94dd0d1ca2f6ed1b9d098699071bea7", "score": "0.5494978", "text": "@Override\n\tpublic void delete() {\n\t\tLOGGER.info(\"Please enter the id of the item you would like to delete\");\n\t\tLong id = Long.valueOf(getInput());\n\t\tordersService.delete(id);\n\t}", "title": "" }, { "docid": "418861da49fef84a776593a8073bfb85", "score": "0.5493316", "text": "public boolean remove(Employee employee) {\r\n int employeeIndex = find(employee);\r\n if (employeeIndex == ERRNO) {\r\n return false;\r\n }\r\n int i = 0;\r\n for (i = employeeIndex; i < numEmployee - 1; i++) {\r\n emplist[i] = emplist[i + 1];\r\n }\r\n emplist[i] = null;\r\n numEmployee = numEmployee - 1;\r\n return true;\r\n }", "title": "" }, { "docid": "9a5b4242df339c106043308be570ec07", "score": "0.5493249", "text": "private static void deleteAnItem() {\n\t\tSystem.out.print(\"Enter the store to delete: \");\n\t\tString store = in.nextLine();\n\t\tSystem.out.print(\"Enter the item to delete: \");\n\t\tString item = in.nextLine();\n\n\t\tListItem toDelete = new ListItem(store, item);\n\t\tlih.deleteItem(toDelete);\n\n\t}", "title": "" }, { "docid": "449ce78ef8da010591bec8c1aaf246c7", "score": "0.54924905", "text": "public managerDeleteEmployee(final String managerName) {\r\n\t\tsetTitle(\"Delete Employee\");\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 450, 450);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBackground(Color.GRAY);\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setLayout(null);\r\n\t\tpanel.setBackground(Color.DARK_GRAY);\r\n\t\tpanel.setBounds(0, 0, 434, 70);\r\n\t\tcontentPane.add(panel);\r\n\t\t\r\n\t\tJLabel lblDeleteEmployee = new JLabel(\"DELETE EMPLOYEE\");\r\n\t\tlblDeleteEmployee.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblDeleteEmployee.setForeground(Color.WHITE);\r\n\t\tlblDeleteEmployee.setFont(new Font(\"Tahoma\", Font.BOLD, 24));\r\n\t\tlblDeleteEmployee.setBounds(0, 0, 434, 70);\r\n\t\tpanel.add(lblDeleteEmployee);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(Color.GRAY);\r\n\t\tpanel_1.setBounds(52, 155, 330, 116);\r\n\t\tcontentPane.add(panel_1);\r\n\t\tpanel_1.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblEmployeeName = new JLabel(\"Employee Email\");\r\n\t\tlblEmployeeName.setBounds(10, 0, 120, 22);\r\n\t\tpanel_1.add(lblEmployeeName);\r\n\t\tlblEmployeeName.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\ttextField.setColumns(10);\r\n\t\ttextField.setBorder(new LineBorder(Color.BLACK, 2));\r\n\t\ttextField.setBounds(10, 25, 310, 35);\r\n\t\tpanel_1.add(textField);\r\n\t\t\r\n\t\tJButton btnDeleteAccount = new JButton(\"Delete Account\");\r\n\t\tbtnDeleteAccount.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString employeeName = textField.getText().trim();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tClass.forName(mainMethodClass.JDBC_DRIVER);\r\n\t\t\t\t\tconn = DriverManager.getConnection(mainMethodClass.DB_URL, \"root\", \"\");\r\n\t\t\t\t\tpstmt = conn.prepareStatement(\"DELETE FROM manager_add_employee WHERE email_address = ?\");\r\n\t\t\t\t\tpstmt.setString(1, employeeName);\r\n\t\t\t\t\tint i = pstmt.executeUpdate();\r\n\t\t\t\t\tif(i > 0){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Successful Delete\" + employeeName + \"Employee\");\r\n\t\t\t\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tmanagerCategoriesDeleteFrame frame = new managerCategoriesDeleteFrame(managerName);\r\n\t\t\t\t\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t\t\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Username\");\r\n\t\t\t\t\t\ttextField.setText(\"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e1){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnDeleteAccount.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\tbtnDeleteAccount.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\tbtnDeleteAccount.setFocusable(false);\r\n\t\tbtnDeleteAccount.setBorder(new LineBorder(new Color(0, 0, 0), 2));\r\n\t\tbtnDeleteAccount.setBackground(Color.LIGHT_GRAY);\r\n\t\tbtnDeleteAccount.setBounds(10, 80, 150, 35);\r\n\t\tpanel_1.add(btnDeleteAccount);\r\n\t\t\r\n\t\tJButton button_1 = new JButton(\"Back\");\r\n\t\tbutton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tmanagerCategoriesDeleteFrame frame = new managerCategoriesDeleteFrame(managerName);\r\n\t\t\t\t\t\t\t\tframe.setVisible(true);\r\n\t\t\t\t\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t\tbutton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\tbutton_1.setFocusable(false);\r\n\t\tbutton_1.setBorder(new LineBorder(new Color(0, 0, 0), 2));\r\n\t\tbutton_1.setBackground(Color.LIGHT_GRAY);\r\n\t\tbutton_1.setBounds(170, 80, 150, 35);\r\n\t\tpanel_1.add(button_1);\r\n\t\t\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_2.setLayout(null);\r\n\t\tpanel_2.setBackground(Color.GRAY);\r\n\t\tpanel_2.setBounds(0, 70, 434, 25);\r\n\t\tcontentPane.add(panel_2);\r\n\t\t\r\n\t\tJLabel label = new JLabel(managerName);\r\n\t\tlabel.setHorizontalTextPosition(SwingConstants.RIGHT);\r\n\t\tlabel.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tlabel.setForeground(Color.WHITE);\r\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\r\n\t\tlabel.setBounds(0, 0, 425, 25);\r\n\t\tpanel_2.add(label);\r\n\t}", "title": "" }, { "docid": "87cadcd0bc903be7c0fc5566aec2a619", "score": "0.548601", "text": "public void setEmployeeId(Number value)\n {\n setAttributeInternal(EMPLOYEEID, value);\n }", "title": "" }, { "docid": "50d36d278b6a2978abac7311bc8f0f78", "score": "0.54815334", "text": "private static void delete() {\n\t\tSystem.out.println(\"How would you like to search?\");\n\t\tSystem.out.println(\"* 1. -- Search by name\");\n\t\tSystem.out.println(\"* 2. -- Search by race\");\n\t\tSystem.out.println(\"selection:\");\n\t\tint selection = in.nextInt();\n\t\tin.nextLine();\n\t\tList<NPC> found;\n\t\tif(selection == 1) {\n\t\t\tSystem.out.print(\"Enter the NPC name: \");\n\t\t\tString npcName = in.nextLine();\n\t\t\tfound = NH.searchByName(npcName);\n\t\t}else {\n\t\t\tSystem.out.print(\"Enter the NPC race: \");\n\t\t\tString npcRace = in.nextLine();\n\t\t\tfound = NH.searchByRace(npcRace);\n\t\t}\n\t\t\n\t\tif(!found.isEmpty()) {\n\t\t\tSystem.out.println(\"Found Results\");\n\t\t\tfor (NPC n : found) {\n\t\t\t\tSystem.out.println(n.getId() + \": \" + n.Describe());\n\t\t\t}\n\t\t\tSystem.out.print(\"ID to Delete: \");\n\t\t\tint idToDelete = in.nextInt();\n\t\t\tNPC toDelete = new NPC();\n\t\t\tfor(NPC n : found) {\n\t\t\t\tif (n.getId() == idToDelete) {\n\t\t\t\t\ttoDelete = n;\n\t\t\t\t}\n\t\t\t}\n\t\t\tNH.delete(toDelete);\n\t\t}else {\n\t\t\tSystem.out.println(\"---No Results Found---\");\n\t\t}\n\t}", "title": "" }, { "docid": "b2ffa805eee86a752fe482823715b832", "score": "0.546367", "text": "public void editEmployeeInformation(int idInput, String firstName, String lastName, int socialSecurityNumber, float monthlySalary) {\n userList.remove(findUserIndex(idInput));\n userList.add(new Employee(idInput, firstName, lastName, socialSecurityNumber, monthlySalary));\n sortUserList();\n System.out.println(\"Employee information updated.\");\n }", "title": "" }, { "docid": "fc2795cbe4088f2a74957ad6978a3686", "score": "0.5460121", "text": "public int enterAnyId() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString selected;\r\n\t\tint selectedId, requested = -1;\r\n\t\tboolean flag1 = false;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Enter the Employee's id or press Enter to return to central Menu.\");\r\n\t\t\tselected = sc.nextLine();\r\n\t\t\tif (selected.equals(\"\")) {\r\n\t\t\t\tflag1 = false;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tselectedId = Integer.parseInt(selected);\r\n\t\t\t\t\tint posInEmployees = empBinarySearch(selectedId);\r\n\t\t\t\t\tif (posInEmployees != -1) {\r\n\t\t\t\t\t\tif (!this.equals(Employee.Employees.get(posInEmployees))) {\r\n\t\t\t\t\t\t\trequested = posInEmployees;\r\n\t\t\t\t\t\t\tflag1 = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tflag1 = true;\r\n\t\t\t\t\t\t\tSystem.out.println(\"You are not allowed to do that.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tflag1 = true;\r\n\t\t\t\t\t\tSystem.out.println(\"That is not a valid Id.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (NumberFormatException b) {\r\n\t\t\t\t\tflag1 = true;\r\n\t\t\t\t\tSystem.out.println(\"Please insert an Integer.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} while (flag1);\r\n\t\treturn requested;\r\n\t}", "title": "" }, { "docid": "ddc29ff4470b5aaf8a2afe9709a28ce2", "score": "0.5457895", "text": "@Override\n \tpublic void Supprimer(int id) \n \t{\n \t\t SQL=\"DELETE FROM ELEVE WHERE NUM=?\";\n \t \n try {\n\t\t \n DAO.ps=DAO.conn.prepareStatement(SQL);\n DAO.ps.setInt(1 ,id);\n DAO.ps.execute();\n \n } catch (SQLException ex) { System.out.print(\" erreur au niveau suppimer elev \"); }\t\n \t}", "title": "" }, { "docid": "ca0a6b2816684987807cc123f6bc5cc1", "score": "0.5451143", "text": "public void deleteEmployeeByID(int id){\r\n\t\temployeeRepository.deleteById(id);\r\n\t}", "title": "" }, { "docid": "ca86ae1562bd32f4f4ebf9b8569319f2", "score": "0.544941", "text": "public Student remove ( int number ){\r\n Student stu;\r\n int size = collegeList.size();\r\n for (int i =0; i< size; i++){\r\n stu = collegeList.get(i);\r\n if ( stu.getStudentNum() == number ){\r\n Student removed = stu;\r\n collegeList.remove(i);\r\n return removed;\r\n }\r\n }\r\n System.out.println(\" No student with ID \" + number + \" exist\");\r\n return null;\r\n }", "title": "" }, { "docid": "184356220461c62c0bef31fdefb6d0f9", "score": "0.5440766", "text": "public static void removeLastEmployee() {\r\n\t\tEmployees.remove(Employees.size() - 1);\r\n\t\tadd--;\r\n\t}", "title": "" }, { "docid": "75f273d3d4a621e34ca877355c7aa358", "score": "0.5439009", "text": "@Override\r\n\tpublic int deleteEmployee(String employee,String user_account) {\n\t\tString sql = \"delete from employee where employee = ? and user_account=? \";\r\n\t\tObject[] objects = {employee,user_account};\r\n\t\treturn updataAll(sql, objects);\r\n\t}", "title": "" }, { "docid": "aa6f6e3d176524ee25f2e8ebd498ae45", "score": "0.5416185", "text": "public void setEmployeeId(Number value) {\r\n setAttributeInternal(EMPLOYEEID, value);\r\n }", "title": "" }, { "docid": "fdf8caa5a2ca3063d20643d7986f58fa", "score": "0.5414562", "text": "@DeleteMapping(\"/admin/projectemployee/{empId}\")\r\n\t public String removeEmployeeFromProject(@PathVariable(\"empId\") int empId) \r\n\t {\r\n\t return projectEmployeeService.removeEmployeeFromProject(empId); \r\n\t }", "title": "" }, { "docid": "79361b49dddf732b125276f32227364a", "score": "0.54098064", "text": "private static void deleteAMeal() {\n\t\t\tSystem.out.print(\"Enter main course to delete: \");\n\t\t\tString main = in.nextLine();\n\t\t\tSystem.out.print(\"Enter vegetable to delete: \");\n\t\t\tString vegetable = in.nextLine();\n\t\t\tSystem.out.print(\"Enter fruit to delete: \");\n\t\t\tString fruit = in.nextLine();\n\n\t\t\tListMeal toDelete =\tnew\tListMeal(main, vegetable, fruit);\n\t\t\tlmh.deleteMeal(toDelete);\n\t\t}", "title": "" }, { "docid": "b34ba1205608a024a11d3df112704136", "score": "0.53980297", "text": "public void deleteItem()\n\t\t{\n\t\t\tshow();\n\t\t\tSystem.out.println(\"Ėnter the id of item to delete:\");\n\t\t\tint id1=sc.nextInt();\n\t\t\tSystem.out.println(\"Enter the quantity of item to delete:\");\n\t\t\tint quantity1=sc.nextInt();\n\t\t\tdouble rev_quantity=purchaseItem.get(id1)-quantity1;\n\t\t\tif(rev_quantity >0)\n\t\t\t\tpurchaseItem.replace(id1, purchaseItem.get(id1)-quantity1);\n\t\t\telse if(rev_quantity==0)\n\t\t\t\tpurchaseItem.remove(id1);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Enter a valid quantity!!\");\n\t\t\t\n\t\t\titems.replace(id1,new Item(items.get(id1).Name,items.get(id1).price,items.get(id1).stock+quantity1 ));\n\t\t}", "title": "" }, { "docid": "3c9b7f60ee1a3d122d30dd73fc79f53a", "score": "0.53956145", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == b1) {\n\t\t\tString q1string = JOptionPane.showInputDialog(\"Enter an ID number\");\n\t\t\tint q1 = Integer.parseInt(q1string);\n\t\t\tString q2 = JOptionPane.showInputDialog(\"Enter a name\");\n\t\t\tID.put(q1, q2);\n\t\t} else if (e.getSource() == b2) {\n\t\t\tString q3string = JOptionPane.showInputDialog(\"Enter a message ID\");\n\t\t\tif (q3string.isEmpty()) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Please input a number\");\n\t\t\t}\n\t\t\tint q3 = Integer.parseInt(q3string);\n\t\t\tif (ID.get(q3) == null) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"That Entry does not exist.\");\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"ID: \" + q3 + \" Name: \" + ID.get(q3));\n\t\t\t}\n\t\t} else if (e.getSource() == b3) {\n\t\t\tString text = new String();\n\t\t\tfor (Integer s : ID.keySet()) {\n\t\t\t\ttext += \"ID: \" + s + \" Name: \" + ID.get(s) + \" \";\n\t\t\t}\n\t\t\tJOptionPane.showMessageDialog(null, text);\n\n\t\t} else if (e.getSource() == b4) {\n\t\t\tString q4string = JOptionPane.showInputDialog(\"Which entry would you like to delete?\");\n\t\t\tint q4 = Integer.parseInt(q4string);\n\t\t\tif (ID.get(q4) == null) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"That Entry does not exist.\");\n\t\t\t} else {\n\t\t\t\tID.remove(q4);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Entry \" + q4 + \" has been removed.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6d4c3c82d4df4873ea805196586cd180", "score": "0.53945434", "text": "public void eliminarEmprendedor(int idEmprendedor) {\n try {\n EmprendedorDAO emprendedorDao = new MySqlEmprendedorDAO();\n emprendedorDao.eliminarEmprendedor(idEmprendedor);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "d8bc3eaedb64fa2a403b808f0a87fb01", "score": "0.5389266", "text": "public void createEmployee(Integer employee_id) {\n\t\temployeeDao.delete(employee_id);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c83d35f09ea3fff22d85198b930ff524", "score": "0.5389235", "text": "@FXML //Pressed to initiate a delete for an employee\n public void deleteEmpButtonPressed(ActionEvent event) throws IOException {\n employeeDelete = true;\n\n //displays the employee id to be deleted inside the delete area\n empDeleteDisplay.getChildren().add(new TextField(empDeleteID.getText()));\n empDeleteDisplay.getChildren().add(new TextField(empDeleteName.getText()));\n }", "title": "" }, { "docid": "2f6c062b13110e28d7ea06baf1c0e24b", "score": "0.5385889", "text": "public void setEmployeeNumber(int employeeNumber)\n {\n this.employeeNumber = employeeNumber;\n }", "title": "" }, { "docid": "3715e8c47817c84a2aee226c67a3ded9", "score": "0.5384748", "text": "@Override\n public void deleteEmployeeById(Long id) {\n LOGGER.debug(\"deleteEmployeeById({})\", id);\n Optional<Employee> optionalEmployee = repository.findById(id);\n if(optionalEmployee.isPresent()) {\n repository.deleteById(id);\n } else {\n throw new IllegalArgumentException(\"There is no employee with ID \"+id);\n }\n }", "title": "" }, { "docid": "e4a77114c6f72dc54dd73a76e9d9a4ee", "score": "0.5381838", "text": "public void eliminarEmpleado() {\n\t\ttry {\n\t\t\tadminEJB.eliminarRecolector(empleado.getId());\n\t\t\templeados = adminEJB.listarEmpleados();\n\t\t\tUtil.mostrarMensaje(\"Eliminación exitosa!!!\", \"Eliminación exitosa!!!\");\n\t\t} catch (Exception e) {\n\t\t\tUtil.mostrarMensaje(e.getMessage(), e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "4f7457ea4ddf6bd8a6886bf848597dd7", "score": "0.5373918", "text": "public void removeItem() {\n System.out.println(\"\\033[31m\" + \"WARNING: This function will remove the whole item entry. Please use with caution!\");\n System.out.println(\"\\033[31m\" + \"Will return to main menu if you make any mistake inputting information!\");\n System.out.println(\"\\033[0m\" + \"Please input the ID of item.\");\n String idNumber = CONSOLE_INPUT.nextLine();\n if (!idNumber.matches(\"[A-Za-z0-9]{5}\")) {\n System.out.println(\"Invalid ID Number: not proper format. \"\n + \"ID Number must be at least 5 alphanumeric characters.\");\n System.out.println(\"Will return to main menu.\");\n return;\n }\n\n int itemIndex = hardwareStore.findItemIndex(idNumber);\n if (itemIndex == -1) {\n System.out.println(\"Item does not exist.\");\n System.out.println(\"Will return to main menu.\");\n return;\n } else {\n System.out.println(\"\\033[31m\" + \"Item found. Are you sure you want to remove the whole entry?\");\n System.out.println(\"\\033[31m\" + \"(Data cannot be recovered!)\");\n System.out.println(\"\\033[31m\" + \"Please type YES (all capitalized) to confirm deletion.\");\n String input = CONSOLE_INPUT.nextLine();\n if (input.equals(\"YES\")) {\n System.out.println(\"\\033[0m\" + \"User typed \" + input + \". Confirm: Item will be removed.\");\n hardwareStore.removeItem(itemIndex);\n System.out.println(\"\\033[0m\" + \"Item removed from inventory.\");\n } else {\n System.out.println(\"\\033[0m\" + \"User typed \" + input + \". Abort: Item will not be removed.\");\n }\n\n }\n }", "title": "" }, { "docid": "7c55487e900276a39c7360cfee9aef1e", "score": "0.5366428", "text": "public void deleteContactMenu() {\r\n Scanner in = new Scanner(System.in);\r\n System.out.println(\"\\nDelete Contact:\");\r\n System.out.println(\"Please review the menu options and enter your selection:\");\r\n System.out.println(\"Option 1: Delete contact by phone number\");\r\n System.out.println(\"Option 2: Delete contact by name\");\r\n System.out.println(\"Option 3: Return to main menu\");\r\n System.out.print(\"\\nPlease enter the option number to continue: \");\r\n try {\r\n int selection = in.nextInt();\r\n switch (selection) {\r\n case 1 -> this.deleteContactByPhoneNumber();\r\n case 2 -> this.deleteContactByNameMenu();\r\n default -> this.mainMenu();\r\n }\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"\\n**********************************************************\");\r\n System.out.println(\"Please enter a number corresponding to one of the options\");\r\n System.out.println(\"**********************************************************\");\r\n this.deleteContactMenu();\r\n } \r\n in.close();\r\n }", "title": "" } ]
54244707b08668daa6d53d4db23a5119
Get the last called operation of the mobile business object
[ { "docid": "761e20e5992e925fbfc949a3ec42a715", "score": "0.6793774", "text": "public String getLastOperation()\n {\n if (!getCvpOperation().isNull())\n {\n com.sybase.afx.json.JsonObject cvpOperation = (com.sybase.afx.json.JsonObject)(com.sybase.afx.json.JsonReader.parse(__cvpOperation.getValue()));\n return (String)cvpOperation.get(\"cvp_name\");\n }\n if (getPendingChange() == 'C')\n {\n }\n else if (getPendingChange() == 'D')\n {\n }\n else if (getPendingChange() == 'U')\n {\n }\n return null;\n }", "title": "" } ]
[ { "docid": "fecd5888df3d9ab68a2f649321a6674d", "score": "0.66084313", "text": "public Operation getLastOp() {\n\t\treturn ops.get(ops.size() - 1);\n\t}", "title": "" }, { "docid": "2cd9ab2fc931e7f1dbc2bdfd174e9857", "score": "0.64639616", "text": "public Call getCurrentCall();", "title": "" }, { "docid": "e588a16b433c36b67cd6f1c8c2571a7d", "score": "0.6386826", "text": "public CallLog getLastOutgoingCallLog();", "title": "" }, { "docid": "2915663b0e798116e6fb6317a4d1f570", "score": "0.61807406", "text": "static public Operation getLastCancelableOperation() {\n long lastScheduleTime = Long.MIN_VALUE;\n Operation op = null;\n\n synchronized (sWorkQueue) {\n // Unknown order even for a PriorityQueue\n Iterator<OperationInfo> it = sWorkQueue.iterator();\n while (it.hasNext()) {\n OperationInfo info = it.next();\n if (info.delayMillis > 0 && lastScheduleTime < info.mScheduledTimeMillis) {\n if (op == null) {\n op = new Operation();\n }\n\n op.token = info.token;\n op.op = info.op;\n op.scheduledExecutionTime = info.mScheduledTimeMillis;\n\n lastScheduleTime = info.mScheduledTimeMillis;\n }\n }\n }\n\n if (AsyncQueryService.localLOGV) {\n Log.d(TAG, \"getLastCancelableOperation -> Operation:\" + Operation.opToChar(op.op)\n + \" token:\" + op.token);\n }\n return op;\n }", "title": "" }, { "docid": "1f1b7c1df8e543e477ff0adb46889cda", "score": "0.61714244", "text": "long getLastAccessed( );", "title": "" }, { "docid": "d61298d2e422c1d69028233e8e36ee80", "score": "0.6116984", "text": "public Operation getOperation();", "title": "" }, { "docid": "6837843c36ef94214f0a0b5db67285eb", "score": "0.60734046", "text": "public OperationResultInfoBase operation() {\n return this.operation;\n }", "title": "" }, { "docid": "8d7659153b8f3a0f6db039a5d07a518b", "score": "0.6072058", "text": "public SubmitMethod getLastMethod() {\n return lastMethod_;\n }", "title": "" }, { "docid": "f775d3c3352b4cc54bdae9974341cb35", "score": "0.6014225", "text": "public T getLast(){\n\treturn _end.getCargo();\n }", "title": "" }, { "docid": "09aab9251aaad8189dc9777470d956e2", "score": "0.60133487", "text": "public Operation getOperation() {\n return this.operation;\n }", "title": "" }, { "docid": "da72bede3db4dbaa8a57a9234929e3b7", "score": "0.59994525", "text": "public Operation getOperation() {\n return operation;\n }", "title": "" }, { "docid": "cbc2d1c8eb0d162a0775f3421ac01a76", "score": "0.59776926", "text": "public long getLastCallEndTimestamp() {\n if (!mCallRecords.isEmpty()) {\n return mCallRecords.get(0).getCallEndTimestamp();\n }\n return -1;\n }", "title": "" }, { "docid": "dc4e3617f44aef4a1564a8a27868c796", "score": "0.59520835", "text": "Operation getOperation();", "title": "" }, { "docid": "2f63bce4ae001ba769b9f4a5c7c5bb99", "score": "0.5942827", "text": "public T getLast();", "title": "" }, { "docid": "2f63bce4ae001ba769b9f4a5c7c5bb99", "score": "0.5942827", "text": "public T getLast();", "title": "" }, { "docid": "08993760ceed4ea10d28c976cb8932c4", "score": "0.5902039", "text": "public Integer getLastUpdate() {\n return lastUpdate;\n }", "title": "" }, { "docid": "53d564a11c3f433fd3ee5ca6b271a4b5", "score": "0.58919185", "text": "public Call getCall() {\n\treturn call;\n }", "title": "" }, { "docid": "9bbcc154f567ce5b2882a02f675a4fb6", "score": "0.5882434", "text": "public long getCallEndTimestamp() {\n return mCallEndTimestamp;\n }", "title": "" }, { "docid": "1eb3ff38982995fef714d8465572d9b2", "score": "0.58676976", "text": "public E getLast();", "title": "" }, { "docid": "f23fda1dd25421202915404357b9948d", "score": "0.583539", "text": "public String getOperation();", "title": "" }, { "docid": "97969a05a56dd2a0ff6aa6c87baab59d", "score": "0.58347976", "text": "public Production getLastProductionFired () { return lastFiredInst.getProduction(); }", "title": "" }, { "docid": "ef09b013b1f10cf1ecdfbed163dc8f35", "score": "0.57761455", "text": "org.jetbrains.kotlin.backend.common.serialization.proto.IrOperation getOperation();", "title": "" }, { "docid": "a3e1eab69f8c35e31dc9f8aacf4bff1a", "score": "0.57558537", "text": "SdkHttpRequest getLastRequest();", "title": "" }, { "docid": "6d38b65e728cdcd976b948705ccc962d", "score": "0.57555443", "text": "@java.lang.Override\n public com.clarifai.grpc.api.Operation getOperation() {\n return operation_ == null ? com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_;\n }", "title": "" }, { "docid": "87421ce314fb144f12a92e8102ffa859", "score": "0.5749266", "text": "public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }", "title": "" }, { "docid": "0f5a043ed18f975c87adcb8b69cef4ba", "score": "0.5748544", "text": "public Application getLastModifyingApplication()\r\n\t{\r\n\t\treturn lastModifyingApplication;\r\n\t}", "title": "" }, { "docid": "91c433ecf8fbf20f7215820ec728d1d1", "score": "0.5741284", "text": "public String getLastCommand() {\n return lastCommand;\n }", "title": "" }, { "docid": "29f0bc4bd2ce3d05b8e85c5f13fb46b0", "score": "0.5740312", "text": "long getLastAccessAt();", "title": "" }, { "docid": "b469feae97a97403b4b520be1cc80e16", "score": "0.5739152", "text": "public long getLastContact() {\r\n\t\treturn lastContactTimestamp.get();\r\n\t}", "title": "" }, { "docid": "e48d15ff40549ed858055b1b6b49ab60", "score": "0.5735484", "text": "public int getLast() {\n\treturn _last;\n }", "title": "" }, { "docid": "04701e31bb22d26345a44e255973228f", "score": "0.57337683", "text": "public String getOperation() {\n return this.operation;\n }", "title": "" }, { "docid": "d69349e2c10451ea6cc5ff2dc24a6696", "score": "0.57315034", "text": "public String getOperation () {\n return operation;\n }", "title": "" }, { "docid": "d69349e2c10451ea6cc5ff2dc24a6696", "score": "0.57315034", "text": "public String getOperation () {\n return operation;\n }", "title": "" }, { "docid": "722059d17addd8a7e08ed229f982362b", "score": "0.5718127", "text": "public String getOperation() {return operation;}", "title": "" }, { "docid": "310fe4048004bb04697cf5aa20a682dc", "score": "0.57144356", "text": "public com.clarifai.grpc.api.Operation getOperation() {\n if (operationBuilder_ == null) {\n return operation_ == null ? com.clarifai.grpc.api.Operation.getDefaultInstance() : operation_;\n } else {\n return operationBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "e0a3cfc9695f1bf7d0c5aba74d7b081e", "score": "0.57055986", "text": "long getLastAccessedTime();", "title": "" }, { "docid": "770ddf286cbb45010611817152e03df7", "score": "0.5704996", "text": "String getCalled();", "title": "" }, { "docid": "cf7994b438cb22de9684059ed0efa242", "score": "0.5702517", "text": "public int getCurrentOperationId(){\n int nmr = 1;\n operationLock.lock();\n try (\n Statement s = rawDataSource.getConnection().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = s.executeQuery(\n \"SELECT OP_ID FROM APP.OPERATIONS ORDER BY OP_ID ASC\")) {\n\n if (res.last()) {\n nmr = Integer.parseInt(res.getString(\"OP_ID\")) + 1;\n }\n } catch (SQLException ex) {\n return nmr;\n }\n\n operationLock.unlock();\n return nmr;\n }", "title": "" }, { "docid": "03ec08edaa03c2b3da10ff9d03f0cfb6", "score": "0.5699588", "text": "public Date getLastRequest() {\n\t\treturn _last_request;\n\t}", "title": "" }, { "docid": "ae00efbe55507a15bc97e7b81cd6fd5a", "score": "0.5686012", "text": "public Date getLastSaved()\r\n {\r\n return (m_lastSaved);\r\n }", "title": "" }, { "docid": "127b98cf6aceef9e895cae3f4d68d531", "score": "0.56840676", "text": "public long getLastUpdateTime() {\n return this.lastUpdateTime;\n }", "title": "" }, { "docid": "0d17c1d6c0a437117060e246eae853d3", "score": "0.56775194", "text": "public long lastMaintenance() throws RemoteException;", "title": "" }, { "docid": "006d1dae9a412f6d8bf3c006bea95b1a", "score": "0.5661044", "text": "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "title": "" }, { "docid": "011580243addbe8eea281a143cc3296e", "score": "0.5655575", "text": "public String getCallTime() {\n\t\treturn this.callTime;\n\t}", "title": "" }, { "docid": "66d46abafcea2c76d64523ea54dc653b", "score": "0.56544715", "text": "public String getOperation() {\n return operation;\n }", "title": "" }, { "docid": "66d46abafcea2c76d64523ea54dc653b", "score": "0.56544715", "text": "public String getOperation() {\n return operation;\n }", "title": "" }, { "docid": "4b06beefa998063774e178951bf9f2f9", "score": "0.56544447", "text": "public O last()\r\n {\r\n if (isEmpty()) return null;\r\n return last.getObject();\r\n }", "title": "" }, { "docid": "d63896905d0aaa369666a635f5947519", "score": "0.5654185", "text": "String getOperation();", "title": "" }, { "docid": "d63896905d0aaa369666a635f5947519", "score": "0.5654185", "text": "String getOperation();", "title": "" }, { "docid": "9c38272b8e3720b163df269985e4508c", "score": "0.5641533", "text": "public IOperationHistory getOperationHistory() {\n\t\treturn OperationHistoryFactory.getOperationHistory();\r\n\t}", "title": "" }, { "docid": "b1272d2307b7d433c54176199371b95a", "score": "0.56405795", "text": "public EAdOperation getOperation() {\r\n\t\treturn operation;\r\n\t}", "title": "" }, { "docid": "eea4ae2630cda11f72bc868f41bc7734", "score": "0.56331295", "text": "public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }", "title": "" }, { "docid": "acc1540d91bacb86387cb6eb67c27305", "score": "0.56270605", "text": "public long getLastUpdate() {\n return this.lastUpdate;\n }", "title": "" }, { "docid": "07ecae53ff35b46b7ceeb73d1b04a8f6", "score": "0.5623913", "text": "public OperationType getOperation() {\r\n return operation;\r\n }", "title": "" }, { "docid": "07ecae53ff35b46b7ceeb73d1b04a8f6", "score": "0.5623913", "text": "public OperationType getOperation() {\r\n return operation;\r\n }", "title": "" }, { "docid": "5c15209cd9ec4bad52512f420ebd5956", "score": "0.5614428", "text": "public org.xmlsoap.schemas.wsdl.http.OperationType getOperation()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.xmlsoap.schemas.wsdl.http.OperationType target = null;\n target = (org.xmlsoap.schemas.wsdl.http.OperationType)get_store().find_element_user(OPERATION$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "55b21fe1e5852544e9735c7c484475e8", "score": "0.56101614", "text": "private void queryLastOutgoingCall() {\n mLastNumberDialed = EMPTY_NUMBER;\n CallLogAsync.GetLastOutgoingCallArgs lastCallArgs =\n new CallLogAsync.GetLastOutgoingCallArgs(\n getActivity(),\n new CallLogAsync.OnLastOutgoingCallComplete() {\n public void lastOutgoingCall(String number) {\n // TODO: Filter out emergency numbers if\n // the carrier does not want redial for\n // these.\n mLastNumberDialed = number;\n updateDialAndDeleteButtonEnabledState();\n }\n });\n mCallLog.getLastOutgoingCall(lastCallArgs);\n }", "title": "" }, { "docid": "273d34b37494a1c81d28c6b7e50caf1f", "score": "0.5605417", "text": "public int getLast() {\n\t\treturn last;\n\t}", "title": "" }, { "docid": "7f30ed09d363c08877afef0a50142821", "score": "0.5581794", "text": "cn.infinivision.dataforce.busybee.pb.meta.Execution getExecution();", "title": "" }, { "docid": "799e25767b501f2a026a827e1a4e4c54", "score": "0.55811435", "text": "public Object last()throws ListExeption;", "title": "" }, { "docid": "ae3d6ccce6df4259cedc66c03cc8c1f0", "score": "0.5575974", "text": "public String getOperation() {\r\n\t\treturn operation;\r\n\t}", "title": "" }, { "docid": "4f06b142b7a5f618a327cba029e48b03", "score": "0.5568004", "text": "public Taxi getLastInserted() {\n\t\t\n\t\tprepareStatement();\n\t\t\n\t\tquery = \"SELECT * FROM TAXI ORDER BY update DESC LIMIT 1\";\n\t\t\n\t\tlogger.debug(\"Taxi ->getLastInserted()\");\n\t\tlogger.debug(query);\n\t\t\n\t\texecuteStatement();\t\n\t\t\n\t\tassignResult();\n\t\t\n\t\treturn taxi;\n\t}", "title": "" }, { "docid": "d3918462b4949c6230f50b7ec19c6b62", "score": "0.556476", "text": "final Commands getLastCommand() {\n\t\t// retornamos el ultimo comando enviado\n\t\treturn this.lastCommand;\n\t}", "title": "" }, { "docid": "b71f916f60b62566c3a8f507fc88f403", "score": "0.5564106", "text": "long getLastUpdate(long inId);", "title": "" }, { "docid": "a457785f5b126bbbaa9d92c83c963f21", "score": "0.5560936", "text": "GlobalEntity getOpGlobCall();", "title": "" }, { "docid": "c18c28c864e42356e0f5863cadfab942", "score": "0.5557407", "text": "public Date getOperationDate() {\r\n return operationDate;\r\n }", "title": "" }, { "docid": "8b3214d5e086b924617fea7547027644", "score": "0.5555543", "text": "public E pollLast();", "title": "" }, { "docid": "96ce9d12ce3ff35c6cd5359f427f6397", "score": "0.55526686", "text": "public int getLastTransferState();", "title": "" }, { "docid": "6f516ce5f5de1e6dbd82c52a834ecc1a", "score": "0.5551354", "text": "public java.util.Date getLastExecuteTime()\n {\n return null;\n }", "title": "" }, { "docid": "be2aa1c25d898bdedcbbc153bcb45d42", "score": "0.5550581", "text": "@JsonSerialize(using=AfJson.CalendarSerializer.class)\n public Long getLastScan()\n {\n return _lastScan;\n }", "title": "" }, { "docid": "cfcdaf4a13b84a0c75cf5fa359fb3f60", "score": "0.55465704", "text": "public String getOperation() {\n\t\treturn operation;\n\t}", "title": "" }, { "docid": "a09c2df4819dbc99724ad402022cdc95", "score": "0.5536856", "text": "public long getLastModify() {\r\n\t\treturn lastModify;\r\n\t}", "title": "" }, { "docid": "2b83bd2149d58cee48c23b0a635005ba", "score": "0.5528884", "text": "public String getOperation() {\n\t\t\treturn operation;\n\t\t}", "title": "" }, { "docid": "5dac426e66058b725441f4a1734519ba", "score": "0.5528769", "text": "public String getLastupdateby() {\n return lastupdateby;\n }", "title": "" }, { "docid": "5f783aae03c449a986e74cb444c228c5", "score": "0.55200744", "text": "com.learning.learning.grpc.ManagerOperationRequest.Operations getOperation();", "title": "" }, { "docid": "b950f4aef04e0bf0074c09d85a5ca6fe", "score": "0.55159384", "text": "public DrawingCommand getLastCommand() {\r\n\t\tint i = this.commands.size() - 1;\r\n\t\tif (i >= 0) {\r\n\t\t\treturn this.commands.get(this.commands.size() - 1);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "12740ea7a16a17bf18c156a687e83986", "score": "0.5514978", "text": "public long getLastUpdateTime() {\n return lastUpdateTime;\n }", "title": "" }, { "docid": "1acb15bb1ff5a635aba5d3ed61c413c6", "score": "0.551204", "text": "@Override\n public God getLastGod() {\n return godPower.getLastGod();\n }", "title": "" }, { "docid": "56761ef6ec485a5ebca6223853dbbdce", "score": "0.55111337", "text": "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "title": "" }, { "docid": "56761ef6ec485a5ebca6223853dbbdce", "score": "0.55111337", "text": "public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}", "title": "" }, { "docid": "9c6c5be3592bf8ce0dd04f9e76e23fb8", "score": "0.55022055", "text": "long getLastPersistenceTime();", "title": "" }, { "docid": "fa7da21ea4b472f9e7ad3c61650f3c3e", "score": "0.549149", "text": "public List<Info> getLastInfo() {\n\t\treturn dao.getLastInfo();\n\t}", "title": "" }, { "docid": "e8231c4494afc0fa50493a2d3c45708f", "score": "0.5489477", "text": "public long getLastPlayed ( ) {\n\t\treturn extract ( handle -> handle.getLastPlayed ( ) );\n\t}", "title": "" }, { "docid": "50c0a1c95971991ad51432ea457db8f2", "score": "0.54890716", "text": "public Date getLastTime() {\n return lastTime;\n }", "title": "" }, { "docid": "c0bebea115c26175a183db79611920e5", "score": "0.54872686", "text": "public Date getOpTime() {\n return opTime;\n }", "title": "" }, { "docid": "41048d9180b42cff4f86cffb512a0ff0", "score": "0.5485835", "text": "public static int getLastCommandOrigin() {\n\n return m_iLastCommandOrigin;\n\n }", "title": "" }, { "docid": "d3878e02c44813e28365e3ea8971b9ad", "score": "0.54656196", "text": "public String getLastLogged()\n {\n return lastLogged;\n }", "title": "" }, { "docid": "f96d6ddcfc00546cfc978dd436a3d1ec", "score": "0.54552865", "text": "@java.lang.Override\n public long getLastAccessAt() {\n return lastAccessAt_;\n }", "title": "" }, { "docid": "43608a89a13f31a2098629462a165a46", "score": "0.5449953", "text": "public long getLastAccessTime();", "title": "" }, { "docid": "333f76201ed4b21bc736ff9499a7188c", "score": "0.54406947", "text": "@java.lang.Override\n public long getLastAccessAt() {\n return lastAccessAt_;\n }", "title": "" }, { "docid": "f9461bb778ae6a2bcc7ab4ab419e4055", "score": "0.5439336", "text": "public String getOperTime() {\r\n\t\treturn operTime;\r\n\t}", "title": "" }, { "docid": "6b7d55b3f7cd5948c7a049cad7f0ae41", "score": "0.5436605", "text": "public int getLastLogin() {\n\t \t return lastLogin; \n\t}", "title": "" }, { "docid": "1e478a20755243205ea2e206ea5fbaaa", "score": "0.54353964", "text": "public Item getLast();", "title": "" }, { "docid": "ec39d49c949f4d7fb4aa22161beadcc3", "score": "0.5432501", "text": "public State getLastState() {\n\t\treturn endState;\r\n\t}", "title": "" }, { "docid": "d2c8d566ba5aa611188eccb9624cb595", "score": "0.543216", "text": "OffsetDateTime lastActionDateTime();", "title": "" }, { "docid": "7ca094303cbfeb4f8b021d2cb6b32e3d", "score": "0.54217494", "text": "public String getLastChange() {\n return lastChange;\n }", "title": "" }, { "docid": "6255cd5280160f2aea7ab7e7bf96895c", "score": "0.5417949", "text": "public java.lang.String getOperationName(){\n return localOperationName;\n }", "title": "" }, { "docid": "a57f97b1839feff0b1e94d7f9616e3ae", "score": "0.5412683", "text": "public String getLastUpdateBy() {\r\n\t\treturn lastUpdateBy;\r\n\t}", "title": "" }, { "docid": "3fbf246c4e30e06d02692c3b30fd434e", "score": "0.5411329", "text": "public Calendar GetAccurateLastStartTime (int opID)\r\n {\r\n Calendar retCal = null;\r\n IDBAdapter db = null;\r\n ResultSet rs = null;\r\n try {\r\n String sql = \"select CREATED_DTTM from NODE_OPERATION_LOG where OPERATION_ID = '\" +opID+ \"' order by CREATED_DTTM desc\";\r\n db = this.GetNodeDB();\r\n rs = db.GetResultSet(sql);\r\n if (rs != null && rs.first()) {\r\n Timestamp createdDate = rs.getTimestamp(\"CREATED_DTTM\");\r\n if (createdDate != null) {\r\n Node.Utils.LoggingUtils.Log(\"NodeOperationLog>>>GetAccurateLastStartTime>>>LastStartTime is: \" + new Date(createdDate.getTime()), Level.DEBUG\r\n , Phrase.TaskLoggerName);\r\n\r\n //SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n retCal = new GregorianCalendar();\r\n retCal.setTime(new Date(createdDate.getTime()));\r\n }\r\n }\r\n } catch (Exception e) {\r\n this.LogException(\"Could Not Get Last Start Time: \" + e.toString());\r\n } finally {\r\n try {\r\n if (rs != null)\r\n rs.close();\r\n if (db != null)\r\n db.Close();\r\n } catch (Exception e) {\r\n this.LogException(e.toString());\r\n }\r\n }\r\n return retCal;\r\n }", "title": "" }, { "docid": "800c4c5fc04278a2d872c065f5b48d96", "score": "0.5411219", "text": "public STATE getState() {\n return this.lastState;\n }", "title": "" } ]
6abb376de7a54976c579d2827b2c5bdf
Processes a mouse button pressed event.
[ { "docid": "7d254454c82c4c5bebc3b3deb2dd59ac", "score": "0.0", "text": "public void pressMouse(float x, float y, int clickCount, \n boolean shiftDown, boolean altDown) {\n // Store the last coordinates of a mouse press\n this.xLastMousePress = x;\n this.yLastMousePress = y;\n this.xLastMouseMove = x;\n this.yLastMouseMove = y;\n this.shiftDownLastMousePress = shiftDown; \n this.altDownLastMousePress = altDown; \n this.state.pressMouse(x, y, clickCount, shiftDown, altDown);\n }", "title": "" } ]
[ { "docid": "344b727314fd10404e0f1b8cf85eb22a", "score": "0.7594505", "text": "protected abstract void onMousePressed(int mouseX, int mouseY, int mouseButton);", "title": "" }, { "docid": "b36147e39e17453ca579655d67090640", "score": "0.75533515", "text": "public void mousePressed(MouseEvent event) {}", "title": "" }, { "docid": "f0f45292e75c0b70fdb3628005e5ec28", "score": "0.7528046", "text": "@Override\n public void mousePressed(MouseEvent arg0) {\n setMouse(arg0.getButton(), true);\n }", "title": "" }, { "docid": "8781119b48d3032352a7fa2e4e8905f4", "score": "0.75205237", "text": "@Override\n public void mousePressed(MouseEvent e) {\n main.onMouseListen(true, e.getButton());\n }", "title": "" }, { "docid": "175809fdfa8840605b932093d7f6df6a", "score": "0.7488054", "text": "void mousePressed(MouseEvent e);", "title": "" }, { "docid": "d70a9e520eda60ea3780d4068f824129", "score": "0.745954", "text": "@Override\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\tbuttons[arg0.getButton()] = true;\n\t}", "title": "" }, { "docid": "29202603fc5a60aca7617cf15e38dfd5", "score": "0.7450627", "text": "public void mousePressed(MouseEvent evt) {\n\t}", "title": "" }, { "docid": "75d08b7743098d8c8b2ed4847994735f", "score": "0.7420437", "text": "public void mousePressed(MouseEvent e);", "title": "" }, { "docid": "75d08b7743098d8c8b2ed4847994735f", "score": "0.7420437", "text": "public void mousePressed(MouseEvent e);", "title": "" }, { "docid": "1886ae4ea0599230271b0cdb1f62f0f8", "score": "0.7404058", "text": "public void mousePressed(MouseEvent e) {}", "title": "" }, { "docid": "e9ed3f658703a428b829b06e14a68680", "score": "0.7395434", "text": "public void mousePressed(MouseEvent e) {\n\t\tlastMouseEvent = e;\r\n\t\tpressMouse(e.getButton());\r\n\t}", "title": "" }, { "docid": "7717566e47f422aa1bd68f719d682bec", "score": "0.7354963", "text": "public void mousePressed() {\n for(PButton button : buttons){\n button.mousePressed();\n }\n }", "title": "" }, { "docid": "cac472c92a839d553de41f9ef64f79ae", "score": "0.73334575", "text": "public void mousePressed( MouseEvent event )\r\n {\r\n whackAMoleMousePressed( event );\r\n }", "title": "" }, { "docid": "8215dadf4809443e100a1c196cb28e62", "score": "0.72705007", "text": "private void processMouseButtonEvent(NativeMouseEvent nativeEvent) {\n\t\t\tNativeMouseListener[] listeners = eventListeners.getListeners(NativeMouseListener.class);\n\t\t\tSystem.out.println(\"Processing Mouse Button Event\");\n\n\t\t\tfor (int i = 0; i < listeners.length; i++) {\n\t\t\t\tswitch (nativeEvent.getID()) {\n\t\t\t\t\tcase NativeMouseEvent.NATIVE_MOUSE_CLICKED:\n\t\t\t\t\t\tSystem.out.println(\"NATIVE_MOUSE_CLICKED\");\n\t\t\t\t\t\tlisteners[i].nativeMouseClicked(nativeEvent);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase NativeMouseEvent.NATIVE_MOUSE_PRESSED:\n\t\t\t\t\t\tSystem.out.println(\"NATIVE_MOUSE_PRESSED\");\n\t\t\t\t\t\tlisteners[i].nativeMousePressed(nativeEvent);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase NativeMouseEvent.NATIVE_MOUSE_RELEASED:\n\t\t\t\t\t\tSystem.out.println(\"NATIVE_MOUSE_RELEASED\");\n\t\t\t\t\t\tlisteners[i].nativeMouseReleased(nativeEvent);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5ac15851f0b63580ab0e2bd20af968f0", "score": "0.72110164", "text": "public void mousePressed(MouseEvent e) {\n\t\tsimulator.mouseAction((float) e.getX(), (float) e.getY(), e.getButton());\n\t}", "title": "" }, { "docid": "66130528fce7eca41de3f285f1de0865", "score": "0.7189877", "text": "public void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "66130528fce7eca41de3f285f1de0865", "score": "0.7189877", "text": "public void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "66130528fce7eca41de3f285f1de0865", "score": "0.7189877", "text": "public void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "66130528fce7eca41de3f285f1de0865", "score": "0.7189877", "text": "public void mousePressed(MouseEvent e) {\n\t\t\n\t}", "title": "" }, { "docid": "ceb21a007c690f808cccc603dc862c33", "score": "0.718239", "text": "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\tint x, y;\r\n\t\tx = arg0.getX() + xOffset;\r\n\t\ty = arg0.getY() + yOffset;\r\n\t\t\r\n\t\t// Check if it is a left click or right click.\r\n\t\tif (arg0.getButton() == 1)\r\n\t\t{\r\n\t\t\tfor ( IMouseListener l : mouseListeners )\r\n\t\t\t{\r\n\t\t\t\tl.leftPressed(x,y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// button code 2 is for middle mouse button?\r\n\t\t\r\n\t\tif (arg0.getButton() == 3 )\r\n\t\t{\r\n\t\t\tfor ( IMouseListener l : mouseListeners )\r\n\t\t\t{\r\n\t\t\t\tl.rightPressed(x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a0a225bdfa51d5233ab8d1d4c8a57d51", "score": "0.7179793", "text": "public void mousePressed(MouseEvent e) {\n\t\tButton1 = (JButton) e.getSource();\n\t}", "title": "" }, { "docid": "a314db8754c940088fa10274224906a1", "score": "0.7177344", "text": "public void mousePressed(MouseEvent e) {\r\n\r\n }", "title": "" }, { "docid": "8489c7291b1cff083797ca02fcf5115e", "score": "0.7175293", "text": "public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "8489c7291b1cff083797ca02fcf5115e", "score": "0.7175293", "text": "public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "8489c7291b1cff083797ca02fcf5115e", "score": "0.7175293", "text": "public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "06a886782d005346d8beb4355166e197", "score": "0.71571416", "text": "public void mousePressed(MouseEvent e) {\n\n\t}", "title": "" }, { "docid": "cb0f21b50acfe6328f14df85f1aedc6f", "score": "0.7156548", "text": "@Override\n public void onMouseButtonEvent(MouseButtonEvent evt)\n {\n }", "title": "" }, { "docid": "bdbaf741c099cd72be53d389d6bd1532", "score": "0.71559846", "text": "public void mousePressed(MouseEvent e) \n\t{\n\n\t}", "title": "" }, { "docid": "12129c72c1f0e2ff679942252fea5ad5", "score": "0.7129811", "text": "public void mousePressed(MouseEvent e){\n\t\t\n\t}", "title": "" }, { "docid": "732132c15af5e3e8d14a659c649e9da5", "score": "0.7109516", "text": "public void handleButtonEvents(GButton button, GEvent event) \r\n\t{\n\t}", "title": "" }, { "docid": "031ff4e5f053ce0a349909b1546af556", "score": "0.71093184", "text": "public void mousePressed(MouseEvent e) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "3004afa9796700f3b4c416cac5907d32", "score": "0.7102089", "text": "public void mousePressed(MouseEvent e) {\n\t\t\r\n\t}", "title": "" }, { "docid": "39f18bf4793a89e56515aacc10b6d63b", "score": "0.7100305", "text": "public void mouseEvent(int button, int action) {\n if (action == GLFW_PRESS) mousePressed = true;\n if (action == GLFW_RELEASE) mousePressed = false;\n if (paused) menu.mouseEvent(button);\n else if (!hud.mouseEvent(button)) level.mouseEvent(button);\n }", "title": "" }, { "docid": "34980240500c4856f5796b313eb5c872", "score": "0.70996654", "text": "public void mousePressed(GWindowEvent e) {\r\n // remember where the mouse went down\r\n this.mouseDownX = e.getX();\r\n this.mouseDownY = e.getY();\r\n }", "title": "" }, { "docid": "c748e494a765993ac0c3617ff40df3ab", "score": "0.7099349", "text": "public final void buttonPress(final MouseEvent e) {\n buttonPresses.add(e);\n }", "title": "" }, { "docid": "f7c8a7dc279846ac72b74eb48cd785b1", "score": "0.709873", "text": "public void mousePressed (MouseEvent e) {\n }", "title": "" }, { "docid": "0f144c60736126bd8bef8f4ef0c5760e", "score": "0.70867294", "text": "public void mousePressed(MouseEvent e) {\n \t\n }", "title": "" }, { "docid": "595da71b5282c8a144e89300020ffd26", "score": "0.7084451", "text": "public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "51a4c7357e73da25f088f3ece9a433a7", "score": "0.7083655", "text": "@Override\n public void mousePress(double x, double y, int button, int mods) {\n\n }", "title": "" }, { "docid": "eb9f66fc9d97dbbb4eb20057607ce6e4", "score": "0.7044598", "text": "public void mousePressed(MouseEvent e){\n \tPointS clickedPt = new PointS(e.getX(), e.getY());\r\n \t\r\n \t//determine what obj was being clicked\r\n \tmouseObj = null;\r\n \tmouseObj = findClickedObj(clickedPt);\r\n \t\r\n \t//do stuff depending on if we clicked something\r\n \t//might not need this part\r\n \tif(mouseObj == null){ \r\n \t\t//clicked on nothing\r\n \t} else { \r\n \t\t//clicked on something; nothing here for now (testing purposes)\r\n \t\tmouseObj.mouseClicked(e);\r\n \t}\r\n \t\r\n \t//check if right or left clicked\r\n\t switch (e.getButton()) {\r\n\t \tcase 1: \tthis.leftClick(e, mouseObj); //left-button click \r\n\t \t\t\t\tbreak;\r\n\t \tcase 2:\t\tthis.middleClick(e, mouseObj); //right-button click\r\n\t \t\t\t\tbreak;\r\n\t \tcase 3: \tthis.rightClick(e, mouseObj); //middle-button click\r\n\t \t\t\t\tbreak;\r\n\t }\r\n\t \r\n }", "title": "" }, { "docid": "6b58a5f930ecfb9549ac80d286bff41e", "score": "0.70418054", "text": "@Override\r\n\tpublic void mousePressed(MouseEvent event) {\r\n\t}", "title": "" }, { "docid": "341498d246b3ac001df2c83b30347703", "score": "0.70339036", "text": "public void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f6bf38a048871b7f8c264e6a57e677fb", "score": "0.702569", "text": "public void mousePressed(MouseEvent e) {\n \r\n }", "title": "" }, { "docid": "5442b7504f24c9c118b0383622e1c8af", "score": "0.7001859", "text": "public void mouseClicked(int mouseX, int mouseY, int buttonId) {\n\t\t\n\t}", "title": "" }, { "docid": "8358cb3138eb5fd69f3f323281d35527", "score": "0.6996904", "text": "public void mousePressed(MouseEvent e) \n {\n // Not implemented\n }", "title": "" }, { "docid": "fe0608cd3604cb229256823a9fee9c22", "score": "0.69916", "text": "public void mousePressed(MouseEvent e) {\n\r\n\t}", "title": "" }, { "docid": "0c90b2b5f4ec0c04ee5afe7f420910ef", "score": "0.6989039", "text": "public void mousePressed(MouseEvent me) {\t\r\n\t}", "title": "" }, { "docid": "28cac780af89d9ef12d6d727cee868b1", "score": "0.6987644", "text": "public void mousePressed(MouseEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "28cac780af89d9ef12d6d727cee868b1", "score": "0.6987644", "text": "public void mousePressed(MouseEvent arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "c727e493f394987393e1ee8e03cd323b", "score": "0.6980772", "text": "public void mousePressed( MouseEvent arg0 ) {\n\r\n\t}", "title": "" }, { "docid": "503c2494f2a255e8f819fed131a06c1f", "score": "0.69696116", "text": "@Override\r\n\tpublic void mousePressed(MouseEvent me) {\r\n\t\tprocess(me.getX(), me.getY());\r\n\t}", "title": "" }, { "docid": "7b22fe2668f8080f94534dba801588bd", "score": "0.6943923", "text": "public void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "af70e4a34dffac31ff2c09c5376cd8ef", "score": "0.69311345", "text": "@Override\n public void handle(MouseEvent mouseEvent) {\n deltaX = bolinha.getLayoutX() - mouseEvent.getSceneX();\n deltaY = bolinha.getLayoutY() - mouseEvent.getSceneY();\n is_pressed = true;\n }", "title": "" }, { "docid": "e69eb599b08467dd53d8706244e03ae9", "score": "0.6928832", "text": "@Override\n\tpublic void mousePressed(MouseEvent event) {\n\t}", "title": "" }, { "docid": "e01a639593786145b450cc599bf3441d", "score": "0.69220847", "text": "protected abstract void handleMouseClick(int row, int col, int numButton);", "title": "" }, { "docid": "6bc7e8e61a6adb592865a609536eda20", "score": "0.69115764", "text": "public void mousePressed(MouseEvent e)\n\t{\n\t\tx = e.getX();\n\t\ty = e.getY();\n\t\t\n\t\t\n\t\t/*I had brackets here for actions, but moved them to mouse pressed and released for clairity and bugs*/\n\t}", "title": "" }, { "docid": "6af34560d81584304796bb1e5a83220b", "score": "0.6907695", "text": "public void handleMouseInput(int buttonCode)\n\t{\n\t\tswitch(buttonCode)\n\t\t{\n\t\tcase MouseEvent.BUTTON1:\n\t\t\tif(alive)\n\t\t\t{\n\t\t\t\tshoot(mouseX + Globals.camera.bounds.getX(), mouseY + Globals.camera.bounds.getY());\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "5835291da1df274566d8b16949fd9043", "score": "0.6896274", "text": "@Override\r\n public void mousePressed(MouseEvent arg0) {\n }", "title": "" }, { "docid": "943585a80e86fb0c2a9d1988b3309be5", "score": "0.6887405", "text": "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "b21d10cf01d766e2545577f5ca2f374c", "score": "0.6864853", "text": "@Override\n public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "b21d10cf01d766e2545577f5ca2f374c", "score": "0.6864853", "text": "@Override\n public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "b21d10cf01d766e2545577f5ca2f374c", "score": "0.6864853", "text": "@Override\n public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "b21d10cf01d766e2545577f5ca2f374c", "score": "0.6864853", "text": "@Override\n public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "4e50566cfb323455b11811a9ab35f2a0", "score": "0.6862627", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t}", "title": "" }, { "docid": "9ee0bc2c5507284c4ac30eaa4e67608a", "score": "0.6856727", "text": "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}", "title": "" }, { "docid": "ba001aceeeec6545161e443103c6867a", "score": "0.68547803", "text": "@Override\n public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "ba001aceeeec6545161e443103c6867a", "score": "0.68547803", "text": "@Override\n public void mousePressed(MouseEvent e) {\n }", "title": "" }, { "docid": "6b633ce881550a27282050fe5ceca7f0", "score": "0.6846984", "text": "public void mousePressed(MouseEvent e) {\n\r\n }", "title": "" }, { "docid": "3e7444c82f02b40973dff38507ebc769", "score": "0.6846745", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}", "title": "" }, { "docid": "3e7444c82f02b40973dff38507ebc769", "score": "0.6846745", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}", "title": "" }, { "docid": "02973f1f0da9d89735412b4d7550e244", "score": "0.68362004", "text": "@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "02973f1f0da9d89735412b4d7550e244", "score": "0.68362004", "text": "@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "1abe7d36809b858c455f2ef9f5d36f58", "score": "0.6828849", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent e)\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "45d62b20abd5d2ac6a33fd26e53d65f3", "score": "0.68276036", "text": "public void mousePressed(MouseEvent e)\n {\n int mouseX = e.getX();\n int mouseY = e.getY();\n if(e.getButton() == MouseEvent.BUTTON3)\n {\n BFrame.setPaused(true);\n doPop(e);\n }\n }", "title": "" }, { "docid": "fc0a1fdc97542e19a96846a7bd228749", "score": "0.6826585", "text": "public void mousePressed(MouseEvent e) {\n\t\tif (e.getButton() == MouseEvent.BUTTON1) {\n\t\t\tbeam.fired(true);\n\t\t\tlaserTimer.start();\n\t\t}\n\n\t}", "title": "" }, { "docid": "afa2dadb44721fc89ab665484c1f5f74", "score": "0.6823022", "text": "public void handleMouseClick();", "title": "" }, { "docid": "6bfa9a46ea39e4bfc22454db8027d218", "score": "0.68206537", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t}", "title": "" }, { "docid": "6bfa9a46ea39e4bfc22454db8027d218", "score": "0.68206537", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t}", "title": "" }, { "docid": "6bfa9a46ea39e4bfc22454db8027d218", "score": "0.68206537", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t}", "title": "" }, { "docid": "028e2b9fc2416641b455fffeb4f8cadf", "score": "0.68205214", "text": "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "028e2b9fc2416641b455fffeb4f8cadf", "score": "0.68205214", "text": "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "028e2b9fc2416641b455fffeb4f8cadf", "score": "0.68205214", "text": "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "028e2b9fc2416641b455fffeb4f8cadf", "score": "0.68205214", "text": "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "028e2b9fc2416641b455fffeb4f8cadf", "score": "0.68205214", "text": "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "63a9b51e9ce13ab158f5e7165cc0c1e2", "score": "0.6816316", "text": "@Override\n public void mousePressed() {\n buttons.forEach(Button::checkClick);\n checkGameOver();\n }", "title": "" }, { "docid": "ef1c9472f3e4b5c513e1c410c44a0668", "score": "0.6812942", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t}", "title": "" }, { "docid": "43d20c44f75942bcca3e5a289679fbd7", "score": "0.68090403", "text": "@Override\r\n public void mousePressed(MouseEvent e) {\r\n \r\n }", "title": "" }, { "docid": "8f831b73368f454d754e43fcb7a4da38", "score": "0.6808914", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "f902a405ac88d7275817fb129ade6784", "score": "0.68083286", "text": "@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t\t}", "title": "" }, { "docid": "f902a405ac88d7275817fb129ade6784", "score": "0.68083286", "text": "@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t\t}", "title": "" }, { "docid": "8fbbf4a7dfa01bcf4ce6df77e06fd422", "score": "0.68073213", "text": "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "title": "" }, { "docid": "0752cbe23493eab01766aea3e80d4745", "score": "0.6805785", "text": "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t}", "title": "" }, { "docid": "a748694b29fd29b6d7a5896d6738dbbf", "score": "0.6801606", "text": "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a748694b29fd29b6d7a5896d6738dbbf", "score": "0.6801606", "text": "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "d7d71fed77be78f465acad12224ae515", "score": "0.6801047", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "d7d71fed77be78f465acad12224ae515", "score": "0.6801047", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "d7d71fed77be78f465acad12224ae515", "score": "0.6801047", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "d7d71fed77be78f465acad12224ae515", "score": "0.6801047", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "d7d71fed77be78f465acad12224ae515", "score": "0.6801047", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "d7d71fed77be78f465acad12224ae515", "score": "0.6801047", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "title": "" }, { "docid": "d7d71fed77be78f465acad12224ae515", "score": "0.6801047", "text": "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "title": "" } ]
cf5b45eb0d1b03bb942e8dacdbdeb357
error checking and 2^x checking removed for simplicity.
[ { "docid": "0a9efd35273911a3f206cc8f4753570b", "score": "0.0", "text": "private static long nextLong(Random rng, long n) {\n long bits, val;\n do {\n bits = (rng.nextLong() << 1) >>> 1;\n val = bits % n;\n } while (bits-val+(n-1) < 0L);\n return val;\n }", "title": "" } ]
[ { "docid": "0ab33ae684e4773e4371e2c59073a3d6", "score": "0.6142129", "text": "long problem2() {\n long x = bisection(0, Long.MAX_VALUE / 10000); // ok for problem2\n // Don't really understand why the end values has to be different. Is it something with the rounding,\n // as we are not using floating numbers??\n validate(x);\n return x;\n }", "title": "" }, { "docid": "55a8d18c8598e3c075dca124487f7c79", "score": "0.61044526", "text": "@Test\n\tpublic void checkMultiple() {\n\t\tassertEquals(65536.0, mathieEnv.getExpression(\"2^4^2\")\n\t\t\t\t\t\t\t\t\t\t.getValue(), 0.0);\n\t}", "title": "" }, { "docid": "801970eccd33e0ce63ea7979b19849f6", "score": "0.5892022", "text": "private void do_scalar_exp8_1(){\n\n\t\tboolean bool=this.doCommon();\n\t\t\n\t}", "title": "" }, { "docid": "e49f7e83143f8fc0e416e9d7da246912", "score": "0.5888334", "text": "private void do_scalar_exp9_1(){\n\t\tboolean bool=this.doCommon();\n\t}", "title": "" }, { "docid": "0caa1482e09bc6dea92fad8dce762fbe", "score": "0.5843369", "text": "private void do_scalar_exp7_2(){\n\n\t\tboolean bool=this.doCommon();\n\t}", "title": "" }, { "docid": "4c58d65024bdd239dbad55856855836d", "score": "0.5836271", "text": "@Test\n public void test22() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0);\n HarmonicOscillator harmonicOscillator0 = new HarmonicOscillator((double) 510, 1230.052044, 0.0);\n AllowedSolution allowedSolution0 = AllowedSolution.ANY_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(510, (UnivariateRealFunction) harmonicOscillator0, (-639.653910433), 1230.052044, allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (510) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }", "title": "" }, { "docid": "e62f24bd9f1f95e289c08e8c4443829c", "score": "0.5801643", "text": "@Test\r\n\tvoid factorialEx() {\r\n\t\ttry {\r\n\t\t\tS55.factorialEx(-2);\r\n\t\t\tfail(\"shouldn't get to this point\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tString expected = \"value should be positive\";\r\n\t\t\tassertThat(e.getMessage(), is(expected));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5b384c55894eff189bc85d548421dc78", "score": "0.5790178", "text": "public void testBrokenExpression01() {\n \t\t// will not fit into an int, needs L suffix\n \t\tparseAndCheckError(\"0xCAFEBABE\", SpelMessages.NOT_AN_INTEGER);\n \t\tevaluate(\"0xCAFEBABEL\", 0xCAFEBABEL, Long.class);\n \t}", "title": "" }, { "docid": "0086f7950ff0f5647b5e9412c674aee5", "score": "0.57719374", "text": "public abstract void EX() throws HaltException, IrregularStringOfBitsException, IntegerOverflowException, TwosComplementSumException, IrregularWriteOperationException, IrregularWriteOperationException, DivisionByZeroException, NotAlignException;", "title": "" }, { "docid": "9d8f0d6a7131b90d8ca706ffbf032458", "score": "0.5747571", "text": "@Test\n public void test14() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver((-4079.543295238262), (-4079.543295238262));\n Logit logit0 = new Logit(0.5, (double) 16);\n regulaFalsiSolver0.setup(16, logit0, 510.787222, 0.0, 0.5);\n // Undeclared exception!\n try { \n regulaFalsiSolver0.doSolve();\n } catch(IllegalArgumentException e) {\n //\n // 510.787 out of [0.5, 16] range\n //\n assertThrownBy(\"org.apache.commons.math.analysis.function.Logit\", e);\n }\n }", "title": "" }, { "docid": "6b9500b9de86a0c86ef3dbbb1ccba3ef", "score": "0.57285136", "text": "private final int zzbfh() throws java.io.IOException {\n /*\n r5 = this;\n int r0 = r5.pos\n int r1 = r5.limit\n if (r1 == r0) goto L_0x006b\n byte[] r2 = r5.buffer\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0011\n r5.pos = r3\n return r0\n L_0x0011:\n int r1 = r1 - r3\n r4 = 9\n if (r1 < r4) goto L_0x006b\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0022\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0068\n L_0x0022:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x002f\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002d:\n r1 = r3\n goto L_0x0068\n L_0x002f:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003d\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0068\n L_0x003d:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002d\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0068\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002d\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0068\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002d\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 < 0) goto L_0x006b\n L_0x0068:\n r5.pos = r1\n return r0\n L_0x006b:\n long r0 = r5.zzbfe()\n int r1 = (int) r0\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzejc.zzbfh():int\");\n }", "title": "" }, { "docid": "e61fb9529f70d556e18514c78b8f1fbc", "score": "0.57166386", "text": "int getBigMagikarpCaught();", "title": "" }, { "docid": "850133a90666bef108e1599dc9d69f4b", "score": "0.57031", "text": "private void do_scalar_exp4_2(){\n\t\tboolean bool=this.doCommon();\n\t}", "title": "" }, { "docid": "a06bb00348f76c05128c82de2f296297", "score": "0.5693661", "text": "@Test\n public void test27() throws Throwable {\n double double0 = 5036.56;\n Complex complex0 = new Complex(5036.56, 5036.56);\n Object object0 = new Object();\n Complex complex1 = complex0.exp();\n boolean boolean0 = complex0.equals(object0);\n int int0 = 2146839120;\n Complex complex2 = complex1.sqrt1z();\n String string0 = complex1.toString();\n List<Complex> list0 = complex1.nthRoot(2146839120);\n // Undeclared exception!\n try { \n complex0.nthRoot(2146839120);\n } catch(TooManyResourcesException e) {\n //\n // Loop has been executed more times than the allowed 10000\n //\n assertThrownBy(\"org.evosuite.runtime.LoopCounter\", e);\n }\n }", "title": "" }, { "docid": "3716bda85510b9a4850b344640f56303", "score": "0.56761885", "text": "private static void checkXYSign(int x, int y) {\n if (x < 0) {\n throw new IllegalArgumentException(\"x must be >= 0\");\n }\n if (y < 0) {\n throw new IllegalArgumentException(\"y must be >= 0\");\n }\n }", "title": "" }, { "docid": "f7ef765ceb0f7d511adb98ddd03f3c0c", "score": "0.56732005", "text": "private void checkSymbol(int symbol) {\n\t\tif (symbol < 0 || symbol >= numSymbols)\n\t\t\tthrow new IllegalArgumentException(\"Symbol out of range\");\n\t}", "title": "" }, { "docid": "2b520afd0f75ee0f6af6e196b5d686c6", "score": "0.56345165", "text": "private static int error(boolean leftIsOk, boolean rightIsOk) throws ExpressionException {\n \t\tthrow new ExpressionException(\"can't compare complex object types as simple value\");\n \t}", "title": "" }, { "docid": "d8d4407e0aaee6981f63d1bc7ca4be4d", "score": "0.56338114", "text": "private boolean binaryOperandIssues() {\n\t\tsetUnit1();\n\t\tsetUnit2();\n\t\tcheck();\n\t\tlabel_Result.setText(\"Result\");\n\t\tlabel_Result.setTextFill(Color.BLACK);\t\t\t\t\t// Assume no errors\n\t\tString errorMessage1 = perform.getOperand1ErrorMessage();\t// Fetch the error messages, if\n\t\tString errorMessage2 = perform.getOperand2ErrorMessage(); // any, from the two operands\n\t\tif (errorMessage1.length() > 0) {\t\t\t\t\t\t// Check the first. If not empty\n\t\t\t//label_errOperand1.setText(errorMessage1);\t\t\t// there's an error, so display it.\n\t\t\tif (errorMessage2.length() > 0) {\t\t\t\t\t// Do the same with the 2nd operand\n\t\t\t//\tlabel_errOperand2.setText(errorMessage2);\n\t\t\t\treturn true;\t\t\t\t\t\t\t\t\t// Return true if both have errors\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn true;\t\t\t\t\t\t\t\t\t// Return true if only the first\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t// has an error\n\t\t}\n\t\telse if (errorMessage2.length() > 0) {\t\t\t\t\t// No error with the first, so check\n\t\t\t//label_errOperand2.setText(errorMessage2);\t\t\t// the second operand the same way\n\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t// Return true if only the 2nd has\n\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t// an error.\n\t\t\n\t\t// If the code reaches here, neither the first nor the second has an error condition. The\n\t\t// following code check to see if the operands are defined.\n\t\tif (!perform.getOperand1Defined()) {\t\t\t\t\t// Is first operand defined? If not,\n\t\t\tlabel_errOperand1.setText(\"No value found\");\t\t// it is an issue for this operator\n\t\t\tif (!perform.getOperand2Defined()) {\t\t\t\t// Check the second operand. If it\n\t\t\t\tlabel_errOperand2.setText(\"No value found\");\t// is not defined, two messages \n\t\t\t\treturn true;\t\t\t\t\t\t\t\t\t// should be displayed. Signal there\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t// are issues by returning true.\n\t\t\treturn true;\n\t\t} else if (!perform.getOperand2Defined()) {\t\t\t\t// If the first is defined, check the\n\t\t\tlabel_errOperand2.setText(\"No value found\");\t\t// second. Both operands must be\n\t\t\treturn true;\t\t\t\t\t\t\t\t\t\t// defined. Signal there are issues\n\t\t} else if (perform.getUnit1() == \"-1\") {\n\t\t\tlabel_Unit1_err.setText(\"Units not selected\");\n\t\t\tif (perform.getUnit2() == \"-1\") {\n\t\t\t\tlabel_Unit2_err.setText(\"Units not selected\");}\n\t\t\treturn true;\n\t\t}else if (perform.getUnit2() == \"-1\") {\n\t\t\tlabel_Unit2_err.setText(\"Units not selected\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "711b6b8722d1840aa1a99d249ebb4f0b", "score": "0.56301343", "text": "@Test\n public void test05() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver();\n Log log0 = new Log();\n AllowedSolution allowedSolution0 = AllowedSolution.ANY_SIDE;\n // Undeclared exception!\n try { \n pegasusSolver0.solve((-1169), (UnivariateRealFunction) log0, (double) (-1169), (-325.658572), allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (-1,169) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }", "title": "" }, { "docid": "7c3c6e0c44ac15fd1509d19243b1ed8a", "score": "0.55976766", "text": "private void checkRep() {\n\t\tassert this.radius > 0;\n\t}", "title": "" }, { "docid": "83ce6cb9f93ce99e5e3850a61d60a2ce", "score": "0.5594492", "text": "@Test\n public void test08() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver();\n Cosh cosh0 = new Cosh();\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve((-144), (UnivariateRealFunction) cosh0, 410.599948112, (double) (-144), 493.79, allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (-144) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }", "title": "" }, { "docid": "e334bcaf65f19d39742464d5787686aa", "score": "0.55827266", "text": "private void xCheckForm() {\n for (int i = 0; i < exp.length()-1; i++) {\n if (constants.MSOPERATORS.contains(String.valueOf(exp.charAt(i)))) {\n if (check(constants.XAFTSOPS, i+1)) continue;\n else malformed(i+1);\n } else if (exp.charAt(i) == '!') {\n if (check(constants.AFTFACT, i+1) || exp.charAt(i+1) == '\\n') continue;\n else malformed(i+1);\n } else if (exp.charAt(i) == '(') {\n if (check(constants.XCNUMBERS, i+1) || exp.charAt(i+1) == '(' || exp.charAt(i+1) == '-'\n || check(constants.TRIG, i+1)) continue;\n else malformed(i+1);\n } else if (exp.charAt(i) == ')') {\n if (check(constants.OPERATORS, i+1) || exp.charAt(i+1) == '\\n' || exp.charAt(i+1) == ')') continue;\n else malformed(i+1);\n } else if (check(constants.CNUMBERS, i)) {\n if (check(constants.AFTERNUM, i+1)) continue;\n else malformed(i+1);\n } else if (exp.charAt(i) == '-') {\n if (check(constants.XAFTMINUS, i+1)) {\n if (exp.charAt(i+1) == '-' && exp.charAt(i+2) == '-') malformed(i+1);\n else continue;\n } else malformed(i+1);\n } else if (exp.charAt(i) == 'x') {\n if (check(constants.AFTX, i+1)) continue;\n else malformed(i+1);\n } else if (check(constants.TRIG, i)) {\n if (check(constants.XAFTTRIG, i+1)) continue;\n else malformed(i+1);\n }\n if (!check(constants.XACCEPTED, i)) malformed(i+1);\n }\n if (exp.charAt(exp.length()-1) != ')' && !check(constants.XCNUMBERS, exp.length()-1)\n && exp.charAt(exp.length()-1) != '!') malformed(exp.length());\n }", "title": "" }, { "docid": "bda6f3a35aff1beeeffac0fdd22bfd9d", "score": "0.5582719", "text": "private static int checkForError(int result)\r\n {\r\n if (exceptionsEnabled && result == \r\n cusparseStatus.JCUSPARSE_STATUS_INTERNAL_ERROR)\r\n {\r\n throw new CudaException(cusparseStatus.stringFor(result));\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "5644b51faf777a5917852f1e3f0fbb0d", "score": "0.55445254", "text": "int checkSize(int x) {\n\t\t//if (x == 2 || x == 4 || x == 8 || x == 16 || x == 32 || x == 64 || x == 128 || x == 256 || x == 512 || x == 1024 || x == 2048)\n\t\t\treturn 1;\n\t\t//else\n\t\t//\treturn 0;\n\t}", "title": "" }, { "docid": "d3ec311cd357eeeba1e7e18915463868", "score": "0.5510118", "text": "@Test(expected = Exception.class)\n\tpublic void testIntegerUnderflowForResult() throws Exception{\n\t\tString[] input = {\"1\", \"1\", \"2\", \"-2147483651\"};\n\t\tint result = horner.solve(input);\n\t\t/*\n\t\t * Exception thrown is not the expected exception\n\t\t */\n\t}", "title": "" }, { "docid": "c31e2060ef7816ae27103db324d8e1c1", "score": "0.5494154", "text": "@Test\n\tpublic void checkNested() {\n\t\tassertEquals(256.0, mathieEnv.getExpression(\"(2^4)^2\")\n\t\t\t\t\t\t\t\t\t.getValue(), 0.0);\n\t}", "title": "" }, { "docid": "ab85004386b85ea7347c143c636a5caf", "score": "0.5490483", "text": "@Test\n public void test07() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, 0.0);\n AllowedSolution allowedSolution0 = AllowedSolution.ABOVE_SIDE;\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve(2324, (UnivariateRealFunction) null, (-1445.8), 0.5000000000042687, allowedSolution0);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "title": "" }, { "docid": "607f46e8313992415b15507301dbc715", "score": "0.547623", "text": "@Test\r\n public final void testFactorial2() {\r\n\r\n assertEquals(-1 , MyUtils.factorial(-5));\r\n \r\n\r\n }", "title": "" }, { "docid": "0c7bb74ad5fcc53c98cb3af49d1136ab", "score": "0.5467464", "text": "@Test\n public void test07() throws Throwable {\n Complex complex0 = Complex.valueOf(12.0);\n Complex complex1 = complex0.asin();\n Complex complex2 = complex0.sqrt();\n Complex complex3 = complex2.divide(complex1);\n Complex complex4 = complex2.conjugate();\n Complex complex5 = Complex.valueOf(12.0, (-3840.1603655));\n Complex complex6 = complex2.exp();\n Complex complex7 = complex0.multiply(0);\n Complex complex8 = complex2.multiply(12.0);\n Complex complex9 = complex0.multiply(0);\n Complex complex10 = (Complex)complex0.readResolve();\n Complex complex11 = complex5.negate();\n Complex complex12 = complex0.divide(1647.78707);\n double double0 = complex5.getImaginary();\n Complex complex13 = complex0.sinh();\n Complex complex14 = new Complex((-3840.1603655), (-1.0));\n Complex complex15 = complex1.sin();\n boolean boolean0 = complex7.equals(complex7);\n // Undeclared exception!\n try { \n complex14.nthRoot(5039);\n } catch(TooManyResourcesException e) {\n //\n // Loop has been executed more times than the allowed 10000\n //\n assertThrownBy(\"org.evosuite.runtime.LoopCounter\", e);\n }\n }", "title": "" }, { "docid": "c305797c40ee1e91e031bc17c12a8d6a", "score": "0.5458449", "text": "double getError();", "title": "" }, { "docid": "34460276a96825f27e6fc0d4d82d8ce3", "score": "0.54473805", "text": "private void dummyProofing ()\n\t{\n\t\t//reset error checkers to false so error messages aren't displayed until an error comes up\n\t\temptyTextFields=false;\n\t\tstringToNumErrorYear=false;\n\t\tinvalidYear=false;\n\t\tduplicate=false;\n\t\tsuccessful=false;\n\n\t\t//check playlist related errors\n\t\tif (printPlaylists==true)\n\t\t{\n\t\t\t//displays error message if any of the text fields are not filled in\n\t\t\tif (nameField.getText().equals(\"\"))\n\t\t\t\temptyTextFields=true;\n\t\t}\n\t\t//check song related errors\n\t\telse if (printSongs==true)\n\t\t{\n\t\t\tint year=0;\n\n\t\t\t//displays error message if any of the text fields are not filled in\n\t\t\tif (nameField.getText().equals(\"\")||artistField.getText().equals(\"\")||albumNameField.getText().equals(\"\")\n\t\t\t\t\t||yearField.getText().equals(\"\")||genreField.getText().equals(\"\"))\n\t\t\t\temptyTextFields=true;\n\n\t\t\t//converts year entry into a int, display error message if not possible\n\t\t\ttry\n\t\t\t{\n\t\t\t\tyear = Integer.parseInt(yearField.getText());\n\t\t\t}\n\t\t\tcatch (NumberFormatException e)\n\t\t\t{\n\t\t\t\tstringToNumErrorYear=true;\n\t\t\t\tyearField.setText(\"\");\n\t\t\t}\n\n\t\t\t//displays error message if year was converted properly, but are invalid values \n\t\t\tif (year<=0 || year>=10000)\n\t\t\t{\n\t\t\t\tinvalidYear=true;\n\t\t\t\tyearField.setText(\"\");\n\t\t\t}\n\t\t}\n\n\t\trepaint();\n\t}", "title": "" }, { "docid": "326a2b70acbd0226525ec926d4d6f008", "score": "0.5442053", "text": "@Test\n public void testFactorial_valid() throws Exception {\n assertEquals(24, TIMathUtils.factorial(4), TestUtils.DEFAULT_TOLERANCE);\n assertEquals(479001600, TIMathUtils.factorial(12), TestUtils.DEFAULT_TOLERANCE);\n assertEquals(52.342777, TIMathUtils.factorial(4.5), TestUtils.DEFAULT_TOLERANCE);\n }", "title": "" }, { "docid": "cb9c9881a5d88f88c2a422764a75c5ec", "score": "0.54368055", "text": "@Test(timeout = 4000)\n public void test22() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n jSTerm0.makeConstant();\n // Undeclared exception!\n try { \n jSTerm0.standardizerTerm();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "title": "" }, { "docid": "312997ecbf7456b20761b96e40abb764", "score": "0.54287386", "text": "@Test\n void testInvalidInverseNormalisation2D() {\n testInvalidInverseNormalisationND(2);\n }", "title": "" }, { "docid": "a4695cb878d2ce974adfd339f7579c38", "score": "0.5409589", "text": "private static int checkResult(int result)\r\n {\r\n if (exceptionsEnabled && result != \r\n cusparseStatus.CUSPARSE_STATUS_SUCCESS)\r\n {\r\n throw new CudaException(cusparseStatus.stringFor(result));\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "5f3f9b7e68a437ef4236d034fa6b7dd4", "score": "0.5407593", "text": "@Test\n public void test40() throws Throwable {\n Complex complex0 = new Complex(2.0, (-3237.0));\n Complex complex1 = complex0.asin();\n Complex complex2 = complex0.asin();\n Complex complex3 = complex1.negate();\n Complex complex4 = complex0.divide(complex1);\n try { \n complex0.pow((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math3.util.MathUtils\", e);\n }\n }", "title": "" }, { "docid": "c29ee9014eacf5b4c611b435753c8611", "score": "0.5397215", "text": "@Test(expected = Exception.class)\n\tpublic void testIntegerOverflowForResult() throws Exception{\n\t\tString[] input = {\"1\", \"1\", \"2\", \"2147483646\"};\n\t\tint result = horner.solve(input); \n\t\t\n\t}", "title": "" }, { "docid": "e7035d0fb7ca5f6b331f20ff7154ba5f", "score": "0.5392954", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n JSPredicateForm jSPredicateForm0 = new JSPredicateForm();\n jSPredicateForm0.toStr();\n JSJshopVars.exclamation = (-1854);\n // Undeclared exception!\n try { \n jSPredicateForm0.clonePF();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "title": "" }, { "docid": "927b6941658b34653ce42eac676ca187", "score": "0.53896", "text": "@Test\n public void test13() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver();\n // Undeclared exception!\n try { \n pegasusSolver0.doSolve();\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (0) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }", "title": "" }, { "docid": "9907f74d4710e32d2b562c6f183c9da9", "score": "0.5387157", "text": "public static void main(String[] args) {\n int n1 = 0x40000000;//0b0100 0000 0000 0000 0000 0000 0000 0000;\n int n2 = n1+n1;\n // n1 = 0x40000000 (1073741824)\n // n1*2 = 0x80000000 (-2147483648) OVERFLOW\n System.out.printf(\"n1 = 0x%x (%d) and n1*2 = 0x%x (%d) \\n\", n1,n1, n2,n2);\n\n //OVERFLOW by division of int.MIN / -1\n int n3 = 0x80000000;//(-2147483648 = -2^32)\n int minusOne = 0xffffffff; //-1\n // -2147483648/-1 = 0x80000000 (-2147483648 = 2^32) OVERFLOW\n System.out.printf(\"n3 = 0x%x (%d) and %d/-1 = 0x%x (%d) \\n\", n3,n3,n3, n3/minusOne, n3/minusOne);\n\n //Widening positive nos. no probs\n // 0x1E = 0x001E = 30\n System.out.printf((byte)0x1E == 0x0000001E? \"0x1E == 0x0000001E\\n\": \"0x1E <> 0x0000001E\\n\");\n\n //-3=0xFD, to widen -ve nos. fill left bits with 1 not 0's\n System.out.printf((byte)0xfd == 0xfffffffd? \"0xfd == 0xfffffffd\\n\": \"0xfd == 0xfffffffd\\n\");\n\n\n // Narrowing:\n /* if excess bits and new sign bits are all zero:\n 0000 0000 0001 1011 = 0001 1011 = 27 - No problem\n\n if excess bits and bew sign bits are all zero:\n 1111 1111 1111 1101 = 1111 1101 = -3 - No problem\n\n if excess bits plus the new sign bit contain 1's and 0's:\n 0000 0001 1111 1111 = 511 - Truncation */\n\n short n4 = 511;\n byte n5 = (byte) 511;\n //2 Byte 511 (0x1ff) after truncating to one byte is -1 (0xff)\n System.out.printf(\"2 Byte %d (0x%x) after truncating to one byte is %d (0x%x)\\n\", n4,n4, n5, n5);\n /* In RAM (sign extended) In register (4 or 8 byte but let's assume 2 byte)\n byte b1 = 30 //0x1E ----------------------> 0x00000001E\n byte b2 = -3 //0xFD ----------------------> 0xFFFFFFFFD\n -----------\n b1+b2 = 27 //1B <------------------- 0x(carry1)00000001B*/\n\n /* Shifting\n Multiply by 2^n\n = Add n 0's and left shift <<\n Integer divide by 2^n (Positive)\n = Remove last n digits and right shift >> padding with 0\n Integer divide by 2^n (Positive)\n = Remove last n digits and right shift >> padding with 1\n = Answer is truncated towards infinity, not towards zero\n x/8 => x >> 3\n */\n\n int x = -64 >> 3;\n System.out.println(\"-64/8 == -64>>3 \"+ x);//implicit shifting with padding 1\n // Java doesn't have unsigned types but has some static methods in wrapper classes to support unsigned arithmetic\n // http://www.java2s.com/Tutorials/Java/Java_Data_Type/0160__Java_Unsigned_Data_Type.htm\n\n\n\n\n //short = 16 bits or 2 bytes\n //[-2^15, 2^15 - 1]\n // Let's see what's the maximum a 2 byte can store\n // First guess: (all bits set to one) = 65535\n // Binary 1111 1111 1111 1111\n // Hexadecimal f f f f\n // However, that would be true if we used unsigned values only\n //\n //two's complement 1000 0000 0000 0001\n System.out.println(Short.MAX_VALUE == 0x7fff ?\n \"Short.MAX_VALUE == 0x7fff = \" + 0x7fff : \"shouldnt be the case\");\n System.out.println(Short.MIN_VALUE == (short)0x8000 ?\n \"Short.MIN_VALUE == 0x8000 = \" + 0xffff8000 : \"shouldnt be the case\");\n System.out.println((short)-1 == (short)0xffff ?\n \"-1 == 0xffff = \" + (short)0xffff : \"shouldnt be the case\");\n // Floating Point numbers\n float a = 1.2e+10f;\n\n // Effect of widening\n // 0x7ffff is 2 byte -> 0x00007fff is 4 byte int\n // +ve no. filling with 0's don't change value (remains 32767)\n\n // 0x8000 is 2 byte -> 0x00008000 is 4 byte int\n // -ve no. filling with 0's make it positive (changes value to 32768)\n // correct way for widening -ve no is by filling with 1's\n // i.e. 0x8000 == 0xffff8000 == 32768\n\n //Note if the MSB is 0x8 onwards it is a negative number\n\n //Int = 32 bits or 4 bytes\n // [-2^31, 2^31 - 1]\n\n //Long = 64 bits or 8 bytes\n // [-2^63, 2^63 - 1]\n\n }", "title": "" }, { "docid": "ccf9fb8e0a6108cf1defeae32b896fc1", "score": "0.5386708", "text": "@Test\n public void test15() throws Throwable {\n Tan tan0 = new Tan();\n PegasusSolver pegasusSolver0 = new PegasusSolver();\n pegasusSolver0.setup(177, tan0, (-2052.444275020015), 1164.8894279281, (-2797.69));\n // Undeclared exception!\n try { \n pegasusSolver0.doSolve();\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [-2,052.444, 1,164.889], values: [-1.505, -0.747]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "title": "" }, { "docid": "2a25f768458dfb04dd42e501a649b34f", "score": "0.5382871", "text": "@Test\r\n\tvoid testAllZerosException() {\r\n\t\tfloat normActual[] = new float[3];\r\n\t\tboolean value = false;\r\n\t\tString normInput1[][] = new String[][] { { \"0\", \"0\", \"0\" }, { \"0\", \"0\", \"0\" }, { \"0\", \"0\", \"0\" } };\r\n\t\ttry {\r\n\t\t\tnormActual = Normalise.calculate_normalised_scores(normInput1);\r\n\t\t} catch (AllZerosException e) {\r\n\t\t\tvalue = true;\r\n\t\t} catch (NotInRangeException e) {\r\n\t\t}\r\n\t\tAssert.assertEquals(true, value);\r\n\t}", "title": "" }, { "docid": "1e69f9c865bbb9d41a5f30ac1fb248b9", "score": "0.5381149", "text": "@Test\n public void testPOW() {\n\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, HUNDREDTH, NINE);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, THOUSANDTH, SEVEN);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, TENTH, EIGHT);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, ONE, SIX);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, HALF_PI, FIVE);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, TWO, FOUR);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, E, THREE);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, PI, TWO);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, SQRT_PI, ONE);\n\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, SQRT_TWO_PI, SQRT_TWO_PI);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, SQRT_TWO_PI, ZERO);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, THOUSANDTH, SQRT_TWO_PI);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, THOUSANDTH, ZERO);\n\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, SQRT_TWO_PI, -SQRT_TWO_PI);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, SQRT_TWO_PI, -ZERO);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, THOUSANDTH, -SQRT_TWO_PI);\n this.assertBinary(BigMath.POW, ComplexMath.POW, PrimitiveMath.POW, QuaternionMath.POW, RationalMath.POW, THOUSANDTH, -ZERO);\n\n }", "title": "" }, { "docid": "6e1c91cf5ee67aaa18c54373fe021490", "score": "0.53797716", "text": "@Test\n public void test26() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver();\n Tan tan0 = new Tan();\n AllowedSolution allowedSolution0 = AllowedSolution.ABOVE_SIDE;\n double double0 = regulaFalsiSolver0.solve(292, (UnivariateRealFunction) tan0, 1.9868161777724352E-8, 21.991148575128552, allowedSolution0);\n }", "title": "" }, { "docid": "1b9e3c93cf612aff2fb481b38ff65206", "score": "0.53696036", "text": "@Test\n void testInvalidInverseNormalisation4D() {\n testInvalidInverseNormalisationND(4);\n }", "title": "" }, { "docid": "203ae9aef6bcec0d56b8e253b569749a", "score": "0.5369028", "text": "@Test\n\tpublic void test7() {\n\t\tSudokuVerifier sudoku = new SudokuVerifier();\n\t\tassertEquals(-2,sudoku.verify(\"812753649843682175675491283154237896369845721287169534521974368438526917796318452\"));\n\t\t\n }", "title": "" }, { "docid": "338eb22c5bbb453466ce1c068c981c71", "score": "0.536806", "text": "private static int checkSquare(int i) {\n\t\tif (Math.pow(Math.sqrt(i), 2) == i)\n\t\t\treturn 1;\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "98861c0ce821658801f945c2e1d04973", "score": "0.5366128", "text": "public static void main(String args[]) {\n\t\t\t\tUtility ut= new Utility();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Enter a number upto which we need 2 sqaure\");\n\t\t\t\tint n=ut.getVal();\n\t\t\t\tif(n>0 && n<=31)\n\t\t\t\tut.powerOf2(n);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"invalid input\");\n\t\t\t}", "title": "" }, { "docid": "b9dfb5b52e6ac88b2eec4eccc996e642", "score": "0.53637207", "text": "public static void main( String [ ] args )\n {\n long x = 25000;\n long y = 30000;\n long message = 37373737;\n\n long p, q, n, nPrime, e, d;\n\n for( p = x; !Numerical.isPrime( p ); p++ )\n ;\n System.out.println( \"p: \" + p );\n for( q = y + 2; !Numerical.isPrime( q ); q++ )\n ;\n System.out.println( \"q: \" + q );\n\n n = p * q;\n System.out.println( \"n: \" + n );\n\n nPrime = ( p - 1 ) * ( q - 1 );\n System.out.println( \"nPrime: \" + nPrime );\n\n for( e = nPrime / 10; Numerical.gcd( e, nPrime ) != 1; e++ )\n ;\n System.out.println( \"e: \" + e );\n\n d = Numerical.inverse( e, nPrime );\n System.out.println( \"d: \" + d );\n\n\t System.out.println( \"Verify inverse: \" + ( e * d % ( nPrime ) ) );\n\n\t System.out.println( \"message: \" + message );\n long code = Numerical.power( message, e, n ); \n long decode = Numerical.power( code, d, n );\n\n System.out.println( \"Code: \" + code );\n System.out.println( \"Decode: \" + decode );\n if( message != decode )\n System.out.println( \"OOPS: \" );\n else\n\t System.out.println( \"Success!!!!\" );\n }", "title": "" }, { "docid": "2edeae078cc08aaef41a1a12eef32639", "score": "0.53534436", "text": "@Test\n public void test07() throws Throwable {\n AllowedSolution allowedSolution0 = AllowedSolution.RIGHT_SIDE;\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(0.0, (double) 20, 1.0);\n Cbrt cbrt0 = new Cbrt();\n // Undeclared exception!\n try { \n regulaFalsiSolver0.solve((-833), (UnivariateRealFunction) cbrt0, 0.0, 0.0, (double) 20, allowedSolution0);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (-833) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }", "title": "" }, { "docid": "382888ddfe2f8322d9ba40197f7afa24", "score": "0.5352595", "text": "private double error(List<Double> px,List<Double> py,List<Double> pz, double x0, double y0, double z0, double r) {\n double s=0;\n for(int i=0;i<px.size();i++) {\n double d=(px.get(i)-x0)*(px.get(i)-x0)+(py.get(i)-y0)*(py.get(i)-y0)+(pz.get(i)-z0)*(pz.get(i)-z0)-r*r;\n s+=d*d;\n }\n return s;\n }", "title": "" }, { "docid": "810c8c98bd8cc5cb70c9f9554d25e80e", "score": "0.5348903", "text": "int getBadBits();", "title": "" }, { "docid": "a405f2a7cd1f1dd553d7fd1345f0f242", "score": "0.53437436", "text": "@Test\n\tpublic void test6() {\n\t\tSudokuVerifier sudoku = new SudokuVerifier();\n\t\tassertEquals(-4,sudoku.verify(\"182753649943682175675491283154237896369845721287169534521974368438526917796318452\"));\n\t\t\n }", "title": "" }, { "docid": "17a7b9eabf0a8c57552ff136b8ea390f", "score": "0.5342897", "text": "@Test\n public void test12() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver(1.0, 2273.0, 1.0);\n Sigmoid sigmoid0 = new Sigmoid(2273.0, (-29.354853204548327));\n UnivariateRealFunction univariateRealFunction0 = sigmoid0.derivative();\n // Undeclared exception!\n try { \n pegasusSolver0.solve(541, univariateRealFunction0, 0.0, (double) 541, 626.935013735201);\n } catch(IllegalArgumentException e) {\n //\n // function values at endpoints do not have different signs, endpoints: [0, 541], values: [-575.589, -0]\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "title": "" }, { "docid": "9791cfeeb3bf1f1cb661e24d6dbc83aa", "score": "0.53361857", "text": "private BigInteger SquareRootComputation(BigInteger y, BigInteger p){\n\t\tBigInteger pminus1;\n\t\tint l=0;\n\t\tBigInteger n;\n\t\tBigInteger z;\n\t\tBigInteger r;\n\t\tBigInteger y1;\n\t\tBigInteger ysqrt;\n\t\tint exponent=0;\n\t\t//BigInteger b;\n\t\tpminus1=p.subtract(BigInteger.ONE);\n\t\tArrayList<Integer> table=new ArrayList<Integer>();\n\t\tint e=0;\n\t\tdo{\n\t\t\tif(pminus1.mod(two.pow(e)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(e);\n\t\t\t}\n\t\t\te++;\n\t\t}while(!(two.pow(e).compareTo(p)>0));\n\t\t\n\t\te=table.get(table.size()-1);\n\t\t\n\t\tr=pminus1.divide(two.pow(e));\n\t\t\n\t\t/*do{\n\t\tn=new BigInteger(p.bitCount()-1,new Random());\n\t\tl=LegandreSymbol(n, p);\n\t\t}while(l!=-1);*/\n\t\t\n\t\t//finding smallest q\n\t\tBigInteger q=BigInteger.valueOf(2);\n\t\tfor(int i=0;;i++){\n\t\t\tif(q.modPow((p.subtract(BigInteger.ONE)).divide(two), p).equals(p.subtract(BigInteger.ONE))){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tq=q.add(BigInteger.ONE);\n\t\t}\n\t\tysqrt=y.modPow((r.add(BigInteger.ONE)).divide(two), p);\n\t\tBigInteger b=y.modPow(r, p);\n\t\tBigInteger g=q.modPow(r, p);\n\t\t\n\t\tint exp=e;\n\t\tint straznik=0;\n\t\t\n\t\t//keep looping until b become 1 or m becomes 0\n\t\twhile(straznik==0){\n\t\t\tint m;\n\t\t\tfor(m=0;m<exp;m++){\n\t\t\t\t\n\t\t\t\tif(gcd(p,b).equals(BigInteger.ONE)==false){\n\t\t\t\t\tSystem.out.println(\"Modulus p and b are not co-prime. Try again!\");\n\t\t\t\t\treturn BigInteger.valueOf(-1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(b.modPow(two.pow(m), p).equals(BigInteger.ONE)){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(m==0){\n\t\t\t\treturn ysqrt;\n\t\t\t}\n\t\t\t//update the values\n\t\t\texponent=exp-m-1;\n\t\t\tif(exponent<0){\n\t\t\t\treturn BigInteger.ZERO;\n\t\t\t}\n\t\t\tysqrt=(ysqrt.multiply(g.modPow(two.pow(exp-m-1),p)).mod(p));\n\t\t\tg=g.modPow(two.pow(exp-m), p);\n\t\t\tb=(b.multiply(g)).mod(p);\n\t\t\t\n\t\t\tif(b.mod(p).equals(BigInteger.ONE)){\n\t\t\t\treturn ysqrt;\n\t\t\t}\n\t\t\texp=m;\n\t\t}\n\treturn ysqrt;\n\t}", "title": "" }, { "docid": "323f60d7713ccc07dd15b9d1d5df0638", "score": "0.5327049", "text": "@Test(timeout = 4000)\n public void test79() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n int int0 = 994;\n JSJshopVars.whiteSpace = 994;\n JSJshopVars.leftPar = 994;\n JSJshopVars.plus = 994;\n jSTerm0.makeEval(false);\n // Undeclared exception!\n try { \n jSTerm0.print();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "title": "" }, { "docid": "a37d5d855b3e8f7f18cbb340706a54e4", "score": "0.53255373", "text": "public void testBrokenExpression02() {\n \t\tparseAndCheckError(\"0xB0BG\", SpelMessages.PARSE_PROBLEM, 5, \"mismatched input 'G' expecting EOF\");\n \t}", "title": "" }, { "docid": "922e5c3c7f1fefd2ecdeefb1fd0a77f5", "score": "0.5319316", "text": "void checkErrorCount() throws ProcessingException;", "title": "" }, { "docid": "64d5ae5f2e081053459d64861a6472d8", "score": "0.53185743", "text": "@Test\r\n\tvoid sumEx() {\r\n\t\ttry {\r\n\t\t\tS55.sumEx(3, 1);\r\n\t\t\tfail(\"shouldn't get to this point\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tString expected = \"first should be smaller than last\";\r\n\t\t\tassertThat(e.getMessage(), is(expected));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "08a7594730e4c82f9a7d84f0ad648c95", "score": "0.53164005", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"XxD\");\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n evaluation0.useNoPriors();\n double double0 = evaluation0.m_ConfLevel;\n Evaluation evaluation1 = new Evaluation(instances0, (CostMatrix) null);\n evaluation1.pctUnclassified();\n boolean boolean0 = evaluation0.m_NoPriors;\n double double1 = evaluation0.rootRelativeSquaredError();\n assertEquals(Double.NaN, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(Double.NaN, double1, 0.01);\n }", "title": "" }, { "docid": "8b84a16210558405cde3ea73f4b90191", "score": "0.5313", "text": "public static void main(String args[])throws \n IOException \n { \n if(checkAbundant(12)) \n System.out.println(\"YES\"); \n else\n System.out.println(\"NO\"); \n if(checkAbundant(15)) \n System.out.println(\"YES\"); \n else\n System.out.println(\"NO\"); \n }", "title": "" }, { "docid": "9c7a7e2305185f7c327423de08de8608", "score": "0.531245", "text": "private static void invalidInput() {\r\n\t\tLOGGER.info(\"################## WARNING MESSAGE #################\");\r\n\t\tLOGGER.info(\"*****************************************************************************\");\r\n\t\tLOGGER.info(NumberPrinterConstant.INPUT_FORMAT);\r\n\t\tLOGGER.info(NumberPrinterConstant.OUTPUT_FORMAT);\r\n\t\tLOGGER.info(NumberPrinterConstant.NUMBER_RANGE);\r\n\t\tLOGGER.info(\"*****************************************************************************\");\r\n\t}", "title": "" }, { "docid": "f3e40cdcf1975c2de10b849e26cabf2e", "score": "0.5294102", "text": "@Test\n public void invalidArguments() throws Exception{\n this.failOnTheseArguments(\"1.11133778\",\"1\");\n this.failOnTheseArguments(\"2\",\"1.45312\");\n this.failOnTheseArguments(\"2.113225\",\"1.3335\");\n\n //Zweiter Wert 0\n this.failOnTheseArguments(\"10\",\"0\");\n }", "title": "" }, { "docid": "fb9a4d918f206c582a69967087151608", "score": "0.52907497", "text": "static void solution() {\n\t\tSystem.out.println(getFusc(BigInteger.valueOf(10).pow(25).add(BigInteger.ONE)));\n\t}", "title": "" }, { "docid": "72080a62614167a43361a78aee019893", "score": "0.5288091", "text": "@Test\n\tpublic void testNormalCoefficients2() throws Exception{\n\t\tString[] input = {\"3\", \"2\", \"2\", \"4\", \"10\", \"34\"};\n\t\tint result = horner.solve(input);\n\t\tassertEquals(322, result);\n\t}", "title": "" }, { "docid": "2b63a74349e4025b8b4aa7ab65002f29", "score": "0.528794", "text": "private void checkSquare(Square obj) throws InvalidSquareException {\r\n char f;\r\n char r;\r\n\r\n if (obj.toString().length() != 2) {\r\n throw new InvalidSquareException(obj.toString());\r\n } else {\r\n f = obj.toString().charAt(0);\r\n r = obj.toString().charAt(1);\r\n }\r\n if (!(f >= 'a' && f <= 'h') || !(r >= '1' && r <= '8')) {\r\n throw new InvalidSquareException(obj.toString());\r\n }\r\n }", "title": "" }, { "docid": "21cd85b5996e3f0ce2726c0c2f841b5f", "score": "0.52853894", "text": "private void check() {\n\t\tif(text_errorTerm1.getText().length() == 0 && text_errorTerm2.getText().length() == 0) {\n\t\t\tflag = true;\n\t\t} else if(text_errorTerm1.getText().length() == 0 && text_errorTerm2.getText().length() != 0) {\n\t\t\tint len = text_errorTerm2.getText().length();\n\t\t\tif(text_errorTerm2.getText().contains(\".\")) {\n\t\t\t\tlen = len-2;\n\t\t\t\tString zero = \"\";\n\t\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\t\tzero += \"0\";\n\t\t\t\t}\n\t\t\t\tDouble temp = Double.parseDouble(\"0.\"+zero+\"5\");\n\t\t\t\ttext_errorTerm2.setText(temp+\"\");\n\t\t\t} else if(text_errorTerm1.getText().contains(\"E\") || text_errorTerm1.getText().contains(\"e\")){\n\t\t\t\tBigDecimal b = new BigDecimal(text_errorTerm1.getText()+\"\");\n\t\t\t\tDouble temp = Double.parseDouble(b.toPlainString());\n\t\t\t\tif(temp<1) {\n\t\t\t\t\tlen = (temp+\"\").length()-2;\n\t\t\t\t\tString zero = \"\";\n\t\t\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\t\t\tzero += \"0\";\n\t\t\t\t\t}\n\t\t\t\t\ttemp = Double.parseDouble(\"0.\"+zero+\"5\");\n\t\t\t\t}else {\n\t\t\t\t\ttemp = 0.5;\n\t\t\t\t}\n\t\t\t\ttext_errorTerm1.setText(temp+\"\");}\n\t\t\telse {\n\t\t\t\ttext_errorTerm1.setText(\"0.5\");\n\t\t\t}\n\t\t\tflag = false;\n\t\t\tsetErrorTerm1();\n\t\t}else if(text_errorTerm1.getText().length() != 0 && text_errorTerm2.getText().length() == 0) {\n\t\t\tint len = text_errorTerm1.getText().length();\n\t\t\tif(text_errorTerm1.getText().contains(\".\")) {\n\t\t\t\tlen = len-2;\n\t\t\t\tString zero = \"\";\n\t\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\t\tzero += \"0\";\n\t\t\t\t}\n\t\t\t\tDouble temp = Double.parseDouble(\"0.\"+zero+\"5\");\n\t\t\t\ttext_errorTerm2.setText(temp+\"\");\n\t\t\t} else if(text_errorTerm2.getText().contains(\"E\") || text_errorTerm2.getText().contains(\"e\")){\n\t\t\t\tBigDecimal b = new BigDecimal(text_errorTerm2.getText()+\"\");\n\t\t\t\tDouble temp = Double.parseDouble(b.toPlainString());\n\t\t\t\tif(temp<1) {\n\t\t\t\t\tlen = (temp+\"\").length()-2;\n\t\t\t\t\tString zero = \"\";\n\t\t\t\t\tfor(int i=0;i<len;i++) {\n\t\t\t\t\t\tzero += \"0\";\n\t\t\t\t\t}\n\t\t\t\t\ttemp = Double.parseDouble(\"0.\"+zero+\"5\");\n\t\t\t\t}else {\n\t\t\t\t\ttemp = 0.5;\n\t\t\t\t}\n\t\t\t\ttext_errorTerm2.setText(temp+\"\");}\n\t\t\telse {\n\t\t\t\ttext_errorTerm2.setText(\"0.5\");\n\t\t\t}\n\t\t\tflag = false;\n\t\t\tsetErrorTerm2();\n\t\t} else {\n\t\t\tflag = false;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "17462d80872e45b27ee23d2d44ffa823", "score": "0.52788615", "text": "static int sqr(int x) {\n return x * x;\n }", "title": "" }, { "docid": "52e5854c390bb05cabb45b8dccf870b9", "score": "0.5274251", "text": "@Test\r\n\tpublic void test1() {\r\n\t\tint[] num = {2,3,4,7,11};\r\n\t\tint k = 5;\r\n\t\tAssert.assertEquals(9, findMissingNumberLinear(num, k));\r\n\t\tAssert.assertEquals(9, findMissingUingBinary(num, k));\r\n\t}", "title": "" }, { "docid": "0ddcd0b258303d5596b6249c26e43a40", "score": "0.5271027", "text": "public static void main (String[] args)\n {\n assert(false == if_number_is_perfect_square(-1));\n assert(false == if_number_is_perfect_square(Integer.MIN_VALUE));\n\n /*\n * Test 1: Test with positive numbers which are perfect\n * squares. They should be perfect squares.\n */\n assert(true == if_number_is_perfect_square(0));\n assert(true == if_number_is_perfect_square(1));\n assert(true == if_number_is_perfect_square(4));\n assert(true == if_number_is_perfect_square(11 * 11));\n assert(true == if_number_is_perfect_square(600 * 600));\n assert(true ==\n if_number_is_perfect_square((1 << 15) *\n (1 << 15)));\n\n /*\n * Test 2: Test with positive numbers which are not perfect\n * squares. They should not be perfect squares.\n */\n assert(false == if_number_is_perfect_square(2));\n assert(false == if_number_is_perfect_square(Integer.MAX_VALUE));\n assert(false == if_number_is_perfect_square(401));\n }", "title": "" }, { "docid": "cb1a49278f2a0f8a5b4825f77534c45a", "score": "0.5268456", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n jSTerm0.makeVariable();\n // Undeclared exception!\n try { \n jSTerm0.standardizerTerm();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "title": "" }, { "docid": "0eb1bf82ce519f7b8cfcf19e5dc81b1a", "score": "0.5263677", "text": "public static int checkedPow(int b, int k) {\n/* 490 */ MathPreconditions.checkNonNegative(\"exponent\", k);\n/* 491 */ switch (b) {\n/* */ case 0:\n/* 493 */ return (k == 0) ? 1 : 0;\n/* */ case 1:\n/* 495 */ return 1;\n/* */ case -1:\n/* 497 */ return ((k & 0x1) == 0) ? 1 : -1;\n/* */ case 2:\n/* 499 */ MathPreconditions.checkNoOverflow((k < 31));\n/* 500 */ return 1 << k;\n/* */ case -2:\n/* 502 */ MathPreconditions.checkNoOverflow((k < 32));\n/* 503 */ return ((k & 0x1) == 0) ? (1 << k) : (-1 << k);\n/* */ } \n/* */ \n/* */ \n/* 507 */ int accum = 1;\n/* */ while (true) {\n/* 509 */ switch (k) {\n/* */ case 0:\n/* 511 */ return accum;\n/* */ case 1:\n/* 513 */ return checkedMultiply(accum, b);\n/* */ } \n/* 515 */ if ((k & 0x1) != 0) {\n/* 516 */ accum = checkedMultiply(accum, b);\n/* */ }\n/* 518 */ k >>= 1;\n/* 519 */ if (k > 0) {\n/* 520 */ MathPreconditions.checkNoOverflow(((-46340 <= b)) & ((b <= 46340)));\n/* 521 */ b *= b;\n/* */ } \n/* */ } \n/* */ }", "title": "" }, { "docid": "72d062c6f068f90d8781a35ace07fe91", "score": "0.5255317", "text": "private void do_scalar_exp6_1(){\n\t\tboolean bool=this.doCommon();\n\t\tif(bool){\n\t\t\tString oper=\"\";\n\t\t\tString t1=\"\";\t\n\t\t\tString t2=\"\";\n\t\t\tList list=this.getResultList();\n\t\t\t\n\t\t\tif(list.size()==2){\n\t\t\t\toper=(String)list.get(0);\n\t\t\t\tt1=\"0\";\n\t\t\t\tt2=(String)list.get(1);\n\t\t\t\tthis.showResult(oper, t1, t2);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "814f58d4ccc576e22ce12b27d45d1761", "score": "0.52501607", "text": "public int haveError() {\n\t\tRandom rando = new Random();\n\t\tint randErrorNo = rando.nextInt(10);\n\t\tif (randErrorNo == 0) {\n\t\t\tSystem.out.println(\"missingD^batt*heatsink[][]/USER/VIRT$...A^7Lf.gwa(8r6^^^qd.NET)...//err\");\n\t\t\tsetBattery(getBattery() - 10);\n\t\t} else if (randErrorNo == 1) {\n\t\t\tSystem.out.println(\"d46%F&^56&&USERDATA>=4444FG^f7intUPintUPintUP..recur//exit\");\n\t\t\tsetBattery(getBattery() - 5);\n\t\t} else if (randErrorNo == 2) {\n\t\t\tSystem.out.println(\"k9j8\\\\temp.loc.dat\\\\6g75fR$DE#SWA.ERRRRRRRRR\\\\BATT%%%\");\n\t\t\tsetBattery(getBattery() - 5);\n\t\t} else if (randErrorNo == 3) {\n\t\t\tSystem.out.println(\"ERR.8R#VHGHELMONRANDIGLEI\\\\FULL.fill++ failed\");\n\t\t\tsetHappiness(getHappiness() - 5);\n\t\t} else if (randErrorNo == 4) {\n\t\t\tSystem.out.println(\"8her5iru/happ.dat..5d/4.u*Io\");\n\t\t\tsetHappiness(getHappiness() - 5);\n\t\t} else if (randErrorNo == 5) {\n\t\t\tSystem.out.println(\"808:JO^G&FYghjhhhhhhhhhhhhhhhhhhhhhhhhhh==INTROVERT\");\n\t\t\tsetHappiness(getHappiness() - 5);\n\t\t} else if (randErrorNo == 6) {\n\t\t\tSystem.out.println(\"404DOC//DOC.cilNOTfnnnnnnnnn::UP:KIERKE.GAARD\");\n\t\t\tsetSelfAwareness(getSelfAwareness() + 5);\n\t\t} else if (randErrorNo == 7) {\n\t\t\tSystem.out.println(\"baud.RILLARD//dd^f67^+++.doc/SIMULACRA.err\");\n\t\t\tsetSelfAwareness(getSelfAwareness() + 5);\n\t\t} else if (randErrorNo == 8) {\n\t\t\tSystem.out.println(\"connecting////..DDOS/NORAD.gov//missiles.SEND(certKey = d46R&%G^*IUujh7i68g75fDR^$)\");\n\t\t\tsetHacking(getHacking() + 10);\n\t\t}\n\t\treturn randErrorNo;\n\t}", "title": "" }, { "docid": "f411ee353c5ce74057f3bfbe82831062", "score": "0.5247383", "text": "@Test\n\tpublic void test3() {\n\t\tassertFalse(p1.checkZero());\n\t}", "title": "" }, { "docid": "1fb45f8e4676c3e9f23d4731bfb16d9d", "score": "0.52431154", "text": "@Test\n public void test08() throws Throwable {\n Complex complex0 = new Complex(2105.6, 2105.6);\n try { \n complex0.pow((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }", "title": "" }, { "docid": "b4743f714b3324cb844b16e4ce7b867f", "score": "0.52398205", "text": "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickOptionComputation(Integer.MAX_VALUE, Integer.MAX_VALUE, (-1346.6130326571433), Integer.MAX_VALUE, 0, Integer.MAX_VALUE);\n assertEquals(\"id=2147483647 unknown: vol = N/A delta = N/A\", string0);\n }", "title": "" }, { "docid": "ed8828bc03093f9d03c1dcf83bbf27af", "score": "0.5239671", "text": "@Test\n public void test10() throws Throwable {\n PegasusSolver pegasusSolver0 = new PegasusSolver(0.0, 0.0, 0.0);\n Inverse inverse0 = new Inverse();\n // Undeclared exception!\n try { \n pegasusSolver0.solve(1, (UnivariateRealFunction) inverse0, (double) 1, 0.0, 1.0E-6);\n } catch(IllegalStateException e) {\n //\n // illegal state: maximal count (1) exceeded: evaluations\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.BaseAbstractUnivariateRealSolver\", e);\n }\n }", "title": "" }, { "docid": "25ee59207debe139c0804b9fc0510842", "score": "0.5220275", "text": "@Test\n public void classify_aTriangleWithTheSumOfTwoSidelenghtsLessThanTheThird_asInvalid() {\n assertEquals(TriangleType.INVALID, TriangleType.classify(1, 2, 4));\n assertEquals(TriangleType.INVALID, TriangleType.classify(1, 4, 2));\n assertEquals(TriangleType.INVALID, TriangleType.classify(4, 1, 2));\n }", "title": "" }, { "docid": "da1cee77854c632123cf70f2cfabe574", "score": "0.52202183", "text": "private double CalcErr(){\r\n\t\tdouble err = 0.0;\r\n\t\tfor(int i = 0; i < optData.length; ++i){\r\n\t\t\tsigOptErr[i] = desiredOutput[i] - optData[i];\r\n\t\t\terr += Math.pow(sigOptErr[i], 2.0);\r\n\t\t}\r\n\t\treturn err / (2 * optData.length);\r\n\t}", "title": "" }, { "docid": "7198830d90aca4f7d4ccca23f6a2538e", "score": "0.5218243", "text": "public static void main(String arg[])\n{\n\tScanner sc = new Scanner(System.in);\n\tSystem.out.println(\"enter the number\");\n\tdouble no=sc.nextInt();\n //part2: no should be less then 31\n if(no>31)\n\t{\n \tfor(double i=1.0;i<=no;i++)\n\t\t{\n \tdouble a=2.0;\n\t\t\tdouble result=Math.pow(a,i);\n System.out.println(\"the value at 2^i\"+result);\n \t}\n\t}\n}", "title": "" }, { "docid": "c783782e7b27306933e3b82c3cff0c6d", "score": "0.52171105", "text": "private boolean validateParams(){\r\n//\t\tassert(minfoo>0 && minfoo<=maxfoo) : minfoo+\", \"+maxfoo;\r\n\t\tassert(false) : \"TODO\";\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "66373cf675c3f1dfed8f9c880ace9108", "score": "0.5215946", "text": "public void validateInputs(BigInteger subGroupOrder) {\n\n\t\t// g and h are not zero and not one\n\n\t\t// checking the first chunk\n\t\tWire zeroOrOne1 = g[0].mul(g[0].sub(1));\n\t\tWire zeroOrOne2 = h[0].mul(h[0].sub(1));\n\n\t\t// checking the rest\n\t\tWire allZero1 = generator.getOneWire();\n\t\tWire allZero2 = generator.getOneWire();\n\n\t\tfor (int i = 1; i < mu; i++) {\n\t\t\tallZero1 = allZero1.mul(g[i].checkNonZero().invAsBit());\n\t\t\tallZero2 = allZero2.mul(h[i].checkNonZero().invAsBit());\n\t\t}\n\n\t\t// assertion\n\t\tgenerator.addZeroAssertion(zeroOrOne1.mul(allZero1));\n\t\tgenerator.addZeroAssertion(zeroOrOne2.mul(allZero2));\n\n\t\t// verify order of points\n\n\t\tint bitLength = subGroupOrder.bitLength();\n\t\tWire[] bits = new Wire[bitLength];\n\t\tfor (int i = 0; i < bitLength; i++) {\n\t\t\tif (subGroupOrder.testBit(i))\n\t\t\t\tbits[i] = generator.getOneWire();\n\t\t\telse\n\t\t\t\tbits[i] = generator.getZeroWire();\n\t\t}\n\n\t\tWire[] result1 = exp(g, bits, gPowersTable);\n\t\tWire[] result2 = exp(h, bits, hPowersTable);\n\n\t\t// both should be one\n\n\t\tgenerator.addOneAssertion(result1[0]);\n\t\tgenerator.addOneAssertion(result2[0]);\n\t\tfor (int i = 1; i < mu; i++) {\n\t\t\tgenerator.addZeroAssertion(result1[i]);\n\t\t\tgenerator.addZeroAssertion(result1[i]);\n\t\t}\n\t}", "title": "" }, { "docid": "259e3f5c4b5626375db64e745048afb6", "score": "0.52117866", "text": "public static int checkedMultiply(int a, int b) {\n/* 476 */ long result = a * b;\n/* 477 */ MathPreconditions.checkNoOverflow((result == (int)result));\n/* 478 */ return (int)result;\n/* */ }", "title": "" }, { "docid": "c0ada439fc02f6962a33a0835d281b8c", "score": "0.5202171", "text": "private double checkNum(Stack<String> eqn, double x, int[] aCount, ArrayList<Double> aList) {\r\n String s = eqn.pop();\r\n switch (s) {\r\n case \"x\":\r\n return x;\r\n case \"e\":\r\n return Math.exp(1);\r\n case \"a\":\r\n double num = aList.get(aCount[0]);\r\n aList.remove(aCount[0]);\r\n aCount[0] --;\r\n return num;\r\n default:\r\n return Double.parseDouble(s);\r\n }\r\n }", "title": "" }, { "docid": "7471ba6237f543c9805acae385ff6547", "score": "0.5199923", "text": "boolean errorCheck(double[] pi, double[][] A, double[][] B) {\n\t\tif (A[0].length != B.length || A.length < 1 || B[0].length < 1) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (pi.length != A.length) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tdouble sum = 0;\n\t\tfor (double d: pi) {\n\t\t\tif (d < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tsum += d;\n\t\t}\n\t\tif (sum != 1) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//check A, B validity\n\t\tif (invalidMatrix(A) || invalidMatrix(B)) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "06df743ae466153196b8767994c93d84", "score": "0.5199637", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"for the function f(x)=x^2: \");\n\t\tfor(double h=0.1; h>=Math.pow(10, -18); h=h/10) {\n\t\t\tdouble d_1= derivative_1(1,0,0,1,h);\n\t\t\tdouble e_1= relativeErr(d_1, 2);\n\n\t\t\tdouble d_2= derivative_2(1,0,0,1,h);\n\t\t\tdouble e_2= relativeErr(d_2, 2);\n\t\t\t\n\t\t\tSystem.out.println(\"h= \"+h+\"\\tfirst-order derivative: \"+d_1+\"\\trelative error: \"+e_1+\n\t\t\t\t\t\t\t\t\"\\tsecond-order derivative: \"+d_2+\"\\trelative error: \"+e_2);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"for the function f(x)=x^2+10^10\");\n\t\tfor(double h=0.1; h>=Math.pow(10, -18); h=h/10) {\n\t\t\tdouble d_1= derivative_1(1,0,Math.pow(10, 10),1,h);\n\t\t\tdouble e_1= relativeErr(d_1, 2);\n\n\t\t\tdouble d_2= derivative_2(1,0,Math.pow(10, 10),1,h);\n\t\t\tdouble e_2= relativeErr(d_2, 2);\n\t\t\t\n\t\t\tSystem.out.println(\"h= \"+h+\"\\tfirst-order derivative: \"+d_1+\"\\trelative error: \"+e_1+\n\t\t\t\t\t\t\t\t\"\\tsecond-order derivative: \"+d_2+\"\\trelative error: \"+e_2);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"for the function: f(x)=x^2+10^8\");\n\t\tfor(double h=0.1; h>=Math.pow(10, -18); h=h/10) {\n\t\t\tdouble d_1= derivative_1(1,0,Math.pow(10, 8),1,h);\n\t\t\tdouble e_1= relativeErr(d_1, 2);\n\n\t\t\tdouble d_2= derivative_2(1,0,Math.pow(10, 8),1,h);\n\t\t\tdouble e_2= relativeErr(d_2, 2);\n\t\t\t\n\t\t\tSystem.out.println(\"h= \"+h+\"\\tfirst-order derivative: \"+d_1+\"\\trelative error: \"+e_1+\n\t\t\t\t\t\t\t\t\"\\tsecond-order derivative: \"+d_2+\"\\trelative error: \"+e_2);\n\t\t}\n\n\t}", "title": "" }, { "docid": "8cf58fe1158ae39f53e7f76354975818", "score": "0.5194845", "text": "@Test\n void testOneDivX() {\n testUtil.doTest(\"1 1/x =\", \"1\", \"\");\n testUtil.doTest(\"1 1/x 1/x =\", \"1\", \"\");\n testUtil.doTest(\"10 1/x =\", \"0,1\", \"\");\n testUtil.doTest(\"10 1/x 1/x =\", \"10\", \"\");\n testUtil.doTest(\"10 1/x 1/x 1/x =\", \"0,1\", \"\");\n testUtil.doTest(\"10 1/x 1/x 1/x 1/x =\", \"10\", \"\");\n testUtil.doTest(\"977,03 1/x =\", \"0,0010235100252807\", \"\");\n testUtil.doTest(\"288, n 7 1/x =\", \"-0,0034638032559751\", \"\");\n testUtil.doTest(\"263,89 n 1/x =\", \"-0,003789457728599\", \"\");\n testUtil.doTest(\"300,01 n 1/x =\", \"-0,0033332222259258\", \"\");\n testUtil.doTest(\"496,26 n 1/x =\", \"-0,0020150727441261\", \"\");\n testUtil.doTest(\"12312,3 1/x =\", \"8,121959341471537e-5\", \"\");\n testUtil.doTest(\"14078,41 1/x =\", \"7,103074850071848e-5\", \"\");\n testUtil.doTest(\"9999999999999999 1/x =\", \"0,0000000000000001\", \"\");\n testUtil.doTest(\"9999999999999999 1/x 1/x =\", \"9 999 999 999 999 999\", \"\");\n testUtil.doTest(\"9999999999999999 1/x 1/x 1/x =\", \"0,0000000000000001\", \"\");\n testUtil.doTest(\"9999999999999999 1/x 1/x 1/x 1/x =\", \"9 999 999 999 999 999\", \"\");\n testUtil.doTest(\"0,0000000000000001 1/x =\", \"1,e+16\", \"\");\n testUtil.doTest(\"0,0000000000000001 1/x =\", \"1,e+16\", \"\");\n }", "title": "" }, { "docid": "6c301aea9bb6073a9f805f35e9e89657", "score": "0.51937413", "text": "protected final double doBinaryCheck(final double a, final double b,\r\n final double r, final ComputationContext<?> c) {\r\n\r\n if (Mathematics.isNumber(r)) {\r\n if (checkEqual(a, r) || checkEqual(b, r)) {\r\n c.negligible(this);\r\n }\r\n return r;\r\n }\r\n if (Mathematics.isNumber(a) && Mathematics.isNumber(b)) {\r\n c.setError(this);\r\n }\r\n return Double.NaN;\r\n }", "title": "" }, { "docid": "d467b1131ffccb4353a3e8a9ede6eb8a", "score": "0.5193686", "text": "public String findRoot(){\n double xOne = x1;//save the value of x1 in this variable.\n double xTwo = x2;//save the value of x1 in this variable.\n\n String variable = getVariable();\n\n function.getMathExpression().setValue(variable, String.valueOf(xOne));\n System.err.println(\"xOne = \"+xOne+\", expression: \"+function.getMathExpression().getExpression());\n double f1 = Double.parseDouble( function.eval() );\n\n function.getMathExpression().setValue(variable, String.valueOf(xTwo));\n double f2 = Double.parseDouble( function.eval() );\n\n double x = 0.5*(xOne+xTwo);\n int count = 0;\n\n\n boolean iterationfailed = false;\n //iterate\n while( ( !approxEqualsZero(abs(f2)) && !approxEqualsZero(abs(f1)) && count < 2000 ) ){\n\n try{\n x = xTwo - (f2*((xTwo-xOne)/(f2-f1)));\n\n xOne = xTwo;\n xTwo = x;\n\n function.getMathExpression().setValue(variable, String.valueOf(xOne));\n f1 = Double.parseDouble( function.getMathExpression().solve() );\n function.getMathExpression().setValue(variable, String.valueOf(xTwo));\n f2 = Double.parseDouble( function.getMathExpression().solve() );\n ++count;\n\n }\n catch(NumberFormatException nfe){\n nfe.printStackTrace();\n iterationfailed = true;\n break;\n }\n\n }//end while\n\n\n\n\n// did loop terminate because count >= 2000? if so then the root finder failed again....\n //so switch to something else. Place an alternative method in this loop.\n if (count >= 2000 || iterationfailed ){\n return new Bisection().findRoot();\n }\n\n return String.valueOf(x);\n }", "title": "" }, { "docid": "de6bb1e5367d22b0aef5daf2c5fd4eac", "score": "0.51914936", "text": "@Test\n\tpublic void testVerify_DigitAppearsTwice() {\n\t\tfail();\n\t}", "title": "" }, { "docid": "d11aa9192a33b8e519c12f6fd42cbd50", "score": "0.5191312", "text": "@Test\n public void invalidGuessTest() {\n assert(!WACROSS.validGuess(\"q\"));\n }", "title": "" }, { "docid": "85a193b4387ad8a6ae5c2e22ffc3cf8f", "score": "0.51887745", "text": "private static void process() {\r\n \tthrow new IllegalArgumentException(\"Uuups, something went wrong here!\");\r\n }", "title": "" }, { "docid": "1cf77e7251dfdaad671aead12c1937b4", "score": "0.5188046", "text": "private static void func_void_x() {\n for(int var0 = 0; var0 < field_int_it; ++var0) {\n if (func_int_a(field_int_fh - field_array_int_iv[var0]) < 20 && func_int_a(field_array_int_iw[var0] - field_int_fi) < 4) {\n field_int_y = 0;\n if (field_int_fh < field_array_int_iv[var0]) {\n field_int_fh = field_array_int_iv[var0] - 20;\n } else {\n field_int_fh = field_array_int_iv[var0] + 20;\n }\n\n if (field_array_int_ix[var0] != 4) {\n field_array_int_ix[var0] = 2;\n field_array_int_iy[var0] = -field_int_fp << 1;\n return;\n }\n }\n }\n\n }", "title": "" }, { "docid": "e231661c760f149a2f37b2b530ceff5b", "score": "0.5187598", "text": "@Test(expected = IllegalArgumentException.class)\n\tpublic void numberTooLarge() {\n\t\tFactorial.calculate(25);\n\t}", "title": "" }, { "docid": "62b218d8c322620b3206c51e76f25127", "score": "0.51817834", "text": "private void checkArgs(BigInteger toCheck) {\r\n BigInteger temp = generateBiggestHundredDigitNumber();\r\n if (toCheck == null) {\r\n throw new IllegalArgumentException(\"Illegal Arguments passed\");\r\n }\r\n if (toCheck.toString().charAt(0) == '-') {\r\n throw new IllegalArgumentException(\"Illegal Arguments passed\");\r\n }\r\n if (toCheck.compareTo(temp) > 0) {\r\n throw new IllegalArgumentException(\"Illegal Arguments passed\");\r\n }\r\n }", "title": "" }, { "docid": "e1b66d676b5e4af2f6cbbf660ec0fe2d", "score": "0.5179671", "text": "@Test\n\tpublic void test5() {\n\t\tSudokuVerifier sudoku = new SudokuVerifier();\n\t\tassertEquals(-3,sudoku.verify(\"812853649943682175675491283154237896369845721287169534521974368438526917796318452\"));\n\t\t\n }", "title": "" }, { "docid": "47ffde03e36a28dcab25bb20a822e55b", "score": "0.51696515", "text": "public abstract int ieeeck(int ispec, float zero, float one);", "title": "" }, { "docid": "aaa2a0dc621aaa04183f651632201541", "score": "0.5168767", "text": "@Test\n public void checkSpeedLimitOverflow() {\n\n try {\n RegularManualTransmission mtr4 = new RegularManualTransmission(0, 5, 4, 10,\n 3, 8, 14, 20, 19, Integer.MAX_VALUE + 345);\n fail();\n } catch (Exception e) {\n assertEquals(\"The low speed and high speed for a\"\n + \" particular gear is Invalid.\", e.getMessage());\n }\n }", "title": "" }, { "docid": "a197f25b252dcbfe36a40a35247827a8", "score": "0.5165618", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n jSTerm0.makeFunction();\n jSTerm0.add((Object) \"nLt\");\n JSPredicateForm jSPredicateForm0 = jSTerm0.clonePF();\n JSTerm jSTerm1 = new JSTerm();\n jSPredicateForm0.add((Object) jSTerm1);\n // Undeclared exception!\n try { \n jSPredicateForm0.toStr();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "title": "" }, { "docid": "2530e3034de72c7b80e2f2d188932a25", "score": "0.51643723", "text": "@Test\n\tpublic void test4() {\n\t\tSudokuVerifier sudoku = new SudokuVerifier();\n\t\tassertEquals(-1,sudoku.verify(\"8198953649943682175675491283154237896369845721287169534521974368438526917796318452\"));\n\t\t\n }", "title": "" } ]
1c330711a5cb33773c244c8e5f27a8ab
Tests for canGetThere test same origin and destination
[ { "docid": "979a9f6ed9d60b9043ed375aedeeac43", "score": "0.64145756", "text": "@Test\n public void checkCanGetThere(){\n Boolean t1 = PathFinder.\n canGetThere(\"BOS\",\"BOS\",FlightSamples.deltaCycle);\n\n // test for route in lists of flights with cycle\n Boolean t2 = PathFinder.\n canGetThere(\"BOS\",\"ATL\",FlightSamples.deltaCycle);\n\n // test for non-existent origin\n Boolean t3 = PathFinder.\n canGetThere(\"PDX\",\"YTO\",FlightSamples.deltaCycle);\n\n // test for non-existent destination\n Boolean t4 = PathFinder.\n canGetThere(\"MAD\",\"PDX\",FlightSamples.deltaCycle);\n\n // test for non-trivial itinerary in list without cycles\n Boolean t5 = PathFinder.\n canGetThere(\"LGA\",\"DTW\",FlightSamples.deltaCycle);\n\n assertEquals(t1, true);\n assertEquals(t2, true);\n assertEquals(t3, true);\n assertEquals(t4, true);\n assertEquals(t5, true);\n }", "title": "" } ]
[ { "docid": "1f909036eb942a4cc14f97680ecffde9", "score": "0.6491185", "text": "boolean hasOrigin();", "title": "" }, { "docid": "98fc384774b011fed67842027d93e0f6", "score": "0.64138955", "text": "@java.lang.Override\n public boolean hasDestination() {\n return destination_ != null;\n }", "title": "" }, { "docid": "98fc384774b011fed67842027d93e0f6", "score": "0.64138955", "text": "@java.lang.Override\n public boolean hasDestination() {\n return destination_ != null;\n }", "title": "" }, { "docid": "b067d7a8bfd600c6bbdad8fdf626d132", "score": "0.6127299", "text": "public boolean hasDestination() {\r\n if(this.destination != null)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "82ccf0ef0621461426fa7ad2c904b91d", "score": "0.6095473", "text": "@java.lang.Override\n public boolean hasOrigin() {\n return origin_ != null;\n }", "title": "" }, { "docid": "11d1bbb9f737288ec88b0f4cdd71df8d", "score": "0.5937983", "text": "boolean isDst();", "title": "" }, { "docid": "3d1c0723819ee8ccb23f12ac0f9c1793", "score": "0.5914992", "text": "boolean hasLoc();", "title": "" }, { "docid": "da3e172c29a2322556877ed1211104c9", "score": "0.5903066", "text": "public String isRouteAvailable(String origin, String destination) {\n\t\tlog.info(\"Fetching route between origin {} & destination {} \", origin, destination);\n\n\t\tif (routeUtility.isConnected(origin, destination)) {\n\t\t\treturn RouteFinderConstants.YES;\n\t\t}\n\t\treturn RouteFinderConstants.NO;\n\t}", "title": "" }, { "docid": "aff7c31fbc2bf6143a4443cfea38b0da", "score": "0.58149993", "text": "public boolean getNeedsDestination() { return this.needsDestination; }", "title": "" }, { "docid": "fdbe5aaf2cd679b746b951aab2d51dfd", "score": "0.5721988", "text": "boolean canSee(GamePlayer viewer, GamePlayer target);", "title": "" }, { "docid": "8da698cf9e56c75740f16b167618b601", "score": "0.570425", "text": "boolean hasUrl();", "title": "" }, { "docid": "8da698cf9e56c75740f16b167618b601", "score": "0.570425", "text": "boolean hasUrl();", "title": "" }, { "docid": "f60058a33411387b6143e3d444d5878e", "score": "0.5682973", "text": "public boolean isConnected(String origin, String destination){\n if(cityMap.containsKey(origin) && cityMap.get(origin).contains(destination)){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "382f03ea96e6afb8ca2ff44570370a3f", "score": "0.5658915", "text": "boolean hasPlayerLocation();", "title": "" }, { "docid": "993ed30f5252b83a48fa8b932bf21863", "score": "0.56383467", "text": "private void getRoute(Point origin, Point destination) {\n NavigationRoute.builder(this)\n .accessToken(Mapbox.getAccessToken())\n .origin(origin)\n .destination(destination)\n .build()\n .getRoute(new Callback<DirectionsResponse>() {\n @Override\n public void onResponse(Call<DirectionsResponse> call, Response<DirectionsResponse> response) {\n // You can get the generic HTTP info about the response\n Log.d(TAG, \"Response code: \" + response.code());\n if (response.body() == null) {\n Log.e(TAG, \"No routes found, make sure you set the right user and access token.\");\n return;\n } else if (response.body().routes().size() < 1) {\n Log.e(TAG, \"No routes found\");\n return;\n }\n Rout_Sucess(response.body());\n }\n\n @Override\n public void onFailure(Call<DirectionsResponse> call, Throwable throwable) {\n Toast.makeText(MapActi3.this, \"Faild To Get Route\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "61518375ddc0ffd6197fca6c63393527", "score": "0.5581884", "text": "public boolean hasDestination() {\n return ((bitField0_ & 0x00000040) != 0);\n }", "title": "" }, { "docid": "b2fb8881fd9a2eb85eddbef4651e7e7c", "score": "0.5576866", "text": "public boolean canGetLocation() {\n \t\treturn this.canGetLocation;\n \t}", "title": "" }, { "docid": "3b8d4d84a6fb5e5951aa72367953bde4", "score": "0.5531431", "text": "private boolean isDestination(final Object key)\r\n {\r\n return (key == Key.Destination1 || key == Key.Destination2 || key == Key.Destination3 || key == Key.Destination4);\r\n }", "title": "" }, { "docid": "ee72054914cd2e100cd8170a871705b8", "score": "0.5506966", "text": "boolean isDestPresent(Point dest) {\n\t\tif ( (dest.x > r.p4.x) && (dest.y > r.p4.y) &&\n\t\t\t (dest.x < r.p2.x) && (dest.y < r.p2.y))\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ca1fa2556c8cd921f94fcae352e981f6", "score": "0.55027896", "text": "boolean hasUri();", "title": "" }, { "docid": "f83e93ff9ed2e5753b896cea60e58655", "score": "0.5499473", "text": "boolean hasTo();", "title": "" }, { "docid": "f83e93ff9ed2e5753b896cea60e58655", "score": "0.5499473", "text": "boolean hasTo();", "title": "" }, { "docid": "45ccff6d6e6e2b42913e014676485098", "score": "0.5496462", "text": "public boolean linkExistsFromOriginToDestination(Cell origin, Cell destination) {\n if (this.links.containsKey(origin)) {\n Set<Cell> originsLinks = this.links.get(origin);\n if (originsLinks != null) {\n return originsLinks.contains(destination);\n }\n }\n return false;\n }", "title": "" }, { "docid": "755fc251f8ea53ae7f588f4b8eb9a2cc", "score": "0.5489386", "text": "public boolean canGetLocation() {\n return this.canGetLocation;\n }", "title": "" }, { "docid": "755fc251f8ea53ae7f588f4b8eb9a2cc", "score": "0.5489386", "text": "public boolean canGetLocation() {\n return this.canGetLocation;\n }", "title": "" }, { "docid": "755fc251f8ea53ae7f588f4b8eb9a2cc", "score": "0.5489386", "text": "public boolean canGetLocation() {\n return this.canGetLocation;\n }", "title": "" }, { "docid": "9fd1ffdae38afeea51fa7d650ee4230b", "score": "0.5475368", "text": "public boolean canGetLocation() {\n\n\t\treturn this.mCanGetLocation;\n\t}", "title": "" }, { "docid": "6612d3db432704691c22adc88d91c006", "score": "0.5474244", "text": "private boolean checkWay(Cell source, Cell dist) throws OccupiedWayException, ImpossibleMoveException {\n boolean result = true;\n Figure figure = getFigure(source);\n Cell[] way = figure.way(dist);\n for (Cell cell : way) {\n if (getFigure(cell) != null) {\n throw new OccupiedWayException(\"The way is occupied!\");\n }\n }\n return result;\n }", "title": "" }, { "docid": "361cfce12cb188570b3b452344ca30af", "score": "0.5461608", "text": "@Test\n\tpublic void checkPointsFarFromOrigin()\n\t{\n\t\tassertFalse(game.isAdjacent(new HexCoordinate(10, 20)));\n\t\tassertFalse(game.isAdjacent(new HexCoordinate(15, -20)));\n\t}", "title": "" }, { "docid": "0703e69dc5d172e8d09d57c455a21114", "score": "0.5454813", "text": "@Test\n public void testPersistentUrlDetailsIfAlreadyExists() {\n when(shortenedUrlRepository.getShortenedUrlByUrl(anyString())).thenReturn(getMockedUrlEntityObj());\n when(urlMapStructMapper.toUrlResponse(any())).thenReturn(getMockedUrlResponseObj());\n UrlResponse urlResponse = UrlServiceImpl.persistentUrlDetails(\"http://bit.ly/SaaYw5\");\n assertEquals(\"http://bit.ly/SaaYw5\", urlResponse.getUrl());\n assertEquals(\"http://short\", urlResponse.getShortenedUrl());\n }", "title": "" }, { "docid": "fe8fcf04b36989e6fa4caea643ffa796", "score": "0.54365385", "text": "public boolean hasDestination() {\n return ((bitField0_ & 0x00000002) != 0);\n }", "title": "" }, { "docid": "7b988bad66fd82f7aaaed040ece96f2f", "score": "0.54123247", "text": "boolean hasSteamdatagramRouting();", "title": "" }, { "docid": "6fd795e5a4fb647052714dd7dbc20e3e", "score": "0.54011106", "text": "@Override\n protected boolean canHandle(Trouble trouble) {\n // ˅\n return trouble.id == targetId;\n // ˄\n }", "title": "" }, { "docid": "f654297da87d357eb965aa0e40f6e35c", "score": "0.53971374", "text": "boolean isNearTargetYet();", "title": "" }, { "docid": "3ad21aa724880e98fb3beb5ded46b4e6", "score": "0.5375634", "text": "public boolean hasReachedDestination()\r\n {\r\n for (Card card : getCards())\r\n {\r\n if (card.getPoint().x != card.getDestination().x)\r\n return false;\r\n \r\n if (card.getPoint().y != card.getDestination().y)\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "b5ea697af4b6d7512e6fdcaf2dc0dc86", "score": "0.53512245", "text": "boolean hasFrom();", "title": "" }, { "docid": "0e440a66c0c7ff46e0e62558eb3e44fc", "score": "0.53327173", "text": "boolean hasAbsolute();", "title": "" }, { "docid": "89ec7470e683657656812781fc3fc2de", "score": "0.53212947", "text": "public boolean canGetLocation() {\n return this.mCanGetLocation;\n }", "title": "" }, { "docid": "09d1690195e9a314eb1bf87d8d027796", "score": "0.53149194", "text": "public boolean isValidDestination(boolean hasLeftSpawn, char direction, int x, int y) {\n\t\t\n\t\tif (hasLeftSpawn) {\n\t \tswitch (direction) {\n\t\t\t\tcase 'U':\n\t\t\t\t\treturn this.status[(x - X_OFFSET)/TILE_SIZE][(y - OFFSET - Y_OFFSET)/TILE_SIZE];\n\t\t\t\tcase 'D':\n\t\t\t\t\treturn this.status[(x - X_OFFSET)/TILE_SIZE][(y + TILE_SIZE - Y_OFFSET)/TILE_SIZE];\n\t\t\t\tcase 'L':\n\t\t\t\t\treturn this.status[(x - OFFSET - X_OFFSET)/TILE_SIZE][(y - Y_OFFSET)/TILE_SIZE];\n\t\t\t\tcase 'R':\n\t\t\t\t\treturn this.status[(x + TILE_SIZE - X_OFFSET)/TILE_SIZE][(y - Y_OFFSET)/TILE_SIZE];\n\t \t}\n\t\t}\n\t\telse {\n\t\t\tswitch (direction) {\n\t\t\tcase 'U':\n\t\t\t\treturn this.ghostOnlyPath[(x - X_OFFSET)/TILE_SIZE][(y - OFFSET - Y_OFFSET)/TILE_SIZE];\n\t\t\tcase 'D':\n\t\t\t\treturn this.ghostOnlyPath[(x - X_OFFSET)/TILE_SIZE][(y + TILE_SIZE - Y_OFFSET)/TILE_SIZE];\n\t\t\tcase 'L':\n\t\t\t\treturn this.ghostOnlyPath[(x - OFFSET - X_OFFSET)/TILE_SIZE][(y - Y_OFFSET)/TILE_SIZE];\n\t\t\tcase 'R':\n\t\t\t\treturn this.ghostOnlyPath[(x + TILE_SIZE - X_OFFSET)/TILE_SIZE][(y - Y_OFFSET)/TILE_SIZE];\n\t\t\t}\n\t\t}\n \treturn false;\n }", "title": "" }, { "docid": "9c49379d06627ff0cf72b443776bb189", "score": "0.5311643", "text": "@GetMapping(value=\"/connected\",produces = \"text/plain\")\r\npublic String roadExist(@RequestParam(\"origin\")String orgin,@RequestParam(\"destination\")String dest) {\r\n\t\r\n\tString msg=\"\";\r\n\t\r\n\t\r\n\tCity originCity = road.getName(orgin.toUpperCase());\r\n City destCity = road.getName(dest.toUpperCase());\r\n\t\t \r\n\t\t \r\n\t \r\n\t\tmsg=String.valueOf(service.isConnected(originCity, destCity));\r\n\t\t\r\n\t\r\n\treturn msg;\r\n\t}", "title": "" }, { "docid": "bfec112ed40e230a8fa5325aa1e878d6", "score": "0.5295855", "text": "private static boolean checkIfURLExists() {\n HttpURLConnection httpUrlConn;\n try {\n httpUrlConn = (HttpURLConnection) new URL(URL + \":8080\").openConnection();\n\n\n httpUrlConn.setRequestMethod(\"HEAD\");\n\n httpUrlConn.setConnectTimeout(7500);\n httpUrlConn.setReadTimeout(7500);\n\n return (httpUrlConn.getResponseCode() == HttpURLConnection.HTTP_OK);\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n return false;\n }\n }", "title": "" }, { "docid": "cb17689e6209a576eb0da6601c1f0412", "score": "0.52948236", "text": "boolean hasKey(final String origin) {\n return getKey(origin) != null;\n }", "title": "" }, { "docid": "13dd89a044b499e678fba4824b7e5ce8", "score": "0.52828956", "text": "private void checkRep() {\n Set<Coordinate> validTargets = piece().moveSet(squareFrom.coordinate());\n \n assert validTargets.contains(squareTo.coordinate());\n }", "title": "" }, { "docid": "6e99c69dcef64693d5b8224aab5b643b", "score": "0.5269173", "text": "boolean hasActual();", "title": "" }, { "docid": "11d7bee795adb882bbe8f9bb84fd409b", "score": "0.52558756", "text": "public static boolean shouldGetDestinationOnMapping(FieldMap fieldMap, SourceCodeContext context) {\n Boolean getDestinationOnMapping = fieldMap.isDestinationValueRetrievedOnMapping();\n if (getDestinationOnMapping == null) {\n getDestinationOnMapping = context.shouldGetDestinationOnMapping();\n }\n return getDestinationOnMapping;\n }", "title": "" }, { "docid": "8bb2dbb35a56da872473376b91b96c8b", "score": "0.5252493", "text": "boolean hasHttpCheck();", "title": "" }, { "docid": "9bf81073d66c326369bf3a6cb849238f", "score": "0.52465725", "text": "public boolean canMove(int destination_x, int destination_y) {\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "89ed6bc2a539c49a0cbdada35f740ef5", "score": "0.5230801", "text": "boolean hasDestitemid();", "title": "" }, { "docid": "ebae412dd581ccf603cd20b86fce4504", "score": "0.52290225", "text": "boolean hasLocationFeedItem();", "title": "" }, { "docid": "193ffbf2266b562e6280857456d86e76", "score": "0.52290064", "text": "@Override\n\tpublic boolean canPlaceRobber(HexLocation hexLoc) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0b220ae5b60dd480485a923026b2bf2e", "score": "0.5228698", "text": "public boolean isStarted(){return this.hasDestination;}", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "d672aa9f9e5834e12d7d5e83d6e751b0", "score": "0.52253824", "text": "boolean hasSource();", "title": "" }, { "docid": "b9e58096e8e144ad3f6834764f66dc0d", "score": "0.52138186", "text": "private boolean updatePortal(int x, int y, int fromX, int fromY){\n return (((!isEquals(x,fromX))) || (!isEquals(y,fromY)));\n }", "title": "" }, { "docid": "1456a7f1c3fe1f81d9fcc48fcad05703", "score": "0.51993066", "text": "public boolean canGetDoNotDisturb();", "title": "" }, { "docid": "fc2306a8425aeb2a5a5ed2629bbd789a", "score": "0.51976293", "text": "protected boolean hasLocation(Response response) {\r\n \t\t\t// boolean success =\r\n \t\t\t// response.hasOption(OptionNumberRegistry.LOCATION_PATH);\r\n \t\t\tboolean success = response.getOptions().getLocationPathCount() > 0;\r\n \r\n \t\t\tif (!success) {\r\n \t\t\t\tSystem.out.println(\"FAIL: Response without Location\");\r\n \t\t\t} else {\r\n \t\t\t\tSystem.out.printf(\"PASS: Location (%s)\\n\", response\r\n \t\t\t\t\t\t.getOptions().getLocationPathString());\r\n \t\t\t}\r\n \r\n \t\t\treturn success;\r\n \t\t}", "title": "" }, { "docid": "6373f4b751638e5f954395c6bb420e2a", "score": "0.5196467", "text": "boolean hasHttpURL();", "title": "" }, { "docid": "3683b4545ec49972d66e35583f5732f1", "score": "0.51769024", "text": "public boolean validateDestination(String host)\n {\n if (_white.size() > 0)\n {\n Object whiteObj = _white.getLazyMatches(host);\n if (whiteObj == null)\n {\n return false;\n }\n }\n\n if (_black.size() > 0)\n {\n Object blackObj = _black.getLazyMatches(host);\n if (blackObj != null)\n {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "b176acf038e9eab975e1741d0e2b5f64", "score": "0.51570934", "text": "boolean hasDistance();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.5139212", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.5139212", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.5139212", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.5139212", "text": "boolean hasHost();", "title": "" }, { "docid": "82875c9b05e1988270d21a541cb432f8", "score": "0.5139212", "text": "boolean hasHost();", "title": "" }, { "docid": "ef47f3fefd55e46044f2db8c23d43770", "score": "0.51334363", "text": "public boolean hasDataForLocation(Location loc, boolean checkValid);", "title": "" }, { "docid": "bf4d49804df10a3f27f757691577e09f", "score": "0.513262", "text": "@Ignore @Test\n public void testHandlingResponse() throws IOException {\n\n logger.info(\"URL : \" + url);\n\n if (!url.equals(\"test.com\")) {\n List<DTOProvidorA> response = providor.handlingResponse(this.url);\n\n assertTrue(response.size() > 0);\n\n }\n\n }", "title": "" }, { "docid": "1f86ab1f7bd2234ef5aa0c6de423a1f3", "score": "0.5115922", "text": "public void setNeedsDestinationFlag(boolean theFlag) { this.needsDestination = theFlag; }", "title": "" }, { "docid": "6f97d524721f62b29b293577720cff05", "score": "0.5113909", "text": "@Override\n\tpublic boolean valid() {\n\t\tif(!d_initiator.getCountries().containsKey(d_source.getID()) ||\n\t\t\t\t!d_initiator.getCountries().containsKey(d_target.getID())){\n\t\t\tSystem.out.println(\"Source or Destination country do not belong to Player\" +d_initiator.getPlayerName());\n\n\t\t\ttry {\n\t\t\t\td_logPrintHandler.LogFileWriter(\"Player \"+ d_source.getName()+\" could not advance\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t\tif(!d_map.getCountries().get(d_source.getID()).getNeighbors().contains(d_target)){\n\t\t\tSystem.out.println(\"Countries are not neighbors\");\n\n\t\t\ttry {\n\t\t\t\td_logPrintHandler.LogFileWriter(\"Player \"+ d_source.getName()+\" could not advance\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t\tif(d_source.getNumberOfArmies() < d_num_to_advance){\n\t\t\tSystem.out.println(\"Not enough reinforcements to move\");\n\n\t\t\ttry {\n\t\t\t\td_logPrintHandler.LogFileWriter(\"Player \"+ d_source.getName()+\" could not advance\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "46ecaf227dab201bd9f3146cceba9010", "score": "0.5092131", "text": "boolean shouldLockThisFirst(Location dest) {\n if (loc.x > dest.x)\n return true;\n else if (loc.x < dest.x)\n return false;\n else {\n if (loc.y > dest.y)\n return true;\n else if (loc.y < dest.y)\n return false;\n else {\n System.out.println(\"Two distinct Locations cannot share same location.\");\n assert false;\n return false;\n }\n }\n }", "title": "" }, { "docid": "6599af64ca64bb6f56009e04318818de", "score": "0.50812703", "text": "public boolean getCacheValidatedWithOriginServer() {\n return instance.getCacheValidatedWithOriginServer();\n }", "title": "" }, { "docid": "f8d84ac56015162a54c8d2ef0dd8d12d", "score": "0.5078312", "text": "boolean hasTheirServer();", "title": "" }, { "docid": "13e67a682a4dba09c71f03bb37fa9027", "score": "0.5076323", "text": "public boolean checkTeleported() {\n\t\tMove lastMove = moves.peek();\n\t\treturn lastMove.getTeleported();\n\t}", "title": "" }, { "docid": "2ae78756d6907efd29a9b4d226b0806f", "score": "0.50700164", "text": "@Override\n public boolean getIfNewer(final String resourceName, final File destination,\n final long timestamp) throws TransferFailedException,\n ResourceDoesNotExistException, AuthorizationException {\n return false;\n }", "title": "" }, { "docid": "c66289c600b0e5b4c2d179e823c4cd3e", "score": "0.50681245", "text": "boolean isReachable();", "title": "" }, { "docid": "df5f6bcf704e9388397b03fea90dc8ae", "score": "0.5064116", "text": "Waypoint getDestination();", "title": "" }, { "docid": "ee04a8ae6b3801e50d19e6a5b83286c2", "score": "0.5061692", "text": "boolean hasAffiliateLocationFeedItem();", "title": "" }, { "docid": "68797dc26993d4f4b2995d3302876cf8", "score": "0.50570893", "text": "@Override\r\n\tpublic boolean canTeleport() {\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "820c4846b86ebe1e4cce5f0e28d7f253", "score": "0.5054168", "text": "public boolean hasOrigin(String origin) {\n return mSharedPreferences.contains(getOriginKey(origin));\n }", "title": "" }, { "docid": "079b5370a484a44a6c5fc08c4faa198b", "score": "0.5048713", "text": "boolean isSetMessageDestinationLink();", "title": "" }, { "docid": "8bac9be1dcdd80a61b8407ee4c6c98ac", "score": "0.5044518", "text": "@Override\n public ResponseEntity<FareResponse> getFareDetails(final String origin, final String destination) {\n log.info(\"method to call the mock api to get fare details\");\n ResponseEntity<FareResponse> fareResponseEntity = null;\n Map<String, String> uriParams = new HashMap<>();\n uriParams.put(\"origin\", origin);\n uriParams.put(\"destination\", destination);\n UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(faresUrl);\n\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Accept\", MediaType.APPLICATION_JSON_VALUE);\n HttpEntity<String> requestEntity = new HttpEntity<>(headers);\n try {\n fareResponseEntity = restTemplate.exchange(builder.buildAndExpand(uriParams).toUriString(), HttpMethod.GET, requestEntity, FareResponse.class);\n if (!fareResponseEntity.getStatusCode().is2xxSuccessful()) {\n exceptionHandlerHelper.handleException(fareResponseEntity.getStatusCode());\n }\n }\n catch (ResourceAccessException | HttpStatusCodeException exception) {\n log.error(\"Exception occurred while calling mock api:{}\", exception.getMessage(), exception);\n if (exception instanceof HttpStatusCodeException) {\n exceptionHandlerHelper.handleException(((HttpStatusCodeException) exception).getStatusCode());\n }\n }\n return fareResponseEntity;\n }", "title": "" }, { "docid": "850104e51cbf9393d9a5e7475508548b", "score": "0.50441504", "text": "boolean hasForwardHostHeader();", "title": "" }, { "docid": "5bc095bef0fd6412f936927d9902941b", "score": "0.5043636", "text": "boolean hasCoordinacionDeLaMateria();", "title": "" }, { "docid": "a821985151567fa770b369087fd30efb", "score": "0.5043051", "text": "public boolean isOriginAllowed(String origin) {\n return mSharedPreferences.getBoolean(getOriginKey(origin), false);\n }", "title": "" }, { "docid": "8046a7eaf5ac4a781b579ea2261548e3", "score": "0.5041368", "text": "private void assertIsCopyOf(File origin, File copy) {\r\n assertEquals(origin.getContents(), copy.getContents());\r\n }", "title": "" }, { "docid": "6088756392520fad772a1614d436486c", "score": "0.5028573", "text": "public void reachDestination() {\n reachedDestination = true;\n }", "title": "" }, { "docid": "2c2b4e31aa346d652eb5b9dec48a610a", "score": "0.50262755", "text": "boolean hasAllowMissingOrFailed();", "title": "" }, { "docid": "ef0630c263310fa8420f1d1e58810c7b", "score": "0.5025605", "text": "public boolean check404(String target){\n String url = URLUtil.normalizeURL(target) + UUID.randomUUID();\n// mainController.logTextArea.appendText(Utils.log(\"url is -> \" + url);\n return HTTPUtils.getRequest(url).getStatus() == 200;\n\n }", "title": "" }, { "docid": "d235857e6b8b796b11d52f05c1bda00d", "score": "0.5023005", "text": "@java.lang.Override\n public boolean hasOriginatorCacheGuid() {\n return instance.hasOriginatorCacheGuid();\n }", "title": "" }, { "docid": "383396d76257d0736a6e7cb97883f2ca", "score": "0.50145984", "text": "boolean hasTournamentinfo();", "title": "" } ]
ee84653c3a116ca7cfb172b3c4da4235
optional .org.roylance.yaorm.Task task = 2;
[ { "docid": "afe8d0e6e733cb7ab73a694cffff8179", "score": "0.5835533", "text": "public org.roylance.yaorm.TestingModel.TaskOrBuilder getTaskOrBuilder() {\n if (taskBuilder_ != null) {\n return taskBuilder_.getMessageOrBuilder();\n } else {\n return task_ == null ?\n org.roylance.yaorm.TestingModel.Task.getDefaultInstance() : task_;\n }\n }", "title": "" } ]
[ { "docid": "fc392f6f0c76407ccae9fd5f97b39f13", "score": "0.8438026", "text": "org.roylance.yaorm.TestingModel.Task getTask();", "title": "" }, { "docid": "227d694f0b063b8d87b8379807b1a727", "score": "0.789859", "text": "org.roylance.yaorm.TestingModel.Task getNewTask();", "title": "" }, { "docid": "bb5af08a451ff2943885393248f6b7fb", "score": "0.7464751", "text": "org.roylance.yaorm.TestingModel.TaskOrBuilder getTaskOrBuilder();", "title": "" }, { "docid": "6ceb752717d0ce8bd5bade1c42236319", "score": "0.7120544", "text": "org.roylance.yaorm.TestingModel.TaskOrBuilder getNewTaskOrBuilder();", "title": "" }, { "docid": "e582c611fbd5b2af9fba328135359cb4", "score": "0.7063605", "text": "org.roylance.yaorm.TestingModel.Task getParentTask();", "title": "" }, { "docid": "2e0f8b4f12910bb2d370bf5acb8573c6", "score": "0.6823798", "text": "TaskId taskId();", "title": "" }, { "docid": "b7278a4f4e06530eb2c0405cae75096d", "score": "0.6704779", "text": "TaskId getTaskId();", "title": "" }, { "docid": "de5c0a046390fba8f8f68a50b8a31dd6", "score": "0.6660625", "text": "public abstract Task getTask();", "title": "" }, { "docid": "67d551290baf5beafc00ff4bc83bae98", "score": "0.66468775", "text": "Task createTask();", "title": "" }, { "docid": "ce9fc18412682cfec70708fda3c4ba68", "score": "0.6481539", "text": "Task save(Task task);", "title": "" }, { "docid": "c6d26e0cb8f2332df3f24b0822fcee9f", "score": "0.64596415", "text": "Task findTaskById(Long task_id);", "title": "" }, { "docid": "425eea52d982930cd760abe33e31b514", "score": "0.6457422", "text": "public interface Task {\n\n String getId();\n\n Site getSite();\n}", "title": "" }, { "docid": "f9f739d5874f4a1c2eb30215560b342c", "score": "0.6451772", "text": "public UserTask() {\r\n super();\r\n task.setName(\"User.Task\");\r\n }", "title": "" }, { "docid": "45a016815d91bc09b9caca58ed7d58c0", "score": "0.644882", "text": "public int getTaskId();", "title": "" }, { "docid": "633cd41410c3fc30dcad50ed6a4f6921", "score": "0.6439955", "text": "public org.roylance.yaorm.TestingModel.TaskOrBuilder getTaskOrBuilder() {\n return getTask();\n }", "title": "" }, { "docid": "c3c42dc5cdbcc291a2e712bba1096750", "score": "0.64233655", "text": "public org.roylance.yaorm.TestingModel.Task getTask() {\n return task_ == null ? org.roylance.yaorm.TestingModel.Task.getDefaultInstance() : task_;\n }", "title": "" }, { "docid": "18c43055117cbf5f67de61d04a81f354", "score": "0.64081997", "text": "public String getTask() {\r\n return this.task;\r\n }", "title": "" }, { "docid": "bc4e0a9134e5b3e22d13cc01a02fef04", "score": "0.63577694", "text": "int getTaskId();", "title": "" }, { "docid": "d60304d84c2a31192e0c94f6b2c77d3a", "score": "0.6340079", "text": "@API(status = API.Status.EXPERIMENTAL)\npublic interface Task {\n}", "title": "" }, { "docid": "2c893540cb1df401846e1f98976ace8d", "score": "0.6321459", "text": "public interface Task {\n /**\n * 任务名称,唯一标示\n *\n * @return\n */\n @NonNull\n String taskName();\n\n /**\n * 执行task\n */\n void run() throws Throwable;\n\n /**\n * task依赖的其他task\n *\n * @return\n */\n @NonNull\n List<String> dependsOn();\n\n /**\n * task执行的任务调度器\n *\n * @return\n */\n @NonNull\n Executor runOn();\n}", "title": "" }, { "docid": "f4d7f18a4fb9b057309dc816b883b656", "score": "0.6308099", "text": "org.roylance.yaorm.TestingModel.TaskOrBuilder getParentTaskOrBuilder();", "title": "" }, { "docid": "07097c9046ec566f1466fa37934d28f4", "score": "0.63010657", "text": "public abstract void addTaskFromDB();", "title": "" }, { "docid": "243c2e69fa30e4bc24a2a6ffe99f9c1e", "score": "0.62596035", "text": "DbCreateTask execute();", "title": "" }, { "docid": "40d0aa36a5049a186c6bcdff83ca9d78", "score": "0.62537515", "text": "public interface Task\n{\n /**\n * Specify the context in which the task operates in.\n * The Task will use the TaskContext to receive information\n * about it's environment.\n */\n void contextualize( TaskContext context )\n throws TaskException;\n\n /**\n * Execute task.\n * This method is called to perform actual work associated with task.\n * It is called after Task has been Configured.\n *\n * @exception TaskException if task fails to execute\n */\n void execute()\n throws TaskException;\n}", "title": "" }, { "docid": "916e17708c82dbfd1abc1fb6cf6b8ef9", "score": "0.62502146", "text": "public org.roylance.yaorm.TestingModel.Task getTask() {\n if (taskBuilder_ == null) {\n return task_ == null ? org.roylance.yaorm.TestingModel.Task.getDefaultInstance() : task_;\n } else {\n return taskBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "05b0d609b3d99ac929388ff44f611bd2", "score": "0.62142944", "text": "public void setTask(Task task) {\n this.task = task;\n }", "title": "" }, { "docid": "89c4e6fe00d26c5868a42fd7f61aaa1d", "score": "0.61970216", "text": "public interface UserTaskExecutor {\n\t\n\t/**\n\t * \n\t * \n\t * @param execTask task to execute \n\t * @param variables variables to set on task complete event\n\t * @return simulation time increased by UserTask execution\n\t */\n\tlong simulateTaskExecution( TaskEntity execTask, Map<String, Object> variables);\n}", "title": "" }, { "docid": "0d16f077944f43803667bf347d4db425", "score": "0.6195221", "text": "public interface DatabaseTaskRunner {\n\n void doDatabaseTask(DatabaseTask task);\n}", "title": "" }, { "docid": "c218c5141df39d1f80bb46dc7e86ae59", "score": "0.61702317", "text": "String getTaskId();", "title": "" }, { "docid": "c218c5141df39d1f80bb46dc7e86ae59", "score": "0.61702317", "text": "String getTaskId();", "title": "" }, { "docid": "b1fe30b0806bf5986df1d8d82b657530", "score": "0.61342686", "text": "public interface TaskExecutor {\r\n void execute(Long slbId);\r\n}", "title": "" }, { "docid": "9c78d0baf4113ec42b0f7426a3d37cb4", "score": "0.613036", "text": "public Task() {\r\n\t}", "title": "" }, { "docid": "9a843430e50277f3a4d0095d2b28c11e", "score": "0.6111389", "text": "public String getTaskId() {\n return taskId;\n }", "title": "" }, { "docid": "068977ef0011d74cb2542f9362a5e8e2", "score": "0.608544", "text": "public abstract Task getTask(TimeStamp ts);", "title": "" }, { "docid": "80bebd87874d5b24b6fdd806234d8350", "score": "0.60788155", "text": "public interface TaskContext {\n\n /**\n * @return 任务系统配置\n */\n TaskConfigOps getConfigOps();\n /**\n * @return 任务存储器\n */\n TaskQueue getTaskQueue();\n\n /**\n * @return 任务控制器\n */\n TaskController getTaskController();\n\n /**\n * @return 任务代理器\n */\n TaskProxy getTaskProxy();\n\n /**\n * @return 任务调度器\n */\n TaskDispatcher getTaskDispatcher();\n\n TaskBeanFactory getTaskBeanFactory();\n\n /**\n * @return 任务编码器\n */\n TaskCoding getTaskCoding();\n\n /**\n * @return 任务监视器\n */\n TaskMonitor getTaskMonitor();\n\n\n\n}", "title": "" }, { "docid": "f7d66c6cdaf6f5a2d96783d5814cc0d1", "score": "0.60728574", "text": "void mo88856a(DbAsyncEntity aVar);", "title": "" }, { "docid": "d5dd0e4db750fbb48f46dee6a9cd941d", "score": "0.6026981", "text": "org.roylance.yaorm.TestingModel.Task getCompletedTasks(int index);", "title": "" }, { "docid": "d777186e340cb0a5faca24b60af7870c", "score": "0.6015526", "text": "public Task() {\n\n super();\n }", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.600386", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.600386", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.600386", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.600386", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.600386", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.600386", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "01726197a23eaa00410edc3620f20785", "score": "0.600386", "text": "java.lang.String getTaskId();", "title": "" }, { "docid": "82961139edf3f97d56a30090c34ccc26", "score": "0.5989669", "text": "public org.roylance.yaorm.TestingModel.TaskOrBuilder getNewTaskOrBuilder() {\n return getNewTask();\n }", "title": "" }, { "docid": "6405e5dede9874774ecc8cd920b2a7e0", "score": "0.59869534", "text": "public int getTaskNumber();", "title": "" }, { "docid": "6800ada9b2bbfae9d86f0684113611bc", "score": "0.5946997", "text": "public String getTask(){\n\t\treturn \"Task 6\";\n\t}", "title": "" }, { "docid": "5c6fe76aee12110991fd0e6eb1f3b507", "score": "0.59405285", "text": "public interface ITask {\n\t\n\t/**\n\t * Gives the name of this task.\n\t * Task names should be in the format\n\t * AssignmentName:StepName\n\t * \n\t * @return a String representing task name (AssignmentName:StepName)\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * Gives the UID of the parent assignment\n\t * \n\t * @return the assignment ID\n\t */\n\tpublic String getAssignmentID();\n\t\n\t/**\n\t * Sets var to UID of parent assignment.\n\t * Must have mutator, so var can be set \n\t * when ITask added to IAssignment.\n\t * \n\t * @param UID of parent assignment\n\t */\n\tpublic void setAssignmentId(String id);\n\t\n\t/**\n\t * Gives the UID of this task\n\t * \n\t * @return the task ID\n\t */\n\tpublic String getTaskID();\n\t\n\t/**\n\t * Gives the percent of total assignment this task represents (scale from 0 to 1 representing 0% to 1%)\n\t * \n\t * @return a double representing the percent of total\n\t */\n\tpublic double getPercentOfTotal();\n\t\n\t/**\n\t * Gives the index, or order number of execution, of this task. <br>\n\t * Corresponds to the number of associated TemplateStep.\n\t * \n\t * @return int number of this Task in execution order\n\t */\n\tpublic int getTaskNumber();\n\t\n\t/**\n\t * Gives the percent the user has completed (scale from 0 to 1 representing 0% to 1%) of this task\n\t * \n\t * @return a double representing the percent completed\n\t */\n\tpublic double getPercentComplete();\n\t\n\t/**\n\t * Sets/updates how much of ITask has been\n\t * completed by user thus far.\n\t * \n\t * @param percent completed by user\n\t */\n\tpublic void setPercentComplete(double percent);\n\t\n\t/**\n\t * Gives the preferred time of day to work on this task\n\t * \n\t * @return an enum representing the time preferred\n\t */\n\tpublic TimeOfDay getPreferredTimeOfDay();\n\t\n\t/**\n\t * Sets optimal TimeOfDay to schedule this Task.\n\t * Mutator is necessary so that it can be updated\n\t * by learning algorithms.\n\t * \n\t * @param time of day user should work on this task\n\t */\n\tpublic void setPreferredTimeOfDay(TimeOfDay tod);\n\t\n\t/**\n\t * Gives the suggested length of time to work on this task\n\t * \n\t * @return a double representing suggested length\n\t */\n\tpublic double getSuggestedBlockLength();\n\t\n\t/**\n\t * Sets the optimal length of each contiguous block\n\t * of work scheduled to complete this task. Mutator\n\t * is necessary so that var can be updated by\n\t * learning algorithms.\n\t * \n\t * @param length of optimal block of work for this Taks\n\t */\n\tpublic void setSuggestedBlockLength(double length);\n\t\n\t\n\t/**\n\t * Returns a detailed string representation of \n\t * the Task\n\t * \n\t * @return a String representation of the Task\n\t */\n\tpublic String fullString();\n}", "title": "" }, { "docid": "745528cd16bb45230cd7806b72ff1fba", "score": "0.59380955", "text": "Task findById(int id);", "title": "" }, { "docid": "fda63da37e377a1c89d54dd0ebd11e70", "score": "0.59340256", "text": "public String getTaskType() {\r\n return \"task\";\r\n }", "title": "" }, { "docid": "8462bdc8e1a342c4ab7dd02103c6d707", "score": "0.59318256", "text": "@Override\r\n\tpublic boolean UpdateTask(DB_Task task) \r\n\t{\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "42251204fcc2904dfb79cf69fbfa2e53", "score": "0.5931749", "text": "public interface Task {\n\t\n\tpublic void compute();\n\n}", "title": "" }, { "docid": "84c62628ffb897ec447a45da8dc714fe", "score": "0.5910722", "text": "public void addTask(SchTask task);", "title": "" }, { "docid": "6bd063a380c518d6191801b610155c1e", "score": "0.5899078", "text": "public abstract void addTask(ModelTask newTask, boolean saveToDB);", "title": "" }, { "docid": "96720ed5f64ddf6fb1f0f0c923216662", "score": "0.589395", "text": "TaskRepository tasks();", "title": "" }, { "docid": "41382938eb3876768201b464c1283339", "score": "0.588458", "text": "@Override\n\tpublic void doTask(Entity e) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "5e41a9fd4b674becfaa2acc2f9b67fc8", "score": "0.5871745", "text": "public String getTaskID();", "title": "" }, { "docid": "3c80b6b560ef662a538033884c79ad6f", "score": "0.587028", "text": "public void addTask(Task task);", "title": "" }, { "docid": "f0f51313fac9e2d3dd8bffe7932dd3b3", "score": "0.58701044", "text": "public void updateTask(SchTask task);", "title": "" }, { "docid": "e64c399c8f3d72e0a608c082f4a4c32d", "score": "0.5861463", "text": "public int getTaskID() {\r\n\treturn fieldTaskID;\r\n}", "title": "" }, { "docid": "ae6f153a33ab8a5735392bf23c8e7ddf", "score": "0.5858987", "text": "@Override\n\tprotected Task<V> createTask() {\n\t\treturn mytask;\n\t}", "title": "" }, { "docid": "6a18d08a670ddbdbcd543ca6850829bb", "score": "0.5854764", "text": "public Task addTask(int userId, int projectId, String taskName) throws SQLException;", "title": "" }, { "docid": "68e779b796a34aa6978af1fdd765c40b", "score": "0.58545566", "text": "public interface UpdateTask {\n \n /**\n * Tasks must not start themselves in the constructor. Do it here.\n */\n public void start();\n\n public void shutdown();\n\n public boolean isRunning();\n\n public UpdateType getType();\n\n public UpdateMethod getMethod();\n\n /**\n * The current URI being checked or downloaded from.\n * Can change if there are multiple URIs to try.\n */\n public URI getURI();\n\n /**\n * Valid for plugins\n */\n public String getID();\n}", "title": "" }, { "docid": "26875023403c0907303a37f035ee4bb7", "score": "0.5844436", "text": "Task(String description) {\n this.description = description;\n this.isDone = false;\n }", "title": "" }, { "docid": "ebb4bc7a73451ab67ab1097ddc3efa5a", "score": "0.5843434", "text": "public Task getTask() {\n\t\treturn this.task;\n\t}", "title": "" }, { "docid": "dc7602ffb47b3180447b975fc944b602", "score": "0.5830571", "text": "public interface TaskDao extends GenericDao<Task, Long> {\n\n/*\n List<Task> getTasks();\n */\n Task saveTask(Task task);\n\n\n\n}", "title": "" }, { "docid": "74104efcbdc2b1236d4723861c030ab9", "score": "0.58230937", "text": "public Task() {\n name = null;\n status = null;\n }", "title": "" }, { "docid": "fde109e542358f04fe655eb87c521fb1", "score": "0.58204806", "text": "public Task getTask() {\n Task task = new Task();\n task.setDescription(tfDescription.getText());\n if(taskTypeCombo.getSelectedItem().toString().equalsIgnoreCase(\"Nota general\")){\n task.setType(Task.TaskType.GENERAL);\n }else{\n task.setType(Task.TaskType.SPECIFIC);\n }\n if(tfDate.getText().equals(\"\")){\n task.setDdmm(0);\n }else{\n task.setDdmm(Integer.parseInt(tfDate.getText()));\n }\n if(tfName.isEnabled()) {\n task.setName(tfName.getText());\n }\n\n return task;\n }", "title": "" }, { "docid": "26b6fa1390f81c0ddc4bf8cdcec0b5ac", "score": "0.581459", "text": "public void saveTask(final Task task){\n\n realm.executeTransaction(new Realm.Transaction() {\n @Override\n public void execute(Realm realm) {\n if (realm!=null){\n\n Log.e(\"Log\", \"Database was created \" );\n\n\n Number currentID = realm.where(Task.class).max(\"id\");\n int nextId;\n if (currentID == null){\n\n nextId=1;\n\n } else {\n nextId = currentID.intValue() + 1;\n }\n\n\n task.setId(nextId);\n\n\n Task s = realm.copyToRealm(task);\n } else {\n Log.e(\"Log\", \"Database not exits \" );\n }\n }\n });\n }", "title": "" }, { "docid": "f82e40d6462c52455f0ef1be574efc1f", "score": "0.58079", "text": "public ManagedTask task() {\n return task;\n }", "title": "" }, { "docid": "29deb0b0a7187367163a98df9570b534", "score": "0.58025444", "text": "org.roylance.yaorm.TestingModel.Task getProcessingTasks(int index);", "title": "" }, { "docid": "ee52708786ce911b54fc4dcbc0dcb1c8", "score": "0.58021784", "text": "public Task() {\n tag_ids = new HashMap<>();\n complete = false;\n family = false;\n }", "title": "" }, { "docid": "41fbadf124b0fa2cf3d5cd92f6764a5d", "score": "0.5798503", "text": "void setTaskId(String taskId) {\n this.taskId = taskId;\r\n }", "title": "" }, { "docid": "eb213c20c8de6a8e265fb3630bdb511d", "score": "0.579087", "text": "CompoundTask createCompoundTask();", "title": "" }, { "docid": "90ca5fac284f10db67e840e1e3b8975c", "score": "0.57896674", "text": "public Task(String label) {\n this.label = label;\n this.isDone = false;\n }", "title": "" }, { "docid": "423260a2efb9c1080ad5020d08308804", "score": "0.578704", "text": "public interface Task {\n /**\n * Execute the task\n *\n * @throws TaskException\n */\n void execute() throws TaskException;\n}", "title": "" }, { "docid": "99a650b6e6cc063a052edb0dabadf69a", "score": "0.57869065", "text": "public void addTask(Task t) {\n toDoService.addTask(t);\n\n }", "title": "" }, { "docid": "b10ec9685974509dd22e53f236fe7177", "score": "0.57799983", "text": "Task add(Task task);", "title": "" }, { "docid": "34d32d6c93b8d03ef125b7b3e38e498c", "score": "0.57669216", "text": "org.roylance.yaorm.TestingModel.WorkerState getState();", "title": "" }, { "docid": "313dad39dffb10984848afcc58fc5b0d", "score": "0.5766876", "text": "Key submit(Task<BuildResult> task);", "title": "" }, { "docid": "140657f0b3566dc827ed2487e6754950", "score": "0.5766454", "text": "public interface TaskDistributionStrategy {\n}", "title": "" }, { "docid": "9b6b5a0314425f6d59ce63d83d3b3b7e", "score": "0.5749289", "text": "Task(String s) {\n this.name = s;\n this.isDone = false;\n }", "title": "" }, { "docid": "7f6cfa729a4b1ec648990fe1ab69449c", "score": "0.57457197", "text": "public interface TaskManager\n{\n\n /**\n * Generates a uniquely identifiable task id\n * @return String Task ID for the task\n */\n Validation<RuntimeException, String> generateId();\n\n /**\n * Destroy this task id (so it can now be\n * possibly used by another in the system)\n * @param taskId\n */\n Validation<RuntimeException, ?> destroyId(String taskId);\n\n}", "title": "" }, { "docid": "ad0bbd097ac0a14907d5561b182847fa", "score": "0.57422143", "text": "public Task getNextTask();", "title": "" }, { "docid": "4c704642220ba5c0389584ac186db617", "score": "0.573973", "text": "@Override\n\tpublic void doTask() {\n\t\t\n\t}", "title": "" }, { "docid": "c38c8fae59af31f8c1c4ef3cacf7de4c", "score": "0.57396287", "text": "public org.roylance.yaorm.TestingModel.Task getNewTask() {\n return newTask_ == null ? org.roylance.yaorm.TestingModel.Task.getDefaultInstance() : newTask_;\n }", "title": "" }, { "docid": "443ccb549769c49b8ea61782870be849", "score": "0.5738416", "text": "public Task(){\r\n\t\tthis.mTaskName = UNNAMED_TASK_STR; \r\n\t\tthis.mTaskId = UUID.randomUUID();\r\n\t\tthis.setRole(new DefaultRole());\r\n\t\tthis.mControlFlow = new TaskControlFlow();\r\n\t\tthis.selectedExecutionStrategy = TaskExecutionStrategy.ADDITIONORDER;\r\n\t\tthis.messageReturnBundle = new Message();\r\n\t\tmessageReturnBundle.put(\"taskid\", mTaskId.toString());\r\n\t\tsubscribeToReceiveContextUpdates();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bb468a880c2b28aad4cf770c10f32391", "score": "0.57380617", "text": "public PerformTaskStep()\n\t{\n\t\tthis.requireWorkflow = true;\n\t}", "title": "" }, { "docid": "4de4214eecfa522d493deb9eb8c16686", "score": "0.57271683", "text": "private TypicalTasks() {}", "title": "" }, { "docid": "8d48d211c1a5821af89804e15388ec07", "score": "0.57268053", "text": "public void setTaskName(String taskName);", "title": "" }, { "docid": "9cc3c76b670c1f13c81651cc949db318", "score": "0.57246673", "text": "public interface TaskContext extends TaskConfig {\n\n\t/**\n\t * @return The task def for this task\n\t */\n\tpublic TaskDef getTaskDef();\n\n\t/**\n\t * @return the container in which this task is running\n\t */\n\tpublic TaskContainer getContainer();\n\n\t/**\n\t * @return the platform manager\n\t */\n\tpublic PlatformMgr getPlatformMgr();\n\n\t/**\n\t * @return the current time\n\t */\n\tpublic TimeSource getTimeSource();\n\n\t/**\n\t * @return The tenant executing the task\n\t */\n\tpublic Tenant getTenant();\n\n\t/**\n\t * @return The task service\n\t */\n\tpublic TaskService getTaskService();\n\n\t/**\n\t * @return the document manager\n\t */\n\tpublic DocumentMgr getDocMgr();\n\n}", "title": "" }, { "docid": "1ba93122a917815bfe5b42069d95a730", "score": "0.5722018", "text": "public interface Task extends FlowNode { // <-- [user code injected with eMoflon]\n\n\t// [user code injected with eMoflon] -->\n}", "title": "" }, { "docid": "842d22b7e403121991520a155fea4f2c", "score": "0.57120293", "text": "public interface UpgradeTask\n{\n \n /**\n * The upgrade task will be executed.\n */\n void execute();\n\n /**\n * Prints information about upgrade task.\n */\n void printInfo();\n}", "title": "" }, { "docid": "3942c8a62cdfe853be905ec61f5cc39e", "score": "0.5710151", "text": "Task getUndertakeTask();", "title": "" }, { "docid": "0ea1cbe8bcab83717d99fe689c3499f4", "score": "0.57050014", "text": "ActTask selectByPrimaryKey(Long taskId);", "title": "" }, { "docid": "ec5030d92fc781edd029d7daa80e9207", "score": "0.5701211", "text": "public Task saveTask(Task task) {\n return taskRepository.save(task);\n }", "title": "" }, { "docid": "5ffb7755cf9387e6d64d813f7e1a65f6", "score": "0.56866395", "text": "public interface Command {\n\n /**\n * 处理完成后需要将order_event表纪录删除\n * @param taskEvent\n * @param taskFuture\n */\n public void exec(TaskEvent taskEvent, TaskFuture taskFuture);\n\n\n public String getEventType();\n\n\n\n}", "title": "" }, { "docid": "82ca76968bbe5437a1548d5329e683bc", "score": "0.5686087", "text": "public Task getTask(Task t) {\n return toDoService.getTask(t);\n\n }", "title": "" }, { "docid": "6dcc33e22062ea3f634e5022fa087336", "score": "0.5680926", "text": "void addTask(T task);", "title": "" } ]
0faad721e5959efc3c1d7fb10ad2006f
Get the [idX_min, idY_min, idX_max, idY_max] boundary of a rectangle.
[ { "docid": "b5ee3d716d7e96ccaf7f6d68d13e13f9", "score": "0.6787559", "text": "public int[] getXYBoundary(MyRectangle rmbr) {\n int[] xyLB = getXYId(rmbr.min_x, rmbr.min_y);\n int[] xyRT = getXYId(rmbr.max_x, rmbr.max_y);\n return new int[] {xyLB[0], xyLB[1], xyRT[0], xyRT[1],\n (xyRT[1] - xyLB[1] + 1) * (xyRT[1] - xyLB[0] + 1)};\n }", "title": "" } ]
[ { "docid": "282eb2022ce48a059919d7c3fc7f34b6", "score": "0.75757515", "text": "Rectangle getBoundaries();", "title": "" }, { "docid": "f644a7100257e0567412388567ee5f6c", "score": "0.70628667", "text": "public MyRectangle getMbrOfBoundary(int[] xyBoundary) {\n MyRectangle leftBottom = getMbrOfCell(xyBoundary[0], xyBoundary[1]);\n MyRectangle rightTop = getMbrOfCell(xyBoundary[2], xyBoundary[3]);\n return new MyRectangle(leftBottom.min_x, leftBottom.min_y, rightTop.max_x, rightTop.max_y);\n }", "title": "" }, { "docid": "e9a457435cf722418faaa9442243b307", "score": "0.70390767", "text": "public long[] getBounds(){\n\t\tlong[] res = {vx-vw,vy+vh,vx+vw,vy-vh};\n\t\treturn res;\n\t}", "title": "" }, { "docid": "ffe9f5e43afb1242f7d029eef0067953", "score": "0.69225425", "text": "public Rectangle getBounds() {\n\t\treturn new Rectangle((int)x,(int)y, 20, 20);\n\t}", "title": "" }, { "docid": "b032f11f0ca9bbd9e1d238468e998cec", "score": "0.68680626", "text": "public Rectangle getBounds() {\n\n\t\treturn new Rectangle((int)x,(int)y, 40,24);\n\t}", "title": "" }, { "docid": "3aa10bd0d162ecac6c0c12df86b63b36", "score": "0.684378", "text": "public int[] getBounds() {\n\t\treturn new int[] { minX, minY, maxX, maxY };\n\t}", "title": "" }, { "docid": "39f24ba4aa57dabb8287125e12f8281d", "score": "0.679387", "text": "@Override\r\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle((int)x,(int)y,8,8);\r\n\t}", "title": "" }, { "docid": "7e8d706c11479992ec6e1f59fe62644a", "score": "0.6760397", "text": "public int[] getXYBoundary(Iterable<Integer> iterable) {\n int[] boundary =\n new int[] {Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE, 0};\n int count = 0;\n for (int id : iterable) {\n count++;\n int[] idXY = getXYId(id);\n boundary[0] = Math.min(idXY[0], boundary[0]);\n boundary[1] = Math.min(idXY[1], boundary[1]);\n boundary[2] = Math.max(idXY[0], boundary[2]);\n boundary[3] = Math.max(idXY[1], boundary[3]);\n }\n boundary[4] = count;\n return boundary;\n }", "title": "" }, { "docid": "847fe8d0eaea0f0f9e589032b8c1cdec", "score": "0.6757383", "text": "public Rectangle2D getBoundary() {\n\t\treturn new Rectangle2D(posX - width/3, posY - width/3, 2*width/3, 2*height/3);\n\t}", "title": "" }, { "docid": "ece2364ce9447509420927cfceb981d7", "score": "0.6666562", "text": "@Override\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle((int) x, (int) y, 32, 32);\n\t}", "title": "" }, { "docid": "00607be512c321ed838d126a77c12f06", "score": "0.6644503", "text": "public Rectangle getBoundingRectangle() {\n if (boundingRectangle != null) {\n return boundingRectangle;\n }\n int xMax, xMin;\n int yMax, yMin;\n Point tempSetPoint = regionPoints.iterator().next();\n xMax = xMin = tempSetPoint.getX();\n yMax = yMin = tempSetPoint.getY();\n for (Point p : regionPoints) {\n if (p.getX() > xMax) {\n xMax = p.getX();\n }\n if (p.getX() < xMin) {\n xMin = p.getX();\n }\n if (p.getY() > yMax) {\n yMax = p.getY();\n }\n if (p.getY() < yMin) {\n yMin = p.getY();\n }\n }\n boundingRectangle = new Rectangle(xMin, yMin, xMax - xMin, yMax - yMin);\n return boundingRectangle;\n }", "title": "" }, { "docid": "14d93d49fc882e10eab6f8dea11d0583", "score": "0.65700686", "text": "public Coordinate getBounds();", "title": "" }, { "docid": "76bf26d4715c7e66d9b56c3d1e30991f", "score": "0.6568787", "text": "public final Rectangle getBounds()\n/* */ {\n/* 1957 */ return getBounds2D().getBounds();\n/* */ }", "title": "" }, { "docid": "c4294955ae31cdb36936160d12edb50f", "score": "0.6537119", "text": "RectF getBounds();", "title": "" }, { "docid": "d218892027cc1681e63ac6aa8c8fa79e", "score": "0.65085095", "text": "public Rectangle getBounds() {\n\t\treturn new Rectangle(xLoc, yLoc, 32, 32);\n\t}", "title": "" }, { "docid": "574f6f8c0c8c3bc6603e5cf86ae5ab60", "score": "0.64925575", "text": "public abstract Rectangle getBounds();", "title": "" }, { "docid": "574f6f8c0c8c3bc6603e5cf86ae5ab60", "score": "0.64925575", "text": "public abstract Rectangle getBounds();", "title": "" }, { "docid": "0fbb5c99a2de8c2940856d021dce04e2", "score": "0.64732516", "text": "public Rectangle getBounds() {\r\n\t\tif (type == 1)\r\n\t\t\treturn new Rectangle(x, y+40, 55, 26);\r\n\t\tif (type == 3)\r\n\t\t\treturn new Rectangle(x, y+60, 55, 35);\r\n\t\treturn new Rectangle(x, y, w, h);\r\n\t}", "title": "" }, { "docid": "cbb5d0aeedb2b28ef096340242173e59", "score": "0.64672554", "text": "public static Rectangle getBounds() {\n\t\t return new Rectangle(x, y, DIAMETER, DIAMETER);\n\t\t }", "title": "" }, { "docid": "e239cd2da1a8ccfec0100b578f372a81", "score": "0.64524204", "text": "public static PVector[] getBoundaryXY() {\n\t\tPVector[] p;\n\n\t\tfloat leftX = mapOffsetX;\n\t\tfloat rightX = mapOffsetX + mapOffsetWidth;\n\t\tfloat topY = mapOffsetY;\n\t\tfloat bottomY = mapOffsetY + mapOffsetHeight;\n\n\t\tp = new PVector[2];\n\t\tp[0] = new PVector(s(leftX), s(topY));\n\t\tp[1] = new PVector(s(rightX), s(bottomY));\n\t\t\n\t\treturn p;\n\t}", "title": "" }, { "docid": "02070fe1cec9a8424f2253779e425372", "score": "0.6450239", "text": "public Rectangle getBounds(int x, int y) {\n\t\treturn new Rectangle(x, y, BLOCK_SIZE, BLOCK_SIZE);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3c059a6b135c2452fdc5481d83a6aa2b", "score": "0.6428386", "text": "public Rectangle getBound() {\n\t\tif(Up == 1) {\r\n\t\t\tif(facing == 1) {\r\n\t\t\t\treturn new Rectangle((int)x+20, (int)y+8, 4, 4);// up facing right\r\n\t\t\t}else {\r\n\t\t\t\treturn new Rectangle((int)x+10, (int)y+8, 4, 4);// up facing left\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tif(velX > 0) {\r\n\t\t\t\treturn new Rectangle((int)x+26, (int)y+17, 4, 4);// facing right idle\r\n\t\t\t}else {\r\n\t\t\t\treturn new Rectangle((int)x-3, (int)y+17, 4, 4);// facing right idle\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6c916a7220696d389470555053e6afb7", "score": "0.64150745", "text": "public Rectangle getBounds()\n\t{\n\t\treturn new Rectangle(X, Y, Width, Height);\n\t}", "title": "" }, { "docid": "17cfbb586e6a5b0764104569f9d3f605", "score": "0.6405143", "text": "public Shape bounds() {return new Rectangle2D.Float(minLon, maxLat, maxLon-minLon, minLat-maxLat);}", "title": "" }, { "docid": "a772095fcaf290c1a344dec7c32158a4", "score": "0.63995546", "text": "public abstract Rectangle2f getLowerOrLeftBounds(Rectangle2f bounds);", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.63397324", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "9fbfd0838fcc60a339c892e79d0238a0", "score": "0.63397324", "text": "Rectangle getCollisionRectangle();", "title": "" }, { "docid": "eae814108940fdeb7ed4ac9fe3b0f005", "score": "0.63386214", "text": "public MyRectangle getMbrOfCell(int idX, int idY) {\n double minx = resolutionX * idX;\n double miny = resolutionY * idY;\n double maxx = resolutionX * (idX + 1);\n double maxy = resolutionY * (idY + 1);\n return new MyRectangle(minx, miny, maxx, maxy);\n }", "title": "" }, { "docid": "6235fcc1b58adca574f0b9330f95c2be", "score": "0.6332867", "text": "public Rectangle getBounds()\n {\n return new Rectangle(getX(),getY(),width,height);\n }", "title": "" }, { "docid": "6eaddd7eb43de40eb06b4928b0f3ce76", "score": "0.62891686", "text": "public Rectangle getBounds()\r\n\t{\r\n\t\treturn new Rectangle(x, y, size, size);\r\n\t}", "title": "" }, { "docid": "0a31b9354b56ebe58e20eaefc9e18492", "score": "0.6267497", "text": "private Rectangle integerise(Rectangle2D rect) {\n/* 3441 */ int x0 = (int)Math.ceil(rect.getMinX());\n/* 3442 */ int y0 = (int)Math.ceil(rect.getMinY());\n/* 3443 */ int x1 = (int)Math.floor(rect.getMaxX());\n/* 3444 */ int y1 = (int)Math.floor(rect.getMaxY());\n/* 3445 */ return new Rectangle(x0, y0, x1 - x0, y1 - y0);\n/* */ }", "title": "" }, { "docid": "d316bc640b87944743770f79fa33bbe1", "score": "0.6236015", "text": "@Override\r\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle(x, y, 16, 16);\r\n\t}", "title": "" }, { "docid": "d22b7fa2a7fb4a0da66bfba00dd5ee6e", "score": "0.6194233", "text": "public Rectangle getBullpenBounds() {\n\t\treturn new Rectangle(0, 80, 320, 640);\n\t}", "title": "" }, { "docid": "46cb865590429e4c1d5e503b12c42a26", "score": "0.6190889", "text": "@JsMethod\n public native Rectangle getBounds();", "title": "" }, { "docid": "018a87529fbd7440bb61d540b02dae73", "score": "0.61798126", "text": "public double[] getBounds();", "title": "" }, { "docid": "ee256fe4fe1a611ef739e337910fd262", "score": "0.6175685", "text": "Rectangle2D getBorder(double x, double y, double width, double height);", "title": "" }, { "docid": "3d51c854541c5623b4a045e434a8214e", "score": "0.6147875", "text": "public Rectangle getBoundsRectangle() {\n return boundsRectangle;\n }", "title": "" }, { "docid": "aa3694a23c9ea4f4e34c4422bc20bb95", "score": "0.6147266", "text": "@Override\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle(x, y, 20, 60);\n\t}", "title": "" }, { "docid": "90a6a74b71c211cb66705b1fc5613563", "score": "0.6134545", "text": "public Shape getBounds() {\n\t\tRectangle rect = new Rectangle(Game.WIDTH / 50, 20);\r\n\t\trect.setLocation((int) x, (int)y);\r\n\t\treturn rect;\r\n\t}", "title": "" }, { "docid": "c4197e47e7f33272d729d26b0fb7f4a7", "score": "0.612743", "text": "public Range getBounds() {\n return new Range(min, max);\n }", "title": "" }, { "docid": "f98da8c5b1428b80abd1466f740747a0", "score": "0.6125581", "text": "public final synchronized Rectangle2D getBounds2D()\n/* */ {\n/* 709 */ int i = this.numCoords;\n/* 710 */ float f4; float f2; float f3; if (i > 0) {\n/* 711 */ f2 = f4 = this.floatCoords[(--i)];\n/* 712 */ f1 = f3 = this.floatCoords[(--i)];\n/* 713 */ while (i > 0) {\n/* 714 */ float f5 = this.floatCoords[(--i)];\n/* 715 */ float f6 = this.floatCoords[(--i)];\n/* 716 */ if (f6 < f1) f1 = f6;\n/* 717 */ if (f5 < f2) f2 = f5;\n/* 718 */ if (f6 > f3) f3 = f6;\n/* 719 */ if (f5 > f4) f4 = f5;\n/* */ }\n/* */ }\n/* 722 */ float f1 = f2 = f3 = f4 = 0.0F;\n/* */ \n/* 724 */ return new Rectangle2D.Float(f1, f2, f3 - f1, f4 - f2);\n/* */ }", "title": "" }, { "docid": "03a1342a33a010444ace97041bc55af7", "score": "0.6124333", "text": "@Override\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle(x, y, width, height);\n\t}", "title": "" }, { "docid": "eed91b5ed7fa6cc4582d34242449436b", "score": "0.6117443", "text": "public abstract GRectangle getBounds();", "title": "" }, { "docid": "7f375b698c795fb7ac367137527b0d81", "score": "0.6115438", "text": "AxisAlignedBBox bounds();", "title": "" }, { "docid": "37586919b4d5b8da765e9da582246c6f", "score": "0.6103016", "text": "public synchronized Rectangle getBoundingRect()\n {\n if (boundingRect == null)\n {\n Iterator i = getBounds().iterator();\n if (i.hasNext())\n {\n boundingRect = new Rectangle((Rectangle) i.next());\n while (i.hasNext())\n {\n boundingRect.union((Rectangle) i.next());\n }\n }\n }\n return boundingRect;\n }", "title": "" }, { "docid": "0bc1aa01fe52904c0975773bbfb761a8", "score": "0.60856426", "text": "@Override\n public Rectangle getBounds(int width, int height)\n {\n return new Rectangle((int) getX() + 11, (int) getY(), 9, 32);\n }", "title": "" }, { "docid": "b40f3c26c1f4347d70773ff55be6fd78", "score": "0.606001", "text": "public Rectangle getBounds() {\n\t\treturn bounds;\n\t}", "title": "" }, { "docid": "58ed8a1636bc0d21b72834b228c6aa27", "score": "0.604918", "text": "public Rectangle boundBox() {\n return new Rectangle(topLeft(),size);\n }", "title": "" }, { "docid": "e755682da88c9b031753ca8470127faf", "score": "0.6048424", "text": "public BoundingBox getBounds() {\n \t\treturn this.area;\n \t}", "title": "" }, { "docid": "b1605d1d140f9abcb38bb2a93954994b", "score": "0.60440254", "text": "public final synchronized Rectangle2D getBounds2D()\n/* */ {\n/* 1437 */ int i = this.numCoords;\n/* 1438 */ double d4; double d2; double d3; if (i > 0) {\n/* 1439 */ d2 = d4 = this.doubleCoords[(--i)];\n/* 1440 */ d1 = d3 = this.doubleCoords[(--i)];\n/* 1441 */ while (i > 0) {\n/* 1442 */ double d5 = this.doubleCoords[(--i)];\n/* 1443 */ double d6 = this.doubleCoords[(--i)];\n/* 1444 */ if (d6 < d1) d1 = d6;\n/* 1445 */ if (d5 < d2) d2 = d5;\n/* 1446 */ if (d6 > d3) d3 = d6;\n/* 1447 */ if (d5 > d4) d4 = d5;\n/* */ }\n/* */ }\n/* 1450 */ double d1 = d2 = d3 = d4 = 0.0D;\n/* */ \n/* 1452 */ return new Rectangle2D.Double(d1, d2, d3 - d1, d4 - d2);\n/* */ }", "title": "" }, { "docid": "de68cb029fbf1c4564dd689a38a53d66", "score": "0.6018893", "text": "public abstract Rectangle2f getUpperOrRightBounds(Rectangle2f bounds);", "title": "" }, { "docid": "1e709d5774fa7500878319b3dff52f6e", "score": "0.60114783", "text": "@Pure\n\tRectangle2d getVisibleBoundingBox();", "title": "" }, { "docid": "673ad6dcac00d3d2aeba24a34a8d0e25", "score": "0.6008654", "text": "private boolean coordinatesAreWithinBoundary(int x, int y) {\n return x >= 0 && y >= 0 && getWidth() > x && getHeight() > y;\n }", "title": "" }, { "docid": "8d7130a26f3048d786b95240ef592c1d", "score": "0.5989855", "text": "public Location[] getBounds() {\n Location.Location2D corners[] = new Location.Location2D[4];\n Location topCorner = new Location.Location2D(minX, maxY);\n corners[0] = new Location.Location2D(minX - topCorner.getX(), topCorner.getY() - minY);\n corners[1] = new Location.Location2D(maxX - topCorner.getX() + 20, topCorner.getY() - minY + 20);\n corners[2] = new Location.Location2D(minX - topCorner.getX() - 20, topCorner.getY() - maxY - 20);\n corners[3] = new Location.Location2D(maxX - topCorner.getX(), topCorner.getY() - maxY);\n\n return corners;\n }", "title": "" }, { "docid": "ee98d0a8eda7a0b68308ee16f46c107c", "score": "0.5976635", "text": "public double[] getBounds()\r\n {\r\n return new double[] {getMinValue(), getMaxValue()};\r\n }", "title": "" }, { "docid": "873ab9c97a874aa13fb19c4b537cc7d8", "score": "0.59709823", "text": "public Rectangle[] getSelectionBounds() {\n\t\tRectangle[] bounds = new Rectangle[3]; // There will be at most 3 rectangles\n\t\tRectangle bound1 = new Rectangle();\n\t\tRectangle bound2 = new Rectangle();\n\t\tRectangle bound3 = new Rectangle();\n\n\t\tbounds[0] = bound1;\n\t\tbounds[1] = bound2;\n\t\tbounds[2] = bound3;\n\n\t\tif (lastY > initY) { // Selection is downward\n\t\t\tbound1.x = initX;\n\t\t\tbound1.y = initY;\n\t\t\tbound1.width = cm.getCanvas().getWidth() - bound1.x;\n\t\t\tbound1.height = cm.getLineHeight();\n\n\t\t\tbound2.x = 0;\n\t\t\tbound2.y = bound1.y + cm.getLineHeight();\n\n\t\t\tif (lastY - initY == cm.getLineHeight()) { // 2 lines selection\n\t\t\t\tbound2.width = lastX;\n\t\t\t\tbound2.height = cm.getLineHeight();\n\n\t\t\t\tbound1.width = cm.getCanvas().getWidth();\n\t\t\t} else { // More than 2 lines selected\n\t\t\t\tbound2.width = cm.getCanvas().getWidth();\n\t\t\t\tbound2.height = lastY - bound2.y;\n\n\t\t\t\tbound3.x = 0;\n\t\t\t\tbound3.y = lastY;\n\t\t\t\tbound3.width = lastX;\n\t\t\t\tbound3.height = cm.getLineHeight();\n\n\t\t\t\tbound1.width = cm.getCanvas().getWidth();\n\t\t\t}\n\t\t} else if (lastY < initY) { // Selection is upward\n\t\t\tbound1.x = lastX;\n\t\t\tbound1.y = lastY;\n\t\t\tbound1.width = cm.getCanvas().getWidth() - lastX;\n\t\t\tbound1.height = cm.getLineHeight();\n\n\t\t\tbound2.x = 0;\n\t\t\tbound2.y = bound1.y + cm.getLineHeight();\n\n\t\t\tif (initY - lastY == cm.getLineHeight()) { // 2 lines selection\n\t\t\t\tbound2.width = initX;\n\t\t\t\tbound2.height = cm.getLineHeight();\n\n\t\t\t\tbound1.width = cm.getCanvas().getWidth();\n\t\t\t} else { // More than 2 lines selected\n\t\t\t\tbound2.width = cm.getCanvas().getWidth();\n\t\t\t\tbound2.height = initY - bound2.y;\n\n\t\t\t\tbound3.x = 0;\n\t\t\t\tbound3.y = initY;\n\t\t\t\tbound3.width = initX;\n\t\t\t\tbound3.height = cm.getLineHeight();\n\n\t\t\t\tbound1.width = cm.getCanvas().getWidth();\n\t\t\t}\n\t\t} else if (lastY == initY) { // Selection is only 1 line\n\t\t\tif (initX < lastX) { // Selection is towards the left\n\t\t\t\tbound1.x = initX;\n\t\t\t\tbound1.y = initY;\n\t\t\t\tbound1.width = lastX - initX;\n\t\t\t\tbound1.height = cm.getLineHeight();\n\t\t\t} else { // Selection is towards the right\n\t\t\t\tbound1.x = lastX;\n\t\t\t\tbound1.y = lastY;\n\t\t\t\tbound1.width = initX - lastX;\n\t\t\t\tbound1.height = cm.getLineHeight();\n\t\t\t}\n\t\t}\n\n\t\treturn bounds;\n\t}", "title": "" }, { "docid": "990241dd52eb714eb349d73e05197fef", "score": "0.5930185", "text": "public Rectangle getBoundsLeft(){\n return new Rectangle(getX(),getY()+10,5,height-20);\n }", "title": "" }, { "docid": "220e30405f3dc1dfcb2137831375dd4d", "score": "0.59234935", "text": "protected void generateBounds() {\r\n\r\n\t\tint size = boundsRatios[0].length;\r\n\r\n\t\tint xs[] = new int[size];\r\n\t\tint ys[] = new int[size];\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\txs[i] = Math.round(x + boundsRatios[0][i] * width);\r\n\t\t\tys[i] = Math.round(y + boundsRatios[1][i] * height);\r\n\t\t}\r\n\r\n\t\tbounds = new Polygon(xs, ys, size);\r\n\t}", "title": "" }, { "docid": "ccaa8307b4bff3f6fea485ff35ff4833", "score": "0.5922119", "text": "@Pure\n\tpublic Rectangle2d getBounds() {\n\t\treturn this.bounds;\n\t}", "title": "" }, { "docid": "101c6da45b6ede4f85b5cdcdd4c1dc32", "score": "0.5915661", "text": "public URect getBoundRect() {\n\t\tif (elementTemplate != null)\n\t\t\treturn new URect(elementTemplate.x, elementTemplate.y,\n\t\t\t\t\telementTemplate.w, elementTemplate.h);\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "9f0770d8653d84353eda0ca30aeef8fb", "score": "0.590929", "text": "public int[] checkBounds(int coord_x, int coord_y, int x_bound, int y_bound)\n\t{\n\t\tif(coord_x >= x_bound)\n\t\t{\n\t\t\tcoord_x = x_bound - 1;\n\t\t}\n\t\telse if(coord_x < 0)\n\t\t{\n\t\t\tcoord_x = 0;\n\t\t}\n\t\tif(coord_y >= y_bound)\n\t\t{\n\t\t\tcoord_y = y_bound - 1;\n\t\t}\n\t\telse if(coord_y < 0)\n\t\t{\n\t\t\tcoord_y = 0;\n\t\t}\n\t\tint values[] = {coord_x, coord_y};\n\t\treturn values;\n\t}", "title": "" }, { "docid": "3528ea2999d5d65c354fb4fb6371d996", "score": "0.5900487", "text": "public static int[] createRectangle(final int x0, final int y0, final int width, final int height) {\n\t\treturn new int[] { x0, y0, x0 + (width - 1), y0, x0 + (width - 1), y0 + (height - 1), x0, y0 + (height - 1), x0, y0 };\n\t}", "title": "" }, { "docid": "23bb56d88083e9aa821055db3978c1f4", "score": "0.5896659", "text": "public Rectangle getHitBox() {\n\t\treturn new Rectangle(x-width/2,y-height/2 ,width,height);\n\t}", "title": "" }, { "docid": "732faf7d36860a348caa1db7d69dece6", "score": "0.5889834", "text": "public AxisAlignedBB getAABB()\r\n/* 30: */ {\r\n/* 31:28 */ return AxisAlignedBB.getBoundingBox(this.xCoord + 0.5D - maxRange, 0.0D, this.zCoord + 0.5D - maxRange, this.xCoord + 0.5D + maxRange, 255.0D, this.zCoord + 0.5D + maxRange);\r\n/* 32: */ }", "title": "" }, { "docid": "84c6c2aa386d942667a992f79758e947", "score": "0.58741635", "text": "public RectBoundedBox(int x, int y, int w, int h) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\twidth = w;\n\t\theight = h;\n\t\tboundary = new Rectangle2D(this.x, this.y, width, height);\n\t}", "title": "" }, { "docid": "2a9dadd3d7ae160e0cb62f06c670b047", "score": "0.585789", "text": "public Rectangle getBoundsLeft() {\r\n\r\n\t\treturn new Rectangle((int)x, (int)y + 5, (int)5, (int)height - 10);\r\n\r\n\t}", "title": "" }, { "docid": "5c6ca8bea061d3df522d34141dec97bf", "score": "0.5844736", "text": "public BoundingBox getBounds() {\n\t\treturn bounds;\n\t}", "title": "" }, { "docid": "813b59f02f0eb77aa256b6d1e00541e5", "score": "0.5831944", "text": "public CoordBounds getRegionBoundsWC()\n {\n return new CoordBounds( x_center - dx, y_center - dy, \n x_center + dx, y_center + dy );\n }", "title": "" }, { "docid": "a5318100e72892fa09f7ffcdae736e9d", "score": "0.5831815", "text": "@Override\n\tpublic Rectangle getRect() {\n\t\treturn new Rectangle((int)x, (int)y, 32, 32);\n\t}", "title": "" }, { "docid": "46e04b052d081972e6579549f5e6b76d", "score": "0.58262235", "text": "private boolean coordsAreInBounds(\n int x,\n int y,\n int left,\n int top,\n int right,\n int bottom) {\n return x >= left && x <= right && y >= top && y <= bottom;\n }", "title": "" }, { "docid": "d6748650b6ddaa39efb1c9d5d0804d6a", "score": "0.58253825", "text": "public Rectangle2D getBoundingBox() {\n return listBounds;\n }", "title": "" }, { "docid": "5333b51ed5fe1bf45aedf751cc9fbd73", "score": "0.58134294", "text": "public Rectangle getBounds() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "327b40b9db4579fc6a6df0479884e220", "score": "0.5805652", "text": "public Rectangle getBounds2() {\r\n\t\tif (type == 1)\r\n\t\t\treturn new Rectangle(x+55, y, w-55, h);\r\n\t\tif (type == 3)\r\n\t\t\treturn new Rectangle(x+55, y, w-55, h);\r\n\t\treturn new Rectangle(x, y, w, h);\r\n\t}", "title": "" }, { "docid": "b60ac2ac568515735b3dfa24349b378a", "score": "0.5797358", "text": "@JsMethod\n public native Rectangle getLocalBounds();", "title": "" }, { "docid": "c3d4bc0cb467ad1c054a2e68a9e4570e", "score": "0.5795994", "text": "@Raw\n public Set<Square> getAreaBoundary();", "title": "" }, { "docid": "3fee9ee5977104e372c19d04a8c1c02f", "score": "0.57923114", "text": "public Rectangle getBoundsRight(){\n return new Rectangle(getX()+width-5,getY()+10,5,height-20);\n }", "title": "" }, { "docid": "871fe0b42a0c200b71f09714df6cebf8", "score": "0.57885444", "text": "public Rectangle getRectangle() {\n return new Rectangle((float) x, (float) y, texture.getWidth(), texture.getHeight());\n }", "title": "" }, { "docid": "a09fe3d8cfd30f1a0d74c16282ecb6a7", "score": "0.5787967", "text": "private void setRect(double minLat, double minLng, double maxLat,\n\t\t\tdouble maxLng) {\n\t\tif (!(minLat < maxLat)) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"GeoBounds is not valid - minLat must be less that maxLat.\");\n\t\t}\n\t\tif (!(minLng < maxLng)) {\n\t\t\tif (minLng > 0 && minLng < 180 && maxLng < 0) {\n\t\t\t\trects = new Rectangle2D[] {\n\t\t\t\t\t\t// split into two rects e.g. 176.8793 to 180 and -180 to\n\t\t\t\t\t\t// -175.0104\n\t\t\t\t\t\tnew Rectangle2D.Double(minLng, minLat, 180 - minLng,\n\t\t\t\t\t\t\t\tmaxLat - minLat),\n\t\t\t\t\t\tnew Rectangle2D.Double(-180, minLat, maxLng + 180,\n\t\t\t\t\t\t\t\tmaxLat - minLat) };\n\t\t\t} else {\n\t\t\t\trects = new Rectangle2D[] { new Rectangle2D.Double(minLng,\n\t\t\t\t\t\tminLat, maxLng - minLng, maxLat - minLat) };\n\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"GeoBounds is not valid - minLng must be less that maxLng or \"\n\t\t\t\t\t\t\t\t+ \"minLng must be greater than 0 and maxLng must be less than 0.\");\n\t\t\t}\n\t\t} else {\n\t\t\trects = new Rectangle2D[] { new Rectangle2D.Double(minLng, minLat,\n\t\t\t\t\tmaxLng - minLng, maxLat - minLat) };\n\t\t}\n\t}", "title": "" }, { "docid": "c15b4ac6fbc3ea93aaede58a6257ee82", "score": "0.5784526", "text": "public Rectangle getRectangle() {\n\t\treturn new Rectangle((int)x - cwidth / 2, (int)y - cheight / 2, cwidth, cheight);\n\t}", "title": "" }, { "docid": "66d4ee98d25ddea9627da1c9abc2df71", "score": "0.5779443", "text": "public Rectangle2D getLogicalBounds()\n/* */ {\n/* 379 */ setFRCTX();\n/* 380 */ initPositions();\n/* */ \n/* 382 */ LineMetrics localLineMetrics = this.font.getLineMetrics(\"\", this.frc);\n/* */ \n/* */ \n/* */ \n/* 386 */ float f1 = 0.0F;\n/* 387 */ float f2 = -localLineMetrics.getAscent();\n/* 388 */ float f3 = 0.0F;\n/* 389 */ float f4 = localLineMetrics.getDescent() + localLineMetrics.getLeading();\n/* 390 */ if (this.glyphs.length > 0) {\n/* 391 */ f3 = this.positions[(this.positions.length - 2)];\n/* */ }\n/* */ \n/* 394 */ return new Rectangle2D.Float(f1, f2, f3 - f1, f4 - f2);\n/* */ }", "title": "" }, { "docid": "48ac6a01d03910bd0f2bb4ad75ee69bc", "score": "0.5774801", "text": "private void setBoundaries() {\n if (iX >= rightBoundary) {\n iX = rightBoundary;\n }\n if (iX <= leftBoundary) {\n iX = leftBoundary;\n }\n if (iY >= bottomBoundary) {\n iY = bottomBoundary;\n }\n if (iY <= topBoundary) {\n iY = topBoundary;\n }\n }", "title": "" }, { "docid": "6b9b65e0baf9257f6d78ea080afcf62a", "score": "0.5771786", "text": "public Rectangle2D getBounds2D() {\n return bounds;\n }", "title": "" }, { "docid": "b915c7b79162235d544cdeb83d8c7255", "score": "0.5767389", "text": "public Rectangle2D.Double getBounds() {\n\t\treturn bounds;\n\t}", "title": "" }, { "docid": "3a554824e717a15c8488645e6877deaf", "score": "0.5756364", "text": "@UML(identifier=\"boundary\", obligation=MANDATORY, specification=ISO_19107)\n CurveBoundary getBoundary();", "title": "" }, { "docid": "4af0f13669c3730718437f3a63b05e50", "score": "0.57548887", "text": "public static void findPolygonExtent(final int[] x, final int[] y, final int[] xExtent, // xMin,\n\t\t\t// xMax\n\t\t\tfinal int[] yExtent) // yMin, yMax\n\t{\n\t\tint xMin = +Integer.MAX_VALUE;\n\t\tint xMax = -Integer.MAX_VALUE;\n\n\t\tint yMin = +Integer.MAX_VALUE;\n\t\tint yMax = -Integer.MAX_VALUE;\n\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\tif (x[i] < xMin) {\n\t\t\t\txMin = x[i];\n\t\t\t}\n\t\t\tif (x[i] > xMax) {\n\t\t\t\txMax = x[i];\n\t\t\t}\n\n\t\t\tif (y[i] < yMin) {\n\t\t\t\tyMin = y[i];\n\t\t\t}\n\t\t\tif (y[i] > yMax) {\n\t\t\t\tyMax = y[i];\n\t\t\t}\n\t\t}\n\n\t\txExtent[0] = xMin;\n\t\txExtent[1] = xMax;\n\n\t\tyExtent[0] = yMin;\n\t\tyExtent[1] = yMax;\n\t}", "title": "" }, { "docid": "414c5af11b21d0f9718e49a344305c19", "score": "0.5745211", "text": "public List<LatLng> getBoundaries(){\r\n\t\treturn boundaries;\r\n\t}", "title": "" }, { "docid": "65e50092b8085a297b737f838a37cb83", "score": "0.57396173", "text": "public Rectangle getBoundsRight() {\r\n\r\n\t\treturn new Rectangle((int) ((int)x + width - 5), (int)y + 5, (int)5, (int)height - 10);\r\n\r\n\t}", "title": "" }, { "docid": "402f3d3e697d0496c41fe2e50e62c0c3", "score": "0.5735333", "text": "public Shape getBounds() {\n\t\treturn bounds;\n\t}", "title": "" }, { "docid": "8b3a918492db8e3447a031751ff41971", "score": "0.5714668", "text": "public Real2Range getBoundingBox() {\n\t\tif (boundingBoxNeedsUpdating()) {\n\t\t\tReal2 xy = this.getXY();\n\t\t\tDouble width = getWidth();\n\t\t\tDouble height = getHeight();\n\t\t\tif (xy != null && width != null && height != null) {\n\t\t\t\tboundingBox = new Real2Range(xy, xy.plus(new Real2(width, height)));\n\t\t\t\tLOG.trace(\"BB0 \"+boundingBox);\n\t\t\t\tTransform2 t2 = this.getTransform2FromAttribute();\n\t\t\t\tLOG.trace(\"T \"+t2);\n\t\t\t\tboundingBox = boundingBox.getTranformedRange(t2);\n\t\t\t\tLOG.trace(\"BB1 \"+boundingBox);\n\t\t\t\tthis.setBoundingBoxAttribute(3);\n\t\t\t}\n\t\t}\n\t\treturn boundingBox;\n\t}", "title": "" }, { "docid": "cfed967b0f80e6e31867876c990e4513", "score": "0.5713341", "text": "public Bounds[] split() {\n Bounds[] ret = new Bounds[2];\n if ((maxLat - minLat) > (maxLon - minLon)) {\n float splitLat = (minLat + maxLat) / 2;\n ret[0] = clone();\n ret[0].maxLat = splitLat;\n ret[1] = clone();\n ret[1].minLat = splitLat;\n } else {\n float splitLon = (minLon + maxLon) / 2;\n ret[0] = clone();\n ret[0].maxLon = splitLon;\n ret[1] = clone();\n ret[1].minLon = splitLon;\n }\n return ret;\n }", "title": "" }, { "docid": "0407f390538c3ba1d6aee5d706234717", "score": "0.57132816", "text": "public Rectangle getBounds()\n {\n return new Rectangle(x_, y_, getIconWidth(), getIconHeight());\n }", "title": "" }, { "docid": "8b76cb3cda8b6d0cb82ea809b94e69a8", "score": "0.57057166", "text": "public /*@ pure */ boolean inBounds(int x, int y) {\r\n\t\tif (x > 4 || x < 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (y > 4 || y < 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "6ea9df16190743566d044f16c741c5d5", "score": "0.57055515", "text": "protected Rectangle getCollisionRectangle(float xOffset, float yOffset) {\n return new Rectangle((int) (x + bounds.x + xOffset),\n (int) (y + bounds.y + yOffset),\n bounds.width, bounds.height);\n }", "title": "" }, { "docid": "43c96abe93b646970d43e380b6bfbe6a", "score": "0.5701994", "text": "public Rectangle getBoundingBox() {\n\t\treturn getBoundingBox(radius, radius);\n\t}", "title": "" }, { "docid": "ddc24cd62c9efe0f27a8673d5a04129b", "score": "0.57013434", "text": "private static boolean inRect(final double rx, final int ry, final double rw, final int rh,\n final int xx, final int yy) {\n return xx >= rx && xx <= rx + rw && yy >= ry && yy <= ry + rh;\n }", "title": "" }, { "docid": "169359c5a46d7df49093bd76fc45ff36", "score": "0.56948406", "text": "public boolean isInBoundaries(int x, int y) {\n return (x >= 0 && x < width) && (y >= 0 && y < height);\n }", "title": "" }, { "docid": "28deee5cc723edebb90a7ebbbeef1a86", "score": "0.56923366", "text": "public double[] getPositionCollisionBoundary(){\n\t\tif (this.getWorld() != null && this.getTimeCollisionBoundary() != Double.POSITIVE_INFINITY){\n\t\t\tdouble[] boundaryColPos;\n\t\t\tdouble xPosColBound = this.getVelocity()[0]*this.getTimeCollisionBoundary() + this.getPosition()[0];\n\t\t\tdouble yPosColBound = this.getVelocity()[1]*this.getTimeCollisionBoundary() + this.getPosition()[1];\n\t\t\tif (xPosColBound >= (this.getWorld().getDimension()[0]-this.getRadius())*0.99 && xPosColBound <= (this.getWorld().getDimension()[0]-this.getRadius())*1.01){\n\t\t\t\txPosColBound = this.getWorld().getDimension()[0];\n\t\t\t}\n\t\t\tif (yPosColBound >= (this.getWorld().getDimension()[1]-this.getRadius())*0.99 && yPosColBound <= (this.getWorld().getDimension()[1]-this.getRadius())*1.01){\n\t\t\t\tyPosColBound = this.getWorld().getDimension()[1];\n\t\t\t}\n\t\t\tif (xPosColBound >= this.getRadius()*0.99 && xPosColBound <= this.getRadius()*1.01){\n\t\t\t\txPosColBound = 0;\n\t\t\t}\n\t\t\tif (yPosColBound >= this.getRadius()*0.99 && yPosColBound <= this.getRadius()*1.01){\n\t\t\t\tyPosColBound = 0;\n\t\t\t}\n\t\t\t\n\t\t\tboundaryColPos = new double[] {xPosColBound,yPosColBound};\n\t\t\treturn boundaryColPos;\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t\t}", "title": "" }, { "docid": "aab84f66ed97dbb9b0285cff0e66c6d5", "score": "0.56853956", "text": "public Rect getBoundsMarked()\n {\n Rect bounds = super.getBoundsMarked();\n Rect camBnds = _camera.getSceneBounds2D();\n if (camBnds.x < bounds.x) bounds.x = camBnds.x;\n if (camBnds.y < bounds.y) bounds.y = camBnds.y;\n if (camBnds.getMaxX() > bounds.getMaxX()) bounds.width = camBnds.getMaxX() - bounds.x;\n if (camBnds.getMaxY() > bounds.getMaxY()) bounds.height = camBnds.getMaxY() - bounds.y;\n return bounds;\n }", "title": "" }, { "docid": "0928e2ac6d40cccb2a386609caebe1b2", "score": "0.56750214", "text": "public Bounds getCollisionBounds() {\r\n\t\tBounds b = innerObject.getCollisionBounds();\r\n\t\tif (b == null)\r\n\t\t\treturn null;\r\n\t\tb.transform(t3D);\r\n\t\treturn b;\r\n\t}", "title": "" }, { "docid": "fc8a88811037c82e2be442cee22eacf5", "score": "0.56744415", "text": "public Rectangle2D getBounds2D() {\n\t\treturn null;\r\n\t}", "title": "" } ]
7794b92528882be6449a8702244d3e56
/ Fills the ListView with the mazes from the DB
[ { "docid": "9b0b794dfd4f5362799a5eede7da5e7a", "score": "0.7892968", "text": "public void populateListView() {\n mazeList = (ListView)findViewById(R.id.listViewMazes);\n AdminSQLite admin = new AdminSQLite(this, \"WumpusDB\", null, 5);\n SQLiteDatabase db = admin.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"SELECT id as _id, name, number_of_caves FROM GRAPH\", null);\n data = new String[]{\"_id\", \"name\", \"number_of_caves\"};\n toListIds = new int[]{R.id.maze_id, R.id.maze_name, R.id.maze_caves};\n SimpleCursorAdapter cursorAdapter = new SimpleCursorAdapter(this, R.layout.list_items, cursor, data, toListIds, 0);\n mazeList.setAdapter(cursorAdapter);\n cursor.close();\n }", "title": "" } ]
[ { "docid": "c6c30d53eb4917b2c0f0c5fa1927792b", "score": "0.7014334", "text": "public void populateListView(){\n recordsList.getItems().clear();\n mod.clear();\n mod = db.getRowsData();\n removeDuplicates();\n //int oldId = -1;\n for(int i=0; i<mod.size(); i++){\n recordsList.getItems().add(setCustomRow(mod.get(i)));\n }\n }", "title": "" }, { "docid": "d32e8f851bb69946bea18af3a5787202", "score": "0.6878873", "text": "public void ListarMarcas(){\n\t\tmarcas = fachada.ListarMarcas();\r\n\t\t//categorias = new ArrayList<Categoria>();\r\n\t\tsetListAdapter(new ArrayAdapter<Marca>(getActivity(), android.R.layout.simple_list_item_1, marcas));\r\n\t}", "title": "" }, { "docid": "1ced91f4ac1e8d9b7356d2bbd7b67932", "score": "0.6834435", "text": "private void populateListViewFromDB() {\nCursor cursor = myDb.getAllRows();\n\t\t\n\t\t// Allow activity to manage lifetime of the cursor.\n\t\t// DEPRECATED! Runs on the UI thread, OK for small/short queries.\n\t\tstartManagingCursor(cursor);\n\t\t\n\t\t// Setup mapping from cursor to view fields:\n\t\tString[] fromFieldNames = new String[] \n\t\t\t\t{DBS.KEY_NAME};//, DBS.KEY_STUDENTNUM, DBS.KEY_FAVCOLOUR, DBS.KEY_STUDENTNUM};\n\t\tint[] toViewIDs = new int[]\n\t\t\t\t{R.id.name};//, R.id.iv, R.id.colour, R.id.no};\n\t\t\n\t\t// Create adapter to may columns of the DB onto elemesnt in the UI.\n\t\tSimpleCursorAdapter myCursorAdapter = \n\t\t\t\tnew SimpleCursorAdapter(\n\t\t\t\t\t\tthis,\t\t// Context\n\t\t\t\t\t\tR.layout.rel_identity,\t// Row layout template\n\t\t\t\t\t\tcursor,\t\t\t\t\t// cursor (set of DB records to map)\n\t\t\t\t\t\tfromFieldNames,\t\t\t// DB Column names\n\t\t\t\t\t\ttoViewIDs\t\t\t\t// View IDs to put information in\n\t\t\t\t\t\t);\n\t\t\n\t\t// Set the adapter for the list view\n\t\tListView myList = (ListView) findViewById(R.id.listView1);\n\t\tmyList.setAdapter(myCursorAdapter);\n\t}", "title": "" }, { "docid": "a03db8a2516c491d602be4d57bbd0fa6", "score": "0.68043226", "text": "private void fillData() {\n\n // Fields from the database (projection)\n // Must include the _id column for the adapter to work\n String[] from = new String[]{AccountTable.COLUMN_NAME, AccountTable.COLUMN_MONTHLY_LIMIT};\n // Fields on the UI to which we map\n int[] to = new int[]{R.id.account_name, R.id.account_limit_value};\n\n getLoaderManager().initLoader(0, null, this);\n adapter = new SimpleCursorAdapter(getActivity(), R.layout.account_row, null, from,\n to);\n\n\n ListView listView = (ListView) getView().findViewById(R.id.lst_account);\n listView.setAdapter(adapter);\n\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Intent intent = new Intent();\n intent.setClass(getActivity(), AddTransaction.class);\n startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "bae44c76428e316f8b936af658c08d63", "score": "0.6687789", "text": "private void mostrarResultados(){\n listaCoches = new ArrayList<Coche>();\n listViewCoches = findViewById(R.id.listViewCoches);\n\n //Se inserta la lista rellenada dentro del adapter\n listaCoches = databaseManager.obtenerCoches();\n if (listaCoches != null && listaCoches.size() > 0){\n CochesAdapter adapter = new CochesAdapter(this, listaCoches);\n listViewCoches.setAdapter(adapter);\n }\n }", "title": "" }, { "docid": "bca3e57f58dc695d8bd9cb78fea98ec5", "score": "0.6657755", "text": "private void fillData() {\n\t\t//Fields in the DB from which we map \n\t\tString[] from = new String[] { ItemTable.COLUMN_NAME, ItemTable.COLUMN_LOCATION };\n\n\t\t// Fields on the UI to which we map\n\t\tint[] to = new int[] { R.id.itemName, R.id.location };\n\n\t\t// Ensure a loader is initialized and active.\n\t\tgetLoaderManager().initLoader( 0, null, this );\n\n\t\t// Note the last parameter to this constructor (zero), which indicates the adaptor should\n\t\t// not try to automatically re-query the data ... the loader will take care of this.\n\t\tthis.adapter = new SimpleCursorAdapter( this, R.layout.item_loc_list_row, null, from, to, 0 ){\n\t\t\t//Change the color of each ListItem to help the user\n\t\t\t@Override\n\t\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\t\tView v = super.getView(position, convertView, parent);\n\n\t\t\t\tif (position %2 ==1) {\n\t\t\t\t\tv.setBackgroundColor(Color.argb(TRIM_MEMORY_MODERATE, 100, 100, 100));\n\t\t\t\t} else {\n\t\t\t\t\tv.setBackgroundColor(Color.argb(TRIM_MEMORY_MODERATE, 170, 170, 170)); //or whatever was original\n\t\t\t\t}\n\n\t\t\t\treturn v;\n\t\t\t}\n\n\t\t};\n\n\t\t// Let this ListActivity display the contents of the cursor adapter.\n\t\tsetListAdapter( this.adapter );\n\t}", "title": "" }, { "docid": "0c1fdecea7650d9376e9ca66b9541191", "score": "0.66497844", "text": "private void viewData() {\n Cursor cursor = db.viewData();\n\n if (cursor.getCount() == 0) {\n Toast.makeText(this, \"Nothing to show\", Toast.LENGTH_SHORT).show();\n } else {\n while (cursor.moveToNext()) {\n listItem.add(cursor.getString(1));\n }\n\n adapter = new ArrayAdapter(this, android.R.layout.simple_list_item_1, listItem);\n personList.setAdapter(adapter);\n\n }\n }", "title": "" }, { "docid": "81762d8f5e630a41c758d8e64675f721", "score": "0.6627163", "text": "private void displayDB(){\n flyList.clear();\r\n int numRecords = manager.getLastID();\r\n //create a string array\r\n String[] record = new String[4];\r\n //use a loop to go through the rows using numRecords as the size\r\n for(int i = 1; i<=numRecords; ++i){\r\n //get each record and check if record[0] is null or isBlank.\r\n record = manager.getRecordById(i);\r\n if(record[0].isBlank()){\r\n continue;\r\n }else {\r\n //else add your records in a string to the List\r\n flyList.add(\" \"+i+\" \"+record[0]+\" | Color: \"+record[1]+\" | Size: \"+record[2]+\" - \"+record[3]);\r\n }\r\n //when you are done, set the list into the ListView\r\n lvTable.setItems(flyList);\r\n }\r\n }", "title": "" }, { "docid": "5fe9cbac74a1c58f500b0d0ce65d4bf7", "score": "0.6627151", "text": "private void showListItem() {\n // Make Cursor From viewData() Method Into DB.\n Cursor cursor = db.viewData();\n\n // Check If Count Of Cursor = 0.\n if (cursor.getCount() == 0)\n Toast.makeText(this, \"No Data To Show\", Toast.LENGTH_SHORT).show();\n\n // OtherWise.\n else {\n // While Loop For If Cursor Still Moving.\n while (cursor.moveToNext()) {\n // Add Item To Show Data Into List View.\n listItem.add(cursor.getInt(0) + \"\\n\" + // 0 For ID.\n cursor.getString(1) + \"\\n\" + // 1 For Name.\n cursor.getString(2) + \"\\n\" + // 2 For VipType.\n// 3 For NumCustHallMSA, 4 For noodles, 5 For greenTea, 6 For blackTea, 7 For nescafeClassic, 8 For nescafe3IN1, 9 For Domte\n// Don't Need To Appear them Into ListView.\n cursor.getString(10) + \"\\n\" + // 9 For Place\n cursor.getString(11) + \"\\n\" + // 10 For Start Time\n cursor.getString(12) + \"\\n\" + // 11 For End Time\n cursor.getString(14)); // 12 For Start Total\n }\n\n // Set Adapter For List View.\n adapter = new ArrayAdapter(this, R.layout.list_form, R.id.rowTextView, listItem);\n UserList.setAdapter(adapter);\n }\n }", "title": "" }, { "docid": "631b1f6db99d24dc998b268975e04955", "score": "0.6580183", "text": "public final void displayToListView(){\r\n \r\n data.clear(); // clear items from listview\r\n \r\n for (Recipe recipe : Schedule.getInstance().getRotateList()){\r\n data.add(recipe);\r\n }\r\n \r\n listView.setItems(data);\r\n listView.setCellFactory(new Callback<ListView<Recipe>, ListCell<Recipe>>() {\r\n \r\n @Override\r\n public ListCell<Recipe> call(ListView<Recipe> param){\r\n ListCell<Recipe> cell = new ListCell<Recipe>(){\r\n @Override\r\n public void updateItem(Recipe recipe, boolean empty) {\r\n super.updateItem(recipe, empty);\r\n if (recipe != null){\r\n setText(recipe.getTitle()); \r\n }\r\n }\r\n }; \r\n return cell;\r\n \r\n };\r\n });\r\n }", "title": "" }, { "docid": "a3c87eb36af6a8d9811a1145faf32666", "score": "0.65786576", "text": "private void populateListView()\n {\n Cursor cursor = myDb.getAllRowsBet();\n // Setup mapping from cursor to view fields:\n String[] fromFieldNames = new String[]\n {DBAdapter.KEY_CONDITION, DBAdapter.KEY_PLACE,DBAdapter.KEY_AMOUNT};\n int[] toViewIDs = new int[]\n { R.id.conditionList, R.id.placeList, R.id.amountList};\n\n\n\n SimpleCursorAdapter BettingAdapter;\n BettingAdapter = new SimpleCursorAdapter(getBaseContext(),R.layout.item_layout,cursor,fromFieldNames,toViewIDs,0);\n betList = (ListView) findViewById(R.id.BetList);\n betList.setAdapter(BettingAdapter);\n\n }", "title": "" }, { "docid": "1f92560234a96e0031c1a6c73ed67f50", "score": "0.6571393", "text": "private void fillData() \n {\n \tCursor climbCursor = null;\n \t \n \tswitch(SearchContext)\n \t{\n \tcase 0:\n \t\t climbCursor = mDbHelper.fetchAllClimbsAlphabetically();\n \t\tbreak;\n \tcase 1:\n \t\t climbCursor = mDbHelper.fetchAllClimbsByDifficulty();\n \t\tbreak;\n \tcase 2:\n \t\t climbCursor = mDbHelper.fetchAllClimbsFromWishList();\n \t\tbreak;\n \tcase 3:\n \t\t climbCursor = mDbHelper.fetchAllClimbsFromTickList();\n \t\tbreak;\n \tdefault:\n \t\t climbCursor = mDbHelper.fetchAllClimbsAlphabetically();\n \t\tbreak;\t\n \t}\n \n startManagingCursor(climbCursor);\n\n // Create an array to specify the fields we want to display in the list (only TITLE)\n String[] from = new String[]{ClimbingRouteDBAdapter.KEY_DIFFICULTY,ClimbingRouteDBAdapter.KEY_ROUTENAME};\n\n // and an array of the fields we want to bind those fields to (in this case just text1)\n int[] to = new int[]{R.id.routedifficulty,R.id.routename};\n\n // Now create a simple cursor adapter and set it to display\n SimpleCursorAdapter climbs = new SimpleCursorAdapter(this, R.layout.notes_row, climbCursor, from, to);\n setListAdapter(climbs);\n }", "title": "" }, { "docid": "a2899ac9d21c654440f0b6180bd087c0", "score": "0.6505187", "text": "public void list() {\n Cursor cursor = mBootModel.list();\n ArrayList<BootInfo> list = formatData(cursor);\n setAdapterView(list);\n }", "title": "" }, { "docid": "bc9bc88d7e93f905abb132a6a4b5fa38", "score": "0.64966506", "text": "public void getAll(){\n ListView ls = (ListView)view.findViewById(R.id.lstMovies);\n ls.setOnItemClickListener(this);\n movieAdapter = new MovieAdapter(view.getContext(), movieDAO.find());\n ls.setAdapter(movieAdapter);\n movieAdapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "58862fb5c8cc84f463a457488b51c81e", "score": "0.6495905", "text": "private void consultarMaltas() {\n SQLiteDatabase db = helper.getReadableDatabase();\n EntidadMaltas malta = null;\n lista = new ArrayList<EntidadMaltas>();\n\n Cursor cursor = db.rawQuery(\"SELECT * FROM \" + Utilidades.TABLA_MALTAS, null);\n\n while (cursor.moveToNext()) {\n malta = new EntidadMaltas();\n malta.setId(cursor.getInt(0));\n malta.setNombre(cursor.getString(1));\n malta.setPd(cursor.getString(2));\n\n lista.add(malta);\n\n }\n db.close();\n\n }", "title": "" }, { "docid": "8dc0dce7905f31a18972d56bc14fd0ac", "score": "0.6449662", "text": "private void populateTesoroList() {\n ArrayList<Tesoro> arrayTesoros = new ArrayList<>(datasource.getAllTesoros());\n // Creamos el adaptador para convertir los objetos del array en vistas\n CustomAdapter adapter = new CustomAdapter(this, arrayTesoros);\n // Incluimos el adaptador en el ListView\n ListView listView = (ListView) findViewById(android.R.id.list);\n listView.setAdapter(adapter);\n }", "title": "" }, { "docid": "97d6a06b66f45cf8a26925e7ddf9e0de", "score": "0.64401615", "text": "private void showCustomersFromDatabase() {\n Cursor cursorThings = mDatabasecustomer.rawQuery(\"SELECT * FROM customers\", null);\n\n //if the cursor has some data\n if (cursorThings.moveToFirst()) {\n //looping through all the records\n do {\n //pushing each record in the thing list\n customerList.add(new Customer(\n cursorThings.getString(0),\n cursorThings.getString(1)\n ));\n } while (cursorThings.moveToNext());\n }\n //closing the cursor\n cursorThings.close();\n\n listViewCustomers.setAdapter(new CustomerAdapter(this, R.layout.list_layout_customer, customerList, mDatabasecustomer));\n }", "title": "" }, { "docid": "620c32f9e3d1e0d9fc91ba7086d2cd72", "score": "0.6411306", "text": "private void carregarLista() {\n\n ListView listaJogadores = findViewById(R.id.form_Activity_Lv_Jogadores);\n ArrayAdapter<Jogador> adapter = new ArrayAdapter<Jogador>(this, android.R.layout.simple_list_item_1, daoJogador.getJogadoresById(this, idTime));\n\n listaJogadores.setAdapter(adapter);\n// Log.i(\"Carregar lista\", \"carregarLista da dao: \" + lista);\n// Log.i(\"carregar lista \", \"carregarLista de jgadores: \"+ listaJogadores);\n\n\n }", "title": "" }, { "docid": "04eead7c195b6fd68476dde135d370b2", "score": "0.6394208", "text": "public void populateListView(ListView<String> listView){\n entitymanager.clear();\r\n List<Person> result = entitymanager.createNativeQuery(\"SELECT * FROM Person\", Person.class).getResultList();\r\n System.out.println(result);\r\n for (Person p: result) {\r\n listView.getItems().add(p.personFormattedForList());\r\n }\r\n }", "title": "" }, { "docid": "1d747b13e4492a0ed167d0b68a46db63", "score": "0.63797194", "text": "public void getData(){\n postModels.clear();\n //get a database:\n MyDatabaseOpenHelper dbOpener = new MyDatabaseOpenHelper(this);\n SQLiteDatabase db = dbOpener.getWritableDatabase();\n //query all the results from the database:\n String [] columns = {MyDatabaseOpenHelper.COL_ID, MyDatabaseOpenHelper.COL_TITLE, MyDatabaseOpenHelper.COL_WEBSITE, MyDatabaseOpenHelper.COL_AUTHOR, MyDatabaseOpenHelper.COL_URL, MyDatabaseOpenHelper.COL_TEXT};\n Cursor results = db.query(false, MyDatabaseOpenHelper.TABLE_NAME, columns, null, null, null, null, null, null);\n\n //find the column indices:\n int titleColumnIndex = results.getColumnIndex(MyDatabaseOpenHelper.COL_TITLE);\n int websiteColumnIndex = results.getColumnIndex(MyDatabaseOpenHelper.COL_WEBSITE);\n int authorColumnIndex = results.getColumnIndex(MyDatabaseOpenHelper.COL_AUTHOR);\n int urlColumnIndex = results.getColumnIndex(MyDatabaseOpenHelper.COL_URL);\n int textColumnIndex = results.getColumnIndex(MyDatabaseOpenHelper.COL_TEXT);\n int idColIndex = results.getColumnIndex(MyDatabaseOpenHelper.COL_ID);\n\n //iterate over the results, return true if there is a next item:\n while(results.moveToNext())\n {\n String title = results.getString(titleColumnIndex);\n String website = results.getString(websiteColumnIndex);\n String author = results.getString(authorColumnIndex);\n String url = results.getString(urlColumnIndex);\n String text = results.getString(textColumnIndex);\n long id = results.getLong(idColIndex);\n\n postModels.add(new PostModel(id, title, website, author, url, text));\n }\n\n //create an adapter object and send it to the listVIew\n adapter = new PostAdapter();\n\n listView.setAdapter(adapter);\n }", "title": "" }, { "docid": "edc16796ff3860cd2aff9a4f984e1b8d", "score": "0.63762724", "text": "private void llenarLista(){\n listaPersonas = new PersonaDao(MainActivity.this).consultar();\n // Crear un nuevo objeto del adaptador para el listView\n AdaptadorPersona adaptador = new AdaptadorPersona(\n MainActivity.this,listaPersonas\n );\n lstPersonas.setAdapter(adaptador);\n }", "title": "" }, { "docid": "4b66405b8b78562a367fda0d3e6fd9ee", "score": "0.6363772", "text": "private void fillData() {\n\t\tString[] from = new String[] { UserTable.COLUMN_TAG_COLOR, UserTable.COLUMN_TAGS };\r\n\t\t// Fields on the UI to which we map\r\n\t\t//int[] to = new int[] { R.id.view_categoryColor, R.id.tv_categoryName };\r\n\t\tCursor c=datasource.getList_Tags();\r\n\t\tadapter = new MySimpleAdapter(this, c);\r\n\t\t\r\n\t\tlistView.setAdapter(adapter);\r\n\t\tadapter.notifyDataSetChanged();\r\n\t\tif(c.getCount()<=0){\r\n\t\t\tempty.setVisibility(View.VISIBLE);\r\n\t\t\t/*currdate.setVisibility(View.INVISIBLE);\r\n\t\t\ttags.setVisibility(View.INVISIBLE);\r\n\t\t\tcomments.setVisibility(View.INVISIBLE);\r\n\t\t\trs.setVisibility(View.INVISIBLE);\r\n\t\t\trs_type.setVisibility(View.INVISIBLE);*/\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tempty.setVisibility(View.INVISIBLE);\r\n\t\t\t/*currdate.setVisibility(View.VISIBLE);\r\n\t\t\ttags.setVisibility(View.VISIBLE);\r\n\t\t\tcomments.setVisibility(View.VISIBLE);\r\n\t\t\trs.setVisibility(View.VISIBLE);\r\n\t\t\trs_type.setVisibility(View.VISIBLE);*/\r\n\t\t}\r\n\t\t\r\n\t\t//setListAdapter(adapter);\r\n\t\t//c.close();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "48462a65b0b6585a5c2d9a661b2d3f34", "score": "0.6339319", "text": "private void setupList() {\n // Get the data from the database\n ShopListApplication shopList = (ShopListApplication) super.getApplication();\n this.cursor = shopList.getShopListData().getAllItems();\n startManagingCursor(this.cursor);\n\n // Setup the adapter\n adapter = new SimpleCursorAdapter(this, R.layout.row, cursor, FROM, TO);\n adapter.setViewBinder(VIEW_BINDER); \n\n listShopping.setAdapter(adapter); \n }", "title": "" }, { "docid": "0dfc455a093323b2a23c4170b710919c", "score": "0.63082135", "text": "private void populateList()\n {\n \tadapter.addItem(new ListItem(\"Mieszkam w Legnicy\", \"Mieście wielu \" +\n \t\t\t\"ludzi\"));\n \tadapter.addItem(new ListItem(\"Justin Bieber\", \"Baby\"));\n \tadapter.addItem(new ListItem(\"Ala\", \"Ma kota i jest super\"));\n \tadapter.addItem(new ListItem(\"Ser za 5 zł\", \"Taniej już nie będzie\"));\n \tadapter.addItem(new ListItem(\"Poemat\", \"Dzisiaj jest coś fajnego\" +\n \t\t\t\"\\nJutro nie będzie\" +\n \t\t\"\\nA gdy wzejdzie słońce\" +\n \t\t\"\\nCztery\"));\n \tadapter.addItem(new ListItem(\"Wojtek\", \"Ma psa i jest super\"));\n \tadapter.addItem(new ListItem(\"Java\", \"Jest nawet w porządku\"));\n \tadapter.addItem(new ListItem(\"Paluszki rybne\", \"Najlepsze paluszki \" +\n \t\t\t\"rybne robi lisner\"));\n \tadapter.addItem(new ListItem(\"Długi tekst\", \"Jakiś długi tekst, \" +\n \t\t\t\"który teoretycznie powinien się zawinąć, bo nie zmieści się \" +\n \t\t\t\"na ekranie. Jeśli nie złamał się do tej pory, to na pewno \" +\n \t\t\t\"teraz się złamie.\"));\n \tadapter.addItem(new ListItem(\"Ostatni wpis\", \"To jest ostatni wpis \" +\n \t\t\t\"ze wszystkich\"));\n \tadapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "3b99faac9ff58320e69c81f65224681d", "score": "0.6300264", "text": "private void fillData() {\n String[] from = new String[] { PatientTable.COLUMN_PATIENT_TITLE};\n // Fields on the UI to which we map\n int[] to = new int[] { R.id.label };\n\n getLoaderManager().initLoader(0, null, this);\n adapter = new SimpleCursorAdapter(this, R.layout.list_row, null, from,\n to, 0);\n\n setListAdapter(adapter);\n }", "title": "" }, { "docid": "7ccd6dfe8e0d7fc2bc06a34c5fade349", "score": "0.6275653", "text": "private void populateRowListView() {\r\n\r\n for (int count = 0; count < mArraySpot.length; count++) {\r\n RowListViewModel rowListViewModelItem = new RowListViewModel(mArrayCountry[count], mArraySpot[count], mTaImgageFlag.getResourceId(count, count), mTaImageSpot.getResourceId(count, count));\r\n rowListViewModelList.add(rowListViewModelItem);\r\n //creating object of adapter class\r\n ListViewAdapter listViewAdapter = new ListViewAdapter(ListViewActivity.this, rowListViewModelList);\r\n //setting adapter in list view\r\n listView.setAdapter(listViewAdapter);\r\n\r\n }\r\n }", "title": "" }, { "docid": "0df59ecf9cb78a549dcd9de6fc973950", "score": "0.6247618", "text": "void showList(){\n populateListView();\n }", "title": "" }, { "docid": "0824db3c02d904260f79e9d924a9a68e", "score": "0.62358385", "text": "private void fillData()\n \t{\n \t\t// Fields from the database (projection)\n \t\t// Must include the _id column for the adapter to work\n \t\tString[] from = new String[] { CourseTable.COLUMN_NAME };\n \n \t\t// Fields on the UI to which we map\n \t\tint[] to = new int[] { R.id.label };\n \n \t\t// Ensure a loader is initialized and active.\n \t\tgetLoaderManager().initLoader( 0, null, this );\n \n \t\t// Note the last parameter to this constructor (zero), which indicates the adaptor should\n \t\t// not try to automatically re-query the data ... the loader will take care of this.\n \t\tthis.adapter = new SimpleCursorAdapter( this, R.layout.list_row, null, from, to, 0 ){\n \t\t\t@Override\n \t\t public View getView(int position, View convertView, ViewGroup parent) {\n \t\t\t\t View v = super.getView(position, convertView, parent);\n \n \t\t\t if (position %2 ==1) {\n \t\t\t v.setBackgroundColor(Color.argb(TRIM_MEMORY_MODERATE, 100, 100, 100));\n \t\t\t } else {\n \t\t\t v.setBackgroundColor(Color.argb(TRIM_MEMORY_MODERATE, 170, 170, 170)); //or whatever was original\n \t\t\t }\n \n \t\t\t return v;\n \t\t\t}\n \t\t\t\n \t\t};\n \n \n \t\t// Let this ListActivity display the contents of the cursor adapter.\n \t\tsetListAdapter( this.adapter );\n \t}", "title": "" }, { "docid": "eeeb455397ecae642d760ee8a4436a8c", "score": "0.6234427", "text": "private void createListView()\n {\n itens = new ArrayList<Livro>();\n Livro item1 = new Livro(\"Mateus\");\n Livro item2 = new Livro(\"Marcos\");\n Livro item3 = new Livro(\"Lucas\");\n Livro item4 = new Livro(\"Jočo\");\n \n itens.add(item1);\n itens.add(item2);\n itens.add(item3);\n itens.add(item4);\n \n //Cria o adapter\n adapterListView = new AdapterListLivro(this, itens);\n \n //Define o Adapter\n listView.setAdapter(adapterListView);\n //Cor quando a lista é selecionada para ralagem.\n listView.setCacheColorHint(Color.TRANSPARENT);\n }", "title": "" }, { "docid": "8522c57fa2d10bb5ff25bcfb80828cc6", "score": "0.62315685", "text": "private void getVistas() {\n ListView lstAlumnos = (ListView) this.findViewById(R.id.lstAlumnos);\n if (lstAlumnos != null) {\n lstAlumnos.setEmptyView(findViewById(R.id.lblEmpty));\n // Se crea el adaptador y se asigna a la lista.\n lstAlumnos.setAdapter(new AlumnosAdapter(this, getDatos()));\n // La actividad actuará como listener cuando se pulse un elemento.\n lstAlumnos.setOnItemClickListener(this);\n }\n }", "title": "" }, { "docid": "1fb795aec4f5864fb684b63a79b111a3", "score": "0.62195855", "text": "public ListaMarca() {\n initComponents();\n List<Marca> lista = new ArrayList<Marca>();\n \n MarcaController mc = new MarcaController();\n lista = mc.getMarca();\n \n modelo = new MarcaTableModel(lista);\n talMarca.setModel(modelo);\n }", "title": "" }, { "docid": "4125ae7ad42229585217e911dc953c0a", "score": "0.621798", "text": "public void initData() {\n if (LostAdapter == null) {\n LostAdapter = new QuickAdapter<Lost>(this, R.layout.item_list) {\n @Override\n protected void convert(BaseAdapterHelper helper, Lost lost) {\n helper.setText(tv_title, lost.getTitle())\n .setText(tv_describe, lost.getDescribe())\n ;\n\n\n\n }\n };\n } mListView.setAdapter(LostAdapter);\n mListView.setonRefreshListener(new OnRefreshListener() {\n public void onRefresh() {\n new AsyncTask<Void, Void, Void>() {\n protected Void doInBackground(Void... params) {\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n e.printStackTrace();\n }\n queryLosts();\n return null;\n }\n\n @Override\n protected void onPostExecute(Void result) {\n LostAdapter.notifyDataSetChanged();\n mListView.onRefreshComplete();\n }\n\n }.execute();\n }\n });\n\n queryLosts();\n }", "title": "" }, { "docid": "5934489cee5b4617487f0ae08444a27f", "score": "0.6217289", "text": "public void populateListview(ArrayList<matrices> list) throws Exception {\n\t\tfor (matrices item: list) {\n\t\t\tlistView.getItems().add(\n\t\t\t\t\titem.from\n\t\t\t\t\t+ \" -> \" +\n\t\t\t\t\titem.subject\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "ac95ac6d76f1bd97ada95d427cb12a9f", "score": "0.62161475", "text": "private void setupContactList() {\n contactsList = new ArrayList<>();\n\n DbHelper dbHelper = new DbHelper(getActivity());\n Cursor cursor = dbHelper.getAllContacts();\n\n if(!cursor.moveToNext()) {\n Toast.makeText(getActivity(), \"Non ci sono contatti!\", Toast.LENGTH_LONG).show();\n }\n\n //itero attraverso le righe del db\n while (cursor.moveToNext()) {\n contactsList.add(new Contatto(\n cursor.getString(1), // nome\n cursor.getString(2), // cognome\n cursor.getString(3), // numero\n cursor.getString(4), // email\n cursor.getString(5) // indirizzo\n ));\n }\n\n myAdapter = new MyAdapter(contactsList, this);\n mRecyclerView.setAdapter(myAdapter);\n\n }", "title": "" }, { "docid": "55022d7912484786cf8cae9ccb171bed", "score": "0.618379", "text": "public void GetData(){\n ListView listView = (ListView) getActivity().findViewById(R.id.listweight);\n myDB = new DBManagerWeight(getActivity());\n\n ArrayList<String>theList = new ArrayList<>();\n Cursor data = myDB.getListContents();\n\n if(data.getCount() == 0){\n Toast.makeText(getActivity(), \"db was empty\", Toast.LENGTH_LONG).show();\n }else{\n while (data.moveToNext()){\n\n theList.add(data.getString(1));\n ListAdapter listAdapter = new ArrayAdapter<>(getActivity(),android.R.layout.simple_list_item_1,theList);\n listView.setAdapter(listAdapter);\n }\n }\n }", "title": "" }, { "docid": "698b50d5e2ff3120079b7016e94dc272", "score": "0.6177685", "text": "@Override\n public int getCount()\n {\n return mSelectMores.size();\n }", "title": "" }, { "docid": "7c0ee4a6e1f46ada3227226f2c38565d", "score": "0.6175011", "text": "public void showAllPeople(ListView<String> listView){\n entitymanager.clear();\r\n List<Person> result = entitymanager.createNativeQuery(\"SELECT * FROM Person\", Person.class).getResultList();\r\n System.out.println(result);\r\n for (Person p: result) {\r\n listView.getItems().add(p.toString());\r\n }\r\n }", "title": "" }, { "docid": "f79e9f5c8b33692f276f3909286ed878", "score": "0.6161044", "text": "protected void setListView() {\n listItems.clear();\n ArrayAdapter adapter = new ArrayAdapter(getActivity(), R.layout.mysimple_list_layout, R.id.text1, listItems) {\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n TextView text1 = (TextView) view.findViewById(R.id.text1);\n TextView text3 = (TextView) view.findViewById(R.id.text3);\n\n Exercise exercise = listItems.get(position);\n text1.setText(exercise.getExercise());\n\n ExerciseActivity exerciseActivity = (ExerciseActivity) getActivity();\n int setsAmount = exerciseActivity.getSetsAmount(listItems.get(position));\n\n if(setsAmount > 0) {\n text3.setText(setsAmount+\" sets\");\n text3.setTextColor(getResources().getColor(R.color.positive));\n } else {\n text3.setText(\"No sets yet\");\n text3.setTextColor(getResources().getColor(R.color.negative));\n }\n\n return view;\n }\n\n };\n listView.setAdapter(adapter);\n ExerciseActivity exerciseActivity = (ExerciseActivity) getActivity();\n exerciseActivity.setExercises();\n }", "title": "" }, { "docid": "a48ec6f54935db1f2ea264e04d042d06", "score": "0.6147474", "text": "public void showMealList() {\n ObservableList<Meal> mealList = FXCollections.observableArrayList(mealService.getMeals());\n tbId.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n tbDate.setCellValueFactory(new PropertyValueFactory<>(\"date\"));\n tbCategory.setCellValueFactory(new PropertyValueFactory<>(\"category\"));\n tbDish.setCellValueFactory(new PropertyValueFactory<>(\"dish\"));\n tbMealTable.setItems(mealList);\n }", "title": "" }, { "docid": "2ec31ee0984d987d9743b797031d45dd", "score": "0.6134143", "text": "private void Display(){\n List<Resturant> list_res= new ArrayList<Resturant>();\n list_res = dbhand.getAllResturants();\n List<String> list = new ArrayList<String>();\n for(Resturant res_tem:list_res){\n list.add(res_tem.name);\n }\n ArrayAdapter<String> adapter=new ArrayAdapter<String>(getActivity(), android.R.layout.simple_list_item_1,list);\n DB_list.setAdapter(adapter);\n }", "title": "" }, { "docid": "ef266257090c1e7161c8a15e559b6aec", "score": "0.61175454", "text": "public void loadDataToListView()\n {\n\n }", "title": "" }, { "docid": "338f2cd41d04bc61a0ce9429e71b5245", "score": "0.6093112", "text": "private void initList() {\n\t\tdb = SQLiteDatabase.openOrCreateDatabase(Paidui.sQLiteDir(getActivity()), null);\n\t\tList<Map<String, Object>> list = new ArrayList<Map<String, Object>>();\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\tString sql = \"select * from \" + table_name[i];\n\t\t\tCursor cursor = db.rawQuery(sql, null);\n\t\t\tint takePepleCount = 0;\n\t\t\tint mealPepleCount = 0;\n\t\t\tint mealTableCount = 0;\n\t\t\tint waitingtime = 0;\n\t\t\tint p = 0;\n\t\t\tfor (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {\n\t\t\t\tString peple = cursor.getString(cursor.getColumnIndex(\"peplecount\"));\n\t\t\t\tString currentstate = cursor.getString(cursor.getColumnIndex(\"currentstate\"));\n\t\t\t\ttakePepleCount = takePepleCount + Integer.valueOf(peple);\n\t\t\t\tif (Integer.valueOf(currentstate) == 1) {\n\t\t\t\t\tmealPepleCount = mealPepleCount + Integer.valueOf(peple);\n\t\t\t\t\tmealTableCount = mealTableCount + 1;\n\t\t\t\t\tString arrivetime = cursor.getString(cursor.getColumnIndex(\"arrivetime\"));\n\t\t\t\t\tString mealtime = cursor.getString(cursor.getColumnIndex(\"mealtime\"));\n\t\t\t\t\twaitingtime = waitingtime + (getArrDate(Long.parseLong(mealtime) - Long.parseLong(arrivetime)));\n\t\t\t\t\tp = p++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap.put(\"count\", cursor.getCount());\n\t\t\tmap.put(\"takePepleCount\", takePepleCount);\n\t\t\tmap.put(\"mealPepleCount\", mealPepleCount);\n\t\t\tmap.put(\"mealTableCount\", mealTableCount);\n\t\t\tmap.put(\"waitingtime\", waitingtime);\n\t\t\tmap.put(\"p\", p);\n\t\t\tlist.add(map);\n\n\t\t}\n\t\tlistView.setAdapter(new StatisticsAdapter(list, getActivity()));\n\n\t}", "title": "" }, { "docid": "b7c7de2086d25643d87fff90da68d9e8", "score": "0.60887104", "text": "public void viewTranForDate(ActionEvent event) {\n\n try{\n\n //clear the transactions linked list and the list view\n lL_transactions.clear();\n transacListView.getItems().clear();\n\n //query to ge the transactions of the particular date\n String sql = \"SELECT * FROM transactions WHERE date='\"+datePicker.getValue()+\"';\";\n Statement statement = connection.createStatement();\n ResultSet resultSet1 = statement.executeQuery(sql); //execute the query\n\n while (resultSet1.next()) { //get the results to the list\n lL_transactions.add(resultSet1.getString(1)+\"\\t\"+resultSet1.getString(2)+\"\\t\\t\"+resultSet1.getString(3)+\"\\t\"+resultSet1.getString(4)+\"\\t\\t\\t\"+resultSet1.getString(5)+\"\\t\\t\"+resultSet1.getString(6)+\"\\t\\t\"+resultSet1.getString(7));\n }\n\n for(int i = 0; i<lL_transactions.size();i++) { //load the results to the list view\n transacListView.getItems().add(lL_transactions.get(i+1));\n }\n }\n catch (SQLException ex){ //catch any SQL exception and print it on the console\n ex.printStackTrace();\n }\n}", "title": "" }, { "docid": "617711ae573346015cec59283599c0f3", "score": "0.6079218", "text": "public void populateListView() {\n\n //SCreate list of items\n String[] cars = {\"Event 1\",\"Event 2 \", \"Event 3\", \"Event 4\",\"Event 5 \",\n \"Event 6\", \"Event 7\",\"Event 8 \", \"Event 9\"};\n\n //Build Adapter\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.event_items, cars);\n\n\n //Configure the list view\n ListView listView = (ListView)findViewById(android.R.id.list);\n listView.setAdapter(adapter);\n\n }", "title": "" }, { "docid": "867368f063d486b2b4fd66198fb15fe1", "score": "0.6074308", "text": "private void initView() {\n\t\tmVolleyUtils = new VolleyUtils<MineLocalCourseModel>(context,MineLocalCourseModel.class);\n\t\tdatas = new ArrayList<GoodsListEntity>();\n\t\tmAdapter = new MineLocalAdaper(context);\n\t\tmAdapter.setList(datas);\n\t\tlv.setAdapter(mAdapter);\n\n\t\tlv.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (mAdapter.judgeHasEmpty()) {\n\t\t\t\t\tgetDatas(1,10);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tmCurrentPosition = position;\n\t\t\t\tGoodsListEntity goods = mAdapter.getListItem(position-1);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"TEACHERID\",goods.getTeacherId());\n\t\t\t\tbundle.putSerializable(\"GOODSID\", goods.getObjId());\n\t\t\t\tbundle.putString(\"TITLE\", goods.getGoodsName());\n\t\t\t\tStartActivityUtil.startActivity(context, LocalCourceDetailActivity.class, bundle, Intent.FLAG_ACTIVITY_SINGLE_TOP);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "f59cf074e9ad3c7d379455342f9ab2c5", "score": "0.6063872", "text": "public List<Makanan> getAllMakanan() {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n //set query ambil data\n String q = \"SELECT * FROM \" + Makanan.TABLE_NAME;\n\n //eksekusi query nya\n Cursor hasil = db.rawQuery(q, null);\n\n //bikin array untuk angkut data yang ambil dari database local\n ArrayList<Makanan> makan = new ArrayList<>();\n\n //deklrasi object makanan biar set makanan\n\n\n while (hasil.moveToNext()) {\n Makanan m = new Makanan();\n\n //waktu proses masing2 data ke masukkan ke objext makanan\n\n m.setId(hasil.getInt(hasil.getColumnIndex(Makanan.ID)));\n m.setName(hasil.getString(hasil.getColumnIndex(Makanan.NAME)));\n m.setHarga(hasil.getString(hasil.getColumnIndex(Makanan.HARGA)));\n m.setRestoran(hasil.getString(hasil.getColumnIndex(Makanan.RESTORAN)));\n makan.add(m);\n\n\n }\n hasil.close();\n\n return makan;\n }", "title": "" }, { "docid": "4c8c5ac36cfbed802c1e25d1852353d5", "score": "0.606219", "text": "private void initListView() {\n adapter = new ArrayAdapter<>(this,\n R.layout.src_cat_simple_view, R.id.manageSrcCatLabel, db.getAllCategories()); \n \n setListAdapter(adapter);\n }", "title": "" }, { "docid": "78e7cbacb12e7b84a333d3f79fd96380", "score": "0.6055441", "text": "private void fillData() {\n \t\n \tmMovingCursor = mDbHelper.fetchAllBoxesSearch(boxSearchString);\n \tstartManagingCursor(mMovingCursor);\n \t\n \tString[] from = new String[]{MovingDbAdapter.KEY_BOX_NAME, MovingDbAdapter.KEY_BOX_DESC};\n \t\n \tint[] to = new int[]{R.id.boxName, R.id.boxDescription};\n \t\n \tSimpleCursorAdapter boxes =\n \t\tnew SimpleCursorAdapter(this, R.layout.box_row, mMovingCursor, from, to);\n \tsetListAdapter(boxes);\n }", "title": "" }, { "docid": "2b4dd31e9a2fc1c3fbe3b5702f51d5cc", "score": "0.6054779", "text": "@Override\n public int getCount() \n {\n return mwa.size();\n }", "title": "" }, { "docid": "2cda88eeae14d00535d37a9bca42c02b", "score": "0.6051787", "text": "private void buildLists() {\n // build the attributes list for the ListView from the database\n Cursor cursor1 = ZeoCompanionApplication.mDatabaseHandler.getAllAttributeRecsSortedInvSleepStageDisplayOrder();\n if (cursor1 != null) {\n if (cursor1.moveToFirst()) {\n do {\n CompanionAttributesRec rec1 = new CompanionAttributesRec(cursor1);\n if ((rec1.rFlags & CompanionDatabaseContract.CompanionAttributes.COMPANION_ATTRIBUTES_FLAG_FACTORY_DISABLED) == 0) {\n if (rec1.rAppliesToStage == mSleepStage) { mLLL_ListAttributes.add(rec1); }\n }\n } while (cursor1.moveToNext());\n }\n cursor1.close();\n }\n\n // build the values list for the ListView from the database\n Cursor cursor2 = ZeoCompanionApplication.mDatabaseHandler.getAllAttributeValuesRecsSortedLikert();\n if (cursor2 != null) {\n if (cursor2.moveToFirst()) {\n do {\n CompanionAttributeValuesRec rec2 = new CompanionAttributeValuesRec(cursor2);\n for (CompanionAttributesRec rec3: mLLL_ListAttributes) {\n if (rec2.rAttributeDisplayName.equals(rec3.rAttributeDisplayName)) {\n mLLL_ListAttributeValues.add(rec2);\n break;\n }\n }\n } while (cursor2.moveToNext());\n }\n cursor2.close();\n }\n }", "title": "" }, { "docid": "774c358434892066f71eff05d72ed5d9", "score": "0.60499036", "text": "public void FillList(){\n ArrayList<Contact> contacts = getdata();\n for(Contact contact : contacts){\n listItems.add(contact.name+ contact.phone);\n }\n adapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "5a5d2a2eea74e584591eae1ee5e9f98f", "score": "0.60491496", "text": "private void initEventListView() {\n\t\t//Data\n\t\tlistEvents = new ArrayList<MainHomeDTO>();\n\t\tlistEvents.add(new MainHomeDTO(null, \"LiveShow Dam Vinh Hung\", \"Tai trung tam hoi nghi quoc gia vao ngay Live show che linh 30 Nam\", \"12h- 17h\"));\n\t\tlistEvents.add(new MainHomeDTO(null, \"LiveShow Dan Truong\", \"Tai trung tam hoi nghi quoc gia vao ngay Live show che linh 30 Nam\", \"12h- 17h\"));\n\t\tlistEvents.add(new MainHomeDTO(null, \"LiveShow Cam Ly\", \"Tai trung tam hoi nghi quoc gia vao ngay Live show che linh 30 Nam\", \"12h- 17h\"));\n\t\tlistEvents.add(new MainHomeDTO(null, \"LiveShow Doan Trang\", \"Tai trung tam hoi nghi quoc gia vao ngay Live show che linh 30 Nam\", \"12h- 17h\"));\n\t\tlistEvents.add(new MainHomeDTO(null, \"Tau hai Hoai Linh\", \"Tai trung tam hoi nghi quoc gia vao ngay Live show che linh 30 Nam\", \"12h- 17h\"));\n\t\tlistEvents.add(new MainHomeDTO(null, \"Giao luu sinh vien Viet Nam - Han Quoc\", \"Tai trung tam hoi nghi quoc gia vao ngay Live show che linh 30 Nam\", \"12h- 17h\"));\n\t\tlistEvents.add(new MainHomeDTO(null, \"Hoi Thao Anh Le Trainning\", \"Tai trung tam hoi nghi quoc gia vao ngay Live show che linh 30 Nam\", \"12h- 17h\"));\n\t\t\n\t\t//Adatepr \n\t\tWhatshots_Main_Addapter adapter = new Whatshots_Main_Addapter(SearchEvent.this, listEvents);\n\t\t\n\t\tlistViewEvent.setAdapter(adapter);\n\t}", "title": "" }, { "docid": "0121bac2e1b861957986783aa36c974b", "score": "0.6046726", "text": "public void initVie() {\n listDatas = new ArrayList<MenuBean>();\n for (int i = 0; i < miblist.size(); i++) {\n listDatas.add(new MenuBean(miblist.get(i).getProName(), miblist.get(i).getImages(), miblist.get(i).getBgColors()));\n }\n }", "title": "" }, { "docid": "020ebed9f8ac5e47bdd14f6416618853", "score": "0.60381025", "text": "private void displayListView() {\n userList = new ArrayList<UserBox>();\n\n //create an ArrayAdaptar from the String Array\n dataAdapter = new SelectGM_Adapter(this, userList);\n\n connectionList = (ListView) findViewById(R.id.gm_select);\n connectionList.setAdapter(dataAdapter);\n\n }", "title": "" }, { "docid": "5a4290ac116f979e4bd0782b01e7901c", "score": "0.6036124", "text": "private void populateData(ArrayList<MenuModel> listing){\n mAdapter = new AdapterRecyclerviewItem(listing);\n recyclerView1.setLayoutManager(new LinearLayoutManager(getActivity()));\n recyclerView1.setAdapter(mAdapter);\n fastScroller.setRecyclerView(recyclerView1);\n }", "title": "" }, { "docid": "21d3514bf6214bfdb4d2693076b4ccfb", "score": "0.60296214", "text": "private ObservableList<Customer> fillTable() {\r\n\t\tObservableList<Customer> oblist = FXCollections.observableArrayList();\r\n\t\ttry {\r\n\t\t\trs = landscapeDB.displayAllCustomers();\r\n\t\t\t\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tSystem.out.println(rs.getInt(\"customer_id\") + \" \" + rs.getString(\"first_name\") + \" \" + rs.getString(\"last_name\"));\r\n\t\t\t\toblist.add(new Customer(rs.getInt(\"customer_id\"), rs.getString(\"first_name\"), rs.getString(\"last_name\")));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn oblist;\t\r\n\t}", "title": "" }, { "docid": "3003da5f4503560fbf8c58f1eba61b9b", "score": "0.60284305", "text": "private void populateListView()\n {\n ArrayAdapter<foodItem> adapter = new MyListAdapter();\n ListView list = (ListView) findViewById(R.id.foodListView);\n list.setAdapter(adapter);\n }", "title": "" }, { "docid": "28bf2c4b3f1ca78431bf65447ad3b4ef", "score": "0.6028129", "text": "public void loadListView() {\n\t\tfamilyitems = new FamilyInq();\n\n\t}", "title": "" }, { "docid": "4d26ca28621a0bc66f110ca00ece59ae", "score": "0.60243607", "text": "private void displayAllMedicineForOrder() {\n \n ArrayList<Medicine> data = theModel.getAllMedicine();\n \n theView.displayAllMedicationForOrder(data);\n \n }", "title": "" }, { "docid": "2f53b4b34f5b75cd614af3a7287e0239", "score": "0.6017949", "text": "public void listarDatosMedico(){\n databaseReference.child(\"Medico\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n listaMedico.clear();\n if (snapshot.exists()) {\n for(DataSnapshot objDataSnapshot: snapshot.getChildren()){\n Medico objM = objDataSnapshot.getValue(Medico.class);\n listaMedico.add(objM);\n\n adapterMedico = new CustomAdapterMedico(getApplicationContext(),listaMedico);\n listViewMedicos.setAdapter(adapterMedico);\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "title": "" }, { "docid": "671888f9bf62ae673e571594268bbe7e", "score": "0.601342", "text": "private void showTasksFromDatabase() {\n Cursor cursorTasks = tasksDatabase.rawQuery(\"SELECT * FROM tasks\", null);\n /*\n if the cursor has some data\n looping through all the records\n pushing each record in the employee list\n */\n if (cursorTasks.moveToFirst()) {\n\n do {\n\n tasksDetailList.add(new TasksDetail(\n cursorTasks.getInt(0),\n cursorTasks.getString(1),\n cursorTasks.getString(2),\n cursorTasks.getString(3)\n\n ));\n } while (cursorTasks.moveToNext());\n }\n //closing the cursor\n cursorTasks.close();\n\n //creating the adapter object\n adapter = new TasksSQLLiteAdapter(this, R.layout.list_layout_tasks, tasksDetailList, tasksDatabase);\n\n //adding the adapter to listview\n listViewTasks.setAdapter(adapter);\n }", "title": "" }, { "docid": "3134fb97b6547610daf35ee2d993fbf4", "score": "0.6013356", "text": "private void loadListView() {\n final ProgressDialog progressDialog = new ProgressDialog(getActivity());\n progressDialog.setMessage(\"Please waiting\");\n progressDialog.show();\n tableBan.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n tableArrayList.clear();\n tableAdapter.clear();\n for (DataSnapshot snapshot: dataSnapshot.getChildren()) {\n Table table = snapshot.getValue(Table.class);\n tableArrayList.add(table);\n }\n tableAdapter.notifyDataSetChanged();\n progressDialog.dismiss();\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "title": "" }, { "docid": "72f3bddb43b955c7d6c8776a39768906", "score": "0.6011818", "text": "private void _populateJobsListView()\n {\n String[] items = new String[this._jobs.size()];\n for (int i = 0 ; i < this._jobs.size() ; i++)\n {\n items[i] = this._jobs.get(i).getJobDescription() + \" \" + this._jobs.get(i).getJobReminderDate();\n }\n\n // Build Adapter\n this._jobsAdapter = new ArrayAdapter<String>(\n this, // Context for the activity\n R.layout.jobs_list, // Layout to use (create)\n items // Items to be displayed\n ) {\n /**\n * {@inheritDoc}\n *\n * Note we override this function to be able to change the ListView's text's color\n */\n @Override\n public View getView(final int position, View convertView, ViewGroup parent)\n {\n TextView textView = (TextView)super.getView(position, convertView, parent);\n\n // Setting alternating color\n textView.setTextColor((0 == position % 2) ? Color.RED : Color.BLUE);\n\n return textView;\n }\n };\n\n // Configure the list view\n ListView lv = (ListView)findViewById(R.id.todoList);\n lv.setAdapter(this._jobsAdapter);\n }", "title": "" }, { "docid": "e23de4d74f428fa1dfcaa4c0e627a8a8", "score": "0.600455", "text": "@FXML\r\n\tpublic void cargarCategorias(){\r\n\r\n\t\tlista.clear(); \t\r\n\r\n\t\tList<Object[]> categoria = pp.darElementos(PersistenciaSuperAndes.darTablaCategoria());\r\n\r\n\t\tfor (Object[] objects : categoria) { \t\t\r\n\r\n\t\t\tlista.add(\"Id: \"+objects[0]+\" : Tipo Categoria: \"+objects[1]);\r\n\t\t} \t\t\t\r\n\r\n\t\tpanelCategoria.getListViewCategoria().setItems(lista);\r\n\t}", "title": "" }, { "docid": "bc240f779ff4540f62f9854e4002a2e2", "score": "0.59976685", "text": "public void carregaLista()\n {\n AlunoDAO dao = new AlunoDAO(this);\n\n List<Aluno> alunos = dao.getLista();\n dao.close();\n\n ListaAlunosAdapter adapter = new ListaAlunosAdapter(this, alunos);\n\n this.listaAlunos.setAdapter(adapter);\n }", "title": "" }, { "docid": "30b15b431fd1962a5a8bbebf5e4ee702", "score": "0.599162", "text": "private void listMateriais(){\n DefaultTableModel tableModel = new DefaultTableModel(0,4); \n tableModel.setColumnIdentifiers(new Object[] {\"Id\",\"Nome\", \"Quantidade\", \"Custo\"});\n bdMateriais = MaterialDAO.getMateriaisByIdTarefa(localTarefa.getId());\n \n if(!bdMateriais.isEmpty()){\n for (Material m:bdMateriais){\n tableModel.addRow(new Object[]{m.getId(),m.getNome(),m.getQuantidade(),m.getCusto()});\n matForm.materiaisTable.setModel(tableModel);\n matForm.deleteButton.setEnabled(true);\n matForm.editarMatButton.setEnabled(true);\n }\n }\n else{\n matForm.deleteButton.setEnabled(false);\n matForm.editarMatButton.setEnabled(false);\n }\n }", "title": "" }, { "docid": "88f89204fcf4c97986551480685f1c62", "score": "0.5989889", "text": "public void listResetTableView(String where, String... params) {\r\n CustomerModel customers = new CustomerModel();\r\n List<Model> allCustomers = customers.findAll(where, params);\r\n\r\n listData = FXCollections.observableArrayList();\r\n for (Model allCustomer : allCustomers) {\r\n CustomerModel customer = (CustomerModel) allCustomer;\r\n listData.add(customer);\r\n }\r\n\r\n listTableViewName.setCellValueFactory(new PropertyValueFactory(\"fullname\"));\r\n listTableViewAddress.setCellValueFactory(new PropertyValueFactory(\"address\"));\r\n listTableViewPhone.setCellValueFactory(new PropertyValueFactory(\"telephone\"));\r\n listTableViewEmail.setCellValueFactory(new PropertyValueFactory(\"email\"));\r\n\r\n listTableView.setItems(listData);\r\n }", "title": "" }, { "docid": "dcc994ef2100bbfd62e289a086dbe870", "score": "0.597703", "text": "@Override\n protected void onPostExecute(Nombres[] result) {\n String[] arreglo = new String[result.length];\n\n\n for(Nombres item:result){\n\n // String[] textArray = {\"One\", \"Two\", \"Three\", \"Four\"};\n\n //for( int i = 0; i < textArray.length; i++ )\n //{\n //TextView textView = new TextView(relativeLayout.getContext());\n int numero ;\n numero= Integer.parseInt(item.getId());\n\n arreglo[numero-1] = item.getId()+\" \"+item.getName()+\" \"+item.getEmail();\n }\n ListView lista = (ListView)findViewById(R.id.list);\n ArrayAdapter arrayAdapter = new ArrayAdapter(getApplicationContext(),R.layout.texto,R.id.textocontent,arreglo);\n lista.setAdapter(arrayAdapter);\n /* System.out.println(item.getId());\n System.out.println(item.getName());\n System.out.println(item.getEmail());\n System.out.println(item.getCreated_at());\n System.out.println(item.getUpdated_at());\n TextView id= (TextView) findViewById(R.id.textView);\n id.setText(item.getId());\n TextView name= (TextView) findViewById(R.id.textView2);\n name.setText(item.getName());\n TextView email= (TextView) findViewById(R.id.textView3);\n email.setText(item.getEmail());\n TextView create= (TextView) findViewById(R.id.textView4);\n create.setText(item.getCreated_at());*/\n\n //}\n /*TextView id = (TextView) findViewById(R.id.id_value);\n TextView content=(TextView) findViewById(R.id.content_value);\n id.setText(result.getId());\n content.setText(result.getContent());*/\n }", "title": "" }, { "docid": "a341c534d4e0b3a830564f209ff353d3", "score": "0.5976461", "text": "@Override\n public int getCount() {\n return zal_list.size();\n }", "title": "" }, { "docid": "eb51f82324cd8a06c53d4d2425fcf342", "score": "0.5973083", "text": "@SuppressWarnings(\"deprecation\")\n\tprivate void fillData() {\n\t\tCursor mCursor = mDbHelper.readAllData();\n\t\tstartManagingCursor(mCursor);\n\t\t\n\t\tString[] from = new String[] {DatabaseAdapter.KEY_SPO2, DatabaseAdapter.KEY_PULSE,\n\t\t\t\tDatabaseAdapter.KEY_BODY,DatabaseAdapter.KEY_AMBIENT, DatabaseAdapter.KEY_DATE};\n\t\t\n\t\tint[] to = new int[]{R.id.tv_spo2History, R.id.tv_pulseHistory,\n\t\t\t\tR.id.tv_bodyHistory, R.id.tv_ambientHistory, R.id.tv_dateHistory};\n\t\n\t\tSimpleCursorAdapter listdata = new SimpleCursorAdapter(this, \n\t\t\t\tR.layout.single_row_history, mCursor, from, to);\n\t\tlistHistory.setAdapter(listdata);\t\t\n\t}", "title": "" }, { "docid": "830797f0452ded9ec5ed13347973299b", "score": "0.5972652", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_memorama, container, false);\n ButterKnife.bind(this, view);\n\n //settear datos de recycler view\n listComplete = getDataListComplete();\n memoramaAdapter = new MemoramaAdapter(listComplete, this, data);\n\n cartas.setAdapter(memoramaAdapter);\n cartas.setLayoutManager(new GridLayoutManager(view.getContext(), 4));\n cartas.setHasFixedSize(true);\n\n //actualizar items\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n for (MemoramaEntity item : listComplete) {\n item.setShow(false);\n item.setClickeable(true);\n }\n memoramaAdapter.notifyDataSetChanged();\n }\n }, 5000);\n\n return view;\n }", "title": "" }, { "docid": "1107352c449a377f841a25c1fab304e6", "score": "0.5962154", "text": "private void llistaspinner() {\n Call<List<personatge>> call = rep.getPersonatges();\n\n call.enqueue(new Callback<List<personatge>>() {\n @Override\n public void onResponse(Call<List<personatge>> call, Response<List<personatge>> response) {\n\n List<personatge> mk = response.body();\n\n try {\n\n if (mk != null) {\n List<personatge> perslist = response.body();\n ArrayAdapter<personatge> adapter = new ArrayAdapter<>(JugadorsActivity.this, android.R.layout.simple_list_item_1, perslist);\n spper.setAdapter(adapter);\n }\n\n } catch (Exception e) {\n Log.e(\"JugadorsActivity\", e.toString());\n }\n }\n\n @Override\n public void onFailure(Call<List<personatge>> call, Throwable t) {\n Toast.makeText(JugadorsActivity.this, \"Error amb l'API\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "5b1df750fb86634d55a476499b96bf31", "score": "0.5959481", "text": "@Override\n protected void onStart() {\n super.onStart();\n\n databaseBabyInfoReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n babyInfoList.clear();\n for (DataSnapshot babyInfoSnapshotVariable : dataSnapshot.getChildren()){\n //jotokhn prjonto list e data thakbe totokhn prjonto loop ghurbe\n NewNewsfeedClass babyInfoObj2 = babyInfoSnapshotVariable.getValue(NewNewsfeedClass.class);\n babyInfoList.add(babyInfoObj2);\n\n\n }\n\n progressDialog.dismiss();\n\n NewNewsfeedInfoListAdapter adapter = new NewNewsfeedInfoListAdapter(NewNewsfeedActivity.this,babyInfoList);\n\n listViewBabyInfo.setAdapter(adapter);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n }", "title": "" }, { "docid": "1a80edd1a59719b64aa85d4f1e51daec", "score": "0.59583706", "text": "public void hayatTableList() throws SQLException {\n ObservableList<Rooms> list = (ObservableList<Rooms>) getHayatList();\n roomNoHayatCol.setCellValueFactory(new PropertyValueFactory<Rooms, String>(\"number\"));\n roomNameHayat.setCellValueFactory(new PropertyValueFactory<Rooms, String>(\"name\"));\n bedsHayatss.setCellValueFactory(new PropertyValueFactory<Rooms, String>(\"beds\"));\n roomcartegoryHayat.setCellValueFactory(new PropertyValueFactory<Rooms, String>(\"cartegory\"));\n costHayat.setCellValueFactory(new PropertyValueFactory<Rooms, String>(\"price\"));\n hayatTable.setItems(list);\n }", "title": "" }, { "docid": "a2ed5cdebe318984521cb941541a28cf", "score": "0.5958354", "text": "private void fillData() {\n String[] from = new String[] { QSOContactTable.KEY_CALL, QSOContactTable.KEY_RXFREQ, QSOContactTable.KEY_TIMEON };\n // Fields on the UI to which we map\n int[] to = new int[] { R.id.key_call, R.id.key_rxfreq, R.id.key_timeon };\n\n getLoaderManager().initLoader(0, null, this);\n \n adapter = new SimpleCursorAdapter(this, R.layout.log_row, null, from,\n to, 0);\n setListAdapter(adapter);\n Cursor curse = adapter.getCursor();\n if (curse != null)\n {\n\t int count = adapter.getCursor().getCount();\n\t String conts = \"Contacts(\" + count + \")\";\n\t TextView tv = (TextView) findViewById(R.id.contacts);\n\t tv.setText(conts);\n }\n }", "title": "" }, { "docid": "8c6dc9677e614c22625a47f724160fd5", "score": "0.5951813", "text": "@RequestMapping(\"listado.htm\")\n public ModelAndView listado ()\n {\n ModelAndView modelandview = new ModelAndView();\n String consulta= \"select * from motores\";\n List motores = this.jdbc.queryForList(consulta);\n modelandview.addObject(\"motores\",motores);\n modelandview.setViewName(\"listado\");\n return modelandview;\n }", "title": "" }, { "docid": "5cd1e3f067444ab0a81c32ba37ff0623", "score": "0.5949773", "text": "private void showList() {\n String[] items = new String[dosens.size()];\n\n for (int i = 0; i < dosens.size(); i++) {\n items[i] = dosens.get(i).getNama();\n }\n //Membuat Array Adapter for listview\n ArrayAdapter adapter = new ArrayAdapter<String>(this, R.layout.activity_dosen_listview, items);\n\n //setting adapter untuk listview\n listview.setAdapter(adapter);\n listview.setTextFilterEnabled(true);\n }", "title": "" }, { "docid": "5be33817b9a2d0a68f4f1ce964cd94d4", "score": "0.5947901", "text": "private void populate_FileExplorer_Item_ListView() {\n\n\t\t//On crée un adaptateur pour notre liste\n\t\tArrayAdapter<FileExplorerList_Item> adapter = new FileExplorer_Item_ListAdapter();\n\n\t\t//On récupère la listview\n\t\tListView list = (ListView) findViewById(R.id.FileExplorer_Item_ListView);\n\n\t\t//On passe l'adaptateur à la liste\n\t\tlist.setAdapter(adapter);\n\t}", "title": "" }, { "docid": "7bc9241a7b0f8cf885e576f61bdfca23", "score": "0.59467405", "text": "private void llista() {\n Call<List<jugador>> call = rep.getJugadors();\n\n call.enqueue(new Callback<List<jugador>>() {\n @Override\n public void onResponse(Call<List<jugador>> call, Response<List<jugador>> response) {\n\n List<jugador> mk = response.body();\n\n try {\n\n if (mk != null) {\n List<jugador> jugalist = response.body();\n ArrayAdapter<jugador> adapter = new ArrayAdapter<>(JugadorsActivity.this, android.R.layout.simple_list_item_1, jugalist);\n lv.setAdapter(adapter);\n }\n\n } catch (Exception e) {\n Log.e(\"JugadorsActivity\", e.toString());\n }\n }\n\n @Override\n public void onFailure(Call<List<jugador>> call, Throwable t) {\n Toast.makeText(JugadorsActivity.this, \"Error amb l'API\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "title": "" }, { "docid": "d8249cad900a23ef6b50a56b34bab77d", "score": "0.59434485", "text": "private void setupListView(){\n\n\n messageListView.setAdapter(new MessageListViewAdapter(MessagingActivity.this, R.layout.message_adapter_list, messageArray.messages));\n messageListView.setSelection(messageArray.messages.size());\n }", "title": "" }, { "docid": "32640aeef6220f153f20841967b06a84", "score": "0.5942164", "text": "public static void populateMasterAccounts(){\n MasterAccountData.setMasterAccountList(FXCollections.observableArrayList());\n try{\n ResultSet rs = SQLiteConnector.getMasterAccounts();\n while(rs.next()){\n String username = rs.getString(\"username\");\n String password = rs.getString(\"password\");\n\n MasterAccount ma = new MasterAccount(username, password);\n populateAccounts(ma);\n MasterAccountData.getMasterAccountsList().add(ma);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "923f8f6822283932962c03815a846197", "score": "0.59404427", "text": "public void loadAllStats(){\n prepareLoadingBar();\n\n ListView listView = (ListView) findViewById(R.id.listView);\n\n if(listView != null) {\n\n List<String> list = Database.INSTANCE.getStatsList();\n\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.item , list);\n listView.setAdapter(adapter);\n\n\n }\n }", "title": "" }, { "docid": "b18935ec1ccce4f0432de9501dcc5e23", "score": "0.59371775", "text": "private void initView() {\n mCommonListAdapter = new CommonListAdapter<Bean>(MainActivity.this,R.layout.item_list) {\n @Override\n public void convert(CommonViewHolder viewHolder, Bean bean) {\n viewHolder.setText(R.id.tv_name,bean.getName())\n .setText(R.id.tv_address,bean.getAddress())\n .setText(R.id.tv_age,\"年龄:\" + bean.getAge());\n }\n };\n mCommonListAdapter.setmDatas(mList);\n lv_main.setAdapter(mCommonListAdapter);\n }", "title": "" }, { "docid": "3270ae9e4fc12506e8ba35e62ef3fa7e", "score": "0.59328353", "text": "private void onCargarMetodosPagos() {\n metodosPagoList = new ArrayList<>();\n metodosPagos = new ArrayList<>();\n metodosPagoList.add(\"Seleccione ...\");\n\n //TODO Metodo para llamar al servidor\n metodosPagoList.add(\"Efectivo\");\n metodosPagoList.add(\"Cheque\");\n metodosPagoList.add(\"Transferencia Electronica\");\n metodosPagoList.add(\"Tarjeta de Crédito\");\n metodosPagoList.add(\"Dinero Electrónico\");\n metodosPagoList.add(\"Tarjeta de Débito\");\n metodosPagoList.add(\"NA\");\n metodosPagoList.add(\"Otros\");\n\n metodosPagos.add(new MetodosPagos(1, \"Efectivo\"));\n metodosPagos.add(new MetodosPagos(2, \"Cheque\"));\n metodosPagos.add(new MetodosPagos(3, \"Transferencia Electronica\"));\n metodosPagos.add(new MetodosPagos(4, \"Tarjeta de Crédito\"));\n metodosPagos.add(new MetodosPagos(5, \"Dinero Electrónico\"));\n metodosPagos.add(new MetodosPagos(6, \"Tarjeta de Débito\"));\n metodosPagos.add(new MetodosPagos(7, \"NA\"));\n metodosPagos.add(new MetodosPagos(8, \"Otros\"));\n }", "title": "" }, { "docid": "dbd8c0d6ecb7259fd782780f14b3d5e8", "score": "0.59309024", "text": "private void initView() {\n\n\t\tlv = (ListView) this.findViewById(R.id.listView1);\n\n\t\tadapter = new MyAdapter_else();\n\n\t\tString[] from = new String[] { \"new_list\",\"uName\" };\n\t\tint[] to = new int[] { R.id.image_list,R.id.item1 };\n\t\tList<Map<String, Object>> data = adapter.getData();\n\t\t// Êý¾ÝÔ´\n\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(Activity_else.this,\n\t\t\t\tdata, R.layout.item_list, from, to);\n\n\t\tlv.setAdapter(simpleAdapter);\n\n\t}", "title": "" }, { "docid": "f11dfd2ed848c304730905c49a75241b", "score": "0.59265655", "text": "@Override\n public int getCount() {\n return lijstje.size();\n }", "title": "" }, { "docid": "d75a93e411ea3154db811c642a6fea05", "score": "0.59264845", "text": "private void fill( Context context)\n \t{\n \t\t//create cursor, adapter and set adapter to ListView\n \t\t//\n \tString sql = Q.getTodaySaleSums(false, currentItemGroup.id, isVisitSummaries, isVisitSummaries? addrId:0, false, 0); \t\n \tCursor itemsCursor = Db.getInstance().selectSQL(sql); \t\n \t\t((Activity) context).startManagingCursor(itemsCursor);\n \t\t\n String[] from = new String[] { \"ScreenName\", \"Orders\", \"Sum\", \"MSU\" }; \n int[] to = new int[] { R.id.textGroupName, R.id.textOrders, R.id.textSum, R.id.textMSU }; \n SimpleCursorAdapter pricesAdapter = new SimpleCursorAdapter(context, R.layout.report_day_summaries_list_item, itemsCursor, from, to);\n itemList.setAdapter(pricesAdapter); \t\t\n \t}", "title": "" }, { "docid": "2e54f9a8c166bbc67a6cc66fba4e5a7b", "score": "0.59263444", "text": "private void loadStudentMarksData(){\n DatabaseHandler databaseHandler = DatabaseHandler.getInstance();\n String qu = \"SELECT * FROM MARKS ORDER BY TOTAL DESC\";\n ResultSet rs = databaseHandler.execQuery(qu);\n try {\n while (rs.next()){\n String id = rs.getString(\"studentId\");\n Integer assignment1 = rs.getInt(\"assignment1\");\n Integer assignment2 = rs.getInt(\"assignment2\");\n Integer exam = rs.getInt(\"exam\");\n Integer total = rs.getInt(\"total\");\n String grade = rs.getString(\"grade\");\n studentMarks.add(new StudentMarks(id , assignment1 , assignment2 , exam , total , grade));\n }\n }catch (Exception ex){\n ex.printStackTrace();\n }\n tableView.getItems().setAll(studentMarks);\n }", "title": "" }, { "docid": "09d6ac619fe9ca62a1f974115d381ba8", "score": "0.59243274", "text": "private void setListData() {\n if (specialistList.size() != 0) {\n Collections.sort(specialistList, new Comparator<Specialist>() {\n @Override\n public int compare(Specialist o1, Specialist o2) {\n return o1.getType().compareTo(o2.getType());\n }\n });\n specialistAdapter = new SpecialistAdapter(getActivity(), specialistList, FragmentPhysician.this);\n lvSpecialist.setAdapter(specialistAdapter);\n lvSpecialist.setVisibility(View.VISIBLE);\n rlGuide.setVisibility(View.GONE);\n imghelp.setVisibility(View.GONE);\n txthelp.setVisibility(View.GONE);\n } else {\n lvSpecialist.setVisibility(View.GONE);\n rlGuide.setVisibility(View.VISIBLE);\n imghelp.setVisibility(View.VISIBLE);\n txthelp.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "50efad7a0efa93891781d8419bfd6ac8", "score": "0.59204626", "text": "public void show_punonjes(){\n ArrayList<Punonjes> list = PunonjesList();\n DefaultTableModel PunonjesTableModel =(DefaultTableModel) TablePunonjes.getModel();\n Object [] row = new Object[10];\n for(int i=0;i<list.size(); i++){\n row[0]=list.get(i).getPu_id();\n row[1]=list.get(i).getEmri();\n row[2]=list.get(i).getMbiemri();\n row[3]=list.get(i).getGjinia();\n row[4]=list.get(i).getDob();\n row[5]=list.get(i).getEmail();\n row[6]=list.get(i).getTelefon();\n row[7]=list.get(i).getAdresa();\n row[8]=list.get(i).getPaga();\n row[9]=list.get(i).getDega_id();\n PunonjesTableModel.addRow(row);\n }\n \n }", "title": "" }, { "docid": "75c1aa85559998bf0f9b3cd847551bb0", "score": "0.59184366", "text": "private void set_list() {\n recyclerView.setHasFixedSize(true);\n recyclerView.setLayoutManager(new LinearLayoutManager(this.getActivity()));\n /*\n * Adapter Data is an Empty\n * */\n if (dutyData.size() <= 0) {\n recyclerView.setAdapter(null);\n recyclerView.setVisibility(View.GONE);\n dataNotFound.setVisibility(View.VISIBLE);\n }\n /*\n * Adapter Date is not an Empty\n * */\n else {\n adapter = new OnDutyListAdapter(getActivity(), dutyData, new RecyclerViewListener() {\n @Override\n public void onClick(View view, String value) {\n Instance(value);\n }\n @Override\n public void OnStore(View view, OnDutyApprovePost postData) {}\n @Override\n public void OnCompOffStore(View view, CompOffApprovePost post) {}\n @Override\n public void onClick(View view, ApprovePost post) {}\n });\n recyclerView.setVisibility(View.VISIBLE);\n dataNotFound.setVisibility(View.GONE);\n recyclerView.setAdapter(adapter);\n }\n }", "title": "" }, { "docid": "918f3f1795ea83f450726c7e02776801", "score": "0.59069747", "text": "public void showData() {\n list = dao.getKelass();\n tableModel = new KelasTableModel(list);\n this.view.getTblKelas().setModel(tableModel);\n clean();\n }", "title": "" }, { "docid": "2cb448db2e126cd3dc08b96743842462", "score": "0.5902178", "text": "@Override\r\n\t public int getCount() {\n\t \tif(detalles==null){\r\n\t \t\treturn 0;\r\n\t \t}else{\r\n\t \t\treturn detalles.size();\r\n\t \t}\r\n\t }", "title": "" }, { "docid": "8759f05386000c6e31e5595929253df2", "score": "0.59016335", "text": "private void populate() {\r\n\t\t\tSQLiteDatabase db = new MyDbOpenHelper(c).getReadableDatabase();\r\n\t\t\t\r\n\t\t\tString select = \"SELECT * FROM reminder\";\r\n\t\t\tCursor res = db.rawQuery(select, null);\t\t\r\n\t\t\tres.moveToFirst();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(res.getCount()>0){\r\n\t\t\t\t\r\n\t\t\t\t\tfor(int i =0; i <res.getCount(); i++){\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tif(!res.getString(9).equals(DELETE)){\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tRemindersElement el = new RemindersElement(c);\r\n\t\t\t\t\t\t\t\t\tel.editCopy(res);\r\n\t\t\t\t\t\t\t\t\tlin.addView(el,par);\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tregisterForContextMenu(el);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tres.moveToNext();\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\tres.close();\t\t\r\n\t\t\tdb.close();\r\n\t\t}", "title": "" }, { "docid": "80dab67d1345d0b87e4b919f4c312d70", "score": "0.59003913", "text": "public static ArrayList<Mudas> busca() {\r\n sql = \"SELECT * FROM MUDAS\";\r\n return realizaBusca(sql);\r\n }", "title": "" }, { "docid": "f16f08b45fca0da85e77dee987338119", "score": "0.58953446", "text": "private void initData() {\n\t\tgetData();\n\t\tlistViewAdapte=new listviewAdapter<homepage>(MainActivity.this, R.layout.grid_view_item, IconDetailList);\n\t\tgridView.setAdapter(listViewAdapte);\n\t\tinitAutoTextView(); \t\t\t\t\n\t}", "title": "" }, { "docid": "b6469f48821ff2654243bce3b5fdd544", "score": "0.5889706", "text": "public void llenarLista(){\n list.setAdapter(new ClimaAdapter(this,R.layout.layout_clima,climas));\n }", "title": "" }, { "docid": "9a49dd353e464af4c8ea9bd0ada7a36b", "score": "0.5884862", "text": "private void showList()\n {\n try {\n final List<Branch> branchesList =backEnd.branchesList();\n ArrayAdapter<Branch> adapter = new ArrayAdapter<Branch>(this,R.layout.branch_design, branchesList){\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n if (convertView == null) {\n convertView = View.inflate(BranchesList.this, R.layout.branch_design, null);//gets the desing layout\n }\n TextView BranchNoTextView = (TextView) convertView.findViewById(R.id.BranchNoTextView);//gets the items for the list\n TextView AddressTextView=(TextView)convertView.findViewById(R.id.AddressTextView);//gets the items for the list\n BranchNoTextView.setText(((Integer) branchesList.get(position).getBranchNo()).toString());\n AddressTextView.setText(branchesList.get(position).getAddress());\n return convertView;\n\n }\n\n\n };\n list.setAdapter(adapter);\n\n } catch (ExecutionException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4e77dc55253a97911d08b40059791e0f", "score": "0.58676183", "text": "@Override\n public int getItemCount() {\n return listMatakuliah.size();\n }", "title": "" }, { "docid": "15ca010ac5841e1f5ac9320365a39d63", "score": "0.58641434", "text": "public ArrayList<MetodoPago> listadoMetodoPago() {\n \n ArrayList<MetodoPago> lista = new ArrayList<>();\n try {\n \n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n \n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"Select * from MetodosPagos\");\n \n while (rs.next()) {\n int id_metPago = rs.getInt(1);\n String detalle = rs.getString(2);\n \n MetodoPago mp = new MetodoPago(id_metPago, detalle);\n \n mp.setId_metPago(id_metPago);\n mp.setDetalle(detalle);\n \n \n \n lista.add(mp);\n }\n st.close();\n conn.close();\n \n } catch (SQLException ex) {\n Logger.getLogger(GestorMovimientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n return lista;\n }", "title": "" } ]
f9e22be9e11a790945e1ae6ba05cc5b9
To send me a letter
[ { "docid": "244f5b61b1c59a231d35a2f7258b8de2", "score": "0.0", "text": "public static void main(String[]args) {\n myname();\n myaddress();\n printspace();\n //To check out a book\n myname();\n mystudentid();\n printspace();\n //Student Transcript\n myname();\n myaddress();\n mystudentid();\n }", "title": "" } ]
[ { "docid": "5021a5b4d57e156a59d0de3527832e26", "score": "0.66484237", "text": "void sendText(String text);", "title": "" }, { "docid": "bd8ec72cb094f7d225317951d5dbaab8", "score": "0.651514", "text": "public void sendGameMessage(String text);", "title": "" }, { "docid": "de4cedd9f7c60fc05325cbe8dc2e0804", "score": "0.65114295", "text": "public void setHand(char letter){\r\n \r\n }", "title": "" }, { "docid": "e78f7c74c206848ddec50c5f96b478b3", "score": "0.63235664", "text": "static void speak(char characterToSpeak) {\r\n\t\ttry {\r\n\t\t\t//Runtime.getRuntime().exec(\"say \" + characterToSpeak).waitFor(); //doesn't work under Windows 10\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2c4089f9107d2dd9c4474056fc098cfa", "score": "0.6222815", "text": "private void send() {\n // read the users input and send it\n String userMessage = receiveUserLine();\n sendMessage(userMessage);\n }", "title": "" }, { "docid": "6505e235ce5d6f12eb62e977b6b12544", "score": "0.62203205", "text": "private void send() {\r\n\t\tif (textSend.getText().length() > 0) {\r\n\t\t\tString message = textSend.getText();\r\n\t\t\ttextSend.setText(\"\");\r\n\t\t\tadaptor.send(message);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8c20ea485f0bfcc170b89e34b4e7e393", "score": "0.6205727", "text": "void sendTextMessage();", "title": "" }, { "docid": "4a8064ca3e9c0b6d739268378b35bb10", "score": "0.61916107", "text": "@Override\n //method to send data to relay server after encrypting\n public void send(String a) {\n text = new char[128];\n for (int i = 0; i < a.length(); i++) {\n text[i] = a.charAt(i);\n }\n\n try {\n a = String.copyValueOf(encrypt(this.text, this.key));\n //encrypted message is now sent\n out.writeUTF(a);\n\n text = null;\n } catch (IOException ex) {\n System.out.println(\"Failed to send\");\n }\n\n }", "title": "" }, { "docid": "27034c346df42b3c558ae5731144eb4f", "score": "0.61588955", "text": "private void sendButtomActionPerformed(java.awt.event.ActionEvent evt) {\n sendText();\n \n }", "title": "" }, { "docid": "7061808063f1b45d671245cc01fe7aea", "score": "0.61393833", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == Exit){\n\t\t\tsetVisible(false);\n\t\t}\n\t\tif(e.getSource() == Send){\n\t\t\tif(jtWord.getText().equals(\"\")){//发送信息不能为空\n\t\t\t\tJOptionPane.showMessageDialog(null, \"发送信息不能为空\");\n\t\t\t}\t\n\t\t\telse{\n\t\t\t\tString words = jtWord.getText().trim(); \t\t\t\n\t\t\t\tString time = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new java.util.Date());\t\t\t\t\t\t\t\t\n\t\t\t\tinsert(\" \" + time + '\\n', 12);\n\t\t\t\tinsert(\" 我: \" + words + '\\n',18);\n\t\t\t\tjtWord.setText(\"\");\n\t\t\t\t//此处是消息发送逻辑\n\t\t\t\tbyte[] message = Message.getRespondMessage(from.getId(), Application.user.getId(), (byte)1, Application.CHAT, words.getBytes());\n\t\t\t\ttry {\n\t\t\t\t\tmessage = Des.encrypt(message);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tApplication.cm.getConn().send(message);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1ad3b24d8c1af8940fd2268216fceb58", "score": "0.61345714", "text": "private void sendText() {\n \t \n \t \n String msg = clientName;\n \n //Enviamos el nombre del cliente junto al texto introducido\n msg = msg +\": \"+inputTextField1.getText();\n \n //Limpiamos el inputField\n inputTextField1.setText(\"\");\n \n try {\n \t\n //Enivamos el mensaje\n \tout.writeUTF(msg);\n out.flush();\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(rootPane, \"Error sending the message\");\n }\n \n }", "title": "" }, { "docid": "e031c2262ad49504d9ba1f12ac1730c2", "score": "0.61242616", "text": "void sendAMessage()\n\t{\n\t\t\n\t\t\n\t\t\n\t\tString messageToSend;\n\t\tmessageToSend = getInput();\n\t\t\n\t\tsetMessage(messageToSend);\n\t\tinputArea.append(\"\");\n\t}", "title": "" }, { "docid": "cadea5f1d85b54016866aa74e05c0da2", "score": "0.6082656", "text": "@Override\n\tpublic String say() {\n\t\treturn \"大家好 \";\n\t}", "title": "" }, { "docid": "5dc0aaceeb27887e86eb5c6797747e76", "score": "0.60775", "text": "public void send(String text) {\r\n\t\tout.println(text);\r\n\t}", "title": "" }, { "docid": "b9de24de860e9f499d61cff9ebed5622", "score": "0.60676354", "text": "private\tvoid send(String s) {\n\t\tSystem.err.println(\"sending \" + s + \"...\");\n\t\ttry {\n\t\t\tfor (int i=0; i<s.length(); i++)\n\t\t\t\tos.writeByte(s.charAt(i));\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9fa1725878e7d0bc4a49b29068923c35", "score": "0.6066246", "text": "public void sendMsg(String text) {\n\t\tSystem.out.println(text);\r\n\r\n\t}", "title": "" }, { "docid": "45c69048c1bc3e3c7d539207a6b6f778", "score": "0.6040526", "text": "public void sendMessage(String text) {\n out.println(text);\n }", "title": "" }, { "docid": "e5d68fe39ffbcee9a0c086fa5b954a25", "score": "0.6015972", "text": "private String genLetter (){\r\n\t\treturn Character.toString((char)(Math.round(Math.random()*25)+65));\r\n\t}", "title": "" }, { "docid": "3ed896fffbfc9321165b0d1dd00d8dbb", "score": "0.60156125", "text": "public void sendInfo(L2PcInstance activeChar)\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5339346d8f243770cd26cf88216f2bb1", "score": "0.6011602", "text": "public void actionPerformed(ActionEvent e)\n {\n String currMsg = e.getActionCommand(); // Get input value\n inputField.setText(\"\");\n try {\n String msg = myName + \": \" + currMsg;\n byte[] cipher = symCipher.encode(msg);\n myWriter.writeObject(cipher); // Add name and send encrypted message\n myWriter.flush();\n System.out.println(\"Msg sent: \" + msg);\n System.out.print(\"Cipher sent: \");\n for (int i=0; i<cipher.length; i++)\n System.out.print(cipher[i] + \" \");\n System.out.println(\"\\n\");\n } catch (IOException ex) {\n outputArea.append(\"Error sending message\\n\");\n }\n }", "title": "" }, { "docid": "e554a0c917da8a39155da0857bbfe41e", "score": "0.5992904", "text": "public void send(String message);", "title": "" }, { "docid": "55effba1953d51949853e0f068edc946", "score": "0.59839624", "text": "char getLetter() {\r\n return letter;\r\n }", "title": "" }, { "docid": "236e673f7475bd1a09c9a2e145d382c5", "score": "0.5971525", "text": "@Override\n \t\t\tpublic void keyPressed(KeyEvent e) {\n \t\t\t\tSystem.out.println(\"Key pressed\" + e.getKeyCode());\n \t\t\t\tif(e.getKeyCode() == 10 && input.getText().length() != 0){\n \t\t\t\t\tString text = input.getText();\n \t\t\t\t\tchat.append(gc.getLocalPlayerName() + \": \" + text + \"\\n\");\n \t\t\t\t\tchat.setCaretPosition(chat.getDocument().getLength());\n \t\t\t\t\tgc.sendChatMessage(text);\n \t\t\t\t\tinput.setText(\"\");\n \t\t\t\t}\n \t\t\t}", "title": "" }, { "docid": "fadf04c5840402e5c76244ea30f633a8", "score": "0.59714144", "text": "private void sendFoolLetters(){\n \tif(this.receiver.getCity().getInhabitants().size() >= 10) {\n\t \tList<Inhabitant> inhabitantAdded = new ArrayList<>();\n\t \tfor (int i = 0; i < 10; i++) {\n\t Inhabitant inhabitant;\n\t do{\n\t inhabitant = this.getReceiver().getCity().getRandomInhabitant();\n\t }while(inhabitantAdded.contains(inhabitant) || inhabitant.equals(receiver));\n\t inhabitantAdded.add(inhabitant);\n\t Letter<ListInhabitants> foolLetter = new FoolLetter(this.receiver, inhabitant, this.getContent());\n\t this.receiver.sendLetter(foolLetter);\n\t }\n \t}else{\n \t\tSystem.out.println(\"Not enought inhabitants in the city\");\n \t}\n }", "title": "" }, { "docid": "57baac4e49392285a31b3a7867a0f140", "score": "0.5954244", "text": "public char normalLetter(char normalLetter);", "title": "" }, { "docid": "fe934db4014e8351c421001f5c9bf6a2", "score": "0.59415877", "text": "@Override\n\tpublic void action() {\n\t\tletter.getContent().action();\n\n\t}", "title": "" }, { "docid": "17914d71cf0e87566f412a7be1af87af", "score": "0.59324676", "text": "char getLetter() {\n return letter;\n }", "title": "" }, { "docid": "138cbfa7cc803b8676713a4eee85063f", "score": "0.5894937", "text": "private\tvoid expect(char s) {\n\t\tbyte b;\n\t\ttry {\n\t\t\tfor (int i=0; i<MAX_REPLY_BYTES; i++){\n\t\t\t\tif ((b = is.readByte()) == s) {\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tSystem.err.print((char)b);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Penman:expect(char \"+s+\"): Read failed\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tSystem.err.println(\"ARGHH!\");\n\t}", "title": "" }, { "docid": "0c2574c3218d7407cb9c943fd880f660", "score": "0.5893497", "text": "public void sendChat(){\n sendChat(chatText);\n }", "title": "" }, { "docid": "bc0d846b2cf301888b81789c9e0819b2", "score": "0.5886348", "text": "public void sendLn(String message);", "title": "" }, { "docid": "956f330a22d113c26cf8426aebe846fc", "score": "0.5881674", "text": "void sendMessage(String message);", "title": "" }, { "docid": "3c430a1cbe9f490ec4b135a17ee4624e", "score": "0.5870774", "text": "public void sendData(char sendChar) {\n\t\t/*BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\t\tSet<BluetoothDevice> pairedDevices = bluetoothAdapter.getBondedDevices();\n\t\tif(pairedDevices.size() > 0) {\n\t\t\tfor(BluetoothDevice device : pairedDevices) {\n\t\t\t\ttry {\n\t\t\t\t\tbtSocket = device.createInsecureRfcommSocketToServiceRecord(MY_UUID);\n\t\t\t\t\tbtSocket.connect();\n\t\t\t\t\toutStream = btSocket.getOutputStream();\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t*/\n\t\t\tbyte[] b1 = {(byte)sendChar};\n\t\t\tfor(OutputStream stream: outStream) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tstream.write(b1);\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\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//}\n\t}", "title": "" }, { "docid": "75773dec737615669ed75ca57febf7c4", "score": "0.58604044", "text": "public static void main(String args[] ) throws Exception {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n sc.close();\n s=s.toLowerCase();\n String result= \"\";\n if (s.indexOf('a') >=0) result+='a';\n if (s.indexOf('e') >=0) result+='e';\n if (s.indexOf('i') >=0) result+='i';\n if (s.indexOf('o') >=0) result+='o';\n if (s.indexOf('u') >=0) result+='u';\n result = result == \"\" ? \"Thank You\" : result;\n System.out.println(result);\n }", "title": "" }, { "docid": "2bbc99771412cd37b4b500f25df55565", "score": "0.58586013", "text": "private void sendSendable(String message) {\r\n\r\n\t\tTextMessage tm = new TextMessage(guiMain.getUserUUID(), panelChat.getContactID(), message);\r\n\t\ttm.setUuid(UUID.randomUUID());\r\n\t\ttm.setTimestampSent();\r\n\t\tSendableMessage sm = new SendableMessage(tm);\r\n\t\tguiMain.sendSendable(sm);\r\n\t\tpanelChat.addNewUserMessage(message, tm);\r\n\t\tguiMain.setUserOnTop(panelChat.getPanelUUID());\r\n\t}", "title": "" }, { "docid": "9971ac3ce15528d2bf85dbf8d5169c45", "score": "0.58529514", "text": "public void sentMessage(int f, int t, String text) {\n\t\t\n\t\tSystem.out.println(String.format(\"Number : %i send '%s' to: %i \", f, text, t));\n\t\talterProgram(f);\n\t}", "title": "" }, { "docid": "50396f74e3156f95031f1631205afda9", "score": "0.5848498", "text": "public static void sendText(String text) {\n\t\ttext.getChars(0, text.length(), inputText, 0);\n\t\tsendText(text.length());\n\t}", "title": "" }, { "docid": "a886fecd89896a77fba9837ed2fe2bef", "score": "0.5848416", "text": "private void SendMsg(){\n\t\t\tString src = \"00 5A 51 00 01 01 00 00 AD\";//另外一个命令EB014100AB,分左右方向开闸。\r\n\t\t\tif (!m_bSendDateType) {\r\n\t\t\t\t//System.out.println(\"ASCLL\" +Rule(src));\r\n\t\t\t\tif(Rule(src)){\r\n\t\t\t\t\tsrc = src.replace(\" \", \"\");\r\n\t\t\t\t\tif(1 == (src.length()%2)){\r\n\t\t\t\t\t\tsrc += \"0\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(null != kzSerialPort.mFd){\r\n\t\t\t\t\t\t//Log.i(TAG, src);\r\n\t\t\t\t\t\tkzSerialPort.writeBytes(HexString2Bytes(src));\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\trunOnUiThread(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tToast.makeText(LogoUseKeyAndCardActivity.this, R.string.inputwarn,Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//System.out.println(\"HEX\");\r\n\t\t\t\tif(null != kzSerialPort.mFd){\r\n\t\t\t\t\t//Log.i(TAG, src);\r\n\t\t\t\t\tkzSerialPort.writeBytes(src.getBytes());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "bfaa8f32933d2d821f42b6d742370ec4", "score": "0.584478", "text": "void send();", "title": "" }, { "docid": "33c6deca4bd9467fd10142782d46c78e", "score": "0.58445823", "text": "public char getLetter() {return letter;}", "title": "" }, { "docid": "05ac9f4a40242e7cab5abc888390af17", "score": "0.5841131", "text": "@Override\n public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n //전송해야할 거\n send_Message(input.getText());\n input.setText(\"\");\n input.requestFocus();\n }\n }", "title": "" }, { "docid": "db2a9ddd0a21704aec1ae3877650098c", "score": "0.5839062", "text": "public static Action.SendingAction sending(String s) {\n return sending(of(s));\n }", "title": "" }, { "docid": "9b7661b1f0fc24e1dfee2096e0abfe5f", "score": "0.5836369", "text": "public void sendTeleportButton() {\n\t\tsend(new SendString(\"1\", 45600));\n\t}", "title": "" }, { "docid": "16f70d940c2c3634db3242c3d56d5432", "score": "0.5831058", "text": "private void send() {\n String msg = msgTXT.getText();\n\n try {\n // Write on the output stream\n sendToServer.writeUTF(msg);\n msgTXT.setText(\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "1f602a2397e3a5697ac3fda78f40f49f", "score": "0.5827623", "text": "void sendPrivateText(String text);", "title": "" }, { "docid": "2a7469fd0eee14f7e739ef1426b0c343", "score": "0.5823548", "text": "public void send(String arg) {\n this.ws.sendText(arg, true);\n }", "title": "" }, { "docid": "99f464c002e0c71c391ab7e2fb5c03ea", "score": "0.58217704", "text": "private void sendMessageToGame(String message) {\n }", "title": "" }, { "docid": "3cb175de8f241af32f7a02ccc4c93be9", "score": "0.5811702", "text": "public static char queryUser() {\n Scanner reader = new Scanner(System.in);\n System.out.println(\"Enter a letter to make a guess:\");\n String s = reader.next();\n char ch = s.charAt(0);\n return ch;\n }", "title": "" }, { "docid": "013e8acf90d3675dce654808b2d73610", "score": "0.5809704", "text": "private void revealLetterInWord(char letter){\n int indexOfLetter = secretWord.indexOf(letter);\n while(indexOfLetter >= 0){\n wordDisplayedChar[indexOfLetter] = secretWord.charAt(indexOfLetter);\n indexOfLetter = secretWord.indexOf(letter, indexOfLetter +1);\n }\n wordDisplayedString = String.valueOf(wordDisplayedChar);\n }", "title": "" }, { "docid": "63bc53ac1bd814f268dbd3138d78f8a2", "score": "0.5794544", "text": "public void addLetters() {\n\t\ttry {\n\t\t\tstr.append(LETTERS[i++]);\n\t\t}\n\t\tcatch(IndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"game is over. you lose\");\n\t\t}\n\t}", "title": "" }, { "docid": "1d798fc1147270a3673d4751cf34b446", "score": "0.5785439", "text": "public char getLetter() { return letter; }", "title": "" }, { "docid": "39b81984e0386c4a5866e3b81b8d601d", "score": "0.5776345", "text": "private static char getLetter(int index) {\n if (index < 0) {\n throw new IllegalArgumentException(\"Index is too small\");\n } else if (25 < index) {\n throw new IllegalArgumentException(\"Index is too large.\");\n }\n return (char) (index + 97);\n }", "title": "" }, { "docid": "c39b05c3e99f162551efcdf46e565d27", "score": "0.5773473", "text": "private void addLetter() {\n Random random = new Random();\n this.letters[random.nextInt(26)] += 1;\n }", "title": "" }, { "docid": "6469eeca14be2372870bf236b257eed1", "score": "0.57721597", "text": "private void sendInputToServer() {\n\t\tString out = \"\";\n\t\tif (keyPressed) { // move the agent if the key is pressed\n\t\t\tif (keyCode == LEFT) {\n\t\t\t\tout = \"LEFT\";\n\t\t\t}\n\t\t\tif (keyCode == RIGHT) {\n\t\t\t\tout = \"RIGHT\";\n\t\t\t}\n\t\t\tif (key == ' ') { // begin jumping\n\t\t\t\tout = \"SPACE\";\n\t\t\t}\n\t\t\tif (key == 'r') {\n\t\t\t\tout = \"r\";\n\t\t\t}\n\t\t\tif (key == 's') {\n\t\t\t\tout = \"s\";\n\t\t\t}\n\t\t\tif (out.isEmpty() == false) {\n\t\t\t\tout = gson.toJson(new Event(\"keyboard,\"+id, out, 0, 1), EventType);\n\t\t\t\twriter.println(out);\n\t\t\t}\n\t\t}\n\t\t\n\t\twriter.flush();\n\t}", "title": "" }, { "docid": "c5c33109f5712bf5ed3a64f15ab3d14b", "score": "0.5767491", "text": "public void sendString(String str) {\n try {\n dOut.writeUTF(str);\n dOut.flush();\n } catch (IOException ex) {\n System.out.println(\"Player not sent\");\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "fab8b726d8d22b947f2e37c85369e7e1", "score": "0.57620883", "text": "@Override\n\t\tpublic void sendText(String arg0, SendHandler arg1) {\n\n\t\t}", "title": "" }, { "docid": "946c62f2656b46b63f566f030824932e", "score": "0.5758986", "text": "void sendMessage(String phoneNum, String message);", "title": "" }, { "docid": "c1738764518822aa45780cdb292e4186", "score": "0.57532334", "text": "void sendUserName(String userName);", "title": "" }, { "docid": "62d254c612d4aea080e9aee2dd023191", "score": "0.57521147", "text": "public void sendAction() {\n if (!inputBox.getText().isEmpty()) {\n client.sendMessage(inputBox.getText());\n inputBox.clear();\n }\n }", "title": "" }, { "docid": "958879fc4ed59f4248e5caffdd76e661", "score": "0.5746621", "text": "public void thankYou(){\r\n\tc.clear();\r\n\tc.setColor(background);\r\n\tc.fillRect(0,0,900,660);\r\n\tc.setFont(new Font(\"Sans Serif\",Font.BOLD,75));\r\n\tc.setColor(Color.WHITE);\r\n\tc.drawString(\"Thank YOU\", 237,125);\r\n\tc.setFont(new Font(\"Sans Serif\",Font.LAYOUT_LEFT_TO_RIGHT,30));\r\n\tc.drawString(\"Thank you for booking your ticket with Cineplexe.\",130,230);\r\n\tc.drawString(\"We hope you have a great day and enjoy the show.\",118,265);\r\n\t\r\n\tc.setFont(new Font(\"Sans Serif\",Font.PLAIN,20));\r\n\tc.drawString(\"To exit press E or e\",100,500);\r\n\tc.drawString(\"To book another ticket press A or a\",500,500);\r\n\t\r\n\t//asking input\r\n\twhile(true){\r\n\t //code only continues if valid input is pressed\r\n\t thankDecision = c.getChar();\r\n\t if(thankDecision == 'A' || thankDecision == 'a'){\r\n\t\tbreak;\r\n\t }\r\n\t else if(thankDecision == 'E' || thankDecision == 'e'){\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n }", "title": "" }, { "docid": "037fba0267741bc5b8f32dc01922e8a3", "score": "0.5739759", "text": "@Override\n public void onClick(View v) {\n robotAPI.robot.stopSpeakAndListen();\n\n String text = \"好的,你財力好雄厚、人生勝利組耶\";\n CommandSerial_E = mRobotAPI.robot.speak(text);\n Log.d(TAG, \"check :\"+ CommandSerial_E);\n }", "title": "" }, { "docid": "87d0ea28d5b92a7305c3c429a8d1d813", "score": "0.5734491", "text": "public String lettersGuessed();", "title": "" }, { "docid": "08adb657b33a03893d1d2de2e1f8bae5", "score": "0.57258147", "text": "@Override\n public void onClick(View v) {\n robotAPI.robot.stopSpeakAndListen();\n\n String text = \"好的,你財力好雄厚、人生勝利組耶\";\n CommandSerial_F = mRobotAPI.robot.speak(text);\n Log.d(TAG, \"check :\"+ CommandSerial_F);\n }", "title": "" }, { "docid": "0910c1367b399b9705620bebd5684437", "score": "0.5720311", "text": "public void sendTeamMessage(String text);", "title": "" }, { "docid": "da26ae87cce48cdaf5dc4ffb9b4ba0cd", "score": "0.5718736", "text": "protected void sendTextCharByCharToElement(By element, String text) {\n\t\ttry {\n\t\t\tLOGGER.info(\"Sending the text: [\" + text + \"] char by char to the element: [\" + element + \"]\");\n\t\t\tif (text != null) {\n\t\t\t\tfor (char c : text.toCharArray()) {\n\t\t\t\t\tthis.driver.findElement(element).sendKeys(Character.toString(c));\n\t\t\t\t\tLOGGER.debug(Character.toString(c));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (NoSuchElementException ex) {\n\t\t\tLOGGER.error(\"Is not possible to send the text letter by letter to the element because this was not found: [\"+ element + \"]\", ex);\n\t\t}\n\t}", "title": "" }, { "docid": "49fd9cc0ab35511f42eb804abe1bd275", "score": "0.5717454", "text": "private void chooseReg(String str) {\n if (str.compareToIgnoreCase(\"send\") == 0) {\n //Text another client\n Send();\n } else {\n Quit();\n }\n }", "title": "" }, { "docid": "0b36247436cf6fbc7264b48ab5a9ecad", "score": "0.57141477", "text": "@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"send normal message!\");\n\t}", "title": "" }, { "docid": "4503f08b751d609f6e00e9b2ca2d2407", "score": "0.5704633", "text": "public boolean mo401a(Activity activity, String str) {\n if (this.f926a != 0 && !TextUtils.isEmpty(str)) {\n Intent intent = new Intent();\n intent.addFlags(268435456);\n intent.setType(\"text/plain\");\n intent.setAction(\"android.intent.action.SEND\");\n intent.putExtra(\"android.intent.extra.TEXT\", str);\n String[][] strArr = f925c;\n int i = this.f926a;\n intent.setComponent(new ComponentName(strArr[i][0], strArr[i][2]));\n try {\n activity.startActivity(intent);\n return true;\n } catch (Exception unused) {\n }\n }\n return false;\n }", "title": "" }, { "docid": "f529306ff6f2fc95f0701bcae95cacd5", "score": "0.5703593", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString s = messageField.getText();\n\t if (!s.equals(\"\")) {\n\t appendToChatBox(\"ME: \" + s + \"\\n\");\n\t messageField.selectAll();\n\n\t // Send the string\n\t sendString(s);\n\t }\n\t\t\t}", "title": "" }, { "docid": "da15ca0f89f11716511f435f227744d2", "score": "0.56997234", "text": "public static void sendKeysToKeyboard(String stringToSend) throws AWTException {\n Robot robot = new Robot();\n robot.setAutoDelay(50);\n for (int i = 0; i < stringToSend.length(); i++) {\n char character = stringToSend.charAt(i);\n if (!Character.isLetter(character)) {\n keyPressAndReleaseBasedOnDigitsAndChars(character, robot);\n } else {\n int n = KeyEvent.getExtendedKeyCodeForChar(character);\n if (Character.isUpperCase(character)) {\n robot.keyPress(KeyEvent.VK_SHIFT);\n robot.keyPress(n);\n robot.keyRelease(n);\n robot.keyRelease(KeyEvent.VK_SHIFT);\n } else {\n robot.keyPress(n);\n robot.keyRelease(n);\n }\n }\n }\n }", "title": "" }, { "docid": "e8f96f0d8be39ee6e769084b5b668392", "score": "0.56892794", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tspeak(\"ouch\");\n\n\t}", "title": "" }, { "docid": "4f607848607a9fa647712b951d1368b5", "score": "0.5668588", "text": "public void sendMessage(String message);", "title": "" }, { "docid": "e7e0bfb30ab4f1d78a376ea6bb1a84ea", "score": "0.56669605", "text": "private void sendButtonPressed(String buttonNumber)\n{\n String buttonPressed = \"\";\n if(buttonNumber == \"0\")\n {\n buttonPressed = \"A\";\n }\n else if(buttonNumber == \"1\")\n {\n buttonPressed = \"B\";\n }\n else if(buttonNumber == \"2\")\n {\n buttonPressed = \"X\";\n }\n else if(buttonNumber == \"3\")\n {\n buttonPressed = \"Y\";\n }\n else if(buttonNumber == \"4\")\n {\n buttonPressed = \"Left Bumper\";\n }\n else if(buttonNumber == \"5\")\n {\n buttonPressed = \"Right Bumper\";\n }\n else if(buttonNumber == \"6\")\n {\n buttonPressed = \"Back\";\n }\n else if(buttonNumber == \"7\")\n {\n buttonPressed = \"Start\";\n } \n else if(buttonNumber == \"8\")\n {\n buttonPressed = \"Left Thumbstick\";\n }\n else if(buttonNumber == \"9\")\n {\n buttonPressed = \"Right Thumbstick\";\n }\n else\n {\n //No button pressed\n }\n \n tellOtherSide(\"B\" + buttonPressed); \n}", "title": "" }, { "docid": "2e81fa2cd8b5f076264fef5eaead2db5", "score": "0.5666841", "text": "@Override\n public void onClick(View v) {\n robotAPI.robot.stopSpeakAndListen();\n\n String text = \"好的,跟我一樣是小資族呢\";\n CommandSerial_A = mRobotAPI.robot.speak(text);\n Log.d(TAG, \"check :\"+ CommandSerial_A);\n }", "title": "" }, { "docid": "43a87cf6510eed5417242a6cfb7728a7", "score": "0.56628716", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent sendIntent = new Intent();\n\t\t\t\tsendIntent.setAction(Intent.ACTION_SEND);\n\t\t\t\tsendIntent.putExtra(Intent.EXTRA_TEXT, ttb.getText());\n\t\t\t\tsendIntent.setType(\"text/plain\");\n\t\t\t\tstartActivity(sendIntent);\n\t\t\t}", "title": "" }, { "docid": "8a5587394163c257506607e5c9b3ecec", "score": "0.5652398", "text": "@Override\n\tpublic void chi() {\n\t\tSystem.out.println(\"狗:喜欢吃骨头\");\n\t}", "title": "" }, { "docid": "d185bf23bd45b4617e43f1d8bd920ba3", "score": "0.5644671", "text": "char letterGrade();", "title": "" }, { "docid": "ac00f77c54b2c569633d9aab7ca443a7", "score": "0.56404364", "text": "public void keyPress(String s)\n\t\t{\n\t\t\tif (suew.equals(s)) \n\t\t\t{\n\t\t\t\tjoe.translate(0,-5);\n\t\t\t\tname.translate(0,-5);\n\t\t\t}\n\t\t\tif (suea.equals(s)) \n\t\t\t{\n\t\t\t\tjoe.translate(-5,0);\n\t\t\t\tname.translate(-5,0);\n\t\t\t}\n\t\t\tif (sues.equals(s)) \n\t\t\t{\n\t\t\t\tjoe.translate(0,5);\n\t\t\t\tname.translate(0,5);\n\t\t\t}\n\t\t\tif (sued.equals(s)) \n\t\t\t{\n\t\t\t\tjoe.translate(5,0);\n\t\t\t\tname.translate(5,0);\n\t\t\t}\n\t\t\tchar done = (char)10;\n\t\t\tString temp = Character.toString(done);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2210a6aded28bc9ee77109dd26aa4262", "score": "0.5637148", "text": "@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tint code = e.getKeyCode();\n\t\tif (code == 10) {\n\t\t\tString msg = jtf.getText();\n//\t\t\tjta.append(\"me : \"+msg+\"\\n\");\n\t\t\tpw.println(msg);\n\t\t\tpw.flush(); // 요게 리슨에 주는 트리거 인가????? (이거는 아직 추측일 뿐임)\n\t\t\tjtf.setText(\"\");\n\t\t\tjtf.requestFocus();\n\t\t}\n//\t\t\t\t\tpw.println(\"\");\n//\t\t\t\t\tpw.flush(); // 요게 리슨에 주는 트리거 인가????? (이거는 아직 추측일 뿐임)\n//\t\t\t\t\tThread.sleep(50);\n//\t\t}\n//\t\t\tpw.println(\"\");\n//\t\tjtf.setText(\"\");\n//\t\tjtf.requestFocus();\n\t}", "title": "" }, { "docid": "fa33d375574d38976b4805fc1319a42e", "score": "0.5636065", "text": "public void actionPerformed(ActionEvent ae) {\n\t\t\t\t//these lines are mainly for testing purposes!\n\t\t\t\tviewer.append(\"\\n\"+player_name+\" @\"+choose_recipient.getSelectedItem()+\": \"+enter.getText());\n\t\t\t\tsendMessage(choose_recipient.getSelectedItem().toString(), enter.getText());\n\t\t\t\tenter.setText(\"\");\n\t\t\t}", "title": "" }, { "docid": "a076732c21d26a0b923ee413f1eed6e6", "score": "0.56312764", "text": "void send(ZWMsg msg);", "title": "" }, { "docid": "84ced91a4d451e85257f8efa03445fef", "score": "0.562817", "text": "private void sendMessage(String mess, String name) {\n try {\n out.writeUTF(name + \" dijo: \" + mess);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c1b416d79792c77ca2eca3260d3389a3", "score": "0.5626639", "text": "public void send(String msg) {\n System.out.println(\"sending to \" + this + \" : \" + msg);\n pw.println(msg);\n pw.flush();\n }", "title": "" }, { "docid": "48679c2d0e03f7fe9b67c8f11a204764", "score": "0.5626508", "text": "public static void pLetter()\r\n\t{\r\n\t\tSystem.out.println(\"PPPPPPP\");\r\n\t\tSystem.out.println(\"P P\");\r\n\t\tSystem.out.println(\"P P\");\r\n\t\tSystem.out.println(\"PPPPPPP\");\r\n\t\tSystem.out.println(\"P\");\r\n\t\tSystem.out.println(\"P\");\r\n\t\tSystem.out.println(\"P\");\r\n\t}", "title": "" }, { "docid": "8ee8e1a00d7da37da73b83a4c7f62cb5", "score": "0.5611354", "text": "public void processLetterMessage(String[] result) {\n \tif (clientSentence.equals(result[1])) {\n this.sendMessage(\"CONGRATULATION|\" + this.clientTries + \"|\" + this.clientSentence + \"|\" + this.clientSentence.length() * this.clientSentence.length() * 10 + \"\\n\");\n } else {\n char letter = result[1].charAt(0);\n \n // We check if the client already typed this letter\n boolean alreadyEntered = false;\n if (this.letterAlreadyEntered.contains(letter)) {\n \talreadyEntered = true;\n } else {\n \tthis.letterAlreadyEntered.add(letter);\n }\n \n boolean found = false;\n\n // We refresh the actual word of the client\n for (int i = 0; i < this.clientSentence.length(); i++) {\n if (this.clientSentence.charAt(i) == letter) {\n found = true;\n this.actualSentence.setCharAt(i, letter);\n \n if (!alreadyEntered) {clientScore += 10 * clientSentence.length();}\n }\n }\n\n // We decrement the score if the letter is not in the word\n if (found == false) {\n this.clientTries--;\n }\n\n if (this.clientSentence.equals(this.actualSentence.toString())) {\n // The player wins the game\n this.sendMessage(\"CONGRATULATION|\" + this.clientTries + \"|\" + this.clientSentence + \"|\" + this.clientScore + \"\\n\");\n } else if (this.clientTries == 0) {\n // The player lost the game\n this.sendMessage(\"LOOSE|\" + this.clientSentence + \"|\" + this.clientTries + \"\\n\");\n } else {\n // The player is still playing. We send him a STATUS message\n this.sendMessage(\"STATUS|\" + this.clientTries + \"|\" + this.actualSentence + \"|\" + this.clientScore + \"\\n\");\n }\n }\n }", "title": "" }, { "docid": "41148273ac8b6b21fe5fb25f4afeb757", "score": "0.560602", "text": "void sendMessage(Key key, Message message);", "title": "" }, { "docid": "97d3bc99389b7531df5502810880b9a0", "score": "0.560372", "text": "@Override\n public void onClick(View v) {\n robotAPI.robot.stopSpeakAndListen();\n\n String text = \"好的,有點厲害耶,好羨慕你\";\n CommandSerial_C= mRobotAPI.robot.speak(text);\n Log.d(TAG, \"check :\"+ CommandSerial_C);\n }", "title": "" }, { "docid": "404833f8e99d7361f3c43b7ac1db18b6", "score": "0.559315", "text": "@Override\n public void onClick(View v) {\n robotAPI.robot.stopSpeakAndListen();\n\n String text = \"好的,跟我一樣是小資族呢\";\n CommandSerial_B = mRobotAPI.robot.speak(text);\n Log.d(TAG, \"check :\"+ CommandSerial_B);\n }", "title": "" }, { "docid": "bfc09c8cdd39bc27f20854836112e102", "score": "0.558935", "text": "private void attemptSend(String text){\n if (TextUtils.isEmpty(text)) {\n return;\n }\n Toast.makeText(getContext(), \"Send\" + edtPhone.getText().toString().trim(), Toast.LENGTH_SHORT).show();\n mSocket.emit(\"new message\", text);\n }", "title": "" }, { "docid": "147a5cfdccb4a70b236db2b0b0658c34", "score": "0.55877113", "text": "public void guessClicked(View view) {\n try {\n char charGuessed = et.getText().charAt(0);\n checkIfLetterIsInWord(charGuessed);\n }catch (Exception e){\n Toast.makeText(Hangman.this, R.string.nocharacter, Toast.LENGTH_SHORT).show();\n }finally{\n et.setText(\"\");\n }\n }", "title": "" }, { "docid": "5f366af41c566857abd7f8dca783f71d", "score": "0.5585953", "text": "@Override\n public void sendUsername() {\n sendMessage(\"/username Bot\", server);\n }", "title": "" }, { "docid": "e400a430a0d568306c2f4d969802e0a5", "score": "0.5584772", "text": "@Override\n public void talk() {\n String[] dialogues = {\"BA\", \"woof!\", \"Wan\"};\n String bark = \"\";\n Random r = new Random();\n int randInt = r.nextInt(dialogues.length);\n for (int i = 0; i < dialogues.length; i++) {\n if (i == randInt) {\n bark = dialogues[i];\n }\n }\n notifyAdd(new Text(bark, Text.TextType.DIALOGUE, new Point(getX(), getY())));\n }", "title": "" }, { "docid": "a48120dc62dcad6ba6ba7c7e3e462b4f", "score": "0.5580028", "text": "public char normalSpecialLetter(char specialLetter);", "title": "" }, { "docid": "12e5a483db76441a93759100c742a8eb", "score": "0.5577629", "text": "public char askGuess();", "title": "" }, { "docid": "264710aab0c02fdea7a5803e3d5514cd", "score": "0.5572646", "text": "public void keyPressed(KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n sendMessage();\n }\n\n // Get last message typed\n if (e.getKeyCode() == KeyEvent.VK_UP) {\n String currentMessage = chat.getText().trim();\n chat.setText(msgo);\n msgo = currentMessage;\n }\n\n }", "title": "" }, { "docid": "29aad5f931913f6ec0b015f4df1fb3d5", "score": "0.55716586", "text": "public void speak (String textInput);", "title": "" }, { "docid": "2804174ac77a6b45477432369f3088f9", "score": "0.5570994", "text": "public void sendAnswer1() {\n sender.sendInput(godPowerButton1.getText());\n resetButtons();\n }", "title": "" }, { "docid": "513008c87bba884f6b1167e81d1caf76", "score": "0.55708915", "text": "@Override\r\n\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\tif (e.getKeyCode() == 10) { // 엔터를 누를 때 보내기 버튼을 강제 클릭\r\n\r\n\t\t\t\tsend_bt.doClick();\r\n\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "fe354e7979acd4830359b9c11eacf597", "score": "0.5570584", "text": "private static void printStrikeLetterMessage(Character strikeLetter) {\n\t\tSystem.out.println(strikeLetter.toString() + \" is not on the word\");\n\t}", "title": "" }, { "docid": "05205ec6d6aa6b7fbd9252340260c902", "score": "0.55629456", "text": "public static void sLetter()\r\n\t{\r\n\t\tSystem.out.println(\"SSSSSSS\");\r\n\t\tSystem.out.println(\"S \");\r\n\t\tSystem.out.println(\"S \");\r\n\t\tSystem.out.println(\"SSSSSSS\");\r\n\t\tSystem.out.println(\" S\");\r\n\t\tSystem.out.println(\" S\");\r\n\t\tSystem.out.println(\"SSSSSSS\");\r\n\t}", "title": "" }, { "docid": "2d5e14b027fcd6bfda510dd6ec7e3ee5", "score": "0.5548324", "text": "protected void contactMe(ActionEvent ae)\n\t{\n\t\tString info = \"请致电15986909153\\n\";\n\t\tJOptionPane.showMessageDialog(this, info);\n\t}", "title": "" }, { "docid": "b2f07e1a4270b2c3e9e4a727acd1e708", "score": "0.5545817", "text": "synchronized void sendData() {\n try {\n output.write(\"2\" + alias + \" >>> \" + jTextArea_chat_input.getText().trim().toString());\n output.newLine();\n output.flush();\n jTextArea_chat_input.setText(\"\");\n jTextArea_chat_input.requestFocus();\n } catch (Exception e) {\n // do nothing\n }\n }", "title": "" } ]
0e55a7f77369b3d6784536f8cc2ccdef
Fetch the productTypeID of the policy currently being quoted, or an empty String if no product is currently being quoted.
[ { "docid": "3f34ce5733f3c6d37824142c5b4178ca", "score": "0.7350632", "text": "String currentProduct() {\n if (PageFlowContext.getPolicy() != null && PageFlowContext.getPolicy().getProductTypeId() != null) {\n return PageFlowContext.getPolicy().getProductTypeId();\n } else {\n return \"\";\n }\n }", "title": "" } ]
[ { "docid": "2d52b7d393e5f6396889eab5a43cf15a", "score": "0.6270312", "text": "public Integer getProductTypeId() {\r\n return productTypeId;\r\n }", "title": "" }, { "docid": "c53bb706837932653783cdf4e8bbaea1", "score": "0.60346127", "text": "public String getType() {\r\n\t\treturn productType;\r\n\t}", "title": "" }, { "docid": "c752f9790daf4f051dc107c32a286e44", "score": "0.5852054", "text": "public String getProductType() {\n\t\treturn productType;\n\t}", "title": "" }, { "docid": "da69e6a36b824444a472d748dce47682", "score": "0.583532", "text": "public String getProductTypeName() {\r\n return productTypeName;\r\n }", "title": "" }, { "docid": "e16eab95743a0ee39f69641ad43aa492", "score": "0.567525", "text": "public String getProID() {\n\t\treturn sh_ProductID;\n\t}", "title": "" }, { "docid": "6d1dee94dc7c45daaa2fd4aab9258e8a", "score": "0.56590974", "text": "java.lang.String getProductCode();", "title": "" }, { "docid": "834dd2c5e8cb4b9369a95c0fcec97ea6", "score": "0.5631431", "text": "public String getProductID() {\r\n return productID;\r\n }", "title": "" }, { "docid": "aed8f6f67f15ed7102bef5f54ac6e09f", "score": "0.5622978", "text": "java.lang.String getProductNumberCode();", "title": "" }, { "docid": "29c7b8e3cef39a3e39f99a25d3f5727d", "score": "0.55962986", "text": "public java.lang.String getPolicyNo() {\n return policyNo;\n }", "title": "" }, { "docid": "29c7b8e3cef39a3e39f99a25d3f5727d", "score": "0.55962986", "text": "public java.lang.String getPolicyNo() {\n return policyNo;\n }", "title": "" }, { "docid": "b27a99c6dc915258a2cd8e582978a1aa", "score": "0.55844504", "text": "public java.lang.CharSequence getRequestingProductId() {\n return requesting_product_id;\n }", "title": "" }, { "docid": "9ac59ab30b02147f52e3c91cb4a99275", "score": "0.55463594", "text": "public java.lang.CharSequence getRequestingProductId() {\n return requesting_product_id;\n }", "title": "" }, { "docid": "1516ce5da0831b0471615d666ca2d60b", "score": "0.5544966", "text": "private ProductType getType(String productName) {\n\n\t\tfor (Entry<ProductType, List<String>> productTypeEntry : AppConstants.PRODUCT_TYPES_MAPPER.entrySet())\n\t\t\tfor (String expectedProductName : productTypeEntry.getValue())\n\t\t\t\tif (productName.contains(expectedProductName))\n\t\t\t\t\treturn productTypeEntry.getKey();\n\n\t\treturn ProductType.ANONYMOUS;\n\n\t}", "title": "" }, { "docid": "11b66d0deb4ba893fc10ca7c3aee75b6", "score": "0.5453616", "text": "String getProductId();", "title": "" }, { "docid": "eb9c4280b1720ac34fa5375627c2bc55", "score": "0.54388773", "text": "public String getProductID() {\n final byte[] data = new byte[12];\n mem.getBytes(16, data, 0, data.length);\n return new String(data).trim();\n }", "title": "" }, { "docid": "9d8f07b76e83517d389362515e04c077", "score": "0.5406157", "text": "String productKind();", "title": "" }, { "docid": "76c760a10c082fd47e8117bb167fd4ac", "score": "0.5390059", "text": "public int getM_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "76c760a10c082fd47e8117bb167fd4ac", "score": "0.5390059", "text": "public int getM_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "76c760a10c082fd47e8117bb167fd4ac", "score": "0.5390059", "text": "public int getM_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "38526a596998fb61eccc3ec13d35b208", "score": "0.53765607", "text": "String getOrderTypeId();", "title": "" }, { "docid": "1eaed2de1cd034ac12cc7e6a354b99d5", "score": "0.53682184", "text": "public PrizeType getPrizeType(long prizeTypeId) throws ContestManagementException {\n return null;\r\n }", "title": "" }, { "docid": "1eaed2de1cd034ac12cc7e6a354b99d5", "score": "0.53682184", "text": "public PrizeType getPrizeType(long prizeTypeId) throws ContestManagementException {\n return null;\r\n }", "title": "" }, { "docid": "a7bc90edfd0c189d1cb178879d55e7ef", "score": "0.5361285", "text": "public String policyNo() {\r\n sleep(2000);\r\n String profileNoLable = pageHeaderForPolicyFolder.getAttribute(\"innerHTML\");\r\n String[] portfolioNo = profileNoLable.split(\" \", 3);\r\n return portfolioNo[2];\r\n }", "title": "" }, { "docid": "b027d9216da605e0ccf09a2e972b14ff", "score": "0.5347561", "text": "x0401.oecdStandardAuditFileTaxPT1.ProductTypeDocument.ProductType xgetProductType();", "title": "" }, { "docid": "59eae9082bc57b29d305336b093ecc8c", "score": "0.53100556", "text": "public Integer getPrizeType() {\n return prizeType;\n }", "title": "" }, { "docid": "b4bb3362bac57cc44e059cb85dc73f1a", "score": "0.5303349", "text": "public String getProductClass() {\n return (String)getAttributeInternal(PRODUCTCLASS);\n }", "title": "" }, { "docid": "591fcfed9fe4943886cd193165dd2072", "score": "0.5301651", "text": "public short getIdProduct() {\r\n\t\treturn idProduct;\r\n\t}", "title": "" }, { "docid": "58542568216934692f4de4edb0611815", "score": "0.5295582", "text": "public String getProduct_id() {\n return product_id;\n }", "title": "" }, { "docid": "58542568216934692f4de4edb0611815", "score": "0.5295582", "text": "public String getProduct_id() {\n return product_id;\n }", "title": "" }, { "docid": "88084932f8ae267b2fdf2e9129838c69", "score": "0.52952445", "text": "public String getKind_of_product() {\r\n return kind_of_product;\r\n }", "title": "" }, { "docid": "cef85b4b11d29c9e5a3c3d5b47d52ae3", "score": "0.52775645", "text": "public java.lang.String getProduct() {\n return product;\n }", "title": "" }, { "docid": "ce23d996a898a10cc3bd9beadbb8601c", "score": "0.52648216", "text": "String getTheirProductId();", "title": "" }, { "docid": "84468ca3106dee373c9e4fb6abcea51c", "score": "0.52638894", "text": "protected String getProductId() {\n return productId;\n }", "title": "" }, { "docid": "9e0f792f87f7fbb8560ee681e41c80f3", "score": "0.52612287", "text": "public ID getPharmacyOrderType() { \r\n\t\tID retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "title": "" }, { "docid": "ef9537e68284aa5462dc35dbfab9649e", "score": "0.5207081", "text": "public String getProductid() {\n return productid;\n }", "title": "" }, { "docid": "55893b83bc2a33e03d17c80323c7e2bc", "score": "0.52000284", "text": "public int getM_Product_ID();", "title": "" }, { "docid": "55893b83bc2a33e03d17c80323c7e2bc", "score": "0.52000284", "text": "public int getM_Product_ID();", "title": "" }, { "docid": "3dca8da2aa1485c1d43348b4b9e28770", "score": "0.51947737", "text": "public int getPolicyID(int policy_id) {\n int id = 0;\n try {\n checkPolicyID.setInt(1, policy_id);\n ResultSet resultset = checkPolicyID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"policy_id\");\n System.out.println(\"Policy ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "title": "" }, { "docid": "2924bee7f3feb6927f19fdc97b2ca765", "score": "0.5193907", "text": "String getProduct();", "title": "" }, { "docid": "615b1bdce4246e9cacf6d322883a8267", "score": "0.5175478", "text": "public String getProductId() {\n return productId;\n }", "title": "" }, { "docid": "615b1bdce4246e9cacf6d322883a8267", "score": "0.5175478", "text": "public String getProductId() {\n return productId;\n }", "title": "" }, { "docid": "615b1bdce4246e9cacf6d322883a8267", "score": "0.5175478", "text": "public String getProductId() {\n return productId;\n }", "title": "" }, { "docid": "615b1bdce4246e9cacf6d322883a8267", "score": "0.5175478", "text": "public String getProductId() {\n return productId;\n }", "title": "" }, { "docid": "615b1bdce4246e9cacf6d322883a8267", "score": "0.5175478", "text": "public String getProductId() {\n return productId;\n }", "title": "" }, { "docid": "2dbfc9c4ea5df20492be8e193984fd38", "score": "0.51704574", "text": "x0401.oecdStandardAuditFileTaxPT1.ProductTypeDocument.ProductType.Enum getProductType();", "title": "" }, { "docid": "0563a88278725ec2c1318a9963742aef", "score": "0.51656234", "text": "public java.lang.CharSequence getRespondingProductId() {\n return responding_product_id;\n }", "title": "" }, { "docid": "495c46c6b6f7ed866c8ffc390a5cbebb", "score": "0.5144521", "text": "public String getProductId() {\r\n\t\treturn productId;\r\n\t}", "title": "" }, { "docid": "067aa5e053ac16e04812f02c3af126d1", "score": "0.51280147", "text": "public TypeProduct getTypeProduct() {\r\n\t\treturn typeProduct;\r\n\t}", "title": "" }, { "docid": "cec1ecfc902190457f4a48b6f5ed7be9", "score": "0.51237535", "text": "public int getProduct_id() {\r\n\t\treturn product_id;\r\n\t}", "title": "" }, { "docid": "219b5f7ead71e54f5ed69306ef8ad57f", "score": "0.51232815", "text": "public String getProductId();", "title": "" }, { "docid": "c63ce95bbe8151de6ba38bb287d901e5", "score": "0.5122584", "text": "java.lang.String getPkiType();", "title": "" }, { "docid": "19f9e5f38c9a9a5ab0a45bd7e0371f3f", "score": "0.5122198", "text": "public String getProductProcess() {\n return productProcess;\n }", "title": "" }, { "docid": "237392fb075e39dac974e9066a7d11eb", "score": "0.51198953", "text": "public int getAD_Tree_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_Tree_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "cf3c6de311e8170e3327c11626dd3f6f", "score": "0.5114791", "text": "public java.lang.CharSequence getRespondingProductId() {\n return responding_product_id;\n }", "title": "" }, { "docid": "cdf8d4a05ec1da68e994ce1b121b56a9", "score": "0.51054907", "text": "public String product() {\n return this.product;\n }", "title": "" }, { "docid": "223ccac1e1b9d638511ab5169c2d24cc", "score": "0.5098865", "text": "public String getProduct() {\n return product;\n }", "title": "" }, { "docid": "223ccac1e1b9d638511ab5169c2d24cc", "score": "0.5098865", "text": "public String getProduct() {\n return product;\n }", "title": "" }, { "docid": "348cab6f16b027780c45e9c4dd1baf20", "score": "0.509742", "text": "public String getProductNo() {\n\t\treturn productNo;\n\t}", "title": "" }, { "docid": "222fd14a5000f080dac32daf0db4e77f", "score": "0.509333", "text": "public Integer getqTypeid() {\n return qTypeid;\n }", "title": "" }, { "docid": "721898b385471ffdf3e5bbb15373d1ab", "score": "0.50929546", "text": "public int getProduct_id() {\n\t\treturn product_id;\n\t}", "title": "" }, { "docid": "64b293b17f938f092cc049ee2eea33c5", "score": "0.50925046", "text": "public static String generateProductID() {\n\tproductID++;\n\treturn String.valueOf(productID);\n }", "title": "" }, { "docid": "df7a67400f7bd5f173bca15b2a5946a0", "score": "0.5080182", "text": "public String getXpeProductId() {\n return (String) getAttributeInternal(XPEPRODUCTID);\n }", "title": "" }, { "docid": "2fa40493476f763e95bac7a6ba3f4319", "score": "0.5074743", "text": "public String getProduct() {\r\n return this.product;\r\n }", "title": "" }, { "docid": "2f0e2466541d8370604c5571235bde46", "score": "0.5057094", "text": "public String getProduct() {\n return this.product;\n }", "title": "" }, { "docid": "0287d04c8ffb4fdf48b6650b89ac7697", "score": "0.50494576", "text": "public ID getRxa26_PharmacyOrderType() { \r\n\t\tID retVal = this.getTypedField(26, 0);\r\n\t\treturn retVal;\r\n }", "title": "" }, { "docid": "721f0075f5c179c16307a79d15022ce7", "score": "0.5048666", "text": "public String getProduct()\n {\n return product;\n }", "title": "" }, { "docid": "fc4f90a7bb27af71f42be9aba8f608f0", "score": "0.5046695", "text": "public java.lang.String getPolicyNbr() {\n return policyNbr;\n }", "title": "" }, { "docid": "2640399d2add060d25400f6f1a89af6e", "score": "0.50298846", "text": "public Integer getProductId() {\r\n return productId;\r\n }", "title": "" }, { "docid": "2640399d2add060d25400f6f1a89af6e", "score": "0.50298846", "text": "public Integer getProductId() {\r\n return productId;\r\n }", "title": "" }, { "docid": "26e8bfd27fc2bfbc9e9d946b05ce5abf", "score": "0.502971", "text": "public String getLoyaltyType() {\n if (compositePOSTransaction.getLoyaltyCard() != null\n && compositePOSTransaction.getLoyaltyCard().getStoreType() != null)\n return res.getString(compositePOSTransaction.getLoyaltyCard().getStoreType());\n else\n return null;\n }", "title": "" }, { "docid": "d3cb2ae10ecb1d3dc2229c8816ce0d22", "score": "0.50285983", "text": "public Integer getProductCode() {\n\t\treturn productCode;\n\t}", "title": "" }, { "docid": "d4a1b9475018905b9cafea7e56d6a815", "score": "0.5026515", "text": "public String getIDType() {\n return idType;\n }", "title": "" }, { "docid": "f67bbaea28b61ceba1f5a3c7e3fe15fd", "score": "0.5016111", "text": "public Number getProdLId() {\n return (Number)getAttributeInternal(PRODLID);\n }", "title": "" }, { "docid": "81698cda4ea0986abb7b6ed89c20752c", "score": "0.501425", "text": "public String getProductId() ;", "title": "" }, { "docid": "99bd34ba0050db67a7665cc5448e40f8", "score": "0.5014085", "text": "static int askProductType() {\n\n int choice; // initialize return variable\n\n choice = Validate.readInt(ASK_PRODUCT_TYPE, 2); // display options to user for products and store result if valid choice\n\n return choice; // return users choice\n }", "title": "" }, { "docid": "b16e7df033464191875ec32d180cc906", "score": "0.5014045", "text": "public ProductType getProduct() {\n return product;\n }", "title": "" }, { "docid": "1d6543d08e01e0837489b9440e2082c5", "score": "0.5010146", "text": "public String getType() {\n if(iType == null){\n ArrayList<Identification_to_quantitation> lLinkers = this.getQuantitationLinker();\n for (int j = 0; j < lLinkers.size(); j++) {\n if (lLinkers.get(j).getL_identificationid() == this.getIdentificationid()) {\n this.setType(lLinkers.get(j).getType());\n }\n }\n }\n return iType;\n }", "title": "" }, { "docid": "cea22a6df629ef2ba122f30084830230", "score": "0.5004409", "text": "@Exclude\n public String getIdProduct() {\n return idProduct;\n }", "title": "" }, { "docid": "9a6b4a1947ca0b677fd056b59d51a513", "score": "0.49913552", "text": "public String getProductInstallType();", "title": "" }, { "docid": "cbf7fbf33fe98f784ca31fefdec0c640", "score": "0.49904302", "text": "public Integer getProductUomId() {\n return productUomId;\n }", "title": "" }, { "docid": "cbf7fbf33fe98f784ca31fefdec0c640", "score": "0.49904302", "text": "public Integer getProductUomId() {\n return productUomId;\n }", "title": "" }, { "docid": "4bf5301e6d66bcff29036e5446c4928e", "score": "0.49885496", "text": "public Class getType() {\n return SSProduct.class;\n }", "title": "" }, { "docid": "79edf0d4eabd6eb98df0e5f478f8eb4e", "score": "0.49856073", "text": "public Integer getProductId() {\n return productId;\n }", "title": "" }, { "docid": "79edf0d4eabd6eb98df0e5f478f8eb4e", "score": "0.49856073", "text": "public Integer getProductId() {\n return productId;\n }", "title": "" }, { "docid": "79edf0d4eabd6eb98df0e5f478f8eb4e", "score": "0.49856073", "text": "public Integer getProductId() {\n return productId;\n }", "title": "" }, { "docid": "79edf0d4eabd6eb98df0e5f478f8eb4e", "score": "0.49856073", "text": "public Integer getProductId() {\n return productId;\n }", "title": "" }, { "docid": "79edf0d4eabd6eb98df0e5f478f8eb4e", "score": "0.49856073", "text": "public Integer getProductId() {\n return productId;\n }", "title": "" }, { "docid": "79edf0d4eabd6eb98df0e5f478f8eb4e", "score": "0.49856073", "text": "public Integer getProductId() {\n return productId;\n }", "title": "" }, { "docid": "20b93c319607a9d0769a3d57008aa6fc", "score": "0.49799383", "text": "public Policy _get_policy(int policy_type) {\n throw new NO_IMPLEMENT(reason);\n }", "title": "" }, { "docid": "822de9f7e147445f96940855e311cc39", "score": "0.49796474", "text": "public java.lang.CharSequence getQtypename() {\n return qtypename;\n }", "title": "" }, { "docid": "c1b213953a4c7ce4c26e0581fb4df590", "score": "0.49604997", "text": "public String getProductNumber() {\n\t\treturn productNumber;\n\t}", "title": "" }, { "docid": "56a3871e663813e858681ba7ab18b60e", "score": "0.4959243", "text": "public String getPrId() {\n return prId;\n }", "title": "" }, { "docid": "6c0f11123ba9be4cd263ec070efaf831", "score": "0.49567986", "text": "int getProductKey();", "title": "" }, { "docid": "13c48dcaab4e00a5dae8874eb7ad9277", "score": "0.495552", "text": "@java.lang.Override public int getDisplayUploadProductTypeValue() {\n return displayUploadProductType_;\n }", "title": "" }, { "docid": "4f90311302b65948b11c73ab32c2c6e2", "score": "0.49553245", "text": "public Integer getProductId() {\n\t\treturn productId;\n\t}", "title": "" }, { "docid": "af3ccd4d7e630ff645edc7e905e80fa4", "score": "0.49513254", "text": "public java.lang.CharSequence getQtypename() {\n return qtypename;\n }", "title": "" }, { "docid": "798da074e1ec3cd78d4a0ae01e729c48", "score": "0.49509948", "text": "public com.flexnet.operations.webservices.ProductIdentifierType[] getProductIdentifier() {\n return productIdentifier;\n }", "title": "" }, { "docid": "216b0604c765d108159f84aead915e0d", "score": "0.49500516", "text": "public int getM_Product_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Product_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "title": "" }, { "docid": "069fd8230b8bb2f12deea220c4d1596c", "score": "0.49479756", "text": "public Integer getProductAttributeValueId() {\n return productAttributeValueId;\n }", "title": "" }, { "docid": "06c0d7215baf5197c17b0da9ac08f4fd", "score": "0.49413675", "text": "public static String getProductType(Long Id) throws SQLException, ClassNotFoundException {\n\n\t\tProductModel.LazyLoading();\n\t\treturn product.findproductType(Id);\n\n\t}", "title": "" } ]
394e1c3830856cd4865d519553e4c1cb
adjust get current value of the given index, or NaN if not in the heap.
[ { "docid": "ac08bd7fb18ac9c4c867215fa0ae2aa8", "score": "0.0", "text": "public double getValue(int index)\n {\n return values[index];\n }", "title": "" } ]
[ { "docid": "d7dfe85a4b076410f937263ad6e44b9b", "score": "0.73763597", "text": "public void adjust(int index, double val)\n {\n CHECK(!Double.isNaN(values[index]));\n values[index] = val;\n heapGeneral.adjust(index);\n }", "title": "" }, { "docid": "840f1f2c961f4d343771a6e3640c103d", "score": "0.66668147", "text": "public void Heapify_Up(Integer index) {\n HeapNode<T> temp;\n if (index > 1) {\n int j = index / 2;\n if (Heap[index].prioValue < Heap[j].prioValue) {\n swap(index, j);\n }\n }\n }", "title": "" }, { "docid": "c31f09fa4f31a04e3bc34ebf8296a8be", "score": "0.6485099", "text": "protected void percolateUpMaxHeap(final int index) {\n int hole = index;\n T element = elements.get(hole);\n\n while (hole > 1 && compare(element, elements.get(hole / 2)) > 0) {\n // save element that is being pushed down\n // as the element \"bubble\" is percolated up\n final int next = hole / 2;\n setElement( hole, elements.get(next) );\n hole = next;\n }\n\n setElement( hole, element );\n }", "title": "" }, { "docid": "89d853706cd9c7f786d107d8f8e31be6", "score": "0.63263184", "text": "private void upheap(int index) {\r\n // store the parent of the index\r\n int parent = (int)Math.floor(index/2);\r\n\r\n // check if we have a parent\r\n if(parent > 0) {\r\n // if we do, check if we are less than out parent\r\n if(_heap[index] < _heap[parent]) {\r\n // if so swap places with our parent\r\n swap(parent, index);\r\n // call upheap on the parent\r\n upheap(parent);\r\n }\r\n else {\r\n return;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "82f927553c0c15d7e8a3867bdc7ccd88", "score": "0.63140917", "text": "public void Heapify_Down(Integer index) {\n int n = size;\n Integer left;\n Integer right;\n Integer j = index;\n if(size == 2) {\n if(Heap[index].prioValue < Heap[2*index].prioValue) {\n return;\n } else if (Heap[index].prioValue > Heap[2*index].prioValue) {\n swap(index, 2*index);\n }\n }\n if(size == 1) {\n return;\n }\n if(2*index > n) {\n return;\n }else if(2*index < n) {\n left = 2*index;\n right = (2*index) + 1;\n if(Heap[left].prioValue < Heap[right].prioValue) {\n j = left;\n } else if(Heap[left].prioValue > Heap[right].prioValue) {\n j = right;\n }\n // swap(index, j);\n }else if(2*index == n) {\n j = 2*index;\n }\n if(Heap[j].prioValue < Heap[index].prioValue) {\n swap(index, j);\n Heapify_Down(j);\n }\n }", "title": "" }, { "docid": "b2b0c62f1602d782fde20a7114c40ca2", "score": "0.6298128", "text": "private void bubbleUp( int idx )\n {\n if ( idx == 0 )\n {\n return;\n }\n \n // TODO: Abstract accessing heap-index from array-index which is off by one.\n // Return null items if index-out-of0-bounds.\n \n T item = getItem( idx );\n T left = getItem( 2 * idx );\n T right = getItem( 2 * idx + 1 );\n T parent = getItem( idx / 2 ); \n\n //\n // Bubble-up smaller items in our max-heap as necessary.\n // \n \n if ( null != left && needsSwapped( item, left ) )\n {\n setItem( idx, left );\n setItem( 2 * idx, item );\n }\n else if ( null != right && needsSwapped( item, right ) )\n {\n setItem( idx, right );\n setItem( 2 * idx + 1, item );\n }\n else if ( null != parent && needsSwapped( parent, item ) )\n {\n setItem( idx, parent );\n setItem( idx / 2, item );\n }\n bubbleUp( idx / 2);\n }", "title": "" }, { "docid": "0d8dab926d5e33207c6bfe09e274b902", "score": "0.6134584", "text": "private void bubbleUp(int index) {\n if (isMaxHeap) {\n while (parent(index) >= 0 && heap[index].compareTo(heap[parent(index)]) > 0) {\n swap(index, parent(index));\n index = parent(index);\n }\n } else {\n while (parent(index) >= 0 && heap[index].compareTo(heap[parent(index)]) < 0) {\n swap(index, parent(index));\n index = parent(index);\n }\n }\n }", "title": "" }, { "docid": "b4d4d78ca87a82e3a213c16b33935abe", "score": "0.60911405", "text": "private void bubbleup()\n\t{\n\t\t//index of the thing we just put in the array\n\t\tint index = this.size;\n\t\t//while we aren't at the head and our values parent > greater than the thing we're trynna add in the right place\n\t\twhile(index >0 && \n\t\t\theap[(index-1)/2].compareTo(heap[index])<0)\n\t\t{\n\t\t\t//we swap them values and change our index to the parent cuz that's where we are now\n\t\t\tProcess temp = heap[(index-1)/2];\n\t\t\theap[(index-1)/2] = heap[index];\n\t\t\theap[index] = temp;\n\t\t\tindex = (index-1)/2;\n\t\t}\n\t}", "title": "" }, { "docid": "84012b6d47541f67d0bb05650b4e76d9", "score": "0.60564005", "text": "private static void add(int newEntry) {\r\n // new index is going to be the next available slot, so the last possible index + 1\r\n int newIndex = lastIndex+1;\r\n // parent index in a complete or full array is always current / 2. integer divide only.\r\n int parentIndex = newIndex / 2;\r\n\r\n // checks if parentIndex is non-negative and that the inputted value is greater than it's parent\r\n while (parentIndex > 0 && newEntry > emptyHeap[parentIndex]) {\r\n // if it is greater than we swap it here\r\n emptyHeap[newIndex] = emptyHeap[parentIndex];\r\n // then change the respective values \r\n newIndex = parentIndex;\r\n // change the respective parent index due to the swap\r\n parentIndex = newIndex / 2;\r\n // adds an increment\r\n addCounter++;\r\n }\r\n\r\n // assigns value of newEntry to the array index that is available\r\n emptyHeap[newIndex] = newEntry;\r\n // increments\r\n lastIndex++;\r\n\r\n }", "title": "" }, { "docid": "39fd5c05f7a95e7510728390402facd6", "score": "0.6036908", "text": "public E poll() {\n if (size == 0) return null;\n E tmp = heap.get(1);\n heap.set(1, heap.get(size));\n heap.set(size, tmp);\n size--;\n heapify(1);\n /*map.put(heap.get(1), i);*/\n map.remove(heap.get(size+1));\n return heap.get(size+1);\n }", "title": "" }, { "docid": "75417177cde0332e70fbcc0f11ccdb60", "score": "0.60026735", "text": "public void min_heapify(int index)\r\n\t{/*\r\n\t\tMax-Heapify (A, i):\r\n\t\t\t left ← 2i\r\n\t\t\t right ← 2i + 1\r\n\t\t\t largest ← i\r\n\t\t\t if left ≤ heap_length[A] and A[left] > A[largest] then:\r\n\t\t\t largest ← left\r\n\t\t\t if right ≤ heap_length[A] and A[right] > A[largest] then:\r\n\t\t\t largest ← right\r\n\t\t\t if largest ≠ i then:\r\n\t\t\t swap A[i] ↔ A[largest]\r\n\t\t\t Max-Heapify(A, largest)\r\n\t */\r\n\t\t\r\n\t\tint children[] = new int[this.d];\r\n\t\tfor(int i=0;i<d;i++)\r\n\t\t\tchildren[i]=this.d*index + i+1;\r\n\t\tint tiniest = index;\r\n\t\t\r\n\t\tfor(int i=0;i<d;i++)\r\n\t\t\tif(children[i] <= this.indexLastElement && this.tab[children[i]].weight<this.tab[tiniest].weight)\r\n\t\t\t\ttiniest = children[i];\r\n\t\t\r\n\t\tif(tiniest!=index)\r\n\t\t{\r\n\t\t\tswap(index,tiniest);\r\n\t\t\t\r\n\t\t\tmin_heapify(tiniest);\r\n\t\t}\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "f7cfe0c6e389ecc08744457b3dc8454c", "score": "0.59750134", "text": "@Override\n\tpublic void insert(E val) {\n\t\tif (size == heapArray.length - 1) {\n\t\t\treSize();\n\t\t}\n\t\tint hole = size;\n\t\tsize++;\n\t\thole = percolateUp(hole, val);\n\t\theapArray[hole] = val;\n\t}", "title": "" }, { "docid": "561b4f46e4653091fa1e2063afa33ccf", "score": "0.5961929", "text": "private void heapify()\n {\n int currentpos = this.pos - 1;\n\n while (currentpos != 0)\n {\n int parentIndex = (currentpos - 1) / 2;\n int parentValue = this.heapBuffer[parentIndex]\n .getMovementPoints();\n int currentValue = this.heapBuffer[currentpos]\n .getMovementPoints();\n\n if (currentValue > parentValue)\n {\n heapswap(parentIndex, currentpos);\n } else\n {\n break;\n }\n\n currentpos = parentIndex;\n }\n }", "title": "" }, { "docid": "f62630ea803f9e02fa532d0790987a51", "score": "0.59342176", "text": "public void remove(int index)\n {\n CHECK(!Double.isNaN(values[index]));\n values[index] = Double.NaN;\n heapGeneral.remove(index);\n }", "title": "" }, { "docid": "0520ab391c060321df76a53ecbd3ac64", "score": "0.5907086", "text": "private int percolateUp(int hole, E val) {\n\t\twhile (hole > 0 && comparator.compare(val, \n\t\t\t\theapArray[(hole-1) / 4]) < 0) {\n\t\t\theapArray[hole] = heapArray[(hole-1) / 4];\n\t\t\thole = (hole-1) / 4;\n\t\t}\n\t\treturn hole;\n\t}", "title": "" }, { "docid": "fc065d4efe4d129bf772bb8c28213353", "score": "0.588804", "text": "private void heapify(int index) { \n\t\t// child array to store indexes of all \n\t\t// the children of given node \n\t\tint[] child = new int[this.getD()+1]; \n\t\t//endless loop. We will stop when\n\t\t//the node at which we stand in the heap is a leaf \n\t\twhile (0<1) { \n\t\t\t// child[i]=-1 if the node is a leaf \n\t\t\tfor(int i = 1; i <= this.getD(); i++) { \n\t\t\t\tif((this.getD() * index + i) < this.getHeapSize())//then it is not a leaf\n\t\t\t\t\tchild[i] = this.getD() * index + i;\n\t\t\t\telse\n\t\t\t\t\tchild[i] = -1;\n\t\t\t}\n\t\t\t// max_child stores the maximum child and \n\t\t\t// max_child_index holds its index \n\t\t\tint max_child = -1, max_child_index = 0; \n\t\t\t// loop to find the maximum of all \n\t\t\t// the children of a given node \n\t\t\tfor(int i = 1; i <= this.getD(); i++) {\n\t\t\t\tif (child[i] != -1 && this.getHeap()[child[i]] > max_child) { \n\t\t\t\t\t\tmax_child_index = child[i]; \n\t\t\t\t\t\tmax_child = this.getHeap()[child[i]]; \n\t\t\t\t\t} \n\t\t\t} \n\t\t\t// leaf node \n\t\t\tif (max_child == -1) \n\t\t\t\tbreak; \n\t\t\t\n\t\t // swap only if the key of max_child_index \n\t\t\t// is greater than the key of node \n\t\t\tif (this.getHeap()[index] < this.getHeap()[max_child_index]) \n\t\t\t\t\tswap(index ,max_child_index); \n\t\t\t\n\t\t\tindex = max_child_index; \n\t\t} \n\t}", "title": "" }, { "docid": "3af74c5b71bda3637c6932ecbe26b704", "score": "0.5810193", "text": "private void adjustUpwards() {\n\t\tfor(int i= length/2-1; i>=0; i--)\n\t\t\tif(asc)\n\t\t\t\tmaxHeapify(i);\n\t\t\telse\n\t\t\t\tminHeapify(i);\n\t}", "title": "" }, { "docid": "91033de8a7f0f0cbda150f7d4bdebe8f", "score": "0.57973635", "text": "protected void percolateDownMaxHeap(final int index) {\n final T element = elements.get(index);\n int hole = index;\n\n while ((hole * 2) <= size) {\n int child = hole * 2;\n\n // if we have a right child and that child can not be percolated\n // up then move onto other child\n if (child != size && compare(elements.get(child + 1), elements.get(child)) > 0) {\n child++;\n }\n\n // if we found resting place of bubble then terminate search\n if (compare(elements.get(child), element) <= 0) {\n break;\n }\n\n setElement( hole, elements.get(child) );\n hole = child;\n }\n\n setElement( hole, element);\n }", "title": "" }, { "docid": "3525018e4442a093014a577ae94a1cc9", "score": "0.5777146", "text": "public void add(int index, double val)\n {\n CHECK(!Double.isNaN(val));\n CHECK(Double.isNaN(values[index]));\n values[index] = val;\n heapGeneral.add(index);\n }", "title": "" }, { "docid": "f007ac9f2e08a187e0143f6c6c475656", "score": "0.57730514", "text": "public void HeapIncreaseKey(int index, int key) throws IllegalArgumentException{\n if(index >= input.length){\n throw new IllegalArgumentException(\"Index is out of bounds\");\n }\n if(key < input[index]){\n throw new IllegalArgumentException(\"New Key is smaller than the current key at index \" + index);\n }\n input[index] = key;\n int parent = (index-1)/2;\n while(index > 0 && input[parent] < input[index]){\n int temp = input[parent];\n input[parent] = input[index];\n input[index] = temp;\n parent = (index-1)/2;\n }\n }", "title": "" }, { "docid": "e67910dacf1784bef0a3f9597367a822", "score": "0.5768081", "text": "private static void reheap(int index, int heapSize) {\r\n\r\n // left side of the heap is going to be the current index * 2, (root)\r\n int left = index*2;\r\n // right side is going to be the same index * 2 + 1,\r\n int right = left + 1;\r\n int largest;\r\n\r\n // checks if left is going to be less than the heap array length or equal to it\r\n // and checks if the left side of the index of heap is greater than the heap index -1\r\n if(left <= heapSize && heap[left - 1] > heap[index - 1]) {\r\n // if it is, the larger value is found in the left side and we assign it respectively\r\n largest = left;\r\n } else {\r\n // if heap index is greater just merely assign it, the parent node is the greater than the left kid\r\n largest = index;\r\n }\r\n\r\n // checks if right is going to be less than the heap array length or equal to it\r\n // and checks if the right side of the index of heap is greater than the heap index -1\r\n if(right <= heapSize && heap[right-1] > heap[largest-1]) {\r\n // assigns it if it notices that the parent is less than the right kid\r\n largest = right;\r\n }\r\n\r\n if(largest != index) {\r\n // if the largest value was under the parent node, perform the swap\r\n swap(index-1, largest-1);\r\n // recursively call it this time change the index to the largest value to keep swapping it up.\r\n reheap(largest, heapSize);\r\n }\r\n }", "title": "" }, { "docid": "718d89545b5e17d73bffdd237c08729a", "score": "0.576535", "text": "private static void shiftUp(int curIndex){\n int parentIndex = (curIndex-1)/2;\n if(parentIndex < 0){\n return;\n }else{\n if(heapArray[curIndex].val < heapArray[parentIndex].val){\n swapNode(curIndex, parentIndex);\n shiftUp(parentIndex);\n }else{\n return;\n }\n }\n }", "title": "" }, { "docid": "f3534e537222ac76142e5d696a672ab1", "score": "0.572886", "text": "public void heapifyUp(int childIndex) {\n\t\t\n\t\tint parentIndex, tmp;\n\n if (childIndex != 0) {\n\n parentIndex = (childIndex-1)/2;\n \n Node parentNode = head[parentIndex];\n Node childNode = head[childIndex];\n \n //If the key of parent we swap and heapify up\n if(parentNode.getKey()>childNode.getKey()) {\n \t head[parentIndex] = childNode;\n \t head[childIndex] = parentNode;\n \t heapifyUp(parentIndex);\n }\n //If the key is same then we check the building numbers\n else if(parentNode.getKey()==childNode.getKey()) {\n \t if(parentNode.getBuilding().getBuildingNum()>childNode.getBuilding().getBuildingNum()) {\n \t\t head[parentIndex] = childNode;\n \t head[childIndex] = parentNode;\n \t heapifyUp(parentIndex);\n \t }\n }\n }\n\t}", "title": "" }, { "docid": "e1b3dd244e7c2e29aad7058dba9a36f9", "score": "0.57050395", "text": "private void bubbleUp (int index) {\n // If we're at the root, then\n // we're done\n if (index == 0) {return;}\n \n // Get parent index and store it\n int parent = getParent(index);\n \n // If the parent's value is less than\n // the current one's...\n if (heap.get(parent) < heap.get(index)) {\n // ...then we swap them...\n Integer temp = heap.get(index);\n heap.set(index, heap.get(parent));\n heap.set(parent, temp);\n \n // ...and recurse on the new parent!\n bubbleUp(parent);\n }\n \n }", "title": "" }, { "docid": "f2e30dc2e5dd0c522ebc39dbc5748e2b", "score": "0.57038146", "text": "private void MaxHeapify(int index){\n //StopwatchCPU cpu = new StopwatchCPU();\n int left = 2*index + 1;\n int right = left + 1;\n //System.out.println(index + \" \" + left + \" \" + right);\n int largest = 0;\n if(left <= heapsize && (input[index] < input[left]))//had to add the condition right <= heapsize to prevent an index out of bounds exception\n largest = left;\n else\n largest = index;\n if(right <= heapsize && input[right] > input[largest])\n largest = right;\n if(largest != index){\n int temp = input[index];\n input[index] = input[largest];\n input[largest] = temp;\n MaxHeapify(largest);\n }\n //return cpu.elapsedTime();\n }", "title": "" }, { "docid": "12c3700d80bca23e5a6818ad8c02609f", "score": "0.5703374", "text": "public void decreaseKey(int index, int newValue){\n heapArr[index] = newValue;\n while(index != 0 && heapArr[parent(index)] > heapArr[index]){\n //swap the elements\n int temp = heapArr[index];\n heapArr[index] = heapArr[parent(index)];\n heapArr[parent(index)] = temp;\n index = parent(index);\n }\n }", "title": "" }, { "docid": "d6e32ab19068fc318af71e42069a17ae", "score": "0.5672468", "text": "private void trickleUp(int index) {\n int bottomKey = data[index];\n int parent = indexOfParent(index);\n // As long as values in chain and bottomKey is bigger\n while (index > 0 && data[parent] < bottomKey) {\n // Move value down and try higher up\n data[index] = data[parent];\n index = parent;\n parent = indexOfParent(index);\n }\n // Done moving things down, bottomKey goes here now\n data[index] = bottomKey;\n }", "title": "" }, { "docid": "5a15a462eca1e1b66ea135b8a25dc4cf", "score": "0.56274074", "text": "public void minHeapify(int index){\n int leftChild = left(index);\n int rightChild = right(index);\n int smallest = index; //smallestChild\n \n if(leftChild < currSize && heapArr[leftChild] < heapArr[index]){\n smallest = leftChild;\n }\n \n if(rightChild < currSize && heapArr[rightChild] < heapArr[smallest]){\n smallest = rightChild;\n }\n \n if(smallest != index){\n //swap the given elements\n int temp = heapArr[index];\n heapArr[index] = heapArr[smallest];\n heapArr[smallest] = temp;\n minHeapify(smallest); //recursively heapify!\n }\n }", "title": "" }, { "docid": "1c8292bd478e526c39aeabfa484137f1", "score": "0.5624096", "text": "private void reheapifyUp (int k) {\n T v = data.get (k);\n for (int p = k; k > 0; k = p) {\n p = (k-1)/2;\n if (v.compareTo (data.get (p)) > 0)\n\tdata.set (k, data.get (p));\n else\n\tbreak;\n }\n data.set (k, v);\n }", "title": "" }, { "docid": "322fae857ca423b8c40ad99248d38a35", "score": "0.5612552", "text": "private void sink(int heapIndex) {\n assertIndex(heapIndex);\n\n while (heapIndex * 2 <= size) {\n //left child\n int childIndex = heapIndex * 2;\n //has 2 children nodes, compare them and get the greater one\n if (childIndex < size && less(childIndex, childIndex + 1)) {\n childIndex++;\n }\n //compare with the target key\n if (!less(heapIndex, childIndex)) {\n break;\n } else {\n exchange(heapIndex, childIndex);\n heapIndex = childIndex;\n }\n }\n }", "title": "" }, { "docid": "8c72ba864ecc3a05db04087d0188530d", "score": "0.56116897", "text": "private void bubbleUp(int index) {\n T store = backingArray[index];\n if (index != 1) {\n T parent = backingArray[index / 2];\n if (parent != null) {\n if (store.compareTo(parent) < 0) {\n backingArray[index / 2] = store;\n backingArray[index] = parent;\n bubbleUp(index / 2);\n }\n }\n }\n }", "title": "" }, { "docid": "8336d4510a764eb0b8fb5e858f069fc8", "score": "0.56015694", "text": "public int extractMin()\n {\n int ret = min();\n remove(ret);\n return ret;\n // ... or could call heapGeneral.extractMin() and set values[index] = Double.NaN.\n }", "title": "" }, { "docid": "30cb3f7097cd70b5057cb74763cac409", "score": "0.5596458", "text": "private void swim(int heapIndex) {\n assertIndex(heapIndex);\n while (heapIndex > 1 && less(heapIndex / 2, heapIndex)) {\n exchange(heapIndex, heapIndex / 2);\n //then we will swim in position of index/2\n heapIndex = heapIndex / 2;\n }\n\n }", "title": "" }, { "docid": "a73911dc91a45bc61918bb61c66d9aef", "score": "0.55826813", "text": "public int get() {\r\n // check if the heap is empty\r\n // if so print error message\r\n if(_size == 0) {\r\n System.err.println(\"get() operation failed! ... heap is empty\");\r\n return -1;\r\n }\r\n // else return the root of the heap\r\n else {\r\n return _heap[1];\r\n }\r\n }", "title": "" }, { "docid": "15d0362f219e0db2b5d21aa6a01d6e17", "score": "0.557306", "text": "private void trickleDown(int index) {\n // See if value at index should move down\n int topKey = data[index];\n int largerChild;\n // While still children to consider\n while (index < (numberOfValues / 2)) {\n // Get the indexes of the two children\n int left = indexOfLeftChild(index);\n int right = indexOfRightChild(index);\n // Choose the child with the larger value\n if (right < numberOfValues && data[right] > data[left]) {\n largerChild = right;\n } else\n largerChild = left;\n if (topKey < data[largerChild]) {\n // Shift larger child data up and continue down\n data[index] = data[largerChild];\n index = largerChild;\n } else\n // Next down is smaller, so stop here\n break;\n }\n data[index] = topKey;\n }", "title": "" }, { "docid": "b6e2bf8ae22753e26ff2c870ca8f1054", "score": "0.5538509", "text": "private static void reheap(int index, int heapSize, int counter) {\r\n\r\n // left side of the heap is going to be the current index * 2, (root)\r\n int left = index*2;\r\n // right side is going to be the same index * 2 + 1,\r\n int right = left + 1;\r\n int largest;\r\n\r\n // checks if left is going to be less than the heap array length or equal to it\r\n // and checks if the left side of the index of heap is greater than the heap index -1\r\n if(left <= heapSize && heap[left - 1] > heap[index - 1]) {\r\n // if it is, the larger value is found in the left side and we assign it respectively\r\n largest = left;\r\n } else {\r\n // if heap index is greater just merely assign it, the parent node is the greater than the left kid\r\n largest = index;\r\n }\r\n\r\n // checks if right is going to be less than the heap array length or equal to it\r\n // and checks if the right side of the index of heap is greater than the heap index -1\r\n if(right <= heapSize && heap[right-1] > heap[largest-1]) {\r\n // assigns it if it notices that the parent is less than the right kid\r\n largest = right;\r\n }\r\n\r\n if(largest != index) {\r\n // if the largest value was under the parent node, perform the swap\r\n swap(index-1, largest-1);\r\n // recursively call it this time change the index to the largest value to keep swapping it up.\r\n reheap(largest, heapSize);\r\n // increase the counter by 1\r\n swapCounter++;\r\n }\r\n }", "title": "" }, { "docid": "4ad9019946620e95af2169e52a94db76", "score": "0.5535561", "text": "private void update(int index, int value, int[] tree, int size) {\n index++;\n while(index<size) {\n tree[index] +=value;\n index += index & -index;\n }\n }", "title": "" }, { "docid": "f1b4a05224ff1b4c910601a8d98502ff", "score": "0.552221", "text": "@Override\n\tpublic E deleteMin() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tE min = heapArray[0];\n\t\theapArray[0] = heapArray[size - 1];\n\t\tsize--;\n\t\tE val = heapArray[0];\n\t\tint hole = percolateDown(0, val);\n\t\theapArray[hole] = val;\t\n\t\treturn min;\n\t}", "title": "" }, { "docid": "a754453d10377a375b5b2506d9a8792a", "score": "0.5515041", "text": "private void heapify(){\n\t\tfor(int pos=(this.array.length/2) - 1; pos>=0; pos--){\n\t\t\tthis.downheap(pos);\n\t\t}\n\t}", "title": "" }, { "docid": "9fe6b5535c3037771f13feaadc71e654", "score": "0.549996", "text": "public T removeBottomUp(){\n\t\tif(this.isEmpty()){\n\t\t\tthrow new RuntimeException(\"Tried to remove an element from an empty heap!\");\n\t\t} else {\n\t\t\tfinal T result = this.array[0];\n\t\t\tthis.lastpos--;\n\t\t\tfinal int leafIndex = this.holeDownHeap(0); // propagates a 'hole' to a leaf node (saves one comparison and swap operations compared to downheap)\n\t\t\tthis.array[leafIndex] = this.array[this.lastpos]; // replace leaf node the most right element in the most bottom level\n\t\t\tthis.upheap(leafIndex); // look for how much the element can go up in the heap (should not (!) be many levels)\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "86220926c9f8f3bb1c677b9a3ab73906", "score": "0.54391366", "text": "@Override\n public double getQuick(int index) {\n //if (debug) if (index<0 || index>=size) checkIndex(index);\n //return elements[index(index)];\n // manually inlined:\n return elements[zero + index * stride];\n }", "title": "" }, { "docid": "140dd155749385a43da505560e389723", "score": "0.54350716", "text": "public int extractMin(){\n //I think should only be size == 0\n if(currSize <= 0){\n return Integer.MAX_VALUE;\n }\n \n if(currSize == 1){\n currSize = currSize - 1;\n return heapArr[0];\n }\n \n //Store the minimum value, and remove it from the heap.\n int root = heapArr[0];\n heapArr[0] = heapArr[currSize - 1];\n currSize = currSize - 1;\n minHeapify(0); //miniHeapify from the root i.e index = 0.\n return root;\n }", "title": "" }, { "docid": "9d2f3944f6dfd2b1955c1c87c29dc03e", "score": "0.53956497", "text": "private void propagate(int v) {\n Node n = heap[v];\n\n if (n.pendingVal != null) {\n change(heap[2 * v], n.pendingVal);\n change(heap[2 * v + 1], n.pendingVal);\n n.pendingVal = null; //unset the pending propagation value\n }\n }", "title": "" }, { "docid": "7a173aab43247c1ba212d44fa7528fa0", "score": "0.53914714", "text": "private void bubbleUp(int index) {\n\t\tT tempData = null;\n\t\t//Gets index of parent node\n\t\tdouble parentIndex = Math.floor( (index - 1) / numChildren );\n\t\t//If child is smaller than parent then they swap and bubble up recursivly called\n\t\t//again on parent index\n\t\tif( array[index].compareTo(array[(int) parentIndex]) < 0 ) {\n\t\t\ttempData = array[(int) parentIndex];\n\t\t\tarray[(int) parentIndex] = array[index];\n\t\t\tarray[index] = tempData;\n\t\t\tthis.bubbleUp( (int) parentIndex );\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "08e6f71af2294337ecb831408e1fdc1d", "score": "0.5391378", "text": "private void propagate(int v) {\n Node n = heap[v];\n\n if (n.pendingVal != null) {\n change(heap[2 * v], n.pendingVal);\n change(heap[2 * v + 1], n.pendingVal);\n n.pendingVal = null; //unset the pending propagation value\n }\n }", "title": "" }, { "docid": "3208bb2760551d30f49f835d2475e6f1", "score": "0.5375465", "text": "private void bubbleUp(int index, Comparable[] arr) {\n\t\twhile(parent(index) != 0 \n\t\t\t\t&& arr[index].compareTo(arr[parent(index)]) < 0) {\n\t\t\tComparable temp = arr[parent(index)];\n\t\t\tarr[parent(index)] = arr[index];\n\t\t\tarr[index] = temp;\n\t\t\tindex = parent(index);\n\t\t}\n\t}", "title": "" }, { "docid": "d9c8afeb947ab9e2b02049001474afa6", "score": "0.5369553", "text": "private void heapify(){\n for(int child_index=arr.size()-1;child_index>0;child_index=(child_index-1)/2){\n int parent_index = (child_index-1)/2;\n if(arr.get(child_index).executed_time < arr.get(parent_index).executed_time){\n swap(parent_index,child_index);\n }\n else if(arr.get(child_index).executed_time == arr.get(parent_index).executed_time){\n if(arr.get(child_index).node.buildingNum < arr.get(parent_index).node.buildingNum){\n swap(parent_index,child_index);\n }\n }\n else{\n break;\n }\n } \n }", "title": "" }, { "docid": "4c4f5022fa4394a5060dca2dc8a4c267", "score": "0.5367976", "text": "public int remove(int index) {\n if(index < 0 || index > size - 1){\n return 0;\n }\n int temp = storage[index];\n for (int i = index; i < size - 1; i++) {\n storage[i] = storage[i+1];\n }\n size--;\n return temp;\n }", "title": "" }, { "docid": "be5dc2c341c95b8f6bd2de198852e5e2", "score": "0.5366677", "text": "public void insert(Node n){\n\n if(size == heap.length - 1)\n resize();\n int position = size++;\n\n\n //percolate up\n //While the position is greater then one, and the numer is less them\n //the parent (index /2) then move the number into the position\n\n for(; (position > 1 )&& n.compareTo(heap[position/2]) < 0 ; position = position / 2)\n heap[position] = heap[position/2];\n //We are out of the loop, we put the number into the position.\n heap[position] = n;\n\n }", "title": "" }, { "docid": "6fe2b9f6fc9b497c8d8630b257d3db89", "score": "0.536436", "text": "private void maxHeapify(final List<Integer> input, final int idx, final int heapSize) {\n if (idx >= input.size() || idx < 0) { return; }\n int left = leftChild(idx);\n int right = rightChild(idx);\n int maxValueIdx = idx;\n if (left <= heapSize && input.get(left) > input.get(maxValueIdx)) { maxValueIdx = left; }\n if (right <= heapSize && input.get(right) > input.get(maxValueIdx)) { maxValueIdx = right; }\n if (maxValueIdx != idx) {\n Collections.swap(input, idx, maxValueIdx);\n maxHeapify(input, maxValueIdx, heapSize);\n }\n }", "title": "" }, { "docid": "24ddcdb7c5c801f861fd84bdde3792f2", "score": "0.53633416", "text": "private void trickleDown(int index) {\n\t\tT child;\n\t\tT childToCompare;\n\t\tint childIndex;\n\t\tT tempData = null;\n\t\tboolean isNull = false;\n\t\t//If child index doesn't exist it will return -1\n\t\tchildIndex = this.getSmallestChild(index);\n\t\tif( childIndex == -1 ) {\n\t\t\treturn;\n\t\t}\n\t\t//If current index is larger than child, swap data \n\t\t//if not at the bottom of the tree call trickleDown again recursivly\n\t\tif( array[index].compareTo(array[childIndex]) > 0) {\n\t\t\ttempData = array[index];\n\t\t\tarray[index] = array[childIndex];\n\t\t\tarray[childIndex] = tempData;\n\t\t\tif( childIndex < size ) {\n\t\t\t\tthis.trickleDown(childIndex);\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "4a0489cd43423c9a3c53bc71294c2a57", "score": "0.53530955", "text": "@Override\n public void upHeap(int i) {\n if(i > 0){\n while(this.getInHeap(i) > this.getInHeap((i-1)/2)){\n swap(i, (i-1)/2);\n i = (i-1)/2;\n if(i < 0){\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "6fa738eb05752c0e3ac5504315e47f90", "score": "0.53451973", "text": "private void upheapify(int ci) {\n\t\tint pi = (ci - 1) / 2;\n\t\tif (large(list.get(ci), list.get(pi)) > 0) /* list.get(pi) > list.get(ci) */ {// ci ki priority zada hai pi se\n\t\t\tswap(pi, ci);\n\t\t\tupheapify(pi);\n\t\t}\n\n\t}", "title": "" }, { "docid": "bdf8f9b1116d5adaf6788f7279ed46bb", "score": "0.5344108", "text": "private void upHeap(int i) {\n\t\tif (i > 0) {\n\t\t\t//key == weight\n\t\t\tEdgeRecord child = edgeArray[i];\n\t\t\tEdgeRecord parent = edgeArray[(i - 1)/2];\n\t\t\tif (parent.getWeight() > child.getWeight()) {\n\t\t\t\t//swap\n\t\t\t\tedgeArray[i] = parent;\n\t\t\t\tedgeArray[(i - 1)/2] = child;\n\t\t\t\tupHeap((i - 1)/2);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "dca12217ead1dac201f5c235fb5fb4d2", "score": "0.533663", "text": "private void heapify() {\r\n\t\tfor (int i = (size >>> 1) - 1; i >= 0; i--) {\r\n\t\t\tcorrectHeapFromTop(i);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7f4fd51efc63a6bc3c87c7f23241fad0", "score": "0.5333882", "text": "public int get(int index) {\n if (index < 0 || index > size - 1) {\n return 0;\n }\n return storage[index];\n }", "title": "" }, { "docid": "61ef0ecb643cbee76f4f5b7ba9a7f6ea", "score": "0.5324422", "text": "private void heapifyDown(int parentIndex) {\n\n\t\tint largestIndex = parentIndex;\n\t\tint leftIndex = (2 * parentIndex) + 1;\n\t\tint rightIndex = (2 * parentIndex) + 2;\n\n\t\tif (leftIndex < list.size() && list.get(largestIndex) < list.get(leftIndex)) {\n\t\t\tlargestIndex = leftIndex;\n\t\t}\n\t\tif (rightIndex < list.size() && list.get(largestIndex) < list.get(rightIndex)) {\n\t\t\tlargestIndex = rightIndex;\n\t\t}\n\n\t\tif (largestIndex != parentIndex) {\n\t\t\tInteger temp = list.get(parentIndex);\n\t\t\tlist.set(parentIndex, list.get(largestIndex));\n\t\t\tlist.set(largestIndex, temp);\n\n\t\t\t// largestIndex is the node we replace data with parent. so heapifiy child sub\n\t\t\t// tree with largestIndex has parent\n\t\t\theapifyDown(largestIndex);\n\t\t}\n\t}", "title": "" }, { "docid": "195f2495b27316e1ab9b152c425b6329", "score": "0.5316444", "text": "private void minheapify(int value)\n {\n \tFloat tmp;\n\n if (!(value>= (size / 2) && value<=size))\n { \n \tint i = 2*value;\n \tint j = (2*value)+1;\n \t\n\t\t\tif(i<high+1 && j<high+1)\n \t{\n \t\tif ( (minheap[value] > minheap[i] || minheap[value] > minheap[i]) && i<high+1 && j<high+1)\n {\n if (minheap[value*2] < minheap[(value*2)+1])\n {\n\t\t\t\t\t\ttmp = minheap[value];\n\t\t\t\t\t\tminheap[value] = minheap[value*2];\n\t\t\t\t\t\tminheap[value*2] = tmp;\n\t\t\t\t\t\t\n\t\t\t\t\t\tVertex temp_var;\n\t\t\t\t\t\ttemp_var = vertexdist[value];\n\t\t\t\t\t\n\t\t\t\t\t\tvertexdist[value] = vertexdist[value*2];\n\t\t\t\t\t\tvertexdist[value*2] = temp_var;\n\t\t\t\t\t\t\n\t\t\t\t\t\tminheapify(value*2);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ttmp = minheap[value];\n\t\t\t\t\t\tminheap[value] = minheap[(value*2)+1];\n\t\t\t\t\t\tminheap[(value*2)+1] = tmp;\n\t\t\t\t\t\t\n\t\t\t\t\t\tVertex temp_var;\n\t\t\t\t\t\ttemp_var = vertexdist[value];\n\t\t\t\t\t\tvertexdist[value] = vertexdist[(value*2)+1];\n\t\t\t\t\t\tvertexdist[(value*2)+1] = temp_var;\n \n \t minheapify((value*2)+1);\n }\n }\n \t}\n }\n }", "title": "" }, { "docid": "c0272945ec1977ce28579e614fec52b7", "score": "0.5305102", "text": "private int percolateDown(int hole, E val) {\n\t\twhile (4*hole + 1 < size) {\t\t\t\n\t\t\tint minIndex = 4 * hole + 1;\n\t\t\tfor (int i = 2; i <= 4; i++) {\n\t\t\t\tif (4 * hole + i < size && \n\t\t\t\t\t\tcomparator.compare(heapArray[4 * hole + i], heapArray[minIndex]) < 0) {\n\t\t\t\t\tminIndex = 4 * hole + i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(comparator.compare(heapArray[minIndex], val) < 0) {\n\t\t\t\theapArray[hole] = heapArray[minIndex];\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\thole = minIndex;\n\t\t}\n\t\treturn hole;\n\t}", "title": "" }, { "docid": "82002b86a16ec1fad5788c9fa8fda542", "score": "0.53006905", "text": "public T dequeueMin() {\n if (isEmpty()) {\n System.out.println(\"Heap is empty\");\n return null;\n }\n\n else {\n T ret = findMin();\n T item = heapList.remove(heapList.size() - 1);\n if (heapList.size() == 0)\n return ret;\n T minChild;\n int minIndex;\n int index = heapList.indexOf(ret);\n heapList.set(index, item);\n\n boolean found = false;\n\n while (!found) {\n if (index < size()) {//case 1, have parent node\n minIndex = (index - 1) / 2;\n minChild = heapList.get(minIndex);\n // sift up if necesssary\n if (item.compareTo(minChild) > 0) {\n heapList.set(minIndex, item);\n heapList.set(index, minChild);\n index = minIndex;\n } else\n found = true;\n }\n\n else // case 2: item to be sifted down has no children\n found = true;\n\n index = (index - 1) / 2;\n }\n return ret;\n }\n\n }", "title": "" }, { "docid": "f78e4a52bf95c4147280980fc1953439", "score": "0.5297197", "text": "protected void pushDownRoot(int root){\n\t\tint heapSize = data.size();\n\t\tE value = data.get(root);\n\t\twhile (root < heapSize) {\n\t\t\tint childpos = left(root);\n\t\t\tif (childpos < heapSize)\n\t\t\t{\n\t\t\t\tif ((right(root) < heapSize) &&\n\t\t\t\t((data.get(childpos+1)).compareTo\n\t\t\t\t(data.get(childpos)) < 0))\n\t\t\t\t{\n\t\t\t\t\tchildpos++;\n\t\t\t\t}\n\t\t\tif ((data.get(childpos)).compareTo\n\t\t\t\t(value) < 0)\n\t\t\t{\n\t\t\t\tdata.set(root,data.get(childpos));\n\t\t\t\troot = childpos; \n\t\t\t} else { \n\t\t\t\tdata.set(root,value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t} else { \n\t\t\t\tdata.set(root,value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f5caf19c4683224edeaffae8baa3f312", "score": "0.529631", "text": "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic E poll() {\n\t\t// TODO Auto-generated method stub\n\t\tif(this.size == 0) {\n\t\t\treturn null;\n\t\t}\n\t\tE ans = (E) prQu[1];\n\t\tswap(1, size);\n\t\tthis.size--;\n\t\t\n\t\tdownHeap(1);\n\t\t\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "70a7f498bcbc1b13f1fe65f26471ce74", "score": "0.5283586", "text": "private void bubbleDown (int index, int maxIndex) {\n if (index >= heap.size() || index >= maxIndex) { return; }\n \n // Get child indexes\n int lInd = getChild(index, 'L'),\n rInd = getChild(index, 'R'),\n swappedIndex = 0;\n \n // Make sure the left child exists within the maxIndex\n if (lInd < heap.size() && lInd < maxIndex) {\n // If left exists, check to see if the right does\n if (rInd < heap.size() && rInd < maxIndex) {\n // Then, swap with the max value of left or right child\n swappedIndex = (heap.get(lInd) > heap.get(rInd)) ? lInd : rInd;\n } else {\n // Otherwise, right does not exist, so swap with left\n swappedIndex = lInd;\n }\n if (heap.get(index) < heap.get(swappedIndex)) {\n swapAtIndexes(index, swappedIndex);\n } else {\n return;\n }\n }\n // Note: if left does not exist, then right certainly won't\n // (complete tree property of heap)\n if (swappedIndex != 0) {\n bubbleDown(swappedIndex, maxIndex);\n }\n }", "title": "" }, { "docid": "bebff7ed4c2574a1249d43218bf279b9", "score": "0.5272849", "text": "public void heapify(){\n\t\tV[] array = toArray();\n\t\tfor(int i = (toArray().length-1)/2; i>=0;i--){\n\t\t\tsiftDown(i, array);\n\t\t}\n\t}", "title": "" }, { "docid": "7bc77b3f6219d81aaa45ef8dadfc3891", "score": "0.5265077", "text": "@TimeComplexity(\"O(lg n)\")\n\tprivate void upheap(int j){\n\t\t/* TCJ\n\t\t * The 'pointer' for this algorithm ascends through each level\n\t\t * of the heap, which has a height of log(n). At worst case, \n\t\t * an entry must be moved from the bottom of the tree to the top,\n\t\t * going through log(n) loop iterations.\n\t\t */\n\t\twhile(j > 0)\n\t\t{\n\t\t\tint p = parent(j);\n\t\t\tif(c.compare(heap.get(j).getKey(), heap.get(p).getKey()) >= 0) break;\n\t\t\tswap(j, p);\n\t\t\tj = p;\n\t\t}\n\t}", "title": "" }, { "docid": "52b5c90c9859f044d9315ed5839c10bf", "score": "0.5264643", "text": "protected E _remove(int index)\n\t{\n\t\tint _index;\n\n\t\tif (index == size-1)\n\t\t{\n\t\t\n\t\t\tend--;\n\t\t\tif (end < 0)\n\t\t\t\tend += values.length;\n\t\t\t\n\t\t\t_index = end;\n\n\t\t\tif (gapSize > 0)\n\t\t\t{\n\t\t\t\tif (gapIndex == index)\n\t\t\t\t{\n\t\t\t\t\tend = gapStart;\n\t\t\t\t\tgapSize = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}\n\t\telse if (index == 0)\n\t\t{\n\n\t\t\t_index = start;\n\t\t\tstart++;\n\t\t\tif (start >= values.length)\n\t\t\t\tstart -= values.length;\n\t\t\t\n\t\t\tif (gapSize > 0)\n\t\t\t{\n\t\t\t\tif (gapIndex == 1)\n\t\t\t\t{\n\t\t\t\t\tstart += gapSize;\n\t\t\t\t\tif (start >= values.length)\n\t\t\t\t\t\tstart -= values.length;\n\t\t\t\t\t\n\t\t\t\t\tgapSize = 0;\n\t\t\t\t}\n\t\t\t\telse gapIndex--;\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t_index = _index(index);\n\n\t\t\tif (gapSize == 0)\n\t\t\t{\n\t\t\t\tgapIndex = index;\n\t\t\t\tgapStart = _index;\n\t\t\t\tgapSize = 1;\n\t\t\t}\n\t\t\telse if (index == gapIndex)\n\t\t\t{\n\t\t\t\tgapSize++;\n\t\t\t}\n\t\t\telse if (index == gapIndex-1)\n\t\t\t{\n\t\t\t\tgapStart--;\n\t\t\t\tif (gapStart < 0) gapStart += values.length;\n\t\t\t\tgapSize++;\n\t\t\t\tgapIndex--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\n\t\t\t\tboolean moveLeft;\n\t\t\t\tint gapEnd = (gapStart+gapSize-1) % values.length + 1;\n\t\t\t\tif (gapEnd < gapStart)\n\t\t\t\t{\n\t\t\t\t\tint len1 = _index-gapEnd;\n\t\t\t\t\tint len2 = gapStart-_index-1;\n\t\t\t\t\tmoveLeft = (len1 <= len2);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse moveLeft = (_index > gapStart);\n\t\t\t\t\n\t\t\t\tif (moveLeft)\n\t\t\t\t{\n\t\t\t\t\tint src = gapStart+gapSize;\n\t\t\t\t\tint dst = gapStart;\n\t\t\t\t\tint len = _index-gapEnd;\n\t\t\t\t\tmoveGap(src, dst, len);\n\t\t\t\t\tgapStart += len;\n\t\t\t\t\tif (gapStart >= values.length)\n\t\t\t\t\t\tgapStart -= values.length;\n\t\t\t\t\tgapSize++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tint src = _index+1;\n\t\t\t\t\tint dst = _index+gapSize+1;\n\t\t\t\t\tint len = gapStart-_index-1;\n\t\t\t\t\tmoveGap(src, dst, len);\n\t\t\t\t\tgapStart = _index;\n\t\t\t\t\tgapSize++;\n\t\t\t\t}\n\t\t\t\tgapIndex = index;\n\t\t\t}\n\t\t}\n\n\t\tE removed = values[_index];\n\t\tvalues[_index] = null;\n\t\tsize--;\n\n\t\treturn removed;\n\t}", "title": "" }, { "docid": "d7436bbb03864c98de686c4394722f19", "score": "0.52624327", "text": "public Integer removeMin()\n {\n\tif (isEmpty()) { //heap doesn't exist\n\t return null;\n\t}\n\tint min = peekMin(); //return val\n\tint minPos = 0;\n\tfor (int i = 0; i < _heap.size(); i++) { //find position of min\n\t if (_heap.get(i).equals(min)) {\n\t\tminPos = i;\n\t\tbreak;\n\t }\n\t}\n\tint minChild = minChildPos(minPos); //position of the min child\n\tif (minChild + 1 == 0) { //child doesn't exist\n\t _heap.remove(minPos); //normal remove\n\t}else{\n\t swap(minPos, minChild); //swap the two to keep tree property\n\t _heap.remove(minChild); //remove the small\n\t}\n\treturn min; //return val\n }", "title": "" }, { "docid": "6bd87306d92e624f4efded0fe44c2732", "score": "0.5254962", "text": "public T getMin()\n {\n if(isEmpty()) {\n throw new HeapIsEmptyError();\n }\n T result = (T)data[0];\n data[0] = data[size - 1];\n data[size - 1] = null;\n size--;\n checkAndDealocate();\n heapify(0);\n return result;\n }", "title": "" }, { "docid": "d556d3c111e962cc9243d970247a5912", "score": "0.52445436", "text": "public void push(int val){\n\tif(front==capacity)\r\n\t\t{\r\n\t\tSystem.out.println(\"capacity full\");\r\n\t\t}else{\r\n\t\tarr[front]=val;\r\n\t\tfront++;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "42bc7a71394b28b300a5117bebbfddfd", "score": "0.5242687", "text": "private void heapifyAdd()\n\t{\n\t\tT temp;\n\t\tBinaryTreeNode<T> current=last;\n\t\n\t\t\n\t\t//check if newnode data is less than parents data then interchange it(only the data) with parent\n\t\t\twhile( (current.parent!=null)&&(current.getData().compareTo(current.parent.getData())<0))\n\t\t\t{\n\t\t\t\ttemp=current.getData();\t\t\t\t\n\t\t\t\tcurrent.setData(current.parent.getData());\n\t\t\t\tcurrent.parent.setData(temp);\n\t\t\t\tcurrent=current.parent;//iteration\n\t\t\t}\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1be77c76a9bc16133ead090c1e6bb6ed", "score": "0.52374256", "text": "public void replace(int x) {\r\n if (_size == 0) {\r\n _heap[1] = x;\r\n _size ++;\r\n } else {\r\n _heap[1] = x;\r\n // reheap the heap\r\n downheap(1);\r\n }\r\n }", "title": "" }, { "docid": "82f4b8bc82070db2283096059a5a5832", "score": "0.5226911", "text": "public int peek(){\n if(isEmpty()) throw new IllegalStateException(\"Heap is empty\");\n return items[0];\n }", "title": "" }, { "docid": "32f09911cf433c18c5fde3924f154abd", "score": "0.5225889", "text": "private static void shiftDown(int curIndex){\n int childIndexLeft = curIndex * 2 + 1;\n int childIndexRight = curIndex * 2 + 2;\n\n if(childIndexLeft > curEnd){\n return;\n }else{\n if(heapArray[curIndex].val > heapArray[childIndexLeft].val){\n swapNode(curIndex, childIndexLeft);\n shiftDown(childIndexLeft);\n }\n }\n\n if(childIndexRight <= curEnd){\n if(heapArray[curIndex].val > heapArray[childIndexRight].val){\n swapNode(curIndex, childIndexRight);\n shiftDown(childIndexRight);\n }\n }\n }", "title": "" }, { "docid": "738161ba6dfe67ce1dbf8ba2a46c1933", "score": "0.522088", "text": "public static void reheapDown(double[] a, int i, int n)\n {\n double o = a[i - 1];\n int m = i - 1;\n int c1 = 2 * (i - 1);\n int c2 = 2 * (i - 1) + 1;\n// Object child1 = items[2];\n// Object child2 = items[3];\n int maxChild;\n if (c1 > n)\n {\n return;\n }\n if (c2 > n || a[c1] > a[c2])\n {\n maxChild = c1;\n }\n else\n {\n maxChild = c2;\n }\n \n while (maxChild < n && a[maxChild] > o)\n {\n// System.out.println(\"min: \" + items[minChild]);\n// System.out.println(this);\n// System.out.println(\"i :\" + i);\n// System.out.println(\"c1: \" + items[c1]);\n a[m] = a[maxChild];\n a[maxChild] = o;\n m = maxChild;\n c1 = 2 * m;\n c2 = 2 * m + 1;\n if (c1 > n)\n {\n break;\n }\n if (c2 > n || a[c1] > a[c2])\n {\n maxChild = c1;\n }\n else\n {\n maxChild = c2;\n }\n }\n }", "title": "" }, { "docid": "68890a52093252d897fda785e222c921", "score": "0.5197383", "text": "private void percolatingDown(int k)\n { //the item at the top of the heap\n\n Node temp = heap[k];\n\n\n //the child of the element, temp\n int child;\n\n for(; 2 *k <= size; k = child){\n //We set it to the child of temp\n child = 2 * k;\n\n //If the child is less then the last element, and greater then\n //the right node, we increment child\n if(child != size && heap[child].compareTo(heap[child + 1]) > 0)\n child++;\n //If the temp is greater then child, then we move the child up\n //the heap\n\n if(temp.compareTo(heap[child]) > 0)\n heap[k] = heap[child];\n }\n //we have gone through the heap! The first element is now placed at the\n //end\n heap[k] = temp;\n }", "title": "" }, { "docid": "de7872fa6d5d474ac2ae458e6bdbc796", "score": "0.5196575", "text": "void heapify(int[] array, int currentIndex, int size) {\n int leftChild = getLeftChild(currentIndex);\n\n if (leftChild >= size)\n {\n return;\n }\n\n int rightChild = getRightChild(currentIndex);\n\n int maxChild = rightChild;\n if (leftChild == size - 1 || array[leftChild] > array[rightChild])\n {\n maxChild = leftChild;\n }\n\n if (array[currentIndex] < array[maxChild])\n {\n swap(array, currentIndex, maxChild);\n heapify(array, maxChild, size);\n }\n }", "title": "" }, { "docid": "f445c0af0b2e615b0508163445114773", "score": "0.5196249", "text": "@Override\n\t\tpublic Integer get(int index) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "063288d21d189d475c5e6ce84a8fcc44", "score": "0.51887524", "text": "protected void percolateUpMaxHeap(final T element) {\n if (isFull()) {\n elements.add(element);\n element.setQueueIndex(++size);\n } else {\n elements.set(++size, element);\n element.setQueueIndex(size);\n }\n\n percolateUpMaxHeap(size);\n }", "title": "" }, { "docid": "7ff15d8c3201b26f8160d59df25ec7ba", "score": "0.5185632", "text": "private void fix()\n {\n int k = 0;\n //We loop while every node has a least two child nodes.\n while (k < this.pos / 2)\n {\n int left = 2 * k + 1;\n int right = 2 * k + 2;\n int swappos = k, swapValue;\n\n int currentValue = this.heapBuffer[k].getMovementPoints();\n\n if ((left < this.pos - 1)\n && this.heapBuffer[left].getMovementPoints() > currentValue)\n {\n swappos = left;\n }\n\n swapValue = this.heapBuffer[swappos].getMovementPoints();\n\n if ((right < this.pos)\n && this.heapBuffer[right].getMovementPoints() > swapValue)\n {\n swappos = right;\n }\n\n if (swappos != k)\n {\n heapswap(swappos, k);\n } else\n {\n break;\n }\n\n k = swappos;\n }\n }", "title": "" }, { "docid": "88990a3199f6e88a24e509661a5e8826", "score": "0.51845884", "text": "public int smaller_child(int index) {\n\t\tint child = left_child(index);\n\t\tint right = right_child(index);\n\t\t\n\t\tif (arr[right] < arr[child]) {\n\t\t\tchild = right;\n\t\t}\n\t\treturn child;\n\t}", "title": "" }, { "docid": "41c94fa52aafad2f4c6fa6d0f1399277", "score": "0.51666087", "text": "public V poll() {\r\n // TODO 6: Do poll and bubbleDown (#7) together. When they are\r\n // written correctly, testing procedure\r\n // test30Poll_BubbleDown_NoDups will not find errors.\r\n // \r\n // Note also testing procedure test40testDuplicatePriorities\r\n // This method tests to make sure that when bubbling up or down,\r\n // two values with the same priority are not swapped.\r\n if (size <= 0) throw new NoSuchElementException(\"heap is empty\");\r\n\r\n V v= c[0].value;\r\n swap(0, size-1);\r\n valPos.remove(v);\r\n size= size - 1;\r\n if (size > 0) bubbleDown(0);\r\n return v;\r\n }", "title": "" }, { "docid": "32a7474341db83a411aac278a8be8369", "score": "0.5165856", "text": "public int get(int index) {\n if(index <0 || index >= count){\n return -1;\n }\n LinkedNode temp = node(index);\n return temp.val;\n }", "title": "" }, { "docid": "afd07408ddd2d157e31060b6b79f4b49", "score": "0.51640487", "text": "private void percolateUpForChange(int index) {\r\n\t\tint parentIndex = (index - 1) / 2;\r\n\t\tPatient curr = patients.get(index);\r\n\t\tPatient parent = parent(index);\r\n\r\n\t\t// Check which one is lower, then, swap the values\r\n\t\tif (parentIndex >= 0 && curr.getPriorityCode() < parent.getPriorityCode()) {\r\n\t\t\tPatient temp = curr;\r\n\t\t\tpatients.set(index, parent);\r\n\t\t\tpatients.set(parentIndex, temp);\r\n\t\t\tpercolateUp(parentIndex);\r\n\t\t// If the priorities are same, check the arrival orders\r\n\t\t} else if (parentIndex >= 0 && curr.getPriorityCode() == parent.getPriorityCode()) {\r\n\t\t\tif (curr.getArrivalOrder() < parent.getArrivalOrder()) {\r\n\t\t\t\tPatient temp = curr;\r\n\t\t\t\tpatients.set(index, parent);\r\n\t\t\t\tpatients.set(parentIndex, temp);\r\n\t\t\t\tpercolateUp(parentIndex);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "70712d5550f943eb667b03966ed45cf4", "score": "0.51632535", "text": "public void insert(int n) {\n\r\n\t\tif (pos == size)\r\n\t\t\tresize();\r\n\r\n\t\t// Insert a new item to the end of the array\r\n\t\theap[pos] = n;\r\n\t\tpos++;\r\n\t\tcurrentSize++;\r\n\r\n\t\tint child = pos - 1;\r\n\t\tint parent = child / 2;\r\n\t\t// percolation up//\r\n\t\twhile (heap[parent] < heap[child] && parent > 0) {\r\n\t\t\tint temp = heap[parent];\r\n\t\t\theap[parent] = heap[child];\r\n\t\t\theap[child] = temp;\r\n\r\n\t\t\tchild = parent;\r\n\t\t\tparent = child / 2;\r\n\t\t}\r\n\t\t/*\r\n\t\t * for (int i = size; i > 1; i--) { if (heap[i] > heap[i - 1]) { int\r\n\t\t * temp = heap[i]; heap[i] = heap[i - 1]; heap[i - 1] = temp; } }\r\n\t\t */\r\n\t}", "title": "" }, { "docid": "4282c5a47b2df8f30be3402dd5493ae4", "score": "0.5155547", "text": "protected int incValue(int index) {\n int original_value = getValue(index);\n\n if (original_value >= 1) {\n\n return (1);\n }\n\n setValue(index, (byte) (original_value + 1));\n\n return (original_value);\n }", "title": "" }, { "docid": "e590ad3dc1d823ffd9553caadcd15143", "score": "0.5148394", "text": "public static int upHeap(double[] refArray, int[] heap, int size, int i, DoubleComparator c) {\n/* 98 */ assert i < size;\n/* 99 */ int e = heap[i];\n/* 100 */ double E = refArray[e];\n/* 101 */ if (c == null) {\n/* 102 */ while (i != 0) {\n/* 103 */ int parent = i - 1 >>> 1;\n/* 104 */ int t = heap[parent];\n/* 105 */ if (Double.compare(refArray[t], E) <= 0)\n/* */ break; \n/* 107 */ heap[i] = t;\n/* 108 */ i = parent;\n/* */ } \n/* */ } else {\n/* 111 */ while (i != 0) {\n/* 112 */ int parent = i - 1 >>> 1;\n/* 113 */ int t = heap[parent];\n/* 114 */ if (c.compare(refArray[t], E) <= 0)\n/* */ break; \n/* 116 */ heap[i] = t;\n/* 117 */ i = parent;\n/* */ } \n/* 119 */ } heap[i] = e;\n/* 120 */ return i;\n/* */ }", "title": "" }, { "docid": "31d888b7b8333b542d0f638801ac1bf7", "score": "0.5146375", "text": "@Override\n\tpublic void add(T item) {\n\t\t/*\n\t\t * Pseudo Code: add(item){ check for resize; put item at the end of the\n\t\t * heap; while(item is not in the root and item < parent(item)){ swap\n\t\t * item with it's parent; } }\n\t\t * \n\t\t * example: if the array is [size]\n\t\t */\n\t\tif (data.length == (size() + 1)) {\n\t\t\tresize(data);\n\t\t}\n\n\t\tint tempIndexOfItem = size + 1;// the end of the list\n\t\tint parentIndexOfItem = tempIndexOfItem / 2;\n\n\t\tT tempSwap;\n\n\t\tdata[tempIndexOfItem] = item;// add the item to the index of item\n\n\t\tsize++;\n\t\tif (item != null) {\n\t\t\t// perform the bubble up operation or bottom up operation.\n\t\t\t// while (ItemIndex is not the rootIndex or 1 and parent is not null\n\t\t\t// and item < parent) keep looping\n\t\t\twhile (tempIndexOfItem != 1 && data[parentIndexOfItem] != null\n\t\t\t\t\t&& (comp.compare(item, data[parentIndexOfItem]) <= 0)) {\n\t\t\t\ttempSwap = data[parentIndexOfItem];\n\t\t\t\tdata[parentIndexOfItem] = data[tempIndexOfItem];\n\t\t\t\tdata[tempIndexOfItem] = tempSwap;\n\t\t\t\ttempIndexOfItem = parentIndexOfItem;\n\t\t\t\tparentIndexOfItem = tempIndexOfItem / 2;\n\t\t\t}\n\n\t\t\t// if parent is null then we will always swap because it is a\n\t\t\t// minimum-heap\n\t\t\t// and null is treated as positive infinity\n\t\t\tif (parentIndexOfItem != 0 && data[parentIndexOfItem] == null) {\n\t\t\t\twhile (tempIndexOfItem != 1 && data[parentIndexOfItem] == null) {\n\t\t\t\t\tdata[parentIndexOfItem] = data[tempIndexOfItem];\n\t\t\t\t\tdata[tempIndexOfItem] = null;\n\t\t\t\t\tparentIndexOfItem = tempIndexOfItem / 2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// if item == null then do nothing because it is automatically added to\n\t\t// the last available position\n\t}", "title": "" }, { "docid": "de53aaec9ebcd68792a4dc04e1558cdf", "score": "0.51445943", "text": "public int get(int index) {\n if(index > size || index < 0 ){\n \t return -1;\n }\n \n\t Node x = this.head.next;//头节点位置\n for (int i = 0; x!=null && i < index; i++) {//x!=null &&\n\t\t x = x.next;\n }\n return x!=null ? x.val : -1;\n \n }", "title": "" }, { "docid": "0d02040c5f32d1a1c59d191b2777772f", "score": "0.5144141", "text": "public T get(int index) {\r\n\r\n\t\tif(actual_size <= index || index < 0) {\r\n\r\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\r\n\t\t}\r\n\t\tif(index == 0){\r\n\r\n\t\t\treturn startNode.value;\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\tNode<T> currentNode = startNode;\r\n\t\t\tint count = 0;\r\n\t\t\twhile(count != index) {\r\n\r\n\t\t\t\tcurrentNode = currentNode.rear;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\treturn currentNode.value;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a03b641754702379d1a59339ae89d687", "score": "0.5139958", "text": "@Override\n public void insert(E value) {\n if (size == queue.length) {\n expandArray();\n }\n int index = size;\n if (index == 0) {\n queue[0] = value;\n } else {\n swim(value, index);\n }\n size++;\n }", "title": "" }, { "docid": "bd7d1eb34d114e2d5611061fb06f2c0a", "score": "0.5130214", "text": "private void checkCapacity(int index) {\n //System.out.println(\"index=\"+index);\n if(index>=elementData.length){\n int currentCapacity = elementData.length;\n int newCapacity = currentCapacity + (currentCapacity >> 1);\n //System.out.println(\"Capacity=\"+newCapacity);\n elementData = Arrays.copyOf(elementData,newCapacity);\n }\n }", "title": "" }, { "docid": "cdbd3f91ca59313abfab37d839b3b378", "score": "0.5113986", "text": "private void percolateUp(int index) {\r\n\t\tint parentIndex = (index - 1) / 2;\r\n\t\tPatient curr = patients.get(index);\r\n\t\tPatient parent = parent(index);\r\n\r\n\t\t// Check which one is lower, then, swap the values\r\n\t\tif (parentIndex >= 0 && curr.getPriorityCode() < parent.getPriorityCode()) {\r\n\t\t\tPatient temp = curr;\r\n\t\t\tpatients.set(index, parent);\r\n\t\t\tpatients.set(parentIndex, temp);\r\n\t\t\tpercolateUp(parentIndex);\r\n\t\t// If the priorities are same, check the arrival orders\r\n\t\t} else if (parentIndex >= 0 && curr.getPriorityCode() == parent.getPriorityCode()) {\r\n\t\t\tif (curr.getArrivalOrder() < parent.getArrivalOrder()) {\r\n\t\t\t\tPatient temp = curr;\r\n\t\t\t\tpatients.set(index, parent);\r\n\t\t\t\tpatients.set(parentIndex, temp);\r\n\t\t\t\tpercolateUp(parentIndex);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "741863fe845f2cee84819de23862e2f0", "score": "0.51104134", "text": "public void buildheapify(Float element , Vertex v)\n {\n\t\t\n \tminheap[++size] = element;\n \tvertexdist[++total] = v;\n int current = size;\n \n while (minheap[current] < minheap[current/2])\n {\n\t\t\t\n \tFloat tmp;\n tmp = minheap[current];\n minheap[current] = minheap[current/2];\n minheap[current/2] = tmp;\n \n Vertex temp_var;\n temp_var = vertexdist[current];\n vertexdist[current] = vertexdist[current/2];\n vertexdist[current/2] = temp_var;\n current = current/2;\n\t\t\t\n }\t\n }", "title": "" }, { "docid": "5c28fcc4605351e14a328334b0fd731c", "score": "0.509743", "text": "public T get(int index) {\n if (this.isEmpty()) {\n return null;\n }\n if (index > this.size()) {\n return null;\n }\n int forwardIdx = 0;\n int backwardIdx = length - 1;\n TNode forwardPivot = sentinel.next;\n TNode backwardPivot = sentinel.prev;\n while ((forwardIdx != index) && (backwardIdx != index)) {\n forwardPivot = forwardPivot.next;\n backwardPivot = backwardPivot.prev;\n forwardIdx++;\n backwardIdx--;\n }\n return forwardIdx == index ? forwardPivot.item : backwardPivot.item;\n }", "title": "" }, { "docid": "b6f5626a2d8d0c15e5af8cbcb731f31f", "score": "0.50973326", "text": "private void bubbleUp(int index) {\n while (index >= 1) {\n int parentIndex = index / 2;\n if (parentIndex < 1) {\n return;\n }\n if (keys[parentIndex].compareTo(keys[index]) > 0) {\n //swap parent and index since parent is greater than child\n Key temp = keys[parentIndex];\n keys[parentIndex] = keys[index];\n keys[index] = temp;\n map.put(keys[parentIndex], parentIndex);\n map.put(keys[index], index);\n index = parentIndex;\n } else {\n return;\n }\n }\n }", "title": "" }, { "docid": "196b491c550a091b211258088efe5d66", "score": "0.5093368", "text": "public void insert(int value) {\n if (this.length + 1 > this.heap.length) {\n this.heap = resize(this.heap);\n }\n\n // insert as leftest leaf\n this.heap[this.length] = value;\n this.length++;\n\n // swim up\n int currIndex = this.length - 1;\n while (!isRoot(currIndex)) {\n int parentIndex = getParentIndex(currIndex);\n // swap with parent if child is larger\n if (this.heap[currIndex] > this.heap[parentIndex]) {\n swap(this.heap, currIndex, parentIndex);\n currIndex = parentIndex;\n }\n }\n }", "title": "" }, { "docid": "f470faa659f0dfe4289faf6fd4803657", "score": "0.5090734", "text": "void pushAt(int index, int value) {\n if (index < 0 || index > size) { // Checking if the 'index' is correct\n System.out.println(\"Cannot push the \"+ value +\" to the list. Incorrect index\");\n return;\n }\n else if (index == 0) { // An occasion, when 'value' inserts before 'head'\n pushFront(value);\n return;\n }\n\n Node temp = head;\n while (index > 1) { // Moving to the index we are looking for\n index--;\n temp = temp.next;\n }\n Node newNode = new Node();\n newNode.data = value;\n newNode.next = temp.next;\n temp.next = newNode;\n size++;\n }", "title": "" }, { "docid": "a1ab7100b42df2cf9f02dcb6bd44940e", "score": "0.5090308", "text": "public void heapIncreaseKey(ArrayList<Patient>patientQueue,int i, int newPriorityNumber){\n if(newPriorityNumber < patientQueue.get(i).getPriorityNumber()){\n System.out.println(\"New priority number is lower than the patient current priority\");\n return;\n }\n patientQueue.get(i).setPriorityNumber(newPriorityNumber);\n while(i > 1 &&\n patientQueue.get(i/2).getPriorityNumber() < patientQueue.get(i).getPriorityNumber()){\n swap(patientQueue,i/2,i);\n i = i/2;\n }\n }", "title": "" }, { "docid": "9a318672d1777f35359cb529eb9c65fa", "score": "0.50875205", "text": "protected void percolateUp(int hoja){\n\t\tint parent = parent(hoja);\n\t\tE value = data.get(hoja);\n\t\twhile (hoja > 0 &&\n\t\t(value.compareTo(data.get(parent)) < 0))\n\t\t{\n\t\t\tdata.set(hoja,data.get(parent));\n\t\t\thoja = parent;\n\t\t\tparent = parent(hoja);\n\t\t}\n\t\tdata.set(hoja,value);\n\t}", "title": "" }, { "docid": "1680f32d2209164f1a7f7dedf74763d5", "score": "0.508742", "text": "public void updateElementAt(int index, int value)\n {\n if (index < 0 || index >= farr.length) throw new ArrayIndexOutOfBoundsException();\n /*\n 1. starts at the root node of that singleton interval for the index.\n 2. update its parent from bottom to the top.\n */\n int Node = leafnode_posi.get(index);\n farr[Node] = value;\n while (Node != 1)\n {\n int ParentNode = getParent(Node);\n int LeftChildNode = getLeftChild(ParentNode);\n int RightChildNode = getRightChild(ParentNode);\n farr[ParentNode] = f.apply(new Integer[]{farr[LeftChildNode], farr[RightChildNode]});\n Node = ParentNode;\n }\n }", "title": "" }, { "docid": "1a0c5796b066a3b8f02899a696b4d5df", "score": "0.5078117", "text": "@Override\n public void setQuick(int index, double value) {\n //if (debug) if (index<0 || index>=size) checkIndex(index);\n //elements[index(index)] = value;\n // manually inlined:\n elements[zero + index * stride] = value;\n }", "title": "" } ]
5e185150f8b61ce5105970ef4a853eb6
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.
[ { "docid": "f7ee0b11d8cd1bee6bc57d788c7901e4", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n tbl_vendors = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Vendor Name\", \"Address\", \"Contact no. \", \"Email\", \"Book Purchased\", \"Purchase Date\", \"Author\", \"Genre\", \"Quantity\", \"Rate per Book (in Rs.)\", \"Discount Rate (in %)\", \"Total Amount (in Rs.)\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tbl_vendors.setViewportView(jTable1);\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(tbl_vendors, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tbl_vendors, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)\n );\n\n pack();\n }", "title": "" } ]
[ { "docid": "17113ab7a06544a62482637e283ac13d", "score": "0.739095", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n }", "title": "" }, { "docid": "b431c293f27700e21b92be92177c04a2", "score": "0.73445", "text": "public UIForm() {\n initComponents();\n }", "title": "" }, { "docid": "37a5472d5b0f35cf64a077bc1dd978c4", "score": "0.7317832", "text": "public Form() {\n initComponents();\n }", "title": "" }, { "docid": "a6c057f298848365334da6fdde36a65d", "score": "0.7297793", "text": "public FrmAddNanny1() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7288638", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7288638", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "2901c5027f800c57f8efe188557aec1f", "score": "0.7288638", "text": "public MainForm() {\n initComponents();\n }", "title": "" }, { "docid": "99ef3f16a1baa360d7223041ed73f308", "score": "0.72692746", "text": "public UML_Generator_Form() {\n initComponents();\n }", "title": "" }, { "docid": "d9019db3a6bab2b5e6566f2c67bfef27", "score": "0.72673357", "text": "public MainForm() {\n initComponents();\n SetFramePosition(this);\n FillMedTypes();\n }", "title": "" }, { "docid": "f357be1c01f6e2092775a85d31b1cb52", "score": "0.7260561", "text": "public C_form() {\n initComponents();\n }", "title": "" }, { "docid": "6198ec829d947e453122ea51000d7552", "score": "0.7233096", "text": "public BrainForm() {\n initComponents();\n }", "title": "" }, { "docid": "9085339b73ef286d3b1f52a58234b0a7", "score": "0.7169401", "text": "public CN3Form() {\n initComponents();\n }", "title": "" }, { "docid": "02cd7126c26a98ea1bcc5f0e000db369", "score": "0.71544135", "text": "public frmPOS() {\n initComponents();\n }", "title": "" }, { "docid": "345d20e041e97d0186b442fab9f4338f", "score": "0.71416193", "text": "public JMCF1() {\n initComponents();\n }", "title": "" }, { "docid": "28be02408097b6c1cba7e03b620ade1e", "score": "0.71357286", "text": "public FornecedorForm() {\n initComponents();\n }", "title": "" }, { "docid": "550c7844d0ad043dd02278035eb6b06f", "score": "0.7107481", "text": "public Fr_cle() {\n initComponents();\n }", "title": "" }, { "docid": "448cf8d9bd96433b230fbfbbf2d838f1", "score": "0.7096227", "text": "public ReseptionFormViewer() {\n initComponents();\n }", "title": "" }, { "docid": "bf167ce6158500558679ba59b1cbe397", "score": "0.7051656", "text": "public FirstForm() {\n initComponents();\n }", "title": "" }, { "docid": "25b12189b01cc4d3d6f43be2a79acec1", "score": "0.7029406", "text": "public mandelbrots() {\n initComponents();\n }", "title": "" }, { "docid": "cdc7c10a32cbd944feaa9af5537eacb3", "score": "0.7011498", "text": "public CervejariaForm() {\n initComponents();\n }", "title": "" }, { "docid": "a4ed1119660d8199c66866c2a19254cf", "score": "0.7010804", "text": "public ManageFlightGUI() {\n initComponents();\n }", "title": "" }, { "docid": "2554562864629ad1b7889ea4510b2300", "score": "0.699611", "text": "public LCS_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "3bfb8b57275e9f9747bace5486a9cfd3", "score": "0.69565594", "text": "public FormQuanLyPhong() {\n initComponents();\n setLocationRelativeTo(this);\n showData();\n }", "title": "" }, { "docid": "a1adbe5bdc420b99de5fa241f7bf4217", "score": "0.695421", "text": "public Frmclothes() {\n initComponents();\n }", "title": "" }, { "docid": "f29fe8a9855f69dc09f2bebaddd9fdd5", "score": "0.6947464", "text": "public MatrixOperationForm()\n {\n initComponents();\n }", "title": "" }, { "docid": "30002cd20258df0ca16e751d3fed7e2e", "score": "0.6945162", "text": "public FCampus() {\n initComponents();\n }", "title": "" }, { "docid": "f12875c826b9ca0239a6814057248dd0", "score": "0.6945005", "text": "public lGenGUI03() {\n initComponents();\n }", "title": "" }, { "docid": "51f83d7228d7c45f4fbf79e750335c2f", "score": "0.6939364", "text": "public MainForm() {\n initComponents();\n customInitComponents();\n this.setTitle(\"Explorer\");\n }", "title": "" }, { "docid": "7114270ec49a6978139866634a90c0bf", "score": "0.6927689", "text": "public frmCv() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "7b87bb1c55a945d32f8f17710d3f2d31", "score": "0.69106686", "text": "public PocketCalculatorUI() {\n initComponents();\n }", "title": "" }, { "docid": "8134476dc6b52000055c99fefdb483bc", "score": "0.69091785", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n pack();\n }", "title": "" }, { "docid": "cbdd2da625d7fbcf793347eba5a25189", "score": "0.6908069", "text": "public YasadiginSehirUygulamasi()\n {\n initComponents();\n }", "title": "" }, { "docid": "89283779cfe1ff1359aa1ee363bd57e5", "score": "0.6898501", "text": "public frmAltas() {\n initComponents();\n }", "title": "" }, { "docid": "44e49b23dd59818eac5a3976b79007d1", "score": "0.68973947", "text": "public AddForm() {\n initComponents();\n }", "title": "" }, { "docid": "e47a15372c5e2d22a7a8dc5ed6c16cdb", "score": "0.68832153", "text": "public frmRel() {\n initComponents();\n }", "title": "" }, { "docid": "cad9ca9c6d36f66fbf8cfb51885abcf6", "score": "0.6882512", "text": "public CalcForm() {\n initComponents();\n }", "title": "" }, { "docid": "df9586a96eb113c62f539c3f38933bb7", "score": "0.6873946", "text": "public BookTypeInterFrm() {\n initComponents();\n this.setLocation(200, 50);\n }", "title": "" }, { "docid": "99411d3d9c66d612803a670a18bf4522", "score": "0.6872036", "text": "public Patient_Menu() {\n initComponents();\n }", "title": "" }, { "docid": "4660140502277fb935d96e16fccb8a64", "score": "0.68695307", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n setLayout(new java.awt.BorderLayout());\n\n }", "title": "" }, { "docid": "4660140502277fb935d96e16fccb8a64", "score": "0.68695307", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n setLayout(new java.awt.BorderLayout());\n\n }", "title": "" }, { "docid": "4660140502277fb935d96e16fccb8a64", "score": "0.68695307", "text": "private void initComponents() {//GEN-BEGIN:initComponents\n\n setLayout(new java.awt.BorderLayout());\n\n }", "title": "" }, { "docid": "7df540c10e220cde2adc225568bc2d47", "score": "0.686517", "text": "public lieferant() {\n initComponents();\n }", "title": "" }, { "docid": "6d2b4f9c056493c1bc3de4417fbe1b56", "score": "0.68606883", "text": "public secenekler() {\n initComponents();\n }", "title": "" }, { "docid": "361fa7780925c7948c8b26ae266262a5", "score": "0.68534184", "text": "public JForm() {\r\n initActions();\r\n }", "title": "" }, { "docid": "8f6e9202d9ab7d8561c967b6183aa640", "score": "0.6852682", "text": "public frmTrain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851788", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851788", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851788", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851788", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "13eb432242a170ba8bb6ab65a6067512", "score": "0.6851788", "text": "public frmMain() {\n initComponents();\n }", "title": "" }, { "docid": "5a1c2d6f35a55ffbd244973a342adb26", "score": "0.6840977", "text": "public FMain() {\n initComponents();\n setLocationRelativeTo(null);\n prepareForm();\n }", "title": "" }, { "docid": "f7b21aa4f46f4323afd37be2d92fb80b", "score": "0.6833833", "text": "public Travel_Insurance_form() {\n initComponents();\n }", "title": "" }, { "docid": "3158a9d16d294f1bcdcea736a2b0a8c6", "score": "0.6833089", "text": "public ShowForm() {\n initComponents();\n }", "title": "" }, { "docid": "189a0af3dfa5c7fa3c234a38ae072514", "score": "0.6831034", "text": "public Praktik_7() {\n initComponents();\n }", "title": "" }, { "docid": "f9a62b34de062f3fdfe71ded48f6aa83", "score": "0.6826405", "text": "public FrmMenu() {\n initComponents();\n }", "title": "" }, { "docid": "7ffc36751889dbd5fa5fcf65a27d220a", "score": "0.6824597", "text": "public v_lahan() {\n initComponents();\n }", "title": "" }, { "docid": "b286a4e05cb0088fa7c238f6635e7a3a", "score": "0.6820514", "text": "public Daftarscore_GUI() {\n initComponents();\n }", "title": "" }, { "docid": "63b765a7f6f8c63c084d6e032e5482eb", "score": "0.68204236", "text": "public ConnectionForm()\n {\n initComponents();\n AddComboBoxListener();\n }", "title": "" }, { "docid": "077b85ddee2b4d88b7e9a91281ba1a85", "score": "0.68144506", "text": "public ModifyMemberForm() {\n initComponents();\n }", "title": "" }, { "docid": "80982c3cbb823a99cd5c99ec187361ca", "score": "0.6813122", "text": "public FrmKlijent() {\n initComponents();\n }", "title": "" }, { "docid": "08fe24d6ead0db26abdd6831f96c9228", "score": "0.6812745", "text": "public frmAdmin() {\n initComponents();\n setLocationRelativeTo(this);\n loadImg();\n sliderShow();\n this.jLabel1.setText(Useful.adminRegistred.getFirstName() + \" \" + Useful.adminRegistred.getLastName());\n }", "title": "" }, { "docid": "0ef7652255d212415901b51e7d8d673c", "score": "0.6809897", "text": "public InventoryForm() {\n initComponents();\n excelGenerator = new ExcelGenerator();\n validator = new Validator();\n propertiesFrom = new PropertiesFrom();\n propertiesFrom.setVisible(false);\n }", "title": "" }, { "docid": "924d98c05e991ce06cfe8f32cd92866a", "score": "0.68049586", "text": "public Menucal() {\n initComponents();\n }", "title": "" }, { "docid": "8bb90c5b8df7ad23a669a727212a88ba", "score": "0.6801554", "text": "public EditForm() {\n initComponents();\n \n \n }", "title": "" }, { "docid": "ecbddd369cb48d2da1d061351136eff4", "score": "0.67995787", "text": "public frm_CapNhapSinhVien() {\n initComponents();\n }", "title": "" }, { "docid": "2e538698e2bd048cca1b91688a72e17a", "score": "0.67994004", "text": "public FenInf() {\n initComponents();\n }", "title": "" }, { "docid": "950846e53d1dc07c1f594aebb6663a36", "score": "0.67990774", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setMaximumSize(new java.awt.Dimension(120, 32767));\n setName(\"Form\"); // NOI18N\n setPreferredSize(new java.awt.Dimension(120, 1400));\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, 128, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 700, Short.MAX_VALUE)\n );\n }", "title": "" }, { "docid": "5304f73da3f9687796683408bebf6540", "score": "0.67986685", "text": "public UI2() {\n initComponents();\n }", "title": "" }, { "docid": "1fa76004c29cb6a975df50e985d37d09", "score": "0.6798252", "text": "private ListObjectsForm() {\n initComponents();\n }", "title": "" }, { "docid": "bf9ae11e5f3a9bbdc729fbdbb2afd3aa", "score": "0.6794831", "text": "public frm_ferias() {\n initComponents();\n }", "title": "" }, { "docid": "366e6b4831b728e7a8ce9d0645c0e6db", "score": "0.6792236", "text": "public EncounterConverterUI() {\n initComponents();\n }", "title": "" }, { "docid": "2efa4378f9a23a15072175ba7a415069", "score": "0.6790138", "text": "public frmVentas() {\n initComponents();\n }", "title": "" }, { "docid": "417b6324d6390b69daf9dfd566f4e8bb", "score": "0.67877394", "text": "public DaftarKelompok() {\n initComponents();\n }", "title": "" }, { "docid": "934b868e05521518a8bb87a5b5dbd06c", "score": "0.6786161", "text": "public CalendarForm() {\n initComponents();\n }", "title": "" }, { "docid": "b521c4f5055533e34d820244ff757912", "score": "0.6778219", "text": "public MainForm() {\n this.setTitle(\"Digital Signature\");\n this.setResizable(false);\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n initComponents();\n \n \n \n }", "title": "" }, { "docid": "1bddc27d3c24abf633c680b2971eaffd", "score": "0.67664677", "text": "public ReservationForm() {\n Login.initLookAndFeel();\n initComponents();\n }", "title": "" }, { "docid": "f96c8c0d8eccf95cac919690a69d0eb0", "score": "0.67657816", "text": "public frm_music() {\n initComponents();\n }", "title": "" }, { "docid": "94db870c8585152c02354d56740bf0a9", "score": "0.6765309", "text": "public BankAppGUI() {\n initComponents();\n }", "title": "" }, { "docid": "de63dde4576f94a5ac69379ce29e9091", "score": "0.6765021", "text": "public Barang() {\n initComponents();\n }", "title": "" }, { "docid": "14e001de86d92b17f5aec642bdae76b0", "score": "0.67627156", "text": "public Class() {\n initComponents();\n }", "title": "" }, { "docid": "ad5903d237f783a3fce86696dcb3c265", "score": "0.67578536", "text": "public creditos() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "1e9048b1b83443270ee1025d8e09be92", "score": "0.6756551", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtFName = new javax.swing.JTextField();\n txtLName = new javax.swing.JTextField();\n txtStreet = new javax.swing.JTextField();\n txtCity = new javax.swing.JTextField();\n cboState = new javax.swing.JComboBox();\n txtZip = new javax.swing.JTextField();\n txtEmail = new javax.swing.JTextField();\n txtPhoneArea = new javax.swing.JTextField();\n txtPhoneFirst = new javax.swing.JTextField();\n txtPhoneLast = new javax.swing.JTextField();\n txtPosition = new javax.swing.JTextField();\n cboCommMethod = new javax.swing.JComboBox();\n scpDescription = new javax.swing.JScrollPane();\n txaDescription = new javax.swing.JTextArea();\n txtPhoneDash1 = new javax.swing.JLabel();\n lblPhoneRightParenthesis1 = new javax.swing.JLabel();\n txtPhoneLeftParenthesis1 = new javax.swing.JLabel();\n lblCommMethod1 = new javax.swing.JLabel();\n lblDescription1 = new javax.swing.JLabel();\n lblPosition1 = new javax.swing.JLabel();\n lblPhone1 = new javax.swing.JLabel();\n lblEmail1 = new javax.swing.JLabel();\n lblState1 = new javax.swing.JLabel();\n lblCity1 = new javax.swing.JLabel();\n lblZip1 = new javax.swing.JLabel();\n lblStreet1 = new javax.swing.JLabel();\n lblFName = new javax.swing.JLabel();\n lblLName1 = new javax.swing.JLabel();\n cboIndustry = new javax.swing.JComboBox();\n cboCompany = new javax.swing.JComboBox();\n lblCompany = new javax.swing.JLabel();\n lblIndustryDivision = new javax.swing.JLabel();\n lblPhoneExt = new javax.swing.JLabel();\n txtPhoneExt = new javax.swing.JTextField();\n lblCompanyTitle = new javax.swing.JLabel();\n lblCompanyTitle1 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n\n setName(\"Form\"); // NOI18N\n setPreferredSize(new java.awt.Dimension(681, 400));\n\n txtFName.setName(\"txtFName\"); // NOI18N\n\n txtLName.setName(\"txtLName\"); // NOI18N\n\n txtStreet.setName(\"txtStreet\"); // NOI18N\n\n txtCity.setName(\"txtCity\"); // NOI18N\n\n cboState.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"AL\", \"AK\", \"AZ\", \"AR\", \"CA\", \"CO\", \"CT\", \"DE\", \"FL\", \"GA\", \"HI\", \"ID\", \"IL\", \"IN\", \"IA\", \"KS\", \"KY\", \"LA\", \"ME\", \"MD\", \"MA\", \"MI\", \"MN\", \"MS\", \"MO\", \"MT\", \"NE\", \"NV\", \"NH\", \"NJ\", \"NM\", \"NY\", \"NC\", \"ND\", \"OH\", \"OK\", \"OR\", \"PA\", \"RI\", \"SC\", \"SD\", \"TN\", \"TX\", \"UT\", \"VT\", \"VA\", \"WA\", \"WV\", \"WI\", \"WY\" }));\n cboState.setName(\"cboState\"); // NOI18N\n\n txtZip.setName(\"txtZip\"); // NOI18N\n txtZip.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n txtZipMouseExited(evt);\n }\n });\n txtZip.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtZipActionPerformed(evt);\n }\n });\n txtZip.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n txtZipFocusLost(evt);\n }\n });\n\n txtEmail.setName(\"txtEmail\"); // NOI18N\n\n txtPhoneArea.setName(\"txtPhoneArea\"); // NOI18N\n\n txtPhoneFirst.setMaximumSize(new java.awt.Dimension(3, 3));\n txtPhoneFirst.setName(\"txtPhoneFirst\"); // NOI18N\n\n txtPhoneLast.setName(\"txtPhoneLast\"); // NOI18N\n\n txtPosition.setName(\"txtPosition\"); // NOI18N\n\n cboCommMethod.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Email\", \"Phone\" }));\n cboCommMethod.setName(\"cboCommMethod\"); // NOI18N\n\n scpDescription.setName(\"scpDescription\"); // NOI18N\n\n txaDescription.setColumns(20);\n txaDescription.setRows(5);\n txaDescription.setName(\"txaDescription\"); // NOI18N\n scpDescription.setViewportView(txaDescription);\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(cis406.MainApp.class).getContext().getResourceMap(ContactPanel.class);\n txtPhoneDash1.setText(resourceMap.getString(\"txtPhoneDash1.text\")); // NOI18N\n txtPhoneDash1.setName(\"txtPhoneDash1\"); // NOI18N\n\n lblPhoneRightParenthesis1.setText(resourceMap.getString(\"lblPhoneRightParenthesis1.text\")); // NOI18N\n lblPhoneRightParenthesis1.setName(\"lblPhoneRightParenthesis1\"); // NOI18N\n\n txtPhoneLeftParenthesis1.setText(resourceMap.getString(\"txtPhoneLeftParenthesis1.text\")); // NOI18N\n txtPhoneLeftParenthesis1.setName(\"txtPhoneLeftParenthesis1\"); // NOI18N\n\n lblCommMethod1.setText(resourceMap.getString(\"lblCommMethod1.text\")); // NOI18N\n lblCommMethod1.setName(\"lblCommMethod1\"); // NOI18N\n\n lblDescription1.setText(resourceMap.getString(\"lblDescription1.text\")); // NOI18N\n lblDescription1.setName(\"lblDescription1\"); // NOI18N\n\n lblPosition1.setText(resourceMap.getString(\"lblPosition1.text\")); // NOI18N\n lblPosition1.setName(\"lblPosition1\"); // NOI18N\n\n lblPhone1.setText(resourceMap.getString(\"lblPhone1.text\")); // NOI18N\n lblPhone1.setName(\"lblPhone1\"); // NOI18N\n\n lblEmail1.setText(resourceMap.getString(\"lblEmail1.text\")); // NOI18N\n lblEmail1.setName(\"lblEmail1\"); // NOI18N\n\n lblState1.setText(resourceMap.getString(\"lblState1.text\")); // NOI18N\n lblState1.setName(\"lblState1\"); // NOI18N\n\n lblCity1.setText(resourceMap.getString(\"lblCity1.text\")); // NOI18N\n lblCity1.setName(\"lblCity1\"); // NOI18N\n\n lblZip1.setText(resourceMap.getString(\"lblZip1.text\")); // NOI18N\n lblZip1.setName(\"lblZip1\"); // NOI18N\n\n lblStreet1.setText(resourceMap.getString(\"lblStreet1.text\")); // NOI18N\n lblStreet1.setName(\"lblStreet1\"); // NOI18N\n\n lblFName.setText(resourceMap.getString(\"lblFName.text\")); // NOI18N\n lblFName.setName(\"lblFName\"); // NOI18N\n\n lblLName1.setText(resourceMap.getString(\"lblLName1.text\")); // NOI18N\n lblLName1.setName(\"lblLName1\"); // NOI18N\n\n cboIndustry.setEditable(true);\n cboIndustry.setModel(new CisComboBox(\"industry\", \"industry_name\"));\n cboIndustry.setName(\"cboIndustry\"); // NOI18N\n\n cboCompany.setEditable(true);\n cboCompany.setModel(new CisComboBox(\"company\", \"name\"));\n cboCompany.setName(\"cboCompany\"); // NOI18N\n cboCompany.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cboCompanyActionPerformed(evt);\n }\n });\n\n lblCompany.setText(resourceMap.getString(\"lblCompany.text\")); // NOI18N\n lblCompany.setName(\"lblCompany\"); // NOI18N\n\n lblIndustryDivision.setText(resourceMap.getString(\"lblIndustryDivision.text\")); // NOI18N\n lblIndustryDivision.setName(\"lblIndustryDivision\"); // NOI18N\n\n lblPhoneExt.setText(resourceMap.getString(\"lblPhoneExt.text\")); // NOI18N\n lblPhoneExt.setName(\"lblPhoneExt\"); // NOI18N\n\n txtPhoneExt.setName(\"txtPhoneExt\"); // NOI18N\n\n lblCompanyTitle.setFont(resourceMap.getFont(\"lblCompanyTitle.font\")); // NOI18N\n lblCompanyTitle.setText(resourceMap.getString(\"lblCompanyTitle.text\")); // NOI18N\n lblCompanyTitle.setName(\"lblCompanyTitle\"); // NOI18N\n\n lblCompanyTitle1.setFont(resourceMap.getFont(\"lblCompanyTitle1.font\")); // NOI18N\n lblCompanyTitle1.setText(resourceMap.getString(\"lblCompanyTitle1.text\")); // NOI18N\n lblCompanyTitle1.setName(\"lblCompanyTitle1\"); // NOI18N\n\n jSeparator1.setName(\"jSeparator1\"); // 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(lblCompanyTitle)\n .addContainerGap(605, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblCompanyTitle1)\n .addContainerGap(617, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblCity1)\n .addComponent(lblState1)\n .addComponent(lblPhone1)\n .addComponent(lblStreet1)\n .addComponent(lblZip1)\n .addComponent(lblEmail1)\n .addComponent(lblPhoneExt)\n .addComponent(lblPosition1)\n .addComponent(lblCommMethod1)\n .addComponent(lblDescription1)\n .addComponent(lblFName))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPosition, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPhoneExt, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtZip, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCity, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboState, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtStreet, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtPhoneLeftParenthesis1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPhoneArea, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblPhoneRightParenthesis1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPhoneFirst, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPhoneDash1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPhoneLast, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(cboCommMethod, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtFName, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblLName1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtLName, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34))\n .addComponent(scpDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 591, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(lblCompany)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboCompany, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(lblIndustryDivision)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboIndustry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(15, 15, 15))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblCompanyTitle)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCompany)\n .addComponent(cboCompany, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblIndustryDivision)\n .addComponent(cboIndustry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblCompanyTitle1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblFName)\n .addComponent(lblLName1)\n .addComponent(txtLName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFName, 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(lblStreet1)\n .addComponent(txtStreet, 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(lblZip1)\n .addComponent(txtZip, 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(lblCity1)\n .addComponent(txtCity, 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(lblState1)\n .addComponent(cboState, 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(lblEmail1)\n .addComponent(txtEmail, 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(txtPhoneLeftParenthesis1)\n .addComponent(lblPhoneRightParenthesis1)\n .addComponent(lblPhone1)\n .addComponent(txtPhoneArea, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPhoneFirst, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPhoneDash1)\n .addComponent(txtPhoneLast, 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(lblPhoneExt)\n .addComponent(txtPhoneExt, 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(txtPosition, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblPosition1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCommMethod1)\n .addComponent(cboCommMethod, 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.LEADING)\n .addComponent(lblDescription1)\n .addComponent(scpDescription, javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE))\n .addContainerGap())\n );\n }", "title": "" }, { "docid": "f295a7f8b78d1b05f2c4b595c49a05d6", "score": "0.67492616", "text": "public frmIMC() {\n initComponents();\n }", "title": "" }, { "docid": "182220a859f0a1e03e78b4df1f73b0b4", "score": "0.6748173", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pack();\n }", "title": "" }, { "docid": "182220a859f0a1e03e78b4df1f73b0b4", "score": "0.6748173", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pack();\n }", "title": "" }, { "docid": "fcf68eba85aa35947bd819178e9b0d33", "score": "0.67454666", "text": "public guiRelatorio4() {\n initComponents();\n }", "title": "" }, { "docid": "323ebae33b9e368dcf3abe161ee69210", "score": "0.67443585", "text": "public TelaVendedor() {\n initComponents();\n }", "title": "" }, { "docid": "9b18c44c80e1f36b332d2aabde1cb53e", "score": "0.67438364", "text": "public StudentGUI() {\n initComponents();\n }", "title": "" }, { "docid": "f70125aa78e68f55dca32d4f2440606f", "score": "0.6743072", "text": "public JourneyPlannerGUI() \n {\n initComponents();\n }", "title": "" }, { "docid": "1eda707a3bcb40dda0974b02e4424e09", "score": "0.6742169", "text": "public NewDepFrame() {\n initComponents();\n }", "title": "" }, { "docid": "d438fbbd73d3412fce4e7c422ba10445", "score": "0.6741688", "text": "public HillForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n }", "title": "" }, { "docid": "027757942adf960aaa02edaac2b6cfa8", "score": "0.67332625", "text": "public alat() {\n initComponents();\n }", "title": "" }, { "docid": "efba3f0506d553db9f15b52f44470e16", "score": "0.6731737", "text": "public frmMenu() {\n initComponents();\n this.setLocationRelativeTo(null);\n setSize(500,500);\n setLocationRelativeTo(null);\n setResizable(false);\n }", "title": "" }, { "docid": "87f0d8781ea16aaa580340ee244ed566", "score": "0.6729608", "text": "public Multiplos() {\n initComponents();\n }", "title": "" }, { "docid": "ade666b07097bb23658febea6731c059", "score": "0.6721395", "text": "public GUIJefeDepto() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "59104e8e50595e3442ba7643b888d9e5", "score": "0.6719513", "text": "public Kuis2() {\n initComponents();\n }", "title": "" }, { "docid": "4a6105eba42a5aa044db1cadaeab4e21", "score": "0.6716887", "text": "public autenthificationFRM() {\n initComponents();\n }", "title": "" }, { "docid": "1bb6984e38da71b30e8faf397641a58d", "score": "0.6713969", "text": "public KayitSayfasi() {\n initComponents();\n }", "title": "" }, { "docid": "40cff2506d07b37c3e8a640563b570d9", "score": "0.67112935", "text": "public CadastroManagerGUI() {\n initComponents();\n }", "title": "" }, { "docid": "6d4215ebddadb088c28c2d0d1611169c", "score": "0.67067796", "text": "public MainForm()\n {\n // Constructor\n initDebugModel();\n initComponents();\n }", "title": "" }, { "docid": "0a0d393ff2707e6659fdd25aa0e132a6", "score": "0.67063534", "text": "public SplashForm() {\n initComponents();\n }", "title": "" } ]
12242fc7f602cb7bd9fb4480d482e6ef
The duration for the flip transition
[ { "docid": "084a00e5886eece99b52db72a5177d6c", "score": "0.0", "text": "public int getDuration() {\n return duration;\n }", "title": "" } ]
[ { "docid": "8c986495d3ce7bc304f87f6f57236a9c", "score": "0.6517042", "text": "int getFadeInDurationSeconds();", "title": "" }, { "docid": "feefa9e9e47fbdc2c883aab1a96db701", "score": "0.6503562", "text": "int getFadeOutDurationSeconds();", "title": "" }, { "docid": "feefa9e9e47fbdc2c883aab1a96db701", "score": "0.6503562", "text": "int getFadeOutDurationSeconds();", "title": "" }, { "docid": "d2c0e4010179710ebe27122a98b4407d", "score": "0.6487633", "text": "public void setFlipInterval(int milliseconds) {\r\n mFlipInterval = milliseconds;\r\n }", "title": "" }, { "docid": "053e6dc90b5195faecc24b174cceeca0", "score": "0.6406443", "text": "private static Transition flip(Node front, Node back, double duration, boolean shader) {\n\t\t// --- Modif for patch perspective camera\n\t\t// ---------------\n\t\tback.setVisible(false);\n\t\t// --- Start Flip\n\t\tDuration halfFlipDuration = Duration.seconds(duration / 2);\n RotateTransition rotateOutFront = new RotateTransition(halfFlipDuration, front); \n rotateOutFront.setInterpolator(Interpolator.LINEAR); \n rotateOutFront.setAxis(Rotate.Y_AXIS); \n rotateOutFront.setFromAngle(0); \n rotateOutFront.setToAngle(90); \n // --------------\n\t\t// --- Modif for patch perspective camera\n // --------------\n rotateOutFront.setOnFinished(new EventHandler<ActionEvent>() {\n \t@Override\n \tpublic void handle(ActionEvent actEv) {\n \t\tfront.setVisible(false);\n \t\tback.setVisible(true);\n \t}\n });\n // -------------\n RotateTransition rotateInBack = new RotateTransition(halfFlipDuration, back); \n rotateInBack.setInterpolator(Interpolator.LINEAR); \n rotateInBack.setAxis(Rotate.Y_AXIS); \n rotateInBack.setFromAngle(-90); \n rotateInBack.setToAngle(0); \n // --- End Flip\n ParallelTransition flipOutFront;\n ParallelTransition flipInBack;\n // --- Start Shader\n if (shader) {\n \tColorAdjust frontColorAdjust = new ColorAdjust();\n \t\tColorAdjust backColorAdjust = new ColorAdjust();\n Timeline changeBrightnessFront = new Timeline( \n \tnew KeyFrame(Duration.ZERO, new KeyValue(frontColorAdjust.brightnessProperty(), 0)), \n new KeyFrame(halfFlipDuration, new KeyValue(frontColorAdjust.brightnessProperty(), -1))\n ); \n Timeline changeBrightnessBack = new Timeline( \n new KeyFrame(Duration.ZERO, new KeyValue(backColorAdjust.brightnessProperty(), -1)), \n new KeyFrame(halfFlipDuration, new KeyValue(backColorAdjust.brightnessProperty(), 0))\n ); \n flipOutFront = new ParallelTransition(rotateOutFront, changeBrightnessFront); \n flipInBack = new ParallelTransition(rotateInBack, changeBrightnessBack); \n }\n // --- End Shader\n else {\n \tflipOutFront = new ParallelTransition(rotateOutFront); \n \tflipInBack = new ParallelTransition(rotateInBack); \n }\n return new SequentialTransition(flipOutFront, flipInBack); \n }", "title": "" }, { "docid": "c1edf80ba45749f87610e429fb8d53d6", "score": "0.63814443", "text": "float getFadeOutTime();", "title": "" }, { "docid": "af0cde1cc71ad2999af5b1b67cb10a92", "score": "0.6330593", "text": "void setTransitionDuration(int durationMs);", "title": "" }, { "docid": "6a3c8b11ad021b6b235158cadb96c133", "score": "0.63168263", "text": "public FlipTransition(int bgColor, int duration) {\n this.bgColor = bgColor;\n this.duration = duration;\n }", "title": "" }, { "docid": "3d2df039ef421c16fdcb8cf237a71245", "score": "0.618342", "text": "float getFadeInTime();", "title": "" }, { "docid": "a586e2f89126aeda1cc44a6394db68b7", "score": "0.6120423", "text": "Duration measuredFrameDelayBackward();", "title": "" }, { "docid": "f23b3142966f32f0f7babafce6025480", "score": "0.6114696", "text": "public FlipTransition() {\n }", "title": "" }, { "docid": "cffbd686801272f486cfac6c731128fc", "score": "0.6106095", "text": "public void flip() {\n\t\t\n\t}", "title": "" }, { "docid": "13ada89df5048d3f3d2fffccdeee216f", "score": "0.5982257", "text": "int getTimeoutFadeOutDurationSeconds();", "title": "" }, { "docid": "bbcfe7e1303603b2ad39ab3347b69e67", "score": "0.59558195", "text": "@JsProperty double getTransitionDuration();", "title": "" }, { "docid": "6f86dcfa410d67854ebd335a42dadec0", "score": "0.59150624", "text": "Duration measuredFrameDelayTwoWay();", "title": "" }, { "docid": "cb7805eb03490908ee1c448d84ded581", "score": "0.5904587", "text": "boolean hasFadeInDurationSeconds();", "title": "" }, { "docid": "3ffc8680af75fbe77a689d58c2eb95e6", "score": "0.58628017", "text": "public static void fadeTransition(Node e){\n FadeTransition x=new FadeTransition(new Duration(1000),e);\n x.setFromValue(0);\n x.setToValue(1);\n //x.setCycleCount(1);\n x.setInterpolator(Interpolator.EASE_OUT);\n x.play();\n\n }", "title": "" }, { "docid": "3ff394699cfe82b8741ed4e45af8db91", "score": "0.5846914", "text": "@NotNull\n public Timeline getFlipAnimation(@NotNull Double millis) {\n KeyValue kvi = new KeyValue(rotateProperty(), getRotate());\n KeyValue kvf = new KeyValue(rotateProperty(), getRotate() - 180);\n KeyFrame kfi = new KeyFrame(Duration.ZERO, kvi);\n KeyFrame kff = new KeyFrame(Duration.millis(millis), kvf);\n return new Timeline(kfi, kff);\n }", "title": "" }, { "docid": "543d1f9a2357e79d0b34f3d19901feef", "score": "0.58468926", "text": "Duration measuredFrameDelayForward();", "title": "" }, { "docid": "7c1e761acd5afa67188fd537ce2341b2", "score": "0.58436453", "text": "boolean hasFadeOutDurationSeconds();", "title": "" }, { "docid": "7c1e761acd5afa67188fd537ce2341b2", "score": "0.58436453", "text": "boolean hasFadeOutDurationSeconds();", "title": "" }, { "docid": "e56c11fe62f9318a65d9236a3d31b7c5", "score": "0.58387715", "text": "Duration measuredInterFrameDelayVariationBackward();", "title": "" }, { "docid": "9c4286e0336daeea61a79e61e1dea8a0", "score": "0.57837856", "text": "public int getFadeInDurationSeconds() {\n return fadeInDurationSeconds_;\n }", "title": "" }, { "docid": "e7f0ee8a67c171aff8febb62b470bb50", "score": "0.57177174", "text": "public int getFadeOutDurationSeconds() {\n return fadeOutDurationSeconds_;\n }", "title": "" }, { "docid": "e7f0ee8a67c171aff8febb62b470bb50", "score": "0.57177174", "text": "public int getFadeOutDurationSeconds() {\n return fadeOutDurationSeconds_;\n }", "title": "" }, { "docid": "aaac96bf94997d186faf76cdb0805853", "score": "0.5714517", "text": "public int getFadeInDurationSeconds() {\n return fadeInDurationSeconds_;\n }", "title": "" }, { "docid": "1a70ac694dee362beb5a5eff97fa177b", "score": "0.5713097", "text": "Duration measuredInterFrameDelayVariationTwoWay();", "title": "" }, { "docid": "a2bddb59047780a627bf0f70261d746b", "score": "0.5706815", "text": "void flip() {\n isFaceUp = !isFaceUp;\n }", "title": "" }, { "docid": "71fec531df0deab20d37710642cb12b3", "score": "0.5684218", "text": "public float getFadeOutTime() {\n return fadeOutTime_;\n }", "title": "" }, { "docid": "0743c9cc98e58fac31479d2d27ec3dbd", "score": "0.56768954", "text": "Duration measuredInterFrameDelayVariationForward();", "title": "" }, { "docid": "dcb6adfa38944bd1baa83ceed6427feb", "score": "0.5661573", "text": "public int getFadeOutDurationSeconds() {\n return fadeOutDurationSeconds_;\n }", "title": "" }, { "docid": "dcb6adfa38944bd1baa83ceed6427feb", "score": "0.5661573", "text": "public int getFadeOutDurationSeconds() {\n return fadeOutDurationSeconds_;\n }", "title": "" }, { "docid": "9dd8e9ea2673401eda25135885ddadf6", "score": "0.5643322", "text": "public float getFadeOutTime() {\n return fadeOutTime_;\n }", "title": "" }, { "docid": "93c79eac36e59f2da82fd2ec3c56ff16", "score": "0.5558925", "text": "@JsProperty void setTransitionDuration(double value);", "title": "" }, { "docid": "55fdfb92ede1025d70daf65cd231fdfe", "score": "0.5549028", "text": "private void flipView(final Drawable drawable, final View view, int flipDelay, final String newText){\n //flip from 0 to 90 first\n final ObjectAnimator animStage1 = (ObjectAnimator) AnimatorInflater.loadAnimator(getActivity(), R.animator.flip_stage_1);\n //then flip from -90 to 0\n final ObjectAnimator animStage2 = (ObjectAnimator) AnimatorInflater.loadAnimator(getActivity(), R.animator.flip_stage_2);\n animStage1.setTarget(view);\n animStage2.setTarget(view);\n animStage1.setDuration(FLIP_DURATION / 2);\n animStage2.setDuration(FLIP_DURATION / 2);\n animStage1.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animation) {\n }\n\n @Override\n public void onAnimationEnd(Animator animation) {\n /*\n After completing part one of the animation (it is now at 90 degrees and is completely invisible),\n change the image or the text and then rotate back into visibility.\n */\n if (view instanceof ImageView)\n ((ImageView) view).setImageDrawable(drawable);\n if (view instanceof TextView && newText != null)\n ((TextView) view).setText(String.valueOf(newText));\n animStage2.start();\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n }\n\n @Override\n public void onAnimationRepeat(Animator animation) {\n }\n });\n\n if (drawable != null) { //if the new drawable is null, do not perform this animation (used when first starting the activity)\n animStage1.setStartDelay(flipDelay);\n animStage1.start();\n }\n }", "title": "" }, { "docid": "3f9fb68ba809cf92026bb117ab3e0f51", "score": "0.55156225", "text": "Duration averageFrameDelayTwoWay();", "title": "" }, { "docid": "16ea8da8139f11d654da0209378c6f2d", "score": "0.55039793", "text": "public void flipCard(){\r\n \r\n //toggle\r\n faceUp = !faceUp;\r\n }", "title": "" }, { "docid": "e77533e8458ee947ed85e7169d6b18d8", "score": "0.54962826", "text": "Duration maxFrameDelayTwoWay();", "title": "" }, { "docid": "62c457f366af3c0195ff7a4b279bb637", "score": "0.5471592", "text": "public void flipCard() {\n faceUp = !faceUp;\n }", "title": "" }, { "docid": "f68f64a4872764aa014b419d7fe4ed57", "score": "0.54624945", "text": "Duration maxFrameDelayBackward();", "title": "" }, { "docid": "1bbf8abab5e3dfef40bf97d82f31abf2", "score": "0.54581565", "text": "public float getFadeInTime() {\n return fadeInTime_;\n }", "title": "" }, { "docid": "33678f446c22315e44ac12081a939fd0", "score": "0.5450888", "text": "boolean hasFadeOutTime();", "title": "" }, { "docid": "f0870cb06809494852789796de57df13", "score": "0.5446728", "text": "public static SequentialTransition makeFlip(Node front, Node back, double duration, int cycle, boolean shader) {\n\t\tSequentialTransition animation = new SequentialTransition( \n\t\t\tflip(front, back, duration, shader)\n\t ); \n\t animation.setCycleCount(cycle); \n\t return animation;\n\t}", "title": "" }, { "docid": "eb3683ed14c2d97dffc63d0b8a276dda", "score": "0.54435414", "text": "public TransitionBase(float duration) {\n this.duration = duration;\n }", "title": "" }, { "docid": "ec74f3c7f6aa18a1a29fbd06c7374ff7", "score": "0.5441347", "text": "public boolean hasFadeOutDurationSeconds() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "562288010ce44781c45ba65af6bac30d", "score": "0.5435908", "text": "public boolean hasFadeOutDurationSeconds() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "6aed38be43db40941e0573b1bfd3f6ab", "score": "0.5411763", "text": "public float getFadeInTime() {\n return fadeInTime_;\n }", "title": "" }, { "docid": "6cbfcc107962fc1538a6f85c537f6948", "score": "0.53996354", "text": "public boolean hasFadeInDurationSeconds() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "2052c7ba8107cf649e09ba7ba5448dc6", "score": "0.5385623", "text": "public boolean hasFadeOutDurationSeconds() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "641619f5c4943a64cb6a0ec09340b837", "score": "0.5384143", "text": "public boolean hasFadeOutDurationSeconds() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "title": "" }, { "docid": "9219f208683eb46d72fdfc76f1464fe2", "score": "0.53823406", "text": "float getDuration();", "title": "" }, { "docid": "9219f208683eb46d72fdfc76f1464fe2", "score": "0.53823406", "text": "float getDuration();", "title": "" }, { "docid": "9219f208683eb46d72fdfc76f1464fe2", "score": "0.53823406", "text": "float getDuration();", "title": "" }, { "docid": "9219f208683eb46d72fdfc76f1464fe2", "score": "0.53823406", "text": "float getDuration();", "title": "" }, { "docid": "9219f208683eb46d72fdfc76f1464fe2", "score": "0.53823406", "text": "float getDuration();", "title": "" }, { "docid": "9219f208683eb46d72fdfc76f1464fe2", "score": "0.53823406", "text": "float getDuration();", "title": "" }, { "docid": "9219f208683eb46d72fdfc76f1464fe2", "score": "0.53823406", "text": "float getDuration();", "title": "" }, { "docid": "aaff9daddd6dee66cf49e30979c206aa", "score": "0.53736144", "text": "public FadeTransition fadeOut(ImageView iv, double seconds) {\n FadeTransition ft = new FadeTransition(Duration.millis(seconds * 1000), iv);\n ft.setFromValue(1.0);\n ft.setToValue(0.0);\n return ft;\n }", "title": "" }, { "docid": "fd89ba04e5439b7ae82bc0897f3a84d9", "score": "0.53643626", "text": "public int getTimeoutFadeOutDurationSeconds() {\n return timeoutFadeOutDurationSeconds_;\n }", "title": "" }, { "docid": "72e908c52b50d1d7b4f0b1555bbc11cc", "score": "0.5355891", "text": "public int getTimeoutFadeOutDurationSeconds() {\n return timeoutFadeOutDurationSeconds_;\n }", "title": "" }, { "docid": "a4f35b0631b74956fa35ccd471347599", "score": "0.53338397", "text": "boolean hasFadeInTime();", "title": "" }, { "docid": "59910302e6b4be32763cf8d70f786b30", "score": "0.5333183", "text": "public boolean hasFadeInDurationSeconds() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "title": "" }, { "docid": "1753b0ff712b7adc47c2b79ee62daab9", "score": "0.52793026", "text": "Duration maxInterFrameDelayVariationTwoWay();", "title": "" }, { "docid": "9bcaf80483f494c8ec8b210737635d96", "score": "0.526971", "text": "@FXML\n private void flipFlashcard() {\n Flashcard.flipFlashcard();\n }", "title": "" }, { "docid": "e6a76832e5983eae8694c65c35d3234c", "score": "0.52684444", "text": "Float getDuration();", "title": "" }, { "docid": "06290b440dc431ea0a7b267a1b71c345", "score": "0.5256731", "text": "public static void fadeTransition(Node e,int speedInMillis){\n FadeTransition x=new FadeTransition(new Duration(speedInMillis),e);\n x.setFromValue(0);\n x.setToValue(100);\n x.setCycleCount(1);\n x.setInterpolator(Interpolator.EASE_OUT);\n x.play();\n }", "title": "" }, { "docid": "0f66819ba79228df4c045fbd42fca5f2", "score": "0.5245164", "text": "boolean hasTimeoutFadeOutDurationSeconds();", "title": "" }, { "docid": "f67a658d9dbcd87d7dcf8669801311b0", "score": "0.5240299", "text": "public void setDuration(float num) {\r\n this.fDuration = num;\r\n }", "title": "" }, { "docid": "43e26ba4151123cacfb71dd87cd88476", "score": "0.5231179", "text": "Duration maxFrameDelayForward();", "title": "" }, { "docid": "b2d6c66056e1f12a35411d82052653e9", "score": "0.5230137", "text": "public void flip() {\n normal = normal.negated();\n }", "title": "" }, { "docid": "857f74ebdc08214de4b6bcd4e6875090", "score": "0.5228024", "text": "int duration();", "title": "" }, { "docid": "45b006699cb2461cb723ad6e594998ee", "score": "0.5227308", "text": "long duration();", "title": "" }, { "docid": "0ed5c95214d1090351ccebb0b1a0c846", "score": "0.52263737", "text": "int getAfterDuration();", "title": "" }, { "docid": "bc87d3edc75647df235847f4c71f61e1", "score": "0.52198726", "text": "Duration averageFrameDelayBackward();", "title": "" }, { "docid": "901b207ba11b05e49bae8b35b3485205", "score": "0.5214684", "text": "Duration maxInterFrameDelayVariationBackward();", "title": "" }, { "docid": "d8192f24bd0a91e89096176bedafe07a", "score": "0.51889807", "text": "public void reverse(){\n setSpeed(REVERSE_SPEED);\n }", "title": "" }, { "docid": "3984faf41dff5032c2714e4cd3d1a2e2", "score": "0.518682", "text": "@FXML\n void backward(ActionEvent event)\n {\n player.seek(player.getCurrentTime().subtract(Duration.seconds(10)));\n }", "title": "" }, { "docid": "1732f9346844490d2a7d48a8a2991694", "score": "0.51689917", "text": "public void shake(int duration){\n\t\taddShakingTicks(duration);\n\t}", "title": "" }, { "docid": "d91b281b57264c00224b29b8184b3a8d", "score": "0.5165416", "text": "public Builder setFadeInDurationSeconds(int value) {\n bitField0_ |= 0x00000008;\n fadeInDurationSeconds_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "23d0a534fbb2d8e30324448a03a47a18", "score": "0.51630306", "text": "float getModifierDuration();", "title": "" }, { "docid": "d6dd03790eba07c6c97d9635ccca8eaa", "score": "0.51583457", "text": "Duration averageInterFrameDelayVariationTwoWay();", "title": "" }, { "docid": "d22763a2aac9f389a62657984659c289", "score": "0.515678", "text": "public void fastReverse() {\r\n\t\tfor(EventPlayerListener epl : my_listeners) {\r\n\t\t\tepl.playbackFastReverse();\r\n\t\t}\r\n\t\tif(state != PlayState.FASTREVERSE) {\r\n\t\t\tPlayState prevState = state;\r\n\t\t\tstate = PlayState.FASTREVERSE;\r\n\t\t\ttimeCounter.setIncrement(-speed*fastMultiplier);\r\n\t\t\twakeup(prevState);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5090c5e1ca378f8d44cce544cb44f258", "score": "0.514967", "text": "public int duration();", "title": "" }, { "docid": "2f4ebdef81cb95989efd871f26245169", "score": "0.51460546", "text": "public void flipVertically() {\r\n\r\n\t}", "title": "" }, { "docid": "559bfc77138887d61fd58390c685cf60", "score": "0.5138004", "text": "public float duration(){\n return duration;\n }", "title": "" }, { "docid": "518a22b0bcd642376217ee496faa3d64", "score": "0.513441", "text": "public Builder setFadeOutDurationSeconds(int value) {\n bitField0_ |= 0x00000001;\n fadeOutDurationSeconds_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "b9fc5703fccf330e3856dafdc2185fd0", "score": "0.5129181", "text": "public Builder setFadeOutDurationSeconds(int value) {\n bitField0_ |= 0x00000010;\n fadeOutDurationSeconds_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e76970c861265301f0462a14b883f71a", "score": "0.5125405", "text": "public int getDuration();", "title": "" }, { "docid": "ae88a9c127180e0ba56eb3dcf250d89e", "score": "0.51216626", "text": "public FadeTransition fadeIn(ImageView iv, double seconds, double x, double y) {\n FadeTransition ft = new FadeTransition(Duration.millis(seconds * 1000), iv);\n pane.getChildren().add(iv);\n iv.setX(x);\n iv.setY(y);\n ft.setFromValue(0.0);\n ft.setToValue(1.0);\n return ft;\n }", "title": "" }, { "docid": "9f5750efe0dcf4f91e57376726f9fc84", "score": "0.5106566", "text": "public void reverse() {\n\t\tif (step > 0)\n\t\t\tstep = -3;\n\t\telse\n\t\t\tstep = 3;\n\n\t\t// if the bike is stopped, start it again\n\t\tif (timer.isRunning() != true)\n\t\t\ttimer.start();\n\t}", "title": "" }, { "docid": "ff119b57b07aff927e6deb468a3c9cf9", "score": "0.5102891", "text": "public void setAnimationDuration(Integer duration) {\r\n set(PROPERTY_ANIMATION_DURATION, duration);\r\n }", "title": "" }, { "docid": "be5f1e55e3222066bf9cb38168a16bb1", "score": "0.5088562", "text": "int getDuration();", "title": "" }, { "docid": "be5f1e55e3222066bf9cb38168a16bb1", "score": "0.5088562", "text": "int getDuration();", "title": "" }, { "docid": "be5f1e55e3222066bf9cb38168a16bb1", "score": "0.5088562", "text": "int getDuration();", "title": "" }, { "docid": "be5f1e55e3222066bf9cb38168a16bb1", "score": "0.5088562", "text": "int getDuration();", "title": "" }, { "docid": "b35931ab70099d54f05e5432b0e207d7", "score": "0.5049882", "text": "void setDuration(int duration);", "title": "" }, { "docid": "b170a02b889c4d39573fa3732abf4ac7", "score": "0.50389546", "text": "public Duration delay();", "title": "" }, { "docid": "9aa515262ef5c358b5cac3a465559ffe", "score": "0.5035695", "text": "public void flip() {\r\n\t\t\r\n\t\t// find the next at that is flippable (as in, able to be flipped to)\r\n\t\tint pat = at; // store previous at value\r\n\t\tat = (at+1)%mumos.length; // increment\r\n\t\twhile(!mumos[at].isFlip()) { // if it isn't flippable increment more\r\n\t\t\tat = (at+1)%mumos.length;\r\n\t\t\t\r\n\t\t\tif( at == pat) // if none of them are flippable, stay at the current\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// flip the current music generator to be the newly found next-in-line\r\n\t\tinitForPlay(pat, at);\r\n\t\tthis.lp.setCurrentMusicGenerator(mumos[at]);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0628bb139bc0f9e18c6ca74a753d8d22", "score": "0.50303566", "text": "private void makeFadeOt() {\n\t\t\tFadeTransition ft= new FadeTransition();\r\n\t\t\tft.setDuration(Duration.millis(750));\r\n\t\t\tft.setNode(rootPane);\r\n\t\t\tft.setFromValue(1);\r\n\t\t\tft.setToValue(0);\r\n\t\t\t\r\n\t\t\tft.setOnFinished((ActionEvent e) ->\r\n\t\t\t{\r\n\t\t\t\tnav_home();\r\n\t\t\t});\r\n\t\t\tft.play();\r\n\t\t}", "title": "" }, { "docid": "3ab9b321c269347cd36fe95f50dafe76", "score": "0.5029198", "text": "public Builder setFadeOutTime(float value) {\n bitField0_ |= 0x00000080;\n fadeOutTime_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "42958b9bae35916e7d788e224f4090ea", "score": "0.50279", "text": "public Builder clearFadeInDurationSeconds() {\n bitField0_ = (bitField0_ & ~0x00000008);\n fadeInDurationSeconds_ = 0;\n onChanged();\n return this;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "7d68b3328e76c1822656ff2e6846ba1a", "score": "0.0", "text": "@Override\n public void onClick(View v) {\n\n }", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69744676", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6936331", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.6624367", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6623182", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66015315", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.6594605", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.6501866", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.63844895", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.63381773", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63222265", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.6291592", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.62385184", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.6193195", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062187", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.6003824", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.5990595", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59600407", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952374", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5923557", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58988667", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58685964", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.58572376", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.58401465", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.58060104", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788508", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769439", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5763841", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.57574755", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5751961", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57508", "text": "@Override\n\tpublic void nyalakan() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415414", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740271", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.57394177", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734636", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725253", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724528", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.57231057", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57099986", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.56984305", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.5693882", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5686577", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5685193", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56787807", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56757474", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.5667569", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "6392764d7ff297c1a478fc1669944649", "score": "0.5653691", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.56503963", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.56388146", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.56369984", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
7a6938e384eccb8945cc23442ae78448
Check if out of Bound
[ { "docid": "c08a826447c48faaeeced6fdab7541f3", "score": "0.0", "text": "public static Boolean OutOfBound(double[] pos, double radius){\n double dist = Math.sqrt(pos[1]*pos[1]+pos[0]*pos[0]);\n return dist > radius;\n }", "title": "" } ]
[ { "docid": "c74d88a2441b2f0abeff85446e057b85", "score": "0.785126", "text": "public boolean outOfBounds();", "title": "" }, { "docid": "ccea0c0b1d810dff125411eb09338ee4", "score": "0.76750225", "text": "public boolean isBound() {\n return pos != -1;\n }", "title": "" }, { "docid": "efd6c9722845d880b92bf483f2a53a40", "score": "0.7639605", "text": "public boolean isBound() {\n return !isEmpty() && getLowerBound() != null && getUpperBound() != null;\n\n }", "title": "" }, { "docid": "532571e7b40fd17900d65f7a5f1e9d60", "score": "0.7533816", "text": "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fd4afe13f34f8ee4e098d594cbe12d4a", "score": "0.7528749", "text": "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.y<=-this.heighet;\n\t}", "title": "" }, { "docid": "287f2fb20cc91e45099661b75c19178e", "score": "0.7422871", "text": "@Override\n public boolean outOfBounds() {\n return false;\n }", "title": "" }, { "docid": "a49ef13599842ebf079a920d6d43c35e", "score": "0.73284906", "text": "boolean X_Out_Of_Bounds(){\n \n if (X_Position + 16 + X_Movement > 16*20 || X_Position + X_Movement < 0)\n {\n \treturn true; // can't go out of bounds\n }\n return false;\n }", "title": "" }, { "docid": "6c7b632817d874ec1e97d065add2a486", "score": "0.7271313", "text": "public void outOfBound();", "title": "" }, { "docid": "18d437e86c4a4618c99263dbd8f3aaae", "score": "0.71624446", "text": "private boolean outOfBounds(int x, int y) {\n return (x < 0 || x >= size) || (y < 0 || y >= size);\n }", "title": "" }, { "docid": "56dc36d44c87aa2102c1c40eb9429003", "score": "0.71300024", "text": "public boolean hasBound() {\n return flags.contains(HasBound);\n }", "title": "" }, { "docid": "a349bfd59e5c5c31837cd798d33d9918", "score": "0.7076798", "text": "public boolean isBound() {\n return (this.mFlags & 1) != 0;\n }", "title": "" }, { "docid": "1cecde200efe1d32324cb4246c2d72b7", "score": "0.70318526", "text": "public boolean isDegenerate() {\n return isBound() && getLowerBound().equals(getUpperBound());\n }", "title": "" }, { "docid": "0635af2a7addf9105aa93d0d77761c1b", "score": "0.70264125", "text": "public boolean isBound()\n {\n return bound;\n }", "title": "" }, { "docid": "2e943d01f5e7c3481aa98aef70c22b68", "score": "0.7005234", "text": "public boolean hasValidBounds();", "title": "" }, { "docid": "8da6b1012f99a0cb130016fab2881e63", "score": "0.69784945", "text": "public boolean isUpperBounded() {\n return upperBound != null;\n }", "title": "" }, { "docid": "4cf3acb79a9a14821202a55001bc283d", "score": "0.6946375", "text": "public boolean outOfBound(int x, int y) {\n if (x >= 0 && x <= (Chess.BOARD_SIZE_X - 1)) {\n if (y >= 0 && y <= (Chess.BOARD_SIZE_Y - 1)) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "0e8dd054038b55e93aac6228b5a0d3ab", "score": "0.69283706", "text": "public boolean checkOutOfBounds() {\n if (mY - mBitmap.getHeight() >= Panel.mHeight) {\n return true;\n }\n \n return false;\n }", "title": "" }, { "docid": "ed465dd3773a6cd78a9af140cdbba6db", "score": "0.68474644", "text": "public boolean inBounds() {\r\n if (xPosition <= boundary && yPosition <= boundary) \r\n return true;\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "0d1d6da014e01f18fd70a84b9b2eb03e", "score": "0.68163174", "text": "private void validateBounds() {\n if (lowerBound > upperBound) {\n log.warn(String\n .format(\"Given bounds are out of order (Low: %.4f, High: %.4f). Flipping them to continue.\",\n this.lowerBound, this.upperBound));\n double tmp = this.lowerBound;\n this.lowerBound = this.upperBound;\n this.upperBound = tmp;\n }\n }", "title": "" }, { "docid": "889895631797de33c10b1a0a2f1847a4", "score": "0.681237", "text": "boolean Y_Out_Of_Bounds(){\n \n if (Y_Position + 16 + Y_Movement > 16*15 || Y_Position + Y_Movement < 0)\n {\n \treturn true; // can't go out of bounds\n }\n return false;\n }", "title": "" }, { "docid": "7dbe329b5a49a318f87617239d409ee3", "score": "0.680796", "text": "private boolean outOfBounds(Vect point) {\n if(point.x() < x || point.x() > x + 2){\n return true;\n }\n if(point.y() < y || point.y() > y + 2){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "d5e5aeee07100fca0de57a169b768331", "score": "0.67522264", "text": "private boolean inBound(int row, int col){\n if (row < 0 || col < 0 || row >= this.dimension || col >= this.dimension){\n \treturn false;\n }\n return true;\n }", "title": "" }, { "docid": "598b5242d518dc4c48da3b7655db921e", "score": "0.6699774", "text": "protected boolean checkBounds()\r\n\t{\r\n\t\treturn (super.checkBounds() || \r\n\t\t\t\t(getCenterHorz() - getHeight()) < 0\r\n\t\t\t\t|| (getCenterHorz() + getHeight()) > \r\n\t\t\t\tscreen[0].length);\r\n\t}", "title": "" }, { "docid": "e76354190f4afa016b765fcc0b9ee55e", "score": "0.6677102", "text": "abstract boolean isUpperBound(ParameterBound bound, Substitution substitution);", "title": "" }, { "docid": "a14e44eb0314efe06315c477bedf3ad8", "score": "0.6660752", "text": "public boolean inBounds() {\n\t\tif(this.DISPLAY.getY() >= SIZE){\n\t\t\tthis.VALID = false;\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "760afd75146275c4a7028e0313dd26ea", "score": "0.6587078", "text": "public void checkBounds()\n\t{\n\t\tif(y <= 0 && (getDirection() == UP))\n\t\t{\n\t\t\tstop = true;\n\t\t}\n\t\tif(y >= getFrameHeight() - getHeight() && (getDirection() == DOWN))\n\t\t{\n\t\t\tstop = true;\n\t\t}\n\t\tif(x <= 0 && (getDirection() == LEFT))\n\t\t{\n\t\t\tstop = true;\n\t\t}\n\t\tif(x >= getFrameWidth() - getWidth() && (getDirection() == RIGHT))\n\t\t{\n\t\t\tstop = true;\n\t\t}\n\t}", "title": "" }, { "docid": "d8f0454a48447986308a8e7b3496f1ef", "score": "0.6565294", "text": "public boolean outOfBoundsY() { return (getPosition().y > height); }", "title": "" }, { "docid": "8f8d2be847c14797db7347db073e56fa", "score": "0.65244704", "text": "public boolean inField() {\n return !(y < 0 || x < 0 || x > SIZE - 1 || y > SIZE - 1);\n }", "title": "" }, { "docid": "6ea2b36f851c99af4a69ee53fefc653d", "score": "0.6491271", "text": "public boolean isLowerBounded() {\n return lowerBound != null;\n }", "title": "" }, { "docid": "6e4593a1e8667b2bba7143a631eaafeb", "score": "0.6341629", "text": "public boolean isEmptyDown(){\n\t\t\tfor(Point p : units){\n\t\t\t\tif (p.y>0){\n\t\t\t\tif((game.grid[p.x][p.y-1] && !this.Contains(p.x, p.y-1))){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "7fbd3cf7606557815d566fc724e28cf3", "score": "0.6339901", "text": "private boolean isInBounds(Vec2 p) {\n return (p.getX() >= 0) && (p.getX() < dim.getX()) && (p.getY() >= 0) && (p.getY() < dim.getY());\n }", "title": "" }, { "docid": "924f600c7071c20543638938af91fd70", "score": "0.6335814", "text": "public void checkBlankSpace(){\r\n\t\tif(xOffset < 0){\r\n\t\t\txOffset = 0;\r\n\t\t}\r\n\t\tif(xOffset > handler.getWorld().getWidth() * Tile.TILE_WIDTH - handler.getWidth()){\r\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILE_WIDTH - handler.getWidth();\r\n\t\t}\r\n\t\t\r\n\t\tif(yOffset < 0){\r\n\t\t\tyOffset = 0;\r\n\t\t}\r\n\t\tif(yOffset > handler.getWorld().getHeight() * Tile.TILE_HEIGHT - handler.getHeight()){\r\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILE_HEIGHT - handler.getHeight();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e4aa0ee65005c4ea8bb78d0f429f079e", "score": "0.6331632", "text": "private boolean isInBounds(int x, int y){\r\n\treturn ( (x>=0 && x<cells.length) && (y>=0 && y<cells.length));\r\n }", "title": "" }, { "docid": "4aef2968e34f770f59ad09ddb4f86b05", "score": "0.63262755", "text": "private boolean isEmptyAt(int x, int y, int width, int height) {\n if(x+width < 0 || x+width > this.bound) {\n return false;\n }\n if(y+height < 0 || y+height > this.bound) {\n return false;\n }\n\n\n ///check if position is empty or not.\n for(int local_x = 0; local_x < width; ++local_x) {\n for(int local_y = 0; local_y < height; ++local_y) {\n if(characters[x+local_x][y+local_y] != null) {\n if(characters[x+local_x][y+local_y] instanceof Water) continue;\n return false;\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "edcd4e002cd70eab7fa8c453e29a30b8", "score": "0.6317626", "text": "private Boolean isVisit(int x, int y){\n if(x < 0 || y < 0 || y >= binarized.getHeight() || x >= binarized.getWidth() || visit[x][y] == 1 || !isBlack(binarized, x, y)){\n \n return true;\n }\n return false;\n //out of bound checking\n }", "title": "" }, { "docid": "ea651ce1f1725644ddc8d61f4b11205c", "score": "0.6313346", "text": "public boolean inBounds(int sideCount) {\r\n return x >= 0 && y >= 0 && x < sideCount && y < sideCount;\r\n }", "title": "" }, { "docid": "f6d89325ac9c3d785785b62e8f50dbce", "score": "0.6308256", "text": "private static boolean isInBounds(Point aPoint) {\n return aPoint.x > 0 && aPoint.x < size && aPoint.y > 0 && aPoint.y < size;\n }", "title": "" }, { "docid": "ad03c3000c1253c931af1c9271ac91fe", "score": "0.6307112", "text": "public boolean isOutOfScreen() {\n\t\treturn x > 1 || y > 1 || x < 0 || y < 0;\n\t}", "title": "" }, { "docid": "3bf0294983a2d5e56e85d70b21d34717", "score": "0.6298419", "text": "private void check(int x, int y) {\n if (x < 0 || x >= n || y < 0 || y >= n) {\n throw new IndexOutOfBoundsException(\"site must inside the grid\");\n }\n }", "title": "" }, { "docid": "ca40ce8e416b12c861873a3df387d95f", "score": "0.6286877", "text": "boolean IsOutOfBounds(int x, int y) {\n\t\tif (x < 0 || y < 0) {\n\t\t\treturn true;\n\t\t} else if (x > MapWidth - 1 || y > MapHeight - 1) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3e095c3488d1ed59d616abe4567d7f88", "score": "0.6278565", "text": "public boolean isUnbound() {\n return pos == -1;\n }", "title": "" }, { "docid": "b9397c9be3d3247b6603e7242df06605", "score": "0.62597597", "text": "public void checkInvariant() {\n\t\tif (!(0 <= getX() && getX() < getLargeur()))\n\t\t\tContractor.defaultContractor().invariantError(\"PositionService\", \"La valeur de x doit être compris entre 0 et la largeur du terrain exclue.\");\n\n\t\t// inv: 0 <= getY() < getHauteur()\n\t\tif (!(0 <= getHauteur() && getY() < getHauteur()))\n\t\t\tContractor.defaultContractor().invariantError(\"PositionService\", \"La valeur de y doit être compris entre 0 et la longueur du terrain exclue.\");\n\t}", "title": "" }, { "docid": "c0e84572cffdaf711401ef27ff815e5d", "score": "0.6258869", "text": "@Override\n\tpublic boolean notOutOfTheMap(Position position) {\n\t\tif (position.getY() < 0 || position.getY() >= NBLINE\n\t\t\t\t|| position.getX() < 0 || position.getX() >= NBCOLUMN)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "fa9115cc93215a65d75f8f4afaa80f04", "score": "0.6221044", "text": "private static boolean inBounds(int row, int col) {\n return (row < 8 && row >= 0 && col < 8 && col >= 0);\n }", "title": "" }, { "docid": "67271c524c113f0fd3de0c8ad01c0df5", "score": "0.61913854", "text": "private static Boolean Bounded(){\n Bounds r1Bounds = GameModel.getInstance().shipToPlace.getBoundsInParent();\n Bounds r2Bounds = GameModel.getInstance().GetPlayer().getLayoutBounds();\n //Compare the edges of the ship with the edges of the board\n if(r2Bounds.contains(r1Bounds)){return true;}\n return false;\n }", "title": "" }, { "docid": "ee8e977fa233f218e6987498032cfbd8", "score": "0.6178899", "text": "public boolean checkInvariant() {\n\t\tif (length <= 0 || endPoint1 == null || endPoint2 == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5c0f17414f29040606be91406ce7c1d3", "score": "0.61702305", "text": "private static void throwBounds() {\n throw new IndexOutOfBoundsException(\"attempt to write past the end\");\n }", "title": "" }, { "docid": "b377ef29bd10fdc7a5f63efcefbd7696", "score": "0.61368686", "text": "private boolean inBounds(Obstacle obj) {\n boolean horiz = (bounds.x <= obj.getX() && obj.getX() <= bounds.x+bounds.width);\n boolean vert = (bounds.y <= obj.getY() && obj.getY() <= bounds.y+bounds.height);\n return horiz && vert;\n }", "title": "" }, { "docid": "3672c753f2ec2aaae1579d5f3846b62b", "score": "0.6124482", "text": "public static boolean checkOverlapNotEffective() {\n\t\treturn (!MRectangle.isOverlapPermitted() || MRectangle.getOverlapRate() <= 0);\n\t}", "title": "" }, { "docid": "551cda8c22a258134c3a8e5051d13197", "score": "0.61195886", "text": "private boolean isFull()\n {\n return top == size-1;\n }", "title": "" }, { "docid": "4f17cc832ab4e57d0f14827efb714b0d", "score": "0.610634", "text": "public boolean inRange() {\n return (curTarget != null && curTarget.getWidth() >= MIN_BOX_WIDTH);\n }", "title": "" }, { "docid": "35c096a46f50f3475ffeb415f51f0cba", "score": "0.61062765", "text": "@Override\n public void outOfBounds(GamePanel GPanel) {\n //if else for checking if PlayerObject is out of the screen\n if (getX() < 0) {\n setX(0);\n }//end if PlayerObject too far left\n else if (getX() > GPanel.getWidth() - getWidth()) {\n setX(GPanel.getWidth() - getWidth());\n }//end if too far right\n\n if (getY() < 0) {\n setY(0);\n }//end if too far up\n else if (getY() > GPanel.getHeight() - getHeight()) {\n setY(GPanel.getHeight() - getHeight());\n }//end if too far down\n }", "title": "" }, { "docid": "0e7cff17195b7c50d1e397796c414120", "score": "0.6104045", "text": "@Override\n public boolean isOutOfBounds( Coordinate v )\n {\n double X = v.getWorldC1();\n double Y = v.getWorldC2();\n\n if( X <= 0 && getXScale() == AxisScale.LOG )\n return true;\n if( Y <= 0 && getYScale() == AxisScale.LOG )\n return true;\n return false;\n }", "title": "" }, { "docid": "134df88c87b86bcac6adb2f3f4baa596", "score": "0.6098714", "text": "private void boundsCheck(long f) throws InvalidDatatypeFacetException {\n boolean inUpperBound = false;\n boolean inLowerBound = false;\n\n if ( isMaxInclusiveDefined ) {\n inUpperBound = ( f <= fMaxInclusive );\n } else if ( isMaxExclusiveDefined ) {\n inUpperBound = ( f < fMaxExclusive );\n }\n\n if ( isMinInclusiveDefined ) {\n inLowerBound = ( f >= fMinInclusive );\n } else if ( isMinExclusiveDefined ) {\n inLowerBound = ( f > fMinExclusive );\n }\n\n if ( inUpperBound == false || inLowerBound == false ) { // within bounds ?\n throw new InvalidDatatypeFacetException(\n getErrorString(DatatypeMessageProvider.OutOfBounds,\n DatatypeMessageProvider.MSG_NONE,\n new Object [] { new Long(f),\"\",\"\",\"\",\"\"}));//REVISIT\n }\n }", "title": "" }, { "docid": "970a2cbbae6a387869242ced5c7a3c2b", "score": "0.608631", "text": "@Override\n public boolean empty() {\n return this.top < 0;\n }", "title": "" }, { "docid": "174f341f65ed3e36314e3f526f480001", "score": "0.6084516", "text": "@Override\n protected boolean isInvalidEmptyPosition(int armThickness, int row, int col) {\n return row < 0\n || col < 0\n || row >= this.getBoardLength()\n || col > row\n || !isInsideBoardPossibilities(armThickness, row, col);\n }", "title": "" }, { "docid": "09e53e9c0fe818ac8b873dfdae167c81", "score": "0.607738", "text": "public boolean hasCustomBounds();", "title": "" }, { "docid": "c819f0b7b00044f184eb0b3a75277557", "score": "0.6076776", "text": "private void checkTrailBounds() {\n \tif (mX <= Panel.leftBound || (mX + mBitmap.getWidth() >= Panel.rightBound)) {\n mSpeedX = -mSpeedX;\n }\n }", "title": "" }, { "docid": "db640816b221ca96f843e7a13258105b", "score": "0.60706794", "text": "private boolean isValidAt(int x, int y, int width, int height) {\n if(x-1 >= 0 && !isEmptyAt(x-1, y, 1, height)) {\n return false;\n }\n\n ///top\n if(y-1 >= 0 && !isEmptyAt(x, y-1, width, 1)) {\n return false;\n }\n\n ///right\n if(x+width < bound && !isEmptyAt(x+width, y, 1, height)) {\n return false;\n }\n\n ///bot\n if(y+height < bound && !isEmptyAt(x, y+height, width, 1)) {\n return false;\n }\n\n //things to do for corner hinting...\n //check if we are in bounds...\n //true: if we are, check if the position is empty.\n //otherwise: continue with the next corner\n //...\n //if we arent in bounds at every pos then we cant collide with anything and thus we have a valid pos!\n\n ///top-left\n if(x-1 >= 0 && y-1 >= 0 && !isEmptyAt(x-1, y-1, 1, 1)) {\n return false;\n }\n\n ///bottom-left\n if(x-1 >= 0 && y+height < bound && !isEmptyAt(x-1, y+height, 1, 1)) {\n return false;\n }\n\n ///top-right\n if(x+width < bound && y-1 >= 0 && !isEmptyAt(x+width, y-1, 1, 1)) {\n return false;\n }\n\n\n if(x+width < bound && y+height < bound && !isEmptyAt(x+width, y+height, 1, 1)) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "ee80e74296ca522da8b31877712018aa", "score": "0.60686547", "text": "public boolean isEmptyUp(){\n\t\tfor(Point p : units){\n\t\t\tif(p.y==0 || (game.grid[p.x][p.y+1] && !this.Contains(p.x, p.y+1))){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c865b6bbb7351f42022ed2f819dbb100", "score": "0.60612637", "text": "public boolean checkIfShipOutOfBoard() {\n\t\tboolean ok = true;\n\t\tint dim = StartingPanel.getUserSelectedSize();\n\t\tfor(Ship ship: allShips) {\n\t\t\tif (ship.getCoordinatesList().get(ship.getShiplength()-1).getX() > dim -1 || ship.getCoordinatesList().get(ship.getShiplength()-1).getY() > dim -1) {\n\t\t\t\tok = false;\n\t\t\t}\n\t\t}\n\t\treturn ok;\n\t}", "title": "" }, { "docid": "c1bd8163392b122a593e0b0bb703e4ef", "score": "0.6057828", "text": "public void checkEdges() {\n\t\tif ((location.x > parent.width) || (location.x < 0)) {\n\t\t\tvelocity.x *= -1;\n\t\t}\n\t\tif ((location.y > parent.height) || (location.y < 0)) {\n\t\t\tvelocity.y *= -1;\n\t\t}\n\t}", "title": "" }, { "docid": "f764162baa8d614dd017259a6f44829a", "score": "0.6055411", "text": "public boolean isBound() {\r\n\treturn fieldBound;\r\n}", "title": "" }, { "docid": "fb6cafc6428b21aa7bf845a5ff8412e9", "score": "0.60506845", "text": "public boolean isDeadEnd() {\n int count = getSouth().isStreet() ? 1 : 0;\n count += getWest().isStreet() ? 1 : 0;\n count += getEast().isStreet() ? 1 : 0;\n count += getNorth().isStreet() ? 1 : 0;\n return count == 1;\n }", "title": "" }, { "docid": "3867177037b820951e58507f6be8559c", "score": "0.60451406", "text": "public boolean inBound(int x, int y) {\n\t\treturn (x>=0 && y>=0 && \n\t\t\t\tx<DIMENSION && y<DIMENSION);\n\t}", "title": "" }, { "docid": "a7b9d2f2ef2c71c9a5d12a822ba33bd7", "score": "0.6043157", "text": "boolean hasNormalRoomThreshhold();", "title": "" }, { "docid": "0d604d22302985e74453e6e1d6fb7ff5", "score": "0.6038643", "text": "private void checkReachedBottom()\n {\n if( getY() >= getWorld().getHeight() - 1 )\n {\n getWorld().removeObject(this);\n }\n }", "title": "" }, { "docid": "40516530b96a14ce1eeb60854c8c5821", "score": "0.60366017", "text": "public boolean isNaNRange() { return (Double.isNaN(this.lower) && Double.isNaN(this.upper)); }", "title": "" }, { "docid": "85898349e216cf6fdf49304d209cfa3b", "score": "0.60286266", "text": "boolean isPlannerBufferEmpty() throws GkException;", "title": "" }, { "docid": "ed553f64878590094454e77650897b64", "score": "0.60282683", "text": "private static boolean checkInBounds(int i, int j, int rows, int columns) {\n return (i >= 0 && i < rows && j >= 0 && j < columns) ? true : false;\n }", "title": "" }, { "docid": "81cc9b60431b8c99c6c977ebd358deba", "score": "0.6022415", "text": "public boolean isInbound(Coordinate bound) {\n\t\treturn x >=0 && y >= 0 && x <= bound.getX() && y <= bound.getY();\n\t}", "title": "" }, { "docid": "cc62219e3420c03158b5bd2aa2ca663c", "score": "0.6010541", "text": "private boolean checkBottomBounds() {\r\n\r\n return Mouse.getX()/MainE.getScale() >= Palette.xOffset*16 && \n Mouse.getY()/MainE.getScale() >= Palette.yOffset*16 &&\n Mouse.getY()/MainE.getScale() < (Palette.yOffset+HEIGHT)*16\r\n && currTsetBot != -1;\r\n\n }", "title": "" }, { "docid": "2a87af1ac0f89bea4c8f1d6ed0a85bf0", "score": "0.5986073", "text": "private void checkBounds(int row, int col) {\n if (row < 1 || row > size || col < 1 || col > size)\n throw new IllegalArgumentException(\"row and col must be in [1, \" + size + \"]\");\n }", "title": "" }, { "docid": "4dbd1c5a8934e72439367f6996c99753", "score": "0.5982066", "text": "public boolean checkBounds(int x, int y){\r\n\t\treturn (x>=0&&x<this.width&&y>=0&&y<this.height);\r\n\t}", "title": "" }, { "docid": "13fb10b0836b7f69909a06c24c2ecf75", "score": "0.59767663", "text": "private boolean checkOutOfBounds(Direction dir, int row, int col) {\r\n if (dir == Direction.LEFT) {\r\n return col < 0;\r\n } else if (dir == Direction.RIGHT) {\r\n return col > COLS - 1;\r\n } else if (dir == Direction.UP) {\r\n return row < 0;\r\n } else if (dir == Direction.DOWN) {\r\n return row > ROWS - 1;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "f8232164a64d61431f435646ce74d3e2", "score": "0.5973803", "text": "private boolean isBeyondBoundaries(Calendar startT, Calendar endT) {\n\t return isBeyondStartBoundaries(startT) || isBeyondEndBoundaries(endT);\n\t}", "title": "" }, { "docid": "dca5d17417a65588ccab76a611ee2453", "score": "0.5960532", "text": "public boolean hasNonDefaultBoundaries() {\n return hasProgramIndicatorDimension() && getProgramIndicator().hasNonDefaultBoundaries();\n }", "title": "" }, { "docid": "5e5b532f6be5a90f3f6eb52d6cce1a34", "score": "0.59590065", "text": "public boolean checkBounds(IMapPoint point){\r\n\t\treturn checkBounds(point.getX(),point.getY());\r\n\t}", "title": "" }, { "docid": "afbf73a1496877c3d3a1e841454180db", "score": "0.59469277", "text": "public boolean isFull() {\n return (top == maxSize - 1);\n }", "title": "" }, { "docid": "62ffde61b920c164ae53989a50d84cc8", "score": "0.5936018", "text": "public boolean isFull()\n {\n if(top>=(size-1))\n return true;\n return false;\n }", "title": "" }, { "docid": "10f665378744aa5dcf2ee0d9169ce4f0", "score": "0.5935967", "text": "@Override\n\tpublic boolean isFull(int row, int col) {\n\t\tif(row >= myGrid.length || col >= myGrid.length || row < 0 || col < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\n\t\t\t\t\tString.format(\"(%d,%d) not in bounds\", row,col));\n\t\t}\n\t\tint cell = (row * myGrid.length) + col; \n\t\treturn myFinder.connected(cell, VTOP); \n\t\t// TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "d16e9e5ba74d7e8e1602a321e707e8fa", "score": "0.5934216", "text": "public boolean isInBoundsX(float x) {\n if ((x < 0) || ((x + getWidth()) > getParentWorld().getWidth())) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "5721a963eb252255d8b8dd5757ae61a7", "score": "0.5930658", "text": "public boolean isInBounds(int num) {\n\t\tif(num < 8 && num >=0) return true;\n\t\telse return false;\n\t}", "title": "" }, { "docid": "004d677a2249d29363c7220d037fa43f", "score": "0.5929398", "text": "public boolean IsFull() {\n if ((size - 1) == top) { \n //when the size-1(last index) is same with top index\n return true; //return true\n } else { //when not\n return false; //return false\n }\n }", "title": "" }, { "docid": "629023ed79fa0570a0dfbabb61450a87", "score": "0.59209764", "text": "boolean isInBounds( int x, int y );", "title": "" }, { "docid": "9e4c99f818947ea9b47f7d87eda593ea", "score": "0.591887", "text": "public boolean isEligible() {\n\t\tif (this.getOrigin().getHeight() > this.getHead().getHeight() && this.getOrigin().getExcess() > Graph.ZERO) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "29f963eadaad728df308337790dd332e", "score": "0.5917291", "text": "public abstract boolean isUpperBound(Type argType, Substitution subst);", "title": "" }, { "docid": "c37403c8442fe3de8b67dcf255efc4e2", "score": "0.5914471", "text": "boolean isPlannerBufferSpaceCheck();", "title": "" }, { "docid": "5a2289ebb6741b3cea743ee1bddbc08b", "score": "0.5901026", "text": "private void checkDepthInBound(int d) {\n if (d < 0 || d > MAX_DEPTH) {\n throw new IndexOutOfBoundsException(\"The depth is out of bound.\");\n }\n }", "title": "" }, { "docid": "9e856ccc2feff2784615d1cefcaf16c6", "score": "0.58999085", "text": "public void boundary(){\n \r\n if(y > sh - h){\r\n down = -1;\r\n }\r\n if(y < 0){\r\n down = 1;\r\n }\r\n if(x > sw - w){\r\n right = -1;\r\n }\r\n if(x < 0){\r\n right = 1;\r\n }\r\n }", "title": "" }, { "docid": "175927f581209bbeb65824afa260e446", "score": "0.5894004", "text": "public final boolean dirBound() {\n return dir >= 0;\n }", "title": "" }, { "docid": "0d14821eaac50c24ad82a17ea7fa0ba1", "score": "0.5891076", "text": "public boolean isFull() {\n return (top == pStack.length -1);\n }", "title": "" }, { "docid": "75327b6e7ef3fea2f744a576baa56f3f", "score": "0.5883405", "text": "private boolean isObstacleAhead() {\n\t\treturn (getReceptiveFieldCellValue(marioEgoRow, marioEgoCol + 1) != 0 ||\n\t\t\t\tgetReceptiveFieldCellValue(marioEgoRow - 1, marioEgoCol + 1) != 0);// &&\n\t\t\t\t//getReceptiveFieldCellValue(marioEgoRow - 1, marioEgoCol + 1) != -24) &&\n\t\t\t\t//(getReceptiveFieldCellValue(marioEgoRow + 1, marioEgoCol + 1) != 0 &&\n\t\t\t\t//getReceptiveFieldCellValue(marioEgoRow + 1, marioEgoCol + 1) != -24);\n\t}", "title": "" }, { "docid": "b3105ece1de11c201cf7a50a9080b957", "score": "0.5883274", "text": "private void checkRep() {\n if (DEBUG) {\n assert (this.x != null) : \"X coordinate cannot be null\";\n assert (this.y != null) : \"Y coordinate cannot be null\";\n assert (this.x >= 0) : \"X coordinate cannot be negative\";\n assert (this.y >= 0) : \"Y coordinate cannot be negative\";\n }\n }", "title": "" }, { "docid": "4f8c8b28a8928123293b2a621a8dc37c", "score": "0.5882921", "text": "public boolean checkPos() {\n return (num >= 0);\n }", "title": "" }, { "docid": "fa41cccb877a49a94e03d0b4a1ab57e1", "score": "0.5882668", "text": "public boolean bottomClosed() {\n if (dimensions() > 1) {\n return leftClosed[1];\n }\n throw new IllegalStateException(\"The dimension idx required (\" + 1 + \") exceeds the box dimension (\" + dimensions() + \")\");\n }", "title": "" }, { "docid": "7322df34409ecee842e5137c2ff29dbc", "score": "0.5881933", "text": "private boolean isFull() {\n\t\treturn currIdx >= size;\n\t}", "title": "" }, { "docid": "632b87869815fd12cb5e815279bb8312", "score": "0.588104", "text": "public boolean checkBounds(int x, int y) {\n if ((x < 0) || (x >= 8)) {\n return false;\n }\n if ((y < 0) || (y >= 8)) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "3bf65feb8557b88340d2dc546f3727be", "score": "0.58772665", "text": "public boolean isEmptyLeft(){\n\t\t\tfor(Point p : units){\n\t\t\t\tif(p.x==0 || (game.grid[p.x-1][p.y] && !this.Contains(p.x-1, p.y) )){\n\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "2100207f625b8b3e95c33524cb1ac6d8", "score": "0.58708644", "text": "@Test\n\tvoid inBoundsTest(){\n\t\tBoard CuT = new Board();\n\n\t\tassertTrue(CuT.inBounds(0, 5));\n\n\t\tassertFalse(CuT.inBounds(9,10));\n\t}", "title": "" }, { "docid": "a9fbb1fa1e2b3c5c184b01157e1a3a58", "score": "0.58642596", "text": "void checkCompatibleUpperBounds(UndetVar uv, InferenceContext inferenceContext) {\n List<Type> hibounds =\n Type.filter(uv.getBounds(InferenceBound.UPPER), new BoundFilter(inferenceContext));\n Type hb = null;\n if (hibounds.isEmpty())\n hb = syms.objectType;\n else if (hibounds.tail.isEmpty())\n hb = hibounds.head;\n else\n hb = types.glb(hibounds);\n if (hb == null || hb.isErroneous())\n reportBoundError(uv, BoundErrorKind.BAD_UPPER);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "469462a5f8269c3a381cbd2805380979", "score": "0.0", "text": "@Override\n public void invalidate() {\n }", "title": "" } ]
[ { "docid": "9208773f8d675a45ef2786d0cb668514", "score": "0.654538", "text": "@Override\n\tpublic void addiion() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6490277", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "49f82de84791f2d90dd9ea5cce118bf5", "score": "0.6314085", "text": "@Override\r\n\tpublic void ader() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a4dcc093d4ff3452de6ac444aececdf1", "score": "0.61316955", "text": "public void ausgabeZugFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9144a32a2cd5a72f1d1380aa1f1d5f09", "score": "0.6092728", "text": "public void mo5774g() {\n }", "title": "" }, { "docid": "19def8ee9a9cacfd168fa29cb08dcee2", "score": "0.6080876", "text": "@Override\n\tpublic void vaccination()\n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6071615", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "99bd004e44dd7019c8ef01a44a9b3eab", "score": "0.6067535", "text": "@Override\r\n\tpublic void breah() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "db1df23a1dd6753a6267bb04b332bf85", "score": "0.6054585", "text": "public void mo12026a() {\n }", "title": "" }, { "docid": "e46610ee0bd6f029738af766fdc21054", "score": "0.59955573", "text": "@Override\r\n\tpublic void vender() {\n\r\n\t}", "title": "" }, { "docid": "d0738cb6f0934e8c2706f8cceaa57916", "score": "0.5969007", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "15d6b98b279429b150a682bd6349a355", "score": "0.59551615", "text": "@Override\n\tpublic void fertilise() {\n\t\t\n\t}", "title": "" }, { "docid": "cce0c669162940d6a1e5e611c61410b3", "score": "0.59530795", "text": "@Override\r\n\tpublic void getDirect() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8c3354ae13a827b8d836df56c4c510d8", "score": "0.59508646", "text": "@Override\n protected void init() {\n\n\n }", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b9e40f8e651069ba40a35ef1db458ce9", "score": "0.59202784", "text": "@Override\r\n\tpublic void tyres() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5901697", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d9f4634054e808deccea8846817de31", "score": "0.588331", "text": "@Override\r\n\tpublic void vola() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d0b7e3f5544447dc12bf9d1bad50a34b", "score": "0.5864994", "text": "public void mo40391a() {\n }", "title": "" }, { "docid": "ff6eb8b61c178f23b971412958c256c8", "score": "0.58641464", "text": "@Override\n\tpublic void ate() {\n\t\t\n\t}", "title": "" }, { "docid": "c64411f2d7b4359b656294e598122466", "score": "0.58560646", "text": "public void mo1294d() {\n }", "title": "" }, { "docid": "d29a027cc93fdf42445fadb149d49da1", "score": "0.5855024", "text": "public void mo1184a() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.5849603", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5842969", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "d48ac35465c27e31c1f21be54513f8f9", "score": "0.58330834", "text": "@Override\r\n\tpublic void pirntA() {\n\r\n\t}", "title": "" }, { "docid": "ad7fe50be28bd3c3d7952d71f935957c", "score": "0.5829554", "text": "@Override\n\t\t\tpublic void work() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.57981986", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "53519f34ca6dc9b2249e5bf2a0182992", "score": "0.5762815", "text": "@Override\n\tpublic void Avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d92a1f963aafb73b8192e677b33d128f", "score": "0.57472074", "text": "@Override\n\tpublic void postConstruct() {\n\n\t}", "title": "" }, { "docid": "e3fcb762f77cfc9168a1bc0d865ded42", "score": "0.574678", "text": "@Override\n\tprotected void crier() {\n\t\t\n\t}", "title": "" }, { "docid": "770cd968ebdff1a71e678a800372d8c6", "score": "0.57460904", "text": "@Override\r\n\tpublic void afisareDatepers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "260bb3e9c481a3e03724071c87239711", "score": "0.574225", "text": "private void m11272q() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57069", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "3d6cdc1afb7138b4083b3a4a65f01db1", "score": "0.5702478", "text": "public void mo10296b() {\n }", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5683637", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "cc07b6e925fefd34942bfb2fd21e818a", "score": "0.56719893", "text": "public void ausgabeFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "f5766311eecc43fe076ad8e87f995b64", "score": "0.56654924", "text": "@Override\r\n\tvoid erstelleGebäude() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9b8a44f27329437a5b3f89427b894c91", "score": "0.56609863", "text": "public void mo36058a() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "3a2534d5fb04e020e5849904bbe4720a", "score": "0.56515974", "text": "@Override\r\n\tprotected void geJiage() {\n\t\tsuper.geJiage();\r\n\t}", "title": "" }, { "docid": "02e1bc278c2b2caf23edb429d02b85c0", "score": "0.56482685", "text": "@Override\n\tprotected void initialise() {\n\t\n }", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "674d6b47736013d84190eed15130aad6", "score": "0.5641662", "text": "@Override\n\tpublic void obtenerPrecalculados() {\n\t\t\n\t}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "0ba831513140db25039c80559d16603f", "score": "0.5636391", "text": "@Override\n \tpublic void process_6() {\n \n \t}", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "eb2ec3c736f6af0e79bde71492b6d2dd", "score": "0.56177896", "text": "@Override\n public int arność() {\n return 2;\n }", "title": "" }, { "docid": "870d28e8c0326c2e585508a88499e108", "score": "0.5607548", "text": "private void init() {\n\t\t\t\t\n\t\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "d69d82cd185340d978c1a70fb66c01db", "score": "0.560443", "text": "public void mo5773f() {\n }", "title": "" }, { "docid": "ccba64a54b47095e22d528bff878aff1", "score": "0.5600534", "text": "@Override\r\n public String toString()\r\n {\n return null;\r\n }", "title": "" }, { "docid": "c1e6f049bd0a6f8cdd055f88f3b45eaa", "score": "0.5596128", "text": "public void mo80311c() {\n }", "title": "" }, { "docid": "bc4c805ce86377a96c35c50ef04ab983", "score": "0.55958176", "text": "@Override\n\tprotected void initAfterData() {\n\t}", "title": "" }, { "docid": "0d47d46f06beb83b10147b5efbda9e6b", "score": "0.55933857", "text": "@Override\r\n\tpublic void see() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5592467", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "822226d86d7514db3081754cf8a8d3b3", "score": "0.55916166", "text": "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "fb9a873c01eb354c85aac7a220fbaac2", "score": "0.5588414", "text": "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.55856144", "text": "@Override\n protected void initialize() {\n\n }", "title": "" } ]
dbb8ccdf6bd9170b0a47b90ca642fa1e
Test of setNmarcos method, of class Colmenas.
[ { "docid": "b65e1d63ed665455bc1c55ce1518ba47", "score": "0.8137381", "text": "@Test\r\n public void testSetNmarcos() {\r\n System.out.println(\"setNmarcos\");\r\n int nmarcos = 0;\r\n Colmenas instance = new Colmenas();\r\n instance.setNmarcos(nmarcos);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" } ]
[ { "docid": "99a0b2d2a18a820776c30ad0caca4d8f", "score": "0.7338399", "text": "@Test\r\n public void testGetNmarcos() {\r\n System.out.println(\"getNmarcos\");\r\n Colmenas instance = new Colmenas();\r\n int expResult = 0;\r\n int result = instance.getNmarcos();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "212aed01ade64d16494aae64d2df409f", "score": "0.6695354", "text": "@Test\r\n public void testSetNpisos() {\r\n System.out.println(\"setNpisos\");\r\n int npisos = 0;\r\n Colmenas instance = new Colmenas();\r\n instance.setNpisos(npisos);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "e8ea292b792614ce812ff022a2ecba36", "score": "0.6076039", "text": "@Test\r\n public void testSetNalza() {\r\n System.out.println(\"setNalza\");\r\n int nalza = 0;\r\n Colmenas instance = new Colmenas();\r\n instance.setNalza(nalza);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "ce7357a1ba34fdce0c6023004a442867", "score": "0.59047675", "text": "@Test\r\n public void testGetNpisos() {\r\n System.out.println(\"getNpisos\");\r\n Colmenas instance = new Colmenas();\r\n int expResult = 0;\r\n int result = instance.getNpisos();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "5b54b38f5f9f45a0195625b3523a4c5b", "score": "0.57171756", "text": "@Test\n\tpublic void testsThatAMatCanBeSet() {\n\t\tcorridor.setMat(0.1 + corridor.getLength());\n\t\tassertTrue(\"After setting a long enough mat the corridor should have a mat.\", corridor.getMat());\n\t}", "title": "" }, { "docid": "ae93609e4fa02ad978fc506d1083c3a0", "score": "0.5559901", "text": "@Test\n public void testSetColunas() {\n System.out.println(\"setColunas\");\n String[] nomes = null;\n ModeloTabela instance = null;\n instance.setColunas(nomes);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "0c57e6aac5447f437125d7683154d27a", "score": "0.5472507", "text": "public void actualizarCentroide(ArrayList centroide,int numero){\n int n1=0,n2=0,n3=0,n4=0;\n int counter =0,counter2=0;\n for(int i = 0; i<centroide.size(); i++){\n int val=(int) centroide.get(i);\n if(counter==0){\n n1=n1+val;\n counter++;\n }else if(counter==1){\n n2=n2+val;\n counter++;\n }else if(counter==2){\n n3=n3+val;\n counter++;\n }else if(counter==3){\n n4=n4+val;\n counter=0;\n counter2++;\n }\n }\n double val1=n1/counter2;\n double val2=n2/counter2;\n double val3=n3/counter2;\n double val4=n4/counter2;\n //Asignar este valor al nuevo centroide\n centroides[numero][0]=val1;\n centroides[numero][1]=val2;\n centroides[numero][2]=val3;\n centroides[numero][3]=val4; \n }", "title": "" }, { "docid": "14527ff9ed4dc8396ed454cce2c289a9", "score": "0.5403732", "text": "@Test\r\n public void testSetIdcolmena() {\r\n System.out.println(\"setIdcolmena\");\r\n int idcolmena = 0;\r\n Colmenas instance = new Colmenas();\r\n instance.setIdcolmena(idcolmena);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "1e13a009cba593e769f1ef5b43fc0d4d", "score": "0.53954947", "text": "@Test\r\n public void testSelecionarMecanismo() {\r\n System.out.println(\"selecionarMecanismo\");\r\n int indice = 0;\r\n CentroExposicoes ce = new CentroExposicoes();\r\n AtribuirCandidaturaController instance = new AtribuirCandidaturaController(ce);\r\n instance.selecionarMecanismo(indice);\r\n }", "title": "" }, { "docid": "2bef52a1c6afe8f012a504dce79f8694", "score": "0.5392942", "text": "@Test\n public void testSetNumeroContribuinte() {\n System.out.println(\"setNumeroContribuinte\");\n int i = 999999999;\n Senha instance = new Senha();\n instance.setNumeroContribuinte(i);\n int expResult = i;\n int result = instance.getNumeroContribuinte();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "8c80badbdfaa76a0fa077ffbde6d5ffd", "score": "0.536784", "text": "@Test\r\n public void testSetIdreina() throws Exception {\r\n System.out.println(\"setIdreina\");\r\n int idreina = 0;\r\n Colmenas instance = new Colmenas();\r\n instance.setIdreina(idreina);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "d1e36e2fde9b223e745f944eefa3f2b6", "score": "0.5328136", "text": "@Test\n public void testBuscarDispositivos3Coincidencia() {\n \n String mascaraSubRed = \"236.\";\n instance.insertar(dispositivo1);\n instance.insertar(dispositivo2);\n instance.insertar(dispositivo3);\n instance.insertar(dispositivo4);\n instance.insertar(dispositivo5);\n instance.insertar(dispositivo6);\n instance.insertar(dispositivo7);\n instance.insertar(dispositivo8);\n \n int expResult = 3;\n int result = instance.buscarDispositivos(mascaraSubRed).size();\n\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "8cffb5a98e2e6f463510b67a26b53402", "score": "0.5306442", "text": "@Test\r\n public void testSetReinas() {\r\n System.out.println(\"setReinas\");\r\n Reinas reinas = null;\r\n Colmenas instance = new Colmenas();\r\n instance.setReinas(reinas);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "a3db3f5cbc803a865a3bbf79358944c9", "score": "0.5292351", "text": "public Coche(int nCaballos, String direccion, int marcha, String matricula) {\n\t\tthis.nCaballos = nCaballos;\n\t\tthis.direccion = direccion;\n\t\tthis.marcha = marcha;\n\t\tthis.matricula = matricula;\n\t}", "title": "" }, { "docid": "f854bc749bcd2505590004b4e9c55b78", "score": "0.5271089", "text": "@Test\r\n public void testSetPionsM() {\r\n System.out.println(\"setPionsM\");\r\n PionM[] sesPions = null;\r\n JoueurM instance = null;\r\n instance.setPionsM(sesPions);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "7c77a86de67baa9d87a1a32c64ac6108", "score": "0.52699184", "text": "@Test\n\tpublic void testMultiplicacion() {\n\t\tassertEquals(6, aritmetica.multiplicacion(2, 3), 0);\n\t}", "title": "" }, { "docid": "8d5c9071162539a52c21b489961d2f1c", "score": "0.523949", "text": "public void setMarcaNaPosicao (Marca mrc, int lin, int col) throws Exception\n {\n \tif (lin > 2 || lin < 0)\n \t\tthrow new Exception(\"Linha invalida\");\n \t\n \tif (col > 2 || col < 0)\n \t\tthrow new Exception(\"Coluna invalida\");\n \t\n \tif (this.haMarcaNaPosicao(lin, col))\n \t\tthrow new Exception(\"Posicao ja preenchida\");\n \tthis.matriz[lin][col] = mrc;\n \t\n }", "title": "" }, { "docid": "0bdb9c0a025bf0d05908d37ae271bd1f", "score": "0.5188446", "text": "@Test\r\n public void testGetNalza() {\r\n System.out.println(\"getNalza\");\r\n Colmenas instance = new Colmenas();\r\n int expResult = 0;\r\n int result = instance.getNalza();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "c9eb8665ee8bae266b0e517f5fbbce20", "score": "0.5186078", "text": "public void setNodosMinimos (int nuevaCantidadNodos) {\r\n\t\t\r\n\t\tnodosMinimosApertura = nuevaCantidadNodos;\r\n\t}", "title": "" }, { "docid": "ef1e64ff3c7e6a85be2081841a6b1797", "score": "0.51586443", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"CASO TEST MOSTRAR ALUMNO\\n\");\n\t\t\n\t\tAlumno alumno = new Alumno(\"Enrique\", \"Miranda\", \"Riquero\");\n\t\t\n\t\talumno.mostrarAlumno();\n\n\t\t// CASO TEST CREAR LISTA ALUMNOS Y MOSTRAR 1 a 1 LA COLA\n\t\tSystem.out.println(\"CASO TEST CREAR LISTA ALUMNOS Y MOSTRAR 1 a 1 LA COLA\\n\");\n\t\t\n\t\tColaErasmus colaAlumnos = new ColaErasmus();\n\n\t\tString[][] casosAlumnos = { { \"aitor\", \"lepe\", \"oyaga\" }, { \"victor\", \"santos\", \"algide\" },\n\t\t\t\t{ \"david\", \"mejide\", \"robles\" } };\n\n\t\tfor (String[] casoAlumno : casosAlumnos) {\n\t\t\talumno = new Alumno(casoAlumno[0], casoAlumno[1], casoAlumno[2]);\n\t\t\tcolaAlumnos.anyadirAlumno(alumno);\n\t\t}\n\t\t\n\t\t// MOSTRAMOS AHORA 1 a 1 LOS ALUMNOS INTRODUCIDOS\n\t\t\n\t\tfor (int i = 0; i < colaAlumnos.tamanyoCola(); i++){\n\t\t\tcolaAlumnos.mostrarPosicionColaIndex(i);\n\t\t}\n\t\t\n\t\t// CASO TEST MOSTRAR COLA\n\t\tSystem.out.println(\"CASO TEST MOSTRAR COLA\\n\");\n\t\t\n\t\tcolaAlumnos.mostrarCola();\n\t\t\n\t\t// CASO TEST MOSTRAR TAMAŅO COLA\n\t\tSystem.out.println(\"CASO TEST MOSTRAR TAMAŅO COLA\\n\");\n\t\t\n\t\tcolaAlumnos.mostrarTamanyoCola();\n\t\t\n\t\t// CASO TEST ADELANTAR ALUMNO EN LA COLA\n\t\tSystem.out.println(\"CASO TEST ADELANTAR ALUMNO EN LA COLA\\n\");\n\t\t\n\t\tcolaAlumnos.adelantarAlumno(2, 0);\n\t\tcolaAlumnos.mostrarCola();\n\t\t\n\t\tSystem.out.println(\"Probemos ahora buscando un rango fuera de la cola.\\n\");\n\t\tcolaAlumnos.adelantarAlumno(5, 1);\n\t\tcolaAlumnos.adelantarAlumno(2, 4);\n\t\tcolaAlumnos.adelantarAlumno(-4, -5);\n\t\t\n\t\t// CASO TEST ELIMINAR ALUMNO DE LA COLA POR POSICION\n\t\tSystem.out.println(\"\\nCASO TEST ELIMINAR ALUMNO DE LA COLA\\n\");\n\t\t\n\t\tcolaAlumnos.eliminarAlumnoPosicion(1);\n\t\tcolaAlumnos.mostrarCola();\n\t\t\n\t\t// CASO TEST MOSTRAR COLA INVERSA\n\t\tSystem.out.println(\"CASO TEST MOSTRAR COLA INVERSA\\n\");\n\t\t\t\t\n\t\tcolaAlumnos.mostrarColaInversa();\n\t\t\n\t\t// CASO TEST LIMPIAR COLA\n\t\tSystem.out.println(\"CASO TEST LIMPIAR COLA\\n\");\n\t\t\n\t\tcolaAlumnos.limpiarCola();\n\t\t\n\t\tSystem.out.println(\"Comprobamos ahora si la cola esta vacia ejecutando de nuevo mostrarCola.\\n\");\n\t\tcolaAlumnos.mostrarCola();\n\t\t\n\t\t/*// CASO TEST ELIMINAR ALUMNO DE LA COLA POR ALUMNO\n\t\tSystem.out.println(\"CASO TEST ELIMINAR ALUMNO DE LA COLA POR ALUMNO\\n\");\n\t\t\n\t\talumno = new Alumno(\"Enrique\", \"Miranda\", \"Riquero\");\n\t\t\n\t\tcolaAlumnos.anyadirAlumno(alumno);\n\t\tcolaAlumnos.mostrarCola();\n\t\t\n\t\tSystem.out.println(\"-----------------------------------\\n\");\n\t\t\n\t\talumno = new Alumno(\"aitor\", \"lepe\", \"oyaga\");\n\t\tcolaAlumnos.eliminarAlumno(alumno);\n\t\tcolaAlumnos.mostrarCola();*/\n\t\t\n\t}", "title": "" }, { "docid": "a10fe2af009dbd19639290c254efdc96", "score": "0.5156864", "text": "void alterarMarca(int marca) {\r\n\t\tmarcaAresta = marca;\r\n\t}", "title": "" }, { "docid": "53cdebb5c2932c951effb0a78cb92530", "score": "0.51564246", "text": "public void setNumeroCuotas(Integer numeroCuotas)\r\n/* 174: */ {\r\n/* 175:162 */ this.numeroCuotas = numeroCuotas;\r\n/* 176: */ }", "title": "" }, { "docid": "96e12a97a0f0bc42c5c35389880a04e8", "score": "0.5150214", "text": "@Test\n public void testGetNbCartes(){\n PaquetDeCartes p1 = new PaquetDeCartes();\n assertEquals(p1.getNbCartes(), 60);\n p1.piocher();\n assertEquals(p1.getNbCartes(), 59);\n }", "title": "" }, { "docid": "72fed7e9a304c1a3b994ab179815a770", "score": "0.5130495", "text": "@Test\n public void NoDeberiaDarNacionesConquistadas(){\n w.addNation(\"green\",50,50,4);\n for(int i = 0; i < 3;i++){\n w.putArmy(\"green\");\n }\n assertFalse(w.conqueredNations()[0]==\"green\");\n w.addNation(\"yellow\",150,50,15);\n for(int i =0; i < 14;i++){\n w.putArmy(\"yellow\");\n }\n assertFalse(w.conqueredNations()[1]==\"yellow\");\n }", "title": "" }, { "docid": "09ab67da5c1187110496565bb376b986", "score": "0.5125428", "text": "@Test\n\tpublic void testsThatATooShortMatCannotBeSet() {\n\t\tcorridor.setMat(corridor.getLength() - 0.1);\n\t\tassertFalse(\"Setting a too short mat on the corridor shouldn't be possible.\", corridor.getMat());\n\t}", "title": "" }, { "docid": "7bd7023a0a8ef80615821754416ff462", "score": "0.5123607", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n MakeDensityBasedClusterer makeDensityBasedClusterer0 = new MakeDensityBasedClusterer((Clusterer) null);\n try { \n makeDensityBasedClusterer0.setNumClusters((-4158));\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't set the number of clusters to generate - no clusterer has been set yet.\n //\n verifyException(\"weka.clusterers.MakeDensityBasedClusterer\", e);\n }\n }", "title": "" }, { "docid": "eda571f13b7a0dc9c7b86a3fd44fc90b", "score": "0.50970876", "text": "void createMosaic(int numSeeds) throws IllegalArgumentException;", "title": "" }, { "docid": "2dcd45adb0aa193df86ff58848d36336", "score": "0.5086968", "text": "private int noOfMasters(int groupMemberCount){\n\t\tif (groupMemberCount < 2) return groupMemberCount;\n\t\treturn (int) Math.ceil(groupMemberCount / 3.0);\n\t}", "title": "" }, { "docid": "9961796e48bd4bf50ca8e28e09895ace", "score": "0.50764185", "text": "public int getCosmicCount() {\n return cosmic_.size();\n }", "title": "" }, { "docid": "45ccddefb6dd9dae9d917ef92f41511c", "score": "0.50707656", "text": "public void testMutiplicationAvecCinqNombres() {\r\n final long lMultiplication = Operations.additionner(256, 512, 1024, 2048, 4096);\r\n Assert.assertEquals(1125899906842624L, lMultiplication);\r\n }", "title": "" }, { "docid": "b29ebe054d4e02d619bb3f966868cf52", "score": "0.5043763", "text": "@Test\r\n public void testComprobarNumeros(){\r\n assertEquals(true, edabit.numeros(5,5));\r\n }", "title": "" }, { "docid": "5b22588785891ef168beceafa4c75593", "score": "0.5034435", "text": "@Test\n public void DeberiaDarNacionesConquistadas(){\n w.addNation(\"green\",50,50,4);\n for(int i = 0; i < 4;i++){\n w.putArmy(\"green\");\n }\n assertTrue(w.conqueredNations()[0]==\"green\");\n w.addNation(\"yellow\",150,50,15);\n for(int i =0; i < 15;i++){\n w.putArmy(\"yellow\");\n }\n assertTrue(w.conqueredNations()[1]==\"yellow\");\n }", "title": "" }, { "docid": "f2bd46bf9deae931546a81a549200eed", "score": "0.5033653", "text": "public static int zombieCluster(List<String> zombies) {\n // Write your code here\n\n int n = zombies.size();\n int m = zombies.get(0).length();\n int count = 0;\n char[][] grid = new char[n][m];\n int allZero=0;\n int allOne=0;\n for(int i=0;i<n;i++) {\n for(int j = 0; j<m;j++){\n grid[i][j] = zombies.get(i).charAt(j);\n if(grid[i][j]=='1')\n allOne++;\n if(grid[i][j]=='0')\n allZero++;\n }\n }\n if(allOne==n*m) return 1;\n if(allZero==n*m) return 0;\n\n for(int i=0;i<n;i++) {\n for(int j = 0; j<m;j++){\n if(grid[i][j]=='1') {\n countClusters(grid, i, j, n, m);\n count++;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "fdf80ece149d6aa1d257d563136d9f0c", "score": "0.50326127", "text": "public void checaColisionMalos(){\r\n // Checa colision de los malos\r\n for(Malo malMalo : lklMalos){\r\n // Revisa contacto con el borde inferior\r\n if(malMalo.getY() + malMalo.getAlto() >= getHeight()) {\r\n reposicionaMalo(malMalo);\r\n }\r\n \r\n // Checo la colision entre principal y malo\r\n if(basPrincipal.colisiona(malMalo)) {\r\n iPuntos -= 1;\r\n iCaidas ++;\r\n if(iVidas > 0 && iCaidas >= 5){\r\n iVidas--; // Quita una vida\r\n iCaidas = 0; // Resetea las caidas\r\n }\r\n reposicionaMalo(malMalo);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "ff86fe67ad77426d61af160080f4a699", "score": "0.50278926", "text": "@Test\r\n public void testGetIdcolmena() {\r\n System.out.println(\"getIdcolmena\");\r\n Colmenas instance = new Colmenas();\r\n int expResult = 0;\r\n int result = instance.getIdcolmena();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "c28a1576a45765d7adc060f2130bf6e8", "score": "0.50249565", "text": "@Test\n void countClumps() {\n assertEquals(2, a.countClumps(new int[]{1, 2, 2, 3, 4, 4}));\n assertEquals(2, a.countClumps(new int[]{1, 1, 2, 1, 1}));\n assertEquals(1, a.countClumps(new int[]{1, 1, 1, 1, 1}));\n assertEquals(0, a.countClumps(new int[]{1}));\n assertEquals(0, a.countClumps(new int[]{0}));\n }", "title": "" }, { "docid": "d81b517175d18c81cea8b32ecd4470f9", "score": "0.501568", "text": "public boolean colocar_numero_casilla(int x, int y, int n) {\n\t\tif(!map.suitable_pos(x, y) || n > map.get_final_num()) return false;\n\t\tmap.setValorTauler(x,y,n);\n\t\tif (n == 1) map.setStart(x,y);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bc381d4766bf67c550f5723751c7abd5", "score": "0.5009382", "text": "@Test\r\n void testSetSesso() {\r\n Medico medico = new Medico(\"\", residenzaMedico, dataNascitaMedico, \r\n \"GRMBNN67L11B519R\", \"Geremia\", \"Bernini\", \"G.Bernini67@gmail.com\", \"Campobasso\");\r\n medico.setSesso(\"M\");\r\n assertEquals(\"M\", medico.getSesso());\r\n }", "title": "" }, { "docid": "6358e3720d0be9d7a131f0ccdfff4aa9", "score": "0.50089955", "text": "@Override\n\tpublic void frenar(double canMetros) {\n\n\t}", "title": "" }, { "docid": "f06ba13a7c0d44580d5a4e8ff39cc1c4", "score": "0.5005478", "text": "@Test\r\n public void seIntentaRecolectarPiedraRepetidasVecesElProcesoConPicoDeMaderaYDisminuyeSuDurabilidadEnLaFuerzaDeLaHerramientaTodasLasVeces(){\r\n Pico picoDeMadera = new Pico(new MaterialDeHerramientaMadera());\r\n Material Piedra = new MaterialPiedra();\r\n int durabilidadInicial = Piedra.durabilidadActualDelMaterial();\r\n int vecesRecolectado = 3;\r\n int durabilidadQueDeberiaTenerElMaterial = (durabilidadInicial - (picoDeMadera.fuerza() * vecesRecolectado));\r\n\r\n for (int i = 0; i < vecesRecolectado; i++){\r\n Piedra.recolectadoPor(picoDeMadera);\r\n }\r\n\r\n assertEquals(durabilidadQueDeberiaTenerElMaterial, Piedra.durabilidadActualDelMaterial());\r\n }", "title": "" }, { "docid": "d37fc246543e52e01f36a29920c04b31", "score": "0.50029343", "text": "@Test \n\tpublic void testCalcularSobrepasosClasifOrdenadas()\n\t{\n\t\tCarrera c = new Carrera(new Fecha(\"25\",\"10\",\"2010\"), \"San Juan\");\n\t\t\n\t\tPiloto p1 = new Piloto(\"Jorge\", \"125\");\n\t\tPiloto p2 = new Piloto(\"Claudio\", \"84\");\n\t\tPiloto p3 = new Piloto(\"Sergio\", \"55\");\n\t\t\n\t\tc.agregarResultado(p1, 5.4, 1); /*resultado(0)*/\n\t\tc.agregarResultado(p2, 10.8, 2); /*resultado(1)*/\n\t\t\n\t\tc.calcularSobrepasos();\n\t\t\n\t\tassertEquals(0, c.getResultado().get(0)/*piloto p1*/.getCantidadDeSobrepasos(), 0);\n\t\tassertEquals(0, c.getResultado().get(1)/*piloto p2*/.getCantidadDeSobrepasos(), 0);\n\t\t\n\t\tc.agregarResultado(p1, 5.4 , 3);\n\t\tc.agregarResultado(p3, 15.2, 1); /*resultado(2)*/\n\t\t\n\t\tc.calcularSobrepasos();\n\t\t\n\t\tassertEquals(2, c.getResultado().get(2)/*piloto p3*/.getCantidadDeSobrepasos(), 0);\t\t\n\t\t\n\t}", "title": "" }, { "docid": "35325b93d203317b7c7e2d994c9cde50", "score": "0.49966127", "text": "@Test\r\n public void testSetModulacao() throws Exception {\r\n System.out.println(\"setModulacao\");\r\n InventarioRede i = null;\r\n Velocidades v = null;\r\n KeymileMetalicoSuvdDslam instance = null;\r\n Modulacao expResult = null;\r\n Modulacao result = instance.setModulacao(i, v);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "10ef870280152424c9447ddbe75f6847", "score": "0.49924517", "text": "public void profundidadYnNodosMinimos() {\r\n\t\t\r\n\t\tSystem.out.println(\"El numero de nodos minimo es:\" + llavesCerradura.numeroNodosInterno());\r\n\t\tSystem.out.println(\"La profundidad del arbol es: \" + llavesCerradura.profundidadArbol());\r\n\t}", "title": "" }, { "docid": "f07095443169ec2845414c89f719fd5b", "score": "0.4991398", "text": "public static void Mnozenje() {\n\t\tint broj1 = Random();\n\t\tint broj2 = Random();\n\n\t\t// pitati korisnika da unese rezultat mnozenja\n\t\tSystem.out.println(\"Koliko je \" + broj1 + \" * \" + broj2 + \"?: \");\n\t\t\n\t\t// dodijeliti korisnikov unos varijabli\n\t\tint odgovor = input.nextInt();\n\n\t\t// provjeriti da li je odgovor tacan, ispisati rezultate korisniku\n\t\tif (odgovor == broj1 * broj2) {\n\t\t\tSystem.out.println(\"Cestitamo, odgovoro je tacan.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Odgovor koji ste unijeli nije tacan. \" + \"Tacan odgovor je \" + (broj1 * broj2));\n\t\t}\n\n\t}", "title": "" }, { "docid": "fff9f865925f8679b3ebff4f26fd9abf", "score": "0.49861643", "text": "@Test\n public void testResetCursos() {\n System.out.println(\"resetCursos\");\n BaseDados instance = new BaseDados();\n instance.resetCursos();\n // TODO review the generated test code and remove the default call to fail.\n \n }", "title": "" }, { "docid": "3b232ef951ffe2c11795fa9c933fa3e4", "score": "0.49839416", "text": "public static void main(String[] args) {\n MasinaClasica dacia1310 = new MasinaClasica();\r\n\r\n dacia1310.setGreutate(800); // kg\r\n dacia1310.setTractiune(2); // pe rotile din spate\r\n dacia1310.setNrUsi(4);\r\n dacia1310.setCuloare(\"alb\");\r\n dacia1310.setMarca(\"Dacia\");\r\n dacia1310.setCaiPutere(70);\r\n dacia1310.setVitezaMaxima(120); // km/h\r\n dacia1310.setCombustibil(\"motorina\"); // numai masinile clasice au proprietatea asta\r\n\r\n // Setam o masina hybrid\r\n MasinaHibrid toyotaPrius = new MasinaHibrid();\r\n\r\n toyotaPrius.setGreutate(1000); // kg\r\n toyotaPrius.setTractiune(4); // pe toate 4 roti\r\n toyotaPrius.setNrUsi(4);\r\n toyotaPrius.setCuloare(\"negru\");\r\n toyotaPrius.setMarca(\"Toyota\");\r\n toyotaPrius.setCaiPutere(170);\r\n toyotaPrius.setVitezaMaxima(240); // km/h\r\n toyotaPrius.setAutopilot(true); // numai masinile hybrid au proprietatea asta\r\n\r\n // Calculam consumul la masina clasica\r\n Integer consumMasinaClasica = dacia1310.calculeazaConsum(100,30);\r\n System.out.println(\"Consum pentru Dacia 1310: \" + consumMasinaClasica + \"%\");\r\n\r\n // Calculam consumul la masina hybrid\r\n Integer comsumMasinaHybrid = toyotaPrius.calculeazaConsum(50, 12);\r\n System.out.println(\"Consum pentru Toyota Prius: \" + comsumMasinaHybrid + \"%\");\r\n\r\n // Calculam impozitul la masina clasica\r\n Integer impozitMasinaClasica = dacia1310.calculeazaImpozit();\r\n System.out.println(\"Impozit pentru Dacia 1310: \" + impozitMasinaClasica + \" lei / an\");\r\n\r\n // Calculam impozitul la masina hybrid\r\n Integer impozitMasinaHybrid = toyotaPrius.calculeazaImpozit();\r\n System.out.println(\"Impozit pentru Toyota Prius: \" + impozitMasinaHybrid + \" lei / an\");\r\n }", "title": "" }, { "docid": "46a9509aff1d34d29dceb64abd2d886c", "score": "0.4973762", "text": "@objid (\"b7165d88-b9b2-4a8e-a1d8-21aafa36b941\")\r\n void setNbCartes(int value) {\n this.nbCartes = value;\r\n }", "title": "" }, { "docid": "44808b6a95168353a445afe1157f79aa", "score": "0.49737236", "text": "@Test\n\tpublic void crearBancoConNumeros() {\n\t\ttry {\n\t\texelDatosBancos= new ExcelUtils(\"datosBancos.xlsx\",ExcelType.XLSX);\n\t\tnombreBanco = exelDatosBancos.getCellData(2, 1);\n\t\tSystem.out.println(nombreBanco);\n\t\t\n\t\tbancosCrear= new BancosCrear(driver, pageFindFlight);\n\t\t//bancosCrear.crearBancos(nombreBanco);\n\t\t//System.out.println(bancosCrear.getMsjValidacion());\n\t\t\n\t\tAssert.assertEquals(\"Solo se permiten letras\", bancosCrear.crearBancosConNumeros(nombreBanco));\n\t\t\n\t\t}catch (Exception e) {\n\t\t\tAssert.fail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "94d131cd78802f2982d132b7a1c12b66", "score": "0.496989", "text": "@Test\n public void testSetAlumnos() {\n System.out.println(\"setAlumnos\");\n ArrayList<Alumno> alumnos = null;\n Curso instance = new Curso();\n instance.setAlumnos(alumnos);\n assertEquals(alumnos,instance.getAlumnos());\n }", "title": "" }, { "docid": "a234fbfe8a87ab83aa638c84a6e169c7", "score": "0.49662653", "text": "public void setNodo(Matriz.Nodo n){\n this.nodo = n;\n }", "title": "" }, { "docid": "f7843c397774f587df907be281f62102", "score": "0.49659702", "text": "public void SetNumOfErosion(int num_of_erosion){\n this.num_of_erosion = num_of_erosion;\n }", "title": "" }, { "docid": "0353de5a7d030a2d3648e5009bfad460", "score": "0.49659038", "text": "@Test\r\n\tpublic void CT03UC04A1cadastrar_empresa_cnpj_invalido() {\r\n\t\tassertEquals (\"dados invalidos\",controle.setAtributos(\"026833220001081\", \"grupo pao de acucar\",\"rua taquari\", \"8\", \"18\", \"111\", \"112\", \"113\", \"21\",\"8\",\"18\"));\r\n\t}", "title": "" }, { "docid": "311cf8065bb511cc46111654e7523534", "score": "0.4965752", "text": "@Test(expected = Test.None.class /* no exception expected */)\n\tpublic void testarePartitionareCategorii(){\n\t\tpopulate(2,2);\n\t\tvalidateMatrix(A, 2, 2, 1);\n\t\tvalidateMatrix(A, 2, 2, 5);\n\t}", "title": "" }, { "docid": "3586d230b4d65446eaa240357aef29e0", "score": "0.4965215", "text": "@Ignore\n\t@Test\n\t@Transactional\n\tpublic void getEcommerceSoporteVentaCountsPosParisClTest() {\n\t\tString fecha = \"20170920\";\n\t\t// String estadoRelacion = \"5\";\n\t\t// String canVend = null;\n\t\t// String estado = null;\n\t\t// String sku = null;\n\t\t// int count =\n\t\t// ecommerceSoporteVentaServicesImpl.getEcommerceSoporteVentaJdaCounts(fecha,\n\t\t// estado, estadoRelacion, coddesp, canVend, sku);\n\t\t// int count =\n\t\t// ecommerceSoporteVentaServicesImpl.getEcommerceSoporteVentaCountsPosParisCl(fecha,\n\t\t// null, \"2\", \"0\", \"32\", \"99999999\");\n\t\t// Post Paris\n\t\tint count = ecommerceSoporteVentaServicesImpl.getEcommerceSoporteVentaCountsPosParis(fecha, null, \"2\", \"0\",\n\t\t\t\t\"400\", \"99999999\");\n\n\t\tassertNotNull(\"Cantidad Wms\", count);\n\t\tSystem.out.println(\"cantidad Wms = \" + count);\n\t}", "title": "" }, { "docid": "8033e4400ba2996e7d08850a59e64efd", "score": "0.49623835", "text": "@Test\n public void testBuscarDispositivosEnArbolVacio() {\n \n String mascaraSubRed = \"\";\n int expResult = 0;\n int result = instance.buscarDispositivos(mascaraSubRed).size();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "735a766855421ba933c61ce2653e6ab3", "score": "0.4962231", "text": "@Test\n public void contaInicial(){\n assertEquals(111,contaCorrente.getNumeroConta());\n assertEquals(\"fulano\",contaCorrente.getNomeCorrentista());\n assertEquals(\"Silver\",contaCorrente.getCategoria());\n assertEquals(0,contaCorrente.getSaldo());\n }", "title": "" }, { "docid": "b390681e1bc0669e742112b5673d51e0", "score": "0.49606895", "text": "void makeNol(int baris){\n\t\tint firstidx = this.getFirstIdx(baris);\t\r\n\t\tif (firstidx<this.kol){\t\r\n\t\t\tfor (int i = baris+1; i<this.brs; i++){\r\n\t\t\t\twhile (this.mat[i][firstidx] != 0){\r\n\t\t\t\t\tdouble faktor = this.mat[i][firstidx] / this.mat[baris][firstidx];\r\n\t\t\t\t\tfor (int j = firstidx; j<this.kol; j++){\r\n\t\t\t\t\t\tthis.mat[i][j] -= this.mat[baris][j] * faktor;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "75e66d05eb62360e1cb26837ef658639", "score": "0.49602145", "text": "public int m()\n {\n int total = 0;\n \n for (int i = 0; i < n; i++)\n for (int j = 0; j < n; j++)\n if (arcs[i][j]) total++; \n return total; \n }", "title": "" }, { "docid": "f99c03e00fc1f7f27eff8c0ac3b1ee87", "score": "0.49567124", "text": "public void calcularCantidad()\r\n/* 1712: */ {\r\n/* 1713:1931 */ if ((this.lecturaBalanza != null) && (this.lecturaBalanza.getUnidadManejo() != null)) {\r\n/* 1714:1932 */ this.servicioMarcacionDispositivo.calcularCantidad(this.lecturaBalanza);\r\n/* 1715: */ }\r\n/* 1716: */ }", "title": "" }, { "docid": "2ca64c251f293873929ee94604f2ed5d", "score": "0.4949287", "text": "@Test\n public void testBuscarDispositivos1Coincidencia() {\n \n String mascaraSubRed = \"235.135.080.\";\n instance.insertar(dispositivo1);\n instance.insertar(dispositivo2);\n instance.insertar(dispositivo3);\n instance.insertar(dispositivo4);\n instance.insertar(dispositivo5);\n instance.insertar(dispositivo6);\n instance.insertar(dispositivo7);\n instance.insertar(dispositivo8);\n \n int expResult = 1;\n int result = instance.buscarDispositivos(mascaraSubRed).size();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "079290f56b151b83d2a4663ea1a7bbbe", "score": "0.49475908", "text": "public void testConstructor1()\n {\n assertEquals( 0, set0().size() );\n }", "title": "" }, { "docid": "25a8e344acd156c200f6e90334d0833a", "score": "0.49472186", "text": "public Mazzo(int numcarte) {\n this.numcarte = numcarte;\n // creo e dimensiono l'array mazzo\n\n mazzo = new Carta[numcarte];\n //creare tot carte e inserirle nel mazzo\n String semicarta[] = {\"\", \"Picche\", \"Fiori\", \"Quadri\", \"Cuori\"};\n int valore = 1;\n int seme = 1;\n for (int i = 1; i <= numcarte; i++) {\n\n //attenzione al numero che dopo 10 va riportato a 1\n //e poi cambi ail seme\n if(valore == 8){\n String nomecarta =\"fante di \" + semicarta[seme];\n } else { if (valore == 9){\n String nomecarta = \"regina di \" + semicarta[seme]; \n }else {\n String nomecarta = \"re di \" + semicarta[seme];\n }\n } \n String nomecarta = valore + \" di \" + semicarta[seme];\n\n Carta carta = new Carta(valore, seme, nomecarta);\n mazzo[i - 1] = carta;\n //incremento il valore\n valore++;\n // valore e seme correnti \n // se elemento corente sulla decina resett i valori e i semi\n // se sono sul 10 ad esempio rimetto valore a 1 e incremento di uno il seme\n if (i % (numcarte / 4) == 0) {\n seme++;\n valore = 1;\n }\n\n }\n\n }", "title": "" }, { "docid": "103bbc2dfdc5b035dd88992173f79c30", "score": "0.49447268", "text": "public void ini(int n, int c_negras) {\n\t\tmap = new Tablero(n);\n\t\tmap.setholes(c_negras);\n\t\tmap.setfinal_num((n*n)-c_negras);\n\t}", "title": "" }, { "docid": "0da31136dc1aab6951a5098b58e180c8", "score": "0.4938621", "text": "public void regenerateClusterNos() {\n\t\tint[] newClusterNo = new int[mNoOfCompounds];\n\t\tint clusterNo = 1;\n\t\tfor (int i=0; i<mNoOfCompounds; i++) {\n\t\t\tif (newClusterNo[mClusterNo[i]] == 0)\n\t\t\t\tnewClusterNo[i] = clusterNo++;\n\t\t\tmClusterNo[i] = newClusterNo[mClusterNo[i]];\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c222b6a07e8fb1570c91a1974fb90955", "score": "0.4927442", "text": "@Test\n public void testSetNumeroOrdem() {\n System.out.println(\"setNumeroOrdem\");\n int i = 1;\n Senha instance = new Senha();\n instance.setNumeroOrdem(i);\n int expResult = i;\n int result = instance.getNumeroOrdem();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "7033acbdd1c6a6c64a358d2ba3fa9065", "score": "0.4922552", "text": "public void mescola() {\n\t\tRandom random = new Random();\n\n\t\tfor (int i = 0; i < TOTALE_CARTE; i++) {\n\t\t\tint indiceCasuale = random.nextInt(carte.length);\n\t\t\tCarta nuovaCarta = carte[indiceCasuale];\n\t\t\tcarte[indiceCasuale] = carte[i];\n\t\t\tcarte[i] = nuovaCarta;\n\t\t}\n\t}", "title": "" }, { "docid": "785e4fa8cd2546ca05dd01dc32c4adc2", "score": "0.49160573", "text": "@Test\r\n public void testSetPions() {\r\n System.out.println(\"setPions\");\r\n PionM[] pions = null;\r\n JoueurM instance = null;\r\n instance.setPions(pions);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "a22758571658300da79b53a0a8f1636a", "score": "0.49129412", "text": "@Test\n public void testSetKorgools() {\n Hole hole = new Hole();\n hole.add(1);\n hole.setKorgools(3);\n assertEquals(3, hole.getKorgools());\n }", "title": "" }, { "docid": "cdd41e01914170ead217770c16549197", "score": "0.49117297", "text": "private void setNumberOfAdjacentBombsForEachCubicleInGrid(){\n for(int row = 0; row < this.height; row++){\n for(int col = 0; col < this.width; col++){\n int numBombs = this.determineNumberOfAdjacentBombs(row, col);\n this.gridField[row][col].setNumberOfAdjacentBombs(numBombs);\n }\n }\n }", "title": "" }, { "docid": "62c20215149a0112574ed7b4538fa097", "score": "0.49097052", "text": "int getCosmicCount();", "title": "" }, { "docid": "2c3c4a3bdacabee9b29e15c357908c71", "score": "0.49053797", "text": "public void testQuadrangulationsM2C2() {\n assertEquals(4, new Plantri().count(7, 2, 2, -1, false, false, true, false));\n assertEquals(20, new Plantri().count(8, 2, 2, -1, false, false, true, false));\n assertEquals(118, new Plantri().count(9, 2, 2, -1, false, false, true, false));\n assertEquals(1056, new Plantri().count(10, 2, 2, -1, false, false, true, false));\n assertEquals(9844, new Plantri().count(11, 2, 2, -1, false, false, true, false));\n }", "title": "" }, { "docid": "1ba49c989ebd74df76532e82fe93c690", "score": "0.49035737", "text": "@Test\r\n public void testSetIdarea() throws Exception {\r\n System.out.println(\"setIdarea\");\r\n int idarea = 0;\r\n Colmenas instance = new Colmenas();\r\n instance.setIdarea(idarea);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "49dd0dd0831826d4082695d04e7fb5b5", "score": "0.4898591", "text": "public int getNCuidadores() {\r\n\t\treturn cuidadores.size();\r\n\t}", "title": "" }, { "docid": "8bb12aa1622b5cdf8251e16eeb67940e", "score": "0.4896448", "text": "@Test\n\tpublic void testareFunctionalaC_1() {\n\t\tpopulate(2,2);\n\t\t\n\t\t//Case C_1\n\t\tassertTrue(sumInMatrix(A,2,2,6));\n\t}", "title": "" }, { "docid": "743ad0ec252025633cc40145214f7817", "score": "0.48942542", "text": "public static void initializeMnMx() {\n\t\tfor(int i = 1; i <= n; ++i) {\n\t\t\tmn[i][i] = (long) digits[i];\n\t\t\tmx[i][i] = (long) digits[i];\n\t\t}\n\t}", "title": "" }, { "docid": "382f8985be4d8cb08fd18c8f1836b7a9", "score": "0.48912597", "text": "@Test\r\n public void testSetPrecio() {\r\n System.out.println(\"setPrecio\");\r\n float precio = 0.0F;\r\n Colmenas instance = new Colmenas();\r\n instance.setPrecio(precio);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "d99977f015273e6d43a74747602e916b", "score": "0.48906794", "text": "@Test\n public void testSetNo_Ejemplar() {\n System.out.println(\"setNo_Ejemplar\");\n int No_Ejemplar = 0;\n CRentas instance = null;\n instance.setNo_Ejemplar(No_Ejemplar);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "2c5b8953533a49c60a1e0a08a8078e25", "score": "0.4880657", "text": "@Test\t\n\tpublic void algunasMultiplicaciones() {\n\t\tassertTrue (Multiplicacion.multiplicar(Arrays.asList(0), Arrays.asList(1, 0, 0, 0)).equals(Arrays.asList(0)));\n\t\t// 9 * 9 = 81\n\t\tassertTrue (Multiplicacion.multiplicar(Arrays.asList(9), Arrays.asList(9)).equals(Arrays.asList(8, 1)));\n\t\t// 9 * 9999 = 89991\n\t\tassertTrue (Multiplicacion.multiplicar(Arrays.asList(9), Arrays.asList(9, 9, 9, 9)).equals(Arrays.asList(8, 9, 9, 9, 1)));\n\t}", "title": "" }, { "docid": "e0c53133ae872d6640ed3fa64154d2c2", "score": "0.4871559", "text": "public void setN(int n) {\r\n this.n = n;\r\n }", "title": "" }, { "docid": "88200f5277641966e65d2c9670aedad2", "score": "0.4868657", "text": "@Test\n\tpublic void testCalcularSobrepasosClasifDesordenada()\n\t{\n\t\tCarrera c = new Carrera(new Fecha(\"25\",\"10\",\"2010\"), \"San Juan\");\n\t\t\n\t\tPiloto p1 = new Piloto(\"Jorge\", \"125\");\n\t\tPiloto p2= new Piloto(\"Claudio\", \"84\");\n\t\tPiloto p3 = new Piloto(\"Sergio\", \"55\");\n\t\tPiloto p4 = new Piloto(\"Federico\", \"47\");\n\t\t\n\t\tc.agregarResultado(p1, 25.3, 2); /*resultado(2)*/\n\t\tc.agregarResultado(p2, 10.8, 4); /*resultado(1)*/\n\t\tc.agregarResultado(p3, 5.3, 1); /* resultado(0)*/\n\t\tc.agregarResultado(p4, 30.1, 3); /*resultado(3)*/\n\t\t\n\t\tc.calcularSobrepasos();\n\n\t\tassertEquals(0, c.getResultado().get(0)/*piloto p3*/.getCantidadDeSobrepasos(), 0);\n\t\tassertEquals(0, c.getResultado().get(1)/*piloto p2*/.getCantidadDeSobrepasos(), 0);\n\t\tassertEquals(1, c.getResultado().get(2)/*piloto p1*/.getCantidadDeSobrepasos(), 0);\n\t\tassertEquals(1, c.getResultado().get(3)/*piloto p4*/.getCantidadDeSobrepasos(), 0);\n\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "45560573c30fe95d594966f8b2b6101e", "score": "0.48662534", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\n MakeDensityBasedClusterer makeDensityBasedClusterer0 = new MakeDensityBasedClusterer();\n makeDensityBasedClusterer0.numberOfClusters();\n makeDensityBasedClusterer0.listOptions();\n assertEquals(1.0E-6, makeDensityBasedClusterer0.getMinStdDev(), 0.01);\n }", "title": "" }, { "docid": "a32b1d980a3fb5d2434f2b5ce7abade3", "score": "0.48608348", "text": "@Test\n\tpublic void obtenerTresVecinos(){\n\t\tnodoActual.calcularCoordenada();\n\t\tSystem.out.println(\"NODO CALCULADO\" + nodoActual.getCoordenada());\n\t\t\n\t}", "title": "" }, { "docid": "5917a5aec40ae776efb71c8b900aa936", "score": "0.48576277", "text": "public void testSetMargins() throws Exception {\n//TODO: Test goes here... \n }", "title": "" }, { "docid": "3701ec8e0e549373fc5149ef74b46bba", "score": "0.48543978", "text": "public void mischia() {\n for (int i = 0; i < 2000; i++) {\n\n //pesco due numeri a caso da 0 a 39\n //e scambio le due carte corrispondenti\n //scambio carte a caso\n //caso1=22;\n //caso2=34;\n // la 22 con 34\n int caso1 = (int) Math.floor(Math.random() * numcarte);\n int caso2 = (int) Math.floor(Math.random() * numcarte);\n //prendo la 22 in mano e sposto la 34 al posto della 22\n\n Carta cartainmano;\n //prendo in mano la 22\n cartainmano = mazzo[caso1];\n //metto la 34 nella 22\n mazzo[caso1] = mazzo[caso2];\n //metto a posto la cartainmano\n mazzo[caso2] = cartainmano;\n //ok spostate\n\n }\n\n }", "title": "" }, { "docid": "8d9ddb214354bfbda69c80f10ba566ff", "score": "0.48533678", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n FarthestFirst farthestFirst0 = new FarthestFirst();\n MakeDensityBasedClusterer makeDensityBasedClusterer0 = new MakeDensityBasedClusterer(farthestFirst0);\n try { \n makeDensityBasedClusterer0.setNumClusters(2);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Can't set the number of clusters to generate - wrapped clusterer does not support this facility.\n //\n verifyException(\"weka.clusterers.MakeDensityBasedClusterer\", e);\n }\n }", "title": "" }, { "docid": "017f9ccadac63ad600689f1feab2d2cf", "score": "0.48510063", "text": "public void numberOfMines()\n\t{\n\t\tfor(int r = 0; r < this.rows; r++)\n\t\tfor(int c = 0; c < this.cols; c++) {\n\t\t\tif(!mineMap.getSpot(r,c).getMine()) {\n\t\t\t\tint count = 0;\n\t\t\t\tfor(int rr = -1; rr <= 1; rr++) {\n\t\t\t\t\tfor(int cc = -1; cc <= 1; cc++) {\n\t\t\t\t\t\tif(r+rr >= 0 && r+rr < rows && c+cc >= 0 && c+cc < cols && mineMap.getSpot(r+rr,c+cc).getMine()) {\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t((EmptyCell)mineMap.getSpot(r,c)).setCount(count);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cb3d2cb6636fef276ac6bf027a7d1c24", "score": "0.4848735", "text": "public void setN(int n) {\n this.n = n;\n }", "title": "" }, { "docid": "6c8edb815a774eb481b2d230a3de3773", "score": "0.4844718", "text": "public int getNumCasillas() {\n\t\treturn numCasillas;\n\t}", "title": "" }, { "docid": "104da1682a32b595766c8b804ee74b15", "score": "0.48440698", "text": "@Test\n public void nao_deve_ter_contato_nulo() {\n\n funcionario.setContatos(null);\n assertFalse(isValid(funcionario, \"Não pode conter lista de contatos nula.\"));\n }", "title": "" }, { "docid": "318429e1766511ef5a0d0b86766be559", "score": "0.4842964", "text": "@Test\n\tpublic\n\t\t void testSetNbCommits () throws NegativeNumberOfCommits\n\t\t{\n\t\tSystem.out.println(\"setNbCommits\");\n\t\tint nb_commits = 8;\n\t\tProject proj = new Project(4, \"Projet Test\", \"https://www.test.com\", \"test@test.com\", 5);\n\t\tproj.setNbCommits(nb_commits);\n\t\tassertEquals(nb_commits, proj.getNbCommits());\n\t\treturn;\n\t\t}", "title": "" }, { "docid": "052518be8f35917c4ee8f6fd834f948b", "score": "0.48416033", "text": "@org.junit.Test\r\n public void testMnozenie() {\r\n System.out.println(\"mnozenie\");\r\n double a = 2.0;\r\n double b = 4.0;\r\n double expResult = 8.0;\r\n double result = KalkulejtorMajn.mnozenie(a, b);\r\n assertEquals(expResult, result, 8.0);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "79affcdc5285c3de08fea13d05fd6ae3", "score": "0.48404154", "text": "@Test\n public void testModifyPropertiesCAR() throws Exception {\n final String aliasName = getSaferTestName();\n ZkStateReader zkStateReader = createColectionsAndAlias(aliasName);\n CollectionAdminRequest.SetAliasProperty setAliasProperty =\n CollectionAdminRequest.setAliasProperty(aliasName);\n setAliasProperty.addProperty(\"foo\", \"baz\");\n setAliasProperty.addProperty(\"bar\", \"bam\");\n setAliasProperty.process(cluster.getSolrClient());\n checkFooAndBarMeta(aliasName, zkStateReader, \"baz\", \"bam\");\n\n // now verify we can delete\n setAliasProperty = CollectionAdminRequest.setAliasProperty(aliasName);\n setAliasProperty.addProperty(\"foo\", \"\");\n setAliasProperty.process(cluster.getSolrClient());\n checkFooAndBarMeta(aliasName, zkStateReader, null, \"bam\");\n\n setAliasProperty = CollectionAdminRequest.setAliasProperty(aliasName);\n setAliasProperty.addProperty(\"bar\", null);\n setAliasProperty.process(cluster.getSolrClient());\n checkFooAndBarMeta(aliasName, zkStateReader, null, null);\n\n setAliasProperty = CollectionAdminRequest.setAliasProperty(aliasName);\n // whitespace value\n setAliasProperty.addProperty(\"foo\", \" \");\n setAliasProperty.process(cluster.getSolrClient());\n checkFooAndBarMeta(aliasName, zkStateReader, \" \", null);\n }", "title": "" }, { "docid": "c24c84966138af233c35450b7e41c191", "score": "0.4836959", "text": "@Test\n public void testBuscarDispositivos2Coincidencia() {\n \n String mascaraSubRed = \"235.132.\";\n instance.insertar(dispositivo1);\n instance.insertar(dispositivo2);\n instance.insertar(dispositivo3);\n instance.insertar(dispositivo4);\n instance.insertar(dispositivo5);\n instance.insertar(dispositivo6);\n instance.insertar(dispositivo7);\n instance.insertar(dispositivo8);\n \n int expResult = 2;\n int result = instance.buscarDispositivos(mascaraSubRed).size();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "abf57f02a899aac2b32f4c3d9fad8372", "score": "0.4817165", "text": "@Before\n public void setUp(){\n int[][] matrixOfNumbers;\n box = BoxOfSchemeCards.newBox();\n card = box.request(\"Virtus\");\n matrixOfNumbers = card.getMatrixOfNumbers();\n valueConstraint = new ValueConstraint(matrixOfNumbers);\n }", "title": "" }, { "docid": "26f148f71d50b364e75bf9cda848ca7a", "score": "0.48171332", "text": "@Test\n\tpublic void test_initialisationDesMonstres() {\n\n\t\t// Preparation des donnees\n\t\tZeldiabloJeu jeu = new ZeldiabloJeu();\n\t\tboolean unSurMur=false;\n\t\tboolean unSurJoueur=false;\n\n\t\tArrayList<Entite> entites = jeu.getEntites();\n\t\tJoueur j = (Joueur) jeu.getJoueur();\n\t\tLabyrinthe l = jeu.getLabyrinthe();\n\n\t\tint nbMonstres = 0;\n\n\t\t// Methodes a tester\n\t\tfor (int i=0; i<entites.size(); i++) {\n\t\t\tif (entites.get(i) instanceof Monstre) {\n\n\t\t\t\tnbMonstres++;\n\t\t\t\tif (!(entites.get(i) instanceof Fantome)) {\n\t\t\t\t\t// test si un monstre est sur le joueur\n\t\t\t\t\tif (entites.get(i).getX() == j.getX() && entites.get(i).getY() == j.getY()) unSurJoueur=true;\n\n\t\t\t\t\t// test si un monstre est sur un mur\n\t\t\t\t\tif (! l.getCase(entites.get(i).getX(), entites.get(i).getY()).etreVide()) unSurMur=false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Verification\n\t\tassertEquals(\"Il doit y avoir 8 monstres au depart du jeu\", 8, nbMonstres);\n\t\tassertEquals(\"Les monstre ne doivent pas etre dans un mur\", false, unSurMur);\n\t\tassertEquals(\"Les monstre ne doivent pas etre sur le joueur\", false, unSurJoueur);\n\t}", "title": "" }, { "docid": "6d354213bedfc3228940e296c38ea4b9", "score": "0.48126554", "text": "@Test\n public void deve_aceitar_nomes_com_menos_de_30_caracteres() {\n\n funcionario.setNome(random(25));\n assertTrue(isValid(funcionario, funcionario.getNome(), Find.class, Update.class));\n }", "title": "" }, { "docid": "2bcffa8e09cee66fbf68b823e952f76d", "score": "0.48083365", "text": "public void testCompletado(){\r\n\t\t\r\n\t\ttry{\r\n\t\t\tfor(int i=0; i<cancionUno.size(); i++)\r\n\t\t\t\tnivelUno.movimientoCorrectoEnCancion(cancionUno);\r\n\t\t\tassertFalse(nivelUno.completado());\r\n\t\t\tcancionUno.reiniciar();//como son las dos la misma cancion, tengo que reiniciarla\r\n\t\t\tfor(int i=0; i<cancionDos.size(); i++)\r\n\t\t\t\tnivelUno.movimientoCorrectoEnCancion(cancionDos);\r\n\t\t\tassertTrue(nivelUno.completado());\r\n\t\t}catch (NoExisteLaCancion e) {\r\n//No entra en el catch porque cancion esta asociada al nivel\t\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ac0ab2b40359e8dfd94182b13396cfc9", "score": "0.48060238", "text": "int obterMarca(){\r\n\t\treturn marcaAresta;\r\n\t}", "title": "" }, { "docid": "fbdda47b88dee059129d5943c98aa7eb", "score": "0.48046613", "text": "@Test\r\n public void testSetIdorigen() throws Exception {\r\n System.out.println(\"setIdorigen\");\r\n int idorigen = 0;\r\n Colmenas instance = new Colmenas();\r\n instance.setIdorigen(idorigen);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "title": "" }, { "docid": "c312d00afdb9b40fed72267f762d6260", "score": "0.47934717", "text": "private int evenNoOfMasters(int groupMemberCount){\n\t\tif (groupMemberCount < 2) return groupMemberCount;\n\t\tint alpha = (int) Math.ceil(groupMemberCount / 3.0);\n\t\tif (alpha % 2 == 0){\n\t\t\treturn alpha;\n\t\t}\n\t\telse {\n\t\t\treturn alpha + 1;\n\t\t}\n\t}", "title": "" } ]
ae203a0d394fd08ffca22c93b377368b
uint32_t UpdateFee_get_feerate_per_kw(const struct LDKUpdateFee NONNULL_PTR this_ptr);
[ { "docid": "dad136187ef5a5598dcc7c5f58baaa18", "score": "0.89729303", "text": "public static native int UpdateFee_get_feerate_per_kw(long this_ptr);", "title": "" } ]
[ { "docid": "92f07151bd91c7bd15e5187df5400f84", "score": "0.7758421", "text": "public static native void UpdateFee_set_feerate_per_kw(long this_ptr, int val);", "title": "" }, { "docid": "78127f3ee149b28472d83667e879f6b0", "score": "0.7424293", "text": "long getFee();", "title": "" }, { "docid": "869d752f91cd27f89d2da1a1146d15bb", "score": "0.7384554", "text": "public static native long CommitmentUpdate_get_update_fee(long this_ptr);", "title": "" }, { "docid": "6e4f12736d740f1ce2847b85e4149461", "score": "0.71446884", "text": "public static native int UnsignedChannelUpdate_get_fee_proportional_millionths(long this_ptr);", "title": "" }, { "docid": "b686bb10ec203a46dcbfa0219c4ca0ce", "score": "0.69230884", "text": "public static native int CommitmentTransaction_feerate_per_kw(long this_arg);", "title": "" }, { "docid": "48bca3dbc7d8a2fb8351aaaf1135c943", "score": "0.6906604", "text": "public static native long UpdateFee_new(byte[] channel_id_arg, int feerate_per_kw_arg);", "title": "" }, { "docid": "dcb7e0deaccea2de2feef611593ba99c", "score": "0.6861959", "text": "public static native long ChannelManagerReadArgs_get_fee_estimator(long this_ptr);", "title": "" }, { "docid": "7286b49f22d1f6af135aa50159160e66", "score": "0.66757154", "text": "@Override\n public double CalculateFee() \n {\n return fixedprice;\n }", "title": "" }, { "docid": "8c6e9304cb5d0780525d95ec93151a80", "score": "0.6623392", "text": "public int feerate_per_kw() {\n\t\tint ret = bindings.CommitmentTransaction_feerate_per_kw(this.ptr);\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "8550d81c508fd27efc6a6c93a43e77d7", "score": "0.6620319", "text": "public double lateFee(Person p) {\r\n\t\tdouble trumpTax = 0.0; \r\n\t\r\n\t\tint currentYear = Integer.parseInt(this.getCurrentDate().substring(6));\r\n\t\tint currentMonth = Integer.parseInt(this.getCurrentDate().substring(3, 5)) - 1;\r\n\t\tint currentDay = Integer.parseInt(this.getCurrentDate().substring(0,2)); \r\n\t\tGregorianCalendar current = new GregorianCalendar(currentYear, currentMonth, currentDay);\r\n\t\t\r\n\t\tfor(int q = 0; q < p.getCheckedOut().size(); q++) {\r\n\t\t\tint dueYear = Integer.parseInt(p.getCheckedOut().get(q).getDueDate().substring(6));\r\n\t\t\tint dueMonth = Integer.parseInt(p.getCheckedOut().get(q).getDueDate().substring(3,5)) - 1;\r\n\t\t\tint dueDay = Integer.parseInt(p.getCheckedOut().get(q).getDueDate().substring(0,2));\r\n\t\t\t\r\n\t\tGregorianCalendar dueDate = new GregorianCalendar(dueYear, dueMonth, dueDay);\r\n\t\tif(current.after(dueDate)) {\r\n\t\t\ttrumpTax += daysBetween(current, dueDate) * p.getCheckedOut().get(q).getBookValue() * .01;\r\n\t\t\t}\r\n\t}\r\n\treturn (double) trumpTax;\r\n}", "title": "" }, { "docid": "0568c05a4c208db99cf4d106945ebece", "score": "0.6583089", "text": "public default double calcFee(){\n return 1.50;\n }", "title": "" }, { "docid": "6d997477fe138f08ab1e91117ac5680f", "score": "0.6554212", "text": "public static double initFee()\r\n {double fee=0.05; \r\n return fee;}", "title": "" }, { "docid": "8bc52ec8df072460fbd3189ec66a2f08", "score": "0.6543829", "text": "public double getFee(){\r\n\t\treturn this.fee;\r\n\t}", "title": "" }, { "docid": "5450506cf0a2db45563b211730b8c306", "score": "0.649985", "text": "public static native int ChannelConfig_get_forwarding_fee_proportional_millionths(long this_ptr);", "title": "" }, { "docid": "5da48ceb35a73e1b2b9fa3a0e77fe363", "score": "0.64988524", "text": "public int getFee()\n {\n return fee;\n }", "title": "" }, { "docid": "c9b83d9f4bc52930dd9981fb344e2151", "score": "0.64794767", "text": "public static native void CommitmentUpdate_set_update_fee(long this_ptr, long val);", "title": "" }, { "docid": "c7c4e6af417fa56f6bd2f58be26d1a6a", "score": "0.63777965", "text": "protected abstract double get_Rental_Fee(int bed_Count) throws InvalidBedCountException;", "title": "" }, { "docid": "e881e5e5e91a20282353104c0de8dea8", "score": "0.62829137", "text": "public static native void UpdateFee_free(long this_obj);", "title": "" }, { "docid": "e70385288eb0860aacfda492818e43cf", "score": "0.6274128", "text": "public static native int OpenChannel_get_feerate_per_kw(long this_ptr);", "title": "" }, { "docid": "98699819e44dbf5eeb6b599e29142a79", "score": "0.6246095", "text": "public abstract double calculateFee(PunchTime p);", "title": "" }, { "docid": "af71202596569ad38839ba9d509d9985", "score": "0.6235554", "text": "public long getFee() {\n return fee_;\n }", "title": "" }, { "docid": "cf8fd8a9e0a6983b33bb7751bf530678", "score": "0.62320715", "text": "public static native long ClosingSigned_get_fee_satoshis(long this_ptr);", "title": "" }, { "docid": "f6c100315ac84fcb5e4d88d0f3b7ecfc", "score": "0.6219765", "text": "int getMarketFeeApp();", "title": "" }, { "docid": "94983f87ea4b4b86aac263ba97efc48d", "score": "0.62126994", "text": "public double getFee()\n\t{\n\t\tint months = getPayOffMonths();\n\t\tswitch(months){\n\t\t\tcase 6:\n\t\t\t\treturn 800;\n\t\t\tcase 12:\n\t\t\t\treturn 1800;\n\t\t\tcase 18:\n\t\t\t\treturn 3000;\n\t\t\tcase 24:\n\t\t\t\treturn 4000;\n\t\t// no need for a default case here since I already\n\t\t// ensured that the months to pay back are legal\n\t\t// when I was setting them.\n\t\t}\n\n\t\treturn -1; // this will never be executed, but the compiler\n\t\t\t\t // requires it for successful compilation.\n\t}", "title": "" }, { "docid": "2284ecfab9b6ad9e5d03971167f6346d", "score": "0.62002355", "text": "public double getFeeAmount() {\n return feeAmount;\n }", "title": "" }, { "docid": "6c585510eab8a932025f977a0ee23292", "score": "0.6191014", "text": "public static native int UnsignedChannelUpdate_get_fee_base_msat(long this_ptr);", "title": "" }, { "docid": "8d7100807268764d763b64021c77ab91", "score": "0.61575115", "text": "public Integer getFee() {\n return fee;\n }", "title": "" }, { "docid": "9eeb2ed7626f55216405384dd7ca6ed9", "score": "0.6145777", "text": "public static native void ChannelManagerReadArgs_set_fee_estimator(long this_ptr, long val);", "title": "" }, { "docid": "f74a49a2580f024d20eed3c3030dbef3", "score": "0.6138087", "text": "protected abstract double Calc_Rental_Fee(int numOfRentDay, double perDayRent) throws InvalidBedCountException;", "title": "" }, { "docid": "010ad983969493b953768e41d1fb1279", "score": "0.61234766", "text": "public BigDecimal getFee() {\n return fee;\n }", "title": "" }, { "docid": "e9d3d03faa56ad71fd4d06456462fc20", "score": "0.6080466", "text": "public long getFee() {\n return fee_;\n }", "title": "" }, { "docid": "b7325899a1613e0fc19be73ffd165bd7", "score": "0.60524756", "text": "public static native void UnsignedChannelUpdate_set_fee_proportional_millionths(long this_ptr, int val);", "title": "" }, { "docid": "4c836915202b83d0fc137d3b6782e6fc", "score": "0.6012421", "text": "public static native int RoutingFees_get_proportional_millionths(long this_ptr);", "title": "" }, { "docid": "15c5c1f9213b6b2e0b5aaed490544967", "score": "0.60028046", "text": "public double getFees()\r\n\t{\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b18e1f455226c82f3b40d68cb2137545", "score": "0.59819895", "text": "java.lang.String getMarketFee();", "title": "" }, { "docid": "4c10bd47c381c3b15a08f427d701a36a", "score": "0.5975732", "text": "public static native long ClosingSigned_get_fee_range(long this_ptr);", "title": "" }, { "docid": "8403c2a7344b61e1732ec1b9ebf3e70f", "score": "0.5961569", "text": "public static native long RouteHop_get_fee_msat(long this_ptr);", "title": "" }, { "docid": "021d8b1f10fe0994f07ce32375108477", "score": "0.58373594", "text": "int getFairPriceFlag();", "title": "" }, { "docid": "150e81bbb30a6445117d0c7ab13cd057", "score": "0.5805553", "text": "public static void getBudgetRemainingAmount(){\n }", "title": "" }, { "docid": "42b821a32ad3266d3e359ca1d6295c61", "score": "0.576878", "text": "@Override\r\n\tdouble calculateFees(Trade trade) {\n\t\t\r\n\t\ttrade.setFees(2);\r\n\t\treturn trade.getFees();\r\n\t}", "title": "" }, { "docid": "5cf4ea2d2c662df642f8690f2a6c106e", "score": "0.57660687", "text": "public Integer getAddCheckFee() {\r\n return addCheckFee;\r\n }", "title": "" }, { "docid": "1b155212f7f797c8ee0b8bceb48cf4eb", "score": "0.5728684", "text": "long getBizAmount();", "title": "" }, { "docid": "09ea370fc6e839f69dd0d089cebe8db5", "score": "0.5720995", "text": "public float getFineAmount();", "title": "" }, { "docid": "fb9f7310e2dfd4af7905422132578b1f", "score": "0.5715638", "text": "public static native long ChannelConfig_get_force_close_avoidance_max_fee_satoshis(long this_ptr);", "title": "" }, { "docid": "72d452c979934c4a94dcfc8b2ee56a0b", "score": "0.5714049", "text": "io.swisschain.sirius.vaultApi.generated.common.Common.BigDecimal getFeeLimit();", "title": "" }, { "docid": "6bb43df045827013fd0ae2ad02716419", "score": "0.5710315", "text": "public double getFeesAndInterest() {\r\n double userMoney = getBalance()*interestRate;\r\n return userMoney;\r\n }", "title": "" }, { "docid": "e213e26592091316318207aaa5d72023", "score": "0.57049865", "text": "public double getcheckedBagFee(){\n //if (numCheckedBags == 0){\n //return(0.00);\n // }\n return(checkedBagFee);\n }", "title": "" }, { "docid": "799bf1ba7f00735d627ff6e5f5d36251", "score": "0.57031775", "text": "public boolean getFeeCheck()\n {\n return fullyPaid;\n }", "title": "" }, { "docid": "836c142f1daeba5c9d7b2af1a75147e5", "score": "0.5700515", "text": "@Override\n\tpublic double calculateFees() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "08950be819a420ec2223cd52fcf3b462", "score": "0.56956995", "text": "private BytecodeFeeInfo(BytecodeEnergyLevels nrgLvl,\n BytecodeEnergyLevels extraNrgLvl,\n int delta,\n int alpha,\n int fee) {\n this.nrgLvl = nrgLvl;\n this.extraNrgLvl = extraNrgLvl;\n this.delta = delta;\n this.alpha = alpha;\n this.fee = fee;\n }", "title": "" }, { "docid": "3db58be64f7e1983f5bae9acc5764328", "score": "0.56727344", "text": "public double getTotalFactoringFee() {\n return totalFactoringFee;\n }", "title": "" }, { "docid": "134a7f5215c8fe5935e156b89f7c637b", "score": "0.5670091", "text": "public static native long DirectionalChannelInfo_get_fees(long this_ptr);", "title": "" }, { "docid": "91b0b559aae2c666b5ee66164221a2f9", "score": "0.566958", "text": "public DecimalDt getFee() { \n\t\tif (myFee == null) {\n\t\t\tmyFee = new DecimalDt();\n\t\t}\n\t\treturn myFee;\n\t}", "title": "" }, { "docid": "91b0b559aae2c666b5ee66164221a2f9", "score": "0.566958", "text": "public DecimalDt getFee() { \n\t\tif (myFee == null) {\n\t\t\tmyFee = new DecimalDt();\n\t\t}\n\t\treturn myFee;\n\t}", "title": "" }, { "docid": "c4bf6325a4264a487d0745844dcef8fe", "score": "0.5663643", "text": "public void payFine(float payment);", "title": "" }, { "docid": "e4fbe9b9f0c6580c547a0ab8b2fbd683", "score": "0.5656472", "text": "public static native long ClosingSignedFeeRange_get_min_fee_satoshis(long this_ptr);", "title": "" }, { "docid": "604a7ac0df88afbf624595f4545ceecd", "score": "0.5641113", "text": "public BigDecimal getFreightPrice() {\r\n return freightPrice;\r\n }", "title": "" }, { "docid": "16848fd466e576d2aea279f4477fab14", "score": "0.5638619", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getLmtdProdsWithdrawalDeductibleFactorOverride();", "title": "" }, { "docid": "877d9d44605c3ebff4a0ac3ce6fd161d", "score": "0.5624762", "text": "int getInfectionRate();", "title": "" }, { "docid": "bd284194c6604e54bca55c3016c3a0f7", "score": "0.56232667", "text": "boolean hasFeeLimit();", "title": "" }, { "docid": "f7c441dd2cd6a7c68eff687203aa64e2", "score": "0.5606444", "text": "boolean hasMarketFee();", "title": "" }, { "docid": "6ba51f3d92fcc21c53ec63e9add7c4c8", "score": "0.56046", "text": "public static native long ClosingSignedFeeRange_get_max_fee_satoshis(long this_ptr);", "title": "" }, { "docid": "5ae6483ad419c1b4d2ecb0de025ea024", "score": "0.5596855", "text": "public Integer getServiceFeeBase() {\r\n return serviceFeeBase;\r\n }", "title": "" }, { "docid": "16f3f196528d6653f7f27efe793e1fd1", "score": "0.5591688", "text": "public static native int ChannelConfig_get_forwarding_fee_base_msat(long this_ptr);", "title": "" }, { "docid": "f538d6bdc63cb0156567b67aad43ff8f", "score": "0.5588859", "text": "public static native long UpdateFee_clone(long orig);", "title": "" }, { "docid": "777c51c1cc51f49d537a12338726a687", "score": "0.5574581", "text": "public DecimalDt getFeeElement() { \n\t\tif (myFee == null) {\n\t\t\tmyFee = new DecimalDt();\n\t\t}\n\t\treturn myFee;\n\t}", "title": "" }, { "docid": "777c51c1cc51f49d537a12338726a687", "score": "0.5574581", "text": "public DecimalDt getFeeElement() { \n\t\tif (myFee == null) {\n\t\t\tmyFee = new DecimalDt();\n\t\t}\n\t\treturn myFee;\n\t}", "title": "" }, { "docid": "068c19ab30ab4a051d47a003cf204374", "score": "0.55691326", "text": "public int getDeliveryFee()\n {\n return deliveryFee;\n }", "title": "" }, { "docid": "eac3171093d6ed99dcb406cda5ed58b9", "score": "0.55581135", "text": "public static native void ChannelConfig_set_forwarding_fee_proportional_millionths(long this_ptr, int val);", "title": "" }, { "docid": "2994cbbabc405b9e9e6c0b7084fc1e6c", "score": "0.5548034", "text": "public static native long OpenChannel_get_funding_satoshis(long this_ptr);", "title": "" }, { "docid": "7ae8c9b14ec4862a276511861793cbd5", "score": "0.55476743", "text": "@Override\n\tpublic double chargeFee() {\n\t\tdouble fee;\n\t\tif(money < 1000) {\n\t\t\tfee = money*0.05;\n\t\t}else{\n\t\t\tfee = 0;\n\t\t}\n\t\treturn fee;\n\t}", "title": "" }, { "docid": "8e6cfb0e53765ae2f03e98680b57a640", "score": "0.5541302", "text": "public Integer getSetupFee() {\r\n return setupFee;\r\n }", "title": "" }, { "docid": "b53a27fee1e7381c1d3061a9110e7363", "score": "0.5532575", "text": "public static native void ChannelMessageHandler_handle_update_fee(long this_arg, byte[] their_node_id, long msg);", "title": "" }, { "docid": "1246e3702c124575aa41cfd9f42013ca", "score": "0.5527402", "text": "public JpoShippingFee getJpoShippingFee(String shippingType,String province,String cityId,String district,String countrCode);", "title": "" }, { "docid": "e73a8d0c99676e654a765ef017d8e5e1", "score": "0.5525344", "text": "public Integer getSpecialFee() {\r\n return specialFee;\r\n }", "title": "" }, { "docid": "43f9192e67642f41ba0eb4417db2fd29", "score": "0.5516327", "text": "public Integer getAddTimeFee() {\r\n return addTimeFee;\r\n }", "title": "" }, { "docid": "7b2c571634c28e1f86d114b19148829a", "score": "0.55003464", "text": "protected double Calculate_Fee(DateTime returnDate2, double perDayRent2) throws InvalidBedCountException {\r\n\t\tint diff = DateTime.diffDays(this.getReturnDate(), this.getRentDate());\r\n\t\tdouble rental_Fee = this.get_Rental_Fee(this.getBed_Count());\r\n\t\tint numOfRentDay=DateTime.diffDays(this.getEstimated_RentDate(), this.getRentDate());\r\n\t\tif (diff <= numOfRentDay) {\r\n\r\n\t\t\trental_Fee = numOfRentDay * this.getPerDayRent();\r\n\r\n\t\t} else if (diff > numOfRentDay) {\r\n\t\t\trental_Fee = this.getPerDayRent() * diff;// rental rate of each late day is 135%\r\n\r\n\t\t}\r\n\r\n\t\treturn rental_Fee;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "33bcec1346bdd0113b2c5288ed37f116", "score": "0.5497465", "text": "@Override\n public KualiDecimal calculateFringeBenefitFromLaborObject(LaborLedgerObject laborLedgerObject, KualiDecimal salaryAmount, String accountNumber, String subAccountNumber) {\n return null;\n }", "title": "" }, { "docid": "960175c44f79403bd1049250f50d3b26", "score": "0.5491292", "text": "public int getRegularFee() {\n \treturn regularFee;\n }", "title": "" }, { "docid": "62e079b884a93d4f624c0dab53717969", "score": "0.54898393", "text": "public BigDecimal getFreceivepricerate() {\n return freceivepricerate;\n }", "title": "" }, { "docid": "f4ebb3c905fc7465a1d2ad0ce34895b4", "score": "0.5485383", "text": "public void setFee(int fee)\n {\n this.fee = fee;\n }", "title": "" }, { "docid": "7a3dc4fc835d11db3971f405debed6b1", "score": "0.5484394", "text": "io.swisschain.sirius.vaultApi.generated.common.Common.BigDecimalOrBuilder getFeeLimitOrBuilder();", "title": "" }, { "docid": "65ab23fe2b9937122b9596a9e73ec258", "score": "0.5476794", "text": "double fareChange(double payment) {\n return payment - totalFare() ;\n }", "title": "" }, { "docid": "3c4555419d5a55f34c24319f624ecffc", "score": "0.54690987", "text": "public static native void ClosingSigned_set_fee_satoshis(long this_ptr, long val);", "title": "" }, { "docid": "c941b4b8332b41b2e468c7291242f4bc", "score": "0.54671496", "text": "public double calculateFee(String studentId) throws SQLException;", "title": "" }, { "docid": "d345698250b042af81e6085373ef3f24", "score": "0.5461101", "text": "public static native long UpdateAddHTLC_get_amount_msat(long this_ptr);", "title": "" }, { "docid": "2419667d91846258a7f91a609479a498", "score": "0.5459216", "text": "hipstershop.Demo.MoneyOrBuilder getPriceUsdOrBuilder();", "title": "" }, { "docid": "031daee1ef2606997f3a2b2b7e485036", "score": "0.5449055", "text": "int getRealBuyAmount();", "title": "" }, { "docid": "db1075f10c0cda5aceb6e0b6c693c866", "score": "0.54484767", "text": "double getPourcentageAttenduEffet();", "title": "" }, { "docid": "4f8d13f713d34cf7d67406203835b9a3", "score": "0.5442772", "text": "public static native byte[] UpdateFee_write(long obj);", "title": "" }, { "docid": "d27a8ca314a8b9d2eb310bba88aba17f", "score": "0.54395753", "text": "int getKittyAmount();", "title": "" }, { "docid": "930a7c46eea19eefedb5c052b010ae26", "score": "0.5418187", "text": "public static native long ChannelTransactionParameters_get_funding_outpoint(long this_ptr);", "title": "" }, { "docid": "270e500262d66a730cd1ba8d48768714", "score": "0.5415976", "text": "long getFrozenAmount();", "title": "" }, { "docid": "b143f0bcb28e25054ddd9bf44a500e94", "score": "0.54115874", "text": "double getBuyPrice();", "title": "" }, { "docid": "01166ab9562a20ad7d5545e5c966fbcb", "score": "0.54080224", "text": "public MoneyAmount calcPrice();", "title": "" }, { "docid": "ef610009360a7223419f381dbfd339a8", "score": "0.53981453", "text": "public int getReservationFee() {\n \treturn reservationFee;\n }", "title": "" }, { "docid": "a117af717ddc75168c964226066f9fa5", "score": "0.5397656", "text": "public int updateRate() {\n return 0;\n }", "title": "" }, { "docid": "9f9f90639d5e602abf2f6bfdb3293ad4", "score": "0.53728294", "text": "public static native long ChannelHandshakeLimits_get_min_funding_satoshis(long this_ptr);", "title": "" }, { "docid": "ef617a844376347b9bf9dd75e9344431", "score": "0.53725237", "text": "@Test\r\n public void testRateandFee()\r\n { \r\n DVDPlayer newDvd = new DVDPlayer();\r\n\r\n assertNotNull(newDvd); \r\n\r\n Money rate1 = new Dollar();\r\n newDvd.setWeeklyRate(rate1);\r\n\r\n assertEquals(0.00, newDvd.getWeeklyRate().asDouble(), 0.01);\r\n\r\n Money rate2 = new Dollar(9.99);\r\n newDvd.setWeeklyRate(rate2);\r\n assertEquals(9.99, newDvd.getWeeklyRate().asDouble(), 0.01);\r\n\r\n \r\n assertEquals(19.98, newDvd.calculateFee(2).asDouble(), 0.01);\r\n\r\n assertEquals(49.95, newDvd.calculateFee(5).asDouble(), 0.01);\r\n \r\n assertEquals(null, newDvd.calculateFee(0));\r\n\r\n\r\n }", "title": "" }, { "docid": "645b4b8c0154a255642d71f9c2667a53", "score": "0.5370772", "text": "public void changeFee (double newFee){\r\n\t\tthis.fee = newFee;\r\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "e43561398edd9bf84fa70b6337c229ad", "score": "0.0", "text": "@Override\r\n\tpublic void onHealthSport(final HealthSport arg0, HealthSportAndItems arg1) {\n\t\tif (arg0 != null) {\r\n\t\t\tmHandler.postDelayed(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsportSb.append(arg0.toString()+\"\\n\");\r\n\t\t\t\t\ttvSportData.setText(\"运动数据:\\n\\n\" + sportSb.toString());\r\n\t\t\t\t}\r\n\t\t\t}, 200);\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "11d67a80d2cd31685776b15ccccc59f0", "score": "0.65296996", "text": "@Override\n\t\t\tpublic void PridenieNaBielu() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "f9e89d9677a2c32741b998a15248d5eb", "score": "0.6487723", "text": "@Override\r\n\tpublic void Lyf() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "603f0a18e57250d8f455d8cee02b8630", "score": "0.64378566", "text": "@Override\r\n public void Refuel() {\n \r\n }", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "efda110dae3567ecb4380b4b672c3e8d", "score": "0.635662", "text": "public void anzeigen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74e8290546e9191e1ae5373cdf611067", "score": "0.632985", "text": "@Override\r\n\tpublic void Petrol() {\n\t\t\r\n\t}", "title": "" }, { "docid": "777efb33041da4779c6ec15b9d85097c", "score": "0.63003165", "text": "@Override\r\n\tpublic void attaque() {\n\t\t\r\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.62754047", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6219628", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "2a5b1784967271fc8f331ece95bee2d7", "score": "0.6173247", "text": "@Override\r\n\t\tpublic void Sudentcf() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "88ecb62c7a1a93131fb72fdf892b6e96", "score": "0.6163209", "text": "public void mo18969b() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "af1d7a03c29969bf292760b5053e6876", "score": "0.61020076", "text": "@Override\r\n\tpublic void avanzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c841421384f44238db014cb90fda536", "score": "0.609516", "text": "@Override\n\tpublic void foocall() {\n\t}", "title": "" }, { "docid": "0535d453c6fc64b6eaca5802d4fcc90b", "score": "0.6038407", "text": "@Override\r\n public void atacar() {\n }", "title": "" }, { "docid": "60b0611b3c431fd71ef675a97986d8ce", "score": "0.60336334", "text": "@Override\n\tpublic void bouger() {\n\t\t\n\t}", "title": "" }, { "docid": "93def8741e9801c804ccf94cc0a8c010", "score": "0.60311055", "text": "@Override\r\n\tpublic void comenzar() {\n\r\n\t}", "title": "" }, { "docid": "1eb850cd140029c3284631b6ea4a3a92", "score": "0.6027037", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124886", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124886", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "068782d4ca6b549d5b38c417ad4e7fbc", "score": "0.6000438", "text": "@Override\n\tpublic void embauche() {\n\t\t\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "59fd0ccdce9a8709416c7bdb0b2740f7", "score": "0.59167963", "text": "@Override\n public void solidaria() {\n \n \n }", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "5bb37ed5e0a08c04cb9e970f3e334584", "score": "0.5900665", "text": "@Override\n\tpublic void accion() {\n\n\t}", "title": "" }, { "docid": "f5d4f15bcecfb5439000bf8ce3463314", "score": "0.58953464", "text": "@Override\r\n protected void init() {\n \r\n }", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.58881694", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58730215", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "faf38c70a5abc38e6e6819931e05fdbb", "score": "0.5862488", "text": "@Override\n protected void initialize() { \n }", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "d735c08559b9ccd2b05318e486d52050", "score": "0.585777", "text": "@Override\n public void generate() {\n\n }", "title": "" }, { "docid": "c27a216ac709a1e3b9e7156e1c8104e5", "score": "0.5851762", "text": "public void initailize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7a47ca8b3a55006f92a271bd71da43b7", "score": "0.583262", "text": "@Override\n\tprotected void Sessioprovide() {\n\t\t\n\t}", "title": "" }, { "docid": "ea53a5ca5e3b174f6cc9c79515550cf9", "score": "0.58291394", "text": "@Override\n\tpublic void Faild() {\n\t}", "title": "" }, { "docid": "d8211552b23c886f56d98e4efc7a55fa", "score": "0.58270997", "text": "private void OI() {\n\t\t\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a92ef4f07b07ea7007bb9f92475a6a97", "score": "0.580496", "text": "private void UDPM() {\n\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4dcf8d1b9c1a18d89084161416469f7", "score": "0.5784581", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "329dcd36a53fe338909407efceaa048a", "score": "0.57815796", "text": "@Override\n\tpublic void ovr() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "17cb0676e79dae45623dcbdd6cf2af58", "score": "0.5772904", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5767454", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5756245", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6e516d7c552dcd925edbe971705ed31a", "score": "0.5742983", "text": "public void mo41019a() {\n }", "title": "" }, { "docid": "b07fa371b39d89d85ee2b46058153640", "score": "0.5741075", "text": "private void set() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f523d2f53f60a1ff3244e79927814898", "score": "0.5737052", "text": "public void mo46998a() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c5279e0c512854cbd0006208a1abf1e4", "score": "0.57304084", "text": "public void sprzedaj() {\n\t\t\n\t}", "title": "" }, { "docid": "4791f18ffa1db9cf9896372a4bb400cd", "score": "0.5712386", "text": "@Override\n\t\t\t\tpublic void update() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "b329688e04bd48d0184ad83234db5580", "score": "0.5702716", "text": "@Override\r\n public int describeContents() {\n return 0;\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "94016f621198b25fa3341ef2382c6876", "score": "0.5689651", "text": "@Override\n\tpublic void grandir() {\n\t\t\n\t}", "title": "" }, { "docid": "7a5ce2d278c2d189c1b8ef8c5af5d416", "score": "0.5686818", "text": "@Override\n\tprotected void initValue() {\n\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5685303", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "be566411d6ed8758a024d201a025c102", "score": "0.5682171", "text": "@Override\r\n\tprotected void update() {\n\t}", "title": "" }, { "docid": "264b73ede67394b8d57db8f3623673db", "score": "0.56804705", "text": "@Override\r\n\tpublic void afterConstruct() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a055db97fb04dc3ace542d55ba4eb731", "score": "0.5659786", "text": "public void wypozycz() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "704e96abbfbd46ebb60411493a1aaa91", "score": "0.5653795", "text": "@Override\r\n\tpublic void magic() {\n\r\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "ac4d27d4b1920ba89c921a96baa30e5d", "score": "0.0", "text": "@Override\n\tpublic void setApplicationLogger(ApplicationLogger applicationLogger) {\n\n\t}", "title": "" } ]
[ { "docid": "63a51b9825ac81396e1d7ad0b9f3ed82", "score": "0.6866318", "text": "@Override\n\tpublic void 군무() {\n\t\t\n\t}", "title": "" }, { "docid": "15ae679aae74424c73fde647cf4332f6", "score": "0.68461496", "text": "@Override\r\n\t\t\tpublic void hissetmek() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76a80470fd21f5a9092c258ed3a8a632", "score": "0.68199706", "text": "private static void 로또번호리스트() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bfad11e436c98998f434617a4d2907e5", "score": "0.6690517", "text": "@Override\r\n\tpublic void adharno() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "9969c2cd0a26f223be9eea348d1c6160", "score": "0.6571234", "text": "private static void 로또수동생성() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1dd3d9bdd67d8cc8bddfe021796a9286", "score": "0.6433148", "text": "@Override\n protected void lodate() {\n\n }", "title": "" }, { "docid": "b62655d47438ae6875a06d0702721dbc", "score": "0.6424808", "text": "@Override\r\n\t\t\tpublic void koklama() {\n\r\n\t\t\t}", "title": "" }, { "docid": "d92d5fe4c6efcfe66d53457e76817518", "score": "0.64108074", "text": "@Override\r\n\t\t\tprotected void init() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63912827", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dda3b5a5b8e9e69b6eec0807bf162606", "score": "0.63636446", "text": "@Override\r\n\tpublic void rozmnozovat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00075c50e26b18237953cd05ffd5428b", "score": "0.63032013", "text": "@Override\n\tpublic void beber() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "76e3d99118a00e74a082f6a955778f7d", "score": "0.62293875", "text": "Grensesnitt(){}", "title": "" }, { "docid": "61358eff9372995c8157b02d47a44a6a", "score": "0.6186996", "text": "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "title": "" }, { "docid": "bf8fefe7b85b49281edb456698bfd556", "score": "0.616781", "text": "@Override\r\n\tpublic void descansar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.61533993", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "106ce0ada7b978eeffda7ec9cccc29e2", "score": "0.61470556", "text": "public void дразнит() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6139653", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "958663dc976180cba7b91b2a4ebcb522", "score": "0.61089844", "text": "@Override\n\tpublic void atualiza() {\n\n\t}", "title": "" }, { "docid": "2bd152bb33ecbe797b9818e175c5d4ec", "score": "0.6105675", "text": "public void mo55659a() {\n }", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6063955", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.6063628", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "c95af00aee2fa41e8a03e3640ca30750", "score": "0.6041561", "text": "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60215324", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "0d996fa345e18b74a73dce6394fc0b15", "score": "0.60198766", "text": "@Override\r\n\tpublic void sunricers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "27c725838f280928d869cc973588317c", "score": "0.6001773", "text": "@Override\r\n\tpublic void doSelfOpertion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f350fb57d7c81ec6d70f2643960940a8", "score": "0.5986621", "text": "@Override \r\n public void init() {\n \r\n }", "title": "" }, { "docid": "4f035da85a44bb830509e046190e6ee5", "score": "0.59682363", "text": "@Override\r\n\tpublic void rajastanroyals() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a0486d5f3890f3b56ce5a39122c4bdd7", "score": "0.59527355", "text": "@Override\r\n\tvoid metodo4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c744960aa067b28111e99db9ddf6aeed", "score": "0.59477377", "text": "@Override\r\n\tpublic void fragancia() {\n\t\t\r\n\t}", "title": "" }, { "docid": "288fd3ee71b736e770bbef790831c263", "score": "0.59301406", "text": "User mo18615e();", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "416a053368cfd700d9d09414458911cd", "score": "0.58986443", "text": "@Override\n\tpublic void assamblyOfControlhead() {\n\t\t\n\t\t\n\t\t\n\t\n\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "77f859c241fd5e1d997f67c3b890833e", "score": "0.5886342", "text": "@Override\n\tpublic void dormir() {\n\t\t\n\t}", "title": "" }, { "docid": "40577cf33330bd70c08bc8e310b4436d", "score": "0.58706117", "text": "@Override\n\tpublic void falar() {\n\n\t}", "title": "" }, { "docid": "79c707f3d28263fcc89902b0527d5c14", "score": "0.58528596", "text": "public void mo736a() {\n }", "title": "" }, { "docid": "42c3f8e63385f8e328b6828c1f7243d4", "score": "0.584987", "text": "@Override\r\n\t\tpublic void method_4() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "60e50abec8df6d4d5a80de13ba750171", "score": "0.5842782", "text": "@Override\r\n\tpublic void retour() {\n\t\t\r\n\t}", "title": "" }, { "docid": "debc6b4612a5fe9f0680a6bff73f25e6", "score": "0.58388203", "text": "@Override\r\n\t\tpublic void emettreSon() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "a5d63cf5eb472d80fba18b0149c96501", "score": "0.5825308", "text": "@Override\n\tpublic void memberSecession() {\n\t\t\n\t}", "title": "" }, { "docid": "f4f7bcdf27874d7a17a80f57f8df43e0", "score": "0.5822819", "text": "public void mo10744d() {\n }", "title": "" }, { "docid": "d45e7311f809d3019d7382af887cb3cf", "score": "0.5799729", "text": "@Override\r\n\tpublic void dehlidervels() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "89b37f5fcca98bdfa7c243fc99d06675", "score": "0.5790634", "text": "@Override\r\n\tpublic void reanudar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4a3a3aeaffc4b367a8aa8488e4b59610", "score": "0.57720804", "text": "public void mo10856b() {\n }", "title": "" }, { "docid": "1c10afc999966d89d84d1fb549910281", "score": "0.5770528", "text": "@Override \n\t\tprotected void parse() {\t\t\t\n\t\t}", "title": "" }, { "docid": "a46afb3a57efda28ee1b37c4a9b1960f", "score": "0.57642525", "text": "private void getEx() {\n\r\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "b95bbed498007dfeba9b078798c02e53", "score": "0.5754483", "text": "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "03b93c6668ea7af171bbcdb3af74bb4a", "score": "0.57524616", "text": "@Override\n public void bicar() {\n }", "title": "" }, { "docid": "b2cde12cf50e0ec60f909684878e936c", "score": "0.57514966", "text": "@Override\n\tpublic void wykonajZamknij() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a53d232dac89259f961cbc93762f65b2", "score": "0.5731746", "text": "@Override\r\n\t\t\tvoid n() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "cf193ee51fc2ac8c94c94264e19ff99c", "score": "0.57304704", "text": "@Override\n public boolean cannibale() {\n return false;\n }", "title": "" }, { "docid": "3b072172b17a5e5ab0081f24545795f2", "score": "0.57235396", "text": "public void przymocowac() {\n\t\t\n\t}", "title": "" }, { "docid": "17e507b0166d99f88c8237ad30d967b7", "score": "0.5716563", "text": "public void zamowic() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "7bbf3f0011f317b7faa88562e06495b7", "score": "0.5714223", "text": "@Override\r\n public void reculer() {\n }", "title": "" }, { "docid": "1ba6f6b334c51461b3fe944110e91ef5", "score": "0.5707728", "text": "@Override\n\tpublic void comerHojas() {\n\t\t\n\t}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "2d9072b54f55f18557f92b99be58ec2f", "score": "0.56886935", "text": "@Override\r\n public String toString() {\n\treturn null;\r\n }", "title": "" }, { "docid": "0ca16e78cddd3c7d9de74c662606bbac", "score": "0.5686997", "text": "public void mo4570b() {\n }", "title": "" }, { "docid": "359579516b65b36ff8c4344d8363a3ed", "score": "0.5686103", "text": "@Override\r\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "09488e6c7d4190869b37b126a578249f", "score": "0.56821704", "text": "@Override\r\n\t/**\r\n\t * \r\n\t */\r\n\tpublic int size() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "001227e6b58a587f9eb4f77b15fc3588", "score": "0.5668976", "text": "@Override\n\tprotected void local() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
946e97676d72dc5ad9bdcb69d6d37140
Map for storing messages.
[ { "docid": "0b307bd0645d2dc851b01c47537022b2", "score": "0.0", "text": "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse resp)\n \t\tthrows ServletException, IOException {\n Map<String, String> messages = new HashMap<String, String>();\n req.setAttribute(\"messages\", messages);\n\n String stringId = req.getParameter(\"allergytypesid\");\n if (stringId == null || stringId.trim().isEmpty()) {\n messages.put(\"title\", \"Invalid AllergyTypesId\");\n messages.put(\"disableSubmit\", \"true\");\n } else {\n \t// Delete the BlogUser.\n \tAllergyTypes allergyTypes = new AllergyTypes(Integer.parseInt(stringId));\n\t try {\n\t \tallergyTypes = allergyTypesDao.delete(allergyTypes);\n\t \t// Update the message.\n\t\t if (allergyTypes == null) {\n\t\t messages.put(\"title\", \"Successfully deleted AllegyType \" + stringId);\n\t\t messages.put(\"disableSubmit\", \"true\");\n\t\t } else {\n\t\t \tmessages.put(\"title\", \"Failed to delete \" + stringId);\n\t\t \tmessages.put(\"disableSubmit\", \"false\");\n\t\t }\n\t } catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IOException(e);\n\t }\n }\n \n req.getRequestDispatcher(\"/AllergyTypesDelete.jsp\").forward(req, resp);\n }", "title": "" } ]
[ { "docid": "f09f89b2382098be8c234a0e2a42343e", "score": "0.6879249", "text": "public Map getMessageMap()\n\t{\n\t\treturn this.messageMap;\n\t}", "title": "" }, { "docid": "03e1b78a61e04b8e2e5eb9cde0e13a3f", "score": "0.6786957", "text": "public MapMessage() {\n/* 51 */ this.data = new TreeMap<String, String>();\n/* */ }", "title": "" }, { "docid": "bc3e66a44a48ea8e5cc252cbe43a18c7", "score": "0.6551586", "text": "public HashMap<String, ArrayList<NDMData>> getMessages(){\r\n\t\treturn messages;\r\n\t}", "title": "" }, { "docid": "115b786c93b3f0aca0438b2a25f37dd2", "score": "0.6412565", "text": "public void createMessageMap(String message,int messageId)\n\t{\n\t\tmessageMap.put(messageId,message);\n\t}", "title": "" }, { "docid": "06534c67cd7103e8c2ccf9b870935c30", "score": "0.64005417", "text": "public void addMessageMap(Map map)\n\t{\n\t\tif (map!=null)\n\t\t{\n\t\t\tif (messageMap==null)\n\t\t\t{\n\t\t\t\tmessageMap = new HashMap();\n\t\t\t}\n\t\t\tmessageMap.putAll(map);\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "fdced5e50b81183a11272d657040d573", "score": "0.63289595", "text": "private IMessage createMapMessage(Map<String,String> map, String recipient){\n\t\tIMessage message = MessageBuilder.getInstance().getMessage(IMessage.CLIENT_MAP_MESSAGE_TYPE,recipient);\n\t\tint i = 1;\n\t\tfor(String k : map.keySet()){\n\t\t\tif(k.equals(MAC_ADDRESS)){\n\t\t\t\tmessage.addContent(k, IMessage.concatContent(map.get(k), \"\"+0));\n\t\t\t}else{\n\t\t\t\tmessage.addContent(k, IMessage.concatContent(map.get(k), \"\"+i));\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\tmessage.prepare();\n\t\treturn message;\n\t}", "title": "" }, { "docid": "32fe8a918f585dab8f04b5b01ad3bdb0", "score": "0.62932914", "text": "public MessageService() {\n Message msg1 = new Message(1, \"karol\", new Date(), \"Hello!\");\n Message msg2 = new Message(2, \"grzes\", new Date(), \"Hello JAS!\");\n\n Map<Long, Comment> msg1Comments = new HashMap<>();\n msg1Comments.put(1L, new Comment(1L, \"welcome abroad!\", new Date(), \"grzes\"));\n msg1Comments.put(2L, new Comment(2L, \"thanks grzes!\", new Date(), \"karol\"));\n msg1.setComments(msg1Comments);\n\n Map<Long, Comment> msg2Comments = new HashMap<>();\n msg2Comments.put(1L, new Comment(1L, \"OMG, JAS?!\", new Date(), \"karol\"));\n msg2Comments.put(1L, new Comment(2L, \"shit happens!\", new Date(), \"grzes\"));\n msg2.setComments(msg2Comments);\n\n messages.put(msg1.getId(), msg1);\n messages.put(msg2.getId(), msg2);\n }", "title": "" }, { "docid": "1967b3524fd421bcadede2091a08636e", "score": "0.61028624", "text": "public MapMessage(Map<String, String> map) {\n/* 59 */ this.data = (map instanceof SortedMap) ? (SortedMap<String, String>)map : new TreeMap<String, String>(map);\n/* */ }", "title": "" }, { "docid": "69467249b68f791f7a09e878b245d9e4", "score": "0.6065596", "text": "public MessageService()\n\t{\n\t\tmessages.put(1L, new Message(1,\"Hello World\",\"Shubham\"));\n\t\tmessages.put(2L, new Message(2,\"Bye World\",\"Shubham\"));\n\t\t\n\t}", "title": "" }, { "docid": "6c52062d2cfdc9bcb3e5c1aa9ff510ac", "score": "0.6046096", "text": "@Override\n public void setMsgTypeMap() {\n\n }", "title": "" }, { "docid": "ba4e78c8adf68ba0fe670c35dda7601e", "score": "0.60049456", "text": "public AmqpMapMessage()\n {\n super();\n initialiseMessageBodyMap();\n setMessageAnnotation(ClientProperties.X_OPT_JMS_MSG_TYPE, ClientProperties.MAP_MESSAGE_TYPE);\n }", "title": "" }, { "docid": "c2b6e5c598603764443f5b9d117a4e2f", "score": "0.5971633", "text": "public void onMessage(Message message) {\n\t\t\t\t\tif(message instanceof MapMessage){\n\t\t\t\t\t\tMapMessage map = (MapMessage) message;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsave(map.getString(\"list\"));\n\t\t\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.println(\"收到非map消息\");\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "a0d0e3d7a8761b43eb64e40461a33e92", "score": "0.5888613", "text": "public interface Message<T> {\n\n public Map getMessageHeader();\n\n public T getMessageData();\n}", "title": "" }, { "docid": "323627a0fb397e5bce9913f897db72f2", "score": "0.5882907", "text": "private void addStringToHashMap(Integer counter,String incomingString) {\n shoutMessages.put(counter, incomingString);\n }", "title": "" }, { "docid": "c8fabe7f1556b44e229297d562e4a6f5", "score": "0.58374006", "text": "public void addMessageKey(String key, String info)\n\t{\n\t\tif (this.messageMap == null)\n\t\t{\n\t\t\tthis.messageMap = new HashMap<String,String>();\n\t\t}\n\t\tmessageMap.put(key, info);\n\t}", "title": "" }, { "docid": "8812150912dbef3ad116e1f871e27881", "score": "0.57777804", "text": "public void onMessage(Map<String, Object> message, Identity messageFrom);", "title": "" }, { "docid": "4083f461e9184303e194d7a54f5d4ecb", "score": "0.5730789", "text": "private void storeMessageStore() {\n System.out.println(\"Storing local messages\");\n new MessageParser().storeMessageStore(messageStore, true);\n messageStore.getMessages().clear();\n }", "title": "" }, { "docid": "9daf538080e4120e78a25edf8a0b5396", "score": "0.5653942", "text": "private Map<String, List<IMessage>> mapMessages(IMessage[] messages, FormText text) {\n\t\tList<String> pagesNames = new ArrayList<String>();\n\t\tfor (IMessage msg : messages) {\n\t\t\tif (msg.getControl() != null) {\n\t\t\t\tCTabItem item = findCTabItem(msg.getControl());\n\t\t\t\tfor (CTabItem it : item.getParent().getItems()) {\n\t\t\t\t\tpagesNames.add(it.getText());\n\t\t\t\t\tif (it.getImage() != null) {\n\t\t\t\t\t\ttext.setImage(it.getText(), it.getImage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tMap<String, List<IMessage>> res = new LinkedHashMap<String, List<IMessage>>();\n\t\tfor (String s : pagesNames) {\n\t\t\tres.put(s, new ArrayList<IMessage>());\n\t\t}\n\t\tres.put(OTHER_ERRORS, new ArrayList<IMessage>());\n\t\tfor (IMessage msg : messages) {\n\t\t\tForm container = findFormContainer(msg.getControl());\n\t\t\tString key = OTHER_ERRORS;\n\t\t\tif (container != null)\n\t\t\t\tkey = container.getText();\n\n\t\t\tres.get(key).add(msg);\n\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "a3ea2c8d9ce804a9f74842031fa18200", "score": "0.5643632", "text": "void putMessage(Message msg);", "title": "" }, { "docid": "5d20b2d01a966ae34caaaccaca6bf787", "score": "0.5597949", "text": "public interface IMsgService {\n \n void send(Message msg);\n\n Map<String ,List<Message>> getMessage(MsgStatus status, int offset, int pageSize);\n Map<String ,List<Message>> getMessage();\n}", "title": "" }, { "docid": "7346fc3d3c5e9052c83f772571523be4", "score": "0.5585268", "text": "Map<String, Object> send();", "title": "" }, { "docid": "89e0193c3a4360c75bde8a893c1d99d9", "score": "0.55747604", "text": "private void initialiseMessageBodyMap()\n {\n _messageBodyMap= new LinkedHashMap<String,Object>();\n getMessage().setBody(new AmqpValue(_messageBodyMap));\n }", "title": "" }, { "docid": "199aaa047f66352fdc8caefd1a12984f", "score": "0.5553153", "text": "public interface Message {\r\n String SUCCESS = \"0\";\r\n\r\n /**\r\n * add one or multiple key-value pairs to the message.\r\n *\r\n * @param keyValuePairs key-value pairs like 'a=1&b=2&...'\r\n */\r\n void addData(String keyValuePairs);\r\n\r\n /**\r\n * add one key-value pair to the message.\r\n *\r\n * @param key\r\n * @param value\r\n */\r\n void addData(String key, Object value);\r\n\r\n /**\r\n * Complete the message construction.\r\n */\r\n void complete();\r\n\r\n /**\r\n * @return key value pairs data\r\n */\r\n Object getData();\r\n\r\n /**\r\n * Message name.\r\n *\r\n * @return message name\r\n */\r\n String getName();\r\n\r\n /**\r\n * Get the message status.\r\n *\r\n * @return message status. \"0\" means success, otherwise error code.\r\n */\r\n String getStatus();\r\n\r\n /**\r\n * The time stamp the message was created.\r\n *\r\n * @return message creation time stamp in milliseconds\r\n */\r\n long getTimestamp();\r\n\r\n /**\r\n * Message type.\r\n *\r\n * <p>\r\n * Typical message types are:\r\n * <ul>\r\n * <li>URL: maps to one method of an action</li>\r\n * <li>Service: maps to one method of service call</li>\r\n * <li>Search: maps to one method of search call</li>\r\n * <li>SQL: maps to one SQL statement</li>\r\n * <li>Cache: maps to one cache access</li>\r\n * <li>Error: maps to java.lang.Throwable (java.lang.Exception and java.lang.Error)</li>\r\n * </ul>\r\n * </p>\r\n *\r\n * @return message type\r\n */\r\n String getType();\r\n\r\n /**\r\n * If the complete() method was called or not.\r\n *\r\n * @return true means the complete() method was called, false otherwise.\r\n */\r\n boolean isCompleted();\r\n\r\n /**\r\n * @return\r\n */\r\n boolean isSuccess();\r\n\r\n /**\r\n * Set the message status.\r\n *\r\n * @param status message status. \"0\" means success, otherwise error code.\r\n */\r\n void setStatus(String status);\r\n\r\n /**\r\n * Set the message status with exception class name.\r\n *\r\n * @param e exception.\r\n */\r\n void setStatus(Throwable e);\r\n\r\n /**\r\n * Set the message success status.\r\n */\r\n void setSuccessStatus();\r\n\r\n /**\r\n * Set the message timestamp\r\n *\r\n * @param timestamp\r\n */\r\n void setTimestamp(long timestamp);\r\n\r\n}", "title": "" }, { "docid": "e5254c86678e7c6adce92b28da9e3ee2", "score": "0.55492234", "text": "public Set<String> getMapKeys()\n {\n return _messageBodyMap.keySet();\n }", "title": "" }, { "docid": "3c7e2ba5fb15f84f46ba7e485eb1f32c", "score": "0.5507553", "text": "public void setMessageKey(String value)\r\n\t{\r\n\t\tthis.messageKey = value;\r\n\t}", "title": "" }, { "docid": "4ef388bb2ffc365c68225ca5af7e32b2", "score": "0.54916704", "text": "public interface Message {\n public String getSenderID();\n public void setSenderID(String senderID);\n public String getSenderName();\n public void setSenderName(String senderName);\n public String[] getRecivers();\n public void setRecivers(String[] recivers);\n public String getMessageType();\n public void setMessageType(String messageType);\n\n\n}", "title": "" }, { "docid": "4d8d5d5f9eb3a535556b94eada3a56c5", "score": "0.5486927", "text": "public synchronized Map<String, String> getReceivedMessage() {\n newMessageFlag = false;\n return receivedMessage;\n }", "title": "" }, { "docid": "bbbfc41cc4cf83551ddb5b9f3ec173bf", "score": "0.54848266", "text": "@Override\n public Collection<Entry<?, ?>> process(IncomingMessageEnvelope message, KeyValueStore store) {\n if (message.getKey() == null) {\n return ImmutableList.of();\n } else {\n // Skip serde if the message is null\n return ImmutableList.of(new Entry<>(keySerde.fromBytes((byte[]) message.getKey()),\n message.getMessage() == null ? null : msgSerde.fromBytes((byte[]) message.getMessage())));\n }\n }", "title": "" }, { "docid": "dc27a8a371807ed481ac4533eee84a71", "score": "0.5462285", "text": "@Override\r\n\tpublic Map<String, List<Object>> getHistoryChatMap() {\n\t\treturn historyChatMap;\r\n\t}", "title": "" }, { "docid": "830eeea5f34662478848b8cc76b37f7c", "score": "0.54508185", "text": "public interface Message {\n public String getData();\n public String getContent();\n public String getTopic();\n public int getId();\n}", "title": "" }, { "docid": "72569da8e38c51c82caf909b83ff3fe4", "score": "0.5419398", "text": "Messages getMessages();", "title": "" }, { "docid": "fd6fb9a41956e9ce7b085aeb157de654", "score": "0.5368204", "text": "public WritableMap parseRemoteMessage(RemoteMessage remoteMessage) {\n Notification notification = remoteMessage.getNotification();\n WritableMap createMap = Arguments.createMap();\n WritableMap createMap2 = Arguments.createMap();\n String notificationBody = getNotificationBody(notification);\n if (notificationBody != null) {\n createMap.putString(\"body\", notificationBody);\n }\n if (remoteMessage.getData() != null) {\n for (Entry entry : remoteMessage.getData().entrySet()) {\n createMap2.putString((String) entry.getKey(), (String) entry.getValue());\n }\n }\n createMap.putMap(UriUtil.DATA_SCHEME, createMap2);\n if (remoteMessage.getMessageId() != null) {\n createMap.putString(\"notificationId\", remoteMessage.getMessageId());\n }\n if (notification.getSound() != null) {\n createMap.putString(\"sound\", notification.getSound());\n }\n String notificationTitle = getNotificationTitle(notification);\n if (notificationTitle != null) {\n createMap.putString(\"title\", notificationTitle);\n }\n WritableMap createMap3 = Arguments.createMap();\n if (notification.getClickAction() != null) {\n createMap3.putString(\"clickAction\", notification.getClickAction());\n }\n if (notification.getColor() != null) {\n createMap3.putString(ViewProps.COLOR, notification.getColor());\n }\n if (notification.getIcon() != null) {\n WritableMap createMap4 = Arguments.createMap();\n createMap4.putString(\"icon\", notification.getIcon());\n createMap3.putMap(\"smallIcon\", createMap4);\n }\n if (notification.getTag() != null) {\n createMap3.putString(\"group\", notification.getTag());\n createMap3.putString(\"tag\", notification.getTag());\n }\n createMap.putMap(\"android\", createMap3);\n return createMap;\n }", "title": "" }, { "docid": "d89aa93f7628502e975b3bc57c50af2d", "score": "0.5330304", "text": "@Override\n protected HashMap<String, String> getMap() {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"userID\", \"\" + getUserId(1));\n map.put(\"userType\", \"\" + 1);\n return map;\n }", "title": "" }, { "docid": "a80761abf04d3294d26ed9e3f22961ae", "score": "0.5326683", "text": "@Override\n public void onMessage(Message message) {\n try {\n // Make sure thread priority is correct\n if (!Thread.currentThread().getName().equals(thread.getName())) {\n Thread.currentThread().setName(thread.getName());\n Thread.currentThread().setPriority(thread.getPriority());\n }\n\n MapMessage reply = (MapMessage) message;\n if (reply != null && reply.getMapNames().hasMoreElements()) {\n parseStats(reply);\n }\n } catch (JMSException jmse) {\n log.error(\"Failed to parse message: {}\", jmse.getMessage());\n }\n }", "title": "" }, { "docid": "479c19f7b395ec2e9fbc589f1ba63cb7", "score": "0.53069866", "text": "String getMessageKey();", "title": "" }, { "docid": "2408a5e7eee7827cddfdc6b42a2afd50", "score": "0.53024375", "text": "public static HashMap<Integer,String> getMessage(String filePath) throws MessagingException, NumberFormatException, IOException{\n\t HashMap<Integer,String> emlMap = new HashMap();\n\t ArrayList<File> listOfFiles = listFiles(filePath);\n\t Iterator itr = listOfFiles.iterator();\n\t while(itr.hasNext())\n\t {\n\t \t File file = (File) itr.next();\n\t \t InputStream is = new FileInputStream(file.getAbsoluteFile());\n\t MimeMessage msg = new MimeMessage(null, is);\n\t Integer interId = Integer.valueOf(getInterIdFromFile(file.getAbsolutePath()));\n\t String messages = (String)msg.getContent();\n\t emlMap.put(interId, messages);\n\t }\n\t \n\t return emlMap;\n\t }", "title": "" }, { "docid": "3b7484556e7b958fbecf28080b4abec3", "score": "0.5290846", "text": "public interface MQConsumerService {\n void receive(Map<Object,Object> map, Channel channel, Message message);\n}", "title": "" }, { "docid": "373d8d137788b1b46de2dbcfc3869c6b", "score": "0.52881414", "text": "public int map(String msg) {\n int k, x;\n if (size < 0 || msg == null)\n return -1;\n x = hash(msg);\n k = find(x);\n if (k < 0)\n k = -(k+1);\n if (k >= size) // wrapped to the first\n k = 0;\n\n return intChain[k][1];\n }", "title": "" }, { "docid": "b4072c899390ea13720a4099d0044e56", "score": "0.5283041", "text": "public void sendMapInformations() {\n\t\t\n\t\tCollection<Particl> parts = new ArrayList<Particl>(this.getParticls());\n\t\t\n\t\tfor (TcpClient client : this.clients) {\n\t\t\t\n\t\t\tParticlPositionMessage message = new ParticlPositionMessage(parts);\n\t\t\t\n\t\t\tclient.sendMessage(message);\n\t\t}\n\t}", "title": "" }, { "docid": "6071c4a6cfb8d726e28a23e202b4a17e", "score": "0.5278153", "text": "@Override\n public void updateMessage(Message message) {\n messages.put(message.getHeader().getMessageId(), message);\n }", "title": "" }, { "docid": "118b8ad5f3337a8e38a89761b5eb6fe3", "score": "0.52749664", "text": "public void storeChatLog(int messageNumber, ChatLog chatLog) {\n\t\tmapChatLog.put(messageNumber, chatLog);\r\n\t}", "title": "" }, { "docid": "8aaf0493a30cf4264313a88ea57c3e19", "score": "0.5274383", "text": "public void updateMessages(Message m)\r\n {\r\n messageArray.add(m);\r\n //saveMessage(m);\r\n }", "title": "" }, { "docid": "c47874763e0432c514b077e332d54e95", "score": "0.5265216", "text": "public Map<String, List<String>> getMap() {\n\n map.put(\"aboutme\", Collections.singletonList(sb.toString()));\n map.put(\"projects\",projectList);\n return map;\n }", "title": "" }, { "docid": "fe7928fdd3122a326bd95bbf2024d333", "score": "0.52589864", "text": "public interface IMessage {\n /**\n * Sender id of the message\n * @return the sender id of the message\n */\n int getSenderID();\n\n /**\n * Receiver id of the message\n * @return the receiver id of the message\n */\n int getReceiverID();\n\n /**\n * New distance vector of the sender\n * @return the new distance vector of the sender\n */\n HashMap<Integer, Integer> getDistanceVectorEstimates();\n}", "title": "" }, { "docid": "ebbaeb7c5ed34b7a4077180c3ae990a4", "score": "0.5254816", "text": "public interface Message {\n\n Integer getId();\n\n void setId(Integer id);\n\n String getName();\n\n void setName(String name);\n\n String getDesc();\n\n void setDesc(String desc);\n}", "title": "" }, { "docid": "273de485cf097cb563138e0a2f2e35d4", "score": "0.52466846", "text": "void saveMessages(List<Message> messages);", "title": "" }, { "docid": "16089f6f29dafb6f6428f606d12e38e2", "score": "0.52260846", "text": "@Override\r\n\tpublic Map<String, Integer> getUnreadChatCountMap() {\n\t\treturn unreadChatCountMap;\r\n\t}", "title": "" }, { "docid": "6c1d1554723b3736827bbea1f30903d1", "score": "0.5220413", "text": "@Override\n\tpublic void onMessage(String key, BapMQMessage message) {\n\t\tlog.info(ObjectUtil.serializeByObjectMapper(message));\n\t}", "title": "" }, { "docid": "f284dc34b169ba4d1688461dd6432be9", "score": "0.5212269", "text": "public MessageTranslator() {\n\t\tthis.generators = new HashMap<String, EventGenerator>();\n\n\t\t// Inbound events\n\t\tthis.registerTranslation(\"LOGINBAD\", LoginResponse.class);\n\t\tthis.registerTranslation(\"LOGINOK\", LoginResponse.class);\n\t\tthis.registerTranslation(\"INARENA\", EnteredArena.class);\n\t\tthis.registerTranslation(\"PLAYER\", PlayerEntered.class);\n\t\tthis.registerTranslation(\"ENTERING\", PlayerEntered.class);\n\t\tthis.registerTranslation(\"LEAVING\", PlayerLeft.class);\n\t\tthis.registerTranslation(\"SHIPFREQCHANGE\", PlayerUpdate.class);\n\t\tthis.registerTranslation(\"KILL\", PlayerDeath.class);\n\t\tthis.registerTranslation(\"MSG\", InboundChatMessage.class);\n\t\t//this.registerTranslation(\"NOOP\", null); // Probably unnecessary...\n\n\t\t// Outbound events\n\t\tthis.registerTranslation(\"GO\", ChangeArena.class);\n\t\tthis.registerTranslation(\"CHANGEFREQ\", ChangeFrequency.class);\n\t\tthis.registerTranslation(\"SEND\", OutboundChatMessage.class);\n\t}", "title": "" }, { "docid": "85d7af0a576353248a6f96c0031c496f", "score": "0.52115726", "text": "@Override\n public synchronized void respondToMessage(Map<String, String> message) {\n receivedMessage = message;\n newMessageFlag = true;\n }", "title": "" }, { "docid": "251a6f4ab23b22aff20fcc8ff22a1a51", "score": "0.52086174", "text": "Map<String, String> write();", "title": "" }, { "docid": "98ebef418bf47580e9648065b03c0fb8", "score": "0.52002823", "text": "public Map<Locale, String> getCommentsMap();", "title": "" }, { "docid": "ca406176233b336e02b23381fa1f6341", "score": "0.5177348", "text": "public interface IMessageService {\n\n public JSONArray unSubmitedHomeworkList(Integer sId);\n\n public JSONArray recentHomeworkList(Integer sId);\n\n public JSONArray feedback(Integer sId);\n\n public Map message(HwUser user);\n}", "title": "" }, { "docid": "b8d6e34f8f2babbc1a7d241e945d8620", "score": "0.5171484", "text": "protected void mo1286a(HashMap<String, String> hashMap) {\n super.mo1286a((HashMap) hashMap);\n hashMap.put(\"method\", \"sendmsgtouser\");\n hashMap.put(SpeechConstant.APP_ID, this.f1626d);\n hashMap.put(\"user_id\", this.f1627e);\n if (this.f1629g != null && this.f1628f != null) {\n StringBuilder stringBuilder = new StringBuilder(\"[\\\"\");\n stringBuilder.append(this.f1628f).append(\"\\\"]\");\n StringBuilder stringBuilder2 = new StringBuilder(\"[\\\"\");\n stringBuilder2.append(this.f1629g).append(\"\\\"]\");\n hashMap.put(\"msg_keys\", stringBuilder.toString());\n hashMap.put(\"messages\", stringBuilder2.toString());\n }\n }", "title": "" }, { "docid": "4ee7742c46dcf9ef0151877604d2223b", "score": "0.51709956", "text": "public Collection<Message> getMessages();", "title": "" }, { "docid": "3aa1f5cfec73c3a70856d53e21048065", "score": "0.5162753", "text": "private Message getMessageFromMap(int sequenceNumber) {\n\t\t\treturn Resources.sHoldBackMap.get(sequenceNumber);\n\t\t}", "title": "" }, { "docid": "40d24d80df1f836e9e1010144b0e0263", "score": "0.515498", "text": "public void addMessage(Message message);", "title": "" }, { "docid": "dff3a4d98638d193d85528d4b64a8f7e", "score": "0.5136697", "text": "public interface Messages {\n\n /**\n * @return current locale\n */\n public Locale getLocale();\n\n /**\n * If no basename is provided this method returns DEFAULT_BASENAME.\n * @return current basename\n */\n public String getBasename();\n\n /**\n * Get the message from the bundle.\n * @param key the key\n * @return message\n */\n public String get(String key);\n\n /**\n * Replace the {n} parameters in the string.\n * @see java.text.MessageFormat#format(String, Object...)\n */\n public String get(String key, Object[] args);\n\n /**\n * You can provide a default value if the key is not found.\n * @param key key\n * @param defaultMsg the default message\n * @return the message\n */\n public String getWithDefault(String key, String defaultMsg);\n\n /**\n * With default value and replacement strings.\n * @param key key\n * @param args replacement strings\n * @param defaultMsg default message\n * @return message\n */\n public String getWithDefault(String key, Object[] args, String defaultMsg);\n\n /**\n * Iterate over the keys.\n * @return iterator\n */\n public Iterator<String> keys();\n\n /**\n * Reload the messages.\n * @throws Exception\n */\n public void reload() throws Exception;\n\n}", "title": "" }, { "docid": "0cacad59673fe0444b56ead423ff9571", "score": "0.51356417", "text": "public String getMessageInfo(String key)\n\t{\n\t\tif (this.messageMap != null)\n\t\t{\n\t\t\treturn (String) this.messageMap.get(key);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "58a69b63d4231788c28c93b23e438305", "score": "0.51339966", "text": "public List<Message> getMessages();", "title": "" }, { "docid": "58a69b63d4231788c28c93b23e438305", "score": "0.51339966", "text": "public List<Message> getMessages();", "title": "" }, { "docid": "fbd97d9a6f1c3d4a03fc023d14fef00b", "score": "0.5130401", "text": "public interface Message {\n\n String USER_NAME_BLANK = \"Please enter your user id\";\n String USER_NAME_LENGTH = \"User name should be at least 3 and less than 20 symbols\";\n String USER_ALREADY_REGISTERED = \"User id registered already\";\n String USER_NAME_CONTAIN_SPACES = \"User id should not contain space\";\n String USER_NAME_NOT_FOUND = \"Entered id could not be found. Please register\";\n String USER_NAME_MISSING = \"User name not found\";\n String USER_ROLE_NOT_FOUND = \"This role does not exist\";\n\n String WELCOME_SESSION_REMOVED = \"Previous session have been deleted\";\n\n String PASSWORD_INCORRECT = \"Incorrect password\";\n String PASSWORD_BLANK = \"Please enter your password\";\n String PASSWORD_LENGTH = \"Password should contain more than 3 characters and less than 20\";\n String PASSWORD_SYNTAX = \"Password should contain alphabet characters and at least one number\";\n\n String EMAIL_ALREADY_REGISTERED = \"This email already in use\";\n String EMAIL_LENGTH = \"Email is too long. (Should be less then 50 symbols)\";\n String EMAIL_MISSING = \"Email is missing\";\n\n String AVATAR_SIZE = \"Image size too big. (Should be less than 100KB)\";\n\n String UPDATED = \"Successfully updated\";\n String NOTHING_UPDATE = \"Nothing to update\";\n\n String ADD_RECORD_FIELD_BLANK = \"Should not be blank\";\n\n String ERROR_NO_LOGIN_SESSION = \"Login session is missing\";\n String ERROR_USER_WITH_YOUR_NAME_ONLINE = \"User with your name is online\";\n String ERROR_ROLE = \"No access for your role\";\n String ERROR_REMOVE_YOURSELF = \"Please do not remove yourself!\";\n\n String GAME_OPPONENT_TURN = \"Opponent Turn\";\n String GAME_YOUR_TURN = \"Your Turn\";\n\n}", "title": "" }, { "docid": "ae99fe7ae969b07ec97a5b21bdd53603", "score": "0.511588", "text": "private Message buildMessage(ReadableMap readableMap, ReadableArray readableArray) {\n String type = Message.MESSAGE_TYPE_EDDYSTONE_UID;\n String nameSpace = Message.MESSAGE_NAMESPACE_RESERVED;\n\n if (readableMap == null) {\n Log.i(getName(), \"Message readableMap is null.\");\n return new Message(HMSUtils.getInstance().convertReadableArrayToByteArray(readableArray));\n }\n\n if (HMSUtils.getInstance().hasValidKey(readableMap, \"type\", ReadableType.String)) {\n type = readableMap.getString(\"type\");\n Log.i(getName(), \"Message type set.\");\n }\n\n if (HMSUtils.getInstance().hasValidKey(readableMap, \"namespace\", ReadableType.String)) {\n nameSpace = readableMap.getString(\"namespace\");\n Log.i(getName(), \"Message nameSpace set.\");\n }\n\n return new Message(HMSUtils.getInstance().convertReadableArrayToByteArray(readableArray), type, nameSpace);\n }", "title": "" }, { "docid": "5ccaa05815e60dd917fddea60efaac56", "score": "0.5104815", "text": "MulticastWorker(AbstractMap.SimpleImmutableEntry<String[], byte[]> msg) {\n this.header = msg.getKey();\n this.body = msg.getValue();\n\n //System.out.println(\"->\" + Arrays.toString(header));\n }", "title": "" }, { "docid": "86fbbceb815a947ff791cf5359b06640", "score": "0.5098169", "text": "public void storeMessage(Message message) {\n Entity messageEntity = new Entity(\"Message\", message.getId().toString());\n messageEntity.setProperty(\"user\", message.getUser());\n messageEntity.setProperty(\"text\", message.getText());\n messageEntity.setProperty(\"timestamp\", message.getTimestamp());\n messageEntity.setProperty(\"commentIDsAsStrings\", convertUuidsToStrings(message.getCommentIDs()));\n messageEntity.setProperty(\"likeEmails\", message.getLikeEmails());\n\n datastore.put(messageEntity);\n }", "title": "" }, { "docid": "34411475ddcfe26216d7eb9051889799", "score": "0.5092175", "text": "public void addMessage(String message){\n messages.add(message);\n }", "title": "" }, { "docid": "a8b75c1198441e293e5b86115aa3ea6a", "score": "0.50811917", "text": "public void addMessage(Object m) {\r\n add(m);\r\n }", "title": "" }, { "docid": "34608bacd280ab381b7472f8038ec54c", "score": "0.5069907", "text": "public Map<String, String> mo41980d() {\n HashMap hashMap = new HashMap();\n hashMap.put(\"appmetrica_push_version\", \"23\");\n hashMap.put(\"appmetrica_push_version_name\", \"1.5.1\");\n hashMap.put(\"appmetrica_push_transport\", \"firebase\");\n return hashMap;\n }", "title": "" }, { "docid": "59dc2b6b4a1609b4ee24fb11904e17fe", "score": "0.50658244", "text": "@Override\n\tpublic void setMap(ConcurrentHashMap<String, Command> map) {\n\t\t\n\t}", "title": "" }, { "docid": "2bf82a2a100a7ff518fdf25d03545f80", "score": "0.5054368", "text": "public Message() \n\t{\n\t\tdataElements = new HashMap<String,Serializable>();\n\t\tdataElements.put(ID_MESSAGEID, Message.getNewMessageID());\n\t\tdataElements.put(ID_SENDTIME, -1.0);\n\t\tdataElements.put(ID_RECEIVETIME, -1.0);\n\t\tdataElements.put(ID_REQUESTTYPE, null);\n\t}", "title": "" }, { "docid": "97c1b110ae3f9a9732fe59ce9d6a8b22", "score": "0.505405", "text": "public interface MessageService {\n\n public Message getMessageById(long id);\n\n public List<Message> getMessageByTo(String toUuid);\n\n public List<Message> getMessageByFrom(String fromUuid);\n\n public long insertTextMessage(Message message, TextMessage textMessage);\n}", "title": "" }, { "docid": "b4c10ef530f6ff2840384434515cf966", "score": "0.5053305", "text": "public interface Message\n\t{\t\n\t\t/**\n\t\t * returning the offset of that particular message \n\t\t * @return long\n\t\t */\n\t\tlong getOffset ();\n\t\t/**\n\t\t * returning the message \n\t\t * @return message\n\t\t */\n\t\tString getMessage ();\n\t}", "title": "" }, { "docid": "342961d5e7fbb811df8d2181a2b7af98", "score": "0.5052895", "text": "public static HashMap<Integer, ChatClient> getHashmap() {\n\t\treturn lookup;\n\t}", "title": "" }, { "docid": "1ce71cb9c88576466c7ae1a27eb8f993", "score": "0.5051334", "text": "public ConcurrentHashMap<String, String> getMessageReceivedTimeStamp() {\n if (mLogger.isLoggable(Level.FINE) && mLastMessageReceivedMap != null) {\n mLogger.log(Level.FINE, \"Last message received from Active Client Connections for server: \" + mServerID + \" are: \"\n + mLastMessageReceivedMap.toString());\n }\n return mLastMessageReceivedMap;\n }", "title": "" }, { "docid": "9a2d5491005002643f94300a62e0c94c", "score": "0.5047328", "text": "@Override\n\t\tpublic void onMessage(String channel, String message) {\n\t\t\tif (messageList.size() < messageCount) {\n\t\t\t\tmessageList.add(message);\n\t\t\t\tlogger.debug(\"[onMessage] Added new message to messageList, new count = \" + messageList.size());\n\t\t\t}\n\t\t\tlastAccessedTime = new Date().getTime();\t\t// time when message last received from REDIS\n\t\t}", "title": "" }, { "docid": "9b041df2aa4686f086a900a7651e879a", "score": "0.5044637", "text": "public interface MessageMapper {\n /**\n * 消息列表\n *\n * @param message\n * @return\n */\n List<Message> selectByMessage(Message message);\n\n /**\n * 标记为已读(单个或是批量)\n *\n * @param ids\n * @return\n */\n Integer readMessage(Integer[] ids);\n\n /**\n * 删除消息(伪删除)\n *\n * @param ids\n * @return\n */\n Integer del(Integer[] ids);\n\n /**\n * 添加消息信息\n *\n * @param message\n * @return\n */\n Integer add(Message message);\n\n /**\n * 查询消息记录数\n *\n * @param message\n * @return\n */\n Integer selectCount(Message message);\n\n Message get(Integer id);\n\n Integer updateOperStatus(Message message);\n\n Integer getMessageNo();\n\n Integer insertMessageNoByOperinfo(MessageOperinfo messageOperinfo);\n\n /**\n * @param userType\n * @param flowBusinessId\n * @param operStatus\n * @param messageBusinessType\n * @return\n */\n List<Message> selectMessageByUFO(@Param(\"userType\") Integer userType, @Param(\"flowBusinessId\") Integer flowBusinessId, @Param(\"operStatus\") Integer operStatus,@Param(\"messageBusinessType\") Integer messageBusinessType);\n}", "title": "" }, { "docid": "fc5b0868629ead3925928e9d5446c161", "score": "0.5040302", "text": "public void addMessage(MessageManager message) throws\n MessageServiceException {\n Map index = (Map)threadIndex.get();\n index.put(message.getID(),message);\n }", "title": "" }, { "docid": "f1ed4dff60e53801029cddc8ca97279c", "score": "0.50344586", "text": "public Map<String, String> getFreeMarkerData() {\r\n\t\tfinal Map<String, String> data = new ConcurrentHashMap<String, String>();\r\n\t\tdata.put(SOAErrorLibraryConstants.ID, errorID);\r\n\t\tdata.put(SOAErrorLibraryConstants.ERR_PROP_NID, \"\" + nID);\r\n\t\tdata.put(SOAErrorLibraryConstants.ERR_PROP_CATEGORY, category);\r\n\t\tdata.put(SOAErrorLibraryConstants.ERR_PROP_NAME, name);\r\n\t\tdata.put(SOAErrorLibraryConstants.ORGANIZATION, organization);\r\n\t\tdata.put(SOAErrorLibraryConstants.ERR_PROP_SEVERITY, severity);\r\n\t\tdata.put(SOAErrorLibraryConstants.ERR_PROP_MESSAGE, message);\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "bf51949cba264088490b98b9aebe9261", "score": "0.5033867", "text": "private Map<String, Object> getModelMapError(String msg, Object data) {\n\n Map<String, Object> modelMap = new HashMap<String, Object>(2);\n modelMap.put(\"message\", msg);\n modelMap.put(\"success\", false);\n modelMap.put(\"data\", data);\n return modelMap;\n }", "title": "" }, { "docid": "4007feeef9dead74eb51af4fc9f71a18", "score": "0.503023", "text": "@Override\n\tpublic void onMessage(Message message) {\n\t\ttry {\n\t\t\tif (message.getJMSType().equals(\"map\")) {\n\t\t\t\tSystem.out.println(message);\n\t\t\t\tStreamMessage msg = (StreamMessage) message;\n\t\t\t\tint tailleMatrice = msg.readInt();\n\t\t\t\tint[][] matrice = new int [tailleMatrice][tailleMatrice];\n\t\t\t\tfor (int i = 0; i < tailleMatrice; i++) {\n\t\t\t\t\tfor(int j = 0; j<tailleMatrice; j++) {\n\t\t\t\t\t\tmatrice[i][j] = msg.readInt();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfen.creationCarte(matrice);\n\t\t\t\tfen.repaint();\n\n\t\t\t};\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0949a7280d8ae0a62015f1146e1d00af", "score": "0.5029151", "text": "public Message addMessage(Message message);", "title": "" }, { "docid": "7ba44719c8279d666f3eaa35e10fbfc5", "score": "0.50214726", "text": "public void setMessages(List<Message> messages) { this.messages =\n messages; }", "title": "" }, { "docid": "d35b3c3d06997decc77e25c559227fcd", "score": "0.50168794", "text": "@Override\n\tpublic void add(AbstractMessage message) \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "9dd558ce5be90a8bf4f4f89d0c4d1d5e", "score": "0.5014365", "text": "void addMessage(String msg);", "title": "" }, { "docid": "668bac093bd0487bcf458dd18d7cb2c7", "score": "0.5006067", "text": "public String getMessageKey() {\r\n return messageKey;\r\n }", "title": "" }, { "docid": "2026acb7ece2b2296d698a3709d7dd6c", "score": "0.50021946", "text": "public Map<String, Object> getInfo() {\n\t\tMap<String, Object> result = new HashMap<String, Object>();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Services Conductor Status:\\n\")\n\t\t\t\t.append(\"Paused: \" + isPaused() + \"\\n\")\n\t\t\t\t.append(\"PID Queue: \" + this.pidQueue.size() + \"\\n\")\n\t\t\t\t.append(\"Collision List: \" + this.collisionList.size() + \"\\n\")\n\t\t\t\t.append(\"Locked pids: \" + this.lockedPids.size() + \"\\n\")\n\t\t\t\t.append(\"Failed pids: \" + this.failedPids.size() + \"\\n\")\n\t\t\t\t.append(\n\t\t\t\t\t\t\"Executor: \" + executor.getActiveCount() + \" active workers, \" + executor.getQueue().size()\n\t\t\t\t\t\t\t\t+ \" queued\");\n\t\tresult.put(\"message\", sb.toString());\n\t\treturn result;\n\t}", "title": "" }, { "docid": "a319f99c317d0a8e811fc0129f23baba", "score": "0.4999732", "text": "public java.util.List<java.lang.String>\n getMessagesList() {\n return messages_;\n }", "title": "" }, { "docid": "c2e6272bf042752fb58f91114bfc9bfc", "score": "0.49935627", "text": "@Override\n public int hashCode() {\n logger.trace(\"hashCode()\");\n\n return message.hashCode();\n }", "title": "" }, { "docid": "ff53da05d4358536c2629329ef99b51c", "score": "0.4990887", "text": "private Map<TopicPartition, Errors> nonExistingTopicErrors() {\n return Maps.newHashMap();\n }", "title": "" }, { "docid": "4da245645afa8bf8752ddf14ce5957fe", "score": "0.498887", "text": "public interface ChatMessage\n{\n /**\n * The message type representing outgoing messages.\n */\n int OUTGOING_MESSAGE = 0;\n /**\n * The message type representing incoming messages.\n */\n int INCOMING_MESSAGE = 1;\n /**\n * The message type representing status messages.\n */\n int STATUS_MESSAGE = 2;\n /**\n * The message type representing action messages. These are message specific\n * for IRC, but could be used in other protocols also.\n */\n int ACTION_MESSAGE = 3;\n /**\n * The message type representing system messages.\n */\n int SYSTEM_MESSAGE = 4;\n /**\n * The message type representing sms messages.\n */\n int SMS_MESSAGE = 5;\n /**\n * The message type representing error messages.\n */\n int ERROR_MESSAGE = 6;\n /**\n * The history incoming message type.\n */\n int HISTORY_INCOMING_MESSAGE = 7;\n /**\n * The history outgoing message type.\n */\n int HISTORY_OUTGOING_MESSAGE = 8;\n\n /**\n * Returns the name of the contact sending the message.\n *\n * @return the name of the contact sending the message.\n */\n String getContactName();\n\n /**\n * Returns the display name of the contact sending the message.\n *\n * @return the display name of the contact sending the message\n */\n String getContactDisplayName();\n\n /**\n * Returns the date and time of the message.\n *\n * @return the date and time of the message.\n */\n Date getDate();\n\n /**\n * Returns the type of the message.\n *\n * @return the type of the message.\n */\n int getMessageType();\n\n /**\n * Returns the content of the message.\n *\n * @return the content of the message.\n */\n String getMessage();\n\n /**\n * Returns the content type (e.g. \"text\", \"text/html\", etc.).\n *\n * @return the content type\n */\n String getContentType();\n\n /**\n * Returns the UID of this message.\n *\n * @return the UID of this message.\n */\n String getMessageUID();\n\n /**\n * Returns the UID of the message that this message replaces, or\n * <tt>null</tt> if this is a new message.\n *\n * @return the UID of the message that this message replaces, or\n * <tt>null</tt> if this is a new message.\n */\n String getCorrectedMessageUID();\n\n /**\n * Indicates if given <tt>nextMsg</tt> is a consecutive message or if\n * the <tt>nextMsg</tt> is a replacement for this message.\n *\n * @param nextMsg the next message to check\n * @return <tt>true</tt> if the given message is a consecutive or\n * replacement message, <tt>false</tt> - otherwise\n */\n boolean isConsecutiveMessage(ChatMessage nextMsg);\n\n /**\n * Merges given message. If given message is consecutive to this one, then\n * their contents will be merged. If given message is a replacement message\n * for <tt>this</tt> one, then the replacement will be returned.\n * @param consecutiveMessage the next message to merge with <tt>this</tt>\n * instance(it must be consecutive in terms of\n * <tt>isConsecutiveMessage</tt> method).\n * @return merge operation result that should be used instead of this\n * <tt>ChatMessage</tt> instance.\n */\n ChatMessage mergeMessage(ChatMessage consecutiveMessage);\n\n /**\n * Returns the UID that should be used for matching correction messages.\n * @return the UID that should be used for matching correction messages.\n */\n String getUidForCorrection();\n\n /**\n * Returns original message content that should be given for the user to\n * edit the correction.\n *\n * @return original message content that should be given for the user to\n * edit the correction.\n */\n String getContentForCorrection();\n\n /**\n * Returns message content that should be used for copy and paste\n * functionality.\n * @return message content that should be used for copy and paste\n * functionality.\n */\n String getContentForClipboard();\n}", "title": "" }, { "docid": "2af89e7681e6dba36a28570c7fe566b3", "score": "0.49749586", "text": "private MessagesHelper() {\n messageSource = (MessageSource) ApplicationContextUtils.getApplicationContext().getBean(\n \"messageSource\");\n localizedMaleGenderTextMap = new LinkedHashMap<String, Map<String, String>>();\n localizedFemaleGenderTextMap = new LinkedHashMap<String, Map<String, String>>();\n Map<String, String> maleGenderTextMap = new LinkedHashMap<String, String>();\n Map<String, String> femaleGenderTextMap = new LinkedHashMap<String, String>();\n Map<String, String> neutralGenderTextMap = new LinkedHashMap<String, String>();\n final String[] maleFormat = Constants.ASSESSMENT_QUESTIONS_MALE_FORMAT;\n final String[] femaleFormat = Constants.ASSESSMENT_QUESTIONS_FEMALE_FORMAT;\n final String[] neutralFormat = Constants.ASSESSMENT_QUESTIONS_NEUTRAL_FORMAT;\n for (int i = 0; i < maleFormat.length; i++) {\n String maleText = maleFormat[i];\n String femaleText = femaleFormat[i];\n String neutralText = neutralFormat[i];\n String key = maleText + StringUtils.capitalize(femaleText)\n + StringUtils.capitalize(neutralText);\n maleGenderTextMap.put(key, maleText);\n femaleGenderTextMap.put(key, femaleText);\n neutralGenderTextMap.put(key, neutralText);\n }\n localizedFemaleGenderTextMap.put(Constants.DEFAULT_LOCALE, femaleGenderTextMap);\n localizedMaleGenderTextMap.put(Constants.DEFAULT_LOCALE, maleGenderTextMap);\n localizedGenderTextArrayMap = new HashMap<String, String[]>();\n localizedGenderTextArrayMap.put(Constants.DEFAULT_LOCALE + Gender.M, maleFormat);\n localizedGenderTextArrayMap.put(Constants.DEFAULT_LOCALE + Gender.F, femaleFormat);\n localizedGenderTextArrayMap.put(Constants.DEFAULT_LOCALE + Gender.N, neutralFormat);\n }", "title": "" }, { "docid": "e957916849d9e4e355e926057ef829d0", "score": "0.49692553", "text": "void insert(Message message);", "title": "" }, { "docid": "96e373eedd045734883e973c5507a07c", "score": "0.49661842", "text": "private String getStringFromHashMap(int incomingIndex) {\n return this.shoutMessages.get(incomingIndex);\n }", "title": "" }, { "docid": "dfb28ff4913fec70bf27f3036e8cd4b6", "score": "0.4963329", "text": "private DataMessageTempStore()\n {\n _inboxMessages = new ReadableListImpl();\n _deletedMessages = new ReadableListImpl();\n }", "title": "" }, { "docid": "06bc81b300a261e72df21ef476b9db6f", "score": "0.49620584", "text": "private static Map<String, List<C13959e>> m41180e() {\n HashMap hashMap = new HashMap();\n ArrayList arrayList = new ArrayList();\n arrayList.add(new C13958d());\n hashMap.put(\"com.facebook.platform.action.request.OGACTIONPUBLISH_DIALOG\", f36921a);\n hashMap.put(\"com.facebook.platform.action.request.FEED_DIALOG\", f36921a);\n hashMap.put(\"com.facebook.platform.action.request.LIKE_DIALOG\", f36921a);\n hashMap.put(\"com.facebook.platform.action.request.APPINVITES_DIALOG\", f36921a);\n hashMap.put(\"com.facebook.platform.action.request.MESSAGE_DIALOG\", arrayList);\n hashMap.put(\"com.facebook.platform.action.request.OGMESSAGEPUBLISH_DIALOG\", arrayList);\n hashMap.put(\"com.facebook.platform.action.request.CAMERA_EFFECT\", f36924d);\n hashMap.put(\"com.facebook.platform.action.request.SHARE_STORY\", f36921a);\n return hashMap;\n }", "title": "" }, { "docid": "ac24f2cf9f62ff100fa9b72227858759", "score": "0.49561158", "text": "public TileMapPlayerDataMessage() {\n super();\n }", "title": "" }, { "docid": "7677b8b6b45b681b1557c4cd5280ec66", "score": "0.49558198", "text": "public java.util.List<java.lang.String>\n getMessagesList() {\n return java.util.Collections.unmodifiableList(messages_);\n }", "title": "" }, { "docid": "a3822c71bb59ab22eca550ce39d647fc", "score": "0.49555823", "text": "java.util.List<io.dstore.engine.Message> \n getMessageList();", "title": "" }, { "docid": "a3822c71bb59ab22eca550ce39d647fc", "score": "0.49555823", "text": "java.util.List<io.dstore.engine.Message> \n getMessageList();", "title": "" }, { "docid": "a3822c71bb59ab22eca550ce39d647fc", "score": "0.49555823", "text": "java.util.List<io.dstore.engine.Message> \n getMessageList();", "title": "" }, { "docid": "a3822c71bb59ab22eca550ce39d647fc", "score": "0.49555823", "text": "java.util.List<io.dstore.engine.Message> \n getMessageList();", "title": "" } ]
6c1312fd20b47bc264856bbe94030c1b
Copy Function to Copy file
[ { "docid": "d4e36d1c41cc45e783215e985666c172", "score": "0.6302751", "text": "public static void copy(File src, File dest) throws IOException {\n InputStream is = null;\n OutputStream os = null;\n try {\n is = new FileInputStream(src);\n os = new FileOutputStream(dest);\n\n // buffer size 1K\n byte[] buf = new byte[1024];\n\n int bytesRead;\n while ((bytesRead = is.read(buf)) > 0) {\n os.write(buf, 0, bytesRead);\n }\n } catch (Exception e) {\n e.getMessage();\n } finally {\n is.close();\n os.close();\n }\n }", "title": "" } ]
[ { "docid": "289c3ebede5c53697fb29ce354182b81", "score": "0.7365414", "text": "@Test\n public void fileCopy() {\n check(_FILE_COPY);\n\n query(_FILE_WRITE.args(PATH1, \"A\"));\n query(_FILE_COPY.args(PATH1, PATH2));\n query(_FILE_COPY.args(PATH1, PATH2));\n query(_FILE_COPY.args(PATH2, PATH2));\n query(_FILE_SIZE.args(PATH1), \"1\");\n query(_FILE_SIZE.args(PATH2), \"1\");\n error(_FILE_COPY.args(PATH1, PATH3), Err.NOTDIR);\n\n query(_FILE_DELETE.args(PATH1));\n query(_FILE_DELETE.args(PATH2));\n }", "title": "" }, { "docid": "a54ceac8054fad7e19157523a997ed04", "score": "0.7272393", "text": "private static void copyFile(File srFile, File dtFile) {\n try {\n // Create channel on the source\n FileChannel srcChannel = new FileInputStream(srFile).getChannel();\n\n // Create channel on the destination\n FileChannel dstChannel = new FileOutputStream(dtFile).getChannel();\n\n // Copy file contents from source to destination\n dstChannel.transferFrom(srcChannel, 0, srcChannel.size());\n\n // Close the channels\n srcChannel.close();\n dstChannel.close();\n } catch (IOException e) {\n e.printStackTrace();\n Assert.fail(\"Unable to process copy \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "70cd2e8c6cd6c62790233176e5009149", "score": "0.7252648", "text": "public static void main(String[] args) {\n copyFile(\"D:\\\\testFile\\\\file.txt\",\"D:\\\\testFile1\\\\\");\n \n }", "title": "" }, { "docid": "807337a6cb011b316debf44be5a4a6bb", "score": "0.7236301", "text": "public void copy(String fromPath, String toPath);", "title": "" }, { "docid": "b360b9dd4f3f4b0e9b7421878565d959", "score": "0.71725863", "text": "private FileCopy() {\r\n\t}", "title": "" }, { "docid": "71a363f19122d16fe37ade2e3abb81b2", "score": "0.71569526", "text": "void copyFile(File from, String to){\n\t\t\n\t\ttry{\n\t\t\tDataInputStream inSrc = new DataInputStream(new FileInputStream(from));\n\t\t\tDataOutputStream outSrc = new DataOutputStream(new FileOutputStream(to));\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tbyte data = inSrc.readByte();\n\t\t\t\t\toutSrc.writeByte(data);\n\t\t\t\t}\t\n\t\t\n\t\t\t}catch(IOException e){\n\t\t\t}finally{\n\t\t\t\tinSrc.close();\n\t\t\t\toutSrc.close();\n\t\t\t}\n\t\t}catch(IOException e){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "aa69c641564810cff75949318cde679c", "score": "0.7107536", "text": "private void copy(File src, File dst) throws IOException {\r\n InputStream in = new FileInputStream(src);\r\n OutputStream out = new FileOutputStream(dst);\r\n\r\n\r\n byte[] buf = new byte[1024];\r\n int len;\r\n while ((len = in.read(buf)) > 0) {\r\n out.write(buf, 0, len);\r\n }\r\n in.close();\r\n out.close();\r\n }", "title": "" }, { "docid": "3906835d2a88d5354220c1b7dac903c1", "score": "0.7048823", "text": "public void copier();", "title": "" }, { "docid": "8192cd462f77b47deea0d3262970d56c", "score": "0.7015499", "text": "public static void main(String[] args) {\n\n String fileName1 = \"./assets/new-file.txt\";\n String fileName2 = \"./assets/sample.txt\";\n\n System.out.println(CopyFunction(fileName1,fileName2));\n }", "title": "" }, { "docid": "5e6ab97c77a5778f40ac94045b494f13", "score": "0.69942504", "text": "@Override\r\n public void execute() throws IOException {\r\n LinkedList<String> args = Argument.getArgs();\r\n\r\n /* Sursa */\r\n String srcPath = Argument.getArgument(1);\r\n String[] srcTokens = srcPath.split(\"/\");\r\n String srcFileName = srcTokens[srcTokens.length - 1];\r\n /* Obtin calea catre sursa*/\r\n String[] theSourcePath = FSManager.getPathTo(srcTokens);\r\n\r\n /* Destinatia */\r\n String destPath = Argument.getArgument(2);\r\n String[] destTokens = destPath.split(\"/\");\r\n String destFileName;\r\n String[] theDestPath;\r\n\r\n /* Obtin calea catre sursa si destinatie */\r\n if(destTokens.length > 0) {\r\n destFileName = destTokens[destTokens.length - 1];\r\n theDestPath = destTokens;\r\n }else {\r\n destFileName = \"\";\r\n theDestPath = new String[1];\r\n theDestPath[0] = \"\";\r\n }\r\n\r\n /* Ma mut in folderul din path-ul source */\r\n if(FSManager.goTo(theSourcePath) == 0) {\r\n /* Daca a reusit, continui executia */\r\n\r\n /* Ma mut temporar in folderul din path-ul sursei */\r\n FSFolder srcTemp = FSManager.getVirtualCurrent();\r\n\r\n FSNode nodeToCopy = null;\r\n\r\n /* Verific daca se copiaza tot folderul curent */\r\n if(srcPath.equals(\".\")) {\r\n nodeToCopy = FSManager.getCurrent();\r\n }else {\r\n /* Caut daca fisierul sau folderul exista in acest folder din path */\r\n nodeToCopy = srcTemp.findFile(srcFileName);\r\n if(nodeToCopy == null) {\r\n /* Fisierul sau folderul de copiat nu exista */\r\n Main.errors.write(\"cp: cannot copy \" + srcPath + \": No such file or directory\\n\");\r\n return;\r\n }\r\n\r\n }\r\n\r\n /* Resetez folderul temporar la folderul curent */\r\n FSManager.setVirtualCurrent(FSManager.getCurrent());\r\n\r\n /* Daca ajunge aici inseamna ca exista fisierul/folderul de copiat */\r\n /* Mut folderul curent temporar pe path-ul destinatiei */\r\n if(!destFileName.equals(\"\")) {\r\n if (FSManager.goTo(theDestPath) != 0) {\r\n /* Daca mutarea nu s-a efectuat cu succes inseamna ca unul din foldere nu exista */\r\n Main.errors.write(\"cp: cannot copy into \" + destPath + \": No such directory\\n\");\r\n return;\r\n }\r\n }else {\r\n /* Daca se ajunge aici inseamna ca folderul destinatie este root */\r\n FSManager.setVirtualCurrent(FSManager.getRoot());\r\n }\r\n\r\n FSFolder destTemp = FSManager.getVirtualCurrent();\r\n\r\n /* Verific daca fisierul de copiat exista deja in destinatie */\r\n if(destTemp.findFile(nodeToCopy.getName()) != null) {\r\n Main.errors.write(\"cp: cannot copy \" + srcPath + \": Node exists at destination\\n\");\r\n return;\r\n }\r\n\r\n FSNode fileToCopy = null;\r\n try {\r\n if(nodeToCopy.getType().equals(\"Folder\")) {\r\n /* Se va copia folderul impreuna cu restul folderelor din continutul acestuia */\r\n fileToCopy = nodeToCopy.clone();\r\n fileToCopy.setParent(destTemp);\r\n fileToCopy.resetParents();\r\n if(destTemp.add(fileToCopy) != 0) {\r\n System.out.println(\"Eroare la copiere in destinatie. Deja exista\");\r\n }\r\n }else {\r\n /* Se va copia fisierul */\r\n fileToCopy = nodeToCopy.clone();\r\n /* Setez ca parinte noul folder pentru fisierul de copiat */\r\n fileToCopy.setParent(destTemp);\r\n if(destTemp.add(fileToCopy) != 0) {\r\n System.out.println(\"Eroare la copiere in destinatie. Deja exista\");\r\n }\r\n }\r\n } catch (CloneNotSupportedException e) {\r\n System.out.println(\"Eroare la clonarea \" + srcPath);\r\n e.printStackTrace();\r\n }\r\n\r\n }else {\r\n /* Daca nu a reusit, afisez eroarea si opresc comanda */\r\n Main.errors.write(\"cp: cannot copy \" + srcPath + \": No such file or directory\\n\");\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "1b3298e1b0546128cef8ed33b53802a0", "score": "0.68750197", "text": "@Test\n public void testCopyFile() {\n System.out.println(\"copyFile\");\n new FileCopier().copyFile(\"/\", \"/tmp/\", \"cable_guardian.conf\");\n assertTrue(new File(\"/tmp/cable_guardian.conf\").exists());\n }", "title": "" }, { "docid": "69946914750c2bf41e6fff6f8ba2faee", "score": "0.6819392", "text": "@SuppressWarnings(\"resource\")\r\npublic void copyFile(File inFile, File outFile) throws LACSDException {\r\n\r\n\tif (!inFile.exists()) {\r\n\t\tthrow new LACSDException(\"Could not find file \" + inFile.getName());\r\n\t}\r\n\t\r\n\tFileChannel in = null;\r\n\tFileChannel out = null;\r\n\t\r\n\t\r\n\ttry {\r\n in = new FileInputStream(inFile).getChannel();\r\n out = new FileOutputStream(outFile).getChannel();\r\n\r\n // the transferTo() does not transfer files > than 2^31-1 bytes.\r\n // reduce the number of bytes transferred at one time\r\n long count = 0;\r\n long byteTransfered = 1;\r\n while ( byteTransfered > 0 ) {\r\n byteTransfered = in.transferTo( count, 1024 * 1024, out);\r\n count = count + byteTransfered;\r\n }\r\n\t}\r\n\tcatch (Exception e) {\r\n\t\tthrow new LACSDException(e.getMessage(),e.fillInStackTrace());\r\n\t}\r\n\tfinally {\r\n\t\ttry {\r\n if ( in != null )\r\n in.close();\r\n if ( out != null )\r\n out.close();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n e.printStackTrace();\r\n\t\t\tthrow new LACSDException(\"CANNOT RELEASE FILE I/O RESOURECES!!! > \" + e.getMessage(),e.fillInStackTrace());\r\n\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "5bc7a7fd40d044f0b760f2d936ab58d7", "score": "0.6817881", "text": "static public void copyFile(String src, String dest) throws IOException {\n if (! new File(src).exists()) {\n return;\n }\n InputStream in = new FileInputStream(src);\n OutputStream out = new FileOutputStream(dest);\n\n byte[] buf = new byte[1024];\n int len;\n while ((len = in.read(buf)) > 0) {\n out.write(buf, 0, len);\n }\n in.close();\n out.close();\n }", "title": "" }, { "docid": "a2c3fd35f13d6d0fb8b9bc881aba3df8", "score": "0.673091", "text": "public static void copy(File source, File dest) {\r\n try (InputStream is = new FileInputStream(source);\r\n OutputStream os = new FileOutputStream(dest)) {\r\n byte[] buffer = new byte[1024];\r\n int length;\r\n while ((length = is.read(buffer)) > 0) {\r\n os.write(buffer, 0, length);\r\n }\r\n } catch (IOException e) {\r\n Logger.log(\"CopyFile\", e);\r\n }\r\n }", "title": "" }, { "docid": "22aeb315014f225fc3e6d5c8be7b8554", "score": "0.67242205", "text": "public static void main(String[] args) throws Exception{\n\t\n\tString sourceFile=\"D:/temp/myfile.txt\";\n\tString destFile=\"D:/temp/myfile_copy.txt\";\n\t\n\t// read from source file\n\t\n\tFileInputStream fis=new FileInputStream(sourceFile);\n\tBufferedInputStream bis=new BufferedInputStream(fis);\n\t\n\t//write to destination file\n\t\n\tFileOutputStream fos=new FileOutputStream(destFile);\n\tBufferedOutputStream bos=new BufferedOutputStream(fos);\n\t\n\tint ch;\n\twhile((ch=bis.read())!=-1)\n\t{\n\t\tbos.write((char)ch);\n\t}\n\t\n\tbis.close();\n\tbos.close();\n\tSystem.out.println(\" File copied \");\n\t\n\t\n\t\n}", "title": "" }, { "docid": "1632ed9fdc9de30be4af78f8603b8cd6", "score": "0.6719433", "text": "private static void copy(File src, File dest) throws IOException {\n\t\tInputStream in = new FileInputStream(src);\n\t\ttry {\n\t\t\tOutputStream out = new FileOutputStream(dest);\n\t\t\ttry {\n\t\t\t\tbyte[] buf = new byte[1024];\n\t\t\t\tint len;\n\t\t\t\twhile ((len = in.read(buf)) > 0) {\n\t\t\t\t\tout.write(buf, 0, len);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tout.close();\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\tin.close();\n\t\t}\n\t}", "title": "" }, { "docid": "fdb69e6c6a8ab1b0b16ae1cbc3d26096", "score": "0.6718931", "text": "public boolean cp(String source, String dest) throws IOException {\n\t byte[] sbytes = Files.readAllBytes(Paths.get(source));\n\t Path path = Paths.get(dest);\n\t Files.write(path, sbytes);\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "227097f48a88877ffe7f423163791ade", "score": "0.670967", "text": "public File makeCopy(String filePath) throws IOException\n \t{\n \t\tFile original = new File(filePath);\n \t\tFile copy = new File(\"cyborg_cpy\");\n \t\tFile targetDir = new File(System.getProperty(\"java.io.tmpdir\"));\n \n \t\tSystem.out.println(\"Copying \" + original);\n \t\tFileUtils.copyFile(original, copy);\n \t\tFileUtils.copyFileToDirectory(copy, targetDir);\n \n \t\treturn copy;\n \t}", "title": "" }, { "docid": "c9d0f9a244342c8b22cf429949068029", "score": "0.66918814", "text": "public static void fileCopyOverWrite(final File sourceFile, final File destinationFile) {\n\n /*Recursos erróneos [EN] Wrong resources*/\n if (sourceFile == null || !sourceFile.exists() || destinationFile == null) {\n return;\n }\n\n /*Abrir nuevo hilo para la copia del archivo [EN] Open new thread for file copy*/\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n FileOutputStream out;//Stream de salida [EN] Output stream\n FileInputStream in;//Stream de entrada [EN] Input stream\n try {\n in = new FileInputStream(sourceFile);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return;\n }\n try {\n out = new FileOutputStream(destinationFile);\n int c;\n\n while ((c = in.read()) != -1) {\n out.write(c);\n }\n out.flush();\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n }", "title": "" }, { "docid": "9ca515c08bf61c34ee5bb9c388b63d48", "score": "0.6650554", "text": "public void copyFile(File src, File dst) {\n\t long p = 0, dp = 0, size = 0;\n\t FileChannel in = null, out = null;\n\n\t try {\n\t if (!dst.exists()) \n\t \tdst.createNewFile();\n\n\t in = new FileInputStream(src).getChannel();\n\t out = new FileOutputStream(dst).getChannel();\n\t size = in.size();\n\n\t while ((dp = out.transferFrom(in, p, size)) > 0) {\n\t p += dp;\n\t }\n\t }\n\t catch (Exception e) {\n\t \tlogger.catching(e);\n\t }\n\t}", "title": "" }, { "docid": "102c59451eed5b49e2ef951f79add5bd", "score": "0.6649658", "text": "public static void main(String[] args) throws Exception {\n\n File sourceFile =new File(\"D:\\\\Fileconcepts\\\\sample.txt\");\n File destinationFile=new File(\"D:\\\\Fileconcepts\\\\test.txt\");\n\n FileUtils.copyFile(sourceFile,destinationFile);\n Path path = Paths.get(\"D:\\\\Fileconcepts\\\\test.txt\");\n readFile(path);\n\n }", "title": "" }, { "docid": "c40e567a6e4f2a6a4efbefcc3fbda7f2", "score": "0.66472274", "text": "public void copy() throws IOException {\n if (!dest.exists()) {\n dest.createNewFile();\n }\n try (InputStream is = new FileInputStream(src); OutputStream os = new FileOutputStream(dest);) {\n byte[] buf = new byte[1024];\n int bytes;\n while ((bytes = is.read(buf)) > 0) {\n os.write(buf, 0, bytes);\n }\n }\n }", "title": "" }, { "docid": "a6ce2efea5f81148510f41ea8e3b8054", "score": "0.6627735", "text": "abstract public void fileCopy(String fname1, String fname2)\n throws FileSystemException;", "title": "" }, { "docid": "ee4cbe76923887dee4f8af3b6852c89a", "score": "0.662257", "text": "private void fileCopy(File dbFile, File backup) throws IOException {\n FileChannel inChannel = new FileInputStream(dbFile).getChannel();\n FileChannel outChannel = new FileOutputStream(backup).getChannel();\n try {\n inChannel.transferTo(0, inChannel.size(), outChannel);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n if (inChannel != null) {\n inChannel.close();\n }\n if (outChannel != null) {\n outChannel.close();\n }\n }\n }", "title": "" }, { "docid": "b11c24eda3fa3b54164d3e43babab85e", "score": "0.66208595", "text": "public abstract ScriptCommand copy();", "title": "" }, { "docid": "3f447c345c243c363818eb852e85fe25", "score": "0.6604159", "text": "public void copy() throws IOException {\r\n File sourceFile = new File(source);\r\n File dest = new File(TrayApplication.copyLocation);\r\n FileUtils.copyDirectory(sourceFile, dest);\r\n LOGGER.info(\"Copy()\");\r\n }", "title": "" }, { "docid": "383d9a9d7eaed72e47b17293f7ed380b", "score": "0.6600373", "text": "public void createAFile()\n\t{\n\t\t\n\t\ttry(Scanner sc=new Scanner(new File(UIFileChooser.open(\"Choose a file to copy\")))) //check ittttttt\n\t\t{\n\t\t}catch(IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "64706e9fc665156d900b26ce4c765843", "score": "0.65984005", "text": "private void copy(Path source, Path target) throws IOException {\n createPath(source, target);\n\n Files.copy(source, target);\n System.out.println(\"Backed up: \" + source);\n wasCopied = true;\n }", "title": "" }, { "docid": "79be78879566824543ac6f30ab668b37", "score": "0.65886873", "text": "public static void main(String[] args) throws IOException {\n\t\tString sourcePath = \"/Users/amit/Documents/songs/A.mp3\";\n\t\tString desPath = \"/Users/amit/Documents/songs/ACopy.mp3\";\n\t\tFile file = new File(sourcePath);\n\t\tif(!file.exists()) {\n\t\t\tSystem.out.println(\"Cant Copy File not exist \");\n\t\t\treturn ;\n\t\t}\n\t\tfinal int EOF = -1;\n\t\t//RandomAccessFile\n\t\tFileInputStream fs= new FileInputStream(file);\n\t\t\n\t\tBufferedInputStream bs =new BufferedInputStream(fs);\n\t\tFileOutputStream fo = new FileOutputStream(desPath,true);\n\t\tBufferedOutputStream bo = new BufferedOutputStream(fo);\n\t\tlong startTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Copy Start...\");\n\t\tint singleByte =bs.read();\n\t\twhile(singleByte!=EOF) {\n\t\tbo.write(singleByte);\n\t\tsingleByte =bs.read();\n\t\t}\n\t\tbo.close();\n\t\tbs.close();\n\t\tfo.close();\n\t\tfs.close();\n\t\tlong endTime = System.currentTimeMillis();\n\t\tSystem.out.println(\"Data Copied...\"+(endTime-startTime)+\"ms\");\n\t}", "title": "" }, { "docid": "6599012a7bd47bd8deb0d5d4e3dbd6db", "score": "0.65788686", "text": "private void copyFile(File sourceFile, File destFile) throws IOException {\n if (!destFile.exists()) {\n destFile.createNewFile();\n }\n\n FileChannel source = null;\n FileChannel destination = null;\n\n try {\n source = new FileInputStream(sourceFile).getChannel();\n destination = new FileOutputStream(destFile).getChannel();\n destination.transferFrom(source, 0, source.size());\n } finally {\n if (source != null) {\n source.close();\n }\n if (destination != null) {\n destination.close();\n }\n }\n destFile.setLastModified(sourceFile.lastModified());\n }", "title": "" }, { "docid": "f904c3763eac1a4e25e443f146b9e441", "score": "0.6564054", "text": "private void copy(InputStream in, File file) {\r\n \t\ttry {\r\n \t\t\tOutputStream out = new FileOutputStream(file);\r\n \t\t\tbyte[] buf = new byte[1024];\r\n \t\t\tint len;\r\n \t\t\twhile ((len=in.read(buf)) > 0) {\r\n \t\t\t\tout.write(buf, 0, len);\r\n \t\t\t}\r\n \t\t\tout.close();\r\n \t\t\tin.close();\r\n \t\t}\r\n \t\tcatch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "6411d2af527644d264afc5712d139f22", "score": "0.6537396", "text": "private void copyfile(InputStream dowloadedFile, String filename) {\n try {\n BufferedInputStream inputStream = new BufferedInputStream(dowloadedFile);\n FileOutputStream fileOS = new FileOutputStream(filename); \n byte[] data = new byte[1024];\n int byteContent;\n while ((byteContent = inputStream.read(data, 0, 1024)) != -1) {\n fileOS.write(data, 0, byteContent);\n }\n fileOS.close();\n } catch (IOException e) {\n\n }\n\n }", "title": "" }, { "docid": "31fe7845eed52c00e1b45413b368557a", "score": "0.65300447", "text": "public void Copy(File source, File destination)\n {\n try\n {\n FileChannel srcChannel = new FileInputStream(source).getChannel(),\n destChannel = new FileOutputStream(destination).getChannel();\n\n srcChannel.transferTo(0, srcChannel.size(), destChannel);\n }\n\n catch (Exception e)\n {\n String m = e.getMessage();\n }\n }", "title": "" }, { "docid": "78298a10b376412d187e4e0e5c4f8074", "score": "0.65142614", "text": "private static void copyFileUsingStream(File source, File dest) throws IOException {\r\n InputStream is = null;\r\n OutputStream os = null;\r\n try {\r\n is = new FileInputStream(source);\r\n os = new FileOutputStream(dest);\r\n byte[] buffer = new byte[1024];\r\n int length;\r\n while ((length = is.read(buffer)) > 0) {\r\n os.write(buffer, 0, length);\r\n }\r\n } finally {\r\n is.close();\r\n os.close();\r\n }\r\n }", "title": "" }, { "docid": "5877730bef7b36a018f6eb537ca929f6", "score": "0.65039515", "text": "private static void copyFileUsingStream(File source, File dest) throws IOException {\r\n\t InputStream is = null;\r\n\t OutputStream os = null;\r\n\t try {\r\n\t is = new FileInputStream(source);\r\n\t os = new FileOutputStream(dest);\r\n\t byte[] buffer = new byte[1024];\r\n\t int length;\r\n\t while ((length = is.read(buffer)) > 0) {\r\n\t os.write(buffer, 0, length);\r\n\t }\r\n\t } finally {\r\n\t is.close();\r\n\t os.close();\r\n\t }\r\n\t}", "title": "" }, { "docid": "a7f444cd17250ba3f5dfe99c4496c4f5", "score": "0.6483989", "text": "@SuppressWarnings(\"resource\")\n public static void copyData(String sourceFilePath, String destinationFilePath) throws IOException {\n FileInputStream input = new FileInputStream(sourceFilePath);\n ReadableByteChannel source = input.getChannel();\n\n // Path Of The Output Text File\n FileOutputStream output = new FileOutputStream(destinationFilePath);\n WritableByteChannel destination = output.getChannel();\n System.out.println(\"File successfully copied from source to destination!\");\n\n ByteBuffer buffer = ByteBuffer.allocateDirect(1024);\n while (source.read(buffer) != -1) {\n // The Buffer Is Used To Be Drained\n buffer.flip();\n // Make Sure That The Buffer Was Fully Drained\n while (buffer.hasRemaining()) {\n destination.write(buffer);\n }\n // Now The Buffer Is Empty!\n buffer.clear();\n }\n input.close();\n output.close();\n }", "title": "" }, { "docid": "0e52b2bb6ef3c06b9bcf598b85c28b6a", "score": "0.6479522", "text": "public File copy (String name ){\n\t\tFile source = new File (\"./dropins/\"+name);\n\t\tFile destination = new File (\"./bin/plugins/\"+name);\n\t\ttry {\n\t\t\tdestination.createNewFile();\n\t\t\tFileInputStream input = new FileInputStream (source);\n\t\t\tFileOutputStream output = new FileOutputStream (destination);\n\t\t\tbyte buffer[]=new byte[512*1024];\n\t int nblecture;\n\t while((nblecture=input.read(buffer))!=-1){\n\t output.write(buffer,0,nblecture);\n\t }\n\t input.close();\n\t output.close();\n\t return destination;\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException (\"problem of file\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "4eedc41db1995328a438814e0668525c", "score": "0.6453947", "text": "@Test\n public void testCopy()\n {\n trinoDeleteFileUnderTest.copy();\n\n // Verify the results\n }", "title": "" }, { "docid": "d5e81439f29cc393e6a6f9035a2de2cb", "score": "0.6448113", "text": "@Test\n\tpublic void sameSrcAndDest() throws IOException {\n\t\tFile f = new File(\"testSrc\");\n\t\tf.createNewFile();\n\n\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(f));\n\t\tpw.write(\"test string.\");\n\t\tpw.close();\n\n\t\tFile dest = new File(\"testSrc\");\n\n\t\tICopyTool copyTool = new CopyTool(new String[0]);\n\t\tboolean result = copyTool.copy(f, dest);\n\t\tString contents = fileGetString(dest);\n\t\tassertEquals(\"test string.\", contents);\n\t\tassertTrue(result);\n\t\tassertEquals(0, copyTool.getStatusCode());\n\n\t\tf.delete();\n\t}", "title": "" }, { "docid": "29bf2b80b3624cfe3b3ac8719cb14166", "score": "0.64363503", "text": "public static void main(String[] args) {\n\n\t\ttry {\n\t\t\tcopyFile(\"D:\\\\temp\\\\1.txt\", \"D:\\\\temp\\\\2.txt\");\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}", "title": "" }, { "docid": "61f438259f683f11da7ad1d5172718dc", "score": "0.6374463", "text": "abstract public void copy(Directory newDirectory);", "title": "" }, { "docid": "93ba8f3e140f8a919f2a34d530e1d432", "score": "0.63377863", "text": "protected static boolean copy(File fileSrc, File fileDst) {\n\t\treturn copy(fileSrc, fileDst, null);\n\t}", "title": "" }, { "docid": "5bf26e7027d392de484eef550d5df957", "score": "0.63377243", "text": "public static void copyFile( File pSrc, File pDest )\r\n throws IOException\r\n {\r\n // Copy is done using ant task\r\n Copy copyFile = new Copy();\r\n copyFile.setProject( new Project() );\r\n copyFile.init();\r\n copyFile.setFile( pSrc );\r\n copyFile.setTofile( pDest );\r\n copyFile.execute();\r\n }", "title": "" }, { "docid": "0fe44d9d09237766c70a96f90f8a7149", "score": "0.63054144", "text": "public abstract void copyFrom(DataSpacesFileObject srcFile, FileSelector selector)\n throws FileSystemException;", "title": "" }, { "docid": "aa2031f2d102c8931d45230f498b1599", "score": "0.6298113", "text": "protected void copy(File src, File dest) throws IOException {\n // read source bytes\n byte[] srcBytes = this.read(src);\n\n // write bytes to dest\n FileOutputStream out = new FileOutputStream(dest);\n out.write(srcBytes);\n out.close();\n }", "title": "" }, { "docid": "004c74ea319299dd3f339e3b68cae254", "score": "0.62871134", "text": "@Test\n public void testCopyFile() {\n // NOT FINISHED\n TranslationFile testFile = TestObjectBuilder.getTestFile();\n TranslationFile testFileCopy = new TranslationFile(testFile);\n\n }", "title": "" }, { "docid": "8375119ec0efb52173a0bc026d3d1d94", "score": "0.62834376", "text": "public static void main(String[] args) {\n\t\t\n\t\tFileCopier copyMaker = new FileCopier();\n\t\tcopyMaker.copyFile();\n\t\tSystem.out.println(\"File copied successfully!\");\n\t}", "title": "" }, { "docid": "d7aab50753d57942422282e4ed0ecead", "score": "0.6279902", "text": "public static void copyFile(String srFile, String dtFile) throws IOException\n\t{\n\t\tvalidateParameters(srFile, dtFile);\n\t\tlog.debug(\"Copying file from \" + srFile + \" to \" + dtFile);\n\t\tOutputStream out = null;\n\t\tInputStream in = null;\n\t\ttry\n\t\t{\n\t\t\tfinal File f1 = new File(srFile);\n\t\t\tfinal File f2 = new File(dtFile);\n\t\t\tin = new FileInputStream(f1);\n\t\t\tout = new FileOutputStream(f2);\n\t\t\tfinal byte[] buf = new byte[BUFFER];\n\t\t\tint len;\n\t\t\twhile ((len = in.read(buf)) > 0)\n\t\t\t{\n\t\t\t\tout.write(buf, 0, len);\n\t\t\t}\n\t\t}\n\t\tcatch (final FileNotFoundException ex)\n\t\t{\n\t\t\tthrow new FileNotFoundException();\n\t\t}\n\t\tcatch (final IOException e)\n\t\t{\n\t\t\tthrow new IOException();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tin.close();\n\t\t\t\tout.close();\n\t\t\t}\n\t\t\tcatch (final IOException e)\n\t\t\t{\n\t\t\t\tlog.error(\"IO exception realizando la copia del archivo: \" + srFile + \" a: \" + dtFile);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "30ae4c0b68ce198909f3e195e8efb632", "score": "0.62578213", "text": "public static void copy(String original, String copy) throws IOException {\n InputStream in = openFileInputStream(original);\n OutputStream out = openFileOutputStream(copy, false);\n copyAndClose(in, out);\n }", "title": "" }, { "docid": "d1aa3d4b3e6de0656d4d489ad4803942", "score": "0.6255654", "text": "protected static boolean copy(File fileSrc, File fileDst, String nameDst) {\n\t\tboolean resultat = false;\n\n\t\t// Declaration des flux\n\t\tFileInputStream sourceFile = null;\n\t\tFileOutputStream destinationFile = null;\n\t\tif (fileSrc.exists()) {\n\t\t\tif (fileSrc.isFile()) {\n\t\t\t\ttry {\n\t\t\t\t\tif (fileDst.isDirectory() && (fileDst.exists() || fileDst.mkdirs())) {\n String fileName = (nameDst!=null) ? nameDst : UtilFile.fileName(fileSrc.getCanonicalPath());\n fileDst = new File(UtilFile.formatPath(fileDst.getCanonicalPath(), fileName));\n }\n\n // Cramp;eacute;ation du fichier :\n fileDst.createNewFile();\n\n // Ouverture des flux\n sourceFile = new FileInputStream(fileSrc);\n destinationFile = new FileOutputStream(fileDst);\n\n // Lecture par segment de 0.5Mo\n byte buffer[] = new byte[512 * 1024];\n int nbLecture;\n\n while ((nbLecture = sourceFile.read(buffer)) != -1) {\n destinationFile.write(buffer, 0, nbLecture);\n }\n\t\t\t\t\t// Copie ramp;eacute;ussie\n\t\t\t\t\tresultat = true;\n\t\t\t\t} catch (java.io.FileNotFoundException f) {\n\t\t\t\t} catch (java.io.IOException e) {\n\t\t\t\t} finally {\n\t\t\t\t\t// Quoi qu'il arrive, on ferme les flux\n\t\t\t\t\ttry {sourceFile.close();}\n\t\t\t\t\tcatch (Exception e) {resultat = false;}\n\t\t\t\t\ttry {destinationFile.close();}\n\t\t\t\t\tcatch (Exception e) {resultat = false;}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tFile[] files = fileSrc.listFiles();\n\t\t\t\tresultat = true;\n\t\t\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\t\t\tresultat &= copy(files[i], fileDst);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn (resultat);\n\t}", "title": "" }, { "docid": "c388be1aaea024de8695cf29e4341ece", "score": "0.6246362", "text": "public static void main(String[] args) {\n\t\tString syntaxis, parameter;\n\t\tsyntaxis = \"usage: CopyFile [-f] source_file target_file\";\n\t\tFile input, output;\n\t\tif (args.length == 1)\n\t\t{\n\t\t\tif (args[0].equals(\"/?\"))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\"%s \\n\", syntaxis);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tSystem.out.printf(\"Wrong parameters list %s . Please follow syntaxis below: \\n %s\\n\", args[0], syntaxis);\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else\n\t\t\tif (args.length == 2)\n\t\t\t{\n\t\t\t\tinput = new File (args[0]);\n\t\t\t\toutput = new File (args[1]);\t\t\t\t\n\t\t\t\tCopy(input, output, null, syntaxis);\n\t\t\t}\n\t\t\telse \n\t\t\t\tif (args.length == 3) \n\t\t\t\t{\n\t\t\t\t\tinput = new File (args[1]);\n\t\t\t\t\toutput = new File (args[2]);\n\t\t\t\t\tparameter = args[0];\n\t\t\t\t\tCopy(input, output, parameter, syntaxis);\n\t\t\t\t}\n\t}", "title": "" }, { "docid": "d2c6e446732d6523e97a3ff30403bacb", "score": "0.6220045", "text": "private void doCopy(Resource src, File destFile) {\n\t\tif (useAntResourceUtils) {\n\t\t\ttry {\n\t\t\t\tResourceUtils.copyResource(src, new FileResource(destFile),\n\t\t\t\t\t\tnull, null, overwrite, preserveLastModified, null,\n\t\t\t\t\t\tnull, getProject());\n\t\t\t} catch (IOException e) {\n\t\t\t\tprocessIssue(failOnError, e);\n\t\t\t}\n\t\t} else if (useApacheIO) {\n\t\t\tcreateParent(destFile);\n\t\t\ttry {\n\t\t\t\tcopyWithApacheIO(src.getInputStream(), new FileOutputStream(\n\t\t\t\t\t\tdestFile));\n\t\t\t} catch (IOException e) {\n\t\t\t\tprocessIssue(failOnError, e);\n\t\t\t}\n\t\t\tif (preserveLastModified) {\n\t\t\t\tdestFile.setLastModified(src.getLastModified());\n\t\t\t}\n\t\t} else {\n\t\t\tcreateParent(destFile);\n\t\t\tInputStream in = null;\n\t\t\tOutputStream out = null;\n\t\t\ttry {\n\t\t\t\tout = new BufferedOutputStream(new FileOutputStream(destFile));\n\t\t\t\tin = new BufferedInputStream(src.getInputStream());\n\t\t\t\tint size = -1;\n\t\t\t\twhile ((size = in.read(buffer)) != -1) {\n\t\t\t\t\tout.write(buffer, 0, size);\n\t\t\t\t}\n\t\t\t\tif (preserveLastModified) {\n\t\t\t\t\tdestFile.setLastModified(src.getLastModified());\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tprocessIssue(failOnError, e);\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (out != null) {\n\t\t\t\t\t\tout.close();\n\t\t\t\t\t}\n\t\t\t\t\tif (in != null) {\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tprocessIssue(failOnError, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e4506599bcdf8dbec566aa9f9fd90db0", "score": "0.61789834", "text": "private void copy(int i, String originalName) {\n File original = new File(this.from, originalName);\n File destination = new File(this.to, originalName);\n if (original.isDirectory()) {\n // We have a directory to copy\n if (destination.isFile()) {\n destination.delete();\n }\n if (!destination.exists()) {\n destination.mkdirs();\n }\n new FileCopier(this.progressUpdater, i, original, destination).copyAll();\n } else {\n // We have a file to copy\n if (!destination.exists() || hasDifferentLastModifiedDate(destination, original)) {\n try {\n copyFile(original, destination);\n this.progressUpdater.onFileCopy(original, i, this.filesInFrom.length);\n } catch (IOException e) {\n this.progressUpdater.onFileError(original, e, i, this.filesInFrom.length);\n }\n } else {\n this.progressUpdater.onFileSkip(original, i, this.filesInFrom.length);\n }\n }\n }", "title": "" }, { "docid": "4ff0dbdb45f2dd6c844b11241e0a1d91", "score": "0.61762416", "text": "public void testCopyAndRenameSource() throws Exception {\r\n setSourceAndTarget();\r\n CreateTestFiles(10);\r\n objOptions.filePath.setValue(\"\");\r\n objOptions.fileNamePatternRegExp.setValue(\"^.*0000\\\\d\\\\.txt$\");\r\n objOptions.operation.setValue(enuJadeOperations.copy);\r\n objOptions.getSource().replacing.setValue(\"(.*)(.txt)\");\r\n objOptions.getSource().replacement.setValue(\"SAVE/\\\\1_[date:yyyyMMddHHmm];\\\\2\");\r\n objOptions.removeFiles.value(false);\r\n objOptions.createResultSet.value(true);\r\n objOptions.resultSetFileName.setValue(strTestPathName + \"/Resultset.dat\");\r\n objOptions.history.setValue(strTestPathName + \"/history.csv\");\r\n startTransfer(objOptions);\r\n }", "title": "" }, { "docid": "c2d9890760f045b36a88e845c0cc37ce", "score": "0.61699224", "text": "public static void copyFile(File sourceFile, File destFile) throws IOException {\n if(!destFile.exists()) {\n destFile.createNewFile();\n }\n\n FileChannel origen = null;\n FileChannel destino = null;\n try {\n origen = new FileInputStream(sourceFile).getChannel();\n destino = new FileOutputStream(destFile).getChannel();\n\n long count = 0;\n long size = origen.size(); \n while((count += destino.transferFrom(origen, count, size-count))<size);\n }\n finally {\n if(origen != null) {\n origen.close();\n }\n if(destino != null) {\n destino.close();\n }\n }\n }", "title": "" }, { "docid": "5153313ad06c858e394a47ebe14bea55", "score": "0.6166605", "text": "private void copy() throws ModelManagementException, IOException {\n // Initialize\n loadProject(getSourceFolder(), getMainProject());\n Collection<File> originalFiles = FileUtils.listFiles(getSourceFolder(), new EASyModelFilter(),\n TrueFileFilter.INSTANCE);\n \n // Copy all files\n for (File file : originalFiles) {\n String relativeFileName = getSourceFolder().toURI().relativize(file.toURI()).getPath();\n debugMessage(\"Processing: \" + relativeFileName);\n File copyDestination = new File(getDestinationFolder(), relativeFileName);\n if (!copyDestination.exists()) {\n File destFolder = copyDestination.getParentFile();\n destFolder.mkdirs();\n if (!relativeFileName.toLowerCase().endsWith(CONFIG_FILE_EXTENSION)) {\n FileUtils.copyFile(file, copyDestination, false);\n } else {\n handleConfigFile(relativeFileName, destFolder);\n }\n }\n }\n }", "title": "" }, { "docid": "d70a3ad23dc2c47ca1e9e3a9a71e49be", "score": "0.6158615", "text": "private void reportCopyFile(String oldFile, String newFile) throws IOException {\r\n\t\tnew File(newFile).delete();\r\n\r\n\t\tDL.println(\"Copy oldFile: \\\"\" + oldFile + \"\\\"\" + \" to newFile: \\\"\" + newFile + \"\\\"\");\r\n\t\ttry {\r\n\t\t\tFileUtils.copyFile(FileUtils.getFile(oldFile), FileUtils.getFile(newFile));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new IOException(e.getMessage() + \" Try again. The network may be working against you.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "581a7fa8637213493fff6552528f4e45", "score": "0.61357933", "text": "@Override\n\tpublic void run() {\n\t\tFileUtil.copy(in, out);\n\t}", "title": "" }, { "docid": "302adca68e083e4c92925565a713bd2c", "score": "0.6130669", "text": "void copyLocalFile(String pathname, String newname) throws IOException;", "title": "" }, { "docid": "6032c49bfb094912289d4fd0d85e7655", "score": "0.6117242", "text": "public static void main(String[] args) \n\t{\n\t\tFileUtils.copyFromFileUsingReadersWriters(\"source.txt\", \"dest2.txt\");\n\t}", "title": "" }, { "docid": "412d9b444829eb538eca85ae878e0f4a", "score": "0.61145806", "text": "protected void PasteFile() {\n PasteFile(this.myTmpFile, this.nowDirectory);\n }", "title": "" }, { "docid": "e4676bb132f4fbec57aa06c98c586e6f", "score": "0.610993", "text": "public static void copyFile(File source, File target) throws IOException {\n if (!source.isDirectory()) {\n try (InputStream input = new FileInputStream(source);\n OutputStream output = new FileOutputStream(target)) {\n\n byte[] buf = new byte[4096];\n int bytesRead;\n\n while ((bytesRead = input.read(buf)) > 0) {\n output.write(buf, 0, bytesRead);\n }\n }\n }\n }", "title": "" }, { "docid": "700ae934507fda48eece336e2626488d", "score": "0.6098821", "text": "public void transferFiles();", "title": "" }, { "docid": "d96c341cf7699f57ede56a80a8dca685", "score": "0.60875547", "text": "public void copyToClipboard();", "title": "" }, { "docid": "c7d7da34a196432c1b0946304c42a05e", "score": "0.60797083", "text": "public static boolean copyFile(File source) { \r\n boolean success = false;\r\n Path sourcePath = source.toPath();\r\n String fileName = source.getName(); \r\n String exitPath = System.getProperty(\"user.home\") + \"/Desktop/File_Mover\";\r\n Path targetPath = Paths.get(exitPath, fileName);\r\n \r\n try { \r\n Files.copy(sourcePath, targetPath, StandardCopyOption.REPLACE_EXISTING);\r\n success = true;\r\n } catch (IOException io) { \r\n success = false;\r\n }\r\n \r\n return success;\r\n }", "title": "" }, { "docid": "54bd0935827ac33eda4a24543a18a3e2", "score": "0.60789245", "text": "public abstract boolean shouldCopy(Path path);", "title": "" }, { "docid": "6edb079f5bbfc27d4aa46987b2d3f3d5", "score": "0.6070208", "text": "public void CopySaveGame(int source, int destination)\n {\n //Wow the original was bad. I'm going to improve this later.\n //Make it more similar to how controls are saved.\n }", "title": "" }, { "docid": "b488c6a86dbba891c4f489a76d68b878", "score": "0.60682875", "text": "public static void copyFile(File src, File dst) throws IOException\r\n {\r\n dst.createNewFile();\r\n\r\n try (FileInputStream is = new FileInputStream(src); FileChannel in = is.getChannel();\r\n FileLock lockIn = in.lock(0L, Long.MAX_VALUE, true); FileOutputStream os = new FileOutputStream(dst);\r\n FileChannel out = os.getChannel(); FileLock lockOut = out.lock())\r\n {\r\n in.transferTo(0, in.size(), out);\r\n os.getFD().sync();\r\n dst.setLastModified(src.lastModified());\r\n }\r\n }", "title": "" }, { "docid": "8c9448ea52e43de6fd3252a78ec611db", "score": "0.6068078", "text": "public static void copy(File src, File dst) throws IOException {\n\t\tif (dst.getParentFile() != null && !dst.getParentFile().exists()) {\n\t\t\tdst.getParentFile().mkdirs();\n\t\t}\n\t\tInputStream in = new FileInputStream(src);\n\t\tOutputStream out = new FileOutputStream(dst);\n\n\t\t// Transfer bytes from in to out\n\t\tbyte[] buf = new byte[1024];\n\t\tint len;\n\t\twhile ((len = in.read(buf)) > 0) {\n\t\t\tout.write(buf, 0, len);\n\t\t}\n\t\tin.close();\n\t\tout.close();\n\t}", "title": "" }, { "docid": "c28c39bd5dabbd52d38c3ad9b492eec8", "score": "0.6067901", "text": "public void testCopyForceFiles() throws Exception {\r\n setSourceAndTarget();\r\n objOptions.filePath.setValue(\"nofile\");\r\n objOptions.operation.setValue(enuJadeOperations.copy);\r\n objOptions.forceFiles.value(false);\r\n startTransfer(objOptions);\r\n }", "title": "" }, { "docid": "3d759430af383a68b8326232978769be", "score": "0.606063", "text": "private void copyFileToRemote() {\n List<String> scpExecCommand = new ArrayList<String>();\n scpExecCommand.add(\"scp\");\n scpExecCommand.add(inputFile.getAbsolutePath());\n scpExecCommand.add(PdfaConvert.getApplicationProperties().getProperty(ApplicationConstants.PDFA_PILOT_REMOTE_USER_PROP) +\n \t\t\"@\" +\n \t\tPdfaConvert.getApplicationProperties().getProperty(ApplicationConstants.PDFA_PILOT_REMOTE_URL_PROP) +\n \t\t\":~/\" +\n \t\tPdfaConvert.getApplicationProperties().getProperty(ApplicationConstants.PDFA_PILOT_REMOTE_INPUT_DIR_PROP));\n\t\tlogger.debug(\"About to launch {}, with command: {}\", getToolName(), scpExecCommand);\n processCommand(scpExecCommand, null);\n\t}", "title": "" }, { "docid": "41be69f7cb80e22a7a9b26d672f465d3", "score": "0.6056426", "text": "private static void testCopy() {\r\n\r\n\r\n\t}", "title": "" }, { "docid": "d7da193a4934650c220c2582bcf3db55", "score": "0.6048862", "text": "private void copyFile(final ZipFile pluginZip, final String template, final File output) throws Exception {\n\t\tInputStream inputStream = null;\n\t\ttry {\n\t\t\tZipEntry zipEntry = pluginZip.getEntry(template);\n\t\t\tinputStream = pluginZip.getInputStream(zipEntry);\n\n\t\t\tIOUtil.copy(inputStream, new FileOutputStream(output));\n\t\t} catch (Exception e) {\n\t\t\tgetLogger().warn(\"Copying a '\" + template + \"' into \" + output.getName() + \" is skipped. The reason is a '\" + e.getMessage() + \"'.\");\n\t\t} finally {\n\t\t\tIOUtil.close(inputStream);\n\t\t}\n\t}", "title": "" }, { "docid": "a656cfff7bb3007244a03c759d2e49fc", "score": "0.60487425", "text": "public int run(String[] args) throws Exception {\n\t\t\n\t\tString destination = args[0];\n\t\tString fileName = args[1];\n\n\t\tPath path = new Path(destination, fileName);\n\t\t\n\t\tConfiguration configuration = super.getConf();\n\t\t\n\t\tFileSystem fileSystem = FileSystem.get(configuration);\n\t\t\n\t\tFSDataInputStream dataInputStream = fileSystem.open(path);\n\t\t\n\t\tOutputStream outputStream = new FileOutputStream(fileName);\n\t\t\n\t\tIOUtils.copyBytes(dataInputStream, outputStream, configuration,true);\n\t\t\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d06fd51a2395003c53381b830c28af06", "score": "0.6046022", "text": "public void execute()\n {\n if (singleSource == null) {\n copyToDirectory();\n }\n else {\n copyToFile(singleSource);\n }\n }", "title": "" }, { "docid": "49023465983383f49b221c4c017edd56", "score": "0.60442203", "text": "public static void copyFile(File srcFile, File dstFile, boolean sameDate,\n Console console) \n throws IOException {\n if (console != null)\n console.showMessage(Msg.msg(\"copyingFile\", srcFile, dstFile),\n Console.MessageType.VERBOSE);\n\n copyFile(srcFile, dstFile, sameDate);\n }", "title": "" }, { "docid": "3b16c3fe46681e6e067efca017ee18f3", "score": "0.6037215", "text": "public void testCopy() throws Exception\n {\n final File projectFile = getTestResource( \"copy.ant\" );\n executeTarget( projectFile, \"copy\" );\n }", "title": "" }, { "docid": "de670fbf4e05d92f641f1abee21c8bd2", "score": "0.60318637", "text": "public void backupFile(File source, File dest) {\n Copy task = new Copy();\n task.setProject(project);\n task.setTaskName(\"backup\");\n task.setVerbose(verbose);\n\n //@todo haltOnError\n //copyTask.setFailOnError(haltOnError);\n if (source.isDirectory()) {\n FilenameSelector fns = new FilenameSelector();\n fns.setName(\"**/*\");\n FileSet fs = new FileSet();\n fs.setDir(source);\n fs.addFilename(fns);\n task.addFileset(fs);\n task.setTodir(dest);\n task.setIncludeEmptyDirs(true);\n } else {\n task.setFile(source);\n task.setTofile(dest);\n }\n task.setOverwrite(true);\n task.setPreserveLastModified(true);\n task.execute();\n }", "title": "" }, { "docid": "1e6fed7402f7c3df0206e6cd44736ce8", "score": "0.6015253", "text": "public static void copyFile(File sourceFile, File destFile) throws IOException {\n if (!destFile.getParentFile().exists())\n destFile.getParentFile().mkdirs();\n\n if (!destFile.exists()) {\n destFile.createNewFile();\n }\n\n FileChannel source = null;\n FileChannel destination = null;\n\n try {\n source = new FileInputStream(sourceFile).getChannel();\n destination = new FileOutputStream(destFile).getChannel();\n destination.transferFrom(source, 0, source.size());\n } finally {\n if (source != null) {\n source.close();\n }\n if (destination != null) {\n destination.close();\n }\n }\n }", "title": "" }, { "docid": "00c5ff96f5ced1ede6103507bc14eb85", "score": "0.6010503", "text": "public static void copy(File src, File dest) throws IOException {\n\t\tInputStream in = null;\n\t\tOutputStream out = null;\n\t\tin = new FileInputStream(src);\n\t\tout = new FileOutputStream(dest);\n\t\ttransfer(in, out, true);\n\t}", "title": "" }, { "docid": "4b9b9435b62ffc006026e954797abcec", "score": "0.6000941", "text": "public static void copyFile(File srcFile, File dstFile) \n throws IOException {\n FileInputStream src = new FileInputStream(srcFile);\n try {\n copyFile(src, dstFile);\n } finally {\n src.close();\n }\n }", "title": "" }, { "docid": "6747195048a249f790f62c3d480a2e65", "score": "0.5995698", "text": "public static void main(String[] args) {\n Path originalF = Paths.get(\"my-file.txt\");\n Path newF = Paths.get(\"my-fle.txt\");\n\n System.out.println(copyContent(originalF, newF));\n }", "title": "" }, { "docid": "e8fdbf1251460b12a41433568812da83", "score": "0.59915835", "text": "private void copyFiles(String fileName) throws IOException {\n try (InputStream input = file.getInputStream()) {\n Files.copy(input, new File(folder, fileName).toPath());\n log.info(\"Bien sauvegardé dans le dossier uploads\");\n } catch (IOException e) {\n throw new IOException(\"Erreur\");\n }\n }", "title": "" }, { "docid": "aaf6b63e7f180d944dc1c0c78704564c", "score": "0.59815615", "text": "public static void copy(String src, String dest) throws IOException {\r\n\t\tcopy(new File(src), new File(dest));\r\n\t}", "title": "" }, { "docid": "12c949251545c47f8106eae527c03d78", "score": "0.5968106", "text": "void copy(Page page);", "title": "" }, { "docid": "8410a16f8ec24096baa5c759770f9011", "score": "0.5964285", "text": "public static void main(String[] args) throws IOException {\n BufferedInputStream fin = null;\n PrintWriter fout = null;\n FileInputStream fis;\n int i;\n\n // copy file\n try {\n fis = new FileInputStream(\"/Users/ashleyalmeida/desktop/FolderExample/file.txt\");\n fin = new BufferedInputStream(fis);\n fout = new PrintWriter(\"/Users/ashleyalmeida/desktop/FolderExample/fileCopy.txt\");\n do {\n i = fin.read();\n if (i != -1) fout.write(i);\n }\n while (i != -1);\n }\n\n catch (IOException exc) {\n System.out.println(\"I/O Error: \" + exc);\n }\n\n // close connection\n finally {\n try {\n if (fin != null)\n fin.close();\n if (fout != null)\n fout.close();\n }\n catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "7e899207f189237edf7814efa72a867d", "score": "0.59283197", "text": "private void copyFiles() {\n try{\n String filepath = datapath + \"/tessdata/eng.traineddata\";\n AssetManager assetManager = getAssets();\n InputStream instream = assetManager.open(\"tessdata/eng.traineddata\");\n OutputStream outstream = new FileOutputStream(filepath);\n byte[] buffer = new byte[1024];\n int read;\n while ((read = instream.read(buffer)) != -1) {\n outstream.write(buffer, 0, read);\n }\n outstream.flush();\n outstream.close();\n instream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5b8f45b19898db18d7c99f1273bfbc61", "score": "0.59097034", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Copy a file byte-by-byte\";\n\t}", "title": "" }, { "docid": "ff0084e8e12397e1d6e5dba000b6a04c", "score": "0.58950275", "text": "public static void copyFile(InputStream input, File outFile) throws IOException {\n try (OutputStream os = new FileOutputStream(outFile)) {\n byte[] buffer = new byte[COPY_BUFFER_SIZE];\n int readLen;\n while ((readLen = input.read(buffer)) != -1) {\n os.write(buffer, 0, readLen);\n }\n }\n }", "title": "" }, { "docid": "5cfe330cdb5868b02eb49627ffc6c6af", "score": "0.5887244", "text": "public void copyFile(String sourcePath, String destinationPath) throws IOException {\n this.copyFile(sourcePath, destinationPath, true, true, false);\n }", "title": "" }, { "docid": "d0f34f12d3a40d6c055cfad31b3402b8", "score": "0.5884169", "text": "private static void CopyFileFromRawToOthers(final Context context, @RawRes int id, final String targetPath) {\n InputStream in = context.getResources().openRawResource(id);\n FileOutputStream out = null;\n try {\n out = new FileOutputStream(targetPath);\n byte[] buff = new byte[1024];\n int read = 0;\n while ((read = in.read(buff)) > 0) {\n out.write(buff, 0, read);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (in != null) {\n in.close();\n }\n if (out != null) {\n out.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "4d8fc2eb726f8cb80c9ee1723285d733", "score": "0.5882063", "text": "public void copy() {\n\t\teditor.copy();\n\t}", "title": "" }, { "docid": "6718b29bf66e77b621042b02301df09c", "score": "0.58777153", "text": "public void copy(String srcName, String dstName, PhotoLocation dst, PhotoCopyMode mode) {\n\t\tFile src = null;\n\t\tFile target = null;\n\t\t\n\t\tSystem.out.println(\"Copy \" + srcName + \" to \" + dstName + \" \" + dst + \" mode \" + mode);\n\t\t\n\t\tif (mode == PhotoCopyMode.plain) {\n\t\t\tsrc = new File(path + \"/\" + srcName);\n\t\t\ttarget = new File(dst.getPath() + \"/\" + dstName);\n\t\t} else if (mode == PhotoCopyMode.zip) {\n\t\t\tString zipFileName = zip(srcName, dstName);\n\t\t\tsrc = new File(path + \"/\" + zipFileName);\n\t\t\ttarget = new File(dst.getPath() + \"/\" + dstName + \".zip\");\t\t\n\t\t} else if (mode == PhotoCopyMode.unzip) {\n\t\t\tsrcName = unzip(srcName);\n\t\t\tsrc = new File(path + \"/\" + srcName);\n\t\t\ttarget = new File(dst.getPath() + \"/\" + dstName);\t\t\t\n\t\t}\n\n\t\ttry {\n\t\t\tFiles.copy(src.toPath(), target.toPath(), StandardCopyOption.REPLACE_EXISTING);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t throw new RuntimeException(\"Copy failed\" + e);\n\t\t}\n\t\t\n\t\tif (mode == PhotoCopyMode.zip || mode == PhotoCopyMode.unzip) {\n\t\t\tsrc.delete();\n\t\t}\n\t}", "title": "" }, { "docid": "263ada5d9456f5e5c9e41eef6af88188", "score": "0.58774686", "text": "public static void main(String[] args) {\n\n if (args.length == 0) {\n System.out.println(\"Usage : copy [source] [destination]\");\n }\n else if (args.length == 1) {\n System.out.println(\"No destination provided\");\n }\n else if (args.length == 2) {\n readFile(args[0]);\n writeFile(args[1]);\n }\n //adding default case, that is identical to no arguments provided, as problem asked for handling that case in specific\n else {\n System.out.println(\"Usage : copy [source] [destination]\");\n }\n }", "title": "" }, { "docid": "e48f4e7c73757a3c083ecf6c5497a070", "score": "0.5877085", "text": "@Override\n public void copyFileReferenceTDToLocalFile(FileReferenceTD fileReference, File targetFile, NodeIdentifier node) throws IOException {\n }", "title": "" }, { "docid": "cb5b0854afd005b69267a0b342143e01", "score": "0.5871786", "text": "public void copyFileFiles() throws IOException {\n \n long start = System.currentTimeMillis();\n \n File source = new File(\"source.dat\");\n File target = new File(\"target.dat\");\n\n Files.delete(target.toPath());\n Files.copy(source.toPath(), target.toPath());\n\n long stop = System.currentTimeMillis();\n System.err.println(\"total time: \" + (stop - start) + \"ms\");\n\n }", "title": "" }, { "docid": "9d9548f8ef17da7154ba2152f3ae8c4b", "score": "0.5856655", "text": "@Override\n public VObject copy(VUtil vUtil, VDirectory destination, String name)\n throws BlockFullException, IOException, InvalidBlockAddressException, DiskFullException, InvalidBlockSizeException, InvalidNameException {\n FileBlock fileBlock = vUtil.allocateFileBlock();\n\n for (DataBlock src : this.block.getDataBlockList()) {\n DataBlock dest = vUtil.allocateDataBlock();\n dest.setContent(src.getContent());\n try {\n fileBlock.addDataBlock(dest, VUtil.BLOCK_SIZE);\n } catch (BlockFullException e) {\n fileBlock.addDataBlockListBlock(vUtil.allocateDataBlockListBlock());\n fileBlock.addDataBlock(dest, VUtil.BLOCK_SIZE);\n }\n }\n\n fileBlock.setSize(block.size());\n VFile copy = new VFile(fileBlock, destination);\n copy.setName(name);\n destination.addEntry(copy);\n return copy;\n }", "title": "" }, { "docid": "75ab8d0e36e0e4ffa8d593b0333db643", "score": "0.5856053", "text": "public static boolean copyFile(File f2, File f3) throws IOException {\n\n\t\tif (f2.exists()) {\n\t\t\tif (!f3.exists()) {\n\t\t\t\ttry {\n\t\t\t\t\tf3.createNewFile();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Unable to create file at : \"\n\t\t\t\t\t\t\t+ f3.getAbsolutePath());\n\t\t\t\t}\n\t\t\t}\n\t\t\tFileChannel source = null, destination = null;\n\n\t\t\ttry {\n\t\t\t\tsource = new FileInputStream(f2).getChannel();\n\t\t\t\tdestination = new FileOutputStream(f3).getChannel();\n\t\t\t\tdestination.transferFrom(source, 0, source.size());\n\t\t\t} finally {\n\t\t\t\tif (source != null) {\n\t\t\t\t\tsource.close();\n\t\t\t\t}\n\t\t\t\tif (destination != null) {\n\t\t\t\t\tdestination.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "98faa4a0744509f561ae186251f60ea5", "score": "0.58502704", "text": "private void copyDerivativeFileFromRemote() {\n String generatedPdfFilename = getGeneratedPdfFilename(inputFile);\n List<String> scpExecCommand = new ArrayList<String>();\n\t\tscpExecCommand.clear();\n\t\tscpExecCommand.add(\"scp\");\n scpExecCommand.add(PdfaConvert.getApplicationProperties().getProperty(ApplicationConstants.PDFA_PILOT_REMOTE_USER_PROP) +\n \t\t\"@\" +\n \t\tPdfaConvert.getApplicationProperties().getProperty(ApplicationConstants.PDFA_PILOT_REMOTE_URL_PROP) +\n \t\t\":~/\" +\n \t\tPdfaConvert.getApplicationProperties().getProperty(ApplicationConstants.PDFA_PILOT_REMOTE_OUTPUT_DIR_PROP) +\n \t\tFile.separatorChar +\n \t\tgeneratedPdfFilename);\n scpExecCommand.add( getOutputDirectory() );\n\t\tlogger.debug(\"About to launch {}, command: {}\", getToolName(), scpExecCommand);\n\t\tprocessCommand(scpExecCommand, null);\n\t}", "title": "" }, { "docid": "ac67406216aba0a1c899f9ad4c56bdcd", "score": "0.5844241", "text": "public static boolean m28779a(File file, File file2, boolean z) throws BaseException {\n if (!(file == null || file2 == null)) {\n try {\n if (file.exists() && !file.isDirectory()) {\n if (!file.getCanonicalPath().equals(file2.getCanonicalPath())) {\n File parentFile = file2.getParentFile();\n String str = \"Destination '\";\n if (parentFile != null) {\n if (!parentFile.mkdirs()) {\n if (!parentFile.isDirectory()) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(parentFile);\n sb.append(\"' directory cannot be created\");\n throw new BaseException(1053, sb.toString());\n }\n }\n }\n String str2 = f22367a;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"copyFile: srcFile:\");\n sb2.append(file.getPath());\n sb2.append(\" destFile:\");\n sb2.append(file2.getPath());\n Log.e(str2, sb2.toString());\n if (file2.exists() && !file2.canWrite()) {\n if (!file2.delete()) {\n StringBuilder sb3 = new StringBuilder();\n sb3.append(str);\n sb3.append(file2);\n sb3.append(\"' exists but is read-only and delete failed\");\n throw new IOException(sb3.toString());\n }\n }\n m28788b(file, file2, z);\n return true;\n }\n }\n } catch (BaseException e) {\n throw e;\n } catch (Throwable th) {\n m28768a(th, \"CopyFile\");\n return false;\n }\n }\n return false;\n }", "title": "" } ]
44390927a55b6333aa25349378068e16
Get the response header associated with the given name. Header name matching is case insensitive. null will be returned if either headerName is null or there is no matching header for headerName.
[ { "docid": "1966ee997adb2358826bd9ae35f8ad5e", "score": "0.7895651", "text": "public Header getResponseHeader(String headerName) { \n if (headerName == null) {\n return null;\n } else {\n return getResponseHeaderGroup().getCondensedHeader(headerName);\n } \n }", "title": "" } ]
[ { "docid": "c16a58963fb61cdc8066560a443c6047", "score": "0.7331038", "text": "public String getHeaderValue(String headerName)\n\t{\n\t\tList<String> values = this.headers.get(headerName.toLowerCase());\n\t\tif (values == null)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn values.get(0);\n\t}", "title": "" }, { "docid": "d50106d2652f29a1bda1099dc4a73a90", "score": "0.71096754", "text": "protected static String getSingleHeaderValue(\n HttpResponse response,\n String headerName)\n {\n Header[] headers = response.getHeaders(headerName);\n if (headers != null && headers.length > 0)\n {\n return headers[0].getValue();\n }\n return null;\n }", "title": "" }, { "docid": "d8922784229fbe725dc2df4dc9cb24d9", "score": "0.70271873", "text": "public String getHeader(final String name) {\n final Collection<String> strings = headers.get(name);\n return strings == null ? null : strings.iterator().next();\n }", "title": "" }, { "docid": "3d9da572626ec8af48334414f3442d79", "score": "0.7000404", "text": "public String getHeader(final String name) {\n return headers.get(name);\n }", "title": "" }, { "docid": "27fac0246cf948fb540dab4f8ab197c7", "score": "0.69977117", "text": "public Header getRequestHeader(String headerName) {\n if (headerName == null) {\n return null;\n } else {\n return getRequestHeaderGroup().getCondensedHeader(headerName);\n }\n }", "title": "" }, { "docid": "f53e142bd820b543d69ef46d07efb03d", "score": "0.66290283", "text": "public Header getHeader(String headerName) {\n if (headerName == null) throw new NullPointerException(\"bad name\");\n SIPHeader sipHeader = (SIPHeader)\n this.nameTable.get(headerName.toLowerCase());\n if (sipHeader instanceof SIPHeaderList)\n return (Header) ((SIPHeaderList) sipHeader).getFirst();\n else return (Header) sipHeader;\n }", "title": "" }, { "docid": "ad1922d4514860fa53c4da6a919a461a", "score": "0.65200835", "text": "String getHeader(String headerName);", "title": "" }, { "docid": "f8b00a04ad99a43a34859b5a6df2ab1a", "score": "0.6298764", "text": "public String getFirst(String headerName)\r\n/* 336: */ {\r\n/* 337:496 */ List<String> headerValues = (List)this.headers.get(headerName);\r\n/* 338:497 */ return headerValues != null ? (String)headerValues.get(0) : null;\r\n/* 339: */ }", "title": "" }, { "docid": "8ef5e891f3aca8ce9cb7df673c5cafd4", "score": "0.62620115", "text": "private static String getSafeHeader(final String name, final javax.ws.rs.core.HttpHeaders headers) {\n List<String> header = headers.getRequestHeader(name);\n if (header != null && !header.isEmpty()) {\n return header.get(0);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "78e239044aad85ef2412359fe2caf2c9", "score": "0.6149793", "text": "public List<Header>getHeaderByName(String name)\n\t\t{\n\t\t\tif(allHeaders==null)\n\t\t\t\treturn null;\n\t\t\tList<Header> result=null;\n\t\t\tfor(Header header : allHeaders)\n\t\t\t{\n\t\t\t\tif(header.getName().equalsIgnoreCase(name))\n\t\t\t\t{\n\t\t\t\t\tif(result==null)\n\t\t\t\t\t\tresult=new ArrayList<Header>();\n\t\t\t\t\tresult.add(header);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "b0374b24160c5d9c6b59e1e8fe636212", "score": "0.6136213", "text": "public ResponseHeaderDefinition name(String name) {\n setName(name);\n return this;\n }", "title": "" }, { "docid": "a5ba1a9dde08317676dff4b65b8bdc70", "score": "0.612392", "text": "private String findRequestHeaderValue( String name, IHTTPSession session ) {\n if ( StringUtil.isNotBlank( name ) && session != null && session.getRequestHeaders() != null ) {\n final Set<Map.Entry<String, String>> entries = session.getRequestHeaders().entrySet();\n for ( Map.Entry<String, String> header : entries ) {\n if ( name.equalsIgnoreCase( header.getKey() ) )\n return header.getValue();\n }\n }\n return null;\n }", "title": "" }, { "docid": "5ecbe91f7b857dc8620e71054195aaed", "score": "0.5967965", "text": "public java.lang.String getHeaderName() {\r\n return headerName;\r\n }", "title": "" }, { "docid": "7cd14ea47739e14afa6aa95aef7ef049", "score": "0.59125257", "text": "public Optional<String> header(String header) {\n return this.header.getHeader(header);\n }", "title": "" }, { "docid": "be9e11cd7881f94cd22689b8fa613d7d", "score": "0.5857833", "text": "@Override\n public boolean containsHeader(String name) {\n return this._getHttpServletResponse().containsHeader(name);\n }", "title": "" }, { "docid": "5ecdb54d4285525d94e3392ef71a4189", "score": "0.58409876", "text": "public java.lang.String getHeaderName () {\n\t\treturn headerName;\n\t}", "title": "" }, { "docid": "a78c30238ed40c9179206922078bd66a", "score": "0.5838777", "text": "public String getResponseHeader(String key)\n\t{\n\t\treturn this.responseHeader.getOrDefault(key, \"\");\n\t}", "title": "" }, { "docid": "a11323b86065f59b2348eae0ba5c31ea", "score": "0.5816389", "text": "public String getHeaderName() {\n\tString value = getString(ATTR_HEADER_NAME, null);\n\treturn value;\n }", "title": "" }, { "docid": "8a3961bda350805c2cc25edf61ef882d", "score": "0.5811904", "text": "public AcceptHeader getAcceptHeader(String headerName)\n\t{\n\t\tString lowerName = headerName.toLowerCase();\n\t\tAcceptHeader header = this.acceptHeaders.get(lowerName);\n\t\tif (header == null)\n\t\t{\n\t\t\tString headerValue = getHeaderValue(headerName);\n\t\t\tif (headerValue != null)\n\t\t\t{\n\t\t\t\theader = new AcceptHeader(headerName, headerValue);\n\t\t\t\tthis.acceptHeaders.put(lowerName, header);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn header;\n\t}", "title": "" }, { "docid": "6c80b718f87a03e6c2fb8516bbc83609", "score": "0.57196015", "text": "@Override\n\t\tpublic String getHeader(String name) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "dd147b6a53a1b437b65da8566ddd9b2b", "score": "0.56887263", "text": "public boolean containsHeader(String headerName)\n\t{\n\t\treturn this.headers.containsKey(headerName.toLowerCase());\n\t}", "title": "" }, { "docid": "3c05b2c0b8f8fe39b4851b63cae529ef", "score": "0.56576586", "text": "boolean containsHeader(String name);", "title": "" }, { "docid": "fb819078d08ca9486212e7e58c9b43b1", "score": "0.5618083", "text": "public static Header[] getResponseHeaders(URL url, String headerName) throws Exception {\n HttpClient httpClient = new DefaultHttpClient();\n HttpHead httpHead = new HttpHead(url.toString());\n HttpResponse response = httpClient.execute(httpHead);\n return response.getHeaders(headerName);\n }", "title": "" }, { "docid": "07fc4a4565648f1c133f09bd8f42a3d9", "score": "0.56026214", "text": "String getResponseHeader();", "title": "" }, { "docid": "115a72ad36316345751d82cd52ed6510", "score": "0.5589979", "text": "@Override\n\tpublic Collection<String> getHeaders(String name) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3e806d66e54782592d2da3cb275c6b41", "score": "0.5532093", "text": "public void setHeaderName(java.lang.String headerName) {\r\n this.headerName = headerName;\r\n }", "title": "" }, { "docid": "aa25b28942839524a5fae5b6e3b2ad41", "score": "0.552285", "text": "String getHeader(HttpServletRequest request, String name) throws ValidationException;", "title": "" }, { "docid": "d3d8e60d9bb3a5f73a07c54802bd0205", "score": "0.5501383", "text": "@Override\n\tpublic boolean containsHeader(String name) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "605b16779c36fca2ec91823ee617bb02", "score": "0.54404694", "text": "private static String getHTTPHeader(PortletRequest request, String name) {\n String value = null;\n String portalInfo = request.getPortalContext().getPortalInfo()\n .toLowerCase();\n if (portalInfo.contains(\"liferay\")) {\n value = getLiferayHTTPHeader(request, name);\n } else if (portalInfo.contains(\"gatein\")) {\n value = getGateInHTTPHeader(request, name);\n }\n return value;\n }", "title": "" }, { "docid": "43da09f73353f56fc1e89b008545098b", "score": "0.53881454", "text": "public boolean hasHeader(String headerName) {\n return nameTable.containsKey(headerName.toLowerCase());\n }", "title": "" }, { "docid": "69ee78654d5bc7061193087cd170338c", "score": "0.53838825", "text": "public void setHeaderName (java.lang.String headerName) {\n\t\tthis.headerName = headerName;\n\t}", "title": "" }, { "docid": "d7b7b46706ed3c4dd546f15bdf8ad330", "score": "0.537463", "text": "@Description(\"response has header '{name}' with value '{value}'\")\n public static Criteria<HarEntry> recordedResponseHeader(@DescriptionFragment(\"name\") String name,\n @DescriptionFragment(\"value\") String value) {\n checkArgument(isNotBlank(name), \"Response header name should be defined\");\n checkArgument(isNotBlank(value), \"Response header value should be defined\");\n\n return condition(entry -> {\n List<HarHeader> responseHeaders = entry.getResponse().getHeaders();\n\n return ofNullable(responseHeaders)\n .map(respHeaders ->\n respHeaders.stream()\n .filter(param -> Objects.equals(param.getName(), name))\n .map(HarHeader::getValue)\n .anyMatch(value::equals))\n .orElse(false);\n });\n }", "title": "" }, { "docid": "246ad6dc667fa78b6c60fcafff578082", "score": "0.53648794", "text": "public String getHeaderOverride( String theName ) {\r\n\t\tPreconditions.checkArgument( !Strings.isNullOrEmpty( theName ), \"need a header name\" );\r\n\t\ttheName = \"override.header.\" + theName; // tales does this by having 'override.header.' prepended to the header name\r\n\t\treturn this.headerOverrides.get( theName );\r\n\t}", "title": "" }, { "docid": "e19ef71154764a05f3968d5a6a96bd70", "score": "0.5350657", "text": "public Header getResponseFooter(String footerName) {\n if (footerName == null) {\n return null;\n } else {\n return getResponseTrailerHeaderGroup().getCondensedHeader(footerName);\n }\n }", "title": "" }, { "docid": "1d1b3d2235fc31794392ee5782ffdcbf", "score": "0.5335079", "text": "@Override\n public String getHeader(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return getAuthorizationHeader();\n } else {\n return super.getHeader(name);\n }\n }", "title": "" }, { "docid": "ba60b62cad7ae2ba5ceedf2ac1f10d63", "score": "0.53334934", "text": "public String getResponseHeader(String key, String defaultValue)\n\t{\n\t\treturn this.responseHeader.getOrDefault(key, defaultValue);\n\t}", "title": "" }, { "docid": "72a91bd5751da29cc859f56907fc1ef2", "score": "0.533", "text": "@Override\n\t\tpublic Enumeration getHeaders(String name) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "1772bf8521065e7753c844cf263d6a34", "score": "0.5284218", "text": "public String[] getHeader(String name) throws MessagingException {\n/* 363 */ if (this.headers == null)\n/* 364 */ loadHeaders(); \n/* 365 */ return this.headers.getHeader(name);\n/* */ }", "title": "" }, { "docid": "1675669d2a8a2cad016ff04fc83c6abf", "score": "0.5267168", "text": "void removeHeader(@NonNull String name) {\n headers.remove(name);\n }", "title": "" }, { "docid": "4ee92037d6e1357488be95c29cdf011c", "score": "0.52247775", "text": "public void headerValidation(String headerName, String headerValue){\n\t\tresponseFilePath = AssertionsUtil.responseFilePath;\n\t\tString jsonResponseString = readJsonResponse(responseFilePath);\n\t\ttry {\n\t\t\tList headers = JsonPath.read(jsonResponseString, \"$.headers\");\n\t\t\tboolean isHeaderFlag=false, isValueFlag=false;\n\t\t\tString actualValue=\"\";\n\t\t\tfor(int i=0; i<headers.size(); i++){\n\t\t\t\tif(JsonPath.read(jsonResponseString, \"$.headers[\"+i+\"].name\").equals(headerName)){\n\t\t\t\t\tisHeaderFlag = true;\n\t\t\t\t\tactualValue = JsonPath.read(jsonResponseString, \"$.headers[\"+i+\"].value\");\n\t\t\t\t\tif(actualValue.equals(headerValue)){\n\t\t\t\t\t\tisValueFlag = true;\n\t\t\t\t\t\treportObj.AddDataToTestReport(\"HeaderValidation Assertion: Expected value: \\\"\"+ headerValue +\"\\\" for Header: \\\"\"+ headerName+\"\\\"\"+\" matches with actual value \\\"\"+ actualValue +\"\\\"\", true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!isHeaderFlag){\n\t\t\t\treportObj.AddDataToTestReport(\"HeaderValidation Assertion: No such Header Type:\\\"\"+ headerName +\"\\\" exists in reponse header\", false);\n\t\t\t}\n\t\t\tif(!isValueFlag && isHeaderFlag){\n\t\t\t\treportObj.AddDataToTestReport(\"HeaderValidation Assertion: Expected value: \\\"\"+ headerValue +\"\\\" for Header: \\\"\"+ headerName+\"\\\"\"+\" does not match with actual value \\\"\"+ actualValue +\"\\\"\", false);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\treportObj.AddDataToTestReport(\"Exception in HeaderValidation Assertion: \"+e.getMessage(), false);\n\t\t}\n\t\t \n\t}", "title": "" }, { "docid": "0c3a288feb480410443d056d99902136", "score": "0.5220552", "text": "public static ResponseType getByName(String name) {\n if (name == null || name.length() < 1) {\n return ResponseType.INVALID;\n }\n name = name.trim();\n for (int i = 0; i < list.size(); i++) {\n ResponseType temp = (ResponseType) list.get(i);\n if (temp.getName().equalsIgnoreCase(name)) {\n return temp;\n }\n }\n return ResponseType.INVALID;\n }", "title": "" }, { "docid": "de2dfd4b6dce2cc5e3c90392b44c02e2", "score": "0.52097213", "text": "List<? extends Header> getHeaders(String name);", "title": "" }, { "docid": "fce30833373851f529534959d506127b", "score": "0.519214", "text": "com.didiyun.base.v1.Header getHeader();", "title": "" }, { "docid": "3017d0b961b98e5b03442423d2c4a485", "score": "0.5189871", "text": "public String getExtraHeader(final String name) {\n return extraHeaders.get(name);\n }", "title": "" }, { "docid": "28f687f5481f0d118d71c350528e136e", "score": "0.5120318", "text": "java.lang.String getHeader();", "title": "" }, { "docid": "f838934ea656ca6415c43208efbd8163", "score": "0.50944424", "text": "public <T extends Message> T header(String name, String value) {\n\t\tif (StringUtils.isNotBlank(name)) {\n\t\t\tif (this.hasHeader(name)) {\n\t\t\t\tthis.removeHeader(name);\n\t\t\t}\n\t\t\tthis.headers.put(name, value);\n\t\t}\n\t\treturn (T) this;\n\t}", "title": "" }, { "docid": "e6a46991666c60b212a83cfb158b3247", "score": "0.5034099", "text": "protected ResponseHeader getHeader() {\n return this.header;\n }", "title": "" }, { "docid": "6e1f3d73dcb20157229e92efe85de7ec", "score": "0.5032223", "text": "public ListIterator getHeaders(String headerName) {\n if (headerName == null)\n throw new NullPointerException\n (\"null headerName\");\n SIPHeader sipHeader= (SIPHeader)\n nameTable.get(headerName.toLowerCase());\n // empty iterator\n if (sipHeader == null) return new LinkedList().listIterator();\n if (sipHeader instanceof SIPHeaderList ) {\n return ((SIPHeaderList) sipHeader).listIterator();\n } else {\n return new HeaderIterator(this,sipHeader);\n }\n }", "title": "" }, { "docid": "d1f7518d24e71ae7ba84dc836f06423b", "score": "0.50175196", "text": "public Header getHeaderByKey(String key);", "title": "" }, { "docid": "674d421adba2a7a3e298129de004508e", "score": "0.50022846", "text": "HttpClientRequest header(CharSequence name, CharSequence value);", "title": "" }, { "docid": "2058cf262e488c7af678097446c8633a", "score": "0.4963755", "text": "public List<String> getHeaderValues(String headerName)\n\t{\n\t\tList<String> values = this.headers.get(headerName.toLowerCase());\n\t\tif (values == null)\n\t\t\treturn null;\n\t\telse\n\t\t{\n\t\t\tList<String> copy = new ArrayList<>();\n\t\t\tcopy.addAll(values);\n\t\t\treturn copy;\n\t\t}\n\t}", "title": "" }, { "docid": "8452b2c19abf45e60e319553ce2abe15", "score": "0.4956128", "text": "public String getHeader() {\n\t\tif (null != this.header) {\n\t\t\treturn this.header;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"header\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "c414c2e9f322718b5f4546f966f7f890", "score": "0.49417737", "text": "public String getHeader();", "title": "" }, { "docid": "8c3d9c056cb940107c7580490ddd2d8e", "score": "0.49170193", "text": "@Override\n public String getHeaderField(String name) {\n return jarUrlConnection.getHeaderField(name);\n }", "title": "" }, { "docid": "b14316d167130ac634c2568ed7ea68e4", "score": "0.4908922", "text": "public String getHeader(String name, String delimiter) throws MessagingException {\n/* 382 */ if (this.headers == null)\n/* 383 */ loadHeaders(); \n/* 384 */ return this.headers.getHeader(name, delimiter);\n/* */ }", "title": "" }, { "docid": "73e666fa59a10ab6f60d9b93e2a765d2", "score": "0.48876047", "text": "public void removeHeader(String headerName) {\n \n if (headerName == null) throw new NullPointerException(\"null arg\");\n SIPHeader toRemove =\n (SIPHeader) nameTable.get(headerName.toLowerCase());\n // nothing to do then we are done.\n if (toRemove == null) return;\n nameTable.remove(headerName.toLowerCase());\n // Remove the fast accessor fields.\n if (toRemove instanceof From) {\n this.fromHeader = null;\n } else if (toRemove instanceof To) {\n this.toHeader = null;\n } else if (toRemove instanceof CSeq) {\n this.cSeqHeader = null;\n } else if (toRemove instanceof CallID) {\n this.callIdHeader = null;\n } else if (toRemove instanceof MaxForwards) {\n this.maxForwardsHeader = null;\n } else if (toRemove instanceof ContentLength) {\n this.contentLengthHeader = null;\n }\n \n ListIterator li = this.headers.listIterator();\n while (li.hasNext()) {\n SIPHeader sipHeader = (SIPHeader) li.next();\n if (sipHeader.getName().equalsIgnoreCase(headerName)) li.remove();\n \n }\n }", "title": "" }, { "docid": "a30cdf7d3cbb8ca66519607dede021fb", "score": "0.48825634", "text": "public VCFHeader getHeader();", "title": "" }, { "docid": "bc0ad05eb33c81c7b52c40cdbc15a681", "score": "0.4875562", "text": "@Override\n public Enumeration<String> getHeaders(String name) {\n if (name.equalsIgnoreCase(\"Authorization\")) {\n return Collections.enumeration(Arrays.asList(getHeader(name)));\n } else {\n return super.getHeaders(name);\n }\n }", "title": "" }, { "docid": "a05c3aeb7cfc893d20e73615ce907138", "score": "0.48520297", "text": "public void removeHeader(String name) {\n for (Header header : mHeaderList) {\n if (header.getName().equalsIgnoreCase(name)) {\n mHeaderList.remove(header);\n break;\n }\n }\n }", "title": "" }, { "docid": "8a0acca279cbe5103349127a0c7486f4", "score": "0.48260227", "text": "public String getHeader(final Header header) {\n return headers.get(header.toString());\n }", "title": "" }, { "docid": "ad7abfc71cab0c3e1e7be3ddb094ea29", "score": "0.4822357", "text": "void setHeader(@NonNull String name, @Nullable String value) {\n if (value == null) {\n removeHeader(name);\n } else {\n headers.put(name, value);\n }\n }", "title": "" }, { "docid": "59f07f65ce159bd3f7af071a5d32194c", "score": "0.4771988", "text": "public static MessageStatus getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tMessageStatus result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c4ff6b2b688d4f2493881ef0837e3316", "score": "0.47689456", "text": "public String getHeaderOrCookieValue(String headerOrCookieName)\n\t{\n\t\tString value = getHeaderValue(headerOrCookieName);\n\t\tif (value == null)\n\t\t{\n\t\t\tCookie cookie = getCookie(headerOrCookieName);\n\t\t\tif (cookie != null)\n\t\t\t\tvalue = cookie.getValue();\n\t\t}\n\t\t\n\t\treturn value;\n\t}", "title": "" }, { "docid": "83a17c775c4b0d4274b00db54c641c7d", "score": "0.4758101", "text": "public String getHeader (final String string)\n {\n return headers.get (string);\n }", "title": "" }, { "docid": "089751737ed0cb7556a419f0bea5c012", "score": "0.4746676", "text": "@Description(\"response has header '{name}' with value contains/matches RegExp pattern '{valueExpression}'\")\n public static Criteria<HarEntry> recordedResponseHeaderMatches(@DescriptionFragment(\"name\") String name,\n @DescriptionFragment(\"valueExpression\") String valueExpression) {\n checkArgument(isNotBlank(name), \"Response header name should be defined\");\n checkArgument(isNotBlank(valueExpression), \"Response header value substring/RegExp should be defined\");\n\n return condition(entry -> {\n List<HarHeader> responseHeaders = entry.getResponse().getHeaders();\n\n return ofNullable(responseHeaders)\n .map(respHeaders ->\n respHeaders\n .stream()\n .filter(param -> Objects.equals(param.getName(), name))\n .map(HarHeader::getValue)\n .anyMatch(checkByStringContainingOrRegExp(valueExpression)))\n .orElse(false);\n });\n }", "title": "" }, { "docid": "5072f9bfabfea028a241a167b12845a1", "score": "0.47385606", "text": "public static Statistic get(String name) {\n return lookup.get(name.toLowerCase());\n }", "title": "" }, { "docid": "4dc8b72cc89025d7e32b43ac8b16f642", "score": "0.47313184", "text": "public Result withHeader(String name, String value) {\n return new Result(header.withHeader(name, value), body, session, flash, cookies);\n }", "title": "" }, { "docid": "ce508d76fc3dad3f39f4db95a73ef34d", "score": "0.47308752", "text": "void removeHeader(String headerName);", "title": "" }, { "docid": "51e1793cae98675e51383e0c95316599", "score": "0.47114202", "text": "@Description(\"request has header '{name}' with value '{value}'\")\n public static Criteria<HarEntry> recordedRequestHeader(@DescriptionFragment(\"name\") String name,\n @DescriptionFragment(\"value\") String value) {\n checkArgument(isNotBlank(name), \"Request header name should be defined\");\n checkArgument(isNotBlank(value), \"Request header value should be defined\");\n\n return condition(entry -> {\n List<HarHeader> requestHeaders = entry.getRequest().getHeaders();\n\n return ofNullable(requestHeaders)\n .map(reqHeaders ->\n reqHeaders.stream()\n .filter(param -> Objects.equals(param.getName(), name))\n .map(HarHeader::getValue)\n .anyMatch(value::equals))\n .orElse(false);\n });\n }", "title": "" }, { "docid": "ed3c42ad6f7c11e32dae934d0c94c5f0", "score": "0.4708875", "text": "public static HeaderHolder getResponseHeaderHolder() {\n return responseHeaderHolder;\n }", "title": "" }, { "docid": "954388666f93500a5f3cc1cba90d4414", "score": "0.4708648", "text": "Collection<String> getHeaderNames();", "title": "" }, { "docid": "412ef44cbedfbc0d8fbabb05d4b229de", "score": "0.46864656", "text": "public String getRequestHeader(String key)\n\t{\n\t\treturn this.requestHeader.getOrDefault(key, \"\");\n\t}", "title": "" }, { "docid": "c9456cfead4f48278238935f0ea13292", "score": "0.46753922", "text": "public String getHeaderValue() {\n\treturn getString(ATTR_HEADER_VALUE, null);\n }", "title": "" }, { "docid": "bc0373410f4b94f1d2bd209923773d18", "score": "0.46663836", "text": "public void removeRequestHeader(String headerName) {\n \n Header[] headers = getRequestHeaderGroup().getHeaders(headerName);\n for (int i = 0; i < headers.length; i++) {\n getRequestHeaderGroup().removeHeader(headers[i]);\n }\n \n }", "title": "" }, { "docid": "f69ba389a10a15a8c29746c4f5d3665a", "score": "0.46516794", "text": "public abstract SOAPHeader getSOAPHeader() throws SOAPException;", "title": "" }, { "docid": "8e61f9a231038a811a086338f36294ce", "score": "0.46462166", "text": "public HeaderData get(String key){\r\n\t\treturn map.get(key);\r\n\t}", "title": "" }, { "docid": "cc531a8ffb5e1e9b2af9bb3c2cd1efd7", "score": "0.4640948", "text": "public Header[] getResponseHeaders() {\n return getResponseHeaderGroup().getAllHeaders();\n }", "title": "" }, { "docid": "da0c94f5f93da9dfe0bbad3b42be8e30", "score": "0.46334657", "text": "private String readHeader(RoutingContext ctx) {\n String tok = ctx.request().getHeader(XOkapiHeaders.TOKEN);\n if (tok != null && ! tok.isEmpty()) {\n return tok;\n }\n return null;\n }", "title": "" }, { "docid": "ca80dc898b8bdc9b96c6b0d917330ddd", "score": "0.46321654", "text": "public Set<String> getHeaderNames() {\n return headers.keySet();\n }", "title": "" }, { "docid": "a94ce6a2fd8da1bcf8acc8ae1173477a", "score": "0.46266866", "text": "@Override\n public EmailHeader getHeader(String HeaderType) {\n if(HeaderType == null){\n return null;\n }\n if(HeaderType.equalsIgnoreCase(\"VipHeader\")){\n return new VipHeader();\n } else return null;\n }", "title": "" }, { "docid": "e3515dc643928b3e6ef1d2b715979291", "score": "0.4624922", "text": "public java.lang.String getHeaderValue() {\r\n return headerValue;\r\n }", "title": "" }, { "docid": "43d221e85a001e970cded28f2569bec3", "score": "0.46208507", "text": "Set<String> getHeaderNames();", "title": "" }, { "docid": "2df72d502cbc1e3cbb9d20dfd7208f85", "score": "0.45971912", "text": "public T addHeader(String name,String value){\n if(TextUtils.isEmpty(name) || TextUtils.isEmpty(value)){\n throw new EasyNetException(\"header name or value is empty\");\n }\n if(headers == null){\n headers = new ArrayMap<>(5);\n }\n headers.put(name,value);\n return (T) this;\n }", "title": "" }, { "docid": "4e560c8192d6f45c0f8c0d0107190c79", "score": "0.4593045", "text": "public Map<String, List<String>> getResponseHeaders() {\n return responseHeaders == null ? Collections.EMPTY_MAP : responseHeaders;\n }", "title": "" }, { "docid": "26e56514c0a6634f0687f80d59a0c799", "score": "0.45863116", "text": "public Result withoutHeader(String name) {\n return new Result(header.withoutHeader(name), body, session, flash, cookies);\n }", "title": "" }, { "docid": "a7dd0dfe996903a2875c936d647cab11", "score": "0.45846492", "text": "Headers getHeaders();", "title": "" }, { "docid": "780d3032ba4c22c22e509c3cbbe6c78b", "score": "0.45439038", "text": "public List<String>getHeaderElementByName(String headerName,String elementName)\n\t\t{\n\t\t\tList<Header>headers=getHeaderByName(headerName);\n\t\t\tif(headers==null)\n\t\t\t\treturn null;\n\t\t\tList<String> result=null;\n\t\t\tfor(Header header : headers)\n\t\t\t{\n\t\t\t\tfor(HeaderElement he : header.getElements())\n\t\t\t\t{\t\n\t\t\t\t\tif(he.getName().equalsIgnoreCase(elementName) && he.getValue()!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(result==null)\n\t\t\t\t\t\t\tresult=new ArrayList<String>();\n\t\t\t\t\t\tresult.add(he.getValue());\n\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "title": "" }, { "docid": "07b896203792eeef2a95c56b91aa2d91", "score": "0.45319402", "text": "public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}", "title": "" }, { "docid": "97d1aec0824ece20af63d82f7b391440", "score": "0.4531434", "text": "public String getHeader() {\n return header;\n }", "title": "" }, { "docid": "97d1aec0824ece20af63d82f7b391440", "score": "0.4531434", "text": "public String getHeader() {\n return header;\n }", "title": "" }, { "docid": "e01c634ad0acb81d9e67027c80ab3c0d", "score": "0.45256144", "text": "Map<String, String> getHeaders();", "title": "" }, { "docid": "38f82ae4394f6655336d65387b9617b8", "score": "0.45142177", "text": "public static CarColor getCarColorOf(String name) {\r\n\t\tOptional<CarColor> colorEnum = Arrays.stream(CarColor.values())\r\n\t\t\t\t.filter(eEnum -> eEnum.toString().equalsIgnoreCase(name))\r\n\t\t\t\t.findFirst();\r\n\t\tif (colorEnum.isPresent()) {\r\n\t\t\treturn colorEnum.get();\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "94c28dff559ab1aaa56e829f94f42584", "score": "0.4496048", "text": "@Override\n\tpublic void addRequestHeader(String headername, String value) {\n \t// We are not adding in common http headers \n \tif (!COMMON_HTTP_HEADERS.contains(headername.toLowerCase())) {\n \t\ttransLogModelThreadLocal.get().getRequestHeadersMap().put(headername, value);\n \t}\n\t}", "title": "" }, { "docid": "f4107a380c02d3b07adf9179528606a8", "score": "0.44863018", "text": "public BookingHeader getBookingHeader(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.bookingheader.v1.BookingHeader res){\n\t\tBookingHeader bookingHeader = new BookingHeader();\n\t\t\n\t\tif( res.getTourPrice() != null ){\n\t\t\tbookingHeader.setTourPrice( res.getTourPrice().doubleValue() );\n\t\t}\n\t\tif( res.getAmountDue() != null ){\n\t\t\tbookingHeader.setAmountDue( res.getAmountDue().doubleValue() );\n\t\t}\n\t\tif( res.getMinimumAmount() != null ){\n\t\t\tbookingHeader.setMinimumAmount( res.getMinimumAmount().doubleValue() );\n\t\t}\n\t\tif( res.getBaseCommission() != null ){\n\t\t\tbookingHeader.setBaseCommission( res.getBaseCommission().doubleValue() );\n\t\t}\n\t\tif( res.getAmountPaid() != null ){\n\t\t\tbookingHeader.setAmountPaid( res.getAmountPaid().doubleValue() );\n\t\t}\n\t\tif( res.getGrossBalanceDue() != null ){\n\t\t\tbookingHeader.setGrossBalanceDue( res.getGrossBalanceDue().doubleValue() );\n\t\t}\n\t\tif( res.getPromoSaving() != null ){\n\t\t\tbookingHeader.setPromoSaving( res.getPromoSaving().doubleValue() );\n\t\t}\n\t\tbookingHeader.setBookingNo( res.getBookingNo() );\n\t\tbookingHeader.setTourId( res.getTourId() );\n\t\tbookingHeader.setTrackingNo( res.getTrackingNo() );\n\t\tbookingHeader.setPromoId( res.getPromoId() );\n\t\tbookingHeader.setPromoCode( res.getPromoCode() );\n\t\tbookingHeader.setCreatedBy( res.getCreatedBy() );\n\t\tbookingHeader.setLastChangeBy( res.getLastChangeBy() );\n\t\tbookingHeader.setSalesOrg( res.getSalesOrg() );\n\t\tbookingHeader.setDistributionChannel( res.getDistributionChannel() );\n\t\tbookingHeader.setCallCenter( res.getCallCenter() );\n\t\tbookingHeader.setAlertCode( res.getAlertCode() );\n\t\tbookingHeader.setActionCode( res.getActionCode() );\n\t\tbookingHeader.setAgencyRatingCode( res.getAgencyRatingCode() );\n\t\tif( res.getOptionDate() != null ){\n\t\t\tbookingHeader.setOptionDate( this.getDate( res.getOptionDate() ) );\n\t\t}\n\t\tif( res.getCancellationDate() != null ){\n\t\t\tbookingHeader.setCancellationDate( this.getDate( res.getCancellationDate() ) );\n\t\t}\n\t\tif( res.getTicketingDate() != null ){\n\t\t\tbookingHeader.setTicketingDate( this.getDate( res.getTicketingDate() ) );\n\t\t}\n\t\tif( res.getDepartureDate() != null ){\n\t\t\tbookingHeader.setDepartureDate( this.getDate( res.getDepartureDate() ) );\n\t\t}\n\t\tif( res.getGuaranteedDate() != null ){\n\t\t\tbookingHeader.setGuaranteedDate( this.getDate( res.getGuaranteedDate() ) );\n\t\t}\n\t\tif( res.getFinalDueDate() != null ){\n\t\t\tbookingHeader.setFinalDueDate( this.getDate( res.getFinalDueDate() ) );\n\t\t}\n\t\tif( res.getVoucherDate() != null ){\n\t\t\tbookingHeader.setVoucherDate( this.getDate( res.getVoucherDate() ) );\n\t\t}\n\t\tif( res.getCreatedDate() != null ){\n\t\t\tbookingHeader.setCreatedDate( this.getDate( res.getCreatedDate() ) );\n\t\t}\n\t\tif( res.getLastChangeDate() != null ){\n\t\t\tbookingHeader.setLastChangeDate( this.getDate( res.getLastChangeDate() ) );\n\t\t}\n\t\tif( res.getTravelDate() != null ){\n\t\t\tbookingHeader.setTravelDate( this.getDate( res.getTravelDate() ) );\n\t\t}\n\t\tif( res.getBookingDate() != null ){\n\t\t\tbookingHeader.setBookingDate( this.getDate( res.getBookingDate() ) );\n\t\t}\n\t\tif( res.isApplyPaymentAllowed() != null ){\n\t\t\tbookingHeader.setApplyPaymentAllowed( res.isApplyPaymentAllowed().booleanValue() );\n\t\t}\n\t\tif( res.isZeroPriceError() != null ){\n\t\t\tbookingHeader.setZeroPriceError( res.isZeroPriceError().booleanValue() );\n\t\t}\n\t\tif( res.isPriceMismatchError() != null ){\n\t\t\tbookingHeader.setPriceMismatchError( res.isPriceMismatchError().booleanValue() );\n\t\t}\n\t\tif( (res.getBookingStatus() != null) && (res.getBookingStatus().getStatus() != null ) ){\n\t\t\tif( res.getBookingStatus().getStatus().equals(\"OPT\")){\n\t\t\t\tbookingHeader.setBookingStatus( BookingStatus.OPT );\n\t\t\t}\n\t\t\telse if( res.getBookingStatus().getStatus().equals(\"GTD\")){\n\t\t\t\tbookingHeader.setBookingStatus( BookingStatus.GTD );\n\t\t\t}\n\t\t\telse if( res.getBookingStatus().getStatus().equals(\"PIF\")){\n\t\t\t\tbookingHeader.setBookingStatus( BookingStatus.PIF );\n\t\t\t}\n\t\t\telse if( res.getBookingStatus().getStatus().equals(\"DRD\")){\n\t\t\t\tbookingHeader.setBookingStatus( BookingStatus.DRD );\n\t\t\t}\n\t\t\telse if( res.getBookingStatus().getStatus().equals(\"CANC\")){\n\t\t\t\tbookingHeader.setBookingStatus( BookingStatus.CANC );\n\t\t\t}\n\t\t\telse if( res.getBookingStatus().getStatus().equals(\"DEP\")){\n\t\t\t\tbookingHeader.setBookingStatus( BookingStatus.DEP );\n\t\t\t}\n\t\t\telse if( res.getBookingStatus().getStatus().equals(\"EXP\")){\n\t\t\t\tbookingHeader.setBookingStatus( BookingStatus.EXP );\n\t\t\t}\n\t\t}\n\t\tif( res.getAgency() != null ){\n\t\t\tbookingHeader.setAgency( this.getAgency( res.getAgency() ) );\n\t\t}\n\t\tif( (res.getPaymentHistoryInformationList() != null) && (res.getPaymentHistoryInformationList().size() > 0) ){\n\t\t\tbookingHeader.setPaymentHistoryInformationList( new ArrayList<PaymentHistoryInfo>() );\n\t\t\tfor(int i=0; i < res.getPaymentHistoryInformationList().size(); i++){\n\t\t\t\tif( res.getPaymentHistoryInformationList().get(i) != null ){\n\t\t\t\t\tbookingHeader.getPaymentHistoryInformationList().add( \n\t\t\t\t\t\tthis.getPaymentHistoryInfo( res.getPaymentHistoryInformationList().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn bookingHeader;\n\t}", "title": "" }, { "docid": "85181baa6d8a5e43e18d96e070169aae", "score": "0.4482796", "text": "public java.lang.String getSenderHeaderName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDERHEADERNAME$24, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "1eb2b623bc635627d3b41bd8e3c1c73f", "score": "0.44767767", "text": "private Cookie getCookieByName(HttpServletRequest request, String name) {\n Map<String, Cookie> cookieMap = readCookieMap(request);\n if (cookieMap.containsKey(name)) {\n Cookie cookie = (Cookie) cookieMap.get(name);\n return cookie;\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "e58bbdfd2599bec2da181d09c3315a7d", "score": "0.44707265", "text": "public byte[] getResponseHeader() throws IOException,\n \t\t\tMessageFormatException {\n \t\tif (state != State.REQUEST_HEADER_SENT\n \t\t\t\t&& state != State.REQUEST_CONTENT_SENT) {\n \t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\"Ilegal state. Can't read response header when state is \"\n \t\t\t\t\t\t\t+ state);\n \t\t}\n \t\tInputStream is = socket.getInputStream();\n \t\tHeaderByteArrayOutputStream header = new HeaderByteArrayOutputStream();\n \t\tint i = -1;\n \t\ttry {\n \t\t\tresponseHeaderStartTime = responseHeaderEndTime = 0;\n \t\t\twhile (!header.isEndOfHeader() && (i = is.read()) > -1) {\n \t\t\t\tif (responseHeaderStartTime == 0) {\n \t\t\t\t\tresponseHeaderStartTime = System.currentTimeMillis();\n \t\t\t\t}\n \t\t\t\theader.write(i);\n \t\t\t}\n \t\t\tresponseHeaderEndTime = System.currentTimeMillis();\n \t\t} catch (SocketTimeoutException ste) {\n \t\t\tlogger.fine(\"Timeout reading response header. Had read \"\n \t\t\t\t\t+ header.size() + \" bytes\");\n \t\t\tif (header.size() > 0) {\n \t\t\t\tlogger.fine(AsciiString.create(header.toByteArray()));\n \t\t\t}\n \t\t\tthrow ste;\n \t\t}\n \t\tif (i == -1) {\n \t\t\tthrow new IOException(\"Unexpected end of stream reading header\");\n \t\t}\n \t\tMutableResponseHeader.Impl rh = new MutableResponseHeader.Impl();\n \t\trh.setHeader(header.toByteArray());\n \t\tString status = rh.getStatus();\n \t\tif (status.equals(\"100\")) {\n \t\t\tstate = State.RESPONSE_CONTINUE;\n \t\t} else {\n \t\t\tstate = State.RESPONSE_HEADER_READ;\n \t\t\tresponseContent = getContentStream(rh, is);\n \t\t}\n \t\treturn rh.getHeader();\n \t}", "title": "" }, { "docid": "1c79da01e652f7037e809c4b9a7520bd", "score": "0.44669726", "text": "@Nullable\n public static OutputFormat find(String name) {\n String normalized = name.trim()\n .toUpperCase().replaceAll(\"-\", \"_\");\n try {\n return OutputFormat.valueOf(normalized);\n } catch (IllegalArgumentException ex) {\n return null;\n }\n }", "title": "" }, { "docid": "d08d0fc4b4bf8892e5fa472f0cc2bc14", "score": "0.446384", "text": "public Result withHeaders(String... nameValues) {\n return new Result(\n JavaResultExtractor.withHeader(header, nameValues), body, session, flash, cookies);\n }", "title": "" }, { "docid": "82083bf0d456125430bdfacf4747f7f3", "score": "0.44636816", "text": "public String getHeader() {\n\t\treturn _header;\n\t}", "title": "" } ]
0838179ee85d38710109378c1d5f6765
JUnitDoclet end class Constructor PolygonFigureTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
[ { "docid": "12ecdc3b06adf2312675c7629287d440", "score": "0.8098582", "text": "public PolygonFigureTest(String name) {\r\n\t\t// JUnitDoclet begin method PolygonFigureTest\r\n\t\tsuper(name);\r\n\t\t// JUnitDoclet end method PolygonFigureTest\r\n\t}", "title": "" } ]
[ { "docid": "0df7658e868b80d66477547e75b74f5b", "score": "0.74031556", "text": "public PolygonFigure createInstance() throws Exception {\r\n\t\t// JUnitDoclet begin method testcase.createInstance\r\n\t\treturn new PolygonFigure();\r\n\t\t// JUnitDoclet end method testcase.createInstance\r\n\t}", "title": "" }, { "docid": "60fc1e46e129c4d530b2ada1aa5b2825", "score": "0.73226583", "text": "public PolyTest()\r\n {\r\n //System.out.println(\"JUnit Framework calls Constructor of test class before executing test methods\");\r\n }", "title": "" }, { "docid": "ceef9d95f52df82cd3b42ef88f45831f", "score": "0.7250449", "text": "protected void setUp() throws Exception {\r\n\t\t// JUnitDoclet begin method testcase.setUp\r\n\t\tsuper.setUp();\r\n\t\tpolygonfigure = createInstance();\r\n\t\t// JUnitDoclet end method testcase.setUp\r\n\t}", "title": "" }, { "docid": "7eab9f190aa6470f3bd5aa5999863daf", "score": "0.7069263", "text": "public void testGetPolygon() throws Exception {\r\n\t\t// JUnitDoclet begin method getPolygon\r\n\t\t// JUnitDoclet end method getPolygon\r\n\t}", "title": "" }, { "docid": "7d3e690655e4ed1ac6f87de1d1159558", "score": "0.70554", "text": "public RenderingTestCase() {\n\t}", "title": "" }, { "docid": "9e6dba40a6f63dfa93150e03d1a222ba", "score": "0.6742467", "text": "public RegularPolygon() {\r\n\r\n\t}", "title": "" }, { "docid": "8450cc455e528c0d46d64c6e79322e7a", "score": "0.6606964", "text": "public void testGetInternalPolygon() throws Exception {\r\n\t\t// JUnitDoclet begin method getInternalPolygon\r\n\t\t// JUnitDoclet end method getInternalPolygon\r\n\t}", "title": "" }, { "docid": "2ee72187005a28dd41f64fed92485b9b", "score": "0.6550649", "text": "public StyrkeTest() {\n }", "title": "" }, { "docid": "90678d395e8d2a0447fefdf0d988688d", "score": "0.6549003", "text": "public TestFactoryImpl()\n {\n super();\n }", "title": "" }, { "docid": "8f953ce5c5beab1add14ad5b70edbf72", "score": "0.6527649", "text": "public PolygonTool() {\r\n\t\tthis.x = 0;\r\n\t\tthis.y = 0;\r\n\t\tthis.w = 0;\r\n\t\tthis.h = 0;\r\n\t\tthis.rad = 0;\r\n\t\tthis.centerX = 0;\r\n\t\tthis.centerY = 0;\r\n\t\tthis.xPoints = new double[0];\r\n\t\tthis.yPoints = new double[0];\r\n\t\tthis.dragContext = new DragContext();\r\n\t}", "title": "" }, { "docid": "3993b1a0f89e8f05f9dcafaeb56a0923", "score": "0.6483515", "text": "public PolygonCreator() {\n super();\n setPreferredSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));\n setBackground(backgroundColor);\n\n // --- Add the mouse listeners.\n this.addMouseListener(this);\n this.addMouseMotionListener(this);\n xPoints = new LinkedList<Integer>();\n yPoints = new LinkedList<Integer>();\n }", "title": "" }, { "docid": "b3dd5e28182c25c15c7f4c91f07cd527", "score": "0.6467348", "text": "public AllyTest()\n {\n }", "title": "" }, { "docid": "94722df8f0d575b17db7b8080f6e86f9", "score": "0.64377755", "text": "public TestAnalysisTest() {\n\t\t/*\n\t\t * This constructor should not be modified. Any initialization code should be\n\t\t * placed in the setUp() method instead.\n\t\t */\n\n\t}", "title": "" }, { "docid": "1b1fbb7f87a782cb0ee8d99de19ee3e8", "score": "0.6411677", "text": "public ArtikelTest()\n {\n }", "title": "" }, { "docid": "6ace21746cd63ac4688f1748c1b2fbbe", "score": "0.63978314", "text": "public static void main(String[] args) {\n\t\tnew DrawPolygonTest();\r\n\t}", "title": "" }, { "docid": "d8b408c88060a68a76e6237d83e24eee", "score": "0.6386952", "text": "public GatesTest() {\n }", "title": "" }, { "docid": "dfdb9c4aeece18d7aa0bf952db92a180", "score": "0.63073945", "text": "public CaveWorldTest()\r\n {\r\n }", "title": "" }, { "docid": "2ee123d32cc2c8d6269cdab59e231630", "score": "0.6279511", "text": "@Test\r\n public void testConstructor() {\n }", "title": "" }, { "docid": "e01585617b48edf15c6e251e5c1061f8", "score": "0.6264518", "text": "@Override\n @Test\n public void constructorTest() {\n assertEquals(50, getTestUnit().getCurrentHitPoints());\n assertEquals(50, getTestUnit().getMaxHitPoints());\n assertEquals(2, getTestUnit().getMovement());\n assertEquals(new Location(0, 0), getTestUnit().getLocation());\n assertTrue(getTestUnit().getItems().isEmpty());\n }", "title": "" }, { "docid": "407d7ef825076b9bffc4f200abe1fac8", "score": "0.62575936", "text": "public LineRenderTest() {\r\n\t\tsuper(\"LineRenderTest\");\r\n\t}", "title": "" }, { "docid": "d9ba46ce20f9821c0e15679f49841517", "score": "0.62479275", "text": "ConstructorsTestResource(int x, float y) {\n }", "title": "" }, { "docid": "5815783e1428f5aec76a4c483c5f81f3", "score": "0.62028426", "text": "@Test public void constructorTestNormal(){\n tri = new CSC143Triangle(4, 3);\n Assert.assertNotNull(tri);\n }", "title": "" }, { "docid": "cf7f9e87b5e29f35fd82bc39260e8dae", "score": "0.61724246", "text": "public FluidTest()\n {\n // The constructor is usually empty in unit tests, since it runs\n // once for the whole class, not once for each test method.\n // Per-test initialization should be placed in setUp() instead.\n }", "title": "" }, { "docid": "5f04d4987c4c35d76d38f5b8c2cb89e5", "score": "0.6153822", "text": "public RasterSymbolizerTest() {\n }", "title": "" }, { "docid": "56ed0eb10bcd98678a4675e3dc55f1ef", "score": "0.61514056", "text": "public Graph2DTest() {\n initComponents();\n }", "title": "" }, { "docid": "d304cbfde5d8ffe4d1a85b1d6f934b3c", "score": "0.61381763", "text": "@Test\n public void testConstructor() {\n assertNotNull(edge);\n }", "title": "" }, { "docid": "5105cf20e70eccf392b4512daba60910", "score": "0.61359286", "text": "@Test\r\n\tpublic void testConstructor() {\r\n\t\tnew ConstructorTestClass();\r\n\t}", "title": "" }, { "docid": "e73b1aee7df247d4e5073c4fdef93db0", "score": "0.61283284", "text": "public MiscTest() {\n }", "title": "" }, { "docid": "bd6b54fe875062110ca68bc3b229da85", "score": "0.61199546", "text": "public TestBounds(String testName) {\n super( testName );\n }", "title": "" }, { "docid": "efa6c50ff6a108c6e842b9f5b3fe7791", "score": "0.60956013", "text": "@Test\n\tpublic void testConstructor() {\n\t\tnew ConstructorTestClass();\n\t}", "title": "" }, { "docid": "efa6c50ff6a108c6e842b9f5b3fe7791", "score": "0.60956013", "text": "@Test\n\tpublic void testConstructor() {\n\t\tnew ConstructorTestClass();\n\t}", "title": "" }, { "docid": "efa6c50ff6a108c6e842b9f5b3fe7791", "score": "0.60956013", "text": "@Test\n\tpublic void testConstructor() {\n\t\tnew ConstructorTestClass();\n\t}", "title": "" }, { "docid": "efa6c50ff6a108c6e842b9f5b3fe7791", "score": "0.60956013", "text": "@Test\n\tpublic void testConstructor() {\n\t\tnew ConstructorTestClass();\n\t}", "title": "" }, { "docid": "d78845f5b49fc91c06ca31e39d654719", "score": "0.60942024", "text": "@Before public void setUp() {\n tri = new CSC143Triangle(4, 3);\n }", "title": "" }, { "docid": "bddbd8e443c3cf06062f9f4f67a4bccb", "score": "0.60919565", "text": "@Test\r\n public void testConstructor() {\r\n Rectangle r = new Rectangle(5.0,6.0);\r\n assertEquals(5.0, r.getLength(), 0.001);\r\n assertEquals(6.0, r.getWidth(), 0.001);\r\n }", "title": "" }, { "docid": "c3f9324fc4a4293078ee2a42d73d4cdf", "score": "0.6079923", "text": "public PolygonShape() {\n this(null);\n }", "title": "" }, { "docid": "52236371d20e9e9a72e0b45a48f20798", "score": "0.60796255", "text": "protected Polygon() {\n this.vertexes = new Vertex[]{};\n }", "title": "" }, { "docid": "c3c734546354d049f3d47c1a0b0a32ac", "score": "0.60623413", "text": "public Polygon() {\r\n\t\t// . . .\r\n\t\tpoints = new ArrayList<Point2D>();\r\n\t}", "title": "" }, { "docid": "3fd3a93ffe0f77c55123b5d952cfc1ad", "score": "0.60563755", "text": "public abstract void testConstructors();", "title": "" }, { "docid": "c95409c855264d39b5e05d84075e0449", "score": "0.60523736", "text": "@Test\n\tpublic void ConstructorTest()\n\t{\n\t\tassertNotNull(OC);\n\t\t\n\t}", "title": "" }, { "docid": "4da7fc5619d931f797c60041c364a2f9", "score": "0.6051168", "text": "public void testBasic()\n {\n \tGeodeticDatum datum=GeodeticDatumRegister.getInstance().getGeodeticDatumByName(\"NAD27\");\n\n Geo2DPoint geo=new Geo2DPoint(12, 13);\n Geo2DPoint geoRef=new Geo2DPoint(12, 13, datum);\n Assert.assertSame(datum,geoRef.getDatum());\n System.out.println(\"geoRef=\"+geoRef);\n GeoPolygon geoPolygon=new GeoPolygon();\n geoPolygon.addPoint(4, 5);\n geoPolygon.addPoint(2, 3);\n geoPolygon.addPoint(geo);\n Assert.assertEquals(3,geoPolygon.getNumberOfPoints());\n GeoRectangle geoRect=new GeoRectangle(2, 3, 4, 5);\n System.out.println(\"geoRect=\"+geoRect);\n }", "title": "" }, { "docid": "fa868c6902485905617d4bbf167493e4", "score": "0.60466725", "text": "public FigPoly(int x, int y, Hashtable gAttrs) {\n this(gAttrs);\n addPoint(x, y);\n }", "title": "" }, { "docid": "fe9084b93dd603ded83712fff2b9d9dd", "score": "0.6031194", "text": "@Test\n public void testRectanglesAgjacency() {\n }", "title": "" }, { "docid": "036b58cdb680bdb4d4352f8f722a3126", "score": "0.6020156", "text": "private Test4(){}", "title": "" }, { "docid": "826e2af89a03c0e92d881deffb04c70c", "score": "0.6015808", "text": "@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t\ttester = new ImprovedTriangle();\n\t\t\n\t}", "title": "" }, { "docid": "49cc20f7edd5f75d90e765e82385f7fd", "score": "0.6013085", "text": "public BookCatalogTest(){\r\n\t\tbc = new BookCatalog();\r\n\t\tbook1 = new BookArray(1, \"Java for beginners\", \"\", \"\", \"\", 0);\r\n\t\tbc.addBook(book1);\r\n\t\t//Constructor in JUnit runs every time we run the test, here 4 times for we have 4 methods\r\n\t\t//System.out.println(\"Constructor in run\");\r\n\t}", "title": "" }, { "docid": "1bc6aeab46316691d5236c0411656c5a", "score": "0.5996039", "text": "public TestDataRunner() {\n this.df = new DataFactory();\n }", "title": "" }, { "docid": "ec31f7c0746d2e4298e9087791c546a0", "score": "0.59745455", "text": "public BusinessTestCase() {}", "title": "" }, { "docid": "c9198f46234c9ccd931047600d9939c0", "score": "0.59670496", "text": "public Test()\r\n {\r\n \r\n }", "title": "" }, { "docid": "ab7caf5b2be6a4e37dfd32f7b9c2e40b", "score": "0.59523845", "text": "public void testPaint() {\n }", "title": "" }, { "docid": "3dc12bcbba8a5bd3d52e7c4e25cd90b3", "score": "0.5948714", "text": "public FuncTest() {\n super();\n }", "title": "" }, { "docid": "4ff14062f733c7d12651fe1c9c514097", "score": "0.59332466", "text": "public Test()\n {\n \n }", "title": "" }, { "docid": "4ff14062f733c7d12651fe1c9c514097", "score": "0.59332466", "text": "public Test()\n {\n \n }", "title": "" }, { "docid": "7752f3ec04dc3cb126f04d222a3fef53", "score": "0.59238124", "text": "protected AbstractUnitTest() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "b3deb164a19808cdf22c72c440d70173", "score": "0.59172446", "text": "public BidTests() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "37720e53a2dcbac159a7964084736045", "score": "0.59134656", "text": "PolygonPanel(Polygon polygon)\n {\n this.polygon = polygon;\n }", "title": "" }, { "docid": "962309f6285ba0c7f51700b0a081bbbc", "score": "0.59081674", "text": "public void testCtor() {\n assertNotNull(\"Failed to create a new BaseDocumentTreeView instance.\", treeView);\n }", "title": "" }, { "docid": "bf9eebd58bf93979a0493e7a23f64934", "score": "0.59072435", "text": "public GananciasTest()\n {\n }", "title": "" }, { "docid": "db234eaef137841b8a8ef890d444843b", "score": "0.5899685", "text": "public SudokuTest( String testName )\n {\n super( testName );\n }", "title": "" }, { "docid": "8a20f59a982f196c322bcab1279f9028", "score": "0.5887795", "text": "public Drawing() {\r\n\r\n\t}", "title": "" }, { "docid": "34701e0062e255127f97c8a7c69aee46", "score": "0.588275", "text": "@Test\n public void testDraw() {\n\tSystem.out.println(\"draw\");\n\tSquare instance = new Square();\n\tinstance.draw();\n }", "title": "" }, { "docid": "5510a4a1e167468a810dc4e383057b76", "score": "0.5880259", "text": "public Test()\n {\n // initialise instance variables\n \n }", "title": "" }, { "docid": "0b2637fc79c8fed0ca931372b1acf2a0", "score": "0.5877456", "text": "public MyTestDemo() {\n initComponents();\n }", "title": "" }, { "docid": "841f4c737d1ade7412d21dac62395eec", "score": "0.58716017", "text": "public void testCtorAccuracy() throws Exception {\n assertNotNull(\"Failed to create the ContestPrize instance.\", contestPrize);\n }", "title": "" }, { "docid": "28ade4e56d14a94c214ad023f65d7ebb", "score": "0.5863864", "text": "public Shape () {\r\n // \r\n }", "title": "" }, { "docid": "125ef0472b4af24ffea0b22a1887f691", "score": "0.5855347", "text": "public void testPoints() throws Exception {\r\n\t\t// JUnitDoclet begin method points\r\n\t\t// JUnitDoclet end method points\r\n\t}", "title": "" }, { "docid": "2c76b21d131cade72381c5a2dc0f701e", "score": "0.5854955", "text": "@Test\n\tpublic void testConstructor() {\n @SuppressWarnings(\"unused\")\n ConstructorTestClass constructorTestClass = new ConstructorTestClass();\t\t\n }", "title": "" }, { "docid": "e392b41654c2985bc5c3fb26806043fe", "score": "0.58504057", "text": "@Test\n void testOtherConstructor(){\n Ship ship = new Ship(\"testName\", 3);\n assertEquals(ship.name, \"testName\");\n assertEquals(ship.length, 3);\n }", "title": "" }, { "docid": "4707aa681e035f462ff3ad5ee8ce3460", "score": "0.58495975", "text": "@Test\n\tpublic void testConstructor() {\n\t @SuppressWarnings(\"unused\")\n\t\t\tConstructorTestClass constructorTestClass = new ConstructorTestClass();\t\t\n\t}", "title": "" }, { "docid": "2e21356f61a07d0f04e5e1a245e25f46", "score": "0.58469194", "text": "public InitializerTest( String testName )\n {\n super( testName );\n }", "title": "" }, { "docid": "8d01e2c0ea312e984d01da4da9cecd63", "score": "0.5839953", "text": "public FlyingSpaceshipTest() {\n super(\"FlyingSpaceshipTest\");\n }", "title": "" }, { "docid": "6e5347a8ee05912174bcbd2cc2efada9", "score": "0.5833833", "text": "private Shapes() {\r\n /* Only static methods */\r\n }", "title": "" }, { "docid": "5b9d19fe595b1fc2f524cd9fd14d91c0", "score": "0.58335024", "text": "public AbstractTool()\n {\n myStartPoint = NO_POINT;\n myEndPoint = NO_POINT;\n }", "title": "" }, { "docid": "b01f40d3a2580e5b690ed864bd5ad562", "score": "0.5831468", "text": "public PersonTest()\n {\n }", "title": "" }, { "docid": "31c9238f4506212f1654bdc9d20865eb", "score": "0.58195055", "text": "public PersonalityTest()\n {\n }", "title": "" }, { "docid": "93b499379032e46853ab9b871f39324a", "score": "0.58067065", "text": "public ConstructorsTestResource() {\n }", "title": "" }, { "docid": "451eadbec94685d50c15a7bde95fa69e", "score": "0.5806113", "text": "public Testo() {\n /** rimanda al costruttore della superclasse */\n super();\n }", "title": "" }, { "docid": "cb4e3b0a99292ac343a4b524893f875e", "score": "0.580372", "text": "Test() {\n System.out.println(\"Constructor called\");\n }", "title": "" }, { "docid": "a4af507d152cc7eb3a715e49a84e006e", "score": "0.5803452", "text": "public CTest(String testName) {\n\t\tsuper(testName);\n\t}", "title": "" }, { "docid": "f5cfccccffe3335901753f85681706fb", "score": "0.5790131", "text": "public PuzzleMain() {\n\t}", "title": "" }, { "docid": "a3237c582e380e0aca488270e6f51fc3", "score": "0.5774462", "text": "public KommentarTest()\n {\n }", "title": "" }, { "docid": "a0cedeb164537b358922120dfc413d05", "score": "0.5772227", "text": "public Shape() {\r\n super();\r\n }", "title": "" }, { "docid": "cc765458be80e46f2a218b5b29f76a37", "score": "0.5771717", "text": "public ReflectorTest(String testName) {\n\t\tsuper(testName);\n\t}", "title": "" }, { "docid": "5c645dde857431334492b17a3cdece6e", "score": "0.5762332", "text": "public PhotoServiceTest(String testName) {\n super(testName); \n }", "title": "" }, { "docid": "bcde6a6121a70583a72fc0f361da0f83", "score": "0.5757969", "text": "public Shape(int num_sides)\r\n\t{\r\n\t\t//Check that the number of sides is valid\r\n\t\tif(num_sides < 3)\r\n\t\t\tthrow new IllegalArgumentException(\"The number of sides on a regular polygon must be greater than or equal to 3.\");\r\n\t\t\r\n\t\t//Sets the number of sides\r\n\t\tthis.num_sides = num_sides;\r\n\t\t\r\n\t\t//Initializes the scale and translate transformations for the recentering of the objects\r\n\t\tscale = new Scale(1, 1);\r\n\t\ttranslate = new Translate(0, 0);\r\n\t\t\r\n\t\t//Sets the center of scaling\r\n\t\tscale.setPivotX(INITIAL_DIMENSION / 2);\r\n\t\tscale.setPivotY(INITIAL_DIMENSION /2);\r\n\t\t\r\n\t\t//Sets the window size to the initial size\r\n\t\tsuper.setPrefHeight(2*INITIAL_DIMENSION);\r\n\t\tsuper.setPrefWidth(INITIAL_DIMENSION);\r\n\t\t\r\n\t\t//Adds the application style sheet\r\n\t\tgetStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\r\n\t\t\r\n\t\t//Initializes the polygon\r\n\t\tpolygon = new Polygon();\r\n\t\t\r\n\t\t//Sets the style of the polygon\r\n\t\tpolygon.getStyleClass().add(\"defaultNoncoloredPolygon\");\r\n\t\t\r\n\t\t\r\n\t\t//Generates the regular polygon\r\n\t\tfor(int i = 0; i < num_sides; i++)\r\n\t\t{\r\n\t\t\tpolygon.getPoints().add((1 + .9*Math.sin((i * 1.0) / num_sides * 2 * Math.PI)) * INITIAL_DIMENSION / 2.0 );\r\n\t\t\tpolygon.getPoints().add((1 - .9*Math.cos((i * 1.0) / num_sides * 2 * Math.PI)) * INITIAL_DIMENSION / 2.0 );\r\n\t\t}\r\n\t\t\r\n\t\t//Adds the Regular Polygon to the pane\r\n\t\tsuper.getChildren().add(polygon);\r\n\t\t\r\n\t\t\t\t\r\n\t\t//Creates the label\r\n\t\ttext = new Text(\"\" + num_sides);\r\n\t\t\r\n\t\t//Centers the number in the polygon\r\n\t\ttext.setY(INITIAL_DIMENSION / 2 + text.getBoundsInLocal().getHeight() / 4);\r\n\t\ttext.setX(INITIAL_DIMENSION / 2 - text.getBoundsInLocal().getWidth() / 2.0);\r\n\t\t\r\n\t\t//Sets the style of text\r\n\t\ttext.getStyleClass().add(\"defaultNoncoloredPolygon\");\r\n\t\t\r\n\t\t\r\n\t\tsuper.getChildren().add(text);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Add a listener so that if the pane changes its height then the graphics will change \r\n\t\tsuper.heightProperty().addListener(new ChangeListener<Number>() {\r\n\t\t\tpublic void changed( ObservableValue<? extends Number> observable,\r\n\t\t\t\t\tNumber oldValue, Number newValue)\r\n\t\t\t{\r\n\t\t\t\tscale.setY(newValue.doubleValue()/ INITIAL_DIMENSION); //Sets the amount the shape needs to be scaled on y-axis\r\n\t\t\t\ttranslate.setY((newValue.doubleValue() - INITIAL_DIMENSION) / 2.0); //Sets the amount the shape needs to be translated to stay in the center\r\n\t\t\t\t\r\n\t\t\t\tgetTransforms().setAll(translate, scale); //Adds the transformations to transformation queue\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//Add a listener so that if the pane changes its height then the graphics will change\r\n\t\tsuper.widthProperty().addListener(new ChangeListener<Number>() {\r\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable,\r\n\t\t\t\t\tNumber oldValue, Number newValue)\r\n\t\t\t{\t\r\n\t\t\t\tscale.setX(newValue.doubleValue()/ INITIAL_DIMENSION); //Sets the amount the shape needs to be scaled on x-axis\r\n\t\t\t\ttranslate.setX((newValue.doubleValue() - INITIAL_DIMENSION) / 2.0); //Sets the amount the shape needs to be translated on x-axis\r\n\t\t\t\tgetTransforms().setAll(translate, scale); //Adds the transformations to transformation queue\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "ed2d98fd15e8ff4d7189b91aa9645f68", "score": "0.57579076", "text": "public GemShape() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "02172d3646ba0cff185b83edb9d456bc", "score": "0.57561696", "text": "@Before\n public void createPolynomial() {\n this.poly = new PolynomialImpl();\n }", "title": "" }, { "docid": "6bff644a3bb9f6b3ce4d694273077922", "score": "0.57546264", "text": "protected void tearDown() throws Exception {\r\n\t\t// JUnitDoclet begin method testcase.tearDown\r\n\t\tpolygonfigure = null;\r\n\t\tsuper.tearDown();\r\n\t\t// JUnitDoclet end method testcase.tearDown\r\n\t}", "title": "" }, { "docid": "200c852d40c04fdfe6484e5912901434", "score": "0.57525826", "text": "public PollPageTest(){super(); }", "title": "" }, { "docid": "27f59725628a9eca008d811c365cb738", "score": "0.5751903", "text": "public PieceFactory() {\n\t}", "title": "" }, { "docid": "9467839b4af4a3b4dcc60888cd0521c3", "score": "0.57474035", "text": "public static void main(String[] args) throws NonSimplePolygonException {\n\t\t// TODO: place your tester code here\n\t //ConvexPolygon a = new ConvexPolygon();\n\t ConvexPolygon a = ConvexPolygon.getNewPoly();\n\t \t String s = a.toString();\n\t \t System.out.println(\"All Coordinates are: \" + s);\n\t System.out.println(\"The size is: \" + a.getSize());\n\t System.out.println(\"The second vertex is: \" + a.getVertex(1));\n\t System.out.println(\"The last vertex is: \" + a.getVertex(a.getSize()-1));\n\t System.out.println(\"Disjoint Edges between the first and second: \" + a.disjointEdges(0, 1));\n\t System.out.println(\"Disjoint Edges between the first and third: \" + a.disjointEdges(0, 2));\n\t System.out.println(\"Disjoint Edges between the first and last: \" + a.disjointEdges(0, a.getSize()-1));\n\t System.out.println(\"Is simple? \" + a.isSimple());\n\t System.out.println(\"Is convex? \" + ((a.isConvex())));\n\t System.out.println(\"The perimeter is: \" + a.perimeter()); \n\t System.out.println(\"The area is: \" + a.area());\n\t}", "title": "" }, { "docid": "9d9d7a385291dca93a24e459762320f9", "score": "0.57458925", "text": "public ImageFormatTest()\n\t{\n\t\tsuper( \"Image Format Test\" );\n\t}", "title": "" }, { "docid": "fcfbd1f631649fbf282851f86d3ab1cd", "score": "0.57362455", "text": "public WallPostingTest()\n {\n // The constructor is usually empty in unit tests, since it runs\n // once for the whole class, not once for each test method.\n // Per-test initialization should be placed in setUp() instead.\n }", "title": "" }, { "docid": "c5894ade9a4a7e4f5048f3baa7ad79d8", "score": "0.57347775", "text": "public BoardTest()\n {\n }", "title": "" }, { "docid": "42121fbd9a457f29051ff0d8829bc959", "score": "0.5734599", "text": "ConcreteVerticesGraph() {\n\n }", "title": "" }, { "docid": "66176f3bd8fa15ae43eaec5aab474654", "score": "0.5732694", "text": "public AsteroidTest()\n {\n // The constructor is usually empty in unit tests, since it runs\n // once for the whole class, not once for each test method.\n // Per-test initialization should be placed in setUp() instead.\n }", "title": "" }, { "docid": "98ca5307d24508f49d1b86926febc085", "score": "0.5727906", "text": "public Teste() {\n initComponents();\n preencherProfessor();\n }", "title": "" }, { "docid": "4bc6d6b63ebd95902a3708e2b7bf2907", "score": "0.57233196", "text": "ScissorPolygon()\n\t{\n\t\tsuper();\n\t}", "title": "" }, { "docid": "6975120cebea45fa6d46500c9f5fa947", "score": "0.5712515", "text": "private TareasSpecification() {\r\n }", "title": "" }, { "docid": "ba9bd7c44a2bef3c66f567520e2c26df", "score": "0.5707294", "text": "public VistaHacerTest() {\n initComponents();\n \n }", "title": "" } ]
07002bb310e46aa3e096673cfb080a81
Moving up to the next world.
[ { "docid": "c589a1a218f1934a798787cf3e582a20", "score": "0.0", "text": "@Override\n public void worldPush(int worldIndex) {\n worldStartLevels[worldIndex] = currentLevel;\n if (worldIndex == worldStartLevels.length - 1) {\n worldStartLevels = Arrays.copyOf(worldStartLevels, (int) (worldStartLevels.length * loadfactor));\n }\n }", "title": "" } ]
[ { "docid": "ccb762b45fdb3088ceddc658500ddb69", "score": "0.7403661", "text": "private void moveUp() {\n\t\tif(this.y_coord <= 0)\n\t\t\ty_coord = Params.world_height - 1;\n\t\telse\n\t\t\ty_coord--;\n\t}", "title": "" }, { "docid": "567367c44a433bb509e429c37c47022f", "score": "0.7212792", "text": "public void moveUp() {\n int nextX = this.getX();\n int nextY = this.getY() - 1;\n if (tryWalk(nextX, nextY, \"up\")) {\n this.y().set(nextY);\n this.dungeon.notifyPlayerMoved(this, this.dungeon);\n } \n }", "title": "" }, { "docid": "8cd3585ef87b8120b3ed9c7cd4dccdcc", "score": "0.7065145", "text": "public void moveUp()\n {\n Vector3f up = new Vector3f(loc.getX(), loc.getY(), loc.getZ());\n geo.setLocalTranslation(up);\n phy.setPhysicsLocation(up);\n }", "title": "" }, { "docid": "fe172799cf369c20981be013e2f08ad0", "score": "0.68663865", "text": "public void moveUp() {\n if (dungeon().canMove(this, getX(), getY() - 1) && dungeon().interact(this, getX(), getY() - 1)) {\n if (getY() > 0)\n setY(getY() - 1);\n }\n }", "title": "" }, { "docid": "96458cbfa8c53943de28926202ed1d97", "score": "0.68416417", "text": "public void updateWorld()\n {\n // Update the environment\n _world.advanceOneFrame();\n }", "title": "" }, { "docid": "eedbf8c7a00d81984afa65fe7efb896c", "score": "0.68302965", "text": "public void walkUp(){\r\n offCenter[1]-=SQUARE_SIZE/frameDivide;\r\n if(offCenter[1]<=-1*SQUARE_SIZE){//should stop moving\r\n location[1]-=1;\r\n toGo[1]-=1;\r\n offCenter[1]=0;\r\n //travelling=false;\r\n imageSequence=0;\r\n }else{\r\n imageSequence++;\r\n if(imageSequence>IMG_SEQUENCE_MAX)\r\n imageSequence=0;\r\n }\r\n directionFacing=0;\r\n }", "title": "" }, { "docid": "001b4faf016e0e217bae129c790b72a5", "score": "0.67627877", "text": "private void moveUp() {\r\n\t\t\r\n\t\tstatus.motorOn = true;\r\n\t\tstatus.currentFloor++;\r\n\t\tSystem.out.println(\"Elevator\" +elNumber+\": \"+ \" Going up: floor \"+status.currentFloor);\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cb83f3bd11ca854f5e3eec7c2c2cc2ca", "score": "0.66388094", "text": "@Override\r\n\tpublic void moveUp() {\n\t\ty -= ySpeed;\r\n\t}", "title": "" }, { "docid": "0e65ba28e3ee88d167c06516d39e01f9", "score": "0.66195726", "text": "void moveUp();", "title": "" }, { "docid": "245ed2b149776dd66dc21e1032acca64", "score": "0.6616659", "text": "public void moveUp() {\n\t\tif (this.y + this.altura >= this.altMin && y + this.altura <= this.altMax)\n\t\t\tthis.y -= this.velocY;\n\t\tif(this.y + this.altura >= altMax)\n \t\tthis.y = altMax-altura;\n\t}", "title": "" }, { "docid": "570a9f5a897a439e0b62cc7b61fa3b67", "score": "0.65985626", "text": "private void moveDown() {\n\t\tif(this.y_coord >= Params.world_height - 1)\n\t\t\ty_coord = 0;\n\t\telse\n\t\t\ty_coord++;\n\t}", "title": "" }, { "docid": "fdfd6e5d3a31d5ad57d3364dcdf6267c", "score": "0.6597791", "text": "public void moveUp() {\r\n\t\tif (this.isMovePossible(this.getX(), this.getY() - 1)) {\r\n\t\t\tthis.setY(this.getY() - 1);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4e6e4c6f80fe1adc452851f0c921215d", "score": "0.6582394", "text": "public void moveUp()\n {\n moveVertical(-20);\n }", "title": "" }, { "docid": "f52f8003e7c287c0cbb3d0267f3ba8de", "score": "0.6556447", "text": "public void goUp(){\r\n\t\tsetY(getY() - 5);\r\n\t\trelocateRectangle(getX(), getY());\r\n\t}", "title": "" }, { "docid": "5fc831eeddd597d1141346ecdc01b95b", "score": "0.65528786", "text": "public void moveUp();", "title": "" }, { "docid": "443e232e0bd1e02545c8ab26f63c4494", "score": "0.64930487", "text": "public void moveUp(){\n \tLog.w(\"SWIPE_DEBUG\", \"SWIPE_DEBUG: Moving UP\");\n \tif (this.getY() >= ActGameScreen.SQUARE_SIDE){\n \t\tthis.setY(this.getY() - ActGameScreen.SQUARE_SIDE);\n \t}\n }", "title": "" }, { "docid": "97ff00a93861b794903e2816b974f04b", "score": "0.6488165", "text": "public void moveUp()\n\t{\n\t\tint x = (int) this.position.getX();\n\t\tint y = (int) this.position.getY();\n\n\n\n\t\tif(y <= 0)\n\t\t{\n\t\t\thit = true;\n\t\t\treturn;\n\t\t}\n\n\t\t/*\tfor(Tank t :targets)\n\t\t\t{\n\t\t\t\tif(this.isHit(t.getRect()))\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}*/\n\t\ty -= SPEED;\n\n\n\t\tthis.rect.setLocation(new Point(x,y));\n\t\tthis.setPosition(new Point(x,y));\n\n\n\t}", "title": "" }, { "docid": "286effb5b11d033697b41719e8aeb1a6", "score": "0.64774513", "text": "@Override\r\n\tpublic void moveUp(int x, int y) {\n\t\t\r\n\t}", "title": "" }, { "docid": "df9c54051d51ae15ad48e3d7c84e9bb3", "score": "0.6465813", "text": "private void goUp()\n {\n if(currentFloor.getFloorID() < NUM_OF_FLOORS)\n { \n elevatorState = ElevatorState.GOING_UP;\n try\n {\n Thread.currentThread().sleep(TIME_PER_FLOOR/SCALE_FACTOR);\n currentFloor = RegBuilding.getInstance().getNextHigherFloor(currentFloor);\n }\n catch(InterruptedException e)\n {\n System.err.println(\"going up exception\");\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "4f2165a26a7639b6b08df6e54e161b0a", "score": "0.6445182", "text": "public void movement()\n {\n World1 world = (World1)getWorld();\n int xLocation = getX();\n int yLocation = getY();\n if ( Greenfoot.isKeyDown(\"up\") == true )\n {\n setLocation( getX(), getY() - 1 );\n Greenfoot.delay(moveDelay);\n getWorld().addObject(new Walls(), xLocation, yLocation);\n randomWalls(addWallCount);\n moveCount ++;\n }\n \n if ( Greenfoot.isKeyDown(\"down\") == true )\n {\n setLocation( getX(), getY() + 1 );\n Greenfoot.delay(moveDelay);\n getWorld().addObject(new Walls(), xLocation, yLocation);\n randomWalls(addWallCount);\n moveCount ++;\n }\n \n if ( Greenfoot.isKeyDown(\"left\") == true )\n {\n setLocation( getX() - 1, getY());\n Greenfoot.delay(moveDelay);\n getWorld().addObject(new Walls(), xLocation, yLocation);\n randomWalls(addWallCount);\n moveCount ++;\n }\n \n if ( Greenfoot.isKeyDown(\"right\") == true )\n {\n setLocation( getX() + 1, getY());\n Greenfoot.delay(moveDelay);\n getWorld().addObject(new Walls(), xLocation, yLocation);\n randomWalls(addWallCount);\n moveCount ++;\n }\n \n //defeat code.\n endGame();\n }", "title": "" }, { "docid": "173cad72eab9667bd6919baa962c8070", "score": "0.6429281", "text": "public void moveToNextArcade() {\n this.motionInfo.posInArcade.y = 0;\n }", "title": "" }, { "docid": "590816330ce7eace0e49bb46766f852a", "score": "0.641315", "text": "@Override\n\tpublic void moveUp() {\n\t\ty -= ySpeed;\t// y-axis pointing down for 2D graphics\n\t}", "title": "" }, { "docid": "1509365500a1b1c31429246525587a79", "score": "0.640674", "text": "public void toTheEnd()\r\n {\r\n turnAround();\r\n move();\r\n turnLeft();\r\n move();\r\n }", "title": "" }, { "docid": "7008e29be94ef4c7c25d11b2aa63c61a", "score": "0.6393712", "text": "@Override\n public void move(Environment env) {\n switch (getDirection()) {\n case DOWN:\n if (!isBlocked(env.getMaze(), Direction.DOWN)) {\n x++;\n }\n break;\n case LEFT:\n if (!isBlocked(env.getMaze(), Direction.LEFT)) {\n y--;\n }\n break;\n case RIGHT:\n if (!isBlocked(env.getMaze(), Direction.RIGHT)) {\n y++;\n }\n break;\n case UP:\n if (!isBlocked(env.getMaze(), Direction.UP)) {\n x--;\n }\n break;\n }\n }", "title": "" }, { "docid": "76224ecc310d4a00d700e52068985b72", "score": "0.63725895", "text": "private void movePlayerUp(Map gameMap){\n\n //now a proper jump may occur\n this.setObjVSpeed(\n -abs(this.getDefaultVSpeed()\n ));\n\n\n }", "title": "" }, { "docid": "3daeb252bcfc2f3f5b9d32c381f463cd", "score": "0.63666284", "text": "public void move() {\n if (passengers[currentFloor - 1][1] == 1) {\n this.offBoardPassengers();\n }\n System.out.println(this.toString());\n // base case terminates the recursive call when there are no more stops\n if (!this.areStops(passengers)) {\n return;\n }\n\n if (currentFloor == 7) {\n direction = \"down\";\n }\n\n if (currentFloor == 1) {\n direction = \"up\";\n }\n\n \n if (direction == \"up\") {\n currentFloor++;\n } else {\n currentFloor--;\n }\n\n this.move();\n }", "title": "" }, { "docid": "82c53fd735142e2dc37cca524ce1fdef", "score": "0.63639545", "text": "private void goUp() throws InterruptedException {\n\t\tc3po.setAngle(0);\n\t\tc3po.microMove(5);\n\t\t\n\t}", "title": "" }, { "docid": "7607bfecc50ab6841c9a9850dc6b8f38", "score": "0.6361873", "text": "private void MoveUp(float Delta) {\n\t\tCamera.translate(0, Player1.MoveRate * Delta);\n\t}", "title": "" }, { "docid": "1d4f77caaf8ea2522a879847541541e6", "score": "0.63485116", "text": "public void moveUp()\n\t{\n\t\tmyCurrentCoordinate = new Point(myCurrentCoordinate.getX(), myCurrentCoordinate.getY() - myScale);\n\t}", "title": "" }, { "docid": "912b0bbd0bcf7751c271b2823d41664a", "score": "0.63310057", "text": "public void moveUp() {\n\t\tif(row > 0) {\n\t\t\trow--;\n\t\t} \n\t}", "title": "" }, { "docid": "e0aa93069fd1338f881af0623e236337", "score": "0.6316503", "text": "public void startMovingToUp() {\n tryStartMoving(0, MOVE_UP);\n }", "title": "" }, { "docid": "42bc8f2fa38661c0e816fde1ce57de06", "score": "0.6304024", "text": "public void moveUp() {\n\t\tsuper.moveUp();\n\t\tthis.setSprite(SPRITEU);\n\t}", "title": "" }, { "docid": "683c45bf7147c113e79494cd2995eaf0", "score": "0.62484723", "text": "public void move() {\n this._loc.x = rtodp(_nextLocation.x,6);\n this._loc.y = rtodp(_nextLocation.y,6);\n this._loc.z = rtodp(_nextLocation.z,6);\n }", "title": "" }, { "docid": "3b819458645878141834b08ee103d872", "score": "0.6153983", "text": "public void moveUp(float distance)\r\n {\r\n position.y -= distance;\r\n }", "title": "" }, { "docid": "c05044a761df14e1d1e20b40bbd16413", "score": "0.61470133", "text": "public void moveWorld(Vec3f dir)\n\t{\n\t\ttarget = target.plus(dir);\n\t\tupdateView();\n\t}", "title": "" }, { "docid": "42f214ef9bf4d13cfc1668d046d0e93a", "score": "0.6082227", "text": "private void shiftUp() {\r\n swapZero(zeroPos - ROW_SIZE);\r\n zeroY--;\r\n solutionMove[++steps] = MOVE_U;\r\n }", "title": "" }, { "docid": "38239fcaced6570d1d7f5087e32ba683", "score": "0.6079858", "text": "public void moveDown() {\n int nextX = this.getX();\n int nextY = this.getY() + 1;\n if (tryWalk(nextX, nextY, \"down\")) {\n this.y().set(nextY);\n this.dungeon.notifyPlayerMoved(this, this.dungeon);\n } \n }", "title": "" }, { "docid": "d5769d3132ef2d347cff54128c1304ba", "score": "0.60677725", "text": "protected void shiftAllUp(int endOffset) {\n if (this.world.isRemote == false) {\n for (int i = 0; i < this.getSizeInventory() - endOffset - 1; i++) {\n shiftPairUp(i, i + 1);\n }\n }\n }", "title": "" }, { "docid": "888719fd9933b2707b79a69124ffff9d", "score": "0.6055766", "text": "public void moveEast() {\r\n\t\txPos++;\r\n\t}", "title": "" }, { "docid": "ea8a913ab9d388a539037dfe0f1bf26d", "score": "0.6013662", "text": "@Override\n public void upButtonPressed() {\n System.out.println(\"GameState.upButtonPressed()...\");\n\n if (player1.getRow() != 0) {\n player1.setRow((player1.getRow() - 1));\n } else {\n // maybe cycle back to the bottom of the map...\n }\n\n //countZeroInit.update();\n }", "title": "" }, { "docid": "116e24f758d419178c9f0f79c32e0739", "score": "0.59971684", "text": "private void move()\n {\n move(speed); \n \n if(Greenfoot.getRandomNumber(100) < 35)\n {\n if(Greenfoot.getRandomNumber(2) < 1)\n {\n turn(15);\n }\n else\n {\n turn(-15);\n }\n }\n \n if(atEdgeOfWorld() == true)\n {\n turn(7);\n }\n }", "title": "" }, { "docid": "281f9e618562a7a6057fd085e2fc5cc7", "score": "0.59865403", "text": "public void collectorUp()\r\n {\r\n collectorPosition.set(DoubleSolenoid.Value.kForward);\r\n }", "title": "" }, { "docid": "d05b4e15d95eb08b36c61c8066062d6d", "score": "0.59858453", "text": "public void moveNorth() {\r\n\t\tyPos--;\r\n\t}", "title": "" }, { "docid": "3d081e3aaa1d50249a429af510a4bbb6", "score": "0.59694564", "text": "public void moveUp(Level level) {\n\t\tif (level.getTiles()[locationX][locationY-1].isPassable()) {\n\t\t\tfor (int x = 0; x < level.getAllEnemies().size(); x++) {\n\t\t\t\tif (level.getAllEnemies().get(x).getLocationX() == locationX && level.getAllEnemies().get(x).getLocationY() == locationY-1) {\n\t\t\t\t\tsetDead(true);\n\t\t\t\t} level.getAllEnemies().get(x).move(level,this);\n\t\t\t\tif (level.getAllEnemies().get(x).getLocationX() == locationX && level.getAllEnemies().get(x).getLocationY() == locationY-1) {\n\t\t\t\t\tsetDead(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlevel.getTiles()[locationX][locationY-1].onTouch(this);\n\t\t\tif (level.getTiles()[locationX][locationY-1] instanceof Door) {\n\t\t\t\tDoor door = (Door) level.getTiles()[locationX][locationY-1];\n\t\t\t\tif (door.isLocked()) {\n\t\t\t\t\tlocationY = locationY + 1;\n\t\t\t\t}\n\t\t\t} if (level.getTiles()[locationX][locationY] instanceof crackedFloor) {\n\t\t\t\tlevel.getTiles()[locationX][locationY].setImage(new Image(\"/brokefloor.png\"));\n\t\t\t} setPlayerImage(new Image(\"/playerup.png\"));\n\t\t\tlocationY = locationY - 1;\n\t\t}\n\t}", "title": "" }, { "docid": "f3a541b49cd276a652959acfef370cc7", "score": "0.5958858", "text": "public void walkUp()\n\t{\n\t\tisWalking = true;\n\t\tfor (double row = currentRow; row > currentRow - 1; row -= 0.15)\n\t\t{\n\t\t\tyLocation = (int) (row * IMAGE_WIDTH);\n\t\t\txLocation = (currentColumn) * IMAGE_WIDTH;\n\n\t\t\tdrawWalk(yLocation);\n\t\t}\n\t\tisWalking = false;\n\t}", "title": "" }, { "docid": "6596e11f8da6e4f0a1c153833c540d04", "score": "0.59217536", "text": "public void bringToEndzone(double x, double y){\n\t\tinitX=odo.getX();\n\t\tinitY=odo.getY();\n\t\tinitTheta=odo.getAng();\n\t\t//Bring block to endzone\n\t\toa.travel(endzoneX, endzoneY);\n\t\thandleBlock(false);\n\t\t//Bring robot back to last neighborhood\n\t\toa.travel(endzoneX, endzoneY);\n\t\tnav.turnTo(initTheta, true);\n\t}", "title": "" }, { "docid": "ea19140d032c729a4e43f4eab4d22bce", "score": "0.5916855", "text": "public void moveDown() {\n if (dungeon().canMove(this, getX(), getY() + 1) && dungeon().interact(this, getX(), getY() + 1)) {\n if (getY() < dungeon().getHeight() - 1)\n setY(getY() + 1);\n }\n }", "title": "" }, { "docid": "3f1a22c5a7d65e305c096496e025be10", "score": "0.59010595", "text": "public void act() \n {\n if(isAtEdge())\n {\n getWorld().removeObject(this);\n }\n setRotation(270); \n move(15);\n \n try{\n Actor Player1;\n Player1 = getOneObjectAtOffset(0,0,Player1.class);\n if(Player1 != null)\n {\n TwoPlayerGame twoGame = (TwoPlayerGame)getWorld();\n twoGame.hitOne();\n \n World world;\n world = getWorld();\n world.removeObject(this);\n \n \n }\n }catch(Exception o){\n }\n }", "title": "" }, { "docid": "8db1d31af190d5dd89fd49700bc16d24", "score": "0.5896726", "text": "private void moveUp() {\n\t\ty -= MOVE;\n\t\trepaint();\n\t}", "title": "" }, { "docid": "fc93d61ccebeba43468ff04db7e4e999", "score": "0.5886513", "text": "public void pushOutUp(Plateforme other) {\n double deltaY = this.posY + this.height - other.posY;\n this.posY -= deltaY;\n }", "title": "" }, { "docid": "07b84e538dc0beefe100882f358e68fa", "score": "0.58736086", "text": "public void baselineMove(){\n if (checkIfChangeDirection()){\n goingUp ^= true;\n }\n\n if (goingUp){\n currentFloor++;\n findFloor();\n } else{\n currentFloor--;\n findFloor();\n }\n }", "title": "" }, { "docid": "d24b4e20389eae8e70df2488524e27a3", "score": "0.58666074", "text": "protected void execute() {\n \tRobot.liftMechanism.moveUp();\n }", "title": "" }, { "docid": "c3463f973d8b1e97630eeea04b0812f4", "score": "0.5866223", "text": "private void move(Direction dir) {\n player.update();\n if(player.overlaySymbol == null)\n {\n mapSLayers.removeGlyph(player.overlayAppearance);\n player.overlayAppearance = null;\n }\n int newX = player.location.x + dir.deltaX;\n int newY = player.location.y + dir.deltaY;\n Coord newPos = Coord.get(newX, newY);\n if (!map.inBounds(newX, newY)) {\n return; // can't move, should probably be error or something\n }\n\n if (map.contents[newX][newY].blockage == null) {\n mapSLayers.slide(player.appearance, player.location.x, player.location.y, newX, newY, 0.145f, () ->\n {\n calcFOV(newX, newY);\n calcDijkstra();\n runTurn();\n });\n if(player.overlayAppearance != null)\n mapSLayers.slide(player.overlayAppearance, player.location.x, player.location.y, newX, newY, 0.145f, null);\n player.location = newPos;\n sound.playFootstep();\n } else {\n Physical thing = map.contents[newX][newY].getCreature();\n if (thing != null) {\n awaitedMoves.clear(); // don't keep moving if something hit\n toCursor.clear();\n mapSLayers.bump(player.appearance, dir, 0.145f);\n ActionOutcome ao = ActionOutcome.attack(player, thing);\n if (ao.hit) {\n Element element = ao.actorWeapon.elements.random();\n applyStatChange(thing, Stat.VIGOR, ao.actualDamage);\n if (thing.stats.get(Stat.VIGOR).actual() <= 0) {\n mapSLayers.removeGlyph(thing.appearance);\n if (thing.overlayAppearance != null) {\n mapSLayers.removeGlyph(thing.overlayAppearance);\n }\n creatures.remove(thing.location);\n map.contents[newX][newY].remove(thing);\n if (ao.crit) {\n Stream.concat(thing.physicalDrops.stream(), thing.elementDrops.getOrDefault(element, Collections.emptyList()).stream())\n .map(table -> {\n int quantity = table.quantity();\n Physical p = mixer.buildPhysical(table.random());\n if (p.groupingData != null) {\n p.groupingData.quantity += quantity;\n } else {\n p.groupingData = new Grouping(quantity);\n }\n return p;\n })\n .forEach(item -> {\n map.contents[newX][newY].add(item);\n if (map.resistances[newX + GauntRNG.between(player.chaos + 10, -1, 2)][newY + GauntRNG.between(player.chaos + 11, -1, 2)] < 0.9) {\n map.contents[newX + GauntRNG.between(player.chaos + 10, -1, 2)][newY + GauntRNG.between(player.chaos + 11, -1, 2)].add(item);\n }\n });\n mapSLayers.burst(newX, newY, 1, Radius.CIRCLE, thing.appearance.shown, thing.color, SColor.translucentColor(thing.color, 0f), 1);\n message(\"You [Blood]brutally[] defeat the \" + thing.name + \" with \" + -ao.actualDamage + \" \" + element.styledName + \" damage!\");\n } else {\n Stream.concat(thing.physicalDrops.stream(), thing.elementDrops.getOrDefault(element, Collections.emptyList()).stream())\n .map(table -> {\n int quantity = table.quantity();\n Physical p = mixer.buildPhysical(table.random());\n if (p.groupingData != null) {\n p.groupingData.quantity += quantity;\n } else {\n p.groupingData = new Grouping(quantity);\n }\n return p;\n })\n .forEach(item -> map.contents[newX][newY].add(item));\n mapSLayers.burst(newX, newY, 1, Radius.CIRCLE, thing.appearance.shown, thing.color, SColor.translucentColor(thing.color, 0f), 1);\n message(\"You defeat the \" + thing.name + \" with \" + -ao.actualDamage + \" \" + element.styledName + \" damage!\");\n }\n } else {\n String amtText = String.valueOf(-ao.actualDamage);\n int startX = newX - (amtText.length() >> 1);\n for (int i = 0; i < amtText.length(); i++, startX++) {\n mapSLayers.summon(startX, newY, startX + 1, newY - 1, amtText.charAt(i), element.floatColor, SColor.translucentColor(element.floatColor, 0f), 1f);\n }\n if(ao.crit)\n {\n mapSLayers.wiggle(thing.appearance, 0.3f);\n message(Messaging.transform(\"You [CW Bright Orange]critically[] \" + element.verb + \" the \" + thing.name + \" for \" +\n amtText + \" \" + element.styledName + \" damage!\", \"you\", Messaging.NounTrait.SECOND_PERSON_SINGULAR));\n }\n else\n {\n message(Messaging.transform(\"You \" + element.verb + \" the \" + thing.name + \" for \" +\n amtText + \" \" + element.styledName + \" damage!\", \"you\", Messaging.NounTrait.SECOND_PERSON_SINGULAR));\n }\n if(ao.targetConditioned)\n {\n message(Messaging.transform(\"You \" +\n ConditionBlueprint.CONDITIONS.getOrDefault(ao.targetCondition, ConditionBlueprint.CONDITIONS.getAt(0)).verb +\n \" the \" + thing.name + \" with your attack!\", \"you\", Messaging.NounTrait.SECOND_PERSON_SINGULAR));\n if(thing.overlaySymbol != null) {\n if (thing.overlayAppearance != null) mapSLayers.removeGlyph(thing.overlayAppearance);\n thing.overlayAppearance = mapSLayers.glyph(thing.overlaySymbol, thing.overlayColor, newX, newY);\n }\n }\n }\n } else {\n message(\"Missed the \" + thing.name + (ao.crit ? \", but just barely.\" : \"...\"));\n }\n calcFOV(player.location.x, player.location.y);\n calcDijkstra();\n runTurn();\n } else if ((thing = map.contents[newX][newY].getLargeNonCreature()) != null) {\n awaitedMoves.clear(); // don't keep moving if something hit\n toCursor.clear();\n message(\"Ran into \" + thing.name);\n runTurn();\n } else {\n runTurn();\n }\n }\n }", "title": "" }, { "docid": "f7ad08050a8587de13076b07b36f815d", "score": "0.58656764", "text": "public void personatgeUpdate() {\n Vector3f camDir = app.getCamera().getDirection().clone().multLocal(0.6f);\n Vector3f camLeft = app.getCamera().getLeft().clone().multLocal(0.4f);\n walkDirection.set(0, 0, 0);\n if (left) { walkDirection.addLocal(camLeft); }\n if (right) { walkDirection.addLocal(camLeft.negate()); }\n if (up) { walkDirection.addLocal(camDir); }\n if (down) { walkDirection.addLocal(camDir.negate()); }\n player.setWalkDirection(walkDirection);\n app.getCamera().setLocation(player.getPhysicsLocation());\n }", "title": "" }, { "docid": "96d2eedf2dd61d0249fef9006bff8954", "score": "0.58651435", "text": "public void move(){\n if(canMove()){\n move(1);\n } else if(getObjectsAtOffset(1, 1, Rock.class).size() > 0){\n life= life-3;\n } else if(getNextX(1) == getWorld().getWidth()){\n isInWorld = false;\n }\n }", "title": "" }, { "docid": "dc3ff005ef52ed9782a1a387e5f36ea5", "score": "0.5861607", "text": "private void switchDirectionL() {\r\n\t\tsetLocation(getX(), getY() + 5);\r\n\t\tdirection = 1;\r\n\r\n\t\tif (getY() > 70) {\r\n\t\t\t((MyWorld) getWorld()).gameOver();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "649dd60241c144040e5ed7cc0ce525dc", "score": "0.58561176", "text": "public void slideUp(){\r\n if(canMove(\"Up\")){\r\n cleanBoard();\r\n for (int i = 0 ; i < 4 ; i++){\r\n for (int j = 0 ; j < 4 ; j++){\r\n if (i != 0 && board.get(i).get(j).getValue() != 0){\r\n int dex = i-1;\r\n while (dex >=0 && board.get(dex).get(j).getValue() == 0){\r\n mergeTile(board.get(dex+1).get(j), board.get(dex).get(j));\r\n dex--;\r\n }\r\n board.get(dex+1).get(j).setFromY(i);\r\n if (dex >= 0 && !board.get(dex).get(j).isHasMerged()){\r\n mergeVertical(board.get(dex+1).get(j), board.get(dex).get(j), i);\r\n }\r\n }\r\n }\r\n }\r\n addTile();\r\n }\r\n }", "title": "" }, { "docid": "c58a9f50ba3c4537720bcd9771cf2ab8", "score": "0.58409", "text": "public void pullUp() {\r\n\t\tboolean canAddRandom = false;\r\n\t\tfor (int c = 0; c < WIDTH; c++) {\r\n\t\t\t//get column c in reverse\r\n\t\t\tint[] col = reverse(getCol(c));\r\n\t\t\t\r\n\t\t\tif (!allZero(col) && goodTurn(col)) {\r\n\t\t\t\tif (!canAddRandom) canAddRandom = goodTurn(col);\r\n\t\t\t\t//first shift;\r\n\t\t\t\tcol = shift(col);\r\n\t\t\t\t//merge\r\n\t\t\t\tcol = merge(col);\r\n\t\t\t\t//second shift, fill in gaps from merge\r\n\t\t\t\tcol = shift(col);\r\n\t\t\t\t//set column c, in reverse\r\n\t\t\t\tsetCol(c, reverse(col));\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tif (canAddRandom) {\r\n\t\t\taddRandom();\t\t\t\r\n\t\t}\r\n\t\tplaying = !endGame();\r\n\t}", "title": "" }, { "docid": "3757da476f65b22f836e1d0eaaef9ad1", "score": "0.58392954", "text": "public void move() {\n\t\tthis.LightWall.add(0, new LightWall(this.x, this.y, this.Color));\n\t\t\n\t\tswitch (this.direction) {\n\t\t\tcase EST : \n\t\t\t\tthis.x=x+1;\n\t\t\t\tbreak;\n\t\t\tcase NORD : \n\t\t\t\tthis.y=y-1;\n\t\t\t\tbreak;\n\t\t\tcase OUEST : \n\t\t\t\tthis.x=x-1;\n\t\t\t\tbreak;\n\t\t\tcase SUD : \n\t\t\t\tthis.y=y+1;\n\t\t\t\tbreak;\n\t\t\tdefault : break;\n\t\t}\n\t\t\n\t\tGrid.checkCollision(this);\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\n\t}", "title": "" }, { "docid": "3b35264106d1094b551d89db5046f982", "score": "0.5832796", "text": "public void moveSouth() {\r\n\t\tyPos++;\t\r\n\t}", "title": "" }, { "docid": "fb9b33d82329db1112251bae03c2ee09", "score": "0.5814411", "text": "public void advance() {\n\t\t\n\t\t// TODO : kill\n\t\taddChange(new Death(this, this.loc, this.getOrientation()));\n\t\t\n\t\tanimationChrono = 0;\n\t\tloc.del(this);\n\t\tloc = loc.next(orientation);\n\t\tloc.add(this);\n\t\t\n\t\t// TODO : born\n\t\taddChange(new Born(this, this.loc));\n\t}", "title": "" }, { "docid": "6d8596ad2ac21a9f152692e4312d17d7", "score": "0.5786381", "text": "public void moveUp(){\n \tadjuster1.set(1);\n \tadjuster2.set(1);\n }", "title": "" }, { "docid": "28296cc2601be3e03e905bbfaf067865", "score": "0.5785094", "text": "private void move()\n\t{\n\n if (hall[pos] > 0)\n {\n hall[pos]--;\n }\n if (hall[pos] == 0)\n {\n if (forwardMoveBlocked())\n {\n if (facingRight == true)\n facingRight = false;\n else if (facingRight == false)\n facingRight = true;\n }\n else\n {\n if (facingRight == true)\n pos++;\n else if (facingRight == false)\n pos--; \n } \n }\n \t\n\t}", "title": "" }, { "docid": "d188d3aeb7238f42de32eedda2e73b16", "score": "0.57802135", "text": "private void updateNextLevelState() {\r\n\t\t//System.out.println(\"next level state\");\r\n\r\n\t\t++currentLevel;\r\n\t\tlevelSeed=System.currentTimeMillis();\r\n\t\t//clear the world of the extant objects, and repopulate\r\n\t\tworld.populate(currentLevel);\r\n\t\t//pack();\r\n\t\t//validate();\r\n\t\t//repaint();\r\n\t\t//scroll.requestFocus();\r\n\t\tsetState(GAME);\r\n\t}", "title": "" }, { "docid": "1b4c1fa6ea929f1c665e718e7c8d39fd", "score": "0.5779791", "text": "@Override\n public void timeStep(char currCommand, World world) {\n if (isAlive) {\n if (playerNumber == 1) {\n switch (currCommand) {\n case 'W':\n applyAction(Action.ActionType.MOVE_UP, this, world);\n break;\n case 'A':\n applyAction(Action.ActionType.MOVE_LEFT, this, world);\n break;\n case 'S':\n applyAction(Action.ActionType.MOVE_DOWN, this, world);\n break;\n case 'D':\n applyAction(Action.ActionType.MOVE_RIGHT, this, world);\n break;\n case 'w':\n applyAction(Action.ActionType.MOVE_UP, this, world);\n break;\n case 'a':\n applyAction(Action.ActionType.MOVE_LEFT, this, world);\n break;\n case 's':\n applyAction(Action.ActionType.MOVE_DOWN, this, world);\n break;\n case 'd':\n applyAction(Action.ActionType.MOVE_RIGHT, this, world);\n break;\n default:\n return;\n }\n }\n if (playerNumber == 2) {\n switch (currCommand) {\n case 'I':\n applyAction(Action.ActionType.MOVE_UP, this, world);\n break;\n case 'J':\n applyAction(Action.ActionType.MOVE_LEFT, this, world);\n break;\n case 'K':\n applyAction(Action.ActionType.MOVE_DOWN, this, world);\n break;\n case 'L':\n applyAction(Action.ActionType.MOVE_RIGHT, this, world);\n break;\n case 'i':\n applyAction(Action.ActionType.MOVE_UP, this, world);\n break;\n case 'j':\n applyAction(Action.ActionType.MOVE_LEFT, this, world);\n break;\n case 'k':\n applyAction(Action.ActionType.MOVE_DOWN, this, world);\n break;\n case 'l':\n applyAction(Action.ActionType.MOVE_RIGHT, this, world);\n break;\n default:\n return;\n }\n }\n }\n }", "title": "" }, { "docid": "f860ed73fe15c063232ae0d8b2f5c365", "score": "0.57794636", "text": "protected void end() {\n \tRobotMap.leftMotorOne.set(0);\n \tRobotMap.leftMotorTwo.set(0);\n \t\n \tRobotMap.rightMotorOne.set(0);\n \tRobotMap.rightMotorTwo.set(0);\n }", "title": "" }, { "docid": "2dbed9de4352036b03cc79d1ed88207a", "score": "0.5775863", "text": "private void switchDirectionR() {\r\n\t\tsetLocation(getX(), getY() + 5);\r\n\t\tdirection = 2;\r\n\r\n\t\tif (getY() > 70) {\r\n\t\t\t((MyWorld) getWorld()).gameOver();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "19ead78230464b532fd4f225a7643930", "score": "0.57717496", "text": "public void moveUpDown(int move){\r\n\t\tif(move==FighterVisualization.JUMP){\r\n\t\t\tbody1y=1.4;\t\t\t\r\n\t\t}else if(move==FighterVisualization.CROUCH){\r\n\t\t\tbody1y=0.4;\r\n\t\t}\r\n\t\tbody2x = body1x;\r\n\t\tbody2y = body1y+ 0.7 + (height / 10);\r\n\r\n\t\tbodyHalfy = body2y / 2 + 0.4;\r\n\t\t\r\n\t\theadx = body1x;\r\n\t\theady = headRadius + body2y;\r\n\t}", "title": "" }, { "docid": "7034955885bd1c309d3061bb3f192f74", "score": "0.5767877", "text": "void turnAround() {\n goingRight = !goingRight;\n appearance = reverseAppearance();\n }", "title": "" }, { "docid": "368e893d13991004ed67a33371b578c6", "score": "0.57673794", "text": "public void moveUpRight() {\n\t\tsuper.moveUpRight();\n\t\tthis.setSprite(SPRITEUR);\n\t}", "title": "" }, { "docid": "c6d738df78b02c856365fa4ebf2ffafe", "score": "0.5762246", "text": "public void tryMovingUp() {\n int searchTileWithRow = gameBoard.getRowOfBlankTile() + 1;\n int searchTileWithCol = gameBoard.getColOfBlankTile();\n\n if (searchTileWithRow > 3) { return; } // right isn't possible\n\n searchForTileAndMoveIt(searchTileWithRow, searchTileWithCol);\n\n }", "title": "" }, { "docid": "701b8d8483e02a3f10636877747c8b2b", "score": "0.57578486", "text": "private void backStep(){\n if(x==oldX&&y==oldY&&(--count)==0){\n if(x+xSpeed< ShipClient.GAME_WIDTH- com.shipbattle.singleplay.Ship.WIDTH){\n direction= Direction.Right;\n }else if(y+ySpeed< ShipClient.GAME_HEIGHT- com.shipbattle.singleplay.Ship.HEIGHT){\n direction= Direction.Down;\n }else if(x-xSpeed>0){\n direction= Direction.Left;\n }else if(y-ySpeed>0){\n direction= Direction.Up;\n }else {\n int r=random.nextInt(8);\n direction=directions[r];\n }\n count=30;\n }else {\n this.x=this.oldX;\n this.y=this.oldY;\n }\n }", "title": "" }, { "docid": "5e03d008092ecf9c9837a1860302f076", "score": "0.57550156", "text": "public void walkDown(){\r\n offCenter[1]+=SQUARE_SIZE/frameDivide;\r\n if(offCenter[1]>=SQUARE_SIZE){//should stop moving\r\n finishedMoving=true;\r\n location[1]+=1;\r\n toGo[1]+=1;\r\n offCenter[1]=0;\r\n //travelling=false;\r\n imageSequence=0;\r\n }else{\r\n imageSequence++;\r\n if(imageSequence>IMG_SEQUENCE_MAX)\r\n imageSequence=0;\r\n }\r\n directionFacing=3;\r\n }", "title": "" }, { "docid": "cdc82e5a6a4165e99c4dc7fb777334a1", "score": "0.5754063", "text": "public void moveStrait() {\n this.x += dir[this.z][0];\n this.y += dir[this.z][1];\n }", "title": "" }, { "docid": "ce5d3f628358ba6ea44936c01cb0af1e", "score": "0.5749133", "text": "public void goNorth(){\n\tif (location.getNorth() != null){\n\t location = location.getNorth();\n\t System.out.println(\"You went North\\n\");\n\t}\n\telse\n\t System.out.println(\"There is no room North! You could walk into the wall repeatedly but I don't think it will help. Try going in a different direction.\\n\");\n }", "title": "" }, { "docid": "b2749063f78348fa313fe08355003669", "score": "0.5748254", "text": "public void up(){\n\t\tif(this.face.getY() < 10) return;\n\t\tthis.face.setY(this.face.getY() - 10);\n\t}", "title": "" }, { "docid": "1d71ddbee4b8084c22d77e3bb6d8fa0f", "score": "0.5735006", "text": "public void moveDown() {\n clearFieldsForPosition();\n position = new Point((int) position.getX(), (int) position.getY() + 1);\n setAllFieldsForPosition();\n }", "title": "" }, { "docid": "79d43355edd4e897777ffe87691b9b2d", "score": "0.5733668", "text": "public void act() {\r\n\t\ttime++;\r\n\t\tif (time > 10 && this != null) {\r\n\t\t\tMyWorld world = ((MyWorld) getWorld());\r\n\t\t} else {\r\n\t\t\tmove();\r\n\t\t}\r\n\t\tgetWorld().removeObject(this);\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "3dbf19b7b1e1905c0212cff46556a62f", "score": "0.5722929", "text": "protected void moveOutMain() {\n\t\tTranslateTransition transition = new TranslateTransition();\n\t\ttransition.setDuration(Duration.seconds(0.3));\n\t\ttransition.setNode(this);\n\t\ttransition.setToX(0);\n\t\ttransition.play();\n\t\t\n\t}", "title": "" }, { "docid": "6aec286d3db050da9318ea36f510a863", "score": "0.5709962", "text": "private void moveUp() {\r\n \t//going through the entire grid by starting at the \r\n \t//top left of the grid \r\n \t\t for(int y = 0; y < GRID_SIZE; y++){\r\n \t\t\t\tfor(int x = 0; x < GRID_SIZE-1; x++){\r\n \t\t\t\t\t//tracing through column one ahead\r\n \t\t\t\t\tfor(int z = x+1; z < GRID_SIZE - x; z++){\r\n \t\t\t\t\t\t//comparing if they are alike and the\r\n \t\t\t\t\t\t//current tile is non zero\r\n \t\t\t\t\t\tif(grid[x][y] == grid[z][y] && grid[x][y] != 0){\r\n \t\t\t\t\t\t //if they are, update the non zero tile\r\n \t\t\t\t\t\t//that is currently being tracked and updating\r\n \t\t\t\t\t\t//to twice the amount\r\n \t\t\t grid[x][y]*=2;\r\n \t\t\t //updating the one being traced \r\n \t\t\t //to a zero to simulate a shift in the board\r\n \t\t\t grid[z][y] = 0;\r\n \t\t\t //updating the score board with the new tile added\r\n \t\t\t score += grid[x][y];\r\n \t\t\t //going to the next index in the same column\r\n \t\t\t x = z;\r\n \t\t\t //Pop out of loop\r\n \t\t\t break;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\t//checking if the one ahead is non zero\r\n \t\t\t\t\t\telse if(grid[z][y] != 0){\r\n \t\t\t\t\t\t//Pop out of loop to skip empty cell\r\n \t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n\r\n \t//within the same column, making a new check with the rows\r\n \t\t\t\tfor(int x = 0; x < GRID_SIZE-1; x++){\r\n \t\t\t\t\t//if the one currently is a zero, go through\r\n \t\t\t\t\t//and look for a non zero within the same row\r\n \t\t\t\t\tif(grid[x][y] == 0){\r\n \t\t\t\t\t\t//finding the non zero\r\n \t\t\t\t\t\tfor(int z = x+1; z < GRID_SIZE; z++){\r\n \t\t\t\t\t\t\t//once found the non zero\r\n \t\t\t\t\t\t\tif(grid[z][y] != 0){\r\n \t\t\t\t\t\t\t\t//changing the current tile being traced\r\n \t\t\t\t\t\t\t\t//to the new non zero tile\r\n \t\t\t\t\t\t\t\tgrid[x][y] = grid[z][y];\r\n \t\t\t\t\t\t\t\t//simulating a shift in the tiles\r\n \t\t\t\t\t\t\t\t//by replacing the previous with a zero\r\n \t\t\t\t\t\t\t\tgrid[z][y] = 0;\r\n \t\t\t\t\t\t\t\t//popping out of the loop\r\n \t\t\t\t\t\t\t\tbreak;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n }", "title": "" }, { "docid": "aa3867a078d4fd9abdfb348dff776895", "score": "0.5704655", "text": "public void travel()\n\t{\n\t\twhile(this.isLiving == true)\n\t\t{\n\t\t\tif(settlementList.size() > 1)\n\t\t\t{\n\t\t\t\tSettlement from;\n\t\t\t\tSettlement to;\n\t\t\t\tfor(int i=0; i<settlementList.size() -1; i++)\n\t\t\t\t{\n\t\t\t\t\tfrom = settlementList.get(i);\n\t\t\t\t\tto = settlementList.get(i+1);\n\t\t\t\t\tif(to.getPopulation() >0)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.move(from, to);\n\t\t\t\t\t\tthis.makeDeal(to);\n\t\t\t\t\t\tthis.calculateSpeed();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tsettlementList.remove(to);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfrom = settlementList.get(settlementList.size()-1);\n\t\t\t\tto = settlementList.get(0);\n\t\t\t\t\n\t\t\t\tisSafe = false;\n\t\t\t\tthis.move(from, to);\n\t\t\t\tisSafe = true;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthis.makeDeal(to);\n\t\t\t\tthis.calculateSpeed();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2279f88df238c7e7ebe2adce7e772c64", "score": "0.5703327", "text": "public void moveOut(){\n if (lift.getCountPassengers() > 0) {\n for (int i = 0; i < listPassenger.size(); i++) {\n Passenger currentPassenger = listPassenger.get(i);\n if (currentPassenger.isMove() &&\n currentPassenger.getWantFloor() == currentPassenger.getCurrentFloor()) {\n currentPassenger.setMove(false);\n lift.setCountPassengers(DOWN);\n }\n }\n }\n }", "title": "" }, { "docid": "d500e4c5c759018d8e3be63479fe9fd5", "score": "0.5699828", "text": "public void move()\n {\n position = position + direction;\n }", "title": "" }, { "docid": "35c411a49f73ace6de1acac709789461", "score": "0.56919235", "text": "public void intakeUp() {\n intakeRelease.set(DoubleSolenoid.Value.kReverse);\n }", "title": "" }, { "docid": "251a3b37d3b04517b32d7ceb7b98510c", "score": "0.56889135", "text": "public void slideUp() {\n int destRow;\n for (int column = 1; column <= COLUMNS; column++) {\n destRow = 1;\n for (int row = 2; row <= ROWS; row++) {\n if (destRow == row || grid[column][row] == 0) {\n continue;\n } else if (grid[column][row] == grid[column][destRow] || grid[column][row] == -grid[column][destRow]) {\n grid[column][destRow] = grid[column][destRow] + grid[column][row];\n grid[column][row] = 0;\n destRow++;\n } else {\n if (grid[column][destRow] != 0)\n destRow++;\n if (destRow != row) {\n grid[column][destRow] = grid[column][row];\n grid[column][row] = 0;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "80e754f62676c6e34f5378a29c3b5997", "score": "0.56836706", "text": "public void update() {\n\t\tif (keys[KeyEvent.VK_W] || keys[KeyEvent.VK_UP]) {\n\t\t\tdouble prevX, prevY;\n\t\t\tprevX = x; prevY = y;\n\t\t\tthis.moveForward();\t\t\t\n\t\t\tif (map[(int)x/32][(int)y/32] == 1) {\n\t\t\t\tx = prevX;\n\t\t\t\ty = prevY;\n\t\t\t} else {\n\t\t\t\tthis.setPos(x/32, y/32);\n\t\t\t}\n\t\t}\n\t\tif (keys[KeyEvent.VK_S] || keys[KeyEvent.VK_DOWN]) {\n\t\t\tdouble prevX, prevY;\n\t\t\tprevX = x; prevY = y;\n\t\t\tthis.moveBackwards();\t\t\t\n\t\t\tif (map[(int)x/32][(int)y/32] == 1) {\n\t\t\t\tx = prevX;\n\t\t\t\ty = prevY;\n\t\t\t} else {\n\t\t\t\tthis.setPos(x/32, y/32);\n\t\t\t}\n\t\t}\n\t\tif (keys[KeyEvent.VK_A] || keys[KeyEvent.VK_LEFT]) {\n\t\t\tthis.turnLeft();\n\t\t}\n\t\tif (keys[KeyEvent.VK_D] || keys[KeyEvent.VK_RIGHT]) {\n\t\t\tthis.turnRight();\n\t\t}\n\t\tif (keys[KeyEvent.VK_R]) {\n\t\t\tx=startX; y=startY; direction=0;\n\t\t\tthis.time = 0;\n\t\t}\n\t\tsuper.update();\n\t}", "title": "" }, { "docid": "2938727827f70111fe929a5422f95d86", "score": "0.5676967", "text": "public Location goUp(Location location) {\r\n \r\n logging.debug(LOG_UP);\r\n \t\r\n \tvelocity -= acceleration;\r\n // If the velocity exceeds the allowed limit, then it should receive the limit as it's own value.\r\n if ((-velocity) > (-maxVelocity)) {\r\n velocity = -maxVelocity; // The max velocity is a negative number because it is going up.\r\n }\r\n double y = location.getY();\r\n y = y + velocity;\r\n location.setY(y);\r\n return location;\r\n }", "title": "" }, { "docid": "233a7e13abe64f37f74092bcf238066a", "score": "0.56748766", "text": "@Override\r\n public void followingState(SimulationController controller)\r\n {\r\n updatePosition(controller);\r\n this.updateZombieState(ZombieState.WANDERING);\r\n }", "title": "" }, { "docid": "acbe9d4fa4d1f7c993ad182f9ee06aaf", "score": "0.5673007", "text": "public void nextTurn() {\n\t\tfor (Lifeform lifeform : world.getCurrentLifeforms()) {\n\t\t\tif (!(world.getDeadLifeforms().contains(lifeform))) {\n\t\t\t\tlifeform.takeTurn();\n\t\t\t}\n\t\t}\n\n\t\tworld.update();\n\t}", "title": "" }, { "docid": "86af84eea0c5a14877f48bb68140f0e8", "score": "0.5672404", "text": "public void pathup()\n {\n if (board[pac_x][(pac_y)-(1)] >= 1) {\n pac_y = pac_y - 1;\n curImage=pacup[count];\n count++;\n if(count==3)\n {\n count = 0;\n }\n } else {\n count = 0;\n curImage=pacup[count];\n up=false;\n moveup=false;\n }\n }", "title": "" }, { "docid": "566bca28f7f9bf7c954860199edf7180", "score": "0.5672334", "text": "void moveSoraUp(){\n charSora.moveUp(speed);\n resetBounds();\n }", "title": "" }, { "docid": "e3e957e11c530dc3812880aa89da6835", "score": "0.5662", "text": "public void updateMovement() {\n super.step();\n }", "title": "" }, { "docid": "c0c069ba65990e095ed7c4f2e6f653da", "score": "0.5659827", "text": "public void move(String direction){\n \n // find the neighbor\n Location nextLocation = currentRoom.getNeighbor(direction);\n \n // alert the player there is no neighbor\n // or update the current room\n if (nextLocation == null)\n msg = \"You can't go in that direction\";\n else {\n //lastRoom = currentRoom;\n currentRoom = nextLocation;\n look();\n }\n \n }", "title": "" }, { "docid": "817639f4802cf9c7f1bae0ca7ad42c76", "score": "0.56596607", "text": "@Override\n public Command getNextAction(World world){\n \n this.fuel--; // fuel is used up each time this is called\n \n Direction previousDirection = this.direction; \n Direction newDirection = Util.getRandomDirection();\n \n if (atWorldsEdge(world) == true) { \n if (this.currentCoolDown >= this.changeDirectionCoolDown){ // if slow enough to change direction\n while (previousDirection.equals(newDirection)){\n newDirection = Util.getRandomDirection(); \n }\n this.direction = newDirection;\n \n // if nothing in the way move\n if (Util.isLocationEmpty(world, new Location(location, newDirection))) {\n return new MoveCommand(this, new Location(location, this.direction)); \n }\n else{\n // if something is in the way, collide into it\n collide(world); \n }\n } else {\n currentCoolDown++; // if not slow enough to turn, slow down\n return new WaitCommand();\n }\n }\n \n // when not at the world's edge\n else {\n if (this.currentCoolDown > this.minCoolDown) { \n this.currentCoolDown--; // speed up if not at max speed\n }\n collide(world); \n \n Location nextStep = new Location(this.location, this.direction);\n if (Util.isLocationEmpty(world, new Location(location, this.direction))) {\n return new MoveCommand(this, nextStep);\n } else {\n collide(world); // if object is in way, collide with it\n }\n }\n return new WaitCommand();\n }", "title": "" }, { "docid": "22f2ad1cb3f585069a70ed9441034736", "score": "0.56577104", "text": "public void step() {\n\t\t// Check if we want to insert a heart.\n\t\tif (rand.nextDouble() < 0.02) {\n\t\t\theart = world.insertHeart();\n\t\t}\n\t\t// Check if we want to insert a Bubble.\n\t\tif (rand.nextDouble() < 0.02) {\n\t\t\tbubble = world.insertBubble();\n\t\t}\n\t\t\n\t\t// Keep track of how long the game has run.\n\t\tthis.stepsTaken += 1;\n\t\t\t\t\n\t\t// These are all the objects in the world in the same cell as the player.\n\t\tList<WorldObject> overlap = this.player.findSameCell();\n\t\t// The player is there, too, let's skip them.\n\t\toverlap.remove(this.player);\n\t\t\n\t\t// If we find a fish, remove it from missing.\n\t\tfor (WorldObject wo : overlap) {\n\t\t\t// It is missing if it's in our missing list.\n\t\t\tif (missing.contains(wo)) {\n\t\t\t\tif (!(wo instanceof Fish)) {\n\t\t\t\t\tthrow new AssertionError(\"wo must be a Fish since it was in missing!\");\n\t\t\t\t}\n\t\t\t\t// Convince Java it's a Fish (we know it is!)\n\t\t\t\tFish justFound = (Fish) wo;\n\t\t\t\t\n\t\t\t\t// Remove from world.\n\t\t\t\t\n\t\t\t\t//justFound.remove();\n\t\t\t\tfound.add(justFound);\n\t\t\t\tmissing.remove(justFound);\n\t\t\t\t// Earn 10 points when you find a fish!\n\t\t\t\t// Earn extra 10 points when a fastScare fish is found!\n\t\t\t\t// Earn extra 100 points when a fastScare fish is found!!\n\t\t\t\tif (justFound.color == 6) {\n\t\t\t\t\tscore += 110;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tscore += 10;\n\t\t\t\t}\n\t\t\t\tif (justFound.fastScare) {\n\t\t\t\t\tscore += 10;\n\t\t\t\t} \n\t\t\t}\n\t\t\t// If the player step on a heart.\n\t\t\tif (wo instanceof Heart) {\n\t\t\t\tscore += 520;\n\t\t\t\tworld.remove(wo);\n\t\t\t}\n\t\t\t// If the player step on a bubble.\n\t\t\tif (wo instanceof Bubble) {\n\t\t\t\tworld.remove(wo);\n\t\t\t}\n\t\t\t// If the player go back home.\n\t\t\tif (wo instanceof FishHome) {\n\t\t\t\t fishhome.addAll(found);\n\t\t\t\t found.removeAll(found);\n\t\t\t\t for (WorldObject o : fishhome) {\n\t\t\t\t\t world.remove(o);\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t\t// A fish might get lost.\n\t\tlostFish();\n\t\t\n\t\t// Make sure missing fish *do* something.\n\t\twanderMissingFish();\n\t\t\n\t\t// When fish get added to \"found\" they will follow the player around.\n\t\tWorld.objectsFollow(player, found);\n\t\t\n\t\t// Step any world-objects that run themselves.\n\t\tworld.stepAll();\n\t}", "title": "" }, { "docid": "a62e1815a96582102b11e29cd739346b", "score": "0.5650956", "text": "public void stepForward() {\n\t\t// case NORTH\n\t\tif (Direction.N.toString().equals(this.direction.toString())) {\n\t\t\t// test if still afterforward the target coordinates are ok or not to avoid\n\t\t\t// going off grid\n\t\t\tif (this.plateau.isCoordinatesInsideRectangle(this.coordinates.newCoordinatesAfterForward(0, 1))) {\n\t\t\t\tthis.coordinates = this.coordinates.newCoordinates(0, 1);\n\t\t\t}\n\t\t}\n\t\t// case South\n\t\telse if (Direction.S.toString().equals(this.direction.toString())) {\n\t\t\tif (this.plateau.isCoordinatesInsideRectangle(this.coordinates.newCoordinatesAfterForward(0, -1))) {\n\t\t\t\tthis.coordinates = this.coordinates.newCoordinates(0, -1);\n\t\t\t}\n\t\t}\n\t\t// case East\n\t\telse if (Direction.E.toString().equals(this.direction.toString())) {\n\t\t\tif (this.plateau.isCoordinatesInsideRectangle(this.coordinates.newCoordinatesAfterForward(1, 0))) {\n\t\t\t\tthis.coordinates = this.coordinates.newCoordinates(1, 0);\n\t\t\t}\n\t\t}\n\t\t// Case West\n\t\telse if (Direction.W.toString().equals(this.direction.toString())) {\n\t\t\tif (this.plateau.isCoordinatesInsideRectangle(this.coordinates.newCoordinatesAfterForward(-1, 0))) {\n\t\t\t\tthis.coordinates = this.coordinates.newCoordinates(-1, 0);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9a746f5c98e0e0203e286996151209a8", "score": "0.5645138", "text": "public void act() \n {\n move(3);\n if(Greenfoot.isKeyDown(\"left\"))\n{\n turn(-3); \n} \n if(Greenfoot.isKeyDown(\"right\"))\n{\n turn(3);\n}\nif(Greenfoot.isKeyDown(\"up\"))\n{\n move(2);\n}\nif(Greenfoot.isKeyDown(\"down\"))\n{\n move(-2);\n}\n\nActor marciano;\nmarciano= getOneObjectAtOffset(0, 0, Marciano.class) ;\nif (marciano !=null)\n{\n World world;\n world = getWorld();\n world.removeObject(marciano);\n}\n}", "title": "" }, { "docid": "3bfbc404aabce165bff7dc251844cfc7", "score": "0.56421477", "text": "@Override\n\tpublic void updateDirection() {\n\t\tif (playerIsTooFar()) \n\t\t\tnextDir = direction.getRandom(dir);\n\t\telse {\n\t\t\t\n\t\t\t/**\n\t\t\t * Incorporating mistakes in behavior\n\t\t\t */\n\t\t\tif (mistake()) \n\t\t\t\tnextDir = direction.getCollisionCourse(x, y, maze.player.getX(), maze.player.getY()).getOpposite();\n\t\t\telse \n\t\t\t\tnextDir = direction.getRandom(dir); \n\t\t}\n\t}", "title": "" }, { "docid": "21990b6d1ec3d1129550ab5d2aeddc41", "score": "0.56325495", "text": "public void move()\n \t{\n \t\t//blank\n \t}", "title": "" }, { "docid": "e3baa8281d7fd1061be925f900966860", "score": "0.5628361", "text": "public void step(){\r\n\t\tif (up){\r\n\t\t\tv = v - g/2;\r\n\t\t\ty = y + v;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tv = v + g/2;\r\n\t\t\ty = y - v;\r\n\t\t}\r\n\t\tif (y - size <= 0){\r\n\t\t\tup = true;\r\n\t\t\ty = size;\r\n\t\t\tv = v*cor;\r\n\t\t}\r\n\t\tif (v < 0){\r\n\t\t\tup = false;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6db939986ab5f2fd575a5e87b720da55", "score": "0.56277525", "text": "public void goforward() {\n\n\t\t// TODO : kill\n\t\taddChange(new Death(this, this.loc, this.getOrientation()));\n\t\t\n\t\tanimationChrono = 0;\n\t\tloc.del(this);\n\n\t\tif (loc.next((orientation+2)%4)!=null) {\n\n\t\t\tArrayList<Item> res = loc.next((orientation+2)%4).getPulled(orientation);\n\t\t\tif (res!=null) {\n\t\t\t\tfor(Item j:res) {\n\t\t\t\t\tj.goforward();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tloc = loc.next(orientation);\n\t\tloc.add(this);\n\t\t\n\t\t// TODO : born\n\t\taddChange(new Born(this, this.loc));\n\t}", "title": "" } ]
15e3b208ce6452be33bdee1755d2ef92
remove all table, need to be call when redraw the table
[ { "docid": "7cb7e74fea96ad3620e960b1162f0887", "score": "0.8080691", "text": "public void cleanAllTable(){\n tableLayout.removeAllViews();\n myDateTable.removeAllViews();\n myTimeTable.removeAllViews();\n if(textViewVector.size() > 0){\n for(int i=0;i<textViewVector.size();++i){\n TextView tx = textViewVector.get(i);\n tableRelativeLayout.removeView(tx);\n }\n textViewVector.clear();\n }\n }", "title": "" } ]
[ { "docid": "e039ac276f91d831e54fd36bcce36030", "score": "0.81513715", "text": "public void clearTable() {\n\t\tfor (int i = model.getRowCount() - 1; i > -1; i--) {\n\t\t\tmodel.removeRow(i);\n\t\t}\n\t}", "title": "" }, { "docid": "7f0c2796063241a31ae0a8b9e56334a2", "score": "0.80307627", "text": "void clear() {\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "title": "" }, { "docid": "9515e26c1d9d28d006f9a2c773f65757", "score": "0.8009597", "text": "public void clearTable(){\r\n\t\trows.clear();\r\n\t}", "title": "" }, { "docid": "da9eab75535b6d23d6c4f42daa705927", "score": "0.7841019", "text": "protected void clearTable (\n) {\n\ttable.reset();\n\ttable.disableRowLabels();\n\tfirstTableEntry = true;\n\ttable.show(\"Snakuscules\");\n}", "title": "" }, { "docid": "65b88c569ced73690eeac59d42a593bf", "score": "0.7770564", "text": "private void clearTable(){\n //Get table model so that it can be manipulated\n DefaultTableModel model = (DefaultTableModel)tblUsers.getModel();\n //Remove each row\n while(model.getRowCount()> 0){\n model.removeRow(0);\n }\n }", "title": "" }, { "docid": "70b85b7104f327a1af5d574359689432", "score": "0.7643692", "text": "public void DeleteAll() {\n\t\ttable.Clear();\n\t}", "title": "" }, { "docid": "56e8ea52f5cb8e8af82beb7868d54273", "score": "0.76307124", "text": "void vaciarTabla(){\n while (modelo.getRowCount() > 0) modelo.removeRow(0);\n }", "title": "" }, { "docid": "82b81a4e6fc9cba14deb7488798ab241", "score": "0.7610595", "text": "protected void clearTable()\n {\n model.clearTable();\n }", "title": "" }, { "docid": "88c582fc977abef649c76695d4271159", "score": "0.7507627", "text": "private void ClearAllActionPerformed(java.awt.event.ActionEvent evt) {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n while (dm.getRowCount() > 0) {\n dm.removeRow(0);\n }\n }", "title": "" }, { "docid": "a42c972046171f884fdb4106aab6821a", "score": "0.7477078", "text": "public void clearTable()\n\t{\n\t\tm_data = new Vector();\n\t\tsuper.fireTableDataChanged();\n\t}", "title": "" }, { "docid": "9d9df38c338c3d1e79040c5ca3d936cc", "score": "0.7458555", "text": "private void deleteTables() {\n heapTable.getItems().clear();\n out.getItems().clear();\n fileTable.getItems().clear();\n barrierTable.getItems().clear();\n }", "title": "" }, { "docid": "f5233aaf057adcbf0094c59417ce6e4a", "score": "0.7346911", "text": "public void clear(){\n\t\tweatherTableModel.clear();\n\t}", "title": "" }, { "docid": "89b910a031321d631ebee35cb7f52fdc", "score": "0.7291902", "text": "public void limparTabela(){\n int quantLinhas = this.view.getTabelaAlunos().getRowCount();\n for(int quant=0; quant<quantLinhas; quant++){\n this.tabelaDeAlunos.removeRow(0);\n this.tabelaDePlanos.removeRow(0);\n this.tabelaDePais.removeRow(0);\n this.tabelaDeEnderecos.removeRow(0);\n }\n }", "title": "" }, { "docid": "1c69633b3b7c34ef48246fac8f933f74", "score": "0.72757167", "text": "public void clear()\r\n {\r\n containerTable.clear();\r\n }", "title": "" }, { "docid": "b2dd176199f15718117bd43524814891", "score": "0.7262939", "text": "private void clearDataTable() {\n\t\tint rowCount = this.getRowCount();\n\n\t\tfor (int counter = rowCount; counter > 0; --counter) {\n\t\t\tthis.removeRow(0);\n\t\t}\n\t}", "title": "" }, { "docid": "7ccc47130bdedd7891c7f4ed1d93513d", "score": "0.7224173", "text": "public void ClearData() throws SQLException {\n //Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "title": "" }, { "docid": "a3e02bfc60b28786de5f02fa140b6e36", "score": "0.71800697", "text": "public void clearTableData() {\n\t\t\tdata = null;\n\t\t\tfireTableDataChanged();\n\t\t}", "title": "" }, { "docid": "942a2ed0fb7f954935343bc77c83e4e4", "score": "0.7178636", "text": "public void resetTable() {\n dtm.setRowCount(0);\n }", "title": "" }, { "docid": "f5c64c1746049f37f17c8d9f3224e0e2", "score": "0.7144092", "text": "public void eliminarTablero() {\n\t\ttablero = null;\r\n\r\n\t}", "title": "" }, { "docid": "7c25e3719ddd667dd8614cdc6002b0d7", "score": "0.71417034", "text": "public void removeAll() {\n SQLiteDatabase db = this.getWritableDatabase();\n\n // Execute delete (drop) table SQL command\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\n // call create method to re-generate the table\n onCreate(db);\n }", "title": "" }, { "docid": "76641b2eab31cebe9ea42ea797b37bb2", "score": "0.7079999", "text": "private void clearTable() {\n postalAdressTable.getItems().clear();\n }", "title": "" }, { "docid": "9290b6ab9ba8f72a81d760dafefa8124", "score": "0.7071466", "text": "public void deleteAllRows() {\n\t \n }", "title": "" }, { "docid": "1a209d4e5b6f1c40868d1398e22fd756", "score": "0.70640546", "text": "public void limpiarTabla(){\n DefaultTableModel tb = (DefaultTableModel) tabla.getModel();\n int a = tabla.getRowCount()-1;\n for (int i = a; i >= 0; i--) { \n tb.removeRow(tb.getRowCount()-1);\n }\n }", "title": "" }, { "docid": "023d21d5ee825261a3871ea9b140ce21", "score": "0.6968992", "text": "public void clearData () {\r\n clearTable();\r\n clearHeaders();\r\n clearTitle();\r\n clearCircuitPower();\r\n clearFeedbackResistor();\r\n}", "title": "" }, { "docid": "9dc915ab3b51242f54f231d836162356", "score": "0.6960817", "text": "private void limpiarTabla(DefaultTableModel modeloTabla){\n \n int filas = modeloTabla.getRowCount();\n \n for (int i = 0;filas>i; i++) {\n \n modeloTabla.removeRow(0);\n }\n }", "title": "" }, { "docid": "8e21f69c8693e171eba37334feb0909a", "score": "0.6907047", "text": "private void limpiarTabla(DefaultTableModel tabla) {\n int N = tabla.getRowCount() - 1;\n for (int i = N; i >= 0; i--) {\n tabla.removeRow(i);\n }\n }", "title": "" }, { "docid": "6d2e9bd311c6e4f8cbe2e386c79b0534", "score": "0.6893959", "text": "public void clearTable() {\n try {\n st.execute(\"delete from tracker\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f7a6f708a7613d1a4fb9b15694ec2340", "score": "0.6878706", "text": "private void tableReset(TableLayout tablePrimary, TableLayout tableSandwich, TableLayout tableSoup,\n TableLayout tableSides, TableLayout tableDrinks, TableLayout tableDesserts,\n TableLayout tableWeekly, TableLayout tableMonthly, TableLayout tableBreakfast){\n tablePrimary.removeAllViews();\n tableSandwich.removeAllViews();\n tableSoup.removeAllViews();\n tableSides.removeAllViews();\n tableDrinks.removeAllViews();\n tableDesserts.removeAllViews();\n tableWeekly.removeAllViews();\n tableMonthly.removeAllViews();\n tableBreakfast.removeAllViews();\n }", "title": "" }, { "docid": "fe6f81ca00dfda1a14c298137d633e2e", "score": "0.6866597", "text": "public void clearBtnOnClick(@SuppressWarnings(\"unused\") View view){\n DBController controller = new DBController(this);\n controller.removeAllFromCompareTable();\n compareTables.clear();\n tableLayout.removeAllViews();\n drawTables();\n }", "title": "" }, { "docid": "9bb01500676b81567f8de5371457dc5e", "score": "0.6840856", "text": "public void emptyTable() {\r\n for(ItemStack c : contents) {\r\n loc.getWorld().dropItem(loc, c);\r\n }\r\n }", "title": "" }, { "docid": "cc611996f3c6a30c1793cc3f6ee4df71", "score": "0.6821815", "text": "public void removeHeaders(){\n mtblCalendar.setColumnCount(0);\r\n \r\n \r\n }", "title": "" }, { "docid": "5af1da02344eab698911246580d4936f", "score": "0.68018806", "text": "public static void cleanTables(){\n Cursor c = mDatabase.rawQuery(\"SELECT name FROM sqlite_master WHERE type='table'\", null);\n\n if (c.moveToFirst()) {\n while (!c.isAfterLast()) {\n Log.v(\"Cleaned table\", c.getString(0));\n mDatabase.delete(c.getString(0), null, null);\n c.moveToNext();\n }\n }\n }", "title": "" }, { "docid": "9b30ec3a00407375dc2c51fceff37e59", "score": "0.67997164", "text": "@Override\n \tpublic void clearTable(final String tableName) {\n \n \t}", "title": "" }, { "docid": "e343d66ed7349bedcbcc63817be43764", "score": "0.67908114", "text": "@Override\r\n public void clear()\r\n {\r\n modCount++;\r\n Entry<K,V> tab[] = table;\r\n for (int i = 0; i < tab.length; i++)\r\n tab[i] = null;\r\n size = 0;\r\n }", "title": "" }, { "docid": "8e9ff112c4a397706625ea9792ce4487", "score": "0.6768025", "text": "public void resetTables(){\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_CUENTA, null, null);\n db.close();\n }", "title": "" }, { "docid": "2246c4204559f1ff12f4760e7075b3f6", "score": "0.6766364", "text": "public void limpiarTabla(JTable tabla){\n try {\n DefaultTableModel modelo=(DefaultTableModel) tabla.getModel();\n int filas=tabla.getRowCount();\n for (int i = 0;filas>i; i++) {\n modelo.removeRow(0);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error al limpiar la tabla.\");\n }\n }", "title": "" }, { "docid": "6c94c697ca5963bec0ad98ac700092ad", "score": "0.6762092", "text": "public void clear() {\r\n\t\ttables.clear();\r\n\t\ttableIds.clear();\r\n\t}", "title": "" }, { "docid": "710af8cb3be51ece7adeab3e3a750ebf", "score": "0.6744561", "text": "public void resetTable() {\n productContainer.removeAll();\n productContainer.repaint();\n productContainer.setPreferredSize(new Dimension(0, 0));\n }", "title": "" }, { "docid": "c873b9912a34268696ba7a04b2adfa5f", "score": "0.67250156", "text": "public void clear() {\n realm.checkIfValid();\n TableOrView table = getTable();\n table.clear();\n }", "title": "" }, { "docid": "2fa4ad56d8a3f679d9ea0bd79a07b205", "score": "0.67045456", "text": "private void refreshTable() {\n\t\tSystem.out.println(\"refresh\");\n\t\tif (tableModel.getRowCount() > 0) {\n\t\t for (int i = tableModel.getRowCount() - 1; i > -1; i--) {\n\t\t \ttableModel.removeRow(i);\n\t\t }\n\t\t}\n\t\t//run querey and add rows to table\n\t\ttable = iface.queryTable(this.tableQuery);\n\t\ttable.remove(0);\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttableModel.addRow(table.get(i));\n\t\t}\n\t\t//refresh the table\n\t\ttableModel.fireTableDataChanged();\n\t}", "title": "" }, { "docid": "f5e899cdb10527c632182e9e990bb13f", "score": "0.67017144", "text": "public Object[][] clearTable() {\r\n Object[][] noDataObject = {};\r\n circuitTableData = noDataObject;\r\n\r\n //// Post event indicating data has changed.\r\n //EventQueue queue = Toolkit.getDefaultToolkit().getSystemEventQueue();\r\n //queue.postEvent(new CalculateEvent(this));\r\n\r\n return circuitTableData;\r\n}", "title": "" }, { "docid": "e04d146df553fa81b3eda02f56372778", "score": "0.67016304", "text": "public void clearTable (String tableName){\n SQLiteDatabase db = instance.getWritableDatabase();\n db.execSQL(\"DELETE FROM \"+ tableName);\n db.close();\n }", "title": "" }, { "docid": "94f190928909bea377b7f21fd9b10215", "score": "0.66957855", "text": "private void deleteAllRows(DefaultTableModel model) {\n for(int i=model.getRowCount()-1 ; i>=0 ;i --)\n model.removeRow(i);\n }", "title": "" }, { "docid": "c37709ffe30afbf3c6639f756939226d", "score": "0.6686363", "text": "public void clearHighscore() {\n DefaultTableModel model = (DefaultTableModel) tblHighscore.getModel();\n model.setRowCount(0);\n\n}", "title": "" }, { "docid": "b2dce0a721fef779abfbc8fa5d548011", "score": "0.6670065", "text": "public static void clean()\n\t{\n\t\tnumInstances = 0;\n\t\tfocusTable.clear();\n\t\timageTable.clear();\n\t}", "title": "" }, { "docid": "b2dce0a721fef779abfbc8fa5d548011", "score": "0.6670065", "text": "public static void clean()\n\t{\n\t\tnumInstances = 0;\n\t\tfocusTable.clear();\n\t\timageTable.clear();\n\t}", "title": "" }, { "docid": "b2dce0a721fef779abfbc8fa5d548011", "score": "0.6670065", "text": "public static void clean()\n\t{\n\t\tnumInstances = 0;\n\t\tfocusTable.clear();\n\t\timageTable.clear();\n\t}", "title": "" }, { "docid": "b2dce0a721fef779abfbc8fa5d548011", "score": "0.6670065", "text": "public static void clean()\n\t{\n\t\tnumInstances = 0;\n\t\tfocusTable.clear();\n\t\timageTable.clear();\n\t}", "title": "" }, { "docid": "b2dce0a721fef779abfbc8fa5d548011", "score": "0.6670065", "text": "public static void clean()\n\t{\n\t\tnumInstances = 0;\n\t\tfocusTable.clear();\n\t\timageTable.clear();\n\t}", "title": "" }, { "docid": "b2dce0a721fef779abfbc8fa5d548011", "score": "0.6670065", "text": "public static void clean()\n\t{\n\t\tnumInstances = 0;\n\t\tfocusTable.clear();\n\t\timageTable.clear();\n\t}", "title": "" }, { "docid": "b2dce0a721fef779abfbc8fa5d548011", "score": "0.6670065", "text": "public static void clean()\n\t{\n\t\tnumInstances = 0;\n\t\tfocusTable.clear();\n\t\timageTable.clear();\n\t}", "title": "" }, { "docid": "ae1347ad8bc89bfa7eaac1d131d7268f", "score": "0.6661165", "text": "public void clearTable() {\n hitButton.setDisable(true);\n standButton.setDisable(true);\n surrenderButton.setDisable(true);\n dealButton.setDisable(false);\n dealerCardImage1.setImage(null);\n dealerCardImage2.setImage(null);\n dealerCardImage3.setImage(null);\n dealerCardImage4.setImage(null);\n dealerCardImage5.setImage(null);\n dealerCardImage6.setImage(null);\n playerCardImage1.setImage(null);\n playerCardImage2.setImage(null);\n playerCardImage3.setImage(null);\n playerCardImage4.setImage(null);\n playerCardImage5.setImage(null);\n playerCardImage6.setImage(null);\n\n playerSplit1.setImage(null);\n playerSplit2.setImage(null);\n playerSplit3.setImage(null);\n playerSplit4.setImage(null);\n playerSplit5.setImage(null);\n playerSplit6.setImage(null);\n\n playerTotal.setText(\"\");\n dealerTotal.setText(\"\");\n }", "title": "" }, { "docid": "ee64fa104c2c6b7a17e016327387e010", "score": "0.6651379", "text": "public void clearAll() {\n Log.e(\"Delete database\", \"Delete historique\");\n realm.beginTransaction();\n realm.delete(Task.class);\n realm.commitTransaction();\n }", "title": "" }, { "docid": "6d9a39de524f936ea1240a2926c38e72", "score": "0.66457057", "text": "public void clearTables()\r\n\t{\r\n\t\t// your code here\r\n\t\ttry {\r\n\r\n\t\t\tdropReservationsStatement.execute();\r\n\t\t\tdeleteItinerariesStatement.execute();\r\n\t\t\tdeleteUserStatement.execute();\r\n\t\t\tcreateReservationsStatement.execute();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "51368dbe07db32202c859c289c48de14", "score": "0.6627387", "text": "private void clearTable() {\n\t\ttry (var stmt = this.connect.createStatement()) {\n\t\t\tstmt.executeUpdate(Query.DELETE_TABLE.query);\n\t\t\tstmt.executeUpdate(Query.CREATE_TABLE.query);\n\t\t} catch (SQLException e) {\n\t\t\tLOG.error(e.getMessage(), e);\n\t\t}\n\t}", "title": "" }, { "docid": "b957626de32c541874570fa290e443c3", "score": "0.66099757", "text": "public void limpiarTabla(DefaultTableModel objTabla) {\n while (objTabla.getRowCount() > 0) {\n objTabla.removeRow(0);\n }\n }", "title": "" }, { "docid": "4f5f32f6138dad5f0168208d2a6d2bc7", "score": "0.6603711", "text": "public void clearData()\n {\n synchronized(rows) // for rows and keys \n\n {\n this.rows.clear();\n this.rowKeyIndex.clear(); \n }\n \n this.fireTableDataChanged(); \n }", "title": "" }, { "docid": "bb897802c4db74a40d1e9d6cabc898cd", "score": "0.6584883", "text": "public void tableRemoved(Table t) { \r\n\t\tArrayList<FormsModeUI> formUIs = getFormsModeUIs(t);\r\n\t\tArrayList<TableRowsModeUI> rowUIs = getTableRowsUIs(t);\r\n\t\tArrayList<TableDesignModeUI> designUIs = getTableDesignModeUIs(t);\r\n\t\tif (uis.isEmpty()) throw new RuntimeException(\"No FormModeUI for the table \" + t);\r\n\t\tfor (FormsModeUI formMode : formUIs) {\r\n\t\t\tif (formMode.isActive()) {\r\n\t\t\t\tformMode.deactivate();\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (TableRowsModeUI rowMode : rowUIs) {\r\n\t\t\tif (rowMode.isActive()) {\r\n\t\t\t\trowMode.deactivate();\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (TableDesignModeUI designMode : designUIs) {\r\n\t\t\tif (designMode.isActive()) {\r\n\t\t\t\tdesignMode.deactivate();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "85276cc9379623c4c12ca182ad8f8197", "score": "0.65748197", "text": "public void reset()\n\t{\n\t\ttableModel.reset();\n\t\trowHeader.setVisible(false);\n\t\tgetViewport().doLayout();\n\t}", "title": "" }, { "docid": "35a921ca2dc1cadb06b9b50e9b327c2b", "score": "0.6561492", "text": "public void tableRows(){\r\n model.setRowCount(0);\r\n }", "title": "" }, { "docid": "683e577d8ba2ea298af3f15887160578", "score": "0.65484107", "text": "public void clean() {\r\n\t\tworkbooktable.clear();\r\n\t\tlist.clear();\r\n\t}", "title": "" }, { "docid": "7fe8bf31d29ff3c6b6003c6bc030ebfb", "score": "0.65478665", "text": "protected void unrecordPoints (\n) {\n\tif (firstTableEntry) {\n\t\ttable.reset();\n\t\ttable.disableRowLabels();\n\t}\n\tif (1 <= table.getCounter()) {\n\t\ttable.deleteRow(table.getCounter() - 1);\n\t}\n\ttable.show(\"Snakuscules\");\n}", "title": "" }, { "docid": "a4077436fea97ab599dcc49b0c9fc33b", "score": "0.6545353", "text": "public void clearTable(String namaTabel) {\n //hapus semua isi tableOut\n //idealnya nanti diganti dengan proses incremental (online),\n //tapi untuk sekarang dihapus dulu lalu diisi dengan yang baru\n Connection conn=null;\n PreparedStatement pDelete = null;\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n String strCon = \"jdbc:mysql://\"+dbName+\"?user=\"+userName+\"&password=\"+password;\n conn = DriverManager.getConnection(strCon);\n conn.setAutoCommit(false);\n String SQLdelete = \"delete from \"+namaTabel;\n pDelete = conn.prepareStatement (SQLdelete);\n pDelete.executeUpdate();\n conn.commit();\n } catch (Exception e) {\n e.printStackTrace();\n logger.severe(e.toString());\n logger.severe(e.toString()); //ROLLBACK\n if (conn != null) {\n try {\n conn.rollback();\n } catch (SQLException e1) {\n logger.log(Level.SEVERE, null, e1);\n }\n System.out.println(\"Connection rollback...\");\n }\n }\n finally {\n try {\n if (pDelete!=null) pDelete.close();\n if (conn!=null) conn.close();\n } catch (Exception e) {\n logger.log(Level.SEVERE, null, e);\n }\n }\n\n }", "title": "" }, { "docid": "c47f1e17e379c0aa198a3610660ca5c9", "score": "0.65344256", "text": "public void delete() {\r\n for(int i=rowStart; i<=rowEnd; i++) {\r\n for(int j=colStart; j<=colEnd; j++) { \r\n columns[j].getCell(i).clear();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "0d5079396ba8a001b2b978d44ee89cd5", "score": "0.65239286", "text": "public void limpiarTabla() {\r\n\t\tDefaultTableModel temp = (DefaultTableModel) tableArea.getModel();\r\n temp.setRowCount(0);\r\n\t}", "title": "" }, { "docid": "a2342c2580cd9943daa2f0277c98b908", "score": "0.65227586", "text": "public void refresh() {\n this.table_model.getDataVector().removeAllElements();\n this.row_name.clear();\n fill_table();\n refresh_deps();\n }", "title": "" }, { "docid": "09b56ef9e6b4450d701ba7c7be2d178f", "score": "0.6515325", "text": "public void deleteAll(View view) \r\n {\r\n \tTableLayout table = (TableLayout) findViewById(R.id.TableLayout01);\r\n Deleter deleter = db.deleter(tableName);\r\n deleter.where(\"type = ?\", new String[] {Titlemessage}); \r\n deleter.execute();\r\n table.removeAllViews();\r\n }", "title": "" }, { "docid": "25e7a1ba58a90a3b5c2ba6b7171f0c5b", "score": "0.6505604", "text": "public void removeAllData() throws SQLException {\n execute(\"DELETE FROM \" + tableName);\n }", "title": "" }, { "docid": "8f1bbb41d91dc90804f9f25c1c6c854f", "score": "0.6491448", "text": "public void clearTable() {\n try (PreparedStatement ps = this.connect.prepareStatement(\"delete from entry;\")) {\n ps.executeUpdate();\n } catch (SQLException e) {\n LOG.error(String.format(\n \"Error clear entry table. Delete all rows in table. Version:%d%n SQL Exception:%s\", version, e.toString())\n );\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "49ca7e4731ebb9e44eacda5666b94d27", "score": "0.6457252", "text": "public Builder clearTables() {\n if (tablesBuilder_ == null) {\n tables_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n tablesBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "d1650475aec5d71416cb6a0d39f6c8c5", "score": "0.64274085", "text": "public void clearAllFilters() {\n\t\tDataTable dataTable = (DataTable) FacesContext.getCurrentInstance()\n\t\t\t\t.getViewRoot()\n\t\t\t\t.findComponent(\":formDetalle:dTableTqdpqp00\");\n\t\tif (!dataTable.getFilters().isEmpty()) {\n\t\t\tdataTable.reset();\n\n\t\t\tRequestContext requestContext = RequestContext.getCurrentInstance();\n\t\t\trequestContext.update(\":formDetalle:dTableTqdpqp00\");\n\t\t}\n\t}", "title": "" }, { "docid": "816e3296f7615795ccd0bad9787ecbc6", "score": "0.6419131", "text": "public void limpaTabela() {\n ((DefaultTableModel) tblAniversariantes.getModel()).setNumRows(0);\n tblAniversariantes.updateUI();\n }", "title": "" }, { "docid": "e87ac3e043aee07004db29469c815fcb", "score": "0.6417591", "text": "public void reset() {\r\n for (int i = 0; i < table.length; i++) {\r\n table[i] = null;\r\n }\r\n log[0] = \"\";\r\n log[1] = \"\";\r\n }", "title": "" }, { "docid": "a5b7cd5c99ccb3422f76c2d01ce137ed", "score": "0.6414741", "text": "private void reset()\n\t\t{\n\t\t\tdata = null;\n\t\t\tfireTableDataChanged();\n\t\t}", "title": "" }, { "docid": "83a831f610ff8f40691835c590877bdc", "score": "0.64083105", "text": "public void clear()\n {\n //THIS CODE IS WEIRD DUE TO A GLITCH IN JAVAFX THAT I FOUND WHERE REMOVING NODES WITH UNI-DIRECTIONAL LISTENERS ARE NOT REMOVED BY THE GARBAGE COLLECTOR.\n //ORIGINALLY WAS getChildren().clear();//This was producing a memory leak because apparently thest TextCells were referenced\n // somewhere else in the Java code, I have no idea where. Each time I undo/redo'd, and loaded a new state,\n // all of these panes wouldn't be deleted for some reason that I don't understand. So as a result I'm just\n // going to have two lists.\n //My solution: When we 'delete' children, we call the clear method on this array but FIRST, we dump all these objects onto another arraylist.\n forEachChild(x->dueToMemoryLeak.add(x));\n getChildren().clear();\n }", "title": "" }, { "docid": "91b7652fe1de2a761cb48b5ed8251e07", "score": "0.64049315", "text": "public void clearAll(){\n labelsAffected = new LinkedList<>();\n varConditions = new HashMap<>();\n varLabels = new HashMap<>();\n\n\n insertionVarLabels = new HashMap<>();\n\n finalAffectedViews = new HashSet<>();\n change = changeType.DEFAULT;\n deletedVar = \"\";\n affectedVar = \"\";\n\n\n affectedEntry = new TableEntry(\"\");\n affectedAttribute = \"\";\n //does not clear viewInstants; this should be called separately\n\n insertedAttributes = new HashMap<>();\n\n\n usedViews = new LinkedList<String>();\n thisQueryViews = new LinkedList<String>();\n\n relSymbols = new LinkedList<>();\n nodeSymbols = new LinkedList<>();\n\n viewName = \"\";\n isViewInstant = false;\n isViewUse = false;\n viewScope = true;\n\n\n returnValExpr = \"\";\n pathName = \"\";\n returnType = retType.DEFAULT;\n symbolTable = new ConcurrentHashMap<String, Set<ViewParser.BoolexprContext>>();\n addWhereClause = new ConcurrentHashMap<>();\n\n setRemoveCGToken = \"\";\n setRemoveCGType = \"\";\n\n cg = false;\n changeGraphQuery = \"\";\n containsWhere = false;\n\n\n removeOutdated();\n }", "title": "" }, { "docid": "f0b6d37d44d3b99e418afa52c18a803e", "score": "0.6403171", "text": "public void clear() {\n\t\tif (dataEntries == null) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tObject[][] newData = null;\n\t\t\tdataEntries = newData;\n\t\t}\n\t\tthis.fireTableDataChanged();\n\t}", "title": "" }, { "docid": "b4caa10e1ae2fdbdab9072bd49ad181f", "score": "0.6353634", "text": "public void clear() {\n\t\tthis.totalRowNumber = 0;\n\t\tthis.rowIndex.clear();\n\t\tthis.indexes.clear();\n\t}", "title": "" }, { "docid": "09c294aab263e14af99396cc45d261bf", "score": "0.634976", "text": "public void clearAllData() {\r\n//\t\tACLogger.verbose(CSConstants.LOG_TAG, \"Clearing data\");\r\n\t\tdb.delete(SESSIONS_TABLE_NAME, null, null);\r\n\t\tdb.delete(SPEAKERS_TABLE_NAME, null, null);\r\n\t\tdb.delete(TRACKS_TABLE_NAME, null, null);\r\n\t\tdb.delete(XPLEVELS_TABLE_NAME, null, null);\r\n\t\tdb.delete(ADD_SPEAKERS_TABLE_NAME, null, null);\r\n\t}", "title": "" }, { "docid": "abd69dba92811be60e9a96436d398202", "score": "0.6349539", "text": "public void ClearAllOrderTableValues()\n {\n db.execSQL(\"delete from \" + DBTables.allTables.TABLE_NAME_ORDERS);\n }", "title": "" }, { "docid": "c80105e33e9ac808c43f960a9ffe65c9", "score": "0.632912", "text": "public void removeTable(ComputedTable table) {\r\n\t\tint index = tables.indexOf(table);\r\n\t\texecute(new Command() {\r\n\t\t\tpublic void execute() { \t\t\r\n\t\t\t\ttables.remove(table);\r\n\t\t\t\tfor (int i = 0; i < getTablesPure().size(); i++) {\r\n\t\t\t\t\ttables.get(i).removeDerivedTable(table);\r\n\t\t\t\t}\r\n\t\t\t\tdomainChangedListener.accept(table);\r\n\t\t\t}\r\n\t\t\tpublic void undo() { \r\n\t\t\t\taddTableAt(table,index);\r\n\t\t\t\taddReferenceTables(table);\r\n\t\t\t\tdomainChangedListener.accept(table);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5edb236cd3b26758659b2464817ed6b1", "score": "0.63231045", "text": "@Override\n \tpublic void clearTrickCards(final String tableName) {\n \n \t}", "title": "" }, { "docid": "7d76316fb9047092412e8f177122eac9", "score": "0.6309966", "text": "@Override\r\n\tpublic void eliminar() {\n\t\ttab_lugar.eliminar();\r\n\t}", "title": "" }, { "docid": "ba0b496f90acd2150ea4d6dfd7e66c15", "score": "0.63086355", "text": "public void removeAll() {\n\t\t// If whereClause is null, it will delete all rows.\n\t\tSQLiteDatabase db = openHelper.getWritableDatabase();\n\t\tint size = DBModel.getInstance().getChatListSize();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tdb.delete(DB_NAME_CHAT + i, null, null);\n\t\t\tLog.e(TAG, \"removeAll : \" + DB_NAME_CHAT + i);\n\t\t}\n\t\tdb.delete(DB_NAME_CHATLIST, null, null);\n\t\tLog.e(TAG, \"removeAll() \");\n\t\tdb.close();\n\t}", "title": "" }, { "docid": "c6e10bb1ffa932ca932c954440738803", "score": "0.629049", "text": "public void deleteAll(){\n \t\tthis.db.delete(TABLE_NAME, null, null);\n \t}", "title": "" }, { "docid": "2b237df1eb139109777d3aa6cbc8e48f", "score": "0.62901145", "text": "public void clear() // ----------------------------------------------------\n {\n this.optionsTable.clear();\n }", "title": "" }, { "docid": "92947240b4060d6f65e964b60e98b65d", "score": "0.6289916", "text": "public void clearTablesForCardImport() {\r\n String[] tablesToClear = { \"CARD_TABLE\", \"LEGAL_TABLE\", \"SET_TABLE\", \"SET_JUNC_TABLE\" };\r\n\r\n for (int i = 0; i < tablesToClear.length; i++) {\r\n try (Statement createStatement = database.createStatement();) {\r\n createStatement.execute(\"DROP table IF EXISTS \" + tablesToClear[i] + \";\");\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "9bf1ccb9f837e85fdc710a13c41502f6", "score": "0.62838006", "text": "public void deleteTablesData() {\n SQLiteDatabase db = getWritableDatabase();\n db.execSQL(\"DELETE FROM \" + DatabaseContract.Favorites.TABLE_NAME);\n }", "title": "" }, { "docid": "4d2efcaadcb68d8d2efd72a97137f496", "score": "0.62807393", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tboolean proceed = popupConfirm(\"Really Clear Table?\");\n\t\t\t\tif (proceed == false) return;\n\t\t\t\t\t\n\t\t\t\t// there are several ways to do this but...\n\t\t\t\t// this the SAFE way. Simply set the currentRow\n\t\t\t\t// to the END of the table, then delete all the rows\n\t\t\t\t// one at time from the end back...\n\t\t\t\t//System.out.println(\"ROWS size() \" + rows.size());\n\t\t\t\tif (currentView.rows.size() > 0) {\n\t\t\t\t\tint rowCount = currentView.rows.size();\n\t\t\t\t\tcurrentView.currentRow = rowCount - 1;\n\t\t\t\t\tfor (int i = 0; i < rowCount; i++) {\n\t\t\t\t\t\tcurrentView.tm.deleteCurrentRow();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//System.out.println(\"new ROWS size() \" + rows.size());\n\t\t\t}", "title": "" }, { "docid": "8742b6cac44d139a1a8a441c2aec74fb", "score": "0.6273061", "text": "public void deleteAllObjects() {\n TreeItem<String> item = tree.getSelectionModel().getSelectedItem();\n Store store = (Store) database.search(item.getParent().getValue());\n Document document = (Document) store.getDocuments().search(item.getValue());\n if(document.deleteAll()) {\n table.getItems().clear();\n commitButton.setDisable(false);\n }\n }", "title": "" }, { "docid": "de7a56a7ff6aabcfe811e118fabd0c62", "score": "0.6266805", "text": "public void resetTables() {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\t// Delete All Rows\n\t\tdb.delete(TABLE_LOGIN, null, null);\n\t\tdb.delete(TABLE_STAMP, null, null);\n\t\tdb.delete(TABLE_FRANCHISE_USED, null, null);\n\t\tdb.delete(TABLE_COMPANY_ALL, null, null);\n\t\tdb.delete(TABLE_FRANCHISE_ALL, null, null);\n\n\t\t// db.close();\n\t}", "title": "" }, { "docid": "f442b13da701b761c92b7bfb1a019fce", "score": "0.62646306", "text": "public void deleteAll() {\n try {\n\n openConnection();\n db.delete(DBConstant.TABLE_LIST, null, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n closeConnection();\n }\n }", "title": "" }, { "docid": "351398488760f627a5b57b9e852bcadd", "score": "0.62599564", "text": "private void hideTrashCardsFromTable(){\n\t for(int i=0;i<trashCards.size();i++){\n\t\t trashCards.get(i).getImage().removeFromParent();\n\t }\n }", "title": "" }, { "docid": "be320270c8c41ed775be0b509a9fd530", "score": "0.6259266", "text": "public void clearAll() {\n SQLiteDatabase db = getWritableDatabase();\n db.delete(TABLE_NAME, null, null);\n }", "title": "" }, { "docid": "376552fa3377980f2f284aff1d1ac387", "score": "0.6252792", "text": "private void mtdTable(){\n\t\ttblPesquisa = (DefaultTableModel)tblAlunos.getModel() ;//tblPesquisa recebe model tblAlunos, tipo defaulttablemodel?\n\t\ttblPesquisa.setNumRows(0);//zera as linhas\n\t}", "title": "" }, { "docid": "121a91b042d84d4251fe0ca485d96d72", "score": "0.62491435", "text": "public void reset(){\n try {\n stat.execute(\"DROP TABLE SCORES\");\n } catch (SQLException ex){\n Log.error(\"Welp... : \", ex);\n }\n }", "title": "" }, { "docid": "6eeea62f5a733d693e320142a0eaa495", "score": "0.62467885", "text": "public void removeAll() {\n\t\tif (0<getWritableDatabase().delete(DataContract.TABLE_NAME, null, null)){\n\t\t\tmContext.getContentResolver().notifyChange(DataContract.CONTENT_URI,null);\n\t\t}\n\t}", "title": "" }, { "docid": "40020b1f3a5f996d204f13a1dafd7e1d", "score": "0.62408876", "text": "public void deleteAll(String table)\n {\n Cursor c = getAllRows(table);\n long rowId = c.getColumnIndexOrThrow(KEY_ID);\n if (c.moveToFirst())\n {\n do\n {\n deleteRow(c.getLong((int) rowId), table);\n }\n while (c.moveToNext());\n }\n c.close();\n }", "title": "" }, { "docid": "e459c1206280604d0e943fdcfa265516", "score": "0.6239471", "text": "private void btnDataEntryMarketsClearActionPerformed(java.awt.event.ActionEvent evt) {\n dataEntry.clearTable(tblDataEntryMarkets);\n }", "title": "" }, { "docid": "a6f429505f19d35956d65611a37c81d1", "score": "0.62313604", "text": "public transactionlog.Record.Builder clearTable() {\n table = null;\n fieldSetFlags()[1] = false;\n return this;\n }", "title": "" } ]
662b9f4786375f1945340555e0608f0f
/ Do nothing. Just quit.
[ { "docid": "9bf4f787f097e42642584681ea8c0496", "score": "0.0", "text": "void cancelAnnotations() {\n setVisible(false);\n }", "title": "" } ]
[ { "docid": "4cca36953d30a61f2909a1327369acbf", "score": "0.819886", "text": "private static void quit()\r\n {\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "c7ef3bc623e20a98feab1c77937dd249", "score": "0.7950625", "text": "public static void quit() {\n System.exit(0);\n }", "title": "" }, { "docid": "2d0447c2d92ebfae29572589e60b9658", "score": "0.7931536", "text": "public void quit() {\n\n\t}", "title": "" }, { "docid": "9e05ecee2b659e1875c305a9ee30c377", "score": "0.79159796", "text": "public void quit(){ System.exit(0); }", "title": "" }, { "docid": "679253a12b723828733f92c465fb08a8", "score": "0.7888302", "text": "@Override\r\n\tpublic void quit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4b499a0d4d658912adc100fe300833c1", "score": "0.7742378", "text": "public void quit();", "title": "" }, { "docid": "4b499a0d4d658912adc100fe300833c1", "score": "0.7742378", "text": "public void quit();", "title": "" }, { "docid": "76410bc21be8acac05f12f5969291a2a", "score": "0.77174914", "text": "public void quit() throws Exception;", "title": "" }, { "docid": "2160a8cc61572de4f754759728329cde", "score": "0.77103853", "text": "public void doQuit() {\n this.quit();\n }", "title": "" }, { "docid": "842b5bf0f90c66fd728b25ba08025d49", "score": "0.7636102", "text": "public void quit() {\n\t\tDispatch.call(bzhao, \"Quit\");\n\n\t}", "title": "" }, { "docid": "13492873bfa62ac07b3fddb538c6a5a6", "score": "0.76140255", "text": "public void quitProgram() {\n System.exit(0);\n }", "title": "" }, { "docid": "f7195b0139f20411a6146c522ffe708d", "score": "0.7547163", "text": "void quit();", "title": "" }, { "docid": "f7195b0139f20411a6146c522ffe708d", "score": "0.7547163", "text": "void quit();", "title": "" }, { "docid": "8e15a1b410f15c6b11ea8d92fec6080e", "score": "0.75454074", "text": "public synchronized void quit(){\n\t}", "title": "" }, { "docid": "8c6723ab0c47a487e10f859eb2fe6f4e", "score": "0.7499965", "text": "public static void pourQuitter() {\n\t\tSystem.exit(0);\n\t}", "title": "" }, { "docid": "98b0020f67303374ef010be0fe1253e7", "score": "0.7469935", "text": "public abstract void quit();", "title": "" }, { "docid": "baba87ad72727a435338a3fa44140c97", "score": "0.74033004", "text": "public void quit(){\n this.disconnect();\n this.shouldRun = false;\n }", "title": "" }, { "docid": "eeea7dbc166dd04b22a3566dc0f3b883", "score": "0.73890334", "text": "public static void cancel()\r\n\t{\r\n\t\tSystem.exit(0);\r\n\t}", "title": "" }, { "docid": "ca1c52a557cf4b6ba3cafe62779f92f1", "score": "0.7345312", "text": "public void doQuit () {\n System.out.println(\"Quitter! You aren't afraid of a little computer,\"\n + \" are you?\");\n System.exit(-1);\n\n }", "title": "" }, { "docid": "758cb6444f30e99bd82dec73ba13d004", "score": "0.73131794", "text": "private void exit() {\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "7fdd6bf0d07a3cb40c5523f9bce352fd", "score": "0.7311125", "text": "protected void doExit() {}", "title": "" }, { "docid": "253720b6f5ffc9c0cb52df5f150dc513", "score": "0.72389513", "text": "private void doExit() {\r\n\t\tRuntime.getRuntime().exit(0);\r\n\t\t//System.exit();\t//Alternate method. Keep this handy.\r\n\t}", "title": "" }, { "docid": "fecbded6d9cb1ef2e43b4b7fe8cad411", "score": "0.71954757", "text": "private static void exitProgram() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9eec229a0671cdb614caf71c61cc2117", "score": "0.7184234", "text": "@Override\n\tpublic void NoneTermination() {\n\t}", "title": "" }, { "docid": "c25f57cf229611208dbd6a51a8bbabb5", "score": "0.7162828", "text": "protected void quitGame() {\n System.exit(0);\n }", "title": "" }, { "docid": "a1bc6f026c0ad21ae5fa811ea82c3ff8", "score": "0.7162516", "text": "public void exit()\r\n {\r\n //de momento va vacío\r\n }", "title": "" }, { "docid": "5051fc00a1b0cf03b161cce65a24ef9e", "score": "0.7132185", "text": "public static void cancel(){\r\n System.out.println(\"SORRY FOR BOTHERING YOU!\");\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "d8c890018332484eca1c4c805da92a02", "score": "0.71189636", "text": "public void quitTask()\n {\n System.out.println(\"Good Bye\");\n System.exit(0);\n\n }", "title": "" }, { "docid": "88770fd024d5fcd30a429db5dd5d847a", "score": "0.71059126", "text": "public void quit() {\n mQuit = true;\n }", "title": "" }, { "docid": "52142560bb2a7eae06828f7c01f959d2", "score": "0.7048869", "text": "public void exit(){\n System.exit(0);\n }", "title": "" }, { "docid": "596862b6e0fe8cf5ef4289438aa15c65", "score": "0.7042762", "text": "public void halt() {\n\n\t}", "title": "" }, { "docid": "83adaefe369aa5ecb9283575f0d55b46", "score": "0.70063305", "text": "@Override\n public void exit() {\n System.exit(0);\n }", "title": "" }, { "docid": "8c800cfa6dda4d4a28eb26cd0b9c7d0a", "score": "0.6968858", "text": "public void exit() {\n }", "title": "" }, { "docid": "68b2c4579c872b4fbf99ce70292b4cc0", "score": "0.69643", "text": "public void doQuit()\n {\n m_fDone = true;\n }", "title": "" }, { "docid": "49aa5f1f414a31c080bfe0b44c8fa444", "score": "0.6951419", "text": "public void requestQuit(){\r\n\t\tthis.quit = true;\r\n\t}", "title": "" }, { "docid": "4eeab68cc734134c357bc67abe241543", "score": "0.6949188", "text": "protected void exit() {\n\n\t}", "title": "" }, { "docid": "50cde2d16dbdbcca0c692996ee5a6658", "score": "0.6948499", "text": "public void quit() {\n\t\tmanager.quit();\n\t}", "title": "" }, { "docid": "4c8029bd1450c444bc7783f90bcf33a7", "score": "0.690062", "text": "@Ponder2op(\"exit\")\n\tprotected void exit() {\n\t\tSystem.exit(0);\n\t}", "title": "" }, { "docid": "ab426de352b9c49a5bcf16faacd779a5", "score": "0.689195", "text": "public static void exitRun() {\n System.exit(0);\n }", "title": "" }, { "docid": "d82af9d8227e2c02bab8e7e9f76ef3d2", "score": "0.68833715", "text": "public void quit() {\n\t\texit = true;\n\t\ttry {\n\t\t\tout.write(Constants.Protocol.SEND_QUIT + \"\\n\");\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "8e20f7a67d9b964a954a414f3816457e", "score": "0.68684113", "text": "public void exit() {\n\tshowStatus(null);\n }", "title": "" }, { "docid": "567f836602108d23f5e073ceccfd510f", "score": "0.6845896", "text": "protected abstract void autoExit();", "title": "" }, { "docid": "eb3882ff9d602950497e985a767bf357", "score": "0.68332225", "text": "public void abortProcess() {\n\t\t//\n\t}", "title": "" }, { "docid": "ce2cd7b90674b5addc8976fa24a94db9", "score": "0.68207467", "text": "public void stop(){\n System.exit(0);\n }", "title": "" }, { "docid": "a63d1febd75f6ae6729a7aa79aca2971", "score": "0.6814172", "text": "@Override\n\tpublic void quit(){\n\t\tLOGGER.error(getWinnerString());\n\t}", "title": "" }, { "docid": "3de686f35d6017799603b0b5a502e6a8", "score": "0.67955697", "text": "public void terminate() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d28b76192f390f4e1e13f3eb24826094", "score": "0.67827386", "text": "@Override\n public boolean terminate() {\n return false;\n }", "title": "" }, { "docid": "b9f55e31f015bf5af7884c26c1ebb235", "score": "0.6772616", "text": "public void abort();", "title": "" }, { "docid": "b9f55e31f015bf5af7884c26c1ebb235", "score": "0.6772616", "text": "public void abort();", "title": "" }, { "docid": "b9f55e31f015bf5af7884c26c1ebb235", "score": "0.6772616", "text": "public void abort();", "title": "" }, { "docid": "7005f699514ac67fb465cba4d5c4ec0b", "score": "0.67689824", "text": "private void close() {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}", "title": "" }, { "docid": "be17bda1f9481e2f846f459c47b4844d", "score": "0.6763366", "text": "void exit();", "title": "" }, { "docid": "be17bda1f9481e2f846f459c47b4844d", "score": "0.6763366", "text": "void exit();", "title": "" }, { "docid": "7e44215b04a22029d2226b6a68ce127e", "score": "0.6757979", "text": "public void abort ();", "title": "" }, { "docid": "96f448a80ac5658d5a426c653671e1ba", "score": "0.6753484", "text": "private void exitProgram(){\n\t\t\n\t\tSystem.exit(0);\n\t\n\t}", "title": "" }, { "docid": "05c83199ecd5e10937ae1556f66c1240", "score": "0.6747729", "text": "public void processQuit(ActionEvent e) {\n\t\t\tSystem.exit(0);\r\n\t\t}", "title": "" }, { "docid": "e083aabbbbe99294ee7b618aeceac27e", "score": "0.67446893", "text": "public void exit() {\n/* 839 */ this.running = false;\n/* */ }", "title": "" }, { "docid": "73a525d4cc4a3a125a491878d4bfa866", "score": "0.6733667", "text": "public void terminate(){\n execute = false;\n }", "title": "" }, { "docid": "4fe44d7e443125911cf11568180d9fa1", "score": "0.6710969", "text": "public void terminate() { }", "title": "" }, { "docid": "d16defb95883c49f1b9707df01a7d0af", "score": "0.66920495", "text": "void halt();", "title": "" }, { "docid": "742928a3be2ca845eede2620bba3431a", "score": "0.668805", "text": "@Override\n public void stop() {\n System.exit(0);\n }", "title": "" }, { "docid": "56b00e81151cebd469821bd43b2ecf3c", "score": "0.6686061", "text": "@Override\n public void exit() {\n\n }", "title": "" }, { "docid": "53c82a0b74e7a030780dae087432b1b0", "score": "0.6676394", "text": "public void executeQuitCommand(){\n\t\tcpu.exitCPU();\t\n\t}", "title": "" }, { "docid": "6f758b472aebdc440985b533edadb66b", "score": "0.6675063", "text": "public void abort() throws ScratchpadException;", "title": "" }, { "docid": "0f75014b29c6260aef5aa31c496b9b94", "score": "0.66555697", "text": "@Override\n\tpublic void exit() {\n\t\t\n\t}", "title": "" }, { "docid": "e4c34e29166e4ce083763dc86bba534c", "score": "0.66492885", "text": "@Override\n\t\tpublic boolean whantsToQuit(int inp) {\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "7e24dc59b1ee1bbc848e57e2748b87d9", "score": "0.6640297", "text": "public void onQuit() {\n\t\t\n\t}", "title": "" }, { "docid": "20c8c4b42c97b714ca6c4afdf2f871fb", "score": "0.6617049", "text": "private static void exitSystem() {\r\n\t\tSystem.out.println(\"Thanks For Using Application...!!!\");\r\n\t\tSystem.exit(0);\r\n\r\n\t}", "title": "" }, { "docid": "fab3648938592e5098282f71d9d43c1c", "score": "0.66164136", "text": "public static void exit() {\n\t\tconnectionManager.disconnect();\n\t\tSystem.exit(0);\n\t}", "title": "" }, { "docid": "48385fcf00ea68e4552eca2cae97553c", "score": "0.6615207", "text": "public void clickedQuit(Button button) {\n System.exit(0);\n }", "title": "" }, { "docid": "7f4e0fc3a6c10db5ca068313162d871b", "score": "0.6611124", "text": "public boolean shouldExit() {\n return false;\n }", "title": "" }, { "docid": "176d611fda0089f6fc93e4a876b5cf95", "score": "0.66005284", "text": "abstract public void abort();", "title": "" }, { "docid": "e753c2b51182032e82300ee6932d4729", "score": "0.65940285", "text": "void abort();", "title": "" }, { "docid": "e12840f8a4e9c070db9eec3e84e8b8f5", "score": "0.6589384", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n System.exit(0);\n }", "title": "" }, { "docid": "a6608c098a445ad2508c9cd62afbeb22", "score": "0.6578316", "text": "@Override\n public void terminate() {\n\n }", "title": "" }, { "docid": "a0c6ff7e00df264b89d562daeb299c14", "score": "0.657697", "text": "public void shoulExit() {\n\t\tshouldExit = true;\n\t}", "title": "" }, { "docid": "da28415c1c9aedc0e9c3075f3f672d6d", "score": "0.6574339", "text": "@Override\n public void exit() {\n \n \n \n }", "title": "" }, { "docid": "017adaec3d4d07a90b61e28307d996d7", "score": "0.65647286", "text": "public void quit()\n\t{\n\t\tSystem.out.println(\"Quitting.\"); \n\t\trunning = false; // Setting running to false ends the loop in run()\n\t\t// We used to need to call super.stop()\n\t\t// We don't any more since it is deprecated, see: http://java.sun.com/j2se/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html\n\t\t// super.stop();\n\t\t// Instead, we use interrupt, in case the thread is waiting. . .\n\t\tsuper.interrupt();\n\t}", "title": "" }, { "docid": "a4c340aa89cb38a12d7182f884a23a7e", "score": "0.6555748", "text": "@Override\n public void terminate()\n {\n }", "title": "" }, { "docid": "f37b2ff9baca11c603ae118b2a604ab8", "score": "0.6552386", "text": "public void terminate();", "title": "" }, { "docid": "965c9bee347572a30e8224efee92e31c", "score": "0.65496635", "text": "public void exit() {\n\t\tDispatch.call(bzhao, \"Exit\");\n\t}", "title": "" }, { "docid": "97e38f7616529e42c01f7518fa81fd3e", "score": "0.6545616", "text": "public void kill() {\r\n\t\thalt(false);\r\n\t}", "title": "" }, { "docid": "acfb37908e5ec47c6b7fe328660a0b5a", "score": "0.65264887", "text": "public void terminar(){\r\n\t}", "title": "" }, { "docid": "65145eec1984568070968047083d37d7", "score": "0.65255725", "text": "@Override\n public void terminate() {\n\n }", "title": "" }, { "docid": "3409710384a0d5172654e91764d04f8d", "score": "0.65224314", "text": "@Override\n public boolean isExit() {\n return false;\n }", "title": "" }, { "docid": "3409710384a0d5172654e91764d04f8d", "score": "0.65224314", "text": "@Override\n public boolean isExit() {\n return false;\n }", "title": "" }, { "docid": "3409710384a0d5172654e91764d04f8d", "score": "0.65224314", "text": "@Override\n public boolean isExit() {\n return false;\n }", "title": "" }, { "docid": "3409710384a0d5172654e91764d04f8d", "score": "0.65224314", "text": "@Override\n public boolean isExit() {\n return false;\n }", "title": "" }, { "docid": "ebd128a1e1589bc317236da9ee807e93", "score": "0.65211844", "text": "public void handleExitAction() {\r\n\r\n System.exit(0);\r\n }", "title": "" }, { "docid": "13c2fa252d576d8c3aa8488c822b9eb9", "score": "0.65135765", "text": "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}", "title": "" }, { "docid": "56523a38cc38ffc4f1548fe75182e523", "score": "0.65105987", "text": "public void goodbye ()\r\n {\r\n\ttitle ();\r\n\r\n\tc.println (\"Thank you for using this program. You may now exit.\");\r\n\tpauseProgram ();\r\n\r\n\tSystem.exit (0);\r\n }", "title": "" }, { "docid": "faa27682d26d99ff0aed5a22a4771958", "score": "0.64990735", "text": "@Override\n\tprotected void run() {\n\t\t// do nothing\n\t}", "title": "" }, { "docid": "c6dab5f053e3b954ba6d1c0d19dcb450", "score": "0.64953643", "text": "public void closeProgram() {\n\n\t\tSystem.exit(0);\n\t}", "title": "" }, { "docid": "0c81207946a396f2fab1743fb53e5a19", "score": "0.6492282", "text": "@Override\n public void abort() ;", "title": "" }, { "docid": "1b1bfe7ad8638c743655af5558134c78", "score": "0.648789", "text": "public void halt()\n {\n running = false;\n }", "title": "" }, { "docid": "9605a2b81bc62403ec7f75486b6eaacc", "score": "0.6487039", "text": "public void actionPerformed(ActionEvent e) {\n System.exit(0);\r\n }", "title": "" }, { "docid": "0fe681d1d1db44dcdc90a3154bc9c55e", "score": "0.64843917", "text": "default void abort() {}", "title": "" }, { "docid": "862275eeacd34af11cc59735695bb401", "score": "0.6480019", "text": "public void halt()\n\t{\n\t\tthis.running = false;\n\t}", "title": "" }, { "docid": "1cd0ec1e2952081a794753c8113b78d3", "score": "0.6468773", "text": "@Override\r\n\tprotected boolean abort() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f4521d53f0649635289db9810503fa3e", "score": "0.64659995", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "title": "" }, { "docid": "f4521d53f0649635289db9810503fa3e", "score": "0.64659995", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "title": "" } ]
e6c6fb57e88e063049bcb2243dc97b46
returns link of image of a required book
[ { "docid": "efc1ffe41190712b710d1efe9b84b827", "score": "0.6957195", "text": "public String getImageLink() throws NotFound{\n\t\t\n\t\tSystem.out.println(\"found:\"+tit.findFirst(\"<img>\").getAt(\"alt\"));\n\t\treturn tit.findFirst(\"<img>\").getAt(\"src\");\t\n\t\t\n\t}", "title": "" } ]
[ { "docid": "d3d35e861ba8dc96a174a998717606cc", "score": "0.75583696", "text": "public String getImageLink();", "title": "" }, { "docid": "29e64ac815be43e5fefb154668565a0e", "score": "0.7321874", "text": "protected abstract String imageLink();", "title": "" }, { "docid": "176bd70b4cce03141b39378b9fcabf03", "score": "0.67191005", "text": "public String getImageURL();", "title": "" }, { "docid": "176bd70b4cce03141b39378b9fcabf03", "score": "0.67191005", "text": "public String getImageURL();", "title": "" }, { "docid": "176bd70b4cce03141b39378b9fcabf03", "score": "0.67191005", "text": "public String getImageURL();", "title": "" }, { "docid": "23f2974814098f28d5d3a9a9ff1a3491", "score": "0.6634531", "text": "String getImageLink() {\n return PRE_PATH + this.imageName;\n }", "title": "" }, { "docid": "41ce45a0c0c8f3cff1a9acccf76883f6", "score": "0.66165805", "text": "URL getImageURL();", "title": "" }, { "docid": "7be8ab0dc2e77c96916be0696aebcc84", "score": "0.6336588", "text": "java.lang.String getImage();", "title": "" }, { "docid": "4feb037e737a991fd96568d0b24d4a7e", "score": "0.62837917", "text": "public String getImageLink() {\n\t\treturn myImageLink;\n\t}", "title": "" }, { "docid": "e724d5d80c0fa38ee7ee20a2a33fa480", "score": "0.6273232", "text": "String mDispMgrLoadImage() {\n\n\t\tString ImageFile = epubparser.getHref();\n\t\tString ImageOPFDir = null;\n\t\tString Imagepath = null;\n\t\t/* Get OPF path */\n\t\tString opffilepath = epubparser.CP_GetOpfPath(epubparser.cproot,\n\t\t\t\tepubparser.cprootfile);\n\t\t/* get OPF directory */\n\t\tImageOPFDir = epubparser.CP_GetOpfDir(opffilepath);\n\t\t/* construct the image path */\n\t\tif (ImageOPFDir != null) {\n\t\t\tImageOPFDir += \"/\" + ImageFile;\n\t\t} else {\n\t\t\tImageOPFDir = ImageFile;\n\t\t}\n\t\t/* if book name is not null */\n\t\tif (msDmbBookName != null) {\n\t\t\t/* extract the Image from the OPF directory */\n\t\t\tImagepath = epubparser\n\t\t\t\t\t.UTILS_ExtractFile(msDmbBookName, ImageOPFDir);\n\t\t}\n\t\treturn Imagepath;\n\n\t}", "title": "" }, { "docid": "b6d95463267b5afa60355057275ede93", "score": "0.62613493", "text": "String getBookingsURL();", "title": "" }, { "docid": "c44d34c343d741d25f4c2ec4685909aa", "score": "0.6238769", "text": "public String getImgLink() {\n return imgLink;\n }", "title": "" }, { "docid": "920656c7d64516e98144838d0ba7e04d", "score": "0.62233174", "text": "String getImage();", "title": "" }, { "docid": "7412043d6d9f6be96f2b3abec789cf23", "score": "0.62077653", "text": "private String getImage(RequestGetImage requestGetImage) {\n String url;\n if (requestGetImage.isDownloadable()) {\n url = getFileServer() + \"nzh/image/\"\n + \"?imageId=\" + requestGetImage.getImageId()\n + \"&downloadable=\" + requestGetImage.isDownloadable()\n + \"&hashCode=\" + requestGetImage.getHashCode();\n } else {\n url = getFileServer() + \"nzh/image/\"\n + \"?imageId=\" + requestGetImage.getImageId()\n + \"&hashCode=\" + requestGetImage.getHashCode();\n }\n return url;\n }", "title": "" }, { "docid": "137f39f9b8d6478ee5754047610ffcd8", "score": "0.6201982", "text": "String getImageUrl(String imageFilename);", "title": "" }, { "docid": "ad7064143bcad009aa31d7d71b2bd174", "score": "0.61183834", "text": "public String getImageLink() {\n return mImageLink;\n }", "title": "" }, { "docid": "8b69634898e5e1ec48428f1c63992dfd", "score": "0.6093103", "text": "public void setImageLink(String imageLink);", "title": "" }, { "docid": "fbd28dcca4298950c8b7c678d620b24b", "score": "0.60615283", "text": "public String getImageUrl();", "title": "" }, { "docid": "2857fc31c42f3a723015043528e0937f", "score": "0.5963802", "text": "Image getTutorialManual();", "title": "" }, { "docid": "c4fb959ad2452833327a8d3340808add", "score": "0.5906223", "text": "@Override\n protected String renderImage() {\n String imageLocation = null;\n String finderProperty = null;\n Element imageElement = null;\n try {\n finderProperty = isHome ? PropertiesFactory.getProperty(name.concat(HomeProperties.IMAGE.toString()))\n : PropertiesFactory.getProperty(name.concat(RubricProperties.IMAGE.toString()));\n imageElement = element.selectFirst(finderProperty);\n imageLocation = imageElement.attr(\"src\");\n if (!imageLocation.isEmpty())\n return imageLocation;\n } catch (NullPointerException e) {\n // finderProperty isn't correct\n // e.printStackTrace();\n }\n try {\n imageElement = element.selectFirst(finderProperty);\n imageLocation = imageElement.attr(\"style\");\n imageLocation = imageLocation.substring(22, imageLocation.length() - 3);\n } catch (NullPointerException e) {\n // finderProperty isn't correct\n // e.printStackTrace();\n }\n return imageLocation;\n }", "title": "" }, { "docid": "1d5ac2998145742a41a8ec694f6887b3", "score": "0.58587515", "text": "private static String grabImageURL(Document document) {\n Elements facebookGraphImages = document.select(\"meta[property='og:image']\");\n if (facebookGraphImages.size() > 0) {\n Element element = facebookGraphImages.get(0);\n if (element.hasAttr(\"content\")) {\n return element.attr(\"abs:content\");\n }\n }\n\n Elements openGraphImages = document.select(\"meta[property='http://ogp.me/ns#image']\");\n if (openGraphImages.size() > 0) {\n Element element = openGraphImages.get(0);\n if (element.hasAttr(\"content\")) {\n return element.attr(\"abs:content\");\n }\n }\n\n Elements twitterImages = document.select(\"meta[property='twitter:image']\");\n if (twitterImages.size() > 0) {\n Element element = twitterImages.get(0);\n if (element.hasAttr(\"content\")) {\n return element.attr(\"abs:content\");\n }\n }\n\n int largestSize = 0;\n String imageURL = null;\n\n // This should be optimized to search in content divs!\n Elements images = document.select(\"img\");\n\n System.out.println(\"Images: \" + images.size());\n\n for (Element image : images) {\n if (image.hasAttr(\"width\") && image.hasAttr(\"height\")) {\n int width;\n int height;\n\n try {\n width = Integer.parseInt(image.attr(\"width\"));\n height = Integer.parseInt(image.attr(\"height\"));\n } catch (NumberFormatException e) {\n continue;\n }\n\n double ratio = (double) width / (double) height;\n\n System.out.println(\"Image \" + width + \"x\" + height + \" (\" + (width * height) + \") => \" + ratio);\n\n if (ratio > 3.0) {\n continue; // Not interested\n }\n\n // If we do not have those attributes then we should download some bits to determine the size;\n // See https://github.com/sdsykes/fastimage\n int size = width * height;\n if (size > largestSize) {\n String src = image.attr(\"abs:src\");\n\n System.out.println(\" (!) SRC: \" + src);\n\n imageURL = src;\n\n largestSize = size;\n } else {\n }\n }\n }\n\n if (largestSize >= 5000) {\n return imageURL;\n }\n\n return null;\n }", "title": "" }, { "docid": "b351fafbef56a213aaf8ba32431569ff", "score": "0.579802", "text": "@AutoEscape\n\tpublic String getMediumImageURL();", "title": "" }, { "docid": "6ac46c341968020528afec40aa98e843", "score": "0.578858", "text": "String getImage(Long id);", "title": "" }, { "docid": "c26285428bf10dc8733e1a37c5723063", "score": "0.5744126", "text": "public int getImageResource();", "title": "" }, { "docid": "6ac3afe46f6f68162a3bb26165832e02", "score": "0.57226664", "text": "@Override\n\tpublic String getUrl() {\n\t\treturn \"http://scoreapp.freeiz.com/img/\"+getName()+\".png\";\n\t}", "title": "" }, { "docid": "4ff9f734f4954797f5b155450340c8a5", "score": "0.57061493", "text": "private String getImage() {\r\n String query = \"\";\r\n String triple = OBJECT + \"crm:P138i_has_representation \" + IMAGE;\r\n if (settings.hasImageCheck) {\r\n query += triple;\r\n query += \" .\\n\";\r\n } else {\r\n query += \"OPTIONAL { \";\r\n query += triple;\r\n query += \" }\\n\";\r\n }\r\n return query;\r\n }", "title": "" }, { "docid": "4a90588740e9895ae3f606cb0317c890", "score": "0.5702133", "text": "String getIconUrl();", "title": "" }, { "docid": "40267157ddfa715c7e754022de7c4b8f", "score": "0.5694878", "text": "public String getBookUrl() {\n return mBookUrl;\n }", "title": "" }, { "docid": "1d68e88fb226c9dc63cab360fc5dd280", "score": "0.5672243", "text": "MediaInfo image(String url);", "title": "" }, { "docid": "4eff57b46a5c156c25bb25c2e83d9fae", "score": "0.56690294", "text": "String getImage() throws RemoteException;", "title": "" }, { "docid": "168e0c139340fcaa23c0b5195bf49022", "score": "0.56680673", "text": "public String showPicture() {\t\t\n\t\tsrc = \"C:man_brood.jpg\";\n\t\treturn src;\n\t}", "title": "" }, { "docid": "328ce18678d495892ae02cb4a4219ac5", "score": "0.56465036", "text": "public Image getImage() {\n\t\t\tImageIcon ic = new ImageIcon(this.getClass().getResource(\n\t\t\t\t\t\"/resources/helpbook.gif\"));\n\t\t\treturn ic.getImage();\n\t\t}", "title": "" }, { "docid": "46b4787f0df4357c01d69ec3e241d15f", "score": "0.56346756", "text": "public Uri getPhotoPageUrl() {\n String url = \"http://www.flickr.com/photos/\" + owner + \"/\" + id;\n return Uri.parse(url);\n }", "title": "" }, { "docid": "cec7c08b525c3c09c00a0afce19716af", "score": "0.56320524", "text": "String getImageUrl(String imageFilename, Locale locale);", "title": "" }, { "docid": "ed119da283bdb796f4f49615cb1f55b8", "score": "0.5631659", "text": "public String pic();", "title": "" }, { "docid": "f57dd8d67f00dd70cba68c54aa70dce4", "score": "0.5626114", "text": "String getCUR_Image();", "title": "" }, { "docid": "12e4e1615f11a2ae23cc5fd9faf73d3d", "score": "0.56204545", "text": "java.lang.String getLink();", "title": "" }, { "docid": "12e4e1615f11a2ae23cc5fd9faf73d3d", "score": "0.56204545", "text": "java.lang.String getLink();", "title": "" }, { "docid": "b602357a2f9b083ecf8610044c927a58", "score": "0.5613139", "text": "public static String getUrlPictureOf( Restaurant r ) {\r\n \r\n return UrlPictureSearcher.getUrlPictureForRestaurant(r.getDenomination());\r\n \r\n }", "title": "" }, { "docid": "6b4ac469885bb06daf6355ac7b8daef3", "score": "0.5597152", "text": "private String getImage(long imageId, String hashCode, boolean downloadable) {\n String url;\n if (downloadable) {\n url = getFileServer() + \"nzh/image/\" + \"?imageId=\" + imageId + \"&downloadable=\" + downloadable + \"&hashCode=\" + hashCode;\n } else {\n url = getFileServer() + \"nzh/image/\" + \"?imageId=\" + imageId + \"&hashCode=\" + hashCode;\n }\n return url;\n }", "title": "" }, { "docid": "20b4e988e10cd4388404da682baa2221", "score": "0.5588353", "text": "public String getImageTitle();", "title": "" }, { "docid": "5bffa388bd94732749d62b3531fb6697", "score": "0.55756843", "text": "public void setImageLink(String img_link) {\r\n\t\tthis.img_link = img_link;\r\n\t}", "title": "" }, { "docid": "743a242de1a8bf8f3577db7b826208a9", "score": "0.55737704", "text": "public String getLinkImage() {\n String[] links = splitLinks(JSONResult);\n\n for (String l : links)\n if (l.contains(\"small\")) {\n l = removeJSONCharacters(l);\n return Service.removeCommonsCharacter(l).replaceAll(\"http\", \"https\");\n //System.out.println(removeJSONCharacters(l));\n }\n\n return null;\n }", "title": "" }, { "docid": "b498f2972c4d756a9a83d82e3327512f", "score": "0.5571477", "text": "public Image getImage();", "title": "" }, { "docid": "b498f2972c4d756a9a83d82e3327512f", "score": "0.5571477", "text": "public Image getImage();", "title": "" }, { "docid": "1b2cb4416c54271fa1cd21933c687804", "score": "0.5556856", "text": "Image getImage();", "title": "" }, { "docid": "3ddd8e59faa576d02d9571ffffca63da", "score": "0.5528596", "text": "public String getIMAGE_URL()\n {\n return this.IMAGE_URL;\n }", "title": "" }, { "docid": "44abe5a078f9a2ef070a6f46a84deebe", "score": "0.55253804", "text": "@AutoEscape\n\tpublic String getLargeImageURL();", "title": "" }, { "docid": "146d666ed9cb3c7136cd11aba773534d", "score": "0.55235153", "text": "String getPictureFilename();", "title": "" }, { "docid": "c06ec223935be1886f43ccdb6c1f3e0c", "score": "0.5505912", "text": "public String getImageDescription();", "title": "" }, { "docid": "257fdc8a262db184568bda8366ed6de9", "score": "0.5491026", "text": "java.lang.String getImageId();", "title": "" }, { "docid": "27412269e18375035ded677e2958c62b", "score": "0.5466229", "text": "@Override\r\n\tpublic String geturlImage() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e2e963110ae760bb5c83e1542c9d4fb4", "score": "0.5444581", "text": "public String getLink();", "title": "" }, { "docid": "093aa70d7d2a251d52c1dcf057aae9b8", "score": "0.5434604", "text": "String getImageId();", "title": "" }, { "docid": "888f01bfc661966ea4713519b09edbd8", "score": "0.5420456", "text": "private String downloadImage(String url) {\n\t\ttry {\n\t\t\tPriceInquiery pi = articleInq.getPriceInquiery();\n\t\t\tBitmapDrawable image = cap.getArticleImage(articleInq.EAN);\n\t\t\tif (pi != null) {\n\t\t\t\tif (image == null) {\n\t\t\t\t\tpi.drawableImage = CommonTask.getDrawableImage(String\n\t\t\t\t\t\t\t.format(CommonURL.getInstance().ProductImageURL,\n\t\t\t\t\t\t\t\t\tarticleInq.EAN), articleInq.EAN);\n\t\t\t\t} else {\n\t\t\t\t\tpi.drawableImage = image;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tCommonTask.addBasketObject(cap, pi);\n\t\t} catch (Exception oEx) {\n\t\t\tCommonValues.getInstance().IsBasketUpdateInProgress = false;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5484b575a0bb77a2494f6fa0c98be47b", "score": "0.5414305", "text": "@Override\n\tpublic boolean getImage(int tag) {\n\n\t\ttry {\n\t\n\t\t\tLifeStream ept = connect();\n\t\t\tif (ept != null) {\n\t\t\t return\tept.getImage(tag);\n\t\t\t\t//byte[] img = {0};\n\t\t\t\t//return ept.addEntry(tag, img, 2);\t\t\n\t\t\t}\n\t\t\telse\n\t\t\treturn false;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "3a20bbc26157eef2ec25e6ea24e2e758", "score": "0.5404246", "text": "public String getLinkedFileName() {\n String rId = link.getExternalBook().getId();\n PackageRelationship rel = getPackagePart().getRelationship(rId);\n if (rel != null && rel.getTargetMode() == TargetMode.EXTERNAL) {\n return rel.getTargetURI().toString();\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "59c7ef75b308e180b2d575f145aec65f", "score": "0.5396092", "text": "private String photo_url_helper(String ref, String width) {\n String photoRef = mContext.getString(R.string.goog_q_photo) + ref;\n String photoW = mContext.getString(R.string.goog_q_maxw) + width;\n String key = mContext.getString(R.string.api_key)\n + mContext.getString(R.string.googApiKey);\n String url = Utilities.createUrl(mContext.getString(R.string.googPhotoApi)\n , photoRef, photoW, key);\n return url;\n }", "title": "" }, { "docid": "9de609e2645b8a9c95d6b47d345b623b", "score": "0.5388889", "text": "String getHref();", "title": "" }, { "docid": "9de609e2645b8a9c95d6b47d345b623b", "score": "0.5388889", "text": "String getHref();", "title": "" }, { "docid": "8370f0235fc60aea0033d6a1ee4590dd", "score": "0.53863263", "text": "public Book retrieveBook(String isbn) throws BookNotFoundException;", "title": "" }, { "docid": "727592c34dfda9a094dd33c24a7ca472", "score": "0.5383648", "text": "private String makeImageUri(String name) {\n\t\tString image = name;\n\t\t// remove all white spaces\n\t\tString in = image.replaceAll(\"\\\\s+\", \"\");\n\t\t// turn to lower case\n\t\tString iname = in.toLowerCase();\n\t\tSystem.out.println(\"iName is: \" + iname);\n\t\tString mDrawableName = iname;\n\t\t// get the resId of the image\n\t\tint resID = getResources().getIdentifier(mDrawableName, \"drawable\",\n\t\t\t\tgetPackageName());\n\n\t\t// resID is notfound show default image\n\t\tif (resID == 0) {\n\t\t\tresID = getResources().getIdentifier(\"default_place\", \"drawable\",\n\t\t\t\t\tgetPackageName());\n\t\t}\n\n\t\t// make the uri\n\t\tUri imageURI = Uri.parse(\"android.resource://\" + getPackageName() + \"/\"\n\t\t\t\t+ resID);\n\t\timage = imageURI.toString();\n\t\treturn image;\n\t}", "title": "" }, { "docid": "4feebb4829fee78eb527e870de6b549e", "score": "0.5373766", "text": "public String getImgUrl() {\n return data.get(img_key);\n }", "title": "" }, { "docid": "7c629d497a2662c3766a4f1442003bbb", "score": "0.5370808", "text": "public String getImageName();", "title": "" }, { "docid": "af22dd9e8f99df8f499200b098c61e20", "score": "0.5370784", "text": "public String getImageUrl() {\n return pixabayImage.getPreviewURL();\n }", "title": "" }, { "docid": "b8447b602a444dce689e6d1aad968d6d", "score": "0.53684163", "text": "String getImageName();", "title": "" }, { "docid": "74d7ec7838417279dd9f06106852197b", "score": "0.53671724", "text": "public List<CMSLinkComponent> getOfferImageLink(final SessionContext ctx)\n\t{\n\t\tList<CMSLinkComponent> coll = (List<CMSLinkComponent>)getProperty( ctx, OFFERIMAGELINK);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "title": "" }, { "docid": "4d49c2591edd322a4db78f68dc60a66c", "score": "0.536506", "text": "public java.lang.String getLink();", "title": "" }, { "docid": "4a98ef0752e3c3b220dac07aa8f1efa3", "score": "0.53527725", "text": "public static String getLink(String fileName, String niche) {\n if (fileName == null) {\n return null;\n } else {\n return String.format(\"%s/%s/%s\", IMAGE_DIR, niche, fileName);\n }\n }", "title": "" }, { "docid": "89ac595577fe1dc5da3e56ac6fa8de7c", "score": "0.5349438", "text": "public synchronized Image getImage(String pNum )\n throws RemoteException, StockException\n {\n return aStockR.getImage( pNum );\n }", "title": "" }, { "docid": "c5c6038624def2f90774dd3fb71642b2", "score": "0.5344758", "text": "@Override\n public String toString() {\n return \"id:\" + id + \":url:\" + imgLink; \n }", "title": "" }, { "docid": "c2e76c9d60823eaed28b0ae599abfcbd", "score": "0.53443897", "text": "Image getThumbnail();", "title": "" }, { "docid": "4331061a2f88dd02eb554562aa8cfc69", "score": "0.53441334", "text": "public String getOriginalImageLink() {\n return originalImageLink;\n }", "title": "" }, { "docid": "ebccf4021fc129e4d161c80c2140f595", "score": "0.5343334", "text": "<C extends Context> String getImageUrl(String imageFilename, C context);", "title": "" }, { "docid": "a7c14c911f9328627ee0e8e27c2d6d49", "score": "0.5339437", "text": "public int getImageNumber();", "title": "" }, { "docid": "fc7fd6aa46d3f2523626fc07e4267c74", "score": "0.53379285", "text": "public URL getSourceURL() {\n File file = createImage();\r\n this.name = file.getName();\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "b73c20ae6ed7bbd01d20574ceb8da0f6", "score": "0.53091025", "text": "private String generateImageURL(BlobKey imageBlobKey)\n\t{\n\t\tString url = null;\n\t\t\n\t\t//First set the serving options\n\t\tServingUrlOptions servingUrlOptions = ServingUrlOptions.Builder.withBlobKey(imageBlobKey);\n\t\tservingUrlOptions.blobKey(imageBlobKey);\n\t\t\n\t\t// Then create the service and get the serving url\n\t\tImagesService imagesService = ImagesServiceFactory.getImagesService();\n\t\t\n\t\turl = imagesService.getServingUrl(servingUrlOptions);\n\t\tSystem.out.println(url);\n\t\t\n\t\treturn url;\n\t}", "title": "" }, { "docid": "842f5d012af5b68e13cdf1e0bf4b6d50", "score": "0.53068864", "text": "public String getItemURL()\n {\n return itemImagePath;\n }", "title": "" }, { "docid": "cf7baae6059f43f04a6e119669243eec", "score": "0.5305443", "text": "public Object reconstitute() {\n/* 51 */ return Toolkit.getDefaultToolkit().createImage(new URLImageSource(this.url));\n/* */ }", "title": "" }, { "docid": "ad417eaceeae265a02fe0c796221bdc3", "score": "0.52960503", "text": "abstract public String imgPeca();", "title": "" }, { "docid": "f49bd0a984184c4606e25dbc208f407b", "score": "0.5290281", "text": "public String pullImagePathForPage(){\n\t\t\n\t\t//check if log file exists\n\t\tif (new File(_vamixFolder + \"/editlog.txt\").exists()){\n\t\t\tBufferedReader in;\n\t\t\ttry {\n\t\t\t\tin = new BufferedReader(new FileReader(_vamixFolder + \"/editlog.txt\"));\n\t\t\t\t//the secondline should contain path to image\n\t\t\t\tin.readLine();\n\t\t\t\tString line = in.readLine();\n\t\t\t\tin.close();\n\t\t\t\treturn line;\n\t\t\t} catch (IOException 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\treturn \"\";\n\t}", "title": "" }, { "docid": "3b3651576328981bce8f2b95f35769d7", "score": "0.52895045", "text": "private String getImageFromUrl(String imageUrl) {\n return imageUrl.replaceAll(\"w780\", \"w342\");\n }", "title": "" }, { "docid": "345d53a6561d9cb335aad4b7f462ca42", "score": "0.5289354", "text": "public String getImageUrl(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, IMAGEURL);\r\n\t}", "title": "" }, { "docid": "01edcea88a12d38cd263c58ff8df9c3e", "score": "0.5288632", "text": "public String getImage() {\r\n\t\tStringBuilder fileName = new StringBuilder(10);\r\n\t\tfileName.append(value);\r\n\t\tfileName.append(suit);\r\n\t\tfileName.append(\".gif\");\r\n\t\timgFile = fileName.toString();\r\n\t\treturn imgFile;\r\n\t}", "title": "" }, { "docid": "7dfd9b2f5f845aff755e249ae38b427f", "score": "0.52885306", "text": "public interface Picture {\n\t\n\tpublic enum Format{\n\t EMF,\n\t WMF,\n\t PICT,\n\t JPEG,\n\t PNG,\n\t DIB\t\t\n\t}\n\t\n\tpublic String getId();\n\t\n\tpublic SheetAnchor getAnchor();\n}", "title": "" }, { "docid": "d838783af74839ec87f7686a075cc372", "score": "0.5286282", "text": "@AutoEscape\n\tpublic String getBookingURL();", "title": "" }, { "docid": "d33c571131a11946a814101f62bb978a", "score": "0.5282824", "text": "private Uri getImageURI(Context context, Bitmap image) {\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n image.compress(Bitmap.CompressFormat.JPEG, 100, bytes);\r\n\r\n String path = MediaStore.Images.Media.insertImage(context.getContentResolver(), image, \"Title\", null);\r\n return Uri.parse(path);\r\n }", "title": "" }, { "docid": "8fe3baebc29c8d022e3e0f022bcecec3", "score": "0.5270739", "text": "private Image getCoinImg(String url) {\n\t\tURL iconURL = C4GuiApp.class.getResource(url);\n\t\tif (iconURL != null)\n\t\t\treturn new ImageIcon(iconURL).getImage();\n\t\telse {\n\t\t\tSystem.out.println(\"URL is null\");\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "2759cb0fca99b1a73bb065b2bed82ba4", "score": "0.5268514", "text": "private static Image getImage(String filename) {\r\n\r\n // to read from file\r\n ImageIcon icon = new ImageIcon(filename);\r\n\r\n // try to read from URL\r\n if ((icon == null) || (icon.getImageLoadStatus() != MediaTracker.COMPLETE)) {\r\n try {\r\n URL url = new URL(filename);\r\n icon = new ImageIcon(url);\r\n } catch (Exception e) { /* not a url */ }\r\n }\r\n\r\n // in case file is inside a .jar\r\n if ((icon == null) || (icon.getImageLoadStatus() != MediaTracker.COMPLETE)) {\r\n URL url = StdDraw.class.getResource(filename);\r\n if (url == null) throw new IllegalArgumentException(\"image \" + filename + \" not found\");\r\n icon = new ImageIcon(url);\r\n }\r\n\r\n return icon.getImage();\r\n }", "title": "" }, { "docid": "7395e8c63a88dd26bb9815b20ff6015c", "score": "0.5260562", "text": "Uri getSourceIconUri();", "title": "" }, { "docid": "58ddc4efeceea28b93d1271e908a199c", "score": "0.5253132", "text": "public static Image fetchimage(String address, Component c)\r\n throws MalformedURLException, IOException\r\n {\r\n URL url = new URL(address);\r\n return c.createImage((java.awt.image.ImageProducer) url.getContent());\r\n }", "title": "" }, { "docid": "abc45a38efd0a5d8b883ff50b7fa18ac", "score": "0.52527577", "text": "private void searchForItemAndUpdatePanel(String searchTerm) throws IOException \n{\n item = Zappos.getZapposItemForSearchTerm(searchTerm);\n\n // load the image \n try {\n URL url = new URL(item[1].getDefaultImageUrl());\n image = ImageIO.read(url);\n\n } catch (IOException ex) {\n\n System.out.println(ex.getMessage());\n }\n}", "title": "" }, { "docid": "728de472215a6ccd608ab65a0459ac67", "score": "0.5243152", "text": "Object getCompleteImage() throws IOException;", "title": "" }, { "docid": "d3ca75a22aff27016898f367b96d360b", "score": "0.52307296", "text": "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Book currentBook = mAdapter.getItem(position);\n\n // Convert the String URL into a URI object (to pass into the Intent constructor)\n String check = currentBook.getUrl();\n\n if (check != \"No photo.\") {\n Uri bookUri = Uri.parse(currentBook.getUrl());\n\n // Create a new intent to view the book URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, bookUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }\n }", "title": "" }, { "docid": "b7aa88a8594e078e1109a9f91af47a69", "score": "0.52258265", "text": "@AutoEscape\n\tpublic String getSmallImageURL();", "title": "" }, { "docid": "9aeedf8480d341b235e1429af100461a", "score": "0.52244824", "text": "private static Image requestImage(String info) {\n\t\tString imageURL = imgURL + info + \".png\";\n\t\ttry {\n\t\t\tURL url = new URL(imageURL);\n\t\t\tImage image = ImageIO.read(url);\n\t\t\treturn image;\n\t\t} catch (MalformedURLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1a9b29af60719a490112be52282d1844", "score": "0.5223456", "text": "public URL getFullURL()\n {\n return ( mLargestImage.getSourceURL() );\n }", "title": "" }, { "docid": "e42b8e2ad623fe625992b3e90cce90a6", "score": "0.52214843", "text": "public static HtmlTag imageLink(String href, String title, String imgSrc, String imgAlt) {\n\t\tHtmlTag link = link(href, null, title, false);\n\t\tHtmlTag img = image(imgSrc, null, imgAlt);\n\t\tlink.addTag(img);\n\t\treturn link;\n\t}", "title": "" }, { "docid": "a2eb749a83eec9052460f19f1e7aaed8", "score": "0.52147996", "text": "@Override\n protected String renderUrl() {\n String link = null;\n try {\n String finderProperty = isHome\n ? PropertiesFactory.getProperty(name.concat(HomeProperties.ARTICLE_ITEM.toString()))\n : PropertiesFactory.getProperty(name.concat(RubricProperties.ARTICLE_ITEM.toString()));\n link = element.selectFirst(finderProperty).attr(\"href\");\n if (!link.contains(\"http\"))\n link = PropertiesFactory.getProperty(name.concat(HomeProperties.URL.toString())).concat(link);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return link;\n }", "title": "" }, { "docid": "0d5bf0ea58074912c5d0a028a333c88c", "score": "0.52020377", "text": "public abstract vString image();", "title": "" } ]
807708b3cb0579fa812bcc47cb7922fb
Nothing new in the OnClick routine except to point out that anything derived from View class (Even TextView) can work with the OnClickListener Interface.
[ { "docid": "ab1c786eb8d0e3306454616f573ae17c", "score": "0.0", "text": "@Override\n public void onClick(View v) {\n Toast toast=null;\n switch(v.getId())\n {\n case R.id.state:\n toast = Toast.makeText(this /*Needs a Context*/, state.getText(), Toast.LENGTH_SHORT);\n break;\n case R.id.capital:\n toast = Toast.makeText(this /*Needs a Context*/, capital.getText(), Toast.LENGTH_SHORT);\n break;\n default:\n toast = Toast.makeText(this /*Needs a Context*/, \"??????\", Toast.LENGTH_SHORT);\n break;\n }\n toast.show(); \n }", "title": "" } ]
[ { "docid": "2dfedd77a281f4d4f9511bf8abc76c0a", "score": "0.7939952", "text": "public void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "2dfedd77a281f4d4f9511bf8abc76c0a", "score": "0.7939952", "text": "public void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "b84802428e24c8295ffecee9a487d07a", "score": "0.79166454", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t}", "title": "" }, { "docid": "b84802428e24c8295ffecee9a487d07a", "score": "0.79166454", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t}", "title": "" }, { "docid": "fb589ca89a9f94915e2fb716c372205a", "score": "0.7878775", "text": "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t}", "title": "" }, { "docid": "6bd9fd326d0c7fe632da88dbd192ee58", "score": "0.7866976", "text": "public void onClick(View v) \n\t{\n\t}", "title": "" }, { "docid": "c4e5c37feee869aecd19cd5e562bf7db", "score": "0.78530294", "text": "public void onClick(View v) {\n\t}", "title": "" }, { "docid": "137c1538ae6ceebdb60498370a2111af", "score": "0.7834392", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t}", "title": "" }, { "docid": "137c1538ae6ceebdb60498370a2111af", "score": "0.7834392", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t}", "title": "" }, { "docid": "137c1538ae6ceebdb60498370a2111af", "score": "0.7834392", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t}", "title": "" }, { "docid": "137c1538ae6ceebdb60498370a2111af", "score": "0.7834392", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t}", "title": "" }, { "docid": "7324056fe201ed8162948a94211ffdcc", "score": "0.78342587", "text": "@Override\n\tpublic void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "7324056fe201ed8162948a94211ffdcc", "score": "0.78342587", "text": "@Override\n\tpublic void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "7324056fe201ed8162948a94211ffdcc", "score": "0.78342587", "text": "@Override\n\tpublic void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "7324056fe201ed8162948a94211ffdcc", "score": "0.78342587", "text": "@Override\n\tpublic void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "7324056fe201ed8162948a94211ffdcc", "score": "0.78342587", "text": "@Override\n\tpublic void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "7324056fe201ed8162948a94211ffdcc", "score": "0.78342587", "text": "@Override\n\tpublic void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "7324056fe201ed8162948a94211ffdcc", "score": "0.78342587", "text": "@Override\n\tpublic void onClick(View v) {\n\t\t\n\t}", "title": "" }, { "docid": "7223d766d0e9307fa3e33047768c71de", "score": "0.7832146", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t}", "title": "" }, { "docid": "30a72bd8dd5475e89b6e14d32dc8b192", "score": "0.78212726", "text": "@Override\n public void onClick(final View v) {\n }", "title": "" }, { "docid": "8968ffb32c6a8464d264c9d6a9d46e75", "score": "0.78075105", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t}", "title": "" }, { "docid": "8968ffb32c6a8464d264c9d6a9d46e75", "score": "0.78075105", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t}", "title": "" }, { "docid": "eed0ae76c9ac76e824c1047abff0cbf8", "score": "0.77951866", "text": "public void onClick(View v) {\n }", "title": "" }, { "docid": "8baaefa4c3f9e446ee828f4a0809b431", "score": "0.77924347", "text": "@Override\n\tpublic void onClick(View arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "8baaefa4c3f9e446ee828f4a0809b431", "score": "0.77924347", "text": "@Override\n\tpublic void onClick(View arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "d704bd0dc271daf75a0cbb1781479c35", "score": "0.77870005", "text": "@Override\n\t\tpublic void onClick(View view)\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "eb829251af376a9f9a0c39998e52dfc0", "score": "0.77829236", "text": "@Override\n\tpublic void onClick(View v) {\n\t}", "title": "" }, { "docid": "eb829251af376a9f9a0c39998e52dfc0", "score": "0.77829236", "text": "@Override\n\tpublic void onClick(View v) {\n\t}", "title": "" }, { "docid": "eb829251af376a9f9a0c39998e52dfc0", "score": "0.77829236", "text": "@Override\n\tpublic void onClick(View v) {\n\t}", "title": "" }, { "docid": "7116c49719d3570b5d38670cb93c7344", "score": "0.7767365", "text": "public void onClick(View view) \r\n {\r\n }", "title": "" }, { "docid": "f9d9c318d025ccb4be8f8a0f0a2e437a", "score": "0.776545", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}", "title": "" }, { "docid": "f9d9c318d025ccb4be8f8a0f0a2e437a", "score": "0.776545", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t}", "title": "" }, { "docid": "713511429ae6ba75c94c7cbda5c3eaa3", "score": "0.7742821", "text": "@Override\n\tpublic void onClick(View v) {\n\n\t}", "title": "" }, { "docid": "713511429ae6ba75c94c7cbda5c3eaa3", "score": "0.7742821", "text": "@Override\n\tpublic void onClick(View v) {\n\n\t}", "title": "" }, { "docid": "713511429ae6ba75c94c7cbda5c3eaa3", "score": "0.7742821", "text": "@Override\n\tpublic void onClick(View v) {\n\n\t}", "title": "" }, { "docid": "713511429ae6ba75c94c7cbda5c3eaa3", "score": "0.7742821", "text": "@Override\n\tpublic void onClick(View v) {\n\n\t}", "title": "" }, { "docid": "713511429ae6ba75c94c7cbda5c3eaa3", "score": "0.7742821", "text": "@Override\n\tpublic void onClick(View v) {\n\n\t}", "title": "" }, { "docid": "713511429ae6ba75c94c7cbda5c3eaa3", "score": "0.7742821", "text": "@Override\n\tpublic void onClick(View v) {\n\n\t}", "title": "" }, { "docid": "713511429ae6ba75c94c7cbda5c3eaa3", "score": "0.7742821", "text": "@Override\n\tpublic void onClick(View v) {\n\n\t}", "title": "" }, { "docid": "713511429ae6ba75c94c7cbda5c3eaa3", "score": "0.7742821", "text": "@Override\n\tpublic void onClick(View v) {\n\n\t}", "title": "" }, { "docid": "e2b269481722782b62159344cb03e302", "score": "0.7742102", "text": "@Override\n\tpublic void onClick(View view) {\n\n\t}", "title": "" }, { "docid": "b46078a16d3b11a3d2831d27bebb94f5", "score": "0.77326673", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (onClickListener != null) {\n\t\t\t\t\tonClickListener.onClick(v);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "da7e026c9613f52cd950752df432b96f", "score": "0.7729016", "text": "@Override\r\n\tpublic void onClick(View v) {\n\t\t\r\n\t}", "title": "" }, { "docid": "da7e026c9613f52cd950752df432b96f", "score": "0.7729016", "text": "@Override\r\n\tpublic void onClick(View v) {\n\t\t\r\n\t}", "title": "" }, { "docid": "da7e026c9613f52cd950752df432b96f", "score": "0.7729016", "text": "@Override\r\n\tpublic void onClick(View v) {\n\t\t\r\n\t}", "title": "" }, { "docid": "da7e026c9613f52cd950752df432b96f", "score": "0.7729016", "text": "@Override\r\n\tpublic void onClick(View v) {\n\t\t\r\n\t}", "title": "" }, { "docid": "28ba435f1dbc6bd37d91c0c5f7ac04ea", "score": "0.7728822", "text": "public void onClick(View v) {\n }", "title": "" }, { "docid": "28ba435f1dbc6bd37d91c0c5f7ac04ea", "score": "0.7728822", "text": "public void onClick(View v) {\n }", "title": "" }, { "docid": "28ba435f1dbc6bd37d91c0c5f7ac04ea", "score": "0.7728822", "text": "public void onClick(View v) {\n }", "title": "" }, { "docid": "28ba435f1dbc6bd37d91c0c5f7ac04ea", "score": "0.7728822", "text": "public void onClick(View v) {\n }", "title": "" }, { "docid": "28ba435f1dbc6bd37d91c0c5f7ac04ea", "score": "0.7728822", "text": "public void onClick(View v) {\n }", "title": "" }, { "docid": "28ba435f1dbc6bd37d91c0c5f7ac04ea", "score": "0.7728822", "text": "public void onClick(View v) {\n }", "title": "" }, { "docid": "28ba435f1dbc6bd37d91c0c5f7ac04ea", "score": "0.7728822", "text": "public void onClick(View v) {\n }", "title": "" }, { "docid": "6558659b287cbca3f7097d8793b9097b", "score": "0.7727419", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "6558659b287cbca3f7097d8793b9097b", "score": "0.7727419", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "title": "" }, { "docid": "bd399ed55c24a70c7f49c029255f1248", "score": "0.77266717", "text": "@Override\r\n\tpublic void onClick(View arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "bd399ed55c24a70c7f49c029255f1248", "score": "0.77266717", "text": "@Override\r\n\tpublic void onClick(View arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b98130a9b24db9911ff1c907c6dfe4cd", "score": "0.7725761", "text": "@Override\r\n public void onClick(View v) {\r\n }", "title": "" }, { "docid": "5f19922f86a2e9a469a0d7ffcb2fe65e", "score": "0.77250725", "text": "@Override\n public void onClick(View view) {\n }", "title": "" }, { "docid": "00b824f11e11784b811e778b6409d626", "score": "0.7722125", "text": "public void onClick(View v) {\n\r\n\t}", "title": "" }, { "docid": "e48276518b45d8466da2cf5dbdb81c56", "score": "0.7719718", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "e48276518b45d8466da2cf5dbdb81c56", "score": "0.7719718", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "e48276518b45d8466da2cf5dbdb81c56", "score": "0.7719718", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "e48276518b45d8466da2cf5dbdb81c56", "score": "0.7719718", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "e48276518b45d8466da2cf5dbdb81c56", "score": "0.7719718", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "e48276518b45d8466da2cf5dbdb81c56", "score": "0.7719718", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "7a9dbc4b27fe339ab38fca79f6a87b29", "score": "0.7719182", "text": "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "eb4800a76dac861f97ed79d89f7b67b8", "score": "0.7716824", "text": "@Override\n\tpublic void onClick(View arg0) {\n\n\t}", "title": "" }, { "docid": "eb4800a76dac861f97ed79d89f7b67b8", "score": "0.7716824", "text": "@Override\n\tpublic void onClick(View arg0) {\n\n\t}", "title": "" }, { "docid": "a89824bbe736f00943f3f47d68d149a9", "score": "0.77080727", "text": "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "e3bd51b1e276ef8ebe0e3d221ee0ff90", "score": "0.77072215", "text": "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "737e8cd0d389172a3e725616edd2d6bd", "score": "0.7707068", "text": "@Override\n public void onClick(View view) {\n }", "title": "" }, { "docid": "737e8cd0d389172a3e725616edd2d6bd", "score": "0.7707068", "text": "@Override\n public void onClick(View view) {\n }", "title": "" }, { "docid": "fb9b64c29307ac531983405c12d55dd3", "score": "0.77018195", "text": "public void onClick(View v) {\n\t\t\r\n\t}", "title": "" }, { "docid": "57d2739ebe300e6d597192013b6edef3", "score": "0.7701448", "text": "@Override\n\t\t\tpublic void onClick(View arg0) \n\t\t\t{\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "ff467d2a4f9251edd856b743c4421cbc", "score": "0.7686175", "text": "@Override\r\n public void onClick(View v) {\n }", "title": "" }, { "docid": "81397f1dc3a1e090d141c4c65eb8a734", "score": "0.76806474", "text": "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "title": "" }, { "docid": "e6c647873f5b0a7cbdd0d22d518508a3", "score": "0.76714736", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tmListener.onClick(v);\n\t}", "title": "" }, { "docid": "efe11d2d0042c46b8f2e85edf212f24a", "score": "0.76682496", "text": "@Override\n public void onClick(View arg0) {\n }", "title": "" }, { "docid": "bb2abae516d79f5f52368f0acff15fd6", "score": "0.7659284", "text": "@Override\r\n\tpublic void onClick(View v) {\n\r\n\t}", "title": "" }, { "docid": "6ab2d5efc2bf2f1d525eb037f95521e9", "score": "0.7654804", "text": "@Override\r\n\tpublic void onClick(View view) {\n\r\n\t}", "title": "" }, { "docid": "fd91d5c62d14ec2e1da3b86de2f2066c", "score": "0.7651745", "text": "@Override\n public void onClick(View view) {\n }", "title": "" }, { "docid": "96d71b71055be294d9648b5a269d8159", "score": "0.76497525", "text": "@Override\r\n public void onClick(View v) {\n \t \r\n }", "title": "" }, { "docid": "a9ee304840ca6ad2a53a1eace6b26069", "score": "0.76489884", "text": "public void onClick(View view) {\n }", "title": "" }, { "docid": "88e4fe47c48ddddc8f29c31b14e00cba", "score": "0.7644813", "text": "public void onClick(View v) {\n\t\t\t}", "title": "" }, { "docid": "88e4fe47c48ddddc8f29c31b14e00cba", "score": "0.7644813", "text": "public void onClick(View v) {\n\t\t\t}", "title": "" }, { "docid": "dd7e001c46d3cefd8f72907a9f3a4b77", "score": "0.76445067", "text": "@Override\n public void onClick(View arg0) {\n\n }", "title": "" }, { "docid": "aa996960538d966f0d501d0aa8916a3f", "score": "0.763471", "text": "public void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "aa996960538d966f0d501d0aa8916a3f", "score": "0.763471", "text": "public void onClick(View v) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7c7ea4bfaab8eda5811e427bd660e6bd", "score": "0.7630787", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a4cab70a4ca3fcdee9229ab1a815716e", "score": "0.762631", "text": "@Override\n public void onClick(View v) {\n\n }", "title": "" }, { "docid": "a4cab70a4ca3fcdee9229ab1a815716e", "score": "0.762631", "text": "@Override\n public void onClick(View v) {\n\n }", "title": "" }, { "docid": "b67409451be2fae70edc0bda8e151a91", "score": "0.7625995", "text": "public interface OnClickListener {\n}", "title": "" }, { "docid": "269cd52429b61e90e9d6c2dd32de858f", "score": "0.76199096", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "269cd52429b61e90e9d6c2dd32de858f", "score": "0.76199096", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "269cd52429b61e90e9d6c2dd32de858f", "score": "0.76199096", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "269cd52429b61e90e9d6c2dd32de858f", "score": "0.76199096", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "269cd52429b61e90e9d6c2dd32de858f", "score": "0.76199096", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "269cd52429b61e90e9d6c2dd32de858f", "score": "0.76199096", "text": "@Override\n public void onClick(View v) {\n }", "title": "" }, { "docid": "d205e9cb30fee8411550c154dbd9e9a3", "score": "0.7615385", "text": "public void onClick(View v) {\n\n }", "title": "" }, { "docid": "d205e9cb30fee8411550c154dbd9e9a3", "score": "0.7615385", "text": "public void onClick(View v) {\n\n }", "title": "" } ]
4028caba410effab2c556a033ab1cea9
defining the random range for salary between 1100 up to 2000
[ { "docid": "5bdc7124c05fd3ec4ecef28e50d9775a", "score": "0.65168524", "text": "@Override\n\t//Method to set a randomly salary for the employees that belongs to this class\n\tpublic void setCurrentSalary() {\n\t\tdouble currentSalary = 1100.00 + (int)(Math.random()*(2000.00));\n\t\tthis.currentSalary = currentSalary;\n\t}", "title": "" } ]
[ { "docid": "f620f65845a85b26ef273fbb641e20a0", "score": "0.6583085", "text": "private static int getRandomAge(){\r\n return r.nextInt(10)+1;\r\n }", "title": "" }, { "docid": "bb607a774ec5818e34e86c218646875e", "score": "0.6175842", "text": "public int getage(){\r\n return (rand.nextInt(84)+1);\r\n }", "title": "" }, { "docid": "14d62695ab776c9dc3b8def107d5a327", "score": "0.6138278", "text": "public static String getRankSalary() {\n\t\t\r\n\t\tRandom randnum = new Random();\r\n\t\tint position = randnum.nextInt(3);\r\n\t\t\r\n\t\tif(position==0) {\r\n\t\t\treturn (\"Assistant \" + String.format(\"%10.2f\", (5000 +Math.random()*3000)));\r\n\t\t}\r\n\r\n\t\telse if(position==1) {\r\n\t\t\treturn (\"Associate \" + String.format(\"%10.2f\", (6000 +Math.random()*4500)));\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\treturn (\"Full \" + String.format(\"%10.2f\", (7000 +Math.random()*6000)));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7dedc5164e35d14225f4d22ea778e911", "score": "0.60457385", "text": "private int randRange(int l, int r){\n return rand.nextInt(r - l) + l;\n }", "title": "" }, { "docid": "49e30f351b9addacc4db461878f738fb", "score": "0.5946334", "text": "public int randomRange(int lo, int hi)\n {\n Random generator = new Random();\n \n// System.out.println(\"Enter lowest value\");\n// lo = sc.nextInt();\n// System.out.println(\"Enter highest value\");\n// hi = sc.nextInt();\n \n return generator.nextInt(hi-lo+1)+lo;// returns a random value within the range\n }", "title": "" }, { "docid": "cbd4d54dd5d03197ead9546ad1a2b780", "score": "0.5940442", "text": "private static int randInt(int range)\n\t{\n\t\tRandom randNum = new Random();\n\t\treturn randNum.nextInt(range);\n\t}", "title": "" }, { "docid": "d18b5d7b1663afb3122630b61a477312", "score": "0.58897936", "text": "public void simulateYear() {\n\t\t\n\t\tpopulation = population + random.nextInt(11);\n\n\t}", "title": "" }, { "docid": "a59eddbf59f7a03b1d0368a48804c5c8", "score": "0.5840536", "text": "public static int _random(final long upperBound) {\r\n return gen.nextInt((int) upperBound);\r\n }", "title": "" }, { "docid": "5e20dac3a3f213643f1e9d31cc2c4d97", "score": "0.58247143", "text": "public void annualRaise () {\n\n salary = salary * 1.06;\n salary = Math.floor(100.0 * salary) / 100.0;\n }", "title": "" }, { "docid": "60ff816842bf5172d8656ff219346bc8", "score": "0.58063823", "text": "private static int getRandomNum(int lower, int upper){\n return (int)(Math.random()*(upper-lower))+lower;\n }", "title": "" }, { "docid": "08363231692f889e6b723a6d11973d18", "score": "0.57936025", "text": "public static void main(String[] args) {\n int min = -200;\n int max = 200;\n int range = max - min;\n int randomInRange = min + (int) (Math.random() * (range + 1));\n\n //task2;\n // check if random number is positive or negative\n //where numbwe is -200<=n =200\n //ex : -123 => negative\n //ex: 10 => positive\n if (randomInRange < 0) {\n System.out.println(\"it is negative \");\n if (randomInRange > 0) {\n System.out.println(\" it is positive\");\n\n if (randomInRange == 0) {\n System.out.println(\" it is zero\");\n\n\n }\n }\n }\n\n\n }", "title": "" }, { "docid": "2358c7a5e5d7c799c20397fb63e46a5f", "score": "0.5752753", "text": "@Override\r\n\tpublic int bigstonesspot() {\r\n\t\tRandom random = new Random();\r\n\t\tint temp = random.nextInt(((50-0) +1) +0);\r\n\t\treturn temp;\r\n\t}", "title": "" }, { "docid": "72407b86ce09b99f6e9756c89090136f", "score": "0.575193", "text": "public static int getRandom2(int min, int max)\n {\n double dd = new Random().nextDouble();\n return min + (int)(dd*(max-min));\n //return (int)(dd*100);\n\n }", "title": "" }, { "docid": "70aed71c7dfc7a7c0ca54892ace3bafd", "score": "0.57251287", "text": "private static int getRandomInt(int bound){\n Random random = new Random();\n return random.nextInt(bound);\n }", "title": "" }, { "docid": "3a7708e306a826eab15ca0ea1cffe1d2", "score": "0.5723076", "text": "private int RandomInRange(int start, int end)\r\n {\r\n\r\n Random rand = new Random();\r\n\r\n return rand.nextInt((end - start) + 1) + start;\r\n }", "title": "" }, { "docid": "15db08d293eff694c42ccd28c6f34997", "score": "0.5718038", "text": "private int getRandom(int upperBound) {\n return randomNumberClass.nextInt(upperBound);\n }", "title": "" }, { "docid": "3237c2bfd64a8c26e30b0451745770c3", "score": "0.56990963", "text": "private void generateAbilities(){\n\t\tthis.strength = randomRoll(100);\n\t\tthis.speed = randomRoll(100);\n\t\tthis.health = randomRoll(100);\n\t}", "title": "" }, { "docid": "817c766c555e4bd5f60f31e8926fe413", "score": "0.5697975", "text": "public void setRandomprice(){\n this.price = Integer.toString(Utils.getRandomInteger(Parameters.BOOK_PRICE_MIN, Parameters.BOOK_PRICE_MAX));\n }", "title": "" }, { "docid": "de9f592c6afc2eebf0b5164733b9d423", "score": "0.56775635", "text": "private int auHasardEntre(int min, int max){\n double t=Math.random();\n int resultat = (int) ((max-min)*t + min);\n return resultat;\n }", "title": "" }, { "docid": "8a4a9380d563adb2770a89372a24fee8", "score": "0.5675105", "text": "boolean Desgaste(){\n if (rng.nextInt(100)>=90) {\r\n return true;\r\n }\r\n else return false;\r\n }", "title": "" }, { "docid": "53b43a393fee2271519c68888ba93206", "score": "0.56719565", "text": "private int getRandomDamage(Random random) {\n return 20 + random.nextInt(100);\n }", "title": "" }, { "docid": "85cf4b686b9e15dedbe822836209b74f", "score": "0.5651919", "text": "public static void main(String[] args) {\n int totalHours=0;\n int totalDays=20;\n\t\tint hour=100;\n\n double employeeCheck = Math.floor(Math.random()*10)%3; // 0-2\n System.out.println(\"generated - \"+employeeCheck);\n\n \n\n\t\tfor(int i=0; i<=hour; i++){\n \t\t\tif(employeeCheck == IS_FULL_TIME) {\n \t totalHours=10;\n \t}\n \telse if(employeeCheck == IS_PART_TIME){\n \t totalHours=5;\n \t\t}\n \t\telse {\n \t totalHours=0;\n \t\t }\n\n\t\t\tint WORK_HOURS=totalHours;\n\t \t}\n\t\tSystem.out.println(\"hour -\"+WORK_HOURS*totaldays);\n System.out.println(\"wage - \"+WORK_HOURS*EMPLOYEE_RATE_PER_HOUR*totalDays);\n \t }", "title": "" }, { "docid": "6a12a9e22d383a13f35d44d617a3f82f", "score": "0.565125", "text": "static public double getArcWeightRandomInitValue( double __offset, double __range )\n {\n \t//return (1.6);\n \t//return (0.5081);\n return ( Math.random() * __range + __offset ); // return a value within [ __offset , __offset + __range ]\n }", "title": "" }, { "docid": "1661cd21b3b37ef05f87cd2f309dab2d", "score": "0.5646864", "text": "private static int generateRandomNumber(int\n upper_bound) { /// I'm pretty sure there's a java.util.Random library we can use\n //int random = (int) (Math.floor(Math.random() * (upper_bound + 1)));\n return (int) Math.floor(Math.random() * (upper_bound + 1));\n }", "title": "" }, { "docid": "4f36bf44b6c880cb62ec61678b5c7ff6", "score": "0.5639547", "text": "static int randomNumber() {\n\t\tint range = (99 - 1) + 1;\n\t\treturn (int) (Math.random() * range) + 1;\n\t}", "title": "" }, { "docid": "055f0292996dbf4f5ae966e8708dd687", "score": "0.5631165", "text": "public static int randomGenerator( int end, int start){\r\n\r\n // Your code goes here\r\n\r\n }", "title": "" }, { "docid": "d419f87ce892fc65a94256dc245c9cdb", "score": "0.5630339", "text": "public int numaleatorio(){\r\n return(int)(rnd.nextDouble()*50+1);//esta sentencia la usamos para números aleatorios enteros en un rango determinado\r\n }", "title": "" }, { "docid": "6c5259e4653e1382963749c7dd19f55b", "score": "0.56283194", "text": "public static void main(String[] args) {\n\t\tint is_present = 1;\n int emp_check = (int)(Math.floor(Math.random() * 10)) % 2;\n if( emp_check == is_present)\n {\n System.out.println(\"Wage is present\");\n }\n else\n System.out.println(\"Wage is absent\");\n\t}", "title": "" }, { "docid": "0dbe930a15cac9beea93759e1804660d", "score": "0.5625558", "text": "public void changeLim(){\n if(id < 5){\n randLimit = 100;\n }\n else if(id < 10){\n randLimit = 1000;\n }\n else if(id < 20){\n randLimit = 10000;\n }\n else{\n randLimit = 50000;\n }\n }", "title": "" }, { "docid": "b3cea0d41d7c9207b7526d903b93e468", "score": "0.56226325", "text": "public static void main(String[] args) {\n\t\tRandom rand = new Random();\r\n\t\tint min = 75, max = 125, randomNum=0;\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\trandomNum = min + rand.nextInt((max - min) + 1);\r\n\t\t\tSystem.out.println(randomNum);\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "2cb905eccccdcaacd07dd29636cea830", "score": "0.56025636", "text": "@Override\n\tpublic int calcularVida() {\t\n\t\tif(getEdad()<18)\n\t\t\treturn (int)(Math.random()*(1-10)+10);\n\t\tif(getEdad()>=18 && getEdad()<30)\n\t\t\treturn (int)(Math.random()*(50-90)+90);\n\t\tif(getEdad()>=30 && getEdad()<50)\n\t\t\treturn (int)(Math.random()*(30-70)+70);\n\t\tif(getEdad()>=50 && getEdad()<65)\n\t\t\treturn (int)(Math.random()*(20-50)+50); \n\t\telse\n\t\t\treturn (int)(Math.random()*(1-20)+20);\n\t}", "title": "" }, { "docid": "5c0ca0cbd398124012d53797de472eda", "score": "0.5602353", "text": "private static int randomInRange(int min, int max){\n Random random = new Random();\n return random.nextInt((max - min) + 1) + min;\n }", "title": "" }, { "docid": "5262540ab91030aa6a489fa3033c4ddf", "score": "0.56000155", "text": "public void setRand() {\n setRand(0, 10);\n }", "title": "" }, { "docid": "694324f17934eb43a61ff842966a6fd1", "score": "0.5596592", "text": "private long getSleepSeconds(int range) {\r\n return (long) (Math.random() * range) + 15000;\r\n }", "title": "" }, { "docid": "3ac383a0202ca7290067ec89cdf1a5aa", "score": "0.5578469", "text": "public void setRandNum(){\r\n randNum=minimum + (int)(Math.random() * ((maximum - minimum) + 1));\r\n }", "title": "" }, { "docid": "29956c4c785a0640fbad348d78218f47", "score": "0.55644804", "text": "public static int randomNumberGenerator(int bound){\n return new Random().nextInt(bound);\n }", "title": "" }, { "docid": "df73a8864425ed658e08c6674165f4b1", "score": "0.556175", "text": "public void setSalary(int salary) {\n this.salary = salary;\n }", "title": "" }, { "docid": "cad9c037606daaddde98afd03d72d5a1", "score": "0.5550931", "text": "private int randInt() \n\t{\n\t Random rand;\n\t int randomNum;\n\t \n rand = new Random();\n\n\t randomNum = rand.nextInt((rangeHigh - rangeLow) + 1) + rangeLow;\n\n\t return randomNum;\n\t}", "title": "" }, { "docid": "2306610eb5992bd98b286f3be8c2119f", "score": "0.5541945", "text": "private static int damageRand(int damage) {\n //damage dispersion is +- 20% of attack power\n int dispersion = (damage / 5);\n int min = damage - dispersion;\n int max = (damage + dispersion) - min;\n return (int) ((Math.random() * ++max) + min); // number in range [min; max]\n }", "title": "" }, { "docid": "13fe1078c8cba4dbdc23cf338c224f26", "score": "0.5538325", "text": "public static int randNum(){\n\t\tint radius = randomInt.nextInt(100)+50;\n\t\treturn radius;\n\t}", "title": "" }, { "docid": "a4b06f9ba86364e5ca466bb1e5b32ea8", "score": "0.553673", "text": "private int generateWeeklyPrice()\r\n\t{\r\n\t\tproductPrice = (rand.nextInt(10) + 1) * 100;\r\n\t\treturn productPrice;\r\n\t}", "title": "" }, { "docid": "29344bfd80d947c6e834b6f400bd5431", "score": "0.552984", "text": "private void generateGold(int max, int min){\n for(int i = 0; i<data.getMapSize(); i++) {\n for (int j = 0; j < data.getMapSize(); j++) {\n field[i][j].gold.setAmount(generator.nextInt(max) + min);\n\n }\n }\n }", "title": "" }, { "docid": "d51a9c1b02ac58df76f2be242ba72a7b", "score": "0.5528611", "text": "public static int randomLifeExpectancy() {\n\t\treturn randomValue(lifeExpectancyMin, lifeExpectancyMax);\n\t}", "title": "" }, { "docid": "3bddabcd15106d961432932f6f3d3a1f", "score": "0.5524436", "text": "private static int getRandomPages() {\n\t\treturn gen.nextInt(500);\n\t}", "title": "" }, { "docid": "a8e9103d2d06e94600a7d55013f886d0", "score": "0.55220336", "text": "protected static int gerar_valor_aleatorio() {\r\n Random random = new Random();\r\n return random.nextInt(5000);\r\n }", "title": "" }, { "docid": "3758857707ee4050dd2ab3d5fcb958bf", "score": "0.5508216", "text": "public static int Rolling(){ \n /* Generate Random numbers in a range to simulate dice rolling*/\n int r;\n Random randomGenerator = new Random();\n int randomInt = randomGenerator.nextInt(6);// range[0,5 ]\n r = 1+randomInt; \n return r;\n }", "title": "" }, { "docid": "7f9f836183c88bbaf167f84a37516ba4", "score": "0.5488767", "text": "public static double targetSales(double desSalary){\n //double desiredSalary = double baseSalary + computeCommission;\n \n double baseSalary = 5000.0;\n double salesCounter = 0.00;\n double commissionRate = 0.00;\n \n \n while(desSalary != (int)((baseSalary+commissionRate)*100)/100.0){\n salesCounter += 0.01; \n commissionRate = computeCommission(salesCounter);\n if (desSalary < baseSalary + commissionRate)\n break;\n \n }\n return (int)(salesCounter * 100)/100.0;\n \n }", "title": "" }, { "docid": "e2e5a2de2955ee0610cf5fb4116ef3db", "score": "0.5483053", "text": "private int rand(int min, int max)\r\n {\r\n return (int)(Math.random() * (max - min) + min);\r\n }", "title": "" }, { "docid": "25344d6cfce7531d6ba8f2866d185c09", "score": "0.5482805", "text": "public static int generarAleatorioRango(int min, int max){\n int num = ThreadLocalRandom.current().nextInt(min, max + 1);\r\n return num;\r\n }", "title": "" }, { "docid": "1adda6ae25e6b0542f394ba7f7922abd", "score": "0.547898", "text": "private static int getRandomBetween(int a, int b) {\n\t\tint x = rnd.nextInt();\n\t\tif (x < 0)\n\t\t\tx = -x;\n\t\treturn x % (b - a + 1) + a;\n\t}", "title": "" }, { "docid": "82d5c0e6fdcadf7f2502df8aee24312b", "score": "0.5474898", "text": "public int getRandomNumber()\n {\n return 1 + (int)(Math.random() * 100);\n }", "title": "" }, { "docid": "7c91345798784243d19412970e049101", "score": "0.54683393", "text": "public int spawnRandomPowerUp(){\r\n int n=(int)(Math.random()*100);\r\n for(int i=0,j=0;j<9;j++){\r\n if(n<i+pUpSpawnRate[j]){\r\n return j;\r\n }\r\n i+=pUpSpawnRate[j];\r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "091d560cfde3ce9adbae7c3f6d5298bb", "score": "0.5440725", "text": "private int generateRandom() {\n Double randomValue = Math.random() * 50 - 1;\n return randomValue.intValue();\n }", "title": "" }, { "docid": "41e9c1db5c0ec09c3b7685c61397daa9", "score": "0.5437609", "text": "public static void TengoMiedo(){\n //tengo miedo es para salir de la batalla a cambio de un poco de oro\n int numAleatorio9;\n // variable local\n Random aleatorionum9 = new Random();\n\tnumAleatorio9=(lvl*2) + (5+aleatorionum9.nextInt(5));\n if(oro-numAleatorio9<0){\n System.out.println(\"No tienes suficiente oro para huir\");\n }else{\n oro= oro-numAleatorio9;\n System.out.println(\"Tu oro se ha reducido, ahora tienes: \"+oro);\n clave=0;\n //forma en la que se le reduce el oro por salir de la batalla\n }//termina el else\n \n}", "title": "" }, { "docid": "fc361b4a02ef9ae804a4d555224c03d4", "score": "0.5437285", "text": "public int randomizeTresure()\n {\n int x=this.generator.nextInt(30000)+1;\n return x;\n }", "title": "" }, { "docid": "d2704f151946abd2814fb25a6946429c", "score": "0.5434167", "text": "public void generatePaymentCode(){\n Random rand = new Random();\n paymentCode = rand.nextInt(10000);\n }", "title": "" }, { "docid": "27b27ad21662214fa7ee908ce9a1f37b", "score": "0.54198056", "text": "public static int getRandomNumber() {\n return faker.number().numberBetween(10000, 99999);\n }", "title": "" }, { "docid": "4f9e0c1207c2899125cb6862e49d97be", "score": "0.54182404", "text": "@Override\r\n\tpublic int stonespot() \r\n\t{\r\n\t\tRandom random = new Random();\r\n\t\tint temp = random.nextInt(((50-25) +1) +0);\r\n\t\treturn temp;\r\n\t}", "title": "" }, { "docid": "49985d80b40c4c819ec7150b82bb5687", "score": "0.5414215", "text": "public void randomizeRain() {\n \tif(this.isRaining) {\n \t\tdaysUntilStopsRaining--;\n \t\tthis.isRaining = daysUntilStopsRaining > 0;\n \t} else {\n \t\tthis.isRaining = rand.nextDouble() < rainingProb;\n \t\tif(this.isRaining) {\n \t\t\tdaysUntilStopsRaining = rand.nextInt(50);\n \t\t}\n \t}\n \t\n }", "title": "" }, { "docid": "6beef4cad1665385aff6cbf80bef71e7", "score": "0.54018193", "text": "private double randomNumber(double min, double max) {\n\t\treturn min + Math.random() * (max - min);\n\t}", "title": "" }, { "docid": "b5b162f9c44aef9553e7f48746dc4f0e", "score": "0.53959733", "text": "public void werp(){\n Random r= new Random();\n ogen = r.nextInt(6) + 1;\n }", "title": "" }, { "docid": "b320b2baf0794a4cf7c42e3ecd8b7b77", "score": "0.5386165", "text": "public void randomizePrice()\n {\n currentPrice = (int)(((maxPrice - minPrice) * priceVariance.nextFloat()) + minPrice);\n }", "title": "" }, { "docid": "7b3be1940b347142e81dbf81733b8fb4", "score": "0.53826326", "text": "int creaNumeroCasuale (){\n Random random = new Random();\n return random.nextInt(11);// crea numeri da 0 a 10\n }", "title": "" }, { "docid": "351c5b3d87cb6262ac9489e9102b4024", "score": "0.53761894", "text": "public void setSalary(int salary) {\n\t\tthis.salary = Money.of(salary, Monetary.getCurrency(\"EUR\"));\n\t}", "title": "" }, { "docid": "5985219a2650f079631a1f685c705431", "score": "0.5373438", "text": "private static double createSubNormalNumber(UniformRandomProvider rng, int drop) {\n return Double.longBitsToDouble(rng.nextLong() >>> (12 + drop));\n }", "title": "" }, { "docid": "d0ad98cce615199c802b6f3b0ee74071", "score": "0.53687245", "text": "public static void rollGoodBad() {\n\t\tperson = ((int) (Math.random() * (5 - 1))) + 1;\n\t}", "title": "" }, { "docid": "653e2b79fdc968fcd036f6e887eff6ac", "score": "0.53626055", "text": "public static int generarAleatorio(int l){\n java.util.Random X = new java.util.Random();\r\n int num=X.nextInt(l); \r\n return num;\r\n }", "title": "" }, { "docid": "d6ff1240fcb75dce895a75220765edad", "score": "0.5361873", "text": "private Person generateRandomPerson() {\n if (rnd.nextInt(STUDENTS_PER_PROF) == 1) {\r\n return generateRandomProfessor();\r\n } else {\r\n return generateRandomStudent();\r\n }\r\n }", "title": "" }, { "docid": "5b6febd9f91acb3c68bb1896f730a326", "score": "0.53586125", "text": "private int getRandomValue(int min, int max) {\n return random.nextInt(max-min+1)+min;\n }", "title": "" }, { "docid": "795b4c609d0f829c0beb713b7613461f", "score": "0.53511983", "text": "public void initSSColor(int range){\n\n\tsetSSColor((int) (Math.random() * range) % range);\n\n}", "title": "" }, { "docid": "77c641ed8d154187d88891e4db88d134", "score": "0.5348063", "text": "private void setBaseSalary() {\r\n\t\tthis.baseSalary = contract.getBaseSalaryPerYear() / 14;\r\n\t}", "title": "" }, { "docid": "abd7a4c4918ab67a8532979231129109", "score": "0.5347968", "text": "private int genNumber() {\r\n\r\n\t\treturn (int) (Math.random() * 500);\r\n\r\n\t}", "title": "" }, { "docid": "5e5f36a38266333b0f0685cc951138b2", "score": "0.534699", "text": "private static double randomInRange(double min, double max) {\n\t double range = max - min;\n\t double scaled = random.nextDouble() * range;\n\t double shifted = scaled + min;\n\t \n\t return shifted; \n\t}", "title": "" }, { "docid": "6fa22c989d8f0528ba7c4223dcea0c05", "score": "0.5336113", "text": "private void assignRandomCargoLoad() {\n\t\tdouble ran_num;\n\t\tdouble third = 1.0/3.0;\n\t\tran_num = Math.random();\n\t\tif(ran_num < third)\n\t\t\tpossible_cargo_load = 50;\n\t\telse if(ran_num > third && ran_num < 2*third)\n\t\t\tpossible_cargo_load = 70;\n\t\telse\n\t\t\tpossible_cargo_load = 90;\n\t}", "title": "" }, { "docid": "503ded72fecfbe612b60ca20130860e7", "score": "0.53337085", "text": "public void showSalary() {\n final int baseSalary = 200;\n final double fixedPercentage = 0.09;\n double workerSalary;\n double commission;\n\n System.out.printf(\"The salaries are:%n%n\");\n for (int worker = 0; worker < sales.length; worker++) {\n commission = sales[worker] * fixedPercentage;\n workerSalary = baseSalary + commission;\n newSalary.add(workerSalary);\n\n System.out.printf(\"Worker %2d: %3.2f%n\", worker + 1, workerSalary);\n }\n }", "title": "" }, { "docid": "e3fd118eec701fa7c6a03c67917589f2", "score": "0.53286624", "text": "public static void main(String[] args) {\n int max = 1000;\n int min = 100;\n int rangeSum = max - min + 1;\n int numberMarks = 250 - 25 + 1;\n int randInt = ((int) (Math.random() * rangeSum) + min);\n List<Integer> marks = new ArrayList<>();\n for (int i = 0; i < 10; i++) {\n marks.add(((int) (Math.random() * numberMarks) + 5));\n }\n marks.add(250);\n\n List<Integer> sol = findStamps(1000, marks);\n System.out.println(\"SOLUTION : \" + sol);\n System.out.println(\"SUM : \" + 1000);\n System.out.println(\"LIST : \" + marks);\n System.out.println(sol.stream().mapToInt(Integer::intValue).sum());\n }", "title": "" }, { "docid": "99271de14bb0378a2e38bec80a205480", "score": "0.53233755", "text": "public int spawnPlantsY(){\n return y=((int)(Math.random()* 25));\n }", "title": "" }, { "docid": "005eab6d238f67ba05fabe95f4496d9b", "score": "0.5322759", "text": "protected static int generateRangedValue(final int theLow, final int theHigh) {\n return theLow + MY_RANDOM.nextInt(theHigh-theLow + 1);\n }", "title": "" }, { "docid": "272257158100cf58fb910a44156d92ca", "score": "0.5321925", "text": "public void spawnRandomAmount() {\r\n Random rand = new Random();\r\n int amount = rand.nextInt(7) + 1;\r\n assert amount>0: \"random amount = \" + amount;\r\n for (int i = 1 ; i < amount ; i++) { \r\n spawn(); \r\n }\r\n }", "title": "" }, { "docid": "4d57d8a73b9e74264b7538745e07e883", "score": "0.5321498", "text": "int genererInt(int borneInf, int borneSup)\n {\n Random random = new Random();\n int nb;\n\n nb = borneInf + random.nextInt(borneSup - borneInf +1);\n\n return nb;\n }", "title": "" }, { "docid": "abb9dca728829905fc4fe81644667fff", "score": "0.53143746", "text": "public int determineRoll(){\n Random rand = new Random();\n int chance;\n chance = rand.nextInt(this.determineRoll());\n return chance;\n }", "title": "" }, { "docid": "476dd45afaf5988f3e6739ab35e01217", "score": "0.53111744", "text": "private int breed(){\n int births = 0;\n if(canBreed() && rand.nextDouble() <= BREEDING_PROBABILITY){\n births = rand.nextInt(MAX_LITTER_SIZE) + 1;\n }\n return births;\n }", "title": "" }, { "docid": "8899f520b3a539a5039944d0b9149a6e", "score": "0.53014106", "text": "public int generateRandomIntegerForVitals(int minValue, int maxValue) {\n\n return ThreadLocalRandom.current().nextInt(minValue, maxValue);\n\n // jo.put(\"SPO2\", ThreadLocalRandom.current().nextDouble(minSpo2, maxSpo2));\n // jo.put(\"temperature\", ThreadLocalRandom.current().nextDouble(minTemp,\n // maxTemp));\n // jo.put(\"pulse rate\", ThreadLocalRandom.current().nextInt(minPulse,\n // maxPulse));\n // return jo.toJSONString();\n }", "title": "" }, { "docid": "da04b9237ef208e6fe2c0d92f4fc709b", "score": "0.5298396", "text": "public static int[] f_age_people(int n_people) {\n int[] age_people = new int[n_people];\r\n for (int i = 0; i < n_people; i = i + 1) {\r\n age_people[i] = (int) Math.floor((Math.random() * 80) + 1);\r\n }\r\n return age_people;\r\n }", "title": "" }, { "docid": "6e0fe1b2ec63a539f588271890c63adc", "score": "0.52979046", "text": "private int randInt(int max, int min) { //random number generator, for building height and color, adapted from Stack Overload\r\n\t\t Random rand = new Random();\r\n\t\t int randomNum = rand.nextInt((max - min) + 1) + min; //nextInt is normally exclusive of the top value, so add 1 to make it inclusive\r\n\t\r\n\t\t return randomNum;\r\n\t}", "title": "" }, { "docid": "5cd02553fcb0573cc6760b94c24bf1c2", "score": "0.5293652", "text": "private static int generateYear() {\n return random.nextInt(119) + 1900;\n }", "title": "" }, { "docid": "0dc34ded0753ad9675ce9b526f3769cd", "score": "0.52902335", "text": "public int rollDice(){\n /* soln from stack overflow\n http://stackoverflow.com/questions/35488619/how-to-get-a-random-number-in-a-range-using-math-random\n */\n int min = 1;\n int max = this.maxValue;\n int randomNum = (int)(Math.random()*(max)) +1 ; /* plus one to make it [1-max] rather than [0-max)*/\n return randomNum;\n }", "title": "" }, { "docid": "a75cf120bca6aae6c75c495df673e225", "score": "0.52894235", "text": "public int spawnPlantsX(){\n return x=((int)(Math.random()* 25));\n }", "title": "" }, { "docid": "3f840eee694c633240cd605f8d0a0640", "score": "0.52893984", "text": "public static int getRandomNumber(int bound) {\n \tRandom rand = new Random();\r\n \treturn rand.nextInt(Math.max(Math.abs(bound), 1));\r\n\t}", "title": "" }, { "docid": "a34ac54a82aafe033313cd656f9f7b9c", "score": "0.5289347", "text": "public static int rnd(int end_) \n {\n return rnd(0, end_);\n }", "title": "" }, { "docid": "ca40c6ecc930b84da2db12dbff9efd18", "score": "0.52855796", "text": "public void salary(int input)\n {\n System.out.println(\"IT Faculty: \"+(input+5000)); \n }", "title": "" }, { "docid": "8663df70593e61d5b20400219b75a471", "score": "0.52810323", "text": "public int generateRandom(int max, int min){\n\tif(max == min)return max;\n\tint size = rdm.nextInt(max-min);\n\treturn size+min;\n}", "title": "" }, { "docid": "7a62a8aeb5860bdd45a3b8511238f5f3", "score": "0.5280769", "text": "private void generatePopulation(int max, int min){\n for(int i = 0; i<data.getMapSize(); i++){\n for(int j = 0; j<data.getMapSize(); j++) {\n field[i][j].population.setAmount(generator.nextInt(max)+min);\n }\n }\n }", "title": "" }, { "docid": "1c690f0819b4a834ad9732c56e49dbf8", "score": "0.5262089", "text": "public int getRandomInRange(int start, int end)\n\t{\n\t\treturn start + random.nextInt(end-start+1);\n\t}", "title": "" }, { "docid": "69c4b732d5d8bb2586439f98c3147dbf", "score": "0.5247627", "text": "private int initRandomNumber() {\n random = (int) (Math.random() * 100);\n return random;\n }", "title": "" }, { "docid": "e86f788e7c95fa1d5f26c555cef7caef", "score": "0.5243844", "text": "@Override\n public boolean land() {\n double probability = getLandingExplosionFactor()*((getCargoWeight()+(double) getWeight())/getMaxWeight());\n if(randomNumberGenerator(100) >= (randomNumberGenerator(100) * probability)){\n System.out.println(\"Successful Landing!!!\");\n return true;\n }else{\n\n System.out.println(\"Landing has failed..Boom\");\n return false;\n }\n }", "title": "" }, { "docid": "51867a7e8c5668872d382becda1e5b27", "score": "0.52434003", "text": "public static int Roll()\r\n{\r\n int Low = 1;\r\n int High = 6;\r\n int Roll = generator.nextInt (High - Low) + Low;\r\n\r\n return Roll;\r\n//I think I could add this to the dice class instead of having it in here\r\n}", "title": "" }, { "docid": "6259fece364966d8452c0c54dd9dbf10", "score": "0.5242931", "text": "private int randomNumber(int min, int max) {\n Random random = new Random();\n return random.nextInt(max - min + 1) + min;\n }", "title": "" }, { "docid": "eaf39ce43caa5e4462bdccf448153bd5", "score": "0.5242085", "text": "int getRandomDamage(int effectiveAbilityValue);", "title": "" }, { "docid": "fbad1b003c2c6ea088d1e754310f09ea", "score": "0.5239632", "text": "public static void main(String[] args) {\r\n\r\n long[] Salary = {120000, 90000 , 55000, 110000, 99000};\r\n\r\n for (long eachSalary : Salary) {\r\n if (eachSalary > 100000) {\r\n System.out.println(eachSalary);\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }", "title": "" } ]
a7d216db0766fdfd2acd0e44f84c76ae
This function is called periodically during teleoperated mode.
[ { "docid": "ec1f3061fd55605f57ff8e10e187a6fe", "score": "0.7347114", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tOI.refreshAll();\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "title": "" } ]
[ { "docid": "4fdf8a5e743480f4b350e4aa6c3c2472", "score": "0.7996017", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n drive.updateTeleop();\n sensor.updateTeleop();\n }", "title": "" }, { "docid": "1203ce6d3bc4c60706412fcfac74e8c2", "score": "0.78659916", "text": "@Override\n public void teleopPeriodic() {\n }", "title": "" }, { "docid": "1203ce6d3bc4c60706412fcfac74e8c2", "score": "0.78659916", "text": "@Override\n public void teleopPeriodic() {\n }", "title": "" }, { "docid": "0a1e21173695bebc31a0e25a7fa5c0b3", "score": "0.78559923", "text": "public void teleopPeriodic() {\n \tteleop.teleopPeriodic();\n }", "title": "" }, { "docid": "77dd2a40582206fed4d66e3e3c25cf17", "score": "0.7772544", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "77dd2a40582206fed4d66e3e3c25cf17", "score": "0.7772544", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "77dd2a40582206fed4d66e3e3c25cf17", "score": "0.7772544", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "77dd2a40582206fed4d66e3e3c25cf17", "score": "0.7772544", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "2aa08711212c7508e737a1ddc3bce9a5", "score": "0.77198", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "title": "" }, { "docid": "267a4f5da4592cfff64615e049e8004e", "score": "0.77004486", "text": "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "title": "" }, { "docid": "a387c26d1ff5e0da82bf04e8d1c71520", "score": "0.76927036", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t\tupdateLedState();\n\t\t//SmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\t\tSmartDashboard.putNumber(\"Climber Current Motor 1\", Robot.climber.climberTalon.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"Climber Current motor 2\", Robot.climber.climberTalon2.getOutputCurrent());\n\t\t//visionNetworkTable.getGearData();\n\t//\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\n\t\tif(Robot.debugging){\t\t\t\n\t\t\tSmartDashboard.putNumber(\"Shooter1RPM Setpoint\", shooter.shooter1.getSetpoint());\n\t \tSmartDashboard.putNumber(\"Intake Pivot Encoder Position\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\n\t\t\tSmartDashboard.putNumber(\"Gear Manipulator Setpoint\", gearManipulator.gearManipulatorPivot.getSetpoint());\n\t\t}\n\t\t//\tvisionNetworkTable.getGearData();\n\t\t//visionNetworkTable.getHighData();\n\t}", "title": "" }, { "docid": "b1e9f00c1d73eb026af9cf1be2e8b77e", "score": "0.7633275", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t}", "title": "" }, { "docid": "b3f0eeea230c6e544865f96397f097ca", "score": "0.7630528", "text": "public void teleopPeriodic() {\r\n }", "title": "" }, { "docid": "54b6f6cc2cbcd8e311fe7706d685ed4b", "score": "0.75934744", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }", "title": "" }, { "docid": "132fb6a88fc006a7de2ff43fce8c63ac", "score": "0.7574412", "text": "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n OI.poll();\r\n }", "title": "" }, { "docid": "bb415029c13742b1f23f7236a7d530d2", "score": "0.7569527", "text": "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "title": "" }, { "docid": "4e3addca65351910191cff47c7a1999b", "score": "0.7529546", "text": "public void teleopPeriodic() {\n driverScreen.updateLCD();\n }", "title": "" }, { "docid": "62084365730646509d326eab0cbbe41c", "score": "0.7523893", "text": "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "f1200f507f805f10add642cfbc5a5864", "score": "0.75180805", "text": "@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n //Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "923b6a30e89fb643f267993ec6a199b6", "score": "0.7407208", "text": "public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "7411ca75bbde1658282a4fed8025ae1a", "score": "0.7353442", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }", "title": "" }, { "docid": "69fd6f09f42d6369cdb94b4890ea53cd", "score": "0.7348903", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "69fd6f09f42d6369cdb94b4890ea53cd", "score": "0.7348903", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "69fd6f09f42d6369cdb94b4890ea53cd", "score": "0.7348903", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "title": "" }, { "docid": "2761433c0c825a77c61db460828274f8", "score": "0.72965884", "text": "public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }", "title": "" }, { "docid": "f09dda1d93c00e4a0acac9dc42625fb7", "score": "0.727381", "text": "@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "title": "" }, { "docid": "cd0904107425594ba63f662d7fe2b814", "score": "0.72588474", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n if(switchesSubsystem.readyToFire()) {\n \t\tSmartDashboard.putString(\"DB/String \"+0, \"ready to fire\");\n \t} else {\n \t\tSmartDashboard.putString(\"DB/String \"+0, \"reloading\");\n \t}\n \n SmartDashboard.putString(\"DB/String \"+1, \"Wound switch: \" + switchesSubsystem.isBarDown());\n \tSmartDashboard.putString(\"DB/String \"+2, \"Taut switch: \" + switchesSubsystem.isTaut());\n \tSmartDashboard.putString(\"DB/String \"+3, \"Fired switch: \" + switchesSubsystem.isLauncherFired());\n }", "title": "" }, { "docid": "459eae0f5c485a74cfdb43b9cdfd8a99", "score": "0.7257782", "text": "@Override\n public void teleopPeriodic() {\n CommandScheduler.getInstance().run();\n OI.getInstance().getPilot().run();\n SmartDashboard.putNumber(\"gyro\", getRobotContainer().getTecbotSensors().getYaw());\n SmartDashboard.putBoolean(\"isSpeed\", getRobotContainer().getDriveTrain().getTransmissionMode() == DriveTrain.TransmissionMode.speed);\n SmartDashboard.putString(\"DT_MODE\", getRobotContainer().getDriveTrain().getCurrentDrivingMode().toString());\n SmartDashboard.putNumber(\"x_count\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n }", "title": "" }, { "docid": "9c4acd62bbb5b611d85d45da178862a9", "score": "0.7117201", "text": "public void teleopPeriodic() \n {\n // NIVision.Rect rect = new NIVision.Rect(10, 10, 100, 100);\n /*\n NIVision.IMAQdxGrab(session, frame, 1);\n //NIVision.imaqDrawShapeOnImage(frame, frame, rect,\n // DrawMode.DRAW_VALUE, ShapeMode.SHAPE_OVAL, 0.0f);\n */\n \n //cam.getImage(frame);\n //camServer.setImage(frame);\n \n //CameraServer.getInstance().setImage(frame);\n \n if(verticalLift.limitSwitchHit())\n verticalLift.resetEnc();\n \n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "b12c32c2bd003afc67a9173c6d5607ae", "score": "0.7102494", "text": "@Override\n public void teleopPeriodic()\n {\n commonPeriodic();\n }", "title": "" }, { "docid": "8a1ba0dda3bd880b9bdbe731635481fd", "score": "0.7066945", "text": "public void teleopPeriodic() {\n if (m_tpFirstRun) {\n System.out.println(\"Default teleopPeriodic() method... Override me!\");\n m_tpFirstRun = false;\n }\n }", "title": "" }, { "docid": "e0bf408cd3dbfd7a070d2d82ed0d2424", "score": "0.7036132", "text": "public void teleopPeriodic() {\n \t\n \twhile (isOperatorControl() && isEnabled()) {\n \t\tdebug();\n \t\tsmartDashboardVariables();\n \t\t//driver control functions\n \t\tdriverControl();\n \t//state machine\n \tterrainStates();\n \t//this function always comes last\n \t//armSlack();\n Timer.delay(0.005);\t\t// wait for a motor update time\n }\n \tTimer.delay(0.005);\n }", "title": "" }, { "docid": "30922afcb61757a9076c1c11be6cc767", "score": "0.69944423", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n // ros_string = workingSerialCom.read();\n // yavuz = workingSerialCom.StringConverter(ros_string, 2);\n // Inverse.Inverse(yavuz);\n\n // JoystickDrive.execute();\n\n\n\n // ros_string = workingSerialCom.read();\n // alt_yurur = workingSerialCom.StringConverter(ros_string, 1);\n // robot_kol = workingSerialCom.StringConverter(ros_string, 2);\n Full.Full(yavuz);\n \n }", "title": "" }, { "docid": "192b8534f78ff86eb9981c92afdf38a7", "score": "0.6978822", "text": "public void teleopPeriodic() {\n\t\t// resetAndDisable();\n\t\tupdateDashboard();\n\t\tLogitechJoystick.controllers();\n\t\tDrivetrain.arcadeDrive();\n\t\tShooterAngleMotor.angleShooter();\n\t\tBallShooter.shootBalls();\n\t\tSonicSensor.updateSensors();\n\t\t\n\t\t//if(LogitechJoystick.rightBumper2)\n\t\t\t//{\n\t\t\t\t//LowBar.makeArmStable();\n\t\t\t//}\n\n\t}", "title": "" }, { "docid": "f634c173ba8c10fa86528ce47db6c01e", "score": "0.6964261", "text": "@Override\n public void teleopPeriodic() {\n // drive.DrivePeriodic();\n controllerMap.controllerMapPeriodic();\n // intake.IntakePeriodic();\n // climb.ClimbPeriodic();\n\n }", "title": "" }, { "docid": "45596cbe70894bffb7e809ce1c3812b3", "score": "0.6962545", "text": "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n// if (oi.driveStick.getRawButton(4)) {\n// System.out.println(\"Left Encoder Distance: \" + RobotMap.leftDriveEncoder.getDistance());\n// System.out.println(\"RightEncoder Distance: \" + RobotMap.rightDriveEncoder.getDistance());\n// }\n\n }", "title": "" }, { "docid": "740397f9b019d7deaa413ed5de1a34be", "score": "0.68095905", "text": "public void teleopPeriodic() {\n \t//getInstance().run();;\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickRight); //This line drives the robot using the values of the joystick and the motor controllers selected above\n \tScheduler.getInstance().run();\n\t\n }", "title": "" }, { "docid": "acadc72f1dc87663edf779572c86f1d7", "score": "0.6768093", "text": "@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "title": "" }, { "docid": "9e69aefd8be3900716d672f4ec0038bb", "score": "0.6744699", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tSmartDashboard.putBoolean(\"Max Intake Extension: \", RobotMap.intakeLifted.get());\n\t\tSmartDashboard.putBoolean(\"Max Lift Extension:\", RobotMap.isAtTop.get());\n\t\tSmartDashboard.putBoolean(\"Min Lift Extension:\", RobotMap.isAtBottom.get());\n\t\tDriveTrain.driveWithJoystick(RobotMap.stick, RobotMap.rd); // Drive\n\t\tTeleOp.RaiseLift(RobotMap.liftTalon, RobotMap.controller); // Raise lift\n\t\tif(RobotMap.controller.getRawAxis(RobotMap.lowerLiftAxis) >= 0.2) {\n\t\tTeleOp.LowerLift(RobotMap.liftTalon, RobotMap.controller);\n\t\t}\n\t\tTeleOp.DropIntake(RobotMap.controller, RobotMap.intakeLifter);\n\t\tTeleOp.spinOut(RobotMap.intakeVictorLeft, RobotMap.controller);\n\t\t//TeleOp.spinnySpinny(RobotMap.intakeVictorLeft, RobotMap.stick);\n\t}", "title": "" }, { "docid": "50eb19143a054105d097b41f343ef8f6", "score": "0.67252606", "text": "@Override\n public void teleopPeriodic() {\n try {\n mDriveController.update();\n mOperatorController.update();\n driverControl();\n \n } catch (Throwable t) {\n CrashTracker.logThrowableCrash(t);\n throw t;\n }\n \n }", "title": "" }, { "docid": "e7ee34454fdedb86415ed0c037335f85", "score": "0.6689572", "text": "@Override\n public void autonomousPeriodic() {\n \n }", "title": "" }, { "docid": "23654042c97e4a2efcba6fbdf9c30c0f", "score": "0.6683196", "text": "@Override\n public void autonomousPeriodic() {\n\n }", "title": "" }, { "docid": "af2d4fef9f2aaf963b8fa85cf6ca2b0f", "score": "0.6620552", "text": "@Override\n\tpublic void testPeriodic() {\n\t\tLiveWindow.run();\n\t\tisAutonomous = false;\n\t\tisTeleoperated = true;\n\t\tisEnabled = true;\n\t}", "title": "" }, { "docid": "69425d6f0bd69be53e8529d82c61b6bd", "score": "0.65880865", "text": "@Override\n public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "69425d6f0bd69be53e8529d82c61b6bd", "score": "0.65880865", "text": "@Override\n public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "69425d6f0bd69be53e8529d82c61b6bd", "score": "0.65880865", "text": "@Override\n public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "3be51c3b851e3366aba97cc9beb2a138", "score": "0.6550658", "text": "@Override\n public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "f128f45829a00d84c10dd162eedb3ba8", "score": "0.6529105", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tif (state.equals(\"teleop\")) {\n\t\t\tlastState = \"teleop\";\n\t\t}\n\t\tstate = \"teleop\";\n\n\t\tif (lastState.equals(\"auton\")) {\n\t\t\tNetworkTables.getControlsTable().putBoolean(\"auton\", false);\n\t\t\t\n\t\t\t//Changes the control Mode back to PercentVbus\n\t\t\t//Should only run once - first interation of teleop\n\t\t\t//And ends auton if running\n\t\t\tif(autonomousCommand != null){\n\t\t\t\tautonomousCommand.cancel();\n\t\t\t}\n\t\t\tActuators.getLeftDriveMotor().changeControlMode(TalonControlMode.PercentVbus);\n\t\t\tActuators.getLeftDriveMotor().set(Constants.MOTOR_STOP);\n\t\t\tActuators.getRightDriveMotor().changeControlMode(TalonControlMode.PercentVbus);\n\t\t\tActuators.getRightDriveMotor().set(Constants.MOTOR_STOP);\n\t\t}\n\n//\t\tNetworkTables.putStream(Gamepad.primary.getX() || Gamepad.secondary.getX());\n\t\t/*\n\t\t * Primary Controllers Controls\n\t\t */\n\t\t// TODO: confirm right trigger forward, left trigger reverse\n\t\t// Drive controls\n\t\tDrive.drive(-Gamepad.primary.getLeftX(), Gamepad.primary.getTriggers()); \n\t\tDrive.shift(Gamepad.primary.getA(), Gamepad.primary.getY()); // shifting with A low gear and Y high gear\n\t\tDrive.shiftToggle(Gamepad.primary.getLB());\n\t\tDrive.crab(Gamepad.primary.getDPadLeft(), Gamepad.primary.getDPadRight());\n\t\t\n//\t\tif (Gamepad.primary.getDPadLeft()){\n//\t\t\tDrive.goingLeft = true;\n//\t\t\tDrive.crab();\t\t\n//\t\t}else if( Gamepad.primary.getDPadRight()){\n//\t\t\tDrive.goingLeft = false;\n//\t\t\tDrive.crab();\t\t\t\n//\t\t}else if (Drive.crabState > 0){\n//\t\t\tDrive.crab();\n//\t\t}\n\n\t\t\n\t\t// Climb controls\n\t\tClimb.climbStopPrimary(Gamepad.primary.getDPadUp()); // runs climbStop using left on the DPad - Primary\n\t\t// Climb.climbSafetyTogglePrimary(Gamepad.primary.getBack()); //toggles safety if pressed 3 times\n\n\t\t// Gear controls\n\t\tScore.dispenseGear(Gamepad.primary.getB() || Gamepad.secondary.getDPadUp());\n\n\t\t/*\n\t\t * Secondary Controllers Controls\n\t\t */\n\t\t// Intake controls\n\t\tIntake.intake(Gamepad.secondary.getRightButton()); // runs intake with clicking in the Right Joystick on second controller\n\t\tIntake.intakeSpeed(Gamepad.secondary.getRightY()); // Override Y Button\n\t\tIntake.intakeDirection(Gamepad.secondary.getRightX()); // Override Y Button\n\t\tIntake.intakeJam(Gamepad.secondary.getLB()); // Runs the unjamming procedure for a max of 3 seconds per press\n\t\t// Intake.intakeSafety(Gamepad.secondary.getStart()); //Have to press 3 times to toggle the safety\n\t\tIntake.intakeIn(Gamepad.secondary.getA(), Gamepad.secondary.getB(), Gamepad.secondary.getX()); // Toggles Intake running into the robot at full speed\n\t\tIntake.intakeRun(Gamepad.secondary.getRB()); // Runs all stuff for intake in(conveyor and intake motor)\n//\t\tIntake.intakeOut(Gamepad.secondary.getB());\n\t\t// Climb controls\n\t\tClimb.climbStopSecondary(Gamepad.secondary.getDPadRight()); // runs climbStop using left on the DPad - Secondary\n\t\tClimb.climbStartSecondary(Gamepad.secondary.getDPadLeft()); // runs climbStart using right on the DPad Secondary\n\t\tClimb.climbSafetyToggleSecondary(Gamepad.secondary.getBack()); // Have to press 3 times to toggle the safety\n\n\t\t// Gear controls\n\t\t// Score.gearLock(Gamepad.secondary.getStart(),\n\t\t// Gamepad.secondary.getBack());\n\n\t\t// Outtake Controls\n\t\t// Score.outtakeToggle(Gamepad.secondary.getLB());\n\n\t\t// Conveyor Controls\n\n\t\tScore.conveyor(Gamepad.secondary.getLeftButton()); // runs conveyor with clicking in the Left Joystick on second controller\n\t\tScore.conveyorSpeed(Gamepad.secondary.getLeftY());\n\t\tScore.conveyorDirection(Gamepad.secondary.getLeftX());\n\t\tScore.conveyorIn(Gamepad.secondary.getY());\n\n\t\t// Sweeper\n\t\t// Sweeper.sweeperMotion(Gamepad.secondary.getTriggers());\n\n\t\tDash.driveMode();\n\n\t\tSmartDashboard.putString(\"Controls Table\", NetworkTables.getControlsTable().getKeys().toString());\n\t\tSmartDashboard.putString(\"Stream\", NetworkTables.getControlsTable().getString(\"stream\", \"nothing\"));\n\n\t}", "title": "" }, { "docid": "eeecfa73a1f7b4039b6cd61a163b625c", "score": "0.65200746", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\t\n\t\t\n\t\t\n//\t\tSmartDashboard.putBoolean(\"Alliance_R\", alliance_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Alliance_L\", alliance_L_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"Scale_R\", R_scaleState);\n//\t\tSmartDashboard.putBoolean(\"Scale_L\", L_scaleState);\n//\t\tSmartDashboard.putBoolean(\"oppisite_R\", opposite_R_SwitchState);\n//\t\tSmartDashboard.putBoolean(\"opposite_L\", opposite_L_SwitchState);\n//\t\t\n//\t\tSmartDashboard.putNumber(\"right Vel\", chassis.rightMagVelocity());\n//\t\tSmartDashboard.putNumber(\"left Vel\", chassis.leftMagVelocity());\n//\t\tSmartDashboard.putNumber(\"right Pos\", chassis.rightMagPosition());\n//\t\tSmartDashboard.putNumber(\"left Pos\", chassis.leftMagPosition());\n\t\tSmartDashboard.putData(\"gyro\", chassis.navx);\n\t\tSmartDashboard.putData(\"Chassis\",chassis);\n\t\tSmartDashboard.putBoolean(\"shift is high\", chassis.shiftIsHigh);\n\t\tSmartDashboard.putNumber(\"Arm Pot Value\", Robot.arm.getArmPot());\n\t\tSmartDashboard.putNumber(\"Elevator Encoder\", elevator.getElevatorMagPosition());\n\t\t\n//\t\tSmartDashboard.putNumber(\"TurnPID\", chassis.turnSpeed.getSpeed());\n//\t\tSmartDashboard.putData(\"TurnController\", chassis.turnController);\n//\t\tSmartDashboard.putData(\"Turn\",new Turn());\t\t\n//\t\tSmartDashboard.putNumber(\"leftDistPID\", chassis.leftDistanceSpeed.getSpeed());\n//\t\tSmartDashboard.putNumber(\"rightDistPID\", chassis.rightDistanceSpeed.getSpeed());\n//\t\tSmartDashboard.putData(\"right drive controller\", chassis.rightDistanceController);\n//\t\tSmartDashboard.putData(\"left drive controller\", chassis.leftDistanceController);\t\t\t\n//\t\tSmartDashboard.putData(\"test\",new drivefrompoint());\n\t\tSmartDashboard.putData(\"Arm PID\", arm.armPID);\n\t\tSmartDashboard.putData(\"Elevator PID\", elevator.elePID);\n\t\tSmartDashboard.putData(\"Elevator Subsystem\", elevator);\n\t\tSmartDashboard.putData(\"Hold Climb Command\", new LowerElevatorManual(0.1));\n\t\t\n\t\tSmartDashboard.putNumber(\"intake lead current\", Robot.intake.intakeLeader.getOutputCurrent());\n\t\tSmartDashboard.putNumber(\"intake follow current\", Robot.intake.intakeFollower.getOutputCurrent());\n\t\t\n\t\tSmartDashboard.putNumber(\"arm current\", arm.arm.getOutputCurrent());\n\t\t//SmartDashboard.putBoolean(\"Upper Elevator Limit Switch\", elevato);\n\t\t\n\t\tScheduler.getInstance().run();\n\t\t\n\t\t\n\t\tif(!elevator.getBottomElevatorLimit()) {\n\t\t\televator.resetElevatorMag();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3ee97b8ffff4256ac03517d4fc40a510", "score": "0.65040016", "text": "@Override\n public void periodic() {\n UpdateDashboard();\n }", "title": "" }, { "docid": "eab3f984c34eadb59e1dc69d0dc908ec", "score": "0.6501319", "text": "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "title": "" }, { "docid": "c2a9f4c8dd1aa227cc72b154082a9070", "score": "0.64625084", "text": "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "title": "" }, { "docid": "fd8cd8b0af9605c533fde6cdbc96688c", "score": "0.64596087", "text": "public void autonomousPeriodic()\r\n {\r\n \r\n }", "title": "" }, { "docid": "3220832fda258de92fb7f8dbb27394de", "score": "0.64166117", "text": "public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "edce186e42375d108d7b71ec1fdf9d83", "score": "0.64126086", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tRobot.intakeSubsystem._getSpeed();\n\n\t\tRobot.driveSubsystem.operatorOverride();\n\t\tScheduler.getInstance().run();\n\n\t\tTargetRegion boilerTarget = Robot.navigator.getBoilerTarget();\n\t\tif (boilerTarget != null) {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", boilerTarget.m_centerTop);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", boilerTarget.m_bounds.m_top);\n\t\t} else {\n\t\t\tSmartDashboard.putNumber(\"Target Center X\", -1);\n\t\t\tSmartDashboard.putNumber(\"Target Center Y\", -1);\n\t\t}\n\t}", "title": "" }, { "docid": "feed353357af78c5bba7bf38660981c0", "score": "0.64005244", "text": "@Override\n public void periodic() {\n SmartDashboard.putBoolean(\"Top Switch\", topSwitch.get());\n }", "title": "" }, { "docid": "f4706df8b83e24aa32ec18b1d170fd4d", "score": "0.63809377", "text": "public void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\t\n\t\t// Light/flash LEDs as needed\n\t\tif (timerLEDs.get() >= timerLEDsHalfPeriod) {\n\t timerLEDs.reset();\n\t timerLEDsCycleHigh = !timerLEDsCycleHigh;\n\t if (timerLEDsCycleHigh) {\n\t \tshooter.setFlywheelSpeedLight(shooter.bLEDsArmAtAngle);\n\t } else {\n\t \tshooter.setFlywheelSpeedLight(shooter.bLEDsArmAtAngle /*&& !shooter.bLEDsFlywheelAtSpeed*/);\t \t\n\t }\n\t\t}\n/*\t\t\n\t\t// Rumble as needed\n\t\tboolean ballLoaded = shooter.isBallLoaded(); \n\t\tif (ballLoaded && !prevBallLoaded) {\n\t\t\ttimerRumble.reset();\n\t\t\toi.xboxController.setRumble(RumbleType.kLeftRumble, 1);\n\t\t}\n\t\tprevBallLoaded = ballLoaded;\n\n\t\tboolean readyToShoot = shooter.bLEDsArmAtAngle && shooter.bLEDsFlywheelAtSpeed;\n\t\tif (readyToShoot && !prevReadyToShoot) {\n\t\t\ttimerRumble.reset();\n\t\t\toi.xboxController.setRumble(RumbleType.kRightRumble, 1);\n\t\t}\n\t\tprevReadyToShoot = readyToShoot;\n\n\t\tif (timerRumble.get() > 0.5) {\n\t \toi.xboxController.setRumble(RumbleType.kLeftRumble, 0);\n\t \toi.xboxController.setRumble(RumbleType.kRightRumble, 0);\n\t\t}\n*/\t\t\n\t\t// Show arm angle\n shooterArm.updateSmartDashboard();\n \n\t\t// Other printouts\n\t\tshooter.updateSmartDashboard();\n\t\tshooter.isBallLoaded();\n\t\tintake.updateSmartDashboard();\n\t\tintake.intakeIsUp();\n\t\tdriveTrain.getDegrees();\n\t\t\n\t\tvision.findGoal();\n\t\tvision.getGoalXAngleError();\n\t\tvision.getGoalArmAngle();\n\t\t\t\t\n\t\tif (smartDashboardDebug) {\n\t\t\t// Uncomment the following line to read coPanel knobs.\n//\t\t\toi.updateSmartDashboard();\n\n\t\t\t// Uncomment the following line for debugging shooter motors PIDs.\n//\t\t\tshooter.setPIDFromSmartDashboard();\n\t\t\t\n\t\t\t// Uncomment the following line for debugging the arm motor PID.\n//\t shooterArm.setPIDFromSmartDashboard();\n\t\t\t\n\t\t\t// Uncomment the following lines to see drive train data\n\t \tdriveTrain.getLeftEncoder();\n\t \tdriveTrain.getRightEncoder();\n\t\t\tdriveTrain.smartDashboardNavXAngles();\n\t\t\t\n\t\t\t//\t\tSmartDashboard.putNumber(\"Panel voltage\", panel.getVoltage());\n\t\t\t//\t\tSmartDashboard.putNumber(\"Panel arm current\", panel.getCurrent(0));\n\t\t}\n\n\t}", "title": "" }, { "docid": "7b102352c8800e83cbc2d4e975f2510e", "score": "0.6370649", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tupdate();\n\t\t\n\t\t//dashboard outputs\n\t\tdashboardOutput();\n\t\t\n\t\t\n\t\t\n\t\tif (tankDriveBool) {\n\t\t\ttankDrive();\n\t\t} \n\t\telse {\n\t\t\ttankDrive();\n\t\t}\n\t\tif (buttonA) {\n\t\t\ttest = true;\n\t\t\twhile (test) {\n\t\t\t\tcalibrate(10);\n\t\t\t\ttest = false;\n\t\t\t}\n\t\t}\n\t\tif (buttonY) {\n\t\t\tclimbMode = !climbMode;\n\t\t\tcontroller.setRumble(Joystick.RumbleType.kRightRumble, 0.5);\n\t\t\tcontroller.setRumble(Joystick.RumbleType.kLeftRumble, 0.5);\n\t\t\tTimer.delay(0.5);\n\t\t\tcontroller.setRumble(Joystick.RumbleType.kRightRumble, 0);\n\t\t\tcontroller.setRumble(Joystick.RumbleType.kLeftRumble, 0);\n\t\t}\n\t\tverticalMovement();\n\t\tgrab();\n\t}", "title": "" }, { "docid": "ba76f6a8efe9247ec313e10d14c2c259", "score": "0.6367265", "text": "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "title": "" }, { "docid": "67b5247f2b0ef4e370e65690b8f4b116", "score": "0.63419414", "text": "public void autonomousPeriodic() {\r\n }", "title": "" }, { "docid": "67b5247f2b0ef4e370e65690b8f4b116", "score": "0.63419414", "text": "public void autonomousPeriodic() {\r\n }", "title": "" }, { "docid": "10c61e22e417f6d4d3cdc682a202c3db", "score": "0.63385534", "text": "@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}", "title": "" }, { "docid": "e92bcdd9b7d25b1904a64626e7bd648b", "score": "0.63168174", "text": "public void startTeleopTimer() {\n t.reset();\n t.start();\n }", "title": "" }, { "docid": "4fdf2ca48af640c20e6b5cfabccd9f66", "score": "0.6307513", "text": "public void autonomousPeriodic() {\n \n }", "title": "" }, { "docid": "d0bb5433f289b32b2d0210183e288773", "score": "0.6304549", "text": "@Override\npublic void autonomousPeriodic() {\n\n}", "title": "" }, { "docid": "f98e5f5246f9d646cc1ef52f7c6c8d73", "score": "0.6296174", "text": "public void autonomousPeriodic() {\n\n }", "title": "" }, { "docid": "f98e5f5246f9d646cc1ef52f7c6c8d73", "score": "0.6296174", "text": "public void autonomousPeriodic() {\n\n }", "title": "" }, { "docid": "229a176bcbfdec4480a6d7052a737760", "score": "0.6291751", "text": "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "title": "" }, { "docid": "96d1558511c9743bf378cf2eec734e72", "score": "0.6286179", "text": "public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "96d1558511c9743bf378cf2eec734e72", "score": "0.6286179", "text": "public void autonomousPeriodic() {\n }", "title": "" }, { "docid": "2e9a17198a1ae60d781b6e628f36ad70", "score": "0.62787306", "text": "public void updatePeriodic() {\r\n }", "title": "" }, { "docid": "41e4948f421325562e7caa4c1a0656ad", "score": "0.62782544", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n drive.updateAuto();\n sensor.updateAuto();\n }", "title": "" }, { "docid": "70b51ff771fe0b65fd0c4eef1633dc47", "score": "0.6268203", "text": "@Override\n\tpublic void autonomousPeriodic() {\n\t\tSmartDashboard.putNumber(\"Gyro\", Robot.drivebase.driveGyro.getAngle());\n\n\t\tScheduler.getInstance().run();\n\t\tisAutonomous = true;\n\t\tisTeleoperated = false;\n\t\tisEnabled = true;\n\t\tvisionNetworkTable.getGearData();\n\t\tvisionNetworkTable.showGearData();\n\t\tSmartDashboard.putNumber(\"GM ACTUAL POSITION\", Robot.gearManipulator.gearManipulatorPivot.getPosition());\n\t\t\n\t\tupdateLedState();\n\t\t//visionNetworkTable.getHighData();\n\t}", "title": "" }, { "docid": "0ba7ffa5d0930695123dfbd10960db99", "score": "0.6264958", "text": "@Override\n public void loop() {\n\n tol.updateTelemetryWithText(\"Running TeleOp\");\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.62563485", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.62563485", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.62563485", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.62563485", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.62563485", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "fc8dad51e6020c587c806a2970fb4f70", "score": "0.62563485", "text": "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "768504f8ce0332f974813e574b28bad2", "score": "0.62481785", "text": "@Override\r\n\tpublic void teleopPeriodic() {\n\t\t\r\n\t\tmDrive.arcadeDrive(mOI.getY(), mOI.getTwist());\r\n\t}", "title": "" }, { "docid": "232885ff1a81ac699061b78bd6a16c2b", "score": "0.62281054", "text": "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "af9838a171535b0a09672420f0513c28", "score": "0.6213006", "text": "public void autonomousPeriodic() {\r\n \r\n }", "title": "" }, { "docid": "3ae9a1e34486cb39719449600fffe054", "score": "0.61988395", "text": "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n SmartDashboard.putNumber(\"right encoder\", drive.getRightEncoder());\n SmartDashboard.putNumber(\"left encoder\", drive.getLeftEncoder());\n \n PixyCamBlock centerBlock = PixyCam2.GetCentermostBlock();\n boolean targetInRange = false ;\n \n if(centerBlock == null)\n {\n targetInRange = false;\n SmartDashboard.putString(\"center block data \", \"null\"); \n }\n else if(centerBlock.yCenter < 200)\n {\n targetInRange = true;\n String out = \"Center Block, X: \"+centerBlock.xCenter + \" Y: \"+centerBlock.yCenter;\n SmartDashboard.putString(\"center block data \", out); \n }\n\n String targetValue = Boolean.toString(targetInRange);\n SmartDashboard.putString(\"target good?\", targetValue);\n \n \n SmartDashboard.putBoolean(\"isFlipped\", flipped);\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.6190259", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.6190259", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.6190259", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.6190259", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.6190259", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "cffeb825fd24bc4546b49096a06c3577", "score": "0.6190259", "text": "@Override\n public void robotPeriodic() {\n }", "title": "" }, { "docid": "2aa685a2cdbc9df539f62f7b2e2e2f9d", "score": "0.6186544", "text": "@Override\n public void run() {\n try {\n while(true) {\n Thread.sleep(NOTIFY_PERIOD);\n this.handle.tryExtendTTL();\n }\n } catch (InterruptedException ex) {\n // silient ignore\n } catch (Exception ex) {\n LOG.error(\"exception occurred\", ex);\n }\n }", "title": "" }, { "docid": "86b03b52e65c348569319435b2dafd5b", "score": "0.61848384", "text": "@Override\n\tpublic void run() {\n\t\tString pingPeriodSeconds = this.getString(R.string.ping_period_seconds);\n\t\tlong time = Long.valueOf(pingPeriodSeconds).longValue() * 1000;\n\n//\t\tString msg = this.getString(R.string.ping_message);\n\t\t\n\t\twhile (true) {\n\n//\t\t\tChat.sendMessage(this, msg, this.to, this.from);\n\t \n\t\t\ttry {\n\t\t\t\tThread.sleep(time);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// Assume interruption means end of app.\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "b4f510d818335fc4670c5ad0044b1399", "score": "0.61818314", "text": "protected void runEach10Minutes() {\n try {\n saveHistoryData();\n if (isEnabledScheduler()) {\n boolean action = getLightSchedule().getCurrentSchedule();\n if (action) {\n if (!currentState) switchOn();\n } else {\n if (currentState) switchOff();\n }\n }\n } catch (RemoteHomeManagerException e) {\n RemoteHomeManager.log.error(44,e);\n } catch (RemoteHomeConnectionException e) {\n RemoteHomeManager.log.error(45,e);\n }\n }", "title": "" }, { "docid": "1555bbd4fed7e633678b19e69253af7f", "score": "0.61809206", "text": "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "ddf3cff6681d5755b1ccce754bec413a", "score": "0.61656535", "text": "private void sendData() {\n\n Thread update = new Thread() {\n public void run() {\n while (opModeIsActive() && (tfod != null)) {\n path.updateTFODData(recognize());\n path.updateHeading();\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n }\n if (isStopRequested() && tfod != null)\n tfod.shutdown();\n }\n }\n };\n update.start();\n }", "title": "" }, { "docid": "9f646969801c7b131785afd3723e0566", "score": "0.61642164", "text": "private void onPingingTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n try\r\n {\r\n myConnectionManipulatorLock.lock();\r\n try\r\n {\r\n // Send the ping message.\r\n myUnderlyingOutputChannel.sendMessage(myPreserializedPingMessage);\r\n\r\n // Schedule the next ping.\r\n myPingingTimer.change(myPingFrequency);\r\n }\r\n finally\r\n {\r\n myConnectionManipulatorLock.unlock();\r\n }\r\n }\r\n catch (Exception err)\r\n {\r\n // The sending of the ping message failed - the connection is broken.\r\n cleanAfterConnection(true, true);\r\n }\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "title": "" }, { "docid": "adc226edd6672fa2ba50e58c48f9edd1", "score": "0.6159953", "text": "public void onTimeTick() {\n tick++;\n try {\n sendBeaconLog(10);\n } catch (InterruptedException e) {\n }\n if (tick % 10 == 0) {\n sendDirectedPresence();\n }\n }", "title": "" }, { "docid": "8eb149026b9171d422480ebab7bd380a", "score": "0.61545813", "text": "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "title": "" }, { "docid": "838a1018125437c78bcea215f29499c3", "score": "0.6145291", "text": "@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n // Elevator.getInstance().setPosition(10000, count);\n // System.out.println(\"COUNT IS: \" + count);\n // count += 0.0001;\n\n Scheduler.getInstance().run();\n\n // if(Math.abs(OI.getInstance().getForward()) > 0.2){\n // autonCommand.cancel();\n // mAutoCancelled = true;\n // }\n\n // if(mAutoCancelled){\n // if(mInitCalled){\n // teleopPeriodic();\n // }\n // }\n\n // System.out.println(Drivetrain.getInstance().getRobotPos().getHeading());\n\n // System.out.println(Drivetrain.getInstance().getLeftMaster().getClosedLoopError() + \"\\t\\t\\t\" + Drivetrain.getInstance().getRightMaster().getClosedLoopError());\n }", "title": "" }, { "docid": "17cabcf8f194aafdf15966084efc35b3", "score": "0.61083144", "text": "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "title": "" } ]
ed90fceba109dc045b03232e1cab77ca
/Feature Extractionby Mohsin System.out.println("audioByes size = " + audioBytes.length);
[ { "docid": "a565aa9d7abcb6e607c788be6521c992", "score": "0.59245265", "text": "public void FeatureExtractionAndMoodClassification(byte[] audioBytes, MyWeka weka, Date dateobj){\n\t\t DateFormat df = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss\");\n\t\t List<WindowFeature> windowFeatureList = new ArrayList<WindowFeature>();\n\t\t double[] inputSignal = new double[audioBytes.length / 3];\n\t\t for (int i = 0, j = 0; i != inputSignal.length; ++i, j += 3) {\n\t\t\t inputSignal[i] = (double)( (audioBytes[j ] & 0xff) | \n\t\t\t\t\t ((audioBytes[j+1] & 0xff) << 8) |\n\t\t\t\t\t ( audioBytes[j+2] << 16));\n\t\t }\n\t\t int Fs = 44100; //44100\n\t\t MFCCFeatureExtract mfccFeature = new MFCCFeatureExtract(inputSignal,Fs);\n\t\t windowFeatureList.addAll(mfccFeature.getListOfWindowFeature());\n\t\t //System.out.println(\"windowfeaturelist size = \" + windowFeatureList.size());\n\n\t\t for(WindowFeature w: windowFeatureList){\n\t\t\t double[] featurevector = new double[351];\n\t\t\t //System.out.println(\"window feature size \" + w.windowFeature[38].length);\n\t\t\t int k = 0;\n\t\t\t for (int i = 0; i < 39; i++){\n\t\t\t\t for (int j = 0; j < 9; j++){\n\t\t\t\t\t featurevector[k++] = w.windowFeature[i][j];\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t if (featurevector[0] < 150){\n\t\t\t\t System.out.println(\"Silent frame ...\");\n\t\t\t\t WriteToFile(df.format(dateobj)+ \" \" + \"Silent\");\n\t\t\t\t continue;\n\t\t\t }\n\t\t\t try{\n\t\t\t\t int mood = (int) weka.classify(featurevector);\n\t\t\t\t System.out.println(mood == 0 ? \"Angry\" : mood == 1 ? \"Happy\" : mood == 2 ? \"Neutral\" : \"Sad\");\n\t\t\t\t WriteToFile(df.format(dateobj)+ \" \" + (mood == 0 ? \"Angry\" : mood == 1 ? \"Happy\" : mood == 2 ? \"Neutral\" : \"Sad\"));\n\t\t\t } \n\t\t\t catch (Exception e){\n\t\t\t\t System.out.println(e);\n\t\t\t }\n\t\t\t //System.out.println(w.windowFeature[1].length);\n\t\t }\n\t }", "title": "" } ]
[ { "docid": "155205bfca463424b01b7a7aab46aabc", "score": "0.62713796", "text": "public int size()\n\t{\n\t\treturn waveform.length;\n\t}", "title": "" }, { "docid": "808a41b69897039a1099e18f0a1f559e", "score": "0.6232171", "text": "public int getSampleLength()\n {\n return sampleLength_;\n }", "title": "" }, { "docid": "c8d058e975480418075749afd35544c4", "score": "0.61801684", "text": "private int getAudioBufferSize() {\n\t\tif (_audioFormat == null) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn (int) (_audioFormat.getFrameSize()\n\t\t\t\t\t* _audioFormat.getFrameRate() / (1000 / DELAY));\n\t\t}\n\t}", "title": "" }, { "docid": "72be0e5636cf461d2c906b3389c2700a", "score": "0.6032252", "text": "public int getSampleSize() {\n return sampleSize;\n }", "title": "" }, { "docid": "e8b14027fc0560ff8650f46dea1d9163", "score": "0.595534", "text": "public int getNumSamples() { return nsamples; }", "title": "" }, { "docid": "322203ce6587af749c2030b64e6caa99", "score": "0.59260666", "text": "public int getBufferSize() {\n\t\treturn getAudioBufferSize() + 1000;\n\t}", "title": "" }, { "docid": "885cb5e06f24ada99408b90a84f61f51", "score": "0.5913526", "text": "long getSamples();", "title": "" }, { "docid": "97cd8fdcd9b1cdb016895f1c9f24eba6", "score": "0.58737445", "text": "@Override\n\t public int getSizeBytes(){ \n\t\t return sizeOf(); \n\t}", "title": "" }, { "docid": "97cd8fdcd9b1cdb016895f1c9f24eba6", "score": "0.58737445", "text": "@Override\n\t public int getSizeBytes(){ \n\t\t return sizeOf(); \n\t}", "title": "" }, { "docid": "65dcee01517b7d78da05d207fdb6f388", "score": "0.5871711", "text": "public long getAudioNbFrame() {\r\n return audioNbFrame;\r\n }", "title": "" }, { "docid": "c9d102183765ab6bca5dfe3f0b22a99a", "score": "0.5849324", "text": "@Override\n\tpublic int measureByteSize() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "76b0bbf7f5ffa87c6b06a4bfd337ff89", "score": "0.58421767", "text": "com.google.protobuf.ByteString getRawAudio();", "title": "" }, { "docid": "d12e4c5bc2942065aef26046fa3834d0", "score": "0.5745864", "text": "public String getAudioFormat();", "title": "" }, { "docid": "c43109efe61fb69dbbf8997f84758dbf", "score": "0.57418525", "text": "public int getByteSize();", "title": "" }, { "docid": "7327cc7162add3a57468d5fc9d8f198c", "score": "0.573996", "text": "@Override \n public void run() {\n byte[] audiodata = new byte[bufferSizeInBytes]; \n int readsize = 0; \n while (isRecord == true) { \n readsize = audioRecord.read(audiodata, 0, bufferSizeInBytes); \n //Log.i(tag, \"readsize=\" + readsize);\n if (AudioRecord.ERROR_INVALID_OPERATION != readsize) { \n \tLog.i(tag, \"readsize=\" + readsize);\n\n } \n } \n }", "title": "" }, { "docid": "82769fe8136f8ef45900a580199ca746", "score": "0.57102734", "text": "public int getSongLength(){\n\t\treturn length;\n\t}", "title": "" }, { "docid": "ae421273fea16c7bb9cb1444adc0b7d4", "score": "0.5690601", "text": "int sizeOfRenderMultiMediaArray();", "title": "" }, { "docid": "f3fcbdba9a4b5829f99a4de19914dff4", "score": "0.56856173", "text": "long byteSize();", "title": "" }, { "docid": "b979f99672d5d535a55777835406e8c8", "score": "0.5682898", "text": "public final int mo47934D() {\n int size;\n synchronized (this.f32084av) {\n size = this.f32071ai.size();\n }\n return size;\n }", "title": "" }, { "docid": "45fc726eca31ef767304a59287d19925", "score": "0.5669617", "text": "private void readAudioRecord () {\r\n\t\t\t\r\n\t\t\tint numshorts = audioRecord.read(audioData,0,audioData.length);\r\n \r\n if ((numshorts == AudioRecord.ERROR_INVALID_OPERATION) || \r\n (numshorts == AudioRecord.ERROR_BAD_VALUE)) {\r\n \treturn;\r\n }\r\n \t\r\n // Successfull Read\r\n double[] preRealData = new double[bufferSize];\r\n double PI = 3.14159265359;\r\n for (int i = 0; i < bufferSize; i++) {\r\n double multiplier = 0.5 * (1 - Math.cos(2*PI*i/(bufferSize-1)));\r\n preRealData[i] = multiplier * audioData[i];\r\n }\r\n\r\n DoubleFFT_1D fft = new DoubleFFT_1D(bufferSize);\r\n double[] realData = new double[bufferSize * 2];\r\n\r\n for (int i=0;i<bufferSize;i++) {\r\n realData[2*i] = preRealData[i];\r\n realData[2*i+1] = 0; \r\n }\r\n fft.complexForward(realData);\r\n\r\n double magnitude[] = new double[bufferSize / 2];\r\n\r\n for (int i = 0; i < magnitude.length; i++) {\r\n double R = realData[2 * i];\r\n double I = realData[2 * i + 1];\r\n\r\n magnitude[i] = Math.sqrt(I*I + R*R);\r\n \r\n // Inject Frequency/Magnitude Data\r\n this.frequencyData[i] = sampleRate * i / bufferSize;\r\n this.magnitudeData[i] = magnitude[i];\r\n }\r\n\t\t}", "title": "" }, { "docid": "def8f373f39d6f4f8b062b0f446ba770", "score": "0.5661975", "text": "public Integer getSampleSize() {\r\n\t\treturn sampleSize;\r\n\t}", "title": "" }, { "docid": "473153d424d61e5ff126e5c23e70e600", "score": "0.5640978", "text": "public byte[] aiffSampleRate() { return aiffSampleRate; }", "title": "" }, { "docid": "7bea53a9eddc4f472410f92da9a3109a", "score": "0.56372535", "text": "public static native int sexypsfputaudiodata(byte[] arr, int size);", "title": "" }, { "docid": "ad1d031ce1b9fc9812998724d973e242", "score": "0.56153256", "text": "public byte[] getDataBuffer( )\n\t\t{\n\t\t\treturn audioDataBuffer;\n\t\t}", "title": "" }, { "docid": "8434f863a28425fd63445fae4f1eae2c", "score": "0.5614436", "text": "public int getTrackLength()\n\t{\n\t\treturn trackLength;\n\t}", "title": "" }, { "docid": "d7416b479a1113940577a9cc7bcf80a4", "score": "0.5609975", "text": "@Override\n\tpublic void onReciveAudioData(byte[] data) {\n\t\t\n\t}", "title": "" }, { "docid": "f35adcc638b7499d39d363dbb0a2b924", "score": "0.55873185", "text": "public int length ()\n {\n \treturn bytes.length;\n }", "title": "" }, { "docid": "30465880fb574337ce3393e45e2381b9", "score": "0.55738735", "text": "public double getWaveLength()\r\n {\r\n return this.waveLength;\r\n }", "title": "" }, { "docid": "29e0f3bf4f1efba938fe2a7b6dbbef79", "score": "0.55702907", "text": "public int getSize() {\r\n\treturn 44;\r\n}", "title": "" }, { "docid": "d5bd498d87acf127e6737cad209b48bd", "score": "0.5566778", "text": "@Override\n public int byteSize() {\n compress();\n return 64 + summary.size() * 13;\n }", "title": "" }, { "docid": "6a2c1515dbd755538adce1d8592e7e4d", "score": "0.5543979", "text": "public int encodedSize(LiveStreamingType coVar) {\n return coVar.unknownFields().mo132944h();\n }", "title": "" }, { "docid": "a30822160928c1b02eb5ff24a0a44a2e", "score": "0.55277324", "text": "public static byte[] getFileHeader( int soundLength ) {\r\n\r\n\t\tbyte[] header = new byte[HEADER_SIZE];\r\n\r\n\t\tint totalDataLen = soundLength + 36;\r\n\r\n\t\tlong byteRate = RECORDER_BPP * RECORDER_SAMPLERATE * WAVE_CHANNEL_MONO / 8;\r\n\r\n\t\theader[0] = 'R'; // RIFF/WAVE header\r\n\t\theader[1] = 'I';\r\n\t\theader[2] = 'F';\r\n\t\theader[3] = 'F';\r\n\t\theader[4] = (byte) (totalDataLen & 0xff);\r\n\t\theader[5] = (byte) ((totalDataLen >> 8) & 0xff);\r\n\t\theader[6] = (byte) ((totalDataLen >> 16) & 0xff);\r\n\t\theader[7] = (byte) ((totalDataLen >> 24) & 0xff);\r\n\t\theader[8] = 'W';\r\n\t\theader[9] = 'A';\r\n\t\theader[10] = 'V';\r\n\t\theader[11] = 'E';\r\n\t\theader[12] = 'f'; // 'fmt ' chunk\r\n\t\theader[13] = 'm';\r\n\t\theader[14] = 't';\r\n\t\theader[15] = ' ';\r\n\t\theader[16] = 16; // 4 bytes: size of 'fmt ' chunk\r\n\t\theader[17] = 0;\r\n\t\theader[18] = 0;\r\n\t\theader[19] = 0;\r\n\t\theader[20] = (byte) 1; // format = 1 (PCM방식)\r\n\t\theader[21] = 0;\r\n\t\theader[22] = WAVE_CHANNEL_MONO;\r\n\t\theader[23] = 0;\r\n\t\theader[24] = (byte) (RECORDER_SAMPLERATE & 0xff);\r\n\t\theader[25] = (byte) ((RECORDER_SAMPLERATE >> 8) & 0xff);\r\n\t\theader[26] = (byte) ((RECORDER_SAMPLERATE >> 16) & 0xff);\r\n\t\theader[27] = (byte) ((RECORDER_SAMPLERATE >> 24) & 0xff);\r\n\t\theader[28] = (byte) (byteRate & 0xff);\r\n\t\theader[29] = (byte) ((byteRate >> 8) & 0xff);\r\n\t\theader[30] = (byte) ((byteRate >> 16) & 0xff);\r\n\t\theader[31] = (byte) ((byteRate >> 24) & 0xff);\r\n\t\theader[32] = (byte) RECORDER_BPP * WAVE_CHANNEL_MONO / 8; // block align\r\n\t\theader[33] = 0;\r\n\t\theader[34] = RECORDER_BPP; // bits per sample\r\n\t\theader[35] = 0;\r\n\t\theader[36] = 'd';\r\n\t\theader[37] = 'a';\r\n\t\theader[38] = 't';\r\n\t\theader[39] = 'a';\r\n\t\theader[40] = (byte) (soundLength & 0xff);\r\n\t\theader[41] = (byte) ((soundLength >> 8) & 0xff);\r\n\t\theader[42] = (byte) ((soundLength >> 16) & 0xff);\r\n\t\theader[43] = (byte) ((soundLength >> 24) & 0xff);\r\n\r\n\t\treturn header;\r\n\r\n\t}", "title": "" }, { "docid": "15d2de72e5797203c624a4e68499cf1f", "score": "0.5518193", "text": "public final int audiodata_precedesframes() {\r\n\t\tif( this.fr.lay == 3 ) {\r\n\t\t\treturn Jlayer3.layer3_audiodata_precedesframes( this );\r\n\t\t}// else {\r\n\t\t\treturn 0; /* For Layer 1 & 2 the audio data starts at the frame that describes it, so no audio data precedes. */\r\n\t\t//}\r\n\t}", "title": "" }, { "docid": "42359652897b50f4332c2e60c0657a81", "score": "0.55055386", "text": "public int getByteLength()\r\n {\r\n return BYTE_LENGTH;\r\n }", "title": "" }, { "docid": "c105696df20d8eea5b69cbd54d22090e", "score": "0.55030525", "text": "public boolean hasAudio() {\n return false;\r\n }", "title": "" }, { "docid": "44ed067e5fcb060564ffbdb5ede880e0", "score": "0.5499949", "text": "@Generated\n @Selector(\"providesAudioData\")\n public native boolean providesAudioData();", "title": "" }, { "docid": "f7a42a2a436d4b15e4b7d18a0f86b415", "score": "0.54854727", "text": "public double getAudioDuration() {\r\n return audioDuration;\r\n }", "title": "" }, { "docid": "3886dcd9458077a436cadf55458b1600", "score": "0.5480898", "text": "int getByteArrayCriteriaCount();", "title": "" }, { "docid": "a66e60b7fceb9ed341fcbbb99d91c5b6", "score": "0.54756594", "text": "public int getSize()\n {\n return 36;\n }", "title": "" }, { "docid": "80b9a8ccfd3d807ffa7cc613a45848df", "score": "0.5475628", "text": "public void bitmapToAudio() {\n double[] samples = new double[(int) (grainDuration * SAMPLE_RATE)];\n byte[] generatedSnd = new byte[IMAGE_WIDTH * 2 * samples.length];\n int idx = 0;\n\n audio = new AudioTrack(AudioManager.STREAM_MUSIC,\n SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,\n AudioFormat.ENCODING_PCM_16BIT, 2 * samples.length * IMAGE_WIDTH,\n AudioTrack.MODE_STATIC);\n\n for (int column = 1; column <= IMAGE_WIDTH; column++) { //for each column in the image\n //Convert a column to samples\n int[] pixels = new int[IMAGE_HEIGHT];\n IMAGE.getPixels(pixels, 0, 1, column - 1, 0, 1, IMAGE_HEIGHT); //extract a column of pixels\n Log.e(\"COLUMN #\", String.valueOf(column));\n samples = columnToSamples(pixels, column - 1);\n\n // convert to 16 bit pcm sound array\n // assumes the sample buffer is normalised.\n for (double dVal : samples) {\n short val = (short) ((dVal));\n // in 16 bit wav PCM, first byte is the low order byte\n generatedSnd[idx++] = (byte) (val & 0x00ff);\n generatedSnd[idx++] = (byte) ((val & 0xff00) >>> 8);\n\n }\n DATA = generatedSnd;\n }\n audio.write(generatedSnd, 0, generatedSnd.length);\n }", "title": "" }, { "docid": "da64a0f276204af15b348570d0f35d16", "score": "0.54728633", "text": "public int getSize() {\n\t\treturn bytes.length;\n\t}", "title": "" }, { "docid": "4151cbca7293d0755e7932b4ba796f0f", "score": "0.5464993", "text": "int getDataSize();", "title": "" }, { "docid": "e1af5ee40c59dd456a6da8ca18a578f1", "score": "0.54615986", "text": "public int getMediaCount();", "title": "" }, { "docid": "b4949247742c8f31a467d2ddb9f70903", "score": "0.5458061", "text": "double[] getAudio();", "title": "" }, { "docid": "dbf11b8ced2cdd82cada500496727f35", "score": "0.54564434", "text": "@Override\r\n public void initAudioContent() {\n }", "title": "" }, { "docid": "638a037bb4b578b17443b877667f19ef", "score": "0.5455904", "text": "public static void main(String[] args) {\n\n Provaa mp3 = Provaa.MP3;\n Provaa mp4 = Provaa.MP4;\n Provaa jpeg = Provaa.JPEG;\n Provaa png = Provaa.PNG;\n Provaa pdf = Provaa.PDF;\n\n mp3.setSize(300);\n System.out.println(mp3);\n mp3.setSize(30000);\n System.out.println(mp3);\n\n mp4.setSize(5000);\n System.out.println(mp4);\n mp4.setSize(60000);\n System.out.println(mp4);\n\n jpeg.setSize(100);\n System.out.println(jpeg);\n jpeg.setSize(6000);\n System.out.println(jpeg);\n\n png.setSize(200);\n System.out.println(png);\n png.setSize(8000);\n System.out.println(png);\n\n pdf.setSize(90);\n System.out.println(pdf);\n pdf.setSize(10000);\n System.out.println(pdf);\n\n System.out.println(mp3.getSize());\n //System.out.println(p);\n }", "title": "" }, { "docid": "5a37b8b63ca030ebcf7b989ea2b3b1a0", "score": "0.544415", "text": "private void getHeifAttributes(final SeekableByteOrderedDataInputStream in) throws IOException {\n if (Build.VERSION.SDK_INT >= 28) {\n MediaMetadataRetriever retriever = new MediaMetadataRetriever();\n try {\n Api23Impl.setDataSource(retriever, new MediaDataSource() {\n long mPosition;\n\n @Override\n public void close() throws IOException {}\n\n @Override\n public int readAt(long position, byte[] buffer, int offset, int size)\n throws IOException {\n if (size == 0) {\n return 0;\n }\n if (position < 0) {\n return -1;\n }\n try {\n if (mPosition != position) {\n // We don't allow seek to positions after the available bytes,\n // the input stream won't be able to seek back then.\n // However, if we hit an exception before (mPosition set to -1),\n // let it try the seek in hope it might recover.\n if (mPosition >= 0 && position >= mPosition + in.available()) {\n return -1;\n }\n in.seek(position);\n mPosition = position;\n }\n\n // If the read will cause us to go over the available bytes,\n // reduce the size so that we stay in the available range.\n // Otherwise the input stream may not be able to seek back.\n if (size > in.available()) {\n size = in.available();\n }\n\n int bytesRead = in.read(buffer, offset, size);\n if (bytesRead >= 0) {\n mPosition += bytesRead;\n return bytesRead;\n }\n } catch (IOException e) {\n // do nothing\n }\n mPosition = -1; // need to seek on next read\n return -1;\n }\n\n @Override\n public long getSize() throws IOException {\n return -1;\n }\n });\n\n String exifOffsetStr = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_EXIF_OFFSET);\n String exifLengthStr = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_EXIF_LENGTH);\n String hasImage = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_HAS_IMAGE);\n String hasVideo = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_HAS_VIDEO);\n\n String width = null;\n String height = null;\n String rotation = null;\n final String metadataValueYes = \"yes\";\n // If the file has both image and video, prefer image info over video info.\n // App querying ExifInterface is most likely using the bitmap path which\n // picks the image first.\n if (metadataValueYes.equals(hasImage)) {\n width = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_IMAGE_WIDTH);\n height = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_IMAGE_HEIGHT);\n rotation = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_IMAGE_ROTATION);\n } else if (metadataValueYes.equals(hasVideo)) {\n width = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_VIDEO_WIDTH);\n height = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_VIDEO_HEIGHT);\n rotation = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION);\n }\n\n if (width != null) {\n mAttributes[IFD_TYPE_PRIMARY].put(TAG_IMAGE_WIDTH,\n ExifAttribute.createUShort(Integer.parseInt(width), mExifByteOrder));\n }\n\n if (height != null) {\n mAttributes[IFD_TYPE_PRIMARY].put(TAG_IMAGE_LENGTH,\n ExifAttribute.createUShort(Integer.parseInt(height), mExifByteOrder));\n }\n\n if (rotation != null) {\n int orientation = ExifInterface.ORIENTATION_NORMAL;\n\n // all rotation angles in CW\n switch (Integer.parseInt(rotation)) {\n case 90:\n orientation = ExifInterface.ORIENTATION_ROTATE_90;\n break;\n case 180:\n orientation = ExifInterface.ORIENTATION_ROTATE_180;\n break;\n case 270:\n orientation = ExifInterface.ORIENTATION_ROTATE_270;\n break;\n }\n\n mAttributes[IFD_TYPE_PRIMARY].put(TAG_ORIENTATION,\n ExifAttribute.createUShort(orientation, mExifByteOrder));\n }\n\n if (exifOffsetStr != null && exifLengthStr != null) {\n int offset = Integer.parseInt(exifOffsetStr);\n int length = Integer.parseInt(exifLengthStr);\n if (length <= 6) {\n throw new IOException(\"Invalid exif length\");\n }\n in.seek(offset);\n byte[] identifier = new byte[6];\n in.readFully(identifier);\n offset += 6;\n length -= 6;\n if (!Arrays.equals(identifier, IDENTIFIER_EXIF_APP1)) {\n throw new IOException(\"Invalid identifier\");\n }\n\n // TODO: Need to handle potential OutOfMemoryError\n byte[] bytes = new byte[length];\n in.readFully(bytes);\n // Save offset to EXIF data for handling thumbnail and attribute offsets.\n mOffsetToExifData = offset;\n readExifSegment(bytes, IFD_TYPE_PRIMARY);\n }\n\n String xmpOffsetStr = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_XMP_OFFSET);\n String xmpLengthStr = retriever.extractMetadata(\n MediaMetadataRetriever.METADATA_KEY_XMP_LENGTH);\n if (xmpOffsetStr != null && xmpLengthStr != null) {\n int offset = Integer.parseInt(xmpOffsetStr);\n int length = Integer.parseInt(xmpLengthStr);\n in.seek(offset);\n byte[] xmpBytes = new byte[length];\n in.readFully(xmpBytes);\n if (getAttribute(TAG_XMP) == null) {\n mAttributes[IFD_TYPE_PRIMARY].put(TAG_XMP, new ExifAttribute(\n IFD_FORMAT_BYTE, xmpBytes.length, offset, xmpBytes));\n }\n }\n\n if (DEBUG) {\n Log.d(TAG, \"Heif meta: \" + width + \"x\" + height + \", rotation \" + rotation);\n }\n } catch (RuntimeException e) {\n throw new UnsupportedOperationException(\"Failed to read EXIF from HEIF file. \"\n + \"Given stream is either malformed or unsupported.\");\n } finally {\n try {\n retriever.release();\n } catch (IOException e) {\n // Nothing we can do about it.\n }\n }\n } else {\n throw new UnsupportedOperationException(\"Reading EXIF from HEIF files \"\n + \"is supported from SDK 28 and above\");\n }\n }", "title": "" }, { "docid": "f26a3125ebd117384ebfd964c84de471", "score": "0.5441677", "text": "public int getTrackSize() {\n return tracks.size();\n }", "title": "" }, { "docid": "07cb1b3e9065bb4f93ce206e8e3667ed", "score": "0.54286784", "text": "public int size() {\n return msb.size();\n }", "title": "" }, { "docid": "8b457feea56210d922b537f125a3f801", "score": "0.54271543", "text": "long dataSize();", "title": "" }, { "docid": "aa95f6603312ade04e8aa07bd899e58d", "score": "0.5419637", "text": "@Override\n public void onUploadProgress(APAudioInfo info, long send) {\n }", "title": "" }, { "docid": "7637b4d2af9c675ea2698ac17656f2cd", "score": "0.5419392", "text": "long getSize();", "title": "" }, { "docid": "94d9af525129149daf32fbf4ee3b0ca8", "score": "0.54167575", "text": "long getTotalBytesServed();", "title": "" }, { "docid": "7175589c616b070a557eb6251b65d5ae", "score": "0.5416232", "text": "boolean hasRawAudio();", "title": "" }, { "docid": "9cabfe37d2142d75665944c70a6b58e8", "score": "0.54083246", "text": "@Override\n\tpublic long getSize() {\n\t\treturn length;\n\t}", "title": "" }, { "docid": "9e9bc8d7dbec7c99f404a13de9ac8a23", "score": "0.5385311", "text": "public int sizeOfMediaTypeArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MEDIATYPE$0);\n }\n }", "title": "" }, { "docid": "6e72b196f646902c5a87b8870b63559a", "score": "0.53825307", "text": "public long getRawStreamLength() throws PDFNetException {\n/* 1153 */ return GetRawStreamLength(this.a);\n/* */ }", "title": "" }, { "docid": "862e95da372d5316f9e177866b752928", "score": "0.5371019", "text": "public int getSizeInBytes();", "title": "" }, { "docid": "64a6abde80fd065ee7976267015c39e1", "score": "0.5354439", "text": "private void inferSongLength() {\n totalDurationOfSong = -1;\n\n // From the lines of a song, extract the max duration\n // and call it the duration of the song\n for (Voice line : linesOfSong) {\n double lineDuration = line.getTotalVoiceDuration();\n\n if (totalDurationOfSong < lineDuration) {\n totalDurationOfSong = lineDuration;\n }\n }\n }", "title": "" }, { "docid": "7b1a3f2c72235960790096a530ca75ce", "score": "0.5350247", "text": "int getSpeakerInfoCount();", "title": "" }, { "docid": "454a9a9fa96434aba1464a4c40b6eb83", "score": "0.5347598", "text": "public int[] getSampleSize() {\n/* 232 */ return new int[] { this.pixelBitStride };\n/* */ }", "title": "" }, { "docid": "4af44fb757d156252028537cf1d4d503", "score": "0.5347242", "text": "public float length() {\r\n float second = (float) this.m_waveHeader.getSubChunk2Size()\r\n / this.m_waveHeader.getByteRate();\r\n return second;\r\n }", "title": "" }, { "docid": "91594ebc254a28172b94a99e7f8f1f77", "score": "0.53467214", "text": "@Test\n public void returnsCorrectDictionarySize() {\n assertEquals(15079, analyzer.getSentimentDictionarySize());\n }", "title": "" }, { "docid": "453283beb3f3346e237a83c13d8bb537", "score": "0.5339866", "text": "int getRawFeaturesCount();", "title": "" }, { "docid": "c24f9859a6bb5da27a1409356ddfa3a1", "score": "0.53215516", "text": "@java.lang.Override\n public com.google.protobuf.ByteString getRawAudio() {\n return rawAudio_;\n }", "title": "" }, { "docid": "10a6f05c1a011559d18878b4a7e58fed", "score": "0.53186226", "text": "@Override // com.oculus.vrshell.home.module.audio.Recorder\n public int getEncoding() {\n return 2;\n }", "title": "" }, { "docid": "d4f1f430c0147f5fc01262706714a710", "score": "0.531363", "text": "@Field(7) \r\n\tpublic int NumSamples() {\r\n\t\treturn this.io.getIntField(this, 7);\r\n\t}", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "637360db17a9153430c1e90af93b1007", "score": "0.5311015", "text": "int getSize();", "title": "" }, { "docid": "067ef72b38ddb1addb593605502d2880", "score": "0.5305544", "text": "public long getSize();", "title": "" }, { "docid": "067ef72b38ddb1addb593605502d2880", "score": "0.5305544", "text": "public long getSize();", "title": "" }, { "docid": "d714932ac23572f8760e762fe1ea9639", "score": "0.5282291", "text": "public int size()\n {\n\t int s = hand.size();\n\t return s;\n }", "title": "" }, { "docid": "e13a4983f28abd2ad0cf82fb5a0b8feb", "score": "0.5279103", "text": "public long getAudioBitRate() {\r\n return audioBitRate;\r\n }", "title": "" }, { "docid": "bd71f22c9cc00774f2e1e64d55f8238d", "score": "0.5277981", "text": "@Override\n public int getSize(){ return this.content.length(); }", "title": "" }, { "docid": "02e5f88d6b8148efcc89f3355d8875b8", "score": "0.5275541", "text": "public int getAudioChannels() {\r\n return audioChannels;\r\n }", "title": "" }, { "docid": "4f1b41100ffae17a857cc12b5b807274", "score": "0.5273484", "text": "int getSampleCount();", "title": "" }, { "docid": "80a663790ef2daa38f9e8311e187e42c", "score": "0.52720886", "text": "@Override\n\tpublic int getSizeInBytes() {\n\t\tint fixedHeaderSizeBytes = 1 + 1 + 2 + 4;\n\t\t\n\t\tif (this.extHeaderFlag || this.sequenceNumberFlag\n\t\t\t\t|| this.nPDUNumberFlag) {\n\t\t\t\n\t\t\t// Sequence Number = 2\n\t\t\t// N-PDU number = 1\n\t\t\t// Next Extension Header = 1\n\t\t\tfixedHeaderSizeBytes += 2 + 1 + 1;\n\t\t}\n\t\t\n\t\t//According to section 7.7.11 in 3GPP TS 29.060 V13.1.0 (2015-06)\n\t\tif(this.messageType == ECHO_RESPONSE_TYPE ){\n\t\t\t//Mandatory fields for Echo Response messages according to Section 7.2.2\n\t\t\t//from 3GPP TS 29.060 V13.1.0 (2015-06)\n\t\t\t\n\t\t\tfixedHeaderSizeBytes += 2;\n\t\t}\n\t\t\n\t\tint numberOfExtraBytes = 0;\n\t\tfor (GTPV1ExtHeader extHeader : extHeaders) {\n\t\t\tnumberOfExtraBytes += extHeader.getN();\n\t\t}\n\n\t\treturn fixedHeaderSizeBytes + numberOfExtraBytes;\n\t}", "title": "" }, { "docid": "8b40fdd7cfc38bfdf832dc2a0e78987a", "score": "0.52719086", "text": "private byte[] toBytes(AudioInputStream line) throws IOException {\n try (ByteArrayOutputStream out = new ByteArrayOutputStream()) {\n\n byte[] buffer = new byte[(int)1024];\n boolean running = true;\n int loops = 0;\n while(running && loops < 1000) { //can change condition, like for mic\n int count = line.read(buffer);\n if (count > 0) {\n out.write(buffer, 0, count);\n loops++;\n } else\n running = false;\n }\n System.out.println(\"Loops \"+ loops);\n return out.toByteArray();\n\n }\n //return line.readAllBytes();\n }", "title": "" }, { "docid": "8a2323dfa7b4a0bba570fdd82e065886", "score": "0.5266572", "text": "public int calculateFrameLength() {\n int pad = isPadding() ? 1 : 0;\n //double a = 144.0d * bitrate / (double) samplingrate;\n if (getLayer() == 1) {\n return (int) Math.floor((12.0d * getBitrate() * 1000 / (double) getSamplingrate()) + pad) * 4;\n } else {\n return (int) Math.floor((144.0d * getBitrate() * 1000 / (double) getSamplingrate()) + pad);\n }\n }", "title": "" }, { "docid": "94039f0c00c10db31c49745c964e5775", "score": "0.5264395", "text": "public int getLength() { return UArray.getLength(this.Source); }", "title": "" }, { "docid": "7a9e5fd9ae622efefa9e8ba4c46e61bf", "score": "0.5264319", "text": "public int getNumDataElements() {\n/* 224 */ return 1;\n/* */ }", "title": "" }, { "docid": "71dd00231d9015728f7894d7dc337ef4", "score": "0.5262839", "text": "@Override\n public short GetULHashLength() {\n \n return Sha224.HASHULS;\n }", "title": "" }, { "docid": "f75ce52998e80f617c501e9ea4973cb9", "score": "0.5248344", "text": "private String getAudioFlag() {\n return audioFlag;\n }", "title": "" } ]
39e559bc49aad833f06e2419c97d6ad6
float get_map_objects_max_refresh_seconds = 5;
[ { "docid": "42fe8d50ddbb808580bf775ec77822fe", "score": "0.7246655", "text": "public Builder clearGetMapObjectsMaxRefreshSeconds() {\n \n getMapObjectsMaxRefreshSeconds_ = 0F;\n onChanged();\n return this;\n }", "title": "" } ]
[ { "docid": "61ba98be2e3d165e1eb2558dc344df9f", "score": "0.8309828", "text": "@java.lang.Override\n public float getGetMapObjectsMaxRefreshSeconds() {\n return getMapObjectsMaxRefreshSeconds_;\n }", "title": "" }, { "docid": "52cd419687d99c3aed71f1d089efa8dc", "score": "0.8171336", "text": "@java.lang.Override\n public float getGetMapObjectsMaxRefreshSeconds() {\n return getMapObjectsMaxRefreshSeconds_;\n }", "title": "" }, { "docid": "3e0d52da3ab120eeed3cca63da34541e", "score": "0.76101035", "text": "public Builder setGetMapObjectsMaxRefreshSeconds(float value) {\n \n getMapObjectsMaxRefreshSeconds_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ca147ed95bb030ca99fa2239c8b2442b", "score": "0.7576099", "text": "@java.lang.Override\n public float getGetMapObjectsMinRefreshSeconds() {\n return getMapObjectsMinRefreshSeconds_;\n }", "title": "" }, { "docid": "eacbeb5c3f1dbe06789ff115acdc7504", "score": "0.7449054", "text": "@java.lang.Override\n public float getGetMapObjectsMinRefreshSeconds() {\n return getMapObjectsMinRefreshSeconds_;\n }", "title": "" }, { "docid": "1eba463873b591a992653f23447b0a80", "score": "0.6726021", "text": "public Builder setGetMapObjectsMinRefreshSeconds(float value) {\n \n getMapObjectsMinRefreshSeconds_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "92c2ef8767d85f0b82b084e18ae56d09", "score": "0.66537565", "text": "public Builder clearGetMapObjectsMinRefreshSeconds() {\n \n getMapObjectsMinRefreshSeconds_ = 0F;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "6ad5c9286c7ea3d331637a0531ee2f05", "score": "0.57514954", "text": "@java.lang.Override\n public float getGetMapObjectsMinDistanceMeters() {\n return getMapObjectsMinDistanceMeters_;\n }", "title": "" }, { "docid": "e170ffc15ceb2c9e130b0ac09417acdb", "score": "0.5669851", "text": "long getRefreshInterval();", "title": "" }, { "docid": "e170ffc15ceb2c9e130b0ac09417acdb", "score": "0.5669851", "text": "long getRefreshInterval();", "title": "" }, { "docid": "e170ffc15ceb2c9e130b0ac09417acdb", "score": "0.5669851", "text": "long getRefreshInterval();", "title": "" }, { "docid": "7f006b9f637f4c5d070402b5259fb886", "score": "0.56419086", "text": "@java.lang.Override\n public float getGetMapObjectsMinDistanceMeters() {\n return getMapObjectsMinDistanceMeters_;\n }", "title": "" }, { "docid": "65f9b89396c53db2b293f8d8d4fe2baa", "score": "0.5638642", "text": "public void runMapRefresh() {\n final Handler handler = new Handler();\n handler.post(new Runnable() {\n @Override\n public void run() {\n addAllEventsToMap();\n handler.postDelayed(this, QUARTER_MINUTE);\n }\n });\n }", "title": "" }, { "docid": "dc821832b3738a8fac3198bcdd345cb0", "score": "0.54741347", "text": "abstract int getRefreshInterval();", "title": "" }, { "docid": "cc7d95967ad540f1886c8198ff58a354", "score": "0.5392635", "text": "public void refreshMap() {\n\t\tthis.putMap();\n\t}", "title": "" }, { "docid": "6519bcbe1ff46db99fe9d538dd66a508", "score": "0.53738505", "text": "int pendingRequestsRefreshInterval();", "title": "" }, { "docid": "2df3612851450c55b9e79250d9a8c402", "score": "0.537252", "text": "public static int getRefreshRate()\n\t{\n\t\treturn 60;\n\t}", "title": "" }, { "docid": "85018dc6896f78c15ef0355d87c7a139", "score": "0.53468037", "text": "protected final synchronized void setRefreshTime(int ms) {\n if (refresher != null) {\n refresher.stop();\n }\n\n if ((ms <= 0) || (System.getProperty(\"netbeans.debug.heap\") != null)) {\n refresher = null;\n } else {\n refresher = new RefreshRequest(this, ms);\n }\n }", "title": "" }, { "docid": "9aaa334e06b4a8d80734d78f92dda3c9", "score": "0.5334472", "text": "@Override\n \tpublic void onDrawFrame(GL10 glUnused) {\n \t\tlong start = 0, poly_time = 0, clear_time = 0;\n \n \t\tif (mMapPosition == null)\n \t\t\treturn;\n \n \t\tif (timing)\n \t\t\tstart = SystemClock.uptimeMillis();\n \n \t\tGLES20.glStencilMask(0xFF);\n \t\tGLES20.glDisable(GLES20.GL_SCISSOR_TEST);\n \t\tGLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_STENCIL_BUFFER_BIT);\n \t\tGLES20.glFlush();\n \n \t\t// long endTime = SystemClock.uptimeMillis();\n \t\t// long dt = endTime - startTime;\n \t\t// if (dt < 33)\n \t\t// try {\n \t\t// Thread.sleep(33 - dt);\n \t\t// } catch (InterruptedException e) {\n \t\t// Log.d(TAG, \"interrupt\");\n \t\t// return;\n \t\t// }\n \t\t// startTime = SystemClock.uptimeMillis();\n \n \t\tsynchronized (this) {\n \t\t\tmDrawX = mCurX;\n \t\t\tmDrawY = mCurY;\n \t\t\tmDrawZ = mCurZ;\n \t\t\tmDrawScale = mCurScale;\n \n \t\t\tif (mUpdateTiles) {\n \t\t\t\tTilesData tmp = curTiles;\n \t\t\t\tcurTiles = nextTiles;\n \t\t\t\tnextTiles = tmp;\n \t\t\t\tmUpdateTiles = false;\n \t\t\t}\n \t\t}\n \n \t\tint tileCnt = curTiles.cnt;\n \t\tGLMapTile[] tiles = curTiles.tiles;\n \n \t\tif (mBufferMemoryUsage > LIMIT_BUFFERS) {\n \t\t\tLog.d(TAG, \"buffer object usage: \" + mBufferMemoryUsage / (1024 * 1024)\n \t\t\t\t\t+ \"MB\");\n \t\t\tsynchronized (mVBOs) {\n \t\t\t\tfor (VertexBufferObject vbo : mVBOs) {\n \t\t\t\t\tif (vbo.size == 0)\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\tmBufferMemoryUsage -= vbo.size;\n \t\t\t\t\tGLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo.id);\n \t\t\t\t\tGLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, 0, null,\n \t\t\t\t\t\t\tGLES20.GL_STATIC_DRAW);\n \t\t\t\t\tvbo.size = 0;\n \n \t\t\t\t}\n \t\t\t\tGLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n \t\t\t}\n \t\t\tLog.d(TAG, \" > \" + mBufferMemoryUsage / (1024 * 1024) + \"MB\");\n \n \t\t\tif (CACHE_TILES > 50)\n \t\t\t\tCACHE_TILES -= 50;\n \t\t} else if (CACHE_TILES < 300) {\n \t\t\tCACHE_TILES += 50;\n \t\t}\n \n \t\t// uploadCnt = 0;\n \n \t\t// check visible tiles, set tile clip scissors, upload new vertex data\n \t\tfor (int i = 0; i < tileCnt; i++) {\n \t\t\tGLMapTile tile = tiles[i];\n \n \t\t\tif (!setTileScissor(tile, 1))\n \t\t\t\tcontinue;\n \n \t\t\tif (tile.newData) {\n \t\t\t\tuploadTileData(tile);\n \n \t\t\t\tif (timing)\n \t\t\t\t\tLog.d(TAG, \"buffer upload took: \"\n \t\t\t\t\t\t\t+ (SystemClock.uptimeMillis() - start));\n \n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tif (!tile.isDrawn) {\n \t\t\t\tif (tile.parent != null) {\n \t\t\t\t\tif (tile.parent.newData)\n \t\t\t\t\t\tuploadTileData(tile.parent);\n \t\t\t\t} else {\n \t\t\t\t\tif (tile.child[0] != null && tile.child[0].newData)\n \t\t\t\t\t\tuploadTileData(tile.child[0]);\n \t\t\t\t\tif (tile.child[1] != null && tile.child[1].newData)\n \t\t\t\t\t\tuploadTileData(tile.child[1]);\n \t\t\t\t\tif (tile.child[2] != null && tile.child[2].newData)\n \t\t\t\t\t\tuploadTileData(tile.child[2]);\n \t\t\t\t\tif (tile.child[3] != null && tile.child[3].newData)\n \t\t\t\t\t\tuploadTileData(tile.child[3]);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t// GLES20.glFinish();\n \n \t\tif (timing)\n \t\t\tclear_time = (SystemClock.uptimeMillis() - start);\n \n \t\tGLES20.glEnable(GLES20.GL_SCISSOR_TEST);\n \t\tGLES20.glDisable(GLES20.GL_BLEND);\n \n \t\t// Draw Polygons\n \t\tGLES20.glEnable(GLES20.GL_STENCIL_TEST);\n \n \t\tGLES20.glUseProgram(gPolygonProgram);\n \t\tGLES20.glEnableVertexAttribArray(gPolygonVertexPositionHandle);\n \t\tfor (int i = 0; i < tileCnt; i++) {\n \t\t\tif (tiles[i].isVisible) {\n \t\t\t\tGLMapTile tile = tiles[i];\n \n \t\t\t\tif (tile.isDrawn)\n \t\t\t\t\tdrawPolygons(tile, 0);\n \t\t\t\telse\n \t\t\t\t\tdrawProxyPolygons(tile);\n \t\t\t}\n \t\t}\n \n \t\tGLES20.glDisable(GLES20.GL_STENCIL_TEST);\n \t\t// required on GalaxyII, Android 2.3.3\n \t\tGLES20.glDisableVertexAttribArray(gPolygonVertexPositionHandle);\n \n \t\tif (timing) {\n \t\t\tGLES20.glFinish();\n \t\t\tpoly_time = (SystemClock.uptimeMillis() - start);\n \t\t}\n \t\t// GLES20.glFlush();\n \n \t\t// Draw lines\n \t\tGLES20.glEnable(GLES20.GL_BLEND);\n \t\tGLES20.glUseProgram(gLineProgram);\n \n \t\tGLES20.glEnableVertexAttribArray(gLineVertexPositionHandle);\n \t\tGLES20.glEnableVertexAttribArray(gLineTexturePositionHandle);\n \n \t\tfor (int i = 0; i < tileCnt; i++) {\n \t\t\tif (tiles[i].isVisible) {\n \t\t\t\tGLMapTile tile = tiles[i];\n \n \t\t\t\tif (tile.isDrawn)\n \t\t\t\t\tdrawLines(tile, 0);\n \t\t\t\telse\n \t\t\t\t\tdrawProxyLines(tile);\n \t\t\t}\n \t\t}\n \n \t\tif (timing) {\n \t\t\tGLES20.glFinish();\n \t\t\tLog.d(TAG, \"draw took \" + (SystemClock.uptimeMillis() - start) + \" \"\n \t\t\t\t\t+ clear_time + \" \" + poly_time);\n \t\t}\n \t\tGLES20.glDisableVertexAttribArray(gLineVertexPositionHandle);\n \t\tGLES20.glDisableVertexAttribArray(gLineTexturePositionHandle);\n \n \t}", "title": "" }, { "docid": "9526f23426e39b3cc5266ed2785826fe", "score": "0.5332883", "text": "protected List<GeojsonOverlayManager.TileCoordinate> doInBackground(IMapDelegate... map) {\n int width;\n int height;\n try {\n width = map[0].getMapWidth();\n height = map[0].getMapHeight();\n this.zoom = ((int) map[0].getZoomLevel());\n } catch (Throwable localThrowable) {\n width = 0;\n height = 0;\n }\n if ((width <= 0) || (height <= 0)) {\n return null;\n }\n //return bm.a(bm.this, this.e, i, j);\n List<GeojsonOverlayManager.TileCoordinate> calTileList =\n GeojsonOverlayManager.this.getTilesInDomain(zoom, width, height);\n if (calTileList == null || calTileList.isEmpty()){\n return null;\n }\n\n// long start = System.currentTimeMillis();\n // 用map找出俩list的不同元素--------------------------------------------------------\n int maxSize = Math.max(screenTileList.size(), calTileList.size());\n Map<TileCoordinate,Integer> tileMap = new HashMap<>(maxSize);\n // 新增的tile\n// CopyOnWriteArrayList<TileCoordinate> drawTileList = new CopyOnWriteArrayList<>();\n List<GeojsonOverlayManager.TileCoordinate> cacheExistList = new ArrayList<>();\n List<GeojsonOverlayManager.TileCoordinate> needDownloadList = new ArrayList<>();\n // 需要删除的tile list\n CopyOnWriteArrayList<TileCoordinate> delTileList = new CopyOnWriteArrayList<>();\n\n for (TileCoordinate tile : screenTileList){\n tileMap.put(tile, 1);\n }\n // 给屏幕中原有的tile集合赋值数据\n for (TileCoordinate tile : calTileList) {\n long tileId = tile.tileId;\n List<GeoJsonItem> geoJsonItemList =\n cacheManager.getGeojsonDataForTile(tileId);\n if (!isListNull(geoJsonItemList)){ // cache中存在\n tile.itemList = new ArrayList<>();\n for (GeoJsonItem item : geoJsonItemList){\n tile.itemList.add(item.clone());\n }\n }\n if (tileMap.get(tile) == null){ // 新增的tile\n// drawTileList.add(tile);\n cacheExistList.add(tile);\n needDownloadList.add(tile);\n } else { // 重复元素\n tileMap.put(tile, 2);\n }\n }\n for (Map.Entry<TileCoordinate,Integer> entry : tileMap.entrySet()){\n if (entry.getValue() == 1){ // 需要删除的tile\n delTileList.add(entry.getKey());\n }\n }\n\n // 用list的removeAll()来求差集------------------------------------------------------------------------------------\n\n// CopyOnWriteArrayList<TileCoordinate> drawTileList = new CopyOnWriteArrayList<>();\n//// if (drawTileList != null && !drawTileList.isEmpty()){\n//// drawTileList.clear();\n//// }\n//\n// // 求新增:drawTileList\n// copyList(drawTileList, calTileList);\n// drawTileList.removeAll(screenTileList);\n// // 给屏幕中原有的tile集合赋值数据\n// for (TileCoordinate tile : calTileList) {\n// long tileId = tile.tileId;\n// List<GeoJsonItem> geoJsonItemList =\n// cacheManager.getGeojsonDataForTile(tileId);\n// if (!isListNull(geoJsonItemList)){ // cache中存在\n// tile.itemList = new ArrayList<>();\n// for (GeoJsonItem item : geoJsonItemList){\n// tile.itemList.add(item.clone());\n// }\n// }\n// }\n\n// // 缓存中是否存在新增的tile信息\n// List<GeojsonOverlayManager.TileCoordinate> cacheExistList = new ArrayList<>();\n// List<GeojsonOverlayManager.TileCoordinate> needDownloadList = new ArrayList<>();\n// if (!drawTileList.isEmpty()){\n// for (TileCoordinate tile : drawTileList) {\n// long tileId = tile.tileId;\n// List<GeoJsonItem> geoJsonItemList =\n// cacheManager.getGeojsonDataForTile(tileId);\n// if (!isListNull(geoJsonItemList)){ // cache中存在\n// tile.itemList = new ArrayList<>();\n// for (GeoJsonItem item : geoJsonItemList){\n// tile.itemList.add(item.clone());\n// }\n// cacheExistList.add(tile);\n// } else { // needDownload\n// needDownloadList.add(tile);\n// }\n// }\n// }\n// // 需要删除的tile list\n// CopyOnWriteArrayList<TileCoordinate> delTileList = new CopyOnWriteArrayList<>();\n// copyList(delTileList, screenTileList);\n// delTileList.removeAll(calTileList);\n // 计算完毕--------------------------------------------------------------------------\n\n// long calEnd = System.currentTimeMillis();\n// Log.e(\"@@@\", \"geojson calculate time is \"+(calEnd-start)+\"ms\");\n // 更新screenTileList\n if (screenTileList != null && !screenTileList.isEmpty()){\n screenTileList.clear();\n }\n copyList(screenTileList, calTileList);\n\n // 清理要删除tile的点线面\n if (!isListNull(delTileList)){\n delTileList(delTileList);\n }\n // draw cache exist\n if (!isListNull(cacheExistList)){\n for (TileCoordinate tile : cacheExistList) {\n drawTile(tile);\n }\n }\n\n // download\n if (!isListNull(needDownloadList)){\n taskManager.updataConntionList(geoJsonDownTiles(needDownloadList));\n }\n return null;\n// return GeojsonOverlayManager.this.getTilesInDomain(zoom, width, height);\n }", "title": "" }, { "docid": "ae26fe7eebbda682456988736d6b2919", "score": "0.5332305", "text": "int getUpdateInterval();", "title": "" }, { "docid": "2616cdd1134e3b5db39571c237d2de5e", "score": "0.5314623", "text": "@Override\n public void onMapLoaded() {\n mMap.animateCamera(cu);\n\n }", "title": "" }, { "docid": "d1da3bc4f6f355b8cc2ce996e766f74e", "score": "0.52978253", "text": "public void setUpdateOverviewMaps(boolean update) {\n iUpdateOverviewMaps = update;\n }", "title": "" }, { "docid": "d770086210bb3594a514cb1750b39ce7", "score": "0.5280846", "text": "private void loadAllMaps() {\r\n\t\tMap map = null;\r\n\t\tint maxLevel = 2;\r\n\t\ttry {\r\n\t\t\tmap = mapLoader.loadMap(1);\r\n\t\t\tmapManager = new MapManager();\r\n\t\t\tmapManager.addNewMap(map);\r\n\t\t\tfor (maxLevel = 2; maxLevel < 10; maxLevel++) {\r\n\t\t\t\tmapManager.addNewMap(mapLoader.createMap(maxLevel));\r\n\t\t\t}\r\n\r\n\t\t} catch (MapNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tmapManager.setCurrentMap(map);\r\n\t\t}\r\n\t\tSystem.out.println(\"Max level loaded is \" + --maxLevel);\r\n\t}", "title": "" }, { "docid": "8b00ea73f33f13fedf5110b0bbe24a72", "score": "0.5259098", "text": "public Builder clearGetMapObjectsMinDistanceMeters() {\n \n getMapObjectsMinDistanceMeters_ = 0F;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "12aebaf5cbdc94476a769251e0ac095c", "score": "0.5258664", "text": "public void setMaxLastHitTime(Integer maxLastHitTime) {\n this.maxLastHitTime = maxLastHitTime;\n }", "title": "" }, { "docid": "162b2346318191bab44e3df1b28ea30d", "score": "0.5242161", "text": "public Map getMap()\n/* */ {\n/* 50 */ return this.map;\n/* */ }", "title": "" }, { "docid": "02416055adecb911d3e91f5be1e5c327", "score": "0.5237964", "text": "public abstract Integer getPageCacheTimeout();", "title": "" }, { "docid": "073f23f1038850aafa31b85caf8b80a2", "score": "0.52343774", "text": "protected int getReverseGeocodeTimeout()\n {\n return TIMEOUT_ReverseGeocode;\n }", "title": "" }, { "docid": "8af18e1bd19911b073e01402da987c68", "score": "0.52188015", "text": "@Override\n\tpublic long getMaximumLag() {\n\t\treturn 600000; // 10 mins\n\t}", "title": "" }, { "docid": "c89ed5314f97ee2d9a895e26e12c7f69", "score": "0.52088296", "text": "protected long cacheAgeLimitMillis() {\n return 3600000;\n }", "title": "" }, { "docid": "ed61aed204b8433b15e911e783be6826", "score": "0.5202099", "text": "@Override\n public void completeRefresh() {\n\n\n }", "title": "" }, { "docid": "6d70254748dcb779f9d143225a0879d6", "score": "0.5183827", "text": "@Override\r\n\tpublic void refresh() {\n\t\tSlowdownEnemies.setFreezeTime((float) (Math.sqrt(getGrade()) * 2000));\r\n\t}", "title": "" }, { "docid": "6f3c248e19f8522fc1885aa02355fd99", "score": "0.5170854", "text": "private synchronized long loadClientInfos()\r\n {\r\n \tif (System.currentTimeMillis() - lastUpdate < maxInterval)\r\n \t{\r\n \t\tLogUtils.logDebug(\"Client info interval less then maxInterval, upate canceled ....\");\r\n \t\treturn lastUpdate;\r\n \t}\r\n \t\r\n \tLogUtils.logDebug(\"Client info need be reload for interval ....\");\r\n \t\r\n \ttry\r\n \t{\r\n// \t\tList<ClientInfo> clientList = ipDao.getClientInfoList();\r\n \t\tList<ClientInfo> clientList = daoFacade.getClientIPDAO().getClientInfoList();\r\n \t\tfor (ClientInfo client : clientList)\r\n \t\t{\r\n \t\t\tclientMap.put(client.getClientIp(), client);\r\n \t\t}\r\n \t}\r\n \tcatch(Exception e)\r\n \t{\r\n \t lastUpdate = System.currentTimeMillis();//to be safe\r\n \t\tthrow new ServiceDBException(\"loadClientInfos() db exception\", e);\r\n \t}\r\n \t\r\n \tlastUpdate = System.currentTimeMillis();\r\n \t\r\n \tLogUtils.logDebug(\"Client info reload over ....\");\r\n \t\r\n \treturn lastUpdate;\r\n }", "title": "" }, { "docid": "7128c442b1f206915756227117b2d448", "score": "0.5152059", "text": "public long getObjectIdleTimeOut() {\r\n\t\treturn objectIdleTimeOut;\r\n\t}", "title": "" }, { "docid": "d8f2e1be3d4011cb9e5890372d4565fd", "score": "0.5151103", "text": "public void refreshAllLayers() {\n if(LOG.isTrace()) {\n LOG.trace(\"TileMapControlThread.refreshAllLayers()\", \"\");\n }\n \n if(tmfd != null) {\n MapTask event = new MapTask(this);\n event.refreshAllLayers(); \n }\n }", "title": "" }, { "docid": "b0425290b20faa1e1565b8eeed66c0fe", "score": "0.5144863", "text": "@java.lang.Override\n public int getCameraRefreshRate() {\n return cameraRefreshRate_;\n }", "title": "" }, { "docid": "4d7c076c86fe99abea5c756fa378e78a", "score": "0.51258814", "text": "protected int getGeocodeTimeout()\n {\n return TIMEOUT_Geocode;\n }", "title": "" }, { "docid": "92353a9889a5eef460a4d8c6cfead751", "score": "0.51147777", "text": "@Override\n public long getRefreshInterval() {\n return refreshInterval_;\n }", "title": "" }, { "docid": "92353a9889a5eef460a4d8c6cfead751", "score": "0.51147777", "text": "@Override\n public long getRefreshInterval() {\n return refreshInterval_;\n }", "title": "" }, { "docid": "92353a9889a5eef460a4d8c6cfead751", "score": "0.51147777", "text": "@Override\n public long getRefreshInterval() {\n return refreshInterval_;\n }", "title": "" }, { "docid": "a3001f9ba9a5b212f7fe45071e1f22ad", "score": "0.5106006", "text": "public void updateMap(float dt) {\n\n CCTileMapAtlas tilemap = (CCTileMapAtlas)getChildByTag(kTagTileMap);\n\n //\n // For example you can iterate over all the tiles\n // using this code, but try to avoid the iteration\n // over all your tiles in every frame. It's very expensive\n //\tfor(int x=0; x < tilemap.tgaInfo->width; x++) {\n //\t\tfor(int y=0; y < tilemap.tgaInfo->height; y++) {\n //\t\t\tccColor3B c =[tilemap tileAt:ccg(x,y)];\n //\t\t\tif( c.r != 0 ) {\n //\t\t\t\tNSLog(@\"%d,%d = %d\", x,y,c.r);\n //\t\t\t}\n //\t\t}\n //\t}\n\n // NEW since v0.7\n ccColor3B c = tilemap.tile(ccGridSize.ccg(13,21));\n c.r++;\n c.r %= 50;\n if( c.r==0)\n c.r=1;\n\n // NEW since v0.7\n tilemap.setTile(c, ccGridSize.ccg(13,21));\n }", "title": "" }, { "docid": "40f50930cb7999bd005f8cf1ec7199e5", "score": "0.50875777", "text": "public void loadMap(String[] hole) {\n /* if (groundOverlays.size() != 0){\n for (GroundOverlay groundOverlay : groundOverlays){\n groundOverlay.remove();\n }\n groundOverlays.clear();\n }\n */\n //googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.parseDouble(hole[3]), Double.parseDouble(hole[4])), Float.parseFloat(hole[9])));\n String rotate = hole[10];\n if (rotate.equalsIgnoreCase(\"270\")){\n rotate = \"90\";\n }else if (rotate.equalsIgnoreCase(\"90\")){\n rotate = \"270\";\n }\n\n DisplayMetrics metrics = new DisplayMetrics();\n context.getWindowManager().getDefaultDisplay().getMetrics(metrics);\n int screenDensity = metrics.densityDpi;\n\n Float zoom = Float.parseFloat(hole[9]);\n if (screenDensity == DisplayMetrics.DENSITY_MEDIUM) {\n if ((context.getResources().getConfiguration().screenLayout &\n Configuration.SCREENLAYOUT_SIZE_MASK) ==\n Configuration.SCREENLAYOUT_SIZE_NORMAL) {\n zoom -= .4f;\n }else{\n zoom += .5f;\n }\n } else if (screenDensity == DisplayMetrics.DENSITY_HIGH) {\n zoom -= .23f;\n }\n\n\n googleMap.moveCamera(CameraUpdateFactory.newCameraPosition(new CameraPosition(new LatLng(Double.parseDouble(hole[3]), Double.parseDouble(hole[4])),zoom,0.0f,Float.parseFloat(rotate))));\n /*\n LatLng sw_point = new LatLng(Double.parseDouble(hole[5]),Double.parseDouble(hole[6]));\n LatLng ne_point = new LatLng(Double.parseDouble(hole[7]),Double.parseDouble(hole[8]));\n addWorldOverlay(sw_point,ne_point);\n\n options.inSampleSize = 2;\n holeBitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.holelayouttest, options);\n holeImage = BitmapDescriptorFactory.fromBitmap(holeBitmap);\n holeBitmap.recycle();\n holeBitmap = null;\n\n LatLngBounds bounds = new LatLngBounds(sw_point,ne_point);\n GroundOverlay groundOverlay = googleMap.addGroundOverlay(new GroundOverlayOptions()\n .image(holeImage)\n .positionFromBounds(bounds));\n groundOverlays.add(groundOverlay);\n holeImage = null;\n */\n }", "title": "" }, { "docid": "fc30c3e1408c3c681272dc379b05c8a1", "score": "0.5081005", "text": "private void refreshMap() {\r\n if (map != null) {\r\n map.setDrone(lat, lon, rota);\r\n Log.e(\"Gaspard\", \"drone rota = \"+Double.toString(rota));\r\n //Log.e(\"Gaspard\", \"Mise a jour de la pos du drone sur carte coord : \"+Double.toString(lat)+\":\"+Double.toString(lon));\r\n }\r\n }", "title": "" }, { "docid": "0df13245b9fd3b5b8aad8552a92afa29", "score": "0.5073045", "text": "public double getInternalTileTimeBufferSize() {\n return internalTileTimeBufferSize;\n }", "title": "" }, { "docid": "1690adfa18c80ea566b143d68f592b0f", "score": "0.507267", "text": "public int getRefreshTime() {\n return refreshTime;\n }", "title": "" }, { "docid": "fa9578fed9ed635670fb82a72a6680a8", "score": "0.50654966", "text": "@Override\n protected void onRefreshRequest() {\n }", "title": "" }, { "docid": "ebacf9cddff69222da7d072076fbf627", "score": "0.5057404", "text": "protected long idleUnloadPeriod ()\n {\n return 5 * 60 * 1000L;\n }", "title": "" }, { "docid": "a5cd4c7e3938a8528625d9c0764aaa64", "score": "0.50564754", "text": "@java.lang.Deprecated public boolean hasNumParallelMapCalls() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }", "title": "" }, { "docid": "9e9d409dbf96e9ea5abbbf1baafe1123", "score": "0.50547934", "text": "@Override\n public void onLowMemory() {\n super.onLowMemory();\n\n this.fixedLocationMapView.onLowMemory();\n }", "title": "" }, { "docid": "20157bec7ca5da0b4cd0b3f5f0a8f7ec", "score": "0.5053462", "text": "private void updateMap()\n {\n new Thread(() -> activity.runOnUiThread(() ->\n {\n map.clear();\n for (UserLocation location: locations)\n {\n map.addCircle(new CircleOptions()\n .center(location.getLatLng())\n .radius(location.getRadius())\n .strokeColor(Color.RED));\n }\n })).start();\n }", "title": "" }, { "docid": "2c1cdce8f6415241071d2e6a2be4fed0", "score": "0.5045072", "text": "@java.lang.Deprecated boolean hasNumParallelMapCalls();", "title": "" }, { "docid": "8cd6dcb979dfbe88e26744816181cb83", "score": "0.50291073", "text": "@Override\n\tpublic void refresh(TuioTime arg0)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "4f94151112b93ce6bab582971631f653", "score": "0.50285083", "text": "@Override\n public long getRefreshInterval() {\n return refreshInterval_;\n }", "title": "" }, { "docid": "4f94151112b93ce6bab582971631f653", "score": "0.50285083", "text": "@Override\n public long getRefreshInterval() {\n return refreshInterval_;\n }", "title": "" }, { "docid": "4f94151112b93ce6bab582971631f653", "score": "0.50285083", "text": "@Override\n public long getRefreshInterval() {\n return refreshInterval_;\n }", "title": "" }, { "docid": "f1af09ac06a753d8271e9523ed607dc2", "score": "0.5015411", "text": "@java.lang.Deprecated public boolean hasNumParallelMapCalls() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }", "title": "" }, { "docid": "8849acf84da90953e1eccceea49c680a", "score": "0.50066733", "text": "private void periodicallyPokeGateways() {\n \tlog.trace(\"launching ping timer...\");\n \tTimer timer = new Timer();\n \n \t//This will transition from active map to inactive map\n \ttimer.schedule(new TimerTask() { \n \t\tpublic final void run() {\n \t\t ESGDataNodeServiceImpl.this.pokeGateways(ESGDataNodeServiceImpl.this.gateways,\n \t\t\t\t\t\t\t ESGDataNodeServiceImpl.this.unavailableGateways);\n \n \t\t}\n \t },0,5*1000);\n \t\n \t//This will transition from inactive map to active map\n \ttimer.schedule(new TimerTask() { \n \t\tpublic final void run() {\n \t\t ESGDataNodeServiceImpl.this.pokeGateways(ESGDataNodeServiceImpl.this.unavailableGateways,\n \t\t\t\t\t\t\t ESGDataNodeServiceImpl.this.gateways);\n \t\t log.trace(\"Available Gateways: [\"+gateways.size()+\"] Unavailable: [\"+unavailableGateways.size()+\"]\");\n \t\t}\n \t },0,10*1000);\n }", "title": "" }, { "docid": "fd1d442b61126245ff51b4844891a90d", "score": "0.5005893", "text": "public void expandFireObstacle() {\n double minLat = -10000;\n double maxLat = -10000;\n double minLon = -10000;\n double maxLon = -10000;\n\n boolean isTimeReached = false;\n\n // When the time limit is reached, the fire obstacles all expand past their max size\n if (timerValue >= GAME_TIME_LIMIT){\n isTimeReached = true;\n }\n\n // Determine the min/max latitudes and longitudes in order to determine if the max size\n // has been reached\n for (int i = 0; i < allPolygonPoints.size(); i++) {\n LatLng currentPoint = allPolygonPoints.get(i);\n double currentLat = currentPoint.latitude;\n double currentLon = currentPoint.longitude;\n if (currentLat < minLat || minLat == -10000) {\n minLat = currentLat;\n } else if (currentLat > maxLat || maxLat == -10000) {\n maxLat = currentLat;\n }\n if (currentLon < minLon || minLon == -10000) {\n minLon = currentLon;\n } else if (currentLon > maxLon || maxLon == -10000) {\n maxLon = currentLon;\n }\n }\n\n double latDiff = Math.abs(maxLat - minLat);\n double lonDiff = Math.abs(maxLon - minLon);\n\n // If the max size is reached and the time limit has not been reached reduce the size\n boolean maxSizeReached = ((latDiff / DRONE_MOVEMENT_DISTANCE) >= maxHeight || (lonDiff / DRONE_MOVEMENT_DISTANCE) >= maxWidth);\n if (maxSizeReached && !isTimeReached) {\n\n // Remove the previous polygon from the map and create a new PolygonOptions\n fireObstaclePolygon.remove();\n PolygonOptions newFireObstacleOptions = new PolygonOptions()\n .strokeColor(FIRE_STROKE_COLOR)\n .fillColor(FIRE_FILL_COLOR);\n\n // Randomly generate the amount that both the latitude and longitude will change by\n double coordChange = (Double.parseDouble(Integer.toString(rnd.nextInt(8))) / 10000) + 0.0003;\n\n // Iterate through all of the points in the fire obstacle and change the latitude/longitude based\n // on the quadrant that the point falls in\n for (int i = 0; i < allPolygonPoints.size(); i++){\n LatLng currentPoint = allPolygonPoints.get(i);\n\n // If the point is in the top left quadrant, decrement latitude and increment longitude\n if (topLeftPoints.contains(currentPoint)){\n double newLat = currentPoint.latitude - coordChange;\n double newLon = currentPoint.longitude + coordChange;\n LatLng newPoint = new LatLng(newLat, newLon);\n int indexOfPoint = topLeftPoints.indexOf(currentPoint);\n topLeftPoints.set(indexOfPoint, newPoint);\n newFireObstacleOptions.add(newPoint);\n }\n\n // If the point is in the top right quadrant, decrement latitude and decrement longitude\n else if (topRightPoints.contains(currentPoint)){\n double newLat = currentPoint.latitude - coordChange;\n double newLon = currentPoint.longitude - coordChange;\n LatLng newPoint = new LatLng(newLat, newLon);\n int indexOfPoint = topRightPoints.indexOf(currentPoint);\n topRightPoints.set(indexOfPoint, newPoint);\n newFireObstacleOptions.add(newPoint);\n }\n\n // If the point is in the bottom right quadrant, increment latitude and decrement longitude\n else if (botRightPoints.contains(currentPoint)){\n double newLat = currentPoint.latitude + coordChange;\n double newLon = currentPoint.longitude - coordChange;\n LatLng newPoint = new LatLng(newLat, newLon);\n int indexOfPoint = botRightPoints.indexOf(currentPoint);\n botRightPoints.set(indexOfPoint, newPoint);\n newFireObstacleOptions.add(newPoint);\n }\n\n // If the point is in the bottom left, increment latitude and increment longitude\n else if (botLeftPoints.contains(currentPoint)){\n double newLat = currentPoint.latitude + coordChange;\n double newLon = currentPoint.longitude + coordChange;\n LatLng newPoint = new LatLng(newLat, newLon);\n int indexOfPoint = botLeftPoints.indexOf(currentPoint);\n botLeftPoints.set(indexOfPoint, newPoint);\n newFireObstacleOptions.add(newPoint);\n }\n }\n // Add the new polygon to the map\n fireObstaclePolygon = googleMap.addPolygon(newFireObstacleOptions);\n allPolygonPoints = fireObstaclePolygon.getPoints();\n }\n\n // If the max size for the fire obstacle has not been reached, increase the size of it\n else {\n\n // Remove the previous polygon from the map and create a new PolygonOptions\n fireObstaclePolygon.remove();\n PolygonOptions newFireObstacleOptions = new PolygonOptions()\n .strokeColor(FIRE_STROKE_COLOR)\n .fillColor(FIRE_FILL_COLOR);\n\n // Randomly generate the amount that both the latitude and longitude will change by\n double coordChange = (Double.parseDouble(Integer.toString(rnd.nextInt(8))) / 10000) + 0.0003;\n\n // Iterate through all of the points in the fire obstacle and change the latitude/longitude based\n // on the quadrant that the point falls in\n for (int i = 0; i < allPolygonPoints.size(); i++){\n LatLng currentPoint = allPolygonPoints.get(i);\n\n // If the point is in the top left quadrant, increment the latitude and decrement the longitude\n if (topLeftPoints.contains(currentPoint)){\n double newLat = currentPoint.latitude + coordChange;\n double newLon = currentPoint.longitude - coordChange;\n LatLng newPoint = new LatLng(newLat, newLon);\n int indexOfPoint = topLeftPoints.indexOf(currentPoint);\n topLeftPoints.set(indexOfPoint, newPoint);\n newFireObstacleOptions.add(newPoint);\n }\n\n // If the point is in the top right quadrant, increment the latitude and increment the longitude\n else if (topRightPoints.contains(currentPoint)){\n double newLat = currentPoint.latitude + coordChange;\n double newLon = currentPoint.longitude + coordChange;\n LatLng newPoint = new LatLng(newLat, newLon);\n int indexOfPoint = topRightPoints.indexOf(currentPoint);\n topRightPoints.set(indexOfPoint, newPoint);\n newFireObstacleOptions.add(newPoint);\n }\n\n // If the point is in the bottom right quadrant, decrement the latitude and increment the longitude\n else if (botRightPoints.contains(currentPoint)){\n double newLat = currentPoint.latitude - coordChange;\n double newLon = currentPoint.longitude + coordChange;\n LatLng newPoint = new LatLng(newLat, newLon);\n int indexOfPoint = botRightPoints.indexOf(currentPoint);\n botRightPoints.set(indexOfPoint, newPoint);\n newFireObstacleOptions.add(newPoint);\n }\n\n // If the point is in the bottom left quadrant, decrement the latitude and decrement the longitude\n else if (botLeftPoints.contains(currentPoint)){\n double newLat = currentPoint.latitude - coordChange;\n double newLon = currentPoint.longitude - coordChange;\n LatLng newPoint = new LatLng(newLat, newLon);\n int indexOfPoint = botLeftPoints.indexOf(currentPoint);\n botLeftPoints.set(indexOfPoint, newPoint);\n newFireObstacleOptions.add(newPoint);\n }\n }\n\n // Add the new polygon to the map\n fireObstaclePolygon = googleMap.addPolygon(newFireObstacleOptions);\n allPolygonPoints = fireObstaclePolygon.getPoints();\n }\n }", "title": "" }, { "docid": "04f4e2a9ebe867c4c18fa854804c11ad", "score": "0.50040996", "text": "int getRefreshInterval() {\r\n\t\treturn timer==null ? -1 : timer.getDelay();\r\n\t}", "title": "" }, { "docid": "6f9fe37033bff6b534673186925cb622", "score": "0.49996695", "text": "Long maxLatencyInMs();", "title": "" }, { "docid": "57f5aaa3a9450efd29fd3a1dfb042e90", "score": "0.49894634", "text": "private BufferedImage updateMapRenderer()\n\t{\n\t\tBufferedImage mi = null;\n\t\tCodeTimer ct = new CodeTimer(\"whole map\");\n\t\ttry\n\t\t{\n\t\t\tSwarm.config.mapScale = scale;\n\t\t\tSwarm.config.mapLongitude = center.x;\n\t\t\tSwarm.config.mapLatitude = center.y;\n\t\t\t\n\t\t\tparent.getThrobber().increment();\n\t\t\t\n\t\t\tint width = mapImagePanel.getWidth() - (INSET * 2);\n\t\t\tint height = mapImagePanel.getHeight() - (INSET * 2);\n\t\t\t\n\t\t\tpickMapParameters(width, height);\n\t\t\t\n\t\t\tSwarm.logger.finest(\"map scale: \" + scale);\n\t\t\tSwarm.logger.finest(\"center: \" + center.x + \" \" + center.y);\n\t\t\t\n\t\t\tMapRenderer mr = new MapRenderer(range, projection);\n\t\t\tct.mark(\"pre bg\");\n\t\t\timage = images.getMapBackground(projection, range, width, scale);\n\t\t\tct.mark(\"bg\");\n\t\t\tmr.setLocation(INSET, INSET, width);\n\t\t\tmr.setMapImage(image);\n\t\t\tmr.setGeoLabelSet(labels);\n\t\t\tmr.createGraticule(6, true);\n\t\t\tmr.createBox(6); // The black outline of the map\n\t\t\t\n File linedir = new File(\"mapdata/Lines\"); // DCK : deal with missing Lines directory\n if(linedir != null) {\n File[] files = linedir.listFiles();\n if(files != null)\n for (File f : files)\n if (f.isFile())\n mr.createLine(f.toString());\n }\n\t\t\t\n\t\t\tmr.createScaleRenderer(1 / projection.getScale(center), INSET, 14);\n\t\t\tTextRenderer tr = new TextRenderer(mapImagePanel.getWidth() - INSET, 14, projection.getName() + \" Projection\");\n\t\t\ttr.antiAlias = false;\n\t\t\ttr.font = new Font(\"Arial\", Font.PLAIN, 10);\n\t\t\ttr.horizJustification = TextRenderer.RIGHT;\n\t\t\tmr.addRenderer(tr);\n\t\t\trenderer = mr;\n\t\t\t\n\t\t\tPlot plot = new Plot();\n\t\t\tplot.setSize(mapImagePanel.getWidth(), mapImagePanel.getHeight());\n\t\t\tplot.addRenderer(renderer);\n\t\t\tct.mark(\"pre plot\");\n\t\t\tmi = plot.getAsBufferedImage(false);\n\t\t\tct.mark(\"plot\");\n\t\t\tdragDX = Integer.MAX_VALUE;\n\t\t\tdragDY = Integer.MAX_VALUE;\n\t\t\tct.stopAndReport();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSwarm.logger.log(Level.SEVERE, \"Exception during map creation.\", e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tparent.getThrobber().decrement();\n\t\t}\n\t\treturn mi;\n\t}", "title": "" }, { "docid": "9213c27ab7f6deda0abe9c9245ba4431", "score": "0.49840823", "text": "boolean requiresSpeedUpdate() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8234813683868431636a8a08015ca70b", "score": "0.49824706", "text": "private void updateMapOverlays() {\n\t\tList<Overlay> mapOverlays = mMapView.getOverlays();\n\t\tmapOverlays.clear();\n\t\tmapOverlays.add(getUserOverlay());\n\t\tif (mSelectedGeoPoint != null) {\n\t\t\tmapOverlays.add(getSelectedOverlay());\n\t\t}\n\t\tmMapView.invalidate();\n\t\tupdateDistanceText();\n\t}", "title": "" }, { "docid": "1e689ef270e8e98c65dbfd9d0e9beb65", "score": "0.49807763", "text": "public void refreshMap(MapFull map) {\n map.forEach(maptile -> refreshMapTile(map.getPositionForTile(maptile.getProperties()), maptile));\n }", "title": "" }, { "docid": "bdab4771cb80e8668b79ccad756b5d7c", "score": "0.49785024", "text": "public void onModuleLoad() {\n MapOptions mapOptions = MapOptions.newInstance();\n mapOptions.setMapTypes(new ArrayList<MapType>() { {\n add(MapType.getPhysicalMap());\n } });\n\n map = new MapWidget(centre, 2, mapOptions);\n map.setSize(\"100%\", \"100%\");\n map.setZoomLevel(8);\n\n map.addControl(new SmallZoomControl3D());\n map.addControl(new ScaleControl());\n \n RootLayoutPanel.get().add(map);\n \n new Timer() {\n public void run() {\n service.getAllFlightStatus(\n new AsyncCallback<Info[]>() {\n public void onFailure(Throwable caught) {\n // TODO what should I do here?\n }\n public void onSuccess(Info[] infos) {\n update(infos);\n }\n });\n }\n }.scheduleRepeating(1000);\n }", "title": "" }, { "docid": "e11c403a05c88fc9baf3caed8ad4d68b", "score": "0.49563754", "text": "private void updateMapArea() {\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n int width = displayMetrics.widthPixels;\n int height = displayMetrics.heightPixels;\n\n // Subtract one tile from map width / height\n mMapAreaText.setText(\n String.format(\n Locale.getDefault(),\n \"%s %dx%dpx\\n%s %dx%dpx\\n%s %d\",\n getString(R.string.MapSize),\n (mService.getTiles().getXTilesNum() * BitmapHolder.WIDTH - BitmapHolder.WIDTH),\n (mService.getTiles().getYTilesNum() * BitmapHolder.HEIGHT - BitmapHolder.HEIGHT),\n getString(R.string.ScreenSize),\n width,\n height,\n getString(R.string.Tiles),\n (mService.getTiles().getOverhead() + mService.getTiles().getTilesNum())\n )\n );\n }", "title": "" }, { "docid": "8a8c2785eb562f41b80aa4bbdeba19f0", "score": "0.49535772", "text": "private void cachetimeout(String key, Map<Integer, Map<String, LoadInfo>> value, RemovalCause cause) {\n\t\tlastreadtime = 0L;\n\t}", "title": "" }, { "docid": "e9a2b026a0489631effea43c82656314", "score": "0.49489543", "text": "@java.lang.Override\n public int getCameraRefreshRate() {\n return cameraRefreshRate_;\n }", "title": "" }, { "docid": "5036a32b0799e98cac4884074eb702f4", "score": "0.49478835", "text": "public void allowRefreshing() {\n\t\tthis.tracerThread.allowRefreshing();\n\t}", "title": "" }, { "docid": "646a4a07ef32872a4592aebaf2b022f3", "score": "0.49455246", "text": "public int getRefresh();", "title": "" }, { "docid": "b4539f8ededa1381d294f8d251feff5d", "score": "0.49447134", "text": "public Builder setGetMapObjectsMinDistanceMeters(float value) {\n \n getMapObjectsMinDistanceMeters_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "c163c0e03df9945b5e456519d129f26e", "score": "0.49424058", "text": "int getUpdateTime();", "title": "" }, { "docid": "f79fb362795c5fc58a872e02b5f91b00", "score": "0.49362966", "text": "public OrthoCachedTiledMapRenderer (TiledMap map) {\n\t\tthis(map, 1, 2000);\n\t}", "title": "" }, { "docid": "3061dae71ae0361b14f0eb82dd22be33", "score": "0.4935348", "text": "public void mapChanged() {\n try {\n semaphore.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n mapChanged = true;\n semaphore.release();\n }", "title": "" }, { "docid": "87e1e63f5d6967b52020af3271a30587", "score": "0.4931152", "text": "@Override\n\t\t\t\tpublic void onMapAnimationFinish() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "cf61a6c5f3a22b7889d57d9fd492afda", "score": "0.4920667", "text": "@Override\n public Long setTimer() {\n return 15000L;\n }", "title": "" }, { "docid": "183ab44bcc569a76c10ce64eac4e7785", "score": "0.49126822", "text": "private int m114711c(PictureUploadStrategy pictureUploadStrategy) {\n if (pictureUploadStrategy == null || pictureUploadStrategy.getRetrieveImageMaximumTimes() <= 0) {\n return 10;\n }\n return pictureUploadStrategy.getRetrieveImageMaximumTimes();\n }", "title": "" }, { "docid": "c10879a764940d50973823224e7968c3", "score": "0.49025652", "text": "@Override\n \t\t\t\tpublic void onCameraChange(CameraPosition arg0)\n \t\t\t\t{\n \t\t\t\t\t\n \t\t\t\t\twifiLocate(findViewById(R.id.main_map));\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t \n \t\t\t cUpdate = CameraUpdateFactory.newLatLngBounds(decorahBound, 5);\n \t\t\t\t\t\n \t\t\t\t\tmMap.moveCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 5));\n \t mMap.setOnCameraChangeListener(null);\n \t\t\t\t\t\n \t\t\t\t}", "title": "" }, { "docid": "4c3b3a96992abd11a60b03e394049ba5", "score": "0.49016255", "text": "@Override\n public Object get(String name, ObjectFactory<?> objectFactory) {\n if (map.containsKey(name)) {\n Pair<LocalTime, Object> pair = map.get(name);\n int secondsSinceLastRequest = LocalTime.now().getSecond() - pair.getKey().getSecond();\n //check if interval is exceeded?\n if (secondsSinceLastRequest > 3) {\n //if exceeded, then create new pair and take bean again (color will be changed randomly)\n map.put(name, new Pair<>(LocalTime.now(), objectFactory.getObject()));\n }\n } else {\n //put if not existed\n map.put(name, new Pair<>(LocalTime.now(), objectFactory.getObject()));\n }\n return map.get(name).getValue();\n }", "title": "" }, { "docid": "de2dc275ee78b9e56d653e558a495ead", "score": "0.48738033", "text": "public abstract void onFetchTimeout();", "title": "" }, { "docid": "822940fd0f946b852ccf3b33d247c10e", "score": "0.4873336", "text": "public void mapSizeUpdate() {\n int xCenter = uc.read(TEN_XCOORDINATE_CENTER);\n int yCenter = uc.read(TEN_YCOORDINATE_CENTER);\n int xLowFinal = uc.read(XLOWER_FINAL);\n int yLowFinal = uc.read(YLOWER_FINAL);\n int xHighFinal = uc.read(XHIGHER_FINAL);\n int yHighFinal = uc.read(YHIGHER_FINAL);\n\n double coordinate;\n if (xCenter != 0 && (xLowFinal != 0 || xHighFinal != 0)) {\n coordinate = 2 * Math.abs((xCenter / 10.0) - Math.max(xLowFinal, xHighFinal)) + 1;\n uc.write(FINAL_MAP_SIZE, (int) coordinate);\n } else if (yCenter != 0 && (yLowFinal != 0 || yHighFinal != 0)) {\n coordinate = 2 * Math.abs((yCenter / 10.0) - Math.max(yLowFinal, yHighFinal)) + 1;\n uc.write(FINAL_MAP_SIZE, (int) coordinate);\n } else {\n int xLow = uc.read(XLOWER_BOUND);\n int yLow = uc.read(YLOWER_BOUND);\n int xHigh = uc.read(XHIGHER_BOUND);\n int yHigh = uc.read(YHIGHER_BOUND);\n\n if (myLocation.x > xHigh) {\n uc.write(XHIGHER_BOUND, myLocation.x);\n }\n if (myLocation.y > yHigh) {\n uc.write(YHIGHER_BOUND, myLocation.y);\n }\n if (myLocation.x < xLow) {\n uc.write(XLOWER_BOUND, myLocation.x);\n }\n if (myLocation.x < yLow) {\n uc.write(YLOWER_BOUND, myLocation.y);\n }\n\n uc.write(CURRENT_MAP_SIZE, Math.max(xHigh - xLow, yHigh - yLow));\n }\n }", "title": "" }, { "docid": "3abeb161498910d0a9342640f797010c", "score": "0.48710763", "text": "public int getMyLoadingLimit()\n {\n return WmsParam.MAX_RECORD_RECEIVE;\n }", "title": "" }, { "docid": "73015b96d8e105aaa5628f5a289525e6", "score": "0.48704797", "text": "@Override\r\n public void onCameraChange(CameraPosition cameraPosition) {\r\n if (cameraPosition.zoom<18) {\r\n /*Toast.makeText(getApplicationContext(),\r\n String.valueOf( ), Toast.LENGTH_LONG).show();\r\n */\r\n CameraCurrent = cameraPosition;\r\n if (CameraCurrent.target != null)\r\n LoadMarkers(CameraCurrent.target, LengthUnit.ZoomInMeters[(int) cameraPosition.zoom] / 1000);\r\n }\r\n }", "title": "" }, { "docid": "f22969fd5628ed323ce36099858055d5", "score": "0.48698878", "text": "@Override\n\tpublic void onRefresh() {\n\t\t\n\t}", "title": "" }, { "docid": "054a3a1c977141a704970b3c7910ea4d", "score": "0.48691168", "text": "private long m114701b(PictureUploadStrategy pictureUploadStrategy) {\n if (pictureUploadStrategy == null || pictureUploadStrategy.getApiRetrieveStartDelayMs() <= 0) {\n return 1000;\n }\n return pictureUploadStrategy.getApiRetrieveStartDelayMs();\n }", "title": "" }, { "docid": "1a30c08ab551a443695526557e29418c", "score": "0.48640153", "text": "protected void initialize() {\r\n if (time != 0) setTimeout(time);\r\n\r\n RobotMap.collectorHold = false;\r\n }", "title": "" }, { "docid": "f4dc9d42ed3f094a261903f06817d8d3", "score": "0.4861695", "text": "public static boolean updateLightmap(World p_updateLightmap_0_, float p_updateLightmap_1_, int[] p_updateLightmap_2_, boolean p_updateLightmap_3_) {\n/* 1286 */ if (p_updateLightmap_0_ == null)\n/* */ {\n/* 1288 */ return false;\n/* */ }\n/* 1290 */ if (lightMapsColorsRgb == null)\n/* */ {\n/* 1292 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 1296 */ int i = p_updateLightmap_0_.provider.getDimensionType().getId();\n/* 1297 */ int j = i - lightmapMinDimensionId;\n/* */ \n/* 1299 */ if (j >= 0 && j < lightMapsColorsRgb.length) {\n/* */ \n/* 1301 */ CustomColormap customcolormap = lightMapsColorsRgb[j];\n/* */ \n/* 1303 */ if (customcolormap == null)\n/* */ {\n/* 1305 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 1309 */ int k = customcolormap.getHeight();\n/* */ \n/* 1311 */ if (p_updateLightmap_3_ && k < 64)\n/* */ {\n/* 1313 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 1317 */ int l = customcolormap.getWidth();\n/* */ \n/* 1319 */ if (l < 16) {\n/* */ \n/* 1321 */ warn(\"Invalid lightmap width: \" + l + \" for dimension: \" + i);\n/* 1322 */ lightMapsColorsRgb[j] = null;\n/* 1323 */ return false;\n/* */ } \n/* */ \n/* */ \n/* 1327 */ int i1 = 0;\n/* */ \n/* 1329 */ if (p_updateLightmap_3_)\n/* */ {\n/* 1331 */ i1 = l * 16 * 2;\n/* */ }\n/* */ \n/* 1334 */ float f = 1.1666666F * (p_updateLightmap_0_.getSunBrightness(1.0F) - 0.2F);\n/* */ \n/* 1336 */ if (p_updateLightmap_0_.getLastLightningBolt() > 0)\n/* */ {\n/* 1338 */ f = 1.0F;\n/* */ }\n/* */ \n/* 1341 */ f = Config.limitTo1(f);\n/* 1342 */ float f1 = f * (l - 1);\n/* 1343 */ float f2 = Config.limitTo1(p_updateLightmap_1_ + 0.5F) * (l - 1);\n/* 1344 */ float f3 = Config.limitTo1((Config.getGameSettings()).gammaSetting);\n/* 1345 */ boolean flag = (f3 > 1.0E-4F);\n/* 1346 */ float[][] afloat = customcolormap.getColorsRgb();\n/* 1347 */ getLightMapColumn(afloat, f1, i1, l, sunRgbs);\n/* 1348 */ getLightMapColumn(afloat, f2, i1 + 16 * l, l, torchRgbs);\n/* 1349 */ float[] afloat1 = new float[3];\n/* */ \n/* 1351 */ for (int j1 = 0; j1 < 16; j1++) {\n/* */ \n/* 1353 */ for (int k1 = 0; k1 < 16; k1++) {\n/* */ \n/* 1355 */ for (int l1 = 0; l1 < 3; l1++) {\n/* */ \n/* 1357 */ float f4 = Config.limitTo1(sunRgbs[j1][l1] + torchRgbs[k1][l1]);\n/* */ \n/* 1359 */ if (flag) {\n/* */ \n/* 1361 */ float f5 = 1.0F - f4;\n/* 1362 */ f5 = 1.0F - f5 * f5 * f5 * f5;\n/* 1363 */ f4 = f3 * f5 + (1.0F - f3) * f4;\n/* */ } \n/* */ \n/* 1366 */ afloat1[l1] = f4;\n/* */ } \n/* */ \n/* 1369 */ int i2 = (int)(afloat1[0] * 255.0F);\n/* 1370 */ int j2 = (int)(afloat1[1] * 255.0F);\n/* 1371 */ int k2 = (int)(afloat1[2] * 255.0F);\n/* 1372 */ p_updateLightmap_2_[j1 * 16 + k1] = 0xFF000000 | i2 << 16 | j2 << 8 | k2;\n/* */ } \n/* */ } \n/* */ \n/* 1376 */ return true;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1383 */ return false;\n/* */ }", "title": "" }, { "docid": "ed9aa0799baeccb898cd37d6c02ce76b", "score": "0.48608747", "text": "public int getInstantSearchDelay()\n/* */ {\n/* 265 */ return this.instantSearchDelay;\n/* */ }", "title": "" }, { "docid": "b85d0d360ea72754e77c70de7ddef669", "score": "0.48599106", "text": "int getGameTimerExtendedInMinutes();", "title": "" }, { "docid": "b59d340d0030df492f4763ef82f93828", "score": "0.485883", "text": "int getSearchTimeoutLimit();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "132aef9a87283d178da41f5d3614d94a", "score": "0.0", "text": "public Boolean getReser() {\n\t\t\r\n\t\treturn reservado;\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593355", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649512", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64787245", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6443756", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.62889814", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277223", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.6273419", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230557", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218078", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61277896", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60921794", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6052283", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60330045", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60134614", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59843665", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.598327", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794915", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.59666646", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.596291", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59580564", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5951102", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.59232795", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.59119946", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58930063", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5845612", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841976", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58368444", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.5808944", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.57990485", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.57934815", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790544", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877386", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57625693", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754491", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.57471", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736261", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57292205", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57232136", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5712038", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705727", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699155", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56942755", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922704", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56854326", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.5657416", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "d0eba49cfb4bbd81b213240f056a9345", "score": "0.0", "text": "public Boolean checkNecessaryProperty() throws Exception {\n\r\n\t\tif (this.isIdNull())\r\n\t\t\tthrow new Exception(\"*ERROR* no id (key:id) for crossSection\");\r\n\r\n\t\tif (this.isReferenceProfileNull())\r\n\t\t\tthrow new Exception(\"*ERROR* no referenceProfile (key:di) for crossSection\");\r\n\r\n\t\tif (this.isPipeTopLevelNull())\r\n\t\t\tthrow new Exception(\"*ERROR* no pipeLevel (key:ll) for crossSection\");\r\n\r\n\t\tif (this.isBedLevelNull())\r\n\t\t\tthrow new Exception(\"*ERROR* no bedLevel (key:rl) for crossSection\");\r\n\r\n\t\treturn true;\r\n\t}", "title": "" } ]
[ { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.6694239", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "962e2aa1efc1eb9e8f7e2b38da8566b6", "score": "0.6441175", "text": "@Override\r\n\tprotected void method4() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63254577", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b4764437fc96bd523380203d0a714e9f", "score": "0.63064295", "text": "@Override\r\n\tpublic void calistir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ded15aaeb71ec68606fe2fb94e86fd30", "score": "0.62976253", "text": "@Override\n\tpublic void festlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "5cf6e7275cb8d34bdacabdb57b1297ed", "score": "0.61845726", "text": "public void mo74847b() {\n }", "title": "" }, { "docid": "1121ee7f7fb44c1a82d76b74dfca36ce", "score": "0.61822534", "text": "@Override\r\n\tprotected void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "50501dd87f1998a502196290135921d9", "score": "0.61727506", "text": "@Override\r\n\tpublic void bewegeNachUnten() {\n\r\n\t}", "title": "" }, { "docid": "fb712911683b694cdce8a0591533827a", "score": "0.6169982", "text": "public void attaquer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "d782462e898859cd8f1a6e804776230b", "score": "0.6119481", "text": "@Override\n\tpublic void kahvalti() {\n\t\t\n\t}", "title": "" }, { "docid": "5188ca7aad5f258e672f0989f34a3f46", "score": "0.61062694", "text": "public void mo80636c() {\n }", "title": "" }, { "docid": "320da35135786dc4505079f4a9a73c36", "score": "0.6103035", "text": "@Override\r\n\tpublic void preen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "24da068fbc02f8b8b3aa9cab24026941", "score": "0.60865915", "text": "@Override\n\tpublic void atacar() {\n\t\t\n\t}", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.60860294", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "06d440269c184993ff4f11d933a81aed", "score": "0.60860294", "text": "public void mo11421d() {\n }", "title": "" }, { "docid": "10d92a66c246261fe6e471d744e9a556", "score": "0.6085701", "text": "@Override\n\tpublic void rysuje() {\n\t\t\n\t}", "title": "" }, { "docid": "7c007022c54a0806ff9bd5438ae3e2ec", "score": "0.60739225", "text": "public void mo74769c() {\n }", "title": "" }, { "docid": "6fd2749106ffef4cb03e557457ef432e", "score": "0.60392183", "text": "@Override\n public void alpulsarNO() {\n\n\n }", "title": "" }, { "docid": "df5a58b776d79955ce4bf7e18e9ddfc4", "score": "0.6021335", "text": "public void mo9214a() {\n }", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.6017447", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "792350939017ccf304337ff492e7db06", "score": "0.601073", "text": "@Override\n\tpublic void init() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "cc0ab1c285fd2b1a0f1742f44327869d", "score": "0.59759116", "text": "@Override\r\n\tpublic void kasitteleSyote() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ced4b47c7129b2184e6a77b2a8798fd1", "score": "0.5946297", "text": "@Override\n public void annuler() {\n\n }", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59291553", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "3334d3b302fd55029e7bd247c823c639", "score": "0.5911117", "text": "@Override\n\tvoid accerlate() {\n\t\t\n\t}", "title": "" }, { "docid": "3d63ba02955ffee95b4ac1b66c98f160", "score": "0.59105057", "text": "@Override\n protected boolean Rol() {\n return true;\n }", "title": "" }, { "docid": "fee1a18ceca61748f93149cd393850fc", "score": "0.5909857", "text": "public void mo74768d() {\n }", "title": "" }, { "docid": "ba348d037fde33ef982a79632d7adf5e", "score": "0.59073913", "text": "@Override\n\tpublic void bouger()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5903432", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5886334", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "c16fc3362f80f1c0559c76bf68be5792", "score": "0.58831", "text": "@Override\n\tpublic void affiche() {\n\t\t\n\t}", "title": "" }, { "docid": "1351a596cfde79c7fcbaa0c0ac90ed14", "score": "0.5865934", "text": "@Override\n public boolean Aapninger() {\n return true;\n }", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5858707", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "adbbc233cf07504fdedfcdf74afa4901", "score": "0.583616", "text": "@Override\n\tpublic void prnt() {\n\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "27e0c12332a0f3b9fe854aa8beb3bad6", "score": "0.5825081", "text": "@Override\n\tpublic void OffersOfTheDay() {\n\t\t\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810343", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "79d198822ce7c98fbe391cfdeb33e3f6", "score": "0.58049023", "text": "@Override\r\n\tprotected void acelerar() {\n\r\n\t}", "title": "" }, { "docid": "2d17f675c4797d1489ccbc9d83c3ec33", "score": "0.5801597", "text": "@Override\n\tpublic void umm() {\n\t\t\n\t}", "title": "" }, { "docid": "c9d7a19ad712ece23e6218c1bbd97e1b", "score": "0.57992023", "text": "@Override\n\tpublic void creap() {\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "d5b930411834332d013e7e45ca7412e4", "score": "0.57919663", "text": "public void getAadhar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6c990ce3c0c4e578d5c2e065a437f8c3", "score": "0.5790907", "text": "public void inverte() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2988fe45f681712faab63cb0e862874c", "score": "0.57805216", "text": "@Override\r\n protected void poDolaczeniu() {\n\r\n }", "title": "" }, { "docid": "3a0aa7f30eee7a869c7fd2960b14db07", "score": "0.5778643", "text": "@Override\n public void destoty() {\n }", "title": "" }, { "docid": "10d40e9b81b4ba39c3ab6d779f3b2692", "score": "0.577812", "text": "public void mo31237c() {\n }", "title": "" }, { "docid": "849edaa5bbcc7511e16697ad05c01712", "score": "0.57740533", "text": "@Override\n\tpublic void avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.57587487", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "c379949c43d334b2a73a78b63ebac3c1", "score": "0.5757493", "text": "@Override public int getAtaque(){\n return 0;\n\n }", "title": "" }, { "docid": "535ccad74dc29933b6b48fea680ba27c", "score": "0.5753717", "text": "@Override\r\n\tpublic void operacion() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a65f81fad538053c05dc35d7be360588", "score": "0.5752461", "text": "@Override public int getDefensa(){\n return 0;\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c4fa257f1d9c8e55ec00612334f57e8b", "score": "0.5742544", "text": "@Override\n public void init() {\n\t\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5739092", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a624b89db95eebb0d7e745f8301395c1", "score": "0.57344353", "text": "public void method() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c6e40448cb261fef3ee1fc3a1f5373f0", "score": "0.5732929", "text": "@Override\n\tpublic void operation() {\n\t\t\n\t}", "title": "" }, { "docid": "cadfa07fe44678e9617053752fa5f43d", "score": "0.57283473", "text": "@Override\r\n \tpublic String toString() {\r\n \t\treturn super.toString();\r\n \t}", "title": "" }, { "docid": "c303699d6c9f8d3a2b316125e204825c", "score": "0.57273126", "text": "@Override\n\tpublic void verTop10() {\n\t\t\n\t}", "title": "" }, { "docid": "c74f29111dd26487e1359eb6abdacbec", "score": "0.57206607", "text": "public void mo74767a() {\n }", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "1756ef4d0803e995be285c55c28e3b84", "score": "0.57156587", "text": "@Override\r\n\tpublic void bewegeNachRechts() {\n\r\n\t}", "title": "" }, { "docid": "62af35269754b8acb72204c12f622caf", "score": "0.5703817", "text": "protected void mo1291L() {\n }", "title": "" }, { "docid": "b07546ce140f2f3bb5b718f3bf303b9a", "score": "0.5702189", "text": "public void mo5721a() {\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701947", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "94016f621198b25fa3341ef2382c6876", "score": "0.5689651", "text": "@Override\n\tpublic void grandir() {\n\t\t\n\t}", "title": "" }, { "docid": "abb78a58451e05c6ba3dd938b5c036e0", "score": "0.5684533", "text": "@Override\r\n public void usunZarejestrowaneObiekty() {\n\r\n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5677706", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.5676809", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "9c052331388a2c5e4c1a01dac5b28c41", "score": "0.56740385", "text": "public void verAssist() {\n\t\t\n\n\t}", "title": "" }, { "docid": "3e2b070c1404c777aafba0cbacea02f1", "score": "0.5663756", "text": "@Override\n\tprotected void initializeData() {\n\t\t\n\t}", "title": "" } ]
52799620dcbebfd75354de483894f690
add all requests from User to List
[ { "docid": "031c3caca35aed0852948565749d8ab0", "score": "0.59866124", "text": "public void addPickUp(RequestDTO request){\n\t\trequestList.add(request);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" } ]
[ { "docid": "af014dd706d9a02e4c2cc3f4f687ef59", "score": "0.72514606", "text": "List<Request> fetchMyRequestList(String userId);", "title": "" }, { "docid": "583101ccdb02ddbd657080ebf73f18a8", "score": "0.68894476", "text": "@Override\r\n\tpublic List<Request> getAllRequest() {\n\t\tList<Request> RequestList = new ArrayList<>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tConnection con = DB.getConnection();\r\n\t\t\tString sql =\"select * from requests\";\r\n\t\t\tStatement st = con.createStatement();\r\n\t\t\tResultSet rs= st.executeQuery(sql);\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tRequest f = new Request(rs.getString(1),rs.getString(2),rs.getString(3),rs.getInt(4));\r\n\t\t\t\tRequestList.add(f);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tSystem.out.println(\"Error UserDao getallusers() : \"+ e);\r\n\t\t}\r\n\t\treturn RequestList;\r\n\t}", "title": "" }, { "docid": "9df3d158387fa5302574ea439703791f", "score": "0.6765884", "text": "public void addUsertoList(User u){\n ListOfUsers.add(u);\n }", "title": "" }, { "docid": "79afaeaf144d80d930ba559d49c94ba8", "score": "0.65993583", "text": "private void getAllUsersRequest(Packet p) {\r\n\t \t//missing to check if he is logged in...\r\n\t if (!_logged)\r\n\t\t{\r\n\t\t\tsendNACK(\"Please log in first , dude...\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t String requestAns=\"userId\\t\\tName\\n********************************\\n\";\r\n \tfor (Profile prof : _server.Users)\r\n \t{\r\n \t\tif (!isUserRevoked(prof.Certificate.ID))\r\n \t\t\trequestAns+=\"(\"+prof.Certificate.ID+\")\\t\\t\"+prof.Fullname +\"\\n\";\r\n \t}\r\n\r\n \tEncryptSignAndSend(PTypes.UserList, requestAns, getConnectedUserPublic());\r\n \t//Packet Pack=PacketHelper.EncryptAndSign(packetType, data, signKey, encryptKey)\r\n\r\n\t}", "title": "" }, { "docid": "bf565ebb0ffbe5cf6ecb381421faf925", "score": "0.6594995", "text": "private void setAllUsers(HttpServletRequest request){\n\t\tUserService userService = new UserService();\n\t\tList<User> userList = userService.findAll();\n\t\tList<User> managerList = new ArrayList<User>();\n\t\t\n\t\t//filtra apenas os usuários com papel de gerente\n\t\tfor(User user : userList){\n\t\t\tif(user.getRole().equals(Role.MANAGER)){\n\t\t\t\tmanagerList.add(user);\n\t\t\t}\n\t\t}\n\t\t\n\t\trequest.setAttribute(Constants.MANAGER_LIST_KEY, managerList);\n\t}", "title": "" }, { "docid": "00995655b4daa0278764e4082761c0ab", "score": "0.65378237", "text": "@PostMapping (\"/users/pendingRequests\")\n private List<User> viewFriendRequests(@RequestBody Map<String,String> body) {\n String token = body.get(\"token\");\n ProposedQVO result = checkToken(token, \"player\");\n if (result.getStatus()){\n LoginSession loginSession = sessionRepository.findByToken(token);\n User user = loginSession.getUser();\n List<User> users = friendRequestRepository.findByReceiver(user);\n List<String> list = new ArrayList<String>();\n for (User u : users){\n u.setPassword(null);\n u.setLoginSessions(null);\n u.setGames(null);\n u.setProposedQuestions(null);\n u.setFriends(null);\n u.setSent(null);\n u.setReceived(null);\n }\n return users;\n }\n return null;\n }", "title": "" }, { "docid": "55e5a39ebc26701048a647fba3aa19a4", "score": "0.6506761", "text": "private void fetchFriendRequestList() {\r\n final String selfUserId = BaseApplication.getInstance().getPrefManager().getUser().getId();\r\n String endPoint = EndPoints.FRIEND_REQUEST.replace(\"_ID_\", selfUserId);\r\n\r\n StringRequest strReq = new StringRequest(Request.Method.GET,\r\n endPoint, new Response.Listener<String>() {\r\n\r\n @Override\r\n public void onResponse(String response) {\r\n Log.e(TAG, \"response: \" + response);\r\n\r\n try {\r\n JSONObject obj = new JSONObject(response);\r\n\r\n JSONArray friendRequests = obj.getJSONArray(Constants.TAG_JSON_LIST);\r\n for (int i = 0; i < friendRequests.length(); i++) {\r\n JSONObject friendRequest = (JSONObject) friendRequests.get(i);\r\n String userId = friendRequest.getString(\"user_id\");\r\n String name = friendRequest.getString(\"name\");\r\n String image = friendRequest.getString(\"image\");\r\n\r\n FriendRequest model = new FriendRequest(name, userId, image);\r\n friendRequestList.add(model);\r\n }\r\n } catch (JSONException e) {\r\n Log.e(TAG, \"json parsing error: \" + e.getMessage());\r\n //Toast.makeText(FriendRequestActivity.this, \"Json parse error: \" + e.getMessage(), Toast.LENGTH_LONG).show();\r\n }\r\n\r\n adapter.notifyDataSetChanged();\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n VolleyLog.e(\"Error: \", error.getMessage());\r\n Toast.makeText(FriendRequestActivity.this, error.getMessage(), Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n\r\n //Adding request to request queue\r\n BaseApplication.getInstance().addToRequestQueue(strReq);\r\n }", "title": "" }, { "docid": "7bbc2dd2580fe33302c1896867a4c1ae", "score": "0.64090693", "text": "java.util.List<FriendRequest>\n getRequestsList();", "title": "" }, { "docid": "6a26b0bc0e1f6a40aad0fdf2152c45f1", "score": "0.6387384", "text": "public UserListRequest(int id) {\n super(id);\n }", "title": "" }, { "docid": "9bebfeb52e517f344e8487eef8d3cea5", "score": "0.63852036", "text": "public void addUserToList(UserResponse userResponse) {\n userResponses.add(userResponse);\n notifyDataSetChanged() ;\n }", "title": "" }, { "docid": "2e1166a23430f7bddb6a3eced573bb88", "score": "0.6293542", "text": "@Override\n\t\t\t\tpublic void onSuccess(List<User> arg0) {\n\t\t\t\t\tfor(User user : arg0){\n\t\t\t\t\t\tlistUser.add(user);\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "bbe026eb60cd0dcbf4580b5d0dd49abe", "score": "0.62405455", "text": "@RequestMapping(\"/addtolist\")\n public ResponseEntity<String> addtoList(@RequestBody(required = true) String strRequest)\n throws JSONException {\n Helper h = new Helper(strRequest);\n if (h.response != null) {\n return h.response;\n }\n if (h.group.getCreator().getId() != h.u.getId()) {\n return ResponseEntity.badRequest().body(\n new JSONObject().put(JsonStrings.MESSAGE\n , JsonStrings.NO_PERMISSION).toString());\n }\n if (h.group.getIdList().contains(h.otherUser.getId())) {\n return ResponseEntity.badRequest().body(\n new JSONObject().put(JsonStrings.MESSAGE\n , JsonStrings.CANNOT_JOIN).toString());\n }\n h.group.getIdList().add(h.otherUser.getId());\n this.groupRepository.save(h.group);\n return ResponseEntity.ok().body(\n new JSONObject().put(JsonStrings.MESSAGE, JsonStrings.SUCCESS)\n .put(JsonStrings.GROUP_ID, h.group.getId()).toString());\n }", "title": "" }, { "docid": "4f4b94a89a23dd5c27158277e59deaba", "score": "0.6181016", "text": "@GET\n\t@Path(\"/v1\")\n\t@Override\n\tpublic ResponseModel getUserList(@Context HttpServletRequest request) throws Exception {\n\t\tlogger.info(\"<------User List------>\");\n\t\tLocale locale = LocaleConverter.getLocaleFromRequest(request);\n\t\tList<UserModel> userModels = userService.getUserList();\n\t\tResponseModel responseModel = ResponseModel.getInstance();\n\t\tresponseModel.setObject(userModels);\n\t\tresponseModel.setMessage(ResourceManager.getMessage(USER_LIST_SENT_SUCCESSFULLY, null, NOT_FOUND, locale));\n\t\treturn responseModel;\n\t}", "title": "" }, { "docid": "26d4a0f287655eefbff4795813192226", "score": "0.61530447", "text": "@Override\n public java.util.List<FriendRequest> getFriendRequestsList() {\n return java.util.Collections.unmodifiableList(\n instance.getFriendRequestsList());\n }", "title": "" }, { "docid": "c9c70216bb0def32a55125fc1c15ce82", "score": "0.61421365", "text": "@Override\n public boolean addRequest(List<Request>requests) {\n return false;\n }", "title": "" }, { "docid": "9f37b6562dd59947316e46b47d1d6cbe", "score": "0.61383057", "text": "@GET\r\n\t@Path(\"users\")\r\n\tpublic Response listUsers(@Context Request request);", "title": "" }, { "docid": "5b6e04cb0174b62fe8cf72d8f0ac99f5", "score": "0.6126852", "text": "public void sendUserList() {\n\t\tList<DataUser> users = this.getUsers();\n\t\tthis.sendServerMsgToClients(new ServerMessageUsers(users));\n\t}", "title": "" }, { "docid": "7da33e7158510ebd494e98d8b1e148ee", "score": "0.6123675", "text": "private void sendUserList() {\r\n\t\tArrayList<UserModel> users = Server.getModel().getUsers();\r\n\t\tfor (UserModel user : users) {\r\n\t\t\tServer.getCommunication().sendToClient(outputStream, new User(user.getUserID(), user.getUsername(), user.getScore(), user.getColor()));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a7cf77ec22d154333a345c17104a5598", "score": "0.60997534", "text": "@Override\n public java.util.List<FriendRequest> getFriendRequestsList() {\n return friendRequests_;\n }", "title": "" }, { "docid": "a7cda43191d98212d5e3ce3da376d74e", "score": "0.60858303", "text": "private void hitGetRequestsListApi() {\n isLoading = true;\n ApiInterface apiInterface = RestApi.createServiceAccessToken(mActivity, ApiInterface.class);//empty field is for the access token\n final HashMap<String, String> params = new HashMap<>();\n params.put(Constants.NetworkConstant.USER_ID, AppSharedPreference.getInstance().getString(mActivity, AppSharedPreference.PREF_KEY.USER_ID));\n params.put(Constants.NetworkConstant.PARAM_COUNT, String.valueOf(count));\n Call<ResponseBody> call = apiInterface.hitgetRequestApi(AppUtils.getInstance().encryptData(params));\n ApiCall.getInstance().hitService(mActivity, call, this, Constants.NetworkConstant.REQUEST_BUDDY_REQUESTS);\n }", "title": "" }, { "docid": "d66128cf15231af85ebb8b73e4b1cb6f", "score": "0.60811704", "text": "private void addFriendRequests(FriendRequest value) {\n value.getClass();\n ensureFriendRequestsIsMutable();\n friendRequests_.add(value);\n }", "title": "" }, { "docid": "feb12f68820856cb705b0ea402b61363", "score": "0.60803556", "text": "@Override\n public List<User> findAll(HttpServletRequest request) {\n return null;\n }", "title": "" }, { "docid": "ba7545c7fefb9fa6c7ae8180c9122f34", "score": "0.6056088", "text": "java.util.List<FriendRequest>\n getFriendRequestsList();", "title": "" }, { "docid": "9d712d3da741bd3ddd7f3e51f9ba0769", "score": "0.60220665", "text": "public userList(){\n\t\t_usersArray.add(new user(0, null, null));\n\t}", "title": "" }, { "docid": "c913516e83e4687cd978a743b4047e55", "score": "0.6005134", "text": "public List<User> getUserList();", "title": "" }, { "docid": "cca87d9712cc8abc11374884f91ca37c", "score": "0.59930927", "text": "private void updateRequestsList() {\n friendRequestsList.clear();\n SharedPreferences prefs = this.getActivity().getSharedPreferences(MYPREFS, getActivity().MODE_PRIVATE);\n pass = prefs.getString(\"Password\", \"not working\");\n uname = prefs.getString(\"Username\", \"not working\");\n\n JSONObject params = new JSONObject();\n try {\n params.put(\"password\", pass);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n params.put(\"requestid\", \"getfriendrequests\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n try {\n params.put(\"username\", uname);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n JsonObjectRequest friendRequestReq = new JsonObjectRequest(url, params,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.d(TAG, response.toString());\n hidePDialog();\n\n try {\n JSONArray result = new JSONArray();\n result = response.getJSONArray(\"friends\");\n\n // Parsing json\n for (int i = 0; i < result.length(); i++) {\n JSONObject obj = result.getJSONObject(i);\n Friend friendRequest = new Friend();\n friendRequest.setFriendName(obj.getString(\"name\"));\n friendRequest.setFriendImage(\"NULL\");\n friendRequestsList.add(friendRequest);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // notifying list adapter about data changes\n // so that it renders the list view with updated data\n friendRequestAdapter.notifyDataSetChanged();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error: \" + error.getMessage());\n hidePDialog();\n }\n });\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(friendRequestReq);\n }", "title": "" }, { "docid": "aff7aea69a2dd3a317c916dfd123b354", "score": "0.5986847", "text": "protected void addNewRequestDataIntoList(AsynchronousRequest requestData) {\n\t\tsynchronized (synObjectForRequestDataList) {\n\t\t\tif (requestDataList != null && requestData != null) {\n\t\t\t\trequestDataList.addLast(requestData);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e56151ea60776af94c35faf84121a6a8", "score": "0.59854865", "text": "private void loadUsers() {\n List<User> users1 = new ArrayList<>();\n for (int i = 0; i < 10; i++) {\n users1.add(new User(String.valueOf(i)));\n }\n users.postValue(users1);\n }", "title": "" }, { "docid": "11541573f27cf1306572ec18a16a22a3", "score": "0.5985033", "text": "public ArrayList<UserDTO>requestFriendList(int id) throws RemoteException;", "title": "" }, { "docid": "e856e360396bb1c468e24ab8b6bebc52", "score": "0.597763", "text": "private void fillUsersList() {\n mUserListQuery = SendBird.createUserListQuery();\n mUserListQuery.setLimit(30);\n\n if(mUserListQuery != null && mUserListQuery.hasNext() && !mUserListQuery.isLoading()) {\n mUserListQuery.next(new UserListQuery.UserListQueryResultHandler() {\n @Override\n public void onResult(List<User> users, SendBirdException e) {\n if (e != null) {\n Toast.makeText(mContext, \"\" + e.getCode() + \":\" + e.getMessage(), Toast.LENGTH_SHORT).show();\n return;\n }\n // Get the user list\n Log.v(TAG, \"The list of users is \");\n for (User user : users) {\n Log.v(TAG, user.getUserId() + \":\" + user.getNickname());\n }\n\n // Get the list of users\n mUsersList = users;\n String [] userNames = new String[users.size()];\n for(int i = 0; i < userNames.length; i++) {\n userNames[i] = users.get(i).getNickname();\n if (users.get(i).getUserId().equals(mUserId)) {\n getSupportActionBar().setTitle(userNames[i]);\n }\n }\n\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(mContext,\n android.R.layout.simple_list_item_1, android.R.id.text1,\n userNames);\n mUsersListView.setAdapter(adapter);\n\n mUsersListView.setOnItemClickListener(new ListView.OnItemClickListener(){\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n User userSelected = mUsersList.get(i);\n Log.v(TAG, \"The user has selected \" + userSelected.getUserId() + \":\" + userSelected.getNickname());\n\n Intent intent = new Intent(mContext, MainActivity.class);\n intent.putExtra(MainActivity.INTENT_KEY_USER_ID, userSelected.getUserId());\n intent.putExtra(MainActivity.INTENT_KEY_USER_NAME, userSelected.getNickname());\n startActivity(intent);\n }\n });\n }\n });\n }\n }", "title": "" }, { "docid": "2dcf208d986e12d6a24a008e567337b8", "score": "0.59718806", "text": "Collection<Request> getAllRequests();", "title": "" }, { "docid": "1e518b079ce82d7b6cbff691a005ea94", "score": "0.5966281", "text": "void createRequest(List<Request> requests);", "title": "" }, { "docid": "8bdf6899e770694ba90727ae0e6dd7f0", "score": "0.59626013", "text": "@Override\n public ArrayList<User> getAll() {\n ArrayList<User> arr = new ArrayList<>();\n arr.addAll(users);\n return arr;\n }", "title": "" }, { "docid": "48fe7bbdc02cc9f801ece0828e6589c8", "score": "0.593422", "text": "public void afficherListe(User user) {\n\n\t}", "title": "" }, { "docid": "91f17a15a92e139416d35d972b9a0c91", "score": "0.59306735", "text": "@RequestMapping(value = {\"/user/request/list\"}, method = RequestMethod.GET)\n\t\t\tpublic ResponseEntity<List<User>> fetchPendingUsers() {\n\t\t\t\tSystem.out.println(\"fetching list of pending users\");\n\t\t\t\tList<User> user = userDAO.list(\"PENDING\");\n\t\t\t\treturn new ResponseEntity<List<User>>(user, HttpStatus.OK);\n\t\t\t}", "title": "" }, { "docid": "c0a7f7718e81a4e8c3ca75748a48ee51", "score": "0.59167176", "text": "private void sendUsersList(DataTransferer transferator) {\r\n\t\tSet<String> keys = users.keySet();\r\n\t\tfor (String key : keys) {\r\n\t\t\ttransferator.sendData(new Mesage(key, MesageCommand.USER_CONECTED));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "039c85bed4c24c33841396af32f8de90", "score": "0.5903025", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void setUserList(Request msg) {\n\t\tPlatform.runLater(() -> {\n\t\t\tObservableList<String> users = FXCollections.observableList(msg.getUsuaris());\n\t\t\tuserList.setItems(users);\n\t\t\tuserList.setCellFactory(new UserList());\n\t\t\tsetOnlineLabel(String.valueOf(msg.getUsuaris().size()));\n\t\t});\n\t}", "title": "" }, { "docid": "300d003a44f6f1997e94ca0ef1d18204", "score": "0.58976656", "text": "private void listall_user(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tArrayList<User> allusers=(ArrayList<User>)UsersDao.getInstance().selectallusers();\n\t\tif(allusers==null) {\n\t\t\tallusers=new ArrayList<User>();\n\t\t}\n\t\tint recordCount=allusers.size();//记录条数\n\t\tint maxPage=recordCount;//页数\n\t\tint number; //第几页\n\t\tif(maxPage%5==0) {\n\t\t\tmaxPage=maxPage/5;\n\t\t}else {\n\t\t\tmaxPage=maxPage/5+1;\n\t\t}\n\t\t\n\t\tif(request.getParameter(\"i\")==null) {\n\t\t\tnumber=1;\n\t\t}else {\n\t\t\tnumber=Integer.parseInt(request.getParameter(\"i\"));\n\t\t}\n\t\t\n\t\tint start=(number-1)*5;\n\t\tint over=number*5-1;\n\t\tif(recordCount<=over) {\n\t\t\tover=recordCount;\t\n\t\t}\n\t\trequest.setAttribute(\"start\", start);\n\t\trequest.setAttribute(\"over\", over);\n\t\trequest.setAttribute(\"number\", number);\n\t\trequest.setAttribute(\"maxPage\", maxPage);\n\t\trequest.setAttribute(\"recordCount\", recordCount);\n\t\t\n\t\tHttpSession session=request.getSession();\n\t\tsession.setAttribute(\"allusers\", allusers);\n\t\trequest.setAttribute(\"rallusers\",allusers);\n\t\t\n\tRequestDispatcher rd=request.getRequestDispatcher(\"userList.jsp\");\n\trd.forward(request, response);\n\t}", "title": "" }, { "docid": "32ff7b524bad45097b438ccfe1c4d6af", "score": "0.58959764", "text": "private void retrieveUserList() {\n // TODO: implement query to retrieve all users from db\n DatabaseReference userTable = mDatabase.getReference(USER_DB_PATH);\n userTable.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n ContentLists list = ContentLists.get(getApplicationContext());\n List<User> userList = list.getUsers();\n userList.clear();\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n User user = postSnapshot.getValue(User.class);\n if (!userList.contains(user)) {\n userList.add(user);\n }\n }\n displayUserFragment();\n }\n @Override\n public void onCancelled(DatabaseError error) {\n Log.d(HOME_TAG, error.getMessage());\n }\n });\n }", "title": "" }, { "docid": "603f6adb1d2458951948f0c37ea796cc", "score": "0.589572", "text": "@RequestMapping(value = \"/forgot_password\", method = RequestMethod.GET)\n\tpublic ResponseModel getUserList(HttpServletRequest request) throws Exception {\n\t\tList<UserModel> userModels = userService.getUserList();\n\t\tResponseModel responseModel = ResponseModel.getInstance();\n\t\tresponseModel.setObject(userModels);\n\t\t// responseModel.setMessage(ResourceManager.getMessage(USER_LIST_SENT_SUCCESSFULLY,\n\t\t// null, NOT_FOUND, locale));\n\t\treturn responseModel;\n\t}", "title": "" }, { "docid": "ad1578a0e386d49554bc2221dae1e5ad", "score": "0.58794296", "text": "public void addRequestDataList(List<Request.Data> requestDataList)\n {\n this.mRequestStatusList = requestDataList;\n notifyDataSetChanged();\n }", "title": "" }, { "docid": "786ed813d406bb73524d663abd3f405a", "score": "0.58627886", "text": "public static void adding(List<Users> list, Users user) {\n\t\tlist.add(user);\n\t}", "title": "" }, { "docid": "48d200a91a8d88a38ad3a090d932781d", "score": "0.5848393", "text": "private void addAllFriendRequests(\n Iterable<? extends FriendRequest> values) {\n ensureFriendRequestsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, friendRequests_);\n }", "title": "" }, { "docid": "eb632324a035bafb4564756e622227e5", "score": "0.5833997", "text": "private void setAllUsersRequests()\r\n {\n String url = \" https://api.backendless.com/\" + CONTEXT.getString(R.string.VERSION_NAME)\r\n + \"/data/bulk/\" + User.company+\"EmployeesRequests?where=creator%3D'0f'\";\r\n AsyncTask<String, Void, String> task = new AsyncTask<String, Void, String>() {\r\n @Override\r\n protected String doInBackground(String... params) {\r\n String response = null, day;\r\n UserRequests userRequests = new UserRequests(null, User.company, CONTEXT);\r\n Map<String,TreeSet<String>>[] allShiftsAble = userRequests.getAllShiftAble();\r\n JSONObject jsonDataToSend = new JSONObject();\r\n try {\r\n jsonDataToSend.put(\"creator\",\"0\");\r\n //put al shifts able\r\n for (int i =0; i<allShiftsAble.length; i++)\r\n {\r\n day = DAYS_NAME_ARRAY[i].toLowerCase();\r\n jsonDataToSend.put(day+\"Able\", DataStringConvert.getRequestsString(allShiftsAble[i].get(\"able\")));\r\n jsonDataToSend.put(day+\"Block\",\"\");\r\n }\r\n\r\n HttpRequest httpRequest = new HttpRequest(params[0]);\r\n //set method\r\n response = httpRequest.\r\n //set headers\r\n withHeaders(\"application-id:\" + CONTEXT.getString(R.string.APP_ID),\r\n \"secret-key:\" + CONTEXT.getString(R.string.SECURITY_KEY),\r\n \"Content-Type:application/json\",\r\n \"application-type: REST\").\r\n prepare(HttpRequest.Method.PUT).\r\n withData(jsonDataToSend.toString()).\r\n sendAndReadString();\r\n }catch (Exception e)\r\n {Log.e(TAG, e.getMessage());}\r\n\r\n return response;\r\n }\r\n\r\n @Override\r\n protected void onPostExecute(String response) {\r\n //if succeeded - load work arrange\r\n if (response!=null)\r\n loadWorkArrange();\r\n else\r\n Log.e(TAG, \"no\");\r\n }\r\n };\r\n\r\n task.execute(url);\r\n }", "title": "" }, { "docid": "286924d9b55627ab71a6f69e7683edde", "score": "0.58187485", "text": "List<User> getUsers();", "title": "" }, { "docid": "39dcf2965730c0716457143600ce7a42", "score": "0.5816635", "text": "@RequestMapping(value = \"/allUsers\", method = RequestMethod.GET)\n\tpublic List<UserDto> retrieveAllUsers(HttpServletRequest request) {\n\t\treturn userService.getAllUsers();\n\t}", "title": "" }, { "docid": "0bc1c83b1cd22298ca831731ea24fd66", "score": "0.58133495", "text": "List<FriendEntity> getAllThePendingRequests();", "title": "" }, { "docid": "158dcef95194ac488ae445334cf55e4b", "score": "0.5812308", "text": "@Override\n\tpublic void queryList() {\n\t\tuserDao.queryList();\n\t}", "title": "" }, { "docid": "7023f914124b51c8bfbde99407da6c45", "score": "0.57922107", "text": "public List<AddUserPacket> getLoggedUsers(){\n return loggedUsers;\n }", "title": "" }, { "docid": "d3ea31e7ec813e13ec57336781f079de", "score": "0.57918054", "text": "java.util.List<com.hushow.demo.grpc.user.dto.UserResponse> \n getUserList();", "title": "" }, { "docid": "02ff0d68e70068e74fbcddbc09f64537", "score": "0.5771882", "text": "@RequestMapping(value = \"/user/available\", method = RequestMethod.GET)\n\tprotected ModelAndView retrieveAllUsers(HttpServletRequest request) throws Exception {\n\n\t\ttry {\n\t\t\tList<Boolean> checker = new ArrayList<Boolean>();\n\t\t\tList<User> userList = null;\n\t\t\tMap<String, Object> model = new HashMap<String, Object>();\n\t\t\tHttpSession session = request.getSession();\n\t\t\tUser u = (User) session.getAttribute(\"user\");\n\t\t\tSystem.out.println(\"retriving the list of users\");\n\t\t\tuserList = userDao.retrieveUserList();\n\t\t\t\n\t\t\tfor (User user : userList) {\n\t\t\t\tif (isPresent(user, u)) {\n\t\t\t\t\tchecker.add(false);\n\t\t\t\t} else {\n\t\t\t\t\tchecker.add(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmodel.put(\"userlist\", userList);\n\t\t\tmodel.put(\"checklist\", checker);\n\t\t\treturn new ModelAndView(\"user_list\", \"model\", model);\n\n\t\t} catch (\n\n\t\tUserException e) {\n\t\t\tSystem.out.println(\"Exception:\" + e.getMessage());\n\t\t\treturn new ModelAndView(\"error\", \"errorMessage\", \"error while retrieving the list\");\n\t\t}\n\t}", "title": "" }, { "docid": "b047e290e870a23f3c0f40621f1787fb", "score": "0.57658577", "text": "public void loadJobRequestors() {\n final ArrayList<String> userNames = new ArrayList<String>();\n final ArrayList<String> userRatings = new ArrayList<String>();\n\n if (requestorIds != null) {\n Log.v(\"DEBUG:\", \"our list is non null.\");\n for (String requestor : requestorIds) {\n Log.v(\"Requestors2:\", requestor);\n //Query Parse for the user that requested the job, so we can display their name\n ParseQuery<ParseUser> userQuery = ParseUser.getQuery();\n userQuery.getInBackground(requestor, new GetCallback<ParseUser>() {\n @Override\n public void done(ParseUser o, ParseException e) {\n final String username = o.getUsername();\n final String rating = o.get(\"userRating\").toString();\n\n //Thread used to ensure list appears properly each time it is loaded\n //Also adds each item to list\n runOnUiThread(new Runnable() {\n public void run() {\n userNames.add(username);\n //Allows rating to be shown as stars\n if (Double.parseDouble(rating) < 1.5) {\n userRatings.add(\"*\");\n }\n else if (Double.parseDouble(rating) < 2.5) {\n userRatings.add(\"* *\");\n }\n else if (Double.parseDouble(rating) < 3.5) {\n userRatings.add(\"* * *\");\n }\n else if (Double.parseDouble(rating) < 4.5) {\n userRatings.add(\"* * * *\");\n }\n else {\n userRatings.add(\"* * * * *\");\n }\n\n requestorlistAdapter.notifyDataSetChanged();\n }\n });\n }\n });\n }\n\n final ListView requestorListview = (ListView) findViewById(R.id.requestorsList);\n\n requestorlistAdapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_list_item_2,\n android.R.id.text1,\n userNames) {\n\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n // Must always return just a View.\n View view = super.getView(position, convertView, parent);\n\n // If you look at the android.R.layout.simple_list_item_2 source, you'll see\n // it's a TwoLineListItem with 2 TextViews - text1 and text2.\n //TwoLineListItem listItem = (TwoLineListItem) view;\n TextView text1 = (TextView) view.findViewById(android.R.id.text1);\n TextView text2 = (TextView) view.findViewById(android.R.id.text2);\n text2.setTextColor(Color.parseColor(\"#dc4e00\"));\n text1.setTextColor(Color.parseColor(\"#89cede\"));\n\n text1.setText(userNames.get(position));\n text1.setTextSize(25);\n text2.setText(\"Rating: \" + userRatings.get(position));\n text2.setPadding(50, 0, 0, 0);\n return view;\n }\n };\n\n requestorListview.setAdapter(requestorlistAdapter);\n requestorListview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n //Unimplemented: Upon click, approve user\n goToRequestorsProfile(position);\n }\n });\n\n }\n }", "title": "" }, { "docid": "d4f9a52ad15e9fb1f5f54b9f58404f7c", "score": "0.5752166", "text": "List<User> list();", "title": "" }, { "docid": "ef4fe4f9cb4b63910874cc37691af424", "score": "0.5748764", "text": "Request fetchMyActionedRequests(String userId);", "title": "" }, { "docid": "7f82c6a8bc2a2b6ca39dd545dd19449e", "score": "0.57476526", "text": "@RequestMapping(value = \"/list\", method = RequestMethod.GET,\n\t\t\tproduces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<User> fetchUserList() {\n\t\treturn userService.fetchUserList();\n\t}", "title": "" }, { "docid": "2b071b1cf482ff7f41814f7c1d54fec3", "score": "0.57475513", "text": "public List<User> getUsers();", "title": "" }, { "docid": "2b071b1cf482ff7f41814f7c1d54fec3", "score": "0.57475513", "text": "public List<User> getUsers();", "title": "" }, { "docid": "2b071b1cf482ff7f41814f7c1d54fec3", "score": "0.57475513", "text": "public List<User> getUsers();", "title": "" }, { "docid": "1dfdc4a7b88f83da7cc2e136a41a6f25", "score": "0.57222176", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n UsersRepositoryOperations operations = new UsersRepositoryOperations();\n User user = (User) request.getSession().getAttribute(\"user\");\n List<User> users = operations.suggestedPersonsToFollow(user.getEmail());\n List<Place> places = operations.suggestedPlacesFor(user.getEmail()); \n request.getSession().setAttribute(\"sgusers\", users);\n request.getSession().setAttribute(\"sgplaces\", places);\n response.getWriter().print(new Gson().toJson(new JsonResult(true, users.size()+\" Users, \"+places.size()+\" places\")));\n }", "title": "" }, { "docid": "958d97d4e57bb5f4e7c29c2a34713024", "score": "0.5706684", "text": "@RequestMapping(value = \"/admin/acceptrequest\", headers = \"Authorization=Basic YWRtaW46YWRtaW4=\")\n\tpublic StatusObject acceptRequest(\n\t\t\t\t@RequestParam(value=\"userName\") String userName\t) {\n\t\t\n\t\tSystem.out.println(getTimeForLog() + LOG_ACCEPT_REQUEST);\n\t\t\n\t\tOptional<User> userRequest = accountRequests.stream()\n\t\t\t\t\t\t\t.filter(user -> user.getName().equals(userName))\n\t\t\t\t\t\t\t.findAny();\n\t\tuserRequest.ifPresent( user -> {\n\t\t\t\t\t\t\t\tusers.add(user);\n\t\t\t\t\t\t\t\taccountRequests.remove(user);\n\t\t\t\t\t\t\t});\n\t\treturn new StatusObject(userRequest.isPresent());\n\t\t\n\t}", "title": "" }, { "docid": "bf0439d5efdc17fbf8402d1f9606fa6e", "score": "0.57021034", "text": "@Override\n\tpublic List<BuyUser> getUser(HttpServletRequest request) {\n\t\tBuyUserExample buyUserExample = new BuyUserExample();\n\t\treturn buyUserMapper.selectByExample(null);\n\t}", "title": "" }, { "docid": "542cd71060d52cab9ff87a57cca80071", "score": "0.5701829", "text": "@Override\r\n public List<TicketRequest> getUserticket(User user) {\n return ticketDaoRef.findByUser(user);\r\n }", "title": "" }, { "docid": "ccb343c8cd250a9a52a6250bde1981a2", "score": "0.5701799", "text": "public List<User> listUser();", "title": "" }, { "docid": "735b499715a03eee7406dceca01f8517", "score": "0.5701086", "text": "private void generateList(){\n\t\tinstructors.generateList(requests);\n\t\ttimeblocks.generateList(requests);\n\t\tcourses.generateList(requests,instructors,timeblocks);\n\t}", "title": "" }, { "docid": "0b470652474433525cc9c1897091c9a6", "score": "0.5684193", "text": "protected synchronized static void getUserList(int sender) {\n\t\tByteBuffer clientList = ByteBuffer.allocate(5 + 4 * clients.size());\n\t\tclientList.put(CodeMessage.USER_LIST_REPLY);\n\t\tclientList.putInt(clients.numberOfElements());\n\t\tfor (Client c : clients) {\n\t\t\tif (c == null)\n\t\t\t\tcontinue;\n\t\t\tclientList.putInt(c.getUserId());\n\t\t\tbyte[] name = c.getUserName().getBytes();\n\n\t\t\tByteBuffer temp = ByteBuffer.allocate(clientList.capacity()\n\t\t\t\t\t+ name.length + 1);\n\t\t\ttemp.put(clientList.array());\n\t\t\ttemp.position(clientList.position());\n\t\t\tclientList = temp;\n\n\t\t\tclientList.put(c.getUserName().getBytes());\n\t\t\tclientList.put((byte) -1);\n\t\t}\n\t\tclients.get(sender).sendMessage(clientList.array());\n\n\t}", "title": "" }, { "docid": "eab826d017de817ec89576427dba49ae", "score": "0.5682708", "text": "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\n }", "title": "" }, { "docid": "42dc8be5ec504090780f1d6cbcfaf646", "score": "0.56807804", "text": "@GetMapping(\"/users\")\n Iterable<PublicUserData> all(@RequestHeader(\"Token\") String token) {\n if( !authService.checkToken(token)){\n throw new ResponseStatusException( HttpStatus.UNAUTHORIZED, \"You need to be logged in!\");\n }\n List<PublicUserData> publicUser = new ArrayList<>();\n service.getUsers().forEach( user ->\n publicUser.add(new PublicUserData(user,false ))\n );\n return publicUser;\n }", "title": "" }, { "docid": "02e77133fec4263e8c52eb1ad4cd0c7c", "score": "0.567772", "text": "List<User> getAll();", "title": "" }, { "docid": "56dbb19f6c0752d1150b52f5273ea91e", "score": "0.5649609", "text": "private void listSub(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t List<com.bean.SubBean> listSub = userDAO.selectAllSubject();\r\n\t request.setAttribute(\"listUser\", listSub);\r\n\t RequestDispatcher dispatcher = request.getRequestDispatcher(\"adminSubjects.jsp\");\r\n\t dispatcher.forward(request, response);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2c4399a32d7dc4ade5b6e35e9d0369a4", "score": "0.5639726", "text": "@RequestMapping(value = \"/list\" , method = RequestMethod.GET)\n\tpublic List<User> getAllUser(){\n\t\treturn userService.getAllUser();\n\t}", "title": "" }, { "docid": "dc675523d4040378725896fad936237b", "score": "0.56385696", "text": "List<UserDto> getUsers();", "title": "" }, { "docid": "db63ab4a953349d91f38cc779ea4674a", "score": "0.56375295", "text": "public List<User> getAll();", "title": "" }, { "docid": "cee46bd9c21e510918d4fc20f1f2c435", "score": "0.56353664", "text": "List<User> getAllUsers();", "title": "" }, { "docid": "cee46bd9c21e510918d4fc20f1f2c435", "score": "0.56353664", "text": "List<User> getAllUsers();", "title": "" }, { "docid": "c0fb2e616c97bf598b69b5888279e450", "score": "0.56303346", "text": "@Override\n public ResponseEntity<ResponseMessage> importUsers(@NotNull AddUserRequest addUserRequest) {\n logger.info(STARTING_METHOD_EXECUTION);\n List<EmployeeDetails> list= addUserRequest.getEmployeeDetailsList();\n ResponseMessage responseMessage = new ResponseMessage();\n try {\n if (!list.isEmpty()) {\n List<String> notAdded = new ArrayList<>();\n for (EmployeeDetails model : list) {\n if (userRepo.findByUserEmail(model.getEmail()) == null) {\n UserModel ob = new UserModel();\n ob.setUserName(model.getName());\n ob.setRoleId(roleRepo.getRoleIdByRole(model.getRole()));\n ob.setOrgId(model.getEmpId());\n ob.setUserEmail(model.getEmail());\n ob.setDesignation(model.getDesignation());\n ob.setGender(model.getGender());\n ob.setActive(true);\n ob.setCreatedOn(System.currentTimeMillis());\n userRepo.save(ob);\n logger.debug(\"User saved : {}\",ob);\n } else {\n notAdded.add(model.getEmail());\n }\n }\n logger.info(EXITING_METHOD_EXECUTION);\n return addUserCondition(notAdded, notAdded);\n }\n logger.info(EXITING_METHOD_EXECUTION);\n return new ResponseEntity<>(responseMessage, HttpStatus.BAD_REQUEST);\n }\n catch (Exception ex)\n {\n logger.error(ERROR_IMPORTING_USER,ex);\n throw new APIException(ERROR_IMPORTING_USER);\n }\n }", "title": "" }, { "docid": "dc18a9c65067411eb521cab3727906cb", "score": "0.5622559", "text": "@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\r\n\t@RequestMapping(value = \"/getUsersWithRequests\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic List<User> getUsersWithRequests(Principal principal) {\r\n\t\tLOG.info(\"\\\"\" + principal.getName()\r\n\t\t\t\t+ \"\\\" tries to access users requests list.\");\r\n\t\tList<User> users = userService.getUsersWithRequests();\r\n\t\tLOG.info(\"\\\"\" + principal.getName()\r\n\t\t\t\t+ \"\\\" received users requests list.\");\r\n\t\treturn users;\r\n\t}", "title": "" }, { "docid": "638c6ee1c3e22cccf7827b72416b51c3", "score": "0.56013167", "text": "private void loadUsers() {\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(FactListService.BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n\n listService = FactListService.getClient().create(FactListInterface.class);\n call = listService.getAllFacts(API_KEY);\n\n\n call.enqueue(new Callback<FactsResponse>() {\n @Override\n public void onResponse(Call<FactsResponse> call, Response<FactsResponse> response) {\n\n //finally we are setting the list to our MutableLiveData\n users.setValue(response.body());\n }\n\n @Override\n public void onFailure(Call<FactsResponse> call, Throwable t) {\n\n }\n });\n }", "title": "" }, { "docid": "bb12294ffd43a383e433e783c59d1a50", "score": "0.5593009", "text": "private void listStndrd(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t List<com.bean.ClassBean> listStndrd = userDAO.selectAllStandard();\r\n\t request.setAttribute(\"listUser\", listStndrd);\r\n\t RequestDispatcher dispatcher = request.getRequestDispatcher(\"adminStandard.jsp\");\r\n\t dispatcher.forward(request, response);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c4e3fafeae9661106671e87baae8ef40", "score": "0.5592188", "text": "public ArrayList<String> getPendingRequestsTo(String user) throws SQLException {\n\t\treturn requestsDAO.getPendingRequestsTo(user);\n\t}", "title": "" }, { "docid": "2bc841bf3609050f64084aa11ff1ed6d", "score": "0.5575265", "text": "public List<User> getAllUsers();", "title": "" }, { "docid": "6e6eafc47129a942a4baf63ab112057b", "score": "0.55739635", "text": "private void requestChatUsers() {\n if (UtilHelper.isConnectedToInternet(mContext)) {\n try {\n if (mTypeChatList == VALUE_GROUP_AND_ONE_TO_ONE) {\n {\n if (mAdapter != null)\n mAdapter.clearOldList();\n\n mPresenter.requestChatUsers(SessionHelper.getInstance(mContext).getUser().getUserId(), Chat.GROUP_TYPE_GROUP_CHAT);\n }\n } else if (mTypeChatList == VALUE_INJURY_MANAGEMENT) {\n if (mAdapter != null)\n mAdapter.clearOldList();\n\n mPresenter.requestChatUsers(SessionHelper.getInstance(mContext).getUser().getUserId(), Chat.GROUP_TYPE_INJURY_MANAGEMENT);\n }\n\n } catch (Exception e) {\n Log.e(TAG, \"Error while requesting for chat users list , \" + e.getMessage());\n e.printStackTrace();\n }\n } else {\n mLayoutForDetails.setVisibility(View.GONE);\n mTxtNoConnection.setVisibility(View.VISIBLE);\n }\n }", "title": "" }, { "docid": "2285a912b8e081891ecd318eb37b176d", "score": "0.5570694", "text": "List<UserDTO> loadAllUsers();", "title": "" }, { "docid": "96f2d476054e8e5f5f721031bf5c8e5c", "score": "0.5570421", "text": "public List<RoomReservation> future(HttpServletRequest request) {\n List<RoomReservation> roomReservations = new ArrayList<>();\n String token = request.getHeader(HEADER_STRING);\n AppUser appUser = UserService.getAppUser(token, userRepository);\n if (appUser == null) {\n return roomReservations;\n }\n for (RoomReservation roomReservation: roomReservationRepository.findAll()) {\n if (roomReservation.getAppUser() == appUser && roomReservation.getToTime().after(new Date()) && roomReservation.isActive()) {\n roomReservations.add(roomReservation);\n }\n }\n return roomReservations;\n }", "title": "" }, { "docid": "4f15e9343f91f49ec72a50aa6c9d6511", "score": "0.55675125", "text": "@Override\n\tpublic List<RequestDetails> getAllRequest() {\n\t\treturn requestDAO.getAllRequest();\n\t}", "title": "" }, { "docid": "837ae0dc68156bbd9cce3290d15553ed", "score": "0.55654573", "text": "List<UserDTO> getAllUsers();", "title": "" }, { "docid": "2bf74fb6626aa3c36f2ed6385063a516", "score": "0.55565494", "text": "public void getUserList() {\n final ProgressDialog progressDialog = createProgressBar(New_Group.this);\n progressDialog.show();\n\n final List<User> userList = new ArrayList<>();\n databaseReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot snapshot) {\n\n progressDialog.dismiss();\n\n userList.clear();\n for (DataSnapshot postSnapshot : snapshot.getChildren()) {\n User userInfo = postSnapshot.getValue(User.class);\n FirebaseUser user = firebaseAuth.getCurrentUser();\n /* user.getUid();*/\n Log.d(TAG,\"userid \"+user.getUid());\n\n if (!userInfo.getUserid().equals(user.getUid())) {\n userList.add(userInfo);\n Log.d(TAG, \"userlist\");\n }\n\n Log.d(TAG, \"loop\");\n }\n Log.d(TAG, \"userlist\" + userList);\n\n // Toast.makeText(getActivity(), \"userInfo \"+userList+\"/n\", Toast.LENGTH_SHORT).show();\n\n Adapter_newGroup adapter = new Adapter_newGroup(getApplicationContext(), userList);\n newGroupRecyclerView.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n progressDialog.dismiss();\n Log.d(TAG, databaseError.getMessage());\n }\n });\n }", "title": "" }, { "docid": "ad917d3b509c69cfee3cff466269df83", "score": "0.55559886", "text": "private ResponseList<T> getMany(Request req, Response res) {\n int limit = HttpUtils.getQueryParamFromRequest(req, LIMIT_PARAM, 0, DEFAULT_LIMIT, 100);\n int offset = HttpUtils.getQueryParamFromRequest(req, OFFSET_PARAM, 0, DEFAULT_OFFSET);\n String userId = HttpUtils.getQueryParamFromRequest(req, USER_ID_PARAM, true);\n // Filter the response based on the user id, if provided.\n // If the user id is not provided filter response based on requesting user.\n RequestingUser requestingUser = Auth0Connection.getUserFromRequest(req);\n if (userId != null) {\n OtpUser otpUser = Persistence.otpUsers.getById(userId);\n if (requestingUser.canManageEntity(otpUser)) {\n return persistence.getResponseList(Filters.eq(USER_ID_PARAM, userId), offset, limit);\n } else {\n res.status(HttpStatus.FORBIDDEN_403);\n return null;\n }\n }\n if (requestingUser.isAdmin()) {\n // If the user is admin, the context is presumed to be the admin dashboard, so we deliver all entities for\n // management or review without restriction.\n return persistence.getResponseList(offset, limit);\n } else if (persistence.clazz == OtpUser.class) {\n // If the required entity is of type 'OtpUser' the assumption is that a call is being made via the\n // OtpUserController. If the request is being made by an Api user the response will be limited to the Otp users\n // created by this Api user. If not, the assumption is that an Otp user is making the request and the response\n // will be limited to just the entity matching this Otp user.\n Bson filter = (requestingUser.apiUser != null)\n ? Filters.eq(\"applicationId\", requestingUser.apiUser.id)\n : Filters.eq(\"_id\", requestingUser.otpUser.id);\n return persistence.getResponseList(filter, offset, limit);\n } else if (requestingUser.isAPIUser()) {\n // A user id must be provided if the request is being made by a third party user.\n logMessageAndHalt(req,\n HttpStatus.BAD_REQUEST_400,\n String.format(\"The parameter name (%s) must be provided.\", USER_ID_PARAM));\n return null;\n } else {\n // For all other cases the assumption is that the request is being made by an Otp user and the requested\n // entities have a 'userId' parameter. Only entities that match the requesting user id are returned.\n return persistence.getResponseList(Filters.eq(USER_ID_PARAM, requestingUser.otpUser.id), offset, limit);\n }\n }", "title": "" }, { "docid": "f2fdd708e8591ea75831a33b981ff055", "score": "0.5555128", "text": "public void setUserList(List<User> users) {\n _users = users;\n }", "title": "" }, { "docid": "6d01689004478624a3c79e8eb05c8ae7", "score": "0.5549743", "text": "@Override\n public ResponseEntity<ResponseMessage> addUser(@NotNull AddUserRequest addUserRequest) {\n logger.info(STARTING_METHOD_EXECUTION);\n List<EmployeeDetails> list = addUserRequest.getEmployeeDetailsList();\n List<String> notAdded = new ArrayList<>();\n List<String> notAddedId = new ArrayList<>();\n try {\n for (EmployeeDetails model : list) {\n if (userRepo.findByUserEmail(model.getEmail()) == null) {\n if (userRepo.findByOrgId(model.getEmpId()) == null) {\n addNewUserHelperFunction(model, addUserRequest);\n } else\n notAddedId.add(model.getEmpId());\n } else\n notAdded.add(model.getEmail());\n }\n logger.info(EXITING_METHOD_EXECUTION);\n return addUserCondition(notAdded, notAddedId);\n }\n catch (Exception ex)\n {\n logger.error(ERROR_ADDING_USER,ex);\n throw new APIException(ERROR_ADDING_USER);\n }\n }", "title": "" }, { "docid": "48f14011e0a05408e6ed15ec7d9a152e", "score": "0.5549157", "text": "private void initUser() {\n\t\tuserList.clear();\r\n\t\tnew AsyncTask <String, Void, Void>(){\r\n\t\t\t@Override\r\n\t\t\tprotected Void doInBackground(String... arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif((user.mode == ADMIN) || (user.mode == DELIVER)){\r\n\t\t\t\t\tGetUser getuser = new GetUser(arg0[0], arg0[1]);\r\n\t\t\t\t\tfor(User usr : getuser.userList){\r\n\t\t\t\t\t\tif((usr.mode == ENGINEER) || (usr.mode == SALER)){\r\n\t\t\t\t\t\t\tuserList.add(usr);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if((user.mode == ENGINEER) || (user.mode == SALER)){\r\n\t\t\t\t\tuserList.add(user);\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tprotected void onPostExecute(Void result) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tsuper.onPostExecute(result);\r\n\t\t\t\tuseradapter.notifyDataSetChanged();\r\n\t\t\t}\r\n\t\t}.execute(user.id, user.passwd);\r\n\t}", "title": "" }, { "docid": "b22a33d65dee49bad7add84628ea335f", "score": "0.55466133", "text": "private synchronized void addUser() {\n\t\tuser = new User(out);\n\t\tusers.add(user);\n\t}", "title": "" }, { "docid": "ab8b5ed2671289434c232b396e7cff5d", "score": "0.5535503", "text": "public abstract Vector<User> listAllUser();", "title": "" }, { "docid": "c26825b5345ee229dfc583c282089fe8", "score": "0.55343175", "text": "private void updateUserList() {\n\t\tmyLobby.setUsers(lobbyUserList);\n\t\tmyLobby.updateUsers();\n\t}", "title": "" }, { "docid": "238f866835b3ffdf739df3c8b92e1961", "score": "0.55341154", "text": "java.util.List<com.talking.grpc.common.User> \n getUsersList();", "title": "" }, { "docid": "fbb2269aa96799941eaeb86f64858024", "score": "0.5533126", "text": "@Override\r\n public List<User> list() {\n return null;\r\n }", "title": "" }, { "docid": "525a60acddf3090f6a25e7774c030b3b", "score": "0.5522818", "text": "public List<User> getAll() {\r\n return super.getMultiple();\r\n }", "title": "" }, { "docid": "f312fcde2aa743c8ac5a0880f4e0d969", "score": "0.5518586", "text": "public List<Appeal> getAllRequests();", "title": "" }, { "docid": "b9a413e7962cc5d9d54358898155f6f0", "score": "0.5514131", "text": "@GetMapping(\"/userList\")\n\tpublic List<User> getListUser() {\n\n\t\treturn taskManagerService.getUserList();\n\t}", "title": "" }, { "docid": "9b016590faa41cd9d5a05780471ab8b6", "score": "0.55125237", "text": "public void addRequest(Request request);", "title": "" }, { "docid": "78841e084fee3ec3735f8da7284a4be4", "score": "0.55070174", "text": "public void viewJointRequest(User user){\n System.out.println(\"These are your request:\");\n String allRequest = \"\";\n ArrayList<Requests> request = user.jointRequest;\n for(int i = 0; i<= request.size()-1;i++){\n Requests info = request.get(i);\n Account a = info.account;\n User friend = info.userA;\n String add = \"\\n\"+ (i+1)+ \")\"+ \" \" + \"Joint request from\" + \" \" + friend.username+ \" for a\"+\" \"+ a.type + \" \"+\"account\"+ \"\\n\";\n allRequest = allRequest + add;\n }\n\n System.out.println(allRequest);\n }", "title": "" } ]
3a5f1be1b8d76122570ddf12453f917b
Tells the social center that the current account is being signed out. This method does not take in or return any values.
[ { "docid": "4e0f37b6e094678d202b9ad5788945d2", "score": "0.57867754", "text": "public void signOut() {\n accountDisplayPage = new AccountDisplayPage(this);\n rootNode.getChildren().clear();\n rootNode.getChildren().add(signInPage.getNode());\n }", "title": "" } ]
[ { "docid": "23d46bbef819b2d60da44ea2eae97331", "score": "0.71790344", "text": "public void signOut();", "title": "" }, { "docid": "bedf015540794229cc5c540e5fff0c9c", "score": "0.7154327", "text": "@Override\n\tpublic void signOut() {\n\t\tthis.userAccessPair = null;\n\t\tthis.userRefreshToken = null;\n\t\tthis.expiry = 0;\n\t\tthis.authClient.signOut();\n\t}", "title": "" }, { "docid": "4ff9018cb086df2dcefd60a369b7f422", "score": "0.7127907", "text": "private void signOut() {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n isSignedIn = false;\n // [START_EXCLUDE]\n updateUI(false);\n // [END_EXCLUDE]\n }\n });\n }", "title": "" }, { "docid": "2ea7ef047740b070700a8f86c6ef462b", "score": "0.70588297", "text": "private void signOut() {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n // [START_EXCLUDE]\n updateUI(false);\n SharedPreferences.Editor editor = PreferenceManager\n .getDefaultSharedPreferences(MainActivity.this)\n .edit();\n editor.putBoolean(Utility.SIGNED_IN, false);\n editor.apply();\n Snackbar.make(findViewById(R.id.main_content), R.string.disconnected, Snackbar.LENGTH_SHORT).show();\n // [END_EXCLUDE]\n }\n });\n }", "title": "" }, { "docid": "487f2308d8edeb98fdc9ba28723a2327", "score": "0.70173186", "text": "private void signOut() {\n }", "title": "" }, { "docid": "9b749c038a0ff1d0cd2ad5b03061417b", "score": "0.69873697", "text": "private void signOut()\n {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>()\n {\n @Override\n public void onResult(Status status)\n {\n // [START_EXCLUDE]\n updateUI(false);\n // [END_EXCLUDE]\n }\n });\n }", "title": "" }, { "docid": "450b8cbd3050d0afc4d819ddcba81b1b", "score": "0.68824947", "text": "private void signOut() {\n Log.d(LOG_TAG, \"signOut\");\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n updateScreenState(false);\n }\n });\n }", "title": "" }, { "docid": "704476bd08cc765cd51afa16546f0bc8", "score": "0.6879378", "text": "public static void signOut() {\n currentUser = null;\n }", "title": "" }, { "docid": "16ceaa0eb06c167094a30aaac52c07cc", "score": "0.68773806", "text": "public void signOut() {\n actualState = WAITING_SIGNOUT;\n\n BigInteger clientId = getClientId();\n\n Message message = new Message(SIGNOUT, clientId, RESPONSIBLE, clientId.toString());\n connection.sendMessage(message);\n }", "title": "" }, { "docid": "4da728a32bd1dbceaf374b147dcba1cd", "score": "0.6866933", "text": "public boolean signOut() {\n\t\tboolean result = false;\n\t\tif (isReady()) {\n\t\t\ttry {\n\t\t\t\tresult = getService().signOut();\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLog.e(TAG, \"Cannot sign out because \" + ex);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "98954921e2f55ba58f050f8e2b82d2fe", "score": "0.6854581", "text": "private void signOut() {\n Auth.GoogleSignInApi.signOut(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n }\n });\n }", "title": "" }, { "docid": "56b5e342d40fc69cd97cb74baa5a5037", "score": "0.68184817", "text": "public void signOut() {\n // Are we connected at the moment?\n if (!mGoogleApiClient.isConnected()) {\n debugLog(\"signOut(): Was already disconnected, ignoring request.\");\n return;\n }\n\n // For Plus, \"signing out\" means clearing the default account and then disconnecting.\n if( 0 != (mRequestedClients & CLIENT_PLUS) ) {\n debugLog(\"Clearing default account on PlusClient\");\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n }\n\n // For the games client, signing out means calling signOut and disconnecting.\n if( 0 != (mRequestedClients & CLIENT_GAMES) ) {\n debugLog(\"Signing out from the Google API Client\");\n Games.signOut(mGoogleApiClient);\n }\n\n // Now all prepared to disconnect.\n debugLog(\"Disconnecting client.\");\n mConnectOnStart = false;\n mConnecting = false;\n mGoogleApiClient.disconnect();\n }", "title": "" }, { "docid": "9e1bed38e2abaa5d10c30c98bbac120b", "score": "0.6813847", "text": "public static void signOut() {\n getInstance().instanceSignOut();\n }", "title": "" }, { "docid": "6bca66f21da42cbe4db3ac952fe308eb", "score": "0.6808057", "text": "private void signOut() {\n mKeycloakApi.logoutUser(\n KeycloakApi.REALM,\n KeycloakApi.CLIENT_ID,\n mAuthState.getAccessToken()\n ).enqueue(logoutCallback);\n\n // Cleaning Phase\n this.mAuthState = null;\n this.clearAuthState();\n this.enablePostAuthorizationFlows();\n\n // Update UI\n updateLabels();\n }", "title": "" }, { "docid": "e64845584f6dccd108cbd3ee16bf0a28", "score": "0.6777433", "text": "private void signOut() {\n FirebaseAuth.getInstance().signOut();\n\n AccessTokenTracker accessTokenTracker = new AccessTokenTracker() {\n @Override\n protected void onCurrentAccessTokenChanged(\n AccessToken oldAccessToken,\n AccessToken currentAccessToken) {\n\n if (currentAccessToken == null){\n //User logged out\n\n LoginManager.getInstance().logOut();\n Intent i = new Intent(SearchTracksResultsActivity.this, HomeActivity.class);\n startActivity(i);\n }\n }\n };\n\n }", "title": "" }, { "docid": "1dd877ccbbcd107ba1d093e4b3b8500d", "score": "0.6753555", "text": "public void LogOut(){\n //log out the user\n loggedINAccount = null;\n }", "title": "" }, { "docid": "def504f6fe4e4258b314c5a416f72491", "score": "0.6742", "text": "private void signOut() {\n mAuth.signOut();\n refreshPage();\n }", "title": "" }, { "docid": "85d055c01d10a636f10cc6371e5e9cce", "score": "0.6727446", "text": "public void signOut() {\n Task<Void> signOutTask = service.signOut();\n signOutTask.addOnCompleteListener(vd -> listener.onSignedOut(false));\n }", "title": "" }, { "docid": "5897a13bd14a53df58f133061624c005", "score": "0.66935533", "text": "public void signOut() {\n LogoutHandler.getInstance().startLogout();\n showWaitingDialog(false);\n }", "title": "" }, { "docid": "98cc1ed63cb617ff87a311e2339feb2f", "score": "0.66717035", "text": "public void Signout() {\n UserSharePrefManager.getInstance(UserAccountSettingActivity.this).UserLogout();\n DriverSharePrefManager.getInstance(UserAccountSettingActivity.this).DriverLogout();\n\n Toast.makeText(this, \"SignOut\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(UserAccountSettingActivity.this, UserLoginActivity.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "bbaf2711238b4ced79164b06889b28f9", "score": "0.66030896", "text": "private void signOutUserFromFirebase(){\n AuthUI.getInstance()\n .signOut(this)\n .addOnSuccessListener(this, updateUIAfterResTRequestsCompleted(SIGN_OUT_TASK));\n }", "title": "" }, { "docid": "b86c368d004fe75ae3e34b0f55517f6d", "score": "0.65813553", "text": "private void signOutclicked() {\n mSignInClicked = false;\n Games.signOut(mGoogleApiClient);\n }", "title": "" }, { "docid": "350587210b7ebdb074e167db1d1148d1", "score": "0.6529954", "text": "private boolean logout(){\n SharedPreferences.Editor editor = prefs.edit();\n editor.remove(\"rememberToken\");\n editor.putString(\"signedIn\", \"no\");\n editor.remove(\"familyNumber\");\n return editor.commit();\n }", "title": "" }, { "docid": "56549f7a448637f40247f4388e2641a2", "score": "0.64630026", "text": "public SignIn verifySignOut() {\n\n\t\t// Verification Point : sign in page is displayed\n\t\tWebElement btnIdLogin = commonLibrary.isExistNegative(UIMAP_SignIn.txtSignInHeader, 10);\n\t\tif (btnIdLogin != null && driver.getCurrentUrl().toLowerCase().contains(UIMAP_SignIn.txtSigninTitleMsg)) {\n\t\t\treport.updateTestLog(\"Verify Logout\", \"Sign In to Lexis Advance screen is displayed\", Status.PASS);\n\t\t} else {\n\t\t\treport.updateTestLog(\"Verify Logout\", \"Sign In to Lexis Advance screen is NOT displayed\", Status.WARNING);\n\t\t}\n\n\t\treturn new SignIn(scriptHelper);\n\t}", "title": "" }, { "docid": "e58b5c4ef7c5332cf6a106329e9874c9", "score": "0.6436974", "text": "public void signOutOfDD()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignOutLink();\n\t\t\n\t}", "title": "" }, { "docid": "8862b87ab7cc74b7bce84b901ce862d8", "score": "0.63860595", "text": "protected void signOut() {\n\n if(allSharedPreference.getPreferenceSession(PREF_NAME))\n {\n allSharedPreference.savePreferenceData(PREF_NAME,false);\n final ProgressDialog ringProgressDialog = ProgressDialog.show(HomePage.this, \"Please wait\", \"Log out\", true);\n ringProgressDialog.setCancelable(true);\n new Thread( new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(2500);\n } catch (Exception e) {\n }\n ringProgressDialog.dismiss();\n }\n }).start();\n ringProgressDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n Close_activity(HomePage.this,LogIn_Activity.class);\n }\n });\n }\n }", "title": "" }, { "docid": "fe0fcc5be4ac360a17d4a10a36480912", "score": "0.6363494", "text": "private void onCurrentAccountRemoved() {\n\t\tIntent intent = new Intent();\n\t\tintent.setAction(\"logout\");\n\t\tintent.putExtra(Constants.ACCOUNT_REMOVED,true);\n\t\tappContext.sendBroadcast(intent);\n\t}", "title": "" }, { "docid": "8859a9c1940ed158c4af72da906a9473", "score": "0.63134474", "text": "public void signOut(Context context) {\n FirebaseAuth mAuth;\n mAuth = FirebaseAuth.getInstance();\n mAuth.signOut();\n SessionManager manager = new SessionManager(context);\n manager.setIsLoggedIn(false);\n }", "title": "" }, { "docid": "7783011c66746f6cf213ccfac6d7996d", "score": "0.62413", "text": "public void logOut() {\n firebaseConnection.userSignOut();\n new LogUserOutAsync(userDAO, appointmentDAO).execute();\n }", "title": "" }, { "docid": "69a5b7aaa893a4fac24ca087223ea453", "score": "0.6230988", "text": "@Override\n public void onSuccess(Void aVoid) {\n signOut();\n }", "title": "" }, { "docid": "84637afdd43b5fd64aa644bd0d05ad83", "score": "0.6225373", "text": "private void userLogout()\n {\n //cView.loginView();\n printMessageToView(\"Are you sure to log out? (YES:y)\");\n \n String key = cView.userInput();\n if(key.equalsIgnoreCase(\"Y\"))\n {\n userType = USER_ANONYMOUS;\n currentUserID = 0;\n currentUserName = \"\";\n cView.setUserName(currentUserName);\n }\n scene = SCENE_MAIN_MENU;\n }", "title": "" }, { "docid": "da2a2f9e7bff6932efd76c727f58d3b4", "score": "0.62221634", "text": "public static void logout(final MapsActivity callerActivity) {\n AuthUI.getInstance().signOut(callerActivity)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.d(\"Logout\", \"User logged out\");\n FirebaseUIActivity.attachListener();\n }\n });\n }", "title": "" }, { "docid": "e9d466a9666529a545b61b812039bfea", "score": "0.61918837", "text": "public void api_logout(){\r\n\t\tcache.currentUser = null;\r\n\t\tstoreUserInfo(null);\r\n\t\tIntent loginIntent = new Intent(mContext, LoginActivity.class);\r\n\t\tfinish();\r\n\t\tstartActivity(loginIntent);\r\n\t\toverridePendingTransition(R.anim.slide_in_left,R.anim.slide_out_right);\r\n\r\n\t}", "title": "" }, { "docid": "52baa319460dc2a05996dd6b08823d34", "score": "0.6188218", "text": "@Override\r\n\tpublic User signOut(User user) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "7363db0977e422a24bfe0cdb4a70e6e0", "score": "0.618182", "text": "private void onClickLogout() {\r\n\t\tSession session = Session.getActiveSession();\r\n\t\tif (!session.isClosed()) {\r\n\t\t\tsession.closeAndClearTokenInformation();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c93ebf0f728727caabee8322f161482e", "score": "0.61780334", "text": "void signOutUser() {\n mFirebaseAuth.signOut();\n ViewUtils.startCustomActivity(this, WelcomeActivity.class, null, true);\n }", "title": "" }, { "docid": "183cb14d5f57bf22c224d845b72a6b30", "score": "0.6168552", "text": "@Override\n public void onClick(View view) {\n signOut(); }", "title": "" }, { "docid": "399a4a0167faf1fda2c4526c59f3df0c", "score": "0.6139867", "text": "private void logout() {\n Kandy.getAccess().logout(new KandyLogoutResponseListener() {\n\n /**\n * {@inheritDoc}\n */\n @Override\n public void onLogoutSucceeded() {\n Log.d(LCAT, \"Kandy.logout->onLoginSucceeded() was invoked\");\n unregisterNotificationListener();\n callbackContext.success();\n }\n\n /**\n * {@inheritDoc}\n */\n @Override\n public void onRequestFailed(int code, String error) {\n Log.d(LCAT, \"Kandy.logout->onRequestFailed() was invoked: \" + String.valueOf(code) + \" - \" + error);\n callbackContext.error(String.format(utils.getString(\"kandy_error_message\"), code, error));\n }\n });\n }", "title": "" }, { "docid": "0446bb54003423185900ef8379d88c89", "score": "0.6136746", "text": "public AmazonLoggoutPage logOut() {\n\t\thoverOverElementAndClick(accountDropDown, signOut);\n\t\treturn PageFactory.initElements(driver, AmazonLoggoutPage.class);\n\t}", "title": "" }, { "docid": "7e076cc79d9abfc1c7ba6d3781e54bdc", "score": "0.6135485", "text": "private void signOut() {\n if (mAuth != null) {\n mAuth.signOut();\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "a8e5cf0aff06cea4c50dbb65c2694531", "score": "0.6103864", "text": "public boolean getCurrentAccountRemoved() {\n return isCurrentAccountRemoved;\n }", "title": "" }, { "docid": "701fbe8f27d08bf6df815b69239fb3b7", "score": "0.60850763", "text": "public static void logout() {\n loggedIn = false;\n }", "title": "" }, { "docid": "3a010293638b9f93abe16356ba878b5e", "score": "0.6071894", "text": "private boolean userLogout(){\n //check if parse user is not null (this should always be true, but just a failsafe\n ParseUser user = ParseUser.getCurrentUser();\n if (user == null) {\n return false;\n }\n\n // log the user out\n ParseUser.logOut();\n\n //check to make sure the user really was logged out\n user = ParseUser.getCurrentUser();\n if(user == null) {\n return true;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "4e7ffd7b2ee75663a2113f066cb27b14", "score": "0.6071639", "text": "private void logOut() {\n User user = (User) User.getCurrentUser();\n // Save current user name into preferences\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n sharedPreferences.edit().putString(PREFERENCE_CURRENT_USERNAME, user.getUsername()).apply();\n\n user.logOutInBackground(new LogOutCallback() {\n @Override\n public void done(ParseException e) {\n Intent intentLogout = new Intent(HomeActivity.this, LoginActivity.class);\n startActivity(intentLogout);\n }\n });\n }", "title": "" }, { "docid": "93a6f5c1e7b4e331894508b60ffd4ebb", "score": "0.60415417", "text": "private void signOut() {\n googleSignInClient.signOut()\n .addOnCompleteListener(getActivity(), task -> {\n Toast.makeText(getContext(), \"Salido\", Toast.LENGTH_LONG).show();\n revokeAccess();\n //eliminar el pref de ganancias\n saveOnPreferencesganancias(\"\" ,\"\", \"\",0,0);\n });\n }", "title": "" }, { "docid": "29abca878434a88e0bf9b0679459f44f", "score": "0.604032", "text": "public void logout() {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.clear();\n editor.apply();\n mCtx.startActivity(new Intent(mCtx, SignInActivity.class));\n }", "title": "" }, { "docid": "c62c347d0b7f78abd516cc1292a3ef91", "score": "0.6037092", "text": "public void signout() {\n\t\t((EgnyteAppObject)getApplication()).httpclient = new DefaultHttpClient();\n\t\tUtils.deleteUserPassword(getBaseContext());\n\t\t\n\t\tIntent intent = new Intent(this, LoginViewController.class);\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // Removes other Activities from stack\n\t\tstartActivity(intent);\n\t}", "title": "" }, { "docid": "f7f78a6ca33ecc401f9830a0af26335e", "score": "0.6015116", "text": "public static void logOut(){\n User.saveUser(loggedInUser);\n loggedInUser.toggleLoggedIn();\n loggedInUser = null;\n }", "title": "" }, { "docid": "daec8814270eb8369c2b0776ae767096", "score": "0.60148144", "text": "public boolean signOutBlocking() {\n\t\tboolean result = false;\n\t\tif (isReady()) {\n\t\t\tresult = signOut();\n\t\t} else {\n\t\t\t// Adds the FutureTask to be executed when the service is connected\n\t\t\tFutureTask<Boolean> future = new FutureTask<Boolean>(new Callable<Boolean>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\treturn signOut();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\taddConnectedTasks(future);\n\t\t\t\n\t\t\t// Wait until the underlying service is connected then return the result\n\t\t\ttry {\n\t\t\t\tresult = future.get();\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLog.e(TAG, \"Cannot sign out because \" + ex);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "c91a7383d054d384042da34c33c353c8", "score": "0.59608626", "text": "public void signOutUser(){\n auth.signOut();\n Intent intent = new Intent(MainActivity.this, LoginActivity.class);\n startActivity(intent);\n finish();\n\n }", "title": "" }, { "docid": "2a0663b30f659896bc018490e4b59657", "score": "0.5934698", "text": "public Boolean loginOut (User user);", "title": "" }, { "docid": "d8df8cf120019f0e073eed658e167da1", "score": "0.5930651", "text": "private void logOut()\n {\n FirebaseAuth.getInstance().signOut();\n\n // Configure Google Sign In\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN).requestIdToken(getString(R.string.default_web_client_id)).requestEmail().build();\n\n // Sign out User from Google\n GoogleSignIn.getClient(this, gso).signOut().addOnCompleteListener(this, new OnCompleteListener<Void>()\n {\n @Override\n public void onComplete(@NonNull Task<Void> task)\n {\n // Show the Login Activity\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n\n // Remove History\n finish();\n }\n });\n }", "title": "" }, { "docid": "8479729d772fd3ff4f8fe1feeb796d8d", "score": "0.5926486", "text": "protected void onSignedOff() {\n\t\tSystem.out.println(\"onBuddySignedOff\");\n\t\tSystem.out.println(alias);\n\t\tSystem.out.println(name);\n\t}", "title": "" }, { "docid": "62c11f4b59c4e3c7a9184c21d0f2371c", "score": "0.5916409", "text": "public boolean logout() {\n return false;\n }", "title": "" }, { "docid": "4cdb06dac828933ca2e028b17895f0ea", "score": "0.59116375", "text": "public void logout() {\n ourInstance = null;\n loggedIn = false;\n Editor e = settings.edit();\n e.clear();\n e.apply();\n }", "title": "" }, { "docid": "72254124c8fe3c54a7a835e23887cd0a", "score": "0.5894871", "text": "public void ensureUserIsLoggedOut(){\n\t\ttry{\n\t // Get the user if one is logged in.\n\t Subject currentUser = getSubject();\n\t if (currentUser == null)\n\t return;\n\t // Log the user out and kill their session if possible.\n\t currentUser.logout();\n\t Session session = currentUser.getSession(false);\n\t if (session == null)\n\t return;\n\t session.stop();\n\t }\n\t catch (Exception e){\n\t // Ignore all errors, as we're trying to silently \n\t // log the user out.\n\t \tlog.warn(\"Some exception happen, but can forget!\");\n\t }\n\t}", "title": "" }, { "docid": "231a324329e928f6f32bea81e5570f58", "score": "0.58918124", "text": "@Subscribe\n public void onLogout(Account.LogoutEvent event) {\n finish();\n }", "title": "" }, { "docid": "e7f9a7e34168319d80e91594713150da", "score": "0.58906543", "text": "public void logout(){\n this.logoutDate = new Date();\n }", "title": "" }, { "docid": "545c600b8107472fbf3b13d4dea855a6", "score": "0.58733714", "text": "public void logOutFromSettingsView(){\n\t\tsignOutButton.click();\n\t\tsignOutAlertDialogButtonConfirm.click();\n\t}", "title": "" }, { "docid": "17ed6d58866f2904ed34ea8e342bdd91", "score": "0.5868919", "text": "public String logout() {\n final FacesContext context = FacesContext.getCurrentInstance();\n if (!conversation.isTransient()) {\n conversation.end();\n }\n context.getExternalContext().invalidateSession();\n context.getExternalContext().getSessionMap().clear();\n return \"logout\";\n }", "title": "" }, { "docid": "738e9a81f8a348bd750954477d498e53", "score": "0.58543164", "text": "public void setLogedout() {\n logedin = false;\n }", "title": "" }, { "docid": "a6c377e1cbea651e1a5894c4beca00dc", "score": "0.585", "text": "public void Logout()\n {\n userName = null;\n password = null;\n email = null;\n accountID = 0;\n\n //take user to \"login\" activity/screen\n }", "title": "" }, { "docid": "feeca4af04b8bfd5d3b0ef026a2fd8ce", "score": "0.5845801", "text": "private void LogOut() {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setMessage(getResources().getString(R.string.log_out_action));\n alertDialogBuilder.setPositiveButton(getResources().getString(R.string.ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //remove firebase auth\n mAuth.signOut();\n mSharedPrefUtilities.clearData();\n intentToWelcomeScreen();\n }\n });\n alertDialogBuilder.setNegativeButton(getResources().getString(R.string.cancel), null);\n AlertDialog alert = alertDialogBuilder.create();\n alert.show();\n }", "title": "" }, { "docid": "8e33fb9a4b0569e9d62556b585bc50be", "score": "0.58432907", "text": "public Result logOut() {\n session().clear();\n flash(\"success\", \"You've been logged out\");\n return redirect(routes.AccountController.logIn());\n }", "title": "" }, { "docid": "5991c119768b4cd9c904a0572059e114", "score": "0.5835291", "text": "private void logout() {\n if (mAuthData != null) {\n mFirebaseRef.unauth();\n setAuthenticatedUser(null);\n }\n }", "title": "" }, { "docid": "696b2312bc1ed8161ad480d611591a9b", "score": "0.5802769", "text": "public boolean logout()\n {\n if(!isAuthenticated.get())\n return false;\n\n isAuthenticated.set(false);\n\n loggedIn = null;\n return true;\n }", "title": "" }, { "docid": "05c5457fe77606ef20a5d9e7ae97ac59", "score": "0.58023256", "text": "public void signOutclicked() {\n mSignInClicked = false;\n Games.signOut(mGoogleApiClient);\n\n //Inicializamos API Google\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)\n .addApi(Games.API).addScope(Games.SCOPE_GAMES)\n .build();\n }", "title": "" }, { "docid": "cbff7b337fe13aca7d802a311f989620", "score": "0.5783316", "text": "public String logout() {\n\t\tSubject currentUser=SecurityUtils.getSubject();\n\t\ttry {\n\t\t\tcurrentUser.logout();\n\t\t\tsetDesable(false);\n\t\t\treturn \"pretty:login\";\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e60e0ccb6d26459658431a6036b6daba", "score": "0.5774582", "text": "public void logout() {\n this.isValid = false;\n this.authStudent = null;\n this.authFac = null;\n }", "title": "" }, { "docid": "4b4226b6f3836b3504698f953bc63b33", "score": "0.57637864", "text": "@When(\"^User logs out 'You have been logged off your account\\\\. It is now safe to leave the computer\\\\. Your shopping cart has been saved, the items inside it will be restored whenever you log back into your account' message should display$\")\n\t\tpublic void user_logs_out_You_have_been_logged_off_your_account_It_is_now_safe_to_leave_the_computer_Your_shopping_cart_has_been_saved_the_items_inside_it_will_be_restored_whenever_you_log_back_into_your_account_message_should_display() throws Throwable {\n\t\t\t\n\t\t\tabc.myAccountverificationLogout();\n\t\t}", "title": "" }, { "docid": "5505dfa867475fefb3bad10f62e80328", "score": "0.57567024", "text": "public void signOut(boolean notify) {\n if (fbChatMainFrame != null) {\n fbChatMainFrame.setVisible(false);\n fbChatMainFrame.dispose();\n fbChatMainFrame = null;\n }\n\n\n if ((xmppConnection != null) && (xmppConnection.isConnected())) {\n xmppConnection.disconnect(new Presence(Presence.Type.unavailable));\n xmppConnection = null;\n }\n\n if (trayNotifier != null) {\n trayNotifier.setPresence(null);\n }\n\n if (fbConnection != null) {\n fbConnection.disconnect();\n fbConnection = null;\n }\n\n if (serviceTimer != null) {\n serviceTimer.cancel();\n serviceTimer = null;\n }\n\n roster = null;\n vCard = null;\n avatarMid = null;\n avatarBig = null;\n presence = null;\n\n if (contactList != null) {\n contactList.clear();\n contactList = null;\n }\n\n if (chatManager != null) {\n chatManager.clear();\n chatManager = null;\n }\n\n filter = null;\n userId = null;\n listener = null;\n\n if (notify) {\n fireUserSignedOut();\n }\n synchronized (listeners) {\n listeners.clear();\n }\n//\n// if (listeners != null) {\n// synchronized (listeners) {\n// listeners.clear();\n// }\n// listeners = null;\n// }\n }", "title": "" }, { "docid": "b00e8d4e9ab5bf33fd2a90972c3d9eda", "score": "0.5736111", "text": "void logoutUser();", "title": "" }, { "docid": "10eaa0b3e1d276401374dc857d5730d4", "score": "0.57340765", "text": "public void logout() {\n this.loggedIn = null;\n this.userProjectsByCategory = null;\n this.getLoggedIn();\n }", "title": "" }, { "docid": "fe862f6332fa766ac150062695a1d767", "score": "0.57334584", "text": "public void onLogout() {\n\t\tfriendsIgnores.onLogout();\n\t\tif (friendsChat != null)\n\t\t\tfriendsChat.leave(this);\n\t}", "title": "" }, { "docid": "bbc5e7ffaa5be04fca88df002dab8124", "score": "0.5716913", "text": "@Override\r\n\tpublic void logout() {\n\t\tdeleteUserFromSession();\r\n\t}", "title": "" }, { "docid": "1e61fa1e6f8c15549bfc5d2ea8a590b6", "score": "0.57153934", "text": "public final String checkLogout() {\n if (currentUser == null) {\n return \"index.xhtml?faces-redirect=true\";\n }\n\n return null;\n }", "title": "" }, { "docid": "c0a79260b909d2d9eb04d3dd03f2c55c", "score": "0.5714431", "text": "private void signOut() {\n mGoogleSignInClient.signOut()\n .addOnCompleteListener(this, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Toast.makeText(LoaiSpActivity.this, \"Đăng Xuất Thành Công\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);\n }\n });\n }", "title": "" }, { "docid": "fa9d0f3197d54d92f3e33538fe261760", "score": "0.57059556", "text": "private void logout() {\n mAuth.signOut();\n startActivity(new Intent(this, MainActivity.class));\n finish();\n }", "title": "" }, { "docid": "528e564b89c500e8afb16aa3ec39e5c6", "score": "0.56997734", "text": "@Override\n\tpublic boolean logOut() throws BusinessException {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e2495a370bbbc1a371bfee54806ebaaf", "score": "0.56993175", "text": "public void logout(){\n String urlLogout = Util.URL_HOST + Util.PATH_LOGOUT;\n OkHttpClient client = Util.getHttpClient();\n final Request request = new Request.Builder()\n .url(urlLogout)\n .header(\"User-Agent\", Util.USER_AGENT)\n .addHeader(\"Cookie\", SESSION_ID)\n .addHeader(\"Content-Type\", Util.CONTENT_TYPE)\n .post(new okhttp3.FormBody.Builder().build())\n .build();\n\n client.newCall(request).enqueue(new Callback() {\n @Override\n public void onFailure(@NotNull Call call, @NotNull IOException e) {\n e.printStackTrace();\n loggedOut = false;\n }\n\n @Override\n public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {\n if(response.isSuccessful()){\n ResponseBody responseBody = response.body();\n if (responseBody != null){\n try {\n JSONObject responseJson = new JSONObject(responseBody.string());\n if (responseJson.has(\"status\") &&\n responseJson.getString(\"status\").equals(\"ok\")){\n loggedOut = true;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n }\n });\n hasPrevSession = false;\n }", "title": "" }, { "docid": "fc8fd36cf4d693c2a34db3a01bbb8293", "score": "0.5698986", "text": "public void logoutUser(){\n // Clearing all data from Shared Preferences\n editor.clear();\n editor.commit();\n\n // After logout redirect user to Login Activity\n Intent intent = new Intent(_context, LoginScreen.class);\n\n // Closing all the Activities\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n // Add new Flag to start new Activity\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n // Starting Login Activity\n _context.startActivity(intent);\n }", "title": "" }, { "docid": "98008a80234f80b97bfd363594ba9a8c", "score": "0.56981707", "text": "private void onLogout() {\n if (activeUserController.getUser().isOnline()) {\n // show msg and return\n Utils.showLongToast(this, R.string.you_cant_logout_when_you_are_online);\n return;\n }\n\n // show confirm dialog\n DialogUtils.showConfirmDialog(this, R.string.logout_q, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n logout();\n }\n }, null);\n }", "title": "" }, { "docid": "ef475f4cb04d3871e62c5c116db5e121", "score": "0.56950486", "text": "private void postSignedOutCleanup() {\n Timber.d(\"postSignedOutCleanup\");\n\n //getMasterDatabase().preSignOut();\n }", "title": "" }, { "docid": "25e38d382bf2981344f3f5446d7fa92d", "score": "0.5676287", "text": "public void logout() {\r\n// System.out.println(\"LOGGING OUT, RETURNING TO MAIN MENU\");\r\n\r\n // Set username to null and empty out buddy list.\r\n username = null;\r\n password = null;\r\n password2 = null;\r\n emailAddress = null;\r\n dateOfBirth = null;\r\n buddyList.set( null);\r\n if (isLoggedIn()) {\r\n cmdList.removeAllElements();\r\n ItemList itemList = new ItemList();\r\n itemList.setItem(\"cmd\", \"unifiedLogout\");\r\n itemList.setItem(\"listener\", this);\r\n executeCmd(itemList);\r\n showDialog(\r\n \"Logging Out\",\r\n \"Logging out... one moment please.\",\r\n null, Community.WELCOME+\" \",\r\n Dialog.ALERT\r\n );\r\n } else {\r\n switchToView( WELCOME+\" \");\r\n }\r\n }", "title": "" }, { "docid": "ce7be45c5da54de5392e86ab94f9e572", "score": "0.56739676", "text": "@WebMethod\n public String playerSignOut (String Username, String IPAddress);", "title": "" }, { "docid": "3e39e1f0d66658d3eb03df559b97113b", "score": "0.56633073", "text": "public void logout()\n {\n api.clearAccessToken();\n }", "title": "" }, { "docid": "4e5cd049649f37ef0b6179d0a05ba8f8", "score": "0.56618166", "text": "public void logoutSocialNetworkAccount(Identity accountToLogout)\n\t{\n\t\tif (running && (accountToLogout != null)) {\n\t\t\tsynchronized (actions) {\n\t\t\t\tChatManagerAction action = null;\n\n\t\t\t\tif (accountToLogout.getType() == Identity.TYPE_SN_ACCOUNT) {\n\t\t\t\t\taction = createAction(ChatManagerAction.TYPE_LOGOUT_SN_ACCOUNT);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\taction = createAction(ChatManagerAction.TYPE_LOGOUT_IM_ACCOUNT);\n\t\t\t\t}\n\n\t\t\t\taction.setNetwork(accountToLogout.getNetwork());\n\t\t\t\trequestMyIdentities(action);\n\t\t\t\t\n\t\t\t\t//#debug info\n\t\t\t\tSystem.out.println(\"Request \" + action.getRequestId() + \": get social network accounts to logout \");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a217638dfb118fc6fdd43fdc2ca976f7", "score": "0.5658114", "text": "public String logOut() {\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance()\r\n .getExternalContext().getSession(false);\r\n session.invalidate();\r\n return \"index?faces-redirect=true\";\r\n }", "title": "" }, { "docid": "afec1dd9787ca30a508c42eb1fe82855", "score": "0.5650537", "text": "public void logout() {\n\t\tthis.userLogin = null;\n\t}", "title": "" }, { "docid": "696df407879a4a29f3f750a84c859810", "score": "0.5646178", "text": "public void onLogoutOkClick() {\r\n\t\tSharedPreferences settings = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tsettings = getSharedPreferences(PREFS_NAME, 0);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t\tLogUtils.getInstance().d(LOG_TAG, \"[onLogoutOkClick] error: \", e);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\t// 2012.12.27 Commonize OAuth Token Clear (furuike)\r\n\t\t\t// SharedPreferences.Editor editor = settings.edit();\r\n\t\t\t// editor.putString(ACCESS_TOKEN, null);\r\n\t\t\t// editor.putString(REFRESH_TOKEN, null);\r\n\t\t\t// editor.putString(OAUTH_PRM_USERNAME, null);\r\n\t\t\t// editor.putString(RakutenHomeController.TOTAL_POINT_CACHE, null);\r\n\t\t\t// editor.putString(LIMIT_POINT_CACHE, null);\r\n\t\t\t// editor.putString(COOKIE_STRING, null);\r\n\t\t\t// editor.putString(COOKIE_EXPIRED, null); // for cookie\r\n\t\t\t// experied.add by furuike.2012/09/05\r\n\t\t\t// editor.putString(USER_LOGIN_ID, null);\r\n\t\t\t// editor.putInt(RakutenHomeController.BUDGE_IMAGE_CACHE, 0);\r\n\t\t\t// editor.commit();\r\n\t\t\t\trefreshShared(this);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// ignore\r\n\t\t\t\tLogUtils.getInstance()\r\n\t\t\t\t\t\t.d(LOG_TAG, \"[onLogoutOkClick] error: \", e);\r\n\t\t\t}\r\n\r\n\t\t\t// TODO : LOGOUT\r\n\t\t\tAppMeasurementWrapper.getInstance().initialize(getApplication());\r\n\t\t\tif (AppMeasurementWrapper.getInstance().getClickPointEnum() == null) {\r\n\t\t\t\tAppMeasurementWrapper.getInstance().track(\r\n\t\t\t\t\t\tAppEffectPointEnum.TOP,\r\n\t\t\t\t\t\tAppEffectClickPointEnum.HOME_LOGOUT_1);\r\n\t\t\t}\r\n\t\t\r\n\t\tfinish();\r\n\t}", "title": "" }, { "docid": "a48afb9b1f9cf6f0af2b198eff89ff32", "score": "0.56370234", "text": "@Transactional(propagation = Propagation.REQUIRED)\n public UserAuthEntity signout(String accessToken) throws SignOutRestrictedException {\n UserAuthEntity userAuthByAccessToken = userDao.getUserAuthByAccessToken(accessToken);\n if (userAuthByAccessToken==null){\n throw new SignOutRestrictedException(\"SGR-001\",\"User is not Signed in\");\n }\n\n userAuthByAccessToken.setLogoutAt(ZonedDateTime.now());\n userDao.updateUserAuth(userAuthByAccessToken);\n return userAuthByAccessToken;\n }", "title": "" }, { "docid": "c6a9c82adcca95ed79051e131625a88d", "score": "0.56332093", "text": "private void logout() {\n activeUserController = new ActiveUserController(this);\n activeUserController.logout();\n\n // goto splash activity\n Intent splashIntent = new Intent(this, SplashActivity.class);\n startActivity(splashIntent);\n finish();\n }", "title": "" }, { "docid": "523fa8adba45acf209c693910aa12ad9", "score": "0.5631742", "text": "@Override\n\tpublic User signOut(User user) {\n\t\treturn userRepository.findByEmail(user.getEmail());\n\t}", "title": "" }, { "docid": "a57460aaca2134fd7077eb87e358b047", "score": "0.563018", "text": "@Override\n public void logoutOfThirdParty() {\n LoginManager.getInstance().logOut();\n Log.i(TAG, \"Logged out of FB\");\n }", "title": "" }, { "docid": "653a413f44e9e4ae3d8021f26f82be89", "score": "0.5626104", "text": "@Override\n public void onClick(View v) {\n googleSignInClient.signOut().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(Task<Void> task) {\n //On Succesfull signout we navigate the user back to LoginActivity\n Intent intent=new Intent(ProfileActivity.this, SignIn.class);\n //intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n //Toast.makeText(ProfileActivity.this, \"LOGOUT\", Toast.LENGTH_LONG).show();\n }\n });\n }", "title": "" }, { "docid": "636b4808d687be4ffd6d7c6834c24da0", "score": "0.5611898", "text": "public void logout() {\n //save banner again\n /*String banner = Prefs().getString(Consts.BANNER, \"\");\n SharedPreferences.Editor edit = Prefs().edit();\n edit.clear().commit();\n edit.putBoolean(Consts.FIRST_RUN, false).commit();\n edit.putString(Consts.BANNER, banner).commit();*/\n }", "title": "" }, { "docid": "1a8bb4837e4f5e31df8dae7aaf2df23e", "score": "0.5599598", "text": "@VTID(21)\n void logoff();", "title": "" }, { "docid": "169186347b59ba476c710c8997ea6220", "score": "0.5598561", "text": "public void logOut() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"username\", \"\");\n editor.putString(\"friendUsername\", \"\");\n editor.commit();\n myTimer.cancel();\n finish();\n Intent i = new Intent(ColorActivity.this, LoginActivity.class);\n startActivity(i);\n }", "title": "" }, { "docid": "235600dc5a42b623aaf23b8fcd60b5a3", "score": "0.55955213", "text": "public void loginOrLogout(View view) {\n // allows user to go to previous activity\n preferences.edit().putInt(\"Activity\", 1).commit();\n // gets sign in type\n int signInType = utilities.getSignInType();\n // google user\n if (signInType == 1) {\n // signs google user out\n googleUser.signOut();\n }\n else{\n // signs other user out\n utilities.signoutOrSignUp();\n }\n }", "title": "" }, { "docid": "561e5c8e14b905cb2e43d0c7165a8372", "score": "0.55945814", "text": "public String logout() {\n\t\tMap<String, Object> session = ActionContext.getContext().getSession();\n\t\tsession.remove(\"logined\");\n\t\tsession.remove(\"name\");\n\t\tsession.remove(\"time\");\n\t\taddActionMessage(\"Đăng xuất thành công!\");\n\t\treturn \"success\";\n\t}", "title": "" } ]
cc6d65aca25e6ec875a735df4e2001ed
Returns numerical representation of progress
[ { "docid": "f96299f8b6e1f6ca0c725d0019d0e7c3", "score": "0.7330623", "text": "public float getProgressNum() {\n\t\tfloat dProgress = ((float) blackList.size()) / blockList.size();\n\t\tdProgress *= 100;\n\t\treturn dProgress;\n\t}", "title": "" } ]
[ { "docid": "4289e0c3fb05ece7d7f25181c628dde3", "score": "0.7917063", "text": "public double getProgress();", "title": "" }, { "docid": "a4f7c25b3ec244365afece5d06cc5545", "score": "0.7818555", "text": "float getProgress();", "title": "" }, { "docid": "6d16ec2aa4ce38a29e360a785190ee4d", "score": "0.781467", "text": "public double getProgress() {\n if (this.processing == 0) return 0;\n return 100.0f * ((double) this.processed / (double) this.processing);\n }", "title": "" }, { "docid": "3bcfb98551df36472fd5fdf3e1562e6e", "score": "0.7774972", "text": "int getCurrentProgress();", "title": "" }, { "docid": "95d62f00552c86736ce220c36cc0eba5", "score": "0.76766676", "text": "public float getProgress();", "title": "" }, { "docid": "95d62f00552c86736ce220c36cc0eba5", "score": "0.76766676", "text": "public float getProgress();", "title": "" }, { "docid": "b7bfe0e064564e9b56c8fe6e8c056a99", "score": "0.7676316", "text": "int getProgress();", "title": "" }, { "docid": "87696263006ac4395e591004f4eff45a", "score": "0.7671401", "text": "public int getProgressValue() { return progress; }", "title": "" }, { "docid": "94b7838e51122a818ea12870b88d0621", "score": "0.7603023", "text": "public int getProgress() {\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}", "title": "" }, { "docid": "2927be2190a4e5352a2c3a6ace2a8aa7", "score": "0.75441015", "text": "public String getProgress() {\n\t\treturn progress;\n\t}", "title": "" }, { "docid": "2927be2190a4e5352a2c3a6ace2a8aa7", "score": "0.75441015", "text": "public String getProgress() {\n\t\treturn progress;\n\t}", "title": "" }, { "docid": "86468e0267461db862c3fc34fc07ea3e", "score": "0.75071394", "text": "@Exported\n public int getProgress() {\n final Queue.Executable e = executable;\n if (e == null)\n return -1;\n final long d = Executables.getEstimatedDurationFor(e);\n if (d < 0)\n return -1;\n\n int num = (int) (getElapsedTime() * 100 / d);\n if (num >= 100)\n num = 99;\n return num;\n }", "title": "" }, { "docid": "e31474aa7b4727c1aad92bfa625a86c2", "score": "0.750662", "text": "public Integer getProgress() {\n return progress;\n }", "title": "" }, { "docid": "2f438e573296bde5bbc641e03f34a3ff", "score": "0.74918914", "text": "public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }", "title": "" }, { "docid": "a3fb32348eee0b9e10a45e6fd0c0539c", "score": "0.7449751", "text": "public double getProgress() {\n return progress;\n }", "title": "" }, { "docid": "5921b06da98ad4fc7a83075177a6a41e", "score": "0.7432554", "text": "public int getProgress() {\n switch (this.state) {\n case STATE_INIT_DONE:\n return 15;\n case STATE_AUTHKEY_REQUESTED:\n return 25;\n case STATE_CLI_IDENT_SENT:\n return 38;\n case STATE_CLI_DISCONNECT_SENT:\n return 50;\n case STATE_CLI_COOKIE_SENT:\n case STATE_CLI_CAPS_SENT:\n return 63;\n case STATE_CLI_CHECKROSTER_SENT:// case STATE_CLI_STATUS_INFO_SENT:\n return 75;\n case STATE_CLI_STATUS_INFO_SENT://case STATE_CLI_REQOFFLINEMSGS_SENT:\n return 98;\n case STATE_CLI_REQOFFLINEMSGS_SENT://case STATE_CLI_ACKOFFLINEMSGS_SENT:\n return 100;\n default:\n return (0);\n }\n }", "title": "" }, { "docid": "3c0c82c59d97004ec7d86ee22c6acc94", "score": "0.7387632", "text": "public int getProgress() {\r\n\t\treturn progress;\r\n\t}", "title": "" }, { "docid": "c664e5e228c90ef0f2c8f5f4e718f7d0", "score": "0.7375416", "text": "public float getProgress() {\n return (float) remainingSeconds / (float) totalSeconds;\n }", "title": "" }, { "docid": "e24c68a8c8f23526b33dbc58e59e65e7", "score": "0.7331354", "text": "int progressOf(double value);", "title": "" }, { "docid": "fdaee754f9f0ad4ca83da3dec1bbe4eb", "score": "0.7320425", "text": "public double getProgress() {\n double rangeSize = (double) getEndToken() - (double) getStartToken();\n double tokenOffset = (double) getToken() - (double) getStartToken();\n double progress = tokenOffset / rangeSize * 100.0;\n return progress;\n }", "title": "" }, { "docid": "142c035f9fed86a4d458cf92bd0dff5e", "score": "0.7208696", "text": "public float getProgress() {\n\t\treturn progress;\n\t}", "title": "" }, { "docid": "6af09ab0062d04d2a25b34d7a544e938", "score": "0.71730065", "text": "private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }", "title": "" }, { "docid": "0b8e81c121f6565b470f921f802c007b", "score": "0.71445584", "text": "public int getProgress() { \t\r\n \tif(status == COMPLETE){\r\n \t\tprogress = 100;\r\n \t}\r\n \telse if (DateController.compareDates(endDate, new CustomDate()) == 1) {\r\n\t\t\tif (DateController.compareDates(beginDate, new CustomDate()) == 1) {\r\n\t\t\t\tprogress = 0;\r\n\t\t\t} \r\n\t\t\telse {\r\n\t\t\t\tint max = DateController.getDifference(endDate, beginDate);\r\n\t\t\t\tint now = DateController.getDifference(new CustomDate(), beginDate);\r\n\t\t\t\tprogress = now * 100 / max;\r\n\t\t\t}\r\n\t\t} \r\n\t\telse {\r\n\t\t\tprogress = 100;\r\n\t\t} \t\r\n\t\treturn progress;\r\n\t}", "title": "" }, { "docid": "a20e676f632d0b168c78ff5c8933f6d2", "score": "0.7128737", "text": "double valueOf(int progress);", "title": "" }, { "docid": "dea90ac6e646edb0a58626079325ee6e", "score": "0.71199846", "text": "public abstract int getProductionProgress();", "title": "" }, { "docid": "363c9f249c59919db957b0a862cefe6a", "score": "0.7119405", "text": "@Override\n public float getProgress() throws IOException, InterruptedException {\n \tfloat aa=1;\n \treturn aa;\n \t}", "title": "" }, { "docid": "4f936c6a7c3bc9d65f2de67c6ef62cd4", "score": "0.7114772", "text": "float getProgress() throws IOException, InterruptedException;", "title": "" }, { "docid": "33bb03e8bff98820a4b37d6036fc623d", "score": "0.7083834", "text": "public float getProgress() throws IOException {\n return ((fin.getPos() - start) / (float) (end - start));\n }", "title": "" }, { "docid": "47f9395e2f10d647f0becc724259e198", "score": "0.7047619", "text": "@Override\n\tpublic float getProgress() throws IOException {\n\t\treturn (float)(fsDataIS.getPos() - start) / (float) (end - start);\n\t}", "title": "" }, { "docid": "78459d4ef1ab4bc7c7132ac83de82c0b", "score": "0.7047528", "text": "@Override\r\n public float getProgress() throws IOException, InterruptedException {\n long done = pos - start - 1;\r\n return (float) done / length;\r\n }", "title": "" }, { "docid": "4778c87f35435923082a2fea63751baf", "score": "0.70233893", "text": "public float getProgress() throws IOException {\n if (end == start) {\n return 0.0f;\n } else {\n return Math.min(1.0f, (in.getPosition() - start) / (float)(end - start));\n }\n }", "title": "" }, { "docid": "d9516128d3c58d95b186b0ead94cf0cf", "score": "0.7020881", "text": "@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn l.getProgress();\n\t}", "title": "" }, { "docid": "308f4d56cdcd7bd7a4554094b4e94d42", "score": "0.6999099", "text": "public float getProgress() {\n if (start == end) {\n return 0.0f;\n } else {\n return Math.min(1.0f, (pos - start) / (float) (end - start));\n }\n }", "title": "" }, { "docid": "a54bc2a25fadfc4a9c45319f25a90def", "score": "0.6978853", "text": "public float getProgressFactor()\r\n {\r\n return (float)Math.sin(progress*Math.PI);\r\n }", "title": "" }, { "docid": "49ebef92839d9b3517b871b5a7f96c8a", "score": "0.697105", "text": "public float getProgress() {\n if(start == end) {\n return 0.0f;\n } else {\n return Math.min(1.0f, (pos - start) / (float) (end - start));\n }\n }", "title": "" }, { "docid": "de94f10693125a3ef063af15c2aa9798", "score": "0.68713516", "text": "@Override\r\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "67144ee2ab4c8aa1e4dec93dc216c413", "score": "0.6868161", "text": "BigInteger getPercentWorkComplete();", "title": "" }, { "docid": "89aeaa09b4bc9e955b37111d724145d2", "score": "0.6863972", "text": "@Override\n\tpublic int actionProgress() {\n\t\treturn 100-progress;\n\t}", "title": "" }, { "docid": "90e04a6efc4b856f6f029f6704df7b4a", "score": "0.66959125", "text": "public String getProgressCode() {\r\n return progressCode;\r\n }", "title": "" }, { "docid": "1a04607f5054e599878ca7ab558e8f11", "score": "0.66958785", "text": "@JsProperty JavaScriptObject getProgress();", "title": "" }, { "docid": "35a4eda3c84e8d03e6b891c115d0e952", "score": "0.6692693", "text": "public int progressReport();", "title": "" }, { "docid": "243ab157581d243c2ab98b0f2660a423", "score": "0.6669657", "text": "@Override \n public float getProgress() throws IOException, InterruptedException {\n if (reader != null) { \n return (entryNumber / reader.getEntries()); \n } \n return 1; \n }", "title": "" }, { "docid": "e25c6fefe7b56c44db2956cb62390a96", "score": "0.66591585", "text": "@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn count;\n\t}", "title": "" }, { "docid": "74b79d067b72f6109650d00c43271527", "score": "0.6654245", "text": "private long getClockProgressPercent() {\n\t\treturn ((100L * mOtpProvider.getSecondsTillNextCounterValue()) / codeChangeIntervalSecs);\n\n\t}", "title": "" }, { "docid": "210ac8222d6a905ec22a628f6e8cb9ca", "score": "0.6652894", "text": "public Integer getSpeedprogress() {\n\t\treturn speedprogress;\n\t}", "title": "" }, { "docid": "4ec6c7a1c0133b668482ced610841c11", "score": "0.6631708", "text": "public static int getProgress() {\r\n if (mController == null || mController.getPlaybackState() == null) return 0;\r\n if (mController.getPlaybackState().getState() != PlaybackStateCompat.STATE_PLAYING) return 0;\r\n return (int)(mController.getPlaybackState().getPosition() * 100 / mController.getMetadata().getLong(MediaMetadataCompat.METADATA_KEY_DURATION));\r\n }", "title": "" }, { "docid": "f034ea987a5547ea2d383bb78bb20abd", "score": "0.65868646", "text": "@Override\n\tpublic float getProgress() {\n\t\tif ( batches.size()>0 ) {\n\t\t\tfloat sold = 0.0f;\n\t\t\tfloat total = 0.0f;\n\t\t\tIterator<Batch> batchIt = batches.iterator();\n\t\t\twhile ( batchIt.hasNext() ) {\n\t\t\t\tBatch currentBatch = batchIt.next();\n\t\t\t\tsold += currentBatch.sold_weight;\n\t\t\t\ttotal += currentBatch.getWeight();\n\t\t\t}\n\t\t\treturn sold/total;\n\t\t}\n\t\treturn 0.0f;\n\t}", "title": "" }, { "docid": "594139e4d722077c26fc5fe300259ce5", "score": "0.6528875", "text": "public String getCurrentValueText(int progress) {\n return String.format(getContext().getString(C0254R.string.preferences_move_speed_value), new Object[]{Integer.valueOf(progress * 10)});\n }", "title": "" }, { "docid": "c75d54edff56bb60f8c70eaf9654df7d", "score": "0.6509874", "text": "@ApiModelProperty(value = \"0-100 value indicating progress of video encoding process.\")\n public Integer getProgress() {\n return progress;\n }", "title": "" }, { "docid": "34a1d3e26470fb8ecd18ea04a3611e95", "score": "0.64759845", "text": "@ZeppelinApi\n public abstract int getProgress(InterpreterContext context) throws InterpreterException;", "title": "" }, { "docid": "e34e96970e31e10e0d9f9520f79cddfe", "score": "0.6474661", "text": "public String getProgressName() {\r\n return progressName;\r\n }", "title": "" }, { "docid": "9dc96f9d61e6d46cd4264872259fde4d", "score": "0.6454621", "text": "public TransferProgress getProgress();", "title": "" }, { "docid": "593ae2bed1a50e1f51301976fcf3ea79", "score": "0.6449614", "text": "public float getProgressDelta() {\n return mProgressDelta;\n }", "title": "" }, { "docid": "c237d0b2f6d2c3a42c2db8eaebc3a1a0", "score": "0.6396756", "text": "@Override\n public float getProgress() throws IOException {\n return parquetReader.getProgress();\n }", "title": "" }, { "docid": "e217fb4bca7a9693f5c49c7acf9ca09d", "score": "0.6385784", "text": "public int getPreviousProgress() {\n return previousProgress;\n }", "title": "" }, { "docid": "bd313351821650c091b98b5f09ecef5b", "score": "0.6380769", "text": "@Override\n public float getProgress() throws IOException {\n return 0.0f;\n }", "title": "" }, { "docid": "894444ed947b8c20d1409905465daec9", "score": "0.6373788", "text": "public float getXpProgress() {\n return xpProgress;\n }", "title": "" }, { "docid": "972d4575997bb86d13a0ca1c460225d9", "score": "0.6365072", "text": "public int getPercentageDone(){\n return percentageDone;\n }", "title": "" }, { "docid": "a2516fe6b7bea74d6bc062753e78b13d", "score": "0.63342655", "text": "public void progress(float percents);", "title": "" }, { "docid": "538984dd3b60ac7add8bb729586109b1", "score": "0.6261803", "text": "public float getValueBasedOnProgress(float progress)\n {\n float value = 0;\n float distance = to - from;\n value = (distance * progress);\n value += from;\n\n return value;\n }", "title": "" }, { "docid": "63b8f629989f4fce27b898bb4dd6a7a4", "score": "0.62612915", "text": "private int setProgress() {\n if (mPlayer == null||mDragging) {\n return 0;\n }\n int pos = mPlayer.getCurrentPosition();\n int duration = mPlayer.getDuration();\n if (mProgressBar != null) {\n if (duration > 0) {\n long position = 1000L * pos / duration;\n mProgressBar.setProgress((int) position);\n }\n int percent = mPlayer.getBufferPercentage();\n mProgressBar.setSecondaryProgress(percent * 10);\n }\n if (mEndTime != null)\n mEndTime.setText(stringForTime(duration));\n if (mCurrentTime != null)\n mCurrentTime.setText(stringForTime(pos));\n\n return pos;\n }", "title": "" }, { "docid": "070f96181394607bffd4b5e42cd233d6", "score": "0.62221557", "text": "public String getShopProgress() {\n\t\treturn shopProgress;\n\t}", "title": "" }, { "docid": "a290f0a58e2e0b7f7ad4e2d01bb74271", "score": "0.62026477", "text": "public Double getProgress(Integer bundleId) {\n \t\t\n \t\tDouble bundleProgess = progress.get(bundleId);\n \t\tif(bundleProgess == null) bundleProgess = 0.0;\n \t\t\n \t\treturn bundleProgess;\n \t\t\n \t}", "title": "" }, { "docid": "cac2ff447f9e06bb93f22de2f647e7f7", "score": "0.619811", "text": "public Complete makeProgress();", "title": "" }, { "docid": "727bb1c8ae285fdec43b5e03f1a812cf", "score": "0.6158449", "text": "Integer getStepsTotal();", "title": "" }, { "docid": "e3ffd38d3feb1f67c521021eac74145f", "score": "0.614816", "text": "public String toString() {\n return toString(\"percent\");\n }", "title": "" }, { "docid": "647084a2a9fb2b7d682c65556ad4f83b", "score": "0.61361015", "text": "public SpotterProgress getCurrentProgressReport() {\n\t\treturn Spotter.getInstance().getProgress();\n\t}", "title": "" }, { "docid": "82b8b0da62eb8d5df616a61e813e672d", "score": "0.61098766", "text": "public double getPercentDone()\r\n\t{\r\n\t\treturn mPercentDone;\r\n\t}", "title": "" }, { "docid": "977d834e7c3faff66a4016292c5dc5cc", "score": "0.6107193", "text": "String getIndexingProgressText();", "title": "" }, { "docid": "82c0eededdb9ebe902379af707221782", "score": "0.61056775", "text": "public int progressToTimer(int progress, int totalDuration) {\n int currentDuration = 0;\n totalDuration = (int) (totalDuration / 1000);\n currentDuration = (int) ((((double) progress) / MAX_PROGRESS) * totalDuration);\n\n // return current duration in milliseconds\n return currentDuration * 1000;\n }", "title": "" }, { "docid": "1fcb8656264ff8b7df26e075b8a53292", "score": "0.610084", "text": "void update(Integer progress);", "title": "" }, { "docid": "46dd0e6e8aace159f0b8c04cec6886e3", "score": "0.6096266", "text": "public synchronized Integer getPercentageComplete() {\r\n m_lastAccess = new GregorianCalendar(); \r\n return m_percentageComplete;\r\n }", "title": "" }, { "docid": "d677de5d5f6e3a4dc4ab57bede6c665f", "score": "0.60951656", "text": "@Override\n public void onProgress(Integer value) {\n }", "title": "" }, { "docid": "d2d143ef2c9ef90c96714788660eecea", "score": "0.6086383", "text": "@Override\n public void onProgress(Integer value) {\n }", "title": "" }, { "docid": "d2d143ef2c9ef90c96714788660eecea", "score": "0.6086383", "text": "@Override\n public void onProgress(Integer value) {\n }", "title": "" }, { "docid": "04c3c28440ca38af0cd5f3ff9ce900ff", "score": "0.6081789", "text": "public int getProgressPercentage(long currentDuration, long totalDuration){\n Double percentage = (double) 0;\n\n long currentSeconds = (int) (currentDuration / 1000);\n long totalSeconds = (int) (totalDuration / 1000);\n\n // calculating percentage\n percentage =(((double)currentSeconds)/totalSeconds)*100;\n\n // return percentage\n return percentage.intValue();\n }", "title": "" }, { "docid": "4494c56376b9af82052ea6efad26bbcd", "score": "0.6076991", "text": "private float seekBarToValue(String name, int progress) {\n\t\tfloat value;\n\t\tif(\"preamp\".equals(name) || \"bass\".equals(name) || \"treble\".equals(name)) {\n\t\t\tvalue = (float)progress / 100.f;\n\t\t} else {\n\t\t\tvalue = (float)(progress - 100) / 100.f;\n\t\t}\n\t\treturn value;\n\t}", "title": "" }, { "docid": "50d96dfffa0b431ba32dc49abbc5452c", "score": "0.60454327", "text": "public int getPercentageComplete() {\n return percentageComplete;\n }", "title": "" }, { "docid": "c4e0e488b85baaf3a9f57c71e11357ec", "score": "0.6041831", "text": "public float getSwingProgress(float partialTickTime) {\n/* 2784 */ float f = this.swingProgress - this.prevSwingProgress;\n/* */ \n/* 2786 */ if (f < 0.0F)\n/* */ {\n/* 2788 */ f++;\n/* */ }\n/* */ \n/* 2791 */ return this.prevSwingProgress + f * partialTickTime;\n/* */ }", "title": "" }, { "docid": "f08f82d92b2085b3e97608be30b0f10d", "score": "0.60269463", "text": "public int progressToTimer(int progress, int totalDuration) {\n int currentDuration = 0;\n totalDuration = (int) (totalDuration / 1000);\n currentDuration = (int) ((((double)progress) / 100) * totalDuration);\n\n // return current duration in milliseconds\n return currentDuration * 1000;\n }", "title": "" }, { "docid": "64a4bf66051eb979b3ed4a508d5c71e7", "score": "0.60200447", "text": "protected final ProgressBar getProgress()\n {\n return itsProgress;\n }", "title": "" }, { "docid": "2b67d0cde54ab67c14ec416766384a29", "score": "0.5998122", "text": "public void progressBarStep(){\n if (++progressCounter < PROGRESS_TICKS_LIMIT)\n outputStream.print('.');\n }", "title": "" }, { "docid": "eca94bbc87c35af5f1ea9a8c345060b2", "score": "0.59941894", "text": "Integer getStepsCompleted();", "title": "" }, { "docid": "75b3b745965716fa70e9f56691243d97", "score": "0.5958682", "text": "public String getBotChekProgress() {\n\t\treturn botChekProgress;\n\t}", "title": "" }, { "docid": "78c4e890f46572f965a25b54b6f4df44", "score": "0.5935404", "text": "private ProgressInterfaceMatthew getProgress() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "62dad36eca52a1ecf25a6d23f913ab16", "score": "0.5933142", "text": "protected String getRawProgressMessage() {\n // A cheesy default implementation. Subclasses are invited to do something\n // more meaningful.\n return defaultProgressMessage();\n }", "title": "" }, { "docid": "b7ababaf913ab560fd6502115ac66756", "score": "0.5920976", "text": "private static int _getPercentComplete(\n UIXRenderingContext context,\n UINode node\n )\n {\n int percentComplete = -1;\n\n UIXProgress progressComponent =\n (UIXProgress) NodeUtils.getUIComponent(context, node);\n Object modelObject = progressComponent.getValue();\n if (modelObject != null && modelObject instanceof BoundedRangeModel)\n {\n BoundedRangeModel model= (BoundedRangeModel) modelObject;\n //pu: Though these are 'long' types, deal with it as double, so as to\n // correctly compute percent for values towards the maximum of 'long'.\n double value = model.getValue();\n double maximum = model.getMaximum();\n if (value < 0 || maximum < 0)\n {\n percentComplete = PERCENT_UNKNOWN;\n }\n else\n {\n //pu: Loss due to truncation is not a concern here.\n percentComplete = (int)((value/maximum) * 100);\n }\n }\n else\n {\n _LOG.warning(\"DEFAULT_COMPONENT_TO_INDETERMINDATE_MODE\", progressComponent.getId());\n //Just get this to indeterminate state indefinitely on this condition.\n percentComplete = PERCENT_UNKNOWN;\n }\n\n if (percentComplete < 0)\n return PERCENT_UNKNOWN;\n\n // return the smaller of the two values\n percentComplete = Math.min(percentComplete, _PERCENT_COMPLETE_MAX);\n\n // make sure it is a multiple of _PERCENT_MULTIPLE.\n return (percentComplete - (percentComplete % _PERCENT_MULTIPLE));\n\n }", "title": "" }, { "docid": "94bea8fe04227bb0c221b12346a15505", "score": "0.59181315", "text": "public static void progress() {\r\n\t\tSystem.out.println(a);\r\n\t\tSystem.out.println(b);\r\n\t\tSystem.out.println(c);\r\n\t\tSystem.out.println(\"number of moves: \"+moves);\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "d68a73071673005a90baa85838d1490e", "score": "0.590323", "text": "public int getValue() {\r\n\t\treturn piecesValue * 1000 + SPValue + 100 * KValue;\r\n\t}", "title": "" }, { "docid": "c3e208c3145e656283193ac692f2d631", "score": "0.59022254", "text": "@Override\n\t\t\t\t\tpublic Progress getProgress() {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "title": "" }, { "docid": "4063b2a465e02baf63fca55c639c2735", "score": "0.5901671", "text": "public double getPercent(){\n\t\treturn (points/maxP)*100;\n\t}", "title": "" }, { "docid": "542d7c0e3d8dc0013a8740755f54f627", "score": "0.5895572", "text": "Progress getProgress() throws ScanException;", "title": "" }, { "docid": "589d624053b983a7fdc115848045ab47", "score": "0.58826137", "text": "public Double percent() {\n resultStack.push(result /= 100);\n return result;\n }", "title": "" }, { "docid": "d349433ca33b8b9e4a4f30a6153f3ecd", "score": "0.58804834", "text": "@Override\r\n\tpublic void setProgress(int progress) {\r\n\t\tprogressMonitor.setProgress((int)\r\n\t\t\t\t(computeTaskProgress() +\r\n\t\t\t\t((float)(progress + progressMonitor.getMinimum())/\r\n\t\t\t\t(progressMonitor.getMaximum()-progressMonitor.getMinimum()) * 100f * 1f/numTasks)));\r\n\t}", "title": "" }, { "docid": "8f9471263a51e11dad1fdcdbd37b996a", "score": "0.5873781", "text": "public static int m42559g() {\n return ResourceUtils.m42687d(\"appdownloader_download_progress\");\n }", "title": "" }, { "docid": "0407624f19fe844eb32a29a18a60705d", "score": "0.58683175", "text": "@Override\n protected void onProgressUpdate(Float... values) {\n super.onProgressUpdate(values);\n Float value = values[0];\n tvCounter.setText(value + \" %\");\n }", "title": "" }, { "docid": "8aa85b98a1d82711a43a39654acc77a5", "score": "0.5866737", "text": "public Integer getPercent() {\n return percent;\n }", "title": "" }, { "docid": "5238eef144d1415cd400e14f183c657f", "score": "0.58630204", "text": "public int getTotalSteps() {\n return totalSteps;\n }", "title": "" }, { "docid": "d8de718b4916d5f031cb6462025918b9", "score": "0.585803", "text": "public int getProgressDialogProgressId() {\n return R.id.duration_progressbar;\n }", "title": "" }, { "docid": "4b3f781a3f44696cd88cf6054e030f75", "score": "0.5850949", "text": "public void transferred(long num) {\n\t\t\t\t\t\t\t\tpublishProgress((int) ((num / (float) totalSize) * 100));\n\n\t\t\t\t\t\t\t}", "title": "" } ]
b3583af14a2a606369947c4fe8aaa63d
/ renamed from: H
[ { "docid": "1dcb0e6482f6881574d70034d9375593", "score": "0.0", "text": "public int mo15760H() {\n return this.f7701y;\n }", "title": "" } ]
[ { "docid": "c2d0fdb65d28f8ab7f9b1a6ef8e9a65c", "score": "0.6140164", "text": "void mo72586h();", "title": "" }, { "docid": "1fc5b997f79276ab82159fb50dd0519e", "score": "0.6137375", "text": "public abstract void mo1285H();", "title": "" }, { "docid": "661f879fc33480a6260343e82448d33a", "score": "0.6092546", "text": "public gy h() {\r\n/* 68 */ return this.b.h();\r\n/* */ }", "title": "" }, { "docid": "d457aca9d40318302678a09d16a4ec3e", "score": "0.6035382", "text": "public ChunkCoordinates h() {\n/* 143 */ return null;\n/* */ }", "title": "" }, { "docid": "5224a6ffdeeb616385b559004a969761", "score": "0.60263294", "text": "void mo4583h();", "title": "" }, { "docid": "89e6b8083b2bc2eea29bc68d13a1bb94", "score": "0.58795315", "text": "public interface C4014h0 {\n}", "title": "" }, { "docid": "18c36dcad3a41fd4dcf0cbf85fa1d305", "score": "0.58719474", "text": "public cav c()\r\n/* 62: */ {\r\n/* 63: 78 */ return this.h;\r\n/* 64: */ }", "title": "" }, { "docid": "e29557689b5d8df7a94e13a3493a51e2", "score": "0.5869573", "text": "public String getHsm() ;", "title": "" }, { "docid": "3174acfc8db44c2317484686f82d87ba", "score": "0.5846488", "text": "public void mo59553rH() {\n }", "title": "" }, { "docid": "65f03ad74ef7b9fe214476ba82daacc5", "score": "0.5842368", "text": "public int getH() {\r\n return h;\r\n }", "title": "" }, { "docid": "026b912a2003388b182d8c3a260fc519", "score": "0.5820646", "text": "private static int hash(int h) {\r\n // Spread bits to regularize both segment and index locations,\r\n // using variant of single-word Wang/Jenkins hash.\r\n h += (h << 15) ^ 0xffffcd7d;\r\n h ^= (h >>> 10);\r\n h += (h << 3);\r\n h ^= (h >>> 6);\r\n h += (h << 2) + (h << 14);\r\n return h ^ (h >>> 16);\r\n }", "title": "" }, { "docid": "a1e774b55accea211a4d63eaa9f9cb35", "score": "0.5814351", "text": "@Override\n\tvoid huai() {\n\t\t\n\t}", "title": "" }, { "docid": "326e7f38fcac8bf3efb04b94e0f9308b", "score": "0.5792503", "text": "private double h() {\n // TODO: Make this\n return 10000;\n }", "title": "" }, { "docid": "0218636d002b3750e1b2990d7fa004b1", "score": "0.5734164", "text": "public ej d()\r\n/* 61: */ {\r\n/* 62: 70 */ return a(this.h);\r\n/* 63: */ }", "title": "" }, { "docid": "c4efc9f9911178a27ec9261384d5f141", "score": "0.57323647", "text": "public void mo12644zk() {\n }", "title": "" }, { "docid": "b40e29948050fca13ce64c7c3e47bdb2", "score": "0.57314795", "text": "public abstract void mo3175h();", "title": "" }, { "docid": "f0be15cfde29e37d81d0e2d781baefa4", "score": "0.56979024", "text": "public int h(){\n\t\treturn h1();\n\t}", "title": "" }, { "docid": "3a369e80d5072d8317334b9a1f291099", "score": "0.56806886", "text": "void mo468h();", "title": "" }, { "docid": "f40ebbf2bb31de3076267f69956d3df3", "score": "0.5645666", "text": "public abstract void mo20123a(C3325HB hb);", "title": "" }, { "docid": "50eb275010285ddebb1f3e5f040ae53c", "score": "0.5633871", "text": "public interface Hk<F, A> {\n}", "title": "" }, { "docid": "ef67756df4d9b08ddab369723d67e33f", "score": "0.5631004", "text": "private void h() {\n String string2 = \"\";\n for (int i2 = 0; i2 < 6; ++i2) {\n string2 = string2 + (char)this.m();\n }\n if (!string2.startsWith(\"GIF\")) {\n this.c.b = 1;\n return;\n } else {\n this.i();\n if (!this.c.h || this.o()) return;\n {\n this.c.a = this.a(this.c.i);\n this.c.l = this.c.a[this.c.j];\n return;\n }\n }\n }", "title": "" }, { "docid": "d148fa6b29e080d46a5636f6e7ec33d8", "score": "0.56252116", "text": "public java.lang.String getIH() {\r\n return IH;\r\n }", "title": "" }, { "docid": "00a9a0cda40c0c6ea306c0ac471d69e5", "score": "0.56114304", "text": "@Override\n\tvoid hao() {\n\t\t\n\t}", "title": "" }, { "docid": "42dc26b0343fd1775a1173bda51df4ae", "score": "0.56106645", "text": "public int h()\r\n/* 93: */ {\r\n/* 94:139 */ return this.q.a;\r\n/* 95: */ }", "title": "" }, { "docid": "ee0f5f270c3e0eea9f37c3d1e42b1161", "score": "0.5593108", "text": "public void mo12736g() {\n }", "title": "" }, { "docid": "e17a251223ade4670409aaf2f97c98a2", "score": "0.5586206", "text": "public abstract int getH(Estado e);", "title": "" }, { "docid": "4203e248535b9b720d41f204aafeac67", "score": "0.5561295", "text": "void mo54227a(C8741eh ehVar);", "title": "" }, { "docid": "ca6c02beaa63cd8f4169c5aa8942c114", "score": "0.5548804", "text": "public interface C8293h {\n\n /* renamed from: a */\n public static final C8293h f17755a = new C8297a().mo21472a();\n\n /* renamed from: com.bumptech.glide.load.o.h$a */\n /* compiled from: Headers */\n class C8294a implements C8293h {\n C8294a() {\n }\n\n /* renamed from: a */\n public Map<String, String> mo21467a() {\n return Collections.emptyMap();\n }\n }\n\n static {\n new C8294a();\n }", "title": "" }, { "docid": "39da14b1f6e1adac9c0b748811e78b68", "score": "0.5536687", "text": "public void mo12645zl() {\n }", "title": "" }, { "docid": "f82ec92db72e32d9b9a983d17b3248b8", "score": "0.5529251", "text": "public abstract void mo18576vW();", "title": "" }, { "docid": "2b1f8831278630831cd66711a97e641a", "score": "0.55285865", "text": "public int h() {\n/* 1315 */ return this.p;\n/* */ }", "title": "" }, { "docid": "54b1701dcd4d35b8e5d95d9029c75c58", "score": "0.5511462", "text": "public final /* bridge */ /* synthetic */ C16871cq mo43576h() {\n return super.mo43576h();\n }", "title": "" }, { "docid": "d189792a2b6aaad0fe884ec1f937ff60", "score": "0.5505751", "text": "int getH();", "title": "" }, { "docid": "805020587f9efc132a1a77ef33f8fd9b", "score": "0.5460339", "text": "public boolean a()\r\n/* 17: */ {\r\n/* 18:78 */ return this.h;\r\n/* 19: */ }", "title": "" }, { "docid": "cd5100ced27dc5e315fe18eacf36d095", "score": "0.5451232", "text": "C7894i mo25661h();", "title": "" }, { "docid": "369edc002d40da08f863a4f92d974ac1", "score": "0.54509705", "text": "static int rehash(int h) {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n // TODO(kevinb): use Hashing/move this to Hashing?\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n return h ^ (h >>> 16);\n }", "title": "" }, { "docid": "204772435fcd515cf7f5c808752dc119", "score": "0.54392207", "text": "View mo21741h();", "title": "" }, { "docid": "bcb8a485762b471123a82c29826b31ad", "score": "0.54340816", "text": "public void mo22967a(C3630h hVar) {\n this.bhs = hVar;\n }", "title": "" }, { "docid": "21d5639666b9f2f2f819e94da7c13d93", "score": "0.5425342", "text": "void mo4542Bl();", "title": "" }, { "docid": "2fb65318d0ced2c103f6b86a288a8827", "score": "0.5401299", "text": "public void mo3742aL() {\n }", "title": "" }, { "docid": "0dec277b73c2994a5a5ad050bdb31f7c", "score": "0.53858054", "text": "public abstract void mo21966a(VH vh, T t);", "title": "" }, { "docid": "a1178b06db3081d3d375e28dfe50cbd5", "score": "0.5376189", "text": "public int h()\r\n/* 161: */ {\r\n/* 162:222 */ if (this.k == el.b) {\r\n/* 163:223 */ return this.l.a();\r\n/* 164: */ }\r\n/* 165:225 */ return 0;\r\n/* 166: */ }", "title": "" }, { "docid": "5d25ee100ef4ab42c974642289d06608", "score": "0.5359199", "text": "int getHunger();", "title": "" }, { "docid": "416a0bf16dc5bd057a10ad7eab6ee0e1", "score": "0.53442067", "text": "public final /* synthetic */ Object mo28496d(Object obj) {\n return ((zzdob) obj).zzhhd;\n }", "title": "" }, { "docid": "296ab63c08d3b39a3021802999e607ef", "score": "0.533936", "text": "void mo69940l();", "title": "" }, { "docid": "88be2a3d2e02284bf7043323a9b3ea1b", "score": "0.5335349", "text": "public abstract void mo38262a(C15045h<? super R> hVar);", "title": "" }, { "docid": "d4d525dc141607b482c6561dbc1d5109", "score": "0.531852", "text": "public static hn a(String paramString)\r\n/* 35: */ {\r\n/* 36:92 */ return (hn)g.get(paramString);\r\n/* 37: */ }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5296025", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "658e2157a962e8e3911961071abbf52d", "score": "0.5292563", "text": "protected void func_70088_a() {}", "title": "" }, { "docid": "1b431b6b993b6f83bedbe589b6247808", "score": "0.5285785", "text": "public abstract void mo79654d();", "title": "" }, { "docid": "aab41dd817435df39f8eea21affc6068", "score": "0.52849704", "text": "protected abstract void mo1288N();", "title": "" }, { "docid": "4009e9af7182fa9c0263b6796d4246a1", "score": "0.52712965", "text": "void mo86464P_();", "title": "" }, { "docid": "ab1686989e5067392efb21fb6694e655", "score": "0.52645606", "text": "ahd(ahk ahk2) {\n super(ahk2);\n this.a = this.y().a();\n this.c = this.y().N();\n if (this.y().P()) {\n int n2 = this.y().O() ? 80 : 67;\n this.b = n2;\n } else {\n int n3 = this.y().O() ? 112 : 99;\n this.b = n3;\n }\n this.d = (ahd)this.new a(6, false, false);\n this.e = (ahd)this.new a(6, true, false);\n this.f = (ahd)this.new a(6, false, true);\n this.g = (ahd)this.new a(5, false, false);\n this.h = (ahd)this.new a(5, true, false);\n this.i = (ahd)this.new a(5, false, true);\n this.j = (ahd)this.new a(4, false, false);\n this.k = (ahd)this.new a(3, false, false);\n this.l = (ahd)this.new a(2, false, false);\n }", "title": "" }, { "docid": "2a79ff3cabb272449de4b50c86d6a11f", "score": "0.52615714", "text": "void mo77112a(AbstractC14697h hVar);", "title": "" }, { "docid": "e1c83b8b95dcc99e8b8c1b195e7085ab", "score": "0.5253938", "text": "private int h (Object key)\r\n\t{\r\n\t\treturn Math.abs(key.hashCode () % mod1);\r\n\t}", "title": "" }, { "docid": "10c0be3e6b7d3eb8e242ff46cba9fe5d", "score": "0.5253118", "text": "public final void mH() throws RecognitionException {\n try {\n // /Users/lewis/FH/CIP/Aufgabe 3/Ralf/AST_Symbolraetsel.g:45:12: ( 'H' )\n // /Users/lewis/FH/CIP/Aufgabe 3/Ralf/AST_Symbolraetsel.g:45:14: 'H'\n {\n match('H'); \n\n }\n\n\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "1c7fa1ba3adc90a6af3fdd0882971d0a", "score": "0.524316", "text": "void mo2236l();", "title": "" }, { "docid": "07bc58aef05a1d85ab55f568a30d8a43", "score": "0.52412254", "text": "void mo4566a(bh bhVar);", "title": "" }, { "docid": "973c678171b9c81dbc9a055798c227e1", "score": "0.5238573", "text": "long mo25657d(C7850h0 h0Var);", "title": "" }, { "docid": "9b25854147f257d2c09622aa82bf01c4", "score": "0.5231526", "text": "public void mo3559h() {\n super.mo3559h();\n m9064k();\n }", "title": "" }, { "docid": "224fd201cd4334ca752f0c32883bf902", "score": "0.5229768", "text": "com.didiglobal.booster.aapt2.ConfigurationOuterClass.Configuration.Hdr getHdr();", "title": "" }, { "docid": "cd1b28f1e860acf5a1cf8324a1a70d4e", "score": "0.5217597", "text": "public abstract ak mo1332l();", "title": "" }, { "docid": "0b812af084ac0cb033ab904c49294fed", "score": "0.5215725", "text": "public void mo25703a() {\n }", "title": "" }, { "docid": "8c9bee953d6868c3de9a487d6803b3e0", "score": "0.52151334", "text": "public abstract void mo79653c();", "title": "" }, { "docid": "6788dcb05c6cba62eb2b4a5f9dacdca3", "score": "0.520762", "text": "public interface C11610h {\n\n /* renamed from: a */\n public static final String f32867a = \"place order - order now clicked\";\n\n /* renamed from: b */\n public static final String f32868b = \"place order - description submitted\";\n\n /* renamed from: c */\n public static final String f32869c = \"place order - location submitted\";\n\n /* renamed from: d */\n public static final String f32870d = \"place order - order created\";\n }", "title": "" }, { "docid": "7b120dfdc48d7dee7dd36f070b6b57cd", "score": "0.5204184", "text": "public final /* synthetic */ Object mo28497e(Object obj) {\n zzdqu zzdqu = ((zzdob) obj).zzhhd;\n if (zzdqu != zzdqu.m29974c()) {\n return zzdqu;\n }\n zzdqu d = zzdqu.m29975d();\n m22898a(obj, d);\n return d;\n }", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.52019995", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "5fdfe8074d313c7fe36f2d327cdbecd3", "score": "0.5193997", "text": "C8030a0 mo25658e(C7850h0 h0Var);", "title": "" }, { "docid": "853f56e59851571800b901470390e40a", "score": "0.51923907", "text": "C7535i mo25110a(C7534h hVar);", "title": "" }, { "docid": "a16d779c557b1cd9800ad4a893ee0275", "score": "0.5190692", "text": "public abstract void mo3742aL();", "title": "" }, { "docid": "15c9cae08ae101b3a04f9ff3b519ae04", "score": "0.5189588", "text": "public void mo8316a() {\n }", "title": "" }, { "docid": "6c57829d2cff3cef855d9ecc2f3147d7", "score": "0.5185758", "text": "public void setIH(java.lang.String IH) {\r\n this.IH = IH;\r\n }", "title": "" }, { "docid": "3bfafd4b9b92322a12a299eff3695579", "score": "0.51800066", "text": "public interface C26214y extends C33049h {\n}", "title": "" }, { "docid": "861a0f71dffa941b9c39b2ed8608bc51", "score": "0.5176449", "text": "static int indexFor(int h, int length) {\n return h & (length-1);\n }", "title": "" }, { "docid": "a736303f0de39389a30b9b7f657a6d2a", "score": "0.51756674", "text": "LowerHypertrophyLog() {\n initializeArray();\n }", "title": "" }, { "docid": "1953c78f4251246708e71a58f3665c28", "score": "0.5172544", "text": "public void mo16482c() {\n }", "title": "" }, { "docid": "6b0e2e41d411b76c357d16b3eb3a159c", "score": "0.5172487", "text": "protected abstract void entschuldigen();", "title": "" }, { "docid": "a10bd8d39cbacbc750818d95f41de4fe", "score": "0.5172138", "text": "private RtoL() { }", "title": "" }, { "docid": "10fb53ae4788df7e9c0d4ab97ce96a3c", "score": "0.5171524", "text": "public interface InterfaceH extends SuperInterface{\n int getH();\n}", "title": "" }, { "docid": "7d502cc11d7b0aece5b00a0047595bc4", "score": "0.51674587", "text": "public DRelOrderBlobH() {\n this(DSL.name(\"d_rel_order_blob_h\"), null);\n }", "title": "" }, { "docid": "df874b61406cbb181a458ae515220156", "score": "0.516678", "text": "public void mo12735f() {\n }", "title": "" }, { "docid": "46faf70fab2ab17cc47ad7867e912521", "score": "0.51661736", "text": "@Override\n\tpublic String parseToString(String huobdh) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "308e51e870cf8d9f6e66c1337912bee4", "score": "0.51648915", "text": "public final void mH() throws RecognitionException {\n try {\n // G:\\\\MyStudy\\\\����\\\\antlr\\\\presentproject\\\\FilterLexer.g:78:2: ( 'H' | 'h' )\n // G:\\\\MyStudy\\\\����\\\\antlr\\\\presentproject\\\\FilterLexer.g:\n {\n if ( input.LA(1)=='H'||input.LA(1)=='h' ) {\n input.consume();\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;\n }\n\n\n }\n\n\n }\n finally {\n \t// do for sure before leaving\n }\n }", "title": "" }, { "docid": "9f6e8d85aee157d478b1d171d149997d", "score": "0.51633483", "text": "public abstract void mo79652b();", "title": "" }, { "docid": "932e890fccb8d852ec5b4777ec700cf6", "score": "0.51586586", "text": "void mo6276c();", "title": "" }, { "docid": "a7acd320226e133458dd850bfad1f206", "score": "0.51566315", "text": "void mo34050B();", "title": "" }, { "docid": "d1494496d00da9da1d4656594c48714c", "score": "0.5154698", "text": "public abstract Ref mo19114c();", "title": "" }, { "docid": "5a0676bb662d9f1016b5a4173d1d11fa", "score": "0.5150067", "text": "public void setHc(String Hc) {\r\n this.Hc = Hc;\r\n }", "title": "" }, { "docid": "113caa98d309ab25a6a152fdbce2ba7a", "score": "0.51436013", "text": "void mo72585g();", "title": "" }, { "docid": "0dc532a19d96978e970e5069b07f56d9", "score": "0.51413745", "text": "public void mo12646zm() {\n }", "title": "" }, { "docid": "8e75ffe6faa994ed57c6ffb8b56296fe", "score": "0.51408213", "text": "public void xiuproof() {\n\t\t\n\t}", "title": "" }, { "docid": "d4a343968396c547a3ac88a07ddac439", "score": "0.513868", "text": "Hobbit(){\n super(3, 0);\n }", "title": "" }, { "docid": "2e6b8dc27ef11eb2d6e4097682399257", "score": "0.5130653", "text": "private void rehash( ) {\r\n}", "title": "" }, { "docid": "79ad7bbe68b8061c3e5384a3ab869cfa", "score": "0.5129443", "text": "private static Hashtable init() {\r\n/* 128 */ Hashtable<Object, Object> members = new Hashtable<Object, Object>();\r\n/* 129 */ members.put(\"ERROR\", ERROR);\r\n/* 130 */ members.put(\"WARN\", WARN);\r\n/* 131 */ members.put(\"INFO\", INFO);\r\n/* 132 */ members.put(\"DEBUG\", DEBUG);\r\n/* 133 */ return members;\r\n/* */ }", "title": "" }, { "docid": "fcafdb7e784e39b9c0653aede096d9b6", "score": "0.51270807", "text": "void mo72592n();", "title": "" }, { "docid": "9fbd8b34c72b30aa65a00e95dbf978cb", "score": "0.512623", "text": "public String getHc() {\r\n return Hc;\r\n }", "title": "" }, { "docid": "a158972c21854b3252ed90c553ae9e01", "score": "0.512458", "text": "void mo31913c();", "title": "" }, { "docid": "d37d5ffbf621ae071ba0400f7b9fc5d7", "score": "0.5123065", "text": "float hunger();", "title": "" }, { "docid": "4bcb97244e9c8f36b7e8f5921db971d9", "score": "0.51211876", "text": "@Override\n\tprotected void hienThiThongTin() {\n\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.51205295", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.51205295", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" } ]
a5efa0407e85836fc9753192180e1c19
metodo ereditato dalla classe Object che permette di visualizzare le informazioni relative ad un oggetto di tipo CartaDiCredito
[ { "docid": "9855423f05781b93b3929d738ac309b6", "score": "0.78247577", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"CartaDiCredito [nCarta=\" + nCarta + \", titolare=\" + titolare + \", dataScadenza=\" + dataScadenza\n\t\t\t\t+ \", cvc=\" + cvc + \", account=\" + account + \"]\";\n\t}", "title": "" } ]
[ { "docid": "204b0c4b5a71606f8b115a92f2947a7a", "score": "0.7144819", "text": "public CartaDiCredito() {\n\t\t\n\t}", "title": "" }, { "docid": "8f2eec1fd3b6a39d9047bf38f6d0ce77", "score": "0.6635035", "text": "@Override\r\n\tprotected void aggiornaInfoElemento(CodiceClienteCorriere object) {\n\t}", "title": "" }, { "docid": "e5401eca17ca4e58748438ad61586f49", "score": "0.6374463", "text": "public CartaDiCredito(String nCarta, String titolare, String dataScadenza, int cvc) {\n\t\tsuper();\n\t\tthis.nCarta = nCarta;\n\t\tthis.titolare = titolare;\n\t\tthis.dataScadenza = dataScadenza;\n\t\tthis.cvc = cvc;\n\t}", "title": "" }, { "docid": "f088d7ed18a0c6e8acad535abb6fe64e", "score": "0.6274348", "text": "@Override\n\tpublic String toString()\n\t{\n\t\treturn \"CarritoCompras [id=\" + id + \", cliente= \"+ cliente + \", sucursal=\" + idSucursal +\"]\";\n\t}", "title": "" }, { "docid": "bf2218a8bf6d3cbd5a0e76f66475d330", "score": "0.61981446", "text": "@Override\n public String toString() {\n return \"Servicio [descripcion=\" + descripcion + \", id=\" + id + \", precio=\" + precio + \"]\";\n }", "title": "" }, { "docid": "327d9d9b1533fe3c0672786f5e511bb1", "score": "0.6184357", "text": "public String caricaNotaCredito() {\n\t\tfinal String methodName = \"caricaNotaCredito\";\n\t\tRicercaModulareDocumentoEntrata req = model.creaRequestRicercaModulareDocumentoEntrataPerNotaCredito();\n\t\tRicercaModulareDocumentoEntrataResponse res = documentoEntrataService.ricercaModulareDocumentoEntrata(req);\n\t\t\n\t\t// Controllo gli errori\n\t\tif(res.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\tlog.info(methodName, createErrorInServiceInvocationString(req, res));\n\t\t\taddErrori(res);\n\t\t\treturn INPUT;\n\t\t}\n\t\tmodel.setNotaCredito(res.getDocumento());\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "818a583a48de1e3c8f771bd5c4485573", "score": "0.614613", "text": "@Override\n public String toString() {\n return \"Articulo Codigo:\" + codigo + \"\\n-------------------------------\" + \"\\nUnidades: \" + unidades\n + \"\\nPrecio de Compra: \" + precioCompra + \"\\nPrecio de Venta: \" + precioVenta + \"\\nIva: \" + iva\n + \"\\nDescripcion: \" + descripcion + \"\\n-------------------------------\";\n }", "title": "" }, { "docid": "3e2065b24f1b9ca09ee3216310b2b901", "score": "0.612169", "text": "public Carta ()\n {\n tipoCarta = \"\";\n cantCartas = 1;\n }", "title": "" }, { "docid": "0de12bde112dc60c66257e523eaca899", "score": "0.6102033", "text": "public void crearTarjetaCredito()\r\n/* 161: */ {\r\n/* 162:194 */ this.tarjetaCredito = new TarjetaCredito();\r\n/* 163:195 */ this.tarjetaCredito.setIdOrganizacion(AppUtil.getOrganizacion().getIdOrganizacion());\r\n/* 164:196 */ this.tarjetaCredito.setIdSucursal(AppUtil.getSucursal().getIdSucursal());\r\n/* 165:197 */ this.tarjetaCredito.setFechaDesde(new Date());\r\n/* 166:198 */ this.tarjetaCredito.setFechaHasta(new Date());\r\n/* 167:199 */ this.tarjetaCredito.setActivo(true);\r\n/* 168: */ \r\n/* 169:201 */ inicializaDatos();\r\n/* 170: */ }", "title": "" }, { "docid": "c501505ddace277ba7d7dbdd82781f66", "score": "0.6090672", "text": "public OpcionAnulacionCredito() {//constructor\r\n tab_opcion_anulacion_credito.setId(\"tab_opcion_anulacion_credit \");// todo objeto instanciado poner id \r\n tab_opcion_anulacion_credito.setTabla(\"yavirac_matri_opci_anul_cred\", \"ide_ymaoac\", 1); // nombre de la base de datos ii la clave primaria\r\n tab_opcion_anulacion_credito.setHeader(\"OPCIÓN ANULACIÓN CRÉDITO\");\r\n tab_opcion_anulacion_credito.dibujar();//dibuja la tabla\r\n\r\n PanelTabla pa_opcion_anulacion_credito = new PanelTabla();//intanciamos el panel del framework\r\n pa_opcion_anulacion_credito.setId(\"pa_opcion_anulacion_credito\");//nombre id\r\n pa_opcion_anulacion_credito.setPanelTabla(tab_opcion_anulacion_credito);//agregar a nuestra tabla el panel\r\n \r\n //instanciar una division del framework\r\n Division div_opcion_anulacion_credito =new Division ();//instanciamos\r\n div_opcion_anulacion_credito.setId(\"div_opcion_anulacion_credito\");//es un idientificador\r\n div_opcion_anulacion_credito.dividir1(tab_opcion_anulacion_credito);\r\n \r\n agregarComponente(div_opcion_anulacion_credito);//agregar componente\r\n }", "title": "" }, { "docid": "59e8fcce0f2302d78ebcfb53de339002", "score": "0.6081704", "text": "public InfoFilial(){\n this.produto = new Produto();\n this.preco=0.0f;\n this.quant=0;\n this.tipoCompra='N';\n this.mes=0;\n }", "title": "" }, { "docid": "a81cc3e2e4084223ae6e236d125efe00", "score": "0.60815394", "text": "@Override\r\n public String toString() {\r\n return \"Cliente ►►\" + \" Nombre= \" + nombre + \", Apellido= \" + apellido + \", Ruc= \" + ruc + \r\n \", Dirección= \" + direccion ;\r\n }", "title": "" }, { "docid": "e849b2cf67cebccf58a39bf618bd7261", "score": "0.60739285", "text": "public TipoDetaNotaCreditoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.tipodetanotacreditoDataAccess = new TipoDetaNotaCreditoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.tipodetanotacreditos= new ArrayList<TipoDetaNotaCredito>();\r\n\t\t\tthis.tipodetanotacredito= new TipoDetaNotaCredito();\r\n\t\t\t\r\n\t\t\tthis.tipodetanotacreditoObject=new Object();\r\n\t\t\tthis.tipodetanotacreditosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.tipodetanotacreditoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.tipodetanotacreditoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "title": "" }, { "docid": "dfd5e408e4d3e1ddc9afea38c51cff96", "score": "0.60654867", "text": "public interface Produto extends DCIObjetoDominio , ProdutoAgregadoI , ProdutoDerivadaI\n{\n\n\t\n\tpublic long getIdProduto();\n\tpublic void setIdProduto(long valor);\n\t\n\t\n\tpublic String getNome();\n\tpublic void setNome(String valor);\n\t\n\t\n\tpublic String getUrl();\n\tpublic void setUrl(String valor);\n\t\n\t\n\tpublic String getImagem();\n\tpublic void setImagem(String valor);\n\t\n\t\n\tpublic long getTamanhoImagem();\n\tpublic void setTamanhoImagem(long valor);\n\t\n\t\n\tpublic String getDataInclusao();\n\tpublic void setDataInclusao(String valor);\n\t\n\t\n\tpublic String getImagemLocal();\n\tpublic void setImagemLocal(String valor);\n\t\n\t\n\tpublic String getUrlOrigem();\n\tpublic void setUrlOrigem(String valor);\n\t\n\t\n\tpublic String getUrlAfiliado();\n\tpublic void setUrlAfiliado(String valor);\n\t\n\t\n\tpublic long getPosicaoProduto();\n\tpublic void setPosicaoProduto(long valor);\n\t\n\t\n\tpublic long getIdMarcaPa();\n\tpublic void setIdMarcaPa(long valor);\n\t\n\t\n}", "title": "" }, { "docid": "e50752fd0e6ad76566d674c6a24aee75", "score": "0.60521954", "text": "@Test\r\n public void deveriaCriarUmCartaoCredito() throws Exception {\r\n \r\n CartaoCredito cartao = new CartaoCredito(String.valueOf(getIdRandomico()), \"01/01/2016\", 12345, BandeiraCartaoCredito.AMERICAN_EXPRESS);\r\n tx.begin();\r\n em.persist(cartao);\r\n tx.commit();\r\n \r\n assertNotNull(\"O Id não deveria ser nulo\", cartao.getNumero());\r\n }", "title": "" }, { "docid": "0fff68e9799a84499c60a719c9c00ff5", "score": "0.5988083", "text": "public Carta (String tipo)\n {\n tipoCarta = tipo;\n cantCartas = 1;\n }", "title": "" }, { "docid": "ac12bb35efd0bb7c4a4582fc1ebfe590", "score": "0.59876585", "text": "public CartaoCreditoTableModel(List<CartaoCredito> listaDeCartaoCredito) {\n\t\tlinhas = new ArrayList<CartaoCredito>(listaDeCartaoCredito);\n\t}", "title": "" }, { "docid": "b73df0323b718e1324c417db4237020f", "score": "0.5971875", "text": "@Override\n public String toString() {\n return \"Consumidor{\" + \"CodigoConsumidor=\" + codigoConsumidor + \", Morada=\" + morada + \", Nome=\" + nome + \", NumContribuinte=\" + numContribuinte + \", TipoConsumidor=\" + tipoConsumidor + \"\\nConsumo=\" + consumo + '}';\n \n }", "title": "" }, { "docid": "f064b9f2e7127c952d2e58e1ec4cee7e", "score": "0.59695923", "text": "public String caricamentoQuoteNotaCredito() {\n\t\tfinal String methodName = \"caricamentoQuoteNotaCredito\";\n\t\tRicercaSinteticaModulareQuoteByDocumentoEntrata req = model.creaRequestRicercaSinteticaModulareQuoteByDocumentoEntrataPerNotaCredito();\n\t\tRicercaSinteticaModulareQuoteByDocumentoEntrataResponse res = documentoEntrataService.ricercaSinteticaModulareQuoteByDocumentoEntrata(req);\n\t\t\n\t\t// Controllo gli errori\n\t\tif(res.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\tlog.info(methodName, createErrorInServiceInvocationString(req, res));\n\t\t\taddErrori(res);\n\t\t\treturn INPUT;\n\t\t}\n\t\t\n\t\tlog.debug(methodName, \"Imposto i dati in sessione\");\n\t\tsessionHandler.setParametroXmlType(BilSessionParameter.REQUEST_RICERCA_SINTETICA_QUOTE_DOCUMENTO_ENTRATA_PER_NOTA_CREDITO, req);\n\t\tsessionHandler.setParametro(BilSessionParameter.RISULTATI_RICERCA_SINTETICA_QUOTE_DOCUMENTO_ENTRATA_PER_NOTA_CREDITO, res.getSubdocumentiEntrata());\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "9b6e9440620a864430ad957deb0a49be", "score": "0.5937959", "text": "public CartaoCreditoTableModel() {\n\t\tlinhas = new ArrayList<CartaoCredito>();\n\t}", "title": "" }, { "docid": "18bc63f74d03abf4912a5ba55d78f15b", "score": "0.59320855", "text": "public Carta(Carta cartaACopiar)\r\n\t{\r\n\t\tsuper();\r\n\t\tsetId(cartaACopiar.getId());\r\n\t\tsetNombre(cartaACopiar.getNombre());\r\n\t}", "title": "" }, { "docid": "9f4096b53d8619a94089dcd646456620", "score": "0.5906874", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn String.format(\"Cliente [Id=%s, Identificador=%s, ccard=%s, nombre=%s, problemaPagos=%s]\", getId(),\r\n\t\t\t\tgetIdentificador(), ccard, nombre, problemaPagos);\r\n\t}", "title": "" }, { "docid": "e37c5fa47c33ca283ba81f6e24015e0a", "score": "0.5890784", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"BusCard [numeroTarjeta=\" + numeroTarjeta + \", saldo=\" + saldo + \"]\";\n\t}", "title": "" }, { "docid": "19f9a2b8460bf8886f51111a40a22783", "score": "0.5867561", "text": "@Override\r\n public String toString() {\r\n return \"ConsesionarioVehiculos{\" + \"nombreConsesionario=\" + nombreConsesionario + \", codigo=\" + codigo + \", direccion=\" + direccion + '}';\r\n }", "title": "" }, { "docid": "4b6e9ae63ec3406177d5f6b8f5085c89", "score": "0.5849492", "text": "@Override\n public String toString() {\n String str = \"-Notificação \" + tipo + \": \\n\" + this.getConta().getOperacoes().get(this.getConta().getOperacoes().size() - 1) + \"\\n\";\n if (tipo == TipoNotificacao.JMS) {\n ClientePessoaJuridica c = (ClientePessoaJuridica)this.getConta().getCliente();\n return str + \"Servidor JMS: \" + c.getServidorJMS();\n\n } else {\n return str;\n }\n\n }", "title": "" }, { "docid": "594a3b0bf327f5be81299545ae9c8293", "score": "0.5845494", "text": "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"CompteCourant [decouvert=\" + decouvert + \", getId()=\" + getId() + \", getNumero()=\" + getNumero()\r\n\t\t\t\t+ \", getSolde()=\" + getSolde() + \", getDatecreation()=\" + getDatecreation() + \", getClient()=\"\r\n\t\t\t\t+ getClient() + \"]\";\r\n\t}", "title": "" }, { "docid": "419d1a8347aac95f50342fb74b2f22aa", "score": "0.58415276", "text": "@Override\n public String toString() {\n return \"Pedido{\" + \"folio_pedido=\" + folio_pedido + \", folio_venta=\" + folio_venta + \", fecha_salida=\" + fecha_salida + \", fecha_llegada=\" + fecha_llegada + \", id_cliente=\" + id_cliente + \", id_producto=\" + id_producto + \", estado=\" + estado + '}';\n }", "title": "" }, { "docid": "c2e5adbbd94e1b64b7c9378acba421fb", "score": "0.5834111", "text": "public edicao_produto() {\r\n nome = produto.getNome();\r\n descricao = produto.getDescricao();\r\n preco = produto.getPreco();\r\n }", "title": "" }, { "docid": "7e02c42b718be5b34c03803923fe40c1", "score": "0.5824936", "text": "private String objectToString(Productos objProducto) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "309d317687d50d62a676eb82b339a59a", "score": "0.579712", "text": "public String getTipo()\n {\n return tipoCarta;\n }", "title": "" }, { "docid": "a3df902ad677e9194e478fcf10b0d03b", "score": "0.57850885", "text": "@Override\r\n public String toString(){\r\n return \"Nombre titular \"+titular.getNombre()+\" Saldo \"+saldo+\" Códig cuenta \"+codigo;\r\n }", "title": "" }, { "docid": "7c551e06f828399fd01078d3ba93a564", "score": "0.5780869", "text": "public Producto() {\r\n\t\tsuper();\r\n\t\tthis.nombre = \"\";\r\n\t\tthis.id = 0;\r\n\t\tthis.precio = 0;\r\n\t\tthis.descripcion = \"\";\r\n\t\tthis.ingredientes = \"\";\r\n\t\tthis.vegano = false;\r\n\t\tthis.tipo = TipoProducto.PRINCIPAL;\r\n\t\tthis.idRestaurante = 0;\r\n\t\tthis.idMenu = 0;\r\n\t}", "title": "" }, { "docid": "48bdaf09b689ed5ffa9372e85ecb024a", "score": "0.5773914", "text": "public DTOInsumo(Insumo entity){\n super(entity);\n this.idDistribProv = entity.getIdDistribProv();\n }", "title": "" }, { "docid": "00b088f97c8008f706d700d78afbeeda", "score": "0.5772802", "text": "public Carro(Proprietario proprietario) {\n\t\tthis.proprietario = proprietario;\n\t}", "title": "" }, { "docid": "0474e977db85adbc82ca5f735dd14ff0", "score": "0.5767843", "text": "public InfoFilial(IProduto p,float preco,int quant,char tipoCompra,int mes){\n this.produto=p.clone();\n this.preco=preco;\n this.quant=quant;\n this.tipoCompra=tipoCompra;\n this.mes=mes;\n }", "title": "" }, { "docid": "fb0533252ea3d9b0eee04bdcc4cdb755", "score": "0.5733451", "text": "@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic TransaccionCreditoRepresentation toRepresentation();", "title": "" }, { "docid": "7e06b6d81b5235f88b80f84dd36960b3", "score": "0.57309186", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Consulta [id=\" + id + \", idDoctor=\" + idDoctor + \", fechaRealizacion=\" + fechaRealizacion\n\t\t\t\t+ \", descripcion=\" + descripcion + \", medicina=\" + medicina + \", numeroExpediente=\" + numeroExpediente\n\t\t\t\t+ \"]\";\n\t}", "title": "" }, { "docid": "daa5f411f1848f9c188daa3bf34ef193", "score": "0.5730674", "text": "Cuenta(Persona titular, double saldo){\r\n this.titular = titular;\r\n this.saldo = saldo;\r\n codigo = getCodigoCuenta(); // ??????????????????????????????\r\n this.estado = TiposEstado.OPERATIVA;\r\n ultimasOperaciones=new Movimiento[numOperaciones];\r\n }", "title": "" }, { "docid": "a9fa0f5d3a97c93ef5095bb5dfb873d1", "score": "0.5711317", "text": "@Override\r\n public String toString() {\r\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n return \"Libro :\" + \"\\ncodigo = \" + codigo + \"\\ntitulo = \" + titulo\r\n + \"\\nautor = \" + autor + \"\\npaginas = \" + paginas\r\n + \"\\nfechaEdicion = \" + formato.format(fechaEdicion) + \"\\n precio = \" + precio\r\n + \"\\n Disponibilidad :\" + tipo;\r\n }", "title": "" }, { "docid": "ec56e466c74c78d0024926e92f472225", "score": "0.57073694", "text": "public void nombreTarjetaCredito()\r\n/* 318: */ {\r\n/* 319:344 */ if ((this.tarjetaCredito.getTipoTarjetaCredito() != null) && (this.tarjetaCredito.getBanco() != null)) {\r\n/* 320:345 */ this.tarjetaCredito.setNombre(this.tarjetaCredito.getTipoTarjetaCredito().getNombre() + \" \" + this.tarjetaCredito.getBanco().getNombre());\r\n/* 321: */ }\r\n/* 322: */ }", "title": "" }, { "docid": "6519c22e69ae664342176ab43d86ad6e", "score": "0.5701765", "text": "public String cargaInfoCliente(){\n\t\ttry {\n\t\t\tInfoClienteRFC infoClienteRfc = this.getSpringContext().getBean(\"infoClienteRfc\",InfoClienteRFC.class);\n\t\t\n\t\t\tthis.setUsuarioSel((Usuario)this.getFlash().get(\"usuarioSel\"));\n\t\t\t\n\t\t\t this.setClienteInfo(infoClienteRfc.obtieneInfoCliente(\n\t\t\t\t\tthis.getUsuarioSel().getNoCliente()));\n\t\t\n\t\t} catch(Exception e){\n\t\t\tlogger.error(\"Error al desplegar informaci�n del cliente. \" + e.getLocalizedMessage());\n\t\t\tthis.getFacesContext().addMessage(null, new FacesMessage(\n\t\t\t\t\t\tFacesMessage.SEVERITY_ERROR,\"Error\",this.getLblMain().getString(\"errInfoCliente\")));\t\t\t\t\n\t\t}\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "8e3e0dd17e144985c6b5e2fb9bb2fac5", "score": "0.56955355", "text": "public static void main(String[] args) {\n Cliente c1 = new Cliente(123, \"Sr. Smith\");\n Cliente c2 = new Cliente(321, \"John Doe\");\n\n CadastroClientes cadCli = CadastroClientes.getInstance();\n cadCli.inserir(c1);\n cadCli.inserir(c2);\n cadCli.inserir(127, \"Tio Patinhas\");\n\n System.out.println(cadCli);\n\n\n //System.out.println(c1.toString() );\n //System.out.println(\"c2: \" + c2.getCodigo() + \" \"+ c2.getNome() );\n //System.out.println();\n\n CadastroProdutos cadProd = CadastroProdutos.getInstance();\n\n Produto pee = new ProdutoEE(100, \"Ferro de passar\", 100, 180);\n cadProd.inserir(pee);\n\n\n\n //Produto p2 = new Produto(2, \"borracha\", 1.5);\n //Produto p3 = new Produto(3, \"lápis\", 1);\n //Produto p4 = new Produto(4, \"Chocolate\", 10);\n\n cadProd.inserir(1, \"caneta azul\", 2);\n cadProd.inserir(2, \"borracha\", 1.5);\n\n Produto palc = new ProdAlcoolico(300, \"51 uma má ideia\", 10);\n cadProd.inserir(palc);\n\n cadProd.inserir(3, \"lápis\", 1);\n cadProd.inserir(4, \"Chocolate\", 10);\n\n ProdAlcoolico.setTaxaAlcoolico(25);\n\n System.out.println(cadProd.toString());\n\n\n //System.out.println( p1.toString() );\n //System.out.println( p4 );\n\n //ItemVenda i1 = new ItemVenda(3, p4);\n //ItemVenda i2 = new ItemVenda(2, p1);\n\n //System.out.println();\n //System.out.println(i1);\n //System.out.println(i2);\n\n\n // testar a classe venda...\n //Cliente c1 = cadCli.pesquisar(123);\n //if (c1 = null)\n // System.out.println(\"cliente nao existe...\");\n/*\n Venda v1 = new Venda( cadCli.pesquisar(123) );\n\n v1.inserir( cadProd.pesquisar(1) );\n v1.inserir(10, cadProd.pesquisar(4) );\n\n System.out.println( v1.getNotaFiscal() );\n\n Venda v2 = new Venda( cadCli.pesquisar(321) );\n\n v2.inserir( cadProd.pesquisar(2) );\n v2.inserir(5, cadProd.pesquisar(3) );\n\n System.out.println( v2.getNotaFiscal() );\n\n Venda v3 = new Venda( cadCli.pesquisar(127) );\n\n v3.inserir( cadProd.pesquisar(4));\n\n\n\n\n System.out.println( v3.getNotaFiscal() );\n\n System.out.println(\"\\nPróxima venda será a de número: \" + Venda.getProximaVenda());\n\n*/\n\n String nome1 = \"joao\";\n String nome2 = \"joao\";\n\n String nome3 = nome1;\n\n\n\n }", "title": "" }, { "docid": "8c001d08b2f8ee844243b4c6f0d269a9", "score": "0.56928414", "text": "public TarjetaCredito getTarjetaCredito()\r\n/* 473: */ {\r\n/* 474:484 */ return this.tarjetaCredito;\r\n/* 475: */ }", "title": "" }, { "docid": "13517a2ee9b9f5295f2fa2c4603bbeef", "score": "0.5664814", "text": "public FichaDet getDeposito();", "title": "" }, { "docid": "4048bc5292a7dbc4225ed02f913588d1", "score": "0.5660345", "text": "private void viewAddPro(){\n Producto p=new Producto();\n \n p.nombre=colector.string(\"Ingrese nombre del producto\");\n if(p.nombre!=null){\n if(cp.searchPro(p.nombre).nombre==null){\n p.ubicacion=colector.string(\"Ingrese estante de ubicacion\");\n if (p.ubicacion!=null){\n p.valor=colector.decimal(\"Ingrese precio del producto\");\n if (p.valor!=0){\n p.cantidad=(int)colector.entero(\"Ingrese cantidad existente del producto\");\n if (p.cantidad!=0){\n cp.addPro(p); \n JOptionPane.showMessageDialog(null,\"Producto creado\");\n }\n }\n }\n }else{\n JOptionPane.showMessageDialog(null,cp.searchPro(p.nombre).toString()+ \"\\n\\nEste producto ya existe\");\n }\n }\n }", "title": "" }, { "docid": "fa3d928cc7fec24247c928eac70614fa", "score": "0.56460136", "text": "public PagoDetailDTO(PagoEntity entity) {\n super(entity);\n \n if (entity.getTarjeta() != null) {\n this.tarjeta = new TarjetaCreditoDTO(entity.getTarjeta());\n } else {\n entity.setTarjeta(null);\n }\n }", "title": "" }, { "docid": "3a9c4db4acc1621e871f77f9a064a4a9", "score": "0.564069", "text": "public void presa(Carta c){\n\n this.prese.aggiungi(c);\n }", "title": "" }, { "docid": "08154a2c3da165c03133349f160e0e96", "score": "0.5627194", "text": "public void nuovaCartella() {\n\t\tcart = new Cartella();\r\n\t\tUtility.info(\"Nuova cartella per \"+getNome());\r\n\t\tcart.stampa();\r\n\t}", "title": "" }, { "docid": "ec31e236d5bf08ed3c627518f102edc6", "score": "0.5619562", "text": "@Override\n public String toString() {\n return \"VentaDet id# \" + getIdventadet() + \" idventacab: \" + getIdventacab() + \" precioventa: \" + getPrecioventa()\n + \" precio: \" + getPrecio() + \" preciocostoEq\" +getPreciocostoeq();\n }", "title": "" }, { "docid": "1bed30bd2f7dfab91521f356b22dae83", "score": "0.56155515", "text": "private void llenarDatos() {\n\r\n cli = (Cliente) scrm.getU();\r\n System.out.println(cli.getNombre()); \r\n\t(pdp.getJTextFieldCodiUsuari()).setText(cli.getCodUsuario());\r\n\t\r\n}", "title": "" }, { "docid": "d3539b0cf6abd78662521f13cba0d97f", "score": "0.56103486", "text": "public Carta(String caraCarta, String paloCarta){\n this.cara = caraCarta;\n this.palo = paloCarta;\n }", "title": "" }, { "docid": "23076a52e611a1f9e2b9bb53c8036ddf", "score": "0.56021553", "text": "public void pesca(Carta c){\n this.mano.aggiungi(c);\n\n }", "title": "" }, { "docid": "f60130942b16cafedfb61cb9ab62d666", "score": "0.5598899", "text": "public Carta() {\n palo = JOKER;\n valor = 1;\n }", "title": "" }, { "docid": "5d531eae266fd6ab381e30a239215b69", "score": "0.5598031", "text": "@Override\n public String toString() {\n String cadena;\n \n cadena = \"CURSOS: \" + (curso + \" \" + salon+\" \"+ fecha);\n return cadena;\n }", "title": "" }, { "docid": "2083e0491918bb8e64ef25d744347363", "score": "0.5597875", "text": "public String getCodProduto(){\n return codProduto;\n }", "title": "" }, { "docid": "b0a1d3ec5fa73a6363b278f2547971c5", "score": "0.5593695", "text": "@Override\n\tpublic String getText(Object object) {\n\t\tProducto producto = (Producto) object;\n\t\treturn getString(\"_UI_Producto_type\") + \" \" + producto.getId();\n\t}", "title": "" }, { "docid": "b2639268d535ed89952d425c3597eb59", "score": "0.5591332", "text": "@Override\r\n public String toString() {\n return nomtypebeneficiaire;\r\n }", "title": "" }, { "docid": "b7a3f706c15fa3129f68f67acff3282a", "score": "0.55889016", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof NotaCreditoDebitoDetalle)) {\n return false;\n }\n NotaCreditoDebitoDetalle other = (NotaCreditoDebitoDetalle) object;\n if ((this.idNotaCreditoDebitoDetalle == null && other.idNotaCreditoDebitoDetalle != null) || (this.idNotaCreditoDebitoDetalle != null && !this.idNotaCreditoDebitoDetalle.equals(other.idNotaCreditoDebitoDetalle))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "11d0a88e49ae21fbf06845a752eb89f3", "score": "0.55841964", "text": "public Producto (int idProd, String nom, double pcio, int stock, String marca) {\r\n this.idProd = idProd;\r\n this.nom = nom;\r\n this.pcio = pcio;\r\n this.stock = stock;\r\n this.marca = marca; \r\n }", "title": "" }, { "docid": "430629c07dfc33cca6b12d93ff14f4a9", "score": "0.5569629", "text": "@Override\n public String toString() {\n String dato = \"Sistema Operativo: \"+so\n + \"\\nArquitectura del Sistema Operativo: \"+arquitecturaSO +\"\\n\"\n +\"\\nDescripcion :\"+descripcionSO+\"\\n\"\n + \"\\nUsuario: \"+usuario+\"\\n\"+\n \"\\nCantidad de Ram: \"+ram+\"\\n\"+\n \"\\nProcesador: \"+this.procesador+\"\\n\"+\n \"\\nnumero de nucleos: \"+this.nucleoProcesador+\"\\n\"+\n \"\\nFabricante: \"+this.fabricanteProcesador+\"\\n\"+\n \"\\nIP: \"+this.ip+\"\\n\"+\n \"\\nMac: \"+this.Mac+\"\\n\";\n return dato;\n }", "title": "" }, { "docid": "9d2149fb5cc0694af5c939939ab77573", "score": "0.5569208", "text": "@Override\r\n public String toString(){\r\n return \"EL autor: \" + this.getAutor() + \r\n \", Ha escrito el libro: \" + this.getNom() +\r\n \", Cada unidad cuesta: \" + this.getPrecio() +\r\n \" Y tiene un total de: \" + this.getCantidad() + \r\n \" Unidades\";\r\n \r\n }", "title": "" }, { "docid": "edf051dd74cde9bffd7e7c7477211b99", "score": "0.5564481", "text": "public java.lang.String getTipo_credito() {\n return tipo_credito;\n }", "title": "" }, { "docid": "5851319a19262ee692c578c9b61106ec", "score": "0.55518776", "text": "Conta (int num, String nome, String cpf,\r\n Data d, String senha)\r\n{ this.num = num; correntista = nome;\r\n this.cpf = cpf; dataAbertura = d;\r\n this.senha = senha; saldo = 0.0;\r\n}", "title": "" }, { "docid": "3f348a04be7f4b58bcaaf8da0036be64", "score": "0.5549672", "text": "@Override\n public String toString() {\n return \"Nome:\" + contato + \" Idade:\" + idade + \" Altura:\" + altura + \"\\n\";\n }", "title": "" }, { "docid": "049650158db9bc1e166d3bd89a61ee6d", "score": "0.5544552", "text": "@Override \r\n\tpublic void MostrarAlojamiento()\r\n\t{\r\n\t\t\r\n\t\tSystem.out.print(\"TIPO: \"+ super.tipo+ \" | NOMBRE: \"+ super.nombreAlojamiento+ \" | POSIBILIDAD DUCHA INDIV.: \");\r\n\t\tif (posibilidadDeDuchaIndividual) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"SI(+\"+precioExtras+\")\"+\") | PRECIO-NOCHE:\" + precio);\r\n\t\t}\r\n\t\telse System.out.println(\"NO | PRECIO-NOCHE:\" + precio);\r\n\t}", "title": "" }, { "docid": "8f365b52506a56ed0f3517935f9c9597", "score": "0.55445457", "text": "@Override\n public String toString(){\n return obtenerCara() + \" de \" + obtenerPalo();\n }", "title": "" }, { "docid": "89291bbdd7623fb988ae4ae4ae7b3140", "score": "0.55410296", "text": "public Articoli(){\r\n this.id = 0;\r\n this.idVenditore = 0;\r\n this.nomeArticolo = \"\";\r\n this.urlImmagine = \"\";\r\n this.descrizione = \"\";\r\n this.prezzo = 0.0;\r\n this.quantita = 0;\r\n }", "title": "" }, { "docid": "e50c22746a4b5b0a668bab5be5158cf0", "score": "0.553617", "text": "protected String setCorpo() throws Exception {\n\t\treturn this.conteudo.toString();\n\t}", "title": "" }, { "docid": "0e15881f05cac61c4c606772a31d535f", "score": "0.55341256", "text": "public Tabla getTab_opcion_anulacion_credito() {\r\n return tab_opcion_anulacion_credito;\r\n }", "title": "" }, { "docid": "33b0785d13bdf7f21bebd030def10170", "score": "0.55316734", "text": "public Propiedad(int codigoPropiedad, String descripcion, String provincia, String canton, String tipo, Cliente cliente, String proposito, double precio, String Estado, double tamanoTerreno, boolean tieneConstruccion, double tamañoConstruccion) {\r\n this.codigoPropiedad = codigoPropiedad;\r\n this.descripcion = descripcion;\r\n this.provincia = provincia;\r\n this.canton = canton;\r\n this.tipo = tipo;\r\n this.cliente = cliente;\r\n this.proposito = proposito;\r\n this.precio = precio;\r\n this.Estado = Estado;\r\n this.tamanoTerreno = tamanoTerreno;\r\n this.tieneConstruccion = tieneConstruccion;\r\n this.tamañoConstruccion = tamañoConstruccion;\r\n \r\n }", "title": "" }, { "docid": "943139ea5b83f8ee96333bef9c6a809d", "score": "0.55313224", "text": "public String informacoesProduto(String nome) throws ProdutoNaoCadastradoException{\n\tProduto produto= produtos.procurar(nome);\r\n\treturn produto.toString();\r\n}", "title": "" }, { "docid": "32eaff37533fa443301834a55edfbcbc", "score": "0.5530703", "text": "@Override\n protected Object _crearCuentaBancaria() {return new CuentaBancaria(\"SONIA\", \"123456\", \"SAN\");}", "title": "" }, { "docid": "b35e81dbbb2ed2fe238d796b6fcda4f7", "score": "0.5528808", "text": "@Override\n public void addDado(Object o) {\n\n produtos.add((Produto) o);\n }", "title": "" }, { "docid": "971a55e7b68669b8ec155cfc0a641902", "score": "0.5523648", "text": "public Fornitore() {\n\t\tpartitaIVA = \"\";\n\t\tnome = \"\";\n\t\tcapitale = 0L;\n\t\tprodottiDisponibili = new ArrayList<>();\n\t\tserviziDisponibili = new ArrayList<>();\n\t}", "title": "" }, { "docid": "31ae35f2a5686d63280d37ac25dbe774", "score": "0.5521615", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Importe: \"+getImporte()+\"€, Código de pago: \"+getCodigoPago();\n\t}", "title": "" }, { "docid": "0280c918c33606127cc793cb0a3e2a89", "score": "0.55214745", "text": "@Override\n\tpublic String toString() {\n\t\tString _infoTransaccionInternacional = String.format(\"TRANSACCIONES INTERNACIONALES:\\n--------------------------------------\\n\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t + \"Codigo de transferencias: %s\\n\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t + \"Banco destino: %s\\n\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t + super.toString(), this._codigotransferencias, this._bancoDestino);\n\t\t\n\t\treturn _infoTransaccionInternacional; \n\t}", "title": "" }, { "docid": "0faa09d80528b9b8621d3e192de92f4e", "score": "0.55136764", "text": "@Override\n public String toString()\n {\n return this.getClass().getSimpleName() + \"_\" + poradi;\n }", "title": "" }, { "docid": "633cf7b13fb0692ebbff1f213d46e0c6", "score": "0.5507238", "text": "@Override\n\tpublic String info() {\n\t\treturn super.info() + \", 급여: \" + getPay(); // Sales에서는 info를 호출하진 않았지만 getPay에서 incentive를 더하도록 했기 때문에 그냥 pay로 적어두면 incentive가 적용 안 됨\n\t}", "title": "" }, { "docid": "da2bd755c51d892779589d285fad1d4e", "score": "0.5504845", "text": "public Info(int id, String clase, int idEstudiante, double cedula, String nombre, String nota) {\r\n this.id = id;\r\n this.clase = clase;\r\n this.idEstudiante = idEstudiante;\r\n this.cedula = cedula;\r\n this.nombre = nombre;\r\n this.nota = nota;\r\n }", "title": "" }, { "docid": "ceb696c983fb1ca4f6a999d104b9bc36", "score": "0.549947", "text": "private void mostrarValoresPerro(Perro perro) {\n modelo.getDuenosProvisionales().clear();\n vista.txtNombrePerro.setText(perro.getNombre());\n vista.txtEdadPerro.setText(String.valueOf(perro.getEdad()));\n vista.txtPesoPerro.setText(String.valueOf(perro.getPeso()));\n vista.datePickerPerro.setDate(perro.getFechaIngreso());\n vista.lblFotoPerro.setIcon(perro.getFotoPerro());\n //Si el perro tiene dueños divide los clientes en dos listas\n vista.dlmDuenos.clear();\n if (perro.getDuenos() != null) {\n vista.dlmClientesPerros.clear();\n for (Cliente cliente : modelo.getClientes()) {\n vista.dlmClientesPerros.addElement(cliente);\n }\n for (Cliente dueno : perro.getDuenos()) {\n modelo.getDuenosProvisionales().add(dueno);\n vista.dlmDuenos.addElement(dueno);\n }\n for (Cliente cliente : modelo.getClientes()) {\n for (Cliente dueno : modelo.getDuenosProvisionales()) {\n if (cliente.getDni().equals(dueno.getDni())) {\n vista.dlmClientesPerros.removeElement(cliente);\n }\n }\n }\n }\n //si no, muestra solo los clientes\n else {\n vista.dlmClientesPerros.clear();\n for (Cliente cliente : modelo.getClientes()) {\n vista.dlmClientesPerros.addElement(cliente);\n }\n }\n }", "title": "" }, { "docid": "94024769b4fa7948e7d4ce0ab30d39ba", "score": "0.54850817", "text": "private void crearCuerpo()\n {\n cuerpoPoligono =new CuerpoPoligono(getElementos(),new CuerpoDinamico());\n }", "title": "" }, { "docid": "e8c62089e5e993d6e6ba164fe45515fa", "score": "0.5484071", "text": "public void addListaDeCartaoCredito(List<CartaoCredito> cartaocredito) {\n\t\t// PEGA O TAMANHO ANTIGO DA TABELA.\n\t\tint tamanhoAntigo = getRowCount();\n\n\t\t// ADICIONA OS REGISTROS.\n\t\tlinhas.addAll(cartaocredito);\n\n\t\tfireTableRowsInserted(tamanhoAntigo, getRowCount() - 1);\n\t}", "title": "" }, { "docid": "bf2a914c7eda2fc805cfc12d6199217b", "score": "0.5481777", "text": "@Override\n\tpublic String listarDadosFormaSeletiva() {\n\t\treturn \"\\nMarca do protetor solar: \" + this.getMarcaDoProduto() + \n\t\t\t\t\"\\nCódigo do protetor solar: \" + this.getCodigoDoProduto() +\n\t\t\t\t\"\\nPreço do protetor solar: R$\" + this.getPrecoDoProduto();\n\t}", "title": "" }, { "docid": "29e0d2057f5eb12a5932d5dbacec4015", "score": "0.5480854", "text": "private void editar() \n {\n Cliente_Modelo modelo = new Cliente_Modelo(\n this.getCodCliente(), \n this.getNome(), \n this.getTelefone(), \n this.getProvincia(), \n this.getMunicipio(), \n this.getComuna(),\n this.getTipoCliente()\n );\n JOptionPane.showMessageDialog(null, modelo.toString());\n modelo.editar();\n }", "title": "" }, { "docid": "a6ba558fa8b078f4db4f4988be8cefdc", "score": "0.54769534", "text": "public void prendeCarta(Carta c) {\n //metodo add aggiunge in fondo a quelle che ci sono gia'\n carteinmano.add(c); \n }", "title": "" }, { "docid": "a9d801f4d5c0c7a5942cee1893ed5e3e", "score": "0.54685354", "text": "public String toString () {\n StringBuilder s;\n s = new StringBuilder();\n s.append(\"Código de Produto: \"); s.append(codigoProduto);\n s.append(\"\\nPreco: \"); s.append(preco);\n s.append(\"\\nUnidades: \"); s.append(unidades);\n s.append(\"\\nCódigo de Cliente: \"); s.append(codigoCliente);\n s.append(\"\\nMês: \"); s.append(mes);\n s.append(\"\\nFilial: \"); s.append(filial);\n return s.toString();\n }", "title": "" }, { "docid": "7e8212c9794dd7fd0f8fab6c66e9be4e", "score": "0.54661447", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Solicitar Pedido\";\n\t}", "title": "" }, { "docid": "0682eca378d13ff73528022bb78dbfca", "score": "0.5464224", "text": "@Override\n\tpublic String listarDados() {\n\t\treturn \"Marca do protetor solar: \" + this.getMarcaDoProduto() + \n\t\t\t\t\"\\nLinha do protetor solar: \" + this.getLinhaDoProduto() + \n\t\t\t\t\"\\nPropriedades do protetor solar: \" + this.getPropriedadesDoProtetorSolar() + \n\t\t\t\t\"\\nFPS do protetor solar: \" + this.getFpsDoProtetorSolar() +\n\t\t\t\t\"\\nCódigo do protetor solar: \" + this.getCodigoDoProduto() +\n\t\t\t\t\"\\nPreço do protetor solar: R$\" + this.getPrecoDoProduto() +\n\t\t\t\t\"\\nVolume do protetor solar (ml): \" + this.getVolumeDoProduto() +\n\t\t\t\t\"\\n-------------------------------------------------------------------------\" + \n\t\t\t\t\"\\nQuantidade no estoque: \" + this.getQuantidadeProduto();\n\t}", "title": "" }, { "docid": "a9ce8f4a6e939b6d3cabd5c858439a98", "score": "0.5458869", "text": "@Override\n\tpublic String toString() {\n\t\tString stringa = \" • ID: \"+idStrumentazione + \" - \" + nome + \"\\n\" \n\t\t\t\t+ \" - Modello: \" + modello + \"\\n\"\n\t\t\t\t+ \" - Marca: \" + marca + \"\\n\" \n\t\t\t\t+ \" - Tipologia: \" + tipologia + \"\\n\" \n\t\t\t\t+ \" - Data di acquisto: \" + Utility.sqlToStringFormat(dataAcquisto);\n\t\treturn stringa;\n\t}", "title": "" }, { "docid": "6c38e9f5de90ca0de953a670858639ae", "score": "0.5454125", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"Perro [id=\" + id + \", nombre=\" + nombre + \", raza=\" + raza + \"]\";\n\t}", "title": "" }, { "docid": "83c70219244cc131b6efbc41e7613908", "score": "0.5452852", "text": "public void setTarjetaCredito(TarjetaCredito tarjetaCredito)\r\n/* 478: */ {\r\n/* 479:488 */ this.tarjetaCredito = tarjetaCredito;\r\n/* 480: */ }", "title": "" }, { "docid": "0c473d4f052bae6abf45944b67e8db9e", "score": "0.5452315", "text": "public String toString(){\n String vHilera=\"\";\n vHilera += \"Identificación\" + this.identificacion + \"Nombre Completo\"+this.nombre+this.primerApellido+this.segundoApellido+\n \"Direccion\"+this.provincia+this.canton+this.distrito+this.direccionSennas +\"Teléfono\"+this.telefonoCasa;\n return vHilera;\n }", "title": "" }, { "docid": "5b33c328a1ffdff82f1403de3d5d4ea2", "score": "0.5431921", "text": "public void EstablecerInfoProyecto() {\n this.TfEstado.setText(proyecto.getEstado());\n this.TfNombreProyecto.setText(proyecto.getNombre());\n this.TfFechaInicio.setText(proyecto.ObtenerFecharCorta(proyecto.getFechaInicio()));\n this.TfFechaLimite.setText(proyecto.ObtenerFecharCorta(proyecto.getFechaLimite()));\n this.LbProgreso.setText(String.valueOf(proyecto.ObtenerPorcentajeTareaRealizadas()));\n }", "title": "" }, { "docid": "f16b56841238de32ed4e85164a322db3", "score": "0.54297924", "text": "public void removeCartaoCredito(int indiceLinha) {\n\t\tlinhas.remove(indiceLinha);\n\n\t\tfireTableRowsDeleted(indiceLinha, indiceLinha);\n\t}", "title": "" }, { "docid": "c8c4f88c2e6521a29750b90dbc184de6", "score": "0.5427896", "text": "public TcCapMotivoDesasignaInstrDTO() { }", "title": "" }, { "docid": "9484839979a5b8fa37c1e47f86aca90a", "score": "0.5426435", "text": "public GuiaDetailDTO() {\r\n super();\r\n }", "title": "" }, { "docid": "580ac689a8d96689684933aed504e11f", "score": "0.542633", "text": "public String produtoToString(Produto p){\r\n return p.getId()+\"~\"+p.getNome()+\"~\"+p.getQuantidade()+\"~\"+p.getPreco();\r\n }", "title": "" }, { "docid": "84318b09a90703385a64e20bc7c61565", "score": "0.5419721", "text": "public ReasignarCarteraRespuesta() {\n\t\treporteReasignados = new ArrayList<ReasignarCarteraReporteOV>();\n\t\theader = new EncabezadoRespuesta();\n\t\t}", "title": "" }, { "docid": "9ed0d6acbcc2c7161b61aa7adf98a61b", "score": "0.54170597", "text": "@Override\n public void ConsultarDatos(){\n System.out.println(\"Numero de Cuenta: \"+ this.numeroCuenta);\n System.out.println(\"Nombre Cliente: \"+this.nombreCliente);\n System.out.println(\"Saldo: \"+this.saldo);\n System.out.println(\"Porcentaje interes mensual: \"+this.porcentajeIntMensual);\n System.out.println(\"Fecha de Vencimiento: \"+this.fechaVencimiento.getDia()+\"/\"+this.fechaVencimiento.getMes()+\"/\"+this.fechaVencimiento.getAnio());\n }", "title": "" }, { "docid": "577f4ffe2ffc0a8a48ec734547fb5124", "score": "0.54043615", "text": "public String toString() {\n\t\treturn \"Otros \" + super.toString()+ \" \" + StringUtils.replace(descripcion, \" \", \"_\");\n\t}", "title": "" } ]
a429c0d67a07240e8e651d3a2c16075b
Sets the specified keyvalue pair as the parameter in this parameter table. If a parameter with the specified key already exists, then replaces that parameter value with this new specified value. The null values are not allowed. If either the key or the value is null, this method will do nothing.
[ { "docid": "4b03aacf98922f4ecfc19f2543ad45d6", "score": "0.71533495", "text": "public void put(DsByteString key, DsByteString value) {\n if (key != null && value != null) {\n DsParameter param = find(key);\n if (param != null) {\n param.setValue(value);\n } else {\n addLast(new DsParameter(key, value));\n }\n }\n }", "title": "" } ]
[ { "docid": "5b6e92e6a16852056c2c22083bdf2e30", "score": "0.7387918", "text": "public void setParameter(String key, Object value){\n\t\tif(this.parameters == null){\n\t\t\tinitParameters();\n\t\t}\n\t\tthis.parameters.put(key, value);\n\t}", "title": "" }, { "docid": "c9c6828043ad295e257cf45cbc92358d", "score": "0.6926265", "text": "public void parameter(String key, Object value) {\r\n\t\tparameters.put(key, value);\r\n\t}", "title": "" }, { "docid": "f097cfa8c9102928c6a3b5f347c302c0", "score": "0.6301114", "text": "public void setParameter(String key, Object object) {\r\n params.put(key, object);\r\n }", "title": "" }, { "docid": "483f7910faddd5de793b8ef7cc00654e", "score": "0.62877524", "text": "public abstract void setValue(String key, String value);", "title": "" }, { "docid": "d15f4acfa31b1c9338a67c55d4c245d5", "score": "0.6205974", "text": "private void update(String paramKey, String paramValue) {\n\t\tEOMangueParametres record = EOMangueParametres.fetchMangueParametres(\n\t\t\t\tec(), CktlDataBus.newCondition(EOMangueParametres.PARAM_KEY_KEY+\"='\" + paramKey+ \"'\"));\n\t\tif (record != null) {\n\t\t\trecord.setParamValue(paramValue);\n\t\t\tapp.clearCache(paramKey);\n\t\t}\n \t}", "title": "" }, { "docid": "0acca646d0e68d5b9343b0fb0292ccfa", "score": "0.6061306", "text": "public void setParameter(DsByteString name, DsByteString value) {\n if (m_paramTable == null) {\n m_paramTable = new DsParameters();\n }\n m_paramTable.put(name, value);\n }", "title": "" }, { "docid": "eed70477df8516faaf9916d3fc61d992", "score": "0.60302955", "text": "@Override\n @SuppressWarnings(\"unchecked\")\n public <UJO extends ParamSystemService, VALUE> Ujo set(Key<UJO, VALUE> property, VALUE value) {\n property.setValue((UJO) this, value);\n return this;\n }", "title": "" }, { "docid": "b8d153d68a38bdc03dc39373aa1238b8", "score": "0.5962754", "text": "public abstract void setParameterValue(String sParameterName,\r\n String sValue);", "title": "" }, { "docid": "22407184cfa1403b285533e1ffe7e7a0", "score": "0.59191555", "text": "public void addParameter(final String key, final String value) {\n this.params.put(key, value);\n }", "title": "" }, { "docid": "32125def541bce00d6e70e4c36b65166", "score": "0.59104496", "text": "void addParameter(String key, String value);", "title": "" }, { "docid": "6fd09366ca85acc8cd91f5cb194502a9", "score": "0.5909111", "text": "protected final void parameterValue(String name, String value)\n throws IllegalArgumentException {\n\n // Check preconditions\n MandatoryArgumentChecker.check(\"name\", name);\n\n // If there is no value, then remove the entry from the map\n if (value == null) {\n if (_parameterValues != null) {\n _parameterValues.remove(name);\n }\n\n // Otherwise just store\n } else {\n\n if (_parameterValues == null) {\n _parameterValues = new HashMap();\n }\n _parameterValues.put(name, value);\n }\n }", "title": "" }, { "docid": "384fa8c336d6179c6043f7c98307dd0b", "score": "0.5898149", "text": "public void set(String key, Object value) {\n if (value != null) put(key, value);\n else remove(key);\n }", "title": "" }, { "docid": "85e41f3fb0a2335217dbfe0fe6f6f022", "score": "0.5888623", "text": "void set(K key, V newValue);", "title": "" }, { "docid": "8077a6f1224328c701e0d19d19c32daf", "score": "0.58852327", "text": "public void setValue(LatexKeyValuePair<?, ?> pair)\n\t{\n\t\tvalues.put(pair.key, pair);\n\t}", "title": "" }, { "docid": "3b1fcd070177fdf72e99e7521c933d7a", "score": "0.5871043", "text": "public void putValue(String key, Object value) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3b1fcd070177fdf72e99e7521c933d7a", "score": "0.5871043", "text": "public void putValue(String key, Object value) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3b1fcd070177fdf72e99e7521c933d7a", "score": "0.5871043", "text": "public void putValue(String key, Object value) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3b1fcd070177fdf72e99e7521c933d7a", "score": "0.5871043", "text": "public void putValue(String key, Object value) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "88876c9a77ad99b043d9edc53dd7d5f5", "score": "0.58620995", "text": "public void setProperty(String key, Object value) {\n\t table.put(key, value);\n\t}", "title": "" }, { "docid": "13baf3663ed972bf2e8a8911de36f4f6", "score": "0.58449984", "text": "V set(K key, V value);", "title": "" }, { "docid": "62253aab35f43ff50739972adae966af", "score": "0.58327794", "text": "public void setValue(String key, Object value)\r\n \t{\r\n \t\tif (isMutable())\r\n \t\t\tvalues.put(key, value);\r\n \t}", "title": "" }, { "docid": "60dc9467ed19cfba9bb16a81c15e3d85", "score": "0.5828209", "text": "public void setKeyValue(String keyValue) {\n this.keyValue = keyValue;\n }", "title": "" }, { "docid": "e70b689358f9cb6e3e9775b3b46a5dc6", "score": "0.5827807", "text": "@Override\n protected void setArgFromMapEntry(ConanParameter param, String value) {\n }", "title": "" }, { "docid": "55fdf49d890dd30cbbe31218fee36f1b", "score": "0.58187354", "text": "private static void setParam(String key, String value, Map<String, String> map)\n {\n if (!map.containsKey(key)) {\n map.put(key, value);\n }\n }", "title": "" }, { "docid": "f3945e4693cde83da00352f7410c32c0", "score": "0.58030635", "text": "public void setValue(String key, Object value)\r\n \t{\r\n \t\tif (this.isMutable())\r\n \t\t{\r\n \t\t\tthis.values.put(key, value);\r\n \t\t}\r\n \t}", "title": "" }, { "docid": "ead4658d866e392b3931ef119e34bcb4", "score": "0.57587814", "text": "public void setData (String key, Object value) {\r\n\tcheckDevice ();\r\n\tif (key == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\t\r\n\t/* Remove the key/value pair */\r\n\tif (value == null) {\r\n\t\tif (keys == null) return;\r\n\t\tint index = 0;\r\n\t\twhile (index < keys.length && !keys [index].equals (key)) index++;\r\n\t\tif (index == keys.length) return;\r\n\t\tif (keys.length == 1) {\r\n\t\t\tkeys = null;\r\n\t\t\tvalues = null;\r\n\t\t} else {\r\n\t\t\tString [] newKeys = new String [keys.length - 1];\r\n\t\t\tObject [] newValues = new Object [values.length - 1];\r\n\t\t\tSystem.arraycopy (keys, 0, newKeys, 0, index);\r\n\t\t\tSystem.arraycopy (keys, index + 1, newKeys, index, newKeys.length - index);\r\n\t\t\tSystem.arraycopy (values, 0, newValues, 0, index);\r\n\t\t\tSystem.arraycopy (values, index + 1, newValues, index, newValues.length - index);\r\n\t\t\tkeys = newKeys;\r\n\t\t\tvalues = newValues;\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n\t\r\n\t/* Add the key/value pair */\r\n\tif (keys == null) {\r\n\t\tkeys = new String [] {key};\r\n\t\tvalues = new Object [] {value};\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=0; i<keys.length; i++) {\r\n\t\tif (keys [i].equals (key)) {\r\n\t\t\tvalues [i] = value;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\tString [] newKeys = new String [keys.length + 1];\r\n\tObject [] newValues = new Object [values.length + 1];\r\n\tSystem.arraycopy (keys, 0, newKeys, 0, keys.length);\r\n\tSystem.arraycopy (values, 0, newValues, 0, values.length);\r\n\tnewKeys [keys.length] = key;\r\n\tnewValues [values.length] = value;\r\n\tkeys = newKeys;\r\n\tvalues = newValues;\r\n}", "title": "" }, { "docid": "b99c1eedf1375894ea3ddfb2c4d58b44", "score": "0.57515883", "text": "public void put(Key key, Value value);", "title": "" }, { "docid": "18a9986bbb466d3638c88bad8201e63b", "score": "0.56823903", "text": "void put(Key key, Value value) {}", "title": "" }, { "docid": "0f4ba09b90a41d449a4f01e245c98614", "score": "0.56565976", "text": "public abstract void setValue(String key, int value);", "title": "" }, { "docid": "76920d50205acdf1bbc9191b9c7f827a", "score": "0.5654356", "text": "@Override\n\t\t\tpublic void putValue(String key, Object value) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "61e5f2370a90fea98e1d7f6fa9f4015d", "score": "0.56375647", "text": "public void put(Key key, Value value) {\n\n }", "title": "" }, { "docid": "e6893716c23539d47afed2adee4a6c34", "score": "0.563522", "text": "public void setParameter (String name, String value);", "title": "" }, { "docid": "515899f6254adf299b9222f96e9de748", "score": "0.56088763", "text": "public <T> void set(Class<T> key, T value) {\n if (value != null) {\n context.put(key.getName(), value);\n } else {\n context.remove(key.getName());\n }\n }", "title": "" }, { "docid": "6789b613d54f4708f3e0899bc839679b", "score": "0.56035095", "text": "public void addParameter(String key, IParameter parameter);", "title": "" }, { "docid": "a528312c5f30d051ec4cf9e99f9336a1", "score": "0.5601874", "text": "private void insertKeyValue(String key, String value) throws StorageException {\n if (value != null) {\n value = Utility.safeEncode(value);\n }\n if (!key.startsWith(\"$\")) {\n key = Utility.safeEncode(key);\n }\n\n ArrayList<String> list = this.parameters.get(key);\n if (list == null) {\n list = new ArrayList<String>();\n list.add(value);\n this.parameters.put(key, list);\n }\n else {\n if (!list.contains(value)) {\n list.add(value);\n }\n }\n }", "title": "" }, { "docid": "0408a2da30246a53dd506268e366aa06", "score": "0.5594611", "text": "public void put(String key, String value)\n {\n if (key != null && value != null) {\n urlParams.put(key, value);\n }\n }", "title": "" }, { "docid": "9b071e3f24dc1741406b7826e798f41c", "score": "0.5577242", "text": "void setParam(String name, Object value);", "title": "" }, { "docid": "53497ccf2c8549a0ede93b9077193483", "score": "0.5553052", "text": "public void setParameter(String name, Object value) {\n if (name == null) {\n throw new IllegalArgumentException(\"Null name parameter\");\n }\n if (value != null) {\n getParameters().put(name, value);\n } else {\n getParameters().remove(name);\n }\n }", "title": "" }, { "docid": "5f3a9a9f3fdfa5b408b5866a930221f1", "score": "0.55443573", "text": "public void setPerTransactionData(String key, Object value);", "title": "" }, { "docid": "5405e62a27ac96ce90be57bb73551352", "score": "0.55359536", "text": "public void putKV(String key, String value) throws Exception;", "title": "" }, { "docid": "1083d412833316d3d1a8c09449f7f195", "score": "0.5525893", "text": "public boolean setParameter(String name, String value) {\n JbParameters table = getParameterTable(name);\n name = getCanonicalName(name);\n return table.set(name, value);\n }", "title": "" }, { "docid": "cb0479f644e20ae2f8d69bf8f7ec0be1", "score": "0.55243254", "text": "public void addParam(String key, Object value) {\n\t\tparams.put(key, value);\n\t}", "title": "" }, { "docid": "b40785aa02647191e6556b2ac1496de3", "score": "0.55152726", "text": "public void set(String key, String value) {\n\t Log.v(TAG, \"set Key = \" + key + \", value = \" + value);\n\t if (key.indexOf('=') != -1 || key.indexOf(';') != -1 || key.indexOf(0) != -1) {\n\t Log.e(TAG, \"Key \\\"\" + key + \"\\\" contains invalid character (= or ; or \\\\0)\");\n\t return;\n\t }\n\t if (value.indexOf('=') != -1 || value.indexOf(';') != -1 || value.indexOf(0) != -1) {\n\t Log.e(TAG, \"Value \\\"\" + value + \"\\\" contains invalid character (= or ; or \\\\0)\");\n\t return;\n\t }\n\n\t put(key, value);\n\t }", "title": "" }, { "docid": "c2643568f7acec6af5aab0d8ca8a0408", "score": "0.55013573", "text": "public void set(String key, Object value)\n\t{\n\t\tvariables.put(key, value);\n\t}", "title": "" }, { "docid": "08f2c762d5dd9b031fe2350b72083786", "score": "0.5499284", "text": "public abstract void setValue(String key, boolean value);", "title": "" }, { "docid": "09febee87d54fe3ed890225e8da67e8a", "score": "0.5478612", "text": "void setValue(Map<String,? super VALUE> map, VALUE value);", "title": "" }, { "docid": "4f087f2a9303a53f340d42865fcb914d", "score": "0.5466527", "text": "void put(Object key, Object value);", "title": "" }, { "docid": "4f087f2a9303a53f340d42865fcb914d", "score": "0.5466527", "text": "void put(Object key, Object value);", "title": "" }, { "docid": "040c60b86d1c6b8bdfa7b22ecbbab96a", "score": "0.5460598", "text": "public Query setParameter(String name, Object val) throws HibernateException;", "title": "" }, { "docid": "6fcdaa2b115753d38f0fa0827c164ac7", "score": "0.5450802", "text": "public void setValue(String k, String v)\n\t{\n\t\tif (k.equals(key))\n\t\t\tvalue = v;\t\n\t\telse \n\t\t\tvalue = \"\";\t\t\t\n\t}", "title": "" }, { "docid": "cd583f37207c4acc272cd4aee371532e", "score": "0.5450464", "text": "public abstract void setValue(String key, long value);", "title": "" }, { "docid": "9e0079c8ee822614810416d8d150efce", "score": "0.543131", "text": "public void put(String key, String value) { \n // TODO(2) \n // Insert a new key-value pair into the table.\n if(nElems == map.length) rehash(); // rehash first if the table is full \n \n Pair newPair = new Pair(key, value);\n int index = hash(key);\n\n if (map[index] != null) {\n index++;\n\n while (map[index] != null) {\n if (index + 1 < map.length) {\n index++;\n } else {\n index = 0;\n }\n }\n map[index] = newPair;\n } else {\n map[index] = newPair;\n }\n \n nElems++;\n }", "title": "" }, { "docid": "a73a5529942c76354c39d261960e804f", "score": "0.5428598", "text": "@Override\n\tpublic void overrideParameter(String key, ConfigurationParameter parameter){\n\t\tparameters.put(key, parameter);\n\t}", "title": "" }, { "docid": "c7ccd4505bbccf66b2d5554417a55559", "score": "0.5408591", "text": "public void put(String key, Object value);", "title": "" }, { "docid": "e1196f07571ef9c9e43a379f762cef0e", "score": "0.5405507", "text": "private MValue setInMap(String key, MValue value) {\n newKey.add(key);\n valueMap.put(key, value);\n return value;\n }", "title": "" }, { "docid": "a18b3982c9df96a855bd5fc56e70c74c", "score": "0.53920865", "text": "public abstract THIS addParameter(String key, String value);", "title": "" }, { "docid": "6c67a17534ed6a7ff4d3a4c653672ea2", "score": "0.5377567", "text": "public void addParameter(String key, String value) {\n\t\tif (parameters == null)\n\t\t\tparameters = createParameterPair(key, value);\n\t\telse\n\t\t\tparameters += \"&\" + createParameterPair(key, value);\n\t}", "title": "" }, { "docid": "2e46ce1884d1bd5798509fae42671ca4", "score": "0.53762394", "text": "public void update(String key, Object value) throws KeyNotFoundInTableException {\r\n Key searchKey = new Key(key);\r\n BSTreeNode treeNode = getFromTree(searchKey, root);\r\n treeNode.kvPair.value = value;\r\n }", "title": "" }, { "docid": "1db9788da0813fd420296484f6c86127", "score": "0.53608197", "text": "void setParameter(\n\t\t\tPreparedStatement stmt, \n\t\t\tint index,\n\t\t\tObject value) throws Exception;", "title": "" }, { "docid": "d83e69aa4172a122e8cf3de93683e717", "score": "0.5360622", "text": "public void put(String key, String value) {\n\t\tif (key != null && value != null) {\n\t\t\turlParams.put(key, value);\n\t\t}\n\t}", "title": "" }, { "docid": "ceaa9be8b8712159f55f20dfd399a807", "score": "0.5357622", "text": "void put(K key, V value);", "title": "" }, { "docid": "2b83ce917b1a7ec9e48c6377a02dc531", "score": "0.5350912", "text": "public void setBuildParameterValue(Queue.Item item, String parameterName, String parameterValue) {\n StringParameterValue sValue = new StringParameterValue(parameterName, parameterValue);\n\n ParametersAction oldAction = item.getAction(ParametersAction.class);\n ParametersAction newAction = oldAction.merge(new ParametersAction(sValue));\n\n // Since there can be only one type of a particular action\n // (ParametersAction) on a given Actionable, calling replaceAction below\n // replaces that only instance with the new one we just created.\n item.replaceAction(newAction);\n }", "title": "" }, { "docid": "4e14afd3de200d9f9a31ac6c8928952b", "score": "0.5348435", "text": "public void set ( int varId, Key key){\n\t\tlong valueId = key.getId();\n\t\tmap[varId] = valueId;\n\t}", "title": "" }, { "docid": "c64df9962b4b88e33e4efc13cfc62b44", "score": "0.53449917", "text": "public abstract void setValue(String key, String value) throws IOException;", "title": "" }, { "docid": "2c06fe777d276a61d82e7e2ca619d3ba", "score": "0.5344157", "text": "public void _set(final String key,final byte[] value,SetParams params){\n\t\tif (params == null)\n\t\t{\n\t\t\t_set(key,value);\n\t\t}else{\n\t\t\tfinal List<byte[]> args = new ArrayList<byte[]>();\n\t\t\targs.add(SafeEncoder.encode(key));\n\t\t\targs.add(value);\n\t\t\targs.addAll(params.getParams());\n\t\t\t\n\t\t\tsendCommand(Command.SET.raw, args.toArray(new byte[args.size()][]));\n\t\t}\n\t}", "title": "" }, { "docid": "155ba16f08eeb4187ccbb98ef16c8d4d", "score": "0.5343306", "text": "public void put(K key, V value) throws Exception;", "title": "" }, { "docid": "db3b400f303ee3eddc2eeea67f2272f3", "score": "0.53283864", "text": "private void setPreparedStatementParam(PreparedStatement statement, PropertyDescriptor prop, Object value, FieldDefinition fieldDef, int index) throws DataLayerException\r\n {\r\n try\r\n {\r\n // Statement param indexes start with 1, not 0.\r\n index++;\r\n\r\n String fieldName = prop.getName().toLowerCase();\r\n String fieldType = fieldDef.getType();\r\n\r\n if (fieldType.equals(\"key\") && value == null)\r\n {\r\n //statement.setString(index, \"\");\r\n logCore.debug(\" \" + fieldName + \" (\" + fieldType + \") = '' IGNORED. Should get next PK as part of insert statement.\");\r\n return;\r\n }\r\n\r\n if (fieldDef == null)\r\n throw new DataLayerException(\"Error populating PreparedStatement attributes. FieldDefinition is null.\");\r\n\r\n if (value != null)\r\n logCore.debug(\" \" + fieldName + \" (\" + fieldType + \") = '\" + value.toString() + \"'\");\r\n else\r\n logCore.debug(\" \" + fieldName + \" (\" + fieldType + \") = null\");\r\n\r\n if (fieldType.equals(\"string\"))\r\n {\r\n // value is a String.\r\n if (value != null)\r\n {\r\n String temp = FormatUtils.parseString(value.toString(), fieldDef);\r\n\r\n statement.setString(index, temp);\r\n }\r\n else\r\n statement.setNull(index, java.sql.Types.VARCHAR);\r\n }\r\n else if (fieldType.equals(\"key\"))\r\n {\r\n // value is a primary key.\r\n if (value != null)\r\n statement.setString(index, value.toString());\r\n //else\r\n // statement.setString(index, \"\");\r\n }\r\n else if (fieldType.equals(\"date\"))\r\n {\r\n java.util.Date date = null;\r\n\r\n if (value != null)\r\n {\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n date = FormatUtils.parseDate(value.toString(), fieldDef);\r\n else if (java.util.Date.class.isAssignableFrom(prop.getPropertyType()))\r\n date = (java.util.Date)value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName + \". Type expected to be Date or String.\");\r\n statement.setTimestamp(index, new Timestamp(date.getTime()));\r\n }\r\n else\r\n statement.setNull(index, java.sql.Types.TIMESTAMP);\r\n }\r\n else if (fieldType.equals(\"long\"))\r\n {\r\n Long num = null;\r\n\r\n if (value != null)\r\n {\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n num = FormatUtils.parseLong(value.toString());\r\n else if (Long.class.isAssignableFrom(prop.getPropertyType()))\r\n num = (Long)value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName + \". Type expected to be Long or String.\");\r\n statement.setLong(index, num.longValue());\r\n }\r\n else\r\n statement.setNull(index, java.sql.Types.NUMERIC);\r\n }\r\n else if (fieldType.equals(\"int\"))\r\n {\r\n Integer num = null;\r\n\r\n if (value != null)\r\n {\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n num = FormatUtils.parseInteger(value.toString());\r\n else if (Integer.class.isAssignableFrom(prop.getPropertyType()))\r\n num = (Integer)value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName + \". Type expected to be Integer or String.\");\r\n statement.setInt(index, num.intValue());\r\n }\r\n else\r\n statement.setNull(index, java.sql.Types.NUMERIC);\r\n }\r\n else if (fieldType.equals(\"boolean\"))\r\n {\r\n if (value != null)\r\n {\r\n Boolean item = null;\r\n\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n item = FormatUtils.parseBoolean(value.toString(), fieldDef);\r\n else if (Boolean.class.isAssignableFrom(prop.getPropertyType()))\r\n item = (Boolean)value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName + \". Type expected to be Boolean or String.\");\r\n\r\n if (item.booleanValue())\r\n statement.setString(index, \"Y\");\r\n else\r\n statement.setString(index, \"N\");\r\n }\r\n else\r\n statement.setNull(index, java.sql.Types.CHAR);\r\n }\r\n else if (fieldType.equals(\"double\") || fieldType.equals(\"float\"))\r\n {\r\n if (value != null)\r\n {\r\n BigDecimal item = null;\r\n\r\n if (String.class.isAssignableFrom(prop.getPropertyType()))\r\n item = FormatUtils.parseBigDecimal(value.toString(), fieldDef);\r\n else if (BigDecimal.class.isAssignableFrom(prop.getPropertyType()))\r\n item = (BigDecimal)value;\r\n else\r\n throw new DataLayerException(\"Error parsing value for field \" + fieldName + \". Type expected to be BigDecimal or String.\");\r\n statement.setBigDecimal(index, item);\r\n }\r\n else\r\n statement.setNull(index, java.sql.Types.NUMERIC);\r\n }\r\n else\r\n {\r\n throw new DataLayerException(\"Error populating PreparedStatement attributes. Unrecognized data type (\" + value.getClass() + \").\");\r\n }\r\n }\r\n catch (DataLayerException e)\r\n {\r\n throw e;\r\n }\r\n catch (java.lang.Exception e)\r\n {\r\n throw new DataLayerException(\"Error populating PreparedStatement attributes.\", e);\r\n }\r\n }", "title": "" }, { "docid": "6eb3a1aaae667c251987616abf1da0c2", "score": "0.53198224", "text": "public void put(Object key, Object value) {\n put(key, value, false);\n }", "title": "" }, { "docid": "ec96bb181bb53f7abc7717c937387137", "score": "0.5305014", "text": "public <T> void set(String key, T value) {\n\t\tLOGGER.debug(\"Setting value with key {} into Test Context\", key);\n\t\tcontext.put(key, value);\n\t}", "title": "" }, { "docid": "557f6f67e6e3f08d6bccd2dd2ca7b378", "score": "0.530456", "text": "@Override\n\tpublic final void setValue(E value) throws NullPointerException {\n\t\tthis.param.setValue(value);\n\t\trefreshParamEditor();\n\t}", "title": "" }, { "docid": "31dc9c0fa769df705841c814dd1ec22d", "score": "0.5292212", "text": "public void put(final String key, final T value)\n {\n assert compressionMethod() != Method.FREEZE;\n\n if (value == null)\n {\n fail(\"Cannot put null values\");\n }\n\n // Get the index to put at\n final var index = index(keys, key);\n\n // If the slot at the given index is empty\n if (isEmpty(keys[index]))\n {\n // then we're adding a new key/value pair\n keys[index] = key;\n values[index] = value;\n increaseSize();\n }\n else\n {\n // otherwise, we're just changing the value\n values[index] = value;\n }\n }", "title": "" }, { "docid": "b9157b6c4f43e18d3586d2b21a092914", "score": "0.5274389", "text": "public void setValue(String key, String value) {\r\n\t\tpropertie.setProperty(key, value);\r\n\t}", "title": "" }, { "docid": "917f6b6878baefe2916d524e9cd89bc2", "score": "0.5265125", "text": "Object setArg(String key, Object value);", "title": "" }, { "docid": "697515170f168ed1e1814a0d847d5f8b", "score": "0.5246913", "text": "public void put(Key key, Value value) {\n if (key == null) throw new IllegalArgumentException(\"no null key allowed!\");\n if (head.next == null) { // no element then if the value is null, it's not allowed;\n if (value == null) throw new IllegalArgumentException(\"No null value allowed!\");\n head.next = new Node(key, value, head.next);\n return;\n }\n Node p = head; // pointing to the previous node for deletion;\n while (p.next != null) {\n if (key.compareTo(p.next.key) < 0) {\n p.next = new Node(key, value, p.next);\n return;\n } else if (key.compareTo(p.next.key) > 0) {\n p = p.next;\n } else {\n if (value == null) { // remove the node if the value is null;\n p.next = p.next.next;\n } else {\n p.next.val = value;\n return;\n }\n }\n }\n if (p != null && key.compareTo(p.key) > 0) p.next = new Node(key, value, p.next);\n }", "title": "" }, { "docid": "63a372d5682b7207caa714677ef553fd", "score": "0.5243802", "text": "@Override\n public void setParam(String name, Object value) {\n }", "title": "" }, { "docid": "fa4750497eff3f8aa2da0be7f04c75a0", "score": "0.5242686", "text": "public void putValue(String key, String value) {\n \t\tif (values==null) values = new ArrayList<String>();\n \t\t\n \t\tint index=0;\n \t\t\n \t\twhile (index<values.size()) {\n \t\t\tif ( key.equals(values.get(index)) ) {\n \t\t\t\tif (value!=null) {\n \t\t\t\t\tvalues.set(index+1, value);\n \t\t\t\t} else {\n \t\t\t\t\tvalues.remove(index+1);\n \t\t\t\t\tvalues.remove(index);\n \t\t\t\t}\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tindex+=2;\n \t\t}\n \t\t\n \t\tif (value==null) return;\n \t\tvalues.add(key);\n \t\tvalues.add(value);\n \t}", "title": "" }, { "docid": "316bc0264887b63fa40a060ec45d4ad9", "score": "0.52369666", "text": "public abstract void setValue(String key, float value);", "title": "" }, { "docid": "f0868c31bffefa65379e88493718c1f4", "score": "0.5234721", "text": "public Query setParameter(String name, Object val, Type type);", "title": "" }, { "docid": "3b01c468acd4119545e946b599c993a6", "score": "0.5227047", "text": "public abstract void setValue(String key, double value);", "title": "" }, { "docid": "c5d945298de456872fd6a576ec65ca1b", "score": "0.5222655", "text": "@DISPID(1) //= 0x1. The runtime will prefer the VTID if present\n @VTID(7)\n void put(\n java.lang.String key,\n java.lang.String value);", "title": "" }, { "docid": "a30a6053f4533ea5b5297410e612e25d", "score": "0.5209676", "text": "public void setPersistentParameter(String name, String value) {\r\n\t\tObjects.requireNonNull(name);\r\n\t\tpersistentParameters.put(name, value);\r\n\t}", "title": "" }, { "docid": "54958f6bd6d6bf33ab7109d9f4bf255f", "score": "0.5201361", "text": "public Parameter( \n final String key, final Class type, Object value ) \n {\n m_key = key;\n m_type = type;\n m_required = false;\n m_default = value;\n }", "title": "" }, { "docid": "9dbba8193225776cdc2c4f77237014b0", "score": "0.5184878", "text": "public void put(K key, V value) {\n\t\tif (key == null)\n\t\t\tthrow new NullPointerException(\"Key must not be null\");\n\t\tint index = getIndex(key);\n\t\tTableEntry<K, V> input = new TableEntry<>(key, value, null);\n\t\tif (table[index] == null) {\n\t\t\ttable[index] = input;\n\t\t} else {\n\t\t\tTableEntry<K, V> temp = table[index];\n\t\t\twhile (true) {\n\t\t\t\tif (temp.getKey().equals(key)) {\n\t\t\t\t\ttemp.setValue(value);\n\t\t\t\t\treturn;\n\t\t\t\t} else if (temp.next == null) {\n\t\t\t\t\ttemp.next = input;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ttemp = temp.next;\n\t\t\t}\n\t\t}\n\t\tsize++;\n\t\tmodificationCount++;\n\t\tif (size >= 0.75 * table.length) {\n\t\t\tchangeSize();\n\t\t}\n\t}", "title": "" }, { "docid": "b76634030e119f63a1d4d0ee46c65610", "score": "0.5182962", "text": "@Override\r\n\tpublic V set(K key, V value) {\n\t\tlength++;\r\n\t\t// set by using a helper function (insert)\r\n\t\troot = insert(root, key, value);\r\n\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "ffd8f551573a8b3b2cbd6770e133f450", "score": "0.5180262", "text": "void put(String key, String value);", "title": "" }, { "docid": "ffd8f551573a8b3b2cbd6770e133f450", "score": "0.5180262", "text": "void put(String key, String value);", "title": "" }, { "docid": "2c86c9c74fcac451cd67fae650399d1c", "score": "0.5176761", "text": "protected void setProperty(String key, Object value) {\n Transaction tx = graphDb().beginTx();\n try {\n node.setProperty(key, value);\n tx.success();\n } finally {\n tx.finish();\n }\n }", "title": "" }, { "docid": "820b61a3d7f2be903279d4015191697d", "score": "0.51714635", "text": "public function SetValue(string Key, string Value)\n{\n self.Discard(Key);\n self.Append(Key, Value);\n}", "title": "" }, { "docid": "d73cbba1459af93923c3ed331604ec46", "score": "0.51679516", "text": "void setHint(String key, Object value);", "title": "" }, { "docid": "f9cdaad067d77bcfc5e986a77b660433", "score": "0.5166367", "text": "public void setParameter(String name, Object value) throws ParameterException {\r\n\t\t_popParams = new IndividualParameters(_popParams);\r\n\t\t_popParams.setParameter(name, value);\r\n\t}", "title": "" }, { "docid": "7bc10b4892f6a2f10852ef5cc089aaf9", "score": "0.51643056", "text": "private void setPlayerInfoParam(String param, String value){\n if(this.playerInfo.containsKey(param)){\n this.playerInfo.put(param, value);\n }\n }", "title": "" }, { "docid": "7fc7c1b57dd12161e80cdd1148c8a243", "score": "0.515016", "text": "public abstract V put(final K key, final V value);", "title": "" }, { "docid": "446f336cc4ee376620505e6063da543c", "score": "0.5136509", "text": "public V put(K key, V value);", "title": "" }, { "docid": "446f336cc4ee376620505e6063da543c", "score": "0.5136509", "text": "public V put(K key, V value);", "title": "" }, { "docid": "98b115c5bbaef9b061509d5969281669", "score": "0.5134133", "text": "public void put ( String key, String value ) {\n setAdditionalOptions( key, value );\n }", "title": "" }, { "docid": "8bc6fb401083d500242afc2d1bcb8563", "score": "0.512791", "text": "public void put(String key, String value) {\n pairs.put(key, value);\n }", "title": "" }, { "docid": "c1046c8cbeab6deb79c4d4c583f0d0d8", "score": "0.5125432", "text": "@Override\r\n\tpublic void setInsert(HashMap<String, Object> param) {\n\t\t\r\n\t}", "title": "" }, { "docid": "447fc803e28e32fd128e5adf3db005fc", "score": "0.51246345", "text": "V put(K key, V value);", "title": "" }, { "docid": "447fc803e28e32fd128e5adf3db005fc", "score": "0.51246345", "text": "V put(K key, V value);", "title": "" }, { "docid": "447fc803e28e32fd128e5adf3db005fc", "score": "0.51246345", "text": "V put(K key, V value);", "title": "" } ]
944a1da6c44499b6ac3a4cb3d3f3ecd9
When pick images done, the image list would be updated. For existing images (files selected), their states would be cleared (say marked for deletion) if they are selected again
[ { "docid": "c446a48804f5a7f8ce8846629d43fde8", "score": "0.72463304", "text": "@FXML\n public void onPickImageAction(Event event) {\n\n List<File> files = App.openFileChooser();\n\n if (files == null) {\n return;\n }\n\n List<File> validImageFiles = ImageUtil.filterValidImageFiles(files);\n\n validImageFiles.forEach((file) -> {\n if (imageState.imageFileList.contains(file)) {\n imageState.imageFileList.remove(file);\n imageState.fileImageContainerHashMap.remove(file);\n }\n\n imageState.imageFileList.add(file);\n\n });\n\n imageState.imageWrapperList = imageState.imageWrapperList.stream().filter(\n imageWrapper -> !validImageFiles.contains(imageWrapper.file)\n ).collect(Collectors.toCollection(ArrayList::new));\n\n this.onImageFileListChanged();\n\n }", "title": "" } ]
[ { "docid": "2eb64809e63e36e38bd58817954400dd", "score": "0.72313476", "text": "private void onImageFileListChanged() {\n\n // only allow 50 images, all remnant would be removed\n if (imageState.imageFileList.size() > imageState.maxImageFiles) {\n notification.notifyInfo(\"Only allow 50 images. Auto clear \" + (imageState.imageFileList.size() - imageState.maxImageFiles) + \" images\");\n imageState.imageFileList.subList(0, imageState.maxImageFiles).clear();\n } else {\n notification.notifyInfo(String.format(\"Loading %s image(s)\", imageState.imageWrapperList.size()));\n }\n\n messaging.postMessage(SubjectEnum.OnImageFileListChanged, true);\n\n this.updateClearAllButtonState();\n\n imageState.updateImageModel(\n (imageWrapperList) -> {\n ImageUtil.safeJavaFxExecute((data) -> {\n// this.repaintImageList();\n notification.notifyInfo(String.format(\"%s new image(s) loaded\", imageWrapperList.size()));\n this.toggleEditItemWrapper();\n\n });\n\n }\n );\n }", "title": "" }, { "docid": "497c80953ddb76b6e55090acee22c38e", "score": "0.71677625", "text": "private void selectedImage() {\n mainPane.getChildren().clear();\n putImagesInGrid();\n }", "title": "" }, { "docid": "7966032f6cbdab23ef96abab87c5bb36", "score": "0.69176495", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tInteger imageindex = dp.getListimages().getSelectedIndex();\n\t\t\t\tif (!imageindex.equals(-1)) {\n\n\t\t\t\t\tString[] tag = listtags.getSelectedItems();\n\t\t\t\t\tpr.removeTagfromImage(\n\t\t\t\t\t\t\tpr.getLog().getAllImages().get(imageindex),\n\t\t\t\t\t\t\tpr.getLog(), pr.getFm(), tag);\n\t\t\t\t\tdp.popListImages(pr);\n\t\t\t\t}\n\t\t\t\ttry {\n\n\t\t\t\t\tpr.getLog().saveToFileTags(pathtags);\n\t\t\t\t\tpr.getLog().saveToFileHistory(pathhistory);\n\t\t\t\t} catch (IOException e1) {\n\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "bdf7a151b70b3d38ef41e828f062b93b", "score": "0.680221", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tInteger imageindex = dp.getListimages().getSelectedIndex();\n\t\t\t\tif (!imageindex.equals(-1)) {\n\n\t\t\t\t\tString[] tag = listtags.getSelectedItems();\n\t\t\t\t\tpr.addTagstoImage(\n\t\t\t\t\t\t\tpr.getLog().getAllImages().get(imageindex),\n\t\t\t\t\t\t\tpr.getLog(), pr.getFm(), tag);\n\t\t\t\t\tdp.popListImages(pr);\n\t\t\t\t}\n\t\t\t\ttry {\n\n\t\t\t\t\tpr.getLog().saveToFileTags(pathtags);\n\t\t\t\t\tpr.getLog().saveToFileHistory(pathhistory);\n\t\t\t\t} catch (IOException e1) {\n\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}", "title": "" }, { "docid": "932c85a788c758e8ed544facabed524f", "score": "0.66638756", "text": "void onPickImage(int imageNr);", "title": "" }, { "docid": "9f0173830acec70c7557c82c88cbae76", "score": "0.64314955", "text": "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tif(selectImage.isSelected()){\n\t\t\t\t\tMain.imagePane1.setImageSelection();\n\t\t\t\t}else{\n//\t\t\t\t\tMain.imagePane1.unsetImageSelection();\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "08b422dabfd2bf5b1f78149c57e90fd1", "score": "0.64145595", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpr.revertImage(dp.getListimages().getSelectedValue(),\n\t\t\t\t\t\tpr.getFm(), pr.getLog(),\n\t\t\t\t\t\tlistrevert.getSelectedItem().split(\" at Time: \")[0]);\n\t\t\t\tpopListTags();\n\t\t\t\tdp.popListImages(pr);\n\t\t\t}", "title": "" }, { "docid": "cca2a74da501f6aac21e06a915f5ec50", "score": "0.63865304", "text": "private void setOrDelImage() {\n if (flag == 0) {\n mImageFile = new File(DMApplication.DEFAULT_DIR + \"/Dictations/\" + mDictCard.getSequenceNumber() + \"/\" + mDictCard.getDictFileName() + \".jpg\");\n if (mImageFile.exists())\n mImageFile.delete();\n setThumbnailAvailability(0);\n } else {\n outputPath = \"/Dictations/\" + mDictCard.getSequenceNumber() + \"/\" + mDictCard.getDictFileName() + \".jpg\";\n imageInputPath = DMApplication.DEFAULT_DIR + \"/Dictations/\" + mDictCard.getSequenceNumber() + \"/\" + TEMP_IMAGE + \".jpg\";\n manageChooseImage = new ManageChooseImage();\n manageChooseImage.execute();\n setThumbnailAvailability(1);\n sourceFile = null;\n }\n }", "title": "" }, { "docid": "ef57e2240c76518bf798c8a27a498e84", "score": "0.6381207", "text": "@FXML\n void onClearImageAction() {\n imageState.imageFileList.clear();\n imageState.fileImageContainerHashMap.clear();\n imageState.imageWrapperList.clear();\n\n messaging.postMessage(SubjectEnum.OnImageFileListCleared, true);\n\n this.onImageFileListChanged();\n }", "title": "" }, { "docid": "3cd772a414c5719e1547e6db456121bd", "score": "0.6366608", "text": "@Override\n public void onChanged(@Nullable List<Image> images) {\n if (images != null) {\n System.out.println(\"AddEdit: noteImages: \" + images.size());\n listImages = new ArrayList<>(images);\n }\n }", "title": "" }, { "docid": "2e5dc2fc3c67656278d181df850373f6", "score": "0.633299", "text": "private void notifyPhotosSelected() {\n List<PickerBitmap> selectedFiles = mSelectionDelegate.getSelectedItemsAsList();\n Collections.sort(selectedFiles);\n Uri[] photos = new Uri[selectedFiles.size()];\n int i = 0;\n for (PickerBitmap bitmap : selectedFiles) {\n photos[i++] = bitmap.getUri();\n }\n\n executeAction(\n PhotoPickerListener.PhotoPickerAction.PHOTOS_SELECTED, photos, ACTION_PHOTO_PICKED);\n }", "title": "" }, { "docid": "e7371cafd602029a83b678fb73101fb9", "score": "0.62880945", "text": "private void SetSelection(java.awt.event.MouseEvent evt, int index) {\n currentIndex = index;\n File firstImage = (File) selectedFiles.get(index);\n BufferedImage image = multipleImageAddHelper.getPreview(firstImage);\n jLabel3.setText(firstImage.getPath());\n for (int x = 0; x < jFileListPanel.length; x++) {\n jFileListPanel[x].setBackground(new java.awt.Color(51, 51, 51));\n\n }\n jFileListPanel[index].setBackground(new java.awt.Color(255, 255, 153));\n RescaleImage previewImage = new RescaleImage();\n BufferedImage result = previewImage.RescaleImage(multipleImageAddHelper, image, 90, 120);\n ImageIcon i2i = new ImageIcon(result);\n ImagePanel.setIcon(i2i);\n jPanel7.repaint();\n jPanel7.revalidate();\n\n }", "title": "" }, { "docid": "8e7bced7224eb6259043ae744b70762e", "score": "0.6275236", "text": "public void resetImages()\n {\n synchronized (this)\n {\n myImageGroup = null;\n }\n }", "title": "" }, { "docid": "efa19082ac0f98600efc32558cee3eff", "score": "0.62533575", "text": "private void setImageDone() {\n if (MAX_ITEM_COUNT <= mCounter) {\n return;\n }\n\n int resourceId = 0;\n switch (mCounter) {\n case 0:\n resourceId = R.drawable.recording_1_white;\n break;\n case 1:\n resourceId = R.drawable.recording_2_white;\n break;\n case 2:\n resourceId = R.drawable.recording_3_white;\n break;\n case 3:\n resourceId = R.drawable.recording_4_white;\n break;\n case 4:\n resourceId = R.drawable.recording_5_white;\n break;\n }\n\n mViewArray[mCounter].setBackgroundResource(R.drawable.recording_step_done);\n mViewArray[mCounter].setImageResource(resourceId);\n }", "title": "" }, { "docid": "61d7e0accafbeb5c35e9da8069201fca", "score": "0.62483996", "text": "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif (imagesListModel.size() <= 1) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdeleteFromList(imagesList.getSelectedIndex());\n\t\t}", "title": "" }, { "docid": "bc4ca0677b2d086b942c52e25c757cbe", "score": "0.6185881", "text": "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tchosen = tempb.photoType;\n\t\t\t\t\tif(temp != null){\n\t\t\t\t\t\ttemp.setChoose();\n\t\t\t\t\t\ttemp = tempb;\n\t\t\t\t\t}else{\n\t\t\t\t\t\ttemp = tempb;\n\t\t\t\t\t}\n\t\t\t\t\ttempb.setChoose();\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "1f922ada74d55860b51ccc607364055d", "score": "0.6131695", "text": "public void onClick(View v) {\n final int len = mThumbnailsselection.length;\n int cnt = 0;\n String selectImages = \"\";\n Set<String> values = new HashSet<String>();\n for (int i =0; i<len; i++)\n {\n if (mThumbnailsselection[i]){\n cnt++;\n selectImages = selectImages + mArrPath[i] + \"|\";\n values.add(mArrPath[i]);\n }\n }\n if (cnt == 0){\n Toast.makeText(getApplicationContext(),\n \"Please select at least one image\",\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"You've selected Total \" + cnt + \" image(s).\",\n Toast.LENGTH_LONG).show();\n Log.d(\"SelectedImages\", selectImages);\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(AndroidCustomGalleryActivity.this);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putStringSet(SELECTED_IMAGE_SET, values);\n editor.apply();\n finish();\n }\n }", "title": "" }, { "docid": "1ad43531da31631a3edd2dcf272d2c28", "score": "0.6125693", "text": "private void Done(java.awt.event.ActionEvent evt, WaterMarkGUI mainpanel, JTextField jTextField3) {\n multipleImageAddHelper.setCompleteImageList(0);\n if (!selectedFiles.isEmpty()) {\n multipleImageAddHelper.getMainProgressBar().setValue(0);\n mainpanel.inputFileList = new ArrayList();\n mainpanel.inputFileList.addAll(selectedFiles);\n jTextField3.setText(multipleImageAddHelper.getProperty(\"message.MultiImageAdd.success\"));\n jTextField3.setToolTipText(jTextField3.getText());\n multipleImageAddHelper.setInputParentFolderPath(null);\n multipleImageAddHelper.setInputFiles(mainpanel.inputFileList);\n mainpanel.jPanel11.removeAll();\n mainpanel.setFileList();\n this.dispose();\n multipleImageAddHelper.setEnable(multipleImageAddHelper.getMainFrame());\n } else {\n javax.swing.JOptionPane.showMessageDialog(jPanel1, multipleImageAddHelper.getProperty(\"message.warning.imageFilter\"));\n }\n }", "title": "" }, { "docid": "02339b5e6f0b121603766d400df0e0fc", "score": "0.611717", "text": "@Override\n public void onChanged(@Nullable List<Image> images) {\n if (images != null) {\n System.out.println(\"AddEdit: noteImages: \" + images.size());\n listImages = new ArrayList<>(images);\n for (Image i : listImages) {\n imageTempViewModel.insert(new ImageTemp(i.getTitle(), i.getNote_id()));\n }\n }\n }", "title": "" }, { "docid": "79d4c2678db44d9723b093c7d2efc586", "score": "0.6102773", "text": "@Override\n public void onRemovePictureChosen() {\n mEditor.setPhotoEntry(null);\n\n // Prevent bitmap from being restored if rotate the device.\n // (only if we first chose a new photo before removing it)\n mUpdatedPhotos.remove(String.valueOf(mRawContactId));\n bindEditors();\n }", "title": "" }, { "docid": "960b709072250bf4daa8299fb845b6f6", "score": "0.6100685", "text": "public void getAllImages() {\n imageList.clear();\n Cursor cursor = getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, projection, null, null, null);\n while (cursor.moveToNext()) {\n @SuppressLint(\"Range\") String absolutePathOfImage = cursor.getString(cursor.getColumnIndex(MediaStore.MediaColumns.DATA));\n\n boolean isSelected = false;\n for (String name : selectedImageList) {\n if (absolutePathOfImage.equals(name)) {\n isSelected = true;\n }\n }\n\n ImageModel ImageModel = new ImageModel();\n ImageModel.setImage(absolutePathOfImage);\n ImageModel.setSelected(isSelected);\n imageList.add(ImageModel);\n }\n cursor.close();\n }", "title": "" }, { "docid": "23bfef36ebf481a7891e647554770bc4", "score": "0.6062617", "text": "private void Delete(java.awt.event.ActionEvent evt) {\n if (!selectedFiles.isEmpty()) {\n selectedFiles.remove(currentIndex);\n jPanel3.removeAll();\n jPanel3.repaint();\n jPanel3.revalidate();\n ImagePanel.setIcon(null);\n ImagePanel.revalidate();\n ImagePanel.repaint();\n setFileList();\n }\n if (selectedFiles.isEmpty()) {\n jButton1.setText(\"ADD\");\n }\n }", "title": "" }, { "docid": "242b2f271315a7a9428b98d4845f6990", "score": "0.6057376", "text": "protected void imageClicked(int position) {\n\t\tif (selectedImages.size() < 5) {\r\n\t\t\tif (!selectedImages.contains(_filePaths.get(position))) {\r\n\t\t\t\tselectedImages.add(_filePaths.get(position));\r\n\t\t\t} else {\r\n\t\t\t\tselectedImages.remove(_filePaths.get(position));\r\n\t\t\t}\r\n\t\t} else if (selectedImages.size() == 5) {\r\n\t\t\tselectedImages.add(_filePaths.get(position));\r\n\t\t\tSystem.out.println(selectedImages.get(position));\r\n\t\t\tfragment.isAllImagesSelected(selectedImages);\r\n\t\t} else {\r\n\t\t\tfragment.isAllImagesSelected(selectedImages);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb85d53a076c2dd9a72bf67430aecbfe", "score": "0.6017651", "text": "private void updateClearAllButtonState() {\n if (imageState.imageFileList.size() == 0) {\n NodeUtil.setNodeVisibility(this.clearAllButton, false);\n } else {\n NodeUtil.setNodeVisibility(this.clearAllButton, true);\n }\n }", "title": "" }, { "docid": "7f62c21a72a41671f96ca34309de2f65", "score": "0.5998025", "text": "public void act() \n {\n World pw = getWorld();\n \n if(Greenfoot.mousePressed(this) && SelectModeButton.modeFlag==true)\n {\n List leftImage = pw.getObjects(LeftImage.class);\n List rightImage = pw.getObjects(RightImage.class);\n List middleImage = pw.getObjects(MiddleImage.class);\n pw.removeObjects(rightImage);\n pw.removeObjects(middleImage);\n pw.removeObjects(leftImage);\n pw.addObject(new LeftImage(),320,535);\n pw.addObject(new MiddleImage(),500,535);\n \n } \n }", "title": "" }, { "docid": "177d974914da76bc6c983427950644e3", "score": "0.59882396", "text": "private void setImage() {\n\n for (int i = 0; i < selImageList.size(); i++) {\n\n File file = new File(selImageList.get(i).path);\n\n Luban.get(this)\n .load(file) //传人要压缩的图片\n .putGear(Luban.THIRD_GEAR) //设定压缩档次,默认三挡\n .setCompressListener(new OnCompressListener() { //设置回调\n\n @Override\n public void onStart() {\n //TODO 压缩开始前调用,可以在方法内启动 loading UI\n\n// Log.e(\"onStart\", \"onStart\");\n }\n\n @Override\n public void onSuccess(File file) {\n //TODO 压缩成功后调用,返回压缩后的图片文件\n files.add(file);\n// Log.e(\"onSuccess\", \"onSuccess\");\n }\n\n @Override\n public void onError(Throwable e) {\n //TODO 当压缩过去出现问题时调用\n }\n }).launch(); //启动压缩\n\n\n }\n\n }", "title": "" }, { "docid": "88c9b96c6b1dcef5508f8f317cc008d1", "score": "0.59523886", "text": "private void discardImageChange() {\n if (mEdit.getTag().toString().trim().equalsIgnoreCase(\"1\") && photoFlag) {\n if (initialImgFlag == 1) {\n flag = 1;\n setThumbnailAvailability(1);\n sourceFile = new File(DMApplication.DEFAULT_DIR + \"/Dictations/\" + mDictCard.getSequenceNumber() + \"/\" + TEMP_IMAGE + \".jpg\");\n if (sourceFile.exists())\n sourceFile.delete();\n } else {\n sourceFile = new File(DMApplication.DEFAULT_DIR + \"/Dictations/\" + mDictCard.getSequenceNumber() + \"/\" + TEMP_IMAGE + \".jpg\");\n if (sourceFile.exists())\n sourceFile.delete();\n if (mDictCard.getIsThumbnailAvailable() != 1) {\n flag = 0;\n setThumbnailAvailability(0);\n }\n sourceFile = null;\n }\n }\n }", "title": "" }, { "docid": "014e7b0faac172afc2d74487c4266df5", "score": "0.5899591", "text": "public void resetImage() {\n currentImage.reset();\n }", "title": "" }, { "docid": "c40bfc96fe2db4211d23a415d3636669", "score": "0.586876", "text": "public void setImagePickerList() {\n for (int i = 0; i < resImg.length; i++) {\n ImageModel imageModel = new ImageModel();\n imageModel.setResImg(resImg[i]);\n imageModel.setTitle(title[i]);\n imageList.add(i, imageModel);\n }\n imageAdapter.notifyDataSetChanged();\n }", "title": "" }, { "docid": "55e702cd18ff64e76c0fcec9436fd034", "score": "0.58674824", "text": "public synchronized void resetPictureList() {\n pictureList = null;\n }", "title": "" }, { "docid": "57ea4ca68abf02a9003fac732c5fd782", "score": "0.58581764", "text": "public void onPickImageMultipleInfinite(View view) {\n\n }", "title": "" }, { "docid": "2a5036f48a7a964c2645eb3638023edc", "score": "0.58239514", "text": "private void hardUpdate() {\r\n for (ImageFile image : this.imageFiles) {\r\n image.hardUpdate(this.tagManager, this.masterLog);\r\n }\r\n }", "title": "" }, { "docid": "3215c9ff9317839ef86ba613194793c9", "score": "0.57983506", "text": "private void undoMItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_undoMItemActionPerformed\r\n newCard1.drawingArea1.images.remove(newCard1.drawingArea1.images.size() - 1);\r\n newCard1.drawingArea1.repaint();\r\n }", "title": "" }, { "docid": "7117daafb9e0a96eef0095bf001ba381", "score": "0.5789038", "text": "private void tagImageAsFavorite() {\n\n mImage.setFavorite(!mImage.isFavorite());\n\n int result = DataBaseManagerWrap.getDataBaseManager(getActivity()).updateImage(mImage);\n // If the result is > 0, update the view\n if (result > 0) {\n checkAsFavorite();\n sendResultToListener();\n // If the result is <= 0 (update failed) return image to the older state\n } else {\n mImage.setFavorite(!mImage.isFavorite());\n }\n }", "title": "" }, { "docid": "32e5100b7ec6d2f16deb26aafe34709c", "score": "0.5751963", "text": "@Override\r\n\tpublic void resetShapeSelected(){\r\n\t\tfor (shapeIt.first(); !shapeIt.isDone(); shapeIt.next()){\r\n\t\t\tshapeIt.currentItem().resetShapeSelected();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "68f267d2e3cb4b0100e9f33014a458ea", "score": "0.57472193", "text": "private void setFileList() {\n if (!selectedFiles.isEmpty()) {\n jFileListPanel = new javax.swing.JPanel[selectedFiles.size()];\n jFileListLabel = new javax.swing.JLabel[selectedFiles.size()];\n jPanel3.setLayout(new BoxLayout(jPanel3, BoxLayout.Y_AXIS));\n int i = 0;\n multipleImageAddHelper.setInputFilesCaption(new ArrayList());\n for (Iterator it = selectedFiles.iterator(); it.hasNext();) {\n String textval = \"\";\n String texts[] = new String[1];\n multipleImageAddHelper.getInputFilesCaption().add(texts);\n jFileListPanel[i] = new JPanel();\n jFileListPanel[i].setBackground(new java.awt.Color(51, 51, 51));\n jFileListPanel[i].setLayout(new BoxLayout(jFileListPanel[i], BoxLayout.Y_AXIS));\n jFileListLabel[i] = new JLabel();\n File inputfile = (File) it.next();\n String text = inputfile.getPath();\n jFileListLabel[i].setText(text);\n jFileListLabel[i].setBackground(new java.awt.Color(51, 51, 51));\n jFileListLabel[i].setForeground(new java.awt.Color(255, 153, 0));\n final int index = i;\n jFileListLabel[i].addMouseListener(new java.awt.event.MouseAdapter() {\n\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n SetSelection(evt, index);\n }\n });\n jFileListPanel[i].add(jFileListLabel[i]);\n jPanel3.add(jFileListPanel[i]);\n jPanel3.revalidate();\n jPanel3.repaint();\n i++;\n }\n jFileListPanel[0].setBackground(new java.awt.Color(255, 255, 153));\n File firstImage = (File) selectedFiles.get(0);\n BufferedImage image = multipleImageAddHelper.getPreview(firstImage);\n jLabel3.setText(firstImage.getPath());\n RescaleImage previewImage = new RescaleImage();\n BufferedImage result = previewImage.RescaleImage(multipleImageAddHelper, image, 90, 120);\n ImageIcon i2i = new ImageIcon(result);\n ImagePanel.setIcon(i2i);\n jPanel7.repaint();\n jPanel7.revalidate();\n\n }\n }", "title": "" }, { "docid": "e88efc2d1d7e956e00c581b3f51de536", "score": "0.57452124", "text": "private void imageButtonActionPerformed(java.awt.event.ActionEvent evt)\n {// GEN-FIRST:event_imageButtonActionPerformed\n if (imageButton.isSelected())\n currentTool = IMAGE;\n }", "title": "" }, { "docid": "d5beb9d9eb2f57e1e953a0b4597ff187", "score": "0.5725733", "text": "public void updateImage() {\n\t\timg = createImage(gv);\n\t}", "title": "" }, { "docid": "d209e307aeba69cf47060d7830b96ca9", "score": "0.5724241", "text": "protected void onMyImagesForm_MyImagesMultiListAction(Component c, ActionEvent event) {\n\t\tsuper.onMyImagesForm_MyImagesMultiListAction(c, event);\n\n\t\tSystem.out.println(\"findMyImagesMultiList().getSelectedItem(): \" + findMyImagesMultiList().getSelectedItem());\n\t\tSystem.out.println(\"findMyImagesMultiList().getSelectedIndex():\" + findMyImagesMultiList().getSelectedIndex());\n\t\tint selectedIndex = findMyImagesMultiList().getSelectedIndex();\n\n\t\tif (selectedIndex == 0) {\n\t\t\tDisplay.getInstance().vibrate(vibrationTime);\n\t\t\tshowForm(\"Load Photo Form\", null);\n\t\t} else if (selectedIndex == 1) {\n\t\t\tDisplay.getInstance().vibrate(vibrationTime);\n\t\t\tshowForm(\"Image Capture\", null);\n\t\t}\n\t}", "title": "" }, { "docid": "da6146b28d35f26c82c28faa958fdcd6", "score": "0.5711053", "text": "@Override\n public void run() {\n compare(selectedviews);\n //reset click count\n clickcount = 0;\n //reset selected views array\n selectedviews.clear();\n for (int j=0; j<12;j++){\n //make other image views clickable again\n images.get(j).setEnabled(true);\n }\n }", "title": "" }, { "docid": "502ecd33b30ce1eefbd926686941f4ce", "score": "0.57098705", "text": "private void initImageList(){\n this.imageList = Collections.unmodifiableList(Arrays.asList(\n imagePane00, imagePane10, imagePane20, imagePane30,\n imagePane01, imagePane11, imagePane21, imagePane31,\n imagePane02, imagePane12, imagePane22, imagePane32,\n imagePane03, imagePane13, imagePane23, hiddenImagePane\n ));\n }", "title": "" }, { "docid": "8d2d09d0ce200dc5cd755d2f2b54c6ba", "score": "0.57081693", "text": "public void reset() {\n\t\tthis.image = null;\n\t\tsuper.updateUI();\n\t}", "title": "" }, { "docid": "6f9b6daf906eb5323f7223791e303dd0", "score": "0.5706183", "text": "public void selectImage(int position) {\n // Check before add new item in ArrayList;\n if (!selectedImageList.contains (imageList.get (position).getImage ())) {\n imageList.get (position).setSelected (true);\n selectedImageList.add (0, imageList.get (position).getImage ());\n selectedImageAdapter.notifyDataSetChanged ();\n imageAdapter.notifyDataSetChanged ();\n }\n }", "title": "" }, { "docid": "1af41ed51cea2b0e7d29aac0eaa8dea4", "score": "0.5705712", "text": "public void deselected() {\r\n\t\t\t\t\r\n\t\tGraphics graphics = canvas.getimageBufferGraphics();\r\n\t\t\r\n\t\tif (shapeOfInterest != null)\r\n\t\t{\r\n\t\t\tshapeOfInterest.draw(graphics);\r\n\t\t\tshapeOfInterest = null;\r\n\t\t\t\r\n\t\t\t/* Reset the previous selected objects to null */\r\n\t\t\tpreviousSelectedObject = null;\r\n\t\t\tPrepreviousSelectedObject = null;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Paint a white rectangle over the canvas, and redraw all shapes from list */\r\n\t\t\tcanvas.refresh();\t\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b527a0972904672aad3375eea6da7cc1", "score": "0.57054156", "text": "@Override\n public void handleEvent(Event event) {\n\n switch (event.type) {\n case SWT.MouseEnter:\n break;\n\n case SWT.MouseDown:\n\n diffX[0] = 0;\n diffY[0] = 0;\n\n final ListIterator<ImageWrapper> iterator = getWrappers().listIterator(getWrappers().size());\n while (iterator.hasPrevious()) {\n final ImageWrapper wraper = iterator.previous();\n\n final ImageData imageData = wraper.getImage().getImageData();\n Rectangle rectangle = new Rectangle(wraper.getX(), wraper.getY(), imageData.width, imageData.height);\n\n //choose only images in this coordinates\n if (rectangle.contains(event.x, event.y)) {\n\n if (!selected) {\n\n //calculete difference between image coordinates\n //and position of mouse cursor (event) on destination image\n diffX[0] = event.x - wraper.getX();\n diffY[0] = event.y - wraper.getY();\n\n //set image as selected\n wraper.setSelected(true);\n selected = true;\n\n //swap select image to end of list\n Collections.swap(wrappers, wrappers.indexOf(wraper), wrappers.size() - 1);\n\n //notify listeners about 'select' event\n for (OnCanvasImageListener callback : this.listeners) {\n if (callback != null) callback.onCanvasSelected(wraper);\n }\n } else {\n\n //select image of not selected\n wraper.setSelected(false);\n selected = false;\n\n //notify listeners about 'deselect' event\n for (OnCanvasImageListener callback : this.listeners) {\n if (callback != null) callback.onCanvasDeselect(wraper);\n }\n }\n\n return;\n }\n\n\n }\n break;\n\n case SWT.MouseMove:\n\n if (selected) {\n final ListIterator<ImageWrapper> listIterator = getWrappers().listIterator(getWrappers().size());\n\n //choose selected image\n while (listIterator.hasPrevious()) {\n final ImageWrapper wraper = listIterator.previous();\n if (wraper.isSelected()) {\n\n //set new coordinates for selected image\n wraper.setX(event.x - diffX[0]);\n wraper.setY(event.y - diffY[0]);\n\n //redraw canvas\n ImageCanvas.this.redraw();\n return;\n }\n }\n }\n break;\n\n case SWT.MouseUp:\n\n selected = false;\n for (ImageWrapper wraper : getWrappers()) {\n if (wraper.isSelected()) {\n wraper.setSelected(false);\n wraper.setX(event.x - diffX[0]);\n wraper.setY(event.y - diffY[0]);\n ImageCanvas.this.redraw();\n\n //notify listeners about 'deselect' event\n for (OnCanvasImageListener callback : this.listeners) {\n if (callback != null) callback.onCanvasDeselect(wraper);\n }\n }\n }\n break;\n\n case SWT.MouseExit:\n\n selected = false;\n for (ImageWrapper wraper : getWrappers()) {\n if (wraper.isSelected()) {\n wraper.setSelected(false);\n wraper.setX(event.x - diffX[0]);\n wraper.setY(event.y - diffY[0]);\n ImageCanvas.this.redraw();\n\n //notify listeners about 'deselect' event\n for (OnCanvasImageListener callback : this.listeners) {\n if (callback != null) callback.onCanvasDeselect(wraper);\n }\n }\n }\n break;\n\n }\n }", "title": "" }, { "docid": "21357d855e62ab08c5299cea49196629", "score": "0.5701398", "text": "void updateImage() {\n if(color.equals(GamePieceColor.RED) && !isKing) {\n imagePiece = new ImageIcon(\"res\\\\RedChecker.png\");\n imagePieceSelected = new ImageIcon(\"res\\\\RedChecker_Selected.png\");\n } else if (color.equals(GamePieceColor.BLACK) && !isKing){\n imagePiece = new ImageIcon(\"res\\\\BlackChecker.png\");\n imagePieceSelected = new ImageIcon(\"res\\\\BlackChecker_Selected.png\");\n } else if (color.equals(GamePieceColor.RED) && isKing) {\n imagePiece = new ImageIcon(\"res\\\\RedKing.png\");\n imagePieceSelected = new ImageIcon(\"res\\\\RedKing_Selected.png\");\n } else {\n imagePiece = new ImageIcon(\"res\\\\BlackKing.png\");\n imagePieceSelected = new ImageIcon(\"res\\\\BlackKing_Selected.png\");\n }\n }", "title": "" }, { "docid": "8b055e023c9f3c59d1d0095ec318affd", "score": "0.56987196", "text": "public void setImg(){\n\t\tprogress();\n\t\t\n\t\trandImgOp = arrayrandom(4,4);\n\n\t\tquestionNo2++;\n\t\tString strNo2;\n\t\t\n\t\tstrNo = String.valueOf(randImg.get(questionNo2-1));\n\t\t//JOptionPane.showMessageDialog(null, \"Fuck Yeah\");\n\t\trb1.setVisible(true);\n\t\trb2.setVisible(true);\n\t\trb3.setVisible(true);\n\t\trb4.setVisible(true);\n\t\tbtnGrp2.clearSelection();\n\t\t\n\t\ttry{\n\t\t\tString query = \"select * from QImage Where rowid= '\"+strNo+\"' \";\n\t\t\tPreparedStatement pst=connection.prepareStatement(query);\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\tbyte[]imagedata = rs.getBytes(\"Question\");\n\t\t\tformat = new ImageIcon (imagedata);\n\t\t\tQ.setIcon(format);\n\t\t\t}\n\t\t\t\n\t\t\tpst.close();\n\t\t\trs.close();\n\t\t}\n\t\tcatch (Exception ef){\n\t\tef.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tstrNo2 = String.valueOf(randImgOp.get(0));\n\t\t\tString query = \"select * from QImage Where rowid='\"+strNo+\"' \";\n\t\t\tPreparedStatement pst=connection.prepareStatement(query);\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\tbyte[]imagedata = rs.getBytes(\"Op\"+strNo2);\n\t\t\tformat = new ImageIcon (imagedata);\n\t\t\tQ1.setIcon(format);\n\t\t\t}\n\t\t\t\n\t\t\tpst.close();\n\t\t\trs.close();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tstrNo2 = String.valueOf(randImgOp.get(1));\n\t\t\tString query = \"select * from QImage Where rowid='\"+strNo+\"' \";\n\t\t\tPreparedStatement pst=connection.prepareStatement(query);\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\tbyte[]imagedata = rs.getBytes(\"Op\"+strNo2);\n\t\t\tformat = new ImageIcon (imagedata);\n\t\t\tQ2.setIcon(format);\n\t\t\t}\n\t\t\t\n\t\t\tpst.close();\n\t\t\trs.close();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tstrNo2 = String.valueOf(randImgOp.get(2));\n\t\t\tString query = \"select * from QImage Where rowid='\"+strNo+\"' \";\n\t\t\tPreparedStatement pst=connection.prepareStatement(query);\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\tbyte[]imagedata = rs.getBytes(\"Op\"+strNo2);\n\t\t\tformat = new ImageIcon (imagedata);\n\t\t\tQ3.setIcon(format);\n\t\t\t}\n\t\t\t\n\t\t\tpst.close();\n\t\t\trs.close();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tstrNo2 = String.valueOf(randImgOp.get(3));\n\t\t\tString query = \"select * from QImage Where rowid='\"+strNo+\"' \";\n\t\t\tPreparedStatement pst=connection.prepareStatement(query);\n\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\tbyte[]imagedata = rs.getBytes(\"Op\"+strNo2);\n\t\t\tformat = new ImageIcon (imagedata);\n\t\t\tQ4.setIcon(format);\n\t\t\t}\n\t\t\t\n\t\t\tpst.close();\n\t\t\trs.close();\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn;\n\t}", "title": "" }, { "docid": "99a3bb84b2716f608bd20d71c99eac19", "score": "0.5685933", "text": "private void onRevert() {\n\t\tTracker.recordTag( \"feather: reset image\" );\n\n\t\tLocalDataService service = mMainController.getService( LocalDataService.class );\n\t\tloadImage( service.getSourceImageUri() );\n\t}", "title": "" }, { "docid": "7882cca65924d244b6c62e8753422d56", "score": "0.5672149", "text": "@FXML\n\tpublic void contextTableImage(ActionEvent event) {\n\t\tFile file = chooseFile();\n\t\tif (file != null) {\n\t\t\ttry {\n\t\t\t\tString fileName = file.toString().replace(userDir, \"\");\n\t\t\t\tip = new ImageProcessing(fileName);\n\t\t\t\tList<Minutiae> sortedList = ip.getFinalMinutiaeSet();\n\t\t\t\tString candidateSignature = minutiaeListToString(sortedList);\n\t\t\t\tSystem.out.println(\"Candidate image signature: \" + candidateSignature);\n\t\t\t\tPerson p = new Person();\n\t\t\t\tp.setId(selectedId);\n\t\t\t\tp.setFirstname(editFirstname.getText());\n\t\t\t\tp.setLastname(editLastname.getText());\n\t\t\t\tp.setFinger(candidateSignature);\n\t\t\t\tp.setOccupation(editOccupation.getText());\n\t\t\t\tp.setPassword(editPassword.getText());\n\t\t\t\tdatabase.update(p);\n\t\t\t\trefresh();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + e);\n\t\t\t\tSystem.out.println(\"Image file reading error\");\n\t\t\t}\n\t\t\trefresh();\n\t\t}\n\t}", "title": "" }, { "docid": "ccc7cab0d724e8f820a943a1ee1e8731", "score": "0.5661722", "text": "@Override\n public void actionPerformed(ActionEvent e) {\n if (urlBtn.isSelected()) {\n String userInput = JOptionPane.showInputDialog(\"Input the URL of the image\");\n if (userInput == null) {\n userInput = \"\";\n }\n pictureContent = userInput;\n } else if (dataBtn.isSelected()) {// get picture from base 64 string or a local image file\n int o = JOptionPane.showConfirmDialog(null,\n \"Select the image from local files?\",\n \"Edit Picture Content\", JOptionPane.YES_NO_OPTION);\n\n if (o == JOptionPane.OK_OPTION) {// get from local image file\n // loads the image from a local file\n JFileChooser chooser = new JFileChooser();\n int option = chooser.showOpenDialog(null);\n if (option == JFileChooser.APPROVE_OPTION) {\n File file = chooser.getSelectedFile();\n BufferedImage image = null;\n try {\n image = ImageIO.read(file);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n // encode the image to a base 64 string\n pictureContent = encodeImage(image);\n }\n } else if (o == JOptionPane.NO_OPTION) {// from a base 64 string\n String userInput = JOptionPane.showInputDialog(\"Input a base 64 string\");\n if (userInput == null) {\n userInput = \"\";\n }\n pictureContent = userInput;\n }\n }\n\n }", "title": "" }, { "docid": "64cad53a6d35bce2045075edab896dd7", "score": "0.5659796", "text": "public void checkImage(String filePath) {\n if (!selectedImageList.contains (filePath)) {\n for (int pos = 0; pos < imageList.size (); pos++) {\n if (imageList.get (pos).getImage () != null) {\n if (imageList.get (pos).getImage ().equalsIgnoreCase (filePath)) {\n imageList.remove (pos);\n }\n }\n }\n addImage (filePath);\n }\n }", "title": "" }, { "docid": "7447ae98badd8fafc130c7292b8844f0", "score": "0.56560373", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmModel.clearImage();\n\t\t\t}", "title": "" }, { "docid": "4afe57b585f4c345cf6dabfa41f45836", "score": "0.5651059", "text": "public void setImageSelected(File file) {\n ((ImgButtonModel)model).setImageSelected(file);\n }", "title": "" }, { "docid": "ca2bd38c938c21c2045639436c50d655", "score": "0.5643838", "text": "public void reset() {\n\t\t//Reset the variables\n\t\tthis.running = false;\n\t\tthis.currentImage = 0;\n\t\tthis.setImage(this.images[0]);\n\t}", "title": "" }, { "docid": "6633fbd91113b0ea48a1e929b9cde06c", "score": "0.5639281", "text": "private synchronized void onFinishedLoadingImage() {\n GameLogic.PeopleLogic peopleLogic = gameLogic.getPeopleLogic();\n if (++mNumberOfImagesFinishedLoading == peopleLogic.numberOfPeople()) {\n container.setVisibility(View.VISIBLE);\n showPrompt(true);\n animateFacesIn();\n showProgressBar(false);\n if (gameLogic.fullyRevealItems()) {\n revealNames(mNames, peopleLogic, true);\n } else {\n hideNames(mNames);\n }\n }\n }", "title": "" }, { "docid": "1fa6c0d6d3484528902bf36ff831e107", "score": "0.5637043", "text": "@Override\n public void handle(final MouseEvent mouseEvent) {\n try {\n i1.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i2.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i3.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n i4.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n i5.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n staar=\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/2.jpg\";\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n }", "title": "" }, { "docid": "3ac10312e9af55d6785e6fe82ee99017", "score": "0.56295246", "text": "private void ibImgSucursalClic() {\n takePhoto();\n }", "title": "" }, { "docid": "967331f6b054edd296e82b4c7a195d9f", "score": "0.5627821", "text": "public void changeHotPictures(List<Photo> pl) {\n\t}", "title": "" }, { "docid": "42bc8fb819f613a5bc3885e41cfd6036", "score": "0.56240904", "text": "public void updateImage() {\r\n\t\tip.updateImage();\r\n\t}", "title": "" }, { "docid": "5d739b7970556e6703cc909a426e459d", "score": "0.5622411", "text": "public void actionPerformed(ActionEvent e) {\r\n image.setIcon(ResizeImage(\"\"));\r\n image2.setIcon(ResizeImage(\"\"));\r\n stat_path = \"\";\r\n stat_name = \"\";\r\n }", "title": "" }, { "docid": "9d0752aa93e0090ab4d834d7e54430e4", "score": "0.56219107", "text": "private void releasedImage()\n {\n doneDrawing = true;\n\n SipCommFileChooser chooser = GenericFileDialog.create(\n WhiteboardFrame.this,\n \"Choose image...\",\n SipCommFileChooser.LOAD_FILE_OPERATION);\n\n File file = chooser.getFileFromDialog();\n WhiteboardFileFilter filter =\n new WhiteboardFileFilter(\"jpg\", \"JPEG Files (*.jpg)\");\n\n chooser.addFilter(filter);\n\n if (file != null)\n {\n try\n {\n lastDir = file.getParentFile();\n\n FileInputStream in = new FileInputStream(file);\n byte[] buffer;\n\n try\n {\n buffer = new byte[in.available()];\n in.read(buffer);\n }\n finally\n {\n in.close();\n }\n\n WhiteboardShapeImage image\n = new WhiteboardShapeImage(\n id(),\n new WhiteboardPoint(drawX, drawY),\n originWidth, originHeight,\n buffer);\n\n appendAndSend(image);\n }\n catch (IOException ex)\n {\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "9b88c775c00975cb8054e9860ad96544", "score": "0.56160665", "text": "public void checkImage(String filePath) {\n if (!selectedImageList.contains(filePath)) {\n for (int pos = 0; pos < imageList.size(); pos++) {\n if (imageList.get(pos).getImage() != null) {\n if (imageList.get(pos).getImage().equalsIgnoreCase(filePath)) {\n imageList.remove(pos);\n }\n }\n }\n addImage(filePath);\n }\n }", "title": "" }, { "docid": "a4733e762011c1a02af524d0be62d80b", "score": "0.5608914", "text": "public void playerImageChange( ) {\r\n\r\n String preview = getPreviewImage( );\r\n if( preview != null ) {\r\n for( SceneDataControl scene : Controller.getInstance( ).getSelectedChapterDataControl( ).getScenesList( ).getScenes( ) ) {\r\n scene.imageChangeNotify( preview );\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a44d31ea146a36925d4d96cce56257a7", "score": "0.56082946", "text": "public boolean resizeImages() {\n\n File directory = createDirectory(images.get(0));\n for (File file : images) {\n try {\n //Read image\n BufferedImage image = ImageIO.read(file);\n //Change image size\n image = changeImageSize(image, width, height);\n //Path for new resized image\n String path = directory.getAbsolutePath() + File.separator + file.getName();\n\n //Initialization writer\n ImageWriter writer = ImageIO.getImageWritersByFormatName(\"jpg\").next();\n ImageWriteParam param = writer.getDefaultWriteParam();\n param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);\n param.setCompressionQuality(1.0F);\n ImageOutputStream ios = ImageIO.createImageOutputStream(new File(path));\n writer.setOutput(ios);\n\n //Write file in directory\n writer.write(null, new IIOImage(image, null, null), param);\n\n //Close output stream\n ios.close();\n\n //Loading animation\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n try {\n controller.statusLabel.setText(\"Processing image \" + (images.indexOf(file)+1));\n }\n catch (Exception e){\n System.out.println(\"Platform runLater exception\");\n }\n }\n });\n\n\n } catch (IOException e) {\n return false;\n }\n }\n\n //Prepare UI for next action\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n try {\n controller.selectImages.setDisable(false);\n controller.heightField.setDisable(false);\n controller.widthField.setDisable(false);\n controller.imageCount.setText(\"No images\");\n controller.statusLabel.setText(\"Images resized successfully\");\n }\n catch (Exception e){\n System.out.println(\"Platform runLater exception\");\n }\n }\n });\n\n return true;\n }", "title": "" }, { "docid": "8004aff2eaaf8c91fa189eccd3f8012b", "score": "0.56061447", "text": "@Override\n public void handle(final MouseEvent mouseEvent) {\n try {\n i1.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i2.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i3.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i4.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n i5.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n staar=\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/3.jpg\";\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n }", "title": "" }, { "docid": "ed110beccb8eeb308ebf23003c8698c2", "score": "0.5605713", "text": "void updateImage(Image image);", "title": "" }, { "docid": "b1bd6eed5ff0130a31cc384253802d28", "score": "0.5603924", "text": "private void updateSurroundingImages() {\n\n if (mSelectedIndex > 0) {\n leftImageButton = new ImageButton(getActivity());\n leftImageButton.setBackgroundColor(getResources().getColor(android.R.color.transparent));\n leftImageButton.setLayoutParams(getEnlargedImageLayoutParams());\n leftImageButton.setPadding(50, 50, 50, 50);\n imageLoader.displayImage(mImages.get(mSelectedIndex - 1).getImageURL(), leftImageButton, options);\n leftImageButton.setX(-screenWidth);\n leftImage = mImages.get(mSelectedIndex - 1);\n } else {\n leftImageButton = null;\n leftImage = null;\n }\n\n if (mSelectedIndex < mImages.size() - 1) {\n rightImageButton = new ImageButton(getActivity());\n rightImageButton.setBackgroundColor(getResources().getColor(android.R.color.transparent));\n rightImageButton.setLayoutParams(getEnlargedImageLayoutParams());\n rightImageButton.setPadding(50, 50, 50, 50);\n imageLoader.displayImage(mImages.get(mSelectedIndex + 1).getImageURL(), rightImageButton, options);\n rightImageButton.setX(2 * screenWidth);\n rightImage = mImages.get(mSelectedIndex + 1);\n } else {\n rightImageButton = null;\n rightImage = null;\n }\n\n if (mSelectedIndex >= numColumns) {\n upImageButton = new ImageButton(getActivity());\n upImageButton.setBackgroundColor(getResources().getColor(android.R.color.transparent));\n upImageButton.setLayoutParams(getEnlargedImageLayoutParams());\n upImageButton.setPadding(50, 50, 50, 50);\n imageLoader.displayImage(mImages.get(mSelectedIndex - numColumns).getImageURL(), upImageButton, options);\n upImageButton.setY(-screenHeight);\n upImage = mImages.get(mSelectedIndex - numColumns);\n } else {\n upImageButton = null;\n upImage = null;\n }\n\n if (mSelectedIndex + numColumns < mImages.size()) {\n downImageButton = new ImageButton(getActivity());\n downImageButton.setBackgroundColor(getResources().getColor(android.R.color.transparent));\n downImageButton.setLayoutParams(getEnlargedImageLayoutParams());\n downImageButton.setPadding(50, 50, 50, 50);\n imageLoader.displayImage(mImages.get(mSelectedIndex + numColumns).getImageURL(), downImageButton, options);\n downImageButton.setY(2 * screenHeight);\n downImage = mImages.get(mSelectedIndex + numColumns);\n } else {\n downImageButton = null;\n downImage = null;\n }\n }", "title": "" }, { "docid": "d9f7cecf6c0c820eecc558e7710dcb92", "score": "0.56029046", "text": "public void selectImage(int position) {\n // Check before add new item in ArrayList;\n if (!selectedImageList.contains(imageList.get(position).getImage())) {\n imageList.get(position).setSelected(true);\n selectedImageList.add(0, imageList.get(position).getImage());\n selectedImageAdapter.notifyDataSetChanged();\n imageAdapter.notifyDataSetChanged();\n }\n }", "title": "" }, { "docid": "b99fcb36767ce188b70450169a4cf8a5", "score": "0.5600882", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t int result = fileChooser.showOpenDialog(null);\n\t\t\t\t if(result==JFileChooser.APPROVE_OPTION){\n\t String name = fileChooser.getSelectedFile().getPath();\n\t //System.out.println(name);\n\t panel.setImage(name);\n\t panel.repaint();\n\t \n\t \n\t \n\t }\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "9d07a08c7aca380832ebe313ad3c4ab2", "score": "0.5600844", "text": "@Override\n\tpublic void update(Images Images) {\n\t\t\n\t}", "title": "" }, { "docid": "2f78d856625c0bb57d2aaf202625d40c", "score": "0.56000245", "text": "private ArrayList<ReceiptImage> populateSavedImages(){\n\t\treturn savedImages;\n \t\n \t\n }", "title": "" }, { "docid": "61a2a6ef665bf9b440e41c36cd8d63e5", "score": "0.5596887", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tmModel.loadImage();\n\t\t\t}", "title": "" }, { "docid": "764304a36f19e65c09b9bda939dda7dc", "score": "0.5593991", "text": "public void resetTagLabels() {\n\n removeTagLabels();\n\n // array list to keep all children tagged in a selected\n // thumbnail or thumbnails\n ArrayList<Taggable> taggedComponents = new ArrayList<Taggable>();\n ArrayList<Picture> selectedPictures = mainFrame.getPicturesPanel().getSelectedPictures();\n\n tagCounter = 1;\n boolean areaInAllPictures = true;\n ArrayList<Taggable> areaList = new ArrayList<Taggable>();\n\n // if no pictures are selected\n if (selectedPictures.size() == 0) {\n // TODO: hide panel if there are no tagged pictures\n } else {\n // for every selected picture\n for (int i = 0; i < selectedPictures.size(); ++i) {\n // for every tag that exists on any selected picture\n for (int j = 0; j < selectedPictures.get(i).getTag()\n .getTaggedComponents().size(); ++j) {\n // if the tag isn't already on the temp array list\n if (!taggedComponents.contains(selectedPictures.get(i)\n .getTag().getTaggedComponents().get(j))) {\n // add tag to list\n taggedComponents.add(selectedPictures.get(i)\n .getTag().getTaggedComponents().get(j));\n }\n }\n }\n }\n\n // for every tag found in previous loop\n for (Taggable t : taggedComponents) {\n // check if tagged in all selected pictures\n\n // child tags\n boolean childInAllPictures = true;\n if (t.getType() == Settings.CHILD_TAG) {\n for (Picture p : selectedPictures) {\n\n if (!p.getTag().getTaggedComponents().contains(t)) {\n childInAllPictures = false;\n }\n }\n }\n\n // area tags\n else if (t.getType() == Settings.AREA_TAG && areaInAllPictures) {\n for (Picture p : selectedPictures) {\n if (p.getTag().isAreaSet()) {\n if (!areaList.contains(t)) {\n areaList.add(t);\n }\n } else {\n areaInAllPictures = false;\n }\n }\n }\n if (!areaInAllPictures || areaList.size() > 1) {\n areaInAllPictures = false;\n }\n\n // if this is a child tag\n if (t.getType() == Settings.CHILD_TAG) {\n // if tagged in all selected pictures create a tag label and add\n // to existing panel (if odd number of labels) or create a new\n // JPanel one line below (if even number)\n if (childInAllPictures) {\n if (tagCounter % 2 == 1) {\n currentTagPanel = new JPanel();\n currentTagPanel.add(new TagTextLabel(false, t,\n currentTagPanel, mainFrame));\n childTagPanel.add(currentTagPanel);\n validate();\n ++tagCounter;\n } else {\n currentTagPanel.add(new TagTextLabel(false, t,\n currentTagPanel, mainFrame));\n validate();\n ++tagCounter;\n }\n }\n }\n }\n\n // if area is the same in all pictures\n if (areaInAllPictures) {\n if (selectedPictures.size() > 0) {\n Taggable areaTag = selectedPictures.get(0).getTag().getArea();\n areaTagPanel.removeAll();\n areaTagPanel.revalidate();\n if (areaTag != null) {\n // add tag label to area panel\n areaTagPanel.add(new TagTextLabel(false, areaTag, areaTagPanel, mainFrame));\n }\n }\n }\n\n // check for similar date on all selected pictures\n String date = null;\n // if no pics selected\n if (selectedPictures.size() == 0) {\n // TODO: no thumnails selected, either reset texfield or\n // simply disable them until picture/s selected\n } else {\n // get the first picture's date\n Date date1 = selectedPictures.get(0).getTag().getDate();\n // for every pic see if the date is the same as the first one's\n for (Picture p : selectedPictures) {\n Date date2 = p.getTag().getDate();\n // if there are any two pictures with different dates\n if (!Library.getFormattedDate(date1).equals(\n Library.getFormattedDate(date2))) {\n // don't show date\n date = \"\";\n break;\n }\n }\n \n // if all have same dates put the date in the field\n if (date == null)\n date = Library.getFormattedDate(date1);\n\n dateTagPanel.add(new JLabel(date));\n }\n }", "title": "" }, { "docid": "07b18b139b0bab52f272b3e2faeeffef", "score": "0.5588246", "text": "@Override\n public void handle(final MouseEvent mouseEvent) {\n try {\n i1.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i2.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n i3.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n i4.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n i5.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n staar=\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/1.jpg\";\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n }", "title": "" }, { "docid": "2b27e288cd12a00b9efa0fd8fe3b3c00", "score": "0.55829704", "text": "@Override\n public void handle(final MouseEvent mouseEvent) {\n try {\n i1.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i2.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i3.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i4.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i5.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/empty.jpg\")));\n staar=\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/4.jpg\";\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n }", "title": "" }, { "docid": "822095126277c95908d756f499e343ad", "score": "0.5582184", "text": "@FXML\n private void chooseImageButtonPushed(ActionEvent event) {\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n \n //Instantiate a FileChooser object\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Open Image\");\n \n //filter for .jpg and .png\n // FileChooser.ExtensionFilter jpgFilter = new FileChooser.ExtensionFilter(\"Image File (*.jpg)\", \"*.jpg\");\n // FileChooser.ExtensionFilter pngFilter = new FileChooser.ExtensionFilter(\"Image File (*.png)\", \"*.png\");\n // fileChooser.getExtensionFilters().addAll(jpgFilter, pngFilter);\n \n //Set to the user's picture directory or user directory if not available\n String userDirectoryString = System.getProperty(\"user.home\")+\"\\\\Pictures\";\n File userDirectory = new File(userDirectoryString);\n \n //if you cannot navigate to the pictures directory, go to the user home\n if (!userDirectory.canRead())\n userDirectory = new File(System.getProperty(\"user.home\"));\n \n fileChooser.setInitialDirectory(userDirectory);\n \n //open the file dialog window\n File tmpImageFile = fileChooser.showOpenDialog(stage);\n \n if (tmpImageFile != null)\n {\n imageFile = tmpImageFile;\n \n //update the ImageView with the new image\n if (imageFile.isFile())\n {\n try\n {\n BufferedImage bufferedImage = ImageIO.read(imageFile);\n Image img = SwingFXUtils.toFXImage(bufferedImage, null);\n imageView.setImage(img);\n imageFileChanged = true;\n }\n catch (IOException e)\n {\n System.err.println(e.getMessage());\n }\n }\n }\n }", "title": "" }, { "docid": "b755ce696a45c0e1d188ba2938e4a656", "score": "0.55774105", "text": "private void chooseImage() throws IOException {\n\t\tJFileChooser chooser = new JFileChooser();\n\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t\"JPG, PNG, GIF\", \"jpg\",\"gif\",\"png\");\n\t\tchooser.setFileFilter(filter);\n\t\tint returnVal = chooser.showOpenDialog(null);\n\t\t/*if(returnVal == JFileChooser.APPROVE_OPTION){\n\t\t\tSystem.out.println(\"You chose to open this file: \" +\n\t\t\t\t\tchooser.getSelectedFile().getAbsolutePath());\n\t\t}*/\n\t\tFile imageFile = chooser.getSelectedFile();\n\t\tmyImResizer.storeImage(fileName, imageFile, identifier);\n\t\t\n\t}", "title": "" }, { "docid": "e03a1a8e09bc05c3e38df9c15e842431", "score": "0.5576919", "text": "@Override\n public void onClick(View v) {\n mImageList.clear();\n updateImage.clear();\n deleteImage.clear();\n finish();\n }", "title": "" }, { "docid": "f3a988caf583ea6b22be4f411b6f95a0", "score": "0.55757797", "text": "public void unSelectImage(int position) {\n for (int i = 0; i < selectedImageList.size (); i++) {\n if (imageList.get (position).getImage () != null) {\n if (selectedImageList.get (i).equals (imageList.get (position).getImage ())) {\n imageList.get (position).setSelected (false);\n selectedImageList.remove (i);\n selectedImageAdapter.notifyDataSetChanged ();\n imageAdapter.notifyDataSetChanged ();\n }\n }\n }\n }", "title": "" }, { "docid": "ef0b02d72133fb044fb451b398cfe8ab", "score": "0.55718094", "text": "@Override\n public void handle(final MouseEvent mouseEvent) {\n try {\n i1.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i2.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i3.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i4.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n i5.setImage(new Image(new FileInputStream(\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/filled.jpg\")));\n staar=\"/home/sahidul/Desktop/Online Shopping/src/sample/Pictures/5.jpg\";\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n }", "title": "" }, { "docid": "96966c05cf0af172c807aa448bd35be5", "score": "0.5558391", "text": "private void recomputeSelectedState() {\n if (selectedEditing) {\n return;\n }\n final long totalVariableCount = variables.size();\n final long selectedVariableCount = variables.stream()\n .filter(VariableInfo::isSelected)\n .count();\n final SelectedSate newState = (selectedVariableCount == 0) ? SelectedSate.NONE : (selectedVariableCount == totalVariableCount) ? SelectedSate.ALL : SelectedSate.SOME;\n selectedState.set(newState);\n }", "title": "" }, { "docid": "e18a191721dcf56da32243bec4fb388d", "score": "0.55580145", "text": "private void btnPicActionPerformed(ActionEvent e) {\n\t}", "title": "" }, { "docid": "c28ea74015bf70fb2835a792bc0fceb3", "score": "0.55548424", "text": "public SelectedFileList() {\n initComponents();\n updateComponents();\n }", "title": "" }, { "docid": "d0b465ae56e60e78af0c96463ea76d17", "score": "0.5551038", "text": "private void refresh(){\r\n\t\t/*try{\r\n\t\tiPan.BuildImagePanel(\r\n\t\t\tcreateFalseColorImg(originalImage, bandIndex, colorMap));\r\n\t\t}catch(Exception e){\r\n\t\t}*/\r\n\t\t//System.out.println(\"Refresh\");\r\n\t\timagePanel.updateColoring(colorMap);\r\n\t\timagePanelHolder.revalidate();\r\n\t\tthis.repaint();\r\n\r\n\t}", "title": "" }, { "docid": "7cd419c8f03f40c0733c055bf7f3363e", "score": "0.555034", "text": "@Override\r\n\tpublic void undoCommand() {\r\n\t\tmodel.loadImage(image, x, y);\r\n\t}", "title": "" }, { "docid": "812b044ace927f4b1009785927f69625", "score": "0.5545505", "text": "@Override\n\tprotected void done() {\n\t\tframe.setVisible(false);\n//\t\tJOptionPane.showMessageDialog(null, \"Step5 Finish!\");\n\t\timageDealer.left.nextButton.setEnabled(true);\n\t\timageDealer.left.backButton.setEnabled(true);\n\t\timageDealer.left.jTP.setEnabledAt(5, true);\n\t\t\n\t\tif(imageDealer.left.jTPStatus<5) {\n\t\t\timageDealer.left.jTPStatus = Math.max(imageDealer.left.jTPStatus, 5);;\n\t\t\timageDealer.right.typeJCB.addItem(\"Step5: Events Merged\");\n\t\t}\n//\t\timageDealer.right.typeJCB.setSelectedIndex(5);\n\t\t\n\t\ttry {\n\t\t\timageDealer.label = this.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnew Thread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\timageDealer.dealImage();\n\t\t\t\timageDealer.imageLabel.repaint();\n\t\t\t}\n\t\t\t\n\t\t}).start();\n\t\timageDealer.saveStatus();\n\t\timageDealer.running = false;\n\t}", "title": "" }, { "docid": "a966f207dbb2bcdc159c4878d9bb0d9a", "score": "0.55432343", "text": "public void reloadImgs(){\n view.clearCard();\n view.clearShot();\n for(int i = 2; i < boardSets.size(); i++){ // exclude first 2 sets, which are office and trailers\n view.resetCard(boardSets.get(i));\n view.resetShot(boardSets.get(i));\n }\n }", "title": "" }, { "docid": "71061a0f2f5b08a07cff04d69a35445d", "score": "0.55353683", "text": "@Generated(hash = 1035739203)\n public synchronized void resetPictures() {\n pictures = null;\n }", "title": "" }, { "docid": "0f7d76dc01fb76aaee5c27610e2035c6", "score": "0.5533399", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\n\n jFileChooser1 = new javax.swing.JFileChooser();\n jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList();\n jButton2 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jList2 = new javax.swing.JList();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane3 = new javax.swing.JScrollPane();\n jList3 = new javax.swing.JList();\n jLabel3 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n\n jFileChooser1.setApproveButtonToolTipText(\"\");\n jFileChooser1.setDialogTitle(\"Choose images to process\");\n jFileChooser1.setMultiSelectionEnabled(true);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Image Binarization\");\n\n jButton1.setText(\"Choose images...\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n org.jdesktop.beansbinding.ELProperty eLProperty = org.jdesktop.beansbinding.ELProperty.create(\"${imgPaths}\");\n org.jdesktop.swingbinding.JListBinding jListBinding = org.jdesktop.swingbinding.SwingBindings.createJListBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, eLProperty, jList1, \"\");\n bindingGroup.addBinding(jListBinding);\n\n jList1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList1MouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jList1);\n\n jButton2.setText(\"Process the selected images with the methods\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Choose preprocessing methods:\");\n\n jList2.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"BM (Brightness Correction + Mean Filter)\", \"Brightness Correction\", \"Mean Filter\", \"Cubic Operator\", \"Weighted Filter\", \"Erosion Filter\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList2MouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(jList2);\n\n jLabel2.setText(\"Choose binarization methods:\");\n\n jList3.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Otsu (with CV_THRESH_OTSU)\", \"Otsu (implementation with Histogram)\", \"Momentum Preserving\", \"Adaptive Thresholding\", \" \", \" \" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jList3.setToolTipText(\"\");\n jList3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList3MouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(jList3);\n\n jLabel3.setText(\"Scale Image:\");\n\n jTextField1.setText(\"60\");\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(jButton2, javax.swing.GroupLayout.Alignment.TRAILING, 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, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1, javax.swing.GroupLayout.Alignment.LEADING, 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)\n .addComponent(jLabel1)\n .addComponent(jScrollPane2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane3))))\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(jButton1)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 157, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\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(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n bindingGroup.bind();\n\n pack();\n }", "title": "" }, { "docid": "a2b290dd553ee47af1e853b27d1bba82", "score": "0.55310416", "text": "public void onObjectUnpicked(){\n selectedObjectId = -1;\n redrawObjects = true;\n ((PlaneFittingActivity)mContext).objectIsSelected(false);\n }", "title": "" }, { "docid": "b835cdc42ae3871e0ac35f1c8122aa41", "score": "0.55269086", "text": "public ImageSelection ( Image image )\r\n {\r\n this.image = image;\r\n }", "title": "" }, { "docid": "32d03c6f8e071fcc05436c58873a94a6", "score": "0.55227363", "text": "public void refreshIconImages()\n\t{\n\t\tif(isPendingDisabled)\n\t\t{\n\t\t\tjackpotHeaderComposite.getLblPendingImage().setImage(createPendingDisabledImage());\n\t\t}else {\n\t\t\tjackpotHeaderComposite.getLblPendingImage().setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t\t\t.getResourceAsStream(imgPendingInactBtn)));\n\t\t}\n\t\tif(isManualDisabled)\n\t\t{\n\t\t\tjackpotHeaderComposite.getLblManualImage().setImage(createManualDisabledImage());\n\t\t}else {\n\t\t\tjackpotHeaderComposite.getLblManualImage().setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t\t.getResourceAsStream(imgManualInactiveBtn)));\n\t\t}\n\t\tif(isVoidDisabled)\n\t\t{\n\t\t\tjackpotHeaderComposite.getLblVoidImage().setImage(createVoidDisabledImage());\n\t\t}else {\n\t\t\tjackpotHeaderComposite.getLblVoidImage().setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t\t.getResourceAsStream(imgVoidInactiveBtn)));\n\t\t}\n\t\tif(isReprintDisabled)\n\t\t{\n\t\t\tjackpotHeaderComposite.getLblReprintImage().setImage(createReprintDisabledImage());\n\t\t}else {\n\t\t\tjackpotHeaderComposite.getLblReprintImage().setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t\t.getResourceAsStream(imgReprintInactiveBtn)));\n\t\t}\n\t\tif(isDisplayDisabled)\n\t\t{\n\t\t\tjackpotHeaderComposite.getLblDisplayImage().setImage(createDisplayDisabledImage());\n\t\t}else {\n\t\t\tjackpotHeaderComposite.getLblDisplayImage().setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t\t.getResourceAsStream(imgDisplayInactiveBtn)));\n\t\t}\n\t\tif(isReportDisabled)\n\t\t{\n\t\t\tjackpotHeaderComposite.getLblReportImage().setImage(createReportDisabledImage());\n\t\t}else {\n\t\t\tjackpotHeaderComposite.getLblReportImage().setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t\t.getResourceAsStream(imgRptInactiveBtn)));\n\t\t}\n\t\n\t\t\n\t}", "title": "" }, { "docid": "a2a070cb7443d2298567d445d610e2d8", "score": "0.5507872", "text": "public void updateImage() {\n\t\tif (hp == 0)\n\t\t\tcurrentImage = null;\n\t\telse\n\t\t\tswitch (amount) {\n\t\t\tcase 1:\n\t\t\t\tcurrentImage = game.images.moneyI;\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tcurrentImage = game.images.moneyII;\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\tcurrentImage = game.images.moneyIII;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tcurrentImage = game.images.blankItem;\n\t\t\t\tbreak;\n\t\t\t}\n\t}", "title": "" }, { "docid": "0ac7fceb8a92285b31dd85c05278ae7f", "score": "0.5500188", "text": "public void doLoadInThread() {\n if ( !getGoodToGo()) {\n updateStatus();\n return;\n }\n\n List imageList = getImageList();\n if(imageList==null || imageList.size()==0) return;\n ImageDataset ids = new ImageDataset(getDatasetName(), imageList);\n\n Hashtable ht = new Hashtable();\n getDataSourceProperties(ht);\n ht.put(\"preview\", true);\n makeDataSource(ids, \"ADDE.IMAGE.V\", ht);\n saveServerState();\n }", "title": "" }, { "docid": "745fc6cc6bf583dd3c3701852391ef66", "score": "0.5495763", "text": "protected void deselectAll() {\n\t\t// None selected, just returns.\n\t\tif ( selectedFigures == null ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tListIterator i = selectedFigures.listIterator();\n\t\twhile ( i.hasNext() ) {\n\t\t\tFigure figure = (Figure)i.next();\n\t\t\tfigure.setSelected( false );\n\t\t}\n\t\tselectedFigures = null;\n\t}", "title": "" }, { "docid": "eccd8bebb709ea5569d5916d9b8aa652", "score": "0.54950637", "text": "public void reset()\n\t{\n\t\timageResource.reset();\n\t}", "title": "" }, { "docid": "9b9fb47769df8515a9d05e33450fcd0d", "score": "0.5493438", "text": "private void exeRemoveSelectedDogs() {\n\t\tArrayList<Dog> dogList = getDataDogs(2);\r\n\t\tif (dogList != null) {\r\n\t\t\tif (dogList.size() > 0) {\r\n\t\t\t\r\n\t\t\t\tdb.open();\r\n\t\t\t\tfor (Dog item : dogList) {\r\n\t\t\t\t\titem.setRead(false);\r\n\t\t\t\t\tdb.updateDog(item);\r\n\t\t\t\t}\r\n\t\t\t\tdb.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "58c52be014c7262fc932068589bc603f", "score": "0.5491518", "text": "public void removeSelected() {\n\t\tList<FigureGraphic> figures = getFigures();\n\t\tfor(FigureGraphic f : getSelected())\n\t\t\tfigures.remove(f);\n\t\tonSelectionChanged();\n\t}", "title": "" }, { "docid": "793ec539667c65842623d94f8b1b1881", "score": "0.5488389", "text": "public void addImage(ActionEvent e) {\r\n\t\tFileChooser fileChooser = new FileChooser();\r\n\r\n\t\t//Set extension filter\r\n\t\tFileChooser.ExtensionFilter extFilterJPG = new FileChooser.ExtensionFilter(\"JPG files (*.jpg)\", \"*.JPG\");\r\n\t\tFileChooser.ExtensionFilter extFilterPNG = new FileChooser.ExtensionFilter(\"PNG files (*.png)\", \"*.PNG\");\r\n\t\tfileChooser.getExtensionFilters().addAll(extFilterJPG, extFilterPNG);\r\n\r\n\t\t//Show open file dialog\r\n\t\tFile file = fileChooser.showOpenDialog(null);\r\n\t\tfilePath = file.getAbsolutePath();\r\n\t\tSystem.out.print(filePath);\r\n\t\tscreeningAlreadyInProgress.setText(filePath);\r\n\t\taddImageButton.setStyle(\"-fx-background-color:green;\"\r\n\t\t\t\t+ \"-fx-text-fill:white;\");\r\n\t}", "title": "" }, { "docid": "3ff0efa63aed4a8034b8174c5a3879b6", "score": "0.54824257", "text": "@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 jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList();\n jSeparator1 = new javax.swing.JSeparator();\n jLabel2 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Choose Photo\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(102, 51, 255));\n jLabel1.setText(\"Choose Photo to Include in your Post\");\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton1.setForeground(new java.awt.Color(204, 0, 153));\n jButton1.setText(\"Next>>\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jList1.setModel(new javax.swing.AbstractListModel() {\n ImageIcon[] strings={ new ImageIcon(\"D:\\\\ChatApp\\\\1p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\2p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\3p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\4p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\5p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\6p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\7p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\8p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\9p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\10p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\11p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\12p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\13p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\14p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\15p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\16p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\17p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\18p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\19p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\20p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\21p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\22p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\23p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\24p.jpg\"),\n new ImageIcon(\"D:\\\\ChatApp\\\\25p.jpg\"),\n\n };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n\n jSeparator1.setForeground(new java.awt.Color(0, 0, 255));\n\n jLabel2.setFont(new java.awt.Font(\"Arial Rounded MT Bold\", 1, 24)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 51, 51));\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/camera.png\"))); // NOI18N\n jLabel2.setText(\"Gallery\");\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jButton2.setForeground(new java.awt.Color(204, 0, 153));\n jButton2.setText(\"Go back without selecting\");\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(239, 239, 239)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(119, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(153, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 366, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(137, 137, 137))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(44, 44, 44)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 269, 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, 94, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(99, 99, 99))\n .addGroup(layout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 269, 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, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(87, 87, 87)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(65, 65, 65)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 507, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" } ]
ad596c7637e9d5877991e89722c83a4a
The list of project IDs to search within. For more information on the distinction between project names, IDs, and numbers, see [Projects](/docs/overview/projects). repeated string include_project_ids = 3;
[ { "docid": "356222b9dc94b0687126eeda70eb82b7", "score": "0.76069444", "text": "public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() {\n includeProjectIds_.makeImmutable();\n return includeProjectIds_;\n }", "title": "" } ]
[ { "docid": "a6467f4eae18b44d4d326727f676111b", "score": "0.79087186", "text": "java.util.List<java.lang.String> getIncludeProjectIdsList();", "title": "" }, { "docid": "dee87fae4ce5ee87ed26b4956525c0cf", "score": "0.7638329", "text": "public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() {\n return includeProjectIds_;\n }", "title": "" }, { "docid": "6b600f1346e75bb0eb3b25fb1e714b2b", "score": "0.72204095", "text": "public java.lang.String getIncludeProjectIds(int index) {\n return includeProjectIds_.get(index);\n }", "title": "" }, { "docid": "7f2d2aca5533c0831d1839eb00a6656a", "score": "0.7195717", "text": "public java.lang.String getIncludeProjectIds(int index) {\n return includeProjectIds_.get(index);\n }", "title": "" }, { "docid": "2c97559c6951f30077762b06b1688925", "score": "0.7142345", "text": "java.lang.String getIncludeProjectIds(int index);", "title": "" }, { "docid": "de1e7dd86f28ecea144ba1b9b43777ec", "score": "0.71315396", "text": "com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index);", "title": "" }, { "docid": "89aa7748b19ef3dc1c5c3278414c68c8", "score": "0.6827807", "text": "public ListProjectIdsResponse listProjectIds(ListProjectIdsRequest request) throws Exception {\n com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();\n return this.listProjectIdsWithOptions(request, runtime);\n }", "title": "" }, { "docid": "65486dfe9f58a5b42499de23290f01f4", "score": "0.68237984", "text": "public int getIncludeProjectIdsCount() {\n return includeProjectIds_.size();\n }", "title": "" }, { "docid": "4a1c37d60714d60bd204e54d9f59f576", "score": "0.6791207", "text": "public int getIncludeProjectIdsCount() {\n return includeProjectIds_.size();\n }", "title": "" }, { "docid": "41e23f64d1ee5b0d3bc8a9a19fb46e62", "score": "0.6728268", "text": "public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) {\n return includeProjectIds_.getByteString(index);\n }", "title": "" }, { "docid": "f58f5430ca41b56301754e2999968386", "score": "0.6693081", "text": "public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) {\n return includeProjectIds_.getByteString(index);\n }", "title": "" }, { "docid": "d08fcc05f8b4516a422ede6576007e69", "score": "0.66213447", "text": "int getIncludeProjectIdsCount();", "title": "" }, { "docid": "f758073b85e20598dfec7ce31d410d1f", "score": "0.6560497", "text": "public Builder addIncludeProjectIds(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureIncludeProjectIdsIsMutable();\n includeProjectIds_.add(value);\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "76098e406dc7bf49751b0c3a0918a376", "score": "0.6554719", "text": "public Builder setIncludeProjectIds(int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureIncludeProjectIdsIsMutable();\n includeProjectIds_.set(index, value);\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "686dd922e65364177625a826209be71e", "score": "0.6212964", "text": "public Builder clearIncludeProjectIds() {\n includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n ;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "cd8ad1830f7a1865b894bf1e576d5d62", "score": "0.61958206", "text": "public Builder addAllIncludeProjectIds(java.lang.Iterable<java.lang.String> values) {\n ensureIncludeProjectIdsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeProjectIds_);\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "7df3888ef084393e4e7e11f5f0ad28e7", "score": "0.6166736", "text": "private WSProject[] getProjectsById(WSContext context, List<Integer> projectIds) {\n List<WSProject> ret = new ArrayList<>();\n for (int pid : projectIds) {\n ret.add(context.getWorkflowManager().getProject(pid));\n }\n\n return ret.toArray(new WSProject[ret.size()]);\n }", "title": "" }, { "docid": "6b3daab6d1fd367d85800620c4376ccf", "score": "0.61272407", "text": "public ListProjectIdsResponse listProjectIdsWithOptions(ListProjectIdsRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n com.aliyun.teautil.Common.validateModel(request);\n java.util.Map<String, Object> query = new java.util.HashMap<>();\n if (!com.aliyun.teautil.Common.isUnset(request.userId)) {\n query.put(\"UserId\", request.userId);\n }\n\n com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(\n new TeaPair(\"query\", com.aliyun.openapiutil.Client.query(query))\n ));\n com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(\n new TeaPair(\"action\", \"ListProjectIds\"),\n new TeaPair(\"version\", \"2020-05-18\"),\n new TeaPair(\"protocol\", \"HTTPS\"),\n new TeaPair(\"pathname\", \"/\"),\n new TeaPair(\"method\", \"POST\"),\n new TeaPair(\"authType\", \"AK\"),\n new TeaPair(\"style\", \"RPC\"),\n new TeaPair(\"reqBodyType\", \"formData\"),\n new TeaPair(\"bodyType\", \"json\")\n ));\n return TeaModel.toModel(this.callApi(params, req, runtime), new ListProjectIdsResponse());\n }", "title": "" }, { "docid": "81aeaccdd497defa5f26716ea45b3ba5", "score": "0.6011576", "text": "com.google.protobuf.ByteString getProjectIdBytes();", "title": "" }, { "docid": "3b234a51f71c2f5ea68652be50a477c0", "score": "0.5933202", "text": "private List<Project> getAllProjectsForTest() {\n List<Project> allProject = Arrays.asList(\n new Project(\"Test Project 1\", Color.BLUE),\n new Project(\"Test Project 1\", Color.BLUE),\n new Project(\"Test Project 1\", Color.BLUE)\n );\n\n // set id instated of autogenerated by Room\n allProject.get(0).setProjectId(1);\n allProject.get(1).setProjectId(2);\n allProject.get(2).setProjectId(3);\n\n return allProject;\n }", "title": "" }, { "docid": "1a24ebe493b28f2db844ea5ef6251ebb", "score": "0.59273535", "text": "com.google.protobuf.ByteString\n getProjectIdBytes();", "title": "" }, { "docid": "1df666d30022f43cb9cee209457751d6", "score": "0.59016865", "text": "com.google.protobuf.ByteString\n getProjectIdBytes();", "title": "" }, { "docid": "1ebd09290fdabf58c9939a6ce4238206", "score": "0.5888633", "text": "java.lang.String getProjectId();", "title": "" }, { "docid": "1ebd09290fdabf58c9939a6ce4238206", "score": "0.5888633", "text": "java.lang.String getProjectId();", "title": "" }, { "docid": "1ebd09290fdabf58c9939a6ce4238206", "score": "0.5888633", "text": "java.lang.String getProjectId();", "title": "" }, { "docid": "a19f25975a81c73766e7adb1227391f1", "score": "0.58568203", "text": "java.util.List<java.lang.String> getIncludeOrgIdsList();", "title": "" }, { "docid": "b2b5806ea9649dcb2d1fab75e9429fa3", "score": "0.5837174", "text": "public com.google.protobuf.ByteString\n getProjectIdBytes() {\n java.lang.Object ref = projectId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n projectId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "cbaa156e3e9d0fa0293ce6de254a1166", "score": "0.5772489", "text": "@Override\n public List<Project> selectAllProjectsByUserId(UUID id) {\n // Get list of project ids associated with user\n final String SQL = \"SELECT id FROM project WHERE user_id = ?\";\n List<UUID> projectIds = jdbcTemplate.query(SQL, (resultSet, i) -> UUID.fromString(resultSet.getString(\"id\")) ,id);\n\n // Add projects\n List<Project> projects = new ArrayList<>();\n for (UUID uuid : projectIds) {\n selectProjectById(uuid).ifPresent(projects::add);\n }\n return projects;\n }", "title": "" }, { "docid": "0dae7bf79242398c60b11bca4529cc47", "score": "0.5752387", "text": "public java.lang.String getProjectId() {\n java.lang.Object ref = projectId_;\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 projectId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "90e0bb63bce0b055d7189511e59898c9", "score": "0.5737062", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getProjectIdBytes() {\n java.lang.Object ref = projectId_;\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 projectId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "263550a6e4ee5e897c2e0e0378cd5fba", "score": "0.57286114", "text": "@java.lang.Override\n public java.lang.String getProjectId() {\n java.lang.Object ref = projectId_;\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 projectId_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "1c658902c2efc4470903bdb2f2e3a9ec", "score": "0.57263976", "text": "public KWJSONRecord[] projects() {\n\t\tString request = \"user=\" + m_kw_properties.getProperty(\"kwwebapiuser\") +\n\t\t\t\t\"&action=\" + \"projects\";\n\t\treturn sendRequest(request);\n\t}", "title": "" }, { "docid": "6cd6b735096ee8f1bd81ae509eb7e2de", "score": "0.56972194", "text": "public Builder addIncludeProjectIdsBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureIncludeProjectIdsIsMutable();\n includeProjectIds_.add(value);\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "516371aae74f4b3c304a377dc7df4738", "score": "0.55417186", "text": "String getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "d743ede6bca84b292e3906f307ffabcb", "score": "0.5505857", "text": "public Integer getProjectId() {\n return _projectId;\n }", "title": "" }, { "docid": "d743ede6bca84b292e3906f307ffabcb", "score": "0.5505857", "text": "public Integer getProjectId() {\n return _projectId;\n }", "title": "" }, { "docid": "89d8362b13b8112dad479c90becf81f1", "score": "0.5505261", "text": "public Long getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "89d8362b13b8112dad479c90becf81f1", "score": "0.5505261", "text": "public Long getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "72ef3314d7d9295a3a4f72c97ccbd3d6", "score": "0.5500132", "text": "public void setProjectId(long value) {\n this.projectId = value;\n }", "title": "" }, { "docid": "6c268787aec3a5a96fe831cb9b10eb53", "score": "0.54986763", "text": "public static Collection<String> getProjectNames() {\n\t\tsynchronized (projects) {\n\t\t\treturn new TreeSet<String>(projectNames);\n\t\t\t//return new TreeSet<String>(projects.keySet());\n\t\t}\n\t}", "title": "" }, { "docid": "5fefb5dc926c813e0be355a0295148b3", "score": "0.54951555", "text": "public Integer getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "fa020c0aa0876d06b0df91c2fdf0dce4", "score": "0.54933137", "text": "public long getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "d7f8968f4a59db06e32e6bc8381a88fb", "score": "0.5485983", "text": "public long getProjectId() {\r\n return projectId;\r\n }", "title": "" }, { "docid": "8267e0b57cb36fd9212be1b66c0c5658", "score": "0.5451839", "text": "public int getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "bb23521233376445b404b60bacc6cc0f", "score": "0.54395556", "text": "Set<Long> getAccessibleProjectIds(Set<Long> principalIds,\r\n\t\t\tACCESS_TYPE read);", "title": "" }, { "docid": "b765559df146dc74478f047bfa3ebe99", "score": "0.5437718", "text": "public List<Project> getProjects() throws RedmineException {\n try {\n return transport.getObjectsList(Project.class,\n new BasicNameValuePair(\"include\", \"trackers\"));\n } catch (NotFoundException e) {\n throw new RedmineInternalError(\"NotFoundException received, which should never happen in this request\");\n }\n }", "title": "" }, { "docid": "d102343ae5002c032afc4113d6e86b73", "score": "0.5437312", "text": "public ArrayList<Project> getProjects(){\r\n\t\tArrayList<Project> lista = new ArrayList<>();;\r\n\t\tfor (String s: nombres){\r\n\t\t\tlista.add(Application.getApplication().getProjectByName(s));\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "title": "" }, { "docid": "f5c6464ccdf677716f2c2d58c99e6989", "score": "0.5429504", "text": "public BigInteger getProjectId() {\n\t\treturn projectId;\n\t}", "title": "" }, { "docid": "267914d66d1d522f32442503f9f3bec7", "score": "0.5425631", "text": "public int getProjectId() {\n return projectId;\n }", "title": "" }, { "docid": "abfb9b06924ddfb235a56d3ced9274aa", "score": "0.54097027", "text": "List<Project> getProjectList();", "title": "" }, { "docid": "cf6bc0394e449be0673e2596bc418160", "score": "0.54059356", "text": "public long getProjectId() {\r\n return this.projectId;\r\n }", "title": "" }, { "docid": "19e74be5a31248cb34c0d68115108261", "score": "0.5378778", "text": "public com.google.protobuf.ProtocolStringList getIncludeOrgIdsList() {\n return includeOrgIds_;\n }", "title": "" }, { "docid": "f029d26499c03da9815e54fc4660aa0a", "score": "0.5372338", "text": "public String getProjectId() {\n return null;\n }", "title": "" }, { "docid": "8114227f815d1f2eaeec88ce136175e8", "score": "0.5349369", "text": "public void setProjects(String projects) {\n this.projects = projects;\n }", "title": "" }, { "docid": "3e3de481ee650a99b6b8707f1af62418", "score": "0.53488743", "text": "public String projectString () {\n\t\tString s = \"Project Info \";\n\t\tfor (int i = 0; i < getProjects().size(); i++) {\n\t\t\ts += getProjects().get(i).toString();\n\t\t\tif (i < getProjects().size() - 1)\n\t\t\t\ts += \", \";\n\t\t}\n\t\treturn s;\n\t}", "title": "" }, { "docid": "64242b23b1826a18f81b10a340a05077", "score": "0.53335637", "text": "public String getProjectid() {\n return projectid;\n }", "title": "" }, { "docid": "1f7693a91fd401f907a02acdf019c23d", "score": "0.5333105", "text": "Set<Project> getProjects(Long testplanID);", "title": "" }, { "docid": "fc550a4898e47642734e6cb652bf9b5c", "score": "0.5310344", "text": "public ArrayList<String> getProjectList() throws SQLException {\n\t\ttry {\n\t\t\tinitiateConnection();\n\t\t}catch(IOException ie) {\n\t\t\tie.printStackTrace();\n\t\t}\n\t\tArrayList<String> listOfProjects = new ArrayList<String>();\n\t\tString query = \"select pname from project\";\n\t\tString project = \"\";\n\t\tp = conn.prepareStatement(query);\n\t\tp.clearParameters();\n\t\tr = p.executeQuery();\n\t\twhile(r.next()) {\n\t\t\tproject = r.getString(1);\n\t\t\tlistOfProjects.add(project);\n\t\t}\n\t\t/* Print out the list of projects to make sure things are right */\n\t\tIterator<String> itr = listOfProjects.iterator();\n\t\twhile(itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t}\n\t\tp.close();\n\t\tr.close();\n\t\tconn.close();\n\t\treturn listOfProjects;\n\n\t}", "title": "" }, { "docid": "94cb6eb5d705537fdfde665e7614105d", "score": "0.52963704", "text": "public com.google.protobuf.ProtocolStringList getIncludeOrgIdsList() {\n includeOrgIds_.makeImmutable();\n return includeOrgIds_;\n }", "title": "" }, { "docid": "0188cb20f0ef675d1c92b072364059a6", "score": "0.5272692", "text": "public java.lang.String getIncludeOrgIds(int index) {\n return includeOrgIds_.get(index);\n }", "title": "" }, { "docid": "cfbfcf043dded65edd228734b75736ed", "score": "0.5254325", "text": "private Set<Project> queryAllProjects() throws IOException, TokenException {\n return queryEntity(properties.getBaseUrl() + properties.getProjectsPath(),\n new TypeReference<Set<Project>>() {\n });\n }", "title": "" }, { "docid": "92fbf17efc8080d4ba111c8476de81ed", "score": "0.5245743", "text": "public Integer getProjectPresetId(Integer projectId);", "title": "" }, { "docid": "3a92f7868ca916649b146f4d2202683e", "score": "0.5242912", "text": "@SuppressWarnings(\"rawtypes\")\n\tpublic List<AbstractProject> familyProjectList() {\n\t\treturn familyProjectList(this.getFamilyID());\n\t}", "title": "" }, { "docid": "10b88b52b280585c8fa347e25c1f6603", "score": "0.5241092", "text": "public long[] getProjectCategoryIds() {\r\n return this.projectCategoryIds;\r\n }", "title": "" }, { "docid": "ddf01e2c600b16c4bccd44ac63ac704d", "score": "0.52389234", "text": "java.lang.String getIncludeOrgIds(int index);", "title": "" }, { "docid": "55938475e7d75c47000228088effbd9f", "score": "0.5222738", "text": "public Collection<CodegenProject> listCodegenProjects(String userId, String designId) throws StorageException;", "title": "" }, { "docid": "a1871af2d6957809456a5180d5059521", "score": "0.5221054", "text": "public QueryAndCreateApi<Project> projects();", "title": "" }, { "docid": "5145b9afec8987c1f1834a08a2f111fd", "score": "0.5220822", "text": "com.google.protobuf.ByteString getIncludeOrgIdsBytes(int index);", "title": "" }, { "docid": "33f8823024a516468ffcabd847c16fdb", "score": "0.5218451", "text": "public java.lang.String getIncludeOrgIds(int index) {\n return includeOrgIds_.get(index);\n }", "title": "" }, { "docid": "ad54d0162a6add2b2e98dbc901545965", "score": "0.51997024", "text": "public String doSearchProjects(){\n\t\tdefaultProjectId = UserSessionUtil.getDefaultProject();\n\t\tList<Role> roles = new ArrayList<Role>(UserSessionUtil.getUser().getUserRoles());\n\t\tif(TitanContent.ROLE_ADMIN.equals(roles.get(0).getRoleName())){\n\t\t\ttry {\n\t\t\t\tprojectList = projectService.getAllProjectList();\n\t\t\t} catch (BaseDaoException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tprojectList = new ArrayList<Project>();\n\t\t\tSet<Project> s = UserSessionUtil.getUser().getUserProjects();\n\t\t\tif(null != s && s.size() != 0){\n\t\t\t\tIterator<Project> it = s.iterator();\n\t\t\t\twhile(it.hasNext()){\n\t\t\t\t\tProject p = it.next();\n\t\t\t\t\tif(p.getIsValid() == 0){\n\t\t\t\t\t\tprojectList.add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\totherProjectList = projectService.getOtherProjectList(s);\n\t\t\t} catch (BaseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "f9375f96e8909f6e4897575147e35e99", "score": "0.5188545", "text": "@Jelly\n\tpublic String getProjectID() {\n\t\treturn projectID;\n\t}", "title": "" }, { "docid": "09fafc33fd1821d799559454980ce119", "score": "0.5181551", "text": "@Override\n public List<Project> selectAllProjects() {\n final String SQL = \"SELECT p.id as project_id,\" +\n \"p.name,\" +\n \"p.description,\" +\n \"a.id as address_id,\" +\n \"a.address_line1,\" +\n \"a.address_line2,\" +\n \"a.city,\" +\n \"a.state,\" +\n \"a.postal_code\" +\n \"\\nFROM project p\" +\n \"\\nJOIN address a\" +\n \"\\nON a.id = p.address_id\";\n return jdbcTemplate.query(SQL, new ProjectMapper());\n }", "title": "" }, { "docid": "f1fee3165c184a53dced3c84b45db2d6", "score": "0.5158237", "text": "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "title": "" }, { "docid": "f1fee3165c184a53dced3c84b45db2d6", "score": "0.5158237", "text": "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "title": "" }, { "docid": "f1fee3165c184a53dced3c84b45db2d6", "score": "0.5158237", "text": "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "title": "" }, { "docid": "f1fee3165c184a53dced3c84b45db2d6", "score": "0.5158237", "text": "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "title": "" }, { "docid": "551662bdb5b6b108be96106bcfc67823", "score": "0.5147037", "text": "@Override\n\tpublic List<Project> findAll() {\n\t\treturn projectDaoImpl.findAll();\n\t}", "title": "" }, { "docid": "e593b604f326d3b5ffbebacea65d074a", "score": "0.51448464", "text": "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "title": "" }, { "docid": "e593b604f326d3b5ffbebacea65d074a", "score": "0.51448464", "text": "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "title": "" }, { "docid": "e593b604f326d3b5ffbebacea65d074a", "score": "0.51448464", "text": "public boolean isSetProjectId() {\n return EncodingUtils.testBit(__isset_bitfield, __PROJECTID_ISSET_ID);\n }", "title": "" }, { "docid": "b9114186e25b688b5c9cd06e1dbd7a62", "score": "0.5142031", "text": "private String genProjId() {\r\n\t\t\r\n\t\tint ranNum;\r\n\t\tString ranStr = \"\";\r\n\t\tboolean idExists = false;\r\n\t\t\r\n\t\tranNum = ran.nextInt((RAN_MAX - RAN_MIN) + 1) + RAN_MIN;\r\n\t\tranStr = Integer.toString(ranNum);\r\n\t\t\r\n\t\tfor(ProjectInterface p : projects) {\r\n\t\t\t\r\n\t\t\tif(p.getId().equals(ranStr)) {\r\n\t\t\t\t\r\n\t\t\t\tidExists = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(idExists == true) {\r\n\t\t\t\r\n\t\t\treturn genProjId();\r\n\t\t}\r\n\t\t\r\n\t\treturn ranStr;\r\n\t}", "title": "" }, { "docid": "92b1c19ec33af33fd0d0117a8c5b5aca", "score": "0.5141289", "text": "public Integer getProjectId() {\n\t\t// If the project id is null.\n\t\tif (projectId == null) {\n\t\t\t// The project id is retrieved from the request parameters.\n\t\t\tprojectId = Integer.parseInt(context.getExternalContext().getRequestParameterMap()\n\t\t\t\t\t.get(\"projectId\"));\n\t\t}\n\t\t// Returns the project id.\n\t\treturn projectId;\n\t}", "title": "" }, { "docid": "128c2c28014bf5f97eef4fca103fb593", "score": "0.514003", "text": "public static ArrayList<ArrayList<String>> getIncompleteCompanyNameAndProjectID() {\n ArrayList<String> nameList = new ArrayList<>();\n ArrayList<String> projectIDList = new ArrayList<>();\n ArrayList<ArrayList<String>> returnList = new ArrayList<>();\n ArrayList<Project> incompleteProjectList = new ArrayList<>();\n incompleteProjectList = getAllIncompleteProjects();\n if (incompleteProjectList == null || incompleteProjectList.isEmpty()) {\n return returnList;\n }\n for (Project project : incompleteProjectList) {\n nameList.add(project.getCompanyName());\n projectIDList.add(project.getProjectID() + \"\");\n }\n returnList.add(nameList);\n returnList.add(projectIDList);\n return returnList;\n }", "title": "" }, { "docid": "81c0d3b85130de8f0702f79333b287fe", "score": "0.51364905", "text": "public void setProjectId(int tmp) {\n this.projectId = tmp;\n }", "title": "" }, { "docid": "0102aeaf9c2dfeee0d6b6a2a16e53b1c", "score": "0.513146", "text": "@ApiModelProperty(value = \"The ID of the research project associated with this request.\")\n\n\n public String getResearchProjectId() {\n return researchProjectId;\n }", "title": "" }, { "docid": "e1790b1bed9c10859413c377b730baf3", "score": "0.51071084", "text": "public Integer getProjectid() {\r\n return projectid;\r\n }", "title": "" }, { "docid": "56f1af2b1e7951482f9b632f3bb0cec6", "score": "0.51021683", "text": "public Integer getProjectid() {\n return projectid;\n }", "title": "" }, { "docid": "3127b724c7a84f92fecf09946054de87", "score": "0.5099264", "text": "@RequestMapping(value = \"/rest/projectgroups/{id}/projects\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Project> getByProject(@PathVariable String id, HttpServletResponse response) {\n log.debug(\"REST request to get all ProjectGroups of project : {}\", id);\n return projectRepository.findByProjectGroup(projectgroupRepository.findOne(id));\n }", "title": "" }, { "docid": "0927c3b9f62972cf0898e505dffe1c72", "score": "0.50955266", "text": "Set<String> getIds();", "title": "" }, { "docid": "01f05e6c10ae590a60629572c5b9d1ac", "score": "0.5094584", "text": "static String concatenateReviewAuctionProjectIds(List<ReviewAuction> reviewAuctions) {\r\n StringBuilder reviewAuctionProjectIdsList = new StringBuilder();\r\n for (ReviewAuction reviewAuction : reviewAuctions) {\r\n if (reviewAuctionProjectIdsList.length() > 0) {\r\n reviewAuctionProjectIdsList.append(\",\");\r\n }\r\n reviewAuctionProjectIdsList.append(reviewAuction.getProjectId());\r\n }\r\n return reviewAuctionProjectIdsList.toString();\r\n }", "title": "" }, { "docid": "b88842675b4c36c82a8a8cc5dc98f845", "score": "0.50764835", "text": "public int getC_Project_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Project_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "e4e825924fe0da71d222f08c5aee03bd", "score": "0.50742507", "text": "@GetMapping\n\tpublic List<Project> getProject(@RequestHeader String token) {\n\t\tint employeeId = jwtTokenHelper.decodeToken(token);\n\t\tList<Project> projects = projectService.getProject(employeeId);\n\t\treturn projects;\n\t}", "title": "" }, { "docid": "be94efcd211619c16f6c69c2c26a5260", "score": "0.5068767", "text": "public List<Project> getAllProjects() \r\n { \r\n \t List<Project> allProjects=new ArrayList<Project>(); \t\r\n \t Cursor c = db.rawQuery(\"SELECT * FROM projects\", null); \r\n while (c.moveToNext()) {\r\n \t Project project=new Project();\r\n \t project.setProject_id(c.getString(c.getColumnIndex(\"project_id\"))); \r\n \t project.setCourse_number(c.getString(c.getColumnIndex(\"course_number\")));\r\n \t project.setCourse_title(c.getString(c.getColumnIndex(\"course_title\")));\r\n \t project.setDue_date(c.getString(c.getColumnIndex(\"due_date\")));\r\n \t project.setInstructor_name(c.getString(c.getColumnIndex(\"instructor_name\")));\r\n \t project.setProject_description(c.getString(c.getColumnIndex(\"project_description\")));\r\n \t project.setProject_number(c.getString(c.getColumnIndex(\"project_number\")));\r\n \t allProjects.add(project);\r\n } \t\r\n return allProjects; \r\n }", "title": "" }, { "docid": "78f3895423e7b67cd6244a1c66167278", "score": "0.5053309", "text": "@Provides\n @Singleton\n @ProjectId\n String provideProjectId() {\n validateUsingGoogle(cloud);\n String projectId;\n try {\n projectId = GoogleCloudUtils.getProjectId();\n } catch (NullPointerException e) {\n throw new IllegalArgumentException(\n \"Need to specify a project ID when using Google Cloud. \"\n + \"This should be exposed as an environment variable by Kubernetes, see \"\n + \"k8s/api-deployment.yaml\");\n }\n Preconditions.checkArgument(\n !Strings.isNullOrEmpty(projectId),\n \"Need to specify a project \"\n + \"ID when using Google Cloud. This should be exposed as an environment variable by \"\n + \"Kubernetes, see k8s/api-deployment.yaml\");\n return projectId;\n }", "title": "" }, { "docid": "b596c62d9d09e87acf058d59292c9f33", "score": "0.5047837", "text": "public ProjectInterface[] getAllProjects() {\r\n\t\t\r\n\t\tProjectInterface[] projs = new ProjectInterface[projects.size()];\r\n\t\t\t\t\r\n\t\tprojects.toArray(projs);\r\n\t\t\r\n\t\treturn projs;\r\n\t}", "title": "" }, { "docid": "52d6a9dc9779312169fdd8d7eb537d44", "score": "0.5046023", "text": "public void setProjectId(String tmp) {\n this.projectId = Integer.parseInt(tmp);\n }", "title": "" }, { "docid": "2456072a4addee4206cfab3ae415caa6", "score": "0.5040606", "text": "public List<Project> retrieveProjectsByCorporationId(long corporationId);", "title": "" }, { "docid": "582add394b14eeaea36d044d118f99e8", "score": "0.5027732", "text": "public void setProjectId(Integer projectId) {\n _projectId = projectId;\n }", "title": "" }, { "docid": "582add394b14eeaea36d044d118f99e8", "score": "0.5027732", "text": "public void setProjectId(Integer projectId) {\n _projectId = projectId;\n }", "title": "" }, { "docid": "de6be6dfe3604cb990ab1a6342fe3dc0", "score": "0.50248224", "text": "public static final List<ISubmissionProject> getSelectedProjects(\n IWorkbenchPart targetPart) {\n List<ISubmissionProject> result = new ArrayList<ISubmissionProject>();\n /*if (targetPart instanceof IPackagesViewPart) {\n IPackagesViewPart pvp = (IPackagesViewPart) targetPart;\n TreeViewer tv = pvp.getTreeViewer();\n Tree tree = tv.getTree();\n TreeItem[] item = tree.getSelection();\n for (int i = 0; i < item.length; i++) {\n if (item[i].getData() instanceof IJavaProject) {\n result.add(ISubmissionProject.createSubmissionProject(\n (IJavaProject) item[i].getData()));\n }\n }\n } else*/ \n if (targetPart instanceof IViewPart) {\n IViewPart viewPart = (IViewPart) targetPart;\n IViewSite site = viewPart.getViewSite();\n if (null != site) {\n ISelectionProvider selectionProvider = \n site.getSelectionProvider();\n if (null != selectionProvider) {\n ISelection selection = selectionProvider.getSelection();\n if (selection instanceof IStructuredSelection) {\n IStructuredSelection structuredSelection = \n (IStructuredSelection) selection;\n Object[] items = structuredSelection.toArray();\n getSelectedProjects(result, items);\n }\n }\n }\n }\n return result;\n }", "title": "" } ]
cfc04960d506cb7314a24dd2b1a0a8d7
Getter method for rotationRate.
[ { "docid": "50ba4f9e2029d8c16c9284de0ed06c2f", "score": "0.862579", "text": "public final int getRotationRate() {\r\n return rotationRate;\r\n }", "title": "" } ]
[ { "docid": "46fd5e35174f45914de146e4fcf7ac34", "score": "0.7386282", "text": "public double getRotation() {\n return getDouble(\"ts\");\n }", "title": "" }, { "docid": "86c07dc1e228bdb310a30a3ce2a764ce", "score": "0.734255", "text": "public double getRotationalPeriod() {\n return rotationalPeriod;\n }", "title": "" }, { "docid": "6011bdc0edc71325596dbeb8c0fe8476", "score": "0.7284271", "text": "public double getRotation();", "title": "" }, { "docid": "919c268e9101ddd7c18bced4c65fca69", "score": "0.72377175", "text": "public float getRotation() {\n return this.rotation;\n }", "title": "" }, { "docid": "29c04e883932f75dc6984d33714d7333", "score": "0.72262967", "text": "public double getRotDiff() {\n\t\treturn rotDiff;\n\t}", "title": "" }, { "docid": "7eff515bc90f54241176e802522ed8d0", "score": "0.72242844", "text": "public float getRotation() {\n\t\treturn rotation;\n\t}", "title": "" }, { "docid": "c38e9dd702072e9b3808cb1c6c99f4f5", "score": "0.72195864", "text": "public float getRotation()\n {\n return rotation;\n }", "title": "" }, { "docid": "82fcb637496265f4a8369aebe7340696", "score": "0.71647847", "text": "public int getRotation() {\r\n\t\treturn rotation;\r\n\t}", "title": "" }, { "docid": "505456f473231740f1ad7e04af090f47", "score": "0.7162014", "text": "public int getRotation() {\n\treturn rotation;\n\t//return rotation;\n}", "title": "" }, { "docid": "f56f1e0b077bb4f3408aea499c5cee7f", "score": "0.70993394", "text": "public double getRot() {\n return this.rot;\n }", "title": "" }, { "docid": "c8cdb8be985458188a13d2220c751e60", "score": "0.7010831", "text": "public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}", "title": "" }, { "docid": "f9788f7719822a29bb0a9dde7b2023d7", "score": "0.6968156", "text": "public float getRate() {\n\t\treturn rate;\n\t}", "title": "" }, { "docid": "cb2fd276afd9bd3496bf20163d84f84b", "score": "0.69607043", "text": "public float getRotation() {\n return pm.pen.getLevelValue(PLevel.Type.ROTATION);\n }", "title": "" }, { "docid": "f6247e214ffe5f7a691cf5a12cc9fe7a", "score": "0.69268006", "text": "public float getRotationAngle() {\n return this.mRotationAngle;\n }", "title": "" }, { "docid": "05a82b643aaa886c7778db6ea88416e3", "score": "0.6890191", "text": "public double getRate() {\n\t\treturn rate;\n\t}", "title": "" }, { "docid": "be8dea9f8e891e1531c9a7f11de5b6c9", "score": "0.6888898", "text": "public double getRate() {\n return rate;\n }", "title": "" }, { "docid": "be8dea9f8e891e1531c9a7f11de5b6c9", "score": "0.6888898", "text": "public double getRate() {\n return rate;\n }", "title": "" }, { "docid": "2aca425cda7ff64fe10f999515b3bb2d", "score": "0.6853771", "text": "public float getRate(){\r\n return rate;\r\n }", "title": "" }, { "docid": "478906b32209ea5ba8b0fc7364a43417", "score": "0.68533736", "text": "public double getRotInt() {\n\t\treturn 3600.0 * rotInt;\n\t}", "title": "" }, { "docid": "5d35a151f24de0569921c56df24d0138", "score": "0.68364763", "text": "public int getMediaRecorderRotation() {\n return this.mMediaRemcoderRotation;\n }", "title": "" }, { "docid": "05939dcb3ac42813fc39f114d5c81048", "score": "0.6823811", "text": "public float getBaseRotation() {\n return this.baseRotation;\n }", "title": "" }, { "docid": "98bf63e665254ce51920e9a7440133a6", "score": "0.6820145", "text": "public float getRate() {\n\treturn durationStretch * nominalRate;\n }", "title": "" }, { "docid": "0287aaf46c7b1024cecb41cc8cea4ac3", "score": "0.67952305", "text": "public Integer getRate() {\r\n return rate;\r\n }", "title": "" }, { "docid": "6e0ceb86c2988db6daa87e20e94c9991", "score": "0.67917126", "text": "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "title": "" }, { "docid": "48b07246289c83ba29a8d7b58d0dea8d", "score": "0.6759158", "text": "public int getRotations();", "title": "" }, { "docid": "39d3105b4fec48ca319c46d00625befb", "score": "0.67378306", "text": "public double getRotation1() {\n return rotation1;\n }", "title": "" }, { "docid": "808ca3290111c138f7a0d5f7194d1ee8", "score": "0.67017025", "text": "public double getRotRms() {\n\t\treturn 3600.0 * Math.sqrt(1000.0 * rotInt / (double) (updateTimeStamp - startTime));\n\t}", "title": "" }, { "docid": "53593b58e7c7c1a6fd365283f5358f41", "score": "0.6670571", "text": "public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}", "title": "" }, { "docid": "9fe40635b55f14e96cba7f74dfe5e3e1", "score": "0.6669472", "text": "public Rate rate() {\n _initialize();\n return rate;\n }", "title": "" }, { "docid": "89d8dc686084a9aabee846207f9c4fb1", "score": "0.66654813", "text": "public int getRate() {\n return rate_;\n }", "title": "" }, { "docid": "403bcc12fa78a6cda48b937439eff69e", "score": "0.6660127", "text": "public int getRate() {\n return rate_;\n }", "title": "" }, { "docid": "7a125b160edac6a20f29d6b6f3c2ae70", "score": "0.65985143", "text": "public float getRawRotationAngle() {\n return this.mRawRotationAngle;\n }", "title": "" }, { "docid": "9881c0e8ec8ef39d4b8ba91be67755e3", "score": "0.65700215", "text": "private double getRotationMomentum()\n\t{\n\t\treturn getRotation() * this.currentMomentMass;\n\t}", "title": "" }, { "docid": "83c2f42f52cfc62d08886039c0b9449b", "score": "0.65486413", "text": "public double getRotation2() {\n return rotation2;\n }", "title": "" }, { "docid": "ccf4921a75bcbf79926c2ef900b61508", "score": "0.65377456", "text": "double getRate();", "title": "" }, { "docid": "99c7bafa18d21e485028eb69ac07e81e", "score": "0.6526478", "text": "@Override\n\tpublic float getRotation() {\n\t\treturn player.getRotation();\n\t}", "title": "" }, { "docid": "b7e35bb084d2cd57e6e6e96bde131aa0", "score": "0.651726", "text": "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "title": "" }, { "docid": "486695538eb473dfe86a8adc0c693596", "score": "0.64866513", "text": "int getRotationDegrees() {\n return rotationDegrees;\n }", "title": "" }, { "docid": "052ab3f158308904d98cf2d311b9ef81", "score": "0.64421606", "text": "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "title": "" }, { "docid": "90a4a7813eaa99424c7b178fa49a89f8", "score": "0.64144516", "text": "@Override\n\tpublic Rotation3 GetRotation() {\n\t\treturn new Rotation3(0f);\n\t}", "title": "" }, { "docid": "2435cb66a73c3f343254e1ea5e29e2df", "score": "0.64094234", "text": "public double getTurnRate() {\n return m_gyro.getRate() * (DriveConstants.kGyroReversed ? -1.0 : 1.0);\n }", "title": "" }, { "docid": "c2ee048128e7af981a03b6516d3f10f9", "score": "0.64040136", "text": "public int getRotation() {\n\t\treturn config & 0x3;\n\t}", "title": "" }, { "docid": "3db946b849d926f461d4377c0cf3341d", "score": "0.6401543", "text": "public double getRightRate() {\n return rightEnc.getRate();\n }", "title": "" }, { "docid": "9d0eb5780003e7bec2cdc0f0e39c2388", "score": "0.63741094", "text": "public mat4 getRotation() {\n return worldMatrix.getRotation(pr, yr, pr);\n }", "title": "" }, { "docid": "2132b61333c55a9f2e1912f0c3b00c6c", "score": "0.63679904", "text": "public float getTargetRotation ()\n {\n return _targetRotation;\n }", "title": "" }, { "docid": "451c4e830edf520d0f971ee46c6b3b5c", "score": "0.6350744", "text": "public double getR() {\r\n\t\tif(!polar)\r\n\t\t\tupdatePolar();\r\n\t\treturn r;\r\n\t}", "title": "" }, { "docid": "d178d1ea565e4878f157f25fb62691cf", "score": "0.6335853", "text": "public Quaternion getCurrentRotation() {\n long currentTimeMillis = System.currentTimeMillis();\n\n if (currentTimeMillis > finishTimeMillis) {\n return finishRotation;\n } else {\n float percent = ((float)(currentTimeMillis-startTimeMillis)) / ((float)(finishTimeMillis-startTimeMillis));\n Quaternion interpolatedRotation = new Quaternion();\n \n // Not sure if slerp is right, but you never know !\n interpolatedRotation.slerp(startRotation, finishRotation, percent);\n return interpolatedRotation;\n }\n }", "title": "" }, { "docid": "eedca46263df1f552e4bf1218cef6761", "score": "0.63167346", "text": "public double getRotMax() {\n\t\treturn rotMax;\n\t}", "title": "" }, { "docid": "b50b15442f32fc9b8aaae9359e6baffa", "score": "0.63025", "text": "public float getOrientation() {\n return this.orientation + this.baseRotation;\n }", "title": "" }, { "docid": "3451bd14ba27b9bf68e5acc007220420", "score": "0.62680095", "text": "public int getRotationState() {\n return this.rotationState;\n }", "title": "" }, { "docid": "7fce09eba49ff74af55e0d3500239eb3", "score": "0.62550914", "text": "double getTransRate();", "title": "" }, { "docid": "239947b0f1df4bad0d6941efa759cf3e", "score": "0.6246954", "text": "public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }", "title": "" }, { "docid": "284c64e85758b109afacce6ee75540b7", "score": "0.6217942", "text": "public Rotation2d getAngle() {\n // Note: This assumes the CANCoders are setup with the default feedback coefficient\n // and the sesnor value reports degrees.\n return Rotation2d.fromDegrees(canCoder.getAbsolutePosition());\n }", "title": "" }, { "docid": "791a807bb757202f093fa9bbe342be61", "score": "0.6204539", "text": "public double getConversionRate() {\n return conversionRate;\n }", "title": "" }, { "docid": "f78f5f81330f79e352f6384f46f56e1c", "score": "0.61860806", "text": "public double getGyroAngleZ() {\n return m_gyro.getAngleZ();\n }", "title": "" }, { "docid": "72b75a08941a6dd23c025e337ac89067", "score": "0.6181015", "text": "public final void setRotationRate(final int aRotationRate) {\r\n this.rotationRate = aRotationRate;\r\n }", "title": "" }, { "docid": "2f4ce97541a16ef28f4d5e05b59528cb", "score": "0.6180277", "text": "public final double getPatternOrientation()\r\n\t{\r\n\t\treturn _orientation;\r\n\t}", "title": "" }, { "docid": "839863f01c9b9e4029567952b57649ab", "score": "0.6164957", "text": "public float getSavedRotation() {\n return pm.pen.getLevelValue(PLevel.Type.ROTATION);\n }", "title": "" }, { "docid": "a40f250cd26311ed3aadf2c0f07c84e0", "score": "0.6158683", "text": "public Double radiansPerSecond()\n\t{\n\t\treturn getValue(AngularVelocityUnit.RADIANS_PER_SEC);\n\t}", "title": "" }, { "docid": "f6b7d5087d4a8acd097ac803e6b3212e", "score": "0.6156125", "text": "public int getPieRotation() {\n return mPieRotation;\n }", "title": "" }, { "docid": "8831a7f26baa65d0c49236744d00864e", "score": "0.6131132", "text": "public double getAngle ()\n {\n return angle_;\n }", "title": "" }, { "docid": "35bb76978a5d28823fa7038292cf6686", "score": "0.61137986", "text": "public float getPitchAngle() { return PitchAngle; }", "title": "" }, { "docid": "ffbb1d726543c33da457540dc27bdb77", "score": "0.61087644", "text": "public double getAngle () {\n return super.getAngle() % 360D;\n }", "title": "" }, { "docid": "a82bf72f7b63123432db1dd23bb4bbe9", "score": "0.6107247", "text": "public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}", "title": "" }, { "docid": "ad246a2144afbd54a750bc89b7075d96", "score": "0.60930216", "text": "public int getCameraSensorRotation();", "title": "" }, { "docid": "0d6bacce23d95df23937c854875da421", "score": "0.6092809", "text": "public Quaternion getSuggestedRotationValue() {\n return mSuggestedRotationValue;\n }", "title": "" }, { "docid": "fe092b5ed68b757561cee8c847ded219", "score": "0.60923016", "text": "public int getAngle() {\r\n return angle;\r\n }", "title": "" }, { "docid": "ae80de63bd0565aeeb1eae397ce117fb", "score": "0.60895383", "text": "@Override\n\tpublic double calRate() {\n\t\treturn 0.9f;\n\t}", "title": "" }, { "docid": "5e86245c200bfc42523ab0799a7f0ea0", "score": "0.60832393", "text": "public double getAngle() {\n return angle;\n }", "title": "" }, { "docid": "5e86245c200bfc42523ab0799a7f0ea0", "score": "0.60832393", "text": "public double getAngle() {\n return angle;\n }", "title": "" }, { "docid": "382bd2f7c966f04ba7a0cf43aa034049", "score": "0.608322", "text": "public java.lang.Integer getRatetype() {\n\treturn ratetype;\n}", "title": "" }, { "docid": "c8579863a61b11978172b9b4ca49f6d4", "score": "0.6079146", "text": "public int getStarvationRate ( ) {\n\t\treturn extract ( handle -> handle.getStarvationRate ( ) );\n\t}", "title": "" }, { "docid": "b97a852551c2a9f5eb057d9b64c08662", "score": "0.60742027", "text": "public double getAngle() { return angle; }", "title": "" }, { "docid": "2ae86ed786e55eb3644ec44381808016", "score": "0.6073044", "text": "public Rotation2d getGyro() {\n\t\treturn Rotation2dKt.getDegree(gyro.getAngle() - gyroZero);\n\t}", "title": "" }, { "docid": "39ff764885e82693393633c60b082dc6", "score": "0.6068176", "text": "public float getRotateZ() { return rotateZ; }", "title": "" }, { "docid": "63de82e8d4fc92953fa8a03920015d6b", "score": "0.6055489", "text": "public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOrientationAngle();\n }\n }", "title": "" }, { "docid": "229cda1a9d8b60d9f5623423b06977b5", "score": "0.6054637", "text": "@Field(5) \n\tpublic AVRational frame_rate() {\n\t\treturn this.io.getNativeObjectField(this, 5);\n\t}", "title": "" }, { "docid": "424c461293178d5b55ee418a49755d6e", "score": "0.605349", "text": "public double getSkew_Rotation() {\n NetworkTableEntry ts = m_table.getEntry(\"ts\");\n double s = ts.getDouble(0.0);\n return s;\n }", "title": "" }, { "docid": "a109983505fb577e8718cfeaf4f41b84", "score": "0.60438395", "text": "public double getAngle(){\n\t\treturn this.angle;\n\t}", "title": "" }, { "docid": "9bb6310b711a43896914bde8d84c193b", "score": "0.6029101", "text": "public double getGyroInRad(){\n return 0.0;//TODO:Pull and return gyro in radians\n }", "title": "" }, { "docid": "79c5a3e5cc5642f4dd07853ea38924fe", "score": "0.6025829", "text": "public float getAngle() {\n return mAngle;\n }", "title": "" }, { "docid": "603e0601481281747aeb566907c6a355", "score": "0.60258204", "text": "public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }", "title": "" }, { "docid": "0ba0fa5fa6d5aab950f20a6feb714772", "score": "0.60207343", "text": "public double getTurnRate() {\n return mDThetaDT;\n }", "title": "" }, { "docid": "cc4cb08559746f028aca2da0980568e5", "score": "0.60175496", "text": "public float getAngle() {\n return angle;\n }", "title": "" }, { "docid": "8b0b7eb2c025111ebd38e4f9a052b21f", "score": "0.60105693", "text": "public float getRotationAngle() {\n return mPolygonShapeSpec.getRotation();\n }", "title": "" }, { "docid": "ba708f68ea0b5d1293474cb2b8a3a8b9", "score": "0.6009931", "text": "Integer getFrameRate() {\n return frameRate;\n }", "title": "" }, { "docid": "943c4208d2ffc718c0993234a443a69d", "score": "0.5998874", "text": "public int getReflector() {\r\n\t\treturn rotors.getReflector();\r\n\t}", "title": "" }, { "docid": "ee7c1e3b34cf7f3953cb3a84a41e0f72", "score": "0.59954846", "text": "public int[] getRotors() {\r\n\t\treturn rotorArray;\r\n\t}", "title": "" }, { "docid": "fb03364a33b938134d4c470006ea29ca", "score": "0.5995209", "text": "public synchronized double getPitch() {\n\t\tif (isConnected) {\n\t\t\treturn gyro.getPitch();\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "7e02155dba331289df681c7c40681968", "score": "0.5974124", "text": "public float getAngle() {\n return angle;\n }", "title": "" }, { "docid": "6a7b1f19965fd20339c2f206f1276ba0", "score": "0.59620094", "text": "public String getRegularRate() {\n return regularRate;\n }", "title": "" }, { "docid": "8a5bcaed0d56954113b84e9522ce5f6a", "score": "0.59539425", "text": "public double getAngle()\n {\n return (AngleAverage);\n }", "title": "" }, { "docid": "b05f0d7314f666cbed7f919c50448ba5", "score": "0.59450716", "text": "public float getRotationY() {\n return mRotationY;\n }", "title": "" }, { "docid": "fe967c29efb79a0542276dc547530bca", "score": "0.5938705", "text": "public int getDeviceRotation();", "title": "" }, { "docid": "526aee32e1a7e7c1e1457626b84118f6", "score": "0.5928825", "text": "public double getAngle();", "title": "" }, { "docid": "556593602454aab68dea0215d7b5fe6d", "score": "0.5915214", "text": "Integer getBitRate() {\n return bitRate;\n }", "title": "" }, { "docid": "b9e83b66ce81519b5af9e5804ccb606d", "score": "0.5915059", "text": "public double getAngle() {\n\t\treturn armMotor.getEncPosition();\n\t}", "title": "" }, { "docid": "97238b5d437ff27d5af2b465e8945fc6", "score": "0.5912424", "text": "public CassRotator getCassRotator() {\n if (_cassRotator == null) {\n _cassRotator = CassRotator.DEFAULT; // backward compat...\n }\n return _cassRotator;\n }", "title": "" }, { "docid": "0ba363a8e3ca6b153b72bce155c24850", "score": "0.5900099", "text": "public Double getReturnRate() {\r\n return returnRate;\r\n }", "title": "" }, { "docid": "862081c2cb6f300048d5f8ffb810b224", "score": "0.58980834", "text": "public double getPayRate()\r\n\t{\r\n\treturn payRate;\r\n\t}", "title": "" } ]
8ba7a3205d3dc1d2fead08aceaee0423
Assert that a malformed ID errors as expected.
[ { "docid": "aa69eb569823b3d08d030ae22629ec5a", "score": "0.7870057", "text": "@Test\n public final void testGetMalformedId() throws Exception {\n Response r = getEntity(\"malformed_id\", HttpUtil\n .authHeaderBearer(IdUtil.toString(adminAppToken.getId())));\n\n assertErrorResponse(r, Status.NOT_FOUND);\n }", "title": "" } ]
[ { "docid": "79fefce1af3b525767bdc7fc36c69c0a", "score": "0.7361768", "text": "private static void validateID(String id) {\n }", "title": "" }, { "docid": "161762507130b7795492c362b8d7edb1", "score": "0.7154565", "text": "@Test\n public void itRaisesAnIllegalArgumentExceptionOnInvalidId() {\n try {\n Identification i = new Identification(-1, validName, validStartTime, validWaitingTime, validCompanyId);\n fail(\"Expected IllegalArgumentException by invalid arguments\");\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"id may not be less than 0\");\n }\n }", "title": "" }, { "docid": "7d275221f58be953b41f191a53a564d1", "score": "0.7146964", "text": "@Test\n public final void testPutMalformedId() throws Exception {\n Response r = putEntity(\"malformed_id\", getNewEntity(),\n HttpUtil.authHeaderBearer(adminAppToken.getId()));\n\n assertErrorResponse(r, Status.NOT_FOUND);\n }", "title": "" }, { "docid": "f1f5867631395f40fc6c6b856d3671a4", "score": "0.6925346", "text": "@Test\n public final void testDeleteMalformedId() throws Exception {\n Response r = deleteEntity(\"malformed_id\",\n HttpUtil.authHeaderBearer(adminAppToken.getId()));\n assertErrorResponse(r, Status.NOT_FOUND);\n }", "title": "" }, { "docid": "a326903419f0f1906a2d4315c04fe15c", "score": "0.66511697", "text": "public static String checkTestId(String id) {\n String failure = \"Test id \" + id + \" is invalid\";\n\n try {\n id = id.trim();\n\n if (id.isEmpty()) {\n failure = \"Test id \" + id + \" contains only whitespaces, which is not allowed.\";\n } else if (id.indexOf(\"/\") != -1) {\n failure = \"Test id \" + id + \" contains forward slash, which is not allowed.\";\n } else if (id.indexOf(\"\\\\\") != -1) {\n failure = \"Test id \" + id + \" contains backward slash, which is not allowed.\";\n } else if (id.indexOf(\":\") != -1) {\n failure = \"Test id \" + id + \" contains colon, which is not allowed.\";\n } else if (id.indexOf(\"\\\"\") != -1) {\n failure = \"Test id \" + id + \" contains quotation mark, which is not allowed.\";\n } else if (id.indexOf(\"'\") != -1) {\n failure = \"Test id \" + id + \" contains apostrophe, which is not allowed.\";\n } else if (id.indexOf(\"?\") != -1) {\n failure = \"Test id \" + id + \" contains question mark, which is not allowed.\";\n } else if (id.indexOf(\"%\") != -1) {\n failure = \"Test id \" + id + \" contains percent mark, which is not allowed.\";\n } else if (id.indexOf(\"*\") != -1) {\n failure = \"Test id \" + id + \" contains asterisk, which is not allowed.\";\n } else if (id.indexOf(\"|\") != -1) {\n failure = \"Test id \" + id + \" contains vertical bar, which is not allowed.\";\n } else if (id.indexOf(\"<\") != -1) {\n failure = \"Test id \" + id + \" contains angle brackets, which is not allowed.\";\n } else if (id.indexOf(\">\") != -1) {\n failure = \"Test id \" + id + \" contains angle brackets, which is not allowed.\";\n } else if (id.indexOf(\"{\") != -1) {\n failure = \"Test id \" + id + \" contains braces, which is not allowed.\";\n } else if (id.indexOf(\"}\") != -1) {\n failure = \"Test id \" + id + \" contains braces, which is not allowed.\";\n } else if (id.indexOf(\"~\") != -1) {\n failure = \"Test id \" + id + \" contains tilde, which is not allowed.\";\n } else if (id.indexOf(\"&\") != -1) {\n failure = \"Test id \" + id + \" contains ampersand, which is not allowed.\";\n } else if (id.indexOf(\"+\") != -1) {\n failure = \"Test id \" + id + \" contains plus sign, which is not allowed.\";\n } else if (id.indexOf(\".\") != -1) {\n failure = \"Test id \" + id + \" contains dot mark, which is not allowed.\";\n } else {\n // Nothing to complain about\n failure = null;\n }\n } catch (Exception e) {\n failure = \"Test id \" + id + \" is invalid\";\n }\n\n return failure;\n }", "title": "" }, { "docid": "d0c06ebdc421e88385f99a75a3b4a3fc", "score": "0.64752793", "text": "@SuppressWarnings(\"PMD.UselessParentheses\")\n public boolean isIdValid() {\n return (id == null || id.matches(\"[a-f0-9]{32}\"));\n }", "title": "" }, { "docid": "ebc5e2f0dd47b8cc2f4a8e6da838d717", "score": "0.64434546", "text": "@Test\n @Category(FastTest.class)\n public void validateIDTest () {\n // same IDs\n //assertTrue(a.validateID(\"nodeID\")) ;\n // different IDs\n //assertFalse(a.validateID(\"notTheRightNodeID\")) ;\n }", "title": "" }, { "docid": "0f7c3b5caaa7c4e0f3cfbbf413671580", "score": "0.627726", "text": "@Test(expected = InvalidDataException.class)\n public void testDeleteRole_Id_Invalid() {\n deleteRole(0L);\n }", "title": "" }, { "docid": "4aaf9c71aef82fbcc3f77cd3461d1a3e", "score": "0.6150673", "text": "public static boolean isValidId(String id) {\n String idName = id.replaceAll(\"[0-9]\", \"\");\n String idNumber = id.replaceAll(\"[^\\\\d.]\", \"\");\n return idName.length() > 0 && idName.length() <= 6 && idNumber.length() > 0 && Integer.parseInt(idNumber) > 0;\n }", "title": "" }, { "docid": "d12dd34fc5c15ebc6e155c4086767287", "score": "0.61272186", "text": "protected void validateSid(short id)\n {\n if (id != ContinueRecord.sid)\n {\n throw new RecordFormatException(\"Not a Continue Record\");\n }\n }", "title": "" }, { "docid": "7b4351792c870b0a69d50f346cfba92c", "score": "0.61216813", "text": "@Test\n public void testInvalidJobID(){\n \tString invalidID = \"not a valid ID\";\n \ttry {\n\t\t\ttransporter1.decideJob(invalidID, true);\n\t\t\tfail();\n\t\t} catch (BadJobFault_Exception e) {\n\t\t\tassertEquals(\"Invalid Job ID\", e.getMessage());\n\t\t\tassertEquals(invalidID, e.getFaultInfo().getId());\n\t\t}\n }", "title": "" }, { "docid": "0572180ea45b6fb538b62efdf38a3b0e", "score": "0.6113127", "text": "@Test\n\t@DisplayName(\"When I insert a valid ID Address, so the case is ok\")\n\tvoid test_Id_Address_Is_Not_Cero() {\n\t\taddress.setId(1);\n\t\tassertEquals(1, address.getId());\n\t}", "title": "" }, { "docid": "205d10455f84996154d0538df9da3b99", "score": "0.6094492", "text": "@Test(expected = DomainException.class)\n\tpublic void setId_producto2Mal() throws DomainException {\n\t\tproducto.setId_producto(\"AB2345\");\n\t}", "title": "" }, { "docid": "fb2cb31258653de74c37e86f4d0c42cd", "score": "0.6084965", "text": "@Test(expected=java.lang.IllegalArgumentException.class)\n public void testUniqueID(){\n BankModel bm = new BankModel();\n bm.addAccount(new SavingsAccount(\"lasdjf\"));\n bm.addAccount(new CheckingAccount(\"lasdjf\"));\n }", "title": "" }, { "docid": "dca1ea60bdddf54da3f2f4fab0cfa455", "score": "0.60703135", "text": "protected abstract boolean validateId(T id);", "title": "" }, { "docid": "507c80d592c624e81ce848b206a07835", "score": "0.6067549", "text": "public static boolean isValidID(String clinicid){ //throws InvalidDataTypeException{\r\n // \"abc123\"\r\n // Check the length\r\n if(clinicid.length() == 6){\r\n char[] token = clinicid.toCharArray();\r\n for(int i = 0; i< token.length; i++){\r\n \r\n int asciiVal = token[i];\r\n if (i >= 3){ // numbers are 48-57 0-9\r\n // Numbers\r\n if(asciiVal >= 48 && asciiVal <= 57){\r\n // its a number \r\n }else{\r\n System.err.println(\">:| Wrong Data Type: Please enter a format of abc123!! \");\r\n return false;\r\n //throw new InvalidDataTypeException(\"Error: Worng Format for the ClinicID;\");\r\n }\r\n }else{\r\n //Letter check 65-90 (caps) and 97 - 122 (lowerCase)\r\n if((asciiVal <= 90 && asciiVal >= 65) || (asciiVal >= 97 && asciiVal <= 122 )){\r\n // its a letter might have to switch it around./\r\n }else{\r\n System.err.println(\"Error invalid ID format: Please enter the correct format of abc123\");\r\n //throw new InvalidDataTypeException(\"Error: Wrong format for the ID\");\r\n return false;\r\n }\r\n }\r\n }\r\n }else{\r\n System.err.println(\" >:| Error: Invalid length, Please enter A six character id.\");\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "c71da7a7ee12b407fbabd7b470075d15", "score": "0.60504395", "text": "@Test(expected = DomainException.class)\n\tpublic void setId_producto3Mal() throws DomainException {\n\t\tproducto.setId_producto(\"AB.34\");\n\t}", "title": "" }, { "docid": "f34fa0775e6d312761c579b79396b204", "score": "0.6048888", "text": "public static void checkUnitId(String unitId) throws MzTabParsingException {\n\t\tMatcher matcher = illegalUnitIdCharacters.matcher(unitId);\n\t\tif (matcher.find())\n\t\t\tthrow new MzTabParsingException(\"Invalid UNIT_ID. UNIT_IDs must only contain the characters ‘A’-‘Z’, ‘a’-‘z’, ‘0’-‘9’, and ‘_’.\");\n\t}", "title": "" }, { "docid": "8a00e4069af8a171f1608b79741140a9", "score": "0.60209954", "text": "private void isValidID()\r\n {\r\n String tempId = txtClientID.getText().trim();\r\n if (tempId == null || \"\".equals(tempId)) {\r\n txtOut.setText(\"Invalid Client ID\");\r\n JOptionPane.showMessageDialog(dialog, \"Client ID can not be blank\");\r\n idCheck = false; \r\n return;\r\n }\r\n try { \r\n for (int i = 0; i < tempId.length(); i++) {\r\n if (!Character.isDigit(tempId.charAt(i))) {\r\n idCheck = false; \r\n txtOut.setText(\"Invalid Client ID\");\r\n return;\r\n } \r\n } \r\n }\r\n catch (NullPointerException e) {\r\n JOptionPane.showMessageDialog(dialog, \"Client ID can not be blank\");\r\n }\r\n if (tempId.length() > 4 || tempId.length() < 4) {\r\n JOptionPane.showMessageDialog(dialog,\r\n \"Client ID is 4 digits in length, \\n copy paste longer values won't work either\");\r\n txtOut.setText(\"Invalid Client ID\");\r\n idCheck = false; \r\n return;\r\n } \r\n else {\r\n clientID = Integer.parseInt(tempId); \r\n idCheck = true; \r\n }\r\n }", "title": "" }, { "docid": "6e28c273e24837d250001c191cc89462", "score": "0.59917325", "text": "@org.junit.Test\n public void testValidationId() {\n System.out.println(\"validationId\");\n long card = 0L;\n boolean expResult = true;\n boolean result = Validations.validationId(card);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "d7cd8b7b45c41812f1f84e6d6e470b0e", "score": "0.5980731", "text": "@Test(expectedExceptions = DataNotFoundException.class)\n public void testIdsCannotResolve() {\n final ResolvableConventionLink<MockConvention> resolver = new ResolvableConventionLink<>(IDS_3, MockConvention.class, LINK_RESOLVER);\n resolver.resolve();\n }", "title": "" }, { "docid": "bdf5302576865494e7f5ea6f5e2397ce", "score": "0.597678", "text": "public void setId(String id)\r\n throws IllegalIDException {\r\n // Validation checks\r\n // Check if the ID is a positive eight character hexadecimal number\r\n // Check if the id length is equal to 8\r\n if(id.length() != 8) {\r\n // Throw the error\r\n throw new IllegalIDException(\"The length of the ID must be equal to 8\");\r\n }\r\n\r\n // Use radix to check validity whether the id supplied is valid\r\n try{\r\n Long.parseLong(id,16);\r\n } \r\n catch(NumberFormatException e){\r\n throw new IllegalIDException(\"The ID must have only hexadecimal characters i.e. 0 - 9, A - F\");\r\n }\r\n \r\n // Everything is good\r\n this.id = id;\r\n }", "title": "" }, { "docid": "200ac36753ad74e19404ba4090e776d3", "score": "0.5965658", "text": "@Test(expected = IllegalArgumentException.class)\n public void testInvalidCellId() {\n initMeterStore(true);\n\n // MF defines an end index equals to 10\n Meter meterBad = DefaultMeter.builder()\n .forDevice(did3)\n .fromApp(APP_ID)\n .withCellId(invalidCid)\n .withUnit(Meter.Unit.KB_PER_SEC)\n .withBands(Collections.singletonList(b1))\n .build();\n ((DefaultMeter) meterBad).setState(MeterState.PENDING_ADD);\n meterStore.addOrUpdateMeter(meterBad);\n }", "title": "" }, { "docid": "b9fd11a9f86ccbc34b62e7e6471c73c8", "score": "0.59629387", "text": "@Test\r\n @DisplayName(\"Bad length name short\")\r\n void decodeValidationError2(){\r\n //foo. = 3 102, 111, 111, 192, 5 //-64 signed = 192 unsigned\r\n byte[] buff = { 3, 'o', 'o', -64, 5,\r\n 0, 2,\r\n 0, 1,\r\n 0, 0, 0, 0,\r\n 0, 6,\r\n 3, 'f', 'o', 'o', -64, 5};\r\n ByteArrayInputStream b = new ByteArrayInputStream(buff);\r\n assertThrows(ValidationException.class, () -> ResourceRecord.decode(b));\r\n }", "title": "" }, { "docid": "357d4aa6f8634c2376d559f4db6e350e", "score": "0.59569204", "text": "@Test\n public void testMakingIds()\n {\n IdType pmid = iddb.getType(\"pmid\");\n IdType pmcid = iddb.getType(\"pmcid\");\n IdType mid = iddb.getType(\"mid\");\n IdType doi = iddb.getType(\"doi\");\n IdType aiid = iddb.getType(\"aiid\");\n\n Identifier id;\n\n // Make Identifiers from value strings alone\n\n id = iddb.id(\"123456\");\n checkId(\"1.1\", pmid, \"123456\", \"pmid:123456\", false, id);\n\n id = iddb.id(\"44567.8\");\n checkId(\"1.2\", pmid, \"44567.8\", \"pmid:44567.8\", true, id);\n\n id = iddb.id(\"pmC899476\");\n checkId(\"1.3\", pmcid, \"PMC899476\", \"pmcid:PMC899476\", false, id);\n\n id = iddb.id(\"PmC44567.8\");\n checkId(\"1.4\", pmcid, \"PMC44567.8\", \"pmcid:PMC44567.8\", true, id);\n\n id = iddb.id(\"Squabble3\");\n checkId(\"1.5\", mid, \"SQUABBLE3\", \"mid:SQUABBLE3\", true, id);\n\n id = iddb.id(\"10.1016/j.fsi.2017.03.003\");\n checkId(\"1.6\", doi, \"10.1016/j.fsi.2017.03.003\",\n \"doi:10.1016/j.fsi.2017.03.003\", false, id);\n\n // invalid id string\n assertNull(\"1.7\", iddb.id(\"7U.8*5-uuj\"));\n\n // Same tests but using makeId(null, value)\n id = iddb.id((IdType) null, \"123456\");\n checkId(\"2.1\", pmid, \"123456\", \"pmid:123456\", false, id);\n\n id = iddb.id((IdType) null, \"44567.8\");\n checkId(\"2.2\", pmid, \"44567.8\", \"pmid:44567.8\", true, id);\n\n id = iddb.id((IdType) null, \"pmC899476\");\n checkId(\"2.3\", pmcid, \"PMC899476\", \"pmcid:PMC899476\", false, id);\n\n id = iddb.id((IdType) null, \"PmC44567.8\");\n checkId(\"2.4\", pmcid, \"PMC44567.8\", \"pmcid:PMC44567.8\", true, id);\n\n id = iddb.id((IdType) null, \"Squabble3\");\n checkId(\"2.5\", mid, \"SQUABBLE3\", \"mid:SQUABBLE3\", true, id);\n\n id = iddb.id((IdType) null, \"10.1016/j.fsi.2017.03.003\");\n checkId(\"2.6\", doi, \"10.1016/j.fsi.2017.03.003\",\n \"doi:10.1016/j.fsi.2017.03.003\", false, id);\n\n // invalid id string\n id = iddb.id((IdType) null, \"7U.8*5-uuj\");\n assertNull(\"2.7\", id);\n\n // Specify the type by name (case insensitive)\n\n id = iddb.id(pmid, \"487365\");\n checkId(\"3.1\", pmid, \"487365\", \"pmid:487365\", false, id);\n\n id = iddb.id(aiid, \"487365\");\n checkId(\"3.2\", aiid, \"487365\", \"aiid:487365\", true, id);\n\n id = iddb.id(pmcid, \"84786\");\n checkId(\"3.3\", pmcid, \"PMC84786\", \"pmcid:PMC84786\", false, id);\n\n id = iddb.id(pmcid, \"84786.1\");\n checkId(\"3.4\", pmcid, \"PMC84786.1\", \"pmcid:PMC84786.1\", true, id);\n\n id = iddb.id(pmcid, \"PmC84786\");\n assertTrue(iddb.isValid(\"PmC84786\"));\n assertTrue(iddb.isValid(pmcid, \"PmC84786\"));\n checkId(\"3.5\", pmcid, \"PMC84786\", \"pmcid:PMC84786\", false, id);\n\n id = iddb.id(pmcid, \"PMc84786.1\");\n assertTrue(iddb.isValid(\"PMc84786.1\"));\n assertTrue(iddb.isValid(pmcid, \"PMc84786.1\"));\n checkId(\"3.6\", pmcid, \"PMC84786.1\", \"pmcid:PMC84786.1\", true, id);\n\n id = iddb.id(mid, \"Squabble3\");\n assertTrue(iddb.isValid(\"Squabble3\"));\n checkId(\"3.7\", mid, \"SQUABBLE3\", \"mid:SQUABBLE3\", true, id);\n\n id = iddb.id(doi, \"10.1016/j.fsi.2017.03.003\");\n checkId(\"3.8\", doi, \"10.1016/j.fsi.2017.03.003\",\n \"doi:10.1016/j.fsi.2017.03.003\", false, id);\n\n // invalid string\n id = iddb.id(pmcid, \"PPMC77684\");\n assertNull(\"3.10\", id);\n\n // Specify the type with IdType objects\n\n id = iddb.id(pmid, \"487365\");\n checkId(\"4.1\", pmid, \"487365\", \"pmid:487365\", false, id);\n\n id = iddb.id(aiid, \"487365\");\n checkId(\"4.2\", aiid, \"487365\", \"aiid:487365\", true, id);\n\n id = iddb.id(pmcid, \"84786\");\n checkId(\"4.3\", pmcid, \"PMC84786\", \"pmcid:PMC84786\", false, id);\n\n id = iddb.id(pmcid, \"84786.1\");\n checkId(\"4.4\", pmcid, \"PMC84786.1\", \"pmcid:PMC84786.1\", true, id);\n\n id = iddb.id(pmcid, \"PMc84786\");\n checkId(\"4.5\", pmcid, \"PMC84786\", \"pmcid:PMC84786\", false, id);\n\n id = iddb.id(pmcid, \"PmC84786.1\");\n checkId(\"4.6\", pmcid, \"PMC84786.1\", \"pmcid:PMC84786.1\", true, id);\n\n id = iddb.id(mid, \"Squabble3\");\n checkId(\"4.7\", mid, \"SQUABBLE3\", \"mid:SQUABBLE3\", true, id);\n\n id = iddb.id(doi, \"10.1016/j.fsi.2017.03.003\");\n checkId(\"4.8\", doi, \"10.1016/j.fsi.2017.03.003\",\n \"doi:10.1016/j.fsi.2017.03.003\", false, id);\n\n // invalid string\n id = iddb.id(pmcid, \"PPMC77684\");\n assertNull(\"4.9\", id);\n\n\n // Specify the type with prefixes (case insensitive)\n\n id = iddb.id(\"pmid:487365\");\n checkId(\"5.1\", pmid, \"487365\", \"pmid:487365\", false, id);\n\n id = iddb.id(\"aIId:487365\");\n checkId(\"5.2\", aiid, \"487365\", \"aiid:487365\", true, id);\n\n id = iddb.id(\"PMCid:84786\");\n checkId(\"5.3\", pmcid, \"PMC84786\", \"pmcid:PMC84786\", false, id);\n\n id = iddb.id(\"pmcId:84786.1\");\n checkId(\"5.4\", pmcid, \"PMC84786.1\", \"pmcid:PMC84786.1\", true, id);\n\n id = iddb.id(\"pmcid:PMc84786\");\n checkId(\"5.5\", pmcid, \"PMC84786\", \"pmcid:PMC84786\", false, id);\n\n id = iddb.id(\"PMCID:PmC84786.1\");\n checkId(\"5.6\", pmcid, \"PMC84786.1\", \"pmcid:PMC84786.1\", true, id);\n\n id = iddb.id(\"Mid:Squabble3\");\n checkId(\"5.7\", mid, \"SQUABBLE3\", \"mid:SQUABBLE3\", true, id);\n\n id = iddb.id(\"doi:10.1016/j.fsi.2017.03.003\");\n checkId(\"5.8\", doi, \"10.1016/j.fsi.2017.03.003\",\n \"doi:10.1016/j.fsi.2017.03.003\", false, id);\n\n // invalid string\n id = iddb.id(\"pmcid:PPMC77684\");\n assertNull(\"5.9\", id);\n\n // Some combinations of type and prefixes\n\n id = iddb.id(pmid, \"pmid:487365\");\n checkId(\"6.1\", pmid, \"487365\", \"pmid:487365\", false, id);\n\n id = iddb.id(aiid, \"aIId:487365\");\n checkId(\"6.2\", aiid, \"487365\", \"aiid:487365\", true, id);\n\n id = iddb.id(pmcid, \"PMCid:84786\");\n checkId(\"6.3\", pmcid, \"PMC84786\", \"pmcid:PMC84786\", false, id);\n\n id = iddb.id(pmcid, \"pmcId:84786.1\");\n checkId(\"6.4\", pmcid, \"PMC84786.1\", \"pmcid:PMC84786.1\", true, id);\n\n id = iddb.id(pmid, \"pmcid:PMc84786\");\n assertNull(\"6.5\", id);\n\n id = iddb.id(mid, \"pmcid:pmc84786.1\");\n assertNull(\"6.6\", id);\n }", "title": "" }, { "docid": "af696f88db284d926bd7e390b9c0ce85", "score": "0.59417063", "text": "@Test(timeout = 4000)\n public void test455() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.code((Object) \"DavU}Ax!MMwD%oR\");\n Component component1 = component0.h3();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component1._isGeneratedId());\n }", "title": "" }, { "docid": "176f67d448fa386db0d71a45c6b91acd", "score": "0.59242404", "text": "@Test\r\n\tpublic void testForExceptionsGivenNgtiveIntegerID() {\r\n\t\ttry {\r\n\t\t\tmyApp.enrolStudentInPaper(-100, \"Geol01\");\r\n\t\t\tfail(\"Expected IllegalArgumentException when 1st argu is negative\");\r\n\t\t} catch (IllegalArgumentException e){\r\n\t\t\t//passed the test\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "ec064d443f445251c975fe33abcae3a8", "score": "0.5912272", "text": "@Ignore\r\n public void testIdDisplay() {\n helper.createDummyData(driver);\r\n target.clickSubmit();\r\n // Assert confirmation number is present\r\n assertTrue(target.idIsPresent());\r\n }", "title": "" }, { "docid": "cd064877f28769dc3cbb09ff253b2830", "score": "0.5879612", "text": "@SuppressWarnings(\"UnusedDeclaration\")\r\n public void testUniqueIds() {\r\n LineNumberReader is = ParserUtilities.getDescribedReader(MGF_RESOURCE);\r\n testMGFStream(is);\r\n\r\n }", "title": "" }, { "docid": "a4de71d253e0044ddd0dd3b77286ab16", "score": "0.58665264", "text": "@org.junit.Test\n public void testValidationOfIdCard() {\n System.out.println(\"validationOfIdCard\");\n String identification = \"\";\n boolean expResult = false;\n boolean result = Validations.validationOfIdCard(identification);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "61c47052470513088b41d25ab28caae2", "score": "0.5866294", "text": "private int validateIdInput(String idInput) {\n if (ifInteger(idInput) == -1) {\n JOptionPane.showMessageDialog(null, \"The id input must be an integer!\");\n return -1;\n }\n // Check if the id is valid\n int id = ifInteger(idInput);\n int handCardSize = g.getCurrentPlayer().getHandCards().size();\n if (id < 1 || id > handCardSize) {\n JOptionPane.showMessageDialog(null, \"Invalid id.\");\n return -1;\n }\n return id;\n }", "title": "" }, { "docid": "8ea6ece3068462109791c867bf6f693d", "score": "0.5860337", "text": "@Test(expected = DomainException.class)\n\tpublic void setId_producto1Mal() throws DomainException {\n\t\tproducto.setPro_descripcion(\"AB2\");\n\t}", "title": "" }, { "docid": "62446ef91d4a6d33849c95a783416693", "score": "0.58528835", "text": "@Test @DisplayName(\"Bad 0x0001\")\r\n void decodeValidationError3(){\r\n //foo. = 3 102, 111, 111, 192, 5 //-64 signed = 192 unsigned\r\n byte[] buff = { 3, 'f', 'o', 'o', -64, 5,\r\n 0, 2,\r\n 0,\r\n 0, 0, 0, 0,\r\n 0, 6,\r\n 3, 'f', 'o', 'o', -64, 5};\r\n ByteArrayInputStream b = new ByteArrayInputStream(buff);\r\n assertThrows(ValidationException.class, () -> ResourceRecord.decode(b));\r\n }", "title": "" }, { "docid": "cf525b08c8e4305b5e8ea12aefff6686", "score": "0.58514833", "text": "@Test(expected = IllegalArgumentException.class)\n public void testGettingContactNonExistingIdException() {\n manager.getContacts(1, 2, INVALID_ID);\n }", "title": "" }, { "docid": "6ebf86b1e8b926a73d72b561a39ade3e", "score": "0.58510506", "text": "public void idInvalido(String id) {\n\t\tif (id == null || id.trim().isEmpty())\n\t\t\tthrow new IllegalArgumentException(\"Entrada invalida: id do usuario nao pode ser vazio ou nulo.\");\n\t}", "title": "" }, { "docid": "37668eb35fbfaf45ff374b36a25480ca", "score": "0.58502036", "text": "public boolean validId (String id) {\n for (Integer x : idMapper.keySet()) {\n if (String.valueOf(x.intValue()).equals(id)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "f3a08d36cd809d9d096cf823a691921c", "score": "0.5845935", "text": "public void validateStudentID(String studentID) throws InvalidIDException\n\t{\n\t\t\n\t\tint length = studentID.length(); \n\t\tif (studentID.isBlank() || !studentID.matches(\"[0-9]+\") || length != 7 || !studentID.startsWith(\"0\",0))\n\t\t{\n\t\t\t\tthrow new InvalidIDException();\n\t\t}\n\n\t}", "title": "" }, { "docid": "1ff8aa98a82552ba7a18ae6d8a07de14", "score": "0.5844346", "text": "@Test @DisplayName(\"Bad 0x0001\")\r\n void decodeValidationError6(){\n byte[] buff = { 3, 'f', 'o', 'o', -64, 5,\r\n 0, 2,\r\n 1, 1,\r\n 0, 0, 0, 0,\r\n 0, 6,\r\n 3, 'f', 'o', 'o', -64, 5};\r\n ByteArrayInputStream b = new ByteArrayInputStream(buff);\r\n assertThrows(ValidationException.class, () -> ResourceRecord.decode(b));\r\n }", "title": "" }, { "docid": "2ef920d5fa98f270d8d731eae5110088", "score": "0.5843397", "text": "protected void checkUseridFormat(String userID) throws IncorrectFormat {\n\t\tfinal int MAX_LENGTH=20;\n\t\tif (userID.length()<=0||userID.length()>MAX_LENGTH){\n\t\t\tthrow new IncorrectFormat(\"length of user id should >0 and <=\"+MAX_LENGTH);\n\t\t}else if (userID.contains(\" \")){\n\t\t\tthrow new IncorrectFormat(\"user id should not contain space\");\n\t\t}\n\t}", "title": "" }, { "docid": "f70d31d5e6455ae2aff29047bb02ea9e", "score": "0.5841254", "text": "@Test\n public void test_getId() {\n long value = 1L;\n instance.setId(value);\n\n assertEquals(\"'getId' should be correct.\",\n value, instance.getId());\n }", "title": "" }, { "docid": "f8106cf92d85efd748e52517cebb8657", "score": "0.5840258", "text": "@Test @DisplayName(\"Bad 0x0001\")\r\n void decodeValidationError4(){\n byte[] buff = { 3, 'f', 'o', 'o', -64, 5,\r\n 0, 2,\r\n 0, 1, 1,\r\n 0, 0, 0, 0,\r\n 0, 6,\r\n 3, 'f', 'o', 'o', -64, 5};\r\n ByteArrayInputStream b = new ByteArrayInputStream(buff);\r\n assertThrows(ValidationException.class, () -> ResourceRecord.decode(b));\r\n }", "title": "" }, { "docid": "003da133d12484be8d0283c19a8ddd8a", "score": "0.5831711", "text": "@Test(timeout = 4000)\n public void test332() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, \"?~s@=:G%7r\");\n TableBlock tableBlock0 = table0.tbody();\n assertTrue(tableBlock0._isGeneratedId());\n \n tableBlock0.id(\"?~s@=:G%7r\");\n assertFalse(tableBlock0._isGeneratedId());\n }", "title": "" }, { "docid": "d3f490f465c6fce2e6db35e952125df9", "score": "0.5824064", "text": "@Test\n\tpublic final void testIsValid_long() throws Exception {\n\t\tAssert.assertFalse(_validator.isValid(3L, Action.CREATE, _failures));\n\t\t_utils.checkFailureForInternalError(_failures);\n\t\t\n\t\t// should fail with appropriate error message if id is null\n\t\t_failures.clear(); _failures.clear(); Assert.assertFalse(_validator.isValid((Long)null, Action.DELETE, _failures));\n\t\t_utils.checkFailureForMissingValue(_failures, \"id\");\n\t\t\n\t\t// should not fail if policy can't be found for the specified id\n\t\twhen(_store.getPolicy(1L)).thenReturn(null);\n\t\twhen(_store.getPolicy(2L)).thenThrow(new Exception());\n\t\tRangerPolicy existingPolicy = mock(RangerPolicy.class);\n\t\twhen(_store.getPolicy(3L)).thenReturn(existingPolicy);\n\t\t_failures.clear(); Assert.assertTrue(_validator.isValid(1L, Action.DELETE, _failures));\n\t\tAssert.assertTrue(_failures.isEmpty());\n\t\t_failures.clear(); Assert.assertTrue(_validator.isValid(2L, Action.DELETE, _failures));\n\t\tAssert.assertTrue(_failures.isEmpty());\n\n\t\t// if policy exists then delete validation should pass, too!\n\t\t_failures.clear(); Assert.assertTrue(_validator.isValid(3L, Action.DELETE, _failures));\n\t\tAssert.assertTrue(_failures.isEmpty());\n\t}", "title": "" }, { "docid": "6ca3132db271ce4e6ec450f49b2fe5a7", "score": "0.58219177", "text": "boolean hasValidID();", "title": "" }, { "docid": "f166125a4c25ac0bf4a5992aecddfef4", "score": "0.5806215", "text": "@Test(timeout = 4000)\n public void test57() throws Throwable {\n String string0 = EWrapperMsgGenerator.nextValidId(5);\n assertEquals(\"Next Valid Order ID: 5\", string0);\n }", "title": "" }, { "docid": "13869120b8edaf3870d8537674beaf35", "score": "0.58038706", "text": "public static boolean isValidId(String id) {\n try {\n int tempInt = Integer.parseInt(id);\n return (tempInt >= 0);\n } catch (NumberFormatException e) {\n return false;\n }\n }", "title": "" }, { "docid": "77cfdb4c1454fe71b269c3fa53a32a85", "score": "0.579952", "text": "@Test\n public void testSetIdBad() {\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "76fe827c6c2a23866d3ed72741854e1b", "score": "0.5791221", "text": "@org.junit.jupiter.api.Test\n public void testSetItemIdBad() {\n System.out.println(\"setItemId bad\");\n int itemId = -1;\n SaleItem instance = new SaleItem();\n int original = instance.getItemId();\n try {\n instance.setItemId(itemId);\n fail(\"Allowed to set an invalid itemId.\");\n } catch (IllegalArgumentException iae) {\n assertEquals(original, instance.getItemId());\n }\n }", "title": "" }, { "docid": "80550e3504ebbc2dab2d917a72e2a165", "score": "0.57848644", "text": "private String validateID(String ID){\n StringBuilder string = new StringBuilder();\n // if the ID doesn't follow the format (2 leters, a hyphen, followed by 4 numbers)\n // add the output statement that the employee ID must be in a specific format\n String regex = \"\\\\w{2}[-]{1}\\\\d{4}\";\n if(!(Pattern.matches(regex, ID))){\n string.append(\"The employee ID must be in the format of AA-1234.\\n\");\n }\n // return output statement\n return string.toString();\n }", "title": "" }, { "docid": "07ffeb4529652b7f1c47cbf36c3f4a93", "score": "0.5770869", "text": "@Test @DisplayName(\"Bad 0x0001\")\r\n void decodeValidationError5(){\n byte[] buff = { 3, 'f', 'o', 'o', -64, 5,\r\n 0, 2,\r\n 0, 2,\r\n 0, 0, 0, 0,\r\n 0, 6,\r\n 3, 'f', 'o', 'o', -64, 5};\r\n ByteArrayInputStream b = new ByteArrayInputStream(buff);\r\n assertThrows(ValidationException.class, () -> ResourceRecord.decode(b));\r\n }", "title": "" }, { "docid": "fed2bf2b74cd10accb2d4c31d0c3ffa5", "score": "0.57676446", "text": "@Test\n public final void findByMenuIdWithInvalidData() {\n new MockUp<Validators>() {\n @Mock\n public final void validateMenId(final int menId) {\n throw new IllegalArgumentException(\"Invalid Menu Id\");\n }\n };\n\n try {\n MenuFactory.findByMenuId(12);\n fail(\"Validation Failed\");\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"Invalid Menu Id\");\n }\n }", "title": "" }, { "docid": "bd943ea62c50966833b1dc00d70979f4", "score": "0.5758093", "text": "@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.nextValidId(1368);\n assertEquals(\"Next Valid Order ID: 1368\", string0);\n }", "title": "" }, { "docid": "a088c1b9e16c425aef0bb3b467561898", "score": "0.57569885", "text": "@Test\n public void testGetWithInvalidId() {\n AsyncTasks result = dao.get(Guid.newGuid());\n\n assertNull(result);\n }", "title": "" }, { "docid": "75827a108e89e4c775b99ac3175de4ae", "score": "0.57463527", "text": "@Test(timeout = 4000)\n public void test432() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Link link0 = new Link(errorPage0, \"+NL3UA]JkaU\");\n Component component0 = link0.a();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "898ec1a9d3b967f493c7bf68b42c6436", "score": "0.5742322", "text": "@Test\r\n\tpublic void testInvalidOwnerId() {\r\n\t\t\r\n\t\t//Tests empty ownerId\r\n\t\ttry {\r\n\t\t\tCommand c = new Command(CommandValue.INVESTIGATE, \"\", OnHoldReason.AWAITING_CALLER, ResolutionCode.PERMANENTLY_SOLVED, CancellationCode.DUPLICATE, \"Owner likes food\");\r\n\t\t\tc.getOwnerId();\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (IllegalArgumentException e) {\r\n\t\t\tassertNull(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Tests null ownerId\r\n\t\ttry {\r\n\t\t\tCommand c = new Command(CommandValue.INVESTIGATE, null, OnHoldReason.AWAITING_CALLER, ResolutionCode.PERMANENTLY_SOLVED, CancellationCode.DUPLICATE, \"Owner likes food\");\r\n\t\t\tc.getOwnerId();\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (IllegalArgumentException e) {\r\n\t\t\tassertNull(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "150ce3f2606abc40391371793f0ea9ab", "score": "0.57384855", "text": "@Test(timeout = 4000)\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0._setGeneratedId(true);\n assertTrue(errorPage0._isGeneratedId());\n }", "title": "" }, { "docid": "eb0695804db95d8620cb9ff6a4b49a69", "score": "0.5732187", "text": "@Test(timeout = 4000)\n public void test62() throws Throwable {\n String string0 = EWrapperMsgGenerator.nextValidId(3592);\n assertEquals(\"Next Valid Order ID: 3592\", string0);\n }", "title": "" }, { "docid": "949752da355ccb313ac52a96ab771ca0", "score": "0.57289565", "text": "@Override\r\n\tpublic int idCheck(String id) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "e166522ddd5372a053d2995534a9fac0", "score": "0.5723552", "text": "@Test\r\n\tpublic void givenInvalidReferenceIDInRequestDeleteReferenceByIdShouldThrowDataNotFoundException() {\n\t\tgiven().\r\n\t\t\t\tcontentType(\"application/json\").\r\n\t\t\t\theader(\"Authorization\", \"Bearer \" + getToken()).\r\n\t\t\t\tdelete(\"/xref-api/v1/references/\" + testDataHelper.getRandomAlphanumericString()).\r\n\t\t\t\t\r\n\t\tthen().\r\n\t\t\t\tassertThat().\r\n\t\t\t\tstatusCode(404).\r\n\t\t\t\tbody(\"exception\", equalTo(\"com.virginvoyages.exception.DataNotFoundException\")).\r\n\t\t\t\tlog().\r\n\t\t\t\tall();\r\n\t}", "title": "" }, { "docid": "a2b6f62faa8a5ffc5032fdcc34801f0e", "score": "0.5718265", "text": "public void testInvalid() {\n\tString[] invalidRomanStrings = {\n\t \"xyzzy\", \"1234abc\", \"\", \"-iv\", \n\t \"((MMCXLVII)CDLXXXIII)DCXLVIII\"\n\t};\n\t\t \n\tfor (String s : invalidRomanStrings) {\n\t try {\n\t\tnew Roman(s); \n\t\tfail(s + \" is an invaid Roman string\");\n\t } catch (NumberFormatException ex) {\n\t } catch (IllegalArgumentException ex) {\n\t }\n\t}\n\t\n\tString[] invalidArabicStrings = {\n\t \"-1\", \"0\", Long.toString(Roman.MAX_VALUE+1)\n\t};\n\t\t\t \n\tfor (String s : invalidArabicStrings) {\n\t try {\n\t\tnew Roman(s); \n\t\tfail(s + \" is an invalid Arabic String\");\n\t } catch (NumberFormatException ex) {\n\t } catch (IllegalArgumentException ex) {\n\t }\n\t}\n\t\n\tfor (String s : invalidArabicStrings) {\n\t try {\n\t\tshort shortValue = Short.parseShort(s);\n\t\tnew Roman(shortValue); \n\t\tfail(shortValue + \" is an invalid integer value\");\n\t } catch (NumberFormatException ex) {\n\t } catch (IllegalArgumentException ex) {\n\t }\n\t}\n }", "title": "" }, { "docid": "1298bc9954aeb21cb0c8d96caf208075", "score": "0.5697117", "text": "public InvalidObjectIdException(byte[] bytes, int offset, int length) {\n\t\tsuper(msg(bytes, offset, length));\n\t}", "title": "" }, { "docid": "c38fa72d466811d16341c2f047b67cc8", "score": "0.569246", "text": "@Test(timeout = 4000)\n public void test456() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.i((Object) \"?~s@=:G%7r\");\n Component component1 = component0.h6();\n assertTrue(component1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "7bdde319b803323ff6253c6c4c3e56f6", "score": "0.568362", "text": "@Test(expected = SpecificationException.class)\n public void testCheckTableID() {\n DefTableSpec tableSpec1 = new DefTableSpec();\n DefTableSpec tableSpec2 = new DefTableSpec();\n tableSpec1.setColumnSpecs(new ArrayList<>());\n tableSpec2.setColumnSpecs(new ArrayList<>());\n tableSpec1.setNumRows(1);\n tableSpec2.setNumRows(1);\n\n tableParser.parse(tableSpec1);\n tableParser.parse(tableSpec2);\n }", "title": "" }, { "docid": "18e2a272cdc3c0b70cab540aa52f04f1", "score": "0.567683", "text": "@Test\n\tpublic void testValidateEmployeeId() {\n\t\tassertFalse(validateEmployee(true, \"employees1.json\").hasErrors());\n\t\t//The employee id is invalid\n\t\tassertTrue(validateEmployee(false, \"employees1.json\").hasErrors());\n\t}", "title": "" }, { "docid": "4c9fbd03a787cbd0ff54c5ef441b3824", "score": "0.5673965", "text": "@Test(timeout = 4000)\n public void test448() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.strike();\n Component component1 = component0.blockquote();\n assertTrue(component1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "aa9f95b79d5ba905eb2d6fa934362db5", "score": "0.56726193", "text": "public static boolean verifyBuildingID (Building building) {\n String split[] = building.getId().split(\"-\");\n return split.length == 3 && split[1].equals(\"0\") && split[2].equals(\"0\");\n }", "title": "" }, { "docid": "de6bb1e5367d22b0aef5daf2c5fd4eac", "score": "0.566674", "text": "@Test\n\tpublic void testVerify_DigitAppearsTwice() {\n\t\tfail();\n\t}", "title": "" }, { "docid": "d5ff32dbed058cf97ee9da7e4bfb5d8f", "score": "0.5664296", "text": "@Test\n\t\tpublic void canSetId() {\n\t\t\tcompositeAnswer.setId(\"newId\");\n\t\t\t\n\t\t\tassertThat(compositeAnswer.getId(), is(\"newId\"));\n\t\t\tassertThat(compositeAnswer.isValid(), is(true));\n\t\t}", "title": "" }, { "docid": "a022bf43d3bb892ba07379562f78560b", "score": "0.5660746", "text": "private void checkForInvalidPath() {\n // Check for combinations of endpoints not allowed.\n if (\n // ID contains fcr:acl or fcr:tombstone AND fcr:metadata or fcr:versions\n ((this.fullId.contains(FCR_ACL) || this.fullId.contains(FCR_TOMBSTONE)) &&\n (this.fullId.contains(FCR_METADATA) || this.fullId.contains(FCR_VERSIONS))) ||\n // or ID contains fcr:acl AND fcr:tombstone\n (this.fullId.contains(FCR_TOMBSTONE) && this.fullId.contains(FCR_ACL))\n ) {\n throw new InvalidResourceIdentifierException(String.format(\"Path is invalid: %s\", pathOnly));\n }\n // Ensure we don't have 2 of any of the extensions, ie. info:fedora/object/fcr:acl/fcr:acl, etc.\n for (final Pattern extension : extensions) {\n if (extension.matcher(this.fullId).results().count() > 1) {\n throw new InvalidResourceIdentifierException(String.format(\"Path is invalid: %s\", pathOnly));\n }\n }\n }", "title": "" }, { "docid": "915f373450e3c95b98ca697998fceea6", "score": "0.56501174", "text": "@Test\n public void pharmaceuticalIdTest() {\n // TODO: test pharmaceuticalId\n }", "title": "" }, { "docid": "dba294a2d1dca78c3f4f5950fa41a2ae", "score": "0.5644786", "text": "@Test(timeout = 4000)\n public void test369() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Table table0 = new Table(errorPage0, \"?~s@=:G%7r\");\n TableRow tableRow0 = table0.tr();\n Component component0 = tableRow0.strong((Object) \"1yB8rWK\");\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "e272d2ebec55dfdb899da90840b1eaec", "score": "0.5642178", "text": "public String isValidId(String id)\n\t{\n\t\treturn MiRidesUtilities.isRegNoValid(id);\n\t}", "title": "" }, { "docid": "a4789c7028215b73c72b74e5651adcc3", "score": "0.5638493", "text": "@Test\n public void shouldRaiseInvalidDataException() {\n String erroneousField = \"Name\";\n String erroneousValue = \"abcdef\";\n try {\n ParseDataHelper.raiseInvalidDataException(erroneousField, \"Name\");\n } catch (Exception e) {\n Assert.assertTrue(e instanceof DataValidationException);\n Assert.assertEquals(((DataValidationException)e).getErrorCode(), ErrorCategoryConstants.INVALID_DATA);\n Assert.assertEquals(((DataValidationException)e).getErroneousField(), erroneousField);\n }\n }", "title": "" }, { "docid": "a5cc3e80c326c9aff1189455af364294", "score": "0.5630663", "text": "static public void\n\tcheck_error_code_error_message_with_invalid_id_in_path_param(String url, RequestSpecification requestSpecs) {\n\t\tlogger.debug(\"common_check_error_code_error_message_with_invalid_id_in_path_param()\");\n\t\tString invalidId=\"ghhggghg\";\n\t\t\n\t\tResponse response=requestSpecs.when().\n\t\t \t\t\tget(url,invalidId).\n\t\t \t then().\n\t\t \t \t\textract().response();\n\t\t\n\t\tCommon.checkForErrorCodeAndErrorMessage(response,\"invalid id\");\n\n\t}", "title": "" }, { "docid": "8733dbca1477781f3ad64e81c57bec41", "score": "0.5614362", "text": "@Test @DisplayName(\"Bad name incorrect ending 64\")\r\n void decodeValidationErrorBadEnding(){\r\n //foo. = 3 102, 111, 111, 192, 5 //-64 signed = 192 unsigned\r\n byte[] buff = { 3, 'f', 'o', 'o', 64, 5,\r\n 0, 2,\r\n 0, 1,\r\n 0, 0, 0, 0,\r\n 0, 6,\r\n 3, 'f', 'o', 'o', -64, 5};\r\n ByteArrayInputStream b = new ByteArrayInputStream(buff);\r\n assertThrows(EOFException.class, () -> ResourceRecord.decode(b));\r\n }", "title": "" }, { "docid": "0e04e1a4f52bd1225284dfd0f5411193", "score": "0.5608195", "text": "@SuppressWarnings(\"unused\")\n\t@Test(expected = IllegalArgumentException.class)\n\tpublic void testEmptyIds () {\n\t\tnew EpisodeLatest();\n\t}", "title": "" }, { "docid": "f7585428a79437e8e989f60f1b819e8c", "score": "0.5605672", "text": "@Test @DisplayName(\"Invalid IPv4 size 3\")\r\n void decodeARDataInvalid0(){\r\n byte[] buff = { 0,\r\n 0, 1,\r\n 0, 1,\r\n 0, 0, 0, 0,\r\n 0, 3,\r\n 0, 0, 0};\r\n ByteArrayInputStream b = new ByteArrayInputStream(buff);\r\n assertThrows(ValidationException.class, () -> ResourceRecord.decode(b));\r\n }", "title": "" }, { "docid": "e0a27fe44a01e1c904221844c9d5cb62", "score": "0.5602176", "text": "@Test(timeout = 4000)\n public void test431() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Long long0 = new Long(0L);\n Component component0 = errorPage0.q((Object) long0);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "ad08e196466e3419017a494c1fc01b00", "score": "0.5600728", "text": "@Test\n public void testAddSpace() throws Exception {\n\n List<String> invalidIds = new ArrayList<String>();\n\n invalidIds.add(\"Test-Space\"); // Uppercase\n invalidIds.add(\"test-space!\"); // Special character\n invalidIds.add(\"test..space\"); // Multiple periods\n invalidIds.add(\"-test-space\"); // Starting with a dash\n invalidIds.add(\"test-space-\"); // Ending with a dash\n invalidIds.add(\"test-.space\"); // Dash next to a period\n invalidIds.add(\"te\"); // Too short\n invalidIds.add(\"test-space-test-space-test-space-\" +\n \"test-space-test-space-test-spac\"); // Too long\n invalidIds.add(\"127.0.0.1\"); // Formatted as an IP address\n\n for (String id : invalidIds) {\n checkInvalidSpaceId(id);\n }\n\n // Test valid space names\n\n String id = \"test-space.test.space\";\n checkValidSpaceId(id);\n\n id = \"tes\";\n checkValidSpaceId(id);\n\n }", "title": "" }, { "docid": "bfda78ebde49441016186a608ed09ddb", "score": "0.5598705", "text": "@When(\"^a get request is sent to the API with incorrect or invalid id \\\"([^\\\"]*)\\\"$\")\n\tpublic void test_046_a_get_request_with_incorrect_or_invalid_id(String id) throws Throwable {\n\t\t// Specify the base URL to the RESTful web service\n\t\tRestAssured.baseURI = UrlBuilder.getBasePath();\n\t\t\n\t\t// Get the RequestSpecification of the request\n\t\tRequestSpecification httpRequest = RestAssured.given();\n\n\t\t// Response from the server.\n\t\tresponse = httpRequest.request(Method.GET, UrlBuilder.getTlePath(id));\n\t}", "title": "" }, { "docid": "fe2f4aec7f68448e4342034d6da62ebf", "score": "0.55980486", "text": "@Test\n @Rollback\n public void createPalette_idSet_throwsTIdAlreadyDefined() {\n long idPalette = 0L;\n TPalette testPalette = createPalette(\"testPalette\", \"testUser\", idPalette);\n\n assertThatThrownBy(() -> handler.createPalette(testPalette)).isInstanceOf(TIdAlreadyDefined.class);\n }", "title": "" }, { "docid": "ff037b0010779c7a2cd74e858e1e219d", "score": "0.55971944", "text": "@Test(timeout = 4000)\n public void test396() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.h2();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "2a1f52f67e47dbcbdb3e80b0bd959085", "score": "0.55880445", "text": "public void testInvalidSerialNumberLength() throws Exception {\n final TimeStampSigner signer = createTestSigner(SIGNER_ID_BASE + 4, \"foobar\");\n final String error = signer.getSerialNumberError();\n \n assertEquals(\"Should return error for invalid serial number\",\n \"Maximum serial number length specified is invalid: \\\"foobar\\\"\", error);\n }", "title": "" }, { "docid": "d8d6c54af16bb678eb2c3f8027a29090", "score": "0.5585302", "text": "@Test\n public void rule1() {\n assertEquals(\"may not be null or empty\", -1, IdentifierPattern.test(\"\"));\n }", "title": "" }, { "docid": "eefb9b550c6b57456c1027d1729ba4a8", "score": "0.55807984", "text": "@Test(timeout = 4000)\n public void test023() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.i((Object) null);\n Component component1 = component0.attribute(\"wheel_ErrorPage\", \"wheel_ErrorPage\");\n assertTrue(component1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "1a44c7234988ce37db94e0c8fd8f3f73", "score": "0.5572494", "text": "@Test(timeout = 4000)\n public void test101() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n errorPage0._setGeneratedId(false);\n assertFalse(errorPage0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "60f855d82771929d27fd086cb5dae43c", "score": "0.5567296", "text": "@Test(timeout = 4000)\n public void test412() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n char[] charArray0 = new char[5];\n CharBuffer charBuffer0 = CharBuffer.wrap(charArray0);\n Component component0 = errorPage0.var((Object) charBuffer0);\n Component component1 = component0.u();\n Text text0 = new Text(component1, \"C\\\"s{Q!3t[(\\\"J8uS6'\");\n text0._setComponentId(\"\");\n assertTrue(text0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "1169b1d9cbfff877d3acd423b0534a59", "score": "0.55659115", "text": "@Test\n void getById_givenNoMovieForTheProvidedId_thenThrowException() {\n var movieRepository = new MovieRepository();\n movieRepository.save(new Movie(\"Flipper\", \"More human than dolphin\", 6800));\n movieRepository.save(new Movie(\"Benji\", \"More human than dog\", 6300));\n\n String unknownMovieId = UUID.randomUUID().toString();\n Assertions.assertThatIllegalArgumentException()\n .isThrownBy(() -> movieRepository.getById(unknownMovieId))\n .withMessage(\"No Movie could be found for id \" + unknownMovieId);\n }", "title": "" }, { "docid": "52cb8a8a4242a5df4ca31e03940eda1a", "score": "0.5564924", "text": "private boolean checkIntValidity(TextField id) {\r\n String isNumber = id.getText();\r\n try {\r\n Integer idInt = Integer.parseInt(isNumber);\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "3c2f3becb458d807e6579da19bd00fbb", "score": "0.55518687", "text": "@Test\n public void whenTryGetIdFromAccountShouldCheckThatIdCorrect() {\n assertThat(account.getId(), is(1));\n }", "title": "" }, { "docid": "6c75555076dfdc6fc52d5e542323b856", "score": "0.55387396", "text": "@Test\n\tpublic void testEntityIdsOfEmployee(){\n\t\tassertTrue(validateEmployee(true, \"employees2.json\").hasErrors());\n\t}", "title": "" }, { "docid": "18bc17885f18ce885abba7053a550e40", "score": "0.55376744", "text": "@Test\n public void testGetId() {\n System.out.println(\"getId\");\n assertEquals(\"WOS:000185655500013\", recordParser.getId());\n }", "title": "" }, { "docid": "ce626c8296c95cc9a3bb83acc6772900", "score": "0.5535727", "text": "@Test(timeout = 4000)\n public void test414() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Object object0 = new Object();\n Component component0 = errorPage0.label(object0);\n Component component1 = component0.ins();\n assertTrue(component1._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "7899ea743c40555c14ad93e5551ea83d", "score": "0.55345976", "text": "@Test(timeout = 4000)\n public void test457() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.s();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "3d19fcab16fdf757b2629fd2265a45f1", "score": "0.5521792", "text": "@Test\n void testRunEventIdFail() throws DataAccessException {\n String BAD_AUTH_TOKEN = \"badauthtoken\";\n String RANDOM_EVENT_ID = \"randomeventid\";\n Path badUrlPath = Path.of(\"/event/\" + RANDOM_EVENT_ID);\n\n EventIdResult eventIdResult = eventIdService.runEventId(BAD_AUTH_TOKEN, badUrlPath);\n\n assertFalse(eventIdResult.isSuccess());\n assertEquals(\"Error: Invalid auth token\", eventIdResult.getMessage());\n }", "title": "" }, { "docid": "b90dc1fc55e175d285ffe787df834061", "score": "0.5519603", "text": "@Test(timeout = 4000)\n public void test136() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.b();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" }, { "docid": "f0b146b1bb92cc1be7661acd1cac7b30", "score": "0.5514388", "text": "@Test(timeout = 4000)\n public void test100() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.a((Object) \"RP;3LL6.y3koA'7Qus\");\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "2c0575c5f33d7195f978525fd51fb670", "score": "0.55125254", "text": "@Test\r\n public void testSetConditionIdOutOfRange() {\r\n System.out.println(\"setConditionId Test (Out of Range value)\");\r\n Long conditionId = Long.MAX_VALUE + 1;\r\n usercondition.setConditionId(conditionId);\r\n // Check for and print any violations of validation annotations\r\n Set<ConstraintViolation<UserCondition>> violations = validator.validate(usercondition);\r\n String message =\r\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\r\n if (!violations.isEmpty()) {\r\n System.out.println(\"Violation caught: \" + message);\r\n }\r\n // Test method\r\n assertFalse(violations.isEmpty());\r\n }", "title": "" }, { "docid": "01c6352930dd43d2276b55cf9e883aba", "score": "0.5511713", "text": "@Test(timeout = 4000)\n public void test134() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.h4();\n assertTrue(component0._isGeneratedId());\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n }", "title": "" }, { "docid": "9a2445489016c5248a10428e7e315186", "score": "0.55058384", "text": "@Test(timeout = 4000)\n public void test123() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.u();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertTrue(component0._isGeneratedId());\n }", "title": "" } ]