query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub /getSupportFragmentManager().beginTransaction() .replace(R.id.detail_frame, fragment,"News_SKVK").addToBackStack(null).commit(); | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
getActivity().getActionBar();
mRoot = inflater.inflate(R.layout.mopwheathome, null);
mTabHost = (FragmentTabHost)mRoot.findViewById(android.R.id.tabhost);
mTabHost.setup(getActivity(),getChildFragmentManager(), R.id.realtabcontent);
mTabHost.addTab(mTabHost.newTabSpec("0").setIndicator("Demo Farmer"),
DemoFarmer.class, null);
mTabHost.addTab(mTabHost.newTabSpec("1").setIndicator("Observations"),
Observations.class, null);
for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)
{
mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor("#96E0D2"));
}
mTabHost.getTabWidget().getChildAt(Integer.parseInt("0")).setBackgroundColor(Color.parseColor("#65D2BD"));
mTabHost.setOnTabChangedListener(new OnTabChangeListener() {
@Override
public void onTabChanged(String tabId) {
// TODO Auto-generated method stub
/*InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
*/
for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)
{
mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor("#96E0D2"));
}
mTabHost.getTabWidget().getChildAt(Integer.parseInt(tabId)).setBackgroundColor(Color.parseColor("#65D2BD"));
}
});
return mRoot;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n CompteEnsg nextFrag = new CompteEnsg();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }",
"@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH2 demoFragment = new ShowFragmentXXH2();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }",
"@Override\n public void onClick(View view) {\n Fragment newCase=new TripNoteAddFragment();\n FragmentTransaction transaction=getFragmentManager().beginTransaction();\n transaction.replace(R.id.content_frames,newCase); // give your fragment container id in first parameter\n transaction.addToBackStack(null); // if written, this transaction will be added to backstack\n transaction.commit();\n }",
"@Override\n public void onClick(View v) {\n CompteEtudiant nextFrag = new CompteEtudiant();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }",
"@Override \n public void onClick(View v) \n {\n \tShowFragmentXXH1 demoFragment = new ShowFragmentXXH1();\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction transaction =fragmentManager.beginTransaction();\n transaction.replace(R.id.fragment_container, demoFragment);\n transaction.commit();\n \n }",
"@Override\n public void onClick(View view) {\n Fragment fragment = null;\n fragment = new CommentPeopleDetail();\n Bundle bundle = new Bundle();\n bundle.putString(\"queid\", details.getQueId());\n\n if (fragment != null) {\n fragment.setArguments(bundle);\n FragmentManager fm = ((FragmentActivity) context).getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.frame_contain_layout, fragment);\n transaction.commit();\n }\n }",
"private void initFragment(Fragment newsFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.fl_news, newsFragment);\n transaction.commit();\n\n }",
"@Override\n public void onClick(View v) {\n Fragment newFragment = new NewMovimientoFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.frame_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }",
"@Override\n public void onClick(View v) {\n android.app.Fragment onjF = null;\n onjF = new BlankFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment,onjF).commit();\n }",
"@Override\n public void onClick(View v) {\n Fragment f = new RecordingFragment();\n mng.beginTransaction().replace(R.id.content_frame, f).addToBackStack(null).commit();\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFragmentTransaction fmdetail1 = ((FragmentActivity) mContext).getSupportFragmentManager()\n\t\t\t\t\t\t\t\t.beginTransaction();\n\t\t\t\t\t\tfmdetail1.replace(R.id.container,\n\t\t\t\t\t\t\t\tnew Bee_Fragment_Product_List_Detail().newInstance(lineSource.getString(\"Id\"), \"\"));\n\t\t\t\t\t\tfmdetail1.addToBackStack(\"tag\");\n\t\t\t\t\t\tfmdetail1.commit();\n\t\t\t\t\t} catch (JSONException 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}",
"@Override\n public void onItemSelected(SourceItem news_Channel) {\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"JsonObject\", news_Channel);\n Fragment detailFragment = new TheNews();\n detailFragment.setArguments(bundle);\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.replaceFragment, detailFragment).addToBackStack(\"home\").commit();\n\n }",
"@Override\n public void gofavouritepage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new FavouriteFragment()).addToBackStack(\"Homepage\").commit();\n }",
"private void replaceFragment(int pos) {\n Fragment fragment = null;\n switch (pos) {\n case 0:\n //mis tarjetas\n fragment = new CardsActivity();\n break;\n case 1:\n //buscador online\n fragment = new CardsActivityOnline();\n break;\n case 2:\n //active camera\n Intent it = new Intent(this, com.google.zxing.client.android.CaptureActivity.class);\n startActivityForResult(it, 0);\n break;\n case 3:\n ParseUser.getCurrentUser().logOut();\n finish();\n onBackPressed();\n break;\n default:\n //fragment = new CardsActivity();\n break;\n }\n\n if(null!=fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.main_content, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n }",
"@Override\n public void gonearbypage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new NearbyFragment()).addToBackStack(\"Homepage\").commit();\n }",
"public void goMainStampCard() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager\n .beginTransaction();\n fragmentTransaction.setCustomAnimations(R.anim.abc_fade_in,\n R.anim.abc_fade_out);\n fragmentTransaction.addToBackStack(null);\n FragmentMainStampCard fragmentMain = FragmentMainStampCard\n .newInstances();\n fragmentTransaction.replace(R.id.container, fragmentMain);\n fragmentTransaction.commit();\n }",
"private void setFragmentMovie(Fragment fragmentMovie){\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentMovie)\n .addToBackStack(null)\n .commit();\n }",
"@Override\n public void handleOnBackPressed() {\n F4_Muell goBack = new F4_Muell();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n //altest Fragment in mainLayout wird ersetzt mit dem neuem Fragment\n transaction.replace(R.id.mainLayoutQuestionActivity, goBack);\n transaction.commit();\n }",
"@SuppressLint(\"ResourceType\")\n @Override\n public void onClick(View view) {\n\n FrameLayout fragmentLayout = new FrameLayout(context);\n fragmentLayout.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));\n fragmentLayout.setId(3);\n main.setContentView(fragmentLayout);\n main.getSupportFragmentManager()\n .beginTransaction().addToBackStack(null)\n .add(3, new DetailFragment(dataset.get(position).getNumber(),\n dataset.get(position).getName(), dataset.get(position).getHeight()))\n .commit();\n }",
"public void replaceFragment(Fragment fragment, String TAG) {\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.popBackStack(TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n FragmentTransaction fragmentTransaction = fragmentManager .beginTransaction();\n fragmentTransaction .replace(R.id.content_restaurant_main_cl_fragment, fragment);\n fragmentTransaction .addToBackStack(TAG);\n fragmentTransaction .commit();\n//\n// getSupportFragmentManager()\n// .beginTransaction()\n// .disallowAddToBackStack()\n//// .setCustomAnimations(R.anim.slide_left, R.anim.slide_right)\n// .replace(R.id.content_restaurant_main_cl_fragment, fragment, TAG)\n// .commit();\n }",
"private void showHome(){\n fragment = new HomeFragment();\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.mainLayout, fragment, fragment.getTag()).commit();\n }",
"@Override\n public void onClick(View v) {\n FragmentTransaction FT = getSupportFragmentManager().beginTransaction();\n //FT.add(R.id.Frame_Fragments,new Another Fragment());\n if (simplefragment2.isAdded()){\n FT.show(simplefragment2);\n FT.remove(simplefragment);\n Toast.makeText(getApplicationContext(), \"Fragment di tambahkan sebelumnya\", Toast.LENGTH_SHORT).show();\n }\n else {\n FT.replace(R.id.Frame_Fragments,simplefragment2);\n }\n FT.addToBackStack(null);\n FT.commit();\n\n button2.setVisibility(View.VISIBLE);\n button.setVisibility(View.GONE);\n }",
"private void loadFragment(String name) {\n FragmentTransaction fragmentTransaction = MainActivity.fm.beginTransaction();\n // replace the FrameLayout with the new Fragment\n fragmentTransaction.replace(R.id.mainFrameLayout, MainActivity.currentFragment);\n fragmentTransaction.addToBackStack(name);\n fragmentTransaction.commit();\n }",
"@Override\n public void redirectButton(News item) {\n DetailsNewsFragment fragment = new DetailsNewsFragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"news\", item);\n fragment.setArguments(bundle);\n getSupportFragmentManager().beginTransaction().replace(R.id.container, fragment).addToBackStack(null).commit();\n }",
"@Override\n public void onClick(View v){\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.frame_layout,new final_confirmation());\n transaction.commit();\n }",
"@Override\n public void onClick(View v) {\n\n Bundle bundle = new Bundle();\n bundle.putString(\"tglawal\",tglawal);\n bundle.putString(\"tglakhir\",tglakhir);\n\n\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n select_tanggal_report_akumulasi select_tanggal_report_akumulasi = new select_tanggal_report_akumulasi();\n select_tanggal_report_akumulasi.setArguments(bundle);\n\n fragmentTransaction.replace(R.id.layout, select_tanggal_report_akumulasi);\n getFragmentManager().popBackStackImmediate();\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n//\n }",
"public void onClick(View v) {\n android.support.v4.app.FragmentManager fm = getFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ProductFragment itemListFragment = ((MainActivity)getActivity()).getItemListFragment();\n ft.replace(R.id.container, itemListFragment, \"List\");\n ft.commit();\n }",
"@Override\n public void onClick(View v) {\n int position = getAdapterPosition();\n FragmentManager manager = adapter.activity.getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n Log.d(\"ProblemAdapter\", \"we are on index: \" + position);\n RecordsFragment fragment = RecordsFragment.newInstance(position);\n transaction.addToBackStack(null);\n transaction.replace(R.id.content, fragment);\n transaction.commit();\n }",
"@Override\n public void onClick(View v) {\n FragmentManager fragmentManager = ((AppCompatActivity) getContext()).getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.rel_main_parentAllView, new FragmentFavoritesApp());\n transaction.commit();\n }",
"private void switchFragment(int pos) {\n Fragment fragment=bottomBarList.get(pos);\n String backStateName = fragment.getClass().getName();\n String fragmentTag = backStateName;\n\n FragmentManager manager = getSupportFragmentManager();\n boolean fragmentPopped = manager.popBackStackImmediate (backStateName, 0);\n\n if (!fragmentPopped && manager.findFragmentByTag(fragmentTag) == null){ //fragment not in back stack, create it.\n FragmentTransaction ft = manager.beginTransaction();\n ft.replace(R.id.bottomNavFrameLayout, fragment, fragmentTag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.addToBackStack(backStateName);\n ft.commit();\n }\n\n\n }",
"private void placeNewFragment(Fragment f) {\r\n\t\tFragmentManager manager = getSupportFragmentManager();\r\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\r\n fragmentTransaction.replace(R.id.fragmentHolder, f);\r\n fragmentTransaction.addToBackStack(null);\r\n fragmentTransaction.commit();\r\n\t}",
"@Override\n public void onClick(View v) {\n FragmentManager fragmentManager = getFragmentManager();\n AllRequestedColleges allRequestedColleges=AllRequestedColleges.newInstance();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(android.R.id.content,allRequestedColleges).addToBackStack(\"faf\").commit();\n\n }",
"@Override\n public void onClick(View v) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment fragment = new FavoriteFragment();\n ft.replace(R.id.layout_fragment, fragment, \"FavoriteFragment\");\n ft.commit();\n }",
"public void loadFragment(Fragment fragment) { Animation connectingAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.slide_up);\n//\n FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.nowShowingFrame, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }",
"@Override\n public void onClick(View v) {\n if (v == backclick){\n getFragmentManager().popBackStack();\n\n }\n\nelse if(v == improvelisting){\n\n\n Fragment fr = new Improvelisting();\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\n\n /*else if (v == thingstodoattractionavailable)\n {\n Toast.makeText(getActivity(),\"things\",Toast.LENGTH_SHORT).show();\n\n }*/\n /* else if (v == peoplewviewd){\n\n getFragmentManager().popBackStack();\n }*/\n\n\n\n\n\n }",
"private void configureAndShowDetailFragment(){\n detailFragment = (DetailFragment) getSupportFragmentManager().findFragmentById(R.id.frame_layout_detail);\n\n if (detailFragment == null) {\n // Create new main fragment\n detailFragment = new DetailFragment();\n // Add it to FrameLayout container\n getSupportFragmentManager().beginTransaction()\n .add(R.id.frame_layout_detail, detailFragment)\n .commit();\n }\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task)\n {\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, new Fragment_VacatureOmschrijving()).addToBackStack(\"tag\").commit();\n Toast.makeText(getActivity(), \"Uw sollicitatie is succesvol verzonden\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n FragmentTransaction FT = getSupportFragmentManager().beginTransaction();\n FT.replace(R.id.Frame_Fragments, new simplefragment());\n FT.commit();\n\n button2.setVisibility(View.GONE);\n button.setVisibility(View.VISIBLE);\n }",
"private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.main_frame, fragment);\n// fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }",
"public void RitiroLibri()\r\n {\r\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Ritiro Libri\");\r\n FragmentManager fragmentManager = getFragmentManager();\r\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\r\n fragmentTransaction.replace(R.id.main_conteiner, new SistudiaFragmentRitiroLibri());\r\n fragmentTransaction.commit();\r\n }",
"@Override\n public void onClick(WearableListView.ViewHolder viewHolder) {\n\n Toast.makeText(getActivity(),\n \"Order Details\",\n Toast.LENGTH_SHORT).show();\n\n\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n\n View v = viewHolder.itemView;\n TextView name = (TextView)v.findViewById(R.id.name);\n // TextView item2 = (TextView)v.findViewById(R.id.item3);\n\n String itemName = name.getText().toString();\n // String item3 = item2.getText().toString();\n\n\n fragmentTransaction.replace(mContainerId, OrderDetailFragment.newInstance(itemName,\"\")).addToBackStack(null).commit();\n\n\n }",
"private void openTeacherCheck() {\n FragmentTransaction fr1 = getFragmentManager().beginTransaction().addToBackStack(\"Tag\");\n fr1.replace(R.id.fragment_container, new Fragment_View_In_Out());\n fr1.commit();\n }",
"@Override\n public void onClick(View view) {\n Fragment newFragment = new QuestFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.container, newFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }",
"@Override\n public void run() {\n confirmImage.setVisibility(View.GONE);\n activity.replaceFragment(new Fragment_Buyer_Orders());\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tFragmentHelper.replaceFragment(R.id.fl_fragment_holder, getFragmentManager(), ShareFansFragment.class);\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.activity_list,container);\n Button button = (Button) rootView.findViewById(R.id.fragment_button);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n android.app.FragmentManager fragmentManager = getActivity().getFragmentManager();\n android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n Bundle bundle = new Bundle();\n bundle.putString(\"main\", null);\n fragmentTransaction.replace(R.id.fragment_container_framelayout, null);\n fragmentTransaction.addToBackStack(\"next\");\n fragmentTransaction.commit();\n }\n });\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_work_history, container, false);\n addwork=view.findViewById(R.id.btnaddwork);\n nextdu=view.findViewById(R.id.nextedu);\n l12=view.findViewById(R.id.workexper2);\n nextdu.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n\n\n\n\n\n Fragment someFragment = new EducationFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.fragment_container, someFragment ); // give your fragment container id in first parameter\n transaction.addToBackStack(null); // if written, this transaction will be added to backstack\n transaction.commit();\n }\n });\n addwork.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addwork.setVisibility(View.INVISIBLE);\n l12.setVisibility(View.VISIBLE);\n }\n });\n return view;\n }",
"@Override\n\tpublic void onSecArticleSelected(Fragment frag, String fragid,\n\t\t\tboolean AddToBS) {\n\t\tFragmentTransaction trans = getSupportFragmentManager()\n\t\t\t\t.beginTransaction();\n\t\ttrans.replace(R.id.FragHolder, frag).addToBackStack(fragid);\n\t\ttrans.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n\t\ttrans.commit();\n\t}",
"@Override\r\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if( keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_UP) {\r\n //Log.i(tag, \"onKey Back listener is working!!!\");\r\n // getFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\r\n getFragmentManager().beginTransaction().replace(R.id.container , new TeacherDay()).commit() ;\r\n return true;\r\n }\r\n return false;\r\n }",
"@Override\n public void onClick(View v) {\n MovieTrailersFragment movieTrailersFragment = new MovieTrailersFragment();\n Bundle args = new Bundle();\n args.putInt(MovieTrailersFragment.BUNDLE_ARGUMENT_KEY, movieObject.getId());\n args.putString(Constants.INTENT_FAVOURITE_MOVIE, dataBundle.getString(Constants.INTENT_FAVOURITE_MOVIE));\n movieTrailersFragment.setArguments(args);\n\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack so the user can navigate back\n transaction.replace(R.id.movie_details_fragment_container, movieTrailersFragment, MOVIE_TRAILER_FRAGMENT_TAG);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }",
"@Override\r\n public void changeFragment() {\r\n fm.beginTransaction()\r\n .replace(R.id.fragmentContainer, new ListWonderFragment())\r\n .commit();\r\n }",
"@Override\n public void onClick(View view) {\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.container, new CadastrarFragments())\n .commitNow();\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n\nSingletonTracks.getInstance().setTrack(position);\n PlayingFragment fragment = new PlayingFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.fragement_container, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n\n\n }",
"@Override\n public void onClick(View v) {\n MovieReviewsFragment movieReviewsFragment = new MovieReviewsFragment();\n Bundle args = new Bundle();\n args.putInt(MovieReviewsFragment.BUNDLE_ARGUMENT_KEY, movieObject.getId());\n args.putString(Constants.INTENT_FAVOURITE_MOVIE, dataBundle.getString(Constants.INTENT_FAVOURITE_MOVIE));\n movieReviewsFragment.setArguments(args);\n\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack so the user can navigate back\n transaction.replace(R.id.movie_details_fragment_container, movieReviewsFragment, MOVIE_REVIEW_FRAGMENT_TAG);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }",
"@Override\n public void onClick(View v){\n SignUpFragment fragment = new SignUpFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragmentHolder,fragment,\"Sign Up\").commit();\n }",
"@Override\n public void onClick(View view, int position) {\n Fragment fragment = new CategoryFragment();\n FragmentManager fragmentManager = ((FragmentActivity) activity)\n .getSupportFragmentManager();\n String title = \"CategoryFragment\";\n Bundle bundle = new Bundle();\n bundle.putString(\"spot_id\", id);\n bundle.putString(\"section_id\", sectionsArrayList.get(position).getSectionID());\n bundle.putString(\"name\", sectionsArrayList.get(position).getSectionName());\n fragment.setArguments(bundle);\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.container_body, fragment, title);\n fragmentTransaction.addToBackStack(title);\n fragmentTransaction.commit();\n }",
"private void loadBookPageFragment() {\n\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.addToBackStack(\"ListView\"); // enables to press \"return\" and go back to the list view\n transaction.replace(R.id.main_fragment_container, new BookPageFragment());\n transaction.commit();\n }",
"public static void replaceFragmentHistory(Fragment fragment, AppCompatActivity context) {\n /* if (isUsedBundle) {\n Bundle args = new Bundle();\n args.putInt(bundleParameterName, bundleValue);\n fragment.setArguments(args);\n }*/\n if (context != null) {\n try {\n FragmentTransaction transaction =\n context.getSupportFragmentManager().beginTransaction();\n transaction.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_in_right);\n\n transaction.replace(R.id.menuContainer, fragment);\n transaction.addToBackStack(null);\n transaction.commitAllowingStateLoss();\n\n } catch (IllegalStateException e) {\n e.printStackTrace();\n context.finish();\n }\n }\n }",
"private void setFragmentTv(Fragment fragmentTv) {\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.frame_fav, fragmentTv)\n .addToBackStack(null)\n .commit();\n }",
"public void onUPP()\r\n {\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .show(frag)\r\n .commit();\r\n\r\n }",
"private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }",
"private void showSection(int position) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, PlaceholderFragment.newInstance(position + 1))\n .commit();\n\n\n }",
"private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }",
"private void replaceFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n android.support.v4.app.FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.addToBackStack(null);\n if (fragment == listFragment) {\n transaction.replace(R.id.fragment_content, fragment, LIST_FRAGMENT_TAG);\n } else if (fragment == supportMapFragment) {\n transaction.replace(R.id.fragment_content, fragment, SUPPORT_FRAGMENT_TAG);\n }\n transaction.commit();\n }",
"@Override\n public void onClick(View v) {\n frameLayoutSearch.setVisibility(View.GONE);\n songBelongAlbumFragment = new SongBelongAlbumFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"nameSongOfAlbum\",tvAlbumName.getText().toString());\n songBelongAlbumFragment.setArguments(bundle);\n android.support.v4.app.FragmentTransaction fragmentTransaction = ( (FragmentActivity)context).getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, songBelongAlbumFragment);\n fragmentTransaction.commit();\n }",
"@Override\r\n public void showMovieDetails(MovieEntry movie) {\n Fragment fragment = new DetailsFragment();\r\n Bundle args = new Bundle();\r\n args.putParcelable(DetailsFragment.MOVIE_ARG_POSITION, movie);\r\n fragment.setArguments(args);\r\n\r\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\r\n if(!twoPane) {\r\n transaction.replace(R.id.master_fragment, fragment, DetailsFragment.FRAGMENT_TAG);\r\n if(screenSize == Configuration.SCREENLAYOUT_SIZE_NORMAL) {\r\n transaction.addToBackStack(null);\r\n }\r\n } else {\r\n transaction.replace(R.id.details_fragment, fragment, DetailsFragment.FRAGMENT_TAG);\r\n }\r\n\r\n transaction.commit();\r\n }",
"public void showFragment(Fragment fragment, String tag) {\n fragment.setRetainInstance(true);\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.content_frame, fragment, tag)\n .addToBackStack(null)\n .commit();\n setTitleForTag(tag);\n }",
"public void detailScreenFragment(CarDetail carDetail) {\n\n Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.main_container);\n\n if (!(fragment instanceof DetailScreenFragment)) {\n\n DetailScreenFragment detailScreenFragment = new DetailScreenFragment(MainActivity.this, carDetail);\n getSupportFragmentManager().beginTransaction()\n .add(R.id.main_container, detailScreenFragment)\n .addToBackStack(null)\n .commit();\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_activity_summary, container, false);\n\n // Transaction party\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction ft = fragmentManager.beginTransaction();\n\n if(fragmentManager.findFragmentById(R.id.frame1)!=null) {\n ft.remove(fragmentManager.findFragmentById(R.id.frame1));\n }\n Fragment fragment = new SummaryFragment();\n ft.replace(R.id.frame1, fragment).commit();\n return v;\n }",
"private void displayCareerFragment() {\n getSupportFragmentManager().beginTransaction().replace(R.id.container, UserProfileCareerFragment.getInstance()).commit();\n\n }",
"protected void switchContent(Fragment to) {\n if (mFragment != to) {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.activity_my_movie_content,to).commitAllowingStateLoss();\n mFragment = to;\n }\n }",
"private void showHomeOnClick(){\n //create a new fragment and transaction\n homeFragment = new HomeFragment();\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n //replace whatever is in the fragment container view with this fragment\n //and add the transaction to the back stack\n ft.add(R.id.fragment_container,homeFragment);\n ft.addToBackStack(null);\n ft.commit();\n }",
"@Override\n public void onSwipeRight() {\n getFragmentManager().beginTransaction().remove(LongAddFragment.this).commit();\n super.onSwipeRight();\n }",
"private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n StoreMembership storeMembership = (StoreMembership) parent.getItemAtPosition(position);\n // Toast.makeText(getContext(), storeMembership.getCardimage(), Toast.LENGTH_LONG);\n\n Fragment fragment = new StoreMembershipFragment();\n Bundle bundle = new Bundle();\n bundle.putLong(\"storemembershipid\", storeMembership.getId());\n fragment.setArguments(bundle);\n\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.main_container, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }",
"@Override\n public void run() {\n DocumentDetails em=new DocumentDetails();\n Bundle bundle=new Bundle();\n bundle.putString(\"doc_id\", holder.doc_id.getText().toString());\n bundle.putString(\"doc_title\", holder.heading.getText().toString());\n em.setArguments(bundle);\n\n ((Activity)context).getFragmentManager().beginTransaction().setCustomAnimations( R.animator.slide_in_right, 0, 0, R.animator.slide_out_left).replace(R.id.frame,em).addToBackStack(\"\").commit();\n }",
"public void onClick(View arg0) {\n getActivity().getSupportFragmentManager().beginTransaction()\r\n .replace(R.id.container, new Criar_Viagem_Paradas()).commit();\r\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tFragment fragment = null;\n\n\t\tint id = v.getId();\n\t\tif (id == R.id.btn_edit) {\n\t\t\tfragment = new EditDetailsFragment();\n\t\t}\n\t\n\tif (fragment != null) {\n\t\tFragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n\t\tfragmentManager.beginTransaction()\n\t\t\t\t.replace(R.id.container_body, fragment).addToBackStack( null ).commit();\n}\n\telse {\n\t\t// error in creating fragment\n\t\tLog.e(\"MainActivity\", \"Error in creating fragment\");\n\t}\n\t/*fragment.getView().setFocusableInTouchMode(true);\n\tfragment.getView().requestFocus();\n\tfragment.getView().setOnKeyListener( new OnKeyListener()\n\t{\n\t @Override\n\t public boolean onKey( View v, int keyCode, KeyEvent event )\n\t {\n\t if( keyCode == KeyEvent.KEYCODE_BACK )\n\t {\n\t return true;\n\t }\n\t return false;\n\t }\n\t} );*/\n}",
"public void goHowToGetStamp(boolean isShowPhone, boolean isShowShare,\n int numberGift, int numberSns) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager\n .beginTransaction();\n fragmentTransaction.setCustomAnimations(R.anim.abc_fade_in,\n R.anim.abc_fade_out);\n fragmentTransaction.addToBackStack(null);\n FragmentHowtoGetStamp fragmentMain = FragmentHowtoGetStamp\n .newInstances(isShowPhone, isShowShare, numberGift, numberSns);\n fragmentTransaction.replace(R.id.container, fragmentMain);\n fragmentTransaction.commit();\n }",
"@Override\n public void onClick(View v) {\n fragment = fragmentManager.findFragmentByTag(\"frag1\"); // you gonna find a fragment by a tag ..u defined that in acitivty when you called that fragment\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n if (fragment != null) {\n fragmentTransaction.remove(fragment); // remove Transaction\n }\n\n // now calling and adding another fragment after remove its parent fragment (where you are calling fragmetn from) fragment to fragment call\n fragment = new Fragment2();\n fragmentTransaction.add(R.id.base_layout, fragment, \"frag2\"); //giving tag to fragment\n fragmentTransaction.commit();\n }",
"@Override\n public void onClick(View v) {\n\n Bundle args = new Bundle();\n\n args.putInt(\"index\",getAdapterPosition());\n\n MyFragmentClass fragment = new MyFragmentClass();\n\n fragment.setArguments(args);\n\n\n AppCompatActivity activity = (AppCompatActivity) v.getContext();\n\n activity.getSupportFragmentManager().beginTransaction().addToBackStack(null).replace(R.id.fragment_container,fragment).commit();\n }",
"public void loadNewEdit(){\n fabAdd.hide();\n fabSave.show();\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragContainer1,new CourseEditFragment(),\"EDIT\")\n .addToBackStack(\"EDIT\")\n .commit();\n }",
"void switchToFragment(Fragment newFrag) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment, newFrag)\n .addToBackStack(null)\n .commit();\n }",
"private void toXW() {\n if (fragment_XW == null) {\n fragment_XW = new Fragment_XW();\n fragmenttransaction.add(R.id.frame_content, fragment_XW);\n } else {\n fragmenttransaction.show(fragment_XW);\n }\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tsuper.onCreateView(inflater, container, savedInstanceState);\n\t\tView rootView = inflater.inflate(R.layout.post_detail_fragment_layout,\n\t\t\t\tcontainer, false);\n\t\tnavigation=(ImageView) rootView.findViewById(R.id.weiba_fragment_title);\n\t\tpost_title=(TextView)rootView.findViewById(R.id.post_title);\n\t\tweiba_name=(TextView)rootView.findViewById(R.id.weiba_name);\n\t\tpost_user=(TextView)rootView.findViewById(R.id.post_user);\n\t\tpost_date=(TextView)rootView.findViewById(R.id.post_date);\n\t\tpost_content=(WebView)rootView.findViewById(R.id.post_content);\n\t\tpost_comment=(TextView)rootView.findViewById(R.id.post_comment);\n\t\tpost_view=(TextView)rootView.findViewById(R.id.post_view);\n\t\tpost_collect=(ImageView)rootView.findViewById(R.id.post_collect);\n\t\tScrollView=rootView.findViewById(R.id.scrollView);\n\t\tinputView=(EditText) rootView.findViewById(R.id.edit_comment);\n\t\tsendButton=rootView.findViewById(R.id.create_post_send);\n\t\tdetail_comment=rootView.findViewById(R.id.detail_comment);\n\t\tnavigation.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ((MainFragmentActivity) getActivity()).getSlidingMenu()\n .toggle();\n }\n });\n\t\t\n\t\tpost_title.setText(post.getTitle());\n\t\tweiba_name.setText(\"[\"\n\t\t\t\t+ WeibaOperator.getInstance().queryWeibaNameByID(\n\t\t\t\t\t\tpost.getWeiba_id()) + \"]\");\n\t\tpost_user.setText(post.getUname());\n\t\tpost_date.setText(DateUtils.getTimeInString(post.getPost_time()));\n\t\t//帖子内容显示设置\n\t\tWebSettings contentSetting= post_content.getSettings();\n\t\tcontentSetting.setDefaultTextEncodingName(\"utf-8\"); \n\t\tcontentSetting.setSupportZoom(true);\n\t\tcontentSetting.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);\n\t\tpost_content.setBackgroundColor(0);\n\t\tpost_content.loadDataWithBaseURL(\"http://tsimg.tsurl.cn\", post.getContent(), \"text/html\", \"utf-8\", null);\n\t\tdisplayflag=1;\n\t\tpost_content.setOnTouchListener(new OnTouchListener(){//双击实现不同的显示模式。\n\t\t\tint count = 0; \n\t\t\tlong firClick = 0; \n long secClick = 0; \n @Override\n\t\t\tpublic boolean onTouch(View view, MotionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub \n\t\t\t\tif(MotionEvent.ACTION_DOWN == event.getAction()){ \n\t\t\t count++; \n\t\t\t if(count == 1){ \n\t\t\t firClick = System.currentTimeMillis(); \n\t\t\t \n\t\t\t } else if (count == 2){ \n\t\t\t secClick = System.currentTimeMillis(); \n\t\t\t if(secClick - firClick < 500){ \n\t\t\t if(displayflag==1){\n\t\t\t \t\t\t WebSettings contentSetting= post_content.getSettings(); \n\t\t\t \t\tcontentSetting.setUseWideViewPort(true);\n\t\t\t \t\t//contentSetting.setLoadWithOverviewMode(true);\n\t\t\t \t\tcontentSetting.setSupportZoom(true);\n\t\t\t \t\tcontentSetting.setBuiltInZoomControls(true);\n\t\t\t \t\tpost_content.loadDataWithBaseURL(\"http://tsimg.tsurl.cn\", post.getContent(), \"text/html\", \"utf-8\", null);\n\t\t\t \tdisplayflag=2;\n\t\t\t \tToast.makeText(mContext,\"切换到缩放模式\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t.show();\n\t\t\t }else{\n\t\t\t \tWebSettings contentSetting= post_content.getSettings();\n\t\t\t \t\t//contentSetting.setUseWideViewPort(false);\n\t\t\t \t\t//contentSetting.setLoadWithOverviewMode(false);\n\t\t\t \tcontentSetting.setSupportZoom(false);\n\t\t\t \t\tcontentSetting.setBuiltInZoomControls(false);\n\t\t\t \t\tcontentSetting.setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);\n\t\t\t \t\tpost_content.loadDataWithBaseURL(\"http://tsimg.tsurl.cn\", post.getContent(), \"text/html\", \"utf-8\", null);\n\t\t\t \tdisplayflag=1;\n\t\t\t \tToast.makeText(mContext,\"切换到自适应屏幕模式\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t.show();\n\t\t\t } \n\t\t\t } \n\t\t\t count = 0; \n\t\t\t firClick = 0; \n\t\t\t secClick = 0; \n\t\t\t } \n\t\t\t } \n\t\t\t return true; \n\t\t\t}\t\t\t\n\t\t});\n\n\t\tpost_comment.setText(\"(\" + post.getReply_count()+ \")\");\n\t\tpost_view.setText(\"(\" + post.getRead_count() + \")\");\n\t\tpost_comment.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(flag){\n\t\t\t\t\tScrollView.setVisibility(View.GONE);\n\t\t\t\t\tdetail_comment.setVisibility(View.VISIBLE);\n\t\t\t\t\tinitCommentList();\n\t\t\t\t\tflag=!flag;\n\t\t\t\t}else{\n\t\t\t\t\tScrollView.setVisibility(View.VISIBLE);\n\t\t\t\t\tdetail_comment.setVisibility(View.GONE);\n\t\t\t\t\t//getChildFragmentManager().beginTransaction().hide(post_comment_list).commit();\n\t\t\t\t\tflag=!flag;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsendButton.setOnClickListener(new OnClickListener() {\n\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tString tag=(String)inputView.getTag();\n\t\t\t\tString act,id,content;\n\t\t\t\tcontent=inputView.getText().toString();\n\t\t\t\tif(!content.contains(\"@\")){\n\t\t\t\t\ttag=null;\n\t\t\t\t}\n\t\t\t\tif(tag!=null){\n\t\t\t\t\tact=REPLY_COMMENT;\n\t\t\t\t\tid=tag;\n\t\t\t\t}else{\n\t\t\t\t\tact=COMMENT_POST;\n\t\t\t\t\tid=post.getPost_id();\n\t\t\t\t}\n\t\t\t\tfinal Map<String, String> reply = new HashMap<String, String>();\n\t\t\t\treply.put(\"app\", APP);\n\t\t\t\treply.put(\"mod\", MOD);\n\t\t\t\treply.put(\"act\", act);\n\t\t\t\treply.put(\"id\", id);\n\t\t\t\treply.put(\"content\", content);\n\t\t\t\treply.put(\"oauth_token\", OAUTH_TOKEN);\n\t\t\t\treply.put(\"oauth_token_secret\", OAUTH_TOKEN_SECRECT);\n\t\t\t\tnew Thread(new WeibaActionHelper(myHandler, mContext,\n\t\t\t\t\t\treply, COMMENT_OK)).start();\n\t\t\t}\n\t\t});\n\t\tfinal boolean followState=post.getFavorite() == 1;\n\t\tfinal String post_id=post.getPost_id();\n\t\tpost_collect.setImageResource(followState?R.drawable.heart:R.drawable.favourite);\n\t\tpost_collect.setOnClickListener(new OnClickListener() {\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t((ImageView) v)\n\t\t\t\t.setImageResource(!followState ? R.drawable.heart\n\t\t\t\t\t\t: R.drawable.favourite);\n\t\t\t\tpost.setFavorite(!followState?1:0);\n\t\t\t\tmHandler.obtainMessage(!followState?3:4, post_id)\n\t\t\t\t.sendToTarget();\n\t\t\t}\n\t\t});\n\t\tinit();\n\t\treturn rootView;\n\n\t}",
"@Override\n public void onEstadoCambiado() {\n fragment = new ListadoPeticionesRecibidasVista();\n getFragmentManager().beginTransaction().replace(R.id.content_main, fragment ).commit();\n\n }",
"@Override\n public void onClick(View v) {\n ItemsModel item = itemsModelListFiltered.get(position);\n ItemViewF itemViewGirl = new ItemViewF();\n Bundle args = new Bundle();\n args.putSerializable(\"item\", item);\n itemViewGirl.setArguments(args);\n\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container,\n itemViewGirl).addToBackStack(null).commit();\n }",
"private void defaultFragment() {\n\n Fragment fragment = new Helpline();\n FragmentManager fm = getFragmentManager();\n //TODO: try this with add\n fm.beginTransaction().replace(R.id.content_frame,fragment).commit();\n }",
"private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment);\n fragmentTransaction.commit();\n\n }",
"private void loadFragment(Fragment fragment, boolean addToBackStack) {\n FragmentTransaction transaction = getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.frame, fragment);\n if(addToBackStack) {\n transaction.addToBackStack(null);\n }\n transaction.commit();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tToast.makeText(c, \"No Current Updates\", Toast.LENGTH_SHORT).show();\n\t\t\t/*\tIntent i = new Intent(SingleShop.this, Gallery.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\t*///\tFragmentTransaction ft =\t((ActionBarActivity)context).getSupportFragmentManager().beginTransaction().replace(R.id.frame_container, ft).commit();;\n\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n if (v == thigsfrag1){\n\n thingstodonear = Sessiondata.getInstance().getThingsfrontdatanear();\n thingstodonear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(thingstodonear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, thingstodonear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n\n }\n\n else if (v == foodsfrag1){\n\n\n foodnear = Sessiondata.getInstance().getFoodfrontdatanear();\n foodnear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(foodnear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, foodnear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\nelse if (v == prayerfirst) {\n\n\n prayernear = Sessiondata.getInstance().getPrayerfrontdatanear();\n prayernear.get(0).setCtm(newtrip);\n Sessiondata.getInstance().setSnocreatenewtrip(prayernear.get(0).getSno());\n Sessiondata.getInstance().setUpdateresult(0);\n Sessiondata.getInstance().setFtplistval(7);\n\n Fragment fr = new NewUiView_itemInfo_Fragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(EXTRATRIPINFO, prayernear.get(0));\n fr.setArguments(bundle);\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\n\n\n else if(v == thingstodo){\n\n NearByelementsModel n = (NearByelementsModel) v.getTag();\n CreatedTripModel cc = C.getCtm();\n cc.setCategoryID(\"3\");\n cc.setCategorytype(\"Things to do info\");\n cc.setN(n);\n showguideFragment(cc);\n }\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t FragmentManager fm = getFragmentManager(); \n\t\t FragmentTransaction tx = fm.beginTransaction();\n\t\t tx.remove(FragmentManagementHistoryResult.this);\n\t\t tx.commit();\n\t\t\t}",
"public void goToPortfolioFragment(){\n Fragment fragment = new PortfolioFragment();\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.contentFragment, fragment);\n transaction.commit();\n }",
"public void onfff() {\r\n\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n if(!(frag.isHidden()))\r\n {\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .hide(frag)\r\n .commit();\r\n }\r\n }",
"@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }",
"public void onClick(View v) {\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new MapFragment()).commit();\n Toast.makeText( getActivity(),\"View Safe Zone\", Toast.LENGTH_SHORT).show();\n }",
"public void popInsertLessonFragment (View v)\n {\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.containerView,new SentFragment()).commit();\n //Intent i = new Intent(getApplicationContext(), Task_Process.class);\n //startActivity(i);\n //finish();\n }",
"@Override\n public void onSwap(String FragmentName, Bundle bundle) {\n\n Fragment fragmentToSwap = null;\n FragmentTransaction fragmentTransaction = FM.beginTransaction();\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n\n getSupportActionBar().setTitle(\"\");\n try {\n switch (FragmentName) {\n case \"Popular\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"TopRated\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Upcoming\":\n fragmentToSwap = new MoviesListFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n break;\n case \"Detail\":\n fragmentToSwap = new DetailMovieFragment();\n fragmentToSwap.setArguments(bundle);\n fragmentTransaction.replace(R.id.flContent, fragmentToSwap);\n fragmentTransaction.addToBackStack(\"MoviesListFragment\");\n\n break;\n }\n fragmentTransaction.commit();\n }catch(Exception e){\n e.printStackTrace();\n }\n }",
"private void changeFragment() {\n TeacherAddNotificationFragment fragment = new TeacherAddNotificationFragment();\n // Put classIds to bundle and set bundle to fragment\n Bundle bundle = new Bundle();\n bundle.putString(\"ListIDs\", classesIds);\n fragment.setArguments(bundle);\n\n // Replace fragment\n getFragmentManager().beginTransaction().replace(R.id.main, fragment)\n .addToBackStack(null)\n .commit();\n }"
] | [
"0.72344387",
"0.69688666",
"0.6968817",
"0.69378304",
"0.6902663",
"0.6900973",
"0.6870499",
"0.67988604",
"0.6793345",
"0.67597723",
"0.67586386",
"0.67317414",
"0.67273283",
"0.6716356",
"0.6628445",
"0.6573508",
"0.65374863",
"0.64510447",
"0.6450377",
"0.6428224",
"0.6405535",
"0.6399859",
"0.63958824",
"0.6371079",
"0.6358034",
"0.6328707",
"0.63123757",
"0.63057876",
"0.6304118",
"0.62937605",
"0.6292672",
"0.6283793",
"0.6282464",
"0.62821263",
"0.62810653",
"0.6271924",
"0.62696344",
"0.62613016",
"0.62217456",
"0.62209046",
"0.6217117",
"0.61908364",
"0.6185806",
"0.6178506",
"0.616213",
"0.61620533",
"0.6161833",
"0.6142006",
"0.61272764",
"0.6123459",
"0.61221856",
"0.6104359",
"0.6091743",
"0.6086918",
"0.608256",
"0.6074847",
"0.6072482",
"0.60568976",
"0.60552806",
"0.60549074",
"0.60544205",
"0.60537976",
"0.60470265",
"0.6038723",
"0.6035515",
"0.60351586",
"0.602484",
"0.6009654",
"0.6008901",
"0.6002622",
"0.60020596",
"0.59997004",
"0.5998443",
"0.5995434",
"0.59844583",
"0.59747416",
"0.5971694",
"0.5967977",
"0.5962722",
"0.595024",
"0.5945198",
"0.5939493",
"0.5937228",
"0.5936453",
"0.59266865",
"0.59255767",
"0.5916438",
"0.5915045",
"0.591398",
"0.59127206",
"0.5912269",
"0.5911475",
"0.5904634",
"0.5891936",
"0.58863175",
"0.58800185",
"0.58753204",
"0.58713424",
"0.5871183",
"0.586505",
"0.5863474"
] | 0.0 | -1 |
TODO Autogenerated method stub /InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0); | @Override
public void onTabChanged(String tabId) {
for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)
{
mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor("#96E0D2"));
}
mTabHost.getTabWidget().getChildAt(Integer.parseInt(tabId)).setBackgroundColor(Color.parseColor("#65D2BD"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hideSoftKeyboard(){\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n // imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);\n }",
"public static void toggleKeyboard(Context context) {\n InputMethodManager imm = ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE));\n imm.toggleSoftInput(0, 0);\n }",
"public void hideSoftKeyboard() {\n if (getActivity().getCurrentFocus() != null) {\n InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(getActivity().INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(getActivity().getCurrentFocus().getWindowToken(), 0);\n }\n }",
"private void hideSoftKeyboard() {\n\n FragmentActivity activity = getActivity();\n\n InputMethodManager in = (InputMethodManager)activity.getSystemService(Context.INPUT_METHOD_SERVICE);\n in.hideSoftInputFromWindow(editTextEmail.getWindowToken(), 0);\n }",
"public void hideKeyboard(){\n\t\tInputMethodManager inputMethodManager = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\tinputMethodManager.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\n\t}",
"private void hideKeyboard() {\n View view = getActivity().getCurrentFocus();\n if (view != null) {\n InputMethodManager inputManager = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n }\n }",
"public void onClick(View v) {\n editText1.setInputType(InputType.TYPE_NULL);\n InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n mgr.hideSoftInputFromWindow(editText1.getWindowToken(),InputMethodManager.HIDE_IMPLICIT_ONLY);\n }",
"public void closeKeyboard(){\n View v = getCurrentFocus();\n if(v != null){\n imm = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE);\n imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\n }\n }",
"public void onClick(View v) {\n editText2.setInputType(InputType.TYPE_NULL);\n InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n mgr.hideSoftInputFromWindow(editText2.getWindowToken(),InputMethodManager.HIDE_IMPLICIT_ONLY);\n }",
"private void schowajKlawiature() {\n View view = this.getActivity().getCurrentFocus(); //inside a fragment you should use getActivity()\n if (view != null) {\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }",
"private void hideKeyboard() {\n\t\tView view = getActivity().getCurrentFocus();\n\t\tif ( view != null ) {\n\t\t\tInputMethodManager inputManager = ( InputMethodManager ) getActivity().getSystemService( Context.INPUT_METHOD_SERVICE );\n\t\t\tinputManager.hideSoftInputFromWindow( view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS );\n\t\t}\n\t}",
"@Override\n public void onFocusChange(View v, boolean hasFocus) { // if focus has changed\n if (!hasFocus) {\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(v.getWindowToken(), 0);\n }\n }",
"public void onClick(View v) {\n editText3.setInputType(InputType.TYPE_NULL);\n InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n mgr.hideSoftInputFromWindow(editText3.getWindowToken(),InputMethodManager.HIDE_IMPLICIT_ONLY);\n }",
"@Override\n public void onDrawerOpened(View drawerView) {\n super.onDrawerOpened(drawerView);\n InputMethodManager inputMethodManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n }",
"public void hideSoftKeyboard() {\n if(getCurrentFocus()!=null) {\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n }\n }",
"@Override\n\t\t\tpublic void onAnimationEnd(Animation arg0) {\n\t\t\t\tInputMethodManager m = (InputMethodManager) input1.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t m.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);\n\t\t\t}",
"@Override\n\t\t\tpublic boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\t\t\t\tif(event!=null){\n\t\t\t\tInputMethodManager imm = (InputMethodManager)getSystemService(\n\t\t\t\t\t Context.INPUT_METHOD_SERVICE);\n\t\t\t\t\timm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}",
"public void hideSoftKeyboard() {\n\t if(getCurrentFocus()!=null) {\n\t InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n\t inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n\t }\n\t}",
"public static void showSoftInputMethod(Activity activity) {\n InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);\n }",
"private void hideKeyboard() {\n View view = this.getCurrentFocus();\n if (view != null) {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }",
"private void hideKeyboard() {\n //check to make sure no view has focus\n View view = this.getCurrentFocus();\n\n if (view != null) {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }",
"public static void hideKeyboard(Activity instance) \n\t{\n\t\tInputMethodManager imm = (InputMethodManager) instance.getSystemService(Activity.INPUT_METHOD_SERVICE);\n\t imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0); // hide\n\t}",
"private static void hideSoftKeyboard(Activity activity) {\n InputMethodManager inputMethodManager =\n (InputMethodManager) activity.getSystemService(\n Activity.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(\n activity.getCurrentFocus().getWindowToken(), 0);\n }",
"public void hideWindowSoftKeyboard() {\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n }",
"public void hideSoftKeyboard()\n\t{\n\t\tif (getCurrentFocus() != null)\n\t\t{\n\t\t\tInputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n\t\t\tinputMethodManager.hideSoftInputFromWindow(getCurrentFocus()\n\t\t\t\t\t.getWindowToken(), 0);\n\t\t}\n\t\t// InputMethodManager imm = (InputMethodManager)\n\t\t// getSystemService(INPUT_METHOD_SERVICE);\n\t\t// imm.hideSoftInputFromWindow(editHousePrice.getWindowToken(), 0);\n\t}",
"private void hideKeypad() {\n EditText editTextView = (EditText) findViewById(R.id.book_search_text);\n\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(editTextView.getWindowToken(), 0);\n }",
"public void hideKeyboard() {\n try {\n InputMethodManager inputmanager = (InputMethodManager)this.getSystemService(Context.INPUT_METHOD_SERVICE);\n if (inputmanager != null) {\n inputmanager.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), 0);\n }\n } catch (Exception var2) {\n }\n }",
"public void hideSoftKeyboard() {\n\t\tif (getCurrentFocus() != null) {\n\t\t\tInputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n\t\t\tinputMethodManager.hideSoftInputFromWindow(getCurrentFocus()\n\t\t\t\t\t.getWindowToken(), 0);\n\t\t}\n\t}",
"private void hideKeyboard() {\n\t\tInputMethodManager inputMgr = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\tEditText editText = (EditText)findViewById(R.id.searchtext);\n\t\tinputMgr.hideSoftInputFromWindow(editText.getWindowToken(), 0);\t\t\n\t}",
"public void showSoftKeyboard(){\n if(view.requestFocus()){\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.showSoftInput(view,InputMethodManager.SHOW_IMPLICIT);\n // imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);\n }\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t \t\t\t getWindow().setSoftInputMode(\n\t \t \t WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\t \t\t\tshowDialog();\n\t\t\t\t}",
"@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n InputMethodManager inputMethodManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n }",
"@Override\n public void onDrawerClosed(View drawerView) {\n super.onDrawerClosed(drawerView);\n InputMethodManager inputMethodManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n }",
"public void showKeyboard(){\n\t\tInputMethodManager inputMethodManager = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\tinputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);\n\t}",
"public static void hideSoftInputMethod(Activity activity) {\n InputMethodManager inputManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(\n activity.getWindow().getDecorView().getWindowToken(),\n 0\n );\n try {\n View currentFocus = activity.getWindow().getCurrentFocus();\n if (currentFocus != null)\n currentFocus.clearFocus();\n } catch (Exception e) {\n // current focus could be out of visibility\n }\n }",
"public void hideKeyboard() {\n View view = getCurrentFocus();\n if (view != null) {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n if (imm != null) {\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }\n }",
"private void hideKeyboard() {\n View view = this.getCurrentFocus();\n if (view != null) {\n InputMethodManager inputManager = (InputMethodManager) this.getSystemService( Context.INPUT_METHOD_SERVICE );\n inputManager.hideSoftInputFromWindow( view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS );\n }\n }",
"public void setInputMethodShowOff() {\n\n }",
"public static void hideSoftKeyboard(Activity activity) {\n if (activity.getCurrentFocus() != null) {\n InputMethodManager inputMethodManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), 0);\n }\n }",
"private void hideKeyboard(View view) {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n\n }",
"private void hideKeyboard(View v) {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n\n }",
"private void hideKeyboard() {\n View view = this.getCurrentFocus();\n if (view != null) {\n InputMethodManager inputManager = (InputMethodManager) this\n .getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(view.getWindowToken(),\n InputMethodManager.HIDE_NOT_ALWAYS);\n }\n }",
"public static void hideKeyboard(Fragment fragment) {\n fragment.getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n }",
"public static void hideKeyboard(Activity activity) {\n activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n }",
"private void closeKeyboard(){\n View view = this.getCurrentFocus();\n if (view != null){\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }",
"public void hideInputMethod(IBinder token) {\n \tif (mImMgr != null) {\n \t\tmImMgr.hideSoftInputFromWindow(token, 0);\n \t}\n }",
"public static void hideSoftKeyboard(Activity activity) {\n\n InputMethodManager inputManager = (InputMethodManager)\n activity.getSystemService(\n Context.INPUT_METHOD_SERVICE);\n View focusedView = activity.getCurrentFocus();\n\n if (focusedView != null) {\n\n try{\n assert inputManager != null;\n inputManager.hideSoftInputFromWindow(focusedView.getWindowToken(),\n InputMethodManager.HIDE_NOT_ALWAYS);\n }catch(AssertionError e){\n e.printStackTrace();\n }\n }\n }",
"private void dismisskeyboard() {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(usernameTxt.getWindowToken(), 0);\n imm.hideSoftInputFromWindow(passwordTxt.getWindowToken(), 0);\n imm.hideSoftInputFromWindow(fullnameTxt.getWindowToken(), 0);\n }",
"public static void hideKeyboard(Context context, View myEditText) {\n hideKeyboard(context);\n try {\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);\n } catch (Exception ignored) {\n }\n }",
"public void hideKeyboard() {\n View view = this.getCurrentFocus();\n if (view != null) {\n InputMethodManager inputManager = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n }\n }",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tInputMethodManager imm = (InputMethodManager) getApplicationContext()\n\t\t\t\t\t\t.getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t\timm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n\t\t\t\treturn false;\n\t\t\t}",
"public static void hideKeyboard(Activity activity) {\n View view = activity.findViewById(android.R.id.content);\n if (view != null) {\n InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }",
"private void hideKeyboard() {\n\t View view = this.getCurrentFocus();\n\t if (view != null) {\n\t InputMethodManager inputManager = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);\n\t inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n\t }\n\t}",
"private void hideKeyboard() {\n\t View view = this.getCurrentFocus();\n\t if (view != null) {\n\t InputMethodManager inputManager = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);\n\t inputManager.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n\t }\n\t}",
"@Override\n public void setFocus(Context context) {\n InputMethodManager inputManager =\n (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(this.getWindowToken(), 0);\n\n }",
"protected void hideKeyboard(View view)\n {\n InputMethodManager in = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n in.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n }",
"private void switchToFlagFragment(){\n //Hide keyboard from the current window\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n EditText commentField = (EditText) getActivity().findViewById(R.id.flagDetailCommentField);\n imm.hideSoftInputFromWindow(commentField.getWindowToken(), 0);\n\n FragmentManager fm = getFragmentManager();\n fm.popBackStack();\n }",
"public static void hideSoftKeypad(Context context) {\n Activity activity = (Activity) context;\n if(activity != null) {\n InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);\n if (activity.getCurrentFocus() != null) {\n imm.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), 0);\n }\n }\n }",
"@Override\n public void onClick(View v) {\n searchET.setText(\"\");\n //hide keyboard\n Utils.hideKeyboard(getActivity());\n }",
"public static void hideKeyboard(Activity activity){\n\t\tif (activity.getCurrentFocus() != null){\n\t \tInputMethodManager inputMethodManager = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);\n\t \tinputMethodManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n\t }\n\t}",
"public static void hideSoftKeyboardwithEdit(View view, Context mContext) {\n if (!(view instanceof EditText)) {\n try {\n InputMethodManager inputManager = (InputMethodManager) mContext\n .getSystemService(Activity.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(((Activity) mContext).getCurrentFocus().getWindowToken(), 0);\n } catch (Exception ignored) {\n }\n\n }\n\n }",
"private void closeKeyboard()\n {\n View view = this.getCurrentFocus();\n if(view != null)\n {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }",
"public static void hideKeyboard(Activity activity)\n {\n View view = activity.getCurrentFocus();\n //If no view currently has focus, create a new one, just so we can grab a window token from it\n if(view != null)\n {\n InputMethodManager inputMethodManager = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }",
"public static void hide(@Nullable Activity activity) {\n if (activity == null) {\n LogHelper.writeWithTrace(Level.WARNING, TAG, \"Activity is null!\");\n return;\n }\n\n InputMethodManager mgr = (InputMethodManager)activity\n .getSystemService(Context.INPUT_METHOD_SERVICE);\n if (mgr != null) {\n mgr.hideSoftInputFromWindow(activity\n .getWindow().getDecorView().getWindowToken(), 0);\n }\n }",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n if(event.getAction() == MotionEvent.ACTION_DOWN){\n if(getCurrentFocus()!=null && getCurrentFocus().getWindowToken()!=null){\n manager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n }\n }\n return super.onTouchEvent(event);\n }",
"public static void hideKeyboard(Activity activity) {\n if(activity == null){\n throw new IllegalArgumentException(\"Activity cannot be null\");\n }\n\n InputMethodManager imm = (InputMethodManager) activity\n .getSystemService(Activity.INPUT_METHOD_SERVICE);\n //Find the currently focused view, so we can grab the correct window token from it.\n View view = activity.getCurrentFocus();\n //If no view currently has focus, create a new one, just so we can grab a window token from it\n if (view == null) {\n view = new View(activity);\n }\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }",
"public void keyboardUp(EditText editText) {\n editText.setFocusableInTouchMode(true);\n editText.requestFocus();\n //focus 후 키보드 올리기\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n assert imm != null;\n imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY);\n }",
"public static void requestHideKeyboard(Context context, View v) {\n InputMethodManager imm = ((InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE));\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n }",
"public void onPressHideKeyboard(EditText editText){\n editText.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n /*hide keyboard\n If press any else where on screen, (need clickable=\"true\" & focusableInTouchMode=\"true\" in base layer xml)\n */\n @Override\n public void onFocusChange(View v, boolean hasFocus) { // if focus has changed\n if (!hasFocus) {\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(v.getWindowToken(), 0);\n }\n }\n });\n\n }",
"public static void hideKeyboard(Context context, EditText editText) {\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n if (editText != null) {\n imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);\n //editText.clearFocus();\n //editText.setInputType(0);\n }\n }",
"public static void HideKeyboardMain(Activity mContext, View view) {\n try {\n InputMethodManager imm = (InputMethodManager) mContext\n .getSystemService(Context.INPUT_METHOD_SERVICE);\n // R.id.search_img\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onClick(View view) {\n InputMethodManager imm = (InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(homesearchbar.getWindowToken(), 0);\n // launch_search(searchText.getText().toString());\n homecontainer.setVisibility(View.VISIBLE);\n homesearchbar.setVisibility(View.INVISIBLE);\n searchText.setText(\"\");\n }",
"public static void showKeyboard(Context mContext) {\n\n try {\n InputMethodManager imm = (InputMethodManager)mContext\n . getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);\n\n } catch (Exception ignored) {\n }\n }",
"public static void hideKeyboard(View view) {\n InputMethodManager inputManager = (InputMethodManager) view.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }",
"@Override\n public void onClick(View view) {\n InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n if (imm != null) {\n imm.hideSoftInputFromWindow(view.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n }\n\n /*\n * Logic to Prevent the Launch of the Fragment Twice if User makes\n * the Tap(Click) very Fast.\n */\n if (SystemClock.elapsedRealtime() - lastClickedTime < MAX_CLICK_INTERVAL) {\n\n return;\n }\n lastClickedTime = SystemClock.elapsedRealtime();\n\n }",
"@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tif (event.getAction() == MotionEvent.ACTION_DOWN) {\r\n\t\t\tif (getCurrentFocus() != null\r\n\t\t\t\t\t&& getCurrentFocus().getWindowToken() != null) {\r\n\t\t\t\tmanager.hideSoftInputFromWindow(getCurrentFocus()\r\n\t\t\t\t\t\t.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn super.onTouchEvent(event);\r\n\t}",
"public void showSoftInput(){\n if(isEditable() && isEnabled()){\n if(isInTouchMode()){\n requestFocusFromTouch();\n }\n if(!hasFocus()){\n requestFocus();\n }\n mInputMethodManager.showSoftInput(this, 0);\n }\n }",
"public static void hideKeyboardFrom(Context context, View view) {\n if (view != null) {\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n }",
"public static void hideKeyboard(Context mContext) {\n try {\n InputMethodManager inputManager = (InputMethodManager) mContext\n .getSystemService(Activity.INPUT_METHOD_SERVICE);\n inputManager.hideSoftInputFromWindow(((Activity) mContext).getCurrentFocus().getWindowToken(), 0);\n } catch (Exception ignored) {\n }\n }",
"@Override\r\n public boolean dispatchTouchEvent(MotionEvent event) {\n\r\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\r\n View v = getCurrentFocus();\r\n if (v instanceof EditText) {\r\n Rect outRect = new Rect();\r\n v.getGlobalVisibleRect(outRect);\r\n if (!outRect.contains((int) event.getRawX(), (int) event.getRawY())) {\r\n v.clearFocus();\r\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\r\n }\r\n }\r\n }\r\n return super.dispatchTouchEvent(event);\r\n }",
"public static void hideKeyboardFrom(Context context, View view) {\n if(context == null){\n throw new IllegalArgumentException(\"Context cannot be null\");\n }\n\n if(view == null){\n throw new IllegalArgumentException(\"View cannot be null\");\n }\n\n InputMethodManager imm = (InputMethodManager) context\n .getSystemService(Activity.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }",
"@Override\n public void onClick(View view) {\n InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(gridsearchbar.getWindowToken(), 0);\n //launch_search(searchTextG.getText().toString());\n gridhomecontainer.setVisibility(View.VISIBLE);\n gridsearchbar.setVisibility(View.INVISIBLE);\n searchTextG.setText(\"\");\n }",
"public void setInputMethodShowOn() {\n\n }",
"@Override\n public void onClick(View v) {\n showKeyboard();\n }",
"@Override\n public boolean setSoftKeyboardShowMode(int mode) {\n return false;\n }",
"@Override\n public void onClick(View v) {\n try {\n InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);\n } catch (Exception e) {\n e.printStackTrace();\n }\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\tInputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\timm.hideSoftInputFromWindow(mAmountEditText.getWindowToken(), 0);\n\t\t\n\t\treturn true;\n\t}",
"@Override\n public void onClick(View view) {\n if (view.getId() == R.id.button_search) {\n InputMethodManager inputMethodManager = (InputMethodManager) getActivity().getSystemService(INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(getActivity().getCurrentFocus().getWindowToken(), 0);\n //onClickSearchRecipe(view);\n AddRecipeBox(view);\n //loadBar.setVisibility(View.VISIBLE);\n }\n }",
"public static void hideKeyBoard(Activity mActivity, View mGetView) {\n\t\ttry {\n\t\t\t((InputMethodManager) mActivity\n\t\t\t\t\t.getSystemService(Activity.INPUT_METHOD_SERVICE))\n\t\t\t\t\t.hideSoftInputFromWindow(mGetView.getRootView()\n\t\t\t\t\t\t\t.getWindowToken(), 0);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\t\t// hideSoftKeyboard();\n\t}",
"@Override\n public boolean onQueryTextSubmit(String query) {\n InputMethodManager imm = (InputMethodManager)mSearchView.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(mSearchView.getWindowToken(), 0);\n return true;\n }",
"void hideSoftKeyBoard();",
"private void setShowKeyboard(boolean show, View v) {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n if (!show) {\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n } else {\n imm.showSoftInput(v, InputMethodManager.SHOW_IMPLICIT);\n }\n }",
"public void hideKeyboard() {\n getDriver().hideKeyboard();\n }",
"@Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_SEARCH) {\n //Hide soft keyboard\n InputMethodManager imm = (InputMethodManager) MyApp.getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(edtSearch.getWindowToken(), 0);\n\n if (edtSearch.getText().toString().length() > 0)\n btnCancelSearch.setVisibility(View.VISIBLE);\n else\n btnCancelSearch.setVisibility(View.GONE);\n //searchItems();\n return true;\n }\n return false;\n }",
"@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tif (event.getAction() == MotionEvent.ACTION_DOWN) {\n\t\t\tif (ChangeLoginActivity.this.getCurrentFocus() != null) {\n\t\t\t\tif (ChangeLoginActivity.this.getCurrentFocus().getWindowToken() != null) {\n\t\t\t\t\tInputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t\t\t\timm.hideSoftInputFromWindow(ChangeLoginActivity.this\n\t\t\t\t\t\t\t.getCurrentFocus().getWindowToken(),\n\t\t\t\t\t\t\tInputMethodManager.HIDE_NOT_ALWAYS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn super.onTouchEvent(event);\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tInputMethodManager imm0 = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\r\n\t\timm0.hideSoftInputFromWindow(ivBack.getWindowToken(), 0);\r\n\t\tsuper.onBackPressed();\r\n\r\n//\t\tActivityManagerUtil.getActivityManager().finishActivity(this);\r\n//\t\tthis.overridePendingTransition(R.anim.back_left_into,\r\n//\t\t\t\tR.anim.back_right_out);\r\n\t}",
"public void showSoftKeyboard(View view) {\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);\n view.requestFocus();\n inputMethodManager.showSoftInput(view, 0);\n }",
"@Override\n public void hide() {\n Gdx.input.setOnscreenKeyboardVisible(false);\n super.hide();\n }",
"public static void hideKeyboard(Context mContext, View v) {\n InputMethodManager imm = (InputMethodManager) mContext\n .getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(v.getWindowToken(),\n InputMethodManager.HIDE_NOT_ALWAYS);\n }",
"public void supressKeyboard() {\n\t\tgetWindow().setSoftInputMode(\n\t\t\t\tWindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\t}"
] | [
"0.818005",
"0.80555844",
"0.78742856",
"0.782863",
"0.7775774",
"0.7731705",
"0.76832104",
"0.76426154",
"0.7642004",
"0.75618863",
"0.7476846",
"0.7475574",
"0.74635553",
"0.739553",
"0.73675025",
"0.73430145",
"0.7259107",
"0.7236833",
"0.7188352",
"0.7187892",
"0.71744275",
"0.7173465",
"0.7169986",
"0.71678644",
"0.71304286",
"0.71070284",
"0.7091017",
"0.7086847",
"0.70821625",
"0.70667344",
"0.70582736",
"0.70513415",
"0.70513415",
"0.7028175",
"0.7023595",
"0.70222884",
"0.7015032",
"0.70129097",
"0.70019823",
"0.69875705",
"0.6965211",
"0.6959925",
"0.693844",
"0.69325286",
"0.69220096",
"0.6911725",
"0.6900191",
"0.6875453",
"0.68679154",
"0.6866768",
"0.68586785",
"0.6857986",
"0.6854243",
"0.6854243",
"0.67967117",
"0.6784667",
"0.6776303",
"0.67587113",
"0.67360747",
"0.6717615",
"0.67151076",
"0.6700701",
"0.66933674",
"0.6656579",
"0.6652997",
"0.6644996",
"0.66446763",
"0.6634598",
"0.6615724",
"0.65513647",
"0.6512662",
"0.6494997",
"0.6482258",
"0.6467627",
"0.6445239",
"0.6434591",
"0.642265",
"0.6336642",
"0.628896",
"0.62868667",
"0.6276899",
"0.625912",
"0.62590504",
"0.6222554",
"0.6219807",
"0.6215982",
"0.6170911",
"0.61679775",
"0.61359084",
"0.61268395",
"0.61243975",
"0.6115819",
"0.60943204",
"0.60917777",
"0.60854405",
"0.6070311",
"0.60487145",
"0.6032977",
"0.60233885",
"0.6021291",
"0.600422"
] | 0.0 | -1 |
generating the jobs to the HDD | public void genaratePCB() {
while (HDD > 0) {
nJobs++;
PCB k = new PCB(nJobs);
k.setBasedOnSize(true);
HDDQ.add(k);
HDD -= k.getSize();
sizeJ += k.getSize();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void generateTasks() {\r\n int tasks = Integer.parseInt(this.getProperty(\"numTask\", \"1000\"));\r\n setNumOfTasks(tasks);\r\n //TODO:fixed port here !!!! need to change!!!\r\n serverPort = Integer.parseInt(this.getProperty(\"reqServerPort\", \"5560\")); \r\n PROC_MAX = Integer.parseInt(this.getProperty(\"reqServerMaxConcurrentClients\",\"10\"));\r\n location = this.getProperty(\"location\", \"rutgers\");\r\n energyplusPropertyFile = this.getProperty(\"energyplusTemplate\", \"energyplus.property\");\r\n \r\n winnerTakeAll = Boolean.parseBoolean(this.getProperty(\"winnerTakeAll\",\"true\"));\r\n jobDistributionMap = new HashMap<Integer,Integer>();\r\n copyJobDistributionMap = new HashMap<Integer,Integer>();\r\n //System.out.println(\"energyplusPropertyFile:\"+energyplusPropertyFile);\r\n \r\n initInfoSystem();\r\n initDistributionSystem();\r\n startFedServer();\r\n }",
"public void scheduleJobs();",
"private void startAllDownloads() {\n\t\tif (!downloading && jobs != null && jobs.size() > 0) {\n\t\t\tfor (DownloadJob nextJob : jobs) {\n\t\t\t\tAppLogger.log(TAG, \"job \" + nextJob.getJobId() + \" working=\" + nextJob.isWorking());\n\t\t\t\tif (!nextJob.isWorking()) {\n\t\t\t\t\tstartDownloadJob(nextJob);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// for (DownloadJob job : jobs) {\n\t\t\t// AppLogger.log(TAG, \"job \" + job.generateJobId() + \" working=\" +\n\t\t\t// job.isWorking());\n\t\t\t// if (!job.isWorking()) {\n\t\t\t// startDownloadJob(job);\n\t\t\t// }\n\t\t\t// }\n\t\t}\n\t}",
"public void SampleLinux() {\n \t\tfor (int loop = 0; loop < 10; loop++) {\n \t\t\tJobs jobUnit = new Jobs(\"date\", \"Linux\");\n \t\t\tjobqueue.add(jobUnit);\n \t\t}\n \t}",
"@Override\n\tpublic void run() {\n\t\tString path = \"D:\\\\test\";\n\t\tfor(int i=1;i<65535;i++){\n\t\t\tFile file = new File(path+File.separator+name+i);\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.mkdirs();\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}",
"private void scheduleJob() {\n\n }",
"public Disk_Scheduler(LinkedList<Process> IO) {\n Random rn = new Random();\n this.current_position = Math.abs((rn.nextInt()) % 200);//generating random current position\n this.io_queue = IO;//putting the requests in the io queue\n }",
"@Override\n public void run() {\n \n while (true) {\n \n // generate large VTFull files\n w.write(Utils.getInstance().generateFileName());\n \n try {\n \n Thread.sleep(Consts.SHORT_NAP);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n \n }",
"@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(JOB_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (JobDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getTitle()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeName());\n\t\t\t\t\t\trecord.add(transaction.getJobType());\n\t\t\t\t\t\trecord.add(transaction.getPlannedStartTime());\n\t\t\t\t\t\trecord.add(transaction.getActualEndTime());\n\t\t\t\t\t\trecord.add(transaction.getJobStatus() != null ? transaction.getJobStatus().name()\n\t\t\t\t\t\t\t\t: JobStatus.OPEN.name());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!! \" + e);\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"public static void main(String[] args) throws Exception {\n\t\tConfiguration conf = new Configuration();\n\t\tSystem.out.println(\"[~programer messege~] Staring step 1 .\");\n\n\t\tJob job = Job.getInstance(conf);\n\t\tjob.setJarByClass(Step1Blessed5Gram.class);\n\t\tjob.setMapperClass(MapperClass5GramAgg.class);\n\t\tjob.setReducerClass(ReducerClass.class);\n\t\t//job.setNumReduceTasks(1);\n\t\tjob.setMapOutputKeyClass(Text.class);\n\t\tjob.setMapOutputValueClass(LongWritable.class);\n\t\tjob.setOutputKeyClass(Text.class);\n\t\tjob.setOutputValueClass(LongWritable.class);\n\t\tjob.setOutputFormatClass(TextOutputFormat.class);\n\t\tjob.setInputFormatClass(TextInputFormat.class);\n\t\tFileInputFormat.addInputPath(job, new Path(args[0]));\n\t\t/* cache */\n\t\tFileSystem fs_s3a = new S3AFileSystem();\n\t\t//args[1] = \"s3n://ass3dsp181resultstamir\"\n\t\tfs_s3a.initialize(URI.create(args[1] ) , conf);\n\t\t// args[2] = \"s3n://ass3dsp181resultstamir/blessed/\"\n\t\tPath path = new Path(args[2]);\n\t\tRemoteIterator<LocatedFileStatus> itr = fs_s3a.listFiles(path, false);\n\t\twhile (itr.hasNext()) {\n\t\t\tLocatedFileStatus f = itr.next();\n\t\t\tif(f.getPath().getName().toString().equals(\"_SUCCESS\")) {\n\t\t\t\tSystem.out.println(\"[Step1] Skiped \\\"_SUCCESS\\\" file\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(\"[Step1] Adding \"+ f.getPath().toUri()+\" URI to cache File\");\n\t\t\tjob.addCacheFile(f.getPath().toUri());\n\t\t\tSystem.out.println(\"[Step1]\tA file has been added to cache\");\n\t\t}\n\t\tfs_s3a.close();\n\t\tSystem.out.println(\"[Step1] Finished adding files to cache.\");\n\t\tFileOutputFormat.setOutputPath(job, new Path(args[3]));\n\t\tjob.waitForCompletion(true);\n\t\tSystem.out.println(\"finished step1 \");\n\t}",
"WorkoutBatch copy();",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile (i < 50) {\r\n\t\t\t\t\tString job = Thread.currentThread().getName() + \"---\" + new Random(99999L).toString();\r\n\t\t\t\t\tprinter.addJob(job);\r\n\t\t\t\t\tSystem.out.println(\"Added \" + job + \" to Printer Queue\");\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(15);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}",
"public void runSJF() {\n\n //init\n ArrayList<Processus> localProcess = new ArrayList<>(); //Creation of a local list of process\n for (Processus cpy : listOfProcess) { //Copy the list of process in the local list\n localProcess.add(cpy);\n }\n int size = listOfProcess.size(); //variable used to save the initial size of the list of process\n\n Processus executedProc = null; //ExecutedProc is the current process that is being execute\n Processus tmpProc = localProcess.get(0); //The tmpProc is the previous process executed\n\n //Variable we need to calcul\n double occupancyRate = 0;\n double averageWaitingTime = 0;\n double averageReturnTime = 0;\n int currentTime = 0;\n int occupancyTime = 0;\n\n //beginning of the algo\n while (!localProcess.isEmpty()) { //As long as there are processes that are not done yet we keep going on\n\n //Determines the next process that will be executed\n for (Processus proc : localProcess) { //flow all remaining processes\n if (proc.getTime() <= currentTime) { //check if the currentTime of the process is below the currentTime\n if (localProcess.size() == 1) { //if there is only one process left\n executedProc = proc;\n } else if ((proc.getRessource(proc.getCurrentStep()) <= tmpProc.getRessource(tmpProc.getCurrentStep())) || (proc.getTime() < tmpProc.getTime())) {//shortest process selected\n executedProc = proc;\n tmpProc = proc;\n }\n }\n }\n\n //Check if the current process is assigned\n if (executedProc != null) {\n\n //execute the current ressource\n int tmpTime = 0;\n while (executedProc.getRessource(executedProc.getCurrentStep()) > tmpTime) { //As long as there is a resource\n for (Processus proc : localProcess) {\n if (proc.getTime() <= currentTime && !proc.equals(executedProc)) { //checking if there is another process waiting\n proc.setWaitingTime(1);\n }\n }\n currentTime++; //currentTime is updating at each loop\n occupancyTime++; //occupancyTime is updating at each loop\n tmpTime++;\n }\n\n executedProc.setCurrentStep(executedProc.getCurrentStep() + 1); //Update the currentStep to the next one (index of the lists of UC and inOut)\n\n if (executedProc.getCurrentStep() >= executedProc.getlistOfResource().size()) {//if it is the end of the process\n averageReturnTime += executedProc.getExecutedTime(); //update the average return time by adding the time that the process took\n localProcess.remove(executedProc); //remove the process from the list of process that needs to run\n }\n\n if (executedProc.getCurrentStep() <= executedProc.getListOfInOut().size()) { //If there is another inOut, it set the new time\n executedProc.setTime(executedProc.getInOut(executedProc.getCurrentStep() - 1) + currentTime);\n }\n\n executedProc = null;\n } else {\n currentTime++;\n }\n }\n //end of the algo\n\n //Calculation of the variables\n occupancyRate = ((double) occupancyTime / (double) currentTime) * 100;\n for (Processus proc : listOfProcess) {\n averageWaitingTime += proc.getWaitingTime();\n }\n averageWaitingTime = averageWaitingTime / size;\n averageReturnTime = averageReturnTime / size;\n\n //Updating the global variables\n currentAverageReturnTime = averageReturnTime;\n logger.trace(\"Current average return time : \" + currentAverageReturnTime);\n currentAverageWaitingTime = averageWaitingTime;\n logger.trace(\"Current average waiting time : \" + currentAverageWaitingTime);\n currentOccupancyRate = occupancyRate;\n logger.trace(\"Current occupancy rate : \" + currentOccupancyRate);\n currentOccupancyTime = occupancyTime;\n logger.trace(\"Current occupancy time : \" + currentOccupancyTime);\n\n restList(); //reset the list to the origin values so the user can test another algo\n }",
"public abstract void prepareTasks() throws JobException;",
"private void saveJobList() {\n\t\tFileLoader.saveObject(getApplicationContext(), FILE_NAME_JOBS, (Serializable) jobs);\n\t}",
"public void run() {\n\t\tif ((phase == 0) && (pState.equals(\"ru\"))) {\t\n\t\t\tPyOS.askForResource(PyOS.waitingList6, 6);\n\t\t\tneededResource = 6;\n\t\t\tphase = 1;\n\t\t}\n\t\t//2) asks for supervisor memory\n\t\tif ((phase == 1) && (receivedResource == 6) && (pState.equals(\"ru\"))) {\t\n\t\t\tPyOS.askForResource(PyOS.waitingList2, 2);\n\t\t\tneededResource = 2;\n\t\t\tphase = 2;\n\t\t}\n\t\t\n\t\t//3)asks for hard drive memory\n\t\t//TODO\n\t\tif ((phase == 2) && (receivedResource == 2) && (pState.equals(\"ru\"))) {\t\n\t\t\n\t\t\tPyOS.askForResource(PyOS.waitingList4, 4);\n\t\t\tneededResource = 4;\n\t\t\tphase = 3;\n\t\t}\n\t\t\n\t\t//4) copies task to hard drive memmory\n\t\t//TODO\n\t\tif ((phase == 3) && (receivedResource == 4) && (pState.equals(\"ru\"))) {\t\n\t\t\tneededResource = 0;\n\t\t\t\n\t\t\tString line = new String();\n\t\t\t\n\t\t\tdo {\n\t\t\t\ttry {\n\t\t\t\t\tline = OSUI.flash.readLine();\n\t\t\t\t\tif (line != null) {\n\t\t\t\t\t\tHdd.openFileForWriting(filesInUse);\n\t\t\t\t\t\tHdd.writeToFile(filesInUse, line);\n\t\t\t\t\t\tHdd.closeFile(filesInUse);\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} while (line != null && !line.equals(\"$END\"));\n\t\t\t\n\t\t\tif (line == null) {\n\t\t\t\tPyOS.askForResource(PyOS.waitingList1, 1);\n\t\t\t\tPyOS.freeResource(PyOS.waitingList2, 2, ownedResList.get(1));\n\t\t\t\tPyOS.freeResource(PyOS.waitingList4, 4, ownedResList.get(1));\n\t\t\t} else {\n\t\t\t\tfilesInUse++;\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tPyOS.freeResource(PyOS.waitingList6, 6, ownedResList.get(0));\n\t\t\tphase = 4;\n\t\t}\n\t\t\n\t\t//5 TODO free flash, hard drive resources\n\t\tif ((phase == 4) && (pState.equals(\"ru\"))){\n\t\t\tPyOS.freeResource(PyOS.waitingList2, 2, ownedResList.get(0));\n\t\t\tPyOS.freeResource(PyOS.waitingList4, 4, ownedResList.get(0));\n\t\t\tphase = 5;\n\t\t}\n\t\t\n\t\t//7) creates resource task in hard drive\n\t\t//TODO resource should contain fileId\n\t\tif ((phase == 5) && (pState.equals(\"ru\"))) {\n\t\t\t\n\t\t\t\n\t\t\tPyOS.createResource(7, intID);\n\t\t\townedResList.add(createdResList.get(createdResList.size()-1));\n\t\t\townedResList.get(ownedResList.size()-1).user = PyOS.findProcessByIntId(intID);\n\t\t\t((TaskInHardDrive)ownedResList.get(ownedResList.size()-1)).computingTime = 1;\n\t\t\tPyOS.freeResource(PyOS.waitingList7, 7, ownedResList.get(ownedResList.size()-1));\n\t\t\tphase = 0;\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\n void initExisting() throws IOException {\n LOG.info(\"Initializing Existing Jobs...\");\n List<FileStatus> timestampedDirList = findTimestampedDirectories();\n Collections.sort(timestampedDirList);\n for (FileStatus fs : timestampedDirList) {\n // TODO Could verify the correct format for these directories.\n addDirectoryToSerialNumberIndex(fs.getPath());\n addDirectoryToJobListCache(fs.getPath());\n }\n }",
"private void assignResourcesToJobs\n\t\t(long now)\n\t\tthrows IOException\n\t\t{\n\t\t// List of jobs to be canceled.\n\t\tList<JobInfo> cancelList = new LinkedList<JobInfo>();\n\n\t\t// Decide what to do with each waiting job.\n\t\tIterator<JobInfo> iter = myWaitingJobList.iterator();\n\t\tjobLoop : while (iter.hasNext())\n\t\t\t{\n\t\t\tJobInfo jobinfo = iter.next();\n\n\t\t\t// If the cluster doesn't have enough resources, don't try to\n\t\t\t// reserve any.\n\t\t\tif (! enoughResourcesForJob (jobinfo.Nn, jobinfo.Np, jobinfo.Nt))\n\t\t\t\t{\n\t\t\t\titer.remove();\n\t\t\t\tcancelList.add (jobinfo);\n\t\t\t\tcontinue jobLoop;\n\t\t\t\t}\n\n\t\t\t// Used to decide how many processes for each node.\n\t\t\tint Np_div_Nn = jobinfo.Np / jobinfo.Nn;\n\t\t\tint Np_rem_Nn = jobinfo.Np % jobinfo.Nn;\n\n\t\t\t// Reserve idle nodes for this job until there are no more idle\n\t\t\t// nodes or this job has all the nodes it needs.\n\t\t\tint be = myNextBackendNumber;\n\t\t\tdo\n\t\t\t\t{\n\t\t\t\t// Decide how many processes for this node.\n\t\t\t\tint Nproc = Np_div_Nn;\n\t\t\t\tif (jobinfo.nodeCount < Np_rem_Nn) ++ Nproc;\n\n\t\t\t\t// Reserve this node only if it is idle and it has enough CPUs.\n\t\t\t\tBackendInfo backendinfo = myBackendInfo[be];\n\t\t\t\tif (backendinfo.state == BackendInfo.State.IDLE &&\n\t\t\t\t\t\tbackendinfo.totalCpus >= Nproc)\n\t\t\t\t\t{\n\t\t\t\t\t// Reserve node.\n\t\t\t\t\tbackendinfo.state = BackendInfo.State.RESERVED;\n\t\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\t\tbackendinfo.job = jobinfo;\n\n\t\t\t\t\t// Used to decide how many CPUs for each process.\n\t\t\t\t\tint Nt_div_Nproc = backendinfo.totalCpus / Nproc;\n\t\t\t\t\tint Nt_rem_Nproc = backendinfo.totalCpus % Nproc;\n\n\t\t\t\t\t// Assign Np processes.\n\t\t\t\t\tfor (int i = 0; i < Nproc; ++ i)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t// Decide how many CPUs for this process.\n\t\t\t\t\t\tint Ncpus = jobinfo.Nt;\n\t\t\t\t\t\tif (Ncpus == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNcpus = Nt_div_Nproc;\n\t\t\t\t\t\t\tif (i < Nt_rem_Nproc) ++ Ncpus;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Log information.\n\t\t\t\t\t\tmyLog.log\n\t\t\t\t\t\t\t(now,\n\t\t\t\t\t\t\t \"Job \" + jobinfo.jobnum + \" assigned \" +\n\t\t\t\t\t\t\t backendinfo.name + \", rank=\" + jobinfo.count +\n\t\t\t\t\t\t\t \", CPUs=\" + Ncpus);\n\n\t\t\t\t\t\t// Record information about process.\n\t\t\t\t\t\tjobinfo.backend[jobinfo.count] = backendinfo;\n\t\t\t\t\t\tjobinfo.cpus[jobinfo.count] = Ncpus;\n\t\t\t\t\t\t++ jobinfo.count;\n\n\t\t\t\t\t\t// Inform Job Frontend.\n\t\t\t\t\t\tjobinfo.frontend.assignBackend\n\t\t\t\t\t\t\t(/*theJobScheduler*/ this,\n\t\t\t\t\t\t\t /*name */ backendinfo.name,\n\t\t\t\t\t\t\t /*host */ backendinfo.host,\n\t\t\t\t\t\t\t /*jvm */ backendinfo.jvm,\n\t\t\t\t\t\t\t /*classpath */ backendinfo.classpath,\n\t\t\t\t\t\t\t /*jvmflags */ backendinfo.jvmflags,\n\t\t\t\t\t\t\t /*Nt */ Ncpus);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Assign one node.\n\t\t\t\t\t++ jobinfo.nodeCount;\n\t\t\t\t\t}\n\n\t\t\t\t// Consider next node.\n\t\t\t\tbe = (be + 1) % myBackendCount;\n\t\t\t\t}\n\t\t\twhile (be != myNextBackendNumber && jobinfo.count < jobinfo.Np);\n\t\t\tmyNextBackendNumber = be;\n\n\t\t\t// If this job now has Np processes, start running this job.\n\t\t\tif (jobinfo.count == jobinfo.Np)\n\t\t\t\t{\n\t\t\t\t// Log information.\n\t\t\t\tmyLog.log (now, \"Job \" + jobinfo.jobnum + \" started\");\n\n\t\t\t\t// Mark job as running.\n\t\t\t\titer.remove();\n\t\t\t\tmyRunningJobList.add (jobinfo);\n\t\t\t\tjobinfo.state = JobInfo.State.RUNNING;\n\t\t\t\tjobinfo.stateTime = now;\n\n\t\t\t\t// Mark all the job's nodes as running.\n\t\t\t\tfor (BackendInfo backendinfo : jobinfo.backend)\n\t\t\t\t\t{\n\t\t\t\t\tbackendinfo.state = BackendInfo.State.RUNNING;\n\t\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\t\t}\n\n\t\t\t\t// If the Job Scheduler is imposing a maximum job time, start\n\t\t\t\t// job timer.\n\t\t\t\tif (myJobTime > 0)\n\t\t\t\t\t{\n\t\t\t\t\tjobinfo.jobTimer.start (myJobTime * 1000L);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// If this job does not yet have Np processes, don't schedule any\n\t\t\t// further jobs.\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tbreak jobLoop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Cancel jobs for which there are insufficient resources.\n\t\tfor (JobInfo jobinfo : cancelList)\n\t\t\t{\n\t\t\tdoCancelJobTooFewResources (now, jobinfo);\n\t\t\t}\n\t\t}",
"public static void main(String[] args) {\n \n FCrawler fc = new FCrawler();\n \n \n \n // now start all of the worker threads\n \n int N = 5;\n ArrayList<Thread> thread = new ArrayList<Thread>(N);\n for (int i = 0; i < N; i++) {\n Thread t = new Thread(fc.createWorker());\n thread.add(t);\n t.start();\n }\n \n// now place each directory into the workQ\n \n // fc.processDirectory(Args[0]);\n \n fc.processDirectory(\"D://\");\n// indicate that there are no more directories to add\n \n fc.workQ.finish();\n \n for (int i = 0; i < N; i++){\n try {\n thread.get(i).join();\n } catch (Exception e) {};\n }\n }",
"private void batchExport(){\r\n \t \t\r\n \t// Retrieve all the rsml files\r\n \tFile f = new File(batchSourceFolder.getText());\r\n \tFile[] rsml = f.listFiles(new FilenameFilter() {\r\n \t\tpublic boolean accept(File directory, String fileName) {\r\n \t\t\treturn fileName.endsWith(\".rsml\");\r\n \t\t}\r\n \t});\r\n \t \t\r\n \tif(rsml.length < 100){\r\n\t \tSR.write(\"Batch export started for \"+rsml.length+\" files\");\r\n\t\r\n\t \t// Open the different RSML files, retriev their data and get their size.\r\n\t \tRootModel[] models = new RootModel[rsml.length];\r\n\t \tint w = 0; int h = 0;\r\n\t \t \tfor(int i = 0; i < rsml.length; i++){\r\n\t \t \t\tmodels[i] = new RootModel(rsml[i].getAbsolutePath());\r\n\t \t \t\tif(models[i].getWidth(true) > w) w = models[i].getWidth(true);\r\n\t \t \t\tif(models[i].getHeight(true) > h) h = models[i].getHeight(true);\r\n\t \t \t}\r\n\t \t \t\r\n\t \t \tResultsTable rt = new ResultsTable();\r\n\t \t \tImageStack is= new ImageStack(w, h);\r\n\t \t \r\n\t \t \r\n\t \t \tfor(int i = 0; i < rsml.length; i++){\r\n\t \t \t\t// Send the imagr to the stack\r\n\t \t \t\tif(batchImage.isSelected()) {\r\n\t \t \t\t\tImagePlus ip = new ImagePlus(rsml[i].getName(),models[i].createImage(batchColorJCB.getSelectedIndex() == 0, Integer.valueOf(batchLineWidth.getText()), batchRealWidth.isSelected(), w, h, batchConvex.isSelected())); \r\n\t \t \t\t\tis.addSlice(ip.getProcessor());\r\n\t \t \t \t\t// Save a single image\r\n\t \t \t \t\tif(batchSave.isSelected()){\r\n\t \t \t \t\t\tIJ.save(ip, this.batchSourceFolder.getText()+\"/images/\"+rsml[i].getName()+\".jpg\");\r\n\t\r\n\t \t \t \t\t}\r\n\t \t \t\t}\r\n\t\t \t \tif(!batchImage.isSelected() && batchSave.isSelected()){\r\n\t\t \t \t\tSR.write(rsml[i].getName());\r\n\t \t \t\t\tImagePlus ip = new ImagePlus(rsml[i].getName(),models[i].createImage(batchColorJCB.getSelectedIndex() == 0, Integer.valueOf(batchLineWidth.getText()), batchRealWidth.isSelected(), batchConvex.isSelected())); \r\n\t\t \t \t\tIJ.save(ip, this.batchSourceFolder.getText()+\"/images/\"+rsml[i].getName()+\".jpg\");\r\n\t\t \t \t}\t \t \t\t\r\n\t \t \t\t\r\n\t \t \t\t// Send the results to the Result Table\r\n\t \t \t\tif(batchResults.isSelected()){\r\n\t \t \t\t\tint sel = batchJCB.getSelectedIndex();\r\n\t \t \t\t\tswitch (sel) { \r\n\t \t \t\t\t\tcase 0: models[i].sendImageData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t\tcase 1: models[i].sendRootData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t\tcase 2: models[i].sendNodeData(rt, rsml[i].getName()); break;\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 \tif(batchResults.isSelected()) rt.show(batchJCB.getSelectedItem().toString()+\" data\");\r\n\t \t \tif(batchImage.isSelected()){\r\n\t \t \t\tImagePlus ip = new ImagePlus(\"RSML images\");\r\n\t \t \t\tip.setStack(is);\r\n\t \t \t\tip.show();\r\n\t \t \t}\t\t\t\r\n \t}\r\n \telse{\r\n\t \tSR.write(\"Batch export started for \"+rsml.length+\" files\");\r\n\t \t \tResultsTable rt = new ResultsTable();\r\n\t \t// Open the different RSML files, retriev their data and get their size.\r\n\t \tRootModel model;\r\n\t \t \tfor(int i = 0; i < rsml.length; i++){\r\n\t \t \t\tmodel = new RootModel(rsml[i].getAbsolutePath());\r\n\t\t \t \tif(batchSave.isSelected()){\r\n\t \t \t\t\tImagePlus ip = new ImagePlus(rsml[i].getName(),model.createImage(batchColorJCB.getSelectedIndex() == 0, Integer.valueOf(batchLineWidth.getText()), batchRealWidth.isSelected(), batchConvex.isSelected())); \r\n\t\t \t \t\tIJ.save(ip, this.batchSourceFolder.getText()+\"/images/\"+rsml[i].getName()+\".jpg\");\r\n\t\t \t \t}\t \t \t\t\r\n\t \t \t\t\r\n\t \t \t\t// Send the results to the Result Table\r\n\t \t \t\tif(batchResults.isSelected()){\r\n\t \t \t\t\tint sel = batchJCB.getSelectedIndex();\r\n\t \t \t\t\tswitch (sel) { \r\n\t \t \t\t\t\tcase 0: model.sendImageData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t\tcase 1: model.sendRootData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t\tcase 2: model.sendNodeData(rt, rsml[i].getName()); break;\r\n\t \t \t\t\t}\r\n\t \t \t\t}\r\n\t \t \t}\r\n \t\trt.show(batchJCB.getSelectedItem().toString());\r\n \t}\r\n \t\r\n \t \tSR.write(\"Export done for \"+rsml.length+\" files\"); \r\n }",
"public Jobs jobs();",
"public List< IJob > getJobs( int maxAmount )\n {\n String fileName;\n String refFileName;\n URI fileURI;\n byte[] referenceData = null;\n InputStream ISrefData = null;\n DocumentBuilderFactory docBuilderFactory;\n DocumentBuilder docBuilder = null;\n Document doc;\n \n docBuilderFactory = DocumentBuilderFactory.newInstance();\n try\n {\n docBuilder = docBuilderFactory.newDocumentBuilder();\n }\n catch( ParserConfigurationException pce )\n {\n log.error( pce.getMessage() );\n }\n doc = docBuilder.newDocument();\n \n List<IJob> list = new ArrayList<IJob>();\n for( int i = 0; i < maxAmount && iter.hasNext() ; i++ )\n {\n fileName = (String)iter.next();\n refFileName = fileName.substring( 0, fileName.lastIndexOf( \".\" ) ) + \".ref\";\n //System.out.println( String.format( \"created ref name %s for file %s\", refFileName, fileName ) );\n File refFile = FileHandler.getFile( refFileName );\n if ( refFile.exists() )\n {\n try\n {\n ISrefData = FileHandler.readFile( refFileName );\n }\n catch( FileNotFoundException fnfe )\n {\n log.error( String.format( \"File for path: %s couldnt be read\", refFileName ) );\n }\n try\n {\n doc = XMLUtils.getDocument( new InputSource( ISrefData ) );\n }\n catch( ParserConfigurationException ex )\n {\n log.error( ex.getMessage() );\n }\n catch( SAXException ex )\n {\n log.error( ex.getMessage() );\n }\n catch( IOException ex )\n {\n log.error( ex.getMessage() );\n }\n \n File theFile = FileHandler.getFile( fileName );\n \n list.add( (IJob) new Job( new FileIdentifier( theFile.toURI() ), doc ) );\n }\n else\n {\n log.warn( String.format( \"the file: %s has no .ref file\", fileName ) );\n i--;\n }\n }\n return list;\n \n }",
"public void pathwayScan() {\n ScanPathwayBasedAssocSwingWorker worker = new ScanPathwayBasedAssocSwingWorker();\n // buildTask = buildTask.create(buildingThread); //the task is not started yet\n buildTask = RP.create(worker); //the task is not started yet\n buildTask.schedule(0); //start the task\n }",
"protected void startBatch() {\n \n }",
"public static void main(String[] args) {\n ForkJoinPool forkJoinPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors());\n\n //Create three FolderProcessor tasks. Initialize each one with a different folder path.\n FolderProcessor desktop = new FolderProcessor(\"/Users/neeraj/Desktop\", \"log\");\n FolderProcessor downloads = new FolderProcessor(\"/Users/neeraj/Downloads\", \"log\");\n FolderProcessor github = new FolderProcessor(\"/Users/neeraj/Projects/office\", \"log\");\n\n // Execute the 3 tasks in the ForkJoinPool.\n forkJoinPool.execute(desktop);\n forkJoinPool.execute(downloads);\n forkJoinPool.execute(github);\n\n //Write to the console information about the status of the pool every second\n //until the three tasks have finished their execution.\n do {\n System.out.printf(\"******************************************\\n\");\n System.out.printf(\"Main: Parallelism: %d\\n\", forkJoinPool.getParallelism());\n System.out.printf(\"Main: Active Threads: %d\\n\", forkJoinPool.getActiveThreadCount());\n System.out.printf(\"Main: Task Count: %d\\n\", forkJoinPool.getQueuedTaskCount());\n System.out.printf(\"Main: Steal Count: %d\\n\", forkJoinPool.getStealCount());\n System.out.printf(\"******************************************\\n\");\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n } while ((!desktop.isDone()) || (!downloads.isDone()) || (!github.isDone()));\n\n //Shut down ForkJoinPool using the shutdown() method.\n forkJoinPool.shutdown();\n\n //Write the number of results generated by each task to the console.\n List<String> results;\n results = desktop.join();\n System.out.printf(\"Desktop: %d files found.\\n\", results.size());\n results = downloads.join();\n System.out.printf(\"Downloads: %d files found.\\n\", results.size());\n results = github.join();\n System.out.printf(\"Github: %d files found.\\n\", results.size());\n\n }",
"private Queue<PCB> loadToJobQueue() throws FileNotFoundException {\r\n\t\ttry {\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(FILENAME));\r\n\t\t\tfr = new FileReader(FILENAME);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\tint pid = 0;\r\n\t\t\tint cpuBurst = 0;\r\n\t\t\tint memory = 0;\r\n\t\t\tint IOBurst = 0;\r\n\t\t\tint counter = 0;\r\n\r\n\t\t\tString sCurrentLine;\r\n\t\t\tbr.readLine(); // first Line \"Name CPU Memory IO \" etc..\r\n\t\t\t// Cycle contains:\r\n\t\t\t// cpuBurst, memory, IOBurst\r\n\t\t\twhile ((sCurrentLine = br.readLine()) != null ) {\r\n\r\n\t\t\t\t\r\n\t\t\t\tString[] PCBInfo = sCurrentLine.split(\"\t\");\t\t\r\n\t\t\t\tpid = Integer.parseInt(PCBInfo[0]); // Name of Process\r\n\t\t\t\tPCB pcb1 = new PCB(pid);\r\n\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[1]);\r\n\t\t\t\tmemory = Math.abs(Integer.parseInt(PCBInfo[2])); //First memory should be positive\r\n\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[3]);\r\n\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 1\r\n\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[4]);\r\n\t\t\t\tmemory = Integer.parseInt(PCBInfo[5]);\r\n\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[6]);\r\n\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 2\r\n\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[7]);\r\n\t\t\t\tmemory = Integer.parseInt(PCBInfo[8]);\r\n\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[9]);\r\n\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 3\r\n\t\t\t\tif (PCBInfo.length == 10) {\r\n\t\t\t\t\tJobQueue.enqueue(pcb1);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[10]);\r\n\t\t\t\tmemory = Integer.parseInt(PCBInfo[11]);\r\n\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[12]);\r\n\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 4\r\n\r\n\t\t\t\tif (PCBInfo.length == 14) { // Has only 5 Cycles\r\n\t\t\t\t\t\r\n\t\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[13]);\r\n\t\t\t\t\tmemory = 0;\r\n\t\t\t\t\tIOBurst = 0;\r\n\t\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 5\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (PCBInfo.length == 17) { // if it has a 6th cycles\r\n\t\t\t\t\t\r\n\t\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[13]);\r\n\t\t\t\t\tmemory = Integer.parseInt(PCBInfo[14]);\r\n\t\t\t\t\tIOBurst = Integer.parseInt(PCBInfo[15]);\r\n\t\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 5\r\n\t\t\t\t\tcpuBurst = Integer.parseInt(PCBInfo[16]);\r\n\t\t\t\t\tmemory = 0;\r\n\t\t\t\t\tIOBurst = 0;\r\n\t\t\t\t\tpcb1.addCycle(cpuBurst, memory, IOBurst);// Cycle 6\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tJobQueue.enqueue(pcb1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\r\n\t\t} catch (\r\n\r\n\t\tIOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} finally {\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tif (br != null)\r\n\t\t\t\t\tbr.close();\r\n\r\n\t\t\t\tif (fr != null)\r\n\t\t\t\t\tfr.close();\r\n\r\n\t\t\t} catch (IOException ex) {\r\n\r\n\t\t\t\tex.printStackTrace();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn JobQueue;\r\n\r\n\t}",
"@Scheduled(cron = \"*/10 * * * * *\")\n\tpublic void startJob() {\n\n\t\tBooleanBuilder booleanIssuer = new BooleanBuilder();\n\t\tbooleanIssuer.and(QIssuer.issuer.status.eq(Issuer.Status.ACTIVE));\n\n\t\tQIssuer qIssuer = QIssuer.issuer;\n\t\tJPAQuery<?> query = new JPAQuery<Void>(entityManager);\n\t\tList<Issuer> listIssuer = query.select(qIssuer).from(qIssuer).where(booleanIssuer).fetch();\n\n\t\tfor (Issuer issuer : listIssuer) {\n\t\t\tSystem.out.println(issuer.toString());\n\t\t}\n\n\t\tFileWriter fileWirter = null;\n\t\tif (!(CollectionUtils.isEmpty(listIssuer))) {\n\t\t\ttry {\n\t\t\t\tfileWirter = new FileWriter(\"test.csv\");\n\t\t\t\tfileWirter.append(FILE_HEADER.toString());\n\t\t\t\tfileWirter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\tfor (Issuer issuer : listIssuer) {\n\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getId()));\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(issuer.getIssuerCode());\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(issuer.getName());\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getStatus()));\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getLastUpdate()));\n\t\t\t\t\tfileWirter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"writer successfully !\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tslackService.send(\" \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"private void _generate() {\n System.out.println(\"Started...\");\n try {\n log_ = new PrintStream(new FileOutputStream(System.getProperty(\"user.dir\") +\n \"\\\\\" + LOG_FILE));\n //writer_.start(); \n\t for (int i = 0; i < instances_[CS_C_UNIV].num; i++) {\n\t _generateUniv(i + startIndex_);\n\t }\n \n //writer_.end();\n log_.close();\n }\n catch (IOException e) {\n System.out.println(\"Failed to create log file!\");\n }\n System.out.println(\"Completed!\");\n }",
"private void writeWorkerBash(String user, String password) throws IOException {\r\n String os = System.getProperty(\"os.name\");\r\n long maxMemory = Runtime.getRuntime().maxMemory();\r\n int memory = (int) (0.9 * ((double) maxMemory / (double) (1024 * 1024)));\r\n String command = \"java -Xmx\" + memory + \"m -Xms\" + memory + \"m -jar \" + pladipusFolder + \"/\" + \"Pladipus-execution-\" + version + \"/Pladipus-execution-\" + version + \".jar -auto_pull -u \" + user + \" -p \" + password;\r\n FileWriter bashWriter;\r\n if (os.toLowerCase().contains(\"windows\")) {\r\n File bashFile = new File(System.getProperty(\"user.home\") + \"/Desktop/Pladipus-Worker.bat\");\r\n bashWriter = new FileWriter(bashFile);\r\n } else {\r\n File bashFile = new File(System.getProperty(\"user.home\") + \"/Desktop/Pladipus-Worker.sh\");\r\n bashWriter = new FileWriter(bashFile);\r\n }\r\n bashWriter.append(command).flush();\r\n bashWriter.close();\r\n }",
"public void run() throws Exception {\n try {\n\t System.out.println(\"SSVD start!\");\n FileSystem fs = FileSystem.get(conf);\n\n Path qPath = new Path(outputPath, \"Q-job\");\n Path btPath = new Path(outputPath, \"Bt-job\");\n Path yPath = new Path(outputPath, \"Y-job\"); //tetst phase\n Path uHatPath = new Path(outputPath, \"UHat\");\n Path svPath = new Path(outputPath, \"Sigma\");\n Path uPath = new Path(outputPath, \"U\");\n Path vPath = new Path(outputPath, \"V\");\n\n if (overwrite) {\n fs.delete(outputPath, true);\n }\n\n\t int[] iseed = {0,0,0,1};\n\t double[] x = new double[1];\n\t Dlarnv.dlarnv(2,iseed,0,1,x,0);\n\t long seed = (long)(x[0]*(double)Long.MAX_VALUE);\n\n\t long start, end;\n\t \t\t\n\tstart = new Date().getTime();\n\tQJob.run(conf,\n inputPath,\n qPath.toString(),\n\t\treduceSchedule,\n k,\n p,\n seed,\n\t\tmis);\n\tend = new Date().getTime();\n\tSystem.out.println(\"Q-Job done \"+Long.toString(end-start));\n\tLogger LOG = LoggerFactory.getLogger(SSVDSolver.class);\n\t \n /*\n * restrict number of reducers to a reasonable number so we don't have to\n * run too many additions in the frontend when reconstructing BBt for the\n * last B' and BB' computations. The user may not realize that and gives a\n * bit too many (I would be happy i that were ever the case though).\n */\n\t \n start = new Date().getTime();\n\t BtJob.run(conf,\n inputPath,\n\t\t\t\tbtPath,\n\t\t\t\tqPath.toString(),\n\t\t\t\tk,\n p,\n outerBlockHeight,\n\t\t\t\tq <= 0 ? Math.min(1000, reduceTasks) : reduceTasks,\n\t\t\t\tq <= 0,\n\t\t\t\treduceSchedule,\n\t\t\t\tmis);\n\n\t end = new Date().getTime();\n System.out.println(\"Bt-Job done \"+Long.toString(end-start));\n\t \n // power iterations is unnecessary in application of recommendation system \t \n\t /*for (int i = 0; i < q; i++) {\n\t Path btPathGlob = new Path(btPath, BtJob.OUTPUT_BT + \"-*\");\n\t\tPath aBtPath = new Path(outputPath, String.format(\"ABt-job-%d\", i + 1)); \n qPath = new Path(outputPath, String.format(\"ABtQ-job-%d\", i + 1));\t\t\n ABtDenseOutJob.run(conf,\n inputPath,\n btPathGlob,\n aBtPath,//qPath,\n //ablockRows,\n //minSplitSize,\n k,\n p,\n //abtBlockHeight,\n reduceTasks,\n //broadcast\n\t\t\t\t\t\t mis);\n\t\t\n\t\tToolRunner.run(conf, new QRFirstJob(), new String[]{\n \"-input\", aBtPath.toString(),\n \"-output\", qPath.toString(),\n\t\t\t \"-mis\",Integer.toString(mis),\n\t\t\t \"-colsize\", Integer.toString(k+p),\n \"-reduceSchedule\", reduceSchedule});\n\t\t\t \n btPath = new Path(outputPath, String.format(\"Bt-job-%d\", i + 1));\n\n BtJob.run(conf,\n inputPath,\n\t\t\t\t btPath,\n qPath.toString(), \n k,\n p,\n outerBlockHeight,\n i == q - 1 ? Math.min(1000, reduceTasks) : reduceTasks,\n i == q - 1,\n\t\t\t\t reduceSchedule,\n\t\t\t\t mis);\n }*/\n\t \n cmUpperTriangDenseMatrix bbt =\n loadAndSumUpperTriangMatrices(fs, new Path(btPath, BtJob.OUTPUT_BBT\n + \"-*\"), conf);\n\n // convert bbt to something our eigensolver could understand\n assert bbt.numColumns() == k + p;\n\n double[][] bbtSquare = new double[k + p][];\n for (int i = 0; i < k + p; i++) {\n bbtSquare[i] = new double[k + p];\n }\n\n for (int i = 0; i < k + p; i++) {\n for (int j = i; j < k + p; j++) {\n bbtSquare[i][j] = bbtSquare[j][i] = bbt.get(i, j);\n }\n }\n\n svalues = new double[k + p];\n\n // try something else.\n EigenSolver eigenWrapper = new EigenSolver(bbtSquare);\n double[] eigenva2 = eigenWrapper.getWR();\n\t \n for (int i = 0; i < k + p; i++) {\n svalues[i] = Math.sqrt(eigenva2[i]); // sqrt?\n }\n // save/redistribute UHat\n double[][] uHat = eigenWrapper.getVL();\n\t //double[][] uHat = eigenWrapper.getUHat();\n\t \n fs.mkdirs(uHatPath);\n SequenceFile.Writer uHatWriter =\n SequenceFile.createWriter(fs,\n conf,\n uHatPath = new Path(uHatPath, \"uhat.seq\"),\n IntWritable.class,\n VectorWritable.class,\n CompressionType.BLOCK);\n\t \n int m = uHat.length;\n IntWritable iw = new IntWritable();\n VectorWritable vw = new VectorWritable();\n\t \n for (int i = 0; i < m; i++) {\n vw.set(new DenseVector(uHat[i],true));\n iw.set(i);\n uHatWriter.append(iw, vw);\n }\n\t uHatWriter.close();\n\n SequenceFile.Writer svWriter =\n SequenceFile.createWriter(fs,\n conf,\n svPath = new Path(svPath, \"svalues.seq\"),\n IntWritable.class,\n VectorWritable.class,\n CompressionType.BLOCK);\n\n vw.set(new DenseVector(svalues, true));\n svWriter.append(iw, vw);\n\n svWriter.close();\n\n\t start = new Date().getTime();\n UJob ujob = null;\t \n if (computeU) {\n ujob = new UJob();\n\t\tujob.start(conf,\n new Path(btPath, BtJob.Q_MAT+ \"-*\"),\n uHatPath,\n svPath,\n uPath,\n k,\n cUHalfSigma,\n\t\t\t\t mis);\t\t\t\t \n // actually this is map-only job anyway\n }\n\n VJob vjob = null;\n if (computeV) {\n vjob = new VJob();\n vjob.start(conf,\n new Path(btPath, BtJob.OUTPUT_BT + \"-*\"),\n uHatPath,\n svPath,\n vPath,\n k,\n reduceTasks,\n\t\t\t\t subRowSize,\n cVHalfSigma,\n\t\t\t\t mis);\n }\n\n if (ujob != null) {\n ujob.waitForCompletion();\n this.uPath = uPath.toString();\n }\n\t System.out.println(\"U-Job done \");\n\t \n if (vjob != null) {\n vjob.waitForCompletion();\n this.vPath = vPath.toString();\n }\n\tend = new Date().getTime();\n\tSystem.out.println(\"U-Job+V-Job done \"+(end-start));\n\t\n } catch (InterruptedException exc) {\n throw new IOException(\"Interrupted\", exc);\n } catch (ClassNotFoundException exc) {\n throw new IOException(exc);\n }\n\n }",
"public GetJobs() {\r\n\t\tsuper();\r\n\t}",
"protected abstract void createTasks();",
"private void startJobs() {\n List<JobProfile> profileList = getJobConfDb().getAcceptedJobs();\n for (JobProfile profile : profileList) {\n LOGGER.info(\"init starting job from db {}\", profile.toJsonStr());\n addJob(new Job(profile));\n }\n }",
"@Override\n public void run() {\n try {\n List<String> list = Lists.newArrayList();\n for (; ; ) {\n String url = Engine.routeQueue.poll();\n if (url == null && list.size() > 0) {\n File file = new File(\"./half-moil.db\");\n if (!file.exists()) file.createNewFile();\n FileWriter writer = new FileWriter(file, true);\n\n writer.write(Joiner.on(\"\\r\\n\").join(list) + \"\\r\\n\");\n writer.flush();\n writer.close();\n writer = null;\n logger.info(\"文件已保存,新增{}条\", list.size());\n list.clear();\n } else if (url != null) {\n list.add(url);\n } else {\n Thread.sleep(5000L);\n }\n }\n } catch (Exception e) {\n logger.error(e);\n }\n }",
"void collect(AbstractReasoningTool tool, String name) throws IOException,\n InterruptedException {\n // ID is ID of the first job run\n if (runId == null) {\n runId = tool.getJobID().toString();\n totals.info.put(Stat.RUN, runId);\n }\n JobResult jobValues = new JobResult();\n jobValues.info.put(Stat.TABLE, tableName);\n jobValues.info.put(Stat.RUN, runId);\n jobValues.info.put(Stat.ITERATION, String.valueOf(tool.getIteration()));\n jobValues.info.put(Stat.JOB, name);\n\n jobValues.stats.put(Stat.ELAPSED_TIME, tool.getElapsedTime());\n for (Stat key : taskCounters.keySet()) {\n jobValues.stats.put(key, tool.getCounter(taskCounters.get(key)));\n }\n for (Stat key : jobCounters.keySet()) {\n jobValues.stats.put(key, tool.getCounter(jobCounters.get(key)));\n }\n jobValues.stats.put(Stat.TBOX_IN, tool.getNumSchemaInput());\n jobValues.stats.put(Stat.ABOX_IN, tool.getNumInstanceInput());\n jobValues.stats.put(Stat.INCONSISTENCIES_OUT,\n tool.getNumInconsistencies());\n jobValues.stats.put(Stat.TRIPLES_OUT, tool.getNumSchemaTriples()\n + tool.getNumInstanceTriples());\n jobValues.stats.put(Stat.FILE_BYTES_READ, tool.getCounter(\n FileSystemCounter.class.getName(), \"FILE_BYTES_READ\"));\n jobValues.stats.put(Stat.FILE_BYTES_WRITTEN, tool.getCounter(\n FileSystemCounter.class.getName(), \"FILE_BYTES_WRITTEN\"));\n jobValues.stats.put(Stat.HDFS_BYTES_READ, tool.getCounter(\n FileSystemCounter.class.getName(), \"HDFS_BYTES_READ\"));\n jobValues.stats.put(Stat.HDFS_BYTES_WRITTEN, tool.getCounter(\n FileSystemCounter.class.getName(), \"HDFS_BYTES_WRITTEN\"));\n jobResults.add(jobValues);\n // Add to the running total for this job type (initialize if needed)\n if (!jobTypeResults.containsKey(name)) {\n JobResult typeResult = new JobResult();\n typeResult.info.put(Stat.TABLE, tableName);\n typeResult.info.put(Stat.RUN, runId);\n typeResult.info.put(Stat.ITERATION, \"total\");\n typeResult.info.put(Stat.JOB, name);\n jobTypeResults.put(name, typeResult);\n }\n jobTypeResults.get(name).add(jobValues);\n totals.add(jobValues);\n }",
"@SuppressWarnings(\"unchecked\")\n\t\tpublic void run() {\n long throughputMeasurementStartTime = System.currentTimeMillis();\n\n byte[] reply;\n int reqId;\n int req = 0;\n\n Storage st = new Storage(nTXs);\n\n System.out.println(\"Executing experiment for \" + nTXs + \" ops\");\n\n for (int i = 0; i < nTXs; i++, req++) {\n long last_send_instant = System.nanoTime();\n if (dos) {\n reqId = proxy.generateRequestId((readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n proxy.TOMulticast(request, reqId, (readOnly) ? TOMMessageType.UNORDERED_REQUEST : TOMMessageType.ORDERED_REQUEST); \n\n } else {\n \tif(readOnly) {\n \t\treply = proxy.invokeUnordered(request);\n \t} else {\n \t\treply = proxy.invokeOrdered(request);\n \t}\n }\n st.store(System.nanoTime() - last_send_instant);\n\n if (timeout > 0) {\n //sleeps timeout ms before sending next request\n try {\n\t\t\t\t\t\tThread.sleep(timeout);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n } \n\n } \n writeReportJSON(throughputMeasurementStartTime, st); \n }",
"public void Sample() {\n \t\tfor (int loop = 0; loop < 10; loop++) {\n \t\t\tJobs jobUnit = new Jobs(\"java -version\");\n \t\t\tjobqueue.add(jobUnit);\n \t\t}\n \t}",
"@Override\n\tpublic void run() {\n\t\tIterable<Page> allPages = new Pages(this.numPages, this.fileName);\n\t\tfor (Page pg : allPages) {\n\t\t\ttry {\n\t\t\t\tqueue.put(pg);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<this.numThread;i++){\n\t\t\ttry {\n\t\t\t\tqueue.put(new PoisonPill());\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void execute() {\r\n\r\n\t\t// Fetch the 10 records from DB\r\n\t\t// Iterate over them\r\n\t\t// Fetch the ImageActionObject\r\n\t\t// Get the first task to work on\r\n\t\t// Inastantiate the task by ImageActionTaskFactory.getImageActionTask\r\n\t\t// Set the ImageActionObject\r\n\t\t// Submit the task to the executor\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\r\n\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\r\n\t\tlog.info(\"*** Executing poller at : \" + dateFormat.format(new Date()));\r\n\t\tList<ImageActionObject> incompleteImageActionObjects = new ArrayList<ImageActionObject>();\r\n\t\t// Fetching the 10 records from DB\r\n\t\ttry {\r\n\t\t\tincompleteImageActionObjects = imageActionImpl\r\n\t\t\t\t\t.searchIncompleteImageAction(5);\r\n\t\t\tlog.debug(\"*** Got \" + incompleteImageActionObjects.size()\r\n\t\t\t\t\t+ \" to process\");\r\n\t\t} catch (DbException e) {\r\n\t\t\t// TODO Handle Error\r\n\t\t\tlog.error(\"searchIncompleteImageAction failed\", e);\r\n\t\t}\r\n\t\t// iterate over list of image action objects\r\n\t\tlog.debug(\"incompleteImageActionObjects::\"\r\n\t\t\t\t+ incompleteImageActionObjects);\r\n\r\n\t\tfor (ImageActionObject imageActionObj : incompleteImageActionObjects) {\r\n\t\t\tlog.info(\"ImageAction Object in poller (\" + imageActionObj.getId()\r\n\t\t\t\t\t+ \"): Number of tasks: \"\r\n\t\t\t\t\t+ imageActionObj.getActions().size());\r\n\t\t\tlog.info(\"Current status of image action object:\"\r\n\t\t\t\t\t+ imageActionObj.getCurrent_task_status());\r\n\t\t\t\r\n\t\t\tif(imageActionToRunCountMap.containsKey(imageActionObj.getId())){\r\n\t\t\t\tInteger currentCount = imageActionToRunCountMap.get(imageActionObj.getId());\r\n\t\t\t\tif(currentCount < 10){\r\n\t\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), ++currentCount);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//mark error\r\n\t\t\t\t\tlog.info(\"mark image action {} to error after 10 tries\", imageActionObj.getId());\r\n\t\t\t\t\timageIdsInProcess.remove(imageActionObj.getImage_id());\r\n\t\t\t\t\timageActionObj.setCurrent_task_status(Constants.ERROR);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpersistService.updateImageAction(imageActionObj);\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} catch (DbException e) {\r\n\t\t\t\t\t\tlog.error(\"Error in Poller\",e);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t\tremoveEntryFromImageActionCountMap(imageActionObj.getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\t\t\t\t\r\n\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (imageIdsInProcess.contains(imageActionObj.getImage_id())) {\r\n\t\t\t\tlog.info(\"Image already in process. Skipping\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\timageIdsInProcess.add(imageActionObj.getImage_id());\r\n\r\n\t\t\tif (imageActionObj.getCurrent_task_status() != null\r\n\t\t\t\t\t&& imageActionObj.getCurrent_task_status().equals(\r\n\t\t\t\t\t\t\tConstants.INCOMPLETE)) {\r\n\t\t\t\tExecuteActions task = new ExecuteActions(imageActionObj);\r\n\t\t\t\tImageActionExecutor.submitTask(task);\r\n\t\t\t\tlog.info(\"Submitted task for ExecuteActions for id: \"\r\n\t\t\t\t\t\t+ imageActionObj.getId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"private int runJob(java.io.PrintWriter r10) throws java.lang.Exception {\n /*\n r9 = this;\n java.lang.String r0 = \"force scheduled jobs\"\n r9.checkPermission(r0)\n r0 = 0\n r1 = 0\n L_0x0007:\n java.lang.String r2 = r9.getNextOption()\n r3 = r2\n if (r2 == 0) goto L_0x0080\n int r2 = r3.hashCode()\n r4 = -1626076853(0xffffffff9f14094b, float:-3.1347906E-20)\n r5 = 3\n r6 = 2\n r7 = 1\n r8 = -1\n if (r2 == r4) goto L_0x0047\n r4 = 1497(0x5d9, float:2.098E-42)\n if (r2 == r4) goto L_0x003d\n r4 = 1512(0x5e8, float:2.119E-42)\n if (r2 == r4) goto L_0x0033\n r4 = 1333469547(0x4f7b216b, float:4.2132713E9)\n if (r2 == r4) goto L_0x0029\n L_0x0028:\n goto L_0x0051\n L_0x0029:\n java.lang.String r2 = \"--user\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x0028\n r2 = r5\n goto L_0x0052\n L_0x0033:\n java.lang.String r2 = \"-u\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x0028\n r2 = r6\n goto L_0x0052\n L_0x003d:\n java.lang.String r2 = \"-f\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x0028\n r2 = 0\n goto L_0x0052\n L_0x0047:\n java.lang.String r2 = \"--force\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x0028\n r2 = r7\n goto L_0x0052\n L_0x0051:\n r2 = r8\n L_0x0052:\n if (r2 == 0) goto L_0x007d\n if (r2 == r7) goto L_0x007d\n if (r2 == r6) goto L_0x0074\n if (r2 == r5) goto L_0x0074\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r4 = \"Error: unknown option '\"\n r2.append(r4)\n r2.append(r3)\n java.lang.String r4 = \"'\"\n r2.append(r4)\n java.lang.String r2 = r2.toString()\n r10.println(r2)\n return r8\n L_0x0074:\n java.lang.String r2 = r9.getNextArgRequired()\n int r1 = java.lang.Integer.parseInt(r2)\n goto L_0x007f\n L_0x007d:\n r0 = 1\n L_0x007f:\n goto L_0x0007\n L_0x0080:\n java.lang.String r2 = r9.getNextArgRequired()\n java.lang.String r4 = r9.getNextArgRequired()\n int r4 = java.lang.Integer.parseInt(r4)\n long r5 = android.os.Binder.clearCallingIdentity()\n com.android.server.job.JobSchedulerService r7 = r9.mInternal // Catch:{ all -> 0x00b5 }\n int r7 = r7.executeRunCommand(r2, r1, r4, r0) // Catch:{ all -> 0x00b5 }\n boolean r8 = r9.printError(r7, r2, r1, r4) // Catch:{ all -> 0x00b5 }\n if (r8 == 0) goto L_0x00a1\n android.os.Binder.restoreCallingIdentity(r5)\n return r7\n L_0x00a1:\n java.lang.String r8 = \"Running job\"\n r10.print(r8) // Catch:{ all -> 0x00b5 }\n if (r0 == 0) goto L_0x00ad\n java.lang.String r8 = \" [FORCED]\"\n r10.print(r8) // Catch:{ all -> 0x00b5 }\n L_0x00ad:\n r10.println() // Catch:{ all -> 0x00b5 }\n android.os.Binder.restoreCallingIdentity(r5)\n return r7\n L_0x00b5:\n r7 = move-exception\n android.os.Binder.restoreCallingIdentity(r5)\n throw r7\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.job.JobSchedulerShellCommand.runJob(java.io.PrintWriter):int\");\n }",
"private void workOnQueue() {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// log.debug(\"FILE SYSTEM -----\" + fileSystem);\n\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// log.debug(\"PATH----------\" + path);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\t// log.debug(\"NEW EXCEL_FILE PATH TO EXPORT----------\" + filePath);\n\n\t\t\t\t// create workbook\n\t\t\t\tXSSFWorkbook xssfWorkbook = new XSSFWorkbook();\n\t\t\t\t// create worksheet with title\n\t\t\t\tXSSFSheet xssfSheet = xssfWorkbook.createSheet(\"EMPLOYEE_REPORT\");\n\n\t\t\t\tRow headerRow = xssfSheet.createRow(0);\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\tCell cell = headerRow.createCell(i);\n\t\t\t\t\tcell.setCellValue(EMP_HEADER[i]);\n\t\t\t\t}\n\n\t\t\t\tint rowNum = 1;\n\n\t\t\t\tfor (EmployeeDTO transaction : content) {\n\n\t\t\t\t\tlog.info(\"Entered into EMP-FOR Loop--------->\");\n\n\t\t\t\t\tRow dataRow = xssfSheet.createRow(rowNum++);\n\n\t\t\t\t\tdataRow.createCell(0).setCellValue(transaction.getEmpId());\n\t\t\t\t\tdataRow.createCell(1).setCellValue(transaction.getName());\n\t\t\t\t\tdataRow.createCell(2).setCellValue(transaction.getDesignation());\n\t\t\t\t\tdataRow.createCell(3).setCellValue(transaction.getManagerName());\n\t\t\t\t\tdataRow.createCell(4).setCellValue(transaction.getProjectName());\n\t\t\t\t\tdataRow.createCell(5).setCellValue(transaction.getSiteName());\n\t\t\t\t\tdataRow.createCell(6).setCellValue(transaction.getActive());\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\txssfSheet.autoSizeColumn(i);\n\t\t\t\t}\n\t\t\t\t// log.info(exportFileName + \" Excel file was created successfully !!!\");\n\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\n\t\t\t\t// String fName = \"F:\\\\Export\\\\Employee.xlsx\";\n\t\t\t\tFileOutputStream fileOutputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tfileOutputStream = new FileOutputStream(filePath);\n\t\t\t\t\txssfWorkbook.write(fileOutputStream);\n\t\t\t\t\tfileOutputStream.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.error(\"Error while flushing/closing !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"public static void main(String[] arg) throws Throwable {\n\t\t(new File(LOCATION)).mkdir();\n\t\tJavaClient client = new JavaClient();\n\t\texecutor = Executors.newCachedThreadPool();\n\t\twhile(count<NUM_USERS){\t\t\t\n\t\t\texecutor.execute(new Thread(client));\n\t\t}\n\t\t\n\t}",
"public void runBatch();",
"@Override\n protected void schedule() throws Exception {\n try {\n List<Slave> slaves = getSlaves();\n for (Slave slave : slaves) {\n int tc = tasksNode.getNumAssignedTasks(slave.getId());\n if (tc < 10) {\n for (int i = tc; i < 10; i++) {\n int k = counter.incrementAndGet();\n final String j = \"task-\" + k;\n Task t = new Task() {\n @Override\n public String getId() {\n return j;\n }\n\n @Override\n public byte[] getData() throws Exception {\n return new byte[0];\n }\n };\n\n tasksNode.addTask(t, slave.getId());\n if (k >= TOTAL_RECORDS){\n System.out.println(\"Stopping server [\" + getServerId() + \"]\");\n break;\n }\n }\n }\n }\n } catch (Exception e) {\n\n }\n tasksNode.watch(monitor);\n synchronized (monitor) {\n monitor.wait(PAUSE_BETWEEN_TASK_SCHEDULE);\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(EMPLOYEE_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (EmployeeDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\t// log.debug(\"Writing transaction record for Employee id :\"+\n\t\t\t\t\t\t// transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getEmpId());\n\t\t\t\t\t\trecord.add(transaction.getName());\n\t\t\t\t\t\trecord.add(transaction.getDesignation());\n\t\t\t\t\t\trecord.add(transaction.getManagerName());\n\t\t\t\t\t\trecord.add(transaction.getProjectName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getActive());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"public void startDeleteWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < dlts.length; i++){\r\n\t\t\tthreads.add(new Thread(dlts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < dlts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String[][] generarJobs(int numeroJobs,int numeroParametros, Rango[] rangoParametros);",
"public static void main(String[] args) throws Exception {\n \t\t\n \t\tif (args.length != 2) {\n \t\t\tSystem.err.println(\"Usage (no trailing slashes): project2.NodeDriver s3n://<in filename> s3n://<out bucket>\");\n \t\t\tSystem.exit(2);\n \t\t}\n \t\tString inputFile = args[0];\n \t\tString outputPath = args[1];\n \n for (int i = 0; i < NUM_ITERATIONS; i++) {\n Job job = new Job();\n // Set a unique job name\n job.setJobName(\"pagerank_\"+ (i+1));\n job.setJarByClass(project2.NodeDriver.class);\n \n // Set Mapper and Reducer class\n job.setMapperClass(project2.LeMapper.class);\n job.setReducerClass(project2.LeReducer.class);\n \n // set the classes for output key and value\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(Text.class);\n \n // on the initial pass, use the preprocessed input file\n // note that we use the default input format which is TextInputFormat (each record is a line of input)\n if (i == 0) {\n FileInputFormat.addInputPath(job, new Path(inputFile)); \t\n // otherwise use the output of the last pass as our input\n } else {\n \tFileInputFormat.addInputPath(job, new Path(outputPath + \"/temp\"+i)); \n }\n // set the output file path\n FileOutputFormat.setOutputPath(job, new Path(outputPath + \"/temp\"+(i+1)));\n \n // execute the job and wait for completion before starting the next pass\n job.waitForCompletion(true);\n \n // before starting the next pass, compute the avg residual error for this pass and print it out\n // TODO: will float work or do we need a double?\n float residualErrorAvg = job.getCounters().findCounter(ProjectCounters.RESIDUAL_ERROR).getValue() / precision / totalNodes;\n String residualErrorString = String.format(\"%.4f\", residualErrorAvg);\n System.out.println(\"Residual error for iteration \" + i + \": \" + residualErrorString);\n \n // reset the counter for the next round\n job.getCounters().findCounter(ProjectCounters.RESIDUAL_ERROR).setValue(0L);\n }\n \n }",
"public void execute() throws Exception {\n\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t//testing console\n\t\t if(TestHTTP.test(Parameters.LATC_CONSOLE_HOST))\n\t \tlogfile.info(Parameters.LATC_CONSOLE_HOST+\" OK\");\n\t else \n\t {\n\t \tlogfile.severe(Parameters.LATC_CONSOLE_HOST+\" DOWN\");\n\t \tSystem.exit(0);\n\t \t}\n \t\t\n\t\tListTranslator lt = new ListTranslator();\n ContentWriter cw = new ContentWriter();\n \n ConsoleConnection client = new ConsoleConnection(Parameters.LATC_CONSOLE_HOST);\n \n /*\n * Getting list of link configuration from LATC_CONSOLE\n * JSON Format : title, identifier\n */\n \n if(!client.getTasks())\n {\n \tlogfile.severe(\"Error during get Queue \"+client.getMessage());\n \tSystem.exit(0);\n }\n lt.translateMember(client.getMessage());\n toDoList = lt.getLinkingConfigs();\n \n ReportCSV report = new ReportCSV( Parameters.RESULT_LOCAL_DIR+\"/report\"+sdf.format(new Date())+\".csv\");\n \n for (String title : toDoList.keySet()) {\n \t boolean blacklist = false;\n \tfinal String [] split = toDoList.get(title).split(\"#\");\n \tfinal String id = split[0];\n \tfinal String speccretime = split[1];\n \tfinal String specmodtime = split[2];\n \tfinal String specAuthor = split[3];\n \n \t logfile.info( \"start processing id \"+id+\" title \"+title);\n \n // checking blacklist\n \t if(title.startsWith(\"**\"))\n {\n \tblacklist = true;\n \ttitle = title.substring(2);\n }\n \t\n \tReportCSV.status st = status.failed; \n //create id directory\n boolean exists = (new File(RESULTDIR +'/'+ title).exists());\n if (!exists)\n \t\t\t (new File(RESULTDIR +'/'+ title )).mkdirs();\n \n \n \n \t\n \n /*\n * Writing specification linking from LATC_CONSOLE_HOST/configuration/ID/specification\n */\n if(!client.getSpec(id))\n {\n \tlogfile.severe(\"Error during get Specification id \"+id+\" \"+client.getMessage());\n }\n else\n {\n \t\n \t\tDate startDate = new Date();\n \t\tdatepattern = \"yyyy-MM-dd'T'HH:mm:ssZZ\";\n \t\tsdf.applyPattern(datepattern);\n \tString specContent = client.getMessage();\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE, specContent);\n\t VoidInfoDto Void=this.parseSpec(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE);\n \n\t Void.setSpecRetrievedTime(sdf.format(startDate));\n\t Void.setSpecCreatedTime(speccretime);\n\t Void.setSpecAuthor(specAuthor);\n\t Void.setID(id);\n\t Void.setTitle(title);\n\t Void.setSpecModifiedTime(specmodtime);\n\t Void.setSilkSpecAPIResource(Parameters.LATC_CONSOLE_HOST+\"/api/task/\"+id+\"/configuration\");\n\t \n//\t \t6- data dump\n\t datepattern = \"yyyy-MM-dd\";\n\t \t\tsdf.applyPattern(datepattern);\n Void.setDataDump(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.LINKS_FILE_STORE);\n Void.setSpec(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.SPEC_FILE);\n \n // blacklist\n if(blacklist)\n {\n \tst = status.ongoing;\n \tVoid.setRemarks(\"Unpredicted\");\n \tclient.postReport(id, Void,Parameters.API_KEY);\n \treport.putData(id, title, Void.getSpec(), 0, st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n \tcontinue;\n }\n \n\t \t//testing endpoint\n\t if(Void.getSourceSparqlEndpoint()!=null && !this.testConn(Void.getSourceSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getSourceSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetSparqlEndpoint()!=null && !this.testConn(Void.getTargetSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\t\n\t \t\tVoid.setRemarks(Void.getTargetSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getSourceUriLookupEndpoint()!=null && !this.testConn(Void.getSourceUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\t\n\t \tVoid.setRemarks(Void.getSourceUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetUriLookupEndpoint()!=null && !this.testConn(Void.getTargetUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getTargetUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void, Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n \n\t \n\t \n\t /*\n\t * Running hadoop for silk Map reduce\n\t */\n\t if (this.runHadoop(title, Void,RESULTDIR)) {\n\t \n\t\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.VOID_FILE, Void);\n\t\n\t // 2-e\n\t Void.setRemarks(Void.getStatItem()+\" Links generated successfully\");\n\t logfile.info( \"Processing id \"+id+\" title \"+title+ \" success\");\n\t\n\t } // if hadoop\n\t else {\n\t \tlogfile.severe( \"Processing id \"+id+\" title \"+title+ \" failed\");\n \t \n\t }\n\t Date endDate = new Date();\n\t \n\t if(Void.getStatItem()>=0)\n\t \tst = status.sucesss;\n\t else if(Void.getStatItem()==-2)\n\t \tst= status.ongoing;\n\t \n\t report.putData(id, title, Void.getSpec(), endDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t client.postReport(id, Void,Parameters.API_KEY);\n\t }\n } // for loop\n report.close(); \n logfile.info(\"Runtime done\");\n \n }",
"public void run()\n {\n //while (still executing jobs on grid)\n // attempt to sample data\n while (processingJobs)\n {\n //if (not paused)\n // sample data\n if (!paused)\n {\n //get the storage element object appropriate for this thread\n int ind = nodeChoice.indexOf('e');\n String siteno = nodeChoice.substring(ind+1);\n int siteID = Integer.parseInt(siteno);\n site = _gc.findGridSiteByID(siteID);\n StorageElement se = site.getSE();\n //sample time\n long timeMillis = time.getRunningTimeMillis();\n timeSecs = (int)(timeMillis/1000);\n //sample capacity\n capacity = se.getCapacity();\n float usage = (capacity - se.getAvailableSpace())/100;\n /* if (range values identical for last three readings)\n * remove intermediate statistic\n */\n if (usage==prevUsage&&usage==prevPrevUsage)\n { \n int itemCount = seriesSEUVTime.getItemCount();\n if (itemCount>2)\n seriesSEUVTime.remove(itemCount-1);\n } \n prevPrevUsage = prevUsage;\n prevUsage = usage;\n seriesSEUVTime.add(timeSecs, usage);\n pieDataset.setValue(\"Used Storage (GB)\", new Integer((int)((capacity - se.getAvailableSpace())/100)));\n pieDataset.setValue(\"Free Storage (GB)\", new Integer((int)((se.getAvailableSpace())/100)));\n //if (not saving all graphs)\n // try to refresh statistics\n if(!printingAll)\n this.sendDatatoGUI();\n }\n \n //delay next sample by short time\n try\n {\n if (paused)\n sleep(Integer.MAX_VALUE);\n else\n sleep(samplingDelay);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n } \n }\n \n //out here only when all jobs have finished.\n //thread shall sleep for long time but can be \n //re-awakened if user wants to see statistics \n //from this object when run is complete.\n while (true)\n {\n try\n {\n sleep(Integer.MAX_VALUE);\n }\n catch (InterruptedException e)\n {\n //in here if user is wishing to see chart from this object\n this.sendDatatoGUI();\n }\n }\n }",
"@Override\n protected Integer doInBackground(List<BackupModel>... params) {\n try {\n for (int i = 0; i < params[0].size(); i++) {\n /*if(params[0].get(i).getAppChecked())\n {*/\n // publishProgress(params[0].get(i).getPackgae_name());\n File sdCard = Environment.getExternalStorageDirectory();\n // File x = new File(sdCard.getAbsolutePath() + \"/\" + sdCardDirectory);\n File x = new File(BACKUP_FOLDER_APP_DATA);\n Log.i(TAG, \"创建文件>>>>>>>>>>>>>>>>>>\");\n if (!x.exists()) {\n boolean s = x.mkdirs();\n Log.i(TAG, \"创建文件>>>>>>>>>>>>>>>>>>\");\n } else {\n\n }\n String xdir = params[0].get(i).getPackgae_name();\n File newDir = new File(x.getAbsolutePath() + \"/\" + xdir);\n if (!newDir.exists()) {\n boolean s = newDir.mkdirs();\n }\n try {\n\n List<String> res = RootTools.sendShell(\"cp -r /data/data/\" + xdir + \"/!(cache) \" + newDir.getAbsolutePath(), 15000);\n\n res = RootTools.sendShell(\"tar -zcvf \" + x.getAbsolutePath() + \"/\" + xdir + \".tar.gz -C \" + x.getAbsolutePath() + \" \" + xdir, 15000);\n res = RootTools.sendShell(\"rm -r \" + x.getAbsolutePath() + \"/\" + xdir, 10000);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n // }\n }\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return null;\n }",
"public void scheduleJob() {\n JobInfo.Builder builder = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n builder = new JobInfo.Builder(mJobId++, mServiceComponent);\n builder.setMinimumLatency(1000);\n builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);\n // Extras, work duration.\n PersistableBundle extras = new PersistableBundle();\n extras.putLong(WORK_DURATION_KEY, Long.valueOf(1) * 1000);\n extras.putString(\"gsonData\", gsonDataa);\n extras.putInt(\"servicetype\", 1);\n builder.setExtras(extras);\n // Schedule job\n Log.d(TAG, \"Scheduling job\");\n JobScheduler tm = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);\n tm.schedule(builder.build());\n\n }\n\n\n\n }",
"@Override\n\t\t\tprotected String doInBackground() throws Exception {\n\t\t\t\tQueue q = new Queue(1);\n\t\t\t\tQueue q1 = new Queue(2);\n\t\t\t\tQueue q2 = new Queue(3);\n\t\t\t\tQueue q3 = new Queue(4);\n\t\t\t\tQueue q4 = new Queue(5);\n\t\t\t\tQueue q5 = new Queue(6);\n\t\t\t\tQueue q6 = new Queue(7);\n\t\t\t\tClientGenerator gen = new ClientGenerator(simT,q,q1,q2,q3,q4,q5,q6);\n\t\t\t\t\n\t\t\t\tq.start();\n\t\t\t\tq1.start();\n\t\t\t\tq2.start();\n\t\t\t\tq3.start();\n\t\t\t\tq4.start();\n\t\t\t\tq5.start();\n\t\t\t\tq6.start();\n\t\t\t\tgen.start(minA, maxA, minS, maxS, qNr);\n\t\t\t\treturn null;\n\t\t\t}",
"public String jobGenerator(int jobCount, Random random){\n\t\tJob job;\n\t\tString inputFile, jobCmd, logCmd;\n\t\tlogCmd = \" >> benchLogs/job_\" + jobCount + \" 2>> benchLogs/job_\" + jobCount;\n\t\t//job = this.jobs.get(0);\n\t\tjob = randomJobType(random);\n\t\tinputFile = randomInputFile(job.getInputMap());\n\t\tjobCmd = job.getJobCmd() + \" \" + job.getInputDir() + inputFile\n\t\t\t\t+ \" \" + jobCount + logCmd + \" &\\n\";\n\t\t//TODO: return only one job cmd\n\t\t//improve the design architecture, decouple some specific job cmd from MRGen to Job\n\t\treturn jobCmd;\n\t}",
"public int addJob(String cust, int copies, int pages, \n boolean isColour, boolean isHQuality, boolean isDSided);",
"public CreateWorkers(FileProcessor f, TreeManager t, Results r1, int nt, String[] dltwords){\r\n\t\t//Output debug message\r\n\t\tr1.writeToScreen(\"CreateWorkers created\\n\", MyLogger.DebugLevel.CONSTRUCTOR);\r\n\t\t\r\n\t\t//Set values\r\n\t\tfp = f;\t\r\n\t\ttm = t;\r\n\t\tr = r1;\r\n\t\tpts = new PopulateThread[nt];\r\n\t\tdlts = new DeleteThread[nt];\r\n\t\tfor(int i = 0; i < nt; i++){\r\n\t\t\tpts[i] = new PopulateThread(fp, r, tm);\r\n\t\t\tdlts[i] = new DeleteThread(r, tm, dltwords[i]);\r\n\t\t}\r\n\t}",
"public void createT4(int rows) {\n\t\tExecutorService dataExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable worker1 = new RepeatDataThread(3, Application.THREAD_ONE_PATH\n\t\t\t\t+ \"t4\", 42);\n\t\tRunnable worker2 = new RepeatDataThread(3, Application.THREAD_TWO_PATH\n\t\t\t\t+ \"t4\", 42);\n\t\tRunnable worker3 = new RepeatDataThread(3,\n\t\t\t\tApplication.THREAD_THREE_PATH + \"t4\", 42);\n\t\tRunnable worker4 = new RepeatDataThread(3, Application.THREAD_FOUR_PATH\n\t\t\t\t+ \"t4\", 42);\n\t\tdataExecutor.execute(worker1);\n\t\tdataExecutor.execute(worker2);\n\t\tdataExecutor.execute(worker3);\n\t\tdataExecutor.execute(worker4);\n\t\tdataExecutor.shutdown();\n\t\ttry {\n\t\t\tdataExecutor.awaitTermination(1, TimeUnit.MINUTES);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// find directory that contains data\n\t\tFile[] files = new File[4];\n\t\tfiles[0] = new File(Application.THREAD_ONE_PATH + \"t4\");\n\t\tfiles[1] = new File(Application.THREAD_TWO_PATH + \"t4\");\n\t\tfiles[2] = new File(Application.THREAD_THREE_PATH + \"t4\");\n\t\tfiles[3] = new File(Application.THREAD_FOUR_PATH + \"t4\");\n\t\tFile outputFile = null;\n\n\t\tfor (File f : files) {\n\t\t\tif (FileUtils.folderSize(f) > 0) {\n\t\t\t\toutputFile = new File(f.toString());\n\t\t\t}\n\t\t}\n\n\t\tif (outputFile == null) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"unable to avoid initialization exception for table 4.\");\n\t\t}\n\t\t\n\t\tExecutorService loadExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable loadWorker = new LoadThread(outputFile.toString());\n\t\tloadExecutor.execute(loadWorker);\n\t\tloadExecutor.shutdown();\n\t\ttry {\n\t\t\tloadExecutor.awaitTermination(10, TimeUnit.MINUTES);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcleanDirs();\n\t}",
"private void createFiles(CodeGeneratorConfiguration config,\n \t\t\tString pathPrefix, ProgressFunction progressFunction,\n \t\t\tlong schemaElements, long currentCount, long interval)\n \t\t\tthrows GraphIOException {\n \t\tGraphCodeGenerator graphCodeGenerator = new GraphCodeGenerator(\n \t\t\t\tgraphClass, packagePrefix, GRAPH_IMPLEMENTATION_PACKAGE, name,\n \t\t\t\tconfig);\n \t\tgraphCodeGenerator.createFiles(pathPrefix);\n \n \t\tfor (VertexClass vertexClass : graphClass.getVertexClasses()) {\n \t\t\tVertexCodeGenerator codeGen = new VertexCodeGenerator(vertexClass,\n \t\t\t\t\tpackagePrefix, GRAPH_IMPLEMENTATION_PACKAGE, config);\n \t\t\tcodeGen.createFiles(pathPrefix);\n \t\t\tif (progressFunction != null) {\n \t\t\t\tschemaElements++;\n \t\t\t\tcurrentCount++;\n \t\t\t\tif (currentCount == interval) {\n \t\t\t\t\tprogressFunction.progress(schemaElements);\n \t\t\t\t\tcurrentCount = 0;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tfor (EdgeClass edgeClass : graphClass.getEdgeClasses()) {\n \t\t\tCodeGenerator codeGen = new EdgeCodeGenerator(edgeClass,\n \t\t\t\t\tpackagePrefix, GRAPH_IMPLEMENTATION_PACKAGE, config);\n \t\t\tcodeGen.createFiles(pathPrefix);\n \n \t\t\tif (!edgeClass.isAbstract()) {\n \t\t\t\tcodeGen = new ReversedEdgeCodeGenerator(edgeClass,\n \t\t\t\t\t\tpackagePrefix, GRAPH_IMPLEMENTATION_PACKAGE, config);\n \t\t\t\tcodeGen.createFiles(pathPrefix);\n \t\t\t}\n \t\t\tif (progressFunction != null) {\n \t\t\t\tschemaElements++;\n \t\t\t\tcurrentCount++;\n \t\t\t\tif (currentCount == interval) {\n \t\t\t\t\tprogressFunction.progress(schemaElements);\n \t\t\t\t\tcurrentCount = 0;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\t// build records and enums\n \t\tfor (Domain domain : getRecordDomains()) {\n \t\t\t// also generate an abstract class for Records\n \t\t\tCodeGenerator rcode = new RecordCodeGenerator(\n \t\t\t\t\t(RecordDomain) domain, packagePrefix,\n \t\t\t\t\tGRAPH_IMPLEMENTATION_PACKAGE, config);\n \t\t\trcode.createFiles(pathPrefix);\n \t\t\tif (progressFunction != null) {\n \t\t\t\tschemaElements++;\n \t\t\t\tcurrentCount++;\n \t\t\t\tif (currentCount == interval) {\n \t\t\t\t\tprogressFunction.progress(schemaElements);\n \t\t\t\t\tcurrentCount = 0;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\tfor (Domain domain : getEnumDomains()) {\n \t\t\tCodeGenerator ecode = new EnumCodeGenerator((EnumDomain) domain,\n \t\t\t\t\tpackagePrefix, GRAPH_IMPLEMENTATION_PACKAGE);\n \t\t\tecode.createFiles(pathPrefix);\n \t\t}\n \t\tif (progressFunction != null) {\n \t\t\tschemaElements++;\n \t\t\tcurrentCount++;\n \t\t\tif (currentCount == interval) {\n \t\t\t\tprogressFunction.progress(schemaElements);\n \t\t\t\tcurrentCount = 0;\n \t\t\t}\n \t\t}\n \t}",
"@Override\n protected Void call() {\n if(download_queue.isEmpty()) return null;\n \n //Proceed to create a file with a list of addresses\n Writer writer = null;\n String file_dir = Configuration.root_dir + \"Download_list.txt\";\n try{\n writer = new BufferedWriter(\n new OutputStreamWriter(\n new FileOutputStream(\n file_dir), \"utf-8\"));\n String server_root = Configuration.getInstance().getSina_server_root();\n //Traverse through the download list and write each download address to file\n String content = \"\";\n for(int i = 0; i < download_queue.size(); i++){\n SoundTrack track = download_queue.get(i);\n String address = server_root + track.getLocalFileName();\n content += address;\n if(i < (download_queue.size() - 1)){\n content += \"\\n\";\n }\n }\n //Write to file\n writer.write(content);\n \n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n try {\n if(writer != null)\n writer.close();\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n //Run wget command to download the listed files\n String command = \"wget\";\n command += \" -P \" + Configuration.root_dir + \"SoundTracks/\";\n command += \" -i list\";\n try {\n Process p = Runtime.getRuntime().exec(command);\n p.waitFor();\n } catch (IOException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InterruptedException ex) {\n Logger.getLogger(IOHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return null;\n }",
"public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}",
"public String execute() {\n\t\t\n\t\tjobs = new ArrayList<Map<String, String>>();\n\t\tMap<String, String> job = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n\t\tjob = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n \n\t\treturn \"SUCCESS\";\n \n\t}",
"public synchronized void getAllFromDbAndWriteIntoTempFiles() throws IOWrapperException, IOIteratorException{\r\n\r\n readFromDB = true;\r\n iow=new IOWrapper();\r\n iow.setupOutput(this.dbname,this.username,this.password,this.hostname,this.port);\r\n iow.setupInput(this.dbname,this.username,this.password,this.hostname,this.port);\r\n \r\n iter = iow.sendInputQuery(\"SELECT COUNT(*) FROM \"+nodetable);\r\n try {\r\n maxProgerss+=Integer.parseInt(((String[])iter.next())[0]); \r\n } catch (NullPointerException e) {maxProgerss+=100;}\r\n iter = iow.sendInputQuery(\"SELECT COUNT(*) FROM \"+edgetable);\r\n try {\r\n maxProgerss+=Integer.parseInt(((String[])iter.next())[0]);\r\n } catch (NullPointerException e) {maxProgerss+=100;}\r\n //iow.closeOutput();\r\n \r\n\r\n \r\n //nodelist\r\n iter = iow.select(nodetable,nodeCols);\r\n iow.setupOutput(Controller.NODES_TMP_FILENAME);\r\n while (iter.hasNext()) {\r\n singleProgress+=1;\r\n String[] data = (String[])iter.next();\r\n iow.writeLine(data[0]+\"\\t\"+data[1]);\r\n }\r\n iow.closeOutput();\r\n\t\r\n //edgelist\r\n iter=iow.select(edgetable,edgeCols);\r\n iow.setupOutput(Controller.EDGES_TMP_FILENAME);\r\n while (iter.hasNext()) {\r\n\t singleProgress+=1;\r\n String[] data = (String[])iter.next();\r\n iow.writeLine(data[0]+\"\\t\"+data[1]+\"\\t\"+data[2]);\r\n //System.out.println(\"wwsl: \"+data[0]+\"\\t\"+data[1]+\"\\t\"+data[2]);\r\n }\r\n iow.closeOutput();\r\n readFromDB=false;\r\n this.stillWorks=false;\r\n }",
"public void run() {\n if (latch != null)\n latch.countDown();\n\n System.out.println(\"transferring from \" + job.srcUrl + \" to \" + job.dstUrl);\n\n String srcScheme;\n String dstScheme;\n\n try {\n srcScheme = SchemeParser.getScheme(job.srcUrl);\n dstScheme = SchemeParser.getScheme(job.dstUrl);\n } catch (Exception e) {\n setError(e.getMessage());\n return;\n }\n\n Receiver probe = Receiver.getProbeForScheme(srcScheme);\n if (probe == null) {\n setError(String.format(\"unsupported scheme: %s\", srcScheme));\n return;\n }\n\n FileInfo info;\n try {\n System.out.println(\"query src file header information...\");\n info = probe.getFileInfo(job.srcUrl, new HashMap<>());\n System.out.println(\"file size: \" + info.size);\n } catch (Receiver.ReceiverOperationError e) {\n setError(e.getMessage());\n return;\n }\n\n Receiver receiver = Receiver.getReceiverForScheme(srcScheme, info.size);\n if (receiver == null) {\n setError(String.format(\"unsupported scheme: %s\", srcScheme));\n return;\n }\n\n Sender sender = Sender.getSenderForScheme(dstScheme, info.size);\n if (sender == null) {\n setError(String.format(\"unsupported scheme: %s\", dstScheme));\n return;\n }\n\n Downloader downloader = Downloader.getDownloader();\n Uploader uploader = Uploader.getUploader();\n\n File buffer = new File(\"buffer.file\");\n\n try {\n System.out.println(\"start downloading...\");\n FileOutputStream writer = new FileOutputStream(buffer);\n downloader.download(job.srcUrl, new HashMap<>(), receiver, writer);\n writer.close();\n System.out.println(\"download finished\");\n\n System.out.println(\"start uploading...\");\n FileInputStream reader = new FileInputStream(buffer);\n uploader.upload(job.dstUrl, new HashMap<>(), sender, reader);\n reader.close();\n System.out.println(\"upload finished\");\n\n } catch (FileNotFoundException e) {\n setError(\"can't crate buffer file for download\");\n return;\n } catch (Exception e) {\n setError(String.format(\"download error: %s\", e.getMessage()));\n return;\n }\n }",
"public void getJobMixAndMakeProcesses(){\n if(jobType == 1){\n //type 1: there is only one process, with A=1 and B=C=0\n //since there is only one process, no the currentWord is 111%processSize\n processes.add(new process(1, 1, 0, 0, 111 % processSize));\n\n }else if(jobType ==2){\n //type 2: there are four processes, each with A=1, B=C=0\n for(int i=1; i<5; i++){\n processes.add(new process(i, 1, 0, 0, (111*i) % processSize));\n }\n\n\n }else if(jobType ==3){\n //type 3: there are four processes, each with A=B=C=0\n for(int i=1; i<5; i++){\n processes.add(new process(i,0, 0, 0, (111*i) % processSize));\n }\n\n }else{\n System.out.println(\"job type 4!!\");\n //process 1 with A=0.75, B=0.25, C=0\n processes.add(new process(1, 0.75, 0.25, 0, (111) % processSize));\n //process 2 with A=0.75, B= 0, C=0.25\n processes.add(new process(2, 0.75, 0, 0.25, (111*2) % processSize));\n //process 3 with A=0.75, B=0.125, C=0.125\n processes.add(new process(3, 0.75, 0.125, 0.125, (111*3) % processSize));\n //process 4 with A=0.5, B=0.125, C=0.125\n processes.add(new process(4, 0.5, 0.125, 0.125, (111*4) % processSize));\n\n }\n\n }",
"public void run() {\r\n\t\t\tthis.setName(\"Vista.CacheUploaderDaemon\");\r\n\t\t\tint frac = 0;\r\n\t\t\tint prog = 0; // Progreso de la cola\r\n\t\t\twhile (alive) {\r\n\t\t\t\tif (!colaEscritura.isEmpty()) {\r\n\t\t\t\t\tfrac = 100/colaEscritura.size();\r\n\t\t\t\t\tprog = 0;\r\n\t\t\t\t}\r\n\t\t\t\twhile (!colaEscritura.isEmpty()) {\r\n\t\t\t\t\tsetProgreso(\"Actualizando base de datos\", prog);\r\n\t\t\t\t\tprog+=frac;\r\n\t\t\t\t\tElementoCache e = colaEscritura.poll();\r\n\t\t\t\t\tif (e.i==INSERTAR) {\r\n\t\t\t\t\t\tif (e.tipo.equals(\"Empleado\" ))\t\tinsertEmpleadoBD((Empleado) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Cuadrante\"))\t\tcontrolador.insertCuadrante((Cuadrante) e.o.get(0)); \t\t\t\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"TurnoContrato\"))\tcontrolador.insertTurnoPorContrato((Integer)e.o.get(0), (Integer)e.o.get(1));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Sugerencia\"))\t\tcontrolador.insertSugerencia((Sugerencia)e.o.get(0));\r\n//\t\t\t\t\t\telse if (e.tipo.equals(\"Contrato\"))\t\t\tcontrolador.insertContrato((Contrato) e.o.get(0));\r\n\t\t\t\t\t\t/*else if (e.tipo.equals(\"Departamento\"))\t\tcontrolador.insertDepartamento((Departamento)e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"CrearDepartamento\")){ \tcontrolador.insertDepartamentoUsuario((Integer)e.o.get(2),e.o.get(0).toString()); //tabla DepartamentoUsuario\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontrolador.insertNumerosDepartamento((Integer)e.o.get(1),e.o.get(0).toString()); //tabla NumerosDEPARTAMENTOs\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontrolador.insertDepartamentoPruebas(e.o.get(0).toString(),(Integer)e.o.get(2)); //tabla DEPARTAMENTO\r\n\t\t\t\t\t\t}*/\r\n\t\t\t\t\t\t//TODO quitar esto\r\n\t\t\t\t\t\telse System.err.println(\"Error en cache - Insertar \"+e.tipo+\" no existe\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (e.i==ELIMINAR) {\r\n\t\t\t\t\t\tif (e.tipo.equals(\"Contrato\"))\t\t\tcontrolador.eliminaContrato((Integer) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Turno\"))\t\t\tcontrolador.eliminaTurno((Integer) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"ContratoConTurnos\"))\tcontrolador.eliminaContratoConTurnos((Integer) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Empleado\"))\t\t\tcontrolador.eliminaEmpleado((Integer) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"eliminaMesTrabaja\")) {\r\n\t\t\t\t\t\t\tArrayList<Object> ar = (ArrayList<Object>)e.o.get(0);\r\n\t\t\t\t\t\t\tcontrolador.eliminaMesTrabaja((Integer)ar.get(0),(Integer)ar.get(1),(Integer)ar.get(2),ar.get(3).toString());\r\n\t\t\t\t\t\t}else if (e.tipo.equals(\"eliminaTurnoDeContrato\")){\r\n\t\t\t\t\t\t\tArrayList<Object> aux = (ArrayList<Object>)e.o.get(0);\r\n\t\t\t\t\t\t\tcontrolador.eliminaTurnoDeContrato((Integer)aux.get(0),(Integer)aux.get(1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//TODO quitar esto\r\n\t\t\t\t\t\telse System.err.println(\"Error en cache - Eliminar \"+e.tipo+\" no existe\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(e.i==MODIFICAR) {\r\n\t\t\t\t\t\tif (e.tipo.equals(\"Contrato\"))\t\t\tcontrolador.modificarContrato(((Contrato)e.o.get(0)).getNumeroContrato(), ((Contrato)e.o.get(0)).getTurnoInicial(), ((Contrato)e.o.get(0)).getNombreContrato(), ((Contrato)e.o.get(0)).getPatron() , ((Contrato)e.o.get(0)).getDuracionCiclo(), ((Contrato)e.o.get(0)).getSalario(), ((Contrato)e.o.get(0)).getTipoContrato());\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Turno\"))\t\t\tcontrolador.modificarTurno(((Turno)e.o.get(0)).getIdTurno(), ((Turno)e.o.get(0)).getDescripcion(), ((Turno)e.o.get(0)).getHoraEntrada(), ((Turno)e.o.get(0)).getHoraSalida(), ((Turno)e.o.get(0)).getHoraDescanso(), ((Turno)e.o.get(0)).getTDescanso(),((Turno)e.o.get(0)).getColor());\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Empleado\"))\t\t\tcontrolador.cambiarEmpleado(((Empleado)e.o.get(0)).getEmplId(), ((Empleado)e.o.get(0)).getNombre(), ((Empleado)e.o.get(0)).getApellido1(), ((Empleado)e.o.get(0)).getApellido2(), ((Empleado)e.o.get(0)).getFechaNac(), ((Empleado)e.o.get(0)).getSexo(), ((Empleado)e.o.get(0)).getEmail(), ((Empleado)e.o.get(0)).getPassword(), ((Empleado)e.o.get(0)).getGrupo(), ((Empleado)e.o.get(0)).getFcontrato(), ((Empleado)e.o.get(0)).getFAlta(), ((Empleado)e.o.get(0)).getFelicidad(), ((Empleado)e.o.get(0)).getIdioma(), ((Empleado)e.o.get(0)).getRango(), ((Empleado)e.o.get(0)).getTurnoFavorito(), ((Empleado)e.o.get(0)).getColor(),((Empleado)e.o.get(0)).getContratoId(), ((Empleado)e.o.get(0)).getPosicion());\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Mensaje\"))\t\t\tcontrolador.marcarMensaje((Mensaje)e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"MensajeLeido\"))\t\tcontrolador.setLeido((Mensaje)e.o.get(0));\r\n\t\t\t\t\t\t//else if (e.tipo.equals(\"JefeDepartamento\"))\tcontrolador.modificaDpto(((Departamento)e.o.get(0)).getNombreDepartamento(), ((Departamento)e.o.get(0)).getJefeDepartamento().getEmplId()); \r\n\t\t\t\t\t\telse if (e.tipo.equals(\"NombreDepartamento\")){controlador.cambiaNombreDpto(((ArrayList<String>)e.o.get(0)).get(0),((ArrayList<String>)e.o.get(0)).get(1));}//nombre antiguo,nombre nuevo\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontrolador.cambiaNombreDepartamentoUsuario(e.o.get(0).toString(),e.o.get(1).toString());\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontrolador.cambiaNombreNumerosDEPARTAMENTOs(e.o.get(0).toString(),e.o.get(1).toString());\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Trabaja\"))\t\t\tcontrolador.modificaTrabaja(((Trabaja)e.o.get(0)).getIdEmpl(), ((Trabaja)e.o.get(0)).getIdTurno(), (String)e.o.get(1));\r\n\t\t\t\t\t\t//TODO quitar esto\r\n\t\t\t\t\t\telse System.err.println(\"Error en cache - Modificar \"+e.tipo+\" no existe\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Actualizando base de datos\", 100);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsleep(1000);\r\n\t\t\t\t} catch (Exception e) {};\r\n\t\t\t}\r\n\t\t}",
"@Override\n\tpublic void run() {\n\t\tfor (int i=0; i<10; i++){\n\t\t\tstorage.put();\n\t\t}\n\t}",
"public void createTasks(Integer _optID, String _tupleTag, String _taskType, String _info1, String _info2, String _destIP, String _port, String _location, long timestamp, Object _appSpecific){ \r\n //System.out.print(\"Create tasks\");\r\n boolean flag = false;\r\n String defaultIP = \"-1\";\r\n String defaultPort = \"-1\";\r\n \r\n //use wildcard to let one worker randomly choose the job to run\r\n //System.out.println(\"---What is optID: \" +_optID);\r\n if(_destIP.equals(\"RANDOM\")){\r\n int tempTaskID = getUpdatedTaskID();\r\n \r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,defaultIP,_info1,_info2,defaultPort,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n }\r\n //send tuples to all\r\n else if(_destIP.equals(\"ALL\")){\r\n //Iterate through all sites that subscribe to certain types of task \r\n //System.out.println(\"infoSys.getSiteList(): \"+infoSys.getSiteList());\r\n Iterator it = infoSys.getSiteList().entrySet().iterator();\r\n while (it.hasNext()) {\r\n Map.Entry entry = (Map.Entry) it.next();\r\n _destIP = ((String) entry.getKey());\r\n ConcurrentHashMap<String, String> subscribeType = (ConcurrentHashMap<String, String>) entry.getValue();\r\n \r\n //option 2, if there is multiple subscribers of a certain taskType in one site\r\n Iterator subIt = subscribeType.entrySet().iterator();\r\n while (subIt.hasNext()) {\r\n Map.Entry subEntry = (Map.Entry) subIt.next();\r\n String[] typeAndAssociate = subEntry.getValue().toString().split(\",\");\r\n if (typeAndAssociate[0].equals(_tupleTag) && typeAndAssociate[1].equals(_taskType)) {\r\n _port = subEntry.getKey().toString();\r\n\r\n int tempTaskID = getUpdatedTaskID();\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP, _info1,_info2,_port,_location, timestamp,_appSpecific);\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n //------THE TASK IS INSERTED HERE\r\n insertTask(tempTaskID);\r\n \r\n }\r\n }\r\n }\r\n }\r\n //if user choose one specific worker, only send the message to it\r\n else{ \r\n //System.out.println(infoSys.getSiteList());\r\n //Check if this subscriber exists\r\n if (infoSys.hasAssociateSubscriber(_destIP, _port)) {\r\n int tempTaskID = getUpdatedTaskID();\r\n //System.out.println(\"Master out: \"+\"--\"+_tupleTag+\"--\"+_taskType+\"--\"+_optID+\"--\"+_destIP+\"--\"+_budget+\"--\"+_deadline+\"--\"+_port);\r\n insertIntoParaList(tempTaskID, _optID, _tupleTag, _taskType,_destIP,_info1,_info2,_port,_location, timestamp,_appSpecific);\r\n flag = true;\r\n addEntryToResultList(_optID,flag);\r\n insertTask(tempTaskID);\r\n } else {\r\n System.out.println(\"Incorrect destIP or destPort for creating task!\");\r\n }\r\n } \r\n //create entry in resultList\r\n addEntryToResultList(_optID,flag);\r\n }",
"static void runJobFlow() throws InterruptedException{\n JobFlowInstancesConfig instances = new JobFlowInstancesConfig();\n //********************************************************************//\n instances.setHadoopVersion(HADOOP_VERSION);\n instances.withEc2KeyName(\"ayuda-vp1\");\n instances.setInstanceCount(MASTER_INSTANCE_COUNT);\n //instances.setInstanceGroups(instanceGroups)\n instances.setMasterInstanceType(InstanceType.M24xlarge.toString());\n instances.setSlaveInstanceType(InstanceType.M24xlarge.toString());\n //********************************************************************//\n HadoopJarStepConfig hadoopJarStep1 = new HadoopJarStepConfig()\n .withJar(S3N_WORD_COUNT_JAR_) // This should be a full map reduce application.\n .withArgs(BUCKET_NAME+\"inWC\", BUCKET_NAME+\"outWC\");\n \n StepConfig stepConfig1 = new StepConfig()\n .withName(\"wordcount\")\n .withHadoopJarStep(hadoopJarStep1)\n .withActionOnFailure(\"TERMINATE_JOB_FLOW\");\n\n //********************************************************************//\n \n //********************************************************************//\n HadoopJarStepConfig hadoopJarStep2 = new HadoopJarStepConfig()\n .withJar(S3N_MAX_WORD_COUNT_JAR) // This should be a full map reduce application.\n .withArgs(BUCKET_NAME+\"outWC\", BUCKET_NAME+\"outXWC\",\"hate\",\"10\");\n \n \n StepConfig stepConfig2 = new StepConfig()\n .withName(\"maxwordcount\")\n .withHadoopJarStep(hadoopJarStep2)\n .withActionOnFailure(\"TERMINATE_JOB_FLOW\");\n //********************************************************************//\n \n Collection<StepConfig> csc = new ArrayList<StepConfig>();\n csc.add(stepConfig1);\n csc.add(stepConfig2);\n \n // BootstrapActions bootstrapActions = new BootstrapActions();\n RunJobFlowRequest runFlowRequest = new RunJobFlowRequest()\n .withName(FLOW_NAME)\n .withInstances(instances)\n .withSteps(csc)\n .withLogUri(BUCKET_NAME+\"debug\")\n /*.withBootstrapActions(\n bootstrapActions.newRunIf(\n \"instance.isMaster=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.JobTracker, 4096)\n .build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningNameNode=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.NameNode, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningDataNode=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.DataNode, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningJobTracker=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.JobTracker, 4096).build()),\n bootstrapActions.newRunIf(\n \"instance.isRunningTaskTracker=true\",\n bootstrapActions.newConfigureDaemons()\n .withHeapSize(Daemon.TaskTracker, 4096).build()) \n \n /*,\n \n bootstrapActions.newRunIf(\n \"instance.isSlave=true\",\n bootstrapActions.newConfigureHadoop()\n .withKeyValue(ConfigFile.Site,\"mapred.tasktracker.map.tasks.maximum\", \"4\")) \n )*/;\n \n \n RunJobFlowResult runJobFlowResult = emr.runJobFlow(runFlowRequest);\n\t \n\t String jobFlowId = runJobFlowResult.getJobFlowId();\n\t System.out.println(\"Ran job flow with id: \" + jobFlowId);\n\t \n\t //wasFinished(runJobFlowResult);\n\t \n }",
"@Override\r\n\tpublic List<GridTask<LinPackResult>> split() {\r\n\t\tList<GridTask<LinPackResult>> list = new ArrayList<GridTask<LinPackResult>>();\r\n\t\tfor (int i=0; i < tasks; i++) {\r\n\t\t\tlist.add(new LinPackTask(cycles));\r\n\t\t}\r\n\t\t\r\n\t\tsw = new StopWatch();\r\n\t\t\r\n\t\tsw.start();\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (AttendanceDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for Employee id :\" + transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getCreatedDate());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getEmployeeEmpId()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeFullName());\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckInTime()));\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckOutTime()));\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"@Override\n\tpublic void run() {\n\t\tList<ProfileData> base=this.readBattery(this.batteryBasedFile);\n\t\tList<ProfileData> cpuFull=this.readBattery(this.batteryCPUFile);\n\t\t\n\t\tDefaultNetworkEnergyManager nem = MANAGER_FACTORY.createNetworkEnergyManager(networkEnergyManagerEnable, wifiSignalStrength);\n\t\tDefaultBatteryManager sb=MANAGER_FACTORY.createBatteryManager(2, startCharge, startUptime, batteryCapacityInJoules);\n\t\tfor(ProfileData b:base)\n\t\t\tsb.addProfileData(0, b);\n\t\tfor(ProfileData b:cpuFull)\n\t\t\tsb.addProfileData(1, b);\n\t\t\n\t\tDefaultExecutionManager se=MANAGER_FACTORY.createExecutionManager();\t\t\n\t\tse.setMips(this.flops);\n\t\tDevice d= MANAGER_FACTORY.createDevice(this.nodeId, sb, se, nem);\n\t\t\n\t\tsimLock.lock();\n\t\tNetworkModel.getModel().addNewNode(d);\n\t\tSimulation.addEntity(d);\n\t\tthis.dId=Simulation.getEntityId(this.nodeId);\n\t\tsimLock.unlock();\n\t\t\n\t\tsb.setDevice(d);\n\t\tse.setDevice(d);\n\t\tnem.setDevice(d);\n\t\tse.setBatteryManager(sb);\n\t\tnem.setBatteryManager(sb);\n\t\tsb.setSEASExecutionManager(se);\n\t\t\t\t\t\t\n\t\tthis.readCPUEvents();\n\t\t\n\t\tthis.eventLock.lock();\n\t\tEvent e=Event.createEvent(Event.NO_SOURCE, this.startTime, this.dId, Device.EVENT_TYPE_DEVICE_START, null);\n\t\tthis.eventLock.unlock();\n\t\tthis.simLock.lock();\n\t\tSimulation.addEvent(e);\n\t\tthis.simLock.unlock();\n\t}",
"@Override\r\n\tpublic BuilderResponse call() throws Exception {\n\t\tint createsSubmitted = 0;\r\n\t\tint pendingCreates = 0;\r\n\t\t// Walk over the source list\r\n\t\tMap<MigratableObjectType, Set<String>> batchesToCreate = new HashMap<MigratableObjectType, Set<String>>();\r\n\t\tfor(MigratableObjectData source: sourceList){\r\n\t\t\t// Is this entity already in the destination?\r\n\t\t\tif(!destMap.containsKey(source.getId())){\r\n\t\t\t\t// We can only add this entity if its dependencies are in the destination\r\n\t\t\t\tif(JobUtil.dependenciesFulfilled(source, destMap.keySet())) {\r\n\t\t\t\t\tMigratableObjectType objectType = source.getId().getType();\r\n\t\t\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\t\t\tif (batchToCreate==null) {\r\n\t\t\t\t\t\tbatchToCreate = new HashSet<String>();\r\n\t\t\t\t\t\tbatchesToCreate.put(objectType, batchToCreate);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbatchToCreate.add(source.getId().getId());\r\n\t\t\t\t\tcreatesSubmitted++;\r\n\t\t\t\t\tif(batchToCreate.size() >= this.batchSize){\r\n\t\t\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t\t\t\tbatchesToCreate.remove(objectType);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// This will get picked up in a future round.\r\n\t\t\t\t\tpendingCreates++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Submit any creates left over\r\n\t\tfor (MigratableObjectType objectType : batchesToCreate.keySet()) {\r\n\t\t\tSet<String> batchToCreate = batchesToCreate.get(objectType);\r\n\t\t\tif(!batchToCreate.isEmpty()){\r\n\t\t\t\tJob createJob = new Job(batchToCreate, objectType, Type.CREATE);\r\n\t\t\t\tthis.queue.add(createJob);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbatchesToCreate.clear();\r\n\t\t// Report the results.\r\n\t\treturn new BuilderResponse(createsSubmitted, pendingCreates);\r\n\t}",
"public void generate_suite_path_local_admin_task_queues(\r\n\t\t\tString generate_time,\r\n\t\t\tString suite_path,\r\n\t\t\tString work_space,\r\n\t\t\tHashMap<String, String> imported_data\r\n\t\t\t){\n\t\tList<String> case_list = new ArrayList<String>();\r\n\t\tcase_list.addAll(get_case_list(suite_path, work_space, imported_data));\r\n\t\t//step 2:get case type\r\n\t\tcase_enum case_type = get_case_type(suite_path, case_list);\r\n\t\t//step 3:generate overall case data\r\n\t\tTreeMap<String, HashMap<String, HashMap<String, String>>> all_case_data = new TreeMap<String, HashMap<String, HashMap<String, String>>>();\r\n\t\tall_case_data.putAll(get_local_case_data(suite_path, case_list, imported_data, case_type));\r\n\t\t//step 4:generate valid case data, case sorting\r\n\t\tTreeMap<String, HashMap<String, HashMap<String, String>>> valid_case_data = new TreeMap<String, HashMap<String, HashMap<String, String>>>();\r\n\t\tvalid_case_data.putAll(get_valid_case_data(all_case_data, imported_data));\r\n\t\t//step 5:generate admin queue data\r\n\t\tTreeMap<String, HashMap<String, HashMap<String, String>>> admin_queues_map = new TreeMap<String, HashMap<String, HashMap<String, String>>>();\r\n\t\tadmin_queues_map.putAll(get_local_admin_queues_data(generate_time, suite_path, case_type, imported_data, valid_case_data));\r\n\t\ttask_info.update_received_admin_queues_treemap(admin_queues_map);\r\n\t\t//step 6:generate task queue data\r\n\t\tMap<String, TreeMap<String, HashMap<String, HashMap<String, String>>>> task_queues_map = new HashMap<String, TreeMap<String, HashMap<String, HashMap<String, String>>>>();\r\n\t\ttask_queues_map.putAll(get_local_task_queues_data(case_type, admin_queues_map, valid_case_data));\r\n\t\ttask_info.update_received_task_queues_map(task_queues_map);\r\n\t\t//System.out.println(\"Admin:\" + admin_queues_map);\r\n\t\t//System.out.println(\"Task:\" + task_queues_map);\r\n\t}",
"private BDD build_T() {\n\t\tExecutorService executorService = Executors.newCachedThreadPool();\n\t\tList<Future<BDD>> tasks = new ArrayList<>(processors);\n\n\t\tint scheduler = processors;\n\t\tint work = endGenerations / processors;\n\t\tint half = work;\n\n\t\tif((endGenerations % processors) != 0)\n\t\t\tscheduler--;\n\n\t\tfor (int i = 0; i < scheduler; i++){\n\t\t\ttasks.add(executorService.submit(new AsyncTask(work - half, work)));\t\n\n\t\t\twork += half;\n\t\t}\n\n\t\tif((endGenerations % processors) != 0)\n\t\t\ttasks.add(executorService.submit(new AsyncTask(work - half, work+1)));\t\n\t\t\n\n\t\tBDD res = factory.makeZero();\n\t\tfor (int i = 0; i < processors; i++) {\n\t\t\ttry {\n\n\t\t\t\tres.orWith(tasks.get(i).get());\n\n\t\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\t\n\t\t}\n\n\t\texecutorService.shutdown();\n\n\t\treturn res;\n\t}",
"public static void main(String[] args) {\n\n int n = in.nextInt();\n int q = in.nextInt();\n int[] arr = new int[n];\n\n for (int i = 0; i < n; i++) {\n arr[i] = in.nextInt();\n }\n DiskSchedulerInfo dsi = new DiskSchedulerInfo(arr, q, 200);\n ISchedule[] scs = new ISchedule[]{\n new FCFS(dsi),\n new SSTF(dsi),\n new SCAN(dsi),\n new C_SCAN(dsi),\n new LOOK(dsi),\n new C_LOOK(dsi),\n new Optimized(dsi)\n };\n for (ISchedule sc : scs) {\n System.out.println(\"---------------------------\");\n System.out.println(sc.getClass().getName());\n System.out.println(\"---------------------------\");\n\n sc.simulate();\n Movement.printMovements(dsi.headStart, sc.getMovements());\n System.out.print(\"Order of processing: \");\n for (int v : sc.getOrderOfProcessing()) {\n System.out.print(v + \" \");\n }\n System.out.println();\n System.out.println(\"Total Movement is: \" + Movement.getTotalMovements(sc.getMovements()));\n }\n }",
"@Override\n protected Long compute() {\n if (dataList.size() <= BATCHSIZE)\n return sum();\n else {\n final List<AggregateWorker> tasks = new ArrayList<>();\n int index = dataList.size();\n while (index > 0) {\n int startIndex = (index - BATCHSIZE >= 0) ? (index - BATCHSIZE) : 0;\n // System.out.println(\"Created task for \" + startIndex + \" to \" + index);\n Collection<Long> subList = dataList.subList(startIndex, index);\n final AggregateWorker task = new AggregateWorker(subList);\n task.fork();\n tasks.add(task);\n index = index - BATCHSIZE;\n }\n long result = 0;\n for (final AggregateWorker task : tasks) {\n result += task.join();\n }\n return result;\n }\n }",
"List<List<SCWRLrunner>> iterateAndGenScwrl() throws IOException, MissingChainID {\n\t\t\n\t\tList<List<SCWRLrunner>> taskList = new LinkedList<>();\n\t\t// For faster executions when changing calculation parameters, if the raw data exists, only go through the calculation part of the program.\n\t\tif (!checkExistingCSVs()) {\n\t\t\t\n\t\t\tSystem.out.println(\"Starting protein scoring, saving original positions.\");\n\t\t\tmyProt.saveOriginalPositions();\n\t\t\t\n\t\t\tSystem.out.println(\"Stripping all amino acid resiudes and setting to ALA for selected chains.\");\n\t\t\tProteinActions.stripAndAllALAToObject(myProt, params);\n\t\t\tSystem.out.println(\"Iterating all acid permutations and creating SCWRL input files\");\n\t\t\tSystem.out.flush();\n\t\t\tFile scwrlOutput = ProteinActions.iterateAcids(myProt, params);\n\t\t\tparams.setScwrlOutputFolder(scwrlOutput);\n\t\t\tFile chainSubFolders[] = scwrlOutput.listFiles();\n\t\t\tassert chainSubFolders != null;\n\t\t\tfor (File chain : chainSubFolders) {\n\t\t\t\tif (chain.isDirectory()) {\n\t\t\t\t\tif (chain.getAbsolutePath().endsWith(File.separator + requestedChain) || requestedChain == '\\0') {\n\t\t\t\t\t\ttaskList.add(SCWRLactions.genSCWRLforFolder(chain));\n\t\t\t\t\t\tif (!params.isDebug()) {\n\t\t\t\t\t\t\ttoDelete.add(chain);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tcalculations();\n\t\t\treturn null;\n\t\t}\n\t\treturn taskList;\n\t}",
"public static void run(String[] args) throws Exception {\n File dir = new File(args[2]);\n if(dir.exists())\n deleteDir(dir);\n Configuration conf=new Configuration();\n String filename = args[1].substring(args[1].lastIndexOf(\"/\") + 1, args[1].length());\n conf.set(\"name_list\", filename);\n if(args.length >= 5) {\n filename = args[3].substring(args[3].lastIndexOf(\"/\") + 1, args[3].length());\n conf.set(\"alias\", filename);\n }\n Job job=new Job(conf,\"PreProcess\");\n //add cache file\n job.addCacheFile(new Path(args[1]).toUri());\n if(args.length >= 5)\n job.addCacheFile(new Path(args[4]).toUri());\n\n job.setJarByClass(PreProcess.class);\n job.setNumReduceTasks(Integer.parseInt(args[3]));\n\n job.setMapperClass(MyMapper.class);\n job.setReducerClass(MyReducer.class);\n\n job.setMapOutputKeyClass(Text.class);\n job.setMapOutputValueClass(Text.class);\n\n\n job.setOutputKeyClass(Text.class);\n job.setOutputValueClass(Text.class);\n\n\n Path outputPath = new Path(args[2]);\n\n System.out.println(System.getProperty(\"user.dir\"));\n FileInputFormat.addInputPath(job, new Path(args[0]));\n FileOutputFormat.setOutputPath(job, new Path(args[2]));\n\n outputPath.getFileSystem(conf).delete(outputPath,true);\n\n boolean res = job.waitForCompletion(true);\n if(!res){\n System.out.printf(\"task preprocess return false\\n\");\n System.exit(-1);\n\n }\n }",
"private void saveDataToShardPreferenceByWidget(ArrayList<Job> jobs) {\n }",
"void allocateWorker(Work work);",
"private List<MyRecursiveAction> createSubTasks(){\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n\n MyRecursiveAction subTask1 = new MyRecursiveAction(this.workLoad / 2);\n MyRecursiveAction subTask2 = new MyRecursiveAction(this.workLoad / 2);\n subTasks.add(subTask1);\n subTasks.add(subTask2);\n\n return subTasks;\n }",
"public void createT5(int rows) {\n\t\tExecutorService dataExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable worker1 = new RepeatDataThread(4, Application.THREAD_ONE_PATH\n\t\t\t\t+ \"t5\", 42);\n\t\tRunnable worker2 = new RepeatDataThread(4, Application.THREAD_TWO_PATH\n\t\t\t\t+ \"t5\", 42);\n\t\tRunnable worker3 = new RepeatDataThread(4,\n\t\t\t\tApplication.THREAD_THREE_PATH + \"t5\", 42);\n\t\tRunnable worker4 = new RepeatDataThread(4, Application.THREAD_FOUR_PATH\n\t\t\t\t+ \"t5\", 42);\n\t\tdataExecutor.execute(worker1);\n\t\tdataExecutor.execute(worker2);\n\t\tdataExecutor.execute(worker3);\n\t\tdataExecutor.execute(worker4);\n\t\tdataExecutor.shutdown();\n\t\ttry {\n\t\t\tdataExecutor.awaitTermination(1, TimeUnit.MINUTES);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// find directory that contains data\n\t\tFile[] files = new File[4];\n\t\tfiles[0] = new File(Application.THREAD_ONE_PATH + \"t5\");\n\t\tfiles[1] = new File(Application.THREAD_TWO_PATH + \"t5\");\n\t\tfiles[2] = new File(Application.THREAD_THREE_PATH + \"t5\");\n\t\tfiles[3] = new File(Application.THREAD_FOUR_PATH + \"t5\");\n\t\tFile outputFile = null;\n\n\t\tfor (File f : files) {\n\t\t\tif (FileUtils.folderSize(f) > 0) {\n\t\t\t\toutputFile = new File(f.toString());\n\t\t\t}\n\t\t}\n\n\t\tif (outputFile == null) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"unable to avoid initialization exception for table 5.\");\n\t\t}\n\t\t\n\t\tExecutorService loadExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable loadWorker = new LoadThread(outputFile.toString());\n\t\tloadExecutor.execute(loadWorker);\n\t\tloadExecutor.shutdown();\n\t\ttry {\n\t\t\tloadExecutor.awaitTermination(10, TimeUnit.MINUTES);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcleanDirs();\n\t}",
"public static void main(String[] args) {\n\t\tJob1 job = new Job1();\n\t\tjob.head = new Node(1);\n\t\tfor(int i = 2; i < 6; i ++) {\n\t\t\tjob.head.insertTail(new Node(i));\n\t\t}\n\t\tjob.head.printAll();\n\t}",
"@Override\n protected List<String> compute() {\n List<String> fileNames = new ArrayList<>();\n\n // FolderProcessor tasks to store the sub-tasks that are going to process the sub-folders stored inside folder.\n List<FolderProcessor> subTasks = new ArrayList<>();\n\n // Get the content of the folder.\n File file = new File(path);\n File content[] = file.listFiles();\n\n //For each element in the folder, if there is a subfolder, create a new FolderProcessor object\n //and execute it asynchronously using the fork() method.\n for (int i = 0; i < content.length; i++) {\n if (content[i].isDirectory()) {\n FolderProcessor task = new FolderProcessor(content[i].getAbsolutePath(), extension);\n task.fork();\n subTasks.add(task);\n } else {\n //Otherwise, compare the extension of the file with the extension you are looking for using the checkFile() method\n //and, if they are equal, store the full path of the file in the list of strings declared earlier.\n\n if (checkFile(content[i].getName())) {\n fileNames.add(content[i].getAbsolutePath());\n }\n }\n }\n\n //If the list of the FolderProcessor sub-tasks has more than 50 elements,\n //write a message to the console to indicate this circumstance.\n if (subTasks.size() > 50) {\n System.out.printf(\"%s: %d tasks ran.\\n\", file.getAbsolutePath(), subTasks.size());\n }\n\n // Add the results from the sub-tasks.\n addResultsFrommSubTasks(fileNames, subTasks);\n\n return fileNames;\n }",
"@Override\n\t\t\tpublic void beginTask(String name, int totalWork) {\n\t\t\t\t\n\t\t\t}",
"abstract void doJob();",
"private void execute0()\n {\n if (logger.isDebugEnabled())\n {\n debugLogCompactingMessage(taskId);\n }\n\n long lastCheckObsoletion = startNanos;\n double compressionRatio = scanners.getCompressionRatio();\n if (compressionRatio == MetadataCollector.NO_COMPRESSION_RATIO)\n compressionRatio = 1.0;\n\n long lastBytesScanned = 0;\n\n if (!controller.cfs.getCompactionStrategyContainer().isActive())\n throw new CompactionInterruptedException(op.getProgress());\n\n estimatedKeys = writer.estimatedKeys();\n while (compactionIterator.hasNext())\n {\n if (op.isStopRequested())\n throw new CompactionInterruptedException(op.getProgress());\n\n UnfilteredRowIterator partition = compactionIterator.next();\n if (writer.append(partition))\n totalKeysWritten++;\n\n long bytesScanned = scanners.getTotalBytesScanned();\n\n // Rate limit the scanners, and account for compression\n if (compactionRateLimiterAcquire(limiter, bytesScanned, lastBytesScanned, compressionRatio))\n lastBytesScanned = bytesScanned;\n\n long now = System.nanoTime();\n if (now - lastCheckObsoletion > TimeUnit.MINUTES.toNanos(1L))\n {\n controller.maybeRefreshOverlaps();\n lastCheckObsoletion = now;\n }\n }\n\n // point of no return\n newSStables = writer.finish();\n\n\n completed = true;\n }",
"public void run() {\n ui.printStartingMessage();\n boolean isExit = false;\n\n while (!isExit) {\n isExit = parser.determineCommand();\n }\n\n storage.saveToFile(taskList);\n }",
"public static void main(String[] args) throws Exception\n {\n Machine machine = new Machine();\n OperatingSystem os = new OperatingSystem(machine);\n machine.powerUp(os);\n // create a program\n\n //grab a program from collection, add to list, schedule list of programs\n List<Program> programs = new LinkedList<>();\n\n////////Testing virtua/physical\n// programs.add(ProgramCollection.A2P1(0));\n// programs.add(ProgramCollection.A2P1(1));\n// programs.add(ProgramCollection.A2P1(2));\n// programs.add(ProgramCollection.A2P1(3));\n// programs.add(ProgramCollection.A2P1(4));\n///////////Testing expand\n// programs.add(ProgramCollection.miniProg(2));\n// programs.add(ProgramCollection.miniProg(3));\n// programs.add(ProgramCollection.moreMem2());\n/////////Testing Shift\n// programs.add(ProgramCollection.moreMem2());\n// programs.add(ProgramCollection.longProg());\n /*\tTesting Compaction\n this test will have two mini programs that finish before our more memory program\n asks for more memory. It will also have two additional wait processes that never finish\n (one that needs to shift left and one too shift right). Our moreMem3 prog will ask for \n more memory and then try storing into these memory locations.\n */\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.mini(6));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.moreMem3(240));\n// programs.add(ProgramCollection.waitProcess(6));\n// programs.add(ProgramCollection.testIt(1));\n// programs.add(ProgramCollection.testIt(2));\n// programs.add(ProgramCollection.testIt(3));\n// programs.add(ProgramCollection.writeConsole(1));\n// programs.add(ProgramCollection.writeConsole(2));\n// programs.add(ProgramCollection.writeConsole(3));\n// programs.add(ProgramCollection.pWriteDisk2(340));\n//TEST READ AND WRITE DISK\n //programs.add(ProgramCollection.WriteReadDisk());\n//TEST SSTF\n// programs.add(ProgramCollection.testSSTF(10, 46, 5));\n// programs.add(ProgramCollection.testSSTF(20, 71, 5));\n// programs.add(ProgramCollection.testSSTF(30, 51, 10));\n// programs.add(ProgramCollection.testSSTF(40, 26, 5));\n\n//TEST STARVATION\n programs.add(ProgramCollection.testSSTF(10, 31, 3));\n programs.add(ProgramCollection.testSSTF(340, 90, 3));\n programs.add(ProgramCollection.testSSTF(20, 51, 3));\n programs.add(ProgramCollection.testSSTF(30, 41, 3));\n programs.add(ProgramCollection.testSSTF(40, 51, 3));\n programs.add(ProgramCollection.testSSTF(50, 41, 3));\n programs.add(ProgramCollection.testSSTF(60, 51, 3));\n programs.add(ProgramCollection.testSSTF(70, 41, 3));\n programs.add(ProgramCollection.testSSTF(80, 51, 3));\n programs.add(ProgramCollection.testSSTF(90, 41, 3));\n\n os.schedule(programs);\n\n }",
"@Override\r\n\tpublic void finishProcess() {\r\n\t\tfor (String soaFolder : this.SOA_Folders) {\r\n\t\t\tString strConfig = soaFolder;\r\n\t\t\tFile f = new File(strConfig + \"/exit\");\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tprotected void saveResults(){\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"_yyyy_MM_dd_HH:mm:ss\");\n\t\tDate date = new Date();\n\t\ttry(BufferedWriter bw=new BufferedWriter(new FileWriter(\"/home/daniel/results/\"+this.mAffinityType+\"/\"+this.getClass().getSimpleName()+\"/\"+MAX_TASK_AGE+\"/\"+mOutputFileName+dateFormat.format(date)))){\n\t\t\tbw.write(this.getClass().getSimpleName()+\" with max age=\"+MAX_TASK_AGE+\"\\n\");\n\t\t\tbw.write(\"Total processing time: \"+cycles+\" TU\\n\");\n\t\t\tint count=0;\n\t\t\tfor(Task t : mTasks){\n\t\t\t\tbw.write(++count + \":\");\n\t\t\t\tif(t.getmAge()>=MAX_TASK_AGE){\n\t\t\t\t\tbw.write(\"Aging used\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tbw.write(\"Aging not used\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t DecimalFormat df = new DecimalFormat(\"0.0\");\n\t\t\t\t\t\tbw.write(\"[\"+df.format(AFFINITY3[i][j][k])+\"]\");\n\t\t\t\t\t}\n\t\t\t\t\tbw.write(\"\\n\");\n\t\t\t\t}\n\t\t\t\tbw.write(\"###############################################################\\n\");\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public abstract List<C_result> processJob(C_request processing_cmd);",
"public static void main(String[] argv) {\r\n\t\ttask_data task_info = new task_data();\r\n\t\tlocal_tube sheet_parser = new local_tube(task_info);\r\n\t\tString current_terminal = \"LSHITD0097\";\r\n\t\tHashMap<String, String> imported_data = new HashMap<String, String>();\r\n\t\timported_data.put(\"env\", \"a=b\");\r\n\t\timported_data.put(\"sort\", \"\");\r\n\t\timported_data.put(\"key\", public_data.CASE_USER_PATTERN + \"|\" + public_data.CASE_STANDARD_PATTERN);\r\n\t\tsheet_parser.generate_suite_file_local_admin_task_queues(time_info.get_date_time(), \"C:\\\\Users\\\\jwang1\\\\Desktop\\\\standard_suite2\\\\radiant_regression.xlsx\", imported_data, current_terminal);\r\n\t\t//System.out.println(task_info.get_received_task_queues_map().toString());\r\n\t\t//System.out.println(task_info.get_received_admin_queues_treemap().toString());\r\n\t\tsheet_parser.generate_suite_path_local_admin_task_queues(time_info.get_date_time(), \"C:/Users/jwang1/Desktop/qinhai_suite\", \"D:/tmp_work\", imported_data);\r\n\t\tSystem.out.println(task_info.get_received_task_queues_map().toString());\r\n\t\tSystem.out.println(task_info.get_received_admin_queues_treemap().toString());\r\n\t\t/*\t\t\r\n\t\txml_parser xml_parser2 = new xml_parser();\r\n\t\tIterator<String> dump_queue_it = task_info.get_received_admin_queues_treemap().keySet().iterator();\r\n\t\tString queue_name = dump_queue_it.next();\r\n\t\tHashMap<String, HashMap<String, String>> admin_queue_data = task_info\r\n\t\t\t\t.get_queue_data_from_received_admin_queues_treemap(queue_name);\r\n\t\tSystem.out.println(queue_name);\r\n\t\tSystem.out.println(admin_queue_data);\r\n\t\ttry {\r\n\t\t\txml_parser2.dump_admin_data(admin_queue_data, queue_name,\r\n\t\t\t\t\t\"D:/tmp_work_space/logs/finished/admin/test.xml\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tTreeMap<String, HashMap<String, HashMap<String, String>>> task_queue_data = task_info\r\n\t\t\t\t.get_received_task_queues_map().get(queue_name);\r\n\t\tSystem.out.println(task_queue_data);\r\n\t\ttry {\r\n\t\t\txml_parser2.dump_task_data(task_queue_data, queue_name,\r\n\t\t\t\t\t\"D:/tmp_work_space/logs/finished/task/test.xml\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t*/\r\n\t}",
"void event(long t) {\n\r\n \r\n\r\n Job temp;\r\n if (this.TempListMigrating.front != null) { //if there are any new migrating tasks\r\n TempListMigrating.insertionSortIdentifier(this.TempListMigrating.front); //order the TempList, from smallest-largest\r\n\r\n while (this.TempListMigrating.front != null) {\r\n //TempList.calculateD(t);\r\n temp = TempListMigrating.remove();\r\n int assignedProcessor = this.getNextProcessor(temp);\r\n\r\n //add this task to the processor\r\n this.servers[this.Tasks[temp.identifier].index[assignedProcessor]].addToMigratingPool(temp);\r\n\r\n }\r\n }\r\n\r\n while (this.TempListFixed.front != null) {\r\n\r\n temp = TempListFixed.remove();\r\n this.servers[this.Tasks[temp.identifier].index[0]].pool.insertionSortDeadline(temp, t);\r\n\r\n }\r\n\r\n //add things to the processor now\r\n for (int i = 0; i < numProcessors; i++) {\r\n\r\n if (this.servers[i].executing.top != null) { //not empty, there is a job present\r\n //check for migrating tasks\r\n if (this.servers[i].migratingPool.front != null) {\r\n //there are migrating Tasks, and something on the stack\r\n if (this.Tasks[this.servers[i].executing.top.identifier].numMigrations < 2 || this.Tasks[this.servers[i].executing.top.identifier].fixed == true) { //executing is a fixed task\r\n if (servers[i].migratingPool.front != null) {\r\n //switch\r\n temp = servers[i].executing.top;\r\n servers[i].executing.top = servers[i].migratingPool.remove();\r\n servers[i].pool.insertionSortDeadline(temp, t);\r\n this.preemptions++;\r\n\r\n }\r\n } //if both migrating tasks\r\n else if (this.servers[i].migratingPool.front.identifier < servers[i].executing.top.identifier) {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n } else if (this.servers[i].pool.front != null)//check for fixed tasks\r\n {\r\n if (this.servers[i].pool.front.deadline < servers[i].executing.top.deadline) {\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n this.preemptions++;\r\n }\r\n }\r\n\r\n } else if (this.servers[i].migratingPool.front != null) //it was empty, add now migrating\r\n {\r\n temp = servers[i].migratingPool.remove();\r\n servers[i].executing.top=temp;\r\n \r\n \r\n\r\n } else if (this.servers[i].pool.front != null) //executing was empty, and migratingPool was empty, add from fixed list\r\n {\r\n\r\n temp = servers[i].pool.remove();\r\n servers[i].executing.top = temp; //add to the EMPTY stack\r\n }\r\n\r\n }\r\n }",
"public static void main(String[] args)\n throws InterruptedException\n {\n // Defining threads to accept the jobs\n // ----------------------------------------------------------\n Thread thread1 = new Intermediate(10, \"INT01\");// Instantiate thread1\n Thread thread2 = new Intermediate(50, \"INT02\");// Instantiate thread2\n Thread thread3 = new CPUBound(60, \"CPU01\");// Instantiate thread3\n Thread thread4 = new CPUBound(70, \"CPU02\");// Instantiate thread4\n Thread thread5 = new IOBound(System.in, \"IO01\");// Instantiate thread5\n Thread thread6 = new IOBound(System.in, \"IO02\");// Instantiate thread6\n Thread thread7 = new Intermediate(82, \"INT03\");// Instantiate thread7\n Thread thread8 = new CPUBound(80, \"CPU03\");// Instantiate thread8\n\n // Creating a ArrayList of threads and adding the jobs to the ArrayList\n // ----------------------------------------------------------\n ArrayList<Thread> threadList = new ArrayList<Thread>();\n threadList.add(thread1);\n threadList.add(thread2);\n threadList.add(thread3);\n threadList.add(thread4);\n threadList.add(thread5);\n threadList.add(thread6);\n threadList.add(thread7);\n threadList.add(thread8);\n\n // Creating a FCFS object and running it with the created ArrayList\n // object\n // ----------------------------------------------------------\n FCFS fcfs = new FCFS(threadList);\n fcfs.run();\n\n // Displaying the results of the FCFS run\n // ----------------------------------------------------------\n\n System.out.println(\"----------------FCFS-----------------------------\");\n for (String key : fcfs.getRun_times().keySet())\n System.out.println(key + \" => \" + fcfs.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n // Defining a Hash Map with key Long and value Thread. To pair\n // each unique time with a process\n // ----------------------------------------------------------\n Map<Long, Thread> threadList2 = new HashMap<Long, Thread>();\n threadList2.put(fcfs.getRun_times().get(thread1.getName()), thread1);\n threadList2.put(fcfs.getRun_times().get(thread2.getName()), thread2);\n threadList2.put(fcfs.getRun_times().get(thread3.getName()), thread3);\n threadList2.put(fcfs.getRun_times().get(thread4.getName()), thread4);\n threadList2.put(fcfs.getRun_times().get(thread5.getName()), thread5);\n threadList2.put(fcfs.getRun_times().get(thread6.getName()), thread6);\n threadList2.put(fcfs.getRun_times().get(thread7.getName()), thread7);\n threadList2.put(fcfs.getRun_times().get(thread8.getName()), thread8);\n\n // Creating a SJF object and running it with the created ArrayList\n // object\n // ----------------------------------------------------------\n SJF sjf = new SJF(threadList2);\n sjf.run();\n\n // Displaying the results of the SJF run\n // ----------------------------------------------------------\n System.out.println(\"-----------------SJF-----------------------------\");\n for (String key : sjf.getRun_times().keySet())\n System.out.println(key + \" => \" + sjf.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n // Creating a RoundRobin object and running it with the previously\n // created ArrayList object holding our processes.\n // ----------------------------------------------------------\n RoundRobin roundRobin = new RoundRobin(threadList);\n roundRobin.run();\n\n // Displaying the results of the RoundRobin run\n // ----------------------------------------------------------\n System.out.println(\"-----------------Round Robin---------------------\");\n for (String key : roundRobin.getRun_times().keySet())\n System.out.println(key + \" => \" + sjf.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n }",
"public Job() {\n\t\t\t\n\t\t}",
"private static void generate(int models) {\n\t\tIntStream.range(0, models).forEach(i -> {\n\t\t\tNetworkGenerator networkGenerator = new NetworkGenerator(capacity, dimensions, inputShape, outputShape);\n\t\t\tString code = networkGenerator.build();\n\t\t\tFileGenerator fileGenerator = new FileGenerator(String.format(\"python_model_%d.py\", i), code);\n\t\t\ttry {\n\t\t\t\tfileGenerator.generateFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"file generator failed\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t});\n\t}"
] | [
"0.67839026",
"0.6228215",
"0.60409784",
"0.5933338",
"0.59258074",
"0.5899096",
"0.5858369",
"0.58535945",
"0.58158326",
"0.57834584",
"0.56976897",
"0.56863827",
"0.5668336",
"0.56637883",
"0.56589174",
"0.56427324",
"0.56407666",
"0.56316465",
"0.562847",
"0.5622011",
"0.56204957",
"0.55933255",
"0.5587859",
"0.55319226",
"0.55165535",
"0.54879624",
"0.54861814",
"0.5471438",
"0.54711246",
"0.5466537",
"0.54541385",
"0.5431212",
"0.54194564",
"0.5416386",
"0.5413622",
"0.5413038",
"0.5411796",
"0.5407304",
"0.5405919",
"0.54037964",
"0.53989196",
"0.53967243",
"0.53922313",
"0.5390284",
"0.53855693",
"0.5384448",
"0.5382649",
"0.5373616",
"0.5372827",
"0.53606975",
"0.53551304",
"0.53538245",
"0.53530055",
"0.5352803",
"0.5350196",
"0.53447276",
"0.53426504",
"0.5338695",
"0.5333086",
"0.5332606",
"0.53303444",
"0.53188914",
"0.53083175",
"0.53040075",
"0.5302543",
"0.53016007",
"0.53001076",
"0.529487",
"0.52936596",
"0.528273",
"0.52723306",
"0.5269718",
"0.526449",
"0.5259797",
"0.525653",
"0.5254547",
"0.52540237",
"0.5253821",
"0.52533454",
"0.5248532",
"0.5247318",
"0.5238439",
"0.52383715",
"0.52324975",
"0.5231528",
"0.5222878",
"0.5222805",
"0.5221013",
"0.5212082",
"0.52029717",
"0.5191117",
"0.517844",
"0.5175273",
"0.51739013",
"0.5171022",
"0.5170586",
"0.5167642",
"0.51556027",
"0.515283",
"0.51528114"
] | 0.6013406 | 3 |
removing the jobs from HDD to Ram | public void ToRam() {
while (ram > 0) {
if (HDDQ.isEmpty()) {
break;
}
PCB k = HDDQ.remove();
k.setBasedOnSize(false);
RAMQ.add(k);
ram -= k.getSize();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeJob(int jNo);",
"void destroy() {\n \t\ttry {\r\n \t\t\tupKeep.stopRunning();\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \r\n \t\t// Kill all running processes.\r\n \t\tfor (MaximaProcess mp : pool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tpool.clear();\r\n \r\n \t\t// Kill all used processes.\r\n \t\tfor (MaximaProcess mp : usedPool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tusedPool.clear();\r\n \t}",
"private void deleteJob(int floorNumber){\n jobs.remove(floorNumber);\n }",
"private void deletejob() {\n\t\tjob.delete(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"删除成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void clearMemory() {\n\t\tRunningAppMgr.getInstance(this).killAll();\n\t\tsetMemory();\n\t}",
"void clear() {\n this.mapped_vms.clear();\n this.mapped_anti_coloc_job_ids.clear();\n this.used_cpu = BigInteger.ZERO;\n this.used_mem = BigInteger.ZERO;\n }",
"public void clearPartitions() {\n\t\tthis.bucketIterator = null;\r\n\t\tthis.probeIterator = null;\r\n\r\n\t\tfor (int i = this.partitionsBeingBuilt.size() - 1; i >= 0; --i) {\r\n\t\t\tfinal BinaryHashPartition p = this.partitionsBeingBuilt.get(i);\r\n\t\t\ttry {\r\n\t\t\t\tp.clearAllMemory(this.availableMemory);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLOG.error(\"Error during partition cleanup.\", e);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.partitionsBeingBuilt.clear();\r\n\r\n\t\t// clear the partitions that are still to be done (that have files on disk)\r\n\t\tfor (final BinaryHashPartition p : this.partitionsPending) {\r\n\t\t\tp.clearAllMemory(this.availableMemory);\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n void clean(long cutoff, HistoryStorage storage) throws IOException {\n boolean halted = false;\n // TODO Delete YYYY/MM/DD directories.\n List<FileStatus> serialDirList = findTimestampedDirectories();\n // Sort in ascending order. Relies on YYYY/MM/DD/Serial\n Collections.sort(serialDirList);\n for (FileStatus serialDir : serialDirList) {\n List<FileStatus> historyFileList = scanDirectoryForHistoryFiles(\n serialDir.getPath(), doneDirFc);\n for (FileStatus historyFile : historyFileList) {\n JobIndexInfo jobIndexInfo = FileNameIndexUtils.getIndexInfo(historyFile\n .getPath().getName());\n long effectiveTimestamp = getEffectiveTimestamp(\n jobIndexInfo.getFinishTime(), historyFile);\n if (effectiveTimestamp <= cutoff) {\n String confFileName = JobHistoryUtils\n .getIntermediateConfFileName(jobIndexInfo.getJobId());\n MetaInfo metaInfo = new MetaInfo(historyFile.getPath(), new Path(\n historyFile.getPath().getParent(), confFileName), null,\n jobIndexInfo);\n storage.jobRemovedFromHDFS(metaInfo.getJobId());\n deleteJobFromDone(metaInfo);\n } else {\n halted = true;\n break;\n }\n }\n if (!halted) {\n doneDirFc.delete(doneDirFc.makeQualified(serialDir.getPath()), true);\n removeDirectoryFromSerialNumberIndex(serialDir.getPath());\n synchronized (existingDoneSubdirs) {\n existingDoneSubdirs.remove(serialDir.getPath());\n }\n } else {\n break; // Don't scan any more directories.\n }\n }\n }",
"public void reset()\n {\n \tthis.heapFiles.clear();\n }",
"abstract public void deleteAfterBetaReduction();",
"void cronTrimActivityQueue();",
"public synchronized void cleanupSimple() {\n\t\tfinal int maxNumFiles = 1000;\n\t\tfinal int numFilesToDelete = 50;\n\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) {\n\t\t\tif (children.length > maxNumFiles) {\n\t\t\t\tfor (int i = children.length - 1, m = i - numFilesToDelete; i > m; i--) {\n\t\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void clean(){\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\tlong lastTime=resourceStatus.getLastNotInUseTime();\n\t\t\t\t\t\tlong currentTime=System.currentTimeMillis();\n\t\t\t\t\t\tT resource=resourceStatus.getResource();\n\t\t\t\t\t\tif((currentTime-lastTime)>=this.resourceAliveTime){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdestroyResource(resource);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tlogger.error(Constants.Base.EXCEPTION, e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.resourcesStatus[index]=null;\n\t\t\t\t\t\t\tthis.currentSize--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void cleanup() {\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) { // children will be null if the directory does\n\t\t\t\t\t\t\t\t// not exist.\n\t\t\tfor (int i = 0; i < children.length; i++) { // remove too small file\n\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\tif (!child.equals(new File(mStorageDirectory, NOMEDIA))\n\t\t\t\t\t\t&& child.length() <= MIN_FILE_SIZE_IN_BYTES) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void pruneIfNeeded(int neededSpace) {\n\t\tif ((mTotalSize + neededSpace) < mMaxCacheSizeInBytes) {\n\t\t\treturn;\n\t\t}\n\t\tif (VolleyLog.DEBUG) {\n\t\t\tVolleyLog.v(\"Pruning old cache entries.\");\n\t\t}\n\n\t\tlong before = mTotalSize;\n\t\tint prunedFiles = 0;\n\t\tlong startTime = SystemClock.elapsedRealtime();\n\n\t\tIterator<Map.Entry<String, CacheHeader>> iterator = mEntries.entrySet()\n\t\t\t\t.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry<String, CacheHeader> entry = iterator.next();\n\t\t\tCacheHeader e = entry.getValue();\n\t\t\tboolean deleted = getFileForKey(e.key).delete();\n\t\t\tif (deleted) {\n\t\t\t\tmTotalSize -= e.size;\n\t\t\t} else {\n\t\t\t\tVolleyLog.d(\n\t\t\t\t\t\t\"Could not delete cache entry for key=%s, filename=%s\",\n\t\t\t\t\t\te.key, getFilenameForKey(e.key));\n\t\t\t}\n\t\t\titerator.remove();\n\t\t\tprunedFiles++;\n\n\t\t\tif ((mTotalSize + neededSpace) < mMaxCacheSizeInBytes\n\t\t\t\t\t* HYSTERESIS_FACTOR) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (VolleyLog.DEBUG) {\n\t\t\tVolleyLog.v(\"pruned %d files, %d bytes, %d ms\", prunedFiles,\n\t\t\t\t\t(mTotalSize - before), SystemClock.elapsedRealtime()\n\t\t\t\t\t\t\t- startTime);\n\t\t}\n\t}",
"public void deleteCurrWorker() {\n this.currWorker = null;\n }",
"public void remove(String name) {\n jobs.remove(name);\n }",
"public void removeTasks() {\n\t\t\r\n\t}",
"@Override\n\tpublic void getCleanedUp() {\n\t\ttry {\n\t\t\t//studying\n\t\t\tThread.sleep(50 * capacity);\n\t\t\tLOGGER.info(\"Cleaning room \" + this.getRoomId());\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t}",
"public void onLowMemory() {\r\n \t\tlog.info(\"On low memory : cleaning tiles - size = \" + cacheOfImages.size());\r\n \t\tArrayList<String> list = new ArrayList<String>(cacheOfImages.keySet());\r\n \t\t// remove first images (as we think they are older)\r\n \t\tfor (int i = 0; i < list.size()/2; i ++) {\r\n \t\t\tBitmap bmp = cacheOfImages.remove(list.get(i));\r\n \t\t\tif(bmp != null){\r\n \t\t\t\tbmp.recycle();\r\n \t\t\t}\r\n \t\t}\r\n \t\tSystem.gc();\r\n \t}",
"private void DeleteCMVMMVData() {\n String path = GetFilePath();\r\n File dir = new File(path);\r\n for (File file : dir.listFiles())\r\n if (!file.isDirectory())\r\n file.delete();\r\n DownloadCMVMMVFiles();//state, circle, ran, div\r\n }",
"void purge();",
"private synchronized void performHouseKeeping() {\r\n\t\tSet<Map.Entry<Integer,QueueManager>> eS = queueManagers.entrySet();\r\n\t\tfor( Iterator<Map.Entry<Integer,QueueManager>> i = eS.iterator(); i.hasNext(); ) {\r\n\t\t\tMap.Entry<Integer,QueueManager> qMME = i.next();\r\n\t\t\tQueueManager qM = qMME.getValue();\r\n\t\t\tif( qM.houseKeepingAndTestForDelete() ) {\r\n\t\t\t\ti.remove();\r\n\t\t\t\tLOGGER.debug(\"Removed QueueManager with magic number \"+qM.getMagicNumber()+\" due to inactivity\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void clean() {\n Long now = System.currentTimeMillis();\n for (Iterator<Long> iterator = this.deleted.iterator(); iterator.hasNext();) {\n Long l = iterator.next();\n if (l < now) {\n iterator.remove();\n }\n }\n }",
"private void doCleanupJob\n\t\t(long now,\n\t\t JobInfo jobinfo)\n\t\tthrows IOException\n\t\t{\n\t\t// Stop lease timers.\n\t\tjobinfo.renewTimer.stop();\n\t\tjobinfo.expireTimer.stop();\n\t\tjobinfo.jobTimer.stop();\n\n\t\t// Stop communication with job frontend.\n\t\tjobinfo.frontend.close();\n\n\t\t// Remove job from queues.\n\t\tmyFrontendToJobMap.remove (jobinfo.frontend);\n\t\tmyRunningJobList.remove (jobinfo);\n\t\tmyWaitingJobList.remove (jobinfo);\n\n\t\t// Make each of the job's nodes idle (but not failed nodes).\n\t\tfor (int i = 0; i < jobinfo.count; ++ i)\n\t\t\t{\n\t\t\tBackendInfo backendinfo = jobinfo.backend[i];\n\t\t\tif (backendinfo.state != BackendInfo.State.FAILED)\n\t\t\t\t{\n\t\t\t\tbackendinfo.state = BackendInfo.State.IDLE;\n\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\tbackendinfo.job = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Update total compute time.\n\t\tmyTotalComputeTime += (now - jobinfo.stateTime);\n\n\t\t// Assign idle nodes to waiting jobs.\n\t\tassignResourcesToJobs (now);\n\t\t}",
"public boolean prune()\n throws org.json.JSONException, java.io.IOException\n {\n TreeSet<String> to_delete =new TreeSet<String>();\n int current_block_height = server.getCurrentBlockTemplate().getInt(\"height\");\n\n synchronized(open_jobs)\n {\n if (open_jobs.size() == 0) return true;\n\n for(Map.Entry<String, JobInfo> me : open_jobs.entrySet())\n {\n JobInfo ji = me.getValue();\n if (ji.getHeight() + 1 < current_block_height)\n {\n to_delete.add(me.getKey());\n }\n } \n for(String job_id : to_delete)\n {\n open_jobs.remove(job_id);\n }\n\n }\n return false;\n\n }",
"public boolean removeJob(Process p) {\n // Remove the next lines to start your implementation\n\n //Remove process from the queue of unifinished jobs that are cycled back and forth\n //from the CPU\n return this.unfinishedJobs.remove(p);\n /*------------------------------------------------------------*/\n }",
"protected void applyPendingDeletes ()\n {\n while (!m_aDeleteStack.isEmpty ())\n removeMonitoredFile (m_aDeleteStack.pop ());\n }",
"public void deallocate()\n\t{\n\t\t//for(int i = 0; i <= maxsize; i++){\n\t\t//\t notusemap[i].addAll(inusemap[i]);\n\t\t//\t inusemap[i].clear();\n\t\t//}\n\t}",
"public void deleteWerker(Worker w)\n {\n if(aantalWerkers > 0)\n {\n for(int i=0; i<5;i++)\n {\n if(workers[i] == w)\n {\n workers[i] = null;\n }\n }\n w.setInStructure(false);\n aantalWerkers--;\n }\n }",
"public void cleanup(Appendable err) throws IOException {\n\n String[] toRemove = {\".data\", \".properties\", \".script\", \".tmp\", \".log\"};\n\n for (String aToRemove : toRemove) {\n String tmpFile = \"\" + Globals.DBname + aToRemove;\n File f = new File(tmpFile);\n if (f.exists()) {\n\n f.delete();\n err.append(\"Abacus disk clean up: removing \" + tmpFile + \"\\n\");\n\n }\n }\n err.append(\"\\n\");\n }",
"private void clearFiles() {\r\n File file = new File(\"test_files/upload\");\r\n File[] files = file.listFiles();\r\n for (File delFile : files) {\r\n delFile.delete();\r\n }\r\n file = new File(\"test_files/stress.jar\");\r\n file.delete();\r\n }",
"@Test\n public void test01cleanup() throws IOException {\n // when\n Map<String, Job> jobs = jenkins.getJobs();\n for (String jobName: jobs.keySet()) {\n if (!JOB_GENERATOR_JOB_NAME.equals(jobName)) {\n jenkins.deleteJob(jobName);\n }\n }\n jobs = jenkins.getJobs();\n\n // then\n assertThat(jobs.size(), is(1));\n }",
"public void tempcheck(){\r\n \t//clear last data\r\n if(workplace!=null){\r\n \tFile temp = new File(workplace +\"/temp\");\r\n \tif(temp.exists()){\r\n \t\tFile[] dels = temp.listFiles();\r\n \t\tif(dels[0]!=null){\r\n \t\t\tfor(int i=0; i<dels.length; i++){\r\n \t\t\t\tif(dels[i].isFile()){\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}else{\r\n \t\t\t\t\tFile[] delss = dels[i].listFiles();\r\n \t\t\t\t\tif(delss[0]!=null){\r\n \t\t\t\t\t\tfor(int k=0; k<delss.length; k++){\r\n \t\t\t\t\t\t\tdelss[k].delete();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \ttemp.delete();\r\n }\r\n }",
"protected void cleanup(Context context) throws IOException, InterruptedException {\n\t\t\tint count = 99;\n\t\t\twhile(count>=0 && !rankqueue.isEmpty()){\n\t\t\t\tRankNode node = rankqueue.poll();\n\t\t\t\tcontext.write(NullWritable.get(), new Text(node.nodeid + \"``\" + node.pageRank));\n\t\t\t\tcount--;\n\t\t\t}\n\t\t}",
"private static void task03333(int nUMS, SplayTree<Integer> j) {\n\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Deletion in the table...\" );\n\t int count=0;\n\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t{\n\t\t\tif(j.isEmpty() == false)\n\t\t\t{\n\t\t\t\n\t\t\tj.remove(i);\n\t\t\t\n\t\t\t}\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tSystem.out.println(\"Is it empty \" + j.isEmpty());\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t}",
"void unsetRequiredResources();",
"private void freePartitions()\n {\n partitionsNoLongerNeeded.set(null);\n\n lock.writeLock().lock();\n try {\n // Remove out references to partitions to actually free memory\n Arrays.fill(partitions, null);\n lookupSourceSupplier = null;\n closeCachedLookupSources();\n }\n finally {\n lock.writeLock().unlock();\n }\n }",
"private static void cleanAutomationResults() {\n \tLOG.info(\"Deleting unneccessary automation results.\");\n \t\n \t// Stop the graph database because it gets deleted\n \tDBUtil.closeGraph();\n \t\n \t// Remove clustering results\n \tFileUtil.deleteFileOrDirectory(clArgs.clusteringOutDir);\n \t\n \t// Remove graph database\n \tFileUtil.deleteFileOrDirectory(DBUtil.getNeo4jPath());\n }",
"public void purgeCache(EAVLJob job, String file) {\n fss.deleteStageInFile(job, file + EAVLJobConstants.PD_CACHE_SUFFIX);\n }",
"private void deleteTempFiles() {\n\t\tfor (int i = 0; i < prevPrevTotalBuckets; i++) {\n\t\t\ttry {\n\t\t\t\tString filename = DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode + \"_\"\n\t\t\t\t\t\t+ (passNumber - 1) + \"_\" + i;\n\t\t\t\tFile file = new File(filename);\n\t\t\t\tfile.delete();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private static void task03(int nUMS, AVLTree<Integer> h) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(h.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\th.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + h.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}",
"public void deallocateNode(){\n this.processId = NO_PROCESS;\n this.full = false;\n }",
"@Test(timeOut = AbstractTestSupport.DEFAULT_TEST_TIMEOUT, groups = \"1\", enabled = false)\n\t@TestConfiguration(os = TestConfiguration.VM.WINDOWS)\n\tpublic void testCleanWorkDirectory() throws IOException, InterruptedException {\n\n\t\tfinal String buildDir = SGTestHelper.getBuildDir();\n\n\t\tfinal File workDir = new File(buildDir + \"/work/processing-units\");\n\t\tAssert.assertTrue(workDir.exists(), \"work dir does not exist at: \" + workDir);\n\t\tAssert.assertTrue(workDir.isDirectory(), \"work dir is not a directory at: \" + workDir);\n\n\t\t\n\t\tFile[] children = getDirectoriesInWorkDir(workDir);\n\n\t\tAssert.assertTrue(children.length >= 3, \"Expected at-least three service directories in work directory\");\n\t\tif(children.length == 3) {\n\t\t\t// need to install something to verify\n\t\t\tServiceInstaller installer = new ServiceInstaller(this.restUrl, \"empty\");\n\t\t\tinstaller.recipePath(CommandTestUtils.getPath(\"src/main/resources/apps/USM/usm/empty\"));\n\t\t\tinstaller.install();\n\t\t}\n\t\t\n\t\tboolean gsaLocated = this.admin.getGridServiceAgents().waitFor(1, 1, TimeUnit.MINUTES);\n\t\tAssert.assertTrue(gsaLocated, \"Could not find GSA of local cloud\");\n\t\t\n\t\tfinal Set<String> pidsToKill = new HashSet<String>();\n\t\tGridServiceAgent gsa = this.admin.getGridServiceAgents().getAgents()[0];\n\t\tfinal long agentPid = gsa.getVirtualMachine().getDetails().getPid();\n\t\tpidsToKill.add(Long.toString(agentPid));\n\t\tAgentProcessDetails[] processDetails = gsa.getProcessesDetails().getProcessDetails();\n\t\tfor (AgentProcessDetails agentProcessDetails : processDetails) {\n\t\t\tpidsToKill.add(Long.toString(agentProcessDetails.getProcessId()));\n\t\t}\n\t\t\n\t\tLogUtils.log(\"About to kill PIDS: \" + pidsToKill);\n\t\tkillProcessesByIDs(pidsToKill);\n\t\tchildren = getDirectoriesInWorkDir(workDir);\n\t\t\n\t\tAssert.assertTrue(children.length > 3,\n\t\t\t\t\"Expected at-least three directories in work dir, found: \" + Arrays.toString(children));\n\t\t\n\t\tCommandTestUtils.runCloudifyCommandAndWait(\"bootstrap-localcloud\");\n\n\t\tchildren = getDirectoriesInWorkDir(workDir);\n\t\tAssert.assertEquals(children.length, 3,\n\t\t\t\t\"Expected exactly three directories in work directory, got: \" + Arrays.toString(children));\n\n\t}",
"protected void cleanup() {\n synchronized (tokenToDeleteQueue) {\n long now = getCurrentTimeMillis();\n Pair<Long, String> item = tokenToDeleteQueue.peek();\n if (item == null || item.getLeft() > now) {\n return;\n }\n do {\n item = tokenToDeleteQueue.poll();\n if (item == null) {\n return;\n }\n if (item.getLeft() > now) { // put it back since first one isn't timed out yet, stop.\n tokenToDeleteQueue.add(item);\n return;\n }\n store.remove(item.getRight());\n } while (!tokenToDeleteQueue.isEmpty());\n }\n }",
"private void removeFromQueue (Parcel[] packagesAssigned){\n\n }",
"void queueShrunk();",
"void vacuum( String workspaceName, long revision);",
"private void clean() {\n nodesToRemove.clear();\n edgesToRemove.clear();\n }",
"private void cleanupLocal() throws IOException {\n FileSystem lfs = FileSystem.getLocal(new Configuration());\n lfs.delete(new Path(\"build\"), true);\n System.setProperty(\"hadoop.log.dir\", \"logs\");\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tFile dir = new File(\"src/reports\");\n\t\t\t\tfor (File file : dir.listFiles())\n\t\t\t\tif (!file.isDirectory())\n\t\t\t\tfile.delete();\n\t\t\t\t}",
"public void removeFromHashes() {\n getBrowser().getDrbdResHash().remove(getName());\n getBrowser().putDrbdResHash();\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n removeDrbdVolumeFromHashes(dvi);\n }\n }",
"private void flushCache()\n {\n Entry<Integer, String> eldestEntry;\n File oldestFile;\n long eldestFileSize;\n int count = 0;\n\n int MAX_DELETE_FILE = 4;\n int MAX_CACHE_FILE_ALLOW = 1000;\n\n while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n {\n eldestEntry = mLinkedHashMap.entrySet().iterator().next();\n oldestFile = new File(eldestEntry.getValue());\n eldestFileSize = oldestFile.length();\n mLinkedHashMap.remove(eldestEntry.getKey());\n oldestFile.delete();\n cacheSize = mLinkedHashMap.size();\n cacheByteSize -= eldestFileSize;\n count++;\n }// while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n }",
"public void deleteJobDataFiles(Job job) throws IOException {\n\t\tCore.deleteJobFiles(job, httpMethodExecutor);\n\t}",
"public void clearStorage();",
"public void deleteOutfiles(String filename) {\n Runtime runTime = Runtime.getRuntime();\n\n String[] commands = new String[]{MYSQL, mysqlDb, userFlag + mysqlUser, pwdFlag + mysqlPwd,\n executeFlag, sourceCommand + filename};\n\n try {\n Process proc = runTime.exec(commands);\n\n StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), \"ERROR\");\n\n StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), \"OUTPUT\");\n\n errorGobbler.start();\n outputGobbler.start();\n\n try {\n if (proc.waitFor() == 1) {\n logger.error(\"Return code indicates error in deleting the load data outfiles \"\n + \"process\");\n }\n } catch (InterruptedException exception) {\n logger.error(\"Interrupted Exception while running the delete load data outfiles \"\n + \"process\", exception);\n }\n\n } catch (IOException exception) {\n logger.error(\"Attempt to spawn a DBMerge mysql process failed for file: \"\n + filename, exception);\n }\n }",
"private void assignResourcesToJobs\n\t\t(long now)\n\t\tthrows IOException\n\t\t{\n\t\t// List of jobs to be canceled.\n\t\tList<JobInfo> cancelList = new LinkedList<JobInfo>();\n\n\t\t// Decide what to do with each waiting job.\n\t\tIterator<JobInfo> iter = myWaitingJobList.iterator();\n\t\tjobLoop : while (iter.hasNext())\n\t\t\t{\n\t\t\tJobInfo jobinfo = iter.next();\n\n\t\t\t// If the cluster doesn't have enough resources, don't try to\n\t\t\t// reserve any.\n\t\t\tif (! enoughResourcesForJob (jobinfo.Nn, jobinfo.Np, jobinfo.Nt))\n\t\t\t\t{\n\t\t\t\titer.remove();\n\t\t\t\tcancelList.add (jobinfo);\n\t\t\t\tcontinue jobLoop;\n\t\t\t\t}\n\n\t\t\t// Used to decide how many processes for each node.\n\t\t\tint Np_div_Nn = jobinfo.Np / jobinfo.Nn;\n\t\t\tint Np_rem_Nn = jobinfo.Np % jobinfo.Nn;\n\n\t\t\t// Reserve idle nodes for this job until there are no more idle\n\t\t\t// nodes or this job has all the nodes it needs.\n\t\t\tint be = myNextBackendNumber;\n\t\t\tdo\n\t\t\t\t{\n\t\t\t\t// Decide how many processes for this node.\n\t\t\t\tint Nproc = Np_div_Nn;\n\t\t\t\tif (jobinfo.nodeCount < Np_rem_Nn) ++ Nproc;\n\n\t\t\t\t// Reserve this node only if it is idle and it has enough CPUs.\n\t\t\t\tBackendInfo backendinfo = myBackendInfo[be];\n\t\t\t\tif (backendinfo.state == BackendInfo.State.IDLE &&\n\t\t\t\t\t\tbackendinfo.totalCpus >= Nproc)\n\t\t\t\t\t{\n\t\t\t\t\t// Reserve node.\n\t\t\t\t\tbackendinfo.state = BackendInfo.State.RESERVED;\n\t\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\t\tbackendinfo.job = jobinfo;\n\n\t\t\t\t\t// Used to decide how many CPUs for each process.\n\t\t\t\t\tint Nt_div_Nproc = backendinfo.totalCpus / Nproc;\n\t\t\t\t\tint Nt_rem_Nproc = backendinfo.totalCpus % Nproc;\n\n\t\t\t\t\t// Assign Np processes.\n\t\t\t\t\tfor (int i = 0; i < Nproc; ++ i)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t// Decide how many CPUs for this process.\n\t\t\t\t\t\tint Ncpus = jobinfo.Nt;\n\t\t\t\t\t\tif (Ncpus == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNcpus = Nt_div_Nproc;\n\t\t\t\t\t\t\tif (i < Nt_rem_Nproc) ++ Ncpus;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Log information.\n\t\t\t\t\t\tmyLog.log\n\t\t\t\t\t\t\t(now,\n\t\t\t\t\t\t\t \"Job \" + jobinfo.jobnum + \" assigned \" +\n\t\t\t\t\t\t\t backendinfo.name + \", rank=\" + jobinfo.count +\n\t\t\t\t\t\t\t \", CPUs=\" + Ncpus);\n\n\t\t\t\t\t\t// Record information about process.\n\t\t\t\t\t\tjobinfo.backend[jobinfo.count] = backendinfo;\n\t\t\t\t\t\tjobinfo.cpus[jobinfo.count] = Ncpus;\n\t\t\t\t\t\t++ jobinfo.count;\n\n\t\t\t\t\t\t// Inform Job Frontend.\n\t\t\t\t\t\tjobinfo.frontend.assignBackend\n\t\t\t\t\t\t\t(/*theJobScheduler*/ this,\n\t\t\t\t\t\t\t /*name */ backendinfo.name,\n\t\t\t\t\t\t\t /*host */ backendinfo.host,\n\t\t\t\t\t\t\t /*jvm */ backendinfo.jvm,\n\t\t\t\t\t\t\t /*classpath */ backendinfo.classpath,\n\t\t\t\t\t\t\t /*jvmflags */ backendinfo.jvmflags,\n\t\t\t\t\t\t\t /*Nt */ Ncpus);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Assign one node.\n\t\t\t\t\t++ jobinfo.nodeCount;\n\t\t\t\t\t}\n\n\t\t\t\t// Consider next node.\n\t\t\t\tbe = (be + 1) % myBackendCount;\n\t\t\t\t}\n\t\t\twhile (be != myNextBackendNumber && jobinfo.count < jobinfo.Np);\n\t\t\tmyNextBackendNumber = be;\n\n\t\t\t// If this job now has Np processes, start running this job.\n\t\t\tif (jobinfo.count == jobinfo.Np)\n\t\t\t\t{\n\t\t\t\t// Log information.\n\t\t\t\tmyLog.log (now, \"Job \" + jobinfo.jobnum + \" started\");\n\n\t\t\t\t// Mark job as running.\n\t\t\t\titer.remove();\n\t\t\t\tmyRunningJobList.add (jobinfo);\n\t\t\t\tjobinfo.state = JobInfo.State.RUNNING;\n\t\t\t\tjobinfo.stateTime = now;\n\n\t\t\t\t// Mark all the job's nodes as running.\n\t\t\t\tfor (BackendInfo backendinfo : jobinfo.backend)\n\t\t\t\t\t{\n\t\t\t\t\tbackendinfo.state = BackendInfo.State.RUNNING;\n\t\t\t\t\tbackendinfo.stateTime = now;\n\t\t\t\t\t}\n\n\t\t\t\t// If the Job Scheduler is imposing a maximum job time, start\n\t\t\t\t// job timer.\n\t\t\t\tif (myJobTime > 0)\n\t\t\t\t\t{\n\t\t\t\t\tjobinfo.jobTimer.start (myJobTime * 1000L);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// If this job does not yet have Np processes, don't schedule any\n\t\t\t// further jobs.\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tbreak jobLoop;\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Cancel jobs for which there are insufficient resources.\n\t\tfor (JobInfo jobinfo : cancelList)\n\t\t\t{\n\t\t\tdoCancelJobTooFewResources (now, jobinfo);\n\t\t\t}\n\t\t}",
"private static void task3333(int nUMS, SplayTree<Integer> j) {\n\t\t// TODO Auto-generated method stub\n\t\tdouble search_start = 0, search_end = 0;\n\n\t System.out.println(\"SPLAY DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (j.contains(checker)) {\n\t j.remove(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\n\t\t\n\t}",
"protected boolean processSeeksCleared(){return false;}",
"public void deleteStorage() {\n deleteReportDir(reportDir_);\n reportDir_ = null;\n deleteReportDir(leftoverDir_);\n leftoverDir_ = null;\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\texecutorService.execute(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tagentResourceQuotas.remove(agentId);\n\t\t\t\t\t\tagentResourceUsages.remove(agentId);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsynchronized (DefaultResourceAllocator.this) {\n\t\t\t\t\t\t\tfor (QueryCache cache: queryCaches.values())\n\t\t\t\t\t\t\t\tcache.result.remove(agentId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t}",
"public void cleanup()\n {\n CogTool.delayedWorkMgr.doDelayedWork(true);\n }",
"public void deleteCopiedPendingLedgerEntries();",
"public void purgeQueue() {\r\n\t\tfDirtyRegions.clear();\r\n\t}",
"void deleteQueue();",
"public void Clean()\n\t{\n\t\tstorage.clear();\n\t}",
"protected void cleanup() {\n // if the java runtime is holding onto any files in the build dir, we\n // won't be able to delete them, so we need to force a gc here\n System.gc();\n\n if (deleteFilesOnNextBuild) {\n // delete the entire directory and all contents\n // when we know something changed and all objects\n // need to be recompiled, or if the board does not\n // use setting build.dependency\n //Base.removeDir(tempBuildFolder);\n \n // note that we can't remove the builddir itself, otherwise\n // the next time we start up, internal runs using Runner won't\n // work because the build dir won't exist at startup, so the classloader\n // will ignore the fact that that dir is in the CLASSPATH in run.sh\n Base.removeDescendants(tempBuildFolder);\n \n deleteFilesOnNextBuild = false;\n } else {\n // delete only stale source files, from the previously\n // compiled sketch. This allows multiple windows to be\n // used. Keep everything else, which might be reusable\n if (tempBuildFolder.exists()) {\n String files[] = tempBuildFolder.list();\n for (String file : files) {\n if (file.endsWith(\".c\") || file.endsWith(\".cpp\") || file.endsWith(\".s\")) {\n File deleteMe = new File(tempBuildFolder, file);\n if (!deleteMe.delete()) {\n System.err.println(\"Could not delete \" + deleteMe);\n }\n }\n }\n }\n }\n \n // Create a fresh applet folder (needed before preproc is run below)\n //tempBuildFolder.mkdirs();\n }",
"private void reclaimSpace(int space)\r\n/* 269: */ {\r\n/* 270:295 */ assert (space >= 0);\r\n/* 271:296 */ this.availableSharedCapacity.addAndGet(space);\r\n/* 272: */ }",
"public void cleanUp() {\n if(ticker.skipCleanup()) {\n return;\n } \n \n // At this point cleanup is inevitable, so linked list traversal should\n // be performed. \n Entry<K, V> e = segment.head();\n Entry<K, V> end = segment.tail();\n \n int processed = 0;\n long createThreshold = ticker.nextTick() - createTTL;\n long accessThreshold = ticker.nextTick() - accessTTL;\n\n Object removeKey = null;\n while ((e = e.getNext()) != end && processed++ < REMOVE_DEPTH) {\n if (null != removeKey) {\n segment.remove(removeKey);\n removeKey = null;\n }\n\n // both, access and creation thresholds might trigger entry removal \n if (e.getCreationTime() <= createThreshold || e.getAccessTime() <= accessThreshold) {\n removeKey = e.getKey();\n }\n }\n\n if (null != removeKey) {\n segment.remove(removeKey);\n } \n ticker.markCleanup();\n }",
"private static void task033(int nUMS, RedBlackBST<Integer, Integer> i) {\n\t\t\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Deletion in the table...\" );\n\t int count=0;\n\t\tfor( int j = 1; j <= nUMS; j++)\n\t\t{\n\t\t\tif(i.isEmpty() == false)\n\t\t\t{\n\t\t\t\n\t\t\ti.delete(j);\n\t\t\t\n\t\t\t}\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tSystem.out.println(\"Is it empty \" + i.isEmpty());\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\n\t\t\n\t}",
"private static boolean FullRAM(String jobId){\n if(pcb.getProcessSize(jobId) <= RAMSpace()){\n return false;\n }\n else{\n return true;\n }\n }",
"public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}",
"public void ClearUnsentQueue() {\n \t\tjobqueue.clear();\n \t}",
"void smem_clear_result(IdentifierImpl state)\n {\n final SemanticMemoryStateInfo smem_info = smem_info(state);\n while(!smem_info.smem_wmes.isEmpty())\n {\n final Preference pref = smem_info.smem_wmes.remove(); // top()/pop()\n \n if(pref.isInTempMemory())\n {\n recMem.remove_preference_from_tm(pref);\n }\n }\n }",
"private void runWithoutJobId() {\n if (numJobsToDelete.isPresent() && numJobsToDelete.get() <= 0) {\n handleBadRequest(ERROR_NON_POSITIVE_JOBS_TO_DELETE);\n return;\n }\n int defaultedDaysOld = daysOld.orElse(DEFAULT_DAYS_OLD);\n // Only generate the detailed response payload if there aren't too many jobs involved.\n boolean verbose =\n numJobsToDelete.isPresent() && (numJobsToDelete.get() <= DEFAULT_MAX_NUM_JOBS_TO_DELETE);\n StringBuilder payload = new StringBuilder();\n\n // Since findEligibleJobsByJobName returns only a certain number of jobs, we must loop through\n // until we find enough, requesting deletion as we go.\n int numJobsProcessed = 0;\n DateTime cutoffDate = clock.nowUtc().minusDays(defaultedDaysOld);\n Optional<String> cursor = Optional.empty();\n do {\n Optional<Integer> numJobsToRequest =\n Optional.ofNullable(\n numJobsToDelete.isPresent() ? numJobsToDelete.get() - numJobsProcessed : null);\n EligibleJobResults batch =\n mapreduceEntityCleanupUtil.findEligibleJobsByJobName(\n jobName.orElse(null), cutoffDate, numJobsToRequest, force.orElse(false), cursor);\n cursor = batch.cursor();\n // Individual batches can come back empty if none of the returned jobs meet the requirements\n // or if all jobs have been exhausted.\n if (!batch.eligibleJobs().isEmpty()) {\n String payloadChunk = requestDeletion(batch.eligibleJobs(), verbose);\n if (verbose) {\n payload.append(payloadChunk);\n }\n numJobsProcessed += batch.eligibleJobs().size();\n }\n // Stop iterating when all jobs have been exhausted (cursor is absent) or enough have been\n // processed.\n } while (cursor.isPresent()\n && (!numJobsToDelete.isPresent() || (numJobsProcessed < numJobsToDelete.get())));\n\n if (numJobsProcessed == 0) {\n logger.atInfo().log(\n \"No eligible jobs found with name '%s' older than %d days old.\",\n jobName.orElse(\"(any)\"), defaultedDaysOld);\n payload.append(\"No eligible jobs found\");\n } else {\n logger.atInfo().log(\"A total of %d job(s) processed.\", numJobsProcessed);\n payload.append(String.format(\"A total of %d job(s) processed\", numJobsProcessed));\n }\n response.setPayload(payload.toString());\n }",
"public void removeJob(String name, JobInProgress job) {\n Queue<JobInProgress> queue = queues.get(name);\n if (null != queue)\n queue.removeJob(job);\n }",
"private static void deleteTest() throws SailException{\n\n\t\tString dir2 = \"repo-temp\";\n\t\tSail sail2 = new NativeStore(new File(dir2));\n\t\tsail2 = new IndexingSail(sail2, IndexManager.getInstance());\n\t\t\n//\t\tsail.initialize();\n\t\tsail2.initialize();\n\t\t\n//\t\tValueFactory factory = sail2.getValueFactory();\n//\t\tCloseableIteration<? extends Statement, SailException> statements = sail2\n//\t\t\t\t.getConnection().getStatements(null, null, null, false);\n\n\t\tSailConnection connection = sail2.getConnection();\n\n\t\tint cachesize = 1000;\n\t\tint cached = 0;\n\t\tlong count = 0;\n\t\tconnection.removeStatements(null, null, null, null);\n//\t\tconnection.commit();\n\t}",
"public void destory(){\n \n }",
"public void reallocateBuckets() { }",
"private synchronized void freeProcess(long uid) {\n\t\trunningCount--;\n\t\tlogger.debug(\"End process {}, have {} processes still running.\", uid, runningCount);\n\t\tcheckRunningProcesses();\n\t}",
"public void freeMaterials(){\n\t\t//android.util.Log.d(TAG,\"freeMaterials()\");\n\t\tfinal int size = this.materials.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.materials.delete(this.materials.keyAt(index));\n\t\t}\n\t}",
"private void maintain() {\n SoftObject obj;\n int count = 0;\n\n while ((obj = (SoftObject)queue.poll()) != null) {\n count++;\n collection.remove(obj);\n }\n\n if (count != 0) {\n // some temporary debugging fluff\n System.err.println(\"vm reclaimed \" + count + \" objects\");\n }\n }",
"@Override\r\n\tpublic final void purge() {\r\n\t\tthis.members.clear();\r\n\t\tthis.age++;\r\n\t\tthis.gensNoImprovement++;\r\n\t\tthis.spawnsRequired = 0;\r\n\r\n\t}",
"private static void task3(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(t.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tt.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + t.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }",
"public void Kill();",
"private int destroyEvictedPartitions() throws IgniteCheckedException {\n PartitionDestroyQueue destroyQueue = curCpProgress.destroyQueue;\n\n if (destroyQueue.pendingReqs.isEmpty())\n return 0;\n\n List<PartitionDestroyRequest> reqs = null;\n\n for (final PartitionDestroyRequest req : destroyQueue.pendingReqs.values()) {\n if (!req.beginDestroy())\n continue;\n\n final int grpId = req.grpId;\n final int partId = req.partId;\n\n CacheGroupContext grp = cctx.cache().cacheGroup(grpId);\n\n assert grp != null\n : \"Cache group is not initialized [grpId=\" + grpId + \"]\";\n assert grp.offheap() instanceof GridCacheOffheapManager\n : \"Destroying partition files when persistence is off \" + grp.offheap();\n\n final GridCacheOffheapManager offheap = (GridCacheOffheapManager) grp.offheap();\n\n Runnable destroyPartTask = () -> {\n try {\n offheap.destroyPartitionStore(grpId, partId);\n\n req.onDone(null);\n\n if (log.isDebugEnabled())\n log.debug(\"Partition file has destroyed [grpId=\" + grpId + \", partId=\" + partId + \"]\");\n }\n catch (Exception e) {\n req.onDone(new IgniteCheckedException(\n \"Partition file destroy has failed [grpId=\" + grpId + \", partId=\" + partId + \"]\", e));\n }\n };\n\n if (asyncRunner != null) {\n try {\n asyncRunner.execute(destroyPartTask);\n }\n catch (RejectedExecutionException ignore) {\n // Run the task synchronously.\n destroyPartTask.run();\n }\n }\n else\n destroyPartTask.run();\n\n if (reqs == null)\n reqs = new ArrayList<>();\n\n reqs.add(req);\n }\n\n if (reqs != null)\n for (PartitionDestroyRequest req : reqs)\n req.waitCompleted();\n\n destroyQueue.pendingReqs.clear();\n\n return reqs != null ? reqs.size() : 0;\n }",
"public void removeResources() {\n\t\tresources.clear();\n\t}",
"private void killOverdueProcesses() {\r\n \t\tlong testTime = System.currentTimeMillis();\r\n \r\n \t\t// Kill off old ones\r\n\t\tMaximaProcess mp = pool.poll();\r\n \t\twhile (mp != null && mp.isOverdue(testTime)) {\r\n \t\t\tmp.kill();\r\n\t\t\tmp = pool.poll();\r\n \t\t}\r\n \t\tif (mp != null) {\r\n \t\t\tpool.addFirst(mp);\r\n \t\t}\r\n \r\n\t\twhile (!usedPool.isEmpty() && usedPool.get(0).isOverdue(testTime)) {\r\n \t\t\tusedPool.remove(0).close();\r\n \t\t}\r\n \t}",
"protected void deallocate() {\r\n\t\t// create a list of objects ordered by the time of last access\r\n\t\tList<ObjectStatus> timeOrderedObjects = getListOfObjectClassTimeSorted();\r\n\t\twhile (!sizeNormal() && timeOrderedObjects.size() > 0) {\r\n\t\t\t// take the least recently used object and remove it from the list\r\n\t\t\tString currentObjectID = timeOrderedObjects.remove(0).getID();\r\n\t\t\t// kill that object in the ever seen so\r\n\t\t\t// it would be treated as a dead object from now on\r\n\t\t\tkillObject(currentObjectID);\r\n\t\t\tdeallocate(currentObjectID);\r\n\r\n\t\t}\r\n\r\n\t}",
"void deleteChains() {\n\t\tif (!params.isDebug()) {\n\t\t\tfor (File deleteCandidate : toDelete) {\n\t\t\t\tdeleteCandidate.delete();\n\t\t\t\t\n\t\t\t\ttry (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(deleteCandidate.toPath())) {\n\t\t\t\t\tfor (Path path : directoryStream) {\n\t\t\t\t\t\tif (!path.getFileName().toString().endsWith(\"_SCWRLed.pdb\")) {\n\t\t\t\t\t\t\tpath.toFile().delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private static void task333(int nUMS, RedBlackBST<Integer, Integer> i) {\n\t\tdouble search_start = 0, search_end = 0;\n\n\t System.out.println(\"RED BLAST BST DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (i.contains(checker)) {\n\t i.delete(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\n\t\t\n\t}",
"protected static void deleteTrash() {\n\t\tArrays.stream(new File(\".\").listFiles())\n\t\t\t.filter(f -> f.getName().startsWith(\"_tmp.\"))\n\t\t\t.forEach(File::delete);\n\t}",
"private void m50958c() {\n while (!this.f36886a.isEmpty()) {\n C8667b peek = this.f36886a.peek();\n if (peek != null) {\n if (peek.mo54373e() || this.f36886a.size() > 6) {\n AbstractC8508c.m50239c(\"remove Expired task\");\n this.f36886a.remove(peek);\n } else {\n return;\n }\n }\n }\n }",
"public static void kill() {\n Iterator<Recipe> recipes = tj.getServer().recipeIterator();\r\n Recipe recipe;\r\n\r\n while (recipes.hasNext()) {\r\n recipe = recipes.next();\r\n\r\n if (recipe != null && customItems.containsValue(recipe.getResult()))\r\n recipes.remove();\r\n }\r\n\r\n tj = null;\r\n messages = null;\r\n playerDataFolder = null;\r\n players = null;\r\n customItems = null;\r\n }",
"private void cleanUpRunningProcessInstances() {\n List<ProcessInstance> runningInstances = processEngine.getRuntimeService().createProcessInstanceQuery().processDefinitionKey(PROCESS_DEFINITION_KEY).list();\n runningInstances.addAll(processEngine.getRuntimeService().createProcessInstanceQuery().processDefinitionKey(INCIDENT_PROCESS_DEFINITION).list());\n for (ProcessInstance processInstance : runningInstances) {\n processEngine.getRuntimeService().deleteProcessInstance(processInstance.getId(), \"deleted to have a clean environment for Arquillian\");\n }\n }",
"public void freeSpace(long space)\n {\n _spaceMonitor.freeSpace(space);\n }",
"public static void cleanUp() {\n\t\tHashDecay.stopAll();\n\t\tSystem.gc();\n\t}",
"private void clearTasks(){\n ArrayList<Item> iteratorList = new ArrayList<Item>(items);\n Iterator<Item> it = iteratorList.iterator();\n while(it.hasNext()){\n Item i = it.next();\n if (!i.isCategory()){\n Task t = (Task) i;\n if(t.finished){\n \tDirectIO.RemoveItem(t);\n adapter.remove(i);\n }\n }\n }\n }",
"public void remove(){\n\t\tqueueArray[1][0] = null;\n\t\tqueueArray[1][1] = null;\n\t}",
"public void terminateJob(STAXJob job)\n {\n\n TreeMap subJobs = (TreeMap)job.getData(\"subJobMap\");\n\n if (subJobs != null)\n {\n synchronized (subJobs)\n {\n subJobs.remove(String.valueOf(job.getJobNumber()));\n }\n }\n }"
] | [
"0.64199436",
"0.62654036",
"0.60693586",
"0.6027427",
"0.6015852",
"0.591459",
"0.5912258",
"0.5885632",
"0.58541995",
"0.5844955",
"0.58102655",
"0.57816786",
"0.5770546",
"0.57326627",
"0.5715188",
"0.57098126",
"0.5681323",
"0.56777287",
"0.5673245",
"0.5663424",
"0.5662199",
"0.56610954",
"0.5649852",
"0.5633687",
"0.5622901",
"0.56119066",
"0.55978954",
"0.5591244",
"0.5590787",
"0.55838317",
"0.55836225",
"0.5543691",
"0.55436444",
"0.55433875",
"0.5524132",
"0.5499243",
"0.5497679",
"0.5487515",
"0.54805696",
"0.5463136",
"0.5454601",
"0.54464674",
"0.54451126",
"0.54427767",
"0.54409665",
"0.54378194",
"0.54356956",
"0.54116154",
"0.5406648",
"0.5403979",
"0.53980243",
"0.5393112",
"0.53918034",
"0.5365874",
"0.53657657",
"0.53638715",
"0.5363635",
"0.53629315",
"0.536103",
"0.53580886",
"0.53519803",
"0.53517866",
"0.53499967",
"0.53459615",
"0.5334393",
"0.53255975",
"0.5315561",
"0.5312991",
"0.5308667",
"0.5307018",
"0.5291379",
"0.5291031",
"0.5291022",
"0.52799064",
"0.52762544",
"0.52749705",
"0.5270179",
"0.52648395",
"0.52572024",
"0.5256577",
"0.5255638",
"0.5255163",
"0.52322906",
"0.52296025",
"0.5228256",
"0.5222549",
"0.522223",
"0.52203774",
"0.52130234",
"0.5212669",
"0.52095973",
"0.5203953",
"0.52031106",
"0.52009636",
"0.5195758",
"0.519304",
"0.51903594",
"0.51713204",
"0.516863",
"0.51685494"
] | 0.56424856 | 23 |
checking if an interrupt happened | public Boolean IsInterrupt() {
Random r = new Random();
int k = r.nextInt(100);
//10%
if (k <= 10) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isInterruptible();",
"public boolean isInterruptible() {\n/* 31 */ return true;\n/* */ }",
"private void checkForIOInterrupt() {\r\n\t\t// If there is no interrupt to process, do nothing\r\n\t\tif (m_IC.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Retreive the interrupt data\r\n\t\tint[] intData = m_IC.getData();\r\n\t\t\r\n\t\t// Report the data if in verbose mode\r\n\t\tif (m_verbose) {\r\n\t\t\tSystem.out.println(\"CPU received interrupt: type=\" + intData[0]\r\n\t\t\t\t\t+ \" dev=\" + intData[1] + \" addr=\" + intData[2] + \" data=\"\r\n\t\t\t\t\t+ intData[3]);\r\n\t\t}\r\n\t\t\r\n\t\t// Dispatch the interrupt to the OS\r\n\t\tswitch (intData[0]) {\r\n\t\t\tcase InterruptController.INT_READ_DONE:\r\n\t\t\t\tm_TH.interruptIOReadComplete(intData[1], intData[2], intData[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase InterruptController.INT_WRITE_DONE:\r\n\t\t\t\tm_TH.interruptIOWriteComplete(intData[1], intData[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"CPU ERROR: Illegal Interrupt Received.\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}",
"public void checkInterruption() throws InterruptedException ;",
"public boolean isInterruptable() {\n\t\treturn interrupt;\n\t}",
"public boolean isInterrupted();",
"@Override\n public boolean isInterruptible() {\n return true;\n }",
"@Override\r\n\tpublic boolean hasPendingAsyncInterrupt() {\r\n\t\treturn this.hasFailedAccessAttempt && this.tapeIo != null;\r\n\t}",
"public boolean wasInterrupted() {\n int theMsg = 0;\n Object object = this.msgSync;\n synchronized (object) {\n theMsg = this.msg;\n }\n return theMsg == 2 || theMsg == 3;\n }",
"public boolean checkAndReturn() {\n // Check if any thread has been interrupted\n if (interrupted.get()) {\n // If so, interrupt this thread\n interrupt();\n return true;\n }\n // Check if this thread has been interrupted\n if (Thread.currentThread().isInterrupted()) {\n // If so, interrupt other threads\n interrupted.set(true);\n return true;\n }\n return false;\n }",
"public boolean isInterruptOnCancel()\r\n\t{\r\n\t\treturn interruptOnCancel;\r\n\t}",
"protected abstract void HandleInterrupts();",
"public void interrupt();",
"public boolean IOInterrupt(Process p1) {\n if ((p1.getIOTime()) > (2 * p1.getCPUTime())) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isAbortable();",
"public abstract void interrupt();",
"public final boolean wasInterrupted() {\n Object localValue = this.value;\n return (localValue instanceof Cancellation) && ((Cancellation) localValue).wasInterrupted;\n }",
"public final boolean wasInterrupted() {\n Object obj = this.value;\n return (obj instanceof zzc) && ((zzc) obj).wasInterrupted;\n }",
"@Override\r\n\tpublic void onInterrupt() {\n\t\t\r\n\t}",
"public boolean partOfInterruptible() {\r\n\t\tif (parent != null)\r\n\t\t\tif (parent instanceof ActivityFlow)\r\n\t\t\t\treturn ((ActivityFlow)parent).isInterruptible();\r\n\t\treturn false;\r\n\t}",
"@Override\n public void onInterrupt() {\n }",
"public boolean hasDetectedFault(int i) throws IllegalArgumentException{\n if(i< 0 || i >=getFaultsMatrix().length)\n throw new IllegalArgumentException(\"ith element not present in fault matrix\");\n return (getFaultsMatrix()[i] == 1);\n }",
"boolean hasIsErasing();",
"boolean hasSignal();",
"public boolean interupted(Creature Opponent){\n if (Opponent.selected_manuever.type.equals(\"Attack\") && Opponent.maneuver_pass && this.interruptable) { interupt_count++; return true; }\n else { return false; }\n }",
"public int ExternalInterruptCount() { return EXTERNAL_INTERRUPTS; }",
"public boolean interrupt() throws Exception{\n if (processorTask.isError()) return true; // if error was detected on prev phase - skip execution\n\n if ( asyncFilters == null || asyncFilters.size() == 0 ) {\n execute();\n return false;\n } else {\n asyncHandler.addToInterruptedQueue(asyncProcessorTask); \n return invokeFilters();\n }\n }",
"public void interrupt() {\n\t\tinterrupted = true;\n\t}",
"boolean handleFault(FaultEvent e)\n\t{\n\t\t// lookup what we need to do\n\t\tboolean requestResume = false;\n\t\tString name = e.name();\n\t\tboolean stop = true;\n\t\tboolean print = true;\n\t\ttry\n\t\t{\n\t\t\tprint = m_faultTable.is(name, \"print\"); //$NON-NLS-1$\n\t\t\tstop = m_faultTable.is(name, \"stop\"); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\tif (Trace.error)\n\t\t\t{\n\t\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\t\targs.put(\"faultName\", name); //$NON-NLS-1$\n\t\t\t\tTrace.trace(getLocalizationManager().getLocalizedTextString(\"faultHasNoTableEntry\", args)); //$NON-NLS-1$\n\t\t\t\tnpe.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif (e instanceof ExceptionFault)\n\t\t{\n\t\t\tExceptionFault ef = (ExceptionFault) e;\n\t\t\tValue thrownValue = ef.getThrownValue();\n\t\t\tif (thrownValue != null)\n\t\t\t{\n\t\t\t\tif (!ef.willExceptionBeCaught())\n\t\t\t\t{\n\t\t\t\t\tstop = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tstop = false;\n\n\t\t\t\t\tString typeName = thrownValue.getTypeName();\n\t\t\t\t\tint at = typeName.indexOf('@');\n\t\t\t\t\tif (at != -1)\n\t\t\t\t\t\ttypeName = typeName.substring(0, at);\n\n\t\t\t\t\tfor (int i=0; i<catchpointCount(); ++i)\n\t\t\t\t\t{\n\t\t\t\t\t\tCatchAction c = catchpointAt(i);\n\t\t\t\t\t\tString typeToCatch = c.getTypeToCatch();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (typeToCatch == null || getSession().evalIs(thrownValue, typeToCatch))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (PlayerDebugException 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\tstop = true;\n\t\t\t\t\t\t} catch (PlayerFaultException 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\tstop = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!stop)\n\t\t\t\t\t\tprint = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// should we stop?\n\t\tif (!stop)\n\t\t\trequestResume = true;\n\n\t\tif (print)\n\t\t\tdumpFaultLine(e);\n\n\t\treturn requestResume;\n\t}",
"boolean isMonitoringTerminated();",
"public abstract void isCancel(long ms);",
"protected boolean checkServoCommandThread(){\r\n try {\r\n if(!isOpen()) open();\r\n return true;\r\n } catch (HardwareInterfaceException ex) {\r\n log.warning(ex.toString());\r\n return false;\r\n }\r\n }",
"public boolean isSetIstop() {\n return __isset_bit_vector.get(__ISTOP_ISSET_ID);\n }",
"boolean isSignal();",
"@java.lang.Override\n public boolean hasAbort() {\n return stepInfoCase_ == 14;\n }",
"public void interrupt() {\r\n ServerLogger.log(this.myID + \" interrupt()\");\r\n this.run = false;\r\n //super.interrupt(); //To change body of overridden methods use File | Settings | File Templates.\r\n }",
"boolean isStopped();",
"public void testUnsetOfInterruptStatus(boolean strict) throws InterruptedException {\n DetectingAndInterruptingRunnable detector = new DetectingAndInterruptingRunnable();\n\n newRunningRepeater(strict, new RepeatableRunnable(detector),1);\n\n //give the runnable some time to runWork.\n giveOthersAChance();\n\n //this test could fail because the interrupt status could be set from the outside.\n //But till so far I haven't had any problems. \n detector.assertNoInterruptFound();\n }",
"public final void serviceIRQorNMI() {\r\n // NMI requested?\r\n if (this.isNMILow && !this.lastNMIState) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffa);\r\n // IRQ requested?\r\n } else if (this.isIRQLow) {\r\n // is the interrupt allowed?\r\n if (!this.interruptFlag) {\r\n // we need seven cycles just like for a BRK operation\r\n this.cycles += 7;\r\n // execute the interrupt routine\r\n serviceInterrupt(0xfffe);\r\n }\r\n // we no longer have to check for interrupts as all NMI/IRQ requests have been serviced\r\n this.isCheckInterrupt = false;\r\n }\r\n // remember last NMI state in order to check on next\r\n this.lastNMIState = this.isNMILow;\r\n }",
"@java.lang.Override\n public boolean hasAbort() {\n return stepInfoCase_ == 14;\n }",
"private static void checkAndThrowInterruptedException()\n throws InterruptedException {\n if (Thread.currentThread().interrupted()) {\n throw new InterruptedException(\"Timed out before Hive call was made. \"\n + \"Your callTimeout might be set too low or Hive calls are \"\n + \"taking too long.\");\n }\n }",
"boolean isCancelled();",
"public boolean hasExceptions();",
"protected abstract void doExternalInterrupt(int number);",
"public boolean isATMReadyTOUse() throws java.lang.InterruptedException;",
"public void testUnsetOfInterruptStatus_relaxed() throws InterruptedException {\n testUnsetOfInterruptStatus(false);\n }",
"public boolean isStopped();",
"private static boolean hasErrFound() {\r\n\t\tsynchronized (workerLock) {\r\n\t\t\treturn (errFoundByThread != -1);\r\n\t\t}\r\n\t}",
"private static boolean hasErrFound(final int id) {\r\n\t\tsynchronized (workerLock) {\r\n\t\t\treturn (errFoundByThread == id);\r\n\t\t}\r\n\t}",
"public boolean isPerformingCompletion() {\n/* 545 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void interrupted() {\n\n }",
"boolean isShutdown();",
"private void ignoringInterrupts( ThrowingAction<InterruptedException> action )\n {\n try\n {\n action.apply();\n }\n catch ( InterruptedException e )\n {\n log.warn( \"Unexpected interrupt\", e );\n }\n }",
"boolean hasExitStatus();",
"boolean hasException();",
"@Override\n\tprotected void onInterruption() throws SimControlException {\n\t\t\n\t}",
"protected void interrupted() {\n\t\tL.ogInterrupt(this);\n\t}",
"public boolean isOn() throws Exception;",
"boolean isStop();",
"boolean isTerminated();",
"boolean isPendingToRead();",
"@Override\n\t\tpublic void interrupt() {\n\t\t\t\n\t\t\t///why is this method not called?????\n\t\t\tSystem.out.println(\"here\");\n\t\t\tsuper.interrupt();\n\t\t}",
"public static boolean isFault(Message message) {\n return message != null\n && message.getExchange() != null\n && (message == message.getExchange().getInFaultMessage()\n || message == message.getExchange().getOutFaultMessage());\n }",
"protected void aTimerInterrupt()\r\n {\r\n \t\tSystem.out.println(\"|aTimerInterrupt| : time out.\");\r\n \t\tstartTimer(0,RxmtInterval);\r\n \t\tSystem.out.println(\"|aTimerInterrupt| : timer is started\");\r\n \t\t\r\n \t\tfor(int i=window_base% LimitSeqNo;i<next_seq_num % LimitSeqNo;i++)\r\n \t\t{\r\n \t\t\tif(packetBufferAry[i]!=null)\r\n \t\t\t{\r\n \t\t\t\tcount_retransmissions_by_A++;\r\n \t\t\t\tSystem.out.println(\"|aTimerInterrupt| : packet with seq number:\"+Integer.toString(packetBufferAry[i].getSeqnum())+\" is resent.\");\r\n \t\t\t\ttoLayer3(0,packetBufferAry[i]);\r\n \t\t\t}\r\n \t\t}\r\n \t\t/*\r\n \t\tif(state_sender == STATE_WAIT_FOR_ACK_OR_NAK_0)\r\n \t\t{\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: time up for STATE_WAIT_FOR_ACK_OR_NAK_0\");\r\n \t\t\tresendPacket(packetBuffer);\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: start sender timer\");\r\n \t\t\t\r\n \t\t}\r\n \t\telse if(state_sender == STATE_WAIT_FOR_ACK_OR_NAK_1)\r\n \t\t{\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: time up for STATE_WAIT_FOR_ACK_OR_NAK_1\");\r\n \t\t\tresendPacket(packetBuffer);\r\n \t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\tSystem.out.println(\"aTimerInterrupt: start sender timer\");\r\n \t\t}\r\n \t\t*/\r\n }",
"private static boolean isCancelled0(Object result)\r\n/* 59: */ {\r\n/* 60: 96 */ return ((result instanceof CauseHolder)) && ((((CauseHolder)result).cause instanceof CancellationException));\r\n/* 61: */ }",
"@Override\n public void run() {\n System.out.println(\"ffff===\"+ Thread.currentThread().isInterrupted());\n while (true) {\n try{\n Thread.sleep(1);\n System.out.println(\"ccc===\"+ Thread.currentThread().isInterrupted());\n if (Thread.interrupted()) {\n System.out.println(\"ddd===\"+ Thread.currentThread().isInterrupted());\n System.err.println(\"线程中断标志位为true\");\n return;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n }",
"boolean getIsErasing();",
"public boolean isCancelled();",
"public boolean isCancelled();",
"public boolean isCancelled();",
"public void CHECK_IRQ_LINES() {\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_en :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n if (konami.irq_state[KONAMI_IRQ_LINE] != CLEAR_LINE || konami.irq_state[KONAMI_FIRQ_LINE] != CLEAR_LINE) {\n konami.int_state &= ~KONAMI_SYNC; /* clear SYNC flag */\n\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_0 :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n }\n if (konami.irq_state[KONAMI_FIRQ_LINE] != CLEAR_LINE && ((konami.cc & CC_IF) == 0)) {\n /* fast IRQ */\n /* HJB 990225: state already saved by CWAI? */\n if ((konami.int_state & KONAMI_CWAI) != 0) {\n konami.int_state &= ~KONAMI_CWAI; /* clear CWAI */\n\n konami.extra_cycles += 7;\t\t /* subtract +7 cycles */\n\n } else {\n konami.cc &= ~CC_E;\t\t\t\t/* save 'short' state */\n\n PUSHWORD(konami.pc);\n PUSHBYTE(konami.cc);\n konami.extra_cycles += 10;\t/* subtract +10 cycles */\n\n }\n konami.cc |= CC_IF | CC_II;\t\t\t/* inhibit FIRQ and IRQ */\n\n konami.pc = RM16(0xfff6);\n change_pc16(konami.pc);\n konami.irq_callback.handler(KONAMI_FIRQ_LINE);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_a :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n } else if (konami.irq_state[KONAMI_IRQ_LINE] != CLEAR_LINE && ((konami.cc & CC_II) == 0)) {\n /* standard IRQ */\n /* HJB 990225: state already saved by CWAI? */\n if ((konami.int_state & KONAMI_CWAI) != 0) {\n konami.int_state &= ~KONAMI_CWAI; /* clear CWAI flag */\n\n konami.extra_cycles += 7;\t\t /* subtract +7 cycles */\n\n } else {\n konami.cc |= CC_E; \t\t\t\t/* save entire state */\n\n PUSHWORD(konami.pc);\n PUSHWORD(konami.u);\n PUSHWORD(konami.y);\n PUSHWORD(konami.x);\n PUSHBYTE(konami.dp);\n PUSHBYTE(B());\n PUSHBYTE(A());\n PUSHBYTE(konami.cc);\n konami.extra_cycles += 19;\t /* subtract +19 cycles */\n\n }\n konami.cc |= CC_II;\t\t\t\t\t/* inhibit IRQ */\n\n konami.pc = RM16(0xfff8);\n change_pc16(konami.pc);\n konami.irq_callback.handler(KONAMI_IRQ_LINE);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d irq_lines_b :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n }\n\n }",
"boolean hasEvent();",
"public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}",
"public boolean isRunning() {\n/* 190 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public synchronized void interrupt() {\n closed = true;\n }",
"public static void main(String[] args) throws Exception {\n Thread thread =\n new Thread(\n new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n System.out.println(\"ffff===\"+ Thread.currentThread().isInterrupted());\n while (true) {\n try{\n Thread.sleep(1);\n System.out.println(\"ccc===\"+ Thread.currentThread().isInterrupted());\n if (Thread.interrupted()) {\n System.out.println(\"ddd===\"+ Thread.currentThread().isInterrupted());\n System.err.println(\"线程中断标志位为true\");\n return;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n }\n });\n System.out.println(\"aaaa==\" + thread.isInterrupted());\n thread.start();\n Thread.sleep(2);\n thread.interrupt();\n Thread.sleep(2000);\n System.out.println(\"bbbb==\" + thread.isInterrupted());\n }",
"public native int cStopInterrupt();",
"synchronized void setInterrupted() {\n stopped = true;\n inputGiven = true;\n notifyAll();\n }",
"static boolean stop_instruction(String instruction){\n\t\tString code = instruction.split(\" \")[0];\n\t\tswitch(code){\n\t\tcase \"HLT\":\n\t\tcase \"RST\":\n\t\tcase \"RET\":\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean hasErr();",
"protected boolean reallyCancel() throws Exception { return true; }",
"public abstract void isRestart(long ms);",
"@Override\n public void interrupt() {\n super.interrupt(); //To change body of generated methods, choose Tools | Templates.\n }",
"public boolean isStopped()\r\n\t{\r\n\t\treturn currentstate == TIMER_STOP;\r\n\t}",
"public boolean isSuppressed();",
"@Test(timeout = 1000)\n public void alreadyInterrupted() throws Exception {\n Thread.currentThread().interrupt();\n assertThrows(InterruptedException.class, () -> lock.lockInterruptibly());\n Thread.currentThread().interrupt();\n assertThrows(InterruptedException.class, () -> lock.tryLock(0, TimeUnit.SECONDS));\n }",
"boolean hasAck();",
"public boolean isDismissable() {\n/* 1278 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"protected void interrupted() {\r\n\t }",
"boolean isShutdownGraceful();",
"public boolean isSuspended();",
"private void checkForCompletion()\n\t\t\t{\n\t\t\t\tcompletionflag = true;\n\t\t\t\tfor (j = 0; j < 9; ++j)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (cpuflag[j] == false && flag[j] == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcompletionflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t}",
"public void markInterrupted() {\n\t\tenvironmentStatus = State.INTERRUPTED.name();\n\t\terrorMessage = \"setup was interrupted\";\n\t\tthis.statusCode = StatusCode.Interrupted.code;\n\t}",
"@Override\r\n\tpublic void consumeNextAsyncInterrupt() {\r\n\t\tthis.hasFailedAccessAttempt = false;\r\n\t}",
"boolean hasUnReceived();",
"boolean hasErrorTime();",
"protected void interrupted() {\n \tlogger.info(\"Interrupting AutoMoveLiftUp Command, encoder inches = {}\", Robot.liftSubsystem.readEncoderInInches());\n \t\n }",
"public boolean takeBugreportOnInvocationEnded();",
"public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}",
"boolean hasModbusProc();"
] | [
"0.7755758",
"0.74252075",
"0.7270287",
"0.713674",
"0.7063796",
"0.69149303",
"0.67383176",
"0.6707289",
"0.6589893",
"0.64622927",
"0.64368296",
"0.64314973",
"0.63853323",
"0.6339417",
"0.6262144",
"0.61953336",
"0.61063975",
"0.60757995",
"0.59577745",
"0.5939045",
"0.5909349",
"0.5894128",
"0.5869736",
"0.582349",
"0.58116966",
"0.5779936",
"0.5776635",
"0.576448",
"0.5747558",
"0.5720259",
"0.5701572",
"0.56642896",
"0.5634926",
"0.56114596",
"0.56043434",
"0.5593491",
"0.5589284",
"0.55603266",
"0.5556422",
"0.5549401",
"0.55361944",
"0.5525869",
"0.5508012",
"0.54950744",
"0.5478426",
"0.5472922",
"0.54611385",
"0.54587024",
"0.54127485",
"0.5396764",
"0.53918576",
"0.53893054",
"0.538351",
"0.53761375",
"0.5354775",
"0.5346372",
"0.53412694",
"0.53359467",
"0.5335233",
"0.53324133",
"0.5329627",
"0.53240216",
"0.5316098",
"0.5306038",
"0.5296873",
"0.52810174",
"0.52718544",
"0.5264835",
"0.5264835",
"0.5264835",
"0.52602565",
"0.52599746",
"0.52591974",
"0.52583444",
"0.52566814",
"0.5256652",
"0.52436566",
"0.52422345",
"0.52359253",
"0.5232802",
"0.52189237",
"0.5198879",
"0.5198325",
"0.51962805",
"0.5195586",
"0.51905215",
"0.51814395",
"0.5176479",
"0.51738495",
"0.5173424",
"0.5168483",
"0.5167546",
"0.51599586",
"0.515601",
"0.5154652",
"0.5150982",
"0.5139842",
"0.51383394",
"0.51326084",
"0.51214886"
] | 0.6843923 | 6 |
checking if an IO request happened | public Boolean IsIOrequest() {
Random r = new Random();
int k = r.nextInt(100);
//20%
if (k <= 20) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void checkOpen() throws IOException {\n if (this.stopRequested.get() || this.abortRequested) {\n throw new IOException(\"Server not running\");\n }\n if (!fsOk) {\n throw new IOException(\"File system not available\");\n }\n }",
"protected void checkForFirstRequest() throws IOException {\n if(firstRequest) {\n while (!connected || (serveResponse = in.readLine()).isEmpty());\n firstRequest = false;\n }\n }",
"boolean hasClientRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRequest();",
"boolean hasRead();",
"private void checkForIOInterrupt() {\r\n\t\t// If there is no interrupt to process, do nothing\r\n\t\tif (m_IC.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Retreive the interrupt data\r\n\t\tint[] intData = m_IC.getData();\r\n\t\t\r\n\t\t// Report the data if in verbose mode\r\n\t\tif (m_verbose) {\r\n\t\t\tSystem.out.println(\"CPU received interrupt: type=\" + intData[0]\r\n\t\t\t\t\t+ \" dev=\" + intData[1] + \" addr=\" + intData[2] + \" data=\"\r\n\t\t\t\t\t+ intData[3]);\r\n\t\t}\r\n\t\t\r\n\t\t// Dispatch the interrupt to the OS\r\n\t\tswitch (intData[0]) {\r\n\t\t\tcase InterruptController.INT_READ_DONE:\r\n\t\t\t\tm_TH.interruptIOReadComplete(intData[1], intData[2], intData[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase InterruptController.INT_WRITE_DONE:\r\n\t\t\t\tm_TH.interruptIOWriteComplete(intData[1], intData[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"CPU ERROR: Illegal Interrupt Received.\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}",
"@java.lang.Override\n public boolean hasHttpRequest() {\n return httpRequest_ != null;\n }",
"@Override\r\n\tpublic boolean hasPendingAsyncInterrupt() {\r\n\t\treturn this.hasFailedAccessAttempt && this.tapeIo != null;\r\n\t}",
"boolean hasInitialResponse();",
"boolean isPendingToRead();",
"boolean hasSystemRequest();",
"private boolean responseAvailable() {\n return (responseBody != null) || (responseStream != null);\n }",
"boolean hasDownloadRequest();",
"private static boolean testNotFound() {\r\n\t\t// use ExecutorService to manage threads\r\n\t\tExecutorService executor = Executors.newFixedThreadPool(1);\r\n\t\t\r\n\t\tlogger.finest(\"sending request\");\r\n\t\tURL url = urlList.get(0);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tURL notFoundURL = new URL(url.getProtocol(), url.getHost(), url.getPort(), url.getFile() + \"random\");\r\n\t\t\tHttpClient client = new HttpClient(notFoundURL);\r\n\t\t\texecutor.execute(client);\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tlogger.severe(\"problem formatting URL\");\r\n\t\t}\r\n\t\t\r\n\t\t// wait for test to finish\r\n\t\tlogger.finest(\"waiting for request to complete...\");\r\n\t\texecutor.shutdown(); \r\n\t\twhile (!executor.isTerminated())\r\n\t\t\tThread.yield(); // return the control to system\r\n\t\tlogger.finest(\"not found request completed\");\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"private boolean processRequest(Connection conn)\n {\n String line = null;\n URL url;\n String path;\n\n /*\n * Read the request line.\n */\n try {\n line = DataInputStreamUtil.readLineIntr(conn.getInputStream());\n }\n catch(InterruptedException e) {\n logError(\"Cannot read request line: connection timeout\");\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST, \"connection timeout\");\n return false;\n }\n catch(IOException e) {\n logError(\"Cannot read request line: I/O error\"\n + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.SRVCE_NOT_AVAILABLE,\n \"I/O error\" + getExceptionMessage(e));\n return false;\n }\n\n /*\n * Parse the request line, and read the request headers.\n */\n try {\n _req.read(line);\n }\n catch(MalformedURLException e) {\n logError(\"Malformed URI in HTTP request\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Invalid URI in HTTP request\"\n + getExceptionMessage(e));\n return false;\n }\n catch(MalformedHTTPReqException e) {\n logError(\"Malformed HTTP request\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Invalid HTTP request\" + getExceptionMessage(e));\n return false;\n }\n catch(InterruptedException e) {\n logError(\"Cannot read request: connection timeout\");\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST, \"connection timeout\");\n return false;\n }\n catch(IOException e) {\n logError(\"Cannot read request: I/O error\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.SRVCE_NOT_AVAILABLE,\n \"I/O error\" + getExceptionMessage(e));\n return false;\n }\n\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"Request: '\" + _req.getReqLine() + \"'\");\n }\n\n /*\n * Process the request based on the request-URI type. The asterisk\n * option (RFC2068, sec. 5.1.2) is not supported.\n */\n if ( (path = _req.getPath()) != null) {\n return redirectClient(path);\n }\n else {\n if ( (url = _req.getURL()) != null) {\n // The redirector is being accessed as a proxy.\n\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Cannot retrieve URL \" + url\n + \"\\n<P>\\n\"\n + \"Invalid URL: unexpected access protocol \"\n + \"(e.g., `http://')\\n\");\n }\n else {\n logError(\"unsupported request-URI: \" + _req.getReqLine());\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"unsupported request-URI\");\n }\n return false;\n }\n }",
"public HttpResponse isReady(final HttpRequest request){\n\t\treturn new SimpleHttpResponse(\"\" + request.session().isReadyForDriver());\t\t\n }",
"public boolean isCausedByNetworkIssue() {\n return getCause() instanceof java.io.IOException;\n }",
"boolean hasSystemResponse();",
"boolean hasSendReading();",
"public boolean hasRequest() {\n return request_ != null;\n }",
"public boolean hasRequest() {\n return request_ != null;\n }",
"public boolean hasRequest() {\n return request_ != null;\n }",
"private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\treturn true;\n \t}\n\n \treturn false;\n \t}",
"protected synchronized boolean isSockOpen(){\n\t\ttry{\n\t\t\tif(out.checkError()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n\t\t\tpublic boolean hasError(ClientHttpResponse response) throws IOException {\n\t\t\t\treturn false;\n\t\t\t}",
"boolean hasUploadResponse();",
"boolean hasRetrieveFileResponse();",
"boolean hasUploadRequest();",
"boolean hasDownloadResponse();",
"private static boolean isNetworkProblem(Object error) {\r\n\t\treturn (error instanceof IOException);\r\n\t}",
"boolean isBadCommunication();",
"private boolean readResponse() throws IOException {\n replyHeaders.responseCode = socketInput.read();\n int packetLength = socketInput.read();\n packetLength = (packetLength << 8) + socketInput.read();\n\n if (packetLength > OBEXConstants.MAX_PACKET_SIZE_INT) {\n if (exceptionMessage != null) {\n abort();\n }\n throw new IOException(\"Received a packet that was too big\");\n }\n\n if (packetLength > BASE_PACKET_LENGTH) {\n int dataLength = packetLength - BASE_PACKET_LENGTH;\n byte[] data = new byte[dataLength];\n int readLength = socketInput.read(data);\n if (readLength != dataLength) {\n throw new IOException(\"Received a packet without data as decalred length\");\n }\n byte[] body = OBEXHelper.updateHeaderSet(replyHeaders, data);\n\n if (body != null) {\n privateInput.writeBytes(body, 1);\n\n /*\n * Determine if a body (0x48) header or an end of body (0x49)\n * was received. If we received an end of body and\n * a response code of OBEX_HTTP_OK, then the operation should\n * end.\n */\n if ((body[0] == 0x49) && (replyHeaders.responseCode == ResponseCodes.OBEX_HTTP_OK)) {\n return false;\n }\n }\n }\n\n if (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isHttpOK(){\n return getStatusCode() == HttpURLConnection.HTTP_OK;\n }",
"public boolean must_read_server(int offset, int byte_count, Runner runner) throws IOException, BadPathnameException, BadRangeException {\n boolean must = !cached(offset, byte_count) || (!local_fresh(runner.freshness_interval) && !server_fresh(runner));\n if (Constants.DEBUG) {\n if (must) {\n System.out.println (\"(log) Must read from server\");\n }\n else {\n System.out.println (\"(log) No need to read from server\");\n }\n }\n return must;\n }",
"abstract void request() throws IOException;",
"private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }",
"boolean isUsedForReading();",
"private void readHTTPRequest(InputStream is) {\n BufferedReader requestReader = null;\n \n while (true) {\n try {\n requestReader = new BufferedReader(new InputStreamReader(is));\n \n while (!requestReader.ready()) Thread.sleep(1);\n String line = requestReader.readLine();\n System.err.println(\"Request line: (\"+line+\")\");\n \n \n/* Get the complete path from the root directory to the file\n* If no file requested: display default content\n*/\n String rootPath = toCompletePath(line);\n if(noFileRequested) {\n HTMLcontent = \"<html><h1>Welcome to \" + serverName + \"</h1><body>\\n\" +\n \"<p>You may request a file in the URL path.</p>\\n\" +\n \"</body></html>\\n\";\n break;\n }//end\n \n /* Check if file exists\n * If not: change the status and exit\n * If so: read the contents of the file\n */\n File fileRequested = new File(rootPath);\n if(!fileRequested.exists()) {\nstreamStatus = \"HTTP/1.1 404 NOT FOUND\\n\";\nHTMLcontent = \"<html><h1>404 Error.</h1><body>\\n\" +\n \"<p>Page not found.</p>\\n\" +\n \"</body></html>\\n\";\n break;\n }\n else {\n HTMLcontent = readFile(rootPath);\n break;\n }//end\n \n \n } catch (Exception e) {\n System.err.println(\"Request error: \" + e);\n break;\n //close BufferedReader if initialized\n }//end catch\n \n }//end while loop\n}",
"public boolean checkVaild() throws IOException;",
"private boolean checkForAjax(HttpServletRequest request, HttpServletResponse response) {\n if (!\"XMLHttpRequest\".equals(request.getHeader(\"X-Requested-With\"))) {\n log.log(\n Level.SEVERE, \"Received unexpected non-XMLHttpRequest command. Possible CSRF attack.\");\n try {\n response.sendError(HttpServletResponse.SC_FORBIDDEN,\n \"Received unexpected non-XMLHttpRequest command.\");\n } catch (IOException ioe) {\n throw new RuntimeException(\"Encountered error writing error\", ioe);\n }\n return false;\n }\n return true;\n }",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean hasResponse();",
"boolean service(Request request, Response response) throws IOException;",
"public abstract boolean inReady() throws JVMIOException;",
"private synchronized void startProcessing() throws IOException {\n\n if (privateInput == null) {\n privateInput = new PrivateInputStream(this);\n }\n boolean more = true;\n\n if (isGet) {\n if (!isDone) {\n replyHeaders.responseCode = OBEXConstants.OBEX_HTTP_CONTINUE;\n while ((more) && (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE)) {\n more = sendRequest(0x03);\n }\n\n if (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE) {\n parent.sendRequest(0x83, null, replyHeaders, privateInput);\n }\n if (replyHeaders.responseCode != OBEXConstants.OBEX_HTTP_CONTINUE) {\n isDone = true;\n }\n }\n } else {\n\n if (!isDone) {\n replyHeaders.responseCode = OBEXConstants.OBEX_HTTP_CONTINUE;\n while ((more) && (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE)) {\n more = sendRequest(0x02);\n\n }\n }\n\n if (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE) {\n parent.sendRequest(0x82, null, replyHeaders, privateInput);\n }\n\n if (replyHeaders.responseCode != OBEXConstants.OBEX_HTTP_CONTINUE) {\n isDone = true;\n }\n }\n }",
"boolean hasIosAppDataStream();",
"@Override\n public boolean isopen( )\n {\n return logfile != null && out != null;\n }",
"public boolean test(final ClientContext context) {\n return context.readBytes != -1;\n }",
"private void validateConnection() throws IOException {\n ensureOpen();\n\n // to sure only one privateInput object exist.\n if (privateInput == null) {\n startProcessing();\n }\n }",
"public boolean isReady() throws java.io.IOException {\n\n return br.ready();\n }",
"public boolean canServeRequest() {\n return outputWSService.isRunnningAndDbInstancesAvailable(false);\n }",
"boolean hasForRead();",
"private boolean checkForTaskQueue(HttpServletRequest request, HttpServletResponse response) {\n if (request.getHeader(\"X-AppEngine-QueueName\") == null) {\n log.log(Level.SEVERE, \"Received unexpected non-task queue request. Possible CSRF attack.\");\n try {\n response.sendError(\n HttpServletResponse.SC_FORBIDDEN, \"Received unexpected non-task queue request.\");\n } catch (IOException ioe) {\n throw new RuntimeException(\"Encountered error writing error\", ioe);\n }\n return false;\n }\n return true;\n }",
"boolean hasChunkRequest();",
"public boolean hasRequest() {\n return requestBuilder_ != null || request_ != null;\n }",
"public boolean hasRequest() {\n return requestBuilder_ != null || request_ != null;\n }",
"public boolean isRequest(){\n return false;\n }",
"@Test\n\tpublic void checkFalseTest() throws IOException {\n\t\tHttpClient httpClient = new HttpClient(10, 10);\n\t\tassertEquals(false, httpClient.check(\"http://localhost:5000/hs\"));\n\t}",
"public boolean isConsumable(HttpServletRequest request);",
"@Override\n public boolean isReadRequest() {\n return false;\n }",
"public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"public boolean hasHttpRequest() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean hasRequest (String name)\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"hasRequest\", true);\n $out.write_string (name);\n $in = _invoke ($out);\n boolean $result = $in.read_boolean ();\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return hasRequest (name );\n } finally {\n _releaseReply ($in);\n }\n }",
"protected final void assertResponseRead () {\n\t\t\tif(!didRead) throw new ProviderException (\"Response has not been read yet! -- whose bad?\");\n\t\t}",
"boolean isReady();",
"boolean isReady();",
"boolean isReady();",
"boolean canRequestChunk();",
"public boolean hasRetrieveFileResponse() {\n return msgCase_ == 11;\n }",
"boolean hasTrickEndedResponse();",
"private void checkForShutdown() {\n\t\tif (0==(0xFFF&iteration++)) {\n\t\t\t///////we have no work and we are not blocked.\n\t\t\t//must check for shutdown case\n\t\t\tint i = requestInputs.length;\n\t\t\twhile (--i>=0) {\n\t\t\t\tPipe<HTTPLogRequestSchema> p = requestInputs[i];\n\t\t\t\tif (!Pipe.peekMsg(p,-1)) {\n\t\t\t\t\treturn;//this one was not shut down yet\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tint j = responseInputs.length;\n\t\t\twhile (--j>=0) {\n\t\t\t\tPipe<HTTPLogResponseSchema> p = responseInputs[j];\n\t\t\t\tif (!Pipe.peekMsg(p,-1)) {\n\t\t\t\t\treturn;//this one was not shut down yet\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t//all the pipes have now requested shutdown\n\t\t\tif (Pipe.hasRoomForWrite(output)) {\n\t\t\t\tPipe.publishEOF(output); //tell downstream to shutdown\n\t\t\t\trequestShutdown(); //shutdown myself\t\t\t\n\t\t\t} else {\n\t\t\t\treturn;//try again later\n\t\t\t}\n\t\t}\n\t}",
"private void handleRequest(Request request) throws IOException{\n switch (request){\n case NEXTODD:\n case NEXTEVEN:\n new LocalThread(this, request, nextOddEven).start();\n break;\n case NEXTPRIME:\n case NEXTEVENFIB:\n case NEXTLARGERRAND:\n new NetworkThread(this, userID, serverIPAddress, request).start();\n break;\n default:\n break;\n }\n }",
"private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}",
"protected final boolean canModifyBuffer() {\n return (_ioContext != null);\n }",
"@Override\n public boolean hasRemaining() throws IOException\n {\n return randomAccessRead.available() > 0;\n }",
"private void checkRequest(Request req) throws MethodNotAllowed, NotFound {\n if (!req.getHeader(\"Method\").equals(\"GET\") ||\n !req.getHeader(\"Version\").equals(\"HTTP/1.1\")) {\n throw new MethodNotAllowed();\n }\n if (req.getHeader(\"Path\").endsWith(\"/\")) {\n throw new NotFound();\n }\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n log.trace(\">doGet()\");\n check(request, response);\n log.trace(\"<doGet()\");\n }",
"void blocked(HttpServletRequest request, HttpServletResponse response) throws IOException;",
"public boolean hasRequest() {\n return instance.hasRequest();\n }",
"public static boolean isOK() {return isOK;}",
"public boolean hasRequest() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public boolean IOInterrupt(Process p1) {\n if ((p1.getIOTime()) > (2 * p1.getCPUTime())) {\n return true;\n } else {\n return false;\n }\n }",
"void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }"
] | [
"0.6673379",
"0.6547962",
"0.6324346",
"0.6157006",
"0.6157006",
"0.6157006",
"0.6157006",
"0.6157006",
"0.6157006",
"0.6157006",
"0.6157006",
"0.6157006",
"0.6157006",
"0.61237186",
"0.6031521",
"0.5931946",
"0.59264845",
"0.59252954",
"0.59206694",
"0.585966",
"0.5850759",
"0.5838331",
"0.58373183",
"0.57781774",
"0.57688016",
"0.5762121",
"0.5740474",
"0.5732131",
"0.5711663",
"0.5711663",
"0.5711663",
"0.56879705",
"0.568496",
"0.56734335",
"0.5655979",
"0.56553674",
"0.56309205",
"0.56167126",
"0.5611288",
"0.56072044",
"0.55995166",
"0.55779934",
"0.55689734",
"0.556138",
"0.5557475",
"0.55554533",
"0.55517125",
"0.5550636",
"0.55237657",
"0.5516054",
"0.5516054",
"0.5516054",
"0.5516054",
"0.5516054",
"0.5516054",
"0.5516054",
"0.5516054",
"0.5516054",
"0.55153",
"0.5513737",
"0.55095303",
"0.5501138",
"0.54794544",
"0.5472315",
"0.54372114",
"0.54306644",
"0.5414576",
"0.5413872",
"0.54137313",
"0.5410059",
"0.53962904",
"0.53962904",
"0.5393624",
"0.5393413",
"0.538821",
"0.53786206",
"0.53785986",
"0.5377803",
"0.53628236",
"0.5362157",
"0.5351998",
"0.53501725",
"0.53501725",
"0.53501725",
"0.5344624",
"0.53422064",
"0.53284633",
"0.5325114",
"0.53186095",
"0.5317731",
"0.53114676",
"0.53075826",
"0.5301512",
"0.52926487",
"0.5290471",
"0.52893",
"0.5284727",
"0.5284012",
"0.5277192",
"0.5265258"
] | 0.7236481 | 0 |
checking if IO terminated happened | public Boolean IsIOtrminate() {
Random r = new Random();
int k = r.nextInt(100);
//20%
if (k <= 20) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void checkOpen() throws IOException {\n if (this.stopRequested.get() || this.abortRequested) {\n throw new IOException(\"Server not running\");\n }\n if (!fsOk) {\n throw new IOException(\"File system not available\");\n }\n }",
"boolean isTerminated();",
"boolean isFileEnded();",
"public boolean closeRead() throws Exception;",
"private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }",
"public boolean finished() throws IOException {\n // Default implementation returns true.\n return true;\n }",
"public boolean isReady() throws java.io.IOException {\n\n return br.ready();\n }",
"public boolean endOfStream()\n {\n return false;\n }",
"boolean isMonitoringTerminated();",
"boolean isEOF() \t\t\tthrows IOException;",
"public boolean isDone(){\r\n\t\tif(worker.getState()==Thread.State.TERMINATED) return true;\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean hasPendingAsyncInterrupt() {\r\n\t\treturn this.hasFailedAccessAttempt && this.tapeIo != null;\r\n\t}",
"private void checkForShutdown() {\n\t\tif (0==(0xFFF&iteration++)) {\n\t\t\t///////we have no work and we are not blocked.\n\t\t\t//must check for shutdown case\n\t\t\tint i = requestInputs.length;\n\t\t\twhile (--i>=0) {\n\t\t\t\tPipe<HTTPLogRequestSchema> p = requestInputs[i];\n\t\t\t\tif (!Pipe.peekMsg(p,-1)) {\n\t\t\t\t\treturn;//this one was not shut down yet\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tint j = responseInputs.length;\n\t\t\twhile (--j>=0) {\n\t\t\t\tPipe<HTTPLogResponseSchema> p = responseInputs[j];\n\t\t\t\tif (!Pipe.peekMsg(p,-1)) {\n\t\t\t\t\treturn;//this one was not shut down yet\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t//all the pipes have now requested shutdown\n\t\t\tif (Pipe.hasRoomForWrite(output)) {\n\t\t\t\tPipe.publishEOF(output); //tell downstream to shutdown\n\t\t\t\trequestShutdown(); //shutdown myself\t\t\t\n\t\t\t} else {\n\t\t\t\treturn;//try again later\n\t\t\t}\n\t\t}\n\t}",
"boolean isIsClosable();",
"public abstract boolean inReady() throws JVMIOException;",
"@DISPID(1610940417) //= 0x60050001. The runtime will prefer the VTID if present\n @VTID(23)\n boolean atEndOfStream();",
"public boolean isTerminated() {\n \n \t\tfinal Thread executingThread = this.environment.getExecutingThread();\n \t\tif (executingThread.getState() == Thread.State.TERMINATED) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}",
"private void isOpen() throws IOException {\r\n if(fd<0) {\r\n throw new IOException(\"Watchdog is not open yet\");\r\n }\r\n }",
"boolean hasRead();",
"protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }",
"boolean quit() throws IOException {\n Protocol protocol = this;\n synchronized (protocol) {\n boolean bl;\n try {\n bl = this.simpleCommand((String)\"QUIT\").ok;\n }\n catch (Throwable throwable) {\n try {\n this.socket.close();\n throw throwable;\n }\n finally {\n this.socket = null;\n this.input = null;\n this.output = null;\n }\n }\n try {\n this.socket.close();\n return bl;\n }\n finally {\n this.socket = null;\n this.input = null;\n this.output = null;\n }\n }\n }",
"public void endRead() throws ThingsException;",
"public void tryTerminate() {\n if (wip.decrementAndGet() != 0) {\n return;\n }\n if (queue.isEmpty()) {\n completableSubscriber.onCompleted();\n } else {\n completableSubscriber.onError(CompletableOnSubscribeMerge.collectErrors(queue));\n }\n }",
"private void checkIfClosed(int i) throws IOException {\n if (i == -1) {\n throw new IOException();\n }\n }",
"public boolean IOInterrupt(Process p1) {\n if ((p1.getIOTime()) > (2 * p1.getCPUTime())) {\n return true;\n } else {\n return false;\n }\n }",
"@Override\n public boolean hasRemaining() throws IOException\n {\n return randomAccessRead.available() > 0;\n }",
"private boolean isHealthy() {\n if (!fsOk) {\n // File system problem\n return false;\n }\n // Verify that all threads are alive\n if (!(leases.isAlive() && compactSplitThread.isAlive() &&\n cacheFlusher.isAlive() && logRoller.isAlive() &&\n workerThread.isAlive())) {\n // One or more threads are no longer alive - shut down\n stop();\n return false;\n }\n return true;\n }",
"private void checkForIOInterrupt() {\r\n\t\t// If there is no interrupt to process, do nothing\r\n\t\tif (m_IC.isEmpty()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Retreive the interrupt data\r\n\t\tint[] intData = m_IC.getData();\r\n\t\t\r\n\t\t// Report the data if in verbose mode\r\n\t\tif (m_verbose) {\r\n\t\t\tSystem.out.println(\"CPU received interrupt: type=\" + intData[0]\r\n\t\t\t\t\t+ \" dev=\" + intData[1] + \" addr=\" + intData[2] + \" data=\"\r\n\t\t\t\t\t+ intData[3]);\r\n\t\t}\r\n\t\t\r\n\t\t// Dispatch the interrupt to the OS\r\n\t\tswitch (intData[0]) {\r\n\t\t\tcase InterruptController.INT_READ_DONE:\r\n\t\t\t\tm_TH.interruptIOReadComplete(intData[1], intData[2], intData[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase InterruptController.INT_WRITE_DONE:\r\n\t\t\t\tm_TH.interruptIOWriteComplete(intData[1], intData[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"CPU ERROR: Illegal Interrupt Received.\");\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}",
"public boolean isDone();",
"public boolean isDone();",
"@Override\n\tpublic boolean tryAgainOnEOF()\n\t{\n\t\treturn false;\n\t}",
"@Override\n public boolean isopen( )\n {\n return logfile != null && out != null;\n }",
"protected synchronized boolean isSockOpen(){\n\t\ttry{\n\t\t\tif(out.checkError()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isInterruptible();",
"void waitToWrite();",
"public void ensureNotDone() throws IOException {\n if (isDone) {\n throw new IOException(\"Operation has completed\");\n }\n }",
"boolean fileEnd();",
"@Basic\r\n\t@Raw\r\n\tpublic boolean isTerminated(){\r\n\t\treturn isTerminated;\r\n\t}",
"protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }",
"public synchronized boolean \n ready() \n throws PipeException \n {\n if (!connected) {\n throw new PipeException(\"Pipe not connected\");\n } else if (closedByReader) {\n throw new PipeException(\"Pipe closed\");\n } else if (writeSide != null && !writeSide.isAlive()\n\t && !closedByWriter && (in < 0)) {\n throw new PipeException(\"Write end dead\");\n }\n if (in < 0) {\n return false;\n } else {\n return true;\n }\n }",
"@Basic @Raw\n public boolean isTerminated(){\n \treturn this.isTerminated;\n }",
"protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }",
"protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }",
"boolean terminateTailing();",
"private static boolean hasErrFound() {\r\n\t\tsynchronized (workerLock) {\r\n\t\t\treturn (errFoundByThread != -1);\r\n\t\t}\r\n\t}",
"protected boolean checkServoCommandThread(){\r\n try {\r\n if(!isOpen()) open();\r\n return true;\r\n } catch (HardwareInterfaceException ex) {\r\n log.warning(ex.toString());\r\n return false;\r\n }\r\n }",
"protected void cleanExit() throws IOException, InterruptedException {\n if (!socket.isClosed()) {\n serverInput.close();\n clientOutput.close();\n socket.close();\n if (pingThread.isAlive())\n pingThread.join();\n } else {\n view.showError(\"Match terminated due to server disconnection\");\n }\n }",
"private boolean waitForAcknowledgement(InputStream input) throws IOException {\r\n byte[] ack = new byte[1];\r\n int result = input.read(ack);\r\n return result == 1;\r\n }",
"protected void finalizeSystemErr() {}",
"boolean isShutdownGraceful();",
"public void terminate() {\n this.terminated = true;\n executor.interrupt();\n this.handler = null;\n this.out = null;\n this.in = null;\n this.logger = null;\n this.buffer = null;\n }",
"private boolean checkOpen(boolean recordException) {\n/* 650 */ if (!isOpen()) {\n/* 651 */ if (recordException) {\n/* 652 */ recordException(new ClosedChannelException());\n/* */ }\n/* 654 */ return false;\n/* */ } \n/* */ \n/* 657 */ return true;\n/* */ }",
"public boolean hasExited()\n {\n try\n {\n proc.exitValue();\n return true;\n }\n catch(IllegalThreadStateException ex)\n {\n return false;\n }\n }",
"public boolean checkVaild() throws IOException;",
"boolean isDone();",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn isTimedOut();\r\n\t}",
"boolean isOpened() throws Exception;",
"boolean hasExitStatus();",
"public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}",
"@Test\n public void testReadLoopClosedConn() {\n try (ConnectionImpl c =\n new ConnectionFactory().createConnection(new TCPConnectionFactoryMock())) {\n c.close();\n BufferedInputStream br = mock(BufferedInputStream.class);\n c.setInputStream(br);\n assertEquals(br, c.getInputStream());\n doThrow(new IOException(\"readLoop() should already have terminated\")).when(br)\n .read(any(byte[].class), any(int.class), any(int.class));\n assertTrue(c.isClosed());\n c.readLoop();\n } catch (IOException | TimeoutException e) {\n e.printStackTrace();\n fail(e.getMessage());\n }\n }",
"protected boolean isFinished() {\r\n return isTimedOut();\r\n }",
"@Override\n protected boolean isFinished() {\n return Robot.collector.isOpen();\n }",
"@Override\n public void flush() throws IOException {\n FileDescriptor myFd = fd;\n if (myFd == null) throw new IOException(\"socket closed\");\n\n // Loop until the output buffer is empty.\n Int32Ref pending = new Int32Ref(0);\n while (true) {\n try {\n // See linux/net/unix/af_unix.c\n Os.ioctlInt(myFd, OsConstants.TIOCOUTQ, pending);\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n\n if (pending.value <= 0) {\n // The output buffer is empty.\n break;\n }\n\n try {\n Thread.sleep(10);\n } catch (InterruptedException ie) {\n break;\n }\n }\n }",
"protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }",
"public void terminate() {\n terminated = true;\n }",
"public abstract boolean shouldEnd();",
"public boolean isOpen()\r\n\t{\r\n\t return (fd != null);\r\n\t}",
"protected boolean closeOnReadError(Throwable cause) {\n/* 606 */ if (cause instanceof SocketException) {\n/* 607 */ return false;\n/* */ }\n/* 609 */ return super.closeOnReadError(cause);\n/* */ }",
"public boolean isStillProcessing() {\r\n\tif(logger.isDebugEnabled())\r\n\t\tlogger.debug(\"BytesnotReadChangedCount is: \" + bytesReadNotChangedCount);\r\n\tif (bytesReadNotChangedCount > 3) {\r\n\t //Abort processing\r\n\t return false;\r\n\t} else {\r\n\t return true;\r\n\t}\r\n }",
"public boolean isDone() { return false; }",
"private boolean readResponse() throws IOException {\n replyHeaders.responseCode = socketInput.read();\n int packetLength = socketInput.read();\n packetLength = (packetLength << 8) + socketInput.read();\n\n if (packetLength > OBEXConstants.MAX_PACKET_SIZE_INT) {\n if (exceptionMessage != null) {\n abort();\n }\n throw new IOException(\"Received a packet that was too big\");\n }\n\n if (packetLength > BASE_PACKET_LENGTH) {\n int dataLength = packetLength - BASE_PACKET_LENGTH;\n byte[] data = new byte[dataLength];\n int readLength = socketInput.read(data);\n if (readLength != dataLength) {\n throw new IOException(\"Received a packet without data as decalred length\");\n }\n byte[] body = OBEXHelper.updateHeaderSet(replyHeaders, data);\n\n if (body != null) {\n privateInput.writeBytes(body, 1);\n\n /*\n * Determine if a body (0x48) header or an end of body (0x49)\n * was received. If we received an end of body and\n * a response code of OBEX_HTTP_OK, then the operation should\n * end.\n */\n if ((body[0] == 0x49) && (replyHeaders.responseCode == ResponseCodes.OBEX_HTTP_OK)) {\n return false;\n }\n }\n }\n\n if (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isTerminated() {\r\n\t\treturn fTerminated;\r\n\t}",
"private void closeOutput() throws Exception \n { Close the fifo file...\n //\n data.fifoStream.close();\n data.fifoStream=null;\n \n // wait for the INSERT statement to finish and check for any\n // error and/or warning...\n // \n data.sqlRunner.join();\n SqlRunner sqlRunner = data.sqlRunner;\n data.sqlRunner = null;\n sqlRunner.checkExcn();\n \n //wait for UNIX/Linux Process to be finished\n data.sqlProcess.waitFor();\n \n data.sqlOutputStream.close();\n data.sqlOutputStream=null;\n }",
"public boolean isDone() { return true; }",
"boolean getFileErr();",
"void cancelEof() {\n\t\tthis.eofSeen = false;\n\t}",
"boolean isPendingToRead();",
"boolean isFlush();",
"private int exitOk() {\r\n\t\tthis.updateUnitStatus();\r\n\t\tthis.eventLogger.logLine(\" => DEVICE_END\");\r\n\t\treturn iDeviceStatus.OK | iDeviceStatus.DEVICE_END;\r\n\t}",
"protected boolean isFinished() {\n\t\treturn isTimedOut();\n\t}",
"protected boolean isFinished() {\n return isTimedOut();\n }",
"public boolean ready() {\n try {\n return in.available() > 0;\n } catch (IOException x) {\n return false;\n }\n }",
"public boolean checkpoint() {\n\t\ttry {\n\t\t\toutputStream.flush();\n\t\t} catch (IOException e) {\n\t\t\tif (RTS_COMMON.Option.VERBOSE)\n\t\t\t\te.printStackTrace();\n\t\t\treturn (false);\n\t\t}\n\t\treturn (true);\n\t}",
"public void finalize() {\n\t\ttry {\n\t\t\tif (!socket.isClosed()) { \n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\tLOG.info(\"finalizedSanityCheckFailed\", ex);\n\t\t}\n\t}",
"public boolean\tisClosed();",
"boolean isUsedForReading();",
"@Override\n public boolean isInterruptible() {\n return true;\n }",
"protected void exit() throws IOException {\r\n\t\tstop();\r\n\t\tkeepRunning = false;\r\n\t}",
"public boolean isAbortable();",
"private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}",
"@Override\n protected boolean closeOnReadError(Throwable cause) {\n if (cause instanceof SocketException) {\n return false;\n }\n return super.closeOnReadError(cause);\n }",
"public boolean isEnd() {\n\t\t\treturn this == END_STREAM;\n\t\t}",
"public boolean wasInterrupted() {\n int theMsg = 0;\n Object object = this.msgSync;\n synchronized (object) {\n theMsg = this.msg;\n }\n return theMsg == 2 || theMsg == 3;\n }",
"public boolean atEOF()\r\n\t{\r\n\t\treturn (thisc == EOF);\r\n\t}",
"private boolean logout() {\r\n\t\t// Create exit.\r\n\t\tCMPPTerminate exit = new CMPPTerminate();\r\n\t\t// Set sequence.\r\n\t\texit.sequence = nextSequence();\r\n\r\n\t\ttry {\r\n\t\t\t// Write packet.\r\n\t\t\tsingleCmppObject.getConnection().writePacket(exit);\r\n\t\t\t// Read packet.\r\n\t\t\tCMPPPacket cmpp = (CMPPPacket) singleCmppObject.getConnection()\r\n\t\t\t\t\t.readPacket();\r\n\t\t\t// Check result.\r\n\t\t\tif (cmpp == null) {\r\n\t\t\t\tUtil.log.error(\"fail to read packet !\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// Check command.\r\n\t\t\tif (cmpp.command == CMPPCommandID.TERMINATE) {\r\n\t\t\t\t// Create response.\r\n\t\t\t\tCMPPTerminateResponse response = new CMPPTerminateResponse(\r\n\t\t\t\t\t\tcmpp.sequence);\r\n\t\t\t\t// Write response.\r\n\t\t\t\tsingleCmppObject.getConnection().writePacket(response);\r\n\t\t\t\t// Log event.\r\n\t\t\t\tUtil.log.info(\"exit request was received !\");\r\n\t\t\t} else if (cmpp.command == CMPPCommandID.TERMINATE_RESPONSE) {\r\n\t\t\t\t// Log event.\r\n\t\t\t\tif (LogRequests.isRequested(EventID.CMPP_PACKET\r\n\t\t\t\t\t\t| EventID.INFORMATION))\r\n\t\t\t\t\tUtil.log.info(\"exit response was received !\");\r\n\t\t\t} else {\r\n\t\t\t\t// Log event.\r\n\t\t\t\tif (LogRequests.isRequested(EventID.CMPP_PACKET\r\n\t\t\t\t\t\t| EventID.EXCEPTION))\r\n\t\t\t\t\tUtil.log.info(\"invalid exit response packet !\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// Set authenticated.\r\n\t\t\tsingleCmppObject.setAuthenticated(false);\r\n\t\t\t// Return true.\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (LogRequests.isRequested(EventID.CMPP_PACKET | EventID.EXCEPTION)) {\r\n\t\t\t\tUtil.log.error(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Return false.\r\n\t\treturn false;\r\n\t}",
"public synchronized void abort() throws IOException {\n ensureOpen();\n // need check again .\n //\tif(isDone) {\n //\t throw new IOException(\"Operation has already ended\");\n //\t}\n\n //no compatible with sun-ri\n if ((isDone) && (replyHeaders.responseCode != OBEXConstants.OBEX_HTTP_CONTINUE)) {\n throw new IOException(\"Operation has already ended\");\n }\n\n exceptionMessage = \"Operation aborted\";\n if ((!isDone) && (replyHeaders.responseCode == OBEXConstants.OBEX_HTTP_CONTINUE)) {\n isDone = true;\n /*\n * Since we are not sending any headers or returning any headers then\n * we just need to write and read the same bytes\n */\n parent.sendRequest(0xFF, null, replyHeaders, null);\n\n if (replyHeaders.responseCode != ResponseCodes.OBEX_HTTP_OK) {\n throw new IOException(\"Invalid response code from server\");\n }\n\n exceptionMessage = null;\n }\n\n close();\n }",
"public boolean isTerminated() {\n lock.lock();\n try {\n if (state == State.RUNNING) {\n return false;\n }\n\n for (SerialExecutor executor : serialExecutorMap.values()) {\n if (!executor.isEmpty()) {\n return false;\n }\n }\n return executor.isTerminated();\n } finally {\n lock.unlock();\n }\n }",
"protected boolean isFinished()\n {\n return timer.get() > driveDuration;\n }",
"public boolean read() throws IOException\n\t{\n\t\treturn this.read(this.socket);\n\t}",
"@Override\n public final boolean close() {\n if(this.connectThread != null) this.connectThread.close();\n this.connectThread = null;\n this.disconnectFromServer();\n if(this.receiveThread != null) this.receiveThread.waitExited();\n this.receiveThread = null;\n this.dos = null;\n this.dis = null;\n return true;\n }",
"protected void onEndOfStream()\n {\n synchronized (f_aBuffSingleInbound)\n {\n synchronized (f_aBuffSingleOutbound)\n {\n if (f_engine.getSession().isValid())\n {\n try\n {\n f_engine.closeInbound();\n closeOutbound(false);\n }\n catch (SSLException e)\n {\n // mimicking SSLSocket\n }\n catch (IOException ignored)\n {\n // won't occur\n }\n }\n }\n }\n }"
] | [
"0.64848506",
"0.6411939",
"0.6358648",
"0.6003718",
"0.59872824",
"0.5948427",
"0.5939527",
"0.58241093",
"0.5768767",
"0.5766752",
"0.57411325",
"0.57375294",
"0.57299125",
"0.5722212",
"0.57151383",
"0.5709597",
"0.5689567",
"0.5683109",
"0.5682535",
"0.56573105",
"0.56466144",
"0.563582",
"0.56079465",
"0.5596958",
"0.5568184",
"0.5560421",
"0.55441386",
"0.55400187",
"0.552176",
"0.552176",
"0.55169296",
"0.5503058",
"0.55007035",
"0.5498119",
"0.54824454",
"0.54811525",
"0.54686797",
"0.54675204",
"0.5465916",
"0.5456302",
"0.54557556",
"0.5451087",
"0.5427854",
"0.5426039",
"0.54213285",
"0.5418877",
"0.5415601",
"0.53962386",
"0.539462",
"0.5394416",
"0.5393147",
"0.5389024",
"0.5386828",
"0.53824115",
"0.5380158",
"0.5374948",
"0.5371427",
"0.5371066",
"0.53683674",
"0.5359461",
"0.53544587",
"0.53519404",
"0.53468657",
"0.5346252",
"0.5337048",
"0.53368336",
"0.5330269",
"0.5323227",
"0.5319252",
"0.53101575",
"0.5307183",
"0.5300611",
"0.52986145",
"0.5297382",
"0.5295825",
"0.52901936",
"0.5289216",
"0.52776605",
"0.5269829",
"0.5257251",
"0.5252173",
"0.5252077",
"0.5251644",
"0.5241527",
"0.5240182",
"0.52216107",
"0.52200943",
"0.5219299",
"0.5216861",
"0.5211307",
"0.52062064",
"0.5204684",
"0.5196967",
"0.519575",
"0.5193318",
"0.51856637",
"0.51838744",
"0.5182609",
"0.51802033",
"0.516736",
"0.5166795"
] | 0.0 | -1 |
checking if the job terminated normally happened | public Boolean IsNormally() {
Random r = new Random();
int k = r.nextInt(100);
//5%
if (k <= 5) {
normally++;
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isTerminated();",
"boolean isMonitoringTerminated();",
"boolean isDone(long number) throws NoSuchJobException;",
"protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }",
"public boolean killJob(Job job) {\n\t\tProcess process = jobProcesses.get(job);\n\t\tif (process == null) { \n\t\t\tlogger.info(\"Attempt to kill unknown job (already finished?): \"\n\t\t\t\t+ job);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tprocess.exitValue();\n\t\t\tlogger.info(\"Didn't kill already finished job \" + job);\n\t\t\tjobProcesses.remove(job);\n\t\t\treturn true;\n\t\t} catch (IllegalThreadStateException ex) {\n\t\t\tlogger.debug(\"Attempting to kill \" + job);\n\t\t\tprocess.destroy();\n\t\t}\n\t\t\n\t\t// Did it die?\n\t\ttry {\n\t\t\tlogger.info(\"Killed \" + job);\n\t\t\tprocess.exitValue();\n\t\t\tjobProcesses.remove(job);\n\t\t\treturn true;\n\t\t} catch (IllegalThreadStateException ex) {\n\t\t\tlogger.warn(\"Could not kill job \" + job);\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n public boolean onStopJob(JobParameters job) {\n return true;\n }",
"public boolean isTerminated() {\n \n \t\tfinal Thread executingThread = this.environment.getExecutingThread();\n \t\tif (executingThread.getState() == Thread.State.TERMINATED) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}",
"public boolean isTerminated() {\n lock.lock();\n try {\n if (state == State.RUNNING) {\n return false;\n }\n\n for (SerialExecutor executor : serialExecutorMap.values()) {\n if (!executor.isEmpty()) {\n return false;\n }\n }\n return executor.isTerminated();\n } finally {\n lock.unlock();\n }\n }",
"public boolean isDone(){\r\n\t\tif(worker.getState()==Thread.State.TERMINATED) return true;\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean isJobRunning() {\n\t\treturn false;\n\t}",
"boolean isShutdownGraceful();",
"if(false==adhocTicket.hasExited()){\n System.out.println(\"hasExit() is passed\");\n }",
"@Override\n public boolean onStopJob(JobParameters job) {\n Log.d(LOG_TAG, \"Sync job stopped\");\n return true;\n }",
"@Override\n\tpublic boolean onJobError(ApiJob job) {\n\t\treturn false;\n\t}",
"@Override\n public boolean onStopJob(JobParameters params) {\n return false;\n }",
"@Override\n public boolean canBeTerminatedNow() {\n logger.debug(\"OifitsExplorerGui.finish() handler called.\");\n\n // Can't exit if a job is running\n if (IRModelManager.getInstance().getIRModel().isRunning()) {\n MessagePane.showMessage(\"A job is running... Please wait for its completion or cancel it before quitting.\");\n return false;\n }\n\n // Ask the user if he wants to save modifications\n //@TODO replace by code when save will be available.\n MessagePane.ConfirmSaveChanges result = MessagePane.ConfirmSaveChanges.Ignore;\n //MessagePane.ConfirmSaveChanges result = MessagePane.showConfirmSaveChangesBeforeClosing();\n\n // Handle user choice\n switch (result) {\n // If the user clicked the \"Save\" button, save and exit\n case Save:\n /*\n if (this.saveAction != null) {\n return this.saveAction.save();\n }\n */\n break;\n\n // If the user clicked the \"Don't Save\" button, exit\n case Ignore:\n break;\n\n // If the user clicked the \"Cancel\" button or pressed 'esc' key, don't exit\n case Cancel:\n default: // Any other case\n return false;\n }\n\n return true;\n }",
"boolean hasJobId();",
"public boolean hasExited()\n {\n try\n {\n proc.exitValue();\n return true;\n }\n catch(IllegalThreadStateException ex)\n {\n return false;\n }\n }",
"boolean hasExitStatus();",
"public void tryTerminate() {\n if (wip.decrementAndGet() != 0) {\n return;\n }\n if (queue.isEmpty()) {\n completableSubscriber.onCompleted();\n } else {\n completableSubscriber.onError(CompletableOnSubscribeMerge.collectErrors(queue));\n }\n }",
"public boolean abortOnFristJobFailure() {\n return mFailOnFirstError;\n }",
"public void terminate() {\n terminated = true;\n }",
"@Override\n public boolean onStopJob(JobParameters jobParameters) {\n Log.d(TAG, \"Job cancelled before being completed.\");\n jobCancelled = true;\n boolean needsReschedule = isWorking;\n jobFinished(jobParameters, needsReschedule);\n return needsReschedule;\n }",
"@Basic @Raw\n public boolean isTerminated(){\n \treturn this.isTerminated;\n }",
"protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }",
"@Basic\r\n\t@Raw\r\n\tpublic boolean isTerminated(){\r\n\t\treturn isTerminated;\r\n\t}",
"@Override\n public boolean onStopJob(com.firebase.jobdispatcher.JobParameters job) {\n // If mBackgroundTask is valid, cancel it\n //Return true to signify the job should be retried\n if (mBackgroundTask != null) mBackgroundTask.cancel(true);\n return true;\n }",
"@Override\r\n\tpublic boolean hasExited() {\n\t\treturn false;\r\n\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\tpublic boolean terminate() {\n\t\tString METHOD_NAME = \"::terminate::\";\r\n\t\tlogger.debug(CLASS_NAME + METHOD_NAME + \"Inside...\");\r\n\t\treturn false;\r\n\t}",
"protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }",
"public boolean terminate() {\n return (msgType == MessageType.QUIT);\n }",
"protected boolean isFinished() {\r\n return isTimedOut();\r\n }",
"protected boolean isFinished() {\r\n\treturn false;\r\n }",
"private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}",
"public boolean isTerminated() {\r\n\t\treturn fTerminated;\r\n\t}",
"protected boolean isAllJobsFinished() {\r\n \tIterator<Progress> jobsIterator = JobManager.iterator();\r\n \twhile (jobsIterator.hasNext()) {\r\n \t\tProgress job = jobsIterator.next();\r\n\t\t\tif (!job.isFinished()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn isTimedOut();\r\n\t}",
"public boolean isAbortable();",
"protected boolean isFinished() {\r\n return false;\r\n }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"public boolean isFinished();",
"protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"@DISPID(17)\r\n\t// = 0x11. The runtime will prefer the VTID if present\r\n\t@VTID(19)\r\n\tint postJobReturnCode();",
"protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected void runPostJobGloballyTerminated(JobID jobId, JobStatus jobStatus) {\n }",
"protected boolean isFinished(){\r\n return true;\r\n }",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"public Guard isFinishedExecution() {\n if (depth == PSymGlobal.getConfiguration().getMaxStepBound()) {\n return Guard.constTrue();\n } else {\n return allMachinesHalted;\n }\n }",
"public boolean isExited() {\n return this.applicationState.checkFlag().equals(Flag.IS_EXITED);\n }",
"protected boolean isFinished() {\n return false;\n \n }",
"protected boolean isFinished() {\n\t\treturn isTimedOut();\n\t}",
"public Status waitUntilFinished();",
"public boolean isDone();",
"public boolean isDone();",
"public void terminate() {\n\t\trunning = false;\n\t}",
"protected boolean isFinished() {\n return isTimedOut();\n }",
"public boolean isFinished(){\n return true;\n }",
"public boolean isStopped();",
"boolean hasFinished();",
"public boolean isDone() { return false; }",
"default boolean pollOnExecutionFailed() {\n return false;\n }"
] | [
"0.7145616",
"0.70984507",
"0.6815474",
"0.6600845",
"0.65745497",
"0.64722407",
"0.6407827",
"0.63345236",
"0.6310814",
"0.63070154",
"0.627838",
"0.6269326",
"0.6207064",
"0.61793303",
"0.6164945",
"0.61306983",
"0.61246264",
"0.6120175",
"0.612",
"0.61089766",
"0.6104418",
"0.60398626",
"0.60177404",
"0.5996585",
"0.5983796",
"0.597988",
"0.5971118",
"0.59263045",
"0.5906276",
"0.5906276",
"0.5906276",
"0.5906276",
"0.5891278",
"0.5882865",
"0.5867374",
"0.5851761",
"0.58363295",
"0.58089703",
"0.58020765",
"0.58014745",
"0.58002776",
"0.579963",
"0.5797679",
"0.5797679",
"0.57841825",
"0.5783468",
"0.5771626",
"0.5768221",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5764827",
"0.5754444",
"0.575035",
"0.57482564",
"0.57482564",
"0.57482564",
"0.57482564",
"0.57482564",
"0.57482564",
"0.57468504",
"0.57461303",
"0.5744235",
"0.57234204",
"0.57157624",
"0.570957",
"0.57095546",
"0.57095546",
"0.5706775",
"0.5706469",
"0.56946445",
"0.5692611",
"0.56811154",
"0.5680175",
"0.56790197"
] | 0.0 | -1 |
//checking if the job terminated Abnormally happened | public Boolean IsAbnormally() {
Random r = new Random();
int k = r.nextInt(100);
//1%
if (k <= 1) {
abnormally++;
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isTerminated();",
"public boolean killJob(Job job) {\n\t\tProcess process = jobProcesses.get(job);\n\t\tif (process == null) { \n\t\t\tlogger.info(\"Attempt to kill unknown job (already finished?): \"\n\t\t\t\t+ job);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tprocess.exitValue();\n\t\t\tlogger.info(\"Didn't kill already finished job \" + job);\n\t\t\tjobProcesses.remove(job);\n\t\t\treturn true;\n\t\t} catch (IllegalThreadStateException ex) {\n\t\t\tlogger.debug(\"Attempting to kill \" + job);\n\t\t\tprocess.destroy();\n\t\t}\n\t\t\n\t\t// Did it die?\n\t\ttry {\n\t\t\tlogger.info(\"Killed \" + job);\n\t\t\tprocess.exitValue();\n\t\t\tjobProcesses.remove(job);\n\t\t\treturn true;\n\t\t} catch (IllegalThreadStateException ex) {\n\t\t\tlogger.warn(\"Could not kill job \" + job);\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean isMonitoringTerminated();",
"boolean isDone(long number) throws NoSuchJobException;",
"@Override\n public boolean onStopJob(JobParameters job) {\n return true;\n }",
"if(false==adhocTicket.hasExited()){\n System.out.println(\"hasExit() is passed\");\n }",
"protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }",
"@Override\n public boolean onStopJob(JobParameters job) {\n Log.d(LOG_TAG, \"Sync job stopped\");\n return true;\n }",
"public boolean isTerminated() {\n \n \t\tfinal Thread executingThread = this.environment.getExecutingThread();\n \t\tif (executingThread.getState() == Thread.State.TERMINATED) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}",
"@Override\n public boolean onStopJob(JobParameters params) {\n return false;\n }",
"public boolean isDone(){\r\n\t\tif(worker.getState()==Thread.State.TERMINATED) return true;\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean isJobRunning() {\n\t\treturn false;\n\t}",
"public void terminate() {\n terminated = true;\n }",
"@Override\n\tpublic boolean onJobError(ApiJob job) {\n\t\treturn false;\n\t}",
"protected void runPostJobGloballyTerminated(JobID jobId, JobStatus jobStatus) {\n }",
"@Override\n public ReturnT<String> kill(String jobId) {\n JobThread jobThread = CcbJobExecutor.loadJobThread(jobId);\n if (jobThread != null) {\n \tCcbJobExecutor.removeJobThread(jobId, \"人工手动终止\");\n return ReturnT.SUCCESS;\n }\n\n return new ReturnT<String>(ReturnT.SUCCESS_CODE, \"job thread aleady killed.\");\n }",
"@Override\n public boolean onStopJob(com.firebase.jobdispatcher.JobParameters job) {\n // If mBackgroundTask is valid, cancel it\n //Return true to signify the job should be retried\n if (mBackgroundTask != null) mBackgroundTask.cancel(true);\n return true;\n }",
"protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"public boolean isTerminated() {\n lock.lock();\n try {\n if (state == State.RUNNING) {\n return false;\n }\n\n for (SerialExecutor executor : serialExecutorMap.values()) {\n if (!executor.isEmpty()) {\n return false;\n }\n }\n return executor.isTerminated();\n } finally {\n lock.unlock();\n }\n }",
"@Override\r\n\tpublic boolean terminate() {\n\t\tString METHOD_NAME = \"::terminate::\";\r\n\t\tlogger.debug(CLASS_NAME + METHOD_NAME + \"Inside...\");\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean canBeTerminatedNow() {\n logger.debug(\"OifitsExplorerGui.finish() handler called.\");\n\n // Can't exit if a job is running\n if (IRModelManager.getInstance().getIRModel().isRunning()) {\n MessagePane.showMessage(\"A job is running... Please wait for its completion or cancel it before quitting.\");\n return false;\n }\n\n // Ask the user if he wants to save modifications\n //@TODO replace by code when save will be available.\n MessagePane.ConfirmSaveChanges result = MessagePane.ConfirmSaveChanges.Ignore;\n //MessagePane.ConfirmSaveChanges result = MessagePane.showConfirmSaveChangesBeforeClosing();\n\n // Handle user choice\n switch (result) {\n // If the user clicked the \"Save\" button, save and exit\n case Save:\n /*\n if (this.saveAction != null) {\n return this.saveAction.save();\n }\n */\n break;\n\n // If the user clicked the \"Don't Save\" button, exit\n case Ignore:\n break;\n\n // If the user clicked the \"Cancel\" button or pressed 'esc' key, don't exit\n case Cancel:\n default: // Any other case\n return false;\n }\n\n return true;\n }",
"@Basic @Raw\n public boolean isTerminated(){\n \treturn this.isTerminated;\n }",
"@Override\n public boolean onStopJob(JobParameters jobParameters) {\n Log.d(TAG, \"Job cancelled before being completed.\");\n jobCancelled = true;\n boolean needsReschedule = isWorking;\n jobFinished(jobParameters, needsReschedule);\n return needsReschedule;\n }",
"boolean hasJobId();",
"public boolean terminate() {\n return (msgType == MessageType.QUIT);\n }",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }",
"protected boolean isFinished() {\r\n\treturn false;\r\n }",
"@Basic\r\n\t@Raw\r\n\tpublic boolean isTerminated(){\r\n\t\treturn isTerminated;\r\n\t}",
"public void terminate() {\n\t\trunning = false;\n\t}",
"public void terminateJob(STAXJob job)\n {\n\n TreeMap subJobs = (TreeMap)job.getData(\"subJobMap\");\n\n if (subJobs != null)\n {\n synchronized (subJobs)\n {\n subJobs.remove(String.valueOf(job.getJobNumber()));\n }\n }\n }",
"protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic void terminate() {\n\t\r\n\t}",
"public void terminate(){\n running = false;\n }",
"boolean cancelJob(String jobId) throws Exception;",
"protected void afterJobExecution() {\n\t}",
"boolean isShutdownGraceful();",
"public void terminate() {\n }",
"public void tryTerminate() {\n if (wip.decrementAndGet() != 0) {\n return;\n }\n if (queue.isEmpty()) {\n completableSubscriber.onCompleted();\n } else {\n completableSubscriber.onError(CompletableOnSubscribeMerge.collectErrors(queue));\n }\n }",
"public boolean hasExited()\n {\n try\n {\n proc.exitValue();\n return true;\n }\n catch(IllegalThreadStateException ex)\n {\n return false;\n }\n }",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"boolean verifyJobDatabase();",
"public void terminate();",
"@DISPID(17)\r\n\t// = 0x11. The runtime will prefer the VTID if present\r\n\t@VTID(19)\r\n\tint postJobReturnCode();",
"public boolean isTerminated() {\r\n\t\treturn fTerminated;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn isTimedOut();\r\n\t}",
"protected boolean isFinished() {\r\n return isTimedOut();\r\n }",
"protected boolean isFinished(){\r\n return true;\r\n }",
"protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"public boolean isFinished(){\n return true;\n }",
"protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}",
"public void terminate() {\r\n running = false;\r\n }",
"@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}",
"public void finishJob(View v) {\n JobScheduler jobScheduler = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);\n List<JobInfo> allPendingJobs = jobScheduler.getAllPendingJobs();\n if (allPendingJobs.size() > 0) {\n // Finish the last one\n int jobId = allPendingJobs.get(0).getId();\n jobScheduler.cancel(jobId);\n Toast.makeText(\n MainActivity.this, String.format(getString(R.string.cancelled_job), jobId),\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(\n MainActivity.this, getString(R.string.no_jobs_to_cancel),\n Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\t\t\tpublic void doTimeOutWork() {\n\t\t\t\tthis.exit();\n\t\t\t}",
"@Override\n\t\t\tpublic void doTimeOutWork() {\n\t\t\t\tthis.exit();\n\t\t\t}",
"void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }",
"protected boolean isFinished() {\n\t\treturn isTimedOut();\n\t}",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }"
] | [
"0.7122118",
"0.694067",
"0.68479514",
"0.6634365",
"0.6631918",
"0.6433538",
"0.6407004",
"0.6400621",
"0.6370217",
"0.63373405",
"0.63238525",
"0.62868726",
"0.6266291",
"0.6179069",
"0.61749715",
"0.61712116",
"0.6151066",
"0.61418617",
"0.6125113",
"0.6125113",
"0.6125113",
"0.6125113",
"0.61160195",
"0.6113071",
"0.610385",
"0.61016697",
"0.60922503",
"0.6034854",
"0.6032887",
"0.60243577",
"0.60243577",
"0.60243577",
"0.6006309",
"0.60057133",
"0.59907186",
"0.59690166",
"0.59542596",
"0.5943773",
"0.59188855",
"0.5915972",
"0.5912949",
"0.5900884",
"0.5884392",
"0.58838874",
"0.5856546",
"0.58343047",
"0.5829705",
"0.5829705",
"0.5829705",
"0.5829705",
"0.5829705",
"0.5829705",
"0.5829387",
"0.5825884",
"0.58193064",
"0.58191705",
"0.58161986",
"0.58113295",
"0.5799313",
"0.5793953",
"0.57885087",
"0.5784058",
"0.5784058",
"0.5781555",
"0.5776765",
"0.5776369",
"0.57723975",
"0.5770995",
"0.575742",
"0.575742",
"0.5756325",
"0.57536006",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216",
"0.5742216"
] | 0.0 | -1 |
method to receive the broaddcast send a popup to display message | @Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context, "Broadcast Received", Toast.LENGTH_LONG).show();
/*
first param is the context
second param is message to display
third param is the duration to display the message
*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean onMessageBubbleClick(EMMessage message);",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch(msg.what){\n\t\t\tcase 0:\n\t\t\t\t//打开常用面板广播\n\t\t\t\tIntent openIntent = new Intent(\"android.touch.action.TOUCH_PANEL_OPEN\");\n\t\t\t\topenIntent.putExtra(\"PanelNum\", UiManager.PANEL_TYPE_2);\n\t\t\t\tsendBroadcast(openIntent);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }",
"public void showWinMessage() {\n\n\t}",
"int displayNotification(Message message);",
"public void triggerPopup();",
"void onMessageReceived(Message message);",
"@ReactMethod\n public void generatePopup(String message){\n }",
"public void onCallBellPressed(MessageReason reason);",
"private void showDialog(String broad_message) {\n\t\tif (!ThermActivity.this.isFinishing()) {\n\t\t\tAlertDialog.Builder builder = new Builder(ThermActivity.this);\n\t\t\tbuilder.setTitle(getResources().getString(R.string.offline_notification)).setMessage(broad_message);\n\t\t\tbuilder.setPositiveButton(getResources().getString(R.string.confirm),\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tsendDataBle.sendData(\"0045\", macAddress);// 断开特定设备连接\n\t\t\t\t\t\t\tEMClient.getInstance().logout(true);\n\t\t\t\t\t\t\tAC.accountMgr().logout();\n\t\t\t\t\t\t\tLog.e(TAG, \"退出登录\");\n\t\t\t\t\t\t\tLong userid = PreferencesUtils.getLong(ThermActivity.this, \"userId\");\n\t\t\t\t\t\t\tPushAgent mPushAgent = MainApplication.push();\n\t\t\t\t\t\t\t//userId为用户ID,通过AbleCloud登录接口返回的ACUserInfo可以获取到userId;第二个参数写死ablecloud即可。\n\t\t\t\t\t\t\tmPushAgent.removeAlias(String.valueOf(userid), \"ablecloud\", new UTrack.ICallBack(){\n\t\t\t\t\t\t\t @Override\n\t\t\t\t\t\t\t public void onMessage(boolean isSuccess, String message) {\n\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tThermActivity.this.finish();\n\t\t\t\t\t\t\tIntent intent = new Intent(ThermActivity.this,\n\t\t\t\t\t\t\t\t\tLoginActivity.class);\n\t\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK\n\t\t\t\t\t\t\t\t\t| Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\tAlertDialog alert = builder.create();\n\t\t\talert.setCanceledOnTouchOutside(false);//dialog点击空白不消失\n\t\t\talert.setCancelable(false);//dialog点击返回键不消失\n\t\t\talert.show();\n\t\t}\n\t}",
"public void OnMessageReceived(String msg);",
"@Override\n public void onMessage(String channel, String message) {\n String result[] = new String[3];\n result = jsonToString.recorrer(message, result);\n System.out.println(result[0]);\n System.out.println(result[1]);\n System.out.println(result[2]);\n nn = new NanozNotificacion(result[1], result[0]);\n nn.setVisible(true);\n //estado = JOptionPane.showConfirmDialog(null, result[0]);\n //notificacionCiclada(result, estado);\n }",
"@Override\n public void onMessage(String messageType, JSONObject messagePayload) {\n try {\n PageInfo info = new PageInfo(parseDisambigJson(messagePayload.getJSONArray(\"hatnotes\")),\n Utils.jsonArrayToStringArray(messagePayload.getJSONArray(\"issues\")));\n PageInfoDialog dialog = new PageInfoDialog(activity, info, getDialogHeight());\n dialog.show();\n if (\"disambigClicked\".equals(messageType)) {\n dialog.showDisambig();\n } else if (\"issuesClicked\".equals(messageType)) {\n dialog.showIssues();\n }\n } catch (JSONException e) {\n throw new RuntimeException(e);\n }\n }",
"void onMessageBubbleLongClick(EMMessage message);",
"public void open(Plugin plugin, SpoutPlayer splayer) {\n\n GenericPopup popup = new GenericPopup();\n int width = splayer.getMainScreen().getMaxWidth();\n int height = splayer.getMainScreen().getMaxHeight();\n pluginLeg.log(\"aight\" + width + \"\" + height);\n\n// int width = splayer.getCurrentScreen().getWidth();\n// int height = splayer.getCurrentScreen().getHeight();\n\n //title of the screen\n GenericLabel topLabel = new GenericLabel(\"Clan-Invitation\");\n topLabel.setScale(1);\n\n topLabel.setWidth(topLabel.getText().length() * 8 * (int) topLabel.getScale()).setHeight((int) topLabel.getScale() * 15);\n\n topLabel.setX(width / 2 - topLabel.getWidth() / 2);\n topLabel.setY(topLabel.getHeight() / 2 + 5);\n popup.attachWidget(plugin, topLabel);\n\n //title of the screen\n String questionString = \"&2You are invited to \"+clan.getName()+\". Do you want to join?\";\n GenericLabel questionLabel = new GenericLabel(LegendaryClans.parseColor(questionString));\n questionLabel.setScale(1);\n questionLabel.setWidth(questionLabel.getText().length() * 5 * (int) questionLabel.getScale());\n questionLabel.setHeight((int) questionLabel.getScale() * 15);\n\n questionLabel.setX(width / 2 - questionLabel.getWidth() / 2);\n questionLabel.setY(height / 2 - questionLabel.getHeight() / 2);\n popup.attachWidget(plugin, questionLabel);\n\n //Accept Button\n LegendaryButton acceptButton = new LegendaryButton(LegendaryClans.parseColor(\"&2Accept!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n if (pluginLeg.getClanManager().getClanByPlayer(clan.getLeaders().get(0)) != null && askedPlayer != null) {\n clan.addMember(askedPlayer);\n } \n getPopup().close();\n }\n };\n\n\n acceptButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale()).setHeight((int) acceptButton.getScale() * 15);;\n acceptButton.setX(width / 2 + width / 4 - acceptButton.getWidth() / 2).setY(height / 2 + height / 4 - acceptButton.getHeight() / 2);\n\n\n popup.attachWidget(plugin, acceptButton);\n //deny button\n LegendaryButton denieButton = new LegendaryButton(LegendaryClans.parseColor(\"&4Deny!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n clan.broadcastMessage(\"&4\" + askedPlayer.getName() + \" denied invitation!\");\n getPopup().close();\n }\n };\n\n denieButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale());\n denieButton.setHeight((int) denieButton.getScale() * 15);\n// \n// ((LegendaryClans)plugin).log(\"\"+width+\",\"+height);\n// denieButton.setX(denieButton.getX()+denieButton.getWidth()/2 +10);\n\n denieButton.setX(width / 4 - denieButton.getWidth() / 2);\n denieButton.setY(height / 2 + height / 4 - denieButton.getHeight() / 2);\n popup.attachWidget(plugin, denieButton);\n\n splayer.closeActiveWindow();\n splayer.getMainScreen().attachPopupScreen(popup);\n }",
"public void receiveMessage(String msg)\r\n {\r\n mailbox.add( msg );\r\n if (myWindow != null)\r\n {\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }\r\n }",
"@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tBundle bundle=msg.getData();\n\t\t\t\t\n\t\t\t\tif(bundle.getInt(\"ready\") == 1){\n\t\t\t\t\t//Receive info and assign to player\n\t\t\t\t\tIntent j = new Intent();\n\t\t\t\t\tj.setClassName(\"com.example.client\",\n\t\t\t\t\t\t\t\"com.example.client.GameScreen\");\n\t\t\t\t\tstartActivity(j);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\t//Time out\n\t\t\t\t\t\talertMessage();\t\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"private void sendMessageToPrompt(String txt){\n\t\tMessage msg = new Message();\n\t\tmsg.obj = \"UDPReceiver: \" + txt;\n\t\tthis.msgPromptHandler.sendMessage(msg);\n\t}",
"public void getPopup() {\n\t\t\tglobal.btnClick(popup);\n\t\t}",
"public void popup(String a){\n pop.setLayout(null);\n ControlAction c = new ControlAction();\n pop.setBounds(420, 320, 460, 160);\n pop.setBorder(new LineBorder(Color.BLACK, 2));\n //condition for showing popup message\n if(a.startsWith(\"1\")){\n mas.setText(\"Selamat Anda Telah Melakukan Peminjaman\");\n nolocker.setText(\"No. Locker Anda Yaitu 17\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(true);\n }else if(a.equals(WARN1)){\n mas.setText(\"Maaf Anda Telah Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.equals(WARN2)){\n mas.setText(\"Maaf Anda Belum Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.contains(\"BUKA\")){\n mas.setText(\"Anda Ingin Mengakhiri Peminjaman ?\");\n yes.setVisible(true);\n String key = a.substring(4);\n yes.setActionCommand(\"YES\"+key);\n no.setVisible(true);\n nolocker.setVisible(false);\n }else if(a.equals(NO)){\n mas.setText(\"Loker Anda Telah Terbuka\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n } \n mas.setFont(new Font(\"arial\", Font.BOLD, 20));\n mas.setOpaque(false);\n mas.setForeground(Color.BLACK);\n Dimension si1 = mas.getPreferredSize();\n mas.setBounds(10, 40, si1.width, si1.height);\n nolocker.setFont(new Font(\"arial\", Font.BOLD, 20));\n nolocker.setOpaque(false);\n nolocker.setForeground(Color.BLACK);\n Dimension si3 = nolocker.getPreferredSize();\n nolocker.setBounds(10, 70, si3.width, si3.height);\n //close button handling\n close.addActionListener(c);\n close.setActionCommand(EXIT);\n Dimension si2 = close.getPreferredSize();\n close.setBounds(420, 10, si2.width, si2.height);\n close.setBorder(BorderFactory.createEmptyBorder());\n close.setContentAreaFilled(false);\n //yes button handling\n yes.addActionListener(c);\n Dimension si4 = yes.getPreferredSize();\n yes.setBounds(100, 100, si4.width, si4.height);\n yes.setBorder(BorderFactory.createEmptyBorder());\n yes.setContentAreaFilled(false);\n //no button handling\n no.addActionListener(c);\n no.setActionCommand(NO);\n Dimension si5 = no.getPreferredSize();\n no.setBounds(250, 100, si5.width, si5.height);\n no.setBorder(BorderFactory.createEmptyBorder());\n no.setContentAreaFilled(false);\n //add to card3 top most layer\n card3.add(pop,6,0);\n }",
"public void receivedOkayMessage();",
"private void startPopup(Context context, Long id) {\n\n //Intent emaIntent = new Intent(context, VoiceRecognitionActivity.class); //The activity you want to start.\n //Intent emaIntent = new Intent(context, PopupActivity.class); //The activity you want to start.\n //Log.d(\"Alarm receiver\", \"received intent\");\n Random random = new Random();\n int value = random.nextInt(1);\n Intent emaIntent = new Intent(context, PopupActivity.class);\n emaIntent.putExtra(\"pos\", id);\n\n\n\n// if (value == 1) {\n// emaIntent = new Intent(context, PopupActivity.class); //The activity you want to start.\n// } else {\n// emaIntent = new Intent(context, VoiceRecognitionActivity.class);\n// }\n\n\n\n emaIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(emaIntent);\n }",
"public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }",
"@Override\n\t//显示聊天窗口\n\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\n\t\tif(e.getClickCount()==2)\n\t\t{\n\t\t\t//得到该好友的编号\n\t\t\tString friendNo=((JLabel)e.getSource()).getText();\n\t\t\tSystem.out.println(\"你希望和 \"+friendNo+\" 聊天\");\n\t\t\t//创建聊天窗口\n\t\t\tChat1 chat1 = new Chat1(ownid,friendNo);\n\t\t\t//把聊天窗口添加到管理界面\n\t\t\tManageChat.addChat(ownid+\" \"+friendNo, chat1);\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_TAIL;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }",
"public void clickShowReceived() throws UIAutomationException{\t\t\r\n\t\telementController.requireElementSmart(fileName,\"Show Received In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Received In Social Panel\");\r\n\t\tUIActions.click(fileName,\"Show Received In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Received In Social Panel\");\r\n\t\t\t\r\n\t\t/*\t// Check by clicking on 'show sent' it changes to 'show received'\r\n\t\t\telementController.requireElementSmart(fileName,\"Show Sent In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Sent In Social Panel\");\r\n\t\t\tString linkTextInPage=UIActions.getText(fileName,\"Show Sent In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Show Sent In Social Panel\");\r\n\t\t\tString linkTextInXML=dataController.getPageDataElements(fileName,\"Show Received Text\" , \"Name\");\r\n\t\t\tif(!linkTextInPage.contains(linkTextInXML)){\r\n\t\t\t\tthrow new UIAutomationException( \"'\"+linkTextInXML +\"' not found\");\r\n\t\t\t}*/\r\n\t}",
"public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }",
"@Override\n public void messagePrompt(String message) {\n JOptionPane.showMessageDialog(lobbyWindowFrame,message+\" is choosing the gods\");\n }",
"private void customSendBlueButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_customSendBlueButtonActionPerformed\n String custom = customMessageField.getText();\n Msg.send(\"Clicked - message: \" + custom);\n sendCustomMessage(custom, \"B\");\n }",
"public void handleMessage(Message msg) {\n\t\t\tLog.e(\"DownloaderManager \", \"newFrameHandler\");\n\t\t\tMessage msgg = new Message();\n\t\t\tmsgg.what=2;\n\t\t\tmsgg.obj = msg.obj;\n\t\t\t\n\t\t\t_replyTo.sendMessage(msgg);\n\t\t\t\n\t\t\t\n\t\t}",
"@Override\r\n public void run() {\n addUIMessage(new byte[]{Message.UI_MESSAGE, Message.PRIVATE_CALL_RINGING});\r\n }",
"private void popUpMessage(String message){\n\t\tJFrame frame = new JFrame();\n\t\tJLabel mText = new JLabel(message);\n\t\t\n\t\tframe.add(mText);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.pack();\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\t\n\t}",
"public void onSendMessage(View view) {\n // get the EditText view of the layout with the id: message\n EditText messageView = (EditText) findViewById(R.id.message);\n // get the text added by the user in the EditText\n String messageText = messageView.getText().toString();\n // Create a new Intent with an action of SEND\n Intent intent = new Intent(Intent.ACTION_SEND);\n // set the MIME type for the Intent\n intent.setType(\"text/plain\");\n // Add to the Intent the text from the EditText view\n intent.putExtra(Intent.EXTRA_TEXT, messageText);\n // get the text form a string resource\n String chooserTitle = getString(R.string.chooser);\n // wrap the Intent in a chooser so Android always ask for with app to choose\n Intent chosenIntent = Intent.createChooser(intent, chooserTitle);\n // Start the activity of whatever app is available\n startActivity(chosenIntent);\n }",
"public void askSpawn() throws RemoteException{\n respawnPopUp = new RespawnPopUp();\n respawnPopUp.setSenderRemoteController(senderRemoteController);\n respawnPopUp.setMatch(match);\n\n Platform.runLater(\n ()-> {\n try{\n respawnPopUp.start(new Stage());\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n );\n }",
"private void sendCastMessage(Video video)\n {\n Message msg = mHandler.obtainMessage();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"video\",video);\n msg.setData(bundle);\n msg.what = 2;\n mHandler.sendMessage(msg);\n }",
"public void onRecieve(RoundTimeMessage message) {\n\n\n }",
"@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_HEAD;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }",
"public void received()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Received\")).click();\n\t}",
"public void showMessage(String message);",
"void onEnterToChatDetails();",
"private void handleGSCPop() {\n\t\tShell shell = new Shell(parent.getShell(), SWT.PRIMARY_MODAL | SWT.TOP);\n\t\tComposite composite = null;\n\t\ttry {\n\t\t\tif (null != composite && !composite.isDisposed()) {\n\t\t\t\tcomposite.dispose();\n\t\t\t}\n\t\t\tSalesOtherChargesPop ocPop = new SalesOtherChargesPop(shell, SWT.BORDER, false);\n\t\t\tcomposite = ocPop.loadComposite();\n\t\t\tOtherChargesDTO[] fromPop = ocPop.otherChargesDTO;\n\t\t\tif ( fromPop != null){\n\t\t\t\tgscDTO = fromPop;\n\t\t\t}\n\t\t\t//System.out.println(\"from gsc popup===>\"+gscDTO[0].getLrCharge());\n\t\t\t//System.out.println(\"from gsc popup==>\"+gscDTO[0].getGsc());\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onMessageReceived(@NotNull MessageReceivedEvent event) {\n String message = event.getMessage().getContentRaw().toLowerCase();\n Commands commands = Main.getBOT().getCommands();\n\n // When message is intended for bob, check it\n if (message.startsWith(\"!bob\")) {\n commands.evaluateCommand(message.replace(\"!bob \", \"\"), event);\n } else if (message.contains(\"#blamekall\")) {\n event.getChannel().sendMessage(\"NO! BE NICE! GO TO NAUGHTY JAIL!\").queue();\n event.getChannel().sendMessage(\"https://tenor.com/view/bonk-gif-18805247\").queue();\n }\n\n }",
"public void createPopupWindow() {\r\n \t//\r\n }",
"@Override\n public void handleMessage(Message m)\n {\n String content = m.getContent();\n if (content.isEmpty())\n {\n content = \"N/A\";\n }\n\n JOptionPane.showMessageDialog(null, \"From: \" + m.getFrom() + \"\\n\"\n + \"To: \" + m.getTo() + \"\\n\"\n + \"Content: \" + content + \"\\n\"\n + \"Type: \" + m.getType().toString(),\n \"Message Notification\",\n JOptionPane.INFORMATION_MESSAGE);\n }",
"@Override\n\tpublic void displayMessage(LinphoneCore lc, String message) {\n\t\t\n\t}",
"private void showPopup(String title, String message)\n\t{\n\t\tJOptionPane.showMessageDialog(frmMPSWebServices, message, title, JOptionPane.PLAIN_MESSAGE);\n\t}",
"@FXML\n private void openReplyWindow() {\n try {\n ComposeEmailWindow cew = new ComposeEmailWindow(\"RE: \", this.fromContent.getText(),\n this.subjectContent.getText(), this.msgContent.getText());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@SuppressLint(\"NewApi\")\n\tpublic void onShowPopup(View v){\n \n LayoutInflater layoutInflater = (LayoutInflater)getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n \n // inflate the custom popup layout\n final View inflatedView = layoutInflater.inflate(R.layout.chat_msg_popup, null,false);\n // find the ListView in the popup layout\n ListView listView = (ListView)inflatedView.findViewById(R.id.commentsListView);\n \n // get device size\n Display display = getActivity().getWindowManager().getDefaultDisplay();\n final Point size = new Point();\n display.getSize(size);\n //\tmDeviceHeight = size.y;\n \n \n // fill the data to the list items\n setSimpleList(listView);\n \n \n // set height depends on the device size\n popWindow = new PopupWindow(inflatedView, size.x - 50,size.y - 100, false );\n // set a background drawable with rounders corners\n //popWindow.setBackgroundDrawable(getResources().getDrawable(R.drawable.fb_popup_bg));\n // make it focusable to show the keyboard to enter in `EditText`\n popWindow.setFocusable(true);\n // make it outside touchable to dismiss the popup window\n popWindow.setOutsideTouchable(true);\n \n // show the popup at bottom of the screen and set some margin at bottom ie,\n //popWindow.showAtLocation(v, Gravity.BOTTOM, 0,100);\n popWindow.showAtLocation(v, Gravity.CENTER, 0, 0);\n }",
"@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n if (messageEvent.getPath().equals(OPEN_MAIN_ACTIVITY_PATH)) {\n\n //For example you can start an Activity\n Intent startIntent = new Intent(this, MotoWatchFaceActivity.class);\n startIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(startIntent);\n }\n\n }",
"public void readyToReceive()\n { ua.printLog(\"WAITING FOR INCOMING CALL\");\n if (!ua.ua_profile.audio && !ua.ua_profile.video) ua.printLog(\"ONLY SIGNALING, NO MEDIA\"); \n //ua.listen();\n changeStatus(UA_IDLE);\n printOut(\"digit the callee's URL to make a call or press 'enter' to exit\");\n }",
"void onNewMessage(String message);",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tString[] notify_cmd={\"msg\",user,\"启动中\"};\n\t\t\t\t\t\t\t\tdisplayText(\"启动中\");\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tRuntime.getRuntime().exec(notify_cmd);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\tString mssage_in=\"appium msg\";\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t\t\t\tif((mssage_in=br.readLine())!=null){\n\t\t\t\t\t\t\t\t\t\t\tMyFrame.displayText(mssage_in);\n\t\t\t\t\t\t\t\t\t\t\tpw.println(mssage_in);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"private void sendToBtAct(String msg) {\n Intent intent = new Intent(\"getTextToSend\");\n // You can also include some extra data.\n intent.putExtra(\"tts\", msg);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }",
"void systemMessageReceived(IMSession session, Message message);",
"@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }",
"public void addBehavior() {\n replyFab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // The intent to start reply activity\n Intent replyMailIntent = new Intent(\n EmailViewerActivity.this, MailEditorActivity.class);\n // Put message ID that this activity receive from InboxActivity\n replyMailIntent.putExtra(MailEditorActivity.KEY_REPLY,\n getIntent().getExtras().getInt(KEY_EXTRA));\n // Start the reply activity when this button is clicked\n startActivity(replyMailIntent);\n }\n });\n\n // Check network connection\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get network info\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n boolean isConnected = (activeNetwork != null) &&\n (activeNetwork.isConnectedOrConnecting());\n\n if (isConnected) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // Initialize the loader\n loaderManager.initLoader(MAIL_LOADER_ID, null, this);\n } else {\n // Show no internet warning if there is no internet connection\n emailViewer.loadDataWithBaseURL(null, getText(R.string.no_internet).toString(),\n \"text/html\", \"utf-8\", null);\n viewerSpinner.setVisibility(View.GONE);\n }\n }",
"@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_1;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }",
"@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)\n private void handleChatListHongBao() {\n Log.d(TAG,\"handleChatListHongBao\");\n int mode = getConfig().getWechatMode();\n if(mode == Config.WX_MODE_3) {\n Log.d(TAG,\"Only notification mode\");\n return;\n }\n\n AccessibilityNodeInfo nodeInfo = getService().getRootInActiveWindow();\n Log.d(TAG,\"nodeInfo = \" + nodeInfo);\n if(nodeInfo == null) {\n Log.d(TAG, \"rootWindow is empty\");\n return;\n }\n\n // Here is the code to grab the red envelope\n list = nodeInfo.findAccessibilityNodeInfosByText(GET_HONGBAO);\n\n if(list != null && list.isEmpty()) {\n Log.d(TAG,\"Can not get Receive the red envelope key node\");\n AccessibilityNodeInfo node = findNodeInfosByText(nodeInfo,HONGBAO_TEXT_KEY);\n\n if(node != null) {\n if(BuildConfig.DEBUG) {\n Log.d(TAG, \"WeChat red:\" + node);\n }\n isReceivingHongbao = true;\n AccessibilityHelper.performClick(nodeInfo);\n }\n } else if(list != null) {\n Log.d(TAG,\"Can get Receive the red envelope key node, isReceivingHongbao=\"+ isReceivingHongbao);\n if (isReceivingHongbao){\n String nameButtonId;\n int wechatVersion = getWechatVersion();\n nameButtonId = WechatVersionHelper.getChatNameId(wechatVersion);\n Log.d(TAG,\"nameButtonId = \" + nameButtonId);\n if(nameButtonId != null){\n nodeInfoById = AccessibilityHelper.findNodeInfosById(nodeInfo, nameButtonId);\n Log.d(TAG,\"nodeInfoById1 = \" + nodeInfoById);\n }else{\n AccessibilityNodeInfo node = findNodeInfosByText(nodeInfo,\n getContext().getResources().getString(R.string.back));\n Log.d(TAG,\"node = \" + node);\n if(node != null){\n node = node.getParent();\n if(node != null){\n node = node.getParent();\n if(node != null){\n nodeInfoById = node.getChild(1);\n Log.d(TAG,\"nodeInfoById1 = \" + nodeInfoById);\n }\n }\n }\n }\n\n if(nodeInfoById != null) {\n singleChatSwitch(list);\n }else {\n //如果获取不到名字,宁愿私聊开关失效,也不能不抢群聊红包\n AccessibilityNodeInfo node = list.get(list.size() - 1);\n AccessibilityHelper.performClick(node);\n isReceivingHongbao = false;\n }\n }\n }\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n switch (action) {\n case RoosterConnectionService.NEW_MESSAGE:\n// k = RoosterConnectionService.NEW_MESSAGE;\n String from = intent.getStringExtra(RoosterConnectionService.BUNDLE_FROM_JID);\n String body = intent.getStringExtra(RoosterConnectionService.BUNDLE_MESSAGE_BODY);\n// if(body.toUpperCase().contains(\"V\".toUpperCase()) ) {\n message(body);\n// }\n return;\n\n case RoosterConnectionService.UI_AUTHENTICATED:\n Toast.makeText(getApplicationContext(), \"authenticated\", Toast.LENGTH_SHORT).show();\n// Log.d(TAG,\"Got a broadcast to show the main app window\");\n //Show the main app window\n// showProgress(false);\n// Intent i2 = new Intent(mContext,ContactListActivity.class);\n// startActivity(i2);\n// finish();\n\n break;\n }\n\n\n }",
"protected void onSendMessage(View view){\n et = (EditText)findViewById(R.id.message);\n String message = et.getText().toString();\n Intent intent = new Intent(this, ReceiveMessageActivity.class);\n intent.putExtra(\"message\",message);\n startActivity(intent);\n }",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\n\t\t\t\tURL url = new URL(\"http://ecshopxax.sinaapp.com/js/index.js\");\n\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tbyte[] bs = new byte[1024];\n\t\t\t\tint len = 0;\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\twhile ((len = is.read(bs)) != -1) {\n\t\t\t\t\tString str = new String(bs, 0, len);\n\t\t\t\t\tsb.append(str);\n\t\t\t\t}\n\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = 0x15;\n\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.clear();\n\n\t\t\t\t// bundle.putString(\"recv_server\", new String(buffer));\n\t\t\t\tbundle.putString(\"text1\", sb.toString());\n\n\t\t\t\tmsg.setData(bundle);\n\n\t\t\t\tmyHandler.sendMessage(msg);\n\n\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public void onMessage(Session session);",
"private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }",
"@Override\n\tpublic void msgIamFree() {\n\t\tlog.add(new LoggedEvent(\n\t\t\t\t\"Received message msgIamFree() from Popup\"));\n\t\t\n\t}",
"@Override\n public void show() {\n mHandler.obtainMessage(0).sendToTarget();\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n try {\n JSONObject responseObject = new JSONObject(\n intent.getStringExtra(\"value\"));\n Log.e(\"play start response\",responseObject.toString());\n\n if (!gameStatus.equalsIgnoreCase(\"inprogress\") || Utility.isUmpire) {\n if (responseObject.getBoolean(\"status\")) {\n if (popupWindow.isShowing()) {\n popupWindow.dismiss();\n }\n\n timmer();\n }\n }\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n //EditText editText = (EditText) findViewById(R.id.edit_message);\n //String message = editText.getText().toString();\n //intent.putExtra(EXTRA_MESSAGE, message);\n\n startActivity(intent);\n }",
"void messageReceived(String mac, String mimeType);",
"private void customSendRedButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_customSendRedButtonActionPerformed\n String custom = customMessageField.getText();\n Msg.send(\"Clicked - message: \" + custom);\n sendCustomMessage(custom, \"R\");\n }",
"private void displayMsg(Object o) {\n Message msg = ((Datapacket)o).getMsg();\n client.printMessage(msg);\n }",
"@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase 0:\n\t\t\t\t\t// 显示推荐列表(综合)\n\t\t\t\t\tAppConnect.getInstance(mContext).showOffers(mContext);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\t// 显示插屏广告\n\t\t\t\t\t// 判断插屏广告是否已初始化完成,用于确定是否能成功调用插屏广告\n\t\t\t\t\tboolean hasPopAd = AppConnect.getInstance(mContext)\n\t\t\t\t\t\t\t.hasPopAd(mContext);\n\t\t\t\t\tSystem.out.println(\"------------------\" + hasPopAd);\n\t\t\t\t\tif (hasPopAd) {\n\t\t\t\t\t\tAppConnect.getInstance(mContext).showPopAd(mContext);\n\t\t\t\t\t\tSystem.out.println(\"------执行了showPopAd--------\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\t// 显示推荐列表(软件)\n\t\t\t\t\tAppConnect.getInstance(mContext).showAppOffers(mContext);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\t// 显示推荐列表(游戏)\n\t\t\t\t\tAppConnect.getInstance(mContext).showGameOffers(mContext);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\t// 获取全部自定义广告数据\n\t\t\t\t\tIntent appWallIntent = new Intent(mContext, AppWall.class);\n\t\t\t\t\tmContext.startActivity(appWallIntent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\t// 获取一条自定义广告数据\n\t\t\t\t\tAdInfo adInfo = AppConnect.getInstance(mContext).getAdInfo();\n\t\t\t\t\tAppDetail.getInstanct().showAdDetail(mContext, adInfo);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\t// 显示自家应用列表\n\t\t\t\t\tAppConnect.getInstance(mContext).showMore(mContext);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\t// 根据指定的应用app_id展示其详情\n\t\t\t\t\tAppConnect.getInstance(mContext).showMore(mContext,\n\t\t\t\t\t\t\t\"c6a9b1d560e554e84202c0b538a68e05\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 10:\n\t\t\t\t\t// 调用功能广告接口(使用浏览器接口)\n\t\t\t\t\tString uriStr = \"http://www.baidu.com\";\n\t\t\t\t\tAppConnect.getInstance(mContext).showBrowser(mContext,\n\t\t\t\t\t\t\turiStr);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 11:\n\t\t\t\t\t// 用户反馈\n\t\t\t\t\tAppConnect.getInstance(mContext).showFeedback(mContext);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 12:\n\t\t\t\t\t// 退屏广告\n\t\t\t\t\tQuitPopAd.getInstance().show(mContext);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 13:\n\t\t\t\t\tAppConnect.getInstance(mContext).showMiniAd(mContext, miniLayout, 10);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 14:\n\t\t\t\t\t// 游戏商自定义支付订单号,保证该订单号的唯一性,建议在执行支付操作时才进行该订单号的生成\n\t\t\t orderId = System.currentTimeMillis() + \"\";\n\t\t\t price = 0.0f;\n\t\t\t\t\t\n\t\t\t\t\tPayConnect.getInstance(mContext).pay(mContext, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\torderId, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tuserId, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprice, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgoodsName, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgoodsDesc, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnotifyUrl,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew MyPayResultListener());\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\tprotected void onGuiEvent(GuiEvent arg0) {\n\t\taddBehaviour(new SendMessage());\r\n\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n chat.receiveMessage();\n }",
"@Override\n public void onMessageViewClick(View view, Message message) {\n }",
"private void sendMessage() {\n\t\tString text = myMessagePane.getText();\n\t\tMessage msg = new Message(text, myData.userName, myData.color);\n\n\t\tcommunicationsHandler.send(msg);\n\n\t\t// De-escape xml-specific characters\n\t\tXmlParser xmlParser = new XmlParser(myData);\n\t\tString outText = xmlParser.deEscapeXMLChars(msg.text);\n\t\tmsg.text = outText;\n\n\t\tmyMessagePane.setText(\"\");\n\t\tupdateMessageArea(msg);\n\n\t}",
"private void showNotification() {\n\n }",
"public void sendMessage (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t}",
"private void displayMessage(String message){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n windowForCommunication.append(message);\n }\n });\n }",
"Message buidMessage(CommandEvent event);",
"@Override\n public void onReceive(Context context, Intent intent) {\n if(\"com.example.brdcst_rec.toast\".equals(intent.getAction())){\n Integer received = intent.getIntExtra(\"com.example.brdcst_rec.text\", -1);\n Intent in = new Intent(context, BrowserActivity.class);\n in.putExtra(\"number\", received);\n context.startActivity(in);\n }\n }",
"@Override\r\n public void handleMessage(Message message) \r\n {\r\n switch (message.what) \r\n {\r\n case BlueToothService.MESSAGE_REMOTE_CODE:\r\n Utilities.popToast (\"MESSAGE_REMOTE_CODE : \" + message.obj);\r\n break;\r\n case BlueToothService.MESSAGE_REQUEST:\r\n Utilities.popToast (\"MESSAGE_REQUEST : \" + message.obj);\r\n break;\r\n default:\r\n super.handleMessage(message);\r\n }\r\n }",
"private void createSendArea() {\n\t\tthis.btnSend = new Button(\"Envoyer\");\n\t\tthis.btnSend.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tboolean sent = window.sendMessage(message.getText());\n\t\t\t\tif(sent) {\n\t\t\t\t\tmessage.setText(\"\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\tnew JFrame(),\n\t\t\t\t\t\t\"Erreur lors de l'envoi du message...\",\n\t\t\t\t\t\t\"Dialog\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n if (remoteMessage.getData().size() > 0) {\n }\n\n String click_action = remoteMessage.getNotification().getClickAction();\n\n if (remoteMessage.getNotification() != null) {\n sendNotification(remoteMessage.getNotification().getTitle(),remoteMessage.getNotification().getBody(),remoteMessage.getData(),click_action);\n }\n\n }",
"public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.editText);\n String message = editText.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n }",
"void sendFinishMessage();",
"@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tString [] str=(String [])msg.obj;\n\t\t\tfor(int i=0;i<6;i++)\n\t\t\t{System.out.println(str[i]);}\n\t\t\t if(mDialog.isShowing()==true){\n\t\t\t\t mDialog.dismiss(); \n\t\t\t }\n\t\t\t if(str[0].toString().equals(\"anyType{}\")==true){\n//\t\t\t \tSystem.out.println(str[0]);\n\t\t\t\t title.setText(str[1]);\n\t\t\t\t time.setText(str[2]);\n\t\t\t\t type.setText(str[3]);\n\t\t\t\t content.setText(str[4]);\n\t\t\t\t name.setText(str[5]);\n//\t\t\t Toast.makeText(getApplicationContext(),\"发布成功\",Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t\t else{\n\t\t\t \tToast.makeText(getApplicationContext(),str[0],Toast.LENGTH_SHORT).show();\n\t\t\t }\n\t\t}",
"public void sendMessage(View view) {\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n\n EditText editText = (EditText) findViewById(R.id.editText);\n\n String message = editText.getText().toString();\n\n intent.putExtra(EXTRA_MESSAGE, message);\n\n\n\n startActivity(intent);\n\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Message msg = new Message();\n msg.what = 1;\n set_handler.sendMessage(msg);\n }",
"private void showMessage(int position) {\n // Open Bottom sheet and show details\n }",
"@Override\n public void askForTagBackGrenade() throws RemoteException {\n mainPage.setRemoteController(senderRemoteController);\n mainPage.setMatch(match);\n Platform.runLater(\n () -> {\n try {\n mainPage.askForTagBackPopup();\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n }",
"@Override\r\n public void onClick(View v) {\n String msg = ed_msg.getText().toString();\r\n try {\r\n\t\t\t\t\tsend(HOST, PORT, msg.getBytes());\r\n\t\t\t\t\t\r\n\t \tmHandler.sendMessage(mHandler.obtainMessage()); \r\n\t \tcontent =HOST +\":\"+ msg +\"\\n\";\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }",
"public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}",
"@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}",
"@FXML\n private void sendMessage(ActionEvent actionEvent) {\n String playerName = RiskMain.getInstance().getDomain().getPlayerName();\n System.out.println(messageInput.getText());\n String text = playerName + \": \" + messageInput.getText();\n if (RiskMain.getInstance().getDomain().isServer()) {\n this.serverInterface = RiskMain.getInstance().getDomain().getServer();\n this.serverInterface\n .sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n } else {\n this.clientPlayerInterface = RiskMain.getInstance().getDomain().getClient();\n this.clientPlayerInterface.sendMessageChat(RiskMain.getInstance().getDomain().getPlayerName(),\n messageInput.getText(), recipientList.getValue());\n }\n }",
"public void receiveChatClosure() {\n\t\t\r\n\t\tString message = \"Chat request details\";\r\n\t\t\r\n\t\t//Notify the chat request details to the GUI\r\n\t\tthis.observable.notifyObservers(message);\r\n\t}",
"public void handleMessageAction(ActionEvent event) {\n if (action.getSelectedToggle() == sendMessage){\n sendPane.setVisible(true);\n reviewPane.setVisible(false);\n }\n else{ //action.getSelectedToggle() == reviewMessage\n sendPane.setVisible(false);\n reviewPane.setVisible(true);\n\n StringBuilder builder = new StringBuilder();\n\n for ( String i : messageController.getMessageForMe(this.sender)){\n builder.append(i).append(\"\\n\");\n }\n this.inbox.setText(String.valueOf(builder));\n\n }\n }",
"void messageReceived(IMSession session, Message message);",
"public void sendMessage(View view) {\n\t\t// Do something in response to button\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\n\t\tstartActivity(intent);\n\n\t}",
"private void showNotification() {\n }",
"@Override\n\tpublic void onMessageBubbleLongClick(EMMessage message) {\n\n\t}",
"@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\ttry {\r\n\t\t\t\tpd.dismiss();\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\t\t\tShowData();\r\n\t\t}"
] | [
"0.6177769",
"0.6046681",
"0.60179",
"0.60097927",
"0.5992784",
"0.59559876",
"0.5923466",
"0.5900184",
"0.5885291",
"0.5881776",
"0.5861869",
"0.58216316",
"0.58074737",
"0.57980645",
"0.5798006",
"0.5785179",
"0.5767512",
"0.5735923",
"0.57358706",
"0.571683",
"0.57051426",
"0.5699194",
"0.56890583",
"0.5673379",
"0.5667553",
"0.5648331",
"0.5643812",
"0.56414336",
"0.56361365",
"0.56261355",
"0.56250495",
"0.56112224",
"0.5598564",
"0.5597501",
"0.5583409",
"0.55821955",
"0.5573798",
"0.5569673",
"0.556668",
"0.55648136",
"0.55530614",
"0.5550062",
"0.55406135",
"0.553843",
"0.5537483",
"0.5535214",
"0.5532412",
"0.5528351",
"0.5523209",
"0.55193764",
"0.55163723",
"0.5513705",
"0.55057263",
"0.55047965",
"0.5500981",
"0.5500281",
"0.54994696",
"0.5493638",
"0.5493119",
"0.549124",
"0.5487631",
"0.5487128",
"0.54835635",
"0.5480798",
"0.5480131",
"0.54756373",
"0.5475245",
"0.54741174",
"0.54740727",
"0.5473435",
"0.5472751",
"0.5471783",
"0.54714257",
"0.5466073",
"0.54602015",
"0.54580814",
"0.5454116",
"0.5453276",
"0.5452835",
"0.5450928",
"0.54427457",
"0.54399467",
"0.5439598",
"0.5432916",
"0.54320633",
"0.54302305",
"0.5430153",
"0.5429715",
"0.5427725",
"0.5410917",
"0.5408992",
"0.54070765",
"0.5402535",
"0.54002196",
"0.5396938",
"0.5393331",
"0.53932565",
"0.5391856",
"0.53916395",
"0.5391257",
"0.5387789"
] | 0.0 | -1 |
Constructor that reads in a DataSet to initialize | public AreaChart(DataSet inputdataset) {
super.setDataset(inputdataset);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DataSet() {\r\n \r\n }",
"public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}",
"public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }",
"public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }",
"public UsersDataSet() {}",
"public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}",
"public DataSet( int _height , int _width) throws FileNotFoundException {\n height = _height;\n width = _width;\n InitFile( \"src/com/algorithme/DataSet.txt\" );\n InitTargets();\n InitFeatures();\n System.out.println(\"Création de la DataSet\");\n }",
"private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }",
"public DataSet(String Filename)\n\t{\n\t\tc = new ArrayList<String>();\n\t\tBuildFromFile(Filename);\n\t}",
"public AnalysisDatasets() {\n }",
"public AzureDataLakeStoreDataset() {\n }",
"public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}",
"public MetaInfoReader(String dataset) {\n this(dataset, \"../output/tracker_data/\");\n }",
"void init(Dataset ds, Session sess);",
"private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }",
"public DoubleMatrixDataset() {\r\n }",
"public DataRecord() {\n super(DataTable.DATA);\n }",
"public DataTable() {\n\n\t\t// In this application, we use HashMap data structure defined in\n\t\t// java.util.HashMap\n\t\tdc = new HashMap<String, DataColumn>();\n\t}",
"public MyAdapter(ArrayList<MyData> myDataset) {\n\n mDataset = myDataset;\n }",
"public DataAdapter() {\n }",
"public MyAdapter(ArrayList<Pair<String, String>> myDataset) {\n mDataset = myDataset;\n }",
"public MyAdapter(ArrayList<String> myDataset) {\n mDataset = myDataset;\n }",
"private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"test@gbif.org\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }",
"public Dataset(final int dimensions) {\n this.dimensions = dimensions;\n ntree = new NTree(dimensions);\n }",
"public InitialData(){}",
"public Dataset(GcTrace gcTrace, GcTraceCheckpoint checkpoint, int metric) {\n super(gcTrace.getGcActivityNamesArray());\n \n this.gcTrace = gcTrace;\n this.checkpoint = checkpoint;\n this.metric = metric;\n }",
"private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/lote.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic Data(String table) throws EmptyDatasetException, SQLException, EmptySetException, NoValueException{\r\n\t\tTableData tableData = new TableData(new DbAccess());\r\n\t\tdata = tableData.getDistinctTransazioni(table);\r\n\t\t\r\n\t\tTableSchema tableSchema = new TableSchema(new DbAccess(),table);\r\n\t\tnumberOfExamples=data.size();\r\n\t\t\r\n\t\tQUERY_TYPE min,max;\r\n\t\tmin = QUERY_TYPE.MIN;\r\n\t\tmax = QUERY_TYPE.MAX;\r\n\t\t\r\n\t\tfor (int i=0;i<tableSchema.getNumberOfAttributes();i++) {\r\n\t\t\tif(!tableSchema.getColumn(i).isNumber()) {\r\n\t\t\t\texplanatorySet.add((T) new DiscreteAttribute(tableSchema.getColumn(i).getColumnName(),i,(TreeSet)tableData.getDistinctColumnValues(table, tableSchema.getColumn(i))));\r\n\t\t\t}else {\r\n\t\t\t\texplanatorySet.add((T) new ContinuousAttribute(tableSchema.getColumn(i).getColumnName(),i,(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),min),(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),max)));\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}",
"public DatasetHelper(DatasetHelper another){\n id= another.id;\n hash = another.hash;\n catalogueId = another.catalogueId;\n sourceType = another.sourceType;\n sourceLang = another.sourceLang;\n model = ModelFactory.createDefaultModel().add(another.model);\n uriSchema = another.uriSchema;\n }",
"public MetaInfoReader(String dataset, String basePath) {\n String baseFileName = basePath + dataset + \"/metainfo.txt\";\n data = new ArrayList<>();\n readFile(baseFileName);\n MetaDataManager.getInstance(data);\n }",
"public PreGalleryAdaptador(String[] dataSet) {\n mDataSet = dataSet;\n }",
"private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/tipo_identificacion.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}",
"@Override\n\tpublic void setDataSet(IDataSet ds) {\n\t\t\n\t}",
"@Override\n\tprotected IDataSet getDataSet() throws Exception {\n\t\tInputStream xmlFile = getClass().getResourceAsStream(\"/alumno.xml\");\n\t\treturn new FlatXmlDataSetBuilder().build(xmlFile);\n\t}",
"protected IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\treturn new FlatXmlDataSet(this.getClass().getResourceAsStream(\"dataset_report.xml\"));\r\n\t}",
"public Data() {}",
"public Data(String analysisName, String baseName) {\n this.analysisName = analysisName;\n this.baseName = baseName;\n }",
"private void initDataset() {\r\n CollGestDBHelper collGestDBHelper = new CollGestDBHelper(activityContext);\r\n List<CollGestItem> listAllItems = collGestDBHelper.getAllGestItem();\r\n\r\n mDataset = new String[listAllItems.size()][7];\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n System.out.println(listAllItems.size());\r\n System.out.println(listAllItems.toString());\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n for (int i = 0; i < listAllItems.size(); i++) {\r\n mDataset[i][0] = listAllItems.get(i).getItemName();\r\n mDataset[i][1] = Integer.toString(listAllItems.get(i).getItemMinJoueurs());\r\n mDataset[i][2] = Integer.toString(listAllItems.get(i).getItemMaxJoueurs());\r\n mDataset[i][3] = Integer.toString(listAllItems.get(i).getItemDuration());\r\n mDataset[i][4] = listAllItems.get(i).getItemTypes();\r\n mDataset[i][5] = listAllItems.get(i).getItemCheckedOut();\r\n mDataset[i][6] = listAllItems.get(i).getItemLastPlayed();\r\n }\r\n System.out.println(mDataset);\r\n }",
"private void initData() {\n\n }",
"private void initData() {\n\t}",
"private void initData() {\n }",
"protected @Override\r\n abstract void initData();",
"public void initData() {\n }",
"public void initData() {\n }",
"public LazyDataset(String name, int dtype, int[] shape, ILazyLoader loader) {\n \t\tthis.name = name;\n \t\tthis.shape = shape;\n \t\toShape = shape;\n \t\tthis.loader = loader;\n \t\tthis.dtype = dtype;\n \t\ttry {\n \t\t\tsize = AbstractDataset.calcSize(shape);\n \t\t} catch (IllegalArgumentException e) {\n \t\t\tsize = Integer.MAX_VALUE; // this indicates that the entire dataset cannot be read in! \n \t\t}\n \t}",
"public DesastreData() { //\r\n\t}",
"private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }",
"public ChartjsDataSet(String id) {\n\t\tthis(id, new JSONObject());\n\t}",
"private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }",
"public DatasetReader(final String filename)\n\t{\n\t\tthis();\n\t\t\n\t\treadReviews(filename + \".txt\");\n\t}",
"private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}",
"private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}",
"Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}",
"protected Dataset readDatasetX(Reader datasetReader) throws IOException {\n List<Clause> clauses = new ArrayList<Clause>();\n List<String> classifications = new ArrayList<String>();\n readExamples(datasetReader, clauses, classifications);\n MemoryBasedDataset dataset = new MemoryBasedDataset();\n for (int i = 0; i < clauses.size(); i++){\n dataset.addExample(new Example(clauses.get(i)), classifications.get(i));\n }\n return dataset;\n }",
"public Data() {\n }",
"public Data() {\n }",
"public Datos(){\n }",
"public AppData() {\n super(0,Entry.DataColumn.values().length);\n setColumnIdentifiers(Arrays.stream(Entry.DataColumn.values()).map(Entry.DataColumn::getName).toArray());\n System.out.println(\"a new AppData has been constructed\");\n }",
"public LineData()\n\t{\n\t}",
"public WebRowSetDataProvider() {\n }",
"public MyAdapter(ArrayList<GpsData> myDataset) {\r\n dataset = myDataset;\r\n }",
"public MyAdapter(ArrayList<pets> myDataset) {\n this.mDataset = myDataset;\n }",
"public MyAdapter(List<Track> myDataset, Activity activity) {\n values = myDataset;\n this.activity = activity;\n }",
"private Data initialise() {\n \r\n getRoomsData();\r\n getMeetingTimesData();\r\n setLabMeetingTimes();\r\n getInstructorsData();\r\n getCoursesData();\r\n getDepartmentsData();\r\n getInstructorFixData();\r\n \r\n for (int i=0;i<departments.size(); i++){\r\n numberOfClasses += departments.get(i).getCourses().size();\r\n }\r\n return this;\r\n }",
"public RecyclerTransactionAdaptor(List<Transaction> myDataset) {\n mDataset = myDataset;\n }",
"private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"public SimpleDataPointImpl(DataSet dataSet){\n\t\tvalues = new HashMap<String, Double>();\n\t\tmDataSet = dataSet;\n\t}",
"private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"public SetupDatabase(String dataset, Collection<Subject> values) {\n this.dataset = dataset;\n this.splist = values;\n connect();\n }",
"public MyAdapter(Context context, ArrayList<String> dataset) {\n mContext = context;\n mDataset = dataset;\n setHasStableIds(true);\n }",
"public DataFactoryImpl() {\n\t\tsuper();\n\t}",
"public SingleArffDataset(InputStream stream, int XIndex, int YIndex, int ColorIndex) {\n\t\tsuper(stream);\n\n\t\tthis.attrXIndex = XIndex;\n\t\tthis.attrYIndex = YIndex;\n\t\tthis.attrColorIndex = ColorIndex;\n\t}",
"public Data(String dataMysql) {\n\t\ttry {\n\t\t\tString[] datapart = dataMysql.split(\"-\");\n\t\t\tthis.anno = new Integer(datapart[0]);\n\t\t\tint mi = (new Integer(datapart[1]) - 1);\n\t\t\tthis.mese = Data.MESI[mi];\n\t\t\tthis.giorno = new Integer(datapart[2]);\n\t\t} catch (NullPointerException e) {\n\t\t\t\n\t\t}\n\t}",
"public StringData1() {\n }",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"public DataBase getDataSet() {\r\n DataBase dataset = null;\r\n try {\r\n Statement stmt = conexion.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '\" + schema + \"'\";\r\n ResultSet rs = stmt.executeQuery(sql);\r\n dataset = new DataBase();\r\n while (rs.next()) {\r\n \r\n dataset.setCatalog_name(rs.getString(1));\r\n dataset.setSchema_name(rs.getString(2));\r\n dataset.setCharacter_set(rs.getString(3));\r\n dataset.setCollation_name(rs.getString(4));\r\n dataset.setIssued(getIssuedBD(schema));\r\n\r\n }\r\n ArrayList<Table> tables = getTables(schema);\r\n dataset.setTables(tables);\r\n return dataset;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAOBaseDatos.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n }",
"public Data(String[] lines) {\n\t\tmLines = lines;\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }",
"public DataSetLoader load (String path) {\n\t\tJSONParser parser = new JSONParser();\n\t\t\n\t\t// Obtain the name of the data set from the file name\n\t\tString name = FilenameUtils.removeExtension(new File(path).getName());\n\t\t\n\t\ttry {\n\t\t\t// Parse the JSON file into a JSON object\n\t\t\tthis.dataSet = new DataSet(name, (JSONArray) parser.parse(new FileReader(CURRENT_DIR + \"data_sets/\" + path)));\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn this;\n\t}",
"private void initData(){\n\n }",
"public DataSetPanel() {\n initComponents();\n }",
"public Data(int _dimension) {\r\n this.setDimension(_dimension);\r\n }",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"private DatasetJsonConversion() {}",
"public Dataset(final int dimensions, final int numPoints) {\n this(dimensions);\n\n for (int i = 0; i < numPoints; i++) {\n double[] point = new double[dimensions];\n addPoint(new DataPoint(point));\n }\n }",
"public PersoAdapter(List<Characters> myDataset){\n compteur = 0;\n mDataset = myDataset.toArray(new Characters[0]);\n }",
"public EventAdapter(ArrayList<Event> myDataset) {\n\t\tmDataset = myDataset;\n\t}",
"public GalleryAdapter(ArrayList<String> myDataset) {\n mDataset = myDataset;\n }",
"public DataSetDivide( )\n {\n super( \"Divide by a DataSet\" );\n }",
"private Dataset createDataSet(RecordingObject recordingObject, Group parentObject, String name) throws Exception\n\t{\n\t\t// dimension of dataset, length of array and 1 column\n\t\tlong[] dims2D = { recordingObject.getYValuesLength(), recordingObject.getXValuesLength() };\n\n\t\t// H5Datatype type = new H5Dataype(CLASS_FLOAT, 8, NATIVE, -1);\n\t\tDatatype dataType = recordingsH5File.createDatatype(recordingObject.getDataType(), recordingObject.getDataBytes(), Datatype.NATIVE, -1);\n\t\t// create 1D 32-bit float dataset\n\t\tDataset dataset = recordingsH5File.createScalarDS(name, parentObject, dataType, dims2D, null, null, 0, recordingObject.getValues());\n\n\t\t// add attributes for unit and metatype\n\t\tcreateAttributes(recordingObject.getMetaType().toString(), recordingObject.getUnit(), dataset);\n\n\t\treturn dataset;\n\t}"
] | [
"0.7981028",
"0.74318755",
"0.7385203",
"0.7228956",
"0.7117705",
"0.6959947",
"0.6926828",
"0.69054705",
"0.6897583",
"0.68227595",
"0.6701771",
"0.6633735",
"0.6613703",
"0.66027045",
"0.6465125",
"0.6438546",
"0.63986206",
"0.63635945",
"0.636011",
"0.63179606",
"0.6308157",
"0.63078755",
"0.62859255",
"0.62216765",
"0.62061733",
"0.61456245",
"0.6132682",
"0.61036617",
"0.60707617",
"0.606281",
"0.60574955",
"0.6031688",
"0.6022583",
"0.60176724",
"0.60074383",
"0.60063976",
"0.5953151",
"0.5942905",
"0.59418964",
"0.593988",
"0.59386486",
"0.592131",
"0.5910723",
"0.5910723",
"0.59054697",
"0.5897721",
"0.5892705",
"0.5890568",
"0.5882003",
"0.58742726",
"0.5857238",
"0.58528376",
"0.5845688",
"0.5827411",
"0.58219004",
"0.58219004",
"0.5821519",
"0.5810025",
"0.58078635",
"0.5807076",
"0.579722",
"0.5780012",
"0.57708406",
"0.5770829",
"0.5760095",
"0.57529306",
"0.57500345",
"0.5741369",
"0.57402116",
"0.57393026",
"0.57393026",
"0.57393026",
"0.57371485",
"0.57325995",
"0.57320833",
"0.5729238",
"0.5727693",
"0.5723316",
"0.572278",
"0.5720741",
"0.57157475",
"0.57110655",
"0.57110655",
"0.57110655",
"0.57110655",
"0.57110655",
"0.57110655",
"0.57076246",
"0.5707618",
"0.57050025",
"0.5694482",
"0.5689956",
"0.5687941",
"0.5687941",
"0.5684746",
"0.56796974",
"0.56786716",
"0.56769496",
"0.5669763",
"0.56681156",
"0.5665905"
] | 0.0 | -1 |
Method that creates the area chart | public JFreeChart MakeChart() {
DefaultCategoryDataset areaDataset = new DefaultCategoryDataset();
Object[] column1Data = super.getDataset().GetColumnData(
super.getAttribute1());
Object[] column2Data = super.getDataset().GetColumnData(
super.getAttribute2());
String column2Header = super.getDataset().GetAttributeName(
super.getAttribute2());
boolean addDataset = true;
String errors = "";
int errorCounter = 0;
for (int i=0; i<super.getDataset().GetNoOfEntrys();i++) {
Comparable<Object> nextValue1;
//First value can have be any comparable object.
nextValue1 = (Comparable<Object>) column1Data[i];
Double nextValue2 = null;
boolean addThis = true;
//Second value can only be integer, double or boolean.
try {
int intNextValue2 = Integer.parseInt(column2Data[i].toString());
nextValue2 = (Double) ((double) intNextValue2);
} catch (NumberFormatException nfe) {
try {
double doubleNextValue2 = Double.parseDouble(
column2Data[i].toString());
nextValue2 = (Double) doubleNextValue2;
} catch (NumberFormatException nfe2) {
String strNextValue2 = column2Data[i].toString();
if (strNextValue2.equalsIgnoreCase("True")) {
nextValue2 = TRUE;
} else if (strNextValue2.equalsIgnoreCase("False")) {
nextValue2 = FALSE;
} else {
addThis = false;
}
}
} catch (Exception e) {
addThis = false;
}
if (addThis == true) {
areaDataset.addValue( nextValue2, column2Header, nextValue1 );
} else {
addDataset = false;
if (errorCounter < MAX_ERROR_LENGTH) {
errors = errors + "\n"
+ column2Data[i].toString();
errorCounter++;
}
}
}
if (addDataset == false) {
areaDataset = new DefaultCategoryDataset(); //Reset
JOptionPane.showMessageDialog(null,
"Your selected y-axis has data in the wrong format" + "\n" +
"The following data needs to be a number in order to be" +
" represented."
+ errors);
}
JFreeChart chart = ChartFactory.createAreaChart(
super.getHeader(),
super.getxAxis(),
super.getyAxis(),
areaDataset,
PlotOrientation.VERTICAL,
true, //include legend
true,
false );
return chart;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PlotAreaType createPlotAreaType();",
"public AreaChart(DataSet inputdataset) {\n\t\tsuper.setDataset(inputdataset);\n\t}",
"AREA createAREA();",
"public Rectangle getChartArea() {\n return chartArea;\n }",
"public AreaRenderer() {\n\t\tsuper();\n\t\tthis.endType = AreaRendererEndType.TAPER;\n\t}",
"private void setUpGraph() {\n \tString title;\n\t\ttry {\n\t\t\ttitle = util.readTextFile(new File(UI.UITEXT_DIRECTORY)).get(GRAPHTITLE_DEX);\n\t\t\taCS = new AreaChartSample(cellStateNames,title);\n\t\t} catch (FileNotFoundException e) {\n\t\t\taCS = new AreaChartSample(cellStateNames, \"ERROR ON TITLE\");\n\t\t}\n\t\troot.getChildren().add(aCS.getAreaChart());\n \tplot();\n }",
"public abstract Area newArea();",
"public double getArea();",
"public double getArea();",
"public double getArea();",
"@Override\n\tprotected final JFreeChart createChart() {\n\t\tJFreeChart jFreeChart=null;\n\t\tIntervalXYDataset dataset=createDataset();\n\t\t\n\t\tjFreeChart=ChartFactory.createXYBarChart(title,xalabel, dateAxis, yalabel,dataset, por, legend, tooltips, urls);\n\t\t\n\t\tXYPlot plot=(XYPlot)jFreeChart.getPlot();\n\t\tpreRender(plot);\n\t\treturn jFreeChart; \n\t}",
"@Override\r\n\tpublic void calcArea() {\n\t\t\r\n\t}",
"public Area() {\n }",
"public Area() {\n\t}",
"double getArea();",
"double getArea();",
"public stockArea() {\n\n\t\tsetPreferredSize(new Dimension(800, 400));\n\t\tcreaStockArea();\n\t\tfor (int i = 0; i < terrain.length; i++) {\n\t\t\tfor (int j = 0; j < terrain.length; j++) {\n\t\t\t\tthis.add(terrain[i][j]);\n\t\t\t}\n\t\t}\n\t}",
"public double getArea()\n {\n return area;\n }",
"public abstract double getArea();",
"public abstract double getArea();",
"public abstract double getArea();",
"public void claShapeArea(){\r\n\t\tshape.calArea();\r\n\t}",
"private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}",
"@Override\n\tpublic void calcularArea() {\n\t\t\n\t}",
"private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }",
"Double getAreaValue();",
"public double area();",
"public abstract float calArea();",
"double calculateArea();",
"public interface AreaChart extends Graph {\n}",
"public abstract double calculateArea();",
"public abstract double calculateArea();",
"@Override\n\tpublic double area() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"public CldAreaEgg() {\n\t\t\t\tareaid = 0;\n\t\t\t\ttype = 0;\n\t\t\t\tstarttime = 0;\n\t\t\t\tendtime = 0;\n\t\t\t\tregioncode = 0;\n\t\t\t\tminx = 0;\n\t\t\t\tminy = 0;\n\t\t\t\tmaxx = 0;\n\t\t\t\tmaxy = 0;\n\t\t\t}",
"public abstract float getArea();",
"public double getArea() {\n\t\treturn this.area;\n\t}",
"private void createChart() {\n LineChart lineChart = (LineChart) findViewById(R.id.line_chart);\n\n // LineChart DataSet\n ArrayList<LineDataSet> dataSets = new ArrayList<>();\n\n // x-coordinate format value\n XAxis xAxis = lineChart.getXAxis();\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setGranularity(1f); // only intervals of 1 day\n// xAxis.setValueFormatter(new DayAxisValueFormatter(lineChart));\n\n\n // x-coordinate value\n ArrayList<String> xValues = new ArrayList<>();\n xValues.add(\"No.1\");\n xValues.add(\"No.2\");\n xValues.add(\"No.3\");\n xValues.add(\"No.4\");\n xValues.add(\"No.5\");\n\n // value\n ArrayList<Entry> value = new ArrayList<>();\n String measureItemName = \"\";\n value.add(new Entry(100, 0));\n value.add(new Entry(120, 1));\n value.add(new Entry(150, 2));\n value.add(new Entry(250, 3));\n value.add(new Entry(500, 4));\n\n\n // add value to LineChart's DataSet\n LineDataSet valueDataSet = new LineDataSet(value, measureItemName);\n dataSets.add(valueDataSet);\n\n // set LineChart's DataSet to LineChart\n// lineChart.setData(new LineData(xValues, dataSets));\n lineChart.setData(new LineData(valueDataSet));\n }",
"private void initialization(Stage primaryStage) throws Exception{\r\n\t\t\t//NumberAxis(lower limit, upper limit, interval)\r\n\t\t xAxis = new NumberAxis(0, MAX_DATA_POINTS, MAX_DATA_POINTS / 100);\r\n\t\t xAxis.setForceZeroInRange(false);\r\n\t\t xAxis.setAutoRanging(false);\r\n\t\t \r\n\t\t \r\n\t\t NumberAxis yAxis = new NumberAxis(0.3,0.5, 20);\r\n\t\t yAxis.setAutoRanging(false);\r\n\t\t\r\n\t\t final LineChart<Number, Number> sc = new LineChart<Number, Number>(xAxis, yAxis) {\r\n\t\t // Override to remove symbols on each data point \r\n\t\t @Override\r\n\t\t protected void dataItemAdded(Series<Number, Number> series, int itemIndex, Data<Number, Number> item) {\r\n\r\n\t\t }\r\n\t\t };\r\n\t\t sc.setAnimated(false);\r\n\t\t sc.setId(\"liveAreaChart\");\r\n\t\t sc.setTitle(\"RealTime Stock Chart\");\r\n\t\t series = new LineChart.Series<Number, Number>();\r\n\t\t series.setName(\"Area Chart Series\");\r\n\t\t sc.getData().add(series);\r\n\t\t primaryStage.setScene(new Scene(sc));\r\n\r\n\t}",
"public void drawArea(Graphics2D g, int width, int height, double minX,\n double minY, double maxX, double maxY) {\n upperX = maxX;\n lowerX = minX;\n\n upperY = maxY;\n lowerY = minY;\n //debug, drawLine bounds\n// g.drawLine(XOffSet, YOffSet, width, YOffSet);\n// g.drawLine(XOffSet, height, width, height); //X\n//\n// g.drawLine(XOffSet, YOffSet, XOffSet, height);\n// g.drawLine(width, YOffSet, width, height); //Y\n\n double Xscale = GetXScale(width);\n double Yscale = GetYScale(height);\n int centerX = getCenterX(width);\n int centerY = getCenterY(height);\n\n //drawGrid(g, width, height, minX, minY, maxX, maxY);\n\n //create a polygon for every area between two zeros\n g.setColor(LineColor);\n //ArrayList<Polygon> p = new ArrayList<>();\n Polygon p = new Polygon();\n //p.add(new Polygon());\n g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,\n Opacity));\n //p.get(0).addPoint(XOffSet, getCenterY(height));\n p.addPoint(XOffSet, getCenterY(height));\n for (int i = 0; i <= PointArray.length - 2; i += 2) {\n double x = ((PointArray[i] * Xscale) + centerX);\n double y = ((centerY) - (PointArray[i + 1]) * Yscale);\n if (x == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) {\n continue;\n }\n if (y == Double.POSITIVE_INFINITY || y == Double.NEGATIVE_INFINITY) {\n y = height - YOffSet;\n }\n //p.get(p.size() - 1).addPoint((int) x, (int) y);\n p.addPoint((int) x, (int) y);\n }\n //p.get(p.size() - 1).addPoint(width, getCenterY(height));\n p.addPoint(width, getCenterY(height));\n //for (int i = 0; i <= p.size() - 1; i++) {\n g.fill(p);//.get(i));\n //}\n g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 1));\n drawLine(g, width, height, minX, minY, maxX, maxY);\n }",
"JFreeChart generateBox();",
"public double get_Area() {\n return this.Area;\n }",
"abstract double area();",
"abstract double area();",
"abstract double area();",
"abstract double area();",
"public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}",
"private Chart(){}",
"@Override\n public double getArea() {\n return this.length*this.width; //To change body of generated methods, choose Tools | Templates.\n }",
"void calculateArea() {\n this.setArea(this.getArea()/2);\n }",
"@Test\n public void test64() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n Layer layer0 = Layer.FOREGROUND;\n RectangleInsets rectangleInsets0 = combinedRangeCategoryPlot0.getAxisOffset();\n combinedRangeCategoryPlot0.setInsets(rectangleInsets0, true);\n Collection collection0 = combinedRangeCategoryPlot0.getRangeMarkers(layer0);\n combinedRangeCategoryPlot0.clearRangeMarkers(0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation(0);\n combinedRangeCategoryPlot0.setRangeAxisLocation(0, axisLocation0, true);\n AreaRenderer areaRenderer0 = new AreaRenderer();\n // Undeclared exception!\n try { \n combinedRangeCategoryPlot0.setRenderer((-1), (CategoryItemRenderer) areaRenderer0);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }",
"@Override\r\n public double area() {\n return height*width;\r\n }",
"private void initChart() {\n Cartesian cartesian = AnyChart.line();\n\n cartesian.animation(true);\n\n cartesian.padding(10d, 20d, 5d, 20d);\n\n cartesian.crosshair().enabled(true);\n cartesian.crosshair()\n .yLabel(true)\n // TODO ystroke\n .yStroke((Stroke) null, null, null, (String) null, (String) null);\n\n cartesian.tooltip().positionMode(TooltipPositionMode.POINT);\n\n cartesian.title(\"Steps taken in this week and last week\");\n\n cartesian.yAxis(0).title(\"Steps\");\n cartesian.xAxis(0).labels().padding(5d, 5d, 5d, 5d);\n\n List<DataEntry> seriesData = new ArrayList<>();\n Log.d(\"Size This Week\",stepsTakenModelsThisWeek.size()+\"\");\n for(int i = 0 ; i<7 ; i++){\n CustomDataEntry c = new CustomDataEntry(days[i],stepsTakenModelsLastWeek.get(i).getSteps());\n if(i<stepsTakenModelsThisWeek.size()){\n c.setValue(\"value2\",stepsTakenModelsThisWeek.get(i).getSteps());\n }else{\n if(DateUtilities.getDayInAbbBySelectedDate(stepsTakenModelsLastWeek.get(i).getDate()).equals(\n DateUtilities.getCurrentDayInAbb()))\n {\n c.setValue(\"value2\",stepsToday);\n }else{\n c.setValue(\"value2\",0);\n }\n }\n seriesData.add(c);\n }\n\n Set set = Set.instantiate();\n set.data(seriesData);\n Mapping series1Mapping = set.mapAs(\"{ x: 'x', value: 'value' }\");\n Mapping series2Mapping = set.mapAs(\"{ x: 'x', value: 'value2' }\");\n\n Line series1 = cartesian.line(series1Mapping);\n series1.name(\"Last Week\");\n series1.hovered().markers().enabled(true);\n series1.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series1.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n Line series2 = cartesian.line(series2Mapping);\n series2.name(\"This Week\");\n series2.hovered().markers().enabled(true);\n series2.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series2.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n\n cartesian.legend().enabled(true);\n cartesian.legend().fontSize(13d);\n cartesian.legend().padding(0d, 0d, 10d, 0d);\n\n chart.setChart(cartesian);\n }",
"@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }",
"AreaResource panelArea();",
"public float getArea() {\n return area;\n }",
"@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise(new Random().nextInt(), xmasTemplate.getScale(), xmasTemplate.getOctaves(), xmasTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\t\tif (getValue(x, y) != BASE) {\r\n\t\t\t\t\tif (noise.perlinNoise(x, y) > xmasTemplate.getThreshold()) {\r\n\t\t\t\t\t\tsetValue(x, y, WALL);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetValue(x, y, FLOOR);\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// Fill east, west and south\r\n\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\tdrawArea(x, 0, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tdrawArea(0, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t\tdrawArea(getWidth() - 1, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\r\n\t\t// Draw random blotch lines between each base first\r\n\t\tArrayList<Point> basesCopy = new ArrayList<Point>(getBases());\r\n\t\tfor (int i = 0; i < basesCopy.size(); i ++) {\r\n\t\t\tPoint p1 = basesCopy.get(i);\r\n\t\t\tint j = Util.random(0, basesCopy.size() - 1);\r\n\t\t\tPoint p2 = basesCopy.get(j);\r\n\t\t\tbasesCopy.set(i, p2);\r\n\t\t\tbasesCopy.set(j, p1);\r\n\t\t}\r\n\r\n\t\tPoint s = basesCopy.get(0), t;\r\n\t\tdrawArea(s.getX(), s.getY(), (xmasTemplate.getMinMainTunnelWidth() + xmasTemplate.getMaxMainTunnelWidth()) / 2.0f, FLOOR);\r\n\t\tfor (int i = 0; i < basesCopy.size() - 1; i ++) {\r\n\t\t\ts = basesCopy.get(i);\r\n\t\t\tt = basesCopy.get(i + 1);\r\n\t\t\tdrawLine(s.getX(), s.getY(), t.getX(), t.getY(), xmasTemplate.getMinMainTunnelWidth(), xmasTemplate.getMaxMainTunnelWidth(), FLOOR);\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n public double calculateArea() {\n double area = 0;\r\n return area;\r\n }",
"public static void main(String args[]){\n\t\tDataSet testdataset = new DataSet();\n\t\tFile inputfile = new File(\"test.csv\");\n\t\ttestdataset.BuildDataSet(inputfile);\n\t\t\n\t\tSystem.out.println(\"AreaChart:: AreaChart()\");\n\t\tAreaChart testAreaChart = new AreaChart(testdataset);\n\t\tSystem.out.println(\"AreaChart::BarChart()- Test Passed\");\n\t\t\n\t\tSystem.out.println(\"AreaChart:: MakeChart()\");\n\t\ttestAreaChart.MakeChart();\n\t\tSystem.out.println(\"AreaChart::MakeChart()- Test Passed\");\n\t}",
"public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"default TArea createArea(AreaFactory<TContent, TArea> areaSupplier)\n {\n return areaSupplier.createArea();\n }",
"@PostConstruct\n public void init() {\n\n areaChartByDate = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newAreaChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).dynamic(80, DAY, true)\n .column(CREATION_DATE, \"Creation date\")\n .column(EXPECTED_AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_area_column1(), \"$ #,###\")\n .title(AppConstants.INSTANCE.sales_bydate_area_title())\n .titleVisible(true)\n .width(700).height(200)\n .margins(10, 100, 80, 100)\n .filterOn(true, true, true)\n .buildSettings());\n\n pieChartYears = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).dynamic(YEAR, true)\n .column(CREATION_DATE, \"Year\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_pie_years_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_years_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, false)\n .buildSettings());\n\n pieChartQuarters = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).fixed(QUARTER, true)\n .column(CREATION_DATE, \"Creation date\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_pie_quarters_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_quarters_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, false)\n .buildSettings());\n\n barChartDayOfWeek = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newBarChartSettings()\n .subType_Bar()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).fixed(DAY_OF_WEEK, true).firstDay(SUNDAY)\n .column(CREATION_DATE, \"Creation date\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_bar_weekday_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_bar_weekday_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 20, 80, 0)\n .filterOn(false, true, true)\n .buildSettings());\n\n\n pieChartByPipeline = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(PIPELINE)\n .column(PIPELINE, \"Pipeline\")\n .column(COUNT, \"#opps\").format(AppConstants.INSTANCE.sales_bydate_pie_pipe_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_pipe_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, true)\n .buildSettings());\n\n tableAll = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newTableSettings()\n .dataset(SALES_OPPS)\n .title(AppConstants.INSTANCE.sales_bydate_title())\n .titleVisible(false)\n .tablePageSize(5)\n .tableWidth(800)\n .tableOrderEnabled(true)\n .tableOrderDefault(AMOUNT, DESCENDING)\n .renderer(DefaultRenderer.UUID)\n .column(COUNTRY, AppConstants.INSTANCE.sales_bydate_table_column1())\n .column(CUSTOMER, AppConstants.INSTANCE.sales_bydate_table_column2())\n .column(PRODUCT, AppConstants.INSTANCE.sales_bydate_table_column3())\n .column(SALES_PERSON, AppConstants.INSTANCE.sales_bydate_table_column4())\n .column(STATUS, AppConstants.INSTANCE.sales_bydate_table_column5())\n .column(AMOUNT).format(AppConstants.INSTANCE.sales_bydate_table_column6(), \"$ #,###\")\n .column(EXPECTED_AMOUNT).format(AppConstants.INSTANCE.sales_bydate_table_column7(), \"$ #,###\")\n .column(CREATION_DATE).format(AppConstants.INSTANCE.sales_bydate_table_column8(), \"MMM dd, yyyy\")\n .column(CLOSING_DATE).format(AppConstants.INSTANCE.sales_bydate_table_column9(), \"MMM dd, yyyy\")\n .filterOn(false, true, true)\n .buildSettings());\n\n // Create the selectors\n\n countrySelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(COUNTRY)\n .column(COUNTRY, \"Country\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(COUNTRY, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n salesmanSelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(SALES_PERSON)\n .column(SALES_PERSON, \"Employee\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(SALES_PERSON, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n customerSelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(CUSTOMER)\n .column(CUSTOMER, \"Customer\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(CUSTOMER, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n // Make the displayers interact among them\n displayerCoordinator.addDisplayer(areaChartByDate);\n displayerCoordinator.addDisplayer(pieChartYears);\n displayerCoordinator.addDisplayer(pieChartQuarters);\n displayerCoordinator.addDisplayer(barChartDayOfWeek);\n displayerCoordinator.addDisplayer(pieChartByPipeline);\n displayerCoordinator.addDisplayer(tableAll);\n displayerCoordinator.addDisplayer(countrySelector);\n displayerCoordinator.addDisplayer(salesmanSelector);\n displayerCoordinator.addDisplayer(customerSelector);\n\n // Init the dashboard from the UI Binder template\n initWidget(uiBinder.createAndBindUi(this));\n\n // Draw the charts\n displayerCoordinator.drawAll();\n }",
"public void setArea() {\n\t\tthis.area= height*width;\n\t}",
"public double getArea(){\n return 3.14 * radius * radius;\n }",
"public abstract double computeArea();",
"public com.example.grpc.SimpleServiceOuterClass.Area.Builder addAreaBuilder(\n int index) {\n return getAreaFieldBuilder().addBuilder(\n index, com.example.grpc.SimpleServiceOuterClass.Area.getDefaultInstance());\n }",
"public com.example.grpc.SimpleServiceOuterClass.Area.Builder addAreaBuilder(\n int index) {\n return getAreaFieldBuilder().addBuilder(\n index, com.example.grpc.SimpleServiceOuterClass.Area.getDefaultInstance());\n }",
"public com.example.grpc.SimpleServiceOuterClass.Area.Builder addAreaBuilder(\n int index) {\n return getAreaFieldBuilder().addBuilder(\n index, com.example.grpc.SimpleServiceOuterClass.Area.getDefaultInstance());\n }",
"@Override\n public double getArea() {\n return 0;\n }",
"public String getArea() {\n return this.area;\n }",
"public Poi ToArea()\r\n {\r\n this.lat = PoiManager.roundToHalfDown(this.lat);\r\n this.lon = PoiManager.roundToHalfDown(this.lon);\r\n return this;\r\n }",
"protected void layoutImpl()\n {\n // Set chart area height first, since height can effect yaxis label width\n double pw = getWidth(), ph = getHeight();\n double ah = _xaxis.isVisible()? _xaxis.getPrefHeight() : 0;\n _chartArea.setHeight(ph - ah);\n \n // Now set bounds of areay, xaxis and yaxis\n double aw = _yaxis.isVisible()? _yaxis.getPrefWidth(ph - ah) : 0;\n double cw = pw - aw, ch = ph - ah;\n _chartArea.setBounds(aw,0,cw,ch);\n _xaxis.setBounds(aw,ch,cw,ah);\n _yaxis.setBounds(0,0,aw,ch);\n }",
"public void chart() {\r\n setLayout(new FlowLayout());\r\n String[] testNumbers = {\"LINEAR SEARCH\", \"TEST 1\", \"TEST 2\", \"TEST 3\", \"TEST 4\", \"TEST 5\", \"TEST 6\", \"TEST 7\", \"TEST 8\", \"TEST 9\", \"TEST 10\", \"AVERAGE\", \"STANDARD DEV.\"};\r\n Object[][] testResult = {{\"500\", lin[0][0], lin[0][1], lin[0][2], lin[0][3], lin[0][4], lin[0][5], lin[0][6], lin[0][7], lin[0][8], lin[0][0], linAvAndDev[0][0], linAvAndDev[0][1]},\r\n {\"10,000\", lin[1][0], lin[1][1], lin[1][2], lin[1][3], lin[1][4], lin[1][5], lin[1][6], lin[1][7], lin[1][8], lin[1][9], linAvAndDev[1][0], linAvAndDev[1][1]},\r\n {\"100,000\", lin[2][0], lin[2][1], lin[2][2], lin[2][3], lin[2][4], lin[2][5], lin[2][6], lin[2][7], lin[2][8], lin[2][9], linAvAndDev[2][0], linAvAndDev[2][1]},\r\n {\"1,000,000\", lin[3][0], lin[3][1], lin[3][2], lin[3][3], lin[3][4], lin[3][5], lin[3][6], lin[3][7], lin[3][8], lin[3][9], linAvAndDev[3][0], linAvAndDev[3][1]},\r\n {\"5,000,000\", lin[4][0], lin[4][1], lin[4][2], lin[4][3], lin[4][4], lin[4][5], lin[4][6], lin[4][7], lin[4][8], lin[4][9], linAvAndDev[4][0], linAvAndDev[4][1]},\r\n {\"7,000,000\", lin[5][0], lin[5][1], lin[5][2], lin[5][3], lin[5][4], lin[5][5], lin[5][6], lin[5][7], lin[5][8], lin[5][9], linAvAndDev[5][0], linAvAndDev[5][1]},\r\n {\"10,000,000\", lin[6][0], lin[6][1], lin[6][2], lin[6][3], lin[6][4], lin[6][5], lin[6][6], lin[6][7], lin[6][8], lin[6][9], linAvAndDev[6][0], linAvAndDev[6][1]},\r\n {\"BINARY SEARCH\", \"TEST 1\", \"TEST 2\", \"TEST 3\", \"TEST 4\", \"TEST 5\", \"TEST 6\", \"TEST 7\", \"TEST 8\", \"TEST 9\", \"TEST 10\", \"AVERAGE\", \"STANDARD DEV.\"},\r\n {\"500\", bin[0][0], bin[0][1], bin[0][2], bin[0][3], bin[0][4], bin[0][5], bin[0][6], bin[0][7], bin[0][8], bin[0][9], linAvAndDev[7][0], linAvAndDev[7][1]},\r\n {\"10,000\", bin[1][0], bin[1][1], bin[1][2], bin[1][3], bin[1][4], bin[1][5], bin[1][6], bin[1][7], bin[1][8], bin[1][9], linAvAndDev[8][0], linAvAndDev[8][1]},\r\n {\"100,000\", bin[2][0], bin[2][1], bin[2][2], bin[2][3], bin[2][4], bin[2][5], bin[2][6], bin[2][7], bin[2][8], bin[2][9], linAvAndDev[9][0], linAvAndDev[9][1]},\r\n {\"1,000,000\", bin[3][0], bin[3][1], bin[3][2], bin[3][3], bin[3][4], bin[3][5], bin[3][6], bin[3][7], bin[3][8], bin[3][9], linAvAndDev[10][0], linAvAndDev[10][1]},\r\n {\"5,000,000\", bin[4][0], bin[4][1], bin[4][2], bin[4][3], bin[4][4], bin[4][5], bin[4][6], bin[4][7], bin[4][8], bin[4][9], linAvAndDev[11][0], linAvAndDev[11][1]},\r\n {\"7,000,000\", bin[5][0], bin[5][1], bin[5][2], bin[5][3], bin[5][4], bin[5][5], bin[5][6], bin[5][7], bin[5][8], bin[5][9], linAvAndDev[12][0], linAvAndDev[12][1]},\r\n {\"10,000,000\", bin[6][0], bin[6][1], bin[6][2], bin[6][3], bin[6][4], bin[6][5], bin[6][6], bin[6][7], bin[6][8], bin[6][9], linAvAndDev[13][0], linAvAndDev[13][1]}};\r\n chart = new JTable(testResult, testNumbers);\r\n chart.setPreferredScrollableViewportSize(new Dimension(1500, 500)); // SETS SIZE OF CHART.\r\n chart.setFillsViewportHeight(true);\r\n JScrollPane scrollPane = new JScrollPane(chart);\r\n add(scrollPane);\r\n }",
"public void setArea(String area) {\n this.area = area;\n }",
"private static JFreeChart createChart(CategoryDataset dataset) {\n JFreeChart chart = ChartFactory.createLineChart(\n \"Line Chart\", null /* x-axis label*/, \n \"Range\" /* y-axis label */, dataset);\n chart.addSubtitle(new TextTitle(\" Its is generated to show patient History \" \n ));\n chart.setBackgroundPaint(Color.white);\n CategoryPlot plot = (CategoryPlot) chart.getPlot();\n\tNumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n // Line renderer = (BarRenderer) plot.getRenderer();\n // renderer.setDrawBarOutline(false);\n // LineAndShapeRenderer renderer = (LineAndShapeRenderer) plot.getRenderer(); \n//renderer.setItemMargin(3); \n//renderer.setItemLabelsVisible(true);\n chart.getLegend().setFrame(BlockBorder.NONE);\n return chart;\n }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n public void createNewLineChart() {\n\n ArrayList<Entry> yValues = new ArrayList<>();\n yValues.clear();\n\n //Todays Date\n Date date = new Date();\n LocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n// String currentMonth = getMonthForInt(localDate.getMonthValue());\n if (monthSelectedAsInt > localDate.getMonthValue()){\n yValues.add(new Entry(0, 0));\n } else if (monthSelectedAsInt == localDate.getMonthValue()){\n for (int i = 1; i <= localDate.getDayOfMonth() ; i++) {\n yValues.add(new Entry(i, occupancyRate[i]));\n }\n } else {\n for (int i = 1; i <= numberOfDays ; i++) {\n yValues.add(new Entry(i, occupancyRate[i]));\n }\n }\n\n //chart.setOnChartValueSelectedListener(this);\n\n // enable scaling and dragging\n chart.setDragEnabled(true);\n chart.setScaleEnabled(true);\n\n // if disabled, scaling can be done on x- and y-axis separately\n chart.setPinchZoom(false);\n\n LineDataSet set1;\n\n set1 = new LineDataSet(yValues, \"Occupany Rate \");\n set1.setDrawCircles(false);\n set1.setDrawValues(false);\n set1.setColor(Color.RED);\n\n ArrayList <ILineDataSet> dataSets = new ArrayList<>();\n dataSets.add(set1);\n LineData dataLine = new LineData(set1);\n chart.getDescription().setEnabled(false);\n chart.getXAxis().setTextSize(10f);\n chart.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);\n\n chart.getAxisLeft().setAxisMinimum(0);\n chart.getAxisLeft().setAxisMaximum(100);\n chart.getAxisRight().setAxisMinimum(0);\n chart.getAxisRight().setAxisMaximum(100);\n chart.getXAxis().setAxisMinimum(1);\n chart.getXAxis().setAxisMaximum(numberOfDays);\n\n chart.setData(dataLine);\n chart.invalidate();\n }",
"public Area(ArrayList<Point> polygonPoints) {\n this.polygonPoints = polygonPoints;\n }",
"public void setArea(String area) {\n this.area = area;\n }",
"public double getArea(){\n return 0;\n }",
"public float getArea(){\n return area;\n\t}",
"boolean isDrawOnChartArea();",
"@Override\r\n\tpublic String toString() {\r\n\r\n\t\treturn \"My rectangle's Areas is \"+area();\r\n\t}",
"private void initialize() {\r\n\t\t//frame = new JFrame();\r\n\t\tframe.setSize(725, 482);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t//frame.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\tDefaultCategoryDataset dataset= new DefaultCategoryDataset();\r\n\t\t//JOptionPane.showMessageDialog(null, \"BUTTON CLICKED!!!\");\r\n\t\t//LableMessage.setText(\"BUTTON CLICKED!!!\");\r\n\t\t\r\n\t\t//Pain, Drowsiness, Nausea, Anxiety, and Depression\r\n\t\tdataset.setValue(2, \"day1\",\"Pain\");\r\n\t\tdataset.setValue(5, \"day2\",\"Pain\");\r\n\t\tdataset.setValue(4, \"day3\",\"Pain\");\r\n\t\tdataset.setValue(6, \"day1\", \"Drowsiness\");\r\n\t\tdataset.setValue(10, \"day2\", \"Drowsiness\");\r\n\t\tdataset.setValue(8, \"day3\", \"Drowsiness\");\r\n\t\tdataset.setValue(1, \"day1\", \"Nausea\");\r\n\t\tdataset.setValue(7, \"day2\", \"Nausea\");\r\n\t\tdataset.setValue(5, \"day3\", \"Nausea\");\r\n\t\tdataset.setValue(3,\"day1\",\"Anxiety\");\t\r\n\t\tdataset.setValue(8,\"day2\",\"Anxiety\");\r\n\t\tdataset.setValue(9,\"day3\",\"Anxiety\");\r\n\t\tdataset.setValue(8, \"day1\", \"Depression\");\r\n\t\tdataset.setValue(7, \"day2\", \"Depression\");\r\n\t\tdataset.setValue(9, \"day3\", \"Depression\");\r\n\t\tint test[] = new int[7];\r\n\t\tfor (int i=0;i<7; i++)\r\n\t\t{\r\n\t\t\ttest[i]=5;\r\n\t\t}\r\n\t\tDefaultCategoryDataset dataset2= new DefaultCategoryDataset();\r\n\t\t//dataset2 = dataSetInit(P1.getEnterSymptomLevel(),P1.getPreviousSymptomLevel1(),P1.getPreviousSymptomLevel2());\r\n\t\tdataset2 = dataSetInit(test,test,test);\r\n\t\t//P1.getEnter\r\n\t\t//DefaultCategoryDataset dataset2= new DefaultCategoryDataset();\r\n\r\n\t\t//JFreeChart chart= ChartFactory.createBarChart(P1.firstName+\" \"+P1.lastName,\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\r\n\t\tJFreeChart chart= ChartFactory.createBarChart3D(\"Symptom Report\",\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,true,true,true);\r\n\t\t//JFreeChart chart2= ChartFactory.createBarChart(\"Symptom Report\",\"Symptoms\", \"Levels\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\t\tchart.setBackgroundPaint(Color.lightGray);\r\n\t\t//JFreeChart chart2= ChartFactory.createBarChart(\"Grade Report\",\"Student Name\", \"Marks\", dataset2, PlotOrientation.VERTICAL,false,true,false);\r\n\t\t\r\n\t\tChartPanel chartPanel = new ChartPanel(chart);\r\n\t\tchartPanel.setPreferredSize(new Dimension(700,350));\r\n\t\tPan.add(chartPanel);\r\n\t\t\r\n\t\tframe.getContentPane().add(Pan);\r\n\t\tCategoryPlot p=chart.getCategoryPlot();\r\n\t\tp.setRangeGridlinePaint(Color.red);\r\n\t\tp.setBackgroundPaint(Color.WHITE);\r\n\t\tframe.setVisible(true);\r\n//\t\tChartFrame frame= new ChartFrame(\"Bar Graph Test\",chart,false);\r\n//\t\t\r\n//\t\tframe.setVisible(true);\r\n//\t\tframe.setSize(700,350);\r\n//\t\tframe.setResizable(false);\r\n\t\t//frame2 =new JFrame()\r\n\t}",
"@Override\n public double area() {\n return width * length;\n }",
"public Rectangle getArea() {\n return area;\n }",
"public float get_area() {\r\n return 0;\r\n }",
"public com.example.grpc.SimpleServiceOuterClass.Area.Builder addAreaBuilder() {\n return getAreaFieldBuilder().addBuilder(\n com.example.grpc.SimpleServiceOuterClass.Area.getDefaultInstance());\n }",
"public com.example.grpc.SimpleServiceOuterClass.Area.Builder addAreaBuilder() {\n return getAreaFieldBuilder().addBuilder(\n com.example.grpc.SimpleServiceOuterClass.Area.getDefaultInstance());\n }",
"public com.example.grpc.SimpleServiceOuterClass.Area.Builder addAreaBuilder() {\n return getAreaFieldBuilder().addBuilder(\n com.example.grpc.SimpleServiceOuterClass.Area.getDefaultInstance());\n }",
"public Parent createBarGraph(ObservableList<HappinessReport> data) {\n xAxis = new CategoryAxis();\n xAxis.setLabel(\"Country\");\n //Yaxis Creation\n yAxis = new NumberAxis();\n yAxis.setLabel(\"Score\");\n //Chart Creation\n barchart = new BarChart<>(xAxis, yAxis);\n barchart.setTitle(\"Horizontal Bar Chart Example\");\n //Country and Score Data load into chart\n for (int intx = 0; intx < data.size(); intx++) {\n XYChart.Series barChartSeries = new XYChart.Series<>();\n barChartSeries.getData().add(new XYChart.Data(String.valueOf(data.get(intx).getCountry()), data.get(intx).getScore()));\n barchart.getData().add(barChartSeries);\n }\n barchart.setTitle(\"Horizontal Bar Chart Example\");\n barchart.setLegendVisible(false);\n return barchart;\n }",
"public String getArea() {\n return area;\n }",
"private void createchart() {\n int successcount = 0;\n int failedcount = 0;\n \n DefaultPieDataset barchartdata = new DefaultPieDataset();\n \n if(system == null && enterprise == null){\n for(Enterprise ent: network.getEnterpriseDirectory().getEnterpriseList()){\n for(WorkRequest request: ent.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n }\n else if(network == null && enterprise == null){\n for(Network net: system.getNetworkList()){\n for(Enterprise ent: net.getEnterpriseDirectory().getEnterpriseList()){\n for(WorkRequest request: ent.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n }\n }\n else{\n for(WorkRequest request: enterprise.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n \n barchartdata.setValue( \"Successful Trials\",new Double(successcount));\n barchartdata.setValue(\"Failed trials\",new Double(failedcount));\n\n JFreeChart pieChart = ChartFactory.createPieChart(\"Successful versus failed trials\",barchartdata, false, true, false);\n final PiePlot plot=(PiePlot) pieChart.getPlot();\n ChartPanel barPanel = new ChartPanel(pieChart);\n\n dashboardpanel.removeAll();\n dashboardpanel.setLayout(new java.awt.BorderLayout());\n dashboardpanel.add(barPanel, BorderLayout.CENTER);\n dashboardpanel.validate();\n \n }",
"public BarChart() {\n\n\t\t//set the initial size of the store for curve data\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tcvV.add(new CurveData());\n\t\t}\n\n\t\tbarChartPanel.add(GP, BorderLayout.CENTER);\n\n\t\tBorder etchedBorder = BorderFactory.createEtchedBorder();\n\t\tborder = BorderFactory.createTitledBorder(etchedBorder, \"Title\");\n\t\tborder.setTitleColor(Color.blue);\n\t\tbarChartPanel.setBorder(border);\n\n\t\tMarkerFormat = new MarkerFormat(barColumns);\n\n\t\tGP.setSmartGL(false);\n\t\tGP.setNumberFormatX(MarkerFormat);\n\n\t\tGP.addHorLimitsListener(\n\t\t\t\t\t\t\t\tnew ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tint nClmns = barColumns.size();\n\t\t\t\tint nMaxLines = 0;\n\t\t\t\tjava.util.Iterator<BarColumn> itr = barColumns.iterator();\n\t\t\t\twhile (itr.hasNext()) {\n\t\t\t\t\tBarColumn bc = itr.next();\n\t\t\t\t\tif (nMaxLines < bc.size()) {\n\t\t\t\t\t\tnMaxLines = bc.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (nClmns > 0 && nMaxLines > 0) {\n\t\t\t\t\t//int iMin = GP.getScreenX(GP.getCurrentMinX());\n\t\t\t\t\t//int iMax = GP.getScreenX(GP.getCurrentMaxX());\n\t\t\t\t\tint iMin = GP.getScreenX(GP.getInnerMinX());\n\t\t\t\t\tint iMax = GP.getScreenX(GP.getInnerMaxX());\n\n\t\t\t\t\twidth = (int) ((iMax - iMin) / (1.9 * nMaxLines * nClmns));\n\t\t\t\t\tif (width < 1) {\n\t\t\t\t\t\twidth = 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int i = 1, n = Math.min(nClmns * nMaxLines + 1, cvV.size()); i < n; i++) {\n\t\t\t\t\t\tCurveData cd = cvV.get(i);\n\t\t\t\t\t\tcd.setLineWidth(width);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tRunnable runRefresh =\n\t\t\t\tnew Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tGP.refreshGraphJPanel();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread mThread = new Thread(runRefresh);\n\t\t\t\tmThread.start();\n\t\t\t}\n\t\t});\n\n\t\t//operations with clicked point object\n\t\tJLabel infoLabel = new JLabel(\" Clicked Point Info: \", JLabel.CENTER);\n\n\t\tFunctionGraphsJPanel.ClickedPoint cpObj = GP.getClickedPointObject();\n\t\tcpObj.xValueLabel = new JLabel(\"X-Marker=\", JLabel.RIGHT);\n\t\tcpObj.xValueFormat = MarkerFormat;\n\t\tcpObj.xValueText = new JTextField(10);\n\t\tcpObj.xValueText.setHorizontalAlignment(JTextField.CENTER);\n\t\tcpObj.xValueText.setForeground(Color.blue);\n\n\t\tcpObj.yValueLabel = new JLabel(\" Value=\", JLabel.RIGHT);\n\t\tcpObj.yValueFormat = fortranFrmt;\n\t\tcpObj.yValueText = new JTextField(12);\n\t\tcpObj.yValueText.setHorizontalAlignment(JTextField.CENTER);\n\t\tcpObj.yValueText.setForeground(Color.blue);\n\n\t\tJPanel infoPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 0));\n\t\tinfoPanel.add(infoLabel);\n\t\tinfoPanel.add(cpObj.xValueLabel);\n\t\tinfoPanel.add(cpObj.xValueText);\n\t\tinfoPanel.add(cpObj.yValueLabel);\n\t\tinfoPanel.add(cpObj.yValueText);\n\n\t\tbarChartPanel.add(infoPanel, BorderLayout.SOUTH);\n\t}",
"@Override\r\n public double getArea() {\r\n return (0.5 * (base * height));\r\n }",
"public void generateChart(){\n String[][] contents = retrieveFields();\n\n// String msg = \"test - \";\n// printCells(contents);\n\n String[] houseDisplay = new String[12];\n houseDisplay = new String[]{\"6\",\"4\",\"2\",\"1\",\"4\",\"6\",\"3\",\"5\",\"7/8\",\"\",\"5\",\"3\"};\n display(houseDisplay);\n }",
"@Override\n\tpublic double getArea()\n\t{\n\t\treturn isAtivado() ? calculaArea(getDiametro()) : 0.0;\n\t}",
"@Override\n public double obtenerArea(){\n return c.obtenerArea() * 4;\n }",
"public Builder addAllArea(\n java.lang.Iterable<? extends com.example.grpc.SimpleServiceOuterClass.Area> values) {\n if (areaBuilder_ == null) {\n ensureAreaIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, area_);\n onChanged();\n } else {\n areaBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public Builder addAllArea(\n java.lang.Iterable<? extends com.example.grpc.SimpleServiceOuterClass.Area> values) {\n if (areaBuilder_ == null) {\n ensureAreaIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, area_);\n onChanged();\n } else {\n areaBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public Builder addAllArea(\n java.lang.Iterable<? extends com.example.grpc.SimpleServiceOuterClass.Area> values) {\n if (areaBuilder_ == null) {\n ensureAreaIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, area_);\n onChanged();\n } else {\n areaBuilder_.addAllMessages(values);\n }\n return this;\n }",
"public void drawChart() {\n ArrayList<Entry> confuse = new ArrayList<>();\n ArrayList<Entry> attention = new ArrayList<>();\n ArrayList<Entry> engagement = new ArrayList<>();\n ArrayList<Entry> joy = new ArrayList<>();\n ArrayList<Entry> valence = new ArrayList<>();\n // point = \"Brow Furrow: \\n\";\n String dum = null, dum2 = null;\n for (int i = 0; i < size; i++) {\n //point += (\"\" + Emotion.getBrowFurrow(i).getL() + \" seconds reading of \" + Emotion.getBrowFurrow(i).getR() + \"\\n\");\n dum2 = Emotion.getBrowFurrow(i).getL().toString();\n dum = Emotion.getBrowFurrow(i).getR().toString();\n confuse.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getAttention(i).getL().toString();\n dum = Emotion.getAttention(i).getR().toString();\n attention.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getEngagement(i).getL().toString();\n dum = Emotion.getEngagement(i).getR().toString();\n engagement.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getJoy(i).getL().toString();\n dum = Emotion.getJoy(i).getR().toString();\n joy.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getValence(i).getL().toString();\n dum = Emotion.getValence(i).getR().toString();\n valence.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n }\n\n LineDataSet data1 = new LineDataSet(confuse,\"Confuse\");\n LineDataSet data2 = new LineDataSet(attention,\"Attention\");\n LineDataSet data3 = new LineDataSet(engagement,\"Engagement\");\n LineDataSet data4 = new LineDataSet(joy,\"Engagement\");\n LineDataSet data5 = new LineDataSet(valence,\"Valence\");\n data1.setColor(Color.BLUE);\n data1.setDrawCircles(false);\n data2.setColor(Color.YELLOW);\n data2.setDrawCircles(false);\n data3.setColor(Color.GRAY);\n data3.setDrawCircles(false);\n data4.setColor(Color.MAGENTA);\n data4.setDrawCircles(false);\n data5.setColor(Color.GREEN);\n data5.setDrawCircles(false);\n\n\n dataSets.add(data1);\n dataSets.add(data2);\n dataSets.add(data3);\n dataSets.add(data4);\n dataSets.add(data5);\n }"
] | [
"0.7139235",
"0.6688046",
"0.6643608",
"0.6449961",
"0.63709074",
"0.62746215",
"0.624772",
"0.62017655",
"0.62017655",
"0.62017655",
"0.6162636",
"0.6118251",
"0.60937494",
"0.6082745",
"0.6058724",
"0.6058724",
"0.60376436",
"0.5999511",
"0.59941983",
"0.59941983",
"0.59941983",
"0.5959291",
"0.5941648",
"0.5939208",
"0.59349257",
"0.58931744",
"0.5843847",
"0.5822478",
"0.5814705",
"0.5811534",
"0.58024794",
"0.58024794",
"0.5800511",
"0.57984024",
"0.57669914",
"0.5753055",
"0.5744728",
"0.5741017",
"0.5739735",
"0.57141554",
"0.5698212",
"0.569551",
"0.569551",
"0.569551",
"0.569551",
"0.5690914",
"0.56890327",
"0.5682747",
"0.5675128",
"0.56631094",
"0.5654389",
"0.56538874",
"0.564742",
"0.5647315",
"0.564222",
"0.5634446",
"0.5633019",
"0.56133443",
"0.5611716",
"0.5610558",
"0.56102145",
"0.55988187",
"0.55877626",
"0.55863786",
"0.5578896",
"0.5578896",
"0.5578896",
"0.5574422",
"0.5572582",
"0.55693215",
"0.55645955",
"0.5559041",
"0.55548066",
"0.55463284",
"0.5545235",
"0.5544528",
"0.5533738",
"0.55271935",
"0.55221987",
"0.5518153",
"0.55152637",
"0.55083704",
"0.55077606",
"0.55038184",
"0.5493825",
"0.5489148",
"0.5489148",
"0.5489148",
"0.5481777",
"0.5475741",
"0.54742247",
"0.54738224",
"0.54734015",
"0.5472641",
"0.54669684",
"0.5465444",
"0.5462176",
"0.5462176",
"0.5462176",
"0.54612476"
] | 0.6615951 | 3 |
Unit test used to test AreaChart class. | public static void main(String args[]){
DataSet testdataset = new DataSet();
File inputfile = new File("test.csv");
testdataset.BuildDataSet(inputfile);
System.out.println("AreaChart:: AreaChart()");
AreaChart testAreaChart = new AreaChart(testdataset);
System.out.println("AreaChart::BarChart()- Test Passed");
System.out.println("AreaChart:: MakeChart()");
testAreaChart.MakeChart();
System.out.println("AreaChart::MakeChart()- Test Passed");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void CanvasChartTest() {\n }",
"public void testArea () throws Exception {\n AreaClient client = new AreaClient();\n double area = client.areaCircle(4.0);\n assertEquals (50.265, area, .5);\n }",
"public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}",
"@Test\n public void test64() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n Layer layer0 = Layer.FOREGROUND;\n RectangleInsets rectangleInsets0 = combinedRangeCategoryPlot0.getAxisOffset();\n combinedRangeCategoryPlot0.setInsets(rectangleInsets0, true);\n Collection collection0 = combinedRangeCategoryPlot0.getRangeMarkers(layer0);\n combinedRangeCategoryPlot0.clearRangeMarkers(0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation(0);\n combinedRangeCategoryPlot0.setRangeAxisLocation(0, axisLocation0, true);\n AreaRenderer areaRenderer0 = new AreaRenderer();\n // Undeclared exception!\n try { \n combinedRangeCategoryPlot0.setRenderer((-1), (CategoryItemRenderer) areaRenderer0);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }",
"@Test\n public void test84() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.configureRangeAxes();\n CategoryPointerAnnotation categoryPointerAnnotation0 = new CategoryPointerAnnotation(\"\", (Comparable) \"\", 1653.4428727988002, 5.0);\n categoryPointerAnnotation0.setCategory(\"\");\n categoryPlot0.addAnnotation(categoryPointerAnnotation0);\n LogAxis logAxis0 = new LogAxis();\n AxisChangeEvent axisChangeEvent0 = new AxisChangeEvent((Axis) logAxis0);\n JFreeChart jFreeChart0 = axisChangeEvent0.getChart();\n PolarChartPanel polarChartPanel0 = null;\n try {\n polarChartPanel0 = new PolarChartPanel((JFreeChart) null, false);\n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.jfree.chart.PolarChartPanel\", e);\n }\n }",
"public AreaChart(DataSet inputdataset) {\n\t\tsuper.setDataset(inputdataset);\n\t}",
"@Test\n void area_square_test_1(){\n double area = calc.areaSquare(10);\n assert area == 100;\n }",
"@Test\n public void test31() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n combinedDomainCategoryPlot0.setAnchorValue(2191.3904);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(2191.3904, (-1506.5146538784184), (-1506.5146538784184), 1734.5430998130028);\n double double0 = rectangle2D_Double0.getX();\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getDefault();\n TimeSeriesCollection timeSeriesCollection0 = new TimeSeriesCollection((TimeZone) zoneInfo0);\n Range range0 = timeSeriesCollection0.getDomainBounds(false);\n ModuloAxis moduloAxis0 = new ModuloAxis((String) null, (Range) null);\n int int0 = combinedDomainCategoryPlot0.getRangeAxisIndex(moduloAxis0);\n }",
"@Test\n public void test28() throws Throwable {\n double[][] doubleArray0 = new double[4][3];\n double[] doubleArray1 = new double[0];\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[1];\n doubleArray2[0] = 4394.831255689545;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[5];\n doubleArray3[0] = 4394.831255689545;\n doubleArray3[1] = 4394.831255689545;\n doubleArray3[2] = 4394.831255689545;\n doubleArray3[3] = 4394.831255689545;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[3];\n doubleArray4[0] = 4394.831255689545;\n doubleArray4[1] = 4394.831255689545;\n doubleArray0[3] = doubleArray4;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(doubleArray0, doubleArray0);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"org.jfree.data.xy.DefaultWindDataset\");\n Month month0 = new Month();\n ZoneOffset zoneOffset0 = ZoneOffset.MAX;\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getTimeZone((ZoneId) zoneOffset0);\n PeriodAxis periodAxis0 = new PeriodAxis(\"'Ypi)?q\", (RegularTimePeriod) month0, (RegularTimePeriod) month0, (TimeZone) zoneInfo0);\n LayeredBarRenderer layeredBarRenderer0 = new LayeredBarRenderer();\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, (CategoryAxis) categoryAxis3D0, (ValueAxis) periodAxis0, (CategoryItemRenderer) layeredBarRenderer0);\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n CategoryItemRendererState categoryItemRendererState0 = new CategoryItemRendererState(plotRenderingInfo0);\n StandardEntityCollection standardEntityCollection0 = (StandardEntityCollection)categoryItemRendererState0.getEntityCollection();\n ChartRenderingInfo chartRenderingInfo1 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo1 = chartRenderingInfo1.getPlotInfo();\n categoryPlot0.zoomRangeAxes(4394.831255689545, plotRenderingInfo1, (Point2D) null, false);\n }",
"@Test\n public void test42() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.mapDatasetToDomainAxis(3699, 2);\n }",
"@Test\n public void test73() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"jhpWb\\\"F\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n ExtendedCategoryAxis extendedCategoryAxis1 = (ExtendedCategoryAxis)combinedDomainCategoryPlot0.getDomainAxisForDataset(777);\n List list0 = combinedDomainCategoryPlot0.getCategories();\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n rectangle2D_Double0.setFrameFromDiagonal(4364.40135, 0.0, (double) 777, (double) 777);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)plotRenderingInfo0.getDataArea();\n rectangle2D_Double0.setRect((Rectangle2D) rectangle2D_Double1);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getDomainAxisEdge();\n }",
"@Test\n public void test13() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) null);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedDomainCategoryPlot0.getDomainMarkers(layer0);\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getDomainAxisLocation();\n combinedDomainCategoryPlot0.setDomainAxis(1, (CategoryAxis) null);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((double) 1, (double) 1, (double) 1, 0.0);\n Rectangle2D.Float rectangle2D_Float0 = new Rectangle2D.Float();\n AxisChangeEvent axisChangeEvent0 = null;\n try {\n axisChangeEvent0 = new AxisChangeEvent((Axis) null);\n } catch(IllegalArgumentException e) {\n //\n // null source\n //\n assertThrownBy(\"java.util.EventObject\", e);\n }\n }",
"public Rectangle getChartArea() {\n return chartArea;\n }",
"@Test\n public void test81() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot1 = new CombinedDomainCategoryPlot();\n combinedDomainCategoryPlot0.addChangeListener(combinedDomainCategoryPlot1);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getRangeAxisEdge();\n JDBCCategoryDataset jDBCCategoryDataset0 = null;\n try {\n jDBCCategoryDataset0 = new JDBCCategoryDataset(\"\", \"Null 'seriesKey' argument.\", \"\", \"Null 'seriesKey' argument.\");\n } catch(ClassNotFoundException e) {\n }\n }",
"@Test\n public void test64() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n CategoryDataset categoryDataset0 = categoryPlot0.getDataset(557);\n }",
"public interface AreaChart extends Graph {\n}",
"@Test\n public void test65() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n rectangle2D_Double0.y = 0.0;\n categoryPlot0.setRangeGridlinesVisible(false);\n Line2D.Double line2D_Double0 = new Line2D.Double(0.0, 0.0, 0.0, 4.0);\n line2D_Double0.y1 = 0.0;\n Rectangle2D.Double rectangle2D_Double1 = new Rectangle2D.Double();\n rectangle2D_Double1.setFrameFromDiagonal(0.0, 6.0, 0.0, 0.0);\n double double0 = rectangle2D_Double1.y;\n ValueAxis[] valueAxisArray0 = new ValueAxis[4];\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"\");\n valueAxisArray0[0] = (ValueAxis) numberAxis3D0;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, \"+k\");\n Range range0 = numberAxis3D0.getRange();\n valueAxisArray0[1] = (ValueAxis) cyclicNumberAxis0;\n CyclicNumberAxis cyclicNumberAxis1 = new CyclicNumberAxis((-641.9), \"uLBz=!Lx,@4\");\n valueAxisArray0[2] = (ValueAxis) cyclicNumberAxis1;\n PeriodAxis periodAxis0 = null;\n try {\n periodAxis0 = new PeriodAxis(\"\", (RegularTimePeriod) null, (RegularTimePeriod) null);\n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.jfree.chart.axis.PeriodAxis\", e);\n }\n }",
"@Test\n public void test21() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\" twtGuHO\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n Polygon polygon0 = new Polygon();\n Rectangle rectangle0 = polygon0.getBounds();\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n List list0 = defaultKeyedValuesDataset0.getKeys();\n combinedDomainCategoryPlot0.drawRangeGridlines((Graphics2D) null, rectangle0, list0);\n rectangle0.height = (-2538);\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeZoomable();\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) list0, (Dataset) defaultKeyedValuesDataset0);\n combinedDomainCategoryPlot0.datasetChanged(datasetChangeEvent0);\n RectangleInsets rectangleInsets0 = new RectangleInsets();\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n }",
"@Test\n public void test20() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\" twtGuHO\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n Polygon polygon0 = new Polygon();\n DefaultKeyedValuesDataset defaultKeyedValuesDataset0 = new DefaultKeyedValuesDataset();\n List list0 = defaultKeyedValuesDataset0.getKeys();\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeZoomable();\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) list0, (Dataset) defaultKeyedValuesDataset0);\n combinedDomainCategoryPlot0.datasetChanged(datasetChangeEvent0);\n RectangleInsets rectangleInsets0 = new RectangleInsets();\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n }",
"@Test\n public void testGetArea() {\n System.out.println(\"getArea\");\n Cuadrado instance = null;\n instance.getArea();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void test55() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n DefaultCategoryItemRenderer defaultCategoryItemRenderer0 = new DefaultCategoryItemRenderer();\n boolean boolean0 = categoryAxis0.equals(defaultCategoryItemRenderer0);\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_LEFT;\n combinedDomainCategoryPlot0.setDomainAxisLocation(axisLocation0, false);\n combinedDomainCategoryPlot0.setDomainAxisLocation(0, axisLocation0, false);\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n defaultPolarItemRenderer0.setAutoPopulateSeriesPaint(true);\n categoryAxis0.setCategoryLabelPositionOffset(1378);\n BasicStroke basicStroke0 = (BasicStroke)defaultPolarItemRenderer0.getItemStroke(0, 0);\n MockPrintStream mockPrintStream0 = null;\n try {\n mockPrintStream0 = new MockPrintStream(\"\", \"\");\n } catch(FileNotFoundException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.evosuite.runtime.mock.java.io.MockFileOutputStream\", e);\n }\n }",
"@Test\n public void test36() throws Throwable {\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"Null 'location' for index 0 not permitted.\");\n PiePlot piePlot0 = new PiePlot();\n RectangleInsets rectangleInsets0 = piePlot0.getSimpleLabelOffset();\n subCategoryAxis0.setLabelInsets(rectangleInsets0);\n subCategoryAxis0.setTickMarkOutsideLength(Float.NEGATIVE_INFINITY);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) subCategoryAxis0);\n boolean boolean0 = combinedDomainCategoryPlot0.equals(\"Null 'location' for index 0 not permitted.\");\n }",
"@Test\n public void test67() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n DatasetRenderingOrder datasetRenderingOrder0 = DatasetRenderingOrder.FORWARD;\n combinedRangeCategoryPlot0.setDatasetRenderingOrder(datasetRenderingOrder0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n CategoryAxis categoryAxis0 = combinedRangeCategoryPlot0.getDomainAxis();\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n Number[][] numberArray0 = new Number[3][5];\n Number[] numberArray1 = new Number[5];\n double double0 = SpiderWebPlot.DEFAULT_AXIS_LABEL_GAP;\n numberArray1[0] = (Number) 0.1;\n int int0 = SystemColor.INFO;\n numberArray1[1] = (Number) 24;\n int int1 = TransferHandler.MOVE;\n numberArray1[2] = (Number) 2;\n int int2 = MockThread.MIN_PRIORITY;\n numberArray1[3] = (Number) 1;\n int int3 = ColorSpace.TYPE_ACLR;\n numberArray1[4] = (Number) 20;\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[2];\n byte byte0 = Character.CONTROL;\n numberArray2[0] = (Number) (byte)15;\n int int4 = ThermometerPlot.BULB_DIAMETER;\n numberArray2[1] = (Number) 80;\n numberArray0[1] = numberArray2;\n Number[] numberArray3 = new Number[8];\n Object[][][] objectArray0 = new Object[2][8][7];\n objectArray0[0] = (Object[][]) numberArray0;\n objectArray0[1] = (Object[][]) numberArray0;\n DefaultWindDataset defaultWindDataset0 = null;\n try {\n defaultWindDataset0 = new DefaultWindDataset(objectArray0);\n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n assertThrownBy(\"org.jfree.data.xy.DefaultWindDataset\", e);\n }\n }",
"@Test\n public void test76() throws Throwable {\n SimpleTimeZone simpleTimeZone0 = new SimpleTimeZone((-614), \"\", 0, 0, 0, (-1), 0, 0, 3473, (-1));\n DateAxis dateAxis0 = new DateAxis(\"\", (TimeZone) simpleTimeZone0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) dateAxis0);\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n CombinedRangeXYPlot combinedRangeXYPlot0 = new CombinedRangeXYPlot((ValueAxis) dateAxis0);\n BasicStroke basicStroke0 = (BasicStroke)combinedRangeXYPlot0.getDomainZeroBaselineStroke();\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n PipedOutputStream pipedOutputStream0 = new PipedOutputStream(pipedInputStream0);\n DataOutputStream dataOutputStream0 = new DataOutputStream((OutputStream) pipedOutputStream0);\n ObjectOutputStream objectOutputStream0 = new ObjectOutputStream((OutputStream) dataOutputStream0);\n SerialUtilities.writeStroke(basicStroke0, objectOutputStream0);\n SystemColor systemColor0 = SystemColor.text;\n LookupPaintScale lookupPaintScale0 = new LookupPaintScale((double) 0, 1955.7194307587054, (Paint) systemColor0);\n PaintScaleLegend paintScaleLegend0 = new PaintScaleLegend((PaintScale) lookupPaintScale0, (ValueAxis) dateAxis0);\n AxisLocation axisLocation0 = paintScaleLegend0.getAxisLocation();\n combinedRangeCategoryPlot0.setDomainAxisLocation(334, axisLocation0);\n }",
"@Test\r\n\tpublic void testArea() {\r\n\t\tint area = LENGTH * WIDTH;\r\n\t\tassertEquals(area, validRectangle.area());\r\n\t}",
"@Test\n public void test29() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.setRangeGridlinesVisible(true);\n JFreeChart jFreeChart0 = new JFreeChart((Plot) combinedRangeCategoryPlot0);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, 0, 0, 0, 0, 24, 0, true, true, true, true, false, false);\n chartPanel0.transferFocusBackward();\n Point point0 = chartPanel0.getLocation();\n Line2D.Double line2D_Double0 = new Line2D.Double((Point2D) point0, (Point2D) point0);\n line2D_Double0.y1 = (double) 0;\n DefaultCategoryItemRenderer defaultCategoryItemRenderer0 = new DefaultCategoryItemRenderer();\n boolean boolean0 = jFreeChart0.equals(defaultCategoryItemRenderer0);\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)line2D_Double0.getBounds2D();\n combinedRangeCategoryPlot0.setDrawSharedDomainAxis(false);\n combinedRangeCategoryPlot0.setWeight(0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n // Undeclared exception!\n try { \n jFreeChart0.createBufferedImage(0, 0, (double) 0, (-629.173823008773), chartRenderingInfo0);\n } catch(IllegalArgumentException e) {\n //\n // Width (0) and height (0) cannot be <= 0\n //\n assertThrownBy(\"java.awt.image.DirectColorModel\", e);\n }\n }",
"@Test\n public void test75() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.setOutlineVisible(true);\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_LEFT;\n AxisLocation axisLocation1 = AxisLocation.getOpposite(axisLocation0);\n AxisLocation axisLocation2 = AxisLocation.getOpposite(axisLocation0);\n AxisLocation axisLocation3 = axisLocation0.getOpposite();\n AxisLocation axisLocation4 = axisLocation1.getOpposite();\n AxisLocation axisLocation5 = axisLocation1.getOpposite();\n categoryPlot0.setDomainAxisLocation(250, axisLocation1);\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"czTN0iV/\", (Comparable) \"czTN0iV/\", (double) 250);\n boolean boolean0 = categoryPlot0.removeAnnotation(categoryTextAnnotation0);\n CategoryAxis categoryAxis0 = categoryPlot0.getDomainAxis(141);\n Point2D.Float point2D_Float0 = new Point2D.Float();\n Line2D.Double line2D_Double0 = new Line2D.Double((Point2D) point2D_Float0, (Point2D) point2D_Float0);\n line2D_Double0.setLine((-1.7976931348623157E308), (-106.01161848), 0.0, 0.0);\n categoryPlot0.clearRangeMarkers(0);\n CategoryAxis categoryAxis1 = categoryPlot0.getDomainAxis(141);\n categoryPlot0.setAnchorValue((double) 0.0F);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((double) 0.0F, (-317.2753597282), (-801.8515819868048), (-106.01161848));\n }",
"@Test\n public void testCircleGetArea()\n {\n Circle c = new Circle(5.678, new Point(2, 3), Color.BLACK);\n\n assertEquals(101.2839543, c.getArea(), DELTA);\n }",
"@Test\n public void test26() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double();\n point2D_Double0.setLocation(2159.0, 2159.0);\n DefaultKeyedValues2DDataset defaultKeyedValues2DDataset0 = new DefaultKeyedValues2DDataset();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n NumberAxis3D numberAxis3D0 = new NumberAxis3D((String) null);\n DefaultCategoryItemRenderer defaultCategoryItemRenderer0 = new DefaultCategoryItemRenderer();\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultKeyedValues2DDataset0, (CategoryAxis) categoryAxis3D0, (ValueAxis) numberAxis3D0, (CategoryItemRenderer) defaultCategoryItemRenderer0);\n categoryPlot0.mapDatasetToRangeAxis(1, 1);\n Class<ExtendedCategoryAxis> class0 = ExtendedCategoryAxis.class;\n boolean boolean0 = SerialUtilities.isSerializable(class0);\n }",
"@Test\n public void test85() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, 0.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n RectangleEdge rectangleEdge0 = combinedRangeCategoryPlot0.getDomainAxisEdge(1248);\n List list0 = combinedRangeCategoryPlot0.getSubplots();\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_LEFT;\n combinedRangeCategoryPlot0.setDomainAxisLocation(0, axisLocation0, false);\n combinedRangeCategoryPlot0.setRangeCrosshairValue(0.18, false);\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n MultiplePiePlot multiplePiePlot0 = new MultiplePiePlot();\n JFreeChart jFreeChart0 = multiplePiePlot0.getPieChart();\n TextBlockAnchor textBlockAnchor0 = TextBlockAnchor.TOP_CENTER;\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getRangeMarkers(layer0);\n LineAndShapeRenderer lineAndShapeRenderer0 = new LineAndShapeRenderer();\n combinedRangeCategoryPlot0.setRenderer((CategoryItemRenderer) lineAndShapeRenderer0);\n combinedRangeCategoryPlot0.setAnchorValue(0.0, true);\n }",
"public testChart() {\n initComponents();\n }",
"@Test\n public void test32() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((-1505.20649), \"Category_Plot\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n SystemColor systemColor0 = SystemColor.text;\n BasicStroke basicStroke0 = (BasicStroke)CategoryPlot.DEFAULT_GRIDLINE_STROKE;\n ValueMarker valueMarker0 = new ValueMarker(4.0, (Paint) systemColor0, (Stroke) basicStroke0);\n MarkerChangeEvent markerChangeEvent0 = new MarkerChangeEvent((Marker) valueMarker0);\n combinedRangeCategoryPlot0.markerChanged(markerChangeEvent0);\n combinedRangeCategoryPlot0.setAnchorValue(1401.824847306, false);\n CategoryAxis categoryAxis0 = new CategoryAxis(\"Category_Plot\");\n combinedRangeCategoryPlot0.setDomainAxis(categoryAxis0);\n // Undeclared exception!\n try { \n combinedRangeCategoryPlot0.setDataset((-1030), (CategoryDataset) null);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }",
"@Test(groups = { \"data\", \"area\", \"functional\" }, dataProvider = \"cube-area\")\n\tpublic void testArea(int input, double AreaExpected) {\n\t\tSystem.out.print(\"testArea\");\n\t\tSystem.out.println(\" passed values are side=\" + input + \" AreaExpected=\" + AreaExpected);\n\n\t\tCube cube = new Cube(input);\n\t\tdouble result = cube.area();\n\t\tSystem.out.println(\"testArea result :\" + result + \" Expected: \" + AreaExpected);\n\t\tassertEquals(AreaExpected, result, 0.0);\n\t}",
"@Test\n public void test06() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n List list0 = categoryPlot0.getCategories();\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n statisticalBarRenderer0.setAutoPopulateSeriesOutlineStroke(true);\n BasicStroke basicStroke0 = (BasicStroke)statisticalBarRenderer0.lookupSeriesOutlineStroke(1143);\n statisticalBarRenderer0.setItemLabelAnchorOffset((-2697.5));\n categoryPlot0.setRangeCrosshairStroke(basicStroke0);\n ValueAxis valueAxis0 = categoryPlot0.getRangeAxis(1900);\n categoryPlot0.clearRangeMarkers(1143);\n double double0 = 20000.0;\n Font font0 = XYTextAnnotation.DEFAULT_FONT;\n JFreeChart jFreeChart0 = new JFreeChart(\"A{\", font0, (Plot) categoryPlot0, true);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, true);\n ChartRenderingInfo chartRenderingInfo0 = chartPanel0.getChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n // Undeclared exception!\n try { \n plotRenderingInfo0.getSubplotInfo(1900);\n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 1900, Size: 0\n //\n assertThrownBy(\"java.util.ArrayList\", e);\n }\n }",
"@Test\n public void test40() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n AxisSpace axisSpace0 = combinedDomainCategoryPlot0.getFixedRangeAxisSpace();\n JFreeChart jFreeChart0 = new JFreeChart(\",q3=\", (Plot) combinedDomainCategoryPlot0);\n PolarChartPanel polarChartPanel0 = null;\n try {\n polarChartPanel0 = new PolarChartPanel(jFreeChart0);\n } catch(IllegalArgumentException e) {\n //\n // plot is not a PolarPlot\n //\n assertThrownBy(\"org.jfree.chart.PolarChartPanel\", e);\n }\n }",
"@Test\n public void test72() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.mapDatasetToDomainAxis(304, 908);\n Point2D.Double point2D_Double0 = new Point2D.Double((double) 304, (double) 908);\n AxisLocation axisLocation0 = AxisLocation.TOP_OR_LEFT;\n combinedRangeCategoryPlot0.setRangeAxisLocation(908, axisLocation0);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"org.jfree.chart.annotations.XYBoxAnnotation\");\n combinedRangeCategoryPlot0.setDomainAxis((CategoryAxis) categoryAxis3D0);\n point2D_Double0.x = 4978.54542523173;\n String string0 = combinedRangeCategoryPlot0.getPlotType();\n ValueAxis[] valueAxisArray0 = new ValueAxis[6];\n DateAxis dateAxis0 = new DateAxis(\"org.jfree.chart.annotations.XYBoxAnnotation\");\n valueAxisArray0[0] = (ValueAxis) dateAxis0;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((-1.0), (double) 304);\n valueAxisArray0[1] = (ValueAxis) cyclicNumberAxis0;\n NumberAxis numberAxis0 = new NumberAxis(\"z)m!{V![\");\n valueAxisArray0[2] = (ValueAxis) numberAxis0;\n SimpleDateFormat simpleDateFormat0 = (SimpleDateFormat)DateFormat.getInstance();\n ZoneInfo zoneInfo0 = (ZoneInfo)simpleDateFormat0.getTimeZone();\n DateAxis dateAxis1 = new DateAxis(\"org.jfree.chart.annotations.XYBoxAnnotation\", (TimeZone) zoneInfo0);\n valueAxisArray0[3] = (ValueAxis) dateAxis1;\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset();\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n NumberAxis numberAxis1 = (NumberAxis)thermometerPlot0.getRangeAxis();\n valueAxisArray0[4] = (ValueAxis) numberAxis1;\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"z)m!{V![\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"%}~t|T'c.q2O/M@;Vu5\";\n stringArray0[3] = \"?_t}%h[qlt\";\n stringArray0[4] = \"z)m!{V![\";\n stringArray0[5] = \"z)m!{V![\";\n stringArray0[6] = \"d*%)TD6zCx!%m^]|\";\n }",
"@Test\n public void test82() throws Throwable {\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(10.0);\n MeterPlot meterPlot0 = new MeterPlot((ValueDataset) defaultValueDataset0);\n JFreeChart jFreeChart0 = new JFreeChart(\"8BNI=Ry\", (Plot) meterPlot0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n BasicStroke basicStroke0 = (BasicStroke)combinedRangeCategoryPlot0.getDomainGridlineStroke();\n }",
"@Test\n public void test45() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double();\n double double0 = line2D_Double0.getX2();\n CategoryPlot categoryPlot0 = new CategoryPlot();\n JFreeChart jFreeChart0 = new JFreeChart(\"\", (Plot) categoryPlot0);\n CategoryPlot categoryPlot1 = jFreeChart0.getCategoryPlot();\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"\", (Comparable) 0.0, 0.0);\n categoryPlot1.addAnnotation(categoryTextAnnotation0);\n }",
"@Test\n public void test12() throws Throwable {\n DefaultKeyedValues2DDataset defaultKeyedValues2DDataset0 = new DefaultKeyedValues2DDataset();\n CategoryAxis categoryAxis0 = new CategoryAxis(\"ma!!aV@/5:3\");\n NumberAxis numberAxis0 = new NumberAxis(\"w9!(d\");\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultKeyedValues2DDataset0, categoryAxis0, (ValueAxis) numberAxis0, (CategoryItemRenderer) null);\n AxisLocation axisLocation0 = categoryPlot0.getRangeAxisLocation((-4267));\n }",
"@Test\n public void test27() throws Throwable {\n PeriodAxis periodAxis0 = new PeriodAxis(\"org.jfree.data.general.WaferMapDataset\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) periodAxis0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation(52);\n StatisticalLineAndShapeRenderer statisticalLineAndShapeRenderer0 = new StatisticalLineAndShapeRenderer(true, true);\n StatisticalLineAndShapeRenderer statisticalLineAndShapeRenderer1 = (StatisticalLineAndShapeRenderer)statisticalLineAndShapeRenderer0.clone();\n int int0 = combinedRangeCategoryPlot0.getIndexOf(statisticalLineAndShapeRenderer0);\n SortOrder sortOrder0 = combinedRangeCategoryPlot0.getRowRenderingOrder();\n combinedRangeCategoryPlot0.setColumnRenderingOrder(sortOrder0);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getDomainMarkers(layer0);\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getDomainAxisLocation(23);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(10.0, (double) (-1), (double) 52, 10.0);\n JFreeChart jFreeChart0 = new JFreeChart(\"a@s4%C}8D{zFf7+[\", (Plot) combinedRangeCategoryPlot0);\n statisticalLineAndShapeRenderer0.setSeriesShapesFilled(4, false);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, true, false, true, false, true);\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)chartPanel0.getScreenDataArea(23, (-1));\n rectangle2D_Double0.setRect((Rectangle2D) rectangle2D_Double1);\n }",
"@Test\n public void test02() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(0.0, (-317.2908), (-2943.525478), 2896.89);\n TaskSeriesCollection taskSeriesCollection0 = new TaskSeriesCollection();\n CategoryAxis categoryAxis0 = new CategoryAxis();\n MultiplePiePlot multiplePiePlot0 = new MultiplePiePlot((CategoryDataset) taskSeriesCollection0);\n JFreeChart jFreeChart0 = multiplePiePlot0.getPieChart();\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, 3, 3, (-283), (-283), 125, (-283), true, true, false, true, false, true);\n BasicTreeUI basicTreeUI0 = new BasicTreeUI();\n BasicTreeUI.NodeDimensionsHandler basicTreeUI_NodeDimensionsHandler0 = basicTreeUI0.new NodeDimensionsHandler();\n SystemColor systemColor0 = SystemColor.activeCaption;\n LineBorder lineBorder0 = new LineBorder((Color) systemColor0);\n Rectangle rectangle0 = AbstractBorder.getInteriorRectangle((Component) chartPanel0, (Border) lineBorder0, 3, 0, 44, 70);\n Rectangle rectangle1 = basicTreeUI_NodeDimensionsHandler0.getNodeDimensions(taskSeriesCollection0, 0, 1999, true, rectangle0);\n Rectangle rectangle2 = chartPanel0.getBounds((Rectangle) null);\n boolean boolean0 = rectangle2D_Double0.contains((Rectangle2D) rectangle2);\n NumberAxis numberAxis0 = new NumberAxis();\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) taskSeriesCollection0, categoryAxis0, (ValueAxis) numberAxis0, (CategoryItemRenderer) null);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo((ChartRenderingInfo) null);\n CategoryItemRendererState categoryItemRendererState0 = new CategoryItemRendererState(plotRenderingInfo0);\n EntityCollection entityCollection0 = categoryItemRendererState0.getEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) null);\n PlotRenderingInfo plotRenderingInfo1 = chartRenderingInfo0.getPlotInfo();\n MultiListUI multiListUI0 = new MultiListUI();\n StatisticalLineAndShapeRenderer[] statisticalLineAndShapeRendererArray0 = new StatisticalLineAndShapeRenderer[0];\n boolean boolean1 = plotRenderingInfo0.equals((Object) null);\n JList<StatisticalLineAndShapeRenderer> jList0 = new JList<StatisticalLineAndShapeRenderer>(statisticalLineAndShapeRendererArray0);\n // Undeclared exception!\n try { \n multiListUI0.indexToLocation(jList0, 671);\n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n assertThrownBy(\"java.util.Vector\", e);\n }\n }",
"@Test\n public void test12() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n TextBlock textBlock0 = new TextBlock();\n TextBox textBox0 = new TextBox(textBlock0);\n RectangleInsets rectangleInsets0 = textBox0.getInteriorGap();\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n }",
"@Test\n public void test74() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n XYBlockRenderer xYBlockRenderer0 = new XYBlockRenderer();\n LookupPaintScale lookupPaintScale0 = (LookupPaintScale)xYBlockRenderer0.getPaintScale();\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"+C`~q\");\n PaintScaleLegend paintScaleLegend0 = new PaintScaleLegend((PaintScale) lookupPaintScale0, (ValueAxis) logarithmicAxis0);\n paintScaleLegend0.setStripWidth(0.0);\n AxisLocation axisLocation0 = paintScaleLegend0.getAxisLocation();\n combinedRangeCategoryPlot0.setDomainAxisLocation(axisLocation0, false);\n combinedRangeCategoryPlot0.setDrawSharedDomainAxis(true);\n BarRenderer barRenderer0 = new BarRenderer();\n combinedRangeCategoryPlot0.setRenderer(0, (CategoryItemRenderer) barRenderer0, true);\n DateAxis dateAxis0 = new DateAxis();\n CombinedRangeXYPlot combinedRangeXYPlot0 = new CombinedRangeXYPlot((ValueAxis) dateAxis0);\n UnitType unitType0 = UnitType.ABSOLUTE;\n RectangleInsets rectangleInsets0 = new RectangleInsets(unitType0, 0.0, 0.0, (double) 0, 0.0);\n combinedRangeCategoryPlot0.setAxisOffset(rectangleInsets0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n XYPlot xYPlot0 = combinedRangeXYPlot0.findSubplot(plotRenderingInfo0, point2D_Double0);\n }",
"@Test\n public void test39() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"Null 'info' argument.\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n PlotOrientation plotOrientation0 = PlotOrientation.HORIZONTAL;\n combinedDomainCategoryPlot0.setOrientation(plotOrientation0);\n AxisChangeEvent axisChangeEvent0 = new AxisChangeEvent((Axis) categoryAxis0);\n JFreeChart jFreeChart0 = axisChangeEvent0.getChart();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n }",
"@Test\n public void test61() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n categoryPlot0.setRangeGridlinesVisible(true);\n categoryPlot0.clearDomainAxes();\n JDBCXYDataset jDBCXYDataset0 = new JDBCXYDataset((Connection) null);\n MeterPlot meterPlot0 = new MeterPlot();\n JFreeChart jFreeChart0 = new JFreeChart((Plot) meterPlot0);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, true);\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"[*tQy\\\"Ir)|..\";\n stringArray0[1] = \".\";\n stringArray0[2] = \"org.jfree.chart.annotations.TextAnnotation\";\n stringArray0[3] = \"Category_Plot\";\n stringArray0[4] = \"mt1@^eqB0HF9rLg\";\n stringArray0[5] = \"B9t}^@/]9\";\n JFreeChart.main(stringArray0);\n boolean boolean0 = jDBCXYDataset0.hasListener(chartPanel0);\n jDBCXYDataset0.setTimeSeries(false);\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) categoryPlot0, (Dataset) jDBCXYDataset0);\n categoryPlot0.datasetChanged(datasetChangeEvent0);\n AxisLocation axisLocation0 = categoryPlot0.getDomainAxisLocation(0);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((double) 0, (double) 0, (-2820.4), (-2820.4));\n int int0 = rectangle2D_Double0.outcode((double) 0, (-2820.4));\n CategoryAxis categoryAxis0 = new CategoryAxis();\n categoryPlot0.setDomainAxis(15, categoryAxis0);\n }",
"public ChartTest() {\n initComponents();\n }",
"@Test\n public void test58() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n double double0 = rectangle2D_Double0.getWidth();\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) subCategoryAxis0);\n combinedDomainCategoryPlot0.rendererChanged((RendererChangeEvent) null);\n combinedDomainCategoryPlot0.setWeight((-1699));\n double double1 = combinedDomainCategoryPlot0.getRangeCrosshairValue();\n int int0 = combinedDomainCategoryPlot0.getDomainAxisCount();\n Collection collection0 = combinedDomainCategoryPlot0.getRangeMarkers((Layer) null);\n Color color0 = (Color)combinedDomainCategoryPlot0.getRangeCrosshairPaint();\n combinedDomainCategoryPlot0.mapDatasetToDomainAxis(1, (-1699));\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getDomainAxisLocation();\n Range range0 = combinedDomainCategoryPlot0.getDataRange((ValueAxis) null);\n combinedDomainCategoryPlot0.setRangeAxisLocation(axisLocation0, true);\n combinedDomainCategoryPlot0.rendererChanged((RendererChangeEvent) null);\n MockFile mockFile0 = new MockFile(\"$dhA|P=px%DHgW<3M\", \"$dhA|P=px%DHgW<3M\");\n MockFileInputStream mockFileInputStream0 = null;\n try {\n mockFileInputStream0 = new MockFileInputStream((File) mockFile0);\n } catch(FileNotFoundException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.evosuite.runtime.mock.java.io.MockFileInputStream\", e);\n }\n }",
"PlotAreaType createPlotAreaType();",
"@Test\n public void test05() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n List list0 = categoryPlot0.getAnnotations();\n JFreeChart jFreeChart0 = new JFreeChart((Plot) categoryPlot0);\n categoryPlot0.removeChangeListener(jFreeChart0);\n LogAxis logAxis0 = new LogAxis(\"\");\n categoryPlot0.setRangeAxis(0, (ValueAxis) logAxis0, false);\n Line2D.Double line2D_Double0 = new Line2D.Double(2679.0111898666, 0.0, 0.0, 1.0);\n double double0 = line2D_Double0.getY2();\n }",
"@Test\n public void test77() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getRangeAxisLocation((-2261));\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double((-1788.20871), 0.0, 0.0, 0.0);\n double double0 = rectangle2D_Double0.x;\n JDBCXYDataset jDBCXYDataset0 = new JDBCXYDataset((Connection) null);\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) rectangle2D_Double0, (Dataset) jDBCXYDataset0);\n combinedDomainCategoryPlot0.datasetChanged(datasetChangeEvent0);\n }",
"@Test\n public void test01() throws Throwable {\n SimpleTimeZone simpleTimeZone0 = (SimpleTimeZone)SegmentedTimeline.NO_DST_TIME_ZONE;\n DateAxis dateAxis0 = new DateAxis(\"\", (TimeZone) simpleTimeZone0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) dateAxis0);\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getDefault();\n JFreeChart jFreeChart0 = new JFreeChart(\"The renderer has changed and I don't know what to do!\", (Plot) combinedRangeCategoryPlot0);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, (-1747), (-1747), 952, 952, 0, 855, true, false, false, true, true, false);\n ChartRenderingInfo chartRenderingInfo0 = chartPanel0.getChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n combinedRangeCategoryPlot0.zoomDomainAxes(0.0, plotRenderingInfo0, (Point2D) point2D_Double0, false);\n double double0 = point2D_Double0.getX();\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(0.0, 1794.185816547, (double) 0, (double) (-1747));\n double double1 = rectangle2D_Double0.x;\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getBaseOutlinePaint();\n BasicStroke basicStroke0 = (BasicStroke)WaferMapPlot.DEFAULT_GRIDLINE_STROKE;\n CategoryMarker categoryMarker0 = new CategoryMarker((Comparable) 0.0, (Paint) color0, (Stroke) basicStroke0);\n Layer layer0 = Layer.BACKGROUND;\n combinedRangeCategoryPlot0.addRangeMarker((Marker) categoryMarker0, layer0);\n combinedRangeCategoryPlot0.setDomainGridlinePaint(color0);\n double double2 = rectangle2D_Double0.getWidth();\n }",
"@Test\n public void test71() throws Throwable {\n DefaultCategoryDataset defaultCategoryDataset0 = new DefaultCategoryDataset();\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"\");\n NumberAxis3D numberAxis3D0 = new NumberAxis3D();\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getBaseFillPaint();\n CategoryLabelPositions categoryLabelPositions0 = CategoryLabelPositions.UP_45;\n subCategoryAxis0.setCategoryLabelPositions(categoryLabelPositions0);\n WaterfallBarRenderer waterfallBarRenderer0 = new WaterfallBarRenderer((Paint) color0, (Paint) color0, (Paint) color0, (Paint) color0);\n Boolean boolean0 = Boolean.valueOf(\"\");\n defaultPolarItemRenderer0.setSeriesVisible(2989, boolean0);\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultCategoryDataset0, (CategoryAxis) subCategoryAxis0, (ValueAxis) numberAxis3D0, (CategoryItemRenderer) waterfallBarRenderer0);\n Font font0 = SpiderWebPlot.DEFAULT_LABEL_FONT;\n subCategoryAxis0.setTickLabelFont(font0);\n DefaultCategoryDataset defaultCategoryDataset1 = (DefaultCategoryDataset)categoryPlot0.getDataset();\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) defaultCategoryDataset1, (Dataset) defaultCategoryDataset0);\n categoryPlot0.datasetChanged(datasetChangeEvent0);\n CombinedDomainXYPlot combinedDomainXYPlot0 = new CombinedDomainXYPlot();\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo((ChartRenderingInfo) null);\n Point2D.Double point2D_Double0 = new Point2D.Double();\n XYPlot xYPlot0 = combinedDomainXYPlot0.findSubplot(plotRenderingInfo0, point2D_Double0);\n }",
"@Test\n public void test43() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double(2544.735178220915, 2544.735178220915);\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"W6dcfYW#F6:9T;Bi?W\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n Font font0 = Axis.DEFAULT_AXIS_LABEL_FONT;\n combinedDomainCategoryPlot0.setNoDataMessageFont(font0);\n PlotOrientation plotOrientation0 = combinedDomainCategoryPlot0.getOrientation();\n Color color0 = (Color)combinedDomainCategoryPlot0.getRangeGridlinePaint();\n Point2D.Double point2D_Double1 = new Point2D.Double(0.0, 1215.36);\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(1215.36, 87.128070112, 0.0, 0.0);\n rectangle2D_Double0.height = 2544.735178220915;\n Class<CategoryAxis3D> class0 = CategoryAxis3D.class;\n boolean boolean0 = SerialUtilities.isSerializable(class0);\n NumberAxis3D numberAxis3D0 = new NumberAxis3D();\n combinedDomainCategoryPlot0.setRangeAxis((ValueAxis) numberAxis3D0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n combinedDomainCategoryPlot0.zoomRangeAxes(1215.36, plotRenderingInfo0, (Point2D) point2D_Double0, true);\n }",
"@Test\n public void test62() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(0.0, 0.0, 1000000.0, 500000.0);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n RectangleInsets rectangleInsets0 = Title.DEFAULT_PADDING;\n LengthAdjustmentType lengthAdjustmentType0 = LengthAdjustmentType.EXPAND;\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)rectangleInsets0.createInsetRectangle((Rectangle2D) rectangle2D_Double0, false, false);\n boolean boolean0 = rectangle2D_Double0.contains((Rectangle2D) rectangle2D_Double1);\n rectangle2D_Double0.add(1000000.0, 0.0);\n Rectangle2D.Double rectangle2D_Double2 = (Rectangle2D.Double)rectangleInsets0.createAdjustedRectangle(rectangle2D_Double0, lengthAdjustmentType0, lengthAdjustmentType0);\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n combinedDomainCategoryPlot0.configureDomainAxes();\n CategoryItemRenderer categoryItemRenderer0 = combinedDomainCategoryPlot0.getRenderer(3);\n boolean boolean1 = combinedDomainCategoryPlot0.getDrawSharedDomainAxis();\n double double0 = rectangle2D_Double0.getWidth();\n combinedDomainCategoryPlot0.clearDomainAxes();\n ValueAxis valueAxis0 = combinedDomainCategoryPlot0.getRangeAxisForDataset(3);\n LongNeedle longNeedle0 = new LongNeedle();\n AffineTransform affineTransform0 = longNeedle0.getTransform();\n Font font0 = LegendTitle.DEFAULT_ITEM_FONT;\n JFreeChart jFreeChart0 = new JFreeChart(\"\", font0, (Plot) combinedDomainCategoryPlot0, false);\n RenderingHints renderingHints0 = jFreeChart0.getRenderingHints();\n AffineTransformOp affineTransformOp0 = new AffineTransformOp(affineTransform0, renderingHints0);\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n // Undeclared exception!\n try { \n jFreeChart0.createBufferedImage(262, 285, 262, chartRenderingInfo0);\n } catch(IllegalArgumentException e) {\n //\n // Unknown image type 262\n //\n assertThrownBy(\"java.awt.image.BufferedImage\", e);\n }\n }",
"@Test\n public void test79() throws Throwable {\n DefaultBoxAndWhiskerCategoryDataset defaultBoxAndWhiskerCategoryDataset0 = new DefaultBoxAndWhiskerCategoryDataset();\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\":HD:3P^w7T\");\n DateAxis dateAxis0 = new DateAxis();\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getBaseFillPaint();\n subCategoryAxis0.setSubLabelPaint(color0);\n StackedBarRenderer3D stackedBarRenderer3D0 = new StackedBarRenderer3D(729.43602760018, 729.43602760018, true);\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultBoxAndWhiskerCategoryDataset0, (CategoryAxis) subCategoryAxis0, (ValueAxis) dateAxis0, (CategoryItemRenderer) stackedBarRenderer3D0);\n BasicStroke basicStroke0 = (BasicStroke)categoryPlot0.getRangeGridlineStroke();\n categoryPlot0.setDomainAxis(2052, (CategoryAxis) subCategoryAxis0, true);\n JFreeChart jFreeChart0 = new JFreeChart((Plot) categoryPlot0);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, true);\n ChartRenderingInfo chartRenderingInfo0 = chartPanel0.getChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n ScrollPane scrollPane0 = null;\n try {\n scrollPane0 = new ScrollPane();\n } catch(HeadlessException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"java.awt.GraphicsEnvironment\", e);\n }\n }",
"protected MockLineChartViewBase() {\n super();\n }",
"@Test\n public void test54() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"t=sZJmcuU]RY5vAg9.\");\n Font font0 = Axis.DEFAULT_AXIS_LABEL_FONT;\n categoryAxis0.setTickLabelFont(font0);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_RIGHT;\n combinedDomainCategoryPlot0.setRangeAxisLocation(axisLocation0);\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getDomainAxisEdge();\n DefaultPolarItemRenderer defaultPolarItemRenderer0 = new DefaultPolarItemRenderer();\n Color color0 = (Color)defaultPolarItemRenderer0.getBaseOutlinePaint();\n SpiderWebPlot spiderWebPlot0 = new SpiderWebPlot();\n BasicStroke basicStroke0 = (BasicStroke)spiderWebPlot0.getSeriesOutlineStroke(1711);\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n CategoryURLGenerator categoryURLGenerator0 = statisticalBarRenderer0.getURLGenerator((-1406), 1800);\n spiderWebPlot0.setURLGenerator((CategoryURLGenerator) null);\n CategoryLineAnnotation categoryLineAnnotation0 = new CategoryLineAnnotation((Comparable) \"t=sZJmcuU]RY5vAg9.\", (-1.0), (Comparable) \"t=sZJmcuU]RY5vAg9.\", (-1.0), (Paint) color0, (Stroke) basicStroke0);\n boolean boolean0 = combinedDomainCategoryPlot0.removeAnnotation(categoryLineAnnotation0);\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n GridBagLayout gridBagLayout0 = new GridBagLayout();\n Point point0 = gridBagLayout0.location(1711, 1711);\n combinedDomainCategoryPlot0.zoomRangeAxes((-1.0), plotRenderingInfo0, (Point2D) point0, false);\n }",
"@Test\n public void testImprimirStatistics()\n {\n //this.linealRegressionCalculator.printStatistics();\n }",
"public void testGetServiceAreas() throws Exception {\r\n List results = new ArrayList();\r\n serviceArea = new ServiceArea();\r\n results.add(serviceArea);\r\n\r\n // set expected behavior on dao\r\n serviceAreaDAO.expects(once()).method(\"getAll\")\r\n .will(returnValue(results));\r\n\r\n List serviceAreas = serviceAreaManager.getAll();\r\n assertTrue(serviceAreas.size() == 1);\r\n serviceAreaDAO.verify();\r\n }",
"private Chart(){}",
"@Test\n public void test71() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"GT>r\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getRangeAxisLocation(0);\n combinedDomainCategoryPlot0.setRangeGridlinesVisible(false);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot1 = (CombinedDomainCategoryPlot)combinedDomainCategoryPlot0.clone();\n CategoryAxis categoryAxis1 = combinedDomainCategoryPlot0.getDomainAxisForDataset(0);\n Line2D.Double line2D_Double0 = new Line2D.Double();\n categoryAxis0.setAxisLineVisible(true);\n Line2D.Double line2D_Double1 = new Line2D.Double(20000.0, 534.2347460165499, 0.0, (double) 0);\n line2D_Double0.setLine((Line2D) line2D_Double1);\n line2D_Double0.y2 = 0.0;\n double double0 = line2D_Double0.getY2();\n CategoryDataset categoryDataset0 = combinedDomainCategoryPlot0.getDataset();\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n JScrollPane jScrollPane0 = null;\n try {\n jScrollPane0 = new JScrollPane(0, 0);\n } catch(IllegalArgumentException e) {\n //\n // invalid verticalScrollBarPolicy\n //\n assertThrownBy(\"javax.swing.JScrollPane\", e);\n }\n }",
"@Test\n public void test28() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n CategoryAnchor categoryAnchor0 = combinedRangeCategoryPlot0.getDomainGridlinePosition();\n RectangleEdge rectangleEdge0 = combinedRangeCategoryPlot0.getRangeAxisEdge((-119));\n }",
"public abstract double getArea();",
"public abstract double getArea();",
"public abstract double getArea();",
"@Test\n public void test32() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"\");\n Font font0 = categoryAxis0.getTickLabelFont();\n LongNeedle longNeedle0 = new LongNeedle();\n AffineTransform affineTransform0 = longNeedle0.getTransform();\n Font font1 = font0.deriveFont(76, affineTransform0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n JFreeChart jFreeChart0 = new JFreeChart(\"The renderer has changed and I don't know what to do!\", font1, (Plot) combinedRangeCategoryPlot0, false);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot1 = (CombinedRangeCategoryPlot)jFreeChart0.getCategoryPlot();\n AxisLocation axisLocation0 = AxisLocation.TOP_OR_RIGHT;\n AxisLocation axisLocation1 = axisLocation0.getOpposite();\n AxisLocation axisLocation2 = axisLocation0.getOpposite();\n List list0 = combinedRangeCategoryPlot1.getCategoriesForAxis(categoryAxis0);\n jFreeChart0.setSubtitles(list0);\n combinedRangeCategoryPlot1.setRangeAxisLocation(axisLocation1);\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n rectangle2D_Double0.setRect(483.0, 483.0, 483.0, 483.0);\n }",
"@Test\n public void test18() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n boolean boolean0 = combinedRangeCategoryPlot0.equals(combinedRangeCategoryPlot0);\n CategoryDataset categoryDataset0 = combinedRangeCategoryPlot0.getDataset();\n TextBox textBox0 = new TextBox();\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"\");\n combinedRangeCategoryPlot0.setRangeAxis((ValueAxis) numberAxis3D0);\n RectangleInsets rectangleInsets0 = textBox0.getInteriorGap();\n combinedRangeCategoryPlot0.setAxisOffset(rectangleInsets0);\n Color color0 = (Color)combinedRangeCategoryPlot0.getRangeCrosshairPaint();\n Line2D.Double line2D_Double0 = new Line2D.Double();\n double double0 = line2D_Double0.getY1();\n }",
"public void testArea() {\n\t CircleArc2D whole = new CircleArc2D(-10, -10, 5, 0, 4*PI);\r\n\t double expectedAreaWhile = PI*25; // \\pi * 5^2\r\n\r\n\t assertEquals(expectedAreaWhile, whole.getArea());\r\n\r\n\t // TODO: Pull in JCheck to supercharge this.\r\n\t Random r = new Random();\r\n\t double sweepExtent = r.nextDouble();\r\n\t CircleArc2D partial = new CircleArc2D(-10, -10, 5, 45, (4*PI)/sweepExtent);\r\n\t double expectedAreaParial = expectedAreaWhile / sweepExtent;\r\n\r\n\t assertEquals(expectedAreaParial, partial.getArea(), 0.0001);\r\n\t }",
"@Test\n public void test00() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n combinedDomainCategoryPlot0.clearDomainMarkers();\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"\", (Comparable) \"\", (-1680.444156425021));\n categoryTextAnnotation0.setCategory(\"\");\n boolean boolean0 = combinedDomainCategoryPlot0.removeAnnotation(categoryTextAnnotation0);\n categoryTextAnnotation0.setRotationAngle((-614.082251));\n CategoryItemRenderer categoryItemRenderer0 = combinedDomainCategoryPlot0.getRenderer(0);\n int int0 = combinedDomainCategoryPlot0.getRangeAxisCount();\n combinedDomainCategoryPlot0.setRenderer(0, (CategoryItemRenderer) null, false);\n }",
"public double getArea();",
"public double getArea();",
"public double getArea();",
"@Test\n public void test63() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) null);\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeZoomable();\n boolean boolean1 = combinedDomainCategoryPlot0.isRangeGridlinesVisible();\n boolean boolean2 = combinedDomainCategoryPlot0.getDrawSharedDomainAxis();\n Layer layer0 = Layer.BACKGROUND;\n DeviationRenderer deviationRenderer0 = new DeviationRenderer(true, true);\n DrawingSupplier drawingSupplier0 = deviationRenderer0.getDrawingSupplier();\n combinedDomainCategoryPlot0.setDrawingSupplier((DrawingSupplier) null);\n Collection collection0 = combinedDomainCategoryPlot0.getRangeMarkers(2526, layer0);\n CategoryAxis categoryAxis0 = combinedDomainCategoryPlot0.getDomainAxis(2526);\n combinedDomainCategoryPlot0.configureDomainAxes();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n CategoryItemRendererState categoryItemRendererState0 = new CategoryItemRendererState(plotRenderingInfo0);\n StandardEntityCollection standardEntityCollection0 = (StandardEntityCollection)categoryItemRendererState0.getEntityCollection();\n ChartRenderingInfo chartRenderingInfo1 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo1 = chartRenderingInfo1.getPlotInfo();\n Number[][] numberArray0 = new Number[8][4];\n Number[] numberArray1 = new Number[1];\n float float0 = Component.BOTTOM_ALIGNMENT;\n numberArray1[0] = (Number) 1.0F;\n numberArray0[0] = numberArray1;\n Number[] numberArray2 = new Number[7];\n double double0 = PiePlot.DEFAULT_START_ANGLE;\n numberArray2[0] = (Number) 90.0;\n int int0 = ColorSpace.TYPE_BCLR;\n numberArray2[1] = (Number) 21;\n int int1 = Calendar.OCTOBER;\n numberArray2[2] = (Number) 9;\n int int2 = AffineTransform.TYPE_GENERAL_ROTATION;\n numberArray2[3] = (Number) 16;\n int int3 = PageFormat.LANDSCAPE;\n numberArray2[4] = (Number) 0;\n int int4 = ObjectStreamConstants.PROTOCOL_VERSION_2;\n numberArray2[5] = (Number) 2;\n int int5 = ColorSpace.TYPE_8CLR;\n numberArray2[6] = (Number) 18;\n numberArray0[1] = numberArray2;\n Number[] numberArray3 = new Number[1];\n int int6 = ColorSpace.CS_LINEAR_RGB;\n numberArray3[0] = (Number) 1004;\n numberArray0[2] = numberArray3;\n Number[] numberArray4 = new Number[0];\n numberArray0[3] = numberArray4;\n Number[] numberArray5 = new Number[2];\n int int7 = ColorSpace.TYPE_RGB;\n numberArray5[0] = (Number) 5;\n Integer integer0 = JLayeredPane.DRAG_LAYER;\n numberArray5[1] = (Number) integer0;\n numberArray0[4] = numberArray5;\n Number[] numberArray6 = new Number[6];\n numberArray6[0] = (Number) integer0;\n numberArray6[1] = (Number) integer0;\n numberArray6[2] = (Number) integer0;\n numberArray6[3] = (Number) integer0;\n numberArray6[4] = (Number) integer0;\n numberArray6[5] = (Number) integer0;\n numberArray0[5] = numberArray6;\n Number[] numberArray7 = new Number[0];\n numberArray0[6] = numberArray7;\n Number[] numberArray8 = new Number[2];\n numberArray8[0] = (Number) integer0;\n numberArray8[1] = (Number) integer0;\n numberArray0[7] = numberArray8;\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(numberArray0, numberArray0);\n TableOrder tableOrder0 = TableOrder.BY_COLUMN;\n SpiderWebPlot spiderWebPlot0 = new SpiderWebPlot((CategoryDataset) defaultIntervalCategoryDataset0, tableOrder0);\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) null);\n RectangleInsets rectangleInsets0 = thermometerPlot0.getPadding();\n Rectangle2D.Float rectangle2D_Float0 = new Rectangle2D.Float((float) 21, 0.95F, 0.6F, (-170.0F));\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)rectangleInsets0.createOutsetRectangle((Rectangle2D) rectangle2D_Float0);\n Point2D.Double point2D_Double0 = (Point2D.Double)spiderWebPlot0.getWebPoint(rectangle2D_Double0, 21.0F, 3215.444465);\n combinedDomainCategoryPlot0.zoomRangeAxes((double) 2526, plotRenderingInfo1, (Point2D) point2D_Double0);\n }",
"@Test\r\n\tpublic void testGetBatchOverallRadarChart() throws Exception{\r\n\t\tlog.debug(\"Validate batch's overall radar chart\");\r\n\t\tMap<String, Double> expected = new HashMap<>();\r\n\t\tgiven().\r\n\t\t\tspec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON).\r\n\t\twhen().\r\n\t\t\tget(baseUrl + batchReports, 2150).\r\n\t\tthen().\r\n\t\t\tassertThat().statusCode(200).\r\n\t\tand().\r\n\t\t\tbody(matchesJsonSchema(new ObjectMapper().writeValueAsString(expected)));\r\n\t}",
"@Test\n public void test50() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double();\n line2D_Double0.x2 = (-2256.58198271);\n double double0 = line2D_Double0.getX1();\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) null);\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.mapDatasetToRangeAxis((-1483), (-1748));\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }",
"@Test\n public void test74() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n CategoryAxis categoryAxis0 = new CategoryAxis();\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getRangeAxisEdge();\n int int0 = combinedDomainCategoryPlot0.getDomainAxisIndex(categoryAxis0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n AxisChangeEvent axisChangeEvent0 = new AxisChangeEvent((Axis) categoryAxis0);\n JFreeChart jFreeChart0 = axisChangeEvent0.getChart();\n ChartPanel chartPanel0 = new ChartPanel((JFreeChart) null, false, false, false, false, false);\n MouseWheelEvent mouseWheelEvent0 = new MouseWheelEvent((Component) chartPanel0, (-1), 2678400000L, 1128, (-1162), (-931), 0, false, 1541, 4091, 500);\n Point point0 = chartPanel0.getPopupLocation(mouseWheelEvent0);\n combinedDomainCategoryPlot0.zoomDomainAxes((double) (-1), plotRenderingInfo0, (Point2D) null, false);\n }",
"@Test\n public void test51() throws Throwable {\n DefaultBoxAndWhiskerCategoryDataset defaultBoxAndWhiskerCategoryDataset0 = new DefaultBoxAndWhiskerCategoryDataset();\n CategoryAxis categoryAxis0 = new CategoryAxis();\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getTimeZone(\"S0;<fg/hGr_<T\");\n DateAxis dateAxis0 = new DateAxis(\"+7SK1xz+\", (TimeZone) zoneInfo0);\n GroupedStackedBarRenderer groupedStackedBarRenderer0 = new GroupedStackedBarRenderer();\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultBoxAndWhiskerCategoryDataset0, categoryAxis0, (ValueAxis) dateAxis0, (CategoryItemRenderer) groupedStackedBarRenderer0);\n JFreeChart jFreeChart0 = new JFreeChart((String) null, (Plot) categoryPlot0);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, 1551, 0, 1551, (-1157), 1551, 0, true, true, false, true, true, true);\n ChartRenderingInfo chartRenderingInfo0 = chartPanel0.getChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"S0;<fg/hGr_<T\";\n stringArray0[1] = \"+7SK1xz+\";\n stringArray0[2] = null;\n stringArray0[3] = \"S0;<fg/hGr_<T\";\n JFreeChart.main(stringArray0);\n Arc2D.Double arc2D_Double0 = new Arc2D.Double(0.0, 5504.00353418296, 2252.7, 5504.00353418296, (-44.30819825288613), (-2488.2967568), 0);\n Point2D.Double point2D_Double0 = (Point2D.Double)arc2D_Double0.getEndPoint();\n // Undeclared exception!\n try { \n categoryPlot0.zoomRangeAxes(5504.00353418296, 2252.7, plotRenderingInfo0, (Point2D) point2D_Double0);\n } catch(IllegalArgumentException e) {\n //\n // Range(double, double): require lower (11007.0) <= upper (4504.0).\n //\n assertThrownBy(\"org.jfree.data.Range\", e);\n }\n }",
"@Test\n public void test70() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n ValueMarker valueMarker0 = new ValueMarker(349.98275646987);\n MarkerChangeEvent markerChangeEvent0 = new MarkerChangeEvent((Marker) valueMarker0);\n XYBlockRenderer xYBlockRenderer0 = new XYBlockRenderer();\n RectangleAnchor rectangleAnchor0 = xYBlockRenderer0.getBlockAnchor();\n Line2D.Float line2D_Float0 = new Line2D.Float((-216.01F), 4682.902F, (-216.01F), (-216.01F));\n Rectangle2D.Float rectangle2D_Float0 = (Rectangle2D.Float)line2D_Float0.getBounds2D();\n Point2D.Double point2D_Double0 = (Point2D.Double)RectangleAnchor.coordinates(rectangle2D_Float0, (RectangleAnchor) null);\n valueMarker0.setLabelAnchor(rectangleAnchor0);\n combinedRangeCategoryPlot0.markerChanged(markerChangeEvent0);\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n RectangleInsets rectangleInsets0 = combinedRangeCategoryPlot0.getAxisOffset();\n combinedRangeCategoryPlot0.setAnchorValue(Double.NEGATIVE_INFINITY);\n Line2D.Double line2D_Double0 = new Line2D.Double((Point2D) point2D_Double0, (Point2D) point2D_Double0);\n double double0 = line2D_Double0.getY2();\n double double1 = line2D_Double0.getX1();\n boolean boolean1 = combinedRangeCategoryPlot0.isRangeZoomable();\n int int0 = combinedRangeCategoryPlot0.getDatasetCount();\n boolean boolean2 = combinedRangeCategoryPlot0.isRangeCrosshairVisible();\n combinedRangeCategoryPlot0.clearDomainAxes();\n BasicStroke basicStroke0 = (BasicStroke)combinedRangeCategoryPlot0.getRangeCrosshairStroke();\n List list0 = combinedRangeCategoryPlot0.getAnnotations();\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getDomainMarkers(layer0);\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n PlotRenderingInfo plotRenderingInfo0 = new PlotRenderingInfo(chartRenderingInfo0);\n combinedRangeCategoryPlot0.zoomDomainAxes(0.0, plotRenderingInfo0, (Point2D) point2D_Double0);\n LogAxis logAxis0 = new LogAxis();\n CombinedDomainXYPlot combinedDomainXYPlot0 = new CombinedDomainXYPlot((ValueAxis) logAxis0);\n AxisLocation axisLocation0 = combinedDomainXYPlot0.getDomainAxisLocation(1308);\n combinedRangeCategoryPlot0.setRangeAxisLocation(axisLocation0, false);\n }",
"@Test\n public void test66() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n int int0 = categoryPlot0.getRangeAxisCount();\n JDBCCategoryDataset jDBCCategoryDataset0 = null;\n try {\n jDBCCategoryDataset0 = new JDBCCategoryDataset((Connection) null);\n } catch(NullPointerException e) {\n //\n // A connection must be supplied.\n //\n assertThrownBy(\"org.jfree.data.jdbc.JDBCCategoryDataset\", e);\n }\n }",
"@Test\n public void test36() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n CategoryTextAnnotation categoryTextAnnotation0 = new CategoryTextAnnotation(\"\", (Comparable) \"\", (-1680.444156425021));\n categoryTextAnnotation0.setCategory(\"\");\n boolean boolean0 = combinedDomainCategoryPlot0.removeAnnotation(categoryTextAnnotation0);\n categoryTextAnnotation0.setRotationAngle((-614.082251));\n CategoryItemRenderer categoryItemRenderer0 = combinedDomainCategoryPlot0.getRenderer(0);\n combinedDomainCategoryPlot0.setRenderer((CategoryItemRenderer) null);\n int int0 = combinedDomainCategoryPlot0.getRangeAxisCount();\n }",
"@Test\n public void test75() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n Line2D.Double line2D_Double0 = new Line2D.Double(5.0E9, 5.0E9, 5.0E9, 5.0E9);\n combinedRangeCategoryPlot0.clearRangeAxes();\n boolean boolean1 = combinedRangeCategoryPlot0.isDomainGridlinesVisible();\n combinedRangeCategoryPlot0.setDomainAxis(1, (CategoryAxis) null, false);\n PlotOrientation plotOrientation0 = PlotOrientation.VERTICAL;\n combinedRangeCategoryPlot0.setOrientation(plotOrientation0);\n CategoryItemRenderer categoryItemRenderer0 = combinedRangeCategoryPlot0.getRenderer();\n combinedRangeCategoryPlot0.clearAnnotations();\n StyleConstants styleConstants0 = (StyleConstants)AttributeSet.NameAttribute;\n HistogramDataset histogramDataset0 = new HistogramDataset();\n int[] intArray0 = new int[7];\n intArray0[0] = 1;\n intArray0[1] = 1;\n intArray0[2] = 1;\n intArray0[3] = 1;\n intArray0[4] = 1;\n intArray0[5] = 1;\n intArray0[6] = 1;\n SubSeriesDataset subSeriesDataset0 = new SubSeriesDataset((SeriesDataset) histogramDataset0, intArray0);\n DatasetChangeEvent datasetChangeEvent0 = new DatasetChangeEvent((Object) styleConstants0, (Dataset) subSeriesDataset0);\n combinedRangeCategoryPlot0.datasetChanged(datasetChangeEvent0);\n }",
"@Test\n public void test62() throws Throwable {\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n RectangleInsets rectangleInsets0 = combinedRangeCategoryPlot0.getAxisOffset();\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getRangeMarkers(1577, layer0);\n int int0 = rectangle2D_Double0.outcode(0.0, (-693.592052));\n DatasetRenderingOrder datasetRenderingOrder0 = combinedRangeCategoryPlot0.getDatasetRenderingOrder();\n // Undeclared exception!\n try { \n combinedRangeCategoryPlot0.setOrientation((PlotOrientation) null);\n } catch(IllegalArgumentException e) {\n //\n // Null 'orientation' argument.\n //\n assertThrownBy(\"org.jfree.chart.plot.CategoryPlot\", e);\n }\n }",
"@Test\n public void test48() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(0.0, 0.0, (-3419.6012506212037), (-3419.6012506212037));\n line2D_Double0.y2 = 1830.949;\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"A2mVhdCINzNxW\\\"g@uU\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n CategoryItemRenderer[] categoryItemRendererArray0 = new CategoryItemRenderer[8];\n ScatterRenderer scatterRenderer0 = new ScatterRenderer();\n categoryItemRendererArray0[0] = (CategoryItemRenderer) scatterRenderer0;\n AreaRenderer areaRenderer0 = new AreaRenderer();\n categoryItemRendererArray0[1] = (CategoryItemRenderer) areaRenderer0;\n AreaRenderer areaRenderer1 = new AreaRenderer();\n categoryItemRendererArray0[2] = (CategoryItemRenderer) areaRenderer1;\n StackedBarRenderer stackedBarRenderer0 = new StackedBarRenderer(true);\n categoryItemRendererArray0[3] = (CategoryItemRenderer) stackedBarRenderer0;\n CategoryStepRenderer categoryStepRenderer0 = new CategoryStepRenderer(false);\n categoryItemRendererArray0[4] = (CategoryItemRenderer) categoryStepRenderer0;\n WaterfallBarRenderer waterfallBarRenderer0 = new WaterfallBarRenderer();\n categoryItemRendererArray0[5] = (CategoryItemRenderer) waterfallBarRenderer0;\n StackedBarRenderer3D stackedBarRenderer3D0 = new StackedBarRenderer3D(false);\n categoryItemRendererArray0[6] = (CategoryItemRenderer) stackedBarRenderer3D0;\n IntervalBarRenderer intervalBarRenderer0 = new IntervalBarRenderer();\n categoryItemRendererArray0[7] = (CategoryItemRenderer) intervalBarRenderer0;\n combinedDomainCategoryPlot0.setRenderers(categoryItemRendererArray0);\n StackedBarRenderer3D stackedBarRenderer3D1 = new StackedBarRenderer3D();\n TickUnits tickUnits0 = new TickUnits();\n combinedDomainCategoryPlot0.setRenderer(93, (CategoryItemRenderer) stackedBarRenderer3D1);\n }",
"@Test\n public void test02() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = (Rectangle2D.Double)Plot.DEFAULT_LEGEND_ITEM_BOX;\n double double0 = rectangle2D_Double0.getY();\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n DecimalFormat decimalFormat0 = (DecimalFormat)NumberFormat.getCurrencyInstance();\n IntervalCategoryToolTipGenerator intervalCategoryToolTipGenerator0 = new IntervalCategoryToolTipGenerator(\"#kaB{2C?joB:\", (NumberFormat) decimalFormat0);\n DefaultMultiValueCategoryDataset defaultMultiValueCategoryDataset0 = new DefaultMultiValueCategoryDataset();\n int int0 = (-1);\n // Undeclared exception!\n try { \n defaultMultiValueCategoryDataset0.getValues(0, (-1));\n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 0, Size: 0\n //\n assertThrownBy(\"java.util.ArrayList\", e);\n }\n }",
"@Test\n public void test80() throws Throwable {\n IntervalMarker intervalMarker0 = new IntervalMarker((-1458.19391523), 0.025);\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot();\n // Undeclared exception!\n try { \n combinedDomainCategoryPlot0.setDomainAxis((-498), (CategoryAxis) null, false);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }",
"@Test\n public void test38() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) null);\n DatasetRenderingOrder datasetRenderingOrder0 = combinedDomainCategoryPlot0.getDatasetRenderingOrder();\n combinedDomainCategoryPlot0.setDatasetRenderingOrder(datasetRenderingOrder0);\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_RIGHT;\n combinedDomainCategoryPlot0.setDomainAxisLocation(0, axisLocation0, true);\n }",
"@Test\n public void test03() throws Throwable {\n TaskSeriesCollection taskSeriesCollection0 = new TaskSeriesCollection();\n CategoryAxis categoryAxis0 = new CategoryAxis(\"6{vVRiz\\\"hj\");\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.65, \"hZo6/@p:U,CZ-vyy \");\n StackedBarRenderer stackedBarRenderer0 = new StackedBarRenderer(false);\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) taskSeriesCollection0, categoryAxis0, (ValueAxis) cyclicNumberAxis0, (CategoryItemRenderer) stackedBarRenderer0);\n categoryPlot0.setOutlineVisible(true);\n AxisSpace axisSpace0 = categoryPlot0.getFixedDomainAxisSpace();\n }",
"@Test\n public void test26() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, 0.0);\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n RectangleEdge rectangleEdge0 = combinedRangeCategoryPlot0.getDomainAxisEdge(1248);\n List list0 = combinedRangeCategoryPlot0.getSubplots();\n AxisLocation axisLocation0 = AxisLocation.BOTTOM_OR_LEFT;\n combinedRangeCategoryPlot0.setDomainAxisLocation(0, axisLocation0, false);\n combinedRangeCategoryPlot0.setRangeCrosshairValue(0.18, false);\n AxisLocation axisLocation1 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n boolean boolean0 = combinedRangeCategoryPlot0.isRangeCrosshairLockedOnData();\n TextBlock textBlock0 = new TextBlock();\n TextBox textBox0 = new TextBox(textBlock0);\n MultiplePiePlot multiplePiePlot0 = new MultiplePiePlot();\n JFreeChart jFreeChart0 = multiplePiePlot0.getPieChart();\n StandardEntityCollection standardEntityCollection0 = new StandardEntityCollection();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo((EntityCollection) standardEntityCollection0);\n // Undeclared exception!\n try { \n jFreeChart0.createBufferedImage(0, 3030, chartRenderingInfo0);\n } catch(IllegalArgumentException e) {\n //\n // Width (0) and height (3030) cannot be <= 0\n //\n assertThrownBy(\"java.awt.image.DirectColorModel\", e);\n }\n }",
"@Test\n public void test22() throws Throwable {\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\" twtGuHO\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) extendedCategoryAxis0);\n Polygon polygon0 = new Polygon();\n Rectangle rectangle0 = polygon0.getBounds();\n rectangle0.height = (-2538);\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getDomainAxisLocation((-2538));\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeZoomable();\n AxisLocation axisLocation1 = axisLocation0.getOpposite();\n combinedDomainCategoryPlot0.setDomainAxisLocation(3, axisLocation0, false);\n RectangleInsets rectangleInsets0 = new RectangleInsets();\n combinedDomainCategoryPlot0.setAxisOffset(rectangleInsets0);\n }",
"@Test\n public void test77() throws Throwable {\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) null);\n combinedDomainCategoryPlot0.setDrawSharedDomainAxis(false);\n DecimalFormat decimalFormat0 = (DecimalFormat)NumberFormat.getCurrencyInstance();\n NumberTickUnit numberTickUnit0 = new NumberTickUnit((-28.552), (NumberFormat) decimalFormat0);\n Color color0 = (Color)Axis.DEFAULT_TICK_MARK_PAINT;\n boolean boolean0 = numberTickUnit0.equals((Object) null);\n TimeTableXYDataset timeTableXYDataset0 = new TimeTableXYDataset();\n RectangleEdge rectangleEdge0 = combinedDomainCategoryPlot0.getDomainAxisEdge();\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.0, 0.0);\n XYAreaRenderer2 xYAreaRenderer2_0 = new XYAreaRenderer2();\n XYPlot xYPlot0 = new XYPlot((XYDataset) timeTableXYDataset0, (ValueAxis) cyclicNumberAxis0, (ValueAxis) cyclicNumberAxis0, (XYItemRenderer) xYAreaRenderer2_0);\n BasicStroke basicStroke0 = (BasicStroke)xYPlot0.getRangeZeroBaselineStroke();\n CategoryMarker categoryMarker0 = new CategoryMarker((Comparable) numberTickUnit0, (Paint) color0, (Stroke) basicStroke0, (Paint) color0, cyclicNumberAxis0.DEFAULT_ADVANCE_LINE_STROKE, 0.85F);\n combinedDomainCategoryPlot0.addRangeMarker((Marker) categoryMarker0);\n int int0 = combinedDomainCategoryPlot0.getRangeAxisIndex(cyclicNumberAxis0);\n Layer layer0 = Layer.BACKGROUND;\n combinedDomainCategoryPlot0.addDomainMarker(0, categoryMarker0, layer0);\n combinedDomainCategoryPlot0.setRenderer((CategoryItemRenderer) null);\n boolean boolean1 = combinedDomainCategoryPlot0.isRangeZoomable();\n Point2D.Double point2D_Double0 = new Point2D.Double((-862.0), 1.0E-6);\n point2D_Double0.y = (double) 0;\n AxisLocation axisLocation0 = combinedDomainCategoryPlot0.getDomainAxisLocation((-2040));\n combinedDomainCategoryPlot0.setDomainAxisLocation(axisLocation0);\n }",
"@Test\n public void test48() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)rectangle2D_Double0.getBounds2D();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) null);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n combinedRangeCategoryPlot0.setDomainAxisLocation(axisLocation0);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedRangeCategoryPlot0.getRangeMarkers(layer0);\n SortOrder sortOrder0 = combinedRangeCategoryPlot0.getColumnRenderingOrder();\n ChartRenderingInfo chartRenderingInfo0 = new ChartRenderingInfo();\n PlotRenderingInfo plotRenderingInfo0 = chartRenderingInfo0.getPlotInfo();\n // Undeclared exception!\n try { \n plotRenderingInfo0.getSubplotInfo(2029);\n } catch(IndexOutOfBoundsException e) {\n //\n // Index: 2029, Size: 0\n //\n assertThrownBy(\"java.util.ArrayList\", e);\n }\n }",
"@Test\n public void test18() throws Throwable {\n CategoryAxis categoryAxis0 = new CategoryAxis(\"ut[\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot(categoryAxis0);\n combinedDomainCategoryPlot0.clearDomainMarkers();\n }",
"public abstract double calculateArea();",
"public abstract double calculateArea();",
"@Test\n public void test09() throws Throwable {\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"Null 'marker' not permitted.\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) subCategoryAxis0);\n Layer layer0 = Layer.BACKGROUND;\n Collection collection0 = combinedDomainCategoryPlot0.getRangeMarkers(0, layer0);\n boolean boolean0 = combinedDomainCategoryPlot0.isRangeCrosshairLockedOnData();\n DefaultMultiValueCategoryDataset defaultMultiValueCategoryDataset0 = new DefaultMultiValueCategoryDataset();\n combinedDomainCategoryPlot0.setDataset((CategoryDataset) defaultMultiValueCategoryDataset0);\n ValueAxis[] valueAxisArray0 = new ValueAxis[8];\n LogarithmicAxis logarithmicAxis0 = new LogarithmicAxis(\"Null 'marker' not permitted.\");\n valueAxisArray0[0] = (ValueAxis) logarithmicAxis0;\n NumberAxis3D numberAxis3D0 = new NumberAxis3D(\"Null 'marker' not permitted.\");\n valueAxisArray0[1] = (ValueAxis) numberAxis3D0;\n LogarithmicAxis logarithmicAxis1 = new LogarithmicAxis(\"Null 'marker' not permitted.\");\n valueAxisArray0[2] = (ValueAxis) logarithmicAxis1;\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((double) 0);\n valueAxisArray0[3] = (ValueAxis) cyclicNumberAxis0;\n NumberAxis numberAxis0 = new NumberAxis();\n valueAxisArray0[4] = (ValueAxis) numberAxis0;\n ZoneInfo zoneInfo0 = (ZoneInfo)TimeZone.getDefault();\n Locale locale0 = JComponent.getDefaultLocale();\n TimeTableXYDataset timeTableXYDataset0 = new TimeTableXYDataset((TimeZone) zoneInfo0, locale0);\n Range range0 = timeTableXYDataset0.getDomainBounds(true);\n ModuloAxis moduloAxis0 = null;\n try {\n moduloAxis0 = new ModuloAxis(\"\", (Range) null);\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 }",
"@Test\r\n\tpublic void getTraineeOverallRadarChart() throws Exception{\r\n\t\tlog.debug(\"Validate trainee's overall radar chart\");\r\n\t\tMap<String, Double> expected = new HashMap<>();\r\n\t\tgiven().\r\n\t\t\tspec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON).\r\n\t\twhen().\r\n\t\t\tget(baseUrl + traineeReports, 5465).\r\n\t\tthen().\r\n\t\t\tassertThat().statusCode(200).\r\n\t\tand().\r\n\t\t\tbody(matchesJsonSchema(new ObjectMapper().writeValueAsString(expected)));\r\n\t}",
"@Test\n public void testcalAreaRectangle1() {\n double ex = 4;\n \n startPoint.setX(1);\n startPoint.setY(1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calAreaRectangle(startPoint, endPoint);\n assertEquals(ex, ac, 0);\n }",
"@Test\n public void test58() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double(500000.0, 500000.0, 0.0, 0.0);\n rectangle2D_Double0.x = 1.0;\n Rectangle2D.Double rectangle2D_Double1 = (Rectangle2D.Double)rectangle2D_Double0.getBounds2D();\n Point2D.Double point2D_Double0 = new Point2D.Double();\n double double0 = point2D_Double0.getX();\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n Range range0 = combinedDomainCategoryPlot0.getDataRange((ValueAxis) null);\n Color color0 = (Color)combinedDomainCategoryPlot0.getDomainGridlinePaint();\n Line2D.Double line2D_Double0 = new Line2D.Double((Point2D) point2D_Double0, (Point2D) point2D_Double0);\n double double1 = line2D_Double0.getX2();\n BasicStroke basicStroke0 = (BasicStroke)CyclicNumberAxis.DEFAULT_ADVANCE_LINE_STROKE;\n combinedDomainCategoryPlot0.setRangeGridlineStroke(basicStroke0);\n Font font0 = SpiderWebPlot.DEFAULT_LABEL_FONT;\n JFreeChart jFreeChart0 = new JFreeChart(\"\", font0, (Plot) combinedDomainCategoryPlot0, false);\n ChartPanel chartPanel0 = new ChartPanel(jFreeChart0, false);\n Point point0 = chartPanel0.translateJava2DToScreen(point2D_Double0);\n combinedDomainCategoryPlot0.zoomDomainAxes(500000.0, (PlotRenderingInfo) null, (Point2D) point0, false);\n }",
"@Test\n public void test35() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(67.227245, 67.227245, 67.227245, 0.18);\n line2D_Double0.setLine((-1200.58567454322), (-329.479065), (-238.92597), 90.0);\n line2D_Double0.x1 = 50.0;\n double double0 = line2D_Double0.getY1();\n NumberAxis numberAxis0 = new NumberAxis(\"\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) numberAxis0);\n StackedAreaRenderer stackedAreaRenderer0 = new StackedAreaRenderer();\n combinedRangeCategoryPlot0.setRenderer((CategoryItemRenderer) stackedAreaRenderer0);\n AxisLocation axisLocation0 = combinedRangeCategoryPlot0.getRangeAxisLocation();\n DefaultValueDataset defaultValueDataset0 = new DefaultValueDataset(50.0);\n ThermometerPlot thermometerPlot0 = new ThermometerPlot((ValueDataset) defaultValueDataset0);\n PlotOrientation plotOrientation0 = thermometerPlot0.getOrientation();\n RectangleEdge rectangleEdge0 = Plot.resolveRangeAxisLocation(axisLocation0, plotOrientation0);\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"GT-wuOa\");\n List list0 = combinedRangeCategoryPlot0.getCategoriesForAxis(subCategoryAxis0);\n combinedRangeCategoryPlot0.setRangeAxis(0, (ValueAxis) numberAxis0, true);\n SystemColor systemColor0 = SystemColor.windowText;\n StatisticalBarRenderer statisticalBarRenderer0 = new StatisticalBarRenderer();\n BasicStroke basicStroke0 = (BasicStroke)statisticalBarRenderer0.getErrorIndicatorStroke();\n CategoryMarker categoryMarker0 = null;\n try {\n categoryMarker0 = new CategoryMarker((Comparable) 90.0, (Paint) systemColor0, (Stroke) basicStroke0, (Paint) systemColor0, (Stroke) basicStroke0, (-2471.265F));\n } catch(IllegalArgumentException e) {\n //\n // The 'alpha' value must be in the range 0.0f to 1.0f\n //\n assertThrownBy(\"org.jfree.chart.plot.Marker\", e);\n }\n }",
"@Test\r\n public void givenEvenBaseAndHeight_wheGetArea_thenValidAreaIsReturn()\r\n {\r\n //given:\r\n Triangle triangle= new Triangle();\r\n triangle.setBase(2);\r\n triangle.setHeight(5);\r\n\r\n //when:\r\n double area =triangle.getArea();\r\n\r\n //then:\r\n assertEquals(\"Area is not valid\", 5, area,0);\r\n }"
] | [
"0.7519652",
"0.67401844",
"0.67012835",
"0.6504268",
"0.63818157",
"0.63695157",
"0.6307687",
"0.6299313",
"0.626453",
"0.6257743",
"0.6250851",
"0.6235142",
"0.6198026",
"0.6171572",
"0.61484796",
"0.61473674",
"0.6130302",
"0.612896",
"0.61150783",
"0.6109462",
"0.6097738",
"0.6087116",
"0.60561967",
"0.6054686",
"0.60522354",
"0.6051722",
"0.6051697",
"0.60451466",
"0.6043868",
"0.60428596",
"0.603721",
"0.6034616",
"0.60181564",
"0.6013921",
"0.60131663",
"0.6010755",
"0.60096586",
"0.5998983",
"0.5998121",
"0.5990459",
"0.5989226",
"0.59888446",
"0.59809315",
"0.59754455",
"0.59746206",
"0.59716004",
"0.5970802",
"0.59650904",
"0.5964267",
"0.59611374",
"0.5948226",
"0.5947405",
"0.59461176",
"0.5945067",
"0.59302396",
"0.59293807",
"0.5919984",
"0.5918513",
"0.5917265",
"0.59080887",
"0.5903467",
"0.5897585",
"0.58923805",
"0.58923805",
"0.58923805",
"0.5889386",
"0.5887666",
"0.58869743",
"0.588029",
"0.5872174",
"0.5872174",
"0.5872174",
"0.5870927",
"0.5870503",
"0.5865221",
"0.58643824",
"0.5863335",
"0.58553857",
"0.58518994",
"0.584317",
"0.5813377",
"0.5811728",
"0.5811355",
"0.5810674",
"0.58104455",
"0.58102185",
"0.5800519",
"0.57948065",
"0.5792681",
"0.5792267",
"0.5789557",
"0.5789193",
"0.57790124",
"0.57790124",
"0.5772679",
"0.5771842",
"0.5771802",
"0.5767996",
"0.5767681",
"0.575182"
] | 0.68451244 | 1 |
closing main method calculating the MWST, implementing algorithm from Weiss textbook | public static void mwst() {
for (int i = 0; i < mwst1.length; i++) {
double min = mwst1[i].weight;
int minCheck = i;
for (int j = i + 1; j < mwst1.length; j++) {
if ((double) mwst1[j].weight < min) {
min = mwst1[j].weight;
minCheck = j;
}
}
if (minCheck != i) {
Edge e = mwst1[minCheck];
mwst1[minCheck] = mwst1[i];
mwst1[i] = e;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int calculateMST();",
"private void computeWeights(double w_m) {\n\t\t// Initialise\n\t\tdouble m = Math.floor(lambda);\n\t\tif (!flag) return;\n\t\t\n\t\t// Down\n\t\tint j = (int) m;\n\t\twhile (j > leftTruncation) {\n\t\t\tweights[j-1-leftTruncation] = (j / lambda) * weights[j-leftTruncation];\n\t\t\tj = j - 1;\n\t\t}\n\t\t\n\t\t// Up\n\t\tif (lambda >= 400) {\n\t\t\tj = (int) m;\n\t\t\twhile (j < rightTruncation) {\n\t\t\t\tweights[j+1-leftTruncation] = (lambda / (j+1)) * weights[j-leftTruncation];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\t} else {\n\t\t\t// Special\n\t\t\tif (rightTruncation > 600) {\n\t\t\t\tflag = false;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tj = (int) m;\n\t\t\twhile (j < rightTruncation) {\n\t\t\t\tdouble q = lambda / (j + 1);\n\t\t\t\tif (weights[j-leftTruncation] > (underflow / q)) {\n\t\t\t\t\tweights[j+1-leftTruncation] = q * weights[j-leftTruncation];\n\t\t\t\t\tj = j + 1;\n\t\t\t\t} else {\n\t\t\t\t\trightTruncation = j;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Compute W\n\t\ttotalWeight = 0;\n\t\tint s = leftTruncation;\n\t\tint t = rightTruncation;\n\t\twhile (s < t) {\n\t\t\tif (weights[s-leftTruncation] <= weights[t-leftTruncation]) {\n\t\t\t\ttotalWeight += weights[s-leftTruncation];\n\t\t\t\ts = s + 1;\n\t\t\t} else {\n\t\t\t\ttotalWeight += weights[t-leftTruncation];\n\t\t\t\tt = t - 1;\n\t\t\t}\n\t\t}\n\t\ttotalWeight += weights[s-leftTruncation];\n\t\t\n\t}",
"public void computeWinnerDeterminationSW()\r\n\t{\r\n\t\tif( _plans.size() == 0)\r\n\t\t{\r\n\t\t\t_allocation = new AllocationWoD();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_randGenerator.setSeed(_seed);\r\n\t\t\r\n\t\tdouble maxExpectedSW = 0.;\r\n\t\tint itsIdx = -1;\r\n\t\tint itsAtom = -1;\r\n\t\tfor(int i = 0; i < _plans.size(); ++i)\t\t\t\t\t\t\t\t\t// for every buyer\r\n\t\t\tfor(int j = 0; j < _plans.get(i).getNumberOfAtoms(); ++j)\t\t\t// for every plan he has value for\r\n\t\t\t{\r\n\t\t\t\tComplexSemanticWebType plan = (ComplexSemanticWebType)(_plans.get(i).getAtom(j));\r\n\t\t\t\t\r\n\t\t\t\tif(_paymentRule.equals(\"SecondPrice\"))\r\n\t\t\t\t\tplan.resolveWithSecondPrice();\r\n\t\t\t\telse if(_paymentRule.equals(\"FirstPrice\"))\r\n\t\t\t\t\tplan.resolveWithFirstPrice();\r\n\t\t\t\telse throw new RuntimeException(\"Cannot resolve the type: \" + _paymentRule);\r\n\t\t\t\t\r\n\t\t\t\tdouble expectedSW = plan.computeExpectedValue() - plan.computeExpectedTotalCost();\r\n\t\t\t\t\r\n\t\t\t\tif( expectedSW >= maxExpectedSW )\r\n\t\t\t\t{\r\n\t\t\t\t\tmaxExpectedSW = expectedSW;\r\n\t\t\t\t\titsIdx = i;\r\n\t\t\t\t\titsAtom = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t_allocation = new AllocationWoD();\r\n\r\n\t\tif(itsIdx >= 0)\r\n\t\t{\r\n\t\t\tList<Integer> allocatedBundles = new LinkedList<Integer>();\r\n\t\t\tallocatedBundles.add(itsAtom);\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tComplexSemanticWebType plan = (ComplexSemanticWebType)(_plans.get( itsIdx ).getAtom( itsAtom ));\r\n\t\t\t\t\r\n\t\t\t\tList<Integer> actuallyAllocatedTuples = new LinkedList<Integer>();\r\n\t\t\t\tfor(int i = 0; i < plan.getNumberOfFragments(); ++i)\r\n\t\t\t\t\tactuallyAllocatedTuples.add( plan.getMinNumberOfRecords(i) + _randGenerator.nextInt(plan.getMaxNumberOfRecords(i) - plan.getMinNumberOfRecords(i)) );\r\n\r\n\t\t\t\tif(plan.getAllocatedSellers().size() < 1)\r\n\t\t\t\t\tthrow new RuntimeException(\"No sellers in plan: \" + plan.toString());\r\n\t\t\t\t\r\n\t\t\t\tplan.setActuallyAllocatedRecords(actuallyAllocatedTuples);\r\n\t\t\t\tList<Integer> sellersInvolved = plan.getAllocatedSellers();\r\n\t\t\t\t\r\n\t\t\t\tList<ComplexSemanticWebType> allocatedPlans = new LinkedList<ComplexSemanticWebType>();\r\n\t\t\t\tallocatedPlans.add(plan);\r\n\t\t\t\t\r\n\t\t\t\t_allocation.addAllocatedAgent(plan.getAgentId(), sellersInvolved, allocatedBundles,\r\n\t\t\t\t\t\t\t\t\t\t\t plan.computeExpectedValue(), plan.computeExpectedCosts());\r\n\t\t\t\t_allocation.addAllocatedPlans(allocatedPlans, true);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public int storrelse();",
"public double computeExpectedSW(int numberOfSellers)\r\n\t{\r\n\t\tdouble expectedSW = 0.;\r\n\t\t\r\n\t\tif( numberOfSellers == 0 )\r\n\t\t{\r\n\t\t\treturn 0.;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//for(int t = getMinNumberOfTuples(numberOfSellers-1); t <= getMaxNumberOfTuples(numberOfSellers-1); ++t)\r\n\t\t\t//\texpectedSW += ((getValue()-getCost(numberOfSellers-1))*t + computeExpectedSW( numberOfSellers - 1))\r\n\t\t\t//\t\t\t *(1./(getMaxNumberOfTuples(numberOfSellers-1)-getMinNumberOfTuples(numberOfSellers-1)+1));\r\n\t\t\tList<Double> expectedCosts = computeExpectedCosts();\r\n\t\t\tdouble expectedTotalCost = 0.;\r\n\t\t\tfor(double c : expectedCosts)\r\n\t\t\t\texpectedTotalCost += c;\r\n\t\t\texpectedSW = computeExpectedValue(numberOfSellers) - expectedTotalCost;\r\n\t\t\treturn expectedSW;\r\n\t\t}\r\n\t}",
"double getEndW();",
"private static void BicingsimulatedAnnealingSearch(int num, int n_est, int nbicis, int nfurgo, int d1, int cas, String Cas, String H, String D, int s) {\n\n\n try {\n\n double MedT = 0;\n //double MedN = 0;\n //double MedB = 0;\n int iteraciones = 100;\n Estado Bicing = new Estado(n_est,nbicis,nfurgo,d1,s,1);\n Bicing.setList_cdesp(iteraciones);\n long StartTime = System.nanoTime();\n Problem problem = new Problem(Bicing, new sucesoresA(), new isGoal(), new Heuristic_Function());\n SimulatedAnnealingSearch search = new SimulatedAnnealingSearch(iteraciones, 1000, 125, 0.00001D);\n SearchAgent agent = new SearchAgent(problem, search);\n List L = search.getPathStates();\n Properties properties = agent.getInstrumentation();\n long EndTime = System.nanoTime();\n Estado E = (Estado) search.getGoalState();\n long time = ((EndTime - StartTime) / 1000000);\n MedT += time;\n //MedB += E.getganancia();\n // MedN += Integer.parseInt(properties.getProperty((String)properties.keySet().iterator().next()));\n // MedB /= num;\n // MedN /= num;\n // MedT /= num;\n //MedB = (Math.round(MedB*100.0)/100.0);\n Writer output;\n output = new BufferedWriter(new FileWriter(\"Estadisticas_\" + Cas + \"_D\" + D + \"_H\" + H + \"S.txt\", true));\n double [] vec = E.getearnings();\n for (int i = 0 ; i < iteraciones; ++i) {\n String S = \"\" + vec[i];\n S = S + '\\n';\n output.append(S);\n }\n output.close();\n\n /*for (int i = 0; i < E.getN_furgo(); ++i) {\n System.out.println(\"Recorrido por furgoneta \" + i + \" \" + E.getIFurgo(i).getLong_t());\n }*/\n //printEstado(E);\n //System.out.println();\n //System.out.println(E.getganancia());\n //printActions(agent.getActions());\n //printInstrumentation(agent.getInstrumentation());\n } catch (Exception var4) {\n var4.printStackTrace();\n }\n\n }",
"public double getWDMeasure() {\n int na = _eigval.length;\n double lambda0 = _eigval[0][0];\n double lambda1 = _eigval[1][1];\n double lambdan = _eigval[na-1][na-1];\n double l0n = lambda0/lambdan;\n double l1n = lambda1/lambdan;\n double eps1 = Math.ulp(1.0);\n System.out.println(\"lambda0/lambdan = \"+l0n);\n System.out.println(\"lambda1/lambdan = \"+l1n);\n return (l1n-l0n)/eps1;\n }",
"public void run() {\n\n long startTime = System.nanoTime();\n\n /*\"*********************************\n * Getting data from the algorithm *\n ***********************************/\n\n // Posterior values, get them from memory instead of propagating again. Since this method is called write,\n // it should only write.\n HashMap<Variable, TablePotential> results = algorithm.getLastPosteriorValues();\n\n // Samples\n double[][] sampleStorage;\n try {\n sampleStorage = algorithm.getSamples();\n if (sampleStorage.length == 0) { // Case of empty database\n throw new NullPointerException();\n }\n\n } catch (NullPointerException e) { // Case of empty database and no database\n logger.error(\"No samples found to write\");\n LocalizedException NoDatabaseException =\n new LocalizedException(new OpenMarkovException(\"Exception.NoDatabase\"), this.dialog);\n NoDatabaseException.showException();\n return;\n }\n\n // Variables\n List<Variable> sampledVariables = algorithm.getVariablesToSample();\n\n // The maximum number of states defines the number of columns of the second sheet in Excel.\n int maxNStates = 0;\n for (Variable variable : sampledVariables) {\n if (variable.getNumStates() > maxNStates) {\n maxNStates = variable.getNumStates();\n }\n }\n\n // Evidence variables\n EvidenceCase evidence = algorithm.getFusedEvidence();\n List<Variable> evidenceVariables = evidence.getVariables();\n\n // Time measuring for this phase\n long elapsedMS = (System.nanoTime() - startTime) / 1000000;\n logger.info(\"Data obtained from the algorithm: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Data obtained from the algorithm: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"***********************\n * Creating the workbook *\n *************************/\n\n SXSSFWorkbook workbook = new SXSSFWorkbook(1000);\n\n /* Styles */\n\n // Styles to convey graphically the weight\n\n // Weight = 0\n XSSFCellStyle incompatibleSample = (XSSFCellStyle) workbook.createCellStyle();\n incompatibleSample.setFillForegroundColor(new XSSFColor(INCOMPATIBLE_SAMPLE));\n incompatibleSample.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n // Weight = 1\n XSSFCellStyle compatibleSample = (XSSFCellStyle) workbook.createCellStyle();\n compatibleSample.setFillForegroundColor(new XSSFColor(COMPATIBLE_SAMPLE));\n compatibleSample.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\n /// Font with big emphasis for the next styles\n XSSFFont bigBoldArial = (XSSFFont) workbook.createFont();\n bigBoldArial.setFontName(\"Arial\");\n bigBoldArial.setFontHeightInPoints((short) 11);\n bigBoldArial.setBold(true);\n\n // Header of table\n XSSFCellStyle topTable = (XSSFCellStyle) workbook.createCellStyle();\n\n topTable.setFillForegroundColor(new XSSFColor(HEADER_COLOR));\n topTable.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n topTable.setAlignment(HorizontalAlignment.LEFT);\n topTable.setFont(bigBoldArial);\n\n // Header of table centered\n XSSFCellStyle centeredTopTable = (XSSFCellStyle) workbook.createCellStyle();\n\n centeredTopTable.setFillForegroundColor(new XSSFColor(HEADER_COLOR_2));\n centeredTopTable.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n centeredTopTable.setAlignment(HorizontalAlignment.CENTER);\n centeredTopTable.setFont(bigBoldArial);\n\n\n /// Font with some emphasis\n XSSFFont bigArial = (XSSFFont) workbook.createFont();\n bigArial.setFontName(\"Arial\");\n bigArial.setFontHeightInPoints((short) 10);\n bigArial.setBold(true);\n\n // Chance node\n XSSFCellStyle chanceNode = (XSSFCellStyle) workbook.createCellStyle();\n\n chanceNode.setFillForegroundColor(new XSSFColor(CHANCE_NODE_COLOR));\n chanceNode.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n chanceNode.setFont(bigArial);\n\n // Algorithm name\n XSSFCellStyle subTopTable = (XSSFCellStyle) workbook.createCellStyle();\n\n subTopTable.setFont(bigArial);\n\n\n /// Font with some emphasis and white for contrast\n XSSFFont bigWhiteArial = (XSSFFont) workbook.createFont();\n bigWhiteArial.setFontName(\"Arial\");\n bigWhiteArial.setFontHeightInPoints((short) 11);\n bigWhiteArial.setColor(new XSSFColor(new Color(255, 255, 255)));\n\n // Node with finding\n XSSFCellStyle findingNode = (XSSFCellStyle) workbook.createCellStyle();\n\n findingNode.setFillForegroundColor(new XSSFColor(FINDING_NODE_COLOR));\n findingNode.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n findingNode.setFont(bigWhiteArial);\n\n\n\n // No more than four decimal places\n XSSFCellStyle smartDecimals = (XSSFCellStyle) workbook.createCellStyle();\n smartDecimals.setDataFormat(workbook.createDataFormat().getFormat(\"0.0000\"));\n\n // No more than two decimal places\n XSSFCellStyle smartFewDecimals = (XSSFCellStyle) workbook.createCellStyle();\n smartFewDecimals.setDataFormat(workbook.createDataFormat().getFormat(\"0.##\"));\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Workbook styles created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Workbook styles created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"******************\n * Sheet of samples *\n ********************/\n SXSSFSheet samples = workbook.createSheet(dialog.stringDatabase.getString(\"SheetNames.Samples\"));\n\n /* Title row */\n Row titlesRow = samples.createRow(0);\n titlesRow.createCell(0).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.SampleN\"));\n for (int colNum = 1; colNum < sampledVariables.size() + 1; colNum++) { // Names of variables\n titlesRow.createCell(colNum).setCellValue(sampledVariables.get(colNum - 1).toString());\n }\n titlesRow.createCell(sampledVariables.size() + 1).setCellValue(dialog.stringDatabase.\n getString(\"ColumnTitles.Weight\"));\n\n // Apply header style\n for (int colNum = 0; colNum < sampledVariables.size() + 2; colNum++) {\n titlesRow.getCell(colNum).setCellStyle(topTable);\n }\n\n // Auto-size columns of first sheet\n for (int colNum = 0; colNum < sampledVariables.size() + 2; colNum++) {\n samples.trackAllColumnsForAutoSizing();\n samples.autoSizeColumn(colNum);\n }\n\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Header of samples sheet: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Header of samples sheet: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /* Sample's rows */\n int rowNum;\n\n // Sample's loop\n for (rowNum = 1; rowNum < algorithm.getSampleSize() + 1; rowNum++) {\n\n Row sampleRow = samples.createRow(rowNum);\n sampleRow.createCell(0).setCellValue(rowNum);\n double weight = sampleStorage[rowNum - 1][sampledVariables.size()];\n for (int colNum = 1; colNum < sampledVariables.size() + 2; colNum++) { // Sampled states\n sampleRow.createCell(colNum).setCellValue(sampleStorage[rowNum - 1][colNum - 1]);\n if (weight == 0) {\n sampleRow.getCell(colNum).setCellStyle(incompatibleSample);\n } else {\n sampleRow.getCell(colNum).setCellStyle(compatibleSample);\n }\n }\n }\n\n\n\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Sample rows created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Sample rows created: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"************************\n * Sheet of general stats *\n **************************/\n\n SXSSFSheet generalStats = workbook.createSheet(dialog.stringDatabase.getString(\"SheetNames.GeneralStats\"));\n\n /* Rows of algorithm data */\n\n rowNum = 0;\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.Algorithm\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(dialog.algorithmName);\n generalStats.getRow(rowNum).getCell(1).setCellStyle(subTopTable);\n\n rowNum++; // Row 1\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.TotalSamples\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getSampleSize());\n\n rowNum++; // Row 2\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.RuntimePerSample\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).\n setCellValue(algorithm.getAlgorithmExecutionTime()/algorithm.getSampleSize());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartDecimals);\n\n rowNum++; // Row 3\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.Runtime\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).\n setCellValue(algorithm.getAlgorithmExecutionTime());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartFewDecimals);\n\n rowNum++; // Row 4\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.ValidSamples\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getNumPositiveSamples());\n\n rowNum++; // Row 5\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.AccumulatedWeight\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(algorithm.getAccumulatedWeight());\n generalStats.getRow(rowNum).getCell(1).setCellStyle(smartFewDecimals);\n\n rowNum++; // Row 6\n generalStats.createRow(rowNum).createCell(0).setCellValue(dialog.stringDatabase.\n getString(\"RowTitles.ExactAlgorithmName\"));\n generalStats.getRow(rowNum).getCell(0).setCellStyle(topTable);\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n generalStats.getRow(rowNum).createCell(1).setCellValue(dialog.stringDatabase.getString(\"Algorithms.Hugin\"));\n\n // Empty row\n\n rowNum +=2; // rows written until now\n\n /* Row of titles */\n titlesRow = generalStats.createRow(rowNum);\n titlesRow.createCell(0).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.Variable\"));\n\n // Big long cell for state names\n generalStats.addMergedRegion(new CellRangeAddress(rowNum, rowNum, 1, maxNStates));\n titlesRow.createCell(1).setCellValue(dialog.stringDatabase.getString(\"ColumnTitles.States\"));\n\n // Set header style\n for (int colNum = 0; colNum < 2; colNum++) {\n titlesRow.getCell(colNum).setCellStyle(centeredTopTable);\n }\n\n // Empty row for clarity\n if (evidenceVariables.size() > 0) {\n rowNum++ ;\n }\n\n // Write about evidence variables that have not been sampled\n for (Variable evidenceVariable : evidenceVariables) {\n if (!sampledVariables.contains(evidenceVariable)) {\n\n /* Row of names */\n Row namesRow = generalStats.createRow(rowNum);\n // Write the name of the variable\n Cell variableName = namesRow.createCell(0);\n variableName.setCellValue(evidenceVariable.toString());\n variableName.setCellStyle(findingNode); // The color marks it as a finding\n\n // and then the names of their states\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n Cell stateName = namesRow.createCell(colNum);\n stateName.setCellValue(evidenceVariable.getStateName(colNum - 1));\n stateName.setCellStyle(findingNode);\n }\n\n /* Row of occurrences */\n // Write \"non-sampled\"\n Row occurrencesRow = generalStats.createRow(rowNum + 1);\n Cell nSamples = occurrencesRow.createCell(0);\n nSamples.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Ocurrences\"));\n\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n occurrencesRow.createCell(colNum)\n .setCellValue(dialog.stringDatabase.getString(\"NonSampled\"));\n }\n\n /* Row of finding */\n // Write the finding\n Row approxProbsRow = generalStats.createRow(rowNum + 2);\n Cell approximateProbs = approxProbsRow.createCell(0);\n approximateProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Finding\"));\n\n for (int colNum = 1; colNum < evidenceVariable.getNumStates() + 1; colNum++) {\n int value = 0;\n if (evidence.getState(evidenceVariable) == colNum - 1) {\n value = 1;\n }\n approxProbsRow.createCell(colNum).setCellValue(value);\n }\n\n // Empty row\n Row emptyRow = generalStats.createRow(rowNum + 4);\n emptyRow.setHeight((short) 120);\n\n rowNum += 4; // Go to the next variable (each variable uses 4 rows)\n }\n }\n\n rowNum++; // Empty row for clarity.\n\n // Write sampled variables\n for (int variablePosition = 0; variablePosition < sampledVariables.size(); variablePosition++) {\n\n Variable variableToWrite = sampledVariables.get(variablePosition);\n\n /* Row of names */\n Row namesRow = generalStats.createRow(rowNum);\n // Write the name of the variable\n Cell variableName = namesRow.createCell(0);\n variableName.setCellValue(sampledVariables.get(variablePosition).toString());\n\n // and then the names of its states\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n Cell stateName = namesRow.createCell(colNum);\n stateName.setCellValue(variableToWrite.getStateName(colNum - 1));\n }\n\n // In logical sampling, evidence variables are samples. If so, mark them as findings.\n if (evidenceVariables.contains(variableToWrite)) {\n for (int colNum = 0; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n namesRow.getCell(colNum).setCellStyle(findingNode);\n }\n } else {\n for (int colNum = 0; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n namesRow.getCell(colNum).setCellStyle(chanceNode);\n }\n }\n\n /* Row of occurrences */\n Row occurrencesRows = generalStats.createRow(rowNum + 1);\n // Write the title of the row\n Cell nSamples = occurrencesRows.createCell(0);\n nSamples.setCellValue(dialog.stringDatabase.getString(\"RowTitles.Ocurrences\"));\n // Write how many times each state has been sampled\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n occurrencesRows.createCell(colNum)\n .setCellValue(getStateOccurrences(sampleStorage, variablePosition,colNum - 1));\n }\n\n /* Row of approximate probabilities */\n Row approxProbsRow = generalStats.createRow(rowNum + 2);\n // Write the title of the row\n Cell approximateProbs = approxProbsRow.createCell(0);\n approximateProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.ApproximateProbability\"));\n // Write the sampled probability\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n if (evidenceVariables.contains(variableToWrite)) {\n // Logic Sampling: in case of a sampled evidence variable, probability = 1 for the finding.\n int value = 0;\n if (evidence.getState(variableToWrite) == colNum - 1) {\n value = 1;\n }\n approxProbsRow.createCell(colNum).setCellValue(value);\n\n } else {\n approxProbsRow.createCell(colNum)\n .setCellValue(results.get(variableToWrite).getValues()[colNum - 1]);\n }\n approxProbsRow.getCell(colNum).setCellStyle(smartDecimals);\n }\n\n\n /* Row of exact probabilities */\n Row exactProbsRow = generalStats.createRow(rowNum + 3);\n // Write the title of the row\n Cell exactProbs = exactProbsRow.createCell(0);\n exactProbs.setCellValue(dialog.stringDatabase.getString(\"RowTitles.ExactProbability\"));\n // Write how many times each state has been sampled\n for (int colNum = 1; colNum < variableToWrite.getNumStates() + 1; colNum++) {\n exactProbsRow.createCell(colNum)\n .setCellValue(exactPosteriorValues.get(variableToWrite).getValues()[colNum - 1]);\n exactProbsRow.getCell(colNum).setCellStyle(smartDecimals);\n }\n\n // Empty row\n Row emptyRow = generalStats.createRow(rowNum + 4);\n emptyRow.setHeight((short) 120);\n\n rowNum += 5; // Go to the next variable (each variable uses 5 rows)\n\n }\n\n // Auto-size columns of second sheet (variable column + states columns)\n for (int colNum = 0; colNum <= 1 + maxNStates; colNum++) {\n generalStats.trackAllColumnsForAutoSizing();\n generalStats.autoSizeColumn(colNum);\n }\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"General stats added: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"General stats added: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n /*\"*****************\n * Output the file *\n *******************/\n try {\n FileOutputStream outputStream = new FileOutputStream(fileName);\n workbook.write(outputStream);\n // remember to close\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n LocalizedException OutputException =\n new LocalizedException(new OpenMarkovException(\"Exception.Output\"), this.dialog);\n OutputException.showException();\n }\n\n // Time measuring for this phase\n elapsedMS = (System.nanoTime() - startTime)/1000000;\n logger.info(\"Writing done: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n System.out.println(\"Writing done: \" + Long.toString(elapsedMS) + \" ms elapsed\");\n\n String conclusion = dialog.stringDatabase.getString(\"Conclusion\") + \"\\n\" + fileName;\n logger.info(conclusion);\n System.out.println(conclusion);\n JOptionPane.showMessageDialog(dialog, conclusion,\n dialog.stringDatabase.getString(\"ConclusionTitle\"), JOptionPane.DEFAULT_OPTION);\n }",
"private static LinkedList<Integer> mstApprox(File fileNameWithPath) throws Exception{\n\t\t\n\t\tString traceString = \"\";\n\t\tdouble bestCost = Double.POSITIVE_INFINITY;\n\t\tLinkedList<Integer> bestTspList = null;\n\t\tdouble bestCycleTime = Double.POSITIVE_INFINITY;\n\n\t\t/* \n\t\t * read the file and build the cost table\n\t\t */\n parseEdges(fileNameWithPath);\n\n /*\n\t\t * time starts once you read the data\n */\n\t\tdouble baseTime = System.nanoTime();\n\n\t\t/*\n\t\t * time starts now\n\t\t */\n\t\twhile ( System.nanoTime()-baseTime < Project.cutoffTimeSeconds*nanosecs )\n\t\t{\n\t\t\tdouble cycleStartTime = System.nanoTime();\n\t\n\t\t\t/*\n\t\t \t* invoking prim algorithm to generate the MST\n\t\t \t*/\n\t\t\tlong startNodeSeed = (long)(1000.0*generator.nextDouble());\n\t\t \tHashMap<Integer,LinkedList<Integer>> MST = PrimsMST.generateMST(Project.sourceGTree,startNodeSeed);\n\t\t\tLinkedList<Integer> tspList = new LinkedList<Integer>();\n\t\n\t\t\t/*\n\t\t\t * go over the mst vertices for a depth first search and get the preorder of vertices\n\t\t\t * this is the tsp\n\t\t\t */\n\t\t\tStack<Integer> nodeStack = new Stack<Integer>();\n\n\t\t\t/* initialized the stack with the start node of the mstree */\n\t\t\tnodeStack.push(MST.get(0).getFirst());\n\n\t\t\t/* use the stack to keep preorder list of vertices from mst for tsp */\n\t\t\twhile ( !nodeStack.empty() ) {\n\n\t\t\t\tInteger vertex1 = nodeStack.pop();\n\n\t\t\t\t/* preorder list of vertices saved for tsp */\n\t\t\t\tif (!tspList.contains(vertex1)) {\n\t\t\t\t\ttspList.add(vertex1);\n\t\t\t\t}\n\n\t\t\t\t/* there are edges out of this vertex */\n\t\t\t\tif (MST.containsKey(vertex1)) {\n\n\t\t\t\t\tListIterator<Integer> vertices = MST.get(vertex1).listIterator();\n\n\t\t\t\t\twhile (vertices.hasNext()) {\n\n\t\t\t\t\t\tInteger vertex2 = vertices.next();\n\t\t\t\t\t\tnodeStack.push(vertex2);\n\t\t\t\t\t\tProject.mstValue += sourceGTree.get(vertex1).get(vertex2);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* add the path back from last node to first node */\n\t\t\ttspList.addLast(tspList.getFirst());\n\n\t\t\tdouble tspCost = tspCost(tspList);\n\t\t\t//Subtract the start time from the finish time to get the actual algorithm running time; divide by 10e6 to convert to milliseconds\n\t\t\tdouble cycleTime = (System.nanoTime()-cycleStartTime);\n\n\t\t\tbestCost = tspCost;\n\t\t\tbestTspList = tspList;\n\t\t\tbestCycleTime = cycleTime;\n\t\t\t\n\t\t\ttraceString = String.format(\"%.2f, %d\",Math.round(((System.nanoTime()-baseTime)/nanosecs)*100.0)/100.0,Math.round(bestCost));\n\n\t\t\tbreak;\n\t\t}\n\n\t\t/* print the sol file */\n\t\tprintSol(runId,bestTspList,bestCost);\n\n\t\t/* print the trace file */\n\t\tprintTrace(runId,traceString);\n\n\t\t/* print the tab results file */\n\t\tappendTabResults(runId,bestCycleTime,bestCost,bestTspList);\n\n\t\treturn bestTspList;\n\n\t}",
"public void kruskalMST()\n\t\t{\n\t\t\tPriorityQueue<Edge> pq = new PriorityQueue<>(allEdges.size(), Comparator.comparingInt(o -> o.roadCost));\n\n\t\t\tfor(int i = 0; i < allEdges.size(); i++)\n\t\t\t{\t\n\t\t\t\tpq.add(allEdges.get(i));\n\t\t\t}\t\t\t\n\n\t\t\tint [] parent = new int[edges];\n\t\t\tmakeSet(parent);\n\t\t\tArrayList<Edge> mst = new ArrayList<>();\n\t\t\tint index = 0, tempCost = 0;\n\n\t\t\t// Step 2: Pick the lowest cost edges to add to our result\n\t\t\twhile(index < edges - 1)\n\t\t\t{\n\t\t\t\tEdge edge = pq.remove();\n\t\t\t\tint x_set = find(parent, edge.source);\n\t\t\t\tint y_set = find(parent, edge.destination);\n\n\t\t\t\t// If creates a cycle, or a road with n wagons can't support the total weight ignore it\n\t\t\t\tif(x_set == y_set /* ||edge.weightCap * wagons < shipWeight */ ){\n\t\t\n\t\t\t\t}else{\n\t\t\t\t\t// These are valid edges for our MST\n\t\t\t\t\tmst.add(edge);\n\t\t\t\t\ttempCost += edge.roadCost;\n\t\t\t\t\tindex++;\n\t\t\t\t\tunion(parent, x_set, y_set);\n\t\t\t\t}\n\t\t\t\t// If there are no edges left, break out of the while loop\n\t\t\t\tif(pq.size() < 1)\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ----------- Output working MSTs ----------- \n\t\t\t// printGraph(allEdges);\n\t\t\t// printCities(allCities);\n\n\t\t}",
"@Test\n\tpublic void westSWC()\n\t{\n\t\t\n\t\tData d = new Data();\n\t\td.set(19, 35);\n\t\td.set(21, 46);\n\t\td.set(23, 89);\n\t\td.set(27, 68);\n\t\td.set(29, 79);\n\t\td.set(1, 34);\n\t\td.set(2, 45);\n\t\td.set(3, 56);\n\t\td.set(4, 67);\n\t\td.set(5, 78);\n\t\td.set(31, 23);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(23);\n\t\tassertTrue(0==test_arr.get(0).getX() && 3==test_arr.get(0).getY()\n\t\t\t&& 0==test_arr.get(1).getX() && 4==test_arr.get(1).getY()\n\t\t\t&& 0==test_arr.get(2).getX() && 5==test_arr.get(2).getY()\n\t\t\t&& 0==test_arr.get(3).getX() && 6==test_arr.get(3).getY()\n\t\t\t&& 0==test_arr.get(4).getX() && 7==test_arr.get(4).getY());\n\t}",
"private double solution() {\n final double h = (getTextToDouble(textX1) - getTextToDouble(textX0)) / ( 2*getTextToDouble(textN)) / 3;\n double[][] mass = xInitialization();\n double answer, evenSum = 0, oddSum = 0;\n for (int i = 0; i < 2; i++) {\n for (double element : mass[i]) {\n if (i == 0)\n oddSum += getValue(element);\n else\n evenSum += getValue(element);\n }\n }\n answer = h * (getValue(getTextToDouble(textX0)) + 4 * oddSum + 2 * evenSum + getValue(getTextToDouble(textX1)));\n return answer;\n }",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\t\n\t\tStringTokenizer st;\n\t\tst = new StringTokenizer(br.readLine());\n\t\tT = Integer.parseInt(st.nextToken());\n\t\tfor(int tc=1;tc<=T;tc++){\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tN = Integer.parseInt(st.nextToken());\n\t\t\tM = Integer.parseInt(st.nextToken());\n\t\t\tW = Integer.parseInt(st.nextToken());\n\t\t\t\n\t\t\tedge = new ArrayList<>();\n\t\t\t//road\n\t\t\tfor(int i=1;i<=M;i++){\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\tint s = Integer.parseInt(st.nextToken());\n\t\t\t\tint e = Integer.parseInt(st.nextToken());\n\t\t\t\tint t = Integer.parseInt(st.nextToken());\n\t\t\t\tedge.add(new Edge(s,e,t));\n\t\t\t\tedge.add(new Edge(e,s,t));\t\t\t\t\n\t\t\t}\n\t\t\t//WormHole\n\t\t\tfor(int i=1;i<=W;i++){\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t\tint s = Integer.parseInt(st.nextToken());\n\t\t\t\tint e = Integer.parseInt(st.nextToken());\n\t\t\t\tint t = Integer.parseInt(st.nextToken());\n\t\t\t\tedge.add(new Edge(s,e,-t));\n\t\t\t}\n\t\t\t\n\t\t\tdist = new int[N+1];\n\t\t\tisUpdate = false;//초기화\n\t\t\tfor(int i=1;i<=N;i++){\n/*\t\t\t\t\n\t\t\t\tisUpdate = false;\n\t\t\t\tfor(Edge e : edge){\n\t\t\t\t\tif(dist[e.e]>dist[e.s]+e.t){//웜홀(음수)인경우 성립된다\n\t\t\t\t\t\tdist[e.e]=dist[e.s]+e.t;\n\t\t\t\t\t\tisUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!isUpdate) break; //갱신할게 없다면 또는 모두 갱신했다면\n*/\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(Edge e : edge){\n\t\t\t\t\tif(dist[e.e]>dist[e.s]+e.t){//웜홀(음수)인경우 성립된다\n\t\t\t\t\t\tdist[e.e]=dist[e.s]+e.t;\n\t\t\t\t\t\tif(i==N){\n\t\t\t\t\t\t\tisUpdate = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(isUpdate? \"YES\":\"NO\");\n\t\t}\n\t}",
"public void outputCalcResult(ArrayList<TLEString> tleList) throws ObjectDecayed, SatElsetException,\r\n\t\t\tFileNotFoundException, CannotInverseException, CannotCalculateException {\r\n\r\n\t\tSgp4Unit sgp4 = new Sgp4Unit();\r\n\t\tint startYear, stopYear, step;\r\n\t\tdouble startDay, stopDay;\r\n\r\n\t\tCalendar startDate = new GregorianCalendar(2017, 5 - 1, 15, 9, 0, 0);\r\n\t\tstartYear = startDate.get(Calendar.YEAR);\r\n\t\tstartDay = startDate.get(GregorianCalendar.DAY_OF_YEAR);\r\n\t\tCalendar stopDate = new GregorianCalendar(2017, 5 - 1, 16, 9, 0, 0);\r\n\t\tstopYear = stopDate.get(Calendar.YEAR);\r\n\t\tstopDay = stopDate.get(GregorianCalendar.DAY_OF_YEAR);\r\n\t\tstep = 60;// 60 [minutes] = 1 hour\r\n\r\n\t\tVector<Sgp4Data> results;\r\n\t\t// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmm\");\r\n\r\n\t\tIterator<TLEString> ite = tleList.iterator();\r\n\t\tArrayList<Vector<Sgp4Data>> resultsList = new ArrayList<Vector<Sgp4Data>>(tleList.size());\r\n\t\twhile (ite.hasNext()) {\r\n\t\t\tTLEString tle = (TLEString) ite.next();\r\n\t\t\tresults = sgp4.runSgp4(tle.getLine1(), tle.getLine2(), startYear, startDay, stopYear, stopDay, step);// step's\r\n\t\t\tresultsList.add(results);\r\n\t\t}\r\n\t\tKml kml = new Kml();\r\n\t\tKMLCreator kmlCreator = new KMLCreator(kml);\r\n\r\n\t\tdouble mesh = 3.0;// [degree]]\r\n\t\tdouble targetHDOP = 3.0;\r\n\t\tPositionLLH currentPosllh = null;\r\n\t\tdouble percentageUnderCertainHDOP = 0;\r\n\t\tfor (int i = 0; i < 180 / mesh; i++) {\r\n\t\t\tfor (int j = 0; j < 180 / mesh; j++) {\r\n\t\t\t\tcurrentPosllh = new PositionLLH((j * mesh - 90.0) / 180.0 * Math.PI, (i * mesh) / 180.0 * Math.PI, 0.0);\r\n\t\t\t\tpercentageUnderCertainHDOP = calcpercentageUnderCertainHDOP(currentPosllh, resultsList, targetHDOP,\r\n\t\t\t\t\t\t15.0, startDay, startYear, step);\r\n\t\t\t\tif (percentageUnderCertainHDOP == 100.0) {\r\n\t\t\t\t\tpercentageUnderCertainHDOP = 99.0;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println((i * mesh) + \", \" + (j * mesh - 90.0) + \" :\" + percentageUnderCertainHDOP);\r\n\t\t\t\tkmlCreator.createUnitPlacemark(new Coordinate(i * mesh, j * mesh - 90, 30), (int) mesh,\r\n\t\t\t\t\t\t\"polystyle\" + ((int) percentageUnderCertainHDOP * 16 / 100),\r\n\t\t\t\t\t\tDouble.toString(percentageUnderCertainHDOP));\r\n\t\t\t}\r\n\t\t}\r\n\t\tString kmlFileName = \"testdata/hdop.kml\";\r\n\t\tkml.marshal(new File(kmlFileName));\r\n\t\tSystem.out.println(\"completed: \" + kmlFileName);\r\n\t}",
"double getStartW();",
"public TTPSolution SH2() {\n \n // get TTP data\n long[][] D = ttp.getDist();\n int[] A = ttp.getAvailability();\n double maxSpeed = ttp.getMaxSpeed();\n double minSpeed = ttp.getMinSpeed();\n long capacity = ttp.getCapacity();\n double C = (maxSpeed - minSpeed) / capacity;\n double R = ttp.getRent();\n int m = ttp.getNbCities(),\n n = ttp.getNbItems();\n TTPSolution s = new TTPSolution(m, n);\n int[] x = s.getTour(),\n z = s.getPickingPlan();\n \n /*\n * the tour\n * generated using greedy algorithm\n */\n x = linkernTour();\n z = zerosPickingPlan();\n Deb.echo(x);\n Deb.echo(z);\n \n /*\n * the picking plan\n * generated so that the TTP objective value is maximized\n */\n ttp.objective(s);\n \n // partial distance from city x_i\n long di;\n \n // partial time with item k collected from city x_i\n double tik;\n \n // item scores\n Double[] score = new Double[n];\n \n // total time with no items collected\n double t_ = s.ft;\n \n // total time with only item k collected\n double tik_;\n \n // fitness value\n double u[] = new double[n];\n \n for (int k=0; k<n; k++) {\n \n int i;\n for (i=0; i<m; i++) {\n if (A[k]==x[i]) break;\n }\n //P.echo2(\"[\"+k+\"]\"+(i+1)+\"~\");\n \n // time to start with\n tik = i==0 ? .0 : s.timeAcc[i-1];\n int iw = ttp.weightOf(k),\n ip = ttp.profitOf(k);\n \n // recalculate velocities from start\n di = 0;\n for (int r=i; r<m; r++) {\n \n int c1 = x[r]-1;\n int c2 = x[(r+1)%m]-1;\n \n di += D[c1][c2];\n tik += D[c1][c2] / (maxSpeed-iw*C);\n }\n \n score[k] = ip - R*tik;\n tik_ = t_ - di + tik;\n u[k] = R*t_ + ttp.profitOf(k) - R*tik_;\n //P.echo(k+\" : \"+u[k]);\n }\n \n Quicksort<Double> qs = new Quicksort<Double>(score);\n qs.sort();\n int[] si = qs.getIndices();\n int wc = 0;\n for (int k=0; k<n; k++) {\n int i = si[k];\n int wi = ttp.weightOf(i);\n // eliminate useless\n if (wi+wc <= capacity && u[i] > 0) {\n z[i] = A[i];\n wc += wi;\n }\n }\n \n ttp.objective(s);\n \n return s;\n }",
"protected int algo() {\r\n result = algo(root, -2000000000, 2000000000);\r\n\r\n // Nach Terminierung des Algorithmus\r\n lang.nextStep();\r\n setExplain(200, result, 0);\r\n colorNode(root, seenNodeColor);\r\n code.unhighlight(14);\r\n return result;\r\n }",
"double calculateSoma(List<Double> weights);",
"public static void computeSummary() {\r\n\r\n String text = \"\\n\";\r\n\r\n //print the rank matrix\r\n\r\n text += \"\\\\begin{sidewaystable}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\resizebox{\\\\textwidth}{!}{\\\\begin{tabular}{\\n\";\r\n text += \"|c\";\r\n for (int i = 0; i < columns; i++) {\r\n text += \"|r\";\r\n }\r\n text += \"|}\\n\\\\hline\\n\";\r\n\r\n for (int i = 0; i < columns; i++) {\r\n text += \"&(\" + (i + 1) + \") \";\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n if (i != j) {\r\n text += \"& \" + wilcoxonRanks[i][j];\r\n } else {\r\n text += \"& -\";\r\n }\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}}\\n\" + \"\\\\caption{Ranks computed by the Wilcoxon test}\\n\";\r\n text += \"\\n\\\\end{sidewaystable}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n //print the p-value matrix\r\n\r\n text = \"\\n\";\r\n\r\n text += \"\\\\begin{sidewaystable}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\resizebox{\\\\textwidth}{!}{\\\\begin{tabular}{\\n\";\r\n text += \"|c\";\r\n for (int i = 0; i < columns; i++) {\r\n text += \"|c\";\r\n }\r\n text += \"|}\\n\\\\hline\\n\";\r\n\r\n for (int i = 0; i < columns; i++) {\r\n text += \"&(\" + (i + 1) + \") \";\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n\r\n if (rows <= 50) {\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n \r\n if (i < j) {//0.1\r\n text += \"& \" + getSymbol(i,j,exactPValues[i][j], exactPValues[j][i], 0.1) + \" \";\r\n }\r\n if (i == j) {\r\n text += \"& -\";\r\n }\r\n if (i > j) {//0.05\r\n text += \"& \" + getSymbol(i,j,exactPValues[i][j], exactPValues[j][i], 0.05) + \" \";\r\n }\r\n }\r\n \r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n } else {\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i] + \" (\" + (i + 1) + \")\";\r\n for (int j = 0; j < columns; j++) {\r\n if (i < j) {//0.1\r\n text += \"& \" + getSymbol(i,j,asymptoticPValues[i][j], asymptoticPValues[j][i], 0.1) + \" \";\r\n }\r\n if (i == j) {\r\n text += \"& -\";\r\n }\r\n if (i > j) {//0.05\r\n text += \"& \" + getSymbol(i,j,asymptoticPValues[i][j], asymptoticPValues[j][i], 0.05) + \" \";\r\n }\r\n }\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}}\\n\" + \"\\\\caption{Summary of the Wilcoxon test. \\\\textbullet = \"\r\n + \"the method in the row improves the method of the column. \\\\textopenbullet = \"\r\n + \"the method in the column improves the method of the row. Upper diagonal of level significance $\\\\alpha=0.9$,\"\r\n + \"Lower diagonal level of significance $\\\\alpha=0.95$}\\n\";\r\n text += \"\\n\\\\end{sidewaystable}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n text = \"\\n\";\r\n\r\n //print the summary table\r\n\r\n text += \"\\\\begin{table}[!htp]\\n\\\\centering\\\\scriptsize\\n\"\r\n + \"\\\\begin{tabular}{\\n\";\r\n text += \"|c|c|c|c|c|}\\n\\\\hline\\n\";\r\n text += \"&\\\\multicolumn{2}{c|}{$\\\\alpha=0.9$} & \\\\multicolumn{2}{c|}{$\\\\alpha=0.95$}\\\\\\\\\\\\hline\\n\";\r\n text += \"Method & + & $\\\\pm$ & + & $\\\\pm$ \";\r\n\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n for (int i = 0; i < columns; i++) {\r\n text += algorithms[i]+\" & \"+wins90[i]+\" & \"+draw90[i]+\" & \"+wins95[i]+\" & \"+draw95[i];\r\n text += \"\\\\\\\\\\n\\\\hline\\n\";\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}\\n\" + \"\\\\caption{Wilcoxon test summary results}\\n\";\r\n text += \"\\n\\\\end{table}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputSummaryFileName, text);\r\n\r\n }",
"private double costOf(int w) {\n\t\treturn getVertex(w).getCost();\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\t\t\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tN = Integer.parseInt(st.nextToken());\n\t\tM = Integer.parseInt(st.nextToken());\n\t\t\n\t\tcon = new ArrayList[N+1]; conW = new ArrayList[N+1];\n\t\tD = new long[N+1];\n\t\tfor(int i =1;i<=N;i++ ){\n\t\t\tcon[i] = new ArrayList<>();\n\t\t\tconW[i] = new ArrayList<>();\n\t\t\tD [i] = Long.MAX_VALUE;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<=M;i++){\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tint a = Integer.parseInt(st.nextToken());\n\t\t\tint b = Integer.parseInt(st.nextToken());\n\t\t\tint c = Integer.parseInt(st.nextToken());\n\t\t\tcon[a].add(b); \n\t\t\tconW[a].add(c); \n\t\t}\n\n\t\tD[1] = 0;\n\t\tfor(int i=1;i<=N;i++){\n\t\t\tif(D[i] < Long.MAX_VALUE){\n\t\t\t\tfor (int j=0;j<con[i].size();j++){\n\t\t\t\t\tint k = con[i].get(j);//i->k\n\t\t\t\t\tint w = conW[i].get(j);//i->k까지 가는데 cost\n\t\t\t\t\tD[k] = Math.min(D[k], D[i]+w);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(D[N] < Long.MAX_VALUE ? D[N] : -1);\n\n\t}",
"public void calculateStastics() {\t\t\n\t\t\n\t\t/* remove verboten spectra */\n\t\tArrayList<String> verbotenSpectra = new ArrayList<String>();\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.7436.7436.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.5161.5161.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4294.4294.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4199.4199.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.5085.5085.2.dta\");\n\t\tverbotenSpectra.add(\"USP_std_run1_100504135936.4129.4129.2.dta\");\n\t\tfor (int i = 0; i < positiveMatches.size(); i++) {\n\t\t\tMatch match = positiveMatches.get(i);\n\t\t\tfor (String name: verbotenSpectra) {\n\t\t\t\tif (name.equals(match.getSpectrum().getFile().getName())) {\n\t\t\t\t\tpositiveMatches.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < spectra.size(); i++) {\n\t\t\tSpectrum spectrum = spectra.get(i);\n\t\t\tfor (String name: verbotenSpectra) {\n\t\t\t\tif (name.equals(spectrum.getFile().getName())) {\n\t\t\t\t\tspectra.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* finding how much time per spectrum */\n\t\tmilisecondsPerSpectrum = (double) timeElapsed / spectra.size();\n\n\n\t\tMatch.setSortParameter(Match.SORT_BY_SCORE);\n\t\tCollections.sort(positiveMatches);\n\t\t\n\t\t\n\t\t/* Identify if each match is true or false */\n\t\ttestedMatches = new ArrayList<MatchContainer>(positiveMatches.size());\n\t\tfor (Match match: positiveMatches) {\n\t\t\tMatchContainer testedMatch = new MatchContainer(match);\n\t\t\ttestedMatches.add(testedMatch);\n\t\t}\n\t\t\n\t\t/* sort the tested matches */\n\t\tCollections.sort(testedMatches);\n\t\t\n\t\t\n\n\t\t/*account for the fact that these results might have the wrong spectrum ID due to\n\t\t * Mascot having sorted the spectra by mass\n\t\t */\n\t\tif (Properties.scoringMethodName.equals(\"Mascot\")){\n\t\t\t\n\t\t\t/* hash of true peptides */\n\t\t\tHashtable<String, Peptide> truePeptides = new Hashtable<String, Peptide>();\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tString truePeptide = mc.getCorrectAcidSequence();\n\t\t\t\ttruePeptides.put(truePeptide, mc.getTrueMatch().getPeptide());\n\t\t\t}\n\t\t\t\n\t\t\t/* making a hash of the best matches */\n\t\t\tHashtable<Integer, MatchContainer> bestMascotMatches = new Hashtable<Integer, MatchContainer>(); \n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tMatchContainer best = bestMascotMatches.get(mc.getMatch().getSpectrum().getId());\n\t\t\t\tif (best == null) {\n\t\t\t\t\tbestMascotMatches.put(mc.getMatch().getSpectrum().getId(), mc);\n\t\t\t\t} else {\n\t\t\t\t\tif (truePeptides.get(mc.getMatch().getPeptide().getAcidSequenceString()) != null) {\n\t\t\t\t\t\tbestMascotMatches.put(mc.getMatch().getSpectrum().getId(), mc);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* need to set the peptide, because though it may have found a correct peptide, it might not be the right peptide for this particular spectrum */\n\t\t\t\t\t\tmc.getMatch().setPeptide(mc.getTrueMatch().getPeptide());\n\t\t\t\t\t\tmc.validate();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttestedMatches = new ArrayList<MatchContainer>(bestMascotMatches.values());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t/* reduce the tested matches to one per spectrum, keeping the one that is correct if there is a correct one \n\t\t * else keep the match with the best score */\n\t\tArrayList<MatchContainer> reducedTestedMatches = new ArrayList<MatchContainer>(testedMatches.size());\n\t\tfor (Spectrum spectrum: spectra) {\n\t\t\tMatchContainer toAdd = null;\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tif (mc.getMatch().getSpectrum().getId() == spectrum.getId()) {\n\t\t\t\t\tif (toAdd == null) {\n\t\t\t\t\t\ttoAdd = mc; \n\t\t\t\t\t}\n\t\t\t\t\tif (toAdd.getMatch().getScore() < mc.getMatch().getScore()) {\n\t\t\t\t\t\ttoAdd = mc;\n\t\t\t\t\t}\n\t\t\t\t\tif (toAdd.getMatch().getScore() == mc.getMatch().getScore() && mc.isTrue()) {\n\t\t\t\t\t\ttoAdd = mc;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (toAdd != null) {\n\t\t\t\treducedTestedMatches.add(toAdd);\n\t\t\t}\n\t\t}\n\t\ttestedMatches = reducedTestedMatches;\n\t\t\n\t\t/* ensure the testedMatches are considering the correct peptide */\n\t\tif (Properties.scoringMethodName.equals(\"Peppy.Match_IMP\")){\n\t\t\tfor (MatchContainer mc: testedMatches) {\n\t\t\t\tif (mc.getMatch().getScore() < mc.getTrueMatch().getScore()) {\n\t\t\t\t\tmc.getMatch().setPeptide(mc.getTrueMatch().getPeptide());\n\t\t\t\t\tmc.getMatch().calculateScore();\n\t\t\t\t\tmc.validate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t/* again sort the tested matches */\n\t\tCollections.sort(testedMatches);\n\t\n\t\t\n\t\t//count total true;\n\t\tfor (MatchContainer match: testedMatches) {\n\t\t\tif (match.isTrue()) {\n\t\t\t\ttrueTally++;\n\t\t\t} else {\n\t\t\t\tfalseTally++;\n\t\t\t}\n\t\t\tif ((double) falseTally / (trueTally + falseTally) <= 0.01) {\n\t\t\t\ttrueTallyAtOnePercentError = trueTally;\n\t\t\t\tpercentAtOnePercentError = (double) trueTallyAtOnePercentError / spectra.size();\n\t\t\t}\n\t\t\tif ((double) falseTally / (trueTally + falseTally) <= 0.05) {\n\t\t\t\ttrueTallyAtFivePercentError = trueTally;\n\t\t\t\tpercentAtFivePercentError = (double) trueTallyAtFivePercentError / spectra.size();\n\t\t\t}\n\t\t}\n\t\t\n\t\tgeneratePrecisionRecallCurve();\n\t}",
"public void outputCalcResult2(ArrayList<TLEString> tleList) throws ObjectDecayed, SatElsetException,\r\n\t\t\tFileNotFoundException, CannotInverseException, CannotCalculateException {\r\n\r\n\t\tSgp4Unit sgp4 = new Sgp4Unit();\r\n\t\tint startYear, stopYear, step;\r\n\t\tdouble startDay, stopDay;\r\n\r\n\t\tCalendar startDate = new GregorianCalendar(2017, 5 - 1, 15, 9, 0, 0);\r\n\t\tstartYear = startDate.get(Calendar.YEAR);\r\n\t\tstartDay = startDate.get(GregorianCalendar.DAY_OF_YEAR);\r\n\t\tCalendar stopDate = new GregorianCalendar(2017, 5 - 1, 16, 9, 0, 0);\r\n\t\tstopYear = stopDate.get(Calendar.YEAR);\r\n\t\tstopDay = stopDate.get(GregorianCalendar.DAY_OF_YEAR);\r\n\t\tstep = 60;// 60 [minutes] = 1 hour\r\n\r\n\t\tVector<Sgp4Data> results;\r\n\t\t// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmm\");\r\n\r\n\t\tIterator<TLEString> ite = tleList.iterator();\r\n\t\tArrayList<Vector<Sgp4Data>> resultsList = new ArrayList<Vector<Sgp4Data>>(tleList.size());\r\n\t\twhile (ite.hasNext()) {\r\n\t\t\tTLEString tle = (TLEString) ite.next();\r\n\t\t\tresults = sgp4.runSgp4(tle.getLine1(), tle.getLine2(), startYear, startDay, stopYear, stopDay, step);// step's\r\n\t\t\tresultsList.add(results);\r\n\t\t}\r\n\t\tKml kml = new Kml();\r\n\t\tKMLCreator kmlCreator = new KMLCreator(kml);\r\n\r\n\t\tdouble mesh = 1.0;// [degree]]\r\n\t\tPositionLLH currentPosllh = null;\r\n\t\tdouble hdop_atOneMoment = Double.MIN_VALUE;\r\n\t\tfor (int i = 0; i < 360 / mesh; i++) {\r\n\t\t\tfor (int j = 0; j < 180 / mesh; j++) {\r\n\t\t\t\tcurrentPosllh = new PositionLLH((j * mesh - 90.0) / 180.0 * Math.PI, (i * mesh) / 180.0 * Math.PI, 0.0);\r\n\t\t\t\thdop_atOneMoment = calcHDOPatOneMoment(currentPosllh, resultsList, 15.0, startDay, startYear);\r\n\t\t\t\tif (hdop_atOneMoment > 16.0) {\r\n\t\t\t\t\thdop_atOneMoment = 16.0;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println((i * mesh) + \", \" + (j * mesh - 90.0) + \" :\" + hdop_atOneMoment);\r\n\t\t\t\tkmlCreator.createUnitPlacemark(new Coordinate(i * mesh, j * mesh - 90, 30), (int) mesh,\r\n\t\t\t\t\t\t\"polystyle\" + ((int) (16.0 - hdop_atOneMoment)), Double.toString(hdop_atOneMoment));\r\n\t\t\t}\r\n\t\t}\r\n\t\tString kmlFileName = \"testdata/hdop2.kml\";\r\n\t\tkml.marshal(new File(kmlFileName));\r\n\t\tSystem.out.println(\"completed: \" + kmlFileName);\r\n\t}",
"public static <E,W extends Comparable<W>> ArrayList<CWId<E,W>> nvWNoteToInvestigate(\r\n\t\t\tArrayList<CWId<E, W>> lastTreatedWNodes,\r\n\t\t\tHyperGraph<CWId<E, W>> remainCWIHG,\r\n\t\t\tHashMap<CWId<E, W>, HashMap<CWId<E, W>, Comparable<?>>> vwn2ps ){\r\n\t\t\r\n//\t\tSystem.out.println(\"IN nvWNoteToInvestigate \");\r\n//\t\tSystem.out.println( \"\\nremainCWIHG \" +remainCWIHG);\r\n//\t\t System.out.println(\"\\nvwn2ps \");\r\n//\t\t\tfor(CWId<E,W> st : vwn2ps.keySet()){\r\n//\t\t\t\tSystem.out.print(st+\" succs: \");\r\n//\t\t\t\tfor(CWId<E,W> nd : vwn2ps.get(st).keySet())\r\n//\t\t\t\t\tSystem.out.print(\" \"+nd+\" \"+ \r\n//\t\t\t\t\t\t\tvwn2ps.get(st).get(nd)+\",\");\r\n//\t\t\t\tSystem.out.println();\r\n//\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\tArrayList<CWId<E,W>> nvNodes = new ArrayList<CWId<E,W>> ();\r\n\t\t// returns empty if all edges between reached neighbors of nvwn are not directed\r\n\t\tfor(CWId<E,W> ltwn : lastTreatedWNodes){\r\n\t\t\tboolean isUnderProcess = false;\r\n\t\t\tArrayList<CWId<E,W>> nvCurNodes = new ArrayList<CWId<E,W>> ();\r\n\t\t\tfor(CWId<E,W> neighOfwn : remainCWIHG.getNeighbors(ltwn)){\r\n\t\t\t\tif(vwn2ps.containsKey(neighOfwn)){\r\n\t\t\t\t\t// if the neighbor is under process we quit \r\n\t\t\t\t\t// -> we have to finish to process its neighbors first\r\n\t\t\t\t\tif( !vwn2ps.get(neighOfwn).containsKey(ltwn) && \r\n\t\t\t\t\t\t !vwn2ps.get(ltwn).containsKey(neighOfwn)){\r\n\t\t\t\t\t\t\tisUnderProcess = true;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(!nvCurNodes.contains(neighOfwn))\r\n\t\t\t\t\t\tnvCurNodes.add(neighOfwn);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(!isUnderProcess)\r\n\t\t\t\tfor(CWId<E,W> n: nvCurNodes)\r\n\t\t\t\t\tif(!nvNodes.contains(n))\r\n\t\t\t\t\t\tnvNodes.add(n);\r\n\t\t}\r\n\r\n\t\treturn nvNodes ;\r\n\t}",
"public double sirinaStolpca(double wp, double hp) {\n // popravite / dopolnite ...\n return wp/this.podatki.length;\n }",
"public static void computeBody() {\r\n\r\n double value;\r\n String text;\r\n\r\n for (int first = 0; first < columns; first++) {\r\n for (int second = 0; second < columns; second++) {\r\n if (first != second) {\r\n computeRanks(first, second);\r\n }\r\n }\r\n }\r\n\r\n text = \"\\n\";\r\n\r\n //print individual comparisons\r\n\r\n for (int first = 0; first < columns; first++) {\r\n\r\n text += \"\\n\\\\section{Detailed results for \" + algorithms[first] + \"}\\n\\n\";\r\n text += \"\\n\\\\subsection{Results}\\n\\n\";\r\n text += \"\\\\begin{table}[!htp]\\n\\\\centering\\\\small\\n\" + \"\\\\begin{tabular}{\\n\";\r\n text += \"|c|c|c|c|c|\";\r\n text += \"}\\n\\\\hline\\n\";\r\n text += \" VS & $R^{+}$ & $R^{-}$ & Exact P-value & Asymptotic P-value \\\\\\\\ \\\\hline \\n\";\r\n for (int second = 0; second < columns; second++) {\r\n if (first != second) {\r\n text += algorithms[second] + \" & \" + wilcoxonRanks[first][second] + \" & \" + wilcoxonRanks[second][first] + \" & \";\r\n\r\n if (rows < 51) {\r\n value = exactPValues[first][second];\r\n if (value != 1.0) {\r\n text += value + \" & \";\r\n } else {\r\n text += \"$\\\\geq$ 0.2 & \";\r\n }\r\n } else {\r\n text += \"- & \";\r\n }\r\n\r\n value = asymptoticPValues[first][second];\r\n text += nf.format(value);\r\n text += \"\\\\\\\\ \\\\hline \\n\";\r\n }\r\n }\r\n\r\n text += \"\\n\" + \"\\\\end{tabular}\\n\" + \"\\\\caption{Results obtained by the Wilcoxon test for algorithm \" + algorithms[first] + \"}\\n\\\\end{table}\\n\";\r\n\r\n text += \"\\n\\\\subsection{Confidence intervals for Median of diferences}\\n\\n\";\r\n\r\n text += \"\\\\begin{table}[!htp]\\n\\\\centering\\\\small\\n\" + \"\\\\begin{tabular}{\\n\";\r\n text += \"|c|c|c|\";\r\n text += \"}\\n\\\\hline\\n\";\r\n text += \" $\\\\alpha$=0.90 & Confidence interval & Exact confidence \\\\\\\\ \\\\hline \\n\";\r\n for (int second = 0; second < columns; second++) {\r\n if (first != second) {\r\n text += algorithms[second] + \" & \" + confidenceIntervals90[first][second] + \" & \" + nf.format(exactConfidence90[first][second]) + \"\\\\\\\\ \\\\hline \\n\";\r\n }\r\n }\r\n text += \"\\n\" + \"\\\\end{tabular}\\n\" + \"\\\\caption{Confidence intervals for algorithm \" + algorithms[first] + \" ($\\\\alpha$=0.90)}\\n\\\\end{table}\\n\";\r\n\r\n text += \"\\\\begin{table}[!htp]\\n\\\\centering\\\\small\\n\" + \"\\\\begin{tabular}{\\n\";\r\n text += \"|c|c|c|\";\r\n text += \"}\\n\\\\hline\\n\";\r\n text += \" $\\\\alpha$=0.95 & Confidence interval & Exact confidence \\\\\\\\ \\\\hline \\n\";\r\n for (int second = 0; second < columns; second++) {\r\n if (first != second) {\r\n text += algorithms[second] + \" & \" + confidenceIntervals95[first][second] + \" & \" + nf.format(exactConfidence95[first][second]) + \"\\\\\\\\ \\\\hline \\n\";\r\n }\r\n }\r\n text += \"\\n\" + \"\\\\end{tabular}\\n\" + \"\\\\caption{Confidence intervals for algorithm \" + algorithms[first] + \" ($\\\\alpha$=0.95)}\\n\\\\end{table}\\n\";\r\n text += \"\\n \\\\clearpage \\n\\n\";\r\n\r\n Files.addToFile(outputFileName, text);\r\n\r\n text = \"\";\r\n }\r\n\r\n }",
"public double getResult(){\n double x;\n x= (3+Math.sqrt(9-4*3*(1-numberOfStrands)))/(2*3);\n if(x<0){\n x= (3-Math.sqrt(9-(4*3*(1-numberOfStrands))))/6;\n\n }\n numberOfLayers=(float) x;\n diameter=((2*numberOfLayers)-1)*strandDiameter;\n phaseSpacing=(float)(Math.cbrt(ab*bc*ca));\n\n netRadius=diameter/2;\n\n\n\n //SGMD calculation\n float prod=1;\n for(int rand=0;rand<spacingSub.size();rand++){\n prod*=spacingSub.get(rand);\n }\n\n //SGMD calculation\n sgmd=Math.pow((Math.pow(netRadius,subconductors)*prod*prod),1/(subconductors*subconductors));\n capacitance=((8.854e-12*2*3.14)/Math.log(phaseSpacing/sgmd));\n Log.d(\"How\",\"phase spacing:\"+phaseSpacing+\" sgmd=\"+sgmd);\n return capacitance*1000;\n\n\n }",
"public static void compareAStarW(List<Position> places, double start, double end, double step) {\n if (end < start) {\n double tmp = end;\n end = start;\n start = tmp;\n }\n Node startNode = graph.findClosest(places.get(0), false);\n Node endNode = graph.findClosest(places.get((1)), false);\n System.out.println(\"==================================================\");\n System.out.println(\"Benchmark A-Star with weighted h\");\n System.out.println(\"From \" + start + \" to \" + end + \" steps \" + step);\n System.out.println(distance.calcDist(startNode, endNode));\n System.out.println(\"==================================================\");\n System.out.println();\n\n // Vergleichs A-Stern mit w = 1\n AStarResult compareResult;\n try {\n compareResult = AStarAlgorithm.search(graph, startNode, endNode, \"Compare\", 1);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return;\n }\n\n //\n double curr;\n for (curr = start; curr <= end; curr += step) {\n Path path = new Path(\"\");\n AStarResult result;\n try {\n result = AStarAlgorithm.search(graph, startNode, endNode, \"Compare \" + curr, curr);\n path.addSegment(result.getPath());\n FileWriter fstream = new FileWriter(curr + \".gpx\");\n BufferedWriter out = new BufferedWriter(fstream);\n String gpx = GPXBuilder.build(path.getGeoLineString(true), path.getName());\n out.write(gpx);\n out.close();\n fstream.close();\n System.out.println(\"Result for w=\" + curr);\n System.out.println(\"Expanded Nodes: \" + result.getExpandedNodesCount() + \" (\" + (result.getExpandedNodesCount() - compareResult.getExpandedNodesCount()) + \")\");\n System.out.println(\"Path Length: \" + result.getPath().getLength() + \" (\" + (result.getPath().getLength() - compareResult.getPath().getLength()) + \")\");\n System.out.println(\"SortTime: \" + result.getSorttime() + \" (\" + (result.getSorttime() - compareResult.getSorttime()) + \")\");\n System.out.println(\"Runtime: \" + result.getRuntime() + \" (\" + (result.getRuntime() - compareResult.getRuntime()) + \")\");\n System.out.println();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n }",
"public static void main(String[] args) {\n int[] P ={1,2,3,4};\n \tint[] At ={0,5,3,4};\n\tint[] Bt ={2,1,4,3};\n\tint[] Ct ={0,0,0,0};\n\tint[] Tat ={0,0,0,0};\n\tint[] Wt = {0,0,0,0}; \n\tfloat AvgWt=0, AvgTat=0;\n for(int k=1;k<At.length;k++){\n for(int i=1;i<At.length;i++){\n if(At[i-1]>At[i]){\n int temp = At[i-1];\n At[i-1] = At[i];\n At[i] = temp;\n temp = P[i-1];\n P[i-1] = P[i];\n P[i] = temp;\n temp = Bt[i-1];\n Bt[i-1] = Bt[i];\n Bt[i] = temp;\n }\n }\n } \n for(int i=0;i<At.length;i++){\n \n if(i == 0){\n\t\t\tCt[i] =At[i]+ Bt[i];\n\t\t}\n else if(Ct[i-1]<At[i]){\n Ct[i]=(Bt[i]+ Ct[i-1])+(At[i]-Ct[i-1]);\n }\n else{\n \tCt[i]= Bt[i]+ Ct[i-1];\n\t\t}\n\t}\n System.out.println();\n for(int k=1;k<At.length;k++){\n for(int i=1;i<At.length;i++){\n if(P[i]<P[i-1]){\n int temp = At[i-1];\n At[i-1] = At[i];\n At[i] = temp;\n temp = P[i-1];\n P[i-1] = P[i];\n P[i] = temp;\n temp = Bt[i-1];\n Bt[i-1] = Bt[i];\n Bt[i] = temp;\n temp = Ct[i-1];\n Ct[i-1] = Ct[i];\n Ct[i] = temp;\n }\n }\n }\n System.out.println();\n \n for(int j=0;j<P.length;j++){\n Tat[j] = Ct[j] - At[j];\n Wt[j] = Tat[j] - Bt[j];\n AvgTat = AvgTat + Tat[j];\n AvgWt = AvgWt + Wt[j];\n }\n AvgTat = AvgTat/(P.length );\n AvgWt = AvgWt/(P.length ); \n System.out.println(\"P\\tA\\tB\\tC\\tT\\tW\");\n for(int j=0;j<At.length;j++){\n System.out.println(P[j]+\"\\t\"+At[j]+\"\\t\"+Bt[j]+\"\\t\"+Ct[j]+\"\\t\"+Tat[j]+\"\\t\"+Wt[j]);\n \n }\n System.out.println();\n System.out.println(\"Average TAT \\t\"+AvgTat);\n System.out.println(\"Average WT \\t\"+AvgWt);\n }",
"@Test\n public void test09() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedFalseNegativeRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }",
"public void bellman_ford(int input)\n{\n this.minimumTree = this._getKruskalTree(false);\n /*\n * Lets write the heritage of our minimum spanning tree to our Bellman Ford\n * arrays, and see what happens.\n */\n while (0 != minimumTree.size()) {\n Edge nextEdge = minimumTree.remove();\n this.bellmanParent[nextEdge.destVert] = nextEdge.srcVert;\n this.bellmanDistance[nextEdge.destVert] = nextEdge.distance;\n }\n System.out.println(\"shortest path \\t\\t\\t weight\");\n /*\n * We need to find the immediate children for the input vertex, and see how\n * far that gets us. Depending upon where the input is in the minimum\n * spanning tree, only a subtree may be accessible since this is a directed\n * graph.\n */\n for (int loop = 0;\n loop < this.nVerts;\n loop++\n ) {\n LinkedList<Integer> output = this._findShortestPath(input, loop);\n Integer result = output.removeFirst();\n int weight = 0;\n if (-1 == result) {\n continue;\n }\n System.out.print(this.vertexList[result].label);\n weight += this.bellmanDistance[result];\n while (0 != output.size()) {\n result = output.removeFirst();\n weight += this.bellmanDistance[result];\n System.out.print(\" -> \" + this.vertexList[result].label);\n }\n System.out.println(\" \\t\\t\\t\\t \" + weight);\n }\n}",
"public void calcS(){\n if (n.subtract(one).mod(new BigNumber(\"2\")).compareTo(zero)!=0){\n s=zero;\n return;\n }\n while(n.subtract(one).mod(pow(two,s)).compareTo(zero)!=0){\n //System.out.println(s);\n s=s.add(one);\n }\n s=s.subtract(one);\n }",
"float getWetness();",
"@Test\n\tpublic void testGetWeights() throws GeoTessException, IOException\n\t{\n\t\tdouble[] u = VectorGeo.getVectorDegrees(20., 90.);\n\n\t\t// construct raypth: unit vectors and radii.\n\t\tArrayList<double[]> v = new ArrayList<double[]>();\n\n\t\t// add a bunch of points along a great circle path at \n\t\t// a constant radius.\n\t\tv.clear();\n\t\tdouble[][] gc = VectorUnit.getGreatCircle(u, Math.PI/2);\n\n\t\tdouble angle = PI/6;\n\t\tdouble radius = 5350;\n\t\tint n = 100;\n\t\t\n\t\tdouble[] r = new double[n];\n\t\tArrays.fill(r, radius);\n\n\t\tdouble len = angle /(n-1.);\n\t\tfor (int i=0; i<n; ++i)\n\t\t\tv.add(VectorUnit.getGreatCirclePoint(gc, i* len));\n\n\t\t// get weights from the model.\n\t\tHashMap<Integer, Double> w = new HashMap<Integer, Double>(2*n);\n\t\t\t\t\n\t\tmodel.getWeights(v, r, null, InterpolatorType.LINEAR, InterpolatorType.LINEAR, w);\n\n\t\tdouble sum=0;\n\t\tfor (Map.Entry<Integer, Double> e : w.entrySet())\n\t\t\tsum += e.getValue();\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\t// print out the weights, the locations of the points.\n\t\tbuf.append(\"\\nPt Index weight layer lat lon depth\\n\");\n\t\tfor (Map.Entry<Integer, Double> e : w.entrySet())\n\t\t\tbuf.append(String.format(\"%6d %10.4f %3d %s%n\", e.getKey(), e.getValue(), \n\t\t\t\t\tmodel.getPointMap().getLayerIndex(e.getKey()),\n\t\t\t\t\tmodel.getPointMap().toString(e.getKey())));\n\n\t\t// compute the length of the great circle path in km.\n\t\tbuf.append(String.format(\"%nActual length of great circle path = %1.4f km%n%n\", angle*radius));\n\n\t\t// sum of the weights should equal length of great circle path.\n\t\tbuf.append(String.format(\"Size = %d Sum weights = %1.4f km%n\", w.size(), sum));\n\n\t\tassertEquals(buf.toString(), sum, angle*radius, 0.01);\n\n\t}",
"public String recoverW() {\n\t\t// Call function to remove all X edges in H\n\n\t\tthis.trimX();\n\n\t\tfor (int i = 0; i < set.size(); i++) {\n\n\t\t\tthis.discoveredW.add(findAW(set.get(i)));\n\n\t\t}\n\n\t\tString str = \"Discovered W: \" + this.discoveredW.toString();\n\n\t\treturn str;\n\t}",
"@Test\n public void test31() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedFMeasure();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }",
"public double computeWCET(Module m,ArrayList<ModuleElement> pattern, String patternType){\n\t\tdouble wcet = 0; \n\n\t\tif (patternType.compareTo(\"ROUNDTHECLOCK\")==0){\n\t\t\t// the fault cannot be on the start electroded of the pattern\n\t\t\t// this translates into the following: if the fault is on the gate (entrence) of the module, then \n\t\t\t// the droplet is re-routed to another gate ... so the fault cannot be there\n\t\t\n\t\t\tdouble crt_wcet = 0;\n\t\t\tint patternLength = (m.height + m.width -1)*2; \n\t\t\tArrayList<ModuleElement> fault_scen; \n\t\t\t//for (int x=8;x<patternLength;x++){\n\n\t\t\tfor (int x=2;x<patternLength;x++){\n\t\t\t\tfault_scen = new ArrayList<ModuleElement>(); \n\t\t\t\tfault_scen.add(pattern.get(x));\n\t\t\t\t\n\t\t\t\t//System.out.println(\"F_scen \" + fault_scen.toString() ); \n\n\t\t\t\tcrt_wcet = this.computeEps(m, fault_scen, pattern); \n\t\t\t\t//System.out.println(\"F_scen \" + fault_scen.toString() + \" wcet = \" + crt_wcet); \n\n\t\t\t\tif (wcet<crt_wcet) wcet = crt_wcet;\n\t\t\t\tif (crt_wcet>1) {\n\t\t\t\t\t//System.out.println(\"here\"); \n\t\t\t\t\t//System.exit(-1); \n\t\t\t\t}\n\n\t\t\t\t//for (int y=x+1; y<x+3; y++){\n\t\t\t\tfor (int y=x+1; y<patternLength-1; y++){\n\t\t\t\t\tfault_scen = new ArrayList<ModuleElement>(); \n\t\t\t\t\tfault_scen.add(pattern.get(x));\n\t\t\t\t\tfault_scen.add(pattern.get(y));\n\t\t\t\t\t//System.out.print(\"F_scen \" + fault_scen.toString() ); \n\t\t\t\t\tcrt_wcet = this.computeEps(m, fault_scen, pattern); \n\t\t\t\t\t//System.out.println(\"F_scen \" + fault_scen.toString() + \" wcet = \" + crt_wcet+\" \\n\"); \n\t\t\t\t\tif (wcet<crt_wcet) wcet = crt_wcet;\n\t\t\t\t\tif (crt_wcet>1) {\n\t\t\t\t\t\t//System.out.println(\"here\"); \n\t\t\t\t\t\t//System.exit(-1); \n\t\t\t\t\t}\n\n\t\t\t\t\t//for (int z=y+1; z<y+4; z++){\n\t\t\t\t\tfor (int z=y+1; z<patternLength-2; z++){\n\t\t\t\t\t\tfault_scen = new ArrayList<ModuleElement>(); \n\t\t\t\t\t\tfault_scen.add(pattern.get(x));\n\t\t\t\t\t\tfault_scen.add(pattern.get(y));\n\t\t\t\t\t\tfault_scen.add(pattern.get(z));\n\t\t\t\t\t\tcrt_wcet = this.computeEps(m, fault_scen, pattern); \n\t\t\t\t\t\tif (wcet<crt_wcet) wcet = crt_wcet; \n\t\t\t\t\t\t//System.out.println(\"F_scen \" + fault_scen.toString() + \" wcet = \" + crt_wcet+\" \\n\"); \n\t\t\t\t\t\tif (crt_wcet>1) {\n\t\t\t\t\t\t\t//System.out.println(\"here\"); \n\t\t\t\t\t\t\t//System.exit(-1); \n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn wcet; \n\t}",
"static int optimalWeight(int W, int[] w) {\n \tif (W ==0) {\n \t\treturn 0; \n \t}\n \t\n \t\n \t\n \n \tint[][] table = new int [W+1][w.length+1];\n \tfor(int i = 0; i <=w.length; i++) {\n \t\ttable[W][i] =0; \n\n \t}\n \t\n \tfor(int i = 0; i <=W; i++) {\n \t\ttable[i][w.length] =0; \n\n \t}\n \t\n \tint val = 0;\n \tfor (int i = 0; i <= W; i++) {\n \t\t\n \t\tfor (int j = 1; j<=w.length; j++) {\n \t\t\ttable[i][j] = table[i][j-1];\n \t\t\tif (w[j-1]<=i) {\n \t\t\t\tval = table[i-w[j-1]][j-1] +w[j-1]; \n \t\t\tif (table[i][j]<val) {\n \t\t\t\ttable[i][j] = val;\n \t\t\t}\n \t\t\t}\n \t\t\t\n\n \t\t}\n \t\t\n \t}\n \t\n \treturn table[W][w.length];\n\n }",
"public void computeWinnerDeterminationU()\r\n\t{\r\n\t\tif( _plans.size() == 0)\r\n\t\t{\r\n\t\t\t_allocation = new AllocationWoD();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_randGenerator.setSeed(_seed);\r\n\t\t\r\n\t\tdouble maxExpectedUtility = 0.;\r\n\t\tint itsIdx = -1;\r\n\t\tint itsAtom = -1;\r\n\t\tfor(int i = 0; i < _plans.size(); ++i)\t\t\t\t\t\t\t\t\t// for every buyer\r\n\t\t\tfor(int j = 0; j < _plans.get(i).getNumberOfAtoms(); ++j)\t\t\t// for every plan he has value for\r\n\t\t\t{\r\n\t\t\t\tComplexSemanticWebType plan = (ComplexSemanticWebType)(_plans.get(i).getAtom(j));\r\n\t\t\t\tif(_paymentRule.equals(\"SecondPrice\"))\r\n\t\t\t\t\tplan.resolveWithSecondPrice();\r\n\t\t\t\telse if(_paymentRule.equals(\"FirstPrice\"))\r\n\t\t\t\t\tplan.resolveWithFirstPrice();\r\n\t\t\t\telse throw new RuntimeException(\"Cannot resolve the type: \" + _paymentRule);\r\n\t\t\t\t\r\n\t\t\t\tdouble expectedUtility = plan.computeExpectedValue() - plan.getPlanExpectedPayment();\r\n\t\t\t\t\r\n\t\t\t\tif( expectedUtility >= maxExpectedUtility )\r\n\t\t\t\t{\r\n\t\t\t\t\tmaxExpectedUtility = expectedUtility;\r\n\t\t\t\t\titsIdx = i;\r\n\t\t\t\t\titsAtom = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t_allocation = new AllocationWoD();\r\n\r\n\t\tif(itsIdx >= 0)\r\n\t\t{\r\n\t\t\tList<Integer> allocatedBundles = new LinkedList<Integer>();\r\n\t\t\tallocatedBundles.add(itsAtom);\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tComplexSemanticWebType plan = (ComplexSemanticWebType)(_plans.get( itsIdx ).getAtom( itsAtom ));\r\n\t\t\t\t\r\n\t\t\t\tList<Integer> actuallyAllocatedTuples = new LinkedList<Integer>();\r\n\t\t\t\tfor(int i = 0; i < plan.getNumberOfFragments(); ++i)\r\n\t\t\t\t\tactuallyAllocatedTuples.add( plan.getMinNumberOfRecords(i) + _randGenerator.nextInt(plan.getMaxNumberOfRecords(i) - plan.getMinNumberOfRecords(i)) );\r\n\r\n\t\t\t\tif(plan.getAllocatedSellers().size() < 1)\r\n\t\t\t\t\tthrow new RuntimeException(\"No sellers in plan: \" + plan.toString());\r\n\t\t\t\t\r\n\t\t\t\tplan.setActuallyAllocatedRecords(actuallyAllocatedTuples);\r\n\t\t\t\tList<Integer> sellersInvolved = plan.getAllocatedSellers();\r\n\t\t\t\t\r\n\t\t\t\tList<ComplexSemanticWebType> allocatedPlans = new LinkedList<ComplexSemanticWebType>();\r\n\t\t\t\tallocatedPlans.add(plan);\r\n\t\t\t\t_allocation.addAllocatedAgent(plan.getAgentId(), sellersInvolved, allocatedBundles,\r\n\t\t\t\t\t\t\t\t\t\t\t plan.computeExpectedValue(), plan.computeExpectedCosts());\r\n\t\t\t\t_allocation.addAllocatedPlans(allocatedPlans, true);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void compute() {\n InputReader sc = null;\n try {\n sc = new InputReader(new FileInputStream(new File(\"./resources/worldtour\")));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(ex);\n }\n\n //Build Graph\n Graph G = new Graph(sc);\n adj = new int[G.totalVertices + 1][G.totalVertices + 1];\n\n //Run BFS from each vertex and fill adjacency matrix\n for (int v = 1; v <= G.totalVertices; v++) {\n Bfs bfs = new Bfs(G, v, adj);\n }\n\n //printAdjMatrix();\n // Find the farthest 3 cities to each city\n City[][] threeFurthestTo = new City[G.totalVertices + 1][4];\n // Find the farthest 3 cities from each city\n City[][] threeFurthestFrom = new City[G.totalVertices + 1][4];\n\n for (int i = 1; i <= G.totalVertices; i++) {\n City[] source = new City[G.totalVertices + 1];\n int sourceIdx = 1;\n City[] dest = new City[G.totalVertices + 1];\n int destIdx = 1;\n for (int j = 1; j <= G.totalVertices; j++) {\n if (adj[j][i] > 0) {\n source[sourceIdx] = new City(j, adj[j][i]);\n sourceIdx++;\n }\n if (adj[i][j] > 0) {\n dest[destIdx] = new City(j, adj[i][j]);\n destIdx++;\n }\n }\n Arrays.sort(source, 1, sourceIdx);\n threeFurthestTo[i][1] = source[1];\n threeFurthestTo[i][2] = source[2];\n threeFurthestTo[i][3] = source[3];\n Arrays.sort(dest, 1, destIdx);\n threeFurthestFrom[i][1] = dest[1];\n threeFurthestFrom[i][2] = dest[2];\n threeFurthestFrom[i][3] = dest[3];\n }\n\n //printMax3To(threeFurthestTo);\n //printMax3From(threeFurthestFrom);\n //For every path a -> x -> y -> b find the largest path\n int max = 0;\n int[] result = new int[4];\n for (int x = 1; x <= G.totalVertices; x++) {\n for (int y = 1; y <= G.totalVertices; y++) {\n if (adj[x][y] > 0) {\n for (int a = 1; a < 4; a++) {\n City start = threeFurthestTo[x][a];\n if (start != null) {\n for (int b = 1; b < 4; b++) {\n City end = threeFurthestFrom[y][b];\n if (end != null) {\n int startCityId = start.cityId;\n int endCityId = end.cityId;\n if (isDistinctCity(startCityId, x, y, endCityId)) {\n int sum = adj[startCityId][x] + adj[x][y] + adj[y][endCityId];\n if (sum > max) {\n result[0] = startCityId;\n result[1] = x;\n result[2] = y;\n result[3] = endCityId;\n max = sum;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n for (int x : result) {\n System.out.print(x + \" \");\n }\n }",
"public double computeExpectedSW(int numberOfSellers, List<Integer> fixedSellerIdx)\r\n\t{\r\n\t\tdouble expectedSW = 0.;\r\n\t\t\r\n\t\tif( numberOfSellers == 0 )\r\n\t\t{\r\n\t\t\treturn 0.;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(int t = getMinNumberOfTuples(numberOfSellers-1); t <= getMaxNumberOfTuples(numberOfSellers-1); ++t)\r\n\t\t\t\tif( fixedSellerIdx.contains(numberOfSellers-1) )\r\n\t\t\t\t\texpectedSW += (getValue()*_actuallyAllocatedTuples.get(numberOfSellers-1) + computeExpectedSW( numberOfSellers - 1, fixedSellerIdx))\r\n\t\t\t\t\t *(1./(getMaxNumberOfTuples(numberOfSellers-1)-getMinNumberOfTuples(numberOfSellers-1)+1));\r\n\t\t\t\telse\r\n\t\t\t\t\texpectedSW += ((getValue()-getCost(numberOfSellers-1))*t + computeExpectedSW( numberOfSellers - 1, fixedSellerIdx))\r\n\t\t\t\t\t\t\t *(1./(getMaxNumberOfTuples(numberOfSellers-1)-getMinNumberOfTuples(numberOfSellers-1)+1));\r\n\t\t\t\r\n\t\t\treturn expectedSW;\r\n\t\t}\r\n\t}",
"public void Main(){\n\t\t\n\t\tfillSFG();\n\t\tboolean[] visited = new boolean[AdjMatrix.length];\n\t\tLinkedList<Integer> pathdump = new LinkedList<Integer>();\n\t\textractForwardPaths(startNode, endNode, startNode, visited, pathdump);\n\t\textractLoops();\n\t\tgetForwardGains();\n\t\tgetLoopGains();\n\t\tprintForwardPaths();\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tprintLoops();\n\t\t\n\t\t\n\t\tcalculateDeltas();\n\t\tcalculateTotalGain();\n\t\tprintDeltasAndTotalGain();\n\t\t\n\t\tfor (int i = 1; i < nonTouching.length; i++) {\n\t\t\tSystem.out.println(\"Level = \"+i);\n\t\t\tfor (int j = 0; j < nonTouching[i].size(); j++) {\n\t\t\t\tLinkedList<Integer> dump = new LinkedList<Integer>();\n\t\t\t\tdump = nonTouching[i].get(j);\n\t\t\t\tfor (int k = 0; k < dump.size(); k++) {\n\t\t\t\t\tSystem.out.print(dump.get(k)+\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println(\"************************************************\");\n\t\t}\n\t\t\n\t\tProgramWindow.getInstance().showResults(forwardPaths,forwardGains,loops,loopGains,deltas,TotalGain,nonTouching);\n\t}",
"private Route calculate(String fromStation, String toStation) {\n\t\tif (stations==null){\r\n\t\t\tSystem.out.println(\"DEBUG RUN OF DIJKSTRA.\");\r\n\t\t\tstations = new ArrayList<Station>();\r\n\t\t\tcreateDebugMap(stations);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Check if the stations exists\r\n\t\t */\r\n\t\tStation startStation = null, endStation = null;\r\n\r\n\t\t// Find starting station\r\n\t\tfor (Station thisStation : stations) {\r\n\t\t\tif (thisStation.stationName.equals(fromStation)) {\r\n\t\t\t\tSystem.out.println(\"Found startStaion in the Database\");\r\n\t\t\t\tstartStation = thisStation;\r\n\t\t\t}\r\n\t\t\tif (thisStation.stationName.equals(toStation)) {\r\n\t\t\t\tSystem.out.println(\"Found endStation in the Database\");\r\n\t\t\t\tendStation = thisStation;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Station not found. Break\r\n\t\tif (startStation == null || endStation == null) {\r\n\t\t\tSystem.out.println(\"Shit! One of the stations could not be found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Declare the variables for the algorithm\r\n\t\t */\r\n\r\n\t\t// ArrayList for keeping track of stations we have visited.\r\n\t\tArrayList<Station> visitedStations = new ArrayList<Station>();\r\n\t\t// Array for the DijkstraStations. This type holds the current best cost and best link to it.\r\n\t\tArrayList<DijkstraStation> dijkstraStations = new ArrayList<DijkstraStation>();\r\n\r\n\t\t// The station we are examining neighbors from.\r\n\t\tDijkstraStation currentStation = new DijkstraStation(new Neighbor(startStation, 0, 0), 0, startStation);\r\n\r\n\t\t// PriorityQueue for sorting unvisited DijkstraStations.\r\n\t\tNeighBorDijktstraComparetor Dijkcomparator = new NeighBorDijktstraComparetor();\r\n\t\tPriorityQueue<DijkstraStation> unvisitedDijkstraStations;\r\n\t\tunvisitedDijkstraStations = new PriorityQueue<DijkstraStation>(100, Dijkcomparator);\r\n\r\n\t\t// Variable to keep track of the goal\r\n\t\tboolean goalFound = false; // did we find the goal yet\r\n\t\tint goalBestCost = Integer.MAX_VALUE; // did we find the goal yet\r\n\r\n\t\t// Add the start staion to the queue so that the loop will start with this staiton\r\n\t\tunvisitedDijkstraStations.add(currentStation);\r\n\t\tdijkstraStations.add(currentStation);\r\n\r\n\t\t/***************************\r\n\t\t * The Dijkstra algorithm loop.\r\n\t\t ***************************/\r\n\r\n\t\twhile (!unvisitedDijkstraStations.isEmpty()) {\r\n\t\t\t// Take the next station to examine from the queue and set the next station as the currentStation\r\n\t\t\tcurrentStation = unvisitedDijkstraStations.poll();\r\n\r\n\t\t\tSystem.out.println(\"\\n============= New loop passtrough =============\");\r\n\t\t\tSystem.out.println(\"Analysing neighbors of \" + currentStation.stationRef.stationName + \". Cost to this station is: \" + currentStation.totalCost);\r\n\r\n\t\t\t// Add visited so we dont visit again.\r\n\t\t\tvisitedStations.add(currentStation.stationRef);\r\n\r\n\t\t\t// break the algorithm if the current stations totalcost if bigger than the best cost of the goal\r\n\t\t\tif (goalBestCost < currentStation.totalCost) {\r\n\t\t\t\tSystem.out.println(\"Best route to the goal has been found. Best cost is: \" + goalBestCost\r\n\t\t\t\t\t\t+ \" (To reach current station is: \" + currentStation.totalCost + \")\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Check all neighbors from the currentStation to the neighBorQueue so we can examine them\r\n\t\t\tfor (Neighbor thisNeighbor : currentStation.stationRef.neighbors) {\r\n\r\n\t\t\t\t// Skip stations we have already visited\r\n\t\t\t\tif (!visitedStations.contains(thisNeighbor.stationRef)) {\r\n\t\t\t\t\t// If we havent seen this station before\r\n\t\t\t\t\t// Add it to the list of Dijkstrastations and to the PriorityQueue of unvisited stations\r\n\t\t\t\t\tif (getDijkstraStationByID(thisNeighbor.stationRef.stationid, dijkstraStations) == null) {\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = new DijkstraStation(thisNeighbor, currentStation.totalCost\r\n\t\t\t\t\t\t\t\t+ thisNeighbor.cost, currentStation.stationRef);\r\n\t\t\t\t\t\tdijkstraStations.add(thisDijkstraStation);\r\n\t\t\t\t\t\tunvisitedDijkstraStations.offer(thisDijkstraStation);\r\n\r\n\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\tgoalFound = true;\r\n\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\tSystem.out.println(\"Goal station found :) Cost to goal is: \" + goalBestCost);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println(\"New station seen: \" + thisDijkstraStation);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Station has been seen before.\r\n\r\n\t\t\t\t\t\t// Get the station as a DijkstraStation from the array\r\n\t\t\t\t\t\tDijkstraStation thisDijkstraStation = getDijkstraStationByID(thisNeighbor.stationRef.stationid,\r\n\t\t\t\t\t\t\t\tdijkstraStations);\r\n\r\n\t\t\t\t\t\t// Check if the connection is better than the one we already know\r\n\t\t\t\t\t\tif (currentStation.totalCost + thisNeighbor.cost < thisDijkstraStation.totalCost) {\r\n\r\n\t\t\t\t\t\t\t// New best link found\r\n\t\t\t\t\t\t\tSystem.out.println(\"New best route found for \" + thisNeighbor.stationRef.stationName);\r\n\t\t\t\t\t\t\tSystem.out.println(\"Old cost:\" + thisDijkstraStation.totalCost + \", New cost: \"\r\n\t\t\t\t\t\t\t\t\t+ (currentStation.totalCost + thisNeighbor.cost));\r\n\r\n\t\t\t\t\t\t\t// update the cost and via station on the DijkstraStation\r\n\t\t\t\t\t\t\tthisDijkstraStation.updateBestLink((int) (currentStation.totalCost + thisNeighbor.cost),\r\n\t\t\t\t\t\t\t\t\tcurrentStation.stationRef, thisNeighbor);\r\n\r\n\t\t\t\t\t\t\t// if this is the goal station, update the totalCost\r\n\t\t\t\t\t\t\tif (thisNeighbor.stationRef.equals(endStation)) {\r\n\t\t\t\t\t\t\t\tgoalBestCost = (int) thisDijkstraStation.totalCost;\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Updated cost for the goal to : \" + goalBestCost);\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\r\n\t\t}// End while\r\n\r\n\t\t// Print the World:\r\n//\t\t System.out.println();\r\n//\t\t System.out.println(\"################# Printing the world ###################\");\r\n//\t\t for (DijkstraStation thisDijkstraStation : dijkstraStations) {\r\n//\t\t System.out.println(thisDijkstraStation.toString());\r\n//\t\t DijkstraStation tempStation = thisDijkstraStation;\r\n//\t\t System.out.print(\"BackTracking route =>\");\r\n//\t\t while (!tempStation.stationRef.equals(startStation)) {\r\n//\t\t System.out.print(\" \" + tempStation.cost + \" to \" + tempStation.viaStation.stationName + \" #\");\r\n//\t\t\r\n//\t\t tempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n//\t\t }\r\n//\t\t System.out.print(\" End\");\r\n//\t\t System.out.print(\"\\n\\n\");\r\n//\t\t }\r\n//\r\n\t\tif (goalFound) {\r\n\t\t\tSystem.out.println(\"Generating route to goal\");\r\n\t\t\t// create a route object with all the stations.\r\n\t\t\tRoute routeToGoal = new Route(fromStation, toStation);\r\n\t\t\t// get the goalStation as a DijkstraStation Type\r\n\t\t\tDijkstraStation goalStation = getDijkstraStationByID(endStation.stationid, dijkstraStations);\r\n\r\n\t\t\trouteToGoal.cost = goalStation.totalCost;\r\n\t\t\trouteToGoal.price = (int) goalStation.totalCost;\r\n\r\n\t\t\t// Find the route to the goal\r\n\t\t\tDijkstraStation tempStation = goalStation;\r\n\r\n\t\t\twhile (!tempStation.stationRef.equals(startStation)) {\r\n\t\t\t\t// Add the station to the route table\r\n\t\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.cost, tempStation.cost,\r\n\t\t\t\t\t\ttempStation.stationRef.stationName, tempStation.stationRef.stationid);\r\n\t\t\t\t\r\n\t\t\t\t//Fix region string\r\n\t\t\t\tString regionString=\"\";\r\n\t\t\t\tfor (Integer regionID : tempStation.stationRef.region) {\r\n\t\t\t\t\tregionString.concat(regionID+ \",\");\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\tthisStation.region = regionString.substring(0, regionString.length() - 1);\r\n\t\t\t\t\r\n\t\t\t\t//Add the station\r\n\t\t\t\trouteToGoal.route.add(0, thisStation);\r\n\t\t\t\t// Go to the previous station\r\n\t\t\t\ttempStation = getDijkstraStationByID(tempStation.viaStation.stationid, dijkstraStations);\r\n\t\t\t}\r\n\t\t\t// add the starting station\r\n\t\t\tSerializableStation thisStation = new SerializableStation(tempStation.stationRef.latitude, tempStation.stationRef.longitude, tempStation.stationRef.stationName,\r\n\t\t\t\t\ttempStation.stationRef.stationid);\r\n\t\t\trouteToGoal.route.add(0, thisStation);\r\n\r\n\t\t\t// print the route\r\n\t\t\t//System.out.println(\"Printing best route to the Goal:\\n\" + routeToGoal.toString());\r\n\r\n\t\t\treturn routeToGoal;\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public static String makeAlgorithm(String input) {\r\n\t\ttry {\r\n\t\t\tBufferedReader reader = new BufferedReader(new StringReader(input));\r\n\t\t\tint testCases = Integer.parseInt(reader.readLine());\r\n\t\t\tStringBuffer outputBuffer = new StringBuffer();\r\n\t\t\tfor (int i = 0; i < testCases; i++) {\r\n\t\t\t\toutputBuffer.append(\"Case #\" + (i + 1) + \": \");\r\n\t\t\t\tString[] line = reader.readLine().split(\" \");\r\n\t\t\t\tint x = Integer.parseInt(line[0]);\r\n\t\t\t\tint y = Integer.parseInt(line[1]);\r\n\t\t\t\tint movedX = 0;\r\n\t\t\t\tint movedY= 0;\r\n\t\t\t\tint p=1;\r\n\t\t\t\tfor(int j=0; j<(2*Math.abs(y))-1; j++)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif(y>0)\r\n\t\t\t\t\t\toutputBuffer.append(j%2==0?\"N\":\"S\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\toutputBuffer.append(j%2==0?\"S\":\"N\");\r\n\t\t\t\t\tif(y>0)\r\n\t\t\t\t\t\tmovedY += j%2==0?p:-p;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tmovedY += j%2==0?-p:p;\r\n\t\t\t\t\tp++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor(int j=0; j<(2*Math.abs(x))-1; j++)\r\n\t\t\t\t{\t\r\n\t\t\t\t\tif(j==0)\r\n\t\t\t\t\t\tif(x>0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toutputBuffer.append(\"W\");\r\n\t\t\t\t\t\t\tmovedX -= p;\r\n\t\t\t\t\t\t\tp++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toutputBuffer.append(\"E\");\r\n\t\t\t\t\t\t\tmovedX += p;\r\n\t\t\t\t\t\t\tp++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif(x>0)\r\n\t\t\t\t\t\toutputBuffer.append(j%2==0?\"E\":\"W\");\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\toutputBuffer.append(j%2==0?\"W\":\"E\");\r\n\t\t\t\t\tif(x>0)\r\n\t\t\t\t\t\tmovedX += j%2==0?p:-p;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tmovedX += j%2==0?-p:p;\r\n\t\t\t\t\tp++;\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(movedX + \" \" + movedY);\r\n\t\t\t\toutputBuffer.append(\"\\n\");\r\n\r\n\t\t\t}\r\n\t\t\treturn outputBuffer.toString();\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}",
"void calcWTable() {\n\twtabf = new double[size];\n\twtabi = new double[size];\n\tint i;\n\tfor (i = 0; i != size; i += 2) {\n\t double pi = 3.1415926535;\n\t double th = pi*i/size;\n\t wtabf[i ] = (double)Math.cos(th);\n\t wtabf[i+1] = (double)Math.sin(th);\n\t wtabi[i ] = wtabf[i];\n\t wtabi[i+1] = -wtabf[i+1];\n\t}\n }",
"void printMST();",
"private double[][] makeMSTDouble(GaneshaLakeId[] gla, GaneshaLakeDist[] gla1, GaneshaGaneshaDist[] gla2, int noofganesha, int nooflakes, Ganesha[] ganesha, Lake[] lake, PrintWriter pw) {\n double[][] resultPlot = new double[noofganesha+nooflakes+1][5];\n int re = 1;\n \n boolean visited[] = new boolean[noofganesha];\n \n// int lid = 1;\n// \n// int minvaldist=Integer.MAX_VALUE;\n// int misvalganeshaat = -1;\n// for(int i=0;i<noofganesha;i++){\n//// pw.println(gla[i].lakeId +\"--\"+ lid );\n// if(gla[i].lakeId == lid && minvaldist>gla1[lid*noofganesha+i].distance){\n// minvaldist = gla1[lid*noofganesha+i].distance;\n// misvalganeshaat = i;\n// }\n// }\n \n// for(int lid =0;lid<nooflakes;lid++){\n// int countCO1Lake = countClusterOfOneLake(gla,lid);\n// for(int i=0;i<noofganesha;i++){\n// at = 'k';\n// mintill = Integer.MAX_VALUE;\n// minisat = 0;\n// int start = lid*noofganesha;\n// for(int j=start;j<start+noofganesha;j++){\n// if(mintill > gla1[j].distance && !visited[gla[j].ganesha] && gla[gla[j].ganesha].lakeId == lid){\n// minisat=lid;\n// mintill=gla1[j].distance;\n// at='k';\n// minis=j;\n// }\n// }\n// }\n\n for(int i=0;i<nooflakes;i++)\n {\n \n int minvaldist=Integer.MAX_VALUE;\n int misvalganeshaat = -1;\n int noofginclust = 0;\n for(int ij=0;ij<noofganesha;ij++){\n// pw.println(gla[i].lakeId +\"--\"+ lid );\n if(gla[ij].lakeId == i && minvaldist>gla1[i*noofganesha+ij].distance){\n minvaldist = gla1[i*noofganesha+ij].distance;\n misvalganeshaat = ij;\n noofginclust++;\n }\n }\n newClass nc[]=new newClass[noofganesha+1];\n int p=0;\n nc[0]=new newClass();\n nc[0].isLake=true;\n nc[0].lakeId=i;\n Ganesha g[]=new Ganesha[noofganesha];\n int k1=0;\n for(int j=0;j<noofganesha;j++)\n {\n if(gla[j].lakeId == i)\n {\n g[k1]=new Ganesha();\n g[k1].ganeshaId=j;\n \n// pw.println(j+\" j+++\");\n k1++;\n \n }\n }\n pw.println(k1+\" k1+++\");\n for(int k=0;k<k1;k++)\n {\n int min=Integer.MAX_VALUE;\n int minIs=0;\n// pw.println(gla2.length);\n for(int l=0;l<gla2.length;l++)\n {\n if( g[k]!=null && gla2[l].ganesha1==g[k].ganeshaId && gla[gla2[l].ganesha2].lakeId == i)\n {\n// pw.println( gla[g[k].ganeshaId].lakeId+\" lakeid\");\n if(min>gla2[l].distance && visited[gla2[l].ganesha2]==false && gla2[l].distance !=0)\n {\n// pw.println(gla2[l].ganesha2+\"--\"+i);\n minIs=l;\n min=gla2[l].distance;\n visited[gla2[l].ganesha2]=true;\n }\n }\n }\n newClass nc1=new newClass();\n nc1.lakeId=i;\n nc1.ganeshaId=gla2[minIs].ganesha2;\n nc1.src=g[k].ganeshaId;\n nc1.isLake=false;\n p++;\n nc[p]=nc1;\n }\n if(misvalganeshaat != -1){\n resultPlot[re][0] = lake[i].lan;\n resultPlot[re][1] = lake[i].lng;\n resultPlot[re][2] = ganesha[misvalganeshaat].lan;\n resultPlot[re][3] = ganesha[misvalganeshaat].lng;\n \n resultPlot[re][4] = lake[i].lakeId;\n re++;\n pw.println(\"Lake: \"+i+\" (lan, log): (\"+lake[i].lan+\", \"+lake[i].lng+\" to ganesha: \"+misvalganeshaat+\" (lan, log): (\"+ganesha[misvalganeshaat].lan+\", \"+ganesha[misvalganeshaat].lng+\")\");\n for(int k=1;k<p;k++)\n {\n \n resultPlot[re][0] = ganesha[nc[k].src].lan;\n resultPlot[re][1] = ganesha[nc[k].src].lng;\n resultPlot[re][2] = ganesha[nc[k].ganeshaId].lan;\n resultPlot[re][3] = ganesha[nc[k].ganeshaId].lng;\n //change 1\n resultPlot[re][4] = lake[i].lakeId;\n re++;\n // pw.println(\"ganesha\\t\"+nc[k].ganeshaId+\"\\t from\\t ganesha: \"+nc[k].src);\n pw.println(\"ganesha: \"+nc[k].src+\"(lan, lng): (\"+ganesha[nc[k].src].lan+\", \"+ganesha[nc[k].src].lng+\") to ganesha: \"+nc[k].ganeshaId+\"(lan, lng): (\"+ganesha[nc[k].ganeshaId].lan+\", \"+ganesha[nc[k].ganeshaId].lng+\")\");\n }\n }\n else{\n \n resultPlot[re][0] = lake[i].lan;\n resultPlot[re][1] = lake[i].lng;\n resultPlot[re][2] = lake[i].lan;\n resultPlot[re][3] = lake[i].lng;\n resultPlot[re][4] = lake[i].lakeId;\n re++;\n pw.println(\"Lake \"+i+\" (lan, log): (\"+lake[i].lan+\", \"+lake[i].lng+\") is Too Far.\");\n }\n pw.println();\n }\n resultPlot[0][0] = re;\n \n// for(int j=0;j<noofganesha;j++){\n// int k1 = j*noofganesha;\n// for(int k=j*noofganesha;k<(j+1)*noofganesha;k++){\n// if((mintill>gla2[k].distance)&& !visited[j] && gla[j].lakeId==lid){\n// minisat = j;\n// mintill = gla2[j].distance;\n// minis = k1-j;\n// at = 'g';\n// }\n// }\n// }\n// for(int i=0;i<noofganesha;i++){\n// int j = i;\n// pw.println(gla[i].lakeId+\" - \"+lid);\n// if(gla[i].lakeId == lid)\n// while(j<gla2.length){\n// pw.println(mintill+\" - \"+gla2[j].distance+\" - \"+visited[gla2[j].ganesha1]+\" + \"+gla[gla2[j].ganesha1].lakeId);\n// if((mintill>gla2[j].distance)&& gla2[j].distance != 0 &&\n// visited[gla2[j].ganesha1] && lid==gla[gla2[j].ganesha1].lakeId && lid==gla[gla2[j].ganesha2].lakeId){\n// minisat = gla2[j].ganesha2;;\n// mintill = gla2[j].distance;\n// minis = gla2[j].ganesha1;\n// at = 'g';\n// }\n// j = j + noofganesha;\n// }\n// pw.println(\"+\"+minis);\n// visited[minis]=true;\n// pw.println(minisat +\"-\"+at+\"\\t---------------->\"+minis);\n// \n// }\n// pw.println(\"#\");\n// \n return resultPlot;\n }",
"public abstract double getHeuristic(State state);",
"@Override\n public void postRound() {\n super.postRound();\n Integer res = 0;\n if(this.algorithm_choosed!=-1){\n switch(this.algorithm_choosed) {\n case 1:\n if((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.first_Algorithm){\n this.first_Algorithm = true;\n Tools.appendToOutput(\"Algorithm1 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm1 find this size of max matching \"+res+\"\\n\");\n }\n break;\n case 2:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.second_Algorithm) {\n this.second_Algorithm = true;\n Tools.appendToOutput(\"Algorithm2 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm2 find this size of max matching \"+res+\"\\n\");\n }\n break;\n case 3:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.third_Algorithm) {\n this.third_Algorithm = true;\n Tools.appendToOutput(\"Algorithm3 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm3 find this size of max matching \"+res+\"\\n\");\n this.tempFourth = res;\n }\n break;\n case 4:\n if(!this.fourth_algorithm && (res=this.checkingIfAllNodesHasFinished())!=-1) {\n Integer c = 0;\n this.fourth_algorithm = true;\n Tools.appendToOutput(\"Maximal converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Maximal matching size is = \"+res+\"\\n\");\n //log.logln(\"Try to find the optimum!!!\");\n for (Iterator<Node> it = Tools.getNodeList().iterator(); it.hasNext();) {\n MS4Node node = (MS4Node) it.next();\n if(node.isMarried()){\n c+=1;\n }\n node.setFindTheOptimum();\n node.end_flag = false;\n }\n this.printTheMarriages();\n //log.logln(\"Total number of nodes married = \"+c);\n this.tempFourth = res;\n }\n if(this.fourth_algorithm && (res=this.checkingIfAllNodesHasFinished())!=-1 && !this.approximazion_alg){\n Tools.appendToOutput(\"RES ---->\"+res+\"\\n\");\n for(Iterator<Node> it = Tools.getNodeList().iterator();it.hasNext();){\n MS4Node node = (MS4Node)it.next();\n if(node.isSecondMatchDone()){\n //Tools.appendToOutput(\"**NODE with a success in MATCH SECOND ==\"+node.ID+\" \\n\");\n node.setColorToEdgeAndNodes(Color.BLACK, Tools.getNodeByID(node.pointingNode));\n Tools.getNodeByID(node.pointingNode).setColor(node.defaultColor);\n node.setColorToEdgeAndNodes(Color.MAGENTA, Tools.getNodeByID(node.getP_v()));\n ((MS4Node)Tools.getNodeByID(node.getP_v())).isMarried = true;\n MS4Node married = (MS4Node)Tools.getNodeByID(node.getPointingNode());\n married.setColorToEdgeAndNodes(Color.MAGENTA,Tools.getNodeByID(married.getP_v()));\n ((MS4Node)Tools.getNodeByID(married.getP_v())).isMarried = true;\n }\n }\n Integer newRes = checkingIfAllNodesHasFinished();\n Tools.appendToOutput(\"Approx algorithm converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"New Maximal matching size is = \"+newRes+\" so improved by \"+(newRes-tempFourth)+\"\\n\");\n //log.logln(\"--------------------APPROX RESULT-----------------------------\");\n Integer count = 0;\n for(Iterator<Node> it = Tools.getNodeList().iterator();it.hasNext();){\n MS4Node node = (MS4Node)it.next();\n if(node.isMarried()) {\n count++;\n }\n }\n this.printTheMarriages();\n //log.logln(\"----------------NUMBER OF MARRIED : \"+count+\"-----------------------------\");\n this.approximazion_alg = true;\n break;\n }\n case 5:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.fifth_algorithm) {\n this.fifth_algorithm = true;\n Tools.appendToOutput(\"Algorithm3_probabilistic converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm3_probabilistic find this size of max matching \" + res + \"\\n\");\n }\n\n }\n }\n }",
"public static void main(String[] args) {\n Arrayss arrayss = new Arrayss();\n arrayss.infiniteArray(new int[]{3,5,6,7,8,10,12,14,15,16,17,18,20,34,56,78,24}, 20);\n// SlidingWindow slidingWindow = new SlidingWindow();\n//// System.out.println(slidingWindow.longestSubstring(\"AAAHHIBC\", 2));\n// Strings s = new Strings();\n// s.reverseString(\"hello\");\n// Binary binary = new Binary();\n// binary.solution(1041);\n// Arrayss arrays = new Arrayss();\n//\n// arrays.rotateByK(new int[]{3,5,6,7,8}, 3);\n//\n// BinarySearch binarySearch = new BinarySearch();\n// binarySearch.search(new int[]{3,5,6,7,8}, 9);\n// System.out.println(s.palindrome(\"civic\"));\n\n// Node node1 = new Node(1);\n// Node node2 = new Node(2);\n// Node node3 = new Node(3);\n// Node node4 = new Node(4);\n\n// node1.next = node2;\n// node2.next = node3;\n// node3.next = node4;\n// node4.next = null;\n//\n// Node head = new List().reverseRecursively(node1);\n DynamicProgramming dynamicProgramming = new DynamicProgramming();\n dynamicProgramming.fibo(5);\n dynamicProgramming.recursiveStairCaseBottomUp(3, new int[]{1,3,5});\n// System.out.println( dynamicProgramming.recursiveStairCaseBottomUp(3, new int[]{1,3,5}));\n//\n// Arrays arrays = new Arrays();\n// System.out.println(arrays.infiniteArray(new int[]{1,3,5,6,7,8,9,10,12,13}, 9));\n//\n// MicrosoftQuestions microsoftQuestions = new MicrosoftQuestions();\n// System.out.println(microsoftQuestions.twoSum(new int[]{2,4,5,7,6,8}, 14)[0]);\n\n\n\n// List list = new List();\n// Node head;\n// list.insert(5);\n// list.insert(12);\n// list.insert(20);\n// list.insertAtStart(34);\n// list.show();\n\n// ArrayList<Status> statuses = new ArrayList<>();\n// Status status1 = new Status(1);\n// Status status2 = new Status(2);\n// Status status3 = new Status(3);\n// statuses.add(status1);\n// statuses.add(status2);\n// statuses.add(status3);\n//\n// ArrayList<Holder> container = new ArrayList<>();\n// Holder holder = new Holder(\"jackie\", 1);\n// Holder holder1 = new Holder(\"tosh\", 2);\n// Holder holder2 = new Holder(\"kesh\", 3);\n// Holder holder3 = new Holder(\"tev\", 4);\n// container.add(holder);\n// container.add(holder1);\n// container.add(holder2);\n// container.add(holder3);\n//\n// List<Integer> statuseses = statuses.stream()\n// .map(Status::getStatus)\n// .collect(Collectors.toList());\n//\n// List<Holder> res = container.stream()\n// .filter(e -> !statuseses.contains(e.getStatus()))\n// .collect(Collectors.toList());\n//\n// res.forEach(e -> System.out.println(e.name));\n\n\n\n\n }",
"private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected int calculateWalk() {\n if (isPrimitive()) {\n double rating = getEngine().getRating();\n rating /= 1.2;\n if (rating % 5 != 0) {\n return (int) (rating - rating % 5 + 5) / (int) weight;\n }\n return (int) (rating / (int) weight);\n\n }\n return getEngine().getRating() / (int) weight;\n }",
"public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }",
"public double calculateNetWage(){\r\n\t return (getGrossWage()-fines);\r\n }",
"public void ComputeSimilarity() {\n\t\t\n\t\t//first construct the vector space representations for these five reviews\n\t\t// the our smaples vector, finally get the similarity metric \n\t\tanalyzequery(LoadJson(\"./data/samples/query.json\"));\n\t\n\t\t\n\t\tHashMap<String, Double> Similarity = new HashMap<String, Double>();\n\n\t\tfor (int i = 0; i < m_reviews.size(); i++) {\n\t\t\tString content = m_reviews.get(i).getContent();\n\n\t\t\tHashMap<String, Integer> conunttf = new HashMap<String, Integer>();\n\n\t\t\tHashSet<String> biminiset = new HashSet<String>();\n \n\t\t\t//danci means word unit: one or two words\n\t\t\tArrayList danci = new ArrayList();\n\n\t\t\tfor (String token : tokenizer.tokenize(content)) {\n\t\t\t\tif (m_stopwords.contains(token))\n\t\t\t\t\tcontinue;\n\t\t\t\tif (token.isEmpty())\n\t\t\t\t\tcontinue;\n\n\t\t\t\tdanci.add(PorterStemmingDemo(SnowballStemmingDemo(NormalizationDemo(token))));\n\n\t\t\t}\n \n\t\t\t//get word count in a document\n\t\t\tfor (int k = 0; k < danci.size(); k++) {\n\n\t\t\t\tif (conunttf.containsKey(danci.get(k).toString())) {\n\t\t\t\t\tconunttf.put(danci.get(k).toString(),\n\t\t\t\t\t\t\tconunttf.get(danci.get(k).toString()) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tconunttf.put(danci.get(k).toString(), 1);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tArrayList<String> N_gram = new ArrayList<String>();\n\n\t\t\tfor (String token : tokenizer.tokenize(content)) {\n\n\t\t\t\ttoken = PorterStemmingDemo(SnowballStemmingDemo(NormalizationDemo(token)));\n\t\t\t\tif (token.isEmpty()) {\n\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\n\t\t\t\t\tN_gram.add(token);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tString[] fine = new String[N_gram.size()];\n \n\t\t\t//get rid of stopwords\n\t\t\tfor (int p = 0; p < N_gram.size() - 1; p++) {\n\t\t\t\tif (m_stopwords.contains(N_gram.get(p)))\n\t\t\t\t\tcontinue;\n\t\t\t\tif (m_stopwords.contains(N_gram.get(p + 1)))\n\t\t\t\t\tcontinue;\n\n\t\t\t\tfine[p] = N_gram.get(p) + \"-\" + N_gram.get(p + 1);\n\n\t\t\t}\n\n\t\t\t\n\t\t\tfor (String str2 : fine) {\n\n\t\t\t\tif (conunttf.containsKey(str2)) {\n\t\t\t\t\tconunttf.put(str2, conunttf.get(str2) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tconunttf.put(str2, 1);\n\t\t\t\t}\n\t\t\t}\n \n\t\t\t//compute tf * idf for each document\n\t\t\tfor (String key : conunttf.keySet()) {\n\t\t\t\tif (m_stats.containsKey(key)) {\n\t\t\t\t\tdouble df = (double) m_stats.get(key);\n\n\t\t\t\t\tdouble idf = (1 + Math.log(102201 / df));\n\n\t\t\t\t\tdouble tf = conunttf.get(key);\n\n\t\t\t\t\tdouble result = tf * idf;\n\n\t\t\t\t\tm_idf.put(key, result);\n\t\t\t\t} else {\n\t\t\t\t\tm_idf.put(key, 0.0);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t\n\n\t\t\tHashMap<String, Double> query = new HashMap<String, Double>();\n\t\t\tHashMap<String, Double> test = new HashMap<String, Double>();\n \n\t\t\t//If query contains this word, store it for future computation \n\t\t\tfor (Map.Entry<String, Double> entry : m_idf.entrySet()) {\n\t\t\t\tString key = entry.getKey();\n\t\t\t\tif (query_idf.containsKey(key)) {\n\t\t\t\t\tquery.put(key, query_idf.get(key));\n\t\t\t\t\ttest.put(key, m_idf.get(key));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdouble dotProduct = 0.00;\n\t\t\tdouble magnitude1 = 0.0;\n\t\t\tdouble magnitude2 = 0.0;\n\t\t\tdouble magnitude3 = 0.0;\n\t\t\tdouble magnitude4 = 0.0;\n\t\t\tdouble cosineSimilarity = 0;\n \n\t\t\t\n\t\t\t//compute Compute similarity between query document and each document in file\n\t\t\tfor (String cal : test.keySet()) {\n\t\t\t\tdotProduct += query.get(cal) * test.get(cal); // a.b\n\t\t\t\tmagnitude1 += Math.pow(query.get(cal), 2); // (a^2)\n\t\t\t\tmagnitude2 += Math.pow(test.get(cal), 2); // (b^2)\n\n\t\t\t\tmagnitude3 = Math.sqrt(magnitude1);// sqrt(a^2)\n\t\t\t\tmagnitude4 = Math.sqrt(magnitude2);// sqrt(b^2)\n\t\t\t}\n\n\t\t\tif (magnitude3 != 0.0 | magnitude4 != 0.0)\n\t\t\t\tcosineSimilarity = dotProduct / (magnitude3 * magnitude4);\n\n\t\t\telse\n\t\t\t\tcosineSimilarity = 0;\n\n\t\t\tSimilarity.put(content, cosineSimilarity);\n\n\t\t\t\t\t\n\n\t\t}\n\n\t\t// sort output to get 3 reviews with the highest similarity with query review\n\t\tList<Map.Entry<String, Double>> infoIds = new ArrayList<Map.Entry<String, Double>>(\n\t\t\t\tSimilarity.entrySet());\n\n\t\tCollections.sort(infoIds, new Comparator<Map.Entry<String, Double>>() {\n\t\t\tpublic int compare(Map.Entry<String, Double> o1,\n\t\t\t\t\tMap.Entry<String, Double> o2) {\n\t\t\t\treturn (int) (o1.getValue() - o2.getValue());\n\t\t\t}\n\t\t});\n\n\t\tfor (int i = infoIds.size() - 1; i > infoIds.size() - 4; i--) {\n\t\t\tEntry<String, Double> ent = infoIds.get(i);\n\t\t\tSystem.out.println(ent.getValue()+\"++\"+ent.getKey()+\"\\n\");\n\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\t\tint stones[] = {8};\r\n\t\t\r\n\t\tSystem.out.println(lastStoneWeight(stones));\r\n\t\t\r\n\t}",
"void EvolutionWithElitism(){\n\t\t \tint i, j, l, k;\n\t\t\t//individual[] temp;\n\t\t\tbyte _flippc=0,_flippm=0;\n//\t\t\tString _temp1=\"\", _temp2=\"\";\n\t\t\tint[] _cp;\n\t\t\tnode[] _nd,_nm;\n\t\t\t// Khoi tao quan the dau tien \n\t\t\tRampedInit(6, 0.5);\n\t\t\t//RampedInitOffLine(6, 0.5,15);\n\t\t\t\n//\t\t\tconstructiveRate = new double[NUMGEN];\n//\t\t\tsemanticDistance = new double[NUMGEN];\n\t\t\t\n\t\t\tgen = 0;\n\t\t\twhile(gen < generation) {\n\t\t\t\t\n\t\t\t\tComputeFitness();\n\t\t\t\t\n//\t\t\t\tint g_ncross = 0;\n//\t\t\t\tdouble g_sd = 0;\n//\t\t\t\tPrintToFile();\n\t//----------------------\n//\t\t\t\tFileInputStream instream = null;\n//\t\t\t\tPrintStream outstream = null;\n//\t\t\t\tPrintStream console = System.out;\n//\t\t\t\ttry {\n//\t\t\t\t\toutstream = new PrintStream(new FileOutputStream(\"c:/result/\" + \"detail_\"+ gen + \".txt\"));\n//\t\t\t\t\tSystem.setOut(outstream);\n//\t\t\t\t} catch(Exception e) {\n//\t\t\t\t\tSystem.err.println(\"Error Occurred.\");\n//\t\t\t\t}\n//\t\t\t\tfor(i = 0; i < poplen; i++) {\n//\t\t\t\t\tSystem.out.printf(\"%3.5f \",oldpop[i].fitness);\n//\t\t\t\t\tif((i+1) % 10 == 0) {\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(oldpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// copy anh tot nhat sang the he sau\t \t\n\t\t\t\tnewpop[0].CopyIndividual(bestcurrent[gen], TRUE);\n\t\t\t\t// dot bien anh thu 2\n\t\t\t \n\t\t\t\tl=1;\t\n\t\t\t\ti = TourSelect(TOURSIZE);\n//\t\t\t\t\n\t\t\t\t\n\t\t\t newpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\tindividual[] m_individual0=new individual[1];\n\t\t\t\tint[] _mt0=new int[1];\n\t\t\t\t_nm=new node[1];\n\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual0, 15, TRUE,_mt0,_nm);\n\t\t\t\tnewpop[l]=new individual();\n\t\t\t\tnewpop[l].CopyIndividual(m_individual0[0], TRUE);\t\t\t\n\t\t\t\tnewpop[l].evaluated=FALSE;\t\t\n//\t\t\t\t\n//\t\t\t\tm_individual0=null;\n\t\t\t\t\n\t//------------------------\t\t\n\t\t\t\tl = 2;\t\t\t\n\t\t\t\twhile(l < poplen) {\n\t\t\t\t//\tSystem.out.println(\"Generation \"+ String.valueOf(gen)+\":\");\n\t\t\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\n\t\t\t\t\ti = TourSelect(TOURSIZE);\n\t\t\t\t\tj = TourSelect(TOURSIZE);\n\t\t\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t\t\t\n\t\t\t\t _flippc=Flip(pcross);\n//\t\t\t\t System.out.printf(\"pcross:%d\", _flippc);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippc == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] i_temp=new individual[2];\n\t\t\t\t\t\t_cp=new int[2];\n\t\t\t\t\t\t_nd=new node[2];\n\t\t\t\t//\t\n\t\t\t\t//\t\tif(SubTreeSwapWithTTest(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(SubTreeSwap(oldpop[i], oldpop[j], i_temp,_cp,_nd) == TRUE)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(i_temp[0],TRUE);\n\t\t\t\t\t\t\tnewpop[l+1].CopyIndividual(i_temp[1],TRUE);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tncross++;\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// semantic distance\n//\t\t\t\t\t\t\tg_sd += newpop[l].getSemanticDistance(oldpop[i]);\n//\t\t\t\t\t\t\tg_sd += newpop[l+1].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tg_sd += oldpop[i].getSemanticDistance(oldpop[j]);\t\t\t\t\t\n//\t\t\t\t\t\t\tg_ncross++;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\ti_temp=null;\n\t\t\t\t\t\t} \n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnewpop[l].CopyIndividual(oldpop[i], TRUE);\n\t\t\t\t\t\tnewpop[l + 1].CopyIndividual(oldpop[j],TRUE);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"reproduction\");\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// mutation test\n\t\t\t\t\t_flippm=Flip(pmutate);\n//\t\t\t\t\tSystem.out.printf(\"pmutation:%d\", _flippm);\n//\t\t\t\t System.out.println();\n\t\t\t\t\tif(_flippm == 1) {\t\t\t\t\t\n\t\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l], m_individual, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l]=new individual();\n\t\t\t\t\t\tnewpop[l].CopyIndividual(m_individual[0], TRUE);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l].evaluated=FALSE;\n\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+l+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t\t_temp1=newpop[l].chrom.TreeToStringN(newpop[l].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp1);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(Flip(pmutate) == 1) {\n\t\t\t\t\t\tindividual[] m_individual1=new individual[1];\n\t\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\tthis.ReplaceSubTree(newpop[l + 1], m_individual1, 15, TRUE,_mt,_nm);\n\t\t\t\t\t\tnewpop[l+1]=new individual();\n\t\t\t\t\t\tnewpop[l+1].CopyIndividual(m_individual1[0], TRUE);\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewpop[l+1].evaluated=FALSE;\n//\t\t\t\t\t\tSystem.out.printf(\"%s\",\"mutation \"+(l+1)+\" replacepoint:\"+_mt[0]);\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(_nm[0]);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tnmutate++;\n\t\t\t\t\t\tm_individual1=null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n//\t\t\t\t\t\t_temp2=\"\";\n//\t\t\t\t\t\t_temp2=newpop[l+1].chrom.TreeToStringN(newpop[l+1].chrom);\n//\t\t\t\t\t\tSystem.out.printf(\"%s\", _temp2);\t\t\t\n//\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t\tl += 2;\n\t\t\t\t}\n//\t\t\t\tfor(int ii = 0; ii < poplen; ii++) {\t\t\t\n//\t\t\t\t\t_temp1=\"\";\n//\t\t\t\t\t_temp1=oldpop[ii].chrom.TreeToStringN(newpop[ii].chrom);\n//\t\t\t\t\tSystem.out.printf(\"%s\",ii+\" \"+ _temp1);\t\t\t\n//\t\t\t\t\tSystem.out.println();\n//\t\t\t\t}\n//\t\t\t\toutstream.close();\n//\t\t\t\tSystem.setOut(console);\n\t\t\t\t// Thống kê tỷ lệ tTest\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t//\t\t\tsemanticDistance[gen] = g_sd / (2.0 * g_ncross);\n//\t\t\t\tsemanticDistance[gen] = g_sd /g_ncross;\n\t\t\t\t\n\t\t\t\tgen++;\n\t\t\t\tfor(k = 0; k < poplen; k++)\n\t\t\t\t{\n\t\t\t\t\toldpop[k]=null;\n\t\t\t\t\toldpop[k]=new individual();\n\t\t\t\t\toldpop[k].CopyIndividual(newpop[k], TRUE);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Test\n public void test20() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.kappa();\n assertEquals(1.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }",
"private double evalState(LabyrinthGameState state) {\n double score = 0;\n\n //Assign Percentages of Score\n final double treasureValTotal = 80; //Based on number of treasures left\n final double nearTreasureValTotal = 15; //Based on proximity to treasure\n final double typeTileValTotal = 1; //Based on which tile you are on\n final double numberOfConnectionsValTotal = 4; //Based on how many places you can move\n\n double treasureVal = 0;\n double nearTreasureVal = 0;\n double typeTileVal = 0;\n double numberOfConnectionsVal = 0;\n\n //calculating your treasure points\n treasureVal = (6.0 - (double)(state.getPlayerDeckSize(\n Player.values()[playerNum])))/6.0*treasureValTotal;\n\n int [] yourPos = state.getPlayerLoc(Player.values()[playerNum]).getLoc();\n int [] treasurePos = state.findTreasureLoc(Player.values()[playerNum]);\n if (treasurePos[0] == -1) {\n nearTreasureVal = (10.0 - findDistance(yourPos, findHome()))\n / 10.0 * nearTreasureValTotal;\n } else {\n nearTreasureVal = (10.0 - findDistance(yourPos, treasurePos))\n / 10.0 * nearTreasureValTotal;\n }\n\n //calculating points for the type of tile it can end on\n switch (state.getPlayerLoc(Player.values()[playerNum]).getType()) {\n case STRAIGHT:\n typeTileVal = 5.0 / 10.0 * typeTileValTotal;\n break;\n case INTERSECTION:\n typeTileVal = typeTileValTotal;\n break;\n default:\n typeTileVal = 3.0 / 10.0 * typeTileValTotal;\n break;\n }\n\n //calculating points based on # of connections created\n numberOfConnectionsVal = ((double)generatePossibleMoveActions(state).size()\n /49.0*numberOfConnectionsValTotal);\n\n //calculating final score\n score = (treasureVal + nearTreasureVal +\n typeTileVal + numberOfConnectionsVal)/100.0;\n\n return score;\n }",
"@Test\n\tpublic void kingSWC() \n\t{\n\t\tData d = new Data();\n\t\td.set(19, 35);\n\t\td.set(21, 46);\n\t\td.set(23, 89);\n\t\td.set(27, 68);\n\t\td.set(29, 79);\n\t\td.set(0, 34);\n\t\td.set(2, 45);\n\t\td.set(3, 56);\n\t\td.set(4, 67);\n\t\td.set(5, 78);\n\t\td.set(31, 23);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(23);\n\t\tassertTrue(0==test_arr.get(0).getX() && 4==test_arr.get(0).getY()\n\t\t\t&& 0==test_arr.get(1).getX() && 5==test_arr.get(1).getY()\n\t\t\t&& 0==test_arr.get(2).getX() && 6==test_arr.get(2).getY()\n\t\t\t&& 0==test_arr.get(3).getX() && 7==test_arr.get(3).getY());\n\t}",
"public double getW() {\n return w;\n }",
"float getW();",
"public static void doWilcoxon(double newData[][], String newAlgorithms[]) {\r\n\r\n outputFileName = Configuration.getPath();\r\n\r\n String outputString = \"\";\r\n outputString = header();\r\n\r\n data = new double[newData[0].length][newData.length];\r\n algorithms = new String[newAlgorithms.length];\r\n columns = data[0].length;\r\n rows = data.length;\r\n\r\n //reverse data matrix\r\n for (int i = 0; i < data.length; i++) {\r\n for (int j = 0; j < data[0].length; j++) {\r\n data[i][j] = newData[j][i];\r\n }\r\n }\r\n System.arraycopy(newAlgorithms, 0, algorithms, 0, newAlgorithms.length);\r\n\r\n wilcoxonRanks = new double[columns][columns];\r\n exactPValues = new double[columns][columns];\r\n asymptoticPValues = new double[columns][columns];\r\n confidenceIntervals95 = new String[columns][columns];\r\n confidenceIntervals90 = new String[columns][columns];\r\n exactConfidence90 = new double[columns][columns];\r\n exactConfidence95 = new double[columns][columns];\r\n\r\n wins90 = new int[columns];\r\n wins95 = new int[columns];\r\n\r\n draw90 = new int[columns];\r\n draw95 = new int[columns];\r\n\r\n Arrays.fill(wins90,0);\r\n Arrays.fill(wins95,0);\r\n\r\n Arrays.fill(draw90,0);\r\n Arrays.fill(draw95,0);\r\n\r\n nf = (DecimalFormat) DecimalFormat.getInstance();\r\n nf.setMaximumFractionDigits(6);\r\n nf.setMinimumFractionDigits(0);\r\n\r\n DecimalFormatSymbols dfs = nf.getDecimalFormatSymbols();\r\n dfs.setDecimalSeparator('.');\r\n nf.setDecimalFormatSymbols(dfs);\r\n\r\n Files.writeFile(outputFileName, outputString);\r\n\r\n computeBody();\r\n\r\n outputString = footer();\r\n\r\n Files.addToFile(outputFileName, outputString);\r\n\r\n //write summary file\r\n outputSummaryFileName = outputFileName.substring(0, outputFileName.length() - 4) + \"_Summary.tex\";\r\n\r\n outputString = headerSummary();\r\n\r\n Files.addToFile(outputSummaryFileName, outputString);\r\n\r\n computeSummary();\r\n\r\n outputString = footer();\r\n\r\n Files.addToFile(outputSummaryFileName, outputString);\r\n\r\n }",
"static int webknapSackDyna(int W, int wt[], int val[], int n) {\n int i, w;\n int K[][] = new int[n + 1][W + 1];\n //K[i][w] represents the max value for weight w by using i elements\n // row i represents using i values\n // col w represents the current weight\n // Build table K[][] in bottom up manner\n // n is the number of values available to use\n // for each available value\n for (i = 0; i <= n; i++) {\n // for each weight until target weight is achieved\n for (w = 0; w <= W; w++) {\n\n if (i == 0 || w == 0)\n K[i][w] = 0;\n // if the previous weight is still less than the target weight it can potentially be included\n // to calculate the max val for current weight\n else if (wt[i - 1] <= w)\n // val[i-1]: value for the i th weight\n // K[i-1][w-wt[i-1]]: max value using i-1 values to achieve weight target weight - wt of i-1 element\n // val[i-1] + K[i-1][w-wt[i-1]] -> used ith weight add val[i-] and use the remaining i-1 weights to\n // get to the target weight w-wt of ith element -> wt-wt[i-1]\n // K[i-1][w] => max value using i-1 elements to achieve weight w i.e. not using ith element\n K[i][w] = max(val[i - 1] + K[i - 1][w - wt[i - 1]], K[i - 1][w]);\n // wt[i-1] > w\n else\n K[i][w] = K[i - 1][w];\n }\n }\n\n return K[n][W];\n }",
"public void solveSA() {\r\n initState();\r\n for (int ab = 0; ab < Config.NumberOfMetropolisResets; ab++) {\r\n LogTool.print(\"==================== INACTIVE: START CALC FOR OUTER ROUND \" + ab + \"=========================\",\"notification\");\r\n\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\");\r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n setCur_cost(costCURsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"CUR COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n /* [Newstate] with random dwelltimes */\r\n New_state = newstater(); \r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW STATE \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n// newstater();\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New State before Metropolis: A)\" + New_state[0] + \" B) \" + New_state[1] + \" C) \" + New_state[2],\"notification\");\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New Cost : \" + New_cost,\"notification\");\r\n }\r\n\r\n /**\r\n * MetropolisLoop\r\n * @param Config.NumberOfMetropolisRounds\r\n */\r\n\r\n for(int x=0;x<Config.NumberOfMetropolisRounds;x++) { \r\n LogTool.print(\"SolveSA Iteration \" + x + \" Curcost \" + Cur_cost + \" Newcost \" + New_cost,\"notification\");\r\n if ((Cur_cost - New_cost)>0) { // ? die Kosten\r\n \r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 START\",\"notification\");\r\n }\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA Cost delta \" + (Cur_cost - New_cost) + \" \",\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C1 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 STOP \",\"notification\");\r\n }\r\n } else if (Math.exp(-(New_cost - Cur_cost)/temperature)> RandGenerator.randDouble(0.01, 0.99)) {\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 START: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 before set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 STOP: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n } else {\r\n New_state = newstater();\r\n }\r\n temperature = temperature-1;\r\n if (temperature==0) {\r\n break;\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal());\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n//</editor-fold>\r\n if ((x==58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n if ((Cur_cost - New_cost)>0) {\r\n Cur_state = New_state;\r\n Cur_cost = New_cost; \r\n }\r\n }\r\n if ((x>58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n }\r\n }\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Auskommentierter GLowestState Object Class\">\r\n// if (ab==9) {\r\n// double diff=0;\r\n// }\r\n \r\n // Hier wird kontrolliert, ob das minimalergebnis des aktuellen\r\n // Metropolisloops kleiner ist als das bsiher kleinste\r\n \r\n// if (Cur_cost<Global_lowest_cost) {\r\n// this.setGlobal_lowest_cost(Cur_cost);\r\n// GlobalState GLowestState = new GlobalState(this.Cur_state);\r\n// String rGLSOvalue = GLowestState.getGlobal_Lowest_state_string();\r\n// LogTool.print(\"GLS DEDICATED OBJECT STATE OUTPUT -- \" + GLowestState.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(GLowestState.getDwelltimes());\r\n // LogTool.print(\"READ FROM OBJECT OUTPUT -- \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// LogTool.print(\"DEBUG: CurCost direct : \" + this.getCur_cost(),\"notification\"); \r\n// LogTool.print(\"Debug: Cur<global CurState get : \" + this.getCur_state_string(),\"notification\");\r\n// LogTool.print(\"Debug: Cur<global GLS get : \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(this.getCur_state(Cur_state));\r\n// LogTool.print(\"Debug: Cur<global GLS get after set : \" + this.getGlobal_Lowest_state_string(),\"notification\"); \r\n// }\r\n //</editor-fold>\r\n LogTool.print(\"SolveSA: Outer Iteration : \" + ab,\"notification\");\r\n LogTool.print(\"SolveSA: Last Calculated New State/Possible state inner loop (i.e. 99) : \" + this.getNew_state_string(),\"notification\");\r\n// LogTool.print(\"SolveSA: Best Solution : \" + this.getCur_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: GLS after all loops: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: LastNewCost, unchecked : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: CurCost : \" + this.getCur_cost() + \"i.e. lowest State of this round\",\"notification\"); \r\n }\r\n // return GLowestState;\r\n }",
"public double getW() {\n\t\treturn w;\n\t}",
"@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}",
"public SolutionSet execute() throws JMException, ClassNotFoundException {\n int maxEvaluations ;\n int evaluations ;\n\n SolutionSet population ;\n SolutionSet offspringPopulation ;\n\n Solution betterIndividual ;\n\n Operator mutationOperator ;\n Comparator comparator ;\n Operator localSearchOperator ;\n\n\n comparator = new ObjectiveComparator(0) ; // Single objective comparator\n\n // Read the params\n maxEvaluations = ((Integer)this.getInputParameter(\"maxEvaluations\")).intValue();\n\n // Initialize the variables\n population = new SolutionSet(mu_) ;\n offspringPopulation = new SolutionSet(lambda_) ;\n\n evaluations = 0;\n\n // Read the operators\n mutationOperator = this.operators_.get(\"mutation\");\n localSearchOperator = (LocalSearch) operators_.get(\"improvement\");\n\n System.out.println(\"(\" + mu_ + \" + \" + lambda_+\")ES\") ;\n\n // Create 1-parent population of mu solutions\n Solution newIndividual;\n newIndividual = new Solution(problem_);\n problem_.evaluate(newIndividual);\n evaluations++;\n betterIndividual = new Solution(newIndividual);\n population.add(betterIndividual);\n\n // Main loop\n while (evaluations < maxEvaluations) {\n // STEP 1. Generate the offspring\n Solution offspring = new Solution(population.get(0)) ;\n mutationOperator.execute(offspring);\n /*Solution mutated_solution = (Solution) mutationOperator.execute(offspring);\n if(offspring.getObjective(0) < mutated_solution.getObjective(0))\n offspring = mutated_solution;*/\n problem_.evaluate(offspring);\n Solution local_offspring = (Solution) localSearchOperator.execute(offspring);\n offspring.setObjective(0, local_offspring.getObjective(0));\n offspringPopulation.add(offspring);\n evaluations++;\n\n if(comparator.compare(betterIndividual, offspringPopulation.get(0)) > 0) {\n betterIndividual = new Solution(offspringPopulation.get(0));\n population.clear();\n // STEP 4. Create the new mu population\n population.add(betterIndividual);\n }\n\n System.out.println(population.get(0).getObjective(0)) ;\n\n // STEP 6. Delete the offspring population\n offspringPopulation.clear() ;\n } // while\n\n // Return a population with the best individual\n SolutionSet resultPopulation = new SolutionSet(1) ;\n resultPopulation.add(population.get(0)) ;\n\n return resultPopulation ;\n }",
"@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }",
"private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}",
"public static double calcW2Wsentencesimilarity(String question, String answer) {\n\t \t \n\t double Lamda = 2000;\n\t double Beta = 0.2;\n\t String[] answerwords=answer.split(\"\\\\s+\");\n\t String[] questionwords=question.split(\"\\\\s+\");\n\t int CountAwords = answerwords.length;\n\t double PbUV = 0.0;\n\t \n\t for ( String questionword: questionwords)\n\t {\n\t\t//String QACorpus = GetQACorpus(\"file1\",\"file2\");\n\t\t \n\t\tString QACorpus = GetQACorpus(\"/Tarun Malhotra/codechef/answers.txt\",\"/Tarun Malhotra/codechef/questions.txt\");\n\t\t \n\t\t\n\t\tint CountQWordinCorpus=WordFrequencyInSentence(questionword,QACorpus);\n\t\tString trimmed = QACorpus.trim();\n\t\tint CorpusWordCount = trimmed.isEmpty() ? 0 : trimmed.split(\"\\\\s+\").length;\n\t\t\n\t\tdouble PbmlWbyV = WordFrequencyInSentence(questionword,answer)/answerwords.length;\n\t\t\n\t\tdouble PbmxWbyV = (1-Beta)*PbmlWbyV+Beta*CalculatedProbability\n\t\t\t\t(QACorpus,questionword,answer );\n\t\t\n\t\tdouble PbmlWbyC = CountQWordinCorpus/CorpusWordCount;\n\t\tdouble PbWbyV= (CountAwords/(CountAwords+Lamda))*PbmxWbyV +\n\t\t\t\t(Lamda/(CountAwords+Lamda))*PbmlWbyC;\n\n\t\t PbUV +=PbWbyV; \n\n\t }\n\t \n\treturn PbUV;\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tint T = sc.nextInt();\r\n\t\t\r\n\t\tfor (int z = 1; z <= T; z++) {\r\n\t\t\tint N = sc.nextInt();\r\n\t\t\tint[] input = new int[N+1];\r\n\t\t\t\r\n\t\t\tfor (int j = 1; j <= N; j++) {\r\n\t\t\t\tinput[j] = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint[] weight = new int[N+1];\r\n\t\t\tint[] memWeight = new int[N+1];\r\n\t\t\t\r\n\t\t\tint cnt = 1;\r\n\t\t\tweight[1] = 1;\r\n\t\t\tmemWeight[1] = input[1]; \r\n\t\t\tfor (int j = 2; j <= N; j++) {\r\n\t\t\t\tfor (int k = cnt; k >= 1 ; k--) {\r\n\t\t\t\t\tif(input[j] > memWeight[k] && k == cnt) {\r\n\t\t\t\t\t\tmemWeight[++cnt] = input[j];\r\n\t\t\t\t\t\tweight[j] = cnt;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(input[j] > memWeight[k] && k < cnt) {\r\n\t\t\t\t\t\tmemWeight[k+1] = input[j];\r\n\t\t\t\t\t\tweight[j] = cnt;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(k == 1) {\r\n\t\t\t\t\t\tmemWeight[k] = input[j] < memWeight[k] ? input[j] : memWeight[k];\r\n\t\t\t\t\t\tweight[j] = cnt;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// result\r\n\t\t\tint maxV = -1;\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tif(maxV < weight[i]) {\r\n\t\t\t\t\tmaxV = weight[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"#\"+z+\" \"+maxV);\r\n\t\t}\r\n\t\t\r\n\t\tsc.close();\r\n\t}",
"int countSusbset(int n, int w){\n //i.e target sum achieved\n if(w == 0){\n return 1;\n }\n \n //if sum not achieved and no items left\n if(n == 0){\n return 0;\n }\n \n //if item is gretart than target weight, we have to exclude it\n if(arr[n-1] > w){\n return countSusbset(n-1, w)\n }else{ \n return countSusbset(n-1, w) + countSusbset(n-1, w - arr[n-1]);\n }\n}",
"public void calculate(Set<Article> articles) {\n \n Set<ArticleDocument> articleDocuments = new HashSet<>();\n for (Article article : articles) {\n articleDocuments.add(article.getDocument());\n }\n \n VSMDocument positiveWords = new TextDocument(\"positive_words.txt\");\n VSMDocument negativeWords = new TextDocument(\"negative_words.txt\");\n \n ArrayList<VSMDocument> documents = new ArrayList<VSMDocument>();\n documents.add(positiveWords);\n documents.add(negativeWords);\n documents.addAll(articleDocuments);\n \n Corpus corpus = new Corpus(documents);\n \n VectorSpaceModel vectorSpace = new VectorSpaceModel(corpus);\n \n double totalPositive = 0;\n double totalNegative = 0;\n \n \n for(ArticleDocument articleDoc : articleDocuments) {\n VSMDocument doc = (VSMDocument) articleDoc;\n System.out.println(\"\\nComparing to \" + doc);\n double positive = vectorSpace.cosineSimilarity(positiveWords, doc);\n double negative = vectorSpace.cosineSimilarity(negativeWords, doc);\n System.out.println(\"Positive: \" + positive);\n System.out.println(\"Negative: \" + negative);\n if (!Double.isNaN(positive)) {\n totalPositive += positive;\n }\n if (!Double.isNaN(negative)) {\n totalNegative += negative;\n }\n double difference = positive - negative;\n if (difference >= 0) {\n System.out.println(\"More positive by \" + difference);\n } else {\n System.out.println(\"More negative by \" + Math.abs(difference));\n }\n \n if (positive >= mostPositive) {\n mostPositive = positive;\n mostPositiveDoc = doc;\n }\n if (negative >= mostNegative) {\n mostNegative = negative;\n mostNegativeDoc = doc;\n }\n if (Math.abs(difference) >= Math.abs(biggestDifference)) {\n biggestDifference = difference;\n biggestDifferenceDoc = doc;\n }\n \n String publisher = articleDoc.getPublisher();\n String region = articleDoc.getRegion();\n LocalDate day = articleDoc.getDate().toLocalDate();\n DayOfWeek weekday = day.getDayOfWeek();\n if (!Double.isNaN(positive)) {\n if (publisherOptimism.containsKey(publisher)) {\n publisherOptimism.get(publisher).add(positive);\n } else {\n publisherOptimism.put(publisher, new LinkedList<Double>());\n publisherOptimism.get(publisher).add(positive);\n }\n \n if (publisherPessimism.containsKey(publisher)) {\n publisherPessimism.get(publisher).add(negative);\n } else {\n publisherPessimism.put(publisher, new LinkedList<Double>());\n publisherPessimism.get(publisher).add(negative);\n }\n \n if (regionOptimism.containsKey(region)) {\n regionOptimism.get(region).add(positive);\n } else {\n regionOptimism.put(region, new LinkedList<Double>());\n regionOptimism.get(region).add(positive);\n }\n \n if (regionPessimism.containsKey(region)) {\n regionPessimism.get(region).add(negative);\n } else {\n regionPessimism.put(region, new LinkedList<Double>());\n regionPessimism.get(region).add(negative);\n }\n \n if (dayOptimism.containsKey(day)) {\n dayOptimism.get(day).add(positive);\n } else {\n dayOptimism.put(day, new LinkedList<Double>());\n dayOptimism.get(day).add(positive);\n }\n \n if (dayPessimism.containsKey(day)) {\n dayPessimism.get(day).add(negative);\n } else {\n dayPessimism.put(day, new LinkedList<Double>());\n dayPessimism.get(day).add(negative);\n }\n \n if (weekdayOptimism.containsKey(weekday)) {\n weekdayOptimism.get(weekday).add(positive);\n } else {\n weekdayOptimism.put(weekday, new LinkedList<Double>());\n weekdayOptimism.get(weekday).add(positive);\n }\n \n if (weekdayPessimism.containsKey(weekday)) {\n weekdayPessimism.get(weekday).add(negative);\n } else {\n weekdayPessimism.put(weekday, new LinkedList<Double>());\n weekdayPessimism.get(weekday).add(negative);\n }\n }\n }\n \n size = articleDocuments.size();\n avgPositive = totalPositive / size;\n avgNegative = totalNegative / size;\n printInfo();\n }",
"public Solute (double MWA)\n\t\t\t{\n\t\t\t\tthis.MWA=MWA;\t\n\t\t\t}",
"public double[] ConsumptionDecisionRule(double[] Kt, double[] Zt) {\r\n\t\t// LOGGER.info(\"Kt[0]=\" + Kt[0] + \" , Zt[0]=\" + Zt[0]);\r\n\t\tdouble[] result = new double[N];\r\n\t\tdouble[] W_t = new double[N];\r\n\t\t// double[] result = Kt;\r\n\t\t// fact[9] = iT / (double) T;\r\n\t\tfor (int i = 0; i < N; i++) {\r\n\r\n\t\t\t// Compute wage\r\n\t\t\tW_t[i] = (1 - delta) * Kt[i] + Zt[i] * Math.pow(Kt[i], alpha);\r\n\t\t\t// LOGGER.info(\"Kt[i]=\" + Kt[i] + \" , W_t=\" + W_t);\r\n\r\n\t\t\t// fact[0] = Kt[i];\r\n\t\t\t// fact[1] = Zt[i];\r\n\t\t\t// fact[2] = W_t[i];\r\n\r\n\t\t\t// result[i] = (W_t[i] * 0.34);\r\n\r\n\t\t\t// S[sc=640619,15461196 at 2000, 3x[C 0,35 [], C 0,256 [6], C -0,032 [4]]]\r\n\t\t\t// result[i] = W_t[i] * (0.35 + 0.256 * factValues[6] - 0.032 * factValues[4]);\r\n\t\t\t// S[sc=673175,23434734 at 2000, 4x[C 0,448 [6], C 0,35 [], C -0,192 [8, 8, 8], C -0,032 [4]]]\r\n\t\t\t// result[i] = W_t[i] * (0.35 + 0.448 * fact[6] - 0.192 * fact[8] * fact[8] * fact[8] - 0.032 * fact[4]);\r\n\r\n\t\t\t// S[sc=684511.51178919 at 5000, 6x[C 0.576 [6], C 0.35 [], C -0.256 [4, 5, 8], C -0.128 [8, 8, 8], C 0.032\r\n\t\t\t// [3], C -0.032 [4]]]\r\n\t\t\t// result[i] = W_t[i]\r\n\t\t\t// * (0.35 + 0.576 * fact[6] - 0.256 * fact[4] * fact[5] * fact[8] - 0.128 * fact[8] * fact[8] * fact[8] +\r\n\t\t\t// 0.032\r\n\t\t\t// * fact[3] - 0.032 * fact[4]);\r\n\r\n\t\t\t// S[sc=713249.61733519 at 17000, 10x[C 0.57042768 [6], C -0.42834052 [4, 5, 8], C 0.35726662 [], C\r\n\t\t\t// -0.19234839 [8, 8, 8], C 0.0618062 [3], C 0.03906074 [3, 3], C -0.0354908 [6, 8, 8], C -0.032 [4], C\r\n\t\t\t// 0.02872478 [3, 6, 6], C -0.01470091 [4, 8]]]\r\n\t\t\t// result[i] = W_t[i]\r\n\t\t\t// * (0.35726662 + 0.57042768 * fact[3] - 0.42834052 * fact[1] * fact[2] * fact[5] - 0.19234839 * fact[5] *\r\n\t\t\t// fact[5]\r\n\t\t\t// * fact[5] + 0.0618062 * fact[2] + 0.03906074 * fact[2] * fact[2] - 0.0354908 * fact[3] * fact[5] *\r\n\t\t\t// fact[5]\r\n\t\t\t// - 0.032 * fact[1] + 0.02872478 * fact[0] * fact[3] * fact[3] - 0.01470091 * fact[1] * fact[5]);\r\n\t\t\tresult[i] = W_t[i]\r\n\t\t\t\t\t* ( //\r\n\t\t\t\t\t0.40334336 + 0.22997859 * fact[3] + 0.21837595 * fact[3] * fact[3] + 0.15973829 * fact[3] * fact[4] + -0.10161004\r\n\t\t\t\t\t\t\t* fact[1] * fact[5] + -0.020384 * fact[1] * fact[1] * fact[5]\r\n\t\t\t);\r\n\t\t\t// Keep only valid solutions\r\n\t\t\tresult[i] = Math.max(result[i], VERY_SMALL * W_t[i]);\r\n\t\t\t// to have a valid result\r\n\t\t\tresult[i] = Math.min(result[i], W_t[i] * (1.0 - VERY_SMALL));\r\n\t\t}\r\n\r\n\t\t// LOGGER.info(\"Kt[0]=\" + Kt[0] + \" , Zt[0]=\" + Zt[0] + \" , \" + result[0] + \" for \" + iT);\r\n\t\t// int s = 0;\r\n\t\t// LOGGER.info(\"Kt[\" + s + \"]=\" + Kt[s] + \" , Zt[]=\" + Zt[s] + \" , W_t[]=\" + W_t[s] + \" , \" + result[s] +\r\n\t\t// \" for \" + iT);\r\n\t\tiT++;\r\n\t\treturn result;\r\n\t}",
"public static void main(String[] args) {\n\n\t\tWordNet wn = new WordNet(args[0], args[1]);\n\t\tassert (wn.sap(\"'hood\", \"1780s\").compareTo(\"entity\") == 0);\n\t\tassert (wn.distance(\"1530s\", \"1530s\") == 0);\n\t\tassert (wn.distance(\"collar_blight\", \"top\") == 11);\n\n\t\ttry {\n\t\t\tWordNet wn1 = new WordNet(\"syntest.txt\", \"2rootsnym.txt\");\n\t\t\tassert (wn1.distance(\"1840s\", \"'hood\") == -1);\n\t\t\twn1.sap(\"1840s\", \"'hood\");\n\n\t\t\t// wn1.distance(\"1830s\", \"'hood\");\n\t\t\t// wn1.sap(\"1830s\", \"'hood\");\n\t\t\tassert false : \"A graph with 2 roots should throw exception\";\n\n\t\t} catch (java.lang.IllegalArgumentException e) {\n\t\t\tSystem.out.println(\"2 Roots detected: \" + e);\n\t\t}\n\n\t\ttry {\n\t\t\tWordNet wn2 = new WordNet(\"syntest.txt\", \"cycnym.txt\");\n\t\t\tassert false : \"A cyclic graph should throw exception\";\n\n\t\t} catch (java.lang.IllegalArgumentException e) {\n\t\t\tSystem.out.println(\"Cycle detected: \" + e);\n\t\t}\n\n\t}",
"@Test\n\tpublic void southSWC()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(32, 103);\n\t\td.set(33, 104);\n\t\td.set(34, 113);\n\t\td.set(35, 106);\n\t\td.set(36, 107);\n\t\td.set(1, 114);\n\t\td.set(2, 115);\n\t\td.set(3, 116);\n\t\td.set(4, 117);\n\t\td.set(5, 118);\n\t\td.set(19, 119);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(119);\n\t\tassertTrue(7==test_arr.get(0).getX() && 10==test_arr.get(0).getY()\n\t\t\t&& 6==test_arr.get(1).getX() && 10==test_arr.get(1).getY()\n\t\t\t&& 5==test_arr.get(2).getX() && 10==test_arr.get(2).getY()\n\t\t\t&& 4==test_arr.get(3).getX() && 10==test_arr.get(3).getY()\n\t\t\t&& 3==test_arr.get(4).getX() && 10==test_arr.get(4).getY());\n\t}",
"private void exeSTMST()\n\t{\n\t\tif(cl_dat.M_flgLCUPD_pbst)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tM_strSQLQRY = \"Select IST_WRHTP,IST_PRDTP,IST_LOTNO,IST_RCLNO,IST_MNLCD,IST_PKGTP,sum(IST_ISSQT) LM_SUMQT\";\n\t\t\t\tM_strSQLQRY += \" from FG_ISTRN where IST_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and IST_STSFL = '1' and isnull(IST_ISSQT,0)>0 \";\n\t\t\t\tM_strSQLQRY += \" group by IST_WRHTP,IST_PRDTP,IST_LOTNO,IST_RCLNO,IST_PKGTP,IST_MNLCD\";\n\t\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\t\tM_rstRSSET = cl_dat.exeSQLQRY1(M_strSQLQRY);\n\t\t\t\twhile(M_rstRSSET.next())\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t strWRHTP = M_rstRSSET.getString(\"IST_WRHTP\");\n\t\t\t\t\tstrPRDTP = M_rstRSSET.getString(\"IST_PRDTP\");\n\t\t\t\t\tstrLOTNO = M_rstRSSET.getString(\"IST_LOTNO\");\n\t\t\t\t\tstrRCLNO = M_rstRSSET.getString(\"IST_RCLNO\");\n\t\t\t\t\tstrMNLCD = M_rstRSSET.getString(\"IST_MNLCD\");\n\t\t\t\t\tstrPKGTP = M_rstRSSET.getString(\"IST_PKGTP\");\n\t\t\t\t\tstrISAQT = M_rstRSSET.getString(\"LM_SUMQT\");\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tupdSTMST1();\n\t\t\t\t\t}\n\t\t\t\tif(M_rstRSSET != null)\n\t\t\t\t\tM_rstRSSET.close();\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"exeSTMST\");\n\t\t\t}\n\t\t}\n\t}",
"public double computeWCETSmallerModules(Module m,ArrayList<ModuleElement> pattern, String patternType){\n\t\tdouble wcet = 0; \n\t\tif (patternType.compareTo(\"ROUNDTHECLOCK\")==0){\n\t\t\t// the fault cannot be on the start electroded of the pattern\n\t\t\t// this translates into the following: if the fault is on the gate (entrence) of the module, then \n\t\t\t// the droplet is re-routed to another gate ... so the fault cannot be there\n\t\t\n\t\t\tdouble crt_wcet = 0;\n\t\t\tint patternLength = (m.height + m.width -1)*2; // the lenght of a cycle\n\t\t\tArrayList<ModuleElement> fault_scen; \n\t\t\t// take the k=1 combinations first \n\t\t\tdouble max_1F_wcet = 0; \n\t\t\t//for (int x=8;x<patternLength;x++){\n\t\t\tfor (int x=2;x<patternLength;x++){\n\t\t\t\tfault_scen = new ArrayList<ModuleElement>(); \n\t\t\t\tfault_scen.add(pattern.get(x));\n\t\t\t\t//System.out.println(\"F_scen \" + fault_scen.toString() ); \n\t\t\t\tcrt_wcet = this.computeEps(m, fault_scen, pattern); \n\t\t\t\t//System.out.println(\"F_scen \" + fault_scen.toString() + \" wcet = \" + crt_wcet); \n\t\t\t\tif (max_1F_wcet<crt_wcet) max_1F_wcet = crt_wcet;\n\t\t\t}\n\t\t\t// take the k=2 combinations \n\t\t\tdouble max_2F_wcet =0; \n\t\t\tfor (int x=2;x<patternLength;x++){\n\t\t\t\t//for (int y=x+1; y<x+3; y++){\n\t\t\t\tfor (int y=x+1; y<patternLength-1; y++){\n\t\t\t\t\tfault_scen = new ArrayList<ModuleElement>(); \n\t\t\t\t\tfault_scen.add(pattern.get(x));\n\t\t\t\t\tfault_scen.add(pattern.get(y));\n\t\t\t\t\t//System.out.print(\"F_scen \" + fault_scen.toString() ); \n\t\t\t\t\tcrt_wcet = this.computeEps(m, fault_scen, pattern); \n\t\t\t\t\t//System.out.println(\"F_scen \" + fault_scen.toString() + \" wcet = \" + crt_wcet+\" \\n\"); \n\t\t\t\t\tif (max_2F_wcet<crt_wcet) max_2F_wcet = crt_wcet;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// take the k=3 combinations \n\t\t\tdouble max_3F_wcet =0; \n\t\t\tfor (int x=2;x<patternLength;x++){\n\t\t\t\tfor (int y=x+1; y<patternLength-1; y++){\n\t\t\t\t\t//for (int z=y+1; z<y+4; z++){\n\t\t\t\t\tfor (int z=y+1; z<patternLength-2; z++){\n\t\t\t\t\t\tfault_scen = new ArrayList<ModuleElement>(); \n\t\t\t\t\t\tfault_scen.add(pattern.get(x));\n\t\t\t\t\t\tfault_scen.add(pattern.get(y));\n\t\t\t\t\t\tfault_scen.add(pattern.get(z));\n\t\t\t\t\t\tcrt_wcet = this.computeEps(m, fault_scen, pattern); \n\t\t\t\t\t\tif (max_3F_wcet<crt_wcet) max_3F_wcet = crt_wcet; \n\t\t\t\t\t\t//System.out.println(\"F_scen \" + fault_scen.toString() + \" wcet = \" + crt_wcet+\" \\n\"); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// case k=1\n\t\t\tmax_1F_wcet += pattern.size()*0.01; \n\t\t\tmax_2F_wcet += pattern.size()*0.01; \n\t\t\tmax_3F_wcet += pattern.size()*0.01; \n\t\t\tdouble smaller_m_wcet = 0; \n\n\t\t\twcet = Math.max(this.nonFWCET(m.width-1, m.height),this.nonFWCET(m.width, m.height-1));\n\t\t\twcet = Math.min(max_1F_wcet,wcet); \n\t\t\tSystem.out.println(\"max_1F_wcet=\" + max_1F_wcet + \" wcet = \" + wcet); \n\t\t\n\t\t\t// case k=2 \n\t\t\tSystem.out.println(\" k = 2 \"); \n\t\t\tif(m.width==4 || m.height ==4){\n\t\t\t\tif (max_2F_wcet > max_1F_wcet)\n\t\t\t\t\tsmaller_m_wcet = max_1F_wcet; \n\t\t\t\telse smaller_m_wcet = max_2F_wcet; \n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int i=2; i<(int)Math.floor(m.height/2)+1;i++){\n\t\t\t\t\tif (smaller_m_wcet < this.nonFWCET(m.width, m.height-i))\n\t\t\t\t\t\tsmaller_m_wcet = this.nonFWCET(m.width, m.height-i); \n\t\t\t\t}\n\t\t\t\tfor(int i=2; i<(int)Math.floor(m.width/2)+1;i++){\n\t\t\t\t\tif (smaller_m_wcet < this.nonFWCET(m.width-i, m.height))\n\t\t\t\t\t\tsmaller_m_wcet = this.nonFWCET(m.width-i, m.height); \n\t\t\t\t}\n\t\t\t\tif (smaller_m_wcet < this.nonFWCET(m.width-1, m.height-1))\n\t\t\t\t\tsmaller_m_wcet = this.nonFWCET(m.width-1, m.height-1); \t\t\t\n\t\t\t}\n\t\t\twcet = Math.max(wcet, Math.min(max_2F_wcet, smaller_m_wcet)); \n\t\t\tSystem.out.println(\"max_2F_wcet=\" + max_2F_wcet + \" wcet = \" + wcet + \" smaller = \" + smaller_m_wcet); \n\n\t\t // case k=3\n\t\t\t// I have to use placement here - generate all possible combinations even inside the module \n\t\t\tsmaller_m_wcet = this.minPlacedRectWCET(m, max_2F_wcet); \n\t\t\tSystem.out.println(\"max_2F_wcet=\" + max_2F_wcet +\" max_3F_wcet=\" + max_3F_wcet + \" wcet = \" + wcet + \" smaller = \" + smaller_m_wcet); \n\n\t\t\t//wcet = Math.max(wcet, Math.min(max_3F_wcet, smaller_m_wcet)); \n\n\n\t\t\t\n\t\t}\n\t\t\n\t\treturn wcet; \n\t}",
"private int heuristic(Node node, int currentDepth) {\n\n int ef, w1 = 1, w2 = 1, w3 = 0, w4 = 10, w5 = 1, w6 = 35, e1 = 0, e2 = 0, e3 = 0, e4 = 0, e5 = 0, e6 = 0;\n\n int ourSeedsInStore = node.getBoard().getSeedsInStore(ourSide);\n int oppSeedsInStore = node.getBoard().getSeedsInStore(ourSide.opposite());\n\n\n // hardcode fix.\n int parentOurSeedsInStore = 0;\n int parentOppSeedsInStore = 0;\n int parentMove = 0;\n int parentOurSeedsInHouse = 0;\n int parentOppSeedsInHouse = 0;\n\n if (currentDepth != 1) {\n parentOurSeedsInStore = node.getParent().getBoard().getSeedsInStore(ourSide);\n parentOppSeedsInStore = node.getParent().getBoard().getSeedsInStore(ourSide.opposite());\n parentMove = node.getName();\n parentOurSeedsInHouse = node.getParent().getBoard().getSeeds(ourSide, parentMove);\n parentOppSeedsInHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), parentMove);\n }\n\n int ourFreeHouse = 0;\n int oppFreeHouse = 0;\n int ourSeeds = ourSeedsInStore;\n int oppSeeds = oppSeedsInStore;\n\n int asdf1 = ourSeedsInStore - parentOurSeedsInStore;\n int asdf2 = oppSeedsInStore - parentOppSeedsInStore;\n\n e6 = asdf1 - asdf2;\n\n for (int i = 1; i <= 7; i++) {\n ourSeeds += node.getBoard().getSeeds(ourSide, i);\n oppSeeds += node.getBoard().getSeeds(ourSide.opposite(), i);\n }\n\n for (int i = 1; i <= 7; i++) {\n if (node.getBoard().getSeeds(ourSide, i) == 0)\n ourFreeHouse++;\n if (node.getBoard().getSeeds(ourSide.opposite(), i) == 0)\n oppFreeHouse++;\n }\n\n e1 = ourSeeds - oppSeeds;\n e2 = ourFreeHouse - oppFreeHouse;\n\n // hardcode fix.\n if (currentDepth != 1) {\n if (node.getParent().getPlayerSide() == this.getOurSide()) {\n // if last move puts seed into store\n if ((parentMove + parentOurSeedsInHouse) % 8 == 0) {\n e4 = 1;\n e3 = (parentMove + parentOurSeedsInHouse) / 8;\n } else if (parentMove + parentOurSeedsInStore > 8) {\n e4 = 0;\n e3 = (parentMove + parentOurSeedsInStore) / 8;\n }\n\n for (int i = 1; i <= 7; i++) {\n int parentOurSeedsInCurrentHouse = node.getParent().getBoard().getSeeds(ourSide, i);\n int parentOppSeedsInFrontHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), 8 - i);\n int oppSeedsInFrontHouse = node.getBoard().getSeeds(ourSide.opposite(), 8 - i);\n // if there's no seed in current house && there is seed right in front of us\n if ((parentOurSeedsInCurrentHouse == 0 || parentOurSeedsInCurrentHouse == 15) && parentOppSeedsInFrontHouse != 0 && oppSeedsInFrontHouse == 0) {\n if (currentDepth != 2) {\n if (node.getParent().getParent().getPlayerSide() == this.getOurSide()) {\n w5 = 5;\n e5 = parentOppSeedsInFrontHouse;\n break;\n }\n }\n e5 = parentOppSeedsInFrontHouse;\n break;\n }\n\n }\n } else if (node.getParent().getPlayerSide() == this.getOurSide().opposite()) {\n\n if (parentMove + parentOppSeedsInHouse == 8) {\n e4 = -1;\n e3 = -1 * (parentMove + parentOppSeedsInHouse) / 8;\n } else if (parentMove + parentOppSeedsInStore > 8) {\n e4 = 0;\n e3 = -(parentMove + parentOppSeedsInStore) / 8;\n }\n\n\n for (int i = 1; i <= 7; i++) {\n int parentOppSeedsInCurrentHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), i);\n int parentOurSeedsInFrontHouse = node.getParent().getBoard().getSeeds(ourSide, 8 - i);\n int oppSeedsInCurrentHouse = node.getBoard().getSeeds(ourSide, 8 - i);\n\n if ((parentOppSeedsInCurrentHouse == 0 || parentOppSeedsInCurrentHouse == 15) && parentOurSeedsInFrontHouse != 0 && oppSeedsInCurrentHouse == 0) {\n if (currentDepth != 2) {\n if (node.getParent().getParent().getPlayerSide() == this.getOurSide()) {\n w5 = 5;\n e5 = -parentOurSeedsInFrontHouse;\n break;\n }\n }\n w5 = 5;\n e5 = -parentOurSeedsInFrontHouse;\n break;\n }\n }\n }\n }\n ef = w1 * e1 + w2 * e2 + w3 * e3 + w4 * e4 + w5 * e5 + w6 * e6;\n return ef;\n }",
"@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}",
"private double[] getNewNodeWeights(GNode winner, int X, int Y) {\n\n double[] newWeights = new double[GSOMConstants.DIMENSIONS];\n\n if (winner.getY() == Y) {\n\t\t\t//two consecutive nodes \n\n //winnerX,otherX\n if (X == winner.getX() + 1) {\n String nextNodeStr = Utils.generateIndexString(X + 1, Y); //nX\n String othrSideNodeStr = Utils.generateIndexString(X - 2, Y); //oX\n String topNodeStr = Utils.generateIndexString(winner.getX(), Y + 1); //tX\n String botNodeStr = Utils.generateIndexString(winner.getX(), Y - 1); //bX\n\n\t\t\t\t//new node has one direct neighbor, \n //but neighbor has a neighbor in the opposing directly\n //wX,X,nX\n if (nodeMap.containsKey(nextNodeStr)) {\n newWeights = newWeightsForNewNodeInMiddle(winner, nextNodeStr);\n } //oX,wX,X\n else if (nodeMap.containsKey(othrSideNodeStr)) {\n //2 consecutive nodes on right\n newWeights = newWeightsForNewNodeOnOneSide(winner, othrSideNodeStr);\n } // tX\n //wX, X\n else if (nodeMap.containsKey(topNodeStr)) {\n //right and top nodes\n newWeights = newWeightsForNewNodeOnOneSide(winner, topNodeStr);\n } //wX, X\n // bX\n else if (nodeMap.containsKey(botNodeStr)) {\n //right and bottom nodes\n newWeights = newWeightsForNewNodeOnOneSide(winner, botNodeStr);\n } else {\n newWeights = newWeightsForNewNodeOneOlderNeighbor(winner);\n }\n } //otherX,winnerX\n else if (X == winner.getX() - 1) {\n String nextNodeStr = Utils.generateIndexString(X - 1, Y);\n String othrSideNodeStr = Utils.generateIndexString(X + 2, Y);\n String topNodeStr = Utils.generateIndexString(winner.getX(), Y + 1);\n String botNodeStr = Utils.generateIndexString(winner.getX(), Y - 1);\n\n\t\t\t\t//new node has one direct neighbor, \n //but neighbor has a neighbor in the opposing directly\n //nX,X,wX\n if (nodeMap.containsKey(nextNodeStr)) {\n newWeights = newWeightsForNewNodeInMiddle(winner, nextNodeStr);\n } //X,wX,oX\n else if (nodeMap.containsKey(othrSideNodeStr)) {\n //2 consecutive nodes on left\n newWeights = newWeightsForNewNodeOnOneSide(winner, othrSideNodeStr);\n } else if (nodeMap.containsKey(topNodeStr)) {\n //left and top nodes\n newWeights = newWeightsForNewNodeOnOneSide(winner, topNodeStr);\n } else if (nodeMap.containsKey(botNodeStr)) {\n //left and bottom nodes\n newWeights = newWeightsForNewNodeOnOneSide(winner, botNodeStr);\n } else {\n newWeights = newWeightsForNewNodeOneOlderNeighbor(winner);\n }\n }\n\n //new node is in the middle of two older nodes\n } else if (winner.getX() == X) {\n\n\t\t\t//otherY\n //winnerY\n if (Y == winner.getY() + 1) {\n String nextNodeStr = Utils.generateIndexString(X, Y + 1);\n String othrSideNodeStr = Utils.generateIndexString(X, Y - 2);\n String leftNodeStr = Utils.generateIndexString(X - 1, winner.getY());\n String rightNodeStr = Utils.generateIndexString(X + 1, winner.getY());\n\n\t\t\t\t//new node has one direct neighbor, \n //but neighbor has a neighbor in the opposing directly\n //nY\n // Y\n //wY\n if (nodeMap.containsKey(nextNodeStr)) {\n newWeights = newWeightsForNewNodeInMiddle(winner, nextNodeStr);\n } else if (nodeMap.containsKey(othrSideNodeStr)) {\n //2 consecutive nodes upwards\n newWeights = newWeightsForNewNodeOnOneSide(winner, othrSideNodeStr);\n } else if (nodeMap.containsKey(leftNodeStr)) {\n //left and top nodes\n newWeights = newWeightsForNewNodeOnOneSide(winner, leftNodeStr);\n } else if (nodeMap.containsKey(rightNodeStr)) {\n //right and top nodes\n newWeights = newWeightsForNewNodeOnOneSide(winner, rightNodeStr);\n } else {\n newWeights = newWeightsForNewNodeOneOlderNeighbor(winner);\n }\n } //winnerY\n //otherY\n else if (Y == winner.getY() - 1) {\n String nextNodeStr = Utils.generateIndexString(X, Y - 1);\n String othrSideNodeStr = Utils.generateIndexString(X, Y + 2);\n String leftNodeStr = Utils.generateIndexString(X - 1, winner.getY());\n String rightNodeStr = Utils.generateIndexString(X + 1, winner.getY());\n\n\t\t\t\t//new node has one direct neighbor, \n //but neighbor has a neighbor in the opposing directly\n //wY\n // Y\n //nY\n if (nodeMap.containsKey(nextNodeStr)) {\n newWeights = newWeightsForNewNodeInMiddle(winner, nextNodeStr);\n } else if (nodeMap.containsKey(othrSideNodeStr)) {\n //2 consecutive nodes on left\n newWeights = newWeightsForNewNodeOnOneSide(winner, othrSideNodeStr);\n } else if (nodeMap.containsKey(leftNodeStr)) {\n //left and top nodes\n newWeights = newWeightsForNewNodeOnOneSide(winner, leftNodeStr);\n } else if (nodeMap.containsKey(rightNodeStr)) {\n //left and bottom nodes\n newWeights = newWeightsForNewNodeOnOneSide(winner, rightNodeStr);\n } else {\n newWeights = newWeightsForNewNodeOneOlderNeighbor(winner);\n }\n }\n }\n\n for (int i = 0; i < GSOMConstants.DIMENSIONS; i++) {\n if (newWeights[i] < 0) {\n newWeights[i] = 0;\n }\n if (newWeights[i] > 1) {\n newWeights[i] = 1;\n }\n }\n return newWeights;\n }",
"public static void checkConsistency(){\n double[] aNormalW=new double[numberOfObjectives];\n double randomIndex=0;\n double sum=0;\n for (int row=0;row<numberOfObjectives;row++){\n for (int column=0;column<numberOfObjectives;column++){\n\n sum+=weights[column]*objectives[row][column];\n }\n df.setRoundingMode(RoundingMode.UP);\n aNormalW[row]= Double.valueOf(df.format(sum));\n sum=0;\n }\n double awtDividedByWt=0;\n for (int i=0;i<numberOfObjectives;i++){\n awtDividedByWt+=aNormalW[i]/weights[i];\n decimalFormat.setRoundingMode(RoundingMode.HALF_UP);\n Double.valueOf(decimalFormat.format(awtDividedByWt));\n }\n double reciprocalNumber=(double) 1/numberOfObjectives;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n Double.valueOf(decimalFormat.format(reciprocalNumber));\n double step3=reciprocalNumber*awtDividedByWt;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n double numerator=Double.valueOf(decimalFormat.format(step3))-numberOfObjectives;\n double denominator=numberOfObjectives-1;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n double ci=Double.valueOf(decimalFormat.format(numerator)) /denominator;\n decimalFormat.setRoundingMode(RoundingMode.CEILING);\n System.out.println(\"Consistency Index (CI)= \"+Double.valueOf(decimalFormat.format(ci)));\n System.out.println();\n double ciDividedByRI=ci/table23(numberOfObjectives);\n decimalFormat.setRoundingMode(RoundingMode.UP);\n // Double.valueOf(df.format(ciDividedByRI));\n if (ciDividedByRI<0.10){\n randomIndex=ci/table23(numberOfObjectives);\n decimalFormat.setRoundingMode(RoundingMode.UP);\n System.out.println(\"Random Index (RI)= \"+Double.valueOf(decimalFormat.format(randomIndex)));\n System.out.println(\"degree of consistency is satisfactory !!\");\n }else {\n System.out.println(\"the AHP may not yield meaningful results !!\");\n }\n System.out.println();\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n mNodes = sc.nextInt();\n mEdges = sc.nextInt();\n \n mDistances = new int[mNodes+1][mNodes+1];\n \n for (int i =1; i <= mNodes; i++)\n {\n \n for (int j =1; j <=mNodes;j++)\n {\n mDistances[i][j] = Integer.MAX_VALUE;\n \n }\n }\n \n for (int i =1; i <= mNodes; i++)\n {\n mDistances[i][i] =0;\n }\n \n for (int i = 0 ; i < mEdges; i++)\n {\n int from = sc.nextInt();\n int to = sc.nextInt();\n \n mDistances[from][to] = sc.nextInt();\n \n \n }\n \n \n //FW\n \n for (int k = 1; k <= mNodes; k++)\n {\n \n for (int i = 1; i <= mNodes; i++)\n {\n \n for (int j = 1; j <= mNodes; j++)\n {\n \n if (mDistances[i][k]!= Integer.MAX_VALUE && mDistances[k][j] != Integer.MAX_VALUE )\n {\n if (mDistances[i][j] > mDistances[i][k] + mDistances[k][j])\n {\n \n mDistances[i][j] = mDistances[i][k] + mDistances[k][j];\n }\n \n }\n \n }\n }\n \n }\n \n mQueries = sc.nextInt();\n \n for (int i =0; i < mQueries; i++)\n {\n int dist = mDistances[sc.nextInt()][sc.nextInt()];\n \n if (dist == Integer.MAX_VALUE)\n {\n dist = -1;\n }\n \n System.out.println(dist);\n \n }\n \n \n \n \n \n \n \n \n \n }",
"static double addHeuristic1(GameState c, boolean isMaxNode) {\n\t\t// Value returned will be absolute. If its max node, this config is good\n\t\t// then value will be positive. If its min node,\n\t\t// and this config is good for min, then value will be negative\n\n\t\tint i, j, vacant_spaces;\n\t\t// Compute : Feasible Moves for self\n\t\tint self_feasible_moves = 0;\n\t\tint self_remaining_moves = 0;\n\t\tint opponent_feasible_moves = 0;\n\t\tint opponent_remaining_moves = 0;\n\n\t\t// Go through the board and figure out vacant spots\n\t\tvacant_spaces = 0;\n\t\tfor (i = -GameState.HALF_BOARD; i <= GameState.HALF_BOARD; i = i + 1) {\n\t\t\tif (c.getWeight(i) == 0) {\n\t\t\t\tvacant_spaces++;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 1; i <= GameState.MAX_WEIGHT; i = i + 1) {\n\t\t\t// Check if self have the weight\n\t\t\tif (c.IHaveWeight(i)) {\n\t\t\t\tself_remaining_moves++;\n\t\t\t\t// Go through all the possible positions\n\t\t\t\tfor (j = -GameState.HALF_BOARD; j < GameState.HALF_BOARD; j++) {\n\t\t\t\t\tif (c.getWeight(j) == 0) {\n\t\t\t\t\t\t// Place it and see if you tip\n\t\t\t\t\t\tc.makeMove(i, j, PlayerName.none);\n\t\t\t\t\t\tif (!c.isTipping_old()) {\n\t\t\t\t\t\t\tself_feasible_moves++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Now remove the weight\n\t\t\t\t\t\tc.removeMove(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Check if opponent has this weight\n\t\t\tif (c.opponentHasWeight(i)) {\n\t\t\t\topponent_remaining_moves++;\n\t\t\t\t// Go through all the possible positions\n\t\t\t\tfor (j = -GameState.HALF_BOARD; j < GameState.HALF_BOARD; j++) {\n\t\t\t\t\t// Place the weight and see if you tip\n\t\t\t\t\tif (c.getWeight(j) == 0) {\n\t\t\t\t\t\tc.makeMove(i, j, PlayerName.none);\n\t\t\t\t\t\tif (!c.isTipping_old()) {\n\t\t\t\t\t\t\topponent_feasible_moves++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Now remove the weight\n\t\t\t\t\t\tc.removeMove(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Need to take the max because one of the players may have played one\n\t\t// chance less\n\t\tif (self_remaining_moves == 0 && opponent_remaining_moves == 0) {\n\t\t\treturn 0.0;\n\t\t} else if (self_remaining_moves > opponent_remaining_moves)\n\t\t\treturn (double) (self_feasible_moves - opponent_feasible_moves)\n\t\t\t\t\t/ (double) (self_remaining_moves * vacant_spaces);\n\t\telse\n\t\t\treturn (double) (self_feasible_moves - opponent_feasible_moves)\n\t\t\t\t\t/ (double) (opponent_remaining_moves * vacant_spaces);\n\t}",
"double getStaEnd();",
"public static void main(String[] args) throws Exception {\n\t\t// 1.1 Context & examples - rule, recursion difference, O(h)\n\t\t// 1.2 ctor, find, max, min\n\t\t// 1.3 printrange, replaceWithSumOfLarger\n\t\t// 1.4 pairTargetSum (BT vs BST)\n\t\t// 1.4.1 fill arraylist via heapmover, sort (?), and do left right\n\t\t// 1.4.2 fill hashmap via heapmover, and find complements\n\t\t// 1.4.3 traverse and call find on complement from every spot\n\t\t// 1.5 lca (BT vs BST) - place where paths diverge\n\t\t// 1.5.1 rootToNodePaths\n\t\t// Last common element in the two rootToNode arraylists.\n\t\t// 1.5.2 startTime & endtime list -> heapMover [list of pair of\n\t\t// starttime and endtimes]\n\t\t// What? -> Last node with startime smaller than both and endtime larger\n\t\t// than both\n\t\t// How? -> traverse the list of pairs and find last such node\n\t\t// Why? -> Last node ensures the lowest in ancestry\n\t\t// 1.5.3 bst -> first node while going down with value between d1 and d2\n\t\t// 1.6 addNode, removeNode\n\t\t// 1.7 AVL\n\t\t// 1.7.1 Balanced -> O(h) to O(logn)\n\t\t// 1.7.2 Node - height, add & remove\n\t\t// 1.7.3 right rotation, left rotation\n\t\t// 1.7.4 left left, left right, right right, right left\n\n\t\tsolve();\n\t}",
"public static void main(String[] args) {\n\t\tTree tree = null;\n\t\tdouble totalrounds = 0;\n\t\tdouble average = 0;\n\t\t// rand = new Random();\n\t\tInputList inputs;\n\t\tRandom rand = new Random();\n\t\tdouble varSum = 0;\n\t\tdouble[] var = new double[(int) iterations];\n\t\tswitch (CHOICE) {\n\t\tcase 1:\n\n\t\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\t\tint rounds = 0;\n\t\t\t\ttree = new Tree(N);\n\t\t\t\twhile (tree.markedNodes() < N) {\n\t\t\t\t\trounds++;\n\t\t\t\t\ttree.markNode((int) (Math.random() * N), rounds);\n\t\t\t\t}\n\t\t\t\tvar[i] = rounds;\n\t\t\t\ttotalrounds += rounds;\n\t\t\t}\n\t\t\taverage = totalrounds / iterations;\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Average: \" + average);\n\n\t\t\t\n\t\t\t\n\t\t\tvarSum = 0;\n\t\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\t\tvar[i] = Math.pow(var[i] - average, 2);\n\t\t\t\tvarSum += var[i];\n\t\t\t}\n\t\t\tvarSum = varSum / iterations;\n\t\t\tSystem.out.println(\"Deviation: \" + Math.sqrt(varSum));\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\t\tint rounds = 0;\n\t\t\t\ttree = new Tree(N);\n\t\t\t\tinputs = new InputList(N);\n\t\t\t\tint index = 0;\n\t\t\t\twhile (tree.markedNodes() < N) {\n\t\t\t\t\trounds++;\n\t\t\t\t\tint s = inputs.pop(index);\n\t\t\t\t\ttree.markNode(s, rounds);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tvar[i] = rounds;\n\t\t\t\ttotalrounds += rounds;\n\t\t\t}\n\t\t\taverage = totalrounds / iterations;\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Average: \" + average);\n\n\t\t\t\n\t\t\t\n\t\t\tvarSum = 0;\n\t\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\t\tvar[i] = Math.pow(var[i] - average, 2);\n\t\t\t\tvarSum += var[i];\n\t\t\t}\n\t\t\tvarSum = varSum / iterations;\n\t\t\tSystem.out.println(\"Deviation: \" + Math.sqrt(varSum));\n\t\t\tbreak;\n\t\t/*\n\t\t * case 3: for (int i = 0; i < iterations; i++) { int rounds = 0; tree =\n\t\t * new Tree(N); Integer[] nodeSelect; while (tree.markedNodes() < N) {\n\t\t * rounds++; nodeSelect = tree.unmarkedArray(); int select =\n\t\t * rand.nextInt(nodeSelect.length);\n\t\t * tree.markNode(nodeSelect[select].intValue(), rounds); } totalrounds\n\t\t * += rounds; } average = totalrounds / iterations; System.out.println(\n\t\t * \"Average: \" + average);\n\t\t * \n\t\t * \n\t\t * break;\n\t\t */\n\t\tcase 3:\n\t\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\t\tint rounds = 0;\n\t\t\t\tTreeR3 treeR3 = new TreeR3(N);\t\t\t\t\n\t\t\t\tInputList2 input = new InputList2(treeR3, N);\n\t\t\t\twhile (treeR3.markedNodes() < N) {\t\t\t\t\t\n\t\t\t\t\trounds++;\n\t\t\t\t\ttreeR3.markNode(input.pop(), rounds);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tvar[i] = rounds;\n\t\t\t\ttotalrounds += rounds;\n\t\t\t}\n\t\t\taverage = totalrounds / iterations;\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Average: \" + average);\n\n\t\t\t\n\t\t\t\n\t\t\tvarSum = 0;\n\t\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\t\tvar[i] = Math.pow(var[i] - average, 2);\n\t\t\t\tvarSum += var[i];\n\t\t\t}\n\t\t\tvarSum = varSum / iterations;\n\t\t\tSystem.out.println(\"Deviation: \" + Math.sqrt(varSum));\n\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(new FileReader(\"talent.in\"));// new InputStreamReader(System.in)); //\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"talent.out\")));\n int N = sc.nextInt();\n int minWeight = sc.nextInt();\n int[] weight = new int[N];\n int[] value = new int[N];\n int totalTalent = 0;\n for (int i = 0; i < N; i++) {\n int wt = sc.nextInt();\n int val = sc.nextInt();\n weight[i] = wt;\n value[i] = val;\n totalTalent += val;\n }\n\n // Store, for a given talent, what is the smallest weight used to achieve it?\n int[] dp = new int[totalTalent + 1];\n Arrays.fill(dp, (int) 1e9);\n dp[0] = 0;\n // the min weight to produce 0 talent is 0. However,\n // it is necessary to make everything else big because we can only BUILD\n // from 0\n double bestRatio = 0;\n for (int cow = 0; cow < N; cow++) {\n // look at each cow, and go DOWN THROUGH THE dp array, updating the\n // best weight achievable BEHIND US. This countercurrent motion ensures no repeated\n // counting of a single cow's talents\n int contribution = value[cow];\n int wt = weight[cow];\n for (int talent = totalTalent; talent >= 0; talent--) {\n int boostedTalent = contribution + talent;\n int boostedWeight = dp[talent] + wt;\n // with the min weight of a certain talent,\n // is it possible to get a smaller boostedWeight for a boostedTalent\n if (boostedTalent <= totalTalent) {\n // If we are in bounds,\n if (boostedWeight < dp[boostedTalent]) {\n // and the attempted team has a better weight value\n // then update it!\n // Initially, when everything is 1 billion, this cannot\n // happen except for from the base cases, building outward\n dp[boostedTalent] = boostedWeight;\n\n // At the same time, we can be more efficient by constantly\n // checking if we had enough weight first of all, and\n // second of all had a better talent/weight ratio!\n double ratio = (double) boostedTalent / boostedWeight;\n if (ratio > bestRatio && boostedWeight >= minWeight) {\n bestRatio = ratio;\n }\n }\n }\n }\n }\n\n out.println((int) (1000 * bestRatio));\n out.close();\n }",
"public void steepestDescent() {\r\n ArrayList<Atom> atoms = cluster.getAtoms();\r\n Atom a;\r\n int numAtoms = atoms.size();\r\n double potentialEnergy;\r\n double trialPotential;\r\n int i;\r\n\r\n //Increment time\r\n totalTime += currentStep;\r\n\r\n //Calculate force on each atom\r\n cluster.calculateForces();\r\n\r\n //Get energy of current configuration\r\n HashMap<String, Double> energies = cluster.getEnergies();\r\n potentialEnergy = 0.0;\r\n for(String eName : energies.keySet())\r\n potentialEnergy += energies.get(eName).doubleValue();\r\n\r\n //Save current atom positions and advance atoms to trial positions\r\n for(i = 0; i < numAtoms; i++) {\r\n a = atoms.get(i);\r\n\r\n savedLocations[i].x = a.location.x;\r\n savedLocations[i].y = a.location.y;\r\n savedLocations[i].z = a.location.z;\r\n\r\n //Compute trial locations\r\n a.location.x += a.force.x * currentStep;\r\n a.location.y += a.force.y * currentStep;\r\n a.location.z += a.force.z * currentStep;\r\n }\r\n\r\n //Get energy of the trial configuration\r\n energies = cluster.getEnergies();\r\n trialPotential = 0.0;\r\n for(String eName : energies.keySet())\r\n trialPotential += energies.get(eName).doubleValue();\r\n\r\n //Decide whether to keep trial configuration based on convergence\r\n if(trialPotential < potentialEnergy) {\r\n //Keep positions and check for convergence\r\n if(Math.abs((potentialEnergy - trialPotential) / potentialEnergy) < convergenceCriterion)\r\n isConverged = true;\r\n\r\n currentStep *= 1.2;\r\n } else {\r\n //Restore old positions\r\n for(i = 0; i < numAtoms; i++) {\r\n a = atoms.get(i);\r\n\r\n a.location.x = savedLocations[i].x;\r\n a.location.y = savedLocations[i].y;\r\n a.location.z = savedLocations[i].z;\r\n }\r\n\r\n currentStep *= 0.5;\r\n }\r\n }",
"@Override\n public void evaluate(Solution solution) throws JMException {\n\n int[] tour = new int[numberOfNodes + 1];\n int firstCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[0];\n int lastCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[numberOfNodes - 1];\n\n double fitness1_td = 0.0;\n\n // Calculate fitness 1 - total distance\n for (int i = 0; i < numberOfNodes - 1; i++) {\n int x = ((Permutation) solution.getDecisionVariables()[0]).vector_[i];\n int y = ((Permutation) solution.getDecisionVariables()[0]).vector_[i+1];\n\n tour[i] = x;\n tour[i+1] = y;\n\n fitness1_td += calDistances(x, y);\n }\n // generate tour with same start city and end city\n tour[numberOfNodes] = tour[0];\n\n fitness1_td += calDistances(firstCity, lastCity);\n\n\n // Correctness check: does the tour start and end in the same city\n if(tour[0] != tour[tour.length - 1]) {\n System.err.println(\"ERROR: The last city must be the same as the first city\");\n System.exit(1);\n }\n\n /*for (int i = 0; i < tour.length; i++) {\n System.out.print(tour[i] + \" \");\n }*/\n //System.out.println(\"\\n\" + tour.length);\n\n // Calculate fitness 2 - objective value of a given tour\n ArrayInt z = (ArrayInt) solution.getDecisionVariables()[1];\n //System.out.println(z.getLength());\n\n double fitness2_ob;\n double wc = 0.0;\n double ft = 0.0;\n double fp = 0.0;\n\n //the following is used for a different interpretation of \"packingPlan\"\n int itemsPerCity = z.getLength() / (tour.length - 2);\n //System.out.println(itemsPerCity);\n\n for (int i = 0; i < tour.length - 1; i++) {\n\n int currentCityTEMP = tour[i];\n // what's the current city? --> but the items start at city 2 in the TTP file, so I have to take another 1 off!\n int currentCity = currentCityTEMP - 1;\n\n if (i > 0) {\n\n if (currentCity == -1) {\n // No items in city 1\n wc += 0.0;\n fp += 0.0;\n\n } else {\n\n for (int itemNumber = 0; itemNumber < itemsPerCity; itemNumber++) {\n\n int indexOfPackingPlan = (i-1) * itemsPerCity + itemNumber;\n // what is the next item's index in items-array?\n int itemIndex = currentCity + itemNumber * (numberOfNodes - 1);\n //System.out.println(\"i: \" + i);\n\n if (z.getValue(indexOfPackingPlan) == 1) {\n // pack item\n //System.out.println(itemIndex);\n int currentWC = items[itemIndex][2];\n wc += currentWC;\n\n int currentFP = items[itemIndex][1];\n fp += currentFP;\n }\n }\n\n }\n\n int h = (i+1) % (tour.length-1); //h: next tour city index\n //System.out.println(\"h: \" + h);\n long distance = calDistances(i, h);\n // compute the adjusted (effective) distance\n ft += (distance / (1 - wc * (maxSpeed - minSpeed) / capacityOfKnapsack));\n }\n }\n\n wendUsed = wc;\n wend = capacityOfKnapsack - wc;\n fitness2_ob = fp - ft * rentingRatio;\n\n solution.setObjective(0, fitness1_td);\n solution.setObjective(1, -fitness2_ob); // Convert from maximum objective value to minimum objective value\n }",
"public String runPostSeason()\n {\n String westernChamp = \"\";\n\n int r = new Random().nextInt(1 + 1);\n\n\n\n //First Round\n\n for(int i = 0; i < 4; i++)\n {\n b.setFirstRoundWest(i,0,playoffs[i]);\n b.setFirstRoundWest(i,1,playoffs[7 - i]);\n }\n\n\n //Second Round\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 8; j++) {\n if (winningTeam(b.getFirstRoundWest()[i][0], b.getFirstRoundWest()[i][1]).equals(b.getFirstRoundWest()[i][0]))\n {\n firstRoundRecords[i][0] += 1;\n }\n else\n {\n firstRoundRecords[i][1] += 1;\n }\n\n if (firstRoundRecords[i][0] >= 4)\n {\n b.setSecondRoundWest(0, i, b.getFirstRoundWest()[i][0]);\n break;\n }\n else if (firstRoundRecords[i][1] >= 4)\n {\n b.setSecondRoundWest(0, i, b.getFirstRoundWest()[i][1]);\n break;\n }\n }\n\n for(int j = 0; j < 8; j++) {\n if (winningTeam(b.getFirstRoundWest()[i+2][0], b.getFirstRoundWest()[i+2][1]).equals(b.getFirstRoundWest()[i+2][0]))\n {\n firstRoundRecords[i+2][0] += 1;\n }\n else\n {\n firstRoundRecords[i+2][1] += 1;\n }\n\n if (firstRoundRecords[i+2][0] >= 4)\n {\n b.setSecondRoundWest(1, i, b.getFirstRoundWest()[i+2][0]);\n break;\n }\n else if (firstRoundRecords[i+2][1] >= 4)\n {\n b.setSecondRoundWest(1, i, b.getFirstRoundWest()[i+2][1]);\n break;\n }\n }\n }\n\n //Third Round\n for(int i = 0; i < 2; i++)\n {\n for(int j = 0; j < 8; j++)\n {\n if (winningTeam(b.getSecondRoundWest()[i][0], b.getSecondRoundWest()[i][1]).equals(b.getSecondRoundWest()[i][0]))\n {\n secondRoundRecords[i][0] += 1;\n }\n else\n {\n secondRoundRecords[i][1] += 1;\n }\n\n\n if (secondRoundRecords[i][0] >= 4)\n {\n b.setThirdRoundWest(i, b.getSecondRoundWest()[i][0]);\n break;\n }\n else if (secondRoundRecords[i][1] >= 4)\n {\n b.setThirdRoundWest(i, b.getSecondRoundWest()[i][1]);\n break;\n }\n }\n\n }\n\n //Finals Western Team\n for(int i = 0; i < 8; i++)\n {\n if (winningTeam(b.getThirdRoundWest()[0],b.getThirdRoundWest()[1]).equals(b.getThirdRoundWest()[0]))\n {\n westFinalsRecord[0] += 1;\n }\n else\n {\n westFinalsRecord[1] += 1;\n }\n\n\n if (westFinalsRecord[0] >= 4)\n {\n westernChamp = b.getThirdRoundWest()[0];\n break;\n }\n else if (westFinalsRecord[1] >= 4)\n {\n westernChamp = b.getThirdRoundWest()[1];\n break;\n }\n\n }\n\n return westernChamp;\n }",
"public abstract void calculateSufficientStatistics();",
"public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(new File(\"A-small-attempt1.in\")) ;\n// FileOutputStream out = new FileOutputStream(\"output.txt\");\n// PrintWriter out = new PrintWriter(\"output.txt\");\n PrintWriter out = new PrintWriter(\"output.txt\");\n \n \n int TEST_CASE_NUMBER = sc.nextInt();\n \n for (int test_case = 1; test_case <= TEST_CASE_NUMBER; test_case++) \n {\n int MAX_SHYNESSS = sc.nextInt();\n String str = sc.next();\n \n int answer = 0;\n int sum = 0;\n char shift = '0';\n// System.out.println(str);\n for(int i = 0; i <= MAX_SHYNESSS; i++) \n {\n char element = str.charAt(i);\n int elementInt = element - shift;\n// System.out.println(element);\n// boolean flagChecked = false\n if(elementInt > 0) \n {\n \n if(i > sum) {\n answer += i - sum;\n sum += i -sum;\n// System.out.println(answer);\n }\n \n \n }\n sum += elementInt;\n// System.out.println(sum);\n }\n \n out.println(\"Case #\"+test_case+\": \"+answer);\n// System.out.println(\"____________________\");\n }\n \n out.close();\n }",
"@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }",
"int Weight();",
"void one_epoch() {\r\n \r\n \tdouble P_MUT = 0.1; // p-stwo mutacji\r\n \tdouble P_REC = 0.6; // p-stwo krzyzowania\r\n \r\n\t\tint poz=0;\t\t\t// pozycja najlepszego osobnika\r\n\t\t\r\n\t\tint ch1,ch2, cross, imin=0, imax=0;\r\n\t\tdouble min=Double.MAX_VALUE, max;\r\n\t\t\r\n\t\tinit();\r\n\t\r\n\t\t// ewolucja przez MAX_ITER iteracji\r\n\t\tfor (int iter = 0; iter < MAX_ITER; iter++) {\r\n\t\t\t//ocena osobnikow\r\n\t\t\tmin = Double.MAX_VALUE;\r\n\t\t\tmax = 0;\r\n\t\t\ttotFit = 0; \r\n\t\t\tdouble suma=0;\r\n\t\t\tfor (int i=0; i<SIZE; i++) {\r\n\t\t\t\tfit[i] = fitness(i); // oblicza dostosowanie i-tego osobnika\r\n\t\t\t\ttotFit+=fit[i]; \t\t // obl. calkowitego dopasowania \r\n\t\t\t\tif (fit[i]<min) {\r\n\t\t\t\t\tmin = fit[i]; \t\t // najlepsza wartosc dostosowania\r\n\t\t\t\t\timin = i;\t \t\t // nr pozycji najlepszego osobnika\r\n\t\t\t\t}\r\n\t\t\t\tif (fit[i]>max) {\r\n\t\t\t\t\tmax = fit[i];\r\n\t\t\t\t\timax = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (iter==999) piszPop();\r\n\t\t\t//strategia elitarna:\r\n\t\t\tif (min>best) {\r\n\t\t\t//jesli nowa populacja nie zawiera lepszego\r\n\t\t\t//osobnika, to najgorszy zastepowany jest przez cbest\r\n\t\t\t\tfor (int j=0; j<LEN; j++)\r\n\t\t\t\toldpop[imax][j] = cbest[j];\r\n\t\t\t\tmin = best;\r\n\t\t\t\tfit[imax] = best;\r\n\t\t\t\tsuma = totFit - fit[imax] + min;\r\n\t\t\t} \r\n\t\t\t//w przeciwnym razie najlepszy z populacji staje sie cbest;\r\n\t\t\telse {\r\n\t\t\t\tfor (int j=0; j<LEN; j++) {\r\n\t\t\t\t\tcbest[j] = oldpop[imin][j];\r\n\t\t\t\t}\r\n\t\t\t\tbest = min;\r\n\t\t\t}\r\n\t\t\tsuma = suma/SIZE;\r\n\t\t\t//druk najlepszego rozwiazania\t\r\n\t \tif (min==0 && pisac) {\r\n\t\t\t\tSystem.out.print(\"Rozwiazanie: '\");\r\n\t\t\t\tfor (int i=0; i<LEN; i++) System.out.print(oldpop[imin][i]);\r\n\t\t\t\tSystem.out.println(\" fit: \"+fitness(imin)+\" iteracja: \"+iter);\r\n\t\t\t\tpisac=false;\r\n\t\t\t}\r\n\t\t\t// zbieranie statystyk\r\n\t \tstat[iter][0] += min;\r\n\t \tstat[iter][1] += min*min;\r\n\t \tpoz = 0;\r\n\t \t//operacje genetyczne: selekcja, krzyzowanie i mutacja\r\n\t \tfor (int j = 0; j < SIZE/2; j++) {\r\n\t\t\t\t// Wybór rodziców (selekcja turniejowa).\r\n\t\t\t\tch1 = tournament();\r\n\t\t\t\tch2 = tournament();\r\n\t\t\t\t//krzyzowanie\r\n\t\t\t\tif (rnd.nextDouble()<P_REC) {\r\n\t\t\t\t\tcross = (int)Math.floor(rnd.nextDouble()*LEN);\r\n\t\t\t\t} else cross=LEN; //bez krzyzowania\r\n\t\t\t\tfor (int i=0; i<cross; i++) {\r\n\t\t\t\t\t//mutacja\r\n\t\t\t\t\tif (rnd.nextDouble()<P_MUT) \r\n\t\t\t\t\t\tnewpop[poz][i] = 1-oldpop[ch1][i];\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tnewpop[poz][i] = oldpop[ch1][i];\r\n\t\t\t\t\tif (rnd.nextDouble()<P_MUT) \r\n\t\t\t\t\t\tnewpop[poz+1][i] = 1-oldpop[ch2][i];\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tnewpop[poz+1][i] = oldpop[ch2][i];\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i=cross; i<LEN; i++) {\r\n\t\t\t\t\tif (rnd.nextDouble()<P_MUT)\r\n\t\t\t\t\t\tnewpop[poz][i] = 1-oldpop[ch2][i];\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tnewpop[poz][i] = oldpop[ch2][i];\r\n\t\t\t\t\tif (rnd.nextDouble()<P_MUT) \r\n\t\t\t\t\t\tnewpop[poz+1][i] = 1-oldpop[ch1][i];\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tnewpop[poz+1][i] = oldpop[ch1][i];\r\n\t\t\t\t}\r\n\t\t\t\tpoz = poz+2;\r\n\t \t}\r\n\t \tfor (int i=0; i<SIZE; i++) {\r\n\t \t\tfor (int j=0; j<LEN; j++) {\r\n\t \t\t\toldpop[i][j] = newpop[i][j];\r\n\t \t\t}\r\n\t \t}\t \t\r\n\t\t}\r\n }",
"public static void main(String[] args) throws Exception{\n // long time = System.currentTimeMillis();\n File file = new File(\"input.txt\");\n File data = new File(\"output.txt\");\n Scanner input = new Scanner(file);\n PrintWriter output = new PrintWriter(data);\n\n algo = input.next();\n bx = input.nextInt();\n by = input.nextInt();\n bz = input.nextInt();\n\n ops = new int[bx][by][bz][18];\n openState = new Node[bx][by][bz];\n closedState = new Node[bx][by][bz];\n\n sx = input.nextInt();\n sy = input.nextInt();\n sz = input.nextInt();\n\n gx = input.nextInt();\n gy = input.nextInt();\n gz = input.nextInt();\n\n int n = input.nextInt();\n input.nextLine(); // flush \\n buffer\n for (int i = 0; i < n; i++) {\n String s = input.nextLine();\n String[] paras = s.split(\"\\\\s+\");\n int tx = Integer.parseInt(paras[0]);\n int ty = Integer.parseInt(paras[1]);\n int tz = Integer.parseInt(paras[2]);\n for (int j = 3; j < paras.length; j++)\n ops[tx][ty][tz][j - 3] = Integer.parseInt(paras[j]);\n }\n List<int[]> ans = ucs();\n int sum = 0, cnt = ans.size();\n if (cnt == 0)\n output.println(\"FAIL\");\n else {\n for (int[] step : ans)\n sum += step[3];\n output.println(sum);\n output.println(cnt);\n for (int[] step : ans) {\n for (int i = 0; i < step.length; i++) {\n if (i == 0)\n output.print(step[i]);\n else\n output.print(\" \" + step[i]);\n }\n output.println();\n }\n }\n output.close();\n // System.out.println(\"finish time is \" + (System.currentTimeMillis() - time) / 1000D);\n }"
] | [
"0.68078524",
"0.6219735",
"0.616725",
"0.6130699",
"0.58661354",
"0.58267015",
"0.57282275",
"0.5625566",
"0.5600303",
"0.5580203",
"0.5574053",
"0.55024546",
"0.549171",
"0.54828507",
"0.5471693",
"0.5469787",
"0.54508257",
"0.54469126",
"0.5430148",
"0.5409281",
"0.5388952",
"0.53881115",
"0.5381545",
"0.53808403",
"0.53212196",
"0.5317015",
"0.53131723",
"0.5301885",
"0.528685",
"0.52754736",
"0.52734625",
"0.52601933",
"0.52576196",
"0.52564454",
"0.5254123",
"0.5253588",
"0.5249364",
"0.52465224",
"0.52374935",
"0.51770014",
"0.51739407",
"0.5168322",
"0.5165944",
"0.5158519",
"0.5147403",
"0.51351476",
"0.5132784",
"0.5129592",
"0.5115705",
"0.5115433",
"0.5109157",
"0.5109145",
"0.51073885",
"0.51025045",
"0.5101953",
"0.5088641",
"0.5083055",
"0.50822264",
"0.50724286",
"0.5069541",
"0.5067971",
"0.5063933",
"0.5058281",
"0.5057717",
"0.50565636",
"0.50546956",
"0.5046866",
"0.50459564",
"0.50297934",
"0.5025503",
"0.50247127",
"0.5022805",
"0.50213635",
"0.5021221",
"0.5017684",
"0.5016769",
"0.5013412",
"0.50130934",
"0.50078136",
"0.50077933",
"0.5004409",
"0.5000639",
"0.499774",
"0.4996769",
"0.4996474",
"0.4984491",
"0.4981019",
"0.4976549",
"0.49722362",
"0.49713638",
"0.4963039",
"0.49608636",
"0.49598178",
"0.49590153",
"0.49588406",
"0.4958792",
"0.4957824",
"0.49565366",
"0.4955543",
"0.49516755"
] | 0.62704414 | 1 |
method to convert list of edges into an array list | public static Edge[] listToArray(ArrayList<Edge> list){
Edge[] EdgeAry = new Edge[list.size()];
for (int i = 0; i < list.size(); i++) {
EdgeAry[i] = list.get(i);
}
return EdgeAry;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Edge<V>> getEdgeList();",
"ArrayList<Edge> getAdjacencies();",
"List<CyEdge> getInternalEdgeList();",
"public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();",
"java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> \n getEdgeList();",
"@Override\n\tpublic List<ET> getEdgeList()\n\t{\n\t\treturn new ArrayList<ET>(edgeList);\n\t}",
"private ArrayList<Edge>getFullyConnectedGraph(){\n\t\tArrayList<Edge> edges = new ArrayList<>();\n\t\tfor(int i=0;i<nodes.size();i++){\n\t\t\tfor(int j=i+1;j<nodes.size();j++){\n\t\t\t\tEdge edge = new Edge(nodes.get(i), nodes.get(j),Utils.distance(nodes.get(i), nodes.get(j)));\n\t\t\t\tedges.add(edge);\n\t\t\t}\n\t\t}\n\t\treturn edges;\n\t}",
"public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }",
"List<IEdge> getAllEdges();",
"ArrayList<Edge> getEdges(ArrayList<ArrayList<Vertex>> v) {\n ArrayList<Edge> all = new ArrayList<Edge>();\n for (ArrayList<Vertex> verts : v) {\n for (Vertex vt : verts) {\n for (Edge ed : vt.outEdges) {\n all.add(ed);\n }\n }\n }\n return all;\n }",
"E[] toArray();",
"public DEdge[] getEdges(){\n return listOfEdges;\n }",
"public List<IEdge> getAllEdges();",
"public void setListEdge (ArrayList<Edge> list){\r\n this.listEdges = list;\r\n }",
"public abstract List<? extends GraphEdge<N, E>> getEdges();",
"public static ArrayList<Vertex> createArrayList(Vertex[] adjacentVertexes) {\n\t\tArrayList<Vertex> vertexesList = new ArrayList<>();\n\t\tfor (int counter = 0; counter < adjacentVertexes.length; counter ++ ) {\n\t\t\tvertexesList.add(adjacentVertexes[counter]);\n\t\t}\n\t\treturn vertexesList;\n\t}",
"Collection<E> edges();",
"int[] getEdgesIncidentTo(int... nodes);",
"@Override\n\tpublic Object[] toArray() {\n\t\tif (isEmpty()) {\n\t return null;\n\t }\n\n\t\tObject[] data = new Object[size()];\n\n\t ListNode tmp = head;\n\t for (int i = 0; i < size(); i++) {\n\t data[i] = tmp.datum;\n\t tmp = tmp.next;\n\t }\n\n\t return data;\t\t\n\t}",
"Set<CyEdge> getExternalEdgeList();",
"public int[] toArray() {\nNode current = head;\nint[] array = new int[size];\nfor(int i = 0; i < array.length; i++) {\narray[i] = current.value;\ncurrent = current.next;\n}\nreturn array;\n}",
"public static ArrayList<Edge> getAllEdges(){\n\t\treturn edgeList;\n\t}",
"private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B\");\n\t\tVertex vertexC = new Vertex(\"C\");\n\t\tVertex vertexD = new Vertex(\"D\");\n\t\tVertex vertexE = new Vertex(\"E\");\n\t\tVertex vertexF = new Vertex(\"F\");\n\t\tVertex vertexG = new Vertex(\"G\");\n\n\t\tList<Edge> edges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 2));\n\t\tedges.add(new Edge(vertexD, 6));\n\t\tedges.add(new Edge(vertexF, 5));\n\t\tvertexA.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 2));\n\t\tedges.add(new Edge(vertexC, 7));\n\t\tvertexB.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 7));\n\t\tedges.add(new Edge(vertexD, 9));\n\t\tedges.add(new Edge(vertexF, 1));\n\t\tvertexC.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 6));\n\t\tedges.add(new Edge(vertexC, 9));\n\t\tedges.add(new Edge(vertexE, 4));\n\t\tedges.add(new Edge(vertexG, 8));\n\t\tvertexD.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 4));\n\t\tedges.add(new Edge(vertexF, 3));\n\t\tvertexE.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 5));\n\t\tedges.add(new Edge(vertexC, 1));\n\t\tedges.add(new Edge(vertexE, 3));\n\t\tvertexF.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 8));\n\t\tvertexG.incidentEdges = edges;\n\n\t\tgraph.add(vertexA);\n\t\tgraph.add(vertexB);\n\t\tgraph.add(vertexC);\n\t\tgraph.add(vertexD);\n\t\tgraph.add(vertexE);\n\t\tgraph.add(vertexF);\n\t\tgraph.add(vertexG);\n\n\t\treturn graph;\n\t}",
"public Iterable<DirectedEdge> edges() {\n ArrayList<DirectedEdge> list = new ArrayList<DirectedEdge>();\n for (int v = 0; v < V; v++) {\n for (DirectedEdge e : adj(v)) {\n list.add(e);\n }\n }\n return list;\n }",
"@Override\n public Object[] toArray() {\n Object[] tempArray = new Object[size];\n Node n = this.head;\n int i = 0;\n while (i<size) {\n tempArray[i] = n.getData();\n i++;\n n = n.next;\n }\n return tempArray;\n }",
"public Collection< EDataT > edgeData();",
"@Override\n public T[] toArray() {\n //create the return array\n T[] result = (T[])new Object[this.getSize()];\n //make a count variable to move through the array and a reference\n //to the first node\n int index = 0;\n Node n = first;\n //copy the node data to the array\n while(n != null){\n result[index++] = n.value;\n n = n.next;\n }\n return result;\n }",
"@Override\n public int[] toArray() {\n int[] result = new int[size];\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n result[i] = tmp.value;\n tmp = tmp.next;\n }\n return result;\n }",
"public Object[] toArray() {\n Object[] arr = new Object[size];\n Node<E> cur = head;\n for(int i = 0; i < size; i++) {\n arr[i] = cur.item;\n cur = cur.next;\n }\n return arr;\n }",
"public Node<E>[] toArray(){\n Node<E>[] array = new Node[size];\n Node<E> current = head.getNext();\n for (int i = 0; i < size; i++){\n array[i] = current;\n current = current.getNext();\n }\n return array;\n }",
"public ArrayList<Edge> getAdjacencies(){\r\n return adjacencies;\r\n }",
"int[] getInEdges(int... nodes);",
"public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }",
"List<Edge<V>> getIncidentEdgeList(V v);",
"public Iterable<Edge> edges() {\r\n Bag<Edge> list = new Bag<Edge>();\r\n for (int v = 0; v < V; v++) {\r\n for (Edge e : adj(v)) {\r\n list.add(e);\r\n }\r\n }\r\n return list;\r\n }",
"public List neighbors(int vertex) {\n// your code here\n LinkedList<Integer> result = new LinkedList<>();\n LinkedList<Edge> list = adjLists[vertex];\n for (Edge a : list) {\n result.add(a.to());\n }\n//List<Integer> list = new List<Integer>();\n return result;\n }",
"String getEdges();",
"public Object[] toArray() {\n\t\tint k;\n\t\tNode p;\n\n\t\tObject[] retArray = new Object[mSize];\n\t\tfor (k = 0, p = mHead.next; k < mSize; k++, p = p.next)\n\t\t\tretArray[k] = p.data;\n\t\treturn retArray;\n\t}",
"public COSArray toList() \n {\n return array;\n }",
"java.util.List<? extends uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdgeOrBuilder> \n getEdgeOrBuilderList();",
"int[] getOutEdges(int... nodes);",
"public ArrayList<Edge> getEdgeList() {\n return edgeList;\n }",
"@Override\n public List<E> asList() {\n ArrayList<E> result = null;\n\n while (top.next != null) {\n top = top.next;\n result.add(top.data);\n }\n return result;\n }",
"private PyObject[] listtoarray(ArrayList<PyObject> a)\n {\n PyObject[] results = new PyObject[a.size()];\n int iter = 0;\n for (PyObject pt : a) {\n results[iter] = pt;\n iter++;\n }\n return results;\n }",
"public Object[] toArray() {\n\t\tObject[] arg = new Object[size];\r\n\t\t\r\n\t\tNode<E> current = head;\r\n\t\tint i = 0;\r\n\t\twhile(current != null) {\r\n\t\t\targ[i] = current.getData();\r\n\t\t\ti++;\r\n\t\t\tcurrent = current.getNext();;\r\n\t\t}\r\n\t\treturn arg;\r\n\t}",
"public Vector<Edge> getEdges(){\n\t\treturn this.listOfEdges;\n\t}",
"public Object[] toArray()\n\t{\n\t\treturn list.toArray();\n\t}",
"public int[] getEdgeIndicesArray() {\n \t\tginy_edges.trimToSize();\n \t\treturn giny_edges.elements();\n \t}",
"public Object[] toArray() {\r\n Object[] arr = new Object[size];\r\n Node<T> current = head.next();\r\n for (int i = 0; i < size; i++) {\r\n arr[i] = current.getData();\r\n current = current.next();\r\n }\r\n return arr;\r\n }",
"public Edge[] getEdges() {\n\t\treturn edges;\n\t}",
"public String getEdges(){\n double Lx = super.getCentre().x - (this.length / 2);\r\n double Rx = super.getCentre().x + (this.length / 2);\r\n double Dy = super.getCentre().y - (this.width / 2);\r\n double Uy = super.getCentre().y + (this.width / 2);\r\n Point UL = new Point(Lx, Uy);\r\n Point UR = new Point(Rx, Uy);\r\n Point DL = new Point(Lx, Dy);\r\n Point DR = new Point(Rx, Dy);\r\n Point[] Edges = {DL, UL, UR, DR};\r\n this.edge = Edges;\r\n return Arrays.toString(Edges);\r\n }",
"private static List<Node> arrayToList(Node[] n) {\n List<Node> listItems = new ArrayList<>();\n for (Node n1 : n) {\n listItems.add(n1);\n }\n return listItems;\n }",
"@Override\n\tpublic List<Edge> getAllEdges() {\n\n\t\tList<Edge> res = new ArrayList<Edge>();\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tString getAllEdges = \"SELECT node_from, node_to, distance FROM routefinder.relations\";\n\t\t\tresultSet = null;\n\t\t\tpstmt = conn.prepareStatement(getAllEdges);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tEdge edge = new Edge();\n\t\t\t\tedge.setNode1(Database.getNodeFromId(resultSet.getInt(\"node_from\")));\n\t\t\t\tedge.setNode2(Database.getNodeFromId(resultSet.getInt(\"node_to\")));\n\t\t\t\tedge.setDist(resultSet.getDouble(\"distance\"));\n\t\t\t\tres.add(edge);\n\t\t\t}\n\n\t\t\treturn res;\n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t}\n\n\t\treturn null;\n\t}",
"@Override\n\tpublic Object[] toArray() {\n\t\tListNode<L> newHead=first;\n\t\tObject[] array=new Object[size];\n\t\tfor(int i =0;i<size;i++) {\n\t\t\tarray[i]=newHead.storage;\n\t\t\tnewHead=newHead.next;\n\t\t}\n\t\treturn array;\n\t}",
"public ArrayList<DrawableGraphEdge> getEdges() {\r\n\t\treturn new ArrayList<DrawableGraphEdge>(edges);\r\n\t}",
"public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }",
"public void setEdges(DEdge[] listOfEdges){\n this.listOfEdges = listOfEdges;\n }",
"public Edge[] getEdges()\r\n {\r\n if(edges == null)\r\n\t{\r\n\t edges = new Edge[numEdges()];\r\n\t int i = 0;\r\n\t for (final EdgeTypeHolder eth : ethMap.values())\r\n\t\tfor (final Edge e : eth.getEdges())\r\n\t\t edges[i++] = e;\r\n\t}\r\n return edges.clone();\r\n }",
"public ArrayList<ChessCoordinate> getAdjacencyList() {\n\t\tint dx, dy;\n\t\tArrayList<ChessCoordinate> adjacencyList = new ArrayList<ChessCoordinate>();\n\n\t\tfor (dx = -1; dx <= 1; dx++) {\n\t\t\tfor (dy = -1; dy <= 1; dy++) {\n\t\t\t\tif (dx == dy) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\tadjacencyList.add(StandardCoordinate.make(x + dx, y + dy));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn adjacencyList;\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void initAdjList()\n {\n adjList = new ArrayList[v];\n\n for(int i = 0; i < v; i++)\n {\n adjList[i] = new ArrayList<>();\n }\n }",
"ArrayList<ArrayList<Integer>> convert2DArrayToList(int[][] image) {\n ArrayList<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>();\n for(int i=0;i < image.length;i++) {\n list.add(new ArrayList<Integer>());\n for(int j=0; j< image[0].length;j++) {\n list.get(i).add(image[i][j]);\n }\n }\n return list;\n }",
"@Override\n\tpublic ArrayList<T> toArrayList() {\n\t\tArrayList<T> out = new ArrayList<T>();\n\t\ttoArrayListRecursive(out,root);\n\t\treturn out;\n\t}",
"public Object[] toArray(){\n\n \tObject[] o = new Object[list.size()];\n\n o = list.toArray();\n\n \treturn o;\n\n }",
"private void createAdjacencyLists(List<Edges> edges,int numberOfVertices){\n\t\t\n\t\tfor(int i=0;i<numberOfVertices;i++){\n\t\t\tneighbors.add(new ArrayList<Integer>());\n\t\t}\n\t\tfor(Edges edge:edges){\n\t\t\tneighbors.get(edge.u).add(edge.v);\n\t\t}\n\t\t\n\t}",
"public ArrayList<V> getEdges(V vertex){\n return (ArrayList<V>) graph.get(vertex);\n }",
"public List<LayoutEdge> getEdgeList() {\n\treturn edgeList;\n }",
"public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> getEdgeList() {\n if (edgeBuilder_ == null) {\n return java.util.Collections.unmodifiableList(edge_);\n } else {\n return edgeBuilder_.getMessageList();\n }\n }",
"List<byte[]> asByteArrayList();",
"Object[] toArray();",
"Object[] toArray();",
"Object[] toArray();",
"public List<Piece> getEdges() {\n List<Piece> result = new ArrayList<>();\n result.add(_board[0][1]);\n result.add(_board[1][0]);\n result.add(_board[1][2]);\n result.add(_board[2][1]);\n return result;\n }",
"public List<E> toList() {\r\n ArrayList<E> result = new ArrayList<E>(this.size());\r\n for (E e : this) {\r\n result.add(e);\r\n }\r\n return result;\r\n }",
"public Object[] toArray() {\n Object[] myarray = new Object[size];\n DoublyLinkedListNode<T> pointer = head;\n for (int i = 0; i < size; i++) {\n myarray[i] = pointer.getData();\n pointer = pointer.getNext();\n }\n return myarray;\n\n\n }",
"@SuppressWarnings( \"rawtypes\" )\n private XmlElement toXmlArray(List list)\n {\n XmlElement array = new XmlElement(\"array\");\n for (Object o : list)\n {\n array.add(objectToXml(o));\n }\n return array;\n }",
"public List<E> createEdgeListPath()\r\n/* */ {\r\n/* 146 */ List<E> path = new ArrayList();\r\n/* 147 */ AbstractPathElement<V, E> pathElement = this;\r\n/* */ \r\n/* */ \r\n/* 150 */ while (pathElement.getPrevEdge() != null) {\r\n/* 151 */ path.add(pathElement.getPrevEdge());\r\n/* */ \r\n/* 153 */ pathElement = pathElement.getPrevPathElement();\r\n/* */ }\r\n/* */ \r\n/* 156 */ Collections.reverse(path);\r\n/* */ \r\n/* 158 */ return path;\r\n/* */ }",
"void setAllEdges(List<IEdge> allEdges);",
"private List<String> getQueryEdgeCollections(String... edgeLabels) {\n\t\tList<String> vertexCollections;\n\t\tif (edgeLabels.length == 0) {\n\t\t\tvertexCollections = graph.edgeCollections().stream().map(graph::getPrefixedCollectioName).collect(Collectors.toList());\n\t\t}\n\t\telse {\n\t\t\tvertexCollections = Arrays.stream(edgeLabels)\n\t\t\t\t\t.filter(el -> graph.edgeCollections().contains(el))\n\t\t\t\t\t.map(graph::getPrefixedCollectioName)\n\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t}\n\t\treturn vertexCollections;\n\t}",
"@Override\n public Object[] toArray() {\n Object[] result = new Object[size];\n int i = 0;\n for (E e : this) {\n result[i++] = e;\n }\n return result;\n }",
"@SuppressWarnings(\"unchecked\")\n public E[] toArray(E[] arr) {\n if(arr.length < size) {\n arr = (E[]) Array.newInstance(arr.getClass().getComponentType(), size);\n }\n Node<E> cur = head;\n for(int i = 0; i < size; i++) {\n arr[i] = cur.item;\n cur = cur.next;\n }\n return arr;\n }",
"public void setEdges(List<E> edges) {\n\t\tthis.edges = edges;\n\t\tvirtualEdges = new ArrayList<E>();\n\t}",
"private static double[] toArray(ArrayList<Double> dbls) {\n double[] r = new double[dbls.size()];\n int i = 0;\n for( double d:dbls ) r[i++] = d;\n return r;\n }",
"public Set<E> getEdges();",
"public Edge[] getEdges(EdgeType et)\r\n {\r\n\treturn getEdges(et.getName());\r\n }",
"public List<EdgeType> getEdges()\n {\n return edges;\n }",
"public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge> getEdgeList() {\n return edge_;\n }",
"List<V> getVertexList();",
"private List<Integer> toList(int[] array) {\n List<Integer> list = new LinkedList<Integer>();\n for (int item : array) {\n list.add(item);\n }\n return list;\n }",
"public void addEdge(){\n Node[] newAdjacent = new Node[adjacent.length + 1];\n for (int i = 0; i < adjacent.length; i++) {\n newAdjacent[i] = adjacent[i];\n }\n adjacent = newAdjacent;\n }",
"int[] toArray();",
"public List<Line> getEdgeLines()\r\n {\r\n final List<Line> lineList = new ArrayList<Line>();\r\n lineList.add(new Line(getUpperLeft(), getLowerLeft()));\r\n lineList.add(new Line(getLowerLeft(), getLowerRight()));\r\n lineList.add(new Line(getLowerRight(), getUpperRight()));\r\n lineList.add(new Line(getUpperRight(), getUpperLeft()));\r\n return lineList;\r\n }",
"public Map<V,List<E>> adjacencyMap(){\n\t\tMap<V,List<E>> ret = new HashMap<V,List<E>>();\n\t\tfor (E e : edges){\n\t\t\tif (virtualEdges.contains(e))\n\t\t\t\tcontinue;\n\t\t\tList<E> list;\n\t\t\tif (!ret.containsKey(e.getOrigin())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getOrigin(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getOrigin());\n\t\t\tlist.add(e);\n\t\t\t\n\t\t\tif (!ret.containsKey(e.getDestination())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getDestination(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getDestination());\n\t\t\tlist.add(e);\n\t\t}\n\t\treturn ret;\n\t}",
"java.util.List<org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement> getBridgeElementList();",
"Graph(int v) {\n this.v = v;\n array = new ArrayList[v];\n\n // Add linkedList to array\n for (int i = 0; i < v; i++) {\n array[i] = new ArrayList<>();\n }\n }",
"public static void parseEdge(String[] list)\n {\n for (int i = 0; i < list.length; i++) {\n String element = list[i].replace(\" \", \"\");\n if (element.length() > 4) {\n throw new RuntimeException(\"element not handled\");\n }\n Graph.getNode(element.substring(0, 1)).addDestination(\n Graph.getNode(element.substring(1,2)),\n Integer.parseInt(element.substring(2))\n );\n }\n return;\n }",
"public abstract int[] toIntArray();",
"public static ArrayList<Vertex> initializeGraph() {\n\t\tVertex uVertex = new Vertex('u');\n\t\tVertex vVertex = new Vertex('v');\n\t\tVertex wVertex = new Vertex('w');\n\t\tVertex xVertex = new Vertex('x');\n\t\tVertex yVertex = new Vertex('y');\n\t\tVertex zVertex = new Vertex('z');\n\t\t\n\t\tVertex[] uAdjacencyList = {xVertex, vVertex};\n\t\tuVertex.setAdjacencyList(createArrayList( uAdjacencyList ));\n\t\t\n\t\tVertex[] vAdjacencyList = {yVertex};\n\t\tvVertex.setAdjacencyList(createArrayList( vAdjacencyList ));\n\t\t\n\t\tVertex[] wAdjacencyList = {zVertex, yVertex};\n\t\twVertex.setAdjacencyList(createArrayList( wAdjacencyList ));\n\t\t\n\t\tVertex[] xAdjacencyList = {vVertex};\n\t\txVertex.setAdjacencyList(createArrayList( xAdjacencyList ));\n\t\t\n\t\tVertex[] yAdjacencyList = {xVertex};\n\t\tyVertex.setAdjacencyList(createArrayList( yAdjacencyList ));\n\t\t\n\t\tVertex[] zAdjacencyList = {zVertex};\n\t\tzVertex.setAdjacencyList(createArrayList( zAdjacencyList ));\n\n\t\tVertex[] graph = { uVertex, vVertex, wVertex, xVertex, yVertex, zVertex};\n\t\treturn createArrayList( graph );\n\n\t}",
"public ArrayList<Pair> getEdges(int x, int y, int size)\n\t{\n\t\tArrayList<Pair> pairs = new ArrayList<Pair>();\n\t\tpairs.add(new Pair(x, y));\n\n\t\tfor (int i = 1; i <= size; i++)\n\t\t{\n\t\t\tpairs.add(new Pair(x, y + i));\n\t\t\tpairs.add(new Pair(x + size, y + i));\n\t\t\tpairs.add(new Pair(x + i, y));\n\t\t\tpairs.add(new Pair(x + i, y + size));\n\t\t}\n\n\t\treturn pairs;\n\t}",
"private static List forestIntoList() {\n List temp = new ArrayList<Integer>();\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n temp.add(forest[i][j]);\n }\n }\n return temp;\n }",
"public List<? super Object> getEdgeValues(Node<A> n) {\n\t\t\n\t\tif (g == null) return null;\n\t\t\n\t\tList<? super Object> s = new LinkedList<>();\n\t\t\n\t\tif(isConnectedTo(n)) {\n\t\t\t\n\t\t\tfor(Object o: g.getEdges()) {\n\t\t\t\tif(((Edge<?>)o).getFrom().equals(this) && ((Edge<?>)o).getTo().equals(n)) {\n\t\t\t\t\ts.add( ((Edge<?>)o).getData() );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n return s;\n\t\n\t}"
] | [
"0.68267655",
"0.66469806",
"0.6573727",
"0.64886767",
"0.64739484",
"0.64628357",
"0.64479584",
"0.6389622",
"0.63760597",
"0.63632286",
"0.63588035",
"0.6350646",
"0.6297592",
"0.620353",
"0.6188558",
"0.61483413",
"0.61252755",
"0.6110632",
"0.60882485",
"0.60307497",
"0.6026812",
"0.60232455",
"0.6001635",
"0.5989574",
"0.5984843",
"0.5933051",
"0.5896408",
"0.58954924",
"0.58786136",
"0.5856426",
"0.5854791",
"0.58524853",
"0.5843807",
"0.5840734",
"0.5831972",
"0.5827584",
"0.579459",
"0.5787456",
"0.57775885",
"0.5765499",
"0.5764152",
"0.57463145",
"0.5741036",
"0.57319796",
"0.57299",
"0.5721704",
"0.5705654",
"0.56930333",
"0.56834185",
"0.56825495",
"0.5675625",
"0.5651279",
"0.5648804",
"0.5643844",
"0.5623671",
"0.5618097",
"0.55942404",
"0.55895567",
"0.55886585",
"0.55815166",
"0.557292",
"0.5572793",
"0.55625254",
"0.55612665",
"0.5542812",
"0.5531375",
"0.5529442",
"0.55273837",
"0.55187595",
"0.55187595",
"0.55187595",
"0.55181044",
"0.5514782",
"0.5512116",
"0.5506353",
"0.550511",
"0.55034876",
"0.5491349",
"0.5483673",
"0.54792583",
"0.546989",
"0.54637843",
"0.545676",
"0.5417808",
"0.54063445",
"0.54015845",
"0.539761",
"0.53951067",
"0.538315",
"0.5371134",
"0.5348352",
"0.5340067",
"0.53343153",
"0.53217137",
"0.53187186",
"0.5314955",
"0.530344",
"0.5303124",
"0.53022176",
"0.5301299"
] | 0.754946 | 0 |
Services from sample data: service_id, owner_id, user_name 1;102;"fforgeadmin" 2;102;"fforgeadmin" | @Test
public void testInsertSharedService () {
ArrayList<SharedService> sharedServicesBefore =
given().
header("AJP_eppn", userEPPN).
expect().
statusCode(200).
when().
get(SHARED_SERVICE_ENDPOINT).
as(ArrayList.class);
int serviceId = 1;
int userId = 102;
int idSharedService = addSharedService(serviceId, userId);
assertTrue(idSharedService != -1);
ServiceLogger.log(logTag, "inserted shared servie, id =" + idSharedService);
ArrayList<SharedService> sharedServicesAfter =
given().
header("AJP_eppn", userEPPN).
expect().
statusCode(200).
when().
get(SHARED_SERVICE_ENDPOINT).
as(ArrayList.class);
int numBefore = (sharedServicesBefore != null) ? sharedServicesBefore.size() : 0;
int numAfter = (sharedServicesAfter != null) ? sharedServicesAfter.size() : 0;
int numExpected = numBefore + 1;
assertTrue (numAfter == numExpected);
ArrayList<SharedService> sharedServiceLookup =
given().
header("AJP_eppn", userEPPN).
expect().
statusCode(200).
when().
get(SHARED_SERVICE_GET_BY_ID, idSharedService).
as(ArrayList.class);
int numLookup = (sharedServiceLookup != null) ? sharedServiceLookup.size() : 0;
ServiceLogger.log(logTag, "get shared service by id returns list of size =" + numLookup);
assertTrue (numLookup == 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"net.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;",
"List<ServiceSegmentModel> queryServiceSegments(@Param(\"serviceId\") String serviceId);",
"public void setService (String service) {\n\t this.service = service;\n\t}",
"public List<CatalogService> getService(String service);",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void setService(String service) {\n this.service = service;\n }",
"public void fetchServices() {\n serviciosTotales.clear();\n for (String serviceId : serviceList) {\n databaseServiceReference.child(serviceId).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Servicio servicioTemp = dataSnapshot.getValue(Servicio.class);\n serviciosTotales.add(servicioTemp);\n servicesAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }\n\n\n }",
"public abstract void dataFromEOJ(Service service);",
"public String[][] Service(String login) throws Exception {\r\n URL url = new URL(IP() + \"/service/comp\");\r\n String list = GETConnect(login, url, \"GET\");\r\n JSONObject jo = (JSONObject) new JSONParser().parse(list);\r\n JSONArray data = (JSONArray) jo.get(\"data\");\r\n String[][] dataTable = new String[data.size()][5];\r\n for (int i = 0; i < data.size(); i++) {\r\n JSONObject datas = (JSONObject) data.get(i);\r\n dataTable[i][0] = (long) datas.get(\"idService\") + \"\";\r\n dataTable[i][1] = (String) datas.get(\"nameService\");\r\n dataTable[i][2] = (long) datas.get(\"priceService\") + \"\";\r\n dataTable[i][3] = (String) datas.get(\"description\");\r\n dataTable[i][4] = (String) datas.get(\"photo\");\r\n };\r\n return dataTable;\r\n\r\n }",
"public final void storeService(final Service service) {\r\n Concept[] o;\r\n Service[] s, s2;\r\n int i, hc, l;\r\n Service x, y;\r\n\r\n o = service.m_out;\r\n\r\n if (o.length > 0) {\r\n this.m_service_count++;\r\n s = o[0].m_services;\r\n\r\n for (i = (o[0].m_serviceCount - 1); i >= 0; i--) {\r\n if (service.isServiceEqual(s[i])) {\r\n return;\r\n }\r\n }\r\n\r\n for (i = (o.length - 1); i >= 0; i--) {\r\n o[i].addService(service);\r\n }\r\n\r\n s = this.m_services;\r\n l = s.length;\r\n if ((3 * (this.m_service_h++)) > (l << 1)) {\r\n i = (l - 1);\r\n l <<= 1;\r\n s2 = new Service[l];\r\n for (--l; i >= 0; i--) {\r\n for (x = s[i]; x != null; x = y) {\r\n y = x.m_next;\r\n hc = (x.m_name.hashCode() & l);\r\n x.m_next = s2[hc];\r\n s2[hc] = x;\r\n }\r\n }\r\n this.m_services = s = s2;\r\n } else\r\n l--;\r\n\r\n hc = (service.m_name.hashCode() & l);\r\n service.m_next = s[hc];\r\n s[hc] = service;\r\n }\r\n }",
"public void setServiceName(String serviceName){\n this.serviceName = serviceName;\n }",
"@Override\n\tpublic int addStationstoServices(Service serviceDTO) {\n\t\tcom.svecw.obtr.domain.Service serviceDomain = new com.svecw.obtr.domain.Service();\n\t\tserviceDomain.setSourceStationId(serviceDTO.getSourceStationId());\n\t\tserviceDomain.setDestinationStationId(serviceDTO.getDestinationStationId());\n\t\tserviceDomain.setServiceId(serviceDTO.getServiceId());\n\t\tSystem.out.println(serviceDTO.getServiceId());\n\t\t//System.out.println(serviceDTO.getDestinationStationId());\n\t\treturn iStationToService.addServiceToStation(serviceDomain);\n\t}",
"public String getProxyUserAccountServiceByConditions(String proxyUser_id,\n\t\t\tString account_id, String service_id, String root) {\n\t\tList list = new ArrayList();\n\t\tSystem.out.println(\"account_id\" + account_id + \"service_id:\" + service_id + \"proxyuser_id\" + proxyUser_id);\n\t\tProxyUserAccountService proxyUserAccountService = new ProxyUserAccountService();\n\t\tproxyUserAccountService.setAccount_id(account_id);\n\t\tproxyUserAccountService.setProxyUser_id(proxyUser_id);\n\t\tproxyUserAccountService.setService_id(service_id);\n\t\tlist = proxyDao.queryProxyUserAccountServiceByConditions(wrap3(proxyUserAccountService));\n\t\treturn Util.buildExtJsonDataPaging(Util.list2Json(list), root, \"success\", \"totalCount\", list.size());\n\t}",
"void putServiceNameServiceInfos(net.zyuiop.ovhapi.api.objects.services.Service param0, java.lang.String serviceName) throws java.io.IOException;",
"private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }",
"private void readAddServices(BufferedReader in) {\n\t\tString line, name = \"\", opis = \"\";\n\t\tDouble price = -1.0;\n\t\tStringTokenizer st;\n\t\ttry {\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tline = line.trim();\n\t\t\t\tif (line.equals(\"\") || line.indexOf('#') == 0)\n\t\t\t\t\tcontinue;\n\t\t\t\tst = new StringTokenizer(line, \";\");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tname = st.nextToken().trim();\n\t\t\t\t\topis = st.nextToken().trim();\n\t\t\t\t\tprice = Double.parseDouble(st.nextToken().trim());\n\t\t\t\t}\n\t\t\t\taddServices.put(name, new AdditionalService(name, opis, price));\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void setServiceid(Integer serviceid) {\r\n this.serviceid = serviceid;\r\n }",
"void addService(Long orderId, Long serviceId);",
"public void setService(java.lang.CharSequence value) {\n this.service = value;\n }",
"public void testServiceList()\n {\n ServiceList services = serviceSetup();\n\n ServiceIterator it = services.createServiceIterator();\n int i = 0;\n try\n {\n while (it.hasNext())\n {\n // Increment the service counter\n i++;\n // Get our next service\n ServiceExt service = (ServiceExt) it.nextService();\n log(\"******************************************************************\");\n log(\"* Services - Counter: (\" + i + \")\");\n dumpService(service);\n\n ServiceDetailsHandle[] handles = sidb.getServiceDetailsByService(service.getServiceHandle());\n\n ServiceDetailsExt[] details = new ServiceDetailsExt[handles.length];\n for (int j = 0; j < handles.length; j++)\n {\n details[j] = sidb.createServiceDetails(handles[j]);\n dumpServiceDetails(details[j]);\n assertEquals(\"ServiceDetails' Service does not match expected value\", service,\n details[j].getService());\n assertEquals(\"ServiceType does not match\", service.getServiceType(), details[j].getServiceType());\n }\n log(\"******************************************************************\");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"@JsonProperty(\"service\")\n public void setService(String service) {\n this.service = service;\n }",
"Service(){\r\n\t\tserviceName =\"x\";\r\n\t\tserviceID = 0;\r\n\t\tserviceFee = 0.0;\r\n\t\tserviceDescrp = \"zztop\";\r\n\t}",
"public List<ServerServices> searchExternalService(int servId, String dataPort, String servicePort);",
"String getService_id();",
"public void setServiceName(String serviceName)\r\n {\r\n this.serviceName = serviceName;\r\n }",
"public void setServiceID(int value) {\n this.serviceID = value;\n }",
"ServiceOrder(String carVIN, int techID, int dealershipID, String serviceDate){\n serviceNumber++;\n this.carVIN = carVIN;\n this.techID = techID;\n this.dealershipID = dealershipID;\n this.serviceDate = serviceDate;\n this.serviceDesc = \"None\";\n this.partsUsed = \"None\";\n this.partsCost = 0;\n this.totalCost = 0;\n this.laborHours = 0;\n }",
"public void setServicios(List<ServicioEntity> servicios) {\r\n this.servicios = servicios;\r\n }",
"public JsonNode callInfoService(User user, String service);",
"public static int loadAllUniqueServiceCenters(String filePath) throws IOException{\r\n\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\r\n\t\tString line = bufferedReader.readLine();\r\n\t\twhile ((line = bufferedReader.readLine()) != null) {\r\n\t\t\tString[] details = line.split(\" \");\r\n\t\t\tServiceCenter serviceCenter = new ServiceCenter(details[1],Integer.parseInt(details[1]),\r\n\t\t\t\t\tConstants.color[allSC.size()],Integer.parseInt(details[4]),Integer.parseInt(details[5]));\r\n\r\n\t\t\tallSC.put(Integer.parseInt(details[1]), serviceCenter);\r\n\t\t\tscIDs.add(Integer.parseInt(details[1]));\r\n//\t\t\tSystem.out.println(\"SC in Vornoi \"+serviceCenter.getServiceCenterId()+\" at Pos: \"+serviceCenter.getScIndex());\r\n//\t\t\tSystem.out.println(\"Color, Capacity and Penalty added \"+serviceCenter.getColor()+\",\"\r\n//\t\t\t\t\t+serviceCenter.getMaxCapacity()+\",\"+serviceCenter.getPenalty());\r\n\t\t}\r\n\t\tbufferedReader.close();\r\n\t\tSystem.out.println(\"Total no of service center added: \"+allSC.size());\r\n\t\treturn allSC.size();\r\n\t}",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}",
"private RFSServiceSummary processService(Service service) {\n \t\tIMonitoringSummary serviceSummary = monitoringStateModel\n \t\t\t\t.summary(service);\n\t\tserviceSummary.addContextObject(new ObjectContext<DateTimeRange>(\n\t\t\t\tgetPeriod()));\n \t\tserviceSummary.compute(new NullProgressMonitor());\n \n \t\tif (serviceSummary instanceof RFSServiceSummary) {\n \n \t\t\tfinal ReportingEngine engine = (ReportingEngine) getEngine();\n \t\t\tengine.setService(service);\n \t\t\tengine.setServiceSummary((RFSServiceSummary) serviceSummary);\n \t\t\tengine.setJobMonitor(getJobMonitor());\n \t\t\tengine.setDataProvider(this.getDataProvider());\n \t\t\tengine.setPeriod(getPeriod());\n \t\t\tengine.execute();\n \t\t\tif (engine.getFailures().size() > 0) {\n \t\t\t\t// Don't add anmy\n \t\t\t\tthis.getFailures().addAll(engine.getFailures());\n \t\t\t}\n \t\t\treturn (RFSServiceSummary) serviceSummary;\n \t\t}\n \t\treturn null;\n \t}",
"public void saveService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().info(\" addService()\");\r\n\t \t\t\tserviceList.addNewServiceToDB(editService.getDisplayServiceName(), editService.getServiceName(), editService.getUrl());\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" updateService(\" + id + \")\");\r\n\t \t\t\tserviceList.updateAlgorithmParameterToDB(editService);\r\n\t \t\t}\r\n\t \t\tthis.getServiceList().populateServiceListFromDB();\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }",
"java.lang.String getServiceId();",
"public interface RecustomerTableService extends Service<RecustomerTable> {\n List<RecustomerTable> selectUsers();\n\n int insertByRebackUser(RecustomerTable recustomerTable);\n}",
"private List getActiveServiceList(List servicesList) {\r\n\r\n\t\tList activeServiceList = new ArrayList();\r\n\t\t\r\n\t\tServiceVO activeService;\t\t\r\n\t\t\r\n\t\tif (servicesList != null) {\r\n\t\t\tfor (Iterator iterator = servicesList.iterator(); iterator.hasNext();) {\r\n\t\t\t\tactiveService = (ServiceVO) iterator.next();\r\n\t\t\t\tif (activeService.getStatus() != null) {\r\n\t\t\t\t\tif (activeService.getStatus().trim().equalsIgnoreCase(\"Ativado\")) {\r\n\t\t\t\t\t\tactiveServiceList.add(activeService);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn activeServiceList;\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic List<sn.ucad.master.assurance.bo.Service> findAllService() {\n\t\treturn serviceRepository.findAll();\r\n\t}",
"public ArrayList<String> DFGetAllProvidersOf(String service) {\n ArrayList<String> res = new ArrayList<>();\n DFAgentDescription list[];\n list = this.DFQueryAllProviders(service);\n if (list != null && list.length > 0) {\n for (DFAgentDescription list1 : list) {\n if (!res.contains(list1.getName().getLocalName())) {\n res.add(list1.getName().getLocalName());\n }\n }\n }\n return res;\n }",
"public void processCustomer(String owner) {\r\n\t\tString word[];\r\n\t\tword = owner.split(\"/\");\r\n\t\tthis.name = word[0];\r\n\t\tthis.address = word[1];\r\n\t\tthis.phoneNumber = (word[2]);\r\n\t}",
"public void parseClients(String[] lines) {\r\n // For each line, add a value mapped to the associated column name\r\n for (int i = 0; i < lines.length; i++) {\r\n String[] info = lines[i].split(\";\");\r\n ContentValues values = new ContentValues();\r\n values.put(\"email\", info[2]);\r\n values.put(\"expiry\", info[5]);\r\n values.put(\"personalAddress\", info[3]);\r\n values.put(\"creditCardNumber\", info[4]);\r\n values.put(\"firstName\", info[1]);\r\n values.put(\"lastName\", info[0]);\r\n // Add or update the database with the parsed info\r\n sqlExecutor.updateOrAddRecords(\"clients\", values);\r\n }\r\n }",
"public void setServiceName(String serviceName)\n {\n this.serviceName = serviceName;\n }",
"public Map<String, List<String>> getServices();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_service_list);\n\n\n mDatabaseServices = FirebaseDatabase.getInstance().getReference(\"services\");\n mDatabaseUsers = FirebaseDatabase.getInstance().getReference(\"users\");\n mDatabaseReservations = FirebaseDatabase.getInstance().getReference(\"reservations\");\n\n mAuth = FirebaseAuth.getInstance();\n\n Toolbar toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n filterText = (EditText) findViewById(R.id.filterText);\n filterText.setVisibility(View.GONE);\n mServicesListView = (ListView) findViewById(R.id.service_list_view);\n mReservationsListView = (ListView) findViewById(R.id.reservation_list_view);\n\n //mServiceAdapter = new ServiceAdapter(ServiceListActivity.this, mServices);\n //mServiceAdapter.notifyDataSetChanged();\n\n filterText.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (!s.toString().isEmpty()) {\n ArrayList<Service> tmp = new ArrayList<>();\n for (Service sv : mServices) {\n //We have done both in one search bar. So we can find service by provider name or name of the service(title)\n if(sv.getAssignedUsers()!=null) {\n for (String id : sv.getAssignedUsers()) {\n for (User u : mUsers) {\n if(u.getFirstName().toLowerCase().contains(s.toString()) && id.equals(u.getId()) && !tmp.contains(sv)){\n tmp.add(sv);\n\n //System.out.println(\"size userservice \"+mUserServices.size());\n }\n }\n }\n }\n\n\n if (sv.getTitle().toLowerCase().contains(s.toString())) {\n tmp.add(sv);\n }\n }\n //System.out.println(tmp.size()+ \"Size userServices \"+mUserServices.size()+ \"Size user \"+mUsers.size());\n\n mServiceAdapter = new ServiceAdapter(ServiceListActivity.this, tmp);\n mServicesListView.setAdapter(mServiceAdapter);\n } else {\n mServiceAdapter = new ServiceAdapter(ServiceListActivity.this, mServices);\n mServicesListView.setAdapter(mServiceAdapter);\n }\n mServiceAdapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n\n //mAddServiceLayout = findViewById(R.id.layout_add_service);\n mReservationSwitch = findViewById(R.id.reservation_switch);\n mReservationSwitch.setVisibility(View.GONE);\n\n\n mServices = new ArrayList<>();\n mUsers = new ArrayList<>();\n //mReservations = new ArrayList<>();\n mUserReservations = new ArrayList<>();\n //mUserServices = new ArrayList<>();\n //Assigning Disponibility\n mAssignedDisponibility = new ArrayList<>();\n\n\n mReservationSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n filterText.setVisibility(View.GONE);\n mServicesListView.setVisibility(View.GONE);\n mReservationAdapter = new ReservationAdapter(ServiceListActivity.this, mUserReservations);\n mReservationsListView.setAdapter(mReservationAdapter);\n mReservationAdapter.notifyDataSetChanged();\n } else {\n filterText.setVisibility(View.VISIBLE);\n mReservationsListView.setVisibility(View.GONE);\n mServicesListView.setVisibility(View.VISIBLE);\n mServiceAdapter = new ServiceAdapter(ServiceListActivity.this, mServices);\n mServicesListView.setAdapter(mServiceAdapter);\n mServiceAdapter.notifyDataSetChanged();\n }\n }\n });\n\n\n mFAB = findViewById(R.id.fab_add_service);\n mFAB.setVisibility(View.GONE);\n mFAB.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ServiceListActivity.this, NewServiceActivity.class);\n startActivity(intent);\n }\n });\n\n mFAB2 = findViewById(R.id.fab_add_disponibility);\n mFAB2.setVisibility(View.GONE);\n\n getCurrentUser();\n if(loggedInUser != null) {\n System.out.println(loggedInUser.getTypeOfUser());\n }\n\n\n mFAB2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n final String[] days = {\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"};\n mDialogAssignDisponibilityView = LayoutInflater.from(ServiceListActivity.this).inflate(R.layout.dialog_assign_resources, null);\n mDisponibilityListView = mDialogAssignDisponibilityView.findViewById(R.id.resourcesListView);\n mDisponibilityListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);\n mDisponibilityListAdapter = new ArrayAdapter<String>(ServiceListActivity.this, android.R.layout.simple_list_item_multiple_choice, days);\n mDisponibilityListView.setAdapter(mDisponibilityListAdapter);\n if (mCheckedDisponibility != null) {\n for (int i = 0; i < mCheckedDisponibility.size() + 1; i++) {\n mDisponibilityListView.setItemChecked(i, mCheckedDisponibility.get(i));\n\n }\n\n }\n AlertDialog.Builder builder = new AlertDialog.Builder(ServiceListActivity.this);\n builder.setTitle(\"Assign/update your days\").setView(mDialogAssignDisponibilityView).setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int which) {\n mCheckedDisponibility = mDisponibilityListView.getCheckedItemPositions();\n for (int i = 0; i < mDisponibilityListView.getAdapter().getCount(); i++) {\n if (mCheckedDisponibility.get(i)) {\n if (mCheckedDisponibility.get(i)) mAssignedDisponibility.add(days[i]);\n }\n }\n updateUser();\n\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mAssignedDisponibility.clear();\n if (mCheckedDisponibility != null) {\n mCheckedDisponibility.clear();\n }\n }\n }).show();\n\n\n }\n });\n\n\n\n mServicesListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Service selected = mServices.get(position);\n /* if (userServicesOnly) {\n selected = mUserServices.get(position);\n }\n */\n String serviceId = selected.getId();\n Intent intent = ViewServiceActivity.newIntent(ServiceListActivity.this, serviceId);\n startActivity(intent);\n }\n });\n\n //HomeOwner can't do the long Click because he doesn't have right to edit anything\n\n mServicesListView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n @Override\n public boolean onItemLongClick(AdapterView<?> arg0, View arg1, int pos, long id) {\n\n final int position = pos;\n\n AlertDialog.Builder builder;\n builder = new AlertDialog.Builder(ServiceListActivity.this);\n builder.setTitle(\"Edit Service\").setMessage(\"Are you sure you want to edit this service?\").setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n //deletes entry from database\n Service selected = mServices.get(position);\n String serviceId = selected.getId();\n Intent intent = EditServiceActivity.newIntent(ServiceListActivity.this, serviceId);\n startActivity(intent);\n\n\n }\n }).setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n // do nothing\n }\n }).show();\n\n return true;\n }\n\n });\n }",
"@Override\n\tpublic int addService(Service serviceDTO) {\n\t\tcom.svecw.obtr.domain.Service serviceDomain = new com.svecw.obtr.domain.Service();\n\t\tserviceDomain.setSourceId(serviceDTO.getSourceId());\n\t\tserviceDomain.setDestinationId(serviceDTO.getDestinationId());\n\t\tserviceDomain.setNoOfSeats(serviceDTO.getNoOfSeats());\n\t\tserviceDomain.setFare(serviceDTO.getFare());\n\t\tserviceDomain.setDistance(serviceDTO.getDistance());\n\t\tserviceDomain.setJourneyDate(serviceDTO.getJourneyDate());\n\t\tserviceDomain.setArrivalTime(serviceDTO.getArrivalTime());\n\t\tserviceDomain.setDepartureTime(serviceDTO.getDepartureTime());\n\t\tserviceDomain.setStatus(serviceDTO.getStatus());\n\t\treturn iServiceDAO.addService(serviceDomain);\n\t}",
"List<Service> services();",
"public static void main(String[] args) throws ParseException, SQLException {\n // TODO code application logic here\n// DataSource ds=DataSource.getInstance();\n// DataSource ds1=DataSource.getInstance();\n// DataSource ds2=DataSource.getInstance();\n// System.out.println(ds);\n// System.out.println(ds1);\n// System.out.println(ds2);\n\nUser u=new User(\"kalboussi\",\"hazem2\",\"hazem123\",\"admin\",\"kalboussihazem07@gmail.com\",25142394);\nUser u2=new User(\"hamoudi\",\"bilel\",\"bilel123\",\"agent financier\",\"bilel.57@gmail.com\",20250341);\n\nUserService ps=new UserService();\n//ps.insert(u);\n//ps.Insertps(u2);\n//ps.delete(u);\n//ps.update(u);\nps.search(8).forEach(System.out::println);\nSystem.out.println(ps.displayAll2());\nSimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\nDate date = simpleDateFormat.parse(\"25/12/2010\");\n//System.out.println(date);\nDate date1 = simpleDateFormat.parse(\"25/12/2019\");\n\nStaff s=new Staff(\"sami\",\"mhamdi\",1250.f,\"ouvrier\",\"25dzd6522\",200.f,date);\nStaff s1=new Staff(\"salah\",\"aloui\",1200.f,\"ouvrier\",\"25dzdfd6522\",100.f,date1);\n\nStaffService ss=new StaffService();\n//ss.insert(s1);\n//ss.delete();\nSystem.out.println(ss.search());\nSystem.out.println(ss.displayAll2());\nSystem.out.println(ss.moyenne());\n \n }",
"public void setServices(List<AService> services) {\n this.services = services;\n }",
"public void setServiceName(String serviceName) {\n this.serviceName = serviceName;\n }",
"public void setServiceName(String serviceName) {\n this.serviceName = serviceName;\n }",
"@Override\r\n\tpublic List<String> getGroup(String service) {\n\t\tList<String> results = new ArrayList<String>();\r\n\t\tString rest = null;\r\n\t\tfor(String s : prefixes)\r\n\t\t\tif(service.startsWith(s))\r\n\t\t\t\trest = service.substring(s.length());\r\n\t\tif(rest == null)\r\n\t\t\treturn null;\r\n\t\tfor(String s : prefixes)\r\n\t\t\tresults.add(s + rest);\r\n\t\treturn results;\r\n\t\t\t\r\n\t}",
"void setServiceId(java.lang.String serviceId);",
"public List<Service> list(){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \treturn criteria.list();\r\n }",
"private List<ServiceDTO> getCustomizedConfigService() {\n String configServices = System.getProperty(\"apollo.configService\");\n if (Strings.isNullOrEmpty(configServices)) {\n // 2. Get from OS environment variable\n configServices = System.getenv(\"APOLLO_CONFIGSERVICE\");\n }\n if (Strings.isNullOrEmpty(configServices)) {\n // 3. Get from server.properties\n configServices = Foundation.server().getProperty(\"apollo.configService\", null);\n }\n\n if (Strings.isNullOrEmpty(configServices)) {\n return null;\n }\n\n logger.warn(\"Located config services from apollo.configService configuration: {}, will not refresh config services from remote meta service!\", configServices);\n\n // mock service dto list\n String[] configServiceUrls = configServices.split(\",\");\n List<ServiceDTO> serviceDTOS = Lists.newArrayList();\n\n for (String configServiceUrl : configServiceUrls) {\n configServiceUrl = configServiceUrl.trim();\n ServiceDTO serviceDTO = new ServiceDTO();\n serviceDTO.setHomepageUrl(configServiceUrl);\n serviceDTO.setAppName(ServiceNameConsts.APOLLO_CONFIGSERVICE);\n serviceDTO.setInstanceId(configServiceUrl);\n serviceDTOS.add(serviceDTO);\n }\n\n return serviceDTOS;\n }",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service ajoutService(sn.ucad.master.assurance.bo.Service service) {\n\t\treturn serviceRepository.save(service);\r\n\t}",
"public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }",
"public export.serializers.avro.DeviceInfo.Builder setService(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.service = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public ServiceType setActualServiceType(ServiceType service){\r\n\t\tthis.serviceTypeInUse = service;\r\n\t\treturn this.serviceTypeInUse;\r\n\t}",
"public interface UmsatzService extends Service\n{\n\n public static final String KEY_ID = \"id\";\n public static final String KEY_KONTO_ID = \"konto_id\";\n public static final String KEY_GEGENKONTO_NAME = \"empfaenger_name\";\n public static final String KEY_GEGENKONTO_NUMMER = \"empfaenger_konto\";\n public static final String KEY_GEGENKONTO_BLZ = \"empfaenger_blz\";\n public static final String KEY_ART = \"art\";\n public static final String KEY_BETRAG = \"betrag\";\n public static final String KEY_VALUTA = \"valuta\";\n public static final String KEY_DATUM = \"datum\";\n public static final String KEY_ZWECK = \"zweck\";\n public static final String KEY_ZWECK_RAW = \"zweck_raw\";\n public static final String KEY_SALDO = \"saldo\";\n public static final String KEY_PRIMANOTA = \"primanota\";\n public static final String KEY_CUSTOMER_REF = \"customer_ref\";\n public static final String KEY_UMSATZ_TYP = \"umsatz_typ\";\n public static final String KEY_KOMMENTAR = \"kommentar\";\n public static final String KEY_GVCODE = \"gvcode\";\n\n\n /**\n * Liefert eine Liste der Umsaetze.\n * Jede Zeile entspricht einem Umsatz. Die einzelnen Werte sind durch Doppelpunkt getrennt.\n * @param text Suchbegriff.\n * @param von Datum im Format dd.mm.yyyy.\n * @param bis Datum im Format dd.mm.yyyy.\n * @return Liste der Konten.\n * @throws RemoteException\n */\n public String[] list(String text, String von, String bis) throws RemoteException;\n\n /**\n * Liefert eine Liste der Umsaetze.\n * ueber dem Hash koennen die folgenden Filter gesetzt werden:\n *\n * konto_id\n * art\n * empfaenger_name\n * empfaenger_konto\n * empfaenger_blz\n * id\n * id:min\n * id:max\n * saldo\n * saldo:min\n * saldo:max\n * valuta\n * valuta:min\n * valuta:max\n * datum\n * datum:min\n * datum:max\n * betrag\n * betrag:min\n * betrag:max\n * primanota\n * customer_ref\n * umsatz_typ (Name oder ID der Umsatz-Kategorie)\n * zweck\n *\n * Die Funktion liefer eine Liste mit den Umsaetzen zurueck\n * jeder Umsatz liegt als Map vor und enthält die folgenden\n * Elemente:\n *\n * id\n * konto_id\n * empfaenger_name\n * empfaenger_konto\n * empfaenger_blz\n * saldo\n * valuta\n * datum\n * betrag\n * primanota\n * customer_ref\n * umsatz_typ\n * zweck\n * kommentar\n * \n * @param options Map mit den Filter-Parametern.\n * @return Liste der Umsaetze.\n * @throws RemoteException\n */\n public List<Map<String,Object>> list(HashMap<String,Object> options) throws RemoteException;\n}",
"java.lang.String[] getServiceNameOption(java.lang.String serviceName) throws java.io.IOException;",
"public void setService(Service value) {\n\t\tthis._service = value;\n\t}",
"public abstract String getServiceId() throws RcsServiceException;",
"public void publicService(){\n\t\tSystem.out.println(\"Name:\");\n\t\tString nameRegistered = reader.nextLine();\n\t\tSystem.out.println(\"Nit:\");\n\t\tString nit = reader.nextLine();\n\t\tSystem.out.println(\"Address:\");\n\t\tString address = reader.nextLine();\n\t\tSystem.out.println(\"Contact number:\");\n\t\tString contactNumber = reader.nextLine();\n\t\tSystem.out.println(\"Number of employees:\");\n\t\tint employees = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Value of the actives:\");\n\t\tdouble value = reader.nextDouble();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Legal representative:\");\n\t\tString legalRepresentative = reader.nextLine();\n\t\tSystem.out.println(\"Constitution date:\");\n\t\tSystem.out.println(\"Day:\");\n\t\tint day = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Month:\");\n\t\tint month = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Year:\");\n\t\tint year = reader.nextInt();\n\t\treader.nextLine();\n\t\tDate constitution = new Date(day, month, year);\n\t\tSystem.out.println(\"floors of the building\");\n\t\tint rows = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Type:\");\n\t\tString type = reader.nextLine();\n\t\tSystem.out.println(\"Type service:\");\n\t\tSystem.out.println(\"1. sewerage\");\n\t\tSystem.out.println(\"2. energy\");\n\t\tSystem.out.println(\"3. aqueduct\");\n\t\tint typeService = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Quantity of subscribers:\");\n\t\tint subscribers = reader.nextInt();\n\t\treader.nextLine();\n\t\tSystem.out.println(\"Quantity of subscribers in stratum 1 and 2:\");\n\t\tint subscribersStratum = reader.nextInt();\n\t\treader.nextLine();\n\t\tPublicService toAdd = new PublicService(nameRegistered, nit, address, contactNumber, employees, value, legalRepresentative, constitution, rows, type, typeService, subscribers, subscribersStratum);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\tSystem.out.println(\"The company were added successfuly\");\n\t}",
"@SuppressWarnings(\"unchecked\")\n private List<ServiceModel> composeData(List<ServiceModel> services, List<ServicePackageMapping> mapings) {\n if(CollectionUtils.isEmpty(mapings)) {\n return services;\n }\n\n Map<String, ServicePackageMapping> relationsMap = new HashedMap();\n for(ServicePackageMapping relation : mapings) {\n relationsMap.put(relation.getServiceId(), relation);\n }\n\n for(ServiceModel service : services) {\n ServicePackageMapping packageMapping = relationsMap.get(service.getServiceId());\n if(null != packageMapping) {\n service.setServicePackage(packageMapping);\n }\n }\n return services;\n }",
"public Set getAssignableServices() throws SMSException {\n // Get all service names, and remove the assigned services\n // Set containing service names that has organization schema\n Set orgSchemaServiceNames = new HashSet();\n try {\n for (Iterator names = getServiceNames(token).iterator(); names\n .hasNext();) {\n String serviceName = (String) names.next();\n ServiceSchemaManagerImpl ssmi = ServiceSchemaManagerImpl\n .getInstance(token, serviceName, \n ServiceManager.getVersion(serviceName));\n if (ssmi.getSchema(SchemaType.ORGANIZATION) != null) {\n // Need to check if the user has permission\n // to add/assign the service\n StringBuffer d = new StringBuffer(100);\n // Need to construct\n // \"ou=default,ou=organizationconfig,ou=1.0,ou=\"\n d.append(SMSEntry.PLACEHOLDER_RDN).append(SMSEntry.EQUALS)\n .append(SMSUtils.DEFAULT).append(SMSEntry.COMMA)\n .append(CreateServiceConfig.ORG_CONFIG_NODE)\n .append(SMSEntry.PLACEHOLDER_RDN).append(\n SMSEntry.EQUALS).append(\"1.0\").append(\n SMSEntry.COMMA).append(\n SMSEntry.PLACEHOLDER_RDN).append(\n SMSEntry.EQUALS);\n // Append service name, and org name\n d.append(serviceName);\n if (!orgDN.equalsIgnoreCase(DNMapper.serviceDN)) {\n d.append(SMSEntry.COMMA).append(SMSEntry.SERVICES_NODE);\n }\n d.append(SMSEntry.COMMA).append(orgDN);\n try {\n // The function will throw exception if\n // user does not have permissions\n SMSEntry.getDelegationPermission(token, d.toString(),\n SMSEntry.modifyActionSet);\n orgSchemaServiceNames.add(serviceName);\n } catch (SMSException smse) {\n if (smse.getExceptionCode() != \n SMSException.STATUS_NO_PERMISSION) \n {\n throw (smse);\n }\n }\n }\n }\n // Need to remove mandatory services\n // %%% TODO. Need to have SMS Service with this information\n // orgSchemaServiceNames.removeAll(getMandatoryServices());\n } catch (SSOException ssoe) {\n SMSEntry.debug.error(\"OrganizationConfigManager.\"\n + \"getAssignableServices(): SSOException\", ssoe);\n throw (new SMSException(SMSEntry.bundle\n .getString(\"sms-INVALID_SSO_TOKEN\"),\n \"sms-INVALID_SSO_TOKEN\"));\n }\n // Remove assigned services\n HashSet answer = new HashSet(orgSchemaServiceNames);\n answer.removeAll(getAssignedServices());\n return (answer);\n }",
"public void deleteService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().error(\" unable to deleteService(). No id selected\");\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" deleteService(\" + id + \")\");\r\n\t \t\t\tConnectionFactory.createConnection().deleteservice(editService.getId());\r\n\t \t\t}\r\n \t\t\tthis.getServiceList().populateServiceListFromDB();\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }",
"String getServiceId();",
"public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }",
"@Override\n\tpublic int deleteCallServiceByIds(String s) {\n\t\tList ids = new ArrayList();\n\t\tCollections.addAll(ids, s.split(\",\"));\n\t\treturn dgCallServiceMapper.deleteIds(ids);\n\t}",
"private List getServicesHistory(String xmlResponse) {\r\n\r\n\t\tList serviceList = new ArrayList();\r\n\t\t\r\n\t\tServiceVO activeService;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tElement root;\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement element = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\telement = DOMUtils.getElement(element, \"contract\", true);\r\n\t\t\t\r\n\t\t\tNodeList serviceNodeList = DOMUtils.getElements(element, \"service\");\r\n\t\t\tElement subElement;\r\n\t\t\tfor (int i = 0; i < serviceNodeList.getLength(); i++) {\r\n\t\t\t\telement = (Element) serviceNodeList.item(i);\r\n\t\t\t\tactiveService = new ServiceVO();\r\n\t\t\t\t//sets the sncode\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"code\", true);\r\n\t\t\t\tactiveService.setSnCode(DOMUtils.getText(subElement).toString());\r\n\t\t\t\t//sets the description\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"desc\", true);\r\n\t\t\t\tactiveService.setDescription(DOMUtils.getText(subElement).toString());\r\n\t\t\t\t//sets the service history\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"contract-svc\", true);\r\n\t\t\t\tsubElement = DOMUtils.getElement(subElement, \"status-hist\", true);\r\n\t\t\t\tactiveService.setServiceHistory(getServiceHistory(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t//sets the service activation\r\n\t\t\t\tactiveService.setServiceActivation(getActivationDate(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t//sets the service status\r\n\t\t\t\tactiveService.setStatus(getServiceCurrentStatus(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t\r\n\t\t\t\tserviceList.add(activeService);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\r\n\t\t\r\n\t\treturn serviceList;\t\t\t\t\t\t\r\n\t\t\r\n\t}",
"public ArrayList<ServiceModel> getServiceModel(int idService) {\n ArrayList<ServiceModel> listService = new ArrayList<>();\n Cursor cursor;\n if (idService > 0)\n cursor = db.rawQuery(\"select *\"\n + \" from \" + DBSQLite.TABLE_SERVICE\n + \" where \" + DBSQLite.KEY_SERVICE_ID + \"=\" + idService, null);\n else\n cursor = db.rawQuery(\"select * from \" + DBSQLite.TABLE_SERVICE, null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n ServiceModel serviceModel = obtainServiceModelCursor(cursor);\n serviceModel.setServicePrice(serviceServicePrice.getServicePriceModel(serviceModel.getId()));\n\n listService.add(serviceModel);\n cursor.moveToNext();\n }\n }\n return listService;\n }",
"private void mergeServices(JsonObject originService, JsonObject targetService, JsonObject tree) {\n mergeAnnotations(originService, targetService, tree);\n List<JsonObject> targetServices = new ArrayList<>();\n\n for (JsonElement targetItem : targetService.getAsJsonArray(\"resources\")) {\n JsonObject targetResource = targetItem.getAsJsonObject();\n boolean matched = false;\n for (JsonElement originItem : originService.getAsJsonArray(\"resources\")) {\n JsonObject originResource = originItem.getAsJsonObject();\n if (matchResource(originResource, targetResource)) {\n matched = true;\n mergeAnnotations(originResource, targetResource, tree);\n }\n }\n\n if (!matched) {\n targetResource.getAsJsonObject(\"body\").add(\"statements\", new JsonArray());\n targetServices.add(targetResource);\n }\n }\n\n targetServices.forEach(resource -> {\n int startIndex = FormattingSourceGen.getStartPosition(originService, \"resources\", -1);\n FormattingSourceGen.reconcileWS(resource, originService.getAsJsonArray(\"resources\"), tree,\n startIndex);\n originService.getAsJsonArray(\"resources\").add(resource);\n });\n }",
"public void serviceAdded(String serviceID, Remote service, List<?> itemList);",
"public List<Agent> findAgentsInService(String serviceCode) {\n Query q = getEntityManager().createQuery(\"select A from Agent A WHERE A.etat NOT IN('RET','DEM') AND A.lastService=?1 ORDER BY A.personne.name\");\n q.setParameter(1, serviceCode);\n List<Agent> list = q.getResultList();\n return list;\n }",
"public Services() {\n this.indexes = new ArrayList<Integer>();\n// this.indexes.add(ServiceTypes.NOSERVICES.getValue());\n this.services = new ArrayList<String>();\n// this.services.add(ServiceTypes.NOSERVICES.getKey());\n }",
"private void parseData(String data) {\n String[] item = data.split(\";\");\n for(int i = 0; i < item.length; i++) {\n String[] property = item[i].split(\",\");\n MAC_Addresses.add(property[0]);\n }\n }",
"@Override\n public void doService(AdaptrisMessage msg) throws ServiceException {\n String serviceKey = createServiceKey(msg);\n String nextServiceId = valueMatcher.getNextServiceId(serviceKey, getMetadataToServiceIdMappings());\n\n if (nextServiceId == null) {\n if (isEmpty(getDefaultServiceId())) {\n throw new ServiceException(\"no ServiceId configured against key [\" + serviceKey + \"] and no default ServiceId configured\");\n }\n nextServiceId = getDefaultServiceId();\n log.debug(\"Using default ServiceId : {}\", getDefaultServiceId());\n }\n msg.setNextServiceId(nextServiceId);\n // logging is in BranchingServiceCollection\n }",
"@Test\n\tpublic void testSuppServices() {\n\t\tList<SuppServices> suppServices = suppServicesService.selectList();\n\n\t\tfor (SuppServices supp : suppServices) {\n\n\t\t\tSystem.out.println(supp);\n\t\t}\n\t}",
"@JsonIgnore public Collection<String> getMealServices() {\n final Object current = myData.get(\"mealService\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<String>) current;\n }\n return Arrays.asList((String) current);\n }",
"@Override\n protected ServiceWrapper doInBackground(ServiceWrapper... params) {\n ServiceWrapper serviceWrapper = null;\n\n for (ServiceWrapper tag : params) {\n saveService(tag, commonPersonObjectClient.entityId(), providerId, null);\n //list.add(tag);\n //serviceId=tag.getServiceType().getId()+\"\";\n //tag.getDbKey();\n ServiceSchedule.updateOfflineAlerts(tag.getType(), commonPersonObjectClient.entityId(), Utils.dobToDateTime(commonPersonObjectClient));\n serviceWrapper = tag;\n }\n return serviceWrapper;\n\n// RecurringServiceRecordRepository recurringServiceRecordRepository = ImmunizationLibrary.getInstance().recurringServiceRecordRepository();\n// List<ServiceRecord> serviceRecordList = recurringServiceRecordRepository.findByEntityId(commonPersonObjectClient.entityId());\n//\n// RecurringServiceTypeRepository recurringServiceTypeRepository = ImmunizationLibrary.getInstance().recurringServiceTypeRepository();\n// List<ServiceType> serviceTypes = recurringServiceTypeRepository.fetchAll();\n// String[] alertArray = VaccinateActionUtils.allAlertNames(serviceTypes);\n//\n// AlertService alertService = ImmunizationLibrary.getInstance().context().alertService();\n// List<Alert> alertList = alertService.findByEntityIdAndAlertNames(commonPersonObjectClient.entityId(), alertArray);\n//\n// return Triple.of(list, serviceRecordList, alertList);\n\n }",
"private void setService(Service service) {\n this.service = service;\n }",
"public void setServiceValue(YangString serviceValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n serviceValue,\n childrenNames());\n }",
"public void setServiceValue(YangString serviceValue) throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n serviceValue,\n childrenNames());\n }",
"public List findWorkItemIdByServiceID(String APP_ID, String userId) throws Exception {\n\t\tWorkFlowDataStauts workFlowDataStauts=new WorkFlowDataStauts();\n\t\tString sql = \" SELECT tw.workitem_id,tw.m_id,tw.process_def_id,ta.activity_def_id \"\n\t\t\t\t\t+ \" FROM t_relevant_data td \"\n\t\t\t\t\t\n\t\t\t\t\t+ \" LEFT join t_workitem tw \"\n\t\t\t\t\t+ \" ON td.process_ins_id=tw.process_ins_id \"\n\t\t\t\t\t\n\t\t\t\t\t+ \" LEFT join t_activity_ins ta \"\n\t\t\t\t\t+ \" ON tw.activity_ins_id=ta.activity_ins_id \" \n\t\t\t\t\t\n\t\t\t\t\t+ \" WHERE td.data_value=? and tw.participant=?\";\n\t\t\t\tSqlRowSet temSet =jdbcTemplate.queryForRowSet(sql, new Object[] { APP_ID, userId });\n\t\t\t\tif (temSet!=null) {\n\t\t\t\t\tif (temSet.next()) {\n\t\t\t\t\t\tif (temSet.getString(\"workitem_id\")!=null) {\n\t\t\t\t\t\t\tworkFlowDataStauts.setPreWorkItemId(temSet.getString(\"workitem_id\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (temSet.getString(\"m_id\")!=null) {\n\t\t\t\t\t\t\tworkFlowDataStauts.setMid(temSet.getString(\"m_id\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (temSet.getString(\"process_def_id\")!=null) {\n\t\t\t\t\t\t\tworkFlowDataStauts.setProcessDefId(temSet.getString(\"process_def_id\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (temSet.getString(\"activity_def_id\")!=null) {\n\t\t\t\t\t\t\tworkFlowDataStauts.setActivityDefId(temSet.getString(\"activity_def_id\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t/**\n\t\t * 获取前驱状态\n\t\t */\n\t\tList list=\tWorkFlowUtil.findBranchByActivity(workFlowDataStauts);\n\t\treturn list;\n\t}",
"static String convertOfficeFromService(String service){\n String office = String.valueOf(service.charAt(3));\n\n switch (office) {\n case \"A\":\n office = \"1.0\";\n break;\n case \"B\":\n office = \"2.0\";\n break;\n case \"C\":\n office = \"3.0\";\n break;\n case \"D\":\n office = \"4.0\";\n break;\n }\n\n return office;\n }",
"ServiceOrder(String carVIN, String serviceDesc, String serviceDate, String partsUsed, int techID, int dealershipID, double partsCost, double totalCost, double laborHours){\n serviceNumber++;\n this.serviceDate = serviceDate;\n this.carVIN = carVIN;\n this.serviceDesc = serviceDesc;\n this.partsUsed = partsUsed;\n this.techID = techID;\n this.dealershipID = dealershipID;\n this.partsCost = partsCost;\n this.totalCost = totalCost;\n this.laborHours = laborHours;\n }",
"public List<String> retrieveServicesOfOrder(String orderID) {\r\n\t\tlogger.info(\"will retrieve ActiveServiceOfExternalPartners\" );\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICE_BY_ORDERID, orderID );\r\n\r\n\t\t\tlogger.debug(\"will retrieve ServicesOfOrder response: \" + response.getClass() );\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"List object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tString[] sor = toJsonObj( (String)response, String[].class ); \r\n\t\t\tlogger.debug(\"ServicesOfOrder response is: \" + response);\r\n\t\t\t\r\n\t\t\treturn Arrays.asList(sor);\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Listof ServicesOfOrder . \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<ServiceData> getServiceData(ServiceRequest sreq) throws ServiceException {\n return namingService.getServiceData(sreq);\n }",
"public void addService(String serviceName, CheckBox dateOfBirth, CheckBox address, CheckBox typeOfLicense,\n CheckBox proofOfResidence, CheckBox proofOfStatus, CheckBox proofOfPhoto, double servicePrice) {\n DatabaseReference dR;\n dR = FirebaseDatabase.getInstance().getReference(\"ServiceRequests\");\n\n Service serviceRequest = new ServiceCategories(serviceName, dateOfBirth.isChecked(), address.isChecked(),\n typeOfLicense.isChecked(), proofOfResidence.isChecked(), proofOfStatus.isChecked(),\n proofOfPhoto.isChecked(), servicePrice);\n dR.child(serviceName).setValue(serviceRequest);\n\n }",
"public void updateEditService(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tint serviceId = Integer.parseInt(params.get(\"serviceId\"));\r\n\t\tthis.getLog().info(\"serviceId:\" + serviceId);\r\n\t\t\r\n\t\tif(serviceId == 0){\r\n\t\t\teditService = new ServiceDTO();\r\n\t\t}else{\r\n\t\t\tfor (ServiceDTO s : this.getServiceList().getAvailableServiceList()) {\r\n\t\t\t\tif(s.getId() == serviceId){\r\n\t\t\t\t\teditService = s;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }",
"public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }",
"public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }",
"@AutoEscape\n\tpublic String getIdPtoServicio();",
"public interface SerService {\n\n List<SService> findwithPageInfo(Integer pageNo, Integer pageSize);\n\n PageInfo<SService> getPageInfo(Integer pageSize);\n\n SService findById(Integer id);\n\n void modi(SService sService);\n\n void add(SService sService, String samePasswd);\n\n void setStateS(Integer id);\n\n void delS(Integer id);\n\n\n List<SService> findS(String osUsername, String unixHost, String status, Integer accountId);\n\n void updateCost(SService sService);\n}",
"public void updateServiceNameList(){\n for(String key: serviceList.keySet()){\n serviceNameList.put(key, serviceList.get(key).getServiceName());\n }\n }",
"private static void showGroups(Service service) {\r\n\t\tList<Group> groupList = service.getGroupList();\r\n\t\tfor(int index=0;index<groupList.size();index++) {\r\n\t\t\tSystem.out.println(groupList.get(index));\r\n\t\t}\r\n\t}",
"public List<ServiceHealth> getServiceInstances(String service);",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service findServiceById(int Idservice) {\n\t\treturn serviceRepository.findOne(Idservice);\r\n\t}",
"@Transactional\n public abstract OnmsServiceType createServiceTypeIfNecessary(String serviceName);"
] | [
"0.5487799",
"0.54206705",
"0.5317089",
"0.5270241",
"0.5154535",
"0.5129795",
"0.5129795",
"0.5129795",
"0.5086941",
"0.5055299",
"0.50454307",
"0.5003394",
"0.49882248",
"0.49881265",
"0.4983649",
"0.49731606",
"0.49670827",
"0.49668252",
"0.4938548",
"0.49261904",
"0.49232772",
"0.48908994",
"0.4889619",
"0.4889176",
"0.48739633",
"0.4873959",
"0.4835846",
"0.48335913",
"0.48296842",
"0.4822002",
"0.4821536",
"0.4810087",
"0.4793917",
"0.47854248",
"0.47808635",
"0.47732967",
"0.47728667",
"0.47716454",
"0.47708854",
"0.47621405",
"0.47588038",
"0.4750893",
"0.47507855",
"0.47348246",
"0.473246",
"0.47275105",
"0.4705842",
"0.46803916",
"0.4680191",
"0.46774748",
"0.46774748",
"0.46732965",
"0.46594825",
"0.4657927",
"0.46547574",
"0.46499258",
"0.4640039",
"0.46397594",
"0.4631744",
"0.46303448",
"0.4628521",
"0.4625982",
"0.46146038",
"0.46111974",
"0.46099827",
"0.46083498",
"0.46078652",
"0.46067908",
"0.46045676",
"0.46035376",
"0.4595099",
"0.45923644",
"0.45905912",
"0.4588281",
"0.4583332",
"0.45831525",
"0.45821097",
"0.45720208",
"0.45665514",
"0.45632482",
"0.45631373",
"0.45622706",
"0.45608428",
"0.45608428",
"0.45565155",
"0.45434603",
"0.4540372",
"0.4522142",
"0.45196348",
"0.45176736",
"0.45143083",
"0.45136145",
"0.45136145",
"0.45136145",
"0.4513492",
"0.45116484",
"0.44982675",
"0.44918823",
"0.44824544",
"0.44808868",
"0.44785047"
] | 0.0 | -1 |
/change color on "read" item name, time read /on notification read color will be back to normal using read flag | @Override
public void onBackPressed() {
databaseReference.addValueEventListener(new ValueEventListener() {
com.dineout.code.admin.NotificationClass notification;
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
for (DataSnapshot dsp : dataSnapshot.getChildren()) {
notification = dsp.getValue(com.dineout.code.admin.NotificationClass.class);
if (notification != null) {
databaseReference.child(dsp.getKey()).child("read").setValue(true);
}
}
notificationsAdapter = new com.dineout.code.admin.NotificationsAdapter(getBaseContext(), notifications);
rvNotifications.setAdapter(notificationsAdapter);
databaseReference.removeEventListener(this);
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError) {
Log.d("Database Error: ", databaseError.toString());
}
});
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateTextColor() {\n if (mLauncher == null) {\n return;\n }\n ItemInfo info = (ItemInfo) getTag();\n if (info == null || mSupportCard) {\n return;\n }\n int color = getDyncTitleColor(info);\n mIconTitleColor = color;\n setPaintShadowLayer(color);\n if (getPaint().getColor() != color) {\n setTextColor(color);\n }\n\n }",
"public void setRead(){\n \tthis.isRead = true;\n }",
"private void chatRead() {\n\n mBinding.RLProgressContainer.setVisibility(View.INVISIBLE);\n mBinding.RLSendOptionsContainer.setVisibility(View.VISIBLE);\n\n\n mBinding.IVMessageSentStatus.setImageDrawable(CommonUtils.getDrawable(context, R.drawable.ic_tick_received));\n\n }",
"public void setRead(boolean read)\n\t{\n\t\tthis.read = read;\n\t}",
"@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\tString color = chc.getSelectedItem();\r\n\t\tif (color == \"Yellow\") {\r\n\t\t\tfrm.setBackground(Color.yellow);\r\n\t\t} else if (color == \"Orange\") {\r\n\t\t\tfrm.setBackground(Color.orange);\r\n\t\t} else if (color == \"Pink\") {\r\n\t\t\tfrm.setBackground(Color.pink);\r\n\t\t} else if (color == \"Cyan\") {\r\n\t\t\tfrm.setBackground(Color.cyan);\r\n\t\t}\r\n\t\tfrm.setTitle(\"you selected \" + color);\r\n\t}",
"@Override\n\tpublic void itemStateChanged(ItemEvent ie) {\n\t\tif (ie.getSource() == liColor) {\n\t\t\tString color = liColor.getSelectedItem();\n\t\t\tSystem.out.println(color);\n\t\t\tif (color == \"Red\") {\n\t\t\t\tpLeft.setBackground(Color.RED);\n\t\t\t\tsetBackground(Color.RED);\n\t\t\t\tpButton.setBackground(Color.RED);\n\t\t\t}\n\t\t\telse if (color == \"Green\") {\n\t\t\t\tpLeft.setBackground(Color.GREEN);\n\t\t\t\tsetBackground(Color.GREEN);\n\t\t\t\tpButton.setBackground(Color.GREEN);\n\t\t\t}\n\t\t\telse if (color == \"Gray\") {\n\t\t\t\tpLeft.setBackground(Color.gray);\n\t\t\t\tsetBackground(Color.gray);\n\t\t\t\tpButton.setBackground(Color.gray);\n\t\t\t}\n\t\t\telse if (color == \"Black\") {\n\t\t\t\tpLeft.setBackground(Color.black);\n\t\t\t\tsetBackground(Color.black);\n\t\t\t\tpButton.setBackground(Color.black);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public void setIsRead(boolean isRead) {\n mIsRead = isRead;\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String item = parent.getItemAtPosition(position).toString();\n switch (item.toLowerCase()){\n case \"red\":\n tdate.setTextColor(Color.parseColor(\"#FF5722\"));\n break;\n case \"blue\":\n tdate.setTextColor(Color.parseColor(\"#82B1FF\"));\n break;\n case \"green\":\n tdate.setTextColor(Color.parseColor(\"#A5D6A7\"));\n break;\n case \"yellow\":\n tdate.setTextColor(Color.parseColor(\"#FFEB3B\"));\n break;\n case \"orange\":\n tdate.setTextColor(Color.parseColor(\"#FFB74D\"));\n break;\n }\n }",
"public static void markAllAsRead(Context context, int type) {\n\t\tContentValues values = new ContentValues();\n values.put(RecordlistTable.READ, 1);\n\t\tString where = \" TYPE = \" + type;\n\t\tcontext.getContentResolver().update(RECORDLIST_URI, values, where, null);\n\t}",
"private void showReadItem(Message message, SimpleDraweeView imageView, TextView textView, int position) {\n imageView.setVisibility(message.getReadTotal() > 0 ? View.VISIBLE : View.INVISIBLE);\n if (!isPrivateRoom) {\n textView.setVisibility(message.getReadTotal() > 0 ? View.VISIBLE : View.INVISIBLE);\n textView.setText(String.valueOf(message.getReadTotal()));\n }\n }",
"@Override\n\tpublic void itemStateChanged(ItemEvent evt) {\n\t\tColor levelColor = null;\n\t\tCardLayout cl = (CardLayout) pnlLevelSwitch.getLayout();\n\t\tcl.show(pnlLevelSwitch, (String) evt.getItem());\n\t\t\n\t\tString string = (String) evt.getItem();\n\t\t\n\t\tif(string.equals(\"Puzzle\")){\n\t\t\tlevelColor = new Color(102,255,102);\n\t\t}\n\t\telse if(string.equals(\"Lightning\")){\n\t\t\tlevelColor = Color.ORANGE;\n\t\t}\n\t\telse if(string.equals(\"Theme\")){\n\t\t\tlevelColor = Color.PINK;\n\t\t}\n\t\tthis.setBackground(levelColor);\n\n\t}",
"private void formatNavDrawerItem(boolean selected,ViewHolder holder) {\n holder.txtViewTitle.setTextColor(selected ?\n context.getResources().getColor(R.color.dark_dvs) :\n context.getResources().getColor(R.color.navdrawer_text_color));\n if(false){\n holder.imgViewLogo.setColorFilter(selected ?\n context.getResources().getColor(R.color.purple_500) :\n context.getResources().getColor(R.color.transparent));\n }\n }",
"public void setReadState(NewsData data,Long userId) ;",
"public void setIsRead(Boolean isRead) {\n this.isRead = isRead;\n }",
"private void setViewpagerTitleTextColor(int item){\n\t\tif(item == 0){\n\t\t\tmain_viewpager_title_tv_hot.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_active_color));\n\t\t\tmain_viewpager_title_tv_character.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t\tmain_viewpager_title_tv_picture.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t} else if(item == 1){\n\t\t\tmain_viewpager_title_tv_hot.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t\tmain_viewpager_title_tv_character.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_active_color));\n\t\t\tmain_viewpager_title_tv_picture.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t} else if(item == 2){\n\t\t\tmain_viewpager_title_tv_hot.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t\tmain_viewpager_title_tv_character.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_inactive_color));\n\t\t\tmain_viewpager_title_tv_picture.setTextColor(getResources().getColor(R.color.main_viewpager_title_tv_active_color));\n\t\t}\n\t}",
"@Override\n\tpublic String getColor() {\n\t\treturn \"red\";\n\t}",
"void changeMenuItemName(String itemName, byte type, String msgPlus);",
"public boolean setMessageIsReadStatus( long messageId );",
"public void setColored() {\n\t\tmenuItemViewColored.setFillColor(new MTColor(255, 255, 255, 255));\n\t\tthis.arrow.setBright();\n\t\tcolored = true;\n\t}",
"@Override\n public void changeColor(ColorEvent ce) {\n \n txtRed.setText(\"\"+ ce.getColor().getRed());\n txtGreen.setText(\"\"+ ce.getColor().getGreen());\n txtBlue.setText(\"\"+ ce.getColor().getBlue());\n \n \n }",
"public int getCommonReadStatus(){\n List<BMessageReceipt> readReceipts;\n resetBMessageReceiptList();\n readReceipts = getBMessageReceiptList();\n\n Boolean delivered = false;\n Boolean read = false;\n\n for ( BMessageReceipt readReceipt : readReceipts) {\n switch (readReceipt.getReadStatus()) {\n case none:\n return none;\n case BMessageReceiptEntity.ReadStatus.delivered:\n delivered = true;\n break;\n case BMessageReceiptEntity.ReadStatus.read:\n read = true;\n break;\n }\n }\n// if(!read){\n// BNetworkManager.sharedManager().getNetworkAdapter().readReceiptsOnFromUI(this);\n// }\n if(delivered){\n return BMessageReceiptEntity.ReadStatus.delivered;\n } else if (read) {\n return BMessageReceiptEntity.ReadStatus.read;\n } else {\n logMessage = \"Message has no readers\";\n if(DEBUG) Log.d(TAG , logMessage);\n return none;\n }\n }",
"int markMessageAsRead(String msgId, long timestampDisplayed);",
"public static void setMessageRead(Context context, long messageId, int messageType) {\r\n \t\t// SharedPreferences myPrefs = PreferenceManager.getDefaultSharedPreferences(context);\r\n \t\t// boolean markRead = myPrefs.getBoolean(\r\n \t\t// context.getString(R.string.pref_markread_key),\r\n \t\t// Boolean.valueOf(context.getString(R.string.pref_markread_default)));\r\n \t\tboolean markRead = false;\r\n \r\n \t\tif (!markRead)\r\n \t\t\treturn;\r\n \r\n \t\tif (messageId > 0) {\r\n \t\t\tContentValues values = new ContentValues(1);\r\n \t\t\tvalues.put(\"read\", READ_THREAD);\r\n \r\n \t\t\tUri messageUri;\r\n \r\n \t\t\tif (SmsMmsMessage.MESSAGE_TYPE_MMS == messageType) {\r\n \t\t\t\tmessageUri = Uri.withAppendedPath(MMS_CONTENT_URI, String.valueOf(messageId));\r\n \t\t\t} else if (SmsMmsMessage.MESSAGE_TYPE_SMS == messageType) {\r\n \t\t\t\tmessageUri = Uri.withAppendedPath(SMS_CONTENT_URI, String.valueOf(messageId));\r\n \t\t\t} else {\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \r\n \t\t\t// Log.v(\"messageUri for marking message read: \" +\r\n \t\t\t// messageUri.toString());\r\n \r\n \t\t\tContentResolver cr = context.getContentResolver();\r\n //\t\t\tint result = 0;\r\n \t\t\ttry {\r\n //\t\t\t\tresult = cr.update(messageUri, values, null, null);\r\n \t\t\t\tcr.update(messageUri, values, null, null);\r\n \t\t\t} catch (Exception e) {\r\n \t\t\t\t// Log.v(\"error marking message read\");\r\n \t\t\t}\r\n \t\t\t// Log.v(\"message id \" + messageId + \" marked as read, result = \" +\r\n \t\t\t// result);\r\n \t\t}\r\n \t}",
"private void toggleRead(Set<Long> selectedSet) {\n toggleMultiple(selectedSet, new MultiToggleHelper() {\n\n @Override\n public boolean getField(Cursor c) {\n return c.getInt(MessagesAdapter.COLUMN_READ) == 0;\n }\n\n @Override\n public void setField(long messageId, boolean newValue) {\n mController.setMessageReadSync(messageId, !newValue);\n }\n });\n }",
"public void read() {\n\t\tthis.isRead = true;\n\t}",
"void setRed(int red){\n \n this.red = red;\n }",
"@Override\n public String getType() {\n return \"Color change\";\n }",
"@FXML\n public void highlightAboutUs()\n {\n aboutUsButton.setOnMouseEntered(mouseEvent -> aboutUsButton.setTextFill(Color.valueOf(\"#FFD700\")));\n }",
"protected void changeColor(View view, int position, String key, Boolean twoColors){\n int color = AppCSTR.TRANS;\n Drawable background = view.getBackground();\n\n if(background instanceof ColorDrawable)\n color = ((ColorDrawable) background).getColor();\n\n if(color == AppCSTR.GREEN){\n if(twoColors)\n view.setBackgroundColor(AppCSTR.TRANS);\n else {\n view.setBackgroundColor(AppCSTR.RED);\n redIDs.add(getList().get(position).get(key));\n }\n greenIDs.remove(getList().get(position).get(key));\n }else if(color == AppCSTR.RED){\n view.setBackgroundColor(AppCSTR.TRANS);\n redIDs.remove(getList().get(position).get(key));\n }else{\n view.setBackgroundColor(AppCSTR.GREEN);\n greenIDs.add(getList().get(position).get(key));\n }\n }",
"private String getColour(Reminder reminder) {\r\n // Get the full hashmap of colours\r\n ReminderColours colours = new ReminderColours(this.preferences);\r\n\r\n String colour = colours.tagColours.get(\"general\");\r\n // Iterate over reminder tags to determine first suitable candidate\r\n for (int i = 0; i < reminder.tags.size(); i++) {\r\n String tag = reminder.tags.get(i);\r\n // The hashmap contains that colour\r\n if (colours.tagColours.containsKey(tag)) {\r\n colour = colours.tagColours.get(tag);\r\n break;\r\n }\r\n }\r\n\r\n return colour;\r\n }",
"@Override\n public void onItemPicked(int index, String item) {\n buttonselect3.setText(item);\n buttonselect3.setTextColor(Color.YELLOW);\n ((TextView)findViewById(R.id.confitstate3)).setText(\"待配置\");\n }",
"@Override\n public void onColorChosen(@ColorInt int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n\n Note note = notes.get(position);\n\n Note newNote = new Note(note.getNoteTitle(), note.getNoteContent(), r, g, b);\n replaceNote(position, newNote);\n\n cp.dismiss();\n }",
"public void itemStateChanged(ItemEvent event) {\n\t\t\t if (event.getStateChange() == ItemEvent.SELECTED) {\n\t\t Object item = event.getItem(); // daragdsan object turliig awna \n\t\t System.out.println(\"daragdsan :\"+item);\n\t\t String s=(String)item;\n\t\t \n\t\t if(item.equals(\"gray\")){\n\t\t \t p1.setBackground(Color.GRAY);\n\t\t }\n\t\t if(item.equals(\"white\")){\n\t\t \t p1.setBackground(Color.white);\n\t\t }\n\t\t if(item.equals(\"green\")){\n\t\t \t p1.setBackground(Color.green);\n\t\t }\n\t\t if(item.equals(\"black\")){\n\t\t \t p1.setBackground(Color.BLACK);\n\t\t }\n\t\t if(item.equals(\"blue\")){\n\t\t \t p1.setBackground(Color.blue);\n\t\t }\n\t\t if(item.equals(\"cyan\")){\n\t\t \t p1.setBackground(Color.cyan);\n\t\t }\n\t\t \n\t\t if(item.equals(\"orange\")){\n\t\t \t p1.setBackground(Color.ORANGE);\n\t\t }\n\t\t if(item.equals(\"pink\")){\n\t\t \t p1.setBackground(Color.PINK);\n\t\t }\n\t\t if(item.equals(\"red\")){\n\t\t \t p1.setBackground(Color.red);\n\t\t }\n\t\t\t } \n\t\t\t\n\t\t}",
"public void setColor(String color){\n this.color = color;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent){\n View view = super.getView(position, convertView, parent);\n\n // Initialize a TextView for ListView each Item\n TextView tv = (TextView) view.findViewById(android.R.id.text1);\n\n // Set the text color of TextView (ListView Item)\n\n if(lv.isItemChecked(position) == true){\n tv.setBackgroundColor(Color.BLUE);}\n else{tv.setBackgroundColor(Color.TRANSPARENT);}\n for(int p = 0; p < lv.getCount(); p++){\n if(lv.isItemChecked(position) == true){ tv.setBackgroundColor(Color.GREEN);}\n else{tv.setBackgroundColor(Color.TRANSPARENT);}\n }\n\n // Generate ListView Item using TextView\n return view;\n }",
"public CommonAlert unread(Boolean unread) {\n this.unread = unread;\n return this;\n }",
"private View modifyView(TextView view, int position) {\n MeshId item = this.getItem(position);\n if (item != null) {\n String text; // Text for the item in the list.\n int colour; // Colour for the text in the list.\n\n if (item.equals(deviceId)) {\n // Change text colour if is the current device's Id.\n text = \"This Device\";\n colour = R.color.blue;\n } else {\n // Otherwise, simply make the MeshId more readable and use the theme default colour.\n text = MeshHelper.getInstance().shortenMeshId(item);\n colour = android.R.color.primary_text_light;\n }\n view.setText(text);\n view.setTextColor(ContextCompat.getColor(getContext(), colour));\n }\n return view;\n }",
"void seeRed() {\n\t\tbar.setForeground(Color.RED);\n\t}",
"private void updateTextColor(TextView view, boolean isOn) {\n if (isOn) {\n view.setTextColor(Color.GREEN);\n } else {\n view.setTextColor(Color.BLACK);\n }\n }",
"@Override\n public void onColorChange(int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n Log.w(\"CameraEngineActivity\", \"R:\" + r + \" G:\" + g + \" B:\" + b);\n colorText.setBackgroundColor(color);\n }",
"public void changeColor (Color color){\n ((Label) _node).setTextFill(color);\n }",
"@Override\r\n\tpublic void adminSelectRead() {\n\t\t\r\n\t}",
"private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }",
"public Logging withRead(boolean read) {\n this.read = read;\n return this;\n }",
"private CharSequence getStyledContents(String subject, String snippet, boolean read) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n boolean hasSubject = false;\n if (!TextUtils.isEmpty(subject)) {\n SpannableString ss = new SpannableString(subject);\n ss.setSpan(new StyleSpan(read ? Typeface.NORMAL : Typeface.BOLD), 0, ss.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n ss.setSpan(new ForegroundColorSpan(sDefaultTextColor), 0, ss.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n ssb.append(ss);\n hasSubject = true;\n }\n if (!TextUtils.isEmpty(snippet)) {\n if (hasSubject) {\n ssb.append(sContentsSnippetDivider);\n }\n SpannableString ss = new SpannableString(snippet);\n ss.setSpan(new ForegroundColorSpan(sLightTextColor), 0, snippet.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n ssb.append(ss);\n }\n return addStyle(ssb, sContentsFontSize, 0);\n }",
"void updateStatusForItem(HighlightsModel item, CreatingStatus currentStatus) {\n if (item.status != null) {\n item.status.currentUriIndex = currentStatus.currentUriIndex;\n item.status.maxUris = currentStatus.maxUris;\n item.status.progress = currentStatus.progress;\n } else {\n Log.e(TAG, \"Status - Error!! status == null for uriIdx:\" + currentStatus.currentUriIndex + \", maxUris:\" + currentStatus.maxUris + \",progress:\" + currentStatus.progress);\n }\n }",
"public void setSearchNameTextFieldBackgroundColor(String color) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_searchNameTextField_propertyBackgroundColor\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_searchNameTextField_propertyBackgroundColor\", color == null ? \"\" : \"background: \" + color);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setSearchNameTextFieldBackgroundColor(\" + escapeString(color) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"private void readItems() {\n }",
"private void setThisRead()\n {\n justOpened = false;\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>()\n {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot)\n {\n if (documentSnapshot.exists() && documentSnapshot.getData().get(otherUid) != null)\n {\n ChatData thisData = new ChatData((HashMap<String, Object>) documentSnapshot.getData().get(otherUid));\n if (thisData.isRead())\n return;\n \n HashMap<String, ChatData> mapThis = new HashMap<>();\n thisData.setRead(true);\n mapThis.put(otherUid, thisData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).set(mapThis, SetOptions.merge());\n }\n }\n });\n }",
"public String getColor() { \n return color; \n }",
"@Override\n public void choiced(String result) {\n target.setText(result);\n target.setTextColor(getResources().getColor(R.color.app_color));\n }",
"public void setReadTime(Date readTime) {\n\t\tthis.readTime = readTime;\n\t}",
"public void changeColor(){\r\n if(color == 1)\r\n color = 2;\r\n else\r\n color = 1;\r\n }",
"void changeResumeButtonColor(Color color);",
"private int getStockChangeColor (String stockChange){\n float change = Float.parseFloat(stockChange);\n if (change >= 0){return Color.GREEN;}\n\n return Color.RED;\n }",
"private void setRandomColor(EmailMessage stickyNote) throws Exception {\n\t\tUUID guid = UUID.fromString(PROPERTY_DEFINITION_UUID);\n\t\tExtendedPropertyDefinition prop = new ExtendedPropertyDefinition(guid, 0x8B00,\n\t\t\t\tMapiPropertyType.Integer);\n\t\tstickyNote.setExtendedProperty(prop, (int) (Math.random() * STICKY_NOTES_COLOURS_COUNT));\n\t}",
"@Override\n\tpublic String getColor() {\n\t\treturn \"blue\";\n\t}",
"@Override\r\n public View getView(int position, View convertView, ViewGroup parent){\r\n\r\n View view = super.getView(position, convertView, parent);\r\n\r\n TextView tv = (TextView) view.findViewById(android.R.id.text1);\r\n\r\n\r\n tv.setTextColor(Color.WHITE);\r\n\r\n return view;\r\n }",
"public static void setGlobalTextColor(Context context, int color){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"textColor\", color);\n edit.apply();\n\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n for(int i = 0 ; i<list.size(); i++){\n list.get(i).setTextColor(color);\n }\n saveOutfitJSON(context, list);\n }\n }",
"public String getColor(){\n return this.color;\n }",
"public void onClickRed(View view){\n int col;\n col = 1;\n byte[] colorBytes = {(byte)Color.red(col),\n (byte)Color.green(col),\n (byte)Color.blue(col),\n 0x0A};\n //remove spurious line endings so the serial device doesn't get confused\n for (int i=0; i<colorBytes.length-1; i++){\n if (colorBytes[i] == 0x0A){\n colorBytes[i] = 0x0B;\n }\n }\n //send the color to the serial device\n if (sPort != null){\n try{\n sPort.write(colorBytes, 500);\n }\n catch (IOException e){\n Log.e(TAG, \"couldn't write color bytes to serial device\");\n }\n }\n }",
"public String getColor(){\r\n return color;\r\n }",
"@Override\n\t\t\tpublic void onRgb() {\n\t\t\t\t((ExpandableListView) parent).collapseGroup(groupPosition);\n\t\t\t\ttextMode.setText(\"RGB\");\n\t\t\t\tgroupLayLeft.setBackgroundResource(R.drawable.list_group_item_corner);\n\t\t\t\tgroupLayRight.setBackgroundResource(R.drawable.list_group_item_corner);\n\t\t\t}",
"@Override\n public void setMessageRead(Long id) {\n Message msg = messageRepository.findById(id).get();\n if(msg != null){\n msg.setRead(true);\n messageRepository.save(msg);\n }\n }",
"void onCheck(Chess.Color inCheckColor);",
"public void setTextColor(RMColor aColor) { }",
"public void setColor(String color) {\r\n this.color = color;\r\n }",
"public void setMailReadflag(int v) \n {\n \n if (this.mailReadflag != v)\n {\n this.mailReadflag = v;\n setModified(true);\n }\n \n \n }",
"public String getColorOfArticle(Document document) {\n\t\tString color = \"\";\n\t\t// Peut etre sélectionner la div \"details\" avant de chercher les p ? \n\t\tElements pElements = document.select(\"p\");\n\t\tfor (Element pElement : pElements) {\n\t\t\t// Get the name if the item\n\t\t\t// <p class=\"style protect\" itemprop=\"model\">White</p>\n\t\t\tif (pElement.attr(\"itemprop\").equals(\"model\")) {\n\t\t\t\t// get the inner text of the html tag if we are on the item name \n\t\t\t\treturn color = pElement.text(); \n\t\t\t}\n\t\t}\n\t\treturn color;\n\t}",
"private void makeChange(int color) {\n StringBuilder sb = new StringBuilder(\"C:\");\n\n sb.append(Color.red(color)).append(\",\")\n .append(Color.green(color)).append(\",\")\n .append(Color.blue(color)).append(\",\")\n .append(\"-1\\n\");\n\n sendMessage(sb.toString());\n }",
"public void setRed(final int red) {\n\t\tthis.r = red;\n\t}",
"@Override\n public void onChooseColor(int position, int color) {\n int red = Color.red(color);\n int green = Color.green(color);\n int blue = Color.blue(color);\n Log.e(\"rgb\", \"\" + red + \" \" + green + \" \" + blue);\n }",
"@Override\n public String getColor() {\n return this.color;\n }",
"public void setColor(String color){\n\t\tcolor = this.color;\n\t}",
"public void setColor(String color) {\r\n this.color = color;\r\n }",
"public String getColor(){\n return this._color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"public void setColor(String color) {\n this.color = color;\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tif(checkedId == alreadyRead.getId()){\n\t\t\t\t\treadSatuts = Sms.MESSAGE_READ;\n\t\t\t\t}else if(checkedId == unRead.getId()){\n\t\t\t\t\treadSatuts = Sms.MESSAGE_UNREAD;\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic String updateReadMsg(long id,CustomerUser user) throws Exception {\n\t\tCustomerMessage entity = msgDao.queryById(id);\n\t\tentity.setStatus(CommonUtil.MSG_STATUS_READ);\n\t\tentity.updateInit(user.getCustomerName());\n\t\tmsgDao.update(entity);\n\t\treturn \"success\";\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View view = super.getView(position, convertView, parent);\n\n // Initialize a TextView for ListView each Item\n TextView tv = (TextView) view.findViewById(android.R.id.text1);\n\n // Set the text color of TextView (ListView Item)\n tv.setTextColor(Color.BLACK);\n\n // Generate ListView Item using TextView\n return view;\n }",
"public void updateUnreadLabel() {\n int count = getUnreadMsgCountTotal();\n if (count > 0) {\n// unreadLabel.setText(String.valueOf(count));\n// unreadLabel.setVisibility(View.VISIBLE);\n mTab.showBadgeAtIndex(1, count, getResources().getColor(R.color.red));\n } else {\n// unreadLabel.setVisibility(View.INVISIBLE);\n }\n }",
"@Override\n\tprotected void updateItem(String item, boolean empty) {\n\t\t// 95 % of the cases you firstly should call the super.updateItem\n\t\t// If you don't call it, or it is called later, the behaviour of the cell maybe won't be as expected\n\t\tsuper.updateItem(item, empty);\n\t\tUser user = (User) getTableRow().getItem();\n\t\t// In the most of the cases you have to do the following check because you cannot ensure that the cell won't be\n\t\t// empty or the containing element is not null.\n\t\tif (empty || user == null) {\n\t\t\tsetText(null);\n\t\t\tsetGraphic(null);\n\t\t\tsetStyle(null);\n\t\t\treturn;\n\t\t}\n\n\t\t// Some random action that you can do with the cell.\n\t\tif (user.getId() % 3 == 0) {\n\t\t\tsetStyle(\"-fx-background-color: red\");\n\t\t} else if (user.getId() % 3 == 1) {\n\t\t\tsetStyle(\"-fx-background-color: green\");\n\t\t} else {\n\t\t\tsetStyle(\"-fx-background-color: blue\");\n\t\t}\n\t}",
"private void setColor(final boolean Success) {\n\n handler.post(new Runnable() {\n @Override\n public void run() {\n TextView tv = (TextView) rootView.findViewById(R.id.header);\n if (Success) {\n tv.setBackgroundColor(Color.GREEN);\n tv.setText(R.string.WifiStaticArp_ON);\n } else {\n tv.setBackgroundColor(Color.RED);\n tv.setText(R.string.WifiStaticArp_OFF);\n }\n }\n });\n }",
"boolean getForRead();",
"private void updateMenuItemIconColor(Menu menu, int itemId, int color) {\n MenuItem menuItem = menu.findItem(itemId);\n if (menuItem != null) {\n Drawable menuItemIcon = menuItem.getIcon();\n if (menuItemIcon != null) {\n try {\n menuItemIcon.mutate();\n menuItemIcon.setColorFilter(color, PorterDuff.Mode.SRC_ATOP);\n menuItem.setIcon(menuItemIcon);\n } catch (Exception e) {\n }\n }\n }\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n String exOther = exClass.getExampleOther(position);\n holder.itemName.setText(exClass.getExampleName(position));\n holder.itemOther.setText(exOther);\n switch (exOther) {\n case \"Recommendation\":\n holder.listLayout.setBackgroundResource(R.color.recommendation_color);\n break;\n case \"Red\":\n holder.listLayout.setBackgroundColor(Color.RED);\n break;\n default:\n holder.listLayout.setBackgroundColor(Color.WHITE);\n break;\n }\n }",
"@Override\n\t\tpublic void onDescriptorRead(BluetoothGatt gatt,\n\t\t\t\tBluetoothGattDescriptor descriptor, int status) {\n\t\t\tLog.w(TAG, \"onCharacteristicRead Status: \" + status);\t\n\t\t}",
"public void setReadTime(Date readTime) {\n this.readTime = readTime;\n }",
"void toggleStyle(XYChart.Series<Number, Number> temp)\n {\n if (temp.getData().size() > 0)\n {\n Node n = temp.getData().get(0).getNode();\n try\n {\n for (int i = 0; i < 3; i++)\n {\n n.getStyleClass().add(\"bulge-symbol-sending\");\n n.getStyleClass().add(\"bulge-symbol-sending\");\n Thread.currentThread().sleep(150);\n n.getStyleClass().add(\"bulge-symbol-receiving\");\n n.getStyleClass().add(\"bulge-symbol-receiving\");\n Thread.currentThread().sleep(100);\n }\n }\n catch (Exception e)\n {\n\n }\n }\n }",
"public RMColor getTextColor() { return RMColor.black; }",
"public boolean isRead(){\n \treturn isRead;\n }",
"@Override\n public void onColorSelected(String color) {\n Toast.makeText(MainActivity.this, \"Selected Color HeX:\" + color, Toast.LENGTH_SHORT).show();\n }",
"private void setPriorityColor(TextView title, int priority) {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext);\n\t\tResources res = mContext.getResources();\n\t\t\n\t\tswitch(priority) {\n\t\tcase ItemDbAdapter.PRIORITY_HIGH:\n\t\t\ttitle.setTextColor(prefs.getInt(\"highColor\", res.getColor(R.color.high_priority)));\n\t\t\tbreak;\n\t\tcase ItemDbAdapter.PRIORITY_NORMAL:\n\t\t\ttitle.setTextColor(prefs.getInt(\"normColor\", res.getColor(R.color.norm_priority)));\n\t\t\tbreak;\n\t\tcase ItemDbAdapter.PRIORITY_LOW:\n\t\t\ttitle.setTextColor(prefs.getInt(\"lowColor\", res.getColor(R.color.low_priority)));\n\t\t\tbreak;\n\t\t}\n\t}",
"public void stateChanged(ChangeEvent e) {\n\t\tif (!_receive) {\r\n\t\t\t// jesli nastapila zmiana na suwaku nastepuej odczyt wart z\r\n\t\t\t// wszystkich suwakow, utworzenie koloru i umieszczenie go w kolejce\r\n\t\t\tColor col = new Color(canvas.getBackground().getRed(), canvas.getBackground().getGreen(),\r\n\t\t\t\t\tcanvas.getBackground().getBlue());\r\n\t\t\tColorQueue.getInstance().putColor(col);\r\n\t\t}\r\n\r\n\t}",
"@Override\n\t\tpublic void setReadListener(ReadListener arg0) {\n\t\t\t\n\t\t}",
"public interface OnBluetoothReadListener {\n\t\tvoid onRead(byte[] status);\n\t}"
] | [
"0.590944",
"0.57488084",
"0.5664485",
"0.563209",
"0.5524987",
"0.5494769",
"0.543124",
"0.54305947",
"0.5371686",
"0.5346938",
"0.52966326",
"0.529276",
"0.5235452",
"0.5227482",
"0.5219421",
"0.5218877",
"0.5203313",
"0.5196161",
"0.5193837",
"0.5186806",
"0.51500404",
"0.51467085",
"0.51373994",
"0.51057214",
"0.5102919",
"0.5098499",
"0.50970453",
"0.5047749",
"0.50291336",
"0.50231564",
"0.5014072",
"0.5013821",
"0.5013098",
"0.49583742",
"0.4945093",
"0.49443203",
"0.49389985",
"0.4935794",
"0.4934958",
"0.4932057",
"0.49307096",
"0.49282363",
"0.49272326",
"0.49205714",
"0.4910781",
"0.4905409",
"0.4901841",
"0.4900642",
"0.48971602",
"0.489474",
"0.4893614",
"0.4889967",
"0.48857227",
"0.4884045",
"0.48836672",
"0.4872169",
"0.4871192",
"0.48681176",
"0.48613796",
"0.48609275",
"0.4860331",
"0.48592982",
"0.485904",
"0.48584965",
"0.4855972",
"0.48549306",
"0.4853457",
"0.48451957",
"0.484491",
"0.48428664",
"0.4838371",
"0.4836357",
"0.48348403",
"0.48328978",
"0.4828913",
"0.48250586",
"0.48249316",
"0.48249316",
"0.48249316",
"0.48249316",
"0.48249316",
"0.48249316",
"0.48241615",
"0.4821691",
"0.481587",
"0.48084572",
"0.48058948",
"0.48046684",
"0.48011318",
"0.48008695",
"0.4800713",
"0.47968993",
"0.47963",
"0.4793687",
"0.479263",
"0.47897086",
"0.47877273",
"0.47856572",
"0.4781352",
"0.47772616",
"0.4775033"
] | 0.0 | -1 |
Fall back to class name as cache key, for backwards compatibility with custom callers. | private InjectionMetadata findReferenceMetadata(String beanName, Class<?> clazz, PropertyValues pvs) {
String cacheKey = (StringUtils.hasLength(beanName) ? beanName : clazz.getName());
// Quick check on the concurrent map first, with minimal locking.
ReferenceInjectionMetadata metadata = this.injectionMetadataCache.get(cacheKey);
if (InjectionMetadata.needsRefresh(metadata, clazz)) {
synchronized (this.injectionMetadataCache) {
metadata = this.injectionMetadataCache.get(cacheKey);
if (InjectionMetadata.needsRefresh(metadata, clazz)) {
if (metadata != null) {
metadata.clear(pvs);
}
try {
metadata = buildReferenceMetadata(clazz);
this.injectionMetadataCache.put(cacheKey, metadata);
} catch (NoClassDefFoundError err) {
throw new IllegalStateException("Failed to introspect bean class [" + clazz.getName() +
"] for reference metadata: could not find class that it depends on", err);
}
}
}
}
return metadata;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getClassNameKey() {\n\t\treturn CLASS_NAME_KEY;\n\t}",
"public static String getCacheClassName( ) {\n return CACHE_CLASS_NAME;\n }",
"default String getKey() {\n return key(getClassName(), getName());\n }",
"protected abstract CacheKey getCacheKey(CacheKey cacheKey);",
"@Override\n\tprotected String getCacheKeyPrefix() {\n\t\treturn super.getCacheKeyPrefix();\n\t}",
"protected String getKeymapName() {\n String nm = getClass().getName();\n int index = nm.lastIndexOf('.');\n if (index >= 0) {\n nm = nm.substring(index+1);\n }\n return nm;\n }",
"public String getCacheClassName() {\n return cacheClassName;\n }",
"@Override\n\tprotected String getCacheKey() {\n\t\treturn TAG;\n\t}",
"public String getCacheKey() {\r\n\t\treturn cacheKey;\r\n\t}",
"public String getClassLabel(String key);",
"@Override\n\tprotected Object getCacheKey(String viewName, Locale locale) {\n\t\treturn viewName;\n\t}",
"public Class<?> getKeyClass() \n\t{\n\t return keyClass ;\n\t}",
"@Override\n\tprotected CacheKey createCacheKey(String key) {\n\t\treturn new ConfigCacheKey(key);\n\t}",
"@Override\n\tprotected String getCacheName() {\n\t\treturn null;\n\t}",
"protected static String getClassName(String key){\n\t\tif(browser.equalsIgnoreCase(\"IE\"))\n\t\t\treturn systemProperties.getProperty(\"IE.\" + key);\n\t\telse if(browser.equalsIgnoreCase(\"FF\"))\n\t\t\treturn systemProperties.getProperty(\"FF.\" + key);\n\t\telse {\n\t\t\tlogger.error(\"Class for key <\" + key + \"> not found. Is it defined in \" + propertiesFileName);\n\t\t\tthrow new ScriptExecutionException(\"Class for key <\" + key + \"> not found. Is it defined in \" + propertiesFileName);\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic <T> T get(Class<T> clazz, String key) {\n\t\treturn (T) (cacheMap.get(clazz) == null ? null : cacheMap.get(clazz).get(key));\n\t}",
"public String getKeyClass(String classPath)\n throws EnhancerMetaDataUserException, EnhancerMetaDataFatalError\n {\n final JDOClass clazz = getJDOClass(classPath);\n if (clazz == null) {\n return null;\n }\n final String name = clazz.getDeclaredObjectIdClassName();\n return (name != null ? name.replace('.', '/') : null);\n }",
"public static Class get_CLASS()\n {\n return WrapperMap.KeySet.class;\n }",
"private static Class<?> getNamedOutputKeyClass(JobContext job,\r\n\t\t\tString namedOutput) {\r\n\t\treturn job.getConfiguration().getClass(MO_PREFIX + namedOutput + KEY, null,\r\n\t\t\t\tWritableComparable.class);\r\n\t}",
"public V getByKey(K key, Class<V> clazz) throws Exception {\n if (!cache.containsKey(key)){\n\n V value = clazz.getConstructor(key.getClass()).newInstance((K)key);\n cache.put(key,value);\n }\n return cache.get(key);\n //TODO add your code here\n }",
"XClass getMapKey();",
"static String nameOf(final Object key) {\n if (key instanceof Key) {\n return key.toString();\n }\n int t = 0;\n while (true) {\n final Class<?> type;\n switch (t++) {\n case 0: {\n try {\n type = Class.forName(\"java.awt.RenderingHints\");\n } catch (ClassNotFoundException e) {\n continue;\n } catch (NoClassDefFoundError e) {\n // May occurs because of indirect JAI dependencies.\n continue;\n }\n break;\n }\n case 1: {\n try {\n type = Class.forName(\"javax.media.jai.JAI\");\n break;\n } catch (ClassNotFoundException e) {\n continue;\n } catch (NoClassDefFoundError e) {\n // May occurs because of indirect JAI dependencies.\n continue;\n }\n }\n default: {\n return key.toString();\n }\n }\n final String name = nameOf(type, key);\n if (name != null) {\n return name;\n }\n }\n }",
"@Override\n default String getKey(){\n return key();\n }",
"public static synchronized String getOrDefault(Class<?> key){\n\t\tif (ClassRegistry.primitives.containsKey(key))\n\t\t\treturn ClassRegistry.primitives.get(key).getXML();\n\t\telse if (ClassRegistry.dictionary.containsKey(key))\n\t\t\treturn ClassRegistry.dictionary.get(key);\n\t\telse\n\t\t\treturn key.getName();\n\t}",
"@Override\n public String getClassName() {\n return kelas;\n }",
"@Override\n public String getClassName() {\n return kelas;\n }",
"@Transient\n public String getCacheKey() {\n return this.getTableName();\n }",
"public static Class getDefaultIdentityMapClass() {\n return ClassConstants.SoftCacheWeakIdentityMap_Class;\n }",
"@Override\n public Class<?> getKeyClass() {\n return this.isCollection() && this.getKeyDataClassDefinition() != null?this.getKeyDataClassDefinition().getDataClass():null;\n }",
"private ClassCache1 (final Class[] ks, \n final IFn[] vs,\n final Map m) {\n classes0 = ks;\n methods = vs; \n nonlinear = m; }",
"public Class<? extends DBRecordKey<gDBR>> getKeyClass()\n {\n return this.keyClass;\n }",
"@Transient\n public void setCacheKey(String key) {\n String keyVals[];\n if(key.contains(\".\")) {\n keyVals = key.split(\".\");\n } else {\n keyVals = new String[] {key};\n }\n this.setTableName(keyVals[0]);\n }",
"public interface ClassesByNameProvider {\n\n List<ReferenceType> get(String s);\n\n static ClassesByNameProvider createCache(List<ReferenceType> allTypes) {\n return new Cache(allTypes);\n }\n\n /**\n * Caching implementation for name based class provider.\n */\n final class Cache implements ClassesByNameProvider {\n\n private final ConcurrentHashMap<String, ReferenceType> myCache;\n\n public Cache(List<ReferenceType> classes) {\n myCache = new ConcurrentHashMap<>();\n classes.forEach(t -> myCache.put(t.signature(), t));\n }\n\n @Override\n public List<ReferenceType> get(String s) {\n String signature = VirtualMachineProxyImpl.JNITypeParserReflect.typeNameToSignature(s);\n if (signature != null) {\n return (List<ReferenceType>) myCache.get(signature);\n }\n return Collections.emptyList();\n }\n }\n}",
"public static Class get_CLASS()\n {\n return WrapperMap.KeySet.Iterator.class;\n }",
"public Cache getCache(String name)\r\n/* 39: */ {\r\n/* 40:64 */ return (Cache)this.cacheMap.get(name);\r\n/* 41: */ }",
"@Override\n\tpublic String typeKey() {\n\t return \"class\";\n\t}",
"public ClassKey(final Class<?> classe) {\n super(classe);\n }",
"private static native void initCachedClassMap();",
"public static CacheKey newInstance(Class type, Object pk) {\n return new OneCacheKey(type, pk);\n }",
"public void setClassCaching( boolean cc )\r\n {\r\n useClassCaching = cc;\r\n }",
"public interface Key<T> {\n String getName();\n Class<T> getType();\n\n static <T> Key<T> of(Class<T> type) {\n return of(type.getName(), type);\n }\n\n static <T> Key<T> of(String name, Class<T> type) {\n return new Key<T>() {\n @Override\n public String getName() {\n return name;\n }\n\n @Override\n public Class<T> getType() {\n return type;\n }\n };\n }\n }",
"private Object getKeyClassField (String keyClassName, \n\t\t\t\tString keyClassFieldName)\n\t\t\t{\n\t\t\t\tModel model = getModel();\n\t\t\t\tObject keyClassField = \n\t\t\t\t\tmodel.getField(keyClassName, keyClassFieldName);\n\n\t\t\t\tif (keyClassField == null)\t// this is an inherited field\n\t\t\t\t{\n\t\t\t\t\tkeyClassField = model.getInheritedField(\n\t\t\t\t\t\tkeyClassName, keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\treturn keyClassField;\n\t\t\t}",
"public String createCacheKey() {\n return \"organization.\" + userEmail;\n }",
"@Override\n public synchronized Object get(Object key) {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n String strkey = key.toString();\n if (this.ignoreCase) {\n strkey = this.keyMap.getProperty(strkey.toLowerCase());\n if (strkey == null)\n return null;\n }\n return super.get(strkey);\n }",
"Object getKey();",
"public Object getKey() { return name; }",
"private ClassName getClassName(String rClass, String resourceType) {\n ClassName className = rClassNameMap.get(rClass);\n\n if (className == null) {\n Element rClassElement = getElementByName(rClass, elementUtils, typeUtils);\n\n String rClassPackageName =\n elementUtils.getPackageOf(rClassElement).getQualifiedName().toString();\n className = ClassName.get(rClassPackageName, \"R\", resourceType);\n\n rClassNameMap.put(rClass, className);\n }\n\n return className;\n }",
"public com.intersys.objects.reflect.CacheClass getCacheClass( ) throws com.intersys.objects.CacheException {\n return mInternal.getCacheClass();\n }",
"@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"Object cached(Class<?> api, ComponentContext context);",
"private Stack cacheStack(String ename) {\n\t\tStack s = pkCache.get(ename);\n\t\tif (s == null) {\n\t\t\ts = new Stack();\n\t\t\tpkCache.put(ename, s);\n\t\t}\n\t\treturn s;\n\t}",
"protected static Object getSurrogateKey(NamedCache cache, Object oKey, int nSalt)\n {\n PartitionedService service = (PartitionedService) cache.getCacheService();\n Associator assoc = (Associator) service.getKeyAssociator();\n\n return assoc.getSurrogateKey(oKey, nSalt);\n }",
"public String getKey() {\r\n\t\t\treturn getCacheFile();\r\n\t\t}",
"protected final <T> T getLocalCache(CacheKeyMain<T> key, Callable<T> caller){\n try {\n return key.cast(spanMainCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }",
"public interface CacheKey {\n\n String CK_TOPICS = \"ck.mqtt.service\";\n String CK_TOPICS_FRESH = \"ck.mqtt.topics.is.refresh\";\n String CK_TOPIC_IS_SUBSCRIBE = \"ck.mqtt.topic.is.subscribe.%s\";\n}",
"@Override\n\tpublic long getClassNameId() {\n\t\treturn _changesetEntry.getClassNameId();\n\t}",
"java.lang.String getClass_();",
"java.lang.String getClass_();",
"Optional<BuildCacheKey> getKey();",
"private Class<?> getClassFromHistoryEntry(final String clazz) {\n try {\n return Class.forName(clazz);\n } catch (ClassNotFoundException cnfe) {\n // I know this can't happen\n }\n \n return null;\n }",
"abstract public String getKey();",
"@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}",
"public static void invalidateCache() {\n\t\tclassCache = new HashMap();\n\t}",
"public static Class<?> lenientClassForName(String className) throws ClassNotFoundException {\n try {\n return loadClass(className);\n } catch (ClassNotFoundException ignored) {\n // try replacing the last dot with a $, in case that helps\n // example: tutorial.Tutorial.Benchmark1 becomes tutorial.Tutorial$Benchmark1\n // amusingly, the $ character means three different things in this one line alone\n String newName = className.replaceFirst(\"\\\\.([^.]+)$\", \"\\\\$$1\");\n return loadClass(newName);\n }\n }",
"private String validateKeyClassName (String keyClassName) \n\t\t\t\tthrows ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\tboolean hasKeyClassName = !StringHelper.isEmpty(keyClassName);\n\t\t\t\tboolean hasPrefix;\n\t\t\t\tString nameSuffix;\n\t\t\t\tboolean isOIDNameSuffix;\n\n\t\t\t\t// check for existence of key class name\n\t\t\t\tif (!hasKeyClassName)\n\t\t\t\t{\n\t\t\t\t\tthrow new ModelValidationException(\n\t\t\t\t\t\tModelValidationException.WARNING,\n\t\t\t\t\t\tmodel.getClass(pcClassName),\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_class_unset\", //NOI18N\n\t\t\t\t\t\tpcClassName));\n\t\t\t\t}\n\n\t\t\t\tkeyClassName = keyClassName.trim();\n\t\t\t\thasPrefix = keyClassName.startsWith(pcClassName);\n\t\t\t\tnameSuffix = (hasPrefix ? \n\t\t\t\t keyClassName.substring(pcClassName.length()) : keyClassName);\n\t\t\t\tisOIDNameSuffix = \n\t\t\t\t\t(nameSuffix.equalsIgnoreCase(\".OID\") || // NOI18N\n\t\t\t\t\t nameSuffix.equalsIgnoreCase(\"$OID\")); // NOI18N\n\n\t\t\t\tif (!hasPrefix || \n\t\t\t\t\t(!nameSuffix.equalsIgnoreCase(\"Key\") && \t// NOI18N\n\t\t\t\t\t !isOIDNameSuffix))\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = getModel().getClass(pcClassName);\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(),\n\t\t\t\t\t\t\"util.validation.key_class_invalid\", //NOI18N\n\t\t\t\t\t\tkeyClassName, pcClassName));\n\t\t\t\t}\n\t\t\t\tif (isOIDNameSuffix)\n\t\t\t\t{\n\t\t\t\t\tStringBuffer buf = new StringBuffer(keyClassName);\n\t\t\t\t\tbuf.setCharAt(keyClassName.length() - 4, '$');\n\t\t\t\t\treturn buf.toString(); \n\t\t\t\t}\n\t\t\t\treturn keyClassName;\n\t\t\t}",
"abstract String getClassName();",
"private Class<?> findInternalClass(String name){\n Class<?> clazz = null;\n for (int i = 0; i < urls.length; i++) {\n String root = urls[i].getPath();\n clazz = realFindClass(root,name);\n if(clazz != null)\n break;\n }\n if(clazz != null) {\n classes.put(name,clazz);\n return clazz;\n }\n return null;\n }",
"public void testCache() {\n MethodKey m = new MethodKey(\"aclass\", \"amethod\", new Object[]{1, \"fads\", new Object()});\n String mValue = \"my fancy value\";\n MethodKey m1 = new MethodKey(\"aclass\", \"amethod1\", new Object[]{1, \"fads\", new Object()});\n String mValue1 = \"my fancy value1\";\n MethodKey m2 = new MethodKey(\"aclass\", \"amethod2\", new Object[]{1, \"fads\", new Object()});\n String mValue2 = \"my fancy value2\";\n\n GenericCache.setValue(m, mValue);\n GenericCache.setValue(m1, mValue1);\n GenericCache.setValue(m2, mValue2);\n\n assertEquals(GenericCache.getValue(m), mValue);\n assertEquals(GenericCache.getValue(m1), mValue1);\n assertEquals(GenericCache.getValue(m2), mValue2);\n }",
"private SerializerConfigModel getCacheSerializer(SerializerConfigModel clstSrlzMdl) {\n\t\tSerializerConfigModel caheMgmrSrlzMdl = cacheManagerModel.getSerializerConfigModel();\n\n\t\t// cache item serializer model has high priority than global model\n\t\tSerializerConfigModel targetMdl = integrateCacheClusterSerializerWithGlobal(clstSrlzMdl, caheMgmrSrlzMdl);\n\t\t\n\t\t// string is default serializer for key. hash key align to key\n\t\t// jdk is default serializer for value. hash value align to value\n\t\tinjectDefaultSerializerType(targetMdl);\n\t\t\n\t\t// convert serializer type to class qualified name.\n\t\tconvertSerializerType2Clazz(targetMdl);\n\t\t\n\t\treturn targetMdl;\n\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}",
"public static FastClass getFastClass(String name)\n throws ClassNotFoundException {\n synchronized (classCache) {\n FastClass fc = classCache.get(name);\n if (fc == null) {\n fc = FastClass.create(\n SerializationCache.class.getClassLoader(),\n Class.forName(name));\n classCache.put(name, fc);\n }\n return fc;\n }\n\n }",
"@SuppressWarnings(\"rawtypes\")\n \tpublic static Class getMinecraftClass(final String className) {\n \t\tif (minecraftPackage == null) {\n \t\t\tminecraftPackage = new CachedPackage(getMinecraftPackage());\n \t\t}\n \t\treturn minecraftPackage.getPackageClass(className);\n \t}",
"private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}",
"public static String getCacheName0()\n {\n return s_sCacheName0;\n }",
"@Override\n public String getKey() {\n return key;\n }",
"java.lang.String getClassName();",
"String key();",
"@Override\n protected final Object getKey()\n {\n return this;\n }",
"@Override\n public String getClassName() {\n Object ref = className_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n className_ = s;\n return s;\n }\n }",
"public GroupTrainerCacheKey<Void> key() {\n return key;\n }",
"protected final <T> Optional<T> getLocalCache(CacheKeyOptional<T> key,\n Callable<Optional<T>> caller\n ){\n try {\n return key.cast(spanOptionalCache.get(key, caller));\n } catch (ExecutionException e) {\n throw new RuntimeException(e.getCause());\n }\n }",
"protected static synchronized Class<?> reverseOrDefault(String value) throws ClassNotFoundException{\n\t\tif (ClassRegistry.xmlprimitives.containsKey(value))\n\t\t\treturn ClassRegistry.xmlprimitives.get(value);\n\t\telse if (ClassRegistry.dictionary.containsValue(value))\n\t\t\treturn ClassRegistry.dictionary.reverse(value);\n\t\telse\n\t\t\treturn Class.forName(value);\n\t}",
"public final String mo38131b() {\n return \"com.google.android.gms.ads.internal.cache.ICacheService\";\n }",
"private CacheHelper loadCacheHelper(String className)\n throws Exception {\n\n // use the context class loader to load class so that any\n // user-defined classes in WEB-INF can also be loaded.\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n Class helperClass = cl.loadClass(className);\n\n CacheHelper helper = (CacheHelper) helperClass.newInstance();\n\n return helper;\n }",
"default Class<?> getType(String key) {\n Object v = get(key);\n return v == null ? null : v.getClass();\n }",
"public static Class getClass(String inKey) {\r\n Object o = getProperties().get(inKey);\r\n\r\n if (o == null) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getClass: \" + inKey + \", result null\");\r\n }\r\n return null;\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getClass: \" + inKey + \", result \" + o);\r\n }\r\n if (o instanceof Class) {\r\n return (Class) o;\r\n }\r\n if (!(o instanceof String)) {\r\n throw new IllegalArgumentException(\"Config property: \" + inKey\r\n + \" is not a Class or String: \" + o.getClass());\r\n }\r\n try {\r\n return Class.forName((String) o);\r\n } catch (Exception e) {\r\n LOG.warn(\"Class not found: \" + o + \" for property \" + inKey);\r\n return null;\r\n }\r\n }",
"String getLongNameKey();",
"<T> T getQuiet(Object key, Class<T> clazz);",
"IArenaClass getClass(final String name);",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"public String getclassname(String strtofind, String classname) {\n\t\tif(classname==null){\n\t\t\tSystem.out.println(\"See assignment helper function getclassname\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tTable t=finaltable.symboltable.get(classname);\n\t\tif(t.varmap.containsKey(strtofind)){\n\t\t\treturn classname;\n\t\t}\n\t\telse{\n\t\t\treturn getclassname(strtofind,t.parent);\n\t\t}\n\t}",
"default String normalizeKey(String key) {\r\n\t\treturn key.intern();\r\n\t}",
"public String getClassName () { return _className; }",
"@Override\n protected String getRedisKey() {\n return REDIS_KEY;\n }",
"public void setClassLabel(String key, String label);"
] | [
"0.6826894",
"0.6542121",
"0.6520929",
"0.64099216",
"0.6384606",
"0.6180157",
"0.616486",
"0.61605555",
"0.6078432",
"0.6058492",
"0.59171253",
"0.58618087",
"0.5840191",
"0.5762291",
"0.57397664",
"0.57300216",
"0.5691929",
"0.5669035",
"0.5654489",
"0.56507415",
"0.56481296",
"0.5646498",
"0.5634739",
"0.5604925",
"0.5580735",
"0.5580691",
"0.55705416",
"0.5545903",
"0.55346125",
"0.55122405",
"0.55106604",
"0.55004764",
"0.54865754",
"0.54474103",
"0.5437502",
"0.5418995",
"0.5416593",
"0.5395052",
"0.53931314",
"0.53808725",
"0.5379646",
"0.5378188",
"0.53674227",
"0.5354847",
"0.53059316",
"0.53038955",
"0.52983284",
"0.52882385",
"0.52878124",
"0.52861416",
"0.52828485",
"0.5282211",
"0.5262244",
"0.52580106",
"0.52560824",
"0.5234088",
"0.52265674",
"0.52265674",
"0.52147925",
"0.5212917",
"0.5211956",
"0.5211699",
"0.5211699",
"0.5208685",
"0.5201789",
"0.5201489",
"0.51764464",
"0.5175436",
"0.517514",
"0.51714313",
"0.5161854",
"0.51507014",
"0.51498353",
"0.51470786",
"0.51300347",
"0.5124855",
"0.5123506",
"0.51133573",
"0.51126355",
"0.51113653",
"0.5108298",
"0.5105916",
"0.5104458",
"0.5102919",
"0.50995564",
"0.50918865",
"0.5088756",
"0.508832",
"0.5083349",
"0.5082705",
"0.50807345",
"0.50807345",
"0.50807345",
"0.50807345",
"0.50807345",
"0.50807345",
"0.5073969",
"0.5059889",
"0.50567627",
"0.5052001",
"0.50503266"
] | 0.0 | -1 |
Get current assigned users to a team | public static UITeamUsers getUITeamUsers(String unitID)
{
UITeamUsers uiTeamUsers = new UITeamUsers();
uiTeamUsers.makeTransient();
uiTeamUsers.setUnitID(unitID);
UITeamUsers.Assignments assignments = new UITeamUsers.Assignments();
uiTeamUsers.setAssignmentsObject(assignments);
// get user names by DN
HashMap<String, String> userNamesByDN = CordysUser.getOrgUserNamesByDN(false);
// get team assignments
CordysObjectList teamAssignments = null;
int seqNo = 0;
try
{
teamAssignments = TeamAssignment.getAssignments("", unitID, true);
for (CordysObject cordysObject : teamAssignments.getList())
{
TeamAssignment teamAssignment = (TeamAssignment)cordysObject;
// the seqNo sequence number can be used client side as an index to the team/role
seqNo++;
UITeamUsers.Assignments.Assignment uiAssignment = new UITeamUsers.Assignments.Assignment();
uiAssignment.makeTransient();
uiAssignment.setSeqNo(seqNo);
String orgUserDN = teamAssignment.getUserDN();
uiAssignment.setOrgUserDN(orgUserDN);
String roleDN = teamAssignment.getRoleDN();
uiAssignment.setRoleDN(roleDN);
uiAssignment.setAssigned(true);
uiAssignment.setAssignmentID(teamAssignment.getID());
String roleName = Util.getNameFromDN(roleDN);
uiAssignment.setDescription(userNamesByDN.get(orgUserDN) + "/" + roleName);
// below info can be used in future if so required
/*boolean isPrincipalUnit = teamAssignment.getIsPrincipalUnit();
if (isPrincipalUnit)
{
uiUserTeams.setPrincipleUnitID(unitID);
}*/
assignments.addAssignmentObject(uiAssignment);
}
}
finally
{
// teamAssignments do wrap NOM xml structures, so cleanup
if (teamAssignments != null)
{
teamAssignments.cleanup();
}
}
return uiTeamUsers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET\n @Path(\"Current/Team\")\n public Response findTeamsByCurrentUser() {\n Response r = Response.noContent().build();\n Collection<Team> teamsToReturn = new ArrayList<>();\n User currentUser = userFacade.getCurrentUser();\n final List<Player> players = currentUser.getPlayers();\n for (Player p : players) {\n teamsToReturn.add(p.getTeam());\n }\n if (!teamsToReturn.isEmpty()) {\n r = Response.ok().entity(teamsToReturn).build();\n }\n\n return r;\n }",
"List<Team> findTeamsByUserId(UserId userId);",
"public List<String> getAvailableAssignees()\n {\n // TODO stefan an Rollen knüpfen\n final Matcher<String> m = new BooleanListRulesFactory<String>().createMatcher(\"admin/user/*\");\n final List<GWikiElementInfo> userInfos = wikiContext.getElementFinder()\n .getPageInfos(new GWikiPageIdMatcher(wikiContext, m));\n\n List<String> users = new ArrayList<String>();\n for (final GWikiElementInfo user : userInfos) {\n users.add(GWikiContext.getNamePartFromPageId(user.getId()));\n }\n return users;\n }",
"@SuppressWarnings(\"finally\")\n\tpublic static List<String> getAssignmentUsers(String packageId, String procDefId, String procId, String version, String actId, String requesterUsername, String participantId) {\n List<String> resultList = null;\n\n try {\n WorkflowHelper workflowMapper = (WorkflowHelper) appContext.getBean(\"workflowHelper\");\n resultList = workflowMapper.getAssignmentUsers(packageId, procDefId, procId, version, actId, requesterUsername, participantId);\n } catch (Exception ex) {\n LogUtil.error(WorkflowUtil.class.getName(), ex, \"\");\n } finally {\n // remove duplicates\n if (resultList != null) {\n HashSet<String> resultSet = new HashSet<String>(resultList);\n resultList = new ArrayList<String>(resultSet);\n }\n return resultList;\n }\n }",
"public Set<P2PUser> getUsers();",
"Set<String> getTeamSet(String userName) throws RemoteException, InterruptedException;",
"Set<String> getMemberSet(String teamName) throws RemoteException, InterruptedException;",
"public Collection<String> getUsers() {\r\n \t\tCollection<String> users = new TreeSet<>();\r\n \t\tusers.addAll(this.dataLayer.getUser());\r\n \r\n \t\treturn users;\r\n \t}",
"List<User> getActivatedUserList();",
"private final void getUsersOfChoosenGroup()\n {\n final LinkedList<User> members= MyApplication.currentGroup.getMembers();\n\n // Get RecipientID's of members\n ParseQuery<ParseUser> query = ParseUser.getQuery();\n query.whereNotEqualTo(\"objectId\", currentUserId);\n query.findInBackground(new FindCallback<ParseUser>() {\n public void done(List<ParseUser> userList, com.parse.ParseException e) {\n if (e == null) {\n for (int i = 0; i < userList.size(); i++) {\n for(int j=0; j < members.size();j++)\n {\n if ( userList.get(i).getUsername().equals(members.get(j).getUsername()))\n {\n recipientsIds.add(userList.get(i).getObjectId());\n Log.v(\"recipientId\",userList.get(i).getObjectId());\n break;\n }\n\n }\n\n }\n }\n populateMessageHistory();\n }\n });\n }",
"TrackerUsers getTrackerUsers(final Integer id);",
"public ArrayList<memberjoin> getUserList() {\n\t\treturn Tdao.selectticketList();\r\n\t}",
"public User getUserFromTeam(Team team){\n String sql = \"SELECT * FROM trainer tr INNER JOIN Team T ON tr.userid = T.userid WHERE T.teamid = ?\";\n User user = jdbc.queryForObject(sql, new UserDaoImpl.UserMapper(), team.getId());\n System.out.print(user);\n return user;\n }",
"@GET\n @Path(\"Current/Team/{teamId}\")\n public Response getTeamByCurrentUser(@PathParam(\"teamId\") Long teamId) {\n Response r = Response.noContent().build();\n User currentUser = userFacade.getCurrentUser();\n final Collection<Game> playedGames = gameFacade.findRegisteredGames(currentUser.getId());\n for (Game g : playedGames) {\n Collection<Team> teams = g.getTeams();\n for (Team t : teams) {\n if (teamId.equals(t.getId())) {\n for (Player p : t.getPlayers()) {\n if (p.getUserId().equals(currentUser.getId())) {\n r = Response.ok().entity(t).build();\n }\n }\n }\n }\n }\n return r;\n }",
"public List<String> getTeamMembers() {\r\n\t\treturn teamMembers;\r\n\t}",
"public List<StaffMember> getTeamMembers(){\n\t\tSet<StaffMember> team = teamleader.getDirectSubordinates();\n\t\tStaffMemberIterator iterator = new StaffMemberIterator(team);\n\t\tList<StaffMember> listOfMembers = iterator.listOfStaffMember;\n\t\tlistOfMembers.add(teamleader);\n\t\tCollections.sort(listOfMembers);\n\t\treturn listOfMembers;\n\t}",
"List<User> getMembers(String companyId, String name);",
"public List<User> getEnabledUsers();",
"public List<User> getActiveUsers(boolean active);",
"List<User> getUsers();",
"List<User> getUsers();",
"ArrayList<String> getLeaderboardUsers() {\r\n return leaderboardUsers;\r\n }",
"int getTeam();",
"public List<User> getUsers();",
"public Set getLoggedInUserTickets();",
"public Collection<AccessUser> getMembers()\n {\n return username_to_profile.values();\n }",
"public synchronized Set<User> getUsers() {\r\n Set<User> userSet = new HashSet<User>(userSetSize); \r\n userSet.addAll(this.email2user.values());\r\n return userSet;\r\n }",
"public Person[] getTeamOf(Person actor);",
"public int getLoggedInUsers();",
"@RequestMapping(method = RequestMethod.GET, value = \"/teamsForUser\")\n public JSONArray getAllTeamsForUserPage() {\n return teamService.getAllTeamsForUser();\n }",
"public List<Project> getProjectsOfTeam(\n int teamId,\n String supervisorName,\n String assigneeName,\n EnumSet<Project.Status> allowedStatuses,\n EnumSet<Project.DeadlineStatus> allowedDeadlineStatuses,\n Project.SorterType sorterType,\n boolean descending)\n throws InexistentDatabaseEntityException, SQLException, InexistentUserException {\n Integer assigneeId = null;\n if (assigneeName != null) {\n User assignee = getMandatoryUser(assigneeName);\n assigneeId = assignee.getId();\n }\n Integer supervisorId = null;\n if (supervisorName != null) {\n User supervisor = getMandatoryUser(supervisorName);\n supervisorId = supervisor.getId();\n }\n return projectRepository.getProjectsOfTeam(\n teamId,\n allowedStatuses,\n assigneeId,\n supervisorId,\n allowedDeadlineStatuses,\n sorterType,\n descending);\n }",
"Team getMyTeam();",
"Collection<User> players();",
"public People getUser(int index) {\n return user_.get(index);\n }",
"private void addUsertoTeams(List<Team> teams) {\n \tfor(Team team: teams) {\n \t\tteam.setUser(getUserFromTeam(team));\n \t}\n }",
"public ArrayList<CollegeFootballTeam> getTeamList();",
"public String getHomeTeam();",
"public List<TeamMember> findByUser(int userId) {\n return select().where(\"user_id\", userId).execute();\n }",
"public int[] getUsers() {\n UserManagerService ums = this.mInjector.getUserManager();\n if (ums != null) {\n return ums.getUserIds();\n }\n return new int[]{0};\n }",
"Map<Long, Integer> getUsersWithPendingMeeting();",
"@Nonnull\n List<User> getUsers();",
"public Vector getUsers(TIdentifiable resource) {\r\n int column = m_resources.getIndex(resource);\r\n Vector result = new Vector();\r\n TUseStatus useStatus;\r\n\t if (column >= 0) {\r\n for (int b=0; b < m_current_users_count; b++)\r\n if (m_associations[column][b]!=null) {\r\n useStatus = m_associations[column][b];\r\n if (useStatus.getStatus()!=useStatus.NO_ASSOCIATION) result.addElement(useStatus);\r\n }\r\n return result;\r\n } else return null;\r\n }",
"TrackerUsersInGroups getTrackerUsersInGroups(final Integer id);",
"public int getUsers() {\n\t\treturn this.users;\n\t}",
"com.rpg.framework.database.Protocol.User getUsers(int index);",
"com.rpg.framework.database.Protocol.User getUsers(int index);",
"public List<String> getUsers() {\n return Collections.unmodifiableList(users);\n }",
"@Override\n public BlueUserContainer getUsers() {\n return users;\n }",
"@Override\n public List<TeamPreferences> getUidByTid(int tid) {\n String sql = \"select * from vwb_team_member a where a.tid=?\";\n return getJdbcTemplate().query(sql, new Object[] { tid }, prefMapper);\n }",
"@Override\n public List<Team> getTeamsOfUser(int userid){\n\t\tfinal String select_teams_of_user = \"SELECT * FROM Team WHERE userid = ?\";\n\t\tList<Team> teams = jdbc.query(select_teams_of_user, new TeamMapper(), userid);\n\t\taddUsertoTeams(teams);\n\t\treturn teams;\n\t}",
"@Override\n\tpublic long getUserId() {\n\t\treturn _esfTournament.getUserId();\n\t}",
"public List<User> getUsers() {\n return Collections.unmodifiableList(this.users);\n }",
"public ch.ivyteam.ivy.scripting.objects.List<ch.ivyteam.ivy.security.IUser> getUsers()\n {\n return users;\n }",
"@GetMapping(\"/users/{name}/tasks\")\n public List<Task> getTaskByAssignee(@PathVariable String name){\n List<Task> allTask = taskRepository.findByAssignee(name);\n return allTask;\n }",
"@Override\n\tpublic ArrayList<Utente> getUsers() {\n\t\tDB db = getDB();\n\t\tArrayList<Utente> usersList = new ArrayList<>();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente)\n\t\t\t\tusersList.add((Utente) user.getValue());\n\t\treturn usersList;\n\t}",
"@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}",
"public List<Issue> getUserActiveIssues(User user);",
"Map<Long, Integer> getUsersWithPendingMeeting(Long forUserId);",
"List<User> loadActiveUsers(User user);",
"public UserSet getPublicUsers() {\n\t\t//users/public\n\t\treturn restTemplate.getForObject(this.embyUrl + \"/\" + EmbyUrlConstants.PUBLIC_USERS, UserSet.class);\n\t\t\n\t}",
"@Query(\"select u from User u where u.managedProject is null and u.role = 'PM'\")\n List<User> getFreeManagers();",
"public java.util.List<People> getUserList() {\n return user_;\n }",
"List<KingdomUser> getUsers();",
"public List<Issue> getUserProjectActiveIssue(User user, Project project);",
"public People getUser() {\n return instance.getUser();\n }",
"public People getObjUser() {\n return instance.getObjUser();\n }",
"RampUpUsers getRampUpUsers();",
"public String listUsers(){\n \tStringBuilder sb = new StringBuilder();\n \tif(users.isEmpty()){\n \t\tsb.append(\"No existing Users yet\\n\");\n \t}else{\n \t\tsb.append(\"Meeting Manager Users:\\n\");\n \t\tfor(User u : users){\n \t\t\tsb.append(\"*\"+u.getEmail()+\" \"+ u.getPassword()+\" \\n\"+u.listInterests()+\"\\n\");\n \t\t}\n \t}\n \treturn sb.toString();\n }",
"@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}",
"public User getCurrentUser() {\n\t\treturn users.get(userTurn);\n\t}",
"public List<Utilizator> listUsers();",
"public int getTeam() {\n return team;\n }",
"java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();",
"public HashMap<String, Integer> getUsers() {\n HashMap<String, Integer> users = new HashMap<>();\n getData(users, \"getUsers\");\n return users;\n }",
"com.heroiclabs.nakama.api.User getUsers(int index);",
"public ArrayList<User> getUsers() {return users;}",
"java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();",
"java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();",
"public Set<String> getUsers()\n {\n return this.users;\n }",
"public List<Users> getUserAlreadyRegistered() {\n\t\treturn this.UserAlreadyRegistered;\n\t}",
"public ArrayList<Team> getTeamList(){\n\t\treturn this.teamList;\n\t}",
"@Override\n public Future<Seq<TUser>> getUsers() {\n return futurePool.apply(new BlockingUserRetriever(\"user1\", false))\n .join(futurePool.apply(new BlockingUserRetriever(\"user2\", false)))\n .transformedBy(\n new FutureTransformer<Tuple2<User, User>, List<TUser>>() {\n @Override\n public List<TUser> map(Tuple2<User, User> value) {\n List<TUser> list = new ArrayList<TUser>(2);\n list.add(value._1().toTObject());\n list.add(value._2().toTObject());\n return list;\n }\n\n // if we call BlockingUserRetriever with useRandom=true then\n // one of the users of maybe both can fail because don't exist so\n // we catch the exception and return an empty list instead\n @Override\n public List<TUser> handle(Throwable throwable) {\n return new ArrayList<TUser>();\n }\n }\n ).transformedBy(\n new FutureTransformer<List<TUser>, Seq<TUser>>() {\n @Override\n public Seq<TUser> map(List<TUser> value) {\n return ScalaSupport.toScalaSeq(value);\n }\n }\n );\n }",
"public Vector<CarerAccount> getUsers(){\n\t\treturn CarerAccounts;\n\t}",
"public List<User> getUsers()\n\t{\n\t\treturn usersList;\n\t}",
"public String[] getUsers() {\n\t\tEnumeration enumer = userSessions.keys();\n\t\tVector temp = new Vector();\n\t\twhile (enumer.hasMoreElements())\n\t\t\ttemp.addElement(enumer.nextElement());\n\t\tString[] returns = new String[temp.size()];\n\t\ttemp.copyInto(returns);\n\t\treturn returns;\n\n\t}",
"List<Organization> findOrgByUser(String userId);",
"public ch.ivyteam.ivy.scripting.objects.List<ch.ivyteam.ivy.security.IUser> getSelectedUsers()\n {\n return selectedUsers;\n }",
"@Override\r\n\tpublic List<User> viewUsers() {\n\t\treturn user.viewUsers();\r\n\t}",
"public List<User> findUsers() {\n\t\treturn userRepository.findUsers();\n\t}",
"public java.util.List<People> getUserList() {\n return java.util.Collections.unmodifiableList(\n instance.getUserList());\n }",
"public List<User> getUsers() {\r\n\t\treturn users;\r\n\t}",
"private static Map<String, User> getUsers() {\n Map<String, User> users = new HashMap<String, User>();\n\n User userOne = new User(\"one\",\"1\");\n User userTwo = new User(\"two\",\"2\");\n\n users.put(userOne.getName(), userOne);\n users.put(userTwo.getName(), userTwo);\n\n return users;\n }",
"public List<TicketSite> getTicketSitesOfATeam(String teamId);",
"public List getUsers(User user);",
"public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}",
"public List<PojoUser> getUsers() {\n\t\tList<PojoUser> pojoUsers = new ArrayList<PojoUser>();\n\t\tfor (User u : repo.getUsers()) {\n\t\t\t\n\t\t\tPojoUser pojo = new PojoUser();\n\t\t\tpojo.setFullName(u.getFullName());\n\t\t\tpojo.setMail(u.getEmail());\n\t\t\t\n\t\t\tpojoUsers.add(pojo);\n\t\t}\n\t\treturn pojoUsers;\n\t}",
"public People getUser(int index) {\n return instance.getUser(index);\n }",
"People getUser();",
"public static Map<String, User> getUsers() {\n\t\treturn users;\n\t}",
"public void getUsers(String[] tokens) {\n\n }"
] | [
"0.6341172",
"0.6224509",
"0.6224264",
"0.61895543",
"0.6146746",
"0.609734",
"0.60915977",
"0.5973124",
"0.5960806",
"0.5945739",
"0.5920836",
"0.5899917",
"0.5895883",
"0.5884465",
"0.5859353",
"0.58336794",
"0.5774156",
"0.5718153",
"0.56804997",
"0.5660252",
"0.5660252",
"0.56498593",
"0.56451505",
"0.5641303",
"0.5636372",
"0.562941",
"0.56163",
"0.5606743",
"0.559798",
"0.5580636",
"0.5554778",
"0.55533475",
"0.5543671",
"0.55434084",
"0.5541422",
"0.55399656",
"0.55391556",
"0.55373174",
"0.55276215",
"0.5519239",
"0.55177116",
"0.5485814",
"0.54673946",
"0.5442551",
"0.54415256",
"0.5440465",
"0.5439893",
"0.5435668",
"0.5433395",
"0.5431439",
"0.54205114",
"0.54185987",
"0.54131407",
"0.541191",
"0.54064345",
"0.5394077",
"0.53924334",
"0.53892434",
"0.5379312",
"0.53756434",
"0.5375398",
"0.53753084",
"0.5373833",
"0.5367203",
"0.53644085",
"0.535893",
"0.53512216",
"0.5349111",
"0.53369474",
"0.5319176",
"0.5316886",
"0.5315775",
"0.53148806",
"0.53124374",
"0.530244",
"0.53011197",
"0.52976006",
"0.5297091",
"0.5296717",
"0.5296504",
"0.52953446",
"0.5293576",
"0.5289708",
"0.52884233",
"0.52844113",
"0.52804536",
"0.52801615",
"0.5274745",
"0.52713096",
"0.52644444",
"0.5261942",
"0.5258095",
"0.52573985",
"0.52493376",
"0.52440894",
"0.52373075",
"0.5234563",
"0.52344435",
"0.5233876",
"0.5229056"
] | 0.52422976 | 95 |
Updates will be done by user by reusing the Teams/Team functionality in de domain layer. This will also take care of setting the principle unit properly. To be added/removed assignments are determined by user. | public void onUpdate()
{
String unitID = this.getUnitID();
// hashmap for all assignments from tuple-old/new by seqNo
HashMap<Integer, UITeamUsers.Assignments.Assignment> allAssignments = new HashMap<Integer, UITeamUsers.Assignments.Assignment>();
// assigned setting for each assignment by seqNo
HashMap<Integer, Boolean> assigned = new HashMap<Integer, Boolean>();
// map of users plus list of user related assignments
HashMap<String, ArrayList<Integer>> userAssignment = new HashMap<String, ArrayList<Integer>>();
// collect data from tuple-old
UITeamUsers origTeamUsers = (UITeamUsers)this.getOriginalObject();
BusObjectIterator<UITeamUsers.Assignments.Assignment> origAssignments = origTeamUsers.getAssignmentsObject().getAssignmentObjects();
while (origAssignments.hasMoreElements())
{
UITeamUsers.Assignments.Assignment origAssignment = (UITeamUsers.Assignments.Assignment)origAssignments.nextElement();
int seqNo = origAssignment.getSeqNo();
String orgUserDN = origAssignment.getOrgUserDN();
allAssignments.put(seqNo, origAssignment);
// initially, put assigned to false - from the tuple-new, we will determine if it should be put to true
assigned.put(seqNo, false);
// add assignment to user list
ArrayList<Integer> userAssignments = null;
if (userAssignment.containsKey(orgUserDN))
{
userAssignments = userAssignment.get(orgUserDN);
}
else
{
userAssignments = new ArrayList<Integer>();
userAssignment.put(orgUserDN, userAssignments);
}
userAssignments.add(seqNo);
}
// collect data from tuple-new
BusObjectIterator<UITeamUsers.Assignments.Assignment> newAssignments = this.getAssignmentsObject().getAssignmentObjects();
while (newAssignments.hasMoreElements())
{
UITeamUsers.Assignments.Assignment newAssignment = (UITeamUsers.Assignments.Assignment)newAssignments.nextElement();
int seqNo = newAssignment.getSeqNo();
String orgUserDN = newAssignment.getOrgUserDN();
if (!allAssignments.containsKey(seqNo))
{
allAssignments.put(seqNo, newAssignment);
// add assignment to user list
ArrayList<Integer> userAssignments = null;
if (userAssignment.containsKey(orgUserDN))
{
userAssignments = userAssignment.get(orgUserDN);
}
else
{
userAssignments = new ArrayList<Integer>();
userAssignment.put(orgUserDN, userAssignments);
}
userAssignments.add(seqNo);
}
// determine assigned
assigned.put(seqNo, newAssignment.getAssigned());
}
// as we have all the data now, and also by user, we can see by user if
// any teams to be assigned or unassigned
for (String orgUserDN : userAssignment.keySet())
{
Teams assignTeams = new Teams();
Teams unassignTeams = new Teams();
ArrayList<Integer> userAssignments = userAssignment.get(orgUserDN);
for (int seqNo : userAssignments)
{
UITeamUsers.Assignments.Assignment assignment = allAssignments.get(seqNo);
String assignmentID = assignment.getAssignmentID();
if (Util.isSet(assignmentID) && !assigned.get(seqNo))
{
// existing assignment but not assigned anymore, so for removal
Team team = new Team();
team.setUnitID(unitID);
Role role = new Role();
role.setDN(assignment.getRoleDN());
team.setRoleObject(role);
unassignTeams.addTeamObject(team);
}
else if (!Util.isSet(assignmentID) && assigned.get(seqNo))
{
// not existing yet; newly assigned
Team team = new Team();
team.setUnitID(unitID);
Role role = new Role();
role.setDN(assignment.getRoleDN());
team.setRoleObject(role);
assignTeams.addTeamObject(team);
}
}
// delegate
Teams.maintainTeams(orgUserDN, assignTeams, unassignTeams);
}
// read back
UITeamUsers actualTeamUsers = UITeamUsers.getUITeamUsers(unitID);
if (actualTeamUsers != null)
{
UITeamUsers.Assignments actualAssignments = actualTeamUsers.getAssignmentsObject();
UITeamUsers.Assignments uiAssignments = new UITeamUsers.Assignments(new BusObjectConfig(actualAssignments, BusObjectConfig.TRANSIENT_OBJECT));
this.setAssignmentsObject(uiAssignments);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void assignDepartment(String departmentName);",
"boolean updateUser(SchoolSubject schoolSubject);",
"protected abstract void assignTeam(boolean playerR, boolean playerB);",
"public void updateUserTeam() {\n\t\tUser user = users.get(userTurn);\n\t\tSystem.out.println(user.getName());\n\t\tSystem.out.println(tmpTeam.size());\n\t\tUserTeam roundTeam = new UserTeam();\n\t\troundTeam.putAll(tmpTeam.getPlayers());\n\t\tSystem.out.println(roundNumber);\n\t\tSystem.out.println(roundTeam.size());\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\tuser.setUserTeam(roundTeam, roundNumber);\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\ttmpTeam = new UserTeam();\n\t}",
"public void apply()\r\n {\r\n try\r\n {\r\n UserService service = workflowFacade.getServiceFactory().getUserService();\r\n AdministrationService adminService = workflowFacade.getServiceFactory().getAdministrationService();\r\n if (!modifyMode)\r\n {\r\n if (service != null && departmentBean != null)\r\n {\r\n adminService.createDepartment(departmentBean.getId(), departmentBean.getName(), departmentBean\r\n .getDescription(), departmentBean.getParentDepartment(), departmentBean.getOrganization());\r\n }\r\n }\r\n else\r\n {\r\n if (selectedDepartment != null && departmentBean != null)\r\n {\r\n adminService.modifyDepartment(departmentBean.getOID(), departmentBean.getName(), departmentBean\r\n .getDescription());\r\n }\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n ExceptionHandler.handleException(e);\r\n }\r\n\r\n closePopup();\r\n ParticipantManagementBean.getInstance().getParticipantTree().refreshParticipantNode(parentNodeToRefresh,\r\n EnumSet.of(NODE_TYPE.DEPARTMENT, NODE_TYPE.DEPARTMENT_DEFAULT));\r\n }",
"@Test\n\tpublic void updateAssignment() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(test_assignment);\n\t\tAssignmentMsg test_am = assign_hand.getAssignment(id);\n\n\t\ttest_am.setName(\"Not As Hard Assignment\");\n\t\ttest_am.setEnabled(false);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am.getName());\n\t\t\n\t\tid = assign_hand.saveOrUpdate(test_am);\n\t\tAssignmentMsg test_am2 = assign_hand.getAssignment(id);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am2.getName());\n\t\tassertEquals(false,test_am2.isEnabled());\n\n\t}",
"@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }",
"public void reAssign(DataRecord data) throws ProcessManagerException {\r\n Actor[] oldUsers = null;\r\n Vector<Actor> oldActors = new Vector<Actor>();\r\n Vector<Actor> newActors = new Vector<Actor>();\r\n \r\n try {\r\n WorkflowEngine wfEngine = Workflow.getWorkflowEngine();\r\n String[] activeStates = currentProcessInstance.getActiveStates();\r\n \r\n for (int i = 0; activeStates != null && i < activeStates.length; i++) {\r\n // unassign old working users\r\n oldUsers = currentProcessInstance.getWorkingUsers(activeStates[i]);\r\n \r\n for (int j = 0; j < oldUsers.length; j++) {\r\n oldActors.add(oldUsers[j]);\r\n }\r\n \r\n // assign new working users\r\n for (int j = 0; oldUsers != null && j < oldUsers.length; j++) {\r\n Field field = data.getField(activeStates[i] + \"_\"\r\n + oldUsers[j].getUserRoleName() + \"_\" + j);\r\n String userId = field.getStringValue();\r\n User user = Workflow.getUserManager().getUser(userId);\r\n Actor newActor = Workflow.getProcessInstanceManager().createActor(\r\n user, oldUsers[j].getUserRoleName(), oldUsers[j].getState());\r\n newActors.add(newActor);\r\n }\r\n }\r\n \r\n wfEngine.reAssignActors(\r\n (UpdatableProcessInstance) currentProcessInstance,\r\n (Actor[]) oldActors.toArray(new Actor[0]), (Actor[]) newActors\r\n .toArray(new Actor[0]), currentUser);\r\n } catch (WorkflowException we) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.EX_ERR_RE_ASSIGN\", we);\r\n } catch (FormException fe) {\r\n throw new ProcessManagerException(\"ProcessManagerSessionController\",\r\n \"processManager.EX_ERR_RE_ASSIGN\", fe);\r\n }\r\n }",
"@Override\n public synchronized void assignModels() {\n if ( userRecordService != null )\n for ( ChannelsUser user : userRecordService.getAllEnabledUsers() ) {\n CollaborationModel collaborationModel = user.getCollaborationModel();\n if ( collaborationModel == null )\n user.setCollaborationModel( getDefaultModel( user ) );\n else {\n String uri = collaborationModel.getUri();\n if ( collaborationModel.isRetired() ) {\n // User was connected to an old production plan\n user.setCollaborationModel( findProductionModel( uri ) );\n\n } else if ( collaborationModel.isProduction() && user.isDeveloperOrAdmin( uri ) )\n // Plan was put in production\n user.setCollaborationModel( findDevelopmentModel( uri ) );\n }\n }\n\n }",
"@Test\n public void testUpdatePerson() {\n final AuthenticationToken myToken = login(\"finland@iaeste.fi\", \"finland\");\n final Group memberGroup = findMemberGroup(myToken);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroup.getGroupId());\n groupRequest.setUsersToFetch(FetchGroupRequest.UserFetchType.ACTIVE);\n final FetchGroupResponse groupResponse1 = administration.fetchGroup(myToken, groupRequest);\n assertThat(groupResponse1.isOk(), is(true));\n assertThat(groupResponse1.getMembers().size(), is(1));\n\n // Now, let's update the Object, and send it into the IWS\n final User myself = groupResponse1.getMembers().get(0).getUser();\n final Person person = myself.getPerson();\n final Address address = new Address();\n address.setStreet1(\"Mainstreet 1\");\n address.setPostalCode(\"12345\");\n address.setCity(\"Cooltown\");\n address.setState(\"Coolstate\");\n person.setAddress(address);\n person.setFax(\"My fax\");\n person.setBirthday(new Date(\"01-JAN-1980\"));\n person.setMobile(\"+1 1234567890\");\n person.setGender(Gender.UNKNOWN);\n person.setPhone(\"+1 0987654321\");\n person.setUnderstoodPrivacySettings(true);\n person.setAcceptNewsletters(false);\n myself.setPerson(person);\n final UserRequest updateRequest = new UserRequest();\n updateRequest.setUser(myself);\n final Response updateResult = administration.controlUserAccount(myToken, updateRequest);\n assertThat(updateResult.isOk(), is(true));\n\n // Let's find the account again, and verify that the updates were applied\n final FetchUserRequest userRequest = new FetchUserRequest();\n userRequest.setUserId(myself.getUserId());\n final FetchUserResponse userResponse = administration.fetchUser(myToken, userRequest);\n assertThat(userResponse.isOk(), is(true));\n final User myUpdate = userResponse.getUser();\n final Person updatedPerson = myUpdate.getPerson();\n assertThat(updatedPerson.getAlternateEmail(), is(person.getAlternateEmail()));\n assertThat(updatedPerson.getBirthday(), is(person.getBirthday()));\n assertThat(updatedPerson.getFax(), is(person.getFax()));\n assertThat(updatedPerson.getGender(), is(person.getGender()));\n assertThat(updatedPerson.getMobile(), is(person.getMobile()));\n assertThat(updatedPerson.getPhone(), is(person.getPhone()));\n assertThat(updatedPerson.getUnderstoodPrivacySettings(), is(person.getUnderstoodPrivacySettings()));\n assertThat(updatedPerson.getAcceptNewsletters(), is(person.getAcceptNewsletters()));\n\n final Address updatedAddress = updatedPerson.getAddress();\n assertThat(updatedAddress.getStreet1(), is(address.getStreet1()));\n assertThat(updatedAddress.getStreet2(), is(address.getStreet2()));\n assertThat(updatedAddress.getPostalCode(), is(address.getPostalCode()));\n assertThat(updatedAddress.getCity(), is(address.getCity()));\n assertThat(updatedAddress.getState(), is(address.getState()));\n\n // Wrapup... logout\n logout(myToken);\n }",
"void update(Team team);",
"public void upd2(Connection con, loginProfile prof) throws qdbException, qdbErrMessage, SQLException {\n res_id = mod_res_id;\n res_type = RES_TYPE_MOD;\n res_upd_user = prof.usr_id;\n\n super.checkTimeStamp(con);\n\n if (res_status.equalsIgnoreCase(RES_STATUS_ON) || res_status.equalsIgnoreCase(RES_STATUS_DATE)) {\n // Check if the question is ordered in 1,2,3....\n if (!checkQorder(con)) {\n //Questions are not in the correct order.\n throw new qdbErrMessage(\"MOD001\");\n }\n }\n\n //if the module is standard test or dynamic test\n //make sure that you can only turn the module online\n //if the test has question/criteria defined in it\n if (res_status.equalsIgnoreCase(RES_STATUS_ON)) {\n if (mod_type.equalsIgnoreCase(MOD_TYPE_TST)) {\n if (dbResourceContent.getResourceContentCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n } else if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT)) {\n if (dbModuleSpec.getModuleSpecCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n }\n }\n\n super.updateStatus(con);\n\n // permission records have to be cleared no matter mod_instructor is specified or not\n dbResourcePermission.delUserRoleIsNull(con, mod_res_id);\n if (mod_instructor_ent_id_lst != null) {\n for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) {\n dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false);\n }\n }\n\n //Dennis, 2000-12-13, impl release control\n //If the new status == DATE, update the eff_start/end_datetime in Module\n //if(res_status.equalsIgnoreCase(RES_STATUS_DATE))\n //2001-01-05, all status will have eff datetime\n updateEffDatetime(con);\n }",
"public static void updateDept() {\n\t}",
"@Test(groups = {\"Regression\", \"IntakeLender\"})\t\n\tpublic void LoAssignment() throws InterruptedException, AWTException {\n\t\t// Login to the BLN with provided credentials\n\t\tHomePage homePage = new HomePage(d);\n\t\t// Login to BLN Application\n\t\thomePage.logIntoBLN();\n\t\t// Navigating to MyProfile Tab\n\t\tUsers Users1 = homePage.navigateToUsers();\n\t\tLender Lender1=Users1.select_RCNLender();\n\t\tLender1.RCN_loanOfficers();\n\t\t// Navigating to MyProfile Tab\n\t\tUsers Users2 = homePage.navigateToUsers();\n\t\tUsers2.select_intakeLender();\n\t\tApplication Application1 = homePage.createLoanRequest();\n\t\tApplication1.LoanOfficer();\n\t\tApplication1.LoanOfficerTest(Users1.sortedList1,Users2.sortedList1);\n\t\t\n\t}",
"public String updatePrivilege() {\r\n\r\n String elementID = this.getParam(\"idElement\");\r\n // If need to add to update list.\r\n boolean needToAdd = false;\r\n\r\n String optin = this.getParam(\"optin\");\r\n String optout = this.getParam(\"optout\");\r\n String view = this.getParam(\"view\");\r\n String read = this.getParam(\"read\");\r\n String update = this.getParam(\"update\");\r\n String administrate = this.getParam(\"administrate\");\r\n\r\n Subject updateSubject = (Subject) this.getAddedItem(elementID);\r\n\r\n if (updateSubject == null) {\r\n updateSubject = (Subject) this.updatedGroups.get(elementID);\r\n if (updateSubject == null) {\r\n Subject aux = (Subject) this.getItem(elementID);\r\n if (aux.getValueFormCol(\"canOptin\") == null) {\r\n aux.addMappingFieldCol(\"canOptin\", ESCOConstantes.FALSE);\r\n }\r\n if (aux.getValueFormCol(\"canOptout\") == null) {\r\n aux.addMappingFieldCol(\"canOptout\", ESCOConstantes.FALSE);\r\n }\r\n updateSubject = (Subject) aux.clone();\r\n this.originalGroups.put(elementID, aux);\r\n needToAdd = true;\r\n }\r\n }\r\n\r\n GroupPrivilegeEnum theRight = updateSubject.getSubjectRight();\r\n\r\n if (theRight == null) {\r\n theRight = GroupPrivilegeEnum.NONE;\r\n }\r\n\r\n if (optin != null) {\r\n // OptIn is true\r\n if (optin.equals(ESCOConstantes.TRUE)) {\r\n // Adding the VIEW privilege\r\n if (theRight.eq(GroupPrivilegeEnum.NONE)) {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.VIEW);\r\n }\r\n }\r\n // Adding the OptIn\r\n updateSubject.addMappingFieldCol(\"canOptin\", Boolean.valueOf(optin.equals(ESCOConstantes.TRUE))\r\n .toString());\r\n }\r\n\r\n if (optout != null) {\r\n // OptOut is true\r\n if (optout.equals(ESCOConstantes.TRUE)) {\r\n // Adding the VIEW privilege\r\n if (theRight.eq(GroupPrivilegeEnum.NONE)) {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.VIEW);\r\n }\r\n }\r\n updateSubject.addMappingFieldCol(\"canOptout\", Boolean.valueOf(optout.equals(ESCOConstantes.TRUE))\r\n .toString());\r\n }\r\n\r\n if (view != null) {\r\n if (view.equals(ESCOConstantes.TRUE)) {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.VIEW);\r\n } else {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.NONE);\r\n updateSubject.setOptin(false);\r\n updateSubject.setOptout(false);\r\n }\r\n }\r\n if (read != null) {\r\n if (read.equals(ESCOConstantes.TRUE)) {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.READ);\r\n } else {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.VIEW);\r\n }\r\n }\r\n if (update != null) {\r\n if (update.equals(ESCOConstantes.TRUE)) {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.UPDATE);\r\n } else {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.READ);\r\n }\r\n }\r\n if (administrate != null) {\r\n if (administrate.equals(ESCOConstantes.TRUE)) {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.ADMIN);\r\n } else {\r\n updateSubject.setSubjectRight(GroupPrivilegeEnum.UPDATE);\r\n }\r\n }\r\n\r\n // Only one group in the list of group of the members class because\r\n // we add it to convert group to subject.\r\n if (needToAdd) {\r\n this.updatedGroups.put(elementID, updateSubject);\r\n } else {\r\n Sortable theOrignGroup = this.originalGroups.get(elementID);\r\n if (theOrignGroup != null) {\r\n if (theOrignGroup.getValueFormCol(ESCOConstantes.USER_RIGHT_VALUE).toUpperCase().equals(\r\n updateSubject.getValueFormCol(ESCOConstantes.USER_RIGHT_VALUE).toUpperCase())) {\r\n if (theOrignGroup.getValueFormCol(\"canOptin\").toUpperCase().equals(\r\n updateSubject.getValueFormCol(\"canOptin\").toUpperCase())) {\r\n if (theOrignGroup.getValueFormCol(\"canOptout\").toUpperCase().equals(\r\n updateSubject.getValueFormCol(\"canOptout\").toUpperCase())) {\r\n // The updateGroup and origin is same.\r\n this.updatedGroups.remove(elementID);\r\n this.originalGroups.remove(elementID);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Create and return the XML status.\r\n XmlProducer producer = new XmlProducer();\r\n producer.setTarget(new Status(Boolean.TRUE));\r\n producer.setTypesOfTarget(Status.class);\r\n\r\n return this.xmlProducerWrapper.wrap(producer);\r\n }",
"protected abstract void gatherTeam();",
"public void verifyToDoAssignToBackend(String engagementField, String engagementValue, String todoName, String assigneeName) {\n try {\n getLogger().info(\"Verify To-Do delete status on database.\");\n String idAssignee = MongoDBService.getUserObjectByFirstNameLastName(getUserCollection(), assigneeName);\n //System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++idAssignee = \" + idAssignee);\n\n JSONObject jsonObject = MongoDBService.getToDoObject(getEngagementCollection(), engagementField, engagementValue, todoName);\n //System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++auditorAssignee = \" + jsonObject.get(\"auditorAssignee\").toString());\n\n //TODO get from properties file\n if (jsonObject.get(\"auditorAssignee\").toString().contains(idAssignee)) {\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (Exception ex) {\n NXGReports.addStep(\"Verify To-Do complete status on database.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n ex.printStackTrace();\n }\n }",
"public void setAssignee(double assignee) {\n this.assignee = assignee;\n }",
"@Override\n\tpublic void updateTeachers(Professor ud) {\n\t\ttry{ \n\t\t\t\n\t\t\tstmt = conn.prepareStatement(\"UPDATE Professor set name=?,department=? where ssn=?\");\n\t\t\tstmt.setString(1, ud.getName());\n\t\t\tstmt.setString(2, ud.getDepartment());\n\t\t\tstmt.setString(3, ud.getSsn());\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t}catch(SQLException e){\n\t\t\tex=e;\n\t\t}finally{\n\t\t\tif(conn!=null){\n\t\t\t\ttry{\n\t\t\t\t\tconn.close();\n\t\t\t\t}catch(SQLException e){\n\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\tex=e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tif(ex!=null){\n\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t\t}\n\t}",
"private void assignIntoGrade() {\n }",
"private static void LessonDAOUpdate() {\n PersonDAO personDAO = new PersonDAOImpl();\n\n Person person = personDAO.getPersonById(7);\n person.setFirstName(\"Teddy\");\n\n if(personDAO.updatePerson(person)) {\n System.out.println(\"Person Update Success!\");\n } else {\n System.out.println(\"Person Update Fail!\");\n }\n }",
"@Override\n public void run() {\n try {\n stringOrganizationIds.remove(defaultOrg);\n List<Integer> organizationIds = FluentIterable.from(stringOrganizationIds)\n .transform(Ints.stringConverter()).toList();\n\n newUser.setActive(false);\n UserProfileStruct savedUser = createAccountInternal(conn, newUser, password, resetQuestion,\n resetAnswer, givenName, surname, organizationId);\n for (Integer orgId : organizationIds) {\n Profile profile = new Profile();\n profile.setGivenName(givenName);\n profile.setSurname(surname);\n profile.setOrganizationId(orgId);\n profile.setUserId(savedUser.credentialedUser.getId());\n profile = profilePersister.createProfile(profile, conn);\n\n authService.grantAtLeast(profile.getId(), ROLE_READER, orgId);\n authService.grantAtLeast(orgId, ROLE_ADMIN, profile.getId());\n }\n\n User user = savedUser.credentialedUser.getUser();\n user.setActive(true);\n persistenceService.process(conn, new UserPersister.UpdateUserFunc(user));\n conn.commit();\n } catch (Exception e) {\n closeConnection(conn);\n }\n }",
"private static void assignMemberOwnerToMembership(Object[] membershipArray) {\r\n PITMembershipView membership = (PITMembershipView)membershipArray[0];\r\n PITMember member = (PITMember)membershipArray[2];\r\n\r\n membership.setPITMember(member);\r\n }",
"@Test\n\tpublic void updateTask() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tfinal Task task = new Task(\"Task 1\", 1, 1, asgn.getID());\n\t\tasgn.addTask(task);\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\ttask.setPercentComplete(0.174);\n\t\tStorageService.updateTask(task);\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}",
"@Override\n\tpublic void updateTeam(String name, SuperHuman superHuman) {\n\n\t}",
"@Test\n\tvoid updateUserAddGroup() {\n\t\t// Pre condition, check the user \"wuser\", has not yet the group \"DIG\n\t\t// RHA\" we want to be added by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Pre condition, check the user \"wuser\", has no group visible by\n\t\t// \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult.getData().get(0).getGroups().size());\n\n\t\t// Pre condition, check the user \"wuser\", \"Biz Agency Manager\" is not\n\t\t// visible by \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager.getRecordsTotal());\n\t\tAssertions.assertEquals(0, usersFromOtherGroupManager.getData().get(0).getGroups().size());\n\n\t\t// Add a new valid group \"DIG RHA\" to \"wuser\" by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user = new UserOrgEditionVo();\n\t\tuser.setId(\"wuser\");\n\t\tuser.setFirstName(\"William\");\n\t\tuser.setLastName(\"User\");\n\t\tuser.setCompany(\"ing\");\n\t\tuser.setMail(\"wuser.wuser@ing.fr\");\n\t\tfinal List<String> groups = new ArrayList<>();\n\t\tgroups.add(\"DIG RHA\");\n\t\tgroups.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups);\n\t\tresource.update(user);\n\n\t\t// Check the group \"DIG RHA\" is added and\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\t\tAssertions.assertEquals(2, tableItem.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\", tableItem.getData().get(0).getGroups().get(0).getName());\n\t\tAssertions.assertEquals(\"DIG RHA\", tableItem.getData().get(0).getGroups().get(1).getName());\n\n\t\t// Check the user \"wuser\", still has no group visible by \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult2 = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult2.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult2.getData().get(0).getGroups().size());\n\n\t\t// Check the user \"wuser\", still has the group \"DIG RHA\" visible by\n\t\t// \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager2.getRecordsTotal());\n\t\tAssertions.assertEquals(\"DIG RHA\", usersFromOtherGroupManager2.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Restore the old state\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user2 = new UserOrgEditionVo();\n\t\tuser2.setId(\"wuser\");\n\t\tuser2.setFirstName(\"William\");\n\t\tuser2.setLastName(\"User\");\n\t\tuser2.setCompany(\"ing\");\n\t\tuser2.setMail(\"wuser.wuser@ing.fr\");\n\t\tfinal List<String> groups2 = new ArrayList<>();\n\t\tgroups2.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups2);\n\t\tresource.update(user);\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater2.getData().get(0).getGroups().get(0).getName());\n\t}",
"@Test\n\tpublic void testCourseSetMembersReconciled() throws Exception {\n\t\tMembership member = (Membership)cmService.getCourseSetMemberships(\"ucb\").iterator().next();\n\t\tAssert.assertEquals(\"birgeneau\", member.getUserId());\n\t\tAssert.assertEquals(\"president\", member.getRole());\n\t\t\n\t\t// Add a new membership\n\t\tMembership newMember = cmAdmin.addOrUpdateCourseSetMembership(\"foo\", \"bar\", \"ucb\", \"active\");\n\t\t\n\t\t// Ensure it was added\n\t\tAssert.assertTrue(cmService.getCourseSetMemberships(\"ucb\").contains(newMember));\n\t\t\n\t\t// Reconcile again\n\t\tjob.syncAllCmObjects();\n\t\t\n\t\t// Ensure that the new member was removed\n\t\tAssert.assertFalse(cmService.getCourseSetMemberships(\"ucb\").contains(newMember));\n\t}",
"int updateParticipant(TccTransaction tccTransaction);",
"void setPassedUser(User passedUser);",
"void assign (int departmentId, AssignEmployeeRequest empList);",
"void update(Employee nurse);",
"public void assign(String id,String pass,int num,String act_id,linked_list<Project> pro_list,linked_list<Activity> act_list,linked_list<Employee1> elist) throws IOException\n {\n \tNode<Admin> pos = adm_list.getFirst();\n\t\t\twhile(pos!=null)\n\t\t\t{\n\t\t\t\tif(pos.getData().employee_id.equals(id) && pos.getData().password.equals(pass))\n\t\t\t\t{\n\t\t\t\t\tNode<Project> pro=pro_list.getFirst();\n\t\t\t\t\twhile(pro!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(pos.getData().admin_project_key.equals(pro.getData().project_id))//checking whether the project key and id provided by admin are same or not\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tNode<Activity> a=act_list.getFirst();\n\t\t\t\t\t\t\twhile(a!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(act_id.equals(a.getData().activity_id))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ta.getData().assign_group(elist);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Group of employees:\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(a.getData().toString());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ta=a.getNext();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpro=pro.getNext();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpos = pos.getNext();\n\t\t\t}\n\t\t\t\n\t\t\twrite_adm_file();\n\t }",
"@Override\r\n\tpublic void updatePermitted(DriverVO driverVO) {\n\t\t\r\n\t}",
"@Test(dependsOnMethods = {\"testAddTeam\"})\n\tpublic void testUpdateTeam() {\n\t}",
"private EditPlanDirectToManaged signUpAndReachEditPlan() throws Exception{\n //Initializing investment strategy object used to keep track of Glidepath investment strategy in relation to age to retirement and RTQ\n //Default User has age of 35 and 30 years to retirement\n InvestmentStrategyObject.initAllStrategies();\n //Login and create Premium Gaslamp User\n AdvisorSplashPage advisorSplashPage = new AdvisorSplashPage(getDriver());\n DetermineInvestmentStrategyPage displayPage = signupAndOnboard(advisorSplashPage,\n Constants.LastName.PREMIUM_INDIVIDUAL);\n //Enter Random RTQ Selections\n gaslamp.directToManaged.InvestmentStrategyPage investmentStrategyPage = EnterAndEditRTQ(RTQAnswerTypes.RANDOM,displayPage);\n PortfolioAnalysisPage portfolioAnalysisPage = investmentStrategyPage.navigateToPortfolioAnalysisPage();\n\n LinkedAccountsPage linkedAccountsPage = linkDAGAccount(portfolioAnalysisPage);\n portfolioAnalysisPage = linkedAccountsPage.clickOnNextButton();\n verifyPortfolioElements(portfolioAnalysisPage);\n\n //Edit the plan and re-do the RTQ\n Reporter.log(\"Editing Plan and Assumptions.\", true);\n EditPlanDirectToManaged editPlanPage = portfolioAnalysisPage.clickOnEditInPlaceTrigger();\n softAssert.assertTrue(editPlanPage.verifyEditPlanElements());\n return editPlanPage;\n }",
"@Override\n\tpublic void updateTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}",
"public boolean assignManuscript(Manuscript theManuscript){\r\n\t\tboolean wasAssigned = true;\r\n\t\t\r\n\t\t//Condition 1: check if Reviewer is a coauthor on this manuscript \r\n\t\t//Condition 2: check if Reviewer is over review limit\r\n\t\t\r\n\t\t//separate these tests and throw exceptions\r\n\t\t//also need to add a check for if this reviewer is already assigned to this manuscript.\r\n\t\tif ((isReviewerAnAuthor(theManuscript) != true) || (isOverReviewLimit(theManuscript.getConferenceID()) == true)) {\r\n\t\t\twasAssigned = false;\t\t\t\r\n\t\t} else {\r\n\t\t\tif(isReviewerAssignedToConference(theManuscript.getConferenceID()) == false) {\r\n\t\t\t\tHashSet<UUID> currentManuList = this.myConferencesAndAssignedManuscriptsList.get(theManuscript.getConferenceID());\r\n\t\t\t\t// TODO: check if manuscript already exists within list\r\n\t\t\t\tcurrentManuList.add(theManuscript.getMyID());\r\n\t\t\t\t// save manuscript to DB\r\n\t\t\t\tnew ManuscriptDatabase().saveManuscriptToDatabase(theManuscript);\r\n\t\t\t\t// add manuscript to associated conference of manuscript and save to DB, save account to DB as well\r\n\t\t\t\tthis.myConferencesAndAssignedManuscriptsList.put(theManuscript.getConferenceID(), currentManuList);\r\n\t\t\t\tAccount updatedAcct = new AccountDatabase().getAccountByReviewer(this);\r\n\t\t\t\tupdatedAcct.setReviewer(this);\r\n\t\t\t\twasAssigned = true;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tHashSet<UUID> newManuList = new HashSet<UUID>();\r\n\t\t\t\tnewManuList.add(theManuscript.getMyID());\r\n\t\t\t\t// save manuscript to DB\r\n\t\t\t\tnew ManuscriptDatabase().saveManuscriptToDatabase(theManuscript);\r\n\t\t\t\t// add manuscript to associated conference of manuscript and save to DB, save account to DB as well\r\n\t\t\t\tthis.myConferencesAndAssignedManuscriptsList.put(theManuscript.getConferenceID(), newManuList);\r\n\t\t\t\tAccount updatedAcct = new AccountDatabase().getAccountByReviewer(this);\r\n\t\t\t\tupdatedAcct.setReviewer(this);\r\n\t\t\t\twasAssigned = true;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn wasAssigned;\r\n\t}",
"public String modifyStu() {\n\t\tSystem.out.println(\"====================>>>>>\");\r\n\t\tSystem.out.println(stu.getStu_class());\r\n\t\tSystem.out.println(stu.getStu_name());\r\n\t\tSystem.out.println(de_id);\r\n\t\tDepartment de = departmentService.findDepartById(de_id);\r\n\t\tstu.setStu_department(de);\r\n\t\tSystem.out.println(\"====================>>>>>\");\r\n\t\tstuser.updateStudent(stu);\r\n\t\treturn \"modifyStuSuccess\";\r\n\t}",
"public void updateUser(Person user) {\n\t\t\n\t}",
"void updateTask(UserDto user);",
"public void testAssignBlogContributors() {\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1\");\n assertEquals(\"user1\", rootBlog.getProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY));\n assertEquals(\"user1\", rootBlog.getBlogContributors());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(1, users.size());\n assertTrue(users.contains(\"user1\"));\n\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1,user2\");\n assertEquals(\"user1,user2\", rootBlog.getProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY));\n assertEquals(\"user1,user2\", rootBlog.getBlogContributors());\n\n users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(2, users.size());\n assertTrue(users.contains(\"user1\"));\n assertTrue(users.contains(\"user2\"));\n }",
"public abstract void distributeTeamsPointsRedoubleGame(Announce normalAnnounce);",
"public void newTeam(Team team);",
"public IndependentTutor updateIndependantTutor(String name,String dob,String email,String contact,String address,String gender,String discipline,\n\t\t\tString subdiscipline,String dayslot,String timeslot,int experience,double remuneration,String location,String bs,String description,String pass) throws SQLException {\n\t\tIndependentTutor t = new IndependentTutor(name, dob, email, contact, address, gender, discipline, subdiscipline, experience, remuneration, dayslot, timeslot, location, bs, description, pass);\n\t\tboolean flag = t.updateIndependent(t);\n\t\treturn t;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Test\n\tpublic void testCourseOfferingMembersReconciled() throws Exception {\n\t\tMembership member = (Membership)cmService.getCourseOfferingMemberships(\"biology_101_01\").iterator().next();\n\t\tAssert.assertEquals(\"assistant\", member.getRole());\n\t\t\n\t\t// Add a new membership\n\t\tMembership newMember = cmAdmin.addOrUpdateCourseOfferingMembership(\"foo\", \"bar\", \"biology_101_01\",\"active\");\n\t\t\n\t\t// Ensure it was added\n\t\tAssert.assertTrue(cmService.getCourseOfferingMemberships(\"biology_101_01\").contains(newMember));\n\t\t\n\t\t// Reconcile again\n\t\tjob.syncAllCmObjects();\n\t\t\n\t\t// Ensure that the new member was removed\n\t\tAssert.assertFalse(cmService.getCourseOfferingMemberships(\"biology_101_01\").contains(newMember));\n\t}",
"public void verifyTodoAssignToFrontend(String toDoName, String assigneeName) {\n getLogger().info(\"Verify name of assignee on UI after assign. Expected: \" + assigneeName);\n try {\n Thread.sleep(largeTimeOut);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String assignee = getDriver().findElement(By.xpath(\n \"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[@class='newRow']//div[contains(@class,'ui dropdown auditor')]/div[@class='text']\"))\n .getText();\n //System.out.println(\"++++++++++++++++++++++++++++++++++++++++assigneeName - text \" + assignee + \" - \" + assigneeName);\n if (assigneeName.equals(assignee)) {\n NXGReports.addStep(\"Verify name of assignee on UI after assign. Expected: \" + assigneeName, LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify name of assignee on UI after assign. Expected: \" + assigneeName, LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"@Override\n public void addToModel() {\n for (final Person person : team.observableTeamMembers()) {\n person.setTeam(team);\n }\n\n // Add team to project\n organisation.getTeams().add(team);\n }",
"public RepositoryAssignment()\r\n\t{\r\n\t\tteamMembers = new ArrayList<String>();\r\n\t}",
"@Test\n public void testAssignReinforcements() {\n IssueOrderPhase l_issueOrder = new IssueOrderPhase(d_gameEngine);\n l_issueOrder.d_gameData = d_gameData;\n l_issueOrder.assignReinforcements();\n d_gameData = l_issueOrder.d_gameData;\n int l_actualNoOfArmies = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n int l_expectedNoOfArmies = 8;\n assertEquals(l_expectedNoOfArmies, l_actualNoOfArmies);\n }",
"public PioneeringMission(AIMain aiMain, AIUnit aiUnit) {\n super(aiMain, aiUnit);\n\n if (!hasTools()) colonyWithTools = findColonyWithTools(aiUnit);\n tileImprovementPlan = findTileImprovementPlan(aiUnit);\n tileImprovementPlan.setPioneer(aiUnit);\n logger.finest(\"AI pioneer starts with plan \"\n + tileImprovementPlan + \"/\" + tileImprovementPlan.getTarget()\n + \": \" + aiUnit.getUnit());\n }",
"@Test\n\tpublic void assignmentTask() {\n\t\tselectClass();\n\t\tnavigateTo(\"Assignments\",\"assignments\");\n\t\ttester.clickButtonWithText(\"Add\");\n\t\ttester.setWorkingForm(\"addassignment\");\n\t\ttester.setTextField(\"title\", \"Foo\");\n\t\ttester.setTextField(\"task\", \"<a href=\\\"http://unitn.it\\\">Evil Link</a>\");\n\t\ttester.setTextField(\"total\", \"10\");\n\t\ttester.setTextField(\"assigneddate\", \"1\");\n\t\ttester.setTextField(\"duedate\", \"5\");\n\t\ttester.clickButtonWithText(\"Add Assignment\");\n\t\t\n\t\ttester.assertLinkNotPresentWithText(\"Evil Link\");\n\t}",
"@Test\r\n\tpublic void saveTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTswacct \r\n\t\tInteger teamId_3 = 0;\r\n\t\tTswacct related_tswacct = new wsdm.domain.Tswacct();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTswacct(teamId_3, related_tswacct);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTswacct\r\n\t}",
"@Test\n\tpublic void addAssignment() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tasgn.addTask(new Task(\"Task 1\", 1, 1, asgn.getID()));\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}",
"@Override\r\n\tpublic void reviewOfPastYear(ExemptTeamMember exemptTeamMember) {\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void updateProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}",
"@Override\n @Secured({ \"GROUP_AGENT\" })\n void update( ExpressionExperiment expressionExperiment );",
"@Test\n\tpublic void testUpdateActionIsPerformedWhenPermissionInheritedAndUserAuthenticatedAndAllowed()\n\t\t\tthrows Throwable {\n\t\tcheck(getAllowedUser(), HttpStatus.SC_OK);\n\t}",
"@Override\n\tpublic void updateUser(user theUser) {\n\t}",
"boolean updateTicket(Ticket ticket, boolean createdByMe, boolean assignedToMe, boolean managedByMe);",
"public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }",
"@Test\n\tvoid update() {\n\t\tfinal UserOrgEditionVo userEdit = new UserOrgEditionVo();\n\t\tuserEdit.setId(\"flast1\");\n\t\tuserEdit.setFirstName(\"FirstA\");\n\t\tuserEdit.setLastName(\"LastA\");\n\t\tuserEdit.setCompany(\"ing\");\n\t\tuserEdit.setMail(\"flasta@ing.com\");\n\t\tfinal List<String> groups = new ArrayList<>();\n\t\tgroups.add(\"dig rha\");\n\t\tuserEdit.setGroups(groups);\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tresource.update(userEdit);\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"flast1\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\n\t\tfinal UserOrgVo user = tableItem.getData().get(0);\n\t\tAssertions.assertEquals(\"flast1\", user.getId());\n\t\tAssertions.assertEquals(\"Firsta\", user.getFirstName());\n\t\tAssertions.assertEquals(\"Lasta\", user.getLastName());\n\t\tAssertions.assertEquals(\"ing\", user.getCompany());\n\t\tAssertions.assertEquals(\"flasta@ing.com\", user.getMails().get(0));\n\t\tAssertions.assertEquals(1, user.getGroups().size());\n\t\tAssertions.assertEquals(\"DIG RHA\", user.getGroups().get(0).getName());\n\n\t\t// Rollback attributes\n\t\tuserEdit.setId(\"flast1\");\n\t\tuserEdit.setFirstName(\"First1\");\n\t\tuserEdit.setLastName(\"Last1\");\n\t\tuserEdit.setCompany(\"ing\");\n\t\tuserEdit.setMail(\"first1.last1@ing.fr\");\n\t\tuserEdit.setGroups(null);\n\t\tresource.update(userEdit);\n\t}",
"public interface ReviewAssignmentProjectManager extends Configurable {\n /**\n * Adds reviewers to project and extends some project phases if necessary.\n *\n * @param reviewAuction\n * Review auction.\n * @param project\n * the Project.\n * @param assignment\n * Set of approved review applications.\n *\n * @throws IllegalArgumentException\n * If any argument is null or assignment contains null key.\n * @throws ReviewAssignmentProjectManagementException\n * If any other error with managing projects resources and phases occurs.\n */\n public void addReviewersToProject(ReviewAuction reviewAuction, Project project,\n Set<ReviewApplication> assignment)\n throws ReviewAssignmentProjectManagementException;\n}",
"public void update(User u) {\n\r\n\t}",
"public void updateTeamFromResults(Match m){\r\n \r\n //Update team1\r\n m.getTeam1().setGoalsFor(m.getTeam1().getGoalsFor() + m.getScore1());\r\n m.getTeam1().setGoalsAgainst(m.getTeam1().getGoalsAgainst() + m.getScore2());\r\n \r\n //Update team2\r\n m.getTeam2().setGoalsFor(m.getTeam2().getGoalsFor() + m.getScore2());\r\n m.getTeam2().setGoalsAgainst(m.getTeam2().getGoalsAgainst() + m.getScore1());\r\n \r\n //Add points\r\n if (m.getScore1() < m.getScore2()){\r\n m.getTeam2().setPoints(m.getTeam2().getPoints() + 3);\r\n m.getTeam1().setMatchLost(m.getTeam1().getMatchLost() + 1);\r\n m.getTeam2().setMatchWon(m.getTeam2().getMatchWon() + 1);\r\n }\r\n else if (m.getScore1() > m.getScore2()){\r\n m.getTeam1().setPoints(m.getTeam1().getPoints() + 3);\r\n m.getTeam2().setMatchLost(m.getTeam2().getMatchLost() + 1);\r\n m.getTeam1().setMatchWon(m.getTeam1().getMatchWon() + 1);\r\n }\r\n else {\r\n m.getTeam1().setPoints(m.getTeam1().getPoints() + 1);\r\n m.getTeam2().setPoints(m.getTeam2().getPoints() + 1);\r\n m.getTeam1().setMatchDrawn(m.getTeam1().getMatchDrawn() + 1);\r\n m.getTeam2().setMatchDrawn(m.getTeam2().getMatchDrawn() + 1);\r\n }\r\n \r\n //Update the rankings\r\n this.updateTeamRank();\r\n }",
"public void onAssignStaffToRequest(CustomerRequest request, String staff);",
"@Test\n\tpublic void testAddAssignment() {\n\t}",
"@Test\n public void testUpdateOrg() {\n Organization org = new Organization();\n org.setOrgId(1);\n org.setOrgName(\"Avenger\");\n org.setDescription(\"blah blah\");\n org.setAddress(ad);\n dao.addOrg(org);\n org.setOrgName(\"X-Men\");\n assertNotEquals(org, dao.getOrg(org.getOrgId()));\n Organization fromDao = dao.updateOrg(org);\n assertEquals(org, fromDao);\n }",
"public void updateActualTime() {\n if (role.getText().equals(\"Member\")) {\n warning.setText(\"\");\n String orderNumber = orderNo.getText();\n int orderNum = 0;\n String realTime = actualTime.getText();\n int actlTime = 0;\n if (orderNumber.equals(\"\")) {\n warning.setText(emptyOrderNum);\n } else if (!Validation.isValidOrderNumber(orderNumber)) {\n warning.setText(invalidOrderNum);\n } else if (actualTime.getText().isEmpty() || !Validation.isValidActualTime(realTime)) {\n warning.setText(invalidActualTime);\n } else {\n orderNum = Integer.parseInt(orderNo.getText());\n actlTime = Integer.parseInt(actualTime.getText());\n\n UserDAO userDAO = new UserDAO();\n User user = userDAO.getUser(logname.getText());\n PlanDAO planDAO = new PlanDAO();\n int userId = user.getId();\n Plan plan = new Plan(orderNum, actlTime);\n planDAO.editActualTime(plan, userId);\n updateTableFromDB(orderNumber);\n warning.setText(\"Actual time of order \" + orderNum + \" updated successfully \");\n }\n } else {\n warning.setText(\"Please use Update button\");\n }\n }",
"void modifyDepartment(Department dRef);",
"protected void apply() {\r\n\t\tplayer.setAutoRoll(autoroll);\r\n\t\tplayer.setMission(mission);\r\n\t\tplayer.setState(state);\r\n\t\tplayer.getCards().setArtillery(cards.getArtillery());\r\n\t\tplayer.getCards().setCavalry(cards.getCavalry());\r\n\t\tplayer.getCards().setInfantry(cards.getInfantry());\r\n\t\tplayer.getCards().setJokers(cards.getJokers());\r\n\t\tMember member = player.getMember();\r\n\t\tif(score == Score.WIN) {\r\n\t\t\tmember.setScore(member.getScore() + player.getGame().getPlayers().size() - 1);\r\n\t\t\tmember.setWins(member.getWins() + 1);\r\n\t\t} else if(score == Score.LOSS) {\r\n\t\t\tmember.setScore(member.getScore() - 1);\r\n\t\t\tmember.setLosses(member.getLosses() + 1);\r\n\t\t}\r\n\t}",
"@Override\n public void updateForumAccess(String userId, String forumId) {\n\n\t}",
"private void updateTeacherSecurityInfo() {\n\t\t\n\t\tteacher.setPassword(tOldPasswordPF.getPassword());\n\t\tteacher.setSecuirtyAnswer1(tSecurityQ1TF.getText());\n\t\tteacher.setSecurityQuestion1((String)tSecurityList1.getSelectedItem());\n\t\tteacher.setSecurityAnswer2(tSecurityQ2TF.getText());\n\t\tteacher.setSecurityQuestion2((String)tSecurityList1.getSelectedItem());\n\t\t\n\t\t//Update Teacher security information in database\n\t\t\n\t}",
"protected void commitRequirements(NbaRequirementRequestVO reqRequestVO, List reqs, String partyID, long personCode, long personSeq, NbaTXLife nbaTXLife, NbaDst nbaDst)\n throws NbaBaseException {\n \n Policy policy = nbaTXLife.getPolicy(); \n boolean hasManualOrderedOrFollowedUpWork = false; \n NbaRequirement nbaReq = null;\n String user = reqRequestVO.getNbaUserVO().getUserID();\n NbaLob lob = reqRequestVO.getNbaDst().getNbaLob();\n int count = reqs.size();\n for (int i = 0; i < count; i++) {\n nbaReq = (NbaRequirement) reqs.get(i);\n if (nbaReq.isActionAdd()) {\n nbaReq.setPersonCode(personCode);\n nbaReq.setPersonSeq(personSeq);\n RequirementInfo reqInfo = new NbaRequirementUtils().createRequirementInfo(reqRequestVO.getNbaTXLife(), lob, nbaReq, getNbaOLifEId(nbaTXLife), partyID);//ALS2886, ALS4243, APSL1427\n RequirementInfoExtension reqInfoExt = NbaUtils.getFirstRequirementInfoExtension(reqInfo); \n NbaRequirementUtils.addProviderInfo(nbaReq.getVendor(), reqInfoExt);\n reqInfoExt.setReqOrderReason(nbaReq.getReqOrdReason()); //NBLXA-1895\n reqInfoExt.setFollowUpDate(nbaReq.getFollowUpDate()); //APSL3545\n reqInfo.setRequirementInfoUniqueID(NbaRequirementUtils.generateRequirementInfoUniqueID(nbaTXLife, reqInfo));\n nbaReq.setUniqueID(reqInfo.getRequirementInfoUniqueID());\n reqInfo.setUserCode(user);\n NbaRequirementUtils.createRequirementTransaction(nbaDst, nbaReq);\n reqInfo.setAppliesToPartyID(nbaTXLife.getPartyId(personCode));\n policy.addRequirementInfo(reqInfo);\n policy.setActionUpdate();\n if (nbaReq.hasDoctor() || ! NbaUtils.isBlankOrNull(nbaReq.getFullName())) { //NBLXA-1343\n addDoctorToRequirement(nbaTXLife, nbaReq, reqInfo);\n }\n //END NBA130\n //QC12292 APSL3402 deleted code \n } else if (nbaReq.isActionUpdate()) {\n \tRequirementInfo reqInfo = nbaTXLife.getRequirementInfo(nbaReq.getRequirementInfoUniqueID()); //NBA208-36\n RequirementInfoExtension reqInfoExt = NbaUtils.getFirstRequirementInfoExtension(reqInfo); //NBA208-36\n if (nbaReq.getTransactionID() != null) {\t//Null if only Review was changed\t//NBA208-36\n\t if (nbaReq.getStatus() == NbaOliConstants.OLI_REQSTAT_RECEIVED) {\n\t NbaRequirementUtils.satisfyRequirement(nbaDst, nbaReq, reqInfo);\n\t } else {\n\t NbaRequirementUtils.updateRequirement(nbaDst, nbaReq);\n\t }\n\t }\t//NBA208-36\n NbaRequirementUtils.updateRequirement(nbaTXLife, nbaReq);\n //NBA208-36 code deleted\n NbaRequirementUtils.addProviderInfo(nbaReq.getVendor(), reqInfoExt); \n reqInfo.setReqStatus(nbaReq.getStatus());\n reqInfo.setRequirementDetails(nbaReq.getMessage());\n if(reqInfo.getReqStatus() == NbaOliConstants.OLI_REQSTAT_RECEIVED && !reqInfo.hasReceivedDate()) { //SPR3436 //ALS3039\n reqInfo.setReceivedDate(new Date());\t//SPR3436\n reqInfoExt.setReceivedDateTime(NbaUtils.getStringFromDateAndTime(new Date()));//QC20240\n }\t//SPR3436\n if(reqInfo.getReqStatus() == NbaOliConstants.OLI_REQSTAT_WAIVED) { //ALS2271\n reqInfo.setStatusDate(new Date());\t//ALS2271\n } //ALS2271\n\n reqInfo.setActionUpdate();\n if (nbaReq.hasDoctor() || ! NbaUtils.isBlankOrNull(nbaReq.getFullName())) { // NBLXA-1343\n \tupdateDoctorToRequirement(nbaTXLife, nbaReq, reqInfo, reqRequestVO); //NBA224\n }\n if (nbaReq.getManualOrderedFollowedUp() != null) {\n updateRequirementForManualOrderedOrFollowedUp(nbaTXLife, nbaReq, reqInfo);\n hasManualOrderedOrFollowedUpWork = true;\n }\n }\n commitRequirementReviews(nbaTXLife, nbaReq, partyID, user);\n \n resetLastReqIndicator(nbaTXLife, partyID,reqRequestVO,nbaDst,nbaReq);//NBLXA186-NBLXA127\n }\n \n if (hasManualOrderedOrFollowedUpWork) { \n createCompletedAggregateWork(reqRequestVO); \n } \n }",
"@Override\n\tpublic void modify(UserDTO dto) {\n\t\tdao.modify(dto);\n\t}",
"@Test\n public void test222AssignRoleMapmakerToWally() throws Exception {\n\t\tfinal String TEST_NAME = \"test222AssignRoleMapmakerToWally\";\n displayTestTitle(TEST_NAME);\n\n Task task = createTask(TEST_NAME);\n OperationResult result = task.getResult();\n\n DummyGroup mapmakers = new DummyGroup(GROUP_DUMMY_MAPMAKERS_NAME);\n getDummyResource().addGroup(mapmakers);\n\n PrismObject<UserType> user = findUserByUsername(USER_WALLY_NAME);\n\n\t\t// WHEN\n displayWhen(TEST_NAME);\n assignRole(user.getOid(), ROLE_MAPMAKER_OID, task, result);\n\n // THEN\n displayThen(TEST_NAME);\n result.computeStatus();\n TestUtil.assertSuccess(result);\n\n\t\tassertGroupMember(GROUP_DUMMY_MAPMAKERS_NAME, USER_WALLY_NAME, getDummyResource());\n\t}",
"public void getAssignment() {\n \n }",
"@Test\n public void setTutor() {\n Employee em = employeeService.findById(5);\n System.out.println(\"=======\" + em.getName());\n Student student1 = studentService.findById(22);\n System.out.println(\"*********\" + student1.getName());\n student1.setTutor(em);\n studentService.update(student1);\n studentService.saveOrUpdate(student1);\n }",
"void updateAccount();",
"@Override\r\n\tpublic int update(SpUser t) {\n\t\treturn 0;\r\n\t}",
"public void editCommissionAccounts(CommissionAccount commissionAccount);",
"@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}",
"public static void setServer()\n\t{\n\t\t\n\t\t// also test the second constructor of business plan\n\t\t\n\t\t// creates 2 admin lists and users lists for the depts\n\t\tArrayList<User> usersList1 = new ArrayList<User>();\n\t\tArrayList<User> usersList2 = new ArrayList<User>();\n\t\t\n\t\tArrayList<User> adminList1 = new ArrayList<User>();\n\t\tArrayList<User> adminList2 = new ArrayList<User>();\n\t\t\n\t\t\n\t\t// creates the users and adds to lists\n\t\tUser user1 = new User(\"user1\", \"a\", \"1\", \"CSC\", false);\n\t\tUser user2 = new User(\"user2\", \"b\", \"2\", \"CSC\", false);\n\t\tUser user3 = new User(\"user3\", \"c\", \"3\", \"CSC\", false);\n\t\tusersList1.add(user1);\n\t\tusersList1.add(user2);\n\t\tusersList1.add(user3);\n\t\tUser user4 = new User(\"user4\", \"d\", \"4\", \"English\", false);\n\t\tUser user5 = new User(\"user5\", \"e\", \"5\", \"English\", false);\n\t\tUser user6 = new User(\"user6\", \"f\", \"6\", \"English\", false);\n\t\tusersList2.add(user4);\n\t\tusersList2.add(user5);\n\t\tusersList2.add(user6);\n\t\t\n\t\t// creats the admins and adds to list\n\t\tUser admin1 = new User(\"admin1\", \"a\", \"1\", \"CSC\", true);\n\t\tUser admin2 = new User(\"admin2\", \"b\", \"2\", \"English\", true);\n\t\tadminList1.add(admin1);\n\t\tadminList2.add(admin2);\n\t\t\n\t\tDepartment CSC = new Department();\n\t\tCSC.setDepartmentName(\"CSC\");\n\t\tCSC.setAdmin(adminList1);\n\t\tCSC.setUsers(usersList1);\n\t\tDepartment English = new Department(\"English\", adminList2, usersList2);\n\t\tEnglish.setDepartmentName(\"English\");\n\t\tEnglish.setAdmin(adminList2);\n\t\tEnglish.setUsers(usersList2);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\n\t\t\n\t\tdeptNames.add(\"CSC\");\n\t\tdeptNames.add(\"English\");\n\t\t\n\t\t\n\t\tserv.save(CSC);\n\t\tserv.save(English);\n\t}",
"Team createTeam();",
"public void updateAirForceTeam(Collection<Unit> airunits) {\n\t\t\n\t\t// remove airunit of invalid team \n\t\tList<Integer> invalidUnitIds = new ArrayList<>();\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (!UnitUtils.isCompleteValidUnit(airunit)) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t} else if (airForceTeamMap.get(airunitId).leaderUnit == null) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t}\n\t\t}\n\t\tfor (Integer invalidUnitId : invalidUnitIds) {\n\t\t\tairForceTeamMap.remove(invalidUnitId);\n\t\t}\n\t\t\n\t\t// new team\n\t\tfor (Unit airunit : airunits) {\n\t\t\tAirForceTeam teamOfAirunit = airForceTeamMap.get(airunit.getID());\n\t\t\tif (teamOfAirunit == null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), new AirForceTeam(airunit));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 리더의 위치를 비교하여 합칠 그룹인지 체크한다.\n\t\t// - 클로킹모드 상태가 다른 그룹은 합치지 않는다.\n\t\t// - 수리 상태의 그룹은 합치지 않는다.\n\t\tList<AirForceTeam> airForceTeamList = new ArrayList<>(new HashSet<>(airForceTeamMap.values()));\n\t\tMap<Integer, Integer> airForceTeamMergeMap = new HashMap<>(); // key:merge될 그룹 leaderID, value:merge할 그룹 leaderID\n\t\t\n\t\tint mergeDistance = AIR_FORCE_TEAM_MERGE_DISTANCE;\n\t\tif (InfoUtils.enemyRace() == Race.Terran) {\n\t\t\tmergeDistance += 120;\n\t\t}\n\t\tfor (int i = 0; i < airForceTeamList.size(); i++) {\n\t\t\tAirForceTeam airForceTeam = airForceTeamList.get(i);\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tboolean cloakingMode = airForceTeam.cloakingMode;\n\t\t\tfor (int j = i + 1; j < airForceTeamList.size(); j++) {\n\t\t\t\tAirForceTeam compareForceUnit = airForceTeamList.get(j);\n\t\t\t\tif (compareForceUnit.repairCenter != null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (cloakingMode != compareForceUnit.cloakingMode) { // 클로킹상태가 다른 레이쓰부대는 합쳐질 수 없다.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tUnit airForceLeader = airForceTeam.leaderUnit;\n\t\t\t\tUnit compareForceLeader = compareForceUnit.leaderUnit;\n\t\t\t\tif (airForceLeader.getID() == compareForceLeader.getID()) {\n//\t\t\t\t\tSystem.out.println(\"no sense. the same id = \" + airForceLeader.getID());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (airForceLeader.getDistance(compareForceLeader) <= mergeDistance) {\n\t\t\t\t\tairForceTeamMergeMap.put(compareForceLeader.getID(), airForceLeader.getID());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 합쳐지는 에어포스팀의 airForceTeamMap을 재설정한다.\n\t\tfor (Unit airunit : airunits) {\n\t\t\tInteger fromForceUnitLeaderId = airForceTeamMap.get(airunit.getID()).leaderUnit.getID();\n\t\t\tInteger toForceUnitLeaderId = airForceTeamMergeMap.get(fromForceUnitLeaderId);\n\t\t\tif (toForceUnitLeaderId != null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), airForceTeamMap.get(toForceUnitLeaderId));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// team 멤버 세팅\n\t\tSet<AirForceTeam> airForceTeamSet = new HashSet<>(airForceTeamMap.values());\n\t\tfor (AirForceTeam airForceTeam : airForceTeamSet) {\n\t\t\tairForceTeam.memberList.clear();\n\t\t}\n\t\t\n\t\tList<Integer> needRepairAirunitList = new ArrayList<>(); // 치료가 필요한 유닛\n\t\tMap<Integer, Unit> airunitRepairCenterMap = new HashMap<>(); // 치료받을 커맨드센터\n\t\tList<Integer> uncloakedAirunitList = new ArrayList<>(); // 언클락 유닛\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (airunit.getHitPoints() <= 50) { // repair hit points\n\t\t\t\tAirForceTeam repairTeam = airForceTeamMap.get(airunitId);\n\t\t\t\tif (repairTeam == null || repairTeam.repairCenter == null) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airunit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tneedRepairAirunitList.add(airunitId);\n\t\t\t\t\t\tairunitRepairCenterMap.put(airunitId, repairCenter);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAirForceTeam airForceTeam = airForceTeamMap.get(airunit.getID());\n\t\t\tif (airForceTeam.cloakingMode && (airunit.getType() != UnitType.Terran_Wraith || airunit.getEnergy() < 15)) {\n\t\t\t\tuncloakedAirunitList.add(airunitId);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tairForceTeam.memberList.add(airunit);\n\t\t}\n\t\t\n\t\t// create separated team for no energy airunit\n\t\tfor (Integer airunitId : uncloakedAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam uncloackedForceTeam = new AirForceTeam(airunit);\n\t\t\tuncloackedForceTeam.memberList.add(airunit);\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, uncloackedForceTeam);\n\t\t}\n\t\t\n\t\t// create repair airforce team\n\t\tfor (Integer airunitId : needRepairAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam needRepairTeam = new AirForceTeam(airunit);\n\t\t\tneedRepairTeam.memberList.add(airunit);\n\t\t\tneedRepairTeam.repairCenter = airunitRepairCenterMap.get(airunit.getID());\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, needRepairTeam);\n\t\t}\n\t\t\n\t\t// etc (changing leader, finishing repair, achievement) \n\t\tSet<AirForceTeam> reorganizedSet = new HashSet<>(airForceTeamMap.values());\n\t\tachievementEffectiveFrame = 0;\n\t\tfor (AirForceTeam airForceTeam : reorganizedSet) {\n\t\t\t// leader 교체\n\t\t\tUnit newLeader = UnitUtils.getClosestUnitToPosition(airForceTeam.memberList, airForceTeam.getTargetPosition());\n\t\t\tairForceTeam.leaderUnit = newLeader;\n\t\t\t\n\t\t\t// repair 완료처리\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tif (!UnitUtils.isValidUnit(airForceTeam.repairCenter) || WorkerManager.Instance().getWorkerData().getNumAssignedWorkers(airForceTeam.repairCenter) < 3) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airForceTeam.leaderUnit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tairForceTeam.repairCenter = repairCenter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean repairComplete = true;\n\t\t\t\tfor (Unit airunit : airForceTeam.memberList) {\n\t\t\t\t\tif (airunit.getHitPoints() < airunit.getType().maxHitPoints() * 0.95) { // repair complete hit points\n\t\t\t\t\t\trepairComplete = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (repairComplete) {\n\t\t\t\t\tairForceTeam.repairCenter = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// achievement\n\t\t\tint achievement = airForceTeam.achievement();\n\t\t\taccumulatedAchievement += achievement;\n\t\t\tachievementEffectiveFrame = achievementEffectiveFrame + airForceTeam.killedEffectiveFrame * 100 - airForceTeam.damagedEffectiveFrame;\n\t\t}\n\t}",
"Transfer updateAuthorizationData(Long id, Transfer.Status status, AuthorizationLevel nextLevel, Calendar processDate);",
"private void setPermissions( String userId, ProposalDevelopmentDocument doc, Set<String> editModes ) {\n\t\tif ( editModes.contains( AuthorizationConstants.EditMode.FULL_ENTRY ) ) {\n\t\t\teditModes.add( \"modifyProposal\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ADD_BUDGET ) ) {\n\t\t\teditModes.add( \"addBudget\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.OPEN_BUDGETS ) ) {\n\t\t\teditModes.add( \"openBudgets\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_BUDGET ) ) {\n\t\t\teditModes.add( \"modifyProposalBudget\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_PROPOSAL_ROLES ) ) {\n\t\t\teditModes.add( \"modifyPermissions\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ADD_NARRATIVE ) ) {\n\t\t\teditModes.add( \"addNarratives\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.CERTIFY ) ) {\n\t\t\teditModes.add( \"certify\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_NARRATIVE_STATUS ) ) {\n\t\t\teditModes.add( \"modifyNarrativeStatus\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.PRINT_PROPOSAL ) ) {\n\t\t\teditModes.add( \"printProposal\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ALTER_PROPOSAL_DATA ) ) {\n\t\t\teditModes.add( \"alterProposalData\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.SHOW_ALTER_PROPOSAL_DATA ) ) {\n\t\t\teditModes.add( \"showAlterProposalData\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.SUBMIT_TO_SPONSOR ) ) {\n\t\t\teditModes.add( \"submitToSponsor\" );\n\t\t}\n\t\tif ( canExecuteTask( userId, doc, TaskName.MAINTAIN_PROPOSAL_HIERARCHY ) ) {\n\t\t\teditModes.add( \"maintainProposalHierarchy\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.REJECT_PROPOSAL ) ) {\n\t\t\teditModes.add( TaskName.REJECT_PROPOSAL );\n\t\t}\n\n\t\tsetNarrativePermissions( userId, doc, editModes );\n\t}",
"private void updateCourse() throws ValidatorException, FileNotFoundException {\n //Lesen wir die Daten\n Scanner sc = new Scanner(System.in);\n Teacher newTeacher;\n int newMaxNr;\n System.out.print(\"Course Id: \");\n Long id = Long.parseLong(sc.next());\n System.out.print(\"New name: \");\n String name = sc.next();\n //Wir konnen nur einen neuer Lehrer auswahlen, der bereits existiert\n while (true) {\n System.out.print(\"New teacher ID: \");\n long ID = sc.nextLong();\n newTeacher = ctrl.getTeacherRepo().findOne(ID);\n if (newTeacher == null)\n System.out.println(\"Teacher with this ID doesn't exist! Please try again!\");\n else\n break;\n }\n int nrStudentEnrolledAlready = ctrl.getCourse(id).getStudentsEnrolled().size();\n /*\n Wir konnen die maximale Anzahl von Studenten nur auf eine Zahl andern, die großer als die aktuelle Anzahl\n von eingeschreibenen Studenten ist\n */\n while (true) {\n System.out.print(\"New maximum number of students: \");\n newMaxNr = sc.nextInt();\n if (newMaxNr < nrStudentEnrolledAlready)\n System.out.println(\"There are more than \" + newMaxNr + \" students already taking this course. (\"\n + nrStudentEnrolledAlready + \") Try again!\");\n else\n break;\n }\n System.out.print(\"New number of credits: \");\n int newNrCredits = sc.nextInt();\n\n //Wir rufen die updateCourse Funktion vom dem Controller mit den gelesenen Daten auf\n if(ctrl.updateCourse(id, name, newTeacher, newMaxNr, newNrCredits))\n System.out.println(\"Course updated with success!\");\n else\n System.out.println(\"Course with this ID doesn't exist!\");\n }",
"public void update(User user);",
"void updateCourseDetails(String courseId, String courseName, String courseFaculty);",
"private void updateLeaderboard(String channelId, String userId, int scoreFactor) {\r\n Leaderboard lb = leaderboardRepository.findByChannelId(channelId);\r\n\r\n // found leaderboard\r\n if(lb != null) {\r\n\r\n // update existing user\r\n if (lb.scores.containsKey(userId)) {\r\n\r\n UserScore us = lb.scores.get(userId);\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n // add new user\r\n else {\r\n UserScore us = new UserScore();\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n }\r\n // create new leaderboard\r\n else {\r\n lb = new Leaderboard(channelId);\r\n\r\n UserScore us = new UserScore();\r\n us.score += scoreFactor;\r\n us.displayName = userId;\r\n\r\n // get user display name\r\n User user = getUserInfo(userId);\r\n if(user != null) {\r\n us.displayName = user.profile.display_name_normalized;\r\n if (us.displayName.length() == 0) {\r\n us.displayName = user.profile.real_name_normalized;\r\n }\r\n }\r\n\r\n lb.scores.put(userId, us);\r\n leaderboardRepository.save(lb);\r\n }\r\n }",
"@Override\n\tpublic void modify(UserModel um) throws Exception {\n\t\tsf.getCurrentSession().update(um);\n\t}",
"protected void updateDoctorToRequirement(NbaTXLife nbaTXLife, NbaRequirement nbaReq, RequirementInfo reqInfo, NbaRequirementRequestVO reqRequestVO){\n Party doctor = NbaRequirementUtils.getDoctorForRequirement(nbaTXLife, reqInfo);\n if (doctor == null) {\n addDoctorToRequirement(nbaTXLife, nbaReq, reqInfo);\n } else {\n \t // begin NBA224\n \t\tif (!doctor.getId().equals(nbaReq.getDrPartyId())) {\n\t\t\t\tRelation relation = findExistingRelation(reqInfo.getId(), doctor.getId(), nbaTXLife);\n\t\t\t\tif (relation != null) {\n\t\t\t\t\tParty newDoctor;\n\t\t\t\t\tString partyId = nbaReq.getDrPartyId();\n\t\t\t\t\tboolean isExistingDoctor = partyId.indexOf(NEW_DOCTOR_PARTY) == -1;\n\t\t\t\t\tif (isExistingDoctor) {\n\t\t\t\t\t\trelation.setRelatedObjectID(nbaReq.getDrPartyId());\n\t\t\t\t\t\tnewDoctor = nbaTXLife.getParty(nbaReq.getDrPartyId()).getParty();\n\t\t\t\t\t\tNbaRequirementUtils.updateDoctorForRequirement(newDoctor, nbaReq, getNbaOLifEId(nbaTXLife));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (getNewDoctorMap().containsKey(partyId)) {\n\t\t\t\t\t\t\tnewDoctor = (Party) getNewDoctorMap().get(partyId);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tOLifE olife = nbaTXLife.getOLifE();\n\t\t\t\t\t\t\tnewDoctor = NbaRequirementUtils.createDoctorForRequirement(nbaReq, getNbaOLifEId(nbaTXLife));\n\t\t\t\t\t\t\tolife.addParty(newDoctor);\n\t\t\t\t\t\t\tolife.setActionUpdate();\n\t\t\t\t\t\t\tgetNewDoctorMap().put(partyId, newDoctor);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trelation.setRelatedObjectID(newDoctor.getId());\n\t\t\t\t\t}\n\t\t\t\t\t//ALS3872 begin\n\t\t\t\t\tlong drRelationRole = nbaReq.getDrPartyType() == NbaOliConstants.OLI_PT_PERSON ? NbaOliConstants.OLI_REL_PHYSICIAN : NbaOliConstants.OLI_REL_MEDPROVIDER;\n\t\t\t\t\trelation.setRelationRoleCode(drRelationRole);\n\t\t\t\t\t//ALS3872 end\n\t\t\t\t\trelation.setActionUpdate();\n\t\t\t\t\tRequirementInfoExtension reqInfoExt = NbaUtils.getFirstRequirementInfoExtension(reqInfo);\n\t\t\t\t\treqInfoExt.setPhysicianPartyID(newDoctor.getId());\n\t\t\t\t\treqInfoExt.setActionUpdate();\n\t\t\t\t}\n\t\t\t\tList relList = getAllRelationsForParty(doctor.getId(), nbaTXLife);\n\t\t\t\tif (relList.size() == 0 && !reqRequestVO.getDoctorToUpdateList().contains(doctor.getId())) {\n\t\t\t\t\tdoctor.setActionDelete();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t\t// end NBA224\n NbaRequirementUtils.updateDoctorForRequirement(doctor, nbaReq, getNbaOLifEId(nbaTXLife));\n }\n }",
"public void setEditUser(User editUser)\r\n/* */ {\r\n/* 179 */ this.editUser = editUser;\r\n/* */ }",
"@Test\n\tpublic void editFolderAsUserTest() {\n\t\tauthenticate(\"agent1\");\n\t\tint principalId = actorService.findByPrincipal().getId();\n\t\tFolderForm folderFormAux = new FolderForm();\n\t\tfolderFormAux.setName(\"New auditor5 folder for testing its edition\");\n\t\tFolder folder = folderService.reconstruct(folderFormAux,0);\n\t\tfolderService.save(folder);\n\t\t\n\t\tFolder folderToEdit = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString actualName = folderToEdit.getName();\n\t\tFolderForm folderFormAux2 = new FolderForm();\n\t\tfolderFormAux2.setName(\"New folder name\");\n\t\tFolder folderToSave = folderService.reconstruct(folderFormAux2, folderToEdit.getId());\n\t\tfolderService.save(folderToSave);\n\t\tFolder editedFolder = folderService.nonSystemFoldersOfActor(principalId).iterator().next();\n\t\tString expectedName = editedFolder.getName();\n\t\tAssert.isTrue(!actualName.equals(expectedName));\n\t\tunauthenticate();\t\t\n\t}",
"@Override\n\tpublic void updateAuthorizePersonForModifiedTaskItems(List<MaintenanceRequestTask> originalRequestTasks, List<MaintenanceRequestTask> modifiedRequestTasks, String logedInUser){\t\t\t\t\t\n\t\t\n\t\tfor(MaintenanceRequestTask maintenanceRequestTask : modifiedRequestTasks){\n\t\t\tfor(MaintenanceRequestTask originalTask : originalRequestTasks){\n\t\t\t\tif(!MALUtilities.isEmpty(maintenanceRequestTask.getMrtId())){\n\t\t\t\t\tif(maintenanceRequestTask.getMrtId().longValue() == originalTask.getMrtId().longValue()){\n\t\t\t\t\t\tif(maintenanceRequestTask.equals(originalTask) == false){\n\t\t\t\t\t\t\tmaintenanceRequestTask.setAuthorizePerson(logedInUser);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tmaintenanceRequestTask.setAuthorizePerson(originalTask.getAuthorizePerson());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void grantAdminOnIndividualToSystemUser(Individual i, SystemUser user);",
"void update(User user);",
"void update(User user);",
"@Override\r\n\tpublic ResultMessage updateTeam(TeamPO oneTeam) {\n\t\treturn teams.updateTeam(oneTeam);\r\n\t}",
"@Test\n public void update() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(1, 0, 6, \"GUI\");\n Student s2 = new Student(1,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(1, 1, \"prof\", 10, \"Irelevant\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repo.update(s2);\n repot.update(t2);\n repon.update(n2);\n assert repo.findOne(1).getGrupa()==221;\n assert repot.findOne(1).getDeadline()==8;\n assert repon.findOne(\"11\").getFeedback()==\"Irelevant\";\n\n }\n catch (ValidationException e){\n }\n }"
] | [
"0.577997",
"0.5706163",
"0.57054675",
"0.56743914",
"0.5669031",
"0.56520265",
"0.5605924",
"0.55728805",
"0.5562794",
"0.5473884",
"0.5449521",
"0.5440168",
"0.5408465",
"0.53895587",
"0.53884894",
"0.5372731",
"0.53660226",
"0.5364416",
"0.5350227",
"0.5336091",
"0.53231835",
"0.53105533",
"0.52964365",
"0.5287829",
"0.52872354",
"0.52809405",
"0.52807546",
"0.5280655",
"0.5279106",
"0.52708817",
"0.52335036",
"0.5204627",
"0.5194345",
"0.51851976",
"0.518367",
"0.51771116",
"0.51710886",
"0.5168806",
"0.5137759",
"0.5134926",
"0.5132759",
"0.5132123",
"0.5119876",
"0.5104626",
"0.510204",
"0.509678",
"0.509554",
"0.5094269",
"0.5093501",
"0.50806606",
"0.50632626",
"0.5060573",
"0.50583106",
"0.5052664",
"0.50497305",
"0.5046198",
"0.50455624",
"0.50447214",
"0.5043678",
"0.50408965",
"0.50353396",
"0.50316405",
"0.50256133",
"0.5023285",
"0.5022168",
"0.5013086",
"0.5008597",
"0.4999828",
"0.49891454",
"0.49878046",
"0.49861115",
"0.49844",
"0.49822825",
"0.49786276",
"0.49785608",
"0.4978433",
"0.49731076",
"0.49722955",
"0.4968255",
"0.49591017",
"0.49450496",
"0.49431047",
"0.49356985",
"0.49289086",
"0.4925314",
"0.4916618",
"0.49134624",
"0.49129716",
"0.49128383",
"0.49118432",
"0.49114916",
"0.49066564",
"0.49053034",
"0.49045134",
"0.49043897",
"0.49023807",
"0.4898782",
"0.4898782",
"0.4893656",
"0.48932856"
] | 0.6452391 | 0 |
Initializer for the CoasterCreateNodeEvent | public CoasterCreateNodeEvent(Player who, TrackNode node) {
super(who, node);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NodeEvent() {\n\t\tthis(new Note(), DEFAULT_LIKELIHOOD);\n\t}",
"private void init() {\n myNodeDetails = new NodeDetails();\n try {\n //port will store value of port used for connection\n //eg: port = 5554*2 = 11108\n String port = String.valueOf(Integer.parseInt(getMyNodeId()) * 2);\n //nodeIdHash will store hash of nodeId =>\n // eg: nodeIdHash = hashgen(5554)\n String nodeIdHash = genHash(getMyNodeId());\n myNodeDetails.setPort(port);\n myNodeDetails.setNodeIdHash(nodeIdHash);\n myNodeDetails.setPredecessorPort(port);\n myNodeDetails.setSuccessorPort(port);\n myNodeDetails.setSuccessorNodeIdHash(nodeIdHash);\n myNodeDetails.setPredecessorNodeIdHash(nodeIdHash);\n myNodeDetails.setFirstNode(true);\n\n if (getMyNodeId().equalsIgnoreCase(masterPort)) {\n chordNodeList = new ArrayList<NodeDetails>();\n chordNodeList.add(myNodeDetails);\n }\n\n } catch (Exception e) {\n Log.e(TAG,\"**************************Exception in init()**********************\");\n e.printStackTrace();\n }\n }",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"public GlobalNodeListener() {\n log.fine(\">>> Initialised\");\n }",
"public CWLNodeFactory() {\n super(true);\n }",
"private Node createNode(EventPair ep, Color c, Node parent) {\n Node node = new Node();\n node.ID = ep.ID;\n node.count = ep.count;\n node.color = c;\n node.left = createNullLeaf(node);\n node.right = createNullLeaf(node);\n node.parent = parent;\n return node;\n }",
"public Cluster(BasicEvent ev) {\n this();\n location.x = ev.x;\n location.y = ev.y;\n birthLocation.x = ev.x;\n birthLocation.y = ev.y;\n lastTimestamp = ev.timestamp;\n firstTimestamp = lastTimestamp;\n numEvents = 1;\n setRadius(defaultClusterRadius);\n }",
"public Event() {\r\n\r\n\t}",
"public void create(NetworkNode networkNode);",
"protected void init() {\n new AsyncTask<Void, Void, Void>() {\n @Override\n protected Void doInBackground(Void... params) {\n RosFragmentActivity.this.init(nodeMainExecutorService);\n //Let everyone know that init is called\n synchronized (mNodeInitListeners) {\n for (final NodeInitListener nodeInitListener : mNodeInitListeners) {\n nodeInitListener.onNodeInit(nodeMainExecutorService, getMasterUri());\n }\n mNodeInitListeners.clear();\n }\n return null;\n }\n }.execute();\n }",
"public NodeInfo() {\n }",
"public static void\n\t initClass()\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t SO__NODE_INIT_CLASS(SoEventCallback.class, \"EventCallback\", SoNode.class);\n\t }",
"private void createEvents() {\n\t}",
"public Node() {\n }",
"@Override\n public void init() {\n //no initialization, event are only created when car get into intersection\n if (!trafficLights.isEmpty()) {\n getSimEngine().addEvent(new ChangeColorEvent(trafficLights.get(current_traffic_light_index), getSimEngine().getCurrentSimTime()));\n }\n }",
"public Node() {\r\n\t}",
"public Node() {\r\n\t}",
"public void onCreation(java.lang.Object init)\n {\n }",
"public Node(){\n\n\t\t}",
"public Event() {\n }",
"public Event() {\n }",
"private Node() {\n\n }",
"public Event() {\n\t}",
"public\n CreateEvent()\n {}",
"public Node() {\n\n }",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public void init() {\r\n setEventType(4);\r\n }",
"public Node() {\n\t}",
"private void initialize() throws IOException {\n final Random random;\n if (params.getCustomSeed() == null) {\n random = RandomUtils.getRandomPrintSeed();\n } else {\n System.out.println(\"Using custom seed: \" + params.getCustomSeed());\n random = new Random(params.getCustomSeed());\n }\n\n final EventEmitterFactory factory = new EventEmitterFactory(random, addressBook);\n\n factoryConfig.accept(factory);\n\n caller = callerSupplier.apply(factory);\n listener = listenerSupplier.apply(factory);\n\n final Pair<Connection, Connection> connections =\n connectionFactory.createConnections(caller.getNodeId(), listener.getNodeId());\n caller.setSyncConnection(connections.left());\n listener.setSyncConnection(connections.right());\n\n customInitialization.accept(caller, listener);\n }",
"private void initialize() {\r\n\r\n\t\tserverNode = new TreeParent(\"Servers\", \"Servers\", \"AA\", this);\r\n\t\tserverNode.setImageKey(\"System.gif\");\r\n\r\n\t\tnewServerNode = new TreeParent(\"NewServerWizard\", \"New Server\", \"AA\", this);\r\n\t\tnewServerNode.setImageKey(\"ApplicationFilter.gif\");\r\n\t\tnewServerNode.setExpandable(false);\r\n\t\tserverNode.addChild(newServerNode);\r\n\t\tnewServerNode.addChild(new TreeObject(\"Dummy\"));\r\n\t\r\n\t\tloadServers(serverNode);\r\n\r\n\t\tpreferenceNode = new TreeParent(\"Systems\", \"Preferences\", \"BB\", this);\r\n\t\tpreferenceNode.setImageKey(\"preference_page.gif\");\r\n\t\tpreferenceNode.addChild(new TreeObject(\"Dummy\"));\r\n\r\n\t\tinvisibleRoot = new TreeParent(\"\", \"InvisibleRoot\", \"AA\", this);\r\n\t\tinvisibleRoot.addChild(serverNode);\r\n\t\tinvisibleRoot.addChild(preferenceNode);\r\n\r\n\t}",
"@Override\r\n\tpublic void initEvent() {\n\r\n\t}",
"public TestSyncNewNodeListener(ItsNatDocument itsNatDoc)\r\n {\r\n load(itsNatDoc);\r\n }",
"@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}",
"@Override\n\tpublic void visit(TaskConstruct n) {\n\t\tcfgNode = n;\n\t}",
"public Node(){\n }",
"public Eventd() {\n }",
"public DefaultEntity(Node<A> node) {\r\n\t\tsuper(node);\r\n\t\tevents = new Vector<Event<A>>();\r\n\t}",
"void nodeCreate( long id );",
"public EventTree()\n\t{\n\t\tthis.root = null;\n\t}",
"Event_tree()//constructor\r\n\t{\r\n\t\troot_e = null ;\r\n\t}",
"public Event() {\n\n }",
"private void initializeEvents() {\r\n\t}",
"protected GraphNode() {\n }",
"protected GraphNode() {\n }",
"@Override\r\n public void handleEvent(NetworkAddedEvent arg0) {\n \tCyNetwork network = arg0.getNetwork();\r\n \t\r\n \t// check if it is a TRONCO network by its information field\r\n \tif (!isTroncoNetwork(network)) {\r\n \t\treturn;\r\n \t}\r\n \t\r\n \t// add the TRONCO view\r\n \tCyNetworkView view = networkViewFactory.createNetworkView(network);\r\n networkViewManager.addNetworkView(view, true);\r\n\r\n // get the visual style\r\n VisualStyle visualStyle = null;\r\n for (VisualStyle tempVisualStyle : visualMappingManager.getAllVisualStyles()) {\r\n\t\t\tif (tempVisualStyle.getTitle().equals(\"TRONCO\")) {\r\n\t\t\t\tvisualStyle = tempVisualStyle;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n \r\n // create the visual style if it is the first added network\r\n if (visualStyle == null) {\r\n \tvisualStyle = visualStyleFactory.createVisualStyle(\"TRONCO\");\r\n\t\t\r\n\t // remove the lock of nodes' height-width and set the arrow color\r\n\t for (VisualPropertyDependency visualPropertyDependency : visualStyle.getAllVisualPropertyDependencies()) {\r\n\t\t\t\tif (visualPropertyDependency.getIdString().equals(\"nodeSizeLocked\")) {\r\n\t\t\t\t\tvisualPropertyDependency.setDependency(false);\r\n\t\t\t\t} else if (visualPropertyDependency.getIdString().equals(\"arrowColorMatchesEdge\")) {\r\n\t\t\t\t\tvisualPropertyDependency.setDependency(true);\r\n\t\t\t\t}\r\n\t }\r\n\t \r\n\t // set node width\r\n\t PassthroughMapping widthMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"width\", Color.class, BasicVisualLexicon.NODE_WIDTH);\r\n\t visualStyle.addVisualMappingFunction(widthMapping);\r\n\t \r\n\t // set node height\r\n\t PassthroughMapping heightMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"height\", Color.class, BasicVisualLexicon.NODE_HEIGHT);\r\n\t visualStyle.addVisualMappingFunction(heightMapping);\r\n\t \r\n\t // set node shape\r\n\t DiscreteMapping<String, NodeShape> shapeMapping = (DiscreteMapping<String, NodeShape>) visualMappingFunctionFactoryDiscrete.createVisualMappingFunction(\"shape\", String.class, BasicVisualLexicon.NODE_SHAPE);\r\n\t shapeMapping.putMapValue(\"ellipse\", NodeShapeVisualProperty.ELLIPSE);\r\n\t shapeMapping.putMapValue(\"diamond\", NodeShapeVisualProperty.DIAMOND);\r\n\t shapeMapping.putMapValue(\"hexagon\", NodeShapeVisualProperty.HEXAGON);\r\n\t shapeMapping.putMapValue(\"octagon\", NodeShapeVisualProperty.OCTAGON);\r\n\t shapeMapping.putMapValue(\"parallelogram\", NodeShapeVisualProperty.PARALLELOGRAM);\r\n\t shapeMapping.putMapValue(\"rectangle\", NodeShapeVisualProperty.RECTANGLE);\r\n\t shapeMapping.putMapValue(\"round rectangle\", NodeShapeVisualProperty.ROUND_RECTANGLE);\r\n\t shapeMapping.putMapValue(\"triangle\", NodeShapeVisualProperty.TRIANGLE);\r\n\t visualStyle.addVisualMappingFunction(shapeMapping);\r\n\t \r\n\t // set nodes color\r\n\t PassthroughMapping colorMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"fillcolor\", Color.class, BasicVisualLexicon.NODE_FILL_COLOR);\r\n\t visualStyle.addVisualMappingFunction(colorMapping);\r\n\t\r\n\t // set nodes label\r\n\t PassthroughMapping labelMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"label\", String.class, BasicVisualLexicon.NODE_LABEL);\r\n\t visualStyle.addVisualMappingFunction(labelMapping);\r\n\t \r\n\t // set nodes label color\r\n\t PassthroughMapping fontColorMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"fontcolor\", Color.class, BasicVisualLexicon.NODE_LABEL_COLOR);\r\n\t visualStyle.addVisualMappingFunction(fontColorMapping);\r\n\t\r\n\t // set nodes border color\r\n\t PassthroughMapping borderColorMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"bordercolor\", Paint.class, BasicVisualLexicon.NODE_BORDER_PAINT);\r\n\t visualStyle.addVisualMappingFunction(borderColorMapping);\r\n\t \r\n\t // set node border width\r\n\t PassthroughMapping borderWidthMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"borderwidth\", Double.class, BasicVisualLexicon.NODE_BORDER_WIDTH);\r\n\t visualStyle.addVisualMappingFunction(borderWidthMapping);\r\n\t\r\n\t // set edges arrow\r\n\t DiscreteMapping<String, ArrowShape> arrowMapping = (DiscreteMapping<String, ArrowShape>) visualMappingFunctionFactoryDiscrete.createVisualMappingFunction(\"arrow\", String.class, BasicVisualLexicon.EDGE_TARGET_ARROW_SHAPE);\r\n\t arrowMapping.putMapValue(\"True\", ArrowShapeVisualProperty.ARROW);\r\n\t arrowMapping.putMapValue(\"False\", ArrowShapeVisualProperty.NONE);\r\n\t visualStyle.addVisualMappingFunction(arrowMapping);\r\n\t\r\n\t // set edges color\r\n\t PassthroughMapping edgeColorMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"color\", Color.class, BasicVisualLexicon.EDGE_UNSELECTED_PAINT);\r\n\t visualStyle.addVisualMappingFunction(edgeColorMapping);\r\n\t \r\n\t // set edges label\r\n\t PassthroughMapping edgeLabelMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"edgelabel\", String.class, BasicVisualLexicon.EDGE_LABEL);\r\n\t visualStyle.addVisualMappingFunction(edgeLabelMapping);\r\n\t\r\n\t // set edges label color\r\n\t PassthroughMapping edgeFontColorMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"labelcolor\", Color.class, BasicVisualLexicon.EDGE_LABEL_COLOR);\r\n\t visualStyle.addVisualMappingFunction(edgeFontColorMapping);\r\n\t\r\n\t // set edges thickness\r\n\t PassthroughMapping edgeThicknessMapping = (PassthroughMapping) visualMappingFunctionFactoryPassthrough.createVisualMappingFunction(\"width\", Double.class, BasicVisualLexicon.EDGE_WIDTH);\r\n\t visualStyle.addVisualMappingFunction(edgeThicknessMapping);\r\n\t\r\n\t // set edges line type\r\n\t DiscreteMapping<String, LineType> edgeLineTypeMapping = (DiscreteMapping<String, LineType>) visualMappingFunctionFactoryDiscrete.createVisualMappingFunction(\"line\", String.class, BasicVisualLexicon.EDGE_LINE_TYPE);\r\n\t edgeLineTypeMapping.putMapValue(\"dash\", LineTypeVisualProperty.EQUAL_DASH);\r\n\t edgeLineTypeMapping.putMapValue(\"solid\", LineTypeVisualProperty.SOLID);\r\n\t visualStyle.addVisualMappingFunction(edgeLineTypeMapping);\r\n \r\n }\r\n \r\n // get the rescaling factor\r\n Double currentScaleMaximum = 50d;\r\n Double maximumSize = 0d;\r\n CyTable table = network.getDefaultNodeTable();\r\n for (View<CyNode> nodeView : view.getNodeViews()) {\r\n \tMap<String, Object> rowValues = table.getRow(nodeView.getModel().getSUID()).getAllValues();\r\n \t\r\n \tDouble width = (Double) rowValues.get(\"width\");\r\n \tif (width != null && width > maximumSize) {\r\n\t\t\t\tmaximumSize = width;\r\n\t\t\t}\r\n \t\r\n \tDouble height = (Double) rowValues.get(\"height\");\r\n \tif (height != null && height > maximumSize) {\r\n\t\t\t\tmaximumSize = height;\r\n\t\t\t}\r\n }\r\n final Double rescalingFactor = maximumSize/currentScaleMaximum;\r\n \r\n // set the new size\r\n for (View<CyNode> nodeView : view.getNodeViews()) {\r\n \tCyRow row = table.getRow(nodeView.getModel().getSUID());\r\n \tMap<String, Object> rowValues = row.getAllValues();\r\n \t\r\n \tDouble width = (Double) rowValues.get(\"width\");\r\n \trow.set(\"width\", width/rescalingFactor);\r\n \t\r\n \tDouble height = (Double) rowValues.get(\"height\");\r\n \trow.set(\"height\", height/rescalingFactor);\r\n }\r\n \r\n // correct the triple / in the label\r\n CyTable edgeTable = network.getDefaultEdgeTable();\r\n for (View<CyEdge> edgeView : view.getEdgeViews()) {\r\n \tCyRow row = edgeTable.getRow(edgeView.getModel().getSUID());\r\n \tMap<String, Object> rowValues = row.getAllValues();\r\n \t\r\n \tString label = (String) rowValues.get(\"edgelabel\");\r\n \tif (label != null) {\r\n \t\trow.set(\"edgelabel\", label.replace(\"\\\\\", \"\"));\r\n\t\t\t} \t\r\n }\r\n \r\n // apply the visual style\r\n visualMappingManager.setVisualStyle(visualStyle, view);\r\n }",
"public void initEventsAndProperties() {\r\n }",
"public Event() {}",
"public NetworkNode(DatagramSocket listenSocket) {\n _listenSocket = listenSocket;\n }",
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"@Test\n\tpublic void testNodeInit() {\n\t\tNode<Integer> node = new Node<Integer>(3);\n\t\tassertTrue(node.getData() == 3);\n\t\tassertTrue(node.getParent() == null);\n\t\tassertTrue(node.countChildren() == 0);\n\t}",
"@Override\n protected void initEventAndData() {\n }",
"protected void setUp() throws Exception {\n super.setUp();\n oldBoundary = new Rectangle(0, 0, 20, 10);\n newBoundary = new Rectangle(10, 10, 30, 20);\n\n graphNode = TestUtil.createClassGraphNode(POSITION, SIZE, false, false);\n graphNode.setContainer(new GraphNode());\n\n properties = TestUtil.createProperties();\n\n classNode = new ClassNode(graphNode, properties);\n\n event = new BoundaryChangedEvent(classNode, oldBoundary, newBoundary, message);\n }",
"public Client(ClientEvents event) throws UnknownHostException, IOException {\n\t\t// TODO Auto-generated constructor stub\n\t\t//super(\"83.52.33.147\", 3553);\n\t\tmIp = \"85.53.66.42\";\n\t\tmPort = 3553;\n\t\tthis.event = event;\n\t\tmInstance = this;\n\t\t\n\t\t//startConection();\n\t}",
"public Node(){}",
"private ZoneMinderEventManager()\n\t{\n\t}",
"public void nodeAdded(GraphEvent e);",
"public void markMobilityEventsMmeCreate() throws JNCException {\n markLeafCreate(\"mobilityEventsMme\");\n }",
"public void consulterEvent() {\n\t\t\n\t}",
"EventChannel create();",
"public MainEvent() {\n super.register(new HelloWorld());\n }",
"protected ICEvent() {}",
"public void markPdnconnEventsMmeCreate() throws JNCException {\n markLeafCreate(\"pdnconnEventsMme\");\n }",
"public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }",
"public void setEventCreated() {\n Date now = new Date();\n this.eventCreated = now;\n }",
"public void init() {\n cupDataChangeListener = new CupDataChangeListener(dataBroker);\n }",
"public CustomerEvent()\r\n {\r\n this(0, 0, ENTER);\r\n }",
"public void init() {\n ContainerProperties containerProperties = buildContainerProperties();\n this.messageListenerContainer = buildMessageListenerContainer( consumerFactory, containerProperties );\n }",
"@Override\n\tpublic void initNode() {\n\t\tEFMonitorUtil.cleanAllInstance(false);\t\t\t\n\t}",
"public void graphConstructionEvent(TrustLogEvent event) {\n if (event == null) { //If a null event is passed, add all possible edges to the graph\n for (Agent src : referenceGraph.getVertices()) {\n for (Agent sink : referenceGraph.getVertices()) {\n if (!src.equals(sink)) {\n ensureEdgeExists(src, sink, referenceGraph);\n }\n }\n }\n } else { //Otherwise, just add any new Agents to the graph\n ensureAgentExists(event.getAssessor(), referenceGraph);\n ensureAgentExists(event.getAssessee(), referenceGraph);\n }\n }",
"protected void logEventCreation(final GossipEvent event) {\n logger.debug(CREATE_EVENT.getMarker(), \"Creating {}\", event::toString);\n }",
"public Event(){\n\n }",
"private void initListener() {\n }",
"public EventDelegate() {\n mNativeRef = nativeCreateDelegate();\n }",
"public Event(){\n \n }",
"public void init()\r\n {\r\n eventPublisher.publishEvent(new CachedContentCleanerCreatedEvent(this));\r\n }",
"public Node() {\n portnum = 0;\n senders = new Hashtable<String, Sender>();\n }",
"@Override\n public Event initialise(Ec2LaunchConfiguration newResource) {\n return null;\n }",
"@Override\n\tpublic void visit(MasterConstruct n) {\n\t\tcfgNode = n;\n\t}",
"EventManager()\n {\n }",
"@Override\n\tprotected void onInitialAgentsCreation() {\n\t\tSystem.out.println(\"Création drones\");\n\t\tDrone drone = null;\n\t\tDroneBuilder droneBuilder;\n\t\tfor (int i = 0; i < INITIAL_DRONE_COUNT; i++) {\n\t\t\tdrone = new Drone(this, getEnvironment().getRandom().nextInt(World.WIDTH), getEnvironment().getRandom().nextInt(World.HEIGHT));\n\t\t\tdroneBuilder = new DroneBuilder();\n\t\t\tdroneBuilder.setDrone(drone);\n\t\t\tdroneBuilder.buildBehaviorStates();\n\t\t\tdroneBuilder.buildAgentPhase();\n\t\t}\n\t}",
"public ProcessEventOnChiefMemberNode(){\r\n this( null );\r\n }",
"void enterConstruct(ConstructNode node);",
"void initialise() {\n this.sleep = false;\n this.owner = this;\n renewNeighbourClusters();\n recalLocalModularity();\n }",
"public Node(Node< ? > node)\n {\n id = node.getId();\n name = node.getName();\n idVirtualAppliance = node.getIdVirtualAppliance();\n nodeType = node.getNodeType();\n posX = node.getPosX();\n posY = node.getPosY();\n modified = node.getModified();\n }",
"public BoxNode() {\n initProperties();\n }",
"public ScheduleEvent()\n\t{\n\n\t}",
"@Test\n public void createEventSimpleTest() {\n try (Context context = GrCUDATestUtil.buildTestContext().build()) {\n Value createEvent = context.eval(\"grcuda\", \"cudaEventCreate\");\n Value event = createEvent.execute();\n assertNotNull(event);\n assertTrue(event.isNativePointer());\n }\n }",
"protected SceneGraphObject createNode() {\n\tthrow new SGIORuntimeException(\"createNode() not implemented in class \"+this.getClass().getName());\n }",
"@PostConstruct\n public void init() {\n eventBus.register(this);\n }",
"public CasterSite() {\n\t}",
"protected NodeProperties() {\r\n }",
"private Node(int c) {\n this.childNo = c; // Construct a node with c children.\n }",
"public void init() {\n\t\t\n\t\tdebugPrintln(\"Doing init.\");\n\t\t\n\t\t// can sanity check some things by requesting notification when nodes\n\t\t// are created/deleted/etc.\n\t\t// It does not notify when playBufs reach the end of a buffer, though.\n\t\t// Too bad, that. Would have to poll.\n\t\tsendMessage(\"/notify\", new Object[] { 1 });\n\n\t\t//start by cleaning up any detritus from previous runs on the same server:\n\t\tcleanup();\n\n\t\t//sclang creates the default group, not supercollider, so let's follow that convention.\n\t\tcreateGroup(1, 0);\n\n\t\t// create a mother group, under the default group (1),\n\t\t// which will contain all of the SCSoundControl objects.\n\t\t//this is where we would query if another node == _motherGroupID already exists.\n\t\t//if so, would need to choose an alternate groupID (e.g. += 10000)\n\t\tcreateGroup(_motherGroupID, 1);\n\t\t\n\t}",
"public DefaultRouterNode() {\n }",
"public Node3() {\n initComponents();\n setSize(650, 550);\n }",
"public void initListener() {\n }",
"public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }"
] | [
"0.6333609",
"0.6059212",
"0.5989215",
"0.5912223",
"0.5670919",
"0.56642085",
"0.5618231",
"0.5615007",
"0.56031907",
"0.55986",
"0.5590049",
"0.55762017",
"0.5566724",
"0.55525637",
"0.5547591",
"0.5520259",
"0.5520259",
"0.55109704",
"0.55057186",
"0.55021006",
"0.55021006",
"0.5494871",
"0.5491885",
"0.54854393",
"0.5481131",
"0.5479882",
"0.5479882",
"0.5479882",
"0.5479882",
"0.54553354",
"0.5453555",
"0.5435947",
"0.5432539",
"0.54128677",
"0.54117405",
"0.5410369",
"0.5395352",
"0.5388993",
"0.5380135",
"0.5374664",
"0.5371863",
"0.5365103",
"0.5360416",
"0.5349766",
"0.53390133",
"0.53335047",
"0.53335047",
"0.5316394",
"0.5307498",
"0.5304865",
"0.5297307",
"0.52966034",
"0.529632",
"0.52928334",
"0.52835184",
"0.52753544",
"0.5273466",
"0.5267585",
"0.5263931",
"0.52605325",
"0.524333",
"0.5239441",
"0.52307725",
"0.52223265",
"0.5221526",
"0.5212833",
"0.5191618",
"0.5189618",
"0.51834476",
"0.51806927",
"0.51796263",
"0.51657647",
"0.51636624",
"0.51619",
"0.5158946",
"0.51427716",
"0.513788",
"0.5136345",
"0.5131811",
"0.5126747",
"0.5123975",
"0.51239157",
"0.5122535",
"0.51125216",
"0.51047",
"0.5088585",
"0.5088073",
"0.5079462",
"0.5075455",
"0.5058374",
"0.5051307",
"0.5042301",
"0.5039145",
"0.50382763",
"0.503733",
"0.503472",
"0.5032196",
"0.5029715",
"0.5025698",
"0.5024269"
] | 0.78460956 | 0 |
Fluxo de Saida com Arquivo OutputStream fos = new FileOutputStream("lorem2.txt"); Writer osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); | public static void main(String[] args) throws IOException {
BufferedWriter bw = new BufferedWriter(new FileWriter("lorem4.txt"));
bw.write("It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. ");
bw.newLine();
bw.write("sahuashuashuashauh aubduabd augb ua auhuh");
bw.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void dosyaYazici(String text)\n {\n File log = new File(\"log.txt\");\n try\n {\n if (!log.exists())\n {\n log.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(log,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.append(text+\"\\n\");\n bufferedWriter.close();\n //System.out.print(\"TEST\");\n }\n catch (IOException e)\n {\n System.out.print(\"DOSYA HATASI!\");\n e.printStackTrace();\n }\n\n }",
"private BufferedWriter abrirArquivoEscrita() {\n\t\ttry{\n\t\t\tBufferedWriter file = null;\n\t\t\tfile = new BufferedWriter(new FileWriter(caminho));\n\t\t\treturn file;\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"private static void writeToOutput() {\r\n FileWriter salida = null;\r\n String archivo;\r\n JFileChooser jFC = new JFileChooser();\r\n jFC.setDialogTitle(\"KWIC - Seleccione el archivo de salida\");\r\n jFC.setCurrentDirectory(new File(\"src\"));\r\n int res = jFC.showSaveDialog(null);\r\n if (res == JFileChooser.APPROVE_OPTION) {\r\n archivo = jFC.getSelectedFile().getPath();\r\n } else {\r\n archivo = \"src/output.txt\";\r\n }\r\n try {\r\n salida = new FileWriter(archivo);\r\n PrintWriter bfw = new PrintWriter(salida);\r\n System.out.println(\"Índice-KWIC:\");\r\n for (String sentence : kwicIndex) {\r\n bfw.println(sentence);\r\n System.out.println(sentence);\r\n }\r\n bfw.close();\r\n System.out.println(\"Se ha creado satisfactoriamente el archivo de texto\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public static void writeFile(File fileName, String texto) {\n FileWriter fileToWrite = null;\r\n BufferedWriter bufferWillWrite = null;\r\n\r\n try {\r\n //creacion de estructura de escritura\r\n fileToWrite = new FileWriter(fileName); //true: permite agregar info sin borrar el archivo\r\n\r\n bufferWillWrite = new BufferedWriter(fileToWrite);\r\n try {\r\n bufferWillWrite.write(texto + \"\\n\");\r\n\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n } finally {\r\n try {\r\n if (bufferWillWrite != null) {\r\n bufferWillWrite.close();\r\n }\r\n if (fileToWrite != null) {\r\n fileToWrite.close();\r\n }\r\n } catch (Exception er) {\r\n System.out.println(er.getMessage());\r\n }\r\n }\r\n } catch (IOException err) {\r\n System.out.println(err.getMessage());\r\n }\r\n }",
"private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws Exception {\n FileOutputStream fos=new FileOutputStream(\"e:/data/contents.txt\");\r\n //step-2 (write data)\r\n String s=\"Something We want To Write To A File\";\r\n byte b[]=s.getBytes();\r\n //fos.write(b);\r\n fos.write(b, 3, 10);\r\n //step-3 (close file)\r\n fos.close();\r\n System.out.println(\"DATA STORED\");\r\n }",
"public void crearArchivoDeTexto(String rutas,String nombre, String texto){\n try{\n archivo = new File(rutas + File.separator + nombre);\n String rutaCompleta=archivo.getAbsolutePath();\n \n System.out.println(rutaCompleta);\n FileWriter archivoEscritura= new FileWriter(rutaCompleta,true);\n BufferedWriter escritura= new BufferedWriter(archivoEscritura);\n escritura.append(texto+\"\\n\");\n escritura.close();\n archivoEscritura.close();\n }catch(FileNotFoundException e1){\n System.out.println(\"Ruta de archivo no encontrada\");\n }catch(IOException e2){\n System.out.println(\"Error de escritura\");\n }catch(Exception e3){\n System.out.println(\"Error General\");\n }\n }",
"public static void main(String args[])\n {\n String FILENAME = \"myfile.txt\";\n\n // When used, the FileWriter object will immediately put it's output\n // to the file. So FileWriter output attempts to write to the file as\n // fast as possible. Maybe this is a good thing in some\n // circumstances, but I think it would be better to write data in\n // chunks. We employ a BufferedWriter object to capture the\n // FileWriter output into a collection of bytes that can be written\n // to the file.\n FileWriter fWriter = null;\n BufferedWriter bWriter = null;\n\n // Wrapping our attempt to write to the file inside a try / catch\n // statement allows us to trap some errors if they happen\n try\n {\n // Here is the content that we will write to the file.\n String fileContent = \"Dude, I'm totally writing to a file!!\";\n\n // These lines instantiate FileWriter and BufferedWriter objects.\n // When instantiating the FileWriter object we pass in the file\n // name that we are writing to. If no path is given in our\n // filename, the file will be created and written in the root\n // directory.\n fWriter = new FileWriter(FILENAME);\n\n // The BufferedWriter object is instantiated on this line and the\n // FileWriter object is passed in as an argument.\n bWriter = new BufferedWriter(fWriter);\n\n // Now that we have our buffer and writer objects created, we can\n // attempt to write content to the file. Here is what\n // (I think) this is doing. The BufferedWriter object will receive\n // the content to be written, and then pass that content as a\n // whole to the FileWriter so it can be written to the file as a\n // chunk. If we did not do it this way, the content would be read\n // passed into the FileWriter object, converted to bytes on the\n // fly, and immediately written, byte by byte as it is converted,\n // to the file. By buffering we are increasing the performance of\n // this action.\n bWriter.write(fileContent);\n }\n\n // The catch statement will trap and display any exception that is\n // created when we are attempting to create our writer objects, open\n // or create the file, or write content.\n catch(Exception e)\n {\n System.out.println(\"Unable to write to file : \" + e.getMessage());\n }\n\n // This 'finally' statement will always happen, regardless of what\n // happens in our try/catch statement. If we put this code into the\n // try statement and we received an error, it would never be\n // processed. Additionally, if we put this code at the bottom of our\n // program and ran into an error half way through, it would never be\n // processed. Placing the code into a finally statement allows us to\n // ensure that it is run every time.\n finally\n {\n // Another try and catch statement to trap any error that happens\n // when closing the files.\n try\n {\n // The last thing we want to do is close out our writer\n // objects. This is a best practice since if you leave the\n // writer open you are at best wasting system resources, and\n // at worst you could lock this file for editing while other\n // resources are trying to use it. We check to make sure it\n // is not already disposed of, and then we call the close()\n // method.\n if (bWriter != null) {\n bWriter.close();\n }\n\n if (fWriter != null) {\n fWriter.close();\n }\n }\n // Our final catch reveals any errors that popped up when we were\n // attempting to close the writer and buffer objects.\n catch (Exception e)\n {\n System.out.println(\"Unable to close writer objects :\"\n + e.getMessage());\n }\n }\n }",
"public void writeToFile(ArrayList<String> word, ArrayList<String> abb) {\n String path =\n Environment.getExternalStorageDirectory() + File.separator + \"TextEasy\";\n // Create the folder.\n File folder = new File(path);\n folder.mkdirs();\n\n // Create the file.\n File file = new File(folder, filename);\n\n // Save your stream, don't forget to flush() it before closing it.\n\n try {\n file.createNewFile();\n FileOutputStream fOut = new FileOutputStream(file);\n OutputStreamWriter myOutWriter = new OutputStreamWriter(fOut);\n for (int i = 0; i < word.size(); i++) {\n String text = word.get(i) + \"\\n\" + abb.get(i) + \"\\n\";\n myOutWriter.append(text);\n }\n myOutWriter.close();\n fOut.flush();\n fOut.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"public static void main(String[] args) {\n String filePath = \"C:\\\\Users\\\\Catalin\\\\Desktop\\\\fisierdecitit.txt\";\n\n try {\n //incarcarea fisierului in memoria programului cu ajutorul ob fileReader\n FileReader fileReader = new FileReader(filePath);\n //incepem citirea din fisier linie cu line cu ajutorul BufferedReader\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String text = bufferedReader.readLine();\n while (text != null) {\n System.out.println(\"Linia citita este: \" + text);\n String[] array = text.split(\" \");\n System.out.println(array.length);\n text = bufferedReader.readLine();\n\n }\n\n } catch (IOException e) {\n System.out.println(\"A aparut o eroare: \" + e.getMessage());\n }\n\n\n //invatam sa scriem intr un fisier\n String filePathToWrite = \"C:\\\\Users\\\\Catalin\\\\Desktop\\\\fisierdescris.txt\";\n try {\n FileWriter fileWriter = new FileWriter(filePathToWrite);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n String text = \"Mama lu' Ana nu are nici mere si nici pere.\";\n String text2 = \"smhjhdgfdsbfkdhj\";\n\n bufferedWriter.write(text2);\n bufferedWriter.newLine();\n bufferedWriter.write(text);\n bufferedWriter.flush();\n bufferedWriter.close();\n } catch (IOException e) {\n System.out.println(\"A aparut o exceptie: \" + e.getMessage());\n }\n\n\n }",
"private void writeOutputFile(String str, String file) throws Exception {\n FileOutputStream fout = new FileOutputStream(file);\n\n fout.write(str.getBytes());\n fout.close();\n }",
"@Override\n\tpublic void salvaSuFile() {\n\t\tString path = \"alimenti.txt\";\n\t\tString allergeni = Alimento.getStringaAllergeni(getElencoAllergeni());\n\t\ttry {\n\t\t\tFile file = new File(path);\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(getNome() + \" - \" + getPrezzo() + \"€\\n\");\n\t\t\tbw.write(\"Adatto a vegani: \" + (getVegano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Adatto a vegetariani: \" + (getVegetariano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Tipologia: \" + getTipoPortata().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Cottura: \" + getTipoCottura().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Allergeni: \" + (allergeni.isEmpty() ? \"--\" : allergeni) + \"\\n\\n\");\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void geraArquivoAjudaTextual(String caminho, String nomeArquivo, String texto) {\r\n\t\ttry {\r\n\t\t\tarquivoTexto = new File(caminho + \"\\\\\" + nomeArquivo);\r\n\t\t\tFileWriter fw = new FileWriter(arquivoTexto);\r\n\t\t\tPrintWriter pw = new PrintWriter(fw);\r\n\t\t\tpw.write(texto);\r\n\t\t\tfw.close();\r\n\t\t} catch (IOException e) {\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n try (FileOutputStream f = new FileOutputStream()) //create an object of fileoutputstream\n {\n String data = \"Hello stupid\"; //custom string input\n byte[] arr = data.getBytes(); //convert string to bytes\n stream.write(arr); //text written in file\n } catch (Exception e) { //catch block to handle exception\n System.out.println(e.getMessage());\n }\n System.out.println(\"resources are closed so byebye\");\n }",
"public void arquivoSaida() {\r\n\r\n try {\r\n File file = new File(\"arquivoSaida.txt\");\r\n try (FileWriter arquivoSaida = new FileWriter(file, true)) {\r\n arquivoSaida.write(\"Rota do menor caminho entre as cidades escolhidas: \\n\\n\");\r\n Vertice v;\r\n \r\n //Escreve no arquivo a rota de ida de entrega nas cidades\r\n for (int i = 0; i < rota.getLista_de_rota().size() - 1; i++) {\r\n for (int j = 0; j < rota.getLista_de_rota().get(i).size(); j++) {\r\n v = rota.getLista_de_rota().get(i).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n }\r\n \r\n arquivoSaida.write(\"\\n\\nRota do menor caminho de volta: (Considerando que não há mais nenhuma entrega)\\n\\n\");\r\n // pegando a ultima posição da lista geral em que está a lista do menor caminho de volta\r\n int t = rota.getLista_de_rota().size() - 1; \r\n \r\n //Escreve a rota do caminho de volta, verificando a distancia entre a cidade origem e a cidade destino\r\n for (int j = rota.getLista_de_rota().get(t).size() - 1; j >= 0; j--) {\r\n v = (Vertice) rota.getLista_de_rota().get(t).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n arquivoSaida.write(\"Distancia percorrida: \"+rota.getDistancia()+\"\\n\");\r\n arquivoSaida.close();\r\n }\r\n } catch (IOException ex) { //caso nao seja possivel abrir algum dos arquivos\r\n System.out.println(\"Não foi possivel abrir arquivo\");\r\n }\r\n }",
"public void zapisz() {\n String nazwaPliku = \"Zadania\";\n FileOutputStream out;\n PrintWriter o = null;\n pobierz();\n\n try {\n out = openFileOutput(nazwaPliku, Context.MODE_APPEND);\n o = new PrintWriter(out);\n pobierz();\n o = zadanie.zapisz(o);\n\n\n Context context = getApplicationContext();\n CharSequence text = \"Zapisano\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n finally {\n o.close();\n }\n\n\n }",
"public void writeToFile(StringBuilder text)throws IOException{\n\n Path filePath = Paths.get(\"index.txt\");\n if (!Files.exists(filePath)) {\n \t Files.createFile(filePath);\n \t}\n \tFiles.write(filePath, text.toString().getBytes(), StandardOpenOption.APPEND);\n }",
"public void escritor(String path, int tvetor, int contador) throws IOException {\n\n BufferedWriter buffWrite = new BufferedWriter(new FileWriter(path));\n\n String linha = \"\";\n\n buffWrite.append(\"O tamanho do vetor é: \" + tvetor + \"\\n\");\n\n buffWrite.append(\"Quantidade de operações realizadas: \" + contador + \"\\n\");\n\n buffWrite.close();\n\n }",
"protected void openWriteFile(Path filePath, String s) throws IOException{\n\t\tBufferedWriter writer = Files.newBufferedWriter(filePath, ENCODING);\n\t\twriter.write(s, 0, s.length());\n\t\twriter.close();\n\t}",
"private void saveTextToFile(String content, File file) {\n try {\n PrintWriter writer;\n writer = new PrintWriter(file);\n writer.println(content);\n writer.close();\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void writeToFile(String fileName,String contents) throws IOException{\r\n\t\tFileWriter fw = new FileWriter(fileName,true);\r\n\t\tPrintWriter pw = new PrintWriter(fw);\r\n\t\tpw.write(contents+\"\\r\\n\");\r\n\t\tpw.close();\r\n\t}",
"private void fecharArquivoEscrita(BufferedWriter file) {\n\t\ttry {\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}",
"private void writeToFile(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName,true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) throws IOException {\n \r\nFile f=new File(\"d:\\\\addition.txt\");\r\nString s=\" addition\"+\"\\n\"+( 2+ 1);\r\n FileOutputStream fos=new FileOutputStream(f,true);\r\n byte[] b=s.getBytes();\r\n fos.write(13);\r\n fos.write(b);\r\n fos.flush();\r\n\t}",
"public void saveFile() {\r\n final String file = \"respuestaConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\";\r\n try {\r\n int count = 0;\r\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\r\n for (int i = 0; i < this.numberOfBees; i++) {\r\n if (beesArray[i].isInCollisionRisk()) {\r\n writer.println(beesArray[i].getLatitude() + \",\" + beesArray[i].getLongitude() + \",\" + beesArray[i].getHeight());\r\n count++;\r\n }\r\n }\r\n System.out.println(\"Number of bees in collision risk: \" + count);\r\n writer.close();\r\n } catch (IOException ioe) {\r\n System.out.println(\"Something went wrong writing the exit file\");\r\n }\r\n }",
"public void xuLyLuuHoaHoaDon(){\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getAbsolutePath().endsWith(\".txt\");\n }\n\n @Override\n public String getDescription() {\n return \".txt\";\n }\n });\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getAbsolutePath().endsWith(\".doc\");\n }\n\n @Override\n public String getDescription() {\n return \".doc\";\n }\n });\n int flag = fileChooser.showSaveDialog(null);\n if(flag == JFileChooser.APPROVE_OPTION){\n File file = fileChooser.getSelectedFile();\n try {\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(file), Charset.forName(\"UTF-8\"));\n PrintWriter printWriter = new PrintWriter(outputStreamWriter);\n String lineTieuDe1 = \"----------------Phiếu Thanh Toán-----------------------\";\n String lineMaPTT = \"+Mã Phiếu Thanh Toán: \" + txtMaPTT.getText();\n String lineMaPDK = \"+Mã Phiếu Đăng Ký: \" + cbbMaPDK.getSelectedItem().toString();\n String lineSoThang = \"+Số Tháng: \" + txtSoThang.getText()+\"|\";\n String lineNgayTT = \"+Ngày Thanh Toán: \" + txtNgayTT.getText();\n String lineTienPhong = \"+Tiền Phòng: \" + txtTongTien.getText();\n String lineTienDV = \"+Tiền Dịch Vụ: \"+txtThanhToanTongCong.getText();\n String lineTieuDe2 = \"--------------------------------------------------------\";\n String lineTienPhaiTra =\"+Tiền Phải Trả: \" + txtTienPhaiTra.getText()+\" \";\n String lineTieuDe3 = \"--------------------------------------------------------\";\n \n printWriter.println(lineTieuDe1);\n printWriter.println(lineMaPTT);\n printWriter.println(lineMaPDK);\n printWriter.println(lineSoThang);\n printWriter.println(lineNgayTT);\n printWriter.println(lineTienPhong);\n printWriter.println(lineTienDV);\n printWriter.println(lineTieuDe2);\n printWriter.println(lineTienPhaiTra);\n printWriter.println(lineTieuDe3);\n \n printWriter.close();\n outputStreamWriter.close();\n \n } catch (Exception e) {\n e.printStackTrace();\n }\n JOptionPane.showMessageDialog(null, \"Đã lưu\");\n }\n \n }",
"public static void WriteStreamAppendByFileOutputStream(String fileName, String content) throws IOException {\n BufferedWriter out = null;\n try {\n out = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(fileName, true)));\n out.write(content);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public static void WriteFile()throws java.io.FileNotFoundException,java.io.IOException\n {\n FileOutputStream out1= new FileOutputStream(\"Sample.bin\") ; \n String ab=\"Welcome to sample file\";\n out1.write(ab.getBytes());\n out1.flush();\n out1.close();\n }",
"static void CrearArchivo(Vector productos, Vector clientes){ \r\n \ttry{ //iniciamos el try y si no funciona se hace el catch\r\n BufferedWriter bw = new BufferedWriter(\r\n \t\t//Iniciamos el archivo adentro de bw que es un objeto.\r\n new FileWriter(\"reporte.txt\") );\r\n //creamos un producto auxiliar\r\n Producto p; \r\n //mientas existan productos se escribe lo siguiente en el archivo\r\n for(int x = 0; x < productos.size(); x++){ \r\n \t//impresiones de nombre,codigo,stock,precio en el archivo\r\n \tp = (Producto) productos.elementAt(x);\r\n bw.write(\"Nombre del producto: \" + p.getNombre() + \"\\n\"); \r\n bw.write(\"Codigo del producto: \" + p.getCodigo() + \"\\n\");\r\n bw.write(\"Tamaño del stock: \" + p.getStock() + \"\\n\");\r\n bw.write(\"Precio: \" + p.getPrecio() + \"\\n\");\r\n \r\n \r\n }\r\n //creamos un cliente auxiliar\r\n Cliente c;\r\n //mientas existan clientes se escribe lo siguiente en el archivo\r\n for(int x = 0; x < clientes.size(); x++){ \r\n \tc = (Cliente) clientes.elementAt(x);\r\n \t//impresiones de nombre,telefono,cantidad y total en el archivo\r\n bw.write(\"Nombre del cliente: \" + c.getname() + \"\\n\");\r\n bw.write(\"Numero de telefono: \" + c.getTelefono() + \"\\n\"); \r\n bw.write(\"Cantidad de compra: \" + c.getCantidad() + \"\\n\");\r\n bw.write(\"Total de compra: \" + c.getTotal() + \"\\n\");\r\n \r\n \r\n }\r\n // Cerrar archivo al finalizar\r\n bw.close();\r\n System.out.println(\"¡Archivo creado con éxito!\");\r\n //si no funciona imprime el error\r\n } catch(Exception ex){ \r\n System.out.println(ex);\r\n }\r\n }",
"public EnigmaFile() throws Exception\n {\n\n String path = Main.class.getClassLoader().getResource(\"filein.txt\").getPath();\n File currentDirectory=new File(path);\n finstream = new FileInputStream(currentDirectory);\n\n\n String pathToWrite = path.replaceFirst(\"filein.txt\",\"fileout.txt\");\n File outputFile = new File(pathToWrite);\n br = new BufferedReader(new InputStreamReader(finstream));\n outputFile.createNewFile();\n FileWriter fileWrite = new FileWriter(outputFile.getAbsoluteFile());\n writer = new BufferedWriter(fileWrite);\n\n\n }",
"protected void write(OutputStream os) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(this.filepath);\n\t\tBufferedInputStream bis = new BufferedInputStream(fis);\n\t\tbyte[] s = new byte[1024];\n\t\tint i = 0;\n\t\twhile ((i = bis.read(s)) > 0) {\n\t\t\tos.write(s, 0, i);\n\t\t}\n\t\tif (os != null) {\n\t\t\tos.flush();\n\t\t\tos.close();\n\t\t}\n\t\tif (bis != null)\n\t\t\tbis.close();\n\t\tif (fis != null)\n\t\t\tfis.close();\n\t}",
"public void gerarCupom(String cliente, String vendedor,List<Produto> produtos, float totalVenda ) throws IOException {\r\n \r\n File arquivo = new File(\"cupomFiscal.txt\");\r\n String produto =\" \"; \r\n if(arquivo.exists()){\r\n System.out.println(\"Arquivo localizado com sucessso\");\r\n }else{\r\n System.out.println(\"Arquivo não localizado, será criado outro\");\r\n arquivo.createNewFile();\r\n } \r\n \r\n for(Produto p: produtos){\r\n produto += \" \"+p.getQtd()+\" \"+ p.getNome()+\" \"+p.getMarca()+\" \"+ p.getPreco()+\"\\n \";\r\n }\r\n \r\n \r\n \r\n FileWriter fw = new FileWriter(arquivo, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n \r\n \r\n bw.write(\" \"+LOJA);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"CLIENTE CPF\");\r\n bw.newLine();\r\n bw.write(cliente);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(DateCustom.dataHora());\r\n bw.newLine();\r\n bw.write(\" CUPOM FISCAL \");\r\n bw.newLine();\r\n bw.write(\"QTD DESCRIÇÃO PREÇO\");\r\n bw.newLine();\r\n bw.write(produto);\r\n bw.newLine(); \r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"TOTAL R$ \" + totalVenda);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"Vendedor \" + vendedor);\r\n bw.newLine();\r\n bw.newLine();\r\n bw.close();\r\n fw.close();\r\n }",
"public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void FilesBufferWrite2Append() throws IOException {\n \ttry { \t\n \t\t\n \t \t/* This logic will check whether the file\n \t \t \t * exists or not. If the file is not found\n \t \t \t * at the specified location it would create\n \t \t \t * a new file*/\n \t \t \tif (!file.exists()) {\n \t \t\t file.createNewFile();\n \t \t \t}\n \t\t\n \t \t \t//KP : java.nio.file.Files.write - NIO is buffer oriented & IO is stream oriented!]\n \t\tString str2Write = \"\\n\" + LocalDateTime.now().toString() + \"\\t\" + outPrintLn + \"\\n\";\n \t\tFiles.write(Paths.get(outFilePath), str2Write.getBytes(), StandardOpenOption.APPEND);\n \t\t\n \t}catch (IOException e) {\n\t \t// TODO Auto-generated catch block\n\t \te.printStackTrace();\t\t\n\t\t\tSystem.out.print(outPrintLn);\n\t\t\tSystem.out.println(outPrintLn);\t\n \t}\n }",
"private void writeFile(String line, BufferedWriter theOutFile) throws Exception {\n\t\ttheOutFile.append(line);\t\t\t// write the line out\n\t\ttheOutFile.newLine();\t\t\t\t// skip to the next line\t\t\n\t}",
"public void textSaver(BufferedWriter writer)throws IOException{\r\n\t\tfor(int i=0;i<getColumn();i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<getRow();j++)\r\n\t\t\t\twriter.write(warehouse[i][j].getChar());\r\n\t\twriter.newLine();\r\n\r\n\t\t}\r\n\t\t\r\n\t}",
"public void copiarFicheros(BufferedWriter bw, BufferedReader br) throws IOException {\n String linea = br.readLine();\n while (linea != null) {\n\n bw.write(linea);\n\n linea = br.readLine();\n }\n bw.flush();\n }",
"public void escribir(String direccion,String texto) {\n try {\n FileWriter writer = new FileWriter(direccion);\n PrintWriter print = new PrintWriter(writer);\n print.print(texto);\n writer.close();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }",
"public static void copyTextWithBuffer() throws IOException {\n BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(RESOURCES_FOLDER + \"\\\\lorem_ipsum.txt\"));\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(COPY_FOLDER + \"\\\\copy_lorem.txt\"));\n// bufferedOutputStream.write(bufferedInputStream.readAllBytes());\n bufferedOutputStream.flush();\n bufferedOutputStream.close();\n bufferedInputStream.close();\n\n// int c;\n// while ((c = bufferedInputStream.read()) > -1) {\n// bufferedOutputStream.write(c);\n// }\n\n }",
"public static BufferedWriter Writer(String path) throws IOException\n\t{\n\t\treturn new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),\"UTF-8\"));\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"lalalalala...\");\n\t\tFile file = new File(\"C://Users//lenovo//Desktop//aa.txt\");\n\t\tFileOutputStream fo = new FileOutputStream(file);\n\t\tPrintWriter pw = new PrintWriter(fo);\n\t\tpw.write(sb.toString().toCharArray());\t\n\t\tpw.close();\n\t\tfo.close();\n\t}",
"public static void main(String[] args) throws Exception{\n\n FileOutputStream fos = new FileOutputStream(\"C:/Users/e678332/JavaProgrammingPractice/bytearrayfile.txt\");\n FileOutputStream fos1 = new FileOutputStream(\"C:/Users/e678332/JavaProgrammingPractice/bytearrayfile2.txt\");\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n String s = \"byteArrayStream\";\n byte[] b = s.getBytes();\n baos.write(b);\n baos.writeTo(fos);\n baos.writeTo(fos1);\n baos.flush();\n baos.close();\n\n }",
"private static void escribirArchivo(String nombre, String contenido, boolean agregar) {\n\n\t\tFileOutputStream archivo = null;\n\t\tBufferedOutputStream buffer = null;\n\t\tbyte entrada[] = new byte [100];\n\t\tArrayList<String> lista = new ArrayList<String>(5);\n\n\t\ttry {\n\t\t\tarchivo = new FileOutputStream(nombre, agregar);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbuffer = new BufferedOutputStream(archivo);\n\t\t\tbuffer.write(contenido.getBytes());\n\t\t\tbuffer.write(\"\\n\".getBytes());\n\t\t\tbuffer.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void writeToFile(String path, String text) throws IOException {\n Charset charSet = Charset.forName(\"US-ASCII\");\n BufferedWriter writer = new BufferedWriter(new FileWriter(path));\n writer.write(text,0,text.length());\n writer.close();\n }",
"static void writeFile(String path , String data) throws IOException{\n\t\tFileOutputStream fo = new FileOutputStream(path,true);\n\t\tfo.write(data.getBytes());\n\t\tfo.close();\n\t\tSystem.out.println(\"Done...\");\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tBufferedOutputStream bos = new BufferedOutputStream(\n\t\t\t\tnew FileOutputStream(\"d:/abc/f2\"));\n\t\tbos.write(97);\n\t\tbos.write(98);\n\t\tbos.write(99);\n//\t\tbos.flush();\n\t\tbos.close();\n\t}",
"@Override\n public void write(String str) {\n BufferedWriter writer;\n try {\n String path = FileManager.getInstance().getPath();\n writer = new BufferedWriter(new FileWriter(path, true));\n writer.write(str);\n writer.newLine();\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void writeFile()\n\t{\n\t\t//Printwriter object\n\t\tPrintWriter writer = FileUtils.openToWrite(\"TobaccoUse.txt\");\n\t\twriter.print(\"Year, State, Abbreviation, Percentage of Tobacco Use\\n\");\n\t\tfor(int i = 0; i < tobacco.size(); i++)\n\t\t{\n\t\t\tStateTobacco state = tobacco.get(i);\n\t\t\tString name = state.getState();\n\t\t\tString abbr = state.getAbbreviation();\n\t\t\tdouble percent = state.getPercentUse();\n\t\t\tint year = state.getYear();\n\t\t\twriter.print(\"\"+ year + \", \" + name + \", \" + abbr + \", \" + percent + \"\\n\");\n\t\t} \n\t\twriter.close(); //closes printwriter object\n\t}",
"public void writeToTextFile(String fileName, String content) throws IOException {\n \tFiles.write(Paths.get(fileName), content.getBytes(), StandardOpenOption.CREATE);\n \t}",
"public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }",
"public static void write2File(String fileName) throws IOException{\n BufferedWriter output = null;\n try {\n File file = new File(fileName);\n output = new BufferedWriter(new FileWriter(file));\n for(BufferIOIntercept ob : bufferIOList){\n \n output.write(ob.op + \",\" + ob.strategy + \",\" + ob.numberBte + \",\" + ob.blkSize + \",\" + ob.time + \"\\n\");\n }\n } catch ( IOException e ) {\n e.printStackTrace();\n } finally {\n if ( output != null ) output.close();\n }\n }",
"public void writeFile(String content){\n\t\tFile file = new File(filePath);\n\t\t\n\t\tBufferedWriter bw = null;\n\t\t\n\t\ttry{\n\t\t\tif (!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\t\n\t\t\tbw = new BufferedWriter(new FileWriter(file));\n\t\t\tbw.write(content);\n\t\t}\n\t\tcatch (Exception oops){\n\t\t\tSystem.err.print(\"There was an error writing the file \"+oops.getStackTrace());\n\t\t}\n\t\tfinally{\n\t\t\ttry{\n\t\t\t\tbw.close();\n\t\t\t}\t\n\t\t\tcatch(IOException oops){\n\t\t\t\tSystem.err.print(\"There was an error closing the write buffer \"+oops.getStackTrace());\n\t\t\t}\n\t\t}\n\t}",
"public static void writeTextToFile() {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n int number = Integer.parseInt(\"2f5\");\n outputStream.write(String.valueOf(number).getBytes());\n\n } catch (IOException | NumberFormatException e) {\n // handle exception\n } finally {\n System.out.println(\"Finally block\");\n }\n }",
"public static void main(String[] args) throws IOException {\n\t\tFileWriter fw = new FileWriter(\"C:\\\\Users\\\\shami\\\\OneDrive\\\\Desktop\\\\WriteData.txt\");\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tbw.write(\"Hello I am Working\");\n\t\tbw.write(\"Hello I am Sleeping\");\n\t\tSystem.out.println(\"Hey Done\");\n\t\tbw.close();\n\t\t\n\n\t}",
"public static void writeTextFile(String path, String content) throws IOException{\r\n FileWriter fw = new FileWriter(path, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n bw.write(content);\r\n bw.close();\r\n fw.close();\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tOutputStream os = null;\n\t\tOutputStreamWriter osw = null;\n\t\tBufferedWriter bw = null;\n\t\tPrintWriter ps = null;\n\t\ttry {\n\t\t\tos = new FileOutputStream(\"test01.txt\",true); //기존 파일에 내용 추가 //File없이 바로 쓰면 디렉터리를 만들어주지 않아 오류\n\t\t\tosw = new OutputStreamWriter(os);\n\t\t\tbw = new BufferedWriter(osw);\n\t\t\tps = new PrintWriter(bw);\n\t\t\t/*\n\t\t\tbw.write(\"문자열스트림으로 변환\");\n\t\t\tbw.newLine();\n\t\t\tbw.write(\"새로운 라인 작성\");\n\t\t\t*/\n\t\t\t\n\t\t\tps.println(\"문자열스트림으로 변환\");\n\t\t\tps.println(\"새로운 라인 작성\");\n\t\t\tps.println(\"한줄작성후 개행\");\n\t\t\t\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif(ps != null) {ps.close();}\n\t\t\t\tif(bw != null) {bw.close();}\n\t\t\t\tif(osw != null) {osw.close();}\n\t\t\t\tif(os != null) {os.close();}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void writeDataToTxtFile() {\n\n }",
"public static void writeFile(ArrayList<String> lines, String fileName)\n {\n try\n {\n // Create file \n FileWriter fstream = new FileWriter(fileName);\n BufferedWriter out = new BufferedWriter(fstream);\n for (String line: lines)\n {\n out.write(line);\n }\n //Close the output stream\n out.close();\n }\n catch (Exception e){//Catch exception if any\n System.err.println(\"Error: \" + e.getMessage());\n }\n }",
"public static void files() throws IOException {\n\n\n try {\n BufferedReader reader = new BufferedReader(new FileReader(\"D:\\\\Text.txt\"));\n String line;\n while ((line = reader.readLine()) != null) {\n Palindroms.palindromeByReverse(line);\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"D:\\\\output.txt\")));\n writer.append(line);\n writer.close();\n }\n reader.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n System.out.println(\"Bye!\");\n }\n }",
"public void pruebaEscritura() {\n\t\tFileWriter fichero = null;\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tfichero = new FileWriter(\"//172.16.1.141/Modelo_Raster/Varios/Monitoreo_Forestal/REDD/Metadatos/test.xml\");\n\t\t\tpw = new PrintWriter(fichero);\n\n\t\t\tfor (int i = 0; i < 10; i++)\n\t\t\t\tpw.println(\"Linea \" + i);\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\t// Nuevamente aprovechamos el finally para\n\t\t\t\t// asegurarnos que se cierra el fichero.\n\t\t\t\tif (null != fichero) fichero.close();\n\t\t\t}\n\t\t\tcatch (Exception e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void writeFile(String outFile, String text) {\n try{\n FileWriter fileWriter = new FileWriter(outFile,false);\n PrintWriter pw = new PrintWriter(fileWriter,true);\n \n if (text==null) {\n pw.println();\n }\n else\n {\n pw.println(text);\n }\n \n pw.close();\n fileWriter.close();\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }",
"public static void addArquivo(String texto, String nomeArquivo){\n\t\ttry {\n\t\t\tboolean logExiste = false;\n\t\t\tFile file = new File(nomeArquivo);\n\t\t\tlogExiste = file.exists();\n\t\t\t\n\t\t\tFileWriter fw = new FileWriter(nomeArquivo, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\n\t\t\tif (logExiste)\n\t\t\t\tbw.append(\"\\n\" + texto);\n\t\t\telse\n\t\t\t\tbw.write(texto);\n\t\t\t\n\t\t\t\n\t\t\tbw.close();\n\t\t\t\n\t\t\t}\n\t\t\tcatch (IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"Impossivel gravar no arquivo\");\n\t\t\t}\n\t}",
"public void writeFile(Context context){\n Writer writer = null;\n\n try {\n OutputStream out = context.openFileOutput(filename, Context.MODE_PRIVATE);\n writer = new OutputStreamWriter(out);\n writer.write(userName + \"~\" + color + \"~\" + level);\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n\n } catch (IOException e) {\n e.printStackTrace();\n\n } finally {\n if (writer != null) {\n try {\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }",
"private BufferedWriter getWriter(int secretPos) throws IOException {\n\t\tFile file = new File(\"reportingTool_tmp\" + sep + this.uniqueName + \"-\" + \"histogram_\" + this.dataset.getSecrets().get(secretPos).getFileName() + \".txt\");\n\t\tFileWriter writer = new FileWriter(file);\n\t\tBufferedWriter bw = new BufferedWriter(writer);\n\t\treturn bw;\n\t}",
"public static void writeOut(String iFilename, String iContents)\n {\n File wFile = new File(iFilename);\n BufferedWriter bw = null;\n \n try\n {\n bw = new BufferedWriter(new FileWriter(wFile));\n bw.write(iContents);\n bw.close();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"public void save(BufferedWriter bw) {\n\t\ttry {\n\t\t\tbw.append(prepareData());\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to write file.\");\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n\n long count=0;\n int line_num = 0;\n try{\n\n File file = new File(\"C:\\\\Users\\\\achyutha.aluru\\\\Desktop\\\\Files\\\\newfile_shortest1.txt\");\n PrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\n\n Random random = new Random();\n// int randomInt = random.nextInt(10);\n for(long i = 0; i < 5000; i++) //858993451 for 6.2gb\n { \n char[] word = new char[random.nextInt(8)+3]; // words of length 3 through 10. (1 and 2 letter words are boring.)\n count+=word.length;\n for(int j = 0; j < word.length; j++)\n {\n word[j] = (char)('a' + random.nextInt(26));\n\n }\n writer.print(new String(word) + ' ');\n count+=1;\n if (i % 10 == 0){\n writer.print(\".\");\n// writer.print(\"\\n\");\n line_num+=1;\n count+=1;\n }\n// if (line_num == randomInt) {\n// \twriter.print(\"\\n\");\n// \tline_num=0;\n// \trandomInt = random.nextInt(10);\n// }\n }\n writer.close();\n } catch (IOException e) {\n // do something\n }\n \n FileWrite fw = new FileWrite();\n fw.AppendToFile(\"C:\\\\\\\\Users\\\\\\\\achyutha.aluru\\\\\\\\Desktop\\\\\\\\Files\\\\\\\\newfile_shortest1.txt\");\n System.out.println(count);\n\n}",
"public static void WriteFile(){\n String[] linha;\n FileWriter writer;\n try{\n writer = new FileWriter(logscommissions, true);\n PrintWriter printer = new PrintWriter(writer);\n linha = ManageCommissionerList.ReturnsCommissionerListInString(ManageCommissionerList.comms.size()-1);\n for(int i=0;i<19;i++){\n printer.append(linha[i]+ \"\\n\");\n }\n printer.close();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"Unable to read file\\n\");\n }\n try{\n Commissions temp = ManageCommissionerList.comms.get(ManageCommissionerList.comms.size()-1);\n BufferedImage img = temp.GetWipImage();\n File fl = new File(\"wipimages/wip\" + temp.GetCommissionTitle() + temp.GetUniqueID() + \".jpg\");\n ImageIO.write(img, \"jpg\", fl);\n }catch (Exception e){\n e.printStackTrace();\n System.out.printf(\"Failure to write image file\");\n }\n \n }",
"private void writeStream(OutputStream os, String out) {\n try {\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, \"utf-8\"));\n writer.write(out);\n writer.flush();\n writer.close();\n os.close();\n } catch (IOException e) {\n }\n }",
"public static void saveAs(String line,String path)\n {\n \ttry (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"utf-8\"))) {//goes to the directory\n \t\n \t\twriter.write(line,0,line.length());//saves the lines starting from 0 till the length of the lines\n \t} catch (Exception x) {\n \t\tx.printStackTrace();\n \t}\n }",
"@Override\n\tpublic void executeOp() {\n try {\n // Make a bunch of shit that will allow us to write to the file\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n\n // Write the text that's in our notepad to the file\n bw.write(textArea.getText());\n\n // Close the \"stream\"\n bw.close();\n\n // If the attempt fails, display the error message - then give up.\n } catch (IOException ioe) {\n JOptionPane.showMessageDialog(frame, \"PROBLEM SAVING\");\n }\n\t}",
"private void addTextfileToOutputStream(OutputStream outputStream) {\n Log.i(TAG, \"adding file to outputstream...\");\n byte[] buffer = new byte[1024];\n int bytesRead;\n try {\n BufferedInputStream inputStream = new BufferedInputStream(\n new FileInputStream(Upload_File));\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n } catch (IOException e) {\n Log.i(TAG, \"problem converting input stream to output stream: \" + e);\n e.printStackTrace();\n }\n }",
"public void writeFile(String data){\n\t\t\n\t\tcurrentLine = data;\n\t\t\n\t\t\ttry{ \n\t\t\t\tFile file = new File(\"/Users/bpfruin/Documents/CSPP51036/hw3-bpfruin/src/phfmm/output.txt\");\n \n\t\t\t\t//if file doesnt exists, then create it\n\t\t\t\tif(!file.exists()){\n\t\t\t\t\tfile.createNewFile();\n\t\t\t\t}\n \n\t\t\t\t//true = append file\n\t\t\t\tFileWriter fileWriter = new FileWriter(file,true);\n \t \tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\n \t \tbufferWriter.write(data);\n \t \tbufferWriter.close();\n \n \n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t}",
"public static void writeStreamAppendByFileWriter(String fileName, String content) throws IOException {\n try {\n FileWriter writer = new FileWriter(fileName, true);\n writer.write(content);\n writer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"static void LeerArchivo(){ \r\n \t//iniciamos el try y si no funciona se hace el catch\r\n\r\n try{ \r\n \t//se crea un objeto br con el archivo de txt\r\n \tBufferedReader br = new BufferedReader( \r\n \tnew FileReader(\"reporte.txt\")\r\n );\r\n String s;\r\n //Mientras haya una linea de texto se imprime\r\n while((s = br.readLine()) != null){ \r\n System.out.println(s);\r\n }\r\n //se cierra el archivo de texto\r\n br.close(); \r\n } catch(Exception ex){\r\n \t//si no funciona se imprime el error\r\n System.out.println(ex); \r\n }\r\n }",
"public static void WriteToFile(){\r\n try {\r\n File file = new File(\"output.txt\");\r\n file.createNewFile();\r\n \r\n FileWriter fw = new FileWriter(file.getAbsoluteFile());\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n String[] FinalBoard = new String[Board.ReportBoardValues().length];\r\n FinalBoard = Board.ReportBoardValues();\r\n for(int i = 0; i < Board.ReportBoardValues().length; i++){\r\n bw.write(FinalBoard[i]);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n fw.close();\r\n \r\n }\r\n catch (IOException e) {\r\n System.out.println (\"Output error\");\r\n }\r\n }",
"public void save() {\r\n File distDataFile = new File(path);\r\n\r\n //String basePath = path;\r\n String endOfPath = path.substring(path.lastIndexOf(\"/\"));\r\n\r\n File rootDataFile;\r\n if (!path.contains(\"artists\")) {\r\n rootDataFile = new File(BASEDIR + \"/resources/data\" + endOfPath);\r\n } else {\r\n rootDataFile = new File(BASEDIR + \"/resources/data/artists\" + endOfPath);\r\n }\r\n\r\n File distTempFile = new File(path.substring(0, path.lastIndexOf(\"/\")) + \"/myTempFile.txt\");\r\n\r\n File rootTempFile;\r\n if (!path.contains(\"artists\")) {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/myTempFile.txt\");\r\n } else {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/artists/myTempFile.txt\");\r\n }\r\n \r\n try {\r\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(distTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw.write(line);\r\n bw.newLine();\r\n }\r\n\r\n bw.close();\r\n distDataFile.delete();\r\n distTempFile.renameTo(distDataFile);\r\n\r\n BufferedWriter bw2 = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(rootTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw2.write(line);\r\n bw2.newLine();\r\n }\r\n\r\n bw2.close();\r\n rootDataFile.delete();\r\n rootTempFile.renameTo(rootDataFile);\r\n } catch (IOException ex) {\r\n System.out.println(\"IOExceptoin in save1 : FileData\");\r\n }\r\n }",
"public static void writeLines(File todo, String text) {\n\t\t// Check if data is not null\n\t\tif (text != null) {\n\t\t\ttry {\n\t\t\t\t// check if the file exist, else create a new\n\t\t\t\tif (!todo.exists()) {\n\t\t\t\t\ttodo.createNewFile();\n\t\t\t\t\t// todo.setWritable(true);\n\t\t\t\t}\n\n\t\t\t\tOutputStreamWriter out = new OutputStreamWriter(\n\t\t\t\t\t\tnew FileOutputStream(todo, MODE_APPEND));\n\n\t\t\t\tout.write(text);\n\t\t\t\tout.write('\\n');\n\t\t\t\tout.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.out.println(\"Exception in File Utils :: \"\n\t\t\t\t\t\t+ ioe.getMessage());\n\t\t\t\t// Throw this exception to the caller\n\t\t\t}\n\t\t}\n\t}",
"private void append(byte[] bts) {\n checkFile();\n try {\n outputStream.write(bts);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void save(String line)\n {\n \ttry (BufferedWriter writer = Files.newBufferedWriter(path, StandardCharsets.UTF_8)) {\n \t\twriter.write(line,0,line.length());//takes the lines stars from the index 0 and saves till the end\n \t} catch (Exception x) {\n \t\tx.printStackTrace();//prints stack if something is worng\n \t}\n }",
"public static void w(String text, File loc) throws Exception {\n\r\n\t\tFileWriter fw = new FileWriter(loc, true);\r\n\t\tBufferedWriter writer = new BufferedWriter(fw);\r\n\r\n\t\twriter.newLine();\r\n\t\twriter.write(text);\r\n\r\n\t\twriter.close();\r\n\t\tfw.close();\r\n\t}",
"public static void main(String[] args) throws IOException {\n PrintWriter outputFile = new PrintWriter(\"ResultFile.txt\");\n\n outputFile.println(\"Line 1\");\n outputFile.println(\"Line 2\");\n outputFile.println(\"Line 3\");\n outputFile.println(\"Line 4\");\n\n\n outputFile.close();\n\n }",
"public void escribirFichero(String textoenjson){\n {\n OutputStreamWriter escritor=null;\n try\n {\n escritor=new OutputStreamWriter(openFileOutput(\"datos.json\", Context.MODE_PRIVATE));\n escritor.write(textoenjson);\n }\n catch (Exception ex)\n {\n Log.e(\"ivan\", \"Error al escribir fichero a memoria interna\");\n }\n finally\n {\n try {\n if(escritor!=null)\n escritor.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n }",
"public static void writeFile(String msg){\n\t\ttry { \n File f1 = new File(\"/Users/snehithraj/eclipse-workspace/ThreePhaseCommit/src/ServerDB.txt\");\n if(!f1.exists()) {\n f1.createNewFile();\n } \n FileWriter fileWriter = new FileWriter(f1.getName(),true);\n BufferedWriter bw = new BufferedWriter(fileWriter);\n bw.write(msg);\n bw.close();\n } catch(IOException e){\n e.printStackTrace();\n }\n }",
"public static void writingSpecializedArea(String newArea){//writing to objcet to file \n String filePath = \"userData\\\\specializedArea.txt\";\n BufferedWriter bw = null;\n try {//try catch start\n //file function\n File file = new File(filePath);\n \n if (!file.exists()) {//checking the is given file exists\n file.createNewFile();//creating new file\n Exception fileError=new IOException(\"File is not founded\");\n }\n \n FileWriter fw = new FileWriter(file,true);\n \n bw = new BufferedWriter(fw);\n \n bw.write(newArea);\n bw.newLine();\n \n } catch (IOException ioe) {\n System.out.println(ioe);\n ioe.printStackTrace();\n }\n finally{ \n try{\n if(bw!=null){\n bw.close();\n }\n }catch(Exception ex){\n System.out.println(\"Error in closing the BufferedWriter\"+ex);\n }\n }\n }",
"public static void RDStockePEntrpot(Destination entrepot){\n File file = new File(\"src/StockeParEntrpot.txt\");\n try {\n if(!file.exists())\n file.createNewFile();\n BufferedWriter writer = new BufferedWriter(new FileWriter(file));\n for(int i = 0; i < entrepot.getSize(); i++){\n if(entrepot.getDon(i).getEtat() == Etat.STOCKE) {\n System.out.println(entrepot.getDon(i));\n writer.write(entrepot.getDon(i).toString() + \"\\r\\n\");\n }\n }\n writer.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e){\n e.printStackTrace();\n }\n }",
"public static void outputFile(String name, String path, List<String> txt)\n\t{\n\t\tString pathb = Constants.path + \"/\" + path;\n\n\t\tFile folder = new File(pathb);\n\t\tif (!folder.exists())\n\t\t{\n\t\t\tfolder.mkdirs();\n\t\t}\n\t\ttry\n\t\t{\n\t\t\tFile bin = new File(pathb, \"bin.inf\");\n\n\t\t\tboolean binex = false;\n\t\t\tboolean recount = false;\n\t\t\tint count = -1;\n\t\t\tif (!bin.exists())\n\t\t\t{\n\t\t\t\tbin.createNewFile();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbinex = true;\n\t\t\t\tFileReader fr = new FileReader(bin);\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\n\n\t\t\t\tcount = Integer.parseInt(br.readLine());\n\t\t\t\tbr.close();\n\t\t\t}\n\n\t\t\tfor (int i = count; i >= -1; i--)\n\t\t\t{\n\t\t\t\tFile file = new File(pathb, addBefoPnt(name, \"_\" + i));\n\t\t\t\tif (file.exists())\n\t\t\t\t{\n\t\t\t\t\tfile.renameTo(new File(pathb, addBefoPnt(name, \"_\" + (i + 1))));\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tif (i == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfile = new File(pathb, addBefoPnt(name, \"_latest\"));\n\t\t\t\t\t\tif (file.exists())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfile.renameTo(new File(pathb, addBefoPnt(name, \"_\" + (i + 1))));\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\trecount = true;\n\t\t\t}\n\n\t\t\tFile file = new File(pathb, addBefoPnt(name, \"_\" + (count + 1)));\n\n\t\t\tif (file.exists())\n\t\t\t{\n\t\t\t\trecount = true;\n\t\t\t}\n\n\t\t\tfile = new File(pathb, addBefoPnt(name, \"_latest\"));\n\t\t\tfile.createNewFile();\n\n\t\t\tFileWriter ffr = new FileWriter(file);\n\t\t\tBufferedWriter fbr = new BufferedWriter(ffr);\n\n\t\t\tfor (String s : txt)\n\t\t\t{\n\t\t\t\tfbr.write(s + \"\\n\");\n\t\t\t}\n\n\t\t\tfbr.flush();\n\t\t\tfbr.close();\n\t\t\tif (!binex)\n\t\t\t{\n\t\t\t\t// -1 for latest\n\t\t\t\tint cnt = -1;\n\t\t\t\tFile f = new File(pathb, name + \"_\" + 0);\n\t\t\t\twhile (f.exists())\n\t\t\t\t{\n\t\t\t\t\tcnt += 1;\n\t\t\t\t\tf = new File(pathb, addBefoPnt(name, \"_\" + (cnt + 1)));\n\t\t\t\t}\n\t\t\t\tFileWriter fr = new FileWriter(bin);\n\t\t\t\tBufferedWriter br = new BufferedWriter(fr);\n\n\t\t\t\tbr.write(cnt + \"\");\n\t\t\t\tbr.flush();\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tFileWriter fr = new FileWriter(bin);\n\t\t\t\tBufferedWriter br = new BufferedWriter(fr);\n\n\t\t\t\tbin.delete();\n\t\t\t\tbin.createNewFile();\n\n\t\t\t\tif (!recount)\n\t\t\t\t\tbr.write(count + 1 + \"\");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcount = -1;\n\t\t\t\t\tFile f = new File(pathb, addBefoPnt(name, \"_\" + 0));\n\t\t\t\t\twhile (f.exists())\n\t\t\t\t\t{\n\t\t\t\t\t\tcount += 1;\n\t\t\t\t\t\tf = new File(pathb, addBefoPnt(name, \"_\" + (count + 1)));\n\t\t\t\t\t}\n\t\t\t\t\tbr.write(count + \"\");\n\t\t\t\t}\n\n\t\t\t\tbr.flush();\n\t\t\t\tbr.close();\n\t\t\t}\n\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeOutputStreamContents(String contents) {\n\t\t\t\n\t\t\tOutputStream os =null;\n\t\t\tFile file = new File(\"output.txt\");\n\t\t\t\n\t\t\t//false will override, true will append \n\t\t\ttry {\n\t\t\t\tos= new FileOutputStream(file, true);\n\t\t\t\tos.write(contents.getBytes());\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(os!=null) {\n\t\t\t\ttry {\n\t\t\t\t\tos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public static void writeTextToFile(String fileName,String text){\r\n File file=new File(fileName);\r\n log.fine(\"Writing to file: \"+fileName);\r\n try { if (!file.exists()){\r\n file.createNewFile();\r\n }\r\n PrintWriter out=new PrintWriter(file.getAbsoluteFile());\r\n try {\r\n out.print(text);\r\n }finally {\r\n out.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n }",
"public void saveFile(File file, String text) {\r\n\t\t\r\n\t\tif (file==null){\r\n\t\t\treturn;\t\r\n\t\t}\r\n\r\n\t\ttry (BufferedWriter bw = new BufferedWriter(new FileWriter(file))) {\r\n\r\n\t\t\tbw.write(text);\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public void guardarPuntaje() {\r\n\t\tFile archivo = new File(\"archivos/puntajes.txt\");\r\n\t\tBufferedWriter bw;\r\n\t\ttry {\r\n\t\t\tif (archivo.exists()) {\r\n\t\t\t\tFileWriter fw = new FileWriter(archivo, true);\r\n\t\t\t\tbw = new BufferedWriter(fw);\r\n\t\t\t\tbw.write(\"\\r\\n\"+jugadorActual.getNombre()+\"-\"+jugadorActual.getPuntaje());\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tFileWriter fw = new FileWriter(archivo, true);\r\n\t\t\t\tbw = new BufferedWriter(fw);\r\n\t\t\t\tbw.write(jugadorActual.getNombre()+\"-\"+jugadorActual.getPuntaje());\r\n\t\t\t\t\r\n\t\t\t}\t\t\t\t\t\r\n\t\t\tbw.close();\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t}",
"public void atualiza_ficheiro_user(){//Atualiza o ficheiro users\n File f1 = new File(\"users.txt\");\n String pesq = \"\";\n if (f1.exists() && f1.isFile()){\n try{\n FileWriter fw = new FileWriter(f1);\n BufferedWriter bw = new BufferedWriter(fw);\n // 0 1 2 3 4 5 6 7\n // ':id:admin:nome:username:password:notificacoes:pesquisas'\n for(int i=0; i< lista_utilizadores.size();i++){\n int aux = 0;\n int aux_ativo = 0;\n if(lista_utilizadores.get(i).get_administrador()){\n aux = 1;\n }\n pesq = \"\";\n for(int j = 0; j < lista_utilizadores.get(i).get_pesquisas().size(); j++){\n\n pesq = pesq.concat(lista_utilizadores.get(i).get_pesquisas().get(j));\n pesq = pesq.concat(\"-\");\n }\n //System.out.println(\"pesq de = \" + i + \"| Pesquisa = \" + pesq);\n\n bw.append(\":\"+lista_utilizadores.get(i).get_id()+\":\"+aux+\":\"+lista_utilizadores.get(i).get_nome()+\":\"+lista_utilizadores.get(i).get_username()+\":\"+lista_utilizadores.get(i).get_password()+\":\"+lista_utilizadores.get(i).get_notificacoes()+\":\"+pesq+\":\");\n bw.newLine();\n }\n bw.close();\n\n fw.close();\n }\n catch (IOException ex) {\n System.out.println(\"Erro a escrever no ficheiro.\");\n }\n }\n else {\n System.out.println(\"Ficheiro nao existe.\");\n }\n }",
"public static void writeTextFile(File file, String content) throws IOException {\n BufferedWriter bw = new BufferedWriter(new FileWriter(file));\n bw.write(content, 0, content.length());\n bw.flush();\n bw.close();\n }",
"public static void main(String[] args) throws IOException {\n\t\t\r\n File file = new File(\"C:\\\\Users\\\\balaji\\\\Desktop\\\\commons\\\\commons-io-2.6\\\\text file\\\\text1.txt\");\r\n\t\t\r\n\t\tFileUtils.write(file, \"Learning is Growing\", \"UTF-8\", false);\r\n\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tFileWriter arquivo;\n\t\t\n\t\ttry{\t\n\t\t\tarquivo = new FileWriter(\"C:\\\\Users\\\\Usuário\\\\Downloads\\\\resultado.txt\");\n\t\t\tarquivo.write(\"Escrevendo conteúdo de texto:\\nGustavo Soares\\nPROVA DE AEDS\\n10 de dezembro de 2020\");\n\t\t\tarquivo.close();\n\t\t}\n\t\tcatch(FileNotFoundException fe) {\n\t\t\tSystem.out.println(\"Erro: \" + fe.getMessage());\n\t\t}\n\t\tcatch(IOException io) {\n\t\t\tSystem.out.println(\"Erro: \" + io.getMessage());\n\t\t}\n\n\t}",
"public void escribir(String cadena) throws IOException\n {\n fileWriter = new FileWriter(archivo);\n printWriter = new PrintWriter(fileWriter);\n printWriter.println(cadena);\n }",
"private void fileModify(String text) throws IOException {\n text += \"\\n\";\n try {\n File filePath;\n filePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS);\n if (!filePath.exists()) {\n if (filePath.mkdir()) ; //directory is created;\n }\n\n fileOutputStream = new FileOutputStream(file);\n fileOutputStream.write(text.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n fileOutputStream.flush();\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public static void writeInfoTofile() throws FileNotFoundException {\n try {\n FileOutputStream outputStream = new FileOutputStream(\"ex1.txt\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n throw e;\n }\n }"
] | [
"0.68440807",
"0.65411603",
"0.6521921",
"0.6513828",
"0.64009005",
"0.6379831",
"0.6333538",
"0.629848",
"0.62929636",
"0.62726134",
"0.62262845",
"0.6191862",
"0.6189869",
"0.6178235",
"0.6154424",
"0.61472017",
"0.61385316",
"0.6128983",
"0.6119782",
"0.6084271",
"0.6068991",
"0.60662574",
"0.6056054",
"0.60487854",
"0.60464233",
"0.6028579",
"0.6014707",
"0.60009",
"0.5995287",
"0.59938186",
"0.59822935",
"0.59734255",
"0.59625113",
"0.596107",
"0.5955624",
"0.59527504",
"0.5932972",
"0.59326726",
"0.59319854",
"0.5930192",
"0.5928026",
"0.59158576",
"0.5906955",
"0.58787227",
"0.5878409",
"0.5877298",
"0.5868072",
"0.58620113",
"0.58592045",
"0.5857469",
"0.5851362",
"0.5845356",
"0.5845116",
"0.58355325",
"0.5833138",
"0.58226055",
"0.581567",
"0.58153564",
"0.5812136",
"0.5811455",
"0.58093095",
"0.5809093",
"0.57999676",
"0.57952666",
"0.57938236",
"0.5788783",
"0.5783037",
"0.57502455",
"0.57476026",
"0.57475096",
"0.5746217",
"0.57421887",
"0.57413983",
"0.5738318",
"0.57162076",
"0.57123137",
"0.57073146",
"0.57055205",
"0.5700355",
"0.57003206",
"0.56991637",
"0.5698097",
"0.5697301",
"0.5697091",
"0.56968886",
"0.5693938",
"0.5693416",
"0.56841564",
"0.5681832",
"0.56730545",
"0.566382",
"0.56614256",
"0.56609803",
"0.56594235",
"0.5658554",
"0.565302",
"0.5652165",
"0.56442803",
"0.5628557",
"0.56174296"
] | 0.6383442 | 5 |
data Structure that we use to save the file | public FileRecord(String name)
{
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;",
"private void saveData() {\n\t\tlogger.trace(\"saveData() is called\");\n\t\t\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFileOutputStream fileOut = new FileOutputStream(\"server-info.dat\");\n\t\t\tout = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(jokeFile);\n\t\t\tout.writeObject(kkServerPort);\n\t\t\tout.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\t\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t} \n\t\tfinally {\n\t\t\tif (out != null){\n\t\t\t\ttry{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void save_to_file() {\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a save directory\", FileDialog.SAVE);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"save path: \" + file_withpath);\n\t\t\t \n\t\ttry {\n\t\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file_withpath));\n\n\t\t\tout.writeObject(Key_Lists);\n\t\t\t\n\t\t\tout.close();\n\t\t\t\n\t\t\tinfo_label.setForeground(green);\n\t\t\tinfo_label.setText(\"file saved :D\");\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\t\n\t}",
"private void saveToFileData() {//Context context) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(fileNameData, Context.MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(Data.userData);\n objectOutputStream.close();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void saveData() {\n\t\t//place to save notes e.g to file\n\t}",
"private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);//goes stream based on filename\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); //create buffer writer\n Gson gson = new Gson();\n gson.toJson(countbookList, out);//convert java object to json string & save in output\n out.flush();\n fos.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}",
"private void saveData() {\n }",
"public void save() {\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"studentData.dat\");\n\n\t\t\tObjectOutputStream oos;\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(fos);\n\n\t\t\t\toos.writeObject(studentList);\n\t\t\t\toos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"File is finished writing to the hard drive\");\n\t}",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"private void saveData() {\n\t\tdataSaver.save(data);\n\t}",
"public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }",
"public void saveAsSerialization() {\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(new File(\"saves/data.dat\")))){\n os.writeObject(this);\n } catch (FileNotFoundException e){\n System.out.println(\"Could not create file: \" + e.getMessage());\n } catch (IOException e){\n System.out.println(\"IO exception occurred: \" + e.getMessage());\n }\n\n }",
"public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void serialize() {\r\n if (newFile) {\r\n this.newFile = this.serializeAs();\r\n } else if (!newFile && !path.equals(\"\")) {\r\n sr.save(this.path);\r\n }\r\n }",
"public void saveData() {\n try {\n JsonWriter jw = new JsonWriter(openFileOutput(DATA_FILE, Context.MODE_PRIVATE));\n jw.write(user);\n jw.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }",
"public static void SaveProcessedData()\n\t{\n\t\tSystem.out.println(\"\\r\\n... Saving processed Data....\");\n\t\t\n\t\tString date = new SimpleDateFormat(\"yyyyMMddhhmm\").format(new Date());\n\t\tString generalInput = \"FeatureExpressionCollection=\" + FeatureExpressionCollection.GetCount() + \";\" + FeatureExpressionCollection.GetLoc() + \";\" + FeatureExpressionCollection.GetMeanLofc() + \";\" + FeatureExpressionCollection.numberOfFeatureConstants;\n\t\t\n\t\t// Save files\n\t\ttry \n\t\t{\n\t\t\tFileUtils.write(new File(date + \"_\" + featuresPath), FeatureExpressionCollection.SerializeFeatures());\n\t\t\tFileUtils.write(new File(date + \"_\" + methodsPath), MethodCollection.SerializeMethods());\n\t\t\tFileUtils.write(new File(date + \"_\" + filesPath), FileCollection.SerializeFiles());\n\t\t\tFileUtils.write(new File(date + \"_\" + generalPath), generalInput);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.out.println(\"ERROR: Could not save processed data files\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"... done!\");\n\t}",
"public void saveToFile(Map<String, T> data) throws IOException{\n\t\tOutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n\n // serialize the Map\n output.writeObject(data);\n output.close();\n\t}",
"private void saveData(){\n\t\tsynchronized(onlineAllInfoList){\n\t\t\tRecorder.save(onlineAllInfoList, onlineAllInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving onlineCompetitionInfoList...\");System.out.flush();\n\t\tsynchronized(onlineCompetitionInfoList){\n\t\t\tRecorder.save(onlineCompetitionInfoList, onlineCompetitionInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving competitionList...\");System.out.flush();\n\t\tsynchronized(competitionList){\n\t\t\tRecorder.save(competitionList, competitionInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving allAIInfoList...\");System.out.flush();\n\t\tsynchronized(allAIInfoList){\n\t\t\tRecorder.save(allAIInfoList, allInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving waitingInfoList...\");System.out.flush();\n\t\tsynchronized(waitingInfoList){\n\t\t\tRecorder.save(waitingInfoList, waitingInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving sortedAIInfoPool...\");System.out.flush();\n\t\tsynchronized(sortedAIInfoPool){\n\t\t\tRecorder.save(sortedAIInfoPool, sortedInfoListFileName);\t\t\t\n\t\t}\n\t}",
"@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}",
"public void save(){\n Player temp = Arena.CUR_PLAYER;\n try{\n FileOutputStream outputFile = new FileOutputStream(\"./data.sec\");\n ObjectOutputStream objectOut = new ObjectOutputStream(outputFile);\n objectOut.writeObject(temp);\n objectOut.close();\n outputFile.close();\n }\n catch(FileNotFoundException e){\n System.out.print(\"Cannot create a file at that location\");\n }\n catch(SecurityException e){\n System.out.print(\"Permission Denied!\");\n }\n catch(IOException e){\n System.out.println(\"Error 203\");\n } \n }",
"public void save() {\t\n\t\n\t\n\t}",
"private void createSaveData(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(\"0-0-0-0-0\");\n writer.newLine();\n writer.write(\".....-.....-.....-.....-.....\");\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public File getDataSaveFile() {\n return dataSaveFile;\n }",
"private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos));\n\n Gson gson = new Gson();\n Log.d(\"PersonList\", personList.toString());\n gson.toJson(personList, out);\n out.flush();\n\n fos.close();\n\n } catch (FileNotFoundException e){\n throw new RuntimeException();\n } catch (IOException e){\n e.printStackTrace();\n }\n\n }",
"private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }",
"public synchronized void saveTable() \n\t{\n\t\ttry {\n\t\t\tFileOutputStream fos = new FileOutputStream(tableFile);\n\t\t\t\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(htRecords);\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(\"Cannot save : FileNotFoundException\",e);\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"Cannot save : IOException\",e);\n\t\t}\n\t}",
"File getSaveFile();",
"void save();",
"void save();",
"void save();",
"private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"public void saveData(){\r\n file.executeAction(modelStore);\r\n }",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void save(File file);",
"public void save(){\n\t\t\n\t\ttry {\n\t\t\t\t \n\t\t\t// Open Streams\n\t\t\tFileOutputStream outFile = new FileOutputStream(\"user.ser\");\n\t\t\tObjectOutputStream outObj = new ObjectOutputStream(outFile);\n\t\t\t\t \n\t\t\t// Serializing the head will save the whole list\n\t\t\toutObj.writeObject(this.head);\n\t\t\t\t \n\t\t\t// Close Streams \n\t\t\toutObj.close();\n\t\t\toutFile.close();\n\t\t}\n\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Error saving\");\n\t\t}\n\t\t\t\n\t}",
"@Override\n\tpublic boolean save(String file) {\n\t\n\t\tGson gson = new GsonBuilder().create();\n\t\tJsonArray arrEdges = new JsonArray();\n\t\tJsonArray arrNodes = new JsonArray();\n\t\tCollection<node_data> arrV = this.dwg.getV();\n\t\tfor(node_data vertex : arrV) {\n\t\t\tJsonObject nodesObj = new JsonObject();\n\t\t\tgeo_location gl = vertex.getLocation();\n\t\t\tnodesObj.addProperty(\"pos\",String.valueOf(gl.x())+\",\"+String.valueOf(gl.y())+\",\"+String.valueOf(gl.z()));\n\t\t\tnodesObj.addProperty(\"id\",vertex.getKey());\n\t\t\tarrNodes.add(nodesObj);\n\t\t\tCollection<edge_data> arrE = this.dwg.getE(vertex.getKey());\n\t\t\tfor(edge_data edge : arrE) {\n\t\t\t\tJsonObject edgesObj = new JsonObject();\n\t\t\t\tedgesObj.addProperty(\"src\",edge.getSrc());\n\t\t\t\tedgesObj.addProperty(\"w\",edge.getWeight());\n\t\t\t\tedgesObj.addProperty(\"dest\",edge.getDest());\n\t\t\t\tarrEdges.add(edgesObj);\n\t\t\t}\n\t\t}\n\t\tJsonObject graphObj = new JsonObject();\n\t\tgraphObj.add(\"Edges\",arrEdges);\n\t\tgraphObj.add(\"Nodes\",arrNodes);\n\t\tString ans = gson.toJson(graphObj);\n\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(file));\n\t\t\tpw.write(ans);\n\t\t\tpw.close();\n\t\t}\n\t\tcatch (FileNotFoundException e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;",
"public void save(){\n try{\n Date date = new Date();\n \n PrintWriter writer = new PrintWriter(\"data.MBM\", \"UTF-8\");\n \n writer.println(\"version:\"+MBMDriver.version);\n writer.println(\"numworlds:\" + worlds.size());\n writer.println(\"lastclosed:\" + date.toString());\n writer.println(\"outDir:\"+outputDir.toPath());\n \n for(int i = 0; i < worlds.size(); i++){\n \n writer.println(\"MBMWORLD:\"+worlds.get(i).getWorldFile().getName()+\":\"+worlds.get(i).getName()+\":\"+worlds.get(i).getWorldFile().toPath()+\":\"+worlds.get(i).getLastBackupDate());\n }\n \n writer.close();\n }catch(FileNotFoundException e){\n System.out.println(\"ERROR: Failed to Find File\");\n }catch(UnsupportedEncodingException e){\n System.out.println(\"ERROR: Unsupported Encoding Exception\");\n }\n }",
"public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }",
"public void save(List<T> data) {\n\t\ttry {\n\t\t\tFile file = new File(getFileLocation());\n\t\t\tif (!file.getParentFile().exists()) {\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(getFileLocation());\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(gson.toJson(data));\n\t\t\tbw.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void saveData(File file) throws Exception{\n\t\t\n\n\t \n\t\t// Build the DataThing map from the resultReferencesMap\n\t\t// First convert map of references to objects into a map of real result objects\n\t\tMap<String, Object> resultMap = new HashMap<String, Object>();\n\t\tfor (Iterator<String> i = chosenReferences.keySet().iterator(); i.hasNext();) {\n\t\t\tString portName = (String) i.next();\n\t\t\tT2Reference reference = chosenReferences.get(portName);\n\t\t\tObject obj = convertReferencesToObjects(reference);\n\t\t\tresultMap.put(portName, obj);\n\t\t}\n\t\tMap<String, DataThing> dataThings = bakeDataThingMap(resultMap);\n\t\t\n\t\tfor (String portName : dataThings.keySet()) {\n\t\t\tDataThing thing = dataThings.get(portName);\n\t\t\tthing.writeToFileSystem(file, portName);\n\t\t}\n\t}",
"public static synchronized void save() {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n String team_backup = config.Server.serverdata_file_location + \"/teams\";\n\n Calendar dato = new GregorianCalendar();\n\n team_backup += dato.get(Calendar.YEAR) + \"-\" + dato.get(Calendar.DAY_OF_MONTH) + \"-\" + dato.get(Calendar.MONTH) + \"-\";\n team_backup += dato.get(Calendar.HOUR) + \"-\" + dato.get(Calendar.MINUTE) + \".ser\";\n\n admin.logging.globalserverMsg(\"Saving team data to file.\");\n\n try {\n FileOutputStream fil = new FileOutputStream(team_fil);\n FileOutputStream fil_backup = new FileOutputStream(team_backup);\n\n //Skriv til teams.txt\n ObjectOutputStream out = new ObjectOutputStream(fil);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n\n //Skriv til backup fil.\n out = new ObjectOutputStream(fil_backup);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n } catch (Exception e) {\n e.printStackTrace();\n admin.logging.globalserverMsg(\"Error saving team data to file.\");\n }\n }",
"private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has benn serialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,Object didnt save.\");\n\t\t}\n\t}",
"public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }",
"public static void save()\r\n\t{\r\n\r\n\t\ttry {\r\n\t\t\tObjectOutputStream fileOut = new ObjectOutputStream(new FileOutputStream(\"highscores.txt\"));\r\n\t\t\tfileOut.writeObject(hsd);\r\n\t\t\tfileOut.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Save File not found\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Unable to save data\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\te.printStackTrace();\r\n\t\t\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic void saveData(Object objectsToSave, String path) {\n\t\t\n\t\ttry {\n\t\t\tString objects = (String) objectsToSave;\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(path);\n\t\t\tfileOutputStream.write(objects.getBytes());\n\t\t\tfileOutputStream.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"void saveAs() {\n writeFile.Export();\n }",
"public void saveOffers() {\n System.out.println(this.currentChild);\n // TODO [assignment_final] ulozeni aktualnich nabidek do souboru (vyberte si nazev souboru a format jaky uznate za vhodny - CSV nebo JSON)\n }",
"private void writeToFile() throws IOException {\n\t\tFileWriter write = new FileWriter(path);\n\t\tPrintWriter print_line = new PrintWriter(write);\n\t\t\n\t\tEnumeration<String> fd_key_Enum = fileData.keys();\n\t\tEnumeration<String> fd_value_Enum = fileData.elements();\n\t\twhile (fd_key_Enum.hasMoreElements() && fd_value_Enum.hasMoreElements()) {\n\t\t\tprint_line.printf(\"%s\" + \"%n\", fd_key_Enum.nextElement() + \":\" + fd_value_Enum.nextElement());\n\t\t}\n\t\t\n\t\tprint_line.close();\n\t\twrite.close();\n\t}",
"public static void save()\n {\n try {\n \n \n PrintWriter fich = null;\n \n fich = new PrintWriter(new BufferedWriter(new FileWriter(\"bd.pl\", true)));\n\t\t\t//true c'est elle qui permet d'écrire à la suite des donnée enregistrer et non de les remplacé \n \n for(String auto : GestionController.listApp)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listDetFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listType)\n {\n \n fich.println(auto);\n }\n fich.println();\n fich.close();\n } catch (Exception e1) {\n printStrace(e1);\n\t\t}\n }",
"void saveFile () {\r\n\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream (\"Bank.dat\", true);\r\n\t\t\tDataOutputStream dos = new DataOutputStream (fos);\r\n\t\t\tdos.writeUTF (saves[count][0]);\r\n\t\t\tdos.writeUTF (saves[count][1]);\r\n\t\t\tdos.writeUTF (saves[count][2]);\r\n\t\t\tdos.writeUTF (saves[count][3]);\r\n\t\t\tdos.writeUTF (saves[count][4]);\r\n\t\t\tdos.writeUTF (saves[count][5]);\r\n\t\t\tJOptionPane.showMessageDialog (this, \"The Record has been Saved Successfully\",\r\n\t\t\t\t\t\t\"BankSystem - Record Saved\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\ttxtClear ();\r\n\t\t\tdos.close();\r\n\t\t\tfos.close();\r\n\t\t}\r\n\t\tcatch (IOException ioe) {\r\n\t\t\tJOptionPane.showMessageDialog (this, \"There are Some Problem with File\",\r\n\t\t\t\t\t\t\"BankSystem - Problem\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t}\r\n\r\n\t}",
"private void saveInFile() {\n\t\tthis.deleteFile();\n\t\tfor (CounterModel obj : counterListModel.getCounterList()) {\n\t\t\ttry {\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tif (obj.getCounterName().equals(counterModel.getCounterName())) {\n\t\t\t\t\tobj = counterModel;\n\t\t\t\t}\n\t\t\t\tString json = gson.toJson(obj) +'\\n';\n\t\t\t\tFileOutputStream fos = openFileOutput(FILENAME,\n\t\t\t\t\t\tContext.MODE_APPEND);\n\t\t\t\tfos.write(json.getBytes());\n\t\t\t\tfos.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void writeFile() {\n\t\ttry {\n\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\tFile myFile = new File(dir.toString() + File.separator + FILENAME);\n\t\t\tLog.i(\"MyMovies\", \"SeSus write : \" + myFile.toString());\n\t\t\tmyFile.createNewFile();\n\t\t\tFileOutputStream fOut = new FileOutputStream(myFile);\n\t\t\tOutputStreamWriter myOutWriter = \n\t\t\t\t\tnew OutputStreamWriter(fOut);\n\t\t\tfor (Map.Entry<String, ValueElement> me : hm.entrySet()) {\n\t\t\t\tString refs = (me.getValue().cRefMovies>0? \"MOVIE\" : \"\");\n\t\t\t\trefs += (me.getValue().cRefBooks>0? \"BOOK\" : \"\");\n\t\t\t\tString line = me.getKey() + DELIMITER + me.getValue().zweiteZeile \n\t\t\t\t\t\t //+ DELIMITER\n\t\t\t\t\t\t //+ me.getValue().count\n\t\t\t\t\t \t+ DELIMITER\n\t\t\t\t\t \t+ refs\n\t\t\t\t\t \t + System.getProperty(\"line.separator\");\n\t\t\t\t//Log.i(\"MyMovies\", \"SeSus extracted : \" + line);\n\t\t\t\tmyOutWriter.write(line);\n\t\t\t}\n\t\t\tmyOutWriter.close();\n\t\t\tfOut.close();\n\t\t} catch (IOException e) {\n\t\t\t//\n\t\t\tLog.i(\"MyMovies\", \"SeSus write Exception : \");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public abstract void saveToFile(PrintWriter out);",
"public void saveJSON(String fileName, Object o){\n // System.err.println(\"accessing disk\");\n Gson gson = new Gson();\n try(FileWriter writer = new FileWriter(fileName)){\n gson.toJson(o, writer);\n //System.err.println(\"\\n Token stored\");\n }catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void saveData() throws FileNotFoundException {\t\n\t\t\t\n\tScanner inputStream = new Scanner(new File(\"bookings.dat\"));\n\t\ttry {\n\t\t\t\n\t\t\tBookingList.surName = inputStream.nextLine();\n\t\t\tBookingList.tableNo = inputStream.nextLine();\n\t\t\tBookingList.sittingTime = inputStream.nextLine();\n\t\t\tBookingList.partyOf = inputStream.nextLine();\n\t\t\t\t\n\t\t\tBooking<?> bookingData = new Booking<Object>(null, surName, tableNo, sittingTime, partyOf);\n\t\t\tb1.insert(bookingData);\n\t\t\t\t\n\t\t}finally {\n\t\t\tinputStream.close();\n\t\t}\n\t\t\t\n\t}",
"void save(String fileName);",
"void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }",
"public void storeData() {\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(\"DB/Guest.ser\"));\n out.writeInt(guestList.size());\n out.writeInt(Guest.getMaxID());\n for (Guest guest : guestList)\n out.writeObject(guest);\n //System.out.printf(\"GuestController: %,d Entries Saved.\\n\", guestList.size());\n out.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"@Override\r\n public void serializar() throws IOException {\n File fich=new File(\"datos.bin\");\r\n FileOutputStream fos = new FileOutputStream(fich);\r\n ObjectOutputStream oos = new ObjectOutputStream(fos);\r\n oos.writeObject(gestor);\r\n oos.close();\r\n }",
"public void save() throws Exception {\n // create a File object for the output file\n File outputFile = new File(MinuteUpdater.mapDir, this.fileName);\n // outputFile.mkdirs();\n outputFile.createNewFile();\n FileOutputStream fileOutputStream = new FileOutputStream(outputFile);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n\n objectOutputStream.writeObject(this);\n objectOutputStream.close();\n }",
"@Override\n public boolean save(String file) {\n /*\n Create a builder for the specific JSON format\n */\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.setPrettyPrinting();\n JsonSerializer<DWGraph_DS> serializer = new JsonSerializer<DWGraph_DS>() {\n @Override\n public JsonElement serialize(DWGraph_DS dwGraph_ds, Type type, JsonSerializationContext jsonSerializationContext) {\n JsonObject jsonGraph = new JsonObject();\n jsonGraph.add(\"Nodes\", new JsonArray());\n jsonGraph.add(\"Edges\", new JsonArray());\n\n for (node_data node : G.getV()) {\n JsonObject jsonNodeObject = new JsonObject();\n\n StringBuilder pos = new StringBuilder();\n pos.append(node.getLocation().x());\n pos.append(',');\n pos.append(node.getLocation().y());\n pos.append(',');\n pos.append(node.getLocation().z());\n jsonNodeObject.addProperty(\"pos\", pos.toString());\n jsonNodeObject.addProperty(\"id\", node.getKey());\n jsonNodeObject.addProperty(\"info\", node.getInfo());\n jsonNodeObject.addProperty(\"tag\", node.getTag());\n jsonGraph.get(\"Nodes\").getAsJsonArray().add(jsonNodeObject);\n for (edge_data e : G.getE(node.getKey())) {\n JsonObject jsonEdgeObject = new JsonObject();\n jsonEdgeObject.addProperty(\"src\", e.getSrc());\n jsonEdgeObject.addProperty(\"w\", e.getWeight());\n jsonEdgeObject.addProperty(\"dest\", e.getDest());\n jsonEdgeObject.addProperty(\"info\", e.getInfo());\n jsonEdgeObject.addProperty(\"tag\", e.getTag());\n jsonGraph.get(\"Edges\").getAsJsonArray().add(jsonEdgeObject);\n }\n }\n return jsonGraph;\n }\n };\n gsonBuilder.registerTypeAdapter(DWGraph_DS.class, serializer);\n Gson graphGson = gsonBuilder.create();\n try {\n PrintWriter writer = new PrintWriter(new FileWriter(file));\n writer.write(graphGson.toJson(G));\n writer.flush();\n writer.close();\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }",
"public void guardarEnJSON () {\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String s = gson.toJson(this);\n try {\n FileWriter fw = new FileWriter(\"files/graph.json\");\n fw.write(s);\n fw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void saveToFile() {\n FileOutputStream fos = null;\n try {\n //write the object into file\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(travelGUI.getTravelAgent());\n oos.flush();\n oos.close();\n }\n catch (IOException ioe) {\n System.out.println(ioe.getMessage());\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }",
"private static void saveJsonFile() {\n Log.println(Log.INFO, \"FileAccessing\", \"Writing settings file.\");\n JsonObject toSave = new JsonObject();\n JsonArray mappingControls = new JsonArray();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n JsonObject individualMapping = new JsonObject();\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n byte combinedAction = (byte) TaskDetail.actionToTask.keyAt(i);\n assert detail != null;\n int outerControl = detail.getTask();\n individualMapping.addProperty(\"combinedAction\", combinedAction);\n individualMapping.addProperty(\"task\", outerControl);\n mappingControls.add(individualMapping);\n }\n toSave.add(\"mappingControls\", mappingControls);\n\n JsonArray generalSettings = new JsonArray();\n for (SettingDetail setting : SettingDetail.settingDetails) {\n JsonObject individualSetting = new JsonObject();\n int status = setting.getCurrentIdx();\n individualSetting.addProperty(\"status\", status);\n generalSettings.add(individualSetting);\n }\n toSave.add(\"generalSettings\", generalSettings);\n\n JsonArray deviceList = new JsonArray();\n for (DeviceDetail device : DeviceDetail.deviceDetails) {\n JsonObject individualDevice = new JsonObject();\n individualDevice.addProperty(\"name\", device.deviceName);\n individualDevice.addProperty(\"mac\", device.macAddress);\n deviceList.add(individualDevice);\n }\n toSave.add(\"devices\", deviceList);\n\n JsonArray sensitivityList = new JsonArray();\n for (SensitivitySetting sensitivity : SensitivitySetting.sensitivitySettings) {\n JsonObject individualSensitivity = new JsonObject();\n individualSensitivity.addProperty(\"factor\", sensitivity.multiplicativeFactor);\n individualSensitivity.addProperty(\"sensitivity\", sensitivity.sensitivity);\n sensitivityList.add(individualSensitivity);\n }\n toSave.add(\"sensitivities\", sensitivityList);\n\n toSave.addProperty(\"currentlySelected\", DeviceDetail.getIndexSelected());\n\n try {\n FileOutputStream outputStreamWriter = context.openFileOutput(\"settingDetails.json\", Context.MODE_PRIVATE);\n outputStreamWriter.write(toSave.toString().getBytes());\n outputStreamWriter.close();\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file writing error.\");\n }\n }",
"@Override\n public boolean save(String file) {\n boolean ans = false;\n ObjectOutputStream oos;\n try {\n FileOutputStream fileOut = new FileOutputStream(file, true);\n oos = new ObjectOutputStream(fileOut);\n oos.writeObject(this);\n ans= true;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace(); }\n catch (IOException e) {e.printStackTrace();}\n return ans;\n }",
"static void savePlayerData() throws IOException{\n\t\t/*\n\t\t\tFile playerData = new File(\"Players/\" + Player.getName() +\".txt\");\n\t\t\tif (!playerData.exists()) {\n\t\t\t\tplayerData.createNewFile(); \n\t\t\t}\n\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"Players/\" + Player.getName() +\".txt\"));\n\t\toos.writeObject(Player.class);\n\t\toos.close();\n\t\t*/\n\t\t\n\t\tString[] player = Player.getInfoAsStringArray();\n\t\tjava.io.File playerData = new java.io.File(\"Players/\" + player[0] +\".txt\");\n\t\tif (!playerData.exists()){\n\t\t\tplayerData.createNewFile();\n\t\t}\n\t\tjava.io.PrintWriter writer = new java.io.PrintWriter(playerData);\n\t\t//[0] Name, \n\t\twriter.println(\"# Name\");\n\t\twriter.println(player[0]);\n\t\t//[1] Level, \n\t\twriter.println(\"# Level\");\n\t\twriter.println(player[1]);\n\t\t//[2] getRoleAsInt(),\n\t\twriter.println(\"# Role/Class\");\n\t\twriter.println(player[2]);\n\t\t//[3] exp,\n\t\twriter.println(\"# Exp\");\n\t\twriter.println(player[3]);\n\t\t//[4] nextLevelAt,\n\t\twriter.println(\"# Exp Required for Next Level Up\");\n\t\twriter.println(player[4]);\n\t\t//[5] health,\n\t\twriter.println(\"# Current Health\");\n\t\twriter.println(player[5]);\n\t\t//[6] maxHealth,\n\t\twriter.println(\"# Max Health\");\n\t\twriter.println(player[6]);\n\t\t//[7] intelligence,\n\t\twriter.println(\"# Intelligence\");\n\t\twriter.println(player[7]);\n\t\t//[8] dexterity,\n\t\twriter.println(\"# Dexterity\");\n\t\twriter.println(player[8]);\n\t\t//[9] strength,\n\t\twriter.println(\"# Strength\");\n\t\twriter.println(player[9]);\n\t\t//[10] speed,\n\t\twriter.println(\"# Speed\");\n\t\twriter.println(player[10]);\n\t\t//[11] protection,\n\t\twriter.println(\"# Protection\");\n\t\twriter.println(player[11]);\n\t\t//[12] accuracy,\n\t\twriter.println(\"# Accuracy\");\n\t\twriter.println(player[12]);\n\t\t//[13] dodge,\n\t\twriter.println(\"# Dodge\");\n\t\twriter.println(player[13]);\n\t\t//[14] weaponCode,\n\t\twriter.println(\"# Weapon's Code\");\n\t\twriter.println(player[14]);\n\t\t//[15] armorCode,\n\t\twriter.println(\"# Armor's Code\");\n\t\twriter.println(player[15]);\n\t\t//[16] Gold,\n\t\twriter.println(\"# Gold\");\n\t\twriter.println(player[16]);\n\t\twriter.close();\n\t\t\n\t}",
"private void saveData(String filepath) {\n String directory = FileProperties.getDirectory();\n if (!(new File(directory)).exists()) {\n (new File(directory)).mkdir();\n }\n if ((new File(filepath)).exists()) {\n (new File(filepath)).delete();\n }\n\n try (FileOutputStream fout = new FileOutputStream(filepath);\n FileChannel outChannel = fout.getChannel();) {\n ByteBuffer buffer;\n buffer = ByteBuffer.allocateDirect(patternSize);\n buffer.put(pattern);\n buffer.flip();\n outChannel.write(buffer);\n\n buffer = ByteBuffer.allocateDirect(keySize * 4 * 2);\n for (Entry<Integer, Integer> entry : rowKeys.entrySet()) {\n buffer.putInt(entry.getKey());\n buffer.putInt(entry.getValue());\n }\n buffer.flip();\n outChannel.write(buffer);\n\n buffer = ByteBuffer.allocateDirect(patternSize * 4 * 2);\n for (Entry<Integer, Integer> entry : ptnKeys.entrySet()) {\n buffer.putInt(entry.getKey());\n buffer.putInt(entry.getValue());\n }\n buffer.flip();\n outChannel.write(buffer);\n\n buffer = ByteBuffer.allocateDirect(ptnLink.length * 4);\n for (int i = 0; i < ptnLink.length; i++) {\n buffer.putInt(ptnLink[i]);\n }\n buffer.flip();\n outChannel.write(buffer);\n } catch (BufferUnderflowException | IOException ex2) {\n if ((new File(filepath)).exists()) {\n (new File(filepath)).delete();\n }\n }\n }",
"private void save() {\n if (mCacheFile.exists()) {\n mCacheFile.delete();\n }\n\n try (JsonWriter writer = new JsonWriter(new BufferedWriter(new FileWriter(mCacheFile)))) {\n writer.beginObject();\n writer.name(PRINTER_LIST_NAMES.get(0));\n writer.beginArray();\n for (DiscoveredPrinter printer : mSavedPrinters) {\n printer.write(writer);\n }\n writer.endArray();\n writer.endObject();\n } catch (NullPointerException | IOException e) {\n Log.w(TAG, \"Error while storing to \" + mCacheFile, e);\n }\n }",
"public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }",
"@Override\n\tpublic void doSaveAs() {\n\n\t}",
"public void save() {\r\n File distDataFile = new File(path);\r\n\r\n //String basePath = path;\r\n String endOfPath = path.substring(path.lastIndexOf(\"/\"));\r\n\r\n File rootDataFile;\r\n if (!path.contains(\"artists\")) {\r\n rootDataFile = new File(BASEDIR + \"/resources/data\" + endOfPath);\r\n } else {\r\n rootDataFile = new File(BASEDIR + \"/resources/data/artists\" + endOfPath);\r\n }\r\n\r\n File distTempFile = new File(path.substring(0, path.lastIndexOf(\"/\")) + \"/myTempFile.txt\");\r\n\r\n File rootTempFile;\r\n if (!path.contains(\"artists\")) {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/myTempFile.txt\");\r\n } else {\r\n rootTempFile = new File(BASEDIR + \"/resources/data/artists/myTempFile.txt\");\r\n }\r\n \r\n try {\r\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(distTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw.write(line);\r\n bw.newLine();\r\n }\r\n\r\n bw.close();\r\n distDataFile.delete();\r\n distTempFile.renameTo(distDataFile);\r\n\r\n BufferedWriter bw2 = new BufferedWriter(new OutputStreamWriter(\r\n new FileOutputStream(rootTempFile), \"UTF-8\"));\r\n\r\n for (String line : data) {\r\n bw2.write(line);\r\n bw2.newLine();\r\n }\r\n\r\n bw2.close();\r\n rootDataFile.delete();\r\n rootTempFile.renameTo(rootDataFile);\r\n } catch (IOException ex) {\r\n System.out.println(\"IOExceptoin in save1 : FileData\");\r\n }\r\n }",
"public void Serializar(){\n try {\n FileOutputStream archivo = new FileOutputStream(\"SerializacionEdificios\");\n ObjectOutputStream salida = new ObjectOutputStream(archivo);\n salida.writeObject(edificios);\n archivo = new FileOutputStream(\"SerializacionEstudiantes\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(estudiantes);\n archivo = new FileOutputStream(\"SerializacionProfesores\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(profesores);\n archivo = new FileOutputStream(\"SerializacionAdministradores\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(administradores);\n salida.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"public abstract void save(FileWriter fw) throws IOException;",
"public String getSerializedObj() {\r\n String serializedObject = null;\r\n // serialize the object\r\n // format = file content,size,name\r\n File f = this.fileObject;\r\n serializedObject = f.getBody()+\",\"+f.getFileSize()+\",\"+f.getName();\r\n return serializedObject;\r\n }",
"public static void save()\n\t{\n writeMap();\n\t}",
"void save(String filename);",
"private void writeToFile(String pathName,Object logs) {\r\n try {\r\n File save = new File(pathName);\r\n FileOutputStream fileOutputStream = new FileOutputStream(save);\r\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\r\n objectOutputStream.writeObject(logs);\r\n // System.out.println(\"write successful for\"+pathName);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void saveTodo() {\r\n File file = new File(\"C:\\\\Users\\\\Dalia\\\\Desktop\\\\CPSC 210\\\\Project\\\\project_b2h3b\\\\data\");\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setDialogTitle(\"Specify a file to save\");\r\n chooser.setCurrentDirectory(file);\r\n int userSelection = chooser.showSaveDialog(null);\r\n if (userSelection == JFileChooser.APPROVE_OPTION) {\r\n File f = chooser.getSelectedFile();\r\n System.out.println(\"Save as file: \" + f.getAbsolutePath());\r\n String tempFileName = f.getAbsolutePath();\r\n writer = new MyTodoJsonWriter(tempFileName);\r\n try {\r\n writer.open();\r\n writer.write(myTodo);\r\n fileName = tempFileName;\r\n playSound(\"c1.wav\");\r\n } catch (IOException ioException) {\r\n JOptionPane.showMessageDialog(null, \"Cannot save todolist!\");\r\n } finally {\r\n writer.close();\r\n JOptionPane.showMessageDialog(null, \"Save successful!\");\r\n }\r\n todoListGui();\r\n }\r\n }",
"private void saveListData(Object o) {\n\t\ttry {\n\t\t\tif (o == null)\n\t\t\t\treturn;\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(baos);\n\t\t\toos.writeObject(o);\n\t\t\tSharedPreferences mySharedPreferences = mContext.getSharedPreferences(\n\t\t\t\t\t\"base64\", Activity.MODE_PRIVATE);\n\t\t\tString productBase64 = new String(Base64.encodeBase64(baos\n\t\t\t\t\t.toByteArray()));\n\t\t\tSharedPreferences.Editor editor = mySharedPreferences.edit();\n\t\t\t// 将编码后的字符串写到base64.xml文件中\n\t\t\teditor.putString(DATA_COLLECTED, productBase64);\n\t\t\teditor.commit();\n\t\t\tLog.i(\"saveListData:\",\" success\" + productBase64);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"private void writeToFile(String filename, Object object) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(filename, MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(object);\n objectOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\tint opt = chooser.showSaveDialog(null);\r\n\t\t\t\tif (opt == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tFile file = chooser.getSelectedFile();\r\n\t\t\t\t\tif (FilenameUtils.getExtension(file.getName()).equalsIgnoreCase(user)) {\r\n\t\t\t\t\t\t// filename is OK as-is\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfile = new File(file.toString() + \".\"+user);\r\n\t\t\t\t\t\tfile = new File(file.getParentFile(), FilenameUtils.getBaseName(file.getName()) + \".\"+user);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tFileOutputStream fo = new FileOutputStream(file);\r\n\t\t\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fo);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\toos.writeUTF(user);\r\n\t\t\t\t\t\toos.writeObject(StudentArray);\r\n\t\t\t\t\t\toos.writeObject(tab);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\toos.close();\r\n\t\t\t\t\t\tfo.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te1.printStackTrace();\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}",
"public void save(Cacheable[] data) throws IOException, NullPointerException {\n validate(data);\n\n // write the header\n writeHeader(data);\n\n // write the data\n writeData(data);\n\n // close the file\n close();\n }",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"public static void guardar()\n {\n File fileUsuario,fileDocente;\n ObjectOutputStream entradaUsuario,entradaDocente;\n \n fileDocente = new File(\"docentes\"); \n fileUsuario = new File(\"usuarios\");\n \n try \n {\n \n entradaDocente = new ObjectOutputStream(new FileOutputStream(fileDocente));\n entradaUsuario = new ObjectOutputStream(new FileOutputStream(fileUsuario));\n \n entradaDocente.writeObject(docentes);\n entradaUsuario.writeObject(usuarios);\n \n entradaDocente.close();\n entradaUsuario.close();\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n }",
"void saveData() throws SerializerException;",
"private static void serialize(Gitlet gitletAtt, String fileName)\n throws IOException {\n try {\n File gitletFile = new File(fileName);\n FileOutputStream fileOut = new FileOutputStream(gitletFile);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(gitletAtt);\n } catch (IOException e) {\n System.err.println(e);\n String msg = \"IOException while saving Gitlet.\";\n System.out.println(msg);\n }\n }",
"public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"private void saveMap() {\r\n new Thread(() -> {\r\n try {\r\n FileOutputStream f = new FileOutputStream(this.save_file);\r\n ObjectOutputStream S = new ObjectOutputStream(f);\r\n S.writeObject(this.music_map);\r\n S.close();\r\n f.close();\r\n if (!this.save_file.setLastModified(this.music_root.lastModified())) {\r\n throw new IllegalStateException(\"Impossibile aggiornare il file dizionario\");\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }).start();\r\n }",
"public void save(File file) throws IOException{\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\n\t //Write the header of the file\n\t\twriter.append(\"Celda\");\n\t for(String label:labels){\n\t \twriter.append (DELIMITER+label);\n\t }\n\t writer.append(NEWLINE);\n\t\t\n\t //Now, write the content of the tree\n\t Set<Integer> keys = this.keySet();\n\t for(Integer key:keys){\n\t \twriter.append(key+\"\");\n\t \tdouble[] datas = this.get(key);\n\t \tfor(int i=0;i<datas.length;i++){\n\t \t\twriter.append(DELIMITER+datas[i]);\n\t \t}\n\t \twriter.append(NEWLINE);\n\t }\n\t \n\t writer.flush();\n\t writer.close();\n\t}",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private List getDataToSave() throws IOException {\r\n if(lstFileNames == null) {\r\n lstFileNames = new ArrayList();\r\n }else {\r\n lstFileNames.clear();\r\n }\r\n \r\n List lstDataToSave = new ArrayList();\r\n if(deletedData != null && deletedData.size() > 0) {\r\n lstDataToSave.addAll(deletedData);\r\n }\r\n if(data != null && data.size() > 0) {\r\n BudgetSubAwardBean budgetSubAwardBean;\r\n for(int index = 0; index < data.size(); index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n// if(budgetSubAwardBean.getAcType() == null && budgetSubAwardBean.getPdfAcType() == null && budgetSubAwardBean.getXmlAcType() == null) {\r\n// continue;\r\n// }\r\n if(budgetSubAwardBean.getPdfAcType() != null) {\r\n FileInputStream fileInputStream = new FileInputStream(budgetSubAwardBean.getPdfFileName());\r\n byte byteData[] = new byte[fileInputStream.available()];\r\n fileInputStream.read(byteData);\r\n budgetSubAwardBean.setSubAwardPDF(byteData);\r\n lstFileNames.add(budgetSubAwardBean.getPdfFileName());\r\n budgetSubAwardBean.setPdfFileName(new File(budgetSubAwardBean.getPdfFileName()).getName());\r\n }\r\n lstDataToSave.add(budgetSubAwardBean);\r\n }\r\n }\r\n return lstDataToSave;\r\n }",
"public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void saveData() {\n throw new UnsupportedOperationException(\"Not yet supported\");\n }",
"private void saveMemory() {\n try {\n File varTmpDir = new File(\"data/\" + brainLocation + \".ser\");\n if (!varTmpDir.exists()) {\n varTmpDir.createNewFile();\n }\n FileOutputStream fileOut = new FileOutputStream(varTmpDir);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(longTermMemory);\n out.close();\n fileOut.close();\n System.out.println(\"SAVED LONG TERM MEMORIES IN \" + brainLocation);\n } catch (IOException i) {\n i.printStackTrace();\n }\n }",
"public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }",
"public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;\r\n\t\t\ttry {\r\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(FTP_LIST_FILE));\r\n\t\t\t\toos.writeObject(FTPList.self);\r\n\t\t\t\toos.flush();\r\n\t\t\t} finally {\r\n\t\t\t\toos.close();\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}"
] | [
"0.69055927",
"0.6865498",
"0.681555",
"0.67542696",
"0.6751076",
"0.6741293",
"0.6740019",
"0.6732826",
"0.67061985",
"0.66911805",
"0.667925",
"0.66504204",
"0.6638765",
"0.6585405",
"0.6582502",
"0.6531198",
"0.6530616",
"0.6504783",
"0.6469607",
"0.6453647",
"0.6449454",
"0.6421134",
"0.64208055",
"0.6399977",
"0.63983333",
"0.6386411",
"0.6378758",
"0.63617814",
"0.6355217",
"0.6344559",
"0.6344559",
"0.6344559",
"0.6332296",
"0.6311542",
"0.6311002",
"0.62912077",
"0.62820965",
"0.62798196",
"0.62639993",
"0.6255095",
"0.62362033",
"0.62302315",
"0.62267464",
"0.62087846",
"0.6206195",
"0.6205273",
"0.6200117",
"0.6199528",
"0.61965054",
"0.61956954",
"0.6190662",
"0.61903214",
"0.6182554",
"0.61764574",
"0.6162556",
"0.61458135",
"0.61274797",
"0.6120671",
"0.61173093",
"0.6093112",
"0.6078977",
"0.60704166",
"0.6070187",
"0.6059604",
"0.60591054",
"0.6049003",
"0.60485315",
"0.60419446",
"0.60337424",
"0.60246706",
"0.6016889",
"0.60130703",
"0.6010457",
"0.6008179",
"0.6007453",
"0.60052717",
"0.6003143",
"0.6000731",
"0.5995071",
"0.5980551",
"0.59804946",
"0.59800625",
"0.597419",
"0.59672207",
"0.59670925",
"0.5960719",
"0.59559655",
"0.595418",
"0.594912",
"0.5943938",
"0.5933647",
"0.5933266",
"0.59326655",
"0.59287405",
"0.59254354",
"0.5922752",
"0.5921576",
"0.59211564",
"0.59200406",
"0.59199226",
"0.59193516"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
timeSet.performClick();
if(ifFO.equals("Time_On")){
AppConstants.open.getTime();
}else{
AppConstants.close.getTime();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Created by admin on 2017/6/30. | @Component
public interface UserMapper {
int insert(User user);
int delete(Long id);
User findById(Long id);
User findByName(String name);
List<User> listAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public void mo4359a() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void create () {\n\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"private TMCourse() {\n\t}",
"@Override\n protected void getExras() {\n }",
"public contrustor(){\r\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public void autoDetails() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"public Pitonyak_09_02() {\r\n }",
"private Singletion3() {}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private UsineJoueur() {}",
"@Override\n\tpublic void create() {\n\n\t}",
"private void poetries() {\n\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"public void mo12930a() {\n }",
"@Override\n public void init() {\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public void create() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }",
"private void getStatus() {\n\t\t\n\t}",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"protected Doodler() {\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"protected void mo6255a() {\n }",
"protected void onFirstUse() {}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void mo1531a() {\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public Date getCreated()\n {\n return null;\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}"
] | [
"0.6213155",
"0.6173781",
"0.58513945",
"0.5786305",
"0.578485",
"0.574664",
"0.5724158",
"0.57212836",
"0.5681946",
"0.5668559",
"0.5648072",
"0.5646229",
"0.56284356",
"0.56284356",
"0.5628417",
"0.56177706",
"0.56137043",
"0.5604823",
"0.5604823",
"0.5592822",
"0.55923754",
"0.5559744",
"0.555864",
"0.55528516",
"0.55498636",
"0.5538832",
"0.55348086",
"0.55323267",
"0.5531184",
"0.55189717",
"0.55135953",
"0.55065536",
"0.5495986",
"0.5495986",
"0.5495986",
"0.5495986",
"0.5495986",
"0.5495986",
"0.5484613",
"0.5482058",
"0.5474592",
"0.5474592",
"0.5474592",
"0.5474592",
"0.5474592",
"0.5474592",
"0.5474592",
"0.54690576",
"0.5468111",
"0.5467716",
"0.54676193",
"0.5446159",
"0.54435533",
"0.5427375",
"0.5427008",
"0.542001",
"0.5417101",
"0.54087466",
"0.540746",
"0.54015166",
"0.5394643",
"0.5388405",
"0.53856426",
"0.5383266",
"0.5379942",
"0.53783345",
"0.5376047",
"0.53652894",
"0.5353214",
"0.5349002",
"0.53487635",
"0.53483564",
"0.53480244",
"0.53472286",
"0.53462756",
"0.53462756",
"0.53459674",
"0.5345511",
"0.53429615",
"0.53404236",
"0.53394014",
"0.5333714",
"0.53296816",
"0.53290164",
"0.5327422",
"0.5326796",
"0.5322433",
"0.53195983",
"0.53179055",
"0.53179055",
"0.53179055",
"0.53179055",
"0.53179055",
"0.5312737",
"0.5312737",
"0.53108627",
"0.53055865",
"0.5298312",
"0.52948344",
"0.5293544",
"0.5293544"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String execute() throws Exception {
HttpServletResponse response =null;
//避免输出乱码
response=ServletActionContext.getResponse();
response.setContentType("text/html;charset=UTF-8");
response.setCharacterEncoding("UTF-8");
//获取输出
PrintWriter out = response.getWriter();
//获取session
HttpSession session = ServletActionContext.getRequest().getSession();
if(session.getAttribute("id")==null){
out.print("<script language='javascript'>alert('验证失败,请重新登陆');window.location='Login.jsp';</script>");
out.flush();
out.close();
return null;
}
list = new BuildingDao().getList("Museum_ID="+session.getAttribute("id"),"Building_Name");
return SUCCESS;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(activity); String city = sp.getString("city", ""); get the name of the city | public void setCityTextView(Activity activity, String city) {
int comma_index;
if (city != null) {
comma_index = city.indexOf(",");
if (comma_index != -1) {
city = city.substring(0, comma_index);
}
}
TextView city_tv = (TextView) activity.findViewById(R.id.city);
city_tv.setText(city);
Typeface roboto = Typeface.createFromAsset(activity.getAssets(), "fonts/Roboto-Thin.ttf");
city_tv.setTypeface(roboto);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getCity(){\n return prefs.getString(\"city\", null);\n }",
"public void save(String city){\n\n SharedPreferences sp = mcontext.getSharedPreferences(\"city\",Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(\"local\",city);\n editor.commit();\n }",
"@SuppressWarnings(\"All\")\n void setCity(String city){\n prefs.edit().putString(\"city\", city).commit();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n addPreferencesFromResource(R.xml.preferences);\n\n SharedPreferences SP = PreferenceManager.getDefaultSharedPreferences(getBaseContext());\n\n //String ip = SP.getString(\"ip\", \"NULL\");\n // Config.ip = SP.getString(\"ip\", \"NULL\");\n // Log.e(\"IP\",Config.ip );\n String language = SP.getString(\"language\",\"NULL\");\n // Toast.makeText(getApplicationContext(),Config.ip,Toast.LENGTH_SHORT).show();\n //Toast.makeText(getApplicationContext(),language,Toast.LENGTH_SHORT).show();\n }",
"public String getCurrentIdentity(){\n mSharedPreference = mContext.getSharedPreferences( mContext.getString(R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n if(mSharedPreference.contains(\"zzxxyz\")) {\n\n return mSharedPreference.getString(\"zzxxyz\", \"\");\n }\n else\n return \"\";\n}",
"private void readSharedPreferences() {\n SharedPreferences sharedPref = getActivity().getSharedPreferences(SETTINGS_FILE_KEY, MODE_PRIVATE);\n currentDeviceAddress = sharedPref.getString(SETTINGS_CURRENT_DEVICE_ADDRESS, \"\");\n currentDeviceName = sharedPref.getString(SETTINGS_CURRENT_DEVICE_NAME, \"\");\n currentFilenamePrefix = sharedPref.getString(SETTINGS_CURRENT_FILENAME_PREFIX, \"\");\n currentSubjectName = sharedPref.getString(SETTINGS_SUBJECT_NAME, \"\");\n currentShoes = sharedPref.getString(SETTINGS_SHOES, \"\");\n currentTerrain = sharedPref.getString(SETTINGS_TERRAIN, \"\");\n }",
"public void getLocal(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n user = preferences.getString(\"Username\", \"\");\n email = preferences.getString(\"Email\", \"\").replace(\".\", \",\");\n role = preferences.getString(\"Role\", \"\");\n }",
"public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }",
"public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }",
"public String getHousehold(){\n\n SharedPreferences sp = this.getActivity().getSharedPreferences(SHARED_PREF_NAME,Context.MODE_PRIVATE);\n\n String household = sp.getString(\"key_householdname\", \"\");\n return household;\n }",
"public void saveSearchedCityNames(){\n SharedPreferences.Editor editor = getSharedPreferences(SharedPrefKeys.HISTORY, MODE_PRIVATE).edit();\n Set<String> cityNamesSet = new HashSet<>();\n cityNamesSet.addAll(mSearchedCities);\n editor.putStringSet(\"SearchedCities\", cityNamesSet);\n editor.apply();\n }",
"public void loadCityDialog(final Intent intent, final SharedPreferences sharedPref) {\n final String[] savedCities = new String[]{sharedPref.getString(SharedPrefKeys.SLOT1_KEY,\n getResources().getString(R.string.empty)), sharedPref.getString(SharedPrefKeys.SLOT2_KEY,\n getResources().getString(R.string.empty)), sharedPref.getString(SharedPrefKeys.SLOT3_KEY,\n getResources().getString(R.string.empty))};\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.load_dialog_title).setItems(savedCities, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mActualCity = savedCities[i];\n if(!mActualCity.equals(getString(R.string.empty))){\n String cityName = removeLastWord(mActualCity);\n intent.putExtra(SharedPrefKeys.SEARCH_KEY, cityName);\n startActivity(intent);\n }else{\n Toast.makeText(AbstractActivity.this, R.string.cant_load, Toast.LENGTH_LONG).show();\n }\n }\n });\n builder.create();\n builder.show();\n }",
"public void loadData(){\n SharedPreferences sharedPreferences=getSharedPreferences(\"logDetails\",Context.MODE_PRIVATE);\n nameText=sharedPreferences.getString(\"name\",\"na\");\n regText=sharedPreferences.getString(\"regnum\",\"na\");\n count=sharedPreferences.getInt(\"count\",1);\n\n\n }",
"private static SharedPreferences getSharedPreference(Context context){\n return PreferenceManager.getDefaultSharedPreferences(context);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id) {\n case R.id.Save_city: {\n\n if(fc!=null)\n {\n mData = FirebaseDatabase.getInstance().getReference();\n DatabaseReference dref = mData.child(\"Cities\").child(fc.getLocationId());\n dref.setValue(fc);\n }\n\n\n }\n break;\n case R.id.Set_Current: {\n final SharedPreferences.Editor editor = getSharedPreferences(CPreference, MODE_PRIVATE).edit();\n\n int flag= getSharedPreferences(CPreference,MODE_PRIVATE).getString(\"key\",\"\").toString().length()>0 ?1:0;\n if(fc.getLocationId().length()>0)\n {\n\n editor.remove(\"key\");\n editor.remove(\"city\");\n editor.remove(\"country\");\n editor.putString(\"key\",fc.getLocationId());\n editor.putString(\"city\",fc.getCity());\n editor.putString(\"country\",fc.getCountry());\n editor.commit();\n\n if(flag==1) {\n Toast.makeText(this, \"Current City Updated\",Toast.LENGTH_SHORT).show();\n }\n else\n {\n Toast.makeText(this,\"Current City saved\",Toast.LENGTH_SHORT).show();\n }\n\n }\n\n\n }\n break;\n case R.id.Settings:{\n\n\n Intent i=new Intent(this,PrefActivity.class);\n startActivity(i);\n\n }\n break;\n default: break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public void displayCitylist(){\n final CharSequence[] items = {\" Banglore \", \" Hyderabad \", \" Chennai \", \" Delhi \", \" Mumbai \", \" Kolkata \", \"Ahmedabad\"};\n\n // Creating and Building the Dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(\"Select Your City\");\n //final AlertDialog finalLevelDialog = levelDialog;\n //final AlertDialog finalLevelDialog = levelDialog;\n builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int item) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor1 = preferences.edit();\n\n switch (item) {\n case 0: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"Banglore\", \"\" + preferences.getInt(\"BLR\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Bangalore\");\n break;\n }\n case 1: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"HYD\", 20));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1600);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"HYD\", \"\" + preferences.getInt(\"HYD\", 20));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 20));\n citySelected.setText(\"City: Hyderabad\");\n break;\n }\n case 2: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"CHE\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1800);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"CHE\", \"\" + preferences.getInt(\"CHE\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Chennai\");\n break;\n }\n case 3: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"DEL\", 25));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n citySelected.setText(\"City: Delhi\");\n break;\n }\n case 4: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"MUM\", 18));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1500);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"MUM\", \"\" + preferences.getInt(\"MUM\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Mumbai\");\n break;\n }\n case 5: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"KOL\", 25));\n editor1.putFloat(\"nightfare\", 0.0f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"KOL\", \"\" + preferences.getInt(\"KOL\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Kolkata\");\n break;\n }\n case 6: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"AMD\", 11));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1400);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n Log.d(\"AMD\", \"\" + preferences.getInt(\"AMD\", 11));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 11));\n citySelected.setText(\"City: Ahmedabad\");\n break;\n }\n default:\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putInt(\"min_distance\", 2000);\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n citySelected.setText(\"City: Bangalore\");\n }\n levelDialog.dismiss();\n }\n });\n levelDialog = builder.create();\n levelDialog.show();\n }",
"public void retrieveDataFromSharedPreference(View view) {\n\n name = sharedPreferences.getString(\"name\",\"no data\");\n email = sharedPreferences.getString(\"email\",\"no data\");\n\n nameEditText.setText(name);\n emailEditText.setText(email);\n\n }",
"public void getProfile() {\n\n String mKey = getString(R.string.preference_name);\n SharedPreferences mPrefs = getSharedPreferences(mKey, MODE_PRIVATE);\n\n // Load the user email\n\n /*userEmail = getString(R.string.preference_key_profile_email);\n userPassword = getString(R.string.preference_key_profile_password);*/\n\n // Load the user email\n\n mKey = getString(R.string.preference_key_profile_email);\n userEmail = mPrefs.getString(mKey, \"\");\n\n // Load the user password\n\n mKey = getString(R.string.preference_key_profile_password);\n userPassword = mPrefs.getString(mKey, \"\");\n\n\n //userEmail = getString(R.string.register_email);\n //userPassword = getString(R.string.register_password);\n\n }",
"String getCity();",
"String getCityname(){\n \treturn city_name;\n }",
"public String getCity() {\n return (String) get(\"city\");\n }",
"public String getCity()\n {\n \treturn city;\n }",
"SharedPreferences mo117960a();",
"private static SharedPreferences getSharedPreferences(Context context) {\n return PreferenceManager.getDefaultSharedPreferences(context);\n }",
"@Override\r\n\tprotected void onResume() {\n\t\tString str=null;\r\n\t\t//tvCity.setText(SharedPreferencesConfig.getStringConfig(mContext, \"city\"));\r\n\t\t if(SharedPreferencesConfig.getStringConfig(mContext, \"city\").length()>4){\r\n \t str= SharedPreferencesConfig.getStringConfig(mContext, \"city\").substring(0,4)+\"...\";\r\n \t tvCity.setText(str);\r\n }else{\r\n \t tvCity.setText(SharedPreferencesConfig.getStringConfig(mContext, \"city\")); \r\n }\r\n\t\r\n\t\tTextView front_hospital=(TextView) findViewById(R.id.front_hospital);\r\n\t\tif(SharedPreferencesConfig.getStringConfig(mContext, \"hospital_name\").equals(\"\")){\r\n\t\t\tfront_hospital.setText(\"请选择医院\");\r\n\t\t}else{\r\n\t\t\tfront_hospital.setText(\"\"+SharedPreferencesConfig.getStringConfig(mContext, \"hospital_name\"));\r\n\t\t}\r\n\t\t\r\n\t\tTextView front_kesi=(TextView) findViewById(R.id.front_keshi);\r\n\t\tif(SharedPreferencesConfig.getStringConfig(mContext, \"hospital_id\").equals(\"\")){\r\n\t\t\tfront_kesi.setText(\"请选择科室\");\r\n\t\t}else if(!SharedPreferencesConfig.getStringConfig(mContext, \"hospital_name\").equals(\"\")&&\r\n\t\t\t\tSharedPreferencesConfig.getStringConfig(mContext, \"hospital_id\").equals(\"\")\t){\r\n\t\t\tfront_kesi.setText(\"请选择科室\");\r\n\t\t}else if(SharedPreferencesConfig.getStringConfig(mContext, \"off_name\").equals(\"\")){\r\n\t\t\tfront_kesi.setText(\"请选择科室\");\r\n\t\t}\r\n\t\t\r\n\t\telse{\r\n\t\t\tfront_kesi.setText(SharedPreferencesConfig.getStringConfig(mContext, \"off_name\")+\"\");\r\n\r\n\t\t}\r\n\t\tsuper.onResume();\r\n\t}",
"private static SharedPreferences getSharedPrefs(final Context context) {\n final String prefsName = context.getString(R.string.sharedprefs_name);\n return context.getSharedPreferences(prefsName, Context.MODE_PRIVATE);\n }",
"public String getCity(){\n return city;\n }",
"public String getCity(){\n return city;\n }",
"private void getPreferences() {\n Constants constants = new Constants();\n android.content.SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n\n serverUrl = sharedPreferences.getString(\"LedgerLinkBaseUrl\", constants.DEFAULTURL);\n IsEditing = SharedPrefs.readSharedPreferences(getActivity(), \"IsEditing\", \"0\");\n tTrainerId = SharedPrefs.readSharedPreferences(getActivity(), \"ttrainerId\", \"-1\");\n vslaId = SharedPrefs.readSharedPreferences(getActivity(), \"vslaId\", \"-1\");\n\n vslaName = DataHolder.getInstance().getVslaName();\n representativeName = DataHolder.getInstance().getGroupRepresentativeName();\n representativePost = DataHolder.getInstance().getGroupRepresentativePost();\n repPhoneNumber = DataHolder.getInstance().getGroupRepresentativePhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n physAddress = DataHolder.getInstance().getPhysicalAddress();\n regionName = DataHolder.getInstance().getRegionName();\n grpPhoneNumber = DataHolder.getInstance().getGroupPhoneNumber();\n grpBankAccount = DataHolder.getInstance().getGroupBankAccount();\n locCoordinates = DataHolder.getInstance().getLocationCoordinates();\n grpSupportType = DataHolder.getInstance().getSupportTrainingType();\n numberOfCycles = DataHolder.getInstance().getNumberOfCycles();\n }",
"private void GetSharedPrefs()\n {\n// SharedPreferences pref = getActivity().getSharedPreferences(\"LoginPref\", 0);\n// UserId = pref.getInt(\"user_id\", 0);\n// Mobile = pref.getString(\"mobile_number\",DEFAULT);\n// Email = pref.getString(\"email_id\",DEFAULT);\n// Username = pref.getString(\"user_name\",DEFAULT);\n// Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n\n SharedPreferences pref = getActivity().getSharedPreferences(\"RegPref\", 0); // 0 - for private mode\n UserId = pref.getInt(\"user_id\", 0);\n Mobile = pref.getString(\"mobile_number\",DEFAULT);\n Email = pref.getString(\"email_id\",DEFAULT);\n Log.i(TAG, \"GetSharedPrefs: UserId: \"+UserId);\n CallOnGoingRideAPI();\n }",
"public abstract void saveCity(final int index, final SharedPreferences sharedPref);",
"public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}",
"public String getCity() {\r\n return city;\r\n }",
"public String getCity() {\r\n return city;\r\n }",
"public String getCity() {\r\n return city;\r\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() \n\t{\n\t\treturn city;\n\t}",
"public String getCity() {\n return city;\n }",
"public String getCity()\n\t{\n\t\treturn city;\n\t}",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"public String getCity() {\n return city;\n }",
"@Override\n\tprotected void onPause() {\n\t\tSharedPreferences.Editor editor = myprefs.edit();\n\t\teditor.putString(\"userN\", userName);\n\t\teditor.putString(\"name\",person_name);\n\t\teditor.commit();\n\t\tsuper.onPause();\n\t}",
"public String getCity() {\r\n\t\treturn city;\t\t\r\n\t}",
"public void displayData(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n String name = sharedPref.getString(\"username\",\"\");\n displaytext.setText(\"welcome \" + name + \"!\");\n\n }",
"public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n\n editor.apply();\n Toast.makeText(this,\"Saved!\",Toast.LENGTH_LONG).show();\n }",
"private void checkLogin() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String username = preferences.getString(\"username\", null);\n if(username==null){\n Intent intent = new Intent(this,LoginActivity.class);\n startActivity(intent);\n }\n else {\n /* if(preferences.getString(\"name\",null) ==null)\n Toast.makeText(HomeActivity.this, \"Hello \" +username, Toast.LENGTH_SHORT).show();\n else\n Toast.makeText(this, \"Hello \" + preferences.getString(\"name\", \"username\"), Toast.LENGTH_SHORT).show();\n */}\n }",
"private void getDataFromSharedPrefernce() {\r\n\r\n\t\tprofileImageString = mSharedPreferences_reg.getString(\"ProfileImageString\",\"\");\r\n\t\tpsedoName = mSharedPreferences_reg.getString(\"PseudoName\", \"\");\r\n\t\tprofiledescription = mSharedPreferences_reg.getString(\"Pseudodescription\", \"\");\r\n\r\n\t\tsetDataToRespectiveFields();\r\n\t}",
"private SharedPreferences GetPreferences( Context context )\n\t{\n\t\treturn context.getSharedPreferences( CACHE_NAME, Context.MODE_PRIVATE );\n\t}",
"@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }",
"public static String getPrefStringData(Context context, String key) {\n try {\n SharedPreferences pref = context.getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n return pref.getString(key, \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public java.lang.String getCity() {\r\n return city;\r\n }",
"private static SharedPreferences getSharedPreferences(Context context) {\n return context.getSharedPreferences(SMILE_PREFERENCES, Context.MODE_PRIVATE);\n }",
"public String getCity() {\r\n\t\treturn city;\r\n\t}",
"public String getCity() {\r\n\t\treturn city;\r\n\t}",
"public static String getSetting(Context context, String key) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getString(key, null);\n\n }",
"public String getCity() {\n return this.city;\n }",
"public String getCity() {\n return this.city;\n }",
"public String getCity() {\n return this.city;\n }",
"private String getPlayerName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String storedName = preferences.getString(\"playerName\",\"none\");\n return storedName;\n }",
"public String getCity() {\n\t\treturn city;\n\t}",
"public String getCity() {\n\t\treturn city;\n\t}",
"public String getCity() {\n\t\treturn city;\n\t}",
"public String getCity() {\n\t\treturn city;\n\t}",
"public String getCity() {\n return City;\n }",
"public java.lang.String getCity() {\n return city;\n }",
"public java.lang.String getCity() {\n return city;\n }",
"public String getCity()\n\t{\n\t\treturn City;\n\t\t\n\t}",
"public void saveCityDialog(final SharedPreferences sharedPref){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.save_dialog_title).setItems(new String[]{sharedPref.getString(SharedPrefKeys.SLOT1_KEY,\n getResources().getString(R.string.empty)), sharedPref.getString(SharedPrefKeys.SLOT2_KEY,\n getResources().getString(R.string.empty)), sharedPref.getString(SharedPrefKeys.SLOT3_KEY,\n getResources().getString(R.string.empty))}, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int index) {\n openSaveDialog(index, sharedPref);\n }\n });\n\n builder.create();\n builder.show();\n }",
"private static SharedPreferences getSharedPreferences() {\n Context ctx = AppUtils.getAppContext();\n return ctx.getSharedPreferences(\"pref_user_session_data\", Context.MODE_PRIVATE);\n }",
"public void saveName(String name, Context context){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n prefs.edit().putString(\"spillernavn\", name).apply();\n }",
"public java.lang.String getCity () {\n\t\treturn city;\n\t}",
"private void savePreferenceData(String role){\n if (getIntent()!=null){\n SharedPreferences preferences = getSharedPreferences(detailPreference, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(preferenceKey, role);\n editor.apply();\n }\n }",
"public void UniversitySelected(View view) {\n\n SharedPreferences storeduniversity = getSharedPreferences(\"universityfile\",Activity.MODE_PRIVATE);\n SharedPreferences.Editor editor=storeduniversity.edit();\n\n EditText editText = (EditText) findViewById(R.id.enterDescription);\n String uni=editText.getText().toString();\n\n editor.putString(\"university\",uni);\n editor.apply();\n\n\n \n\n\n Intent intent = new Intent(this, ClassAdder.class);\n //String message = String.valueOf(id.UniversitySelect);\n //intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }",
"public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }",
"private void LoadSavedPreferences() {\n\t\tString value;\n\t\tSharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\t// tab 3 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tempSzad\", \"22\");\n\t\tettempSzad_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPmaxdop\", \"70\");\n\t\tettempPmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempZmaxdop\", \"22\");\n\t\tettempZmaxdop_.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tempPumpaON\", \"50\");\n\t\tettempPumpaON_.setText(value);\n\n\t\t// tab 1 ************************************************\n\t\tvalue = sharedPreferences.getString(\"tv1\", \"20.20\");\n\t\ttvS1.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv2\", \"44.22\");\n\t\ttvS2.setText(value);\n\t\tvalue = sharedPreferences.getString(\"tv3\", \"19.22\");\n\t\ttvS3.setText(value);\n\t}",
"public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }",
"public String getCity() {\n\t\treturn this.city;\n\t}",
"@Override\r\n public void onPlaceSelected(Place place) {\n Log.i(\"city\",place.toString());\r\n Log.i(TAG, \"Place: \" + place.getName());\r\n city2=place.getName().toString();\r\n String a[]=place.getAddress().toString().split(\",\");\r\n int len=a.length;\r\n String h=city2;\r\n if(len>=3) {\r\n h = a[len - 3];\r\n }\r\n city2=h;\r\n\r\n }",
"private SharedPreferences getSharedPrefs() {\n return Freelancer.getContext().getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE);\n }",
"@Override\n public void onPause(){\n super.onPause();\n\n if(artistName.getText().toString().equals(\"\")){\n //puts the last entered artist's name into pref if nothing is currently written in the EditText\n SharedPreferences.Editor edit = pref.edit();\n edit.putString(Artist, artist);\n edit.commit();\n }else {\n //puts whatever is currently written in the EditText into pref\n String artistEditText = artistName.getText().toString();\n SharedPreferences.Editor edit = pref.edit();\n edit.putString(Artist, artistEditText);\n edit.commit();\n }\n }",
"public String myLocation(double latitude, double longitude){\n String myCity = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n List<Address> addressList ;\n try{\n addressList = geocoder.getFromLocation(latitude,longitude,1);\n\n if(addressList.size()>0){\n myCity = addressList.get(0).getLocality();\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n return myCity;\n }",
"public String getCityname() {\n return cityname;\n }",
"String askForCity();",
"private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }",
"protected String getName(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"TYPE\", sharedPref.getString(\"accountType\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_NAME, null);\n }",
"private void storeKeyWord(String keyWord) {\n SharedPrefsUtils.setStringPreference(application.getApplicationContext(),\"KEY\",keyWord);\n }",
"public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.display_prefs);\n\t\t// TODO Auto-generated method stub\n\n\t\tTextView tvStore = (TextView) findViewById(R.id.textViewFaveJeansBrand);\n\n\t\tSharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n\t\t// same name\n\n\t\ttvStore.setText(settings.getString(\"faveStore\", \"Aˇropostale\"));\n\t\t// default value is Jackie if it can't find a name\n\n\t}",
"protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n btn_login_dia= findViewById(R.id.btnLogin);\n btn_login_dia.setOnClickListener(this);\n btn_signup_dia= findViewById(R.id.btnSignup);\n btn_signup_dia.setOnClickListener(this);\n mAuth = FirebaseAuth.getInstance();\n sp=getSharedPreferences(\"details1\",0);\n }",
"@Override\n\tpublic String getCity() {\n\t\treturn this.city;\n\t}",
"public SharedPreferences getPrefs() { return this.prefs; }",
"public static java.lang.String getDefaultSharedPreferencesName(android.content.Context context) { throw new RuntimeException(\"Stub!\"); }"
] | [
"0.85916686",
"0.7772877",
"0.7202666",
"0.6847274",
"0.669867",
"0.65740216",
"0.6533245",
"0.6433874",
"0.6433874",
"0.64304304",
"0.64153653",
"0.64086753",
"0.6378041",
"0.6363092",
"0.6297892",
"0.62835234",
"0.62585723",
"0.6253685",
"0.62336993",
"0.6183976",
"0.61430496",
"0.61330295",
"0.6108474",
"0.6077326",
"0.6039931",
"0.60252017",
"0.6018101",
"0.6018101",
"0.60082835",
"0.5989116",
"0.59743375",
"0.5973748",
"0.59727186",
"0.59727186",
"0.59727186",
"0.596627",
"0.596453",
"0.59426343",
"0.59420335",
"0.5935615",
"0.5935615",
"0.5935615",
"0.5935615",
"0.5935615",
"0.5935615",
"0.5935615",
"0.5935615",
"0.5935615",
"0.5935615",
"0.5928884",
"0.5926366",
"0.5906931",
"0.59061074",
"0.589792",
"0.5896042",
"0.5889677",
"0.5862893",
"0.585225",
"0.5846613",
"0.58460414",
"0.58396983",
"0.58396983",
"0.5833596",
"0.58327353",
"0.58327353",
"0.58327353",
"0.5820417",
"0.57898337",
"0.57898337",
"0.57898337",
"0.57898337",
"0.5788998",
"0.5782253",
"0.5782253",
"0.57817644",
"0.5781633",
"0.577582",
"0.5770783",
"0.5743871",
"0.5737881",
"0.5737184",
"0.5733574",
"0.5733181",
"0.5732352",
"0.5726238",
"0.5725867",
"0.5720249",
"0.5702404",
"0.5690934",
"0.5688143",
"0.5683847",
"0.56780887",
"0.5665541",
"0.5656482",
"0.5651729",
"0.5648051",
"0.5626871",
"0.5626584",
"0.5613597",
"0.56108636",
"0.5609339"
] | 0.0 | -1 |
Creates an empty JSON array | public JSONArray() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JSONArray() {\n\t\tthis.rawArrayList = new ArrayList<Object>();\n\t}",
"public JsonArray() {\n }",
"public JsonWriter array() {\n startValue();\n\n stack.push(context);\n context = new JsonContext(JsonContext.Mode.LIST);\n writer.write('[');\n\n return this;\n }",
"public static AsonValue CreateRootArray() {\n return CreateRootArray(null);\n }",
"private org.json.simple.JSONArray createJsonArrayList() {\n org.json.simple.JSONArray list = new org.json.simple.JSONArray();\n for (VoteOption v : voteOptions) {\n list.add(v.getText());\n }\n return list;\n }",
"private Object[] buildEmptyRow() {\n Object[] rowData = RowDataUtil.allocateRowData( data.outputRowMeta.size() );\n\n return rowData;\n }",
"@Test(timeout = 4000)\n public void test044() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONArray jSONArray0 = jSONObject0.optJSONArray(\"[]\");\n assertNull(jSONArray0);\n }",
"@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}",
"public void testCreateEmptyArray() {\n System.out.println(\"createEmptyArray\"); // NOI18N\n \n TypeID componentType = new TypeID(TypeID.Kind.COMPONENT,\"Root\"); // NOI18N\n \n PropertyValue result = PropertyValue.createEmptyArray(componentType);\n List<PropertyValue> expResult = new ArrayList<PropertyValue> (0);\n \n assertEquals(expResult, result.getArray());\n }",
"@Override\n\tpublic Object[] toArray() {\n\t\treturn null;\n\t}",
"JsonOutputArray(final JsonOutputContainer parent, final CharacterBuffer buffer) {\n super(parent, buffer, '[', ']');\n }",
"@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn null;\n\t\t}",
"default Object[] toArray() {\n return toArray(new Object[0]);\n }",
"@Override\n public MyResponse[] newArray(int size) {\n return new MyResponse[size];\n }",
"private JArray()\n {\n throw new UnsupportedOperationException(\"Unsupported operation: uninstantiable utility class.\");\n }",
"public Array()\n {\n assert DEFAULT_CAPACITY > 0;\n\n array = new Object[DEFAULT_CAPACITY];\n }",
"@Override\n public boolean isArray() {\n return false;\n }",
"private JSONArray foodsToJson() {\n JSONArray jsonArray = new JSONArray();\n\n for (Food f : units) {\n jsonArray.put(f.toJson());\n }\n\n return jsonArray;\n }",
"Array createArray();",
"private void createJSON(){\n json = new JSONObject();\n JSONArray userID = new JSONArray();\n JSONArray palabras = new JSONArray();\n JSONArray respuesta = new JSONArray();\n\n @SuppressLint(\"SimpleDateFormat\") DateFormat formatForId = new SimpleDateFormat(\"yyMMddHHmmssSSS\");\n String id = formatForId.format(new Date()) + \"_\" + android_id;\n userID.put(id);\n global.setUserID(id);\n\n for (int i = 0; i < global.getWords().size() && i < 7; i++){\n palabras.put(global.getWords().get(i));\n }\n\n respuesta.put(url);\n\n try {\n json.put(\"userID\", userID);\n json.put(\"palabras\", palabras);\n json.put(\"respuesta\", respuesta);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"public Object[] toArray() {\n\t\treturn null;\n\t}",
"@Test\n public void testEmptyArrayCreation() {\n final String[] array = ArrayUtils.<String>toArray();\n assertEquals(0, array.length);\n }",
"public JSONObject createJSON() throws IOException {\n\n\t JSONObject json = null;\n\t if (recordList != null) {\n\t \tjson = new JSONObject();\n\t\t JSONArray rows = new JSONArray();\n\t\t int irow = 0;\n\t\t\tfor (CSVRecord record : recordList) {\n\t\t JSONObject row = new JSONObject();\n\t\t JSONArray cells = createJSONArray(record, irow);\n\t\t row.put(((irow == 0) ? \"header\" : \"row\"), cells);\n\t\t rows.add(row);\n\t\t irow++;\n\t\t }\n\t\t json.put( \"table\", rows );\n\t }\n\t return json;\n\t\n\t}",
"@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}",
"public void beginArray() {\n expect(JsonType.START_COLLECTION);\n stack.addFirst(Container.COLLECTION);\n input.read();\n }",
"@GET\n @Path(\"{name}/array\")\n public JsonArray jsonArray(@PathParam(\"name\") String name) {\n return new JsonArray().add(\"Hello\").add(name);\n }",
"@SuppressWarnings(\"unused\")\n public ArrayNode GetJsonObjectsCollection(){\n return jsonObjects;\n }",
"@Test(timeout = 4000)\n public void test046() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<JSONObject> linkedList0 = new LinkedList<JSONObject>();\n JSONArray jSONArray0 = new JSONArray((Collection) linkedList0);\n JSONArray jSONArray1 = jSONObject0.toJSONArray(jSONArray0);\n assertNull(jSONArray1);\n }",
"private JsonArray toJsonObjectArray(Iterable<Map<String, Value>> values) {\n JsonArray arr = new JsonArray();\n for (Map<String, ?> item : values) {\n arr.add(JsonUtils.toJsonObject(item));\n }\n return arr;\n }",
"protected JSONObject createAllOkKSON() {\r\n\t\tJSONObject jo = new JSONObject();\r\n\t\tjo.put(OnlineKeys.RESULT, \"OK\");\r\n\t\treturn jo;\r\n\t}",
"public JSONObject createFinalJson(){\n JSONObject finalJson = new JSONObject();\n //Get userId from SQL lite database\n DatabaseHandler db = new DatabaseHandler(this);\n User user = db.getUser();\n //get Answer JSON object and turn it into an JSON-Array\n try {\n finalJson.put(\"user\",user);\n finalJson.put(\"survey\", survey);\n finalJson.put(\"answers\",result);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n System.out.println(finalJson.toString());\n return finalJson;\n }",
"private Object JSONArray(String estado) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private static JSONObject getDataObject(JSONArray arr)\n\t{\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"data\", arr);\n\t\treturn obj;\n\t}",
"Object createArray(int capacity);",
"Array() {\n\t\tarray = new int[0];\n\t}",
"@Override\r\n\tpublic List parseArrayJSON(JSONObject jsonObj) throws NetRequestException {\n\t\treturn null;\r\n\t}",
"public T[] toArray() {\n return null;\n }",
"private ContentProposalList getEmptyProposalArray() {\n\t\treturn new ContentProposalList();\n\t}",
"@Test\n public void testWithEmptyJsonArray() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new JSONArray());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"@Override\n\tpublic JSONObject getAll() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"public boolean isArray() {\n return false;\n }",
"public boolean isArray() {\n return false;\n }",
"@Test\n public void canCreateWithEmptyArray() {\n // Arrange\n byte[] byteArray = new byte[0];\n\n // Act\n final EventData eventData = new EventData(byteArray);\n\n // Assert\n final byte[] actual = eventData.getBody();\n Assertions.assertNotNull(actual);\n Assertions.assertEquals(0, actual.length);\n }",
"public Object getJsonObject() {\n return JSONArray.toJSON(values);\n }",
"public JsonArray(final Collection<?> collection) {\n super(collection);\n }",
"public JSONBuilder() {\n\t\tthis(null, null);\n\t}",
"@Override\n\tpublic JSONObject toJSONObject() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic JSONObject toJSONObject() {\n\t\treturn null;\n\t}",
"public MyArrayList() {\n data = new Object[10];\n }",
"public boolean isArray(){\n\t\treturn false;\n\t}",
"public JSONArray getJSONArray() {\n JSONArray result = new JSONArray();\n try {\n result.put(setting.ZERO.getJsonId(), setting.ZERO.getValueAsInt());\n // Strings\n result.put(setting.BLANK.getJsonId(), setting.BLANK.getValueAsString());\n result.put(setting.CHARACTERISTIC_DICE_TEST_NAME.getJsonId(), setting.CHARACTERISTIC_DICE_TEST_NAME.getValueAsString());\n\n // Numbers\n // characteristic numbers\n result.put(setting.CHARACTERISTIC_AMOUNT.getJsonId(), setting.CHARACTERISTIC_AMOUNT.getValueAsInt());\n result.put(setting.CHARACTERISTIC_MORE_AMOUNT.getJsonId(), setting.CHARACTERISTIC_MORE_AMOUNT.getValueAsInt());\n result.put(setting.CHARACTERISTIC_DICE_TEST_AMOUNT.getJsonId(), setting.CHARACTERISTIC_DICE_TEST_AMOUNT.getValueAsInt());\n\n // Option menu numbers\n result.put(setting.OPTION_MENU_ITEM_ID_SETTINGS.getJsonId(), setting.OPTION_MENU_ITEM_ID_SETTINGS.getValueAsInt());\n result.put(setting.OPTION_MENU_ITEM_ID_EDIT.getJsonId(), setting.OPTION_MENU_ITEM_ID_EDIT.getValueAsInt());\n result.put(setting.OPTION_MENU_ITEM_ORDER_IN_CATEGORY.getJsonId(), setting.OPTION_MENU_ITEM_ORDER_IN_CATEGORY.getValueAsInt());\n\n // JSON Strings\n result.put(setting.JSON_NAME.getJsonId(), setting.JSON_NAME.getValueAsString());\n result.put(setting.JSON_VALUE.getJsonId(), setting.JSON_VALUE.getValueAsString());\n\n //JSON Position Numbers\n result.put(setting.JSON_POS_CHARACTERISTICS.getJsonId(), setting.JSON_POS_CHARACTERISTICS.getValueAsInt());\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n return result;\n }",
"@Test\n public void testArrayInsertAtIndexZeroOnEmptyArray() {\n JsonObject withEmptyArray = JsonObject.create().put(\"array\", JsonArray.empty());\n ctx.bucket().upsert(JsonDocument.create(key, withEmptyArray));\n\n DocumentFragment<String> fragment = DocumentFragment.create(key, \"array[0]\", \"arrayInsert\");\n DocumentFragment<String> result = ctx.bucket().arrayInsertIn(fragment, PersistTo.NONE, ReplicateTo.NONE);\n\n assertNotNull(result);\n assertNotEquals(fragment.cas(), result.cas());\n JsonArray storedArray = ctx.bucket().get(key).content().getArray(\"array\");\n assertEquals(1, storedArray.size());\n assertEquals(\"arrayInsert\", storedArray.getString(0));\n }",
"@SuppressWarnings(\"unchecked\")\n public static <T> Array<T> empty()\n {\n return (Array<T>) EMPTY;\n }",
"public JSONObject toJSON(){\n\t\treturn toJSON(false, false);\n\t}",
"public static JsonArrayBuilder createArrayBuilder(JsonArray initialArray) {\n\t\tJsonArrayBuilder builder = Json.createArrayBuilder();\n\t\tfor (JsonValue value : initialArray) {\n\t\t\tbuilder.add(value);\n\t\t}\n\t\treturn builder;\n\t}",
"JSONObject toJson();",
"JSONObject toJson();",
"public void arrayToJson() {\n\n var result = ctx.select(DEPARTMENT.DEPARTMENT_ID, DEPARTMENT.NAME,\n field(\"COLUMN_VALUE\").as(\"EVALUATION\"))\n .from(DEPARTMENT, lateral(select(field(\"COLUMN_VALUE\"))\n .from(table(DEPARTMENT.TOPIC))))\n .forJSON().path()\n .fetch();\n\n System.out.println(\"Example (array)\" + result.formatJSON());\n }",
"public Builder clearJson() {\n\n json_ = getDefaultInstance().getJson();\n onChanged();\n return this;\n }",
"public Builder clearJson() {\n\n json_ = getDefaultInstance().getJson();\n onChanged();\n return this;\n }",
"public Builder clearJson() {\n\n json_ = getDefaultInstance().getJson();\n onChanged();\n return this;\n }",
"public JSONObject asJSON() {\n JSONObject object = new JSONObject();\n\n // Create the definition object\n JSONObject definition = new JSONObject();\n definition.put(\"name\", this.name);\n\n JSONArray jsonQuestions = new JSONArray();\n for (Question question : this.questions)\n jsonQuestions.add(question.asJSON());\n\n definition.put(\"questions\", jsonQuestions);\n\n // Create the \"completed\" array\n JSONArray jsonCompleted = new JSONArray();\n for (Response[] responses : this.completed) {\n JSONArray jsonResponses = new JSONArray();\n\n for (Response response : responses)\n jsonResponses.add(response);\n\n jsonCompleted.add(jsonResponses);\n }\n\n // Add both fields to the final object\n object.put(\"definition\", definition);\n object.put(\"completed\", jsonCompleted);\n\n return object;\n }",
"@Override\n\tpublic Object processArrayValue(Object arg0, JsonConfig arg1) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String[] updateJsonProperties() {\n\t\treturn null;\r\n\t}",
"@Override\n\tprotected JSONArray generateJsonData(Element responseElement,\n\t\t\tMap<String, String> reqMap) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n public boolean insertjsonarray(List<ModelPerson> persons) {\n return false;\n }",
"public ArrayJList(int initialCapacity) {\n if (initialCapacity > 0) {\n this.elementData = new Object[initialCapacity];\n } else {\n throw new IllegalArgumentException(\"Illegal Capacity: \" +\n initialCapacity);\n }\n }",
"protected abstract T _createEmpty(DeserializationContext ctxt);",
"public JsonObject toJson();",
"public JSONArray toJsonArray() {\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n for (Person p : this.personList) {\r\n jsonArray.put(p.toJson());\r\n }\r\n\r\n return jsonArray;\r\n }",
"public JsArrayString generateArray(String[] array){\r\n\t\tif ( array==null||array.length==0)\r\n\t\t\treturn null ;\r\n\t\t\r\n\t\tJsArrayString retval = (JsArrayString)JavaScriptObject.createArray();\r\n\t\tfor ( String scn : array){\r\n\t\t\tretval.push(scn);\r\n\t\t}\r\n\t\treturn retval;\r\n\t\t\r\n\t}",
"public abstract Object toJson();",
"default boolean isArray() {\n return false;\n }",
"public ArrayJList() {\n this(DEFAULT_CAPACITY);\n }",
"private JSONArray parseJSON() {\n JSONArray jsonArray = new JSONArray();\n for (TimestampedMessage m : fPending) {\n JSONTokener jsonTokener = new JSONTokener(m.fMsg);\n JSONObject jsonObject = null;\n JSONArray tempjsonArray = null;\n final char firstChar = jsonTokener.next();\n jsonTokener.back();\n if ('[' == firstChar) {\n tempjsonArray = new JSONArray(jsonTokener);\n for (int i = 0; i < tempjsonArray.length(); i++) {\n jsonArray.put(tempjsonArray.getJSONObject(i));\n }\n } else {\n jsonObject = new JSONObject(jsonTokener);\n jsonArray.put(jsonObject);\n }\n\n }\n return jsonArray;\n }",
"private JSON() {\n\t}",
"@Test(timeout = 4000)\n public void test082() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<JSONObject> linkedList0 = new LinkedList<JSONObject>();\n linkedList0.offerFirst(jSONObject0);\n JSONArray jSONArray0 = new JSONArray((Collection) linkedList0);\n JSONArray jSONArray1 = jSONObject0.toJSONArray(jSONArray0);\n assertEquals(1, jSONArray1.length());\n assertNotNull(jSONArray1);\n assertNotSame(jSONArray1, jSONArray0);\n }",
"public void lite() {\n\t\t\r\n\t\tthis.setJson(\"[]\");\r\n\t\t\r\n\t\t\r\n\t}",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n Object object0 = JSONObject.NULL;\n JSONObject.valueToString(object0);\n JSONArray jSONArray0 = null;\n try {\n jSONArray0 = new JSONArray((Object) \"null\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONArray initial value should be a string or collection or array.\n //\n verifyException(\"wheel.json.JSONArray\", e);\n }\n }",
"@Override\r\n\tpublic Object toJSonObject() {\n\t\treturn null;\r\n\t}",
"@Test\n public void testDeSerializeEmptyArray() throws Exception {\n Writable[] wa = new Writable[]{\n new Text(\"{\\\"country\\\":\\\"Switzerland\\\",\\\"languages\\\":[\\\"Italian\\\"],\\\"religions\\\":\\\"\\\"}\")\n };\n\n for (Writable w : wa) {\n JSONObject result = (JSONObject) instance.deserialize(w);\n StructObjectInspector soi = (StructObjectInspector) instance.getObjectInspector();\n StructField sfr = soi.getStructFieldRef(\"religions\");\n\n assertEquals(sfr.getFieldObjectInspector().getCategory(), ObjectInspector.Category.LIST);\n\n ListObjectInspector loi = (ListObjectInspector) sfr.getFieldObjectInspector();\n Object val = soi.getStructFieldData(result, sfr);\n\n assertEquals(-1, loi.getListLength(val));\n }\n\n }",
"public JsonObject build() {\n JsonObject object = new JsonObject();\n\n for (Map.Entry<String, Object> entry : values.entrySet()) {\n object.put(entry.getKey(), entry.getValue());\n }\n\n return object;\n }",
"public JSONObject toJSONObject() {\n\t\treturn null;\n\t}",
"public static JsonArray getArray1(final Envelop envelop) {\n return In.request(envelop, 1, JsonArray.class);\n }",
"@Override\r\n\tpublic JSONObject buildJson() {\n\t\tJSONObject json = new JSONObject();\r\n\t\ttry {\r\n\t\t\tsetInt(json,d_type,type);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogUtil.log.error(e.getMessage(),e);\r\n\t\t}\r\n\t\treturn json;\r\n\t}",
"ArrayValue createArrayValue();",
"@Test(timeout = 4000)\n public void test048() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n jSONObject0.put(\",\\n\", (Object) null);\n Float float0 = new Float(1.0);\n JSONArray jSONArray0 = null;\n try {\n jSONArray0 = new JSONArray(float0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONArray initial value should be a string or collection or array.\n //\n verifyException(\"wheel.json.JSONArray\", e);\n }\n }",
"@Test\n public void testWithEmptyJsonArrayAsString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"[]\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"protected Object[] freshElemArray(int capacity) {\n return new Object[capacity];\n }",
"public JSONObject toJsonObject()\n\t{\n\t\tJSONObject jsonObject = new JSONObject();\n\t\ttry {\n\t\t\tjsonObject.put(\"status\", status);\n\t\t\tif(catrgories != null && catrgories.length > 0){\n\t\t\t\tJSONArray catrgoriesJsonArray = new JSONArray();\n\t\t\t\tfor(ModelCatrgory catrgoriesElement : catrgories){\n\t\t\t\t\tcatrgoriesJsonArray.put(catrgoriesElement.toJsonObject());\n\t\t\t\t}\n\t\t\t\tjsonObject.put(\"catrgories\", catrgoriesJsonArray);\n\t\t\t}\n\t\t\t\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn jsonObject;\n\t}",
"private static JsonLista toBasicJson(Lista lista) {\r\n\t\tJsonLista jsonLista = new JsonLista();\r\n\t\tapplyBasicJsonValues(jsonLista, lista);\r\n\t\treturn jsonLista;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}",
"@Override\n public Object[] toArray() {\n return Arrays.copyOf(data, size);\n }",
"public JSONModel() {\n jo = new JSONObject();\n }",
"@Override\n\tpublic void setJSONObject() {\n\t\tfor(QuestionResult questionResult: questionResults){\n\t\t\tobjArray.put(questionResult.getJSONObject());\n\t\t}\n\t\ttry{\n\t\t\tmainObj.put(\"questions\", objArray);\n\t\t} catch(JSONException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public JSONObject createJSON(String dateModified, String type){\n ArrayList<Integer> keyArrl = getAllKeysOrdered();\n if(keyArrl == null || keyArrl.isEmpty()){\n return null;\n }\n\n //try to create a JSONObject\n try {\n JSONObject jObj = new JSONObject();\n //insert the file name and type\n jObj.put(\"Date Modified\", dateModified);\n jObj.put(\"Type\", type);\n\n //check to make sure not saving empty file\n if(keyArrl == null || keyArrl.isEmpty()){\n return null;\n }\n\n //insert JSONArray of the keys\n JSONArray jsArray = new JSONArray(keyArrl);\n jObj.put(\"Values\", jsArray);\n\n //return the JSONObject\n return jObj;\n\n //catch the error if JSONObject not made\n } catch (JSONException e) {\n Log.e(\"MYAPP\", \"unexpected JSON exception\", e);\n // Do something to recover ... or kill the app.\n return null;\n }\n }",
"@Test(timeout = 4000)\n public void test093() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = jSONObject0.put(\",\\n\", false);\n jSONObject1.accumulate(\",\\n\", jSONObject0);\n JSONArray jSONArray0 = new JSONArray();\n assertEquals(0, jSONArray0.length());\n }",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<Float> linkedList0 = new LinkedList<Float>();\n HashMap<Boolean, Integer> hashMap0 = new HashMap<Boolean, Integer>();\n JSONObject jSONObject1 = new JSONObject((Map) hashMap0);\n JSONArray jSONArray0 = jSONObject1.toJSONArray((JSONArray) null);\n assertNull(jSONArray0);\n }",
"@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}"
] | [
"0.6810179",
"0.67794746",
"0.6258534",
"0.6185311",
"0.60834205",
"0.6055896",
"0.59373367",
"0.59127045",
"0.5889704",
"0.5869352",
"0.57476056",
"0.5743415",
"0.5721501",
"0.5711221",
"0.57087076",
"0.5661256",
"0.5657131",
"0.565579",
"0.55924106",
"0.55525213",
"0.55500937",
"0.55473125",
"0.55396146",
"0.5529828",
"0.5517376",
"0.5510746",
"0.55052376",
"0.550261",
"0.5464997",
"0.5462798",
"0.5452264",
"0.54505455",
"0.5440662",
"0.54342633",
"0.54287314",
"0.5390091",
"0.5384027",
"0.53694755",
"0.5367281",
"0.53629977",
"0.5350993",
"0.5350513",
"0.5350513",
"0.5343595",
"0.533052",
"0.5320486",
"0.5285831",
"0.52834344",
"0.52834344",
"0.5281383",
"0.52810127",
"0.5279397",
"0.5279206",
"0.52786916",
"0.52683586",
"0.5261995",
"0.5245187",
"0.5245187",
"0.5236078",
"0.52200574",
"0.52200574",
"0.52200574",
"0.5212372",
"0.52092546",
"0.52078915",
"0.51840687",
"0.5178942",
"0.5175592",
"0.51755244",
"0.5167252",
"0.51557577",
"0.5154011",
"0.5148931",
"0.514166",
"0.5141571",
"0.513711",
"0.51342654",
"0.5130776",
"0.513069",
"0.5127982",
"0.5125696",
"0.5118648",
"0.51186424",
"0.5117859",
"0.5117075",
"0.5110943",
"0.5102933",
"0.50885665",
"0.5087455",
"0.5082008",
"0.5076277",
"0.507098",
"0.50572425",
"0.5056872",
"0.5055978",
"0.5050606",
"0.504903",
"0.5046907",
"0.5045146",
"0.50411606"
] | 0.6836909 | 0 |
Creates a JSON array from the given collection | public JSONArray(Collection<?> collection) {
this();
if(collection == null) return;
for(Object value : collection) {
if(value instanceof Collection<?>) value = new JSONArray((Collection<?>) value);
if(value instanceof Map<?, ?>) value = new JSONObject((Map<?, ?>) value);
if(JSONType.typeOf(value) == null) throw new JSONException("Illegal value type " + value.getClass().getName());
values.add(value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JsonArray(final Collection<?> collection) {\n super(collection);\n }",
"static Object[] m59445a(Collection<?> collection) {\n return m59444a((Iterable<?>) collection, new Object[collection.size()]);\n }",
"private void arrayToCollection(String name, Collection<Object>lst, JSONArray jarr, Type ptype) throws Exception {\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tString cname = lst.getClass().getSimpleName() + \": \" + name;\n\t\tfor(Object jsonObj : jarr) {\n\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\tif(obj!=null)\n\t\t\t\tlst.add(obj);\n\t\t}\n\t}",
"private JSONArray foodsToJson() {\n JSONArray jsonArray = new JSONArray();\n\n for (Food f : units) {\n jsonArray.put(f.toJson());\n }\n\n return jsonArray;\n }",
"PropertyArray(Collection<?> collection) {\n if (collection == null) {\n this.myArrayList = new ArrayList<>();\n } else {\n this.myArrayList = new ArrayList<>(collection.size());\n for (Object o : collection) {\n this.myArrayList.add(PropertyObject.wrap(o));\n }\n }\n }",
"protected abstract Collection createCollection();",
"private List<Object> serializeActualCollectionMembers(AbstractPersistentCollection collection)\r\n\t{\r\n\t\tList<Object> result = new ArrayList<Object>();\r\n\t\tif (!collection.wasInitialized())\r\n\t\t{\r\n\t\t\tcollection.forceInitialization();\r\n\t\t}\r\n\t\tIterator<Object> itr = collection.entries(null);\r\n\t\twhile (itr.hasNext())\r\n\t\t{\r\n\t\t\tObject next = itr.next();\r\n\t\t\tObject newObj = serialize(next);\r\n\t\t\tresult.add(newObj);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public void disabled_testLargeCollectionSerialization() {\n int count = 1400000;\n List<CollectionEntry> list = new ArrayList<CollectionEntry>(count);\n for (int i = 0; i < count; ++i) {\n list.add(new CollectionEntry(\"name\"+i,\"value\"+i));\n } \n gson.toJson(list);\n }",
"@SuppressWarnings(\"unused\")\n public ArrayNode GetJsonObjectsCollection(){\n return jsonObjects;\n }",
"private void serializeCollection(final Collection<?> collection, final StringBuffer buffer)\n {\n Iterator<?> iterator;\n int index;\n\n this.history.add(collection);\n buffer.append(\"a:\");\n buffer.append(collection.size());\n buffer.append(\":{\");\n iterator = collection.iterator();\n index = 0;\n while (iterator.hasNext())\n {\n serializeObject(Integer.valueOf(index), buffer, false);\n this.history.remove(this.history.size() - 1);\n serializeObject(iterator.next(), buffer);\n index++;\n }\n buffer.append('}');\n }",
"String getCollection();",
"public JSONArray(Object arrayOrCollection) throws JSONException {\n\t\tthis();\n\t\tif (arrayOrCollection.getClass().isArray()) {//数组\n\t\t\tint length = Array.getLength(arrayOrCollection);\n\t\t\tfor (int i = 0; i < length; i += 1) {\n\t\t\t\tthis.put(JSONUtil.wrap(Array.get(arrayOrCollection, i)));\n\t\t\t}\n\t\t} else if(arrayOrCollection instanceof Iterable<?>){//Iterable\n\t\t\tfor (Object o : (Collection<?>)arrayOrCollection) {\n\t\t\t\tthis.add(o);\n\t\t\t}\n\t\t}else{\n\t\t\tthrow new JSONException(\"JSONArray initial value should be a string or collection or array.\");\n\t\t}\n\t}",
"java.lang.String getCollection();",
"void writeMap(Collection<?> array);",
"public void arrayToJson() {\n\n var result = ctx.select(DEPARTMENT.DEPARTMENT_ID, DEPARTMENT.NAME,\n field(\"COLUMN_VALUE\").as(\"EVALUATION\"))\n .from(DEPARTMENT, lateral(select(field(\"COLUMN_VALUE\"))\n .from(table(DEPARTMENT.TOPIC))))\n .forJSON().path()\n .fetch();\n\n System.out.println(\"Example (array)\" + result.formatJSON());\n }",
"public JSONObject validateCollections(Collections collection){\n\n\t\tInvalidValue[] invalidValues = collectionsValidator.getInvalidValues(collection);\n\t\tHashMap<String, String> errs=new HashMap<String, String>();\n\n\t\tfor (InvalidValue value : invalidValues) { \n\t\t\terrs.put(\"Collection \" + value.getPropertyName(), value.getMessage());\t\t\t \n\t\t}\n\t\treturn createJson(errs);\n\n\t}",
"private org.json.simple.JSONArray createJsonArrayList() {\n org.json.simple.JSONArray list = new org.json.simple.JSONArray();\n for (VoteOption v : voteOptions) {\n list.add(v.getText());\n }\n return list;\n }",
"public abstract Object toJson();",
"public static <T> T[] toArray(final Collection<T> collection) {\n\n T next = getFirstNotNullValue(collection);\n if (next != null) {\n Object[] objects = collection.toArray();\n @SuppressWarnings(\"unchecked\")\n T[] convertedObjects = (T[]) Array.newInstance(next.getClass(), objects.length);\n System.arraycopy(objects, 0, convertedObjects, 0, objects.length);\n return convertedObjects;\n } else {\n return null;\n }\n }",
"public Collection<JSONObject> getCollection(String propertyName) {\n Collection<JSONObject> result = null;\n if (this.propertyBag.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n result = new ArrayList<JSONObject>();\n JSONArray jsonArray = this.propertyBag.getJSONArray(propertyName);\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n result.add(jsonObject);\n }\n }\n\n return result; \n }",
"private Object arrayToSPLArray(String name, JSONArray jarr, Type ptype) throws Exception {\n\t\tif(l.isLoggable(TraceLevel.DEBUG)) {\n\t\t\tl.log(TraceLevel.DEBUG, \"Creating Array: \" + name);\n\t\t}\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tint cnt=0;\n\t\tString cname = \"List: \" + name;\n\n\t\tswitch(ctype.getElementType().getMetaType()) {\n\t\tcase INT8:\n\t\tcase UINT8: \n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tbyte[] arr= new byte[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Byte)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT16:\n\t\tcase UINT16:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tshort[] arr= new short[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Short)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT32:\n\t\tcase UINT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tint[] arr= new int[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Integer)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase INT64:\n\t\tcase UINT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tlong[] arr= new long[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Long)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase BOOLEAN:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tboolean[] arr= new boolean[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Boolean)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tfloat[] arr= new float[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Float)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tdouble[] arr= new double[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Double)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase USTRING:\n\t\t{\n\t\t\tList<String> lst = new ArrayList<String>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((String)obj);\n\t\t\t}\n\t\t\treturn lst.toArray(new String[lst.size()]);\n\t\t} \n\n\t\tcase BSTRING:\n\t\tcase RSTRING:\n\t\t{\n\t\t\tList<RString> lst = new ArrayList<RString>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((RString)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase TUPLE:\n\t\t{\n\t\t\tList<Tuple> lst = new ArrayList<Tuple>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Tuple)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase LIST:\n\t\tcase BLIST:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase SET:\n\t\tcase BSET:\n\t\t{\n\t\t\tSet<Object> lst = new HashSet<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase DECIMAL32:\n\t\tcase DECIMAL64:\n\t\tcase DECIMAL128:\n\t\t{\n\t\t\tList<BigDecimal> lst = new ArrayList<BigDecimal>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((BigDecimal)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase TIMESTAMP:\n\t\t{\n\t\t\tList<Timestamp> lst = new ArrayList<Timestamp>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Timestamp)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\n\t\t//TODO -- not yet supported types\n\t\tcase BLOB:\n\t\tcase MAP:\n\t\tcase BMAP:\n\t\tcase COMPLEX32:\n\t\tcase COMPLEX64:\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unhandled array type: \" + ctype.getElementType().getMetaType());\n\t\t}\n\n\t}",
"private JSArray convertToJSArray(ArrayList<Object> row) {\n JSArray jsArray = new JSArray();\n for (int i = 0; i < row.size(); i++) {\n jsArray.put(row.get(i));\n }\n return jsArray;\n }",
"@Override\r\n\tpublic Object[] toArray() {\n\t\treturn set.toArray();\r\n\t}",
"<T> Collection<T> parseToCollectionObjects(Object json, Type typeClass);",
"public abstract JSONArray getISOList(String poolUuid);",
"com.google.protobuf.ByteString\n getCollectionBytes();",
"public void beginArray() {\n expect(JsonType.START_COLLECTION);\n stack.addFirst(Container.COLLECTION);\n input.read();\n }",
"Object[] toArray();",
"Object[] toArray();",
"Object[] toArray();",
"public static void main(String[] args) {\n // Converts a collection of string object into JSON string.\n //\n List<String> names = new ArrayList<String>();\n names.add(\"Alice\");\n names.add(\"Bob\");\n names.add(\"Carol\");\n names.add(\"Mallory\");\n\n Gson gson = new Gson();\n String jsonNames = gson.toJson(names);\n System.out.println(\"jsonNames = \" + jsonNames);\n\n //\n // Converts a collection Student object into JSON string\n //\n Student a = new Student(\"Alice\", \"Apple St\",\n CollectionToJson.getDOB(2000, 10, 1));\n Student b = new Student(\"Bob\", \"Banana St\", null);\n Student c = new Student(\"Carol\", \"Grape St\",\n CollectionToJson.getDOB(2000, 5, 21));\n Student d = new Student(\"Mallory\", \"Mango St\", null);\n\n List<Student> students = new ArrayList<Student>();\n students.add(a);\n students.add(b);\n students.add(c);\n students.add(d);\n\n gson = new Gson();\n String jsonStudents = gson.toJson(students);\n System.out.println(\"jsonStudents = \" + jsonStudents);\n\n //\n // Converts JSON string into a collection of Student object.\n //\n Type type = new TypeToken<List<Student>>() {\n }.getType();\n List<Student> studentList = gson.fromJson(jsonStudents, type);\n\n for (Student student : studentList) {\n System.out.println(\"student.getName() = \" + student.getName());\n }\n }",
"CollectionResource createCollectionResource();",
"@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn snapshot().toArray();\n\t\t}",
"public static final SourceModel.Expr showJCollection(SourceModel.Expr collection) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showJCollection), collection});\n\t\t}",
"@Override\n\tpublic Object[] toArray() {\n\t\treturn snapshot().toArray();\n\t}",
"public Object[] toArray() {\r\n\t\treturn this.records.toArray();\r\n\t}",
"public String getAllSubjects (){\n MongoCursor<Document> cursor = subject.find().iterator();\n boolean hasOne = false;\n String json = \"{\\\"result\\\":[\";\n while (cursor.hasNext()){\n Document c = (Document)cursor.next();\n json +=c.toJson()+\",\";\n hasOne = true;\n }\n if (hasOne) json = json.substring(0,json.length()-1);\n json+=\"]}\";\n return json;\n}",
"protected void writeCollectionValue(Collection<?> v) throws IOException\n {\n _generator.writeStartArray();\n for (Object ob : v) {\n writeValue(ob);\n }\n _generator.writeEndArray();\n }",
"static <T> T[] m59446a(Collection<?> collection, T[] tArr) {\n int size = collection.size();\n if (tArr.length < size) {\n tArr = m59448a(tArr, size);\n }\n m59444a((Iterable<?>) collection, (Object[]) tArr);\n if (tArr.length > size) {\n tArr[size] = null;\n }\n return tArr;\n }",
"public JSONArray processQueryAggregatedObject(MongoQuery query, String AggregationDataBaseName,\n String AggregationCollectionName) {\n List<String> allDocuments = mongoDBHandler.find(AggregationDataBaseName, AggregationCollectionName, query);\n LOGGER.debug(\"Number of documents returned from {} collection is : {}\", AggregationCollectionName, allDocuments.size());\n Iterator<String> allDocumentsItr = allDocuments.iterator();\n JSONArray jsonArray = new JSONArray();\n JSONObject doc = null;\n while (allDocumentsItr.hasNext()) {\n String temp = allDocumentsItr.next();\n try {\n doc = new JSONObject(temp);\n } catch (Exception e) {\n LOGGER.error(\"Failed to parse JSON.\", e);\n }\n jsonArray.put(doc);\n }\n return jsonArray;\n }",
"public DataCollectionToJSONConverter(DataCollection source, boolean pretty)\r\n {\r\n\tthis.pretty = pretty;\r\n\tgenerateJSON(source);\r\n }",
"Collection getData();",
"public <T> Collection<T> getCollection(String propertyName, Class<T> c) {\n if (this.propertyBag.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n JSONArray jsonArray = this.propertyBag.getJSONArray(propertyName);\n Collection<T> result = new ArrayList<T>();\n boolean isBaseClass = false;\n boolean isEnumClass = false;\n boolean isJsonSerializable = false;\n\n // Check once.\n if (Number.class.isAssignableFrom(c) || String.class.isAssignableFrom(c)\n || Boolean.class.isAssignableFrom(c) || Object.class == c) {\n isBaseClass = true;\n } else if (Enum.class.isAssignableFrom(c)) {\n isEnumClass = true;\n } else if (JsonSerializable.class.isAssignableFrom(c)) {\n isJsonSerializable = true;\n } else {\n JsonSerializable.checkForValidPOJO(c);\n }\n\n for (int i = 0; i < jsonArray.length(); i++) {\n if (isBaseClass) {\n // Number, String, Boolean \n result.add(c.cast(jsonArray.get(i)));\n } else if (isEnumClass) {\n try {\n result.add(c.cast(c.getMethod(\"valueOf\", String.class).invoke(null,\n String.class.cast(jsonArray.get(i)))));\n } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException\n | NoSuchMethodException | SecurityException | JSONException e) {\n throw new IllegalStateException(\"Failed to create enum.\", e);\n }\n } else if (isJsonSerializable) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n // JsonSerializable\n try {\n result.add(c.getConstructor(String.class).newInstance(jsonObject.toString()));\n } catch (InstantiationException | IllegalAccessException | IllegalArgumentException\n | InvocationTargetException | NoSuchMethodException | SecurityException e) {\n throw new IllegalStateException(\"Failed to instantiate class object.\", e);\n }\n } else {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n // POJO\n try {\n result.add(this.getMapper().readValue(jsonObject.toString(), c));\n } catch (IOException e) {\n throw new IllegalStateException(\"Failed to get POJO.\", e);\n }\n }\n }\n\n return result;\n }\n\n return null;\n }",
"default Object[] toArray() {\n return toArray(new Object[0]);\n }",
"protected JSONArray individualsToJson(List<Individual> individuals) throws ServletException {\n try{\n \tJSONArray ja = new JSONArray();\n \tfor (Individual ent: individuals) {\n JSONObject entJ = new JSONObject();\n entJ.put(\"name\", ent.getName());\n entJ.put(\"URI\", ent.getURI());\n ja.put( entJ );\n }\n \treturn ja;\n }catch(JSONException ex){\n throw new ServletException(\"could not convert list of Individuals into JSON: \" + ex);\n }\n }",
"public void disabled_testLargeCollectionDeserialization() {\n StringBuilder sb = new StringBuilder();\n int count = 87000;\n boolean first = true;\n sb.append('[');\n for (int i = 0; i < count; ++i) {\n if (first) {\n first = false;\n } else {\n sb.append(',');\n }\n sb.append(\"{name:'name\").append(i).append(\"',value:'value\").append(i).append(\"'}\");\n } \n sb.append(']');\n String json = sb.toString();\n Type collectionType = new TypeToken<ArrayList<CollectionEntry>>(){}.getType(); \n List<CollectionEntry> list = gson.fromJson(json, collectionType); \n assertEquals(count, list.size());\n }",
"@Override\r\n\tpublic Object[] toArray()\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}",
"public com.google.protobuf.ByteString\n getCollectionBytes() {\n return instance.getCollectionBytes();\n }",
"private static String nativeArrayToJSONString(NativeArray nativeArray) throws Exception \n { \n Object[] propIds = nativeArray.getIds(); \n if (isArray(propIds) == true) \n {\n \tList<String> jsonArray = new ArrayList<String>();\n \tClass typeClass = null;\n for (int i=0; i<propIds.length; i++) \n { \n Object propId = propIds[i]; \n if (propId instanceof Integer) \n { \n Object value = nativeArray.get((Integer)propId, nativeArray);\n Object json = toJson(value);\n jsonArray.add(json+\"\");\n if(typeClass==null) typeClass = json.getClass();\n } \n } \n return HAPUtilityJson.buildArrayJson(jsonArray.toArray(new String[0]), typeClass);\n } \n else \n { \n \tMap<String, String> mapJson = new LinkedHashMap<String, String>();\n \tMap<String, Class<?>> mapTypeJson = new LinkedHashMap<String, Class<?>>();\n for (Object propId : propIds) \n { \n \tString key = propId.toString();\n Object value = nativeArray.get(key, nativeArray);\n Object json = toJson(value);\n mapJson.put(key, json+\"\");\n mapTypeJson.put(key, json.getClass()); \n } \n return HAPUtilityJson.buildMapJson(mapJson, mapTypeJson); \n }\n }",
"private JsonArray toJsonObjectArray(Iterable<Map<String, Value>> values) {\n JsonArray arr = new JsonArray();\n for (Map<String, ?> item : values) {\n arr.add(JsonUtils.toJsonObject(item));\n }\n return arr;\n }",
"public ObjectArrayTemplateElement()\n {\n super(Object[].class, obj -> {\n if (obj instanceof Collection)\n {\n return ((Collection) obj).toArray();\n }\n throw new UnsupportedOperationException(\"Can't convert object (\" + obj.getClass().getName() + \") to Object[]: \" + obj);\n }, Collection.class::isAssignableFrom);\n }",
"public com.google.protobuf.ByteString\n getCollectionBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(collection_);\n }",
"public Object[] toArray() {\n Object[] tmp = new Object[this.container.length];\n System.arraycopy(this.container, 0, tmp, 0, tmp.length);\n return tmp;\n }",
"public abstract String toJson();",
"CollectionParameter createCollectionParameter();",
"@Test\r\n public void testToJsonCollection() {\r\n System.out.println(\"testToJsonCollection()\");\r\n Relation instance = new Relation(\"singer\", Relation.OUT);\r\n String actualResult = \"\";\r\n String result = instance.toJsonCollection();\r\n assertNotSame(result, actualResult);\r\n }",
"protected Collection<V> newCollection() {\r\n \treturn new ArrayList<V>();\r\n }",
"public String pasarAjson(ArrayList<Cliente> miLista){\n String textoenjson;\n Gson gson = new Gson();\n textoenjson = gson.toJson(miLista);\n\n\n return textoenjson;\n }",
"Collect getColl();",
"public JSONArray toJsonArray() {\r\n JSONArray jsonArray = new JSONArray();\r\n\r\n for (Person p : this.personList) {\r\n jsonArray.put(p.toJson());\r\n }\r\n\r\n return jsonArray;\r\n }",
"public JsonObject toJson();",
"public JsonWriter array() {\n startValue();\n\n stack.push(context);\n context = new JsonContext(JsonContext.Mode.LIST);\n writer.write('[');\n\n return this;\n }",
"@SuppressWarnings(\"unchecked\")\n private HashMap<Integer,LabWork> saveIntoCollection(JSONArray jsArr){\n HashMap<Integer,LabWork> HM = new HashMap<>();\n jsArr.forEach(p -> {\n try {\n Random r = new Random();\n Integer randomVal = Math.abs(r.nextInt());\n HM.put(randomVal, convertJsonObjIntoLabWork((JSONObject) p));\n //System.out.println(((JSONObject) p).toJSONString());\n } catch (java.text.ParseException e) {\n e.printStackTrace();\n }\n });\n return HM;\n }",
"public Object[] toArray()\n\t{\n\t\treturn list.toArray();\n\t}",
"@Nullable\n @SuppressWarnings(\"unchecked\")\n protected Collection createCollection(MappingContext context, Object value) {\n if (value instanceof Iterable<?>) {\n TypeInformation entryType = context.getGenericTypeInfoOrFail(0);\n Collection result = createCollectionMatchingType(context);\n\n int index = 0;\n for (Object entry : (Iterable) value) {\n Object convertedEntry = convertValueForType(context.createChild(\"[\" + index + \"]\", entryType), entry);\n if (convertedEntry == null) {\n context.registerError(\"Cannot convert value at index \" + index);\n } else {\n result.add(convertedEntry);\n }\n }\n return result;\n }\n return null;\n }",
"public static String[] collect2array(Collection<String> c) {\n if (c == null) return new String[0];\n int n = c.size();\n String[] rt = new String[n];\n rt = (String[]) c.toArray(new String[n]);\n return rt;\n }",
"public java.lang.String getCollection() {\n return collection_;\n }",
"public String getAllStudent (){\n MongoCursor<Document> cursor = studentSkills.find().iterator();\n String json = \"{\\\"result\\\":[\";\n boolean hasOne = false;\n while (cursor.hasNext()){\n Document c = (Document)cursor.next();\n json +=c.toJson()+\",\";\n hasOne = true;\n }\n if (hasOne)json = json.substring(0,json.length()-1);\n json+=\"]}\";\n return json;\n}",
"@JSProperty(\"items\")\n @Nullable\n Any[] getItems();",
"public static JsonArray convertStringList(Collection<String> strings)\r\n \t{\r\n \t\tJsonArray ret = new JsonArray();\r\n \t\tfor (String string : strings)\r\n \t\t{\r\n \t\t\tret.add(new JsonPrimitive(string));\r\n \t\t}\r\n \t\treturn ret;\r\n \t}",
"public Object[] toArray(){\n\n \tObject[] o = new Object[list.size()];\n\n o = list.toArray();\n\n \treturn o;\n\n }",
"private static JsonLista toBasicJson(Lista lista) {\r\n\t\tJsonLista jsonLista = new JsonLista();\r\n\t\tapplyBasicJsonValues(jsonLista, lista);\r\n\t\treturn jsonLista;\r\n\t}",
"private static ArrayList<JSONObject> getJsonTagSet(Task task) {\n ArrayList<JSONObject> myArray = new ArrayList<>();\n Set<Tag> myTags = task.getTags();\n for (Tag t : myTags) {\n JSONObject myOb = tagToJson(t);\n myArray.add(myOb);\n }\n return myArray;\n }",
"Collection<T> getSimpleModelObjects();",
"@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}",
"@Override\n public Object[] toArray() {\n Object[] result = new Object[currentSize];\n System.arraycopy(container, 0, result, 0, currentSize);\n return result;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic JSONObject[] selectAllJSON(String clase){\n \tJSONObject[] json=null;\n \ttry{\n\t \tList<JSONable> lista= selectAll(clase);\n\t \tInteger size= lista.size();\n\t\t\tjson=new JSONObject[size];\n\t\t\tInteger index=0;\n\t\t\tfor(JSONable j: lista){\n\t\t\t\t//System.out.println(j.toString());\n\t\t\t\tjson[index]= j.toJSON();\n\t\t\t\tindex++;\n\t\t\t}\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t\treturn null;\n \t}\n\t\treturn json;\t\t\n }",
"public JSONArray() {\n\t\tthis.rawArrayList = new ArrayList<Object>();\n\t}",
"public static <T> T[] asArray(Collection<T> ts) {\n if (ts.isEmpty()) throw new RuntimeException(\"ts may not be empty\");\n @SuppressWarnings(\"unchecked\") T[] result = (T[]) Array.newInstance(ts.iterator().next().getClass(), 0);\n return ts.toArray(result);\n }",
"public COSArray toList() \n {\n return array;\n }",
"public static void main(String[] args) {\n //Generic Version of Collection\n ArrayList<String> arrayList = new ArrayList<>();\n arrayList.add(\"Deepak\");\n arrayList.add(\"Kumar\");\n arrayList.add(\"Hello\");\n arrayList.add(\"Sandeep\");\n System.out.println(\"Collection Before Array Conversion=\" + arrayList);\n String[] names = new String[arrayList.size()];\n arrayList.toArray(names);\n System.out.println(\"Array After Conversion From Collection\");\n for (int i = 0; i < names.length; i++) {\n System.out.println(names[i]);\n }\n //Collection Normal Version\n ArrayList arrayList1 = new ArrayList<>();\n arrayList1.add(\"Deepak\");\n arrayList1.add('a');\n arrayList1.add(1);\n arrayList1.add(10.9f);\n arrayList1.add(10.90);\n arrayList1.add(true);\n\n\n System.out.println(\"Normal Colection without Conversion\"+arrayList1);\n Object[] object = arrayList1.toArray();\n\n System.out.println(\"Array After Conversion From Normal Collection\");\n for (int i = 0; i < object.length; i++) {\n System.out.println(object[i]);\n }\n\n ///Array to Collection Conversion\n String[] names1 = new String[]{\"Deepak\",\"Kuldeep\",\"Sandeep\",\"Pardeep\"};\n ArrayList<String> namesCollection = new ArrayList(Arrays.asList(names1));\n System.out.println(namesCollection);\n\n\n }",
"String toJSON();",
"public static String getPointsOfInterestJSON(ArrayList<ArrayList<Double>> geoList){\n Map featureCollectionObj = new LinkedHashMap();\n featureCollectionObj.put(\"type\", \"FeatureCollection\");\n\n /*\"features\": [\n { type\": \"Feature\",\n \"geometry\": {\n */\n JSONArray geoJSON = new JSONArray();\n\n /*\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"LineString\",\n */\n Map featureObj = new LinkedHashMap();\n featureObj.put(\"type\",\"Feature\");\n\n /*\n \"type\": \"Polygon\",\n \"coordinates\": [ [ [102.0, 0.0], [103.0, 1.0] ..\n */\n Map polygonObj = new LinkedHashMap();\n polygonObj.put(\"type\",\"Polygon\");\n\n ArrayList<ArrayList<ArrayList<Double>>> geoArrayList = new ArrayList<>();\n geoArrayList.add(geoList);\n polygonObj.put(\"coordinates\", geoArrayList);\n\n featureObj.put(\"geometry\",polygonObj);\n\n geoJSON.add(featureObj);\n\n featureCollectionObj.put(\"features\",geoJSON);\n\n String geoJSONtoString = JSONValue.toJSONString(featureCollectionObj);\n System.out.print(geoJSONtoString);\n return geoJSONtoString;\n\n }",
"public Polynomial[] getAsArray() {\n Polynomial[] list = new Polynomial[collection.size()];\n\n for (int i = 0; i < collection.size(); i++) {\n list[i] = collection.get(i);\n }\n return list;\n }",
"@Override\n\t\tpublic Object[] toArray() {\n\t\t\treturn null;\n\t\t}",
"static <T extends JSONSerializable> String arrayListSerialize(ArrayList<T> serializableArrayList) throws Exception {\n JSONArray array = new JSONArray();\n for(JSONSerializable serializable : serializableArrayList) array.put(serializable.jsonSerialize());\n\n return array.toString();\n }",
"abstract Collection<Object> mapResultClass(Collection<Object> resultSet);",
"@Override\n\tpublic List<Object> getCollection() {\n\t\treturn null;\n\t}",
"CollectionItem createCollectionItem();",
"E[] toArray();",
"@GET\n @Path(\"{name}/array\")\n public JsonArray jsonArray(@PathParam(\"name\") String name) {\n return new JsonArray().add(\"Hello\").add(name);\n }",
"private TabulatorItems[] getJsonArrayOfItems(Resource resource) {\n ObjectMapper mapper = new ObjectMapper();\n TabulatorItems[] items = null;\n try {\n items = mapper.readValue(new InputStreamReader(resource.getInputStream(), StandardCharsets.UTF_8), TabulatorItems[].class);\n } catch (IOException ex) {\n Logger.getLogger(CollectionApiUIImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return items;\n }",
"public String getCollectionClass ();",
"protected abstract <T> Collection<T> createCollection(Class<T> clazz);",
"@Get(\"json\")\n public Representation toJSON() {\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = null;\n\n \tString msg = \"no metadata matching query found\";\n\n \ttry {\n \t\tmetadata = getMetadata(status, access,\n \t\t\t\tgetRequestQueryValues());\n \t} catch(ResourceException r){\n \t\tmetadata = new ArrayList<Map<String, String>>();\n \tif(r.getCause() != null){\n \t\tmsg = \"ERROR: \" + r.getCause().getMessage();\n \t}\n \t}\n\n\t\tString iTotalDisplayRecords = \"0\";\n\t\tString iTotalRecords = \"0\";\n\t\tif (metadata.size() > 0) {\n\t\t\tMap<String, String> recordCounts = (Map<String, String>) metadata\n\t\t\t\t\t.remove(0);\n\t\t\tiTotalDisplayRecords = recordCounts.get(\"iTotalDisplayRecords\");\n\t\t\tiTotalRecords = recordCounts.get(\"iTotalRecords\");\n\t\t}\n\n\t\tMap<String, Object> json = buildJsonHeader(iTotalRecords,\n\t\t\t\tiTotalDisplayRecords, msg);\n\t\tList<ArrayList<String>> jsonResults = buildJsonResults(metadata);\n\n\t\tjson.put(\"aaData\", jsonResults);\n\n\t\t// Returns the XML representation of this document.\n\t\treturn new StringRepresentation(JSONValue.toJSONString(json),\n\t\t\t\tMediaType.APPLICATION_JSON);\n }",
"public JSONArray map_to_json(TreeMap<Integer,ArrayList<Integer>> map) throws JSONException {\n JSONArray res = new JSONArray();\n JSONObject object;\n ArrayList<Integer> tmp;\n for (int i=0; i<8; i++) {\n if (map.get(i) != null) {\n object=new JSONObject();\n tmp=map.get(i);\n System.out.print(\"tmp : \" + tmp + \" --------------------- \\n\");\n object.put(\"weight\",Integer.toString(i));\n object.put(\"list\",remove_duplicates(tmp));\n res.put(object);\n }\n }\n return res;\n }",
"private HarvestedCollectionRest parseHarvestedCollectionRest(Context context,\n HttpServletRequest request,\n Collection collection) throws SQLException {\n ObjectMapper mapper = new ObjectMapper();\n HarvestedCollectionRest harvestedCollectionRest;\n\n try {\n ServletInputStream input = request.getInputStream();\n harvestedCollectionRest = mapper.readValue(input, HarvestedCollectionRest.class);\n } catch (IOException e) {\n throw new UnprocessableEntityException(\"Error parsing request body: \" + e.toString(), e);\n }\n\n return harvestedCollectionRest;\n }",
"public Collection getCollection() {\n return mCollection;\n }",
"Collections() { return; }",
"CollectionLiteralExp createCollectionLiteralExp();"
] | [
"0.70724726",
"0.6533405",
"0.6243356",
"0.6098679",
"0.5922739",
"0.57776713",
"0.57048786",
"0.56955683",
"0.56723917",
"0.56661046",
"0.5659443",
"0.56477344",
"0.5614747",
"0.5611143",
"0.5598087",
"0.5592467",
"0.5538426",
"0.5510186",
"0.55072004",
"0.5506519",
"0.55025744",
"0.5493092",
"0.54806554",
"0.54574454",
"0.54457307",
"0.5441176",
"0.543532",
"0.5433351",
"0.5433351",
"0.5433351",
"0.54190034",
"0.53729004",
"0.53136516",
"0.53066367",
"0.530304",
"0.5290905",
"0.52705353",
"0.5262105",
"0.5250195",
"0.5239112",
"0.52318996",
"0.5214489",
"0.51792467",
"0.51753265",
"0.5154105",
"0.51429284",
"0.51324713",
"0.51126474",
"0.5106137",
"0.51022863",
"0.5098343",
"0.5069009",
"0.5045114",
"0.5042294",
"0.5038848",
"0.50234383",
"0.5017148",
"0.50165635",
"0.5015207",
"0.50120294",
"0.5011306",
"0.500732",
"0.5005519",
"0.49991247",
"0.4992072",
"0.49918884",
"0.49774194",
"0.49720323",
"0.49649704",
"0.4961159",
"0.49603796",
"0.4953619",
"0.4952558",
"0.49382916",
"0.49348682",
"0.49326238",
"0.4924691",
"0.4921243",
"0.49129212",
"0.49063465",
"0.4902104",
"0.48928982",
"0.48872676",
"0.48870063",
"0.48744693",
"0.48743293",
"0.48663142",
"0.4861976",
"0.48508215",
"0.4841389",
"0.48401025",
"0.4839708",
"0.48356774",
"0.4831082",
"0.48265606",
"0.48250398",
"0.48242724",
"0.48195162",
"0.4815285",
"0.48051026"
] | 0.6555718 | 1 |
Creates a JSON array from the given source string The string has to be a valid JSON array | public JSONArray(String source) {
if(source == null) {
this.values = new ArrayList<>();
return;
}
JSONArray parsed = (JSONArray) JSONParser.parse(source);
this.values = parsed.values;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static JSONArray string2JSONArray(String source) {\n\t\tif (null == source) {\n\t\t\treturn null;\n\t\t}\n\t\tJSONArray jsonArray = JSON.parseArray(source);\n\t\tfor (Object o : jsonArray) {\n\t\t\tlogger.debug(o);\n\t\t}\n\t\tlogger.debug(jsonArray);\n\t\treturn jsonArray;\n\t}",
"public JSONArray(String source) throws JSONException {\n\t\tthis(new JSONTokener(source));\n\t}",
"public static JsonArray stringToJsonArray(String json) {\n try {\n JsonParser parser = new JsonParser();\n JsonArray jsa = parser.parse(json).getAsJsonArray();\n return jsa;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return new JsonArray();\n }\n }",
"public static <T> String list2JSONArrayString(List<T> sourceList) {\n\t\tString json_arr = \"[]\";\n\t\tif (null == sourceList || sourceList.size() == 0) {\n\t\t\treturn json_arr;\n\t\t}\n\t\tjson_arr = JSON.toJSONString(sourceList, false); // set false to no\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// formatted\n\t\tlogger.debug(\"result:\");\n\t\tlogger.debug(json_arr);\n\t\treturn json_arr;\n\t}",
"public static JsonArray convertStringList(Collection<String> strings)\r\n \t{\r\n \t\tJsonArray ret = new JsonArray();\r\n \t\tfor (String string : strings)\r\n \t\t{\r\n \t\t\tret.add(new JsonPrimitive(string));\r\n \t\t}\r\n \t\treturn ret;\r\n \t}",
"public static JSONArray saveStringToJsonArray(final String json) {\n JSONArray jsonArray = null;\n try {\n jsonArray = new JSONArray(json);\n } catch (final JSONException e) {\n Log.e(TAG, \"\" + e.getMessage());\n }\n return jsonArray;\n }",
"public static <T> T string2Object(String source, Class<T> type){\n\t\treturn JSON.parseObject(source, type);\n\t}",
"public Object[] fromStringRepresentation(String... value);",
"public static JsonResultArray<String> getJsonAsArrayOfStrings(final String url)\r\n {\r\n JsonResultArray<String> json = new JsonResultArray<String>();\r\n json = getJson(url, json);\r\n\r\n // populate the result's string array\r\n ArrayList<String> stringArray = json.getArray();\r\n\r\n // clear the string array\r\n stringArray.clear();\r\n\r\n for (int i = 0; i < json.getJsonArray().length(); i++)\r\n {\r\n String newString = null;\r\n\r\n try\r\n {\r\n newString = json.getJsonArray().getString(i);\r\n }\r\n catch (final JSONException e)\r\n {\r\n Log.e(TAG, \"Could not get the JSON array.\", e);\r\n }\r\n\r\n if (newString != null)\r\n {\r\n stringArray.add(newString);\r\n }\r\n }\r\n\r\n return json;\r\n }",
"public static Example stringToJSON(String s){\n Gson gson = new Gson();\n JsonReader reader = new JsonReader(new StringReader(s));\n reader.setLenient(true);\n\n Example ex = gson.fromJson(reader, Example.class);\n\n return ex;\n }",
"public static JSONArray toJsonArray(String[] a) {\n JSONArray ja = new JSONArray();\n\n for (String s : a) {\n ja.put(s);\n }\n\n return ja;\n }",
"public static JsonArray JsonToArray(JsonObject jso, String param) {\n try {\n JsonArray jarr = jso.get(param).getAsJsonArray();\n if (jarr != null) {\n return jarr;\n } else {\n return new JsonArray();\n }\n } catch (Exception e) {\n// System.out.println(\"erro json a string\");\n return new JsonArray();\n }\n }",
"public JSONArray(JSONTokener x) throws JSONException {\n\t\tthis();\n\t\tif (x.nextClean() != '[') {\n\t\t\tthrow x.syntaxError(\"A JSONArray text must start with '['\");\n\t\t}\n\t\tif (x.nextClean() != ']') {\n\t\t\tx.back();\n\t\t\tfor (;;) {\n\t\t\t\tif (x.nextClean() == ',') {\n\t\t\t\t\tx.back();\n\t\t\t\t\tthis.rawArrayList.add(JSONNull.NULL);\n\t\t\t\t} else {\n\t\t\t\t\tx.back();\n\t\t\t\t\tthis.rawArrayList.add(x.nextValue());\n\t\t\t\t}\n\t\t\t\tswitch (x.nextClean()) {\n\t\t\t\t\tcase ',':\n\t\t\t\t\t\tif (x.nextClean() == ']') {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx.back();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ']':\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow x.syntaxError(\"Expected a ',' or ']'\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private String[] toArray(String str) { String arr[] = new String[1]; arr[0] = str; return arr; }",
"<T> T fromJson(String source, Class<T> type);",
"private JSONArray parseJSON() {\n JSONArray jsonArray = new JSONArray();\n for (TimestampedMessage m : fPending) {\n JSONTokener jsonTokener = new JSONTokener(m.fMsg);\n JSONObject jsonObject = null;\n JSONArray tempjsonArray = null;\n final char firstChar = jsonTokener.next();\n jsonTokener.back();\n if ('[' == firstChar) {\n tempjsonArray = new JSONArray(jsonTokener);\n for (int i = 0; i < tempjsonArray.length(); i++) {\n jsonArray.put(tempjsonArray.getJSONObject(i));\n }\n } else {\n jsonObject = new JSONObject(jsonTokener);\n jsonArray.put(jsonObject);\n }\n\n }\n return jsonArray;\n }",
"<T> T fromJson(String source, JavaType type);",
"public interface JsonFormatter {\n JSONArray parseJasonString(String inputString) throws ParseException;\n List<LocationPOJO> formatJsonArray(JSONArray jsonArray);\n}",
"private static JSONArray arrayFromBytes(ByteBuffer bytes) throws JSONException{\n\t\tJSONArray json = new JSONArray();\n\t\tint length = bytes.getInt();\n\t\tfor (int i = 0; i < length; i++){\n\t\t\t//Object value = valueFromBytes(bytes);\n\t\t\t//json.put(value);\n\t\t\t//Get value\n\t\t\tbyte type = bytes.get();\n\t\t\tswitch(type){\n\t\t\tcase MAP_INDICATOR:\n\t\t\t\tjson.put(mapFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase ARRAY_INDICATOR:\n\t\t\t\tjson.put(arrayFromBytes(bytes));\n\t\t\t\tbreak;\n\t\t\tcase STRING_INDICATOR:\n\t\t\t\tint lengthString = bytes.getInt();\n\t\t\t\tbyte[] stringBytes = new byte[lengthString];\n\t\t\t\tbytes.get(stringBytes, 0, lengthString);\n\t\t\t\tjson.put(new String(stringBytes));\n\t\t\t\tbreak;\n\t\t\tcase INTEGER_INDICATOR:\n\t\t\t\tjson.put(bytes.getInt());\n\t\t\t\tbreak;\n\t\t\tcase LONG_INDICATOR:\n\t\t\t\tjson.put(bytes.getLong());\n\t\t\t\tbreak;\n\t\t\tcase DOUBLE_INDICATOR:\n\t\t\t\tjson.put(bytes.getDouble());\n\t\t\t\tbreak;\n\t\t\tcase FLOAT_INDICATOR:\n\t\t\t\tjson.put(bytes.getFloat());\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new JSONException(\"Tried to decode unknown type from byte array!\");\n\t\t\t}\n\t\t}\n\t\treturn json;\n\t}",
"public static JSONArray m5908g(JSONObject jSONObject, String str) {\n return C1546i.m5901a(jSONObject, str, null);\n }",
"private static List<TreeMap<String, String>> formatJSONArray(String value) {\n\t\tJSONArray ja = JSON.parseArray(value);\n\t\tList<TreeMap<String, String>> arrayList = Lists.newArrayList();\n\t\tfor (int i = 0; i < ja.size(); i++) {\n\t\t\tarrayList.add(covertToTreeMap(JSON.toJSONString(ja.get(i))));\n\t\t}\n\t\treturn arrayList;\n\t}",
"public static <T> List<T> json2list(String jsonArrayStr, Class<T> clazz)\n throws Exception {\n List<Map<String, Object>> list = objectMapper.readValue(jsonArrayStr,\n new TypeReference<List<T>>() {\n });\n List<T> result = new ArrayList<T>();\n for (Map<String, Object> map : list) {\n result.add(map2pojo(map, clazz));\n }\n return result;\n }",
"public static String[] parseJSON(String line) {\n\t\tString temp = line.replaceFirst(\"\\\\{\\\"time\\\":[0-9]+,\\\"states\\\":\\\\[\\\\[\", \"\");\n\t\tString[] states = temp.split(\"\\\\],\\\\[\");\n\t\tstates[states.length-1].replaceAll(\"\\\\]\\\\]\\\\}\", \"\");\n\t\treturn states;\n\t}",
"private static JSONArray getJsonArray(String response) throws Exception {\r\n \t\tSystem.out.println(\"response: \" + response);\r\n \t\tif (response != null) {\r\n \t\t\tJSONObject json = new JSONObject(response);\r\n \t\t\tif (json != null) {\r\n \t\t\t\treturn json.getJSONArray(RESPONSE_KEY);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public static void main(String[] str) {\n String str1 = \"[{\\\"随机欢迎语\\\":[\\\"aaa\\\",\\\"bbbbb\\\",\\\"ccccc\\\"],\\\"no\\\":\\\"1\\\"},{\\\"商品标题\\\":\\\"商品标题\\\",\\\"no\\\":\\\"2\\\"},{\\\"商品卖点\\\":\\\"商品卖点\\\",\\\"no\\\":\\\"3\\\"},{\\\"商品描述\\\":\\\"商品描述\\\",\\\"no\\\":\\\"2\\\"},{\\\"包装清单\\\":\\\"包装清单\\\",\\\"no\\\":\\\"2\\\"},{\\\"随机结束语\\\":[\\\"1111\\\",\\\"2222\\\",\\\"33333\\\"],\\\"no\\\":\\\"2\\\"}]\";\n //System.out.println(JSONObject.);\n JSONArray objects = JSONObject.parseArray(str1);\n List<JSONObject> jsonObjects = JSONObject.parseArray(str1, JSONObject.class);\n for (JSONObject object : jsonObjects) {\n for (Map.Entry<String, Object> en : object.entrySet()) {\n System.out.println(en.getValue());\n }\n }\n\n }",
"public static JSONObject strToJson(String jsonstring) {\n JSONParser parser = new JSONParser();\n JSONObject json = null;\n try {\n json = (JSONObject) parser.parse(jsonstring);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return json;\n }",
"public static String[] toArray(String input) {\n if (input != null && input.length() > 0) {\n String[] result = new String[1];\n result[0] = input;\n return result;\n } else {\n return new String[0];\n }\n }",
"public JsArrayString generateArray(String[] array){\r\n\t\tif ( array==null||array.length==0)\r\n\t\t\treturn null ;\r\n\t\t\r\n\t\tJsArrayString retval = (JsArrayString)JavaScriptObject.createArray();\r\n\t\tfor ( String scn : array){\r\n\t\t\tretval.push(scn);\r\n\t\t}\r\n\t\treturn retval;\r\n\t\t\r\n\t}",
"public static JsonElement stringToJSON2(String json) {\n try {\n JsonElement parser = new JsonPrimitive(json);\n System.out.println(parser.getAsString());\n //JsonObject Jso = new JsonObject();\n //Jso = (JsonObject) parser.p(json);\n return parser;\n } catch (Exception e) {\n return new JsonObject();\n }\n }",
"<T> String toJson(T source);",
"protected static String createJsonArray(List<String> originalList) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[\");\n for (int i = 0; i < originalList.size(); i++) {\n sb.append(originalList.get(i));\n if (i < (originalList.size() - 1)) {\n sb.append(\", \");\n }\n }\n sb.append(\"]\");\n return sb.toString();\n }",
"public static MultiArrayDimension fromJsonString(java.lang.String jsonString) {\n\t\t// convert to a message\n\t\treturn MultiArrayDimension.fromMessage(new Message(jsonString));\n\t}",
"public static JsonObject stringToJSON(String json) {\n try {\n JsonParser parser = new JsonParser();\n JsonObject Jso = parser.parse(json).getAsJsonObject();\n return Jso;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return new JsonObject();\n }\n }",
"private int[][] hackyParse(String gridJSON, int gridSize){\n int[][] rval = new int[gridSize][gridSize];\n int i = 0;\n int j = 0;\n for(int h = 0; h < gridJSON.length(); h++){\n String comparer = Character.toString(gridJSON.charAt(h));\n if(comparer.equals(\"]\")){\n i ++;\n j = 0;\n } else if(comparer.matches(\"\\\\d+\")){\n rval[i][j] = Integer.parseInt(comparer);\n j++;\n }\n }\n return rval;\n }",
"private JSONDocument parseString(String data){\n JSONDocument temp = null;\n int pointer = 0;\n boolean firstValidCharReached = false;\n do{\n char c = data.charAt(pointer ++);\n switch (c) {\n case '{':\n HashMap thm = this.parseMap(this.getFull(data.substring(pointer),0));\n temp = new JSONDocument(thm);\n firstValidCharReached = true;\n break;\n case '[':\n ArrayList tal = this.parseList(this.getFull(data.substring(pointer),1));\n temp = new JSONDocument(tal);\n firstValidCharReached = true;\n break;\n }\n }while (!firstValidCharReached);\n return temp;\n }",
"private ArrayList<DT> jsonToDtList(String jsonString) { // TEMPORARILY PUBLIC\n Gson gsonObj = new Gson();\n ArrayList<DT> dtList = gsonObj.fromJson(jsonString, dtListType);\n\n return dtList;\n }",
"public Object @NonNull [] parse(String text) throws JsonProcessingException {\n JsonNode jsonNode = mapper.readTree(text);\n return jsonNodeToTuple(jsonNode);\n }",
"@SuppressWarnings(\"unchecked\")\r\n public static Object[] toObjectArray(Object source) {\r\n if (source instanceof Object[]) {\r\n return (Object[]) source;\r\n }\r\n if (source == null) {\r\n return new Object[0];\r\n }\r\n if (!source.getClass().isArray()) {\r\n throw new IllegalArgumentException(\"Source is not an array: \"\r\n + source);\r\n }\r\n int length = Array.getLength(source);\r\n if (length == 0) {\r\n return new Object[0];\r\n }\r\n Class wrapperType = Array.get(source, 0).getClass();\r\n Object[] newArray = (Object[]) Array.newInstance(wrapperType, length);\r\n for (int i = 0; i < length; i++) {\r\n newArray[i] = Array.get(source, i);\r\n }\r\n return newArray;\r\n }",
"public static String[] convertStringToArray(String str){\n String[] arr = str.split(strSeparator);\n return arr;\n }",
"@TypeConverter\r\n public String[] fromString(String value) {\r\n String[] split = value.split(SEPERATOR.toString());\r\n return value.isEmpty() ? split : split;\r\n }",
"public static JsonObject convertStringToJsonObject(final String str) {\n return JsonParser.parseString(str).getAsJsonObject();\n }",
"public static JSONObject parseJSON(String jsonString) throws JSONException\n {\n return new JSONObject(jsonString);\n }",
"public static String[] toStringArray(String str) {\r\n\t\tList<Object> list = new ArrayList<Object>();\r\n\t\tfor (StringTokenizer st = new StringTokenizer(str); st.hasMoreTokens(); list.add(st.nextToken()))\r\n\t\t\t;\r\n\r\n\t\treturn toStringArray(list);\r\n\t}",
"private static Object m7292a(String str) throws JSONException {\n Object obj = null;\n String trim = str.trim();\n if (trim.startsWith(\"{\") || trim.startsWith(\"[\")) {\n obj = new JSONTokener(trim).nextValue();\n }\n return obj == null ? trim : obj;\n }",
"T fromJson(Object source);",
"public List<Judgment> createJudgment(String jsons){\n Gson gson = new Gson();\n Type jsonListType = new TypeToken<List<Judgment>>(){}.getType();\n return gson.fromJson(jsons, jsonListType);\n }",
"String toJson() throws IOException;",
"public static Map fromJson(String source) {\n\t\ttry {\n\t\t\treturn (Map) JSONDeserializer.read(source);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(\"Exception deserializing \" + source, e);\n\t\t}\n\t}",
"private Object JSONArray(String estado) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private static JSONArray objectToArray(JSONObject obj){\r\n return (JSONArray) obj.get(\"books\");\r\n }",
"private String[] getMovieDataFromJson(String movieJsonStr)\n throws JSONException {\n final String API_RESULTS = \"results\";\n final String API_POSTER_PATH = \"poster_path\";\n\n JSONObject jsonObject = new JSONObject(movieJsonStr);\n JSONArray moviesArray = jsonObject.getJSONArray(API_RESULTS);\n\n int num_movies = moviesArray.length();\n\n String[] movie_result = new String[num_movies];\n for(int i=0; i<num_movies; i++) {\n String poster = moviesArray.getJSONObject(i).getString(API_POSTER_PATH);\n //Log.v(LOG_TAG, \"pathpos: \" + poster);\n movie_result[i] = poster;\n // Log.v(LOG_TAG, \"movie_res: \" + movie_result);\n }\n Log.v(LOG_TAG, \"Built URI: \" + movie_result[6]);\n\n return movie_result;\n }",
"public static Object[] toObjArray(char[] s) {\n\t\tObject[] ret = new Object[s.length];\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\tret[i] = s[i];\n\t\treturn ret;\n\t}",
"public static List<String> m19461a(JSONObject jSONObject, String str) throws JSONException {\n JSONArray optJSONArray = jSONObject.optJSONArray(str);\n if (optJSONArray == null) {\n return null;\n }\n List arrayList = new ArrayList(optJSONArray.length());\n for (int i = 0; i < optJSONArray.length(); i++) {\n arrayList.add(optJSONArray.getString(i));\n }\n return Collections.unmodifiableList(arrayList);\n }",
"public static ArrayList<DigitalNewspapers> convertJson(String jsonSources){\n\n ArrayList<DigitalNewspapers> sources = new ArrayList<>();\n\n try {\n JSONObject data = new JSONObject(jsonSources);\n JSONArray jsonDigitalNewspapers = data.getJSONArray(\"sources\");\n\n\n for (int i = 0; i < jsonDigitalNewspapers.length(); i++) {\n\n JSONObject jsonDigitalNewspaper = jsonDigitalNewspapers.getJSONObject(i);\n\n DigitalNewspapers dn = new DigitalNewspapers();\n\n dn.setId(jsonDigitalNewspaper.getString(\"id\"));\n\n dn.setName(jsonDigitalNewspaper.getString(\"name\"));\n\n if(jsonDigitalNewspaper.has(\"urlsToLogos\")){\n dn.setUrlToLogos(jsonDigitalNewspaper.getJSONObject(\"urlsToLogos\").getString(\"small\"));\n }\n\n JSONArray jsonArraySortBys = jsonDigitalNewspaper.getJSONArray(\"sortBysAvailable\");\n\n for (int j = 0; j <jsonArraySortBys.length() ; j++) {\n if(jsonArraySortBys.getString(j).equals(\"top\")){\n dn.setTop(true);\n }else if(jsonArraySortBys.getString(j).equals(\"latest\")){\n dn.setLatest(true);\n }else if(jsonArraySortBys.getString(j).equals(\"popular\")){\n dn.setPopular(true);\n }\n }\n\n\n sources.add(dn);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return sources;\n\n }",
"public static JSONArray getJArrayWebdata(String jsonData) {\n JSONArray dataJObject = null;\n try {\n dataJObject = (new JSONObject(jsonData))\n .getJSONArray(IWebService.KEY_RES_DATA);\n // dataJObject = (new JSONObject(jsonData)).getJSONObject(\"root\")\n // .getJSONArray(\"Data\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return dataJObject;\n }",
"public JSONString(String stringIn)\n {\n this.string = stringIn;\n }",
"public native Object parse( Object json );",
"public static String reParseJson(String old){\n int start = old.indexOf(\"{\");\n int end = old.lastIndexOf(\"}\");\n return old.substring(start,end+1);\n\n }",
"public JsonReader(String source) {\n this.source = source;\n }",
"public JsonReader(String source) {\n this.source = source;\n }",
"public JsonReader(String source) {\n this.source = source;\n }",
"public JsonReader(String source) {\n this.source = source;\n }",
"@Test\n public void testListOfStrings() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(4, jtc.stringArray.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"456\\\"\"));\n }",
"public String[] setInputArray(String input) {\n IInputStream input_array = new InputStream();\n// if (input.contains(\".txt\")) {\n// input = input_array.inputFile(input);\n// }\n return input_array.inputArray(input);\n }",
"protected String[] arrayParser(String item){\n return item.replaceAll(\"\\\\{|\\\\}|\\\\[|\\\\]|(\\\\d+\\\":)|\\\"|\\\\\\\\\", \"\").split(\",\");\n }",
"private static ArrayList<Movie> getJsonArray(String fileName){\n String s = readJsonFile(fileName);\n return (ArrayList<Movie>) JSONObject.parseArray(s, Movie.class);\n }",
"public static JSONObject parseJSON(byte[] rawBytes) throws JSONException\n {\n if (rawBytes == null)\n throw new IllegalArgumentException(\"Null byte array cannot be parsed to JSON.\");\n\n return parseJSON(new String(rawBytes));\n }",
"protected JSONArray getJSON(HttpClient httpclient, String url){\n\t\t\tString body = \"[]\";\n\t\t\tString charset = null;\n\t\t\tJSONArray jsonarray = new JSONArray();\n\n\t\t\ttry {\t\t\t\n\t\t\t\tHttpGet httpget = new HttpGet(url);\n\n\t\t\t\tHttpResponse response = httpclient.execute(httpget);\n\t\t\t\tHttpEntity entity = response.getEntity();\n\n\t\t\t\tbody = (EntityUtils.toString(entity));\n\t\t\t\tcharset = (EntityUtils.getContentCharSet(entity));\n\t\t\t\tHeader header = entity.getContentType();\n\n\t\t\t\tJSONTokener jsontokener = new JSONTokener(body);\n\t\t\t\ttry {\n\t\t\t\t\tjsonarray = new JSONArray(jsontokener);\n\t\t\t\t\treturn jsonarray;\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\treturn jsonarray; //jsonarray should be empty if we get here\n\t\t}",
"private static List<String> jsonArraytoList(JSONArray jsonArray) throws JSONException {\n List<String> listData = new ArrayList<>();\n if (jsonArray != null) {\n for (int i = 0; i < jsonArray.length(); i++)\n listData.add(jsonArray.getString(i));\n }\n return listData;\n }",
"private static final String[] encode(String src) {\n \n if (src == null || src.length()==0) {\n return (new String[0]);\n }\n \n return StringUtils.split(src, \";\");\n }",
"public String[] readJson(String url) {\n InputStream is = null;\n String[] strArray ={\"\"} ;\n try {\n is = NetworkUtils.OpenHttpConnection(url, this);\n //leitura\n streamReader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n jsonStrBuilder = new StringBuilder();\n Log.i(\"1° aqui\", \"ok\");\n String inputStr;\n //add ao StringBuilder\n while ((inputStr = streamReader.readLine()) != null) {\n jsonStrBuilder.append(inputStr);\n Log.i(\"@@@JSON :\", jsonStrBuilder.toString());\n }\n //transformado em JSONObject\n// JSONObject jObj = new JSONObject(jsonStrBuilder.toString());\n//\n// JSONArray jArray = jObj.getJSONArray(\"tasks\");\n// strArray = new String[jArray.length()];\n\n// for(int i = 0; i < jArray.length(); i++){\n// JSONObject jObject = jArray.getJSONObject(i);\n// strArray[i] = jObject.getString(\"title\");\n// }\n strArray[0] = jsonStrBuilder.toString();\n\n Log.i(\"@@@strArray :\", strArray.toString());\n }catch(IOException ie){\n Log.i(\"readJson\", ie.getLocalizedMessage());\n }\n\n return strArray;\n }",
"public static List<List<Response>> stringListToJSONList(List<String> jsonStrings){\n List<List<Response>> jsonObjects = new ArrayList<>();\n\n for(int i = 0; i < jsonStrings.size(); i ++){\n Example ex = stringToJSON(jsonStrings.get(i));\n List<Response> resp = ex.getResponse();\n jsonObjects.add(resp);\n\n }\n\n return jsonObjects;\n }",
"public String[] parseContent(String s) {\n\t\t\n\t\tint column = 0;\n\t\tint len = s.length();\n\t\tString[] data = new String[110];\n\t\tchar[] ch = s.toCharArray();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i < len; i++) {\n\t\t\tif (ch[i] == '\\\"') {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (i == len - 1) {\n\t\t\t\tdata[column] = sb.toString();\n\t\t\t}\n\t\t\t\n\t\t\tif ((ch[i] != ',') || ((ch[i] == ',') && (i+1 < len) && (ch[i+1] == ' '))) {\n\t\t\t\tsb.append(ch[i]);\n\t\t\t} else {\n\t\t\t\tif (i == len - 1) {\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t}\t\n\t\t\t\tdata[column] = sb.toString();\n\t\t\t\tsb.setLength(0);\n\t\t\t\tcolumn++;\n\t\t\t}\n\t\t}\n\t\tif (column < 109) {\n\t\t\treturn null;\n\t\t}\n\t\treturn data;\n\t}",
"public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }",
"public static <T extends IJsonObject> JsonResultArray<T> getJsonAsArrayOf(\r\n final String url,\r\n final Class<T> newClass)\r\n {\r\n JsonResultArray<T> json = new JsonResultArray<T>();\r\n json = getJson(url, json);\r\n\r\n // populate the result's string array\r\n ArrayList<T> array = json.getArray();\r\n\r\n // clear the string array\r\n array.clear();\r\n\r\n if (json.getJsonArray() != null)\r\n {\r\n for (int i = 0; i < json.getJsonArray().length(); i++)\r\n {\r\n JSONObject jsonObject = null;\r\n\r\n try\r\n {\r\n jsonObject = json.getJsonArray().getJSONObject(i);\r\n }\r\n catch (final JSONException e)\r\n {\r\n Log.e(TAG, \"getJsonAsArrayOf getJsonArray\", e);\r\n }\r\n\r\n if (jsonObject != null)\r\n {\r\n T newObject = null;\r\n\r\n try\r\n {\r\n newObject = newClass.newInstance();\r\n }\r\n catch (final Exception e)\r\n {\r\n Log.e(TAG, \"Could not create the new class instance.\", e);\r\n }\r\n\r\n if (newObject != null)\r\n {\r\n newObject.initialize(jsonObject);\r\n array.add(newObject);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return json;\r\n }",
"public String[] listAIResponseFromJSON(JSONArray listAIResponseArr) {\n\n //just going to do this manually since I don't know how Gson does arrays of only strings\n\n //this is the only function I could find that changes an unkeyed JSONArray into usable objects:\n List<Object> allAITypesObjList = listAIResponseArr.toList();\n //I don't want to deal with something as vague as a list<object>, so change it into an arrayList<String>:\n\n //ArrayList<String> allAITypes = new ArrayList<>();\n String[] allAITypes = new String[50]; //there is no way there will ever be more than 50 ai types\n\n //iterate through the List<Object> and copy its strings into allAITypes\n for (int a = 0; a < allAITypesObjList.size(); a++)\n {\n String currAITypeString = allAITypesObjList.get(a).toString();\n //allAITypes.add(currAITypeString);\n allAITypes[a] = currAITypeString;\n }\n\n return allAITypes;\n }",
"public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }",
"@Override\n\tpublic JSON parse(String in) throws IOException {\n\t\tMyJSON js = new MyJSON();\n\t\t//count brackets make sure they match\n\t\tif(!syntaxOkay(in)){\n\t\t\tthrow new IllegalStateException(\"Mismatched brackets error\");\n\t\t}\n\t\t//get rid of spaces to make things easier\n\t\tString withoutSpaces = remove(in, ' ');\n\t\t//handles edge case of an empty object\n\t\tString withoutBraces = remove(withoutSpaces, '{');\n\t\twithoutBraces = remove(withoutBraces, '}');\n\t\tif(withoutBraces.length() == 0){\n\t\t\treturn js;\n\t\t}\n\t\tint colonIndex = in.indexOf(\":\");\n\t\tString key = in.substring(0, colonIndex);\n\t\tString value = in.substring(colonIndex + 1);\n\n\t\tif(value.contains(\":\")){\n\t\t\t//this means the value is an object so we figure out how many strings to add to the object\n\t\t\tString[] values = value.split(\",\");\n\t\t\t//creates a temp for the new object\n\t\t\tMyJSON temp = new MyJSON();\n\t\t\tfillObject(values, temp);\n\t\t\tkey = removeOutsides(key);\n\t\t\tjs.setObject(key, temp);\n\t\t}else{\n\t\t\t//the base case that actually puts things as a JSON object\n\t\t\tkey = removeOutsides(key);\n\t\t\tvalue = removeOutsides(value);\n\t\t\tjs.setString(key, value);\n\t\t}\n\n\t\treturn js;\n\t}",
"static <T extends JSONSerializable> ArrayList<T> arrayListDeserialize(String json, Class<T> type) throws Exception {\n JSONArray serializableArrayList = new JSONArray(json);\n ArrayList<T> resultArrayList = new ArrayList<>();\n\n for(int idx = 0; idx < serializableArrayList.length(); idx++) {\n T result = type.newInstance();\n result.jsonDeserialize(serializableArrayList.getString(idx));\n resultArrayList.add(result);\n }\n\n return resultArrayList;\n }",
"public JSONArray readFromJSON(){\n\n JSONArray jsonArray=null;\n\n try {\n InputStream inputStream =context.getResources().getAssets().open(FILE_NAME);\n int size = inputStream.available();\n byte[] data = new byte[size];\n inputStream.read(data);\n inputStream.close();\n String json = new String(data, \"UTF-8\");\n jsonArray = new JSONArray(json);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return jsonArray;\n }",
"static JsonResource forString( String contents ) {\n return new JsonResource() {\n @Override\n public <T> T readFrom( ReadMethod<T> consumer ) throws IOException {\n try ( ByteArrayInputStream stream = new ByteArrayInputStream(contents.getBytes(Json.getDefaultConfig().getCharset())) ) {\n return consumer.read(stream);\n }\n }\n };\n }",
"private String getJson(InputStream inputStream){\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, \"UTF-8\");\n Scanner scanner = new Scanner(inputStreamReader);\n StringBuffer stringBuffer = new StringBuffer();\n while (scanner.hasNext()) {\n stringBuffer.append(scanner.nextLine());\n }\n System.out.println(\"STRING BUFFER >>>>>>>\" +stringBuffer);\n return stringBuffer.toString();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static JsonArray toJsonArray(TaskAlert[] array) {\n JsonArray list = new JsonArray();\n for (TaskAlert item : array) {\n list.add(item.getJson());\n }\n return list;\n }",
"public static JSONArray parseResponseAsJSONArray(Response response)\n {\n String responseAsString = response.asString();\n JSONArray jarray = null;\n try\n {\n jarray = new JSONArray(responseAsString);\n return jarray;\n }\n catch (JSONException e) {\n System.out.println(\"Exception => \" + e.getMessage());\n }\n return null;\n }",
"public JSONArray() {\n\t\tsuper();\n\t}",
"public JSONArray() {\n\t\tthis.rawArrayList = new ArrayList<Object>();\n\t}",
"private String[] getJSONStringList() throws SQLException {\n String sql = \"select concat(c.chart_type, ', ', c.intermediate_data) content \" +\n \"from pride_2.pride_chart_data c, pride_2.pride_experiment e \" +\n \"where c.experiment_id = e.experiment_id \" +\n \"and e.accession = ? \" +\n \"order by 1\";\n\n Connection conn = PooledConnectionFactory.getConnection();\n PreparedStatement stat = conn.prepareStatement(sql);\n stat.setString(1, accession);\n ResultSet rs = stat.executeQuery();\n\n List<String> jsonList = new ArrayList<String>();\n while (rs.next()) {\n jsonList.add(rs.getString(1));\n }\n\n rs.close();\n conn.close();\n\n return jsonList.toArray(new String[jsonList.size()]);\n }",
"private Object arrayToSPLArray(String name, JSONArray jarr, Type ptype) throws Exception {\n\t\tif(l.isLoggable(TraceLevel.DEBUG)) {\n\t\t\tl.log(TraceLevel.DEBUG, \"Creating Array: \" + name);\n\t\t}\n\t\tCollectionType ctype = (CollectionType) ptype;\n\t\tint cnt=0;\n\t\tString cname = \"List: \" + name;\n\n\t\tswitch(ctype.getElementType().getMetaType()) {\n\t\tcase INT8:\n\t\tcase UINT8: \n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tbyte[] arr= new byte[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Byte)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT16:\n\t\tcase UINT16:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tshort[] arr= new short[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Short)val;\n\t\t\treturn arr;\n\t\t} \n\t\tcase INT32:\n\t\tcase UINT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tint[] arr= new int[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Integer)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase INT64:\n\t\tcase UINT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tlong[] arr= new long[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Long)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase BOOLEAN:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tboolean[] arr= new boolean[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Boolean)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT32:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tfloat[] arr= new float[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Float)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase FLOAT64:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj!=null) lst.add(obj);\n\t\t\t}\n\n\t\t\tdouble[] arr= new double[lst.size()];\n\t\t\tfor(Object val : lst)\n\t\t\t\tarr[cnt++] = (Double)val;\n\t\t\treturn arr;\n\t\t} \n\n\t\tcase USTRING:\n\t\t{\n\t\t\tList<String> lst = new ArrayList<String>();\n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((String)obj);\n\t\t\t}\n\t\t\treturn lst.toArray(new String[lst.size()]);\n\t\t} \n\n\t\tcase BSTRING:\n\t\tcase RSTRING:\n\t\t{\n\t\t\tList<RString> lst = new ArrayList<RString>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((RString)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase TUPLE:\n\t\t{\n\t\t\tList<Tuple> lst = new ArrayList<Tuple>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Tuple)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\t\tcase LIST:\n\t\tcase BLIST:\n\t\t{\n\t\t\tList<Object> lst = new ArrayList<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase SET:\n\t\tcase BSET:\n\t\t{\n\t\t\tSet<Object> lst = new HashSet<Object>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add(obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase DECIMAL32:\n\t\tcase DECIMAL64:\n\t\tcase DECIMAL128:\n\t\t{\n\t\t\tList<BigDecimal> lst = new ArrayList<BigDecimal>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((BigDecimal)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\t\tcase TIMESTAMP:\n\t\t{\n\t\t\tList<Timestamp> lst = new ArrayList<Timestamp>(); \n\t\t\tfor(Object jsonObj : jarr) {\n\t\t\t\tObject obj =jsonToAttribute(cname, ctype.getElementType(), jsonObj, ptype);\n\t\t\t\tif(obj != null) \n\t\t\t\t\tlst.add((Timestamp)obj);\n\t\t\t}\n\t\t\treturn lst;\n\t\t}\n\n\n\t\t//TODO -- not yet supported types\n\t\tcase BLOB:\n\t\tcase MAP:\n\t\tcase BMAP:\n\t\tcase COMPLEX32:\n\t\tcase COMPLEX64:\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unhandled array type: \" + ctype.getElementType().getMetaType());\n\t\t}\n\n\t}",
"public Producto[] parseResponse(String jsonAsString){\r\n\r\n //manually parsing to productos\r\n JsonParser parser = new JsonParser();\r\n JsonObject rootObject = parser.parse(jsonAsString).getAsJsonObject();\r\n JsonElement projectElement = rootObject.get(\"productos\");\r\n\r\n Producto [] productos = null;\r\n\r\n if(projectElement != null){\r\n\r\n QuantityDictionay.debugLog(\"LOS PRODUCTOS--->\"+projectElement.toString());\r\n\r\n //Use Gson to map response\r\n Gson gson = new Gson();\r\n //set type of response\r\n Type collectionType = new TypeToken<Producto[]>(){}.getType();\r\n //get java objects from json string\r\n productos = gson.fromJson(projectElement.toString(),collectionType);\r\n\r\n QuantityDictionay.debugLog(\"PARSING SIZE---->\"+productos.length);\r\n\r\n }\r\n\r\n\r\n return productos;\r\n\r\n }",
"public String[] getStringArrayFromInputStream(InputStream is) {\n\n BufferedReader br = null;\n ArrayList<String> al = new ArrayList<String>();\n String line;\n String[] sa = null;\n try {\n\n br = new BufferedReader(new InputStreamReader(is));\n while ((line = br.readLine()) != null) {\n al.add(line);\n }\n } catch (Exception e) {\n } finally {\n try {\n br.close();\n } catch (Exception e) {\n }\n br = null;\n sa = al.toArray(new String[al.size()]);\n return sa;\n }\n }",
"public static ArrayList<GpsRecord> getGpsRecords(String jsonString) {\n ArrayList<GpsRecord> gpsRecords = new ArrayList<GpsRecord>();\n JsonParser parser = new JsonParser();\n JsonElement element = parser.parse(jsonString);\n if (element.isJsonArray()) {\n JsonArray jsonRecords = element.getAsJsonArray(); \n for (int i = 0; i < jsonRecords.size(); i++) { \n GpsRecord gpsRecord = new GpsRecord(); \n JsonObject jsonRecord = jsonRecords.get(i).getAsJsonObject();\n gpsRecord.setJsonString(jsonString);\n if( jsonRecord.get(\"device_random_id\").getAsString().equals(\"\")){\n continue;\n }\n else {\n \t gpsRecord.setDeviceId(jsonRecord.get(\"device_random_id\").getAsInt()); \n }\n gpsRecord.setTimestamp(jsonRecord.get(\"recorded_timestamp\").getAsString());\n gpsRecord.setLon(jsonRecord.get(\"lon\").getAsDouble());\n gpsRecord.setLat(jsonRecord.get(\"lat\").getAsDouble());\n gpsRecord.setAltitude(jsonRecord.get(\"altitude\").getAsDouble());\n gpsRecord.setSpeed(jsonRecord.get(\"speed\").getAsInt());\n gpsRecord.setOrientation(jsonRecord.get(\"orientation\").getAsDouble());\n gpsRecords.add(gpsRecord);\n }\n }\n \n return gpsRecords;\n }",
"public String toJson(final String object) {\n if (object != null && (object.startsWith(\"[\") || object.startsWith(\"{\")\n || (object.startsWith(\"\\\"[\") || object.startsWith(\"\\\"{\")))) {\n return object;\n } else\n return \"{\\\"\" + \"{\\\"success\\\" : 1}\" + \"\\\":\\\"\" + object + \"\\\"}\";\n }",
"String getJSON();",
"private static Character[] stringToArray(String s) {\n\t\tint len = s.length();\n\t\tCharacter[] testArray = new Character[len];\n\t\tfor(int i = 0; i < len; i++) {\n\t\t\ttestArray[i] = s.charAt(i);\n\t\t}\n\t\tassert(testArray.length == s.length());\n\t\treturn testArray;\n\t}",
"public static List<Ship> extractShipsFromJson(String jsonString) {\n List<Ship> ships = new ArrayList<>();\n\n try {\n JSONArray shipsArray = new JSONArray(jsonString);\n\n for (int i = 0; i < shipsArray.length(); i++){\n JSONObject currentShip = shipsArray.getJSONObject(i);\n\n\n int id = currentShip.getInt(\"id\");\n String name = currentShip.getString(\"name\");\n int speed = currentShip.getInt(\"speed\");\n String type = currentShip.getString(\"type\");\n int maxCargoWeight = currentShip.getInt(\"maxCargoWeight\");\n\n Ship ship = new Ship(id, name, speed, type, maxCargoWeight);\n ships.add(ship);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return ships;\n }",
"public String[] getStringArray();",
"private static Object parseData(String source, Class<?> expectedType){\n\t\tif(expectedType.equals(Integer.class)) return new Integer(source);\n\t\tif(expectedType.equals(Boolean.class)) return new Boolean(source);\n\t\tif(expectedType.equals(Double.class)) return new Double(source);\n\t\treturn source;\n\t}",
"public static BloomFilter<String> fromJson(JsonElement source) {\n return fromJson(source, String.class);\n }",
"private static Object readArrayTillTheEnd(final StringTokenizer tokenizer) {\n final JSONArray result = new JSONArray();\n final char possibleEnd = tokenizer.nextUnskippable();\n if (possibleEnd == ']') {\n return result;\n }\n tokenizer.back();\n boolean finished = false;\n while (!finished) {\n result.put(parse(tokenizer));\n final char separator = tokenizer.nextUnskippable();\n if (separator == ']') {\n finished = true;\n } else if (separator != ',') {\n throw syntaxError(\"Unexpected separator '\" + separator + \"'\", tokenizer);\n }\n }\n return result;\n }",
"private static ArrayList<String> convertToStringList(JSONArray arr)\n throws JSONException {\n ArrayList<String> list = new ArrayList<String>();\n if (arr != null) {\n for (int i = 0; i < arr.length(); i++) {\n list.add(arr.getString(i));\n }\n }\n return list;\n }"
] | [
"0.7919633",
"0.7385733",
"0.6714521",
"0.6284147",
"0.6241508",
"0.61001194",
"0.59843117",
"0.5969656",
"0.5855488",
"0.5760098",
"0.5696433",
"0.5622395",
"0.5584514",
"0.5550795",
"0.5519828",
"0.5431384",
"0.53786695",
"0.528988",
"0.5287974",
"0.528229",
"0.52645236",
"0.5259442",
"0.52467686",
"0.5242297",
"0.52366596",
"0.5206045",
"0.51987195",
"0.51898986",
"0.5171851",
"0.514166",
"0.51095635",
"0.5095193",
"0.5077738",
"0.5076601",
"0.5063318",
"0.5055981",
"0.5031439",
"0.50228107",
"0.50184876",
"0.5013608",
"0.4999139",
"0.4978631",
"0.49779812",
"0.4962633",
"0.4961234",
"0.49574158",
"0.49315625",
"0.4921365",
"0.49063545",
"0.4903675",
"0.4900201",
"0.4896413",
"0.48944542",
"0.48864385",
"0.48849753",
"0.48755652",
"0.48609427",
"0.48600408",
"0.48391515",
"0.48391515",
"0.48391515",
"0.48391515",
"0.4839084",
"0.48272258",
"0.48242596",
"0.48196095",
"0.4810517",
"0.48101124",
"0.4795592",
"0.47912988",
"0.47899055",
"0.47897318",
"0.47880116",
"0.4787421",
"0.4786362",
"0.4779784",
"0.47785616",
"0.4766068",
"0.47534588",
"0.47445777",
"0.47444907",
"0.47354585",
"0.47149467",
"0.4706588",
"0.47030053",
"0.47001025",
"0.46946692",
"0.4688092",
"0.4676182",
"0.46738216",
"0.46687472",
"0.4666816",
"0.46663746",
"0.46606216",
"0.46596324",
"0.46591055",
"0.4658002",
"0.46573967",
"0.46492577",
"0.46468827"
] | 0.73728395 | 2 |
Adds an element to this JSON array | public void add(Object value) {
if(JSONType.typeOf(value) == null) throw new JSONException("Invalid value type");
this.values.add(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addToArray(JsonElement element){\n values.add(element);\n }",
"public void addElement(Object obj);",
"void add(Object element);",
"public JSONArray put(Object value) {\n\t\tthis.add(value);\n\t\treturn this;\n\t}",
"void add(byte[] element);",
"void add(int index, Object element);",
"public boolean add(Object element);",
"@Override\n public void add(T element) {\n add(size(), element);\n }",
"@Override\n public void add(int index, T element) {\n Object[] newArray = new Object[size + 1];\n for (int i = 0; i < index; i++) {\n newArray[i] = data[i];\n }\n newArray[index] = element;\n for (int i = index + 1; i < newArray.length; i++) {\n newArray[i] = data[i - 1];\n }\n data = newArray;\n size++;\n }",
"void add(ByteString element);",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"public synchronized void add(E value) {\n this.array.add(value);\n }",
"public void addItem(JSONObject obj) {\n coordinates.put(obj);\n }",
"public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}",
"@Override\n public void add(T t) {\n checkIfArrayFull();\n\n arrayList[elementsInArray] = t;\n elementsInArray++;\n }",
"@Override\n\tpublic boolean add(T element) {\n\t\titemProbs_.put(element, 1d);\n\t\telementArray_ = null;\n\t\tklSize_ = 0;\n\t\treturn true;\n\t}",
"public void add(T element){\r\n if (element == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n // If array is full, double the size\r\n if (size == elements.length) {\r\n resize(elements.length * 2);\r\n }\r\n \r\n elements[size] = element;\r\n size++;\r\n }",
"@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }",
"public void add(T element);",
"public void add(T element);",
"public void add(E element) {\n\t\t// your code here\n\t}",
"public void add (T element);",
"private SignatureDTO[] add(SignatureDTO[] array, SignatureDTO element) {\n Class type = (array != null ? array.getClass() : (element != null ? element.getClass() : SignatureDTO.class));\n SignatureDTO[] newArray = (SignatureDTO[]) copyArrayGrow1(array, type);\n newArray[newArray.length - 1] = element;\n return newArray;\n }",
"@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }",
"public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name, int arraySize) { throw new RuntimeException(\"Stub!\"); }",
"@SuppressWarnings(\"unchecked\")\n public void arrayAddValue(LinkedList<String> keyList, Object array, Object value) throws IOException {\n if (value instanceof JSONParseEngine.ByteBuffer) {\n value = value.toString();\n }\n ((ArrayList) array).add(value);\n }",
"public void add(E element){\n if(size==capacity){\n capacity *=2;\n E[] array2 = (E[]) new Object[capacity];\n if (size >= 0) System.arraycopy(array, 0, array2, 0, size);\n array2[size]=element;\n array=array2;\n }else{\n array[size]=element;\n }\n size++;\n }",
"@Override\n\tpublic JSONObject add(JSONObject obj) {\n\t\treturn null;\n\t}",
"public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }",
"@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}",
"public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }",
"public void push(T element){\n\t\tarray[noOfElements] = element;\n\t\tnoOfElements ++;\t\t\n\t}",
"public void addElement(int index, TLProperty element);",
"public void add( Object value )\n\t{\n\t\tint n = size();\n\t\tif (addIndex >= n)\n\t\t{\n\t\t\tif (n == 0)\n\t\t\t\tn = 8;\n\t\t\telse\n\t\t\t\tn *= 2;\n\t\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), n );\n\t\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\t\tarray = narray;\n\t\t}\n\t\tArray.set( array, addIndex++, value );\n\t}",
"@Override\n\tpublic boolean add(Object e)\n\t{\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\tmyArray[size] = e;\n\t\tsize++;\n\t\treturn false;\n\t}",
"public void add(E element) {\n\t\tif (element == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\tif (size < elements.length) {\n\t\t\telements[size] = element;\n\t\t\tsize++;\n\t\t} else {\n\t\t\t// grow array\n\t\t\tint currentSize = elements.length;\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tE[] temp = (E[]) new Object[currentSize * 2];\n\t\t\tfor (int i = 0; i < size(); i++) {\n\t\t\t\ttemp[i] = elements[i];\n\t\t\t}\n\t\t\telements = temp;\n\t\t\telements[size] = element;\n\t\t\tsize++;\n\t\t}\n\n\t}",
"public void add(String key, JsonValue value, boolean asArray) {\n if (asArray) {\n toArray(key);\n }\n\n // 2. If value is an array, then for each element v in value, use add value\n // recursively to add v to key in entry.\n if (JsonUtils.isArray(value)) {\n value.asJsonArray().forEach(v -> add(key, v, asArray));\n\n // 3.\n } else {\n\n final Object original = map.get(key);\n\n // 3.1\n if (original != null) {\n\n if (original instanceof JsonValue) {\n\n if (JsonUtils.isArray((JsonValue)original)) {\n map.put(key, Json.createArrayBuilder(((JsonValue)original).asJsonArray()).add(value));\n\n } else {\n map.put(key, Json.createArrayBuilder().add((JsonValue)original).add(value));\n }\n\n } else if (original instanceof JsonArrayBuilder) {\n ((JsonArrayBuilder)original).add(value);\n\n } else if (original instanceof JsonMapBuilder) {\n map.put(key, Json.createArrayBuilder().add(((JsonMapBuilder)original).build()));\n\n } else {\n throw new IllegalStateException();\n }\n\n // 3.2\n } else {\n map.put(key, value);\n }\n }\n }",
"@Override\n public boolean add(T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i];\n }\n newArray[size] = object;\n this.size++;\n this.array = newArray;\n return true;\n }",
"public void add(int element);",
"@Override\n public synchronized void add(E element) {\n if (this.pointer == this.capacity) {\n int newCapacity = this.capacity + (this.capacity >> 1);\n Object[] arr = Arrays.copyOf(this.container, newCapacity);\n this.capacity = newCapacity;\n this.container = arr;\n }\n this.container[this.pointer++] = element;\n }",
"public void addElement(Integer e){\n list.add(e);\n }",
"public void add(Object e)\n {\n if(numElements == maxElements)\n doubleCapacity();\n \n // Add element\n if(!contains(e))\n elements[numElements++] = e;\n }",
"public void addElement(int element) {\n \tif(element > 0) {\n \tarray[head++] = element;\n \t}else {\n \t\tthrow new RuntimeException(\"Invalid element to add\");\n \t}\n }",
"public void add(E element){\n\t\tArrayQueue<E> temp = new ArrayQueue<E>();\n\t\ttemp.enqueue(element);\n\t\tQ.enqueue(temp);\n\t}",
"public void add(int index, E element);",
"public void add(E element) {\n\n\t\tif (size == capacity) {\n\t\t\tgrowArray();\n\t\t}\n\n\t\tlist[size] = element;\n\t\tsize++;\n\t}",
"public void add(T element) {\r\n if (element == null) {\r\n throw new IllegalArgumentException(); \r\n } \r\n if (size == elements.length) { \r\n resize(elements.length * 2); \r\n }\r\n elements[size()] = element; \r\n size++; \r\n }",
"public abstract void add(T element);",
"public abstract void add(T element);",
"public void push(Object element)\n\t{\n\t\tensureCapacity();\n\t\telements[size++] = element;\n\t}",
"public void add(Object value) {\n\n\t}",
"@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }",
"public void push(Object anElement);",
"public void add(T element) {\n if (size + 1 >= capacity) {\n if (capacity == 0) capacity = 1;\n else capacity *= 2; // double the array size\n T[] tempArrayList = (T[]) new Object[capacity];\n for (int i = 0; i < size; i++) tempArrayList[i] = genericArrayList[i];\n genericArrayList = tempArrayList; // genericArray has extra null at the end\n }\n genericArrayList[size++] = element;\n }",
"public void add(Coord obj) {\n\t\tif (index > itemcount)\n\t\t\tthrow new RuntimeException(\"Liste ist voll\");\n\t\tarray[index++] = obj;\n\t}",
"public void addElement(TLProperty element);",
"@Override\n\tpublic void add(Object o) {\n\t}",
"public void add(Statement element) {\n ensureSize(size + 1);\n arr[size++] = element;\n }",
"public void addElement(Integer elem){\n\t\tlist.add(elem);\n\t}",
"public void add(E a)\n {\n if (size == data.length) { // if the list is at capacity...\n // create a new, larger array\n E[] newData = (E[])(new Object[2*data.length]);\n \n // copy over all of the old elements\n for (int i = 0; i < size; i++)\n newData[i] = data[i];\n \n // redirect the old data reference\n data = newData;\n }\n\n // insert the new element\n data[size] = a;\n size++;\n }",
"@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}",
"@Override\n\tpublic void add(Object value) {\n\t\tinsert(value, size);\n\t}",
"public abstract void add(String element) throws RemoteException;",
"public void push(E element) {\r\n items.add(0, element);\r\n }",
"void add(int index, T element);",
"void add(int index, T element);",
"void add(T element);",
"void add(T element);",
"public void push(T element) {\n\t\t//add the new element\n\t\telements.add(element);\n\n\t}",
"public void add(Fraction element)\r\n\t{\n\t\tif(n==a.length)\r\n\t\t{\r\n\t\t\t// khai bao 1 mang Rectangle b\r\n\t\t\tFraction b[]= new Fraction[a.length*2];\r\n\t\t\tfor(int i=0;i<n;i++)\r\n\t\t\t{\r\n\t\t\t\tb[i]=a[i];\r\n\t\t\t}\r\n\t\t\t//gan dia chi b qua a\r\n\t\t\ta=b;\r\n\t\t}\r\n\t\ta[n]=element;\r\n\t\tn++;\r\n\t}",
"@Override\n public boolean add(int index, T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < index; i++) {\n newArray[i] = array[i];\n\n }\n newArray[index] = object;\n for (int i = index + 1; i < array.length; i++) {\n newArray[i] = array[i - 1];\n }\n this.size++;\n this.array = newArray;\n return true;\n }",
"@Override\n public void push(T element){\n arrayAsList.add(element);\n stackPointer++;\n }",
"public void add(T e){\n ensureCapacity(size + 1);\n data[size++] = e;\n }",
"public boolean add(Object[] obj) {\n\t\treturn false;\n\t}",
"@Override\n public void add(int index, T t) {\n checkIfArrayFull();\n\n if(index >= arrayList.length) {\n System.out.println(\"The index is out of bounds for this list\");\n System.exit(-1);\n }\n\n Object ob = arrayList[index];\n arrayList[index] = t;\n\n Object ob2;\n\n /*The loop cycles through the array starting at index. ob2 is given the value of arrayList at i+1 position.\n The arrayList at i+1 position is assigned the value of ob. Then the ob variable is assigned the value of ob2. */\n for(int i = index; i < arrayList.length - 1; i++) {\n ob2 = arrayList[i+1];\n arrayList[i+1] = ob;\n ob = ob2;\n }\n\n elementsInArray++;\n }",
"public void add(int index, Object element) {\r\n addBefore(element, (index == size ? header : entry(index)));\r\n }",
"public boolean add( Object newVal )\n {\n\t//first expand if necessary\n\tif ( _size >= _data.length )\n\t expand();\n\n\t_data[_size] = newVal;\n\t_size++;\n\n\treturn true;\n }",
"public void add(Object o);",
"public void add(X elem);",
"public void add(final Object value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif (this.size == this.capacity) {\n\t\t\treallocate();\n\t\t}\n\t\telements[size] = value;\n\t\tsize++;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t\tpublic JSONArray AddToArray(JSONObject obj){\n\t\t\tthis.allFriends.add(obj);\n\t\t\treturn allFriends;\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(T item){\n\t\t\n\n\t\tif(currentsize == data.length-1){\n\t\t\tgrow();\n\t\t}\n\n\t\t\n\t\tdata[currentsize] = item;\n\t\tcurrentsize++;\n\n\n\t}",
"public void put(String key, JsonArray value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"@Override\n <T> void add(T object);",
"public abstract void add(T element, int index);",
"public void put(Object element) {\r\n\t\tObject[] newElements = new Object[elements.length + 1];\r\n\t\tSystem.arraycopy(elements, 0, newElements, 0, elements.length);\r\n\t\tnewElements[elements.length] = element;\r\n\t\telements = newElements;\r\n\t}",
"public void put(T element) {\n\t\tcheckCapacity(size + 1);\n\t\tdata[size++] = element;\n\t}",
"public void add(Object o) {\n\t\tadd(size, o);\n\t}",
"public void add( Comparable newVal ) {\n \t//if _data is full, expand the array\n \tif (_size == _data.length){\n\t \texpand();\n \t}\n \t\n\tset(_lastPos + 1, newVal);\n \t//increases _lastPos and _size\n \t_lastPos++;\n \t_size++;\n }",
"public void addElement(Expression element){\n\t\telements.add(element);\n\t}",
"@Override\n public void addElement(T element) {\n // TODO. \n // Pseudocode: \n // Check if array is at capacity, if so expand it. \n // add element to the array\n // increment count\n // if this is not the first element, then call heapifyAdd to check if the newly added\n // element needs to be swapped up the heap\n if (count == heap.length) {\n expandCapacity();\n\n }\n heap[count] = element;\n count++;\n\n if (count > 1) {\n heapifyAdd();\n }\n\n }",
"@Override\n\tpublic void add() {\n\t\t\n\t}",
"public void addElement(Replicated obj)\r\n\t{\n\t\tinsert(obj, seq.size());\r\n\t}",
"public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}",
"@Override\n public boolean add(E e) {\n head++; //Increment the head by one\n if (head == ringArray.length)\n head = 0; //If we get to the end of the ring set the pointer to be 0 again to loop back round\n ringArray[head] = e; //Get the element\n if (elementCount < ringArray.length) //Increase the element count up until the length because at that point the number of elements cant change.\n elementCount++;\n return true;\n }",
"@Override\n public void add(final int index, final T element) {\n this.checkIndexToAdd(index);\n\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n for (int i = this.size; i > index; i--) {\n this.data[i] = this.data[i - 1];\n }\n\n this.data[index] = element;\n this.size++;\n }",
"public void append(T element);",
"public void append(T element);",
"public void add(T element, int pos);",
"public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }"
] | [
"0.77637696",
"0.67277503",
"0.65831685",
"0.6501405",
"0.64767116",
"0.6461102",
"0.6405809",
"0.6320724",
"0.6281135",
"0.6259695",
"0.6230084",
"0.62034816",
"0.61941785",
"0.6180721",
"0.6180638",
"0.6130356",
"0.6124758",
"0.60939986",
"0.60889906",
"0.60889906",
"0.60687965",
"0.6062457",
"0.60545033",
"0.6009221",
"0.5999557",
"0.59986377",
"0.59973866",
"0.5992426",
"0.5978998",
"0.5977591",
"0.597609",
"0.596109",
"0.5953633",
"0.5934835",
"0.5930468",
"0.59273565",
"0.5922183",
"0.5900456",
"0.5879549",
"0.58654267",
"0.5865303",
"0.5855226",
"0.58431023",
"0.5839879",
"0.58383733",
"0.5815503",
"0.58118695",
"0.5807376",
"0.5807376",
"0.580269",
"0.5800251",
"0.5786353",
"0.5779351",
"0.5775325",
"0.57701075",
"0.5769998",
"0.57670087",
"0.5764973",
"0.5754114",
"0.57493985",
"0.5742943",
"0.5742353",
"0.5739809",
"0.572982",
"0.57290065",
"0.57290065",
"0.57195395",
"0.57195395",
"0.57173055",
"0.5708081",
"0.57056",
"0.5694426",
"0.56904536",
"0.56892806",
"0.5684117",
"0.568376",
"0.56776106",
"0.56714666",
"0.5647443",
"0.56447464",
"0.5640424",
"0.5637719",
"0.56295997",
"0.5622361",
"0.56219476",
"0.5620777",
"0.5610577",
"0.55928445",
"0.55909455",
"0.5589856",
"0.55864626",
"0.55862397",
"0.55750334",
"0.5561928",
"0.55590177",
"0.55548984",
"0.55458224",
"0.55458224",
"0.5542601",
"0.5537416"
] | 0.62280774 | 11 |
Checks whether a value exists within this JSON array | public boolean has(int index) {
return index >= 0 && index < values.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean containsValue(Object value) {\n\t\treturn false;\r\n\t}",
"boolean containsValue(Object value) throws NullPointerException;",
"@Override\n\t\t\tpublic boolean containsValue(Object value) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn false;\n\t}",
"boolean containsValue(Object value);",
"public boolean contains(Object value) {\n\t\treturn false;\n\t}",
"public boolean hasValue(Object value) {\r\n\t\tif (objectMap.containsKey(value))\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean containsValue(Object value) {\r\n\t\tif (value == null) throw new NullPointerException();\r\n\t\tfor (K key : keySet()) {\r\n\t\t\tif (get(key).equals(value)) return true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean containsValue(Object value) {\n // Walk the values.\n for (Map.Entry<String, T> e : entries.values()) {\n if (value.equals(e.getValue())) {\n // Its there!\n return true;\n }\n }\n return false;\n }",
"@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn map.containsValue(value);\n\t}",
"@Override\n\tpublic boolean contains(Object value) {\n\t\tif (indexOf(value) != -1) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean contains(T value) {\n for (T tmp : arr) {\n if (tmp.equals(value)) {\n return true;\n }\n }\n return false;\n }",
"@Override\n\tpublic boolean contains(Object value) {\n\t\tif(indexOf(value)!=-1)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"public boolean isValueExists(String key, String value) {\n\t\tSystem.out.println(\"Checking for value : \" + value + \" existance\");\n\t\tboolean valueExist = false;\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\tif (dictMap.containsKey(key)) {\n\t\t\t\tList<String> membersList = dictMap.get(key);\n\t\t\t\tif (membersList.contains(value))\n\t\t\t\t\tvalueExist = true;\n\t\t\t}\n\t\t}\n\t\treturn valueExist;\n\t}",
"public boolean containsValue(Object value) {\n return map.containsValue(value);\n }",
"private boolean contains(List<NodeId> array, NodeId searchValue) {\n return array != null && array.contains(searchValue);\n }",
"@Override public boolean containsValue(Object value) {\n if (value == null) {\n for (LinkedEntry<K, V> header = this.header, e = header.nxt;\n e != header; e = e.nxt) {\n if (e.value == null) {\n return true;\n }\n }\n return false;\n }\n\n // value is non-null\n for (LinkedEntry<K, V> header = this.header, e = header.nxt;\n e != header; e = e.nxt) {\n if (value.equals(e.value)) {\n return true;\n }\n }\n return false;\n }",
"public boolean existsAnyMissingValue(){\r\n\t\treturn (anyMissingValue[0] || anyMissingValue[1]);\r\n\t}",
"public boolean contains (String key,String value)\n {\n PDFObject entry = get (key);\n if (!(entry instanceof PDFArray))\n return false;\n PDFArray array = (PDFArray) entry;\n for (int i = 0;i < array.size ();i++)\n {\n PDFObject element = array.get (i);\n if (element instanceof PDFName &&\n ((PDFName) element).getName ().equals (value))\n return true;\n }\n return false;\n }",
"public boolean contains(U value) {\n\t\t\treturn indexOf(value) != -1;\n\t\t}",
"public boolean contains( AnyType x )\n {\n int currentPos = findPos( x );\n if (array[currentPos] != null && array[currentPos].key.equals(x))\n \treturn true;\t\t//TODO : Test this method\n else\n \treturn false;\n \n }",
"@Override\n public boolean contains(Object object) {\n T value = (T) object;\n boolean result = false;\n for (int index = 0; index < this.values.length; index++) {\n T data = (T) this.values[index];\n if (data != null) {\n if (value.equals(data)) {\n result = true;\n }\n }\n }\n\n return result;\n }",
"@Override\n\tpublic boolean containsValue(Object arg0) {\n\t\treturn false;\n\t}",
"public boolean containsValue(Object value) {\n for (int i = 0; i < size; i++) {\n Entry entry = order[i];\n\n if (eq(value, entry.getValue())) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean containsValue(V value) {\r\n\t\tfor (LinkedList<KVPair> i : hashMapArray) {\r\n\t\t\tif (i!= null) {\r\n\t\t\t\tfor (int k = 0; k<i.size(); k++) {\r\n\t\t\t\t\tif (i.get(k).getValue() == value) {\r\n\t\t\t\t\t\treturn true;\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\treturn false;\r\n\t}",
"@Override\n public boolean containsValue(Object value) {\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry.getValue().equals(value)) {\n return true;\n }\n }\n }\n return false;\n }",
"public boolean containsValue(Object value)\r\n/* 391: */ {\r\n/* 392:560 */ return this.headers.containsValue(value);\r\n/* 393: */ }",
"public boolean containsValue(Object v) {\n/* 119 */ return false;\n/* */ }",
"public boolean HasOneValueInTheSpace()\n {\n return _valuesToPut.size() == 1;\n }",
"public boolean containsValue(Object v) {\n\t\tif (v == null)\n\t\t\tv = (V) nullObject;\n\n\t\tfor (int ix = 0; ix < values.length; ix++)\n\t\t\tif (values[ix] != null && values[ix].equals(v))\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}",
"public boolean contains(Object value)\r\n {\r\n return contains(root, value);\r\n }",
"public boolean existsInputMissingValues(){\r\n\t\treturn anyMissingValue[0];\r\n\t}",
"boolean hasArray();",
"public boolean hasValue() {\n return value_ != null;\n }",
"public boolean containsValue(Object value) {\r\n\t\tTableEntry<K, V> currentElement = null;\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (table[i] == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = table[i];\r\n\r\n\t\t\tdo {\r\n\t\t\t\tif (currentElement.value.equals(value)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentElement = currentElement.next;\r\n\t\t\t} while (currentElement != null);\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"public boolean exists() {\n \t\treturn (type != UNKNOWN && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}",
"public boolean contains(final Object value) {\n\t\tboolean found = false;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (elements[i].equals(value)) {\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}",
"@Override\n public boolean containsValue(Object value) {\n \t\n \tfor(int i=0;i<buckets.length;i++) {\n\t \tLinkedList<Entry> tempBucket = buckets[i];\n\t \t\n\t \tfor(int j=0;j<tempBucket.size();j++) {\n\t \t\tEntry tempEntry = tempBucket.get(j);\n\t \t\t\n\t \t\tif(tempEntry.getValue() == value) {\n\t \t\t\treturn true;\n\t \t\t}\n\t \t}\n \t}\n \t\n return false;\n }",
"public boolean doesArrayContainThisValue(int value) {\n for (int i = 0; i < arraySize; i++) {\n if (value == theArray[i]) {\n return true;\n }\n }\n return false;\n }",
"@Override\r\n\t\tpublic boolean contains(E value) {\n\t\t\treturn value == null;\r\n\t\t}",
"public boolean hasValue() {\n return result.hasValue();\n }",
"public boolean hasValue() {\n return result.hasValue();\n }",
"public boolean exists(String value) {\n\t\t// TODO Implement this method\n\t\tif (dict != null) {\n\t\t\treturn dict.containsKey(value);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\t// return false;\n\t}",
"public abstract boolean containsValue(V value);",
"public boolean contains(int columnIndex, Object value) {\n return findRow(columnIndex, value) != null;\n }",
"public boolean contains(K key, V value) {\r\n \tCollection<V> values = get(key);\r\n \tif (values == null) { return false; }\r\n \treturn values.contains(value);\r\n }",
"public boolean containsValue(Object value) {\r\n for (Map.Entry<K, V> pair : entrySet()) {\r\n // Optimize in case the Entry is one of our own.\r\n if (pair.getValue().equals(value) && ((CacheData<K, V>) pair).validateKey() != null) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean contains(String key) {\r\n\t\treturn getValue(key) != null;\r\n\t}",
"public final boolean hasResponseValues()\n\t{\n\t\treturn m_responseValues != null ? true : false;\n\t}",
"public boolean contains(T value) { return root == null ? false : root.contains(value); }",
"public boolean containsValue(V value) {\r\n for (Node datum : data) {\r\n if (datum != null) {\r\n Node targetNode = datum;\r\n while (targetNode != null) {\r\n if (targetNode.value == value || targetNode.value.equals(value)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n\r\n }\r\n }\r\n return false;\r\n }",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"boolean hasValue();",
"default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}",
"private boolean isPresent(JSONObject object, String key) {\n\n\t\treturn !(object.isNull(key));\n\n\t}",
"@Override\n\tpublic boolean equals(Object other) {\n\t\tif (!(other instanceof JSONArray)) {\n\t\t\treturn false;\n\t\t}\n\t\tint len = this.size();\n\t\tif (len != ((JSONArray) other).size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 0; i < len; i += 1) {\n\t\t\tObject valueThis = this.getObj(i);\n\t\t\tObject valueOther = ((JSONArray) other).getObj(i);\n\t\t\tif (valueThis instanceof JSONObject) {\n\t\t\t\tif (!((JSONObject) valueThis).equals(valueOther)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else if (valueThis instanceof JSONArray) {\n\t\t\t\tif (!((JSONArray) valueThis).equals(valueOther)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else if (!valueThis.equals(valueOther)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean hasValue() {\n return valueBuilder_ != null || value_ != null;\n }",
"@Override\n public boolean contains(T item) {\n //iterate through the array and look for the item\n for(int i = 0; i < numItems; i++){\n //if it is found, return true\n if(item.equals(arr[i]))\n return true;\n }\n return false;\n }",
"public boolean contains(String key) {\n\t \tNode node = get(key);\n\t return node!=null && node.value!=null;\n\t }",
"public boolean containsValue(V value)\r\n\t{\r\n\t\tList<V> values = values();\r\n\t\t\r\n\t\tfor(V element : values)\r\n\t\t{\r\n\t\t\tif(element.equals(value))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"@java.lang.Override\n public boolean hasExists() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean valueExists(String tableName, String key, Object value) throws SQLException, NullPointerException {\n ResultSet rs = mysql.query(\"SELECT * FROM `\"+ tableName +\"` WHERE `\" + key + \"` LIKE '\" + value.toString() + \"'\");\n\n // Gets the next line from the table\n if(rs.next()){\n // return true if the String is available\n return rs.getString(key) != null;\n }\n\n // Value and Key are not identified\n return false;\n }",
"@Override\n\tpublic boolean equals(Object o)\n\t{\n\t\tif(o == null || !(o instanceof JsonObject))\n\t\t\treturn false;\n\t\t\n\t\tJsonObject j = (JsonObject)o;\n\t\treturn values.equals(j.values);\n\t}",
"boolean Exists(int value) {\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tif (curr.data == value)\n\t\t\t\treturn true;\n\t\t\tcurr = curr.next;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean contains(int[] valueSet, int value) {\n\t\tfor (int i = 0; i < valueSet.length; i++) {\r\n\t\t\tif (valueSet[i] == value) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean exists() {\n \t\treturn (type != UNASKED && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}",
"boolean getExists();",
"@java.lang.Override\n public boolean hasExists() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean hasSearchValue() {\n return searchValue_ != null;\n }",
"@Override\n public boolean contains(T object) {\n for (int i = 0; i < this.size; i++) {\n if (array[i].equals(object)) {\n return true;\n }\n }\n return false;\n }",
"public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}",
"public static final boolean arrayContains(Object[] array, Object value)\n {\n for (int i = 0, max = array.length; i < max; i++)\n {\n if (value.equals(array[i]))\n return true;\n }\n\n return false;\n }",
"private boolean isArray() {\n return this.stack.peek() instanceof JsonArray;\n }",
"public boolean getExists();",
"@Override\n\tpublic boolean hasProperty(String fieldName, String value) {\n\t\tString[] fields = doc.getValues(fieldName);\n\t\tif (fields != null) {\n\t\t\tfor (String field : fields) {\n\t\t\t\tif (value.equals(field)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public <T> boolean existed(T thisThing, ArrayList<T> array) {\n\n int sign = 0;\n\n for (int i = 0; i < array.size(); ++i) {\n\n if (array.get(i).equals(thisThing)) {\n ++sign;\n }\n }\n if (sign == 0)//kayitli degil false doner\n {\n return false;\n } else {\n return true;\n }\n\n }",
"public boolean contains(E value);",
"@java.lang.Override\n public boolean hasVal() {\n return val_ != null;\n }",
"public boolean contains(T value) {\n\t\tif (head.value.equals(value)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn contains(head, value);\n\t\t}\n\t}",
"default boolean checkJsonResp(JsonElement response) {\n return false;\n }",
"public boolean hasData(String key) {\n\t\treturn data.containsKey(key);\n\t}",
"boolean hasCustomValue();",
"public boolean contains(String key)\r\n { return get(key) != null; }",
"public boolean containsValue(V value) {\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tif(k.value.equals(value)) {\n\t\t return true;\n\t\t}\n\t }\n\t}\n\treturn false;\n }",
"public boolean hasValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean dataExists(Data income){\r\n\t\t// Make sure the value exists in the map.\r\n\t\tif(this.data.get(income.getKeyValue()) != null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\t// end if\r\n\t}"
] | [
"0.6714613",
"0.66129804",
"0.6604504",
"0.65112567",
"0.6503383",
"0.649321",
"0.64712286",
"0.64441276",
"0.6429401",
"0.6380401",
"0.63791686",
"0.63454634",
"0.63315713",
"0.6294518",
"0.62882197",
"0.6270612",
"0.6258555",
"0.62530476",
"0.61800516",
"0.6138517",
"0.6130519",
"0.6123671",
"0.61080045",
"0.61080015",
"0.60847694",
"0.604879",
"0.60449713",
"0.60412836",
"0.6000198",
"0.59863174",
"0.5973244",
"0.59553504",
"0.59538716",
"0.5947461",
"0.5939345",
"0.5937345",
"0.59250695",
"0.59034544",
"0.5897132",
"0.588614",
"0.58850485",
"0.58850485",
"0.58730793",
"0.5872099",
"0.5867946",
"0.58545506",
"0.58412063",
"0.5837722",
"0.58357114",
"0.5813551",
"0.57878774",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5776849",
"0.5761056",
"0.57420665",
"0.573857",
"0.57272494",
"0.5718157",
"0.571618",
"0.57065487",
"0.57046515",
"0.57038426",
"0.5687023",
"0.5667047",
"0.5661025",
"0.565059",
"0.5648711",
"0.56482196",
"0.5646338",
"0.56453115",
"0.56452334",
"0.5644372",
"0.5640469",
"0.5637208",
"0.5631753",
"0.56063026",
"0.5599149",
"0.55980915",
"0.5595057",
"0.5590631",
"0.5582735",
"0.55784094",
"0.5564321",
"0.5560064",
"0.55579907",
"0.55579907",
"0.55579907",
"0.5547261"
] | 0.5716886 | 70 |
Gets an element from this JSON array | public Object get(int index) {
if(!has(index)) throw new JSONException("Index out of range");
return values.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getArrayElement(int index);",
"Object getArrayElement(int index);",
"Object getElementAt(int index);",
"Object get(int index) throws PropertyException {\n Object object = this.opt(index);\n if (object == null) {\n throw new PropertyException(\"JSONArray[\" + index + \"] not found.\");\n }\n return object;\n }",
"public synchronized E get(int index) {\n return this.array.get(index);\n }",
"@Override\n public E get(final int index) {\n return array[index];\n }",
"public Object get(int index) {\r\n return entry(index).element;\r\n }",
"public U getFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(0);\r\n\t }",
"@Override\n public T get(int index) {\n return (T) array[index];\n }",
"public E get(int index) {\n return this.elements[index];\n }",
"@Override\n public T get(int index) {\n if (index < 0 || index >= size) {\n return null;\n }\n int position = index + plusOne(nextFirst);\n if (position >= array.length) {\n position -= array.length;\n return array[position];\n } else {\n return array[position];\n }\n }",
"public Object get(int index) {\n\tif(index > arr.length) return null;\n\treturn arr[index];\n}",
"Object get(int index);",
"Object get(int index);",
"public Object elementAt(int index);",
"@Override\r\n\tpublic Object getElement(Object elementKey) {\n\t\treturn elements.get(elementKey);\r\n\t}",
"public T getElement();",
"public Object get(int index);",
"public Object get(int index);",
"@Override\n public Object getElement(int index){\n return gameCollection.elementAt(index);\n }",
"public int getElement(int index) {\r\n\t\t//Defensive\r\n\t\tif (index < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index less than zero\");\r\n\t\t}\r\n\t\tif (index >= getLength()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index out of upper bound\");\r\n\t\t}\r\n\t\tif (getLength() <= 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"The array does not yet exist\");\r\n\t\t}\r\n\t\t\r\n\t\treturn getNodeAt(index).value;\r\n\t}",
"public Object get(int index) {\n\t\tif(index <= arr.length-1) return arr[index];\n\t\treturn null;\n\t}",
"public E get(int index){\n if (index < 0 || index >= size){\n throw new ArrayIndexOutOfBoundsException(index);\n }\n return theData[index];\n }",
"public Object getElement();",
"public Object getObject(int pos) {\n return elements.get(pos);\n }",
"@Override\n public E element() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return (E) array[0];\n }",
"public Object[] elementAt(int index);",
"public int getElementAtIndex(int index){\r\n return mArray[index];\r\n }",
"private E getElement(int index) {\n if (index >= contents.size()) {\n return null;\n } else {\n return contents.get(index);\n }\n }",
"public <T> T getElement(String name) {\n return elements.get(name);\n }",
"public int get(int index) {\n return array[index];\n }",
"public int getElement(int index){\n if(index <0 || index >= array.length){\n throw new RuntimeException(\"Array index out of bound\");\n }\n return array[index];\n }",
"@Override\n\tpublic T get(int index) {\n\t\tif (index >= 0 && index < size) {\n\t\t\treturn data[index];\n\t\t}\n\t\treturn null;\n\t}",
"public Object get(int index) {\n\t\tif (index < 0 || index > (size - 1)) {\n\t\t\tthrow new IndexOutOfBoundsException(\n\t\t\t\t\t\"Cannot get the element with invalid index from the ArrayIndexedCollection.\");\n\t\t}\n\n\t\treturn elements[index];\n\t}",
"public E getElement(int index) {\t//O(1)\r\n\t\t//checks if the index is valid\r\n\t\tif (index>=0 && index<size)\r\n\t\t\treturn (E) list[index];\t//returns element at particular index\r\n\t\treturn null;\r\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public T get(int index)\n {\n return (T) array[index];\n }",
"public Object get(int index)\n {\n return items[index];\n }",
"E get( int index );",
"@SuppressWarnings(\"unchecked\")\r\n\t\tpublic U get(int idx){\r\n\t \tif ((idx < 0)|| (idx > numElems-1))\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//Uses cast to take U object out of generic-less array\r\n\t \treturn (U) array[idx];\r\n\t }",
"@Override\n public synchronized WebHistoryItem getItemAtIndex(int index) {\n return mArray.get(index);\n }",
"@Override\n public T get(int idx) {\n //if item is within the bounds of the array list, it is returned others null is returned\n if (idx >= 0 && idx<=size){\n return arr[idx+1];\n } else {\n return null;\n }\n\n }",
"public Object getValue()\n {\n Object[] a = (Object[]) getArray().getValue();\n int i = ((Number) getIndex().getValue()).intValue();\n\n return a[i];\n }",
"public AnyType get(AnyType key) {\n \tif (contains(key)) {\n \t\tint currentPos = findPos( key );\n \t\t\treturn ((array[currentPos] != null) ? array[currentPos].value : null); \n \t}\n \telse {\n \t\treturn null;\n \t}\n }",
"public T get(int index) {\n return this.list[index];\n }",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"@Override\n\tpublic E get(int idx) {\n\t\tE element = null;\n\t\tif (idx < 0 || idx >= size)\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\telement = list[idx];\n\t\treturn element;\n\t}",
"public T getElement() {\n return element;\n }",
"public E get(int index) {\n //make sure the index is valid\n if (this.array.length - 1 >= index) {\n //encapsulate\n Object element = this.array[index];\n return (E) element;\n } \n \n //if the index is invalid, return -1\n throw new IllegalArgumentException();\n }",
"public Object getItem(int position) {\n\t\ttry {\n\t\t\treturn jsonArray.getJSONObject(position);\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public Persona First() {\n return array.get(0);\n }",
"public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }",
"public Object get(int i) {\n return elementAt(i);\n }",
"@Override\n\tpublic E get(int i) {\n\t\tif (i < 0 || i >= this.numberOfElements) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse {\n\t\t\treturn this.arrayList[i];\n\t\t}\n\t}",
"public E get(int index);",
"@Override\n // worst-case complexity: O(1), it's basically just an array access\n public T get(int index) {\n if (index < size && index >= 0)\n return arr[index];\n // else throw an exception\n throw new IndexOutOfBoundsException();\n }",
"public Object getElementAt(int index) {\n synchronized (itemsList) {\n return itemsList.get(index);\n }\n }",
"public Object get( int index )\n {\n\treturn _data[index];\n }",
"public E getElement()\n {\n return this.data;\n }",
"public E get(int index) { \n return (E)list[index];\n }",
"public E get(int index) {\n\t\tif (index < 0 || index >= size) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\treturn elements[index];\n\t}",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"T get(int index);",
"public E get(int index) {\r\n return items.get(index);\r\n }",
"public Double element() throws NoSuchElementException {\n\t\tif (arr.length > 0) {\n\t\t\treturn arr[0];\n\t\t} else {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t}",
"@Override\n public AccountItem get(int index) {\n Object o = null;\n\n try {\n o = arrayList[index];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"The index that you entered is not within the bounds of this list\");\n System.exit(-1);\n }\n return (AccountItem) o;\n }",
"public T getElement()\n {\n\n return element;\n }",
"@Override\n\tpublic T get(int indice) {\n\t\tif (indice >= 0 && indice < tamanho) {\n\t\t\treturn elementosDaLista[indice];\n\t\t}\n\t\treturn null;\n\t}",
"public E get(int index)\n\t{\n\t\treturn contents[index];\n\t}",
"public E get(int idx) {\n assert idx >= 0;\n \n if(v == array[idx]){\n\t\tv = array[idx];\n\t}\n\t\n\tif(array[idx] == null){\n\t\tv = null;\n\t}\n\treturn v;\n }",
"public T get(int index) throws IndexOutOfBoundsException {\n checkException(index);\n return arr[index];\n }",
"public Object get(String key) {\n \n \t\tJSONObject json = null;\n \t\ttry {\n \t\t\tjson = new JSONObject( content );\n \t\t\treturn json.get( key );\n \n \t\t}\n \t\tcatch ( JSONException ex ) {\n \t\t\tlog.error( ex );\n \t\t\treturn null;\n \t\t}\n \t}",
"public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}",
"@Override\n public T get(int index) {\n return indexCheck(index) ? (T) data[index] : null;\n }",
"public Object getElement()\n {return data;}",
"@Override\n public T get(final int index) {\n this.checkIndex(index);\n return this.data[index];\n }",
"public Object getValue(int index);",
"public T get() {\n return element;\n }",
"JSONObject getItem(int id) {\n return mData.get(id);\n }",
"@Override\r\n\tpublic T get(int index) {\n\t\treturn this._list.get(index);\r\n\t}",
"public E get(int index) {\n\t\tif (index < 0 || index >= size()) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Index is out of bounds\");\n\t\t} else {\n\t\t\treturn list[index];\n\t\t}\n\t}",
"public T get(int index) {\n T result = null;\n if (index >= 0 && index < this.container.length) {\n result = (T) this.container[index];\n }\n return result;\n }",
"public E get(int index) {\n\t\tcheckBounds(index);\r\n\t\treturn getNode(index).getData();\r\n\t}",
"public T getElement() {\n\t return myData;\n }",
"public long getElem(int index) {\r\n return a[index];\r\n }",
"public T getElement() {\n\t\treturn element;\n\t}",
"public E get(int index)\n {\n if (index >= 0 && index < size)\n return data[index];\n else\n throw new NoSuchElementException();\n }",
"public E get(int i) {\n\n\t if (i < 0 && i > num_elements)\n\t return null;\n\t \n\t return(elements[i]);\n\t }",
"public Object getElement()\r\n\t\t{ return element; }",
"public T getByIndex(int index) {\n\n return this.myList[index];\n }",
"@Override\n\tpublic E get(int index) {\n\t\treturn node(index).elementE;\n\t}",
"public Object getElement() {\n return element;\n }",
"public T get(int index) {\n if (index < 0 || index > size - 1) {\n throw new IndexOutOfBoundsException(\"Cannot access data outside \"\n + \"the size of the data structure(null)\");\n } else {\n if (index == 0) {\n return head.getData();\n } else if (index == size - 1) {\n return tail.getData();\n }\n Object[] myarray = this.toArray();\n return (T) myarray[index];\n }\n }",
"T get(int position);",
"public E getElement()\n\t{\n\t\treturn this.data;\n\t}",
"public T get(int aIndex);"
] | [
"0.7262636",
"0.7262636",
"0.6622813",
"0.640189",
"0.6398762",
"0.63798314",
"0.6333086",
"0.63203174",
"0.62134457",
"0.6203562",
"0.6199366",
"0.6160092",
"0.6154527",
"0.6154527",
"0.61362123",
"0.61141354",
"0.60789174",
"0.6077857",
"0.6077857",
"0.6054231",
"0.60494345",
"0.6046031",
"0.6037349",
"0.60219496",
"0.6011567",
"0.60095435",
"0.5993459",
"0.599291",
"0.59852487",
"0.5982089",
"0.59739226",
"0.5945906",
"0.59325963",
"0.5932524",
"0.59113294",
"0.58853126",
"0.58714867",
"0.58627045",
"0.5858573",
"0.58550155",
"0.5848217",
"0.5834756",
"0.58335954",
"0.58331156",
"0.5819786",
"0.5819786",
"0.5819786",
"0.581571",
"0.58138406",
"0.5800364",
"0.57985413",
"0.5795013",
"0.5793672",
"0.5792201",
"0.57702976",
"0.5769755",
"0.5769534",
"0.5763336",
"0.57594466",
"0.575801",
"0.57535017",
"0.57463384",
"0.5742564",
"0.5742564",
"0.5742564",
"0.5742564",
"0.5742564",
"0.57395047",
"0.5729208",
"0.57262623",
"0.57183653",
"0.57178843",
"0.5711197",
"0.57108086",
"0.57081497",
"0.57004386",
"0.5698876",
"0.56760734",
"0.5673187",
"0.5668959",
"0.566109",
"0.5653944",
"0.5648097",
"0.5647881",
"0.5647488",
"0.5644508",
"0.5644147",
"0.564149",
"0.5639784",
"0.5639672",
"0.5635563",
"0.5633924",
"0.56269187",
"0.5602163",
"0.5594562",
"0.55928427",
"0.5587887",
"0.5575107",
"0.5574531",
"0.55719054"
] | 0.58840054 | 36 |
Checks whether a value is of the given type | public boolean isOfType(int index, JSONType type) {
if(!has(index)) return false;
return JSONType.isOfType(get(index), type);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }",
"@Test\n public void testIsTypeOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_TYPE_OF);\n }",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"boolean hasType();",
"public boolean checkValueTypeValidity(Object value) {\n\t\treturn propType.checkValueTypeValidity(value);\n\t}",
"private void checkType(V value) {\n valueClass.cast(value);\n }",
"abstract protected boolean checkType(String myType);",
"public boolean isType(String type) {\n return m_Type.equals(type);\n }",
"public boolean is( Type type ) {\n return this.type == type;\n }",
"public abstract boolean isTypeOf(ItemType type);",
"private static boolean checkType(String type) {\n ParameterHelpers.checkParameter(type, \"type\");\n\n if (type.equals(TYPE_REGISTERED)) {\n return true;\n } else if (type.equals(TYPE_UNREGISTERED)) {\n return false;\n } else {\n throw new IllegalArgumentException(\"type must be 'Registered' or 'Unregistered'\");\n }\n }",
"@Test\n public void testIsKindOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_KIND_OF);\n }",
"public boolean isValue() {\n switch(this.getType()) {\n case CONSTANT_INTEGER : \n case CONSTANT_FLOAT :\n case CONSTANT_DOUBLE : \n case CONSTANT_LONG : \n case CONSTANT_STRING:\n return true ;\n default :\n return false;\n }\n }",
"protected boolean isValueAllowed(T value)\n\t{\n\t\tif(value == null)\n\t\t\treturn false;\n\t\t\n\t\tif(specifics.isEmpty())\n\t\t\treturn true;\n\t\t\n\t\tfor(Class<? extends Object> clazz : specifics)\n\t\t{\n\t\t\tif(clazz.isInstance(value))\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"boolean supports(Class<?> valueClass);",
"public boolean handlesType(Class<?> clazz);",
"boolean isValue();",
"public boolean isValue(Class<?> paramClass) {\n/* 125 */ if (paramClass == null) {\n/* 126 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 129 */ return (\n/* 130 */ !paramClass.isInterface() && Serializable.class\n/* 131 */ .isAssignableFrom(paramClass) && \n/* 132 */ !Remote.class.isAssignableFrom(paramClass));\n/* */ }",
"public abstract boolean isTypeCorrect();",
"public boolean matches(String value, TokenType type) {\n return TYPE == type && VALUE.equals(value);\n }",
"public boolean hasValue(final Class<? extends T> clazz) {\n return data.stream().anyMatch(element -> clazz.isAssignableFrom(element.getClass()));\n }",
"public boolean isValidForType(Type t) {\n\t\tswitch (t) {\n\t\t\tcase BOOLEAN: if ((this==INCREMENT)||(this==DECREMENT)) return false;\n\t\t\tdefault: return true;\n\t\t}\n\t}",
"public static void checkType(String value) {\n if (value != null && !getValueToTypeMap().containsKey(value)) {\n throw new IllegalArgumentException(\"No matching type for \" + value);\n }\n }",
"boolean isHandled(Class<?> type);",
"private boolean validateType(int type)\n {\n return PSSecurityProvider.isSupportedType(type);\n }",
"private boolean check(TokenType type) {\n return !isAtEnd() && peek().type == type;\n }",
"boolean hasValue(PropertyValue<?, ?> value);",
"public boolean validateValue(Object value) {\n return true;\n }",
"boolean containsValue(Object value);",
"public boolean isPrimitiveOrString(String fieldType) {\n return fieldType.equals(\"int\") || fieldType.equals(\"short\") || fieldType.equals(\"long\") ||\n fieldType.equals(\"byte\") || fieldType.equals(\"char\") || fieldType.equals(\"float\") ||\n fieldType.equals(\"double\") || fieldType.equals(\"boolean\") || fieldType.equals(\"String\");\n }",
"private boolean validateType(int type)\n {\n return type >=0 && type < TYPE_ENUM.length;\n }",
"public void test_containsTypedValue_accuracy() {\n instance.addTypedValue(typedValue);\n assertTrue(\"The TypedValue is not added properly.\", instance.containsTypedValue(typedValue));\n }",
"public boolean isType() {\n return type;\n }",
"protected boolean isApplicableType(Datatype type) {\n\t\treturn true;\n\t}",
"boolean isTypeKey(String key);",
"private boolean checkForType(IfStmt ifStmt, FieldDeclaration compareVariable) {\n boolean isOfType = false;\n BinaryExpr ifAsBinary = ifStmt.getCondition().asBinaryExpr();\n String comparedTypeName = compareVariable.getVariables().get(0).getNameAsString();\n if (!ifAsBinary.getLeft().isNullLiteralExpr()) {\n isOfType |= ifAsBinary.getLeft().asNameExpr().getNameAsString().equals(\n comparedTypeName);\n }\n if (!ifAsBinary.getRight().isNullLiteralExpr()) {\n isOfType |= ifAsBinary.getRight().asNameExpr().getNameAsString().equals(\n comparedTypeName);\n }\n return isOfType;\n }",
"public boolean isType (Uid u, String tn, int st) throws ObjectStoreException\n {\n return ((currentState(u, tn) == st) ? true : false);\n }",
"protected void validateValue(T value) {\n }",
"public boolean isWrapperOrString(String fieldType) {\n return fieldType.equals(\"Integer\") || fieldType.equals(\"Short\") || fieldType.equals(\"Long\") ||\n fieldType.equals(\"Byte\") || fieldType.equals(\"Character\") || fieldType.equals(\"Float\") ||\n fieldType.equals(\"Double\") || fieldType.equals(\"Boolean\") || fieldType.equals(\"String\");\n }",
"private boolean checkColumnTypes(ArrayList<String> types, ArrayList<Object> values) {\n boolean isType = true;\n for (int i = 0; i < values.size(); i++) {\n isType = this.isType(types.get(i), values.get(i));\n if (!isType) break;\n }\n return isType;\n }",
"@SuppressWarnings(\"unchecked\")\n \tpublic static boolean isItemStack(final Object value) {\n \t\treturn getItemStackClass().isAssignableFrom(value.getClass());\n \t}",
"boolean isSimpleValue();",
"private boolean isNodeTypeAttribute(String attributeName, String attributeValue) {\r\n boolean match = false;\r\n if (!StringUtils.isBlank(attributeName) && !StringUtils.isBlank(attributeValue) && !StringUtils.isBlank(getJsonTypeAttributeName())) {\r\n if (attributeName.equalsIgnoreCase(getJsonTypeAttributeName())) {\r\n if (attributeValue.equalsIgnoreCase(\"boolean\")) {\r\n _current.setType(XML2JSONObject.Type.Boolean);\r\n }\r\n else if (attributeValue.equalsIgnoreCase(\"number\")) {\r\n _current.setType(XML2JSONObject.Type.Number);\r\n }\r\n else if (attributeValue.equalsIgnoreCase(\"array\")) {\r\n _current.setType(XML2JSONObject.Type.Array);\r\n }\r\n match = true;\r\n\r\n }\r\n }\r\n return match;\r\n }",
"public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }",
"public boolean isTypeAt(World worldIn, BlockPos pos, TreeOresLogs2.EnumType type)\n {\n IBlockState iblockstate = worldIn.getBlockState(pos);\n return iblockstate.getBlock() == this && iblockstate.getValue(TYPE) == type;\n }",
"protected boolean isPrimitiveOrString(Class<?> clazz) {\n return clazz.isPrimitive() || clazz.isAssignableFrom(String.class);\n }",
"@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}",
"public boolean verificaTipo(String tipo) {\r\n\t\tif(tipo.equals(\"single\") || tipo.equals(\"double\") || tipo.equals(\"suite\")) return true;\r\n\t\telse return false;\r\n\t}",
"public abstract boolean isObject(T type);",
"boolean isAnyTypeReference();",
"private boolean isVal() {\n\t\treturn look.type == Tag.BOOLEAN || look.type == Tag.NUMBER\n\t\t\t\t|| look.type == Tag.STRING || look.type == Tag.NULL;\n\n\t}",
"public boolean isValidFieldType(String str)\n {\n String [] container = new String []\n {\n TYPE_TEXT,\n TYPE_NUMBER,\n TYPE_DATE\n };\n\n boolean bFound = false;\n\n for (int i=0; i<container.length; i++)\n {\n if (container[i].equalsIgnoreCase(str))\n {\n bFound = true;\n break;\n }\n }\n\n if (!bFound)\n return false;\n\n return true;\n }",
"private static void checkConvertibility(JValue val, JType typ){\r\n\t\tJType argTyp = val.getType();\n\t\tif (argTyp == null) {\n\t\t\tif (!(typ == AnyType.getInstance() || typ.isObject())) {\n\t\t\t\tthrow new TypeIncompatibleException(JObjectType.getInstance(), typ);\n\t\t\t}\n\t\t} else {\n\t\t\tConvertibility conv = argTyp.getConvertibilityTo(typ);\n\t\t\tif(conv == Convertibility.UNCONVERTIBLE){\n\t\t\t\tthrow new TypeIncompatibleException(argTyp, typ);\n\t\t\t} else if (conv == Convertibility.UNSAFE && argTyp == AnyType.getInstance()){\n\t\t\t\tUntypedValue uv = (UntypedValue) val;\n\t\t\t\tcheckConvertibility(uv.getActual(), typ);\n\t\t\t}\n\t\t}\r\n\t}",
"abstract public boolean isTyped();",
"private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }",
"public boolean isValidType() {\n return this.type == RADIUS_ATTR_USERNAME ||\n this.type == RADIUS_ATTR_NAS_IP ||\n this.type == RADIUS_ATTR_NAS_PORT ||\n this.type == RADIUS_ATTR_VENDOR_SPECIFIC ||\n this.type == RADIUS_ATTR_CALLING_STATION_ID ||\n this.type == RADIUS_ATTR_NAS_ID ||\n this.type == RADIUS_ATTR_ACCT_SESSION_ID ||\n this.type == RADIUS_ATTR_NAS_PORT_TYPE ||\n this.type == RADIUS_ATTR_EAP_MESSAGE ||\n this.type == RADIUS_ATTR_MESSAGE_AUTH ||\n this.type == RADIUS_ATTR_NAS_PORT_ID;\n }",
"public static boolean isWrapperType(Class<?> clazz) {\n\t\tif (clazz == Boolean.class || clazz == Character.class || clazz == Byte.class || clazz == Short.class\n\t\t\t\t|| clazz == Integer.class || clazz == Long.class || clazz == Float.class || clazz == Double.class) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"Object isMatch(Object arg, String wantedType);",
"public boolean accepts(Object value) {\n if(value instanceof Number) {\n short s = ((Number) value).shortValue();\n try {\n assertValidUnsignedByte(s);\n } catch (AxionException e) {\n return false;\n }\n return true;\n } else {\n return super.accepts(value);\n }\n }",
"public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }"
] | [
"0.78744155",
"0.70796907",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.7009986",
"0.69616544",
"0.6906219",
"0.6763801",
"0.6750059",
"0.666494",
"0.65893954",
"0.6402569",
"0.6398747",
"0.63874704",
"0.6267383",
"0.62549096",
"0.6224362",
"0.6215108",
"0.611883",
"0.60332406",
"0.60271674",
"0.6011752",
"0.6006651",
"0.60047084",
"0.5986421",
"0.59843504",
"0.5928145",
"0.58990395",
"0.587374",
"0.5859572",
"0.58560014",
"0.5796972",
"0.57817394",
"0.5759859",
"0.57531345",
"0.57412547",
"0.5737776",
"0.5710222",
"0.5680902",
"0.5666328",
"0.5664344",
"0.56638986",
"0.56417334",
"0.5627637",
"0.56158274",
"0.5612267",
"0.5606452",
"0.5605488",
"0.5603457",
"0.55938995",
"0.55925786",
"0.55924356",
"0.55890846",
"0.5579097",
"0.55776006",
"0.5570783",
"0.5569374",
"0.5559499",
"0.5557764",
"0.55567336",
"0.5542817"
] | 0.59984463 | 63 |
Converts this JSON object into a JSON string according to | @Override
public String toString() {
return JSONFormatter.formatArray(this, 0, false).toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String toJsonString();",
"@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}",
"String toJSON();",
"public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public abstract String toJson();",
"public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }",
"public String toJsonString() {\n return JsonUtils.getGson().toJson(toJson());\n }",
"public String toJson() { return new Gson().toJson(this); }",
"public String toJsonString() {\n\t\tString json = null;\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\n\t\ttry {\n\t\t\tjson = mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\t}",
"@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson()\n\t{\n\t\tJsonStringEncoder encoder = JsonStringEncoder.getInstance();\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append('{');\n\n\t\tboolean needComma = true;\n\t\tif (m_Message != null)\n\t\t{\n\t\t\tchar [] message = encoder.quoteAsString(m_Message.toString());\n\t\t\tbuilder.append(\"\\n \\\"message\\\" : \\\"\").append(message).append('\"').append(',');\n\t\t\tneedComma = false;\n\t\t}\n\n\t\tif (m_ErrorCode != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n \\\"errorCode\\\" : \").append(m_ErrorCode.getValueString());\n\t\t\tneedComma = true;\n\t\t}\n\n\t\tif (m_Cause != null)\n\t\t{\n\t\t\tif (needComma)\n\t\t\t{\n\t\t\t\tbuilder.append(',');\n\t\t\t}\n\t\t\tchar [] cause = encoder.quoteAsString(m_Cause.toString());\n\t\t\tbuilder.append(\"\\n \\\"cause\\\" : \\\"\").append(cause).append('\"');\n\t\t}\n\n\t\tbuilder.append(\"\\n}\\n\");\n\n\t\treturn builder.toString();\n\t}",
"public String toJSON() throws JSONException;",
"@Override\n public String toString() {\n return jsonString;\n }",
"public abstract Object toJson();",
"public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }",
"public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }",
"public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }",
"public String convertToString() {\n return mJSONObject.toString();\n }",
"@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}",
"public final native String toJson() /*-{\n // Safari 4.0.5 appears not to honor the replacer argument, so we can't do this:\n \n // var replacer = function(key, value) {\n // if (key == '__key') {\n // return;\n // }\n // return value;\n // }\n // return $wnd.JSON.stringify(this, replacer);\n \n var key = this.__key;\n delete this.__key;\n var rf = this.__rf;\n delete this.__rf;\n var gwt = this.__gwt_ObjectId;\n delete this.__gwt_ObjectId;\n // TODO verify that the stringify() from json2.js works on IE\n var rtn = $wnd.JSON.stringify(this);\n this.__key = key;\n this.__rf = rf;\n this.__gwt_ObjectId = gwt;\n return rtn;\n }-*/;",
"JSONObject toJson();",
"JSONObject toJson();",
"public String toJSON() {\n return new Gson().toJson(this);\n }",
"public String jsonify() {\n return gson.toJson(this);\n }",
"@Override\n public String encode() {\n JsonObject tmp = new JsonObject();\n addIfSet(tmp, \"id\", id);\n addIfSet(tmp, \"courseId\", courseId);\n addIfSet(tmp, \"sheetId\", sheetId);\n addIfSet(tmp, \"maxPoints\", maxPoints);\n addIfSet(tmp, \"type\", type);\n addIfSet(tmp, \"link\", link);\n addIfSet(tmp, \"bonus\", bonus);\n addIfSet(tmp, \"linkName\", linkName);\n addIfSet(tmp, \"submittable\", submittable);\n addIfSet(tmp, \"resultVisibility\", resultVisibility);\n tmp = super.encodeToObject(tmp);\n return tmp.toString();\n }",
"public String toJson() {\n try{\n return new JsonSerializer().getObjectMapper().writeValueAsString(this);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }",
"String toJSONString(Object data);",
"public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\\"code\\\": \\\"\").append(this.code).append(\"\\\", \");\n sb.append(\"\\\"color\\\": \\\"\").append(this.color).append(\"\\\", \");\n\n /* Append a size only if the product has a Size */\n if (this.size.getClass() != NoSize.class) {\n sb.append(\"\\\"size\\\": \\\"\").append(this.size).append(\"\\\", \");\n }\n\n sb.append(\"\\\"price\\\": \").append(this.price).append(\", \");\n sb.append(\"\\\"currency\\\": \\\"\").append(this.currency).append(\"\\\"}, \");\n\n return sb.toString();\n }",
"public String toJsonString() {\n String str;\n String str2;\n try {\n if (this.lifetime == null) {\n str = \"null\";\n } else {\n str = \"\\\"\" + this.lifetime.toString() + \"\\\"\";\n }\n if (this.frequency == null) {\n str2 = \"\";\n } else {\n str2 = \",\\\"frequency\\\":\" + this.frequency;\n }\n return \"{\\\"enabled\\\":\" + this.enabled + str2 + \",\\\"lifetime\\\":\" + str + \"}\";\n } catch (Exception e) {\n C3490e3.m663c(e.getMessage());\n return \"\";\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"public String toJsonData() {\n\t\treturn new Gson().toJson(this);\n\t}",
"public static Value makeJSONStr() {\n return theJSONStr;\n }",
"String toJson() throws IOException;",
"public JSONObject toJSON(){\n\t\treturn toJSON(false, false);\n\t}",
"public synchronized String getJSONString() {\n\n return getJSONObject().toString();\n }",
"@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}",
"public String toJsonfrmObject(Object object) {\n try {\n ObjectMapper mapper = new ObjectMapper();\n mapper.setDateFormat(simpleDateFormat);\n return mapper.writeValueAsString(object);\n } catch (IOException e) {\n logger.error(\"Invalid JSON!\", e);\n }\n return \"\";\n }",
"public String toJsonString() {\n JSONObject jsonObject = new JSONObject();\n try {\n jsonObject.put(\"from\", from);\n jsonObject.put(\"domain\", domain);\n jsonObject.put(\"provider\", provider);\n jsonObject.put(\"action\", action);\n\n try {\n JSONObject jsonData = new JSONObject();\n for (Map.Entry<String, String> entry : data.entrySet()) {\n jsonData.put(entry.getKey(), entry.getValue());\n }\n jsonObject.put(\"data\", jsonData);\n } catch (Exception e) {\n e.printStackTrace();\n jsonObject.put(\"data\", \"{}\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject.toString();\n }",
"public String toJson() {\n return this.toJson(SerializationFormattingPolicy.None);\n }",
"@Override\r\n\tpublic String toJsonString() {\n\t\treturn null;\r\n\t}",
"public JsonObject toJson();",
"public JSONObject toJson() {\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}",
"public JSONObject toJSON() {\n return toJSON(true);\n }",
"<T> String toJson(T source);",
"@Override\n public Object toJson() {\n JSONObject json = (JSONObject)super.toJson();\n json.put(\"name\", name);\n json.put(\"reason\", reason);\n return json;\n }",
"@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"frontInfo\", frontInfo);\n json.put(\"backInfo\", backInfo);\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = dateFormat.format(startTime);\n\n json.put(\"startTime\", formattedDate);\n json.put(\"cardID\", cardID);\n return json;\n }",
"public String toJson() throws Exception {\r\n\t\treturn SimpleJson.HashMapToText(getJsonToken());\r\n\t}",
"private String convertToJSON(Object o) throws JsonProcessingException {\n return new ObjectMapper().writeValueAsString(o);\n }",
"public final String toJson( )\n\t{\n\t\tString json = \"\";\n\t\tif ( getHref( ) != null )\n\t\t{\n\t\t\tthis.data.put( \"id\", getHref( ).substring( getHref( ).lastIndexOf( \"/\" ) + 1 ) );\n\t\t\tjson = this.data.toString( );\n\t\t\tthis.data.remove( \"id\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\tjson = this.data.toString( );\n\t\t}\n\t\treturn json;\n\t}",
"public String toJSON() {\n\t JSONObject outer = new JSONObject();\r\n\t JSONObject inner = new JSONObject();\r\n\t // Now generate the JSON output\r\n\t try {\r\n\t outer.put(\"articleMobile\", inner); // the outer object name\r\n\t inner.put(\"codeArticle\", codeArticle); // a name/value pair\r\n\t inner.put(\"designation\", designation); // a name/value pair\r\n\t inner.put(\"prixVente\", prixVente); // a name/value pair\r\n\t inner.put(\"stockTh\", stockTh);\r\n\t inner.put(\"error\", error); // a name/value pair\r\n\t inner.put(\"gisement\", gisement); // a name/value pair\r\n\t } catch (JSONException ex) {\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return outer.toString(); // return the JSON text\r\n\t}",
"@Override\n public String toJsonString() {\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(TransferOperation.class, new TransferSerializer());\n return gsonBuilder.create().toJson(this);\n }",
"public static String ToJsonString(AsonValue obj,boolean format) {\n return new JsonSerializer().serialize(obj,format);\n }",
"protected String toJSONFragment() {\n StringBuffer json = new StringBuffer();\n boolean first = true;\n if (isSetProductCategoryId()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ProductCategoryId\"));\n json.append(\" : \");\n json.append(quoteJSON(getProductCategoryId()));\n first = false;\n }\n if (isSetProductCategoryName()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ProductCategoryName\"));\n json.append(\" : \");\n json.append(quoteJSON(getProductCategoryName()));\n first = false;\n }\n if (isSetParent()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"Parent\\\" : {\");\n Categories parent = getParent();\n\n\n json.append(parent.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n return json.toString();\n }",
"private String converttoJson(Object medicine) throws JsonProcessingException {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n return objectMapper.writeValueAsString(medicine);\r\n }",
"public static String toJson(Object obj) {\n\t\treturn toJson(obj, true, true);\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public String toJSONString() {\n JSONObject entry = new JSONObject();\n\n Map<String, Object> configuration = new LinkedHashMap<String, Object>();\n configuration.put(\"smtpHostname\", smtpHostname);\n configuration.put(\"smtpPort\", new Integer(smtpPort));\n configuration.put(\"tls\", tls);\n configuration.put(\"ssl\", ssl);\n configuration.put(\"username\", username);\n configuration.put(\"password\", password);\n configuration.put(\"fromEMail\", fromEMail);\n configuration.put(\"fromSenderName\", fromSenderName);\n\n entry.put(configurationName, configuration);\n\n /*\n * The JSONWriter will pretty-print the output\n */\n Writer jsonWriter = new JSONWriter();\n try {\n entry.writeJSONString(jsonWriter);\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n\n return jsonWriter.toString();\n }",
"@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"private String converttoJson(Object followUpDietStatusInfo) throws JsonProcessingException {\n ObjectMapper objectMapper = new ObjectMapper();\n return objectMapper.writeValueAsString(followUpDietStatusInfo);\n }",
"public String toJsonObject() {\n if (this.isEmpty()) return \"\";\n StringBuilder sb = new StringBuilder(this.filterExpression.length() + 30);\n sb.append(\"\\\"keyFilter\\\" : \\\"\");\n sb.append(this.filterExpression);\n sb.append(\"\\\"\");\n return sb.toString();\n }",
"private String convertToJson(Users user) throws JsonProcessingException{\n\t ObjectMapper objectMapper = new ObjectMapper();\n\t return objectMapper.writeValueAsString(user); \n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public JSONObject toJSON() {\n JSONObject main = new JSONObject();\n JSONObject pocJSON = new JSONObject();\n pocJSON.put(JSON_NAME, this.getName());\n pocJSON.put(JSON_DESCRIPTION, this.getDescription());\n pocJSON.put(JSON_COLOR,this.colorConstraint.getColor().name());\n main.put(SharedConstants.TYPE, SharedConstants.PRIVATE_OBJECTIVE_CARD);\n main.put(SharedConstants.BODY,pocJSON);\n return main;\n }",
"public String toJson(Object src) {\n return getGson().toJson(src);\n }",
"public String toJson() {\n\n final StringBuilder jsonRepresentation = new StringBuilder();\n\n jsonRepresentation.append(\"[\");\n\n final Iterator<TrackingDataEntry> entriesIter = getEntries().iterator();\n while (entriesIter.hasNext()) {\n\n final TrackingDataEntry entry = entriesIter.next();\n\n serializeTrackingDataVariables(jsonRepresentation, entry.getVars());\n\n if (null != entry.getName()) {\n jsonRepresentation.append(\",\\\"name\\\":\\\"\").append(entry.getName()).append(\"\\\"\");\n }\n if (null != entry.getId()) {\n jsonRepresentation.append(\",\\\"id\\\":\\\"\").append(entry.getId()).append(\"\\\"\");\n }\n if (null != entry.getType()) {\n jsonRepresentation.append(\",\\\"type\\\":\\\"\").append(entry.getType()).append(\"\\\"\");\n }\n if (null != entry.getUrl()) {\n jsonRepresentation.append(\",\\\"url\\\":\\\"\").append(entry.getUrl()).append(\"\\\"\");\n }\n jsonRepresentation.append(\"}\");\n if (entriesIter.hasNext()) {\n jsonRepresentation.append(\",\");\n }\n }\n\n jsonRepresentation.append(\"]\");\n\n return jsonRepresentation.toString();\n }",
"@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}",
"public JSONObject toJSON() {\r\n return toJSON(new JSONObject());\r\n }",
"public String writeAsJson(final Object object) {\n String jsonRepresentation = null;\n try {\n if (object != null) {\n jsonRepresentation = jsonMapper.writeValueAsString(object);\n }\n } catch (final JsonProcessingException e) {\n // LOGGER.error(\"Failed writing object as json\", e);\n }\n\n if (applyMasking) {\n jsonRepresentation = jsonMaskingUtil.mask(jsonRepresentation);\n }\n return jsonRepresentation;\n }",
"public String toJson(final String object) {\n if (object != null && (object.startsWith(\"[\") || object.startsWith(\"{\")\n || (object.startsWith(\"\\\"[\") || object.startsWith(\"\\\"{\")))) {\n return object;\n } else\n return \"{\\\"\" + \"{\\\"success\\\" : 1}\" + \"\\\":\\\"\" + object + \"\\\"}\";\n }",
"public String toJson(Object obj){\n return new Gson().toJson(obj);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }",
"public final static String toJson(final Object src) {\n\t\treturn gson.toJson(src);\n\t}",
"@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"name\", name);\n json.put(\"startingTime\", startingTime);\n json.put(\"endingTime\", endingTime);\n json.put(\"event\", eventToJson());\n json.put(\"duration\", duration);\n return json;\n }",
"public String getJson();",
"String parseObjectToJson(Object obj);",
"@Override\n\tpublic String toString() {\n\t\t\n\t\treturn \"{\\\"a\\\":\"+a+\", \\\"B\\\":\\\"\"+B+\"\\\"}\";\n\t}",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"private JSONObject toJSON() throws JSONException {\n JSONObject jo = new JSONObject();\n jo.put(\"d\", description);\n jo.put(\"t\", timestamp);\n return jo;\n }",
"@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }",
"@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }",
"private String convertToJson(Contacts contact) throws JsonProcessingException{\n\t ObjectMapper objectMapper = new ObjectMapper();\n\t return objectMapper.writeValueAsString(contact); \n\t}",
"public String toJSONResult() {\n StringBuilder pageJSON = new StringBuilder();\n pageJSON.append(\"{\\\"id\\\": \");\n pageJSON.append(\"\\\"\");\n pageJSON.append(getID());\n pageJSON.append(\"\\\"\");\n pageJSON.append(\", \\\"title\\\": \");\n try {\n pageJSON.append(\"\\\"\").append(URLEncoder.encode(getTitle(), \"UTF-8\")).append(\"\\\"\");\n } catch (UnsupportedEncodingException e) {\n pageJSON.append(\"null\");\n }\n pageJSON.append(\", \\\"url\\\": \\\"\").append(getUrl())\n .append(\"\\\", \\\"preview\\\": \");\n try {\n pageJSON.append(\"\\\"\").append(URLEncoder.encode(getPreview(), \"UTF-8\"))\n .append(\"\\\"\");\n } catch (UnsupportedEncodingException e) {\n pageJSON.append(\"null\");\n }\n pageJSON.append(\"}\");\n\n return pageJSON.toString();\n }",
"public JsonObjectBuilder toJSONObject() {\n\n JsonObjectBuilder result = super.toJSONObject();\n\n if (userInfoEndpoint != null) {\n result.add(\"userinfo_endpoint\", userInfoEndpoint.toString());\n }\n\n return result;\n }",
"public JSONObject toFinalJSON() {\n\t\tJSONObject json = new JSONObject();\n\t\ttry {\n\t\t\tjson.put(\"message\",toJSON());\n\t\t\treturn json;\n\t\t} catch (JSONException e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}",
"public String toJson() {\n if (text.length() != 0) {\n JsonBuilder result = new JsonBuilder();\n result.add(\"text\", text.toString());\n result.add(\"color\", chatColor.asBungee().getName());\n\n result.add(\"bold\", bold);\n result.add(\"italic\", italic);\n result.add(\"underlined\", underlined);\n result.add(\"strikethrough\", strikethrough);\n result.add(\"obfuscated\", obfuscated);\n\n if (!clickEvent.equals(ClickAction.NONE)) {\n if (customClickEvent) {\n result.addCustomClickEvent(clickEvent, clickEventValue);\n } else {\n result.addClickEvent(clickEvent, clickEventValue);\n }\n }\n\n if (!hoverEvent.equals(HoverAction.NONE)) {\n if (customHoverEvent) {\n result.addCustomHoverEvent(hoverEvent, hoverEventValue);\n } else {\n result.addHoverEvent(hoverEvent, hoverEventValue);\n }\n }\n\n return result.get();\n\n } else {\n return \"\";\n }\n }",
"@Override\n public String toJSONString()\n {\n return \"{\\\"packet\\\":{\\\"agentsName\\\":\\\"\\\",\\\"placesName\\\":\\\"\\\",\\\"placesX\\\":0,\\\"placesY\\\":0,\\\"numberOfPlaces\\\":0,\\\"numberOfAgents\\\":0,\\\"placeOverloadsSetDebugData\\\":false,\\\"placeOverloadsGetDebugData\\\":false,\\\"agentOverloadsSetDebugData\\\":false,\\\"agentOverloadsGetDebugData\\\":false,\\\"placeDataType\\\":\\\"\\\",\\\"agentDataType\\\":\\\"\\\"},\\\"request\\\":0}\";\n }",
"@JsonIgnore\n\tpublic String getAsJSON() {\n\t\ttry {\n\t\t\treturn TransportService.mapper.writeValueAsString(this); // thread-safe\n\t\t} catch (JsonGenerationException e) {\n\t\t\tlog.error(e, \"JSON Generation failed\");\n\t\t} catch (JsonMappingException e) {\n\t\t\tlog.error(e, \"Mapping from Object to JSON String failed\");\n\t\t} catch (IOException e) {\n\t\t\tlog.error(e, \"IO failed\");\n\t\t}\n\t\treturn null;\n\t}",
"private static String valueToJSONString(Object value) throws Exception \n {\n\t\t JSONObject json = new JSONObject(); \n\t if (value instanceof IdScriptableObject && \n\t ((IdScriptableObject)value).getClassName().equals(\"Date\") == true) \n\t { \n\t // Get the UTC values of the date \n\t Object year = NativeObject.callMethod((IdScriptableObject)value, \"getUTCFullYear\", null); \n\t Object month = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMonth\", null); \n\t Object date = NativeObject.callMethod((IdScriptableObject)value, \"getUTCDate\", null); \n\t Object hours = NativeObject.callMethod((IdScriptableObject)value, \"getUTCHours\", null); \n\t Object minutes = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMinutes\", null); \n\t Object seconds = NativeObject.callMethod((IdScriptableObject)value, \"getUTCSeconds\", null); \n\t Object milliSeconds = NativeObject.callMethod((IdScriptableObject)value, \"getUTCMilliseconds\", null); \n\t \n\t // Build the JSON object to represent the UTC date \n\t \n\t json.put(\"zone\",\"UTC\"); \n\t json.put(\"year\",year); \n\t json.put(\"month\",month); \n\t json.put(\"date\",date); \n\t json.put(\"hours\",hours); \n\t json.put(\"minutes\",minutes); \n\t json.put(\"seconds\",seconds); \n\t json.put(\"milliseconds\",milliSeconds); \n\t return json.toString(); \n\t } \n\t else if (value instanceof NativeJavaObject) \n\t { \n\t Object javaValue = Context.jsToJava(value, Object.class); \n\t return javaValue.toString(); \n\t } \n\t else if (value instanceof NativeArray) \n\t { \n\t // Output the native array \n\t return nativeArrayToJSONString((NativeArray)value); \n\t } \n\t else if (value instanceof NativeObject) \n\t { \n\t // Output the native object \n\t return nativeObjectToJSONString((NativeObject)value); \n\t } \n\t else if( value instanceof Function){\n\t \treturn Context.toString(value);\n\t }\n\t else \n\t { \n\t return value.toString(); \n\t } \n }"
] | [
"0.7527441",
"0.72496825",
"0.72174925",
"0.71392035",
"0.71336263",
"0.71327645",
"0.70943266",
"0.70025903",
"0.70015764",
"0.6959437",
"0.69590783",
"0.69590783",
"0.69590783",
"0.69590783",
"0.69590783",
"0.69590783",
"0.69590783",
"0.69590783",
"0.69590783",
"0.69590783",
"0.6929205",
"0.6922727",
"0.68773925",
"0.68115187",
"0.679185",
"0.67877406",
"0.67877406",
"0.6762435",
"0.67521775",
"0.6731262",
"0.6723513",
"0.6723513",
"0.6721334",
"0.6713937",
"0.670565",
"0.6704457",
"0.66856265",
"0.6673209",
"0.660561",
"0.6585835",
"0.6583122",
"0.65777403",
"0.6551489",
"0.6549269",
"0.65479845",
"0.6544388",
"0.6540921",
"0.65407157",
"0.6494352",
"0.64914864",
"0.6439492",
"0.64383495",
"0.64374334",
"0.6414197",
"0.6364124",
"0.6362432",
"0.63554984",
"0.6352986",
"0.6341105",
"0.63252676",
"0.6318738",
"0.63138264",
"0.6308956",
"0.6300587",
"0.62983555",
"0.6293719",
"0.6280499",
"0.6278228",
"0.6268048",
"0.62659276",
"0.6261267",
"0.6252504",
"0.62512016",
"0.62417537",
"0.62283576",
"0.62187225",
"0.6188702",
"0.6184892",
"0.6183994",
"0.6172973",
"0.6172973",
"0.6172973",
"0.6171966",
"0.61597747",
"0.6147215",
"0.6142988",
"0.61406577",
"0.61393607",
"0.61378527",
"0.612185",
"0.6113311",
"0.61084205",
"0.61061394",
"0.61013776",
"0.6101185",
"0.6089015",
"0.60719883",
"0.60558325",
"0.6054641",
"0.6050378",
"0.60357803"
] | 0.0 | -1 |
Update state of objects | public void updateObjects()
{
//update states
for (Ball ball : balls) {
if(ball!=null)
{
if(ball.GetVisible()) ball.MoveDown();
}
else ball=null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}",
"public void updateState();",
"abstract public void updateState();",
"public void updateByObject()\r\n\t{\n\t}",
"@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}",
"public void update() {\r\n gameObjects.update(playState);\r\n }",
"void update( State state );",
"public abstract void update(Object obj) ;",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"public void update(){}",
"public void update(){}",
"public void update() {\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.update();\n\t\t}\n\t}",
"@Override\r\n\tpublic void update(Cidade obj) {\n\r\n\t}",
"@Override\r\n\tpublic void updateState() {\r\n\t\tState<A> result = null;\r\n\t\tif(events.size() > 0){\r\n\t\t\tfor(Event<A> a : events){\r\n\t\t\t\tstate = (result = state.perform(this,a)) == null ? state : result;\r\n\t\t\t}\r\n\t\t\tevents.removeAllElements();\r\n\t\t}\r\n\t\tstate = (result = state.perform(this, null)) == null ? state : result;\r\n\t\trequestInput();\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"@Override\n\tpublic void update(Object o) {\n\n\t}",
"@Override\n\tpublic void update(Object o) {\n\n\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\r\n\t}",
"public void update() {}",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"@Override\n public void updateStates() {\n mySprite.update();\n }",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() { }",
"@Override\r\n\tpublic void update() {\n\t\tif (globalState != null) globalState.update(owner);\r\n\t\t\r\n\t\t// Execute the current state (if any)\r\n\t\tif (currentState != null && newStateEntered) currentState.update(owner);\r\n\t}",
"public void update(Object obj) throws HibException;",
"@Override\n protected void incrementStates() {\n\n }",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update(Unidade obj) {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"protected abstract void update();",
"protected abstract void update();",
"@Override\n public void update() {\n }",
"void setState(Object state);",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"public boolean update(New object);",
"protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}",
"@Override\n\tpublic int update(Object object) {\n\t\treturn 0;\n\t}",
"public void update() {\n\t\t\n\t}",
"public void update() {\n }",
"@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}",
"public static void update() {\n if (!isEnd()) index++;\n state++;\n return;\n }",
"public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}",
"public void update(){\r\n\r\n // update curState based on inputs\r\n // Perform state-transition actions \r\n switch(curState) {\r\n${nextstatecases}\r\n default:\r\n reset();\r\n break;\r\n }",
"public void applyNewState() {\n this.setAlive(this.newState);\n }",
"@Override\n public void update() {\n }",
"public void willbeUpdated() {\n\t\t\n\t}",
"public void update(){\r\n\t\t\r\n\t}",
"public void update(){\r\n }",
"@Override\n\tpublic void update(Instance ins) {\n\t\t\n\t}",
"public void update() {\r\n\t\t\r\n\t}",
"public void update() ;",
"@Override\n public void update() {\n \n }",
"@Override\r\n\tpublic void updateState(int id, int state) {\n\t}",
"public void updateNewState() {\n Integer aliveCount = 0;\n for (final Cell neighbor : this.neighbors) {\n if (neighbor.isAlive()) {\n aliveCount++;\n }\n }\n\n if (aliveCount < 2) {\n this.setNewState(false);\n } else if (!this.isAlive() && aliveCount == 3) {\n this.setNewState(true);\n } else if (aliveCount > 3) {\n this.setNewState(false);\n }\n }",
"@Override\n\tpublic boolean update(Etape obj) {\n\t\treturn false;\n\t}",
"@Override\n public boolean update(Revue objet) {\n return false;\n }",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"public void updateState(boolean state);",
"protected void updated() {\n if (state.isSynced()) {\n this.state.setState(ENodeState.Updated);\n }\n }",
"private void updateState() {\n\t while(!isGoodState()) {\n\t\t updateStateOnce();\n\t }\n }",
"@Override\n public void update()\n {\n\n }",
"@Override\n public void update() {\n\n }",
"public void update(){\n }",
"@Override\n\tpublic int update(Object ob) {\n\t\treturn 0;\n\t}",
"public void update() {\n\n }",
"public void update() {\n\n }"
] | [
"0.7535246",
"0.73382205",
"0.7117514",
"0.69605577",
"0.6884775",
"0.68628156",
"0.6847158",
"0.67203206",
"0.66263306",
"0.66263306",
"0.66263306",
"0.6615515",
"0.6615515",
"0.65888745",
"0.656023",
"0.65583473",
"0.6535139",
"0.6491649",
"0.6491649",
"0.64893043",
"0.64893043",
"0.6464819",
"0.6464819",
"0.6464819",
"0.6464819",
"0.6464819",
"0.64373446",
"0.6432883",
"0.6432836",
"0.6429624",
"0.64082956",
"0.64082956",
"0.63979906",
"0.6397022",
"0.6383693",
"0.63802385",
"0.6358436",
"0.6358436",
"0.6358436",
"0.6358436",
"0.6353985",
"0.63523656",
"0.63523656",
"0.63284934",
"0.6312918",
"0.6312918",
"0.6312918",
"0.6312918",
"0.6312918",
"0.6312918",
"0.63127965",
"0.63127965",
"0.63002884",
"0.6297198",
"0.627955",
"0.627955",
"0.627955",
"0.6275963",
"0.6263364",
"0.6261666",
"0.6247172",
"0.6244884",
"0.6243902",
"0.62299645",
"0.6226534",
"0.62259597",
"0.6216641",
"0.6208999",
"0.6201634",
"0.619522",
"0.6193568",
"0.6190935",
"0.61905175",
"0.61903006",
"0.6188015",
"0.6185298",
"0.61838484",
"0.61772233",
"0.61665046",
"0.61624604",
"0.61624604",
"0.61603546",
"0.61603546",
"0.61603546",
"0.61603546",
"0.61603546",
"0.61603546",
"0.61603546",
"0.61603546",
"0.61603546",
"0.61603546",
"0.6150177",
"0.61410254",
"0.61360157",
"0.61174893",
"0.61098695",
"0.60945874",
"0.60935605",
"0.6093251",
"0.6093251"
] | 0.72454137 | 2 |
Clear balls, surface and panel | public void ClearAll()
{
balls.clear();
board.SetMissedBall(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearBalls();",
"public void Reset() {\n //print(\"reset\");\n done=false;\n splatshown=false;\n outputSplat.beginDraw();\n outputSplat.clear();\n outputSplat.endDraw();\n //world.clear();\n for (int i=0; i<10; i++) {\n randomize();\n r[i]=c1;\n g[i]=c2;\n b[i]=c3;\n }\n for (int i=0; i<10; i++)\n {\n world.remove(bub[i]);\n bub[i] = new FCircle(rad[i]);\n bub[i].setPosition(xCord[i], yCord[i]);\n bub[i].setStatic(true); \n bub[i].setFill(r[i], g[i], b[i]);\n bub[i].setNoStroke();\n world.add(bub[i]);\n burst[i] = new FCircle(rad[i]+3);\n burst[i].setPosition(xCord[i], yCord[i]);\n burst[i].setStatic(true);\n burst[i].setNoFill();\n burst[i].setNoStroke();\n } \n\n reset=false;\n}",
"public void resetGame(){\n removeAll();\n\n brickManager = new BrickManager(BRICKMANAGER_X_POSITION, BRICKMANAGER_Y_POSITION);\n ball = new Ball(BALL_INITIAL_X_POSITION, BALL_INITIAL_Y_POSITION, BALL_RADIUS*2, BALL_RADIUS*2);\n bar = new Bar(BAR_INITIAL_X_POSITION, BAR_INITIAL_Y_POSITION, BAR_LENGTH, BAR_WIDTH);\n\n add(ball);\n add(bar);\n add(brickManager);\n }",
"void clearCanvasAndDraw()\n {\n \tlauncher.clearRect(0, 0, launcherCanvas.getWidth(), launcherCanvas.getHeight());\n \tdrawLauncher(angle);\n \tcanvas.clearRect(0, 0, mainCanvas.getWidth(), mainCanvas.getHeight());\n \tdrawSky();\n \tdrawGrass();\n }",
"private void clearStage(GOval ball) {\n remove(ball);\n remove((paddle));\n }",
"protected void clearBallCount(int ballCount){\n canvas.remove(ballBox);\n for (int i = 0; i < ballCount; i++){\n if (canvas.getElementAt(60 + i*(15), 730) instanceof Ellipse){\n canvas.remove(canvas.getElementAt(60 + i*(15), 730));\n }\n }\n }",
"private void clear() {\n\t\tremoveAll();\n\t\taddCircle();\n\t}",
"public void clearAllGraphics()\r\n {\r\n graphics.clear();\r\n fullExtent = null;\r\n }",
"public void clear(){\n\t\tgraphics.setColor(Constants.COLOR_BACKGROUND);\n\t\tgraphics.fillRect(0, 0,setup.getFrameWidth()+12,setup.getFrameHeight()+12);\n\t\tdrawWindowSetup();\n\t}",
"public void clear()\n\t{\n\t\tgetGraphics().clearRect(0, 0, canvasWidth, canvasHeight);\n\t}",
"public void resetBalls() {\n\t\tBALL_LIST.clear();\n\t}",
"public void clearCanvas() {\n \tgc.setFill(Color.BLACK);\r\n //\tSystem.out.println(xCanvasSize+\" \"+ yCanvasSize);\r\n\t\tgc.fillRect(0, 0, xCanvasSize, yCanvasSize);}",
"public void clear(){\r\n canvas.getGraphicsContext2D().clearRect(canvas.getWidth(),canvas.getHeight(),1,1);\r\n pane.getChildren().clear();\r\n }",
"static void ClearDraw() {\n\t\tshape = new GeneralPath();\n\t\ti1.setOverlay(null);\n\t\tOL = new Overlay();\n\n\t}",
"void clear() {\n\t\tthis.theScreen.setColor(Preferences.COLOR_BACKGROUND);\n\t\tthis.theScreen.fillRect(0, 0, this.width, this.height);\n\t\tthis.theScreen.setColor(Preferences.TITLE_COLOR);\n\t\tthis.theScreen.drawRect(0, 0, this.width - 1,\n\t\t\t\tPreferences.GAMEBOARDHEIGHT - 1);\n\t}",
"public void resetGame() {\n\t\tBrickPanel.resetBallLocation();\n\t\tBrickPanel.repaint();\n\t}",
"public void cleanCanvas() {\n\t\tclean = true;\n\t\tthis.invalidate();\n\t\t\n\t\t// adiciona ponto fict’cio para informar que o canvas foi limpo num dado momento\n\t\tif (toReplay) {\n\t\t\txs.add(-2.0f);\n\t\t\tys.add(-2.0f);\n\t\t\tcolors.add(mPaint.getColor());\n\t\t}\n\t}",
"private void clearBackground() {\r\n\t\tg.setColor(Color.WHITE);\r\n\t\tg.fillRect(0,0, TetrisGame.PANEL_WIDTH * TetrisGame.SQUARE_LENGTH,\r\n\t\t\t\t TetrisGame.PANEL_HEIGHT * TetrisGame.SQUARE_LENGTH);\r\n\t}",
"public void clear() {\n\t\tshapes.clear();\n\t\tgroupedShapes.clear();\n\t\tthis.repaint();\n\t\tcounter = 0;\n\t\tnotifyObservers();\n\t}",
"public void clearAll() {\n\n\t\t// Removing the graphics from the layer\n\t\trouteLayer.removeAll();\n\t\t// hiddenSegmentsLayer.removeAll();\n\t\tmMapViewHelper.removeAllGraphics();\n\t\tmResults = null;\n\n\t}",
"public void clear() {\r\n\tcount = 0;\r\n isDrawn = false;\r\n repaint();\r\n }",
"public void clear() {\r\n\t\tremoveAll();\r\n\t\tdrawBackGround();\r\n\t\tclearEntries();\r\n\t\t\r\n\t}",
"public void clearAreaReset() {\n for(int x = 0; x < buildSize; x++) {\n for(int y = 4; y < 7; y++) {\n for(int z = 0; z < buildSize; z++) {\n myIal.removeBlock(x, y, z);\n }\n }\n }\n\n myIal.locx = 0; myIal.locy = 0; myIal.locz = 0;\n my2Ial.locx = 0; my2Ial.locy = 0; my2Ial.locz = 0;\n }",
"@Override\n public void clearBuffers() {\n if (defaultStateList.containsKey(RenderState.StateType.ZBuffer)) {\n defaultStateList.get(RenderState.StateType.ZBuffer).setNeedsRefresh(true);\n applyState(defaultStateList.get(RenderState.StateType.ZBuffer));\n }\n GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n }",
"public void clear() {\n\t\tfor(int i=0;i<getWidth();i++) {\n\t\t\tfor(int j=0;j<getHeight();j++) {\n\t\t\t\tbImage.setRGB(i, j, 0xffffffff);\n\t\t\t}\n\t\t}\n\t}",
"private void clearGrid() {\n\n }",
"void clearAnimatorPanel();",
"public void clearAll()\n {\n textureMap.clear();\n componentMap.clear();\n }",
"public void wipe(){\n\t \tg2d.setColor(Color.yellow);\n g2d.fillRect(0,0, width, height);\n\t\t\n\n\t }",
"public void clearCircle();",
"public void clear()\n {\n clear(BLACK);\n }",
"public void resetObjects() {\n if (wind1.isOffScreen()) {\n wind1.reset(wind3.getBoundingRectangle().y - buffer - rand.nextInt(AssetHandler.SCREEN_HEIGHT / 4));\n }\n if (wind2.isOffScreen()) {\n wind2.reset(wind1.getBoundingRectangle().y - buffer - rand.nextInt(AssetHandler.SCREEN_HEIGHT / 4));\n }\n if (wind3.isOffScreen()) {\n wind3.reset(wind2.getBoundingRectangle().y - buffer - rand.nextInt(AssetHandler.SCREEN_HEIGHT / 4));\n }\n\n //Again, check if the clouds go off the screen and then reset them.\n cloudBuffer = rand.nextInt(AssetHandler.SCREEN_HEIGHT / 4) + AssetHandler.SCREEN_HEIGHT / 4;\n if (cloud1.isOffScreen()) {\n cloud1.reset(cloud4.y - cloudBuffer);\n }\n if (cloud2.isOffScreen()) {\n cloud2.reset(cloud1.y - cloudBuffer);\n }\n if (cloud3.isOffScreen()) {\n cloud3.reset(cloud2.y - cloudBuffer);\n }\n if (cloud4.isOffScreen()) {\n cloud4.reset(cloud3.y - cloudBuffer);\n }\n\n //Check if birds (drones) go above the screen and reset them\n birdBuffer = rand.nextInt(AssetHandler.SCREEN_HEIGHT / 2 + AssetHandler.SCREEN_HEIGHT / 3) + AssetHandler.SCREEN_HEIGHT / 2;\n if (drone1.isOffScreen()) {\n drone1.reset(drone2.y - birdBuffer);\n }\n birdBuffer = rand.nextInt(AssetHandler.SCREEN_HEIGHT / 2 + AssetHandler.SCREEN_HEIGHT / 3) + AssetHandler.SCREEN_HEIGHT / 2;\n if (drone2.isOffScreen()) {\n drone2.reset(drone1.y - birdBuffer);\n }\n\n }",
"public void clear() {\n\t\tpoints.clear();\n\t\trepaint();\n\t}",
"public void emptyBasket() {\n balls.clear();\n }",
"public void flush(){\r\n\t\tColor tempcol = screengraphics.getColor();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(backgroundcolor);\r\n\t\tscreengraphics.fillRect(0, 0, sizex, sizey);\r\n\t\tscreengraphics.dispose();\r\n\t\tstrategy.show();\r\n\t\tscreengraphics =(Graphics2D) strategy.getDrawGraphics();\r\n\t\tscreengraphics.setColor(tempcol);\r\n\t\t\r\n\t}",
"void clear()\n\t\t{\n\t\t\tsides = 0;\n\t\t\td = new Dimension[0];\n\t\t}",
"private void reset() {\n darkSquare.reset();\n lightSquare.reset();\n background.reset();\n border.reset();\n showCoordinates.setSelected(resetCoordinates);\n pieceFont.reset();\n }",
"@Override\r\n\tpublic void reset() {\r\n\t\tpilots.clear();\r\n\t\tcabinCrew.clear();\r\n\r\n\t}",
"public static void reset() {\n\t\tbat1.reset();\n\t\tbat2.reset();\n\t\tball.reset();\n\t}",
"public void clear() { drawData.clear(); }",
"public void clearOverlays();",
"public static void clearBoard(){\n for(int i = 0; i < Board.X_UPPER_BOUND * Board.Y_UPPER_BOUND ; i++){\n Board.board[i] = null;\n }\n white_player.setpieceList(null);\n black_player.setpieceList(null);\n }",
"public void clearBorders() {\n\n findViewById(R.id.eslot1).setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#00000000\")));\n findViewById(R.id.eslot2).setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#00000000\")));\n findViewById(R.id.eslot3).setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#00000000\")));\n findViewById(R.id.eslot4).setBackgroundTintList(ColorStateList.valueOf(Color.parseColor(\"#00000000\")));\n\n findViewById(R.id.eslot1).refreshDrawableState();\n findViewById(R.id.eslot2).refreshDrawableState();\n findViewById(R.id.eslot3).refreshDrawableState();\n findViewById(R.id.eslot4).refreshDrawableState();\n }",
"public void partialRedraw()\r\n\t{\r\n\t\tg.clearRect(0,0,NumerateGame.WINDOW_X,NumerateGame.WINDOW_Y);\r\n\t}",
"public void clear(){\r\n\t\tfor ( int x = 0; x < grid.length; x++ )\r\n\t\t\tfor ( int y = 0; y < grid[0].length; y++ )\r\n\t\t\t\tgrid[x][y] = false;\r\n\t}",
"public void removeBalls() {\r\n for (Ball ball : this.ballsList) {\r\n ball.removeFromGame(this);\r\n }\r\n this.ballsList.clear();\r\n }",
"public void clearCanvas() {\n\n path_draw.reset();\n\n invalidate();\n\n }",
"public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }",
"public void reInit() {\n balls.clear();\n for (Ball b: ballsInit) {\n balls.add(new Ball(b));\n }\n }",
"private void clearCanvas() {\n updateImageSize(mScale);\n }",
"public void clearBoard() {\r\n\t\tbody.removeAll();\r\n\t\tpiece.clear();\r\n\t\t\r\n\t\t// Assign1, Remove 'K' label of all pieces\r\n\t\tfor (int i=0; i<blackPieces.length; i++) {\r\n\t\t\tblackPieces[i].setText(null);\r\n\t\t}\r\n\t\tfor (int i=0; i<whitePieces.length; i++) {\r\n\t\t\twhitePieces[i].setText(null);\r\n\t\t}\r\n\t\tbody.repaint();\r\n\t}",
"public void reset() {\n\t\tif (getElementCount()!=0) {\n\t\t\tremoveAll();\n\t\t}\n\t\tint rightX=getWidth()/2;\t\t\n\t\tint leftX=rightX-BEAM_LENGTH;\n\t\tint midY=(getHeight()-BODY_LENGTH)/2-2*HEAD_RADIUS-DIFF;\n\t\tint upY=midY-ROPE_LENGTH;\n\t\tint lowY=upY+SCAFFOLD_HEIGHT;\n\t\tGLine scaffold=new GLine(leftX, upY, leftX, lowY);\n\t\tadd(scaffold);\n\t\tGLine beam=new GLine(leftX, upY, rightX, upY);\n\t\tadd(beam);\n\t\tGLine rope=new GLine(rightX, upY, rightX, midY);\n\t\tadd(rope);\n\t}",
"public void clearGame() {\n //loop through piece array erase pieces\n\n //clear piece array\n for (int i = 0; i < 64; i++) {\n ChessBoard.pieces[i] = null;\n }\n\n //remove all piece components from chessboard\n chessboard.removeAll();\n \n //clear game log\n gamelog.clearLog();\n \n //refresh graphics\n frame.update(frame.getGraphics());\n }",
"private void resetForNextTurn() {\n\t\tremove(ball);\n\t\tdrawBall();\n\t\tsetInitialBallVelocity();\n\t\tpaddleCollisionCount = 0;\n\t\tpause(2000); \t\t\t\t\n }",
"private void clearSurface(SurfaceHolder holder) {\n\t\tSurface surface = holder.getSurface();\n\t\tEglCore eglCore = new EglCore();\n\t\tWindowSurface win = new WindowSurface(eglCore, surface, false);\n\t\twin.makeCurrent();\n\t\tGLES20.glClearColor(0, 0, 0, 0);\n\t\tGLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n\t\twin.swapBuffers();\n\t\twin.release();\n\t\teglCore.release();\n\t}",
"public void clearPieces(){\n for(int i =0; i<WIDTH;i++){\n for(int j = 0 ; j<HEIGHT;j++){\n piecesToSwap[i][j]=null;\n }\n }\n }",
"public void reset() {\n\t\trabbitcount[1]=8;\n\t\trabbitcount[2]=8;\n\t\tpieces.clear();\n\t\tselectedsquares.clear();\n\t\trepaint();\n\t}",
"public void renderAll()\n {\n \tthis.panel.rotateAngleX = -0.32f;\n this.lid.render(0.0625F);\n this.sideBox.render(0.0625F);\n this.box.render(0.0625F);\n this.panel.render(0.0625F);\n\n GL11.glDisable(GL11.GL_CULL_FACE);\n this.inner.render(0.0625F);\n GL11.glEnable(GL11.GL_CULL_FACE);\n \n this.innerStand.rotateAngleY = 0+rotateCentrifuge;\n this.innerStand.render(0.0625F);\n this.innerStand.rotateAngleY = 0.7854F+rotateCentrifuge;\n this.innerStand.render(0.0625F);\n }",
"private void clear() {\r\n\t\tpstate.clear();\r\n\t\tdisplay.setLegend(\"\");\r\n\t\tship = null;\r\n\t}",
"public void clearGrid() {\n\t\tfor (int i = 0; i < this.board.length; i++) {\n\t\t\tArrays.fill(this.board[i], EMPTY);\n\t\t}\n\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}",
"private void clearButton(Floor floor)\r\n\t{\r\n\t\t\tbuttonPanel[floor.getNumber()]=LiftButton.NOT_ACTIVE;\r\n\t}",
"public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }",
"public void reset() {\n\t\tx = 0;\n\t\ty = 0;\n\t\tdir = -90;\n\t\tcoul = 0;\n\t\tcrayon = true;\n\t\tlistSegments.clear();\n \t}",
"public void clear() {\n\t\tfor(int i=0;i<height;i++) {\n\t\t\tfor(int j=0;j<width;j++) {\n\t\t\t\tgrid[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"public void reset(){\n\t\tthis.setPosition(DEFAULT_X, DEFAULT_Y);\t\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(defaultWidth);\n\t\tspeed = 400;\n\t\tsetGlue(true);\n\t}",
"public void updateObjects()\r\n {\r\n //update states\r\n for (Ball ball : balls) {\r\n \tif(ball!=null)\r\n \t{\r\n\t \tif(ball.GetVisible()) ball.MoveDown();\r\n\r\n \t}\r\n \telse ball=null;\r\n }\r\n \r\n }",
"public void clearDirtyAreas() {\n synchronized (dirtyAreas) {\n dirtyAreas.clear();\n }\n renderedAreas.clear();\n fullUpdate = false;\n dirtyAreaCounter = 0;\n }",
"public void clearScreen()\n {\n showText(\"\", 150, 175);\n List objects = getObjects(null);\n if(objects != null)\n {\n removeObjects(objects);\n }\n }",
"public void clear() {\n \tthis.listShapes.clear();\n }",
"public void reset()\n\t{ removeAll();\n\t\t int center_y=(getHeight()/2);\n int center_x=(getWidth()/2);\n\t\tScaffoldEnd=new GPoint((center_x-BEAM_LENGTH),ARM_OFFSET_FROM_HEAD+(2*HEAD_RADIUS)+ROPE_LENGTH);\n\t\tGLine scaffold=new GLine((center_x-BEAM_LENGTH),ScaffoldEnd.getY()+SCAFFOLD_HEIGHT,ScaffoldEnd.getX(),ScaffoldEnd.getY());\n\t\tadd(scaffold);\n\t\tBeamEnd=new GPoint((center_x),ScaffoldEnd.getY());\n\t\tGLine beam=new GLine(ScaffoldEnd.getX(),ScaffoldEnd.getY(),BeamEnd.getX(),BeamEnd.getY());\n\t\tadd(beam);\n\t\tRopeEnd=new GPoint((center_x),(BeamEnd.getY()+ROPE_LENGTH));\n\t\tGLine rope=new GLine(BeamEnd.getX(),BeamEnd.getY(),RopeEnd.getX(),RopeEnd.getY());\n\t\tadd(rope);\n\t\tguessedLabel=new GLabel(\"-----\",20,20);\n\t\twrongLabel=new GLabel(\"-----\",20,40);\n\t\ti=1;\n\t\twrong=\"\";\n\t}",
"public void clearGotoFloor();",
"private void clearPainting()\r\n\t{\r\n\t\tdockableDragPainter.clear();\r\n\t}",
"public void clearRect(int x, int y, float width, float height);",
"public void startGame() {\n\t\t\n\t\tmyCanvas.setVisible(true);\n\n\t\t// draw the ground\n\t\tmyCanvas.drawLine(50, GROUNDLINE, 550, GROUNDLINE);\n\n\t\t// B�lle erzeugen\n\t\tvar r = new Random();\n\t\t// Aufgabe 6: ein Ball ist nicht genug, oder?\n\t\t// Erweitern Sie die Erzeugung mit Random Zahlen und generieren Sie B�lle in einer Schleife\n\t\tfor(var i = 0; i < 5; ++i) {\n\t\t\tballs.add( new BouncingBall(20 + r.nextInt(80), 100, 20 + r.nextInt(60), new Color(r.nextInt(200)+56,r.nextInt(256),r.nextInt(256)), GROUNDLINE, myCanvas) );\n\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t// draw every ball in the list\n\t\tfor (BouncingBall ball : balls) {\n\t\t\tball.draw();\n\t\t}\t\t\n\t\t\n\t\t// make them bounce\n\t\tvar finished = false;\n\t\twhile (!finished) {\n\t\t\tmyCanvas.wait(50); // small delay\n\t\t\t\n\t\t\t// move every ball in the list\n\t\t\tfor (BouncingBall ball : balls) {\n\t\t\t\tball.move();\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// stop if a ball has travelled a certain distance on x axis\n\t\t\tfor (BouncingBall ball : balls) {\t\t\t\t\n\t\t\t\tif (ball.getXPosition() >= 550) {\n\t\t\t\t\tfinished = true;\n\t\t\t\t\t// Aufgabe 5: Gameover\n\t\t\t\t\t// ...\n\t\t\t\t\tvar image = new ImageIcon(\"src/app/images/gameover.jpg\").getImage();\n\t\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// Aufgabe 3: Alle B�lle getroffen?\n\t\t\tif (balls.size()==0) {\n\t\t\t\tfinished = true;\n\t\t\t\tvar image = new ImageIcon(\"src/app/images/gewonnen.jpg\").getImage();\n\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t// Bild ausgeben, Gewonnen\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// erase every ball from the canvas\n\t\tfor (var ball : balls) {\n\t\t\tball.erase();\n\t\t}\t\t\n\t}",
"private void actionClear() {\n layoutPanel.inhNList.clear();\n layoutPanel.activeNList.clear();\n layoutPanel.probedNList.clear();\n\n Graphics g = layoutPanel.getGraphics();\n layoutPanel.writeToGraphics(g);\n }",
"public void paintBalls(Graphics g);",
"protected void clearToBack()\n {\n\tGraphics g = getGraphics();\n\tsetRenderColor(g,getBackground());\n\trenderFilledRect(g,0,0,width,height);\n }",
"public void clearSurface() {\n Canvas canvas = this.mSurfaceHolder.lockCanvas();\n if (canvas != null) {\n try {\n canvas.drawColor(0, PorterDuff.Mode.CLEAR);\n } finally {\n unlockCanvasAndPostSafely(canvas);\n }\n }\n }",
"private void clearBoard() {\n for (int i = 0; i < BOARD_HEIGHT * BOARD_WIDTH; ++i) {\n board[i] = Tetrominoe.NoShape;\n }\n }",
"public void clearPanel() {\n\t\tpanelA.removeAll();\n\t\tpanelB.removeAll();\n\t\t// to reset layout\n\t\tpanelA.revalidate();\n\t\tpanelA.repaint();\n\t\tpanelB.revalidate();\n\t\tpanelB.repaint();\t\n\t}",
"public void clear() {\r\n outlines.clear();\r\n outlines.add(new Outline());\r\n outlineState = VerticesState.UNDEFINED;\r\n bbox.reset();\r\n vertices.clear();\r\n triangles.clear();\r\n addedVerticeCount = 0;\r\n dirtyBits = 0;\r\n }",
"public void clearGrid() {\n\t\tfor (int x = 0; x < grid.length; x++) {\n\t\t\tfor (int y = 0; y < grid[x].length; y++) {\n\t\t\t\tgrid[x][y] = EMPTY;\n\t\t\t}\n\t\t}\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}",
"void clear() {\n\t\tdispose();\n\t}",
"private synchronized void clearCanvasAndChart() {\n this.getLiveContext().clearRect(0, 0, this.getLiveCanvas().getWidth(), this.getLiveCanvas().getHeight());\n this.getxSeries().getData().clear();\n this.getySeries().getData().clear();\n }",
"public void clear ()\n {\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(row, column);\n Move.clear();\n }",
"public void clearSubbedTiles() { subbedTiles.clear(); }",
"private void clear(int a_x, int a_y)\n {\n int index = clickOnWaypoint(a_x,a_y);\n if(index != -1)\n {\n Vector2d v = m_waypoints.get(index);\n m_grid[(int)v.x][(int)v.y] = Map.NIL;\n m_waypoints.remove(index);\n frame.updateNumWaypoints(m_waypoints.size());\n }\n else\n {\n setBrush(a_x,a_y,Map.NIL);\n }\n }",
"public void clear() {\n for (int row = 0; row < 8; ++row) {\n for (int col = 0; col < 8; ++col) {\n board[row][col] = null;\n }\n }\n whitePieces = new LinkedList<Piece>();\n blackPieces = new LinkedList<Piece>();\n }",
"protected void clear(Graphics g) {\n super.paintComponent(g);\n }",
"public void clear() {\n/* 103 */ this.texturesLinear.clear();\n/* 104 */ this.texturesNearest.clear();\n/* */ }",
"public static void clearWorld() {\n // TODO: Complete this method\n population.clear();\n babies.clear();\n }",
"public void reset() {\n\t\tVector2 gravity = new Vector2(world.getGravity() );\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.deactivatePhysics(world);\n\t\t}\n\t\tobjects.clear();\n\t\taddQueue.clear();\n\t\tworld.dispose();\n\t\t\n\t\tworld = new World(gravity,false);\n\t\tsetComplete(false);\n\t\tsetFailure(false);\n\t\tpopulateLevel();\n\t}",
"private void resetBoard() {\r\n\t\tboard.removeAll();\r\n\t\tboard.revalidate();\r\n\t\tboard.repaint();\r\n\t\tboard.setBackground(Color.WHITE);\r\n\r\n\t\t// Reset filled\r\n\t\tfilled = new boolean[length][length];\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tfor (int y = 0; y < length; y++) {\r\n\t\t\t\tfilled[x][y] = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tupdateBoard();\r\n\t}",
"public void resetWall() {\r\n\tbustedWall = false;\r\n}",
"public static void clearBoard() {\n\t\tfor(int i = 0; i < display.length; i++){\n\t\t\tfor(int j = 0; j < display[i].length; j++){\n\t\t\t\tdisplay[i][j].setSelected(false);\n\t\t\t\tdisplay[i][j].setIcon(DEFAULT);\n\t\t\t}\n\t\t}\t\n\t\t\n\t}",
"@Override\n protected void clear(JPanel panel){\n panel.removeAll();\n }",
"public abstract void clearRect(int x, int y, int width, int height);",
"void clearShapeMap();",
"public static void clearViewPort() {\n\t\tSensor.disposeAllSensors();\n\t\tGUIReferences.setConstructEnabled(true);\n\t\tTurnController.clearAll();\n\t\tGUIReferences.updateStatusBar();\n\t}",
"public void reset() {\n points.reset();\n paintPolygon = false;\n paintResult = false;\n repaint();\n }"
] | [
"0.79097366",
"0.69075227",
"0.69001555",
"0.68961567",
"0.6771356",
"0.67021817",
"0.66780937",
"0.6590715",
"0.6589354",
"0.6580011",
"0.6577567",
"0.6554548",
"0.6478112",
"0.64741516",
"0.6456599",
"0.6436621",
"0.64332646",
"0.6431394",
"0.64069074",
"0.64066565",
"0.63748413",
"0.63624895",
"0.63619226",
"0.6355612",
"0.63332516",
"0.6252356",
"0.6244421",
"0.6239135",
"0.6222522",
"0.6220828",
"0.6206715",
"0.6204192",
"0.61934704",
"0.6193388",
"0.6185615",
"0.6181255",
"0.6176077",
"0.61749077",
"0.6163514",
"0.6139109",
"0.61369103",
"0.61161375",
"0.60955477",
"0.6092209",
"0.6086406",
"0.6079328",
"0.6076195",
"0.6051474",
"0.6049042",
"0.6036681",
"0.6034883",
"0.60315555",
"0.6030172",
"0.6026865",
"0.60113114",
"0.6007611",
"0.5993011",
"0.5984507",
"0.59799325",
"0.5965634",
"0.59622407",
"0.59618586",
"0.59549487",
"0.5949377",
"0.5944443",
"0.5942947",
"0.59372085",
"0.59368074",
"0.59246695",
"0.59221685",
"0.5918935",
"0.59182745",
"0.59144825",
"0.5913349",
"0.59087175",
"0.59060633",
"0.5901111",
"0.59009975",
"0.58815205",
"0.5877043",
"0.5865919",
"0.58651924",
"0.585877",
"0.58569235",
"0.5853245",
"0.58521557",
"0.5851998",
"0.58494353",
"0.5848692",
"0.5845248",
"0.5844339",
"0.5844062",
"0.58338094",
"0.5820136",
"0.58177495",
"0.581751",
"0.5817346",
"0.5816509",
"0.5814467",
"0.5808783"
] | 0.7415386 | 1 |
TODO Autogenerated method stub | @Override
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Stop thread that insert new balls | public static void ThreadStop()
{
thread_running=false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop() {\n done=true;\n bridges.forEach(Bridge::stop);\n bridges.clear();\n }",
"public void removeBalls() {\r\n for (Ball ball : this.ballsList) {\r\n ball.removeFromGame(this);\r\n }\r\n this.ballsList.clear();\r\n }",
"void lostBall()\n {\n currentBall = null;\n }",
"private void brakeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_brakeActionPerformed\n\n roboLogic.brake();\n if (l.isRunning()) {\n l.stop();\n }\n if (r.isRunning()) {\n r.stop();\n }\n\n\n }",
"public void stop() {\n _running = false;\n }",
"public void stop(){\n running = false;\n }",
"public void arraiter() {\n \tthis.running = false;\n }",
"public void stop() {\r\n running = false;\r\n }",
"public void clearBalls();",
"public void stop() {\n running = false;\n }",
"public void stop()\n {\n running = false;\n }",
"public synchronized void stop() {\n this.running = false;\n }",
"public void stopPollingThread() {\n pool.shutdown();\n }",
"public synchronized void stop() {\n stopping = true;\n }",
"public void setDestroyThread() {\n \tSystem.out.println(\"Kill the threads\");\n \t\n \tfor (int i = 0; i < listAnimals.size(); i++) \n\t\t{\n\t\t\tlistAnimals.get(i).setDirty(false);\n\t\t\tlistAnimals.get(i).killAmimalThread();\n\t\t\trepaint();\n\t\t}\n \t\n \ttry \n\t\t{\n\t\t\tThread.sleep((long)100);\n\t\t} catch (InterruptedException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n \t\n \tisAlive = false;\n \ttry \n\t\t{\n\t\t\tThread.sleep((long)150);\n\t\t} catch (InterruptedException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n \tlistAnimals.clear();\n }",
"public void terminate(){\n tState.stop();\n tMovement.stop();\n collision.remove(this); \n }",
"public final void stop() {\n running = false;\n \n \n\n }",
"private void playRound(GOval ball) {\n int bricksOnStage = NBRICK_ROWS * NBRICKS_PER_ROW;\n\n while(true) {\n bricksOnStage = collideObject(ball, bricksOnStage);\n collideStageLimits(ball);\n if (hasMissPaddle(ball)) {\n showLabel(\"BUSTED\", Color.BLACK);\n clearStage(ball);\n break;\n }\n ball.move(vx, vy);\n //println(vx + \" \" + vy);\n if (isBricksLeft(bricksOnStage)){\n showLabel(\"YOU WON!\", Color.red);\n clearStage(ball);\n break;\n }\n pause(PAUSE_TIME);\n }\n }",
"public void stop()\n\t{\n\t\trunning = false;\n\t}",
"private void stopSpawning()\n {\n if (spawnThread != null)\n {\n Bukkit.getServer().getScheduler().cancelTask(spawnThread.getTaskId());\n Bukkit.getServer().getScheduler().cancelTask(spawnTaskId);\n Bukkit.getServer().getScheduler().cancelTask(sheepTaskId);\n spawnTaskId = -1;\n sheepTaskId = -1;\n spawnThread = null;\n currentWave = null;\n }\n else System.out.println(\"--------- THE SPAWNTHREAD IS NULL! ----------\");\n \n // Restore spawn flags.\n MAUtils.setSpawnFlags(plugin, world, spawnMonsters, allowMonsters, allowAnimals);\n }",
"@Override\n public void run() {\n try {\n while (true) {\n /*---------------For Moving ball-----------------*/\n if (isPause) {\n synchronized (this) {\n\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (xcircle > 1900) {\n i = (int) ((Math.random() * 1000) % 30);\n flag2 = 1;\n\n }\n if (xcircle < 20) {\n i = (int) ((Math.random() * 1000) % 30);\n flag2 = 0;\n }\n if (ycircle >= 972) {\n /*i=(int) ((Math.random()*1000)%30);\n\t\t\t\tflag=0;*/\n if (xcircle > x && xcircle < x + 200) {\n /* ball hits bar !!! well done */\n i = (int) ((Math.random() * 1000) % 30);\n flag = 0;\n Score += 10;\n } else {\n System.out.println(\"XCircle = \" + xcircle + \" and xbar = \" + x);\n System.out.println(\"Sorry ... You lose !!!\");\n new ScoreScreen(Score);\n break;\n }\n }\n if (ycircle < 60) {\n i = (int) ((Math.random() * 1000) % 30);\n flag = 1;\n }\n if (flag2 == 0) {\n xcircle += i;\n } else {\n xcircle -= i;\n }\n if (flag == 0) {\n ycircle -= 30 - i;\n } else {\n ycircle += 30 - i;\n }\n\n /*---------------For Moving bottom bar--------------\n\t\t\tif(x<30)\n\t\t\t{\n\t\t\t\tflag3=0;\n\t\t\t}\n\t\t\tif(x>1700){\n\t\t\t\tflag3=1;\n\t\t\t}\n\t\t\tif(flag3==0)\n\t\t\t{\n\t\t\t\tx+=10;\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx-=10;\t\n\t\t\t}*/\n Thread.sleep(50);\n\n repaint();\n }\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public void ballVSbrick(Ball bb, Brick br) {\n Rectangle bb_box = new Rectangle(bb.getX(), bb.getY(), bb.getWidth(), bb.getHeight());\r\n Rectangle br_box = new Rectangle(br.getX(), br.getY(), br.getWidth(), br.getHeight());\r\n\r\n if (bb_box.intersects(br_box)) {\r\n //collision\r\n if (bb.getVX() < 0 && bb.getVY() < 0) {//-x,-y\r\n bb.setVY(bb.getVY() * -1);\r\n //remove brick\r\n //totalBricks.get(i)\r\n }//Inconsistent with collision\r\n else if (bb.getVX() > 0 && (bb.getVY() > 0)) {//+x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//works\r\n else if (bb.getVX() < 0 && (bb.getVY() > 0)) {//-x,+y\r\n bb.setVY(bb.getVY() * -1);\r\n }//also inconsistent with collision\r\n else if(bb.getVX()>0 && bb.getVY()<0){//+x,-y\r\n bb.setVY(bb.getVY()*-1);\r\n }\r\n }\r\n if (totalBricks.isEmpty()) {\r\n this.setCleared(true);\r\n }\r\n //when the ball hits a brick\r\n //remove the brick\r\n //update velocity of ball\r\n\r\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\twhile(this.getIs_alive()) {\n\t\t\t\tThread.sleep(40);\n\t\t\t\tfor (Zombie zombie : this.controller.getZombies()) {\n\t\t\t\t\tif (this.getPosY() == zombie.getPosY() &&\n\t\t\t\t\t\t\tthis.getPosX() * 81 + 81 + 81 +150 > zombie.getPosX()\n\t\t\t\t\t\t\t&& this.getPosX() * 150 < zombie.getPosX()) {\n\t\t\t\t\t\tif (this.getIs_alive()) {\n\t\t\t\t\t\t\tthis.setImage(Toolkit.getDefaultToolkit().createImage(\"plantsVsZombieMaterials/images/Plants/Squash/SquashR.gif\"));\n\t\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t\t\tthis.setImage(Toolkit.getDefaultToolkit().createImage(\"plantsVsZombieMaterials/images/Plants/Squash/SquashAttack.gif\"));\n\t\t\t\t\t\t\tThread.sleep(1200);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.controller.getZombies().remove(zombie);\n\t\t\t\t\t\tzombie.setIs_alive(false);\n\t\t\t\t\t\tthis.setIs_alive(false);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.controller.getPlants().remove(this);\n\t}",
"@Override\n public void run() {\n System.out.println(\"Cleaning room\");\n numJunkPiles = 0;\n }",
"public void stop() {\n\t\trunning = false;\n\t\tfor (ArionumHasher hasher : hashers) {\n\t\t\thasher.setForceStop(true);\n\t\t}\n\n\t\tthreadCollection.clear();\n\t\thashers.clear();\n\t}",
"private void closeThread() {\n running = false;\n }",
"private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}",
"public void stop() {\n clockThread = null;\n }",
"public void stop() {\n\t\tthis.stopTime = System.nanoTime();\n\t\tthis.running = false;\n\t}",
"public void pleaseStop()\n {\n\t this.doorgaan_thread = false;\n\t this.doorgaan_wheel = true;\n draad = null; // waarom? \n }",
"public void stopRinging();",
"public void stop() {\n stop = true;\n }",
"public static void main(String[] args) {\n SwingUtilities.invokeLater(() -> {\n JFrame window = new JFrame(\"I Got Balls!\");\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n MyPanel panel = new MyPanel();\n window.add(panel);\n window.setLayout(new FlowLayout());\n create = new JButton(\"One more ball!\");\n create.addActionListener(e -> {\n balls.add(new Ball(panel));\n balls.get(balls.size() - 1).start();\n if (!destroy.isEnabled()) destroy.setEnabled(true);\n window.repaint();\n });\n window.add(create);\n\n destroy = new JButton(\"Stop the ball!\");\n destroy.setEnabled(false);\n destroy.addActionListener(e -> {\n balls.get(balls.size() - 1).stopTheBall();\n balls.remove(balls.size() - 1);\n if (balls.size() == 0) destroy.setEnabled(false);\n window.repaint();\n });\n window.add(destroy);\n\n window.pack();\n window.setVisible(true);\n });\n }",
"public void stop(){\n stop = true;\n }",
"boolean stopThread();",
"@Override\n\tpublic void action() {\n\t if (firingBall.getY() + firingBall.getRadius() < this.y) { \n\t //deactivate absorber locally and in GameBoard\n\t firingBall = null;\n\t gb.removeFromActiveList(this);\n\t }\n\t}",
"public void stop() {\n thread = null;\n }",
"public synchronized void stop(){\n\t\tthis.running = false;\n\t\ttry {\n\t\t\tthis.thread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void run()\n {\n List<Entity> ms = new LinkedList<Entity>(monsters);\n for (Entity e : ms)\n if (e.isDead())\n monsters.remove(e);\n \n // Compare the current size with the previous size.\n if (monsters.size() < spawnThread.getPreviousSize() || spawnThread.getPreviousSize() == 0 || bossWave != null)\n {\n resetIdleTimer();\n return;\n }\n \n // Clear all player inventories, and \"kill\" all players.\n List<Player> ps = new LinkedList<Player>(arenaPlayers);\n for (Player p : ps)\n {\n MAUtils.clearInventory(p);\n MAUtils.tellPlayer(p, Msg.FORCE_END_IDLE);\n playerDeath(p);\n }\n }",
"public void resetBalls() {\n\t\tBALL_LIST.clear();\n\t}",
"@Override\n public void stop() {\n animatorThread = null;\n\n //Get rid of the objects necessary for double buffering.\n offGraphics = null;\n offImage = null;\n }",
"public void kill(){\n agent.kill();\n killed=true;\n LinkedList<Object> list = new LinkedList<>();\n queue.add(list);\n }",
"@Override\n public void run() {\n stop();\n }",
"public void stopSpinning()\n {\n scheduler.shutdown();\n startupLock.lock();\n spinning = false;\n }",
"public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}",
"public void stopRunning() {\n try {\n _running = false;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void run()\r\n {\r\n // Check that the current thread is still our pongAnimator.\r\n while (Thread.currentThread() == breakoutAnimator)\r\n {\r\n do\r\n {\r\n if (!paused)\r\n {\r\n System.out.println(paused);\r\n /******************************************************\r\n * CODE TO BE ADDED BY YOU\r\n *****************************************************/\r\n // System.out.println(\"##########################\");\r\n // System.out.println(paddle.toString() + \"\\n\" +\r\n // ball.toString());\r\n // if ball is within the y of the paddle\r\n // System.out.println(lives + \", \" + list.size());\r\n if (ball.getBottomLeftPoint().getY() >= paddle.getTopLeftPoint().getY()\r\n && ball.getBottomLeftPoint().getY() <= paddle.getBottomLeftPoint().getY())\r\n {\r\n if (ball.getBottomRightPoint().getX() > paddle.getTopLeftPoint().getX()\r\n && ball.getBottomLeftPoint().getX() < paddle.getTopRightPoint().getX())\r\n {\r\n ball.setY((int) paddle.getTopRightPoint().getY() - BALL_DIAMETER + 1);\r\n ball.changeVerticalDirection();\r\n }// end if\r\n }// end if\r\n\r\n // if ball hits sides of screen\r\n if (ball.getTopLeftPoint().getX() <= 0 || ball.getTopRightPoint().getX() >= this.getWidth())\r\n ball.changeHorizontalDirection();\r\n\r\n // if ball hits top of screen\r\n if (ball.getTopLeftPoint().getY() <= 0)\r\n ball.changeVerticalDirection();\r\n\r\n // if the ball reaches the bottom\r\n if (ball.getTopLeftPoint().getY() > this.getHeight())\r\n {\r\n lives--;\r\n if (lives == 0)\r\n gameOver = true;\r\n ball.setX(this.getWidth() / 2 - BALL_DIAMETER / 2);\r\n ball.setY(this.getHeight() / 2 - BALL_DIAMETER / 2);\r\n }\r\n\r\n for (int i = 0; i < list.size(); i++)\r\n {\r\n hit = false;\r\n if (((AnimatedShape) list.get(i)).getShape().contains(ball.getLeftSide())\r\n || ((AnimatedShape) list.get(i)).getShape().contains(ball.getRightSide()))\r\n {\r\n ball.changeHorizontalDirection();\r\n hit = true;\r\n }\r\n if (((AnimatedShape) list.get(i)).getShape().contains(ball.getTopSide())\r\n || ((AnimatedShape) list.get(i)).getShape().contains(ball.getBottomSide()))\r\n {\r\n ball.changeVerticalDirection();\r\n hit = true;\r\n }\r\n\r\n if (hit)\r\n {\r\n list.remove(i);\r\n hit = false;\r\n }\r\n }\r\n\r\n // test to see if game is won\r\n if (list.size() == 0)\r\n {\r\n gameWon = true;\r\n gameOver = true;\r\n }\r\n\r\n ball.moveShape();\r\n\r\n repaint();\r\n\r\n // Have the Thread sleep for 1 second at a time.\r\n try\r\n {\r\n Thread.sleep(delay);\r\n }\r\n catch (InterruptedException e)\r\n {\r\n break;\r\n }\r\n }\r\n\r\n }\r\n while (!onMenu);\r\n }\r\n }",
"public void run() {\n\t\t// Set the window to a nice size for our game\n\t\tsetSize(APPLICATION_WIDTH, APPLICATION_HEIGHT);\n\t\tdrawWall();\n\t\tGRect paddle = addPaddle();\n\t\tGOval ball = makeBall();\n\t\t//pause(500);\n\t\tbounceBall(ball);\n\t\tGObject collider = checkCollision(ball);\n\t\tif (collider == null) {\n\t\t\t//continue;\n\t\t}\n\t\telse if (collider == paddle) {\n\t\t\t\n\t\t}\n\t\telse if (collider == brick) {\n\t\t\tremove(brick);\n\t\t}\n\t\t\n\t}",
"public void stop()\r\n {\r\n breakoutAnimator = null;\r\n }",
"@Override\n public void run() {\n final long runtime = (System.currentTimeMillis() - mTimeStarted) / 1000;\n Log.d(TAG, \"Terminating beacon burst after \" + runtime + \" seconds.\");\n\n // clear message queue\n mHandler.removeCallbacksAndMessages(null);\n\n // update state\n mWifiBeaconingState = WifiBeaconingState.DISABLING;\n //TODO mBtBeaconingState = BtBeaconingState.DISABLING;\n\n // stop sending beacons\n mBeaconingManager.stopBeaconSenders();\n\n // if there are no locks, restore network to previous state\n if (!mBeaconingManager.isInternetLocked() && !mBeaconingManager.isWifiConnectionLocked()) {\n restoreNetworks();\n }\n\n // quit looper\n mHandler.getLooper().quit();\n mHandler = null;\n\n // notify internet callbacks\n mBeaconingManager.notifyInternetCallbacks();\n\n if (!aborted) {\n // we are finishing the beaconing period normally, notify BeaconingManager\n mBeaconingManager.onBeaconingIntervalFinished(mBeaconingId);\n }\n }",
"public final void stopRunning() {\n\t\t_running = false;\n\t}",
"@Override\n public void run() {\n int combCnt = 0;\n while (rmNumber.size() != 0) {\n\n final int cmc = rmNumber.size();\n final int combc = combCnt;\n final ExecutorService service = Executors.newFixedThreadPool(5);\n final Thread thread = new Thread(() -> changeLabel(lb, combc, combc + cmc));\n service.execute(thread);\n service.shutdown();\n\n for (int r = 0; r < rmNumber.size(); r++) {\n for (int rn = 0; rn < rmGroup.get(rmNumber.get(r)).size(); rn++) {\n int x = rmGroup.get(rmNumber.get(r)).get(rn).x;\n int y = rmGroup.get(rmNumber.get(r)).get(rn).y;\n imageBall[y][x].setImage(null);\n\n }\n try {\n int sc = (combCnt + r>=combsoundsNum-1)?combsoundsNum-1: combCnt + r;\n rmDropMp[sc].play();\n Thread.sleep(500);\n rmDropMp[sc].stop();\n } catch (Exception e) {\n // TODO: handle exception\n }\n }\n\n for (int j = 0; j < field_width; j++) {// 落とす.\n int d = field_height - 1;\n for (int i = field_height - 2; i >= 0; i--) {\n if (imageBall[d][j].getImage() == null) {\n if (imageBall[i][j].getImage() != null) {\n imageBall[d][j].setImage(imageBall[i][j].getImage());\n imageBall[i][j].setImage(null);\n d--;\n }\n } else {\n d--;\n }\n }\n }\n try {\n Thread.sleep(100);\n } catch (Exception e) {\n // TODO: handle exception\n }\n for (int i = 0; i < field_height; i++) {\n for (int j = 0; j < field_width; j++) {\n if (imageBall[i][j].getImage() == null) {\n imageBall[i][j].setImage(imgBalls[(int) (Math.random() * imageSize)]);\n }\n }\n }\n try {\n Thread.sleep(300);\n } catch (Exception e) {\n // TODO: handle exception\n }\n combCnt += rmNumber.size();\n rmGroup.clear();\n rmNumber.clear();\n if (checkBall(rmNumber, rmGroup) != 0)\n continue;\n // break;\n\n for (int r = 0; r < combCnt; r++) {\n try {\n pumpedUpMp.play();\n Thread.sleep(500);\n pumpedUpMp.stop();\n } catch (Exception e) {\n // TODO: handle exception\n }\n }\n break;\n\n }\n\n }",
"public void endMove()\n\t{\n\t\tBMTron.delayed += 50;\n\t\tif (delayed == 2000)\n\t\t{\n\t\t\tfor (int i = 0; i < 5; i++) \n\t\t\t{\n\t\t\t\tif (players[i].exist)\n\t\t\t\t{\n\t\t\t\t\tmove[i].interrupt();\n\t\t\t\t}\n\t\t\t}\n\t\t\trepaint.interrupt();\n\t\t\tBMTron.frame.setVisible(false);\n\t\t\tSelection.frame.setVisible(true);\n\t\t\tdelayed = 0;\n\t\t}\n\t}",
"public synchronized void stop() {\n\t\tif(!isRunning) return; //If the game is stopped, exit method\n\t\tisRunning = false; //Set boolean to false to show that the game is no longer running\n\t\t//Attempt to join thread (close the threads, prevent memory leaks)\n\t\ttry {\n\t\t\tthread.join();\n\t\t}\n\t\t//If there is an error, print the stack trace for debugging\n\t\tcatch(InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void removeBall(Ball otherBall) {\n\t\tBALL_LIST.remove(otherBall);\n\t\tIterator<Object> ballIterate = SPRITE_LIST.iterator();\n\t\twhile (ballIterate.hasNext()) {\n\t\t\tObject objBall = ballIterate.next();\n\t\t\tif (objBall instanceof Ball) {\n\t\t\t\tBall castBall = (Ball) objBall;\n\t\t\t\tif (castBall.equals(otherBall)) {\n\t\t\t\t\tballIterate.remove();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void stop() {\n\t\trunflag.set(false);\n\n\t\twhile (worker.isAlive()) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(10); // Wait until it stops\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void stop() {\n activePickups = new ArrayList<Pickup>();\n\n fogLightsTimer.cancel();\n fogLightsTimer.purge();\n\n slowMotionTimer.cancel();\n slowMotionTimer.purge();\n\n invincibilityTimer.cancel();\n invincibilityTimer.purge();\n\n coinTimer.cancel();\n coinTimer.purge();\n }",
"private final void kill() {\n\t\tgrown=false;\t\t\n\t}",
"public synchronized void stop() {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tfor (LoopThread l : thread) {\n\t\t\tl.finnish();\n\t\t}\n\t\tint activeCount;\n\t\tdo{\n\t\t\tactiveCount = 0;\n\t\t\tfor(LoopThread l : thread){\n\t\t\t\tif(l.isAlive()){\n\t\t\t\t\tactiveCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (activeCount > 0);\n\t\t\n\t}",
"public void run() {\n\t\tball1 = new Ball(getWidth(), getHeight());\n\t\tball2 = new Ball(getWidth(), getHeight());\n\t\tball3 = new Ball(getWidth(), getHeight());\n\t\twhile (true)\t{\t\n\t\t\tball1.heartbeat(getWidth(), getHeight());\n\t\t\tball2.heartbeat(getWidth(), getHeight());\n\t\t\tball3.heartbeat(getWidth(), getHeight());\n\t\t\tpause(DELAY);\n\t\t}\t\t\n\t}",
"public void stop() {}",
"private void stop()\n {\n if(running)\n {\n scheduledExecutorService.shutdownNow();\n running = false;\n }\n }",
"private synchronized void stop(){\n this.go = false;\n }",
"public void Stop() {\r\n\t\t\r\n\t\tthread = null;\r\n\t}",
"public void kill() { _isAlive = false; }",
"public void play() {\n\t\t\n\t\tThread\tgameThread = new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\twhile(!isGameOver()) {\n\t\t\t\t\t\t\n\t\t\t\t\tif (pause) {\n\t\t\t\t\t\tsynchronized (brick) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tbrick.wait();\n\t\t\t\t\t\t\t\t// pause = true;\n\t\t\t\t\t\t\t} catch (InterruptedException 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}\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (collision()) {\n\t\t\t\t\t\t\trecordTheCoordinate();\n\t\t\t\t\t\t\tcheckFullRow();\n\t\t\t\t\t\t\tbrick = generateBricks();\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboolean isDown = brick.goDown(brickgc, gameBoard);\n\t\t\t\t\t\tif(!isDown) {\n\t\t\t\t\t\t\tSystem.out.println(\"******* the brick got bottom now start new round\");\n\t\t\t\t\t\t\trecordTheCoordinate();\n\t\t\t\t\t\t\tcheckFullRow();\n\t\t\t\t\t\t\tbrick = generateBricks();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t});\n\t\tgameThread.start();\n\t}",
"public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }",
"public synchronized void stop() {\n try {\n thread.join();\n running = false;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"void removeBall(Coordinates at);",
"@Override\n\tpublic void run() {\n\t\twhile(flag){\n\t\t\tConnPool conn=new ConnPool();\n\t\t\tResultSet rs;\n\t\t\tset=new HashSet<LEDUtils>();\n\t\t\ttry{\n\t\t\t\tString sql =\"select * from tb_LEDnotice\";\n\t\t\t\t rs =conn.select(sql);\n\t\t\t\t\n\t\t\t\t while(rs.next()){\n\t\t\t\t\t LEDUtils led=new LEDUtils();\n\t\t\t\t\tString roomID=rs.getString(\"rooimid\");\n\t\t\t\t\tString type=rs.getString(\"type\");\n\t\t\t\t\tString typehead=rs.getString(\"typehead\");\n\t\t\t\t\tled.setRoomid(roomID);\n\t\t\t\t\tled.setType(type);\n\t\t\t\t\tled.setTypehead(typehead);\n\t\t\t\t\tset.add(led);\n\t\t\t\t }\n\t\t\t\t conn.update(\"truncate table tb_LEDnotice \");\n\t\t\t\t if(setlength!=set.size()){\n\t\t\t\t\t setlength=set.size();\n\t\t\t\t\t for(LEDUtils s:set){\n\t\t\t\t\t\ttopic=s.getRoomid();\n\t\t\t\t\t\tpayload=s.getTypehead()+\"*\";\n\t\t\t\t\t\topenDoor(\"3401_dis\",payload);\n\t\t\t\t\t\topenDoor(\"3401_dis\",payload);\n\t\t\t\t\t\topenDoor(\"3401_dis\",payload);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t\n\t\t\t\t\n\t\t\t}catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te.printStackTrace();\n\t\t\t}finally{\n\t\t\t\tConnPool.closeConnection();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"private void stop() {\r\n\t\tif (!running)\r\n\t\t\treturn;\r\n\t\trunning = false;\r\n\t\ttry {\r\n\t\t\tthread.join();//ends thread to close program correctly\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);//closes canvas\r\n\t\t}\r\n\t}",
"public void stopAndRemove() {\n\t\tstartMoveDownTimer.stop();\n\t\tmoveDownTimer.stop();\n\t}",
"public void terminate(){\n running = false;\n }",
"private void tryToKillStuff(final Bomb b) {\n \t\tfor (Bomb bomb : bombs)\n \t\t\tif (bomb != b && !bomb.isCurrentlyExploding())\n \t\t\t\tif (eac.isInExplosionArea(b, bomb)) {\n \t\t\t\t\tbomb.goBomf();\n \t\t\t\t}\n \n \t\tif (eac.isInExplosionArea(b, bman.get(0))) {\n \t\t\talive = false;\n \t\t\tgui.lost();\n \t\t}\n \t}",
"public void stopGame()\r\n\t{\r\n\t\tthis.inProgress = false;\r\n\t\tif(this.round == 0)\r\n\t\t{\r\n\t\t\t++this.round;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void run(){\n\t\twhile (PACE < 30){\n\t\t\tSystem.out.println(getName() + \": \" + PACE);\n\n\t\t\ttry {\n\t\t\t\tsleep(DELAY);\n\t\t\t\tPACE += SPEED;\n\t\t\t\t\n\t\t\t\tif (PACE >= 30){\n\t\t\t\t\tLAP+=1;\n\t\t\t\t\tPACE -=30;\n\t\t\t\t\t\n\t\t\t\t\t//3 laps indicate finishline\n\t\t\t\t\tif (LAP == 3){\n\t\t\t\t\t\tmysecondArray = place.getArray();\n\t\t\t\t\t\tmysecondArray.add(this);\n\t\t\t\t\t\tplace.setArray(mysecondArray);\n\t\t\t\t\t\tSystem.out.println(getName() + \" is finished at place \" + mysecondArray.size());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(getName() + \": Lap \" + LAP);\n\n\t\t\t\t}\t\t\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}//end of while\n\t}",
"public void stop() {\n\t\tthis.stopper = true;\n\t}",
"public void stop()\r\n\t{\r\n\t\tdoStop = true;\r\n\t}",
"private void stop(){\n isRunning = false;\n try{\n thread.join();\n }\n catch(InterruptedException e){\n e.printStackTrace();\n }\n }",
"public void startGame() {\n\t\t\n\t\tmyCanvas.setVisible(true);\n\n\t\t// draw the ground\n\t\tmyCanvas.drawLine(50, GROUNDLINE, 550, GROUNDLINE);\n\n\t\t// B�lle erzeugen\n\t\tvar r = new Random();\n\t\t// Aufgabe 6: ein Ball ist nicht genug, oder?\n\t\t// Erweitern Sie die Erzeugung mit Random Zahlen und generieren Sie B�lle in einer Schleife\n\t\tfor(var i = 0; i < 5; ++i) {\n\t\t\tballs.add( new BouncingBall(20 + r.nextInt(80), 100, 20 + r.nextInt(60), new Color(r.nextInt(200)+56,r.nextInt(256),r.nextInt(256)), GROUNDLINE, myCanvas) );\n\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t// draw every ball in the list\n\t\tfor (BouncingBall ball : balls) {\n\t\t\tball.draw();\n\t\t}\t\t\n\t\t\n\t\t// make them bounce\n\t\tvar finished = false;\n\t\twhile (!finished) {\n\t\t\tmyCanvas.wait(50); // small delay\n\t\t\t\n\t\t\t// move every ball in the list\n\t\t\tfor (BouncingBall ball : balls) {\n\t\t\t\tball.move();\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// stop if a ball has travelled a certain distance on x axis\n\t\t\tfor (BouncingBall ball : balls) {\t\t\t\t\n\t\t\t\tif (ball.getXPosition() >= 550) {\n\t\t\t\t\tfinished = true;\n\t\t\t\t\t// Aufgabe 5: Gameover\n\t\t\t\t\t// ...\n\t\t\t\t\tvar image = new ImageIcon(\"src/app/images/gameover.jpg\").getImage();\n\t\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// Aufgabe 3: Alle B�lle getroffen?\n\t\t\tif (balls.size()==0) {\n\t\t\t\tfinished = true;\n\t\t\t\tvar image = new ImageIcon(\"src/app/images/gewonnen.jpg\").getImage();\n\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t// Bild ausgeben, Gewonnen\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// erase every ball from the canvas\n\t\tfor (var ball : balls) {\n\t\t\tball.erase();\n\t\t}\t\t\n\t}",
"static void stop() {\n flag = 0;\n }",
"public synchronized void stopGame(){\n \t\tif (running){\n \t\t\trunning = false;\n \t\t}\n \t}",
"public DeleteThread(LeakyBucket bkt) {\n this.bkt1 = bkt; //create a reference\n Thread deleteThread = new Thread(this);\n deleteThread.start();\n }",
"private void stopThreadByRunnable() {\n if (customRunnable != null) {\n customRunnable.killRunnable();\n }\n }",
"public void stop() {\r\n _keepGoing = false;\r\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tisAlive = false;\r\n\t\t\t}",
"public void stop()\n {\n if ( this.threadRunning.get() )\n {\n this.threadRunning.set(false);\n }\n }",
"private void resetForNextTurn() {\n\t\tremove(ball);\n\t\tdrawBall();\n\t\tsetInitialBallVelocity();\n\t\tpaddleCollisionCount = 0;\n\t\tpause(2000); \t\t\t\t\n }",
"private void collideWithBall() {\n die();\n }",
"public void throwBall() {\r\n\t\tthis.move();\r\n\t\tballCount--;\r\n\r\n\t}",
"WorkoutBatch end(boolean wasInVehicle);",
"public synchronized void stop() {\n isRunning = false;\n try {\n thread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void run() {\n if (player.canKickBall(fsmAI.ball)) {\n player.stateMachine.changeState(new KickBall(player, fsmAI));\n return;\n }\n \n Player nearestToBall = fsmAI.myTeam.getNearestPlayerToBall();\n if (player != nearestToBall && !(nearestToBall instanceof GoalKeeper)) {\n player.stateMachine.changeState(new MoveToHomeRegion(player, fsmAI));\n MessageDispatcher.getInstance().sendMessage(new PursueBallMessage(), nearestToBall);\n }\n }",
"public void stop(){\n quit = true;\n }",
"@Override\n public boolean isFinished() {\n if (numBalls == -1) {\n return false;\n } else {\n return ballsShot >= numBalls;\n }\n }",
"public void stopping();",
"public void stop() {\n endTime = System.currentTimeMillis();\n }",
"public void stopBurst() {\n this.mHasBurstStoped = true;\n Log.d(TAG, \"stopBurst\");\n this.mAppController.setShutterEnabled(true);\n int receivedCount = this.mReceivedBurstNum;\n this.mReceivedBurstNum = 0;\n this.mHandler.removeMessages(3);\n updateParametersFlashMode();\n clearFocusWithoutChangingState();\n if (this.mCameraState == 8 || this.mCameraState == 9 || this.mCameraState == 10) {\n abortOptimizedBurstShot();\n Log.w(TAG, \"parameters post update\");\n if (receivedCount != 0) {\n Tag tag = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Burst current burst num is \");\n stringBuilder.append(this.mBurstNumForOneSingleBurst);\n Log.w(tag, stringBuilder.toString());\n if (this.mBurstShotCheckQueue.setCapacity(receivedCount)) {\n showSavingHint(receivedCount);\n }\n this.mHandler.post(new Runnable() {\n public void run() {\n PhotoModule.this.mUI.updateBurstCount(0);\n }\n });\n }\n }\n setCameraState(1);\n HelpTipsManager helpTipsManager = this.mAppController.getHelpTipsManager();\n if (!(this.mBurstShotNotifyHelpTip || helpTipsManager == null)) {\n helpTipsManager.onBurstShotResponse();\n this.mBurstShotNotifyHelpTip = true;\n }\n this.mHandler.removeMessages(8);\n Message msg = Message.obtain();\n msg.what = 8;\n this.mHandler.sendMessageDelayed(msg, 500);\n }",
"public void stop() {\n setClosedLoopControl(false);\n }",
"private void endBreak(){\n\tDo(name + \" is back from break!\");\n\thost.msgChangeWorkStatus(this, true);\n\tworking = true;\n\tonBreak = false;\n\tstartedBreak = false;\n\n\t//Commented out for gui\n\t//startBreakTimer(15000);\n }"
] | [
"0.6023518",
"0.59368914",
"0.5879563",
"0.58443815",
"0.5774273",
"0.577063",
"0.5770246",
"0.57580984",
"0.5738023",
"0.5722532",
"0.5703196",
"0.5683861",
"0.56812835",
"0.5668489",
"0.565079",
"0.563043",
"0.56235254",
"0.5620827",
"0.56126463",
"0.55914795",
"0.55693334",
"0.55532753",
"0.5552313",
"0.5547308",
"0.5545281",
"0.55452",
"0.5541104",
"0.55211455",
"0.5507444",
"0.5505373",
"0.5503569",
"0.5502514",
"0.5500487",
"0.54968613",
"0.5487296",
"0.54848856",
"0.5482874",
"0.5475688",
"0.5472365",
"0.5443974",
"0.5432988",
"0.5428003",
"0.54248965",
"0.54202914",
"0.54152745",
"0.5410713",
"0.54098886",
"0.54084045",
"0.5402279",
"0.53995866",
"0.53995335",
"0.539479",
"0.53936917",
"0.5386619",
"0.53795546",
"0.537076",
"0.5368945",
"0.5366882",
"0.5366029",
"0.5364897",
"0.5353202",
"0.5353009",
"0.53524727",
"0.5350732",
"0.5350223",
"0.5337889",
"0.53345454",
"0.5331385",
"0.53200436",
"0.531972",
"0.5317938",
"0.5314737",
"0.53144455",
"0.5314228",
"0.53102416",
"0.53093714",
"0.5304223",
"0.5299786",
"0.5299763",
"0.5295325",
"0.5290264",
"0.52848476",
"0.527686",
"0.5272612",
"0.52686507",
"0.5257238",
"0.5253036",
"0.52496016",
"0.52490175",
"0.52468413",
"0.5246405",
"0.5245087",
"0.52449524",
"0.5239425",
"0.5238124",
"0.5230334",
"0.5226251",
"0.5225778",
"0.52177286",
"0.521509"
] | 0.5486388 | 35 |
Start thread that insert new balls | public void ThreadStart()
{
thread_running=true;
NewBallTheard.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n\tprivate void insert(Ball ball) throws Exception {\n\t\tBallService ballService = new BallService();\n\t\tballService.insert(ball);\n\t}",
"public void createBalls() {\n // add the required amount of balls according to the levelinfo.\n for (int i = 0; i < this.levelInfo.numberOfBalls(); i++) {\n Ball ball = new Ball(new Point(400, 580), 5, java.awt.Color.WHITE);\n // let the ball know the frame limits.\n ball.updateFrame(this.upper, this.lower, this.right, this.left);\n // let the ball know the collidables.\n ball.setGameEnvironment(this.environment);\n // use the velocity from the velocity list of levelinfo.\n Velocity v = this.levelInfo.initialBallVelocities().get(i);\n ball.setVelocity(v);\n // add the ball to the game.\n ball.addToGame(this);\n // increase the ball counter by 1.\n this.ballCounter.increase(1);\n }\n }",
"public static void addBalls() {\n\t\tfor (int i = 0; i < numberOfBalls; i++) {\n\t\t\tPanel.balls.add(new Ball());\n\t\t}\n\t}",
"public void run() {\n\t\tball1 = new Ball(getWidth(), getHeight());\n\t\tball2 = new Ball(getWidth(), getHeight());\n\t\tball3 = new Ball(getWidth(), getHeight());\n\t\twhile (true)\t{\t\n\t\t\tball1.heartbeat(getWidth(), getHeight());\n\t\t\tball2.heartbeat(getWidth(), getHeight());\n\t\t\tball3.heartbeat(getWidth(), getHeight());\n\t\t\tpause(DELAY);\n\t\t}\t\t\n\t}",
"public void run() {\n\n\t\tGTurtle Turtle = new GTurtle(0,0);\n\t\tdouble height = getHeight() - Turtle.getHeight();\n\t\tdouble middle = getWidth()/ 2;\n\t\tdouble startingX = (middle - (TURTLES_IN_BASE * (double) (Turtle.getWidth() / 2)));\n\n\t\t// for loop used; one for the no. of layers, one for bricks in layers.\n\t\t// the second loop decreases by one each layer.\n\t\tfor (int i = 0; i < TURTLES_IN_BASE; i++) {\n\n\t\t\tfor (int j = 0; j <TURTLES_IN_BASE - i; j++) {\n\n\t\t\t\tTurtle.setLocation(startingX + (j * Turtle.getWidth()), height);\n\t\t\t\t\n\t\t\t\tadd(Turtle);\n\t\t\t\t// The bricks not displayed all at once\n\t\t\t\tpause(7);\n\n\t\t\t}\n\t\t\t// The height decreases by the brick height each layer\n\t\t\t// The bricks must move over by half a brick length each layer\n\t\t\theight -= Turtle.getHeight();\n\t\t\tstartingX += Turtle.getWidth()/ 2;\n\t\t\t\n\t\t}\n\n\t}",
"void addBallObject() {\n\t\tint ballObjectHeight = ScreenManager.getSizeFromPercentageOfWindowY((float) 10.0);\n\t\tint ballObjectWidth = ballObjectHeight;\n\t\t\n\t\t// Spawning BallObject on the racket\n\t\tint ballObjectX = (int) (racketObject.getX() + (racketObject.width/4.0));\n\t\tint ballObjectY = (int) racketObject.getY() - ballObjectHeight;\n\t\t\n\t\t// BallObject's mass\n\t\tfloat ballObjectMass = (float) 1.075;\n\t\t\n\t\t// Ball velocity X\n\t\tint ballObjectDistanceFromRacketX = -35*(racketObject.getCenterOfWidth() - mouseX);\n\t\tint ballObjectVelocityX = (int) ballObjectDistanceFromRacketX/ScreenManager.getWindowWidth();\n\t\t\n\t\t// Ball velocity Y\n\t\tint ballObjectDistanceFromRacketY = (int) (-35*((racketObject.getY() + racketObject.getHeight()) - mouseY));\n\t\tint ballObjectVelocityY = (int) ballObjectDistanceFromRacketY/ScreenManager.getWindowHeight();\n\t\t\n\t\tballObjects.add(new BallObject(ballObjectX, ballObjectY, ballObjectWidth, ballObjectHeight, ballObjectGravity, ballObjectMass, ballObjectVelocityX, ballObjectVelocityY));\n\t\t\n\t\t// Reduces the amount of time left by 5 seconds\n\t\tMainPanel.gameDuration -= 5;\n\t}",
"private void createBallsOnTopOfPaddle() {\r\n for (int i = 0; i < levelInformation.numberOfBalls(); i++) {\r\n Ball ball = new Ball((guiWidth / 2) - ((levelInformation.numberOfBalls() - 1) * ballRadius)\r\n + (i * (ballRadius * 2)), 550, ballRadius, Color.WHITE, environment);\r\n ball.setVelocity(levelInformation.initialBallVelocities().get(i));\r\n ball.addToGame(this);\r\n }\r\n ballCounter.increase(levelInformation.numberOfBalls());\r\n }",
"private void prepareBomb(int x, int y, GraphicsContext gc) {\n\t\t Bomb bomb = new Bomb(x, y);\n\t\t GameController.getCurrentMap().addEntity(bomb, x, y);\n\t\t Thread thread = new Thread(() -> {\n\t\t try {\n\t\t Thread.sleep(2000);\n\t\t Platform.runLater(new Runnable() {\n\n\t\t @Override\n\t\t public void run() {\n\t\t bomb.bomb();\n\t\t }\n\n\t\t });\n\t\t GameController.getCurrentMap().removeEntity(x, y);\n\t\t drawGameBoard(gc, index);\n\n\t\t // GameController.getCurrentMap().addEntity(bomb, x, y);\n\t\t } catch (InterruptedException e) {\n\t\t // TODO Auto-generated catch block\n\t\t e.printStackTrace();\n\t\t }\n\t\t });\n\t\t thread.start();\n\n\t}",
"private void startGame() {\n\t\ttimer = new Timer();\n\t\ttimer.scheduleAtFixedRate(new ScheduleTask(), 5, BreakoutBall.BALLSPEED);\n\t}",
"public void startGame() {\n\t\t\n\t\tmyCanvas.setVisible(true);\n\n\t\t// draw the ground\n\t\tmyCanvas.drawLine(50, GROUNDLINE, 550, GROUNDLINE);\n\n\t\t// B�lle erzeugen\n\t\tvar r = new Random();\n\t\t// Aufgabe 6: ein Ball ist nicht genug, oder?\n\t\t// Erweitern Sie die Erzeugung mit Random Zahlen und generieren Sie B�lle in einer Schleife\n\t\tfor(var i = 0; i < 5; ++i) {\n\t\t\tballs.add( new BouncingBall(20 + r.nextInt(80), 100, 20 + r.nextInt(60), new Color(r.nextInt(200)+56,r.nextInt(256),r.nextInt(256)), GROUNDLINE, myCanvas) );\n\t\t}\n\t\t\n\t\t\t\t\t\t\n\t\t// draw every ball in the list\n\t\tfor (BouncingBall ball : balls) {\n\t\t\tball.draw();\n\t\t}\t\t\n\t\t\n\t\t// make them bounce\n\t\tvar finished = false;\n\t\twhile (!finished) {\n\t\t\tmyCanvas.wait(50); // small delay\n\t\t\t\n\t\t\t// move every ball in the list\n\t\t\tfor (BouncingBall ball : balls) {\n\t\t\t\tball.move();\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// stop if a ball has travelled a certain distance on x axis\n\t\t\tfor (BouncingBall ball : balls) {\t\t\t\t\n\t\t\t\tif (ball.getXPosition() >= 550) {\n\t\t\t\t\tfinished = true;\n\t\t\t\t\t// Aufgabe 5: Gameover\n\t\t\t\t\t// ...\n\t\t\t\t\tvar image = new ImageIcon(\"src/app/images/gameover.jpg\").getImage();\n\t\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\t\n\t\t\t// Aufgabe 3: Alle B�lle getroffen?\n\t\t\tif (balls.size()==0) {\n\t\t\t\tfinished = true;\n\t\t\t\tvar image = new ImageIcon(\"src/app/images/gewonnen.jpg\").getImage();\n\t\t\t\tmyCanvas.drawImage(image, 340, 240);\n\t\t\t\t// Bild ausgeben, Gewonnen\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// erase every ball from the canvas\n\t\tfor (var ball : balls) {\n\t\t\tball.erase();\n\t\t}\t\t\n\t}",
"public static void spawnBunny(EntityBunny bunny){\n\t\tBUNNIES.add(bunny);\n\t}",
"public void intializeGridBall() {\n\t\tint incWidth = DEFUALT_WIDTH /15;\t\n\t\t\n\t\tfor(int i = 0;i<gridBall.length;i++) {\t\t\t\n\t\t\tfor(int j = 0;j < gridBall[i].length;j++) {\n\t\t\t\tPoint2D point= new Point2D.Float();\n\t\t\t\tpoint.setLocation((incWidth*i)+(incWidth/2),(incWidth*j)+(incWidth/2));\n\t\t\t\tColor c = getRandomColor();\n\t\t\t\tgridBall[i][j] = new Ball(c,point);\n\t\t\t}\n\t\t}\n\t}",
"public void play() {\n\t\t\n\t\tThread\tgameThread = new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\twhile(!isGameOver()) {\n\t\t\t\t\t\t\n\t\t\t\t\tif (pause) {\n\t\t\t\t\t\tsynchronized (brick) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tbrick.wait();\n\t\t\t\t\t\t\t\t// pause = true;\n\t\t\t\t\t\t\t} catch (InterruptedException 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}\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (collision()) {\n\t\t\t\t\t\t\trecordTheCoordinate();\n\t\t\t\t\t\t\tcheckFullRow();\n\t\t\t\t\t\t\tbrick = generateBricks();\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tboolean isDown = brick.goDown(brickgc, gameBoard);\n\t\t\t\t\t\tif(!isDown) {\n\t\t\t\t\t\t\tSystem.out.println(\"******* the brick got bottom now start new round\");\n\t\t\t\t\t\t\trecordTheCoordinate();\n\t\t\t\t\t\t\tcheckFullRow();\n\t\t\t\t\t\t\tbrick = generateBricks();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t});\n\t\tgameThread.start();\n\t}",
"public void insert() {\r\n\t\tinitFinish = false;\r\n\t\twhile (isEmpty()) {\r\n\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\t\tif (candyBoard[i][j] == null||!(candyBoard[i][j] instanceof RegularCandy)) {\r\n\t\t\t\t\t\tcandyBoard[i][j] = candyRandom();\r\n\t\t\t\t\t\tcandyBoard[i][j].setCoord(i, j);\r\n\t\t\t\t\t\tactiveCandies.add(candyBoard[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}// for j\r\n\t\t\t}// for i\r\n\t\t\tfor (Candy candy : activeCandies) {\r\n\t\t\t\tif (move(candy, candy)) {\r\n\t\t\t\t\tincreaseMulty();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}// while\r\n\t\tactiveCandies.removeAllElements();\r\n\t\tinitFinish = true;\r\n\t}",
"protected void startInsertRunnable() {\n\t}",
"private void run() {\n List<Planet> list = new ArrayList<>();\n \n fillLargeList(list);\n \n // Get an element\n getFromList(list);\n }",
"@Override\n\tpublic void run(){\n\t\twhile (PACE < 30){\n\t\t\tSystem.out.println(getName() + \": \" + PACE);\n\n\t\t\ttry {\n\t\t\t\tsleep(DELAY);\n\t\t\t\tPACE += SPEED;\n\t\t\t\t\n\t\t\t\tif (PACE >= 30){\n\t\t\t\t\tLAP+=1;\n\t\t\t\t\tPACE -=30;\n\t\t\t\t\t\n\t\t\t\t\t//3 laps indicate finishline\n\t\t\t\t\tif (LAP == 3){\n\t\t\t\t\t\tmysecondArray = place.getArray();\n\t\t\t\t\t\tmysecondArray.add(this);\n\t\t\t\t\t\tplace.setArray(mysecondArray);\n\t\t\t\t\t\tSystem.out.println(getName() + \" is finished at place \" + mysecondArray.size());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(getName() + \": Lap \" + LAP);\n\n\t\t\t\t}\t\t\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}//end of while\n\t}",
"private void playRound(GOval ball) {\n int bricksOnStage = NBRICK_ROWS * NBRICKS_PER_ROW;\n\n while(true) {\n bricksOnStage = collideObject(ball, bricksOnStage);\n collideStageLimits(ball);\n if (hasMissPaddle(ball)) {\n showLabel(\"BUSTED\", Color.BLACK);\n clearStage(ball);\n break;\n }\n ball.move(vx, vy);\n //println(vx + \" \" + vy);\n if (isBricksLeft(bricksOnStage)){\n showLabel(\"YOU WON!\", Color.red);\n clearStage(ball);\n break;\n }\n pause(PAUSE_TIME);\n }\n }",
"@Override\n\tpublic void startAction() {\n\t if (!balls.isEmpty() && firingBall == null) {\n\t gb.addToActiveList(this);\n\t //fire next ball\n\t firingBall = (Ball)balls.remove(0);\n\t firingBall.setAbsorbed(false);\n\t firingBall.setVy(-50*25);\n\t //align balls that are being held\n\t if (!balls.isEmpty()) setBalls();\n\t }\n\t}",
"public void add(Ball b) {\r\n balls.add(b);\r\n }",
"public void addBallToBoard(Ball ball){\n\t\tballs.add(ball);\n\t\tinhabitants.add((BoardObject) ball);\n\t}",
"public void run() {\n\t\t\n\t\twhile(running) {\n \n\t\t\tif (width != getWidth() || height != getHeight()){\n\t\t\t\twidth = getWidth(); height = getHeight();}\n \n\t\t\tRectangle box = new Rectangle(width, height);\n\t\t\t\n\t\t\tfor(SnakeSquare ss : sSquare)\n\t\t\t\tss.setBoundingBox(box);\n\t\t\t\n\t\t\tsObst.setBoundingBox(box);\n\t\t\tsFood.setBoundingBox(box);\n\t\t\t\n\t\t\tfor(SnakeSquare ss : sSquare)ss.move();\n\t\t\t\n\t\t\tmoveSnake();\n\t\t\t\n\t\t\trepaint(); // Calls paintComponent(g)\n \n\t\t\t// Sleep for 20 ms before next update\n\t\t\ttry {\n\t\t\t\t\tThread.sleep(20);\n\t\t\t\t\tendTime = System.nanoTime();\n\t\t\t\t\tboolean collide = false;\n\t\t\t\t\tfor(SnakeSquare ss : sSquare){\n\t\t\t\t\t\tif(SnakeCollision.detectFoodCollision(ss, sFood)){\n\t\t\t\t\t\t//\tsSquare.add(new SnakeSquare(ss.getX(), ss.getY(), ss.getColor(), ss.getLength()));\n\t\t\t\t\t\t\tcollide = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// likewise detect obstacle collision\n\t\t\t\t\t\tif(SnakeCollision.detectObstacleCollision(ss, sObst)){\n\t\t\t\t\t\t\tterminate();\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"Game Over\", \"Game Over\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(SnakeCollision.detectBoundaryCollision(ss, boundary)){\n\t\t\t\t\t\t\tterminate();\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(this, \"Game Over\", \"Game Over\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// check if snake has touched the boundaries (??)\n\t\t\t\t\t}\n\t\t\t\t\tif(collide)\n\t\t\t\t\t\taddAnotherElement();\n\t\t\t\t}\n\t\t\tcatch(InterruptedException e) {}\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(300);\n\t\t\t\t\t} catch (InterruptedException 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\tseatTableSpace.repaint();\n\t\t\t\t\tfor (int i = 0; i < count; i++)\n\t\t\t\t\t\tb[i].setLocation(arrX[i], arrY[i]);\n\t\t\t\t}\n\t\t\t}",
"public void run() {\n\t\t// Set the window to a nice size for our game\n\t\tsetSize(APPLICATION_WIDTH, APPLICATION_HEIGHT);\n\t\tdrawWall();\n\t\tGRect paddle = addPaddle();\n\t\tGOval ball = makeBall();\n\t\t//pause(500);\n\t\tbounceBall(ball);\n\t\tGObject collider = checkCollision(ball);\n\t\tif (collider == null) {\n\t\t\t//continue;\n\t\t}\n\t\telse if (collider == paddle) {\n\t\t\t\n\t\t}\n\t\telse if (collider == brick) {\n\t\t\tremove(brick);\n\t\t}\n\t\t\n\t}",
"public void start() {\r\n for (int i = 0; i < gridSize; i++){\r\n increaseGridSize();\r\n }\r\n createRectangles();\r\n addRectanglesToGrid(grid, rectangles);\r\n Collections.shuffle(rectangles);\r\n setBoard();\r\n }",
"public void run() {\n\n while (!Thread.interrupted()) {\n while (randomRoomPlayers.size() > 1) {\n Player firstPlayer = randomRoomPlayers.poll();\n Player secondPlayer = randomRoomPlayers.poll();\n Thread newGameThread = new Thread(new BullCowGame(firstPlayer, secondPlayer, this));\n newGameThread.start();\n System.out.println(\"Game initiated by PlayersHolder.\");\n }\n synchronized (this) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t\tRandom r = new Random();\n\t\t\t\tint x = r.nextInt(700);\n\t\t\t\tint y = r.nextInt(700);\n\t\t\t\tdaoju dj = new daoju(1, x, y);\n\t\t\t\tSystem.out.println(dj.x + \" \" + dj.y);\n\t\t\t\tjp.djs.add(dj);\n\n\t\t\t}",
"void addBall(Ball b) {\n\t\t\tthis.balls.add(b);\n\n\t\t\tthis.t += b.t;\n\t\t\tthis.w += b.w;\n\n\t\t\tthis.bitRep |= 1 << b.index;\n\t\t}",
"public Ball()\n {\n Random randomSpeed = new Random ();\n xSpeed = randomSpeed.nextInt(7);\n if (xSpeed == 0)\n { xSpeed = randomSpeed.nextInt(7);\n }\n else\n {}\n ySpeed = randomSpeed.nextInt(7);\n if (ySpeed == 0)\n { ySpeed = randomSpeed.nextInt(7);\n }\n else\n {}\n colors = new ArrayList <String>();\n colors.add(new String (\"red\"));\n colors.add(new String (\"blue\"));\n colors.add(new String (\"green\"));\n colors.add(new String (\"cyan\"));\n colors.add(new String (\"magenta\"));\n colors.add(new String (\"yellow\"));\n colors.add(new String (\"pink\"));\n colors.add(new String (\"orange\"));\n Random randomColor = new Random();\n\n int index = randomColor.nextInt(8);\n color = colors.get(index);\n diameter = 35;\n xPosition = leftBound;\n yPosition = upBound;\n ballTouched = null;\n\n draw(); //draws the ball on the screen\n }",
"@Override\n public void run() {\n int combCnt = 0;\n while (rmNumber.size() != 0) {\n\n final int cmc = rmNumber.size();\n final int combc = combCnt;\n final ExecutorService service = Executors.newFixedThreadPool(5);\n final Thread thread = new Thread(() -> changeLabel(lb, combc, combc + cmc));\n service.execute(thread);\n service.shutdown();\n\n for (int r = 0; r < rmNumber.size(); r++) {\n for (int rn = 0; rn < rmGroup.get(rmNumber.get(r)).size(); rn++) {\n int x = rmGroup.get(rmNumber.get(r)).get(rn).x;\n int y = rmGroup.get(rmNumber.get(r)).get(rn).y;\n imageBall[y][x].setImage(null);\n\n }\n try {\n int sc = (combCnt + r>=combsoundsNum-1)?combsoundsNum-1: combCnt + r;\n rmDropMp[sc].play();\n Thread.sleep(500);\n rmDropMp[sc].stop();\n } catch (Exception e) {\n // TODO: handle exception\n }\n }\n\n for (int j = 0; j < field_width; j++) {// 落とす.\n int d = field_height - 1;\n for (int i = field_height - 2; i >= 0; i--) {\n if (imageBall[d][j].getImage() == null) {\n if (imageBall[i][j].getImage() != null) {\n imageBall[d][j].setImage(imageBall[i][j].getImage());\n imageBall[i][j].setImage(null);\n d--;\n }\n } else {\n d--;\n }\n }\n }\n try {\n Thread.sleep(100);\n } catch (Exception e) {\n // TODO: handle exception\n }\n for (int i = 0; i < field_height; i++) {\n for (int j = 0; j < field_width; j++) {\n if (imageBall[i][j].getImage() == null) {\n imageBall[i][j].setImage(imgBalls[(int) (Math.random() * imageSize)]);\n }\n }\n }\n try {\n Thread.sleep(300);\n } catch (Exception e) {\n // TODO: handle exception\n }\n combCnt += rmNumber.size();\n rmGroup.clear();\n rmNumber.clear();\n if (checkBall(rmNumber, rmGroup) != 0)\n continue;\n // break;\n\n for (int r = 0; r < combCnt; r++) {\n try {\n pumpedUpMp.play();\n Thread.sleep(500);\n pumpedUpMp.stop();\n } catch (Exception e) {\n // TODO: handle exception\n }\n }\n break;\n\n }\n\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"2\");\n\t\t\t\tRandom r = new Random();\n\t\t\t\tint x = r.nextInt(700);\n\t\t\t\tint y = r.nextInt(700);\n\t\t\t\tdaoju dj = new daoju(2, x, y);\n\t\t\t\tSystem.out.println(dj.x + \" \" + dj.y);\n\t\t\t\tjp.djs.add(dj);\n\n\t\t\t}",
"public static void spielstart() {\n\n\t\tThread thread = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tgameboard = new GameFrame();\n\n\t\t\t}\n\t\t};\n\n\t\tthread.start();\n\n\t}",
"public void run() {\r\n this.createBallsOnTopOfPaddle();\r\n this.running = true;\r\n this.runner.run(new CountdownAnimation(2, 3, sprites));\r\n this.runner.run(this);\r\n }",
"@Override \n public void collide(Ball ball, Collidable collidable) {\n super.collide(ball, collidable);\n Vect transferLoc = new Vect(this.getLocation().x()+0.5, this.getLocation().y()+0.5);\n Double theta = Math.random()*2*Math.PI;\n board.addBall(new Ball(transferLoc, new Vect(Constants.SPAWNER_SHOOT_VELOCITY*Math.cos(theta),Constants.SPAWNER_SHOOT_VELOCITY*Math.sin(theta) ), this.getName()+\"SpawnedBall\"+this.spawnCount, board.getGravity(), board.getFriction1(), board.getFriction2()));\n spawnCount += 1;\n this.trigger();\n }",
"public void insertRecords(){\n InsertToDB insertRecords= new InsertToDB(mDbhelper,mRecord);\n Log.i(TAG, \"starting insertion on a new Thread!!\");\n idlingResource.increment();\n new Thread(insertRecords).start();\n\n }",
"public Thread addPerson(int sourceFloor, int destinationFloor) {\r\n\r\n /**\r\n * Important to add code here to make a\r\n * new thread that runs your person-runnable\r\n * \r\n * Also return the Thread object for your person\r\n * so that it can be reaped in the testSuite\r\n * (you don't have to join() yourself)\r\n */\r\n\r\n Thread thread = new Thread(new Person(sourceFloor, destinationFloor));\r\n thread.start();\r\n\r\n incrementNumberOfPeopleWaitingAtFloor(sourceFloor);\r\n \r\n\r\n return thread;\r\n }",
"private void placeBombs() {\n\t\tfor (int i = 0; i < NUM_BOMBS; i++) {\n\t\t\tplaceBomb();\n\t\t}\n\t}",
"@Override\r\n public void run() {\n if (start == true && player.getX() > 0) {\r\n //Updates objects\r\n for (Terrain t: terrain) {\r\n t.update();\r\n }\r\n for (Barrier b: barriers) {\r\n b.update();\r\n }\r\n for (Platform p: platforms) {\r\n p.update();\r\n }\r\n for (Bird bi: birds) {\r\n bi.update();\r\n }\r\n for (Bomb bo: bombs) {\r\n bo.update();\r\n bo.grav();\r\n }\r\n player.grav();\r\n playerTwo.grav();\r\n playerTwo.update();\r\n \r\n //Controls when bombs drop\r\n if (bombAct % 150 == 0 && score > 2500) {\r\n bombs.add(new Bomb((int) (Math.random() * 1000), (int) (Math.random() * 100)));\r\n }\r\n \r\n //Sets pace of the game\r\n if (tempo % 1500 == 0) {\r\n for (Terrain t: terrain) {\r\n t.setDX(t.getDX() + 1);\r\n }\r\n for (Barrier b: barriers) {\r\n b.setDX(b.getDX() + 1);\r\n }\r\n for (Platform p: platforms) {\r\n p.setDX(p.getDX() + 1);\r\n }\r\n for (Bird bi: birds) {\r\n bi.setDX(bi.getDX() - 1);\r\n }\r\n }\r\n \r\n //Timers\r\n tempo++;\r\n bombAct++;\r\n score++;\r\n }\r\n\r\n //Always runs\r\n player.update();\r\n \r\n \r\n collision(player);\r\n collision(playerTwo);\r\n borderCollision(player);\r\n borderCollision(playerTwo);\r\n \r\n repaint();\r\n }",
"static void start() {\n if( flag == 1 ) return;\n for( Tile x : tiles ) {\n if( x.getBackground() == cyan ) x.setBackground(white);\n }\n Thread fill = new Thread(new FloodFill());\n fill.start();\n flag = 1;\n }",
"public void setBallInitial(){\n\tvalidBall = new Ball(Player.getxPlayerLoc(),Player.getyPlayerLoc(), angle,true,ballImage,game.getDifficulty());\n}",
"protected void moveBall() {\n int width = getWidth();\n int height = getHeight();\n int min, max, randomX, randomY;\n min = 0;\n max = 200;\n randomX = min + (int)(Math.random() * ((max - min)+1));\n randomY = min + (int)(Math.random() * ((max - min)+1));\n //System.out.println(randomX + \", \" + randomY);\n\n Rectangle ballBounds = ball.getBounds();\n// //System.out.println(ballBounds.x + \", \" + ballBounds.y);\n// if (ballBounds.x + randomX < 0) {\n// randomX = 200;\n// } else if (ballBounds.x + ballBounds.width + randomX > width) {\n// randomX = -200;\n// }\n// if (ballBounds.y + randomY < 0) {\n// randomY = 200;\n// } else if (ballBounds.y + ballBounds.height + randomY > height) {\n// randomY = -200;\n// } \n\n ballBounds.x = randomX;\n ballBounds.y = randomY;\n _ballXpos = ballBounds.x;\n _ballYpos = ballBounds.y;\n ball.setFrame(ballBounds);\n thePlacebo.repaint();\n }",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"AddToQueue Thread Running\");\n\t\t//Create passenger creator\n\t\tCreatePassenger creator = new CreatePassenger();\n\t\t//Start time\n\t\tint start = LocalDateTime.now().getSecond();\n\t\tint time = 0;\n\t\tcounter = 0;\n\t\t//Loop until counter reaches max passengers or time equals max time\n\t\twhile(counter <= MAX_PASSENGERS && time < MAX_TIME) {\n\t\t\t//Create new passenger\n\t\t\tPassenger arrived = creator.create();\n\t\t\t//Add passenger to order array\n\t\t\tthis.arrivedAdd(arrived);\n\t\t\t//Clear line\n\t\t\tSystem.out.print(\"\\033[2K\");\n\t\t\t//Add passenger to queue\n\t\t\tqueue.offer(arrived);\n\t\t\t//Incremement counter\n\t\t\tcounter++;\n\t\t\t//Print out new queue\n\t\t\tSystem.out.print(\"\\r\" + queue);\n\t\t\tint now = LocalDateTime.now().getSecond();\n\t\t\tif(now >= start) {\n\t\t\t\t\ttime = now - start;\n\t\t\t} else {\n\t\t\t\ttime = (now + 59) - start;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(300); \n\t\t\t} catch(InterruptedException e) {\n\t\t\t\tSystem.out.println(\"Error! Thread was interrupted!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void run() {\n\t\twhile (true) {\n\t\t\tmoveBird();\n\t\t\tcheckHits();\n\t\t\trepaint();\n\t\t\t\n\t\t\ttry {Thread.sleep(20);} \n\t\t\tcatch (InterruptedException e) {}\n\t\t}\n\t}",
"@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tfor(int i=1;;i++) {\r\n\t\t\t\tball.move(component.getBounds());\r\n\t\t\t\tcomponent.repaint();\r\n\t\t\t\tThread.sleep(DELAY);\r\n\t\t\t}\r\n\t\t}catch(InterruptedException e) {\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void run()\r\n {\r\n // Check that the current thread is still our pongAnimator.\r\n while (Thread.currentThread() == breakoutAnimator)\r\n {\r\n do\r\n {\r\n if (!paused)\r\n {\r\n System.out.println(paused);\r\n /******************************************************\r\n * CODE TO BE ADDED BY YOU\r\n *****************************************************/\r\n // System.out.println(\"##########################\");\r\n // System.out.println(paddle.toString() + \"\\n\" +\r\n // ball.toString());\r\n // if ball is within the y of the paddle\r\n // System.out.println(lives + \", \" + list.size());\r\n if (ball.getBottomLeftPoint().getY() >= paddle.getTopLeftPoint().getY()\r\n && ball.getBottomLeftPoint().getY() <= paddle.getBottomLeftPoint().getY())\r\n {\r\n if (ball.getBottomRightPoint().getX() > paddle.getTopLeftPoint().getX()\r\n && ball.getBottomLeftPoint().getX() < paddle.getTopRightPoint().getX())\r\n {\r\n ball.setY((int) paddle.getTopRightPoint().getY() - BALL_DIAMETER + 1);\r\n ball.changeVerticalDirection();\r\n }// end if\r\n }// end if\r\n\r\n // if ball hits sides of screen\r\n if (ball.getTopLeftPoint().getX() <= 0 || ball.getTopRightPoint().getX() >= this.getWidth())\r\n ball.changeHorizontalDirection();\r\n\r\n // if ball hits top of screen\r\n if (ball.getTopLeftPoint().getY() <= 0)\r\n ball.changeVerticalDirection();\r\n\r\n // if the ball reaches the bottom\r\n if (ball.getTopLeftPoint().getY() > this.getHeight())\r\n {\r\n lives--;\r\n if (lives == 0)\r\n gameOver = true;\r\n ball.setX(this.getWidth() / 2 - BALL_DIAMETER / 2);\r\n ball.setY(this.getHeight() / 2 - BALL_DIAMETER / 2);\r\n }\r\n\r\n for (int i = 0; i < list.size(); i++)\r\n {\r\n hit = false;\r\n if (((AnimatedShape) list.get(i)).getShape().contains(ball.getLeftSide())\r\n || ((AnimatedShape) list.get(i)).getShape().contains(ball.getRightSide()))\r\n {\r\n ball.changeHorizontalDirection();\r\n hit = true;\r\n }\r\n if (((AnimatedShape) list.get(i)).getShape().contains(ball.getTopSide())\r\n || ((AnimatedShape) list.get(i)).getShape().contains(ball.getBottomSide()))\r\n {\r\n ball.changeVerticalDirection();\r\n hit = true;\r\n }\r\n\r\n if (hit)\r\n {\r\n list.remove(i);\r\n hit = false;\r\n }\r\n }\r\n\r\n // test to see if game is won\r\n if (list.size() == 0)\r\n {\r\n gameWon = true;\r\n gameOver = true;\r\n }\r\n\r\n ball.moveShape();\r\n\r\n repaint();\r\n\r\n // Have the Thread sleep for 1 second at a time.\r\n try\r\n {\r\n Thread.sleep(delay);\r\n }\r\n catch (InterruptedException e)\r\n {\r\n break;\r\n }\r\n }\r\n\r\n }\r\n while (!onMenu);\r\n }\r\n }",
"public void run() {\n\n try {\n startup();\n } catch (UnknownHostException e) {\n e.printStackTrace();\n currentPosition = destination;\n }\n\n while (currentPosition.longitude != destination.longitude && currentPosition.latitude != destination.latitude) {\n try {\n while ((routePositions.size() - 1) > nextRoutePositionIndex && currentPosition.getLongitude() != this.routePositions.get(nextRoutePositionIndex).getLongitude() && currentPosition.getLatitude() != this.routePositions.get(nextRoutePositionIndex).getLatitude()) {\n Thread.sleep(TIMEOUT);\n\n //diceBraking();\n properBraking();\n accelerate();\n calculateDirection(currentPosition, this.routePositions.get(nextRoutePositionIndex));\n currentPosition = drive(\n currentPosition.getLatitude(), currentPosition.getLongitude(),\n this.routePositions.get(nextRoutePositionIndex).getLatitude(), this.routePositions.get(nextRoutePositionIndex).getLongitude()\n );\n\n\n publishPosition();\n if (currentPosition.latitude == currentPosition.latitude && currentPosition.longitude == destination.longitude) {\n break;\n }\n System.out.println(\"id: \" + id + \" Pos: \" + currentPosition.latitude + \"|\" + currentPosition.longitude);\n }\n if (nextRoutePositionIndex < routePositions.size()) {\n nextRoutePositionIndex++;\n } else {\n break;\n }\n } catch (InterruptedException | MalformedURLException exc) {\n exc.printStackTrace();\n }\n\n }\n\n for (int i = 0; i < 100; i++) {\n System.out.println(\"FINISHED \" + id);\n }\n\n try {\n publishFinished();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void run() {\n try {\n while (true) {\n finalLB.addClient();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic void run() {\n\t\tIterable<Page> allPages = new Pages(this.numPages, this.fileName);\n\t\tfor (Page pg : allPages) {\n\t\t\ttry {\n\t\t\t\tqueue.put(pg);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<this.numThread;i++){\n\t\t\ttry {\n\t\t\t\tqueue.put(new PoisonPill());\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void addBall(Ball newBall) {\n\t\tBALL_LIST.add(newBall);\n\t\tSPRITE_LIST.add(newBall);\n\t}",
"public void run() { // Custom run function for the main thread\n\t\twhile (true) { // Infinite loop \n\t\t\t\n\t\t\tassignLane(); // It keeps assigning lanes to parties if lanes are available \n\t\t\t\n\t\t\ttry {\n\t\t\t\tsleep(250);\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"private void addDemoBallsToGrid(int numOfBalls) {\n\t\t// TODO padding etc\n\t\tthis.getChildren().clear();\n\t\tfor (int i = 0; i < numOfBalls; i++) {\n\t\t\tadd(DemoBall.createDemoBallOnPane(), i, 0);\n\t\t}\n\t}",
"public void fillBombs()\r\n {\r\n for (int i = 0; i < gameBoard.BOMB_COUNT; i++)\r\n {\r\n Cell tempCell = new Cell(true);\r\n tempCell.makeBomb();\r\n initBombClick(tempCell);\r\n gameBoard.bombList.add(tempCell);\r\n }\r\n for (int j = gameBoard.BOMB_COUNT; j < (gameBoard.BOARD_WIDTH * gameBoard.BOARD_WIDTH); j++)\r\n {\r\n Cell tempCell = new Cell(false);\r\n initEmptyClick(tempCell);\r\n gameBoard.bombList.add(tempCell);\r\n }\r\n Collections.shuffle(gameBoard.bombList);\r\n }",
"@Override\n public void run() {\n addDelay();\n\n AppDatabase appDatabase = AppDatabase.getInstance(appContext, executors);\n\n List<WeatherEntry> weathers = DataGenerator.generateWeathers();\n\n Log.d(TAG, \"Codelab AppDatabase insertAll - begin\");\n\n insertAll(appDatabase, weathers);\n\n // notify that the database was created and it's ready to be used\n appDatabase.setDatabaseCreated();\n }",
"@Override\n public void run() {\n try {\n preparePlacedBoard();\n } catch (AllShipsPlacedSuccesfully ex) {\n placedBoard.setAsTargetBoard();\n }\n }",
"@Override\n public void run() {\n try {\n List<String> list = Lists.newArrayList();\n for (; ; ) {\n String url = Engine.routeQueue.poll();\n if (url == null && list.size() > 0) {\n File file = new File(\"./half-moil.db\");\n if (!file.exists()) file.createNewFile();\n FileWriter writer = new FileWriter(file, true);\n\n writer.write(Joiner.on(\"\\r\\n\").join(list) + \"\\r\\n\");\n writer.flush();\n writer.close();\n writer = null;\n logger.info(\"文件已保存,新增{}条\", list.size());\n list.clear();\n } else if (url != null) {\n list.add(url);\n } else {\n Thread.sleep(5000L);\n }\n }\n } catch (Exception e) {\n logger.error(e);\n }\n }",
"private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}",
"public void run ()\n\t{\n\t\tif (ballDetected())\n\t\t{\n\t\t\t//findColor();\n\t\t\t\n\t\t\tmainMotorSetSpeeds(normalSpeed,normalSpeed);\n\t\t\tmainLeftMotor.rotate(-30,true); //CHANGE VALUE SO THAT IT ROTATES TO MIDWAY ACCROSS THE BALL\n\t\t\tmainRightMotor.rotate(-30,false);\n\t\t\t\n\t\t\t//turn and move forward to grab the ball\n\t\t\tmainLeftMotor.rotate(-90,true);\n\t\t\tmainRightMotor.rotate(90,false);\n\t\t\tmainLeftMotor.rotate(360, true);\n\t\t\tmainRightMotor.rotate(360,false);\n\t\t\t\n\t\t\t//V2.0 for BallGrab_V2.0\n\t\t\tmotorSetSpeeds(loweringSpeed,loweringSpeed);\n\t\t\tleftMotor.rotate(110,true);\n\t\t\trightMotor.rotate(110,false);\n\n\t\t\t//V1.0 for BallGrab_V1.0\n\t\t\tgrabMotor.setSpeed(speed);\n\t\t\tgrabMotor.rotate(50);\n\t\t\tgrabMotor.rotate(-45);\n\t\t\tgrabMotor.rotate(45);\n\t\t\t\n\t\t\t//hold the ball at a rather vertical angle\n\t\t\tmotorSetSpeeds(holdingSpeed,holdingSpeed);\n\t\t\tleftMotor.rotate(-11,true);\n\t\t\trightMotor.rotate(-110,false);\n\t\t\t\n\t\t}\n\t\t\n\t\t//use navigation class to navigate to the designated area, then shoot \n\t\t\n\t\t//V2.0 for BallGrab_V2.0\n/*\t\tleftMotor.setAcceleration(acceleration);\n\t\trightMotor.setAcceleration(acceleration);\n\t\tleftMotor.setSpeed(forwardSpeed);\n\t\trightMotor.setSpeed(forwardSpeed);*/\n\t\tgrabMotor.rotate(-10);\n\t}",
"public void spawnObstacle(){\n\t\tif(this.seconds > this.nextSpawn && !this.gameOver){\n\t\t\tint pX = this.radom.nextInt(350);\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,0,30,pX,0));\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,pX+110,30,HEIGHT-pX-111,0));\n\t\t\tthis.goals.add(new Goal(WIDTH,pX,30,110,0xffffff));\n\t\t\tthis.nextSpawn = this.seconds + this.spawnRate;\n\t\t}\n\t}",
"@Override\n public void run() {\n System.out.println(Thread.currentThread().getName() + \" is running\");\n while (true) {\n hold();\n try {\n // planet pi comes from the queue\n Planet pi = queue.take();\n if (pi == null) {\n System.out.println(\"pi is empty\");\n }\n int i = planets.indexOf(pi);\n for (int j=i+1; j<planets.size(); j++) {\n Planet pj = planets.get(j);\n if (pj == null) continue;\n double dist = sqrt(pow(pi.position[0] - pj.position[0], 2) +\n pow(pi.position[1] - pj.position[1], 2));\n if (dist < pi.radius + pj.radius) {\n ArrayList<Planet> pair = new ArrayList<>();\n pair.add(pi);\n pair.add(pj);\n collidedPlanetPairs.add(pair);\n //System.out.println(\"Chibaku tensei!\");\n }\n }\n } catch (InterruptedException ex) {}\n done(); // this will make the thread wait\n }\n }",
"@Override\n\tpublic void start(Stage stage) throws Exception {\n\t\tRectangle outerTable = new Rectangle();\n\t\touterTable.setX(230.4);\n\t\touterTable.setY(129.6);\n\t\touterTable.setWidth(691.2);\n\t\touterTable.setHeight(388.8);\n\t\touterTable.setArcWidth(40.0);\n\t\touterTable.setArcHeight(40.0);\n\t\touterTable.setFill(Color.SADDLEBROWN);\n\n\t\t// creates the inner table where balls will roll around\n\t\tRectangle innerTable = new Rectangle();\n\t\tinnerTable.setX(264.96);\n\t\tinnerTable.setY(164.16);\n\t\tinnerTable.setWidth(622.08);\n\t\tinnerTable.setHeight(319.68);\n\t\tinnerTable.setFill(Color.GREEN);\n\n\t\t// top left pocket\n\t\tCircle topLeftP = new Circle(265, 164, 18);\n\n\t\t// bottom left pocket\n\t\tCircle bottomLeftP = new Circle(265, 483.68, 18);\n\n\t\t//top right pocket\n\t\tCircle topRightP = new Circle(888, 164, 18);\n\n\t\t// bottom right pocket\n\t\tCircle bottomRightP = new Circle(888, 483.68, 18);\n\n\t\t// top middle pocket\n\t\tCircle topMidP = new Circle(576.5, 160, 18);\n\n\t\t// bottom middle pocket\n\t\tCircle bottomMidP = new Circle(576.5, 487.68, 18);\n\n\t\t// make the cue ball\n\t\tCueBall makeCueBall = new CueBall(420.75, 321.84, Color.WHITE);\n\t\tCircle cueBall = makeCueBall.getBall();\n\n\t\t// create the group object which holds all the objects of the scene\n\t\tGroup group = new Group(outerTable, innerTable, topLeftP, bottomLeftP, topRightP, bottomRightP, topMidP, bottomMidP, cueBall, makeCueBall.getDirectionLine());\n\t\tScene scene = new Scene(group, 1152, 648, Color.BEIGE);\n\n\t\tstage.setScene(scene);\n\t\tstage.show();\n\t}",
"public void startParallelBombing() {\n\t\tint x = _count;\n\t\t_active = true;\n\t\twhile (_active && x-- > 0) {\n\t\t\tparallelBomb(_count - x);\n\t\t}\n\t\t_active = false;\n\t}",
"private void launchPongManagerThread() {\n \t\tPongManager pongManager = new PongManager(this, listenAddress);\n \t\tfinal Thread t = this.listenChannel.getThreadFactory().newThread(pongManager);\n \t\tt.setName(\"Pong Server Manager\");\n \t\tt.start();\n \t}",
"public void addBarrier() {\n\t\t\t\t\t\t\n\t\tint width = board.snake.getUnit();\n\t\tint adjustor = width;\n\t\tint offset = 0 ;\n\t\t\n\t\tif ( board.getLevel() > 1 ) {\n\t\t\tadjustor = 2 * width;\n\t\t\toffset = width / 2;\n\t\t}\n\t\t\t\n\t\tint x = (int) ( Math.random() * ( board.getWidth() - adjustor ) / width ) * width + offset;\n\t\tint y = (int) ( Math.random() * ( board.getHeight() - adjustor ) / width ) * width + offset;\n\t\t\n\t\tPoint newBar = new Point( x, y );\n\t\t\n\t\t// if this point intersects with current snake, pick a different point\n\t\tif ( collision( newBar, board.snake.snakeBounds() ) ) {\n\t\t\taddBarrier();\n\t\t} else {\n\t\t\tbarriers.add( newBar );\n\t\t}\n\t}",
"public void run() {\n\n for (IDrawShape copiedShape : shapeList.getClipBoard() ) {\n newShape = copiedShape;\n //offset the shape, per Prof instructions\n newShape.addX(100);\n newShape.addY(100);\n\n CreateShapeCommand shape = new CreateShapeCommand(appState, shapeList, newShape.getShapeInfo());\n\n shapeList.add(shape.shapeFactory.createShape(newShape.getShapeInfo()));\n\n }\n CommandHistory.add(this);\n }",
"public void updateList(long t) {\n\t\tfor (int i = 0; i < ballList.size(); i++) {\n\t\t\tballList.get(i).move(t);\n\t\t\t//System.out.printf(\"ball %d at %d %d\\n\", i, ballList.get(i).getX(), ballList.get(i).getY());\n\t\t}\n\t}",
"private void run() {\n //Create the store object\n Store store = new Store();\n\n //Populate the array of people\n for (int i = 0; i < 20; i++) {\n people.add(new Viewer(store));\n if (i < 6) { //Add buyers\n people.add(new Buyer(store));\n }\n }\n\n //Make a thread pool according to the size of people\n this.threadPoolExecutor =\n (ThreadPoolExecutor) Executors.newFixedThreadPool(people.size());\n\n //Start the life of every person\n for (Person person : this.people) {\n threadPoolExecutor.execute(person);\n }\n }",
"@Override\n public void run() {\n try {\n while (true) {\n /*---------------For Moving ball-----------------*/\n if (isPause) {\n synchronized (this) {\n\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n if (xcircle > 1900) {\n i = (int) ((Math.random() * 1000) % 30);\n flag2 = 1;\n\n }\n if (xcircle < 20) {\n i = (int) ((Math.random() * 1000) % 30);\n flag2 = 0;\n }\n if (ycircle >= 972) {\n /*i=(int) ((Math.random()*1000)%30);\n\t\t\t\tflag=0;*/\n if (xcircle > x && xcircle < x + 200) {\n /* ball hits bar !!! well done */\n i = (int) ((Math.random() * 1000) % 30);\n flag = 0;\n Score += 10;\n } else {\n System.out.println(\"XCircle = \" + xcircle + \" and xbar = \" + x);\n System.out.println(\"Sorry ... You lose !!!\");\n new ScoreScreen(Score);\n break;\n }\n }\n if (ycircle < 60) {\n i = (int) ((Math.random() * 1000) % 30);\n flag = 1;\n }\n if (flag2 == 0) {\n xcircle += i;\n } else {\n xcircle -= i;\n }\n if (flag == 0) {\n ycircle -= 30 - i;\n } else {\n ycircle += 30 - i;\n }\n\n /*---------------For Moving bottom bar--------------\n\t\t\tif(x<30)\n\t\t\t{\n\t\t\t\tflag3=0;\n\t\t\t}\n\t\t\tif(x>1700){\n\t\t\t\tflag3=1;\n\t\t\t}\n\t\t\tif(flag3==0)\n\t\t\t{\n\t\t\t\tx+=10;\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx-=10;\t\n\t\t\t}*/\n Thread.sleep(50);\n\n repaint();\n }\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"private void createBall(GL2 gl)\n\t{\n\t\tif(!change)\n\t\t{\n\t\t\tif(shape2)\n\t\t\t{\n\t\t\t\tsetColor(gl, 0, 0, 0, 255 - (13 * hitCount));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsetColor(gl, 0, 0, 0, 255);\n\t\t\t}\n\t\t\t\n\t\t\tdrawGon(gl, 20, currentPoint.getX(), currentPoint.getY(), 10);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsetColor(gl, 0, 0, 0, 255);\n\t\t\tcurrentPoint.setLocation(640, 360);\n\t\t\tdrawGon(gl, 20, currentPoint.getX(), currentPoint.getY(), 10);\n\t\t\tchange = false;\n\t\t\thitCount = 0;\n\t\t}\n\t}",
"public static void main(String[] args) {\n SwingUtilities.invokeLater(() -> {\n JFrame window = new JFrame(\"I Got Balls!\");\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n MyPanel panel = new MyPanel();\n window.add(panel);\n window.setLayout(new FlowLayout());\n create = new JButton(\"One more ball!\");\n create.addActionListener(e -> {\n balls.add(new Ball(panel));\n balls.get(balls.size() - 1).start();\n if (!destroy.isEnabled()) destroy.setEnabled(true);\n window.repaint();\n });\n window.add(create);\n\n destroy = new JButton(\"Stop the ball!\");\n destroy.setEnabled(false);\n destroy.addActionListener(e -> {\n balls.get(balls.size() - 1).stopTheBall();\n balls.remove(balls.size() - 1);\n if (balls.size() == 0) destroy.setEnabled(false);\n window.repaint();\n });\n window.add(destroy);\n\n window.pack();\n window.setVisible(true);\n });\n }",
"public void crearGloboRojo(int tiempo){ \n GloboRojo globor = new GloboRojo();\n double posicionx = generarPosicionX();\n globor.fijarPosicion(posicionx);\n globoslista.add(globor);\n gpane.getChildren().addAll(globor); \n MoverGlobo mv = new MoverGlobo(globor,tiempo);\n mov= new Thread(mv);\n mov.start(); \n }",
"@Override\n public void progressAndCollide(double amountOfTime, Ball ball) {\n checkRep();\n ball.setPosition(storePosition); //store ball\n ball.setActive(false);\n ball.setVelocity(new Vect(0,0));\n storedBalls.add(ball);\n checkRep();\n }",
"@Override\n\tpublic void run() {\n\t\tshape = factory.createShape(config);\n\t\tthis.list.add(shape);\n\t\tCommandHistory.add(this);\n\n\t}",
"public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void run() {\n\t\t\ttry {\n\t\t\t\tfinal List<BusItem> items;\n\t\t\t\titems = LocationParser.parse(BlueBus.this);\n\t\t\t\tmapItemOverlay.updateBuses(items);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t\n\t\t\t}\n\t\t}",
"public void setUpBall(){\n new OrangeBall().setUpOrangeBall();\n }",
"public void init(){\n\n carQueue = new CarQueue();\n gasStation = new GasStation(30,8, carQueue);\n\n gasStation.initialize();\n\n cars = new AddCarThread(carQueue);\n addCars = new Thread(cars);\n }",
"protected void startBatch() {\n \n }",
"private void startGame() {\r\n\t\tthis.lobbyTimerActive = false;\r\n\t\tthis.gameStarted = true;\r\n\t\tthis.queueMessage(\"% START\");\r\n\t\tthis.dealer = new Dealer(this, this.players);\r\n\r\n\t\t// Start the dealer thread\r\n\t\tThread dealerThread = new Thread(dealer);\r\n\t\tdealerThread.start();\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tlong starttime = System.currentTimeMillis();\n\n\t\tboolean started = statusMap.get(type);\n\t\tif (!started) {\n\n\t\t\tstatusMap.put(type, true);\n\t\t\tlogger.info(\n\t\t\t\t\t\"task of id add to queue of busType : {} started,current milestone : {}\",\n\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), milestone);\n\t\t\ttry {\n\t\t\t\tIdGeneratorQueue queue = QueueUtil\n\t\t\t\t\t\t.getIdGeneratorQueue(AptConstants.BUS_NAME_MAP.get(type));\n\n\t\t\t\tif (null == queue) {\n\t\t\t\t\tlogger.error(\n\t\t\t\t\t\t\t\"task of add id to queue faile , no queue of name: {} finded\",\n\t\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlogger.info(\"queue : {} has {} id not uesed.\", queue.getSize());\n\t\t\t\tlong nextMilestone = generatorService.nextMilestone(type);\n\t\t\t\tlogger.info(\"task of add id to queue,nextMilestone is {}\", nextMilestone);\n\n\t\t\t\tif (nextMilestone <= milestone) {\n\t\t\t\t\tlogger.error(\n\t\t\t\t\t\t\t\"task of get next milestone error,nextMileStone is smaller, busType: {},miletone : {}\",\n\t\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), milestone);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tlong start = milestone + 1;\n\t\t\t\tlong end = nextMilestone + 1;\n\n\t\t\t\tlogger.info(\"start add id to queue : {},start : {},end : {}\",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), start, end);\n\t\t\t\tqueue.setMileStone(nextMilestone);\n\t\t\t\t//填充数据 满等待\n\t\t\t\tfor (long i = start; i <= end; i++) {\n\t\t\t\t\tqueue.putId(i);\n\t\t\t\t}\n\t\t\t\tlogger.info(\"success add id to queue! busType : {}\",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\tstatusMap.put(type, false);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.error(\"task of id add to queue of busType : {} failed \",\n\t\t\t\t\t\tAptConstants.BUS_NAME_MAP.get(type));\n\t\t\t\tlogger.error(\"\", e);\n\t\t\t}\n\t\t}\n\t\tlong endtime = System.currentTimeMillis();\n\n\t\tlogger.info(\"task off add to queue ended,busType : {},usetime : {}\",\n\t\t\t\tAptConstants.BUS_NAME_MAP.get(type), endtime - starttime);\n\t}",
"public static void moveBalls() {\n\t\tfor (Ball b : Panel.balls) {\n\t\t\tif (b.getxPOS() + b.getxVelocity() < 410 || b.getxPOS() + b.getxVelocity() > (1200 - (b.getMass() * 7))) { //checking next frame for boundry collision\n\t\t\t\tb.setxVelocity(-b.getxVelocity());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//reverseing velocity if true\n\t\t\t}\n\t\t\tif (b.getyPOS() + b.getyVelocity() < 0) {\n\t\t\t\tb.setyVelocity(-(b.getyVelocity()));\n\t\t\t}\n\t\t\tif (b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22) { //on each collision with the floor, decrease the balls X and Y velocity\n\t\t\t\tb.setyVelocity(-(b.getyVelocity() - energyLost));\n\t\t\t\tif (Panel.tick % 7 == 0 && Panel.Gravity) {\n\t\t\t\t\tif (b.getxVelocity() < 0) {\n\t\t\t\t\t\tb.setxVelocity(b.getxVelocity() + 1);\n\t\t\t\t\t}\n\t\t\t\t\tif (b.getxVelocity() > 0) {\n\t\t\t\t\t\tb.setxVelocity(b.getxVelocity() - 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!(b.getyPOS() + b.getyVelocity() > (800 - (b.getMass() * 7)) - 22)) { //applying motion in the Y direction only if the ball is not resting on the floor\n\t\t\t\tb.setyPOS(b.getyPOS() + b.getyVelocity());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tb.setyPOS((800 - (b.getMass() * 7)) - 22);\n\t\t\t}\n\t\t\t\n\t\t\tb.setxPOS(b.getxPOS() + b.getxVelocity()); //motion is always applied in the X direction\n\t\t}\n\t}",
"@Override\n public void run() {\n start(10, 500);\n }",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tplaces.start();\n\t\t\t\t// rooms.start();\n\t\t\t} catch (UnknownSubarchitectureException e1) {\n\t\t\t\tcomponent.logException(e1);\n\t\t\t}\n\t\t\tWMEventQueue agentChangeEventQueue = new WMEventQueue();\n\t\t\tcomponent.addChangeFilter(ChangeFilterFactory.createTypeFilter(\n\t\t\t\t\tPlaceContainmentAgentProperty.class,\n\t\t\t\t\tWorkingMemoryOperation.ADD), agentChangeEventQueue);\n\t\t\tcomponent.addChangeFilter(ChangeFilterFactory.createTypeFilter(\n\t\t\t\t\tPlaceContainmentAgentProperty.class,\n\t\t\t\t\tWorkingMemoryOperation.OVERWRITE), agentChangeEventQueue);\n\n\t\t\t// initialize current place\n\t\t\twhile (currentPlace == null && !interrupted())\n\t\t\t\tcurrentPlace = getPlaceInterface().getCurrentPlace();\n\t\t\tsetPlace(currentPlace);\n\n\t\t\twhile (!interrupted()) {\n\t\t\t\ttry {\n\t\t\t\t\t// wait for the next change (wait 500ms to allow this to be\n\t\t\t\t\t// properly shutdown on interrupts)\n\t\t\t\t\tWorkingMemoryChange event = agentChangeEventQueue.poll(500,\n\t\t\t\t\t\t\tTimeUnit.MILLISECONDS);\n\t\t\t\t\t// if it was just a time out continue waiting\n\t\t\t\t\tif (event == null)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tPlace place = getPlaceInterface().getCurrentPlace();\n\n\t\t\t\t\tif (place == null || place.id != currentPlace.id) {\n\t\t\t\t\t\tsetPlace(place);\n\t\t\t\t\t\tfor (PlaceChangedHandler c : placeCheckerCallables) {\n\t\t\t\t\t\t\tc.update(place);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Test\n public void insert() throws InterruptedException {\n List<PromotionVoucherInfoDTO> list = generatorProm(10);\n List<List<PromotionVoucherInfoDTO>> lists = cutList(list, 10);\n Long startTime = System.currentTimeMillis();\n\n ThreadPoolUtil instance = ThreadPoolUtil.getInstance();\n CountDownLatch countDownLatch = new CountDownLatch(lists.size());\n for (int i = 0; i < lists.size(); i++) {\n instance.execute(new executeInsert(lists, i, countDownLatch, instance));\n }\n countDownLatch.await();\n Long endTime = System.currentTimeMillis();\n System.out.println(\"插入数据用时:\" + (endTime - startTime));\n\n }",
"public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}",
"public void prepareTheGame(){\n Thread t=new Thread( () -> {\n System.out.println(\"Preparing the game of lobby number \" + lobbyID);\n Collections.shuffle(nicknames);\n\n Controller controller = new Controller(nicknames, view);\n\n view.setController(controller);\n view.setClientConnectionToController();\n\n controller.play();\n }\n );\n\n t.start();\n }",
"@Override\r\n\tpublic void run() {\n\t\twhile (true) {\r\n\t\t\tif (MatchReqPool.size() == 0) {\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tmatchReqDao = new MatchReqDaoImpl();\r\n\r\n\t\t\t\t\tList<MatchReq> list = matchReqDao.getAllNewReq();\r\n\r\n\t\t\t\t\tIterator<MatchReq> iterator = list.iterator();\r\n\t\t\t\t\tif (list.size() > 0) {\r\n\t\t\t\t\t\tLogger.info(\"Has New Request....\");\r\n\r\n\t\t\t\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\t\t\t\tMatchReq req = iterator.next();\r\n\t\t\t\t\t\t\treq.setPoint(\"[0:0]\");\r\n\t\t\t\t\t\t\treq.setStatus(MatchStatus.START);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmatchReqDao.update(list);\r\n\t\t\t\t\t\tMatchReqPool.put(list);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (MatchException em) {\r\n\t\t\t\t\tem.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tsleep(5000);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Flock() {\n boids = new ArrayList<Boid>(); // Initialize the ArrayList\n }",
"Flock() {\n boids = new ArrayList<Boid>(); // Initialize the ArrayList\n }",
"@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\t\twhile(!Thread.interrupted()){\n\t\t\t\t\t//thread safe\n\t\t\t\t\tList<Body> bodys = new ArrayList<Body>(bodyList);\n\t\t\t\t\tfor(Body body:bodys){\n\t\t\t\t\t\tif(body.isMovable()){\n\t\t\t\t\t\t\taddWorldFTo(body);\n\t\t\t\t\t\t\tbody.update();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdetection.test(getBorderShape(),bodys,new ArrayList<Area>(areaList),contact);\n\t\t\t\t\t//调用监视器 并用contact作为联系人\n\t\t\t\t\t\n\t\t\t\t\tList<Timer> timers = new ArrayList<Timer>(timerList);\n\t\t\t\t\tfor(Timer timer:timers){\n\t\t\t\t\t\tif(timer.sendMessage()){\n\t\t\t\t\t\t\t//send time over event\n\t\t\t\t\t\t\tPhysicsTimeoverEvent event = new PhysicsTimeoverEvent(timer);\n\t\t\t\t\t\t\tcontact.sendPhysicsEvent(event);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimer.run(roundDelayTime_MS);\n\t\t\t\t\t}\n\t\t\t\t\t//更新维护定时器\n\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(roundDelayTime_MS);\n\t\t\t\t}\n\t\t\t}catch(InterruptedException e){\n\t\t\t\t//e.printStackTrace();\n\t\t\t\t//it's not a exception that exit when thread sleep\n\t\t\t}\n\t\t}",
"private Ball createBall(Vektor v) {\n \t\tBall ball = new Ball(v, ballsize);\n \t\tball.color = Color.random();\n \t\tballs.add(ball);\n \t\treturn ball;\n \t}",
"private void move() {\n if(this.movement[0]) {\n moveRight();\n } else {\n moveLeft();\n }\n if(this.movement[1]) {\n moveDown();\n } else {\n moveUp();\n }\n\n //Checking boundaries of the game\n if(this.XPosition + this.ballWidth > instance.getWidth()) {\n this.movement[0] = false;\n } else if(XPosition <= 0) {\n this.movement[0] = true;\n } else if(YPosition <= 0) {\n this.movement[1] = true;\n } else if(YPosition + ballHeight >= instance.getHeight()) {\n instance.missedBall();\n if (instance.getBalls() > 0){\n this.lostLife.play();\n }\n this.XPosition = instance.getWidth() / 2;\n this.YPosition = instance.getHeight() - 43;\n this.movement[1] = false;\n Player.setPlayerX((instance.getWidth() - 111) / 2);\n Player.setPlayerY(instance.getHeight() - 19);\n instance.isPaused(true);\n }\n\n if (this.boundingBox.intersects(this.playerBoundingBox)){\n Rectangle leftHalfOfPlayer = new Rectangle((int)this.playerBoundingBox.getWidth() / 2, (int)this.playerBoundingBox.getHeight(),\n this.playerBoundingBox.x, this.playerBoundingBox.y);\n this.movement[0] = !this.boundingBox.intersects(leftHalfOfPlayer);\n this.movement[1] = false;\n } else {\n // Check if ball collides with brick;\n for (Bricks[] bricks : instance.getBricks()){\n for (Bricks brick: bricks){\n if (brick.collidesWith(new Rectangle(this.XPosition , this.YPosition , this.ballWidth , this.ballHeight))){\n Rectangle iRect = brick.brickHitBox.intersection(this.boundingBox);\n brick.destroy();\n //Sound brickBreak = new Sound(\"res/Break-Sound.wav\");\n this.brickBreak.play();\n // make logic\n this.movement[1] = true;\n if ((this.boundingBox.x+(this.boundingBox.width/2))<(iRect.x+(iRect.width/2))) {\n this.movement[0] = false;\n }\n if ((this.boundingBox.x+(this.boundingBox.width/2))>(iRect.x+(iRect.width/2))) {\n this.movement[0] = true;\n }\n if ((this.boundingBox.y+(this.boundingBox.height/2))<(iRect.y+(iRect.height/2))) {\n this.movement[1] = false;\n }\n }\n }\n }\n\n }\n\n }",
"public void crearGloboAmarillo(int tiempo){ \n GloboAmarillo globoa = new GloboAmarillo();\n globoslista.add(globoa);\n double posicionx = generarPosicionX();\n globoa.fijarPosicion(posicionx);\n gpane.getChildren().addAll(globoa);\n MoverGlobo mv = new MoverGlobo(globoa,tiempo);\n mov= new Thread(mv);\n mov.start(); \n }",
"public void runSortingBalls() throws IOException {\n\t\tsc = null;\n\n\t\ttry{\n\t\t\tsc = new Scanner(System.in);\n\t\t\tBallList ballList = new BallList();\n\t\t\tSystem.out.println(PRESS_ENTER_START);\n\n\t\t\twhile (!(sc.nextLine().equals(EXIT))) {\n\t\t\t\tSystem.out.println(INSERT_NUMBER);\n\t\t\t\tint numberball = sc.nextInt();\n\t\t\t\tBall ball = new Ball(numberball);\n\n\t\t\t\tif(!ballList.containsBall(ball) && ball.isValidNumber(numberball)){\n\t\t\t\t\tballList.addBall(ball);\n\t\t\t\t\tSystem.out.println(OUTPUT);\n\t\t\t\t\tballList.printBallsArray();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(INVALID_INPUT);\n\t\t\t\t}\n\t\t\t}\n\t\t}finally {\n\t\t\tcloseScanner();\n\t\t}\n\n\t}",
"public void start() {\n\t\tThread start = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\t//mientras Alive sea= true va a ejecutar el hilo\n\t\t\t\twhile(_alive){\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * Variable temporal que va a ser igual a la posicion actual en X+1 pixel que avanza\n\t\t\t\t * Si se pasa del máximo permitido se detiene el hilo\n\t\t\t\t */\n\t\t\t\tint temp_x = _pos_X + velocidad_X;\n\t\t\t\tif(temp_x < max_PosX && temp_x > min_PosX){\n\t\t\t\t\tsetChange();\n\t\t\t\t\t_pos_X = temp_x;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\t_alive = false;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * Variable temporal que va a ser igual a la posicion actual en Y+1 pixel que avanza\n\t\t\t\t * Si se pasa del máximo permitido se detiene el hilo\n\t\t\t\t */\n\t\t\t\tint temp_y = _pos_Y + velocidad_Y;\n\t\t\t\tif (temp_y > max_PosY && temp_y <min_PosY){\n\t\t\t\t\t_pos_Y = temp_y;\n\t\t\t\t\tsetChange();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t_alive = false;\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t//Inicia el hilo\n\t\tstart.start();\n\t\t\n\t}",
"@Override\n\tpublic boolean addBall(Ball ball) {\n\t\tif(this.getAllowMoreBalls()&&ball.getPins()<=10) {\n\t\t\tthis.getBalls().add(ball);\n\t\t\tif(this.getBalls().size()==1&&ball.getPins()==10) {\n\t\t\t\tthis.setAllowedBalls(3);\n\t\t\t}\n\t\t\tif(this.getBalls().size()>=this.getAllowedBalls()) {\n\t\t\t\tthis.setAllowMoreBalls(false);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public void run() {\n if (player.canKickBall(fsmAI.ball)) {\n player.stateMachine.changeState(new KickBall(player, fsmAI));\n return;\n }\n \n Player nearestToBall = fsmAI.myTeam.getNearestPlayerToBall();\n if (player != nearestToBall && !(nearestToBall instanceof GoalKeeper)) {\n player.stateMachine.changeState(new MoveToHomeRegion(player, fsmAI));\n MessageDispatcher.getInstance().sendMessage(new PursueBallMessage(), nearestToBall);\n }\n }",
"private void placeBomb(int x, int y, int newValue) {\n setCell(x, y, newValue); // a: Turns this cell into a bomb\n ++bombsPlaced; // b: increments bombs placed\n GridHelper.oneUpAll(x, y, hiddenGrid); // b: Increments all cells surrounding the new bomb\n }",
"public void addBall (int slot, int pidx, int roundId, long seed)\n {\n new DropContext(_flipObj, _observer, pidx, roundId, slot, seed);\n }",
"private void firstRunning() {\n for (int page = 1; page < 50; page++) {\n vacancies.addAll(parser.parseHtml(URL + page, null));\n }\n LOG.info(vacancies.size());\n try (VacancyDao vacancyDao = new VacancyDao(properties)) {\n vacancyDao.insertSet(vacancies);\n vacancyDao.insertLastUpdateDate(new Date().getTime());\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n }\n }",
"public void crearGloboMalo(int tiempo){\n GloboMalo globom = new GloboMalo();\n globoslista.add(globom); \n double posicionx = generarPosicionX();\n globom.fijarPosicion(posicionx);\n gpane.getChildren().addAll(globom);\n MoverGlobo mv = new MoverGlobo(globom,tiempo);\n mov= new Thread(mv);\n mov.start();\n }"
] | [
"0.64916813",
"0.5961393",
"0.59253937",
"0.5894304",
"0.5685782",
"0.5669446",
"0.5658748",
"0.56484723",
"0.56192845",
"0.5560596",
"0.5552856",
"0.55497736",
"0.55428374",
"0.55366087",
"0.5520309",
"0.55091673",
"0.54621744",
"0.54607755",
"0.5424066",
"0.541323",
"0.53932077",
"0.53930396",
"0.5358459",
"0.535519",
"0.53505206",
"0.5347125",
"0.5331444",
"0.5313046",
"0.53052837",
"0.5293156",
"0.5292823",
"0.5291029",
"0.5287132",
"0.52774185",
"0.52566284",
"0.52351314",
"0.5223201",
"0.5222718",
"0.52190864",
"0.5215714",
"0.5214673",
"0.5187877",
"0.51748586",
"0.5171439",
"0.51690793",
"0.51601285",
"0.5150845",
"0.51472074",
"0.5142038",
"0.5140679",
"0.5140062",
"0.5125449",
"0.5124707",
"0.511561",
"0.51101565",
"0.5105449",
"0.51025665",
"0.5089619",
"0.50829655",
"0.50797164",
"0.507389",
"0.5072423",
"0.50643456",
"0.5062888",
"0.5056976",
"0.50565135",
"0.5050562",
"0.50424874",
"0.5032584",
"0.50184286",
"0.5011909",
"0.5002706",
"0.49999198",
"0.49976003",
"0.49932754",
"0.49917734",
"0.4988438",
"0.4987594",
"0.4986363",
"0.4983637",
"0.49798235",
"0.49767312",
"0.49720398",
"0.49598566",
"0.49595457",
"0.49570656",
"0.49527788",
"0.49527788",
"0.49488607",
"0.49472594",
"0.49471807",
"0.49457225",
"0.4945209",
"0.49331856",
"0.4927717",
"0.49174526",
"0.49101287",
"0.4906616",
"0.49056756",
"0.49047136"
] | 0.58140856 | 4 |
Add more columns to SNP, DArT, Allelic and ABH Uploads | @Override
public void buttonClick(ClickEvent event) {
String strSelectedDataType = _strMarkerType.replace(" ", "");
UploadVariableFieldsDialog uploadVariableFieldsDialog = null;
if (strSelectedDataType.equalsIgnoreCase("SNPGenotype") || strSelectedDataType.equalsIgnoreCase("AllelicData") || strSelectedDataType.equalsIgnoreCase("ABHData") ){
uploadVariableFieldsDialog = new UploadVariableFieldsDialog(_mainHomePage, "Markers", true);
} else if (strSelectedDataType.equalsIgnoreCase("DArTGenotype")){
uploadVariableFieldsDialog = new UploadVariableFieldsDialog(_mainHomePage, "Germplasm-Names", true);
}
if (null != uploadVariableFieldsDialog) {
Window messageWindow = new Window("Upload Message");
messageWindow.addComponent(uploadVariableFieldsDialog);
messageWindow.setWidth("500px");
messageWindow.setBorder(Window.BORDER_NONE);
messageWindow.setClosable(true);
messageWindow.center();
if (!_mainHomePage.getMainWindow().getChildWindows().contains(messageWindow)) {
_mainHomePage.getMainWindow().addWindow(messageWindow);
}
messageWindow.setModal(true);
messageWindow.setVisible(true);
uploadVariableFieldsDialog.addListener(new UploadVariableFieldsListener() {
@Override
public void uploadVariableFields(ArrayList<String> theListOfVariableFields) {
ArrayList<String> listOfVariableColumns = theListOfVariableFields;
listOfVariableDataColumns = listOfVariableColumns;
if (null != listOfVariableColumns && 0 != listOfVariableColumns.size()){
Layout newTabbedComponentForTemplate = buildTabbedComponentForTemplate();
verticalLayout.replaceComponent(layoutForMarkerTableComponent, newTabbedComponentForTemplate);
verticalLayout.requestRepaint();
layoutForMarkerTableComponent = newTabbedComponentForTemplate;
}
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initColumns() {\n columnNames = new LinkedList<String>();\n columnNames.add(\"table.ededb.datatable.action\");\n columnNames.add(\"table.ededb.datatable.filename\");\n columnNames.add(\"table.ededb.datatable.mime\");\n columnNames.add(\"table.ededb.datatable.size\");\n columnNames.add(\"table.ededb.datatable.localcopy\");\n }",
"public static void addDbCols(List<Individual> rows, Connection c, String[] tables, List<Column> allColumns) throws IOException {\n\t\tMenu menu = new AutoMenu();\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tfor (int i = 0; i < tables.length; i++) {\n\t\t\t\tString table = tables[i];\n\t\t\t\tboolean choice = menu.getChoice(table); //insurance\n\t\t\t\tif (choice) {\n\t\t\t\t\t//medical records\n\t\t\t\t\tString[] addTables = menu.getMvTables(table);\n\t\t\t\t\tfor (int j = 0; j < addTables.length; j++) {\t\n\t\t\t\t\t\tString newTable = addTables[j];\n\n\t\t\t\t\t\tList<Column> newTableCols = menu.getTableCols(newTable, allColumns); //disease, prescription\n\t\t\t\t\t\tColumn mv = null;\t\n\t\t\t\t\t\tColumn mv2 = null;\n\t\t\t\t\t\tfor (Column col : newTableCols) {\n\t\t\t\t\t\t\tSource s = menu.getSource(col);\n\t\t\t\t\t\t\tif (s.equals(Source.MULTI_VALUE)) {\n\t\t\t\t\t\t\t\tmv = col;\n\t\t\t\t\t\t\t} else if (s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\tmv2 = col;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString mvType = \"\";\n\t\t\t\t\t\tString mv2Type = \"\";\n\t\t\t\t\t\tString addCreate = \"CREATE TABLE \" + newTable + \"( \";\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (Column col : newTableCols) {\n\t\t\t\t\t\t\tSource s = menu.getSource(col);\n\t\t\t\t\t\t\tString val = rows.get(0).getValues().get(col);\n\t\t\t\t\t\t\tString type = \"\";\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tInteger.parseInt(val);\n\t\t\t\t\t\t\t\ttype = \"BIGINT\";\n\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\ttype = \"VARCHAR\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\taddCreate = addCreate + col.datatype + \" \" + type + \" NOT NULL, \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (s.equals(Source.MULTI_VALUE)) {\n\t\t\t\t\t\t\t\tmvType = type;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmv2Type = type;\n\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\n\t\t\t\t\t\taddCreate = addCreate + mv.datatype + \" \" + mvType + \n\t\t\t\t\t\t\t\t\", \" + mv2.datatype + \" \" + mv2Type + \");\"; //so matches\n\t\t\t\t\t\t//order below\n\n\t\t\t\tstmt = c.prepareStatement(addCreate);\n\t\t\t\tstmt.executeUpdate();\t\t\t\n\t\t\t\tString all = \"\";\n\t\t\t\tString some = \"\";\n\t\t\t\tString none = \"\";\n\t\t\t\tfor (Column colTwo : newTableCols) {\n\t\t\t\t\tSource s = menu.getSource(colTwo);\n\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\tnone = none + colTwo.datatype + \",\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnone = none.substring(0, none.length() - 1);\n\t\t\t\tsome = none + \",\" + mv.datatype;\n\t\t\t\tall = some + \",\" + mv2.datatype;\n\n\t\t\t\tfor (Individual person : rows) {\n\t\t\t\t\tMap<String, String> mvMap = person.mvTwo;\n\t\t\t\t\tMap<Column, String> vals = person.getValues();\t\t\t\n\t\t\t\t\tif (mvMap.size() > 0) {\n\t\t\t\t\tfor (String mvS : mvMap.keySet()) {\n\t\t\t\t\t\tString mv2S = mvMap.get(mvS);\n\t\t\t\t\t\tif (mv2S.length() > 0) {\n\t\t\t\t\t\tString[] parts = mv2S.split(\",\");\n\t\t\t\t\t\tfor (int l = 0; l < parts.length; l++) {\n\t\t\t\t\t\t\tString addInsert = \"INSERT INTO \" + newTable + \" (\" + all + \") \" + \" VALUES (\";\t \n\t\t\t\t\t\t\tfor (Column colTwo : newTableCols) {\n\t\t\t\t\t\t\t\tSource s = menu.getSource(colTwo);\n\t\t\t\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\t\tString check = vals.get(colTwo);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(check);\n\t\t\t\t\t\t\t\t\t\taddInsert = addInsert + check + \", \";\n\t\t\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + check + \"', \";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tInteger.parseInt(mvS);\n\t\t\t\t\t\t\t\taddInsert = addInsert + mvS + \", \";\n\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + mvS + \"', \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tInteger.parseInt(parts[l]);\n\t\t\t\t\t\t\t\taddInsert = addInsert + parts[l] + \");\";\n\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + parts[l] + \"');\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstmt = c.prepareStatement(addInsert);\n\t\t\t\t\t\t\tstmt.executeUpdate();\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString addInsert = \"INSERT INTO \" + newTable + \" (\" + some + \") \" + \" VALUES (\";\n\t\t\t\t\t\t\tfor (Column colTwo : newTableCols) {\n\t\t\t\t\t\t\t\tSource s = menu.getSource(colTwo);\n\t\t\t\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\t\tString check = vals.get(colTwo);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tInteger.parseInt(check);\n\t\t\t\t\t\t\t\t\t\taddInsert = addInsert + check + \", \";\n\t\t\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + check + \"', \";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\"what is disease: \" + mvS);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tInteger.parseInt(mvS);\n\t\t\t\t\t\t\t\taddInsert = addInsert + mvS + \");\";\n\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + mvS + \"');\";\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\tstmt = c.prepareStatement(addInsert);\n\t\t\t\t\t\t\tstmt.executeUpdate();\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\tString addInsert = \"INSERT INTO \" + newTable + \" (\" + none + \") \" + \" VALUES (\";\n\t\t\t\t\t\tfor (Column colTwo : newTableCols) {\n\t\t\t\t\t\t\tSource s = menu.getSource(colTwo);\n\t\t\t\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\t\t\tString check = vals.get(colTwo);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tInteger.parseInt(check);\n\t\t\t\t\t\t\t\t\taddInsert = addInsert + check + \", \";\n\t\t\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\t\t\t\taddInsert = addInsert + \"'\" + check + \"', \";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\taddInsert = addInsert.substring(0, addInsert.length() - 2) + \");\";\n\t\t\t\t\t\tstmt = c.prepareStatement(addInsert);\n\t\t\t\t\t\tstmt.executeUpdate();\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t \t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tstmt.close();\n\t\t\tc.commit();\n\t\t\tc.close();\n\t\t\t\t\t\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n\t System.exit(0);\n\t\t}\t\t\n\t}",
"private String create_amplicon_variant_40columns() {\n String outputVariant;\n String hifreq_f = hifreq == 0\n ? \"0\"\n : new DecimalFormat(\"0.0000\").format(hifreq);\n nm = nm > 0 ? nm : 0;\n String nm_f = nm == 0\n ? \"0\"\n : new DecimalFormat(\"0.0\").format(nm);\n\n outputVariant = join(delimiter,\n sample,\n gene,\n chr,\n startPosition,\n endPosition,\n refAllele,\n varAllele,\n\n totalCoverage,\n variantCoverage,\n referenceForwardCount,\n referenceReverseCount,\n variantForwardCount,\n variantReverseCount,\n genotype,\n getRoundedValueToPrint(\"0.0000\", frequency),\n bias,\n getRoundedValueToPrint(\"0.0\", pmean),\n pstd,\n getRoundedValueToPrint(\"0.0\", qual),\n qstd,\n\n getRoundedValueToPrint(\"0.00000\", pvalue),\n oddratio,\n\n getRoundedValueToPrint(\"0.0\", mapq),\n getRoundedValueToPrint(\"0.000\", qratio),\n hifreq_f,\n getRoundedValueToPrint(\"0.0000\", extrafreq),\n\n shift3,\n getRoundedValueToPrint(\"0.000\", msi),\n msint,\n nm_f,\n hicnt,\n hicov,\n leftSequence, rightSequence,\n region,\n varType,\n goodVariantsCount,\n totalVariantsCount,\n noCoverage,\n ampliconFlag\n );\n return outputVariant;\n }",
"private void addColumns() {\n\n List<Integer> colIds = new ArrayList<>();\n List<String> colNames = new ArrayList<>();\n List<ColumnDescriptor> tupleDescription = context.getTupleDescription();\n for (int i = 0; i < tupleDescription.size(); i++) {\n ColumnDescriptor col = tupleDescription.get(i);\n if (col.isProjected() && hiveIndexes.get(i) != null) {\n colIds.add(hiveIndexes.get(i));\n colNames.add(col.columnName());\n }\n }\n jobConf.set(READ_ALL_COLUMNS, \"false\");\n jobConf.set(READ_COLUMN_IDS_CONF_STR, StringUtils.join(colIds, \",\"));\n jobConf.set(READ_COLUMN_NAMES_CONF_STR, StringUtils.join(colNames, \",\"));\n }",
"private void addColumnDetails()\n {\n Vector cols = m_recProf.getColumnProfiles();\n for (int i = 0 ; i < cols.size() ; i++)\n {\n ColumnProfile c = (ColumnProfile)cols.elementAt(i);\n addColumnDetail(c, i);\n }\n }",
"private String create_amplicon_variant_38columns() {\n String outputVariant;\n outputVariant = join(delimiter,\n sample,\n gene,\n chr,\n startPosition,\n endPosition,\n refAllele,\n varAllele,\n\n totalCoverage,\n variantCoverage,\n referenceForwardCount,\n referenceReverseCount,\n variantForwardCount,\n variantReverseCount,\n genotype,\n frequency == 0 ? 0 : new DecimalFormat(\"0.0000\").format(frequency),\n bias,\n pmean == 0 ? 0 : new DecimalFormat(\"0.0\").format(pmean),\n pstd,\n qual == 0 ? 0 : new DecimalFormat(\"0.0\").format(qual),\n qstd,\n mapq == 0 ? 0 : new DecimalFormat(\"0.0\").format(mapq),\n qratio == 0 ? 0 : new DecimalFormat(\"0.000\").format(qratio),\n hifreq == 0 ? 0 : new DecimalFormat(\"0.0000\").format(hifreq),\n extrafreq == 0 ? 0 : new DecimalFormat(\"0.0000\").format(extrafreq),\n\n shift3,\n msi == 0 ? 0 : new DecimalFormat(\"0.000\").format(msi),\n msint,\n nm > 0 ? new DecimalFormat(\"0.0\").format(nm) : 0,\n hicnt,\n hicov,\n leftSequence, rightSequence,\n region,\n varType,\n goodVariantsCount,\n totalVariantsCount,\n noCoverage,\n ampliconFlag\n );\n return outputVariant;\n }",
"public static void upDB() throws ClassNotFoundException, SQLException {\r\n Statement s = DBConnect.connection.createStatement();\r\n String upTable = \"UPDATE \" + StFrmNm\r\n + \" Set Sku = '\" + Field1 + \"',\"\r\n + \" Qty = '\" + Field2 + \"',\"\r\n + \" Description1 = '\" + Field3 + \"',\"\r\n + \" Orig_Sku = '\" + Field4 + \"',\"\r\n + \" Description2 = '\" + Field5 + \"',\"\r\n + \" Attribute2 = '\" + Field6 + \"',\"\r\n + \" Size2 = '\" + Field7 + \"',\"\r\n + \" Orig_Retail = '\" + Field8 + \"',\"\r\n + \" Manuf_Inspection = '\" + Field9 + \"',\"\r\n + \" New_Used = '\" + Field10 + \"',\"\r\n + \" Reason = '\" + Field11 + \"',\"\r\n + \" Desc_Damage = '\" + Field12 + \"',\"\r\n + \" Cust_Satisf = '\" + Field13 + \"',\"\r\n + \" Warranty = '\" + Field14 + \"',\"\r\n + \" Second_Sku_Vendor = '\" + vendor + \"',\"\r\n + \" Ln_Date = '\" + GtDates.ldate + \"',\" \r\n + \" Form_Name = '\" + StFrmNm + \"',\" \r\n + \" Second_Cost = '\" + prodCost + \"',\"\r\n + \" Second_Sku_VPNum = '\" + VPnum + \"',\"\r\n + \" First_DCS = null, \"\r\n + \" Second_DCS = '\" + DCS + \"',\"\r\n + \" Ord_C$ = '\" + ord_c + \"'\"\r\n + \" WHERE Line = \" + rline;\r\n /*\r\n + \"(Line, Qty, SKU, Description1, Reason, Desc_Damage, Orig_Retail, New_SKU, Description2, Qty_In, Ln_Date) \"\r\n + \"VALUES(\"\r\n + \"'\" + rline + \"'\" + \",\"\r\n + \"'\" + Field1 + \"'\" + \",\"\r\n + \"'\" + Field2 + \"'\" + \",\"\r\n + \"'\" + Field3 + \"'\" + \",\"\r\n + \"'\" + Field4 + \"'\" + \",\"\r\n + \"'\" + Field5 + \"'\" + \",\"\r\n + \"'\" + Field6 + \"'\" + \",\"\r\n + \"'\" + Field7 + \"'\" + \",\"\r\n + \"'\" + Field8 + \"'\" + \",\"\r\n + \"'\" + Field9 + \"'\" + \",\"\r\n + \"'\" + Field10 + \"'\" + \",\"\r\n + \"'\" + GtDates.ldate + \"'\"\r\n + \")\";\r\n */\r\n s.execute(upTable);\r\n \r\n }",
"protected void updateCustomTables(HttpServletRequest request, Db db)\n {\n\t String strain = getServerItemValue(ItemType.STRAIN);\n\t if(bNewStrain)\n\t {\n\t\t\tCode.info(\"Updating custom table record for strain \" + strain);\n\t\t\tsetMessage(\"Successfully imported new strain(s)\");\n\t\t\t\n\n\t\t\tArrayList<String> params = new ArrayList<String>();\n\t\t params.add(strain);\n\t\t params.add(getServerItemValue(\"StrainName\"));\n\t\t params.add(getStrainType());\n\t\t params.add(getServerItemValue(ItemType.PROJECT));\n\t\t params.add(getServerItemValue(DataType.NOTEBOOK_REF));\n\t\t params.add(getServerItemValue(DataType.COMMENT));\n\t\t params.add(getTranId() + \"\");\n\t\t \n\t\t String sql = \"spMet_InsertStrain\";\n\t\t \n\t\t db.getHelper().callStoredProc(db, sql, params, false, true);\n\t\t \n\n\t\t \t // set multiple location values from rowset\t\n\t\t // warning: relies on specific 'location index' (position in LinxML)\n\t\t \n\t\t //lets get the straintype\n\t\t String strainType = getStrainType(strain);\n\t\t //long strainTypeId = dbHelper.getAppValueIdAsLong(\"StrainType\", strainType, null, false, true, this, db);\n\t\t List<String> locations = new ArrayList<String>();\n\t\t if(bHaveFile)\n\t\t {\n\t\t \t //locations should be set in the dom\n\t\t \t locations = getServerItemValues(\"Location\");\n\t\t }\n\t\t else\n\t\t {\n\t\t \t TableDataMap rowMap = new TableDataMap(request, ROWSET);\n\t\t\t int numRows = rowMap.getRowcount();\n\t\t\t //do we have the correct number of locations\n\t\t\t if(numRows != this.getLocationRowCount())\n\t\t\t \t throw new LinxUserException(\"Invalid number of freezer locations. This task expects \" \n\t\t\t \t\t\t + getLocationRowCount() + \" rows.\");\n\t\t\t\t for(int rowIdx = 1; rowIdx <= numRows; rowIdx++)\n\t\t\t\t {\n\t\t\t\t\t String location = (String)rowMap.getValue(rowIdx, COLUMN_LOCATION);\n\t\t\t\t\t if(location.indexOf(\":\") < 1)\n\t\t\t\t\t {\n\t\t\t\t\t\t throw new LinxUserException(\"Please provide a location in the format FRZ:BOX:POS,\"\n\t\t\t\t\t\t\t\t + \" then try again.\");\n\t\t\t\t\t }\n\t\t\t\t\t locations.add(location);\n\t\t\t\t }\n\t\t }\n\t\t\t //if we're here we have all of the locations\n\t\t if(locations.size() != getLocationRowCount())\n\t\t \t throw new LinxUserException(\"Invalid number of freezer locations. This task expects \" \n\t\t \t\t\t + getLocationRowCount() + \" rows.\");\n\t\t int rowIdx = 1;\n\t\t for(String location : locations)\n\t\t {\n\t\t \t String[] alLocs = location.split(\":\");\n\t\t\t\t String freezer = alLocs[0];\n\t\t\t\t String box = alLocs[1];\n\t\t\t\t String coord = alLocs[2];\n\t\t\t\t \n\t\t\t\t try\n\t\t\t\t {\n\t\t\t\t\t int idxLastColon = location.lastIndexOf(':');\n\t\t\t\t\t String pos = location.substring(idxLastColon + 1);\n\t\t\t\t\t //now lets zero pad the position\n\t\t\t\t\t if(pos.length() < 2)\n\t\t\t\t\t {\n\t\t\t\t\t\t pos = zeroPadPosition(pos);\n\t\t\t\t\t\t coord = pos;\n\t\t\t\t\t\t location = location.substring(0,idxLastColon) + \":\" + pos;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t catch(Exception ex)\n\t\t\t\t {\n\t\t\t\t\t throw new LinxUserException(\"Unable to parse location [\" + location + \"]: \" + ex.getMessage());\n\t\t\t\t }\n\t\t\t\t String boxType = box.substring(0,box.length() - 2);\n\t\t\t\t String transferPlan = strainType + \" Freezer \" + freezer + \" Box \" + boxType;\n\t\t\t\t String transferPlanId = db.getHelper().getDbValue(\"exec spMet_getTransferPlanId '\" \n\t\t\t\t\t + transferPlan + \"','\" + coord + \"'\", db);\n\n\t\t\t\t \n\t\t\t\t params.clear();\n\t\t\t\t params.add(strain);\n\t\t\t\t params.add(freezer); \n\t\t\t\t params.add(box);\n\t\t\t\t params.add(coord);\n\t\t\t\t params.add(rowIdx+\"\"); //location index\n\t\t\t\t params.add(strainType);\n\t\t\t\t params.add(transferPlanId);\n\t\t\t\t params.add(getTranId()+\"\");\n\t\t\t\t\n\t\t \t sql = \"spEMRE_insertStrainLocation\";\n\t\t\t\t dbHelper.callStoredProc(db, sql, params, false, true);\n\t\t\t\t rowIdx++;\n\t\t\t }// next loc index \n\t\t\t // at exit, have updated strain locations\n\t }\n\t\n\t else\n\t {\n\t \t//sql = \"spMet_UpdateStrain\";\n\t\t\t//setMessage(\"Successfully updated strain \" + strain);\n\t \t//as of June 2010 v1.11.0 do not allow updating of existing strain information\n\t \t//only allow updating of comments.\n\t\t \n\t\t String comment = getServerItemValue(DataType.COMMENT);\n\t\t if(WtUtils.isNullOrBlank(comment))\n\t\t {\n\t\t\t throw new LinxUserException(\"Only comments are allowed to be updated if the strain already exists. Please enter comments and try again.\");\n\t\t }\n\t\t else\n\t\t {\n\t\t\t String strainId = dbHelper.getItemId(strain, ItemType.STRAIN, db);\n\t\t\t String sql = \"spEMRE_updateStrainComment \" + strainId + \",'\" + comment + \"'\";\n\t\t\t dbHelper.executeSQL(sql, db);\n\t\t\t setMessage(\"Successfully updated strain '\" + strain + \"' comments.\");\n\t\t }\n\t }\n \n\t \t \n }",
"private void addHeader() {\n \n \t\t// StartNr; Namn; #Varv; Totaltid; Varv1; Varv2; Varv3; Start;\n \t\t// Varvning1; Varvning2; Mål\n \n \t\tsb.append(\"Plac; StartNr; Namn; #Varv; Totaltid; \");\n \t\tfor (int i = 0; i < maxNbrOfLaps; i++) {\n \t\t\tsb.append(\"Varv\");\n \t\t\tsb.append(i + 1 + \"; \");\n \t\t}\n \t\tsb.append(\"\\n\");\n \t}",
"public void writeHeader() throws IOException, FileNotFoundException {\n\n EndianCorrectOutputStream ecs;\n ByteArrayOutputStream baos;\n FileOutputStream fos;\n short s, ss[];\n byte b, bb[], ext_blob[];\n int hsize;\n int i, n;\n int extlist[][];\n\n\n // header is 348 except nii and anz/hdr w/ extensions is 352\n hsize = Nifti1.ANZ_HDR_SIZE;\n if ((header.isDs_is_nii()) || (header.getExtension()[0] != 0)) {\n hsize += 4;\n }\n\n try {\n\n baos = new ByteArrayOutputStream(hsize);\n fos = new FileOutputStream(header.getDs_hdrname());\n\n ecs = new EndianCorrectOutputStream(baos, header.isBig_endian());\n\n\n ecs.writeIntCorrect(header.getSizeof_hdr());\n\n if (header.getData_type_string().length() >= 10) {\n ecs.writeBytes(header.getData_type_string().substring(0, 10));\n } else {\n ecs.writeBytes(header.getData_type_string().toString());\n for (i = 0; i < (10 - header.getData_type_string().length()); i++) {\n ecs.writeByte(0);\n }\n }\n\n if (header.getDb_name().length() >= 18) {\n ecs.writeBytes(header.getDb_name().substring(0, 18));\n } else {\n ecs.writeBytes(header.getDb_name().toString());\n for (i = 0; i < (18 - header.getDb_name().length()); i++) {\n ecs.writeByte(0);\n }\n }\n\n ecs.writeIntCorrect(header.getExtents());\n\n ecs.writeShortCorrect(header.getSession_error());\n\n ecs.writeByte((int) header.getRegular().charAt(0));\n\n b = packDimInfo(header.getFreq_dim(), header.getPhase_dim(), header.getSlice_dim());\n ecs.writeByte((int) b);\n\n for (i = 0; i < 8; i++) {\n ecs.writeShortCorrect(header.getDim()[i]);\n }\n\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getIntent()[i]);\n }\n\n ecs.writeShortCorrect(header.getIntent_code());\n\n ecs.writeShortCorrect(header.getDatatype());\n\n ecs.writeShortCorrect(header.getBitpix());\n\n ecs.writeShortCorrect(header.getSlice_start());\n\n for (i = 0; i < 8; i++) {\n ecs.writeFloatCorrect(header.getPixdim()[i]);\n }\n\n\n ecs.writeFloatCorrect(header.getVox_offset());\n\n ecs.writeFloatCorrect(header.getScl_slope());\n ecs.writeFloatCorrect(header.getScl_inter());\n\n ecs.writeShortCorrect(header.getSlice_end());\n\n ecs.writeByte((int) header.getSlice_code());\n\n ecs.writeByte((int) packUnits(header.getXyz_unit_code(), header.getT_unit_code()));\n\n\n ecs.writeFloatCorrect(header.getCal_max());\n ecs.writeFloatCorrect(header.getCal_min());\n\n ecs.writeFloatCorrect(header.getSlice_duration());\n\n ecs.writeFloatCorrect(header.getToffset());\n\n ecs.writeIntCorrect(header.getGlmax());\n ecs.writeIntCorrect(header.getGlmin());\n\n ecs.write(setStringSize(header.getDescrip(), 80), 0, 80);\n ecs.write(setStringSize(header.getAux_file(), 24), 0, 24);\n\n\n ecs.writeShortCorrect(header.getQform_code());\n ecs.writeShortCorrect(header.getSform_code());\n\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getQuatern()[i]);\n }\n for (i = 0; i < 3; i++) {\n ecs.writeFloatCorrect(header.getQoffset()[i]);\n }\n\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_x()[i]);\n }\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_y()[i]);\n }\n for (i = 0; i < 4; i++) {\n ecs.writeFloatCorrect(header.getSrow_z()[i]);\n }\n\n\n ecs.write(setStringSize(header.getIntent_name(), 16), 0, 16);\n ecs.write(setStringSize(header.getMagic(), 4), 0, 4);\n\n\n // nii or anz/hdr w/ ext. gets 4 more\n if ((header.isDs_is_nii()) || (header.getExtension()[0] != 0)) {\n for (i = 0; i < 4; i++) {\n ecs.writeByte((int) header.getExtension()[i]);\n }\n }\n\n /** write the header blob to disk */\n baos.writeTo(fos);\n\n } catch (IOException ex) {\n throw new IOException(\"Error: unable to write header file \" + header.getDs_hdrname() + \": \" + ex.getMessage());\n }\n\n\n\n /** write the extension blobs **/\n try {\n\n ////// extensions\n if (header.getExtension()[0] != 0) {\n\n baos = new ByteArrayOutputStream(Nifti1.EXT_KEY_SIZE);\n ecs = new EndianCorrectOutputStream(baos, header.isBig_endian());\n extlist = header.getExtensionsList();\n n = extlist.length;\n for (i = 0; i < n; i++) {\n // write size, code\n ecs.writeIntCorrect(extlist[i][0]);\n ecs.writeIntCorrect(extlist[i][1]);\n baos.writeTo(fos);\n baos.reset();\n\n // write data blob\n ext_blob = (byte[]) header.getExtension_blobs().get(i);\n fos.write(ext_blob, 0, extlist[i][0] - Nifti1.EXT_KEY_SIZE);\n }\n }\n\n fos.close();\n } catch (IOException ex) {\n throw new IOException(\"Error: unable to write header extensions for file \" + header.getDs_hdrname() + \": \" + ex.getMessage());\n }\n\n\n }",
"void setupNewColumns( final int newColumnCount, final PdfData pdd )\r\n {\r\n PdfOutfile outfile = pdd.getOutfile();\r\n float currYposition = outfile.getYposition();\r\n float verticalSkip = computeVerticalSkip( currYposition, pdd );\r\n\r\n // going from 1 column to many\r\n if( pdd.getColumnCount() == 1 ) {\r\n pdd.setColumns( new Columns( newColumnCount, verticalSkip, pdd ));\r\n }\r\n else\r\n // going from many to 1, so then we can close off where we are on the\r\n // page and go back to a single column. If we are in the leftmost column,\r\n // then we make the conversion right there on the page. If we are not in the\r\n // leftmost column, then we presume that the leftmost column has been filled\r\n // to the bottom of the page, so we need to do a page eject and start on the\r\n // next page.\r\n\r\n // adjustCurrentColumn(); //-----from v. 0.1.16. Needed?\r\n if( newColumnCount == 1 ) {\r\n // are we in the leftmost column?\r\n if( pdd.getCurrColumn() == 0 ) {\r\n pdd.setColumns( new Columns( 1, verticalSkip, pdd ));\r\n }\r\n else\r\n // if we're not in the first column, we have to assume\r\n // that the leftmost column is full to the bottom of the\r\n // page, so we push out a new page and start in the left\r\n // column of that page (column 0)\r\n {\r\n outfile.newPageLowLevel();\r\n pdd.setColumns( new Columns( 1, 0f, pdd ));\r\n pdd.setCurrColumn( 0 );\r\n }\r\n }\r\n else\r\n // we are going form many columns to another number of many columns\r\n // so start a new page and resume in column 0\r\n {\r\n outfile.newPageLowLevel();\r\n pdd.setColumns( new Columns( newColumnCount, 0f, pdd ));\r\n pdd.setCurrColumn( 0 );\r\n }\r\n }",
"private void export4(final TableFacade tableFacade,final HttpServletRequest request) {\n\t\tif (WICH_ONE.equals(\"E\")) {\n\t\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascNacionalidad\",\n\t\t\t\t\t\"ascJefeInmediato\");\n\t\t}\n\t\tif (WICH_ONE.equals(\"F\")) {\n\t\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascNacionalidad\",\n\t\t\t\t\t\"ascJefeInmediato\", \"ascSalario\");\n\t\t}\n\t\tif (WICH_ONE.equals(\"G\")) {\n\t\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascNacionalidad\",\n\t\t\t\t\t\"ascJefeInmediato\", \"ascSalario\");\n\t\t}\n\n\t\tTable table = tableFacade.getTable();\n\t\t// ---- Titulo de la tabla\n\t\ttable.setCaptionKey(\"tbl.planilla.caption\");\n\n\t\tRow row = table.getRow();\n\t\tColumn nombreColumna = row.getColumn(\"ascCodigo\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.ascCodigo.x\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tString codigo = \"'\" + asociado.getAscCodigo();\n\t\t\t\treturn codigo;\n\t\t\t}\n\n\t\t});\n\n\t\tif (WICH_ONE.equals(\"E\")) {\n\t\t\tnombreColumna = row.getColumn(\"ascNacionalidad\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.ahoYApor\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descAportaciones = 0.0;\n\t\t\t\t\tdescAportaciones += obtenerDescuentos(asociado, \"B\", \"A\",\n\t\t\t\t\t\t\tdescAportaciones,request);\n\n\t\t\t\t\tdouble descAhorros = 0.0;\n\t\t\t\t\tdescAhorros += obtenerDescuentos(asociado, \"B\", \"B\",\n\t\t\t\t\t\t\tdescAhorros,request);\n\n\t\t\t\t\treturn descAportaciones + descAhorros;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tnombreColumna = row.getColumn(\"ascJefeInmediato\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.presYSeg\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tCtaCasCuentaAsociadoDAO casDAO = new CtaCasCuentaAsociadoDAO(getSessionHibernate(request));\n\n\t\t\t\t\tdouble descPrestamos = 0.0;\n\t\t\t\t\tdescPrestamos += obtenerDescuentos(asociado, \"C\", \"\",\n\t\t\t\t\t\t\tdescPrestamos,request);\n\n\t\t\t\t\tdouble descSeguros = 0.0;\n\t\t\t\t\tdescSeguros += obtenerDescuentos(asociado, \"D\", \"\",\n\t\t\t\t\t\t\tdescSeguros,request);\n\t\t\t\t\treturn descPrestamos + descSeguros;\n\t\t\t\t}\n\t\t\t});\n\n\t\t}\n\t\tif (WICH_ONE.equals(\"F\")) {\n\t\t\tnombreColumna = row.getColumn(\"ascNacionalidad\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.aportaciones\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descAportaciones = 0.0;\n\t\t\t\t\tdescAportaciones += obtenerDescuentos(asociado, \"B\", \"A\",\n\t\t\t\t\t\t\tdescAportaciones,request);\n\t\t\t\t\treturn descAportaciones;\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t\tnombreColumna = row.getColumn(\"ascJefeInmediato\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.ahorros\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descAportaciones = 0.0;\n\t\t\t\t\tdescAportaciones += obtenerDescuentos(asociado, \"B\", \"B\",\n\t\t\t\t\t\t\tdescAportaciones,request);\n\t\t\t\t\treturn descAportaciones;\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t\tnombreColumna = row.getColumn(\"ascSalario\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.presYSeg\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tCtaCasCuentaAsociadoDAO casDAO = new CtaCasCuentaAsociadoDAO(getSessionHibernate(request));\n\n\t\t\t\t\tdouble descPrestamos = 0.0;\n\t\t\t\t\tdescPrestamos += obtenerDescuentos(asociado, \"C\", \"\",\n\t\t\t\t\t\t\tdescPrestamos,request);\n\n\t\t\t\t\tdouble descSeguros = 0.0;\n\t\t\t\t\tdescSeguros += obtenerDescuentos(asociado, \"D\", \"\",\n\t\t\t\t\t\t\tdescSeguros,request);\n\t\t\t\t\treturn descPrestamos + descSeguros;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tif (WICH_ONE.equals(\"G\")) {\n\t\t\tnombreColumna = row.getColumn(\"ascNacionalidad\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.ahoYApor\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descAportaciones = 0.0;\n\t\t\t\t\tdescAportaciones += obtenerDescuentos(asociado, \"B\", \"A\",\n\t\t\t\t\t\t\tdescAportaciones,request);\n\n\t\t\t\t\tdouble descAhorros = 0.0;\n\t\t\t\t\tdescAhorros += obtenerDescuentos(asociado, \"B\", \"B\",\n\t\t\t\t\t\t\tdescAhorros,request);\n\n\t\t\t\t\treturn descAportaciones + descAhorros;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tnombreColumna = row.getColumn(\"ascJefeInmediato\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.prestamos\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descPrestamos = 0.0;\n\t\t\t\t\tdescPrestamos += obtenerDescuentos(asociado, \"C\", \"\",\n\t\t\t\t\t\t\tdescPrestamos,request);\n\t\t\t\t\treturn descPrestamos;\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t\tnombreColumna = row.getColumn(\"ascSalario\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.seguros\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descSeguros = 0.0;\n\t\t\t\t\tdescSeguros += obtenerDescuentos(asociado, \"D\", \"\",\n\t\t\t\t\t\t\tdescSeguros,request);\n\t\t\t\t\treturn descSeguros;\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\t\ttableFacade.render();\n\t}",
"private void populateHeaders (String[] entries) {\n header.clear();\n\n if (entries != null) {\n for (String entry : entries) {\n header.add(entry);\n }\n\n/* for (int i = header.size(); i < nbOfColumns; i++) {\n header.add(\"\");\n }*/\n } else {\n for (int i = 1; i < nbOfColumns + 1; i++) {\n header.add(\"Column\" + i);\n }\n }\n }",
"public void addColumns(Column[] cols) {\n\n\t\t//\t\t\tAllocate a new array.\n\t\tint number = cols.length;\n\t\tint cnt = columns.length + number;\n\t\tColumn[] newColumns = new Column[cnt];\n\n\t\t// copy current columns.\n\t\tSystem.arraycopy(columns, 0, newColumns, 0, columns.length);\n\n\t\t//\t\t\tANCA: need to expand the Column[] cols\n\n\t\tfor (int k = 0; k < cols.length; k++) {\n\n\t\t\tString columnClass = (cols[k].getClass()).getName();\n\t\t\tColumn expandedColumn = null;\n\n\t\t\t//if col is the first column in the table add it as is and initialize subset\n\t\t\tint numRows = super.getNumRows();\n\t\t\tif (columns.length == 0) {\n\t\t\t\tif (subset.length == 0) {\n\t\t\t\t\tnumRows = cols[k].getNumRows();\n\t\t\t\t\tsubset = new int[numRows];\n\t\t\t\t\tfor (int i = 0; i < this.getNumRows(); i++) {\n\t\t\t\t\t\tsubset[i] = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// LAM-tlr, I moved this down from inside the above condition. If it is\n\t\t\t\t// inside the condition above, after the first column is added, the rest of\n\t\t\t\t// the columns are empty.\n\t\t\t\texpandedColumn = cols[k];\n\t\t\t} else {\n\t\t\t\t// LAM-tlr, I moved this down from above. If we are to use the column\n\t\t\t\t// as is, we don't need to reallocate it.\n\t\t\t\ttry {\n\t\t\t\t\texpandedColumn =\n\t\t\t\t\t\t(Column) Class.forName(columnClass).newInstance();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t}\n\t\t\t\texpandedColumn.addRows(numRows);\n\t\t\t\texpandedColumn.setLabel(cols[k].getLabel());\n\t\t\t\texpandedColumn.setComment(cols[k].getComment());\n\t\t\t\texpandedColumn.setIsScalar(cols[k].getIsScalar());\n\t\t\t\texpandedColumn.setIsNominal(cols[k].getIsNominal());\n\n\t\t\t\t//initialize all values as missing for the beginning\n\t\t\t\tfor (int j = 0; j < numRows; j++)\n\t\t\t\t\texpandedColumn.setValueToMissing(true, j);\n\n\t\t\t\t//set the elements of the column where appropriate as determined by subset\n\t\t\t\tObject el;\n\t\t\t\tfor (int i = 0; i < subset.length; i++) {\n\t\t\t\t\tel = cols[k].getObject(i);\n\t\t\t\t\texpandedColumn.setObject(el, subset[i]);\n\t\t\t\t\texpandedColumn.setValueToMissing(false, subset[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewColumns[columns.length + k] = expandedColumn;\n\t\t}\n\t\tcolumns = newColumns;\n\n\t}",
"private void export3(final TableFacade tableFacade,final HttpServletRequest request) {\n\t\tif (WICH_ONE.equals(\"A\")) {\n\t\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascIngresoCoope\");\n\t\t}\n\t\tif (WICH_ONE.equals(\"B\")) {\n\t\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascRetiroCoope\");\n\t\t}\n\t\tif (WICH_ONE.equals(\"C\")) {\n\t\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascProfesion\");\n\t\t}\n\t\tif (WICH_ONE.equals(\"D\")) {\n\t\t\ttableFacade.setColumnProperties(\"ascCodigo\", \"ascSalario\");\n\t\t}\n\n\t\tTable table = tableFacade.getTable();\n\t\t// ---- Titulo de la tabla\n\t\ttable.setCaptionKey(\"tbl.planilla.caption\");\n\n\t\tRow row = table.getRow();\n\t\tColumn nombreColumna = row.getColumn(\"ascCodigo\");\n\t\tnombreColumna.setTitleKey(\"tbl.planilla.ascCodigo.x\");\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\n\t\t\t\t\t\trowcount);\n\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\tString codigo = \"'\" + asociado.getAscCodigo();\n\t\t\t\treturn codigo;\n\t\t\t}\n\n\t\t});\n\n\t\tif (WICH_ONE.equals(\"A\")) {\n\t\t\tnombreColumna = row.getColumn(\"ascIngresoCoope\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.aportaciones\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descAportaciones = 0.0;\n\t\t\t\t\tdescAportaciones += obtenerDescuentos(asociado, \"B\", \"A\",\n\t\t\t\t\t\t\tdescAportaciones,request);\n\t\t\t\t\treturn descAportaciones;\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\t\tif (WICH_ONE.equals(\"B\")) {\n\t\t\tnombreColumna = row.getColumn(\"ascRetiroCoope\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.ahorros\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descAhorros = 0.0;\n\t\t\t\t\tdescAhorros += obtenerDescuentos(asociado, \"B\", \"B\",\n\t\t\t\t\t\t\tdescAhorros,request);\n\t\t\t\t\treturn descAhorros;\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\t\tif (WICH_ONE.equals(\"C\")) {\n\t\t\tnombreColumna = row.getColumn(\"ascProfesion\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.prestamos\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descPrestamos = 0.0;\n\t\t\t\t\tdescPrestamos += obtenerDescuentos(asociado, \"C\", \"\",\n\t\t\t\t\t\t\tdescPrestamos,request);\n\t\t\t\t\treturn descPrestamos;\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\t\tif (WICH_ONE.equals(\"D\")) {\n\t\t\tnombreColumna = row.getColumn(\"ascSalario\");\n\t\t\tnombreColumna.setTitleKey(\"tbl.planilla.seguros\");\n\t\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\n\n\t\t\t\tpublic Object getValue(Object item, String property,\n\t\t\t\t\t\tint rowcount) {\n\t\t\t\t\tObject value = new BasicCellEditor().getValue(item,\n\t\t\t\t\t\t\tproperty, rowcount);\n\t\t\t\t\tCtaAscAsociado asociado = (CtaAscAsociado) item;\n\t\t\t\t\tdouble descSeguros = 0.0;\n\t\t\t\t\tdescSeguros += obtenerDescuentos(asociado, \"D\", \"\",\n\t\t\t\t\t\t\tdescSeguros,request);\n\t\t\t\t\treturn descSeguros;\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\n\t\ttableFacade.render();\n\t}",
"AlgOptTable extend( List<AlgDataTypeField> extendedFields );",
"private void upgradeMapViewsToColumns()\r\n {\r\n String sql =\r\n \"insert into mapview_columns(mapviewid, sort_order, dimension) \" +\r\n \"select mapviewid, 0, 'dx' \" +\r\n \"from mapview mv \" +\r\n \"where not exists (\" +\r\n \"select mc.mapviewid \" +\r\n \"from mapview_columns mc \" +\r\n \"where mv.mapviewid = mc.mapviewid)\";\r\n\r\n executeSql( sql );\r\n }",
"protected void setupDBColumns() \n\t{\n\t\tthis.dbColumnNames = new Vector<String>();\n\t\tthis.dbColumnNames.addElement(\"ID\");\n\t}",
"private void populateFieldArray() \r\n\t{\r\n\t\tInteger fieldId;\r\n\t\t/** get input column names which is populated based on the input file\r\n\t\t * format specified in the command file */\r\n\t\tString [] inputColNames = getInputColNames();\r\n\t\tint arrLength; /** Number of columns in the input file*/\r\n\t\tif (null == inputColNames)\r\n\t\t{\r\n\t\t\t/** set array length 2 for two default columns (probeset and chip description)*/\r\n\t\t\tarrLength = 2; \r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/** Basic Probeset ID and description fields are present for all files \r\n\t\t\t * but the other supplementary information like accession number, unigene and\r\n\t\t\t * entrezgene ids may be present one or many based on the file format */\r\n\t\t\tarrLength = 2 + inputColNames.length; /** add other columns*/\r\n\t\t}\r\n\t\t/** Field array base elements are Probeset and Chip_Desc plus any of acc_no, ugid, & locusid/organism */\r\n\t\tfieldIndexArray = new int [arrLength];\r\n\t\t\r\n\t\t/** Now 0th field in input file is probeset*/\r\n\t\tfieldIndexArray[0] = ((Integer) fieldIdTable.get(\"CIN_PROBESET\")).intValue();\r\n\t\t\r\n\t\tif (inputColNames != null) \r\n\t\t{\r\n\t\t\t/** get the field ids for all column names*/\r\n\t\t\tfor (int i=0; i< inputColNames.length; i++)\r\n\t\t\t{\r\n\t\t\t\t/** Pick up the column from the list of inout columns as obtained based on\r\n\t\t\t\t * the input file format. Then fetch its ID from the FieldIdTable */\r\n\t\t\t\tfieldId = (Integer) fieldIdTable.get(inputColNames[i].toUpperCase());\r\n\t\t\t\tif (null == fieldId)\r\n\t\t\t\t{\r\n\t\t\t\t\t/** no such column name allowed*/\r\n\t\t\t\t\tLogger.log(\"Column name \" + inputColNames[i] + \" is not a valid name\",Logger.WARNING);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/** add the field id to the index array. Thus fieldIndexArray will have all the \r\n\t\t\t\t\t * column names depending on the file format*/\r\n\t\t\t\t\tfieldIndexArray[1+i] = fieldId.intValue();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t/** ChipDesc field is the last column in the input file. First we have added the default first field\r\n\t\t * as probeset id , then all the middle fields based on the file format and now the last default\r\n\t\t * field which is chipdescription */\r\n\t\tfieldIndexArray[fieldIndexArray.length-1] = ((Integer) fieldIdTable.get(\"CIN_CHIP_DESCRIPTION\")).intValue();\r\n\t\tLogger.log(\"populateFieldArray complete \",Logger.DEBUG);\r\n\t}",
"public void addFileColNumbers (ArrayList <Integer> colnumarr){\n file_column_numbers = colnumarr;\n }",
"void write(String... columns) throws IOException;",
"private void updateColumnSelections(FileType type) {\r\n\t\tswitch(type) {\r\n\t\t\tcase POS:\r\n\t\t\t\tthis.setPOSHeadersToTable();\r\n\t\t\t\tbreak;\r\n\t\t\tcase UNCAPTURED_AUTH:\r\n\t\t\t\tthis.loadUncapturedHeaders();\r\n\t\t\t\tbreak;\r\n\t\t\tcase CAPTURED:\r\n\t\t\t\tthis.loadCapturedHeaders();\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@Inject\r\n\tpublic void setAdditionalDatasetColumns(@Named(ServerConstants.KEY_ADDITIONAL_DATASET_COLS) String additional){\n\t\tList<String> keyList = splitCommaSeparatedString(additional);\r\n\t\tadditoinalColumns.put(ObjectType.dataset.name(), keyList);\r\n\t}",
"private void renameColumns()\r\n {\r\n \tfor (int i=0;i<this.tempTableAColumnsShortName.size();i++)\r\n \t{\r\n \t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME \"+this.tempTableAColumnsShortName.get(i)+\" TO \"+this.tempTableAColumnsLongName.get(i)+\";\");\r\n \t}\r\n \t\r\n \tfor (int i=0;i<this.allCols.size();i++)\r\n \t{\r\n \t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME i\"+i+\" TO i_\" + this.allCols.get(i)+\";\");\r\n \t\tif (colData.get(this.allCols.get(i))!=null)\r\n \t\t{\r\n \t\t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME v\"+i+\" TO v_\" + this.allCols.get(i)+\";\");\r\n \t\t}\r\n \t}\r\n \t\t\r\n }",
"protected void renderExtraColumnHeader(java.io.Writer w_p) throws Exception\r\n {\r\n // === paste metadata column\r\n if (activatePasteMetadata())\r\n {\r\n // Paste all metadata column\r\n String pasteTooltip = getContext().localize(\"plug.owdocprops.OwFieldView.pasteallmeta\", \"Paste all metadata from the clipboard.\");\r\n w_p.write(\"<th align=\\\"center\\\"><a title=\\\"\" + pasteTooltip + \"\\\" href=\\\"\" + getEventURL(\"PasteAllMetaData\", null) + \"\\\">\");\r\n w_p.write(\"<img hspace=\\\"5\\\" border=\\\"0\\\" src=\\\"\" + getContext().getDesignURL() + \"/images/OwObjectPropertyView/paste_metadata.png\\\"\");\r\n w_p.write(\" alt=\\\"\");\r\n w_p.write(pasteTooltip);\r\n w_p.write(\"\\\" title=\\\"\");\r\n w_p.write(pasteTooltip);\r\n w_p.write(\"\\\"/></a></th>\");\r\n }\r\n }",
"private void createColumns(final Composite parent, final TableViewer viewer) {\n\t\tString[] titles = { \"Name\", \"Location\", \"Type\", \"\" };\n\t\tint[] bounds = { 150, 100, 30, 22 };\n\n\t // 1nd column is for the name\n\t TableViewerColumn col = createTableViewerColumn(titles[0], bounds[0], 0);\n\t col.setLabelProvider(new ColumnLabelProvider() {\n\t\t public String getText(Object obj) { \n\t\t\t\tif (obj instanceof IABC4GSDItem)\n\t\t\t\t\treturn ((IABC4GSDItem) obj).get(\"name\").toString();\n\t\t\t\tif (obj != null)\n\t\t\t\t\treturn obj.toString();\n\t\t\t\treturn \"\";\n\t\t }\n\t\t public String getToolTipText(Object obj) {\n\t\t\t String text = \"\";\n\t\t\t if (obj instanceof IABC4GSDItem)\n\t\t\t\t text = \"Name: \" + ((IABC4GSDItem) obj).get(\"name\").toString() + \"\\n\" +\n\t\t\t\t \"Location: \" + ((IABC4GSDItem) obj).get(\"location\").toString() + \"\\n\" +\n\t\t\t\t \"Type: \" + ((IABC4GSDItem) obj).get(\"type\").toString() + \"\\n\";\n\t\t\t return text;\n\t\t }\n\t\t public Point getToolTipShift(Object object) { return new Point(5, 5); }\n\t\t public int getToolTipDisplayDelayTime(Object object) { return 0; } \n\t\t public int getToolTipTimeDisplayed(Object object) { return 5000; }\n\t });\n\t col.setEditingSupport( new EditingSupportBtnLoad( viewer ) );\n\n\t // Location has been put in the tooltip on the name\n\n\t // 3th column is for the type\n\t col = createTableViewerColumn(titles[2], bounds[2], 2);\n\t col.setLabelProvider(new ColumnLabelProvider() {\n\t\t public String getText(Object obj) {\n\t\t\t if (obj instanceof IABC4GSDItem)\n\t\t\t\t return ((IABC4GSDItem) obj).get(\"type\").toString();\n\t\t\t return \"\";\n\t\t }\n\t });\n\n\t // 4th column is for the remove btn\n\t col = createTableViewerColumn(titles[3], bounds[3], 3);\n\t col.setLabelProvider(new ColumnLabelProvider() {\n\t\t public String getText(Object obj) { return null; }\n\t\t public Image getImage(Object obj) {\n\t\t\t\treturn Activator.getImageDescriptor( IImageKeys.DELETE_2 ).createImage();\n\t\t }\n\t\t public String getToolTipText(Object element) { return \"Remove artifact\"; }\n\t\t public Point getToolTipShift(Object object) { return new Point(5, 5); }\n\t\t public int getToolTipDisplayDelayTime(Object object) { return 0; } \n\t\t public int getToolTipTimeDisplayed(Object object) { return 5000; }\n\t });\n\t col.setEditingSupport( new EditingSupportBtnDelete( viewer ) );\n\t}",
"public static void write(List<Individual> rows, List<Column> allColumns) {\n\t\tConnection c = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/microsim\", \"postgres\", \"microsim2016\");\n\t\t\tc.setAutoCommit(false);\n\t\t\n\t\t\tString create = \"CREATE TABLE TOTAL(\";\n\t\t\tMap<Column, String> values = rows.get(0).getValues();\n\t\t\tfor (Column col : values.keySet()) {\n\t\t\t\tSource s = col.source;\n\t\t\t\tif (!s.equals(Source.MULTI_VALUE) && !s.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tInteger.parseInt(values.get(col));\n\t\t\t\t\t\tcreate = create + col.datatype + \" BIGINT \" + \"NOT NULL, \";\n\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\tcreate = create + col.datatype + \" VARCHAR \" + \"NOT NULL, \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcreate = create + \" PRIMARY KEY(id));\"; \n\t\t\tstmt = c.prepareStatement(create);\t\t\t\n\t\t\tstmt.executeUpdate();\n\t\t\tfor (Individual i : rows) {\n\t\t\t\tString insert = \"INSERT INTO TOTAL \" +\n\t\t\t\t\t\t\t\t\"VALUES (\";\n\t\t\t\t\n\t\t\t\tMap<Column, String> iValues = i.getValues();\n\t\t\t\tfor (Column col : iValues.keySet()) {\n\t\t\t\t\tSource sc = col.source;\n\t\t\t\t\tif (!sc.equals(Source.MULTI_VALUE) && !sc.equals(Source.MULTI_VALUE_2)) {\n\t\t\t\t\t\tString s = iValues.get(col);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tInteger.parseInt(s);\n\t\t\t\t\t\t\tinsert = insert + \" \" + s + \",\"; \n\t\t\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\t\tinsert = insert + \" '\" + s + \"', \"; //doing this each time because need to add '' if a string and no user input\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tinsert = insert.substring(0, insert.length() - 2); //cut off last , \n\t\t\t\tinsert = insert + \");\"; \n\t\t\t\tstmt = c.prepareStatement(insert);\n\t\t\t\tstmt.executeUpdate();\t\t\t\n\t\t\t}\n\t\t\tstmt.close();\n\t\t\tsubTables(rows, c, allColumns);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n\t System.exit(0);\n\t\t}\t\t\t\t\n\t}",
"static void headerFormat(FileWriter fw) throws IOException { \r\n\t\t//fw.append(\"\\n\");\r\n\t\tfw.append(\"levelId\");\r\n fw.append(',');\r\n fw.append(\"rideName\");\r\n fw.append(',');\r\n fw.append(\"ridestartEndLocation\");\r\n fw.append(',');\r\n fw.append(\"rideData\");\r\n fw.append('\\n');\r\n\t}",
"private String createStandardGZFieldColumnHeadings()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (str.length() != 0)\n\t\t\t{\n\t\t\t\tstr.append(\", \");\n\t\t\t}\n\t\t\tstr.append(entry.getKey());\n\t\t\tstr.append(\" IS '\");\n\t\t\tstr.append(getColumnHeadingFromStringArray(entry.getValue()));\n\t\t\tstr.append(\"'\");\n\n\t\t}\n\t\treturn str.toString();\n\t}",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static void createMigrationInputFiles()\n\t{\n\t\t@SuppressWarnings({ \"rawtypes\" })\n\t\tMultiValueMap structureMap = new MultiValueMap(); // MultiValueMap for adding child item rows for every parentId\n\n\t\ttry\n\t\t{\n\t\t\tWorkbook workbook = new XSSFWorkbook(EXCEL_FILE);\n\t\t\tSheet datatypeSheet = workbook.getSheetAt(0);\n\n\t\t\tint linkDocCount = 0, linkDwgCount = 0, linkPurchSpecCount = 0, linkMadeFromCount = 0, engParts = 0, altPartsCount = 0;\n\n\t\t\tList<String> serviceItemsList = new ArrayList<String>();\n\t\t\tList<String> engItemsList = new ArrayList<String>();\n\n\t\t\t// Skipping top two rows\n\t\t\tIterator<Row> rowIterator = datatypeSheet.iterator();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\n\t\t\t// Reading the rows one by one\n\t\t\twhile (rowIterator.hasNext())\n\t\t\t{\n\t\t\t\tcurrentRow = rowIterator.next();\n\t\t\t\tString tierType = BLANK;\n\t\t\t\tif (v(TIER_TYPE) != null && v(TIER_TYPE).trim().length() != 0\n\t\t\t\t\t\t&& !v(TIER_TYPE).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\ttierType = v(TIER_TYPE).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\n\t\t\t\tString engineFamily = BLANK;\n\t\t\t\tif (v(ENGINE_FAMILY) != null && v(ENGINE_FAMILY).trim().length() != 0\n\t\t\t\t\t\t&& !v(ENGINE_FAMILY).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);\n\t\t\t\t\t/*\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SPACE, BLANK);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);*/\n\t\t\t\t}\n\n\t\t\t\tString componentId = BLANK;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (v(SERVICE_CMP_ID) != null && v(SERVICE_CMP_ID).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(SERVICE_CMP_ID).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\t/*System.out.println(currentRow.getCell(SERVICE_CMP_ID)\n\t\t\t\t\t\t\t\t.getRichStringCellValue()); */\n\t\t\t\t\t\tcomponentId = (currentRow.getCell(SERVICE_CMP_ID).getRichStringCellValue())\n\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON, COMMA);\n\t\t\t\t\t\t//System.out.println(componentId);\n\t\t\t\t\t}\n\t\t\t\t} catch (IllegalStateException e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t\tLOG_WRITER.write(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t}\n\n\t\t\t\tString catalogNum = BLANK;\n\t\t\t\tif (v(CATALOG_ITEM) != null && v(CATALOG_ITEM).trim().length() != 0\n\t\t\t\t\t\t&& !v(CATALOG_ITEM).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tcatalogNum = v(CATALOG_ITEM).replace(SPACE, BLANK);\n\t\t\t\t\tcatalogNum = catalogNum.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\t\t\t\t//convertRowToPipeDelimited(currentRow);\n\t\t\t\t//if it is for Service Part\n\t\t\t\tif (v(LINE_TYPE).equals(NEW_SERVICE_PART))\n\t\t\t\t{\n\t\t\t\t\t/* Check for the revision field */\n\t\t\t\t\tString revision_id = DEFAULT_REVISION_ID;\n\t\t\t\t\tif (v(REVISION) != null && v(REVISION).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(REVISION).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\trevision_id = v(REVISION).replace(SPACE, BLANK);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Service Part Writer */\n\n\t\t\t\t\tif (!serviceItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSERVICE_PART_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_ID)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ITEM_NAME)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ revision_id\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ TYPE_REAL_NAME\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(UOM) == null || v(UOM).trim().length() == 0\n\t\t\t\t\t\t\t\t\t\t\t\t|| v(UOM).trim().isEmpty() || v(UOM)\n\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(EACH)) ? BLANK : v(UOM).trim())\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(IP_CLASS)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT_UOM)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_PRODUCT_LINE)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(DATA_MODEL).contains(MODEL_BASED)) ? MB\n\t\t\t\t\t\t\t\t\t\t\t\t: ((v(DATA_MODEL).contains(MODEL_CENTRIC)) ? MC\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: BLANK)\n\n\t\t\t\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(ECCN) + DEL + v(ECCN_SOURCE) + DEL + v(OBJ_EVI)\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(CTQ) + DEL + v(CCC) + DEL + v(ECC) + DEL + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(HOMOLOGATION) + DEL + v(CRITICAL_PART) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_MAKE_BUY) + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Form Update Writer */\n\t\t\t\t\t\tSERVICE_FORM_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_NAME) + DEL + v(ITEM_ID) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERIALIZED) + DEL + v(POS_TRACKED) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICE_ITEM_TYPE) + DEL + tierType + DEL\n\t\t\t\t\t\t\t\t\t\t+ engineFamily + DEL + catalogNum + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Parts' Owning Group update */\n\t\t\t\t\t\tSP_GROUP_ID_WRITER.write(v(ITEM_ID) + NEW_LINE);\n\n\t\t\t\t\t\t/* Relate Service Parts to Document */\n\t\t\t\t\t\tif (v(LINK_DOC) != null && v(LINK_DOC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DOC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DOC) + DEL + SP_DOC_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDocCount++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Relate Service Parts to Drawing */\n\t\t\t\t\t\tif (v(LINK_DWG) != null && v(LINK_DWG).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DWG).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DWG) + DEL + SP_DWG_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDwgCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to Purchase Specifications */\n\t\t\t\t\t\tif (v(LINK_PURCHSPEC) != null && v(LINK_PURCHSPEC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_PURCHSPEC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_PURCHSPEC) + DEL + SP_PURCHSPEC_RELATION_NAME\n\t\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\t\tlinkPurchSpecCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to MadeFrom */\n\t\t\t\t\t\tif (v(LINK_MADEFROM) != null && v(LINK_MADEFROM).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_MADEFROM).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tMADE_FROM_RELATION_WRITER.write(v(ITEM_ID) + DEL + v(LINK_MADEFROM)\n\t\t\t\t\t\t\t\t\t+ DEL + SP_MADEFROM_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkMadeFromCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserviceItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telse if (v(LINE_TYPE).equals(EXISTING_ENG_PART))\n\t\t\t\t{\n\t\t\t\t\t/* EngParts' Service Form Creation - ITEM_ID will be used as the Service Form's NAME */\n\t\t\t\t\tif (!engItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tEP_SERVICE_FORM_WRITER.write(v(ITEM_NAME) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL + v(SERIALIZED) + DEL\n\t\t\t\t\t\t\t\t+ v(POS_TRACKED) + DEL + v(SERVICE_ITEM_TYPE) + DEL + tierType\n\t\t\t\t\t\t\t\t+ DEL + engineFamily + DEL + catalogNum + DEL + v(ITEM_ID)\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\tengParts++;\n\t\t\t\t\t\tengItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/*\tAdd child item rows for each assembly */\n\t\t\t\tif (v(PARENT_ID) != null && v(PARENT_ID).trim().length() != 0\n\t\t\t\t\t\t&& !v(PARENT_ID).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tstructureMap.put(v(PARENT_ID), currentRow.getRowNum());\n\t\t\t\t\t/*\tSTRUCTURE_WRITER.write(v(PARENT_ID) + DEL + v(ITEM_ID) + DEL + v(QTY) + DEL\n\t\t\t\t\t\t\t\t+ v(SEQ) + NEW_LINE); - can not write it here, as the same parent might come again later. IPS_DATA_UPLOAD fails if the parent has existing BVR with -bom mode. */\n\t\t\t\t}\n\n\t\t\t\t/* Global Alternate */\n\t\t\t\tString globalAltStr = v(GLOBAL_ALT);\n\t\t\t\tif (globalAltStr != null && !globalAltStr.trim().isEmpty()\n\t\t\t\t\t\t&& globalAltStr.trim().length() != 0)\n\t\t\t\t{\n\t\t\t\t\tglobalAltStr = globalAltStr.replace(SPACE, BLANK);\n\t\t\t\t\tString globalAltArray[] = globalAltStr.split(SEMICOLON);\n\t\t\t\t\tfor (int i = 0; i < globalAltArray.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSP_GLOBAL_ALT_WRITER.write(v(ITEM_ID) + DEL + globalAltArray[i].trim()\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\taltPartsCount++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tLOG_WRITER.write(TOTAL_SERVICE_PARTS + serviceItemsList.size() + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DOCUMENTS_TO_ATTACH + linkDocCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DRAWINGS_TO_ATTACH + linkDwgCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_PURCHSPEC_TO_ATTACH + linkPurchSpecCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_MADEFROM_TO_ATTACH + linkMadeFromCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ALTERNATE_PARTS_TO_ADD + altPartsCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ENG_PARTS_FOR_SERVICE_FORM_CREATON + engParts + NEW_LINE);\n\t\t\tLOG_WRITER.write(LINE_SEPERATOR);\n\n\t\t\t/* Write Structures */\n\t\t\tLOG_WRITER.write(STRUCTURE_START_TIME + new java.util.Date() + NEW_LINE);\n\t\t\tSet<String> parentIDs = structureMap.keySet();\n\t\t\tIterator parentIDsIterator = parentIDs.iterator();\n\t\t\tLOG_WRITER.write(TOTAL_STRUCTURES + parentIDs.size() + NEW_LINE);\n\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + HASH_SIGN + TOTAL_STRUCTURES + parentIDs.size()\n\t\t\t\t\t+ NEW_LINE);*/\n\t\t\twhile (parentIDsIterator.hasNext())\n\t\t\t{\n\t\t\t\tObject parentID = parentIDsIterator.next();\n\n\t\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + parentID + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ZERO + NEW_LINE);*/\n\n\t\t\t\tCollection childRows = (Collection) structureMap.get(parentID);\n\t\t\t\tIterator childRowsIterator = childRows.iterator();\n\t\t\t\twhile (childRowsIterator.hasNext())\n\t\t\t\t{\n\t\t\t\t\tRow cRow = datatypeSheet.getRow((int) childRowsIterator.next());\n\t\t\t\t\t/*PS_STRUCTURE_WRITER.write(rv(cRow, ITEM_ID) + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ONE + DEL + rv(cRow, SEQ) + DEL\n\t\t\t\t\t\t\t+ rv(cRow, QTY) + NEW_LINE);*/\n\t\t\t\t\tSTRUCTURE_WRITER.write(parentID + DEL + rv(cRow, ITEM_ID) + DEL + rv(cRow, QTY)\n\t\t\t\t\t\t\t+ DEL + rv(cRow, SEQ) + NEW_LINE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tLOG_WRITER.write(STRUCTURE_END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tworkbook.close();\n\t\t} catch (FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} finally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (SERVICE_PART_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_PART_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (EP_SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tEP_SERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GLOBAL_ALT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GLOBAL_ALT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GROUP_ID_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GROUP_ID_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_ATTACHMENT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_ATTACHMENT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (MADE_FROM_RELATION_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tMADE_FROM_RELATION_WRITER.close();\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tif (PS_STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tPS_STRUCTURE_WRITER.close();\n\t\t\t\t}*/\n\t\t\t\tif (STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSTRUCTURE_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (LOG_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tSystem.out.println(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tLOG_WRITER.close();\n\t\t\t\t}\n\n\t\t\t} catch (IOException ex)\n\t\t\t{\n\t\t\t\tSystem.out.println(EXCEPTION + ex.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"private String createStandardGZFields()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\t\tstr.append(\"GZWSID CHAR(4) NOT NULL DEFAULT '', \");\n\t\tstr.append(\"GZDIM NUMERIC(2, 0) NOT NULL DEFAULT 0 , \");\n\t\tstr.append(\"GZTIM NUMERIC(6, 0) NOT NULL DEFAULT 0 , \");\n\t\tstr.append(\"GZSEQ DECIMAL(7, 0) NOT NULL DEFAULT 0 , \");\n\t\tstr.append(\"GZIMG CHAR(1) NOT NULL DEFAULT '', \");\n\t\tstr.append(\"GZEFC CHAR(1) NOT NULL DEFAULT '', \");\n\t\tstr.append(\"GZSMCK CHAR(1) NOT NULL DEFAULT '', \");\n\t\tstr.append(\"GZ4STS CHAR(1) NOT NULL DEFAULT '' \");\n\t\t// If additional fields are added, the STANDARD_JOURNAL_FIELD_SIZE\n\t\t// constant must be updated\n\t\treturn str.toString();\n\t}",
"private void getMarkerFields() {\n\r\n\t\tString strMarkerType = _strMarkerType.replace(\" \", \"\");\r\n\t\t\r\n\t\tFieldProperties[] listOfSourceFieldProperties = null;\r\n\t\tFieldProperties[] listOfDataFieldProperties = null;\r\n\t\tFieldProperties[] listOfGIDsFieldPropertiesForDArT = null;\r\n\t\t\r\n\t\tlistOfSourceColumnFields = new ArrayList<FieldProperties>();\r\n\t\tlistOfDataColumnFields = new ArrayList<FieldProperties>();\r\n\t\tlistOfAdditionalGIDsColumnFieldsForDArT = new ArrayList<FieldProperties>();\r\n\t\t\r\n\t\tif (strMarkerType.equals(\"SSRMarker\")){\r\n\t\t\t//strSourceFileName = \"SSRMarker\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SSRMarker;\r\n\t\t\tstrSourceSheetTitle = \"SSRMarkers\";\r\n\t\t} else if (strMarkerType.equals(\"SNPMarker\")){\r\n\t\t\t//strSourceFileName = \"SNPMarker\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SNPMarker;\r\n\t\t\tstrSourceSheetTitle = \"SNPMarkers\";\r\n\t\t} else if (strMarkerType.equals(\"CISRMarker\")){\r\n\t\t\t//strSourceFileName = \"CISRMarker\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.CISRMarker;\r\n\t\t\tstrSourceSheetTitle = \"CISRMarkers\";\r\n\t\t} else if (strMarkerType.equals(\"CAPMarker\")){\r\n\t\t\t//strSourceFileName = \"CAPMarker\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.CAPMarker;\r\n\t\t\tstrSourceSheetTitle = \"CAPMarkers\";\r\n\t\t} else if (strMarkerType.equals(\"SSRGenotype\")){\r\n\t\t\t//strSourceFileName = \"SSRGenotype_Source\";\r\n\t\t\t//strDataFileName = \"SSRGenotype_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SSRGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.SSRGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"SSR_Source\";\r\n\t\t\tstrDataSheetTitle = \"SSR_Data List\";\r\n\t\t} /*else if (strMarkerType.equals(\"SNPGenotype\")){\r\n\t\t\t//strSourceFileName = \"SNPGenotype_Source\";\r\n\t\t\t//strDataFileName = \"SNPGenotype_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SNPGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.SNPGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"SNPGenotype_Source\";\r\n\t\t\tstrDataSheetTitle = \"SNPGenotype_Data\";\r\n\t\t} */\r\n\t\telse if (strMarkerType.equals(\"GenericSNP\")){\r\n\t\t\t//\"Generic SNP\"\r\n\t\t\t//TODO: 20131206: Tulasi --- Implementation pending - to display the data from the template in the table \r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SNPGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.SNPGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"SNPGenotype_Source\";\r\n\t\t\tstrDataSheetTitle = \"SNPGenotype_Data\";\r\n\t\t} else if (strMarkerType.equals(\"LGCGenomicsSNP\")){\r\n\t\t\t//\"LGC Genomics SNP\"\r\n\t\t\t//TODO: 20131206: Tulasi --- Implementation pending - to display the data from the template in the table \r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.LGCGenomicsSNPGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.LGCGenomicsSNPGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"LGCGenomicsSNPGenotype_Source\";\r\n\t\t\tstrDataSheetTitle = \"LGCGenomicsSNPGenotype_Data\";\r\n\t\t} else if (strMarkerType.equals(\"DArtGenotype\")){\r\n\t\t\t//strSourceFileName = \"DArtGenotype_Source\";\r\n\t\t\t//strDataFileName = \"DArtGenotype_Data\";\r\n\t\t\t//strAdditonalGIDsFileNameForDArt = \"DArtGenotype_GID\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.DArtGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.DArtGenotype_Data;\r\n\t\t\tlistOfGIDsFieldPropertiesForDArT = UploadTableFields.DArtGenotype_GID;\r\n\t\t\tstrSourceSheetTitle = \"DArT_Source\";\r\n\t\t\tstrDataSheetTitle = \"DArT_Data\";\r\n\t\t\tstrGIDsSheetTitleForDArT = \"DArT_GIDs\";\r\n\t\t} else if (strMarkerType.equals(\"AllelicData\") || strMarkerType.equals(\"ABHData\") ){\r\n\t\t\t//strSourceFileName = \"MappingGenotype_Source\";\r\n\t\t\t//strDataFileName = \"MappingGenotype_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.MappingGenotype_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.MappingGenotype_Data;\r\n\t\t\tstrSourceSheetTitle = \"Mapping_Source\";\r\n\t\t\tstrDataSheetTitle = \"Mapping_DataList\";\r\n\t\t} else if (strMarkerType.equals(\"QTL\")){\r\n\t\t\t//strSourceFileName = \"QTL_Source\";\r\n\t\t\t//strDataFileName = \"QTL_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.QTL_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.QTL_Data;\r\n\t\t\tstrSourceSheetTitle = \"QTL_Source\";\r\n\t\t\tstrDataSheetTitle = \"QTL_Data\";\r\n\t\t} else if (strMarkerType.equals(\"Map\")){\r\n\t\t\t//strSourceFileName = \"Map_Source\";\r\n\t\t\t//strDataFileName = \"Map_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.Map_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.Map_Data;\r\n\t\t\tstrSourceSheetTitle = \"Map_Source\";\r\n\t\t\tstrDataSheetTitle = \"Map_Data\";\r\n\t\t} else if (strMarkerType.equals(\"MTA\")){\r\n\t\t\t//strSourceFileName = \"Map_Source\";\r\n\t\t\t//strDataFileName = \"Map_Data\";\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.MTA_Source;\r\n\t\t\tlistOfDataFieldProperties = UploadTableFields.MTA_Data;\r\n\t\t\tstrSourceSheetTitle = \"Map_Source\";\r\n\t\t\tstrDataSheetTitle = \"Map_Data\";\r\n\t\t}else {\r\n\t\t\tlistOfSourceFieldProperties = UploadTableFields.SSRMarker;\r\n\t\t}\r\n\t\t\r\n\t\tif (null != listOfSourceFieldProperties){\r\n\t\t\tfor (FieldProperties fieldProperties : listOfSourceFieldProperties) {\r\n\t\t\t\tlistOfSourceColumnFields.add(fieldProperties);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (null != listOfDataFieldProperties){\r\n\t\t\tfor (FieldProperties fieldProperties : listOfDataFieldProperties) {\r\n\t\t\t\tlistOfDataColumnFields.add(fieldProperties);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (null != listOfVariableDataColumns){\r\n\t\t\t\tfor (String columnTitle : listOfVariableDataColumns){\r\n\t\t\t\t\tFieldProperties fieldProperties = new FieldProperties(columnTitle, UploadField.REQUIRED.toString(), \"\", \"\");\r\n\t\t\t\t\tlistOfDataColumnFields.add(fieldProperties);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (null != listOfGIDsFieldPropertiesForDArT){\r\n\t\t\tfor (FieldProperties fieldProperties : listOfGIDsFieldPropertiesForDArT) {\r\n\t\t\t\tlistOfAdditionalGIDsColumnFieldsForDArT.add(fieldProperties);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t}",
"private void createUserListFields(SGTable table) {\n\t\t ListGridField LIST_COLUMN_ID = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145);\n\t\t LIST_COLUMN_ID.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\", Util.TI18N.LIST_COLUMN_WIDTH(), 40);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t table.setFields(LIST_COLUMN_ID, LIST_COLUMN_CNAME, COLUMN_WIDTH);\n }",
"public void addFileColNumber (int colnum){\n file_column_numbers.add(colnum);\n }",
"private String createNewHeader(List<String> columns)\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n for (String column : columns)\r\n {\r\n sb.append(column);\r\n sb.append(SEPARATOR);\r\n }\r\n\r\n return sb.substring(0, sb.length() - 1);\r\n }",
"private void buildColumns(final MDResourceProvider resources) {\n _columns.add(resources.getStr(L10NRatios.ACCOUNT_NAME));\n _columns.add(resources.getStr(L10NRatios.SELECT));\n }",
"public static void updatePOFiles(){\n\t\tfor(TableInfo tableInfo: tables.values()){\n\t\t\tJavaFileUtils.createJavaPOFile(tableInfo,new MySQLTypeConvertor());\n\t\t}\n\t}",
"public void btnInsertColumn() {\n\t\t\n\t\tboolean contains = musicApp.insertNewTimeBlock();\n\t\tif(contains) {\n\t\t\tlblErrorMsg.setText(\"The track contains work you don't currently have. Please refresh before inserting sound.\");\n\t\t} else {\n\t\t\tmusicApp.updateViews();\n\t\t\tupdatePositionChoice();\n\t\t}\n\t}",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"protected void migrateOnDemand () {\n\t\ttry {\n\t\t\tif (fso.fileExists(prefix+\".fat\") && !fso.fileExists(prefix+EXTENSIONS[UBM_FILE])) {\n\t\t\t\tRandomAccessFile ubm, meta, ctr, rbm;\n\t\t\t\tInputStream inputStream;\n\t\t\t\tOutputStream outputStream;\n\n\t\t\t\tfso.renameFile(prefix+\".fat\",prefix+EXTENSIONS[UBM_FILE]);\n\n\t\t\t\tubm = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\t\t\tmeta = fso.openFile(prefix+EXTENSIONS[MTD_FILE], \"rw\");\n\t\t\t\tctr = fso.openFile(prefix+EXTENSIONS[CTR_FILE], \"rw\");\n\t\t\t\tubm.seek(ubm.length()-16);\n\t\t\t\tmeta.writeInt(blockSize = ubm.readInt());\n\t\t\t\tmeta.writeInt(size = ubm.readInt());\n\t\t\t\tctr.setLength(ubm.readLong()+blockSize);\t// maxOffset\n\t\t\t\tctr.close();\n\t\t\t\tmeta.close();\n\t\t\t\tubm.setLength(ubm.length()-16);\n\n\t\t\t\tubm.seek(0);\n\t\t\t\trbm = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\t\t\tinputStream = new BufferedInputStream(new RandomAccessFileInputStream(ubm));\n\t\t\t\toutputStream = new BufferedOutputStream(new RandomAccessFileOutputStream(rbm));\n\t\t\t\tfor (int b; (b = inputStream.read())!=-1;)\n\t\t\t\t\toutputStream.write(b);\n\t\t\t\toutputStream.close();\n\t\t\t\tinputStream.close();\n\t\t\t\trbm.close();\n\t\t\t\tubm.close();\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\n\t}",
"private void cargarColumnasTabla(){\n \n modeloTabla.addColumn(\"Nombre\");\n modeloTabla.addColumn(\"Telefono\");\n modeloTabla.addColumn(\"Direccion\");\n }",
"private void addColumnDetail(ColumnProfile p_cp, int p_index)\n {\n incrementIndent();\n addColumnHeader(p_cp, p_index);\n addColumnBody(p_cp, p_index);\n addColumnFooter();\n decrementIndent();\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCCD\", \"B1\"); // Charge code (2A)\n\t\ttransaction.setFieldValue(\"GZAMT\", \"5000\"); // Charge amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZWMN\", \"KSM2020\"); // Warning message (7A)\n\t\ttransaction.setFieldValue(\"GZFLG\", \"N\"); // Stop chqbook issue? (1A)\n\t}",
"private static void SaveTable(Class<?> itemClass, List<CSVItem> data) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, NoSuchFieldException {\n\t\tString tl = (String)itemClass.getMethod(\"readTitle\").invoke(null, null);\n\t\tString val = \"\";\n\t\tString fn = (String)itemClass.getField(\"file\").get(val);\n\t\t\n\t\t\n\t\t\n\t\tfn = \"C:\\\\Users\\\\Chebakov.AA\\\\neo4j\\\\import\\\\pitc\\\\\" + fn + \".csv\";\n\t\ttry (OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(fn), \"UTF8\")) { //\"cp1251\"\n\t\t\tout.write(tl + \"\\r\\n\");\n\t\t\tdata.stream()\n\t\t\t\t.map(v -> v.readDataRow())\n\t\t\t\t.forEach(v -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout.write(v + \"\\r\\n\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void createColumns(TableViewer viewer) throws CaoException {\n\n\t\tIConfig[] headers = list.getApplication().getConfig().getConfig(CapCore.LIST_LIST_HEADERS).getConfigBundle(\"header\");\n\t\t\n\t\tfor ( IConfig data : headers) {\n\t\t\t\n\t\t\tMyColumnData columnData = new MyColumnData();\n\t\t\t\n\t\t\tcolumnData.config = data;\n\t\t\tcolumnData.imageProvider = CapCore.getInstance().getImageProvider(data.getString(\"imageprovider\",null));\n\t\t\tTableViewerColumn column = new TableViewerColumn(viewer, SWT.NONE);\n\t\t\tcolumn.getColumn().setText(data.getString(\"title\",\"?\"));\n\t\t\tcolumn.getColumn().setWidth((int)data.getLong(\"width\",400));\n\t\t\tcolumn.getColumn().setResizable(true);\n\t\t\tcolumn.getColumn().setMoveable(true);\t\t\n\t\t\tcolumn.getColumn().setData(columnData);\n\t\t}\n\t\t\n\t\tTable table = viewer.getTable();\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\t}",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"public void prepareData() throws Exception {\n for (int i = 0; i < this.f4804b.length; i++) {\n try {\n byte[] readFile = FileUtil.readFile(this.f4804b[i]);\n addPart(new String[]{String.format(\"Content-Disposition: form-data; name=\\\"%s_%d\\\"; filename=\\\"%s_%d.jpg\\\"\", new Object[]{this.f4803a, Integer.valueOf(i), this.f4803a, Integer.valueOf(i)}), \"Content-Type: image/webp\", String.format(\"Content-Length: %d\", new Object[]{Integer.valueOf(readFile.length)})}, readFile);\n } catch (IOException e) {\n }\n }\n }",
"public void addDataformatToSendToHTTP(FileType type) {\r\n\t\tList<String> dataformatsToSystem;\r\n\t\tif(this.settings.containsKey(\"dataformatsToHTTP\")) {\r\n\t\t\tdataformatsToSystem = new ArrayList<String>(Arrays.asList(String.valueOf(this.settings.get(\"dataformatsToHTTP\")).split(\",\")));\r\n\t\t\tif(!dataformatsToSystem.contains(type.toString())) {\r\n\t\t\t\tdataformatsToSystem.add(type.toString());\r\n\t\t\t}\r\n\t\t\tthis.settings.setProperty(\"dataformatsToHTTP\", String.join(\",\", dataformatsToSystem));\r\n\t\t} else {\r\n\t\t\tdataformatsToSystem = new ArrayList<>();\r\n\t\t\tdataformatsToSystem.add(type.toString());\r\n\t\t\tthis.settings.setProperty(\"dataformatsToHTTP\", String.join(\",\", dataformatsToSystem));\r\n\t\t}\t\t\r\n\t\tthis.saveChanges();\r\n\t}",
"public static void LineArchive() throws ClassNotFoundException, SQLException {\r\n Statement s1 = DBConnect.connection.createStatement();\r\n String writeLine = \"INSERT INTO completed_lines \"\r\n + \"(Line, Sku, Qty, Description1, Orig_Sku, Description2, Attribute2, Size2, Orig_Retail, Manuf_Inspection, New_Used, Reason, \"\r\n + \"Desc_Damage, Cust_Satisf, Warranty, Second_Cost, Form_Name, Ln_Date, Second_Sku_Vendor, Second_Sku_VPNum, Ord_C$, New_Sku, \"\r\n + \"First_DCS, Second_DCS) SELECT * FROM \" + InvAdj_Admin.frmNm + \" WHERE Sku IS NOT NULL\";\r\n \r\n // This inserts store and form name because I could not figure out how to include it in the insert statement above\r\n String setStrFmNm = \"UPDATE completed_lines \"\r\n // + \"SET Form_Name = '\" + InvAdj_Admin.frmNm + \"'\" + \",\"\r\n + \"SET Store = '\" + InvAdj_Admin.frmNm.split(\"_\")[1] + \"' \"\r\n + \"WHERE Sku IS NOT NULL AND Form_Name = '\"+ InvAdj_Admin.frmNm +\"'\";\r\n s1.execute(writeLine); \r\n s1.execute(setStrFmNm);\r\n }",
"private static Ms3Person convertDataToRequiredDataType(String[] personArray,int index) {\r\n\t\t\r\n\t\tString firstName = \"\", lastName = \"\", email = \"\", gender = \"\", urlLink = \"\", card = \"\", city = \"\";\r\n\t\tfloat charges = 0f;\r\n\t\tboolean h_column = false, i_column = false;\r\n\t\t\r\n\t\tboolean flag = false;\r\n\t\tint i = 0;\r\n\t\t//ignore the bad data if read\r\n\t\tif(personArray.length<2 || personArray.length >11)\r\n\t\t\treturn null;\r\n\t\t//iterate the person details & set details in PErson object\r\n\t\tfor (; i < personArray.length; i++) {\r\n\t\t\tString temp = personArray[i];\r\n\t\t\tif(temp.length()<=1)\r\n\t\t\t\treturn null;\r\n\t\t\t// if current string is empty or null\r\n\t\t\tif (temp == null || temp.length() <=1) {\r\n\t\t\t\t// contains bad data\r\n\t\t\t\t// so new file is to be created & append\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tfirstName = personArray[0];\r\n\t\t\t\t} else if (i == 1) {\r\n\t\t\t\t\tlastName = personArray[1];\r\n\t\t\t\t} else if (i == 2) {\r\n\t\t\t\t\temail = personArray[2];\r\n\t\t\t\t} else if (i == 3) {\r\n\t\t\t\t\tgender = personArray[3];\r\n\t\t\t\t} else if (i == 4) {//urllink contains comma in it we need to be careful for this\r\n\t\t\t\t\turlLink = personArray[4] + personArray[i + 1];\r\n\t\t\t\t\ti = 5;\r\n\t\t\t\t} else if (i == 6) {//card name\r\n\t\t\t\t\tcard = personArray[6];\r\n\t\t\t\t} else if (i == 7) {//// $0.02 we need to trim $ from it\r\n\t\t\t\t\t//few ccolumns contains empty data so we need to check that as well\r\n\t\t\t\t\tString stringCharge = personArray[7];\r\n\t\t\t\t\tstringCharge = stringCharge.substring(1);\r\n\t\t\t\t\t//parse String to double to take care of \r\n\t\t\t\t\t//exception\r\n\t\t\t\t\t//System.out.println(\"Cost: \"+stringCharge);\r\n\t\t\t\t\tcharges = (float)Double.parseDouble(stringCharge);\r\n\t\t\t\t} else if (i == 8) {//parse String to Boolean \r\n\t\t\t\t\th_column = Boolean.parseBoolean(personArray[8]);\r\n\t\t\t\t} else if (i == 9) {\r\n\t\t\t\t\ti_column = Boolean.parseBoolean(personArray[9]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (i == 10)\r\n\t\t\t\t\t\tcity = personArray[10];\r\n \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t} // while loop ends\r\n\r\n\t\t//create object & initialise all data members\r\n\t\tMs3Person person = new Ms3Person(firstName, lastName, email, gender, urlLink, card, charges, h_column, i_column,\r\n\t\t\t\tcity);\r\n\t\tlineCount++;\r\n\t\t//know how many lines are being read\r\n\t\tSystem.out.println(person + \" lineNo: \" + lineCount);\r\n\t\treturn person;//return the PErson object\r\n \r\n\t}",
"@Override\n protected String appendSize(Column col, String typeName) {\n if (firebirdVersion != FB_VERSION_15)\n return super.appendSize(col, typeName);\n\n if (col.getType() == Types.VARCHAR\n && col.getSize() > indexedVarcharMaxSizeFB15\n && col.getTable() != null) {\n\n if (col.isPrimaryKey()) {\n col.setSize(indexedVarcharMaxSizeFB15);\n return super.appendSize(col, typeName);\n }\n Index[] indexes = col.getTable().getIndexes();\n for (Index index : indexes) {\n if (index.containsColumn(col)) {\n col.setSize(indexedVarcharMaxSizeFB15);\n return super.appendSize(col, typeName);\n }\n }\n Unique[] uniques = col.getTable().getUniques();\n for (Unique unique : uniques) {\n if (unique.containsColumn(col)) {\n col.setSize(indexedVarcharMaxSizeFB15);\n return super.appendSize(col, typeName);\n }\n }\n ForeignKey[] foreignKeys = col.getTable().getForeignKeys();\n for (ForeignKey foreignKey : foreignKeys) {\n if (foreignKey.containsColumn(col)) {\n col.setSize(indexedVarcharMaxSizeFB15);\n return super.appendSize(col, typeName);\n }\n }\n }\n return super.appendSize(col, typeName);\n }",
"protected void attachdataonserver(String urlNewString) {\n\t\tswitch (index) {\n\t\tcase 1:\n\t\t\tdotheattachmentpart(1, urlNewString);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tdotheattachmentpart(2, urlNewString);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tdotheattachmentpart(3, urlNewString);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\t// dotheattachmentpart(0, urlNewString);\n\t\t\tbreak;\n\t\t}\n\t}",
"private void initializeKnownHeaders() {\r\n needParceHeader = true;\r\n \r\n addMainHeader(\"city\", getPossibleHeaders(DataLoadPreferences.NH_CITY));\r\n addMainHeader(\"msc\", getPossibleHeaders(DataLoadPreferences.NH_MSC));\r\n addMainHeader(\"bsc\", getPossibleHeaders(DataLoadPreferences.NH_BSC));\r\n addMainIdentityHeader(\"site\", getPossibleHeaders(DataLoadPreferences.NH_SITE));\r\n addMainIdentityHeader(\"sector\", getPossibleHeaders(DataLoadPreferences.NH_SECTOR));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_CI, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_CI));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_LAC, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_LAC));\r\n addMainHeader(INeoConstants.PROPERTY_LAT_NAME, getPossibleHeaders(DataLoadPreferences.NH_LATITUDE));\r\n addMainHeader(INeoConstants.PROPERTY_LON_NAME, getPossibleHeaders(DataLoadPreferences.NH_LONGITUDE));\r\n // Stop statistics collection for properties we will not save to the sector\r\n addNonDataHeaders(1, mainHeaders);\r\n \r\n // force String types on some risky headers (sometimes these look like integers)\r\n useMapper(1, \"site\", new StringMapper());\r\n useMapper(1, \"sector\", new StringMapper());\r\n \r\n // Known headers that are sector data properties\r\n addKnownHeader(1, \"beamwidth\", getPossibleHeaders(DataLoadPreferences.NH_BEAMWIDTH), false);\r\n addKnownHeader(1, \"azimuth\", getPossibleHeaders(DataLoadPreferences.NH_AZIMUTH), false);\r\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZBRNM\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZPBR\", \"IPS2\"); // Posting group id or user id, and group level (5A)\n\t\ttransaction.setFieldValue(\"GZVFR\", \"1000106\"); // Value from date (7S,0)\n\t\ttransaction.setFieldValue(\"GZBRND\", \"LOND\"); // Branch mnemonic (4A)\n\t\ttransaction.setFieldValue(\"GZDRF\", \"0014620010\"); // Users own reference for deals, reconciliation etc (16A)\n\t\ttransaction.setFieldValue(\"GZAMA\", \"1500-\"); // Ordinary amount in minor currency units (15P,0)\n\t\ttransaction.setFieldValue(\"GZCCY\", \"PHP\"); // Currency mnemonic (3A)\n\t\ttransaction.setFieldValue(\"GZNPE\", \"1\"); // Number of posting entries (5P,0)\n\t\ttransaction.setFieldValue(\"GZNR1\", \"STOP\"); // Narrative line 1 (35A)\n\t\ttransaction.setFieldValue(\"GZRFR\", \"N\"); // Referred item? (1A)\n\t\ttransaction.setFieldValue(\"GZAUT\", \"Y\"); // Authorised item? (1A)\n\t\ttransaction.setFieldValue(\"GZSSI\", \"N\"); // Special item? (1A)\n\t\ttransaction.setFieldValue(\"GZTTP\", \"C\"); // Transaction type (1A)\n\t\ttransaction.setFieldValue(\"GZHSRL\", \"0014620010\"); // Serial \"number\" forming the key to a stop order (16A)\n\t\ttransaction.setFieldValue(\"GZHAMT\", \"1500-\"); // Stop order amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZAUTC\", \"MASSEYR1\"); // Referred item authorisation code (12A)\n\t\ttransaction.setFieldValue(\"GZCED\", \"2\"); // Currency edit field (1A)\n\t\ttransaction.setFieldValue(\"GZCHQ\", \"N\"); // Cheque item? (1A)\n\t\ttransaction.setFieldValue(\"GZDRFN\", \"0\"); // Cheque serial number (16P,0)\n\t\ttransaction.setFieldValue(\"GZTCCY\", \"PHP\"); // Transaction currency (3A)\n\t\ttransaction.setFieldValue(\"GZTAMA\", \"1500\"); // Transaction amount (15P,0)\n\t\ttransaction.setFieldValue(\"GZHCCY\", \"PHP\"); // Stop order currency (3A)\n\t\ttransaction.setFieldValue(\"GZPSQ7\", \"0000182\"); // 7 Long posting sequence number (7P,0)\n\t}",
"public void addIHaveTagColumns() throws SQLException {\n\t\tstmt.execute(\"ALTER TABLE dance ADD ihave TINYINT(1) DEFAULT 0\");\n\t\tstmt.execute(\"ALTER TABLE dance ADD COLUMN tag VARCHAR(256) DEFAULT NULL\");\n\t\tstmt.execute(\"ALTER TABLE album ADD COLUMN ihave TINYINT(1) DEFAULT 0\");\n\t\tstmt.execute(\"ALTER TABLE album ADD COLUMN tag VARCHAR(256) DEFAULT NULL\");\n\t\tstmt.execute(\"ALTER TABLE publication ADD COLUMN ihave TINYINT(1) DEFAULT 0\");\n\t\tstmt.execute(\"ALTER TABLE publication ADD COLUMN tag VARCHAR(256) DEFAULT NULL\");\n\t\tstmt.execute(\"ALTER TABLE recording ADD COLUMN ihave TINYINT(1) DEFAULT 0\");\n\t\tstmt.execute(\"ALTER TABLE recording ADD COLUMN tag VARCHAR(256) DEFAULT NULL\");\n\t}",
"protected void addDynamicHeaders() {\n }",
"public void appendFields(List<Field> fields) {\n // zzzz! zzzz!\n }",
"public void addColumnTumorSize() {\n addColumnInPrimarySection(ColumnMetaData.KEY_SECTION_TUMOR_SIZE);\n }",
"private static void uploadTSVFiles(String sessionID, File[] annotatedTSVFiles, String tableName, String tableNameSub, File workingDir) throws SQLException, IOException, SessionExpiredException {\n for (File f : annotatedTSVFiles) {\n LOG.info(\"Uploading \" + f.getAbsolutePath() + \"...\");\n VariantManagerUtils.uploadTSVFileToVariantTable(sessionID, f, tableName);\n }\n\n //create sub table dump from the complete table\n LOG.info(\"Dumping variants to file for sub table\");\n File subDump = new File(workingDir, tableName + \"sub.tsv\");\n VariantManagerUtils.variantTableToTSVFile(sessionID, tableName, subDump, null, true, VariantManagerUtils.determineStepForSubset(VariantManager.getInstance().getNumFilteredVariantsHelper(sessionID, tableName, new Condition[][]{})));\n\n //upload to sub table\n LOG.info(\"Loading into subset table: \" + tableNameSub);\n VariantManagerUtils.uploadTSVFileToVariantTable(sessionID, subDump, tableNameSub);\n }",
"private void createUploadTable(SQLiteDatabase db) {\n // SQL statement to create upload table\n String CREATE_UPLOAD_TABLE = \"CREATE TABLE IF NOT EXISTS \" + UPLOAD_TABLE_NAME + \" (\" +\n NAME_ID + \" INTEGER PRIMARY KEY,\" +\n NAME_SIZE + \" INTEGER,\" +\n NAME_MD5 + \" TEXT,\" +\n NAME_STATUS + \" TEXT,\" +\n NAME_DOWNLOADS + \" INTEGER,\" +\n NAME_DOWNLOAD_LINK + \" TEXT\" +\n \")\";\n // create upload table\n db.execSQL(CREATE_UPLOAD_TABLE);\n }",
"public void setExtraFields(final ZipExtraField[] fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"e57536ae-1bcc-4181-a421-ac13bbd5a9a0\");\n final List<ZipExtraField> newFields = new ArrayList<ZipExtraField>();\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b6219fa6-a243-4666-ac05-1dfe5f55e146\");\n for (final ZipExtraField field : fields) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"ff160a4e-3868-4d55-ae65-f3ec497e79e8\");\n if (field instanceof UnparseableExtraFieldData) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"5ad9dbad-a4cf-4a98-bf17-e11f9d54bd2b\");\n unparseableExtra = (UnparseableExtraFieldData) field;\n } else {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"78045b40-4eb7-43f0-b243-cee81dfeef37\");\n newFields.add(field);\n }\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"519ff1f6-cf34-43b1-81ca-518811f79459\");\n extraFields = newFields.toArray(new ZipExtraField[newFields.size()]);\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"fae5b51d-497d-46f3-b460-cece6c3bfcd3\");\n setExtra();\n }",
"public void tableViewSetup() {\n nameColumn.setCellValueFactory(new PropertyValueFactory<>(\"Name\"));\n productTable.getColumns().add(nameColumn);\n\n manuColumn.setCellValueFactory(new PropertyValueFactory<>(\"Manufacturer\"));\n productTable.getColumns().add(manuColumn);\n\n typeColumn.setCellValueFactory(new PropertyValueFactory<>(\"Type\"));\n productTable.getColumns().add(typeColumn);\n }",
"private void upgradeFilesetTable(TableInfo tableInfo) throws Exception {\n String dsName = tableInfo.getParameters().get(Constants.Explore.CDAP_NAME);\n // except the name was always prefixed by cdap.user.<name>\n dsName = dsName.substring(\"cdap.user.\".length(), dsName.length());\n Id.DatasetInstance datasetID = Id.DatasetInstance.from(Id.Namespace.DEFAULT, dsName);\n DatasetSpecification spec = datasetFramework.getDatasetSpec(datasetID);\n\n // enable the new table\n enableDataset(datasetID, spec);\n\n try (SystemDatasetInstantiator datasetInstantiator = datasetInstantiatorFactory.create()) {\n Dataset dataset = datasetInstantiator.getDataset(datasetID);\n\n // if this is a time partitioned file set, we need to add all partitions\n if (dataset instanceof TimePartitionedFileSet) {\n TimePartitionedFileSet tpfs = (TimePartitionedFileSet) dataset;\n Set<PartitionDetail> partitionDetails = tpfs.getPartitions(null);\n if (!partitionDetails.isEmpty()) {\n QueryHandle handle = exploreTableManager.addPartitions(datasetID, partitionDetails);\n QueryStatus status = waitForCompletion(handle);\n // if add partitions failed, stop\n if (status.getStatus() != QueryStatus.OpStatus.FINISHED) {\n throw new ExploreException(\"Failed to add all partitions to dataset \" + datasetID);\n }\n }\n }\n }\n\n // now it is safe to drop the old table\n dropTable(tableInfo.getTableName());\n }",
"public void autoSizeColumns() {\n\t\tfor (TableColumn column : tableViewer.getTable().getColumns()) {\n\t\t\tcolumn.pack();\n\t\t}\n\t}",
"private void AdditionalSetUpTable() {\n TableColumnModel stuffcm = stuffTable.getColumnModel();\n \n //update: 22 juni 2006 add column code and modal so we can remove them in propertiesComboBox\n //ActionPerformed when we click \"Additonal Properties\"\n //we have to reference name column so we can put category and code column\n //in the left of the name column\n category = stuffcm.getColumn(0);\n code = stuffcm.getColumn(1);\n \n modal = stuffcm.getColumn(3);\n sale = stuffcm.getColumn(4);\n quantity = stuffcm.getColumn(5);\n \n //update: 2 july 2006, add two column; s = t, Third T\n s_t = stuffcm.getColumn(17);\n third = stuffcm.getColumn(18);\n \n //make it middle\n class MiddleCellEditor extends DefaultTableCellRenderer {\n MiddleCellEditor() {\n super();\n setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n }\n }\n quantity.setCellRenderer( new MiddleCellEditor() );\n \n length = stuffcm.getColumn(8);\n length.setCellRenderer( new MiddleCellEditor() );\n width = stuffcm.getColumn(9);\n width.setCellRenderer( new MiddleCellEditor() );\n height = stuffcm.getColumn(10);\n height.setCellRenderer( new MiddleCellEditor() );\n volume = stuffcm.getColumn(11);\n volume.setCellRenderer( new MiddleCellEditor() );\n primary = stuffcm.getColumn(12);\n measurement = stuffcm.getColumn(13);\n measurement.setCellRenderer( new MiddleCellEditor() );\n secondary = stuffcm.getColumn(14);\n produceritem = stuffcm.getColumn(15);\n selleritem = stuffcm.getColumn(16);\n //index column\n TableColumn stuffcol = stuffcm.getColumn(7);\n stuffTable.removeColumn(stuffcol);\n //comment column\n stufftc = stuffTable.getColumnModel().getColumn(6);\n if(!displayComment.isSelected())\n stuffTable.removeColumn(stufftc);\n \n //remove all column first for the first time\n stuffTable.removeColumn(modal);\n stuffTable.removeColumn(sale);\n stuffTable.removeColumn(quantity);\n stuffTable.removeColumn(code);\n stuffTable.removeColumn(category);\n stuffTable.removeColumn(s_t);\n stuffTable.removeColumn(third);\n \n propertiesComboBoxActionPerformed(null);\n \n //additional setup for \"index\" and \"comment\" column on employeeTable\n TableColumnModel employeecm = employeeTable.getColumnModel();\n //index column\n TableColumn employeecol = employeecm.getColumn(9);\n employeeTable.removeColumn(employeecol);\n //comment column\n employeetc = employeecm.getColumn(8);\n if(!displayCommentEmployee.isSelected())\n employeeTable.removeColumn(employeetc);\n \n //additional setup for sellerTable\n TableColumnModel sellercm = sellerTable.getColumnModel();\n //index column\n TableColumn sellercol = sellercm.getColumn(4);\n sellerTable.removeColumn(sellercol);\n //comment column\n sellertc = sellercm.getColumn(3);\n if(!displayCommentSeller.isSelected())\n sellerTable.removeColumn(sellertc);\n \n //additional setup for salesmanTable\n TableColumnModel salesmancm = salesmanTable.getColumnModel();\n //index column\n TableColumn salesmancol = salesmancm.getColumn(8);\n salesmanTable.removeColumn(salesmancol);\n //comment column\n salesmantc = salesmancm.getColumn(7);\n if(!displayCommentSeller.isSelected())\n salesmanTable.removeColumn(salesmantc);\n \n //additional setup for ProducerTable\n TableColumnModel producercm = ProducerTable.getColumnModel();\n //index column\n TableColumn producercol = producercm.getColumn(4);\n ProducerTable.removeColumn(producercol);\n //comment column\n producertc = producercm.getColumn(3);\n if(!DisplayCommentProducer.isSelected())\n ProducerTable.removeColumn(producertc);\n \n //additional setup for customerTable\n TableColumnModel customercm = customerTable.getColumnModel();\n //index column\n TableColumn customercol = customercm.getColumn(4);\n customerTable.removeColumn(customercol);\n //comment column\n customertc = customercm.getColumn(3);\n if(!displayCommentCustomer.isSelected())\n customerTable.removeColumn(customertc);\n \n //additional setup for commisionerTable\n TableColumnModel commisionercm = commisionerTable.getColumnModel();\n //index column\n TableColumn commisionercol = commisionercm.getColumn(4);\n commisionerTable.removeColumn(commisionercol);\n //comment columnlist\n commisionertc = commisionercm.getColumn(3);\n if(!displayCommentCommisioner.isSelected())\n commisionerTable.removeColumn(commisionertc);\n \n //additional setup for debtcreditTable\n// TableColumn debtcreditcol = DebtCreditTable.getColumnModel().getColumn(5);\n// DebtCreditTable.removeColumn(debtcreditcol);\n \n //additional setup for debt table\n TableColumn debtcol = DebtTable.getColumnModel().getColumn(5);\n DebtTable.removeColumn(debtcol);\n \n //additional setup for sale ( edit trans ) table\n TableColumn salecol = SaleTable.getColumnModel().getColumn(6);\n SaleTable.removeColumn(salecol);\n \n //additional setup for purchase ( edit trans ) table\n TableColumn purchasecol = PurchaseTable.getColumnModel().getColumn(6);\n PurchaseTable.removeColumn(purchasecol);\n \n //additional setup for credit table\n TableColumn creditcol = CreditTable.getColumnModel().getColumn(5);\n CreditTable.removeColumn(creditcol);\n \n //additional setup for warehouseTB\n TableColumn warehouseindexcol = WarehouseTB.getColumnModel().getColumn(3);\n WarehouseTB.removeColumn(warehouseindexcol);\n \n //additional setup for containerTB\n TableColumn containerindexcol = ContainerTB.getColumnModel().getColumn(4);\n ContainerTB.removeColumn(containerindexcol);\n }",
"private void addColumnHeader(ColumnProfile p_cp, int p_index)\n {\n String colName = m_proxy.keyAt(p_index);\n if (colName == null)\n {\n colName = UNKNOWN;\n }\n addIndent();\n openStartTag(COLUMN);\n addSpace();\n addKeyValuePair(NAME, colName);\n addSpace();\n addKeyValuePair(TABLE_NAME, p_cp.getTableName());\n addSpace();\n addKeyValuePair(DATA_TYPE, p_cp.getDataType());\n addSpace();\n addKeyValuePair(MAX_LENGTH, \"\" + m_proxy.widthAt(p_index));\n addSpace();\n addKeyValuePair(RULE_ID, \"\" + p_cp.getRuleId());\n addSpace();\n addKeyValuePair(CONTENT_MODE, p_cp.CONTENT_MODES[p_cp.getContentMode() - 1]);\n closeTag();\n }",
"protected void appendPrefixTo(AppendableExt app) throws IOException {\n app.append(\"INSERT INTO \").append(_table)\n .append(\" (\").append(_columns).append(\") \");\n }",
"private void initializeColumns() {\n\n // nameColumn\n nameColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n record.getValue().getFullName()\n ));\n\n // ageColumn\n organColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n record.getValue().getOrgan()));\n\n // genderColumn\n regionColumn.setCellValueFactory(record -> new\n ReadOnlyStringWrapper(record.getValue().getRegion()));\n\n // dateColumn. Depends on the given string\n dateColumn.setCellValueFactory(record -> new ReadOnlyStringWrapper(\n TransplantWaitingList.formatCreationDate(record.getValue().getTimestamp())));\n\n }",
"public void updateMultiRunInventory() {\n\n\t\tExcelFileUtils excelFileUtils = new ExcelFileUtils();\n\t\texcelFileUtils.setSpreadsheetFilePath(spreadsheetFilePath);\n\t\texcelFileUtils.setSheetFormat(sheetFormat);\n\t\texcelFileUtils.setSheetName(sheetName);\n\t\texcelFileUtils.setDebug(true /* this.debug */ );\n\t\texcelFileUtils.setTableData(tableData);\n\t\tif (!appendData) {\n\t\t\tcolumnHeaders = excelFileUtils.readColumnHeaders();\n\t\t\tnewColumnHeader = String.format(\"Run %d\", columnHeaders.size());\n\t\t\texcelFileUtils.appendColumnHeader(newColumnHeader);\n\n\t\t\tcolumnHeaders = excelFileUtils.readColumnHeaders();\n\t\t\tif (debug) {\n\t\t\t\tSystem.err.println(\"Appended column: \" + columnHeaders.toString());\n\t\t\t}\n\t\t\trowData = new HashMap<>();\n\t\t\t// Note: row 0 is reserved for headers\n\t\t\t// for FILLO SQL query based data access\n\t\t\tfor (int column = 0; column != columnHeaders.size(); column++) {\n\t\t\t\trowData.put(column, columnHeaders.get(column));\n\t\t\t}\n\t\t\ttableData.add(rowData);\n\t\t\t// columnHeaders\n\t\t\tfor (String testMethodName : testInventoryData.keySet()) {\n\t\t\t\trowData = new HashMap<>();\n\t\t\t\trowData.put(0, testMethodName);\n\t\t\t\trowData.put(1, testInventoryData.get(testMethodName).toString());\n\t\t\t\ttableData.add(rowData);\n\t\t\t}\n\t\t\texcelFileUtils.setTableData(tableData);\n\t\t} else {\n\t\t\tList<Map<Integer, String>> existingData = new ArrayList<>();\n\t\t\t// NOTE: no need to wrap into an Optional\n\t\t\texcelFileUtils.readSpreadsheet(Optional.of(existingData));\n\t\t\tif (verbose) {\n\t\t\t\tSystem.err.println(\"Adding extra column\");\n\t\t\t}\n\n\t\t\ttableData = new ArrayList<>(); // reset tableData\n\t\t\tfor (Map<Integer, String> rowData : existingData) {\n\t\t\t\tString testMethodName = rowData.get(0); // \"Test Method\"\n\t\t\t\tInteger newColumn = rowData.size();\n\t\t\t\tif (testMethodName.matches(\"Test Method\")) {\n\t\t\t\t\t// continue;\n\t\t\t\t\trowData.put(rowData.size(), String.format(\"Run %d\", newColumn));\n\t\t\t\t} else {\n\t\t\t\t\tif (verbose) {\n\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t.println(\"Adding extra column for test \" + testMethodName);\n\t\t\t\t\t}\n\t\t\t\t\tBoolean testStatus = Boolean\n\t\t\t\t\t\t\t.parseBoolean(testInventoryData.get(testMethodName).toString());\n\t\t\t\t\trowData.put(newColumn, testStatus.toString());\n\t\t\t\t}\n\t\t\t\ttableData.add(rowData);\n\t\t\t\tif (verbose) {\n\t\t\t\t\tfor (Map.Entry<Integer, String> columnData : rowData.entrySet()) {\n\t\t\t\t\t\tSystem.err.println(columnData.getKey().toString() + \" => \"\n\t\t\t\t\t\t\t\t+ columnData.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tSystem.err.println(\"---\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\texcelFileUtils.setTableData(tableData);\n\t\t\texcelFileUtils.writeSpreadsheet();\n\t\t}\n\t}",
"stockFilePT102.StockHeaderDocument.StockHeader addNewStockHeader();",
"public void populateMetaDataUponCompletion() {\r\n\r\n\t\tCTTbl cTTbl = docxTable.getCTTbl();\r\n\t\tList<CTTblGridCol> cols = null;\r\n\t\tCTTblGrid grid = null;\r\n\r\n\t\tif (cTTbl != null) {\r\n\r\n\t\t\tthis.getCTTblPr();\r\n\r\n\t\t\tgrid = this.getCTTblGrid(cTTbl);\r\n\t\t\tcols = grid.getGridColList();\r\n\r\n\t\t}\r\n\r\n\t\tfor (XWPFTableRow row : this.docxTable.getRows()) {\r\n\r\n\t\t\tint diff = row.getTableCells().size() - cols.size();\r\n\r\n\t\t\tfor (int i = 0; i < diff; i++) {\r\n\t\t\t\tgrid.addNewGridCol();\r\n\t\t\t}\r\n\r\n\t\t\tint i = 0;\r\n\r\n\t\t\tfor (XWPFTableCell cell : row.getTableCells()) {\r\n\r\n\t\t\t\tCTTblGridCol gridColumn = cols.get(i);\r\n\r\n\t\t\t\tif (cell.getCTTc().getTcPr().getTcW().getW().intValue() == 0) {\r\n\t\t\t\t\tBigInteger columnWidth = this.getDocumentWidth().divide(\r\n\t\t\t\t\t\t\tBigInteger.valueOf(row.getTableCells().size()));\r\n\t\t\t\t\tcell.getCTTc().getTcPr().getTcW().setW(columnWidth);\r\n\t\t\t\t\tcell.getCTTc().getTcPr().getTcW().setType(STTblWidth.DXA);\r\n\t\t\t\t\tgridColumn.setW(columnWidth);\r\n\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tList<CTTblGridCol> tableCols = grid.getGridColList();\r\n\t\tfor (CTTblGridCol col : tableCols) {\r\n\t\t\t// System.out.println(\"tblGridCol.getW()=\" + col.getW());\r\n\t\t\tif (col.getW() == null) {\r\n\t\t\t\tBigInteger columnWidth = this.getDocumentWidth().divide(\r\n\t\t\t\t\t\tBigInteger.valueOf(tableCols.size()));\r\n\t\t\t\tcol.setW(columnWidth);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void addColumn (String colName) {\n nbOfColumns++;\n header.add(colName);\n for (CSVRow row : rows) {\n row.addElement(\"\");\n }\n }",
"int uploadModis(File file, ModisProduct product, DataDate date, DataDate updated, int horz, int vert) throws IOException, SQLException;",
"private void setAllParameters(int len) {\n\t\t\tshowUPLMN = new String[len] ;\n\t\t\toriginalUPLMN = new String[len] ;\n\t\t\tstrUorG = new String[len] ;\n\t\t\tpart = new byte[len][];\n\t\t\torder = new int[len];\n\t\t\tfor(int i=0;i<len;i++){\n\t\t\t\t part[i] = new byte[6];\n\t\t\t}\n\t\t}",
"public void backupCustom(String... tableName) throws Exception {\n // back up specific files\n QueryDataSet qds = new QueryDataSet(conn);\n for (String str : tableName) {\n\n qds.addTable(str);\n }\n FlatXmlDataSet.write(qds, new FileWriter(backupFile), \"UTF-8\");\n new XlsDataSetWriter().write(qds, new FileOutputStream(backupFile));\n }",
"public void addRawDataColNumbers (ArrayList <Integer> colnumarr){\n this.raw_data_column_numbers = colnumarr; \n }",
"private void writeTextFile(\r\n\t\t\tGDMSMain theMainHomePage,\r\n\t\t\tArrayList<QtlDetailElement> listOfAllQTLDetails, HashMap<Integer, String> hmOfQtlPosition, HashMap<String, Integer> hmOfQtlNameId,\r\n\t\t\tHashMap<Integer, String> hmOfQtlIdandName, String strSelectedExportType, boolean bQTLExists) throws GDMSException {\n\t\t\r\n\t\t\r\n\t\tString strFlapjackTextFile = \"Flapjack\";\r\n\t\tFile baseDirectory = theMainHomePage.getMainWindow().getApplication().getContext().getBaseDirectory();\r\n\t\tFile absoluteFile = baseDirectory.getAbsoluteFile();\r\n\r\n\t\tFile[] listFiles = absoluteFile.listFiles();\r\n\t\tFile fileExport = baseDirectory;\r\n\t\tfor (File file : listFiles) {\r\n\t\t\tif(file.getAbsolutePath().endsWith(\"Flapjack\")) {\r\n\t\t\t\tfileExport = file;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString strFilePath = fileExport.getAbsolutePath();\r\n\t\t//System.out.println(\"strFilePath=:\"+strFilePath);\r\n\t\tgeneratedTextFile = new File(strFilePath + \"\\\\\" + strFlapjackTextFile + \".txt\");\r\n\r\n\t\t/**\twriting tab delimited qtl file for FlapJack \r\n\t\t * \tconsisting of marker chromosome & position\r\n\t\t * \r\n\t\t * **/\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t//factory = new ManagerFactory(GDMSModel.getGDMSModel().getLocalParams(), GDMSModel.getGDMSModel().getCentralParams());\r\n\t\t\tfactory=GDMSModel.getGDMSModel().getManagerFactory();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOntologyDataManager ontManager=factory.getOntologyDataManager();\r\n\t\t\t*/\r\n\t\t\tFileWriter flapjackTextWriter = new FileWriter(generatedTextFile);\r\n\t\t\tBufferedWriter flapjackBufferedWriter = new BufferedWriter(flapjackTextWriter);\r\n\t\t\t//getAllelicValuesByGidsAndMarkerNames\r\n\t\t\t//genoManager.getAlle\r\n\t\t\t//\t\t\t fjackQTL.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\");\r\n\t\t\tflapjackBufferedWriter.write(\"QTL\\tChromosome\\tPosition\\tMinimum\\tMaximum\\tTrait\\tExperiment\\tTrait Group\\tLOD\\tR2\\tFlanking markers in original publication\\teffect\");\r\n\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\tfor (int i = 0 ; i < listOfAllQTLDetails.size(); i++){\r\n\t\t\t\t//System.out.println(listOfAllQTLDetails.get(i));\r\n\t\t\t\tQtlDetailElement qtlDetails = listOfAllQTLDetails.get(i);\r\n\t\t\t\t\r\n\t\t\t\t/*QtlDetailsPK id = qtlDetails.getQtlName().get.getId();\r\n\t\t\t\tInteger qtlId = id.getQtlId();*/\r\n\t\t\t\t//String strQtlName = hmOfQtlIdandName.get(qtlId);\r\n\t\t\t\tString strQtlName =qtlDetails.getQtlName();\r\n\t\t\t\tint qtlId=hmOfQtlNameId.get(strQtlName);\r\n\t\t\t\t//qtlDetails.get\r\n\t\t\t\t//Float clen = qtlDetails.getClen();\r\n\t\t\t\t//Float fEffect = qtlDetails.getEffect();\r\n\t\t\t\tint fEffect = qtlDetails.getEffect();\r\n\t\t\t\tFloat fMaxPosition = qtlDetails.getMaxPosition();\r\n\t\t\t\tFloat fMinPosition = qtlDetails.getMinPosition();\r\n\t\t\t\t//Float fPosition = qtlDetails.getPosition();\r\n\t\t\t\tString fPosition = hmOfQtlPosition.get(qtlId);\r\n\t\t\t\tFloat frSquare = qtlDetails.getRSquare();\r\n\t\t\t\tFloat fScoreValue = qtlDetails.getScoreValue();\r\n\t\t\t\tString strExperiment = qtlDetails.getExperiment();\r\n\t\t\t\t//String strHvAllele = qtlDetails..getHvAllele();\r\n\t\t\t\t//String strHvParent = qtlDetails.getHvParent();\r\n\t\t\t\t//String strInteractions = qtlDetails.getInteractions();\r\n\t\t\t\tString strLeftFlankingMarker = qtlDetails.getLeftFlankingMarker();\r\n\t\t\t\tString strLinkageGroup = qtlDetails.getChromosome();\r\n\t\t\t\t//String strLvAllele = qtlDetails.getLvAllele();\r\n\t\t\t\t//String strLvParent = qtlDetails.getLvParent();\r\n\t\t\t\tString strRightFM = qtlDetails.getRightFlankingMarker();\r\n\t\t\t\t//String strSeAdditive = qtlDetails.getSeAdditive();\r\n\t\t\t\t\r\n\t\t\t\t//String strTrait = qtlDetails.getTrait();\r\n\t\t\t\tString strTrait = qtlDetails.getTRName();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(strQtlName + \"\\t\" + strLinkageGroup + \"\\t\" + fPosition + \"\\t\" + fMinPosition + \"\\t\" + fMaxPosition + \"\\t\" +\r\n\t\t\t\t\t\tstrTrait + \"\\t\" + strExperiment + \"\\t \\t\" + fScoreValue + \"\\t\" + frSquare+\r\n\t \"\\t\" + strLeftFlankingMarker+\"/\"+strRightFM + \"\\t\" + fEffect);\r\n\t\t\t\t\r\n\t\t\t\tflapjackBufferedWriter.write(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tflapjackBufferedWriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new GDMSException(e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t}",
"private void exportToInsertSql() {\n\n if (destTableNameList.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"No table is selected.\");\n return;\n }\n final StringBuilder sb = new StringBuilder();\n for (final String tableName : destTableNameList) {\n utils.executeQuerySql(\"SELECT * FROM \" + tableName + \" WHERE 1=2\", new DataMetaUtils.QueryAction<Object>() {\n @Override\n public Object callback(ResultSet rs) throws SQLException {\n StringBuilder tableTriggerSb = new StringBuilder();\n ResultSetMetaData metaData = rs.getMetaData();\n String auditTableName = tableName + \"_AL\";\n tableTriggerSb.append(\"CREATE TABLE \").append(auditTableName).append(\" (\\n\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n tableTriggerSb.append(\" \");\n tableTriggerSb.append(metaData.getColumnName(i + 1));\n String typeName = metaData.getColumnTypeName(i + 1);\n tableTriggerSb.append(\" \")\n .append(typeName);\n if (metaData.getPrecision(i + 1) > 0) {\n tableTriggerSb.append(\"(\")\n .append(metaData.getPrecision(i + 1));\n if (metaData.getScale(i + 1) > 0) {\n tableTriggerSb.append(\",\")\n .append(metaData.getScale(i + 1));\n }\n tableTriggerSb.append(\")\");\n }\n\n tableTriggerSb.append(\",\\n\");\n\n }\n tableTriggerSb.append(\" ACT_TYPE CHAR(1),\\n\")\n .append(\" ACT_BY VARCHAR2(50),\\n\")\n .append(\" ACT_TIME DATE\\n\");\n tableTriggerSb.append(\");\\n\");\n\n\n //create trigger\n StringBuilder newInsert = new StringBuilder();\n StringBuilder delInsert = new StringBuilder();\n newInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n delInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n delInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(\":NEWROW.\").append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(\":OLDROW.\").append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"v_actType,\")\n .append(\":NEWROW.UPDATED_BY,\")\n .append(\"sysdate);\\n\");\n delInsert.append(\"'D',\")\n .append(\"USER,\")\n .append(\"sysdate);\\n\");\n\n tableTriggerSb.append(\"CREATE OR REPLACE TRIGGER \")\n .append(\"TR_AL_\")\n .append(tableName)\n .append(\" \\n\")\n .append(\"AFTER INSERT OR DELETE OR UPDATE ON \")\n .append(tableName)\n .append(\" \\n\")\n .append(\"REFERENCING OLD AS \\\"OLDROW\\\" NEW AS \\\"NEWROW\\\" \\n\"\n + \"FOR EACH ROW \\n\"\n + \"ENABLE\\n\")\n .append(\"DECLARE\\n\")\n .append(\"v_actType char(1);\\n\")\n .append(\"BEGIN\\n\")\n .append(\"IF INSERTING OR UPDATING THEN \\n\"\n + \"BEGIN \\n\"\n + \"IF INSERTING THEN \\n v_actType := 'I'; \\nELSE\\n v_actType := 'U';\\n END IF;\\n\");\n tableTriggerSb.append(newInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \" ELSIF DELETING THEN \\n\"\n + \" BEGIN \\n\");\n\n tableTriggerSb.append(delInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \"END IF;\\n\"\n + \"END;\\n/\\n\");\n sb.append(tableTriggerSb.toString());\n\n return null;\n }\n });\n }\n\n SqlResultForm form = new SqlResultForm(null, true);\n form.setLocationRelativeTo(null);\n form.setSqlResult(sb.toString());\n form.setTestDsKey(((ValueName) cmbDs.getSelectedItem()).getValue());\n form.setVisible(true);\n\n }",
"protected void sortAndAddColumns( List<ColumnMeta<T>> columnMetas ) {\n for ( ColumnMeta meta : columnMetas ) {\n checkColumnMeta( meta );\n }\n // Sort based on preferences applied\n Collections.sort( columnMetas );\n //Add the columns based on the preferences\n for ( ColumnMeta meta : columnMetas ) {\n addColumn( meta );\n }\n }",
"public void addRawDataColNumber (int colnum){\n raw_data_column_numbers.add(colnum);\n }",
"void write(List<?> columns) throws IOException;",
"public static void setFields(DBFField[] fields) throws UnsupportedEncodingException {\r\n int i = 0;\r\n\r\n fields[i] = new DBFField();\r\n fields[i].setName(\"TIPREG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCFEC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCSER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DOCNUM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(6);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTIP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODMOD\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODTER\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(5);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CTACON\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(12);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPTBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORNOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RECBAS\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORREC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORTES\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"PORFIN\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(6);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"RFDPP\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESHOR\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DESKM\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(11);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TOTFAC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(14);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO1\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO1\");\r\n //fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n // Es numerico pero para insertar valor \"XXX,YY\" \r\n //hay que meterlo como string y despues cambiarlo en dbfmanager -> Structura\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO2\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO2\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO3\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO3\");\r\n // Misma razon que IMPVTO1\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO4\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO5\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"FECVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_D);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"IMPVTO6\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"DIETENT\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(2);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CODFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(3);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"TIPFORPAG\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(1);\r\n //logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n \r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"BASEIMPCC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_C);\r\n fields[i].setFieldLength(10);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n fields[++i] = new DBFField();\r\n fields[i].setName(\"CC\");\r\n fields[i].setDataType(DBFField.FIELD_TYPE_N);\r\n fields[i].setFieldLength(10);\r\n fields[i].setDecimalCount(0);\r\n// logger.log(Level.INFO, \"Campo {0}-{1} - DataType : {2}\", new Object[]{i, fields[i].getName(), getFieldDataType(fields[i].getDataType())});\r\n\r\n //logger.log(Level.INFO, \"Total columnas en fichero .dbf = {0}\", i);\r\n }",
"void write(Object... columns) throws IOException;",
"private void setPOSHeadersToTable() {\r\n\t\tthis.selectedRow = -1;\r\n\t\tif(FileData.getFileModel(FileType.POS) != null) {\r\n\t\t\tColumnData.setPOSHeadersToTableData(FileData.getFileModel(FileType.POS).getFileContents().getHeaderNames());\r\n\t\t}else {\r\n\t\t\tColumnData.getTableData().setRowCount(0);\r\n\t\t}\r\n\t}",
"private void createListFields(SGTable table) {\n\t\t\t\n\t\t ListGridField LIST_COLUMN_FIELD = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145); \n\t\t LIST_COLUMN_FIELD.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105); \n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\",Util.TI18N.LIST_COLUMN_WIDTH(),40); \n\t\t ListGridField LIST_SHOW_FLAG = new ListGridField(\"SHOW_FLAG\",Util.TI18N.LIST_SHOW_FLAG(),50);\n\t\t LIST_SHOW_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t ListGridField MODIFY_FLAG=new ListGridField(\"MODIFY_FLAG\",\"\",50);\n\t\t MODIFY_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t MODIFY_FLAG.setHidden(true);\n\t\t table.setFields(LIST_COLUMN_FIELD, LIST_COLUMN_CNAME, LIST_COLUMN_WIDTH, LIST_SHOW_FLAG,MODIFY_FLAG);\n\t}",
"protected abstract void addTables();",
"public void addColumnDistantMetastasis() {\n addColumnInPrimarySection(ColumnMetaData.KEY_SECTION_METASTASIS);\n }",
"private synchronized void write(RecordOutputStream s) throws IOException {\r\n s.writeIntCompressed(originalNamesToFixedNames.size());\r\n for (final Map.Entry<String, String> entry : originalNamesToFixedNames.entrySet()) { \r\n s.writeUTF(entry.getKey());\r\n s.writeUTF(entry.getValue());\r\n }\r\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"protected void addMetadataFieldsFromParameters() {\n for (Map.Entry<String, String> e: parameters.entrySet()) {\n if (e.getKey().startsWith(\"meta-\")) {\n String fieldName = e.getKey().substring(5);\n String fieldValue = e.getValue();\n currentDoc.addTextualMetadataField(fieldName, fieldValue, getDocWriter().metadataFieldType(false));\n }\n }\n }",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"@Override\n protected void addFields(PdfFile source, Document doc) throws IOException {\n doc.add(createField(SOURCE, downloadService + source.getId()));\n\n String extractedText = extractText(source);\n doc.add(createField(CONTENT, extractedText));\n }",
"public void addHeaderRelationships(boolean include_types) { \n Bundles bs = getRTParent().getRootBundles();\n Iterator<Tablet> it_tab = bs.tabletIterator();\n while (it_tab.hasNext()) {\n Tablet tablet = it_tab.next();\n // System.err.println(\"Tablet \\\"\" + tablet + \"\\\"\");\n int fields[] = tablet.getFields();\n // Only keep the non-null fields\n List<Integer> al = new ArrayList<Integer>(); for (int i=0;i<fields.length;i++) if (fields[i] != -1) al.add(i);\n fields = new int[al.size()]; for (int i=0;i<fields.length;i++) fields[i] = al.get(i);\n // Go through the valid fields now\n for (int i=0;i<fields.length;i++) {\n int hdr_i = fields[i];\n int hdr_j = fields[(i+1)%fields.length];\n\tString hdr_i_str = bs.getGlobals().fieldHeader(hdr_i),\n\t hdr_j_str = bs.getGlobals().fieldHeader(hdr_j);\n // System.err.println(\" \\\"\" + hdr_i_str + \"\\\" => \\\"\" + hdr_j_str + \"\\\"\");\n // Put the symbol\n if (entity_to_shape.containsKey(hdr_i_str) == false) entity_to_shape.put(hdr_i_str, Utils.Symbol.CIRCLE); \n if (entity_to_shape.containsKey(hdr_j_str) == false) entity_to_shape.put(hdr_j_str, Utils.Symbol.CIRCLE); \n\t// Make the world location\n\tif (entity_to_wxy.containsKey(hdr_i_str) == false) { entity_to_wxy.put(hdr_i_str, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1)); transform(hdr_i_str); }\n\tif (entity_to_wxy.containsKey(hdr_j_str) == false) { entity_to_wxy.put(hdr_j_str, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1)); transform(hdr_j_str); }\n\t// Figure out the weights\n\tgraph.addNode(hdr_i_str); graph.addNode(hdr_j_str); digraph.addNode(hdr_i_str); digraph.addNode(hdr_j_str);\n\tdouble g_w = graph.getConnectionWeight(graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(hdr_j_str)),\n\t dg_w = digraph.getConnectionWeight(graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(hdr_j_str));\n if (Double.isInfinite(g_w)) g_w = 0.0; if (Double.isInfinite(dg_w)) dg_w = 0.0;\n // Add the edges\n\t graph.addNeighbor(hdr_i_str, hdr_j_str, g_w + tablet.size());\n\t graph.addNeighbor(hdr_j_str, hdr_i_str, g_w + tablet.size());\n\tdigraph.addNeighbor(hdr_i_str, hdr_j_str, dg_w + tablet.size());\n\t// Associate the bundles with the edge\n\tIterator<Bundle> it_bun = tablet.bundleIterator();\n\twhile (it_bun.hasNext()) {\n\t Bundle bundle = it_bun.next();\n\t graph.addLinkReference( graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(hdr_j_str), bundle);\n\t graph.addLinkReference( graph.getEntityIndex(hdr_j_str), graph.getEntityIndex(hdr_i_str), bundle);\n\t digraph.addLinkReference(digraph.getEntityIndex(hdr_i_str), digraph.getEntityIndex(hdr_j_str), bundle);\n // Include the data types if specified\n\t if (include_types) {\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(bundle.toString(hdr_i));\n // System.err.println(\"Including Type For \\\"\" + bundle.toString(hdr_i) + \"\\\" ==> \" + datatype);\n\t if (datatype != null) {\n graph.addNode(\"\" + datatype); entity_to_shape.put(\"\" + datatype, Utils.Symbol.TRIANGLE);\n\t digraph.addNode(\"\" + datatype); \n\t if (entity_to_wxy.containsKey(\"\" + datatype) == false) {\n\t entity_to_wxy.put(\"\" + datatype, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1)); \n\t\ttransform(\"\" + datatype);\n\t }\n\t g_w = graph.getConnectionWeight(graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(\"\" + datatype));\n\t dg_w = graph.getConnectionWeight(graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(\"\" + datatype));\n if (Double.isInfinite(g_w)) g_w = 0.0; if (Double.isInfinite(dg_w)) dg_w = 0.0;\n\t graph.addNeighbor(\"\" + datatype, hdr_i_str, g_w + 1);\n\t graph.addNeighbor(hdr_i_str, \"\" + datatype, g_w + 1);\n\t digraph.addNeighbor(hdr_i_str, \"\" + datatype, dg_w + 1);\n\t graph.addLinkReference( graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(\"\" + datatype), bundle);\n\t graph.addLinkReference( graph.getEntityIndex(\"\" + datatype), graph.getEntityIndex(hdr_i_str), bundle);\n\t digraph.addLinkReference(digraph.getEntityIndex(hdr_i_str), digraph.getEntityIndex(\"\" + datatype), bundle);\n digraph.addLinkStyle(digraph.getEntityIndex(hdr_i_str), digraph.getEntityIndex(\"\" + datatype), STYLE_DOTTED_STR);\n\t }\n\t }\n\t}\n\t// Add the style\n digraph.addLinkStyle(digraph.getEntityIndex(hdr_i_str), digraph.getEntityIndex(hdr_j_str), STYLE_SOLID_STR);\n }\n }\n getRTComponent().render();\n }",
"private void createListingFile(boolean listingEnabled) throws IOException {\r\n if (listingEnabled) {\r\n try {\r\n // instantiate the File object and creates a new file with extension lst\r\n System.out.println(\"Currently generating the listing file.....\"); //prompts user file is being created\r\n listingFile = new File(sourceName + \".lst\");\r\n // if creating the lst file is successful, then you can start to write in the lst file\r\n listingFile.delete();\r\n if (listingFile.createNewFile()) {\r\n\r\n\r\n writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(sourceName + \".lst\"), \"utf-8\")); //create an object to write into the lst file\r\n String header = String.format(\"%-16s %-16s %-16s %-16s %-16s %-16s %-16s %-16s\", \"Line\",\"Addr\",\"Machine Inst\",\"Machine Operand\", \"Label\",\"Assembly Code\", \"Label Operand\", \"Comments\"); // s string of the categories of the column\r\n writer.write(header + \"\\n\"); // prints the header\r\n\r\n // create String objects to be reused inside the for loop below\r\n String lineAddress;\r\n String label1;\r\n String opCode;\r\n String offset;\r\n String address;\r\n String address1=\"\";\r\n String label2;\r\n String assembly;\r\n String comment;\r\n String linout;\r\n String string;\r\n //String binary;\r\n // a vector of all the line statement\r\n String operand=\"\";\r\n\r\n LineStmt myLine;\r\n // loops through the vector to get each linestatement\r\n\r\n for (int index = 0; index < lineStatements.size(); index++) {\r\n LineStmt line = lineStatements.getLine(index);\r\n lineAddress = String.format(\"%02X\", line.lineAddress.getAddress());\r\n if (line.inst != null) {\r\n operand=address=offset=\"\";\r\n opCode = (line.inst.isOpcodeNull()) ? \"\" : String.format(\"%02X\", line.inst.getOpCode());\r\n\r\n offset = (line.inst.getOffset() == null) ? \"\" : String.format(\"%02X\", line.inst.getOffset().getOffset());\r\n if(offset.length()>2)\r\n offset = offset.substring(offset.length() - 2);\r\n\r\n address = (line.inst.getAddress() == null) ? \"\" : String.format(\"%04X\", line.inst.getAddress().getAddress());\r\n if(address.length()>4)\r\n address = address.substring(address.length() - 4);\r\n if(0< line.inst.getOpCode()&&line.inst.getOpCode() < 0xB0 && address.length()>2 )\r\n address = address.substring(address.length() - 2);\r\n if(address.length() == 4)\r\n address = address.substring(0,2)+\" \"+address.substring(2,4);\r\n assembly = line.inst.getMnemonic();\r\n label2 = (line.inst.getLabel() == null) ? \"\" : line.inst.getLabel().getLabelId();\r\n if(offset.isEmpty())\r\n operand=address;\r\n else\r\n operand =offset;\r\n\r\n generate = generate + \" \" +opCode.strip()+\" \"+address.strip()+\" \"+offset.strip();\r\n if (line.inst.isOpcodeNull()) {\r\n label2 = line.inst.getDirString();\r\n\r\n opCode = generateString(label2);\r\n generate = generate + opCode;\r\n }\r\n\r\n\r\n } else\r\n opCode = offset = address = label2 = assembly = \"\";\r\n\r\n label1 = (line.label == null) ? \" \" : line.label.getLabelId();\r\n comment = (line.comment == null) ? \"\" : line.comment.getCommentString();\r\n linout =\"\";\r\n\r\n linout = String.format(\"%-16s %-16s %-16s %-16s %-16s %-16s %-16s %-16s\", Integer.toString(index + 1), lineAddress, opCode, operand,label1,assembly,label2,comment);\r\n linout += \"\\n\";\r\n System.out.print(linout);\r\n if(listingEnabled)\r\n writer.write(linout); // inserts the line into the lst file+ \"\\t\\t\\t\\t\"\r\n\r\n }\r\n generate = generate.trim().replaceAll(\"\\\\s{2,}\", \" \");\r\n System.out.print(\"Generate: \"+generate);\r\n if(listingEnabled)\r\n writer.write(\"Generate: \"+generate);\r\n writer.close();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Error: Listing File cannot be made.\");\r\n }\r\n }\r\n }",
"private void displayExtendedMetaData(Station station) {\n // fill and show mime type bottom sheet view\n if (station.getMimeType() != null) {\n TextView stationDataSheetMimeTypeView = (TextView) mRootView.findViewById(R.id.station_data_sheet_mime_type);\n stationDataSheetMimeTypeView.setText(station.getMimeType());\n mStationDataSheetMimeTypeLayout.setVisibility(View.VISIBLE);\n }\n // fill and show channel count bottom sheet view\n if (station.getChannelCount() > 0) {\n TextView stationDataSheetChannelCountView = (TextView) mRootView.findViewById(R.id.station_data_sheet_channel_count);\n stationDataSheetChannelCountView.setText(String.valueOf(station.getChannelCount()));\n mStationDataSheetChannelCountLayout.setVisibility(View.VISIBLE);\n }\n // fill and show sample rate bottom sheet view\n if (station.getSampleRate() > 0) {\n TextView stationDataSheetSampleRateView = (TextView) mRootView.findViewById(R.id.station_data_sheet_sample_rate);\n stationDataSheetSampleRateView.setText(String.valueOf(station.getSampleRate()));\n mStationDataSheetSampleRateLayout.setVisibility(View.VISIBLE);\n }\n // fill and show bit rate bottom sheet view\n if (station.getBitrate() > 0) {\n TextView stationDataSheetBitRateView = (TextView) mRootView.findViewById(R.id.station_data_sheet_bitrate);\n stationDataSheetBitRateView.setText(String.valueOf(station.getBitrate()));\n mStationDataSheetBitRateLayout.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n protected AdqlValidator.ValidatorTable[] getExtraTables() {\n TopcatModel[] tcModels = getTopcatModels();\n List<AdqlValidator.ValidatorTable> vtList =\n new ArrayList<AdqlValidator.ValidatorTable>();\n for ( int it = 0; it < tcModels.length; it++ ) {\n TopcatModel tcModel = tcModels[ it ];\n String[] aliases = getUploadAliases( tcModel );\n for ( int ia = 0; ia < aliases.length; ia++ ) {\n String tname = \"TAP_UPLOAD.\" + aliases[ ia ];\n vtList.add( toValidatorTable( tcModel, tname ) );\n }\n }\n return vtList.toArray( new AdqlValidator.ValidatorTable[ 0 ] );\n }",
"protected DesiredField[] istenenAlanlariOlustur() {\n DFHelper dh = new DFHelper(new LOG_View());\n DesiredField[] df = dh.buFieldleriOlustur(\"username\", \"eventName\", \"tableName\", \"eventDateTARIH\", \"eventDateSAAT\", \"currentdata\", \"olddata\");\n dh.fieldBasliklariSunlarOlsun(\"Kullanıcı Adı\", \"Yapılan İşlem\", \"Tablo Adı\", \"Tarihi\", \"Saati\", \"Yeni Data\", \"Eski Data\");\n df[5].setMaxWidth(350);\n df[6].setMaxWidth(350);\n return df;\n }",
"@Override\n protected void initialiseUiColumns() {\n }",
"private void adjustAttributeColumnsNumbers(int newNumberOfColumns) {\n\t\t// too short\n\t\tif (getAllAttributeColumns().size() < newNumberOfColumns) {\n\t\t\tint actualNumberOfAttributes = getAllAttributeColumns().size();\n\t\t\tint numberOfNewColumns = newNumberOfColumns - actualNumberOfAttributes;\n\t\t\tString[] genericNames = new String[numberOfNewColumns];\n\t\t\tfor (int i = 0; i < numberOfNewColumns; i++) {\n\t\t\t\tgenericNames[i] = getNewGenericColumnName(actualNumberOfAttributes + i);\n\t\t\t}\n\t\t\tfor (String name : genericNames) {\n\t\t\t\tattributeColumns.add(new AttributeColumn(name));\n\t\t\t}\n\n\t\t}\n\t\t// too long\n\t\tif (getAllAttributeColumns().size() > newNumberOfColumns) {\n\t\t\tList<AttributeColumn> list = new ArrayList<>();\n\t\t\tfor (int i = 0; i < newNumberOfColumns; i++) {\n\t\t\t\tlist.add(getAttributeColumn(i));\n\t\t\t}\n\t\t\tattributeColumns = list;\n\t\t}\n\t}",
"public void getColumnModelForGSTR2_B2BDetails(JSONArray jarrRecords, JSONArray jarrColumns, JSONObject params) throws JSONException {\n String storeRec = \"\";\n\n String section = params.optString(\"section\");\n Locale requestcontextutilsobj = null;\n if (params.has(\"requestcontextutilsobj\")) {\n requestcontextutilsobj = (Locale) params.opt(\"requestcontextutilsobj\");\n }\n JSONObject jobjTemp = new JSONObject();\n storeRec = \",supplierName,date,gstin,billno,hsnno,value,taxableAmt,type,invNum,cess,igstamt,cgstamt,sgstamt,entityid,documentType,portcode,invoicetype\"\n + \",IGSTrate,IGSTamount,CGSTrate,CGSTamount,SGSTrate,SGSTamount,placeofsupply,ecomoperator,statecode,customer,originalhsnno,originaltype,totalTax,totalAmt,transtype,invoiceid,originalinvoicedate,originalinvoiceno,supplierType,supplierinvoiceno\";\n \n String[] recArr = storeRec.split(\",\");\n // Get those fields in record for whome, no special properties present like type, defVal, mapping etc.\n for (String rec : recArr) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"name\", rec);\n if (rec.equals(\"taxableAmt\") || rec.equals(\"igstamt\") || rec.equals(\"cgstamt\") || rec.equals(\"sgstamt\")\n || rec.equals(\"totalTax\") || rec.equals(\"totalAmt\") || rec.equals(\"cess\")) {\n jobjTemp.put(\"type\", \"float\");\n }\n jarrRecords.put(jobjTemp);\n }\n boolean hideFlag=false;\n if(params.optString(\"InvType\").equals(\"Import_of_service\")||params.optString(\"InvType\").equals(\"B2B_Unregistered\")||params.optString(\"InvType\").equals(\"Credit_note_unreg\")){\n hideFlag=true;\n }\n\n //\"Customer Name\"\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.supplierName\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"supplierName\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n \n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.supplierGSTIN\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"gstin\");\n jobjTemp.put(\"hidden\", hideFlag);\n jobjTemp.put(\"summaryRenderer\", \"function(){\\n\"\n + \" return '<div class=\\\"grid-summary-common\\\">'+WtfGlobal.getLocaleText(\\\"acc.common.total\\\")+'</div>'\\n\"\n + \" }\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n \n if (params.optString(\"InvType\").equals(\"Import_of_goods\") || params.optString(\"InvType\").equals(\"Nil_rated\")) {\n hideFlag = true;\n }\n if(params.optString(\"InvType\").equals(\"Import_of_service\")||params.optString(\"InvType\").equals(\"B2B_Unregistered\")){\n hideFlag = false;\n }\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.invoice.gridInvNo\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"invNum\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"hidden\", hideFlag);\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n \n if(params.optString(\"InvType\").equals(\"Import_of_service\")){\n hideFlag = true;\n }\n \n if (params.optString(\"InvType\").equals(\"Import_of_service\")||params.optString(\"InvType\").equals(\"Credit_note_reg\")||params.optString(\"InvType\").equals(\"B2B_reg\")||params.optString(\"InvType\").equals(\"B2B_Unregistered\")) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.agedPay.invoiceDate\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"date\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n }\n if (params.optString(\"InvType\").equals(\"Import_of_service\")||params.optString(\"InvType\").equals(\"Import_of_goods\")||params.optString(\"InvType\").equals(\"B2B_reg\")) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.CP.supplierinvoicenumber\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"supplierinvoiceno\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n }\n if (params.optString(\"InvType\").equals(\"Import_of_goods\")) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.billNo\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"invNum\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.billEntryDate\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"date\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n \n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.portCode\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"portcode\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n }\n if (params.optString(\"InvType\").equals(\"Credit_note_reg\")) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.field.DocumentType\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"invoicetype\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n }\n if (params.optString(\"InvType\").equals(\"Credit_note_unreg\")) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.invoice.gridInvNo\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"invNum\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.agedPay.invoiceDate\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"date\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.field.DocumentType\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"invoicetype\");\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.supplierType\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"supplierType\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.masterConfig.22\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.dnList.reason\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"reason\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n }\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.field.TotalInvoiceAmount\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"totalAmt\");\n jobjTemp.put(\"align\", \"right\");\n jobjTemp.put(\"renderer\", \"WtfGlobal.withoutRateCurrencyDeletedSymbol\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"summaryType\", \"sum\");\n jobjTemp.put(\"summaryRenderer\", \"WtfGlobal.currencySummaryRenderer\");\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n\n if (params.optString(\"InvType\").equals(\"B2B_Unregistered\")) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr1.placeofsupply\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"placeofsupply\");\n jobjTemp.put(\"summaryRenderer\", \"function(){\\n\"\n + \" return '<div class=\\\"grid-summary-common\\\">'+WtfGlobal.getLocaleText(\\\"acc.common.total\\\")+'</div>'\\n\"\n + \" }\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.supplierType\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"supplierType\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n }\n if(params.optString(\"InvType\").equals(\"Import_of_service\")){\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.dnList.reason\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"reason\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp); \n \n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr1.placeofsupply\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"placeofsupply\");\n jobjTemp.put(\"summaryRenderer\", \"function(){\\n\"\n + \" return '<div class=\\\"grid-summary-common\\\">'+WtfGlobal.getLocaleText(\\\"acc.common.total\\\")+'</div>'\\n\"\n + \" }\");\n jobjTemp.put(\"width\", 110);\n jobjTemp.put(\"pdfwidth\", 110);\n jarrColumns.put(jobjTemp);\n }\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.contract.product.replacement.Status\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"\"); \n jobjTemp.put(\"hidden\", hideFlag); \n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n \n if(params.optString(\"InvType\").equals(\"Credit_note_reg\")){\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.noteNumber\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"originalinvoiceno\");\n jobjTemp.put(\"hidden\", hideFlag);\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr2.noteDate\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"originalinvoicedate\"); \n jobjTemp.put(\"hidden\", hideFlag);\n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n }\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr1.taxableamount\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"taxableAmt\");\n jobjTemp.put(\"align\", \"right\");\n jobjTemp.put(\"renderer\", \"WtfGlobal.withoutRateCurrencyDeletedSymbol\");\n jobjTemp.put(\"summaryType\", \"sum\");\n jobjTemp.put(\"summaryRenderer\", \"WtfGlobal.currencySummaryRenderer\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr1.IGST\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"igstamt\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"renderer\", \"WtfGlobal.withoutRateCurrencyDeletedSymbol\");\n jobjTemp.put(\"align\", \"right\");\n jobjTemp.put(\"summaryType\", \"sum\");\n jobjTemp.put(\"summaryRenderer\", \"WtfGlobal.currencySummaryRenderer\");\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr1.CGST\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"cgstamt\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"renderer\", \"WtfGlobal.withoutRateCurrencyDeletedSymbol\");\n jobjTemp.put(\"align\", \"right\");\n jobjTemp.put(\"summaryType\", \"sum\");\n jobjTemp.put(\"summaryRenderer\", \"WtfGlobal.currencySummaryRenderer\");\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr1.SGST\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"sgstamt\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"renderer\", \"WtfGlobal.withoutRateCurrencyDeletedSymbol\");\n jobjTemp.put(\"align\", \"right\");\n jobjTemp.put(\"summaryType\", \"sum\");\n jobjTemp.put(\"summaryRenderer\", \"WtfGlobal.currencySummaryRenderer\");\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n \n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.gstr1.cessamount\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"cess\");\n jobjTemp.put(\"align\", \"right\");\n jobjTemp.put(\"renderer\", \"WtfGlobal.withoutRateCurrencyDeletedSymbol\");\n jobjTemp.put(\"summaryType\", \"sum\");\n jobjTemp.put(\"summaryRenderer\", \"WtfGlobal.currencySummaryRenderer\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n \n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", \"<b>\" + messageSource.getMessage(\"acc.contract.product.replacement.Status\", null, requestcontextutilsobj) + \"<b>\");\n jobjTemp.put(\"dataIndex\", \"\"); \n jobjTemp.put(\"align\", \"left\");\n jobjTemp.put(\"width\", 120);\n jobjTemp.put(\"pdfwidth\", 120);\n jarrColumns.put(jobjTemp);\n \n\n }",
"private void initColumnBtech()\r\n\t{\r\n\t\tstudNoBColumn.setCellValueFactory(new PropertyValueFactory<>(\"studendID\"));\r\n\t\tnameBColumn.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n\t\tsurnameBColumn.setCellValueFactory(new PropertyValueFactory<>(\"surname\"));\r\n\t\tsupervisorBColumn.setCellValueFactory(new PropertyValueFactory<>(\"supervisor\"));\r\n\t\temailBColumn.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\r\n\t\tcellphoneNoBColumn.setCellValueFactory(new PropertyValueFactory<>(\"cellphone\"));\r\n\t\tstationBColumn.setCellValueFactory(new PropertyValueFactory<>(\"station\"));\r\n\t\tcourseBColumn.setCellValueFactory(new PropertyValueFactory<>(\"course\"));\r\n\t}"
] | [
"0.57896745",
"0.5454141",
"0.5352506",
"0.5270884",
"0.5204446",
"0.5154191",
"0.5060553",
"0.5047045",
"0.5035472",
"0.5034527",
"0.49765113",
"0.49611965",
"0.4943708",
"0.4931372",
"0.4920955",
"0.49159798",
"0.49010038",
"0.4859525",
"0.48135984",
"0.4808761",
"0.48087415",
"0.48022604",
"0.47975954",
"0.47925103",
"0.47836316",
"0.47699594",
"0.47697145",
"0.47531894",
"0.4750783",
"0.47411004",
"0.4736567",
"0.4736016",
"0.47334653",
"0.47181848",
"0.469321",
"0.46913204",
"0.46850097",
"0.4682757",
"0.46808532",
"0.46683842",
"0.46656233",
"0.4632764",
"0.46185958",
"0.4616407",
"0.4606559",
"0.4605887",
"0.45898625",
"0.45897302",
"0.45869774",
"0.45768598",
"0.45758608",
"0.45726714",
"0.45717078",
"0.4563198",
"0.45586622",
"0.45524767",
"0.45486525",
"0.4546045",
"0.45423812",
"0.45417738",
"0.45331007",
"0.45309058",
"0.4530341",
"0.4527403",
"0.45223764",
"0.4520004",
"0.45181417",
"0.45167303",
"0.4513324",
"0.45127636",
"0.45101273",
"0.4498571",
"0.4493465",
"0.44915238",
"0.44889724",
"0.44883597",
"0.44864607",
"0.44848478",
"0.44795018",
"0.4477291",
"0.44745043",
"0.44729695",
"0.44701517",
"0.4469827",
"0.44687584",
"0.4468302",
"0.44671148",
"0.4463647",
"0.44616425",
"0.44607666",
"0.44591787",
"0.44559047",
"0.4448596",
"0.44461578",
"0.44419912",
"0.4440551",
"0.4439933",
"0.44388178",
"0.44387576",
"0.4430822",
"0.44286862"
] | 0.0 | -1 |
String strSourceFileName = ""; String strDataFileName = ""; String strAdditonalGIDsFileNameForDArt = ""; | private void getMarkerFields() {
String strMarkerType = _strMarkerType.replace(" ", "");
FieldProperties[] listOfSourceFieldProperties = null;
FieldProperties[] listOfDataFieldProperties = null;
FieldProperties[] listOfGIDsFieldPropertiesForDArT = null;
listOfSourceColumnFields = new ArrayList<FieldProperties>();
listOfDataColumnFields = new ArrayList<FieldProperties>();
listOfAdditionalGIDsColumnFieldsForDArT = new ArrayList<FieldProperties>();
if (strMarkerType.equals("SSRMarker")){
//strSourceFileName = "SSRMarker";
listOfSourceFieldProperties = UploadTableFields.SSRMarker;
strSourceSheetTitle = "SSRMarkers";
} else if (strMarkerType.equals("SNPMarker")){
//strSourceFileName = "SNPMarker";
listOfSourceFieldProperties = UploadTableFields.SNPMarker;
strSourceSheetTitle = "SNPMarkers";
} else if (strMarkerType.equals("CISRMarker")){
//strSourceFileName = "CISRMarker";
listOfSourceFieldProperties = UploadTableFields.CISRMarker;
strSourceSheetTitle = "CISRMarkers";
} else if (strMarkerType.equals("CAPMarker")){
//strSourceFileName = "CAPMarker";
listOfSourceFieldProperties = UploadTableFields.CAPMarker;
strSourceSheetTitle = "CAPMarkers";
} else if (strMarkerType.equals("SSRGenotype")){
//strSourceFileName = "SSRGenotype_Source";
//strDataFileName = "SSRGenotype_Data";
listOfSourceFieldProperties = UploadTableFields.SSRGenotype_Source;
listOfDataFieldProperties = UploadTableFields.SSRGenotype_Data;
strSourceSheetTitle = "SSR_Source";
strDataSheetTitle = "SSR_Data List";
} /*else if (strMarkerType.equals("SNPGenotype")){
//strSourceFileName = "SNPGenotype_Source";
//strDataFileName = "SNPGenotype_Data";
listOfSourceFieldProperties = UploadTableFields.SNPGenotype_Source;
listOfDataFieldProperties = UploadTableFields.SNPGenotype_Data;
strSourceSheetTitle = "SNPGenotype_Source";
strDataSheetTitle = "SNPGenotype_Data";
} */
else if (strMarkerType.equals("GenericSNP")){
//"Generic SNP"
//TODO: 20131206: Tulasi --- Implementation pending - to display the data from the template in the table
listOfSourceFieldProperties = UploadTableFields.SNPGenotype_Source;
listOfDataFieldProperties = UploadTableFields.SNPGenotype_Data;
strSourceSheetTitle = "SNPGenotype_Source";
strDataSheetTitle = "SNPGenotype_Data";
} else if (strMarkerType.equals("LGCGenomicsSNP")){
//"LGC Genomics SNP"
//TODO: 20131206: Tulasi --- Implementation pending - to display the data from the template in the table
listOfSourceFieldProperties = UploadTableFields.LGCGenomicsSNPGenotype_Source;
listOfDataFieldProperties = UploadTableFields.LGCGenomicsSNPGenotype_Data;
strSourceSheetTitle = "LGCGenomicsSNPGenotype_Source";
strDataSheetTitle = "LGCGenomicsSNPGenotype_Data";
} else if (strMarkerType.equals("DArtGenotype")){
//strSourceFileName = "DArtGenotype_Source";
//strDataFileName = "DArtGenotype_Data";
//strAdditonalGIDsFileNameForDArt = "DArtGenotype_GID";
listOfSourceFieldProperties = UploadTableFields.DArtGenotype_Source;
listOfDataFieldProperties = UploadTableFields.DArtGenotype_Data;
listOfGIDsFieldPropertiesForDArT = UploadTableFields.DArtGenotype_GID;
strSourceSheetTitle = "DArT_Source";
strDataSheetTitle = "DArT_Data";
strGIDsSheetTitleForDArT = "DArT_GIDs";
} else if (strMarkerType.equals("AllelicData") || strMarkerType.equals("ABHData") ){
//strSourceFileName = "MappingGenotype_Source";
//strDataFileName = "MappingGenotype_Data";
listOfSourceFieldProperties = UploadTableFields.MappingGenotype_Source;
listOfDataFieldProperties = UploadTableFields.MappingGenotype_Data;
strSourceSheetTitle = "Mapping_Source";
strDataSheetTitle = "Mapping_DataList";
} else if (strMarkerType.equals("QTL")){
//strSourceFileName = "QTL_Source";
//strDataFileName = "QTL_Data";
listOfSourceFieldProperties = UploadTableFields.QTL_Source;
listOfDataFieldProperties = UploadTableFields.QTL_Data;
strSourceSheetTitle = "QTL_Source";
strDataSheetTitle = "QTL_Data";
} else if (strMarkerType.equals("Map")){
//strSourceFileName = "Map_Source";
//strDataFileName = "Map_Data";
listOfSourceFieldProperties = UploadTableFields.Map_Source;
listOfDataFieldProperties = UploadTableFields.Map_Data;
strSourceSheetTitle = "Map_Source";
strDataSheetTitle = "Map_Data";
} else if (strMarkerType.equals("MTA")){
//strSourceFileName = "Map_Source";
//strDataFileName = "Map_Data";
listOfSourceFieldProperties = UploadTableFields.MTA_Source;
listOfDataFieldProperties = UploadTableFields.MTA_Data;
strSourceSheetTitle = "Map_Source";
strDataSheetTitle = "Map_Data";
}else {
listOfSourceFieldProperties = UploadTableFields.SSRMarker;
}
if (null != listOfSourceFieldProperties){
for (FieldProperties fieldProperties : listOfSourceFieldProperties) {
listOfSourceColumnFields.add(fieldProperties);
}
}
if (null != listOfDataFieldProperties){
for (FieldProperties fieldProperties : listOfDataFieldProperties) {
listOfDataColumnFields.add(fieldProperties);
}
if (null != listOfVariableDataColumns){
for (String columnTitle : listOfVariableDataColumns){
FieldProperties fieldProperties = new FieldProperties(columnTitle, UploadField.REQUIRED.toString(), "", "");
listOfDataColumnFields.add(fieldProperties);
}
}
}
if (null != listOfGIDsFieldPropertiesForDArT){
for (FieldProperties fieldProperties : listOfGIDsFieldPropertiesForDArT) {
listOfAdditionalGIDsColumnFieldsForDArT.add(fieldProperties);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void fillFilenames() {\r\n if (this.pl_LastFiles.getParam(\"nodelist-file\") != null\r\n && this.pl_LastFiles.getParam(\"edgelist-file\") != null) {\r\n this.nodefileText.setText(this.pl_LastFiles.getParam(\"nodelist-file\"));\r\n this.edgeFileText.setText(this.pl_LastFiles.getParam(\"edgelist-file\"));\r\n } else {\r\n this.nodefileText.setText(\"examples\" + System.getProperty(\"file.separator\") + \"20nodes.txt\");\r\n this.edgeFileText.setText(\"examples\" + System.getProperty(\"file.separator\") + \"20edges.txt\");\r\n }\r\n }",
"String prepareFile();",
"Source createDatasourceZ3950IdFile(Source ds, Provider prov) throws RepoxException;",
"public static void processData() {\n\t\tString dirName = \"C:\\\\research_data\\\\mouse_human\\\\homo_b47_data\\\\\";\r\n\t//\tString GNF1H_fName = \"GNF1H_genes_chopped\";\r\n\t//\tString GNF1M_fName = \"GNF1M_genes_chopped\";\r\n\t\tString GNF1H_fName = \"GNF1H\";\r\n\t\tString GNF1M_fName = \"GNF1M\";\r\n\t\tString mergedValues_fName = \"GNF1_merged_expression.txt\";\r\n\t\tString mergedPMA_fName = \"GNF1_merged_PMA.txt\";\r\n\t\tString discretizedMI_fName = \"GNF1_discretized_MI.txt\";\r\n\t\tString discretizedLevels_fName = \"GNF1_discretized_levels.txt\";\r\n\t\tString discretizedData_fName = \"GNF1_discretized_data.txt\";\r\n\t\t\r\n\t\tboolean useMotifs = false;\r\n\t\tMicroArrayData humanMotifs = null;\r\n\t\tMicroArrayData mouseMotifs = null;\r\n\t\t\r\n\t\tMicroArrayData GNF1H_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1H_PMA = new MicroArrayData();\r\n\t\tGNF1H_PMA.setDiscrete();\r\n\t\tMicroArrayData GNF1M_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1M_PMA = new MicroArrayData();\r\n\t\tGNF1M_PMA.setDiscrete();\r\n\t\t\r\n\t\ttry {\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma\"); */\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.txt.homob44\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.txt.homob44\"); */\r\n\t\t\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.sn.txt\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.sn.txt\");\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (useMotifs) {\r\n\t\t\thumanMotifs = new MicroArrayData();\r\n\t\t\tmouseMotifs = new MicroArrayData();\r\n\t\t\tloadMotifs(humanMotifs,GNF1H_value.geneNames,mouseMotifs,GNF1M_value.geneNames);\r\n\t\t}\r\n\t\t\r\n\t\t// combine replicates in PMA values\r\n\t\tint[][] H_PMA = new int[GNF1H_PMA.numRows][GNF1H_PMA.numCols/2];\r\n\t\tint[][] M_PMA = new int[GNF1M_PMA.numRows][GNF1M_PMA.numCols/2];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tint k = 0;\r\n\t\tint v = 0;\r\n\t\tk = 0;\r\n\t\tj = 0;\r\n\t\twhile (j<GNF1H_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<H_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1H_PMA.dvalues[i][j] > 0 & GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0 | GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tH_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tj = 0;\r\n\t\tk = 0;\r\n\t\twhile (j<GNF1M_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<M_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1M_PMA.dvalues[i][j] > 0 & GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0 | GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tM_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tint numMatched = 31;\r\n\t\t\r\n\t/*\tGNF1H_value.numCols = numMatched;\r\n\t\tGNF1M_value.numCols = numMatched; */\r\n\t\t\r\n\t\tint[][] matchPairs = new int[numMatched][2];\r\n\t\tfor(i=0;i<numMatched;i++) {\r\n\t\t\tmatchPairs[i][0] = i;\r\n\t\t\tmatchPairs[i][1] = i + GNF1H_value.numCols;\r\n\t\t}\r\n\t\t\r\n\t//\tDiscretizeAffyData H_discretizer = new DiscretizeAffyData(GNF1H_value.values,H_PMA,0);\r\n\t//\tH_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1H_value.values,H_PMA,GNF1H_value.numCols);\r\n\t\t\r\n\t//\tDiscretizeAffyData M_discretizer = new DiscretizeAffyData(GNF1M_value.values,M_PMA,0);\r\n\t//\tM_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1M_value.values,M_PMA,GNF1M_value.numCols);\r\n\t\t\r\n\t\tdouble[][] mergedExpression = new double[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[][] mergedPMA = new int[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[] species = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1H_value.values[i],0,mergedExpression[i],0,GNF1H_value.numCols);\r\n\t\t\tSystem.arraycopy(H_PMA[i],0,mergedPMA[i],0,GNF1H_value.numCols);\t\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1M_value.values[i],0,mergedExpression[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t\tSystem.arraycopy(M_PMA[i],0,mergedPMA[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t}\r\n\t\t\r\n\t\t// concatenate experiment and gene names\r\n\t\tfor (i=0;i<GNF1H_value.numCols;i++) {\r\n\t\t\tGNF1H_value.experimentNames[i] = \"h_\" + GNF1H_value.experimentNames[i];\r\n\t\t\tspecies[i] = 1;\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numCols;i++) {\r\n\t\t\tGNF1M_value.experimentNames[i] = \"m_\" + GNF1M_value.experimentNames[i];\r\n\t\t\tspecies[i+GNF1H_value.numCols] = 2;\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedExperimentNames = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\tSystem.arraycopy(GNF1H_value.experimentNames,0,mergedExperimentNames,0,GNF1H_value.numCols);\r\n\t\tSystem.arraycopy(GNF1M_value.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\tif (useMotifs) {\r\n\t\t\tSystem.arraycopy(humanMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols,humanMotifs.numCols);\r\n\t\t\tSystem.arraycopy(mouseMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols+humanMotifs.numCols,mouseMotifs.numCols);\r\n\t\t\tfor (i=0;i<humanMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols] = 3;\r\n\t\t\t}\r\n\t\t\tfor (i=0;i<mouseMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols] = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedGeneNames = new String[GNF1H_value.numRows];\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tmergedGeneNames[i] = GNF1H_value.geneNames[i] + \"|\" + GNF1M_value.geneNames[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] filterList = new int[GNF1M_value.numRows];\r\n\t\tint numFiltered = 0;\r\n\t\tdouble maxExpressedPercent = 1.25;\r\n\t\tint maxExpressed_H = (int) Math.floor(maxExpressedPercent*((double) GNF1H_value.numCols));\r\n\t\tint maxExpressed_M = (int) Math.floor(maxExpressedPercent*((double) GNF1M_value.numCols));\r\n\t\tint numExpressed_H = 0;\r\n\t\tint numExpressed_M = 0;\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tnumExpressed_H = 0;\r\n\t\t\tfor (j=0;j<GNF1H_value.numCols;j++) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1H_value.values[i][j])) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t\t\tnumExpressed_H++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnumExpressed_M = 0;\r\n\t\t\tfor (j=0;j<GNF1M_value.numCols;j++) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1M_value.values[i][j])) {\r\n\t\t\t\t\tnumExpressed_M++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (numExpressed_M >= maxExpressed_M | numExpressed_H >= maxExpressed_H) {\r\n\t\t\t\tfilterList[i] = 1;\r\n\t\t\t\tnumFiltered++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGNF1H_value = null;\r\n\t\tGNF1H_PMA = null;\r\n\t\tGNF1M_value = null;\r\n\t\tGNF1M_PMA = null;\r\n\t\t\r\n\t\tdouble[][] mergedExpression2 = null;\r\n\t\tif (numFiltered > 0) {\r\n\t\t\tk = 0;\r\n\t\t\tint[][] mergedPMA2 = new int[mergedPMA.length-numFiltered][mergedPMA[0].length];\r\n\t\t\tif (!useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length];\r\n\t\t\t} else {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t}\r\n\t\t\tString[] mergedGeneNames2 = new String[mergedGeneNames.length-numFiltered];\r\n\t\t\tfor (i=0;i<filterList.length;i++) {\r\n\t\t\t\tif (filterList[i] == 0) {\r\n\t\t\t\t\tmergedPMA2[k] = mergedPMA[i];\r\n\t\t\t\t\tif (!useMotifs) {\r\n\t\t\t\t\t\tmergedExpression2[k] = mergedExpression[i];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[k],0,mergedExpression[i].length);\r\n\t\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[k],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[k],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmergedGeneNames2[k] = mergedGeneNames[i];\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmergedPMA = mergedPMA2;\r\n\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\tmergedGeneNames = mergedGeneNames2;\r\n\t\t} else {\r\n\t\t\tif (useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t\tfor (i=0;i<mergedExpression.length;i++) {\r\n\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[i],0,mergedExpression[i].length);\r\n\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[i],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[i],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t}\r\n\t\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tDiscretizeAffyPairedData discretizer = new DiscretizeAffyPairedData(mergedExpression,mergedPMA,matchPairs,20);\r\n\t\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = discretizer.expression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = discretizer.numExperiments;\r\n\t\tmergedData.numRows = discretizer.numGenes;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tdiscretizer.discretizeDownTree(dirName+discretizedMI_fName);\r\n\t\t\tdiscretizer.mergeDownLevels(3,dirName+discretizedLevels_fName);\r\n\t\t\tdiscretizer.transposeDExpression();\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t\tmergedData.dvalues = discretizer.dExpression;\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t/*\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = mergedExpression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = mergedExpression[0].length;\r\n\t\tmergedData.numRows = mergedExpression.length;\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t//\tmergedData.dvalues = simpleDiscretization(mergedExpression,mergedPMA);\r\n\t\t\tmergedData.dvalues = simpleDiscretization2(mergedExpression,species);\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} */\r\n\t\t\r\n\t}",
"public String getDataFileName() {\treturn dataFileName;\t}",
"private void processGeneFile(String inputFilename, String taxonID) throws IOException {\n BufferedReader reader = createInputFileReader(inputFilename);\n String line;\n String[] columns;\n \n \t// Skip the first line\n line = reader.readLine();\n while (reader.ready()) {\n line = reader.readLine();\n \t\t//writeToDebugFile(line);\n \t\tif (line.substring(0,1).equals(\"#\")) {\n \t\twriteToErrorFile(line, \"Comment\");\n \t\t\tcontinue;\n \t\t}\n columns = line.split(INPUT_COLUMN_DELIM);\n \n String rgdID = columns[0].trim();\n \n // If line contains column names (usually first line), skip it\n if (rgdID.equals(\"GENE_RGD_ID\")) continue;\n \n String geneSymbol = columns[1].trim();\n String chromosome = columns[6].trim(); \n \n \t\t// columns[14] == start base pair\n \t\t// columns[15] == end base pair\n \t\t// columns[16] == strand (- or +)\n \n String mapLocation = getMapLocation(columns[14], columns[15], columns[16].trim());\n \n // The following columns may contain multiple items\n String[] entrezGeneIDs = splitListColumn(columns[20]);\n String[] swissProtIDs = splitListColumn(columns[21]);\n String[] genBankRNAIDs = splitListColumn(columns[23]);\n String[] genBankProteinIDs = splitListColumn(columns[25]);\n String[] unigeneIDs = splitListColumn(columns[26]);\n String[] ensemblIDs;\n \n // if columns.length < 38, the last column (Ensembl ID) is missing\n // from the input file\n if (columns.length < 38) {\n // since there are no EnsemblIDs, set the variable to an empty array,\n // which is what splitListColumn() would do\n ensemblIDs = EMPTY_STRING_ARRAY;\n } else {\n //ensemblIDs = columns[37].split(INPUT_LIST_DELIM);\n ensemblIDs = splitListColumn(columns[37]);\n }\n \n // Write RGD Info\n writeToInfoFile(taxonID, RGD_ID_TYPE, rgdID, chromosome, mapLocation);\n \n // Write Gene Symbol and Ensembl ID Info and Links\n if (!geneSymbol.equals(\"\")) {\n writeToInfoFile(taxonID, \"Gene Symbol\", geneSymbol, chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Gene Symbol\",geneSymbol);\n }\n for (int i = 0; i < ensemblIDs.length; i++) {\n writeToInfoFile(taxonID, \"Ensembl ID\", ensemblIDs[i], chromosome, mapLocation);\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"Ensembl ID\",ensemblIDs[i]);\n }\n \n // Handle NCBI RefSeq and non-RefSeq IDs (both RNA and Protein)\n for (int i = 0; i < genBankRNAIDs.length; i++) {\n String genBankRNAID = genBankRNAIDs[i];\n if (isRefSeq(genBankRNAID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq RNA ID\",genBankRNAIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI RNA ID\",genBankRNAIDs[i]);\n }\n }\n for (int i = 0; i < genBankProteinIDs.length; i++) {\n String genBankProteinID = genBankProteinIDs[i];\n if (isRefSeq(genBankProteinID)) {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"RefSeq Protein ID\",genBankProteinIDs[i]);\n } else {\n writeToLinksFile(RGD_ID_TYPE,rgdID,\"NCBI Protein ID\",genBankProteinIDs[i]);\n }\n } \n \n // create Links entries for the rest\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"Entrez Gene ID\",Arrays.asList(entrezGeneIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"SwissProt ID\",Arrays.asList(swissProtIDs));\n writeCollectionToLinksFile(RGD_ID_TYPE,rgdID,\"UniGene ID\",Arrays.asList(unigeneIDs));\n } \n reader.close();\n }",
"public static void main(String args[]) throws IOException {\r\n\t\t\r\n\r\n// /**Any -> TXT **/\r\n//\t\t\r\n//\t\tgetTXTfromAny(\"./images/DJI_0707.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0708.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0709.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0710.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0711.txt\");\r\n//\t\tgetTXTfromAny(\"./images/DJI_0712.txt\");\r\n\t\t\r\n\t\t/**Any -> BMP **/\r\n//\t\tgetBMPfromAny(\"./images/DJI_0707.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0708.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0709.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0710.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0711.JPG\");\r\n//\t\tgetBMPfromAny(\"./images/DJI_0712.JPG\");\r\n\t\t\r\n//\t\t/**Any -> JPG **/\r\n\t\tgetJPGfromAny(\"./images/DJI_0707.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0708.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0709.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0710.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0711.txt\");\r\n\t\tgetJPGfromAny(\"./images/DJI_0712.txt\");\r\n\r\n\t}",
"public static void main(String rgsArgs[]){\n\t\t\n\t\tString rgs1[];\n\t\tString rgs2[];\n\t\tint rgi1[];\n\t\tArgumentIO arg1;\n\t\tArrayList<String> lstOut;\n\t\tBufferedReader bfr1;\n\t\tString s1;\n\t\tint iCol = -9999;\n\t\t\n\t\t//loading data\n\t\targ1 = new ArgumentIO(rgsArgs);\n\t\t\n\t\t//initializing output\n\t\tlstOut = new ArrayList<String>();\n\t\tlstOut.add(\"START_DATE,END_DATE,DURATION\");\n\t\tDataIO.writeToFile(lstOut,arg1.getValueString(\"sOutputPath\"));\n\t\tlstOut = new ArrayList<String>(1000);\n\t\t\n\t\t//looping through output lines\n\t\ttry{\n\t\t\t\n\t\t\tbfr1 = new BufferedReader(new FileReader(arg1.getValueString(\"sDataPath\")));\n\t\t\ts1 = bfr1.readLine();\n\t\t\trgs2 = s1.split(\",\");\n\t\t\tfor(int i=0;i<rgs2.length;i++){\n\t\t\t\tif(rgs2[i].equals(arg1.getValueString(\"sCodeColumn\"))){\n\t\t\t\t\tiCol = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\ts1 = bfr1.readLine();\n\t\t\twhile(s1!=null){\n\t\t\t\trgs2 = s1.split(\",\");\t\t\t\t\n\t\t\t\ts1 = bfr1.readLine();\n\t\t\t\t\n\t\t\t\trgs1 = new String[2];\n\t\t\t\trgs1[0] = rgs2[iCol].substring(0, 2);\n\t\t\t\trgs1[1] = rgs2[iCol].substring(2, 4);\n\t\t\t\trgi1 = new int[2];\n\t\t\t\tfor(int k=0;k<rgs1.length;k++){\n\t\t\t\t\tif(rgs1[k].startsWith(\"A\")){\n\t\t\t\t\t\trgs1[k]=rgs1[k].replace(\"A\",\"200\");\n\t\t\t\t\t}else if(rgs1[k].startsWith(\"B\")){\n\t\t\t\t\t\trgs1[k]=rgs1[k].replace(\"B\",\"201\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\trgs1[k]=\"19\"+rgs1[k];\n\t\t\t\t\t}\n\t\t\t\t\trgi1[k]=Integer.parseInt(rgs1[k]);\n\t\t\t\t}\n\t\t\t\tlstOut.add(rgi1[0]+\"-01-01,\" + rgi1[1]+\"-12-31,\" + (rgi1[1]-rgi1[0]+1));\n\t\t\t\t\n\t\t\t\tif(lstOut.size()==1000){\n\t\t\t\t\tDataIO.writeToFile(lstOut,arg1.getValueString(\"sOutputPath\"),true);\n\t\t\t\t\tlstOut = new ArrayList<String>();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(lstOut.size()!=0){\n\t\t\t\tDataIO.writeToFile(lstOut,arg1.getValueString(\"sOutputPath\"),true);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//terminating\n\t\tSystem.out.println(\"Done.\");\n\t}",
"public void m6621a(String str) {\n int i;\n ArrayList<C0937a> arrayList;\n C0938a.m5002a(\"SR/SoundRecorder\", \"<addMarksToDB> filePath: \" + str);\n boolean z = true;\n Cursor cursor = null;\n try {\n Cursor query = getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new String[]{\"_id\"}, \"_data=?\", new String[]{str}, (String) null);\n if (query == null || query.getCount() != 1) {\n i = -1;\n } else {\n query.moveToFirst();\n i = query.getInt(0);\n }\n if (query != null) {\n try {\n query.close();\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"<addMarksToDB> Exception: \" + e.toString());\n }\n }\n } catch (Exception e2) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"<addMarksToDB> cannot open meida database: \" + e2.toString());\n if (cursor != null) {\n try {\n cursor.close();\n } catch (Exception e3) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"<addMarksToDB> Exception: \" + e3.toString());\n }\n }\n i = -1;\n } catch (Throwable th) {\n if (cursor != null) {\n try {\n cursor.close();\n } catch (Exception e4) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"<addMarksToDB> Exception: \" + e4.toString());\n }\n }\n throw th;\n }\n C0938a.m5002a(\"SR/SoundRecorder\", \"<addMarksToDB> recFileId: \" + i);\n C0938a.m5002a(\"SR/SoundRecorder\", \"<addMarksToDB> insert start -------- \");\n StringBuilder sb = new StringBuilder();\n sb.append(\"<addMarksToDB> mDB is null ?\");\n if (this.f5404X != null) {\n z = false;\n }\n sb.append(z);\n C0938a.m5002a(\"SR/SoundRecorder\", sb.toString());\n if (!(this.f5404X == null || (arrayList = this.f5382B) == null || arrayList.size() < 0)) {\n int size = this.f5382B.size();\n this.f5418ga = size;\n C0938a.m5002a(\"SR/SoundRecorder\", \"<addMarksToDB> mMarksList size: \" + size);\n ContentValues contentValues = new ContentValues();\n for (int i2 = 0; i2 < size; i2++) {\n C0938a.m5002a(\"SR/SoundRecorder\", \"<addMarksToDB>insert : \" + i2);\n if (i != -1) {\n contentValues.put(\"_mark_recfile_id\", Integer.valueOf(i));\n contentValues.put(\"_mark_path\", str);\n contentValues.put(\"_mark_time_length\", Long.valueOf(this.f5382B.get(i2).mo5064b()));\n contentValues.put(\"_mark_name\", this.f5382B.get(i2).mo5061a());\n }\n try {\n if (this.f5404X != null) {\n this.f5404X.mo5341a(\"recordermarks\", contentValues);\n }\n } catch (Exception e5) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"<addMarksToDB>,Exception = \" + e5);\n }\n contentValues.clear();\n }\n }\n C0938a.m5002a(\"SR/SoundRecorder\", \"<addMarksToDB> insert end ------- \");\n ArrayList<C0937a> arrayList2 = this.f5382B;\n if (arrayList2 != null && arrayList2.size() > 0) {\n C0938a.m5002a(\"SR/SoundRecorder\", \"<addMarksToDB>, mMarksList.clear()!\");\n this.f5382B.clear();\n this.f5394N.post(new C1308a(this));\n }\n }",
"public String getFileTypeDescription() {\n return \"GrADS Binary Gridded Data\";\n }",
"public String getSourceFileName() { return sourceFileName; }",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"static void parseData(Map<String, Set<String>> sourceOutputStrings, Set<String> trueTuples) throws IOException{\n\t\tBufferedReader dataFile = new BufferedReader(new FileReader(DATAFILE));\n\t\t\n\t\tSet<String> bookSet = new HashSet<String>();\n\t\tSet<String> authorSet = new HashSet<String>();\n\t\tSet<String> tupleSet = new HashSet<String>();\n\t\tSet<String> sourceSet = new HashSet<String>();\n\t\t\n\t\tString s;\n\t\tSet<String> sourceBlackList = new HashSet<String>();\n\t\t// remove below books? increases isolated errors, although there should still be correlations between errors such as using first name\n\t\tsourceBlackList.add(\"A1Books\");\n\t\tsourceBlackList.add(\"Indoo.com\");\n\t\tsourceBlackList.add(\"Movies With A Smile\");\n\t\tsourceBlackList.add(\"Bobs Books\");\n\t\tsourceBlackList.add(\"Gunars Store\");\n\t\tsourceBlackList.add(\"Gunter Koppon\");\n\t\tsourceBlackList.add(\"Quartermelon\");\n\t\tsourceBlackList.add(\"Stratford Books\");\n\t\tsourceBlackList.add(\"LAKESIDE BOOKS\");\n\t\tsourceBlackList.add(\"Books2Anywhere.com\");\n\t\tsourceBlackList.add(\"Paperbackshop-US\");\n\t\tsourceBlackList.add(\"tombargainbks\");\n\t\tsourceBlackList.add(\"Papamedia.com\");\n\t\tsourceBlackList.add(\"\");\n\t\tsourceBlackList.add(\"\");\n\t\tsourceBlackList.add(\"\");\n\t\t\n\t\tPattern pattern = Pattern.compile(\"[^a-z]\", Pattern.CASE_INSENSITIVE);\n\t\twhile ((s = dataFile.readLine()) != null) {\n\t\t\tif (s.indexOf('\\t') == -1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString[] fields = s.split(\"\\t\");\n\t\t\tif (fields.length != 4) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinal String sourceId = fields[0];\n\t\t\tif (sourceBlackList.contains(sourceId)) {\n\t\t\t\t//continue;\n\t\t\t}\n\t\t\tfinal String bookId = fields[1];\n\t\t\tfinal String authorString = fields[3];\n\t\t\tList<String> authorList = parseAuthorString(authorString);\n\t\t\t\n\t\t\tbookSet.add(bookId);\n\t\t\tauthorSet.addAll(authorList);\n\t\t\tsourceSet.add(sourceId);\n\t\t\tif (!sourceOutputStrings.containsKey(sourceId)) {\n\t\t\t\tsourceOutputStrings.put(sourceId, new HashSet<String>());\n\t\t\t}\n\t\t\tfor (String author : authorList) {\n\t\t\t\tMatcher matcher = pattern.matcher(author.trim());\n\t\t\t\tif (matcher.find()) {\n\t\t\t\t\tcontinue; // Skip author names that have a special character, since they are likely a parsing error.\n\t\t\t\t}\n\t\t\t\tif (author.equals(\"\")) { // Sometimes, trailing commas result in empty author strings. \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tfinal String tuple = bookId + \"\\t\" + author.trim();\n\t\t\t\ttupleSet.add(tuple);\n\t\t\t\tsourceOutputStrings.get(sourceId).add(tuple);\n\t\t\t}\n\t\t}\n\t\tdataFile.close();\n\n\t\tBufferedReader labelledDataFile = new BufferedReader(new FileReader(ISBNLABELLEDDATAFILE));\t\t\n\t\twhile ((s = labelledDataFile.readLine()) != null) {\n\t\t\tString[] fields = s.split(\"\\t\");\n\t\t\tif (fields.length < 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinal String bookId = fields[0];\n\t\t\tfinal String authorString = fields[1];\n\t\t\tString[] authors = authorString.split(\"; \");\n\t\t\tfor (int i = 0; i < authors.length; i++) {\n\t\t\t\tauthors[i] = canonicalize(authors[i].trim());\n\t\t\t\ttrueTuples.add(bookId + \"\\t\" + authors[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tlabelledDataFile.close();\n\t}",
"private void readGraphsFromFiles() {\n\n\n \t\ttry {\t\n\t\t\t// where to find SN files\n\t\t\tString fileName = \"./networks/SN_20000\";\n\t\t\tint numberSNs = 5;\n\t\t\t\n\t\t\t// TODO CHANGE! IT IS JUST FOR TESTING. OUT OF MEMORY\n\t\t\tfileNamesGraphs = new String[numberSNs];\n\t\t\tfileNamesGraphs [0]= fileName + \"_0.001.dgs\";\n\t\t\tfileNamesGraphs [1]= fileName + \"_0.002.dgs\";\n\t\t\tfileNamesGraphs [2]= fileName + \"_0.003.dgs\";\n\t\t\tfileNamesGraphs [3]= fileName + \"_0.004.dgs\";\n\t\t\tfileNamesGraphs [4]= fileName + \"_0.005.dgs\";\n\t\t\t//files [5]= fileName + \"_0.001.dgs\";\n\t\t\t//files [6]= fileName + \"_0.001.dgs\";\n\t\t\t//files [7]= fileName + \"_0.001.dgs\";\n\t\t\t//files [8]= fileName + \"_0.001.dgs\";\n\t\t\t//files [9]= fileName + \"_0.001.dgs\";\n\n\t long time1 = System.currentTimeMillis( );\n\n\t\t\t// first create a list of Graphs\n\t\t\tthis.graphsFromFiles = new ArrayList<Graph>();\t\n\t\t\t\n\t\t\tfor (int i = 0; i < numberSNs; i++) {\n\t\t\t\tGraph graphFromFile;\n\t\t\t\tgraphFromFile = new SingleGraph(\"SN\" + i);\n\t\t\t\tthis.graphsFromFiles.add(graphFromFile);\n\t\t\t}\n\t\t\n\t\t\tFileSourceDGS fileSource = new FileSourceDGS();\n\t\t\t\t\t\n\t\t\tfor (int i = 0; i < numberSNs; i++) {\n\t\t\t\tfileSource.addSink(this.graphsFromFiles.get(i));\t\t\t\t\n\t\t\t\tfileSource.readAll(fileNamesGraphs[i]);\n\t\t\t\tfileSource.removeSink(this.graphsFromFiles.get(i));\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tlong time2 = System.currentTimeMillis( );\n\t\t\tSystem.out.println(\"readGraphsFromFiles: \" + (double)(time2 - time1)/1000 \n\t\t\t\t\t+ \"s for reading the SN files\");\n\t \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t \tSystem.out.println(\"Error when reading SN files\");\n\t\t}\n\t\t\t\t\t\n\t}",
"public static void main(String[] args) throws IOException {\n String last = \"\";\n HashSet<String> types = new HashSet<String>();\n\n int c = 0;\n try {\n FileReader fr = new FileReader(inDir + \"fr\" + \"/wkd_uris_selection\");\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n addToFile(line);\n c++;\n //if(c > 100) break;\n }\n\n fw.close();\n br.close();\n } catch (FileNotFoundException fne) {// TODO\n fne.printStackTrace();\n } catch (IOException ioe) {// TODO\n ioe.printStackTrace();\n }\n\n }",
"public static void main(String[] args) throws Exception {\r\n\t\t\r\n\t\tAccessDBParser.doInit();\r\n\t\t\r\n//\t\tString ff0812A = \"D:/ForBdcom/0812_PP/0812A.xlsx\";\r\n//\t\tString ff0812B = \"D:/ForBdcom/0812_PP/0812B.xlsx\";\r\n//\t\t\r\n//\t\tString ff0813A = \"D:/ForBdcom/0813_PP/0813A1.xlsx\";\r\n//\t\tString ff0813B = \"D:/ForBdcom/0813_PP/0813B1.xlsx\";\r\n//\t\t\r\n//\t\tString ff0814A = \"D:/ForBdcom/0814_PP/0814A.xlsx\";\r\n//\t\tString ff0814B = \"D:/ForBdcom/0814_PP/0814B.xlsx\";\r\n\t\t\r\n//\t\tString ff0815A = \"D:/ForBdcom/0815_PP/0815A.xlsx\";\r\n//\t\tString ff0815B = \"D:/ForBdcom/0815_PP/0815B.xlsx\";\r\n\t\t\r\n//\t\tString ff0819A = \"D:/ForBdcom/0819_PP/0819A.xlsx\";\r\n//\t\tString ff0819B = \"D:/ForBdcom/0819_PP/0819B.xlsx\";\r\n\t\t\r\n\t\tString ff0820A = \"D:/ForBdcom/0820_PP/0820A.xlsx\";\r\n\t\tString ff0821A = \"D:/ForBdcom/0821_PP/0821A.xlsx\";\r\n\t\tString ff0822A = \"D:/ForBdcom/0822_PP/0822A.xlsx\";\r\n\t\t\r\n\t\tdoParse(ff0820A);\r\n\t\tdoParse(ff0821A);\r\n\t\tdoParse(ff0822A);\r\n\t\t\r\n\t\tSystem.out.println( KWObj.pnnullCounter );\r\n\r\n\t\t\r\n\t}",
"public static DataSet Make_d_DataSet( String EventFileName,\n String DetCalFileName,\n String bankInfoFileName,\n String MappingFileName,\n float firstToLoad,\n float numToLoad,\n float min,\n float max,\n boolean isLog,\n float first_logStep,\n int nUniformbins,\n boolean useDspaceMap,\n String DspaceMapFile,\n boolean useGhosting,\n String GhostInfoFile,\n int nGhostIDs,\n int nGhosts )\n throws Exception\n {\n String Instrument = FileIO.getSNSInstrumentName( EventFileName );\n SNS_Tof_to_Q_map SMap = new SNS_Tof_to_Q_map( Instrument, \n DetCalFileName,\n bankInfoFileName,\n MappingFileName,\n null );\n \n int[][] ghost_ids = null;\n double[][] ghost_weights = null;\n if ( useGhosting )\n {\n if ( nGhostIDs <= 0 )\n throw new IllegalArgumentException(\n \"Specify correct number of DAS IDs, not \" + nGhostIDs );\n\n if ( nGhosts <= 0 )\n throw new IllegalArgumentException(\n \"Specify correct ghost levels(16?), not \" + nGhosts );\n try\n {\n FileUtil.CheckFile( GhostInfoFile );\n }\n catch ( Exception ex )\n {\n String default_dir = SharedData.getProperty(\"ISAW_HOME\",\"\") +\n \"/InstrumentInfo/SNS/\" + Instrument + \"/\";\n GhostInfoFile = default_dir + Instrument + \"_GhostPks.dat\";\n FileUtil.CheckFile ( GhostInfoFile );\n }\n\n Vector V = FileUtil.LoadGhostMapFile( GhostInfoFile, \n nGhostIDs, \n nGhosts );\n System.out.println(\"Loaded Ghost map from \" + GhostInfoFile );\n ghost_ids =(int[][]) V.firstElement( );\n ghost_weights =(double[][]) V.lastElement( );\n }\n\n double[] d_map = null;\n if ( useDspaceMap )\n {\n try\n {\n FileUtil.CheckFile( DspaceMapFile );\n }\n catch ( Exception ex )\n {\n throw new IllegalArgumentException(\n \"Requested d-space map file \" + DspaceMapFile +\n \" can't be read.\" );\n/*\n String default_dir = SharedData.getProperty(\"ISAW_HOME\",\"\") +\n \"/InstrumentInfo/SNS/\" + Instrument + \"/\";\n DspaceMapFile = default_dir + Instrument + \"_dspacemap.dat\";\n FileUtil.CheckFile ( DspaceMapFile );\n*/\n }\n\n d_map = FileUtil.LoadDspaceMapFile( DspaceMapFile );\n System.out.println(\"Loaded d-space map from \" + DspaceMapFile );\n }\n \n IEventBinner binner;\n if( isLog)\n binner = new LogEventBinner( min, max, first_logStep);\n else\n binner = new UniformEventBinner( min,max,nUniformbins);\n\n SNS_TofEventList STOF = new SNS_TofEventList(EventFileName);\n\n long firstEvent = (long)firstToLoad;\n long NumEventsToLoad = (long)numToLoad;\n\n if ( firstEvent >= STOF.numEntries() )\n throw new IllegalArgumentException(\"first event \" + firstEvent +\n \" exceeds number of events in file \" + STOF.numEntries());\n\n // keep events in range\n long last = firstEvent + NumEventsToLoad - 1;\n if ( last >= STOF.numEntries() )\n last = STOF.numEntries() - 1;\n\n long num_to_load = last - firstEvent + 1;\n long seg_size = DEFAULT_SEG_SIZE;\n long num_segments = num_to_load / seg_size + 1;\n long num_loaded = 0;\n\n Vector ops = new Vector();\n for ( int i = 0; i < num_segments; i ++ )\n {\n seg_size = Math.min( seg_size, num_to_load - num_loaded );\n\n Make_d_Histograms_Op op;\n op = new Make_d_Histograms_Op( SMap,\n STOF, firstEvent, seg_size,\n binner,\n d_map,\n ghost_ids, ghost_weights );\n ops.add( op );\n num_loaded += seg_size;\n firstEvent += seg_size;\n }\n\n ParallelExecutor pe = new ParallelExecutor(ops, n_threads, max_time);\n Vector results = pe.runOperators();\n\n float[][] Histograms = CombinePartialHistograms( results );\n\n if( Histograms == null)\n return null;\n\n int run_num = getRunNumber( EventFileName );\n\n String title = Instrument + \"_\"+ run_num + \"_d-spacing\";\n if ( useGhosting)\n title += \"(Ghost)\";\n\n String log_message = \"Mapped events to d \";\n if ( useDspaceMap )\n log_message += \"using d-space map\\n\";\n else\n log_message += \"using instrument geometry\\n\";\n\n if ( useGhosting )\n log_message += \"formed GHOST histogram one Data block per bank.\";\n else\n log_message += \"formed histogram one Data block per bank.\";\n \n DataSet DS = MakeDataSet( Histograms, \n binner, \n title, \n log_message,\n useGhosting );\n \n DS.setX_units( \"Angstroms\");\n DS.setX_label( \"d-Spacing\" );\n DS.setY_units( \"Counts\" );\n DS.setY_label( \"Scattering Intensity\" );\n \n AddBankDetectorPositions( DS, SMap );\n SetAttributes( DS, EventFileName, SMap );\n\n DataSetFactory.add_d_Operators( DS );\n\n return DS;\n }",
"static void initializeData() {\n\n if (timeLimitInHour != -1) {\n endTime = startTime + timeLimitInHour * 60 * 60 * 1000;\n }\n\n // Read the data file.\n data = new Data(dataFileName);\n\n // Build all variables.\n allVariable = data.buildAllVariable();\n\n // Read the target gene set.\n GeneSet geneSet = new GeneSet(allVariable, targetGeneSetFileName, minGeneSetSize, maxGeneSetSize, selectedCollections);\n listOfTargetGeneSets = geneSet.buildListOfGeneSets();\n\n // Read sample class labels.\n readSampleClass();\n\n // Initialize remaining fields.\n if (numberOfThreads == 0)\n numberOfThreads = getRuntime().availableProcessors();\n\n // Initialize BufferedWriter with preliminary info for log file.\n String fileInfo = \"EDDY OUTPUT FILE\\n\";\n fileInfo += (\"Data File: \" + dataFileName + \"\\n\");\n fileInfo += (\"Target Gene Set(s) File: \" + targetGeneSetFileName + \"\\n\");\n fileInfo += (\"Class Label File: \" + sampleClassInformationFileName + \"\\n\");\n fileInfo += (\"Number of Gene Sets: \" + listOfTargetGeneSets.size() + \"\\n\");\n fileInfo += (\"Number of Threads: \" + numberOfThreads + \"\\n\\n\");\n \n // log command line options, in verbatim \n fileInfo += concatStrings(commandLine) + \"\\n\\n\";\n \n fileInfo += (\"Name: \\tCollection: \\tSize: \\tURL: \\tJS Divergence: \\tP-Value: \\t#Permutations: \\tGenes: \\n\");\n try {\n \t// TODO: need to come up with a better way to assign the output file name.\n String fileName = targetGeneSetFileName.substring(0, targetGeneSetFileName.indexOf(\".gmt\")) + \"_output.txt\";\n \n File file = new File(fileName);\n \n output = new BufferedWriter(new FileWriter(file));\n output.write(fileInfo);\n } catch ( IOException e ) {\n e.printStackTrace();\n }\n\n }",
"Source updateDatasourceZ3950IdFile(Source ds) throws RepoxException;",
"protected void createBasicData(File tmpFile)\r\n\t{\t\t \r\n\t\tfileNumber++;\r\n\t\tScanner sc2 = null;\r\n\t try {\r\n\t sc2 = new Scanner(tmpFile);\r\n\t } catch (FileNotFoundException e) {\r\n\t e.printStackTrace(); \r\n\t }\r\n\t while (sc2.hasNextLine()) {\r\n\t Scanner s2 = new Scanner(sc2.nextLine());\r\n\t while (s2.hasNext()) {\r\n\t String tmpWord = s2.next();\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\W\", \"\"); //replace all special characters with \"\"\r\n\t tmpWord = tmpWord.replaceAll(\"\\\\d\", \"\"); //replace all digits with \"\"\r\n\t tmpWord = tmpWord.toLowerCase();\r\n\t if(!(tmpWord.equals(\"\")))\r\n\t {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Inserting into location_order table\r\n\t\t\t\t\t\t String query = \"insert ignore into location_order (word, docID, file_name, visible)\" + \" values (?, ?, ?, ?)\";\r\n\t\t\t\t\t // create the mysql insert preparedstatement\r\n\t\t\t\t\t PreparedStatement preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setInt (2, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (3,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (4, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t //Inserting into soundex table\r\n\t\t\t\t\t query = \"insert ignore into tmp_soundex (word, soundex, docID, file_name, visible)\" + \" values (?, ?, ?, ?, ?)\";\r\n\t\t\t\t\t // insert preparedstatement\r\n\t\t\t\t\t preparedStmt = con.prepareStatement(query);\r\n\t\t\t\t\t preparedStmt.setString (1,tmpWord);\r\n\t\t\t\t\t preparedStmt.setString (2,sndx.encode(tmpWord));\r\n\t\t\t\t\t preparedStmt.setInt (3, fileNumber);\t\r\n\t\t\t\t\t preparedStmt.setString (4,tmpFile.getName());\r\n\t\t\t\t\t preparedStmt.setInt (5, 1);\t\r\n\t\t\t\t\t // execute the preparedstatement\r\n\t\t\t\t\t preparedStmt.executeUpdate();\r\n\t\t\t\t\t con.commit();\r\n\t\t\t\t\t \r\n\t\t\t\t\t preparedStmt.close();\r\n\t\t\t\t\t System.out.println(\"Inserted the word: \"+tmpWord+\" | DocID is: \"+fileNumber +\"|\" +\" Name:: \"+tmpFile.getName());\r\n\t\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t} catch(NumberFormatException nfe){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid data input!\", \"Error!\", 2);\r\n\t\t\t\t\t}\r\n\t }\r\n\t }\r\n\t s2.close();\r\n\t }\r\n\t sc2.close();\r\n\t}",
"public Long getInfile_()\n{\nreturn getInputDataItemId(\"infile_\");\n}",
"private void getParameters() {\r\n\t\ttry {\r\n\t\t\tp_encoding = \"ISO-8859-1\";\r\n\t\t\tp_page_encoding = \"utf-8\";\r\n\t\t\tp_labels_data_file = \"resources/units/labels.txt\";\r\n\t\t\tp_multiplier_data_file = \"resources/units/muldata.txt\";\r\n\t\t\tp_category_data_file = \"resources/units/catdata.txt\";\r\n\t\t\tp_unit_data_file = \"resources/units/unitdata.txt\";\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treadDataFile(0, p_multiplier_data_file); //read data from external text file\r\n\t\treadDataFile(1, p_category_data_file); //read data from external text file\r\n\t\treadDataFile(2, p_unit_data_file); //read data from external text file\r\n\t\treadDataFile(3, p_labels_data_file); //read data from external text file\r\n\t}",
"public Files(){\n this.fileNameArray.add(\"bridge_1.txt\");\n this.fileNameArray.add(\"bridge_2.txt\");\n this.fileNameArray.add(\"bridge_3.txt\");\n this.fileNameArray.add(\"bridge_4.txt\");\n this.fileNameArray.add(\"bridge_5.txt\");\n this.fileNameArray.add(\"bridge_6.txt\");\n this.fileNameArray.add(\"bridge_7.txt\");\n this.fileNameArray.add(\"bridge_8.txt\");\n this.fileNameArray.add(\"bridge_9.txt\");\n this.fileNameArray.add(\"ladder_1.txt\");\n this.fileNameArray.add(\"ladder_2.txt\");\n this.fileNameArray.add(\"ladder_3.txt\");\n this.fileNameArray.add(\"ladder_4.txt\");\n this.fileNameArray.add(\"ladder_5.txt\");\n this.fileNameArray.add(\"ladder_6.txt\");\n this.fileNameArray.add(\"ladder_7.txt\");\n this.fileNameArray.add(\"ladder_8.txt\");\n this.fileNameArray.add(\"ladder_9.txt\");\n }",
"public void insertFileDesc(String fileGID, String fileID, String sKey, String iv, String type, String descr) {\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_insertFileDesc);\n\t\t\tps.setInt(1, fileIdGlobal++);\n\t\t\tps.setString(2, fileGID);\n\t\t\tps.setString(3, fileID);\n\t\t\tps.setString(4, sKey);\n\t\t\tps.setString(5, iv);\n\t\t\tps.setString(6, type);\n\t\t\tps.setString(7, descr);\n\t\t\tps.executeUpdate();\n\t\t\t\n\t\t\tString query= \"INSERT INTO File VALUES (\"+ fileGID+\",\"+fileID+\",\"+sKey+\",\"+iv+\",\"+type+\",\"+descr+\")\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t}\n\n\t}",
"public NameSurferDataBase(String filename) {\t\n\t\tnameData(filename);\n\t}",
"public String getFileNameToInsert()\r\n\t{\n\t\tif(n1<n2 || algo==1)\r\n\t\t\treturn getFileName(0);\r\n\t\telse\r\n\t\t\treturn getFileName(1);\r\n\t}",
"public DataInput( String filepath)\r\n {\r\n this.filepath = filepath;\r\n }",
"private void stripDownGeneData(String[] targetGenes) {\n String[][] newGene2GO = new String[targetGenes.length][];\n int index = 0;\n for (String target : targetGenes) {\n for (int i = 0; i < this.genes.length; i++) {\n if (target.equals(this.genes[i]) == true) {\n newGene2GO[index] = this.goIdsByGene[i];\n index++;\n }\n }\n }\n this.genes = targetGenes;\n this.goIdsByGene = newGene2GO;\n boolean nulltest = false;\n for (int i = 0; i < newGene2GO.length; i++) {\n if (newGene2GO[i] == null) {\n nulltest = true;\n break;\n }\n }\n if (nulltest == true) {\n try {\n this.logwriter.logAndCloseWriter(\"############ERROR: Gene ids not found in GOA file\");\n System.err.println(\"ERROR: Gene IDs entered could not be found in the GOA file supplied\");\n System.exit(-1);\n } catch (IOException io) {\n System.err.println(\"ERROR: Gene IDs entered could not be found in the GOA file supplied\");\n System.exit(-1);\n }\n }\n }",
"static public void main(String[] args) throws IOException{\n\t\tString sample = \"h19x24\";\n\t\tString parentFolder = \"/media/kyowon/Data1/Dropbox/fCLIP/new24/\";\t\t\n\t\tString bedFileName = \"/media/kyowon/Data1/fCLIP/samples/sample3/bed/\" + sample + \".sorted.bed\";\n\t\tString dbFasta = \"/media/kyowon/Data1/RPF_Project/genomes/hg19.fa\";\n\t\tString parameterFileName = \"/media/kyowon/Data1/fCLIP/samples/sample3/bed/\" + sample + \".sorted.param\";\n\t\t\n\t\tString trainOutFileName = parentFolder + sample + \".train.csv\";\n\t\tString arffTrainOutFileName = parentFolder + sample + \".train.arff\";\n\t\t\n\t\tString cisOutFileName = parentFolder + sample + \".csv\";\n\t\tString transOutFileNameM = parentFolder + sample + \".pair.M.csv\";\n\t\tString transOutFileNameU = parentFolder + sample + \".pair.U.csv\";\n\t\tString transControlOutFileNameM = parentFolder + sample + \".pair.M.AntiSense.csv\";\n\t\tString transControlOutFileNameU = parentFolder + sample + \".pair.U.AntiSense.csv\";\n\t\tString rmskBed = \"/media/kyowon/Data1/fCLIP/Data/cat.rmsk.bed\";\n\t\tString siControlBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siControl_R1_Aligned_Sorted.bed\";\n\t\tString siKDDroshaBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siDrosha_R1_Aligned_Sorted.bed\";\n\t\tString siKDDicerBed = \"/media/kyowon/Data1/fCLIP/RNAseq/siDicer_R1_Aligned_Sorted.bed\";\n\t\t\n\t\tString cisBed5pFileName = cisOutFileName + \".5p.bed\";\n\t\tString cisBed3pFileName = cisOutFileName + \".3p.bed\";\n\t\t\n\t\tdouble unpairedScoreThreshold = 0.25; \n\t\tdouble pairedScoreThreshold = unpairedScoreThreshold/5;\n\t//\tdouble motifScoreThreshold = 0.15;\n\t\t\n\t\tint num3pPaired = 10;\n\t\tint num5pPaired = 20;\n\t\t\n\t\tString filteredTransOutFileName = transOutFileNameM + \".filtered.csv\";\n\t\t\n\t\tint blatHitThreshold = 100000000;\n\t\tint transPairSeqLength = FCLIP_Scorer.getFlankingNTNumber() *2 + 80;\n\t\t\n\t\tZeroBasedFastaParser fastaParser = new ZeroBasedFastaParser(dbFasta);\n\t\tMirGff3FileParser mirParser = new MirGff3FileParser(\"/media/kyowon/Data1/fCLIP/genomes/hsa_hg19.gff3\");\n\t\tAnnotationFileParser annotationParser = new AnnotationFileParser(\"/media/kyowon/Data1/fCLIP/genomes/hg19.refFlat.txt\");\n\t\tFCLIP_ScorerTrainer.train(parameterFileName, bedFileName, mirParser, annotationParser);\n\t\t\n\t\ttrain(trainOutFileName, arffTrainOutFileName, bedFileName, fastaParser, annotationParser, mirParser, parameterFileName, unpairedScoreThreshold, pairedScoreThreshold);\n\t\trunCis(cisOutFileName, arffTrainOutFileName, bedFileName, fastaParser, annotationParser, mirParser, parameterFileName, unpairedScoreThreshold, pairedScoreThreshold);\n\n\t\tScoredPositionOutputParser.generateBedFromCsv(cisOutFileName, cisBed5pFileName, cisBed3pFileName, false); // for fold change..\n\t//\tScoredPositionOutputParser.generateFastaForMotif(cisOutFileName, cisOutFileName + \".5p.motif.fa\", cisOutFileName + \".3p.motif.fa\",cisOutFileName + \".motif.m\", \"M\");\n\t\t\n\t\trunTrans(transOutFileNameM, transOutFileNameU, cisOutFileName, arffTrainOutFileName, blatHitThreshold, transPairSeqLength, false);\n\t\tCheckRepeat.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tCheckRepeat.generate(cisOutFileName, transOutFileNameU, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(transOutFileNameM, transOutFileNameM + \".5p.motif.fa\", transOutFileNameM + \".3p.motif.fa\");\n\t\t//GenerateCircosLinkFiles.run(transOutFileNameM + \".rmsk.csv\", transOutFileNameM + \".link.txt\");\n\t//\tCheckCoverage.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t///\tCheckCoverage.generate(cisOutFileName, transOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\trunTrans(transControlOutFileNameM, transControlOutFileNameU, cisOutFileName, arffTrainOutFileName, blatHitThreshold, transPairSeqLength, true);\t\t\n\t\tCheckRepeat.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tCheckRepeat.generate(cisOutFileName, transControlOutFileNameU, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(transControlOutFileNameM, transControlOutFileNameM + \".5p.motif.fa\", transControlOutFileNameM + \".3p.motif.fa\");\n\t//\tGenerateCircosLinkFiles.run(transControlOutFileNameM + \".rmsk.csv\", transControlOutFileNameM + \".link.txt\");\n\t\t//CheckCoverage.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t//\tCheckCoverage.generate(cisOutFileName, transControlOutFileNameM, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\tfilterTransPairs(transOutFileNameM, filteredTransOutFileName, num3pPaired, num5pPaired);\n\t\tCheckRepeat.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, rmskBed);\n\t\tScoredPairOutputParser.generateFastaForMotif(filteredTransOutFileName, filteredTransOutFileName + \".5p.motif.fa\", filteredTransOutFileName + \".3p.motif.fa\");\n\t\t//GenerateCircosLinkFiles.run(filteredTransOutFileName + \".rmsk.csv\", filteredTransOutFileName + \".link.txt\");\n\t///\tCheckCoverage.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, siKDDroshaBed, siControlBed);\n\t//\tCheckCoverage.generate(cisOutFileName, filteredTransOutFileName, cisBed5pFileName, cisBed3pFileName, siKDDicerBed, siControlBed);\n\t\t\n\t\t\n\t\t// generate background for drosha and dicer..\n\t\t\n\t\t\n\t\t// motif different conditioin?? \n\t\t\n\t\t\t\t\n\t\t//GenerateDepthsForEncodeDataSets.generate(outFileName, outFileName + \".encode.csv\", annotationParser);\n\t\t\n\t\t\n\t}",
"public void readFile() throws NumberFormatException,FileNotFoundException {\n Scanner scanStar, scanMessier, scanPlanet;\n String raw_data;\n String[] values;\n Set<String> identifyName = new HashSet<>();\n // Create scanner to scan file\n scanStar = new Scanner(new File(filename[0]));\n scanMessier = new Scanner(new File(filename[1]));\n scanPlanet = new Scanner(new File(filename[2]));\n\n // Read data about Star and store\n Star star;\n while (scanStar.hasNext()){\n raw_data = scanStar.nextLine();\n values = processData(raw_data, 1);\n // Check whether there is the same object or the data is wrong\n if (values.length != 7 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Star file\");\n System.exit(1);\n }\n star = new Star();\n star.setNumber(values[0]);\n star.setRa(Double.parseDouble(values[1]));\n star.setDecl(Double.parseDouble(values[2]));\n star.setMagn(Double.parseDouble(values[3]));\n star.setDistance(Double.parseDouble(values[4]));\n star.setType(values[5]);\n star.setConstellation(values[6]);\n // Add object to collection\n aos.add(star);\n identifyName.add(star.getNumber());\n }\n scanStar.close();\n\n // Read data about Messier and store\n Messier messier;\n while (scanMessier.hasNext()){\n raw_data = scanMessier.nextLine();\n values = processData(raw_data, 1);\n if (values.length < 6 || identifyName.contains('M' + values[0])){\n System.out.println(\"There are some mistakes in Messier file\");\n System.exit(1);\n }\n messier = new Messier();\n messier.setNumber(\"M\" + values[0]);\n messier.setRa(Double.parseDouble(values[1]));\n messier.setDecl(Double.parseDouble(values[2]));\n messier.setMagn(Double.parseDouble(values[3]));\n messier.setDistance(Double.parseDouble(values[4]));\n messier.setConstellation(values[5]);\n if (values.length == 7){\n messier.setDescription(values[6]);\n }else {\n messier.setDescription(\"-\");\n }\n // Add object to collection\n aos.add(messier);\n identifyName.add(messier.getNumber());\n }\n scanMessier.close();\n\n // Read data about Planet and store\n Planet planet;\n while (scanPlanet.hasNext()){\n raw_data = scanPlanet.nextLine();\n values = processData(raw_data, 0);\n if (values.length != 6 || identifyName.contains(values[0])){\n System.out.println(\"There are some mistakes in Planet file\");\n System.exit(1);\n }\n planet = new Planet();\n planet.setName(values[0]);\n planet.setRa(Double.parseDouble(values[1]));\n planet.setDecl(Double.parseDouble(values[2]));\n planet.setMagn(Double.parseDouble(values[3]));\n planet.setDistance(Double.parseDouble(values[4]));\n planet.setAlbedo(Double.parseDouble(values[5]));\n // Add object to collection\n aos.add(planet);\n identifyName.add(planet.getName());\n }\n scanPlanet.close();\n }",
"public void mo5250a(String str, String str2) {\n try {\n ExifInterface exifInterface = new ExifInterface(str);\n ExifInterface exifInterface2 = new ExifInterface(str2);\n if (exifInterface.getAttribute(\"GPSDateStamp\") != null) {\n exifInterface2.setAttribute(\"GPSDateStamp\", exifInterface.getAttribute(\"GPSDateStamp\"));\n }\n if (exifInterface.getAttribute(\"GPSLatitude\") != null) {\n exifInterface2.setAttribute(\"GPSLatitude\", exifInterface.getAttribute(\"GPSLatitude\"));\n }\n if (exifInterface.getAttribute(\"GPSLatitudeRef\") != null) {\n exifInterface2.setAttribute(\"GPSLatitudeRef\", exifInterface.getAttribute(\"GPSLatitudeRef\"));\n }\n if (exifInterface.getAttribute(\"GPSLongitude\") != null) {\n exifInterface2.setAttribute(\"GPSLongitude\", exifInterface.getAttribute(\"GPSLongitude\"));\n }\n if (exifInterface.getAttribute(\"GPSLongitudeRef\") != null) {\n exifInterface2.setAttribute(\"GPSLongitudeRef\", exifInterface.getAttribute(\"GPSLongitudeRef\"));\n }\n if (exifInterface.getAttribute(\"GPSProcessingMethod\") != null) {\n exifInterface2.setAttribute(\"GPSProcessingMethod\", exifInterface.getAttribute(\"GPSProcessingMethod\"));\n }\n if (exifInterface.getAttribute(\"GPSTimeStamp\") != null) {\n exifInterface2.setAttribute(\"GPSTimeStamp\", exifInterface.getAttribute(\"GPSTimeStamp\"));\n }\n if (exifInterface.getAttribute(\"DateTime\") != null) {\n exifInterface2.setAttribute(\"DateTime\", exifInterface.getAttribute(\"DateTime\"));\n }\n if (exifInterface.getAttribute(\"Flash\") != null) {\n exifInterface2.setAttribute(\"Flash\", exifInterface.getAttribute(\"Flash\"));\n }\n if (exifInterface.getAttribute(\"FocalLength\") != null) {\n exifInterface2.setAttribute(\"FocalLength\", exifInterface.getAttribute(\"FocalLength\"));\n }\n if (exifInterface.getAttribute(\"ImageLength\") != null) {\n exifInterface2.setAttribute(\"ImageLength\", exifInterface.getAttribute(\"ImageLength\"));\n }\n if (exifInterface.getAttribute(\"ImageWidth\") != null) {\n exifInterface2.setAttribute(\"ImageWidth\", exifInterface.getAttribute(\"ImageWidth\"));\n }\n if (exifInterface.getAttribute(\"Make\") != null) {\n exifInterface2.setAttribute(\"Make\", exifInterface.getAttribute(\"Make\"));\n }\n if (exifInterface.getAttribute(\"Model\") != null) {\n exifInterface2.setAttribute(\"Model\", exifInterface.getAttribute(\"Model\"));\n }\n if (exifInterface.getAttribute(\"Orientation\") != null) {\n exifInterface2.setAttribute(\"Orientation\", exifInterface.getAttribute(\"Orientation\"));\n }\n if (exifInterface.getAttribute(\"WhiteBalance\") != null) {\n exifInterface2.setAttribute(\"WhiteBalance\", exifInterface.getAttribute(\"WhiteBalance\"));\n }\n exifInterface2.saveAttributes();\n } catch (IOException e) {\n }\n }",
"public static void main(String[] args) throws IOException {\n\t\tString MUMmerFile = args[0];\n\t\tString ErrorFreeEPGAcontigFile = args[1];\n\t\tString SPAdescontigFile = args[2];\n\t\tString DataName = args[3];\n\t\tString FinalEPGAcontigPath = args[4];\n\t\t//Alignment.\n\t\tint SizeOfMUMmerFile = CommonClass.getFileLines(MUMmerFile);\n\t\tString MUMerArray[] = new String[SizeOfMUMmerFile];\n\t\tint RealSizeMUMmer = CommonClass.FileToArray(MUMmerFile, MUMerArray);\n\t\tSystem.out.println(\"The real size of MUMmer is:\" + RealSizeMUMmer);\n\t\t//Load Error Free EPGA.\n\t\tint SizeOfErrorFreeEPGAFile = CommonClass.getFileLines(ErrorFreeEPGAcontigFile);\n\t\tString ErrorFreeEPGAcontigArray[] = new String[SizeOfErrorFreeEPGAFile];\n\t\tint RealSizeErrorFreeEPGAcontig = CommonClass.FastaToArray(ErrorFreeEPGAcontigFile, ErrorFreeEPGAcontigArray);\n\t\tSystem.out.println(\"The real size of Error Free EPGA assembly is:\" + RealSizeErrorFreeEPGAcontig);\n\t\t//Load SPAdes.\n\t\tint SizeOfSPAdesFile = CommonClass.getFileLines(SPAdescontigFile);\n\t\tString SPAdescontigArray[] = new String[SizeOfSPAdesFile];\n\t\tint RealSizeSPAdescontig = CommonClass.FastaToArray(SPAdescontigFile, SPAdescontigArray);\n\t\tSystem.out.println(\"The real size of SPAdes assembly is:\" + RealSizeSPAdescontig);\n\t\t//Process.\n\t\tSet<Integer> hashSet = new HashSet<Integer>();\n\t\tfor (int w = 4; w < RealSizeMUMmer; w++) \n\t\t{\n\t\t\tString[] SplitLine1 = MUMerArray[w].split(\"\\t|\\\\s+\");\n\t\t\tif(SplitLine1.length==14 && (SplitLine1[13].equals(\"[CONTAINS]\") || SplitLine1[13].equals(\"[BEGIN]\") || SplitLine1[13].equals(\"[END]\")))\n\t\t\t{\n\t\t\t\tString[] SplitLine2 = SplitLine1[11].split(\"_\");\n\t\t\t\tint SPAdes_id = Integer.parseInt(SplitLine2[1]);\n\t\t\t\thashSet.add(SPAdes_id);\n\t\t\t\tint EPGA_id = Integer.parseInt(SplitLine1[12]);\n\t\t\t\tSystem.out.println(\"SplitLine1[13]:\"+SplitLine1[13]+\"\\t\"+\"Spades:\"+SPAdes_id+\"\\t\"+\"epga:\"+EPGA_id);\n\t\t\t\tErrorFreeEPGAcontigArray[EPGA_id]=\"#\"+ErrorFreeEPGAcontigArray[EPGA_id];\t\n\t\t\t}\n\t\t}\n\t\t//Write.\n\t\tfor (int w = 0; w < RealSizeErrorFreeEPGAcontig; w++) \n\t\t{\n\t\t\tif(ErrorFreeEPGAcontigArray[w].charAt(0)!='#')\n\t\t\t{\n\t\t\t\tFileWriter writer = new FileWriter(FinalEPGAcontigPath + \"/ReplaceEPGAcontig.\" + DataName + \".fa\", true);\n\t\t\t\twriter.write(\">\" + (w) + \"\\n\" + ErrorFreeEPGAcontigArray[w] + \"\\n\");\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t}\n\t\tIterator<Integer> it = hashSet.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tint SPAdesIndex = it.next();\n\t\t\tFileWriter writer = new FileWriter(FinalEPGAcontigPath + \"/ReplaceEPGAcontig.\" + DataName + \".fa\", true);\n\t\t\twriter.write(\">Add:\" + (SPAdesIndex) + \"\\n\" + SPAdescontigArray[SPAdesIndex] + \"\\n\");\n\t\t\twriter.close();\n\t\t}\n\t\t//Free.\n\t\tMUMerArray=null;\n\t\tErrorFreeEPGAcontigArray=null;\n\t\tSPAdescontigArray=null;\n\t}",
"public void setQedDfilename (java.lang.String qedDfilename) {\n\t\tthis.qedDfilename = qedDfilename;\n\t}",
"private void setData() {\n\t\t\n\t\tString str = readInternalStorage();\n\t\tString[] arr = str.split(\"--\");\n\t\tLog.v(\"CONSOLE\", arr.length+\" \"+arr);\n\t\t\n\t\tLog.v(\"CONSOLE\", \"path\"+arr[0]+\n\t\t\t\t\" name \"+arr[1]+\n\t\t\t\t\" date \"+arr[2]+\n\t\t\t\t\" desc \"+arr[3]); \n\t\t\n\t\tString desc =str;\n\t\t\n\t\ttxtName.setText(entity.getName());\n\t\ttxtDate.setText(entity.getDate());\n\t\ttxtDesc.setText(desc);\n\t}",
"public void plzreadDataFiles(){\n\n //This line opens the file and returns an Input Stream data type\n InputStream itemIs = getResources().openRawResource(R.raw.card_data);\n\n //Read the file line by line\n BufferedReader reader = new BufferedReader(new InputStreamReader(itemIs, Charset.forName(\"UTF-8\")));\n\n //Initialize a var to track the line of the file being read in\n String line =\"\";\n\n // error proofing if the file is weird\n try {\n int i = 0;\n int k = 0;\n while ((line = reader.readLine()) != null){\n //split data by commas into an array of strings\n String[] token = line.split(\",\");\n\n itemArray[i] = new itemInfo();\n\n //Read the data\n itemArray[i].setCardType(token[0]);\n itemArray[i].setCardName(token[1]);\n itemArray[i].setItemType(token[2]);\n itemArray[i].setFrontText(token[3]);\n itemArray[i].setRearText(token[4]);\n itemArray[i].setDuration(token[5]);\n\n\n // Create a list of ITEM names for the autocomplete\n if ((itemArray[i].getCardType().intern()) == (\"Common Item\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n else if ((itemArray[i].getCardType().intern()) == (\"Unique Item\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n else if ((itemArray[i].getCardType().intern()) == (\"Spell\")){\n //itemSearchArray[i] = token[1];\n itemsOnlyList[k] = token[1];\n k = k + 1;\n }\n\n //Check that the damage column has a number in it, and write it in\n if (token[5].intern() != \"-\"){\n itemArray[i].setDamage(Integer.parseInt(token[5]));\n }\n else{\n //Set it to zero if the dash is detected\n itemArray[i].setDamage(0);\n }\n itemArray[i].setDuration(token[6]);\n\n i = i + 1;\n\n Log.d(\"My Activity\", \"Just added: \"+itemArray[i]);\n }\n\n } catch (IOException e) {\n Log.wtf(\"MyActivity\",\"Error reading data file on line\"+line,e);\n e.printStackTrace();\n }\n }",
"static void ReadAndWriteDataSet(String folderName) throws IOException\n\t{\n\t\t\n\t\t String path = \"data\"+FS+\"data_stage_one\"+FS+folderName; // Folder path \n\t\t \n\t\t String filename, line;\n\t\t File folder = new File(path);\n\t\t File[] listOfFiles = folder.listFiles();\n\t\t BufferedReader br = null;\n\t\t for(int i=0; i < listOfFiles.length; i++)\n\t\t { \n\t\t\t System.out.println(listOfFiles[i].getName());\n\t\t\t filename = path+FS+listOfFiles[i].getName();\n\t\t\t try\n\t\t\t {\n\t\t\t\t br= new BufferedReader(new FileReader(new File(filename)));\n\t\t\t\t while((line = br.readLine())!= null)\n\t\t\t\t {\n\t\t\t\t\tfor(int j=0; j<prep.length; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\t\t\t\twhile(st.hasMoreTokens())\n\t\t\t\t\t\t\tif(st.nextToken().equalsIgnoreCase(prep[j]))\n\t\t\t\t\t\t\t{\t//System.out.println(line);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(arr[j] == null)\n\t\t\t\t\t\t\t\t\tarr[j] = new ArrayList<String>();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tarr[j].add(line.toLowerCase().replaceAll(\"\\\\p{Punct}\",\"\").trim().replaceAll(\"\\\\s+\", \" \"));\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t \n\t\t\t }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.err.println(\"exception: \"+e.getMessage() );\n\t\t\t\t e.printStackTrace();\n\t\t\t\t System.exit(0);\n\t\t\t }\n\t\t\t finally\n\t\t\t {\n\t\t\t\t br.close();\n\t\t\t }\n\t\t }\n\t\t \n\t\t // Writes the entire arraylist(preposition wise seperated files)\n\t\t \n\t\t WriteSeperated(folderName);\n\t\t \n\t\t for(int i=0; i<prep.length; i++)\n\t\t {\n\t\t\t arr[i].clear();\n\t\t }\n\t\t \n\t}",
"private void CreateGenomeData()\n {\n SymbolList blankList = new BlankSymbolList(totalLength);\n SimpleSequenceFactory seqFactory = new SimpleSequenceFactory();\n blankSequence = seqFactory.createSequence(blankList, null, null, null);\n \n try {\n \n for(int i =0;i<chromosomeCount;i++)\n {\n ArrayList<GeneDisplayInfo> currentChr = outputGenes.get(i);\n int geneCount = currentChr.size();\n\n for(int j =0; j < geneCount ; j++)\n {\n \n GeneDisplayInfo gene = currentChr.get(j);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n\n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n //String s = \"Source\n \n stranded.type = \"Source\" + Integer.toString(i);\n if(gene.name ==\"Circular\")\n stranded.type = \"CircularF\" + Integer.toString(i);\n stranded.source = gene.name;\n Feature f = blankSequence.createFeature(stranded);\n \n }\n \n } \n \n \n int totalfeature =sourceGene.size(); \n for(int i =0; i < totalfeature ; i++)\n {\n\n GeneDisplayInfo gene = GeneData.targetGene.get(i);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n \n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n stranded.type = \"Target\";\n stranded.source = gene.name;\n blankSequence.createFeature(stranded);\n \n }\n \n \n }\n catch (BioException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ChangeVetoException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\t\tcurdata = GenomeDataFactory.createGenomeData(blankSequence);\t\n \n \n }",
"@Override\n\t\t\tpublic String getDescription() {\n\t\t\t\treturn \"*.dat file\";\n\t\t\t}",
"private void BuildFromFile(String Filename)\n\t{\n\t\tDataSetBuilder<t> dsb = new DataSetBuilder<t>(\"iris.data\");\n\t\t_data = dsb.getDataMembers();\n\t\t\n\t\t//Set reference to null to queue for garbage collection and to ensure the source file gets closed\n\t\tdsb = null;\n\t}",
"private void getInitialGeneData(String fileName) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileReader(fileName));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n assert scanner != null;\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] parts = line.split(\",\");\n String geneName = parts[0];\n int geneDuration = Integer.parseInt(parts[1]);\n Gene gene = new Gene(geneName, geneDuration);\n genes.put(geneName, gene);\n if (!durationGenes.containsKey(geneDuration)) {\n durationGenes.put(geneDuration, new ArrayList<String>() {{\n add(geneName);\n }});\n }\n else {\n ArrayList<String> temp = durationGenes.get(geneDuration);\n temp.add(geneName);\n }\n }\n }",
"static void getMidWidNames() throws IOException {\n\t\tHashMap<String, String[]> mid2other = new HashMap<String, String[]>();\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2wid);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tif (mid2other.containsKey(l[0])) {\r\n\t\t\t\t\tString[] s = mid2other.get(l[0]);\r\n\t\t\t\t\ts[1] = s[1] + \"::\" + l[1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString[] s = new String[5];\r\n\t\t\t\t\ts[0] = l[0] + \"\";\r\n\t\t\t\t\ts[1] = l[1] + \"\";\r\n\t\t\t\t\ts[2] = \"\";\r\n\t\t\t\t\ts[3] = \"\";\r\n\t\t\t\t\ts[4] = \"\";\r\n\t\t\t\t\tmid2other.put(l[0], s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load notable type\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2notabletype);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\tif (s[2].equals(\"\")) {\r\n\t\t\t\t\t\ts[2] = l[1];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ts[2] = s[2] + \"::\" + l[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load names & alias\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\t// set name\r\n\t\t\t\tif (l[1].equals(\"/type/object/name\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[3].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[3] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[3] = s[3] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (l[1].equals(\"/common/topic/alias\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\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//write\r\n\t\t{\r\n\t\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_midWidTypeNameAlias);\r\n\t\t\tfor (Entry<String, String[]> e : mid2other.entrySet()) {\r\n\t\t\t\tdw.write(e.getValue());\r\n\t\t\t}\r\n\t\t\tdw.close();\r\n\t\t}\r\n\t}",
"public static HashMap parseUSFM(File collectionsFile, String baseSourceDirectory, String sourceTextPath, String sTitleTag) throws IOException\n\t{\n //iterate through the source file directory and get the filenames present\n //USFM uses a predefined file format of:\n // 01GENxxxx.ptx\n HashMap books = new HashMap();\n if (baseSourceDirectory == null)\n {\n baseSourceDirectory = \"\";\n }\n \n try\n {\n System.out.println(\"Base Dir: \" + baseSourceDirectory);\n System.out.println(\"Source Path: \" + sourceTextPath);\n \n //get the list of files in the directory\n File folder = new File(baseSourceDirectory, sourceTextPath);\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < listOfFiles.length; i++) \n {\n if (listOfFiles[i].isFile()) \n {\n String sFileName = listOfFiles[i].getName();\n if (sFileName.toLowerCase().endsWith(\".\" + usfmSourceFileExtension))\n {\n System.out.println(\"File \" + listOfFiles[i].getName());\n String sFilename = folder.toString() + File.separator + listOfFiles[i].getName();\n // Add book to the lookup table\n try\n {\n\t\t\t\t// Create a new book\n\t\t\t\tBook book = new Book(collectionsFile, sFilename, STYLE_RED, fileCodepage, useRedLettering, sTitleTag);\n\t\t\t\tbook.fileName = listOfFiles[i].getName();\n\n\t\t\t\tbooks.put(book.name, book);\n\n // the \\id tag syntax:\n // \\id <CODE> (Text text text...)\n // where <CODE> \"is normally the standard 3 letter UBS/SIL scripture book abbreviation.\"\n // we allow books to be identified using the id tag if the first word matches.\n // Hence, we add a special exception here:\n // book is always added twice: once with the code, and once with\n // the full text match.\n \n if (sTitleTag.equals(\"\\\\id\") && book.name.indexOf(' ') > 0 ) {\n String bookKey = book.name;\n String bookCode = bookKey.substring(0, bookKey.indexOf(' '));\n books.put(bookCode, book);\n }\n \n\t\t\t\tbookNames.add(book.name);\n\t }\n catch (Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n }\n } \n }\n }\n catch (Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n return books;\n\t}",
"DatasetFile getDatasetFile();",
"private static String getRatingFilePath(String genre) {\n if(genre.equalsIgnoreCase(\"Fast Food\")) {\n return \"C:\\\\Users\\\\Taquito\\\\AndroidStudioProjects\\\\MealMapRestaurant2\\\\app\\\\src\\\\main\\\\assets\\\\FastFoodRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Dine-In\")) {\n return \"C:\\\\Users\\\\Taquito\\\\AndroidStudioProjects\\\\MealMapRestaurant2\\\\app\\\\src\\\\main\\\\assets\\\\DineInRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Italian\")) {\n return \"C:\\\\Users\\\\Taquito\\\\AndroidStudioProjects\\\\MealMapRestaurant2\\\\app\\\\src\\\\main\\\\assets\\\\ItalianRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Mexican\")) {\n return \"C:\\\\Users\\\\Taquito\\\\AndroidStudioProjects\\\\MealMapRestaurant2\\\\app\\\\src\\\\main\\\\assets\\\\MexicanRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Chinese\")) {\n return \"C:\\\\Users\\\\Taquito\\\\AndroidStudioProjects\\\\MealMapRestaurant2\\\\app\\\\src\\\\main\\\\assets\\\\ChineseRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Sea Food\")) {\n return \"C:\\\\Users\\\\Taquito\\\\AndroidStudioProjects\\\\MealMapRestaurant2\\\\app\\\\src\\\\main\\\\assets\\\\SeaFoodRatings.txt\";\n }\n else {\n return \"C:\\\\Users\\\\Taquito\\\\AndroidStudioProjects\\\\MealMapRestaurant2\\\\app\\\\src\\\\main\\\\assets\\\\FastFoodRatings.txt\";\n }\n }",
"public void loadDWIListFile() {\r\n\r\n final JFileChooser chooser = new JFileChooser(new File(Preferences.getProperty(Preferences.PREF_IMAGE_DIR)));\r\n chooser.addChoosableFileFilter(new ViewImageFileFilter(ViewImageFileFilter.ALL));\r\n chooser.setDialogTitle(\"Choose Diffusion Weighted Images .list file\");\r\n final int returnValue = chooser.showOpenDialog(this);\r\n if (returnValue == JFileChooser.APPROVE_OPTION) {\r\n final File kFile = new File(chooser.getSelectedFile().getAbsolutePath());\r\n if ( !kFile.exists() || !kFile.canRead()) {\r\n return;\r\n }\r\n final int iLength = (int) kFile.length();\r\n if (iLength <= 0) {\r\n return;\r\n }\r\n textListFile.setText(chooser.getSelectedFile().getAbsolutePath());\r\n Preferences.setProperty(Preferences.PREF_IMAGE_DIR, chooser.getCurrentDirectory().toString());\r\n\r\n String kParentDir = chooser.getCurrentDirectory().toString();\r\n final File kListFile = new File(chooser.getSelectedFile().getAbsolutePath());\r\n String pathFilename = null;\r\n String pathFileAbsPath = null;\r\n\r\n String bMatrixFilename = null;\r\n String bMatrixFileAbsPath = null;\r\n \r\n try {\r\n BufferedReader kReader = new BufferedReader(new FileReader(kListFile));\r\n String lineString = null;\r\n while ( (lineString = kReader.readLine()) != null) {\r\n if (lineString.startsWith(\"<original_columns>\")) {\r\n final String columnsStr = lineString.substring(lineString.indexOf(\"<original_columns>\") + 18,\r\n lineString.indexOf(\"</original_columns>\")).trim();\r\n m_iDimX = Integer.parseInt(columnsStr);\r\n } else if (lineString.startsWith(\"<original_rows>\")) {\r\n final String rowsStr = lineString.substring(lineString.indexOf(\"<original_rows>\") + 15,\r\n lineString.indexOf(\"</original_rows>\")).trim();\r\n m_iDimY = Integer.parseInt(rowsStr);\r\n } else if (lineString.startsWith(\"<slice>\")) {\r\n final String sliceStr = lineString.substring(lineString.indexOf(\"<slice>\") + 7,\r\n lineString.indexOf(\"</slice>\")).trim();\r\n m_iSlices = Integer.parseInt(sliceStr);\r\n } else if (lineString.startsWith(\"<nim>\")) {\r\n final String nimStr = lineString.substring(lineString.indexOf(\"<nim>\") + 5,\r\n lineString.indexOf(\"</nim>\")).trim();\r\n m_iWeights = Integer.parseInt(nimStr);\r\n } else if (lineString.startsWith(\"<rawimageformat>\")) {\r\n m_kRawFormat = lineString.substring(lineString.indexOf(\"<rawimageformat>\") + 16,\r\n lineString.indexOf(\"</rawimageformat>\")).trim();\r\n } else if (lineString.startsWith(\"<raw_image_path_filename>\")) {\r\n pathFilename = lineString.substring(lineString.indexOf(\"<raw_image_path_filename>\") + 25,\r\n lineString.indexOf(\"</raw_image_path_filename>\")).trim();\r\n pathFileAbsPath = kParentDir + File.separator + pathFilename;\r\n // studyName = pathFilename.substring(0, pathFilename.indexOf(\".path\"));\r\n } else if (lineString.startsWith(\"<bmatrixfile>\")) {\r\n bMatrixFilename = lineString.substring(lineString.indexOf(\"<bmatrixfile>\") + 13,\r\n lineString.indexOf(\"</bmatrixfile>\")).trim();\r\n bMatrixFileAbsPath = kParentDir + File.separator + bMatrixFilename;\r\n // studyName = pathFilename.substring(0, pathFilename.indexOf(\".path\"));\r\n } else if (lineString.startsWith(\"<x_field_of_view>\")) {\r\n final String xFOVStr = lineString.substring(lineString.indexOf(\"<x_field_of_view>\") + 17,\r\n lineString.indexOf(\"</x_field_of_view>\")).trim();\r\n final float xFOV = Float.parseFloat(xFOVStr);\r\n m_fResX = xFOV;\r\n m_bUseXRes = true;\r\n } else if (lineString.startsWith(\"<y_field_of_view>\")) {\r\n final String yFOVStr = lineString.substring(lineString.indexOf(\"<y_field_of_view>\") + 17,\r\n lineString.indexOf(\"</y_field_of_view>\")).trim();\r\n final float yFOV = Float.parseFloat(yFOVStr);\r\n m_fResY = yFOV;\r\n m_bUseYRes = true;\r\n } else if (lineString.startsWith(\"<slice_thickness>\")) {\r\n final String zResStr = lineString.substring(lineString.indexOf(\"<slice_thickness>\") + 17,\r\n lineString.indexOf(\"</slice_thickness>\")).trim();\r\n m_fResZ = Float.parseFloat(zResStr);\r\n m_bUseZRes = true;\r\n } else if (lineString.startsWith(\"<noise_mean_ori>\")) {\r\n final String noiseStr = lineString.substring(lineString.indexOf(\"<noise_mean_ori>\") + 16,\r\n lineString.indexOf(\"</noise_mean_ori>\")).trim();\r\n m_fMeanNoise = Float.parseFloat(noiseStr);\r\n }\r\n }\r\n kReader.close();\r\n kReader = null;\r\n } catch (final Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if ( (pathFilename != null) && (bMatrixFileAbsPath != null) ) {\r\n loadPathFile(pathFileAbsPath, kParentDir);\r\n loadBMatrixFile(bMatrixFileAbsPath);\r\n \r\n\r\n AlgorithmDWI2DTI calcDTI = new AlgorithmDWI2DTI(maskImage, false, m_iSlices,\r\n m_iDimX, m_iDimY, m_iBOrig, m_iWeights, m_fMeanNoise, m_aakDWIList, m_aiMatrixEntries, m_kBMatrix,\r\n m_kRawFormat);\r\n m_kDWIImage = calcDTI.getDWI();\r\n\t\t\t\tnew ViewJFrameImage( m_kDWIImage );\r\n }\r\n m_fResX /= m_iDimX;\r\n m_fResY /= m_iDimY;\r\n }\r\n }",
"public void setQuantitationFileName(String aFileName){\n this.iQuantitationFileName = aFileName;\n }",
"public static void main(String[] args) throws IOException {\n\t\tString MUMmerFile = args[0];\n\t\tString ErrorEPGAcontigFile = args[1];\n\t\tString ErrorFreeEPGAcontigFile = args[2];\n\t\tString SPAdescontigFile = args[3];\n\t\tString DataName = args[4];\n\t\tString FinalEPGAcontigPath = args[5];\n\t\t//Alignment.\n\t\tint SizeOfMUMmerFile = CommonClass.getFileLines(MUMmerFile);\n\t\tString MUMerArray[] = new String[SizeOfMUMmerFile];\n\t\tint RealSizeMUMmer = CommonClass.FileToArray(MUMmerFile, MUMerArray);\n\t\tSystem.out.println(\"The real size of MUMmer is:\" + RealSizeMUMmer);\n\t\t//Load EPGA.\n\t\tint SizeOfErrorEPGAFile = CommonClass.getFileLines(ErrorEPGAcontigFile);\n\t\tString ErrorEPGAcontigArray[] = new String[SizeOfErrorEPGAFile];\n\t\tint RealSizeErrorEPGAcontig = CommonClass.FastaToArray(ErrorEPGAcontigFile, ErrorEPGAcontigArray);\n\t\tSystem.out.println(\"The real size of Error EPGA assembly is:\" + RealSizeErrorEPGAcontig);\n\t\t//Load EPGA.\n\t\tint SizeOfErrorFreeEPGAFile = CommonClass.getFileLines(ErrorFreeEPGAcontigFile);\n\t\tString ErrorFreeEPGAcontigArray[] = new String[SizeOfErrorFreeEPGAFile];\n\t\tint RealSizeErrorFreeEPGAcontig = CommonClass.FastaToArray(ErrorFreeEPGAcontigFile, ErrorFreeEPGAcontigArray);\n\t\tSystem.out.println(\"The real size of Error Free EPGA assembly is:\" + RealSizeErrorFreeEPGAcontig);\n\t\t//Load SPAdes.\n\t\tint SizeOfSPAdesFile = CommonClass.getFileLines(SPAdescontigFile);\n\t\tString SPAdescontigArray[] = new String[SizeOfSPAdesFile];\n\t\tint RealSizeSPAdescontig = CommonClass.FastaToArray(SPAdescontigFile, SPAdescontigArray);\n\t\tSystem.out.println(\"The real size of SPAdes assembly is:\" + RealSizeSPAdescontig);\n\t\t//Process.\n\t\tSet<Integer> hashSet = new HashSet<Integer>();\n\t\tfor (int w = 4; w < RealSizeMUMmer; w++) {\n\t\t\tif (MUMerArray[w].charAt(0) != '#') {\n\t\t\t\tint CountSave = 0;\n\t\t\t\tString SaveTempArray[] = new String[RealSizeMUMmer];\n\t\t\t\tString[] SplitLine1 = MUMerArray[w].split(\"\\t|\\\\s+\");\n\t\t\t\tSaveTempArray[CountSave++] = MUMerArray[w];\n\t\t\t\tMUMerArray[w] = \"#\" + MUMerArray[w];\n\t\t\t\tfor (int e = w + 1; e < RealSizeMUMmer; e++) {\n\t\t\t\t\tif (MUMerArray[e].charAt(0) != '#') {\n\t\t\t\t\t\tString[] SplitLine2 = MUMerArray[e].split(\"\\t|\\\\s+\");\n\t\t\t\t\t\tif (SplitLine1[11].equals(SplitLine2[11])) {\n\t\t\t\t\t\t\tSaveTempArray[CountSave++] = MUMerArray[e];\n\t\t\t\t\t\t\tMUMerArray[e] = \"#\" + MUMerArray[e];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Mark read.\n\t\t\t\tfor (int r = 0; r < CountSave; r++) {\n\t\t\t\t\tString[] SplitLine31 = SaveTempArray[r].split(\"\\t|\\\\s+\");\n\t\t\t\t\tString[] SplitLine41 = SplitLine31[12].split(\"_\");\n\t\t\t\t\tint SPAdes_id = Integer.parseInt(SplitLine41[1]);\n\t\t\t\t\thashSet.add(SPAdes_id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Write.\n\t\tint CountCorrEPGA=0;\n\t\tString CorrEPGAContigArray[]=new String[2*(RealSizeErrorFreeEPGAcontig+RealSizeSPAdescontig)];\n\t\tint EPId = 0;\n\t\tfor (int w = 0; w < RealSizeErrorFreeEPGAcontig; w++) {\n CorrEPGAContigArray[CountCorrEPGA++]=ErrorFreeEPGAcontigArray[w];\n\t\t}\n\t\tIterator<Integer> it = hashSet.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tint EPGAIndex = it.next();\n CorrEPGAContigArray[CountCorrEPGA++]=SPAdescontigArray[EPGAIndex];\n\t\t}\n\t\t//Sort process.\n\t\tString exch=\"\";\n\t\tfor(int w=0;w<CountCorrEPGA;w++)\n\t\t{\n\t\t\tfor(int h=w+1;h<CountCorrEPGA;h++)\n\t\t\t{\n\t\t\t\tif(CorrEPGAContigArray[w].length()<CorrEPGAContigArray[h].length())\n\t\t\t\t{\n\t\t\t\t\texch=CorrEPGAContigArray[w];\n\t\t\t\t\tCorrEPGAContigArray[w]=CorrEPGAContigArray[h];\n\t\t\t\t\tCorrEPGAContigArray[h]=exch;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Delete duplicate records.\n\t\tfor(int w=0;w<CountCorrEPGA;w++)\n\t\t{\n\t\t\tfor(int h=w+1;h<CountCorrEPGA;h++)\n\t\t\t{\n\t\t \tif(CorrEPGAContigArray[w].equals(CorrEPGAContigArray[h])||CorrEPGAContigArray[w].equals(CommonClass.reverse(CorrEPGAContigArray[h])))\n\t\t\t\t{\n\t\t\t\t\tCorrEPGAContigArray[h]=\"%\"+CorrEPGAContigArray[h];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int j=0;j<CountCorrEPGA;j++)\n\t\t{\n\t\t\tif(CorrEPGAContigArray[j].charAt(0)!='%')\n\t\t\t{\n\t\t\t\t FileWriter writer = new FileWriter(FinalEPGAcontigPath + \"/CorrEPGAcontig.\" + DataName + \".fa\", true);\n\t\t\t writer.write(\">\" + (EPId++) + \"\\n\" + CorrEPGAContigArray[j] + \"\\n\");\n\t\t\t writer.close();\n\t\t\t}\n\t\t}\n\t\t//Free.\n\t\tMUMerArray=null;\n\t\tErrorEPGAcontigArray=null;\n\t\tErrorFreeEPGAcontigArray=null;\n\t\tSPAdescontigArray=null;\n\t\tCorrEPGAContigArray=null;\n\t}",
"public ArrayList<ArrayList<String>> readthePathOfMusicFiles()\n {\n File file = new File(path);\n String[] names = file.list();// all directories inside dataset1 direcory\n ArrayList<ArrayList<String>> pathOfMusicFiles = new ArrayList<>();\n String artistName = \"\";\n String trackName = \"\";\n Mp3File song = null;\n for (int i = 0; i < names.length; i++) \n {\n File file1 = new File(path + '/' + names[i]);\n if (file1.isDirectory())\n {\n String[] fileNames = file1.list();\n for (String fileName : fileNames)// all files in directory\n {\n if (fileName.contains(\".mp3\") && !(fileName.charAt(0) == '.'))\n {\n try\n {\n song = new Mp3File(path + '/' + names[i] + '/' + fileName);\n }\n catch (UnsupportedTagException | InvalidDataException | IOException e)\n {\n e.printStackTrace();\n }\n if(song!=null && song.hasId3v1Tag())\n {\n ID3v1 id3v1Tag = song.getId3v1Tag();\n artistName = id3v1Tag.getArtist();\n trackName = id3v1Tag.getTitle();\n }\n if(song!=null && song.hasId3v2Tag())\n {\n ID3v2 id3v2tag = song.getId3v2Tag();\n artistName = id3v2tag.getArtist();\n trackName = id3v2tag.getTitle();\n }\n if(artistName != null && artistName.length() >= 1 && trackName != null && artistName.length() >= 1)\n {\n if(artistName.charAt(0) >= startChar && artistName.charAt(0) <= endChar)\n {\n ArrayList<String> songAttributes = new ArrayList<>();\n songAttributes.add(path + '/' + names[i] + '/' + fileName);\n songAttributes.add(artistName);\n songAttributes.add(trackName);\n pathOfMusicFiles.add(songAttributes);\n }\n }\n }\n }\n }\n }\n return pathOfMusicFiles;\n }",
"void loadProducts(String filename);",
"public void updateGeneFile(String species,String szoutfile,int[] npercentdone,int nstatusfield,\n\t\t\t Object lockpd) throws IOException \n {\t \n // try opening the configuration file\n BufferedReader brspecies = new BufferedReader(new FileReader(m_file));\n\t \n // read line by line and try to find the species\n String ln = \"\";\n String[] fields = null;\n boolean bfound = false;\n while ((!bfound)&&((ln = brspecies.readLine()) != null)) \n {\n fields = ln.split(\",\");\n\t String[] szIDpre = fields[0].split(\"_\");\n\t // is this the right species?\n\t if (szIDpre[0].equalsIgnoreCase(species))\n\t {\n\t bfound = true;\n\t }\n }\n // close the file\n brspecies.close();\n\n if (!bfound) \n {\n\t //species was not found throw an errir\n throw new IllegalArgumentException(\"The species provided - \" + species + \" - is not found in \"+m_file);\n } \n\n if (fields.length < 2)\n {\n\t throw new IllegalArgumentException(\"Line \"+ln+\" in \"+m_file+\" only has one entry, no delimiting ',' found\");\n } \n\t \n String xmlMessagePre, //The initial part of the message needed for both \n\t xmlMessagePost, //The part of the message immediately after the query params\n\t //These are the non-alias attributes\n \t xmlMessageEnding, //The last part of the message needed\n\t xmlMessageCount1, //Specifies query params where count=1 \n\t //meaning just a count of numrecords satisfying query is returned\n\t xmlMessageCountEmpty; //Specifies query params where count is empty meaning \n //the query actually returns the records\n\n // construct the xml message for the request\n xmlMessagePre = \"<?xml version = \\\"1.0\\\" encoding = \\\"UTF-8\\\"?>\";\n xmlMessagePre += \"<!DOCTYPE Query>\";\n\n xmlMessageCount1 = \"<Query virtualSchemaName = \\\"default\\\" uniqueRows = \\\"1\\\" count = \\\"1\\\" softwareVersion = \\\"0.6\\\" >\";\n xmlMessageCountEmpty = \"<Query virtualSchemaName = \\\"default\\\" uniqueRows = \\\"1\\\" count = \\\"\\\" softwareVersion = \\\"0.6\\\" >\";\n\n xmlMessagePost = \"<Dataset name = \\\"\" + fields[0] + \"\\\" interface = \\\"default\\\" >\";\n xmlMessagePost += \"<Attribute name = \\\"chromosome_name\\\" />\";\n xmlMessagePost += \"<Attribute name = \\\"start_position\\\" />\";\n xmlMessagePost += \"<Attribute name = \\\"end_position\\\" />\";\n xmlMessagePost += \"<Attribute name = \\\"strand\\\" />\";\n xmlMessagePost += \"<Attribute name = \\\"ensembl_gene_id\\\" />\";\n\n xmlMessageEnding = \"</Dataset>\";\n xmlMessageEnding += \"</Query>\";\n\n String xmlMessageCount = xmlMessagePre + xmlMessageCount1 + xmlMessagePost + xmlMessageEnding;\n nsingleset = executeCountQuery(xmlMessageCount);\n\n // output file writer\n BufferedOutputStream bos = new BufferedOutputStream(new\n\t \t\t\t GZIPOutputStream(new FileOutputStream(szoutfile)));\n //write in the species name in the first line of the file\n \n //writes the species field to the file \n String szeol = System.getProperty(\"line.separator\");\n String szspecieseol = fields[1] + szeol;\n byte[] lnb = szspecieseol.getBytes();\n bos.write(lnb,0,lnb.length);\n\n\n String xmlMessage = xmlMessagePre + xmlMessageCountEmpty + xmlMessagePost;\n // messages can contain at most 3 alias attributes\n // if we have more than that, need too break\n // up into several requests\n boolean run_last = true;\n nline = 0; //we haven't read any lines yet\n String query;\n\n HashSet hsvalidAttributes = getValidAttributes(fields[0]);\n\n // add in species-specific gene ids\n if (fields.length > 2) \n {\n String[] aliases = fields[2].split(\":\");\n\t numrecs = nsingleset*((int) Math.ceil(aliases.length/(double)NMAXATTR));\n\t query = xmlMessage;\n\t for (int i = 0; i < aliases.length; i++) \n {\n\t if (hsvalidAttributes.contains(aliases[i]))\n\t { \n\t query += \"<Attribute name = \\\"\" + aliases[i] + \"\\\" />\";\n\t // a query is being constructed. It might\n\t // need to be run through the last request\n\t run_last = true;\n\t\t \n\t if (i % NMAXATTR == (NMAXATTR-1)) \n {\n\t\t //last alias attribute of the query, going to execute it\n\t query += xmlMessageEnding;\n\t // close the xml doc\n\t executeQuery(bos, query,npercentdone,nstatusfield,lockpd);\n\t\n\t // reset query for reuse\n\t query = xmlMessage;\n\t // all attributes so far have been processed\n\t // no need to run the last request\n\t run_last = false;\n\t }\n\t }\n\t }\n }\n else\n {\n query = xmlMessage;\n } \n\t \n // last request. Picks up everything not processed by loop above.\n // including if the loop above wasn't executed at all because\n // there were no extra aliases to query.\n if (run_last)\n {\n\t query += xmlMessageEnding;\t\n\t executeQuery(bos, query,npercentdone,nstatusfield,lockpd);\n }\n // close the xml doc\t\n bos.close();\t\n }",
"public void setFileName(String filename)\n\t{\n\t\tsuper.setFileName(filename);\n\t\t\n\t\t//#CM702602\n\t\t// Generate the path name of Working data File. \n\t\tworkingDataFileName = wFileName.replaceAll(\"\\\\\\\\send\\\\\\\\\", \"\\\\\\\\recv\\\\\\\\\");\n\t}",
"public void loadDefaultComments(){\n String[] existingFiles = mContext.fileList();\n if (existingFiles.length == 0){\n //create new snarky file for the app\n try{\n mSnarkyStream = mContext.openFileOutput(mSnarkyName,Context.MODE_PRIVATE);\n }\n catch(Exception creatException){\n Log.e(TAG,\"Error creating snarky file\");\n return;\n }\n\n //read in the default file as raw resource and populate snarky with default comments\n Resources appResources = mContext.getResources();\n InputStream defaultCommentStream = appResources.openRawResource(R.raw.snarky);\n CharBuffer buffer = CharBuffer.allocate(8000);// 8k buffer\n InputStreamReader reader = new InputStreamReader(defaultCommentStream);\n StringBuilder nextComment = new StringBuilder();\n try{\n int sizeRead = reader.read(buffer);\n Log.d(TAG,\"loadDefaultComments sizeRead=\".concat(String.valueOf(sizeRead)));\n for (int next = 0; next < sizeRead; next++ ){\n char nextChar = buffer.get(next);\n nextComment.append(nextChar);\n Log.d(TAG,\"LoadComments nextChar=\".concat(String.valueOf(nextChar)));\n }\n\n //append the comment to the snarky file\n mSnarkyStream.write(nextComment.toString().getBytes());\n nextComment = new StringBuilder();\n }\n catch(Exception writeException){\n Log.e(TAG, \"Error loading default snarky file\");\n }\n finally{\n try {\n defaultCommentStream.close();\n mSnarkyStream.flush();\n mSnarkyStream.close();\n mSnarkyStream = null;\n mComplete = true;\n Log.d(TAG,\"LoadComments Completed\");\n }\n catch (IOException e) {\n Log.e(TAG, \"Unable to close default comment file\");\n }\n }\n }\n else{\n //file already loaded = nothing to do\n mComplete = true;\n }\n }",
"public static void main(String pOptions[]) {\n \n String parameterDirectory = \"[ENTER DEBUGGING DIRECORY]\";\n NamedEntityExtractorParameter neParameter =\n new NamedEntityExtractorParameter(\n parameterDirectory + \"ForenamesDE.txt\",\n parameterDirectory + \"SurnamesDE.txt\",\n parameterDirectory + \"SurnameSuffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"MiddleInitialsDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"TitlesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"PlacesDE.txt\",\n parameterDirectory + \"OrganizationsStartDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsEndDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"CompositeNE_HeinsUndPartner21.txt\",\n parameterDirectory + \"RegexNE_HeinsUndPartner21.txt\",\n parameterDirectory + \"NameAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"PlaceAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsAffixesDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"OrganizationsDE_HeinsUndPartner21.tokenized.txt\",\n \"TestMetaDataAttribute\", false,\n parameterDirectory + \"PlaceIndicatorsDE_HeinsUndPartner21.txt\",\n false, null,\n parameterDirectory + \"PersonNameIndicatorsDE_HeinsUndPartner21.txt\",\n parameterDirectory + \"ProfessionsDE_HeinsUndPartner21.txt\", true,\n parameterDirectory + \"StreetExceptionsDE.txt\",\n parameterDirectory + \"StreetSuffixesDE_HeinsUndPartner21.txt\",\n \"([A-Z][A-Za-z\\\\-\\\\.]*)\",\n \"([0-9\\\\-]{1,4}[a-zA-Z]?|[a-zA-Z\\\\-\\\\/]?|[Nn][Rr][\\\\.]?)\",\n \"(.*-$|^Die.*|^Der.*|^Das.*|[\\\\p{Alpha}]*ring$|.*\\\\/$)\", 2, \n \"([0-9\\\\.]{2,}|^<<.*)\");\n \n NamedEntityExtractor21 neExtractor = new NamedEntityExtractor21(\n neParameter);\n neExtractor.addTempOrganizationName(\"DiE Test ABC GmbH\");\n TestNamedEntityOwner neOwner = new TestNamedEntityOwner();\n \n for (int i = 0; i < neOwner.getNumberOfProcessedTextUnits(); i++) {\n neOwner.replaceProcessedTextUnitFromString(i,\n neExtractor.extractNamedEntities(neOwner\n .getInputTextUnitAsString(i), neOwner));\n }\n System.out.println(neOwner.toString());\n \n }",
"private String getSourceName() {\n return srcFileName;\n }",
"public static void main(String[] args) {\n\r\n\t\ttry{\r\n\t\t\tString tac2008Path = \"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008_Update_Summarization_Documents/UpdateSumm08_test_docs_files\";\r\n\t\t\tExtractPrag ep = new ExtractPrag();\r\n\t\t\t\r\n\t\t\t//String wordPath = \"\";\r\n\t\t\t//ep.extractWords(wordPath)\r\n\t\t\tep.allDataset(tac2008Path);\r\n\t\t\t\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"DatasetFileService getSource();",
"public static void main(String args[]) throws Exception {\n\t\tString files;\r\n\t\t//windows File folder = new File(\"..\");\r\n //mac\r\n\t\tFile[] listOfFiles = new File[1];\r\n listOfFiles[0] = new File(\"/Users/ldom/Documents/workspace/search/crawler/results/CW45/output.txt\");\r\n //listOfFiles[1] = new File(\"/Users/ldom/Documents/workspace/search/crawler/results/CW33/Costco_products.txt\");\r\n //listOfFiles[2] = new File(\"/Users/ldom/Documents/workspace/search/crawler/results/CW33/Liverpool_products.txt\");\r\n //listOfFiles[3] = new File(\"/Users/ldom/Documents/workspace/search/crawler/results/CW33/Sanborns_products.txt\");\r\n //listOfFiles[4] = new File(\"/Users/ldom/Documents/workspace/search/crawler/results/CW33/Sears_products.txt\");\r\n //listOfFiles[5] = new File(\"/Users/ldom/Documents/workspace/search/crawler/results/CW33/Walmart_products.txt\");\r\n\t\t//2)read and print them to datastore\r\n\t\tlong n = 0;\r\n long start = 0;\r\n\t\tfor(File f: listOfFiles){\r\n System.out.println(f.getName());\r\n\t\t\tif(!f.getName().endsWith(\".txt\")){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\r\n\t\t\tString input = br.readLine();\r\n\t\t\twhile(input != null){\r\n if(n<start){\r\n n++;\r\n System.out.println(\"skipped. n = \"+n);\r\n input = br.readLine();\r\n } else {\r\n input = input.replace(\"\\\"\",\"%22\");\r\n input = input.replace(\"\\t\",\"\");\r\n input = input.replace(\" \",\"%20\");\r\n String[] item = input.split(\"@@@@\");\r\n //arm product\r\n Product p = new Product(item[0],item[1],item[2],item[3]);\r\n //patch price NOTE REMOVE THIS FOR OTHER STORES!!!!\r\n if(p.store.equals(\"Famsa\")){\r\n DecimalFormat df = new DecimalFormat(\"#,###.00\");\r\n p.price = df.format(p.price_int);\r\n p.price = \"$\"+p.price;\r\n }\r\n //END REMOVE!!!\r\n try {\r\n p.image = item[4];\r\n } catch(Exception e){}\r\n try {\r\n p.description = item[5];\r\n //patch: limit description to 500 chars\r\n /*if(!p.description.equals(\"\")){\r\n p.description = p.description.replace(\" \", \"%20\");\r\n while(p.description.length()>500){\r\n p.description = p.description.substring(0,p.description.lastIndexOf(\"%20\"));\r\n }\r\n }*/\r\n } catch(Exception e){}\r\n try {\r\n p.upc = item[6];\r\n } catch(Exception e){}\r\n //String baseUrl = \"http://127.0.0.1:8888/search?q=g3h34389h7432&\";\r\n String baseUrl = \"http://www.kompramex.com/search?q=g3h34389h7432&\";\r\n baseUrl += \"name=\"+p.name+\"&\";\r\n baseUrl += \"store=\"+p.store+\"&\";\r\n baseUrl += \"price=\"+p.price+\"&\";\r\n baseUrl += \"productlink=\"+p.productlink+\"&\";\r\n baseUrl += \"image=\"+p.image+\"&\";\r\n baseUrl += \"description=\"+p.description+\"&\";\r\n baseUrl += \"upc=\"+p.upc;\r\n //post to url\r\n try {\r\n String response = URLConnectionReader.getText(baseUrl);\r\n if(response.equals(\"Success: saved\")){\r\n n++;\r\n System.out.println(n+\" items uploaded\");\r\n //read next line only if succeded\r\n input = br.readLine();\r\n } else if(response.equals(\"Success: repeated\")){\r\n n++;\r\n System.out.println(n+\" items uploaded (current item was repeated and not uploaded\");\r\n //read next line only if succeded\r\n input = br.readLine();\r\n } else {\r\n System.out.println(\"ERROR! current item is \"+n);\r\n System.out.print(\"Skip? Y or N\");\r\n BufferedReader b = new BufferedReader(new InputStreamReader(System.in));\r\n if(b.readLine().contains(\"Y\")){\r\n input = br.readLine();\r\n }\r\n }\r\n } catch (Exception e){\r\n System.out.println(\"format error, skipping item\"+n);\r\n e.printStackTrace();\r\n input = br.readLine();\r\n }\r\n }\r\n }\r\n }\r\n\t\tSystem.out.println(\"Successfully finished all lists!!!\");\r\n\t\tSystem.out.println(\"Successfully finished all lists!!!\");\r\n\t\tSystem.out.println(\"Successfully finished all lists!!!\");\r\n\t}",
"@Override\n\tpublic long[] getSongsIdFromFilePath(String paramString)\n\t{\n\t\treturn null;\n\t}",
"public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }",
"private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }",
"private void readingFiles() {\r\n\r\n File sdCard = Environment.getExternalStorageDirectory();\r\n File directory = new File(sdCard.getAbsoluteFile() + \"/MyApplication\");\r\n\r\n //List of names\r\n File name = new File(directory, \"nameList.csv\");\r\n FileInputStream fIn = null;\r\n try {\r\n fIn = new FileInputStream(name);\r\n InputStreamReader isr = new InputStreamReader(fIn);\r\n char[] inputBuffer = new char[READ_BLOCK_SIZE];\r\n String s = \"\";\r\n int charRead;\r\n while ((charRead = isr.read(inputBuffer)) > 0) {\r\n String readString = String.copyValueOf(inputBuffer, 0, charRead);\r\n s += readString;\r\n inputBuffer = new char[READ_BLOCK_SIZE];\r\n }\r\n\r\n String[] retrievedStringArray = s.split(\",\");\r\n nameList = new ArrayList<String>(Arrays.asList(retrievedStringArray));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n nameList = new ArrayList<String>();\r\n }\r\n\r\n //List of latitudes\r\n File lat = new File(directory, \"latList.csv\");\r\n FileInputStream fIn1 = null;\r\n try {\r\n fIn1 = new FileInputStream(lat);\r\n InputStreamReader isr = new InputStreamReader(fIn1);\r\n char[] inputBuffer1 = new char[READ_BLOCK_SIZE];\r\n String s1 = \"\";\r\n int charRead;\r\n while ((charRead = isr.read(inputBuffer1)) > 0) {\r\n String readString = String.copyValueOf(inputBuffer1, 0, charRead);\r\n s1 += readString;\r\n inputBuffer1 = new char[READ_BLOCK_SIZE];\r\n }\r\n\r\n String[] retrievedStringArray = s1.split(\",\");\r\n latList = new ArrayList<String>(Arrays.asList(retrievedStringArray));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n latList = new ArrayList<String>();\r\n }\r\n\r\n //List of longitudes\r\n File lng = new File(directory, \"lngList.csv\");\r\n FileInputStream fIn2 = null;\r\n try {\r\n fIn2 = new FileInputStream(lng);\r\n InputStreamReader isr = new InputStreamReader(fIn2);\r\n char[] inputBuffer2 = new char[READ_BLOCK_SIZE];\r\n String s2 = \"\";\r\n int charRead;\r\n while ((charRead = isr.read(inputBuffer2)) > 0) {\r\n String readString = String.copyValueOf(inputBuffer2, 0, charRead);\r\n s2 += readString;\r\n inputBuffer2 = new char[READ_BLOCK_SIZE];\r\n }\r\n\r\n String[] retrievedStringArray = s2.split(\",\");\r\n lngList = new ArrayList<String>(Arrays.asList(retrievedStringArray));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n lngList = new ArrayList<String>();\r\n }\r\n if (lngList.get(0) == \"\") {\r\n lngList.remove(0);\r\n }\r\n if (latList.get(0) == \"\") {\r\n latList.remove(0);\r\n }\r\n if (nameList.get(0) == \"\") {\r\n nameList.remove(0);\r\n }\r\n }",
"public static void main(String args[]) throws Exception {\n String fileName;\n fileName = scan.nextLine();\n\n OutputStream outStream = null;\n\n String info = readLogFile(fileName);\n\n String outFileName = \"gifs_\" + fileName;\n\n\n try{\n outStream = new FileOutputStream(new File(outFileName), true);\n outStream.write(info.getBytes(), 0, info.length());\n } catch(IOException ioEx) {\n ioEx.printStackTrace();\n } finally {\n try {\n outStream.close();\n } catch( IOException exception ){\n exception.printStackTrace();\n }\n }\n\n }",
"public static void main(String[] args) throws IOException {\n\t\tString short_1_A_Path = args[0];\n\t\tString short_1_B_Path = args[1];\n\t\tString OutPutPath = args[2];\n\t\tString DataSetName = args[3];\n\t\ttry {\n\t\t\tint Num=0;\n\t\t\tString readtemp1=\"\";\n\t\t\tString readtemp2=\"\";\n\t\t\tint Short1_NumLeft=0;\n\t\t\tint Short1_NumRight=0;\n\t\t\tString encoding = \"utf-8\";\n\t\t\tFile file1 = new File(short_1_A_Path);\n\t\t\tFile file2 = new File(short_1_B_Path);\n\t\t\tif (file1.exists()&&file2.exists()) {\n\t\t\t\tInputStreamReader read1 = new InputStreamReader(new FileInputStream(file1), encoding);\n\t\t\t\tInputStreamReader read2 = new InputStreamReader(new FileInputStream(file2), encoding);\n\t\t\t\tBufferedReader bufferedReader1 = new BufferedReader(read1);\n\t\t\t\tBufferedReader bufferedReader2 = new BufferedReader(read2);\n\t\t\t\twhile ((bufferedReader1.readLine())!=null && (bufferedReader2.readLine())!= null)\n\t\t\t\t{\n\t\t\t\t\t//The second line.\n readtemp1=bufferedReader1.readLine();\n readtemp2=bufferedReader2.readLine();\t\t\t\t\t\t\n\t\t\t\t //Write left.\n\t\t\t\t\tFileWriter writer1 = new FileWriter(OutPutPath + DataSetName+\".left.fasta\",true);\n\t\t\t\t\twriter1.write(\">\"+(Short1_NumLeft++)+\"\\n\"+readtemp1+\"\\n\");\n\t\t\t\t\twriter1.close();\n\t\t\t\t\t//Write right.\t\n\t\t\t\t\tFileWriter writer2 = new FileWriter(OutPutPath + DataSetName+\".right.fasta\",true);\n\t\t\t\t\twriter2.write(\">\"+(Short1_NumRight++)+\"\\n\"+readtemp2+\"\\n\");\n\t\t\t\t\twriter2.close();\n\t\t\t\t\t//Write all.\t\n\t\t\t\t\tFileWriter writer3 = new FileWriter(OutPutPath + DataSetName+\".fasta\", true);\n\t\t\t\t\twriter3.write(\">\"+(Num)+\"\\n\"+readtemp1 +\"\\n\"+\">\"+(Num)+\"\\n\"+readtemp2+\"\\n\");\n\t\t\t\t\twriter3.close();\n\t\t\t\t\t//The third line.\n\t\t\t\t\tbufferedReader1.readLine();\n\t\t\t\t\tbufferedReader2.readLine();\n\t\t\t\t //The fourth line.\n\t\t\t\t\tbufferedReader1.readLine();\n\t\t\t\t\tbufferedReader2.readLine();\n\t\t\t\t}\n\t\t\t\tbufferedReader1.close();\n\t\t\t\tbufferedReader2.close();\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\tSystem.out.println(\"File is not exist!\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error liaoxingyu\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String getDataFileName() {\n return dataFileName;\n }",
"public void setNewFiles(java.lang.String[] param){\r\n \r\n validateNewFiles(param);\r\n\r\n localNewFilesTracker = true;\r\n \r\n this.localNewFiles=param;\r\n }",
"public static void main(String[] args) {\n\t\tString fileName =\"5 Mins_Bid_2003.05.04_2017.07.31.csv\";\r\n\t\t\t\t\t\t\r\n\t\tString pathEURUSD = \"C:\\\\fxdata\\\\EURUSD_UTC_\"+fileName;\r\n\t\tString pathGBPUSD = \"C:\\\\fxdata\\\\GBPUSD_UTC_\"+fileName;\r\n\t\tString pathAUDUSD = \"C:\\\\fxdata\\\\AUDUSD_UTC_\"+fileName;\r\n\t\tString pathUSDJPY = \"C:\\\\fxdata\\\\USDJPY_UTC_\"+fileName;\r\n\t\tString pathUSDCAD = \"C:\\\\fxdata\\\\USDCAD_UTC_\"+fileName;\r\n\t\tString pathNZDUSD = \"C:\\\\fxdata\\\\NZDUSD_UTC_\"+fileName;\r\n\t\tString pathEURJPY = \"C:\\\\fxdata\\\\EURJPY_UTC_\"+fileName;\r\n\t\tString pathEURGBP = \"C:\\\\fxdata\\\\EURGBP_UTC_\"+fileName;\r\n\t\tString pathEURAUD = \"C:\\\\fxdata\\\\EURAUD_UTC_\"+fileName;\r\n\t\tString pathCADJPY = \"C:\\\\fxdata\\\\CADJPY_UTC_\"+fileName;\r\n\t\tString pathAUDJPY = \"C:\\\\fxdata\\\\AUDJPY_UTC_\"+fileName;\r\n\t\tString pathNZDJPY = \"C:\\\\fxdata\\\\NZDJPY_UTC_\"+fileName;\r\n\t\tString pathGBPJPY = \"C:\\\\fxdata\\\\GBPJPY_UTC_\"+fileName;\r\n\t\tString pathGBPCAD = \"C:\\\\fxdata\\\\GBPCAD_UTC_\"+fileName;\r\n\t\tString pathGBPAUD = \"C:\\\\fxdata\\\\GBPAUD_UTC_\"+fileName;\r\n\t\t\r\n\t\tArrayList<String> paths = new ArrayList<String>();\r\n\t\tpaths.add(pathEURUSD);\r\n\t\tpaths.add(pathGBPUSD);\r\n\t\tpaths.add(pathAUDUSD);\r\n\t\tpaths.add(pathUSDJPY);\r\n\t\tpaths.add(pathEURJPY);\r\n\t\tpaths.add(pathEURAUD);\r\n\t\tpaths.add(pathGBPJPY);\r\n\t\tpaths.add(pathGBPAUD);\r\n\t\t\r\n\t\tint limit = paths.size()-1;\r\n\t\tint initial = 0;\r\n\t\tlimit = 0;\r\n\t\tArrayList<QuoteShort> dataI \t\t= null;\r\n\t\tArrayList<QuoteShort> dataS \t\t= null;\r\n\t\tfor (int i=initial;i<=limit;i++){\r\n\t\t\tString path = paths.get(i);\t\r\n\t\t\tString pairName = paths.get(i).split(\"\\\\\\\\\")[2].substring(0, 6);\r\n\t\t\tif (path.contains(\"UTC\")){\r\n\t\t\t\tdataI \t\t= DAO.retrieveDataShort5m(path, DataProvider.DUKASCOPY_FOREX3);\r\n\t\t\t}else{\r\n\t\t\t\tdataI \t\t= DAO.retrieveDataShort5m(path, DataProvider.DUKASCOPY_FOREX4);\r\n\t\t\t}\r\n\t\t\tTestLines.calculateCalendarAdjustedSinside(dataI);\r\n\t\t\t//TradingUtils.cleanWeekendDataSinside(dataI); \t\r\n\t\t\tdataS = TradingUtils.cleanWeekendDataS(dataI); \t\t\t\r\n\t\t\tArrayList<QuoteShort> data = null;\r\n\t\t\tdata = dataS;\r\n\t\t\t//System.out.println(\"total data: \"+data.size());\r\n\t\t\tArrayList<Integer> maxMins = TradingUtils.calculateMaxMinByBarShortAbsoluteInt(data);\r\n\t\t\t\r\n\t\t\tint begin = 4000000;\r\n\t\t\tint end = 5000000;\r\n\t\t\tint tp = 10;\r\n\t\t\tint sl = 20;\r\n\t\t\tdouble comm = 1.4;\r\n\t\t\t\r\n\t\t\tfor (int h1=0;h1<=0;h1+=1){\r\n\t\t\t\tint h2 = h1+9;\r\n\t\t\t\tfor (int thr=0;thr<=1000;thr+=100){\r\n\t\t\t\t\tfor (int diff=20;diff<=20;diff+=10){\r\n\t\t\t\t\t\tfor (tp=10;tp<=10;tp++){\r\n\t\t\t\t\t\t\tfor (sl=40000;sl<=40000;sl+=50){\r\n\t\t\t\t\t\t\t\tTestRetraces.testRetracev4(data, maxMins, begin, end, h1, h2, thr, tp,sl,diff);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*for (begin=1;begin<=1;begin+=100000){\r\n\t\t\t\tend = begin + 7000000;\r\n\t\t\t\tfor (int nBars=1000;nBars<=1000;nBars+=12){\r\n\t\t\t\t\tfor (int h1=16;h1<=16;h1+=1){\r\n\t\t\t\t\t\tint h2 = h1+7;\r\n\t\t\t\t\t//for (int nBars=120;nBars<=120;nBars++){\r\n\t\t\t\t\t\t//TestRetraces.testMaxRetracing(data, begin, end, h1, h2);\r\n\t\t\t\t\t\tfor (int thr=2000;thr<=2000;thr+=100){\r\n\t\t\t\t\t\t\t//TestRetraces.testMaxRetracingBars(data,maxMins, begin, end, h1, h2,thr,nBars);\r\n\t\t\t\t\t\t\tfor (int minPips=10;minPips<=10;minPips++){\r\n\t\t\t\t\t\t\t\tfor (int tries=10;tries<=10;tries++){\r\n\t\t\t\t\t\t\t\t\tfor (tp=10;tp<=10;tp++){\r\n\t\t\t\t\t\t\t\t\t\t//TestRetraces.testRetraceFailsInARow(data, maxMins, begin, end, h1, h2, thr, nBars, minPips, tp, tries);\r\n\t\t\t\t\t\t\t\t\t\tfor (sl=100;sl<=100;sl+=50){\r\n\t\t\t\t\t\t\t\t\t\t\tfor (int minDayLost=1;minDayLost<=10;minDayLost++){\r\n\t\t\t\t\t\t\t\t\t\t\t\tTestRetraces.testRetracev2(data, maxMins, begin, end, h1, h2, thr, nBars, minPips, tp,sl, minDayLost);\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}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public static void getInputFileData(){\n\t\t\t\n\t\t\t// editable fields\n\t\t\t\n\t\t\tString directDistanceFile = \"../data/direct_distance_1.txt\";\n\t\t\tString graphInputFile = \"../data/graph_input_1.txt\";\n\t\t\t\n\t\t\t\n\t\t\t// end of editable fields\n\t\t\t\n\t\t\t\n\t\t\tFile file1 = new File(directDistanceFile);\n\t\t\tFile file2 = new File(graphInputFile);\n\t\t\tfiles.add(file1);\n\t\t\tfiles.add(file2);\n\t\t\t\n\t\t\t/*// Directory where data files are\n\t\t\tPath dataPath = Paths.get(\"../data\");\n\t\t\t\n\t\t\tString path = dataPath.toAbsolutePath().toString();\n\t\t\t\n\t\t\tFile dir = new File (path);\n\t\t\t\t\t\n\t\t\tif (dir.listFiles() == null){\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"WARNING: No files found.\");\n\n\t\t\t} else if (dir.listFiles() != null && dir.listFiles().length == 2) {\n\t\t\n\t\t\t\tfor (File file : dir.listFiles()){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfiles.add(file.getName());\n\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"WARNING: Data folder may only contain two files: direct_distance and\"\n\t\t\t\t\t\t+ \" graph_input. Please modify contents accordingly before proceeding for alorithm to execute.\");\n\t\t\t\t\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\tfor (File file: files){\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t// store direct distances in a hashmap\n\t\t\t\t\tif (file.toString().contains(\"distance\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\t//FileReader fileReader = new FileReader(dataPath.toString() + \"/\" + file);\n\t\t\t\t\t\tFileReader fileReader = new FileReader(file);\n\t\t\t\t BufferedReader reader = new BufferedReader(fileReader);\n\t\t\t\t String line = null;\n\t\t\t\t \n\t\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t\t \t\n\t\t\t\t \tStringBuilder num = new StringBuilder();\n\t\t\t\t \tStringBuilder str = new StringBuilder();\n\t\t\t\t \n\t\t\t\t \tfor(char c : line.toCharArray()){\n\t\t\t\t \t\t//find the distance\n\t\t\t\t if(Character.isDigit(c)){\n\t\t\t\t num.append(c);\n\t\t\t\t } \n\t\t\t\t //find the associated letter\n\t\t\t\t else if(Character.isLetter(c)){\n\t\t\t\t str.append(c); \n\t\t\t\t }\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t \t// add values into hashmap\n\t\t\t\t \tdistance.put(str.toString(), Integer.parseInt(num.toString()));\n\t\t\t\t \t\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t reader.close(); // close the reader\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(distance);\n\t\t\t\t \n\t\t\t\t } \n\t\t\t\t\t\n\t\t\t\t\t// store inputs in a \n\t\t\t\t\telse if (file.toString().contains(\"input\")){\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//FileReader fileReader = new FileReader(dataPath.toString() + \"/\" + file);\n\t\t\t\t\t\tFileReader fileReader = new FileReader(file);\n\t\t\t\t BufferedReader reader = new BufferedReader(fileReader);\n\t\t\t\t \n\t\t\t\t String line = null;\n\t\t\t\t \n\t\t\t\t int x=0; // keeps track of line to add\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t\t \tString[] values = line.split(\"\\\\s+\");\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t if (matrix == null) {\n\t\t\t\t \t\t //instantiate matrix\n\t\t\t\t matrix = new String[widthOfArray = values.length]\n\t\t\t\t \t\t \t\t\t[lenghtOfArray = values.length];\n\t\t\t\t }\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t \t// add values into the matrix\n\t\t\t\t \tfor (int i=0; i < values.length; i++){\n\t\t\t\t \t\t\n\t\t\t\t \t\tmatrix[i][x] = values[i];\n\t\t\t\t \t\t\n\t\t\t\t \t}\n\t\t\t\t \t\n\t\t\t\t \tx++; // next line\n\t\t\t\t \t\n\t\t\t\t \t\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t reader.close(); // close the reader\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Store input combinations in a hashmap\n\t\t\t\t\tint y=1; \n\t\t\t\t\twhile (y < lenghtOfArray){\n\t\t\t\t\t\t\n\t\t\t\t\t\tinputNodes.add(matrix[0][y]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int i=1; i < widthOfArray; i++){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tStringBuilder str = new StringBuilder();\n\t\t\t\t\t\t\tstr.append(matrix[0][y]);\n\t\t\t\t\t\t\tstr.append(matrix[i][0]);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint inputValue = Integer.parseInt(matrix[i][y]);\n\n\t\t\t\t\t\t\tif (inputValue > 0){\n\t\t\t\t\t\t\t\tinputMap.put(str.toString(), inputValue);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ty++;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"WARNING: Please check: \"+ file.toString() + \". It was not found.\");\n\t\t\t\t} \n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}",
"private void recordLocationData() \r\n\t{\r\n\t\tif(loadedImage!=null)\r\n\t\t{\r\n\t\t\tString image = BitMapToString(loadedImage);\r\n\t\t\tStringBuffer stringBuffer = new StringBuffer();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < image.length(); i++) \r\n\t\t\t{\r\n\t\t\t\tif (image.charAt(i) != '\\n' && image.charAt(i) != '\\r') \r\n\t\t\t\t{\r\n\t\t\t\t\tstringBuffer.append(image.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalimage = stringBuffer.toString();\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfinalimage = \"dummystring\";\r\n\t\t\tfinaloutput=xLocation+\"\\n\"+yLocation+\"\\n\"+locationTitle+\"\\n\"+description+\"\\n\"+finalimage+\"\\n\";\r\n\t\t\t\r\n\t\t\tcreateLocationObject();\r\n\t\t\twritetoFile(finaloutput);\r\n\t\t\t\r\n\t\t\tdatasource.addLocation(getxLocation(), getyLocation(), locationTitle, description, finalimage); \r\n\t\t\tLog.v(\"CHECK again: \", getxLocation()+\"\\n\"+getyLocation());\r\n\t\t}\r\n\t\t\r\n\t\tLog.v(\"ADD finaloutput: \", finaloutput);\r\n\t}",
"public void setSrcDatasetName(String srcDatasetName) {\r\n this.srcDatasetName = srcDatasetName;\r\n }",
"private void setSourceName(String name) {\n srcFileName = name;\n }",
"public String metaFileName(String bsfName);",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"C:\\\\Users\\\\SHANDEMETZ\\\\Downloads\\\\Compressed\\\\gene_association.goa_human\\\\gene_association.goa_human\")));\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"outputs\\\\annotNameList.csv\")));;\n\t\tString line = \"\";\n\t\tString[] lineSplits;\n\t\tString[] lineSplits1;\n\t\tString annotName;\n\t\tString annotId;\n\t\tfor(int i = 0 ;i < 35;i++){\n\t\t\tbr.readLine();\n\t\t}\n\t\tMap<String,String> annotNameMap = new HashMap<String,String>();\n\t\tbr.readLine();\n\t\twhile(null != (line = br.readLine())){\n\t\t\tlineSplits = line.split(\"[\\t]\");\n\t\t\tlineSplits1 = lineSplits[4].split(\":\");\n\t\t\tannotId = lineSplits1[1];\n\t\t\tannotName = lineSplits[9];\n\t\t\tannotNameMap.put(annotId, annotName);\n\t\t}\n\t\tfor(Entry<String,String> entry:annotNameMap.entrySet()){\n\t\t\tbw = new BufferedWriter(new FileWriter(new File(\"outputs\\\\annotNameList.csv\"),true));\n\t\t\tSystem.out.println(entry.getKey()+\",\"+entry.getValue());\n\t\t\tbw.write(entry.getKey()+\",\"+entry.getValue());\n\t\t\tbw.write(\"\\n\");\n\t\t\tbw.close();\n\t\t}\n\t}",
"public static void main(String[] args) {\n String dataDir = Utils.getDataDir(ParticularDWGToImage.class) + \"DWGDrawings/\";\n String sourceFilePath = dataDir + \"visualization_-_conference_room.dwg\";\n\n CadImage cadImage = ((CadImage)(Image.load(sourceFilePath)));\n\n CadBaseEntity[] entities = cadImage.getEntities();\n \n List<CadBaseEntity> filteredEntities = new ArrayList<CadBaseEntity>();\n for (CadBaseEntity baseEntity : entities) {\n // selection or filtration of entities\n if ((baseEntity.getTypeName() == CadEntityTypeName.TEXT)) {\n filteredEntities.add(baseEntity);\n }\n\n }\n \n CadBaseEntity[] arr = new CadBaseEntity[filteredEntities.size()];\n cadImage.setEntities(filteredEntities.toArray(arr));\n // Create an instance of CadRasterizationOptions and set its various properties\n CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();\n rasterizationOptions.setPageWidth(1600);\n rasterizationOptions.setPageHeight(1600);\n // Set Auto Layout Scaling\n rasterizationOptions.setAutomaticLayoutsScaling(true);\n // Create an instance of PdfOptions\n PdfOptions pdfOptions = new PdfOptions();\n // Set the VectorRasterizationOptions property\n pdfOptions.setVectorRasterizationOptions(rasterizationOptions);\n String outFile = dataDir + \"result_out_generated.pdf\";\n // Export the CAD to PDF\n cadImage.save(outFile, pdfOptions);\n //ExEnd:ParticularDWGToImage\n }",
"public static void main(String[] args) {\n\t\tFileUTL fUtl = new FileUTL();\n\t\tString fileAddres = \"C:\\\\Users\\\\lenovo\\\\Desktop\\\\医嘱和对应路径信息\\\\\";\n\t\tString filename = fileAddres+\"12个病人的医嘱信息-utf8.csv\";\n\t\tString splitSign = \",\";\n\t\tString dateSign = \"/\";\n\t\tfUtl.readFile(filename, splitSign, dateSign);\n\t}",
"private void createSource(String sourceName, String content) {\n\t\t\n\t}",
"public String getDataFilePath() {\r\n \t\treturn dataFile;\r\n \t}",
"@Override\n\tprotected String getFileName() {\n\t\treturn null;\n\t}",
"private void initData() {\n\n MyLog.log(\"调用录音上传接口\");\n MosHelper.startCheck(new MosHelper.mosSourceListener() {\n\n @Override\n public void getMosSource(String testTest, ArrayList<String> source) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void getMosIMEIAndId(String IMEI,\n String sourceId) {\n // TODO Auto-generated method stub\n MyLog.log(\"IMEI::\" + IMEI);\n Message message = handler.obtainMessage();\n message.obj = \"IMEI::\" + IMEI + \"\\n\" + \"sourceID:\\n\" + sourceId;\n message.what = 8;\n handler.sendMessage(message);\n\n }\n });\n }",
"public void setDataFileName(String dataFileName) {\n this.dataFileName = dataFileName;\n }",
"public FileSourceGraphML() {\n\t\tevents = new Stack<XMLEvent>();\n\t\tkeys = new HashMap<String, Key>();\n\t\tdatas = new LinkedList<Data>();\n\t\tgraphId = new Stack<String>();\n\t\tgraphCounter = 0;\n\t\tsourceId = String.format(\"<GraphML stream %x>\", System.nanoTime());\n\t}",
"public void setFilename( String name) {\n\tfilename = name;\n }",
"public GRAB(String filename) {\n this.filename = filename;\n }",
"String [][] importData (String path);",
"private static void collectVariables(Document document){\n //collecting all the nodes inside a list\n nodeList = document.selectNodes(NOTES);\n\n //initialising the lists\n entriesList = new ArrayList<>();\n locationsList = new ArrayList<>();\n attachmentList = new ArrayList<>();\n tagsForEntryList = new ArrayList<>();\n\n //hashSet for handling the duplicate fileNames\n fileNameSet = new LinkedHashSet<>();\n\n //linkedHashMap for storing the uid for each tag\n uidForEachTag = new LinkedHashMap<>();\n uidForEachLocation = new LinkedHashMap<>();\n\n //id set for storing unique location id\n locationsIdSet = new LinkedHashSet<>();\n\n Tags tags;\n Location location;\n Entry entry;\n Attachment attachment;\n\n byte[] decoded = null;\n\n //looping through the list\n for(Node node : nodeList){\n\n String title = \"\";\n String parsedHtml = \"\";\n String formattedDate = \"\";\n String location_uid = \"\";\n String mime = \"\";\n String fileName = \"\";\n String attachment_uid = null;\n String entry_uid = \"\";\n String type = \"photo\";\n String baseEncoding;\n String tag_uid = \"\";\n\n //get all tags including duplicates\n if( node.selectSingleNode(TAG) !=null) {\n List<Node> evernote_tags = node.selectNodes(TAG);\n for (Node evenote_tag : evernote_tags) {\n //generate unique id for the tag and map it.\n //if the name id pair does not exist\n if(!uidForEachTag.containsKey(evenote_tag.getText())) {\n uidForEachTag.put(evenote_tag.getText(), Entry.generateRandomUid());\n }\n //create new diaro.Tags Object\n tags = new Tags(uidForEachTag.get(evenote_tag.getText()),evenote_tag.getText());\n tagsForEntryList.add(tags);\n }\n }\n\n //get all Locations\n // using diaro.Entry.concatLatLng to add title as {<Latitude></Latitude>,<Longitude></Longitude>}\n if( node.selectSingleNode(LATITUDE) != null && node.selectSingleNode(LONGITUDE) != null) {\n String latitude = String.format(\"%.5f\",Double.parseDouble(node.selectSingleNode(LATITUDE).getText()));\n String longitude = String.format(\"%.5f\",Double.parseDouble(node.selectSingleNode(LONGITUDE).getText()));\n String location_title = (ImportUtils.concatLatLng(latitude, longitude));\n\n //mapping every uid to the address\n if(!uidForEachLocation.containsKey(location_title)) {\n uidForEachLocation.put(location_title, Entry.generateRandomUid());\n }\n location_uid = uidForEachLocation.get(location_title);\n location = new Location(location_uid,latitude,longitude,location_title, location_title, DEFAULT_ZOOM);\n if (!locationsIdSet.contains(location.location_uid)) {\n locationsList.add(location);\n locationsIdSet.add(location.location_uid);\n }\n }\n\n //get all Entries\n if(node.selectSingleNode(TITLE) != null ){\n title = node.selectSingleNode(TITLE).getText();\n }\n if(node.selectSingleNode(CONTENT) != null ){\n String text = node.selectSingleNode(CONTENT).getText();\n // using Jsoup to parseXml HTML inside Content\n parsedHtml = Jsoup.parse(text).text();\n }\n if(node.selectSingleNode(CREATED) != null){\n String date = node.selectSingleNode(CREATED).getText().substring(0, 8);\n String month = date.substring(4, 6);\n String day = date.substring(6, 8);\n String year = date.substring(2, 4);\n formattedDate = String.format(\"%s/%s/%s\", month, day, year);\n }\n\n //get all the tags\n //append all the string stringBuilder\n if(tagsForEntryList.size() != 0){\n for(Tags tag : tagsForEntryList) {\n tag_uid = tag_uid + (\",\") + (String.join(\",\", tag.tagsId));\n }\n tag_uid = tag_uid + (\",\");\n System.out.println(tag_uid);\n\n }\n entry = new Entry();\n entry.setUid(Entry.generateRandomUid());\n entry.setTz_offset(OFFSET);\n entry.setDate(formattedDate);\n entry.setText(parsedHtml);\n entry.setTitle(title);\n entry.setFolder_uid(FOLDER_UID);\n entry.setLocation_uid(location_uid);\n entry.setTags(tag_uid);\n //clear the list\n //clear the tag_uid variable for next loop\n tagsForEntryList.clear();\n tag_uid = \"\";\n //add entry in the list\n entriesList.add(entry);\n\n //get all the attachments\n if (node.selectSingleNode(RESOURCE) != null) {\n List<Node> attachmentsForEachEntry = node.selectNodes(RESOURCE);\n //loop through all the attachments for a single note/entry\n for (Node attachmentForeach : attachmentsForEachEntry) {\n try {\n mime = attachmentForeach.selectSingleNode(MIME).getText();\n\n }catch( NullPointerException e){\n e.printStackTrace();\n }\n // check for a valid attachment\n if(checkForImageMime(mime)) {\n try {\n fileName = attachmentForeach.selectSingleNode(RESOURCE_ATTRIBUTE_FILENAME).getText();\n attachment_uid = Entry.generateRandomUid();\n entry_uid = entry.uid;\n baseEncoding = attachmentForeach.selectSingleNode(DATA).getText();\n //----- please do a check for valid Base64--\n decoded = Base64.getMimeDecoder().decode(baseEncoding);\n // assign primary_photo uid to entry\n entry.primary_photo_uid = attachment_uid;\n }catch(IllegalArgumentException | NullPointerException e){\n e.printStackTrace();\n }\n // check if the fileName already exists\n // if true generate a new fileName to prevent duplicates\n if(fileNameSet.add(fileName)){\n fileNameSet.add(fileName);\n attachment = new Attachment(attachment_uid, entry_uid, type,fileName,decoded);\n }else{\n String newFileName = ImportUtils.generateNewFileName(fileName);\n fileNameSet.add(newFileName);\n attachment = new Attachment(attachment_uid, entry_uid, type,newFileName,decoded);\n }\n attachmentList.add(attachment);\n }\n }\n }\n }\n\n }",
"private void setInitialSourceFile()\n\t{\n\t\tint largestAuthoredId = -1;\n\t\tSourceFile[] files = m_fileInfo.getFileList();\n\t\tfor (int i=0; i<files.length; ++i)\n\t\t{\n\t\t\tSourceFile sf = files[i];\n\t\t\tif (sf.getId() > largestAuthoredId && getFileType(sf) == AUTHORED_FILE)\n\t\t\t\tlargestAuthoredId = sf.getId();\n\t\t}\n\t\tif (largestAuthoredId != -1)\n\t\t\tsetListingPosition(largestAuthoredId, 1);\n\t}",
"public String[] getInfoFile(){\n String [] values = new String[4];\n values[0]= _file.getName(); //nombre\n values[1]= cities.size()+\"\";//ciudades\n values[2]= paths.length+\"\";\n return values;\n }",
"private static void SetAttributes( DataSet ds,\n String filename,\n SNS_Tof_to_Q_map mapper )\n {\n int[] RunNums = new int[1];\n RunNums[0] = getRunNumber( filename );\n\n float L1 = mapper.getL1();\n float T0 = mapper.getT0();\n Attribute L1Attr = new FloatAttribute( Attribute.INITIAL_PATH, L1);\n Attribute T0Attr = new FloatAttribute( Attribute.T0_SHIFT, T0);\n Attribute RunsAttr = new IntListAttribute( Attribute.RUN_NUM, RunNums );\n\n float TotTotCount = 0;\n\n for( int i = 0; i < ds.getNum_entries(); i++)\n {\n Data D = ds.getData_entry(i);\n D.setAttribute( RunsAttr );\n D.setAttribute( L1Attr );\n D.setAttribute( T0Attr);\n\n float[] yvals = D.getY_values();\n float TotCount =0;\n for( int j = 0; j < yvals.length; j++ )\n TotCount +=yvals[j];\n \n TotTotCount +=TotCount;\n D.setAttribute( new FloatAttribute( Attribute.TOTAL_COUNT, TotCount));\n // TO DO: Add effective position and pixel info list\n // TO DO: Add delta 2 theta\n // TO DO: Add Total Solid Angle\n // TO DO: Add list of Bank IDs\n // TO DO: Add list of Pixel IDs\n }\n\n ds.setAttribute( new StringAttribute( Attribute.FILE_NAME, filename));\n\n String instr = FileIO.getSNSInstrumentName( filename );\n if( instr != null && instr.length()>2)\n ds.setAttribute( new StringAttribute(Attribute.INST_NAME, instr));\n\n ds.setAttribute( new StringAttribute( Attribute.FACILITY_NAME, \"SNS\"));\n\n // TO DO: add Instrument Type\n\n ds.setAttribute( \n new StringAttribute( Attribute.DS_TYPE, Attribute.SAMPLE_DATA));\n\n // TO DO: add run title\n\n ds.setAttribute( RunsAttr );\n\n AddDateTimeAttribute( ds, (new File( filename )).lastModified());\n\n ds.setAttribute( new FloatAttribute(Attribute.TOTAL_COUNT, TotTotCount ));\n // TO DO: add number of pulses\n // TO DO: add proton count \n // TO DO: add user name\n\n }",
"public String getFILE_SAMPLE() {\r\n return FILE_SAMPLE;\r\n }",
"public static void main(String args[]) {\n\t\tString destination = \"C:\\\\Users\\\\VIIPL02\\\\Desktop\\\\hii\\\\kk_(1).jpg\";\n\t\t//System.out.println(destination);\n\t\t int index1= destination.lastIndexOf(\"_(\");\n \t int index2= destination.lastIndexOf(\")\");\n \t String rig_val=\"\";\n\t\t for(int k=2;k<(index2-index1);k++)\n \t\t rig_val=rig_val+destination.charAt(index1+k)+\"\";\n\t\t \n\t\t \n\t\t //System.out.println(rig_val);\n\t\tfor(int i=0;i<10000000;i++) {\n//\t\tdestination= destination.replace(\"_(\"+(destination.charAt((destination.lastIndexOf(\"(\")+1)))+\")\",\"_(\"+((Integer.parseInt((destination.charAt((destination.lastIndexOf(\"(\")+1)))+\"\" ))+1)+\")\").replace(\"_(\"+(destination.charAt((destination.lastIndexOf(\"(\")+1)))+\")\",\"_(\"+((Integer.parseInt((destination.charAt((destination.lastIndexOf(\"(\")+1)))+\"\" ))+1)+\")\");\n\t\t\t\n\t\t\n\t\t\tdestination=destination.replace(\"_(\"+rig_val+\")\",\"_(\"+(Integer.parseInt(rig_val)+1)+\")\");\n\t\t\trig_val=\"\"+(Integer.parseInt(rig_val)+1);\n\t\t\t//System.out.println(destination);\n\t\t}\n//\t\t //System.out.println( destination.replace(\"_(\"+(destination.charAt((destination.lastIndexOf(\"(\")+1)))+\")\",\"_(\"+((Integer.parseInt((destination.charAt((destination.lastIndexOf(\"(\")+1)))+\"\" ))+1)+\")\"));\n\n\t\t//System.out.println(\"completed\");\n\t}",
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000);\r\n\t\t//\t\tDelimitedWriter dw = new DelimitedWriter(Main.dir + \"/visible_idize\");\r\n\t\t//\t\tDelimitedWriter dw_debug = new DelimitedWriter(Main.dir + \"/visible_debug\");\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbenglishname);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tnamedmid2name.put(l[0], namedmid2name.size());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tD.p(\"load mid2name finished\");\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid = l[0];\r\n\t\t//\t\t\t\tInteger gid = namedmid2name.get(mid);\r\n\t\t//\t\t\t\tif (gid == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid, relid, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_visible_str);\r\n\t\t//\t\t\tString[] l;\r\n\t\t//\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t//\t\t\t\tString mid1 = l[0];\r\n\t\t//\t\t\t\tString mid2 = l[3];\r\n\t\t//\t\t\t\tInteger gid1 = namedmid2name.get(mid1);\r\n\t\t//\t\t\t\tInteger gid2 = namedmid2name.get(mid2);\r\n\t\t//\t\t\t\tif (gid1 == null || gid2 == null) {\r\n\t\t//\t\t\t\t\tdw_debug.write(l);\r\n\t\t//\t\t\t\t\tcontinue;\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tString relationname = l[2];\r\n\t\t//\t\t\t\tif (!relationname2id.containsKey(relationname)) {\r\n\t\t//\t\t\t\t\trelationname2id.put(relationname, relationname2id.size());\r\n\t\t//\t\t\t\t}\r\n\t\t//\t\t\t\tint relid = relationname2id.get(relationname);\r\n\t\t//\t\t\t\tdw.write(l[1], gid1, relid, gid2, l[3]);\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdr.close();\r\n\t\t//\t\t}\r\n\t\t//\t\tdw.close();\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwrel = new DelimitedWriter(Main.dir + \"/visible_relations.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : relationname2id.entrySet()) {\r\n\t\t//\t\t\t\tdwrel.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwrel.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_relations.temp\", Main.dir + \"/visible_relations\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t\t//\t\t{\r\n\t\t//\t\t\tDelimitedWriter dwmid = new DelimitedWriter(Main.dir + \"/visible_mid2gid.temp\");\r\n\t\t//\t\t\tfor (Entry<String, Integer> e : namedmid2name.entrySet()) {\r\n\t\t//\t\t\t\tdwmid.write(e.getValue(), e.getKey());\r\n\t\t//\t\t\t}\r\n\t\t//\t\t\tdwmid.close();\r\n\t\t//\t\t\tSort.sort(Main.dir + \"/visible_mid2gid.temp\", Main.dir + \"/visible_mid2gid\", Main.dir,\r\n\t\t//\t\t\t\t\tnew Comparator<String[]>() {\r\n\t\t//\t\t\t\t\t\t@Override\r\n\t\t//\t\t\t\t\t\tpublic int compare(String[] o1, String[] o2) {\r\n\t\t//\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t//\t\t\t\t\t\t\treturn Integer.parseInt(o1[0]) - Integer.parseInt(o2[0]);\r\n\t\t//\t\t\t\t\t\t}\r\n\t\t//\r\n\t\t//\t\t\t\t\t});\r\n\t\t//\t\t}\r\n\t}",
"public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }",
"private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}",
"public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }",
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_CODE) {\n if (data != null) {\n Bundle extras = data.getExtras();\n if (extras != null) {\n Log.d(\"test\", extras.getString(\"File_name\"));\n load(extras.getString(\"File_name\"));\n }\n }\n }\n }",
"protected void initFile(String id) throws FormatException, IOException {\n // normalize file name\n super.initFile(normalizeFilename(null, id));\n id = currentId;\n String dir = new File(id).getParent();\n\n // parse and populate OME-XML metadata\n String fileName = new Location(id).getAbsoluteFile().getAbsolutePath();\n RandomAccessInputStream ras = new RandomAccessInputStream(fileName);\n String xml;\n IFD firstIFD;\n try {\n TiffParser tp = new TiffParser(ras);\n firstIFD = tp.getFirstIFD();\n xml = firstIFD.getComment();\n }\n finally {\n ras.close();\n }\n\n if (service == null) setupService();\n OMEXMLMetadata meta;\n try {\n meta = service.createOMEXMLMetadata(xml);\n }\n catch (ServiceException se) {\n throw new FormatException(se);\n }\n\n hasSPW = meta.getPlateCount() > 0;\n\n for (int i=0; i<meta.getImageCount(); i++) {\n int sizeC = meta.getPixelsSizeC(i).getValue().intValue();\n service.removeChannels(meta, i, sizeC);\n }\n\n // TODO\n //Hashtable originalMetadata = meta.getOriginalMetadata();\n //if (originalMetadata != null) metadata = originalMetadata;\n\n LOGGER.trace(xml);\n\n if (meta.getRoot() == null) {\n throw new FormatException(\"Could not parse OME-XML from TIFF comment\");\n }\n\n String[] acquiredDates = new String[meta.getImageCount()];\n for (int i=0; i<acquiredDates.length; i++) {\n acquiredDates[i] = meta.getImageAcquiredDate(i);\n }\n\n String currentUUID = meta.getUUID();\n service.convertMetadata(meta, metadataStore);\n\n // determine series count from Image and Pixels elements\n int seriesCount = meta.getImageCount();\n core = new CoreMetadata[seriesCount];\n for (int i=0; i<seriesCount; i++) {\n core[i] = new CoreMetadata();\n }\n info = new OMETiffPlane[seriesCount][];\n\n tileWidth = new int[seriesCount];\n tileHeight = new int[seriesCount];\n\n // compile list of file/UUID mappings\n Hashtable<String, String> files = new Hashtable<String, String>();\n boolean needSearch = false;\n for (int i=0; i<seriesCount; i++) {\n int tiffDataCount = meta.getTiffDataCount(i);\n for (int td=0; td<tiffDataCount; td++) {\n String uuid = null;\n try {\n uuid = meta.getUUIDValue(i, td);\n }\n catch (NullPointerException e) { }\n String filename = null;\n if (uuid == null) {\n // no UUID means that TiffData element refers to this file\n uuid = \"\";\n filename = id;\n }\n else {\n filename = meta.getUUIDFileName(i, td);\n if (!new Location(dir, filename).exists()) filename = null;\n if (filename == null) {\n if (uuid.equals(currentUUID) || currentUUID == null) {\n // UUID references this file\n filename = id;\n }\n else {\n // will need to search for this UUID\n filename = \"\";\n needSearch = true;\n }\n }\n else filename = normalizeFilename(dir, filename);\n }\n String existing = files.get(uuid);\n if (existing == null) files.put(uuid, filename);\n else if (!existing.equals(filename)) {\n throw new FormatException(\"Inconsistent UUID filenames\");\n }\n }\n }\n\n // search for missing filenames\n if (needSearch) {\n Enumeration en = files.keys();\n while (en.hasMoreElements()) {\n String uuid = (String) en.nextElement();\n String filename = files.get(uuid);\n if (filename.equals(\"\")) {\n // TODO search...\n // should scan only other .ome.tif files\n // to make this work with OME server may be a little tricky?\n throw new FormatException(\"Unmatched UUID: \" + uuid);\n }\n }\n }\n\n // build list of used files\n Enumeration en = files.keys();\n int numUUIDs = files.size();\n HashSet fileSet = new HashSet(); // ensure no duplicate filenames\n for (int i=0; i<numUUIDs; i++) {\n String uuid = (String) en.nextElement();\n String filename = files.get(uuid);\n fileSet.add(filename);\n }\n used = new String[fileSet.size()];\n Iterator iter = fileSet.iterator();\n for (int i=0; i<used.length; i++) used[i] = (String) iter.next();\n\n // process TiffData elements\n Hashtable<String, IFormatReader> readers =\n new Hashtable<String, IFormatReader>();\n for (int i=0; i<seriesCount; i++) {\n int s = i;\n LOGGER.debug(\"Image[{}] {\", i);\n LOGGER.debug(\" id = {}\", meta.getImageID(i));\n\n String order = meta.getPixelsDimensionOrder(i).toString();\n\n PositiveInteger samplesPerPixel = null;\n if (meta.getChannelCount(i) > 0) {\n samplesPerPixel = meta.getChannelSamplesPerPixel(i, 0);\n }\n int samples = samplesPerPixel == null ? -1 : samplesPerPixel.getValue();\n int tiffSamples = firstIFD.getSamplesPerPixel();\n\n boolean adjustedSamples = false;\n if (samples != tiffSamples) {\n LOGGER.warn(\"SamplesPerPixel mismatch: OME={}, TIFF={}\",\n samples, tiffSamples);\n samples = tiffSamples;\n adjustedSamples = true;\n }\n\n if (adjustedSamples && meta.getChannelCount(i) <= 1) {\n adjustedSamples = false;\n }\n\n int effSizeC = meta.getPixelsSizeC(i).getValue().intValue();\n if (!adjustedSamples) {\n effSizeC /= samples;\n }\n if (effSizeC == 0) effSizeC = 1;\n if (effSizeC * samples != meta.getPixelsSizeC(i).getValue().intValue()) {\n effSizeC = meta.getPixelsSizeC(i).getValue().intValue();\n }\n int sizeT = meta.getPixelsSizeT(i).getValue().intValue();\n int sizeZ = meta.getPixelsSizeZ(i).getValue().intValue();\n int num = effSizeC * sizeT * sizeZ;\n\n OMETiffPlane[] planes = new OMETiffPlane[num];\n for (int no=0; no<num; no++) planes[no] = new OMETiffPlane();\n\n int tiffDataCount = meta.getTiffDataCount(i);\n boolean zOneIndexed = false;\n boolean cOneIndexed = false;\n boolean tOneIndexed = false;\n\n // pre-scan TiffData indices to see if any of them are indexed from 1\n\n for (int td=0; td<tiffDataCount; td++) {\n NonNegativeInteger firstC = meta.getTiffDataFirstC(i, td);\n NonNegativeInteger firstT = meta.getTiffDataFirstT(i, td);\n NonNegativeInteger firstZ = meta.getTiffDataFirstZ(i, td);\n int c = firstC == null ? 0 : firstC.getValue();\n int t = firstT == null ? 0 : firstT.getValue();\n int z = firstZ == null ? 0 : firstZ.getValue();\n\n if (c >= effSizeC) cOneIndexed = true;\n if (z >= sizeZ) zOneIndexed = true;\n if (t >= sizeT) tOneIndexed = true;\n }\n\n for (int td=0; td<tiffDataCount; td++) {\n LOGGER.debug(\" TiffData[{}] {\", td);\n // extract TiffData parameters\n String filename = null;\n String uuid = null;\n try {\n filename = meta.getUUIDFileName(i, td);\n } catch (NullPointerException e) {\n LOGGER.debug(\"Ignoring null UUID object when retrieving filename.\");\n }\n try {\n uuid = meta.getUUIDValue(i, td);\n } catch (NullPointerException e) {\n LOGGER.debug(\"Ignoring null UUID object when retrieving value.\");\n }\n NonNegativeInteger tdIFD = meta.getTiffDataIFD(i, td);\n int ifd = tdIFD == null ? 0 : tdIFD.getValue();\n NonNegativeInteger numPlanes = meta.getTiffDataPlaneCount(i, td);\n NonNegativeInteger firstC = meta.getTiffDataFirstC(i, td);\n NonNegativeInteger firstT = meta.getTiffDataFirstT(i, td);\n NonNegativeInteger firstZ = meta.getTiffDataFirstZ(i, td);\n int c = firstC == null ? 0 : firstC.getValue();\n int t = firstT == null ? 0 : firstT.getValue();\n int z = firstZ == null ? 0 : firstZ.getValue();\n\n // NB: some writers index FirstC, FirstZ and FirstT from 1\n if (cOneIndexed) c--;\n if (zOneIndexed) z--;\n if (tOneIndexed) t--;\n\n int index = FormatTools.getIndex(order,\n sizeZ, effSizeC, sizeT, num, z, c, t);\n int count = numPlanes == null ? 1 : numPlanes.getValue();\n if (count == 0) {\n core[s] = null;\n break;\n }\n\n // get reader object for this filename\n if (filename == null) {\n if (uuid == null) filename = id;\n else filename = files.get(uuid);\n }\n else filename = normalizeFilename(dir, filename);\n IFormatReader r = readers.get(filename);\n if (r == null) {\n r = new MinimalTiffReader();\n readers.put(filename, r);\n }\n\n Location file = new Location(filename);\n if (!file.exists()) {\n // if this is an absolute file name, try using a relative name\n // old versions of OMETiffWriter wrote an absolute path to\n // UUID.FileName, which causes problems if the file is moved to\n // a different directory\n filename =\n filename.substring(filename.lastIndexOf(File.separator) + 1);\n filename = dir + File.separator + filename;\n\n if (!new Location(filename).exists()) {\n filename = currentId;\n }\n }\n\n // populate plane index -> IFD mapping\n for (int q=0; q<count; q++) {\n int no = index + q;\n planes[no].reader = r;\n planes[no].id = filename;\n planes[no].ifd = ifd + q;\n planes[no].certain = true;\n LOGGER.debug(\" Plane[{}]: file={}, IFD={}\",\n new Object[] {no, planes[no].id, planes[no].ifd});\n }\n if (numPlanes == null) {\n // unknown number of planes; fill down\n for (int no=index+1; no<num; no++) {\n if (planes[no].certain) break;\n planes[no].reader = r;\n planes[no].id = filename;\n planes[no].ifd = planes[no - 1].ifd + 1;\n LOGGER.debug(\" Plane[{}]: FILLED\", no);\n }\n }\n else {\n // known number of planes; clear anything subsequently filled\n for (int no=index+count; no<num; no++) {\n if (planes[no].certain) break;\n planes[no].reader = null;\n planes[no].id = null;\n planes[no].ifd = -1;\n LOGGER.debug(\" Plane[{}]: CLEARED\", no);\n }\n }\n LOGGER.debug(\" }\");\n }\n\n if (core[s] == null) continue;\n\n // verify that all planes are available\n LOGGER.debug(\" --------------------------------\");\n for (int no=0; no<num; no++) {\n LOGGER.debug(\" Plane[{}]: file={}, IFD={}\",\n new Object[] {no, planes[no].id, planes[no].ifd});\n if (planes[no].reader == null) {\n LOGGER.warn(\"Image ID '{}': missing plane #{}. \" +\n \"Using TiffReader to determine the number of planes.\",\n meta.getImageID(i), no);\n TiffReader r = new TiffReader();\n r.setId(currentId);\n try {\n planes = new OMETiffPlane[r.getImageCount()];\n for (int plane=0; plane<planes.length; plane++) {\n planes[plane] = new OMETiffPlane();\n planes[plane].id = currentId;\n planes[plane].reader = r;\n planes[plane].ifd = plane;\n }\n num = planes.length;\n }\n finally {\n r.close();\n }\n }\n }\n LOGGER.debug(\" }\");\n\n // populate core metadata\n info[s] = planes;\n try {\n if (!info[s][0].reader.isThisType(info[s][0].id)) {\n info[s][0].id = currentId;\n }\n for (int plane=0; plane<info[s].length; plane++) {\n if (!info[s][plane].reader.isThisType(info[s][plane].id)) {\n info[s][plane].id = info[s][0].id;\n }\n }\n\n info[s][0].reader.setId(info[s][0].id);\n tileWidth[s] = info[s][0].reader.getOptimalTileWidth();\n tileHeight[s] = info[s][0].reader.getOptimalTileHeight();\n\n core[s].sizeX = meta.getPixelsSizeX(i).getValue().intValue();\n int tiffWidth = (int) firstIFD.getImageWidth();\n if (core[s].sizeX != tiffWidth) {\n LOGGER.warn(\"SizeX mismatch: OME={}, TIFF={}\",\n core[s].sizeX, tiffWidth);\n }\n core[s].sizeY = meta.getPixelsSizeY(i).getValue().intValue();\n int tiffHeight = (int) firstIFD.getImageLength();\n if (core[s].sizeY != tiffHeight) {\n LOGGER.warn(\"SizeY mismatch: OME={}, TIFF={}\",\n core[s].sizeY, tiffHeight);\n }\n core[s].sizeZ = meta.getPixelsSizeZ(i).getValue().intValue();\n core[s].sizeC = meta.getPixelsSizeC(i).getValue().intValue();\n core[s].sizeT = meta.getPixelsSizeT(i).getValue().intValue();\n core[s].pixelType = FormatTools.pixelTypeFromString(\n meta.getPixelsType(i).toString());\n int tiffPixelType = firstIFD.getPixelType();\n if (core[s].pixelType != tiffPixelType) {\n LOGGER.warn(\"PixelType mismatch: OME={}, TIFF={}\",\n core[s].pixelType, tiffPixelType);\n core[s].pixelType = tiffPixelType;\n }\n core[s].imageCount = num;\n core[s].dimensionOrder = meta.getPixelsDimensionOrder(i).toString();\n\n // hackish workaround for files exported by OMERO that have an\n // incorrect dimension order\n String uuidFileName = \"\";\n try {\n if (meta.getTiffDataCount(i) > 0) {\n uuidFileName = meta.getUUIDFileName(i, 0);\n }\n }\n catch (NullPointerException e) { }\n if (meta.getChannelCount(i) > 0 && meta.getChannelName(i, 0) == null &&\n meta.getTiffDataCount(i) > 0 &&\n uuidFileName.indexOf(\"__omero_export\") != -1)\n {\n core[s].dimensionOrder = \"XYZCT\";\n }\n\n core[s].orderCertain = true;\n PhotoInterp photo = firstIFD.getPhotometricInterpretation();\n core[s].rgb = samples > 1 || photo == PhotoInterp.RGB;\n if ((samples != core[s].sizeC && (samples % core[s].sizeC) != 0 &&\n (core[s].sizeC % samples) != 0) || core[s].sizeC == 1 ||\n adjustedSamples)\n {\n core[s].sizeC *= samples;\n }\n\n if (core[s].sizeZ * core[s].sizeT * core[s].sizeC >\n core[s].imageCount && !core[s].rgb)\n {\n if (core[s].sizeZ == core[s].imageCount) {\n core[s].sizeT = 1;\n core[s].sizeC = 1;\n }\n else if (core[s].sizeT == core[s].imageCount) {\n core[s].sizeZ = 1;\n core[s].sizeC = 1;\n }\n else if (core[s].sizeC == core[s].imageCount) {\n core[s].sizeT = 1;\n core[s].sizeZ = 1;\n }\n }\n\n if (meta.getPixelsBinDataCount(i) > 1) {\n LOGGER.warn(\"OME-TIFF Pixels element contains BinData elements! \" +\n \"Ignoring.\");\n }\n core[s].littleEndian = firstIFD.isLittleEndian();\n core[s].interleaved = false;\n core[s].indexed = photo == PhotoInterp.RGB_PALETTE &&\n firstIFD.getIFDValue(IFD.COLOR_MAP) != null;\n if (core[s].indexed) {\n core[s].rgb = false;\n }\n core[s].falseColor = true;\n core[s].metadataComplete = true;\n }\n catch (NullPointerException exc) {\n throw new FormatException(\"Incomplete Pixels metadata\", exc);\n }\n }\n\n // remove null CoreMetadata entries\n\n Vector<CoreMetadata> series = new Vector<CoreMetadata>();\n Vector<OMETiffPlane[]> planeInfo = new Vector<OMETiffPlane[]>();\n for (int i=0; i<core.length; i++) {\n if (core[i] != null) {\n series.add(core[i]);\n planeInfo.add(info[i]);\n }\n }\n core = series.toArray(new CoreMetadata[series.size()]);\n info = planeInfo.toArray(new OMETiffPlane[0][0]);\n\n MetadataTools.populatePixels(metadataStore, this, false, false);\n for (int i=0; i<acquiredDates.length; i++) {\n if (acquiredDates[i] != null) {\n metadataStore.setImageAcquiredDate(acquiredDates[i], i);\n }\n }\n metadataStore = getMetadataStoreForConversion();\n }",
"public String getSrcDatasetName() {\r\n return srcDatasetName;\r\n }",
"private void readSourceData() throws Exception {\n\t\tthis.fileDataList = new ArrayList<String>();\n\t\tReader reader = new Reader(this.procPath);\n\t\treader.running();\n\t\tthis.fileDataList = reader.getFileDataList();\n\t}",
"public String parseSrc() throws Exception{\n\t\tr = new FileReader(userArg); \r\n\t\tst = new StreamTokenizer(r);\r\n\t\t st.eolIsSignificant(true);\r\n\t\t st.commentChar(46);\r\n\t\t st.whitespaceChars(9, 9);\r\n\t\t st.whitespaceChars(32, 32);\r\n\t\t st.wordChars(39, 39);\r\n\t\t st.wordChars(44, 44);\r\n\t\t \r\n\t\t //first we check for a specified start address\r\n\t\t while (InstructionsRead < 2) {\r\n\t\t \tif (st.sval != null) {\r\n\t\t \t\tInstructionsRead++;\r\n\t\t \t\tif (st.sval.equals(\"START\")) {\r\n\t\t \t\twhile(st.ttype != StreamTokenizer.TT_NUMBER) {\r\n\t\t \t\t\tst.nextToken();\r\n\t\t \t\t}\r\n\t\t \t\tDDnval = st.nval;\r\n\t\t \t\tstartAddress = Integer.parseInt(\"\" + DDnval.intValue(), 16);\r\n\t\t \t\tlocctr = startAddress;\r\n\t\t \t\tsLocctr = Integer.toHexString(locctr.intValue());\r\n\t\t \t\tif (sLocctr.length() == 1) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 000\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse if (sLocctr.length() == 2) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 00\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse if (sLocctr.length() == 3 ) {\r\n\t\t \t\t\tSystem.out.println(\"locctr: 0\" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\telse {\r\n\t\t \t\t\tSystem.out.println(\"locctr: \" + Integer.toHexString(locctr.intValue()));\r\n\t\t \t\t}\r\n\t\t \t\t//writer.write(\"\" + locctr); //should write to IF, not working yet 2/15/2011\r\n\t\t \t\tstartSpecified = true;\r\n\t\t \t\t}\r\n\t\t \t\telse if (!st.sval.equals(\"START\") && InstructionsRead < 2) { //this should be the program name, also could allow for label here potentially...\r\n\t\t \t\t\t//this is the name of the program\r\n\t\t \t\t\t//search SYMTAB for label etc. \r\n\t\t \t\t\tname = st.sval;\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t st.nextToken();\r\n\t\t }\r\n\t\t if (!startSpecified) {\r\n\t\t \tstartAddress = 0;\r\n\t\t \tlocctr = startAddress;\r\n\t\t }\r\n\t\t startAddress2 = startAddress;\r\n\t\t /*\r\n\t\t ATW = Integer.toHexString(startAddress2.intValue());\r\n\t\t \r\n\t\t for (int i = 0; i<(6-ATW.length()); i++){\r\n\t\t \tmyWriter.write(\"0\");\r\n\t\t }\r\n\t\t myWriter.write(ATW);\r\n\t\t myWriter.newLine();//end of line for now; in ReadIF when this line is read and translated to object code, the program length will be tacked on the end\r\n\t\t */\r\n\t\t \r\n\t\t //Now that startAddress has been established, we move on to the main parsing loop\r\n\t\t while (st.ttype != StreamTokenizer.TT_EOF) { //starts parsing to end of file\r\n\t\t \t//System.out.println(\"Stuck in eof\");\r\n\t\t \t//iLocctr = locctr.intValue();\r\n\t\t \tinstFound = false;\r\n\t\t \topcodeDone = false;\r\n\t\t \tlabelDone = false;\r\n\t\t \tmoveOn = true;\r\n\t\t \t//constantCaseW = false;\r\n\t\t \tconstantCaseB = false;\r\n\t\t \txfound = false;\r\n\t\t \tcfound = false;\r\n\t\t \t\r\n\t\t \tInstructionsRead = 0; //init InsRead to 0 at the start of each line\r\n\t\t \tSystem.out.println(\"new line\");\r\n\t\t \tSystem.out.println(\"Ins read: \" + InstructionsRead);\r\n\t\t \tsLocctr = Integer.toHexString(locctr.intValue());\r\n\t \t\tif (sLocctr.length() == 1) {\r\n\t \t\t\tSystem.out.println(\"locctr: 000\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse if (sLocctr.length() == 2) {\r\n\t \t\t\tSystem.out.println(\"locctr: 00\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse if (sLocctr.length() == 3 ) {\r\n\t \t\t\tSystem.out.println(\"locctr: 0\" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t \t\telse {\r\n\t \t\t\tSystem.out.println(\"locctr: \" + Integer.toHexString(locctr.intValue()));\r\n\t \t\t}\r\n\t\t \tif (foundEnd()) {\r\n\t\t \t\tbreak;\r\n\t\t \t}\r\n\t\t \twhile (st.ttype != StreamTokenizer.TT_EOL) {//breaks up parsing by lines so that InstructionsRead will be a useful count\r\n\t\t \t\t\r\n\t\t \t\tmoveOn = true;\r\n\t\t \t\tif (st.ttype == StreamTokenizer.TT_WORD) { \r\n\t\t \t\t\tInstructionsRead++;\r\n\t\t \t\t\tSystem.out.println(st.sval);\r\n\t\t \t\t\tSystem.out.println(\"Instructions Read: \" + InstructionsRead);\r\n\t\t \t\t\tif (foundEnd()) {\r\n\t\t \t\t\t\tbreak;\r\n\t\t \t\t\t}\r\n\t\t \t\t\t/*\r\n\t\t \t\t\t * The whole instructinsread control architecture doesn't quite work, because\r\n\t\t \t\t\t * the ST doesn't count the whitespace it reads in. This is by design because\r\n\t\t \t\t\t * the prof specified that whitespace is non-regulated and thus we cannot\r\n\t\t \t\t\t * predict exactly how many instances of char dec value 32 (space) will appear\r\n\t\t \t\t\t * before and/or between the label/instruction/operand 'fields'. \r\n\t\t \t\t\t * \r\n\t\t \t\t\t * What we could try alternatively is to structure the control around'\r\n\t\t \t\t\t * the optab, since it it static and populated pre-runtime. The schema might\r\n\t\t \t\t\t * go something like this: first convert whatever the sval or nval is to string.\r\n\t\t \t\t\t * Then call the optab.searchOpcode method with the resultant string as the input\r\n\t\t \t\t\t * parameter. If the string is in optab then it is an instruction and the ST is in the\r\n\t\t \t\t\t * instruction 'field' and boolean foundInst is set to true. If it is not in optab AND a boolean variable foundInst which resets to\r\n\t\t \t\t\t * false at the beginning of each new line is still false, then it is a label being declared in the label 'field'\r\n\t\t \t\t\t * If it is not in the optab AND foundInst is true, then the ST is at the operand 'field'.\r\n\t\t \t\t\t * This should work even if the prof has a crappy line with just a label declaration and no instruction or operand, because there\r\n\t\t \t\t\t * definitely cannot be an operand without an instruction...\r\n\t\t \t\t\t */\r\n\t\t \t\t\tif (instFound){\r\n\t\t \t\t\t\tprocessOperand(st);\r\n\t\t \t\t\t}\r\n\t\t \t\t\tif (!instFound) {//this is either label or instruction field\r\n\t\t \t\t\t\t//before anything, search optab to see if this might be the opcode\r\n\t\t \t\t\t\t//if it is an opcode, send it to the opcode processing function\r\n\t\t \t\t\t\tif (st.sval.equals(\"WORD\") || st.sval.equals(\"BYTE\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (st.sval.equals(\"WORD\")){\r\n\t\t \t\t\t\t\t\tif (hexDigitCount >= 55){\r\n\t\t \t\t\t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tif (st.sval.equals(\"BYTE\")){\r\n\t\t \t\t\t\t\t\tconstantCaseB = true;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (st.sval.equals(\"RESW\") || st.sval.equals(\"RESB\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount++;\r\n\t\t \t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (optab.searchOpcode(st.sval)) {//if true this is the instruction\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (hexDigitCount >= 55){\r\n\t \t\t\t\t\t\t\tnewTHandle();\r\n\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcode(st);\r\n\t\t \t\t\t\t\t//InstructionsRead++;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse {//otherwise this is the label\r\n\t\t \t\t\t\t\tprocessLabel(st);\r\n\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\t\r\n\t\t \t\t\t}\r\n\t\t \t\t\t//else{ //if instFound is true, this must be the operand field\r\n\t\t \t\t\t\t\r\n\t\t \t\t\t\t//processOperand(st);\r\n\t\t \t\t\t//}\r\n\t\t \t\t\t//if (InstructionsRead == 3) {//this is the operand field\r\n\t\t \t\t\t\t//processOperand();\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\tif (st.ttype == StreamTokenizer.TT_NUMBER) {\r\n\t\t \t\t\tInstructionsRead++;\r\n\t\t \t\t\tif (!instFound) {//this is either label or instruction field\r\n\t\t \t\t\t\t//before anything, search optab to see if this might be the opcode\r\n\t\t \t\t\t\t//if it is an opcode, send it to the opcode processing function\r\n\t\t \t\t\t\tif (NtoString(st.nval).equals(\"WORD\") || NtoString(st.nval).equals(\"BYTE\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (NtoString(st.nval).equals(\"WORD\")){\r\n\t\t \t\t\t\t\t\tif (hexDigitCount >= 55){\r\n\t\t \t\t\t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tif (NtoString(st.nval).equals(\"BYTE\")){\r\n\t\t \t\t\t\t\t\tconstantCaseB = true;\r\n\t\t \t\t\t\t\t}\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\tif (NtoString(st.nval).equals(\"RESW\") || NtoString(st.nval).equals(\"RESB\")){//these are the directives... not technically instructions, but they go in the instruction field\r\n\t\t \t\t\t\t\tresCount++;\r\n\t\t \t\t\t\t\tnewTHandle();\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse if (optab.searchOpcode(\"\" + st.nval)) {\r\n\t\t \t\t\t\t\tresCount = 0;\r\n\t\t \t\t\t\t\tif (hexDigitCount >= 55){\r\n\t \t\t\t\t\t\t\tnewTHandle();\r\n\t \t\t\t\t\t\t}\r\n\t\t \t\t\t\t\thexDigitCount += 6;\r\n\t\t \t\t\t\t\tinstFound = true;\r\n\t\t \t\t\t\t\tprocessOpcodeN(st);\r\n\t\t \t\t\t\t\t//InstructionsRead++;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\telse {\r\n\t\t \t\t\t\t\tprocessLabelN(st);\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{ //this is the operand field\r\n\t\t \t\t\t\tprocessOperandN(st);\r\n\t\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \tif (moveOn){\r\n\t\t \tst.nextToken(); //read next token in current line\r\n\t\t \t}\r\n\t\t \t}\r\n\t\t \t////write line just finished to IF eventually\r\n\t\t if (moveOn){\r\n\t\t st.nextToken(); //read first token of next line\t\r\n\t\t }\r\n\t\t }\r\n\t\t programLength = (locctr - startAddress); \r\n\t\t programLength2 = programLength;\r\n\t\t System.out.println(\" !!prgmlngth2:\" + Integer.toHexString(programLength2.intValue()));\r\n\t\t /*\r\n\t\t sProgramLength = Integer.toHexString(programLength2.intValue());\r\n\t\t for (int i = 0; i<(6-sProgramLength.length()); i++){\r\n\t\t \tmyWriter.write(\"0\");\r\n\t\t }\r\n\t\t myWriter.write(sProgramLength);\r\n\t\t myWriter.close();\r\n\t\t ////myWriter.close();\r\n\t\t \r\n\t\t */\r\n\t\t r.close();\r\n\t\t System.out.println(\"?????!?!?!?!?ALPHA?!?!?!?!?!??!?!?!\");\r\n\t\t if (hexDigitCount/2 < 16){\r\n\t\t \tlineLength.add(\"0\" + Integer.toHexString(hexDigitCount/2));\r\n\t\t }\r\n\t\t else{\r\n\t\t lineLength.add(Integer.toHexString(hexDigitCount/2));\r\n\t\t }\r\n\t\t for (int i = 0; i<lineLength.size(); i++){\r\n\t\t System.out.println(lineLength.get(i));\r\n\t\t }\r\n\t\t // System.out.println(hexDigitCount);\r\n\t\t ReadIF pass2 = new ReadIF(this.optab,this.symtab,this.startAddress2,this.programLength2,this.name,this.lineLength,this.userArg);\r\n\t\t return st.sval;\r\n\t\t \r\n\t\t\r\n\r\n\t}",
"public void start(String filenameA , String filenameB){\n\t\t\n\t\t// READ DATA\n\t\treadKeyDataToIdentifyTransactions();\n\t\treadDataFromUserLog(userData,filenameA);\n\t\treadDataFromUserLog(userData,filenameB);\n\t\t\n\t\t//Enable the below to print the data read from the files\n\t\t//printData(userData);\n\t\t\t\t\n\t\t// ADD DATA TO RESPECTIVE SETS\n\t\tcategorizeData();\t\t\n\t\t\t\n\t\t// GIVE RECOMMENDATION\n\t\tprintRecommendation();\n\t}",
"public void writeToXML(){\n\t\t\n\t\t String s1 = \"\";\n\t\t String s2 = \"\";\n\t\t String s3 = \"\";\n\t\t Element lastElement= null;\n\t\t\n\t\tDocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dbElement;\n\t\tBufferedReader brRead=null;\n\n\t\ttry{\n\t\t\tdbElement = dbfactory.newDocumentBuilder();\n\t\t\t\n\t\t\t//Create the root\n\t\t\tDocument docRoot = dbElement.newDocument();\n\t\t\tElement rootElement = docRoot.createElement(\"ROYAL\");\n\t\t\tdocRoot.appendChild(rootElement);\n\t\t\t\n\t\t\t//Create elements\n\t\t\t\n\t\t\t//Element fam = docRoot.createElement(\"FAM\");\n\t\t\tElement e= null;\n\t\t\tbrRead = new BufferedReader(new FileReader(\"complet.ged\"));\n\t\t\tString line=\"\";\n\t\t\twhile((line = brRead.readLine()) != null){\n\t\t\t\tString lineTrim = line.trim();\n\t\t\t\tString str[] = lineTrim.split(\" \");\n\t\t\t\t//System.out.println(\"length = \"+str.length);\n\n\t\t\t\tif(str.length == 2){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3 = \"\";\n\t\t\t\t}else if(str.length ==3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2=\"\";\n\n\t\t\t\t\ts2 = str[1];\n//\t\t\t\t\tSystem.out.println(\"s2=\"+s2);\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\ts3 = str[2];\n//\t\t\t\t\ts3 = s[0];\n\t\t\t\t\t\n\t\t\t\t}else if(str.length >3){\n\t\t\t\t\ts1 = str[0];\n\t\t\t\t\ts2 = str[1];\n\t\t\t\t\ts3=\"\";\n\t\t\t\t\tfor(int i =2; i<str.length; i++){\n\t\t\t\t\t\ts3 = s3 + str[i]+ \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println(s1+\"!\"+s2+\"!\"+s3+\"!\");\n\t\t\t\t//Write to file xml\n\t\t\t\t//writeToXML(s1, s2, s3);\n\t\t\t//Element indi = docRoot.createElement(\"INDI\");\t\n\t\t\t//System.out.println(\"Check0 :\" + s1);\n\t\t\tif( Integer.parseInt(s1)==0){\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Check1\");\n\t\t\t\tif(s3.equalsIgnoreCase(\"INDI\")){\n\t\t\t\t\t//System.out.println(\"Check2\");\n\t\t\t\t\tSystem.out.println(\"This is a famille Individual!\");\n\t\t\t\t\te = docRoot.createElement(\"INDI\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t\n\t\t\t\t\t//Set attribute to INDI\n\t\t\t\t\tAttr indiAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tindiAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(indiAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"FAM\")){\n\t\t\t\t\t//System.out.println(\"Check3\");\n\t\t\t\t\tSystem.out.println(\"This is a famille!\");\n\t\t\t\t\te = docRoot.createElement(\"FAM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}if(s2.equalsIgnoreCase(\"HEAD\")){\n\t\t\t\t\tSystem.out.println(\"This is a head!\");\n\t\t\t\t\te = docRoot.createElement(\"HEAD\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\n\t\t\t\t}if(s3.equalsIgnoreCase(\"SUBM\")){\n\n\t\t\t\t\tSystem.out.println(\"This is a subm!\");\n\t\t\t\t\te = docRoot.createElement(\"SUBM\");\n\t\t\t\t\trootElement.appendChild(e);\n\t\t\t\t\t//Set attribute to FAM\n\t\t\t\t\tAttr famAttr = docRoot.createAttribute(\"id\");\n\t\t\t\t\ts2 = s2.substring(1, s2.length()-1);\n\t\t\t\t\tfamAttr.setValue(s2);\n\t\t\t\t\te.setAttributeNode(famAttr);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==1){\n\n\t\t\t\tString child = s2;\n\t\t\t\tif(child.equalsIgnoreCase(\"SOUR\")||child.equalsIgnoreCase(\"DEST\")||child.equalsIgnoreCase(\"DATE\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"FILE\")||child.equalsIgnoreCase(\"CHAR\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"NAME\")||child.equalsIgnoreCase(\"TITL\")||child.equalsIgnoreCase(\"SEX\")||child.equalsIgnoreCase(\"REFN\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"PHON\")||child.equalsIgnoreCase(\"DIV\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"HEAD\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"BIRT\")||child.equalsIgnoreCase(\"DEAT\")||child.equalsIgnoreCase(\"COMM\")\n\t\t\t\t\t\t||child.equalsIgnoreCase(\"BURI\")||child.equalsIgnoreCase(\"ADDR\")||child.equalsIgnoreCase(\"CHR\")){\n\t\t\t\t\t\n\t\t\t\t\tString name = lastElement.getNodeName();\t\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")||name.equalsIgnoreCase(\"SUBM\")){\t\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\te.setTextContent(s3);\n\t\t\t\t\t\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\tx.setTextContent(s3);\n\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"FAMS\")||child.equalsIgnoreCase(\"FAMC\")){\n\t\t\t\t\tString name = lastElement.getNodeName();\n\t\t\t\t\tif(name.equalsIgnoreCase(\"INDI\")||name.equalsIgnoreCase(\"FAM\")){\t\n\t\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\t\tlastElement = e;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tNode p = e.getParentNode();\n\t\t\t\t\t\t\tElement x= docRoot.createElement(child);\n\t\t\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\t\t\tx.setAttribute(\"id\",s3);\n\t\t\t\t\t\t\tp.appendChild(x);\n\t\t\t\t\t\t\tlastElement = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"HUSB\")||child.equalsIgnoreCase(\"WIFE\")||child.equalsIgnoreCase(\"CHIL\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\ts3 = s3.substring(1, s3.length()-1);\n\t\t\t\t\te.setAttribute(\"id\",s3);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t}\n\t\t\t\tif(child.equalsIgnoreCase(\"MARR\")){\n\t\t\t\t\te= docRoot.createElement(child);\n\t\t\t\t\tlastElement.appendChild(e);\n\t\t\t\t\tlastElement = e;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Integer.parseInt(s1)==2){\n\t\t\t\tString lastName = lastElement.getNodeName();\n\t\t\t\tif((lastName.equalsIgnoreCase(\"BIRT\"))||(lastName.equalsIgnoreCase(\"DEAT\"))||(lastName.equalsIgnoreCase(\"BURI\"))\n\t\t\t\t\t\t||(lastName.equalsIgnoreCase(\"MARR\"))||(lastName.equalsIgnoreCase(\"CHR\"))){\n\t\t\t\t\t//Add child nodes to birt, deat or marr\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"DATE\")){\n\t\t\t\t\t\tElement date = docRoot.createElement(\"DATE\");\n\t\t\t\t\t\tdate.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(date);\n\t\t\t\t\t}\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"PLAC\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"PLAC\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(lastName.equalsIgnoreCase(\"COMM\")||lastName.equalsIgnoreCase(\"ADDR\")){\n\t\t\t\t\tif(s2.equalsIgnoreCase(\"CONT\")){\n\t\t\t\t\t\tElement plac = docRoot.createElement(\"CONT\");\n\t\t\t\t\t\tplac.setTextContent(s3);\n\t\t\t\t\t\tlastElement.appendChild(plac);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//lastElement = e;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t//Saved this element for the next step\n\t\t\t\n\t\t\t//Write to file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"iso-8859-1\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, \"Royal.dtd\");\n\t\t\tDOMSource source = new DOMSource(docRoot);\n\t\t\tStreamResult result = new StreamResult(new File(\"complet.xml\"));\n\t \n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\t \n\t\t\ttransformer.transform(source, result);\n\t \n\t\t\tSystem.out.println(\"\\nXML DOM Created Successfully.\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}"
] | [
"0.5563499",
"0.5434317",
"0.5381785",
"0.5352601",
"0.53440696",
"0.5309008",
"0.5307019",
"0.5306587",
"0.5279566",
"0.5249748",
"0.52440846",
"0.5241028",
"0.5222611",
"0.5193205",
"0.5166061",
"0.5131416",
"0.51127994",
"0.51123554",
"0.5085756",
"0.5077277",
"0.50747156",
"0.5072544",
"0.50398767",
"0.50078213",
"0.4996595",
"0.49859354",
"0.49825302",
"0.498187",
"0.49786487",
"0.49778092",
"0.49764",
"0.4972266",
"0.4969487",
"0.4967336",
"0.49587575",
"0.4957384",
"0.49528617",
"0.4944055",
"0.49374375",
"0.4937331",
"0.49360618",
"0.49262878",
"0.49251986",
"0.49109477",
"0.49084803",
"0.48905438",
"0.48891795",
"0.4887946",
"0.48848596",
"0.48814112",
"0.48808897",
"0.48778334",
"0.48774403",
"0.48742935",
"0.48595962",
"0.485845",
"0.4858066",
"0.48552567",
"0.4851575",
"0.4849115",
"0.48445997",
"0.48416868",
"0.4831062",
"0.4828423",
"0.4826631",
"0.4808732",
"0.48083517",
"0.4799368",
"0.47966138",
"0.47960293",
"0.47944295",
"0.47940764",
"0.4791964",
"0.47806156",
"0.477816",
"0.477359",
"0.47662458",
"0.47659197",
"0.4763225",
"0.4762799",
"0.47548115",
"0.47449103",
"0.47400266",
"0.47399127",
"0.47371408",
"0.47323552",
"0.47285587",
"0.4726188",
"0.47255895",
"0.47246078",
"0.47240055",
"0.47195932",
"0.47160214",
"0.4714757",
"0.47133398",
"0.4709484",
"0.47091702",
"0.47091615",
"0.47088003",
"0.47061265"
] | 0.5007407 | 24 |
TODO Autogenerated method stub | @SuppressWarnings("unchecked")
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
act=request.getParameter("act");
PrintWriter out=response.getWriter();
response.setContentType("text/html;charset=UTF-8");
if(act.equalsIgnoreCase("null"))
{
//we just push it the default page
url="/WEB-INF/Add_Wish.jsp";
RequestDispatcher dispatch=getServletContext().getRequestDispatcher(url);
dispatch.forward(request, response);
}
else if(act.equalsIgnoreCase("put"))
{
// Here we get the data and put it into datastore
Long cid=null; String uid="",status="on",desc="",addinfo="",image="",wid="";
sess=request.getSession(false);
cid=Long.valueOf(request.getParameter("cid"));
status=request.getParameter("status");
desc=request.getParameter("desc");
addinfo=request.getParameter("addinfo");
image=request.getParameter("FileUpload1");
String v="hi";
AddWish aw=new AddWish(v);
Long uidl=(Long)sess.getAttribute("uid");
log.finest("I have these values " + uidl);
AddWish aw2=new AddWish(v);
aw2.putData(cid, uidl, desc, image, status, addinfo);
url="/WEB-INF/Add_Wish.jsp";
RequestDispatcher dispatch=getServletContext().getRequestDispatcher(url);
dispatch.forward(request, response);
}
else if(act.equalsIgnoreCase("showeach"))
{
url="/WEB-INF/Wish_View.jsp";
ArrayList<String> al=new ArrayList<>();
Long wid=Long.valueOf(request.getParameter("wid"));
MyFetch mf=new MyFetch(wid);
al=mf.getWish();
request.setAttribute("mylist", al);
RequestDispatcher dispatch=getServletContext().getRequestDispatcher(url);
dispatch.forward(request, response);
}
else if(act.equalsIgnoreCase("getcomment"))
{
Long wid=null;
json=new JSONObject();
ja=new JSONArray();
Long cid=Long.valueOf(request.getParameter("cid"));
DatastoreService ds=DatastoreServiceFactory.getDatastoreService();
Query q=new Query("comment");
//Key k=KeyFactory.createKey("user", "chris");
q.setFilter(
new Query.FilterPredicate("comment_id", Query.FilterOperator.EQUAL, cid)
);
PreparedQuery pq=ds.prepare(q);
String desc = null,by=null;
int i=0;
for(Entity result:pq.asIterable())
{
// desc=(String)result.getProperty("desc");
// by=(String)result.getProperty("by_uname");
//
// // json.put("by", by);
// // json.put("desc", desc);
// ja.add(desc);
// ja.add(by);
wid=(Long)result.getProperty("wishid");
}
//Now get all those that have the same wishid
ds=DatastoreServiceFactory.getDatastoreService();
q=new Query("comment");
//Key k=KeyFactory.createKey("user", "chris");
q.setFilter(
new Query.FilterPredicate("wishid", Query.FilterOperator.EQUAL, wid)
);
PreparedQuery pq1=ds.prepare(q);
for(Entity result1:pq1.asIterable())
{
desc=(String)result1.getProperty("desc");
by=(String)result1.getProperty("by_uname");
ja.add(desc);
ja.add(by);
}
out.print(ja);
}
else if(act.equalsIgnoreCase("fulfill"))
{
Long cid=Long.valueOf(request.getParameter("cid"));
Long wid=null;
String k = "";
DatastoreService ds=DatastoreServiceFactory.getDatastoreService();
Query q=new Query("comment");
//Key k=KeyFactory.createKey("user", "chris");
q.setFilter(
new Query.FilterPredicate("comment_id", Query.FilterOperator.EQUAL, cid)
);
PreparedQuery pq=ds.prepare(q);
for(Entity result:pq.asIterable())
{
wid=(Long)result.getProperty("wishid");
}
//now to change the status from on to off
//step 1 Get the key for the record
DatastoreService ds1=DatastoreServiceFactory.getDatastoreService();
Query q1=new Query("wish");
//Key k=KeyFactory.createKey("user", "chris");
q1.setFilter(
new Query.FilterPredicate("wishid", Query.FilterOperator.EQUAL, wid)
);
PreparedQuery pq1=ds1.prepare(q1);
for(Entity result:pq1.asIterable())
{
k=KeyFactory.keyToString(result.getKey());
}
//step 2 now change the value of status
Key ke=KeyFactory.stringToKey(k);
try {
Entity wup=ds1.get(ke);
wup.setProperty("status", "off");
ds1.put(wup);
} catch (EntityNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
out.print("Done");
}
else if(act.equalsIgnoreCase("saythanks"))
{
Long cid=Long.valueOf(request.getParameter("cid"));
Long wid=null;
String k = "";
DatastoreService ds=DatastoreServiceFactory.getDatastoreService();
Query q=new Query("comment");
//Key k=KeyFactory.createKey("user", "chris");
q.setFilter(
new Query.FilterPredicate("comment_id", Query.FilterOperator.EQUAL, cid)
);
PreparedQuery pq=ds.prepare(q);
for(Entity result:pq.asIterable())
{
wid=(Long)result.getProperty("wishid");
}
//now to change the status from on to off
//step 1 Get the key for the record
Long uid=null;
DatastoreService ds1=DatastoreServiceFactory.getDatastoreService();
Query q1=new Query("wish");
//Key k=KeyFactory.createKey("user", "chris");
q1.setFilter(
new Query.FilterPredicate("wishid", Query.FilterOperator.EQUAL, wid)
);
PreparedQuery pq1=ds1.prepare(q1);
for(Entity result:pq1.asIterable())
{
uid=(Long)result.getProperty("uid");
}
//step 2 now fetch the user facebook id
Long fid=null;
ds1=DatastoreServiceFactory.getDatastoreService();
q1=new Query("user");
//Key k=KeyFactory.createKey("user", "chris");
q1.setFilter(
new Query.FilterPredicate("uid", Query.FilterOperator.EQUAL, uid)
);
PreparedQuery pq2=ds1.prepare(q1);
for(Entity result:pq2.asIterable())
{
fid=(Long)result.getProperty("fid");
}
out.print(fid);
}
else if(act.equalsIgnoreCase("addcomment"))
{
Long cid=Long.valueOf(request.getParameter("cid"));
String desc=request.getParameter("desc");
String uname=request.getParameter("uname");
Long wid=null;
String k = "";
DatastoreService ds=DatastoreServiceFactory.getDatastoreService();
Query q=new Query("comment");
//Key k=KeyFactory.createKey("user", "chris");
q.setFilter(
new Query.FilterPredicate("comment_id", Query.FilterOperator.EQUAL, cid)
);
PreparedQuery pq=ds.prepare(q);
for(Entity result:pq.asIterable())
{
wid=(Long)result.getProperty("wishid");
}
//now we have wishid ready as wid we now need comment_id of the last comment for incrementing
//step 1 Get the comment_id
Long coid=null;
DatastoreService ds1=DatastoreServiceFactory.getDatastoreService();
Query q1=new Query("comment");
//Key k=KeyFactory.createKey("user", "chris");
q1.setFilter(
new Query.FilterPredicate("comment_id", Query.FilterOperator.GREATER_THAN, 1)
);
q.addSort("comment_id",SortDirection.ASCENDING);
PreparedQuery pq1=ds1.prepare(q1);
for(Entity result:pq1.asIterable())
{
coid=(Long)result.getProperty("comment_id");
}
coid=coid+1;
//step 2 now to add the new entity
Entity addcomm=new Entity("comment");
//code to make a new entity
String prof="NotDefined",hobby="Notdefined";
addcomm.setProperty("comment_id", coid);
addcomm.setProperty("desc", desc);
addcomm.setProperty("by_uname", uname);
addcomm.setProperty("wishid", wid);
ds.put(addcomm);
out.print("Done!");
}
else if(act.equalsIgnoreCase("getallwish"))
{
json=new JSONObject();
ja=new JSONArray();
DatastoreService ds=DatastoreServiceFactory.getDatastoreService();
Query q=new Query("wish");
//Key k=KeyFactory.createKey("user", "chris");
q.setFilter(
new Query.FilterPredicate("wishid", Query.FilterOperator.GREATER_THAN_OR_EQUAL, 1)
);
PreparedQuery pq=ds.prepare(q);
String desc=null;
int i=1;
for(Entity result:pq.asIterable())
{
desc=(String)result.getProperty("desc");
ja.add(desc+i);
i=i+1;
}
out.print(ja);
}
else if(act.equalsIgnoreCase("addnewwish"))
{
Long cid=null;
Long wid=null;
json=new JSONObject();
String k = "";
DatastoreService ds=DatastoreServiceFactory.getDatastoreService();
Query q=new Query("wish");
//Key k=KeyFactory.createKey("user", "chris");
q.setFilter(
new Query.FilterPredicate("wishid", Query.FilterOperator.GREATER_THAN_OR_EQUAL, 1)
);
PreparedQuery pq=ds.prepare(q);
sess=request.getSession(false);
for(Entity result:pq.asIterable())
{
wid=(Long)result.getProperty("wishid");
}
//now to change the status from on to off
//step 1 Get the key for the record
Long uid=Long.valueOf(4);
DatastoreService ds1=DatastoreServiceFactory.getDatastoreService();
Query q1=new Query("wish");
wid=wid+1;
json.put("wid", wid);
json.put("uid", sess.getAttribute("uid"));
// //Key k=KeyFactory.createKey("user", "chris");
// q1.setFilter(
// new Query.FilterPredicate("wishid", Query.FilterOperator.EQUAL, wid)
// );
// PreparedQuery pq1=ds1.prepare(q1);
// for(Entity result:pq1.asIterable())
// {
// uid=(Long)result.getProperty("uid");
//
// }
//step 2 now fetch the user facebook id
// Long fid=null;
// ds1=DatastoreServiceFactory.getDatastoreService();
// q1=new Query("user");
// //Key k=KeyFactory.createKey("user", "chris");
// q1.setFilter(
// new Query.FilterPredicate("uid", Query.FilterOperator.EQUAL, uid)
// );
// PreparedQuery pq2=ds1.prepare(q1);
// for(Entity result:pq2.asIterable())
// {
// fid=(Long)result.getProperty("fid");
//
// }
out.print(json);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
/ We check if a return to the original provider registers the bikes again. Therefore, we first book a quote and then call registerReturn() to return the bikes. We check if the bikes in the booking are back in the list of available bikes. | @Test
public void testReturnOriginal() {
this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,
this.customer.getLocation(),
false);
Quote chosenQuote = this.quotes.get(0);
ArrayList<Bike> availableBikesProvider = new ArrayList<>();
Provider originalProvider = chosenQuote.provider;
Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);
ArrayList<Bike> bookedBikes = BookingController.getBooking(orderInfo.getOrderNumber()).bikes;
assertTrue(originalProvider.registerReturn(orderInfo.getOrderNumber()));
for (BikeTypes type : originalProvider.getOwnedBikes().keySet()) {
availableBikesProvider.addAll(originalProvider.getAvailableBikesOfType(type));
}
for (Bike bike : bookedBikes) {
assertTrue(availableBikesProvider.contains(bike));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testDeliveryReturn() {\n //Set up use case\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n true);\n Quote chosenQuote = this.quotes.get(0);\n Provider originalProvider = chosenQuote.provider;\n Provider partner = this.provider2;\n partner.addPartner(originalProvider); //register partnership\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n Booking booking = BookingController.getBooking(orderInfo.getOrderNumber());\n ArrayList<Bike> bookedBikes = booking.bikes;\n\n //deliver bikes to client\n deliveryService.carryOutPickups(this.bookingDate);\n deliveryService.carryOutDropoffs();\n\n //register return at partner provider\n assertTrue(partner.registerReturn(orderInfo.getOrderNumber()));\n deliveryService.carryOutPickups(LocalDate.now()); //carryout pickups on date when returned\n deliveryService.carryOutDropoffs(); //carry out dropoffs\n originalProvider.checkForDropoffs(); // check for dropoffs\n ArrayList<Bike> availableBikes = new ArrayList<>();\n for (BikeTypes type : originalProvider.getOwnedBikes().keySet()) {\n availableBikes.addAll(originalProvider.getAvailableBikesOfType(type));\n }\n for (Bike bike : bookedBikes) {\n assertTrue(availableBikes.contains(bike));\n }\n }",
"@Test\n public void testWrongPartner() {\n /* Set up scenario. As one might see, no partnership was registered hence we throw an\n error.\n */\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n true);\n Quote chosenQuote = this.quotes.get(0);\n Provider originalProvider = chosenQuote.provider;\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n deliveryService.carryOutPickups(this.bookingDate);\n deliveryService.carryOutDropoffs();\n assertThrows(AssertionError.class, () ->\n {\n this.provider2.registerReturn(orderInfo.getOrderNumber());\n });\n }",
"public boolean issueBook()\n\t{\n\t\tif(availableBooks==0)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tavailableBooks--;;\n\t\t\treturn true;\n\t\t}\n\t}",
"private void carsReadyToLeave(){\n\t\t\tCar car = getFirstLeavingCar();\r\n\t\t\twhile (car!=null) {\r\n\t\t\t\tif (car.getHasToPay()){\r\n\t\t\t\t\tcar.setIsPaying(true);\r\n\t\t\t\t\tpaymentCarQueue.addCar(car);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcarLeavesSpot(car);\r\n\t\t\t\t}\r\n\t\t\t\tcar = getFirstLeavingCar();\r\n\t\t\t}\r\n\t\t}",
"@Override\n public boolean isBoatOnTheLeftBank() {\n return false;\n }",
"@Test\r\n\tpublic void testDoReturnChromebook() {\n\r\n\t\tResourceCentre.addChromebook(chromebookList, cb1);\r\n\t\tResourceCentre.addChromebook(chromebookList, cb2);\r\n\r\n\t\t// Item list is not null, newly added item cannot be returned successfully.\r\n\t\tassertNotNull(\"Test that list is not null\", chromebookList);\r\n\t\tassertFalse(\"Test that item cannot be returned if not loaned\",\r\n\t\t\t\tResourceCentre.doReturnChromebook(chromebookList, \"CB0011\"));\r\n\r\n\t\t// Item can be returned successfully, when loaned out.\r\n\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\");\r\n\t\tassertTrue(\"Test that item can be returned when loaned out.\",\r\n\t\t\t\tResourceCentre.doReturnChromebook(chromebookList, \"CB0011\"));\r\n\r\n\t\t// Item can be loaned again and returned successfully\r\n\t\tassertTrue(\"Test that item can be loaned again when returned.\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\"));\r\n\t\tassertTrue(\"Test that item can be returned when reloaned.\",\r\n\t\t\t\tResourceCentre.doReturnChromebook(chromebookList, \"CB0011\"));\r\n\r\n\t\t// Another item loaned out, can be returned successfully.\r\n\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0012\", \"01/01/2010\");\r\n\t\tassertTrue(\"Test that other loaned items can be returned.\",\r\n\t\t\t\tResourceCentre.doReturnChromebook(chromebookList, \"CB0012\"));\r\n\r\n\t}",
"private void carsReadyToLeave() {\n\t\tCar car = getFirstLeavingCar();\n\t\twhile (car != null) {\n\t\t\tif (car.getHasToPay()) {\n\t\t\t\tcar.setIsPaying(true);\n\t\t\t\tpaymentCarQueue.addCar(car);\n\t\t\t} else {\n\t\t\t\tcarLeavesSpot(car);\n\t\t\t}\n\t\t\tcar = getFirstLeavingCar();\n\t\t}\n\t}",
"private boolean[] checkIfHandleBarge(Barge barge, int time) {\r\n\t\tboolean [] result={false, false};\r\n\t\t// if there is no other barge in the appointment list start handling\r\n\t\t// directly\r\n\r\n\t\tif (this.appointments.size() == 1) {\r\n\t\t\tPort.schedule.schedule(ScheduleParameters.createOneTime(time,\r\n\t\t\t\t\tScheduleParameters.LAST_PRIORITY), this, \"handleBarge\",\r\n\t\t\t\t\tbarge, time);\r\n\t\t\tresult[0]=true;\r\n\t\t\treturn result;\r\n\t\t} else {\r\n\t\t\t// we need the following information to check whether or not the\r\n\t\t\t// barge can start handling\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*Barge nextBargeInSchedule = (Barge) this.appointments.keySet().toArray()[0];\r\n\t\t\tBarge secondBargeInSchedule = (Barge) this.appointments.keySet().toArray()[1];*/\r\n\t\t\tint expectedEndTimeThisBarge = time+ barge.handlingTimes.get(barge.terminals.indexOf(this));\r\n\t\t\tint latThisBarge= this.appointments.get(barge)[0];\r\n\t\t\t//System.out.println(this.name+\" wants to check \"+barge+\" in this arrival list \"+this.actualArrival+\" and que= \"+this.queue);\r\n\t\t\tint actualArrive = this.actualArrival.get(barge);\r\n\t\t\t/*int lstNextAppointment = this.appointments.get(nextBargeInSchedule)[1];\r\n\t\t\tint lstSecondAppointment = this.appointments.get(secondBargeInSchedule)[1];*/\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//if next in schedule and it was not late\r\n\t\t\tif ((barge.equals(this.appointments.keySet().toArray()[0]) == true && latThisBarge >= actualArrive)) {\r\n\t\t\t\tthis.state=Terminal.HANDLING;\r\n\t\t\t\tPort.schedule.schedule(ScheduleParameters.createOneTime(\r\n\t\t\t\t\t\ttime, ScheduleParameters.LAST_PRIORITY), this,\r\n\t\t\t\t\t\t\"handleBarge\", barge, time);\r\n\t\t\t\tresult[0]=true;\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t//if next barge in schedule but it was late check to see if it is possible to handle it without interrupting other appointments\r\n\t\t\telse if ((barge.equals(this.appointments.keySet().toArray()[0]) == true && latThisBarge <= actualArrive)) {\r\n\t\t\t\tif (expectedEndTimeThisBarge <= this.appointments.get(this.appointments.keySet().toArray()[1])[1]){\r\n\t\t\t\t\tthis.state=Terminal.HANDLING;\r\n\t\t\t\t\tPort.schedule.schedule(ScheduleParameters.createOneTime(\r\n\t\t\t\t\t\t\ttime, ScheduleParameters.LAST_PRIORITY), this,\r\n\t\t\t\t\t\t\t\"handleBarge\", barge, time);\r\n\t\t\t\t\t\r\n\t\t\t\t\tresult[0]=true;\r\n\t\t\t\t\treturn result;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.queue.remove(barge);\r\n\t\t\t\t\tthis.appointments.remove(barge);\r\n\t\t\t\t\t//System.out.println(barge+\" removed from \"+this.name);\r\n\t\t\t\t\t//System.out.println(barge+\" removed from the \"+ this.name);\r\n\t\t\t\t\tif (Port.eventsToExcel.equals(\"Yes\")) {\r\n\t\t\t\t\t\tPort.stats\r\n\t\t\t\t\t\t\t\t.addEvent(\r\n\t\t\t\t\t\t\t\t\t\ttime,\r\n\t\t\t\t\t\t\t\t\t\tbarge.bargeNumber,\r\n\t\t\t\t\t\t\t\t\t\t(\"rejected at Terminal \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ this.toString() + \"due to delay\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// notify barge to calculate rotation again\r\n\t\t\t\t\tbarge.recalculateRotation(time);\r\n\t\t\t\t\tresult[0]=false;\r\n\t\t\t\t\tresult[1]=true;\r\n\t\t\t\t\treturn result;\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// if it is not the next one see if it is possible to service it without interrupting others\r\n\t\t\t//also if the next barge is late start this one\r\n\t\t\telse if ((barge.equals(this.appointments.keySet().toArray()[0]) == false && expectedEndTimeThisBarge <= this.appointments.get(this.appointments.keySet().toArray()[0])[1])\r\n\t\t\t\t\t||(barge.equals(this.appointments.keySet().toArray()[0]) == false && time > this.appointments.get(this.appointments.keySet().toArray()[0])[1])){\r\n\t\t\t\tthis.state=Terminal.HANDLING;\r\n\t\t\t\tPort.schedule.schedule(ScheduleParameters.createOneTime(\r\n\t\t\t\t\t\ttime, ScheduleParameters.LAST_PRIORITY), this,\r\n\t\t\t\t\t\t\"handleBarge\", barge, time);\r\n\t\t\t\tresult[0]=true;\r\n\t\t\t\treturn result;\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private void carsReadyToLeave(){\n\t Car car = cpview.getFirstLeavingCar();\n\t while (car!=null) {\n\t \tif (car.getHasToPay()){\n\t\t car.setIsPaying(true);\n\t\t paymentCarQueue.addCar(car);\n\t \t}\n\t \telse {\n\t \t\tcarLeavesSpot(car);\n\t \t}\n\t car = cpview.getFirstLeavingCar();\n\t }\n\t }",
"public void testBidAcceptionNotification() {\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n //owner.acceptBid(thing1, bid);\n //assertTrue(borrower.notifiedOfAcceptedBid(bid));\n\n assertTrue(false);\n }",
"public void returnBook()\n\t{\n\t\tavailableBooks++;\n\t}",
"public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }",
"protected boolean holdSeats(List<Seat> holdSeats) throws TicketServiceException {\n\t\tboolean holdSuccess = true;\n\t\tList<Seat> tempSeats = new ArrayList<Seat>(holdSeats);\n\t\tfor (Seat availSeat : holdSeats) {\n\t\t\tif (ticketServiceDAO.makeSeatUnavailable(availSeat.getSeatId()) == null) {\n\t\t\t\t// Targeted seat could not be found in available seat table\n\t\t\t\t// So reverting the transactions by adding all previously held\n\t\t\t\t// seats back to availSeats table\n\t\t\t\tholdSuccess = false;\n\t\t\t\tfor (Seat tempSeat : tempSeats) {\n\t\t\t\t\tticketServiceDAO.makeSeatAvailable(tempSeat);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttempSeats.add(availSeat);\n\t\t}\n\t\treturn holdSuccess;\n\t}",
"boolean hasBidresponse();",
"private boolean renterMenu() {\n System.out.println(\"BOOKING TESTING!!!!!!!!!!!!!!\");\n try {\n\n User user = UserRepository.getUser(\"testrsin\");\n\n System.out.println(\"USERRRRRRRRRR!!!!!!!!!!!!!!\");\n System.out.println(user.toString());\n\n BookingRepository\n .booking(\"testlisting\", \"2018-12-01\", \"2018-12-10\", user);\n Booking booking = BookingRepository\n .getBooking(\"testlisting\", \"2018-12-01\", \"2018-12-10\", user);\n\n System.out.println(\"BOOKING!!!!!!!!!!!!!!\");\n System.out.println(booking.toString());\n\n //BookingRepository\n // .deleteBooking(\"testlisting\", \"2018-12-01\", \"2018-12-10\", user);\n\n\n /*\n THE LISITING TESTS\n */\n ReviewRepository.createListingReview(\"testlisting\", \"testrsin\", \"l \"\n + \"review\", 1);\n\n //DID NOT STAY AT LISTING\n //ReviewRepository.createListingReview(\"testlisting\", \"rentersin\", \"l \"\n // + \"review\", 1);\n\n\n /*\n THE HOST REVIEWS\n */\n //Proper Test\n ReviewRepository.createHostReview(\"testhsin\", \"testrsin\", \"PROPER TEST \"\n + \"HOST REVIEW\", 1);\n\n //Bad Dates Test but booked\n\n\n //BOOKING CANCELLING\n BookingRepository\n .cancelBooking(\"testlisting\", \"2018-12-01\", \"2018-12-10\", user);\n booking = BookingRepository\n .getBooking(\"testlisting\", \"2018-12-01\", \"2018-12-10\", user);\n\n System.out.println(\"CANCELLED TESTING!!!!!!!!!!!!!!\");\n System.out.println(booking.toString());\n\n //Not booked at all GOOD\n //ReviewRepository.createHostReview(\"testhsin\", \"rentersin\", \"USER NOT \"\n // + \"BOOKED\", 1);\n\n //cancelled GOOD\n //ReviewRepository.createHostReview(\"testhsin\", \"testrsin\", \"CANCELLED \"\n // + \"TESTING SHOULD NOT APPEAR\", 1);\n\n System.out.println(\"DELETE TESTING!!!!!!!!!!!!!!\");\n\n } catch (Exception exception) {\n System.out.println(\"OH NO\");\n exception.printStackTrace();\n return true;\n }\n return true;\n }",
"private void notifyMissedConfirmations() {\n try {\n JavaSpace05 js = SpaceUtils.getSpace();\n U1467085Bid templateBid = new U1467085Bid();\n templateBid.bidderUserName = UserSession.getInstance().username;\n //find all bids from the user\n MatchSet allMyAds = js.contents(Collections.singleton(templateBid), null, SpaceUtils.TIMEOUT, Integer.MAX_VALUE);\n boolean foundAny = false;\n for (U1467085Bid i = (U1467085Bid) allMyAds.next(); i != null; i = (U1467085Bid) allMyAds.next()) {\n try {\n //check if confirmation was written for that bid\n U1467085BidConfirmation confirmationTemplate = new U1467085BidConfirmation();\n confirmationTemplate.bidId = i.id;\n U1467085BidConfirmation confirmation = (U1467085BidConfirmation) js.readIfExists(confirmationTemplate, null, SpaceUtils.TIMEOUT);\n U1467085AdBid adTemplate = new U1467085AdBid();\n adTemplate.id = i.adId;\n U1467085AdBid ad = (U1467085AdBid) js.readIfExists(adTemplate, null, SpaceUtils.TIMEOUT);\n if (confirmation != null && ad != null && ad.verifySignature(AddressBook.getUserKey(ad.ownerUsername)) &&\n confirmation.verifySignature(AddressBook.getUserKey(ad.ownerUsername)) &&\n i.verifySignature(UserSession.getInstance().pubKey)) {\n String message = \"Your bid of \" + String.format(\"%.2f$\", (float) i.bid / 100) + \" on item: \" + ad.title + \" has won.\";\n Platform.runLater(() -> observableNotificationList.add(message));\n foundAny = true;\n SpaceUtils.cleanAdRemove(ad, 3);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n //Avoid duplicate popup notifications but showing a single notification if any confirmations\n //were found\n if (foundAny) {\n NotificationUtil.showNotification(\"Some bids won while you were away.\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"protected boolean shouldHoldEncumbrance() {\n if (getTripEnd() == null) {\n return false; // we won't hold encumbrances if we don't know when the trip is ending\n }\n final java.sql.Date tripEnd = new java.sql.Date(getTripEnd().getTime());\n return getTravelEncumbranceService().shouldHoldEntries(tripEnd);\n\n }",
"private void checkIfWon() {\r\n\r\n Car temp;\r\n int carInList;\r\n input = new Scanner(System.in);\r\n\r\n System.out.println(\"Which vehicle did you bid on?\");\r\n cars.getListings();\r\n\r\n double winningBid = rng(1, 5000);\r\n\r\n carInList = input.nextInt();\r\n temp = cars.getCar(carInList);\r\n\r\n if (winningBid <= 1000) {\r\n System.out.println(\"You have won the bid! Congratulations!\");\r\n } else {\r\n System.out.println(\"I'm sorry, the selling price was $\" + (int) winningBid + \" above your bid\");\r\n }\r\n removeYourCar(temp);\r\n\r\n }",
"@Test\n void checkBidAddedAfterSubscribeBidding(){\n tradingSystem.subscriberBidding(NofetID,NconnID,storeID,1,2950,1);\n boolean added=false;\n for (Bid b:store.getBids()\n ) {\n if(b.getProductID()==1&&b.getUserID()==NofetID&&b.getPrice()==2950&&b.getQuantity()==1){\n added=true;\n }\n }\n assertTrue(added);\n }",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"private void checkSecondPriceAuctions() {\n\n // Get all auctions of according type.\n TypedQuery<Auction> auctionByTypeQuery = getAuctionByTypeQuery(AuctionType.SECOND_PRICE);\n List<Auction> secondPriceResultList = auctionByTypeQuery.getResultList();\n\n // Get current timestamp for comparison.\n DateTime now = new DateTime(DateTimeZone.forID(\"Europe/Berlin\"));\n Date nowDate = now.toDate();\n\n // Filter all auctions that have timed out.\n List<Auction> timeoutSecondPriceAuctions = secondPriceResultList\n .stream()\n .filter(auction -> nowDate.compareTo(auction.getEndTime()) == 1 && auction.isRunning()).collect(Collectors.toList());\n\n // Check if there are any auction that have timed out.\n if (timeoutSecondPriceAuctions.size() > 0) {\n\n for (Auction auction : timeoutSecondPriceAuctions) {\n\n // Stop auction and get its bidders.\n auction.setRunning(false);\n List<Bid> auctionBids = new ArrayList<>();\n List<Bidder> bidder = auction.getBidder();\n\n // Continue only if there are any bidders.\n if (bidder.size() > 0) {\n\n for (Bidder bidderElem : bidder) {\n auctionBids.addAll(bidderElem.getBids());\n }\n\n // Find winner only if registered bidders have bidden.\n if (auctionBids.size() > 0) {\n\n // Sort bids ascending according to their value.\n auctionBids.sort(new BidComperator());\n Bid winningBid = auctionBids.get(0);\n\n // If there is only one bid the bidder has to pay the price\n // originally entered by the article owner, which is basically the second highest\n // amount possible.\n BigDecimal priceToPay = null;\n if (auctionBids.size() == 1) {\n priceToPay = auction.getPrice();\n } else {\n // If there is more than one bid, the winner is still the bidder with\n // the highest bid, but the price he has to pay is the second highest bid.\n priceToPay = auctionBids.get(1).getAmount();\n }\n\n // Get user from Liferay to have access to user related data such as name and mail address.\n long winningUserId = winningBid.getBidder().getUserId();\n try {\n\n User userById = UserLocalServiceUtil.getUserById(winningUserId);\n AuctionResult auctionResult = new AuctionResult();\n auctionResult.setDescription(auction.getArticle().getShortDesc());\n auctionResult.setPrice(priceToPay);\n auctionResult.setFirstName(userById.getFirstName());\n auctionResult.setSurname(userById.getLastName());\n auctionResult.setMail(userById.getEmailAddress());\n auctionResult.setAuctionType(auction.getAuctionType());\n entityManager.persist(auctionResult);\n } catch (Exception e) {\n\n entityManager.getTransaction().rollback();\n }\n }\n }\n }\n }\n }",
"@Test\r\n\tpublic void testDoLoanChromebook() {\n\r\n\t\tResourceCentre.addChromebook(chromebookList, cb1);\r\n\t\tResourceCentre.addChromebook(chromebookList, cb2);\r\n\r\n\t\t// Item list is not null, newly added item can be loaned out successfully.\r\n\t\tassertNotNull(\"Test that list is not null\", chromebookList);\r\n\t\tassertTrue(\"Test if item can be loaned successfully\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\"));\r\n\r\n\t\t// Item availability is false, when item is loaned out.\r\n\t\tassertFalse(\"Test that itemAvailability is false when loaned out\", cb1.getIsAvailable());\r\n\r\n\t\t// After item is loaned out, it cannot be loaned again.\r\n\t\tassertFalse(\"Test that item cannot be loaned once loaned out\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\"));\r\n\r\n\t\t// Another item in the list can be loaned out successfully.\r\n\t\tassertTrue(\"Test that item can be loaned out successfully\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0012\", \"01/01/2010\"));\r\n\t\tassertFalse(\"Test that itemAvailability is false when loaned out\", cb2.getIsAvailable());\r\n\r\n\t\t// Item can be loaned out again when returned.\r\n\t\tassertTrue(\"Return item.\", ResourceCentre.doReturnChromebook(chromebookList, \"CB0011\"));\r\n\t\tassertTrue(\"Test that item can be loaned again when returned.\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\"));\r\n\r\n\t}",
"private void bid() {\n\t\t\t\n\t\t}",
"public void getBookAvailability() {\n getBookReservationEligibility();\n }",
"private static void returnBook(){\n\t\tSystem.out.println(\"===Book Return===\");\n\t\tScanner integer_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Id of book being returned: \");\n\t\tint bookId = getIntegerInput();//ensures user input is an integer value\n\t\t//if bookId entered does not exist then continually ask user to enter bookId until a bookId that exists is entered\n\t\t\t\twhile(!ALL_BOOKS.containsKey(bookId)){\n\t\t\t\t\tSystem.out.println(\"Book Id entered does not exist! Enter BookId: \");\n\t\t\t\t\tbookId = integer_input.nextInt();\n\t\t\t\t}\n\t\t\n\t\t/*Print statements to notify book has been found, the book's details, and its availabilty*/\n\t\tSystem.out.println(\"Book Found!\");\n\t\tSystem.out.println(ALL_BOOKS.get(bookId).getBookTitle() + \" | Written By: \" + ALL_BOOKS.get(bookId).getAuthor().toString() + \"| Published By: \" + ALL_BOOKS.get(bookId).getPublisher());\n\t\tString availabilty = !ALL_BOOKS.get(bookId).getBorrowed() ? \"Available\" : \"Currently Borrowed\"; //stores whether book is currently borrowed or not.\n\t\tSystem.out.println(availabilty);\n\t\t\n\t\t\n\t\t\n\t\tif(ALL_BOOKS.get(bookId).getBorrowed()){//if book was borrowed then validate student doing the book return, change the book's status, and calculate how much student should be fined \t\n\t\t\tBookDetails book = ALL_BOOKS.get(bookId);\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Enter Id of student returning the book: \");\n\t\t\tint studentId = getIntegerInput();//ensures user input is an integer value\n\t\t\t\n\t\t\t/*Verify student Id entered matches the Id of the student who borrowed the book*/\n\t\t\tif(studentId == book.getStudentBorrowed()){\n\t\t\t\tFineResult fine = calculateFine(book.getDateToReturn()); //calculate how many days overdue the book was returned and how much student should be fined.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//If book was returned on time then this method will return 0 for both the number of days overdue and the student's fine.\n\t\t\t\tbook.setBorrowed(false); //indicates book has been returned and is now available to be borrowed by someone else\n\t\t\t\tbook.resetDateToReturn();; //reset book's return date\n\t\t\t\tbook.setStudentBorrowed(0); //reset to default value, indicating no student is current borrowing this book\n\t\t\t\t\n\t\t\t\t/*Display Statements to user indicating book was successfully returned, and how much student was fined*/\n\t\t\t\tSystem.out.println(\"You Are All Set!\");\n\t\t\t\tSystem.out.println(\"Book Id: \" + book.getBookId() + \" | \" + book.getBookTitle() + \" has been returned\");\n\t\t\t\tSystem.out.println(ALL_STUDENTS.get(studentId).getFullName() + \" returned the book \" + fine.days_overdue + \" days overdue\" + \" | Fine Amount Charged: \" + fine.days_overdue + \" * \" + FINE_RATE + \" = GHc\" + fine.fine);\n\t\t\t\t\n\t\t\t\tALL_STUDENTS.get(studentId).setBookIdBorrowed(0); //reset to default value, indicating no book is currently borrowed by this student\n\t\t\t\tALL_STUDENTS.get(studentId).addFine(fine.fine); //add the respective fine to this students fine total. If student accrued no fine on this return, fine value added will be 0.\n\t\t\t\tSystem.out.println(\"Total Fine on account: GHc\" + ALL_STUDENTS.get(studentId).getTotalFine());\n\t\t\t\t/*If Student's total fine is greater than 0 then add student to the FINED_STUDENTS Hashtable*/\n\t\t\t\taddFinedStudentsToTable(ALL_STUDENTS.get(studentId));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"ERROR Verifying Student Id: Only Student who borrowed the book can return this book\");\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"ERROR: Can't return book that was not borrowed!\");\n\t}",
"@Override\n \tpublic void handleBettingMarketEndOFSet() {\n \n \t}",
"private boolean checkBrokers ()\n {\n if (game.getAgentMap().size() < 1) {\n log.info(String.format(\"Game: %s (round %s) reports no brokers \"\n + \"registered\",\n game.getGameId(), game.getRound().getRoundId()));\n return false;\n }\n\n for (Agent agent: game.getAgentMap().values()) {\n Broker broker = agent.getBroker();\n // Check if any broker is disabled in the interface\n if (!MemStore.getBrokerState(broker.getBrokerId())) {\n log.info(String.format(\"Not starting game %s : broker %s is disabled\",\n game.getGameId(), broker.getBrokerId()));\n return false;\n }\n\n // Check if any broker is already running the maxAgent nof agents\n if (!broker.hasAgentsAvailable(game.getRound())) {\n log.info(String.format(\"Not starting game %s : broker %s doesn't have \"\n + \"enough available agents\",\n game.getGameId(), broker.getBrokerId()));\n return false;\n }\n\n brokers += broker.getBrokerName() + \"/\" + agent.getBrokerQueue() + \",\";\n }\n brokers = brokers.substring(0, brokers.length() - 1);\n return true;\n }",
"public boolean checkoutBooking() {\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tboolean bookUpdateSuccess = false;\r\n\r\n\t\t/**\r\n\t\t*\tSet the endTime as now\r\n\t\t*/\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(date.getTime());\r\n\r\n\t\t/**\r\n\t\t*\tCalculate the cost base on the time elapsed between the start time and end time\r\n\t\t*\tdurationMinutes = (difference b/w end and start time) / 1000 to convert millis to seconds / 60 to convert seconds to minutes\r\n\t\t*/\r\n\t\tlong start = startTime.getTime();\r\n\t\tlong end = endTime.getTime();\r\n\t\tlong durationMinutes = (end - start)/60000;\r\n\r\n\t\t/**\r\n\t\t*\tThe cost is set as Rs. 1.27 per minuteand hence will be calulated using durationMinutes\r\n\t\t* The cost will be calculated according to absolute minutes and no decimals will be considered there\r\n\t\t*/\r\n\t\tcost = durationMinutes * 1.27;\r\n\r\n\t\t/**\r\n\t\t*\tShow the cost and confirm to checkout.\r\n\t\t*/\r\n\t\tSystem.out.print(\"\\n\\tTotal cost calculated: \" + cost + \"\\n\\n\\t1. Confirm Checkout\\n\\t2. Cancel\\n\\t\\t>> \");\r\n\t\tint opt = scan.nextInt();\r\n\r\n\t\tswitch (opt) {\r\n\t\t\tcase 1: {\t//confirm checkout\r\n\t\t\t\t//do nothing and move ahead towards the checkout procedure\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2: {\t//Cancel\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tdefault: {\r\n\t\t\t\tSystem.out.println(\"Invalid Option\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and updating data (executeUpdateParklot())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection checkoutBookingConn = new DbConnection();\r\n\r\n\r\n\t\t\t/**\r\n\t\t\t*\tupdate the data in table\r\n\t\t\t*/\r\n\t\t\tbookUpdateSuccess = checkoutBookingConn.executeUpdateBooking(endTime, cost, bookingNo);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"No booking with the given booking number found.\");\r\n\t\t\t//SqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn bookUpdateSuccess;\r\n\t}",
"protected BigDecimal reword(){\n\t\tif(getNowAct() == 0){\n\t\t\treturn(rewordBuy());\n\t\t}\n\t\t//keep\n\t\telse if(getNowAct() == 1){\n\t\t\treturn(rewordWait());\n\t\t}\n\t\t//sell\n\t\telse if(getNowAct() == 2){\n\t\t\treturn(rewordSell());\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"getNowAct : \" + getNowAct() + \"\\nerror occur.\");\n\t\t\tSystem.exit(2);\n\t\t\treturn(null);\n\t\t}\n\t}",
"boolean hasBidrequest();",
"public Boolean endLoan(Loan loan) {\n\t\tif (loans.contains(loan)) {\n\t\t\tif (loan.isOverdue()) {\n\t\t\t\tSystem.out.println(name.toUpperCase() + \" is returning the book after the return date limit.\");\n\t\t\t}\n\t\t\tloans.remove(loan);\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSystem.out.println(\"Error: the choosen book couldn't be found in the person's current books.\");\n\t\t\treturn false;\n\t\t}\n\t}",
"private void butCheckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butCheckActionPerformed\n\n Borrower bor = createBorrower();\n String date = tfDate.getText();\n\n if (driver.dateFormatValid(date)) {\n //valid date format, perform check out/in\n if (radBorrow.isSelected()) {\n //check out\n\n Book book = createBook();//create book\n\n if (!book.isOnLoan()) {\n //book is not on loan, can be loaned out\n\n //perform loan, inform user of success\n if (bor.borrow(book, date)) {\n driver.infoMessageNormal(\"\\\"\" + book.getTitle() + \"\\\" loaned successfully to \" + bor.getName());\n\n } else {\n driver.errorMessageNormal(\"Book could not be loaned\");\n }\n\n } else {\n //is on loan\n driver.errorMessageNormal(\"\\\"\" + book.getTitle() + \"\\\" is already on loan.\");\n\n }\n\n } else if (radReturn.isSelected()) {\n //check in / returning\n\n Book book = createBook();\n\n if (book.isOnLoan()) {\n //book is on loan, and can be returned\n\n if (bor.returnBook(book, date)) {\n driver.infoMessageNormal(\"\\\"\" + book.getTitle() + \"\\\" has been returned.\");\n\n } else {\n driver.infoMessageNormal(\"The book could not be returned.\");\n }\n\n } else {\n //not on loan\n driver.infoMessageNormal(\"\\\"\" + book.getTitle() + \"\\\" is not on loan.\");\n }\n\n } else {\n driver.errorMessageNormal(\"Please select whether the book is being checked in or being returned.\");\n }\n\n } else {\n //invalid format\n driver.errorMessageNormal(\"Please ensure the date is in the format DD/MM/YYY\");\n }\n\n\n }",
"public Boolean canBorrowBook() {\n\t\tif (loans.size() >= getLoanLimit()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"void returnBook(int bookId) {\n\t\t\n\t\t// check if the book id is not valid \n\t\tif (!this.isBookIdValid(bookId)){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// checks if that book was never taken out\n\t\tif (this.isBookAvailable(bookId))\n\t\t{\n\t\t\treturn; \n\t\t}\n\t\t\t\t\n\t\t// sets the counter on that patron as one less \n\t\tthis.patronBookCount[this.bookShelf[bookId].getCurrentBorrowerId()]--;\n\t\t\n\t\t// sets the current borrower to none\n\t\tthis.bookShelf[bookId].returnBook();\n\t}",
"public void testBidNotification() {\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n //assertTrue(owner.notifiedOfBid(bid));\n\n assertTrue(false);\n }",
"public synchronized void checkIn(int bookTaken, int id){\n \tint returnBook = bookTaken;\n \t\n \t//if else clause to return the correct book\n \tif(returnBook == 0){\n \t\tA.setAvailable(true);\n \t}\n \telse if(returnBook == 1){\n \t\tB.setAvailable(true);\n \t}\n \telse if(returnBook == 2){\n \t\tC.setAvailable(true);\n \t}\n \telse if(returnBook == 3){\n \t\tD.setAvailable(true);\n \t}\n \telse if(returnBook == 4){\n \t\tE.setAvailable(true);\n \t}\n \t\n \t\n \t//notify the waiting clients that a book as been returned\n \tnotifyAll();\n }",
"private void placeBid() {\r\n System.out.println(\"Would you like to place a bid? (Y/N)\");\r\n bidMenu();\r\n }",
"private static void checkoutBook(){\n\t\tSystem.out.println(\"===Book Checkout===\");\n\t\tScanner string_input = new Scanner(System.in); //gets String values entered by the user\n\t\tScanner integer_input = new Scanner(System.in); //gets integer values entered by the user\n\t\tboolean exit = false; //indicates whether method should be exited\n\t\t\n\t\tSystem.out.println(\"Enter Id of book to be checked out: \");\n\t\tint bookId = getIntegerInput();//ensures user input is an integer value\n\t\t//if bookId entered does not exist then continually ask user to enter bookId until a bookId that exists is entered\n\t\twhile(!ALL_BOOKS.containsKey(bookId)){\n\t\t\tSystem.out.println(\"Book Id entered does not exist! Enter BookId: \");\n\t\t\tbookId = integer_input.nextInt();\n\t\t}\n\t\t\n\t\t/*Print statements to notify book has been found, the book's details, and its availabilty*/\n\t\tSystem.out.println(\"Book Found!\");\n\t\tSystem.out.println(ALL_BOOKS.get(bookId).getBookTitle() + \" | Written By: \" + ALL_BOOKS.get(bookId).getAuthor().toString() + \" | Published By: \" + ALL_BOOKS.get(bookId).getPublisher());\n\t\tString availabilty = !ALL_BOOKS.get(bookId).getBorrowed() ? \"Available\" : \"Currently Borrowed\"; //stores whether book is currently borrowed or not.\n\t\tSystem.out.println(availabilty);\n\t\t\n\t\tif(!ALL_BOOKS.get(bookId).getBorrowed()){//if book is available to be borrowed then change it's status and set the date it should be returned (Next Month From Date of Borrowing)\n\t\t\tSystem.out.println(\"Enter Id of student borrowing the book: \");\n\t\t\tint studentId = getIntegerInput();//ensures user input is an integer value\n\t\t\tif(!studentExists(studentId)){ //if student Id entered does not exists\n\t\t\t\tSystem.out.println(\"Student Id entered does not exist. Do you want to add a new student? (Y --> Yes/ Any other button --> No): \");\n\t\t\t\tString user_option = string_input.next();\n\t\t\t\tif(user_option.equalsIgnoreCase(\"Y\"))\n\t\t\t\t\tstudentId = addNewStudent(); //adds a new student to the ALL_STUDENTS ArrayList and returns this new student's Id \n\t\t\t\telse\n\t\t\t\t\texit = true; //exit to main menu\n\t\t\t}\n\t\t\t\n\t\t\t/*Students cannot borrow more than one book at a time. Thus if the student's bookIdBorrowed is greater than 0 then\n\t\t\t * it implies the student currently has a book borrowed.*/\n\t\t\telse if(ALL_STUDENTS.get(studentId).getBookIdBorrowed() > 0){ \n\t\t\t\tStudentDetails student = ALL_STUDENTS.get(studentId); //stores student trying to checkout the book\n\t\t\t\tBookDetails bookBorrowed = ALL_BOOKS.get(student.getBookIdBorrowed()); //stores book currently borrowed by the student\n\t\t\t\tSystem.out.println(\"Sorry! Only one book can be borrowed at a time.\");\n\t\t\t\tSystem.out.println(student.getFullName() + \" currently has borrowed \" + bookBorrowed.getBookTitle());\n\t\t\t\tSystem.out.println(\"Please come back later when \" + bookBorrowed.getBookTitle() + \" is returned\");\n\t\t\t\texit = true; //exit to main menu\n\t\t\t}\n\t\t\t\n\t\t\t/*If the method has not been exited at this point then it implies the student can be borrow the book.*/\n\t\t\tif(!exit){\n\t\t\t\tBookDetails book = ALL_BOOKS.get(bookId);\n\t\t\t\tCalendar return_date = new GregorianCalendar(); //get the current date\n\t\t\t\treturn_date.add(Calendar.MONTH, 1); //set the return date to the next month from the current date\n\t\t\t\tbook.setBorrowed(true); //indicates book has been borrowed\n\t\t\t\tbook.setDateToReturn(return_date); //set book's return date\n\t\t\t\n\t\t\t\tALL_STUDENTS.get(studentId).setBookIdBorrowed(book.getBookId()); //indicate that the student has borrowed this book\n\t\t\t\tbook.setStudentBorrowed(studentId); //indicates book has been borrowed by the student with the given ID\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"You Are All Set!\");\n\t\t\t\tSystem.out.println(book.getBookId() + \" | \" + book.getBookTitle() + \" is due \" + SDF.format(return_date.getTime()));\n\t\t\t}\n\t\t}\n\t\t\n\t\telse\n\t\t\tSystem.out.println(\"Sorry check back later to borrow this book\");\t\n\t}",
"public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }",
"public void checkAuctions() {\n\n checkDutchAuctions();\n checkSecondPriceAuctions();\n }",
"@Override\n public boolean hasNext() {\n return currentIndex < bikes.length && bikes[currentIndex] != null;\n }",
"@Test\n public void testBorrowBook() throws Exception {\n Friend friend = friendManager.getFriend(\"pp\");\n PaperBook paperBook = homeLibrary.getPaperBookByISBN(1234567890L);\n Borrowable borrowable = paperBook.getBorrowable();\n friend.getAccount().addBorrowable(borrowable);\n BorrowRecord borrowRecord = friend.getAccount().borrowBook(borrowable);\n //Reading for a while\n Thread.sleep(500);\n friend.getAccount().returnBook(borrowRecord);\n }",
"public boolean pickAndExecuteAnAction() {\n\t\ttry{\n\t\t\tsynchronized(waiters){\n\t\t\t\tfor (MyWaiter waiter : waiters) {\n\t\t\t\t\tif (waiter.state == MyWaiter.WaiterState.askingForBreak && waiters.size() > 1) {\n\t\t\t\t\t\tDo(\"Break granted\");\n\t\t\t\t\t\twaiter.w.msgBreakGranted();\n\t\t\t\t\t\twaiters.remove(waiter);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tboolean hasEmptyTable = false;\n\t\t\tsynchronized(tables){\n\t\t\t\tfor (Table table : tables) {\n\t\t\t\t\tif (!table.isOccupied()) {\n\t\t\t\t\t\thasEmptyTable = true;\n\t\t\t\t\t\tsynchronized(waitingCustomers){\n\t\t\t\t\t\t\tfor (MyCustomer customer : waitingCustomers) {\n\t\t\t\t\t\t\t\tif (waiters.size() != 0){\n\t\t\t\t\t\t\t\t\tif (customer.state == MyCustomer.CustomerState.waiting ||\n\t\t\t\t\t\t\t\t\t\t\tcustomer.state == MyCustomer.CustomerState.staying) {\n\t\t\t\t\t\t\t\t\t\tseatCustomer(customer.customer, table, customer.count);\n\t\t\t\t\t\t\t\t\t\twaitingCustomers.remove(customer);\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!hasEmptyTable){\n\t\t\t\tsynchronized(waitingCustomers){\n\t\t\t\t\tfor (MyCustomer customer : waitingCustomers){\n\t\t\t\t\t\tif(customer.state == MyCustomer.CustomerState.waiting){\n\t\t\t\t\t\t\tcustomer.customer.msgNoSeat();\n\t\t\t\t\t\t\tcustomer.state = MyCustomer.CustomerState.deciding;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ConcurrentModificationException e){\n\t\t\treturn false;\n\t\t}\n\n\t\treturn false;\n\t\t//we have tried all our rules and found\n\t\t//nothing to do. So return false to main loop of abstract agent\n\t\t//and wait.\n\t}",
"public boolean returns(Book book) {\n int index = find(book);\n if (index == NOT_FOUND){ return false; }\n if (!books[index].isCheckedOut()){ return false; }\n books[index].setCheckedOut(false);\n return true;\n }",
"public Boolean checkBust() {\n\t\tif (getHandValue() > 21) {\n\t\t\tSystem.out.println(name + \" Busted!\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected void handleBuy(Message m) {\n return;\n }",
"@Override\n\tpublic void pickServiceBay(Garage garage) throws NoAvailableBayException {\n\t\tint i = garage.getSize() - 1;\n\t\tfor (; i >= 0; i--) {\n\t\t\tServiceBay sb = garage.getBayAt(i);\n\t\t\ttry {\n\t\t\t\tsb.occupy(this);\n\t\t\t\tbreak;\n\t\t\t} catch (BayOccupiedException e) {\n\t\t\t\t// skip this line.\n\t\t\t} catch (BayCarMismatchException e) {\n\t\t\t\t// skip this line.\n\t\t\t}\n\t\t}\n\t\tif (i == -1) {\n\t\t\tthrow new NoAvailableBayException();\n\t\t}\n\t}",
"private void pullBikes() {\n try {\n if (!connected) {\n this.reconnectSupplier();\n }\n\n synchronized (this.writeLock) {\n if (!this.dataVersion.equals(supplier.getDataVersion())) {\n DataPatch<ArrayList<Bike>> dataPatch = supplier.getNewBikes(dataVersion);\n for (Bike bike : dataPatch.getData()) {\n cache.put(bike.getItemNumber(), bike);\n }\n dataVersion = dataPatch.getDataVersion();\n }\n }\n } catch (RemoteException e) {\n System.out.println(\"Cannot load new bikes from supplier, keep using cached data\");\n e.printStackTrace();\n connected = false; // connection lost so remove reference to supplier, reacquire later\n }\n }",
"private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }",
"public void hitBJ() {\n\t\tif (blackjack.isOkBet()) {\n\t\t\tif (blackjack.getCount(1, false, 21)) {\n\t\t\t\t((BlackjackView) manager.getPanel(Constants.BJ_VIEW_NAME)).addCard(blackjack.giveCard(1), 1);\n\t\t\t\tif (blackjack.getCount(1, true, 21)) {\n\t\t\t\t\tblackjack.playerLoses();\n\t\t\t\t\tJOptionPane.showMessageDialog(manager.getPanel(Constants.BJ_VIEW_NAME), \"You lose!\", \"BUSTED\",\n\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\tresetBJTable();\n\t\t\t\t}\n\t\t\t}\n\t\t} else\n\t\t\tJOptionPane.showMessageDialog(manager.getPanel(Constants.BJ_VIEW_NAME), \"You must bet something\", \"ERROR\",\n\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t}",
"protected boolean pickAndExecuteAnAction() {\n\t//print(\"in waiter scheduler\");\n\t//Starts the break cycle if onBreak == true\n\tif(onBreak && working ) {\n\t initiateBreak();\n\t return true;\n\t}\n\n\t//Once all the customers have been served\n\t//then the waiter can actually go on break\n\tif(!working && customers.isEmpty() && !startedBreak) {\n\t goOnBreak();\n\t return true;\n\t}\n\n\tif(!onBreak && !working){\n\t endBreak();\n\t}\n\n\t\n\t//Runs through the customers for each rule, so \n\t//the waiter doesn't serve only one customer at a time\n\tif(!customers.isEmpty()){\n\t //System.out.println(\"in scheduler, customers not empty:\");\n\t //Gives food to customer if the order is ready\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.ORDER_READY) {\n\t\t giveFoodToCustomer(c);\n\t\t return true;\n\t\t}\n\t }\n\t //Clears the table if the customer has left\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.IS_DONE) {\n\t\t clearTable(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Seats the customer if they need it\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.NEED_SEATED){\n\t\t seatCustomer(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Gives all pending orders to the cook\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.ORDER_PENDING){\n\t\t giveOrderToCook(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Takes new orders for customers that are ready\n\t for(MyCustomer c:customers){\n\t\t//print(\"testing for ready to order\"+c.state);\n\t\tif(c.state == CustomerState.READY_TO_ORDER) {\n\t\t takeOrder(c);\n\t\t return true;\n\t\t}\n\t }\t \n\t}\n\tif (!currentPosition.equals(originalPosition)) {\n\t moveToOriginalPosition();\n\t return true;\n\t}\n\n\t//we have tried all our rules and found nothing to do. \n\t// So return false to main loop of abstract agent and wait.\n\t//print(\"in scheduler, no rules matched:\");\n\treturn false;\n }",
"private static boolean checkForOppositeBuyAlreadyPlacedOrders(Stock stock,\n Order arrivedOrder,\n Iterator<Order> it,\n Order oppositeAlreadyPlacedOrder,\n AtomicBoolean arrivedOrderWasTreated,\n AtomicLong serialTime) {\n if ((oppositeAlreadyPlacedOrder.getOrderDirection() ==\n OrderDirection.BUY) &&\n (oppositeAlreadyPlacedOrder.getDesiredLimitPrice() >=\n arrivedOrder.getDesiredLimitPrice())) {\n\n // only if the 'arrivedOrder' wasn't removed from the data-base yet:\n checkForOppositeAlreadyPlacedOrders_DependencyOnDirection(stock,\n arrivedOrder, it, oppositeAlreadyPlacedOrder,\n stock.getDataBase().getAwaitingSellOrders().getCollection(),\n arrivedOrderWasTreated, serialTime);\n return true;\n } else {return false;}\n }",
"private boolean takeBertyService() {\n Log.v(TAG, String.format(\"takeBertyService: called for device %s\", getMACAddress()));\n if (getBertyService() != null) {\n Log.d(TAG, String.format(\"Berty service already found for device %s\", getMACAddress()));\n return true;\n }\n\n setBertyService(getBluetoothGatt().getService(GattServer.SERVICE_UUID));\n\n if (getBertyService() == null) {\n Log.i(TAG, String.format(\"Berty service not found for device %s\", getMACAddress()));\n return false;\n }\n\n Log.d(TAG, String.format(\"Berty service found for device %s\", getMACAddress()));\n return true;\n }",
"boolean hasBuyDescribe();",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 325) {\n if (resultCode == Activity.RESULT_OK) {\n String result = data.getStringExtra(\"RESULT_ISBN\");\n if (result.equals(clickedBook.getISBN())){\n //owner confirm receive returned book\n Toast.makeText(getActivity(), \"You successfully received this book\", Toast.LENGTH_SHORT).show();\n currentBookDocRef.update(\"returnDenoted\",\"false\");\n currentBookDocRef.update(\"status\",\"Available\");\n currentBookDocRef.update(\"borrowerID\", FieldValue.delete());\n currentBookDocRef.update(\"borrowerUname\", FieldValue.delete());\n currentBookDocRef.update(\"lat\", FieldValue.delete());\n currentBookDocRef.update(\"lng\", FieldValue.delete());\n borrowerSideBorrowedBookRef.update(\"returnDenoted\",\"false\");\n\n // for borrower,remove book from BorrowedBook\n borrowerSideBorrowedBookRef.delete();\n\n }\n else {\n Toast.makeText(getActivity(), \"The ISBN you scaned does not match the ISBN of the book\", Toast.LENGTH_SHORT).show();\n\n }\n }\n }\n }",
"public void checkoutReturnPressed(View view){\n try {\n if (currentBook.copies != null) {\n if (!checkedOut) {\n DialogFragment bookFragment = SelectBookFragment.newInstance(BookDetailsActivity.this, currentBook.copies, currentBook.availableCopies);\n bookFragment.show(getFragmentManager(), \"Choose Book\");\n } else if (mCopy != null) {\n Log.i(\"LoginActivity\", \"RETURNED\");\n returnBook(mCopy);\n }\n } else {\n Toast.makeText(this, \"Book is still loading.\", Toast.LENGTH_SHORT).show();\n }\n }catch(Exception E){\n E.printStackTrace();\n Toast.makeText(this, \"Book is still loading.\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\tpublic boolean withdraw(User loggedInUser, String chosenBook)\n\t\t\tthrows BookDoesNotExistException, TooManyBooksAlreadyWithdrawnException {\n\t\treturn false;\n\t}",
"public void newBidPostedByMe(U1467085Bid bid) {\n try {\n JavaSpace05 js = SpaceUtils.getSpace();\n if (EventRegistration != null) {\n EventRegistration.getLease().cancel();\n }\n if (allPossibleConfirmations.stream().noneMatch((o) -> o.adId == bid.adId)) {\n U1467085BidConfirmation newTemplate = new U1467085BidConfirmation();\n newTemplate.adId = bid.adId;\n allPossibleConfirmations.add(newTemplate);\n EventRegistration = js.registerForAvailabilityEvent(allPossibleConfirmations, null, false, Listener, SpaceUtils.LONGLEASE, null);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void dontCompleteBooking(){\r\n\t\ttempBookings.clear();\r\n\t}",
"@Test\n\tpublic void bikesAvailable()\n\t{\t\t\n\t\tassertTrue(controller.getReport().getNoOfBikesAvailable() == 1);\n\t}",
"@Test\n public void checkBook2() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n boolean gotBook = x.checkBook();\n assertTrue(!gotBook);\n }",
"public static boolean processBidding() {\r\n\t\tboolean done = true;\r\n\t\t\r\n\t\t//Check if all the choice boxes have been selected.\r\n\t\tif (FrameUtils.player1Bid.getSelectedIndex() == -1\r\n\t\t\t\t|| FrameUtils.player1Bid.getSelectedIndex() == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (FrameUtils.player2Bid.getSelectedIndex() == -1\r\n\t\t\t\t|| FrameUtils.player2Bid.getSelectedIndex() == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (FrameUtils.player3Bid.getSelectedIndex() == -1\r\n\t\t\t\t|| FrameUtils.player3Bid.getSelectedIndex() == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Don't check fourth player if playing three handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (FrameUtils.player4Bid.getSelectedIndex() == -1\r\n\t\t\t\t\t|| FrameUtils.player4Bid.getSelectedIndex() == 0) {\r\n\t\t\t\tdone = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!done) FrameUtils.showDialogBox(\"An incorrect bid was made.\");\r\n\t\t\r\n\t\t//Save bid data.\r\n\t\tsaveBidData();\r\n\t\t\t\r\n\t\treturn done;\r\n\t}",
"@Then(\"^I get the same item back$\")\n\tpublic void i_get_the_same_item_back() throws Throwable {\n\t throw new PendingException();\n\t}",
"CarPaymentMethod processHotDollars();",
"@Override\n public void payGroupBuyBooking(GroupBuyBookingBo groupBuyBookingBo) {\n }",
"IBooking getSeatonHold(String seatHoldId, String customerEmail) throws BookingNotAvailableException;",
"@Override\n\tpublic synchronized final <V extends Value<V>> boolean update(\n\t\t\tfinal MarketTaker<V> taker) {\n\n\t\tif (!RegTaker.isValid(taker)) {\n\t\t\t// debug logged already\n\t\t\treturn false;\n\t\t}\n\n\t\tfinal RegTaker<?> regTaker = takerMap.get(taker);\n\n\t\tif (regTaker == null) {\n\t\t\tlog.warn(\"Taker not registered : {}\", taker);\n\t\t\treturn false;\n\t\t}\n\n\t\t//\n\n\t\tfinal Set<MarketInstrument> updateSet = new HashSet<MarketInstrument>();\n\t\tfinal Set<MarketInstrument> registerSet = new HashSet<MarketInstrument>();\n\t\tfinal Set<MarketInstrument> unregisterSet = new HashSet<MarketInstrument>();\n\t\tfinal Set<MarketInstrument> changeNotifySet = new HashSet<MarketInstrument>();\n\n\t\t{\n\n\t\t\tfinal MarketInstrument[] pastArray = regTaker.getInstruments();\n\t\t\tfinal MarketInstrument[] nextArray = taker.bindInstruments();\n\n\t\t\tfinal Set<MarketInstrument> pastSet = new HashSet<MarketInstrument>(\n\t\t\t\t\tArrays.asList(pastArray));\n\t\t\tfinal Set<MarketInstrument> nextSet = new HashSet<MarketInstrument>(\n\t\t\t\t\tArrays.asList(nextArray));\n\n\t\t\t/** past & next */\n\t\t\tupdateSet.addAll(pastSet);\n\t\t\tupdateSet.retainAll(nextSet);\n\n\t\t\t/** next - past */\n\t\t\tregisterSet.addAll(nextSet);\n\t\t\tregisterSet.removeAll(updateSet);\n\n\t\t\t/** past - next */\n\t\t\tunregisterSet.addAll(pastSet);\n\t\t\tunregisterSet.removeAll(updateSet);\n\n\t\t\t/** past + next */\n\t\t\tchangeNotifySet.addAll(updateSet);\n\t\t\tchangeNotifySet.addAll(registerSet);\n\t\t\tchangeNotifySet.addAll(unregisterSet);\n\n\t\t}\n\n\t\t//\n\n\t\t// log.debug(\"updateSet : {}\", updateSet);\n\t\t// log.debug(\"registerSet : {}\", registerSet);\n\t\t// log.debug(\"unregisterSet : {}\", unregisterSet);\n\t\t// log.debug(\"changeNotifySet : {}\", changeNotifySet);\n\n\t\t//\n\n\t\t/** unregister : based on past */\n\t\tfor (final MarketInstrument inst : unregisterSet) {\n\n\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\tmarket.runSafe(safeUnregister, regTaker);\n\n\t\t}\n\n\t\t/** update : based on merge of next and past */\n\t\tfor (final MarketInstrument inst : updateSet) {\n\n\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\tmarket.runSafe(safeUpdate, regTaker);\n\n\t\t}\n\n\t\t/** past = next */\n\t\tregTaker.bind();\n\n\t\t/** register : based on next */\n\t\tfor (final MarketInstrument inst : registerSet) {\n\n\t\t\tif (!isValid(inst)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!isRegistered(inst)) {\n\t\t\t\tregister(inst);\n\t\t\t}\n\n\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\tmarket.runSafe(safeRegister, regTaker);\n\n\t\t}\n\n\t\tfinal Set<MarketDo> ms = new HashSet<MarketDo>();\n\t\t/** remove / notify */\n\t\tfor (final MarketInstrument inst : changeNotifySet) {\n\n\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\tif (!market.hasRegTakers()) {\n\t\t\t\tunregister(inst);\n\t\t\t}\n\t\t\t\n\t\t\tms.add(market);\n\n\t\t}\n\t\t\n\t\tnotifyRegListeners(ms);\n\n\t\treturn true;\n\t}",
"protected boolean allBoatsArePlaced() {\n for(BoatDrawing boat : boatMap.values()) {\n if (!boat.isPlaced()) {\n return false;\n }\n }\n logMsg(\"click now on 'valider' button to begin game\");\n return true;\n }",
"boolean accept(StockQuote pQuote);",
"public boolean isSatisfied() {\n\t\tif (!booksToReturn.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\t// sprawdzenie czy wszystko z listy jest\n\t\t// przygotowywanie drugiej listy\n\t\tList<Integer> checkList = new ArrayList<Integer>();\n\t\tcheckList.addAll(wishList);\n\n\t\t// jesli ksiazka jest w plecaku to powinna byc na liscie\n\t\tfor (Book book : lendBooks) {\n\t\t\tif (checkList.contains((Integer) book.getIsbn())) {\n\t\t\t\tcheckList.remove((Integer) book.getIsbn());\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// jeski na liscie jest coc czego nie ma w plecaku\n\t\treturn checkList.isEmpty();\n\t}",
"public boolean isAvailable() throws KKException\r\n {\r\n return isAvailable(MODULE_PAYMENT_CYBERSOURCESA_STATUS);\r\n }",
"private boolean backTrackUses(ImportPkg ip) {\n if (Debug.packages) {\n Debug.println(\"backTrackUses: check - \" + ip.pkgString());\n }\n if (tempBackTracked.contains(ip.bpkgs)) {\n return false;\n }\n tempBackTracked.add(ip.bpkgs);\n Iterator i = getPackagesProvidedBy(ip.bpkgs).iterator();\n if (i.hasNext()) {\n do {\n\tExportPkg ep = (ExportPkg)i.next();\n\tboolean foundUses = false;\n\tfor (Iterator ii = ep.pkg.importers.iterator(); ii.hasNext(); ) {\n\t ImportPkg iip = (ImportPkg)ii.next();\n\t if (iip.provider == ep) {\n\t if (backTrackUses(iip)) {\n\t foundUses = true;\n\t }\n\t }\n\t}\n\tif (!foundUses) {\n\t checkUses(ep);\n\t}\n } while (i.hasNext());\n return true;\n } else {\n return false;\n }\n }",
"public void priceCheck() {\n\t\tnew WLPriceCheck().execute(\"\");\n\t}",
"public void registerNewBooking(Booking b) {\n if (!newBooking.contains(b)\n && !modifiedBooking.contains(b)) {\n newBooking.add(b);\n }\n }",
"public void checkOutBook(String isbn) {\n\n\t\tif (bookExists(isbn)) {\n\t\t\tfor (Book theBook : bookList) {\n\t\t\t\tString bookCode = theBook.getIsbn();\n\t\t\t\tif (bookCode.equals(isbn)) {\n\t\t\t\t\tif (bookType(bookCode) != 3) {\n\t\t\t\t\t\tif (theBook.getAvailable() >= 1) {\n\t\t\t\t\t\t\ttheBook.setAvailable(theBook.getAvailable() - 1);\n\t\t\t\t\t\t\tSystem.out.println(\"Book checked out successfully. Enjoy your reading!\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\"Sorry, there are no more copies of this book available to check out. Please try another book.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"Sorry, you can't check out periodicals.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"That ISBN does not exist in our system. Please enter a valid ISBN.\");\n\t\t}\n\n\t}",
"private void givenExchangeRateExistsForABaseAndDate() {\n }",
"public void applyBrake() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void acceptTrade(boolean willAccept) {\n\t\t\r\n\t}",
"boolean isBookAvailable(int bookId) {\n\t\t\n\t\t// checks if the books id is valid\n\t\tif (!this.isBookIdValid(bookId)) {\n\t\t\treturn false; \n\t\t}\n\t\t\n\t\t// checks if the book is not taken \n\t\tif(this.bookShelf[bookId].currentBorrowerId == -1) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// the book is taken \n\t\treturn false;\n\t}",
"protected boolean shouldHoldAdvance() {\n if (shouldProcessAdvanceForDocument() && getTravelAdvance().getDueDate() != null) {\n return getTravelEncumbranceService().shouldHoldEntries(getTravelAdvance().getDueDate());\n }\n return false;\n }",
"public void completeBooking(){\r\n\t\tbookings.putAll(tempBookings);\r\n\t\ttempBookings.clear();\r\n\t}",
"public boolean checkAndFreezeFunds (int secretKey, double proposedFreeze) {\n\n int theBankAccountNumber;\n // use AccountLink and secret key to get actual Bank Account number\n AccountLink theAccountLink = hashMapOfSecretKeys.get(secretKey);\n if ( theAccountLink != null ) {\n theBankAccountNumber = theAccountLink.getAGENT_ACCOUNT_NUMBER();\n } else {\n return false;\n }\n // use account number to get full BankAccount\n BankAccount theBankAccount =\n hashMapOfAllAccts.get(theBankAccountNumber);\n\n // ask BankAccount to check and (if possible) freeze the amount\n boolean fundsFrozen = theBankAccount.checkAndFreeze(proposedFreeze);\n\n if (fundsFrozen) {\n updateBankDisplay();\n }\n\n return fundsFrozen;\n }",
"private void grabStrayBeepers() {\n\t\twhile (beepersPresent()) {\n\t\t\tpickBeeper();\n\t\t}\n\t}",
"boolean examinePaidItems(){\n\t\t\tint count = 0;\n\t\t\tif (!this.items.isEmpty()){\n\t\t\t\tfor (int i = 0; i < this.items.size(); i++){\n\t\t\t\t\tif (this.items.get(i).montaryValue != 0){\n\t\t\t\t\t\tSystem.out.print(this.items.get(i).itemName + \" ($\" + (this.items.get(i).montaryValue * -1) + \"), \");\n\t\t\t\t\t\tcount++;}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!this.receptacle.isEmpty()){//if the location has containers.\n\t\t\t\tfor (int k = 0; k < this.receptacle.size(); k++){//loops through the containers in the location\n\t\t\t\t\tif (!(this.receptacle.get(k) instanceof SpecialtyContainer)){//some containers are hidden, like the depths of the cove. \n\t\t\t\t\t\tfor (int j = 0; j < this.receptacle.get(k).contents.size(); j++){//looks for the items in the non hidden containers\n\t\t\t\t\t\t\tif (this.receptacle.get(k).contents.get(j).montaryValue < 0){//if the item needs to be bought\n\t\t\t\t\t\t\t\tSystem.out.print(this.receptacle.get(k).contents.get(j).itemName + \" ($\" + \n\t\t\t\t\t\t\t\t\t\t(this.receptacle.get(k).contents.get(j).montaryValue * -1) + \"), \");\n\t\t\t\t\t\t\t\tcount++;}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == 0){//it didn't find any items you need to pay for.\n\t\t\t\tSystem.out.println(\"There's nothing here that costs money.\");\n\t\t\t\treturn false;}\n\t\t\treturn true;\n\t\t}",
"public void saveBorrowings() {\n\t}",
"@Test\n public void checkBook() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n x.setCards(3,4);\n boolean gotBook = x.checkBook();\n assertTrue(gotBook);\n }",
"public boolean indicateClosure() {\r\n int count = dailyRollInventory.size();\r\n for (Map.Entry<String,Integer> entry : dailyRollInventory.entrySet()) {\r\n if (entry.getValue() == 0) {\r\n count = count - 1;\r\n }\r\n }\r\n if (count == 0) {\r\n // CLOSURE\r\n System.out.println(\"Out of rolls for the day closing shop.\");\r\n // refresh all the rolls\r\n for (Map.Entry<String,Integer> entry : dailyRollInventory.entrySet()) {\r\n refreshRoll(entry.getKey());\r\n }\r\n return true;\r\n }\r\n return false;\r\n }",
"public synchronized void checkAndUpdateInventory(Drink drink) {\n Map<String, Integer> quantityMap = drink.getIngredientQuantityMap();\n boolean canBeMade = true;\n for (Map.Entry<String, Integer> entry : quantityMap.entrySet()) {\n if (inventoryMap.containsKey(entry.getKey())) {\n int currentValue = inventoryMap.get(entry.getKey());\n if (currentValue == 0) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not available\");\n canBeMade = false;\n break;\n } else if (quantityMap.get(entry.getKey()) > inventoryMap.get(entry.getKey())) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not sufficient\");\n canBeMade = false;\n break;\n }\n }\n }\n if (canBeMade) {\n updateInventory(quantityMap);\n System.out.println(drink.getName() + \" is prepared\");\n }\n }",
"public static void checkBlackjack()\n\t{\n\t\tint result=resultBlackjack();\n\t\tif(result==1)\n\t\t{\n\t\t\tcurrentVal.setText(\"Blackjack!\");\n\t\t\tdealerVal.setText(String.valueOf(calculateHand(dealersCards)));\n\t\t\tbet*=2;\n\t\t\tfor(int i=1;i<dealersCards.size();i++)\n\t\t\t\tdealerCardImg[i].setIcon(new ImageIcon(Gameplay.class.getResource(getCard(dealersCards.get(i)))));\n\t\t\twin();\n\t\t\tlblUpdate.setText(\"Blackjack! You win twice your bet!\");\n\t\t\tclearHands();\n\t\t\tbetting();\n\t\t}\n\t\telse if(result==2)\n\t\t{\n\t\t\tdealerVal.setText(\"Blackjack!\");\n\t\t\tfor(int i=1;i<dealersCards.size();i++)\n\t\t\t\tdealerCardImg[i].setIcon(new ImageIcon(Gameplay.class.getResource(getCard(dealersCards.get(i)))));\n\t\t\tlose();\n\t\t\tlblUpdate.setText(\"Dealer got a blackjack. You automatically lose.\");\n\t\t\tclearHands();\n\t\t\tbetting();\n\t\t}\n\t\telse if(result==3)\n\t\t{\n\t\t\tdealerVal.setText(\"Blackjack!\");\n\t\t\tcurrentVal.setText(\"Blackjack!\");\n\t\t\tlblUpdate.setText(\"You and the dealer got blackjacks! No money exchanges hands.\");\n\t\t\tfor(int i=1;i<dealersCards.size();i++)\n\t\t\t\tdealerCardImg[i].setIcon(new ImageIcon(Gameplay.class.getResource(getCard(dealersCards.get(i)))));\n\t\t\tpush();\n\t\t\tclearHands();\n\t\t\tbetting();\n\t\t}\n\t}",
"public boolean applyWinner(UUID winner) {\r\n\t\tPennyGame plugin = PennyGame.getPlugin(PennyGame.class);\r\n\t\tRegisteredServiceProvider<Economy> rsp = plugin.getServer().getServicesManager().getRegistration(Economy.class);\r\n\t\tEconomy econ = rsp.getProvider();\r\n\t\tOfflinePlayer player = Bukkit.getOfflinePlayer(winner);\r\n\t\t\r\n\t\tif(econ.depositPlayer(player, jackpot).transactionSuccess()) {\r\n\t\t\tthis.tickets.clear();\r\n\t\t\tplugin.getSettings().set(\"jackpot\", startingPot);\r\n\t\t\tplugin.getSettings().set(\"last-winner\", player.getName());\r\n\t\t\tplugin.getSettings().set(\"last-winner-sum\", jackpot);\r\n\t\t\tplugin.saveSettings();\r\n\t\t\tjackpot = startingPot;\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean checkEWaybillNoExceptPDAPending(String waybillNo) {\n\t\treturn true;\n\t}",
"@Override\n public boolean isReturn() {\n return true;\n }",
"private void registerBidConfirmationListener() {\n try {\n JavaSpace05 js = SpaceUtils.getSpace();\n U1467085Bid templateBid = new U1467085Bid();\n templateBid.bidderUserName = UserSession.getInstance().username;\n MatchSet allMyBids = js.contents(Collections.singleton(templateBid), null, SpaceUtils.TIMEOUT, Integer.MAX_VALUE);\n allPossibleConfirmations = new ArrayList<>();\n for (U1467085Bid i = (U1467085Bid) allMyBids.next(); i != null; i = (U1467085Bid) allMyBids.next()) {\n try {\n U1467085Bid finalI = i;\n if (i.verifySignature(UserSession.getInstance().pubKey) &&\n allPossibleConfirmations.stream().noneMatch(o -> o.adId == finalI.adId)) {\n U1467085BidConfirmation orderTemplate = new U1467085BidConfirmation();\n orderTemplate.adId = i.adId;\n allPossibleConfirmations.add(orderTemplate);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n if (allPossibleConfirmations.size() > 0)\n EventRegistration = js.registerForAvailabilityEvent(allPossibleConfirmations, null, false, Listener, SpaceUtils.LONGLEASE, null);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"boolean hasReturnFlightLeg();",
"private static void checkForOppositeAlreadyPlacedOrders(Stock stock,\n List<Order> oppositeAlreadyPlacedOrders,\n Order arrivedOrder,\n AtomicBoolean arrivedOrderWasTreated,\n AtomicLong serialTime) {\n for (Iterator<Order> it = oppositeAlreadyPlacedOrders.iterator();\n it.hasNext(); ) {\n Order oppositeAlreadyPlacedOrder = it.next();\n\n /*\n * check if the 'arrivedOrder' is a 'Sell' Order.\n * compare orders: if 'buy' >= 'sell':\n */\n if (checkForOppositeBuyAlreadyPlacedOrders(stock, arrivedOrder, it,\n oppositeAlreadyPlacedOrder, arrivedOrderWasTreated,\n serialTime)) {}\n\n /*\n * check if the 'arrivedOrder' is a 'Buy' Order.\n * compare orders: if 'buy' >= 'sell':\n */\n else if (checkForOppositeSellAlreadyPlacedOrders(stock,\n arrivedOrder, it, oppositeAlreadyPlacedOrder,\n arrivedOrderWasTreated, serialTime)) {}\n\n /*\n * we found that there are no matching 'opposite already placed' Orders,\n * so we do not make a Transaction,\n * and the 'arrived' Order stays as it was in the data-base.\n */\n }\n }",
"@Override\n\tpublic int checkBill(MarketTransaction t) {\n\t\treturn 0;\n\t}",
"private void handleUnbooking() {\n\t\ttry {\n\t\t\tint recNo = table.getSelectedRow();\n\t\t\tif(recNo == -1){\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcontroller.unreserveRoom(recNo);\n\t\t\t\n\t\t\tupdateTable(nameSearchBar.getText(), locationSearchBar.getText());\n\t\t} catch (BookingServiceException bse) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel,\n\t\t\t\t\t\"Record has not been booked!\");\n\t\t} catch (ServiceUnavailableException sue) {\n\t\t\tJOptionPane.showMessageDialog(null, sue.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t}",
"public ArrayList<Bike> getAllAvailableBikes() {\n bikelist = new ArrayList<>();\n \n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_AVAILABLE_BIKES);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n Bike bike = getBikeFromRS(rs);\n bikelist.add(bike);\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return bikelist;\n }",
"public void confirmBooking(){\n double ticketPrice = 56.0;\n double mealPrice = 30.0;\n if (student || child )\n ticketPrice = ticketPrice/2;\n else\n ticketPrice = ticketPrice*0.8;\n \n if (child )\n mealPrice = mealPrice/2;\n else\n mealPrice = mealPrice*0.9;\n double totalPrice = ticketPrice + mealPrice;\n System.out.println(getName()+\"\\nTicket price:$\"+ticketPrice+\"\\nMeal Price:$\"+mealPrice+\"\\nTotal price:$\"+totalPrice+\"\\nConfirm booking for \"+getName()+\" (Y/N)\");\n setBooked();\n System.out.println(getBooked()+\"\\n\\n\");\n }",
"@Override\n\tpublic synchronized final <V extends Value<V>> boolean register(\n\t\t\tfinal MarketTaker<V> taker) {\n\n\t\tif (!RegTaker.isValid(taker)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tRegTaker<?> regTaker = takerMap.get(taker);\n\n\t\tfinal boolean wasAdded = (regTaker == null);\n\n\t\twhile (regTaker == null) {\n\t\t\tregTaker = new RegTaker<V>(taker);\n\t\t\ttakerMap.putIfAbsent(taker, regTaker);\n\t\t\tregTaker = takerMap.get(taker);\n\t\t}\n\n\t\tif (wasAdded) {\n\t\t\tfinal Set<MarketDo> ms = new HashSet<MarketDo>();\n\t\t\tfor (final MarketInstrument inst : regTaker.getInstruments()) {\n\n\t\t\t\tif (!isValid(inst)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (!isRegistered(inst)) {\n\t\t\t\t\tregister(inst);\n\t\t\t\t}\n\n\t\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\t\tmarket.runSafe(safeRegister, regTaker);\n\n\t\t\t\tms.add(market);\n\n\t\t\t}\n\t\t\t\n\t\t\tnotifyRegListeners(ms);\n\t\t} else {\n\t\t\tlog.warn(\"already registered : {}\", taker);\n\t\t}\n\n\t\treturn wasAdded;\n\n\t}"
] | [
"0.69415873",
"0.5955853",
"0.5877854",
"0.57911396",
"0.5774199",
"0.5717972",
"0.5714513",
"0.5643128",
"0.5637345",
"0.5571804",
"0.5534776",
"0.54701835",
"0.5461857",
"0.5460093",
"0.5453418",
"0.5451151",
"0.5410774",
"0.5391291",
"0.5364659",
"0.5351854",
"0.5347959",
"0.5327863",
"0.5317859",
"0.52956706",
"0.5283027",
"0.5282208",
"0.5279635",
"0.52776265",
"0.5272512",
"0.52685905",
"0.5266705",
"0.52604985",
"0.52600306",
"0.52510554",
"0.5240749",
"0.5238738",
"0.5225349",
"0.52225083",
"0.5207369",
"0.5192883",
"0.5169893",
"0.5169882",
"0.51656294",
"0.51462275",
"0.5142073",
"0.5118344",
"0.5109125",
"0.5094409",
"0.50877416",
"0.5082539",
"0.50733465",
"0.50638163",
"0.5063013",
"0.50616384",
"0.50593776",
"0.5056168",
"0.50397396",
"0.50394106",
"0.50302047",
"0.5026971",
"0.5023823",
"0.5020739",
"0.501585",
"0.50104463",
"0.50085837",
"0.50027895",
"0.50001603",
"0.49939635",
"0.49841702",
"0.49826005",
"0.4978803",
"0.49787864",
"0.4975105",
"0.4974866",
"0.49704158",
"0.49651882",
"0.49547014",
"0.4951366",
"0.49475205",
"0.4947412",
"0.49441525",
"0.494392",
"0.49383587",
"0.49324846",
"0.49300617",
"0.49231908",
"0.49224037",
"0.49216482",
"0.49118122",
"0.4909291",
"0.49046752",
"0.49016306",
"0.49011788",
"0.48999736",
"0.48973387",
"0.48973286",
"0.48902145",
"0.48889166",
"0.48875737",
"0.48853698"
] | 0.75504977 | 0 |
/ Check if the return from a partner provider to the original provider is possible. Therefore, we first book a quote, register the partner provider as a partner, and then call registerReturn() from the partner provider to return the bikes. We then carry out pickups and dropoffs, and finally check if the bikes from the booking are back in our available bike array. | @Test
public void testDeliveryReturn() {
//Set up use case
this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,
this.customer.getLocation(),
true);
Quote chosenQuote = this.quotes.get(0);
Provider originalProvider = chosenQuote.provider;
Provider partner = this.provider2;
partner.addPartner(originalProvider); //register partnership
Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);
Booking booking = BookingController.getBooking(orderInfo.getOrderNumber());
ArrayList<Bike> bookedBikes = booking.bikes;
//deliver bikes to client
deliveryService.carryOutPickups(this.bookingDate);
deliveryService.carryOutDropoffs();
//register return at partner provider
assertTrue(partner.registerReturn(orderInfo.getOrderNumber()));
deliveryService.carryOutPickups(LocalDate.now()); //carryout pickups on date when returned
deliveryService.carryOutDropoffs(); //carry out dropoffs
originalProvider.checkForDropoffs(); // check for dropoffs
ArrayList<Bike> availableBikes = new ArrayList<>();
for (BikeTypes type : originalProvider.getOwnedBikes().keySet()) {
availableBikes.addAll(originalProvider.getAvailableBikesOfType(type));
}
for (Bike bike : bookedBikes) {
assertTrue(availableBikes.contains(bike));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testReturnOriginal() {\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n false);\n Quote chosenQuote = this.quotes.get(0);\n ArrayList<Bike> availableBikesProvider = new ArrayList<>();\n Provider originalProvider = chosenQuote.provider;\n\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n ArrayList<Bike> bookedBikes = BookingController.getBooking(orderInfo.getOrderNumber()).bikes;\n assertTrue(originalProvider.registerReturn(orderInfo.getOrderNumber()));\n for (BikeTypes type : originalProvider.getOwnedBikes().keySet()) {\n availableBikesProvider.addAll(originalProvider.getAvailableBikesOfType(type));\n }\n for (Bike bike : bookedBikes) {\n assertTrue(availableBikesProvider.contains(bike));\n }\n }",
"@Test\n public void testWrongPartner() {\n /* Set up scenario. As one might see, no partnership was registered hence we throw an\n error.\n */\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n true);\n Quote chosenQuote = this.quotes.get(0);\n Provider originalProvider = chosenQuote.provider;\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n deliveryService.carryOutPickups(this.bookingDate);\n deliveryService.carryOutDropoffs();\n assertThrows(AssertionError.class, () ->\n {\n this.provider2.registerReturn(orderInfo.getOrderNumber());\n });\n }",
"public boolean applyWinner(UUID winner) {\r\n\t\tPennyGame plugin = PennyGame.getPlugin(PennyGame.class);\r\n\t\tRegisteredServiceProvider<Economy> rsp = plugin.getServer().getServicesManager().getRegistration(Economy.class);\r\n\t\tEconomy econ = rsp.getProvider();\r\n\t\tOfflinePlayer player = Bukkit.getOfflinePlayer(winner);\r\n\t\t\r\n\t\tif(econ.depositPlayer(player, jackpot).transactionSuccess()) {\r\n\t\t\tthis.tickets.clear();\r\n\t\t\tplugin.getSettings().set(\"jackpot\", startingPot);\r\n\t\t\tplugin.getSettings().set(\"last-winner\", player.getName());\r\n\t\t\tplugin.getSettings().set(\"last-winner-sum\", jackpot);\r\n\t\t\tplugin.saveSettings();\r\n\t\t\tjackpot = startingPot;\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private boolean checkBrokers ()\n {\n if (game.getAgentMap().size() < 1) {\n log.info(String.format(\"Game: %s (round %s) reports no brokers \"\n + \"registered\",\n game.getGameId(), game.getRound().getRoundId()));\n return false;\n }\n\n for (Agent agent: game.getAgentMap().values()) {\n Broker broker = agent.getBroker();\n // Check if any broker is disabled in the interface\n if (!MemStore.getBrokerState(broker.getBrokerId())) {\n log.info(String.format(\"Not starting game %s : broker %s is disabled\",\n game.getGameId(), broker.getBrokerId()));\n return false;\n }\n\n // Check if any broker is already running the maxAgent nof agents\n if (!broker.hasAgentsAvailable(game.getRound())) {\n log.info(String.format(\"Not starting game %s : broker %s doesn't have \"\n + \"enough available agents\",\n game.getGameId(), broker.getBrokerId()));\n return false;\n }\n\n brokers += broker.getBrokerName() + \"/\" + agent.getBrokerQueue() + \",\";\n }\n brokers = brokers.substring(0, brokers.length() - 1);\n return true;\n }",
"private void carsReadyToLeave() {\n\t\tCar car = getFirstLeavingCar();\n\t\twhile (car != null) {\n\t\t\tif (car.getHasToPay()) {\n\t\t\t\tcar.setIsPaying(true);\n\t\t\t\tpaymentCarQueue.addCar(car);\n\t\t\t} else {\n\t\t\t\tcarLeavesSpot(car);\n\t\t\t}\n\t\t\tcar = getFirstLeavingCar();\n\t\t}\n\t}",
"private void carsReadyToLeave(){\n\t\t\tCar car = getFirstLeavingCar();\r\n\t\t\twhile (car!=null) {\r\n\t\t\t\tif (car.getHasToPay()){\r\n\t\t\t\t\tcar.setIsPaying(true);\r\n\t\t\t\t\tpaymentCarQueue.addCar(car);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tcarLeavesSpot(car);\r\n\t\t\t\t}\r\n\t\t\t\tcar = getFirstLeavingCar();\r\n\t\t\t}\r\n\t\t}",
"private boolean setupEconomy() {\n if (getServer().getPluginManager().getPlugin(\"Vault\") == null) {\n return false;\n }\n RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);\n if (rsp == null) {\n return false;\n }\n econ = rsp.getProvider();\n return econ != null;\n }",
"private boolean setupEconomy() {\n\t\tRegisteredServiceProvider<Economy> economyProvider = getServer().getServicesManager()\n\t\t\t\t.getRegistration(net.milkbowl.vault.economy.Economy.class);\n\t\tif (economyProvider != null)\n\t\t\teconomy = economyProvider.getProvider();\n\t\t\n\t\treturn (economy != null);\n\t}",
"private void carsReadyToLeave(){\n\t Car car = cpview.getFirstLeavingCar();\n\t while (car!=null) {\n\t \tif (car.getHasToPay()){\n\t\t car.setIsPaying(true);\n\t\t paymentCarQueue.addCar(car);\n\t \t}\n\t \telse {\n\t \t\tcarLeavesSpot(car);\n\t \t}\n\t car = cpview.getFirstLeavingCar();\n\t }\n\t }",
"@Test\r\n\tpublic void testDoReturnChromebook() {\n\r\n\t\tResourceCentre.addChromebook(chromebookList, cb1);\r\n\t\tResourceCentre.addChromebook(chromebookList, cb2);\r\n\r\n\t\t// Item list is not null, newly added item cannot be returned successfully.\r\n\t\tassertNotNull(\"Test that list is not null\", chromebookList);\r\n\t\tassertFalse(\"Test that item cannot be returned if not loaned\",\r\n\t\t\t\tResourceCentre.doReturnChromebook(chromebookList, \"CB0011\"));\r\n\r\n\t\t// Item can be returned successfully, when loaned out.\r\n\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\");\r\n\t\tassertTrue(\"Test that item can be returned when loaned out.\",\r\n\t\t\t\tResourceCentre.doReturnChromebook(chromebookList, \"CB0011\"));\r\n\r\n\t\t// Item can be loaned again and returned successfully\r\n\t\tassertTrue(\"Test that item can be loaned again when returned.\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\"));\r\n\t\tassertTrue(\"Test that item can be returned when reloaned.\",\r\n\t\t\t\tResourceCentre.doReturnChromebook(chromebookList, \"CB0011\"));\r\n\r\n\t\t// Another item loaned out, can be returned successfully.\r\n\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0012\", \"01/01/2010\");\r\n\t\tassertTrue(\"Test that other loaned items can be returned.\",\r\n\t\t\t\tResourceCentre.doReturnChromebook(chromebookList, \"CB0012\"));\r\n\r\n\t}",
"public boolean canTrade()\n\t{\n\t\treturn System.currentTimeMillis() - m_lastTrade > 60 * 1000 && getPartyCount() >= 2;\n\t}",
"@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean rejectPartner(Partner partner) {\n\t\treturn false;\n\t}",
"@Override\n public boolean isBoatOnTheLeftBank() {\n return false;\n }",
"public boolean pickAndExecuteAnAction() {\n\t\ttry{\n\t\t\tsynchronized(waiters){\n\t\t\t\tfor (MyWaiter waiter : waiters) {\n\t\t\t\t\tif (waiter.state == MyWaiter.WaiterState.askingForBreak && waiters.size() > 1) {\n\t\t\t\t\t\tDo(\"Break granted\");\n\t\t\t\t\t\twaiter.w.msgBreakGranted();\n\t\t\t\t\t\twaiters.remove(waiter);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tboolean hasEmptyTable = false;\n\t\t\tsynchronized(tables){\n\t\t\t\tfor (Table table : tables) {\n\t\t\t\t\tif (!table.isOccupied()) {\n\t\t\t\t\t\thasEmptyTable = true;\n\t\t\t\t\t\tsynchronized(waitingCustomers){\n\t\t\t\t\t\t\tfor (MyCustomer customer : waitingCustomers) {\n\t\t\t\t\t\t\t\tif (waiters.size() != 0){\n\t\t\t\t\t\t\t\t\tif (customer.state == MyCustomer.CustomerState.waiting ||\n\t\t\t\t\t\t\t\t\t\t\tcustomer.state == MyCustomer.CustomerState.staying) {\n\t\t\t\t\t\t\t\t\t\tseatCustomer(customer.customer, table, customer.count);\n\t\t\t\t\t\t\t\t\t\twaitingCustomers.remove(customer);\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!hasEmptyTable){\n\t\t\t\tsynchronized(waitingCustomers){\n\t\t\t\t\tfor (MyCustomer customer : waitingCustomers){\n\t\t\t\t\t\tif(customer.state == MyCustomer.CustomerState.waiting){\n\t\t\t\t\t\t\tcustomer.customer.msgNoSeat();\n\t\t\t\t\t\t\tcustomer.state = MyCustomer.CustomerState.deciding;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ConcurrentModificationException e){\n\t\t\treturn false;\n\t\t}\n\n\t\treturn false;\n\t\t//we have tried all our rules and found\n\t\t//nothing to do. So return false to main loop of abstract agent\n\t\t//and wait.\n\t}",
"protected boolean pickAndExecuteAnAction() {\n\t//print(\"in waiter scheduler\");\n\t//Starts the break cycle if onBreak == true\n\tif(onBreak && working ) {\n\t initiateBreak();\n\t return true;\n\t}\n\n\t//Once all the customers have been served\n\t//then the waiter can actually go on break\n\tif(!working && customers.isEmpty() && !startedBreak) {\n\t goOnBreak();\n\t return true;\n\t}\n\n\tif(!onBreak && !working){\n\t endBreak();\n\t}\n\n\t\n\t//Runs through the customers for each rule, so \n\t//the waiter doesn't serve only one customer at a time\n\tif(!customers.isEmpty()){\n\t //System.out.println(\"in scheduler, customers not empty:\");\n\t //Gives food to customer if the order is ready\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.ORDER_READY) {\n\t\t giveFoodToCustomer(c);\n\t\t return true;\n\t\t}\n\t }\n\t //Clears the table if the customer has left\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.IS_DONE) {\n\t\t clearTable(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Seats the customer if they need it\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.NEED_SEATED){\n\t\t seatCustomer(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Gives all pending orders to the cook\n\t for(MyCustomer c:customers){\n\t\tif(c.state == CustomerState.ORDER_PENDING){\n\t\t giveOrderToCook(c);\n\t\t return true;\n\t\t}\n\t }\n\n\t //Takes new orders for customers that are ready\n\t for(MyCustomer c:customers){\n\t\t//print(\"testing for ready to order\"+c.state);\n\t\tif(c.state == CustomerState.READY_TO_ORDER) {\n\t\t takeOrder(c);\n\t\t return true;\n\t\t}\n\t }\t \n\t}\n\tif (!currentPosition.equals(originalPosition)) {\n\t moveToOriginalPosition();\n\t return true;\n\t}\n\n\t//we have tried all our rules and found nothing to do. \n\t// So return false to main loop of abstract agent and wait.\n\t//print(\"in scheduler, no rules matched:\");\n\treturn false;\n }",
"public void matchBets(MarketRunners marketRunners);",
"public boolean isBenefitAvailableFor(Account account, Dining dining);",
"protected boolean holdSeats(List<Seat> holdSeats) throws TicketServiceException {\n\t\tboolean holdSuccess = true;\n\t\tList<Seat> tempSeats = new ArrayList<Seat>(holdSeats);\n\t\tfor (Seat availSeat : holdSeats) {\n\t\t\tif (ticketServiceDAO.makeSeatUnavailable(availSeat.getSeatId()) == null) {\n\t\t\t\t// Targeted seat could not be found in available seat table\n\t\t\t\t// So reverting the transactions by adding all previously held\n\t\t\t\t// seats back to availSeats table\n\t\t\t\tholdSuccess = false;\n\t\t\t\tfor (Seat tempSeat : tempSeats) {\n\t\t\t\t\tticketServiceDAO.makeSeatAvailable(tempSeat);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttempSeats.add(availSeat);\n\t\t}\n\t\treturn holdSuccess;\n\t}",
"public boolean considerExit() {\n\t\tboolean testing=false; \n//\t\ttesting=world.gui.retailerDetail_table2c.retailer==this;\n\t\tdouble aSumPayRate=0; // the sum of the earnings per effective labor unit, calculated for all the retailer's friends\n\t\tint aFriends=0; // the total number of the agent's friends who are non-retailers\n\t\tfor (Agent friend: owner.friends) {\n\t\t\tif (friend.enterprises.size()==0) {\n\t\t\t\taFriends++;\n\t\t\t\tDouble earnings=0.0;\n\t\t\t\tDouble marketLabor=0.0;\n\t\t\t\tif (friend.earned!=null) {\n\t\t\t\t\tfor (int i=0; i<friend.earned.length; i++) {\n\t\t\t\t\t\tif (friend.earned[i]>0) {\n\t\t\t\t\t\t\tearnings=earnings+friend.earned[i]; // Add up everything the friend earned\n\t\t\t\t\t\t\tmarketLabor=marketLabor+Math.max(0, friend.labor.labor[i]-friend.cons.used[i]); // Add up market labor, i.e., labor on goods he sold, minus the amounts he consumed\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (marketLabor>0) aSumPayRate=aSumPayRate+earnings/marketLabor;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tDouble aAvgPayRate=aSumPayRate/aFriends;\n\t\tif (testing==true) System.out.println(\"TESTING Retailer.considerExit(). Retailer id=\"+id+\". aAvgPayRate=\"+aAvgPayRate);\n\t\tif (dividendHistory.size()>3) {\n\t\t\tdouble ownEarnings3Turns=0;\n\t\t\tfor (int i=0; i<3; i++) {\n\t\t\t\tint turn=dividendHistory.size()-1-i;\n\t\t\t\tdouble dividend=dividendHistory.get(turn);\n\t\t\t\tdouble capValue=cashHistory.get(turn)+basePrice*inventoryHistory.get(turn);\n\t\t\t\tdouble prevCapValue=cashHistory.get(turn-1)+basePrice*inventoryHistory.get(turn-1);\n\t\t\t\tdouble earnings=dividend+capValue-prevCapValue;\n\t\t\t\townEarnings3Turns=ownEarnings3Turns+earnings;\n\t\t\t}\n\t\t\tDouble ownPayRate=ownEarnings3Turns/3;\n\t\t\tDouble logOwnPayRate=Double.NEGATIVE_INFINITY;\n\t\t\tif (ownPayRate>0) logOwnPayRate=Math.log(ownPayRate);\n\t\t\tDouble logAvgPayRate=Math.log(aAvgPayRate);\n\t\t\tDouble increment=0.5+0.5*logAvgPayRate-0.5*logOwnPayRate;\n\t\t\tif (increment.isNaN()) increment=0.0;\n\t\t\tif (increment>world.MAX_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_LOW_PAY) \n\t\t\t\tincrement=world.MAX_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_LOW_PAY;\n\t\t\tif (increment<world.MIN_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_HIGH_PAY) \n\t\t\t\tincrement=world.MIN_RETAILER_EXIT_PROB_INCREMENT_DUE_TO_HIGH_PAY;\n\t\t\toddsOfExit=oddsOfExit+increment;\n\t\t\tif (testing==true) System.out.println(\"TESTING Retailer.considerExit(). Retailer id=\"+id+\". ownPayRate=\"+ownPayRate);\n\t\t}\n\t\t// If the retailer has been out of inventory for three turns or more, \n\t\t// the likelihood of the retailer quitting rises by RETAILER_EXIT_PROB_INCREMENT_DUE_TO_NO_SALES\n\t\tif (incomeHistory.size()>3) {\n\t\t\tboolean threeTurnsNegligibleSales=true;\n\t\t\tfor (int i=0; i<3; i++) {\n\t\t\t\tDouble income=incomeHistory.get(incomeHistory.size()-1-i);\n\t\t\t\tif (income>0.0001) threeTurnsNegligibleSales=false;\n\t\t\t}\n\t\t\tif (threeTurnsNegligibleSales) oddsOfExit=oddsOfExit+world.RETAILER_EXIT_PROB_INCREMENT_DUE_TO_NO_SALES;\t\t\t\n\t\t}\n\t\tif (testing) System.out.println(\"oddsOfExit=\"+oddsOfExit);\n\t\tif (oddsOfExit<world.MIN_RETAILER_EXIT_PROB) oddsOfExit=world.MIN_RETAILER_EXIT_PROB;\n\t\tif (oddsOfExit>world.MAX_RETAILER_EXIT_PROB) oddsOfExit=world.MAX_RETAILER_EXIT_PROB; // Maximum 50% odds of exit based on lower earnings\n\t\tboolean exit=Math.random()<oddsOfExit;\n\t\tif (exit) exit();\n\t\treturn exit;\n\t}",
"private boolean checkIfTransactionIsPossible(Account sender, Account receiver){\n if ((sender.getType() == Account.TypeEnum.SAVING) || (receiver.getType() == Account.TypeEnum.SAVING) ){\n // one cannot directly transfer from a savings account to an account that is not of the same customer\n if (sender.getOwnerId() == receiver.getOwnerId()) {\n if (!sender.getIBAN().equals(receiver.getIBAN())) {\n return true;\n } else {\n throw new IllegalArgumentException(\"Accounts sender and receiver cannot be the same account\");\n }\n } else {\n throw new IllegalArgumentException(\"Saving Accounts sender or receiver cannot belong to different customers\");\n }\n }\n //if senderAccount is Checking, can send money to other checking account or his own saving account\n else if(sender.getType() == Account.TypeEnum.CHECKING){\n if (!sender.getIBAN().equals(receiver.getIBAN())) {\n return true;\n } else {\n throw new IllegalArgumentException(\"Accounts sender and receiver cannot be the same account\");\n }\n }\n return false;\n }",
"private void checkIfWon() {\r\n\r\n Car temp;\r\n int carInList;\r\n input = new Scanner(System.in);\r\n\r\n System.out.println(\"Which vehicle did you bid on?\");\r\n cars.getListings();\r\n\r\n double winningBid = rng(1, 5000);\r\n\r\n carInList = input.nextInt();\r\n temp = cars.getCar(carInList);\r\n\r\n if (winningBid <= 1000) {\r\n System.out.println(\"You have won the bid! Congratulations!\");\r\n } else {\r\n System.out.println(\"I'm sorry, the selling price was $\" + (int) winningBid + \" above your bid\");\r\n }\r\n removeYourCar(temp);\r\n\r\n }",
"private void checkBuyCard(PropertyCard card) {\n\t\tboolean almostComplete = checkCollection(this, card);\n\t\tif(almostComplete) {\n\t\t\tboolean boughtCard = buyCard(card);\n\t\t\tif(!boughtCard) {\n\t\t\t\tboolean madeChanges = checkPayment(card.getPrice());\n\t\t\t\tif(madeChanges) {\n\t\t\t\t\tbuyCard(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tboolean opponentAlmostComplete = false;\n\t\t\tfor(Player p: getPlayers()) {\n\t\t\t\tif(checkCollection(p,card)) {\n\t\t\t\t\topponentAlmostComplete = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(opponentAlmostComplete) {\n\t\t\t\tbuyCard(card);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(getMoney()-card.getPrice()>=100) {\n\t\t\t\t\tbuyCard(card);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"boolean hasAdvertisingPartner();",
"public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }",
"public synchronized void checkIn(int bookTaken, int id){\n \tint returnBook = bookTaken;\n \t\n \t//if else clause to return the correct book\n \tif(returnBook == 0){\n \t\tA.setAvailable(true);\n \t}\n \telse if(returnBook == 1){\n \t\tB.setAvailable(true);\n \t}\n \telse if(returnBook == 2){\n \t\tC.setAvailable(true);\n \t}\n \telse if(returnBook == 3){\n \t\tD.setAvailable(true);\n \t}\n \telse if(returnBook == 4){\n \t\tE.setAvailable(true);\n \t}\n \t\n \t\n \t//notify the waiting clients that a book as been returned\n \tnotifyAll();\n }",
"public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }",
"private void checkSecondPriceAuctions() {\n\n // Get all auctions of according type.\n TypedQuery<Auction> auctionByTypeQuery = getAuctionByTypeQuery(AuctionType.SECOND_PRICE);\n List<Auction> secondPriceResultList = auctionByTypeQuery.getResultList();\n\n // Get current timestamp for comparison.\n DateTime now = new DateTime(DateTimeZone.forID(\"Europe/Berlin\"));\n Date nowDate = now.toDate();\n\n // Filter all auctions that have timed out.\n List<Auction> timeoutSecondPriceAuctions = secondPriceResultList\n .stream()\n .filter(auction -> nowDate.compareTo(auction.getEndTime()) == 1 && auction.isRunning()).collect(Collectors.toList());\n\n // Check if there are any auction that have timed out.\n if (timeoutSecondPriceAuctions.size() > 0) {\n\n for (Auction auction : timeoutSecondPriceAuctions) {\n\n // Stop auction and get its bidders.\n auction.setRunning(false);\n List<Bid> auctionBids = new ArrayList<>();\n List<Bidder> bidder = auction.getBidder();\n\n // Continue only if there are any bidders.\n if (bidder.size() > 0) {\n\n for (Bidder bidderElem : bidder) {\n auctionBids.addAll(bidderElem.getBids());\n }\n\n // Find winner only if registered bidders have bidden.\n if (auctionBids.size() > 0) {\n\n // Sort bids ascending according to their value.\n auctionBids.sort(new BidComperator());\n Bid winningBid = auctionBids.get(0);\n\n // If there is only one bid the bidder has to pay the price\n // originally entered by the article owner, which is basically the second highest\n // amount possible.\n BigDecimal priceToPay = null;\n if (auctionBids.size() == 1) {\n priceToPay = auction.getPrice();\n } else {\n // If there is more than one bid, the winner is still the bidder with\n // the highest bid, but the price he has to pay is the second highest bid.\n priceToPay = auctionBids.get(1).getAmount();\n }\n\n // Get user from Liferay to have access to user related data such as name and mail address.\n long winningUserId = winningBid.getBidder().getUserId();\n try {\n\n User userById = UserLocalServiceUtil.getUserById(winningUserId);\n AuctionResult auctionResult = new AuctionResult();\n auctionResult.setDescription(auction.getArticle().getShortDesc());\n auctionResult.setPrice(priceToPay);\n auctionResult.setFirstName(userById.getFirstName());\n auctionResult.setSurname(userById.getLastName());\n auctionResult.setMail(userById.getEmailAddress());\n auctionResult.setAuctionType(auction.getAuctionType());\n entityManager.persist(auctionResult);\n } catch (Exception e) {\n\n entityManager.getTransaction().rollback();\n }\n }\n }\n }\n }\n }",
"public static boolean processBidding() {\r\n\t\tboolean done = true;\r\n\t\t\r\n\t\t//Check if all the choice boxes have been selected.\r\n\t\tif (FrameUtils.player1Bid.getSelectedIndex() == -1\r\n\t\t\t\t|| FrameUtils.player1Bid.getSelectedIndex() == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (FrameUtils.player2Bid.getSelectedIndex() == -1\r\n\t\t\t\t|| FrameUtils.player2Bid.getSelectedIndex() == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\tif (FrameUtils.player3Bid.getSelectedIndex() == -1\r\n\t\t\t\t|| FrameUtils.player3Bid.getSelectedIndex() == 0) {\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Don't check fourth player if playing three handed game.\r\n\t\tif (!Main.isThreeHanded) {\r\n\t\t\tif (FrameUtils.player4Bid.getSelectedIndex() == -1\r\n\t\t\t\t\t|| FrameUtils.player4Bid.getSelectedIndex() == 0) {\r\n\t\t\t\tdone = false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!done) FrameUtils.showDialogBox(\"An incorrect bid was made.\");\r\n\t\t\r\n\t\t//Save bid data.\r\n\t\tsaveBidData();\r\n\t\t\t\r\n\t\treturn done;\r\n\t}",
"boolean hasBidresponse();",
"protected boolean shouldHoldEncumbrance() {\n if (getTripEnd() == null) {\n return false; // we won't hold encumbrances if we don't know when the trip is ending\n }\n final java.sql.Date tripEnd = new java.sql.Date(getTripEnd().getTime());\n return getTravelEncumbranceService().shouldHoldEntries(tripEnd);\n\n }",
"public boolean canDoBuyRoad(){\n\t\t // If the player doesn't have resources for a road, or has already played all his roads, he can't buy another\n\t\t if(resourceCardHand.canDoPayForRoad() == false || playerPieces.hasAvailableRoad() == false) {\n\t\t\t return false;\n\t\t }\n\t\t if(playerPieces.getNumberOfRoads() > 13){\n\t\t\t return true;\n\t\t }\n\t\t // If the player has no legal place to put a road on the map, he shouldn't be allowed to buy one.\n\t\t if(playerPieces.canPlaceARoadOnTheMap() == false) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }",
"private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }",
"protected boolean processPlayerOfferedTakeback(int gameNum, String playerName, int takebackCount){\n return false;\n }",
"boolean canAcceptTrade();",
"public abstract boolean isAcceptable(Bid plannedBid);",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"private static boolean checkForOppositeBuyAlreadyPlacedOrders(Stock stock,\n Order arrivedOrder,\n Iterator<Order> it,\n Order oppositeAlreadyPlacedOrder,\n AtomicBoolean arrivedOrderWasTreated,\n AtomicLong serialTime) {\n if ((oppositeAlreadyPlacedOrder.getOrderDirection() ==\n OrderDirection.BUY) &&\n (oppositeAlreadyPlacedOrder.getDesiredLimitPrice() >=\n arrivedOrder.getDesiredLimitPrice())) {\n\n // only if the 'arrivedOrder' wasn't removed from the data-base yet:\n checkForOppositeAlreadyPlacedOrders_DependencyOnDirection(stock,\n arrivedOrder, it, oppositeAlreadyPlacedOrder,\n stock.getDataBase().getAwaitingSellOrders().getCollection(),\n arrivedOrderWasTreated, serialTime);\n return true;\n } else {return false;}\n }",
"public void waitingForPartner();",
"public boolean checkAndFreezeFunds (int secretKey, double proposedFreeze) {\n\n int theBankAccountNumber;\n // use AccountLink and secret key to get actual Bank Account number\n AccountLink theAccountLink = hashMapOfSecretKeys.get(secretKey);\n if ( theAccountLink != null ) {\n theBankAccountNumber = theAccountLink.getAGENT_ACCOUNT_NUMBER();\n } else {\n return false;\n }\n // use account number to get full BankAccount\n BankAccount theBankAccount =\n hashMapOfAllAccts.get(theBankAccountNumber);\n\n // ask BankAccount to check and (if possible) freeze the amount\n boolean fundsFrozen = theBankAccount.checkAndFreeze(proposedFreeze);\n\n if (fundsFrozen) {\n updateBankDisplay();\n }\n\n return fundsFrozen;\n }",
"public boolean checkoutBooking() {\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tboolean bookUpdateSuccess = false;\r\n\r\n\t\t/**\r\n\t\t*\tSet the endTime as now\r\n\t\t*/\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(date.getTime());\r\n\r\n\t\t/**\r\n\t\t*\tCalculate the cost base on the time elapsed between the start time and end time\r\n\t\t*\tdurationMinutes = (difference b/w end and start time) / 1000 to convert millis to seconds / 60 to convert seconds to minutes\r\n\t\t*/\r\n\t\tlong start = startTime.getTime();\r\n\t\tlong end = endTime.getTime();\r\n\t\tlong durationMinutes = (end - start)/60000;\r\n\r\n\t\t/**\r\n\t\t*\tThe cost is set as Rs. 1.27 per minuteand hence will be calulated using durationMinutes\r\n\t\t* The cost will be calculated according to absolute minutes and no decimals will be considered there\r\n\t\t*/\r\n\t\tcost = durationMinutes * 1.27;\r\n\r\n\t\t/**\r\n\t\t*\tShow the cost and confirm to checkout.\r\n\t\t*/\r\n\t\tSystem.out.print(\"\\n\\tTotal cost calculated: \" + cost + \"\\n\\n\\t1. Confirm Checkout\\n\\t2. Cancel\\n\\t\\t>> \");\r\n\t\tint opt = scan.nextInt();\r\n\r\n\t\tswitch (opt) {\r\n\t\t\tcase 1: {\t//confirm checkout\r\n\t\t\t\t//do nothing and move ahead towards the checkout procedure\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2: {\t//Cancel\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tdefault: {\r\n\t\t\t\tSystem.out.println(\"Invalid Option\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and updating data (executeUpdateParklot())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection checkoutBookingConn = new DbConnection();\r\n\r\n\r\n\t\t\t/**\r\n\t\t\t*\tupdate the data in table\r\n\t\t\t*/\r\n\t\t\tbookUpdateSuccess = checkoutBookingConn.executeUpdateBooking(endTime, cost, bookingNo);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"No booking with the given booking number found.\");\r\n\t\t\t//SqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//validateConn.closeDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn bookUpdateSuccess;\r\n\t}",
"boolean CanOfferTrade(Resources offer);",
"@Test\n void checkBidAddedAfterSubscribeBidding(){\n tradingSystem.subscriberBidding(NofetID,NconnID,storeID,1,2950,1);\n boolean added=false;\n for (Bid b:store.getBids()\n ) {\n if(b.getProductID()==1&&b.getUserID()==NofetID&&b.getPrice()==2950&&b.getQuantity()==1){\n added=true;\n }\n }\n assertTrue(added);\n }",
"@Override\r\n\tpublic void acceptTrade(boolean willAccept) {\n\t\t\r\n\t}",
"public static boolean isBillToParty(String account, double invoiceAmount, String newBillToParty,\n\t String bsPcbCode, String pcb, String pcbCode, String bsBillToCode, String prevCnBillToParty,\n\t String shipper, String forwarder, String agent, String thirdParty) {\n\tString billToParty = invoiceAmount > 0 && account.equals(newBillToParty) ? newBillToParty\n\t\t: account.equals(prevCnBillToParty) ? prevCnBillToParty\n\t\t: ((\"B\".equals(bsPcbCode) && \"C\".equals(pcb)) || (\"P\".equals(bsPcbCode) && \"C\".equals(pcb)) || \"C\".equals(bsPcbCode)) ? agent\n\t\t: (((\"B\".equals(bsPcbCode) || \"B\".equals(pcbCode)) && \"P\".equals(pcb)) || \"P\".equals(pcbCode)) ? \"S\".equals(bsBillToCode) ? shipper\n\t\t: \"F\".equals(bsBillToCode) ? forwarder\n\t\t: \"T\".equals(bsBillToCode) ? thirdParty\n\t\t: \"\"\n\t\t: prevCnBillToParty;\n\treturn account.equals(billToParty);\n }",
"boolean hasReturnFlightLeg();",
"private boolean[] checkIfHandleBarge(Barge barge, int time) {\r\n\t\tboolean [] result={false, false};\r\n\t\t// if there is no other barge in the appointment list start handling\r\n\t\t// directly\r\n\r\n\t\tif (this.appointments.size() == 1) {\r\n\t\t\tPort.schedule.schedule(ScheduleParameters.createOneTime(time,\r\n\t\t\t\t\tScheduleParameters.LAST_PRIORITY), this, \"handleBarge\",\r\n\t\t\t\t\tbarge, time);\r\n\t\t\tresult[0]=true;\r\n\t\t\treturn result;\r\n\t\t} else {\r\n\t\t\t// we need the following information to check whether or not the\r\n\t\t\t// barge can start handling\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*Barge nextBargeInSchedule = (Barge) this.appointments.keySet().toArray()[0];\r\n\t\t\tBarge secondBargeInSchedule = (Barge) this.appointments.keySet().toArray()[1];*/\r\n\t\t\tint expectedEndTimeThisBarge = time+ barge.handlingTimes.get(barge.terminals.indexOf(this));\r\n\t\t\tint latThisBarge= this.appointments.get(barge)[0];\r\n\t\t\t//System.out.println(this.name+\" wants to check \"+barge+\" in this arrival list \"+this.actualArrival+\" and que= \"+this.queue);\r\n\t\t\tint actualArrive = this.actualArrival.get(barge);\r\n\t\t\t/*int lstNextAppointment = this.appointments.get(nextBargeInSchedule)[1];\r\n\t\t\tint lstSecondAppointment = this.appointments.get(secondBargeInSchedule)[1];*/\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//if next in schedule and it was not late\r\n\t\t\tif ((barge.equals(this.appointments.keySet().toArray()[0]) == true && latThisBarge >= actualArrive)) {\r\n\t\t\t\tthis.state=Terminal.HANDLING;\r\n\t\t\t\tPort.schedule.schedule(ScheduleParameters.createOneTime(\r\n\t\t\t\t\t\ttime, ScheduleParameters.LAST_PRIORITY), this,\r\n\t\t\t\t\t\t\"handleBarge\", barge, time);\r\n\t\t\t\tresult[0]=true;\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t//if next barge in schedule but it was late check to see if it is possible to handle it without interrupting other appointments\r\n\t\t\telse if ((barge.equals(this.appointments.keySet().toArray()[0]) == true && latThisBarge <= actualArrive)) {\r\n\t\t\t\tif (expectedEndTimeThisBarge <= this.appointments.get(this.appointments.keySet().toArray()[1])[1]){\r\n\t\t\t\t\tthis.state=Terminal.HANDLING;\r\n\t\t\t\t\tPort.schedule.schedule(ScheduleParameters.createOneTime(\r\n\t\t\t\t\t\t\ttime, ScheduleParameters.LAST_PRIORITY), this,\r\n\t\t\t\t\t\t\t\"handleBarge\", barge, time);\r\n\t\t\t\t\t\r\n\t\t\t\t\tresult[0]=true;\r\n\t\t\t\t\treturn result;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.queue.remove(barge);\r\n\t\t\t\t\tthis.appointments.remove(barge);\r\n\t\t\t\t\t//System.out.println(barge+\" removed from \"+this.name);\r\n\t\t\t\t\t//System.out.println(barge+\" removed from the \"+ this.name);\r\n\t\t\t\t\tif (Port.eventsToExcel.equals(\"Yes\")) {\r\n\t\t\t\t\t\tPort.stats\r\n\t\t\t\t\t\t\t\t.addEvent(\r\n\t\t\t\t\t\t\t\t\t\ttime,\r\n\t\t\t\t\t\t\t\t\t\tbarge.bargeNumber,\r\n\t\t\t\t\t\t\t\t\t\t(\"rejected at Terminal \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t+ this.toString() + \"due to delay\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// notify barge to calculate rotation again\r\n\t\t\t\t\tbarge.recalculateRotation(time);\r\n\t\t\t\t\tresult[0]=false;\r\n\t\t\t\t\tresult[1]=true;\r\n\t\t\t\t\treturn result;\t\t\t\t\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// if it is not the next one see if it is possible to service it without interrupting others\r\n\t\t\t//also if the next barge is late start this one\r\n\t\t\telse if ((barge.equals(this.appointments.keySet().toArray()[0]) == false && expectedEndTimeThisBarge <= this.appointments.get(this.appointments.keySet().toArray()[0])[1])\r\n\t\t\t\t\t||(barge.equals(this.appointments.keySet().toArray()[0]) == false && time > this.appointments.get(this.appointments.keySet().toArray()[0])[1])){\r\n\t\t\t\tthis.state=Terminal.HANDLING;\r\n\t\t\t\tPort.schedule.schedule(ScheduleParameters.createOneTime(\r\n\t\t\t\t\t\ttime, ScheduleParameters.LAST_PRIORITY), this,\r\n\t\t\t\t\t\t\"handleBarge\", barge, time);\r\n\t\t\t\tresult[0]=true;\r\n\t\t\t\treturn result;\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic boolean checkEWaybillNoExceptPDAPending(String waybillNo) {\n\t\treturn true;\n\t}",
"public void testBidAcceptionNotification() {\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n //owner.acceptBid(thing1, bid);\n //assertTrue(borrower.notifiedOfAcceptedBid(bid));\n\n assertTrue(false);\n }",
"public boolean canDoBuySettlement(){\n\t\t if(resourceCardHand.canDoPayForSettlement() == false || playerPieces.hasAvailableSettlement() == false) {\n\t\t\t return false;\n\t\t }\n\t\t // If the player does not have a valid place to put a settlement on the map, we won't let the player buy one\n\t\t if(playerPieces.canPlaceASettlementOnTheMap() == false) {\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }",
"@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n for(int i = 0; i < 25; i++) {\r\n Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n if(!loopCard.equals(firstDiscard)) {\r\n differentLegalCardFound = true;\r\n }\r\n }\r\n assertTrue(differentLegalCardFound);\r\n }",
"public boolean checkSellCardToPlayer(Player player, PropertyCard card, boolean almostComplete, int timesTried) {\n\t\tint priceToSell = 0;\n\t\tif(almostComplete) {\n\t\t\tif(timesTried==0) {\n\t\t\t\tpriceToSell = card.getPrice()*2;\n\t\t\t}\n\t\t\telse if(timesTried==1){\n\t\t\t\tpriceToSell = (int) Math.floor(card.getPrice()*1.5);\n\t\t\t}\n\t\t\telse if(timesTried==2) {\n\t\t\t\tpriceToSell = (int) Math.floor(card.getPrice()*1.25);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpriceToSell = card.getPrice();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif(timesTried==0) {\n\t\t\t\tpriceToSell = (int) Math.floor(card.getPrice()*1.25);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpriceToSell = (int) Math.floor(card.getPrice());\n\t\t\t}\n\t\t}\n\t\t\n\t\tint choice =-1;\n\t\tboolean soldCard = false;\n\t\tif(player.getType().equals(\"HumanPlayer\")) {\n\t\t\tchoice = JOptionPane.showConfirmDialog(null, player.getName() + \" do you want to buy \" + card.getName() + \" for \" +priceToSell);\n\t\t}\n\t\telse {\n\t\t\tchoice = checkBuyCardFromPlayer(player, card, priceToSell);\n\t\t}\n\t\tif(choice == JOptionPane.YES_OPTION) {\n\t\t\tsellCard(card, player, priceToSell);\n\t\t\tsoldCard = true;\n\t\t}\n\t\t//the player will ask only twice per player and only if they do not have toο much money so that they do not \n\t\t//take advantage of the AI\n\t\telse if((choice == JOptionPane.NO_OPTION) && (player.getMoney() <= (priceToSell*1.5)) && (timesTried<1) ) {\n\t\t\tsoldCard = checkSellCardToPlayer(player, card, almostComplete, timesTried+=1);\n\t\t\t \n\t\t}\n\n\t\treturn soldCard;\n\t}",
"public boolean isSatisfied() {\n\t\tif (!booksToReturn.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\t// sprawdzenie czy wszystko z listy jest\n\t\t// przygotowywanie drugiej listy\n\t\tList<Integer> checkList = new ArrayList<Integer>();\n\t\tcheckList.addAll(wishList);\n\n\t\t// jesli ksiazka jest w plecaku to powinna byc na liscie\n\t\tfor (Book book : lendBooks) {\n\t\t\tif (checkList.contains((Integer) book.getIsbn())) {\n\t\t\t\tcheckList.remove((Integer) book.getIsbn());\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// jeski na liscie jest coc czego nie ma w plecaku\n\t\treturn checkList.isEmpty();\n\t}",
"public boolean isAvailable() throws KKException\r\n {\r\n return isAvailable(MODULE_PAYMENT_CYBERSOURCESA_STATUS);\r\n }",
"private boolean isEncapsulatingBet(BetSlipResponse betSlipResponse) {\n boolean result = betSlipResponse.getTransactions().size() > 0;\n\n for (TransactionResponse transactionResponse : betSlipResponse.getTransactions()) {\n result &= transactionResponse.getTransactionTypeId() == TransactionType.BET.getId();\n }\n\n return result;\n }",
"boolean CanBuySettlement();",
"public synchronized void checkAndUpdateInventory(Drink drink) {\n Map<String, Integer> quantityMap = drink.getIngredientQuantityMap();\n boolean canBeMade = true;\n for (Map.Entry<String, Integer> entry : quantityMap.entrySet()) {\n if (inventoryMap.containsKey(entry.getKey())) {\n int currentValue = inventoryMap.get(entry.getKey());\n if (currentValue == 0) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not available\");\n canBeMade = false;\n break;\n } else if (quantityMap.get(entry.getKey()) > inventoryMap.get(entry.getKey())) {\n System.out.println(drink.getName() + \" cannot be prepared because \" + entry.getKey() + \" is not sufficient\");\n canBeMade = false;\n break;\n }\n }\n }\n if (canBeMade) {\n updateInventory(quantityMap);\n System.out.println(drink.getName() + \" is prepared\");\n }\n }",
"private void checkResults() {\n\n if (Dealer.calcTotal() == p1.calcTotal()) {\n System.out.println(\"You and the dealer Tie, Here is your money back.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (p1.calcTotal() > Dealer.calcTotal() && !bust) {\n System.out.println(\"You win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.calcTotal() > 31) {\n System.out.println(\"Dealer busts. You Win!\");\n totalWinnings += betNum;\n p1.addPointCount(betNum);\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n } else if (Dealer.getTotal() > p1.calcTotal() && Dealer.getTotal() < 32) {\n System.out.println(\"Dealer Wins.\");\n System.out.println(\"Total Winnings: \" + totalWinnings + \"\\n\");\n p1.subPointCount(betNum);\n }\n }",
"public void checkForSpot(String option, String length, Vehicle v, ParkingLot p)\r\n {\r\n ArrayList<Point> freeSpots = new ArrayList<>();\r\n // this will happen in parkingLotControl\r\n // ask if they want regular or premium\r\n // ask for long or short term\r\n // NOT FINISHED\r\n int width = p.getTotalRow();\r\n int height = p.getTotalColumn();\r\n\r\n // if vehicle spots taken is 2, create TwoParkingSpots...\r\n if (v.getSpotsTaken() == 2) {\r\n // for loop stuff\r\n // if two are available but not next to each other\r\n // call moveCars\r\n Point[] spot = checkSpotsForTwo(p);\r\n if(spot == null){\r\n System.out.println(\"There are not enough spots in this lot to park this car.\");\r\n return;\r\n }else{\r\n TwoParkingSpots ps = new TwoParkingSpots(v.getOwner(),v,option,length,(int)spot[0].getX(), new int[]{(int)spot[0].getY(),(int)spot[1].getY()});\r\n p.setSpot(ps.getRow(),ps.getColumns(),ps);\r\n System.out.println(\"Vehicle has been parked. Taking back to main menu.\");\r\n if(option.equals(\"regular\")){\r\n if(length.equals(\"long\")){\r\n v.setCost(\"Long Term Regular Parking\",25.00);\r\n }else{\r\n v.setCost(\"Short Term Regular Parking\",15.00);\r\n }\r\n }else{\r\n if(length.equals(\"long\")){\r\n v.setCost(\"Long Term Premium Parking\",45.00);\r\n }else{\r\n v.setCost(\"Short Term Premium Parking\",35.00);\r\n }\r\n }\r\n return;\r\n }\r\n } else {\r\n for (int i = 0; i < width; i++) {\r\n for (int j = 0; j < height; j++) {\r\n if (p.getOccupany(i, j) == false) {\r\n freeSpots.add(new Point(i, j));\r\n }\r\n }\r\n }\r\n\r\n if(freeSpots.size() >= 1){\r\n Random spot = new Random();\r\n Point parkSpot = freeSpots.get(spot.nextInt(freeSpots.size()));\r\n\r\n ParkingSpot ps = new ParkingSpot(v.getOwner(), v, option, length);\r\n p.setSpot((int) parkSpot.getX(), (int) parkSpot.getY(), ps);\r\n System.out.println(\"Vehicle has been parked. Taking back to main menu.\");\r\n if(option.equals(\"regular\")){\r\n if(length.equals(\"long\")){\r\n v.setCost(\"Long Term Regular Parking\",25.00);\r\n }else{\r\n v.setCost(\"Short Term Regular Parking\",15.00);\r\n }\r\n }else{\r\n if(length.equals(\"long\")){\r\n v.setCost(\"Long Term Premium Parking\",45.00);\r\n }else{\r\n v.setCost(\"Short Term Premium Parking\",35.00);\r\n }\r\n }\r\n return;\r\n }else{\r\n System.out.println(\"There are not enough spots in this lot to park this car.\");\r\n return;\r\n }\r\n }\r\n }",
"@Test\n\tpublic void acceptingAnOfferRejectsOffersOnSameCar() {\n\t}",
"public void checkAndExecute(){\n if(priceListener.getSecurityPrice() < buyPrice){\n executionService.buy(security, buyPrice, 100);\n // if the price < buyPrice then executionService.buy(buyquantity)\n }else if ( priceListener.getSecurityPrice() > sellPrice ) {\n executionService.sell(security, buyPrice, 100);\n }\n }",
"private boolean actualizarBPartner() {\n if (!isReceipt() && getC_BPartner_ID() != 0 && !isAllocated()) {\n MBPartner bp = new MBPartner(getCtx(), getC_BPartner_ID(), get_TrxName());\n BigDecimal previo = bp.getTotalOpenBalance();\n BigDecimal actual = Env.ZERO;\n\n BigDecimal monto = getAllocatedAmt();\n if (monto == null) {\n monto = Env.ZERO;\n }\n\n //\tSuma el monto no asignado del pago, al saldo del proveedor\n actual = previo.add(getPayAmt().add(monto));\n\n bp.setTotalOpenBalance(actual);\n return bp.save();\n }\n else\n return false;\n }",
"private void doReserve() {\n pickParkingLot();\n pickParkingSpot();\n pickTime();\n pickDuration();\n int amount = pickedparkinglot.getPrice() * pickedduration;\n if (pickedAccount.getBalance() >= amount) {\n currentReservation = new Reservation(pickedparkingspot, pickedAccount, pickedtime, pickedduration);\n validateReservation(currentReservation);\n } else {\n System.out.println(\"Insufficient balance\");\n }\n }",
"public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }",
"@Test\n public void isSameReturn() {\n assertTrue(ALICE_RETURN.isSameParcel(ALICE_RETURN));\n\n // null -> returns false\n assertFalse(ALICE_RETURN.isSameParcel(null));\n\n // different transaction ID -> returns false\n ReturnOrder editedAlice = new ReturnOrderBuilder(ALICE_RETURN).withTid(VALID_TID_BOB).build();\n\n assertFalse(ALICE_RETURN.isSameParcel(editedAlice));\n\n // different name -> returns true\n editedAlice = new ReturnOrderBuilder(ALICE_RETURN).withName(VALID_NAME_BOB).build();\n assertTrue(ALICE_RETURN.isSameParcel(editedAlice));\n\n // different phone -> returns true\n editedAlice = new ReturnOrderBuilder(ALICE_RETURN).withPhone(VALID_PHONE_BOB).build();\n assertTrue(ALICE_RETURN.isSameParcel(editedAlice));\n\n // same name, same phone, different attributes -> returns true\n editedAlice = new ReturnOrderBuilder(ALICE_RETURN).withAddress(VALID_ADDRESS_BOB)\n .withItemType(VALID_TYPE_PLASTIC).build();\n assertTrue(ALICE_RETURN.isSameParcel(editedAlice));\n\n // same name, same phone, different attributes -> returns true\n editedAlice = new ReturnOrderBuilder(ALICE_RETURN).withWarehouse(VALID_WAREHOUSE_BOB)\n .withAddress(VALID_ADDRESS_BOB)\n .withItemType(VALID_TYPE_PLASTIC).build();\n assertTrue(ALICE_RETURN.isSameParcel(editedAlice));\n\n // same name, same phone, same warehouse, different attributes -> returns true\n editedAlice = new ReturnOrderBuilder(ALICE_RETURN).withAddress(VALID_ADDRESS_BOB)\n .withItemType(VALID_TYPE_PLASTIC).build();\n assertTrue(ALICE_RETURN.isSameParcel(editedAlice));\n }",
"@Test\r\n\tpublic void testDoLoanChromebook() {\n\r\n\t\tResourceCentre.addChromebook(chromebookList, cb1);\r\n\t\tResourceCentre.addChromebook(chromebookList, cb2);\r\n\r\n\t\t// Item list is not null, newly added item can be loaned out successfully.\r\n\t\tassertNotNull(\"Test that list is not null\", chromebookList);\r\n\t\tassertTrue(\"Test if item can be loaned successfully\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\"));\r\n\r\n\t\t// Item availability is false, when item is loaned out.\r\n\t\tassertFalse(\"Test that itemAvailability is false when loaned out\", cb1.getIsAvailable());\r\n\r\n\t\t// After item is loaned out, it cannot be loaned again.\r\n\t\tassertFalse(\"Test that item cannot be loaned once loaned out\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\"));\r\n\r\n\t\t// Another item in the list can be loaned out successfully.\r\n\t\tassertTrue(\"Test that item can be loaned out successfully\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0012\", \"01/01/2010\"));\r\n\t\tassertFalse(\"Test that itemAvailability is false when loaned out\", cb2.getIsAvailable());\r\n\r\n\t\t// Item can be loaned out again when returned.\r\n\t\tassertTrue(\"Return item.\", ResourceCentre.doReturnChromebook(chromebookList, \"CB0011\"));\r\n\t\tassertTrue(\"Test that item can be loaned again when returned.\",\r\n\t\t\t\tResourceCentre.doLoanChromebook(chromebookList, \"CB0011\", \"01/01/2010\"));\r\n\r\n\t}",
"public static boolean getAnswerForExistingTransfer(Player player, double bid, Library library, TransferList existingTransfers, double returnedprice) {\n\t\tif (bid<returnedprice) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn TransferLogic.getAnswer(player, bid, library, existingTransfers);\n\t\t}\n\t}",
"protected boolean processTakebackOffered(boolean toUser, int offerIndex, String oppName,\n int takebackCount){\n return false;\n }",
"public void checkAuctions() {\n\n checkDutchAuctions();\n checkSecondPriceAuctions();\n }",
"public boolean buy() throws Exception {\n\n int jogador = this.jogadorAtual();\n\n String lugar = this.tabuleiro.getPlaceName(posicoes[jogador]);\n // System.out.println(\"lugar[jogador]\" + lugar);\n boolean posicaoCompravel = this.posicaoCompravel(posicoes[jogador]);\n boolean isEstatal = this.isPosicaoEstatal(this.posicoes[jogador]);\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true && verificaSeServicoPublicoFoiComprado(this.posicoes[jogador]))) {\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true)) {\n this.listaJogadores.get(jogadorAtual()).addQuantidadeCompanhias();\n\n }\n int posicaoTabuleiro = posicoes[jogador];\n int preco = this.tabuleiro.getLugarPrecoCompra(posicaoTabuleiro);\n Jogador j = listaJogadores.get(jogador);\n this.terminarAVez();\n if (preco <= j.getDinheiro()) {\n this.print(\"\\tPossui dinheiro para a compra!\");\n j.retirarDinheiro(preco);\n this.Donos.put(posicaoTabuleiro, j.getNome());\n\n String nomeLugar = this.tabuleiro.getPlaceName(posicaoTabuleiro);\n j.addPropriedade(nomeLugar);\n if (nomeLugar.equals(\"Reading Railroad\") || nomeLugar.equals(\"Pennsylvania Railroad\") ||\n nomeLugar.equals(\"B & O Railroad\") || nomeLugar.equals(\"Short Line Railroad\")) {\n DonosFerrovias[jogador]++;\n }\n this.print(\"\\tVocê adquiriu \" + nomeLugar + \" por \" + preco);\n this.print(\"\\tAtual dinheiro: \" + j.getDinheiro());\n if (j.temPropriedades() && hipotecaAtiva) {\n j.adicionarComandoHipotecar();\n }\n if (j.verificaSeTemGrupo(posicaoTabuleiro)) {\n if (this.build == true) {\n j.adicionarComandoBuild();\n }\n\n this.tabuleiro.duplicarAluguelGrupo(posicaoTabuleiro);\n\n }\n } else {\n this.print(\"\\tNão possui dinheiro para realizar a compra!\");\n throw new Exception(\"Not enough money\");\n }\n\n } else {\n\n if (this.jaTemDono(posicoes[jogador])) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n\n if (isEstatal && this.publicServices == false) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n if (!posicaoCompravel) {\n throw new Exception(\"Place doesn't have a deed to be bought\");\n }\n }\n\n\n\n return false;\n\n\n\n }",
"public static boolean isBillToParty(String account, double invoiceAmount, String prevCnBillToParty, String newBillToParty,\n\t String cnBillToCode, String bsBillToCode, String shipper, String forwarder, String consignee, String agent, String thirdParty) {\n\tString billToParty = invoiceAmount > 0 && account.equals(newBillToParty) ? newBillToParty\n\t\t: account.equals(prevCnBillToParty) && !\"C\".equals(bsBillToCode) ? prevCnBillToParty\n\t\t: \"S\".equals(bsBillToCode) ? shipper\n\t\t: \"A\".equals(bsBillToCode) ? agent\n\t\t: \"T\".equals(bsBillToCode) ? thirdParty\n\t\t: \"F\".equals(bsBillToCode) ? forwarder\n\t\t: \"C\".equals(bsBillToCode) ? consignee\n\t\t: prevCnBillToParty;\n\treturn account.equals(billToParty);\n }",
"protected boolean processPlayerWithdrew(int gameNum, String playerName, String offer){\n return false;\n }",
"public boolean issueBook()\n\t{\n\t\tif(availableBooks==0)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tavailableBooks--;;\n\t\t\treturn true;\n\t\t}\n\t}",
"private static void checkForOppositeAlreadyPlacedOrders(Stock stock,\n List<Order> oppositeAlreadyPlacedOrders,\n Order arrivedOrder,\n AtomicBoolean arrivedOrderWasTreated,\n AtomicLong serialTime) {\n for (Iterator<Order> it = oppositeAlreadyPlacedOrders.iterator();\n it.hasNext(); ) {\n Order oppositeAlreadyPlacedOrder = it.next();\n\n /*\n * check if the 'arrivedOrder' is a 'Sell' Order.\n * compare orders: if 'buy' >= 'sell':\n */\n if (checkForOppositeBuyAlreadyPlacedOrders(stock, arrivedOrder, it,\n oppositeAlreadyPlacedOrder, arrivedOrderWasTreated,\n serialTime)) {}\n\n /*\n * check if the 'arrivedOrder' is a 'Buy' Order.\n * compare orders: if 'buy' >= 'sell':\n */\n else if (checkForOppositeSellAlreadyPlacedOrders(stock,\n arrivedOrder, it, oppositeAlreadyPlacedOrder,\n arrivedOrderWasTreated, serialTime)) {}\n\n /*\n * we found that there are no matching 'opposite already placed' Orders,\n * so we do not make a Transaction,\n * and the 'arrived' Order stays as it was in the data-base.\n */\n }\n }",
"boolean hasDataPartner();",
"public boolean p4_canBeReturned(Order order) {\n\t\t//return true; // order.getOrderLines().stream() // INITIAL\n\t\t// SOLUTION(\n\t\treturn order.getOrderLines().stream()\n\t\t\t\t\t//.filter(OrderLine::wasDelivered) // Change: daca v-as fi spus ca doar orderline-urile livrate...\n\t\t\t\t\t.noneMatch(line -> line.isSpecialOffer());\n\t\t// SOLUTION)\n\t}",
"protected boolean isValidReturnDate(final Map<String, Map<String, TransportOfferingModel>> transportOfferings)\n\t{\n\t\tif (transportOfferings.size() < NdcservicesConstants.RETURN_FLIGHT_LEG_NUMBER)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tZonedDateTime arrivalUtcTime = TravelDateUtils.getUtcZonedDateTime(getTimeService().getCurrentTime(),\n\t\t\t\tZoneId.systemDefault());\n\n\t\tfor (final Map.Entry<String, TransportOfferingModel> transportOffering : transportOfferings\n\t\t\t\t.get(String.valueOf(NdcservicesConstants.OUTBOUND_FLIGHT_REF_NUMBER)).entrySet())\n\t\t{\n\t\t\tfinal ZonedDateTime offeringDepartureUtc = getNdcTransportOfferingService()\n\t\t\t\t\t.getArrivalZonedDateTimeFromTransportOffering(transportOffering.getValue());\n\t\t\tif (arrivalUtcTime.isBefore(offeringDepartureUtc))\n\t\t\t{\n\t\t\t\tarrivalUtcTime = offeringDepartureUtc;\n\t\t\t}\n\t\t}\n\n\t\tarrivalUtcTime = arrivalUtcTime.plus(TravelfacadesConstants.MIN_BOOKING_ADVANCE_TIME, ChronoUnit.HOURS);\n\n\t\tfor (final Map.Entry<String, TransportOfferingModel> transportOffering : transportOfferings\n\t\t\t\t.get(String.valueOf(NdcservicesConstants.INBOUND_FLIGHT_REF_NUMBER)).entrySet())\n\t\t{\n\t\t\tfinal ZonedDateTime offeringDepartureUtc = getNdcTransportOfferingService()\n\t\t\t\t\t.getDepartureZonedDateTimeFromTransportOffering(transportOffering.getValue());\n\t\t\tif (arrivalUtcTime.isAfter(offeringDepartureUtc))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"final void checkForComodification() {\n\t}",
"public boolean isOtherPlayerReady(int[] details)throws RemoteException{\n if(details[1] == 0){\n return sd.getGames().get(details[0]).getPlayers()[1].isReady();\n } return sd.getGames().get(details[0]).getPlayers()[0].isReady();\n }",
"public boolean isAvailable() {\n return this.isAcceptingRider && this.currentTrip == null;\n }",
"@Test\n public void checkBook() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n x.setCards(3,4);\n boolean gotBook = x.checkBook();\n assertTrue(gotBook);\n }",
"private boolean checkTwoPairs(Player player) {\n\t\t// first pair\n\t\tcheckPair(player);\n\n\t\t// doesn't qualify for 2 pairs\n\t\tif (!player.isPair()) {\n\t\t\tplayer.setPair(false);\n\t\t\treturn false;\n\t\t}\n\n\t\t// second pair\n\t\tfor (int j = 4; j > 0; j--) {\n\t\t\tif (player.getSevenCardsTempHand().get(j).getRank()\n\t\t\t\t\t.equals(player.getSevenCardsTempHand().get(j - 1).getRank())) {\n\t\t\t\tplayer.setTwoPairs(true);\n\t\t\t\tplayer.setHandRank(HandRank.TWO_PAIRS);\n\n\t\t\t\t// add second pair to the 5 cards hand\n\t\t\t\thand[2] = player.getSevenCardsTempHand().get(j);\n\t\t\t\thand[3] = player.getSevenCardsTempHand().get(j - 1);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j);\n\t\t\t\tplayer.getSevenCardsTempHand().remove(j - 1);\n\n\t\t\t\t// add kicker\n\t\t\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\t\t\tplayer.setFiveCardsHand(hand);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// add 3 kickers for the single pair found\n\t\thand[2] = player.getSevenCardsTempHand().get(4);\n\t\thand[3] = player.getSevenCardsTempHand().get(3);\n\t\thand[4] = player.getSevenCardsTempHand().get(2);\n\t\tplayer.setFiveCardsHand(hand);\n\n\t\treturn false;\n\t}",
"public boolean checkPayment(int debt) {\n\t\tboolean couldSell = false;\t\n\t\tSystem.out.println(\"here\");\n\t\tcouldSell = checkSellHouses(debt);\n\t\tSystem.out.println(\"here\");\n\t\tSystem.out.println(getMoney());\n\t\tif(!couldSell) {\n\t\t\tArrayList<PropertyCard> soloCardsToMortgage = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\tif(!c.isInMortgage() && !isCollectionFull(c) && !checkCollection(this, c)) {\n\t\t\t\t\tsoloCardsToMortgage.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<PropertyCard> almostCompleteCards = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\t//still will not get full Collection and in Mortgage but will dodge already taken\n\t\t\t\tif(checkCollection(this, c)) {\n\t\t\t\t\talmostCompleteCards.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcouldSell = checkMortgageCards(soloCardsToMortgage, almostCompleteCards, debt);\n\t\t\tif(!couldSell) {\n\t\t\t\tcouldSell = chooseWhatToSell(soloCardsToMortgage, debt);\n\t\t\t\tif(!couldSell) {\n\t\t\t\t\tcouldSell = chooseWhatToSell(almostCompleteCards, debt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn couldSell;\n\t}",
"public boolean isBuyable();",
"boolean hasBidrequest();",
"public boolean acceptedTradeOffer()\n\t{\n\t\treturn m_isReadyToTrade;\n\t}",
"static boolean willBuyDrink( boolean isHotOutside , double moneyInPocket) {\n\t\t\n\t\tif (isHotOutside && moneyInPocket >= 10.50) {\n\t\t\treturn true; \n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test\n void should_smart_parking_boy_always_park_car_to_parking_slot_with_more_space(){\n final int capacity = 5;\n ParkingLot parkingLotA = new ParkingLot(capacity);\n ParkingLot parkingLotB = new ParkingLot();\n ArrayList<ParkingLot> parkingLots = new ArrayList<>();\n parkingLots.add(parkingLotA);\n parkingLots.add(parkingLotB);\n ParkingBoy smartParkingBoy = new SmartParkingBoy(parkingLots);\n\n Car expectedCar = new Car();\n ParkingTicket parkingTicket = smartParkingBoy.park(expectedCar);\n Car atualCar = smartParkingBoy.fetch(parkingTicket);\n\n assertSame(expectedCar, atualCar);\n assertSame(parkingLotB, parkingTicket.getParkingLot());\n }",
"public static boolean isBillToParty(String account, String bsPcbCode, String pcb, String pcbCode, String billToCode,\n\t String prevCnBillToParty, String shipper, String forwarder, String agent, String thirdParty) {\n\tString billToParty = account.equals(prevCnBillToParty) ? prevCnBillToParty\n\t\t: ((\"B\".equals(bsPcbCode) && \"P\".equals(pcb)) || \"P\".equals(bsPcbCode)) ? \"S\".equals(billToCode) ? shipper\n\t\t: \"F\".equals(billToCode) ? forwarder\n\t\t: \"T\".equals(billToCode) ? thirdParty\n\t\t: \"\"\n\t\t: (\"C\".equals(bsPcbCode) || ((\"B\".equals(bsPcbCode) || \"P\".equals(bsPcbCode)) && \"C\".equals(pcb))) ? agent\n\t\t: \"\";\n\treturn account.equals(billToParty);\n }",
"@Test\n public void checkBook2() throws Exception {\n SmartPlayer x = new SmartPlayer(0,0);\n boolean gotBook = x.checkBook();\n assertTrue(!gotBook);\n }",
"private Bid standardBidding(int turn) {\r\n\t\tboolean[] bidding = new boolean[players.length];//used to tell how many players are still bidding\r\n\t\tfor(int i = 0; i < bidding.length; i++) {//all players are bidding\r\n\t\t\tbidding[i] = true;\r\n\t\t}\r\n\r\n\t\tint highestBid = 0;\r\n\t\tint highestBidder = turn;\r\n\t\t//while there is more than 1 player bidding\r\n\t\tint stillBidding = players.length;//used for checking how many players are bidding\r\n\t\tfor(int biddingTurn = (turn+1)%players.length; stillBidding > 1; biddingTurn = (biddingTurn+1)%players.length) {\r\n\t\t\t//skip people who are no longer in\r\n\t\t\tif(!bidding[biddingTurn]) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t//get the price a player is willing to pay\r\n\t\t\tOGS.stillBidding = Arrays.copyOf(bidding, bidding.length);//reset this so players can mess with it if they want\r\n\t\t\tint bid = players[biddingTurn].getBid(highestBid);\r\n\t\t\tif(bid==-1 || bid <= highestBid) {\r\n\t\t\t\tbidding[biddingTurn] = false;\r\n\t\t\t} else {\r\n\t\t\t\thighestBid = bid;\r\n\t\t\t\thighestBidder = biddingTurn;\r\n\t\t\t}\r\n\r\n\t\t\t//checks for winner\r\n\t\t\tstillBidding = 0;\r\n\t\t\tfor(int b = 0; b < bidding.length; b++) {\r\n\t\t\t\tif(bidding[b]) {\r\n\t\t\t\t\tstillBidding++;\r\n\t\t\t\t}\r\n\t\t\t\t//System.out.print(bidding[b] + \" \");//debug\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn new Bid(highestBidder,highestBid);\r\n\t}",
"boolean hasExchangeprice();",
"private static boolean checkForOppositeSellAlreadyPlacedOrders(Stock stock,\n Order arrivedOrder,\n Iterator<Order> it,\n Order oppositeAlreadyPlacedOrder,\n AtomicBoolean arrivedOrderWasTreated,\n AtomicLong serialTime) {\n if ((oppositeAlreadyPlacedOrder.getOrderDirection() ==\n OrderDirection.SELL) &&\n (oppositeAlreadyPlacedOrder.getDesiredLimitPrice() <=\n arrivedOrder.getDesiredLimitPrice())) {\n\n // only if the 'arrivedOrder' wasn't removed from the data-base yet:\n checkForOppositeAlreadyPlacedOrders_DependencyOnDirection(stock,\n arrivedOrder, it, oppositeAlreadyPlacedOrder,\n stock.getDataBase().getAwaitingBuyOrders().getCollection(),\n arrivedOrderWasTreated, serialTime);\n return true;\n } else { return false; }\n }",
"private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }",
"void acceptTrade(boolean accept);",
"void askBuyDevCards();",
"public boolean isSetBuycardate() {\n return this.buycardate != null;\n }",
"protected boolean processPlayerCounteredTakebackOffer(int gameNum, String playerName,\n int takebackCount){\n return false;\n }",
"public boolean buyCard(Supply s) {\r\n\t\tboolean wasBought;\r\n\t\tif(s.getQuantity() < 1 || contraband.contains(s.getTopCard())) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tCard c = s.getTopCard();\r\n\t\tbuying = true;\r\n\t\tbought.add(c);\r\n\t\tif(buys > 0 && treasure - c.getCost() >= 0 && c.canBeGained()\r\n\t\t\t\t&& (!c.costsPotion() || potion > 0)) {\r\n\t\t\ttreasure -= c.getCost();\r\n\t\t\tif(c.costsPotion()) potion--;\r\n\t\t\tbuys--;\r\n\t\t\ts.takeCard();\r\n\t\t\tdeck.gain(c);\r\n\t\t\tfor(int i = 0; i < s.getEmbargo(); i++) {\r\n\t\t\t\tbuying = false;\r\n\t\t\t\tdeck.gain(access.board.getCurse().takeCard());\r\n\t\t\t\tbuying = true;\r\n\t\t\t}\r\n\t\t\taccess.gamePhase = 2;\r\n\t\t\twasBought = true;\r\n\t\t\taccess.log(getPlayerName() + \" bought \" + c.getName());\r\n\t\t}\r\n\t\telse {\r\n\t\t\twasBought = false;\r\n\t\t\tbought.remove(bought.size() - 1);\r\n\t\t}\r\n\t\tif(buys < 1) {\r\n\t\t\taccess.gamePhase = 3;\r\n\t\t}\r\n\t\tbuying = false;\r\n\t\tnotifyObservers();\r\n\t\treturn wasBought;\r\n\t}",
"protected boolean processFollowUpsRecords() throws Exception {\n if (!getCarrierCodesList().isEmpty()) { //Empty when all follow ups have been returned for carriers through the current date\n setCurrentCarrierCode((String) getCarrierCodesList().get(0));\n initValuesFromControlRecord();\n if (!(getStartRecord() > FIRST_RECORD)) {\n setStartDate(NbaUtils.addDaysToDate(getStartDate(), 1)); //Advance the start date if all records have been returned from the previous high water date \n }\n if (NbaUtils.compare(getStartDate(), getToday()) > 0) { //Today has already been processed\n getCarrierCodesList().remove(getCurrentCarrierCode()); //Done with current Carrier\n return true;\n }\n setEndDate(NbaUtils.addDaysToDate(getStartDate(), getMibFollowUpDays() - 1));\n if (NbaUtils.compare(getEndDate(), getToday()) > 0) {\n setEndDate(getToday());\n }\n String tx404Request = getRequestMessage();\n retrieveMIBFollowups(tx404Request);\n return getResponseMessages().size() != 0; //Return true if no responses were processed \n }\n return false; //All Carrier codes have been processed\n }"
] | [
"0.7310594",
"0.7002873",
"0.58276737",
"0.57830447",
"0.56637657",
"0.56566626",
"0.56094885",
"0.5580428",
"0.55403733",
"0.5464932",
"0.5453032",
"0.53378963",
"0.5325359",
"0.5311293",
"0.5288146",
"0.52782017",
"0.5265528",
"0.5254946",
"0.5254409",
"0.5235689",
"0.523237",
"0.5228909",
"0.5227653",
"0.5221188",
"0.5218299",
"0.5206985",
"0.52054346",
"0.5205192",
"0.52047014",
"0.5201644",
"0.5193038",
"0.51911235",
"0.5190567",
"0.51886386",
"0.51805234",
"0.5179235",
"0.5176513",
"0.51720715",
"0.51673543",
"0.516077",
"0.5154567",
"0.5149882",
"0.51353335",
"0.5129574",
"0.5129003",
"0.5128292",
"0.51261526",
"0.51231104",
"0.51201034",
"0.5114996",
"0.5110553",
"0.51102597",
"0.5101029",
"0.5089927",
"0.5089447",
"0.50891805",
"0.5086929",
"0.5082489",
"0.5075442",
"0.5070434",
"0.50683767",
"0.505763",
"0.5056751",
"0.50549996",
"0.50526845",
"0.5047695",
"0.50455695",
"0.5040073",
"0.50341845",
"0.5030374",
"0.5028353",
"0.50231624",
"0.5003501",
"0.49739367",
"0.49715465",
"0.49616677",
"0.49565172",
"0.49536243",
"0.49516654",
"0.49494007",
"0.4936582",
"0.49315017",
"0.4930885",
"0.49246934",
"0.4924618",
"0.49245244",
"0.49148718",
"0.49058512",
"0.49029103",
"0.4900578",
"0.48982984",
"0.48968858",
"0.48902994",
"0.48860386",
"0.4880807",
"0.4866615",
"0.4865355",
"0.48598245",
"0.48596257",
"0.48592776"
] | 0.746302 | 0 |
/ If someone is trying to return bikes at a non partner provider, we throw an error. | @Test
public void testWrongPartner() {
/* Set up scenario. As one might see, no partnership was registered hence we throw an
error.
*/
this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,
this.customer.getLocation(),
true);
Quote chosenQuote = this.quotes.get(0);
Provider originalProvider = chosenQuote.provider;
Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);
deliveryService.carryOutPickups(this.bookingDate);
deliveryService.carryOutDropoffs();
assertThrows(AssertionError.class, () ->
{
this.provider2.registerReturn(orderInfo.getOrderNumber());
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testReturnOriginal() {\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n false);\n Quote chosenQuote = this.quotes.get(0);\n ArrayList<Bike> availableBikesProvider = new ArrayList<>();\n Provider originalProvider = chosenQuote.provider;\n\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n ArrayList<Bike> bookedBikes = BookingController.getBooking(orderInfo.getOrderNumber()).bikes;\n assertTrue(originalProvider.registerReturn(orderInfo.getOrderNumber()));\n for (BikeTypes type : originalProvider.getOwnedBikes().keySet()) {\n availableBikesProvider.addAll(originalProvider.getAvailableBikesOfType(type));\n }\n for (Bike bike : bookedBikes) {\n assertTrue(availableBikesProvider.contains(bike));\n }\n }",
"@Test\n public void testDeliveryReturn() {\n //Set up use case\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n true);\n Quote chosenQuote = this.quotes.get(0);\n Provider originalProvider = chosenQuote.provider;\n Provider partner = this.provider2;\n partner.addPartner(originalProvider); //register partnership\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n Booking booking = BookingController.getBooking(orderInfo.getOrderNumber());\n ArrayList<Bike> bookedBikes = booking.bikes;\n\n //deliver bikes to client\n deliveryService.carryOutPickups(this.bookingDate);\n deliveryService.carryOutDropoffs();\n\n //register return at partner provider\n assertTrue(partner.registerReturn(orderInfo.getOrderNumber()));\n deliveryService.carryOutPickups(LocalDate.now()); //carryout pickups on date when returned\n deliveryService.carryOutDropoffs(); //carry out dropoffs\n originalProvider.checkForDropoffs(); // check for dropoffs\n ArrayList<Bike> availableBikes = new ArrayList<>();\n for (BikeTypes type : originalProvider.getOwnedBikes().keySet()) {\n availableBikes.addAll(originalProvider.getAvailableBikesOfType(type));\n }\n for (Bike bike : bookedBikes) {\n assertTrue(availableBikes.contains(bike));\n }\n }",
"@Override\n\tpublic boolean rejectPartner(Partner partner) {\n\t\treturn false;\n\t}",
"@Override\n public void onFailure(Call<GetPotentialEarn> call, Throwable t) {\n }",
"void askLeaderCardThrowing();",
"@Test\n\tpublic void whenBikeTypeIsNotPresentInShortestThenThrowException() {\n\t\ttry {\n\t\t\t// There are no elec bikes in this system, so this should throw the exception\n\t\t\t(new ShortestPlan()).planRide(source, destination, bob, \"ELEC\", n);\n\t\t\tfail(\"NoValidStationFoundException should have been thrown\");\n\t\t} catch (NoValidStationFoundException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\ttry {\n\t\t\t(new ShortestPlan()).planRide(source, destination, bob, \"NOPE\", n);\n\t\t\tfail(\"NoValidStationFoundException should have been thrown\");\n\t\t} catch (NoValidStationFoundException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\t}",
"private static void pairingError(MasterpassCheckoutCallback masterpassCheckoutCallback) {\n Log.e(TAG, \"Pairing without checkout is no longer supported\");\n\n MasterpassError error = new MasterpassError(MasterpassError.ERROR_CODE_NOT_SUPPORTED,\n \"Pairing without checkout is no longer supported\");\n\n masterpassCheckoutCallback.onCheckoutError(error);\n }",
"public NoAvailableBayException() {\n\t\tsuper(\"There are no bay's free.\");\n\t}",
"@Override\n public boolean isBoatOnTheLeftBank() {\n return false;\n }",
"@Test\n\tpublic void whenBikeTypeIsNotPresentInAvoidPlusStationsThenThrowException()\n\t\t\tthrows NoValidStationFoundException, InvalidBikeTypeException {\n\t\ttry {\n\t\t\t// There are no elec bikes in this system, so this should throw the\n\t\t\t// NoValidStationFoundException exception\n\t\t\t(new FastestPlan()).planRide(source, destination, bob, \"ELEC\", n);\n\t\t\tfail(\"NoValidStationFoundException should have been thrown\");\n\t\t} catch (NoValidStationFoundException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t\ttry {\n\t\t\t// The nope bike type does not exist, so the InvalidBikeTypeException should be\n\t\t\t// thrown here because we cannot compute the bike's speed\n\t\t\t(new FastestPlan()).planRide(source, destination, bob, \"NOPE\", n);\n\t\t\tfail(\"InvalidBikeTypeException should have been thrown\");\n\t\t} catch (InvalidBikeTypeException e) {\n\t\t\tassertTrue(true);\n\t\t}\n\n\t}",
"public void testBidDeclineNotification(){\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n // owner.declineBid(thing1, bid);\n //assertTrue(borrower.notifiedOfDeclinedBid(bid));\n\n assertTrue(false);\n }",
"public void testBidAcceptionNotification() {\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n //owner.acceptBid(thing1, bid);\n //assertTrue(borrower.notifiedOfAcceptedBid(bid));\n\n assertTrue(false);\n }",
"public void testNegativeBid(){\n try {\n Bid bid = new Bid(new Thing(new User()), new User(), -20);\n fail();\n } catch (BidNegativeException e){\n // ok!\n } catch (Exception e){\n //ok\n }\n\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onGetBookCartItemsFail() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override\n\tpublic boolean approvePartner(Partner partner) {\n\t\treturn false;\n\t}",
"public void onFailure(Throwable caught) {\n\t\t\t\tlogger.severe(\"Error message from server trying to get providers ...\");\r\n\t\t\t}",
"@Override\n\tpublic QmsYchExceptionReportEntity isLoseGroup(String waybillNo) {\n\t\treturn null;\n\t}",
"@Test(expected=MissingPrice.class)\n\tpublic void testNotEnoughBought() {\n\t\tpos.setPricing(\"A\", 4, 7);\n\n\t\tpos.scan(\"A\");\n\t\tpos.total();\n\t}",
"@Test\n\tpublic void rejectedOfferCanNotBeAccepted() {\n\t}",
"public NoAvailableBayException(String message) {\n\t\tsuper(message);\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOwnsNegative1() {\r\n\t\tauthenticate(\"brother5\");\r\n\r\n\t\tbrotherhoodService.findOwns();\r\n\r\n\t\tunauthenticate();\r\n\t}",
"public void processBlockwiseResponseTransferFailed() {\n //to be overridden by extending classes\n }",
"public void waitingForPartner();",
"public withdrawException() {\n super(\"The Sum you entered is greater than your available money... \");\n }",
"@Given(\"User wants to dislike a meme\")\n\tpublic void user_wants_to_dislike_a_meme() {\n\t throw new io.cucumber.java.PendingException();\n\t}",
"@Override\n public void onFailure(Call<statusNearby> call, Throwable t) {\n Log.d(\"Status : \",\"Failed Fetch API 2\");\n }",
"@Test(expected = BidAmountException.class)\n public void bidIsLessThanHighestBidIsRejected() {\n knownUsers.login(seller.userName(), seller.password());\n knownUsers.annointSeller(seller.userName());\n\n knownUsers.login(bidder.userName(), bidder.password());\n\n Auction testAuction = new Auction(seller, item, startingPrice, startTime, endTime);\n testAuction.onStart();\n\n Bid firstBid = new Bid(bidder, startingPrice, startTime.plusMinutes(2));\n\n testAuction.submitBid(firstBid);\n\n testAuction.submitBid(firstBid);\n\n\n }",
"public abstract boolean isAcceptable(Bid plannedBid);",
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOwnsNegative4() {\r\n\t\tunauthenticate();\r\n\r\n\t\tbrotherhoodService.findOwns();\r\n\t}",
"@Override\n public void onFailure(Call<Seat> call, Throwable t) {\n\n }",
"void investmentCheckBondExist(Bond bond) throws BankException, BondException {\n throw new BankException(\"This account does not support this feature\");\n }",
"@Override\n\tpublic void getSpendPointsResponseFailed(String arg0) {\n\t\t\n\t}",
"public void testBidNotification() {\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing1, borrower, 800);\n }catch(Exception e){\n fail();\n }\n try {\n thing1.placeBid(bid);\n } catch (ThingUnavailableException e) {\n fail();\n }\n\n //assertTrue(owner.notifiedOfBid(bid));\n\n assertTrue(false);\n }",
"@Override\n\tpublic void pickServiceBay(Garage garage) throws NoAvailableBayException {\n\t\tint i = garage.getSize() - 1;\n\t\tfor (; i >= 0; i--) {\n\t\t\tServiceBay sb = garage.getBayAt(i);\n\t\t\ttry {\n\t\t\t\tsb.occupy(this);\n\t\t\t\tbreak;\n\t\t\t} catch (BayOccupiedException e) {\n\t\t\t\t// skip this line.\n\t\t\t} catch (BayCarMismatchException e) {\n\t\t\t\t// skip this line.\n\t\t\t}\n\t\t}\n\t\tif (i == -1) {\n\t\t\tthrow new NoAvailableBayException();\n\t\t}\n\t}",
"@Override\n\tpublic boolean checkEWaybillNoExceptPDAPending(String waybillNo) {\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean queryExcepSignResultByWaybillNo(String originalWaybillNo) {\n\t\treturn false;\n\t}",
"private void adjustWinnerError(GNode winner) {\n\n }",
"com.google.openrtb.OpenRtb.BidResponse getBidresponse();",
"@Test(expected = UserLoginException.class)\n public void testBidderThatIsNotAuthenticatedCantBid(){\n knownUsers.login(seller.userName(), seller.password());\n knownUsers.annointSeller(seller.userName());\n\n Auction testAuction = new Auction(seller, item, startingPrice, startTime, endTime);\n testAuction.onStart();\n\n Bid firstBid = new Bid(bidder, startingPrice, startTime.plusMinutes(2));\n\n testAuction.submitBid(firstBid);\n\n }",
"@Override\n\tpublic void getAwardPointsResponseFailed(String arg0) {\n\t\t\n\t}",
"@Test\n\tpublic void authenticateBuyerInvalid() throws InfyMarketException {\n\t\tList<Buyer> buyerList = new ArrayList<Buyer>();\n\n\t\tBuyer buyerEntity = new Buyer();\n//\t\tbuyerEntity.setBuyerid(\"B10\");\n//\t\tbuyerEntity.setEmail(\"madhuri@gmail\");\n//\t\tbuyerEntity.setName(\"Madhuri\");\n//\t\tbuyerEntity.setPassword(\"Madhu@123\");\n//\t\tbuyerEntity.setPhoneno(\"9009009001\");\n//\t\tbuyerEntity.setIsprivileged(true);\n//\t\tbuyerEntity.setIsactive(true);\n//\t\tbuyerEntity.setRewardpoints(20000);\n\n\t\tbuyerEntity.setBuyerid(\"B10\");\n\t\tbuyerEntity.setEmail(\"madhuri\");\n\t\tbuyerEntity.setName(\"Madhi\");\n\t\tbuyerEntity.setPassword(\"adhu@123\");\n\t\tbuyerEntity.setPhoneno(\"909009001\");\n\t\tbuyerEntity.setIsprivileged(true);\n\t\tbuyerEntity.setIsactive(true);\n\t\tbuyerEntity.setRewardpoints(20000);\n\t\t\n\t\tbuyerList.add(buyerEntity);\n\t\tOptional opt = Optional.of(buyerEntity);// Valid\n\n\t\tOptional opt1 = Optional.empty();// Invalid\n\n\t\tMockito.when(buyerRepository.findById(Mockito.anyString())).thenReturn(opt1);\n\n//\t\tMockito.when(buyerRepository.findAll()).thenReturn(buyerList);\n\t\tList<BuyerDTO> rePlans = buyerService.getAllBuyer();\n\t\tAssertions.assertEquals(rePlans.isEmpty(), buyerList.isEmpty());\n\t}",
"@Given(\"User wants to rate a meme\")\n\tpublic void user_wants_to_rate_a_meme() {\n\t throw new io.cucumber.java.PendingException();\n\t}",
"@Test(expected = DontSellYourselfShortException.class)\n public void dontSellYourselfShort() {\n knownUsers.login(seller.userName(), seller.password());\n knownUsers.annointSeller(seller.userName());\n\n Auction testAuction = new Auction(seller, item, startingPrice, startTime, endTime);\n testAuction.onStart();\n\n Bid firstBid = new Bid(seller, startingPrice, startTime.plusMinutes(2));\n\n testAuction.submitBid(firstBid);\n }",
"@Override\n protected void onFailureComponentConnectionRequest(PlatformComponentProfile remoteParticipant) {\n System.out.println(\"************ Crypto Addresses -> FAILURE CONNECTION.\");\n checkFailedDeliveryTime(remoteParticipant.getIdentityPublicKey());\n }",
"public OccupiedSlotExtraStorageLeaderCardException(){\n super(\"This leader card cannot accept anymore resources!\");\n }",
"abstract int checkBalance(String accountno) throws RemoteException;",
"public NotEnoughFundsException() {\n super(\"Not enough money rock star, try again\");\n }",
"@Override\n\tpublic boolean disablePartner(Partner partner) {\n\t\treturn false;\n\t}",
"@Test(expected = BidAmountException.class)\n public void testLowballingTheInitialBid() {\n knownUsers.login(seller.userName(), seller.password());\n knownUsers.annointSeller(seller.userName());\n\n knownUsers.login(bidder.userName(), bidder.password());\n\n Auction testAuction = new Auction(seller, item, startingPrice, startTime, endTime);\n testAuction.onStart();\n\n Bid firstBid = new Bid(bidder, startingPrice - 5, startTime.plusMinutes(2));\n\n testAuction.submitBid(firstBid);\n }",
"@Override\n \tpublic void handleBettingMarketEndOFSet() {\n \n \t}",
"@Order(14)\n\t@Test\n\tpublic void Attempt_OfferBid()\n\t{\n\t\tBigDecimal BuyOut = new BigDecimal(405);\n\t\tItem testItem = new Item(0,\"Changed ItemName\",\"Changed Description\",new BigDecimal(505),new BigDecimal(404),\"NoOne\");\n\t\tint Expected = -1, actual = os.offerBid(BuyOut, testItem, \"NoOne\");\n\t\tassertTrue(actual > Expected);\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOwnsNegative2() {\r\n\t\tauthenticate(\"admin\");\r\n\r\n\t\tbrotherhoodService.findOwns();\r\n\r\n\t\tunauthenticate();\r\n\t}",
"public int getRequestableBank() \n {\n return -1; \n }",
"public String getSuggestAuthority() {\n/* 56 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOwnsNegative3() {\r\n\t\tauthenticate(\"viewer1\");\r\n\r\n\t\tbrotherhoodService.findOwns();\r\n\r\n\t\tunauthenticate();\r\n\t}",
"public void failedWithdraw(){\n\t\tstate = ATM_State.WITHDRAWALNOTIFICATION;\n\t\tgui.setDisplay(\"Invalid withdrawal amount.\");\n\t}",
"@Test\n\tpublic void acceptingAnOfferRejectsOffersOnSameCar() {\n\t}",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"@Override\n\n //of the api calling got failed then it will go for onFailure,inside this we have added one alertDialog\n public void onFailure(Call call, IOException e) {\n Log.d(TAG,\"Get Bank: Failure \\nIOEx\"+e);\n }",
"public OfferingException(String msg) {\n super(msg);\n }",
"@Override\n\tpublic void blackjack(Participante p) {\n\t\t\n\t}",
"@Given(\"User wants to like a meme\")\n\tpublic void user_wants_to_like_a_meme() {\n\t throw new io.cucumber.java.PendingException();\n\t}",
"@Override\r\n\tpublic void testPrivateBelongsToOtherUser() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testPrivateBelongsToOtherUser();\r\n\t\t}\r\n\t}",
"@Override\n public void onRequestFailure(SpiceException spiceException) {\n }",
"@Override\n public void failure(RetrofitError error) {\n Log.d(TAG, String.valueOf(error));\n WearSocket.getInstance().sendMessage(Values.MESSAGE_PATH, \"Error: \" + phrase + \" didn't work\");\n }",
"protected boolean ensureBalance(BigInteger value)\n {\n String account = appContext.getSettingProvider().getSelectedAccount();\n\n BigInteger balance = appContext.getServiceProvider().getAccountService().getAccountBalance(account).get();\n if(balance == null)\n {\n appContext.getMessageService().showErrorMessage(\"Cannot reach the exchange service. Try again later.\");\n return false;\n }\n\n if(balance.compareTo(value) < 0)\n {\n appContext.getMessageService().showErrorMessage(\"You need at least \" + value.toString() + \" wei to do that!\");\n return false;\n }\n\n return true;\n }",
"BrokerAlgo getBrokerAlgo();",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void unknownItem() {\n\t\tGroceryStore gs = new GroceryStore();\n\t\tint age1 = 50;\n\t\t\n\t\t// this function call should return the expected exception\n\t\tgs.validateAge(age1, \"unknown item\");\n\t\t\n\t}",
"public OfferingException() {\n }",
"@Test\n\tpublic void acceptedOfferCanNotBeRejected() {\n\t}",
"@Override\r\n\t\t\t\t\t\tpublic void onPayFailed(CPOrderInfo arg0, ErrorInfoBean arg1) {\n\t\t\t\t\t\t\tTypeSDKLogger.e( \"return Error\");\r\n\t\t\t\t\t\t\tpayResult.SetData(AttName.PAY_RESULT, \"0\");\r\n\t\t\t\t\t\t\tpayResult.SetData(AttName.PAY_RESULT_REASON, \"PAY_FAIL\");\r\n\t\t\t\t\t\t\tnotify.Pay(payResult.DataToString());\r\n\t\t\t\t\t\t}",
"@Override\n\tpublic boolean enablePartner(Partner partner) {\n\t\treturn false;\n\t}",
"public interface ProviderRepoxRestClient {\n /**\n * Creates a provider in Repox and assigns it to the specific Aggregator\n * \n * @param prov\n * Provider definition\n * @param agr\n * Aggregator reference\n * @return created provider\n * @throws RepoxException\n */\n Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;\n\n /**\n * Moves a provider in Repox and assigns it to the new Aggregator\n * \n * @param providerId\n * provider id\n * @param aggregatorId\n * aggregator id\n * @return created provider\n * @throws RepoxException\n */\n Provider moveProvider(String providerId, String aggregatorId) throws RepoxException;\n\n /**\n * Deletes a provider from Repox\n * \n * @param providerId\n * the Provider reference\n * @return successful?\n * @throws RepoxException\n */\n String deleteProvider(String providerId) throws RepoxException;\n\n /**\n * Updates a provider within Repox\n * \n * @param prov\n * Provider object to update\n * @return updated provider\n * @throws RepoxException\n */\n Provider updateProvider(Provider prov) throws RepoxException;\n\n /**\n * Retrieves all available providers within Repox\n * \n * @return an object containing all provider references\n * @throws RepoxException\n */\n DataProviders retrieveProviders() throws RepoxException;\n\n /**\n * Retrieves all available providers within Repox given a specific Aggregator\n * \n * @param agr\n * Aggregator reference\n * @return an object containing all provider references\n * @throws RepoxException\n */\n DataProviders retrieveAggregatorProviders(Aggregator agr) throws RepoxException;\n\n /**\n * Retrieve a Provider given a specific Id\n * \n * @param providerId\n * @return specific provider\n * @throws RepoxException\n */\n eu.europeana.uim.repox.rest.client.xml.Provider retrieveProvider(String providerId)\n throws RepoxException;\n\n /**\n * Retrieve a Provider given a specific mnemonic\n * \n * @param mnemonic\n * @return specific provider\n * @throws RepoxException\n */\n eu.europeana.uim.repox.rest.client.xml.Provider retrieveProviderByMetadata(String mnemonic)\n throws RepoxException;\n}",
"@Then(\"^the user expects to see the Myaccount link$\")\n public void the_user_expects_to_see_the_Myaccount_link() throws Throwable {\n throw new PendingException();\n }",
"@Override\n public void withdraw(double amount) {\n try {\n if (amount > 1000) {\n throw new InvalidFundingAmountException(amount);\n }\n if (this.getBalance() < 5000) {\n throw new InsufficientFundsException(amount);\n }\n doWithdrawing(amount);\n } catch (BankException e) {\n System.out.println(e.getMessage());\n }\n }",
"@Test\n public void testPlaceIcebergOrder(){\n BinanceApi.PlaceOrderRequest placeOrderRequest = new BinanceApi.PlaceOrderRequest();\n placeOrderRequest.setOrderSide(BinanceApi.OrderSide.BUY);\n placeOrderRequest.setSymbol(\"LTCBTC\");\n placeOrderRequest.setPrice(new BigDecimal(\"0.005\"));\n placeOrderRequest.setQuantity(new BigDecimal(\"1\"));\n placeOrderRequest.setIcebergQty(new BigDecimal(\"2\"));\n try{\n binanceApi.placeLimitOrder(placeOrderRequest);\n Assert.fail(\"iceberg order is supported\");\n }catch (BinanceApi.BinanceException ex){\n Assert.assertEquals(ex.getCode(), new Integer(-1013));\n }\n }",
"@Test\n\t\tpublic void testGetBestOffer()\n\t\t{\t\t\t\n\t\t\tassertEquals(\"Best bid incorrect\", sellOrder1, exchange.getBestOffer(stock));\n\t\t}",
"@Override\n\tprotected void check() throws SiDCException, Exception {\n\t\tif (entity == null) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of request.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getStatus())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of status.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getLangcode())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of lang code.\");\n\t\t}\n\t}",
"Bond investmentGetBond(String bondName) throws BankException, BondException {\n throw new BankException(\"This account does not support this feature\");\n }",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"@Override\n\tpublic int checkBill(MarketTransaction t) {\n\t\treturn 0;\n\t}",
"@Test\n\tvoid grantScholarshipRejected() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(168);\n\t\tassertEquals(null,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}",
"boolean hasAdvertisingPartner();",
"@Override\n public void onFailure(Call<Business> call, Throwable t) {\n\n }",
"public com.vodafone.global.er.decoupling.binding.request.B2BPartnerType createB2BPartnerType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.B2BPartnerTypeImpl();\n }",
"public void throwBait() {\n\t\tpokemon.eatBait();;\n\t}",
"@Test(expected = SkuNotFoundException.class)\n public void getPriceNonExistentSkuThrowsException() throws SkuNotFoundException {\n\texpect(mockedDependency.getPriceBySku(BAD_SKU)).andReturn(null);\n\n\t// Set mocks into testing mode.\n\treplay(mockedDependency);\n\n\tsystemUnderTest.getPrice(BAD_SKU);\n }",
"@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }",
"@Test\n public void bookHotelTestError3() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tobiasen Inge\", \"50408823\", 9, 10);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The account has not enough money\",e.getMessage());\n } \n }",
"@Test(expected=Exception.class)\n public void withdraw1100FromAccount_shouldThrowException() throws Exception{\n account.withdraw(1100);\n }",
"@Test\n public void creditDenied() throws Exception {\n Application app = new Application();\n app.setName(\"bill whatwhatwhat\");\n app.setCreditScore(400);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertFalse(result.isApproved());\n }",
"@Override\n\tpublic String queryLostFindGoods(String waybillNo) {\n\t\treturn null;\n\t}",
"public void failure(RetrofitError arg0) {\n\t\t\t\t\n\t\t\t}",
"public void failure(RetrofitError arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void OkHereIsMoney(double amount) {\n\t\t\n\t}",
"@Test\n\t\tpublic void testKudomonStolen() throws KudomonCantBeCaughtException {\n\t\t thrown.expect(KudomonCantBeCaughtException.class);\n\t\t thrown.expectMessage(\"aggron has been stolen from you!\");\n\t\t testTrainer1.attemptCapture(aggron);\n\t\t testTrainer2.attemptCapture(aggron);\n\t\t}",
"@Override\n public void onCancel(DialogInterface dialog) {\n onProviderInstallerNotAvailable();\n }",
"@Override\n public void onFailure(final Throwable t) {\n final PoyntError error = new PoyntError(PoyntError.CHECK_CARD_FAILURE);\n error.setThrowable(t);\n try {\n listener.onResponse(balanceInquiry, error);\n } catch (final RemoteException e) {\n Log.e(TAG, \"Failed to respond\", e);\n }\n }",
"public void onError() {\n Toast.makeText(StoneSDK.this.cordova.getActivity(), \"Erro na ativacao do aplicativo, verifique a lista de erros do provider\", Toast.LENGTH_SHORT).show();\n\n /* Chame o metodo abaixo para verificar a lista de erros. Para mais detalhes, leia a documentacao: */\n callbackContext.error(provider.getListOfErrors().toString());\n\n }"
] | [
"0.611122",
"0.60145307",
"0.5897577",
"0.5684624",
"0.5678194",
"0.56466186",
"0.5613034",
"0.556052",
"0.55535",
"0.5440334",
"0.5422324",
"0.54076254",
"0.53996885",
"0.53969496",
"0.5353785",
"0.52762973",
"0.5262252",
"0.5226833",
"0.520438",
"0.5181065",
"0.5168397",
"0.51586235",
"0.5154215",
"0.51462996",
"0.5135169",
"0.51193017",
"0.51128095",
"0.51096445",
"0.51078564",
"0.51073974",
"0.5105731",
"0.510039",
"0.50957614",
"0.5075329",
"0.5074581",
"0.507334",
"0.5071118",
"0.5055082",
"0.50464517",
"0.5042722",
"0.5037821",
"0.5036677",
"0.50360155",
"0.5028783",
"0.50250334",
"0.5019779",
"0.50160253",
"0.5015295",
"0.5011738",
"0.50057155",
"0.49955884",
"0.4990213",
"0.49901906",
"0.49795225",
"0.49764302",
"0.49639642",
"0.49597654",
"0.49537227",
"0.49537227",
"0.49495587",
"0.49440837",
"0.49424934",
"0.4942214",
"0.4941969",
"0.49356022",
"0.49344653",
"0.49308023",
"0.4918054",
"0.4907972",
"0.48958766",
"0.48924294",
"0.48923188",
"0.48914686",
"0.4878144",
"0.48773986",
"0.48731172",
"0.48713005",
"0.48675656",
"0.48578176",
"0.4857633",
"0.48566493",
"0.48564154",
"0.48530224",
"0.4845254",
"0.48370346",
"0.48342225",
"0.48272577",
"0.48222768",
"0.48189598",
"0.48089984",
"0.4808656",
"0.48057756",
"0.48032972",
"0.4800317",
"0.4800317",
"0.47963145",
"0.47959188",
"0.4791229",
"0.47862586",
"0.47845885"
] | 0.72058034 | 0 |
Initializes all the views in the fragment. | private void initializeFields(View view) {
aboutUsButton = (Button) view.findViewById(R.id.aboutUsButton);
contactUsButton = (Button) view.findViewById(R.id.contactUsButton);
upcomingEventsButton = (Button) view.findViewById(R.id.upcomingEventsButton);
makeADonationButton = (Button) view.findViewById(R.id.makeADonationButton);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}",
"@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}",
"private void initializeViews() {\n list_latest_feeds = (RecyclerView) mView.findViewById(R.id.list_latest_feeds);\n swipeRefreshLayout = (SwipeRefreshLayout) mView.findViewById(R.id.swipeRefreshLayout);\n disabler = new RecyclerViewDisabler();\n swipeRefreshLayout.setOnRefreshListener(this);\n InterfaceListener.setOnDeleteListener(LatestFragment.this);\n\n initRecyclerView();\n }",
"private void initView() {\n List<Fragment> fragmentList = new ArrayList<>();\n fragmentList.add(new FourthFragment());\n fragmentList.add(new FifthFragment(imagePath));\n// set titles\n List<String> title = new ArrayList<>();\n title.add(\"第一页\");\n title.add(\"第二页\");\n// set the adapter\n viewPager.setAdapter(new FragmentPagerAdapter(getChildFragmentManager()) {\n @NonNull\n @NotNull\n @Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }\n\n @Override\n public int getCount() {\n return fragmentList.size();\n }\n\n @Nullable\n @org.jetbrains.annotations.Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return title.get(position);\n }\n });\n tabLayout.setupWithViewPager(viewPager);\n }",
"private void initViews() {\n\n }",
"private void initViews() {\n mDatabaseHandler = DatabaseHandler.getInstance(HomeActivity.this);\n Toolbar toolbar = (Toolbar) findViewById(R.id.activity_home_toolbar);\n setSupportActionBar(toolbar);\n mFab = (FloatingActionButton) findViewById(R.id.activity_home_fab);\n mMonthsList = new ArrayList<>();\n }",
"private void initializeViews() {\n avatarView = (AvatarView) findViewById(R.id.avatarImage);\n userNameText = (TextView) findViewById(R.id.user_profile_name);\n userJoinedText = (TextView) findViewById(R.id.user_date_joined);\n followingButton = (Button) findViewById(R.id.following_btn);\n backButton = (ImageButton) findViewById(R.id.back_button);\n settingButton = (ImageButton) findViewById(R.id.settings_button);\n cameraButton = (ImageButton) findViewById(R.id.camera_button);\n\n cameraButton.setVisibility(View.GONE);\n settingButton.setVisibility(View.GONE);\n\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n }",
"private void initViews() {\n\t\tmViewPager = (ViewPager) findViewById(R.id.view_pager); \n mIndicator = (IconTabPageIndicator) findViewById(R.id.indicator); \n fragments = initFragments(); \n FragmentAdapter adapter = new FragmentAdapter(fragments, getSupportFragmentManager()); \n mViewPager.setAdapter(adapter); \n mIndicator.setViewPager(mViewPager); \n mViewPager.setCurrentItem(whichPage);\n \n \n \n\t}",
"private void initViews() {\n\n\t}",
"public void initViews(){\n }",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"public void initViews() {\n View accountExists = activity.findViewById(R.id.button_register);\n Button buttonSubmitAuth = activity.findViewById(R.id.button_login);\n\n viewUsername = activity.findViewById(R.id.login_username);\n viewPassword = activity.findViewById(R.id.login_password);\n\n accountExists.setOnClickListener(view ->\n activity.setViewPagerCurrentItem(OnboardingActivity.Companion.getFRAGMENT_REGISTRATION()));\n\n buttonSubmitAuth.setOnClickListener(view -> authenticateUser());\n }",
"private void initViews() {\n mTvBalance = findViewById(R.id.tv_receive_client_balance);\n mListView = findViewById(R.id.lv_list_receive_client);\n mFab = findViewById(R.id.fab_receive_receip);\n mTvEmpty = findViewById(R.id.tv_empty_view);\n mIvEmpty = findViewById(R.id.iv_empty_view);\n mEmptyView = findViewById(R.id.empty_view);\n }",
"private void viewInit() {\n }",
"private void initViews() {\n\n if (blockListAdapter != null) {\n blockListAdapter = null;\n }\n\n swipeRefreshLayout.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n rv_swipe_refresh_tv.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n rv_swipe_refresh_tv.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n noResultRefreshTextView.setOnClickListener(this);\n\n if (swipeRefreshLayout != null) {\n swipeRefreshLayout.post(new Runnable() {\n @Override\n public void run() {\n swipeRefreshLayout.setRefreshing(true);\n firstNetworkCall();\n }\n });\n }\n\n btnBack.setOnClickListener(this);\n }",
"private void initViews() {\n setActionBarTitle(R.string.my_energy_metabolism);\n mViewPager = (CustomViewPager) findViewById(R.id.viewPager);\n }",
"@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initView();\n }",
"private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}",
"protected abstract void initViews();",
"@Override\r\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\r\n\t\tfindViews(view);\r\n\t\tinitViews(savedInstanceState);\r\n\t}",
"public abstract void initViews();",
"@Override\n protected void initViews() {\n ButterKnife.bind(this);\n effcetTitleTablayout.setupWithViewPager(effectViewpager);\n adapter = new EffectViewPagerAdapter(getSupportFragmentManager());\n effectViewpager.setAdapter(adapter);\n }",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"private void initializeViews()\n {\n scrMainContainer = findViewById(R.id.scrMainContainer);\n btnBack = findViewById(R.id.btnBack);\n etEmail = findViewById(R.id.etEmail);\n tvEmailError = findViewById(R.id.tvEmailError);\n etUsername = findViewById(R.id.etUsername);\n tvUsernameError = findViewById(R.id.tvUsernameError);\n etPassword = findViewById(R.id.etPassword);\n tvPasswordError = findViewById(R.id.tvPasswordError);\n btnCreateAccount = findViewById(R.id.btnCreateAccount);\n relLoadingPanel = findViewById(R.id.relLoadingPanel);\n }",
"public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}",
"protected abstract void initViews(View mView);",
"@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initViews(view);\n // L.e(TAG, \"msg: onViewCreated\" + city);\n }",
"private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\n }",
"private void initView() {\n\n }",
"private void initView() {\n frag4 = new Fragment4();\n //Fragment2 frag2 = new Fragment2();\n Fragment3 frag3 = new Fragment3();\n\n fragments = new Fragment[]{frag4, frag3}; // 要把Fragment*.java中import android.support.v4.app.Fragment;才行。否则不能添加进来。\n\n\n imageViews = new ImageView[2];\n imageViews[0] = (ImageView) findViewById(R.id.iv_zhuye);\n imageViews[1] = (ImageView) findViewById(R.id.iv_wode);\n imageViews[0].setSelected(true);\n\n textViews = new TextView[2];\n textViews[0] = (TextView) findViewById(R.id.tv_zhuye);\n textViews[1] = (TextView) findViewById(R.id.tv_wode);\n textViews[0].setTextColor(ContextCompat.getColor(getApplicationContext(),R.color.selected));\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.LL_content_main, frag4)\n .add(R.id.LL_content_main, frag3)\n .hide(frag3)\n .show(frag4)\n .commit();\n\n LinearLayout ll_zhuye = (LinearLayout) findViewById(R.id.LL_zhuye);\n LinearLayout ll_wode = (LinearLayout) findViewById(R.id.LL_wode);\n\n ll_zhuye.setOnClickListener(this);\n ll_wode.setOnClickListener(this);\n\n }",
"private void initViews() {\n ListFragment listFragment = ListFragment.newInstance();\n fragmentManager.beginTransaction().replace(R.id.holder, listFragment, \"List fragment\").commit();\n\n if (findViewById(R.id.detail_fragment) != null) {\n isTablet = true;\n DetailFragment detailFragment = DetailFragment.newInstance();\n fragmentManager.beginTransaction().replace(R.id.detail_fragment, detailFragment, \"Detail fragment\").addToBackStack(null).commit();\n }\n }",
"private void initViews() {\n\t\t// TODO Auto-generated method stub\n\t\t// venuePager = (ViewPager)findViewById(R.id.pager);\n\n\t\tmyGallery = (LinearLayout) findViewById(R.id.horizontalScrollItems);\n\n\t\tvenueImageLarge = (ImageView) findViewById(R.id.imageVenueLarge);\n\n\t\tinfoImageView = (ImageView) findViewById(R.id.imageInfo);\n\n\t\tcloseBtn = (ImageView) findViewById(R.id.imageclose);\n\n\t\tvenueCapacity = (TextView) findViewById(R.id.venueCapacity);\n\n\t\tvenueDes = (TextView) findViewById(R.id.venueDes);\n\n\t\tvenueName = (TextView) findViewById(R.id.venueName);\n\n\t\tvenueRelative = (RelativeLayout) findViewById(R.id.venue_relative);\n\n\t\tviewAnimator = (ViewAnimator) this.findViewById(R.id.viewFlipper_venue);\n\n\t\tvenueFullname = (TextView) findViewById(R.id.venueFullnameValue);\n\n\t\tvenueCity = (TextView) findViewById(R.id.venueCityValue);\n\n\t\tvenueOwner = (TextView) findViewById(R.id.venueOwnerValue);\n\n\t\tvenueOpened = (TextView) findViewById(R.id.venueOpenedValue);\n\n\t\tvenueSurface = (TextView) findViewById(R.id.venueSurfaceValue);\n\n\t\tvenueWebsite = (TextView) findViewById(R.id.venueWebsiteValue);\n\n\n\t}",
"private void initView() {\n\t\tbtnMapMode = contentView.findViewById(R.id.venue_iv_map);\n\t\tbtnMapMode.setOnClickListener(this);\n\t\tbtnSearch = contentView.findViewById(R.id.venue_iv_search);\n\t\tbtnSearch.setOnClickListener(this);\n\t\temptyView = contentView.findViewById(R.id.event_ll_empty);\n\t\temptyView.findViewById(R.id.event_empty_other_area).setOnClickListener(\n\t\t\t\tthis);\n\t\temptyView.findViewById(R.id.event_empty_add_event).setOnClickListener(\n\t\t\t\tthis);\n\n\t\tglHotImage = (ViewPager) vHeader.findViewById(R.id.header_viewpager);\n\t\tllIndic = (LinearLayout) vHeader.findViewById(R.id.header_ll_indic);\n\t\tbtnPlace = (Button) vHeader.findViewById(R.id.header_btn_place);\n\t\tbtnVenue = (Button) vHeader.findViewById(R.id.header_btn_venue);\n//\t\tviewGroup = (ViewGroup) vHeader.findViewById(R.id.viewGroup);\n\t\tbtnPlace.setOnClickListener(this);\n\t\tbtnVenue.setOnClickListener(this);\n\n\t\tmPullRefreshListView = (PullToRefreshListView) contentView\n\t\t\t\t.findViewById(R.id.venue_lv);\n\t\tmPullRefreshListView.setMode(Mode.BOTH);\n\t\tmListView = mPullRefreshListView.getRefreshableView();\n\t\tmListView.setHeaderDividersEnabled(false);\n\t\tmPullRefreshListView.getRefreshableView().setSelector(\n\t\t\t\tnew ColorDrawable(Color.TRANSPARENT));\n\t\t// android.R.color.transparent\n\t\t// mListView.setEmptyView(emptyView);\n\t\tmPullRefreshListView.setOnItemClickListener(this);\n\t\tmListView.addHeaderView(vHeader, null, true);\n\t\tmListView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY);\n\t\tmAdapter = new VenueListAdapter(getActivity(), mList);\n\t\tmPullRefreshListView.setAdapter(mAdapter);\n\t\tmPullRefreshListView.setOnRefreshListener(this);\n\t\tglHotImage.setOnPageChangeListener(new HeaderChangeListener());\n\t\tif (null != pagerAdapter) {\n\t\t\tpagerAdapter.notifyDataSetChanged();\n\t\t}\n\t}",
"private void init() {\n initView();\n setListener();\n }",
"private void init() {\n\t\tpager = (MainViewPager) findViewById(R.id.main_pager);\n\t\tfrageManager = getSupportFragmentManager();\n\t\tfoot_group = (RadioGroup) findViewById(R.id.foot_group);\n\t\tadapter = new MyFragmentAdapter(frageManager, list);\n\t}",
"private void initFragments() {\n\t\tZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null);\n\t\tzhiBoFragment.setSquareFragmentListener(this);\n\t\tLiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null);\n\t\tliaotianFragment.setSquareFragmentListener(this);\n\t\tfragments.add(zhiBoFragment);\n\t\tfragments.add(liaotianFragment);\n\t\t\n\t\t\n\t}",
"public void initView(){}",
"private void initView() {\n mBinding.swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n\n mBinding.swipeRefresh.setRefreshing(false);\n }\n });\n\n\n setUpBookingRecycler();\n bindStaticData();\n setUpBookingAdapter();\n }",
"private void initView() {\n\t\tmSeekButton = (Button) findViewById(R.id.seekButton);\r\n\t\tmViewPager = (ViewPager) findViewById(R.id.viewPager);\r\n\t}",
"private void initViews() {\n webView = (WebView)findViewById(R.id.crop_webview);\n confirm_location = (Button)findViewById(R.id.btn_confirm_location);\n toolbar = (Toolbar)findViewById(R.id.map_toolbar);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.main_layout_holder);\r\n\t\tinitFragments();\r\n\t}",
"private void initView() {\n initRefreshListView(mListview);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_locallife, null);\n Myinitview();\n MyinitData();\n //mGridView.setAdapter(new LocalAdapter());\n return view;\n }",
"private void initViews() {\n\t\tet_area = (EditText) findViewById(R.id.et_area);\r\n\t\tbtn_search = (Button) findViewById(R.id.btn_search);\r\n\t\tll_main = (LinearLayout) findViewById(R.id.ll_main);\r\n\t}",
"private void initView() {\n\t\tfragment_viewpager = (ViewPager) findViewById(R.id.fragment_viewpager);\n\n\t\tMain_bottom_change one = (Main_bottom_change) findViewById(R.id.Main_bottom_1);\n\t\tMain_bottom_change two = (Main_bottom_change) findViewById(R.id.Main_bottom_2);\n\t\tMain_bottom_change three = (Main_bottom_change) findViewById(R.id.Main_bottom_3);\n\n\t\tmTabIndicator.add(one);\n\t\tmTabIndicator.add(two);\n\t\tmTabIndicator.add(three);\n\n\t\tone.setOnClickListener(this);\n\t\ttwo.setOnClickListener(this);\n\t\tthree.setOnClickListener(this);\n\n\t\tone.setIconAlpha(1.0f);\n\t}",
"@SuppressLint(\"ResourceAsColor\")\r\n\tprivate void initView() {\n\t\tfriendOneBtn = (Button)getActivity().findViewById(R.id.friend_one_btn);\r\n\t\tfriendTwoBtn = (Button) getActivity().findViewById(R.id.friend_two_btn);\r\n\t\tcursorImage = (ImageView)getActivity().findViewById(R.id.cursor);\r\n\t\t// 进入添加好友页\r\n\t\tfriendOneBtn.setOnClickListener(listener);\r\n\t\tfriendTwoBtn.setOnClickListener(listener);\r\n\t\t\r\n\t\tunreadLabel = (TextView) getActivity().findViewById(R.id.unread_msg_number);\r\n unreadAddressLable = (TextView) getActivity().findViewById(R.id.unread_address_number);\r\n ImageView addContactView = (ImageView) getView().findViewById(R.id.iv_new_contact);\r\n\t\t// 进入添加好友页\r\n\t\taddContactView.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tstartActivity(new Intent(getActivity(), AddContactActivity.class));\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"void initView();",
"private void initViews() {\n textViewRole = findViewById(R.id.textViewAddress);\n recyclerViewUsers = findViewById(R.id.recyclerViewUsers);\n appCompatButtonAddProperty = findViewById(R.id.appCompatButtonAddProperty);\n }",
"@Override\n\tprotected void initView() {\n\t\tsetShuohuaTouchListener();\n\t\tiv_shuohua.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tiv_operate.setSelected(!iv_operate.isSelected());\n\t\t\t\tiv_shuohua.setSelected(!iv_shuohua.isSelected());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tmViewPager.setOnPageChangeListener(new OnPageChangeListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onPageSelected(int position)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcurrentPosition = position;\n\t\t\t\tif (position == 0) {// 直播\n\t\t\t\t\tZhiBoFragment fragment = ((ZhiBoFragment) fragments\n\t\t\t\t\t\t\t.get(position));\n\t\t\t\t\tif (liveModels == null || liveModels.size() == 0) {\n\t\t\t\t\t\t//暂停计时器查询\n\t\t\t\t\t\tstopTimeTask();\n\t\t\t\t\t\t\n\t\t\t\t\t\tsquareLiveDetailLiveRequest(fragment, false,0);\n\t\t\t\t\t}\n\t\t\t\t} else if (position == 1) {// 聊天\n\t\t\t\t\tLiaotianFragment fragment = ((LiaotianFragment) fragments\n\t\t\t\t\t\t\t.get(position));\n\t\t\t\t\tif (chatModels == null || chatModels.size()==0) {\n\t\t\t\t\t\t//暂停计时器查询\n\t\t\t\t\t\tstopTimeTask();\n\t\t\t\t\t\t\n\t\t\t\t\t\tsquareLiveDetailChatRequest(fragment, false,0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPageScrolled(int position, float positionOffset,\n\t\t\t\t\tint positionOffsetPixels)\n\t\t\t{\n\t\t\t\tmIndicator.scroll(position, positionOffset);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPageScrollStateChanged(int state)\n\t\t\t{\n\n\t\t\t}\n\t\t});\n\t}",
"private void init() {\n refreshLayout = new TurbolinksSwipeRefreshLayout(getContext(), null);\n addView(refreshLayout, 0);\n }",
"private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n LayoutInflater inflater = getActivity().getLayoutInflater();\n if (mainView == null) {\n mainView = inflater.inflate(R.layout.fragment_mywarrelease, null);\n mContext = inflater.getContext();\n initView();\n }\n }",
"private void initializeViews()\n {\n ButterKnife.bind(this);\n\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n rv_my_vehicles.setLayoutManager(layoutManager);\n rv_my_vehicles.setAdapter(myVehiclesAdapter);\n\n myVehiclesAdapter.setParent(getIntent().getIntExtra(COMING_FROM,0));\n presenter.fetchMyVehicles();\n progressDialog = alerts.getProcessDialog(this);\n progressDialog.setCancelable(false);\n\n tv_all_tool_bar_title.setText(my_vehicles);\n tv_all_tool_bar_title.setTypeface(appTypeface.getPro_narMedium());\n tv_add_new_vehicle.setTypeface(appTypeface.getPro_narMedium());\n tv_vehicles_empty.setTypeface(appTypeface.getPro_narMedium());\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initView();\n }",
"private void initViews() {\n user_name = (LinearLayout)findViewById(R.id.user_name);\n user_photo = (LinearLayout)findViewById(R.id.user_photo);\n user_sex = (LinearLayout)findViewById(R.id.user_sex);\n user_notes = (LinearLayout)findViewById(R.id.user_notes);\n name = (TextView)findViewById(R.id.name);\n sex = (TextView)findViewById(R.id.sex);\n notes = (TextView)findViewById(R.id.notes);\n email = (TextView)findViewById(R.id.email);\n photo = (ImageView)findViewById(R.id.photo);\n }",
"public void initViews() {\n rb_greenTablet = findViewById(R.id.green_tablet);\n rb_blackTablet = findViewById(R.id.black_tablet);\n rb_fireTablet = findViewById(R.id.fire_tablet);\n }",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"protected void initView(View rootView) {\n\n }",
"@Override\n public void initView() {\n }",
"private void initializeViews(Context context) {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n inflater.inflate(R.layout.progressive_next_view_layout, this);\n }",
"private void initViews(){\n tvName = findViewById(R.id.textViewLoggedUserName);\n recyclerViewUsers = findViewById(R.id.recyclerViewUsers);\n }",
"private void initViews(View view) {\n\n tvEmptyView = view.findViewById(R.id.tv_empty_view);\n swipeRefreshLayout = (SwipeRefreshLayout) view.findViewById(R.id.swipe_refresh_layout);\n\n contentLayout = view.findViewById(R.id.content_layout);\n\n RecyclerView.LayoutManager manager = new LinearLayoutManager(view.getContext());\n RecyclerView mRecyclerView = (RecyclerView) contentLayout;\n mRecyclerView.setLayoutManager(manager);\n\n String sportsType = getRequestParameters().get(ScoresContentHandler.PARAM_SPORTS_TYPE);\n mAdapter = new BroadcastListAdapter(sportsType, commentaries, view.getContext());\n mRecyclerView.setAdapter(mAdapter);\n mAdapter.notifyDataSetChanged();\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n\n @Override\n public void onRefresh() {\n requestContent();\n }\n\n });\n }",
"protected abstract void initView();",
"protected abstract void initializeView();",
"@Override\n protected void initView()\n {\n ed_name = findView(R.id.ed_name);\n ed_bank = findView(R.id.ed_bank);\n ed_bank_card = findView(R.id.ed_bank_card);\n ed_bank_name = findView(R.id.ed_bank_name);\n btn_submit = findView(R.id.btn_submit);\n findView(R.id.ib_back).setOnClickListener(this);\n Toolbar toolbar = findView(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n initUI(view);\n initData();\n setEventBus(this, true);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_games, container, false);\n\n init();\n\n\n\n return rootView;\n }",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"private void inflateViews() {\n toolbar = findViewById(R.id.toolbar);\n viewPager = findViewById(R.id.view_pager);\n tabLayout = findViewById(R.id.tab_layout);\n toolbar.setTitle(\"ChatApp\");\n setSupportActionBar(toolbar);\n }",
"private void initUi() {\n mToolbsr = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(mToolbsr);\n\n fab = (FloatingActionButton) findViewById(R.id.fab);\n mDrawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);\n mNavigationView = (NavigationView) findViewById(R.id.nav_view);\n\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n }",
"private void initViews() {\n nestedScrollView = (NestedScrollView) findViewById(R.id.nestedScrollView);\n textInputLayoutUsername = (TextInputLayout) findViewById(R.id.textInputLayoutUsername);\n textInputLayoutPassword = (TextInputLayout) findViewById(R.id.textInputLayoutPassword);\n textInputEditTextUsername = (TextInputEditText) findViewById(R.id.textInputEditTextUsername);\n textInputEditTextPassword = (TextInputEditText) findViewById(R.id.textInputEditTextPassword);\n appCompatButtonLogin = (AppCompatButton) findViewById(R.id.appCompatButtonLogin);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mainfragment, container, false);\n init(view);\n return view;\n }",
"private void initView(){\n\t\tinitSize();\n\t\tinitText();\n\t\tinitBackground();\n\t\tthis.setOnClickListener(this);\n\t\tthis.setOnLongClickListener(this);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"private void initializeViews(Context context) {\n LayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n inflater.inflate(R.layout.field_spinner_field, this);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n globalContext = this.getContext();\n globalFragmentActivity = this.getActivity();\n\n setUI(view);\n SharedPreferencesService.initialize(globalContext);\n setListeners();\n initializeFragment();\n initializeAdBanner();\n showWelcomeDialogIfFirstTime();\n return view;\n }",
"private void instanciateFragments() {\r\n connectionFragment = new ConnectionFragment();\r\n mNetworkConnectionFragment = new NetworkConnectionFragment();\r\n mMotorFragment = new MotorFragment();\r\n mProcessorFragment = new ProcessorFragment();\r\n mPWMFragment = new PWMFragment();\r\n mOrderTestFragment = new OrderTestFragment();\r\n mTestsFragment = new TestsFragment();\r\n mPositionTestFragment = new PositionTestFragment();\r\n mOrderPilotFragment = new OrderPilotFragment();\r\n mCommandPilotFragment = new CommandPilotFragment();\r\n mPositionPilotFragment = new PositionPilotFragment();\r\n mCartographerFragment = new CartographerFragment();\r\n mHistoryFragment = new HistoryFragment();\r\n }",
"@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\t if (arg0 != null) {\n\t\t\t arg0.putParcelable(\"android:support:fragments\",null);\n\t }\n\t\t super.onCreate(arg0);\n\t\t requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t setLayout();\n\t\t // 注入控件\n\t ViewUtils.inject(this);\n\t\t init(arg0);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_cases, container, false);\n Init(view);\n return view;\n }",
"private void initViews() {\r\n etEmail = findViewById(R.id.et_mail);\r\n etVerifyCode = findViewById(R.id.et_l_verifyCode);\r\n etNewPsw = findViewById(R.id.et_new_psw);\r\n etConfirmPsw = findViewById(R.id.et_confirm_psw);\r\n }",
"private void initializeViews(Context context) {\n this.context = context;\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n inflater.inflate(R.layout.alphabet_indexer_view, this);\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState)\r\n {\r\n super.onCreateView(inflater, container, savedInstanceState); \r\n View view = inflater.inflate(R.layout.fragment_quiz, container,false);\r\n \r\n fileNameList = new ArrayList<String>();\r\n quizCountriesList = new ArrayList<String>();\r\n random = new SecureRandom();\r\n handler = new Handler();\r\n // load the shake animation that's used for incorrect answers\r\n // animation repeats 3 times \r\n\r\n // get references to GUI components\r\n\r\n // configure listeners for the guess Buttons\r\n // set questionNumberTextView's text\r\n // returns the fragment's view for display\r\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.tab_news_layout_holder);\r\n\t\tinitFragment();\r\n\t}",
"private void initViews() {\n vpSplashPager = findViewById(R.id.vp_splash);\n pageIndicatorView = findViewById(R.id.pageIndicatorView);\n tvSplashDesc = findViewById(R.id.tv_splash_desc);\n tvSplashSkip = findViewById(R.id.tv_splash_skip);\n tvSplashTitle = findViewById(R.id.tv_splash_title);\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}",
"private void initViews() {\n View view = getView();\n if (view != null) {\n edtConfirmPassword = view.findViewById(R.id.edt_reg_confim_password);\n edtConfirmPassword.setTag(\"Confirm Password\");\n edtEmail = view.findViewById(R.id.edt_reg_email);\n edtEmail.setTag(\"Email\");\n edtPhone = view.findViewById(R.id.edt_reg_phone);\n edtPhone.setTag(\"Phone\");\n edtPassword = view.findViewById(R.id.edt_reg_password);\n edtPassword.setTag(\"Password\");\n tv_RegisterSignIn = view.findViewById(R.id.tv_register_sign_in);\n btn_reg_signup = view.findViewById(R.id.btn_reg_signup);\n edtUserName = view.findViewById(R.id.edt_reg_name);\n edtUserName.setTag(\"Name\");\n }\n }",
"private void initMonthView(Bundle savedInstanceState) {\n if (savedInstanceState == null) {\n HugListFragment hugFragment = new HugListFragment();\n getFragmentManager().beginTransaction()\n .replace(R.id.main_container, hugFragment, TAG_MONTH_FRAGMENT)\n .commit();\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"private void init(View view) {\n\t\t\r\n\t\tFunSub = (CustemGallery)view.findViewById(R.id.FragMain_Pack);\r\n\t\t\r\n\t\tfragMain_Pack_CustemCalleryAdapter = new FragMain_Pack_CustemCalleryAdapter(getActivity());\r\n\t\t\r\n\t\tFunSub.setAdapter(fragMain_Pack_CustemCalleryAdapter);\r\n\t\t\r\n\t\t\r\n\t}",
"private void setUpFragments() {\n fragmentList = new ArrayList<>();\n\n fragmentList.add(new PostListFragment());\n fragmentList.add(new AboutFragment());\n fragmentList.add(new LoginActivityFragment());\n\n }",
"public abstract void initView();",
"private void initViews() {\n appCompatButtonLogout = (AppCompatButton) findViewById(R.id.appCompatLogoutButton);\n appCompatButtonDelete = (AppCompatButton) findViewById(R.id.appCompatDeleteButton);\n\n }",
"@Override\n public void initView() {\n\n }",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}"
] | [
"0.8365351",
"0.75966036",
"0.7551107",
"0.75496596",
"0.7539028",
"0.75137246",
"0.7508593",
"0.7506489",
"0.7495448",
"0.7495202",
"0.7461255",
"0.7461255",
"0.7457442",
"0.73808885",
"0.7364875",
"0.73642355",
"0.7354452",
"0.73512125",
"0.73509896",
"0.7334281",
"0.7327672",
"0.7325313",
"0.7311652",
"0.7297057",
"0.7281833",
"0.7237493",
"0.7216188",
"0.7213351",
"0.72078466",
"0.72038776",
"0.7200815",
"0.71800214",
"0.71661997",
"0.71568006",
"0.7139675",
"0.71393627",
"0.7139037",
"0.7138475",
"0.71244174",
"0.71213466",
"0.7113532",
"0.71094507",
"0.7108957",
"0.7090124",
"0.70612925",
"0.70592034",
"0.70499176",
"0.7041007",
"0.7039102",
"0.7028326",
"0.7014719",
"0.6994646",
"0.699192",
"0.6984423",
"0.69720197",
"0.69650394",
"0.6961449",
"0.69457203",
"0.69457203",
"0.6942286",
"0.6932567",
"0.6928786",
"0.6928428",
"0.6924777",
"0.69225365",
"0.6919058",
"0.69100374",
"0.689014",
"0.6885405",
"0.68848217",
"0.68800265",
"0.68692166",
"0.6868256",
"0.68657124",
"0.6865419",
"0.6864811",
"0.686037",
"0.6857117",
"0.6848826",
"0.68479764",
"0.6845625",
"0.6844685",
"0.68423384",
"0.6839376",
"0.68185395",
"0.6808258",
"0.6807779",
"0.68060976",
"0.6804733",
"0.68041044",
"0.68036705",
"0.68009764",
"0.6800329",
"0.6797135",
"0.67953277",
"0.6792504",
"0.67918015",
"0.6787123",
"0.6786723",
"0.6786723",
"0.6763879"
] | 0.0 | -1 |
On click listeners for all the buttons on the fragment. | private void setButtonOnClickListeners() {
aboutUsButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
goToFragment(v, new AboutUsFragment());
}
});
contactUsButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
goToFragment(v, new ContactUsFragment());
}
});
upcomingEventsButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
goToFragment(v, new UpcomingEventsFragment());
}
});
makeADonationButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
goToFragment(v, new MakeADonationFragment());
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void listenButtons() {\n\n playGameButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.PLAY_GAME;\n startActivity();\n }\n });\n\n freePlayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.FREE_PLAY;\n startActivity();\n }\n });\n\n informationIcon.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mActivities = MyActivities.POP_UP;\n startActivity();\n }\n });\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmButtonListener.onButtonListener();\n\t\t\t}",
"public void onButtonPressed() {\n if (mListener != null) {\n mListener.onFragmentInteraction();\n }\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\n\t\t\tcase R.id.previousBtn:\n\t\t\t\t// 第一个按钮\n\t\t\t\tif (null != listener) {\n\t\t\t\t\tlistener.OnPreviousButtonClicked(ValueShopDialog.this);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.middleBtn:\n\t\t\t\t// 中间按钮\n\t\t\t\tif (null != listener) {\n\t\t\t\t\tlistener.OnMiddleButtonClicked(ValueShopDialog.this);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// 最后一个按钮\n\t\t\t\tValueShopDialog.this.dismiss();\n\t\t\t\tif (null != listener) {\n\t\t\t\t\tlistener.OnNextButtonClicked(ValueShopDialog.this);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"@Override\n public void onClick(View v) {\n mOnButtonClickListener.onButtonClicked(v);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mpesa, container, false);\n\n buttons = new ArrayList<Button>();\n for(int id : BUTTON_IDS){\n Button button = (Button) view.findViewById(id);\n button.setOnClickListener(myListener);\n buttons.add(button);\n }\n\n return view;\n }",
"private void setClickListeners() {\n buttonSomethingWentWrong.setOnClickListener(this);\n buttonSuggestion.setOnClickListener(this);\n buttonHighlightRequest.setOnClickListener(this);\n closeButton.setOnClickListener(this);\n }",
"public void Buttons() {\n\n //SET ON CLICK HOME\n homebutton.setOnClickListener(view -> {\n\n //SET TITLE\n textView.setText(R.string.available_orders);\n\n //SET HOME ICON AND TEXT COLOR\n homeicon.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.colorPrimaryDark), PorterDuff.Mode.SRC_IN);\n hometext.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.colorPrimaryDark));\n\n //SET NOTIFICATIONS ICON AND TEXT COLOR\n notificationsicon.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.colorDarkerGray), PorterDuff.Mode.SRC_IN);\n notofocationstext.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.colorDarkerGray));\n\n\n //ADD MAP FRAGMENT\n final OrdersFragment map = new OrdersFragment();\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.container, map);\n fragmentTransaction.commit();\n\n\n });\n\n //SET ON NOTIFICATIONS BUTTON\n notificationsbutton.setOnClickListener(view -> {\n\n //SET TITLE\n textView.setText(getString(R.string.notifications));\n\n //SET HOME ICON AND TEXT COLOR\n homeicon.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.colorDarkerGray), PorterDuff.Mode.SRC_IN);\n hometext.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.colorDarkerGray));\n\n //SET NOTIFICATIONS ICON AND TEXT COLOR\n notificationsicon.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.colorPrimaryDark), PorterDuff.Mode.SRC_IN);\n notofocationstext.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.colorPrimaryDark));\n\n //ADD MAP FRAGMENT\n final ClientNotificationsFragment map = new ClientNotificationsFragment();\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.container, map);\n fragmentTransaction.commit();\n\n });\n }",
"public void buttonOnClick(View v) {\n\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\n\t\t\tcase R.id.previousBtn:\n\t\t\t\t// 第一个按钮\n\t\t\t\tif (null != listener) {\n\t\t\t\t\tlistener.OnPreviousButtonClicked(DksDialog.this);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.middleBtn:\n\t\t\t\t// 中间按钮\n\t\t\t\tif (null != listener) {\n\t\t\t\t\tlistener.OnMiddleButtonClicked(DksDialog.this);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// 最后一个按钮\n\t\t\t\tDksDialog.this.dismiss();\n\t\t\t\tif (null != listener) {\n\t\t\t\t\tlistener.OnNextButtonClicked(DksDialog.this);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btn_create:\n SelectFragment(0);\n tabColorClear();\n btn_create.setBackground(getResources().getDrawable(R.drawable.lines_bg5));\n btn_create.setTextColor(Color.argb(255,66,143,219));\n break;\n case R.id.btn_add_option:\n if(!App.voteInfo.isFirstStepFinished()){\n Toast.makeText(StartActivity.this,\"请先完成第一步\",Toast.LENGTH_SHORT).show();\n return;\n }\n SelectFragment(1);\n tabColorClear();\n btn_add_option.setBackground(getResources().getDrawable(R.drawable.lines_bg5));\n btn_add_option.setTextColor(Color.argb(255,66,143,219));\n break;\n case R.id.btn_select_voters:\n if(!App.voteInfo.isSecondStepFinished()){\n Toast.makeText(StartActivity.this,\"请先完成第二步\",Toast.LENGTH_SHORT).show();\n return;\n }\n SelectFragment(2);\n tabColorClear();\n btn_select_voters.setBackground(getResources().getDrawable(R.drawable.lines_bg5));\n btn_select_voters.setTextColor(Color.argb(255,66,143,219));\n break;\n case R.id.btn_set_reward:\n if(!App.voteInfo.getIfSetReward()){\n Toast.makeText(StartActivity.this,\"还未开启设置奖励,请在第一步中开启\",Toast.LENGTH_SHORT).show();\n return;\n }\n if(!App.voteInfo.isThirdStepFinished()){\n Toast.makeText(StartActivity.this,\"请先完成第三步\",Toast.LENGTH_SHORT).show();\n return;\n }\n SelectFragment(3);\n tabColorClear();\n btn_set_reward.setBackground(getResources().getDrawable(R.drawable.lines_bg5));\n btn_set_reward.setTextColor(Color.argb(255,66,143,219));\n break;\n }\n }",
"@Override\n public void onClick(View view)\n {\n Logging.logD(\"moreFragment_onClick()\");\n switch (view.getId())\n {\n case R.id.more_btn_debug:\n {\n //debug yavp button was clicked\n startActivity(new Intent(getContext(), PlayerDebugActivity.class));\n break;\n }\n case R.id.more_btn_update_check:\n {\n //update check button was clicked\n checkForUpdate();\n break;\n }\n case R.id.more_btn_settings:\n {\n //settings button was clicked\n Intent settingsIntent = new Intent(getContext(), AppSettingsActivity.class);\n startActivity(settingsIntent);\n break;\n }\n case R.id.more_btn_donate:\n {\n //donation link was clicked\n openResLink(R.string.app_donate_url);\n break;\n }\n case R.id.more_btn_about:\n {\n //about link was clicked\n //TODO: directly go to \"about\" page\n Toast.makeText(getContext(), \"Click on \\\"About YAVP\\\" :P\", Toast.LENGTH_LONG).show();\n Intent settingsIntent = new Intent(getContext(), AppSettingsActivity.class);\n startActivity(settingsIntent);\n break;\n }\n case R.id.more_btn_help:\n {\n //help link was clicked\n openResLink(R.string.app_help_url);\n break;\n }\n }\n }",
"@Override\n\tprotected void setOnClickForButtons() {\n\t\tthis.buttons[0].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getActivity(), MainScreenActivity.class);\n\t\t\t\tstartActivity(i);\n\t\t\t\tMainFunctions.selectedOption = 1;\n\t\t\t\tdestroyServices();\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\t/* message box - onclick event */\n\t\tthis.buttons[1].setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdestroyServices();\n\t\t\t\tMainFunctions.selectedOption = 2;\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* one tick sound */\n\t\tfor (int i = 0; i < this.totalButtons; i++){\n\t\t\tfinal String desc = buttons[i].getTag().toString();\n\t\t\tbuttons[i].setOnFocusChangeListener(new View.OnFocusChangeListener() {\n\t\t\t\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\t\t\tif (hasFocus) {\n\t\t\t\t\t\tLog.i(TAG, \"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tlogFunctions.logTextFile(\"Button \" + desc + \" was selected\");\n\t\t\t\t\t\tspeakButton(desc, 1.0f, 1.0f);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"public void button_clicked(View v) {\n mCallback.onButtonClicked(v);\n }",
"public void addListenerOnButton() {\n\n\t\t//koppel de button code aan een widget en voeg een onclicklistener toe\n\t\tsettings = (Button) findViewById(R.id.settings);\n\n\t\tsettings.setOnClickListener(new OnClickListener() {\n\t\t\t//koppel de button aan een nieuw xml scherm wat opent\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Settings.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\n\t\t});\n\n\t\tsearch = (Button) findViewById(R.id.search);\n\n\t\tsearch.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Search.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\t\t});\n\t\tterug = (Button) findViewById(R.id.terug);\n\n\t\tterug.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tsetResult(RESULT_OK, intent);\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t});\n\n\n\t}",
"public void onButtonPressed(View v) {\n if (mListener != null) {\n mListener.onFragmentInteraction(v);\n }\n }",
"private void setupClickEvents() {\n ivAddNewCategory.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addNewCategory();\n }\n });\n }",
"@Override\n\tpublic void initListeners() {\n\t\tmClick.setOnClickListener(this);\n\t}",
"private void initListeners() {\n appCompatButtonLogout.setOnClickListener(this);\n appCompatButtonDelete.setOnClickListener(this);\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\n\t\tcase R.id.heat_wenkong_eashmodel_btn:\n\t\t\teasy_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_clicked);\n\t\t\tjingji_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tout_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tholiday_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tgetFragmentManager().beginTransaction().replace(R.id.heat_wenkong_setup_content_ll, new WenkongEasyFrag()).commit();\n\t\t\tbreak;\n\t\tcase R.id.heat_wenkong_economicalmodel_btn:\n\t\t\tjingji_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_clicked);\n\t\t\teasy_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tout_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tholiday_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tgetFragmentManager().beginTransaction().replace(R.id.heat_wenkong_setup_content_ll, new WenkongJingjiFrag()).commit();\n\t\t\tbreak;\n\t\tcase R.id.heat_wenkong_outdoormodel_btn:\n\t\t\tout_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_clicked);\n\t\t\tjingji_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\teasy_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tholiday_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tgetFragmentManager().beginTransaction().replace(R.id.heat_wenkong_setup_content_ll, new WenkongOutFrag()).commit();\n\t\t\tbreak;\n\t\tcase R.id.heat_wenkong_holidaymodel_btn:\n\t\t\tholiday_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_clicked);\n\t\t\tjingji_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tout_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\teasy_model_bt.setBackgroundResource(R.color.heat_wenkong_setup_normal);\n\t\t\tgetFragmentManager().beginTransaction().replace(R.id.heat_wenkong_setup_content_ll, new WenkongHolidayFrag()).commit();\n\t\t\tbreak;\n\t\t}\n\t}",
"protected void onClick() {\n for(Runnable action : onClick) action.run();\n }",
"private void OnClick(){\n onWidgetClickListener.onClick(getViewId());\n }",
"private void setOnClickListeners() {\n now_playing_previous_button.setOnClickListener(this::handleTransportControls);\n\n now_playing_play_button.setOnClickListener(this::handleTransportControls);\n\n now_playing_next_button.setOnClickListener(this::handleTransportControls);\n }",
"@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tlistener(v);\n\n\t\t}",
"public interface OnButtonClickedListener {\n public void onButtonClicked(View v);\n }",
"private void initListeners() {\n btnCadastrar.setOnClickListener(this);\n cadastrar.setOnClickListener(this);\n }",
"@Override\n public void onClick(View v) {\n buttonAddClicked();\n }",
"private void onClickEvents() {\n binding.createOfferOfferPeriodFrom.setOnClickListener(v -> openCalenderDialog(binding.createOfferOfferPeriodFrom, \"from\"));\n binding.createOfferOfferPeriodTo.setOnClickListener(v -> openCalenderDialog(binding.createOfferOfferPeriodTo, \"to\"));\n binding.createOfferSave.setOnClickListener(v -> {\n validation(offerTypeId);\n });\n\n binding.createOfferGenerateOfferIv.setOnClickListener(v -> {\n binding.createOfferGenerateOfferEditText.setText(getSaltString());\n });\n\n binding.createOfferIncludeExcludeProducts.setOnClickListener(v -> {\n\n if (offerId.equals(\"0\") || offerId.equals(\"\")) {\n utility.showDialog(\"Please select existing offer to include or exclude product\");\n }\n else {\n CreateOfferDirections.ActionCreateOfferFragmentToIncludeExcludeFragment action = CreateOfferDirections.actionCreateOfferFragmentToIncludeExcludeFragment();\n action.setOfferId(offerId);\n action.setMessage(offerCategoryName + \" Discount \" + amount + \" % \");\n navController.navigate(action);\n }\n });\n\n\n }",
"public void setListeners() {\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n settingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showEditDialog();\n }\n });\n\n cameraButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showChoosePictureDialog();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n onViewClickListener.onFabClick(v);\n }",
"public void onButtonPressed(ArrayList naleznosci, String KLUCZ) {\n if (mListener != null) {\n mListener.onFragmentInteraction(naleznosci, KLUCZ);\n }\n }",
"public void onButtonPressed(int status) {\n if (mListener != null) {\n mListener.onFragmentInteraction(status);\n }\n }",
"public void onClick(View v) {\n\n }",
"public void onClick(View v) {\n\n }",
"@Override\n protected void onAfterSetContentView() {\n super.onAfterSetContentView();\n View.OnClickListener onClickListener = new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n switch (v.getId()) {\n case R.id.btn_scan:\n btnSignalScan();\n break;\n default:\n break;\n }\n }\n };\n btn_scan.setOnClickListener(onClickListener);\n }",
"private void setOnClickListeners(){\n mDueDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickDate(mDueDateCalendar);\n }\n });\n mDueTime.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickTime(mDueDateCalendar);\n }\n });\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tllistenBtnset();\n\t\t\t}",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tint vid = v.getId();\r\n\t\tswitch (vid) {\r\n\t\tcase R.id.fragment_reward_sortname: {\r\n\t\t\tif (null != m_PDLV) {\r\n\t\t\t\tswitch (m_PDLV.getVisibility()) {\r\n\t\t\t\tcase View.VISIBLE: {\r\n\t\t\t\t\tm_tvSortName\r\n\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.common_tv_bg_pulldown_normal);\r\n\t\t\t\t\tm_PDLV.setVisibility(View.GONE);\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase View.GONE: {\r\n\t\t\t\t\tm_tvSortName\r\n\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.common_tv_bg_pulldown_open);\r\n\t\t\t\t\tm_PDLV.setVisibility(View.VISIBLE);\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\tbreak;\r\n\t\tcase R.id.fragment_reward_btn_search: {\r\n\t\t\t// 友盟统计--任务--搜索按钮\r\n\t\t\tUmShare.UmStatistics(m_Context, \"Reward_SearchButton\");\r\n\r\n\t\t\t// 隐藏下拉菜单\r\n\t\t\thidePullDownList();\r\n\r\n\t\t\t// 进入悬赏搜索条件设置界面\r\n\t\t\tIntent intent = new Intent();\r\n\t\t\tintent.setClass(m_Context, RewardSearchActivity.class);\r\n\t\t\tstartActivityForResult(intent,\r\n\t\t\t\t\tHeadhunterPublic.RESULT_ACTIVITY_CODE);\r\n\t\t}\r\n\t\t\tbreak;\r\n\t\tcase R.id.fragment_reward_btn_publishreward: {\r\n\t\t\t// 友盟统计\r\n\t\t\tUmShare.UmStatistics(m_Context, \"Reward_PublishrewardButton\");\r\n\r\n\t\t\t// 隐藏下拉菜单\r\n\t\t\thidePullDownList();\r\n\r\n\t\t\t// 判断是否登录\r\n\t\t\tif (checkISLogin()) {\r\n\t\t\t\t// 检查手机是否认证\r\n//\t\t\t\tcheckMobileAuthStatus();\r\n\t\t\t\tshowPublishRewardActivity();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\tbreak;\r\n\t\tcase R.id.fragment_reward_btn_type:\r\n\t\t\t{\r\n\t\t\t\t// 隐藏下拉菜单\r\n\t\t\t\thidePullDownList();\r\n\t\t\t\t\r\n\t\t\t\tm_bBtnTypeClick = true;\r\n\t\t\t\t\r\n\t\t\t\t// 切换数据类型(个人/公司)\r\n\t\t\t\tswitch(m_nRequestDataType){\r\n\t\t\t\tcase REQUEST_DATA_TYPE_COMPANY:\t\t// 点击之前是公司\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tm_nRequestDataType = REQUEST_DATA_TYPE_PERSONAL;\r\n//\t\t\t\t\t\tm_imgBtnType.setImageResource(\r\n//\t\t\t\t\t\t\t\tR.drawable.common_button_company);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// 友盟统计--任务--个人任务按钮\r\n\t\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_PersonalButton\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase REQUEST_DATA_TYPE_PERSONAL:\t// 点击之前是个人\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tm_nRequestDataType = REQUEST_DATA_TYPE_COMPANY;\r\n//\t\t\t\t\t\tm_imgBtnType.setImageResource(\r\n//\t\t\t\t\t\t\t\tR.drawable.common_button_personal);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// 友盟统计--任务--公司任务按钮\r\n\t\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_CompanyButton\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tm_nListStatus = LISTVIEW_STATUS_ONREFRESH;\r\n\t\t\t\tm_lvReward.setLoading();\r\n\t\t\t\t\r\n\t\t\t\t// 获取悬赏任务列表\r\n\t\t\t\tstartGetData(HeadhunterPublic.REWARD_DIRECTIONTYPE_NEW, \"\",\r\n\t\t\t\t\t\tm_nRequestType);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t}",
"@Override\n public void onClick(View v) {\n \n }",
"@Override\n public void onClick(View v) {\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.fragment_referand_earn, container, false);\n refbtn= (Button)view.findViewById(R.id.refbtn);\n refbtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n onInviteClicked();\n }\n });\n return view;\n }",
"public void onClick(View v) {\n }",
"public void onClick(View v) {\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tgetActivity().setContentView(R.layout.fragment);\n\n\t\tFragmentTransaction tx = getActivity().getSupportFragmentManager()\n\t\t\t\t.beginTransaction();\n\t\tswitch (v.getId()) {\n\n\t\tcase R.id.item1: {\n\t\t\ttx.replace(R.id.content_frame,\n\t\t\t\t\tFragment.instantiate(getActivity(), tab_array[0]));\n\t\t\ttx.commit();\n\t\t\tbreak;\n\t\t}\n\t\tcase R.id.item2: {\n\t\t\ttx.replace(R.id.content_frame,\n\t\t\t\t\tFragment.instantiate(getActivity(), tab_array[1]));\n\t\t\ttx.commit();\n\t\t\tbreak;\n\t\t}\n\t\tcase R.id.item3: {\n\t\t\ttx.replace(R.id.content_frame,\n\t\t\t\t\tFragment.instantiate(getActivity(), tab_array[2]));\n\t\t\ttx.commit();\n\t\t\tbreak;\n\t\t}\n\t\tcase R.id.item4: {\n\t\t\ttx.replace(R.id.content_frame,\n\t\t\t\t\tFragment.instantiate(getActivity(), tab_array[3]));\n\t\t\ttx.commit();\n\t\t\tbreak;\n\t\t}\n\n\t\t}\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_check, container, false);\n butt = view.findViewById(R.id.button2);\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n list.click();\n }\n });\n return inflater.inflate(R.layout.fragment_check, container, false);\n }",
"public void onButtonPressed(Uri uri) {\n //if (mListener != null) {\n // mListener.onFragmentInteraction(uri);\n //}\n }",
"public void onClick(View v) {\n switch (v.getId()) {\n case R.id.send_money:\n Toast.makeText(getActivity().getApplicationContext(), \"Send Money Button\", Toast.LENGTH_SHORT).show();\n Fragment sendMoneyFragment = new SendMoneyFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n transaction.replace(R.id.main_activity, sendMoneyFragment);\n transaction.addToBackStack(null);\n\n transaction.commit();\n break;\n case R.id.withdraw_cash:\n Toast.makeText(getActivity().getApplicationContext(), \"Withdraw Cash Button\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.buy_airtime:\n Toast.makeText(getActivity().getApplicationContext(), \"Buy Airtime Button\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.m_shwari:\n Toast.makeText(getActivity().getApplicationContext(), \"M-Shwari Button\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.lipa_na_mpesa:\n Toast.makeText(getActivity().getApplicationContext(), \"Lipa na MPESA Button\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.my_account:\n Toast.makeText(getActivity().getApplicationContext(), \"My Account Button\", Toast.LENGTH_SHORT).show();\n break;\n default:\n break;\n }\n }",
"private void setListeners() {\n\t\timgBack.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_practice, container, false);\n\n //add button callbacks\n //LoadServiceActivity\n Button loadServiceActivity = view.findViewById(R.id.btnLoadServiceActivity);\n loadServiceActivity.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n onLoadServiceActivityClick(v);\n }\n });\n\n //LoadNotificationActivity\n Button loadNotificationActivity = view.findViewById(R.id.btnLoadNotificationActivity);\n loadNotificationActivity.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n onLoadNotificationActivityClick(v);\n }\n });\n\n //LoadNavigationDrawerActivity\n Button loadNavigationDrawerActivity = view.findViewById(R.id.btnLoadNavigationDrawerActivity);\n loadNavigationDrawerActivity.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n onLoadNavigationDrawerActivityClick(v);\n }\n });\n\n //LoadCustomNavigationDrawerActivity\n Button loadCustomNavigationDrawerActivity = view.findViewById(R.id.btnLoadCustomNavigationDrawerActivity);\n loadCustomNavigationDrawerActivity.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n onLoadCustomNavigationDrawerActivityClick(v);\n }\n });\n\n //EnterPIPMode\n Button enterPIPMode = view.findViewById(R.id.btnEnterPIPMode);\n enterPIPMode.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n enterPIPModeClick(v);\n }\n });\n\n //LoadDragAndDropActivity\n Button loadDragAndDropActivity = view.findViewById(R.id.btnLoadDragAndDrop);\n loadDragAndDropActivity.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n onLoadDragAndDropActivityClick(v);\n }\n });\n\n //LoadAppWidget\n Button loadAppWidget = view.findViewById(R.id.btnLoadAppWidget);\n loadAppWidget.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onLoadAppWidgetClick(v);\n }\n });\n\n return view;\n }",
"private void initListeners() {\n appCompatButtonLogin.setOnClickListener(this);\n }",
"@Override\n public void onClick(View v) {\n\n listener.onClickPosition(getAdapterPosition());\n // Log.d(\"TAG\", \"Element \" + getAdapterPosition() + \" clicked. \");\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n public void onClick(View v) {\n\n }",
"private void defineButtonClick(){\n activityForgetPassBinding.backButton.setOnClickListener(this);\n activityForgetPassBinding.changePasswordButton.setOnClickListener(this);\n }",
"public void onClick(View v) {\n }",
"@Override\n public void onClick(View v) {\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View view) {\n\n\n }",
"@Override\n public void onClick(View v) {\n ((MainActivity)getActivity()).showFragment(new ListeAnnonceFragment());\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_categories, container, false);\n\n Button women = (Button) view.findViewById(R.id.women);\n women.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), ProductActivity.class);\n intent.putExtra(\"some\", \"data\");\n startActivity(intent);\n\n\n }\n });\n\n\n Button men = (Button) view.findViewById(R.id.men);\n men.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), MenActivity.class);\n intent.putExtra(\"some\", \"data\");\n startActivity(intent);\n\n\n }\n });\n\n Button kids = (Button) view.findViewById(R.id. kids );\n kids .setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(), KidsActivity.class);\n intent.putExtra(\"some\", \"data\");\n startActivity(intent);\n\n\n }\n });\n return view;\n\n\n }",
"@Override\n public void onClick(View v){\n }",
"private void initializeHandlers() {\n ivBack.setOnClickListener(this);\n }",
"public void onButtonPressed(Uri uri) {\n /*if (mListener != null) {\n mListener.onFragmentInteraction(uri);\n }*/\n }",
"public void onButtonPressed(Uri uri) {\n /*if (mListener != null) {\n mListener.onFragmentInteraction(uri);\n }*/\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\t\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btn_sp_util:\n\t\t\tstartActivity(new Intent(MainTestActivity.this,SPUtilActivity.class));\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.btn_db_util:\n\t\t\tstartActivity(new Intent(MainTestActivity.this,DBUtilActivity.class));\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.btn_video_play:\n\t\t\tstartActivity(new Intent(MainTestActivity.this,VideoActivity.class));\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.btn_music_play:\n\t\t\tstartActivity(new Intent(MainTestActivity.this,MyMusicActivity.class));\n\t\t\tbreak;\n\t\t\t\n\t\tcase R.id.btn_service_demo:\n startActivity(new Intent(MainTestActivity.this,MyServiceActivity.class));\n break;\n \n\t\tcase R.id.btn_bt_contact:\n\t\t List<BtContact> lists = getBtContact();\n\t\t Intent intent = new Intent();\n\t intent.setAction(\"txz_sync_btcontacts_action\");\n\t intent.putExtra(\"bt_contacts\", (Serializable)lists);\n\t sendBroadcast(intent);\n\t break;\n\n\t\tcase R.id.btn_test_fragment:\n//\t\t TestFragment testFragment = new TestFragment();\n//\t\t LogUtil.e(testFragment.showTestString());\n//\t\t Toast.makeText(MainTestActivity.this,testFragment.showTestString(), Toast.LENGTH_SHORT).show();\n\t\t startActivity(new Intent(MainTestActivity.this,FragmentTestActivity.class));\n\t\t break;\n\t\t \n\t\tcase R.id.btn_random_ids:\n startActivity(new Intent(MainTestActivity.this,RandomIdsActivity.class));\n break;\n \n\t\tcase R.id.btn_file_test:\n startActivity(new Intent(MainTestActivity.this,FileTestActivity.class));\n break;\n \n\t\tcase R.id.btn_frag_broadcast:\n Intent intent2 = new Intent();\n intent2.setAction(\"change_to_fragment_one_action\");\n sendBroadcast(intent2);\n break;\n \n\t\tcase R.id.btn_afile_system:\n\t\t startActivity(new Intent(MainTestActivity.this,AndroidFileSystemTest.class));\n\t\t File dir12=Environment.getExternalStorageDirectory(); \n\t\t if(dir12!=null){\n\t\t \t Log.e(\"RituNavi\",\"Environment.getExternalStorageDirectory()=\"+dir12.toString()); \n\t\t }else{\n\t\t \t Log.e(\"RituNavi\",\"Environment.getExternalStorageDirectory()=null\"); \n\t\t }\n\t\t \n break;\n \n\t\tcase R.id.btn_window_params:\n startActivity(new Intent(MainTestActivity.this,WindowParamsActivity.class));\n break;\n \n\t\tcase R.id.btn_file_copy:\n startActivity(new Intent(MainTestActivity.this,FileCopyActivity.class));\n break;\n \n\t\tcase R.id.btn_barcode:\n\t\t startActivity(new Intent(MainTestActivity.this,DimBarcodeActivity.class));\n\t\t break;\n\t\t \n\t\tcase R.id.btn_draw_view:\n\t\t startActivity(new Intent(MainTestActivity.this,CanvasActivity.class));\n\t\t break;\n\t\t \n\t\tcase R.id.scroll_position:\n\t\t startActivity(new Intent(MainTestActivity.this,ScrollPositionActivity.class));\n\t\t break;\n\t\t \n\t\tcase R.id.btn_pause_music:\n//\t\t pauseMusic();\n\t\t sendMediaButton(getApplicationContext(),KeyEvent.KEYCODE_MEDIA_STOP );\n\t\t break;\n\t\t \n\t\tcase R.id.btn_custom_widget:\n\t\t startActivity(new Intent(MainTestActivity.this,CustomWidgetActivity.class));\n break;\n \n\t\tcase R.id.switch_on_txz:\n\t\t Intent intent3= new Intent();\n intent3.setAction(\"android.intent.action.ACC_ON\");\n sendBroadcast(intent3);\n break;\n \n\t\tcase R.id.switch_off_txz:\n\t\t Intent intent4= new Intent();\n intent4.setAction(\"android.intent.action.ACC_OVER\");\n sendBroadcast(intent4);\n break;\n \n\t\tcase R.id.btn_context_menu:\n Intent intent5= new Intent();\n intent5.setAction(\"com.android.action.DDT_SWIPE_FROM_LEFT\");\n intent5.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);\n sendBroadcast(intent5);\n break;\n \n\t\tcase R.id.btn_swipe_list:\n startActivity(new Intent(MainTestActivity.this,SwipeListViewActivity.class));\n break;\n\t\tcase R.id.btn_drag_view:\n\t\t startActivity(new Intent(MainTestActivity.this,DragViewActivity.class));\n\t\t break;\n \n default:\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n\tprotected void setOnClickListener() {\n\n\t}"
] | [
"0.6811224",
"0.67888546",
"0.669654",
"0.66865766",
"0.666748",
"0.6632802",
"0.66044784",
"0.6564812",
"0.65406626",
"0.64983475",
"0.6489321",
"0.647864",
"0.64768904",
"0.642739",
"0.64136744",
"0.6399911",
"0.63984984",
"0.6394731",
"0.6383068",
"0.63694775",
"0.6296699",
"0.62898093",
"0.62877077",
"0.62501067",
"0.624845",
"0.6237689",
"0.62288266",
"0.6220359",
"0.621781",
"0.6205611",
"0.6196102",
"0.61921626",
"0.61801445",
"0.6170362",
"0.6170362",
"0.6165358",
"0.6164271",
"0.6161802",
"0.61568755",
"0.6150929",
"0.6150827",
"0.6146106",
"0.6140871",
"0.6140871",
"0.6137497",
"0.61348116",
"0.61290723",
"0.6125081",
"0.61196995",
"0.6118304",
"0.61110646",
"0.61050916",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.60944617",
"0.6083444",
"0.60806465",
"0.607854",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.60766673",
"0.6067506",
"0.60566187",
"0.6054667",
"0.60435665",
"0.60407764",
"0.6034757",
"0.6034757",
"0.60308874",
"0.6030511"
] | 0.77203405 | 0 |
Inflates and displays the given fragment. | private void goToFragment(View v, Fragment fragment) {
v.setEnabled(false);
getFragmentManager().beginTransaction()
.replace(R.id.fragment_container, fragment)
.addToBackStack(null)
.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createFragment() {\n\n }",
"protected abstract Fragment createFragment();",
"public void showFragment(Fragment fragment, String tagFragment) {\n // In tablet layout, do not try to display the Home Fragment again. Show empty fragment.\n if (isDualPanel() && tagFragment.equalsIgnoreCase(BudgetListFragment.class.getName())) {\n fragment = new Fragment();\n tagFragment = \"Empty\";\n }\n\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left, R.anim.slide_in_right,\n R.anim.slide_out_left);\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack.\n if (isDualPanel()) {\n transaction.replace(R.id.fragmentDetail, fragment, tagFragment);\n } else {\n // Single panel UI.\n transaction.replace(R.id.fragmentMain, fragment, tagFragment);\n\n // todo: enable going back only if showing the list.\n// boolean showingList = tagFragment.equals(BudgetListFragment.class.getName());\n// setDisplayHomeAsUpEnabled(showingList);\n\n transaction.addToBackStack(null);\n }\n\n // Commit the transaction\n transaction.commit();\n }",
"private void showFragment(Fragment fragment) {\n Log.d(TAG, \"showFragment: Run selected fragment\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.content_frame, fragment)\n .commit();\n }",
"private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"public void launchFragment(String str, Bundle bundle) {\n getFragmentManager().beginTransaction().replace(16908290, Fragment.instantiate(this, str, bundle)).commit();\n Log.i(TAG, String.format(\"Fragment %s Displayed\", new Object[]{str}));\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle state) {\n view = inflater.inflate(R.layout.fragment_scan, null);\n\n view.findViewById(R.id.txtTest)\n .setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(getActivity(), \"Contents = \", Toast.LENGTH_SHORT).show();\n loadFragment(new PoleIdFragment());\n }\n }\n );\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_display, container, false);\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View v = inflater.inflate(R.layout.fragment_halaman, container, false);\r\n\r\n TextView tv = (TextView) v.findViewById(R.id.tv_halaman);\r\n String halaman = getArguments().getString(EXTRAS);\r\n tv.setText(halaman);\r\n\r\n Log.e(TAG, \"onCreateView : Halaman Fragment\" + halaman);\r\n\r\n return v;\r\n\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n\n mTextView = view.findViewById(R.id.minefragment_textView);\n mTextView.setText(mParam1 + \"_fragment\");\n\n return view;\n }",
"private void displayView(int position) {\n\t\tFragment fragment = null;\n\t\tswitch (position) {\n\t\t// load Perfil\n\t\tcase 0:\n\t\t\tfragment = new StateFragment();\n\t\t\tbreak;\n\t\t// load Alertas\n\t\tcase 1:\n\t\t\tfragment = new ActividadFragment();\n\t\t\tbreak;\n\t\t// load Tips\n\t\tcase 2:\n\t\t\tfragment = new EditarPerfil();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tandroid.app.FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.frame_container, fragment).commit();\n\t}",
"private void loadFragment(Fragment fragment, String tag) {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.frame_tut, fragment, tag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n ft.commit();\n }",
"private void loadFragment(Fragment fragment)\n {\n if(fragment != null)\n {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, fragment);\n fragmentTransaction.addToBackStack(\"fragment\");\n fragmentTransaction.commit();\n }\n }",
"private void loadFragment(Fragment fragment){\n FragmentTransaction trans = getSupportFragmentManager().beginTransaction();\n trans.replace(R.id.frame_event, fragment);\n trans.commit();\n\n appbar.setExpanded(true);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(\n R.layout.fragment_first, container, false);\n\n txt = v.findViewById(R.id.txt);\n txt.setText(\"First Fragment\");\n return v;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"private void displaySelectedFragment(Fragment fragment) {\n// if (fragmentName == null || !fragment.getClass().getSimpleName().equals(fragmentName)) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame_container, fragment);\n fragmentTransaction.commit();\n fragmentName = fragment.getClass().getSimpleName();\n// }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View mContentView = inflater.inflate(R.layout.fragment_simple, container, false);\n\n button = mContentView.findViewById(R.id.button);\n editText = mContentView.findViewById(R.id.editText);\n\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n in.sendTextToFragment(editText.getText().toString());\n }\n });\n\n return mContentView;\n }",
"@Override\n //This will handle how the fragment will display content\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle saveInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_main, container, false);\n\n FeedListView mFeedListView = new FeedListView(getActivity());\n Log.d(TAG, \"MyFragment::onCreate\");\n mFeedListView.inflate(layout);\n\n //Getting a reference to the TextView (as defined in fragment_main) and set it to a value\n Bundle bundle = getArguments();\n\n switch (bundle.getInt(\"point\")){\n case 0:\n //TODO : add tag query\n break;\n case 1:\n //TODO : add tag query\n break;\n case 2:\n //TODO : add tag query\n break;\n case 3:\n //TODO : add tag query\n break;\n default:\n }\n\n return layout;\n }",
"private void loadFragment(Fragment fragment) {\n // load fragment\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.frame_container, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }",
"private void displayView(int position) {\n Fragment fragment = null;\n\n try {\n if(position == 0){\n mBeaconManager.startRangingBeaconsInRegion(region);\n } else{\n mBeaconManager.stopRangingBeaconsInRegion(region);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n\n switch (position) {\n case 0:\n //Home fragment\n// fragment = new HomeFragment();\n// break;\n beaconFailedCounter = 0;\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n break;\n case 1:\n //categories\n\n fragment = new HomeFragment();\n break;\n case 2:\n //recommended events\n\n fragment = new RecommendedFragment();\n break;\n case 3:\n //starred events\n\n fragment = new StarredFragment();\n break;\n case 4:\n //create event\n fragment = new CreateEventFragment();\n break;\n case 5:\n fragment = new MyEventsFragment();\n break;\n\n\n default:\n break;\n }\n\n if (fragment != null) {\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.frame_container, fragment).commit();\n\n // update selected item and title, then close the drawer\n mDrawerList.setItemChecked(position, true);\n mDrawerList.setSelection(position);\n setTitle(navMenuTitles[position]);\n mDrawerLayout.closeDrawer(mDrawerList);\n } else {\n // error in creating fragment\n Log.e(\"MainActivity\", \"Error in creating fragment\");\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"void fragment(String fragment);",
"void fragment(String fragment);",
"private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }",
"public DisplayFragment() {\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_start, container, false);\n\n mLvAps = (ListView) view.findViewById(R.id.lvAps);\n mScanResults = new ArrayList<ScanResult>();\n mApAdapter = new ApAdapter(mActivity, mScanResults);\n mLvAps.setAdapter(mApAdapter);\n\n mBtnSend = (Button) view.findViewById(R.id.btnSend);\n mBtnSend.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ((MyActivity) mActivity).getSupportFragmentManager().beginTransaction().replace(R\n .id.container, FileFragment.newInstance(\"arg\",\n \"arg\")).addToBackStack(\"FileFragment\").commit();\n }\n });\n mBtnReceive = (Button) view.findViewById(R.id.btnReceive);\n mBtnReceive.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater\n .inflate(R.layout.static_fragment, container, false);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.d(TAG, \"onCreateView: \");\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment_blank, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"public void showFragment(Fragment fragment, String tag) {\n fragment.setRetainInstance(true);\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.content_frame, fragment, tag)\n .addToBackStack(null)\n .commit();\n setTitleForTag(tag);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"private void displayView(int position) {\n\t\t// update the main content by replacing fragments\n\t\tFragment fragment = null;\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tfragment = new getLocation();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tfragment = new UserInput();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\tif (fragment != null) {\n\t\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\t\tfragmentManager.beginTransaction()\n\t\t\t\t\t.replace(R.id.frame_container, fragment).commit();\n\n\t\t\t// update selected item and title, then close the drawer\n\t\t\tmDrawerList.setItemChecked(position, true);\n\t\t\tmDrawerList.setSelection(position);\n\t\t\tsetTitle(navMenuTitles[position]);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerList);\n\t\t} else {\n\t\t\t// error in creating fragment\n\t\t\tLog.e(\"MainActivity\", \"Error in creating fragment\");\n\t\t}\n\t}",
"private void loadFragment(String fragmentTag)\n {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right);\n\n Fragment taggedFragment = (Fragment) fm.findFragmentByTag(fragmentTag);\n if (taggedFragment == null)\n {\n\n if (fragmentTag == LondonFragment.TAG)\n {\n taggedFragment = new LondonFragment();\n }\n\n if (fragmentTag == ParisFragment.TAG)\n {\n taggedFragment = new ParisFragment();\n }\n\n if (fragmentTag == CopenhagenFragment.TAG)\n {\n taggedFragment = new CopenhagenFragment();\n }\n\n if (fragmentTag == DualFragment.TAG)\n {\n taggedFragment = new DualFragment();\n }\n\n }\n ft.replace(R.id.container, taggedFragment, fragmentTag);\n ft.commit();\n\n //Ezt fontos hívni\n getSupportFragmentManager().executePendingTransactions();\n\n Fragment frag2 = (Fragment) fm.findFragmentByTag(fragmentTag);\n frag2.getActivity();\n\n\n\n\n\n drawerLayout.closeDrawer(Gravity.LEFT);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mainfragment, container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_scanner, container, false);\n scan();\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"private void displayView(int position) {\n\t\tFragment fragment = null;\n\t\tBundle bundle=new Bundle();\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tfragment = new Profile();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tfragment = new SearchProjects();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tfragment = new MyProjects();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\n\t\tif (fragment != null) {\n\t\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\t\tfragmentManager.beginTransaction()\n\t\t\t.replace(R.id.frame_container, fragment).commit();\n\n\t\t\t// update selected item and title, then close the drawer\n\t\t\tmDrawerList.setItemChecked(position, true);\n\t\t\tmDrawerList.setSelection(position);\n\t\t\tsetTitle(navMenuTitles[position]);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerView);\n\t\t} else {\n\t\t\t// error in creating fragment\n\t\t\tLog.e(\"MainActivity\", \"Error in creating fragment\");\n\t\t}\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_register, container, false);\n initiate(view);\n\n return view;\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_info, container, false);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_opening, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n\n return inflater.inflate(R.layout.fragment_short, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n post = getArguments().getParcelable(\"post\");\n prevFragmentCode = getArguments().getInt(\"code\");\n searchStr = getArguments().getString(\"str\");\n\n this.container = container;\n\n return inflater.inflate(R.layout.fragment_detail_shoe, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_blank, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_blank, container, false);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.fragment_layout);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"private void callFragment(Entry entry) {\n Entry e= new Entry();\n e=entry;\n AppDetailFragment ada= new AppDetailFragment();\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"Detail\", e);\n ada.setArguments(bundle);\n //Initiate transaction\n FragmentManager fm= getFragmentManager();\n FragmentTransaction transaction= fm.beginTransaction();\n transaction.replace(android.R.id.content, ada, \"DetailsFragment\");\n transaction.addToBackStack(null);\n transaction.commit();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_main, container, false);\n ((AppCompatActivity)getActivity()).setTitle(\"ITS Check In\");\n checkinBtn = (Button)rootView.findViewById(R.id.button);\n checkinBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n activity.changeFragmentByFragment(\"checkin\");\n }\n });\n outsideBtn = (Button)rootView.findViewById(R.id.button2);\n outsideBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n activity.changeFragmentByFragment(\"outside\");\n }\n });\n withdrawBtn = (Button)rootView.findViewById(R.id.button3);\n withdrawBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n activity.changeFragmentByFragment(\"withdraw\");\n }\n });\n logoutBtn = (Button)rootView.findViewById(R.id.button4);\n logoutBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n activity.changeFragmentByFragment(\"logout\");\n }\n });\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_book_detail, container, false);\n this.titleTextView = (TextView) view.findViewById(R.id.titleTextView);\n this.authorTextView = (TextView) view.findViewById(R.id.authorTextView);\n this.yearTextView = (TextView) view.findViewById(R.id.yearTextView);\n this.publisherTextView = (TextView) view.findViewById(R.id.publisherTextView);\n //ImageView bookImageView = (ImageView) view.findViewById(R.id.bookImageView);\n this.reserveImageButton = (ImageButton) view.findViewById(R.id.reserveImageButton);\n this.reserveImageButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n onReserveButtonClick();\n }\n });\n this.lentToDateTextView = (TextView) view.findViewById(R.id.lentToDateTextView);\n this.lentToDateLabelTextView = (TextView) view.findViewById(R.id.lentToDateLabelTextView);\n\n // If the fragment was created dynamically in the Activity the arguments may already be present.\n // Otherwise, the Activity will come back set the arguments later.\n if (getArguments() != null) {\n useArguments(getArguments());\n updateViews();\n }\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_identification, container, false);\n }",
"@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.fragment_firmy, container, false);\n }",
"@Override\n public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {\n View fragmentView = inflater.inflate(R.layout.fragment_my, container, false);\n TextView mTitle = (TextView) fragmentView.findViewById(R.id.title);\n TextView mDescription = (TextView) fragmentView.findViewById(R.id.description);\n TextView state = (TextView) fragmentView.findViewById(R.id.place);\n TextView scroll = (TextView) fragmentView.findViewById(R.id.scroll);\n mTitle.setText(t);\n mDescription.setText(te);\n state.setText(pl);\n scroll.setText(sc);\n fragmentView.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(final View view) {\n if (listener != null) {\n listener.onClick(view);\n }\n }\n\n });\n return fragmentView;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_reception_home, container, false);\r\n\r\n Hello(view);\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n return inflater.inflate(R.layout.fragment_blank, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_show, container, false);\n findViews(view);\n initView();\n\n setListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_fragment3, container, false);\n setupUI(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"private void displayView(int position) {\n\t\t// update the main content by replacing fragments\n\t\tFragment fragment = null;\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\tfragment = new HomeFragment();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tfragment = new FindPeopleFragment();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tfragment = new PhotosFragment();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tfragment = new CommunityFragment();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tfragment = new PagesFragment();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tfragment = new WhatsHotFragment();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\tif (fragment != null) {\n\t\t\tFragmentManager fragmentManager = getFragmentManager();\n\t\t\tfragmentManager.beginTransaction()\n\t\t\t\t\t.replace(R.id.frame_container, fragment).commit();\n\n\t\t\t// update selected item and title, then close the drawer\n\t\t\tmDrawerList.setItemChecked(position, true);\n\t\t\tmDrawerList.setSelection(position);\n\t\t\tsetTitle(navMenuTitles[position]);\n\t\t\tmDrawerLayout.closeDrawer(mDrawerList);\n\t\t} else {\n\t\t\t// error in creating fragment\n\t\t\tLog.e(\"MainActivity\", \"Error in creating fragment\");\n\t\t}\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_tv_show, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\r\n\t\tView view = inflater.inflate(R.layout.frag_main_pak, container, false);\r\n\r\n\t\tinit(view);\r\n\t\t\r\n\t\t\r\n\t\treturn view;\r\n\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return super.onCreateView(inflater, (ViewGroup) inflater.inflate(R.layout.fragment_display_good_detial, container, false), savedInstanceState);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_start, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n initUI(view);\n initData();\n setEventBus(this, true);\n return view;\n }",
"private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }",
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n int layout_id = R.layout.fragment_layout_support;\n View v = inflater.inflate(layout_id, container, false);\n\n // PostListFragment titles = (PostListFragment)\n // getFragmentManager().findFragmentById(R.id.titles);\n // if (titles == null) {\n // Make new fragment to show this selection.\n PostListFragment titles = new PostListFragment();\n titles.setArguments(getArguments());\n\n // Execute a transaction, replacing any existing fragment\n // with this one inside the frame.\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n ft.replace(R.id.titles, titles);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.commit();\n \n return v;\n }",
"public RegisterFragment() {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_blood_pressure, container, false);\n\n BloodPressureFragment.setBloodPressureFragment(this);\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n\n PersonsFragment personsFragment;\n\n if(mParam1.equals(\"A\")||mParam1.equals(\"B\")||mParam1.equals(\"C\")) {\n startFragmentPressureMeasurements(mParam1);\n BloodPressureActivity.getBloodPressureActivity().setTheName(mParam1,\"Πίεση\");\n }\n\n personsFragment = PersonsFragment.newInstance(\"blah\",\"blah\");\n fragmentManager.beginTransaction().add(R.id.container_pressure_top_row,personsFragment).commit();\n\n return view;\n }",
"protected abstract void injectFragment(FragmentComponent fragmentComponent);",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_register, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_result, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_result, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view= inflater.inflate(R.layout.fragment_insect, container, false);\n\n return view;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_my, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_app_info, container, false);\n initialize(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_overview, container, false);\n \n }",
"private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void setViewFragment(Fragment fragment) {\n currentFragment = fragment;\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.replace(R.id.container, fragment);\n transaction.commit();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_viewer, container, false);\n initComponents(view);\n return view;\n }",
"public View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\t\n\t\tView rootView = inflater.inflate(R.layout.fragment_home,\n\t\t\t\tcontainer, false);\n\t\t\n\t\tTextView homeTextView = (TextView) rootView.findViewById(R.id.section_label);\n\n\t\thomeTextView.setText(\"HELLO WORLD!\");\n\t\t\n\n\n\n\t\treturn rootView;\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_spinner, container, false);\n\t\t((TextView)view.findViewById(R.id.message)).setText(message);\n\t\treturn view;\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\treturn inflater.inflate(R.layout.fragment3, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n TextView textView = new TextView(getActivity());\n textView.setText(R.string.hello_blank_fragment);\n return textView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_my, container, false);\n //首先加载开始显示的\n FragmentManager fragmentManager = getActivity().getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.add(R.id.my_framelayout,new MyMainFragment());\n fragmentTransaction.commit();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_type_code, container, false);\n }"
] | [
"0.625285",
"0.61733377",
"0.616521",
"0.6142406",
"0.6133185",
"0.6114922",
"0.6053807",
"0.60405064",
"0.60231113",
"0.60148406",
"0.59998214",
"0.59627867",
"0.5915595",
"0.58985883",
"0.586992",
"0.58674216",
"0.586474",
"0.5842991",
"0.58353686",
"0.5832647",
"0.58287907",
"0.58233637",
"0.58213437",
"0.5821109",
"0.5821109",
"0.58020896",
"0.5790601",
"0.5782351",
"0.57521385",
"0.57402176",
"0.5723557",
"0.57209194",
"0.5712971",
"0.56981164",
"0.5691921",
"0.5681795",
"0.5679352",
"0.567214",
"0.5671342",
"0.5671046",
"0.5667775",
"0.5662085",
"0.5658821",
"0.56568253",
"0.56549877",
"0.56431156",
"0.5633301",
"0.5629006",
"0.56273866",
"0.56234777",
"0.56144524",
"0.56073105",
"0.56069565",
"0.5604783",
"0.56003696",
"0.5600154",
"0.5599614",
"0.5593004",
"0.55885017",
"0.558662",
"0.5580899",
"0.5580353",
"0.55786234",
"0.55748135",
"0.55663705",
"0.5560604",
"0.5558022",
"0.5554962",
"0.5553378",
"0.5553168",
"0.5550458",
"0.5549363",
"0.55492634",
"0.5548709",
"0.5547761",
"0.55455476",
"0.5545001",
"0.55416363",
"0.5536748",
"0.5530273",
"0.5523066",
"0.5520461",
"0.5520461",
"0.5517411",
"0.5515606",
"0.5515606",
"0.55144775",
"0.55103433",
"0.5510101",
"0.55004704",
"0.54995555",
"0.54983515",
"0.54959095",
"0.5493336",
"0.54887676",
"0.5484516",
"0.5482522",
"0.5482522",
"0.5482522",
"0.5481031",
"0.54795057"
] | 0.0 | -1 |
Retorna el artista seleccionado. | String darArtistaSeleccionado( )
{
return ( ( Artista ) Objects.requireNonNull( cbArtistas.getSelectedItem( ) ) ).darNombre( );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List<SpriteDefinition> getChosen () {\n return mySelected.getListView().getItems();\n }",
"@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}",
"Object getSelection();",
"@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}",
"@FXML\n private void getMedicoSelecionado() throws IOException {\n medicoSelecionado = tabelaMedicos.getSelectionModel().getSelectedItem();\n }",
"public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }",
"@FXML\n Komponent[] getSelected() {\n Komponent prosessor = velgProsessor.getValue();\n Komponent skjermkort = velgSkjermkort.getValue();\n Komponent minne = velgMinne.getValue();\n Komponent lagring = velgLagring.getValue();\n Komponent tastatur = velgTastatur.getValue();\n Komponent datamus = velgDatamus.getValue();\n Komponent skjerm = velgSkjerm.getValue();\n\n // legg verdier i array\n Komponent[] k = {prosessor,skjermkort,minne,lagring,tastatur,datamus,skjerm};\n\n print(k); // print kvittering med valgte komponenter og totpris\n\n return k; // returner verdier fra nedtrekksliste som array\n }",
"private Rubrica getTableRubricaSeleccionada() {\n if (tbRubrica != null) {\n List<Rubrica> tabela = tbRubrica.getSelectionModel().getSelectedItems();\n if (tabela.size() == 1) {\n final Rubrica rubricaSeleccionada = tabela.get(0);\n return rubricaSeleccionada;\n }\n }\n return null;\n }",
"abstract void listSeleccionadas_mouseClicked(MouseEvent e);",
"public java.lang.String[] getSelectPresentation();",
"@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}",
"static public TransformDesign selectItems(DrawingPad drawingPad) {\n if (drawingPad.getDesign().isSelectedItems() == false)\n return null;\n return drawingPad.getDesign().getSelectedItems();\n }",
"public Artista select (int id) {\n EntityManager e = IndConnector.getConnection();\n Artista a = e.find(Artista.class, new Long(id));\n e.close();\n return a;\n }",
"public void mouseClicked(MouseEvent e) {\n adaptee.listSeleccionadas_mouseClicked(e);\n }",
"public Object getSelection() {\n return selection;\n }",
"public Balanza GetMAterialFromTable() {\n int FilaSelec = table.getSelectedRow();\n if (FilaSelec > -1) {\n Balanza seleted = list.get(FilaSelec);\n return seleted;// esta funcion me retorn es la posicion \n } else {\n JOptionPane.showMessageDialog(this, \"Fila No seleccionada \");\n }\n return null;\n }",
"public SeleccionarRancho() {\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n initComponents();\n Image i = null;\n i = Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/resources/logo tru-test.png\"));\n setIconImage(i);\n // setLocationRelativeTo(null);\n ranchoSelector1.cargar();\n jPanel2.setOpaque(false);\n cargarcomponentes();\n }",
"int[] getSelection();",
"private PR1Model.Shape getSelection() { return selection.get(); }",
"public void seleccionSitio() {\r\n\t\tif (sitioId != null) {\r\n\t\t\tsitio = hashSitios.get(sitioId);\r\n\t\t\tcargarEstudiantesSitio();\r\n\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\tSystem.out.println(libres);\r\n\t\t}\r\n\t}",
"List<String> getSelectedItems();",
"public native MenuItem getSelectedItem();",
"public List<F> getSelected() {\n return selected;\n }",
"public TabItem [] getSelection () {\r\n\tcheckWidget();\r\n\tint index = getSelectionIndex ();\r\n\tif (index == -1) return new TabItem [0];\r\n\treturn new TabItem [] {items [index]};\r\n}",
"public Ano getAnoSelecionado() {\n\t\treturn anoSelecionado;\n\t}",
"public Controllable getSelected()\r\n\t{\r\n\t\t//update army\r\n\t\tif(this.rallyPoint.getSelectedLeaf() != this.selectedRally)\r\n\t\t{\r\n\t\t\tthis.selectedRally=(RallyPoint)this.rallyPoint.getSelectedLeaf();\r\n\t\t\tarmy.removeAllChildren();\r\n\t\t\t\r\n\t\t\tSelectorNode<Controllable> fullArmy=addNode(\"Army\",\"Entire Army\");\r\n\t\t\tSelectorNode<Controllable> combatArmy=addNode(\"Army\",\"Combat Army\");\r\n\t\t\tSelectorNode<Controllable> supportArmy=addNode(\"Army\",\"Support Army\");\r\n\t\t\tif(this.selectedRally!=null)\r\n\t\t\t{\r\n\t\t\t\tList<Unit> fullArmyUnits = this.selectedRally.getFullArmy();\r\n\t\t\t\tList<Unit> combatArmyUnits = this.selectedRally.getCombatArmy();\r\n\t\t\t\tList<Unit> supportArmyUnits = this.selectedRally.getSupportArmy();\r\n\t\t\t\t\r\n\t\t\t\tIterator<Unit> iter1 = fullArmyUnits.iterator();\r\n\t\t\t\twhile(iter1.hasNext())\r\n\t\t\t\t{\r\n\t\t\t\t\tfullArmy.addChild(new SelectorNode<Controllable>(iter1.next()));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tIterator<Unit> iter2 = combatArmyUnits.iterator();\r\n\t\t\t\twhile(iter2.hasNext())\r\n\t\t\t\t{\r\n\t\t\t\t\tcombatArmy.addChild(new SelectorNode<Controllable>(iter2.next()));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tIterator<Unit> iter3 = supportArmyUnits.iterator();\r\n\t\t\t\twhile(iter3.hasNext())\r\n\t\t\t\t{\r\n\t\t\t\t\tsupportArmy.addChild(new SelectorNode<Controllable>(iter3.next()));\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\t\t\r\n\t\treturn super.getSelected();\r\n\t}",
"public void seleccionarCategoria(String name);",
"public MovieItem getMovieSelected(){\n //return movie item data\n return mMovie;\n }",
"public Piece firstSelected()\n {\n return firstSelected;\n }",
"public void onSelectionChanged();",
"private List<CatalogPieceOfFurniture> getSelectedFurniture() {\n List<CatalogPieceOfFurniture> selectedFurniture = new ArrayList<CatalogPieceOfFurniture>();\r\n TreePath [] selectionPaths = getSelectionPaths(); \r\n if (selectionPaths != null) {\r\n for (TreePath path : selectionPaths) {\r\n if (path.getPathCount() == 3) {\r\n selectedFurniture.add((CatalogPieceOfFurniture)path.getLastPathComponent());\r\n }\r\n }\r\n } \r\n return selectedFurniture;\r\n }",
"public void seleccionarPieza(java.awt.event.MouseEvent evt) {\n // Se pasa como parametro el evento\n CuadroPieza t = ((CuadroPieza) evt.getComponent());//Averiguo en que cuadro sucedio el evento\n if (t.getPieza() != null) {//Veo si el cuadro no esta vacio.\n if (t.getPieza().getColor() == getTurno()) {//Veo si es del mismo color del turno que actualmente le toca.\n cuadroSeleccionado = t;\n /*\n * Con esto hago que se resalten los posibles movimientos en todo el tablero.\n */\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y].opacarPieza();//Si hay piezas seleccionadas, las opaco\n if (isSeleccionarAlternativas()) {//Resalto los posibles movimientos.\n if (cuadroSeleccionado.getPieza().validarMovimiento(tablero[x][y], this)) {\n tablero[x][y].resaltarPieza(tablero[x][y].getPieza() != null ? getAlerta() : null);\n }\n }\n }\n }\n /*\n * Resalto el cuadro que ha sido seleccionado para que el usuario sepa que cuadro selecciono\n */\n cuadroSeleccionado.resaltarPieza(getSeleccionado());\n /*\n * Establesco la imagen de la pieza que ha sido seleccionada al label.\n */\n tmp.setIcon(cuadroSeleccionado.getPieza().getImagenPieza());\n /*\n * borro la imagen de la pieza del cuadro.\n */\n cuadroSeleccionado.lbl.setIcon(null);\n /*\n * Establesco la nueva posicion del label, que tiene la imagen de la pieza.\n */\n tmp.setLocation(cuadroSeleccionado.getLocation().x + evt.getX() - 18, cuadroSeleccionado.getLocation().y + evt.getY() - 28);\n }\n }\n }",
"public Selection getSelection() {\n return mSelection;\n }",
"public Empleado GetMAterialFromTableEmpleado() {\n int FilaSelec = table.getSelectedRow();\n if (FilaSelec > -1) {\n Empleado seleted = listae.get(FilaSelec);\n return seleted;// esta funcion me retorn es la posicion \n } else {\n JOptionPane.showMessageDialog(this, \"Fila No seleccionada \");\n }\n return null;\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\trutaseleccionada = (String) rodadura.getSelectedItem();\r\n\r\n\t\t\t\t}",
"public Gnome getSelectedItem() {\n return selectedItem;\n }",
"public void selectProduct() {\n\t\tActions obj = new Actions(driver);\n\t\tobj.moveToElement(driver.findElements(By.xpath(\".//*[@id='center_column']/ul/li\")).get(0)).build().perform();\n\t\tdriver.findElement(By.xpath(\".//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]/span\")).click();\n\t}",
"public Posto select(int rowSelected) {\n return postos.get(rowSelected);\n }",
"public String getSelected()\r\n {\r\n if (selectedIndex == -1)\r\n return null;\r\n \r\n return towerTypes[selectedIndex];\r\n }",
"@Override\n public void onClick(View view)\n {\n if(selectedStructure != null) //checks if object is selected and if prev object is same object\n {\n //if object is the same, then deselect the structure\n if (selectedStructure.equals(structureList.get(getAdapterPosition())))\n selected = false;\n else\n selected = true;\n }\n\n // if selected, get object otherwise let no object is selected\n if (selected)\n {\n selectedStructure = structureList.get(getAdapterPosition());\n }\n else\n {\n selectedStructure = null;\n }\n }",
"@Override\n public Component select(int x, int y) { \n\t m_selected = super.select(x, y);\n\t return m_selected;\n }",
"@FXML\n void paintSelected(ActionEvent event) {\n\n //Gets all paintings not being sold by you.\n String sqlSelect = \"Select * from artwork, auction where auction.auctionid = artwork.artworkid and auctioncomp = 0 and \" +\n \"artwork.typeOfArtwork = 'painting' and auction.seller <> '\" + this.username + \"';\";\n\n artworkTilePane.getChildren().clear(); //delete all previous artworks.\n getImages(FXCollections.observableArrayList(artworkDatabaseManager.getAllArtworks(sqlSelect)));\n }",
"public LiveData<Recipe> getSelected() {\n return repository.get(selectedId);\n }",
"public String getSelectedItem() {\n if (selectedPosition != -1) {\n Toast.makeText(activity, \"Selected Item : \" + list.get(selectedPosition), Toast.LENGTH_SHORT).show();\n return list.get(selectedPosition);\n }\n return \"\";\n }",
"private void materiaSelecionada(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_materiaSelecionada\n if (cbox1Materia.getSelectedIndex() != 0) {\n materiaSeleccionada = true;\n buscarEvaluacion();\n vaciarTabla();\n } else {\n materiaSeleccionada = false;\n vaciarTabla();\n cbox3Evaluacion.removeAllItems();\n cbox3Evaluacion.addItem(\"Seleccione una opción\");\n }\n\n }",
"public void select(Object obj, boolean selectionFlag);",
"public boolean getSelected()\n {\n return selected; \n }",
"public boolean isSelected();",
"public boolean isSelected();",
"public void verSeleccionarCaracterisiticasEscalaId()\r\n\t{\r\n\t\tseleccionarcaract = new SeleccionarCaracterisiticasEscalaId(this);\r\n\t\tseleccionarcaract.setVisible(true);\r\n\t}",
"@FXML\n public void sculpSelected() {\n\n //Gets all sculpture artworks not being sold by you.\n String sqlSelect = \"Select * from artwork, auction where auction.auctionid = artwork.artworkid and auctioncomp = 0 and artwork.typeOfArtwork = \" +\n \"'sculpture' and auction.seller <> '\" + this.username + \"';\";\n\n artworkTilePane.getChildren().clear(); //delete all previous artworks.\n getImages(FXCollections.observableArrayList(artworkDatabaseManager.getAllArtworks(sqlSelect)));\n }",
"@Nullable\n public T getSelectedItem() {\n return SerDes.unmirror(getElement().getSelectedItem(), getItemClass());\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tpistaseleccionada = (int) pista.getSelectedItem();\r\n\r\n\t\t\t\t}",
"public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }",
"@Override\r\n protected TreeItem getSelectedItem() {\r\n return getSelectionModel().getSelectedItem();\r\n }",
"public boolean isSelected() { return selected; }",
"private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getItemCount()-1);\n\t\t\t\tindice = this.getUltIdDoc(); \n\t\t\t}\n\t\t\ttablaDocs.setSelection(indice); \n\t\t\tlistaDocumentos.setSelection(indice);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif(atividadesPendentesArray.length > 0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tAtividade atividade = (Atividade) list.getSelectedValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tjanelaDeDecisao = new ViewDecisaoAtividadesPendentes(atividade);\r\n\t\t\t\t}\r\n\t\t\t}",
"public boolean isSelected() \n {\n return selected;\n }",
"public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }",
"@Override\n\tpublic void selecciona() {\n\t\tClienteProxy bean = grid.getSelectionModel().getSelectedObject();\n\t\tif(bean!=null){\t\t\t\t\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(\"Devolpay\");\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\t\t\n\t\tuiHomePrestamo.getUIMantPrestamoImpl().setBeanCliente(bean);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\t\t\n\t\t}else{\n\t\t\t//Dialogs.alert(constants.alerta(), constants.seleccioneCliente(), null);\n\t\t\t//Window.alert(constants.seleccioneCliente());\n\t\t\tNotification not=new Notification(Notification.ALERT,constants.seleccioneCliente());\n\t\t\tnot.showPopup();\n\t\t}\n\t}",
"public boolean isSelected()\n {\n return selected;\n }",
"ResourceSelection createResourceSelection();",
"IProductInfo getM_piSelectedItem();",
"public String getSelected ()\n {\n return ((GroupItem)gbox.getSelectedItem()).getSelected();\n }",
"public AUndertaking getSelectedTask()\n {\n String errorMsg;\n Iterator<AUndertaking> taskIt = getSelectedTaskIterator();\n\n if (taskIt.hasNext()) {\n AUndertaking selectedTask = taskIt.next();\n\n if (! taskIt.hasNext()) {\n return selectedTask;\n }\n\n errorMsg = \"Selection is multiple\";\n }\n else {\n errorMsg = \"Nothing is selected\";\n }\n\n throw new IllegalStateException(errorMsg);\n }",
"public boolean isSelected(){\r\n return selected;\r\n }",
"@Override\n public String[] displayMenu() {\n\n PersonalMatchDAO personalMatchDAO = new PersonalMatchDAO();\n personalMatchDAO.listAllPersonalMatches();\n\n String[] str = {selection};\n return str;\n\n }",
"public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass()));\n }\n }",
"public void afficherEcranSelectionJoueur() {\n gestionnaireJoueurs.chargerJoueurs();\n ecranSelectionJoueur.rechargerListeJoueur();\n CardLayout cl = (CardLayout) (container.getLayout());\n cl.show(container, \"EcranSelectionJoueur\");\n }",
"public Cliente GetMAterialFromTableCliente() {\n int FilaSelec = table.getSelectedRow();\n if (FilaSelec > -1) {\n Cliente seleted = lista.get(FilaSelec);\n return seleted;// esta funcion me retorn es la posicion \n } else {\n JOptionPane.showMessageDialog(this, \"Fila No seleccionada \");\n }\n return null;\n }",
"public Ward getSelected() {\n\t\treturn table.getSelectionModel().getSelectedItem();\n\t}",
"public void doButtonEinfuegen() {\n\t\tDialogSelectionDjinn dsd = new DialogSelectionDjinn((Frame) this.owner, \"Auswahl Tabellenspalte\",\n\t\t\t\tnew DefaultListViewComponentFactory((allts ? this.tabelle.getDiagramm().getFieldCache()\n\t\t\t\t\t\t: new Vector<Object>(Arrays.asList(this.tabelle.getColumns())))));\n\t\tif (dsd.isSelected()) {\n\t\t\tVector v = dsd.getSelection();\n\t\t\tVector values = new Vector();\n\t\t\tfor (int i = 0, len = v.size(); i < len; i++) {\n\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\tvalues.addElement(v.elementAt(i));\n\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\tvalues.addElement(new ToStringContainer((TabellenspaltenModel) v.elementAt(i), this.tabelle));\n\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createOrderMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\tvalues.addElement(Archimedes.Factory.createSelectionMember((TabellenspaltenModel) v.elementAt(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0, len = values.size(); i < len; i++) {\n\t\t\t\tboolean found = false;\n\t\t\t\tfor (int j = 0, lenj = this.tabellenspalten.size(); j < lenj; j++) {\n\t\t\t\t\tif (this.getType() == 0) {\n\t\t\t\t\t\tTabellenspaltenModel tsm = (TabellenspaltenModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (values.elementAt(i) == tsm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if ((this.getType() == 1) || (this.getType() == 2)) {\n\t\t\t\t\t\tToStringContainer tsc = (ToStringContainer) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((ToStringContainer) values.elementAt(i)).getTabellenspalte() == tsc) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 3) {\n\t\t\t\t\t\tOrderMemberModel omm = (OrderMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((OrderMemberModel) values.elementAt(i)).getOrderColumn() == omm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (this.getType() == 4) {\n\t\t\t\t\t\tSelectionMemberModel smm = (SelectionMemberModel) this.tabellenspalten.get(j);\n\t\t\t\t\t\tif (((SelectionMemberModel) values.elementAt(i)).getColumn() == smm) {\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!found) {\n\t\t\t\t\tif (this.anzeige.getSelectedRow() >= 0) {\n\t\t\t\t\t\tthis.tabellenspalten.add(this.anzeige.getSelectedRow(), values.get(i));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.tabellenspalten.add(values.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.doRepaint();\n\t\t}\n\t}",
"public List<GameObject> getSelected() {\n\t\treturn selectedObjects;\n\t}",
"public void editarArtista() {\n\t\tArrayList<String> listString = new ArrayList<>();\r\n\t\tArrayList<ArtistaMdl> listArtista = new ArrayList<>();\r\n\t\tString[] possibilities = pAController.getArtista();\r\n\t\tfor (String s : possibilities) {\r\n\t\t\tString text = s.replaceAll(\".*:\", \"\");\r\n\t\t\tlistString.add(text);\r\n\t\t\tif (s.contains(\"---\")) {\r\n\t\t\t\tArtistaMdl artista = new ArtistaMdl();\r\n\t\t\t\tartista.setNome(listString.get(1));\r\n\t\t\t\tlistArtista.add(artista);\r\n\t\t\t\tlistString.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] possibilities2 = new String[listArtista.size()];\r\n\t\tfor (int i = 0; i < listArtista.size(); i++) {\r\n\t\t\tpossibilities2[i] = listArtista.get(i).getNome();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\tIntent intent = new Intent();\n\t\tintent.putExtra(\"select\", mLaorenList.get(arg2));\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t}",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }",
"@Nullable String pickItem();",
"private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here...\"),\n PICK_IMAGE_REQUEST);\n }",
"public void select();",
"@FXML\n void allSelected(ActionEvent event) {\n //Gets all auctions not being sold by you.\n String sqlSelect = \"Select * from artwork, auction where auction.auctionid = artwork.artworkid and auctioncomp = 0 and auction.seller <> '\" + this.username + \"';\";\n artworkTilePane.getChildren().clear(); //delete all previous artworks.\n getImages(FXCollections.observableArrayList(artworkDatabaseManager.getAllArtworks(sqlSelect)));\n }",
"private void setSelectedWord() {\n for (TableRow row: rows) {\n Drawable background = row.getBackground();\n if (background instanceof ColorDrawable) {\n int backColor = ((ColorDrawable) background).getColor();\n if (backColor == rowSelectColor) {\n final TextView descriptionView = (TextView) row.findViewById(R.id.wordDescription);\n final TextView glossView1 = (TextView) row.findViewById(R.id.wordGloss1);\n if (descriptionView != null) selectedWords = descriptionView.getText().toString();\n if (glossView1 != null) selectedSynset = glossView1.getText().toString();\n }\n }\n }\n }",
"public void selected(String action);",
"public void verSeleccionarAccion(String entidad)\r\n\t{\r\n\t\tseleccionaraccion = new SeleccionarAccion(this, entidad);\r\n\t\tseleccionaraccion.setVisible(true);\r\n\t}",
"@Override\n public void selectGolem(int id) {\n }",
"public S getSelected()\n\t\t{\n\t\t\treturn newValue;\n\t\t}",
"public void selectAProduct() {\n specificProduct.click();\n }",
"@Override\r\n\tpublic ISelection getSelection() {\r\n\t\t//$TODO when could this even happen?\r\n\t\tif (getViewer() == null)\r\n\t\t\treturn StructuredSelection.EMPTY;\r\n\t\treturn getViewer().getSelection();\r\n\t}",
"public boolean isSelected() {\r\n return selected;\r\n }",
"public boolean isSelected() { \n \treturn selection != null; \n }",
"public abstract boolean isSelected();",
"public String selection() {\n return inputter.selection();\n }",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"private boolean itemSelect(boolean refresh, @MagicConstant(flags = {NEXT_DEFAULT, NEXT_REVERSED, NEXT_STOP_WHEN_END, NEXT_EVERY_ITEM}) int flags) {\n int index = samplesList.getSelectedIndex();\n int next = shipment.getNextIndex(index, flags);\n if (next < 0) return false;\n if (refresh) {\n refreshUI(UI_SAMPLE_INFO | UI_SELECTION, next);\n }\n return true;\n }",
"public int getSelected() {\n \t\treturn selected;\n \t}",
"@Override\n public byte[] getSelectedData() {\n return null;\n }"
] | [
"0.6854356",
"0.68222284",
"0.63531506",
"0.62592214",
"0.6186123",
"0.6183073",
"0.61471134",
"0.61200064",
"0.6091136",
"0.6022794",
"0.6018653",
"0.6018653",
"0.5932553",
"0.5927888",
"0.5869759",
"0.5867983",
"0.5780852",
"0.5762728",
"0.5758714",
"0.57489556",
"0.57482415",
"0.5732807",
"0.5723029",
"0.568393",
"0.5679027",
"0.56717324",
"0.56599826",
"0.5656343",
"0.5655481",
"0.564728",
"0.56466",
"0.5634787",
"0.5603316",
"0.5593587",
"0.55912256",
"0.55813247",
"0.55808955",
"0.5565556",
"0.5562518",
"0.5547256",
"0.55345684",
"0.55302453",
"0.55066466",
"0.5506342",
"0.5476093",
"0.5474974",
"0.5466807",
"0.5463012",
"0.5461391",
"0.5461391",
"0.543402",
"0.54317546",
"0.5429464",
"0.5427208",
"0.5419083",
"0.54163504",
"0.5416277",
"0.5415829",
"0.5410211",
"0.54079807",
"0.5399995",
"0.5380725",
"0.5380183",
"0.5374649",
"0.5363692",
"0.53523546",
"0.53462446",
"0.5346051",
"0.53453344",
"0.53452307",
"0.5343876",
"0.5343152",
"0.5342469",
"0.5341869",
"0.5339092",
"0.5329119",
"0.5324481",
"0.53203046",
"0.53203046",
"0.53203046",
"0.53099763",
"0.53086746",
"0.53060377",
"0.5301712",
"0.5299338",
"0.5297084",
"0.5294885",
"0.5274991",
"0.5272984",
"0.5258455",
"0.52508193",
"0.524718",
"0.52457243",
"0.52450293",
"0.5242405",
"0.5231482",
"0.5227404",
"0.52240634",
"0.5223022",
"0.5219555"
] | 0.6560051 | 2 |
Handle updating the time periodically in interactive mode. | private void handleUpdateTimeMessage() {
invalidate();
if (shouldTimerBeRunning()) {
long timeMs = System.currentTimeMillis();
long delayMs = INTERACTIVE_UPDATE_RATE_MS
- (timeMs % INTERACTIVE_UPDATE_RATE_MS);
mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Command\n\t@NotifyChange(\"currentTime\")\n\tpublic void updateTime() {\n\t}",
"public abstract void updateTime(int currentTime);",
"public void update(int time);",
"public void timeChanged();",
"public void updateChangedTime(int hour, int minute);",
"public void updateTime() {\n\t\tthis.currentTime = System.currentTimeMillis();\n\t}",
"public void timeChanged( int newTime );",
"public void clockChange(int time);",
"void updateActiveTime(int T);",
"public static void update() \r\n {\r\n lastTime = currentTime; \r\n currentTime = getTime(); \r\n }",
"public void timeUpdate(int time) {\r\n handler.setTime(time);\r\n }",
"public void update() {\r\n\t\tlabel.setText(time / 60 + \":\" + ((time % 60 <= 9)? (\"0\" + time % 60) : (time % 60)));\r\n\t}",
"void update(String time);",
"public void run() {\n\t\t\tif (minutes == 0 && hours > 0) {\n\t\t\t\thours--;\n\t\t\t\tminutes = 60;\n\t\t\t}\n\t\t\tif (seconds == 0 && minutes > 0) {\n\t\t\t\tminutes--;\n\t\t\t\tseconds = 60;\n\t\t\t\tClientUI.clientHandler.handleMessageFromClientUI(\"getExamChanges:::\" + examID);\n\t\t\t\tString[] respond = stringSplitter.dollarSplit((String) ClientHandler.returnMessage);\n\t\t\t\tif (respond[0].equals(\"approved\") && flag) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tupdateClock(respond[1]);\n\t\t\t\t}\n\t\t\t\tif (respond[0].equals(\"locked\")) {\n\t\t\t\t\thours = 0;\n\t\t\t\t\tminutes = 0;\n\t\t\t\t\tseconds = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tseconds--;\n\t\t\ttimeString = String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\n\t\t\tTimerDisplayTxt.setText(timeString);\n\t\t\tif (hours == 0 && minutes == 0 && seconds == 0)\n\t\t\t\texemTimeOver();\n\t\t}",
"public void updateHour() {\n\t\thilo = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tLabelHora.setText(calculateHour());\n\t\t\t}\n\t\t});\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t}\n\n\t\t\t// UI update is run on the Application thread\n\t\t\tPlatform.runLater(hilo);\n\t\t}\n\t}",
"public void timer() \r\n\t{\r\n\t\tSeconds.tick();\r\n\t \r\n\t if (Seconds.getValue() == 0) \r\n\t {\r\n\t \tMinutes.tick();\r\n\t \r\n\t \tif (Minutes.getValue() == 0)\r\n\t \t{\r\n\t \t\tHours.tick();\r\n\t \t\t\r\n\t \t\tif(Hours.getValue() == 0)\r\n\t \t\t{\r\n\t \t\t\tHours.tick();\r\n\t \t\t}\r\n\t \t}\r\n\t }\t\t\r\n\t \r\n\t updateTime();\r\n\t }",
"public void periodicUpdate();",
"public void currentTime() {\n Thread clock = new Thread() {\n public void run() {\n for (;;) {\n Calendar cal = new GregorianCalendar();\n int second = cal.get(Calendar.SECOND);\n int minute = cal.get(Calendar.MINUTE);\n int hour = cal.get(Calendar.HOUR);\n \n txtKluar.setText(hour + \":\" + minute + \":\" + second + \" \");\n try {\n sleep(1000);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }\n };\n clock.start();\n }",
"public void updatePeriodic() {\r\n }",
"public abstract void update(float time);",
"private void updateTime() \r\n\t {\r\n\t\t \r\n\t\t \tif(Hours.getValue() < 12)\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" am\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \telse if (Hours.getValue() > 12 && Hours.getValue() < 24 )\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" pm\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t }",
"abstract protected void refresh(long time);",
"@Override\n public void run() {\n if (!started) {\n timerTxt.setText(\"00:00:00\");\n }\n else {\n long currentTime = System.currentTimeMillis() - startTime;\n updateTime = currentTime;\n int secs = (int) (updateTime / 1000);\n int mins = secs / 60;\n int hours = mins / 60;\n secs %= 60;\n timerTxt.setText(\"\" + String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs), TextView.BufferType.EDITABLE);\n handler.post(this);\n }\n }",
"public void refresh() {\n\t\tTimeStampApp ts = this.getCurrentTime();\n\t\tString period = \"am\";\n\t\tif (ts.getHour() > 12 || ts.getHour() == 0) {\n\t\t\tperiod = \"pm\";\n\t\t\tts.setHour(ts.getHour()%13 + 1);\n\t\t}\n\t\t\n\t\tTicTac(ts.getHour() + period + \":\" + ts.getMinute() + \" \" + ts.getSecond() + \"s\");\n\t\t\n\t}",
"private void updateTime() {\n timer.update();\n frametime = timer.getTimePerFrame();\n }",
"public void run() {\r\n\t\t// Get current date/time and format it for output\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat format = \r\n\t\t\tnew SimpleDateFormat(\"dd.mm.yyyy hh:mm:ss\");\r\n\t\tString current_time = format.format(date);\r\n\r\n\t\t// Output to user the name of the objecet and the current \r\n\t\t// time\r\n\t\tSystem.out.println(objectName + \" - Current time: \" + \r\n\t\t\t\tcurrent_time);\r\n\t\t\r\n\t\t// notify each observer of timer expiry\r\n\t\tnotifyObservers();\r\n\t}",
"private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }",
"public void updateTimer() {\n this.machineCounter.setTimerValue(Config.MACHINE_TIMER);\n }",
"void update(int seconds);",
"public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}",
"private void updateTime()\n {\n time++;\n this.timeTextField.setText(\"\" + time);\n }",
"void setCurrentTime(long currentTime);",
"@Override\n public void run() {\n while (active) {\n \n tSec.setText(seconds+\"\");\n tMin.setText(minutes+\"\");\n tHours.setText(hours+\"\");\n \n seconds++;\n \n try {\n TimeUnit.SECONDS.sleep(DELAY);\n } \n catch (InterruptedException ex) {\n }\n\n if (seconds >= 59) {\n seconds = -1;\n minutes++;\n }\n\n if (minutes >= 59) {\n seconds = -1;\n minutes = 0;\n hours++;\n }\n }\n }",
"@TmfSignalHandler\n public void currentTimeUpdated(TmfTimeSynchSignal signal) {\n assert (signal != null);\n \n // Update the selected event time\n ITmfTimestamp currentTime = signal.getCurrentTime();\n fCurrentTimestamp = currentTime.getValue();\n \n // Notify the relevant widgets\n fFullTraceHistogram.setCurrentEvent(fCurrentTimestamp);\n fTimeRangeHistogram.setCurrentEvent(fCurrentTimestamp);\n fCurrentEventTimeControl.setValue(fCurrentTimestamp);\n }",
"private void advanceTime() {\r\n myCurrentTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));\r\n }",
"public void realTimeUpdate() {\n if ( millis() - lastTime >= 60000 ) {\n // *Load all_hour data\n eqData.init(hourURL);\n eqData.update(hour);\n println( \"all_hour data updated!\" );\n isHour = true;\n lastTime = millis();\n }\n}",
"public void run()\n \t\t{\n \t\t\t//Update the timer label\n \t\t\tsetTime();\n \t\t}",
"void updateIdleTime(int T);",
"@Override\n public void run() {\n int min, seg;\n \n while(true){\n \n time++;\n min=(int) (time / 60);\n seg=(int) (time % 60);\n lTime.setText(min+\":\"+seg);\n \n try {\n Thread.sleep(1000);\n } catch (Exception ex) {\n \n }\n \n }\n }",
"public void run() {\r\n\t\twhile (currentTime < endOfTime) {\r\n\t\t\tcurrentTime++;\r\n\t\t\tfor (TimeObserver t : observers) {\r\n\t\t\t\tt.timeChanged(currentTime);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void startUpdateTimer();",
"private void trackerTimer() {\n\n Thread timer;\n timer = new Thread() {\n\n @Override\n public void run() {\n while (true) {\n\n if (Var.timerStart) {\n try {\n Var.sec++;\n if (Var.sec == 59) {\n Var.sec = 0;\n Var.minutes++;\n }\n if (Var.minutes == 59) {\n Var.minutes = 0;\n Var.hours++;\n }\n Thread.sleep(1000);\n } catch (Exception cool) {\n System.out.println(cool.getMessage());\n }\n\n }\n timerText.setText(Var.hours + \":\" + Var.minutes + \":\" + Var.sec);\n }\n\n }\n };\n\n timer.start();\n }",
"private void handleTimeUpdate() {\n Assert.isMainThread();\n Log.d(\"KeyguardUpdateMonitor\", \"handleTimeUpdate\");\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onTimeChanged();\n }\n }\n }",
"public void time() {\n System.out.println(\"Enter the time you wish to free up\");\n }",
"public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}",
"public void updateTime()\n {\n lblStatus.setText(\"Up: \" + time);\n\n if (time.getTimeRan() >= 60)\n {\n lblRPM.setText(\"Avg RPM: \"\n + (int) (recoveryAttempts\n / (time.getTimeRan() / 60)));\n ti.setToolTip(\"AR v4 - \"\n + (int) (recoveryAttempts\n / (time.getTimeRan() / 60)) + \" rpm\");\n }\n }",
"public void timeUpdate(AudioHandler handler, long time) {\r\n slrTime.setValue((int) time);\r\n lblTime.setText(Utility.formatTime(time, false) + \" / \" + Utility.formatTime(handler.getDuration(), false));\r\n if (panGlassPane.isVisible()) panGlassPane.repaint();\r\n }",
"public void run() {\n\t\t\tCalendar c = new GregorianCalendar();\n\t\t\tcurrHour = c.get(Calendar.HOUR);\n\t\t\tcurrMin = String.valueOf(c.get(Calendar.MINUTE));\n\t\t\tif(currMin.length()==1) {\n\t\t\t\tcurrMin = \"0\"+currMin;\n\t\t\t}\n\t\t\tcheckAlarm();\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\twhile(true) {\n\t\t\t\tDate ti = new Date();\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n//\t\t\t\tSystem.out.println(sdf.format(ti));\n\t\t\t\tt.setText(sdf.format(ti));\n\t\t\t\t}\n\t\t}",
"public void setTime(){\r\n \r\n }",
"@Override\r\n public void update(long timePassed) {\n\r\n }",
"public void act() \n {\n updateTimerDisplay();\n if(timeCounter < 3600){\n timeCounter++;\n \n }else{\n timeElapsed++;\n timeCounter = 0;\n }\n checkHighScore();\n checkRegScore();\n\n }",
"public void updateTime(double time){\n\t\t//System.out.println(\"Updating time at \"+time);\n\t\tif(drivefirst)\n\t\t\tupdateTimeDF(time);\n\t\telse\n\t\t\tupdateTimeWF(time);\n\t}",
"@Override\n public void run() {\n textTimer.setText(String.valueOf(currentTime));\n }",
"public abstract void update(Long millisPassed, UserInput currentUserInput);",
"public void updateTime(){\r\n\t\tBlock selectedBlock = experiment.getBlocking().getSelectedBlockStructure();\r\n\t\testimatedTimeTotal.setText(secondsToString(estimateTime()));\r\n\t\testimatedTimeSubject.setText(secondsToString((long)(estimateTime()/selectedBlock.get(0).getReplications())));\r\n\t}",
"@Override\n\tpublic void update(long interval) {\n\n\t}",
"@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tif (now > lastTimeCall + 1_000_000_001) {\n\t\t\t\t\tduration = duration.subtract(Duration.seconds(1));\n\n\t\t\t\t\tint remainingSeconds = (int) duration.toSeconds();\n\t\t\t\t\tint min = (remainingSeconds) / SECONDS_PER_MINUTE;\n\t\t\t\t\tint sec = (remainingSeconds) % SECONDS_PER_MINUTE;\n\n\t\t\t\t\tif (min == 0 && sec == 0) {\n\t\t\t\t\t\ttimer.stop();\n\t\t\t\t\t\tgameStage.hide();\n\t\t\t\t\t\tGameController.gameBgm.stop();\n\t\t\t\t\t\tSystem.out.println(\"Times up\");\n\t\t\t\t\t\t// show final score\n\t\t\t\t\t\t//TimesUpSubScene timesUp = new TimesUpSubScene();\n\n\n\t\t\t\t\t}\n\t\t\t\t\ttimerLabel.textProperty().setValue(String.format(\"%02d\", min) + \" : \" + String.format(\"%02d\", sec));\n\t\t\t\t\tlastTimeCall = now;\n\t\t\t\t}\n\n\t\t\t}",
"@JsAccessible\n public void onTimeUpdated(double currentTime) {\n timeUpdatedListeners.forEach(listener -> listener.accept(currentTime));\n }",
"protected void update(IInterval interval) {}",
"@Override\n public void periodic() {\n UpdateDashboard();\n }",
"private void sync() {\n float loopSlot = 1.0f/TARGET_FPS;\n double endTime = updateTimer.getLastRecordedTime() + loopSlot;\n while(updateTimer.getTime() < endTime) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n Thread.currentThread().interrupt();\n }\n }\n }",
"private void runClock() {\n new Thread(() -> {\n while (true) {\n Date d = new Date();\n lblTime.setText(Application.TIME_FORMAT.format(d));\n lblDate.setText(Application.DATE_FORMAT.format(d));\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n // ignore\n }\n }\n }).start();\n }",
"protected void runEachHour() {\n \n }",
"@Override()\n public void update() {\n showSeparator(' ');\n \n // Update time display\n showTime(alarmTime);\n \n // Clear weekday Selector\n for(int i = 0; i < DAYS.length; i++) {\n clock.getDigit(2).setText(i+2, DAYS[i]);\n }\n // Update weekday selector\n String str;\n for(int i = 0; i < DAYS.length; i++){\n str = DAYS[i];\n if(days[i]){\n str = \">\"+DAYS[i]+\"<\";\n }\n clock.getDigit(2).setText(i+2,str); \n }\n String activeText = alarm.active ? \"Disable\" : \"Enable\";\n clock.getDigit(2).setText(10, activeText);\n }",
"@Override\n\tpublic void update() {\n\n\t\ttimer++;\n\t\tupdatePlayer();\n\t\tupdateScreen();\n\t\tupdateLives();\n\n\t}",
"public void updateGameTime() {\n\t\tGameTime = Timer.getMatchTime();\n\t}",
"private void reactMain_region_digitalwatch_Display_refreshing_RefreshingChrono() {\n\t\tif (sCIButtons.topLeftPressed) {\n\t\t\tnextStateIndex = 1;\n\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\ttimer.unsetTimer(this, 3);\n\n\t\t\ttimer.setTimer(this, 2, 1 * 1000, false);\n\n\t\t\tsCIDisplay.operationCallback.refreshTimeDisplay();\n\n\t\t\tsCIDisplay.operationCallback.refreshDateDisplay();\n\n\t\t\tnextStateIndex = 1;\n\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingTime_timeView_hideAlarm;\n\t\t} else {\n\t\t\tif (timeEvents[3]) {\n\t\t\t\tnextStateIndex = 1;\n\t\t\t\tstateVector[1] = State.$NullState$;\n\n\t\t\t\ttimer.unsetTimer(this, 3);\n\n\t\t\t\ttimer.setTimer(this, 3, 250, false);\n\n\t\t\t\tsCIDisplay.operationCallback.refreshChronoDisplay();\n\n\t\t\t\tsCILogicUnit.operationCallback.getChrono();\n\n\t\t\t\tnextStateIndex = 1;\n\t\t\t\tstateVector[1] = State.main_region_digitalwatch_Display_refreshing_RefreshingChrono;\n\t\t\t}\n\t\t}\n\t}",
"public void setTime(double time) {_time = time;}",
"public void interval() {\n APIlib.getInstance().addJSLine(jsBase + \".interval();\");\n }",
"public void scheduledUpdate() {\n\n if (isUpdating.compareAndSet(false, true)) {\n\n if (getCurrentChannel() != null) {\n\n updateData();\n }\n }\n\n timer.cancel();\n timer.purge();\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new UpdateTask(), 3600000,\n 3600000);\n\n }",
"public void trackTime()\n {\n frames += 1;\n\n // Every second (roughly) reduce the time left\n if (frames % 60 == 0)\n {\n time += 1;\n showTime();\n }\n }",
"public void run()\n\t\t{\n\t\t\ttimerRunning = true;\n\t\t\tdate = new Date();\n\t\t\tstartTime = date.getTime();\n\t\t\tendTime = startTime + planet.getTimeMS();\n\t\t\tbuttonPanel.getTimeLabel().setText(\"Time: \" + planet.getTimeMS()/1000 + \" s\");\n\n\t\t\twhile(timerRunning)\n\t\t\t{\n\t\t\t\tdate = new Date();\n\t\t\t\tnowTime = date.getTime();\n\n\t\t\t\t// If the countdown has reached 0 (or less)\n\t\t\t\t// Stop the timer and other threads and end the game\n\t\t\t\tif(nowTime >= endTime)\n\t\t\t\t{\n\t\t\t\t\tstopTimer();\n\t\t\t\t\tbuttonPanel.getTimeLabel().setText(\"Time: 0 s\");\n\t\t\t\t\tstopThreads();\n\t\t\t\t\tJOptionPane.showMessageDialog(lander,\"Sorry, you ran out of time.\\nGame Over!\", \"Ran Out Of Time\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\tendGame();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbuttonPanel.getTimeLabel().setText(\"Time: \" + (endTime-nowTime)/1000 + \" s\");\n\t\t\t\t}\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException e) {}\n\t\t\t}\n\t\t}",
"public void run() {\r\n\t\tboolean repeat = true;\r\n\t\tint count = 0;\r\n\t\twhile(repeat){\r\n\t\t\tcount ++;\r\n\t\t\t//updates currency rates every hour (count>60)\r\n\t\t\tif(count > 60){\r\n\t\t\t\tcurrencies.updateRates();\r\n\t\t\t\tcount = 1;\r\n\t\t\t}\r\n\t\t\tprintStatus();\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(60000);\r\n\t\t\t}catch(InterruptedException ex){\r\n\t\t\t\trepeat = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void indicateCalendarDisplayTimeChanged() {\n raise(new CalendarDisplayTimeChangedEvent(currentDateTime));\n }",
"public void update()\r\n\t{\r\n\t\tcurrenttime = Calendar.getInstance();\r\n\t\trunningTime = (currenttime.getTimeInMillis() - starttime.getTimeInMillis()) - amountOfPause;\r\n\t\t\r\n\t\tif (tickPeriod != 0)\r\n\t\t{\r\n\t\t\tif (runningTime - lastRunningTime >= tickPeriod)\r\n\t\t\t{\r\n\t\t\t\tpassedTicks++;\r\n\t\t\t\tlastRunningTime = passedTicks * tickPeriod;\r\n\t\t\t\tif (tickListener != null) tickListener.onTick(this);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n TimeManager tM = new TimeManager();\n try {\n tM.timeKeeper();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }",
"public void startUpdate(){ \n stimer.getTimer().scheduleAtFixedRate(new TimerTask()\n {\n @Override\n public void run(){updateShareRates();}\n }, 2000, 1000);\n }",
"public void run() {\n this.setVisible(true);\n try {\n Date date = new SimpleDateFormat(Time.DateFormat).parse(this.updatedAt);\n this.inputDate.setDate(date);\n }catch(Exception err) {\n System.out.println(err.getMessage());\n }\n this.idHeader.setText(\"#\" + String.valueOf(this.id));\n this.inputDescription.setText(this.description);\n this.inputNominal.setText(String.valueOf(Math.abs(this.nominal)));\n }",
"protected abstract void updateDayTime(fr.inria.phoenix.diasuite.framework.datatype.daytime.DayTime currentTime) throws Exception;",
"public void updateClock() {\n if (!this.mDemoMode) {\n this.mCalendar.setTimeInMillis(System.currentTimeMillis());\n setText(getSmallTime());\n setContentDescription(this.mContentDescriptionFormat.format(this.mCalendar.getTime()));\n }\n }",
"public void handle(long currentNanoTime) {\n long elapsedNanos = currentNanoTime - previousTime;\n if (elapsedNanos > interval) {\n updateWorld();\n renderWorld(gc, world);\n previousTime = currentNanoTime;\n }\n }",
"public void run()\r\n {\r\n debug(\"WatchListMonitorTask::run()\");\r\n if ( lastUpdate == null )\r\n {\r\n debug(\"WatchListMonitorTask::run() - Last Update is null\");\r\n return;\r\n }\r\n // Get the current time\r\n GregorianCalendar t1 = new GregorianCalendar();\r\n // Get the Displayed Tab index\r\n int index = WatchListTableModule.this.tabPane.getSelectedIndex();\r\n // calculate the time difference from the last time\r\n long diffTime = t1.getTimeInMillis() - lastUpdate.getTimeInMillis();\r\n // Is the panel even displayed???\r\n boolean moduleDisplayed = WatchListTableModule.this.getModulePanel().isShowing();\r\n\r\n if ((diffTime >= MAX_WAIT_TIME) && (moduleDisplayed))\r\n {\r\n System.out.println(\"WatchListMonitorTask::run() - Fired a startupOnWatchListTimers on Index\" + index);\r\n WatchListTableModule.this.startupWatchListTimers(index);\r\n }\r\n }",
"protected void updateTime(float deltaTime) {\n }",
"protected abstract void update(double deltaTime);",
"public void run() {\n this.comp.setCurrentBeat(0);\n }",
"public abstract double sensingTime();",
"public void run() {\n if (!this.DATA_STORE.isShutdown()) {\n switch(clockAction) {\n case \"plusHour\":\n do {\n DATA_STORE.setHourValue(DATA_STORE.getHourValue() + 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"plusMinute\":\n do {\n DATA_STORE.setMinuteValue(DATA_STORE.getMinuteValue() + 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"plusSecond\":\n do {\n DATA_STORE.setSecondValue(DATA_STORE.getSecondValue() + 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"minusHour\":\n do {\n DATA_STORE.setHourValue(DATA_STORE.getHourValue() - 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"minusMinute\":\n do {\n DATA_STORE.setMinuteValue(DATA_STORE.getMinuteValue() - 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n break;\n case \"minusSecond\":\n do {\n DATA_STORE.setSecondValue(DATA_STORE.getSecondValue() - 1);\n defaultStatementsInCase();\n } while(DATA_STORE.isButtonPressed());\n }\n }\n }",
"public abstract void update(float dt);",
"public abstract void update(float dt);",
"public abstract void update(float dt);",
"@Override\n public void run() {\n this.setVisible(true);\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n Date date = new Date();\n textArea.append(\"\" + date + \"\\n\");\n }",
"public void pickUpTimer()\r\n\t{\t\t\r\n\t\tSystem.out.println(timer.get());\r\n\t\tif(timer.get() < Config.Auto.timeIntakeOpen)\r\n\t\t{\r\n\t\t\t//claw.openClaw();\r\n\t\t\tSystem.out.println(\"in second if\");\r\n\t\t}\r\n\t\t\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeElevatorStack)\r\n\t\t{\r\n\t\t\t//elevator.setLevel(elevatorLevel);\r\n\t\t\t//elevatorLevel++;\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeIntakeClose)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in first if\");\r\n\t\t\t//claw.closeClaw();\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}",
"public void update(long ms) {\n\t\t\n\t}",
"private void setTime() {\n \n new Timer(0, new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n Date d=new Date();\n SimpleDateFormat time=new SimpleDateFormat(\"hh:mm:ss a\");\n lblTime.setText(time.format(d));\n }\n }).start();\n \n \n }",
"@Override\n\t\tpublic void handle(long now) {\n\t\t\tif(!engine.isRunning()) {\n\t\t\t\tthis.stop();\n\t\t\t}else {\n\t\t\t\tmapPane.update();\n\t\t\t}\n\t\t}"
] | [
"0.73422796",
"0.7269392",
"0.7124857",
"0.70313686",
"0.70293134",
"0.6901823",
"0.68647027",
"0.6848783",
"0.6825434",
"0.6774713",
"0.67741597",
"0.67260456",
"0.6702027",
"0.66888845",
"0.66514474",
"0.6637782",
"0.65636086",
"0.65627605",
"0.65549445",
"0.6521443",
"0.65179026",
"0.6487337",
"0.64756644",
"0.6447814",
"0.6436411",
"0.6432331",
"0.64200824",
"0.6412592",
"0.6410782",
"0.6410695",
"0.64072174",
"0.63828826",
"0.6378365",
"0.63370866",
"0.6299421",
"0.6296351",
"0.628879",
"0.62738585",
"0.6264834",
"0.6248621",
"0.6227287",
"0.62170607",
"0.6216046",
"0.62067133",
"0.61936766",
"0.61865723",
"0.6174643",
"0.616739",
"0.6163408",
"0.6132727",
"0.6119818",
"0.61174846",
"0.6113748",
"0.60922074",
"0.6087127",
"0.6085988",
"0.6066223",
"0.60482025",
"0.60472876",
"0.6045062",
"0.6040829",
"0.6022635",
"0.6011461",
"0.59946424",
"0.5994625",
"0.5993861",
"0.59872615",
"0.59768903",
"0.59765494",
"0.59590846",
"0.59554607",
"0.5908872",
"0.59058446",
"0.5892368",
"0.5883974",
"0.5869991",
"0.5865148",
"0.5859806",
"0.5847995",
"0.58441305",
"0.58318514",
"0.58309925",
"0.5828746",
"0.58258486",
"0.5825139",
"0.58162624",
"0.5814555",
"0.5812892",
"0.5806086",
"0.5806086",
"0.5806086",
"0.5799181",
"0.5796047",
"0.5792214",
"0.57883036",
"0.5787852"
] | 0.64134926 | 31 |
Fonction start, lancement de la HomeView ( Menu ) du jeu. | @Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("PACMAN");
View v = new HomeView();
v.start(primaryStage);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public startingMenu() {\r\n initComponents();\r\n }",
"public void start()\n {\n uploadDataFromFile();\n menu.home();\n home();\n }",
"public void home() {\n\t\tUserUI ui = new UserUI();\n\t\tui.start();\n\t}",
"void startView();",
"@Override protected void startup() {\n show(new FrontView());\n //show(new RestaurantManagementView(this));\n }",
"private void startHome() {\n if (context instanceof MainActivity) {\n CityListFragment fragment = CityListFragment\n .getInstance(fatherParent);\n ((MainActivity) context).switchContent(fragment, true);\n }\n }",
"public myView() {\n initComponents();\n CreatMenu();\n }",
"public void initAccueil() {\n\t\ttry {\n\t\t\tfinal FXMLLoader loader = ViewUtils.prepareFXMLLoader(getClass().getResource(\"/fxml/Home.fxml\"));\n\n\t\t\tfinal Parent root = loader.load();\n\t\t\tthis.changeSceneTo(root);\n\n\t\t\tstage.setResizable(false);\n\n\t\t\tfinal HomeView controller = loader.getController();\n\t\t\tcontroller.setMainApp(this);\n\t\t} catch (final IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Home() {\n initComponents();\n ShowLauncher();\n }",
"public void gotoMenu() {\n try {\n MenuClienteController menu = (MenuClienteController) replaceSceneContent(\"MenuCliente.fxml\");\n menu.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void initMenu(){\n\t}",
"private void homemenu() \n\n{\nstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\t\n}",
"public void start(View v){\n Intent intent = new Intent(this, Home.class);\n startActivity(intent);\n }",
"@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }",
"public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }",
"public void iniciar(){\r\n \r\n view.setTitle(\"MVC Proyecto\");\r\n //Indica posicion, null -> posicion 0 = centro\r\n view.setLocationRelativeTo(null);\r\n \r\n }",
"void showHome() {\n\t\tsetContentView(R.layout.home);\r\n\t\tView homeView = findViewById(R.id.home_image);\r\n\t\thomeView.setOnClickListener(new View.OnClickListener() {\r\n\t\t public void onClick(View v) {\r\n\t\t \tstartGame();\r\n\t\t }\r\n\t\t});\r\n\t}",
"@Override\n\tprotected void onCreate(@Nullable Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\tsetContentView(R.layout.activity_main_v2);\n\t\tinit();\n\t\tinitView();\n\t\tstartFragment(new HomeF(), \"\");\n\t\tstartSlide(new MenuSlide());\n\t}",
"public void menu(){\n super.goToMenuScreen();\n }",
"public void start()\n\t{\n\t\tview.showWindow();\n\t\taddListeners();\n\t}",
"private void goToMenu() {\n game.setScreen(new MainMenuScreen(game));\n\n }",
"private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}",
"public home() {\n initComponents();\n }",
"public home() {\n initComponents();\n }",
"public home() {\n initComponents();\n }",
"public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}",
"public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}",
"@FXML\r\n\tpublic void vaiAllaHome(ActionEvent event) throws IOException {\r\n\t\tHomeView view = new HomeView(this.getStage());\r\n\t\tview.mostra();\r\n\t}",
"protected void callHome() {\n\t\tIntent intent = new Intent(this, AdminHome.class);\r\n\t\tstartActivity(intent);\r\n\t}",
"public void showHomeScreen() {\n try {\n FXMLLoader loader1 = new FXMLLoader();\n loader1.setLocation(MainApplication.class.getResource(\"view/HomeScreen.fxml\"));\n AnchorPane anchorPane = (AnchorPane) loader1.load();\n rootLayout.setCenter(anchorPane);\n HomeScreenController controller = loader1.getController();\n controller.setMainApp(this);\n } catch (IOException e) {\n \t\te.printStackTrace();\n \t }\n }",
"@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.home_content);\n init();\n }",
"public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized welcome message\n this.displayWelcomeMessage(user);\n// Display the Main menu.\n MainMenuView mainMenu = new MainMenuView();\n mainMenu.display();\n }",
"private void goToMenu() {\n Intent intentProfile = new Intent(PregonesActivosActivity.this, MenuInicial.class);\n PregonesActivosActivity.this.startActivity(intentProfile);\n }",
"public void transitionToHome() throws RemoteException{\n removeAll();\n mainPanel = new MainPanel(contr);\n add(mainPanel, \"span 1\");\n }",
"public void goToMainMenu(View v){\n startActivity(new Intent(MainActivity.this, frontClass.class));\n }",
"public void sendeSpielStarten();",
"private void CallHomePage() {\n\t\t\n\t\tfr = new FragmentCategories();\n\t\tFragmentManager fm = getFragmentManager();\n\t\tFragmentTransaction fragmentTransaction = fm.beginTransaction();\n\t\tfragmentTransaction.replace(R.id.fragment_place, fr);\n\t\tfragmentTransaction.addToBackStack(null);\n\t\tfragmentTransaction.commit();\n\n\t}",
"private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public void startApp() {\r\n\t\ttry {\r\n\t\t\tFXMLLoader loader;\r\n\t\t\t// load the FXML resource\r\n\t\t\tif (isRegister) {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeRegister.fxml\", new BorderPane(), \"Register\");\r\n\t\t\t\tHomeRegisterController regiController = loader.getController();\r\n\t\t\t\tregiController.setMain(this);\r\n\t\t\t} else {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeIdentification.fxml\", new BorderPane(), \"Identification\");\r\n\t\t\t\tHomeIdentificationController identiController = loader.getController();\r\n\t\t\t\tidentiController.setMain(this);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public void goToMenu (View view)\n {\n Intent intentProfile = new Intent(PregonesActivosActivity.this, MenuInicial.class);\n PregonesActivosActivity.this.startActivity(intentProfile);\n }",
"@Override\r\n\tpublic void onStartNavi(int arg0) {\n\r\n\t}",
"@Override\n public void onStartNavi(int arg0) {\n\n }",
"@Override\n\tpublic void onStartNavi(int arg0) {\n\n\t}",
"public void navigateToHome() {\n Intent intent = new Intent(this, MainMenu.class);\n startActivity(intent);\n finish();\n }",
"public void tohome (View view){\n Intent i = new Intent(this,Intro.class);\n startActivity(i);\n }",
"public void startMenu() {\n setTitle(\"Nier Protomata\");\n setSize(ICoord.LAST_COL + ICoord.ADD_SIZE,\n ICoord.LAST_ROW + ICoord.ADD_SIZE);\n \n setButton();\n }",
"@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}",
"public Home() {\n initComponents();\n \n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate( R.menu.home_1, menu );\n return true;\n }",
"public home() {\n initComponents();\n ctoko = new controllerToko(this);\n ctoko.isiTable();\n }",
"private void loadHome(){\n Intent intent = new Intent(this, NameListActivity.class);\n startActivity(intent);\n finish();\n }",
"public void start() {\n\t\tinitializeComponents();\r\n\r\n\t\tint userChoice;\r\n\r\n\t\tdo {\r\n\t\t\t// Display start menu\r\n\t\t\tview.displayMainMenu();\r\n\r\n\t\t\t// Get users choice\r\n\t\t\tuserChoice = view.requestUserChoice();\r\n\r\n\t\t\t// Run the respective service\r\n\t\t\tswitch (userChoice) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tservice.register();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tservice.login();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tservice.forgotPassword();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tservice.logout();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tservice.displayAllUserInfo(); // Secret method\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (userChoice != 4);\r\n\t}",
"public void startScene()\r\n\t{\r\n\t\tthis.start();\r\n\t}",
"@Override\n public void run() {\n Intent mainIntent = new Intent(AzadUniversity.this, FirstMenu.class);\n AzadUniversity.this.startActivity(mainIntent);\n AzadUniversity.this.finish();\n }",
"public Homepage() {\n initComponents();\n }",
"public void start() {\n\n\t\t// There will be no established screen at startup.\n\t\tif (screen != null)\n\t\t\tthrow new RuntimeException(\"Multiple instances of the game cannot be run.\");\n\n\t\t// Fire up the main menu screen.\n\t\tsetCurrentScreen(new MainMenuScreen());\n\t}",
"public static void activateMenu() {\n instance.getMenu().show();\n }",
"public StartPage() {\n initComponents();\n \n }",
"public VentaMainView() {\n initComponents();\n controlador = new VentaController();\n this.setLocationRelativeTo(null);\n cargarCategorias();\n cargarArticulos();\n }",
"public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home, menu);\r\n return true;\r\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home, menu);\r\n return true;\r\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home, menu);\r\n return true;\r\n }",
"public void homeClicked() {\r\n Pane newRoot = loadFxmlFile(Home.getHomePage());\r\n Home.getScene().setRoot(newRoot);\r\n }",
"@Override\n\tpublic void start() {\n\t\tSystem.out.println();\n\t\tif (showtimes.isFull()) {\n\t\t\tSystem.out.println(\"No seats are available!\");\n\t\t\tthis.home();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Seats available:\");\n\t\tthis.showtimes.viewSeat();\n\t\tSystem.out.println(\"0 : Proceed with booking\");\n\t\tSystem.out.println(\"1 : Back to menu\");\n\t\t\n\t\tint choice = this.getInputChoice(0, 1);\n\t\tthis.run(choice);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t//a partir de aqui comenzar a llamar a los layouts \t\t\n\t\tcurrent_location();\n\t\t\n\t\t\n\t\t\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic void openMenu() {\n\t\t}",
"public HomePanel() {\r\n\t\tinitialisation();\r\n initComponents();\r\n\t\tpostInit();\r\n }",
"public v_home() {\n initComponents();\n koneksi = DatabaseConnection.getKoneksi(\"localhost\", \"5432\", \"postgres\", \"posgre\", \"db_hesco\");\n showData();\n showStok();\n }",
"public ViewHome() {\n controller = new ControllerViewHome(this);\n initComponents();\n ImageIcon imagemDeFundo = new ImageIcon(getClass().getResource(\"/link.jpg\"));\n JLabel labelImg = new JLabel(\"\", imagemDeFundo, JLabel.CENTER);\n jPanel_container.add(labelImg, BorderLayout.CENTER);\n \n panelConfigLocalDiretorios = new PanelConfigLocalDiretorios();\n panelConfigServidoresFTPs = new PanelConfigServidoresFTPs();\n \n ScheduleEngine.prepararEIniciarScheduler();\n controller.rodarServicoEmBackGround();\n }",
"public HomeView() {\n initComponents();\n }",
"@Override\n\tpublic void goToMainMenu() {\n\t\tfinish();\n\t}",
"@Override\n public void onStart() {\n GuiMain gui = new GuiMain(this);\n gui.setVisible(true);\n log(\"Script is starting!\");\n\n }",
"public void pressMainMenu() {\n }",
"public void loadStartPage()\n\t{\n\t}",
"public Home() {\n initComponents();\n setTitle(\"Home\");\n setResizable(false);\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\n adminButton.setVisible(Login.isAdmin());\n\n String info = null;\n try {\n info = DataBase.showAccDet(Login.getIDAcc());\n } catch (SQLException ex) {\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\n }\n String[] cuv = info.split(\" \");\n welcomeLabel.setText(\"Welcome back, \" + cuv[1] + \"!\");\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_start_page, menu);\n return true;\n }",
"public void home_index()\n {\n Home.index(homer);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tMenuInflater inflater = getMenuInflater();\n\t\t\tinflater.inflate(R.menu.menu_home, menu);\n\t\t\treturn true;\n\t\t}",
"public void mainMenu() {\n Game.stage.setScene(mainMenuScene);\n Game.stage.show();\n }",
"public Home() {\r\n initComponents();\r\n }",
"public Home() {\r\n initComponents();\r\n }",
"public static void main(String[] args) {\r\n // TODO code application logic here\r\n ObjectFactory.getUIinstance().getHomeInstance().setVisible(true);\r\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.home, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.home, menu);\r\n\t\treturn true;\r\n\t}",
"private void prepareAndShowHomeScreen() {\n\t\tFraHeader header = FraHeader.newInstance(true);\n\t\theader.showBackButton(false);\n\t\tFraHomeContent homeContent = FraHomeContent.newInstance();\n\t\tFraFooter footer = FraFooter.newInstance(FooterIcons.TOP10);\n\t\tFraSearch search = FraSearch.newInstance();\n\t\tFraFont font = FraFont.newInstance();\n\t\tFraShare share = FraShare.newInstance();\n\n\t\treplaceScreenWithNavBarContentAndMenu(header, FraHeader.TAG,\n\t\t\t\thomeContent, FraHomeContent.TAG, footer, FraFooter.TAG,\n\t\t\t\tFraMenu.newInstance(), FraMenu.TAG, search, FraSearch.TAG,\n\t\t\t\tfont, FraFont.TAG, share, FraShare.TAG, false);\n\t\tprepareAndShowHomeScreen(false);\n\t\t/*\n\t\t * replaceScreenWithNavBarContentAndFooter(homeContent,\n\t\t * FraHomeContent.TAG, footer, FraFooter.TAG, false);\n\t\t */\n\t}",
"public Menu() {\n mainMenuScene = createMainMenuScene();\n mainMenu();\n }",
"public ifrmHomePage() {\n initComponents();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\t\tLog.i(TAG, \"onCreate\");\n setContentView(R.layout.app_home);\n }",
"public void Inicio (View view){\n Intent inicio = new Intent(this, MainActivity.class);\n startActivity(inicio);\n }",
"public void begin() {\n\t\tview.setVisible(true);\n\t}",
"public void actionPerformed (ActionEvent e) { \n\t\ttry {\n\t\t\tnew HomeMenuGUI ();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"public HomeScreen() {\n initComponents();\n }",
"@Override\n\tpublic void goToUiCobrador() {\n\t\tif(uiHomeCobrador!=null){\n\t\t\tuiHomeCobrador.getHeader().getLblTitulo().setText(constants.cobrador());\n\t\t\tuiHomeCobrador.getHeader().setVisibleBtnMenu(true);\n\t\t\tuiHomeCobrador.getContainer().showWidget(0);\n\t\t\t}\n\t}",
"public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.start_screen, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home_screen, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home, menu);\n return true;\n }"
] | [
"0.74894",
"0.7392565",
"0.73030835",
"0.72638845",
"0.7259625",
"0.722702",
"0.71344006",
"0.70434034",
"0.7028653",
"0.6977038",
"0.6968218",
"0.6946735",
"0.6936644",
"0.6917377",
"0.6916726",
"0.68983144",
"0.6896072",
"0.68834966",
"0.6868395",
"0.68513876",
"0.6840085",
"0.68345773",
"0.6822914",
"0.6822914",
"0.6822914",
"0.6743198",
"0.6743198",
"0.6742545",
"0.6730528",
"0.67283404",
"0.6727875",
"0.67072105",
"0.6689713",
"0.66878027",
"0.66858464",
"0.6679013",
"0.6676483",
"0.6674532",
"0.66693795",
"0.6666846",
"0.66660666",
"0.66659725",
"0.66641533",
"0.66462535",
"0.6645885",
"0.66304034",
"0.6625354",
"0.6622098",
"0.66122806",
"0.6606563",
"0.6597464",
"0.6592016",
"0.65889716",
"0.6572951",
"0.65667236",
"0.6565926",
"0.65644234",
"0.6560864",
"0.656039",
"0.6551331",
"0.65493965",
"0.6543279",
"0.6543279",
"0.6543279",
"0.6543163",
"0.6533952",
"0.65339005",
"0.6527425",
"0.65267026",
"0.6522756",
"0.6519049",
"0.6513124",
"0.6513045",
"0.6510961",
"0.6508373",
"0.6505078",
"0.6502467",
"0.6501753",
"0.65011585",
"0.6500931",
"0.65008205",
"0.6497719",
"0.6497719",
"0.64958215",
"0.64954174",
"0.64954174",
"0.64951587",
"0.64941734",
"0.6493151",
"0.64895165",
"0.64825356",
"0.6481701",
"0.64812386",
"0.64732915",
"0.64724785",
"0.64723665",
"0.6466215",
"0.64636546",
"0.6462565",
"0.6462565"
] | 0.676018 | 25 |
initialize your data structure here. | public MedianFinder() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initData() {\n\t}",
"private void initData() {\n }",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"private void InitData() {\n\t}",
"private void initData(){\n\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\r\n\tpublic void initData() {\n\t}",
"private void initialize() {\n first = null;\n last = null;\n size = 0;\n dictionary = new Hashtable();\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}",
"public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }",
"protected @Override\r\n abstract void initData();",
"public void initialize() {\n // empty for now\n }",
"void initData(){\n }",
"private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}",
"public void initData(){\r\n \r\n }",
"public InitialData(){}",
"abstract void initializeNeededData();",
"public void initialize()\n {\n }",
"public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void init() {\n\t\t}",
"private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }",
"private void initializeData() {\n posts = new ArrayList<>();\n posts.add(new Posts(\"Emma Wilson\", \"23 years old\", R.drawable.logo));\n posts.add(new Posts(\"Lavery Maiss\", \"25 years old\", R.drawable.star));\n posts.add(new Posts(\"Lillie Watts\", \"35 years old\", R.drawable.profile));\n }",
"public void initialize() {\n grow(0);\n }",
"public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }",
"public void init() {\n \n }",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"private void initData() {\n requestServerToGetInformation();\n }",
"private TigerData() {\n initFields();\n }",
"public void initialise() \n\t{\n\t\tthis.docids = scoresMap.keys();\n\t\tthis.scores = scoresMap.getValues();\n\t\tthis.occurrences = occurrencesMap.getValues();\t\t\n\t\tresultSize = this.docids.length;\n\t\texactResultSize = this.docids.length;\n\n\t\tscoresMap.clear();\n\t\toccurrencesMap.clear();\n\t\tthis.arraysInitialised = true;\n\t}",
"public void InitData() {\n }",
"public void init() {\r\n\r\n\t}",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"private void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void initialise() {\n \thashFamily = new Hash[this.r];\n for(int i= 0; i < this.r;i++)\n {\n \tthis.hashFamily[i] = new Hash(this.s * 2);\n }\n this.net = new OneSparseRec[this.r][this.s *2];\n for(int i = 0 ; i < this.r; i++)\n \tfor(int j =0 ; j< this.s * 2 ; j++)\n \t\tthis.net[i][j] = new OneSparseRec();\n \n }",
"protected void initialize() {\n \t\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"public DataStructure() {\r\n firstX = null;\r\n lastX = null;\r\n firstY = null;\r\n lastY = null;\r\n size = 0;\r\n }",
"private void initialize() {\n }",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"private void init() {\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private RandomData() {\n initFields();\n }",
"public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }",
"private void initialize() {\n\t\t\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void initialize() {\r\n }",
"public void initialize() {\n // TODO\n }",
"private void initValues() {\n \n }",
"public void init() {\n\t\t\n\t}",
"public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"bebexitaHemoxita@gmail.com\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}",
"private void initialize() {\n\t}",
"public void init() {\n\t\n\t}",
"private void initStructures() throws RIFCSException {\n initTexts();\n initDates();\n }",
"public AllOOneDataStructure() {\n\t\thead=new Node(\"\", 0);\n\t\ttail=new Node(\"\", 0);\n\t\thead.next=tail;\n\t\ttail.prev=head;\n\t\tmap=new HashMap<>();\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }",
"private void initialize() {\n this.pm10Sensors = new ArrayList<>();\n this.tempSensors = new ArrayList<>();\n this.humidSensors = new ArrayList<>();\n }",
"private void init() {\n UNIGRAM = new HashMap<>();\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}"
] | [
"0.7977482",
"0.7960524",
"0.77892214",
"0.77469254",
"0.77469254",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7555887",
"0.74711394",
"0.74664557",
"0.7456787",
"0.7442776",
"0.74332404",
"0.74293566",
"0.74293566",
"0.74293566",
"0.7424801",
"0.7424801",
"0.74193865",
"0.74193865",
"0.7396702",
"0.7377209",
"0.7337531",
"0.7284757",
"0.7242543",
"0.7239983",
"0.7234074",
"0.7234074",
"0.7198138",
"0.71908426",
"0.715556",
"0.71537024",
"0.71223176",
"0.7119919",
"0.7108915",
"0.7079143",
"0.7067195",
"0.7038099",
"0.7007621",
"0.70002675",
"0.69993395",
"0.69971174",
"0.6990406",
"0.69751334",
"0.6956165",
"0.69540185",
"0.69464344",
"0.6929199",
"0.69277245",
"0.69274646",
"0.692011",
"0.6919285",
"0.6905678",
"0.6900472",
"0.6888085",
"0.68746126",
"0.687375",
"0.6872683",
"0.6862437",
"0.6862437",
"0.6862437",
"0.6862437",
"0.6859934",
"0.68572277",
"0.6854638",
"0.68525577",
"0.6849266",
"0.6842036",
"0.684087",
"0.6834055",
"0.6818388",
"0.6818388",
"0.6818388",
"0.68110853",
"0.6810481",
"0.67957866",
"0.67933977",
"0.67928183",
"0.6774874",
"0.67705756",
"0.6769432",
"0.6769174",
"0.67685276",
"0.6758345",
"0.67506",
"0.67413336",
"0.6737609",
"0.67348677",
"0.67224944",
"0.67206126",
"0.6720061",
"0.6720061",
"0.6720061",
"0.6716976",
"0.6716976",
"0.6716976",
"0.67100465"
] | 0.0 | -1 |
initialize your data structure here. | public MedianFinderElegant() {
minHeap = new PriorityQueue<>();
maxHeap = new PriorityQueue<>((v1, v2) -> v2 - v1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initData() {\n\t}",
"private void initData() {\n }",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"private void InitData() {\n\t}",
"private void initData(){\n\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\r\n\tpublic void initData() {\n\t}",
"private void initialize() {\n first = null;\n last = null;\n size = 0;\n dictionary = new Hashtable();\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}",
"public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }",
"protected @Override\r\n abstract void initData();",
"public void initialize() {\n // empty for now\n }",
"void initData(){\n }",
"private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}",
"public void initData(){\r\n \r\n }",
"public InitialData(){}",
"abstract void initializeNeededData();",
"public void initialize()\n {\n }",
"public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void init() {\n\t\t}",
"private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }",
"private void initializeData() {\n posts = new ArrayList<>();\n posts.add(new Posts(\"Emma Wilson\", \"23 years old\", R.drawable.logo));\n posts.add(new Posts(\"Lavery Maiss\", \"25 years old\", R.drawable.star));\n posts.add(new Posts(\"Lillie Watts\", \"35 years old\", R.drawable.profile));\n }",
"public void initialize() {\n grow(0);\n }",
"public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }",
"public void init() {\n \n }",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"private void initData() {\n requestServerToGetInformation();\n }",
"private TigerData() {\n initFields();\n }",
"public void initialise() \n\t{\n\t\tthis.docids = scoresMap.keys();\n\t\tthis.scores = scoresMap.getValues();\n\t\tthis.occurrences = occurrencesMap.getValues();\t\t\n\t\tresultSize = this.docids.length;\n\t\texactResultSize = this.docids.length;\n\n\t\tscoresMap.clear();\n\t\toccurrencesMap.clear();\n\t\tthis.arraysInitialised = true;\n\t}",
"public void InitData() {\n }",
"public void init() {\r\n\r\n\t}",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"private void init() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void initialise() {\n \thashFamily = new Hash[this.r];\n for(int i= 0; i < this.r;i++)\n {\n \tthis.hashFamily[i] = new Hash(this.s * 2);\n }\n this.net = new OneSparseRec[this.r][this.s *2];\n for(int i = 0 ; i < this.r; i++)\n \tfor(int j =0 ; j< this.s * 2 ; j++)\n \t\tthis.net[i][j] = new OneSparseRec();\n \n }",
"protected void initialize() {\n \t\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"public DataStructure() {\r\n firstX = null;\r\n lastX = null;\r\n firstY = null;\r\n lastY = null;\r\n size = 0;\r\n }",
"private void initialize() {\n }",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"private void init() {\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private RandomData() {\n initFields();\n }",
"public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }",
"private void initialize() {\n\t\t\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void initialize() {\r\n }",
"public void initialize() {\n // TODO\n }",
"private void initValues() {\n \n }",
"public void init() {\n\t\t\n\t}",
"public void init(){\n\t\tEmployee first = new Employee(\"Diego\", \"Gerente\", \"bebexitaHemoxita@gmail.com\");\n\t\tHighSchool toAdd = new HighSchool(\"Santiago Apostol\", \"4656465\", \"cra 33a #44-56\", \"3145689879\", 30, 5000, \"Jose\", new Date(1, 3, 2001), 3, \"Servicios educativos\", \"451616\", 15, \"Piedrahita\", 45, 1200, 500);\n\t\ttoAdd.addEmployee(first);\n\t\tProduct pilot = new Product(\"jet\", \"A00358994\", 1.5, 5000);\n\t\tFood firstFood = new Food(\"Colombina\", \"454161\", \"cra 18\", \"454611313\", 565, 60000, \"Alberto\", new Date(1, 8, 2015), 6, \"Manufactura\", 4);\n\t\tfirstFood.addProduct(pilot);\n\t\ttheHolding = new Holding(\"Hertz\", \"15545\", \"cra 39a #30a-55\", \"3147886693\", 80, 500000, \"Daniel\", new Date(1, 2, 2015), 5);\n\t\ttheHolding.addSubordinate(toAdd);\n\t\ttheHolding.addSubordinate(firstFood);\n\t}",
"private void initialize() {\n\t}",
"public void init() {\n\t\n\t}",
"private void initStructures() throws RIFCSException {\n initTexts();\n initDates();\n }",
"public AllOOneDataStructure() {\n\t\thead=new Node(\"\", 0);\n\t\ttail=new Node(\"\", 0);\n\t\thead.next=tail;\n\t\ttail.prev=head;\n\t\tmap=new HashMap<>();\n\t}",
"@Override public void init()\n\t\t{\n\t\t}",
"@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }",
"private void initialize() {\n this.pm10Sensors = new ArrayList<>();\n this.tempSensors = new ArrayList<>();\n this.humidSensors = new ArrayList<>();\n }",
"private void init() {\n UNIGRAM = new HashMap<>();\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}"
] | [
"0.7977482",
"0.7960524",
"0.77892214",
"0.77469254",
"0.77469254",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7558169",
"0.7555887",
"0.74711394",
"0.74664557",
"0.7456787",
"0.7442776",
"0.74332404",
"0.74293566",
"0.74293566",
"0.74293566",
"0.7424801",
"0.7424801",
"0.74193865",
"0.74193865",
"0.7396702",
"0.7377209",
"0.7337531",
"0.7284757",
"0.7242543",
"0.7239983",
"0.7234074",
"0.7234074",
"0.7198138",
"0.71908426",
"0.715556",
"0.71537024",
"0.71223176",
"0.7119919",
"0.7108915",
"0.7079143",
"0.7067195",
"0.7038099",
"0.7007621",
"0.70002675",
"0.69993395",
"0.69971174",
"0.6990406",
"0.69751334",
"0.6956165",
"0.69540185",
"0.69464344",
"0.6929199",
"0.69277245",
"0.69274646",
"0.692011",
"0.6919285",
"0.6905678",
"0.6900472",
"0.6888085",
"0.68746126",
"0.687375",
"0.6872683",
"0.6862437",
"0.6862437",
"0.6862437",
"0.6862437",
"0.6859934",
"0.68572277",
"0.6854638",
"0.68525577",
"0.6849266",
"0.6842036",
"0.684087",
"0.6834055",
"0.6818388",
"0.6818388",
"0.6818388",
"0.68110853",
"0.6810481",
"0.67957866",
"0.67933977",
"0.67928183",
"0.6774874",
"0.67705756",
"0.6769432",
"0.6769174",
"0.67685276",
"0.6758345",
"0.67506",
"0.67413336",
"0.6737609",
"0.67348677",
"0.67224944",
"0.67206126",
"0.6720061",
"0.6720061",
"0.6720061",
"0.6716976",
"0.6716976",
"0.6716976",
"0.67100465"
] | 0.0 | -1 |
Test of getAntrian method, of class AntrianController. | @Test
public void testGetAntrian() throws Exception {
System.out.println("getAntrian");
setHostPort();
Menursepsionis ui = new Menursepsionis(client, "resp1");
AntrianController instance = new AntrianController(client);
DefaultTableModel expResult = instance.getAntrian();
DefaultTableModel result = instance.getAntrian();
boolean resultCondition = false;
System.out.println(result.getRowCount());
if (result.getRowCount() >= 1) {
resultCondition = true;
}
assertTrue(resultCondition);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testGetAntrianDetail() throws Exception {\n System.out.println(\"getAntrianDetail\");\n String id = \"AN001\";\n setHostPort();\n AntrianController instance = new AntrianController(client);\n\n Antrian expResult = instance.getAntrianDetail(id);\n Antrian result = instance.getAntrianDetail(id);\n assertEquals(expResult, result);\n\n // TODO review the generated test code and remove the default call to fail.\n }",
"@Test\n public void atrnTest() {\n assertEquals(\"atrn1\", authResponse.getAtrn());\n }",
"@Test\n public void testGetDetailPasien() throws Exception {\n System.out.println(\"getDetailPasien\");\n String idPasien = \"PS001\";\n setHostPort();\n AntrianController instance = new AntrianController(client);\n\n Pasien expResult = instance.getDetailPasien(idPasien);\n Pasien result = instance.getDetailPasien(idPasien);\n assertEquals(expResult, result);\n\n // TODO review the generated test code and remove the default call to fail.\n }",
"@Test\n\tpublic void testGetAantalSessies(){\n\t\tint expResult = 2;\n\t\tassertEquals(expResult, instance.getAantalSessies());\n\t}",
"@Test\n public void atsdTest() {\n assertEquals(\"a\", authResponse.getAtsd());\n }",
"@Test\r\n public void testGetUtilizador() {\r\n System.out.println(\"getUtilizador\");\r\n CentroExposicoes ce = new CentroExposicoes();\r\n \r\n AlterarUtilizadorController instance = new AlterarUtilizadorController(ce);\r\n instance.getUtilizador(\"email@gmail.com\");\r\n }",
"@Override\r\n\tdouble alan() {\n\t\tSystem.out.println(\"Ucgenin Alani : \");\r\n\t\treturn kenar1 * kenar2 /2;\r\n\t}",
"@Test\n public void apiKundenViewGetInaktiveGetTest() throws ApiException {\n List<CmplxKunden> response = api.apiKundenViewGetInaktiveGet();\n\n // TODO: test validations\n }",
"protected int getTreinAantal(){\r\n return treinaantal;\r\n }",
"private void getAI(){\n\n }",
"@Test\n public void testGetTamano() {\n System.out.println(\"getTamano\");\n Huffman instance = null;\n int expResult = 0;\n int result = instance.getTamano();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"@Test\r\n public void testGetAnnee() {\r\n System.out.println(\"*****************\");\r\n System.out.println(\"Test : getAnnee\");\r\n Cours_Reservation instance = new Cours_Reservation();\r\n instance.setAnnee(1994);\r\n int expResult = 1994;\r\n int result = instance.getAnnee();\r\n assertEquals(expResult, result);\r\n }",
"@Test\n public void testAltaLibro() {\n System.out.println(\"AltaLibro\");\n Long id = new Long(1);\n String isbn = \"isbn\";\n String titulo = \"Don Quijote de la Mancha\";\n String autor = \"Miguel de Cervantes\";\n Integer numPaginas = 10;\n Date fechaAlta = new Date(1,02,2021);\n Integer numDisponibles = 5;\n BibliotecarioController instance = new BibliotecarioController();\n Libro result = instance.AltaLibro(id, isbn, titulo, autor, numPaginas, fechaAlta, numDisponibles);\n assertEquals(id, result.getId());\n assertEquals(isbn, result.getIsbn());\n assertEquals(titulo, result.getTitulo());\n assertEquals(autor, result.getAutor());\n assertEquals(numPaginas, result.getNumPaginas());\n assertEquals(fechaAlta, result.getFechaAlta());\n assertEquals(numDisponibles, result.getNumDisponibles());\n\n }",
"@Test\n public void testAltaEjemplar() {\n System.out.println(\"AltaEjemplar\");\n Date fechaAdquisicion = new Date(1, 10, 2223);\n Date fechaDevolucion = new Date(1, 10, 2220);\n Date fechaPrestamo = new Date(1, 10, 2222);\n String idEjemplar = \"idEjemplar\";\n String localizacion = \"localizacion\";\n String observaciones = \"observaciones\";\n BibliotecarioController instance = new BibliotecarioController();\n \n Ejemplar result = instance.AltaEjemplar(fechaAdquisicion, fechaDevolucion, fechaPrestamo, idEjemplar, localizacion, observaciones);\n assertEquals(fechaAdquisicion, result.getFechaAdquisicion());\n assertEquals(fechaDevolucion, result.getFechaDevolucion());\n assertEquals(fechaPrestamo, result.getFechaPrestamo());\n assertEquals(idEjemplar, result.getIdEjemplar());\n assertEquals(localizacion, result.getLocalizacion());\n assertEquals(observaciones, result.getObservaciones());\n\n }",
"@Test\n public void testGerarAnaliseEstatisticas() {\n System.out.println(\"gerarAnaliseEstatisticas\");\n Empresa empresa = inicializarModeloTeste();\n GerarAnaliseEstatisticaRevisaoController instance = new GerarAnaliseEstatisticaRevisaoController(empresa);\n boolean expResult = true;\n boolean result = instance.gerarAnaliseEstatisticas();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetTemperaturaInteriorAlvo() {\n System.out.println(\"getSetTemperaturaInteriorAlvo\");\n double expResult = 20.0;\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n instance.setTemperaturaInteriorAlvo(expResult);\n double result = instance.getTemperaturaInteriorAlvo();\n assertEquals(expResult, result, 0.0);\n }",
"@Test\r\n public void testGetAnalizar() {\r\n System.out.println(\"getAnalizar\");\r\n RevisorParentesis instance = null;\r\n String expResult = \"\";\r\n String result = instance.getAnalizar();\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 }",
"protected Kazan getKazanByIndex(int index){\n return getKazans()[index];\n }",
"@Test\r\n\tpublic void acreditar() {\r\n\t}",
"@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }",
"@Test\n\tpublic void sheldonShouldBeAbleToLookAtLeonardsQueryByItsPublicId() throws Exception {\n\t\t\n\t\tString sheldonToken = generateTokenWithExpirationDate(\"sheldon\", 1, TimeUnit.DAYS, Arrays.asList(\"ROLE_USER\"));\n\n\t\t// UserQuery getUserQuery()\n\t\tthis.mockMvc.perform(get(\"/queries/Abc1\").\n\t\t\t\theader(\"Authorization\", \"Bearer \" + sheldonToken).accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isOk());\n\t}",
"@Test\n\tpublic void TCAPIAR_03(){\n\t\taudioControl.addLog(\"ID : TCAPIAR_03 : Verify that Partner user is unable to get audio route detail\");\n\t\t/*\n\t\t\tSend a sample GET request using JssionID and CSRF token of partner user as following:\n\t\t\tGET http://devportal.dts.com/saap/api/route/154?revision=0 HTTP/1.1\n\t\t */\n\t\t// Log into DTS portal as partner user\n\t\tloginControl.login(SUPER_PARTNER_USER, SUPER_PARTNER_PASSWORD);\n\t\t// Get user CSRF token and cookie\n\t\tcsrfToken = audioControl.getCSRFToken();\n\t\tcookie = audioControl.getCookie();\n\t\t// Send a sample GET request using JssionID and CSRF token of partner user as following:\n\t\t// GET http://devportal.dts.com/saap/api/route/154?revision=0 HTTP/1.1\n\t\tJSONObject requestResult = APIUtil.sendGet(APIData.AUDIO_ROUTE_DETAIL_URL, csrfToken, cookie);\n\t\t/*\n\t\t * {\"apiErrorCode\":\"PEMISSION_DENY\",\"message\":\"You don't have permission.\"}\n\t\t */\n\t\tAssert.assertEquals(requestResult.get(\"message\").toString(), APIData.ERROR_MESSAGE);\n\t}",
"@Override\n\tpublic double tinhTienAn() {\n\t\tdouble tienAn = canNang * 0.05;\n\t\treturn tienAn;\n\t}",
"@Test\n public void authenResultTest() {\n assertEquals(\"R\", authResponse.getAuthenResult());\n }",
"@Test\r\n public void testBuscaArticulos() throws Exception {\r\n System.out.println(\"BuscaArticulos\");\r\n ReportesController instance = new ReportesController();\r\n ArrayList<Articulo> expResult = null;\r\n ArrayList<Articulo> result = instance.BuscaArticulos();\r\n assertNotNull(result);\r\n \r\n }",
"@Test\n\tpublic void test_getatpRank() {\n\tTennisPlayer c1 = new TennisPlayer(5,\"David Ferrer\");\n\tassertEquals(5,c1.getatpRank());\n }",
"@Test\n public void testBajarEjemplar() {\n System.out.println(\"BajarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar expResult = new EjemplaresList().getEjemplares().get(0);\n Ejemplar result = instance.BajarEjemplar(ejemplar);\n assertEquals(expResult, result);\n System.out.println(\"Ejemplar dado de baja\\nid:\" + result.getIdEjemplar());\n }",
"@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }",
"@Test\n public void testPrestarEjemplar() {\n System.out.println(\"prestarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(1);\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar result = instance.prestarEjemplar(ejemplar, usuario);\n Ejemplar expResult = ejemplar;\n expResult.setUsuarioId(usuario);\n \n assertEquals(expResult, result);\n\n }",
"@Test\r\n public void testGetRaty() {\r\n System.out.println(\"getRaty\");\r\n Faktura instance = new Faktura();\r\n String expResult = \"\";\r\n String result = instance.getRaty();\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 }",
"@Test\r\n\tpublic void testShowInterviewer() throws Exception {\r\n\r\n\t\tList<ShowInterviwerDTO> interviewerList = new ArrayList<ShowInterviwerDTO>();\r\n\t\tinterviewerList.add(getIntervieerDTO());\r\n\t\twhen(interviewerService.getAllInterviewer()).thenReturn(interviewerList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/showinterviewer\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}",
"IAnjaroController getController();",
"public int queryPlateAsianInfoById(String id);",
"public int getAisles ()\n {\n return (aisles);\n }",
"@Test\n public void getIndex(){\n\n }",
"@Test\n public void getSorteerAction() throws Exception {\n }",
"@Test\n public void shouldBeZeroForTolkienAuthor() {\n\n }",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void getWardAdmissionTestCase() throws IOException, JSONException {\n\n\t\tArrayList<String> resArrayList = getHTTPResponse(properties.getProperty(TestCaseConstants.URL_GET_WARD_ADMISSION),\n\t\t\t\t TestCaseConstants.HTTP_GET, null);\n\n\t\tJSONArray jsonArray = new JSONArray(resArrayList.get(0));\n\t\tJSONObject jsonObject = ((JSONObject) jsonArray.get(jsonArray.length() - 1));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)), SUCCESS_STATUS_CODE);\n\t\tAssert.assertEquals(jsonObject.getString(\"bhtNo\"), BHT_No);\n\t\t\n\n\t}",
"@Test\r\n public void testGetTelefoneResidencial() {\r\n System.out.println(\"getTelefoneResidencial\");\r\n Integrante instance = new Integrante();\r\n String expResult = \"\";\r\n String result = instance.getTelefoneResidencial();\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 }",
"@Test\n public void testConsultarEjemplares() {\n System.out.println(\"ConsultarEjemplares\");\n BibliotecarioController instance = new BibliotecarioController();\n List<Ejemplar> expResult = new EjemplaresList().getEjemplares();\n List<Ejemplar> result = instance.ConsultarEjemplares();\n assertEquals(expResult, result);\n\n }",
"@Test\n public void testBajarLibro() {\n System.out.println(\"BajarLibro\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Libro expResult = new LibrosList().getLibros().get(0);\n Libro result = instance.BajarLibro(libro);\n assertEquals(expResult, result);\n System.out.println(\"Libro dado de baja\\ntitulo:\" + result.getTitulo() + \"\\nISBN: \" + result.getIsbn());\n }",
"@Test\n public void testEntregarPrestamo() {\n System.out.println(\"entregarPrestamo\");\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Map<Usuario, Ejemplar> expResult = new HashMap<>();\n expResult.put(usuario, ejemplar);\n Map<Usuario, Ejemplar> result = instance.entregarPrestamo(usuario, ejemplar);\n assertEquals(expResult, result);\n }",
"public void testAltaVehiculo(){\r\n\t}",
"@Test\n public void testGetInstrucciones() {\n System.out.println(\"getInstrucciones\");\n Receta instance = new Receta();\n instance.setInstrucciones(\"inst1\");\n String expResult = \"inst1\";\n String result = instance.getInstrucciones();\n assertEquals(expResult, result);\n }",
"@Test\n\tpublic void TCAPIAR_02(){\n\t\taudioControl.addLog(\"ID : TCAPIAR_02 : Verify that Partner user is unable to get list of audio route\");\n\t\t/*\n\t\t\tSend a sample GET request using JssionID and CSRF token of partner user as following:\n\t\t\tGET http://devportal.dts.com/saap/api/route HTTP/1.1\n\t\t */\n\t\t// Log into DTS portal as Partner user\n\t\tloginControl.login(SUPER_PARTNER_USER, SUPER_PARTNER_PASSWORD);\n\t\t// Get user CSRF token and cookie\n\t\tcsrfToken = audioControl.getCSRFToken();\n\t\tcookie = audioControl.getCookie();\n\t\t\n\t\t// Send a sample GET request using JssionID and CSRF token of partner user as following: GET http://devportal.dts.com/saap/api/route HTTP/1.1\n\t\tJSONObject requestResult = APIUtil.sendGet(APIData.GET_AUDIO_ROUTES_LIST_URL, csrfToken, cookie);\n\t\t/*\n\t\t * {\"apiErrorCode\":\"PEMISSION_DENY\",\"message\":\"You don't have permission.\"}\n\t\t */\n\t\tAssert.assertEquals(requestResult.get(\"message\").toString(), APIData.ERROR_MESSAGE);\n\t}",
"@Test\n public void testConsultarUsuarios() {\n System.out.println(\"consultarUsuarios\");\n BibliotecarioController instance = new BibliotecarioController();\n List<Usuario> expResult = new UsuariosList().getUsuarios();\n List<Usuario> result = instance.consultarUsuarios();\n assertEquals(expResult, result);\n }",
"private void defaultMGachaRenditionShouldBeFound(String filter) throws Exception {\n restMGachaRenditionMockMvc.perform(get(\"/api/m-gacha-renditions?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(mGachaRendition.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].mainPrefabName\").value(hasItem(DEFAULT_MAIN_PREFAB_NAME.toString())))\n .andExpect(jsonPath(\"$.[*].resultExpectedUpPrefabName\").value(hasItem(DEFAULT_RESULT_EXPECTED_UP_PREFAB_NAME.toString())))\n .andExpect(jsonPath(\"$.[*].resultQuestionPrefabName\").value(hasItem(DEFAULT_RESULT_QUESTION_PREFAB_NAME.toString())))\n .andExpect(jsonPath(\"$.[*].soundSwitchEventName\").value(hasItem(DEFAULT_SOUND_SWITCH_EVENT_NAME.toString())));\n\n // Check, that the count call also returns 1\n restMGachaRenditionMockMvc.perform(get(\"/api/m-gacha-renditions/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"public void act() \n {\n canSeeAlex();\n }",
"public Aika anna(int i) {\r\n if (i<0 || alkiot.size() <= i)\r\n throw new IndexOutOfBoundsException(\"Laiton indeksi: \" + i);\r\n return alkiot.get(i);\r\n \r\n }",
"@Test\n public void eciTest() {\n assertEquals(\"0\", authResponse.getEci());\n }",
"public int getTrangthaiChiTiet();",
"@Test\r\n public void testGetCost() {\r\n \r\n String regNo = \"ABC123\";\r\n instance = new Controller(dbMgr);\r\n int expResult = 60;\r\n int result = instance.getCost(regNo);\r\n assertEquals(expResult, result);\r\n \r\n }",
"@Test\n public void testGetRuedas() {\n System.out.println(\"getRuedas\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n int expResult = 0;\n int result = instance.getRuedas();\n \n }",
"public static final void testAnnuity (\n double C,\n double r,\n double T )\n //////////////////////////////////////////////////////////////////////\n {\n double FV = futureValueAnnuity ( C, r, T );\n System.out.println ( FV );\n System.out.println ( presentValue ( FV, r, T ) );\n System.out.println ( presentValueAnnuity ( C, r, T ) );\n double [ ] c = new double [ ( int ) T ];\n for ( int i = 0; i < T; i++ ) c [ i ] = C;\n System.out.println ( presentValue ( c, r ) );\n }",
"@Test\n public void testAuthorization() throws Throwable {\n Method defineCustomer = EZShop.class.getMethod(\"receiveCashPayment\", Integer.class, double.class);\n testAccessRights(defineCustomer, new Object[] {saleId, toBePaid},\n new Role[] {Role.SHOP_MANAGER, Role.ADMINISTRATOR, Role.CASHIER});\n }",
"@Test\r\n public void testGetNationality() {\r\n System.out.println(\"getNationality\");\r\n Interviewee instance = new Interviewee();\r\n String expResult = null;\r\n String result = instance.getNationality();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }",
"@Test\n public void avsResultTest() {\n assertEquals(\"G\", authResponse.getAvsResult());\n }",
"@Test\n\tpublic void testGetBehandelCode() throws Exception {\n\t\tint expResult = 001;\n\t\tassertTrue(instance.getBehandelCode() == expResult);\n\t}",
"void tampilKarakterA();",
"public String retA()\n\t{\n\t\treturn answers[correctAns]; \t\n\t}",
"@Test\n public void testDonorAgeReturns() {\n ResponseEntity response = dataController.getDonorDataByOrgans(\"N\", null, null, \"20\");\n assertNotNull(response.getBody());\n assertEquals(HttpStatus.OK, response.getStatusCode());\n }",
"@Test\n public void testGetOikein1() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vastine\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getOikein();\n// System.out.println(virheita);\n\n assertEquals(\"Oikein menneiden sanojen tarkastukset ei laske virheitä oikein\", 1, virheita);\n }",
"@Test\n public void testCrearBibliotecario() {\n System.out.println(\"BibliotecaController\");\n String email = \"mail\";\n String login = \"login\";\n String password = \"pass\";\n String nif = \"nif\";\n BibliotecarioController instance = new BibliotecarioController();\n Bibliotecario result = instance.crearBibliotecario(email, login, password, nif);\n assertEquals(email, result.getEmail());\n assertEquals(login, result.getLogin());\n assertEquals(password, result.getPassword());\n assertEquals(nif , result.getNif());\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"public int askWhatAssistants(int assi);",
"@RequestMapping(value = \"/nurses-assistants\",method = RequestMethod.GET)\n public ResponseEntity<?> manejadorGETNursesAssistants() throws HappException {\n return new ResponseEntity<>(happService.getNurseAssistants(), HttpStatus.ACCEPTED);\n }",
"@Test\r\n public void testGetMarritalstatus() {\r\n System.out.println(\"getMarritalstatus\");\r\n Interviewee instance = new Interviewee();\r\n String expResult = null;\r\n String result = instance.getMarritalstatus();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void getWardAdmissionByWardNoTestCase() throws IOException, JSONException {\n\n\t\tArrayList<String> resArrayList = getHTTPResponse(properties.getProperty(TestCaseConstants.URL_GET_WARD_ADMISSION_BY_WARD_NO)+Ward_No,\n\t\t\t\t TestCaseConstants.HTTP_GET, null);\n\n\t\t\n\t\tJSONArray jsonArray = new JSONArray(resArrayList.get(0));\n\t\tJSONObject jsonObject = ((JSONObject) jsonArray.get(jsonArray.length() - 1));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)), SUCCESS_STATUS_CODE);\n\t\tAssert.assertEquals(jsonObject.getString(\"wardNo\"), Ward_No);\n\t\t\n\n\t}",
"@Test\n public void testConsultarLibros() {\n System.out.println(\"ConsultarLibros\");\n BibliotecarioController instance = new BibliotecarioController();\n\n List<Libro> expResult = new LibrosList().getLibros();\n \n List<Libro> result = instance.ConsultarLibros();\n assertEquals(expResult, result);\n\n }",
"@Test\n\tpublic void testGetAcceptedTaxon(){\n\t\tList<Object[]> taxonInfo = taxonDAO.getAcceptedTaxon(1);\n\t\tassertEquals(1,taxonInfo.size());\n\t\tassertEquals(new Integer(73),taxonInfo.get(0)[0]);\n\t}",
"@Test\n public void testNotificarOrganizadoresEventos() {\n System.out.println(\"notificarOrganizadoresEventos\");\n int indice = 0;\n Empresa empresa = inicializarModeloTeste();\n GerarAnaliseEstatisticaRevisaoController instance = new GerarAnaliseEstatisticaRevisaoController(empresa);\n boolean expResult = true;\n instance.gerarAnaliseEstatisticas();\n boolean result = instance.notificarOrganizadoresEventos(indice);\n assertEquals(expResult, result);\n }",
"@Test\r\n public void testGetPracownik() {\r\n System.out.println(\"getPracownik\");\r\n Faktura instance = new Faktura();\r\n Pracownik expResult = null;\r\n Pracownik result = instance.getPracownik();\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 }",
"@Test\n public void testGetMyAsid() {\n System.out.println(\"getMyAsid\");\n String expResult = MY_ASID;\n String result = instance.getMyAsid();\n assertEquals(expResult, result);\n }",
"private void defaultTerritorioShouldBeFound(String filter) throws Exception {\n restTerritorioMockMvc\n .perform(get(ENTITY_API_URL + \"?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(territorio.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].nome\").value(hasItem(DEFAULT_NOME)));\n\n // Check, that the count call also returns 1\n restTerritorioMockMvc\n .perform(get(ENTITY_API_URL + \"/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"public void anazitisiSintagisVaseiAstheni() {\n\t\tint amkaCode = 0;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tamkaCode = sir.readPositiveInt(\"EISAGETAI TO AMKA TOU ASTHENH: \"); // Zitaw apo ton xrhsth na mou dwsei ton amka tou asthenh pou thelei\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t\tif(amkaCode == prescription[i].getPatientAmka()) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou proorizetai gia ton sygkekrimeno asthenh\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t\tprescription[i].print(); // Emfanizw thn/tis sintagh/sintages oi opoies proorizontai gia ton sigkekrimeno asthenh\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\ttmp_2++;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON ASTHENH ME AMKA: \" + amkaCode);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"int getIndividualAttack();",
"@Test\n public void testGetIdentificador() {\n System.out.println(\"getIdentificador\");\n Camiones instance = new Camiones(\"C088IJ\", true, 10);\n int expResult = 0;\n int result = instance.getIdentificador();\n \n \n }",
"@Test\n\tpublic void testAll() {\n\n\t\tassertEquals(\"Not specified\", getAtonType(0));\n\t\tassertEquals(\"unknown code 100\", getAtonType(100));\n\t\tassertEquals(\"Fixed - Light, without sectors\", getAtonType(5));\n\t\tassertEquals(\"Fixed - Beacon, Cardinal E\", getAtonType(10));\n\t\tassertEquals(\"Floating - Light Vessel, LANBY, Rigs\", getAtonType(31));\n\t\tassertEquals(\"Fixed - Beacon, Isolated danger\", getAtonType(17));\n\t\tassertEquals(\"Fixed - Beacon, Special mark\", getAtonType(19));\n\t\tassertEquals(\"Floating - Cardinal Mark N\", getAtonType(20));\n\t\tassertEquals(\"Floating - Cardinal Mark E\", getAtonType(21));\n\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Test\n public void testGetVaarin() {\n Scanner l;\n ByteArrayInputStream bais = new ByteArrayInputStream(\"sana\\nvastine\\n\".getBytes());\n l = new Scanner(bais);\n KyselyLogiikka k = new KyselyLogiikka(l);\n ArrayList<KysSana> a = new ArrayList<KysSana>();\n a.add(new KysSana(\"sana\", \"vastine\"));\n\n k.asetaKysymys(a, true, 1);\n k.tarkistaVastaus(\"vaarav vastaus\");\n k.tarkistaVastaus(\"trololololoo\");\n int virheita = k.getVaarin();\n\n assertEquals(\"Väärin menneiden tarkistusten lasku ei toimi\", 2, virheita);\n }",
"@Test\n public void testGetAdressByID() throws Exception {\n System.out.println(\"getAdressByID\");\n int adressID = 0;\n String result = instance.getAdressByID(adressID);\n assertTrue(!result.isEmpty());\n \n }",
"public int getAnio(){\r\n \r\n \r\n return this.anio;\r\n \r\n }",
"@Test\n public void testGetRoutingtemplates() throws Exception {\n System.out.println(\"getRoutingtemplates\");\n Map<String, Object> requestParams = getCommonParameters();\n JSONObject result = instance.getRoutingtemplates(requestParams);\n if (result != null) {\n assertTrue(\"Data is returned properly\", true);\n } else {\n fail(\"Test case failed : testGetRoutingtemplates\");\n }\n }",
"public void getAngajati() {\n\t\tList<Angajat> angajatiWithSalary = angajatOperations.getAngajatiBySalaryCondition();\n\t\tangajatOperations.printListOfAngajati(angajatiWithSalary);\n\t}",
"@Test\r\n public void testGet() {\r\n System.out.println(\"get\");\r\n int index = 1;\r\n Number n3 = nc1.get(index);\r\n assertEquals(n1.getNumber(), n3.getNumber());\r\n \r\n }",
"@Test\n\tpublic void testGetBehandelingNaam(){\n\t\tString expResult = \"Hamstring\";\n\t\tassertTrue(expResult == Behandelcode.getBehandelingNaam());\n\t}",
"@Test \n\tpublic void get() \n\t{\n\t\tassertTrue(true);\n\t}",
"@Test\r\n\tpublic void testAcceptInterview() throws Exception {\r\n\t\twhen(interviewerService.acceptInterview(anyLong())).thenReturn(getInterview());\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/acceptinterview/\" + INTERVIEW_ID + \"\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isCreated());\r\n\t}",
"public static void traduitSiteAnglais() {\n\t\t\n\t}",
"@Test\n void annullamentoTirocinioSuccess() throws ServletException, IOException {\n when(requestMock.getParameter(\"enteEmail\")).thenReturn(\"999\");\n when(requestMock.getRequestDispatcher(\"_areaStudent/StoricoStudenteET.jsp\"))\n .thenReturn(dispatcherMock);\n ServletAnnullaEnteDaStudenteET test = new ServletAnnullaEnteDaStudenteET();\n test.doGet(requestMock, responseMock);\n verify(dispatcherMock).forward(requestMock, responseMock);\n }",
"@Test\n public void testGetCars() {\n System.out.println(\"getCars\");\n CarController instance = new CarController();\n List<Car> expResult = null;\n List<Car> result = instance.getCars();\n for(Car car: result) {\n System.out.println(car);\n }\n assertTrue(true);\n }",
"@Test\n public void testHasTemperaturaVariation() {\n System.out.println(\"hasTemperaturaVariation\");\n Simulacao simulacao = new Simulacao();\n simulacao.setSala(sala);\n AlterarTemperaturasMeioController instance = new AlterarTemperaturasMeioController(simulacao);\n boolean expResult = true;\n instance.setHasTemperaturaVariation(expResult);\n boolean result = instance.hasTemperaturaVariation();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetAttributes() throws Exception {\n System.out.println(\"getAttributes\");\n \n ProjectEditController instance = new ProjectEditController();\n ArrayList<ProjectAttribute> expResult = null;\n ArrayList<ProjectAttribute> result = instance.getAttributes();\n assertEquals(expResult, result);\n\n }",
"@Test\n\tpublic void testSetAantalSessies(){\n\t\tint expResult = 5;\n\t\tinstance.setAantalSessies(5);\n\t\tassertEquals(expResult, instance.getAantalSessies());\n\t}",
"@Test\r\n public void testGetEndereco() {\r\n System.out.println(\"getEndereco\");\r\n Integrante instance = new Integrante();\r\n String expResult = \"\";\r\n String result = instance.getEndereco();\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 }",
"@Secured({ \"IS_AUTHENTICATED_ANONYMOUSLY\", \"ACL_SECURABLE_READ\" })\n Taxon getTaxon( BioAssaySet bioAssaySet );",
"@Test\n public void authorisedTest() {\n assertTrue(authResponse.isAuthorised());\n }",
"@Test\n public void testGetTabla() {\n System.out.println(\"getTabla\");\n Huffman instance = null;\n byte[][] expResult = null;\n byte[][] result = instance.getTabla();\n \n // TODO review the generated test code and remove the default call to fail.\n \n }",
"@Test\n\t@UseDataProvider(\"dataProviderOrdinaryAnnuityN\")\n\tpublic void OrdinaryAnnuityNTest(double y, int n, double C, double expected) {\n\t\t\n\t\tAssert.assertEquals(expected, annuities.OrdinaryAnnuity(y, n, C), 0.01);\n\t\t\n\t}",
"@Test\n public void method01() {\n System.out.println(school);\n }",
"@Test\n public void transnoTest() {\n assertEquals(Integer.valueOf(74875), authResponse.getTransno());\n }"
] | [
"0.8006476",
"0.65548086",
"0.6118535",
"0.5956627",
"0.5770957",
"0.5757933",
"0.5757511",
"0.5736039",
"0.5730205",
"0.5719353",
"0.56633383",
"0.563417",
"0.53280884",
"0.5298101",
"0.5271149",
"0.5223041",
"0.52226716",
"0.51894236",
"0.5163759",
"0.5140477",
"0.5139441",
"0.51314336",
"0.51197815",
"0.511389",
"0.5105641",
"0.51053363",
"0.5104287",
"0.50774676",
"0.5074545",
"0.5067983",
"0.50614125",
"0.50559115",
"0.50542676",
"0.50504863",
"0.504842",
"0.50466317",
"0.5031614",
"0.50299984",
"0.5022291",
"0.5017668",
"0.50169957",
"0.50124156",
"0.50088596",
"0.5005728",
"0.50048524",
"0.50020534",
"0.5000975",
"0.49973604",
"0.49869063",
"0.4983393",
"0.49817938",
"0.49795654",
"0.49787477",
"0.49759206",
"0.4975204",
"0.49687943",
"0.4966942",
"0.49653432",
"0.49640888",
"0.49623963",
"0.49622217",
"0.49582666",
"0.49444166",
"0.49415296",
"0.49403095",
"0.49395403",
"0.49265704",
"0.49230665",
"0.49164024",
"0.4907135",
"0.49015468",
"0.48997337",
"0.48979086",
"0.48960602",
"0.48891142",
"0.48843837",
"0.48830885",
"0.48814583",
"0.487297",
"0.48722476",
"0.48663735",
"0.4865615",
"0.48584074",
"0.4858392",
"0.48569012",
"0.4850058",
"0.48382226",
"0.48314413",
"0.48287463",
"0.48262575",
"0.4826204",
"0.4822417",
"0.4822341",
"0.48171836",
"0.4817091",
"0.4810872",
"0.48085713",
"0.4803899",
"0.48032624",
"0.47970164"
] | 0.6724774 | 1 |
Test of getAntrianDetail method, of class AntrianController. | @Test
public void testGetAntrianDetail() throws Exception {
System.out.println("getAntrianDetail");
String id = "AN001";
setHostPort();
AntrianController instance = new AntrianController(client);
Antrian expResult = instance.getAntrianDetail(id);
Antrian result = instance.getAntrianDetail(id);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testGetDetailPasien() throws Exception {\n System.out.println(\"getDetailPasien\");\n String idPasien = \"PS001\";\n setHostPort();\n AntrianController instance = new AntrianController(client);\n\n Pasien expResult = instance.getDetailPasien(idPasien);\n Pasien result = instance.getDetailPasien(idPasien);\n assertEquals(expResult, result);\n\n // TODO review the generated test code and remove the default call to fail.\n }",
"@Test\n public void testGetAntrian() throws Exception {\n System.out.println(\"getAntrian\");\n setHostPort();\n Menursepsionis ui = new Menursepsionis(client, \"resp1\");\n AntrianController instance = new AntrianController(client);\n DefaultTableModel expResult = instance.getAntrian();\n DefaultTableModel result = instance.getAntrian();\n boolean resultCondition = false;\n System.out.println(result.getRowCount());\n if (result.getRowCount() >= 1) {\n resultCondition = true;\n }\n assertTrue(resultCondition);\n }",
"@Test\r\n\tpublic void testShowInterviewer() throws Exception {\r\n\r\n\t\tList<ShowInterviwerDTO> interviewerList = new ArrayList<ShowInterviwerDTO>();\r\n\t\tinterviewerList.add(getIntervieerDTO());\r\n\t\twhen(interviewerService.getAllInterviewer()).thenReturn(interviewerList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/showinterviewer\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}",
"@Test\n\tvoid findDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setSpecialist(\"cardioc\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors(doctorfind.getSpecialist());\n\t\tmockMvc.perform(get(\"/doctor/find?specialist=/{specialist}\", \"cardioc\")).andExpect(status().isOk());\n\t}",
"public abstract String showDetails();",
"@Test\n public void atrnTest() {\n assertEquals(\"atrn1\", authResponse.getAtrn());\n }",
"public void getDetail(int id) {\n\t\t\n\t}",
"public String getAnotherDetail();",
"@Test\n\tvoid getDoctorController() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors();\n\t\tmockMvc.perform(get(\"/doctor/details\")).andExpect(status().isOk());\n\t}",
"public String wantDetail();",
"public String doDetail(){\n if(idsecteur==null){\n this.addActionError(getText(\"error.topo.missing.id.\"));\n }else secteur = managerFactory.getSecteurManager().getbynid(idsecteur);\n {\n // this.addActionError(\"il n'y a pas de projet pour ce numéro \"+idtopo );\n\n\n }\nreturn (this.hasErrors())? ActionSupport.ERROR : ActionSupport.SUCCESS;\n\n }",
"@Test(enabled=false)\n\tpublic void loanDetails(){\n\t\n\t\ttry{\n\t\tHomePage homePage=new HomePage(driver);\n\t\thomePage.clickOnSignIn();\n\t\t\n\t\tLoginActions loginAction=new LoginActions();\n\t\tloginAction.login(driver, \"username\", \"password\");\n\t\t\n\t\tAccountSummaryPage accountsummary= new AccountSummaryPage(driver);\n\t\taccountsummary.isAccountSummary();\n\t\t\n\t\tAccountActivityPage accountActivity=new AccountActivityPage(driver);\n\t\taccountActivity.clickOnAccountActivity();\n\t\t\n\t\taccountActivity.selectLoanAccount();\n\t\t\n\t\taccountActivity.getRowdata();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getRowdata(), \"RENT\");\t\n\t\t\n\t\tSystem.out.println(accountActivity.getRowdata());\n\t\t\n\t\t// Test case no - AccActShow_04 -no results for credit card are verified under this test only\n\t\n\t\taccountActivity.getCreditCard();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getCreditCard(), \"No Results\");\n\t\t}\n\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.getMessage();\n\t\t}\n\t}",
"@Test\n public void apiKundenViewGetInaktiveGetTest() throws ApiException {\n List<CmplxKunden> response = api.apiKundenViewGetInaktiveGet();\n\n // TODO: test validations\n }",
"@Test\n public void testBajarEjemplar() {\n System.out.println(\"BajarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar expResult = new EjemplaresList().getEjemplares().get(0);\n Ejemplar result = instance.BajarEjemplar(ejemplar);\n assertEquals(expResult, result);\n System.out.println(\"Ejemplar dado de baja\\nid:\" + result.getIdEjemplar());\n }",
"@Test\r\n void testGetMedicineById() throws Exception{\r\n String URI= \"/medicine/get/{medicineId}\";\r\n Medicine medicine = new Medicine();\r\n\t medicine.setMedicineId(134);\r\n\t medicine.setMedicineName(\"crosin\");\r\n\t medicine.setMedicineCost(200);\r\n\r\n Mockito.when(medicineService.findMedicineById(Mockito.any())).thenReturn(medicine);\r\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get(URI, 102).accept(MediaType.APPLICATION_JSON)).andReturn();\r\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\r\n String jsonOutput = mockHttpServletResponse.getContentAsString();\r\n assertNotNull(jsonOutput);\r\n }",
"@Test\n\tpublic void testGetAantalSessies(){\n\t\tint expResult = 2;\n\t\tassertEquals(expResult, instance.getAantalSessies());\n\t}",
"@Test\n\tpublic void testGetPatientDetail_1()\n\t\tthrows Exception {\n\t\tPatientAccessor fixture = new PatientAccessor(\"\");\n\t\tString hospitalNumber = \"\";\n\n\t\tPatient result = fixture.getPatientDetail(hospitalNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.IllegalStateException: _out shouldn't be null\n\t\t// at com.mongodb.DBPort.go(DBPort.java:110)\n\t\t// at com.mongodb.DBPort.call(DBPort.java:74)\n\t\t// at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286)\n\t\t// at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:257)\n\t\t// at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:310)\n\t\t// at com.mongodb.DB.command(DB.java:274)\n\t\t// at com.mongodb.DB.command(DB.java:256)\n\t\t// at com.mongodb.DB.command(DB.java:313)\n\t\t// at com.mongodb.Mongo.getDatabaseNames(Mongo.java:393)\n\t\t// at com.comp2014group5.generic_database.FormDatabaseMongoImpl.<init>(FormDatabaseMongoImpl.java:24)\n\t\t// at com.comp2014.group5.patient_database.PatientAccessor.<init>(PatientAccessor.java:29)\n\t\tassertNotNull(result);\n\t}",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void getPatientInformationByBHTNoTestCase() throws IOException, JSONException {\n\n\t\tArrayList<String> resArrayList = getHTTPResponse(properties.getProperty(TestCaseConstants.URL_GET_PATIENT_INFORMATION_BY_BHT_NO)+BHT_No,\n\t\t\t\t TestCaseConstants.HTTP_GET, null);\n\n\t\t\n\t\tJSONArray jsonArray = new JSONArray(resArrayList.get(0));\n\t\tJSONObject jsonObject = ((JSONObject) jsonArray.get(jsonArray.length() - 1));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)), SUCCESS_STATUS_CODE);\n\t\tAssert.assertEquals(jsonObject.getString(\"bhtNo\"), BHT_No);\n\t\t\n\n\t}",
"@Test\r\n public void testBuscaArticulos() throws Exception {\r\n System.out.println(\"BuscaArticulos\");\r\n ReportesController instance = new ReportesController();\r\n ArrayList<Articulo> expResult = null;\r\n ArrayList<Articulo> result = instance.BuscaArticulos();\r\n assertNotNull(result);\r\n \r\n }",
"@Test\n void getNoteByIdSuccess() {\n Note retrievedNote = (Note) noteDao.getById(1);\n assertEquals(1, retrievedNote.getId());\n assertEquals(\"Amari Rodgers\", retrievedNote.getProspect());\n }",
"@Test\n\tpublic void testPatient() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/edit-patient?id=4\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200,response.getStatusCodeValue());\n\t}",
"@Test\n\tpublic void sheldonShouldBeAbleToLookAtLeonardsQueryByItsPublicId() throws Exception {\n\t\t\n\t\tString sheldonToken = generateTokenWithExpirationDate(\"sheldon\", 1, TimeUnit.DAYS, Arrays.asList(\"ROLE_USER\"));\n\n\t\t// UserQuery getUserQuery()\n\t\tthis.mockMvc.perform(get(\"/queries/Abc1\").\n\t\t\t\theader(\"Authorization\", \"Bearer \" + sheldonToken).accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isOk());\n\t}",
"@Override\n\tpublic void getDetail() {\n\t\t\n\t}",
"@Test\n public void testHome() throws Exception \n {\n System.out.println(\"home\");\n\n Mockito.when(this.accountService.getAccount()).thenReturn(account);\n\n Home theHome=new Home();\n theHome.setId(homeId);\n theHome.setName(\"HQ\");\n Mockito.when(this.homeService.getHome(homeId)).thenReturn(theHome);\n \n mvc.perform(MockMvcRequestBuilders.get(\"/api/home/\"+homeId)\n .accept(MediaType.APPLICATION_JSON))\n .andExpect(jsonPath(\"$.id\").value(homeId))\n .andExpect(jsonPath(\"$.name\").value(\"HQ\"))\n .andDo(print())\n .andReturn(); \n }",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void getWardAdmissionByWardNoTestCase() throws IOException, JSONException {\n\n\t\tArrayList<String> resArrayList = getHTTPResponse(properties.getProperty(TestCaseConstants.URL_GET_WARD_ADMISSION_BY_WARD_NO)+Ward_No,\n\t\t\t\t TestCaseConstants.HTTP_GET, null);\n\n\t\t\n\t\tJSONArray jsonArray = new JSONArray(resArrayList.get(0));\n\t\tJSONObject jsonObject = ((JSONObject) jsonArray.get(jsonArray.length() - 1));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)), SUCCESS_STATUS_CODE);\n\t\tAssert.assertEquals(jsonObject.getString(\"wardNo\"), Ward_No);\n\t\t\n\n\t}",
"@Test\n public void testRetrieve() throws Exception {\n Citation entity = getSampleCitation();\n when(Service.retrieveCitation(any(String.class))).thenReturn(entity);\n\n // test to see that the correct view is returned\n ModelAndView mav = Controller.retrieve(\"\");\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Service at least makes a call to get a Citation object\n verify(Service, atLeastOnce()).retrieveCitation(any(String.class));\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String jsonObject = (String) map.get(\"message\");\n testJsonObject(jsonObject, entity);\n }",
"@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }",
"@Test\n public void detailsTest() {\n // TODO: test details\n }",
"@Test\n public void detailsTest() {\n // TODO: test details\n }",
"@RequestMapping(value = \"/detail/{runnerId}\")\n\tpublic ModelAndView ictDetail(@PathVariable int runnerId) throws SQLException, IOException {\n\t\tModelAndView mav = new ModelAndView(\"ict/detail\");\n\t\tmav.addObject(\"rc\", rs.findDetail(runnerId));\n\t\treturn mav;\n\t}",
"@Test\n public void testConsultarEjemplares() {\n System.out.println(\"ConsultarEjemplares\");\n BibliotecarioController instance = new BibliotecarioController();\n List<Ejemplar> expResult = new EjemplaresList().getEjemplares();\n List<Ejemplar> result = instance.ConsultarEjemplares();\n assertEquals(expResult, result);\n\n }",
"@RequestMapping(value = \"/details/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Detail> getDetail(@PathVariable Long id) {\n log.debug(\"REST request to get Detail : {}\", id);\n Detail detail = detailRepository.findOne(id);\n return Optional.ofNullable(detail)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@Test\n\tpublic void testGetPatientDetail_2()\n\t\tthrows Exception {\n\t\tPatientAccessor fixture = new PatientAccessor(\"\");\n\t\tString hospitalNumber = \"\";\n\n\t\tPatient result = fixture.getPatientDetail(hospitalNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.IllegalStateException: _out shouldn't be null\n\t\t// at com.mongodb.DBPort.go(DBPort.java:110)\n\t\t// at com.mongodb.DBPort.call(DBPort.java:74)\n\t\t// at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286)\n\t\t// at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:257)\n\t\t// at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:310)\n\t\t// at com.mongodb.DB.command(DB.java:274)\n\t\t// at com.mongodb.DB.command(DB.java:256)\n\t\t// at com.mongodb.DB.command(DB.java:313)\n\t\t// at com.mongodb.Mongo.getDatabaseNames(Mongo.java:393)\n\t\t// at com.comp2014group5.generic_database.FormDatabaseMongoImpl.<init>(FormDatabaseMongoImpl.java:24)\n\t\t// at com.comp2014.group5.patient_database.PatientAccessor.<init>(PatientAccessor.java:29)\n\t\tassertNotNull(result);\n\t}",
"@Test\n public void getIndex(){\n\n }",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void getWardAdmissionDetailsByBHTNoTestCase() throws IOException, JSONException {\n\n\t\tArrayList<String> resArrayList = getHTTPResponse(properties.getProperty(TestCaseConstants.URL_GET_WARD_ADMISSION_DETAILS_BY_BHT_NO)+BHT_No,\n\t\t\t\t TestCaseConstants.HTTP_GET, null);\n\n\t\t\n\t\tJSONArray jsonArray = new JSONArray(resArrayList.get(0));\n\t\tJSONObject jsonObject = ((JSONObject) jsonArray.get(jsonArray.length() - 1));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)), SUCCESS_STATUS_CODE);\n\t\tAssert.assertEquals(jsonObject.getString(\"bhtNo\"), BHT_No);\n\t\t\n\n\t}",
"@Test\n public void testAltaLibro() {\n System.out.println(\"AltaLibro\");\n Long id = new Long(1);\n String isbn = \"isbn\";\n String titulo = \"Don Quijote de la Mancha\";\n String autor = \"Miguel de Cervantes\";\n Integer numPaginas = 10;\n Date fechaAlta = new Date(1,02,2021);\n Integer numDisponibles = 5;\n BibliotecarioController instance = new BibliotecarioController();\n Libro result = instance.AltaLibro(id, isbn, titulo, autor, numPaginas, fechaAlta, numDisponibles);\n assertEquals(id, result.getId());\n assertEquals(isbn, result.getIsbn());\n assertEquals(titulo, result.getTitulo());\n assertEquals(autor, result.getAutor());\n assertEquals(numPaginas, result.getNumPaginas());\n assertEquals(fechaAlta, result.getFechaAlta());\n assertEquals(numDisponibles, result.getNumDisponibles());\n\n }",
"@Test\r\n public void testGetAnnee() {\r\n System.out.println(\"*****************\");\r\n System.out.println(\"Test : getAnnee\");\r\n Cours_Reservation instance = new Cours_Reservation();\r\n instance.setAnnee(1994);\r\n int expResult = 1994;\r\n int result = instance.getAnnee();\r\n assertEquals(expResult, result);\r\n }",
"abstract String getDetails();",
"@Test\n\t@DisplayName(\"GET /api/article/1 - Found\")\n\tpublic void testGetArticleById() throws Exception {\n\t\tmockMvc.perform(get(\"api/article/{id}\", 1))\n\t\t.andExpect(status().isOk()) //checks response code\n\t\t.andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) // checks response type\n\t\t.andExpect(header().string(HttpHeaders.ETAG, \"\\\"1\\\"\")) // check header tag\n\t\t.andExpect(jsonPath(\"$.id\").value(1))\n\t\t.andExpect(jsonPath(\"$.title\").value(\"Protecting your sql database\"))\n\t\t.andExpect(jsonPath(\"$.text\").value(\"Protecting your db is critical to prevent sql injection and a massive data breach\"))\n\t\t.andExpect(jsonPath(\"$.author\").value(\"Bob\"));\n\t}",
"@Test\n public void atsdTest() {\n assertEquals(\"a\", authResponse.getAtsd());\n }",
"@Test\n public void testFindById() {\n System.out.println(\"findById\");\n Integer id = 1;\n PrioridadRest instance = mokPrioridadRest;\n Prioridad expResult = new Prioridad(1);\n Prioridad result = instance.findById(id);\n assertEquals(expResult, result);\n \n }",
"@Test\n public void testGetAdressByID() throws Exception {\n System.out.println(\"getAdressByID\");\n int adressID = 0;\n String result = instance.getAdressByID(adressID);\n assertTrue(!result.isEmpty());\n \n }",
"@Test\n public void testAltaEjemplar() {\n System.out.println(\"AltaEjemplar\");\n Date fechaAdquisicion = new Date(1, 10, 2223);\n Date fechaDevolucion = new Date(1, 10, 2220);\n Date fechaPrestamo = new Date(1, 10, 2222);\n String idEjemplar = \"idEjemplar\";\n String localizacion = \"localizacion\";\n String observaciones = \"observaciones\";\n BibliotecarioController instance = new BibliotecarioController();\n \n Ejemplar result = instance.AltaEjemplar(fechaAdquisicion, fechaDevolucion, fechaPrestamo, idEjemplar, localizacion, observaciones);\n assertEquals(fechaAdquisicion, result.getFechaAdquisicion());\n assertEquals(fechaDevolucion, result.getFechaDevolucion());\n assertEquals(fechaPrestamo, result.getFechaPrestamo());\n assertEquals(idEjemplar, result.getIdEjemplar());\n assertEquals(localizacion, result.getLocalizacion());\n assertEquals(observaciones, result.getObservaciones());\n\n }",
"@Test\n void getAddressBook() {\n\n assertEquals(test_AddressBook, controllerTest.getModel());\n\n }",
"@Test\r\n\tpublic void testAplicarDescuento() {\r\n\t\tArticulo articulo = new Articulo(\"Pantalon\",17.6);\r\n\t\twhen(bbddService.findArticuloByID(any(Integer.class))).thenReturn(articulo);\r\n\t\tDouble res = carritoCompraService.aplicarDescuento(1, 50D);\r\n\t\tSystem.out.println(\"Aplicar Descuento : \" + res);\r\n\t\tassertEquals(8.8, res);\r\n\t\tMockito.verify(bbddService, times(1)).findArticuloByID(any(Integer.class));\r\n\t}",
"@Test\n public void testFindDietStatusById() throws Exception{\n String URI = \"/healthreminder/followup_dietstatus_find/{patientId}\";\n FollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\t\t\n\t\tString jsonInput = this.converttoJson(followUpDietStatusInfo);\n\n Mockito.when(followUpDietStatusInfoServices.findDietStatusById(Mockito.anyInt())).thenReturn(followUpDietStatusInfo);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get(URI, 1).accept(MediaType.APPLICATION_JSON))\n .andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n String jsonOutput = mockHttpServletResponse.getContentAsString();\n\n assertThat(jsonInput).isEqualTo(jsonOutput);\n }",
"@RequestMapping(value = \"/retrieveInfo\", method = RequestMethod.GET)\n\tpublic ModelAndView retrievePatientsInfo() {\n\t\t\n\t\t\n\t\n\t\t\n\t\tlogger.info(\"Retrieve 1 :\");\n\t\t\n\t\t patientDetailsProcessor.retrieveInfoByEmailId();\n\t\t\n\t\treturn new ModelAndView(\"success\");\n\t}",
"@Test\r\n public void testGetMarritalstatus() {\r\n System.out.println(\"getMarritalstatus\");\r\n Interviewee instance = new Interviewee();\r\n String expResult = null;\r\n String result = instance.getMarritalstatus();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }",
"@Test\n @DisplayName(\"list returns list of anime inside page object when successful\")\n void list_ReturnsListOfAnimesInsidePageObject_WhenSuccessful() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n\n // creating a user in the in memory database\n devDojoRepository.save(USER);\n\n String expectedName = savedAnime.getName();\n\n // PageableResponse is a wrapper created for the PageImpl class\n PageableResponse<Anime> animePage = testRestTemplateRoleUser.exchange(\"/animes\", HttpMethod.GET, null, \n new ParameterizedTypeReference<PageableResponse<Anime>>(){\n }).getBody();\n\n Assertions.assertThat(animePage).isNotNull();\n \n Assertions.assertThat(animePage.toList())\n .isNotEmpty()\n .hasSize(1);\n\n Assertions.assertThat(animePage.toList().get(0).getName()).isEqualTo(expectedName);\n\n }",
"@Test\n\tpublic void getProductDetails() throws Exception {\n\n\t\tMockito.when(productService.getProductInfo(Mockito.anyLong())).thenReturn(mockProduct);\n\n\t\tRequestBuilder requestBuilder = MockMvcRequestBuilders.get(\"/products/\" + productID)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON);\n\n\t\tMvcResult result = mockMvc.perform(requestBuilder).andReturn();\n\n\t\tSystem.out.println(result.getResponse());\n\n\t\tJSONAssert.assertEquals(expected, result.getResponse().getContentAsString(), true);\n\t\tSystem.out.println(\"UnitTestSuccessful\");\n\t}",
"@Override\r\n\tpublic String detail() {\n\t\tSystem.out.println(\"detailView.\");\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\trequest.put(\"bean\", bean);\r\n\t\t\t\treturn \"detail\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"detail\";\r\n\t}",
"@Test\n\t\tpublic void testGetAllMedicalAct() {\n\t\t\tfor (int i =0; i<10;i++){\n\t\t\t assertEquals(wraRestServer.listMedicalAct().get(i).getId(),medicalActDao.getAll().get(i).getId());\n\t\t}\n\t\t\t\n\t}",
"@Test\n\tpublic void TCAPIAR_03(){\n\t\taudioControl.addLog(\"ID : TCAPIAR_03 : Verify that Partner user is unable to get audio route detail\");\n\t\t/*\n\t\t\tSend a sample GET request using JssionID and CSRF token of partner user as following:\n\t\t\tGET http://devportal.dts.com/saap/api/route/154?revision=0 HTTP/1.1\n\t\t */\n\t\t// Log into DTS portal as partner user\n\t\tloginControl.login(SUPER_PARTNER_USER, SUPER_PARTNER_PASSWORD);\n\t\t// Get user CSRF token and cookie\n\t\tcsrfToken = audioControl.getCSRFToken();\n\t\tcookie = audioControl.getCookie();\n\t\t// Send a sample GET request using JssionID and CSRF token of partner user as following:\n\t\t// GET http://devportal.dts.com/saap/api/route/154?revision=0 HTTP/1.1\n\t\tJSONObject requestResult = APIUtil.sendGet(APIData.AUDIO_ROUTE_DETAIL_URL, csrfToken, cookie);\n\t\t/*\n\t\t * {\"apiErrorCode\":\"PEMISSION_DENY\",\"message\":\"You don't have permission.\"}\n\t\t */\n\t\tAssert.assertEquals(requestResult.get(\"message\").toString(), APIData.ERROR_MESSAGE);\n\t}",
"@Test\n public void test() {\n InformationPageParam param = new InformationPageParam();\n param.setPage(2);\n param.setPageSize(10);\n\n informationServiceI.list(param);\n }",
"@Override\r\n\t\t\t\r\n\t\t\tpublic Account viewDetails(String MobileNo) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn dao.viewDetails(MobileNo);\r\n\t\t\t}",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void getWardAdmissionTestCase() throws IOException, JSONException {\n\n\t\tArrayList<String> resArrayList = getHTTPResponse(properties.getProperty(TestCaseConstants.URL_GET_WARD_ADMISSION),\n\t\t\t\t TestCaseConstants.HTTP_GET, null);\n\n\t\tJSONArray jsonArray = new JSONArray(resArrayList.get(0));\n\t\tJSONObject jsonObject = ((JSONObject) jsonArray.get(jsonArray.length() - 1));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)), SUCCESS_STATUS_CODE);\n\t\tAssert.assertEquals(jsonObject.getString(\"bhtNo\"), BHT_No);\n\t\t\n\n\t}",
"@Test\n public void testBajarLibro() {\n System.out.println(\"BajarLibro\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Libro expResult = new LibrosList().getLibros().get(0);\n Libro result = instance.BajarLibro(libro);\n assertEquals(expResult, result);\n System.out.println(\"Libro dado de baja\\ntitulo:\" + result.getTitulo() + \"\\nISBN: \" + result.getIsbn());\n }",
"public String viewDetail() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (currentUser.getStaffRoot() == null) {\n\t\t\t\treturn PAGE_NOT_PERMISSION;\n\t\t\t}\n\t/*\t\tprivate Boolean isDiscount;\n\t\t\tprivate Boolean isReward*/\n\t\t\tlstTypeCode = apParamMgr.getListApParam(ApParamType.PROMOTION, ActiveType.RUNNING);\n\t\t\tif (promotionId == null || promotionId == 0) {\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t\n\t\t\tpromotionProgram = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (promotionProgram == null) {\n\t\t\t\tisError = true;\n\t\t\t\terrMsg = ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\");\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t//get promotion newcus config\n\t\t\tpromotionNewcusConfig = promotionNewcusConfigMgr.getPromNewcusConfigByProgramId(promotionId);\n\t\t\t// kiem tra CTKM co het han hay khong\n\t\t\tDate sysDate = commonMgr.getSysDate();\n\t\t\tif (promotionProgram.getToDate() != null) {\n\t\t\t\t//flagStatusExpire\n\t\t\t\tif (DateUtil.compareDateWithoutTime(promotionProgram.getToDate(), sysDate) < 0) {\n\t\t\t\t\tpromotionProgram.setFlagStatusExpire(ActiveType.HET_HAN.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t\tApParam apListDist = apParamMgr.getApParamByCode(\"LIST_VISIBLE_DISCOUNT\", ApParamType.ACTIVE_TYPE);\n\t\t\tString[] listDist;\n\t\t\tif(apListDist != null) {\n\t\t\t\tString strListDist = apListDist.getValue();\n\t\t\t\tstrListDist = strListDist.replace(\" \", \"\");\n\t\t\t\tlistDist = strListDist.split(\",\");\n\t\t\t} else {\n\t\t\t\tString strZVDist = \"ZV19,ZV20,ZV22,ZV23\";\n\t\t\t\tString strZVDistRep = strZVDist.replace(\" \", \"\");\n\t\t\t\tlistDist = strZVDistRep.split(\",\");\n\t\t\t}\n\t\t\t\n\t\t\tApParam apListRew = apParamMgr.getApParamByCode(\"LIST_VISIBLE_REWARD\", ApParamType.ACTIVE_TYPE);\n\t\t\tString[] listRew;\n\t\t\tif(apListRew != null){\n\t\t\t\tString strListRew = apListRew.getValue();\n\t\t\t\tstrListRew = strListRew.replace(\" \", \"\");\n\t\t\t\tlistRew = strListRew.split(\",\");\n\t\t\t} else {\n\t\t\t\tString strZV = \"ZV01,ZV02,ZV04,ZV05,ZV07,ZV08,ZV10,ZV11,ZV13,ZV14,ZV16,ZV17,ZV19,ZV20,ZV22,ZV23\";\n\t\t\t\tString strListZV = strZV.replace(\" \", \"\");\n\t\t\t\tlistRew = strListZV.split(\",\");\n\t\t\t}\n\t\t\tisReward = false;\n\t\t\tisDiscount = false;\n\t\t\tif(Arrays.asList(listDist).contains(promotionProgram.getType())){\n//\t\t\t\tif(promotionProgram != null \n//\t\t\t\t\t\t&& (promotionProgram.getDiscountType() == null\n//\t\t\t\t\t\t\t|| promotionProgram.getDiscountType() == 0)){\n\t\t\t\t\tisDiscount = true;\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tisDiscount = false;\n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.asList(listRew).contains(promotionProgram.getType())){\n\t\t\t\t/*if(promotionProgram != null\n\t\t\t\t\t\t&& (promotionProgram.getRewardType() == null\n\t\t\t\t\t\t\t|| promotionProgram.getRewardType() == 0)){\n\t\t\t\t\t\n\t\t\t\t}*/\n\t\t\t\tisReward = true;\n\t\t\t}else{\n\t\t\t\tisReward = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tObjectVO<Product> listProductVO = productMgr.getListProduct(null, ActiveType.RUNNING);\n\t\t\tif (listProductVO != null) {\n\t\t\t\tlistProduct = listProductVO.getLstObject();\n\t\t\t} else {\n\t\t\t\tlistProduct = new ArrayList<Product>();\n\t\t\t}\n\n\t\t\tid = promotionId;\n\t\t\tif (promotionProgramMgr.checkExistPromotionShopMapByListShop(getStrListShopId(), promotionId)) {\n\t\t\t\tisViewCustomerTab = 1;\n\t\t\t}\n\t\t\tisShowCompleteDefinePromo = false;\n\t\t\tList<ApParam> lstSendEmail = apParamMgr.getListApParam(ApParamType.COMPLETE_DEFINE_PROMOTION, ActiveType.RUNNING);\n\t\t\tif (lstSendEmail != null && lstSendEmail.size() > 0) {\n\t\t\t\tfor (int i = 0, n = lstSendEmail.size(); i < n; i++) {\n\t\t\t\t\tApParam apParam = lstSendEmail.get(i);\n\t\t\t\t\tif (apParam != null && !StringUtil.isNullOrEmpty(apParam.getApParamCode())) {\n\t\t\t\t\t\tString[] arrApParamCode = apParam.getApParamCode().split(\",\");\n\t\t\t\t\t\tfor (String string : arrApParamCode) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(string) && string.trim().equalsIgnoreCase(currentUser.getStaffRoot().getStaffCode())) {\n\t\t\t\t\t\t\t\tisShowCompleteDefinePromo = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.viewDetail\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn SUCCESS;\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"private void defaultMGachaRenditionShouldBeFound(String filter) throws Exception {\n restMGachaRenditionMockMvc.perform(get(\"/api/m-gacha-renditions?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(mGachaRendition.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].mainPrefabName\").value(hasItem(DEFAULT_MAIN_PREFAB_NAME.toString())))\n .andExpect(jsonPath(\"$.[*].resultExpectedUpPrefabName\").value(hasItem(DEFAULT_RESULT_EXPECTED_UP_PREFAB_NAME.toString())))\n .andExpect(jsonPath(\"$.[*].resultQuestionPrefabName\").value(hasItem(DEFAULT_RESULT_QUESTION_PREFAB_NAME.toString())))\n .andExpect(jsonPath(\"$.[*].soundSwitchEventName\").value(hasItem(DEFAULT_SOUND_SWITCH_EVENT_NAME.toString())));\n\n // Check, that the count call also returns 1\n restMGachaRenditionMockMvc.perform(get(\"/api/m-gacha-renditions/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"@Test\n public void testGetInfos() throws Exception {\n /* Setup */\n final int expectedResult = 10;\n\n /* Run the test */\n final int result = modelUnderTest.getInfos();\n\n /* Verify the results */\n assertEquals(expectedResult, result);\n }",
"@Test\r\n public void testRetrieve() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.retrieve(paymentDetail1));\r\n }",
"@Test\n public void testPrestarEjemplar() {\n System.out.println(\"prestarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(1);\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar result = instance.prestarEjemplar(ejemplar, usuario);\n Ejemplar expResult = ejemplar;\n expResult.setUsuarioId(usuario);\n \n assertEquals(expResult, result);\n\n }",
"void displayData(SchoolDetailResponse schoolDetailResponse);",
"@Test\r\n\tpublic void testAcceptInterview() throws Exception {\r\n\t\twhen(interviewerService.acceptInterview(anyLong())).thenReturn(getInterview());\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/acceptinterview/\" + INTERVIEW_ID + \"\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isCreated());\r\n\t}",
"@Test\n public void shouldRetrieveAPaymentViaGet() throws Exception {\n ResponseEntity<String> response = postTestPaymentAndGetResponse();\n String location = getLocationHeader(response);\n\n //when: the payment is fetched via get:\n ResponseEntity<Payment> getResponse = restTemplate.getForEntity(location, Payment.class);\n //then: the response status code should be OK:\n assertEquals(HttpStatus.OK, getResponse.getStatusCode());\n //and: the data on the response should be correct, e.g. check the orgainsation_id field:\n Payment payment = getResponse.getBody();\n assertEquals(testPaymentAsObject.getOrganisationId(), payment.getOrganisationId());\n }",
"@Test\n public void testConsultarLibros() {\n System.out.println(\"ConsultarLibros\");\n BibliotecarioController instance = new BibliotecarioController();\n\n List<Libro> expResult = new LibrosList().getLibros();\n \n List<Libro> result = instance.ConsultarLibros();\n assertEquals(expResult, result);\n\n }",
"@Test\r\n public void testGetUtilizador() {\r\n System.out.println(\"getUtilizador\");\r\n CentroExposicoes ce = new CentroExposicoes();\r\n \r\n AlterarUtilizadorController instance = new AlterarUtilizadorController(ce);\r\n instance.getUtilizador(\"email@gmail.com\");\r\n }",
"@Test\r\n\tvoid testGetAllMedicines() throws Exception {\r\n\t\tString URI = \"/medicine/getall\";\r\n\t\tMedicine medicine = new Medicine(); \r\n\t\tmedicine.setMedicineId(1345);\r\n\t\tmedicine.setMedicineName(\"Calcium\");\r\n\t\tmedicine.setMedicineCost(300);\r\n\t\t \r\n\t\tMedicine med = new Medicine();\r\n\t\tmed.setMedicineId(134);\r\n\t\tmed.setMedicineName(\"crosin\");\r\n\t\tmed.setMedicineCost(200);\r\n\t\r\n\t List<Medicine> medicineList = new ArrayList<>();\r\n\t medicineList.add(medicine);\r\n\t medicineList.add(med);\r\n\r\n Mockito.when(medicineService.getAllMedicines()).thenReturn(medicineList);\r\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get(URI).accept(MediaType.APPLICATION_JSON)).andReturn();\r\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\r\n String jsonOutput = mockHttpServletResponse.getContentAsString();\r\n assertNotNull(jsonOutput);\r\n\r\n\t}",
"@Transactional(rollbackFor={Exception.class})\n\t@Override\n\tpublic FaqVO getFaqDetail(int no) {\n\t\tdao.updateView_cnt(no);\n\t\treturn dao.getFaqDetail(no);\n\t}",
"@Test\n public void testGetTransmissionDetails() {\n System.out.println(\"getTransmissionDetails\");\n String s = SVCID; // svcia\n String o = ORG_ID; // ods code\n String a = null; // optional asid\n String p = null; // optional party key\n int expResult = 1;\n ArrayList<SdsTransmissionDetails> result = instance.getTransmissionDetails(s, o, a, p);\n\n assertEquals(expResult, result.size());\n assertEquals(s, result.get(0).getSvcIA());\n assertEquals(o, result.get(0).getOrgCode());\n\n String expStrResult = \"http://localhost:xxxx/reliablemessaging/intermediary\";\n assertEquals(expStrResult, result.get(0).getUrl());\n }",
"private void defaultIndActivationShouldBeFound(String filter) throws Exception {\n restIndActivationMockMvc\n .perform(get(ENTITY_API_URL + \"?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(indActivation.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].name\").value(hasItem(DEFAULT_NAME)))\n .andExpect(jsonPath(\"$.[*].activity\").value(hasItem(DEFAULT_ACTIVITY)))\n .andExpect(jsonPath(\"$.[*].customerId\").value(hasItem(DEFAULT_CUSTOMER_ID.intValue())))\n .andExpect(jsonPath(\"$.[*].individualId\").value(hasItem(DEFAULT_INDIVIDUAL_ID.intValue())));\n\n // Check, that the count call also returns 1\n restIndActivationMockMvc\n .perform(get(ENTITY_API_URL + \"/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"@Test\n\tpublic void testGetAllPatients() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/homepage\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200, response.getStatusCodeValue());\n\t}",
"@Test(groups = \"his.wardadmission.test\", dependsOnMethods = { \"addWardTestCase\" })\n\tpublic void getWardAdmissionByPatientIDTestCase() throws IOException, JSONException {\n\n\t\tArrayList<String> resArrayList = getHTTPResponse(properties.getProperty(TestCaseConstants.URL_GET_WARD_ADMISSION_BY_PATIENT_ID)+Patient_ID,\n\t\t\t\t TestCaseConstants.HTTP_GET, null);\n\n\t\t\n\t\tJSONArray jsonArray = new JSONArray(resArrayList.get(0));\n\t\tJSONObject jsonObject = ((JSONObject) jsonArray.get(jsonArray.length() - 1));\n\n\t\tAssert.assertEquals(Integer.parseInt(resArrayList.get(1)), SUCCESS_STATUS_CODE);\n\t\tAssert.assertEquals(jsonObject.getJSONObject(\"patientID\").getString(\"patientID\"), Patient_ID);\n\t\t\n\n\t}",
"@Test\n public void testConsultarUsuarios() {\n System.out.println(\"consultarUsuarios\");\n BibliotecarioController instance = new BibliotecarioController();\n List<Usuario> expResult = new UsuariosList().getUsuarios();\n List<Usuario> result = instance.consultarUsuarios();\n assertEquals(expResult, result);\n }",
"@Test\n public void contextLoads() {\n List<UserInfo> userInfos = new ArrayList<UserInfo>();\n userInfos = userInfoController.getUserList();\n System.out.println(userInfos);\n/* assertTrue(userInfos.size()>0);*/\n/* UserInfo userInfo = new UserInfo();\n userInfo = userInfoController.getUserByUserId(1);\n System.out.println(userInfo.toString());*/\n\n\n }",
"@RequestMapping(value = \"/details\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Detail> getAllDetails() {\n log.debug(\"REST request to get all Details\");\n List<Detail> details = detailRepository.findAll();\n return details;\n }",
"@Test\n\tpublic void getAccountDetailsTest() throws Exception {/*\n\t\tList<CreateAccount> listOfUsers= new ArrayList<>();\n\t\tlistOfUsers.add(new CreateAccount(1, \"Amrutha\", \"Kanthimath\", \"amruthaKanthimath\", \"1000005050\", \"9482929767\", \n\t\t\t\t\"abcd abcd\", \"Savings\", \"amrutha.kanthimath@gmail.com\", 100000, \"BVYPA5458A\", \"123456789A\"));\n\t\tMockito.when(accountController.getListOfUsers()).thenReturn(listOfUsers);\n\t\tthis.mockMvc.perform(get(\"/getAcc\"))\n\t\t.andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON))\n // .andExpect(\"$\", hasS)\n .andExpect(jsonPath(\"$.[0]\", is(1)))\n .andExpect(jsonPath(\"$.[0]\", is(\"Amrutha\")))\n .andExpect(jsonPath(\"$.[0]\", is(\"Kanthimath\")))\n .andExpect(jsonPath(\"$.[0]\", is(\"amruthaKanthimath\")))\n .andExpect(jsonPath(\"$.[0]\", is(\"1000005050\")))\n .andExpect(jsonPath(\"$.[0]\", is(\"9482929767\")))\n .andExpect(jsonPath(\"$.[0]\", is(\"abcd abcd\")))\n .andExpect(jsonPath(\"$.[0]\", is(\"Savings\")))\n .andExpect(jsonPath(\"$.[0]\", is(\"amrutha.kanthimath@gmail.com\")))\n .andExpect(jsonPath(\"$.[0]\", is(100000)))\n .andExpect(jsonPath(\"$.[0]\", is(\"BVYPA5458A\")))\n .andExpect(jsonPath(\"$.[0]\", is(\"123456789A\")));\n\t\t\n\t\tMockito.verify(accountController,times(1)).getListOfUsers();\n\t\tverifyNoMoreInteractions(accountController);\n \n\t*/}",
"@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }",
"@GetMapping(\"/animal/{id}/details\")\n public Animal listAnimalDetails(@PathVariable String id) { return animalService.getAnimal(id); }",
"@Test\n public void retrieveLoanTest() throws ApiException {\n Long loanId = null;\n GetSelfLoansLoanIdResponse response = api.retrieveLoan(loanId);\n\n // TODO: test validations\n }",
"@Test\r\n public void testSelectById() {\r\n System.out.println(\"selectById\");\r\n int id = 1;\r\n AbonentDAL instance = new AbonentDAL();\r\n Abonent result = instance.selectById(id);\r\n assertTrue(result!=null && result.getId()==id);\r\n }",
"@RequestMapping(value=\"/book/{isbn}\",method=RequestMethod.GET)\n\tpublic @ResponseBody ResponseEntity<Books> getOneBookDetails(@PathVariable Long isbn)throws Exception{\n\t\tBooks book=null;\n\t\t\n\t\t\tbook=booksDAO.findOne(isbn);\n\t\t\tif(book!=null)\n\t\t\t\treturn new ResponseEntity<Books>(book, HttpStatus.OK);\n\t\t\telse {\n\t\t\t\treturn new ResponseEntity<Books>(HttpStatus.NOT_FOUND);\n\t\t\t}\n\t}",
"@Test\n public void employeeRetrieveTest() {\n Mockito.when(this.rolService.getRoles()).thenReturn(Arrays.asList(new Rol()));\n Assert.assertNotNull(this.rolController.retrieve(new HttpHeaders()));\n }",
"public String getDetail()\n {\n return detail;\n }",
"@Test\n public void getCatalogSaleTest() {\n Integer id = null;\n // CatalogSale response = api.getCatalogSale(id);\n\n // TODO: test validations\n }",
"@Test\n void getByIdSuccess() {\n logger.info(\"running getByID test\");\n User retrievedUser = (User)genericDao.getById(2);\n\n assertEquals(\"BigAl\", retrievedUser.getUserName());\n assertEquals(\"Albert\", retrievedUser.getFirstName());\n assertEquals(2, retrievedUser.getId());\n assertEquals(\"Einstein\", retrievedUser.getLastName());\n assertEquals(\"11223\", retrievedUser.getZipCode());\n assertEquals(LocalDate.of(1879,3,14), retrievedUser.getBirthDate());\n\n }",
"@Override\r\n\tpublic List<AadharBean> getDetails(int aadharNo) {\r\n\t\tString hql = \"from AadharBean where aadharNo = :id\";\r\n\t\tSession session = factory.openSession();\r\n\t\tAadharBean register = (AadharBean) session.get(AadharBean.class, aadharNo);\r\n\r\n\t\tQuery query = session.createQuery(hql);\r\n\t\tquery.setParameter(\"id\", register.getAadharNo());\r\n\t\treturn null;\r\n\t}",
"@Test\n public void testEntregarPrestamo() {\n System.out.println(\"entregarPrestamo\");\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Map<Usuario, Ejemplar> expResult = new HashMap<>();\n expResult.put(usuario, ejemplar);\n Map<Usuario, Ejemplar> result = instance.entregarPrestamo(usuario, ejemplar);\n assertEquals(expResult, result);\n }",
"@Test\r\n public void testGetExist() throws PAException {\r\n Ii studyDiseaseIi = IiConverter.convertToStudyDiseaseIi(TestSchema.studyDiseaseIds.get(0));\r\n StudyDiseaseDTO studyDiseaseDTO = bean.get(studyDiseaseIi);\r\n assertNotNull(\"studyDiseaseDTO not found\", studyDiseaseDTO);\r\n assertEquals(\"Wrong studyDiseaseDTO returned\", studyDiseaseIi, studyDiseaseDTO.getIdentifier());\r\n }",
"@Test\n public void testGetExample() throws Exception{\n this.mockMvc.perform(get(\"/api/example/{id}\", 10))\n .andDo(print())\n .andExpect(status().isNotFound());\n\n // Fetching one that exists\n this.mockMvc.perform(get(\"/api/example/{id}\", 50))\n .andDo(print())\n .andExpect(status().is2xxSuccessful())\n .andExpect(jsonPath(\"$.name\", equalTo(\"Test\")));\n }",
"@Test\n public void getPerroTest() {\n \n PerroEntity entity = Perrodata.get(0);\n PerroEntity resultEntity = perroLogic.getPerro(entity.getId());\n Assert.assertNotNull(resultEntity);\n \n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getIdPerro(), resultEntity.getIdPerro());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n Assert.assertEquals(entity.getEdad(), resultEntity.getEdad());\n Assert.assertEquals(entity.getRaza(), resultEntity.getRaza());\n }",
"@Test\r\n public void getSalaTest() \r\n {\r\n SalaEntity entity = data.get(0);\r\n SalaEntity resultEntity = salaLogic.getSala(data.get(0).getId());\r\n Assert.assertNotNull(resultEntity);\r\n Assert.assertEquals(entity.getId(), resultEntity.getId());\r\n Assert.assertEquals(resultEntity.getNumero(), entity.getNumero());\r\n }",
"@Test\n public void getID() {\n\n }",
"@Test\n public void retriveByIdTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(1);\n assertNotNull(servizio,\"Should return true if return Servizio 1\");\n }",
"@Test\n public void testGetAllPharmacies() throws Exception {\n System.out.println(\"getAllPharmacies\");\n\n ManagePharmaciesController instance = new ManagePharmaciesController();\n LinkedList<PharmacyDTO> expResult= new LinkedList<>();\n LinkedList<PharmacyDTO> result = instance.getAllPharmacies();\n expResult.add(getPharmacyDTOTest(\"a\"));\n expResult.add(getPharmacyDTOTest(\"b\"));\n expResult.add(getPharmacyDTOTest(\"c\"));\n\n LinkedList<Pharmacy> resultDB = new LinkedList<>();\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"a\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"b\")));\n resultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"c\")));\n PharmacyDB db = Mockito.mock(PharmacyDB.class);\n PharmaDeliveriesApp.getInstance().getPharmacyService().setPharmacyDB(db);\n when(db.getAllPharmacies()).thenReturn(resultDB);\n result = instance.getAllPharmacies();\n Assertions.assertEquals(result.size(), expResult.size());\n Assertions.assertEquals(result.get(0).getName(), expResult.get(0).getName());\n Assertions.assertEquals(result.get(1).getName(), expResult.get(1).getName());\n Assertions.assertEquals(result.get(2).getName(), expResult.get(2).getName());\n \n// int i = 0;\n// for(PharmacyDTO p : result){\n// Assertions.assertEquals(p.getName(), expResult.get(i).getName());\n// i++;\n// }\n \n when(db.getAllPharmacies()).thenReturn(null);\n Assertions.assertNull(instance.getAllPharmacies());\n }",
"@Test\n public void testGetCoinTypeDetail() throws Exception {\n WebApiBaseReq req = new WebApiBaseReq();\n req.setId(2l);\n String token = CacheHelper.buildTestToken(\"1\");\n req.setToken(token);\n LOG.d(this,req);\n String str = JsonHelper.obj2JsonStr(req);\n WebApiResponse response = virtualCoinCtrl.getCoinTypeDetail(str);\n LOG.d(this, response);\n }",
"@Test\n public void testGerarAnaliseEstatisticas() {\n System.out.println(\"gerarAnaliseEstatisticas\");\n Empresa empresa = inicializarModeloTeste();\n GerarAnaliseEstatisticaRevisaoController instance = new GerarAnaliseEstatisticaRevisaoController(empresa);\n boolean expResult = true;\n boolean result = instance.gerarAnaliseEstatisticas();\n assertEquals(expResult, result);\n }",
"@Test\r\n\tpublic void testContestant_Page() {\r\n\t\tnew Contestant_Page(myID, myEntryData);\r\n\t\t\r\n\t}",
"public int queryPlateAsianInfoById(String id);",
"private void defaultTerritorioShouldBeFound(String filter) throws Exception {\n restTerritorioMockMvc\n .perform(get(ENTITY_API_URL + \"?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(territorio.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].nome\").value(hasItem(DEFAULT_NOME)));\n\n // Check, that the count call also returns 1\n restTerritorioMockMvc\n .perform(get(ENTITY_API_URL + \"/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(content().string(\"1\"));\n }"
] | [
"0.71466845",
"0.6495666",
"0.613428",
"0.6065138",
"0.5904807",
"0.5867911",
"0.58672947",
"0.58568627",
"0.57723266",
"0.5771036",
"0.57140607",
"0.57027954",
"0.56598556",
"0.5640054",
"0.56144774",
"0.55714947",
"0.55547345",
"0.5548808",
"0.5535915",
"0.5524293",
"0.55090046",
"0.54960454",
"0.54917246",
"0.5486657",
"0.5479772",
"0.5477332",
"0.54713476",
"0.5464441",
"0.5464441",
"0.5463472",
"0.54530066",
"0.545225",
"0.54512924",
"0.5450812",
"0.5446048",
"0.54376507",
"0.54354334",
"0.54273665",
"0.5419154",
"0.53983665",
"0.53904885",
"0.5363765",
"0.5354872",
"0.5331035",
"0.5299476",
"0.5299457",
"0.52964294",
"0.52803606",
"0.5263654",
"0.5256602",
"0.52527344",
"0.52475995",
"0.52402467",
"0.5222588",
"0.52217734",
"0.52182716",
"0.5217428",
"0.5216886",
"0.52058303",
"0.52057123",
"0.52056605",
"0.52046573",
"0.5200094",
"0.5192825",
"0.51901567",
"0.5178891",
"0.51784146",
"0.5175516",
"0.5168705",
"0.5166139",
"0.5162467",
"0.5156383",
"0.5149749",
"0.5146527",
"0.51462805",
"0.51451683",
"0.51390475",
"0.51379746",
"0.5136952",
"0.5134759",
"0.5131366",
"0.5127661",
"0.51272124",
"0.5125993",
"0.51232874",
"0.5121169",
"0.5119095",
"0.51187533",
"0.5117079",
"0.51092726",
"0.5108853",
"0.51039976",
"0.51009846",
"0.5098754",
"0.50842685",
"0.50840706",
"0.50784636",
"0.50717044",
"0.5071474",
"0.50672376"
] | 0.8346784 | 0 |
Test of getDetailPasien method, of class AntrianController. | @Test
public void testGetDetailPasien() throws Exception {
System.out.println("getDetailPasien");
String idPasien = "PS001";
setHostPort();
AntrianController instance = new AntrianController(client);
Pasien expResult = instance.getDetailPasien(idPasien);
Pasien result = instance.getDetailPasien(idPasien);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testGetAntrianDetail() throws Exception {\n System.out.println(\"getAntrianDetail\");\n String id = \"AN001\";\n setHostPort();\n AntrianController instance = new AntrianController(client);\n\n Antrian expResult = instance.getAntrianDetail(id);\n Antrian result = instance.getAntrianDetail(id);\n assertEquals(expResult, result);\n\n // TODO review the generated test code and remove the default call to fail.\n }",
"public String doDetail(){\n if(idsecteur==null){\n this.addActionError(getText(\"error.topo.missing.id.\"));\n }else secteur = managerFactory.getSecteurManager().getbynid(idsecteur);\n {\n // this.addActionError(\"il n'y a pas de projet pour ce numéro \"+idtopo );\n\n\n }\nreturn (this.hasErrors())? ActionSupport.ERROR : ActionSupport.SUCCESS;\n\n }",
"@Test\n\tvoid findDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setSpecialist(\"cardioc\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors(doctorfind.getSpecialist());\n\t\tmockMvc.perform(get(\"/doctor/find?specialist=/{specialist}\", \"cardioc\")).andExpect(status().isOk());\n\t}",
"public void getDetail(int id) {\n\t\t\n\t}",
"@Test\n public void testBajarEjemplar() {\n System.out.println(\"BajarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar expResult = new EjemplaresList().getEjemplares().get(0);\n Ejemplar result = instance.BajarEjemplar(ejemplar);\n assertEquals(expResult, result);\n System.out.println(\"Ejemplar dado de baja\\nid:\" + result.getIdEjemplar());\n }",
"@Test\n\tvoid getDoctorController() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors();\n\t\tmockMvc.perform(get(\"/doctor/details\")).andExpect(status().isOk());\n\t}",
"@Test\r\n public void testBuscaArticulos() throws Exception {\r\n System.out.println(\"BuscaArticulos\");\r\n ReportesController instance = new ReportesController();\r\n ArrayList<Articulo> expResult = null;\r\n ArrayList<Articulo> result = instance.BuscaArticulos();\r\n assertNotNull(result);\r\n \r\n }",
"@Override\n\tpublic void getDetail() {\n\t\t\n\t}",
"@Test\r\n\tpublic void testShowInterviewer() throws Exception {\r\n\r\n\t\tList<ShowInterviwerDTO> interviewerList = new ArrayList<ShowInterviwerDTO>();\r\n\t\tinterviewerList.add(getIntervieerDTO());\r\n\t\twhen(interviewerService.getAllInterviewer()).thenReturn(interviewerList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/showinterviewer\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}",
"@Test\n public void testGetAntrian() throws Exception {\n System.out.println(\"getAntrian\");\n setHostPort();\n Menursepsionis ui = new Menursepsionis(client, \"resp1\");\n AntrianController instance = new AntrianController(client);\n DefaultTableModel expResult = instance.getAntrian();\n DefaultTableModel result = instance.getAntrian();\n boolean resultCondition = false;\n System.out.println(result.getRowCount());\n if (result.getRowCount() >= 1) {\n resultCondition = true;\n }\n assertTrue(resultCondition);\n }",
"@Test\n public void testConsultarEjemplares() {\n System.out.println(\"ConsultarEjemplares\");\n BibliotecarioController instance = new BibliotecarioController();\n List<Ejemplar> expResult = new EjemplaresList().getEjemplares();\n List<Ejemplar> result = instance.ConsultarEjemplares();\n assertEquals(expResult, result);\n\n }",
"@Test\r\n public void testRetrieve() {\r\n\r\n PaymentDetailPojo expResult = instance.save(paymentDetail1);\r\n assertEquals(expResult, instance.retrieve(paymentDetail1));\r\n }",
"public String wantDetail();",
"@Test\n public void getPerroTest() {\n \n PerroEntity entity = Perrodata.get(0);\n PerroEntity resultEntity = perroLogic.getPerro(entity.getId());\n Assert.assertNotNull(resultEntity);\n \n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getIdPerro(), resultEntity.getIdPerro());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n Assert.assertEquals(entity.getEdad(), resultEntity.getEdad());\n Assert.assertEquals(entity.getRaza(), resultEntity.getRaza());\n }",
"@Test\n public void testPrestarEjemplar() {\n System.out.println(\"prestarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(1);\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar result = instance.prestarEjemplar(ejemplar, usuario);\n Ejemplar expResult = ejemplar;\n expResult.setUsuarioId(usuario);\n \n assertEquals(expResult, result);\n\n }",
"@RequestMapping(value = \"/details/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Detail> getDetail(@PathVariable Long id) {\n log.debug(\"REST request to get Detail : {}\", id);\n Detail detail = detailRepository.findOne(id);\n return Optional.ofNullable(detail)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@Test\n public void testFindById() {\n System.out.println(\"findById\");\n Integer id = 1;\n PrioridadRest instance = mokPrioridadRest;\n Prioridad expResult = new Prioridad(1);\n Prioridad result = instance.findById(id);\n assertEquals(expResult, result);\n \n }",
"@Test\n void getNoteByIdSuccess() {\n Note retrievedNote = (Note) noteDao.getById(1);\n assertEquals(1, retrievedNote.getId());\n assertEquals(\"Amari Rodgers\", retrievedNote.getProspect());\n }",
"@Override\r\n\tpublic String detail() {\n\t\tSystem.out.println(\"detailView.\");\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\trequest.put(\"bean\", bean);\r\n\t\t\t\treturn \"detail\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"detail\";\r\n\t}",
"public String getAnotherDetail();",
"public abstract String showDetails();",
"public String getDetail()\n {\n return detail;\n }",
"@Test\n public void detailsTest() {\n // TODO: test details\n }",
"@Test\n public void detailsTest() {\n // TODO: test details\n }",
"@Test\n\tpublic void getProductDetails() throws Exception {\n\n\t\tMockito.when(productService.getProductInfo(Mockito.anyLong())).thenReturn(mockProduct);\n\n\t\tRequestBuilder requestBuilder = MockMvcRequestBuilders.get(\"/products/\" + productID)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON);\n\n\t\tMvcResult result = mockMvc.perform(requestBuilder).andReturn();\n\n\t\tSystem.out.println(result.getResponse());\n\n\t\tJSONAssert.assertEquals(expected, result.getResponse().getContentAsString(), true);\n\t\tSystem.out.println(\"UnitTestSuccessful\");\n\t}",
"@Test\n public void test() {\n InformationPageParam param = new InformationPageParam();\n param.setPage(2);\n param.setPageSize(10);\n\n informationServiceI.list(param);\n }",
"@Test\n public void testEjemplaresDisponibles() {\n System.out.println(\"ejemplaresDisponibles\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n List<Ejemplar> expResult = new ArrayList<>();\n expResult.add(new EjemplaresList().getEjemplares().get(1));\n List<Ejemplar> result = instance.ejemplaresDisponibles(libro);\n assertEquals(expResult, result);\n\n }",
"@Test\n public void apiKundenViewGetInaktiveGetTest() throws ApiException {\n List<CmplxKunden> response = api.apiKundenViewGetInaktiveGet();\n\n // TODO: test validations\n }",
"@Test\r\n void testGetMedicineById() throws Exception{\r\n String URI= \"/medicine/get/{medicineId}\";\r\n Medicine medicine = new Medicine();\r\n\t medicine.setMedicineId(134);\r\n\t medicine.setMedicineName(\"crosin\");\r\n\t medicine.setMedicineCost(200);\r\n\r\n Mockito.when(medicineService.findMedicineById(Mockito.any())).thenReturn(medicine);\r\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.get(URI, 102).accept(MediaType.APPLICATION_JSON)).andReturn();\r\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\r\n String jsonOutput = mockHttpServletResponse.getContentAsString();\r\n assertNotNull(jsonOutput);\r\n }",
"public String getDetail() {\r\n return detail;\r\n }",
"public String getDetail() {\r\n return detail;\r\n }",
"@Test\r\n\tpublic void testAplicarDescuento() {\r\n\t\tArticulo articulo = new Articulo(\"Pantalon\",17.6);\r\n\t\twhen(bbddService.findArticuloByID(any(Integer.class))).thenReturn(articulo);\r\n\t\tDouble res = carritoCompraService.aplicarDescuento(1, 50D);\r\n\t\tSystem.out.println(\"Aplicar Descuento : \" + res);\r\n\t\tassertEquals(8.8, res);\r\n\t\tMockito.verify(bbddService, times(1)).findArticuloByID(any(Integer.class));\r\n\t}",
"@Test\n public void testModificarEjemplar() {\n System.out.println(\"ModificarEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);;\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar expResult = new EjemplaresList().getEjemplares().get(0);;\n Ejemplar result = instance.ModificarEjemplar(ejemplar);\n assertEquals(expResult, result);\n System.out.println(\"Ejemplar dado de baja\\nid:\" + result.getIdEjemplar());\n }",
"@Test\n public void testEntregarPrestamo() {\n System.out.println(\"entregarPrestamo\");\n Usuario usuario = new UsuariosList().getUsuarios().get(0);\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Map<Usuario, Ejemplar> expResult = new HashMap<>();\n expResult.put(usuario, ejemplar);\n Map<Usuario, Ejemplar> result = instance.entregarPrestamo(usuario, ejemplar);\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetCurso() {\n System.out.println(\"getCurso\");\n int cod = 0;\n cursoDAO instance = new cursoDAO();\n curso expResult = null;\n curso result = instance.getCurso(cod);\n assertEquals(expResult, result);\n \n }",
"@Test\r\n\tpublic void testtraerInfoParaCertificado() {\n\t\tLong idDeuda = 1l;\r\n\t\tString username = \"alonsoir\";\r\n\t\tInfoCertificadoDeuda info = despachoService.traerInfoParaCertificado(\r\n\t\t\t\tidDeuda, username); //\r\n\t\tLOG.info(info.toString());\r\n\t\tAssert.assertNotNull(info);\r\n\t}",
"@Test\n public void testConsultarLibros() {\n System.out.println(\"ConsultarLibros\");\n BibliotecarioController instance = new BibliotecarioController();\n\n List<Libro> expResult = new LibrosList().getLibros();\n \n List<Libro> result = instance.ConsultarLibros();\n assertEquals(expResult, result);\n\n }",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"@Test\n public void testBajarLibro() {\n System.out.println(\"BajarLibro\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Libro expResult = new LibrosList().getLibros().get(0);\n Libro result = instance.BajarLibro(libro);\n assertEquals(expResult, result);\n System.out.println(\"Libro dado de baja\\ntitulo:\" + result.getTitulo() + \"\\nISBN: \" + result.getIsbn());\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String getDetail() {\n return detail;\n }",
"public String viewDetail() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (currentUser.getStaffRoot() == null) {\n\t\t\t\treturn PAGE_NOT_PERMISSION;\n\t\t\t}\n\t/*\t\tprivate Boolean isDiscount;\n\t\t\tprivate Boolean isReward*/\n\t\t\tlstTypeCode = apParamMgr.getListApParam(ApParamType.PROMOTION, ActiveType.RUNNING);\n\t\t\tif (promotionId == null || promotionId == 0) {\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t\n\t\t\tpromotionProgram = promotionProgramMgr.getPromotionProgramById(promotionId);\n\t\t\tif (promotionProgram == null) {\n\t\t\t\tisError = true;\n\t\t\t\terrMsg = ValidateUtil.getErrorMsg(ConstantManager.ERR_NOT_EXIST_DB, \"CTKM\");\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t//get promotion newcus config\n\t\t\tpromotionNewcusConfig = promotionNewcusConfigMgr.getPromNewcusConfigByProgramId(promotionId);\n\t\t\t// kiem tra CTKM co het han hay khong\n\t\t\tDate sysDate = commonMgr.getSysDate();\n\t\t\tif (promotionProgram.getToDate() != null) {\n\t\t\t\t//flagStatusExpire\n\t\t\t\tif (DateUtil.compareDateWithoutTime(promotionProgram.getToDate(), sysDate) < 0) {\n\t\t\t\t\tpromotionProgram.setFlagStatusExpire(ActiveType.HET_HAN.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t\tApParam apListDist = apParamMgr.getApParamByCode(\"LIST_VISIBLE_DISCOUNT\", ApParamType.ACTIVE_TYPE);\n\t\t\tString[] listDist;\n\t\t\tif(apListDist != null) {\n\t\t\t\tString strListDist = apListDist.getValue();\n\t\t\t\tstrListDist = strListDist.replace(\" \", \"\");\n\t\t\t\tlistDist = strListDist.split(\",\");\n\t\t\t} else {\n\t\t\t\tString strZVDist = \"ZV19,ZV20,ZV22,ZV23\";\n\t\t\t\tString strZVDistRep = strZVDist.replace(\" \", \"\");\n\t\t\t\tlistDist = strZVDistRep.split(\",\");\n\t\t\t}\n\t\t\t\n\t\t\tApParam apListRew = apParamMgr.getApParamByCode(\"LIST_VISIBLE_REWARD\", ApParamType.ACTIVE_TYPE);\n\t\t\tString[] listRew;\n\t\t\tif(apListRew != null){\n\t\t\t\tString strListRew = apListRew.getValue();\n\t\t\t\tstrListRew = strListRew.replace(\" \", \"\");\n\t\t\t\tlistRew = strListRew.split(\",\");\n\t\t\t} else {\n\t\t\t\tString strZV = \"ZV01,ZV02,ZV04,ZV05,ZV07,ZV08,ZV10,ZV11,ZV13,ZV14,ZV16,ZV17,ZV19,ZV20,ZV22,ZV23\";\n\t\t\t\tString strListZV = strZV.replace(\" \", \"\");\n\t\t\t\tlistRew = strListZV.split(\",\");\n\t\t\t}\n\t\t\tisReward = false;\n\t\t\tisDiscount = false;\n\t\t\tif(Arrays.asList(listDist).contains(promotionProgram.getType())){\n//\t\t\t\tif(promotionProgram != null \n//\t\t\t\t\t\t&& (promotionProgram.getDiscountType() == null\n//\t\t\t\t\t\t\t|| promotionProgram.getDiscountType() == 0)){\n\t\t\t\t\tisDiscount = true;\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tisDiscount = false;\n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.asList(listRew).contains(promotionProgram.getType())){\n\t\t\t\t/*if(promotionProgram != null\n\t\t\t\t\t\t&& (promotionProgram.getRewardType() == null\n\t\t\t\t\t\t\t|| promotionProgram.getRewardType() == 0)){\n\t\t\t\t\t\n\t\t\t\t}*/\n\t\t\t\tisReward = true;\n\t\t\t}else{\n\t\t\t\tisReward = false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tObjectVO<Product> listProductVO = productMgr.getListProduct(null, ActiveType.RUNNING);\n\t\t\tif (listProductVO != null) {\n\t\t\t\tlistProduct = listProductVO.getLstObject();\n\t\t\t} else {\n\t\t\t\tlistProduct = new ArrayList<Product>();\n\t\t\t}\n\n\t\t\tid = promotionId;\n\t\t\tif (promotionProgramMgr.checkExistPromotionShopMapByListShop(getStrListShopId(), promotionId)) {\n\t\t\t\tisViewCustomerTab = 1;\n\t\t\t}\n\t\t\tisShowCompleteDefinePromo = false;\n\t\t\tList<ApParam> lstSendEmail = apParamMgr.getListApParam(ApParamType.COMPLETE_DEFINE_PROMOTION, ActiveType.RUNNING);\n\t\t\tif (lstSendEmail != null && lstSendEmail.size() > 0) {\n\t\t\t\tfor (int i = 0, n = lstSendEmail.size(); i < n; i++) {\n\t\t\t\t\tApParam apParam = lstSendEmail.get(i);\n\t\t\t\t\tif (apParam != null && !StringUtil.isNullOrEmpty(apParam.getApParamCode())) {\n\t\t\t\t\t\tString[] arrApParamCode = apParam.getApParamCode().split(\",\");\n\t\t\t\t\t\tfor (String string : arrApParamCode) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(string) && string.trim().equalsIgnoreCase(currentUser.getStaffRoot().getStaffCode())) {\n\t\t\t\t\t\t\t\tisShowCompleteDefinePromo = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.viewDetail\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t\treturn SUCCESS;\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"@Test\n public void getProductDetailTest() throws ApiException {\n String productId = null;\n ResponseBankingProduct response = api.getProductDetail(productId);\n\n // TODO: test validations\n }",
"@Test\r\n public void testGetAnnee() {\r\n System.out.println(\"*****************\");\r\n System.out.println(\"Test : getAnnee\");\r\n Cours_Reservation instance = new Cours_Reservation();\r\n instance.setAnnee(1994);\r\n int expResult = 1994;\r\n int result = instance.getAnnee();\r\n assertEquals(expResult, result);\r\n }",
"public DetailPasien(Pasien pasien) {\n initComponents();\n \n setPasien(pasien);\n }",
"public void setDetail(String detail) {\r\n this.detail = detail;\r\n }",
"@Test\n\tpublic void testPatient() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/edit-patient?id=4\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200,response.getStatusCodeValue());\n\t}",
"public DetailPageController() {\n\t\tsuper();\n\t}",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }",
"@Test\n public void testAltaEjemplar() {\n System.out.println(\"AltaEjemplar\");\n Date fechaAdquisicion = new Date(1, 10, 2223);\n Date fechaDevolucion = new Date(1, 10, 2220);\n Date fechaPrestamo = new Date(1, 10, 2222);\n String idEjemplar = \"idEjemplar\";\n String localizacion = \"localizacion\";\n String observaciones = \"observaciones\";\n BibliotecarioController instance = new BibliotecarioController();\n \n Ejemplar result = instance.AltaEjemplar(fechaAdquisicion, fechaDevolucion, fechaPrestamo, idEjemplar, localizacion, observaciones);\n assertEquals(fechaAdquisicion, result.getFechaAdquisicion());\n assertEquals(fechaDevolucion, result.getFechaDevolucion());\n assertEquals(fechaPrestamo, result.getFechaPrestamo());\n assertEquals(idEjemplar, result.getIdEjemplar());\n assertEquals(localizacion, result.getLocalizacion());\n assertEquals(observaciones, result.getObservaciones());\n\n }",
"@Test\r\n public void testRead() throws Exception {\r\n System.out.println(\"read\");\r\n int idbureau = 0;\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau expResult = instance.create(obj);\r\n idbureau=expResult.getIdbur();\r\n Bureau result = instance.read(idbureau);\r\n assertEquals(\"sigles différents\",expResult.getSigle(), result.getSigle());\r\n assertEquals(\"tel différents\",expResult.getTel(), result.getTel());\r\n //etc\r\n assertEquals(\"id différents\",expResult.getIdbur(),result.getIdbur());\r\n try{\r\n result=instance.read(0);\r\n fail(\"exception d'id inconnu non générée\");\r\n }\r\n catch(SQLException e){}\r\n instance.delete(result);\r\n }",
"@Test\n public void testDevolverEjemplar() {\n System.out.println(\"devolverEjemplar\");\n Ejemplar ejemplar = new EjemplaresList().getEjemplares().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Ejemplar result = instance.devolverEjemplar(ejemplar);\n Ejemplar expResult = ejemplar;\n expResult.setUsuarioId(null);\n \n assertEquals(expResult, result);\n\n }",
"@Test\n public void testAltaLibro() {\n System.out.println(\"AltaLibro\");\n Long id = new Long(1);\n String isbn = \"isbn\";\n String titulo = \"Don Quijote de la Mancha\";\n String autor = \"Miguel de Cervantes\";\n Integer numPaginas = 10;\n Date fechaAlta = new Date(1,02,2021);\n Integer numDisponibles = 5;\n BibliotecarioController instance = new BibliotecarioController();\n Libro result = instance.AltaLibro(id, isbn, titulo, autor, numPaginas, fechaAlta, numDisponibles);\n assertEquals(id, result.getId());\n assertEquals(isbn, result.getIsbn());\n assertEquals(titulo, result.getTitulo());\n assertEquals(autor, result.getAutor());\n assertEquals(numPaginas, result.getNumPaginas());\n assertEquals(fechaAlta, result.getFechaAlta());\n assertEquals(numDisponibles, result.getNumDisponibles());\n\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"public void setDetail(String detail) {\n this.detail = detail;\n }",
"@Test\n public void retriveByIdTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(1);\n assertNotNull(servizio,\"Should return true if return Servizio 1\");\n }",
"@Test\n public void getEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity resultEntity = especieLogic.getSpecies(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n }",
"@Test\n\tpublic void testAfficher() {\n\t\tprofesseurServiceEmp.afficher(prof);\n\t}",
"@Override\r\n\tpublic TrDetailPenjualan findOne(String kodeDetail) {\n\t\tString query = \"select * from TR_DETAIL_PENJUALAN where kode_detail= '\"+kodeDetail+\"'\";\r\n\t\tTrDetailPenjualan trDetail = new TrDetailPenjualan();\r\n\t\tConnection con = null;\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tcon = dataSource.getConnection();\r\n\t\t\tps = con.prepareStatement(query);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\ttrDetail.setKodeDetail(rs.getString(\"kode_detail\"));\r\n\t\t\t\ttrDetail.setQty(rs.getInt(\"Qty\"));\r\n\t\t\t\ttrDetail.setSubtotal(rs.getInt(\"subtotal\"));\r\n\t\t\t\ttrDetail.setDiskon(rs.getInt(\"diskon\"));\r\n\t\t\t\ttrDetail.setHargaSatuan(rs.getInt(\"harga_satuan\"));\r\n\t\t\t\tkodeBarang = (rs.getString(\"kode_barang\"));\r\n\t\t\t\tmstBarang = mstBarangDao.findOne(kodeBarang);\r\n\t\t\t\ttrDetail.setKodeBarang(mstBarang);\r\n\t\t\t\tnoNota = (rs.getString(\"no_nota\"));\r\n\t\t\t\ttrHeaderPenjualan = trHeaderPenjualanDao.findOne(noNota);\r\n\t\t\t\ttrDetail.setNoNota(trHeaderPenjualan);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tps.close();\r\n\t\t\t\tcon.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn trDetail;\r\n\t}",
"@Test\n public void testConsultarUsuarios() {\n System.out.println(\"consultarUsuarios\");\n BibliotecarioController instance = new BibliotecarioController();\n List<Usuario> expResult = new UsuariosList().getUsuarios();\n List<Usuario> result = instance.consultarUsuarios();\n assertEquals(expResult, result);\n }",
"@Test\n\tpublic void testGetPatientDetail_1()\n\t\tthrows Exception {\n\t\tPatientAccessor fixture = new PatientAccessor(\"\");\n\t\tString hospitalNumber = \"\";\n\n\t\tPatient result = fixture.getPatientDetail(hospitalNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.IllegalStateException: _out shouldn't be null\n\t\t// at com.mongodb.DBPort.go(DBPort.java:110)\n\t\t// at com.mongodb.DBPort.call(DBPort.java:74)\n\t\t// at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286)\n\t\t// at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:257)\n\t\t// at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:310)\n\t\t// at com.mongodb.DB.command(DB.java:274)\n\t\t// at com.mongodb.DB.command(DB.java:256)\n\t\t// at com.mongodb.DB.command(DB.java:313)\n\t\t// at com.mongodb.Mongo.getDatabaseNames(Mongo.java:393)\n\t\t// at com.comp2014group5.generic_database.FormDatabaseMongoImpl.<init>(FormDatabaseMongoImpl.java:24)\n\t\t// at com.comp2014.group5.patient_database.PatientAccessor.<init>(PatientAccessor.java:29)\n\t\tassertNotNull(result);\n\t}",
"@Test\n public void testRetrieve() throws Exception {\n Citation entity = getSampleCitation();\n when(Service.retrieveCitation(any(String.class))).thenReturn(entity);\n\n // test to see that the correct view is returned\n ModelAndView mav = Controller.retrieve(\"\");\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Service at least makes a call to get a Citation object\n verify(Service, atLeastOnce()).retrieveCitation(any(String.class));\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String jsonObject = (String) map.get(\"message\");\n testJsonObject(jsonObject, entity);\n }",
"@RequestMapping(value=\"/ligne_panier/test\")\r\n\tpublic String tester() {\r\n\t\t\r\n\t\t\r\n\t\tProduit produit1 = produitManager.getProduit(1);\r\n\t\tProduit produit2 = produitManager.getProduit(2);\r\n\t\tProduit produit3 = produitManager.getProduit(3);\r\n\t\tProduit produit4 = produitManager.getProduit(4);\r\n\t\t\r\n\t\t\r\n\t\tLignePanier lp1 = new LignePanier();\r\n\t\tlp1.setProduit(produit1);\r\n\t\tlp1.setQuantite(1);\r\n\t\tlp1.setPanier(panierManager.getPanierService(1));\r\n\t\t\r\n\t\tLignePanier lp2 = new LignePanier();\r\n\t\tlp2.setProduit(produit2);\r\n\t\tlp2.setQuantite(2);\r\n\t\tlp2.setPanier(panierManager.getPanierService(1));\r\n\t\t\r\n\t\tLignePanier lp3 = new LignePanier();\r\n\t\tlp3.setProduit(produit3);\r\n\t\tlp3.setQuantite(3);\r\n\t\tlp3.setPanier(panierManager.getPanierService(2));\r\n\t\t\r\n\t\tLignePanier lp4 = new LignePanier();\r\n\t\tlp4.setProduit(produit4);\r\n\t\tlp4.setQuantite(4);\r\n\t\tlp4.setPanier(panierManager.getPanierService(3));\r\n\t\t\r\n\t\t\r\n\t\tlignePanierManager.addLignePanierService(lp1);\r\n\t\tlignePanierManager.addLignePanierService(lp2);\r\n\t\tlignePanierManager.addLignePanierService(lp3);\r\n\t\tlignePanierManager.addLignePanierService(lp4);\r\n\t\t\r\n\t\treturn \"testProduit\";\r\n\t}",
"private void defaultPoenShouldBeFound(String filter) throws Exception {\n restPoenMockMvc.perform(get(\"/api/poens?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(poen.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].tip\").value(hasItem(DEFAULT_TIP.toString())));\n\n // Check, that the count call also returns 1\n restPoenMockMvc.perform(get(\"/api/poens/count?sort=id,desc&\" + filter))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE))\n .andExpect(content().string(\"1\"));\n }",
"@Test\n\tpublic void testGetPatientDetail_2()\n\t\tthrows Exception {\n\t\tPatientAccessor fixture = new PatientAccessor(\"\");\n\t\tString hospitalNumber = \"\";\n\n\t\tPatient result = fixture.getPatientDetail(hospitalNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.IllegalStateException: _out shouldn't be null\n\t\t// at com.mongodb.DBPort.go(DBPort.java:110)\n\t\t// at com.mongodb.DBPort.call(DBPort.java:74)\n\t\t// at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:286)\n\t\t// at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:257)\n\t\t// at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:310)\n\t\t// at com.mongodb.DB.command(DB.java:274)\n\t\t// at com.mongodb.DB.command(DB.java:256)\n\t\t// at com.mongodb.DB.command(DB.java:313)\n\t\t// at com.mongodb.Mongo.getDatabaseNames(Mongo.java:393)\n\t\t// at com.comp2014group5.generic_database.FormDatabaseMongoImpl.<init>(FormDatabaseMongoImpl.java:24)\n\t\t// at com.comp2014.group5.patient_database.PatientAccessor.<init>(PatientAccessor.java:29)\n\t\tassertNotNull(result);\n\t}",
"@Test\n public void getPerroByIDPerroTest() {\n PerroEntity entity = Perrodata.get(0);\n \n PerroEntity resultEntity = perroLogic.getPerroByIDPerro(entity.getIdPerro());\n Assert.assertNotNull(resultEntity);\n \n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getIdPerro(), resultEntity.getIdPerro());\n Assert.assertEquals(entity.getNombre(), resultEntity.getNombre());\n Assert.assertEquals(entity.getEdad(), resultEntity.getEdad());\n Assert.assertEquals(entity.getRaza(), resultEntity.getRaza());\n }",
"@Test\n public void testCrearBibliotecario() {\n System.out.println(\"BibliotecaController\");\n String email = \"mail\";\n String login = \"login\";\n String password = \"pass\";\n String nif = \"nif\";\n BibliotecarioController instance = new BibliotecarioController();\n Bibliotecario result = instance.crearBibliotecario(email, login, password, nif);\n assertEquals(email, result.getEmail());\n assertEquals(login, result.getLogin());\n assertEquals(password, result.getPassword());\n assertEquals(nif , result.getNif());\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testfindNoteCoursByIdRepositoryIsInvoked() throws NoteCoursNotFoundException {\n when(ncRepository.findById(eq(ncExpected.getId()))).thenReturn(Optional.ofNullable(ncExpected));\n // when: la méthode findActiviteById est invoquée\n ncService.findNoteCoursById(ncExpected.getId());\n // then: la méthode findById du Repository associé est invoquée\n verify(ncService.getNoteCoursRepository()).findById(ncExpected.getId());\n }",
"@Test\n public void getCatalogSaleTest() {\n Integer id = null;\n // CatalogSale response = api.getCatalogSale(id);\n\n // TODO: test validations\n }",
"@Transactional(rollbackFor={Exception.class})\n\t@Override\n\tpublic FaqVO getFaqDetail(int no) {\n\t\tdao.updateView_cnt(no);\n\t\treturn dao.getFaqDetail(no);\n\t}",
"@Test\r\n public void getSalaTest() \r\n {\r\n SalaEntity entity = data.get(0);\r\n SalaEntity resultEntity = salaLogic.getSala(data.get(0).getId());\r\n Assert.assertNotNull(resultEntity);\r\n Assert.assertEquals(entity.getId(), resultEntity.getId());\r\n Assert.assertEquals(resultEntity.getNumero(), entity.getNumero());\r\n }",
"@Test\r\n public void testBuscaVendedor() throws Exception {\r\n System.out.println(\"BuscaVendedor\");\r\n ReportesController instance = new ReportesController();\r\n ArrayList<iVendedor> expResult = null;\r\n ArrayList<iVendedor> result = instance.BuscaVendedor();\r\n assertFalse(result.isEmpty());\r\n \r\n }",
"@Test\r\n public void elCerdoNoSePuedeAtender() {\n }",
"@Test\n public void getProductDetailTest() throws ApiException {\n String productId = null;\n \n ResponseBankingProductById response = api.getProductDetail( productId );\n response.toString();\n // TODO: test validations\n }",
"@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n Assert.assertEquals(entity.getNumTarjetaPrepago(), resultEntity.getNumTarjetaPrepago());\n Assert.assertEquals(entity.getSaldo(), resultEntity.getSaldo(), 0.001);\n Assert.assertEquals(entity.getPuntos(), resultEntity.getPuntos(),0.001);\n }",
"@Test\n void getAddressBook() {\n\n assertEquals(test_AddressBook, controllerTest.getModel());\n\n }",
"@Test\n public void getFormaPagoTest() {\n FormaPagoEntity entity = data.get(0);\n FormaPagoEntity resultEntity = formaPagoLogic.getFormaPagoPorCliente(cliente.getId(), entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n }",
"@Test\n public void getIndex(){\n\n }",
"@Test\r\n\tpublic void testLectureInfoMedecin() {\n\t\tMockitoAnnotations.initMocks(this);\r\n\t\t/**\r\n\t\t * S�nario de test : La demande de lecture de l'information d'un m�decin �\r\n\t\t * partir de son identifiant nous ram�ne la totalit� des informations de ses\r\n\t\t * caract�ristiques\r\n\t\t */\r\n\r\n\t\t// 3- Imposer un comportement au mock(stubber)\r\n\t\t// @Spy\r\n\t\tMedecin spiedMedecin = new Medecin(1, \"JJ\", \"KK\", \"adresse\", \"disponibilite\");\r\n\t\tMockito.when(this.dao.getMedecinById(1)).thenReturn(spiedMedecin);\r\n\r\n\t\t// 4- Appeler une m�thode du service\r\n\t\tMedecin medecin = service.lireUnMedecin(1);\r\n\r\n\t\t// 5- Comparer le r�sultat r�el avec le r�sultat attendu\r\n\t\tAssert.assertEquals(medecin.getId(), 1);\r\n\r\n\t\t// verifier l'appel et le nombre de fois\r\n\t\tMockito.verify(dao, Mockito.times(1)).getMedecinById(1);\r\n\t}",
"@Test\n public void testSelecionarItemTbViewPagamentos() {\n }",
"@Test\r\n public void testGetUtilizador() {\r\n System.out.println(\"getUtilizador\");\r\n CentroExposicoes ce = new CentroExposicoes();\r\n \r\n AlterarUtilizadorController instance = new AlterarUtilizadorController(ce);\r\n instance.getUtilizador(\"email@gmail.com\");\r\n }",
"@Test\r\n\tpublic void testContestant_Page() {\r\n\t\tnew Contestant_Page(myID, myEntryData);\r\n\t\t\r\n\t}",
"@Test\n\tpublic void testEditMedicine() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/edit-medicine?id=2&medicine_name=calpol\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200,response.getStatusCodeValue());\n\t}",
"@RequestMapping(value = \"/details\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Detail> getAllDetails() {\n log.debug(\"REST request to get all Details\");\n List<Detail> details = detailRepository.findAll();\n return details;\n }",
"@Test\n public void testGetPagamentos() {\n }",
"public static boolean testDaoLirePraticien() {\n boolean ok = true; \n ArrayList<Praticien> lesPraticiens = new ArrayList<Praticien>();\n try {\n lesPraticiens = daoPraticien.getAll();\n } catch (Exception ex) {\n ok = false;\n }\n System.out.println(\"liste des praticiens\");\n for (Praticien unPraticien: lesPraticiens){\n System.out.println(unPraticien);\n }\n return ok;\n \n }",
"@Test\n public void testEjemplaresPrestados() {\n System.out.println(\"EjemplaresPrestados\");\n Libro libro = new LibrosList().getLibros().get(0);\n BibliotecarioController instance = new BibliotecarioController();\n Map<Ejemplar, List<Usuario>> expResult = new HashMap<>();\n List<Usuario> usuarios = new ArrayList<>();\n usuarios.add(new UsuariosList().getUsuarios().get(0));\n expResult.put(new EjemplaresList().getEjemplares().get(0), usuarios);\n Map<Ejemplar, List<Usuario>> result = instance.EjemplaresPrestados(libro);\n assertEquals(expResult, result);\n System.out.println(result);\n }",
"@RequestMapping(value = \"/detail/{runnerId}\")\n\tpublic ModelAndView ictDetail(@PathVariable int runnerId) throws SQLException, IOException {\n\t\tModelAndView mav = new ModelAndView(\"ict/detail\");\n\t\tmav.addObject(\"rc\", rs.findDetail(runnerId));\n\t\treturn mav;\n\t}",
"@Test\r\n public void testRetrieveNull() {\r\n\r\n assertNull(instance.retrieve(paymentDetail1));\r\n }",
"public String getDetail_id() {\n return detail_id;\n }",
"@Test\n public void ShowPrenotazioniRespEnteTest(){\n ServletContext ctx = Mockito.mock(ServletContext.class);\n Mockito.when(ctx.getAttribute(\"db\")).thenReturn(ActionSetupDB.mockConnection);\n Mockito.when(mockReq.getServletContext()).thenReturn(ctx);\n Mockito.when(mockReq.getSession()).thenReturn(mockSession);\n Mockito.when(mockReq.getSession().getAttribute(\"adminEnte\")).thenReturn(new ResponsabileEnte(1, \"nome\", \"cognome\", \"email\", \"username\", \"password\"));\n spre = new MostraPrenotazioniRespEnte();\n String page = this.spre.execute(mockReq,mockRes);\n assertEquals(\"/WEB-INF/views/prenotazioniRespEnte.jsp\",page);\n }",
"@RequestMapping(value = \"/retrieveInfo\", method = RequestMethod.GET)\n\tpublic ModelAndView retrievePatientsInfo() {\n\t\t\n\t\t\n\t\n\t\t\n\t\tlogger.info(\"Retrieve 1 :\");\n\t\t\n\t\t patientDetailsProcessor.retrieveInfoByEmailId();\n\t\t\n\t\treturn new ModelAndView(\"success\");\n\t}",
"@Override\r\n public void getSelldetailInfo() {\r\n mApiService.getSelldetailInfo(\"45\",\"1080X1920\",\"armeabi-v7a\",\"7.0\"\r\n ,\"862007036501106\",\"meizu\",\"66f15ddba76d11fadb4c63da0b3ba0aa\",\"3.0\",\r\n \"879\",\"a4:44:d1:41:f3:14\",\"45\",\"3.9.6.0\",\"m3 note\"\r\n ,\"app_tg\")\r\n .subscribeOn(Schedulers.io())\r\n .observeOn(AndroidSchedulers.mainThread())\r\n .subscribe(new Subscriber<SellDetailInfoEntity>() {\r\n @Override\r\n public void onCompleted() {\r\n Logger.d(\"getSelldetailInfo onCompleted------------->\");\r\n }\r\n @Override\r\n public void onError(Throwable e) {\r\n Logger.d(\"getSelldetailInfo onError------------->\");\r\n e.printStackTrace();\r\n }\r\n @Override\r\n public void onNext(SellDetailInfoEntity sellDetailInfoEntity) {\r\n Logger.d(\"getSelldetailInfo onNext------------->\");\r\n mView.onDisplaySelldetailInfo(sellDetailInfoEntity);\r\n }\r\n });\r\n }",
"@Test\n public void contextLoads() {\n List<UserInfo> userInfos = new ArrayList<UserInfo>();\n userInfos = userInfoController.getUserList();\n System.out.println(userInfos);\n/* assertTrue(userInfos.size()>0);*/\n/* UserInfo userInfo = new UserInfo();\n userInfo = userInfoController.getUserByUserId(1);\n System.out.println(userInfo.toString());*/\n\n\n }",
"@Test\n\tpublic void testGetTravel() throws DBException{\n\t\tMyProfileController controller = new MyProfileController();\n\t\tMiniTravelBean bean = controller.getTravel(76);\n\t\tboolean equal = true;\n\t\tif(bean.getId()!=76) {\n\t\t\tequal=false;\n\t\t}\n\t\tif(!bean.getNameTravel().equals(\"San Valentino paris\")) {\n\t\t\tequal = false;\n\t\t}\n\t\tassertEquals(equal,true);\n\t}",
"@Test\n void getByIdSuccess() {\n logger.info(\"running getByID test\");\n User retrievedUser = (User)genericDao.getById(2);\n\n assertEquals(\"BigAl\", retrievedUser.getUserName());\n assertEquals(\"Albert\", retrievedUser.getFirstName());\n assertEquals(2, retrievedUser.getId());\n assertEquals(\"Einstein\", retrievedUser.getLastName());\n assertEquals(\"11223\", retrievedUser.getZipCode());\n assertEquals(LocalDate.of(1879,3,14), retrievedUser.getBirthDate());\n\n }"
] | [
"0.7525109",
"0.6655488",
"0.6616222",
"0.657604",
"0.64107096",
"0.6293393",
"0.62584066",
"0.6257977",
"0.62135345",
"0.61686695",
"0.61212033",
"0.61189175",
"0.61129785",
"0.6050284",
"0.60083085",
"0.6001666",
"0.59943604",
"0.59936976",
"0.5984586",
"0.5977154",
"0.59728944",
"0.5970659",
"0.59673774",
"0.59673774",
"0.5958684",
"0.5952486",
"0.59037614",
"0.59029007",
"0.5887805",
"0.58693945",
"0.58693945",
"0.5865471",
"0.5864077",
"0.58535045",
"0.585141",
"0.5835979",
"0.5820119",
"0.5819469",
"0.58128905",
"0.5807757",
"0.5807757",
"0.5807757",
"0.5807757",
"0.5794358",
"0.579079",
"0.57850176",
"0.57765865",
"0.5769971",
"0.5758765",
"0.5746183",
"0.5743261",
"0.5742254",
"0.57391256",
"0.57360023",
"0.5733351",
"0.5732155",
"0.57308364",
"0.57308364",
"0.57308364",
"0.56952184",
"0.56945425",
"0.56921107",
"0.5690069",
"0.5689788",
"0.5687145",
"0.56871307",
"0.567274",
"0.5669659",
"0.5665715",
"0.5664294",
"0.56510866",
"0.56496096",
"0.5646838",
"0.56433105",
"0.5608117",
"0.56078035",
"0.5607187",
"0.560684",
"0.5603472",
"0.55960876",
"0.55934167",
"0.5592435",
"0.5590269",
"0.5588385",
"0.5582969",
"0.55768263",
"0.55728775",
"0.55633456",
"0.556188",
"0.5548854",
"0.5546129",
"0.5545459",
"0.55390483",
"0.55345273",
"0.5532371",
"0.5531698",
"0.55284977",
"0.55198854",
"0.55184436",
"0.55153733"
] | 0.8234796 | 0 |
TODO Autogenerated method stub | @Override
public Integer call() throws Exception {
return ps.executeUpdate(); // TDOD release resources
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Used to store the yCoordinate of the animal Empty argument constructor initializes the variables | public Location() {
xCoord=0;
yCoord=0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setY(int y) { loc.y = y; }",
"public int getY() { return y;}",
"public int getY() { return y;}",
"public int getY() { return y; }",
"public int getY() { return y; }",
"public void setY(int y) { this.y=y; }",
"public int getY() {return y;}",
"public void setY(int y){ yPosition = y; }",
"public int getY(){ return yPosition; }",
"public int getY() { return loc.y; }",
"public int getYCoordinate ()\n {\n return yCoordinate;\n }",
"public Location(int x, int y)\n {\n this.x = x;\n this.y = y;\n }",
"public Coordinates(int x, int y){\n this.x = x;\n this.y = y;\n }",
"void setY(int y) {\n this.y = y;\n }",
"public Coordinates(int x, int y)\r\n {\r\n xCoord = x;\r\n yCoord = y;\r\n }",
"public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }",
"public double getY() { return y; }",
"public Coordinate(int x,int y)\n {\n this.x = x;\n this.y = y;\n }",
"City(){\n x_coordinate = (int)(Math.random()*200);\n y_coordinate = (int)(Math.random()*200);\n }",
"public Location(int x, int y) {\r\n\t\txCoord = x;\r\n\t\tyCoord = y;\r\n\t}",
"public Location(int x, int y)\r\n {\r\n\r\n //this basically makes a new location...it's a constructor\r\n //\"this\" refers to the instance of this class...meaning the instance\r\n //variables. This is saying that the instance variable \"x\" will be\r\n //updated to the value of x that is passed into as a parameter of\r\n //this function. This pretty much makes this a constructor method.\r\n this.x = x;\r\n this.y = y;\r\n\r\n }",
"public Position( int xCoordinate, int yCoordinate ) {\n xPosition = xCoordinate;\n yPosition = yCoordinate;\n }",
"public void setY(int y){\n\t\tthis.y_location = y;\n\t}",
"public int getY() { return (int)y; }",
"public void setY(int y){\n this.y = y;\n }",
"public void setY(int y){\n this.y = y;\n }",
"public void setY(int y){\n this.y = y;\n }",
"public int getY(){\n return y;\n }",
"public int getY(){\n return y;\n }",
"public int getY(){\n return y;\n }",
"public XYValue(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public int get_Y_Coordinate()\n {\n return currentBallY;\n }",
"public Location(int x, int y) {\n\t\t\n\t\tthis.xCoord=xCoord;\n\t\tthis.yCoord=yCoord;\n\t\t\n\t}",
"public int setObjYCoord() {\n\t\tint objY = ThreadLocalRandom.current().nextInt(1, getRoomLength() - 1);\r\n\t\treturn objY;\r\n\t}",
"public int getY(){\n return this.y;\n }",
"public int getY(){\n return this.y;\n }",
"public int getY(){\n return this.y;\n }",
"public City(int x, int y){\n this.x = x;\n this.y = y;\n }",
"public int getY()\n {\n \t return _y;\n }",
"public int getY()\r\n {\r\n return yCoord;\r\n }",
"public final double getY() { return location.getY(); }",
"public Coordinate(int x, int y, int identity){\r\n\t\tsuper(x,y);\r\n\t\tthis.identity = identity;\r\n\t}",
"public int getY()\r\n {\r\n return myY;\r\n }",
"public Coordinate() {\n this.xCoordinate = -1;\n this.yCoordinate = -1;\n }",
"public int getY()\r\n {\r\n return yLoc;\r\n }",
"public Position(double x, double y) {\n\t\txCoord = x;\n\t\tyCoord = y;\n\t}",
"public final int getY()\n{\n\treturn _y;\n}",
"public void setY(int y)\n {\n this.y = y;\n }",
"@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public double getYCoordinates() { return yCoordinates; }",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public int getY() {\n return this.coordinate.y;\n }",
"public City(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void setY(int y) {\n this.y = y;\r\n }",
"public Monster(int x,int y){\n\tposition[0] = x; //x position\n\tposition[1] = y; //y position\n }",
"public VariablePoint2(double x, double y){\n super(x, y);\n this.x = x;\n this.y = y;\n }",
"public int getY() {\n return yCoord;\n }",
"public Location(int x, int y)\n\t{\n\t\tmX = x;\n\t\tmY = y;\n\t}",
"public int getY() {\n return y;\n }",
"public int getY() {\n return y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"public void setY(int y) {\n this.y = y;\n }",
"public int getY() {\n return y;\r\n }",
"public int getY() {\n\treturn baseYCoord;\n}",
"int getY_coordinate(){\n return y_coordinate;\n }",
"public Position2D(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public int getyCoordinate() {\n return yCoordinate;\n }",
"public int getyCoordinate() {\n return yCoordinate;\n }",
"posXY(int x, int y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public int getY() {\n return this.y;\n }",
"public int getY() {\r\n return ypos;\r\n }",
"@java.lang.Override\n public long getY() {\n return instance.getY();\n }",
"public void setyCoordinate(int yCoordinate) {\n this.yCoordinate = yCoordinate;\n Random placeGenerator = new Random();\n\n xCoordinate = placeGenerator.nextInt(gameActivity.getScreenWidth() - getRawEnemyShip().getWidth());\n }",
"public int getY(){\r\n\t\treturn y;\r\n\t}",
"@Override\n public void setY(int y) {\n this.y=y;\n }",
"public int getY() {\r\n\t\treturn ycoord;\r\n\t}",
"public int getY()\n {\n return y;\n }",
"public int getY()\n {\n return y;\n }",
"public void setY(int y) {\n\tbaseYCoord = y;\n}",
"public double getY(){\n return this.y;\n }",
"public void setStartY(double y)\n {\n startycoord=y; \n }",
"private SquareCoordinate(int x, int y)\n {\n \tthis.x = x;\n \tthis.y = y;\n }",
"public int y() {\r\n\t\treturn yCoord;\r\n\t}",
"public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}",
"public int getY() {\r\n return y;\r\n }",
"public int getY() {\r\n return y;\r\n }",
"public void setY(int value) {\n this.y = value;\n }",
"Coordinate(int Xposition, int Yposition) {\n\t\tthis.X = Xposition;\n\t\tthis.Y = Yposition;\n\n\t}",
"public int getY(){\n\t\treturn y;\n\t}",
"public int getY(){\n\t\treturn y;\n\t}",
"public double getY() { return _height<0? _y + _height : _y; }",
"int getY() {\n return yPos;\n }",
"public double getY(){\r\n return y;\r\n }",
"public double getY(){\n return y;\n }",
"public City(){\n this.x = (int)(Math.random()*200);\n this.y = (int)(Math.random()*200);\n }",
"int getY() {\n return y;\n }",
"int getY() {\n return y;\n }",
"int getY() {\n return y;\n }"
] | [
"0.67702746",
"0.67048347",
"0.67048347",
"0.6701455",
"0.6701455",
"0.66593415",
"0.66565907",
"0.6591783",
"0.6585569",
"0.6569101",
"0.65108025",
"0.6495188",
"0.64610416",
"0.6458293",
"0.64306086",
"0.64267725",
"0.64182156",
"0.64178324",
"0.640901",
"0.6393537",
"0.63886255",
"0.6383894",
"0.6380881",
"0.63756275",
"0.636917",
"0.636917",
"0.636917",
"0.63636667",
"0.63636667",
"0.63636667",
"0.6359881",
"0.63582927",
"0.6356551",
"0.6356161",
"0.634826",
"0.634826",
"0.634826",
"0.63390815",
"0.63359284",
"0.6333379",
"0.6323957",
"0.63211805",
"0.632117",
"0.63188505",
"0.63135016",
"0.6305972",
"0.6305196",
"0.63040143",
"0.63036877",
"0.62948734",
"0.629131",
"0.6283879",
"0.62824667",
"0.6277906",
"0.6274329",
"0.6267135",
"0.62630373",
"0.62534904",
"0.62452155",
"0.62440634",
"0.62440634",
"0.6240658",
"0.6240658",
"0.6240658",
"0.6217086",
"0.62163836",
"0.6209766",
"0.62054986",
"0.62049955",
"0.62049955",
"0.62045157",
"0.6204278",
"0.62010026",
"0.6196655",
"0.61922246",
"0.6192041",
"0.6191706",
"0.6191548",
"0.61773306",
"0.61773306",
"0.6170697",
"0.6168956",
"0.61616886",
"0.61553824",
"0.6151464",
"0.615022",
"0.6145252",
"0.6145252",
"0.61423546",
"0.6139975",
"0.61392224",
"0.61392224",
"0.61378425",
"0.61366683",
"0.61330557",
"0.6124301",
"0.61226344",
"0.6121236",
"0.6121236",
"0.6121236"
] | 0.6306684 | 45 |
end emptyargument constructor The preferred constructor sets the x and y coordinate variables equal to what is currently being executed. | public Location(int x, int y) {
this.xCoord=xCoord;
this.yCoord=yCoord;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Shape() { this(X_DEFAULT, Y_DEFAULT); }",
"public Coordinate() { row = col = -1; }",
"public Coordinate() {\n this.xCoordinate = -1;\n this.yCoordinate = -1;\n }",
"public Coordinates(int x, int y)\r\n {\r\n xCoord = x;\r\n yCoord = y;\r\n }",
"public Coordinate(int x,int y)\n {\n this.x = x;\n this.y = y;\n }",
"protected Coord() {\n\t}",
"public Point()\r\n\t{\r\n\t\tx = y = 0;\r\n\t}",
"public HorizontalCoords() {\n }",
"public Coordinate(double x, double y) {\r\n this(x, y, Double.NaN, Double.NaN);\r\n }",
"Point(int x_, int y_){\n x = x_;\n y = y_;\n }",
"@SuppressWarnings(\"unused\")\n public Coordinate() {}",
"public Coordinates(int x, int y){\n this.x = x;\n this.y = y;\n }",
"public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }",
"public Coordinate(int x, int y, int identity){\r\n\t\tsuper(x,y);\r\n\t\tthis.identity = identity;\r\n\t}",
"public Coordinates() {\n\t\t\n\t\txPosition = 0;\t\t\t// Sets the x integer to zero\n\t\tyPosition = 0;\t\t\t// Sets the y integer to zero\n\t}",
"public Location() {\n\t\t\n\t\txCoord=0;\n\t\tyCoord=0;\n\t\t\n\t}",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}",
"public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"Punto(){\r\n x=0;\r\n y=0;\r\n }",
"public Point(int x, int y)\n\t{\n\t\t// Instantiate properties with parameter values \n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public Shape(int x, int y) {\n\t\tthis(x, y, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}",
"public Point2d() {\r\n\t // Call two-argument constructor and specify the origin.\r\n\t\t this(0, 0);\r\n\t\t System.out.println(\"Point2d default initiializing\");\r\n\t }",
"public Position( int xCoordinate, int yCoordinate ) {\n xPosition = xCoordinate;\n yPosition = yCoordinate;\n }",
"public Position(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public PositionComponent(float x, float y) {\n\t\tthis(x, y, 0);\n\t}",
"public Position(double x, double y) {\n\t\txCoord = x;\n\t\tyCoord = y;\n\t}",
"public Coordinates(int x, int y) {\n\t\t\n\t\txPosition = x;\t\t\t// Assigns the x integer\n\t\tyPosition = y;\t\t\t// Assigns the y integer\n\t}",
"public Location(int x, int y) {\r\n\t\txCoord = x;\r\n\t\tyCoord = y;\r\n\t}",
"public Location(int x, int y)\n {\n this.x = x;\n this.y = y;\n }",
"Rectangle()\n {\n this(1.0,1.0);\n }",
"public MyPoint1 (double x, double y) {}",
"public Location(int x, int y)\r\n {\r\n\r\n //this basically makes a new location...it's a constructor\r\n //\"this\" refers to the instance of this class...meaning the instance\r\n //variables. This is saying that the instance variable \"x\" will be\r\n //updated to the value of x that is passed into as a parameter of\r\n //this function. This pretty much makes this a constructor method.\r\n this.x = x;\r\n this.y = y;\r\n\r\n }",
"public Point(int x, int y){\n this.x = x;\n this.y = y;\n }",
"public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }",
"public Point2D()\n {\n this.x = this.y = 0f;\n }",
"public Point(int x, int y)\r\n\t{\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public Point(){\n this.x = 0;\n this.y = 0;\n }",
"public Point(int x, int y) {\n\t\tsuper();\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"Point() {\n this.x = 0;\n this.y = 0;\n }",
"public DrawCommand() {\n\t\tcommand = null;\n\t\targs1 = null;\n\t\targs2 = null;\n\t}",
"public Point(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public Point(double x, double y){\n\t\tsuper();\n\t\tthis.x = x; \n\t\tthis.y = y;\n\t}",
"public Point(int x, int y) {\r\n\t\tthis.x = x;\tthis.y = y;\r\n\t}",
"public Point(int x, int y){\n\t\tthis.x=x; this.y=y;\n\t}",
"public Point() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}",
"public Location()\n\t{\n\t\tline = -1;\n\t\tcolumn = -1;\n\t}",
"public Location(int x, int y)\n\t{\n\t\tmX = x;\n\t\tmY = y;\n\t}",
"public Point(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public Coordinate(int x, int y, int data){\r\n this.x = x;\r\n this.y = y;\r\n this.data = data;\r\n }",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n }",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n }",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n }",
"public Coord(Double x, Double y) {\n\t\tsetX(x);\n\t\tsetY(y);\n\t}",
"public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}",
"public Point(int x,int y){\r\n\t\tthis.pos = x;\r\n\t\tthis.id = y;\r\n\t}",
"Point() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}",
"public MyPoint1(double x, int y) {\n this.x = x;\n this.y = y;\n }",
"public Point(int x, int y){\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public Rectangle() {\n this(50, 40);\n }",
"public Point(double x, double y) {\n this.xPosition = x;\n this.yPosition = y;\n }",
"public Position(int p_X, int p_Y)\n {\n this.x = p_X;\n this.y = p_Y;\n }",
"private SquareCoordinate(int x, int y)\n {\n \tthis.x = x;\n \tthis.y = y;\n }",
"public Worker(int x, int y, int size) {\n super(x, y, size);\n// this.x = x;\n// this.y = y;\n// this.size = size;\n }",
"public Point(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public Point(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public Point(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"protected Point(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}",
"public Command() {\n this.arguments = new String[0];\n }",
"public Critter(int x, int y){\n\t\tthis.x_location = x;\n\t\tthis.y_location = y;\n\t\tthis.wrap();\n\t}",
"public Point(double x, double y){\n this.x = x;\n this.y = y;\n }",
"public Point(int xcoord, int ycoord)\n\t{\n\t\tthis.x= xcoord;\n\t\tthis.y= ycoord;\n\t\tcountOfPoints++;\n\t}",
"Point()\n\t{\n\t\t//default point\n\t\t//this = properties of this object we are working with\n\t\tthis.x=0;\n\t\tthis.y=0;\n\t\tcountOfPoints++;\n\t}",
"public Point(int y, int x)\n\t\t{\n\t\t\tthis.y = y;\n\t\t\tthis.x = x;\n\t\t}",
"public Spaceship(int x, int y)\r\n\t{\r\n\t\tsuper(x, y);\r\n\t}",
"public Ninja(int x, int y)\r\n {\r\n super(x, y, 5);\r\n }",
"private GoodPoint(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"public Entity( int x, int y){\n this.x = x;\n this.y = y;\n }",
"public Point(double x, double y) {\r\n\t\t//Constructors\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}",
"public Coordinate(final Coordinate c) { row = c.row; col = c.col; }",
"public Position() {\n xCoord = 0;\n yCoord = 0;\n zCoord = 0;\n }",
"Coordinate(int Xposition, int Yposition) {\n\t\tthis.X = Xposition;\n\t\tthis.Y = Yposition;\n\n\t}",
"public GridPosition(int x, int y) {\n this.posX = x;\n this.posY = y;\n }",
"public Position() {\n\n\t}",
"public Point(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public Wall(int x, int y)\r\n\t{\r\n\t\tsuper(x,y);\r\n\t}",
"public VariablePoint2(double x, double y){\n super(x, y);\n this.x = x;\n this.y = y;\n }",
"PointDouble() {\n x = y = 0.0;\n }",
"public Titik(){\r\n this.x = 0;\r\n this.y = 0;\r\n }",
"public Piste(int x, int y){\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t}",
"public End_position(int x, int y){\n super(x, y);\n this.destinationX = x;\n\n loadImage(\"end_position.PNG\");\n getImageDimension();\n }",
"protected Place(float x, float y) {\n position = new PointF(x, y);\n }",
"public Figure(int x, int y) {\n this.x = x;\n this.y = y;\n }",
"public Rectangle() {\n x = 0;\n y = 0;\n width = 0;\n height = 0;\n }",
"public Place(int x, int y){\n this.x=x;\n this.y=y;\n isFull=false;\n }",
"public XYPointFloat()\r\n\t{\r\n\t\tthis(0, 0);\r\n\t}",
"public Point(double xCoordinate, double yCoordinate){\r\n\t\tthis.xCoordinate = xCoordinate;\r\n\t\tthis.yCoordinate = yCoordinate;\r\n\t}",
"public Point(int x, int y) {\n /* DO NOT MODIFY */\n this.x = x;\n this.y = y;\n SLOPE_ORDER = new SlopeOrder();\n }",
"public PlantingHarvester(int x, int y)\n {\n super(x, y);\n }",
"public Coordinate(double xCoordinate, double yCoordinate) {\n this.xCoordinate = xCoordinate;\n this.yCoordinate = yCoordinate;\n }"
] | [
"0.70846164",
"0.68762255",
"0.6812452",
"0.6781406",
"0.6763588",
"0.6762958",
"0.6755626",
"0.67414284",
"0.6741321",
"0.6738132",
"0.67345536",
"0.6715856",
"0.66596496",
"0.6652229",
"0.6646096",
"0.6588026",
"0.65702814",
"0.65671635",
"0.65476704",
"0.6543448",
"0.65385914",
"0.652043",
"0.6516725",
"0.6482066",
"0.6471019",
"0.6470469",
"0.6462443",
"0.6460554",
"0.64603907",
"0.6460006",
"0.64514416",
"0.64448005",
"0.64254457",
"0.642236",
"0.64206797",
"0.63776565",
"0.6373989",
"0.6373004",
"0.6363801",
"0.6358713",
"0.6354085",
"0.63523424",
"0.63358206",
"0.63239205",
"0.6303688",
"0.6301272",
"0.6288924",
"0.62779665",
"0.6270251",
"0.6264359",
"0.62597585",
"0.62597585",
"0.62597585",
"0.6255417",
"0.6247131",
"0.62409806",
"0.6234937",
"0.62157923",
"0.6212184",
"0.6209198",
"0.6194331",
"0.61790526",
"0.6176648",
"0.6170474",
"0.61627895",
"0.61627895",
"0.61627895",
"0.6158422",
"0.6156337",
"0.6152473",
"0.61512053",
"0.61402214",
"0.6139027",
"0.6136414",
"0.6132626",
"0.6129302",
"0.6127595",
"0.6097278",
"0.6094272",
"0.60899395",
"0.60845137",
"0.607577",
"0.6071057",
"0.6066291",
"0.6058105",
"0.60523885",
"0.60516065",
"0.6051538",
"0.6047581",
"0.6043607",
"0.6037833",
"0.6037741",
"0.6034475",
"0.6029747",
"0.6025582",
"0.6021631",
"0.60156757",
"0.60113597",
"0.6006818",
"0.60034627"
] | 0.63244665 | 43 |
ends the preferred constructor The update method updates the coordinates to what they are being changed to and does error checking to try to prevent the user from setting the points outside of the bounds. | public void update(int x, int y) {
InvalidCoordinateException ice = new InvalidCoordinateException("Coordinates cannot be less than 0!");
try {
if(x>=0) {
x=xCoord;
}else {
throw ice;
}//ends else
if(y>=0) {
y=yCoord;
}else {
throw ice;
}//ends else
}catch(InvalidCoordinateException s) {
System.out.println(s.getMessage());
}//ends catch block
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}",
"public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }",
"@Override\n\tpublic void update() {\n\t\tthis.setBounds(obstacle.getCoords().getX() * 64, obstacle.getCoords().getY() * 64, 64, 64);\n\t}",
"private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n }",
"public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }",
"@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}",
"public void updateBounds() {\n this.setBounds(left, top, width, height);\n }",
"protected void onBadCoords()\n\t{\n\t}",
"public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}",
"public Location() {\n\t\t\n\t\txCoord=0;\n\t\tyCoord=0;\n\t\t\n\t}",
"public void setLocation(Point2D p);",
"public abstract void setPosition(Point2D position);",
"public Point2D()\n {\n this.x = this.y = 0f;\n }",
"public void setPosition(Point newPosition);",
"@Override\r\n\tpublic void setBounds(int x, int y, int width, int height) {\r\n\t\tsuper.setBounds(x, y, width, height);\r\n\t\tpv.update();\r\n\t}",
"protected Coord() {\n\t}",
"@Override\n public void propertyChange(PropertyChangeEvent e) {\n this.updateCoords();\n }",
"public Coordinates() {\n\t\t\n\t\txPosition = 0;\t\t\t// Sets the x integer to zero\n\t\tyPosition = 0;\t\t\t// Sets the y integer to zero\n\t}",
"public Coordinate() { row = col = -1; }",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }",
"public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }",
"public void updatePosition(float x, float y){\n rect = new Rectangle2D.Float(x,y,width,height);\n this.x = x;\n this.y = y;\n }",
"void onNewCoords(Coords coords);",
"public Coordinate() {\n this.xCoordinate = -1;\n this.yCoordinate = -1;\n }",
"void reconfigure() {\n computePosition(_primaryPlot.getScreenCoords(findCurrentCenterPoint()), false);\n }",
"public void updateYLoc();",
"@Override\n public void run()\n {\n PointsBinding.setScaling(false);\n property.setValue(points);\n property.getWidget().setPropertyValue(propX, x);\n property.getWidget().setPropertyValue(propY, y);\n property.getWidget().setPropertyValue(propWidth, width);\n property.getWidget().setPropertyValue(propHeight, height);\n PointsBinding.setScaling(true);\n }",
"private void updatePosition() {\n position.add(deltaPosition);\n Vector2[] points = getRotatedPoints();\n\n for (Vector2 point : points) {\n if (point.getX() < bound.getX() || point.getX() > bound.getX() + bound.getWidth()) { //If the point is outside of the bounds because of X\n position.addX(-deltaPosition.getX() * 2); //Undo the move so it is back in bounds\n deltaPosition.setX(-deltaPosition.getX()); //Make the direction it is going bounce to the other direction\n break;\n }\n if (point.getY() < bound.getY() || point.getY() > bound.getY() + bound.getHeight()) { //If the point is outside of the bounds because of Y\n position.addY(-deltaPosition.getY() * 2); //Undo the move so it is back in bounds\n deltaPosition.setY(-deltaPosition.getY()); //Make the direction it is going bounce to the other direction\n break;\n }\n }\n deltaPosition.scale(.98);\n }",
"void update(int[] xyPos) {\n this.x = xyPos[0];\n this.y = xyPos[1];\n }",
"public MovingPolygon() {\r\n\t\tsuper();\r\n\t}",
"@Override\n public Position setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n\n return new Position(x, y);\n }",
"@Override\r\n\tpublic void setMaxCoordinates() {\n\t\t\r\n\t}",
"public void setPosition(double x, double y)\n {\n mPosition = new Point2D.Double(x, y);\n }",
"public abstract void setPoint(Point p);",
"public void setLocation(float x, float y);",
"private void updateArrayListCoordinates() {\n this.coordinates = makeCoordinatesFromCenterCoordinate(centerPointCoordinate);\n }",
"protected void initialize() {\n \tsetSetpoint(0.0);\n }",
"public void setLocation(Coordinate coordinate);",
"public void updateHitbox() {\n\t\tresistorPosEnd = new Rectangle(x - 10, y - 10, 40, 40);\n\t\tresistorNegEnd = new Rectangle(x + 30, y, 40, 40);\n\t}",
"public void setStart() {\r\n // this code handles all events for squares\r\n int x1 = this.origin.getX(); //origin point is used to keep track\r\n int y1 = this.origin.getY(); //of where the rectangle was first pressed\r\n int x2 = this.end.getX();\r\n int y2 = this.end.getY();\r\n int L = this.length;\r\n\r\n if (x1 >= x2 && y1 >= y2) {\r\n this.start = new Point(x1 - L, y1 - L);\r\n } else if (x1 >= x2 && y1 <= y2) {\r\n this.start = new Point(x1 - L, y1);\r\n } else if (x1 <= x2 && y1 >= y2) {\r\n this.start = new Point(x1, y1 - L);\r\n } else if (x1 <= x2 && y1 <= y2) {\r\n this.start = new Point(x1, y1);\r\n }\r\n }",
"@Override\n public void setBounds(Rectangle bounds) {\n final Rectangle repaintBounds = new Rectangle(getBounds());\n\n final Rectangle newBounds = new Rectangle(ajustOnGrid(bounds.x),\n ajustOnGrid(bounds.y), ajustOnGrid(bounds.width), bounds.height);\n\n newBounds.width = newBounds.width < MINIMUM_SIZE.x ? MINIMUM_SIZE.x\n : newBounds.width;\n\n this.bounds = newBounds;\n\n parent.getScene().repaint(repaintBounds);\n parent.getScene().repaint(newBounds);\n\n // Move graphics elements associated with this component\n leftMovableSquare.setBounds(computeLocationResizer(0));\n rightMovableSquare.setBounds(computeLocationResizer(bounds.width));\n\n setChanged();\n notifyObservers();\n }",
"@Override\n public final void updateOrigin() {\n }",
"public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }",
"@Override\n\tpublic void SetCoord(double x, double y) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public CoordinateSystem() {\r\n\t\torigin = new GuiPoint(0, 0);\r\n\t\tzoomFactor = 1f;\r\n\t}",
"public void setXY(double anX, double aY) { setX(anX); setY(aY); }",
"@Override\n\tpublic void updatePosition() {\n\t\t\n\t}",
"void setPosition(double xPos, double yPos);",
"public void setXY(int newX, int newY)\n\t{\n\t\tx=newX; \n\t\ty=newY;\n\t\tboundingBox = new Rectangle(x,y,width,height);\n\t}",
"@Override\r\n\tpublic void updateParam() {\n\t\tmFisrtPoint = mFisrtObject.getCenter();\r\n\t\tgetParam().setMargins(\r\n\t\t\t\t(int) ((mEdgeFist.x + mEdgeEnd.x) / 2 - getParam().width / 2),\r\n\t\t\t\t(int) ((mEdgeFist.y + mEdgeEnd.y) / 2 - getParam().height / 2),\r\n\t\t\t\tgetParam().rightMargin, getParam().bottomMargin);\r\n\t\t((Activity) mContext).runOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tmLayout.requestLayout();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tmEndPoint = mEndObject.getCenter();\r\n\t\tgetEdge(mEdgeFist, mEdgeEnd, mFisrtPoint, mEndPoint);\r\n\t\tgetTriangle(0.02f);\r\n\t}",
"public void setFromCoordinates(int fromX, int fromY);",
"@Override\n public void setRectangle() {\n switch (direction){\n case 0:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 2:\n rectangle.setLocation((int)x+5,(int)y+8);\n break;\n case 1:\n rectangle.setLocation((int)x+13,(int)y+8);\n break;\n case 3:\n rectangle.setLocation((int)x+2,(int)y+8);\n break;\n }\n\n }",
"public void setXY(int x, int y)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate \n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}",
"public Point()\r\n\t{\r\n\t\tx = y = 0;\r\n\t}",
"public PointImpl( CoordinateSystem crs ) {\n super( crs );\n position = new PositionImpl();\n empty = true;\n centroid = this;\n }",
"public void setPosition(Point newPosition)throws IllegalArgumentException {\n\t\tif (newPosition.x < 0 || newPosition.y < 0 || newPosition.x > 30 || newPosition.y > 30){\n\t\t\tthrow new IllegalArgumentException();\n\t\t} else {\n\t\t\tthis.position = newPosition;\n\t\t}\n\t}",
"public void setPosition(Point position);",
"@Override\n\tpublic void setLocation(double x, double y) {\n\t\tdouble oldX = getX();\n\t\tdouble oldY = getY();\n\t\tdouble dx = x - oldX;\n\t\tdouble dy = y - oldY;\n\t\tfor (GPoint point : this) {\n\t\t\tpoint.translate(dx, dy);\n\t\t}\n\t\trepaint();\n\t}",
"public void updateBoundaries() {\n\t\t\n\t\tLOG.log(\"Updating boundaries.\");\n\t\t\n\t\tif (Program.WINDOW_MANAGER != null) {\n\t\t\t\n\t\t\tthis.setBounds(\n\t\t\t\tProgram.WINDOW_MANAGER.getScreenWidth() / 2 - this.getSize().width / 2,\n\t\t\t\tProgram.WINDOW_MANAGER.getScreenHeight() / 2 - this.getSize().height / 2,\n\t\t\t\tBOUNDS_LENGTH,\n\t\t\t\tBOUNDS_WIDTH\n\t\t\t);\n\t\t\tthis.setLocationRelativeTo(null);\n\t\t\t\n\t\t} else {\n\t\t\tthis.setBounds(10, 10, BOUNDS_LENGTH, BOUNDS_WIDTH);\n\t\t}\n\t}",
"public void validate()\n\t{\t\t\n\t\t// calculate the corner position\n\t\tsetCorner(\n\t\t\t\tcalculateCornerPosition(\n\t\t\t\t\t\tgetCentrePosition(),\n\t\t\t\t\t\tgetHorizontalSpanVector(),\n\t\t\t\t\t\tgetVerticalSpanVector()\n\t\t\t\t\t)\n\t\t\t);\n\t}",
"void setLocation(int x, int y);",
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"private void setEndLocation() {\n switch (direction) {\n case UP:\n case DOWN:\n componentToMove.setLocation(posX, Direction.UP == direction ? Math.min(endPosition, posY) : Math.max(endPosition, posY));\n break;\n default:\n componentToMove.setLocation(Direction.LEFT == direction ? Math.min(endPosition, posX) : Math.max(endPosition, posX), posY);\n }\n }",
"@Override\n\tpublic void update() {\n\t\t\n\t\tif(!this.explShowing)\n\t\t{\n\t\t\tx+= dx;\n\t\t\ty+= dy;\n\t\n\t\t\tif(x < 0)\n\t\t\t{\n\t\t\t\tx = 0;\n\t\t\t\tdx = dx *-1;\n\t\t\t}\n\t\t\telse\n\t\t\tif(x + w > MainGame.getInstance().X_WORLD_END)\n\t\t\t{\n\t\t\t\tx = MainGame.getInstance().X_WORLD_END - w ;\n\t\t\t\tdx = dx *-1;\t\n\t\t\t}\n\t\n\t\t\tif(y < 0)\n\t\t\t{\n\t\t\t\tthis.reset();\n\t\t\t}\n\t\t\telse\n\t\t\tif(y + h > MainGame.getInstance().Y_WORLD_END)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tthis.reset();\n\t\t\t}\n\t\t}\n\t\t\n\t\ts.update();\n\t\n\t\tif(this.explShowing)\n\t\t{\n\t\t\tif(expl.isHasFinished())\n\t\t\t{\n\t\t\t\texplShowing = false;\n\t\t\t\ts = this.normalImage;\n\t\t\t\tthis.x = this.xStart;\n\t\t\t\tthis.y = this.yStart;\n\t\t\t\ts.setX(this.xStart);\n\t\t\t\ts.setY(this.yStart);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//s.setX(x);\n\t\t//s.setY(y);\n\t\t\n\t\tthis.rect.setFrame(getX(),getY(),getW(),getH());\t\n\t}",
"public void setPosition(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void setCoordinates(double[] pos) {\n \tthis.currentX = pos[0];\n \tthis.currentY = pos[1];\n }",
"@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}",
"@Override\n\tpublic void update(){\n\t\tif(!isPositionValid())\n\t\t\tescape();\n\t\tdouble dx = velocity.x * speed;\n\t\tdouble dy = velocity.y * speed;\n\t\tprojectedCenter.setLocation(center.x + dx, center.y + dy);\n\t\t//check other ball collisions\n\t\tboolean aloneFlag = true;\n\t\tfor(Ball other : Game.gameField.getBalls()){\n\t\t\tif(other == this)\n\t\t\t\tcontinue;\n\t\t\tcheckCollision(other);\n\t\t\tif(quadrant.equals(other.getQuadrant())){\n\t\t\t\taloneFlag = false;\n\t\t\t}\n\t\t}\n\t\tisAlone = aloneFlag;\n\t\t//check wall collisions\n\t\tfor(Wall wall : Game.gameField.getWalls()){\n\t\t\twall.checkCollision(this, projectedCenter);\n\t\t}\n\t\t//check boundary collisions\n\t\tGame.gameField.checkBoundaryCollision(this, projectedCenter);\n\t\t//collisions may have changed the velocity vector\n\t\tdx = velocity.x * speed;\n\t\tdy = velocity.y * speed;\n\t\tmove(dx, dy);\n\t\t//check if the move is valid, if not move back\n\t\tif(!isPositionValid()){\n\t\t\tmove(-dx, -dy);\n\t\t}\n\t\tquadrant = Calculations.getQuadrant(center, Game.gameField.getWalls());\n\t}",
"@Override public void setPosition(double nx, double ny) {\n super.setPosition(nx, ny);\n ppx = px = nx;\n ppy = py = ny;\n }",
"public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}",
"void updatePosition() {\n if (gameScreen.cursorIsOnLeft()) \n {\n // set the panel's rightmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 11/12 - getWidth(), \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n else // Otherwise the cursor must be on the right half of the screen\n {\n // set the panel's leftmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 1/12, \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n }",
"private synchronized void update() {\n nPoints++;\n int n = points.size();\n if (n < 1) {\n return;\n }\n PathPoint p = points.get(points.size() - 1); // take last point\n if (p.getNEvents() == 0) {\n return;\n }\n if (n > length) {\n removeOldestPoint(); // discard data beyond range length\n }\n n = n > length ? length : n; // n grows to max length\n float t = p.t - firstTimestamp; // t is time since cluster formed, limits absolute t for numerics\n st += t;\n sx += p.x;\n sy += p.y;\n stt += t * t;\n sxt += p.x * t;\n syt += p.y * t;\n// if(n<length) return; // don't estimate velocityPPT until we have all necessary points, results very noisy and send cluster off to infinity very often, would give NaN\n float den = (n * stt - st * st);\n if (den != 0) {\n valid = true;\n xVelocity = (n * sxt - st * sx) / den;\n yVelocity = (n * syt - st * sy) / den;\n } else {\n valid = false;\n }\n }",
"public void moveToLastAcceptableLocation(){\n\t\tthis.x=this.xTemp;\n\t\tthis.y=this.yTemp;\n\t}",
"public void newCoord() {\n\t\tx = Data.generateRandomX();\n\t\ty = Data.generateRandomY();\n\t}",
"@Override\n\tpublic void update(double elapsedTime, Dimension bounds) {\n\t\tsuper.update(elapsedTime, bounds);\n\t}",
"private void internalSetPoints(List<Point2D> inputPoints, \n List<Point2D> outputPoints) {\n if (inputPoints.size() < getMinimumPoints()) {\n throw new IllegalArgumentException();\n }\n if (inputPoints.size() != outputPoints.size()) {\n throw new IllegalArgumentException();\n }\n mInputPoints = inputPoints;\n mOutputPoints = outputPoints; \n }",
"void setPosition(Point point);",
"@Override\n public void setPosition(float x, float y) {\n }",
"void setPos(float x, float y);",
"@Override public void begin() {\n horizontalCorner = new Location( 0, 200 );\n verticalCorner = new Location( 200, 0 );\n }",
"public Coordinates(int x, int y){\n this.x = x;\n this.y = y;\n }",
"public PointImpl( double x, double y, CoordinateSystem crs ) {\n super( crs );\n position = new PositionImpl( x, y );\n empty = false;\n centroid = this;\n }",
"Point() {\n this.x = 0;\n this.y = 0;\n }",
"private void updatePointsPosition() {\n\t\tfor (DataFromPointInfo dataFromPointInfo : fromPoints) {\n\t\t\tDataFromPoint fromPoint = dataFromPointInfo.fromPoint;\n\t\t\tfromPoint.setX((int) (getX() + this.getBounds().getWidth()\n\t\t\t\t\t+ HORIZONTAL_OFFSET));\n\t\t\tfromPoint.setY((int) (getY() + this.getRowHeight() / 2\n\t\t\t\t\t+ this.getRowHeight() * dataFromPointInfo.yShift));\n\t\t}\n\t\tfor (DataToPointInfo dataToPointInfo : toPoints) {\n\t\t\tDataToPoint toPoint = dataToPointInfo.toPoint;\n\t\t\ttoPoint.setX((int) (getX() - HORIZONTAL_OFFSET));\n\t\t\ttoPoint.setY((int) (getY() + this.getRowHeight() / 2\n\t\t\t\t\t+ this.getRowHeight() * dataToPointInfo.yShift));\n\t\t}\n\t}",
"public void setLocation(Vector location);",
"public void setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n }",
"@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}",
"public Position() {\n xCoord = 0;\n yCoord = 0;\n zCoord = 0;\n }",
"public void setLocation(int x, int y){\n if(x < 0 || x > 19 || y < 0 || y > 19){\n // The user has tried to move outside the bounds of the world, so\n // we call the die() method which causes the Player to die.\n die();\n } else {\n // The user is trying to move within the bounds of the world. Run\n // the Actor class' own setLocation() method to move the Player.\n super.setLocation(x, y);\n }\n }",
"@Override\n\tpublic void setBounds(int x, int y, int width, int height) {\n\t\t\n\t\t\n\t\tsuper.setBounds(x, y, width, height);\n\t}",
"public void updateLocation();",
"public void colapse(){\n\t\tsetBounds(getX(), getY(), getDefaultWidth(), getHeight());\n\t\tcollisionBounds.setWidth(getDefaultWidth());\n\t}",
"private void configureLocation() {\n radius = size / 2;\n circleX = bounds.left + radius;\n circleY = bounds.top + radius;\n }",
"void setXandY(double x, double y){\r\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t}",
"public Rectangle() {\n\t\tthis.corner = new Point();\n\t\tthis.size = new Point();\n\t}",
"public Coordinates(int x, int y)\r\n {\r\n xCoord = x;\r\n yCoord = y;\r\n }",
"public Location(int x, int y)\r\n {\r\n\r\n //this basically makes a new location...it's a constructor\r\n //\"this\" refers to the instance of this class...meaning the instance\r\n //variables. This is saying that the instance variable \"x\" will be\r\n //updated to the value of x that is passed into as a parameter of\r\n //this function. This pretty much makes this a constructor method.\r\n this.x = x;\r\n this.y = y;\r\n\r\n }",
"public Point2d() {\r\n\t // Call two-argument constructor and specify the origin.\r\n\t\t this(0, 0);\r\n\t\t System.out.println(\"Point2d default initiializing\");\r\n\t }",
"PointDouble() {\n x = y = 0.0;\n }",
"public MyPoint1 (double x, double y) {}",
"public BoundsUserSpace(double x, double y, double w, double h) {\n super(x, y, w, h);\n }"
] | [
"0.642374",
"0.62751704",
"0.6113422",
"0.60633177",
"0.6034647",
"0.6001072",
"0.59243834",
"0.59036165",
"0.5855592",
"0.58161086",
"0.57810926",
"0.5775649",
"0.5765212",
"0.57554203",
"0.5737906",
"0.5705673",
"0.5699364",
"0.5694502",
"0.5682807",
"0.5678658",
"0.56755435",
"0.5671115",
"0.56595194",
"0.5654136",
"0.5648187",
"0.5645065",
"0.561935",
"0.5614461",
"0.56128603",
"0.559629",
"0.5593064",
"0.55801755",
"0.5579656",
"0.5577691",
"0.5577288",
"0.5576257",
"0.5561898",
"0.5557894",
"0.55416864",
"0.5532648",
"0.55239266",
"0.5520747",
"0.55198795",
"0.5517441",
"0.55046916",
"0.55016744",
"0.54946667",
"0.54804724",
"0.54802006",
"0.5459633",
"0.54565674",
"0.5452332",
"0.54486215",
"0.54313314",
"0.54307413",
"0.54287034",
"0.54255086",
"0.5424444",
"0.5414926",
"0.5412593",
"0.540808",
"0.5406252",
"0.5402991",
"0.5398295",
"0.53981715",
"0.53927106",
"0.5389884",
"0.5388489",
"0.53877664",
"0.53876036",
"0.5383274",
"0.53801227",
"0.5362951",
"0.5360932",
"0.5358949",
"0.5355926",
"0.5354134",
"0.53481865",
"0.5343529",
"0.53265095",
"0.5315737",
"0.53138536",
"0.53113574",
"0.53069645",
"0.53012663",
"0.529514",
"0.5286654",
"0.5285063",
"0.52799994",
"0.52790415",
"0.52746904",
"0.52719456",
"0.5269216",
"0.52678657",
"0.5264434",
"0.5262663",
"0.52518046",
"0.5250084",
"0.5248766",
"0.5248561",
"0.52446795"
] | 0.0 | -1 |
ends update method getCoordinates method sets the coordinates to what they currently are and then returns them. | public int[] getCoordinates() {
int[] a=new int[2];
a[0]=xCoord;
a[1]=yCoord;
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double[] getCoordinates() {\n \tdouble []coords = this.position.getCoordinates();\n \tthis.currentX = coords[0];\n \tthis.currentY = coords[1];\n \treturn coords;\n }",
"public ArrayList<Coordinate> getCoordinates() {\n return coordinates;\n }",
"private void updateArrayListCoordinates() {\n this.coordinates = makeCoordinatesFromCenterCoordinate(centerPointCoordinate);\n }",
"public Coordinates getCoordinates()\r\n {\r\n return new Coordinates(r.getX(), r.getY());\r\n }",
"public List<Double> getCoordinates() {\n return coordinates;\n }",
"public Coordinates getCoordinates() {\n if (this.coordinates == null)\n return new Coordinates(-1, -1);\n return this.coordinates;\n }",
"@Override\n\tpublic double[] getCoordinates() {\n\t\tdouble[] coordinates = { x1, y2, x2, y1 };\n\t\treturn coordinates;\n\t}",
"public List<LatLng> getCoordinates() {\n return mCoordinates;\n }",
"public double[] getCoordinates() {\n\t\treturn coordinateTools.localToCoordinates(this);\n\t}",
"public Coordinates setCoordinates(Coordinates coordinates) {\n Coordinates previous = this.coordinates;\n if (coordinates == null)\n coordinates = new Coordinates(-1, -1);\n this.coordinates = coordinates;\n return previous;\n }",
"long getCoordinates();",
"long getCoordinates();",
"public List<Float[]> getCoordinates() {\n return coordinates;\n }",
"public String getCoordinates() {\n return this.coordinates;\n }",
"public int[] getCoords() {\n return coords;\n }",
"public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }",
"public Coords getCoord() {\r\n\t\treturn coord;\r\n\t}",
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}",
"public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}",
"public Point[] getLocation()\n {\n return shipLocation.clone();\n }",
"public Coords getFinalCoords() {\n if (getLastStep() != null) {\n return getLastStep().getPosition();\n }\n return getEntity().getPosition();\n }",
"public Point getXY()\n\t{\n\t\tPoint newPoint = new Point(x,y);\t\t\t\t\t\t// Create new Point object \n\t\treturn newPoint; \t\t\t\t\t\t\t\t\t\t// Return point's x and y coordinates\n\t}",
"public double getYCoordinates() { return yCoordinates; }",
"public Coordinate getCoordinate() {\n return coordinate;\n }",
"public double getXCoordinates() { return xCoordinates; }",
"public double[] getCoordinates(){\n\t\tdouble[] coord = new double[2];\n\t\tdouble xcoord = (double)position[0]/9;\n\t\tdouble zcoord = (double)position[1]/9;\n\t\tcoord[0] = xcoord;\n\t\tcoord[1] = zcoord;\t\t\n\t\treturn coord;\n\t}",
"private List<LatLng> getCoordinates() {\n\n List<LatLng> list = new ArrayList<>();\n SharedPreferences.Editor editor = walkingSharedPreferences.edit();\n int size = walkingSharedPreferences.getInt(user.getUsername(), 0);\n for(int actual = 0; actual < size; actual++) {\n String pos = walkingSharedPreferences.getString(user.getUsername() + \"_\" + actual, \"\");\n editor.remove(user.getUsername() + \"_\" + actual);\n String[] splitPos = pos.split(\" \");\n LatLng latLng = new LatLng(Double.parseDouble(splitPos[LAT]), Double.parseDouble(splitPos[LNG]));\n list.add(latLng);\n }\n editor.remove(user.getUsername());\n editor.apply();\n return list;\n\n }",
"public Coordinate getCoordenadasActuales() ;",
"public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}",
"Collection<Point> getAllCoordinates();",
"void onNewCoords(Coords coords);",
"protected RobotCoordinates getRobotCoordinates() { return currentPos; }",
"public Position getPos() {\n\t\treturn coords;\n\t}",
"public Coordinates copy() {\n\t\treturn new Coordinates(this);\n\t}",
"public boolean needCoordinates() { return needCoords; }",
"@Override\n\tpublic Point getLocation() {\n\t\treturn new Point(x,y);\n\t}",
"@Override\n\tpublic void getCoordinates() {\n\t\tSystem.out.println(\"Your Coordinates: 18.1124° N, 79.0193° E \");\n\t}",
"public double[] getLocation() {\n return new double[]{longitude,latitude};\n }",
"public GridCoord getCoord() {\n return coord;\n }",
"public abstract int[] getCoords();",
"@Override\n public String updateLat() {\n return mylat;\n }",
"public void updateYLoc();",
"public Point getCoordinate() {\n return this.coordinate;\n }",
"public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }",
"public Vector2f getCoordinates() {\r\n return new Vector2f(tileColumn, tileRow);\r\n }",
"public void getCoordinates(){\n\t\t\n\t\t // check if GPS enabled\n GPSTracker gpsTracker = new GPSTracker(this);\n \n if (gpsTracker.canGetLocation())\n {\n latitude = gpsTracker.latitude;\n\n longitude = gpsTracker.longitude;\n }\n else\n {\n // can't get location\n // GPS or Network is not enabled\n // Ask user to enable GPS/network in settings\n gpsTracker.showSettingsAlert();\n }\n\t}",
"public void updateXLoc();",
"public void setXCoordinates(double newX) { this.xCoordinates = newX; }",
"public Coordinate getCoordinate() {\n\t\treturn super.listCoordinates().get(0);\n\t}",
"@Override\n public Position setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n\n return new Position(x, y);\n }",
"public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }",
"public Coordinates() {\n\t\t\n\t\txPosition = 0;\t\t\t// Sets the x integer to zero\n\t\tyPosition = 0;\t\t\t// Sets the y integer to zero\n\t}",
"public double getNewYPosition() {\n return newPosY;\n }",
"private void setWorldCoordinatesFromFields() {\n if (trackerPanel == null) return;\n OffsetOriginStep step = (OffsetOriginStep) getStep(trackerPanel.getFrameNumber());\n boolean different = step.worldX != xField.getValue() || step.worldY != yField.getValue();\n if (different) {\n XMLControl trackControl = new XMLControlElement(this);\n XMLControl coordsControl = new XMLControlElement(trackerPanel.getCoords());\n step.setWorldXY(xField.getValue(), yField.getValue());\n step.getPosition().showCoordinates(trackerPanel);\n Undo.postTrackAndCoordsEdit(this, trackControl, coordsControl);\n }\n }",
"public void setCoordinates(String coordinates) {\n this.coordinates = coordinates;\n }",
"public double getLatitude() { return coordinates.latitude; }",
"public void setCoordinates(double[] pos) {\n \tthis.currentX = pos[0];\n \tthis.currentY = pos[1];\n }",
"void update(int[] xyPos) {\n this.x = xyPos[0];\n this.y = xyPos[1];\n }",
"public void setFromCoordinates(int fromX, int fromY);",
"public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }",
"public synchronized String getUpdatedPosData() {\r\n\t\t// don't send anything if the latitude AND longitude are false\r\n\t\tif (updatedLat == false && updatedLng == false)\r\n\t\t\treturn \"\";\r\n\t\tDocument serviceDoc = createXMLDocumentStructure();\r\n\t\tElement root = serviceDoc.getDocumentElement();\t\r\n\t\tElement gpsElement = createGPSPosElement(serviceDoc);\r\n\t\tif (gpsElement != null)\r\n\t\t\troot.appendChild(gpsElement);\r\n\t\t// Set the dirty flag for position\r\n\t\tupdatedLat = updatedLng = false;\r\n\r\n\t\treturn write(serviceDoc);\r\n\t}",
"public Point[] getCoordinates() {\n Point[] temp = new Point[segments.length];\n for (int i = 0; i < segments.length; i++) {\n temp[i] = segments[i].getCoordinates();\n }\n return temp;\n }",
"MazePoint getActivePlayerCoordinates();",
"@Override\r\n public Object clone() {\r\n\r\n Coordinate c = new Coordinate( this );\r\n return c;\r\n }",
"public protodef.b_math.coord getCoordInfo() {\n return coordInfo_ == null ? protodef.b_math.coord.getDefaultInstance() : coordInfo_;\n }",
"public CopyOnWriteArrayList<Point> \tgetOccupiedPositions() \t\t\t \t\t\t{ return this.occupiedPositions; }",
"public void setToCoordinates(int toX, int toY);",
"public RMPoint getXY() { return new RMPoint(getX(), getY()); }",
"public protodef.b_math.coordOrBuilder getCoordInfoOrBuilder() {\n if (coordInfoBuilder_ != null) {\n return coordInfoBuilder_.getMessageOrBuilder();\n } else {\n return coordInfo_ == null ?\n protodef.b_math.coord.getDefaultInstance() : coordInfo_;\n }\n }",
"private void updateGeo(Double latitude, Double longitude) {\n latitudeValue = latitude;\n longitudeValue = longitude;\n }",
"@Test\n public void testSetLocation_Coordinates() {\n System.out.println(\"setLocation\");\n Coordinates newLocation = new Coordinates(100,100);\n Enemy instance = new SuperEnemy(new Coordinates(220,220));\n instance.setLocation(newLocation);\n Coordinates expResult = new Coordinates(100, 100);\n Coordinates result = instance.getLocation();\n assertEqualsC(expResult,result);\n }",
"public protodef.b_math.coord getCoordInfo() {\n if (coordInfoBuilder_ == null) {\n return coordInfo_ == null ? protodef.b_math.coord.getDefaultInstance() : coordInfo_;\n } else {\n return coordInfoBuilder_.getMessage();\n }\n }",
"public ArrayList<double[]> getRecentCoordinates(){\n Connection connection = null;\n ResultSet resultSet = null;\n PreparedStatement preparedStatement = null;\n\n ArrayList<double[]> coordinates = new ArrayList<double[]>();\n String cordsQuery = \"SELECT bike_id, x_cord, y_cord FROM bike_stats WHERE time >= (now() - INTERVAL 1 MINUTE)\";\n\n try{\n connection = DBCleanup.getConnection();\n\n preparedStatement = connection.prepareStatement(cordsQuery);\n resultSet = preparedStatement.executeQuery();\n while(resultSet.next()) {\n double[] row = new double[3];\n int row0 = resultSet.getInt(\"bike_id\");\n row[0] = (double) row0;\n row[1] = resultSet.getDouble(\"x_cord\");\n row[2] = resultSet.getDouble(\"y_cord\");\n coordinates.add(row);\n }\n return coordinates;\n\n }catch(SQLException e){\n System.out.println(e.getMessage() + \" - getRecentCoordinates()\");\n }finally {\n DBCleanup.closeStatement(preparedStatement);\n DBCleanup.closeResultSet(resultSet);\n DBCleanup.closeConnection(connection);\n }\n return null;\n }",
"public Coordinate getLocation();",
"public GridCoord getCoord() {\n\t\treturn this.coord;\n\t}",
"public GeoPoint position(){\n return position;\n }",
"public protodef.b_math.coordOrBuilder getCoordInfoOrBuilder() {\n return coordInfo_ == null ? protodef.b_math.coord.getDefaultInstance() : coordInfo_;\n }",
"public List<Vector2> getOldPos() {\n return oldPos;\n }",
"public Point.Double getPosition(){\r\n return new Point.Double(x, y);\r\n }",
"public void newCoord() {\n\t\tx = Data.generateRandomX();\n\t\ty = Data.generateRandomY();\n\t}",
"@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}",
"public boolean setBothCoordinates(){\r\n\r\n double[] results;\r\n\r\n if((results = getCoordinates(locationA)) == null){\r\n Toast.makeText(this, \"Try another location for A!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latA = results[0];\r\n lonA = results[1];\r\n }\r\n\r\n if((results = getCoordinates(locationB)) == null){\r\n Toast.makeText(this, \"Try another location for B!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latB = results[0];\r\n lonB = results[1];\r\n }\r\n\r\n getMidPoint();\r\n\r\n return true;\r\n }",
"public ArrayList<LatLng> getCoordinates(int runID){\r\n ArrayList<LatLng> journey = new ArrayList<>();\r\n LatLng current;\r\n String[] id = {String.valueOf(runID)};\r\n String[] columns = {ContentContract.LATITUDE, ContentContract.LONGITUDE};\r\n String whereClause = ContentContract.RUN_ID + \"= ?\";\r\n\r\n // Query from ContentProvider for the run coordinates table\r\n Cursor c = getContentResolver().query(ContentContract.RUN_COORDINATES, columns, whereClause, id, null);\r\n Log.d(\"g53mdp\", DatabaseUtils.dumpCursorToString(c));\r\n if(c.moveToFirst()){\r\n do {\r\n // Builds the LatLng list\r\n double latitude = c.getDouble(3);\r\n double longitude = c.getDouble(4);\r\n current = new LatLng(latitude, longitude);\r\n journey.add(current);\r\n } while(c.moveToNext());\r\n }\r\n return journey;\r\n }",
"public Coordinate coordinate() {\n\t\treturn coordinate;\n\t}",
"public LatLng getPosition() { return new LatLng(latitude, longitude); }",
"@Override\n\tpublic double[] getOrigin()\n\t{\n\t\tdouble origin[] = new double[] {originX, originY};\n\t\treturn origin;\n\t}",
"public int getXCoordinate ()\n {\n return xCoordinate;\n }",
"public abstract void updateLocations();",
"public int getYCoordinate ()\n {\n return yCoordinate;\n }",
"@Override\n\tpublic void setCoordinates(double x1, double y2, double x2, double y1) {\n\t\tthis.x1 = x1;\n\t\tthis.y1 = y1;\n\t\tthis.x2 = x2;\n\t\tthis.y2 = y2;\n\t\t\n\t}",
"public Point getLocationUsed() {\n return (Point)this.locationUsed.clone();\n }",
"protodef.b_math.coordOrBuilder getCoordInfoOrBuilder();",
"public double[] getHitGeoCoord();",
"public final void getPhysicalRelativeCoordinates(double[] coordinates) {\n\t\tfor (int i = 0; i < coordinates.length; i++) \n\t\t\tcoordinates[i] = position[i] * calibration[i];\n\t}",
"public Coordinate getCurrent( )\n\t{\n\t\treturn currentLocation;\n\t}",
"@Override\n public Position getPosition() {\n return new Position(this.x, this.y);\n }",
"public Coordinate getCoordinate() {\n\t\treturn this.coordinate;\n\t}",
"public Point getPosition(){\r\n return new Point(this.position);\r\n }",
"public void setLocation(Coordinate coordinate);",
"public void setYCoordinates(double newY) { this.yCoordinates = newY; }"
] | [
"0.6912261",
"0.6823522",
"0.68196064",
"0.6794206",
"0.67535925",
"0.67115927",
"0.6662605",
"0.66319776",
"0.6607654",
"0.65715104",
"0.65479255",
"0.65479255",
"0.6398364",
"0.63842505",
"0.6364947",
"0.6335889",
"0.63239956",
"0.6152689",
"0.6121011",
"0.6080076",
"0.6025712",
"0.6018198",
"0.60174984",
"0.60144717",
"0.59555465",
"0.5940614",
"0.5882866",
"0.58778965",
"0.5865582",
"0.5856697",
"0.5851786",
"0.58402264",
"0.5835865",
"0.5811031",
"0.5781543",
"0.5740186",
"0.57308716",
"0.5730392",
"0.5721508",
"0.5716877",
"0.5712424",
"0.5701177",
"0.57009155",
"0.57006854",
"0.56981295",
"0.56832224",
"0.56726027",
"0.56626135",
"0.5659267",
"0.56588995",
"0.56415695",
"0.5640913",
"0.5626336",
"0.56167805",
"0.56083465",
"0.56011295",
"0.5582171",
"0.557865",
"0.5573453",
"0.55643535",
"0.5561768",
"0.5532953",
"0.55147755",
"0.5507522",
"0.5489809",
"0.5488043",
"0.54856426",
"0.5484503",
"0.54817176",
"0.54805785",
"0.54801375",
"0.5458945",
"0.54579175",
"0.5456545",
"0.5443492",
"0.5436104",
"0.54360473",
"0.5426065",
"0.5418165",
"0.5415772",
"0.5415554",
"0.54153043",
"0.5415251",
"0.5414589",
"0.5412322",
"0.5408246",
"0.5399429",
"0.5398691",
"0.53976977",
"0.5393498",
"0.53911",
"0.5390126",
"0.53872484",
"0.538692",
"0.53668785",
"0.5365713",
"0.5363334",
"0.53615636",
"0.53431606",
"0.5337406"
] | 0.59107333 | 26 |
ends getCoordinates GETTERS AND SETTERS | protected int getxCoord() {
return xCoord;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getCoordinates();",
"long getCoordinates();",
"public String getCoordinates() {\n return this.coordinates;\n }",
"@Override\n\tpublic double[] getCoordinates() {\n\t\tdouble[] coordinates = { x1, y2, x2, y1 };\n\t\treturn coordinates;\n\t}",
"public List<LatLng> getCoordinates() {\n return mCoordinates;\n }",
"public Coordinates getCoordinates() {\n if (this.coordinates == null)\n return new Coordinates(-1, -1);\n return this.coordinates;\n }",
"public ArrayList<Coordinate> getCoordinates() {\n return coordinates;\n }",
"@Override\n\tpublic void getCoordinates() {\n\t\tSystem.out.println(\"Your Coordinates: 18.1124° N, 79.0193° E \");\n\t}",
"public List<Double> getCoordinates() {\n return coordinates;\n }",
"public void setLocation(Coordinate coordinate);",
"public Coordinates getCoordinates()\r\n {\r\n return new Coordinates(r.getX(), r.getY());\r\n }",
"public Coords getCoord() {\r\n\t\treturn coord;\r\n\t}",
"public Coordinate getCoordinate() {\n return coordinate;\n }",
"public Coordinates setCoordinates(Coordinates coordinates) {\n Coordinates previous = this.coordinates;\n if (coordinates == null)\n coordinates = new Coordinates(-1, -1);\n this.coordinates = coordinates;\n return previous;\n }",
"@Override\n\tpublic void setCoordinates(double x1, double y2, double x2, double y1) {\n\t\tthis.x1 = x1;\n\t\tthis.y1 = y1;\n\t\tthis.x2 = x2;\n\t\tthis.y2 = y2;\n\t\t\n\t}",
"public double[] getCoordinates() {\n\t\treturn coordinateTools.localToCoordinates(this);\n\t}",
"public boolean needCoordinates() { return needCoords; }",
"public double getXCoordinates() { return xCoordinates; }",
"public void setCoordinates(String coordinates) {\n this.coordinates = coordinates;\n }",
"public double[] getCoordinates() {\n \tdouble []coords = this.position.getCoordinates();\n \tthis.currentX = coords[0];\n \tthis.currentY = coords[1];\n \treturn coords;\n }",
"public void setFromCoordinates(int fromX, int fromY);",
"public Coordinate getCoordenadasActuales() ;",
"public Coordinates(int x, int y){\n this.x = x;\n this.y = y;\n }",
"public Point getCoordinate() {\n return this.coordinate;\n }",
"public void setToCoordinates(int toX, int toY);",
"public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }",
"public List<Float[]> getCoordinates() {\n return coordinates;\n }",
"private void updateArrayListCoordinates() {\n this.coordinates = makeCoordinatesFromCenterCoordinate(centerPointCoordinate);\n }",
"public int[] getCoords() {\n return coords;\n }",
"public Coordinates() {\n\t\t\n\t\txPosition = 0;\t\t\t// Sets the x integer to zero\n\t\tyPosition = 0;\t\t\t// Sets the y integer to zero\n\t}",
"@Test\n public void testSetLocation_Coordinates() {\n System.out.println(\"setLocation\");\n Coordinates newLocation = new Coordinates(100,100);\n Enemy instance = new SuperEnemy(new Coordinates(220,220));\n instance.setLocation(newLocation);\n Coordinates expResult = new Coordinates(100, 100);\n Coordinates result = instance.getLocation();\n assertEqualsC(expResult,result);\n }",
"public void getCoordinates(){\n\t\t\n\t\t // check if GPS enabled\n GPSTracker gpsTracker = new GPSTracker(this);\n \n if (gpsTracker.canGetLocation())\n {\n latitude = gpsTracker.latitude;\n\n longitude = gpsTracker.longitude;\n }\n else\n {\n // can't get location\n // GPS or Network is not enabled\n // Ask user to enable GPS/network in settings\n gpsTracker.showSettingsAlert();\n }\n\t}",
"public abstract int[] getCoords();",
"public Coordinate getLocation();",
"Collection<Point> getAllCoordinates();",
"public void setCoordinates(double[] pos) {\n \tthis.currentX = pos[0];\n \tthis.currentY = pos[1];\n }",
"public void setXCoordinates(double newX) { this.xCoordinates = newX; }",
"void onNewCoords(Coords coords);",
"@Override\n\tpublic Point getLocation() {\n\t\treturn new Point(x,y);\n\t}",
"@Override\r\n\tpublic void setMaxCoordinates() {\n\t\t\r\n\t}",
"public static int getCoords()\n\t{\n\t\treturn moveCoords;\n\t}",
"public int getLat();",
"public Coordinates(int x, int y)\r\n {\r\n xCoord = x;\r\n yCoord = y;\r\n }",
"public double getYCoordinates() { return yCoordinates; }",
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"public void setCoord(Coords coord) {\r\n\t\tthis.coord = coord;\r\n\t}",
"@Override\n\tpublic void SetCoord(double x, double y) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"private void setWorldCoordinatesFromFields() {\n if (trackerPanel == null) return;\n OffsetOriginStep step = (OffsetOriginStep) getStep(trackerPanel.getFrameNumber());\n boolean different = step.worldX != xField.getValue() || step.worldY != yField.getValue();\n if (different) {\n XMLControl trackControl = new XMLControlElement(this);\n XMLControl coordsControl = new XMLControlElement(trackerPanel.getCoords());\n step.setWorldXY(xField.getValue(), yField.getValue());\n step.getPosition().showCoordinates(trackerPanel);\n Undo.postTrackAndCoordsEdit(this, trackControl, coordsControl);\n }\n }",
"Coordinate createCoordinate();",
"private void updateGeo(Double latitude, Double longitude) {\n latitudeValue = latitude;\n longitudeValue = longitude;\n }",
"public Coordonnees(double _latitude, double _longitude) {\r\n\t\tsuper();\r\n\t\tthis._latitude = _latitude;\r\n\t\tthis._longitude = _longitude;\r\n\t}",
"public void set(Coord dest) {\n x = dest.x;\n y = dest.y;\n }",
"protodef.b_math.coord getCoordInfo();",
"private void setMyLatLong() {\n }",
"public int getXCoordinate ()\n {\n return xCoordinate;\n }",
"public Point getXY()\n\t{\n\t\tPoint newPoint = new Point(x,y);\t\t\t\t\t\t// Create new Point object \n\t\treturn newPoint; \t\t\t\t\t\t\t\t\t\t// Return point's x and y coordinates\n\t}",
"public void setCoordinates(final int x, final int y) {\n this.x = x;\n this.y = y;\n }",
"@Override\n public Position setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n\n return new Position(x, y);\n }",
"@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}",
"public double getLatitude() { return coordinates.latitude; }",
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}",
"public double[] getHitGeoCoord();",
"public GridCoord getCoord() {\n return coord;\n }",
"public void setCoordinates(int x, int y) {\n\t\t\n\t\txPosition = x;\t\t\t// Assigns the x integer\n\t\tyPosition = y;\t\t\t// Assigns the y integer\n\t}",
"public void setStreets(int numx, int numy);",
"protected Coord() {\n\t}",
"void setLocation(int x, int y);",
"Coordinate(int Xposition, int Yposition) {\n\t\tthis.X = Xposition;\n\t\tthis.Y = Yposition;\n\n\t}",
"public Coordinate() { row = col = -1; }",
"protodef.b_math.coordOrBuilder getCoordInfoOrBuilder();",
"public Coordinate() {\n this.xCoordinate = -1;\n this.yCoordinate = -1;\n }",
"public void setLocation(float x, float y);",
"@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}",
"public void setLoc(int x, int y) {\n locX = x;\n locY = y;\n }",
"public void setXY(double anX, double aY) { setX(anX); setY(aY); }",
"public void setPosition(Coordinate coord) {\n this.coordinate = coord;\n }",
"void setXandY(double x, double y){\r\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t}",
"public double[] getCoordinates(){\n\t\tdouble[] coord = new double[2];\n\t\tdouble xcoord = (double)position[0]/9;\n\t\tdouble zcoord = (double)position[1]/9;\n\t\tcoord[0] = xcoord;\n\t\tcoord[1] = zcoord;\t\t\n\t\treturn coord;\n\t}",
"@Test\n public void addCoordinate(){\n final double[] location = {1.0, 2.0};\n body.setBodyCoordinate(location);\n assertEquals(\"check to see if it set correctly\", body.getBodyCoordinate(), location);\n }",
"public boolean setBothCoordinates(){\r\n\r\n double[] results;\r\n\r\n if((results = getCoordinates(locationA)) == null){\r\n Toast.makeText(this, \"Try another location for A!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latA = results[0];\r\n lonA = results[1];\r\n }\r\n\r\n if((results = getCoordinates(locationB)) == null){\r\n Toast.makeText(this, \"Try another location for B!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latB = results[0];\r\n lonB = results[1];\r\n }\r\n\r\n getMidPoint();\r\n\r\n return true;\r\n }",
"public Point[] getLocation()\n {\n return shipLocation.clone();\n }",
"public float getX() { return xCoordinate;}",
"public void setMoveTo(Coordinate coordinate);",
"public zCoordinates(int x, int y){\n this.x = x;\n this.y = y;\n }",
"@Override public void setPosition(double nx, double ny) {\n super.setPosition(nx, ny);\n ppx = px = nx;\n ppy = py = ny;\n }",
"@Override\r\n public Object clone() {\r\n\r\n Coordinate c = new Coordinate( this );\r\n return c;\r\n }",
"public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }",
"abstract void setOrigin(double x, double y, double z);",
"public void setLocXY(int x, int y) {\n locX = x;\n locY = y;\n }",
"int getX_coordinate(){\n return x_coordinate;\n }",
"public Coordinate coordinate() {\n\t\treturn coordinate;\n\t}",
"@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}",
"public void setPosition(double x, double y)\n {\n mPosition = new Point2D.Double(x, y);\n }",
"public Point getLocation() { return loc; }",
"public Coordinate getCoordinate() {\n\t\treturn this.coordinate;\n\t}",
"public Coordinate( final int i) { set( i ); }",
"public RMPoint getXY() { return new RMPoint(getX(), getY()); }",
"public MbCoordDpto() {\r\n \r\n }",
"public int[] getCoordinates() {\n\t\t\n\t\tint[] a=new int[2];\n\t\ta[0]=xCoord;\n\t\ta[1]=yCoord;\n\t\t\n\t\treturn a;\n\t\t\n\t}",
"public Point2D getLocation();",
"public abstract void setDataToElementXY();"
] | [
"0.7234231",
"0.7234231",
"0.6786241",
"0.6774372",
"0.67251205",
"0.6720844",
"0.6720507",
"0.67162204",
"0.67049",
"0.66792035",
"0.66632396",
"0.66267467",
"0.65956175",
"0.6530911",
"0.64739597",
"0.64349896",
"0.640251",
"0.6398997",
"0.6394838",
"0.63946056",
"0.6388417",
"0.63875467",
"0.6383465",
"0.6367063",
"0.6363057",
"0.6352646",
"0.6350867",
"0.635042",
"0.6346494",
"0.6340462",
"0.6307643",
"0.62829065",
"0.62692916",
"0.6257607",
"0.62542796",
"0.6252253",
"0.6234831",
"0.62223953",
"0.620855",
"0.6202264",
"0.62022495",
"0.6191313",
"0.616686",
"0.61165637",
"0.61147034",
"0.6093048",
"0.6085085",
"0.60742104",
"0.6070179",
"0.60458827",
"0.60426414",
"0.6042423",
"0.6032824",
"0.6027596",
"0.6018385",
"0.6011481",
"0.600791",
"0.6004234",
"0.6001545",
"0.59900934",
"0.5980223",
"0.5977081",
"0.597339",
"0.5972666",
"0.59695035",
"0.5953801",
"0.5952088",
"0.5943197",
"0.593431",
"0.59275466",
"0.5927167",
"0.5922018",
"0.59143144",
"0.5896146",
"0.58866763",
"0.5884425",
"0.5875355",
"0.58723074",
"0.586648",
"0.58635056",
"0.5861052",
"0.58600765",
"0.58580613",
"0.5849738",
"0.58474255",
"0.5846943",
"0.5846372",
"0.5840964",
"0.5836427",
"0.5823293",
"0.5822937",
"0.5814475",
"0.5797229",
"0.57796305",
"0.5772583",
"0.5770916",
"0.5770617",
"0.5759491",
"0.5759413",
"0.5755834",
"0.5754394"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void setxCoord(Location l) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void setyCoord(Location l) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
XMLElement element = XMLElement.loadElementFrom(this.getClass().getResource("pro.xml")); | private void testProXml(){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readxml() throws JAXBException, FileNotFoundException {\n Player loadplayer = xml_methods.load();\n logger.info(\"player name: \" + loadplayer.getName());\n if (!item.isEmpty()) {\n logger.trace(loadplayer.getitem(0).getName());\n }\n tfName.setText(loadplayer.getName());\n isset = true;\n player = loadplayer;\n\n }",
"public void loadConfig(XMLElement xml) {\r\n\r\n }",
"public void loadXML(){\n new DownloadXmlTask().execute(URL);\n }",
"public void showLoadXML(Properties p);",
"String getResource();",
"public static void readXML(){\n try{\n Document doc = getDoc(\"config.xml\");\n Element root = doc.getRootElement();\n\n //Muestra los elementos dentro de la configuracion del xml\n \n System.out.println(\"Color : \" + root.getChildText(\"color\"));\n System.out.println(\"Pattern : \" + root.getChildText(\"pattern\"));\n System.out.println(\"Background : \" + root.getChildText(\"background\"));\n \n\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void classLoader(){\n \t\n URL xmlpath = this.getClass().getClassLoader().getResource(\"\");\n System.out.println(xmlpath.getPath());\n }",
"public void readXmlFile() {\r\n try {\r\n ClassLoader classLoader = getClass().getClassLoader();\r\n File credentials = new File(classLoader.getResource(\"credentials_example.xml\").getFile());\r\n DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder Builder = Factory.newDocumentBuilder();\r\n Document doc = Builder.parse(credentials);\r\n doc.getDocumentElement().normalize();\r\n username = doc.getElementsByTagName(\"username\").item(0).getTextContent();\r\n password = doc.getElementsByTagName(\"password\").item(0).getTextContent();\r\n url = doc.getElementsByTagName(\"url\").item(0).getTextContent();\r\n setUsername(username);\r\n setPassword(password);\r\n setURL(url);\r\n } catch (Exception error) {\r\n System.out.println(\"Error in parssing the given xml file: \" + error.getMessage());\r\n }\r\n }",
"public XMLElement(PApplet sketch, String filename)\n/* */ {\n/* 174 */ this();\n/* 175 */ this.sketch = sketch;\n/* 176 */ init(sketch.createReader(filename));\n/* */ }",
"public void loadResources();",
"public Element loadFile(String place){\r\n\t\treturn FactoryManager.getFactoryManager().getScriptManager()\r\n\t\t.getReadScript().getRootElement(place);\t\r\n\t}",
"void bukaXoxo(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"xoxo.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n resi = (String) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n \r\n }",
"Resource getResource();",
"private static OMElement loadConfigXML() throws EventBrokerConfigurationException {\n\n String carbonConfigHome = CarbonBaseUtils.getCarbonConfigDirPath();\n File confFile = Paths.get(carbonConfigHome, EventBrokerConstants.EB_CONF).toFile();\n String path = confFile.toString();\n BufferedInputStream inputStream = null;\n try {\n inputStream = new BufferedInputStream(new FileInputStream(confFile));\n XMLStreamReader parser = XMLInputFactory.newInstance().\n createXMLStreamReader(inputStream);\n StAXOMBuilder builder = new StAXOMBuilder(parser);\n OMElement omElement = builder.getDocumentElement();\n omElement.build();\n return omElement;\n } catch (FileNotFoundException e) {\n throw new EventBrokerConfigurationException(EventBrokerConstants.EB_CONF\n + \"cannot be found in the path : \" + path, e);\n } catch (XMLStreamException e) {\n throw new EventBrokerConfigurationException(\"Invalid XML for \" + EventBrokerConstants.EB_CONF\n + \" located in the path : \" + path, e);\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException ingored) {\n throw new EventBrokerConfigurationException(\"Can not close the input stream\");\n }\n }\n }",
"private static void load(){\n }",
"@Override\n protected void loadXMLDescription() {\n\n }",
"public Resource load(String filename) throws MalformedURLException;",
"public static void testXmlImport() {\n\n }",
"public static void readLoadPrimaveraXmlProject(String dataDir)\n {\n PrimaveraXmlReader reader = new PrimaveraXmlReader(dataDir + \"PrimaveraProject.xml\");\n Project project = reader.loadProject(3882);\n System.out.println(project.getName());\n }",
"public static void testPlaylistVersion() {\n try {\n // create the file\n final InputStream stream = InputStream.class.getResourceAsStream(\"/playlist-valid-ver0.xml\");\n\n if(stream == null) { throw new FileNotFoundException(); }\n\n final JAXBContext jc = JAXBContext.newInstance(\"mediaplayer.jaxb\");\n final Unmarshaller u = jc.createUnmarshaller();\n final JAXBElement element = (JAXBElement)u.unmarshal(stream);\n final PlaylistType playlist = (PlaylistType)element.getValue();\n\n // make an xml document out of it\n final Marshaller m = jc.createMarshaller();\n \n // THIS WILL ECHO THE XML DOCUMENT IN SYSTEM.OUT\n // setproperty will give the normal settings, KEEP IT.\n m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n m.marshal(element, System.out);\n // THIS WILL CREATE THE XML DOCUMENT\n m.marshal(element, new FileOutputStream(\"pl3.xml\"));\n\n } catch(FileNotFoundException ex) {\n System.err.println(\"NO FILE FOUND...\");\n } catch (PropertyException ex) {\n System.err.println(\"PropertyException...\" + ex.getMessage());\n System.err.println(ex.getMessage());\n } catch (JAXBException ex) {\n System.err.println(\"JAXBException...\" + ex.getMessage());\n }\n }",
"public String getResourcePath();",
"void readXML(Element elem) throws XMLSyntaxError;",
"UmlElement getUmlElement();",
"public static void main(String[] args)\n {\n URL xmlURL = RpgConfMain.class.getResource(\"/baseList.xml\");\n\n if(xmlURL == null)\n {\n System.out.println(\"Failed to read xml file, xmlURL was null\");\n System.exit(-1);\n }\n\n //Getting the xml file\n try(InputStream xmlStream = (InputStream) xmlURL.getContent())\n {\n //Reading the xml file\n xmlReader = new StructXMLReader(xmlStream);\n } catch (IOException | XMLStreamException e)\n {\n System.exit(-1);\n e.printStackTrace();\n }\n\n MainFrame frame = new MainFrame(new ConfigCode(), xmlReader); //Used before initialization is wrong. If the xmlReader\n //variable is wrong, the program will exit\n\n frame.setVisible(true);\n }",
"protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;",
"public void load (XMLElement myElement,XMLLoader loader) throws XMLTreeException,IOException,XMLInvalidInputException\n\t\t{\tthis_ind=myElement.getAttribute(\"this-ind\").getIntValue();\n\t\t\tthis_gen=myElement.getAttribute(\"this-gen\").getIntValue();\n\t\t\tinds=(Individual[])XMLArray.loadArray(this,loader,assistant);\n\t\t}",
"private GameModel load(String xmlFilePath) throws Exception {\r\n\t\ttry {\r\n\t\t\t// Load Game from XML\r\n\t\t\tJAXBContext context = JAXBContext.newInstance(GameModel.class);\r\n\t\t\tSystem.out.println(\"instance passed \");\r\n\t\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\r\n\t\t\tSystem.out.println(\"marshaller created\");\r\n\t\t\treturn (GameModel) unmarshaller.unmarshal(new File(xmlFilePath));\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// log the exception, show the error message on UI\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"@Test\n public void in() throws IOException {\n InputStream in = getResourceAstream(\"peizhi.xml\");\n\n //InputStream in = new FileInputStream(\"G:\\\\IDEA\\\\Java_test\\\\src\\\\main\\\\resources\\\\peizhi.xml\");\n //定义一个数组相当于缓存\n byte by[]=new byte[1024];\n int n=0;\n while((n=in.read(by))!=-1)\n {\n String s=new String(by,0,n);\n System.out.println(s);\n }\n }",
"public void load() throws ClassNotFoundException, IOException;",
"public Element readFromGameFile(String fileName) {\n\n Element element = null;\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Game\");\n Node nNode = nList.item(0);\n element = (Element) nNode;\n\n } catch (Exception e) {\n element = null;\n e.printStackTrace();\n }\n\n return element;\n }",
"public void load() {\n }",
"public void load();",
"public void load();",
"public void load() ;",
"public static void load() {\n }",
"@Override\r\n public void loadResources() {\n\r\n }",
"public void loadDocument() {\n\t\ttry {\n\t\t\tString defaultDirectory = Utils.lastVisitedDirectory;\n\t\t\tif (Utils.lastVisitedDocumentDirectory != null)\n\t\t\t\tdefaultDirectory = Utils.lastVisitedDocumentDirectory;\n\n\t\t\tJFileChooser fileChooser = new JFileChooser(defaultDirectory);\n\t\t\tint returnVal = fileChooser.showOpenDialog(new JFrame());\n\n\t\t\tif (returnVal != JFileChooser.APPROVE_OPTION) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tURL fileURL = fileChooser.getSelectedFile().toURL();\n\n\t\t\t((XsdTreeStructImpl) xsdTree).loadDocument(fileURL);\n\t\t\txsdTree.getMessageManager().sendMessage(\"XML document \" + fileURL + \" loaded.\", MessageManagerInt.simpleMessage);\n\t\t} catch (IOException urie) {\n\n\t\t} catch (SAXException saxe) {\n\n\t\t}\n\t\texampleLine = null;\n\t\t// updatePreview();\n\t}",
"void load();",
"void load();",
"@Test\n public void testFromXMLFile() {\n }",
"@Override\n public void parseXml(Element ele, LoadContext lc) {\n\n }",
"public XmlElement() {\n }",
"private Document getDocumentInClassPath()throws Exception{\r\n\t\t\r\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\r\n\t\t\r\n\t\tDocument doc = builder.parse(ServiceLoader.class.getResourceAsStream(\"/\"+FILE_NAME));\r\n\t\t\r\n\t\treturn doc;\r\n\t}",
"void loadProducts(String filename);",
"public String getXsdFileName();",
"public void savetoxml() throws FileNotFoundException, JAXBException {\n xml_methods.save(player);\n }",
"public void load() {\n\t}",
"@Override\r\n\tpublic void initFromXMLfile(URL arg0) throws InitializingException {\n\t}",
"public void readFromXML (org.w3c.dom.Node element) throws java.io.IOException {\n if (!XML_MATTE_ICON_BORDER.equals (element.getNodeName ())) {\n throw new java.io.IOException ();\n }\n org.w3c.dom.NamedNodeMap attributes = element.getAttributes ();\n try {\n org.w3c.dom.Node aNode = attributes.getNamedItem (ATTR_TOP);\n if(aNode != null) {\n top = Integer.parseInt (aNode.getNodeValue ());\n }\n aNode = attributes.getNamedItem (ATTR_LEFT);\n if(aNode != null) {\n left = Integer.parseInt (aNode.getNodeValue ());\n }\n aNode = attributes.getNamedItem (ATTR_RIGHT);\n if(aNode != null) {\n right = Integer.parseInt (aNode.getNodeValue ());\n }\n aNode = attributes.getNamedItem (ATTR_BOTTOM);\n if(aNode != null) {\n bottom = Integer.parseInt (aNode.getNodeValue ());\n }\n Icon read;\n read = (Icon) FormUtils.readProperty (ATTR_ICON, Icon.class, element);\n if (read != null) icon = read;\n\n updateBorder ();\n } catch (Exception e) {\n throw new java.io.IOException (e.toString());\n }\n }",
"public void fromXML ( Element element )\r\n {\n String name = element.getAttribute( \"name\" );\r\n if ( name.compareTo( gadgetclass.getName() ) == 0 )\r\n {\r\n // load each user preference\r\n NodeList userPrefs = element.getElementsByTagName( \"UserPref\" );\r\n for ( int i = 0; i < userPrefs.getLength(); i++ )\r\n {\r\n Element prefElement = (Element) userPrefs.item( i );\r\n String prefName = prefElement.getAttribute( \"name\" );\r\n Text prefValue = (Text) prefElement.getChildNodes().item( 0 );\r\n for ( int j = 0; j < gadgetclass.getUserPrefsCount(); j++ )\r\n {\r\n UserPref up = gadgetclass.getUserPref( i );\r\n if ( prefName.compareTo( up.getName() ) == 0 )\r\n {\r\n setUserPrefValue( up, prefValue.getNodeValue() );\r\n j = gadgetclass.getUserPrefsCount();\r\n }\r\n }\r\n }\r\n }\r\n }",
"public Player Unmarshal(String path)throws JAXBException, IOException {\n\n Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();\n\n Path filename = Path.of(path);\n\n String xml = Files.readString(filename);\n System.out.println(xml);\n\n StringReader reader = new StringReader(xml);\n\n return (Player) unmarshaller.unmarshal(reader);\n\n }",
"private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}",
"public XmlPullParser getLocalXML(String filename) throws IOException {\r\n\t\ttry {\r\n\t\t\tin = mContext.getAssets().open(filename);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tXmlPullParser parser = Xml.newPullParser();\r\n\t\t\tparser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);\r\n\t\t\tparser.setInput(in, null);\r\n\t\t\tparser.nextTag();\r\n\t\t\treturn parser;\r\n\t\t} catch (XmlPullParserException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }",
"public Element loadModel(String name){\n\t\tElement load = FactoryManager.getFactoryManager().getScriptManager()\r\n\t\t\t.getReadScript().getRootElement(allModels);\r\n\t\t\r\n\t\t//get the model wanted\r\n\t\tload = load.getChild(name);\r\n\t\t\r\n\t\t//return the element wanted\r\n\t\treturn load;\t\t\r\n\t}",
"LinkedList<Data> getDataConfirm(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"dataConfirm.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n return (LinkedList<Data>) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n return null;\r\n \r\n }",
"void loadXML(String path,\n SourceParameters parameters)\n throws SAXException, ProcessingException, IOException;",
"private XMLElement loadPluginDescriptor(String pluginName)\n throws EmuException {\n File file = null;\n for (String projectName : ALL_PROJECTS) {\n file = new File(new File(new File(root, projectName), \"descriptors\"), pluginName + \".xml\");\n if (file.exists()) {\n break;\n }\n }\n if (!file.exists()) {\n throw new EmuException(\"Cannot find plugin descriptor file for '\" +\n pluginName + \"': \" + file.getAbsolutePath());\n }\n BufferedReader br = null;\n try {\n XMLElement elem = new XMLElement();\n br = new BufferedReader(new FileReader(file));\n elem.parseFromReader(br);\n if (!elem.getName().equals(\"plugin\")) {\n throw new EmuException(\"File does not contain a 'plugin' descriptor: \" + file);\n }\n return elem;\n } catch (IOException ex) {\n throw new EmuException(\"Problem reading / parsing plugin descriptor file \" + file, ex);\n } finally {\n try {\n br.close();\n } catch (IOException ex) {\n // ignore\n }\n }\n }",
"public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}",
"public void load (XMLElement myElement,XMLLoader loader) throws XMLTreeException,IOException,XMLInvalidInputException\n\t\t{\twait=myElement.getAttribute(\"wait\").getIntValue();\n\t\t\tmove=myElement.getAttribute(\"move\").getIntValue();\n\t\t\tfitness=myElement.getAttribute(\"fitness\").getFloatValue();\n\t\t\tgenes=(float[])XMLArray.loadArray(this,loader);\n\t\t\tme=(float[][])XMLArray.loadArray(this,loader);\n\t\t}",
"public void readXML() {\n\t try {\n\n\t \t//getting xml file\n\t \t\tFile fXmlFile = new File(\"cards.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t \n\t\t\t//doc.getDocumentElement().normalize(); ???\n\t\t \n\t\t \t//inserting card IDs and Effects into arrays\n\t\t\tNodeList nList = doc.getElementsByTagName(\"card\");\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\tNode nNode = nList.item(i);\n\t\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tElement eElement = (Element) nNode;\n\t\t\t\t\tint id = Integer.parseInt(eElement.getAttribute(\"id\"));\n\t\t\t\t\tString effect = eElement.getElementsByTagName(\"effect\").item(0).getTextContent();\n\t\t\t\t\tidarr.add(id);\n\t\t\t\t\teffsarr.add(effect);\n\t\t\t\t}\n\t\t\t}\n\t } catch (Exception e) {\n\t\t\te.printStackTrace();\n\t }\n }",
"private static void checkLibraryXML() throws IOException{\n File libraryXML = new File(\"src/resources/library.xml\");\n \n\n if (libraryXML.exists()){\n System.out.print(\"library exists\");\n //check to see if we need to add a song to XMl from last run\n \n }\n else{\n System.out.print(\"library does not exist, creating xml\");\n try{\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n \n Element rootElement= doc.createElement(\"library\");\n doc.appendChild(rootElement);\n Element musicLibrary = doc.createElement(\"musicLibrary\");\n rootElement.appendChild(musicLibrary);\n Element songs = doc.createElement(\"songs\");\n rootElement.appendChild(songs);\n Element playlists = doc.createElement(\"playlists\");\n rootElement.appendChild(playlists);\n Element currentPlayingList = doc.createElement(\"currentPlayingList\");\n rootElement.appendChild(currentPlayingList);\n \n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(libraryXML);\n transformer.transform(source, result);\n \n } catch (ParserConfigurationException ex) {\n ex.printStackTrace();\n } catch (TransformerException ex) {\n ex.printStackTrace();\n }\n }\n \n }",
"RapidmlPackage getRapidmlPackage();",
"public SCMLProject load(String xml)\n\t{\n\t\tXmlReader reader = new XmlReader();\n\t\treturn load(reader.parse(xml));\n\t}",
"public static void loadXml(XML xml) {\n if (xml.getChild(\"shortcut\") == null) {\n KyUI.err(\"ShortcutLoader - failed to load shortcut xml : xml has no shortcut section.\");\n return;\n }\n xml=xml.getChild(\"shortcut\");\n XML[] data=xml.getChildren(\"shortcut\");\n for (XML d : data) {\n KyUI.addShortcut(new KyUI.Shortcut(d.getContent(), b(d.getString(\"ctrl\")), b(d.getString(\"alt\")), b(d.getString(\"shift\")), d.getInt(\"key\"), d.getInt(\"keyCode\"), null));\n }\n }",
"public static Object loadObject(String filename) throws XmlParseException, IOException\n {\n return loadObject(new File(filename));\n }",
"public void loadDefault() throws Exception {\r\n\t\tURL tsurl = getClass().getResource(\"/task_states.xml\");\r\n\t\tfromXml(tsurl.openStream());\r\n\t}",
"public void load (File file) throws Exception;",
"@Override\n\tprotected void load() {\n\t\t\n\t}",
"@Override\n\tprotected void load() {\n\t\t\n\t}",
"@Override\n\tprotected void load() {\n\t\t\n\t}",
"private Document getDocument(String in) throws DocumentException, IOException {\n \t\tString path=getClass().getPackage().getName().replaceAll(\"\\\\.\",\"/\");\n \t\tInputStream stream=Thread.currentThread().getContextClassLoader().getResourceAsStream(path+\"/\"+in);\n \t\tSAXReader reader=new SAXReader();\n \t\tDocument doc=reader.read(stream);\n \t\tstream.close();\n \t\treturn doc;\n \t}",
"public void testXML() {\n // check XML Entity Catalogs\n\n // \"Tools\"\n String toolsItem = Bundle.getStringTrimmed(\"org.netbeans.core.ui.resources.Bundle\", \"Menu/Tools\"); // NOI18N\n // \"DTDs and XML Schemas\"\n String dtdsItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogAction_Name\");\n new Action(toolsItem + \"|\" + dtdsItem, null).perform();\n // \"DTDs and XML Schemas\"\n String dtdsTitle = Bundle.getString(\"org.netbeans.modules.xml.catalog.Bundle\", \"LBL_CatalogPanel_Title\");\n NbDialogOperator dtdsOper = new NbDialogOperator(dtdsTitle);\n\n String publicID = \"-//DTD XMLCatalog//EN\";\n Node catalogNode = new Node(new JTreeOperator(dtdsOper),\n \"NetBeans Catalog|\"\n + publicID);\n // view and close it\n new ViewAction().perform(catalogNode);\n new EditorOperator(publicID).close();\n dtdsOper.close();\n\n // create an XML file\n\n // create xml package\n // select Source Packages to not create xml folder in Test Packages\n new SourcePackagesNode(SAMPLE_PROJECT_NAME).select();\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, \"xml\"); // NOI18N\n Node xmlNode = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), \"xml\"); //NOI18N\n // \"XML\"\n String xmlCategory = Bundle.getString(\"org.netbeans.api.xml.resources.Bundle\", \"Templates/XML\");\n // \"XML Document\"\n String xmlDocument = Bundle.getString(\"org.netbeans.modules.xml.resources.Bundle\", \"Templates/XML/XMLDocument.xml\");\n NewFileWizardOperator.invoke(xmlNode, xmlCategory, xmlDocument);\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(\"XMLDocument\"); // NOI18N\n nameStepOper.next();\n nameStepOper.finish();\n // wait node is present\n Node xmlDocumentNode = new Node(xmlNode, \"XMLDocument.xml\"); // NOI18N\n // wait xml document is open in editor\n new EditorOperator(\"XMLDocument.xml\").close(); // NOI18N\n\n // \"Check XML\"\n\n String checkXMLItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Check_XML\");\n // invoke context action to check xml\n new Action(null, checkXMLItem).perform(xmlDocumentNode);\n // \"XML check\"\n String xmlCheckTitle = Bundle.getString(\"org.netbeans.modules.xml.actions.Bundle\", \"TITLE_XML_check_window\");\n // find and close an output with the result of xml check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Validate XML\"\n\n String validateItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_XML\");\n // invoke context action to validate xml\n new Action(null, validateItem).perform(xmlDocumentNode);\n // find and close an output with the result of xml validation\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DTD...\"\n\n String generateDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDTD\");\n new ActionNoBlock(null, generateDTDItem).perform(xmlDocumentNode);\n // \"Select File Name\"\n String selectTitle = Bundle.getString(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_fileNameTitle\");\n NbDialogOperator selectDialog = new NbDialogOperator(selectTitle);\n // name has to be set because of issue http://www.netbeans.org/issues/show_bug.cgi?id=46049\n new JTextFieldOperator(selectDialog).setText(\"DTD\");\n String oKLabel = Bundle.getString(\"org.netbeans.core.windows.services.Bundle\", \"OK_OPTION_CAPTION\");\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait DTD is open in editor\n new EditorOperator(\"DTD.dtd\").close(); // NOI18N\n Node dtdNode = new Node(xmlNode, \"DTD.dtd\"); // NOI18N\n\n // \"Check DTD\"\n\n String checkDTDItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.actions.Bundle\", \"NAME_Validate_DTD\");\n new Action(null, checkDTDItem).perform(dtdNode);\n // find and close an output with the result of dtd check\n new OutputTabOperator(xmlCheckTitle).close();\n\n // \"Generate DOM Tree Scanner\"\n String generateScannerItem = Bundle.getStringTrimmed(\"org.netbeans.modules.xml.tools.generator.Bundle\", \"PROP_GenerateDOMScanner\");\n new ActionNoBlock(null, generateScannerItem).perform(dtdNode);\n selectDialog = new NbDialogOperator(selectTitle);\n new JButtonOperator(selectDialog, oKLabel).push();\n // wait Scanner is open in editor\n new EditorOperator(\"DTDScanner.java\").close(); // NOI18N\n new Node(xmlNode, \"DTDScanner.java\"); // NOI18N\n }",
"public void loadProjectFromElement(Element elementToLoad) {\n workspace.loadWorkspaceFrom(elementToLoad, langDefRoot);\n workspaceLoaded = true;\n }",
"@Override\n\tprotected void load() {\n\n\t}",
"@Override\n\tprotected void load() {\n\n\t}",
"public static Petrinet loadXML(String filename) {\n\t\tIPetrinet ipn = loadXMLInteractive(filename);\n\t\tif(ipn != null) return PetrinetTransform.convert(ipn);\n\t\treturn null;\n\t}",
"void loadConfig() {\r\n\t\tFile file = new File(\"open-ig-mapeditor-config.xml\");\r\n\t\tif (file.canRead()) {\r\n\t\t\ttry {\r\n\t\t\t\tElement root = XML.openXML(file);\r\n\t\t\t\t\r\n\t\t\t\t// reposition the window\r\n\t\t\t\tElement eWindow = XML.childElement(root, \"window\");\r\n\t\t\t\tif (eWindow != null) {\r\n\t\t\t\t\tsetBounds(\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"x\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"y\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"width\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"height\"))\r\n\t\t\t\t\t);\r\n\t\t\t\t\tsetExtendedState(Integer.parseInt(eWindow.getAttribute(\"state\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eLanguage = XML.childElement(root, \"language\");\r\n\t\t\t\tif (eLanguage != null) {\r\n\t\t\t\t\tString langId = eLanguage.getAttribute(\"id\");\r\n\t\t\t\t\tif (\"hu\".equals(langId)) {\r\n\t\t\t\t\t\tui.languageHu.setSelected(true);\r\n\t\t\t\t\t\tui.languageHu.doClick();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tui.languageEn.setSelected(true);\r\n\t\t\t\t\t\tui.languageEn.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSplitters = XML.childElement(root, \"splitters\");\r\n\t\t\t\tif (eSplitters != null) {\r\n\t\t\t\t\tsplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"main\")));\r\n\t\t\t\t\ttoolSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"preview\")));\r\n\t\t\t\t\tfeaturesSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"surfaces\")));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tElement eTabs = XML.childElement(root, \"tabs\");\r\n\t\t\t\tif (eTabs != null) {\r\n\t\t\t\t\tpropertyTab.setSelectedIndex(Integer.parseInt(eTabs.getAttribute(\"selected\")));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eLights = XML.childElement(root, \"lights\");\r\n\t\t\t\tif (eLights != null) {\r\n\t\t\t\t\talphaSlider.setValue(Integer.parseInt(eLights.getAttribute(\"preview\")));\r\n\t\t\t\t\talpha = Float.parseFloat(eLights.getAttribute(\"map\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eMode = XML.childElement(root, \"editmode\");\r\n\t\t\t\tif (eMode != null) {\r\n\t\t\t\t\tif (\"true\".equals(eMode.getAttribute(\"type\"))) {\r\n\t\t\t\t\t\tui.buildButton.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eView = XML.childElement(root, \"view\");\r\n\t\t\t\tif (eView != null) {\r\n\t\t\t\t\tui.viewShowBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"buildings\"))) {\r\n\t\t\t\t\t\tui.viewShowBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewSymbolicBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"minimap\"))) {\r\n\t\t\t\t\t\tui.viewSymbolicBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\trenderer.scale = Double.parseDouble(eView.getAttribute(\"zoom\"));\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewStandardFonts.setSelected(\"true\".equals(eView.getAttribute(\"standard-fonts\")));\r\n\t\t\t\t\tui.viewPlacementHints.setSelected(!\"true\".equals(eView.getAttribute(\"placement-hints\")));\r\n\t\t\t\t\tui.viewPlacementHints.doClick();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSurfaces = XML.childElement(root, \"custom-surface-names\");\r\n\t\t\t\tif (eSurfaces != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eSurfaces, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomSurfaceNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eBuildigns = XML.childElement(root, \"custom-building-names\");\r\n\t\t\t\tif (eBuildigns != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eBuildigns, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomBuildingNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tElement eFilter = XML.childElement(root, \"filter\");\r\n\t\t\t\tif (eFilter != null) {\r\n\t\t\t\t\tfilterSurface.setText(eFilter.getAttribute(\"surface\"));\r\n\t\t\t\t\tfilterBuilding.setText(eFilter.getAttribute(\"building\"));\r\n\t\t\t\t}\r\n\t\t\t\tElement eAlloc = XML.childElement(root, \"allocation\");\r\n\t\t\t\tif (eAlloc != null) {\r\n\t\t\t\t\tui.allocationPanel.availableWorkers.setText(eAlloc.getAttribute(\"worker\"));\r\n\t\t\t\t\tui.allocationPanel.strategies.setSelectedIndex(Integer.parseInt(eAlloc.getAttribute(\"strategy\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eRecent = XML.childElement(root, \"recent\");\r\n\t\t\t\tif (eRecent != null) {\r\n\t\t\t\t\tfor (Element r : XML.childrenWithName(eRecent, \"entry\")) {\r\n\t\t\t\t\t\taddRecentEntry(r.getAttribute(\"file\")); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic String reloadXml(String[] args) {\n\t\treturn null;\n\t}",
"private static void testValidPlaylistFileVersion0() {\n try {\n // create the file\n final InputStream stream = InputStream.class.getResourceAsStream(\"/test.xml\");\n\n JAXBContext jc = JAXBContext.newInstance(\"mediaplayer.jaxb\");\n Unmarshaller u = jc.createUnmarshaller();\n JAXBElement element = (JAXBElement)u.unmarshal(stream);\n PlaylistType playlist = (PlaylistType)element.getValue();\n\n // correct playlist title\n System.err.println(playlist.getVersion());\n System.err.println(playlist.getAnnotation());\n System.err.println(playlist.getImage());\n System.err.println(playlist.getCreator());\n System.err.println(playlist.getDate());\n System.err.println(playlist.getIdentifier());\n if(playlist.getVersion().equalsIgnoreCase(\"1\")) {\n for(Iterator iter = playlist.getTrackList().getTrack().iterator(); iter.hasNext();) {\n TrackType track = (TrackType)iter.next();\n if(track.getTitle() == null) {\n System.err.println(\"testValidPlaylistFileVer0 track title null\");\n }\n if(track.getMeta().size() == 1) {\n System.err.println(\"VPFileVers0 Meta == 1\");\n }\n }\n\n if(playlist.getAttribution().getLocation().size() == 1) {\n System.err.println(\"Playlist Attributionsize location == 1\");\n }\n if(playlist.getTrackList().getTrack().size() == 3) {\n System.err.println(\"Playlist Tracklist Size == 3\");\n }\n\n final Marshaller m = jc.createMarshaller();\n m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n m.marshal(element,System.out); \n }\n } catch(PropertyException e) { System.err.println(e.getMessage()); }\n catch(JAXBException e) { System.err.println(e.getMessage()); }\n }",
"public Resource load(IFile f);",
"@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }",
"private void selectXmlFile() {\n\t\t JFileChooser chooser = new JFileChooser();\n\t\t // ask for a file to open\n\t\t int option = chooser.showSaveDialog(this);\n\t\t if (option == JFileChooser.APPROVE_OPTION) {\n\t\t\t // get pathname and stick it in the field\n\t\t\t xmlfileField.setText(\n chooser.getSelectedFile().getAbsolutePath());\n\t\t } \n }",
"private CardParser() throws ParserConfigurationException, IOException, SAXException{\n\n InputStream configStream = getClass().getClassLoader().getResourceAsStream(\"config.xml\");\n DocumentBuilderFactory domBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder domBuilder = domBuilderFactory.newDocumentBuilder();\n Document dom = domBuilder.parse(configStream);\n dom.getDocumentElement().normalize();\n config = getChildNode(\"config\", dom)\n .orElseThrow(() -> new IllegalConfigXMLException(\"Missing root config node\"));\n }",
"public void load()\n\t{\n\t\ttry {\n\t\t\tIFile file = project.getFile(PLAM_FILENAME);\n\t\t if (file.exists()) {\n\t\t\t\tInputStream stream= null;\n\t\t\t\ttry {\n\t\t\t\t\tstream = new BufferedInputStream(file.getContents(true));\n\t\t\t\t SAXReader reader = new SAXReader();\n\t\t\t\t Document document = reader.read(stream);\n\t\t\t\t \n\t\t\t\t Element root = document.getRootElement();\n\n\t\t\t\t String url = root.elementTextTrim(\"server-url\");\n\t\t\t\t setServerURL((url != null) ? new URL(url) : null);\n\t\t\t\t \n\t\t\t\t setUserName(root.elementTextTrim(\"username\"));\n\t\t\t\t setPassword(root.elementTextTrim(\"password\"));\n\t\t\t\t setProductlineId(root.elementTextTrim(\"pl-id\"));\n \n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t if (stream != null)\n\t\t\t\t stream.close();\n\t\t\t\t}\n\t\t }\n\t\t} catch (DocumentException e) {\n\t\t\tlogger.info(\"Error while parsing PLAM config.\", e);\n\t\t} catch (IOException e) {\n\t\t}\n\t}",
"@Override\r\n\tpublic void load() {\n\r\n\t}",
"static String readXML(String keyName){\n File fXmlFile = new File(\".\"+ConstantsClass.PATHWAY_TO_AUXILIARY_FILES+\"/configuration.xml\");\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n Document doc = null;\n try {\n doc = dBuilder.parse(fXmlFile);\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n doc.getDocumentElement().normalize();\n return doc.getElementsByTagName(keyName).item(0).getTextContent();\n }",
"public Element readFromEditorFile(String filePath) {\n Element element = null;\n File file = new File(filePath);\n\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"MainEditor\");\n Node nNode = nList.item(0);\n element = (Element) nNode;\n\n } catch (Exception e) {\n element = null;\n e.printStackTrace();\n }\n\n return element;\n }",
"protected StringBuilder loadElement(\r\n \tString\t\t\tpElementFile\r\n ,\tStringBuilder\tpBuffer\r\n ) {\r\n\t\tif ( pElementFile != null ) try {\r\n\t\t\tpBuffer.append( pElementFile );\r\n\t\t\t\r\n\t\t\t// Suppress any asset caching\r\n\t \tNonCachingKey aKey = new NonCachingKey( pElementFile );\r\n\t \tObject aNode = assetManager.loadAsset( aKey );\r\n\t \t\r\n\t \tif ( aNode instanceof CSGEnvironment ) {\r\n\t \t\tCSGEnvironment.resetEnvironment( (CSGEnvironment)aNode );\r\n\t \t\tCSGVersion.reportVersion();\r\n\r\n\t \t\tpBuffer.append( \" *** Processing Environment Reset\" );\r\n\t \t\t\r\n\t \t} else if ( aNode instanceof Spatial ) {\r\n\t \tif ( aNode instanceof CSGElement ) {\r\n\t \t\t// We know a bit more about Elements\r\n\t \t\tmActiveElement = (CSGElement)aNode;\r\n\t \t\tmActiveElement.regenerate( true, CSGEnvironment.resolveEnvironment() );\r\n\t \t\t\r\n\t \t\t\tif ( mActiveElement.isValid() ) {\r\n\t \t\t\t\t// Include timing\r\n\t \t\t\t\tpBuffer.append( \" (\" + (mActiveElement.getShapeRegenerationNS() / 1000000) + \"ms)\" );\r\n\t \t\t\t\t\r\n\t \t\t\t\t// Assign physics if active\r\n\t \t\t\t\tif ( mPhysicsState != null ) {\r\n\t \t\t\t\t\tthis.applyPhysics( mActiveElement );\r\n\t \t\t\t\t}\r\n\t \t\t\t} else {\r\n\t \t\t\t\t// Something bogus in the construction\r\n\t \t\t\t\tpBuffer.append( \" *** Invalid shape: \" );\r\n\t \t\t\t\tCSGConstructionException.reportError( mActiveElement.getError(), \" // \", pBuffer );\r\n\t \t\t\t}\r\n\t \t\t\tmActiveElement = null;\r\n\t \t}\r\n\t \t\t// Register this to be attached to the view scene\r\n\t\t \tmLoadedSpatial = (Spatial)aNode;\t\t \t\t\r\n\t \t\t\r\n\t \t} else if ( aNode instanceof SceneProcessor ) {\r\n\t \t\tLight aLight = null;\r\n\t \t\tif ( aNode instanceof PointLightShadowRenderer ) {\r\n\t \t\t\taLight = ((PointLightShadowRenderer)aNode).getLight();\r\n\t \t\t} else if ( aNode instanceof DirectionalLightShadowRenderer ) {\r\n\t \t\t\taLight = ((DirectionalLightShadowRenderer)aNode).getLight();\r\n\t \t\t}\r\n\t \t\tif ( aLight != null ) {\r\n\t \t\t\trootNode.addLight( aLight );\r\n\t \t\t}\r\n\t \t\tviewPort.addProcessor( (SceneProcessor)aNode );\r\n\t \t\t\r\n\t \t\tpBuffer.append( \" *** SceneProcessor added\" );\r\n\t \t\t\r\n\t \t} else if ( aNode instanceof Filter ) {\r\n\t \t\tLight aLight = null;\r\n\t \t\tif ( aNode instanceof PointLightShadowFilter ) {\r\n\t \t\t\taLight = ((PointLightShadowFilter)aNode).getLight();\r\n\t \t\t}\r\n\t \t\tif ( aLight != null ) {\r\n\t \t\t\trootNode.addLight( aLight );\r\n\t \t\t}\r\n\t FilterPostProcessor fpp = new FilterPostProcessor( assetManager );\r\n\t fpp.addFilter( (Filter)aNode );\r\n\t viewPort.addProcessor( fpp );\r\n\r\n\t pBuffer.append( \" *** PostFilter added\" );\r\n\t \t}\r\n \t} catch( Exception ex ) {\r\n \t\tpBuffer.append( \" ***Load Scene Failed: \" + ex );\r\n \t\tex.printStackTrace( System.err );\r\n\r\n\t\t} finally {\r\n\t\t\tmLoadingScene = null;\r\n\t\t} else {\r\n\t\t\t// Nothing loaded\r\n\t\t\treturn( null );\r\n\t\t}\r\n\t\treturn( pBuffer );\r\n }",
"protected abstract Type loadDefaultElement();",
"public void load(String filename){\n //Create a file if its not already on disk\n File extDir = new File(this.getFilesDir(), filename);\n\n //Read text from file\n StringBuilder text = new StringBuilder();\n\n\n //Needs lots of try and catch blocks because so much can go wrong\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(extDir));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }//end while\n\n br.close();//Close the buffer\n }//end try\n catch (FileNotFoundException e){//If file not found on disk here.\n Toast.makeText(this, \"There was no data to load\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n\n catch (IOException e)//If io Exception here\n {\n Toast.makeText(this, \"Error loading file\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }//end catch\n\n\n //Set the data from the file content and conver it to a String\n String data = new String(text);\n\n //Safety first Parse data if available.\n if (data.length() > 0) {\n parseXML(data);\n }\n else\n Toast.makeText(this, \"There is no data to display\", Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\tpublic void load() {\n\t}",
"public SCMLProject load(Element root)\n\t{\n\t\tthis.currentProject = new SCMLProject();\n\n\t\tloadAssets(root.getChildrenByName(\"folder\"));\n\t\tloadEntities(root.getChildrenByName(\"entity\"));\n\n\t\treturn currentProject;\n\t}",
"File getLoadLocation();",
"public static Document loadXmlFile(String fname) {\r\n try {\r\n Document doc = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder().parse(fname);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }",
"public IResource getResource();",
"public void process(final String filename) throws JDOMException, IOException {\n\n // Parsing our XML file being located below \"resources\"\n final Document docInput = builder.build(\n getClass().getClassLoader().getResource(filename)\n );\n\n // Accessing the document's root element <catalog>\n final Element docRoot = docInput.getRootElement();\n\n // Accessing the <item> children of parent element <catalog>\n docRoot.getChildren().stream().\n map(item -> \"Article: \" + item.getText() +\n \", order number: \" + item.getAttributeValue(\"orderNo\")).\n forEach(System.out::println);\n }",
"public void readXML(String xml){\n\t\tint maxId = 0;\n\t\ttry {\n \tFile xmlFile = new File(xml); \n \tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n \tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n \tDocument doc = documentBuilder.parse(xmlFile); \n \tdoc.getDocumentElement().normalize();\n \tNodeList nodeList = doc.getElementsByTagName(\"node\");\n \tHashMap<Integer,Artifact> artifactTable = new HashMap<Integer, Artifact>();\n \tHashMap<Integer,Element> nodeTable = new HashMap<Integer, Element>();\n \n \tfor (int i = 0; i < nodeList.getLength(); i++) { \n \t\tNode xmlItem = nodeList.item(i);\n \t\tif (xmlItem.getNodeType() == Node.ELEMENT_NODE) { \n \t\t\tElement node = (Element) xmlItem;\n \t\t\tArtifact newNode = new Artifact(Rel.getContext());\n \t\t\tRel.addView(newNode,100,100);\n \t\t\tnewNode.setId(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent()));\n \t\t\tnewNode.setPrevWidth(100);\n \t\t\tnewNode.setPrevHeight(100);\n \t\t\tnewNode.setTag(\"node\");\n \t\t\tnewNode.setText(node.getElementsByTagName(\"label\").item(0).getTextContent());\n \t\t\tnewNode.setType(node.getElementsByTagName(\"type\").item(0).getTextContent());\n \t\t\tnewNode.setInformation(node.getElementsByTagName(\"information\").item(0).getTextContent());\n \t\t\tnewNode.setPosition(node.getElementsByTagName(\"position\").item(0).getTextContent());\n \t\t\tnewNode.setAge(Long.parseLong(node.getElementsByTagName(\"age\").item(0).getTextContent()));\n \t\t\tnewNode.setBackgroundResource(Utility.getDrawableType(newNode));\n \t\t\tif(\"\".compareTo((String) newNode.getText()) != 0){\n \t\t\t\tnewNode.matchWithText();\n \t\t\t}\n \t\t\tartifactTable.put(newNode.getId(), newNode);\n \t\t\tnodeTable.put(newNode.getId(), node);\n \t\t\tif(Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent())>maxId){\n \t\t\t\tmaxId = Integer.parseInt(node.getElementsByTagName(\"id\").item(0).getTextContent());\n \t\t\t}\n \t\t} \n \t\t\n \t}\n \t\n \t//once we created all the artifacts now we can set the fathers and sons for every node with the artifact and xmlnode tables we have filled while reading\n \tIterator it = artifactTable.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry pairs = (Map.Entry)it.next();\n NodeList sonsList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"son\");\n if(sonsList != null){\n\t for (int j = 0; j < sonsList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addSon(artifactTable.get(Integer.parseInt(sonsList.item(j).getTextContent())));\n\t }\n }\n \n NodeList fathersList = nodeTable.get(pairs.getKey()).getElementsByTagName(\"father\");\n if(fathersList != null){\n\t for (int j = 0; j < fathersList.getLength(); j++) {\n\t \tartifactTable.get(pairs.getKey()).addFather(artifactTable.get(Integer.parseInt(fathersList.item(j).getTextContent())));\n\t }\n }\n \n }\n \n \n }catch(Exception e){\n \tLog.v(\"error reading xml\",e.toString());\n }\n\t\tGlobal.ID = maxId+1;\n\t}",
"protected abstract String getResourcePath();"
] | [
"0.6226146",
"0.60405487",
"0.60343945",
"0.60013473",
"0.5867085",
"0.5830823",
"0.58268386",
"0.58069503",
"0.57690763",
"0.5768823",
"0.5767677",
"0.5552329",
"0.55283564",
"0.5522237",
"0.55046755",
"0.5504177",
"0.5480665",
"0.54514164",
"0.54351443",
"0.5433039",
"0.5415289",
"0.54003555",
"0.5394355",
"0.5344879",
"0.5343343",
"0.53367",
"0.5324421",
"0.53077173",
"0.529843",
"0.5285187",
"0.5279477",
"0.5278772",
"0.52711225",
"0.52711225",
"0.5264617",
"0.5254998",
"0.5246053",
"0.5243908",
"0.5238394",
"0.5238394",
"0.5229667",
"0.5229089",
"0.5214347",
"0.5210453",
"0.5198881",
"0.51784414",
"0.5171917",
"0.5160211",
"0.5147456",
"0.51455283",
"0.5138284",
"0.5123718",
"0.5116835",
"0.5114244",
"0.51134986",
"0.51117194",
"0.5109611",
"0.5109009",
"0.5104537",
"0.510396",
"0.5083302",
"0.507407",
"0.50594777",
"0.50516367",
"0.5048098",
"0.50437766",
"0.5038008",
"0.5035547",
"0.5034519",
"0.5026064",
"0.5026064",
"0.5026064",
"0.5022553",
"0.50179136",
"0.5017414",
"0.5012505",
"0.5012505",
"0.50035006",
"0.5000224",
"0.49998862",
"0.49905187",
"0.49904373",
"0.49888015",
"0.49559498",
"0.4947322",
"0.49467233",
"0.49441308",
"0.4942059",
"0.49401924",
"0.49400052",
"0.4938593",
"0.49385014",
"0.49376866",
"0.49314398",
"0.49234992",
"0.4923291",
"0.49177873",
"0.49166352",
"0.4911674",
"0.4891083"
] | 0.5876229 | 4 |
/ access modifiers changed from: protected | public void onBoundsChange(Rect bounds) {
this.boxWidth = bounds.width();
this.boxHeight = bounds.height() - this.pointerHeight;
super.onBoundsChange(bounds);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
] | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
] | 0.0 | -1 |
Constructor for class MessageTransportLayer | public MessageTransportLayer(ServiceID routingServiceID,
ServiceID unicastRoutingAlgorithmID,
ServiceID anyCastRoutingRoutingAlgorithmID,
ServiceID locationFloodingRoutingAlgorithmID,
ServiceID multicastRoutingServiceID, double defaultTimeout) {
this.routingServiceID=routingServiceID;
this.unicastRoutingAlgorithmID=unicastRoutingAlgorithmID;
this.anyCastRoutingRoutingAlgorithmID=anyCastRoutingRoutingAlgorithmID;
this.locationFloodingRoutingAlgorithmID=locationFloodingRoutingAlgorithmID;
this.multicastRoutingServiceID=multicastRoutingServiceID;
this.defaultTimeout=defaultTimeout;
pendingUnicasts=new HashMap();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ServiceMessage() {\r\n\t}",
"public MultiChannelMessageImpl() {\n }",
"public MessageRequest() {\n\t}",
"private SocketMessage() {\n initFields();\n }",
"public HazelcastMQMessage() {\n this(new DefaultHeaders(), null);\n }",
"public MessageTran() {\n\t}",
"public Transportation(NetworkLayers.LAYER_DIRECTION layerDirection) {\n frame = MinT.getInstance();\n this.networkManager = frame.getNetworkManager();\n this.scheduler = frame.getSystemScheduler();\n \n if (layerDirection == NetworkLayers.LAYER_DIRECTION.RECEIVE) {\n syshandle = new SystemHandler();\n routing = networkManager.getRoutingProtocol();\n sharing = networkManager.getSharing();\n }\n\n if (layerDirection == NetworkLayers.LAYER_DIRECTION.SEND) {\n serialization = new MatcherAndSerialization(layerDirection);\n// if(frame.isBenchMode()){\n// bench_send = new PacketPerform(\"Trans-sender\");\n// frame.addPerformance(MinT.PERFORM_METHOD.Trans_Sender, bench_send);\n// }\n }\n }",
"public AmqpMessage() {}",
"public FlowMonMessage(){}",
"public Message() {\n\t\tsuper();\n\t}",
"public Message(){}",
"public Message() {\n }",
"public Message() {\n }",
"public Message() {\n }",
"public SystemMessage() {\r\n\t}",
"public Message() {}",
"public Message() {}",
"public MessageManager() {\n }",
"private Message(){\n // default constructor\n }",
"public MessageEntity() {\n }",
"public QueueSenderSession ()\r\n {\r\n\r\n\r\n }",
"public Message() {\n\tkey = MessageKey.NULL;\n\tdata = null;\n\n\tattachment = null;\n }",
"public LCAmsg2 () { }",
"public FIXMessageUtil() {\r\n }",
"public CallMessage() {\n\t}",
"public AbstractMessageProducer() {\n }",
"public MessageInfo() { }",
"public ImMessage() {\r\n }",
"public TTL_CIL_Communicator()\n {\n }",
"private MessageFeatureMap() {}",
"ClientMessageSender() {\n\n\t}",
"public MassMsgFrame() {\n\t}",
"public TrackedMessage(int messageType) {\n\tsuper(messageType);\n }",
"public MessageService()\n {\n messages.put(1L, new Message(1, \"Hello World!\", \"Marc\"));\n messages.put(2L, new Message(2, \"Hello Embarc!\", \"Kevin\"));\n messages.put(3L, new Message(3, \"Hello Luksusowa!\", \"Sid\"));\n messages.put(4L, new Message(4,\n \"I think Sid might have a bit too much blood in his alcohol-stream...\", \"Craig\"));\n }",
"public MessageResponse() {\r\n\t}",
"public CryptoSchemeMsg () { }",
"public Message(){\n\t\ttimeStamp = System.currentTimeMillis();\n\t}",
"public LockLayer() {\n }",
"public MessageBus()\r\n\t{\r\n\t\tthis(null);\r\n\t}",
"public EuclideanTrajectoryPointMessage()\n {\n }",
"@SuppressWarnings(\"unused\")\r\n\tprivate TransporterException(){\r\n\t\t\r\n\t}",
"public SocketParams() {\n init();\n }",
"public MailMessage() {\n }",
"public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }",
"public MessageDestinationFactory() {\n this.properties = new ConfigMap();\n }",
"private LinkLayer() {\r\n }",
"public SmsSendRequestDto() {\n super();\n }",
"public TriggerMessage() {\n\t}",
"public ResolverSrdiMsgImpl() {\r\n }",
"public Communicator() {\n\t}",
"private MessageBusImpl() \r\n\t{\r\n\t\tthis.map = new ConcurrentHashMap<MicroService, LinkedBlockingQueue<Message>>();\r\n\t\tthis.MessageToMSQ = new ConcurrentHashMap<Class<? extends Message>, RoundRobinQueue<MicroService>>();\r\n\t\tthis.ReqToRequester = new ConcurrentHashMap<Request<?>, MicroService>();\r\n\t}",
"public NetworkMessage(){\n\t\tthis.user = null;\n\t}",
"public WifiProtocol(){\r\n// messages = new String[100];\r\n// index = 0;\r\n }",
"public MessageRecord() {\n super(Message.MESSAGE);\n }",
"public NetworkSource() {\n }",
"public MessageHandler() {\n }",
"public Packet() {\n\t}",
"public CommunicationException() {\r\n\t\tsuper();\r\n\t}",
"public FeedbackMessages()\n\t{\n\t}",
"protected AmqpTransportConfig() {\n\t\tsuper();\n\t}",
"public WebSocketRPC() {\n\t}",
"public TestCaseSocket() {\n\t}",
"private TelemetryMessageHandler(){\n super();\n messageList = new TelemetryMessageList();\n telemetryArrivalMap = new TelemetryArrivalMap();\n }",
"private Message(Parcel in) {\n text = in.readString();\n sender = in.readString();\n target = in.readString();\n sendersLatitude = in.readDouble();\n sendersLongitude = in.readDouble();\n numHops = in.readInt();\n expirationTime = in.readLong();\n createdByUser = in.readInt();\n }",
"public TPMTransportLog( byte[] source )\r\n {\r\n this.fromBytes( source, 0 );\r\n }",
"public MessageCenter( String name )\n {\n receiver_table = new Hashtable<Object,Vector<IReceiveMessage>>();\n message_table = new Hashtable<Object,Vector<Message>>();\n sender_receiver_table = null;\n sender_message_table = null;\n center_name = name;\n }",
"public MessageParseException() {\n }",
"public MessageDispatcher ()\n\t{\n\t\tthis (new MessageThreadFactory ());\n\t}",
"public Message(Socket s, Packet p) {\n // userName = \"\";\n socket = s;\n packet = p;\n }",
"public Communicator() {\n }",
"public Communicator() {\n }",
"private DiagnosticMessageUtilities()\n {\n }",
"public MQMsg() {\n\n messageType = \" \";\n service = \"SSSSSSSS\";\n serverUser = \"UUUUUUUU\";\n serverPassword = \"PPPPPPPP\";\n serverAppl = \"AAAAAAAA\";\n cicsTrx = \"CICS\";\n timeout = 30;\n retcode = 0;\n data = \"\";\n\n }",
"public NMQModuleClient() {\r\n }",
"public Protocol() {\n super();\n ADDRESS_PREFIX = \"sms://\";\n }",
"public BaseContract() {}",
"public NetworkData() {\n }",
"public SMTPEmailTransport()\n throws EmailException\n {\n this(\"localhost\");\n }",
"public JNICfeMessageTransport(int timeout) throws RemoteException {\n super();\n XmlMessageBuilder messageBuilder = new XmlMessageBuilder(timeout);\n CfeXmlMessageParser messageParser = new CfeXmlMessageParser();\n JNICfeApi api = new JNICfeApi();\n \n setMessageParser(messageParser);\n setMessageBuilder(messageBuilder);\n \n api.setMessageBuilder(messageBuilder);\n messageParser.setCfeApi(api);\n }",
"public MessageService(PlatformTransactionManager transactionManager) {\n this.transactionTemplate = new TransactionTemplate(transactionManager);\n }",
"private Message(MessageType handle, String srcName) {\n this(handle, srcName, null);\n }",
"private NamedQueueClient(String name) throws MessageServiceException {\n try {\n this.jndiUrl = QueueManager.JNDI_URL;\n this.name = name;\n } catch (Exception ex) {\n throw new MessageServiceException(\n \"Failed to instanciate the NamedQueueClient : \" + \n ex.getMessage(),ex);\n }\n }",
"public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }",
"public LsAcknowledge() {\n }",
"public LpsClient() {\n super();\n }",
"private Message(MessageType handle) {\n this(handle, null, null);\n }",
"public AmqpMessage()\n {\n this(Proton.message(), null, null);\n setDurable(true);\n }",
"public LCMultiblockPacket() {\n\t}",
"@Inject\n\tMessageImpl() {\n\t\tbundle = getBundle(BASE_NAME);\n\t}",
"public PromoMessages() {\n }",
"public MessageClackData() {\n super();\n this.message = DEFAULT_MESSAGE;\n }",
"public UDPLayer() \n\t\tthrows SocketException\n\t{\n\t\tthis(0, true); // use any available port on the local host machine\n\t\t// TODO use -1 instead of 0?\n\t}",
"public WfController( MsgObject thisMessage )\n {\n messageObject = thisMessage;\n }",
"protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }",
"public HGDClient() {\n \n \t}",
"public ExchangeDesk(){\n }",
"public KaChingContract() {\n\t}",
"public Message(MessageType messageType, byte[] payload) {\n\t this.messageType = messageType;\n\t this.payloadLength = ByteBuffer.allocate(4).putInt(payload.hashCode()).array();\n\t this.payload = payload;\n\t}",
"public LayerDto() {}",
"public JobServiceBusMessage() {\n this.setCustomMessageProperties(new LazyHashMap<String, String>());\n }"
] | [
"0.68315613",
"0.67590934",
"0.67044777",
"0.6660222",
"0.6645371",
"0.6630748",
"0.66304684",
"0.6569585",
"0.64940107",
"0.64708537",
"0.64493686",
"0.64180547",
"0.64180547",
"0.641773",
"0.6395443",
"0.6363291",
"0.6363291",
"0.63512886",
"0.6345141",
"0.6326721",
"0.63016146",
"0.6300503",
"0.6288454",
"0.62823045",
"0.6232382",
"0.6229743",
"0.62092733",
"0.6169645",
"0.6154796",
"0.61365086",
"0.61351055",
"0.6105862",
"0.61002326",
"0.60873055",
"0.6084592",
"0.60649985",
"0.6053445",
"0.6049568",
"0.6041748",
"0.60363084",
"0.6034266",
"0.6011872",
"0.6006256",
"0.6002672",
"0.59979725",
"0.5969312",
"0.5944752",
"0.5935881",
"0.5921941",
"0.5892857",
"0.5861653",
"0.5860721",
"0.5859791",
"0.58582455",
"0.5854931",
"0.5851259",
"0.5850343",
"0.5841062",
"0.5832076",
"0.5829978",
"0.58242214",
"0.5823344",
"0.58230263",
"0.5819",
"0.5816821",
"0.5804909",
"0.5804151",
"0.57925117",
"0.5790235",
"0.5788739",
"0.5788739",
"0.5783827",
"0.577604",
"0.5769966",
"0.57681835",
"0.575865",
"0.57551056",
"0.57470256",
"0.5740412",
"0.5736759",
"0.5732245",
"0.5731454",
"0.57285714",
"0.57102627",
"0.5706796",
"0.5704099",
"0.57040113",
"0.5693981",
"0.569288",
"0.56914264",
"0.56905",
"0.5685141",
"0.56757736",
"0.56732124",
"0.5655759",
"0.56531996",
"0.5647909",
"0.56432456",
"0.5638384",
"0.56354153"
] | 0.6317966 | 20 |
TODO Autogenerated method stub | public void deliverLocally(RoutingHeader routingHeader) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void routingStarted(RoutingHeader routingHeader) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void routingStarted(RoutingHeader routingHeader) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public ServiceID getServiceID() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void finish() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public Shape getShape() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void getParameters(Parameters parameters) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
mmh was passiert hier!?! | public void ignoreLocally(RoutingHeader routingHeader) {
callbackHandler.notifyUnicastLost(routingHeader,data);
operatingSystem.finishListener(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void cajas() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"void berechneFlaeche() {\n\t}",
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void trenneVerbindung();",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"public void mo38117a() {\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public void mo4359a() {\n }",
"@Override\n\tpublic void yürü() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void trabajar() {\n\n\t}",
"public void mo12628c() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo55254a() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void baocun() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"static void feladat9() {\n\t}",
"public void sendeSpielfeld();",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo21877s() {\n }",
"public void mo97908d() {\n }",
"public void sendeFehlerHelo();",
"private zza.zza()\n\t\t{\n\t\t}",
"public void mo12930a() {\n }",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"private void logika_rozpocznij(){\n\t}",
"public void mo6081a() {\n }",
"void zmniejszBieg();",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"protected void mo6255a() {\n }",
"public void furyo ()\t{\n }",
"public void mo21779D() {\n }",
"@Override\n\tpublic void pausaParaComer() {\n\n\t}",
"protected boolean func_70041_e_() { return false; }",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"public String editar()\r\n/* 441: */ {\r\n/* 442:445 */ return null;\r\n/* 443: */ }",
"public void mo9848a() {\n }",
"public void method_4270() {}",
"public void mo21782G() {\n }",
"public void skystonePos6() {\n }",
"public void smell() {\n\t\t\n\t}",
"public void mo21783H() {\n }",
"public void mo21878t() {\n }",
"public void mo21785J() {\n }",
"private void remplirUtiliseData() {\n\t}",
"public void mo3749d() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"public void skystonePos4() {\n }",
"@Override\n\tpublic void nhanTinNhan() {\n\n\t}",
"public void mo21787L() {\n }",
"public abstract void mo70713b();"
] | [
"0.6638622",
"0.62334186",
"0.62189025",
"0.6202228",
"0.61643827",
"0.6109036",
"0.6107807",
"0.6098843",
"0.609261",
"0.6061196",
"0.6052165",
"0.60474586",
"0.59922314",
"0.5990598",
"0.5961734",
"0.5936895",
"0.5936895",
"0.5933608",
"0.59277076",
"0.5918801",
"0.59172475",
"0.59007007",
"0.58883756",
"0.5884515",
"0.5877698",
"0.5848631",
"0.58398134",
"0.58356637",
"0.5824494",
"0.58187383",
"0.5793518",
"0.57931954",
"0.57899463",
"0.57747865",
"0.57148015",
"0.57148015",
"0.57148015",
"0.57148015",
"0.57148015",
"0.57148015",
"0.57148015",
"0.5694956",
"0.5688651",
"0.5674383",
"0.5670341",
"0.56693035",
"0.5663293",
"0.56532246",
"0.5645602",
"0.5644048",
"0.5643581",
"0.564262",
"0.56396157",
"0.5630044",
"0.56289554",
"0.5585104",
"0.5579078",
"0.5571506",
"0.55710334",
"0.55656445",
"0.55619866",
"0.55559593",
"0.55525124",
"0.5551506",
"0.5551506",
"0.5544719",
"0.5544428",
"0.55383253",
"0.5534802",
"0.5525613",
"0.5516038",
"0.55049413",
"0.5503344",
"0.5500922",
"0.5500436",
"0.5491764",
"0.54870725",
"0.5483611",
"0.547977",
"0.54771614",
"0.5476692",
"0.547455",
"0.5468448",
"0.54640913",
"0.54640436",
"0.54637337",
"0.54593664",
"0.54484695",
"0.5445917",
"0.5443406",
"0.54396814",
"0.54382694",
"0.5436325",
"0.5433097",
"0.5432103",
"0.5426458",
"0.54232436",
"0.54214966",
"0.5413545",
"0.541239",
"0.5408492"
] | 0.0 | -1 |
create activity rest api | @PostMapping("/activities")
public Activity createActivity(@RequestBody Activity activity) {
return activityRepository.save(activity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Post \n public JsonRepresentation createActivity(Representation entity) {\n \tJSONObject jsonReturn = new JSONObject();\n \tlog.info(\"createActivity(@Post) entered ..... \");\n\t\tEntityManager em = EMF.get().createEntityManager();\n\t\t\n\t\tString apiStatus = ApiStatusCode.SUCCESS;\n\t\tthis.setStatus(Status.SUCCESS_CREATED);\n\t\tUser currentUser = null;\n try {\n \t\tcurrentUser = (User)this.getRequest().getAttributes().get(RteamApplication.CURRENT_USER);\n \t\tif(currentUser == null) {\n\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n \t\t\tlog.severe(\"user could not be retrieved from Request attributes!!\");\n \t\t}\n \t\t//::BUSINESSRULE:: user must be network authenticated to send a message\n \t\telse if(!currentUser.getIsNetworkAuthenticated()) {\n \t\t\tapiStatus = ApiStatusCode.USER_NOT_NETWORK_AUTHENTICATED;\n \t\t}\n \t\t// teamId is required if this is 'Create a new activity' API\n \t\telse if(this.userVote == null) {\n \t\tif(this.teamId == null || this.teamId.length() == 0) {\n \t\t\t\tapiStatus = ApiStatusCode.TEAM_ID_REQUIRED;\n \t\t} else if(!currentUser.isUserMemberOfTeam(this.teamId)) {\n \t\t\t\tapiStatus = ApiStatusCode.USER_NOT_MEMBER_OF_SPECIFIED_TEAM;\n \t\t\t\tlog.info(apiStatus);\n \t}\n \t\t}\n \t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_CREATED)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n \t\tJsonRepresentation jsonRep = new JsonRepresentation(entity);\n\t\t\tJSONObject json = jsonRep.toJsonObject();\n\n\t\t\t//////////////////////////////////////////\n \t\t// 'Get Status of Activities for User' API\n \t\t//////////////////////////////////////////\n \t\tif(this.userVote != null) {\n \t\t\t// remainder of processing for this API is delegated to another method\n \t\t\tgetStatusOfActivitiesForUser(currentUser, json, jsonReturn);\n \t\t\treturn new JsonRepresentation(jsonReturn);\n \t\t}\n \t\t\n\t\t\tTeam team = (Team)em.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t.setParameter(\"key\", KeyFactory.stringToKey(this.teamId))\n\t\t\t\t.getSingleResult();\n\t\t\tlog.info(\"team retrieved = \" + team.getTeamName());\n\t\t\t\n\t\t\tString statusUpdate = null;\n\t\t\tif(json.has(\"statusUpdate\")) {\n\t\t\t\tstatusUpdate = json.getString(\"statusUpdate\");\n\t\t\t}\n\t\t\t\n\t\t\tString photoBase64 = null;\n\t\t\tif(json.has(\"photo\")) {\n\t\t\t\tphotoBase64 = json.getString(\"photo\");\n\t\t\t}\n\t\t\t\n\t\t\tBoolean isPortrait = null;\n\t\t\tif(json.has(\"isPortrait\")) {\n\t\t\t\tisPortrait = json.getBoolean(\"isPortrait\");\n\t\t\t\tlog.info(\"json isPortrait = \" + isPortrait);\n\t\t\t}\n\n\t\t\tString videoBase64 = null;\n\t\t\tif(json.has(\"video\")) {\n\t\t\t\tvideoBase64 = json.getString(\"video\");\n\t\t\t}\n\t\t\t\n\t\t\t// Enforce Rules\n\t\t\tif((statusUpdate == null || statusUpdate.length() == 0) && (photoBase64 == null || photoBase64.length() == 0)) {\n\t\t\t\tapiStatus = ApiStatusCode.STATUS_UPDATE_OR_PHOTO_REQUIRED;\n\t\t\t\tlog.info(\"required statusUpdate or photo field required\");\n\t\t\t} else if(statusUpdate != null && statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT){\n\t\t\t\tapiStatus = ApiStatusCode.INVALID_STATUS_UPDATE_MAX_SIZE_EXCEEDED;\n\t\t\t} else if(videoBase64 != null && photoBase64 == null) {\n\t\t\t\tapiStatus = ApiStatusCode.VIDEO_AND_PHOTO_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t} else if(photoBase64 != null && isPortrait == null) {\n\t\t\t\tapiStatus = ApiStatusCode.IS_PORTRAIT_AND_PHOTO_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t}\n \t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_CREATED)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n\t\t\t// No anonymous Activity posts.\n\t\t\t// TODO once twitter API supports the meta data, then user name will not have to be inserted into update\n\t\t\tif(statusUpdate == null || statusUpdate.length() == 0) {\n\t\t\t\tstatusUpdate = currentUser.getFullName() + \" shared a photo fr loc \" + TF.getPassword();\n\t\t\t} else {\n\t\t\t\tstatusUpdate = currentUser.getDisplayName() + \" post: \" + statusUpdate;\n\t\t\t}\n\t\t\t\n\t\t\t///////////////////////////////////////////////////////////////////\n\t\t\t// Cache the activity post whether the team is using Twitter or not\n\t\t\t///////////////////////////////////////////////////////////////////\n\t\t\t// abbreviate only if necessary\n\t\t\tif(statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT) {\n\t\t\t\tstatusUpdate = Language.abbreviate(statusUpdate);\n\t\t\t}\n\t\t\t\t\n\t\t\tActivity newActivity = new Activity();\n\t\t\tnewActivity.setText(statusUpdate);\n\t\t\tnewActivity.setCreatedGmtDate(new Date());\n\t\t\tnewActivity.setTeamId(this.teamId);\n\t\t\tnewActivity.setTeamName(team.getTeamName());\n\t\t\t\n\t\t\t// cacheId held in team is the last used.\n\t\t\tLong cacheId = team.getNewestCacheId() + 1;\n\t\t\tnewActivity.setCacheId(cacheId);\n\t\t\tteam.setNewestCacheId(cacheId);\n\t\t\t\n\t\t\t// Only send activity to Twitter if team is using Twitter\n\t\t\ttwitter4j.Status twitterStatus = null;\n\t\t\tif(team.getUseTwitter()) {\n\t\t\t\t// truncate if necessary\n\t\t\t\tif(statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT) {\n\t\t\t\t\tstatusUpdate = statusUpdate.substring(0, TwitterClient.MAX_TWITTER_CHARACTER_COUNT - 2) + \"..\";\n\t\t\t\t}\n\n\t\t\t\ttwitterStatus = TwitterClient.updateStatus(statusUpdate, team.getTwitterAccessToken(), team.getTwitterAccessTokenSecret());\n\t\t\t\t\n\t\t\t\t// if Twitter update failed, log error, but continue because activity post will be stored by rTeam\n\t\t\t\tif(twitterStatus == null) {\n\t\t\t\t\tlog.severe(\"Twitter update failed, but continuing on ...\");\n\t\t\t\t\tapiStatus = ApiStatusCode.TWITTER_ERROR;\n\t\t\t\t} else {\n\t\t\t\t\tnewActivity.setTwitterId(twitterStatus.getId());\n\t\t\t\t\t// if posted to twitter, match the exact twitter date\n\t\t\t\t\tnewActivity.setCreatedGmtDate(twitterStatus.getCreatedAt());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tEntityManager emActivity = EMF.get().createEntityManager();\n\t\t\ttry {\n\t\t\t\tif(photoBase64 != null) {\n\t\t\t\t\t// decode the base64 encoding to create the thumb nail\n\t\t\t\t\tbyte[] rawPhoto = Base64.decode(photoBase64);\n\t\t\t\t\tImagesService imagesService = ImagesServiceFactory.getImagesService();\n\t\t\t\t\tImage oldImage = ImagesServiceFactory.makeImage(rawPhoto);\n\t\t\t\t\t\n\t\t\t\t\tint tnWidth = isPortrait == true ? THUMB_NAIL_SHORT_SIDE : THUMB_NAIL_LONG_SIDE;\n\t\t\t\t\tint tnHeight = isPortrait == true ? THUMB_NAIL_LONG_SIDE : THUMB_NAIL_SHORT_SIDE;\n\t\t\t\t\tTransform resize = ImagesServiceFactory.makeResize(tnWidth, tnHeight);\n\t\t\t\t\tImage newImage = imagesService.applyTransform(resize, oldImage);\n\t\t\t\t\tString thumbNailBase64 = Base64.encode(newImage.getImageData());\n\t\t\t\t\tnewActivity.setThumbNailBase64(thumbNailBase64);\n\t\t\t\t\tnewActivity.setPhotoBase64(photoBase64);\n\t\t\t\t\tif(videoBase64 != null) newActivity.setVideoBase64(videoBase64);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\temActivity.persist(newActivity);\n\t\t\t\tlog.info(\"new Activity was successfully persisted\");\n\t\t\t} catch(Exception e) {\n\t\t\t\tlog.severe(\"createActivity() exception = \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\temActivity.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"error extracting JSON object from Post\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error converting json representation into a JSON object\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (NoResultException e) {\n\t\t\tlog.severe(\"team not found\");\n\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n\t\t} catch (NonUniqueResultException e) {\n\t\t\tlog.severe(\"should never happen - two or more teams have same team id\");\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t em.close();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error creating JSON return object\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new JsonRepresentation(jsonReturn);\n }",
"void create(SportActivity activity);",
"@PostMapping\n public ResponseEntity<?> addNewActivity(@RequestBody ActivityRequest activity){\n ResponseEntity response;\n try{\n activityServices.saveActivity(mapActivity(activity));\n response = new ResponseEntity<>(HttpStatus.CREATED);\n }catch (ActivityException | ParkException | PlanException ex){\n ex.printStackTrace();\n response = new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE);\n }\n return response;\n }",
"@CustomAnnotation(value = \"INSERT_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity\",\n\t\t\tmethod=RequestMethod.PUT,\n\t\t\tconsumes=MediaType.APPLICATION_JSON_VALUE,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE\n\t\t\t)\n\tpublic ResponseEntity<Activity> createActivity(@RequestBody Activity newActivity, @Context HttpServletRequest request){\n\t\treturn new ResponseEntity<Activity>(activityService.create(newActivity), HttpStatus.OK);\n\t}",
"public void createActivity(Activity activity) {\n\t\t\n\t}",
"ActivityConcept createActivityConcept();",
"API createAPI();",
"@PostMapping(path = \"/api/activity/add\", produces = MediaType.APPLICATION_JSON_VALUE)\n public Response save(@RequestBody ActivityDTO activityDTO) {\n return activityService.saveActivityDTO(activityDTO);\n }",
"@PostMapping(\"/at-activity-statuses\")\n @Timed\n public ResponseEntity<AtActivityStatusesDTO> createAtActivityStatuses(@Valid @RequestBody AtActivityStatusesDTO atActivityStatusesDTO) throws URISyntaxException {\n log.debug(\"REST request to save AtActivityStatuses : {}\", atActivityStatusesDTO);\n if (atActivityStatusesDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new atActivityStatuses cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n AtActivityStatuses atActivityStatuses = atActivityStatusesMapper.toEntity(atActivityStatusesDTO);\n atActivityStatuses = atActivityStatusesRepository.save(atActivityStatuses);\n AtActivityStatusesDTO result = atActivityStatusesMapper.toDto(atActivityStatuses);\n return ResponseEntity.created(new URI(\"/api/at-activity-statuses/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"@PostMapping(value = \"/create\",consumes = MediaType.APPLICATION_JSON_VALUE)\n public InternationalTournaments create(@RequestBody InternationalTournaments create){\n return service.create(create);\n }",
"@Override\n\t\tprotected String doInBackground(String... args) {\n\t\t\tString title = inputName.getText().toString();\n\t\t\tString amount = inputAmount.getText().toString();\n\t\t\tint days = numOfDays.getInputType();\n\t\t\tString article = inputArticle.getText().toString();\n\n//\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n//\t\t\tparams.add(new BasicNameValuePair(\"title\", title));\n//\t\t\tparams.add(new BasicNameValuePair(\"amount\", amount));\n//\t\t\tparams.add(new BasicNameValuePair(\"days\", days));\n//\t\t\tparams.add(new BasicNameValuePair(\"article\", article));\n//\n//\t\t\tJSONObject json = jsonParser.makeHttpRequest(url_create_campaign,\n//\t\t\t\t\t\"POST\", params);\n\t\t\tRestClient client =new RestClient(UrlLink.createCampaign);\n\t\t\tclient.AddParam(\"title\", title);\n\t\t\tclient.AddParam(\"goal\", amount);\n\t\t\tclient.AddParam(\"goalDuration\", Integer.toString(days));\n\t\t\tclient.AddParam(\"category\", Integer.toString(1));\n\t\t\tclient.AddParam(\"brief\", article);\n\t\t\ttry{\n\t\t\t\tclient.Execute(RequestMethod.POST);\n\t\t\t\tString response=client.getResponse();\n\t\t\t\treturn response;\n\t\t\t\t\n\t\t\t}catch(Exception ex){\n\t\t\t\tString response=client.getErrorMessage();\n\t\t\t\tLog.e(\"exception\",\"this\" ,ex);\n\t\t\t\treturn response;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public static IArtefact createActivityArtefact(JSONObject activity) {\n\t\t\n//\t\tSystem.out.println(\"DEBUG| createActivityArtefact activity: \"+activity);\n\t\tJSONObject object = activity.getJSONObject(ShindigConnector.ACTIVITY_OBJECT);\n\t\t\n\t\tswitch(object.getString(ShindigConnector.ACTIVITY_OBJECT_OBJECTTYPE)) {\n\t\t\tcase(ActivityController.TYPE_LIFERAY_BLOG_ENTRY):\n\t//\t\t\tSystem.out.println(\"It is a blog entry.\");\n\t\t\t\treturn new LiferayBlogArtefact(object.getString(\"id\").split(\":\")[1]);\t// blog entry id\n\t\t\tcase(ActivityController.TYPE_LIFERAY_FORUM_ENTRY):\n\t\t\tcase(ActivityController.TYPE_LIFERAY_FORUM_THREAD):\n\t//\t\t\tSystem.out.println(\"It is a forum entry.\");\n\t\t\t\treturn new LiferayForumArtefact(object.getString(\"id\").split(\":\")[1]);\t// message board message id\n\t\t\tcase(ActivityController.TYPE_LIFERAY_WEB_CONTENT):\n\t//\t\t\tSystem.out.println(\"It is a web content.\");\n\t\t\t\treturn new LiferayWebContentArtefact(object.getString(\"id\").split(\":\")[1]);\t// journal article id\n\t\t\tcase(ActivityController.TYPE_LIFERAY_WIKI_PAGE):\n\t//\t\t\tSystem.out.println(\"It is a wiki page.\");\n\t\t\t\treturn new LiferayWikiArtefact(object.getString(\"id\").split(\":\")[1]); // wiki page id\n\t\t\tcase(ActivityController.TYPE_NUXEO_DOCUMENT):\n\t//\t\t\tSystem.out.println(\"It is a nuxeo document.\");\n\t\t\t\treturn new NuxeoDocArtefact(object.getString(\"id\"));\t// document version series id\n\t\t\tcase(ActivityController.TYPE_OX_TASK):\n\t\t\t\tbreak;\n\t\t\tcase(ActivityController.TYPE_OX_CALENDAR_ENTRY):\n\t\t\t\tbreak;\n\t\t\tcase(ActivityController.TYPE_PUBLIC_MESSAGE):\n\t\t\t\tSocialMessageArtefact a = new SocialMessageArtefact(object.getString(\"id\"));\n\t\t\t\ta.setUserId(activity.getJSONObject(ShindigConnector.ACTIVITY_ACTOR).getString(ShindigConnector.ID));\n\t\t\t\treturn a;\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"DEBUG| createActivityArtefact: return null!!!\");\n\t\treturn null;\n\t}",
"BPMNActivityConcept createBPMNActivityConcept();",
"RESTElement createRESTElement();",
"@GetMapping(path = \"/api/activity/attendactivity/{token}/{activityid}\")\n public Response attendActivity(@PathVariable String token, @PathVariable long activityid) {\n return activityService.attendActivity(userService.getUserIDFromJWT(token), activityid);\n }",
"@Test\n public void create_405() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n Integer id = addMOToDb(3).getId();\n\n // PREPARE THE TEST\n // Change the name\n Workflow mo = new Workflow();\n mo.setName(\"Different name\");\n mo.setDescription(\"Different description\");\n mo.setRaw(\"Different raw\");\n\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\" + id.toString(), mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(405, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"HTTP 405 Method Not Allowed\", body);\n }",
"private void hitApiForCreateDeal() {\n appUtils.showProgressDialog(mActivity,false);\n\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.DEAL_TITLE, etTitle.getText().toString().trim());\n params.put(ApiKeys.DEAL_DESCRIPTION, etDescription.getText().toString().trim());\n params.put(ApiKeys.TOTAL_ITEMS, etTotalItems.getText().toString().trim());\n params.put(ApiKeys.ORIGINAL_PRICE, etOriginalPrice.getText().toString().trim());\n params.put(ApiKeys.NEW_PRICE, tvNewPrice.getText().toString());\n params.put(ApiKeys.START_DATE_TIME, parseTime(etBeginTime.getText().toString().trim()));\n params.put(ApiKeys.END_DATE_TIME, parseTime(etEndTime.getText().toString().trim()));\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.createDeal(AppSharedPrefs.getInstance(mActivity).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(mActivity, call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n CreateDealModel createDealModel = new Gson().fromJson(response, CreateDealModel.class);\n if (createDealModel.getCODE() == 200) {\n /*Intent intent = new Intent(mActivity, MerchantActivity.class);\n startActivity(intent);*/\n setResult(Constants.CREATE_DEAL_REQ_CODE);\n\n Intent intent1 = new Intent(Constants.REFRESH_RECCEIVER_KEY);\n // You can also include some extra data.\n intent1.putExtra(\"refresh\", true);\n LocalBroadcastManager.getInstance(mActivity).sendBroadcast(intent1);\n\n mActivity.finish();\n\n } else if (createDealModel.getCODE() == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(mActivity, createDealModel.getMESSAGE());\n } else {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), createDealModel.getMESSAGE());\n }\n\n appUtils.hideProgressDialog(mActivity);\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n appUtils.hideProgressDialog(mActivity);\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.txt_something_went_wrong));\n\n }\n });\n\n }",
"ResourceAPI createResourceAPI();",
"private void createActivity(Identity user) {\n ExoSocialActivity activity = new ExoSocialActivityImpl();\n activity.setTitle(\"title \" + System.currentTimeMillis());\n activity.setUserId(user.getId());\n try {\n activityManager.saveActivityNoReturn(user, activity);\n tearDownActivityList.add(activity);\n } catch (Exception e) {\n LOG.error(\"can not save activity.\", e);\n }\n }",
"@Get \n public JsonRepresentation getActivities(Variant variant) {\n \tlog.info(\"getActivities(@Get) entered ..... \");\n \tJSONObject jsonReturn = new JSONObject();\n\t\t\n\t\tString apiStatus = ApiStatusCode.SUCCESS;\n\t\tthis.setStatus(Status.SUCCESS_OK);\n\t\tUser currentUser = null;\n\t\tTimeZone tz = null;\n\t\t// teamId is provided only if getting activities for a single team. \n\t\tboolean isGetActivitiesForAllTeamsApi = this.teamId == null;\n try {\n \t\tcurrentUser = (User)this.getRequest().getAttributes().get(RteamApplication.CURRENT_USER);\n \t\tif(currentUser == null) {\n\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n \t\t\tlog.severe(\"user could not be retrieved from Request attributes!!\");\n \t\t}\n \t\t//::BUSINESSRULE:: user must be network authenticated to get activities\n \t\telse if(!currentUser.getIsNetworkAuthenticated()) {\n \t\t\tapiStatus = ApiStatusCode.USER_NOT_NETWORK_AUTHENTICATED;\n \t\t}\n \t\t//::BUSINESSRULE:: user must be a member of the team, if teamId was specified\n \t\telse if(this.teamId != null && !currentUser.isUserMemberOfTeam(this.teamId)) {\n\t\t\t\tapiStatus = ApiStatusCode.USER_NOT_MEMBER_OF_SPECIFIED_TEAM;\n\t\t\t\tlog.info(apiStatus);\n \t}\n \t\t// timeZone check \n \t\telse if(this.timeZoneStr == null || this.timeZoneStr.length() == 0) {\n \t\t\tlog.info(\"getActivities(): timeZone null or zero length\");\n \t \tapiStatus = ApiStatusCode.TIME_ZONE_REQUIRED;\n \t\t} else {\n \t\t\ttz = GMT.getTimeZone(this.timeZoneStr);\n \t\t\tif(tz == null) {\n \t\tapiStatus = ApiStatusCode.INVALID_TIME_ZONE_PARAMETER;\n \t\t\t}\n \t\t}\n\t\n \t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n \t\t//////////////////////////////////////\n\t\t\t// verify and default input parameters\n \t\t//////////////////////////////////////\n\t\t\tboolean refreshFirst = false;\n\t\t\tif(this.refreshFirstStr != null) {\n\t\t\t\tif(refreshFirstStr.equalsIgnoreCase(\"true\")) {\n\t\t\t\t\trefreshFirst = true;\n\t\t\t\t} else if(refreshFirstStr.equalsIgnoreCase(\"false\")) {\n\t\t\t\t\trefreshFirst = false;\n\t\t\t\t} else {\n\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_REFRESH_FIRST_PARAMETER;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboolean newOnly = false;\n\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\tif(this.newOnlyStr != null) {\n\t\t\t\t\tif(newOnlyStr.equalsIgnoreCase(\"true\")) {\n\t\t\t\t\t\tnewOnly = true;\n\t\t\t\t\t} else if(newOnlyStr.equalsIgnoreCase(\"false\")) {\n\t\t\t\t\t\tnewOnly = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_NEW_ONLY_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint maxCount = DEFAULT_MAX_COUNT;\n\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && maxCountStr != null) {\n\t\t\t\ttry {\n\t\t\t\t\tmaxCount = new Integer(maxCountStr);\n\t\t\t\t\tif(maxCount > MAX_MAX_COUNT) maxCount = MAX_MAX_COUNT;\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MAX_COUNT_PARAMETER;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t///////////////////////////////////\n\t\t\t// some parameters are API specific\n\t\t\t///////////////////////////////////\n\t\t\tLong maxCacheId = null;\n\t\t\tDate mostCurrentDate = null;\n\t\t\tInteger totalNumberOfDays = null;\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t////////////////////////////////////////////////////////\n\t\t\t\t// Get Activity for All Teams: Parameters and Validation\n\t\t\t\t////////////////////////////////////////////////////////\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && mostCurrentDateStr != null) {\n\t\t\t\t\tmostCurrentDate = GMT.convertToGmtDate(mostCurrentDateStr, false, tz);\n\t\t\t\t\tif(mostCurrentDate == null) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MOST_CURRENT_DATE_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && this.totalNumberOfDaysStr != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttotalNumberOfDays = new Integer(this.totalNumberOfDaysStr);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_TOTAL_NUMBER_OF_DAYS_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//::BUSINESSRULE:: if newOnly=true, then refreshFirst must also be true\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(newOnly && !refreshFirst) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.REFRESH_FIRST_AND_NEW_ONLY_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//::BUSINESSRULE:: if newOnly=false, date interval must be specified\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(!newOnly && (mostCurrentDate == null || totalNumberOfDays == null)) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.DATE_INTERVAL_REQUIRED;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//::BUSINESSRULE:: newOnly=true is mutually exclusive with date interval\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(newOnly && (mostCurrentDate != null || totalNumberOfDays != null)) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.NEW_ONLY_AND_DATE_INTERVAL_MUTUALLY_EXCLUSIVE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t///////////////////////////////////////////////////////////////////////\n\t\t\t\t// Get Activity for a Single, Specified Team: Parameters and Validation\n\t\t\t\t///////////////////////////////////////////////////////////////////////\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && maxCacheIdStr != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmaxCacheId = new Long(maxCacheIdStr);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MAX_CACHE_ID_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//::BUSINESSRULE:: refreshFirst=true is mutually exclusive with maxCacheId\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(refreshFirst && maxCacheId != null) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.REFRESH_FIRST_AND_MAX_CACHE_ID_MUTUALLY_EXCLUSIVE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n\t\t\tList<Team> teams = new ArrayList<Team>();\n\t\t\tList<Key> teamKeys = null;\n\t\t\tEntityManager em = EMF.get().createEntityManager();\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\tteamKeys = currentUser.getTeams();\n\t\t\t\tif(teamKeys.size() > 0) {\n\t\t\t\t\t//::JPA_BUG:: ?? if I get all teams by passing in a list of keys, the list of teams is not in same order as keys!!!!\n//\t \t\t\tList<Team> teams = (List<Team>) em.createQuery(\"select from \" + Team.class.getName() + \" where key = :keys\")\n//\t\t\t\t\t\t.setParameter(\"keys\", teamKeys)\n//\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\n\t\t\t\t\tfor(Key tk : teamKeys) {\n\t\t\t\t\t\tTeam aTeam = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t aTeam = (Team)em.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t\t\t\t\t.setParameter(\"key\", tk)\n\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"should never happen. Could not find team with the team key\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(aTeam != null) {teams.add(aTeam);}\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"number of teams retrieved for current user = \" + teams.size());\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"user has no teams\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n \t\t\t\t\tTeam team = (Team)em.createNamedQuery(\"Team.getByKey\")\n \t\t\t\t\t\t.setParameter(\"key\", KeyFactory.stringToKey(this.teamId))\n \t\t\t\t\t\t.getSingleResult();\n \t\t\t\t\tlog.info(\"team retrieved = \" + team.getTeamName());\n \t\t\t\t\tteams.add(team);\n \t\t\t\t} catch (NoResultException e) {\n \t\t\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n \t\t\t\t\tlog.info(\"invalid team id\");\n \t\t\t\t} catch (NonUniqueResultException e) {\n \t\t\t\t\tlog.severe(\"should never happen - two teams have the same key\");\n \t\t\t\t}\n\t\t\t}\n \t\t\n\t\t\tList<Activity> allTeamsRequestedActivities = new ArrayList<Activity>();\n\t\t\t\n\t\t\t// All teams support activity so all teams are processed\n\t\t\tfor(Team userTeam : teams) {\n\t\t\t\tBoolean teamUsesTwitter = userTeam.getUseTwitter() != null && userTeam.getUseTwitter();\n\t\t\t\t\n\t\t\t\tList<Activity> teamRequestedActivities = null;\n\t\t\t\tLong cacheId = userTeam.getNewestCacheId();\n\t\t\t\t\n\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t// If a refresh has been requested and team uses Twitter, get the latest activities from Twitter and store in cache\n\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\tif(teamUsesTwitter && refreshFirst) {\n\t\t\t\t\tlog.info(\"refreshFirst is true - updating the cache\");\n\t\t\t\t\t\n\t\t\t\t\tif(newOnly) {teamRequestedActivities = new ArrayList<Activity>();}\n\n\t\t\t\t\t// Twitter refresh is done at most once per minute, so see if the refresh has been done in the last minute.\n\t\t\t\t\tDate lastRefreshDate = userTeam.getLastTwitterRefresh();\n\t\t\t\t\tLong howLongSinceLastRefresh = null;\n\t\t\t\t\tDate now = new Date();\n\t\t\t\t\tif(lastRefreshDate != null) {\n\t\t\t\t\t\thowLongSinceLastRefresh = now.getTime() - lastRefreshDate.getTime();\n\t\t\t\t\t\tlog.info(\"howLongSinceLastRefresh = \" + howLongSinceLastRefresh);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.info(\"lastTwitterRefresh in User null, so refresh will proceed\"); \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(lastRefreshDate == null || (howLongSinceLastRefresh > ONE_MINUTE_IN_MILLI_SECONDS)) {\n\t\t\t\t\t\tlog.info(\"has been over a minute so do a Twitter refresh\");\n\t\t\t\t\t\tLong newestTwitterId = userTeam.getNewestTwitterId();\n\t\t\t\t\t\tList<Activity> twitterActivities = TwitterClient.getTeamActivities(userTeam, newestTwitterId);\n\t\t\t\t\t\tif(twitterActivities == null) {\n\t\t\t\t\t\t\tapiStatus = ApiStatusCode.TWITTER_ERROR;\n\t\t\t\t\t\t} \n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// because twitterActivities doesn't have the cacheId set, this will get sorted by twitterId\n\t\t\t\t\t\tCollections.sort(twitterActivities);\n\t\t\t\t\t\t\n\t\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t// persist the activities retrieved from Twitter that aren't already stored in the cache\n\t\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\tint requestedActivityCount = maxCount;\n\n\t\t\t\t\t\tLong largestTwitterId = newestTwitterId;\n\t\t\t\t\t\tlog.info(\"before processing activities, newestTwitterId = \" + newestTwitterId);\n\t\t\t\t\t\tEntityManager em0 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tfor(Activity a: twitterActivities) {\n\t\t\t\t\t\t\t\tem0.getTransaction().begin();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tActivity precachedActivity = (Activity)em0.createNamedQuery(\"Activity.getByTwitterId\")\n\t\t\t\t\t\t\t\t\t\t.setParameter(\"twitterId\", a.getTwitterId())\n\t\t\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t\t\t\t// if already cached, there is no work to do ...\n\t\t\t\t\t\t\t\t} catch (NoResultException e) {\n\t\t\t\t\t \t// not an error - we have found a Twitter update that was a direct post to Twitter\n\t\t\t\t\t\t\t\t\tlog.info(\"uncached activity retrieved with twitter ID = \" + a.getTwitterId());\n\t\t\t\t\t\t\t\t\tif(newOnly && requestedActivityCount != 0) {\n\t\t\t\t\t\t\t\t\t\tteamRequestedActivities.add(a);\n\t\t\t\t\t\t\t\t\t\trequestedActivityCount--;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcacheId += 1;\n\t\t\t\t\t\t\t\t\ta.setCacheId(cacheId);\n\t\t\t\t\t\t\t\t\tem0.persist(a);\n\t\t\t\t\t\t\t\t\tif(a.getTwitterId() > largestTwitterId) {largestTwitterId = a.getTwitterId();}\n\t\t\t\t\t \t\t} catch (NonUniqueResultException e) {\n\t\t\t\t\t \t\t\tlog.severe(\"should never happen - two or more activities have the same twitter ID\");\n\t\t\t\t\t \t\t}\n\t\t\t\t\t\t\t\tem0.getTransaction().commit();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlog.info(\"after processing activities, largestTwitterId = \" + largestTwitterId);\n\t\t\t\t\t\t\tnewestTwitterId = largestTwitterId;\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tem0.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Update team in a separate transaction\n\t\t\t\t\t\t// at this point, newestTwitterId holds the largest, most recent Twitter Id\n\t\t\t\t\t\t// at this point, cachId holds the largest, most recent cache Id\n\t\t\t\t\t\tEntityManager em2 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tem2.getTransaction().begin();\n\t\t\t\t\t\t\tTeam teamInTransaction = (Team)em2.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t\t\t\t\t.setParameter(\"key\", userTeam.getKey())\n\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t\tlog.info(\"team2 retrieved = \" + teamInTransaction.getTeamName());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// update the activity IDs\n\t\t\t\t\t\t\tteamInTransaction.setNewestCacheId(cacheId);\n\t\t\t\t\t\t\tteamInTransaction.setNewestTwitterId(newestTwitterId);\n\t\t\t\t\t\t\tteamInTransaction.setLastTwitterRefresh(new Date());\n\t\t\t\t\t\t\tem2.getTransaction().commit();\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"Should never happen. Could not find team using teamKey from User entity.\");\n\t\t\t\t\t\t\t// no matter what, the teamsWithPossibleUpdates team list MUST be complete if this is a refresh!\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t if (em2.getTransaction().isActive()) {\n\t\t\t\t\t\t em2.getTransaction().rollback();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t em2.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} // end of if(teamUsesTwitter && refreshFirst)\n\t\t\t\t\n\t\t\t\t// If this team uses Twitter and this is a refreshFirst with newOnly, then teamRequestedActivities \n\t\t\t\t// already initialized in the code above.\n\t\t\t\tif(!(teamUsesTwitter && refreshFirst && newOnly)) {\n\t\t\t\t\tif(refreshFirst && newOnly) {\n\t\t\t\t\t\t// teamUsesTwitter must be false. If no Twitter, then a refreshFirst-newOnly request has no work to do,\n\t\t\t\t\t\t// but must create a teamRequestedActivities for code below, so make the empty list.\n\t\t\t\t\t\tteamRequestedActivities = new ArrayList<Activity>();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// To get into this leg of code, newOnly must be FALSE\n\t\t\t\t\t\t\n\t\t\t\t\t\t//////////////////////////////////////////////////////////////\n\t\t\t\t\t\t// Build the teamRequestedActivities list from the local cache\n\t\t\t\t\t\t//////////////////////////////////////////////////////////////\n\t\t\t\t\t\tEntityManager em3 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlog.info(\"getting activities from the cache ...\");\n\t\t\t\t\t\t\t//////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t\t// return activities from cache (which may include some new stuff too)\n\t\t\t\t\t\t\t//////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t\t\t\t\t// Since newOnly must be false (see comment above) the mostCurrentDate and totalNumberOfDays\n\t\t\t\t\t\t\t\t// must be specified according to the API business rules.\n\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\t// get activities by date interval\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\tDate leastCurrentDate = GMT.subtractDaysFromDate(mostCurrentDate, totalNumberOfDays-1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tteamRequestedActivities = (List<Activity>)em3.createNamedQuery(\"Activity.getByTeamIdAndUpperAndLowerCreatedDates\")\n\t\t\t\t\t\t\t\t\t.setParameter(\"teamId\", KeyFactory.keyToString(userTeam.getKey()))\n\t\t\t\t\t\t\t\t\t.setParameter(\"mostCurrentDate\", GMT.setTimeToEndOfTheDay(mostCurrentDate))\n\t\t\t\t\t\t\t\t\t.setParameter(\"leastCurrentDate\", GMT.setTimeToTheBeginningOfTheDay(leastCurrentDate))\n\t\t\t\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\t// get activities by cacheId range\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\tLong upperCacheId = null; // non-inclusive, upper cache ID used in activity query\n\t\t\t\t\t\t\t\tLong lowerCacheId = null; // \n\t\t\t\t\t\t\t\tif(maxCacheId != null) {\n\t\t\t\t\t\t\t\t\t// typically used to request activities that are not the most recent\n\t\t\t\t\t\t\t\t\tif(maxCacheId > cacheId + 1) {maxCacheId = cacheId + 1;}\n\t\t\t\t\t\t\t\t\tupperCacheId = maxCacheId;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// the most recent activities are being requested\n\t\t\t\t\t\t\t\t\t// make upper cache ID large enough so newest item in cache will be returned\n\t\t\t\t\t\t\t\t\tupperCacheId = cacheId + 1; \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlowerCacheId = upperCacheId - maxCount;\n\t\t\t\t\t\t\t\t// number of available activities might be less than maxCount\n\t\t\t\t\t\t\t\tif(lowerCacheId < 0) {lowerCacheId = 0L;}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tteamRequestedActivities = (List<Activity>)em3.createNamedQuery(\"Activity.getByTeamIdAndUpperAndLowerCacheIds\")\n\t\t\t\t\t\t\t\t\t.setParameter(\"teamId\", KeyFactory.keyToString(userTeam.getKey()))\n\t\t\t\t\t\t\t\t\t.setParameter(\"upperCacheId\", upperCacheId)\n\t\t\t\t\t\t\t\t\t.setParameter(\"lowerCacheId\", lowerCacheId)\n\t\t\t\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlog.info(\"number of teamRequestedActivities found = \" + teamRequestedActivities.size());\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"Failed in getting Activity from cache. Exception = \" + e.getMessage());\n\t\t\t\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tem3.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tallTeamsRequestedActivities.addAll(teamRequestedActivities);\n\t\t\t} // end of for(Team userTeam : teams)\n\t\t\tlog.info(\"number of allTeamsRequestedActivities found = \" + allTeamsRequestedActivities.size());\n\t\t\t\n\t\t\t/////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t// Update newestCacheIds in User Entity. newestCacheIds are used to determine if a user\n\t\t\t// has any new activity. All the user's teams that were updated by this API call need\n\t\t\t// to be updated. Note that the team.newestCacheId may not have been updated in this\n\t\t\t// API but rather by the Create Activity API, but it doesn't matter. Any user team\n\t\t\t// that has had activity retrieved by this API call should the associated user.newestCacheId\n\t\t\t// updated.\n\t\t\t/////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\tif(teams.size() > 0) {\n\t \tEntityManager em4= EMF.get().createEntityManager();\n\t \ttry {\n\t \t\tem4.getTransaction().begin();\n\t \t\t// re-get the user inside this transaction\n\t\t\t\t\tUser withinTransactionUser = (User)em4.createNamedQuery(\"User.getByKey\")\n\t\t\t\t\t\t.setParameter(\"key\", currentUser.getKey())\n\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\tlog.info(\"updating newCachIds for User = \" + withinTransactionUser.getFullName() + \". Number of updated teams = \" + teams.size());\n\t\t\t\t\t\n\t\t\t\t\tList<Long> newestCacheIds = withinTransactionUser.getTeamNewestCacheIds();\n\t\t\t\t\t// If a teamId was specified in the API call, then only ONE TEAM will be in the teamsWithPossibleUpdates list\n\t\t\t\t\t// so we must find the 'matching' team in the User's team list and update just that one team.\n\t\t\t\t\tif(teams.size() == 1) {\n\t\t\t\t\t\tTeam specifiedTeam = teams.get(0);\n\t\t\t\t\t\tint index = 0;\n\t\t\t\t\t\tfor(Key teamKey : withinTransactionUser.getTeams()) {\n\t\t\t\t\t\t\tif(teamKey.equals(specifiedTeam.getKey())) {\n\t\t\t\t\t\t\t\tnewestCacheIds.set(index, specifiedTeam.getNewestCacheId());\n\t\t\t\t\t\t\t\tlog.info(\"updating cacheID for specified team = \" + specifiedTeam.getTeamName());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ALL the User's team could have been updated. In this case, the code above guarantees that\n\t\t\t\t\t\t// the teamsWithPossibleUpdates list will contain ALL the user's teams -- both updated\n\t\t\t\t\t\t// teams and teams not updated. For simplicity, just completely rebuild newestCacheIds list.\n\t\t\t\t\t\tnewestCacheIds = new ArrayList<Long>();\n\t\t\t\t\t\tfor(Team t : teams) {\n\t\t\t\t\t\t\t// even if Activity not active for this team, getNewestCacheId() guaranteed to return 0L\n\t\t\t\t\t\t\tlog.info(\"updating cacheID for team = \" + t.getTeamName());\n\t\t\t\t\t\t\tnewestCacheIds.add(t.getNewestCacheId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\twithinTransactionUser.setTeamNewestCacheIds(newestCacheIds);\n\t\t\t\t\tem4.getTransaction().commit();\n\t \t} catch (NoResultException e) {\n\t \tlog.severe(\"user not found\");\n\t \te.printStackTrace();\n\t \t\t} catch (NonUniqueResultException e) {\n\t \t\t\tlog.severe(\"should never happen - two or more users have same key\");\n\t \t\t\te.printStackTrace();\n\t \t\t} finally {\n\t \t\t if (em4.getTransaction().isActive()) {\n\t \t\t \tem4.getTransaction().rollback();\n\t \t\t }\n\t \t\t em4.close();\n\t \t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// because cacheId has been set, this will get sorted by created date - reverse chronological order\n\t\t\tCollections.sort(allTeamsRequestedActivities);\n\t\t\t\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t// enforce the maxCount for Date Interval algorithm\n\t\t\t\tif(allTeamsRequestedActivities.size() > maxCount) {\n\t\t\t\t\t// activity list needs to be truncated, but truncation only happens on full day boundaries\n\t\t\t\t\tDate dateBoundary = allTeamsRequestedActivities.get(maxCount-1).getCreatedGmtDate();\n\t\t\t\t\tdateBoundary = GMT.setTimeToTheBeginningOfTheDay(dateBoundary);\n\t\t\t\t\tlog.info(\"Activity list exceeded max size of \" + maxCount + \". List size = \" + allTeamsRequestedActivities.size() + \" Date boundary = \" + dateBoundary.toString());\n\t\t\t\t\t\n\t\t\t\t\t// find the index of the first activity with a date greater than the boundary date\n\t\t\t\t\tInteger truncateIndex = null;\n\t\t\t\t\tfor(int searchIndex = maxCount; searchIndex<allTeamsRequestedActivities.size(); searchIndex++) {\n\t\t\t\t\t\tDate activityDate = allTeamsRequestedActivities.get(searchIndex).getCreatedGmtDate();\n\t\t\t\t\t\tactivityDate = GMT.setTimeToTheBeginningOfTheDay(activityDate);\n\t\t\t\t\t\tif(activityDate.before(dateBoundary)) {\n\t\t\t\t\t\t\ttruncateIndex = searchIndex;\n\t\t\t\t\t\t\tlog.info(\"truncate index found and = \" + truncateIndex);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// possible that no activity exceeded the boundary date, so modify activity list only if appropriate\n\t\t\t\t\tif(truncateIndex != null) {\n\t\t\t\t\t\t// for subList call, first index is inclusive and second is exclusive\n\t\t\t\t\t\tallTeamsRequestedActivities = allTeamsRequestedActivities.subList(0, truncateIndex);\n\t\t\t\t\t\tlog.info(\"Activity list truncated. New list size = \" + allTeamsRequestedActivities.size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Package requested activities into JSON\n\t\t\tJSONArray jsonActivitiesArray = new JSONArray();\n\t\t\tfor(Activity a : allTeamsRequestedActivities) {\n\t\t\t\tJSONObject jsonActivityObj = new JSONObject();\n\t\t\t\tjsonActivityObj.put(\"activityId\", KeyFactory.keyToString(a.getKey()));\n\t\t\t\tjsonActivityObj.put(\"text\", a.getText());\n\t\t\t\t// TODO is the Twitter Date returned GMT? -- if not fix this code\n\t\t\t\tjsonActivityObj.put(\"createdDate\", GMT.convertToLocalDate(a.getCreatedGmtDate(), tz));\n\t\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t\tjsonActivityObj.put(\"teamId\", a.getTeamId());\n\t\t\t\t\tjsonActivityObj.put(\"teamName\", a.getTeamName());\n\t\t\t\t}\n\t\t\t\tjsonActivityObj.put(\"cacheId\", a.getCacheId());\n\t\t\t\tjsonActivityObj.put(\"numberOfLikeVotes\", a.getNumberOfLikeVotes());\n\t\t\t\tjsonActivityObj.put(\"numberOfDislikeVotes\", a.getNumberOfDislikeVotes());\n\t\t\t\tif(a.getThumbNailBase64() != null) {\n\t\t\t\t\tjsonActivityObj.put(\"thumbNail\",a.getThumbNailBase64());\n\t\t\t\t\tBoolean isVideo = a.getVideoBase64() == null ? false : true;\n\t\t\t\t\tjsonActivityObj.put(\"isVideo\", isVideo);\n\t\t\t\t}\n\t\t\t\tBoolean useTwitterRet = a.getTwitterId() == null ? false : true;\n\t\t\t\tjsonActivityObj.put(\"useTwitter\", useTwitterRet);\n\t\t\t\tjsonActivitiesArray.put(jsonActivityObj);\n\t\t\t}\n\t\t\tlog.info(\"JSON object built successfully\");\n\t\t\tjsonReturn.put(\"activities\", jsonActivitiesArray);\n\n } catch (JSONException e) {\n\t\t\tlog.severe(\"error converting json representation into a JSON object\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (NoResultException e) {\n\t\t\tlog.severe(\"team not found\");\n\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n\t\t} catch (NonUniqueResultException e) {\n\t\t\tlog.severe(\"should never happen - two or more teams have same team id\");\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error creating JSON return object\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new JsonRepresentation(jsonReturn);\n }",
"@POST(\"posts\")\n Call<Post> createPost(@Body Post post);",
"@POST\n Call<Post> createPost(@Body Post post);",
"private void createPost() {\n PostModel model = new PostModel(23, \"New Title\", \"New Text\");\n Call<PostModel> call = jsonPlaceHolderAPI.createPost(model);\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"@POST(\"orders/new_order/\")\n Call<ApiStatus> createNewOrderByUser(@Body Order myOrder);",
"Activity activity();",
"@Test\n\tpublic static void create_Task() {\n\t\tString testName = \"Valid Scenario- When all the data are valid\";\n\t\tlog.info(\"Valid Scenario: Create Task\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Task Controller- Create Task\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 201);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}",
"@POST\n public Response create(EvenementDto evenementDto) {\n DataAccess dataAccess = DataAccess.begin();\n EvenementEntity evenementEntity = EvenementEntity.convertFromEvenementDto(evenementDto);\n\n System.out.println(evenementDto.toString());\n System.out.println(evenementEntity.toString());\n\n if (evenementDto.getNom() == null) {\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"name not specified\\n\").build();\n }\n else if(evenementDto.getDate() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"date not specified\\n\").build();\n }\n else if(evenementDto.getHeure() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"heure not specified\\n\").build();\n }\n\n long id = dataAccess.createEvent(evenementEntity);\n URI instanceURI = uriInfo.getAbsolutePathBuilder().path(\"\" + id).build();\n dataAccess.closeConnection(true);\n return Response.created(instanceURI).status(201).entity(evenementDto).location(instanceURI).build(); // .created(instanceURI).build();\n\n }",
"private Response createActivityView(String scopeName, String roleName, Integer activityId, String tripId, Integer reportId, boolean withHistory, HttpServletRequest request, ActivityViewEnum view) throws ServiceException {\n String username = request.getRemoteUser();\n List<Dataset> datasets = usmService.getDatasetsPerCategory(USMSpatial.USM_DATASET_CATEGORY, username, USMSpatial.APPLICATION_NAME, roleName, scopeName);\n return createSuccessResponse(activityService.getFishingActivityForView(activityId, tripId, reportId, datasets, view, withHistory));\n }",
"@GetMapping(\"/activities/{id}\")\n\tpublic ResponseEntity<Activity> getActivityById(@PathVariable long id) {\n\t\tActivity activity = activityRepository.findById(id)\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"Activity not exist with id :\" +id));\n\t\treturn ResponseEntity.ok(activity);\n\t}",
"public static void main(String[] args) throws Exception {\n // Create an authorized API client\n PlusDomains service = authenticate();\n File file = new java.io.File(SERVICE_ACCOUNT_PKCS12_FILE_PATH);\n System.out.println(\"file Can Read :: \"+ file.canRead());\n \n System.out.println(\"service :: \"+service);\n System.out.println(\"service Activity :: \"+ service.activities());\n // Set the user's ID to 'me': requires the plus.me scope\n String userId = \"me\";\n String msg = \"Happy Monday! #caseofthemondays\";\n\n System.out.println(\"Inserting activity\");\n\n // Create the audience of the post\n PlusDomainsAclentryResource res = new PlusDomainsAclentryResource();\n // Share to the domain\n res.setType(\"domain\");\n\n List<PlusDomainsAclentryResource> aclEntries = new ArrayList<PlusDomainsAclentryResource>();\n aclEntries.add(res);\n\n Acl acl = new Acl();\n acl.setItems(aclEntries);\n // Required, this does the domain restriction\n acl.setDomainRestricted(true);\n\n Activity activity = new Activity()\n .setObject(new Activity.PlusDomainsObject().setOriginalContent(msg))\n .setAccess(acl);\n\n activity = service.activities().insert(userId, activity).execute();\n\n System.out.println(activity);\n }",
"@GET(\"categories/activities\")\n Call<List<ActivitiesByCategorieOutput>> getActivitiesByCategory();",
"public interface TvApi {\n\n /*\n 获取电视节目表\n */\n @POST(\"getProgram\")\n Call<TvShowData> getProgram(@Query(\"code\") String code, @Query(\"date\") String date, @Query(\"key\") String key);\n\n /*\n 获取频道类型列表\n */\n @POST(\"getCategory\")\n Call<TvTypeData> getCategory(@Query(\"key\") String key);\n\n /*\n\n */\n @POST(\"getChannel\")\n Call<TvChannelData> getChannel(@Query(\"pId\") String pId, @Query(\"key\") String key);\n}",
"public interface ChannelREST {\n public static final String ENDPOINT = \"http://92.222.72.89:8080/\";\n\n @GET(\"/club/{idClub}/channels/{idChannel}/messages\")\n Call<List<Message>> getAllMessageFromChannel(@Path(\"idClub\") Integer id, @Path(\"idChannel\") Integer idChannel);\n @GET(\"/club/{idClub}/channels\")\n Call<List<Channel>> getAllChannelFromClub(@Path(\"idClub\") Integer id);\n @FormUrlEncoded\n @POST(\"/club/{idClub}/channels/{idChannel}/postMessage\")\n Call<Message> postMessage(@Path(\"idClub\") Integer id, @Path(\"idChannel\") Integer idChannel, @Field(\"idUser\") Integer idUser, @Field(\"content\")String content);\n}",
"@PostMapping(\"/attractions\")\n @Timed\n public ResponseEntity<Attraction> createAttraction(@RequestBody Attraction attraction) throws URISyntaxException {\n log.debug(\"REST request to save Attraction : {}\", attraction);\n if (attraction.getId() != null) {\n throw new BadRequestAlertException(\"A new attraction cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Attraction result = attractionRepository.save(attraction);\n return ResponseEntity.created(new URI(\"/api/attractions/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public PostActivity(int activityTypeId, int param1, int param2) {\n this.activityTypeId = activityTypeId;\n this.param1 = param1;\n this.param2 = param2;\n }",
"public void create(MyActivity activity, Bundle bundle){\n super.create(activity, bundle);\n\n }",
"@GetMapping(\"/activities\")\n //@Timed\n public ResponseEntity getActivities() {\n /*final Page<UserDTO> page = userService.getAllManagedUsers(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/users\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);*/\n /*return activityRepository.findAll().stream().map(activity -> {\n return new ResponseEntity<>(HttpStatus.OK);\n }).orElseGet(() -> {\n *//*log.info(\"Login: \" + managedUserVM.getLogin());\n log.info(\"Password: \" + managedUserVM.getPassword());\n User user = userService\n .createUser(managedUserVM.getLogin(), managedUserVM.getEmail().toLowerCase(),\n managedUserVM.getPassword()*//**//*, managedUserVM.getFirstName(), managedUserVM.getLastName()*//**//*\n );*//*\n return new ResponseEntity<>(HttpStatus.CREATED);\n })*/\n if(activityRepository.findAll().isEmpty()){\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n }else{\n return new ResponseEntity<>(activityRepository.findAll(), HttpStatus.OK);\n }\n }",
"RestApplicationModel createRestApplicationModel();",
"private void createInstance() throws DefectException{\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString username = TestBedManager.INSTANCE.getDefectConfig().getUsername();\r\n\t\t\t\r\n\t\t\tString password = encrypt_decrypt.getDecodedValue(TestBedManager.INSTANCE.getDefectConfig().getPassword());\r\n\t\t\t\r\n\t\t\t//restApi = new RallyRestApi(new URI(rallyInfo.getUrl()), rallyInfo.getUserName(), rallyInfo.getPassword());\r\n\t\t\trestApi = new RallyRestApi(new URI(rallyInfo.getUrl()),username ,password);\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tlog.error(\"failed to connect to rally instance, message : \" + e.toString() + \"RallyInfo -\" + rallyInfo);\r\n\t\t\tthrow new DefectException(\"failed to connect to rally instance, message : \" + e.toString()); \t\r\n\t\t}\r\n\t\tif(rallyInfo.getWsapiVersion() != null)\r\n\t\t\trestApi.setWsapiVersion(rallyInfo.getWsapiVersion());\r\n\t\trestApi.setApplicationName(rallyInfo.getAppName());\r\n\t\t\r\n\t}",
"@NonNull\n @MainThread\n protected abstract LiveData<ApiResponse<RequestType>> createCall();",
"@PostMapping\n public Task create(@RequestBody Task task){\n task.setCreateDate(LocalDateTime.now());\n return taskRepository.save(task);\n }",
"protected Response createInsertingrequest(String urlFA,JSONObject jsonObject,HttpBasicAuthFilter auth,String type){\n ClientConfig config = new ClientConfig();\n Client client = ClientBuilder.newClient(config);\n WebTarget target;\n target = client.target(getBaseURI(urlFA));\n //Response plainAnswer =null; \n target.register(auth);\n \n Invocation.Builder invocationBuilder =target.request(MediaType.APPLICATION_JSON);\n MultivaluedHashMap<String,Object> mm=new MultivaluedHashMap<String,Object>();\n mm.add(\"content-type\", MediaType.APPLICATION_JSON);\n mm.add(\"Accept\", \"application/json\");\n mm.add(\"charsets\", \"utf-8\");\n invocationBuilder.headers(mm);\n //preliminary operation of request creation ended\n Response plainAnswer=null;\n switch(type){\n case \"post\":\n {\n plainAnswer=invocationBuilder\n .post(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON_TYPE));\n break;\n }\n case \"put\":\n {\n plainAnswer =invocationBuilder\n .put(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON));\n break;\n }\n }\n return plainAnswer;\n }",
"public ActivityType createActivity(String id, String value) {\n\t\tActivityType activity = mappingFactory.createActivityType();\n\t\tactivity.setId(id);\n\t\tactivity.setValue(value);\n\t\treturn activity;\n\t}",
"@Bean\n\tpublic ActivitiesApi activitiesApi() {\n\t\treturn new ActivitiesApi(apiClient());\n\t}",
"@PostMapping(\"/createAPI\")\r\n\tpublic void createAPI(@RequestBody ApiDto apiDTO) throws SQLException {\r\n\r\n\t\tSystem.out.println(\"inside create\");\r\n\t\tpersistenceService.createAPI(apiDTO);\r\n\t\ttenantAPIService.saveAPI(apiDTO);\r\n\t}",
"@PostMapping(\"/asset\")\n public ResponseEntity<Asset> createAsset(@RequestBody Asset asset){\n Asset newAsset = new Asset();\n newAsset.setName(asset.getName());\n newAsset.setDevices(asset.getDevices());\n assetsService.addAsset(newAsset);\n this.template.convertAndSend(\"/topic/assets\", newAsset);\n return new ResponseEntity<>(newAsset, HttpStatus.OK);\n\n }",
"public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"dwlima@stefanini.com\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"gmcarneiro@stefanini.com\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }",
"public interface ScheduleScreenApi {\n\n @GET(Urls.REQUEST_SCHEDULE_SCREEN)\n Call<ScheduleScreenData> requestScheduleData();\n}",
"public Boolean addActivity(String client, String cisId, AActivity activity);",
"private void fillActivity(Model model, Long id) {\n\t\tList<ActivityPoint> activityPoints = activityService.fetchActivityPoints(id);\n\t\tActivity activity = activityService.fetchActivity(id);\n\t\tmodel.addAttribute(\"activityPoints\", activityPoints);\n\t\tmodel.addAttribute(\"activity\", activity);\n\t}",
"public void create(MyActivity activity, Bundle bundle){\n super.create(activity, bundle);\n\n if(bundle != null){\n //open bundle to set saved instance states\n openBundle(bundle);\n }\n\n mClientItem = mBoss.getClient();\n\n mStrInfo = mActivity.getString(R.string.client_info);\n mStrSchedule = mActivity.getString(R.string.client_schedule);\n mStrHistory = mActivity.getString(R.string.client_history);\n\n }",
"public abstract Response create(Request request, Response response);",
"public interface RestService {\n\n @POST(\"/ComenziRestaurant/task3\")\n public void sendComanda(@Body Comanda comanda, Callback<Integer> callback);\n\n @GET(\"/ComenziRestaurant/task1\")\n public void getProduse(Callback<Collection<Produs>> callback);\n\n @GET(\"/ComenziRestaurant/task2\")\n public void getMese(Callback<Collection<Masa>> callback);\n\n\n\n\n}",
"Mission createMission();",
"public ReservationApi()\r\n {\r\n }",
"public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);",
"public interface SimpleHabitApi {\n @FormUrlEncoded\n @POST(\"getCurrentProgram.php\")\n Call<GetCurrentProgramResponse> getCurrentProgram (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n\n @FormUrlEncoded\n @POST(\"getCategoriesPrograms.php\")\n Call<GetCategoriesAndProgramsResponse> getCategoriesAndPrograms (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n\n @FormUrlEncoded\n @POST(\"getTopics.php\")\n Call<GetTopicsResponses> getTopics (@Field(\"access_token\") String accessToken,\n @Field(\"page\") int page);\n}",
"@PostMapping(\"/movies\")\n @Timed\n public ResponseEntity<Movie> createMovie(@RequestBody Movie movie) throws URISyntaxException {\n log.debug(\"REST request to save Movie : {}\", movie);\n if (movie.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"movie\", \"idexists\", \"A new movie cannot already have an ID\")).body(null);\n }\n Movie result = movieRepository.save(movie);\n return ResponseEntity.created(new URI(\"/api/movies/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"movie\", result.getId().toString()))\n .body(result);\n }",
"@Override\n protected String doInBackground(Void... voids) {\n RequestHandler requestHandler = new RequestHandler();\n\n String id = String.valueOf(SharedPrefManagerTechnician.getInstance(context).getTechnician().getId());\n //creating request parameters\n HashMap<String, String> params = new HashMap<>();\n params.put(\"technician_id\", id);\n\n //returing the response\n return requestHandler.sendPostRequest(Apis.GET_CREATE_JOB_LIST_URL, params);\n }",
"public interface CircleService {\n\n @FormUrlEncoded\n @POST(\"/circle/list\")\n LiveData<BaseBean<List<CircleBean>>> getCircleData(@Field(\"userid\") long useId, @Field(\"pagesize\") int pageSize, @Field(\"pageno\") int pageNo);\n @FormUrlEncoded\n @POST(\"/circle/add\")\n Flowable<BaseBean<CircleBean>> upCircleData(@Field(\"userid\")long userId,@Field(\"content\") String content,@Field(\"images\") String images);\n}",
"public PresenceActivity createPresenceActivity(PresenceActivity.Type acttype, String description);",
"@Override\n\t\tprotected String doInBackground(String... params) {\n\t\t\tString httpResponse = null;\n\t\t\tif (params[0].equals(\"new\")) {\n\t\t\t\thttpResponse = HttpConnectionUtils.createNewRelationResponse(\n\t\t\t\t\t\tparams[1],\n\t\t\t\t\t\tparams[2],\n\t\t\t\t\t\tparams[3],\n\t\t\t\t\t\tparams[4],\n\t\t\t\t\t\tparams[5],\n\t\t\t\t\t\tparams[6],\n\t\t\t\t\t\tparams[7],\n\t\t\t\t\t\tparams[8],\n\t\t\t\t\t\tparams[9],\n\t\t\t\t\t\tgetResources().getString(R.string.hostname)\n\t\t\t\t\t\t\t\t+ getResources().getString(R.string.url_add_relation));\n\t\t\t}\n\t\t\treturn httpResponse;\n\t\t}",
"@PostMapping(path = \"/api/activity/update\")\n public Response updateActivity(@RequestBody ActivityDTO activityDTO){\n return activityService.updateActivity(activityDTO);\n }",
"public interface MmInterface{\n //http://xehoihanoi.com.vn/api/auth/create?email=xuansang0509@gmail.com&password=123456&username=xuansang&phone=0986373770\n //1.\n @GET(\"api/auth/create\")\n Call<Response> createUser(@Query(\"username\") String username,@Query(\"email\") String email,@Query(\"password\") String password,@Query(\"phone\") String phone);\n\n //2.api/group/create?name=hoang&text=noidung&status=1\n @GET(\"api/auth/create\")\n Call<Response> createGroup(@Query(\"name\") String groupName,@Query(\"text\") String description,@Query(\"status\") String status);\n //3. http://xehoihanoi.com.vn/api/auth/login?email=xuansang0509@gmail.com&password=123456\n Call<Response> login(@Query(\"email\") String email,@Query(\"password\") String password);\n\n\n //4. Load AdUnitId\n\n}",
"private void createPostXML() {\n Call<PostModel> call = jsonPlaceHolderAPI.createPostXML(23, \"New Title\", \"New Text\");\n call.enqueue(new Callback<PostModel>() {\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<PostModel> call, Response<PostModel> response) {\n if (!response.isSuccessful()) {\n textResult.setText(response.code());\n return;\n }\n PostModel postResponse = response.body();\n String content = \"\";\n assert postResponse != null;\n content += \"Code: \" + response.code() + \"\\n\";\n content += \"ID: \" + postResponse.getId() + \"\\n\";\n content += \"User ID: \" + postResponse.getUserId() + \"\\n\";\n content += \"Title: \" + postResponse.getUserId() + \"\\n\";\n content += \"Body: \" + postResponse.getText();\n textResult.append(content);\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<PostModel> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"public interface INetService {\n String baseUrl = \"https://app.netease.im/api/\";\n\n /**\n * 注册\n * @param username\n * @param nickname\n * @param pwd\n * @return\n */\n @POST(\"createDemoUser\")\n Flowable<BaseModel<String>> createUser(@Query(\"username\") String username,\n @Query(\"nickname\") String nickname,\n @Query(\"password\") String pwd);\n\n\n}",
"@RequestMapping(value = \"/tasks\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TaskDTO> createTask(@Valid @RequestBody TaskDTO taskDTO) throws URISyntaxException {\n log.debug(\"REST request to save Task : {}\", taskDTO);\n if (taskDTO.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"task\", \"idexists\", \"A new task cannot already have an ID\")).body(null);\n }\n TaskDTO result = taskService.save(taskDTO);\n return ResponseEntity.created(new URI(\"/api/tasks/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"task\", result.getId().toString()))\n .body(result);\n }",
"private void createProduct(String pid, String name, String price, String description) {\n\n mApiService = ApiClient.getCurdClient().create(ApiInterface.class);\n\n ProductModel productModel = new ProductModel(pid, name, price, description, \"\", \"\");\n\n Call<ResponseModel> call = mApiService.createProduct(productModel);\n\n\n call.enqueue(new Callback<ResponseModel>() {\n @Override\n public void onResponse(Call<ResponseModel> call, Response<ResponseModel> response) {\n int statusCode = response.code();\n ResponseModel responseModel = response.body();\n\n Toast.makeText(SampleRetrofit.this, \" CreateProduct \" + responseModel.getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n\n @Override\n public void onFailure(Call<ResponseModel> call, Throwable t) {\n // Log error here since request failed\n Log.e(\"\", t.toString());\n }\n\n });\n }",
"@PostMapping(\"/memberships\")\n @Timed\n public ResponseEntity<MembershipDTO> createMembership(@RequestBody MembershipDTO membershipDTO) throws URISyntaxException {\n log.debug(\"REST request to save Membership : {}\", membershipDTO);\n if (membershipDTO.getId() != null) {\n throw new RuntimeException(\"A new membership cannot already have an ID\");\n }\n MembershipDTO result = membershipService.save(membershipDTO);\n return ResponseEntity.created(new URI(\"/api/memberships/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_date\") String travelDate, @Field(\"latitude\") Double latitude, @Field(\"longitude\") Double longitude, @Field(\"area_name\") String areaName, @Field(\"contry_name\") String countryName, @Field(\"token\") String token);\n}",
"public interface PIService {\n @POST(\"learningrace1/rest/participante\")\n Call<List<Participante>> getParticipante(@Body Participante participante);\n\n @GET(\"learningrace1/rest/evento/{identificador}\")\n Call<List<Evento>> getEvento(@Path(\"identificador\") String identificador);\n\n}",
"protected ExoSocialActivity makeActivity(Identity owner, String activityTitle) {\n ExoSocialActivity activity = new ExoSocialActivityImpl();\n activity.setTitle(activityTitle);\n activity.setUserId(owner.getId());\n activityManager.saveActivityNoReturn(rootIdentity, activity);\n tearDownActivityList.add(activity);\n \n return activity;\n }",
"@GetMapping(path = \"/{name}\")\n public ResponseEntity<?> getActivityById(@PathVariable(\"name\") String activityName){\n ResponseEntity response;\n try {\n response = new ResponseEntity<>(mapActivityResponse(activityServices.getActivityByName(activityName)), HttpStatus.ACCEPTED);\n } catch (ActivityException e) {\n e.printStackTrace();\n response = new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n return response;\n }",
"public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }",
"@POST\n @Path(\"/{a:create|Create}\")\n @Consumes(MediaType.APPLICATION_JSON)\n public abstract Response createGroup(Map<String, String> paramsamsam);",
"net.webservicex.www.WeatherForecasts addNewWeatherForecasts();",
"public interface ActivityService {\n\n /**\n * @Description: 获得所有的活动信息\n * @Param: []\n * @return: java.util.List<com.edu.ccnu.app.demo.pojo.Activity>\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public List<Activity> getAllActivity();\n\n /**\n * @Description: 分页获得活动的信息\n * @Param: []\n * @return: com.github.pagehelper.PageInfo<com.edu.ccnu.app.demo.pojo.Activity>\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public PageInfo<Activity> getActivityByPage(Integer pageNum, Integer pageSize);\n\n /**\n * @Description: 根据id获得活动的信息\n * @Param: [activityId]\n * @return: com.edu.ccnu.app.demo.pojo.Activity\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Activity getActivityById(String activityId);\n\n /**\n * @Description: 插入一条活动的信息\n * @Param: [activity]\n * @return: java.lang.Integer\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Activity insertActivity(Activity activity);\n\n /**\n * @Description: 更新一条活动的信息\n * @Param: [activity]\n * @return: java.lang.Integer\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Integer updateActivity(Activity activity);\n\n /**\n * @Description: 根据id删除一条活动信息\n * @Param: [activityId]\n * @return: java.lang.Integer\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Integer deleteActivityById(String activityId);\n\n /**\n * @Description: 根据一组id对活动进行批量删除\n * @Param: [ids]\n * @return: java.lang.Integer\n * @Author: Anakin\n * @Date: 2020/9/23\n */\n public Integer deleteActivityByIds(String ids);\n\n /**\n * 执行定时任务,做到更新活动状态信息\n */\n void updateActivityState();\n\n\n}",
"@FormUrlEncoded\n @POST(\"posts\")\n Call<Post> createPost(@Field(\"userId\") int userId, @Field(\"title\") String title, @Field(\"body\") String text);",
"public SolicitudREST() {\n gson = new Gson();\n sdao= new SolicitudDAO();\n }",
"public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }",
"public PresenceModel createPresenceModelWithActivity(PresenceActivity.Type acttype, String description);",
"public interface ActivityService {\n //分页展示首页的活动列表的接口\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat);\n\n //搜索活动列表\n //分页返回搜索结果\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat,\n String activityName);\n\n //根据活动类别返回对应活动列表\n //分页返回结果\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat,\n String category, Integer collation, String district);\n\n //根据活动id和经纬度返回包装有志愿者等信息的活动详情\n ActivityDetails getActivityById(\n Integer id, double coordLong, double coordLat);\n\n //创建活动\n boolean createActivity(Activity activity);\n\n //根据志愿者id返回该志愿者参与的活动列表\n PageInfo<ActivityDetails> getActivityPageInfoByVolunteerId(\n Integer page, Integer rows, Integer id);\n\n //根据志愿者id返回该志愿者的服务历史\n PageInfo<ActivityDetails> getHistoricalActivityPageInfo(\n Integer page, Integer rows, Integer id);\n\n //根据组织id返回该组织的所有活动\n PageInfo<ActivityDetails> getActivityPageInfoByOrganizationId(\n Integer page, Integer rows, Integer id);\n\n //根据活动id和状态id更新活动\n String updateActivityStatusById(\n Integer id, Integer activityStatusId);\n}",
"@Path(\"/travel\")\n\npublic interface TravelResource {\n\n @POST\n @Produces({ MediaType.APPLICATION_JSON + \";charset=utf-8\"})\n public Travel postTravelDetails(Travel travel) throws Exception;\n\n\n @GET\n @Path(\"/{id}\")\n @Produces({ MediaType.APPLICATION_JSON + \";charset=utf-8\"})\n public Travel getTravelDetails(@PathParam(\"id\") Long id) throws Exception;\n}",
"public void create(){}",
"private void creerAnnonce(View view){\n\r\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity(),\r\n R.array.catégorie, android.R.layout.simple_spinner_item);\r\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n categorieSpinner.setAdapter(adapter);\r\n\r\n\r\n\r\n Retrofit retrofit = new Retrofit.Builder()\r\n .baseUrl(ROOT_URL )\r\n .addConverterFactory(GsonConverterFactory.create())\r\n .build();\r\n apiHold = retrofit.create(ApiHold.class);\r\n\r\n\r\n creer.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n\r\n final String myTitle = titreChamp.getText().toString();\r\n final String myDescription = descriptionChamp.getText().toString();\r\n\r\n Annonce annonce= new Annonce(myTitle,myDescription,categorie,SessionManager.getInstance(getActivity())\r\n .getUser().getId());\r\n\r\n\r\n Call<Annonce> call = apiHold.createAnnonce(annonce);\r\n call.enqueue(new Callback<Annonce>() {\r\n @Override\r\n public void onResponse(Call<Annonce> call, Response<Annonce> response) {\r\n\r\n if (!response.isSuccessful()) {\r\n\r\n Toast.makeText(getActivity(),\r\n \"Error \" , LENGTH_LONG).show();\r\n return;\r\n }\r\n view.getContext().startActivity(new Intent(view.getContext(),MyAnnonceActivity.class));\r\n }\r\n\r\n\r\n @Override\r\n public void onFailure(Call<Annonce> call, Throwable t) {\r\n Toast.makeText(getActivity(),\r\n t.getMessage(), LENGTH_LONG).show();\r\n }\r\n\r\n });\r\n\r\n }\r\n });\r\n\r\n }",
"@ApiOperation(\"Creates a Team\")\n @PostMapping(\"/API/v1/team\")\n public ResponseEntity<TeamAPI> createTeam(@RequestParam String nombreEquipo){\n TeamString salida = teamService.crearTeam(nombreEquipo, false);\n\n if(salida.getSalida().equals(\"OK\")){\n return new ResponseEntity<>(salida.getTeam().toTeamAPI(), HttpStatus.OK);\n }\n else {\n return new ResponseEntity(salida.getSalida(), HttpStatus.NOT_FOUND);\n }\n\n }",
"Dashboard createDashboard();",
"private static Response callAPI(VERB verb, String url, Workflow mo) throws Exception {\n\n Response result;\n Entity<Workflow> wfEntity = Entity.entity(mo, MediaType.APPLICATION_JSON_TYPE);\n switch (verb) {\n case POST:\n result = RequestSender.sendPOSTRequest(getAPIURL() + url, wfEntity);\n break;\n case GET:\n result = RequestSender.sendGETRequest(getAPIURL() + url);\n break;\n case PUT:\n result = RequestSender.sendPUTRequest(getAPIURL() + url, wfEntity);\n break;\n case DELETE:\n result = RequestSender.sendDELETERequest(getAPIURL() + url);\n break;\n default:\n throw new Exception(\"Bad VERB\");\n }\n\n return result;\n }",
"CreateResponse create(@NonNull CreateRequest request);",
"public interface PostFoods {\n @POST(\"Food/\")\n Call<PFood> createAccount(@Body PFood pfood);\n @PUT(\"Food/{id}/\")\n Call<PFood> updateAccount(@Body PFood pfood, @Path(\"id\") int id);\n}",
"@RequestMapping(value = \"/rest/accesss\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void create(@RequestBody Access access) {\n log.debug(\"REST request to save Access : {}\", access);\n accessRepository.save(access);\n }",
"@POST\n Response createCalendar(Calendar calendar);",
"private ActivityRecord setActivityRecord() {\r\n ActivityRecord actv = new ActivityRecord();\r\n actv.setActivity(sportActivity);\r\n actv.setDistance(5);\r\n actv.setTime(45L);\r\n actv.setBurnedCalories(240);\r\n actv.setUser(user);\r\n return actv;\r\n }",
"public interface API {\r\n\r\n // String SERVER_URL = \"http://192.168.11.150:8080\";\r\n// String SERVER_URL = \"http://10.0.2.2:8080/\";\r\n String SERVER_URL = \"http://societyfocus.com/\";\r\n String API_PATH_PATTERN = \"service/\";\r\n\r\n interface ILoginHeaderParams {\r\n String SOCIETY = \"X-Society\";\r\n String USERNAME = \"X-Username\";\r\n String PASSWORD = \"X-Password\";\r\n String DEVICE_ID = \"X-DeviceID\";\r\n String DEVICE_IDOld = \"X-DeviceIDOld\";\r\n String ACCESS_TOKEN = \"X-AccessToken\";\r\n }\r\n\r\n interface IPostLoginHeaderParams {\r\n String AUTH_TOKEN = \"X-Auth-Token\";\r\n\r\n }\r\n\r\n interface IAssetParams {\r\n String ID = \"id\";\r\n }\r\n\r\n interface IEventParams {\r\n String MONTH = \"month\";\r\n String YEAR = \"year\";\r\n }\r\n\r\n @GET(API_PATH_PATTERN + \"social/fblogin\")\r\n public Call<LoginResponse>\r\n fblogin(@Header(ILoginHeaderParams.DEVICE_ID) String deviceID,\r\n @Header(ILoginHeaderParams.DEVICE_IDOld) String deviceIDOld,\r\n @Query(\"accesstoken\") String FBToken);\r\n\r\n @GET\r\n public Call<GraphPhotoResponse> graphcall(@Url String url);\r\n\r\n @POST(API_PATH_PATTERN + \"access/login\")\r\n public Call<LoginResponse>\r\n login(@Header(ILoginHeaderParams.SOCIETY) String society,\r\n @Header(ILoginHeaderParams.USERNAME) String username,\r\n @Header(ILoginHeaderParams.PASSWORD) String password,\r\n @Header(ILoginHeaderParams.DEVICE_ID) String deviceID,\r\n @Header(ILoginHeaderParams.DEVICE_IDOld) String deviceIDOld);\r\n\r\n @POST(API_PATH_PATTERN + \"upload/image/base64\")\r\n public Call<UploadImageResponse> uploadimage(@Body UploadImage uploadImage);\r\n\r\n @GET(API_PATH_PATTERN + \"v1/comment/add/complaint_{Complaint_ID}/{MESSAGE}\")\r\n public Call<AddCommentResponse> getAddComment(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken,\r\n @Path(\"Complaint_ID\") String complaintID, @Path(\"MESSAGE\") String message);\r\n\r\n @GET(API_PATH_PATTERN + \"user/getalluser\")\r\n public Call<MembersResponse> getAllUsers(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"society/asset/getall\")\r\n public Call<AssetsResponse> getAllSocietyAssets(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"society/panel\")\r\n public Call<PanelResponse> getSocietyPanel(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"society\")\r\n public Call<SocietyListResponse> getSocietyList();\r\n\r\n @POST(API_PATH_PATTERN + \"v1/complaint/save\")\r\n public Call<ComplaintResponse> saveComplaint(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Body Complaint complaint);\r\n\r\n @GET(API_PATH_PATTERN + \"v1/complaint/getusercomplaint\")\r\n public Call<ComplaintListResponse> getUserComplaints(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"v1/complaint/get/{id}\")\r\n public Call<ComplaintCommentResponse> getComplaintDetails(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Path(\"id\") String complaintID);\r\n\r\n @POST(API_PATH_PATTERN + \"user/modifymyuser\")\r\n public Call<UserResponse> modifyUser(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Body User user);\r\n\r\n @GET(API_PATH_PATTERN + \"user/modify/oldpass/{oldpassword}/newpass/{newpassword}/email/{email}\")\r\n public Call<BaseResponse> modifyPassword(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Path(\"oldpassword\") String oldpassword, @Path(\"newpassword\") String newpassword, @Path(\"email\") String email);\r\n\r\n @POST(API_PATH_PATTERN + \"society/asset/book\")\r\n public Call<BookAssetResponse> saveAssetBooking(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Body BookAsset bookAsset);\r\n\r\n @POST(API_PATH_PATTERN + \"society/asset/getassetbyuser\")\r\n public Call<AssetbookingByUserResponse> getAssetBooking(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @GET(API_PATH_PATTERN + \"vehicle/getvehilcebynumber/{vehiclenumber}\")\r\n public Call<CarSearchResponse> searchVehicleNumber(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Path(\"vehiclenumber\") int vehiclenumber);\r\n\r\n @GET(API_PATH_PATTERN + \"society/noticeboard/getall\")\r\n public Call<NoticeBoardResponse> getAllNotices(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken);\r\n\r\n @POST(API_PATH_PATTERN + \"society/noticeboard/add\")\r\n public Call<AddNewNoticeResponse> addNewNotice(@Header(IPostLoginHeaderParams.AUTH_TOKEN) String authToken, @Body AddNewNotice newNotice);\r\n}",
"public interface NetworkAPI {\n //Login Screen\n @Multipart\n @POST(\"/doLogin\")\n void doLogin(@Part(\"email\") TypedString api,\n @Part(\"password\") TypedString password,\n @Part(\"action\") TypedString action,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n Callback<JsonObject> response);\n\n //Add services Screen\n @Multipart\n @POST(\"/getServices\")\n void getAllServices(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"user_id\") TypedString user_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n Callback<JsonObject> response);\n\n //Service details\n @Multipart\n @POST(\"/getServiceDetails\")\n void getServicesDetails(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"user_id\") TypedString user_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"service_id\") TypedString service_id,\n Callback<JsonObject> response);\n\n //Save service request\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetails(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale, //// added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);\n\n//elenco_partecipanti_al_corso_cognome_nome_e_c_f_\n //Save service request without bp file\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsWithoutbpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idDIP\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n // @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);\n\n\n\n //User Selection Screen\n @Multipart\n @POST(\"/doLogin\")\n void getUserType(@Part(\"email\") TypedString api,\n @Part(\"password\") TypedString password,\n @Part(\"action\") TypedString action,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"tipout\") TypedString user_type,\n Callback<JsonObject> response);\n\n //For company data without bpfile\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithoutBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI, // added by Mayur for the request which needs this parametr\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale,\n Callback<JsonObject> response);\n\n //For company data with bp file\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetailsForCompanyWithBpFile(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @Part(\"idAZ\") TypedString idDIP,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"bpFile\") TypedFile bpFile,\n @Part(\"stato_di_famiglia_o_certificato_di_paternitmaternit\") TypedFile stato_di_famiglia_o_certificato_di_paternitmaternit,\n @Part(\"rimborso_1\") TypedFile rimborso_1,\n @Part(\"rimborso_2\") TypedFile rimborso_2,\n @Part(\"rimborso_3\") TypedFile rimborso_3,\n @Part(\"rimborso_4\") TypedFile rimborso_4,\n @Part(\"rimborso_5\") TypedFile rimborso_5,\n @Part(\"rimborso_6\") TypedFile rimborso_6,\n @Part(\"rimborso_7\") TypedFile rimborso_7,\n @Part(\"rimborso_8\") TypedFile rimborso_8,\n @Part(\"rimborso_9\") TypedFile rimborso_9,\n @Part(\"rimborso_10\") TypedFile rimborso10,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"certificato_medico_pediatra_o_ospedale\") TypedFile certificato_medico_pediatra_o_ospedale,\n @Part(\"attestazione_assenza_da_lavoro\") TypedFile attestazione_assenza_da_lavoro,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"lista_dipendenti\") TypedFile lista_dipendenti,\n @Part(\"stato_di_famiglia\") TypedFile stato_di_famiglia,\n @Part(\"ciFile\") TypedFile ciFile,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"VisuraFile\") TypedFile VisuraFile,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"stato_di_famiglia_o_attestazione_di_paternitmaternit\") TypedFile stato_di_famiglia_o_attestazione_di_paternitmaternit,\n @Part(\"elenco_libri_di_testo_certificato_dalla_scuola\") TypedFile elenco_libri_di_testo_certificato_dalla_scuola,\n @Part(\"certificato_di_nascita\")TypedFile certificato_di_nascita,\n @Part(\"certificato_di_invalidit_grave\")TypedFile certificato_di_invalidit_grave,\n @Part(\"certificato_di_nascita_o_di_adozione_del_figlio\")TypedFile certificato_di_nascita_o_di_adozione_del_figlio,\n @Part(\"stato_di_famiglia_o_attestazione_paternitmaternit\")TypedFile stato_di_famiglia_o_attestazione_paternitmaternit,\n @Part(\"attestato_di_iscrizione_a_scuola\")TypedFile attestato_di_iscrizione_a_scuola,\n @Part(\"stato_di_faiimglia_o_attestazione_paternitmaternit\")TypedFile stato_di_faiimglia_o_attestazione_paternitmaternit,\n @Part(\"elenco_di_dipendenti_per_i_quali_si_richiede_rimborso\")TypedFile elenco_di_dipendenti_per_i_quali_si_richiede_rimborso,\n @Part(\"elenco_allievi_in_formazione\")TypedFile elenco_allievi_in_formazione,\n @Part(\"verbale_accordo_sindacale\")TypedFile verbale_accordo_sindacale,\n @Part(\"attestazione_pagamento_dellultima_quota\")TypedFile attestazione_pagamento_dellultima_quota,\n @Part(\"elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dei_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"elenco_dipendenti_che_hanno_sostenuto_la_visita_medica\")TypedFile elenco_dipendenti_che_hanno_sostenuto_la_visita_medica,\n @Part(\"frontespizio_dvr_con_evidenza_data_certa\")TypedFile frontespizio_dvr_con_evidenza_data_certa,\n @Part(\"file_immagine_del_banner_promozionale_o_del_logo\")TypedFile file_immagine_del_banner_promozionale_o_del_logo,\n @Part(\"progetto_formativo_finanziato\")TypedFile progetto_formativo_finanziato,\n @Part(\"delibera_di_approvazione_del_progetto\")TypedFile delibera_di_approvazione_del_progetto,\n @Part(\"elenco_partecipanti_al_corso_cognome_nome_e_c_f_\")TypedFile elenco_partecipanti_al_corso_cognome_nome_e_c,\n\n @Part(\"certificazione_accreditamento_dellorganismo_di_formazione\")TypedFile certificazione_accreditamento_dellorganismo_di_formazione,\n @Part(\"cv_formatori\")TypedFile cv_formatori,\n @Part(\"calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\")TypedFile calendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"codice_fiscale\")TypedFile codice_fiscale, // added by Sanket for the request which needs this parametr\n Callback<JsonObject> response);\n/*certificazione_accreditamento_dellorganismo_di_formazione,\ncv_formatori,\ncalendario_attivit_formativa_con_date_ora_sede_formatori_e_contenuti\nallegatiDesc*/\n\n //Service details\n /*@Multipart\n @POST(\"/changePassword\")\n void changePassword(@Part(\"action\") TypedString action,\n @Part(\"tabella\") TypedString tabella,\n @Part(\"existing_password\") TypedString existing_password,\n @Part(\"new_password\") TypedString new_password,\n @Part(\"confirm_password\") TypedString confirm_password,\n Callback<JsonObject> response);*/\n\n @GET(\"/index_production.php\")\n void changePassword(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"existing_password\") String existing_password,\n @Query(\"new_password\") String new_password,\n @Query(\"confirm_password\") String confirm_password,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n //@Query(\"action\") String action,\n\n @GET(\"/getUserServices\")\n void requestService(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n\n @GET(\"/getVersionList\")\n // @GET(\"/index_new.php\")\n void getVersameti(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n @GET(\"/updateVersionList\")\n void editVersameti(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n @Query(\"AzNome\") String AzNome,\n @Query(\"AnnoComp\") String AnnoComp,\n @Query(\"cf\") String cf,\n @Query(\"piva\") String piva,\n @Query(\"ebv_ver\") String ebv_ver,\n @Query(\"INPS\") String INPS,\n @Query(\"GEN\") String GEN,\n @Query(\"FEB\") String FEB,\n @Query(\"MAR\") String MAR,\n @Query(\"APR\") String APR,\n @Query(\"MAG\") String MAG,\n @Query(\"GIU\") String GIU,\n @Query(\"LUG\") String LUG,\n @Query(\"AGO\") String AGO,\n @Query(\"SET\") String SET,\n @Query(\"OTT\") String OTT,\n @Query(\"NOV\") String NOV,\n @Query(\"DIC\") String DIC,\n Callback<JsonObject> response);\n\n @GET(\"/getSeatList\")\n void getSedi(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);\n\n /* http://www.ebveneto.it/web_services/index_new.php?action=updateSeatList&tabella=Aziende&user_id=00097A&idSede=&\n // Nome=&Via=&Cap=&Comune=&Frazione=&Prov=&Tipo=&fonte=*/\n\n @GET(\"/updateSeatList\")\n void editSedi(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"user_id\") String user_id,\n @Query(\"idSede\") String idSede,\n @Query(\"Nome\") String Nome,\n @Query(\"Via\") String Via,\n @Query(\"Cap\") String Cap,\n @Query(\"Comune\") String Comune,\n @Query(\"Frazione\") String Frazione,\n @Query(\"Prov\") String Prov,\n @Query(\"Tipo\") String Tipo,\n @Query(\"fonte\") String fonte,\n Callback<JsonObject> response);\n\n\n @Multipart\n @POST(\"/updateUserConsent\")\n void updateUserConsent(@Part(\"tabella\") TypedString tabella,\n @Part(\"id\") TypedString user_id,\n @Part(\"action\") TypedString action,\n Callback<JsonObject> response);\n\n\n //Save service request\n @Multipart\n @POST(\"/SaveServiceRequest\")\n void saveServicesDetails(@Part(\"tabella\") TypedString tabella,\n @Part(\"action\") TypedString action,\n @PartMap Map<String, TypedString> userId,\n @Part(\"campiSezD\") TypedString campiSezD,//static and mandatory\n // @Part(\"bpAnnoMese\") TypedString bpAnnoMese,\n @Part(\"testiSezD\") TypedString testiSezD,//static and mandatory\n @Part(\"allegati\") TypedString allegati,//static and mandatory\n @Part(\"IBAN\") TypedString IBAN,\n @Part(\"IDServizio\") TypedString IDServizio,\n @Part(\"privacy1\") TypedString privacy1,\n @Part(\"privacy2\") TypedString privacy2,\n @Part(\"idBenef2\") TypedString company_id,\n @Part(\"is_mobile_request\") TypedString is_mobile_request,\n @Part(\"countAz\") TypedString countAz,\n @Part(\"parente\") TypedString parente,\n @Part(\"tipoParente\") TypedString tipoParente,\n @Part(\"cognomeParente\") TypedString cognomeParente,\n @Part(\"nomeParente\") TypedString nomeParente,\n @Part(\"luogoNascitaParente\") TypedString luogoNascitaParente,\n @Part(\"dtNascitaParente\") TypedString dtNascitaParente,\n @Part(\"cfParente\") TypedString cfParente,\n @Part(\"ProvNascita\") TypedString ProvNascita,\n @Part(\"ciScadenza\") TypedString ciScadenza,\n @Part(\"visuraData\") TypedString visuraData,\n @Part(\"allegatiDesc\")TypedString allegatiDesc,\n @Part(\"GIORNIASSENZA\")TypedString GIORNIASSENZA,\n @Part(\"corsoTitolo\")TypedString corsoTitolo,\n @Part(\"corsoOre\") TypedString corsoOre,\n @Part(\"RIMBORSO\")TypedString RIMBORSO,\n @Part(\"corsoImportoAllievo\") TypedString corsoImportoAllievo, // added by Mayur for the request which needs this parametr\n @Part(\"NALLIEVI\")TypedString NALLIEVI,\n @Part(\"ANNOISCRIZIONESCUOLA\") TypedString ANNOISCRIZIONESCUOLA, // added by Mayur for the request which needs this parametr\n @Part(\"NOMESCUOLA\")TypedString NOMESCUOLA, // added by Mayur for the request which needs this parametr\n @PartMap Map<String, TypedFile> dynamicFiles,\n Callback<JsonObject> response);\n\n @GET(\"/index_production_march19.php?action=getAppVersion&type=android\")\n void updateAvailable(Callback<JsonObject> response);\n\n @Multipart\n @POST(\"/uploadAttach\")\n void uploadAttachment(\n @Part(\"user_id\") TypedString user_id,\n @Part(\"ids\") TypedString ids,\n @PartMap Map<String, TypedFile> dynamicFiles,\n @Part(\"action\") TypedString action,\n Callback<JsonObject> response);\n\n}",
"public void Student_Activities_api_call()\n {\n\n final ApiInterface apiService = ApiClient.getClient().create(ApiInterface.class);\n Call<List<Response_Activity>> call = apiService.get_student_activity_list_temp(String.valueOf(storage.read(\"stud_id\", 3)),String.valueOf(storage.read(\"im_domain_name\",3)));\n call.enqueue(new Callback<List<Response_Activity>>()\n {\n @Override\n public void onResponse(Call<List<Response_Activity>> call, Response<List<Response_Activity>> response)\n {\n if (response.isSuccessful())\n {\n if (response.body() != null && response.body().size() > 0)\n {\n listMain = response.body();\n layoutManager = new LinearLayoutManager(getApplicationContext(), LinearLayoutManager.VERTICAL, false);\n act_list.setLayoutManager(layoutManager);\n activityAdapter = new ActivityAdapter(getApplicationContext(), listMain);\n act_list.setAdapter(activityAdapter);\n\n }\n else\n {\n Toast.makeText(Student_Main_Activity.this, \"No Records Found\", Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n Toast.makeText(Student_Main_Activity.this, \"Please try again later\", Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onFailure(Call<List<Response_Activity>> call, Throwable t)\n {\n\n }\n });\n\n\n }",
"JobResponse create();",
"public interface TaskService {\n\n @GET(\"/api/user/token\")\n void tokenCheck(@Query(\"token\") String token, Callback<ResponseVo> cb);\n\n @POST(\"/api/user/login\")\n void createLogin(@Body LoginVo task, Callback<AuthVo> cb);\n\n// @GET(\"/api/card\")\n// void getCard(@Body GeneralCardVo)\n// @POST(\"/api/card\")\n\n @Multipart\n @POST(\"/api/card\")\n void createCard(@Part(\"image\") TypedFile file, @Part(\"token\") String token, @Part(\"bIds[0]\") Long k, @Part(\"content\") String content, @Part(\"modifiedDate\") String date, @Part(\"type\") String type, Callback<ResponseVo> cb);\n\n @Multipart\n @POST(\"/api/card/update\")\n void updateCard(@Part(\"image\") TypedFile file, @Part(\"token\") String token, @Part(\"bIds[0]\") Long k, @Part(\"content\") String content, @Part(\"modifiedDate\") String date, @Part(\"type\") String type, @Part(\"cId\") Long cId, Callback<ResponseVo> cb);\n\n @GET(\"/api/card/delete\")\n void deleteCard(@Query(\"cId\") Long cId, Callback<ResponseVo> cb);\n\n// @Multipart\n// @PUT(\"/api/card\")\n// void updateCard(@Part(\"image\") TypedFile file, @Part(\"cid\") Long l, @Part(\"token\") String token, @Part(\"bIds[0]\") Long k, @Part(\"content\") String content, @Part(\"modifiedDate\") String date, Callback<ResponseVo> cb);\n\n// @Multipart\n// @POST(\"/api/card\")\n// void createCard(@Body TypedFile file, @Body CardFormVo cardFormVo, Callback<ResponseVo> cb);\n\n //Body body로 나눠 보내보기!\n\n\n @GET(\"/api/card\")\n void getCard(@Query(\"token\") String token, Callback<CardListVo> cb);\n\n @Multipart\n @POST(\"/api/user/baby/create\")\n// void createBabyInfo(@Part(\"image\") TypedFile file, @Body BabyVo babyVo, Callback<ResponseVo> cb);\n void createBabyInfo(@Part(\"image\") TypedFile file, @Part(\"babyName\") String name, @Part(\"babyBirth\") String birth, @Part(\"babyGender\") String gender, Callback<ResponseVo> cb);\n\n @GET(\"/api/user/baby\")\n void getBabies(@Query(\"token\") String token, Callback<ArrayList<BabyVo>> cb);\n\n\n}",
"@POST\n @Consumes({\"application/json\"})\n @Produces({\"application/json\"})\n public RestRsp<Tp> createSite(final Tp tp) throws ServiceException {\n ScopeChecker.checkScope(tp);\n return new RestRsp<Tp>(ResultConstants.SUCCESS, service.createTp(tp));\n }",
"private void clickBtnResponse() {\n showLoadingView();\n Call<CreateResponseBean> call = RetrofitUtil.getAPIService().postCreateResponse(new CreateResponseBodyBean(requestid), authorization);\n call.enqueue(new CustomerCallBack<CreateResponseBean>() {\n @Override\n public void onResponseResult(CreateResponseBean response) {\n dismissLoadingView();\n Intent intent = new Intent(getContext(), ChatsActivity.class);\n intent.putExtra(\"conversation_id\", response.getConversation());\n intent.putExtra(\"username\", userName);\n //intent.putExtra(\"request_category\", dataBean.getRequest_category());\n intent.putExtra(\"request_id\", requestid);\n intent.putExtra(\"date_created\", dataCreateTime);\n startActivity(intent);\n }\n\n @Override\n public void onResponseError(BaseBean errorMsg, boolean isNetError) {\n dismissLoadingView();\n }\n });\n }"
] | [
"0.7573287",
"0.6691284",
"0.6669779",
"0.66390914",
"0.6433159",
"0.615524",
"0.6127",
"0.6035935",
"0.59877217",
"0.59541315",
"0.58683854",
"0.57975394",
"0.57329726",
"0.56938815",
"0.56399584",
"0.5588331",
"0.5562671",
"0.5560297",
"0.5552876",
"0.5528431",
"0.5524181",
"0.5511318",
"0.55091757",
"0.5508204",
"0.5503965",
"0.54982275",
"0.54974544",
"0.5492653",
"0.5487493",
"0.5484928",
"0.5472401",
"0.5461573",
"0.5449083",
"0.54139715",
"0.5409692",
"0.54030275",
"0.5397574",
"0.5389705",
"0.53830934",
"0.53784543",
"0.5373024",
"0.53664064",
"0.5365951",
"0.5361784",
"0.53612417",
"0.5360143",
"0.53588337",
"0.5347499",
"0.53432906",
"0.5333639",
"0.5330201",
"0.5325228",
"0.5320078",
"0.53198737",
"0.5318478",
"0.53145635",
"0.53132606",
"0.53112566",
"0.5308588",
"0.53085315",
"0.53070384",
"0.530508",
"0.5290843",
"0.52871305",
"0.5282362",
"0.5281855",
"0.5280349",
"0.52792",
"0.5278982",
"0.5270927",
"0.52696246",
"0.5259007",
"0.5252505",
"0.52519995",
"0.5251751",
"0.5250248",
"0.52490556",
"0.5246513",
"0.5246358",
"0.5241259",
"0.5240507",
"0.52355593",
"0.5221924",
"0.5220547",
"0.52196944",
"0.52180976",
"0.52121216",
"0.52032983",
"0.52030367",
"0.5201303",
"0.51993304",
"0.51980877",
"0.5194347",
"0.5193404",
"0.5191865",
"0.5191073",
"0.5189908",
"0.5184128",
"0.5179819",
"0.5174235"
] | 0.6974131 | 1 |
get activity by id rest api | @GetMapping("/activities/{id}")
public ResponseEntity<Activity> getActivityById(@PathVariable long id) {
Activity activity = activityRepository.findById(id)
.orElseThrow(()-> new ResourceNotFoundException("Activity not exist with id :" +id));
return ResponseEntity.ok(activity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@CustomAnnotation(value = \"FIND_ONE_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity/{id}\",\n\t\t\tmethod=RequestMethod.GET,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE\n\t\t\t)\n\tpublic ResponseEntity<Activity> findActivity(@PathVariable(\"id\") Long id, @Context HttpServletRequest request){\n\t\treturn new ResponseEntity<Activity>(activityService.findActivity(id), HttpStatus.OK);\n\t}",
"@Override\n\tpublic ResponseObject<ActivityDTO> getById(Long id) {\n\t\ttry{\n\t\t\treturn createResponse(createDTO(activityDAO.findById(id).get()), SUCCESS_MESSAGE, null);\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn createResponse(null, ERROR_MESSAGE, e);\n\t\t}\n\t}",
"UserActivity findUserActivityByActivityId(int activityId) throws DataNotFoundException;",
"List<ActivityRequest> getByUserId(Integer id);",
"@GET(\"movie/{id}\")\n Call<PersonagemResponse> getMovieDetails(@Path(\"id\") int id, @Query(\"api_key\") String apiKey);",
"public Activity getById(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t return e; \n\t}",
"@GetMapping(\"/at-activity-statuses/{id}\")\n @Timed\n public ResponseEntity<AtActivityStatusesDTO> getAtActivityStatuses(@PathVariable Long id) {\n log.debug(\"REST request to get AtActivityStatuses : {}\", id);\n AtActivityStatuses atActivityStatuses = atActivityStatusesRepository.findById(id);\n AtActivityStatusesDTO atActivityStatusesDTO = atActivityStatusesMapper.toDto(atActivityStatuses);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(atActivityStatusesDTO));\n }",
"@GetMapping(path = \"/{name}\")\n public ResponseEntity<?> getActivityById(@PathVariable(\"name\") String activityName){\n ResponseEntity response;\n try {\n response = new ResponseEntity<>(mapActivityResponse(activityServices.getActivityByName(activityName)), HttpStatus.ACCEPTED);\n } catch (ActivityException e) {\n e.printStackTrace();\n response = new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n return response;\n }",
"@GET(\"categories/activities\")\n Call<List<ActivitiesByCategorieOutput>> getActivitiesByCategory();",
"UserActivityTable getUserActivityById(int id) {\n return daoInterface.getUserActivityById(id);\n\n }",
"@GetMapping(path = \"/api/activity/attendactivity/{token}/{activityid}\")\n public Response attendActivity(@PathVariable String token, @PathVariable long activityid) {\n return activityService.attendActivity(userService.getUserIDFromJWT(token), activityid);\n }",
"CoveredActivityDTO findOne(Long id);",
"@GetMapping(path = \"/api/activity/delete/{id}\")\n public Response deleteActivity(@PathVariable long id){\n return activityService.deleteActivity(id);\n }",
"@GetMapping(path = \"/api/activity/cancel/{id}\")\n public Response cancelActivity(@PathVariable long id){\n return activityService.cancelActivity(id);\n }",
"@GET(\"movie_details.json?with_cast=true&with_images=true\")\n Call<MovieDetailsResponse> getMovieDetails(@Query(\"movie_id\") String id);",
"SportActivity findById(Long id);",
"CmsActivity selectByPrimaryKey(String activityId);",
"UserActivity findUserActivityByUserId(int userId) throws DataNotFoundException;",
"@GET(\"aktivitas/{id}\")\n Call<List<AktifitasModel>>\n getById(@Path(\"id\") String id);",
"@Get \n public JsonRepresentation getActivities(Variant variant) {\n \tlog.info(\"getActivities(@Get) entered ..... \");\n \tJSONObject jsonReturn = new JSONObject();\n\t\t\n\t\tString apiStatus = ApiStatusCode.SUCCESS;\n\t\tthis.setStatus(Status.SUCCESS_OK);\n\t\tUser currentUser = null;\n\t\tTimeZone tz = null;\n\t\t// teamId is provided only if getting activities for a single team. \n\t\tboolean isGetActivitiesForAllTeamsApi = this.teamId == null;\n try {\n \t\tcurrentUser = (User)this.getRequest().getAttributes().get(RteamApplication.CURRENT_USER);\n \t\tif(currentUser == null) {\n\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n \t\t\tlog.severe(\"user could not be retrieved from Request attributes!!\");\n \t\t}\n \t\t//::BUSINESSRULE:: user must be network authenticated to get activities\n \t\telse if(!currentUser.getIsNetworkAuthenticated()) {\n \t\t\tapiStatus = ApiStatusCode.USER_NOT_NETWORK_AUTHENTICATED;\n \t\t}\n \t\t//::BUSINESSRULE:: user must be a member of the team, if teamId was specified\n \t\telse if(this.teamId != null && !currentUser.isUserMemberOfTeam(this.teamId)) {\n\t\t\t\tapiStatus = ApiStatusCode.USER_NOT_MEMBER_OF_SPECIFIED_TEAM;\n\t\t\t\tlog.info(apiStatus);\n \t}\n \t\t// timeZone check \n \t\telse if(this.timeZoneStr == null || this.timeZoneStr.length() == 0) {\n \t\t\tlog.info(\"getActivities(): timeZone null or zero length\");\n \t \tapiStatus = ApiStatusCode.TIME_ZONE_REQUIRED;\n \t\t} else {\n \t\t\ttz = GMT.getTimeZone(this.timeZoneStr);\n \t\t\tif(tz == null) {\n \t\tapiStatus = ApiStatusCode.INVALID_TIME_ZONE_PARAMETER;\n \t\t\t}\n \t\t}\n\t\n \t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n \t\t//////////////////////////////////////\n\t\t\t// verify and default input parameters\n \t\t//////////////////////////////////////\n\t\t\tboolean refreshFirst = false;\n\t\t\tif(this.refreshFirstStr != null) {\n\t\t\t\tif(refreshFirstStr.equalsIgnoreCase(\"true\")) {\n\t\t\t\t\trefreshFirst = true;\n\t\t\t\t} else if(refreshFirstStr.equalsIgnoreCase(\"false\")) {\n\t\t\t\t\trefreshFirst = false;\n\t\t\t\t} else {\n\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_REFRESH_FIRST_PARAMETER;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboolean newOnly = false;\n\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\tif(this.newOnlyStr != null) {\n\t\t\t\t\tif(newOnlyStr.equalsIgnoreCase(\"true\")) {\n\t\t\t\t\t\tnewOnly = true;\n\t\t\t\t\t} else if(newOnlyStr.equalsIgnoreCase(\"false\")) {\n\t\t\t\t\t\tnewOnly = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_NEW_ONLY_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint maxCount = DEFAULT_MAX_COUNT;\n\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && maxCountStr != null) {\n\t\t\t\ttry {\n\t\t\t\t\tmaxCount = new Integer(maxCountStr);\n\t\t\t\t\tif(maxCount > MAX_MAX_COUNT) maxCount = MAX_MAX_COUNT;\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MAX_COUNT_PARAMETER;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t///////////////////////////////////\n\t\t\t// some parameters are API specific\n\t\t\t///////////////////////////////////\n\t\t\tLong maxCacheId = null;\n\t\t\tDate mostCurrentDate = null;\n\t\t\tInteger totalNumberOfDays = null;\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t////////////////////////////////////////////////////////\n\t\t\t\t// Get Activity for All Teams: Parameters and Validation\n\t\t\t\t////////////////////////////////////////////////////////\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && mostCurrentDateStr != null) {\n\t\t\t\t\tmostCurrentDate = GMT.convertToGmtDate(mostCurrentDateStr, false, tz);\n\t\t\t\t\tif(mostCurrentDate == null) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MOST_CURRENT_DATE_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && this.totalNumberOfDaysStr != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttotalNumberOfDays = new Integer(this.totalNumberOfDaysStr);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_TOTAL_NUMBER_OF_DAYS_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//::BUSINESSRULE:: if newOnly=true, then refreshFirst must also be true\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(newOnly && !refreshFirst) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.REFRESH_FIRST_AND_NEW_ONLY_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\t//::BUSINESSRULE:: if newOnly=false, date interval must be specified\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(!newOnly && (mostCurrentDate == null || totalNumberOfDays == null)) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.DATE_INTERVAL_REQUIRED;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//::BUSINESSRULE:: newOnly=true is mutually exclusive with date interval\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(newOnly && (mostCurrentDate != null || totalNumberOfDays != null)) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.NEW_ONLY_AND_DATE_INTERVAL_MUTUALLY_EXCLUSIVE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t///////////////////////////////////////////////////////////////////////\n\t\t\t\t// Get Activity for a Single, Specified Team: Parameters and Validation\n\t\t\t\t///////////////////////////////////////////////////////////////////////\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS) && maxCacheIdStr != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmaxCacheId = new Long(maxCacheIdStr);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.INVALID_MAX_CACHE_ID_PARAMETER;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//::BUSINESSRULE:: refreshFirst=true is mutually exclusive with maxCacheId\n\t\t\t\tif(apiStatus.equals(ApiStatusCode.SUCCESS)) {\n\t\t\t\t\tif(refreshFirst && maxCacheId != null) {\n\t\t\t\t\t\tapiStatus = ApiStatusCode.REFRESH_FIRST_AND_MAX_CACHE_ID_MUTUALLY_EXCLUSIVE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n\t\t\tList<Team> teams = new ArrayList<Team>();\n\t\t\tList<Key> teamKeys = null;\n\t\t\tEntityManager em = EMF.get().createEntityManager();\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\tteamKeys = currentUser.getTeams();\n\t\t\t\tif(teamKeys.size() > 0) {\n\t\t\t\t\t//::JPA_BUG:: ?? if I get all teams by passing in a list of keys, the list of teams is not in same order as keys!!!!\n//\t \t\t\tList<Team> teams = (List<Team>) em.createQuery(\"select from \" + Team.class.getName() + \" where key = :keys\")\n//\t\t\t\t\t\t.setParameter(\"keys\", teamKeys)\n//\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\n\t\t\t\t\tfor(Key tk : teamKeys) {\n\t\t\t\t\t\tTeam aTeam = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t aTeam = (Team)em.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t\t\t\t\t.setParameter(\"key\", tk)\n\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"should never happen. Could not find team with the team key\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(aTeam != null) {teams.add(aTeam);}\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"number of teams retrieved for current user = \" + teams.size());\n\t\t\t\t} else {\n\t\t\t\t\tlog.info(\"user has no teams\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttry {\n \t\t\t\t\tTeam team = (Team)em.createNamedQuery(\"Team.getByKey\")\n \t\t\t\t\t\t.setParameter(\"key\", KeyFactory.stringToKey(this.teamId))\n \t\t\t\t\t\t.getSingleResult();\n \t\t\t\t\tlog.info(\"team retrieved = \" + team.getTeamName());\n \t\t\t\t\tteams.add(team);\n \t\t\t\t} catch (NoResultException e) {\n \t\t\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n \t\t\t\t\tlog.info(\"invalid team id\");\n \t\t\t\t} catch (NonUniqueResultException e) {\n \t\t\t\t\tlog.severe(\"should never happen - two teams have the same key\");\n \t\t\t\t}\n\t\t\t}\n \t\t\n\t\t\tList<Activity> allTeamsRequestedActivities = new ArrayList<Activity>();\n\t\t\t\n\t\t\t// All teams support activity so all teams are processed\n\t\t\tfor(Team userTeam : teams) {\n\t\t\t\tBoolean teamUsesTwitter = userTeam.getUseTwitter() != null && userTeam.getUseTwitter();\n\t\t\t\t\n\t\t\t\tList<Activity> teamRequestedActivities = null;\n\t\t\t\tLong cacheId = userTeam.getNewestCacheId();\n\t\t\t\t\n\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t// If a refresh has been requested and team uses Twitter, get the latest activities from Twitter and store in cache\n\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\tif(teamUsesTwitter && refreshFirst) {\n\t\t\t\t\tlog.info(\"refreshFirst is true - updating the cache\");\n\t\t\t\t\t\n\t\t\t\t\tif(newOnly) {teamRequestedActivities = new ArrayList<Activity>();}\n\n\t\t\t\t\t// Twitter refresh is done at most once per minute, so see if the refresh has been done in the last minute.\n\t\t\t\t\tDate lastRefreshDate = userTeam.getLastTwitterRefresh();\n\t\t\t\t\tLong howLongSinceLastRefresh = null;\n\t\t\t\t\tDate now = new Date();\n\t\t\t\t\tif(lastRefreshDate != null) {\n\t\t\t\t\t\thowLongSinceLastRefresh = now.getTime() - lastRefreshDate.getTime();\n\t\t\t\t\t\tlog.info(\"howLongSinceLastRefresh = \" + howLongSinceLastRefresh);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.info(\"lastTwitterRefresh in User null, so refresh will proceed\"); \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(lastRefreshDate == null || (howLongSinceLastRefresh > ONE_MINUTE_IN_MILLI_SECONDS)) {\n\t\t\t\t\t\tlog.info(\"has been over a minute so do a Twitter refresh\");\n\t\t\t\t\t\tLong newestTwitterId = userTeam.getNewestTwitterId();\n\t\t\t\t\t\tList<Activity> twitterActivities = TwitterClient.getTeamActivities(userTeam, newestTwitterId);\n\t\t\t\t\t\tif(twitterActivities == null) {\n\t\t\t\t\t\t\tapiStatus = ApiStatusCode.TWITTER_ERROR;\n\t\t\t\t\t\t} \n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_OK)) {\n\t\t\t\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// because twitterActivities doesn't have the cacheId set, this will get sorted by twitterId\n\t\t\t\t\t\tCollections.sort(twitterActivities);\n\t\t\t\t\t\t\n\t\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t// persist the activities retrieved from Twitter that aren't already stored in the cache\n\t\t\t\t\t\t////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\tint requestedActivityCount = maxCount;\n\n\t\t\t\t\t\tLong largestTwitterId = newestTwitterId;\n\t\t\t\t\t\tlog.info(\"before processing activities, newestTwitterId = \" + newestTwitterId);\n\t\t\t\t\t\tEntityManager em0 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tfor(Activity a: twitterActivities) {\n\t\t\t\t\t\t\t\tem0.getTransaction().begin();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tActivity precachedActivity = (Activity)em0.createNamedQuery(\"Activity.getByTwitterId\")\n\t\t\t\t\t\t\t\t\t\t.setParameter(\"twitterId\", a.getTwitterId())\n\t\t\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t\t\t\t// if already cached, there is no work to do ...\n\t\t\t\t\t\t\t\t} catch (NoResultException e) {\n\t\t\t\t\t \t// not an error - we have found a Twitter update that was a direct post to Twitter\n\t\t\t\t\t\t\t\t\tlog.info(\"uncached activity retrieved with twitter ID = \" + a.getTwitterId());\n\t\t\t\t\t\t\t\t\tif(newOnly && requestedActivityCount != 0) {\n\t\t\t\t\t\t\t\t\t\tteamRequestedActivities.add(a);\n\t\t\t\t\t\t\t\t\t\trequestedActivityCount--;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tcacheId += 1;\n\t\t\t\t\t\t\t\t\ta.setCacheId(cacheId);\n\t\t\t\t\t\t\t\t\tem0.persist(a);\n\t\t\t\t\t\t\t\t\tif(a.getTwitterId() > largestTwitterId) {largestTwitterId = a.getTwitterId();}\n\t\t\t\t\t \t\t} catch (NonUniqueResultException e) {\n\t\t\t\t\t \t\t\tlog.severe(\"should never happen - two or more activities have the same twitter ID\");\n\t\t\t\t\t \t\t}\n\t\t\t\t\t\t\t\tem0.getTransaction().commit();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlog.info(\"after processing activities, largestTwitterId = \" + largestTwitterId);\n\t\t\t\t\t\t\tnewestTwitterId = largestTwitterId;\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tem0.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Update team in a separate transaction\n\t\t\t\t\t\t// at this point, newestTwitterId holds the largest, most recent Twitter Id\n\t\t\t\t\t\t// at this point, cachId holds the largest, most recent cache Id\n\t\t\t\t\t\tEntityManager em2 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tem2.getTransaction().begin();\n\t\t\t\t\t\t\tTeam teamInTransaction = (Team)em2.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t\t\t\t\t.setParameter(\"key\", userTeam.getKey())\n\t\t\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\t\t\tlog.info(\"team2 retrieved = \" + teamInTransaction.getTeamName());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// update the activity IDs\n\t\t\t\t\t\t\tteamInTransaction.setNewestCacheId(cacheId);\n\t\t\t\t\t\t\tteamInTransaction.setNewestTwitterId(newestTwitterId);\n\t\t\t\t\t\t\tteamInTransaction.setLastTwitterRefresh(new Date());\n\t\t\t\t\t\t\tem2.getTransaction().commit();\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"Should never happen. Could not find team using teamKey from User entity.\");\n\t\t\t\t\t\t\t// no matter what, the teamsWithPossibleUpdates team list MUST be complete if this is a refresh!\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t if (em2.getTransaction().isActive()) {\n\t\t\t\t\t\t em2.getTransaction().rollback();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t em2.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} // end of if(teamUsesTwitter && refreshFirst)\n\t\t\t\t\n\t\t\t\t// If this team uses Twitter and this is a refreshFirst with newOnly, then teamRequestedActivities \n\t\t\t\t// already initialized in the code above.\n\t\t\t\tif(!(teamUsesTwitter && refreshFirst && newOnly)) {\n\t\t\t\t\tif(refreshFirst && newOnly) {\n\t\t\t\t\t\t// teamUsesTwitter must be false. If no Twitter, then a refreshFirst-newOnly request has no work to do,\n\t\t\t\t\t\t// but must create a teamRequestedActivities for code below, so make the empty list.\n\t\t\t\t\t\tteamRequestedActivities = new ArrayList<Activity>();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// To get into this leg of code, newOnly must be FALSE\n\t\t\t\t\t\t\n\t\t\t\t\t\t//////////////////////////////////////////////////////////////\n\t\t\t\t\t\t// Build the teamRequestedActivities list from the local cache\n\t\t\t\t\t\t//////////////////////////////////////////////////////////////\n\t\t\t\t\t\tEntityManager em3 = EMF.get().createEntityManager();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlog.info(\"getting activities from the cache ...\");\n\t\t\t\t\t\t\t//////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t\t// return activities from cache (which may include some new stuff too)\n\t\t\t\t\t\t\t//////////////////////////////////////////////////////////////////////\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t\t\t\t\t// Since newOnly must be false (see comment above) the mostCurrentDate and totalNumberOfDays\n\t\t\t\t\t\t\t\t// must be specified according to the API business rules.\n\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\t// get activities by date interval\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\tDate leastCurrentDate = GMT.subtractDaysFromDate(mostCurrentDate, totalNumberOfDays-1);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tteamRequestedActivities = (List<Activity>)em3.createNamedQuery(\"Activity.getByTeamIdAndUpperAndLowerCreatedDates\")\n\t\t\t\t\t\t\t\t\t.setParameter(\"teamId\", KeyFactory.keyToString(userTeam.getKey()))\n\t\t\t\t\t\t\t\t\t.setParameter(\"mostCurrentDate\", GMT.setTimeToEndOfTheDay(mostCurrentDate))\n\t\t\t\t\t\t\t\t\t.setParameter(\"leastCurrentDate\", GMT.setTimeToTheBeginningOfTheDay(leastCurrentDate))\n\t\t\t\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\t// get activities by cacheId range\n\t\t\t\t\t\t\t\t//////////////////////////////////\n\t\t\t\t\t\t\t\tLong upperCacheId = null; // non-inclusive, upper cache ID used in activity query\n\t\t\t\t\t\t\t\tLong lowerCacheId = null; // \n\t\t\t\t\t\t\t\tif(maxCacheId != null) {\n\t\t\t\t\t\t\t\t\t// typically used to request activities that are not the most recent\n\t\t\t\t\t\t\t\t\tif(maxCacheId > cacheId + 1) {maxCacheId = cacheId + 1;}\n\t\t\t\t\t\t\t\t\tupperCacheId = maxCacheId;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// the most recent activities are being requested\n\t\t\t\t\t\t\t\t\t// make upper cache ID large enough so newest item in cache will be returned\n\t\t\t\t\t\t\t\t\tupperCacheId = cacheId + 1; \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlowerCacheId = upperCacheId - maxCount;\n\t\t\t\t\t\t\t\t// number of available activities might be less than maxCount\n\t\t\t\t\t\t\t\tif(lowerCacheId < 0) {lowerCacheId = 0L;}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tteamRequestedActivities = (List<Activity>)em3.createNamedQuery(\"Activity.getByTeamIdAndUpperAndLowerCacheIds\")\n\t\t\t\t\t\t\t\t\t.setParameter(\"teamId\", KeyFactory.keyToString(userTeam.getKey()))\n\t\t\t\t\t\t\t\t\t.setParameter(\"upperCacheId\", upperCacheId)\n\t\t\t\t\t\t\t\t\t.setParameter(\"lowerCacheId\", lowerCacheId)\n\t\t\t\t\t\t\t\t\t.getResultList();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlog.info(\"number of teamRequestedActivities found = \" + teamRequestedActivities.size());\n\t\t\t\t\t\t} catch(Exception e) {\n\t\t\t\t\t\t\tlog.severe(\"Failed in getting Activity from cache. Exception = \" + e.getMessage());\n\t\t\t\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\tem3.close();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tallTeamsRequestedActivities.addAll(teamRequestedActivities);\n\t\t\t} // end of for(Team userTeam : teams)\n\t\t\tlog.info(\"number of allTeamsRequestedActivities found = \" + allTeamsRequestedActivities.size());\n\t\t\t\n\t\t\t/////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\t// Update newestCacheIds in User Entity. newestCacheIds are used to determine if a user\n\t\t\t// has any new activity. All the user's teams that were updated by this API call need\n\t\t\t// to be updated. Note that the team.newestCacheId may not have been updated in this\n\t\t\t// API but rather by the Create Activity API, but it doesn't matter. Any user team\n\t\t\t// that has had activity retrieved by this API call should the associated user.newestCacheId\n\t\t\t// updated.\n\t\t\t/////////////////////////////////////////////////////////////////////////////////////////////\n\t\t\tif(teams.size() > 0) {\n\t \tEntityManager em4= EMF.get().createEntityManager();\n\t \ttry {\n\t \t\tem4.getTransaction().begin();\n\t \t\t// re-get the user inside this transaction\n\t\t\t\t\tUser withinTransactionUser = (User)em4.createNamedQuery(\"User.getByKey\")\n\t\t\t\t\t\t.setParameter(\"key\", currentUser.getKey())\n\t\t\t\t\t\t.getSingleResult();\n\t\t\t\t\tlog.info(\"updating newCachIds for User = \" + withinTransactionUser.getFullName() + \". Number of updated teams = \" + teams.size());\n\t\t\t\t\t\n\t\t\t\t\tList<Long> newestCacheIds = withinTransactionUser.getTeamNewestCacheIds();\n\t\t\t\t\t// If a teamId was specified in the API call, then only ONE TEAM will be in the teamsWithPossibleUpdates list\n\t\t\t\t\t// so we must find the 'matching' team in the User's team list and update just that one team.\n\t\t\t\t\tif(teams.size() == 1) {\n\t\t\t\t\t\tTeam specifiedTeam = teams.get(0);\n\t\t\t\t\t\tint index = 0;\n\t\t\t\t\t\tfor(Key teamKey : withinTransactionUser.getTeams()) {\n\t\t\t\t\t\t\tif(teamKey.equals(specifiedTeam.getKey())) {\n\t\t\t\t\t\t\t\tnewestCacheIds.set(index, specifiedTeam.getNewestCacheId());\n\t\t\t\t\t\t\t\tlog.info(\"updating cacheID for specified team = \" + specifiedTeam.getTeamName());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ALL the User's team could have been updated. In this case, the code above guarantees that\n\t\t\t\t\t\t// the teamsWithPossibleUpdates list will contain ALL the user's teams -- both updated\n\t\t\t\t\t\t// teams and teams not updated. For simplicity, just completely rebuild newestCacheIds list.\n\t\t\t\t\t\tnewestCacheIds = new ArrayList<Long>();\n\t\t\t\t\t\tfor(Team t : teams) {\n\t\t\t\t\t\t\t// even if Activity not active for this team, getNewestCacheId() guaranteed to return 0L\n\t\t\t\t\t\t\tlog.info(\"updating cacheID for team = \" + t.getTeamName());\n\t\t\t\t\t\t\tnewestCacheIds.add(t.getNewestCacheId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\twithinTransactionUser.setTeamNewestCacheIds(newestCacheIds);\n\t\t\t\t\tem4.getTransaction().commit();\n\t \t} catch (NoResultException e) {\n\t \tlog.severe(\"user not found\");\n\t \te.printStackTrace();\n\t \t\t} catch (NonUniqueResultException e) {\n\t \t\t\tlog.severe(\"should never happen - two or more users have same key\");\n\t \t\t\te.printStackTrace();\n\t \t\t} finally {\n\t \t\t if (em4.getTransaction().isActive()) {\n\t \t\t \tem4.getTransaction().rollback();\n\t \t\t }\n\t \t\t em4.close();\n\t \t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// because cacheId has been set, this will get sorted by created date - reverse chronological order\n\t\t\tCollections.sort(allTeamsRequestedActivities);\n\t\t\t\n\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t// enforce the maxCount for Date Interval algorithm\n\t\t\t\tif(allTeamsRequestedActivities.size() > maxCount) {\n\t\t\t\t\t// activity list needs to be truncated, but truncation only happens on full day boundaries\n\t\t\t\t\tDate dateBoundary = allTeamsRequestedActivities.get(maxCount-1).getCreatedGmtDate();\n\t\t\t\t\tdateBoundary = GMT.setTimeToTheBeginningOfTheDay(dateBoundary);\n\t\t\t\t\tlog.info(\"Activity list exceeded max size of \" + maxCount + \". List size = \" + allTeamsRequestedActivities.size() + \" Date boundary = \" + dateBoundary.toString());\n\t\t\t\t\t\n\t\t\t\t\t// find the index of the first activity with a date greater than the boundary date\n\t\t\t\t\tInteger truncateIndex = null;\n\t\t\t\t\tfor(int searchIndex = maxCount; searchIndex<allTeamsRequestedActivities.size(); searchIndex++) {\n\t\t\t\t\t\tDate activityDate = allTeamsRequestedActivities.get(searchIndex).getCreatedGmtDate();\n\t\t\t\t\t\tactivityDate = GMT.setTimeToTheBeginningOfTheDay(activityDate);\n\t\t\t\t\t\tif(activityDate.before(dateBoundary)) {\n\t\t\t\t\t\t\ttruncateIndex = searchIndex;\n\t\t\t\t\t\t\tlog.info(\"truncate index found and = \" + truncateIndex);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// possible that no activity exceeded the boundary date, so modify activity list only if appropriate\n\t\t\t\t\tif(truncateIndex != null) {\n\t\t\t\t\t\t// for subList call, first index is inclusive and second is exclusive\n\t\t\t\t\t\tallTeamsRequestedActivities = allTeamsRequestedActivities.subList(0, truncateIndex);\n\t\t\t\t\t\tlog.info(\"Activity list truncated. New list size = \" + allTeamsRequestedActivities.size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Package requested activities into JSON\n\t\t\tJSONArray jsonActivitiesArray = new JSONArray();\n\t\t\tfor(Activity a : allTeamsRequestedActivities) {\n\t\t\t\tJSONObject jsonActivityObj = new JSONObject();\n\t\t\t\tjsonActivityObj.put(\"activityId\", KeyFactory.keyToString(a.getKey()));\n\t\t\t\tjsonActivityObj.put(\"text\", a.getText());\n\t\t\t\t// TODO is the Twitter Date returned GMT? -- if not fix this code\n\t\t\t\tjsonActivityObj.put(\"createdDate\", GMT.convertToLocalDate(a.getCreatedGmtDate(), tz));\n\t\t\t\tif(isGetActivitiesForAllTeamsApi) {\n\t\t\t\t\tjsonActivityObj.put(\"teamId\", a.getTeamId());\n\t\t\t\t\tjsonActivityObj.put(\"teamName\", a.getTeamName());\n\t\t\t\t}\n\t\t\t\tjsonActivityObj.put(\"cacheId\", a.getCacheId());\n\t\t\t\tjsonActivityObj.put(\"numberOfLikeVotes\", a.getNumberOfLikeVotes());\n\t\t\t\tjsonActivityObj.put(\"numberOfDislikeVotes\", a.getNumberOfDislikeVotes());\n\t\t\t\tif(a.getThumbNailBase64() != null) {\n\t\t\t\t\tjsonActivityObj.put(\"thumbNail\",a.getThumbNailBase64());\n\t\t\t\t\tBoolean isVideo = a.getVideoBase64() == null ? false : true;\n\t\t\t\t\tjsonActivityObj.put(\"isVideo\", isVideo);\n\t\t\t\t}\n\t\t\t\tBoolean useTwitterRet = a.getTwitterId() == null ? false : true;\n\t\t\t\tjsonActivityObj.put(\"useTwitter\", useTwitterRet);\n\t\t\t\tjsonActivitiesArray.put(jsonActivityObj);\n\t\t\t}\n\t\t\tlog.info(\"JSON object built successfully\");\n\t\t\tjsonReturn.put(\"activities\", jsonActivitiesArray);\n\n } catch (JSONException e) {\n\t\t\tlog.severe(\"error converting json representation into a JSON object\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (NoResultException e) {\n\t\t\tlog.severe(\"team not found\");\n\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n\t\t} catch (NonUniqueResultException e) {\n\t\t\tlog.severe(\"should never happen - two or more teams have same team id\");\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error creating JSON return object\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new JsonRepresentation(jsonReturn);\n }",
"public List<Activity> getAllActivities();",
"@GET\n @Path(\"{id}\")\n @Produces({ \"application/json\" })\n public abstract Response find(@PathParam(\"id\") Long id);",
"Optional<EventActivityDTO> findOne(Long id);",
"@GetMapping(\"/act-kodus/{id}\")\n @Timed\n public ResponseEntity<ActKodu> getActKodu(@PathVariable Long id) {\n log.debug(\"REST request to get ActKodu : {}\", id);\n ActKodu actKodu = actKoduRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(actKodu));\n }",
"public LearningResultHasActivity[] findWhereActivityIdActivityEquals(int activityIdActivity) throws LearningResultHasActivityDaoException;",
"@GetMapping(\"/attractions/{id}\")\n @Timed\n public ResponseEntity<Attraction> getAttraction(@PathVariable Long id) {\n log.debug(\"REST request to get Attraction : {}\", id);\n Optional<Attraction> attraction = attractionRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(attraction);\n }",
"@GET(\"pomodorotasks/activity\")\n Call<List<PomodoroTask>> pomodorotasksActivityGet(\n @Query(\"user\") String user\n );",
"public IPermissionActivity getPermissionActivity(long id);",
"public ExoSocialActivity getActivity(String activityId) throws ActivityStorageException;",
"@GetMapping(\"/byUserId/{id}\")\n public ApiResponse getTurnicet(@PathVariable UUID id){\n return turnicetService.getTurnicetById(id);\n }",
"public Meeting getMeeting(String id) throws Exception;",
"@Override\n\tpublic ActivityAbstractInfo getActivityById(int id) {\n\t\treturn activityAbstractInfoMapper.selectByPrimaryKey(id);\n\t}",
"@CustomAnnotation(value = \"DELETE_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity/{id}\",\n\t\t\tmethod=RequestMethod.DELETE,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Activity> deleteActivity(@PathVariable(\"id\") Long id, @Context HttpServletRequest request){\n\t\tActivity activityForDelete=activityService.findActivity(id);\n\t\tif(activityForDelete!=null){\n\t\t\tactivityService.deleteActivity(activityForDelete.getId());\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<Activity>(activityForDelete, HttpStatus.OK);\n\t}",
"@GetMapping(path=\"/showActivity\",produces = MediaType.APPLICATION_JSON_VALUE)\n public @ResponseBody Iterable<user_activity> getactivity(HttpSession session) {\n return activityService.getactivity(session.getAttribute(\"name\").toString());\n }",
"RespuestaRest<ParqueaderoEntidad> consultar(String id);",
"@GetMapping(\"/impacts/{id}\")\n @Timed\n public ResponseEntity<Impact> getImpact(@PathVariable Long id) {\n log.debug(\"REST request to get Impact : {}\", id);\n Impact impact = impactRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(impact));\n }",
"@GET\n @Path(\"{id}\")\n @JWTTokenNeeded\n @Produces({MediaType.APPLICATION_JSON})\n public EscenarioDTO getById(@PathParam(\"id\") int id) {\n logger.log(Level.INFO, \"id:{0}\", id);\n Escenario entidad = managerDAO.find(id);\n return entidad.toDTO();\n\n }",
"@GetMapping(\"/vehicle-tasks/{id}\")\n @Timed\n @Secured(AuthoritiesConstants.ADMIN)\n public ResponseEntity<VehicleTask> getVehicleTask(@PathVariable Long id) {\n log.debug(\"REST request to get VehicleTask : {}\", id);\n VehicleTask vehicleTask = vehicleTaskService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(vehicleTask));\n }",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api/{id}\", method = RequestMethod.GET)\n \tpublic HttpEntity<String> getOne(@PathVariable(\"id\") Long id) {\n \t\treturn toJsonHttpEntity(agentManagerService.getOne(id));\n \t}",
"@GetMapping(\"/id/{id}\")\n public ResponseEntity<ServiceResult> findById(@PathVariable String id) {\n ServiceResult serviceResult = new ServiceResult();\n AdCampaign adCampaign = new AdCampaign();\n logger.info(\"Start controller call get data from ID - \"+id);\n try {\n adCampaign = adCampaignService.findByIdCustom(id);\n serviceResult.setMessage(\"Get Data from ID\"+id+\" Success\");\n serviceResult.setData(adCampaignService.findByIdCustom(id));\n serviceResult.setStatus(ServiceResult.Status.SUCCESS);\n }catch (Exception ex){\n logger.info(\"Error call get data from ID - \"+id);\n serviceResult.setMessage(ex.getMessage());\n }\n logger.info(\"End call get data from ID - \"+id);\n return new ResponseEntity<ServiceResult>(serviceResult, HttpStatus.OK);\n }",
"RequesterVO get(int id);",
"@CustomAnnotation(value = \"FIND_ALL_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activities\",\n\t\t\tmethod=RequestMethod.GET\n\t\t\n\t\t\t)\n\tpublic ResponseEntity<Set<Activity>> findAcitities(){\n\t\treturn new ResponseEntity<Set<Activity>>(activityService.findAll(), HttpStatus.OK);\n\t}",
"ActivityType loadActivityType(int id) throws DataAccessException;",
"@GetMapping(\"/movies/{id}\")\n @Timed\n public ResponseEntity<Movie> getMovie(@PathVariable Long id) {\n log.debug(\"REST request to get Movie : {}\", id);\n Movie movie = movieRepository.findOne(id);\n return Optional.ofNullable(movie)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@Test\n public void testGetActivityWithId_notFound() {\n UUID uuid = new UUID(0L, 0L);\n Activity resultActivity = activityStore.getActivityWithId(uuid);\n\n Assert.assertNull(resultActivity);\n }",
"public MarshaledActivity[] getActivityFeed(String client, String cisId);",
"@GET(\"/tours/{tourId}\")\n Call<Tour> getTour(\n @Path(\"tourId\") int tourId\n );",
"@GetMapping(\"/event-actions/{id}\")\n @Timed\n public ResponseEntity<EventActionDTO> getEventAction(@PathVariable Long id) {\n log.debug(\"REST request to get EventAction : {}\", id);\n EventActionDTO eventActionDTO = eventActionService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(eventActionDTO));\n }",
"@GET(\"/attractions/{attractionId}\")\n Call<Attraction> getAttraction(\n @Path(\"attractionId\") int attractionId\n );",
"@GetMapping(\"/turno/{id}\")\r\n public ResponseEntity<Turno> getTurno(@PathVariable(\"id\") Long id) \r\n {\r\n Turno turn = turnoRepository.findOne(id);\r\n if (turn == null) \r\n {\r\n return ResponseEntity.notFound().header(\"X-error\", \"No se encontro el paciente con el Id: \"+id).build();\r\n }\r\n return ResponseEntity.ok(turn);\r\n }",
"@GetMapping(path = \"api/activity/attenddeclined/{token}/{activityid}\")\n public Response attendDeclinedActivity(@PathVariable String token, @PathVariable long activityid){\n return activityService.attendDeclinedActivity(userService.getUserIDFromJWT(token), activityid);\n }",
"@DeleteMapping(\"/activities/{id}\")\n\tpublic ResponseEntity <Map<String,Boolean>> deleteActivity(@PathVariable Long id) {\n\t\tActivity activity = activityRepository.findById(id)\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"Activity not exist with id :\" +id));\n\t\tactivityRepository.delete(activity);\n\t\tMap<String,Boolean> response = new HashMap<>();\n\t\tresponse.put(\"deleted\", Boolean.TRUE);\n\t\treturn ResponseEntity.ok(response);\n\t}",
"@GET\n @Path(\"{id}\")\n @Produces(\"application/hal+json\")\n public Response get(@PathParam(\"regNo\") String regNo, @PathParam(\"accountNo\") String accountNo, @PathParam(\"id\") String id) {\n Optional<Transaction> transaction = admin.findTransaction(regNo, accountNo, id);\n if (transaction.isPresent()) {\n CacheControl cc = new CacheControl();\n cc.setMaxAge(24 * 60 * 60);\n return Response.ok(entityBuilder.buildTransactionJson(transaction.get(), uriInfo)).cacheControl(cc).build();\n } else {\n return Response.status(Response.Status.NOT_FOUND).build();\n }\n }",
"@RequestMapping(value = \"/tasks/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TaskDTO> getTask(@PathVariable Long id) {\n log.debug(\"REST request to get Task : {}\", id);\n TaskDTO taskDTO = taskService.findOne(id);\n return Optional.ofNullable(taskDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"boolean isActivityExist(long activityId);",
"@GET\n @Path(\"{id}\")\n Calendar getCalendarById(@PathParam(\"id\") Long id);",
"TestActivityEntity selectByPrimaryKey(Integer id);",
"public MemberResponse getTeamActivity(GenericRequest genericRequest);",
"List<UserActivity> findAllUserActivityInDB() throws DataNotFoundException;",
"@RequestMapping(value = \"/threads/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @ApiOperation(value = \"Get the \\\"id\\\" thread.\")\n @ApiResponses(value = {\n @ApiResponse(code = 400, message = \"Invalid ID supplied\"),\n @ApiResponse(code = 404, message = \"Thread not found\")\n })\n public ResponseEntity<Thread> get(@PathVariable String id) throws KalipoException, ExecutionException, InterruptedException {\n log.debug(\"REST request to get Thread : {}\", id);\n Asserts.isNotNull(id, \"id\");\n\n return Optional.ofNullable(threadService.get(id).get())\n .map(thread -> new ResponseEntity<>(\n thread,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@GetMapping(\"/byid/{id}\")\r\n public ResponseEntity<TaskStatus> getTaskStatusById(@PathVariable(value = \"id\") Long id) {\r\n\r\n TaskStatus tsk = dao.findOne(id);\r\n\r\n if (tsk == null) {\r\n return ResponseEntity.notFound().build();\r\n }\r\n return ResponseEntity.ok().body(tsk);\r\n\r\n }",
"@GetMapping(\"/convites/{id}\")\n @Timed\n public ResponseEntity<ConviteDTO> getConvite(@PathVariable Long id) {\n log.debug(\"REST request to get Convite : {}\", id);\n ConviteDTO conviteDTO = conviteService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(conviteDTO));\n }",
"public News getByid(News news);",
"public static ApiActivityBase getApiActivity(Object activity) {\n\n if (!(activity instanceof ApiActivityBase)) {\n\n throw new ResponseException(\"Not an ApiActivityBase object: \"\n + activity.toString());\n }\n return (ApiActivityBase) activity;\n }",
"@GetMapping(\"/cuentas/{id}\")\n @Timed\n public ResponseEntity<Cuenta> getCuenta(@PathVariable Long id) {\n log.debug(\"REST request to get Cuenta : {}\", id);\n Optional<Cuenta> cuenta = cuentaRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(cuenta);\n }",
"@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @GET(\"api/v2/reports/{id}.json_api\")\n Call<Report> show(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Query(\"include\") String include\n );",
"public void getDetail(int id) {\n\t\t\n\t}",
"@GetMapping(\"/affinites/{id}\")\n @Timed\n public ResponseEntity<Affinite> getAffinite(@PathVariable Long id) {\n log.debug(\"REST request to get Affinite : {}\", id);\n Affinite affinite = affiniteRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(affinite));\n }",
"public interface DetailMovie {\n @GET(\"{id}\")\n Call<DetailMovies> getData(@Path(\"id\") int id,\n @Query(\"api_key\") String api_key,\n @Query(\"language\") String language,\n @Query(\"append_to_response\") String append_to_response\n );\n}",
"public CompletableFuture<Void> apiV3WorkPackagesIdActivitiesGet(Integer id) {\n\t\t// verify the required parameter 'id' is set\n\t\tif (id == null) {\n\t\t\treturn CompletableFuture.failedFuture(new ApiException(400,\n\t\t\t\t\t\"Missing the required parameter 'id' when calling apiV3WorkPackagesIdActivitiesGet\"));\n\t\t}\n\n\t\tHttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();\n\n\t\tString localVarPath = \"/api/v3/work_packages/{id}/activities\".replace(\"{id}\",\n\t\t\t\tApiClient.urlEncode(id.toString()));\n\n\t\tlocalVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));\n\n\t\tlocalVarRequestBuilder.header(\"Accept\", \"application/json\");\n\n\t\tlocalVarRequestBuilder.method(\"GET\", HttpRequest.BodyPublishers.noBody());\n\t\tif (memberVarReadTimeout != null) {\n\t\t\tlocalVarRequestBuilder.timeout(memberVarReadTimeout);\n\t\t}\n\t\tif (memberVarInterceptor != null) {\n\t\t\tmemberVarInterceptor.accept(localVarRequestBuilder);\n\t\t}\n\t\treturn memberVarHttpClient.sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString())\n\t\t\t\t.thenComposeAsync(localVarResponse -> {\n\t\t\t\t\tif (localVarResponse.statusCode() / 100 != 2) {\n\t\t\t\t\t\treturn CompletableFuture.failedFuture(new ApiException(localVarResponse.statusCode(),\n\t\t\t\t\t\t\t\t\"apiV3WorkPackagesIdActivitiesGet call received non-success response\",\n\t\t\t\t\t\t\t\tlocalVarResponse.headers(), localVarResponse.body()));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn CompletableFuture.completedFuture(\n\t\t\t\t\t\t\t\t\tmemberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<>() {\n\t\t\t\t\t\t\t\t\t}));\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\treturn CompletableFuture.failedFuture(new ApiException(e));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"@Path(\"/{id}\")\n @GET\n public Response getSession(@PathParam(\"id\") Long id) {\n log.debug(\"REST request to get Session : {}\", id);\n Session session = sessionRepository.find(id);\n return Optional.ofNullable(session)\n .map(result -> Response.status(Response.Status.OK).entity(session).build())\n .orElse(Response.status(Response.Status.NOT_FOUND).build());\n }",
"@GET(\"projects/session/{session_id}\")\n Call<ResponseBody> getAllProjects(@Path(\"session_id\") int id);",
"@GetMapping(\"/anexlaborals/{id}\")\n @Timed\n public ResponseEntity<Anexlaboral> getAnexlaboral(@PathVariable Integer id) {\n log.debug(\"REST request to get Anexlaboral : {}\", id);\n Anexlaboral anexlaboral = anexlaboralRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(anexlaboral));\n }",
"private void getVideo() {\n // create the url\n String temp = movie.getId().toString();\n String url = API_BASE_URL+\"/movie/\"+temp+\"/videos\";\n // set the request parameters\n RequestParams params = new RequestParams();\n params.put(API_KEY_PARAM, getString(R.string.api_key)); // Always needs API key\n // request a GET response expecting a JSON object response\n\n client.get(url,params, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n // load the results into movies list\n\n try {\n JSONArray results = response.getJSONArray(\"results\");\n JSONObject curMovie = results.getJSONObject(0);\n key = curMovie.getString(\"key\");\n\n } catch (JSONException e) {\n logError(\"Failed to parse play_video endpoint\", e, true);\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n logError(\"Failed to get data from Now_playing endpoint\", throwable, true);\n }\n });\n\n }",
"String get(String id);",
"private Movie startMovieRequest(String id) throws InternetConnectionException {\n if (isThereInternetConnection(mContext)) {\n try {\n return mWebServicesApiCallsImpl.getMovieDetail(id);\n } catch (RetrofitError e) {\n throw new InternetConnectionException(e.getMessage());\n }\n } else {\n throw new InternetConnectionException(mContext.getString(R.string.internet_connection_error));\n }\n }",
"@RequestMapping(\"/{mId}\")\r\n // Frequently we see ID are numbers mixed with chars...\r\n public Movie getMovieInfo(@PathVariable(\"mId\") String movieId) {\r\n\t \r\n \t// Hard coded movie name for every request.\r\n \t//return new Movie(movieId, \"Movie Name\");\r\n\t\t\r\n\t\t// Only pick the MovieSummary fields from so many fields supplied by the hard coded external API. \r\n MovieSummary movieSummary = restTemplate.getForObject(\"https://api.themoviedb.org/3/movie/\" + movieId + \"?api_key=\" + apiKey, MovieSummary.class);\r\n // Then use the obtained data to construct a Movie object.\r\n return new Movie(movieId, movieSummary.getTitle(), movieSummary.getOverview());\r\n\r\n }",
"@GetMapping\n public ResponseEntity<?> getAllActivities(){\n final ResponseEntity response;\n response = new ResponseEntity<>(mapActivitiesResponse(activityServices.getAllActivities()), HttpStatus.ACCEPTED);\n return response;\n\n }",
"@RequestMapping(value = \"/rest/accesss/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Access> get(@PathVariable Long id, HttpServletResponse response) {\n log.debug(\"REST request to get Access : {}\", id);\n Access access = accessRepository.findOne(id);\n if (access == null) {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n return new ResponseEntity<>(access, HttpStatus.OK);\n }",
"@GetMapping(\"/activities\")\n //@Timed\n public ResponseEntity getActivities() {\n /*final Page<UserDTO> page = userService.getAllManagedUsers(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/users\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);*/\n /*return activityRepository.findAll().stream().map(activity -> {\n return new ResponseEntity<>(HttpStatus.OK);\n }).orElseGet(() -> {\n *//*log.info(\"Login: \" + managedUserVM.getLogin());\n log.info(\"Password: \" + managedUserVM.getPassword());\n User user = userService\n .createUser(managedUserVM.getLogin(), managedUserVM.getEmail().toLowerCase(),\n managedUserVM.getPassword()*//**//*, managedUserVM.getFirstName(), managedUserVM.getLastName()*//**//*\n );*//*\n return new ResponseEntity<>(HttpStatus.CREATED);\n })*/\n if(activityRepository.findAll().isEmpty()){\n return new ResponseEntity<>(HttpStatus.NO_CONTENT);\n }else{\n return new ResponseEntity<>(activityRepository.findAll(), HttpStatus.OK);\n }\n }",
"public interface VideoApi {\n\n @GET(\"tabs/selected\")\n Observable<Video> getVideoList(@Query(\"date\") String date);\n\n}",
"public Integer getActivityId() {\n return activityId;\n }",
"@GET(\"users/{id}\")\n Call<UserResource> getUser(\n @retrofit2.http.Path(\"id\") String id\n );",
"@Post \n public JsonRepresentation createActivity(Representation entity) {\n \tJSONObject jsonReturn = new JSONObject();\n \tlog.info(\"createActivity(@Post) entered ..... \");\n\t\tEntityManager em = EMF.get().createEntityManager();\n\t\t\n\t\tString apiStatus = ApiStatusCode.SUCCESS;\n\t\tthis.setStatus(Status.SUCCESS_CREATED);\n\t\tUser currentUser = null;\n try {\n \t\tcurrentUser = (User)this.getRequest().getAttributes().get(RteamApplication.CURRENT_USER);\n \t\tif(currentUser == null) {\n\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n \t\t\tlog.severe(\"user could not be retrieved from Request attributes!!\");\n \t\t}\n \t\t//::BUSINESSRULE:: user must be network authenticated to send a message\n \t\telse if(!currentUser.getIsNetworkAuthenticated()) {\n \t\t\tapiStatus = ApiStatusCode.USER_NOT_NETWORK_AUTHENTICATED;\n \t\t}\n \t\t// teamId is required if this is 'Create a new activity' API\n \t\telse if(this.userVote == null) {\n \t\tif(this.teamId == null || this.teamId.length() == 0) {\n \t\t\t\tapiStatus = ApiStatusCode.TEAM_ID_REQUIRED;\n \t\t} else if(!currentUser.isUserMemberOfTeam(this.teamId)) {\n \t\t\t\tapiStatus = ApiStatusCode.USER_NOT_MEMBER_OF_SPECIFIED_TEAM;\n \t\t\t\tlog.info(apiStatus);\n \t}\n \t\t}\n \t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_CREATED)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n \t\tJsonRepresentation jsonRep = new JsonRepresentation(entity);\n\t\t\tJSONObject json = jsonRep.toJsonObject();\n\n\t\t\t//////////////////////////////////////////\n \t\t// 'Get Status of Activities for User' API\n \t\t//////////////////////////////////////////\n \t\tif(this.userVote != null) {\n \t\t\t// remainder of processing for this API is delegated to another method\n \t\t\tgetStatusOfActivitiesForUser(currentUser, json, jsonReturn);\n \t\t\treturn new JsonRepresentation(jsonReturn);\n \t\t}\n \t\t\n\t\t\tTeam team = (Team)em.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t.setParameter(\"key\", KeyFactory.stringToKey(this.teamId))\n\t\t\t\t.getSingleResult();\n\t\t\tlog.info(\"team retrieved = \" + team.getTeamName());\n\t\t\t\n\t\t\tString statusUpdate = null;\n\t\t\tif(json.has(\"statusUpdate\")) {\n\t\t\t\tstatusUpdate = json.getString(\"statusUpdate\");\n\t\t\t}\n\t\t\t\n\t\t\tString photoBase64 = null;\n\t\t\tif(json.has(\"photo\")) {\n\t\t\t\tphotoBase64 = json.getString(\"photo\");\n\t\t\t}\n\t\t\t\n\t\t\tBoolean isPortrait = null;\n\t\t\tif(json.has(\"isPortrait\")) {\n\t\t\t\tisPortrait = json.getBoolean(\"isPortrait\");\n\t\t\t\tlog.info(\"json isPortrait = \" + isPortrait);\n\t\t\t}\n\n\t\t\tString videoBase64 = null;\n\t\t\tif(json.has(\"video\")) {\n\t\t\t\tvideoBase64 = json.getString(\"video\");\n\t\t\t}\n\t\t\t\n\t\t\t// Enforce Rules\n\t\t\tif((statusUpdate == null || statusUpdate.length() == 0) && (photoBase64 == null || photoBase64.length() == 0)) {\n\t\t\t\tapiStatus = ApiStatusCode.STATUS_UPDATE_OR_PHOTO_REQUIRED;\n\t\t\t\tlog.info(\"required statusUpdate or photo field required\");\n\t\t\t} else if(statusUpdate != null && statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT){\n\t\t\t\tapiStatus = ApiStatusCode.INVALID_STATUS_UPDATE_MAX_SIZE_EXCEEDED;\n\t\t\t} else if(videoBase64 != null && photoBase64 == null) {\n\t\t\t\tapiStatus = ApiStatusCode.VIDEO_AND_PHOTO_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t} else if(photoBase64 != null && isPortrait == null) {\n\t\t\t\tapiStatus = ApiStatusCode.IS_PORTRAIT_AND_PHOTO_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t}\n \t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_CREATED)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n\t\t\t// No anonymous Activity posts.\n\t\t\t// TODO once twitter API supports the meta data, then user name will not have to be inserted into update\n\t\t\tif(statusUpdate == null || statusUpdate.length() == 0) {\n\t\t\t\tstatusUpdate = currentUser.getFullName() + \" shared a photo fr loc \" + TF.getPassword();\n\t\t\t} else {\n\t\t\t\tstatusUpdate = currentUser.getDisplayName() + \" post: \" + statusUpdate;\n\t\t\t}\n\t\t\t\n\t\t\t///////////////////////////////////////////////////////////////////\n\t\t\t// Cache the activity post whether the team is using Twitter or not\n\t\t\t///////////////////////////////////////////////////////////////////\n\t\t\t// abbreviate only if necessary\n\t\t\tif(statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT) {\n\t\t\t\tstatusUpdate = Language.abbreviate(statusUpdate);\n\t\t\t}\n\t\t\t\t\n\t\t\tActivity newActivity = new Activity();\n\t\t\tnewActivity.setText(statusUpdate);\n\t\t\tnewActivity.setCreatedGmtDate(new Date());\n\t\t\tnewActivity.setTeamId(this.teamId);\n\t\t\tnewActivity.setTeamName(team.getTeamName());\n\t\t\t\n\t\t\t// cacheId held in team is the last used.\n\t\t\tLong cacheId = team.getNewestCacheId() + 1;\n\t\t\tnewActivity.setCacheId(cacheId);\n\t\t\tteam.setNewestCacheId(cacheId);\n\t\t\t\n\t\t\t// Only send activity to Twitter if team is using Twitter\n\t\t\ttwitter4j.Status twitterStatus = null;\n\t\t\tif(team.getUseTwitter()) {\n\t\t\t\t// truncate if necessary\n\t\t\t\tif(statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT) {\n\t\t\t\t\tstatusUpdate = statusUpdate.substring(0, TwitterClient.MAX_TWITTER_CHARACTER_COUNT - 2) + \"..\";\n\t\t\t\t}\n\n\t\t\t\ttwitterStatus = TwitterClient.updateStatus(statusUpdate, team.getTwitterAccessToken(), team.getTwitterAccessTokenSecret());\n\t\t\t\t\n\t\t\t\t// if Twitter update failed, log error, but continue because activity post will be stored by rTeam\n\t\t\t\tif(twitterStatus == null) {\n\t\t\t\t\tlog.severe(\"Twitter update failed, but continuing on ...\");\n\t\t\t\t\tapiStatus = ApiStatusCode.TWITTER_ERROR;\n\t\t\t\t} else {\n\t\t\t\t\tnewActivity.setTwitterId(twitterStatus.getId());\n\t\t\t\t\t// if posted to twitter, match the exact twitter date\n\t\t\t\t\tnewActivity.setCreatedGmtDate(twitterStatus.getCreatedAt());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tEntityManager emActivity = EMF.get().createEntityManager();\n\t\t\ttry {\n\t\t\t\tif(photoBase64 != null) {\n\t\t\t\t\t// decode the base64 encoding to create the thumb nail\n\t\t\t\t\tbyte[] rawPhoto = Base64.decode(photoBase64);\n\t\t\t\t\tImagesService imagesService = ImagesServiceFactory.getImagesService();\n\t\t\t\t\tImage oldImage = ImagesServiceFactory.makeImage(rawPhoto);\n\t\t\t\t\t\n\t\t\t\t\tint tnWidth = isPortrait == true ? THUMB_NAIL_SHORT_SIDE : THUMB_NAIL_LONG_SIDE;\n\t\t\t\t\tint tnHeight = isPortrait == true ? THUMB_NAIL_LONG_SIDE : THUMB_NAIL_SHORT_SIDE;\n\t\t\t\t\tTransform resize = ImagesServiceFactory.makeResize(tnWidth, tnHeight);\n\t\t\t\t\tImage newImage = imagesService.applyTransform(resize, oldImage);\n\t\t\t\t\tString thumbNailBase64 = Base64.encode(newImage.getImageData());\n\t\t\t\t\tnewActivity.setThumbNailBase64(thumbNailBase64);\n\t\t\t\t\tnewActivity.setPhotoBase64(photoBase64);\n\t\t\t\t\tif(videoBase64 != null) newActivity.setVideoBase64(videoBase64);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\temActivity.persist(newActivity);\n\t\t\t\tlog.info(\"new Activity was successfully persisted\");\n\t\t\t} catch(Exception e) {\n\t\t\t\tlog.severe(\"createActivity() exception = \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\temActivity.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"error extracting JSON object from Post\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error converting json representation into a JSON object\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (NoResultException e) {\n\t\t\tlog.severe(\"team not found\");\n\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n\t\t} catch (NonUniqueResultException e) {\n\t\t\tlog.severe(\"should never happen - two or more teams have same team id\");\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t em.close();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error creating JSON return object\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new JsonRepresentation(jsonReturn);\n }",
"@RequestMapping(\n value = \"/getMovieId/{movieId}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE\n\n )\n public ResponseEntity<Object> getMovieId(@PathVariable(\"movieId\") Long id) {\n Optional<MoviesEntity> moviesOptional = moviesService.findById(id);\n return new ResponseEntity<Object>(moviesOptional, HttpStatus.OK);\n }",
"@GetMapping(path = \"api/activity/decline/{activityid}/{token}\")\n public Response declineActivity(@PathVariable long activityid, @PathVariable String token){\n return activityService.declineActivity(activityid, userService.getUserIDFromJWT(token));\n }",
"@RequestMapping(value = \"{id}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> get(@PathVariable long id) {\n Todo result = getTodoOrThrow(id);\n\n return ResponseEntity.ok(dtoConverter.convert(result));\n }",
"@GetMapping(\"/bytaskid/{id}\")\r\n public List<TaskStatus> getByTaskId(@PathVariable(value = \"id\") Long id) {\r\n\r\n List<TaskStatus> tsk = dao.findByTaskID(id);\r\n return tsk;\r\n\r\n }",
"private void GetRetrofitResponseAccordingToID(){\n\n IMovieApi IMovieApi = Servicey.getMovieApi();\n Call<MovieModel> responseCall = IMovieApi\n .getMovie(\n 343611,\n Credentials.API_KEY);\n\n responseCall.enqueue(new Callback<MovieModel>() {\n @Override\n public void onResponse(Call<MovieModel> call, Response<MovieModel> response) {\n if (response.code() == 200){\n MovieModel model = response.body();\n Log.v(TAG, \"The Response: \" +model.getTitle());\n }else {\n\n try {\n Log.v(TAG, \"Error \" + response.errorBody().string());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }\n\n @Override\n public void onFailure(Call<MovieModel> call, Throwable t) {\n t.printStackTrace();\n }\n });\n\n }",
"@GetMapping(\"/memberships/{id}\")\n @Timed\n public ResponseEntity<MembershipDTO> getMembership(@PathVariable Long id) {\n log.debug(\"REST request to get Membership : {}\", id);\n Optional<MembershipDTO> membershipDTO = membershipService.findOne(id);\n return ResponseUtil.wrapOrNotFound(membershipDTO);\n }",
"@GetMapping(\"{id}\")\n public Lesson getLessonById(@PathVariable Long id) {\n //code\n return null;\n }",
"public void get(Context context) {\n context.json(\n api.getByUuid(context.pathParam(\":uuid\"))\n );\n }",
"@RequestMapping(value = \"/patients\", method = RequestMethod.GET, headers = {\"patient_id\"})\n public Patient getAPatient(@RequestHeader(\"patient_id\") Long id) {\n return patientRepository.findById(id).orElseThrow(() -> new ResourceNotFoundException(\"Patient\", \"id\" , id));\n }",
"@RequestMapping(\"/get\")\n\tpublic void get(String id) throws Exception {\n\n\t\tList<ServiceInstance> list = this.discoveryClient.getInstances(\"FEIGN-API\");\n String uri = \"\";\n for (ServiceInstance instance : list) {\n if (instance.getUri() != null && !\"\".equals(instance.getUri())) {\n uri = instance.getUri().toString();\n\t\t\t\tSystem.out.println(uri);\n //break;\n }\n }\n\t\tSystem.out.println(uri+\"/provide/user/get?id=2\" + \"===>\");\n // return uri+\"/provide/user/getInfo\";\n\n//\t\tString baStr = restTemplate.getForObject(uri+\"/provide/user/get?id=2\", String.class );\n//\t\tSystem.out.println(baStr+\"===>\");\n\t\treturn (String) this.userFeignService.get(id);\n\t\t//return \"sss\";\n\t}",
"@Transactional(readOnly = true)\n public Optional<ActivityEstimationDTO> findOne(Long id) {\n log.debug(\"Request to get ActivityEstimation : {}\", id);\n return activityEstimationRepository.findById(id)\n .map(activityEstimationMapper::toDto);\n }",
"public static Actividad selectActividad(int idActividad) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = \"SELECT * FROM Actividades WHERE id=?\";\n Actividad a = null;\n try {\n ps = connection.prepareStatement(query);\n ps.setInt(1, idActividad);\n rs = ps.executeQuery();\n if (rs.next()) {\n String fechaInicio = String.format(\"%02d/%02d/%04d\", rs.getInt(7), rs.getInt(6), rs.getInt(8));\n String fechaFin = String.format(\"%02d/%02d/%04d\", rs.getInt(10), rs.getInt(9), rs.getInt(11));\n a = new Actividad(idActividad, rs.getString(2), rs.getString(3), rs.getString(4), rs.getInt(5), fechaInicio, fechaFin, rs.getInt(12), rs.getString(13).charAt(0), rs.getInt(14));\n }\n rs.close();\n ps.close();\n pool.freeConnection(connection);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return a;\n }",
"@Path(\"/get/{id}\")\n @GET\n @ProduceMime(\"application/xml\")\n public String get(@PathParam(\"id\") String id) {\n if (id == null || \"\".equals(id.trim()))\n return xStream.toXML(null);\n \n Forum forum = daoForum.get(new Long(id));\n if (forum == null)\n return xStream.toXML(null);\n xStream.alias(\"forum\", Forum.class);\n return xStream.toXML(forum);\n }",
"@GET(\"posts/{id}\")\n public Call<Post> getPost(@Path(\"id\") int postId);",
"@GET(\"chat/messages/{id}\")\n Call<ChatMessageResource> getChatMessage(\n @retrofit2.http.Path(\"id\") String id\n );",
"@GetMapping(\"/chat-rooms/{id}\")\n public ResponseEntity<ChatRoom> getChatRoom(@PathVariable String id) {\n log.debug(\"REST request to get ChatRoom : {}\", id);\n Optional<ChatRoom> chatRoom = chatRoomRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(chatRoom);\n }"
] | [
"0.7530818",
"0.72153765",
"0.68172634",
"0.6796547",
"0.67019236",
"0.6617928",
"0.648845",
"0.64677846",
"0.6462945",
"0.64399654",
"0.64290357",
"0.63996774",
"0.6381524",
"0.6367271",
"0.63584304",
"0.63137674",
"0.6311758",
"0.6253088",
"0.6244037",
"0.61926204",
"0.6172798",
"0.61519843",
"0.6063539",
"0.60580105",
"0.6006797",
"0.5968453",
"0.5961458",
"0.59168863",
"0.58655685",
"0.58605003",
"0.584669",
"0.58170074",
"0.58128655",
"0.5799788",
"0.57365125",
"0.57168776",
"0.5714714",
"0.5710696",
"0.5701886",
"0.5686594",
"0.5673788",
"0.56577027",
"0.56549007",
"0.5654143",
"0.56426686",
"0.5641441",
"0.5634716",
"0.563225",
"0.5626143",
"0.56222975",
"0.5622077",
"0.5615435",
"0.56093574",
"0.5598283",
"0.5596682",
"0.5591614",
"0.55806667",
"0.55781937",
"0.55636513",
"0.5559558",
"0.5557351",
"0.55444986",
"0.5541314",
"0.5540963",
"0.5537863",
"0.55326253",
"0.5524325",
"0.5521206",
"0.55205554",
"0.5517397",
"0.55070263",
"0.54896677",
"0.54830295",
"0.54769576",
"0.54764336",
"0.54682696",
"0.54573476",
"0.5454897",
"0.54522187",
"0.54517573",
"0.542513",
"0.5419531",
"0.5418878",
"0.5418669",
"0.54152447",
"0.54106027",
"0.54089516",
"0.5408573",
"0.5402656",
"0.5400804",
"0.53934693",
"0.53934675",
"0.5388857",
"0.53873175",
"0.53866154",
"0.5384578",
"0.5381551",
"0.53735906",
"0.5370674",
"0.5368572"
] | 0.77963823 | 0 |
update activity rest api | @PutMapping("/activities/{id}")
public ResponseEntity<Activity> updateActivity(@PathVariable Long id,@RequestBody Activity activityDetails){
Activity activity = activityRepository.findById(id)
.orElseThrow(()-> new ResourceNotFoundException("Activity not exist with id :" +id));
activity.setActivity_name(activityDetails.getActivityName());
activity.setActivity_Detail(activityDetails.getActivityDetail());
activity.setActivityDate(activityDetails.getActivityDate());
activity.setActivityLocation(activityDetails.getActivityLocation());
activity.setActivityUrl(activityDetails.getActivityUrl());
Activity updatedActivity = activityRepository.save(activity);
return ResponseEntity.ok(updatedActivity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PostMapping(path = \"/api/activity/update\")\n public Response updateActivity(@RequestBody ActivityDTO activityDTO){\n return activityService.updateActivity(activityDTO);\n }",
"private void update() {\n ambianceModel.ambiance.uniq_id = ambianceModel._id.$oid;\n\n RestAdapter restAdapter = new RestAdapter.Builder().setLogLevel(RestAdapter.LogLevel.FULL).setEndpoint(getResources().getString(R.string.api)).build();\n final GsonBuilder builder = new GsonBuilder();\n builder.excludeFieldsWithoutExposeAnnotation();\n builder.disableHtmlEscaping();\n final Gson gson = builder.create();\n Request r = new Request(Singleton.token, ambianceModel._id.$oid, ambianceModel);\n String json = gson.toJson(r);\n Log.v(\"Ambiance activity\", json);\n\n final Lumhueapi lumhueapi = restAdapter.create(Lumhueapi.class);\n lumhueapi.updateAmbiance(r, new Callback<AmbianceApplyResponse>() {\n @Override\n public void success(AmbianceApplyResponse ambianceApplyResponse, Response response) {\n Log.v(\"Ambiance activity\", \"It worked\");\n }\n\n @Override\n public void failure(RetrofitError error) {\n String tv = error.getMessage();\n Log.v(\"Ambiance activity\", tv + \"\");\n }\n });\n }",
"@CustomAnnotation(value = \"UPDATE_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity\",\n\t\t\tmethod=RequestMethod.POST,\n\t\t\tconsumes=MediaType.APPLICATION_JSON_VALUE,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE\n\t\t\t)\n\tpublic ResponseEntity<Activity> editActivity(@RequestBody Activity changedActivity, @Context HttpServletRequest request){\n\t\treturn new ResponseEntity<Activity>(activityService.edit(changedActivity), HttpStatus.OK);\n\t}",
"public void updateActivity(ExoSocialActivity existingActivity) throws ActivityStorageException;",
"public String update(String id, String datetime, String description, String request, String status);",
"boolean updateUserActivityInDB(UserActivity userActivity);",
"public void update(LearningResultHasActivityPk pk, LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;",
"@Override\n\tpublic Activity updateActivity(Activity activity) {\n\t\treturn activity;\n\t\t\n\t}",
"@CustomAnnotation(value = \"INSERT_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity\",\n\t\t\tmethod=RequestMethod.PUT,\n\t\t\tconsumes=MediaType.APPLICATION_JSON_VALUE,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE\n\t\t\t)\n\tpublic ResponseEntity<Activity> createActivity(@RequestBody Activity newActivity, @Context HttpServletRequest request){\n\t\treturn new ResponseEntity<Activity>(activityService.create(newActivity), HttpStatus.OK);\n\t}",
"int updateByPrimaryKey(CmsActivity record);",
"public void updateData(String typeActivity) {\n try {\n Float.parseFloat(this.inputNominal.getText());\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input nominal dengan benar\");\n }\n \n try {\n this.inputDate.getDate().getTime();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, \"Silahkan input tanggal dengan benar\");\n }\n \n Time time = new Time();\n time.setDate(this.inputDate.getDate());\n \n String description = this.inputDescription.getText();\n float nominal = Float.parseFloat(this.inputNominal.getText());\n String dateAt = time.parseDatetime();\n \n ActivityService activityService = new ActivityService();\n \n activityService\n .setId(this.id)\n .setDescription(description)\n .setNominal(nominal)\n .setDateAt(dateAt)\n .setUser(this.dashboard.user);\n \n try {\n if (typeActivity.equals(\"+\")) {\n activityService.updateIncome();\n } else {\n activityService.updateExpense();\n }\n this.dashboard.refreshUI();\n this.dashboard.resetForm();\n } catch (Exception err) {\n this.alert.showMessageDialog(null, err.getMessage());\n }\n }",
"public int updateUser(Candidat c) {\n String url = StaticVars.baseURL + \"/updateuser\";\n System.out.println(url);\n ConnectionRequest req = new ConnectionRequest();\n\n req.setUrl(url);\n req.setPost(true);\n\nreq.setHttpMethod(\"PUT\"); \n\n\n String can = String.valueOf(currentCandidat.getId());\n req.addArgument(\"id\", can);\n String login =String .valueOf(currentCandidat.getLogin());\n req.addArgument(\"login\",login);\n req.addArgument(\"email\", String .valueOf(currentCandidat.getEmail()));\n req.addArgument(\"pays\", String .valueOf(currentCandidat.getPays()));\n req.addArgument(\"ville\", String .valueOf(currentCandidat.getVille()));\n req.addArgument(\"tel\", Integer.toString(currentCandidat.getTel()));\n req.addArgument(\"domaine\", String .valueOf(currentCandidat.getDomaine()));\n\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n result = req.getResponseCode();\n \n System.out.println(result);\n }\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n\n return result;\n }",
"@Post \n public JsonRepresentation createActivity(Representation entity) {\n \tJSONObject jsonReturn = new JSONObject();\n \tlog.info(\"createActivity(@Post) entered ..... \");\n\t\tEntityManager em = EMF.get().createEntityManager();\n\t\t\n\t\tString apiStatus = ApiStatusCode.SUCCESS;\n\t\tthis.setStatus(Status.SUCCESS_CREATED);\n\t\tUser currentUser = null;\n try {\n \t\tcurrentUser = (User)this.getRequest().getAttributes().get(RteamApplication.CURRENT_USER);\n \t\tif(currentUser == null) {\n\t\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n \t\t\tlog.severe(\"user could not be retrieved from Request attributes!!\");\n \t\t}\n \t\t//::BUSINESSRULE:: user must be network authenticated to send a message\n \t\telse if(!currentUser.getIsNetworkAuthenticated()) {\n \t\t\tapiStatus = ApiStatusCode.USER_NOT_NETWORK_AUTHENTICATED;\n \t\t}\n \t\t// teamId is required if this is 'Create a new activity' API\n \t\telse if(this.userVote == null) {\n \t\tif(this.teamId == null || this.teamId.length() == 0) {\n \t\t\t\tapiStatus = ApiStatusCode.TEAM_ID_REQUIRED;\n \t\t} else if(!currentUser.isUserMemberOfTeam(this.teamId)) {\n \t\t\t\tapiStatus = ApiStatusCode.USER_NOT_MEMBER_OF_SPECIFIED_TEAM;\n \t\t\t\tlog.info(apiStatus);\n \t}\n \t\t}\n \t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_CREATED)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n \t\tJsonRepresentation jsonRep = new JsonRepresentation(entity);\n\t\t\tJSONObject json = jsonRep.toJsonObject();\n\n\t\t\t//////////////////////////////////////////\n \t\t// 'Get Status of Activities for User' API\n \t\t//////////////////////////////////////////\n \t\tif(this.userVote != null) {\n \t\t\t// remainder of processing for this API is delegated to another method\n \t\t\tgetStatusOfActivitiesForUser(currentUser, json, jsonReturn);\n \t\t\treturn new JsonRepresentation(jsonReturn);\n \t\t}\n \t\t\n\t\t\tTeam team = (Team)em.createNamedQuery(\"Team.getByKey\")\n\t\t\t\t.setParameter(\"key\", KeyFactory.stringToKey(this.teamId))\n\t\t\t\t.getSingleResult();\n\t\t\tlog.info(\"team retrieved = \" + team.getTeamName());\n\t\t\t\n\t\t\tString statusUpdate = null;\n\t\t\tif(json.has(\"statusUpdate\")) {\n\t\t\t\tstatusUpdate = json.getString(\"statusUpdate\");\n\t\t\t}\n\t\t\t\n\t\t\tString photoBase64 = null;\n\t\t\tif(json.has(\"photo\")) {\n\t\t\t\tphotoBase64 = json.getString(\"photo\");\n\t\t\t}\n\t\t\t\n\t\t\tBoolean isPortrait = null;\n\t\t\tif(json.has(\"isPortrait\")) {\n\t\t\t\tisPortrait = json.getBoolean(\"isPortrait\");\n\t\t\t\tlog.info(\"json isPortrait = \" + isPortrait);\n\t\t\t}\n\n\t\t\tString videoBase64 = null;\n\t\t\tif(json.has(\"video\")) {\n\t\t\t\tvideoBase64 = json.getString(\"video\");\n\t\t\t}\n\t\t\t\n\t\t\t// Enforce Rules\n\t\t\tif((statusUpdate == null || statusUpdate.length() == 0) && (photoBase64 == null || photoBase64.length() == 0)) {\n\t\t\t\tapiStatus = ApiStatusCode.STATUS_UPDATE_OR_PHOTO_REQUIRED;\n\t\t\t\tlog.info(\"required statusUpdate or photo field required\");\n\t\t\t} else if(statusUpdate != null && statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT){\n\t\t\t\tapiStatus = ApiStatusCode.INVALID_STATUS_UPDATE_MAX_SIZE_EXCEEDED;\n\t\t\t} else if(videoBase64 != null && photoBase64 == null) {\n\t\t\t\tapiStatus = ApiStatusCode.VIDEO_AND_PHOTO_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t} else if(photoBase64 != null && isPortrait == null) {\n\t\t\t\tapiStatus = ApiStatusCode.IS_PORTRAIT_AND_PHOTO_MUST_BE_SPECIFIED_TOGETHER;\n\t\t\t}\n \t\t\n\t\t\tif(!apiStatus.equals(ApiStatusCode.SUCCESS) || !this.getStatus().equals(Status.SUCCESS_CREATED)) {\n\t\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t\t\treturn new JsonRepresentation(jsonReturn);\n\t\t\t}\n\t\t\t\n\t\t\t// No anonymous Activity posts.\n\t\t\t// TODO once twitter API supports the meta data, then user name will not have to be inserted into update\n\t\t\tif(statusUpdate == null || statusUpdate.length() == 0) {\n\t\t\t\tstatusUpdate = currentUser.getFullName() + \" shared a photo fr loc \" + TF.getPassword();\n\t\t\t} else {\n\t\t\t\tstatusUpdate = currentUser.getDisplayName() + \" post: \" + statusUpdate;\n\t\t\t}\n\t\t\t\n\t\t\t///////////////////////////////////////////////////////////////////\n\t\t\t// Cache the activity post whether the team is using Twitter or not\n\t\t\t///////////////////////////////////////////////////////////////////\n\t\t\t// abbreviate only if necessary\n\t\t\tif(statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT) {\n\t\t\t\tstatusUpdate = Language.abbreviate(statusUpdate);\n\t\t\t}\n\t\t\t\t\n\t\t\tActivity newActivity = new Activity();\n\t\t\tnewActivity.setText(statusUpdate);\n\t\t\tnewActivity.setCreatedGmtDate(new Date());\n\t\t\tnewActivity.setTeamId(this.teamId);\n\t\t\tnewActivity.setTeamName(team.getTeamName());\n\t\t\t\n\t\t\t// cacheId held in team is the last used.\n\t\t\tLong cacheId = team.getNewestCacheId() + 1;\n\t\t\tnewActivity.setCacheId(cacheId);\n\t\t\tteam.setNewestCacheId(cacheId);\n\t\t\t\n\t\t\t// Only send activity to Twitter if team is using Twitter\n\t\t\ttwitter4j.Status twitterStatus = null;\n\t\t\tif(team.getUseTwitter()) {\n\t\t\t\t// truncate if necessary\n\t\t\t\tif(statusUpdate.length() > TwitterClient.MAX_TWITTER_CHARACTER_COUNT) {\n\t\t\t\t\tstatusUpdate = statusUpdate.substring(0, TwitterClient.MAX_TWITTER_CHARACTER_COUNT - 2) + \"..\";\n\t\t\t\t}\n\n\t\t\t\ttwitterStatus = TwitterClient.updateStatus(statusUpdate, team.getTwitterAccessToken(), team.getTwitterAccessTokenSecret());\n\t\t\t\t\n\t\t\t\t// if Twitter update failed, log error, but continue because activity post will be stored by rTeam\n\t\t\t\tif(twitterStatus == null) {\n\t\t\t\t\tlog.severe(\"Twitter update failed, but continuing on ...\");\n\t\t\t\t\tapiStatus = ApiStatusCode.TWITTER_ERROR;\n\t\t\t\t} else {\n\t\t\t\t\tnewActivity.setTwitterId(twitterStatus.getId());\n\t\t\t\t\t// if posted to twitter, match the exact twitter date\n\t\t\t\t\tnewActivity.setCreatedGmtDate(twitterStatus.getCreatedAt());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tEntityManager emActivity = EMF.get().createEntityManager();\n\t\t\ttry {\n\t\t\t\tif(photoBase64 != null) {\n\t\t\t\t\t// decode the base64 encoding to create the thumb nail\n\t\t\t\t\tbyte[] rawPhoto = Base64.decode(photoBase64);\n\t\t\t\t\tImagesService imagesService = ImagesServiceFactory.getImagesService();\n\t\t\t\t\tImage oldImage = ImagesServiceFactory.makeImage(rawPhoto);\n\t\t\t\t\t\n\t\t\t\t\tint tnWidth = isPortrait == true ? THUMB_NAIL_SHORT_SIDE : THUMB_NAIL_LONG_SIDE;\n\t\t\t\t\tint tnHeight = isPortrait == true ? THUMB_NAIL_LONG_SIDE : THUMB_NAIL_SHORT_SIDE;\n\t\t\t\t\tTransform resize = ImagesServiceFactory.makeResize(tnWidth, tnHeight);\n\t\t\t\t\tImage newImage = imagesService.applyTransform(resize, oldImage);\n\t\t\t\t\tString thumbNailBase64 = Base64.encode(newImage.getImageData());\n\t\t\t\t\tnewActivity.setThumbNailBase64(thumbNailBase64);\n\t\t\t\t\tnewActivity.setPhotoBase64(photoBase64);\n\t\t\t\t\tif(videoBase64 != null) newActivity.setVideoBase64(videoBase64);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\temActivity.persist(newActivity);\n\t\t\t\tlog.info(\"new Activity was successfully persisted\");\n\t\t\t} catch(Exception e) {\n\t\t\t\tlog.severe(\"createActivity() exception = \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\temActivity.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"error extracting JSON object from Post\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error converting json representation into a JSON object\");\n\t\t\te.printStackTrace();\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t} catch (NoResultException e) {\n\t\t\tlog.severe(\"team not found\");\n\t\t\tapiStatus = ApiStatusCode.TEAM_NOT_FOUND;\n\t\t} catch (NonUniqueResultException e) {\n\t\t\tlog.severe(\"should never happen - two or more teams have same team id\");\n\t\t\tthis.setStatus(Status.SERVER_ERROR_INTERNAL);\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t em.close();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tjsonReturn.put(\"apiStatus\", apiStatus);\n\t\t} catch (JSONException e) {\n\t\t\tlog.severe(\"error creating JSON return object\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new JsonRepresentation(jsonReturn);\n }",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api/{id}\", params = \"action=update\", method = RequestMethod.PUT)\n \tpublic HttpEntity<String> update(@PathVariable(\"id\") Long id) {\n \t\tagentManagerService.update(id);\n \t\treturn successJsonHttpEntity();\n \t}",
"@PostMapping(value=\"/update\",consumes={MediaType.APPLICATION_JSON_VALUE},produces={MediaType.APPLICATION_JSON_VALUE})\n\t public StatusDTO updateTask(@RequestBody TaskDTO task){\n\t\t taskService.updateTask(task);\n\t\t StatusDTO status = new StatusDTO();\n\t status.setMessage(\"Task details updated successfully\");\n\t status.setStatus(200);\n\t return status;\n\t }",
"public abstract Response update(Request request, Response response);",
"@PostMapping(\"/activities\")\n\tpublic Activity createActivity(@RequestBody Activity activity) {\n\t\treturn activityRepository.save(activity);\n\t}",
"int updateByPrimaryKey(TestActivityEntity record);",
"@GetMapping(path = \"/api/activity/attendactivity/{token}/{activityid}\")\n public Response attendActivity(@PathVariable String token, @PathVariable long activityid) {\n return activityService.attendActivity(userService.getUserIDFromJWT(token), activityid);\n }",
"@PutMapping(value = \"/update\", produces = \"application/json\")\n void update(@RequestParam int id, @RequestBody Patient patient);",
"void updateTask(UserDto user);",
"@PUT\n @Path(\"/update\")\n public void put() {\n System.out.println(\"PUT invoked\");\n }",
"int updateByPrimaryKey(EcsFavourableActivity record);",
"@ResponseStatus(code=HttpStatus.OK)\r\n\t@RequestMapping(value=\"/update\", method=RequestMethod.GET)\r\n\tpublic void update() {\r\n\t\tSystem.out.println(\"StudentRestController.Update()_________\");\r\n\t}",
"@PostMapping\n public ResponseEntity<?> addNewActivity(@RequestBody ActivityRequest activity){\n ResponseEntity response;\n try{\n activityServices.saveActivity(mapActivity(activity));\n response = new ResponseEntity<>(HttpStatus.CREATED);\n }catch (ActivityException | ParkException | PlanException ex){\n ex.printStackTrace();\n response = new ResponseEntity<>(HttpStatus.NOT_ACCEPTABLE);\n }\n return response;\n }",
"int updateByExample(@Param(\"record\") TestActivityEntity record, @Param(\"example\") TestActivityEntityExample example);",
"@PutMapping(\"/{id}\")\n\tpublic @ResponseBody JsonResponse updateActor(@PathVariable int id, @RequestBody Actor a) {\n\t\treturn saveActor(a);\n\t}",
"int updateByPrimaryKey(ActActivityRegister record);",
"int updateByPrimaryKeySelective(CmsActivity record);",
"@Override\n\t\t\tpublic void onGET(OgemaHttpRequest req) {\n\t\t\t\tupdate(appController.getActiveRooms(), req);\n\t\t\t}",
"public abstract void update(@Nonnull Response response);",
"@PostMapping(path = \"/api/activity/add\", produces = MediaType.APPLICATION_JSON_VALUE)\n public Response save(@RequestBody ActivityDTO activityDTO) {\n return activityService.saveActivityDTO(activityDTO);\n }",
"public void updatePatientOtherInfo(String strId, String visitId, String usersellectedDate, String daysSel, String fowSel, String monthSel, String clinical_note, String patientImagePath, String modified_dateon, String modified_time, String modified_by, String action, String patInfoType, String flag,\n String weight, String pulse, String bphigh, String bplow, String temparature, String symptoms, String dignosis, String strHeight, String strbmi, String visit_date, String referedBy, String referedTo, String strSpo2, String strRespiration, String strObesity, String strFollowUpStatus) throws ClirNetAppException {\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues values = new ContentValues();\n values.put(ACTUAL_FOLLOW_UP_DATE, usersellectedDate); // Name\n\n values.put(DAYS, daysSel); // Email\n values.put(WEEKS, fowSel); // Email\n values.put(MONTHS, monthSel); // Created At\n values.put(CLINICAL_NOTES, clinical_note);\n values.put(PRESCRIPTION, patientImagePath);\n values.put(MODIFIED_ON, modified_dateon);\n values.put(MODIFIED_TIME, modified_time);\n values.put(MODIFIED_BY, modified_by);\n values.put(ACTION, action);\n values.put(PATIENT_INFO_TYPE_FORM, patInfoType);\n values.put(SYCHRONIZED, flag);\n values.put(WEIGHT, weight);\n values.put(PULSE, pulse);\n values.put(BP, bphigh);\n values.put(BP_LOW, bplow);\n values.put(TEMP, temparature);\n\n values.put(SYMPTOMS, symptoms);\n values.put(DIGNOSIS, dignosis);\n\n values.put(HEIGHT, strHeight);\n values.put(BMI, strbmi);\n\n values.put(VISIT_DATE, visit_date);\n\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedTo);\n values.put(SPO2, strSpo2);\n values.put(RESPIRATION, strRespiration);\n values.put(OBESITY, strObesity);\n values.put(FOLLOW_UP_STATUS, strFollowUpStatus);\n // Inserting Row\n db.update(TABLE_PATIENT_HISTORY, values, KEY_PATIENT_ID + \"=\" + strId + \" AND \" + KEY_VISIT_ID + \"=\" + visitId, null);\n\n } catch (Exception e) {\n throw new ClirNetAppException(\"Error inserting data\");\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n }",
"@GetMapping(\"/activities/{id}\")\n\tpublic ResponseEntity<Activity> getActivityById(@PathVariable long id) {\n\t\tActivity activity = activityRepository.findById(id)\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"Activity not exist with id :\" +id));\n\t\treturn ResponseEntity.ok(activity);\n\t}",
"@FormUrlEncoded\n @POST(\"users/{id}/edit\")\n Call<User> updateUserWithForm(@Path(\"id\")int id, @Field(\"name\")String name,@Field(\"points\")int point);",
"public int updateById(WeChatPublic wp);",
"int updateByExampleSelective(@Param(\"record\") TestActivityEntity record, @Param(\"example\") TestActivityEntityExample example);",
"@GetMapping(path = \"/api/activity/cancel/{id}\")\n public Response cancelActivity(@PathVariable long id){\n return activityService.cancelActivity(id);\n }",
"@Override\n protected Response doUpdate(Long id, JSONObject data) {\n return null;\n }",
"private void hitEditProfileApi() {\n appUtils.showProgressDialog(getActivity(), false);\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.NAME, etFirstName.getText().toString().trim());\n params.put(ApiKeys.PHONE_NO, etPhoneNo.getText().toString().trim());\n params.put(ApiKeys.ADDRESS, etAdress.getText().toString().trim());\n params.put(ApiKeys.POSTAL_CODE, etPostal.getText().toString().trim());\n\n if (countryId != null) {\n params.put(ApiKeys.COUNTRY, countryId);\n }\n if (stateId != null) {\n params.put(ApiKeys.STATE, stateId);\n }\n if (cityId != null) {\n params.put(ApiKeys.CITY, cityId);\n }\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.editProfile(AppSharedPrefs.getInstance(getActivity()).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(getActivity(), call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n try {\n JSONObject mainObject = new JSONObject(response);\n if (mainObject.getInt(ApiKeys.CODE) == 200) {\n JSONObject dataObject = mainObject.getJSONObject(\"DATA\");\n changeEditMode(false);\n isEditModeOn = false;\n ((EditMyAccountActivity) getActivity()).setEditButtonLabel(getString(R.string.edit));\n\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.USER_NAME, dataObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.USER_MOBILE, dataObject.getString(ApiKeys.MOBILE_NUMBER));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.ADDRESS, dataObject.getString(ApiKeys.ADDRESS));\n JSONObject countryObject = dataObject.getJSONObject(ApiKeys.COUNTRY_ID);\n JSONObject stateObject = dataObject.getJSONObject(ApiKeys.STATE_ID);\n JSONObject cityObject = dataObject.getJSONObject(ApiKeys.CITY_ID);\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.COUNTRY_NAME, countryObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.STATE_NAME, stateObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.CITY_NAME, cityObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.ISO_CODE, countryObject.getString(ApiKeys.ISO_CODE));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.COUNTRY_ID, countryObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.STATE_ID, stateObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.CITY_ID, cityObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.POSTAL_CODE, dataObject.optString(ApiKeys.POSTAL_CODE));\n\n } else if (mainObject.getInt(ApiKeys.CODE) == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(getActivity(), mainObject.optString(ApiKeys.MESSAGE));\n } else {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), mainObject.optString(ApiKeys.MESSAGE));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n\n }\n });\n\n }",
"private void updateSeat(Seat seat) {\n\n Retrofit retrofit = new Retrofit.Builder().baseUrl(\"http://10.0.2.2:5000/api/\")\n .addConverterFactory(GsonConverterFactory.create()).build();\n\n SeatRestAPI seatRestAPI = retrofit.create(SeatRestAPI.class);\n\n Call<Seat> call = seatRestAPI.putSeat(seat.getScreeningId(), seat.getRowNum(), seat.getColumnNum(), seat);\n call.enqueue(new Callback<Seat>() {\n @Override\n public void onResponse(Call<Seat> call, retrofit2.Response<Seat> response) {\n\n try {\n\n if (!response.isSuccessful()) {\n\n Toast.makeText(ConfirmationActivity.this, \"API Update Failed\", Toast.LENGTH_SHORT).show();\n\n }\n\n } catch (Exception exception) {\n\n //Toast.makeText(RegisterActivity.this, exception.getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n\n }\n\n @Override\n public void onFailure(Call<Seat> call, Throwable t) {\n\n //Toast.makeText(RegisterActivity.this, \"Connection Failed\", Toast.LENGTH_SHORT).show();\n\n }\n });\n\n }",
"Patient update(Patient patient);",
"@PUT\n @JWTTokenNeeded\n @Consumes({MediaType.APPLICATION_JSON})\n @Produces({MediaType.APPLICATION_JSON})\n public Response update(EscenarioDTO entidad) {\n logger.log(Level.INFO, \"entidad:{0}\", entidad);\n \n try {\n \tConciliacion entidadPadreJPA = null;\n if (entidad.getIdConciliacion() != null) {\n entidadPadreJPA = padreDAO.find(entidad.getIdConciliacion());\n if (entidadPadreJPA == null) {\n throw new DataNotFoundException(Response.Status.NOT_FOUND.getReasonPhrase() + entidad.getIdConciliacion());\n }\n }\n //Hallar La entidad actual para actualizarla\n Escenario entidadJPA = managerDAO.find(entidad.getId());\n if (entidadJPA != null) {\n entidadJPA.setFechaActualizacion(Date.from(Instant.now()));\n entidadJPA.setNombre(entidad.getNombre() != null ? entidad.getNombre() : entidadJPA.getNombre());\n entidadJPA.setImpacto(entidad.getImpacto() != null ? entidad.getImpacto() : entidadJPA.getImpacto());\n entidadJPA.setDescripcion(entidad.getDescripcion() != null ? entidad.getDescripcion() : entidadJPA.getDescripcion());\n \n Boolean actualizarConciliacion = false;\n entidadJPA.setConciliacion(entidad.getIdConciliacion() != null ? (entidadPadreJPA != null ? entidadPadreJPA : null) : entidadJPA.getConciliacion());\n \n Conciliacion conciliacionpadreactual = null;\n \n \n if (entidadJPA.getConciliacion() != null && !Objects.equals(entidadJPA.getConciliacion().getId(), entidad.getIdConciliacion())){\n actualizarConciliacion = true;\n conciliacionpadreactual = padreDAO.find(entidadJPA.getConciliacion().getId());\n }\n //entidadJPA.setConciliacion(entidad.getIdConciliacion() != null ? (entidadPadreJPA != null ? entidadPadreJPA : null) : entidadJPA.getConciliacion());\n managerDAO.edit(entidadJPA);\n if (actualizarConciliacion){\n if ((entidadPadreJPA != null)) {\n entidadPadreJPA.addEscenario(entidadJPA);\n padreDAO.edit(entidadPadreJPA);\n conciliacionpadreactual.removeEscenario(entidadJPA);\n padreDAO.edit(conciliacionpadreactual);\n }\n }\n LogAuditoria logAud = new LogAuditoria(this.modulo, Constantes.Acciones.EDITAR.name(), Date.from(Instant.now()), entidad.getUsername(), entidadJPA.toString());\n logAuditoriaDAO.create(logAud);\n \n ResponseWrapper wraper = new ResponseWrapper(true,I18N.getMessage(\"escenario.update\", entidad.getNombre()) ,entidadJPA.toDTO());\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }\n \n ResponseWrapper wraper = new ResponseWrapper(false,I18N.getMessage(\"escenario.notfound\", entidad.getNombre()));\n \treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n }catch (Exception e) {\n \tif(e.getCause() != null && (e.getCause() instanceof DataAlreadyExistException || e.getCause() instanceof DataNotFoundException)) {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, e.getCause().getMessage(), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}else {\n \t\tlogger.log(Level.SEVERE, e.getMessage(), e);\n \t\tResponseWrapper wraper = new ResponseWrapper(false, I18N.getMessage(\"general.readerror\"), 500);\n \t\treturn Response.ok(wraper,MediaType.APPLICATION_JSON).build();\n \t}\n }\n }",
"Flight updateFlight(Flight flight);",
"protected void editField(HttpServletRequest request, HttpServletResponse response, ContentFeedRel _ContentFeedRel) throws Exception{\n\r\n if (!isMissing(request.getParameter(\"contentFeedId\"))) {\r\n m_logger.debug(\"updating param contentFeedId from \" +_ContentFeedRel.getContentFeedId() + \"->\" + request.getParameter(\"contentFeedId\"));\r\n _ContentFeedRel.setContentFeedId(WebParamUtil.getLongValue(request.getParameter(\"contentFeedId\")));\r\n }\r\n if (!isMissing(request.getParameter(\"contentId\"))) {\r\n m_logger.debug(\"updating param contentId from \" +_ContentFeedRel.getContentId() + \"->\" + request.getParameter(\"contentId\"));\r\n _ContentFeedRel.setContentId(WebParamUtil.getLongValue(request.getParameter(\"contentId\")));\r\n }\r\n if (!isMissing(request.getParameter(\"timeCreated\"))) {\r\n m_logger.debug(\"updating param timeCreated from \" +_ContentFeedRel.getTimeCreated() + \"->\" + request.getParameter(\"timeCreated\"));\r\n _ContentFeedRel.setTimeCreated(WebParamUtil.getDateValue(request.getParameter(\"timeCreated\")));\r\n }\r\n\r\n m_actionExtent.beforeUpdate(request, response, _ContentFeedRel);\r\n m_ds.update(_ContentFeedRel);\r\n m_actionExtent.afterUpdate(request, response, _ContentFeedRel);\r\n }",
"@PUT\n @Produces({ \"application/json\" })\n @Path(\"{id}\")\n @CommitAfter\n public abstract Response update(Person person);",
"@PutMapping(\"{id}\")\n public Lesson updateLesson(@RequestBody Lesson lesson,\n @PathVariable long id) {\n //code\n return null;\n }",
"E update(ID id, E entity, RequestContext context);",
"@BodyParser.Of(play.mvc.BodyParser.Json.class)\n public static Result update(Long id) throws JsonParseException, JsonMappingException, IOException {\n JsonNode json = request().body().asJson();\n Thing thing = mapper.treeToValue(json, Thing.class);\n thing.cachedJson = json.toString();\n Logger.debug(\"Content: \" + thing.content);\n Logger.debug(\"Content: \" + thing.content);\n thing.update();\n return ok();\n }",
"@GetMapping(path = \"/api/activity/delete/{id}\")\n public Response deleteActivity(@PathVariable long id){\n return activityService.deleteActivity(id);\n }",
"int updateByExample(@Param(\"record\") QtActivitytype record, @Param(\"example\") QtActivitytypeExample example);",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api\", params = \"action=update\", method = RequestMethod.PUT)\n \tpublic HttpEntity<String> update(@RequestParam(\"ids\") String ids) {\n \t\tString[] split = StringUtils.split(ids, \",\");\n \t\tfor (String each : split) {\n \t\t\tupdate(Long.parseLong(each));\n \t\t}\n \t\treturn successJsonHttpEntity();\n \t}",
"@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"chat/messages/{id}\")\n Call<Void> editChatMessage(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body ChatMessageResource chatMessageResource\n );",
"@Test\n public void testUpdateDietStatusById() throws Exception{\n\n String URI = \"/healthreminder/followup_dietstatus_update/{patientId}/status/{dietStatus}\";\n FollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(false);\n \n String jsonInput = this.converttoJson(followUpDietStatusInfo);\n\n Mockito.when(followUpDietStatusInfoServices.updateDietStatusById(Mockito.any(),Mockito.anyBoolean())).thenReturn(followUpDietStatusInfo);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.put(URI, 1, true).accept(MediaType.APPLICATION_JSON).content(jsonInput).contentType(MediaType.APPLICATION_JSON))\n .andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n String jsonOutput = mockHttpServletResponse.getContentAsString();\n\n assertThat(jsonInput).isEqualTo(jsonOutput);\n }",
"public void UpdateAllControl(){\n try {\n AsyncHttpClient cliente = new AsyncHttpClient();\n cliente.setMaxRetriesAndTimeout(0, 10000);\n\n RequestParams parametros = new RequestParams();\n parametros.put(\"account\", UserName);\n parametros.put(\"apikey\", Apikey);\n parametros.put(\"date\", Date);\n parametros.put(\"hour\", Hour);\n parametros.put(\"minute\", Minute);\n\n cliente.put(this, GenConf.UpdateControlsURL, parametros, new JsonHttpResponseHandler() {\n @Override\n public void onStart() {\n mdialog.show();\n super.onStart();\n }\n\n @Override\n public void onFinish() {\n mdialog.cancel();\n super.onFinish();\n closed = true;\n CloseActivity();\n }\n });\n }\n catch (Exception e){\n\n }\n }",
"@Override\n public void onClick(View v) {\n\n HashMap <String, String> data = new LinkedHashMap<>();\n\n data.put(\"id\", idStory);\n data.put(\"name\", titulo_upd.getText().toString());\n data.put(\"synopsis\", synopsis_upd.getText().toString());\n data.put(\"genre_id\", String.valueOf(gl_genre_id));\n data.put(\"user_id\", channel);\n\n\n JSONObject jsonObject = new JSONObject (data);\n\n System.out.print(jsonObject.toString());\n\n VolleySingleton.getInstance(getContext()).addToRequestQueue(\n new JsonObjectRequest(\n Request.Method.POST,\n Constantes.UPDATE_STORY,\n jsonObject,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n //generarPersonaje(response);\n Toast.makeText(getActivity(), \"Story has been update\", Toast.LENGTH_SHORT).show();\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n //Toast.makeText(getActivity().getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();\n Toast.makeText(getActivity().getApplicationContext(), \"An error has occur. Please try again.\", Toast.LENGTH_LONG).show();\n }\n }\n ) {\n @Override\n public Map<String, String> getHeaders() {\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n headers.put(\"Accept\", \"application/json\");\n return headers;\n }\n\n @Override\n public String getBodyContentType() {\n return \"application/json; charset=utf-8\" + getParamsEncoding();\n }\n }\n );\n\n }",
"@Test(expectedExceptions = DataAccessException.class)\r\n public void testUpdateNullActivity() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(recordDao.findActivityRecord(record.getId()));\r\n\r\n record.setActivity(null);\r\n recordDao.update(record);\r\n }",
"@PostMapping(\"/update\")\n public String update(@ModelAttribute Mod mod){\n modService.update(mod);\n return \"redirect:/mods\";\n }",
"@CustomAnnotation(value = \"FIND_ONE_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity/{id}\",\n\t\t\tmethod=RequestMethod.GET,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE\n\t\t\t)\n\tpublic ResponseEntity<Activity> findActivity(@PathVariable(\"id\") Long id, @Context HttpServletRequest request){\n\t\treturn new ResponseEntity<Activity>(activityService.findActivity(id), HttpStatus.OK);\n\t}",
"@CustomAnnotation(value = \"DELETE_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity/{id}\",\n\t\t\tmethod=RequestMethod.DELETE,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Activity> deleteActivity(@PathVariable(\"id\") Long id, @Context HttpServletRequest request){\n\t\tActivity activityForDelete=activityService.findActivity(id);\n\t\tif(activityForDelete!=null){\n\t\t\tactivityService.deleteActivity(activityForDelete.getId());\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<Activity>(activityForDelete, HttpStatus.OK);\n\t}",
"@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"users/{id}\")\n Call<Void> updateUser(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body UserResource userResource\n );",
"public boolean updateAppointment(Appointment app);",
"@RequestMapping(value=\"/infact-record\", method=RequestMethod.PUT)\n\tpublic ResponseEntity<?> update(@RequestBody InfactRecord infactRecord) {\n\t\tinfactRecordServiceImpl.update(infactRecord);\n\t\treturn ResponseEntity.ok().body(\n\t\t\t\t\"infact-record has been updated successfully.\");\n\t}",
"@PatchMapping(\"{id}\")\n public Lesson updateLessonName(@RequestBody String name, @PathVariable long id) {\n //code\n return null;\n }",
"int updTravelById(Travel record) throws TravelNotFoundException;",
"@PostMapping(value = \"/updateInterview\")\n\tpublic String updateInterview(@RequestBody String request) throws JSONException {\n\t\tJSONObject responseJSON = new JSONObject();\n\t\t\n\t\tlog.info(\"Inside updateInterview.\");\n\t\ttry {\n\t\t\tJSONObject inputJSON = new JSONObject(request);\n\t\t\tlog.info(\"InputData : {} \", inputJSON);\n\t\t\tinterviewsService.updateCandidateInterview(inputJSON);\n\t\t\tcandidateProfile.updateStatus(request);\n\t\t\tresponseJSON.put(\"status\", 200);\n\t\t\tresponseJSON.put(\"message\", \"success\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Exception updateInterview : \", e);\n\t\t\tresponseJSON.put(\"status\",500);\n\t\t\tresponseJSON.put(\"message\", \"failure\");\n\t\t}\n\t\treturn responseJSON.toString();\n\t}",
"int updateByPrimaryKeySelective(ActActivityRegister record);",
"int updateByPrimaryKeySelective(TestActivityEntity record);",
"public static int doPut(String name, String id) {\n int status = 0;\n try {\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"PUT\");\n conn.setDoOutput(true);\n // make the request info as an json message\n JSONObject objJson = new JSONObject();\n JSONObject objJsonSend = new JSONObject();\n try {\n objJson.put(\"id\", id);\n objJson.put(\"name\", name);\n objJsonSend.put(\"name\", name);\n } catch (JSONException ex) {\n Logger.getLogger(RestaurantApiClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n String ans = objJson.toString();\n System.out.println(\"Request Body:\");\n System.out.println(objJsonSend.toString());\n OutputStreamWriter out = new OutputStreamWriter(conn.getOutputStream());\n out.write(ans);\n out.close();\n // wait for response\n status = conn.getResponseCode();\n conn.disconnect(); \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return status;\n }",
"public void updateByEntity(Paciente paciente) {\n\t\n}",
"Motivo update(Motivo update);",
"TaskResponse updateTask(TaskRequest taskRequest, Long taskId);",
"private void updateTask(String task_id, final String task, final String status, final int position){\n if(!preference.getAPI_KEY().isEmpty()){\n Call call = service.updateTask(preference.getAPI_KEY(), task_id, task, status);\n connection.request(call, new ResponseListener() {\n @Override\n public void onSuccess(String response) {\n Log.e(TAG, \"\"+response);\n list_task.get(position).setTask(task);\n list_task.get(position).setStatus(status);\n notifyDataSetChanged();\n }\n\n @Override\n public void onError(String error) {\n Log.e(TAG, \"\"+error);\n }\n });\n }else {\n Toast.makeText(context, \"please login to check data\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"@RequestMapping(value=\"/update\", method = RequestMethod.PUT)\r\n\t @ResponseBody\r\n//\t public String updateUser(Long id, String userName, String phone, String email, String password, Date dateOfBirth, String userNotes) {\r\n\t public UserDto update(UserDto userDto) \r\n\t {\r\n\t\t return service.update(userDto);\r\n\t }",
"void update( ExperimentDTO item );",
"@PUT\n @Path(\"/{requirementId}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method updates a specific requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the updated requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response updateRequirement(@PathParam(\"requirementId\") int requirementId,\n @ApiParam(value = \"Requirement entity\", required = true) Requirement requirementToUpdate) {\n DALFacade dalFacade = null;\n try {\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n Gson gson = new Gson();\n Vtor vtor = service.bazaarService.getValidators();\n vtor.validate(requirementToUpdate);\n if (vtor.hasViolations()) {\n ExceptionHandler.getInstance().handleViolations(vtor.getViolations());\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.modify\"));\n }\n if (requirementToUpdate.getId() != 0 && requirementId != requirementToUpdate.getId()) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"Id does not match\");\n }\n dalFacade.followRequirement(internalUserId, requirementToUpdate.getId());\n RequirementEx updatedRequirement = dalFacade.modifyRequirement(requirementToUpdate, internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, updatedRequirement.getLastupdated_time(), Activity.ActivityAction.UPDATE, updatedRequirement.getId(),\n Activity.DataType.REQUIREMENT, updatedRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(updatedRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }",
"void updateUser(int id, UpdateUserDto updateUserDto);",
"@Test\n public void oTAUpdateGETTest() throws ApiException {\n //UUID id = null;\n //OTAUpdateResponse response = api.oTAUpdateGET(id);\n // TODO: test validations\n }",
"int updateByPrimaryKey(Tour record);",
"@RequestMapping(value = \"/update/{id}\", method = RequestMethod.POST)\r\n public @ResponseBody\r\n List<Task> updateStatus(@PathVariable(\"id\") String id,\r\n @RequestParam(required = false) String content,\r\n @RequestParam(required = false) String status,\r\n @RequestParam(required = false) String assigneeId,\r\n @RequestParam(required = false) String timeInDays) {\n \r\n int taskId = ResourceUtil.stringToIntegerConversion(\"task_id\", id);\r\n List<Task> result = new ArrayList<Task>();\r\n \r\n try { \r\n Task task = new Task();\r\n task = taskManager.readTask(taskId);\r\n \r\n if (content != null)\r\n task.setContent(content);\r\n if (status != null)\r\n task.setStatus(TaskStatus.valueOf(status));\r\n if (assigneeId != null)\r\n task.setUser(userServiceManager.readUser(assigneeId));\r\n if (timeInDays != null) {\r\n \tint time_In_Days = ResourceUtil.stringToIntegerConversion(\"task_time_in_days\", timeInDays);\r\n task.setMilestonePeriod(timeInDays);\r\n task.setTimeInDays(time_In_Days);\r\n } \r\n // if none of these was changed, do not update\r\n if (content != null || status != null || assigneeId != null || timeInDays != null)\r\n taskManager.updateTask(task);\r\n result.add(task);\r\n } catch (Exception e) {\r\n logger.error(e.getMessage(), e);\r\n String exceptionMsg = \"Error occured while updating the task (pKey) \"+id;\r\n ScrumrException.create(exceptionMsg, MessageLevel.SEVERE, e);\r\n }\r\n return result;\r\n }",
"void updateContact(String id, int status);",
"LoginHistory update(LoginHistory entity);",
"public void update() {\n\n dbWork.cleanAll();\n\n List<DataFromServiceKudaGo> list = requestDataFromService();\n\n List<Film> films = new ArrayList<>();\n for (DataFromServiceKudaGo data : list) {\n Film film = new Film(list.indexOf(data), data.getNameMovie(), data.getPosterMoviePath(),\n data.getRunning_time(), data.getPrice(), data.getImax(),\n data.getCountryFilm(), data.getYearFilm(), data.getTrailerFilm(),\n data.getAgeFilm(), data.getDirectorFilm(), data.getNameCinema(),\n data.getAddressCinema(), data.getPhone(), data.getStationAboutCinema(),\n data.getPosterCinemaPath(), data.getBeginning_time(), data.getDescription());\n films.add(film);\n }\n\n dbWork.setFilms(films);\n\n fillShows();\n }",
"@PostMapping(value = \"/updateInterviewStatus\")\n\tpublic String updateInterviewStatus(@RequestBody String request) throws JSONException {\n\t\tJSONObject responseJSON = new JSONObject();\n\t\t\n\t\tlog.info(\"Inside updateInterviewStatus.\");\n\t\ttry {\n\t\t\t//FIXME: maintain josn jar s\n\t\t\torg.codehaus.jettison.json.JSONObject inputJSON = new org.codehaus.jettison.json.JSONObject(request);\n\t\t\tlog.info(\"InputData ##: {} \", inputJSON);\n\t\t\tinterviewsService.updateCandidateInterviewStatus(inputJSON.toString());\n\t\t\tcandidateProfile.updateStatus(request);\n\t\t\tresponseJSON.put(\"status\", 200);\n\t\t\tresponseJSON.put(\"message\", \"success\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Exception updateInterviewStatus : \", e);\n\t\t\tresponseJSON.put(\"status\",500);\n\t\t\tresponseJSON.put(\"message\", \"failure\");\n\t\t}\n\t\treturn responseJSON.toString();\n\t}",
"int updateByPrimaryKey(FactRoomLog record);",
"Account.Update update();",
"public void updateData(restaurantRes res){\r\n \r\n }",
"int updateByPrimaryKey(QtActivitytype record);",
"protected void edit(HttpServletRequest request, HttpServletResponse response, ContentFeedRelForm _ContentFeedRelForm, ContentFeedRel _ContentFeedRel) throws Exception{\n\r\n m_logger.debug(\"Before update \" + ContentFeedRelDS.objectToString(_ContentFeedRel));\r\n\r\n _ContentFeedRel.setContentFeedId(WebParamUtil.getLongValue(_ContentFeedRelForm.getContentFeedId()));\r\n _ContentFeedRel.setContentId(WebParamUtil.getLongValue(_ContentFeedRelForm.getContentId()));\r\n _ContentFeedRel.setTimeCreated(WebParamUtil.getDateValue(_ContentFeedRelForm.getTimeCreated()));\r\n\r\n m_actionExtent.beforeUpdate(request, response, _ContentFeedRel);\r\n m_ds.update(_ContentFeedRel);\r\n m_actionExtent.afterUpdate(request, response, _ContentFeedRel);\r\n m_logger.debug(\"After update \" + ContentFeedRelDS.objectToString(_ContentFeedRel));\r\n }",
"public Account update(Account user);",
"@Override\n public final void doPut() {\n try {\n checkPermissions(getRequest());\n if (id == null) {\n throw new APIMissingIdException(getRequestURL());\n }\n\n final String inputStream = getInputStream();\n if (inputStream.length() == 0) {\n api.runUpdate(id, new HashMap<String, String>());\n return;\n }\n\n Item.setApplyValidatorMandatoryByDefault(false);\n final IItem item = getJSonStreamAsItem();\n api.runUpdate(id, getAttributesWithDeploysAsJsonString(item));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"@RequestMapping(value = \"/films\", //\n\t\t\t\t\tmethod = RequestMethod.PUT, //\n\t\t\t\t\tproduces = {MediaType.APPLICATION_JSON_VALUE})\n\t@ResponseBody\n\tpublic Film updateFilm(@RequestBody Film film) {\n\t\treturn filmService.modifier(film);\n\t}",
"void updateApp(String marathonJson);",
"@Override\n public DataObjectResponse<Agenda> handlePUT(DataObjectRequest<Agenda> request)\n {\n return super.handlePUT(request);\n }",
"int updateByPrimaryKey(ExamRoom record);",
"private void fillActivity(Model model, Long id) {\n\t\tList<ActivityPoint> activityPoints = activityService.fetchActivityPoints(id);\n\t\tActivity activity = activityService.fetchActivity(id);\n\t\tmodel.addAttribute(\"activityPoints\", activityPoints);\n\t\tmodel.addAttribute(\"activity\", activity);\n\t}",
"int updateByExampleSelective(@Param(\"record\") QtActivitytype record, @Param(\"example\") QtActivitytypeExample example);",
"public void modificar(Long id, G entity, HttpServletRequest httpRequest) throws AppException;",
"int updateByPrimaryKey(UserCourseHistory record);"
] | [
"0.7484016",
"0.695946",
"0.6648161",
"0.6463321",
"0.6421563",
"0.6398429",
"0.63336754",
"0.62050873",
"0.6188973",
"0.6073003",
"0.6060982",
"0.5971131",
"0.59699917",
"0.5924464",
"0.5906015",
"0.5805969",
"0.57971007",
"0.57850087",
"0.5758926",
"0.569652",
"0.5687875",
"0.56693786",
"0.56609946",
"0.56536686",
"0.5642304",
"0.56049776",
"0.5601726",
"0.55944556",
"0.5579377",
"0.5544801",
"0.5542333",
"0.5537986",
"0.55336446",
"0.5531084",
"0.5516731",
"0.5510078",
"0.5479515",
"0.54630387",
"0.5453521",
"0.54488426",
"0.5440611",
"0.5436068",
"0.54276896",
"0.5420442",
"0.54155964",
"0.5414465",
"0.54125094",
"0.53873926",
"0.53822386",
"0.537742",
"0.5361761",
"0.53614295",
"0.5353392",
"0.5348431",
"0.5334555",
"0.53259706",
"0.53233707",
"0.5318502",
"0.53090256",
"0.53062487",
"0.5298823",
"0.5289068",
"0.52868956",
"0.52867645",
"0.5286147",
"0.5284572",
"0.5284272",
"0.52825916",
"0.5280498",
"0.5274923",
"0.52660024",
"0.52653414",
"0.52603835",
"0.5260297",
"0.52593887",
"0.52523994",
"0.5247886",
"0.52426374",
"0.5240736",
"0.5234075",
"0.52310246",
"0.523022",
"0.5229745",
"0.5227796",
"0.52258366",
"0.52249056",
"0.5223287",
"0.5222737",
"0.52201533",
"0.5215184",
"0.52151823",
"0.5205007",
"0.52030927",
"0.52011096",
"0.5197245",
"0.51910716",
"0.5189709",
"0.5189299",
"0.5187954",
"0.5184528"
] | 0.7138153 | 1 |
delete activity rest api | @DeleteMapping("/activities/{id}")
public ResponseEntity <Map<String,Boolean>> deleteActivity(@PathVariable Long id) {
Activity activity = activityRepository.findById(id)
.orElseThrow(()-> new ResourceNotFoundException("Activity not exist with id :" +id));
activityRepository.delete(activity);
Map<String,Boolean> response = new HashMap<>();
response.put("deleted", Boolean.TRUE);
return ResponseEntity.ok(response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(path = \"/api/activity/delete/{id}\")\n public Response deleteActivity(@PathVariable long id){\n return activityService.deleteActivity(id);\n }",
"@CustomAnnotation(value = \"DELETE_ACTIVITY\")\n\t@RequestMapping(\n\t\t\tvalue=\"/activity/{id}\",\n\t\t\tmethod=RequestMethod.DELETE,\n\t\t\tproduces=MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Activity> deleteActivity(@PathVariable(\"id\") Long id, @Context HttpServletRequest request){\n\t\tActivity activityForDelete=activityService.findActivity(id);\n\t\tif(activityForDelete!=null){\n\t\t\tactivityService.deleteActivity(activityForDelete.getId());\n\t\t}\n\t\t\n\t\treturn new ResponseEntity<Activity>(activityForDelete, HttpStatus.OK);\n\t}",
"int deleteByPrimaryKey(String activityId);",
"@DeleteMapping(\"/at-activity-statuses/{id}\")\n @Timed\n public ResponseEntity<Void> deleteAtActivityStatuses(@PathVariable Long id) {\n log.debug(\"REST request to delete AtActivityStatuses : {}\", id);\n atActivityStatusesRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public Boolean deleteActivity(String client, String cisId, AActivity activity);",
"@DELETE\n\tResponse delete();",
"boolean deleteUserActivityFromDB(UserActivity userActivity);",
"void deleteActivityType(int id) throws DataAccessException;",
"int deleteByExample(TestActivityEntityExample example);",
"public abstract Response delete(Request request, Response response);",
"public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;",
"public void deleteActivity(String activityId) throws ActivityStorageException;",
"@Headers({\n \t\"Content-Type:application/vnd.api+json\" \n })\n @DELETE(\"api/v2/sub_organizations/{id}.json_api\")\n Call<Meta> delete(\n @retrofit2.http.Path(\"id\") Integer id\n );",
"@DeleteMapping(\"/act-kodus/{id}\")\n @Timed\n public ResponseEntity<Void> deleteActKodu(@PathVariable Long id) {\n log.debug(\"REST request to delete ActKodu : {}\", id);\n actKoduRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(value = \"/delete\", produces = \"application/json\")\n void delete(@RequestParam int id);",
"void delete(URI url) throws RestClientException;",
"@DeleteMapping(\"/person\")\r\n@ApiOperation( value = \"Delete Person by id\", notes = \"delete a specific person\")\r\nprivate String deletePersonByParamId(@RequestParam(required = true) int id)\r\n{\r\n Person person = personService.getPersonById(id);\r\n if(person == null){\r\n throw new PersonNotFoundException(\"PersonNotFound\");\r\n }\r\n try {\r\n personService.delete(id);\r\n return \"Sucess\";\r\n }\r\n catch(Exception e){\r\n logger.error(e.toString());\r\n return \"Error =\" + e.toString();\r\n }\r\n}",
"int deleteByPrimaryKey(Integer actId);",
"@DELETE(\"posts/{id}/\")\n Call<Void> delete(@Path(\"id\") int id);",
"HttpResponse httpDelete(URI uri, String id);",
"@GetMapping(path = \"/api/activity/cancel/{id}\")\n public Response cancelActivity(@PathVariable long id){\n return activityService.cancelActivity(id);\n }",
"@DELETE(\"/task/{title}.json\")\n Call<Task> deleteTask(@Path(\"title\") String title);",
"@DELETE\n public void delete(@PathParam(\"id\") String id) {\n }",
"@DeleteMapping(\"/person/{id}\")\r\n@ApiOperation( value = \"Delete Person by id\", notes = \"delete a specific person\")\r\nprivate void deletePerson(@PathVariable(\"id\") int id)\r\n{\r\n Person person = personService.getPersonById(id);\r\n if(person == null){\r\n throw new PersonNotFoundException(\"PersonNotFound\");\r\n }\r\n try {\r\n personService.delete(id);\r\n }\r\n catch(Exception e){\r\n logger.error(e.toString());\r\n }\r\n}",
"private void buttonToDeleteMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonToDeleteMouseClicked\n ActivityService activityService = new ActivityService();\n activityService\n .setId(this.id)\n .setUser(this.dashboard.user);\n try {\n activityService.delete();\n this.setVisible(false);\n this.dashboard.refreshUI();\n }catch (Exception err) {\n this.alert.showMessageDialog(null, \"gagal menghapus data\");\n }\n }",
"@DeleteMapping(path = \"api/activity/decline/{activityid}/{token}\")\n public Response declineAttendedActivity(@PathVariable long activityid, @PathVariable String token) {\n return activityService.declineAttendedActivity(activityid, userService.getUserIDFromJWT(token));\n }",
"int deleteByExample(ActivityHongbaoPrizeExample example);",
"@RequestMapping(value = \"/estados/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Estado : {}\", id);\n estadoRepository.delete(id);\n }",
"int deleteByPrimaryKey(Short act_id);",
"@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }",
"public void deletePost(int id){\n Retrofit retrofit = ApiClient.getApiClient();\n final SharedPreferences sharedPref = getSharedPreferences(\"TOKENSHARED\", Context.MODE_PRIVATE);\n final String token = sharedPref.getString(\"TOKEN\", null);\n ApiInterface apiInterface = retrofit.create(ApiInterface.class);\n Call<JsonResponseDeletePost> call = apiInterface.deletePost(id,\"Token \" + token);\n call.enqueue(new Callback<JsonResponseDeletePost>() {\n @Override\n public void onResponse(Call<JsonResponseDeletePost> call, Response<JsonResponseDeletePost> response) {\n finish();\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n\n }\n\n @Override\n public void onFailure(Call<JsonResponseDeletePost> call, Throwable t) {\n finish();\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n }\n });\n }",
"public ResponseTranslator delete() {\n setMethod(\"DELETE\");\n return doRequest();\n }",
"int deleteByExample(QtActivitytypeExample example);",
"ApiResponse deleteEntityById(Integer id);",
"@DeleteMapping(\"/attractions/{id}\")\n @Timed\n public ResponseEntity<Void> deleteAttraction(@PathVariable Long id) {\n log.debug(\"REST request to delete Attraction : {}\", id);\n\n attractionRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(value = \"/rest/accesss/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Access : {}\", id);\n accessRepository.delete(id);\n }",
"@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.DELETE)\n public void delete(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }",
"ResponseEntity deleteById(UUID id);",
"int deleteContent(@Param(\"id\") long id);",
"@DELETE\n @Path(\"/{id}\")\n @Produces(\"application/json\")\n public Response delete(@Context HttpHeaders hh, @PathParam(\"id\") String idString, \n @QueryParam(\"delete_asana\") Boolean deleteAsana) {\n\n Long id = ParameterValidator.validateId(idString);\n\n\n /*\n Load PomoTask from Db\n */\n PomoTask pomoTask = pomoTaskDao.find(id);\n\n /*\n Check if PomoTask exists\n */\n if (pomoTask == null) {\n return Responses.notFound(idString);\n }\n\n /*\n Check Auth\n */\n User authUser = Authorization.authorize(hh);\n\n Authorization.ownPomoTasks(authUser, pomoTask);\n\n if(deleteAsana != null && deleteAsana){\n AsanaApiClient.build(authUser).deleteTask(id);\n }\n\n pomoTaskDao.delete(pomoTask);\n\n return Responses.ok();\n\n }",
"@DeleteMapping(\"{id}\")\n public Lesson deleteLesson(@PathVariable long id) {\n //code\n return null;\n }",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}",
"@DELETE(\"pomodorotasks\")\n Call<PomodoroTask> pomodorotasksDelete(\n @Body PomodoroTask pomodoroTask\n );",
"Boolean delete(HttpServletRequest request, Long id);",
"@DeleteMapping(\"/infact-record/{id}\")\n\tpublic ResponseEntity<?> delete(@PathVariable(\"id\") long id) {\n\t\tinfactRecordServiceImpl.delete(id);\n\t\treturn ResponseEntity.ok().body(\n\t\t\t\t\"infact-record has been deleted successfully.\");\n\t}",
"void delete(String url, Object... uriVariables) throws RestClientException;",
"void delete(String url, Map<String, ?> uriVariables) throws RestClientException;",
"@GetMapping(path = \"api/activity/decline/{activityid}/{token}\")\n public Response declineActivity(@PathVariable long activityid, @PathVariable String token){\n return activityService.declineActivity(activityid, userService.getUserIDFromJWT(token));\n }",
"@Override\n\tpublic int deleteAction(JSONObject params) {\n\t\treturn this.delete(\"deleteAction\", params);\n\t}",
"void deleteByIdWithResponse(String id, Context context);",
"void deleteByIdWithResponse(String id, Context context);",
"void deleteByIdWithResponse(String id, Context context);",
"void deleteByIdWithResponse(String id, Context context);",
"void deleteByIdWithResponse(String id, Context context);",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"private void deletePost() {\n /*Retrofit will make a implementation for this method automatically\n * There for we simple call method make making API using retrofit instance*/\n Call<Void> call = jsonPlaceHolderAPI.deletePost(5);\n call.enqueue(new Callback<Void>() {\n @SuppressLint(\"SetTextI18n\")\n @Override\n @EverythingIsNonNull\n public void onResponse(Call<Void> call, Response<Void> response) {\n textResult.setText(\"CODE: \" + response.code());\n }\n\n @Override\n @EverythingIsNonNull\n public void onFailure(Call<Void> call, Throwable t) {\n textResult.setText(t.getMessage());\n }\n });\n }",
"@DeleteMapping(\"/anexlaborals/{id}\")\n @Timed\n public ResponseEntity<Void> deleteAnexlaboral(@PathVariable Integer id) {\n log.debug(\"REST request to delete Anexlaboral : {}\", id);\n anexlaboralRepository.delete(id);\n anexlaboralSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DELETE\n public void delete() {\n }",
"@Consumes(MediaType.APPLICATION_JSON)\r\n\t@DELETE\r\n\t@Path(\"deleteflight/{id}\")\r\n\tpublic void deleteAFlight(@PathParam(\"id\") long id){\r\n\t\tDaoFactory.getFlightDao().deleteAFlight(id);\r\n\t}",
"@Override\n\tpublic int delete(JSONObject param) {\n\t\tMap<String, Object> data = new HashMap<String, Object>();\n\t\tString movieId = StringUtil.ToString(param.getString(\"id\"));\n\t\tdata.put(\"movieId\", movieId);\n\t\tint number = this.delete(\"MovieRecommand.deleteById\", data);\n\t\treturn number;\n\t}",
"@DELETE\n @Path(\"/remove\")\n public void delete() {\n System.out.println(\"DELETE invoked\");\n }",
"int deleteByExample(FactRoomLogExample example);",
"@DeleteMapping(\"/delete/{id}\")\n public ResponseEntity delete(@PathVariable int id){\n if(id < 1){\n return new ResponseEntity(HttpStatus.BAD_REQUEST);\n }\n service.delete(id);\n return new ResponseEntity(HttpStatus.OK);\n }",
"@Delete\n void delete(Task... task);",
"int deleteByPrimaryKey(Integer actPrizeId);",
"void delete(String id, AsyncCallback<Void> callback);",
"public abstract void onDelete(final ResourceType type, final Integer... resources);",
"@DELETE\n public void delete() {\n }",
"@DELETE\n public void delete() {\n }",
"@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }",
"@Test\n public void deleteFlightTest() throws Exception {\n mockMvc.perform(delete(\"/v1/flight/deleteFlight?flightId=1\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(status().is(200));\n\n }",
"@Override\n\tpublic void deleteRole_Activity(Integer id) {\n\t\tlogger.debug(\"RoleServiceImpl::deleteRole_Activity id = {}\", id);\n\t\troleMapper.deleteRole_Activity(id);\n\t}",
"@DeleteMapping(\"/tasks/{id}\")\n public ResponseEntity<Map<String,Boolean>> deleteTask(@PathVariable Long id){\n Task task = taskRepository.findById(id)\n .orElseThrow(() -> new ResourceNotFoundException(\"Task not found with Id of \" + id));\n\n taskRepository.delete(task);\n Map<String,Boolean> response = new HashMap<>();\n response.put(\"deleted\", Boolean.TRUE);\n return ResponseEntity.ok(response);\n }",
"String delete(String request) throws RemoteException;",
"@RequestMapping( value = \"/{id}\", method = RequestMethod.DELETE )\n public void delete(@PathVariable(value=\"id\") int id){\n classService.delete(id);\n }",
"@DeleteMapping(\"/impacts/{id}\")\n @Timed\n public ResponseEntity<Void> deleteImpact(@PathVariable Long id) {\n log.debug(\"REST request to delete Impact : {}\", id);\n impactRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}",
"private void deleteFun() throws IOException {\n String jsonObject = \"{\\\"age\\\":10,\\\"dateOfBirth\\\":1471455886564,\\\"fullName\\\":\\\"Johan Doe\\\"}\";\n IndexRequest indexRequest = new IndexRequest(\"people\");\n indexRequest.source(jsonObject, XContentType.JSON);\n\n IndexResponse response = client.index(indexRequest, RequestOptions.DEFAULT);\n String id = response.getId();\n\t System.out.println(\"id = \" + id);\n\n GetRequest getRequest = new GetRequest(\"people\");\n getRequest.id(id);\n\n GetResponse getResponse = client.get(getRequest, RequestOptions.DEFAULT);\n System.out.println(getResponse.getSourceAsString());\n\n DeleteRequest deleteRequest = new DeleteRequest(\"people\");\n deleteRequest.id(id);\n\n DeleteResponse deleteResponse = client.delete(deleteRequest, RequestOptions.DEFAULT);\n\t System.out.println(\"deleteResponse = \" + deleteResponse.toString());\n }",
"public static int doDelete(String id) {\n int status = 0;\n try {\n // pass the id on the URL line\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\" + \"//\"+id);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"DELETE\");\n status = conn.getResponseCode();\n String output = \"\";\n String response = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output; \n }\n conn.disconnect(); \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return status;\n }",
"@DELETE\n @Path(\"/{requirementId}\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method deletes a specific requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the deleted requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response deleteRequirement(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n RequirementEx requirementToDelete = dalFacade.getRequirementById(requirementId, internalUserId);\n Project project = dalFacade.getProjectById(requirementToDelete.getProjectId());\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, Arrays.asList(String.valueOf(project.getId()), String.valueOf(requirementId)), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.delete\"));\n }\n Gson gson = new Gson();\n RequirementEx deletedRequirement = dalFacade.deleteRequirementById(requirementId, internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, deletedRequirement.getLastupdated_time(), Activity.ActivityAction.DELETE, deletedRequirement.getId(),\n Activity.DataType.REQUIREMENT, deletedRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(deletedRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"@RequestMapping(value = \"/presencerequests/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deletePresencerequest(@PathVariable Long id) {\n log.debug(\"REST request to delete Presencerequest : {}\", id);\n presencerequestRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"presencerequest\", id.toString())).build();\n }",
"public void deleteChatRoom(ChatRoom cr);",
"public int delete(o dto);",
"@DeleteMapping(\"/statuts/{id}\")\n public void deletStatut(@PathVariable(\"id\") int id) {\n \tserviceStatut.deletStatut(id);\n }",
"@DeleteMapping(\"{id}\")\n public ResponseEntity<PersonResponse> delete(@PathVariable(name = \"id\") String id) {\n personService.delete(id);\n return ResponseEntity.status(HttpStatus.NO_CONTENT).build();\n }",
"@DELETE\n @Path(\"bank/account/{account_id}\")\n public void deleteBankAccunt(@PathParam(\"account_id\") \n String accountId) {\n int id = Integer.parseInt(accountId);\n System.out.println(id);\n }",
"@DELETE\n @Path(\"/delete/{id}\")\n @Consumes(\"application/json\")\n public Response deletePhotos(@PathParam(\"id\") int id){\n \tPhotosDAO dao = new PhotosDAO();\n int count = dao.deletePhoto(id);\n if(count==0){\n return Response.status(Response.Status.BAD_REQUEST).build();\n }\n return Response.ok(\"The delete was successful.No of rows updated are : \" + count).build();\n }",
"HttpDelete deleteRequest(HttpServletRequest request, String address) throws IOException;",
"@DeleteMapping(\"/memberships/{id}\")\n @Timed\n public ResponseEntity<Void> deleteMembership(@PathVariable Long id) {\n log.debug(\"REST request to delete Membership : {}\", id);\n membershipService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/asignacion/{id}\")\n public ResponseEntity<Void> deleteAsignacion(@PathVariable Long id) {\n log.debug(\"REST request to delete Asignacion : {}\", id);\n asignacionService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public Response deleteWithoutPayload(String url) {\r\n\t\treturn RestAssured.given()\r\n\t\t\t\t.header(\"Authorization\", \"Bearer \" + accessToken)\r\n\t\t\t\t.header(\"Content-Type\", \"application/json\")\r\n\t\t\t\t.delete(url);\r\n\t}",
"public abstract void delete(Context context);",
"public void delete(int id);",
"@Test\n void deleteTest() {\n URI uri = URI.create(endBody + \"/delete\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n assertEquals(200, response.statusCode());\n }",
"@DeleteMapping(\"/movies/{id}\")\n @Timed\n public ResponseEntity<Void> deleteMovie(@PathVariable Long id) {\n log.debug(\"REST request to delete Movie : {}\", id);\n movieRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"movie\", id.toString())).build();\n }",
"@FormUrlEncoded\n\t@POST(\"post/delete\")\n\tCall<BasicResponse> deleteItem(\n\t\t\t\t\t@Field(\"id_content\") String idContent);",
"@Override\r\n public int delete(Uri uri, String where, String[] whereArgs) {\n return 0;\r\n }",
"public void delete(Integer id);",
"public void delete(Integer id);"
] | [
"0.8069296",
"0.76524454",
"0.69251",
"0.6900706",
"0.68269646",
"0.6809066",
"0.6808663",
"0.6768283",
"0.67003626",
"0.6664906",
"0.6577283",
"0.6571528",
"0.65189034",
"0.6508918",
"0.64785516",
"0.6471872",
"0.647014",
"0.6452407",
"0.6434014",
"0.6431227",
"0.6427856",
"0.63938093",
"0.63855064",
"0.6385129",
"0.6375422",
"0.6347344",
"0.63312197",
"0.631443",
"0.63140684",
"0.62819475",
"0.62620026",
"0.62452954",
"0.6245134",
"0.6243441",
"0.6235012",
"0.6230446",
"0.6217522",
"0.62154883",
"0.62055224",
"0.6203306",
"0.61959934",
"0.6186131",
"0.6178984",
"0.61709386",
"0.6167551",
"0.6166253",
"0.61493766",
"0.6140007",
"0.6130636",
"0.611088",
"0.6098452",
"0.6098452",
"0.6098452",
"0.6098452",
"0.6098452",
"0.6094492",
"0.6085861",
"0.6078338",
"0.6072754",
"0.6062668",
"0.6053163",
"0.60359085",
"0.60308385",
"0.60244787",
"0.6001287",
"0.60005635",
"0.59944576",
"0.5977266",
"0.59698707",
"0.59698707",
"0.59683275",
"0.5967211",
"0.5964609",
"0.59557927",
"0.59555024",
"0.59440005",
"0.59385777",
"0.5933829",
"0.59326935",
"0.5932635",
"0.59222186",
"0.5920455",
"0.5920103",
"0.59167266",
"0.5916239",
"0.591494",
"0.59103477",
"0.5909983",
"0.5907352",
"0.59062195",
"0.5904187",
"0.5898679",
"0.58956766",
"0.5894197",
"0.589161",
"0.58881295",
"0.58876497",
"0.58797634",
"0.58752793",
"0.58752793"
] | 0.73670644 | 2 |
Interface that permits to implement the update method called by the notify method of the class that extend Observable. | public interface Observer <T> {
/**
* The method that is called by the notify method of the Observable classes.
* @param message The message sent by the notify method of the observable classes.
*/
void update(T message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void update(Observable arg0, Object arg1) {\n\t\t\n\t}",
"@Override\n public void update(Observable arg0, Object arg1) {\n \n }",
"@Override\r\n\tpublic void update(Observable arg0, Object arg1) {\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void update(Observable arg0, Object arg1) {\n\t\t}",
"@Override\n public void update(Observable o, Object arg) {\n\n }",
"@Override\n public void update (Observable o, Object arg) {\n }",
"@Override\n\tpublic void update(Observable o, Object arg) {\n\t\t\n\t}",
"@Override\n public void update(Observable o, Object arg)\n {\n \n }",
"@Override\n public void update(Observable o, Object arg) {\n }",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\n\r\n\t}",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\n\r\n\t}",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\n\t\t\r\n\t}",
"@Override\n\tpublic void update(Observable observable, Object data) {\n\n\t}",
"public abstract void update(Observable o, java.lang.Object arg);",
"@Override\n public void update(Observable o, Object arg) {\n// throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"@Override\n public void update(Observable o, Object arg) {\n setChanged();\n notifyObservers();\n }",
"public interface Observer {\n void update(Observable o, Object arg);\n}",
"private interface Observable{\n void registerObserver(Observer observer);\n void removeObserver(Observer observer);\n void updateScore(String score);\n void notifyObservers();\n void notifyObservers(String errorMessage);\n }",
"public interface Observer {\n /**\n * This method is called by observed object (Observable) when it wants to notify their observers.\n */\n void update();\n}",
"public interface Observer {\n\tvoid update(Observable o, String event);\n}",
"public void updateObserver();",
"public void update(Observable arg0, Object arg1) {\n\n\t}",
"private interface Observer {\n void update(Observable observable, String errorMessage);\n }",
"public interface Observer {\n //method to update the observer, used by subject\n public void update();\n\n}",
"public interface Observer {\n void update();\n}",
"Observable<T> update(T item);",
"public interface ObservableListener<T> {\n /**\n * Is called upon an update to the observable\n */\n public void onUpdate(T oldValue, T newValue);\n}",
"public void update(Observable o, Object arg) {\n\t\t\r\n\t}",
"public interface Observer {\n\tpublic abstract void update(ArrayList<Document> documents);\n}",
"public interface MyObserver {\n\n public void myNotify(MyObservable observable);\n\n}",
"interface Observer {\r\n public void update(String msg);\r\n}",
"@Override\r\n\tpublic void update(Observable arg0, Object arg1) {\n\t\trepaint();\r\n\t}",
"public interface Observer<T> {\n\n /**\n * Retreive an update from an observable\n *\n * @param subject\n */\n Void update(T subject);\n}",
"@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}",
"public interface Observer {\n\n void update(float temperature,float humidity,float pressure);\n\n}",
"public interface Observer {\r\n \r\n /**\r\n * This method allows to update.\r\n */\r\n void update();\r\n}",
"public interface Observer {\n public void update(float temperature , float pressure , float humdity);\n}",
"public void notifyObservers();",
"public void notifyObservers();",
"public void notifyObservers();",
"public interface Observable<T> {\n /**\n * Sets the variable that is observable. Notifies its Observers of this change.\n *\n * @param t The value to set the observable variable to.\n */\n void set(T t);\n\n /**\n * Adds the given Observer to a collection of this observable. Observers added will be notified of changes.\n *\n * @param observer Object that is observing this Observable.\n */\n void addObserver(Observer observer);\n}",
"public void update(Observable arg0, Object arg1) {\r\n this.repaint();\r\n }",
"public interface Updateable {\n public void update();\n}",
"public interface MyObservable {\n\n void addObserver(MyObserver maddObserver);\n void removeObserver(MyObserver rmObserver);\n void notifyObservers1(String data);\n void notifyObservers2(String data);\n void notifyObservers3(String data);\n void notifyObservers4(String data);\n}",
"public interface Observer {\n public void update(float temp, float humidity, float pressure);\n}",
"public interface Observer {\n public void update(float temp, float humidity, float pressure);\n}",
"@Override\n public void update(Observable observable, Object o) {\n javafx.application.Platform.runLater(this::refresh);\n }",
"public interface ShopObserver {\n\n /**\n * @param so has the ShopObservable parameter which is used to update the shopView\n */\n void update(ShopObservable so);\n}",
"@Override\n\tpublic void NotifyObserver() {\n\n\t}",
"@Override\n\tpublic void Notify() {\n\t\tfor (Observer observer : obs) {\n\t\t\tobserver.update();\n\t\t}\n\t}",
"public interface IObservable\n{\n\t/**\n\t * This method allows an observer to be added to the list of observer\n\t * objects\n\t * \n\t * @param anIObserver\n\t * the observer (IObsever) who wants to be added and updated when\n\t * a specific state changes or event occurs\n\t */\n\tpublic abstract void addObserver(IObserver anIObserver);\n\n\tpublic abstract void deleteObserver(IObserver anIObserver);\n\n\tpublic abstract void deleteObservers();\n\n\tpublic abstract int countObservers();\n}",
"@Override\n\tpublic void update(IObservable observable, Object args) {\n\t\tthis.repaint();\n\t}",
"public interface Observer {\n\tpublic void update(Action action);\n}",
"public void notifyObservers() {}",
"public void update(Observable o, Object arg) {\n\t\tfireStateChanged();\n\t}",
"public Object getUpdate(Observer obj);",
"void notifyObservers();",
"void notifyObservers();",
"public interface ReceiverObserver {\n\n void update(DataNotification notification);\n}",
"public interface Observer{\n //一发现别人有动静,自己也要行动起来\n public void update(String context);\n\n\n}",
"public void notifyBaseObservers(Object arg) {\n /*\n * a temporary array buffer, used as a snapshot of the state of\n * current BaseObservers.\n */\n Object[] arrLocal;\n\n synchronized (this) {\n /* We don't want the BaseBaseObserver doing callbacks into\n * arbitrary code while holding its own Monitor.\n * The code where we extract each Observable from\n * the Vector and store the state of the BaseBaseObserver\n * needs synchronization, but notifying observers\n * does not (should not). The worst result of any\n * potential race-condition here is that:\n * 1) a newly-added BaseBaseObserver will miss a\n * notification in progress\n * 2) a recently unregistered BaseBaseObserver will be\n * wrongly notified when it doesn't care\n */\n if (!changed) {\n return;\n }\n arrLocal = obs.toArray();\n clearChanged();\n }\n\n for (int i = arrLocal.length - 1; i >= 0; i--) {\n ((BaseObserver<M, T>) arrLocal[i]).update(this, arg);\n }\n }",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\r\n\t\tSystem.out.println(arg.toString());\r\n\t\tif (o instanceof Hand) {\r\n\t\t\tthis.sendNotification(\"Your hand has changed:\");\r\n\t\t\tthis.showHand();\r\n\t\t} else if (o instanceof Board) {\r\n\t\t\tthis.sendNotification(\"The board has changed:\");\r\n\t\t\tthis.showBoard();\r\n\t\t} else if (o instanceof Turn) {\r\n\t\t\tthis.sendNotification(\"Your turn is now as follows:\");\r\n\t\t\tthis.showTurn();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer1 has received update!\");\r\n\t}",
"public interface BioObserver {\n\n\t/**\n\t * Updates the application according to the message passed by an observable class.\n\t * This happens whenever the observer class gets notified by an observable class.\n\t *\n\t * @param message\n\t * - the message transmitted when the observer gets notified.\n\t */\n\tpublic abstract void update(Message message);\n\n}",
"@Override\r\n\tpublic void notifyObservers() {\n\t for(Observer o : observers){\r\n\t\t o.update();\r\n\t }\r\n\t}",
"@Override\n void notifys() {\n for (Observer o : observers) {\n o.update();\n }\n }",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\r\n\t\t// Not exactly how MVC works, but similar.\r\n\t\tthis.repaint(); // Schedule a call to paintComponent\r\n\t}",
"public interface Observer {\n public void update(String context);\n\n}",
"public interface Observer {\n void updateWeather(Weather weather);\n}",
"@Override\n\tpublic void notifyObservers() {\n\t\tfor (Observer obs : this.observers)\n\t\t{\n\t\t\tobs.update();\n\t\t}\n\t}",
"public interface VerificateObservable {\n\n\n public void notifyDataChange();\n\n /**\n * subscribe to Obervable\n * @param obs Observer that want to be be subscribe\n */\n public void addLikeObserver(VerificateObserver obs);\n\n public void removeObserver(VerificateObserver obs);\n\n\n public void setGlobalParamActivator(GlobalParamActivator globalParamActivator);\n}",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"public interface Observer<T> {\n\n void modified(T obj);\n}",
"public interface Observer<E extends Event> {\n void update(E e);\n\n}",
"interface Update {}",
"@Override\n public void notifyObservers() {\n for (Observer observer : observers){\n // observers will pull the data from the observer when notified\n observer.update(this, null);\n }\n }",
"@Override\r\n\tpublic void notifyObservers() {\n\t\tfor (Observer o : this.observers) {\r\n\t\t\to.update();\r\n\t\t}\r\n\t}",
"public interface Observer {\n void upate();\n}",
"public interface CellViewObserver {\n void update(BaseCellView cellView);\n}",
"@Override\n public void update(Observable o, Object arg) {\n /*this.alerts.add((String)arg);*/\n }",
"void notifyObserver();",
"private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }",
"@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tthis.repaint(); // Schedule a call to paintComponent\n\t}",
"@Override\n public void update(Observable observable, Object data) {\n Toast.makeText(this, \"I am notified\" + myBase.getObserver().getValue(), 0).show();\n btn.setText(\"value: \" + myBase.getObserver().getValue());\n\n }",
"protected abstract void update();",
"protected abstract void update();",
"@Override\n public void update(Observable o, Object arg) {\n if (o == observable) {\n // System.out.println(\"To do list updated to: \" + observable.getList());\n notification = \"To do list updated to: \" + observable.getList();\n }\n }",
"public interface ModelObserver {\n\n void update();\n void update(Model model);\n\n}",
"@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer3 has received update!\");\r\n\t}",
"public interface Observer {\n public void update(Category category, Question question);\n}",
"@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer2 has received update!\");\r\n\t}",
"public void onUpdate(T oldValue, T newValue);",
"@Override\n public void update(Observable observable, Object o) {\n if (o instanceof ObserverFlag){\n ObserverFlag observerFlag=(ObserverFlag) o;\n // Si on reçoit un packet on notifie nos observers en leur donnant le packet\n if (observerFlag.getFlag() == ObserverFlag.Flag.packetReceived){\n String received=observerFlag.getPacket().getClass().toString();\n System.out.println(\"Unicast : \"+received+\" from \"+observerFlag.getPacket().getSource().getPseudo()+\" at \"+observerFlag.getPacket().getSource().getAddress().toString());\n notifyObservers(observerFlag.getPacket());\n }else{\n // Sinon on supprime le Thread de notre liste.\n observable.deleteObserver(this);\n Discussion t=(Discussion) observable;\n chatRooms.remove(t.distant.getInetAddress());\n }\n }\n }",
"@Override\n\tpublic void update(Observable arg0, Object event) \n\t{\n\t\tif(event instanceof FightStartEvent)\n\t\t{\n\t\t\tFightStartEvent fse = (FightStartEvent) event;\n\t\t\trememberFightStartEvent(fse);\n\t\t}\n\t\tif(event instanceof RoundStartEvent)\n\t\t{\n\t\t\tRoundStartEvent rse = (RoundStartEvent) event;\n\t\t\trememberRoundStartEvent(rse);\n\t\t} \n\t\tif(event instanceof AttackEvent)\n\t\t{\n\t\t\tAttackEvent ae = (AttackEvent) event;\n\t\t\tthis.rememberAttackEvent(ae);\n\t\t}\n\t}",
"public void notifyUpdate() {\n if (mObserver != null) {\n synchronized (mObserver) {\n mNotified = true;\n mObserver.notify();\n }\n }\n }",
"private void notifyObservers() {\n\t\tIterator<Observer> i = observers.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tObserver o = ( Observer ) i.next();\r\n\t\t\to.update( this );\r\n\t\t}\r\n\t}",
"public interface ChatObservable {\r\n void attach(ChatObserver forumObserver);\r\n\r\n void detach(ChatObserver forumObserver);\r\n\r\n void inform();\r\n}",
"@Override\n\tpublic void update(Observable o, Object arg) {\n\t\tif(o instanceof SubjectSys){\n\t\t\tSubjectSys sys=(SubjectSys) o;\n\t\t\tSystem.out.println(ObserverSys.class+\"\\tƽ����:\"+sys.getAverageGrade()+\"\\t��߷�:\"+sys.getGradeMax());\n\t\t}\n\t}",
"public interface Observable<T> {\n void registerObserver(RequestStateObserver<T> repositoryObserver);\n void removeObserver(RequestStateObserver<T> repositoryObserver);\n void notifyObservers(int state, T data, DeployError deployError);\n}"
] | [
"0.82498986",
"0.8197349",
"0.81922406",
"0.8167212",
"0.8110071",
"0.81074965",
"0.80742955",
"0.80639184",
"0.80521476",
"0.8003872",
"0.8003872",
"0.79579365",
"0.79124373",
"0.78705066",
"0.78202254",
"0.7729932",
"0.7713272",
"0.75673425",
"0.75332355",
"0.7515903",
"0.7485479",
"0.7472941",
"0.74663264",
"0.7413753",
"0.7367386",
"0.72834843",
"0.7261431",
"0.72526735",
"0.7248384",
"0.7240408",
"0.7215344",
"0.7184299",
"0.7180548",
"0.71243656",
"0.70694596",
"0.7040452",
"0.7031889",
"0.7013507",
"0.7013507",
"0.7013507",
"0.69987434",
"0.69702446",
"0.69468015",
"0.69433004",
"0.69389796",
"0.69389796",
"0.6938565",
"0.6932974",
"0.69250023",
"0.69096595",
"0.6907839",
"0.6907023",
"0.6888889",
"0.6884371",
"0.68796384",
"0.6877053",
"0.68675673",
"0.68675673",
"0.68580985",
"0.6850571",
"0.68390787",
"0.6824451",
"0.68113166",
"0.68097144",
"0.68040633",
"0.6779502",
"0.6775314",
"0.6771402",
"0.6767391",
"0.67570657",
"0.6746998",
"0.67328185",
"0.67328185",
"0.6731176",
"0.67061305",
"0.67027503",
"0.67016006",
"0.6685374",
"0.66705894",
"0.66673774",
"0.6644963",
"0.6644486",
"0.6643405",
"0.6629143",
"0.6627625",
"0.6626903",
"0.6626903",
"0.6619996",
"0.66116565",
"0.66086614",
"0.6575334",
"0.6569914",
"0.6568058",
"0.65495515",
"0.65466124",
"0.6538132",
"0.65363973",
"0.65342325",
"0.65278685",
"0.65172315"
] | 0.7659899 | 17 |
The method that is called by the notify method of the Observable classes. | void update(T message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void notifyObservers() {\n\t\t\r\n\t}",
"@Override\n\tpublic void NotifyObserver() {\n\n\t}",
"protected void notifyObservers() {\n os.notify(this, null);\n }",
"public void notifyObservers() {}",
"@Override\r\n public void notify(Object arg) {\n }",
"public void notifyObservers();",
"public void notifyObservers();",
"public void notifyObservers();",
"@Override\n public void notify(Object event){\n }",
"void notifyObservers();",
"void notifyObservers();",
"void notifyObserver();",
"static void NotifyCorrespondingObservers() {}",
"@Override\n public void notifyObservers() {\n for (Observer observer : observers){\n // observers will pull the data from the observer when notified\n observer.update(this, null);\n }\n }",
"@Override\n public void update(Observable arg0, Object arg1) {\n \n }",
"public abstract Object notify(NotifyDescriptor descriptor);",
"@Override\n\tpublic void update(Observable arg0, Object arg1) {\n\t\t\n\t}",
"public void atacar() {\n notifyObservers();\n }",
"void onHisNotify();",
"@Override\r\n\tpublic void update(Observable arg0, Object arg1) {\n\t\t\r\n\t}",
"@Override\n\tpublic void Notify() {\n\t\tfor (Observer observer : obs) {\n\t\t\tobserver.update();\n\t\t}\n\t}",
"@Override\r\n\t\tpublic void update(Observable arg0, Object arg1) {\n\t\t}",
"@Override\n void notifys() {\n for (Observer o : observers) {\n o.update();\n }\n }",
"private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }",
"@Override\r\n\tpublic void operations() {\n\t\tSystem.out.println(\"update self!\"); \r\n notifyObservers(); \r\n\r\n\t}",
"@Override\n\tpublic void notifys() {\n\t\tfor(Observer observer : observers) {\n\t\t\tobserver.update(this);\n\t\t}\n\t}",
"@Override\n public void update(Observable o, Object arg)\n {\n \n }",
"private void notifyObservers() {\n\t\tfor (Observer observer : subscribers) {\n\t\t\tobserver.update(theInterestingValue); // we can send whole object, or just value of interest\n\t\t\t// using a pull variant, the update method will ask for the information from the observer\n\t\t\t// observer.update(this)\n\t\t}\n\t}",
"public void notify1();",
"public void updateObserver();",
"private void notifyObservers() {\n\t\tIterator<Observer> i = observers.iterator();\r\n\t\twhile( i.hasNext() ) {\r\n\t\t\tObserver o = ( Observer ) i.next();\r\n\t\t\to.update( this );\r\n\t\t}\r\n\t}",
"@Override\n public void update (Observable o, Object arg) {\n }",
"public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}",
"public void notifyObservers() {\r\n for (Observer observer: this.observers) {\r\n observer.update(this);\r\n }\r\n\r\n// System.out.println(this);\r\n }",
"@Override\n\tpublic void notifyObservers() {\n\t\tfor (Observer obs : this.observers)\n\t\t{\n\t\t\tobs.update();\n\t\t}\n\t}",
"@Override\n public void update(Observable o, Object arg) {\n\n }",
"boolean notifyBegin();",
"@Override\r\n\tpublic void notifyObservers(){\r\n\t\tfor(IObserver obs : observers){\r\n\t\t\tobs.update(this, selectedEntity);\r\n\t\t}\r\n\t\tselectedEntity = null;\r\n\t}",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\n\r\n\t}",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\n\r\n\t}",
"@Override\n\tpublic void update(Observable o, Object arg) {\n\t\t\n\t}",
"public void notifyBaseObservers() {\n notifyBaseObservers(null);\n }",
"@Override\r\n\tpublic void notifyObservers() {\n\t for(Observer o : observers){\r\n\t\t o.update();\r\n\t }\r\n\t}",
"protected void notify(Employee e) {\n\t}",
"@Override\r\n\tpublic void notifyObservers() {\n\t\tfor (Observer o : this.observers) {\r\n\t\t\to.update();\r\n\t\t}\r\n\t}",
"private void notifyObservers() {\n BinStatusUpdate newStatus = buildNewStatus();\n observers.iterator().forEachRemaining(binStatusUpdateStreamObserver -> binStatusUpdateStreamObserver.onNext(newStatus));\n }",
"@Override\n public void update(Observable o, Object arg) {\n }",
"public void notifyChange()\r\n {\r\n setChanged();\r\n notifyObservers();\r\n }",
"@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer1 has received update!\");\r\n\t}",
"@Override\n\tpublic void update(Observable observable, Object data) {\n\n\t}",
"void notifyUnexpected();",
"public void notifyEnd() {\n\n\t}",
"@Override\r\n\tpublic void update(Observable o, Object arg) {\n\t\t\r\n\t}",
"public void notifyObservers() {\n for (int i = 0; i < observers.size(); i++) {\n Observer observer = (Observer)observers.get(i);\n observer.update(this.durum);\n }\n }",
"@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}",
"public void update(){\n\t\tSystem.out.println(\"Return From Observer Pattern: \\n\" + theModel.getObserverState() \n\t\t+ \"\\n\");\n\t}",
"@Override\n\tpublic void notifyObserver() {\n\t\tEnumeration<ObserverListener> enumd = vector.elements();\n\t\twhile (enumd.hasMoreElements()) {\n\t\t\tObserverListener observerListener = enumd\n\t\t\t\t\t.nextElement();\n\t\t\tobserverListener.observer();\n\t\t\tobserverListener.obsupdata();\n\t\t}\n\t}",
"public void notifyUpdate() {\n if (mObserver != null) {\n synchronized (mObserver) {\n mNotified = true;\n mObserver.notify();\n }\n }\n }",
"public interface MyObserver {\n\n public void myNotify(MyObservable observable);\n\n}",
"public void subjectChanged(){\n return; //TODO codavaj!!\n }",
"private interface Observable{\n void registerObserver(Observer observer);\n void removeObserver(Observer observer);\n void updateScore(String score);\n void notifyObservers();\n void notifyObservers(String errorMessage);\n }",
"public void doNotify(){\n\t\tsynchronized(m){\n\t\t\tm.notifyAll();\n\t\t}\n\t}",
"@Override\r\n\tpublic void notifyObservers() {\n\t\tEnumeration<Observer> enumo = vector.elements();\r\n\t\twhile(enumo.hasMoreElements()){\r\n\t\t\tenumo.nextElement().update();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer2 has received update!\");\r\n\t}",
"@Override\n\t\t\tpublic void notify(Notification n) {\n\t\t\t\tif (isActive()) handleModelChanged();\n\t\t\t\trefreshAdapters();\n\t\t\t}",
"@Override\r\n\tpublic void update() {\n\t\tSystem.out.println(\"Observer3 has received update!\");\r\n\t}",
"@Override\n public void update(Observable o, Object arg) {\n setChanged();\n notifyObservers();\n }",
"void notify(Message m);",
"@Override\n public void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) {\n\n }",
"@Override\r\n\tpublic void Update() {\n\t\tSystem.out.println(name+\",¹Ø±ÕNBA£¬¼ÌÐø¹¤×÷£¡\"+abstractNotify.getAction());\r\n\t}",
"@Override\n public void update(Observable o, Object arg) {\n if (o == observable) {\n // System.out.println(\"To do list updated to: \" + observable.getList());\n notification = \"To do list updated to: \" + observable.getList();\n }\n }",
"public void notifyAllObservers(){\n\t\tthis.notifyAllObservers(null);\n\t}",
"@Override\r\n\tpublic void update(Observable arg0, Object arg1) {\n\t\trepaint();\r\n\t}",
"public void notifyBaseObservers(Object arg) {\n /*\n * a temporary array buffer, used as a snapshot of the state of\n * current BaseObservers.\n */\n Object[] arrLocal;\n\n synchronized (this) {\n /* We don't want the BaseBaseObserver doing callbacks into\n * arbitrary code while holding its own Monitor.\n * The code where we extract each Observable from\n * the Vector and store the state of the BaseBaseObserver\n * needs synchronization, but notifying observers\n * does not (should not). The worst result of any\n * potential race-condition here is that:\n * 1) a newly-added BaseBaseObserver will miss a\n * notification in progress\n * 2) a recently unregistered BaseBaseObserver will be\n * wrongly notified when it doesn't care\n */\n if (!changed) {\n return;\n }\n arrLocal = obs.toArray();\n clearChanged();\n }\n\n for (int i = arrLocal.length - 1; i >= 0; i--) {\n ((BaseObserver<M, T>) arrLocal[i]).update(this, arg);\n }\n }",
"public void update(Observable arg0, Object arg1) {\n\n\t}",
"@Override\n\tpublic void notifyAllObservers() {\n\t\tmyTurtle.notifyObservers();\n\t}",
"public void notifyObserver() {\n\r\n for (Observer observer : observers) {\r\n\r\n observer.update(stockName, price);\r\n\r\n }\r\n }",
"public synchronized void tellAt(){\n\t\tnotifyAll();\n\t}",
"@Override\n public void update(Observable o, Object arg) {\n// throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"private interface Observer {\n void update(Observable observable, String errorMessage);\n }",
"public void notifyChangementJoueurs();",
"public void notifyObservers() {\n\t\tfor(ElevatorObserver obs: observers) {\n\t\t\tobs.elevatorDidFinishTask(this);\n\t\t}\n\t}",
"public void notifyObservers(Observable observable,Board board) { \n\t\tGame.ui.get(0).update(observable,board); \n\t}",
"@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void notify(int seg, int start) {\n\n\t}",
"public interface Observer <T> {\n /**\n * The method that is called by the notify method of the Observable classes.\n * @param message The message sent by the notify method of the observable classes.\n */\n void update(T message);\n}",
"public void notifyChangementTour();",
"@Override\r\n\tpublic void sendNotifications() {\n\r\n\t}",
"@Override\n public void update(Observable observable, Object o) {\n javafx.application.Platform.runLater(this::refresh);\n }",
"private void notifyStakeholder(){\n }",
"@Override\n public void notifyObserver() {\n for(Observer o:list){\n o.update(w);\n }\n }",
"@Override\n public void update(Observable observable, Object data) {\n Toast.makeText(this, \"I am notified\" + myBase.getObserver().getValue(), 0).show();\n btn.setText(\"value: \" + myBase.getObserver().getValue());\n\n }",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable p1) {\n\t\t\t\t\t}",
"public void notifyObservers()\n\t{\n\t\tsetChanged();\n\t\tnotifyObservers(new GameWorldProxy(this));\n\t}",
"private void notifyObservors() {\n this.obervors.forEach(Obervor::modelChanged);\n }",
"protected void notifyObservers()\n\t{\n\t Trace.println(Trace.EXEC_PLUS);\n\n\t for (TestGroupResultObserver observer : myObserverCollection)\n\t {\n\t \tobserver.notify(this);\n\t }\n\t}",
"private void setObservers() {\n evaluateDetailVM.isLoading.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n if (evaluateDetailVM.isLoading.get()) {\n showWaitingDialog(true);\n } else {\n showWaitingDialog(false);\n }\n }\n });\n\n evaluateDetailVM.toastMsg.addOnPropertyChangedCallback(new Observable.OnPropertyChangedCallback() {\n @Override\n public void onPropertyChanged(Observable observable, int i) {\n toast(evaluateDetailVM.toastMsg.get());\n evaluateDetailVM.toastMsg.set(null);\n }\n });\n }",
"@Override\r\n\tpublic void sendGeneralNotification() {\n\t\t\r\n\t}",
"@Override // ohos.data.resultset.AbsResultSet\r\n public void notifyChange() {\r\n super.notifyChange();\r\n }",
"@Override\n\tpublic void update(IObservable observable, Object args) {\n\t\tthis.repaint();\n\t}",
"private void observableViewModel() {\n }"
] | [
"0.78026193",
"0.7457492",
"0.73099875",
"0.7301605",
"0.7264649",
"0.70627666",
"0.70627666",
"0.70627666",
"0.7013699",
"0.6937308",
"0.6937308",
"0.6878546",
"0.687384",
"0.68315935",
"0.6820634",
"0.67893344",
"0.67696345",
"0.6753598",
"0.6726934",
"0.67213875",
"0.6712113",
"0.66912985",
"0.6684346",
"0.6633203",
"0.66266567",
"0.65674794",
"0.6561647",
"0.65472215",
"0.65428513",
"0.6529461",
"0.6523832",
"0.6514488",
"0.6507196",
"0.6500707",
"0.649601",
"0.6489488",
"0.6478805",
"0.6478478",
"0.6477719",
"0.6477719",
"0.6473099",
"0.6432229",
"0.64278513",
"0.6422794",
"0.6418589",
"0.63896525",
"0.6387271",
"0.63865376",
"0.6382296",
"0.6363104",
"0.63630974",
"0.6357193",
"0.63564634",
"0.6327708",
"0.6327648",
"0.6307195",
"0.6303976",
"0.6298861",
"0.62933046",
"0.6288017",
"0.62588376",
"0.62446386",
"0.6232964",
"0.6203418",
"0.6187666",
"0.61873484",
"0.6173345",
"0.61702704",
"0.6170201",
"0.61701995",
"0.61533606",
"0.6152232",
"0.6146657",
"0.6140494",
"0.6123618",
"0.61225426",
"0.6108711",
"0.61019295",
"0.6100104",
"0.6075243",
"0.60669196",
"0.60613483",
"0.6045137",
"0.60400844",
"0.60329163",
"0.60173535",
"0.6017131",
"0.6015622",
"0.60075575",
"0.6003738",
"0.5995481",
"0.5981425",
"0.59793353",
"0.597799",
"0.5977686",
"0.597605",
"0.5974429",
"0.5973081",
"0.5967037",
"0.59663725",
"0.5962525"
] | 0.0 | -1 |
Gets the current callback. | public TransitionalCssPropertyCallback<T> getCallback(){
return callback;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static Handler getCallbackHandler() {\n return sCallbackHandler;\n }",
"EventCallbackHandler getCallbackHandler();",
"DeliverTask getCallback()\n {\n synchronized (m_lock)\n {\n return m_callback;\n }\n }",
"public CommandInvokedCallback getCommandInvokedCallback() {\n return commandInvokedCallback;\n }",
"public Callback mo16235a() {\n return (Callback) this.f8227a.get();\n }",
"public final AbstractC32522b<Boolean, Unit> getOnCallBack() {\n return this.onCallBack;\n }",
"@Nullable\n protected AuthCallback getCallback() {\n return callback;\n }",
"@Override\r\n\tpublic CallbackApi getCallbackApi() {\r\n\t\treturn this;\r\n\t}",
"public SendedCallback getSendedCallback() {\n return sendedCallback;\n }",
"public boolean isCallback() {\n return callback;\n }",
"public abstract RemoteCallback<?> getRemoteCallback();",
"public FlowTableOperationsContext callback() {\n return callback;\n }",
"public KeyguardUpdateMonitorCallback getKeyguardCallback() {\n if (this.mUpdateMonitorCallback == null) {\n this.mUpdateMonitorCallback = new BaseKeyguardCallback();\n }\n return this.mUpdateMonitorCallback;\n }",
"public Call getCurrentCall();",
"public Map<String, Callback> getCallbacks() {\n return callbacks;\n }",
"public OpenCompositionFragmentCallbackListener getListener() {\n return listener;\n }",
"public void callback();",
"public ArrayList getCallbackListeners() {\n return statusCbL;\n }",
"public void callback() {\n }",
"public ColorCallback<DatasetContext> getColorCallback() {\n\t\treturn colorCallback;\n\t}",
"public CharSequence getCallbackUrl()\n\t{\n\t\treturn getCallbackUrl(true);\n\t}",
"public interface ICallBAck {\n void getCallback();\n }",
"private ConnectivityManager.NetworkCallback getNetworkCallback() {\n return new NetworkRequestCallback();\n }",
"public UCallbackListener\t\tgetUCallbackListener(String tag);",
"public String callbackUrl() {\n return callbackUrl;\n }",
"public int getCurrentStateHandler() {\n return _currentStateHandler;\n }",
"String getHookCurrent()\n {\n return hookCurrent;\n }",
"String getCaller();",
"public ActivityListener getListener() {\n\t\treturn logger.getConfiguration().getActivityListener();\n\t}",
"public final FontCallback<DatasetContext> getFontCallback() {\n\t\treturn fontCallback;\n\t}",
"public ArrayList<TweenCallback> getCallbacks()\n\t{\n\t\treturn callbacks;\n\t}",
"public UCallbackListener\t\tgetUCallbackListener(String tag)\n\t{\n\t\treturn (UCallbackListener)tab.get(tag);\n\t}",
"String getCalled();",
"public Object currentEvent() {\n\t\treturn processingState.currentEvent();\n\t}",
"public abstract EnvioMensajesCallBackInterface getInterfaceCallback();",
"@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}",
"@Nullable\n public RendererCallback getRenderCallback() {\n return mRenderCallback;\n }",
"public interface Callback {\n public static final int TYPE_REGULAR = 0;\n public static final int TYPE_DRAFT = 1;\n public static final int TYPE_TRASH = 2;\n\n /**\n * Called when the specified mailbox does not exist.\n */\n public void onMailboxNotFound(boolean firstLoad);\n\n /**\n * Called when the user wants to open a message.\n * Note {@code mailboxId} is of the actual mailbox of the message, which is different from\n * {@link MessageListFragment#getMailboxId} if it's magic mailboxes.\n *\n * @param messageId the message ID of the message\n * @param messageMailboxId the mailbox ID of the message.\n * This will never take values like {@link Mailbox#QUERY_ALL_INBOXES}.\n * @param listMailboxId the mailbox ID of the listbox shown on this fragment.\n * This can be that of a magic mailbox, e.g. {@link Mailbox#QUERY_ALL_INBOXES}.\n * @param type {@link #TYPE_REGULAR}, {@link #TYPE_DRAFT} or {@link #TYPE_TRASH}.\n */\n public void onMessageOpen(long messageId, long messageMailboxId, long listMailboxId,\n int type);\n\n /**\n * Called when an operation is initiated that can potentially advance the current\n * message selection (e.g. a delete operation may advance the selection).\n * @param affectedMessages the messages the operation will apply to\n */\n public void onAdvancingOpAccepted(Set<Long> affectedMessages);\n\n /**\n * Called when a drag & drop is initiated.\n *\n * @return true if drag & drop is allowed\n */\n public boolean onDragStarted();\n\n /**\n * Called when a drag & drop is ended.\n */\n public void onDragEnded();\n }",
"public Call getCall() {\n\treturn call;\n }",
"public JmsRequestorListener getListener() {\n return listener;\n }",
"public Listener getListener() {\n return listener;\n }",
"@Nullable\n public P getListener() {\n return mListener;\n }",
"public int getDispatchPointer() \n {\n return NativeMethodBroker.getDispatchPointer(clientSite);\n }",
"@Override\n public Listener<T> getListener() {\n List<ProcessorNode> nodes = getProcessorChain();\n if(nodes != null && !nodes.isEmpty()){\n return nodes.get(0).getListener();\n }else if(getConsumer() != null){\n return getConsumer().getListener();\n }\n return null;\n }",
"public SoSensorCB getFunction() { return func; }",
"public final Object getCurrent()\n\t{\n\t\treturn getCapture();\n\t}",
"public ColorCallback<DatasetContext> getHoverColorCallback() {\n\t\treturn hoverColorCallback;\n\t}",
"Message getCurrentMessage();",
"public interface Callback {\n }",
"public String toAPICallbackEvent() {\n if (sdkNotificationEvent == null) {\n return apiCallbackEvent;\n }\n return sdkNotificationEvent.getApiValue();\n }",
"public Function getFunction()\n\t{\n\t\treturn function;\n\t}",
"public abstract ErrorCallback<?> getErrorCallback();",
"@NonNull\n protected final List<Pair<PlayerCallback, Executor>> getCallbacks() {\n List<Pair<PlayerCallback, Executor>> list = new ArrayList<>();\n synchronized (mLock) {\n list.addAll(mCallbacks);\n }\n return list;\n }",
"public boolean isCallbackSet() {\n\t\treturn getParameter(\"callback\") != null;\n\t}",
"public Handler getHandler(Handler.Callback callback) {\n return new Handler(this.mService.mHandlerThread.getLooper(), callback);\n }",
"public int getCurrentOffset () {\n if (SwingUtilities.isEventDispatchThread()) {\n return getCurrentOffset_();\n } else {\n final int[] ln = new int[1];\n try {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n ln[0] = getCurrentOffset_();\n }\n });\n } catch (InvocationTargetException ex) {\n ErrorManager.getDefault().notify(ex.getTargetException());\n } catch (InterruptedException ex) {\n // interrupted, ignored.\n }\n return ln[0];\n }\n }",
"public String getCurrentMessage() { return currentMessage; }",
"public String getCurrentMethodName () {\n String currentMethod = getCurrentElement(ElementKind.METHOD);\n if (currentMethod == null) return \"\";\n else return currentMethod;\n }",
"public static String getCurrentMethodName() {\n\t\tStackTraceElement stackTraceElements[] = (new Throwable()).getStackTrace();\n\t\tString fullString = stackTraceElements[1].toString();\n\t\tint stringEnd = fullString.indexOf('(');\n\t\tString fullName = fullString.substring(0, stringEnd);\n\t\tint start = fullName.lastIndexOf('.') + 1;\n\t\tString methodName = fullName.substring(start);\n\n\t\treturn methodName;\n\t}",
"public interface Callback {\n void onExpanded(boolean z);\n\n void onInteraction();\n\n void onPrioritySettings();\n }",
"public Command getCurrentCommand();",
"@Override\n\tpublic void onCallback() {\n\t\t\n\t}",
"public Runnable getCallbackOnPartitionsAssigned() {\n return callbackOnPartitionsAssigned;\n }",
"@Override\n\tpublic void callback() {\n\t}",
"interface MyCallBack {\n\tpublic void onComplete(); \n}",
"public String getListener(int i)\r\n { return this.history.get(i).listener;\r\n }",
"public static HystrixCommandKey getCurrentThreadExecutingCommand() {\n if (currentCommand == null) {\n // statics do \"interesting\" things across classloaders apparently so this can somehow be null ... \n return null;\n }\n return currentCommand.get().peek();\n }",
"public Prompt getCurrent() {\n\t\t\treturn current;\n\t\t}",
"@Override\r\n\tprotected IMetaioSDKCallback getMetaioSDKCallbackHandler()\r\n\t{\n\t\treturn null;\r\n\t}",
"String getHubCallbackUri();",
"public TrackingEditDialogButtonListener getListener() {\n\t\treturn listener;\n\t}",
"public long getCurrent() {\n return current;\n }",
"public DeliverTask getCallback(final Thread thread, final DeliverTask defaultCallback)\n {\n synchronized (m_lock)\n {\n if (thread instanceof PooledThread)\n {\n return ((PooledThread) thread).getCallback();\n }\n\n return defaultCallback;\n }\n }",
"public SimpleAsyncCallback<String> getEditResourceImageAysncCallback() {\n\t\treturn editResourceImageAysncCallback;\n\t}",
"public String getFunctionReturnWatcherClass()\n {\n return functionReturnWatcherClass;\n }",
"public List<AnimationCallback> getAnimationCallbacks() {\n return callbacks;\n }",
"public String getFun() {\n return fun;\n }",
"private String m80397c() {\n String onSendView = onSendView();\n ZHPagerAdapter eVar = this.f57210b;\n if (eVar == null) {\n return onSendView;\n }\n Fragment currentPrimaryItem = eVar.getCurrentPrimaryItem();\n return currentPrimaryItem instanceof PagerFragmentCallback ? ((PagerFragmentCallback) currentPrimaryItem).onSendView() : onSendView;\n }",
"public static String getCurrentMethodName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getMethodName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=getStackTrace s1=getCurrentMethodName s2=run\n\t\treturn s2;\n\t}",
"public static abstract interface M0_callbackPtr {\n\n public abstract int handler();\n }",
"public Object getDelegate() {\n\t\treturn this.delegate;\n\t}",
"public JComboBox<String> getAnswerTypeCb() {\r\n\t\treturn answerTypeCb;\r\n\t}",
"Handler getHandler() {\n return getEcologyLooper().getHandler();\n }",
"public interface Callback {\n void call();\n}",
"public POGOProtos.Rpc.CombatActionProto getCurrentAction() {\n if (currentActionBuilder_ == null) {\n return currentAction_ == null ? POGOProtos.Rpc.CombatActionProto.getDefaultInstance() : currentAction_;\n } else {\n return currentActionBuilder_.getMessage();\n }\n }",
"public interface Callback {\n public void click();\n }",
"protected String getCurrentCode() {\n IDocument doc = EditorUtilities.getDocument(editor);\n if (doc != null) {\n return doc.get();\n }\n return null;\n }",
"@Test\n public void getCallbackTest() {\n final String callbackId = startCallbackTest();\n\n Callback callback = callbackRepository.findByCallbackId(callbackId);\n assertNotNull(callback);\n assertEquals(callback.getStatus(), StatusEnum.NOT_STARTED.toString());\n\n GetStatusResponse getStatusResponse = callbackApiService.getCallbackStatus(callbackId);\n\n assertEquals(getStatusResponse.getStatus(), callback.getStatus());\n assertEquals(getStatusResponse.getBody(), getStatusResponse.getBody());\n assertEquals(getStatusResponse.getDetail(), getStatusResponse.getDetail());\n }",
"public MediaPlayer.OnCompletionListener getOnCompletionListener() {\n return completionListener;\n }",
"public interface Callback {\n\n void call();\n\n}",
"public Name getFunctionReturnWatcherClassName()\n {\n assert functionReturnWatcherClassName != null;\n return functionReturnWatcherClassName;\n }",
"ListenerMethod getListenerMethod();",
"@Override\n public CallContext getCallContext() {\n return this.context;\n }",
"protected String xCB() { return PersistentEventCB.class.getName(); }",
"public AsyncHandler getAsyncHandler() {\n return asyncHandler;\n }",
"private Callback[] getCallbacks()\n throws LoginException\n {\n if ( callbackHandler == null ) {\n throwLoginException( \"No CallbackHandler Specified\" );\n }\n\n Callback[] callbacks;\n if ( isIdentityAssertion ) {\n callbacks = new Callback[1];\n } else {\n callbacks = new Callback[2];\n callbacks[1] = new PasswordCallback( \"password: \", false );\n }\n callbacks[0] = new NameCallback( \"username: \" );\n\n try {\n callbackHandler.handle( callbacks );\n } catch ( IOException e ) {\n throw new LoginException( e.toString() );\n } catch ( UnsupportedCallbackException e ) {\n throwLoginException( e.toString() + \" \" + e.getCallback().toString() );\n }\n\n return callbacks;\n }",
"public static String currentMethodName() {\n String fm = CURRENT_TEST.get();\n if (fm != null) {\n return fm;\n } else {\n return \"<no current test>\";\n }\n }",
"public String getParentCall() {\n return parentCall;\n }",
"public int getHandler() {\n\t\treturn 1;\n\t}",
"protected String xCB() { return ScheduledJobCB.class.getName(); }"
] | [
"0.69261575",
"0.6849191",
"0.6781825",
"0.66085273",
"0.6585254",
"0.6530468",
"0.647774",
"0.64288545",
"0.62839216",
"0.6246148",
"0.62369376",
"0.6224376",
"0.6207508",
"0.61992925",
"0.6137155",
"0.58574444",
"0.58118945",
"0.58004975",
"0.57365006",
"0.5727878",
"0.5725252",
"0.5695879",
"0.5647194",
"0.5582485",
"0.5571705",
"0.5506839",
"0.5504689",
"0.5503549",
"0.55030996",
"0.5487707",
"0.5482518",
"0.5471441",
"0.54628485",
"0.5402057",
"0.5392731",
"0.5371948",
"0.5369029",
"0.53568333",
"0.5330896",
"0.5323036",
"0.53109616",
"0.5288352",
"0.52797645",
"0.52653533",
"0.52547824",
"0.5223643",
"0.5212602",
"0.5199368",
"0.51976544",
"0.519749",
"0.51562726",
"0.51501215",
"0.5145347",
"0.51258874",
"0.5122466",
"0.51103854",
"0.51084584",
"0.5107783",
"0.5105976",
"0.5093432",
"0.50923514",
"0.5079078",
"0.50570285",
"0.5056344",
"0.5050016",
"0.504521",
"0.5042937",
"0.50420505",
"0.50279105",
"0.50201154",
"0.5007661",
"0.5004427",
"0.5001334",
"0.50002307",
"0.49777406",
"0.49752915",
"0.49611777",
"0.49453744",
"0.49450403",
"0.494499",
"0.49447197",
"0.49418795",
"0.49286652",
"0.49192038",
"0.48923385",
"0.48892954",
"0.4886643",
"0.48857853",
"0.48853987",
"0.48810163",
"0.4871655",
"0.48648652",
"0.48504132",
"0.48501402",
"0.484838",
"0.48396087",
"0.4839007",
"0.48384532",
"0.48270905",
"0.48200908"
] | 0.5685621 | 22 |
Gets the current progress of the transition. | public double getTransition(){
return transition;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getProgress();",
"public int getProgress() {\n return Math.round(mProgress);\n }",
"public int getProgress() {\n\t\treturn mProgress;\n\t}",
"public int progress() {\n return _progress;\n }",
"public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }",
"public String getProgress() {\n return this.progress;\n }",
"public int getStateProgress() {\n return theStateProgress;\n }",
"public int getProgress() {\n\t\treturn activeQuest.getThreshold() - getRemaining();\n\t}",
"public DoubleExpression getProgress()\n {\n return progress;\n }",
"public Progress progress() {\n return _progress;\n }",
"@Override\n\tpublic int estimateCurrentProgress() {\n\t\treturn counter.getCurrent();\n\t}",
"public float getProgress() {\n // Depends on the total number of tuples\n return 0;\n }",
"@FloatRange(from = 0, to = 1) float getProgress();",
"public float getProgressDelta() {\n return mProgressDelta;\n }",
"public float getProgressDelta() {\n return mProgressDelta;\n }",
"public float getProgress() {\r\n\t\treturn ((float) dDownloaded / dFileSize);\r\n\t}",
"public int getProgress() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return -1;\n \n int num = (int)((System.currentTimeMillis()-startTime)*100/d);\n if(num>=100) num=99;\n return num;\n }",
"@Override\n public float getProgress() throws IOException {\n return in.getProgress();\n }",
"public float getProgress() {\r\n if (start == end) {\r\n return 0.0f;\r\n } else {\r\n return Math.min(1.0f, (pos - start) / (float)(end - start));\r\n }\r\n }",
"public float getProgress() throws IOException {\n return currentRow / (endRow - header);\n }",
"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 }",
"public double getProgressFraction() {\n return (double) schedule.getSteps() / config.getSimulationIterations();\n }",
"public int getProgress(){\n return -1;\n }",
"public Double getProgressPercent();",
"private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.Progress getProgress() {\n return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_;\n }",
"public Double getProgress() {\r\n\treturn progress;\r\n}",
"public float getProgress() throws IOException {\r\n\t\tif (start == totalend) {\r\n\t\t\treturn 0.0f;\r\n\t\t} else {\r\n\t\t\treturn Math.min(1.0f, ((getFilePosition() - start) + finishLen) / (float) totalend);\r\n\t\t}\r\n\t}",
"public final long getCurrentProgress() {\n /*\n r9 = this;\n int r0 = r9.getState()\n r1 = 1\n r2 = 0\n if (r0 == r1) goto L_0x0012\n r1 = 2\n if (r0 == r1) goto L_0x0019\n r1 = 3\n if (r0 == r1) goto L_0x0014\n r1 = 4\n if (r0 == r1) goto L_0x0014\n L_0x0012:\n r0 = r2\n goto L_0x0032\n L_0x0014:\n long r0 = r9.getTargetProgress()\n goto L_0x0032\n L_0x0019:\n java.lang.String r0 = \"current_value\"\n long r0 = r9.getLong(r0)\n java.lang.String r4 = \"quest_state\"\n long r4 = r9.getLong(r4)\n r6 = 6\n int r8 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))\n if (r8 == 0) goto L_0x0032\n java.lang.String r4 = \"initial_value\"\n long r4 = r9.getLong(r4)\n long r0 = r0 - r4\n L_0x0032:\n java.lang.String r4 = \"MilestoneRef\"\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 >= 0) goto L_0x003e\n java.lang.String r0 = \"Current progress should never be negative\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n r0 = r2\n L_0x003e:\n long r2 = r9.getTargetProgress()\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 <= 0) goto L_0x004f\n java.lang.String r0 = \"Current progress should never exceed target progress\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n long r0 = r9.getTargetProgress()\n L_0x004f:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.games.quest.zzb.getCurrentProgress():long\");\n }",
"public com.clarifai.grpc.api.Progress getProgress() {\n if (progressBuilder_ == null) {\n return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_;\n } else {\n return progressBuilder_.getMessage();\n }\n }",
"int getProgress(int index);",
"int getProgress(int index);",
"int getProgress(int index);",
"public GameState getGameProgress() {\r\n return gameProgress;\r\n }",
"public Long getProgressDone();",
"@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\n\t}",
"@Override\n\t\tpublic float getProgress() throws IOException {\n\t\t\treturn 0;\n\t\t}",
"com.google.dataflow.v1beta3.ProgressTimeseries getProgress();",
"String getProgressString();",
"public static float getReadProgress() {\n\t\treturn mrpl.getPercentComplete();\n\t}",
"public java.util.List<java.lang.Integer>\n getProgressList() {\n return progress_;\n }",
"public java.util.List<java.lang.Integer>\n getProgressList() {\n return progress_;\n }",
"public java.util.List<java.lang.Integer>\n getProgressList() {\n return progress_;\n }",
"public Long getProgressTotalToDo();",
"public int uploadingProgressBarGetRate() {\n return uploadingProgressBar.getProgress();\n }",
"@Override\n public Progress getProgress() {\n if (NO_KEYS.equals(range)) {\n return Progress.from(0, 0);\n }\n\n // If we are attempting to get the backlog without processing a single key, we return [0,1]\n if (lastAttemptedKey == null) {\n return Progress.from(0, 1);\n }\n\n // Return [1,0] if the last attempted key was the empty key representing the end of range for\n // all ranges or the last attempted key is beyond the end of the range.\n if (lastAttemptedKey.isEmpty()\n || !(range.getEndKey().isEmpty() || range.getEndKey().compareTo(lastAttemptedKey) > 0)) {\n return Progress.from(1, 0);\n }\n\n double workCompleted = range.estimateFractionForKey(lastAttemptedKey);\n return Progress.from(workCompleted, 1 - workCompleted);\n }",
"public int getProgress() {\r\n\t\tint progress = Math.round((float)mMax * mProgressDegrees / mTotalCircleDegrees);\r\n\t\treturn progress;\r\n\t}",
"public int getPrintProgress(){\n\t\treturn printProgress;\n\t}",
"public synchronized float getProgressFloat() {\n BigDecimal bigDecimal = BigDecimal.valueOf(mProgress);\n return bigDecimal.setScale(mScale, BigDecimal.ROUND_HALF_UP).floatValue();\n }",
"public DoubleBinding progressProperty() {\n return progress;\n }",
"public JobProgress getJobProgress() {\n return this.jobProgress;\n }",
"public int getProgressColor() {\n\t\treturn mProgressPaint.getColor();\n\t}",
"public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }",
"public ResultStatus getExecutionProgressStatus();",
"int getProgressCount();",
"int getProgressCount();",
"int getProgressCount();",
"public int getOverallProgressPercent() {\n return overallProgressPercent;\n }",
"public com.clarifai.grpc.api.ProgressOrBuilder getProgressOrBuilder() {\n if (progressBuilder_ != null) {\n return progressBuilder_.getMessageOrBuilder();\n } else {\n return progress_ == null ?\n com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_;\n }\n }",
"@Override\n public double getTransitionValue() {\n return value.doubleValue();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"public int getProgressCount() {\n return progress_.size();\n }",
"protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}",
"public Double getVolumeProgress() {\n return this.volumeProgress;\n }",
"public float getSyncStatus() {\n Object o = gemFileState.get(STATE_SYNC_PROGRESS);\n if (o == null) {\n return 1;\n }\n float process = 1;\n try {\n process = Float.parseFloat((String) o);\n } catch (Exception e) {\n\n }\n return process;\n }",
"public static ProgressView getProgress(){\n\n progress = new ProgressView();\n\n return progress;\n }",
"String progressMessage();",
"public File getProgressData() {\n return progressData;\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.ProgressOrBuilder getProgressOrBuilder() {\n return getProgress();\n }",
"public int getRehearsalProgress(String sessionID) throws RemoteException;",
"public int getProgression(int channel) {\n\t\treturn chan[channel].progression;\n\t}",
"public ProgressIndicator getProgressIndicator() {\n return progressIndicator;\n }",
"public void progressMade();",
"public ProgressBar getProgressBar() {\n\t\treturn this.progressBar;\n\t}",
"public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }",
"public double progress() {\n if (damage <= 0) {\n return damage;\n }\n double n = noise.nextValue();\n damage = damage + (k * damage * damage) + l + n;\n return damage;\n }",
"public float getBugReportProgress() {\n return (float) mBugReportProgress.get();\n }",
"@NotNull\n ProgressIndicator getProgressIndicator();",
"public AdvancementProgress getAdvancementProgress ( Advancement advancement ) {\n\t\treturn extract ( handle -> getAdvancementProgress ( advancement ) );\n\t}",
"public Transition getCurrentTransition () {\n return ttb.getCurrentTransition();\n }",
"public View getPreviewDelayProgress() {\n return this.mPreviewDelayProgress;\n }",
"@Override\n\tpublic Progress[] getProgress() {\n\t\treturn new Progress[] {new ProgressImpl(idx+1,docElements.size(), Progress.ENTITIES)};\n\t}",
"public double getPercentCompleted() {\n\t\treturn -1;\n\t}",
"public java.util.List<java.lang.Integer>\n getProgressList() {\n return java.util.Collections.unmodifiableList(progress_);\n }",
"public java.util.List<java.lang.Integer>\n getProgressList() {\n return java.util.Collections.unmodifiableList(progress_);\n }",
"public java.util.List<java.lang.Integer>\n getProgressList() {\n return java.util.Collections.unmodifiableList(progress_);\n }",
"public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}",
"double progress(double val)\n\t{\n\t\treturn val * linkDirection;\n\t}",
"public OutputProgressModel getOutputProgressModel() {\r\n return outputProgressModel;\r\n }"
] | [
"0.7913237",
"0.7853281",
"0.7835135",
"0.78201586",
"0.77461636",
"0.77370304",
"0.76614356",
"0.7639509",
"0.7603702",
"0.75544125",
"0.74871546",
"0.7391795",
"0.7358085",
"0.73436475",
"0.73436475",
"0.73331165",
"0.73261815",
"0.7315185",
"0.7185073",
"0.71806484",
"0.7179605",
"0.7128338",
"0.7105538",
"0.70978004",
"0.7088544",
"0.7070987",
"0.7070987",
"0.7070987",
"0.7069654",
"0.7069654",
"0.7069654",
"0.70632446",
"0.7050851",
"0.7010965",
"0.7005301",
"0.7002939",
"0.6962846",
"0.6962846",
"0.6962846",
"0.6917208",
"0.68942815",
"0.68756074",
"0.68756074",
"0.67925596",
"0.6784617",
"0.6699378",
"0.66829324",
"0.66132534",
"0.66132534",
"0.66132534",
"0.65610343",
"0.65276515",
"0.652299",
"0.6514449",
"0.6471733",
"0.6460477",
"0.64546204",
"0.6436621",
"0.642942",
"0.64281356",
"0.6423752",
"0.64095366",
"0.64095366",
"0.64095366",
"0.64034706",
"0.63992196",
"0.63904446",
"0.6341377",
"0.6341377",
"0.6341377",
"0.6331684",
"0.6331684",
"0.6331684",
"0.6327355",
"0.631395",
"0.62906784",
"0.6230203",
"0.6226576",
"0.6222073",
"0.6210671",
"0.62103194",
"0.6190373",
"0.61792815",
"0.61750156",
"0.61599064",
"0.6157616",
"0.6118911",
"0.6111127",
"0.6110905",
"0.61092246",
"0.60956126",
"0.60737413",
"0.6067489",
"0.6053728",
"0.6041234",
"0.6041234",
"0.6041234",
"0.60109377",
"0.599437",
"0.59924054"
] | 0.6475064 | 54 |
retrieve the Tile Letter | public char getLetter() {
return letter;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTile(int row, int column)\n {\n return tiles.get(row).get(column).getLetter(); \n }",
"public Tile getTile(Character letter) {\r\n int index;\r\n Tile returnedTile;\r\n if(isAvailable(letter)) {\r\n index = frame.indexOf(new Tile(letter));\r\n returnedTile = frame.get(index);\r\n }\r\n else //if we want to return blank instead of unavailable letter\r\n {\r\n index = frame.indexOf(new Tile('_'));\r\n returnedTile = frame.get(index);\r\n returnedTile.setBlankAs(letter);\r\n }\r\n return returnedTile;\r\n }",
"public void getTile_B8();",
"public char getTileRepresentation(int x, int y) {\n MapTile tile_at_x_y = this.getTile(x, y);\n if (tile_at_x_y == null) {\n return ' ';\n } else {\n return tile_at_x_y.getTopCharacter();\n }\n }",
"public Tile accessByLetter (char checkedCharacter) {\r\n if (this.isAvailable(checkedCharacter))\r\n return frame.get(atWhichIndex(checkedCharacter));\t//frame.get(accessTileByIndex(atWhichIndex(checkedCharacter)));\r\n else return null;\r\n }",
"public char getLetter()\n {\n \treturn letter;\n }",
"public char getLetter()\n\t{\n\t\treturn letter;\n\t}",
"public char getLetter() {\n return letter;\n }",
"long getLetterId();",
"long getLetterId();",
"public char getLetter(){\r\n\t\treturn letter;\r\n\t}",
"public int getTile(int x, int y)\n {\n return tilemap[x][y];\n }",
"public char displayChar(){\r\n if(hit){\r\n if(ship != null){\r\n if(ship.isSunk()){\r\n return SUNK_SHIP_SECTION;\r\n }else{\r\n return HIT_SHIP_SECTION;\r\n }\r\n }else{\r\n return HIT_WATER;\r\n }\r\n }else {\r\n if (ship == null) {\r\n return PRISTINE_WATER;\r\n }else{\r\n return HIDDEN_SHIP_SECTION;\r\n }\r\n }\r\n }",
"public Tile getTileAt(Position p);",
"public String getLetter() {\n return letter;\n }",
"public char getLetter() {\r\n\t\t\treturn letter;\r\n\t\t}",
"public int getTileX()\n\t{\n\t\treturn this.tileX;\n\t}",
"public abstract Tile getTileAt(int x, int y);",
"public Tile getTile() { return tile; }",
"String getRune_lit();",
"public BoardTile getTile(int column, int row) {\r\n return tiles[column][row];\r\n }",
"char getContactLetter(ContactSortOrder sortOrder);",
"public Tile getTile() {\n return _tile;\n }",
"private Tile getTileAt(int row, int col) {\n return getTiles()[row][col];\n }",
"String getTileType();",
"char getContactLetter();",
"public char getMark(int row, int col) {\n\t\treturn theBoard[row][col];\n\t}",
"public Tile getTile() {\n\t\treturn tile;\n\t}",
"public Tile(char letter) {\n\t\tthis.letter = letter;\n\t\tactive = false;\n\t}",
"public Letter getLetter(Character c) {\n return get(c);\n }",
"@Override\n\tpublic char getDisplayChar() {\n\t\tPrintable thing;\n\t\t\n\t\tif(this.containsAnActor()) \n\t\t\tthing = this.getActor();\n\t\telse if (items.size() > 0)\n\t\t\tthing = items.get(items.size() - 1);\n\t\telse\n\t\t\tthing = ground;\n\t\t\n\t\treturn thing.getDisplayChar();\n\t}",
"private char hallarLetra() {\r\n\t\tchar[] letra= {'T','R','W','A','G','M','Y','F','P','D','X',\r\n\t\t\t\t\t'B','N','J','Z','S','Q','V','H','L','C','K','E'};\r\n\t\treturn letra[numeroDNI%23];\r\n\t}",
"public int getGroup(char letter);",
"public char getLetterGrade() {\r\n\t\treturn letter;\r\n\t}",
"public int getTileX() {\n\t\treturn tileX;\n\t}",
"private String decideLetter(Cell c) {\n String s = \"\";\n if (!c.getHasBoat() && !c.getShotAt()) {\n s = \"-\";\n } else if (!c.getHasBoat() && c.getShotAt()) {\n s = \"M\";\n } else if (c.getHasBoat() && !c.getShotAt()) {\n s = \"B\";\n } else {\n s = \"H\";\n }\n return s;\n }",
"public int getTile(int t) {\n switch (t) {\n case HARDFLOOR: return hardfloors[type];\n case HARDWALL: return hardwalls[type];\n case SOFTFLOOR: return softfloors[type];\n case SOFTWALL: return softwalls[type];\n case STREAM: return streams[type];\n case RIVER: return rivers[type];\n } \n return Tile.WALL;\n }",
"CharacterInfo getCharacter();",
"com.vine.vinemars.net.pb.SocialMessage.LetterObj getLetters(int index);",
"public DungeonObject getDungeonTile(int x, int y) {\n\t\treturn dungeonRoom[x][y];\r\n\t}",
"public String getLetter() {\n\t\tString letter;\n\t\tletter = JOptionPane.showInputDialog(getFrame(), \"Enter the name of the Node,then press anywhere on the screen to locate the Node\");\n\t\twhile(letter==null || letter.equals(\"\")){\n\t\t\tletter = JOptionPane.showInputDialog(getFrame(), \"Enter the name of the Node,then press anywhere on the screen to locate the Node\");\n\t\t\t\n\t\t}\n\t\t\n\t\treturn letter.toUpperCase();\n\t}",
"private int[] addRandomLetter(String[][] level, String l) throws Exception{\r\n\t\t\r\n\t\tl = l.substring(0, 1); // FIX TO AVOID CRASHING\r\n\t\tfor(int i = 0; i<300; i++){\r\n\t\t\t// Start at a random tile\r\n\t\t\tint x = rng.nextInt(6);\r\n\t\t\tint y = rng.nextInt(6);\r\n\t\t\r\n\t\t\tif(level[x][y] == \"_\"){\r\n\t\t\t\t// If blank, just put in the char\r\n\t\t\t\tlevel[x][y] = l;\r\n\t\t\t\tint[] ret = {x,y};\r\n\t\t\t\treturn ret;\r\n\t\t\t} \r\n\t\t}\r\n\t\tthrow new Exception(\"Letter could not be placed\");\r\n\t\t\r\n\t}",
"public Tile getTile(int x, int y, int z) {\r\n\t\treturn map.getTile(x, y, z);\r\n\t}",
"public char group_mlx_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"public char group_mlx_GET()\n { return (char)((char) get_bytes(data, 8, 1)); }",
"String getBoardString();",
"public char get(final int row, final int col) {\r\n // TODO your job\r\n return mazeData [row][col] ;\r\n\r\n\r\n }",
"public char getGrid(int x ,int y){\n\t\treturn Grid[x][y] ;\n\t}",
"private char getRandomCharacter() {\n int min = 0;\n int max = ALPHABET.length-1;\n int randomPos;\n\n // Could possibly have used ASCII numbers 61-95\n randomPos = min + (int)(Math.random() * ((max - min) + 1));\n\n return ALPHABET[randomPos];\n }",
"private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}",
"private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }",
"public Tile getTile() {\n return tile;\n }",
"public Tile getTile() {\n return tile;\n }",
"@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }",
"public int getTileLevel()\n {\n return tileLevel;\n }",
"protected Tile getTile( Tile[] tiles, int x, int y ) {\n return tiles[ (y * getHeightInTiles()) + x ];\n }",
"public static char getChar(TicTacToe.Cell mark)\n {\n if (mark == TicTacToe.Cell.X)\n return 'X';\n else if ( mark == TicTacToe.Cell.O)\n return 'O';\n else\n return ' ';\n }",
"public Tile getTile(int x, int y){\n\t\tif(x < 0 || y < 0 || x >= width || y >= height){\r\n\t\t\treturn Tile.grassTile;\r\n\t\t}\r\n\t\t\r\n\t\t//tiles[x][y] give us the id and the tiles[id] is the texture\r\n\t\tTile t = Tile.tiles[tiles[x][y]]; \r\n\t\tif(t == null){\r\n\t\t\t//If you try to access undefined tile index, return dirt tile as default\r\n\t\t\treturn Tile.dirtTile; \r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn t;\r\n\t\t}\r\n\t}",
"final Piece get(char col, char row) {\r\n return get(col - 'a', row - '1');\r\n }",
"public Tile getTile(){\n\t\treturn currentTile;\n\t}",
"String getBoard();",
"public ArrayList<Tile> getTiles(String letters) {\r\n ArrayList<Tile> tiles = new ArrayList<>();\r\n Tile tempTile;\r\n for (int i=0; i<letters.length(); i++) {\r\n tempTile = this.getTile(letters.charAt(i));\r\n\r\n /* if(tempTile.isBlank())\r\n tempTile.setBlankAs(letters.charAt(i));*/\r\n\r\n tiles.add(tempTile);\r\n\r\n }\r\n return tiles;\r\n }",
"public Tile getTile(int i, int k) {\n return tiles[i][k];\n }",
"public int getTile(int x, int y)\n {\n try {\n return board[x][y];\n } catch (ArrayIndexOutOfBoundsException e) {\n return EMPTY_FLAG;\n }\n }",
"public AStarCharacter getMyCharacter()\r\n\t{\r\n\t\treturn theGridView.getMyCharacter();\r\n\t}",
"private int[] addLetterAroundPosition(int[] pos, String[][] level, String c) throws Exception{\r\n\t\tfor(int i = 0; i<200; i++){\r\n\t\t\t// Start at a random tile\r\n\t\t\tint x = rng.nextInt(3)-1;\r\n\t\t\tint y = rng.nextInt(3)-1;\r\n\t\t\r\n\t\t\tint newx = pos[0]-x;\r\n\t\t\tint newy = pos[1]-y;\r\n\t\t\t\r\n\t\t\tif(newx < 0 || newx > 5 || newy < 0 || newy > 5){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif(level[newx][newy] == \"_\"){\r\n\t\t\t\t// If blank, just put in the char\r\n\t\t\t\tlevel[newx][newy] = c;\r\n\t\t\t\tint[] ret = {newx,newy};\r\n\t\t\t\treturn ret;\r\n\t\t\t} \r\n\t\t}\r\n\t\tthrow new Exception(\"Letter could not be placed around other tile\");\r\n\t}",
"public String toString(){\r\n\t\treturn \"\" + letter;\r\n\t}",
"public char getCharacter(boolean defender){\n if (defender){\n if (this.is_Empty()){\n return '~';\n }\n else if(this.is_shot()){\n return '*';\n }\n else{\n return 'B';\n }\n }\n else {\n if (!this.is_shot()){\n return '.';\n }\n else if (!this.is_Empty()){\n return '*';\n }\n else {\n return '~';\n }\n }\n }",
"public long getLetterId() {\n return letterId_;\n }",
"public long getLetterId() {\n return letterId_;\n }",
"public long getLetterId() {\n return letterId_;\n }",
"public long getLetterId() {\n return letterId_;\n }",
"private Tile getTileAt(Position p) {\n return getTileAt(p.getRow(), p.getCol());\n }",
"public FloorTile getTileAt(int row, int col) {\n return board[row][col];\n }",
"public FloorTile getTileFromTheBoard(int row, int col) {\r\n return board[row][col];\r\n }",
"public char getGradeLetter() {\n\t\t\n\t\t// get the current overall grade\n\t\tdouble overallAverage = averages[OVERALL];\n\t\t\n\t\t// check its value and return the correct letter\n\t\tif (overallAverage < 60) \n\t\t\treturn 'F';\n\t\telse if (overallAverage < 70) \n\t\t\treturn 'D';\n\t\telse if (overallAverage < 80) \n\t\t\treturn 'C';\n\t\telse if (overallAverage < 90) \n\t\t\treturn 'B';\n\t\telse\n\t\t\treturn 'A';\n\t}",
"TileItem getCurrentTile();",
"private JLabel letterLabel(int j) {\t\n\t\tJLabel label = new JLabel();\n\t\tif (j > 0 && j < 9)\n\t\t\tlabel.setIcon(Icon.returnIcon(Character.toString((char) ('A' + j - 1))));\n\t\t\n\t\tlabel.setOpaque(true);\n\t\tlabel.setBackground(labelBackground);\n\t\t\n\t\treturn label;\n\t}",
"public Tile getTile(int x, int y)\n\t{\n\t\t\n\t\tif(x < 0 || y < 0 || x >= width || y >= height)\n\t\t{\n\t\t\tSystem.out.println(\"wrong\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\t\n\t\tTile t = Tile.tiles[worldTiles[x][y]];\n\t\t// if the tile is null returns dirt on default\n\t\tif(t == null)\n\t\t{\n\t\t\tSystem.out.println(\"null\");\n\n\t\t\treturn Tile.dirt;\n\t\t}\n\t\treturn t;\n\t}",
"public char getLetter(int index) {\n\t\treturn _objMyStringBuilder.getCharAt(index);\n\t}",
"public Character getCharacter(){\n\t\treturn get_character();\n\t}",
"public char getRepresentative_letter(){\n\t\treturn representative_letter;\n\t}",
"public static char getZ() {\n char aChar = 'Y';\n return aChar;\n }",
"public String toString() {\n/* 6387 */ return \"VolaTile [X: \" + this.tilex + \", Y: \" + this.tiley + \", surf=\" + this.surfaced + \"]\";\n/* */ }",
"public static int lookup(char letter) {\n\t\tswitch (letter) {\n\t\tcase 'A':\n\t\t\treturn 0;\n\t\tcase 'R':\n\t\t\treturn 1;\n\t\tcase 'N':\n\t\t\treturn 2;\n\t\tcase 'D':\n\t\t\treturn 3;\n\t\tcase 'C':\n\t\t\treturn 4;\n\t\tcase 'Q':\n\t\t\treturn 5;\n\t\tcase 'E':\n\t\t\treturn 6;\n\t\tcase 'G':\n\t\t\treturn 7;\n\t\tcase 'H':\n\t\t\treturn 8;\n\t\tcase 'I':\n\t\t\treturn 9;\n\t\tcase 'L':\n\t\t\treturn 10;\n\t\tcase 'K':\n\t\t\treturn 11;\n\t\tcase 'M':\n\t\t\treturn 12;\n\t\tcase 'F':\n\t\t\treturn 13;\n\t\tcase 'P':\n\t\t\treturn 14;\n\t\tcase 'S':\n\t\t\treturn 15;\n\t\tcase 'T':\n\t\t\treturn 16;\n\t\tcase 'W':\n\t\t\treturn 17;\n\t\tcase 'Y':\n\t\t\treturn 18;\n\t\tcase 'V':\n\t\t\treturn 19;\n\t\tcase 'B':\n\t\t\treturn 20;\n\t\tcase 'Z':\n\t\t\treturn 21;\n\t\tcase 'X':\n\t\t\treturn 22;\n\t\tcase '*':\n\t\t\treturn 23;\n\t\tcase '|':\n\t\t\treturn 24;\n\t\tcase '.':\n\t\t\treturn 25;\n\n\t\tdefault:\n\t\t\treturn -1;\n\t\t}\n\n\t}",
"public Tile getTile(int x, int y) {\n\t\tif (x < 0 || x >= (this.width / Tile.WIDTH) || y < 0 || y >= (this.height / Tile.HEIGHT)) {\n//\t\t\tSystem.out.println(x + \" \" + y + \" \" + \"comes heere\");\n\t\t\treturn VoidTiled.getInstance();\n\t\t}\n\t\treturn tiles[x + y * (this.width / Tile.WIDTH)];\n\t}",
"Tile getTile() {\n if (tiles.size() == 0) {\n return null;\n } else {\n int randomIndex = ThreadLocalRandom.current().nextInt(0, tiles.size());\n Tile result = tiles.get(randomIndex);\n tiles.remove(randomIndex);\n return result;\n }\n }",
"public Piece getPieceInTile() {\n \r\n return pieceInTile;\r\n }",
"public static BufferedImage getCharacterImage(char c) throws CharacterNotSupportedException{\n int a = (int)'a';\n int o = (int)'o';\n int p = (int)'p';\n int z = (int)'z';\n \n int zero = (int)'0';\n int nine = (int)'9';\n \n int ac = (int)'A';\n int oc = (int)'O';\n int pc = (int)'P';\n int zc = (int)'Z';\n \n int ci = (int)c;\n \n //System.out.print(c);\n \n if(ci>=zero && ci<=nine){ \n for(int i=zero;i<=nine;i++){//from 0 to 9\n int d = i-zero;//difference between i and zero; a number from 0 to nine-zero.\n if(ci == i){\n return font.getImage(new Location(d,3));\n }\n }\n }\n else if(ci>=ac && ci<=zc){\n for(int i=ac;i<=oc;i++){//from A to O\n int d = i-ac;//difference between i and ac. a number from 0 to pc-ac.\n if(ci == i){\n return font.getImage(new Location(d+1,4));\n }\n }\n for(int j=pc;j<=zc;j++){//from P to Z\n int d = j-pc;//difference between j and pc. a number from 0 to zc-pc.\n if(ci == j){\n return font.getImage(new Location(d,5));\n }\n } \n } \n else if(ci>=a && ci<=z){\n for(int i=a;i<=o;i++){\n int d = i-a;//difference between i and a. a number from 0 to p-a.\n if(ci == i){\n return font.getImage(new Location(d+1,6));\n }\n }\n for(int j=p;j<=z;j++){//from p to z\n int d = j-p;//difference between j and p. Number from 0 to z-p.\n if(ci == j){\n return font.getImage(new Location(d,7));\n }\n } \n }\n else if(ci == ' '){//space\n return font.getImage(new Location(0,0));\n }\n else if(ci == ','){\n return font.getImage(new Location(12,2));\n }\n else if(ci == '.'){\n return font.getImage(new Location(14,2));\n }\n else if(ci == '!'){\n return font.getImage(new Location(1,2));\n }\n else if(ci == '\\''){//apostrophe or '\n return font.getImage(new Location(7,2));\n }\n else if(ci == '#'){\n return font.getImage(new Location(3,2));\n }\n else if(ci == '?'){\n return font.getImage(new Location(15,3));\n }\n else if(ci == ':'){\n return font.getImage(new Location(11,3));\n }\n else if(ci == ';'){\n return font.getImage(new Location(12,3));\n }\n \n throw new CharacterNotSupportedException(\"Character \"+c+\" is not supported in StringImage\");\n }",
"public char getSpot(int x,int y){\r\n if(x<0||x>=3||y<0||y>=3){return 7;}\r\n return board[x][y];\r\n }",
"public abstract char getStarterChar();",
"public Tile getTitle(int x, int y) {\n\t\tif (x < 0 || y < 0 || x >= width || y >= height)\n\t\t\treturn Tile.voidTile;\n\n\t\tif (tiles[x + y * width] == 0xFF00FF00)\n\t\t\treturn Tile.grass;\n\t\tif (tiles[x + y * width] == 0xFFFFFF00)\n\t\t\treturn Tile.flower;\n\t\tif (tiles[x + y * width] == 0xFF7F7F00)\n\t\t\treturn Tile.rock;\n\n\t\treturn Tile.voidTile;\n\t}",
"public char getChar();",
"Character getCode();",
"public TileEnum getSelectedTile() {\n return selectedTile;\n }",
"public int getCharacter() {\n return getStat(character);\n }",
"public String getAbbreviationLetter() {\n\t\treturn pieceLetter;\n\t}",
"public int get_char() {\n return local_char;\n }",
"public int letterMask(){\n\t\t\treturn letter_mask;\n\t\t}",
"public static char generateLetter() {\n\t\t\n\t\treturn (char)((int)('A' + Math.random() * ('Z' - 'A' + 1)));\n\t}"
] | [
"0.80676025",
"0.76967424",
"0.68200386",
"0.6656307",
"0.65406775",
"0.6464764",
"0.63953185",
"0.6355637",
"0.6346043",
"0.6346043",
"0.63347524",
"0.62867135",
"0.628254",
"0.627926",
"0.62692493",
"0.6262007",
"0.62459946",
"0.620555",
"0.6145982",
"0.61130553",
"0.60635096",
"0.60483515",
"0.60368544",
"0.60289985",
"0.60178435",
"0.60157734",
"0.6006042",
"0.5996821",
"0.59945744",
"0.59822464",
"0.5980182",
"0.597557",
"0.59546584",
"0.59412336",
"0.59400725",
"0.5930799",
"0.5926097",
"0.59161234",
"0.59159124",
"0.5906181",
"0.5903018",
"0.589554",
"0.588131",
"0.5875082",
"0.5875082",
"0.58748174",
"0.587222",
"0.5871798",
"0.5864591",
"0.5863535",
"0.58596116",
"0.58579594",
"0.58579594",
"0.5849686",
"0.58492446",
"0.58362055",
"0.58327526",
"0.5822308",
"0.5820715",
"0.5816237",
"0.5806549",
"0.57909673",
"0.5790713",
"0.5779718",
"0.5772441",
"0.576545",
"0.575135",
"0.5748548",
"0.57452697",
"0.57452697",
"0.5740436",
"0.5740436",
"0.5739635",
"0.573656",
"0.5731899",
"0.5727509",
"0.5726379",
"0.57207227",
"0.5712261",
"0.5699792",
"0.5692797",
"0.56887305",
"0.5685726",
"0.56634825",
"0.566112",
"0.5644374",
"0.5623504",
"0.56224424",
"0.56217706",
"0.56206065",
"0.56068",
"0.5600231",
"0.5599933",
"0.55965203",
"0.5591307",
"0.5588666",
"0.5575269",
"0.55704236",
"0.5568694",
"0.556744"
] | 0.62761724 | 14 |
Get the Score value of the Tile | public int getValue() {
return value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getScoreValue();",
"public int getScore() {\n return getStat(score);\n }",
"long getScore();",
"long getScore();",
"long getScore();",
"long getScore();",
"public static int getScore()\n {\n return score;\n }",
"int getScore();",
"float getScore();",
"float getScore();",
"public static int getScore(){\n return score;\n }",
"public int getScore ()\r\n {\r\n\treturn score;\r\n }",
"Float getScore();",
"public int getScore() { return score; }",
"public int getScore () {\n return mScore;\n }",
"public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {\r\n return score;\r\n }",
"public int getScore() {return score;}",
"public int getScore()\n {\n return score;\n }",
"public int getScore()\n {\n return currentScore;\n }",
"public int getScore() {\n return this.score;\n }",
"public static int getScore()\n\t{\n\t\treturn score;\n\t}",
"public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public int getScore() {\n return score;\n }",
"public Integer getScore() {\r\n return score;\r\n }",
"public int getScore() {\n return currentScore;\n }",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}",
"public int getScore() {\n\t\treturn (score);\n\t}",
"public int score() {\n return score;\n }",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\r\n\t\treturn score;\r\n\t}",
"public Integer getScore() {\n return score;\n }",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"public int getScore(){\n\t\treturn this.score;\n\t}",
"public int getScore() {\r\n \treturn score;\r\n }",
"@Override\n public int getScore() {\n return score;\n }",
"public int getPlayerScore();",
"public int getScore(){\n\t\treturn score;\n\t}",
"public int getScore(){\n\t\treturn score;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();",
"public abstract float getScore();",
"public java.lang.Integer getScore () {\r\n\t\treturn score;\r\n\t}",
"public int getScore(){\n return this.score;\n }",
"public double getScore() {\r\n return score;\r\n }",
"public int getScore()\n {\n // put your code here\n return score;\n }",
"@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}",
"public int getScore()\n\t{\n\t\treturn this.score;\n\t}",
"public double getScore() {\r\n return mScore;\r\n }",
"public int getScore() {\n\t\treturn this.ScoreValue;\n\t}",
"@Override\n public int getScore() {\n return totalScore;\n }",
"int getScore() {\n return score;\n }",
"public long getScore() {\n return score_;\n }",
"public long getScore() {\n return score_;\n }",
"public int getScore() {\r\n\t\treturn score;\r\n\t}",
"public int getScore() {\r\n\t\treturn score;\r\n\t}",
"public Double getScore() {\n return this.score;\n }",
"public Double getScore() {\n return this.score;\n }",
"public int getScore(){return score;}",
"public int getScore(){return score;}",
"public int getScore()\n {\n return score; \n }",
"public int getScore(){ return this.score; }",
"public final int getScore() {\n\t\treturn score;\n\t}",
"public int getHeuristicScore() {\n \tCell cell=curMap.getCell(nodePos[0], nodePos[1]);\r\n \tint cost=cell.getCost();\r\n \tint[] goal=curMap.getTerminal();\r\n \t//System.out.println(cost);\r\n \tint heuristic=Math.abs(nodePos[0] - goal[0]) + Math.abs(nodePos[1] - goal[1]);\r\n \treturn heuristic + cost;\r\n }",
"public int getScore(){\n\t\treturn playerScore;\n\t}",
"public long getScore() {\n return score_;\n }",
"public long getScore() {\n return score_;\n }",
"public int getScore(){\n \treturn 100;\n }",
"public long getScore(int x)\n {\n return score[x];\n }",
"public int getScore() {\n\t\treturn this.score;\n\t}",
"public int getScorePoints() {\n/* 75 */ return this.scorePoints;\n/* */ }",
"@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}",
"int getHighScore() {\n return getStat(highScore);\n }",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScore() {\n\t\treturn score;\n\t}",
"public int getScoreInt() {\n return scoreInt;\n }",
"public float getScore() {\n return score;\n }",
"public int getScore()\n {\n return points + extras;\n }",
"public int returnPoints()\n {\n return score ;\n }",
"public Long getScore() {\n return score;\n }",
"@Test\r\n public void calculateScore() {\r\n board3.swapTiles(0,0,1,1);\r\n board3.getSlidingScoreBoard().setTime(2);\r\n board3.getSlidingScoreBoard().calculateScore();\r\n assertEquals(496, board3.getSlidingScoreBoard().getScore());\r\n }",
"public double getScore() {\n\t\t\treturn this.score;\n\t\t}",
"public int getHomeScore();",
"public int score()\n {\n if (this.score != Integer.MIN_VALUE)\n return this.score;\n\n this.score = 0;\n if (!this.safe)\n return 0;\n\n // End game bonus\n int bonus = this.d.size() * Math.max(0, (this.L - 3 * this.b.shots)) * 3;\n this.score = (this.d.size() * 100) + ((this.NE - this.e.size()) * 10) + (this.e.size() == 0 ? bonus : 0);\n\n // value:\n return this.score;\n }",
"public Score getScore()\r\n { \r\n return theScore;\r\n }",
"public Score getScore() {\n\t\treturn score;\n\t}",
"public int getTotalScore(){\r\n return totalScore;\r\n }",
"public int score(){\r\n\t\t//to be implemented: should return game score \r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tscore= frames.get(i).score();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn score + bonusGame;\r\n\t}",
"public float getScore() {\r\n\t\treturn score;\r\n\t}",
"public int getScore() {\n System.out.println(\"testing getting store, cur word is:\");\n System.out.println(str);\n System.out.println(locations.size());\n for (Location loc : locations) {\n tileList.add(loc.getTile());\n this.score += loc.getTile().getValue();\n System.out.println(\"adding score\");\n System.out.println(loc.getTile().getLetter());\n System.out.println(loc.getTile().getValue());\n if (loc.getSquare() != null) {\n boolean incurlocations = false;\n for (Location loc2 : curlocations) {\n if (loc2.getX() == loc.getX() && loc2.getY() == loc.getY()) {\n incurlocations = true;\n }\n }\n Square s = loc.getSquare();\n if (s.getType().equals(\"LS\") && incurlocations == true) {\n System.out.println(\"get here score if you are ls\");\n score += (s.getTimer() - 1) * loc.getTileValue();\n }\n }\n }\n for (Location loc : locations) {\n if (loc.getSquare() != null) {\n boolean incurlocations = false;\n for (Location loc2 : curlocations) {\n if (loc2.getX() == loc.getX() && loc2.getY() == loc.getY()) {\n incurlocations = true;\n }\n }\n Square s = loc.getSquare();\n if (s.getType().equals(\"WS\") && incurlocations == true) {\n System.out.println(\"get here score if you are ws\");\n int newScore = loc.getSquare().calculateValue(score);\n System.out.println(newScore);\n score = newScore;\n }\n }\n }\n return this.score;\n }",
"public Float getScore() {\n return score;\n }",
"public int getTotalScore(){\n return totalScore;\n }",
"public Short getScore() {\n return score;\n }",
"public float getScore(){return score;}"
] | [
"0.76616925",
"0.76270115",
"0.7317885",
"0.7317885",
"0.7317885",
"0.7317885",
"0.7313418",
"0.729276",
"0.72891706",
"0.72891706",
"0.72672176",
"0.72420436",
"0.7239214",
"0.72366256",
"0.7234409",
"0.7212521",
"0.72018605",
"0.72018605",
"0.72018605",
"0.7175162",
"0.7172259",
"0.71674186",
"0.7163451",
"0.7163403",
"0.71616966",
"0.71605945",
"0.71605945",
"0.715552",
"0.71530426",
"0.7147712",
"0.7147712",
"0.7145758",
"0.71283066",
"0.71272784",
"0.71272784",
"0.71245915",
"0.7116928",
"0.7116928",
"0.70901453",
"0.7075937",
"0.70740837",
"0.7070864",
"0.7070864",
"0.7066517",
"0.7052939",
"0.7034419",
"0.703203",
"0.70319384",
"0.70314807",
"0.7020718",
"0.7018921",
"0.7011259",
"0.69992137",
"0.69962204",
"0.6986663",
"0.69606274",
"0.69606274",
"0.69562614",
"0.69562614",
"0.6927299",
"0.6927299",
"0.6925471",
"0.6925471",
"0.69217724",
"0.6915372",
"0.6909737",
"0.6908308",
"0.6901026",
"0.6900865",
"0.6900865",
"0.6893398",
"0.6889022",
"0.6882177",
"0.68788755",
"0.6877165",
"0.6873644",
"0.6867813",
"0.6867813",
"0.6867813",
"0.6867813",
"0.6867813",
"0.6867813",
"0.68666005",
"0.68451506",
"0.6833857",
"0.6828412",
"0.68227756",
"0.6821949",
"0.6786967",
"0.6785406",
"0.67834383",
"0.6772255",
"0.67489964",
"0.6738903",
"0.67310315",
"0.67203605",
"0.67189413",
"0.66937983",
"0.668651",
"0.6680714",
"0.667032"
] | 0.0 | -1 |
Determine if the tile is a valid spot to move | public boolean valid() {
if(habitat != 0 && habitat != -1 && minKnight() <= 4 - numKnights)
return true;
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"boolean canMove(Tile t);",
"private boolean isThereValidMove() {\n\t\treturn true;\n\t}",
"public boolean isValidMove(int id) {\n\t\t\n\t\tint position = findPosition(id);\n\t\t\n\t\tboolean valid = false;\n\t\t\n\t\tvalid = valid || ((blankTilePos - 1) == position);\n\t\tvalid = valid || ((blankTilePos + 1) == position);\n\t\tvalid = valid || ((blankTilePos - dimension) == position);\n\t\tvalid = valid || ((blankTilePos + dimension) == position);\n\t\t\n\t\treturn valid;\n\t}",
"boolean legalMove(Move mov) {\n if (mov == null || !validSquare(mov.toIndex())\n || !validSquare(mov.fromIndex())) {\n throw new IllegalArgumentException(\"Illegal move\");\n }\n PieceColor from = get(mov.fromIndex());\n PieceColor to = get(mov.toIndex());\n if (!mov.isJump() && jumpPossible()) {\n return false;\n }\n if (from != _whoseMove) {\n return false;\n } else if (mov.isJump()) {\n return checkJump(mov, false);\n } else if (from == BLACK && row(mov.fromIndex()) == '1') {\n return false;\n } else if (from == WHITE && row(mov.fromIndex()) == '5') {\n return false;\n } else if (mov.isLeftMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Right\");\n } else if (mov.isRightMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Left\");\n } else if (from == BLACK) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.fromIndex() - mov.toIndex() == SIDE\n || mov.fromIndex() - mov.toIndex() == SIDE - 1\n || mov.fromIndex() - mov.toIndex() == SIDE + 1;\n } else {\n return mov.fromIndex() - mov.toIndex() == SIDE && to == EMPTY;\n }\n } else if (from == WHITE) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.toIndex() - mov.fromIndex() == SIDE\n || mov.toIndex() - mov.fromIndex() == SIDE + 1\n || mov.toIndex() - mov.fromIndex() == SIDE - 1;\n } else {\n return mov.toIndex() - mov.fromIndex() == SIDE && to == EMPTY;\n }\n }\n return false;\n }",
"public boolean moveTile(int row, int col) {\n //first make sure the parameters are reasonable values\n if (row < 0 || row > 2 || col < 0 || col > 2) {\n return false;\n }\n int tile = getTiles()[row][col];\n if (tile == 0) {\n return false;\n }\n boolean inBounds;\n //check from one row to the left, to one row to the right\n for (int i = row - 1; i <= row + 1; i++) {\n //check from one column above, to one column below\n for (int j = col - 1; j <= col + 1; j++) {\n //use this to make sure our indices are reasonable\n inBounds = ((i >= 0 && i < 3) && (j >= 0 && j < 3));\n if (inBounds) {\n int otherTile = getTiles()[i][j];\n //can't move a cell to itself\n if (otherTile != tile) {\n //we want to ignore diagonals\n if (!(i != row && j != col)) {\n //if otherTile is blank, swap tile and otherTile\n if (otherTile == 0) {\n setTile(i, j, tile);\n setTile(row, col, otherTile);\n return true;\n }\n }\n }\n }\n }\n }\n //if we didn't return true yet, there was no adjacent blank tile\n return false;\n }",
"public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }",
"public boolean canMove() {\n\n\tArrayList<Location> moveLocs = getValid(getLocation());\n\n\tif (isEnd == true) {\n\t return false;\n\t} \n\tif (!moveLocs.isEmpty()) {\n\t \n\t randomSelect(moveLocs);\n\t // selectMoveLocation(moveLocs);\n\t return true;\n\n\t} else {\n\t return false;\n\t}\n }",
"private boolean hasPossibleMove()\n {\n for(int i=0; i<FieldSize; ++i)\n {\n for(int j=1; j<FieldSize; ++j)\n {\n if(field[i][j] == field[i][j-1])\n return true;\n }\n }\n for(int j=0; j<FieldSize; ++j)\n {\n for(int i=1; i<FieldSize; ++i)\n {\n if(field[i][j] == field[i-1][j])\n return true;\n }\n }\n return false;\n }",
"public boolean isValidMove(MapTile[][] scanMapTiles, String direction) {\n\tint centerIndex = (scanMap.getEdgeSize() - 1) / 2;\n\tint x = centerIndex, y = centerIndex;\n\n\tswitch (direction) {\n\tcase \"N\":\n\t\ty = y - 1;\n\t\tbreak;\n\tcase \"S\":\n\t\ty = y + 1;\n\t\tbreak;\n\tcase \"E\":\n\t\tx = x + 1;\n\t\tbreak;\n\tcase \"W\":\n\t\tx = x - 1;\n\t\tbreak;\n\t}\n\n\tif (scanMapTiles[x][y].getTerrain() == Terrain.SAND || scanMapTiles[x][y].getTerrain() == Terrain.NONE\n\t\t\t|| scanMapTiles[x][y].getHasRover() == true)\n\t\treturn false;\n\n\treturn true;\n}",
"private boolean canMove() {\n return !(bestMove[0].getX() == bestMove[1].getX() && bestMove[0].getY() == bestMove[1].getY());\n }",
"@Override\n\tpublic boolean isMoveValid(int row, int col) {\n\t\tif (isValidSide(row, col)) {\n\t\t\taddMissileResult(row, col);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean validPosition(Player p, double x, double y) {\n\n\t\tTile tile = getTile(p, x + p.BOUNDING_BOX_X, y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x, y + p.BOUNDING_BOX_Y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x - p.BOUNDING_BOX_X, y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttile = getTile(p, x, y - p.BOUNDING_BOX_Y);\n\t\tif (tile == null || !tile.canEnter(p)) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public boolean isValidMove(int toRow,int toCol){\n //Stayed in the same spot\n if(myRow == toRow && myCol == toCol){\n return false;\n }\n //if the xy coordinate we are moving to is outside the board\n if(toRow < 0 || toRow > 11 || toCol < 0 || toCol > 11){\n return false;\n }\n return true;\n }",
"public abstract boolean validMove(ChessBoard board, Square from, Square to);",
"boolean isValidMove(int col);",
"public boolean validMove(int x, int y){\n if(!super.validMove(x, y)){\n return false;\n }\n if(((Math.abs(x - this.x()) == 2) && (Math.abs(y - this.y()) == 1))\n || ((Math.abs(x - this.x()) == 1) && (Math.abs(y - this.y()) == 2))){\n return true;\n }else{\n return false;\n }\n }",
"public boolean canMoveTo (Coordinate c)\n\t{\n\t\tif (c.x < 0 || c.x >= GRID_SIZE){\n\t\t\treturn false;\n\t\t}\n\t\tif (c.y < 0 || c.y >= GRID_SIZE) {\n\t\t\treturn false;\n\t\t}\n\t\tif (grid[c.x][c.y] == GridChar.AVAILABLE || grid[c.x][c.y] == GridChar.END){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private static boolean isMoveValid( int x, int y ){\n int path[] = new int[8];\n for( int distance = 1; distance < 8; distance ++ ){\n checkPath( path, 0, x + distance, y, distance );\n checkPath( path, 1, x + distance, y + distance, distance );\n checkPath( path, 2, x, y + distance, distance );\n checkPath( path, 3, x - distance, y, distance );\n checkPath( path, 4, x - distance, y - distance, distance );\n checkPath( path, 5, x, y - distance, distance );\n checkPath( path, 6, x + distance, y - distance, distance );\n checkPath( path, 7, x - distance, y + distance, distance );\n }\n for( int i = 0; i < 8; i++ ){\n if( path[ i ] > 1 ){\n return true;\n }\n }\n return false;\n }",
"private boolean isLegalMove(String move) {\n\t\tString[] moveParts = move.split(\";\");\n\n\t\tint fromRow = Integer.parseInt(moveParts[0].charAt(0) + \"\");\n\t\tint fromCol = Integer.parseInt(moveParts[0].charAt(1) + \"\");\n\n\t\tint toRow = Integer.parseInt(moveParts[1].charAt(0) + \"\");\n\t\tint toCol = Integer.parseInt(moveParts[1].charAt(1) + \"\");\n\n\t\tint minRow = Math.min(fromRow, toRow);\n\t\tint minCol = Math.min(fromCol, toCol);\n\n\t\tint maxRow = Math.max(fromRow, toRow);\n\t\tint maxCol = Math.max(fromCol, toCol);\n\n\t\tint piece = board[fromRow][fromCol];//Integer.parseInt(moveParts[2]);\n\t\tint pieceType = Math.abs(piece);\n\t\tint team = Math.round(Math.signum(piece));\n\n\t\tif (team == Math.round(Math.signum(board[toRow][toCol]))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (toRow < 0 || toRow > 7 && toCol < 0 && toCol > 7) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (team > 0) { // WHITE\n\t\t\tint enpassantBackup = enpassantCol;\n\t\t\tint[][] boardBackup = deepCopyBoard();\n\t\t\tapplyConvertedMove(move);\n\t\t\tboolean check = isWhiteCheck();\n\t\t\tboard = boardBackup;\n\t\t\tenpassantCol = enpassantBackup;\n\t\t\tif (check) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else { //BLACK\n\t\t\tint enpassantBackup = enpassantCol;\n\t\t\tint[][] boardBackup = deepCopyBoard();\n\t\t\tapplyConvertedMove(move);\n\t\t\tboolean check = isBlackCheck();\n\t\t\tboard = boardBackup;\n\t\t\tenpassantCol = enpassantBackup;\n\t\t\tif (check) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (pieceType == 1) { //Pawn\n\t\t\treturn ((board[toRow][toCol] != 0 && toRow == fromRow + team && (toCol == fromCol + 1 || toCol == fromCol - 1)) || (toCol == fromCol && board[toRow][toCol] == 0 && ((toRow == fromRow + team) || (((fromRow == 1 && team == 1) || (fromRow == 6 && team == -1)) ? toRow == fromRow + 2*team && board[fromRow + team][fromCol] == 0 : false))));\n\t\t} else if (pieceType == 2) { //Rook\n\t\t\tif (toRow == fromRow) {\n\t\t\t\tfor (int i = minCol + 1; i < maxCol; i++) {\n\t\t\t\t\tif (board[toRow][i] != 0 && Math.abs(board[toRow][i]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (toCol == fromCol) {\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][toCol] != 0 && Math.abs(board[i][toCol]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (pieceType == 3) { //Knight\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\treturn dx*dx + dy*dy == 5;\n\t\t} else if (pieceType == 4) { //Bishop\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\tif (dy != dx && dy != -dx) return false;\n\t\t\tint m = dy/dx;\n\t\t\tint startCol = (m < 0 ? maxCol : minCol);\n\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\tif (board[i][startCol + m*(i - minRow)] != 0 && board[i][startCol + m*(i - minRow)] != 7) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (pieceType == 5) { //Queen\n\t\t\tif (toRow == fromRow) {\n\t\t\t\tfor (int i = minCol + 1; i < maxCol; i++) {\n\t\t\t\t\tif (board[toRow][i] != 0 && Math.abs(board[toRow][i]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (toCol == fromCol) {\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][toCol] != 0 && Math.abs(board[i][toCol]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tint dx = toRow - fromRow;\n\t\t\t\tint dy = toCol - fromCol;\n\t\t\t\tif (dy != dx && dy != -dx) return false;\n\t\t\t\tint m = dy/dx;\n\t\t\t\tint startCol = (m < 0 ? maxCol : minCol);\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][startCol + m*(i - minRow)] != 0 && Math.abs(board[i][startCol + m*(i - minRow)]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (pieceType == 6) { //King\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\treturn dx*dx + dy*dy <= 2;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"public boolean canMove() {\n\t\tArrayList<Location> loc = getValid(getLocation());\n\t\tif (loc.isEmpty()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tpath.add(getLocation());\n\t\t\tif (loc.size() >= 2) {\n\t\t\t\tcrossLocation.push(path);\n\t\t\t\tpath = new ArrayList<Location>();\n\t\t\t\tnext = betterDir(loc);\n\t\t\t}\n\t\t\tnext = loc.get(0);\n\t\t}\n\t\treturn true;\n\t}",
"public abstract boolean canMove(Board board, Spot from, Spot to);",
"public boolean checkMove(int x, int y, int move){\r\n\t\tif (move == -1) {\r\n\t\t\treturn true;\r\n\t\t}else if ((x < 1) || (y < 1) || (x > this.size) || (y > this.size) || (move < 1) || (move > this.size)){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\tif (getXValues()[x][move] || getYValues()[y][move]) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}return true;\r\n\t}",
"private boolean wrongPositioning(int x, int y, LoadedMap map) {\n boolean ans = false;\n if(hasAbove(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))){\n ans = true;\n }else if (hasBelow(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))) {\n ans = true;\n }\n return ans;\n }",
"@Override\n public boolean canMove(double x, double y) {\n double xr = this.x, yr = this.y - 32; //subtract y to get more accurate results\n //the thing is, subract to 32 (sprite size), so if we add 1 tile we get the next pixel tile with this\n //we avoid the shaking inside tiles with the help of steps\n if (direction == 0) {\n yr += sprite.getSize() - 1;\n xr += sprite.getSize() / 2;\n }\n if (direction == 1) {\n yr += sprite.getSize() / 2;\n xr += 1;\n }\n if (direction == 2) {\n xr += sprite.getSize() / 2;\n yr += 1;\n }\n if (direction == 3) {\n xr += sprite.getSize() - 1;\n yr += sprite.getSize() / 2;\n }\n int xx = Coordinates.pixelToTile(xr) + (int) x;\n int yy = Coordinates.pixelToTile(yr) + (int) y;\n Entity a = Board.getInstance().getEntity(xx, yy, this); //entity of the position we want to go\n return !a.collide(this);\n }",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"boolean canMoveTo(Vector2d position);",
"public boolean isValidMove(Point orig, Point dest){ \r\n Color playerColor = model.getCurrentPlayer().getColor();\r\n // Validate all point between board limits\r\n if(!isValidPosition(orig) || !isValidPosition(dest)) return false;\r\n // Check for continue move starting piece\r\n if(model.getCheckPiece() != null && !model.getCheckPiece().equals(orig)) return false;\r\n // Validate origin piece to player color\r\n if((isRed(playerColor) && !isRed(orig)) || (isBlack(playerColor) && !isBlack(orig))) return false;\r\n // Only can move to empty Black space\r\n if(!isEmpty(dest)) return false;\r\n // If current player have obligatory eats, then need to eat\r\n if(obligatoryEats(playerColor) && !moveEats(orig,dest)) return false;\r\n // Check move direction and length\r\n int moveDirection = orig.getFirst() - dest.getFirst(); // Direction in Rows\r\n int rLength = Math.abs(moveDirection); // Length in Rows\r\n int cLength = Math.abs(orig.getSecond() - dest.getSecond()); // Length in Columns\r\n int mLength;\r\n // Only acepts diagonal movements in 1 or 2 places (1 normal move, 2 eats move)\r\n if ((rLength == 1 && cLength == 1) || (rLength == 2 && cLength == 2)){\r\n mLength = rLength;\r\n } else {\r\n return false;\r\n }\r\n // 1 Place movement\r\n if (mLength == 1){ \r\n if (isRed(orig) && !isQueen(orig) && moveDirection > 0) return true;\r\n if (isBlack(orig) && !isQueen(orig) && moveDirection < 0) return true;\r\n if ((isRed(orig) && isQueen(orig)) || (isBlack(orig) && isQueen(orig))) return true;\r\n }\r\n // 2 Places movement need checks if eats rivals\r\n if (mLength == 2){\r\n // Compute mid point\r\n Point midPoint = getMidPoint(orig, dest);\r\n // Check move\r\n if ((isRed(orig) && isBlack(midPoint)) || (isBlack(orig) && isRed(midPoint))){\r\n if (isRed(orig) && !isQueen(orig) && moveDirection > 0) return true;\r\n if (isBlack(orig) && !isQueen(orig) && moveDirection < 0) return true;\r\n if ((isRed(orig) && isQueen(orig)) || (isBlack(orig) && isQueen(orig))) return true;\r\n }\r\n }\r\n return false;\r\n }",
"private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }",
"public boolean canMove (Location loc) {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return false;\n if (!gr.isValid(loc))\n return false;\n Actor neighbor = gr.get(loc);\n return !(neighbor instanceof Wall);\n }",
"private boolean anyMove (int x,int y, OthelloPiece colour){\n boolean valid = false;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_2,colour)) valid=true;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_1,colour)) valid=true;\n if(move(x,y,VALID_MOVE_2,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_2,VALID_MOVE_1,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_2,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_1,colour)) valid=true;\n return (valid);\n }",
"public boolean canMoveTo(Actor actor, int x, int y) {\n\t\t// check for out of bounds, etc\n\t\tif (!isWithinBounds(x, y))\n\t\t\treturn false;\n\n\t\tTile tile = map[x][y];\n\t\tif (tile.canPass()) {\n\t\t\treturn actor.onMoveAttempting(this, tile);\n\t\t}\n\n\t\treturn false;\n\t}",
"public static boolean isValidMove(Robot robot) {\r\n\t\t\r\n\t\tint x = robot.getX();\r\n\t\tint y = robot.getY();\r\n\t\t\r\n\t\t//Make sure the next move won't out\r\n\t\t//of bound to the east\r\n\t\tif(robot.facingEast()) {\r\n\t\t\tif(x + 1 < 10) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Make sure the next move won't hit\r\n\t\t//the wall to the west\r\n\t\tif(robot.facingWest()) {\r\n\t\t\tif(x - 1 > 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//Make sure the next move won't hit\r\n\t\t//the wall to the south\r\n\t\tif(robot.facingSouth()) {\r\n\t\t\tif(y - 1 > 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//Make sure the next move won't out\r\n\t\t//of the bound to the north\r\n\t\tif(robot.facingNorth()) {\r\n\t\t\tif(y + 1 < 10) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t\treturn false;\r\n\t}",
"private boolean validMove(int xi, int yi, int xf, int yf) {\n\t\tPiece prevP = pieceAt(xi, yi);\n\t\tPiece nextP = pieceAt(xf, yf);\n\n\t\tif (prevP.isKing()) {\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && ((yf - yi) == 1 || (yi - yf) == 1)) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t} else \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif (prevP.isFire()) \n\t\t{\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && (yf - yi) == 1) \n\t\t\t{\n\t\t\t\tif (nextP != null && !nextP.isFire()) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse if ((xf - xi) == 2 && (yf - yi) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi+1, yi+1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse if ((xi - xf) == 2 && (yf - yi) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi-1, yi+1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else \n\t\t{\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && (yi - yf) == 1) \n\t\t\t{\n\t\t\t\tif (nextP != null && nextP.isFire()) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse if ((xf - xi) == 2 && (yi - yf) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi+1, yi-1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse if ((xi - xf) == 2 && (yi - yf) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi-1, yi-1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\r\n boolean isValidSpecialMove(final int newX, final int newY) {\r\n int xDisplacement = newX - getXLocation();\r\n int yDisplacement = newY - getYLocation();\r\n if (isValidRookMove(xDisplacement, yDisplacement)) {\r\n // Total number of steps the piece has to take.\r\n //Either x = 0 or y = 0.\r\n int steps = Math.max(Math.abs(xDisplacement),\r\n Math.abs(yDisplacement));\r\n int xDirection = xDisplacement / steps;\r\n int yDirection = yDisplacement / steps;\r\n // Check for obstacles in path of Rook.\r\n for (int i = 1; i < steps; i++) {\r\n ChessSquare squareToCheck = getCurrentBoard().getSquaresList()\r\n [getXLocation() + i * xDirection]\r\n [getYLocation() + i * yDirection];\r\n if (squareToCheck.getIsOccupied()) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n return false;\r\n\r\n }",
"@Override\n\tpublic boolean isLegalMove(Square newPosition) {\n\t\treturn false;\n\t}",
"public MoveResult canMovePiece(Alignment player, Coordinate from, Coordinate to);",
"public Boolean isValidMovement(int x, int y){\n\t\tif ( x < 0 || x > 7 || y < 0 || y > 7 \n\t\t\t\t|| this.board.getPiece(x, y).getColor().equalsIgnoreCase(this.color))\n\t\t\treturn false;\n\t\t\n\t\tint distX = Math.abs(this.posX - x);\n\t\tint distY = Math.abs(this.posY - y);\n\t\t\n\t\tif (distX != distY)\n\t\t\treturn false;\n\t\t\n\t\tif (this.posX > x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX > x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"private boolean isValidMove(int i, int j) {\n\t\tint rowDelta = Math.abs(i - row);\n\t\tint colDelta = Math.abs(j - col);\n\n\t\tif ((rowDelta == 1) && (colDelta == 0)) {\n\t\t\tinvalidMoveLbl.setVisible(false);\n\t\t\treturn true;\n\t\t}\n\t\tif ((colDelta == 1) && (rowDelta == 0)) {\n\t\t\tinvalidMoveLbl.setVisible(false);\n\t\t\treturn true;\n\t\t}\n\t\tinvalidMoveLbl.setVisible(true);\n\t\treturn false;\n\t}",
"boolean isValidMove(int move)\n\t{\n\t\treturn move >= 0 && move <= state.size() - 1 && state.get(move) == 0;\n\t}",
"public boolean isValidMove(int x, int y) {\n\n\t\t//A move is invalid\n\t\t// 1 - the cell that someone is trying to move to, is not empty\n\t\t// 2 - the co-ordinate of the cell is out of bounds of our double board array\n\n\t\t// First check if move is valid\n\t\tif (!isCellEmpty(x,y)) {\n\n\t\t\treturn false; // invalid move case 1\n\n\t\t} else if (!Utility.isWithinRange(x,0,2) || !Utility.isWithinRange(y,0,2)) {\n\n\t\t\treturn false; // invalid move case 2 \n\t\t\t\n\t\t}\n\n\t\treturn true;\n\n\t}",
"private boolean spotTaken(int row, int col, int shipSize, char orientation) {\n boolean spotTaken = false;\n for(int i = 0; i < shipSize; i++) {\n if(this.board[row][col+i] != '*') {\n System.err.println(String.format(\"Error: There is already part of a ship at ship at %d, %d\", row, col+i));\n return true;\n }\n }\n \n return false;\n }",
"public boolean canMove() {\n ArrayList<Location> valid = canMoveInit();\n if (valid == null || valid.isEmpty()) {\n return false;\n }\n ArrayList<Location> lastCross = crossLocation.peek();\n for (Location loc : valid) {\n Actor actor = (Actor) getGrid().get(loc);\n if (actor instanceof Rock && actor.getColor().equals(Color.RED)) {\n next = loc;\n isEnd = true;\n return false;\n }\n if (!lastCross.contains(loc)) {\n lastCross.add(loc);\n next = loc;\n ArrayList<Location> nextCross = new ArrayList<>();\n nextCross.add(next);\n nextCross.add(last);\n crossLocation.push(nextCross);\n return probabilityAdd();\n }\n }\n next = lastCross.get(1);\n crossLocation.pop();\n return probabilitySub();\n }",
"public boolean validMove(TileEnum from, TileEnum to) {\n if (!isMyTurn() || hasMoved()\n || (getMyPlayerNumber() == 1 && TileStateEnum.PLAYERONE != getTileState(from))\n || (getMyPlayerNumber() == 2 && TileStateEnum.PLAYERTWO != getTileState(from)))\n return false;\n\n List<TileEnum> fromNeighbors = getNeighborsOf(from);\n for (TileEnum otherTile : fromNeighbors) {\n if (to.equals(otherTile)) return TileStateEnum.FREE.equals(getTileState(otherTile));\n\n List<TileEnum> otherNeighbors = getNeighborsOf(otherTile);\n for (TileEnum anotherTile : otherNeighbors) {\n if (to.equals(anotherTile)) return TileStateEnum.FREE.equals(getTileState(anotherTile));\n }\n }\n return false;\n }",
"@Test\r\n public void should_not_be_allowed_to_move_in_wrong_direction() {\r\n game.nextTurn(); // will throw [1,2] and thus black starts\r\n assertFalse(game.move(Location.R12, Location.R10));\r\n }",
"@Override\n\tboolean isValidSpecialMove(int newX, int newY) {\n\t\tint xDisplacement = newX - xLocation;\n\t\tint yDisplacement = newY - yLocation;\n\t\tif(isValidQueenMove(xDisplacement, yDisplacement)){\n\t\t\tint steps = Math.max(Math.abs(xDisplacement), Math.abs(yDisplacement));\n\t\t\tint xDirection = xDisplacement/steps;\n\t\t\tint yDirection = yDisplacement/steps;\n\t\t\t// Check for obstacles in path of Queen.\n\t\t\tfor(int i = 1; i < steps; i++){\n\t\t\t\tSquare squareToCheck = currentBoard.squaresList[xLocation + i*xDirection][yLocation + i*yDirection];\n\t\t\t\tif(squareToCheck.isOccupied)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean checkWin(Tile initialTile);",
"@Test\n public void isValidMoveTest() {\n\n //get the board of the enemy with the method getBoard() from enemyGameBoard\n board = enemyGameBoard.getBoard();\n\n //Try two times for a existing point on the board\n assertTrue(enemyGameBoard.isValidMove(1,1));\n assertTrue(enemyGameBoard.isValidMove(2,4));\n\n //Try two times for a non-existing point on the board\n assertFalse(enemyGameBoard.isValidMove(15,5)); // x-value outside the board range\n assertFalse(enemyGameBoard.isValidMove(5,11)); // y-value outside the board range\n\n //hit a water field\n enemyGameBoard.makeMove(2, 3, false);\n assertTrue(board[2][3].equals(EnemyGameBoard.WATER_HIT));\n\n //try isValidMove() on the already hit water field\n assertFalse(enemyGameBoard.isValidMove(2,3));\n\n //hit a ship field\n enemyGameBoard.makeMove(5, 4, true);\n assertTrue(board[5][4].equals(EnemyGameBoard.SHIP_HIT));\n\n //try isValidMove() on the already hit water field\n assertFalse(enemyGameBoard.isValidMove(5,4));\n }",
"public boolean inValidSpot(Path p1){\n\t\t// Checks to see it the path piece placed expects an entrance or exit piece out of bounds\n\t\t\n\t\tint largestRow = (height*width-1)/width;\n\t\t\n\t\t// if entrance or exit pos expected is negative, know it is expecting a path outside the top bound\n\t\tif(p1.getEntry()<0 || p1.getExit()<0){\n\t\t\treturn false;\n\t\t}\n\t\t// if entrance or exit's row greater than the maximum row, know it is expecting a path outside bottom bound\n\t\tif(p1.getEntryRow()>largestRow || p1.getExitRow()>largestRow){\n\t\t\treturn false;\n\t\t}\n\t\tint currentRow = p1.getRow();\n\t\tint nextRow=0;\n\t\tif(Math.abs(p1.getPos()-p1.getEntry())==1){\n\t\t\t// If the absolute value of the difference between the current position and its entrance is 1 ...\n\t\t\t// Checking to see if the entrance is expected to be outside of the left or right edges of Map\n\t\t\tnextRow = p1.getEntryRow();\n\t\t\tif(currentRow!=nextRow){\n\t\t\t\t// This means that the entrance expected is not to the left or to the right\n\t\t\t\t// In other words, the entrance is expected in another row\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif(Math.abs(p1.getPos()-p1.getExit())==1){\n\t\t\t// If the absolute value of the difference between the current position and its exit is 1 ...\n\t\t\t// Checking to see if the exit is expected to be outside of the left or right edges of Map\n\t\t\tnextRow = p1.getExitRow();\n\t\t\tif(currentRow!=nextRow){\n\t\t\t\t// This means that the exit expected is not to the left or to the right\n\t\t\t\t// In other words, the exit is expected in another row\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t/*\n\t\tif(Math.abs(p1.getPos()-p1.getEntry())==width){\n\t\t\tnextRow = p1.getEntryRow();\n\t\t\tif(p1.getEntry()<0 || nextRow>(height-1/width)){//it used to be calculaterow(height*width-1\n\t\t\t\t//Less than zero would make it on top of the top edge\n\t\t\t\t//First term calculated in this manner because any negative entrance between -1 and \n\t\t\t\t// -width+1 will have an integer rounded to zero. The double casting will give an \n\t\t\t\t// accurate number without losing the sign\n\t\t\t\t\n\t\t\t\t//Greater than height*width-1 would make in lower than the bottom edge\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif(Math.abs(p1.getPos()-p1.getExit())==width){\n\t\t\tnextRow = p1.getExitRow();\n\t\t\tif(p1.getEntry()<0 || nextRow>(height-1/width)){//it used to be calculaterow(height*width-1\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t*/\n\t\treturn true;\n\t\t\n\t}",
"private boolean validMove(int xi, int yi, int xf, int yf) {\n\t\tif (pieceAt(xi, yi).isKing() && pieceAt(xi, yi).isFire() && pieceAt(xf, yf) == null) {\n\t\t\tif (Math.abs(xi - xf) == 1 && Math.abs(yi - yf) == 1) {\n\t\t\t\treturn true;\n\t\t\t} else if (pieceAt((xi+xf)/2, (yi+yf)/2) != null && pieceAt((xi+xf)/2, (yi+yf)/2).isFire() == false && Math.abs(xi - xf) == 2 && Math.abs(yi - yf) == 2) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (pieceAt(xi, yi).isKing() && pieceAt(xi, yi).isFire() == false && pieceAt(xf, yf) == null) {\n\t\t\tif (Math.abs(xi - xf) == 1 && Math.abs(yi - yf) == 1) {\n\t\t\t\treturn true;\n\t\t\t} else if (pieceAt((xi+xf)/2, (yi+yf)/2) != null && pieceAt((xi+xf)/2, (yi+yf)/2).isFire() && Math.abs(xi - xf) == 2 && Math.abs(yi - yf) == 2) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (pieceAt(xi, yi).isKing() == false && pieceAt(xi, yi).isFire() && pieceAt(xf, yf) == null) {\n\t\t\tif ((xi - xf == -1 && yi - yf == -1) || (xi - xf == 1 && yi - yf == -1)) {\n\t\t\t\treturn true;\n\t\t\t} else if (pieceAt((xi+xf)/2, (yi+yf)/2) != null && pieceAt((xi+xf)/2, (yi+yf)/2).isFire() == false) {\n\t\t\t\tif (xi - xf == -2 && yi - yf == -2) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (xi - xf == 2 && yi - yf == -2) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (pieceAt(xi, yi).isKing() == false && pieceAt(xi, yi).isFire() == false && pieceAt(xf, yf) == null) {\n\t\t\tif ((xi - xf == -1 && yi - yf == 1) || (xi - xf == 1 && yi - yf == 1)) {\n\t\t\t\treturn true;\n\t\t\t} else if (pieceAt((xi+xf)/2, (yi+yf)/2) != null && pieceAt((xi+xf)/2, (yi+yf)/2).isFire()) {\n\t\t\t\tif (xi - xf == 2 && yi - yf == 2) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (xi - xf == -2 && yi - yf == 2) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isMoveLegal(int x, int y) {\n\t\tif (rowSize <= x || colSize <= y || x < 0 || y < 0) {\r\n\t\t\t// System.out.print(\"Position (\" + (x + 1) + \", \" + (y + 1) + \") is\r\n\t\t\t// out of range!\\n\");\r\n\t\t\treturn false;\r\n\t\t} else if (!(matrix[x][y] == 0)) {\r\n\t\t\t// System.out.print(\"Position (\" + (x + 1) + \", \" + (y + 1) + \") has\r\n\t\t\t// been occupied!\\n\");\r\n\t\t\treturn false;\r\n\t\t} else\r\n\t\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean canMove(int x, int y, Tile[][] tiles) {\r\n\t\treturn false;\r\n\t}",
"public boolean canMoveTo(Position position){\n if(position.x > mapSize.x || position.x < 0 || position.y > mapSize.y || position.y < 0){\n return false;\n }\n return !isOccupied(position);\n }",
"private void checkMove(Tile[][] chessBoard, int pawnX, int pawnY, int direction) {\r\n\t\tUnit unit = chessBoard[pawnX][pawnY+direction].getPiece();\r\n\t\tif (unit == null) {\r\n\t\t\tMoves move = new Moves(pawnX, pawnY+direction);\r\n\t\t\tinsertMove(move, moveList);\r\n\t\t}\r\n\t}",
"public boolean isValidMove(Coordinates coordinates) {\n if (grid[coordinates.getRow()][coordinates.getColumn()].getSymbol() != 'X' &&\n grid[coordinates.getRow()][coordinates.getColumn()].getSymbol() != 'O') {\n return true;\n }\n\n return false;\n }",
"public abstract boolean canMoveTo(Case Location);",
"public boolean canMoveTo(int x, int y) {\n for (Cell c : this.board) {\n if (c.x == x && c.y == y) {\n return !c.isFlooded;\n }\n }\n return false;\n }",
"public boolean checkAndMove() {\r\n\r\n\t\tif(position == 0)\r\n\t\t\tdirection = true;\r\n\r\n\t\tguardMove();\r\n\r\n\t\tif((position == (guardRoute.length - 1)) && direction) {\r\n\t\t\tposition = 0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif(direction)\r\n\t\t\tposition++;\r\n\t\telse\r\n\t\t\tposition--;\r\n\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean isMoveValid(int srcRow, int srcCol, int destRow, int destCol) {\n\t\treturn false;\n\t}",
"private boolean isMyPiece(Loc thisSpot) {\n\t\tfor (Loc loc : currentPiece.getLocation()) {\n\t\t\tif (loc.row == thisSpot.row && loc.col == thisSpot.col) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"@Override\n public boolean isValidMove(Tile target, Board board) {\n if (target == null || board == null) {\n throw new NullPointerException(\"Arguments for the isValidMove method can not be null.\");\n }\n // current and target tiles have to be on a diagonal (delta between row and col index have to be identical)\n int currentCol = this.getTile().getCol();\n int currentRow = this.getTile().getRow();\n int targetCol = target.getCol();\n int targetRow = target.getRow();\n\n int deltaRow = Math.abs(currentRow - targetRow);\n int deltaCol = Math.abs(currentCol - targetCol);\n int minDelta = Math.min(deltaCol, deltaRow);\n\n boolean sameDiagonal = deltaCol == deltaRow;\n\n // check if there are pieces between the tiles\n boolean noPiecesBetween = true;\n // Directions -- (Up and to the left) , -+ (Up and to the right), ++, +-\n if (targetRow < currentRow && targetCol < currentCol) { // --\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow - delta, currentCol - delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n\n } else if (targetRow > currentRow && targetCol < currentCol) { // +-\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow + delta, currentCol - delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n } else if (targetRow > currentRow && targetCol > currentCol) { // ++\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow + delta, currentCol + delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n } else if (targetRow < currentRow && targetCol > currentCol) { // -+\n for (int delta = 1; delta < minDelta; delta++) {\n Tile tileInBetween = board.getTile(currentRow - delta, currentCol + delta);\n if (tileInBetween.hasChessPiece()) {\n noPiecesBetween = false;\n }\n }\n }\n\n return sameDiagonal && noPiecesBetween;\n }",
"public boolean checkAlienPlacementTile(float x, float y)\r\n/* 471: */ {\r\n/* 472:563 */ if (!tileWalkable(x, y)) {\r\n/* 473:565 */ return false;\r\n/* 474: */ }\r\n/* 475:568 */ AgentModel a = getAgentOnTile(x, y);\r\n/* 476:569 */ if ((a != null) || (((a instanceof DoorModel)) && (!((DoorModel)a).isOpen()))) {\r\n/* 477:571 */ return false;\r\n/* 478: */ }\r\n/* 479:574 */ return true;\r\n/* 480: */ }",
"boolean isValid(int xPos, int yPos, int destX, int destY) {\r\n\t\tboolean valid = false;\r\n\t\t\r\n\t\t//Moves White\r\n\t\tif(this.color == \"Weiß\"){\r\n\t\t//Moving 2 Tiles\r\n\t\tif (firstMove == true && destY - yPos == -2 && destX == xPos) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving 1 Tile\r\n\t\tif (destX == xPos && destY - yPos == -1) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving Diagonal if enemy is there\r\n\t\tif ((destX == xPos + 1 || destX == xPos-1) && destY == yPos -1){\r\n\t\t\tvalid = isValidLoop(destX, destY, valid);\r\n\t\t}\r\n\t\treturn valid;\r\n\t\t} \r\n\t\t\r\n\t\t//Moves Black\r\n\t\telse {\r\n\t\t//Moving 2 Tiles\r\n\t\tif (firstMove == true && destY - yPos == 2 && destX == xPos) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving 1 Tile\r\n\t\tif (destX == xPos && destY - yPos == 1) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving Diagonal\r\n\t\tif ((destX == xPos + 1 || destX == xPos-1) && destY == yPos +1){\r\n\t\t\tvalid = isValidLoop(destX, destY,valid);\r\n\t\t}\r\n\t\t}\r\n\t\treturn valid;\r\n\t}",
"private boolean validMove(GameWorld world, Character nextKey) {\n if (nextKey.equals('Q') || nextKey.equals('q') || nextKey.equals(':')) {\n return true;\n } else if (nextKey.equals('W') || nextKey.equals('w')) {\n if (world.world[world.avatarPosition.x]\n [world.avatarPosition.y + 1].equals(Tileset.WALL)) {\n return false;\n }\n } else if (nextKey.equals('S') || nextKey.equals('s')) {\n if (world.world[world.avatarPosition.x]\n [world.avatarPosition.y - 1].equals(Tileset.WALL)) {\n return false;\n }\n } else if (nextKey.equals('D') || nextKey.equals('d')) {\n if (world.world[world.avatarPosition.x + 1]\n [world.avatarPosition.y].equals(Tileset.WALL)) {\n return false;\n }\n } else if (nextKey.equals('A') || nextKey.equals('a')) {\n if (world.world[world.avatarPosition.x - 1]\n [world.avatarPosition.y].equals(Tileset.WALL)) {\n return false;\n }\n } else {\n return true;\n }\n return true;\n }",
"@Override\n public boolean canMoveTo(int x, int y, Board board) {\n \n if (x > this.x && y > this.y){ //move up to the right\n if(lowCh(\"uright\",xt+1,yt+1,x,y,board) == true)\n {\n return canTake(x,y,board) == true;\n }else{\n return false;\n }\n } else if (x > this.x && y < this.y){ //move down to the right\n if(lowCh(\"dright\",xt+1,yt-1,x,y,board) == true)\n {\n return canTake(x,y,board) == true;\n }else{\n return false;\n }\n } else if (x < this.x && y > this.y){ //move up to the left\n if (lowCh(\"uleft\",xt-1,yt+1,x,y,board) == true)\n {\n return canTake(x,y,board) == true;\n }else{\n return false;\n }\n } else if (x < this.x && y < this.y){ //move down to the left\n if (lowCh(\"dleft\",xt-1,yt-1,x,y,board) == true)\n {\n return canTake(x,y,board) == true;\n }else{\n return false;\n }\n } else {\n return false;\n }\n }",
"private boolean canMove() {\n\t\tif (System.currentTimeMillis() - lastTrunTime < 300) {// move time is\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 300ms before\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// last move\n\t\t\treturn false;\n\t\t}\n\t\tboolean status = false;\n\t\tif(stage == 1){\n\t\t\tmap = GameView.map;\n\t\t}else if(stage == 2){\n\t\t\tmap = GameViewStage2.map;\n\t\t}else {\n\t\t\tmap = GameViewStage3.map;\n\t\t}\n\t\tif (direction == UP) {// when tank moves up\n\t\t\tif (centerPoint.getY() - speed >= 0) {\n\t\t\t\tif (map[(centerPoint.getY() - speed) / UNIT][centerPoint\n\t\t\t\t\t\t.getX() / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() - speed) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + UNIT) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() - speed) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT) / UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == DOWN) {\n\t\t\tif (centerPoint.getY() + tankBmp.getHeight() + speed < screenHeight) {\n\t\t\t\tif (map[(centerPoint.getY() + 2 * UNIT + speed) / UNIT][centerPoint\n\t\t\t\t\t\t.getX() / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT][(centerPoint.getX() + UNIT) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT][(centerPoint.getX() + 2 * UNIT) / UNIT] == 0) {\n\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == LEFT) {\n\n\t\t\tif (centerPoint.getX() - speed >= 0) {\n\t\t\t\tif (map[centerPoint.getY() / UNIT][(centerPoint.getX() - speed)\n\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() - speed) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() - speed) / UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == RIGHT) {\n\t\t\tif (centerPoint.getX() + tankBmp.getWidth() + speed < screenWidth) {\n\t\t\t\tif (map[centerPoint.getY() / UNIT][(centerPoint.getX()\n\t\t\t\t\t\t+ 2 * UNIT + speed)\n\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (status)\n\t\t\tlastTrunTime = System.currentTimeMillis();\n\t\treturn status;\n\t}",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"private boolean canMove(String direction) {\n\t\tif (currentPiece.getLocation() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (Loc loc : currentPiece.getLocation()) {\n\t\t\tLoc nextPoint = nextPoint(loc, direction);\n\t\t\tif (nextPoint == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if there's someone else's piece blocking you\n\t\t\tif ((new Loc(nextPoint.row, nextPoint.col).isOnBoard())\n\t\t\t\t\t&& boardTiles[nextPoint.row][nextPoint.col] != backgroundColor && !isMyPiece(nextPoint)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"boolean checkMove(int row, int col, int dir) {\r\n\t\tint dimRow = board.getDimRow();\r\n\t\tint dimCol = board.getDimCol();\r\n\r\n\t\tif (row == 0 && dir == Ship.UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == 0 && dir == Ship.LEFT_UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == 0 && dir == Ship.RIGHT_UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == 0 && dir == Ship.LEFT) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == 0 && dir == Ship.LEFT_UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == 0 && dir == Ship.LEFT_DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == dimRow - 1 && dir == Ship.DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == dimRow - 1 && dir == Ship.LEFT_DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == dimRow - 1 && dir == Ship.RIGHT_DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (col == dimCol - 1 && dir == Ship.RIGHT) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == dimCol - 1 && dir == Ship.RIGHT_UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == dimCol - 1 && dir == Ship.RIGHT_DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}",
"public boolean isSafeForMovePacket(Vector offset) {\n return offset.getX() < 8.0 && offset.getY() < 8.0 && offset.getZ() < 8.0;\n }",
"public boolean allowMove(Point p, int pos);",
"public boolean isMovePossible(int boardIndex, int markIndex) throws IllegalArgumentException;",
"private boolean isValidMove(int position) {\n\t\tif( !(position >= 0) || !(position <= 8) ) return false;\n\n\t\treturn gameBoard[position] == 0;\n\t}",
"public abstract boolean attemptMove(Player currentPlayerObj, Coordinate move);",
"public boolean isValidPlacementSpot() {\n return isEmpty() && ! getNeighbours().stream().allMatch(Spot::isEmpty);\n }",
"public boolean isMoveLegal() {\n if (!getGame().getBoard().contains(getFinalCoords())) {\n return false;\n }\n\n // for aero units move must use up all their velocity\n if (getEntity() instanceof Aero) {\n Aero a = (Aero) getEntity();\n if (getLastStep() == null) {\n if ((a.getCurrentVelocity() > 0) && !getGame().useVectorMove()) {\n return false;\n }\n } else {\n if ((getLastStep().getVelocityLeft() > 0) && !getGame().useVectorMove()\n && !(getLastStep().getType() == MovePath.MoveStepType.FLEE\n || getLastStep().getType() == MovePath.MoveStepType.EJECT)) {\n return false;\n }\n }\n }\n\n if (getLastStep() == null) {\n return true;\n }\n\n if (getLastStep().getType() == MoveStepType.CHARGE) {\n return getSecondLastStep().isLegal();\n }\n if (getLastStep().getType() == MoveStepType.RAM) {\n return getSecondLastStep().isLegal();\n }\n return getLastStep().isLegal();\n }",
"public static boolean validPos(String moveTo)\n\t{\n\t\tfor(int rows = 0; rows < 8; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < 8; cols++)\n\t\t\t{\n\t\t\t\tif(posMap[rows][cols].equals(moveTo))\n\t\t\t\t{\t\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean isMoveValid(int[][] board, int player, int fromRow, int fromCol, int toRow, int toCol) {\r\n\t\t\r\n\t\tboolean ans = false;\r\n\t\t\r\n\t\tif (board[toRow][toCol]==0){/*is the target slot ia emtey*/\r\n\t\t\tif (player==1){\r\n\t\t\t\tif (board[fromRow][fromCol]==1||board[fromRow][fromCol]==2){ /*is the starting slot is red player queen olayer solduer*/\r\n\t\t\t\t\tif (isBasicJumpValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the eating is legal*/\r\n\t\t\t\t\t\tans = true;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif (canJump(board,player)==false){/*is ther no eating jump?*/\r\n\t\t\t\t\t\t\tif (isBasicMoveValid(board,player,fromRow,fromCol,toRow,toCol)){/*is this is legal move*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t\t\tif (player==-1){\r\n\t\t\t\tif (board[fromRow][fromCol]==-1||board[fromRow][fromCol]==-2){/*is the starting slot is blue player queen olayer solduer*/\r\n\t\t\t\t\tif (isBasicJumpValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the eating is legal*/\r\n\t\t\t\t\t\tans = true;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif (canJump(board,player)==false){/*is ther are no eating move*/\r\n\t\t\t\t\t\t\tif (isBasicMoveValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the move is legal*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ans;\r\n\t}",
"private boolean tryMove(Shape newPiece, int newX, int newY) {\n for (int i = 0; i < 4; ++i) {\n\n int x = newX + newPiece.x(i);\n int y = newY - newPiece.y(i);\n//if a piece reaches the edge it stops\n if (x < 0 || x >= BOARD_WIDTH || y < 0 || y >= BOARD_HEIGHT) {\n return false;\n }\n//if a piece is adjacent to any fallen tetris pieces it stops\n if (shapeAt(x, y) != Tetrominoe.NoShape) {\n return false;\n }\n }\n\n curPiece = newPiece;\n curX = newX;\n curY = newY;\n\n repaint();\n\n return true;\n }",
"@Override\r\n public boolean canMove() {\r\n Grid<Actor> gr = getGrid();\r\n int dirs[] = {\r\n Location.AHEAD, Location.HALF_CIRCLE, Location.LEFT,\r\n Location.RIGHT };\r\n // 当终点在周围时,不能移动且isEnd应当为true\r\n for (int i = 0; i < dirs.length; i++) {\r\n Location tarLoc = getLocation().getAdjacentLocation(dirs[i]);\r\n if (gr.isValid(tarLoc) && gr.get(tarLoc) != null) {\r\n // Color直接用==计算竟然不可行(真是哔了dog...\r\n if (gr.get(tarLoc) instanceof Rock\r\n && gr.get(tarLoc).getColor().equals(Color.RED)) {\r\n isEnd = true;\r\n return false;\r\n }\r\n }\r\n }\r\n ArrayList<Location> nextLocs = getValid(getLocation());\r\n // 当附近没有可以移动的位置时,不能移动\r\n if (nextLocs.size() == 0) {\r\n return false;\r\n }\r\n // 当可以移动的位置>1时,说明存在一个节点,这个节点应当被新建一个arraylist入栈\r\n if (nextLocs.size() > 1) {\r\n ArrayList<Location> newStackElem = new ArrayList<Location>();\r\n newStackElem.add(getLocation());\r\n crossLocation.push(newStackElem);\r\n }\r\n // 有可以移动的位置时,向概率最高的方向移动\r\n int maxProbLoc = 0;\r\n // 由于nextLocs不一定有4个location,所以只好循环判断取最大值\r\n for (int i = 0; i < nextLocs.size(); i++) {\r\n Location loc = nextLocs.get(i);\r\n int dirNum = getLocation().getDirectionToward(loc) / 90;\r\n if (probablyDir[dirNum] > probablyDir[maxProbLoc]) {\r\n maxProbLoc = i;\r\n }\r\n }\r\n next = nextLocs.get(maxProbLoc);\r\n return true;\r\n }",
"private static boolean comparePlayerPosition(RSTile tile) {\n RSTile player_position = Player07.getPosition();\n if (tile == null || player_position == null) {\n return false;\n }\n return tile.equals(player_position);\n }",
"@Override\n public boolean canMovePieceAtPoint(Point point) {\n return (getPiece(point) != null);\n }",
"boolean checkLegalMove(int posx, int posy) {\n\t\tBoolean bool;\n\t\tint change;\n\t\tchange = curPlayer > 1 ? (change = 1) : (change = -1);\n\t\tif (kingJumping(posx, posy, change)){\n\t\t\tbool = true;\n\t\t} else if (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1)){\n\t\t\tSystem.out.println(\"Normal move\");\n\t\t\tbool = true;\n\t\t} else if (jump(posx, posy, prevPiece) && (prevPosX == posx + (change * 2) && (prevPosY == posy - 2 || prevPosY == posy + 2))) {\n\t\t\tbool = true;\n\t\t} else if (((JLabel)prevComp).getIcon().equals(Playboard.rKing) || ((JLabel)prevComp).getIcon().equals(Playboard.bKing) || ((JLabel)prevComp).getIcon().equals(Playboard.blackSKing) || ((JLabel)prevComp).getIcon().equals(Playboard.redSKing)){\n\t\t\tchange *= (-1);\n\t\t\tif (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1)){\n\t\t\t\tbool = true;\n\t\t\t} else\n\t\t\t\tbool = false;\n\t\t} else if (prevPiece == 4 && (prevPosX == posx + 1 || prevPosX == posx -1) && (prevPosY == posy - 1 || prevPosY == posy +1)) { // King moves\n\t\t\tchange *= (-1);\n\t\t\tif (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1))\n\t\t\t\tbool = true;\n\t\t\telse\n\t\t\t\tbool = false;\n\t\t} else {\n\t\t\tbool = false;\n\t\t}\n\t\treturn bool;\n\t}",
"public boolean canMoveEntity (Entity entity, Point dest) {\n if (entity == null) throw new IllegalArgumentException(\"Entity is null\");\n if (dest == null) throw new IllegalArgumentException(\"Point is null\");\n if (!grid.containsKey(dest)) throw new IllegalArgumentException(\"The cell is not on the grid\");\n\n Point origin = entity.getCoords();\n\n if (origin.equals(dest)) return false;\n\n Vector vector = Vector.findStraightVector(origin, dest);\n\n if (vector == null) return false;\n Vector step = new Vector(vector.axis(), (int) (1 * Math.signum(vector.length())));\n Point probe = (Point) origin.clone();\n while (!probe.equals(dest)) {\n probe = step.applyVector(probe);\n if (!grid.containsKey(probe)) return false;\n }\n\n\n return true;\n }",
"@Override\n public boolean isValidMove(Move move) {\n if (board[move.oldRow][move.oldColumn].isValidMove(move, board))\n return true;\n //player will not be in check\n //move will get player out of check if they are in check\n return false;\n }",
"@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}",
"protected boolean validMove(TetrisPiece piece, int rot, int gridRow, int gridCol) {\n\t\tif(detectOutOfBounds(piece, rot, gridRow, gridCol)) {\n\t\t\treturn false;\n\t\t}\n\t\tif(detectCollision(piece, rot, gridRow, gridCol)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true; \n\t}",
"public boolean moveable() {\n //check reach border\n if (reachBorder()) {\n return false;\n }\n //get the location of the next spot to move to\n //move up\n Point nextLocation = this.getCenterLocation();\n if (direction == 12) {\n nextLocation = new Point(this.getCenterX(),\n this.getCenterY() - speed);\n }\n //move right\n if (direction == 3) {\n nextLocation = new Point(this.getCenterX() + speed,\n this.getCenterY());\n\n }\n //move down\n if (direction == 6) {\n nextLocation = new Point(this.getCenterX(),\n this.getCenterY() + speed);\n\n }\n //move left\n if (direction == 9) {\n nextLocation = new Point(this.getCenterX() - speed,\n this.getCenterY());\n }\n\n // get all objects in a circle of radius tileSize * 2 around the players\n //these objects are those which can possibly colide with the players\n int checkRadius = GameUtility.GameUtility.TILE_SIZE * 2;\n for (GameObject gameObject : GameManager.getGameObjectList()) {\n if (GameUtility.GameUtility.distance(gameObject.getCenterLocation(),\n this.getCenterLocation()) < checkRadius) {\n if ((GameUtility.GameUtility.dectectCollision(\n gameObject.getCenterLocation(),\n nextLocation)) && !(GameUtility.GameUtility.dectectCollision(\n gameObject.getCenterLocation(),\n this.getCenterLocation())) && gameObject.getType() != GameObjectType.POWER_UP && gameObject.getType() != GameObjectType.MONSTER && gameObject.getType() != GameObjectType.PLAYER) {\n return false;\n }\n }\n }\n return true;\n\n }",
"@Test\n public void testGetPossibleMoveCoordinate() throws Exception{\n ChessBoard board = new ChessBoard(8, 8);\n Piece p;\n\n p = new Pawn(board, Player.WHITE);\n p.setCoordinate(0, 0);\n assertEquals(2, p.getPossibleMoveCoordinate().size()); // first time move, therefore it should be able to advance two squares.\n\n\n p.setCoordinate(0, 1);\n assertEquals(1, p.getPossibleMoveCoordinate().size()); // already moved, therefore it could move two squares.\n\n\n /*\n * create a pawn in same group\n * put it ahead p, then p couldn't move\n */\n Piece friend = new Pawn(board, Player.WHITE);\n friend.setCoordinate(0, 2);\n assertEquals(0, p.getPossibleMoveCoordinate().size());\n\n /*\n * create an opponent piece at top right\n * therefore, p can move top right\n */\n Piece opponent_piece = new Pawn(board, Player.BLACK);\n opponent_piece.setCoordinate(1, 2);\n assertEquals(1, p.getPossibleMoveCoordinate().size());\n\n /*\n * p reaches top boundary\n */\n p.setCoordinate(0, 7);\n assertEquals(0, p.getPossibleMoveCoordinate().size());\n }",
"public abstract boolean canMove(int originX, int originY, int destX, int destY);",
"public boolean isValidMove(int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\n\t\tif (validRook(startRow, startColumn, endRow, endColumn, board) || validBish(startRow, startColumn, endRow, endColumn, board)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean move(Direction direction) throws InvalidPuzzle {\n\t\tint[] coordinate = this.findNumber(0);\n\t\tif (direction == Direction.Up) {\n\t\t\tif (coordinate[0] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0] - 1, coordinate[1]);\n\t\t\tthis.setNumberAt(coordinate[0] - 1, coordinate[1], 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\telse if (direction == Direction.Down) {\n\t\t\tif (coordinate[0] == 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0] + 1, coordinate[1]);\n\t\t\tthis.setNumberAt(coordinate[0] + 1, coordinate[1], 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\telse if (direction == Direction.Left) {\n\t\t\tif (coordinate[1] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0], coordinate[1] - 1);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1] - 1, 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\telse if (direction == Direction.Right) {\n\t\t\tif (coordinate[1] == 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0], coordinate[1] + 1);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1] + 1, 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public void findValidMoveDirections(){\n\t\t\n\t\tif(currentTile == 2 && (tileRotation == 0 || tileRotation == 180)){ // in vertical I configuration\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S: T E,W: F\");\n\t\t}\n\t\telse if(currentTile == 2 && (tileRotation == 90 || tileRotation == 270)){ // in horizontal I configuration\n\t\t\tcanMoveNorth = false; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S: F E,W: T\");\n\t\t}\n\t\t\n\t\t\n\t\telse if(currentTile == 3 && tileRotation == 0){ // L rotated 0 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,E: T S,W: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 90){ // L rotated 90 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,W: T S,E: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 180){ // L rotated 180 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,W: T N,E: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 270){ // L rotated 270 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,E: T N,W: F\");\n\t\t}\n\t\t\n\t\t\n\t\telse if(currentTile == 4 && tileRotation == 0){ // T rotated 0 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,W,E: T N: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 90){ // T rotated 90 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,E: T W: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 180){ // T rotated 180 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,W,E: T S: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 270){ // T rotated 270 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,W: T E: F\");\n\t\t}\n\t\telse if(currentTile == 5){ //in plus tile\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,W,E: T\");\n\t\t}\n\t\t\n\t}",
"public boolean isValidMove(Move move) {\n if (this.gameStarted && isSpaceFree(move) && isPlayerTurn(move)) {\n return true; \n }\n return false; \n }",
"public boolean validateMove(int x, int y)\n {\n try {\n return (board[x][y] == EMPTY_FLAG);\n } catch (ArrayIndexOutOfBoundsException e) {\n return false;\n }\n }",
"public static boolean validMove(String move, Person p, Board building )\n {\n Room[][] map = building.getMap();\n move = move.toLowerCase().trim();\n switch (move) {\n case \"n\":\n if (p.getxLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()-1][p.getyLoc()].getName());\n map[p.getxLoc()-1][p.getyLoc()].enterRoom(p,building);\n return true;\n }\n else\n {\n return false;\n }\n case \"e\":\n if (p.getyLoc()< map[p.getyLoc()].length -1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc() + 1].getName());\n map[p.getxLoc()][p.getyLoc() + 1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"s\":\n if (p.getxLoc() < map.length - 1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()+1][p.getyLoc()].getName());\n map[p.getxLoc()+1][p.getyLoc()].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"w\":\n if (p.getyLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc()-1].getName());\n map[p.getxLoc()][p.getyLoc()-1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n default:\n break;\n\n }\n return true;\n }",
"public abstract boolean actualPlace(int row, int col);",
"private boolean validMove(int dir) {\n return !(dir == UPKEY && direction == DOWNKEY || dir == DOWNKEY && direction == UPKEY || dir == LEFTKEY && direction == RIGHTKEY || dir == RIGHTKEY && direction == LEFTKEY);\n }",
"public boolean isValidMove(int value){\n if (value == HIT || value == MISS) {\n System.out.println(\"Already shot here\");\n return false;\n }\n return true;\n }"
] | [
"0.794994",
"0.7538065",
"0.71785825",
"0.69988734",
"0.6970094",
"0.6954411",
"0.6947541",
"0.69307196",
"0.6915515",
"0.68977195",
"0.6896299",
"0.6878005",
"0.68522096",
"0.6829722",
"0.6829714",
"0.6817874",
"0.6768394",
"0.6768099",
"0.6762757",
"0.67143875",
"0.6706003",
"0.6701781",
"0.6695285",
"0.66943765",
"0.6688239",
"0.6683389",
"0.6665316",
"0.6662242",
"0.6660344",
"0.66548884",
"0.6637484",
"0.66334236",
"0.6631319",
"0.66227806",
"0.6608547",
"0.660223",
"0.6600688",
"0.6594933",
"0.6593517",
"0.65914714",
"0.6589945",
"0.65713245",
"0.65703785",
"0.6551397",
"0.6549134",
"0.6547757",
"0.6543794",
"0.6535772",
"0.65342283",
"0.6532826",
"0.6532616",
"0.65323263",
"0.652464",
"0.6519314",
"0.65179193",
"0.6517138",
"0.6513463",
"0.6512634",
"0.65110344",
"0.6509605",
"0.64972895",
"0.6491849",
"0.6491641",
"0.64892316",
"0.6488671",
"0.6480919",
"0.64727557",
"0.6471518",
"0.6462729",
"0.6461137",
"0.6458687",
"0.64493877",
"0.64456105",
"0.6441548",
"0.64325136",
"0.6426014",
"0.6421173",
"0.6419193",
"0.6412322",
"0.6407531",
"0.64022493",
"0.6401701",
"0.6397847",
"0.63976103",
"0.6396248",
"0.6396027",
"0.6374311",
"0.63730603",
"0.63670737",
"0.63644415",
"0.636432",
"0.63567555",
"0.63566077",
"0.6350711",
"0.6350054",
"0.6341445",
"0.6332578",
"0.6323496",
"0.6320935",
"0.6313984",
"0.6313361"
] | 0.0 | -1 |
Set Knights onto the Tile | public void setKnight(int[] token) throws Exception {
if(4-numKnights < token.length)
throw new Exception();
for(int i = 0; i < token.length; i++) {
knights[numKnights] = token[i];
numKnights++;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setStepCounterTileXY();",
"public KnightsPosition() {\r\n row = 0;\r\n column = 0;\r\n }",
"protected abstract void setTile( int tile, int x, int y );",
"public void updatePossibleMovesKnights(){}",
"public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}",
"private void setNumbers() {\n\t\tint w = worldWidth;\n\t\tint h = worldHeight;\n\t\tfor (int x = 0; x <= w - 1; x++) {\n\t\t\tfor (int y = 0; y <= h - 1; y++) {\n\t\t\t\tint numbers = 0;\n\n\t\t\t\tint right = x + 1;\n\t\t\t\tint left = x - 1;\n\t\t\t\tint up = y - 1;\n\t\t\t\tint down = y + 1;\n\n\t\t\t\tif (left < 0) {\n\t\t\t\t\tleft = 0;\n\t\t\t\t}\n\t\t\t\tif (up < 0) {\n\t\t\t\t\tup = 0;\n\t\t\t\t}\n\t\t\t\tif (down >= h) {\n\t\t\t\t\tdown = h - 1;\n\t\t\t\t}\n\t\t\t\tif (right >= w) {\n\t\t\t\t\tright = w - 1;\n\t\t\t\t}\n\n\t\t\t\tfor (int m = left; m <= right; m++) {\n\t\t\t\t\tfor (int n = up; n <= down; n++) {\n\t\t\t\t\t\tif (!(m == x && n == y)) {\n\t\t\t\t\t\t\tif (tileArr[m][n].hasBomb()) {\n\t\t\t\t\t\t\t\tnumbers++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttileArr[x][y].setNeighbors(numbers);\n\t\t\t}\n\n\t\t}\n\n\t}",
"public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}",
"public Knights()\r\n\t{\r\n\t\tsuper(Settings.COST_PRODUCTION_KNIGHT, Settings.TIME_COST_KNIGHT, \r\n\t\t\t\tSettings.SPEED_KNIGHT, Settings.DAMMAGES_KNIGHT, Settings.DAMMAGES_KNIGHT);\r\n\t}",
"public void xTileSize(int xCells)\n{\n if (m != null)\n m.getTileManager().setXCells(xCells);\n}",
"void setStone(int x, int y, int color);",
"private void assignTileColor() {\n boolean isLightTile = ((tileCoordinate + tileCoordinate / 8) % 2 == 0);\n setBackground(isLightTile ? LIGHT_TILE_COLOR : DARK_TILE_COLOR);\n }",
"public void setheat_setting(int setting)\n {\n this.heat_setting = setting;\n if( setting <1 || setting >5)\n this.heat_setting = 1; \n }",
"public KnightsPosition(int row, int column) {\r\n this.row = row;\r\n this.column = column;\r\n }",
"void setTile(Tile tile) {\n _tile = tile;\n }",
"private void updateAllTiles() {\r\n mEntireBoard.updateDrawableState();\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large].updateDrawableState();\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small].updateDrawableState();\r\n }\r\n }\r\n }",
"public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}",
"public void setToGrassState() {\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.ToPlaceTower) {\n cells.set(i, CellState.Grass);\n }\n }\n }",
"protected void setLevelSize(int w, int h) {\n\t\twidth = w;\n\t\theight = h;\n\n\t\t// build it\n\t\tlevelTiled = new ArrayList<ArrayList<ArrayList<Integer>>>();\n\t\tlevelTyp = new HashMap<String, TYPE>();\n\n\t\t// run over\n\t\tfor (int i = 0; i < w; i++) {\n\t\t\tlevelTiled.add(new ArrayList<ArrayList<Integer>>());\n\t\t\tfor (int j = 0; j < h; j++) {\n\t\t\t\tlevelTiled.get(i).add(new ArrayList<Integer>());\n\t\t\t}\n\t\t}\n\t}",
"public ThirteensBoard()\n {\n super(BOARD_SIZE, RANKS, SUITS, POINT_VALUES);\n }",
"public void setTiles(Tile[][] tiles) {\n this.tiles = tiles;\n }",
"private void setTile(int row, int col, int value) {\n //first make sure the parameters are reasonable values\n if (row < 0 || row > 2 || col < 0 || col > 2) {\n throw new IllegalArgumentException(\"Passed bad index values to setTile()\");\n }\n tiles[row][col] = value;\n }",
"public void setTileX(int x) {\n\t\ttileX = x;\n\t}",
"public void setBoard() {\n margin = Math.round((sizeOfCell * 3) / 2);\n RelativeLayout.LayoutParams marginParam = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n marginParam.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n marginParam.addRule(RelativeLayout.CENTER_HORIZONTAL);\n marginParam.setMargins(0, 0, 0, (margin));\n gridContainer.setLayoutParams(marginParam);\n\n LinearLayout.LayoutParams lpRow = new LinearLayout.LayoutParams(sizeOfCell * maxN, sizeOfCell);\n LinearLayout.LayoutParams lpCell = new LinearLayout.LayoutParams(sizeOfCell, sizeOfCell);\n LinearLayout linRow;\n\n for (int row = 0; row < maxN; row++) {\n linRow = new LinearLayout(context);\n for (int col = 0; col < maxN; col++) {\n ivCell[row][col] = new ImageView(context);\n linRow.addView(ivCell[row][col], lpCell);\n }\n linBoardGame.addView(linRow, lpRow);\n }\n }",
"public Knight(int row, int column, PieceColor color) {\n super(row, column, color, PieceType.KNIGHT,3);\n }",
"protected void setTile( Tile[] tiles, int x, int y, Tile tile ) {\n tiles[ (y * getHeightInTiles()) + x ] = tile;\n }",
"public void setRemainingToScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tgrid[i][j]=new Scenery(i*grid[0].length+j);\n\t\t\t}\n\t\t}\n\t}",
"private void setFixedTile(FixedTile tile, int x, int y) {\r\n\t\tGridSquare.Type type = tile.getType();\r\n\t\tfor(int i = x; i < x+3; i++) {\r\n\t\t\tfor(int j = y; j < y+3; j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(type) , i, j);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setLEDLights(int lightID);",
"public void setNeighborsWall(String neighbor, int value){\n\t\ttry{\t\t\t\t\n\t\t\tif(neighbor.equalsIgnoreCase(\"east\") && (value == 0 || value == 1)){\t\t\t\t\n\t\t\t\teastCell.westWall = value;\n\t\t\t}else if(neighbor.equalsIgnoreCase(\"north\") && (value == 0 || value == 1)){\t\t\t\t\n\t\t\t\tnorthCell.southWall = value;\n\t\t\t}else if(neighbor.equalsIgnoreCase(\"west\") && (value == 0 || value == 1)){\t\t\t\t\n\t\t\t\twestCell.eastWall = value;\n\t\t\t}else if(neighbor.equalsIgnoreCase(\"south\") && (value == 0 || value == 1)){\t\t\t\t\n\t\t\t\tsouthCell.northWall = value;\n\t\t\t}\n\t\t}catch(NullPointerException np){\n\t\t\treturn;\n\t\t}catch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}",
"private void generateBorder() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tif (x == 0 || y == 0 || x == width - 1 || y == height - 1) {\n\t\t\t\t\ttiles[x + y * width] = Tile.darkGrass;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int setCell(int value){\n int newValue;\n if (isHit(value)){\n newValue = HIT;\n }\n else {\n newValue = MISS;\n }\n return newValue;\n }",
"public int getTileWidth() {\n return 8;\n }",
"public static void initialiseKnightLookupTable() {\n\t\tfor (int square = 0; square < 64; square++) {\n\t\t\tlong target = 1L << square;\n\t\t\t// Each direction of the knight moves considered\n\t\t\t// The AND operator is used to stop moves from wrapping around the\n\t\t\t// board\n\t\t\tlong NNE = (target << 17) & ~CoreConstants.FILE_A;\n\t\t\tlong NEE = (target << 10) & ~CoreConstants.FILE_A & ~CoreConstants.FILE_B;\n\t\t\tlong SEE = (target >>> 6) & ~CoreConstants.FILE_A & ~CoreConstants.FILE_B;\n\t\t\tlong SSE = (target >>> 15) & ~CoreConstants.FILE_A;\n\t\t\tlong NNW = (target << 15) & ~CoreConstants.FILE_H;\n\t\t\tlong NWW = (target << 6) & ~CoreConstants.FILE_G & ~CoreConstants.FILE_H;\n\t\t\tlong SWW = (target >>> 10) & ~CoreConstants.FILE_G & ~CoreConstants.FILE_H;\n\t\t\tlong SSW = (target >>> 17) & ~CoreConstants.FILE_H;\n\n\t\t\tCoreConstants.KNIGHT_TABLE[square] = NNE | NEE | SEE | SSE | NNW | NWW | SWW | SSW;\n\t\t}\n\t}",
"public CheckerBoard(int size) {\n super(new int[size * tilesPerSide][size * tilesPerSide][3]);\n for (int y = 0; y < this.getHeight(); ++y) {\n for (int x = 0; x < this.getWidth(); ++x) {\n for (int channel = 0; channel < 3; ++channel) {\n this.data[y][x][channel] = ((x / size + y / size) % 2 == 1) ? 0 : 255;\n }\n }\n }\n }",
"public void testSetCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.setCell(1, 2, MineSweeperCell.FLAGGED_MINE);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\");\r\n }",
"void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }",
"private void revealTiles() {\n\n for (int i = 0; i < minefield.getRows(); i++) {\n for (int j = 0; j < minefield.getCols(); j++) {\n if (minefield.getMinefield()[i][j].isRevealed()\n && !minefield.getMinefield()[i][j].isMined()) {\n tileLabel[i][j].setText(\"<html><b>\" + minefield.getMinefield()[i][j].getMinedNeighbours() + \"</html></b>\");\n tile[i][j].setBackground(new Color(208, 237, 243));\n switch (tileLabel[i][j].getText()) {\n case \"<html><b>0</html></b>\":\n tileLabel[i][j].setText(\"\");\n break;\n case \"<html><b>1</html></b>\":\n tileLabel[i][j].setForeground(Color.blue);\n break;\n case \"<html><b>2</html></b>\":\n tileLabel[i][j].setForeground(new Color(0, 100, 0));\n break;\n case \"<html><b>3</html></b>\":\n tileLabel[i][j].setForeground(Color.red);\n break;\n case \"<html><b>4</html></b>\":\n tileLabel[i][j].setForeground(new Color(75, 0, 130));\n break;\n case \"<html><b>5</html></b>\":\n tileLabel[i][j].setForeground(new Color(130, 0, 0));\n break;\n case \"<html><b>6</html></b>\":\n tileLabel[i][j].setForeground(new Color(0, 153, 153));\n break;\n case \"<html><b>7</html></b>\":\n tileLabel[i][j].setForeground(Color.black);\n break;\n case \"<html><b>8</html></b>\":\n tileLabel[i][j].setForeground(Color.darkGray);\n break;\n }\n }\n }\n }\n frame.repaint();\n }",
"public Knight(ChessBoard board, Player player) {\n super(\"knight\", board, player);\n if (player == Player.WHITE) { // White player\n this.piece_image_path = \"assets/white_knight.png\";\n } else { // Black player\n this.piece_image_path = \"assets/black_knight.png\";\n }\n }",
"public void setTile(int x, int y) {\n/* 748 */ this.e.setTile(x, y);\n/* 749 */ this.k = getTileIdx();\n/* */ \n/* */ \n/* 752 */ String str = (String)this.f.f(this.k);\n/* 753 */ if (str.equals(\"none\")) {\n/* 754 */ this.h = 0;\n/* */ }\n/* 756 */ else if (str.equals(\"rct\")) {\n/* 757 */ this.h = 1;\n/* 758 */ c();\n/* */ }\n/* 760 */ else if (str.equals(\"ict\")) {\n/* 761 */ this.h = 2;\n/* 762 */ d();\n/* */ } else {\n/* */ \n/* 765 */ throw new IllegalArgumentException(\"Component transformation not recognized\");\n/* */ } \n/* */ }",
"private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public void init() {\n Image bgImage = assets().getImage(\"images/bg.png\");\r\n ImageLayer bgLayer = graphics().createImageLayer(bgImage);\r\n graphics().rootLayer().add(bgLayer);\r\n\r\n // Create tiles\r\n tiles = new int[BOARD_MAX_WIDTH][BOARD_MAX_HEIGHT];\r\n printTiles();\r\n\r\n // Place mines at random positions\r\n int placedMines = 0;\r\n Random r = new Random();\r\n while (placedMines < MINES) {\r\n int row = r.nextInt(BOARD_MAX_WIDTH);\r\n int col = r.nextInt(BOARD_MAX_HEIGHT);\r\n if (tiles[row][col] == TILE_EMPTY) {\r\n tiles[row][col] = TILE_MINE;\r\n placedMines++;\r\n }\r\n }\r\n printTiles();\r\n\r\n // Count number of mines around blank tiles\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n // Check surrounding tiles if mine\r\n if (tiles[row][col] == TILE_MINE) {\r\n for (int rowCheck = -1; rowCheck <= 1; rowCheck++) {\r\n for (int colCheck = -1; colCheck <= 1; colCheck++) {\r\n if (tileExistAndNotMine(row+rowCheck, col+colCheck)) {\r\n tiles[row+rowCheck][col+colCheck]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n printTiles();\r\n\r\n // Create tile map\r\n Map<Integer, TileType> tileMap = new HashMap<Integer, TileType>();\r\n tileMap.put(0, TileType.EMPTY);\r\n tileMap.put(1, TileType.ONE);\r\n tileMap.put(2, TileType.TWO);\r\n tileMap.put(3, TileType.THREE);\r\n tileMap.put(4, TileType.FOUR);\r\n tileMap.put(5, TileType.FIVE);\r\n tileMap.put(6, TileType.SIX);\r\n tileMap.put(7, TileType.SEVEN);\r\n tileMap.put(8, TileType.EIGHT);\r\n tileMap.put(9, TileType.MINE);\r\n\r\n // Create a GroupLayer to hold the sprites\r\n GroupLayer groupLayer = graphics().createGroupLayer();\r\n graphics().rootLayer().add(groupLayer);\r\n\r\n // Create graphic tiles\r\n tileList = new ArrayList<Tile>();\r\n for (int row = 0; row < BOARD_MAX_WIDTH; row++) {\r\n for (int col = 0; col < BOARD_MAX_WIDTH; col++) {\r\n Tile tile = new Tile(groupLayer, col*Tile.SIZE, row*Tile.SIZE, tileMap.get(tiles[row][col]), row, col);\r\n tileList.add(tile);\r\n }\r\n }\r\n\r\n // Timer text\r\n CanvasImage canvasImage = graphics().createImage(160, 70);\r\n timerLabel = canvasImage.canvas();\r\n ImageLayer countDownLayer = graphics().createImageLayer(canvasImage);\r\n countDownLayer.setTranslation(180, 10);\r\n graphics().rootLayer().add(countDownLayer);\r\n\r\n // Cleared tiles text\r\n CanvasImage clearedTilesImage = graphics().createImage(160, 70);\r\n clearedTilesLabel = clearedTilesImage.canvas();\r\n ImageLayer clearedTilesLayer = graphics().createImageLayer(clearedTilesImage);\r\n clearedTilesLayer.setTranslation(180, 30);\r\n graphics().rootLayer().add(clearedTilesLayer);\r\n updateClearedTiles();\r\n }",
"public LabMineSweeper( int nRows, int nCols, int seed, int pct ) \n {\n rows = nRows;\n cols = nCols;\n percent = pct;\n \n mineField = new MineTile[ nRows ][ nCols ]; \n theMines = new int[ nRows ][ nCols ]; \n theCounts = new int[ nRows ][ nCols ];\n \n layMineField( seed , percent );\n determineCounts( );\n \n for( int r = 0; r < nRows; r++)\n {\n for( int c = 0; c < nCols; c++)\n {\n mineField[ r ][ c ] = new MineTile( r, c, SIZE , this );\n mineField[ r ][ c ].setCount( theCounts[ r ][ c ]); \n }\n }\n System.out.println( this );\n }",
"public void drawTile() {\n\n }",
"public Knights(Pane layer, Castle src, Castle target)\r\n\t{\r\n\t\tsuper(layer, Settings.COST_PRODUCTION_KNIGHT, Settings.TIME_COST_KNIGHT, \r\n\t\t\t\tSettings.SPEED_KNIGHT, Settings.DAMMAGES_KNIGHT, Settings.DAMMAGES_KNIGHT, src, target);\r\n\t\tr.setFill(Color.GREY);\r\n\t}",
"public void fillTheBoard() {\n for (int i = MIN; i <= MAX; i++) {\n for (int j = MIN; j <= MAX; j++) {\n this.getCells()[i][j] = new Tile(i, j, false);\n }\n }\n }",
"private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }",
"public void setUp()\r\n {\r\n board = new MineSweeperBoard(4, 4, 1);\r\n }",
"public void setSightRange(int n){\n\tsightRange = n;\n }",
"public Knight(String color, Position position){\n super(\"Knight\", color, position);\n\n List<Position> directions = new ArrayList<Position>();\n directions.add(new Position(1,-2));\n directions.add(new Position(2,-1));\n directions.add(new Position(2,1));\n directions.add(new Position(1,2));\n directions.add(new Position(-1,-2));\n directions.add(new Position(-2,-1));\n directions.add(new Position(-1,2));\n directions.add(new Position(-2,1));\n setDirectionVectors(directions);\n\n if (color.equals(\"White\")){\n setImageResource(R.mipmap.white_knight_foreground);\n }\n else{\n setImageResource(R.mipmap.black_knight_foreground);\n }\n\n }",
"public int getActualTileWidth() {\n return 32;\n }",
"private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public TileBoard(int n){\n\t\tsize = n;\n\t\tinitTiles();\n\t\torganizeTiles();\n\t\tsetUpInputListenerDelegator();\n\t}",
"public Level(int width, int height) {\n\t\ttiles = new byte[width * height];\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tthis.generateLevel();\n\t}",
"@Override\n protected void generateTiles() {\n }",
"void setTileColor(int a_player)\n {\n if (a_player == 0)\n {\n this.tileColor = \"BLACK\";\n }\n else if (a_player == 1)\n {\n this.tileColor = \"RED\";\n }\n else\n {\n this.tileColor = null;\n }\n }",
"private void setMines(){\n Random random = new Random();\r\n int counter = mines;\r\n while(counter>0){\r\n int rx = random.nextInt(this.x); //without +1 because it can be 0\r\n int ry = random.nextInt(this.y);\r\n if( ! this.grid[rx][ry].isMine() ){\r\n this.grid[rx][ry].setMine();\r\n counter--; \r\n }\r\n }\r\n \r\n }",
"public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}",
"public void setWalls(int e, int n, int w, int s){\n\t\tsetWall(\"east\",e);\n\t\tsetNeighborsWall(\"east\",e);\n\t\tsetWall(\"north\",n);\n\t\tsetNeighborsWall(\"north\",n);\n\t\tsetWall(\"west\",w);\n\t\tsetNeighborsWall(\"west\",w);\n\t\tsetWall(\"south\",s);\n\t\tsetNeighborsWall(\"south\",s);\n\t}",
"public void setBoard() {\n for (int i = 0; i < 10 ; i++) {\n board[i] = coordinator.holes[i].getNumberOfMarbleBalls();\n }\n }",
"public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }",
"public Knight() {\r\n\thp = 150;\r\n\tstrength = 100;\r\n\tdefense = 60;\r\n\tattack = .2;\r\n\tevade=0;\r\n\tcrit=0;\r\n }",
"private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }",
"public Knight(String name, int weight) {\n this.name = name;\n this.weight = weight;\n }",
"public GrassTile(int id) {\r\n\t\tsuper(Color.GREEN, id);\r\n\t}",
"public void sizeOfTiles(int size)\n{\n if(m != null )\n {\n m.getOutputImageManager().setTileSize(size);\n //refresh row shift for new size of tiles\n if(m.getOutputImageManager().getMosaic() != null)\n {\n m.getOutputImageManager().setEvenRowShift(m.getOutputImageManager().getEvenRowShift());\n m.getOutputImageManager().setOddRowShift(m.getOutputImageManager().getOddRowShift());\n m.getOutputImageManager().getMosaic().setHoverIndex(0,0);\n //println(m.getOutputImageManager().getMosaic().getFlipH()[0].length);\n }\n m.getOutputImageManager().setToRerender();\n }\n}",
"public Knight(final Side side, final Coordinate coordinate) {\n super(side, coordinate);\n }",
"public TileView(int val){\n\n\t\ttile = new Rectangle();\n\t\tvalue = new Text(getNumRank(val));\n\t\t//tableau de couleur des pions\n\t\tColor color[] = \t {Color.web(\"0xeee4da\"), Color.web(\"0xede0c8\"), Color.web(\"0xf2b179\"), Color.web(\"0xec8d54\"), Color.web(\"0xf67c5f\"), Color.web(\"0xea5937\"), Color.web(\"0xf3d86b\"), Color.web(\"0xf1d04b\"), Color.web(\"0xf3d86b\")};\n\t\t//tableau de couleur de la valeur\n\t\tColor colorString[]= {Color.web(\"0x776e65\"), Color.web(\"0x776e65\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\")};\n\t\t\n\t\t//taille du pion et angle arrondi\n\t\ttile.setWidth(80);\n\t\ttile.setHeight(80);\n\t\ttile.setArcWidth(20);\n\t\ttile.setArcHeight(20);\n\t\ttile.setFill(color[val-1]);\n\t\t\n\t\t//ajout de texte avec le chiffre\n\t\tvalue.setFont(new Font(25));\n\t\tvalue.setFill(colorString[val-1]);\n\t\t//deplacement de la valeur suivant le nombre de chiffre dans le nombre\n\t\tif(val <= 3){\n\t\t\tvalue.setX(30);\n\t\t\tvalue.setY(50);\n\t\t}else if(val <= 6){\n\t\t\tvalue.setX(25);\n\t\t\tvalue.setY(50);\n\t\t}else{\n\t\t\tvalue.setX(15);\n\t\t\tvalue.setY(50);\n\t\t}\n\t\t\n\t\tthis.getChildren().add(tile);\n\t\tthis.getChildren().add(value);\n\t}",
"@Override\n\tprotected void generateTiles() {\n\t}",
"private void setLit(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setLit(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}",
"protected abstract void paintBoard() throws TilePixelOutOfRangeException;",
"protected void registerTile(int x, int y) {}",
"public void setTileSize(int tSize) {\r\n\t\tthis.tSize = tSize;\r\n\t}",
"public int getTileLevel()\n {\n return tileLevel;\n }",
"private void setRandomValueForTiles(GameTiles tiles) {\n\t\tint tileCounts = gameSize * gameSize;\n\t\tRandom random = new Random();\n\t\tint randomRow, randomColumn;\n\t\tint value = 0;\n\t\tdo {\n\t\t\trandomRow = random.nextInt(gameSize);\n\t\t\trandomColumn = random.nextInt(gameSize);\n\n\t\t\t// if the random tile detected already defined then iterating to find undefined\n\t\t\t// tile to define it\n\t\t\twhile (tiles.getTile(randomRow, randomColumn).getValue() != TilesVariable.UNDEFINED_TILE_VALUE.getValue())\n\t\t\t\tif (++randomColumn >= gameSize) {\n\t\t\t\t\trandomColumn = 0;\n\t\t\t\t\tif (++randomRow >= gameSize)\n\t\t\t\t\t\trandomRow = 0;\n\t\t\t\t}\n\n\t\t\ttiles.getTile(randomRow, randomColumn).setValue(value);\n\t\t} while (++value < tileCounts);\n\t}",
"public void setTile(Tile tile) {\n\t\tthis.tile = tile;\n\t}",
"public RockerSwitch(int x, int y) {\n this.x = x;\n this.y = y;\n this.width = 21;\n this.height = 12;\n state |= STATE_SIZE_FIXED;\n }",
"void setLegs(int legs);",
"public void setNetworth(int value);",
"void loadCheckerBoard(int tileSize);",
"@Test\n public void testTerrainDimension() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_HEGHT / TerrainFactoryImpl.TERRAIN_ROWS);\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_WIDTH / TerrainFactoryImpl.TERRAIN_COLUMNS);\n level.levelUp(); \n });\n }",
"private void newPowerUp() {\r\n int row = 0;\r\n int column = 0;\r\n do {\r\n row = Numbers.random(0,maxRows-1);\r\n column = Numbers.random(0,maxColumns-1);\r\n } while(isInSnake(row,column,false));\r\n powerUp = new Location(row,column,STOP);\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }",
"public Row(Context context, boolean black, int x, int y, int tileWidth, int tileHeight, int index) {\n this.blackFirst = black;\n this.context = context;\n this.index = index;\n this.x = x;\n this.y = y;\n dy = GamePanel.gameSpeed;\n\n\n// BLACK_BITMAP_TILE = BitmapFactory.decodeResource(context.getResources(), R.drawable.black);\n// WHITE_BITMAP_TILE = BitmapFactory.decodeResource(context.getResources(), R.drawable.white);\n\n tiles = new ArrayList<>();\n if (blackFirst) {\n// for(int i = 0; i < ChessBoard.COLUMN_NUM; i ++){\n// Tile tile;\n// if((i % 2) == 0) {\n// tile = new Tile(BLACK_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, true );\n// } else {\n// tile = new Tile(WHITE_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, false );\n// }\n// tiles.add(i, tile);\n// }\n for (int i = 0; i < GamePanel.COLUMN_NUM; i++) {\n Tile tile;\n if ((i % 2) == 0) {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, true, i, index);\n } else {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, false, i, index);\n }\n tiles.add(i, tile);\n }\n } else {\n// for(int i = 0; i < ChessBoard.COLUMN_NUM; i ++){\n// Tile tile;\n// if((i % 2) == 0) {\n// tile = new Tile(WHITE_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, false );\n// } else {\n// tile = new Tile(BLACK_BITMAP_TILE, x + i * tileWidth, y, tileWidth, tileHeight, true );\n// }\n// tiles.add(i, tile);\n// }\n\n for (int i = 0; i < GamePanel.COLUMN_NUM; i++) {\n Tile tile;\n if ((i % 2) == 0) {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, false, i, index);\n } else {\n tile = new Tile(x + i * tileWidth, y, tileWidth, tileHeight, true, i, index);\n }\n tiles.add(i, tile);\n }\n }\n\n\n }",
"private void setDefaultMonsterCords()\n {\n this.xBeginMap=0;\n this.yBeginMap=0;\n this.xEndMap=16;\n this.yEndMap=16;\n\n this.xBeginSrc=0;\n this.yBeginSrc=0;\n this.xEndSrc=0;\n this.yEndSrc=0;\n\n }",
"public int getTileHeight() {\n return 8;\n }",
"public void setThickness(int thickness) {\n\t\tthis.thickness = thickness;\n\t\tint ht = thickness;\n\t\tht = ht - ht / 2 + 2;\n\t\tif (thickness % 2 != 0)\n\t\t\tht -= 1;\n\t\trectF = new RectF(ht, ht, getWidth() - ht, getHeight() - ht);\n\t\tinvalidate();\n\t}",
"static void pixels() {\n flag = 0;\n // On start-up this will ask for the dimensions of the board until you enter a valid number.\n // If there already is a dimension set, the dialogue will close properly even with invalid input.\n while( true ) {\n try {\n String input = JOptionPane.showInputDialog(content, \"Enter n. 1 < n < 101\");\n tileNum = Integer.parseInt(input);\n \n if( tileNum > 100 || tileNum < 2 ) continue;\n break;\n } catch ( Exception e ) {\n if( tiles.size() != 0 ) return;\n }\n }\n start = 0;\n \n // Wipes and prepares the content pane for new tiles.\n tiles.clear();\n if( content == null ) {\n content = new JPanel();\n content.setBackground(Color.gray);\n content.setSize(self.getContentPane().getSize().width, self.getContentPane().getSize().height * 6 / 7);\n content.setLocation(0, 0);\n content.setLayout(new GridLayout(tileNum, tileNum, 0, 0));\n \n self.add(content);\n }\n content.removeAll();\n content.repaint();\n \n // Fills the content pane with tileNum * tileNum tiles.\n for( int i = 0; i < tileNum * tileNum; i++ ) {\n Tile temp = new Tile(white);\n if( i == 0 ) temp.setBackground(red);\n tiles.add(temp);\n content.add(temp);\n }\n content.revalidate();\n }",
"public void reset( )\n\t{\n\t\tint count = 1;\n\t\tthis.setMoves( 0 );\n\t\tfor( int i = 0; i < this.getSize(); i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < this.getWidth(); j++ )\n\t\t\t{\n\t\t\t\tthis.setTile( count++, i, j );\n\t\t\t\tif( i == getSize( ) - 1 && j == getWidth( ) - 1 ) {\n\t\t\t\t\tthis.setTile( -1, i, j );\n\t\t\t\t\tlocationX = i;\n\t\t\t\t\tlocationY = j;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public void initTiles(Renderer r) {\n\n\t\tshadowMap = new int[tiles.length][tiles[0].length];\n\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\tfor (int j = 0; j < tiles[0].length; j++) {\n\t\t\t\t// r.addModel(tiles[i][j].getModel());\n\t\t\t\tTile tile = tiles[i][j];\n\n\t\t\t\t// Add model of the tile\n\t\t\t\tr.addModel(tile.getModel());\n\n\t\t\t\t// Setup shadow map\n\t\t\t\tif (tile.blockLight()) {\n\t\t\t\t\tshadowMap[i][j] = 1;\n\t\t\t\t} else {\n\t\t\t\t\tshadowMap[i][j] = 0;\n\t\t\t\t}\n\n\t\t\t\t// If there are any items add them too\n\t\t\t\tif (tile instanceof BasicFloor) {\n\t\t\t\t\tBasicFloor floor = (BasicFloor) tile;\n\t\t\t\t\tif (!floor.getItems().isEmpty()) {\n\t\t\t\t\t\tfor (Item item : floor.getItems()) {\n\t\t\t\t\t\t\tr.addModelData(item.getModelData());\n\t\t\t\t\t\t\tr.addModel(item.getModel());\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\tr.getCamera(\"MainCamera\").setTarget(\n\t\t\t\tnew Vec3(tiles.length / 2 * 0.2, 0, tiles[0].length / 2 * 0.2));\n\t\tr.setMap(shadowMap);\n\t}",
"public void setGrassTileRaw(int grassTileRaw[]) {\n this.grassTileRaw = grassTileRaw;\n }",
"private void initialize(int index) {\n\t\tthis.NW = new Point((int) this.getCoarseGrainedMinX(), (int) this.getCoarseGrainedMinY());\n\t\tthis.NE = new Point((int) this.getCoarseGrainedMaxX(), (int) this.getCoarseGrainedMinY());\n\t\tthis.SW = new Point((int) this.getCoarseGrainedMinX(), (int) this.getCoarseGrainedMaxY());\n\t\tthis.SE = new Point((int) this.getCoarseGrainedMaxX(), (int) this.getCoarseGrainedMaxY());\n\t\tswitch (this.type) {\n\t\tcase (TownTile.GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.WALL):\n\t\t\tthis.addImageWithBoundingBox(ResourceManager.getImage(DogWarriors.wallImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.EXIT_ROAD):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.roadImages[index]));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.EXIT_GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f, 16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.ROAD):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.roadImages[index]));\n\t\t\tbreak;\n\t\tcase (TownTile.SHRUB):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.worldImages[index]), \n\t\t\t\t\tnew Vector(0.0f, -16.0f));\n\t\t\tthis.addShape(new ConvexPolygon(16.0f, 16.0f));\n\t\t\tbreak;\n\t\tcase (TownTile.CAT_GRASS):\n\t\t\tthis.addImage(ResourceManager.getImage(DogWarriors.grassImages[index]));\n\t\t\tbreak;\n\t\t}\n\t}",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }",
"public void setMoveCost(TerrainType terrain, int cost)\n {\n for( Weathers w : Weathers.values() )\n {\n moveCosts.get(w).setMoveCost(terrain, cost);\n }\n }",
"private void enableAllTiles() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tplayerBoard[j][i].setEnabled(true);\n\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"t\");\n\t\t\t\tplayerBoard[j][i].setForeground(Color.lightGray);\n\t\t\t\tplayerBoard[j][i].setBackground(Color.darkGray);\n\t\t\t}\n\t\t}\n\t}",
"int getTileSize();",
"public void adjustDown() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y + 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y + 4;\n grassTiles[x][y].y = grassTiles[x][y].y + 4;\n }\n }",
"public SandTile(float x, float y) {\n\t\tsuper(x, y, ImageLibrary.get(\"sand_tile\"));\n\t}",
"private void setShips() {\n //This clears the board. To \"Invalidate\"\n for (int x = 0; x < maxN; x++) {\n for (int y = 0; y < maxN; y++) {\n ivCell[x][y].setBackgroundResource(gridID);\n }\n }\n\n for (Ship s : ships) {\n for (int i = 0; i < s.getShipSize(); i++) {\n if(player)ivCell[s.getBodyLocationPoints()[i].x][s.getBodyLocationPoints()[i].y].setBackgroundResource(s.getBodyResources()[i]);\n updateOccupiedCells(s.getBodyLocationPoints());\n }\n }\n\n }",
"public void SetWall(int i, int j, int val) {\n\t\tmaze[i][j] = val;\n\t}",
"public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\n }",
"public FireTile() {\n super();\n setUtility(5);\n }"
] | [
"0.64374924",
"0.64172184",
"0.62831384",
"0.6271354",
"0.6266375",
"0.6018772",
"0.6008625",
"0.5957885",
"0.5918987",
"0.59113085",
"0.5883235",
"0.58454126",
"0.57885605",
"0.57756114",
"0.57747716",
"0.57524973",
"0.57178706",
"0.5681865",
"0.56291896",
"0.56060797",
"0.5599766",
"0.5597305",
"0.55892694",
"0.55854046",
"0.55793905",
"0.5570468",
"0.55372983",
"0.55299205",
"0.55196714",
"0.55074656",
"0.55035233",
"0.5491365",
"0.54796",
"0.5476879",
"0.54764545",
"0.5474301",
"0.5456436",
"0.54519236",
"0.54436296",
"0.5419134",
"0.5412023",
"0.5410466",
"0.5408833",
"0.54029834",
"0.54018897",
"0.5373897",
"0.5373257",
"0.5355077",
"0.5349932",
"0.534118",
"0.5334863",
"0.533376",
"0.533164",
"0.53230673",
"0.5309048",
"0.53073853",
"0.5304847",
"0.5303119",
"0.53003144",
"0.52981955",
"0.5297212",
"0.52806246",
"0.5273701",
"0.5264341",
"0.52558374",
"0.52537566",
"0.5252102",
"0.524453",
"0.52397645",
"0.5238123",
"0.52266246",
"0.52249295",
"0.52194196",
"0.5209434",
"0.5203746",
"0.51974934",
"0.519697",
"0.51963145",
"0.51945657",
"0.51756674",
"0.51657254",
"0.51642966",
"0.51604766",
"0.51601064",
"0.51590085",
"0.5158014",
"0.5156566",
"0.5149448",
"0.5138579",
"0.51376504",
"0.5133793",
"0.51306635",
"0.5129701",
"0.51256245",
"0.5116592",
"0.5115935",
"0.51106477",
"0.5105483",
"0.5105066",
"0.5101396"
] | 0.640919 | 2 |
Retrieve Knights from the top of the Knight Stack | public int[] popKnight(int pop) throws Exception {
if(4-numKnights < pop)
throw new Exception();
int[] removed = new int[pop];
int valid = topKnight();
for(int i = 0; i < pop; i++){
if(topKnight() != valid)
throw new Exception();
removed[i] = knights[numKnights - 1];
numKnights--;
}
return removed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int topKnight() {\r\n\t\treturn knights[numKnights - 1];\r\n\t}",
"public int top();",
"private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }",
"public int knightWithJugIn() {\n \n return knightsBefore.car();\n }",
"public int getTopWeight(){\r\n\t \treturn this.topWeight;\r\n\t }",
"int getNumberOfStonesOnBoard();",
"public int top() { return 0; }",
"int getHungerPoints(ItemStack stack);",
"int top();",
"public int minKnight() {\r\n\t\treturn enviroment;\r\n\t}",
"public WumpusState wellItsDarkNow(GameTile[][] visibleMap) {\r\n\t\tQueue<WumpusState> queue = new LinkedList<WumpusState>();\r\n\t\tHashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>();\t\r\n\t\tWumpusState state = new WumpusState(visibleMap, playerX, playerY);\r\n\t\tlong nodesExpanded = 0;\r\n\t\tqueue.add(state);\r\n\t\tif(state.getParent()!=null) {\t\r\n\t\t\tqueue.add(state.getParent());\r\n\t\t}\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tWumpusState currentState = queue.remove();\r\n\t\t\tSystem.out.println(currentState.toString());\r\n\t\t\t\r\n\t\t\tif(currentState.getGoldCollected()) {\r\n\t\t\t\tArrayList<AgentAction> actions = currentState.getAllActions();\r\n\t\t\t\tfor(int i=1;i<actions.size(); i++) {\r\n\t\t\t\t\tSystem.out.println(\"gold\");\r\n\t\t\t\t\tSystem.out.println(actions.get(i));\r\n\t\t\t\t\tnextMoves.add(actions.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tgoldCollected = true;\r\n\t\t\t\treturn currentState;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(currentState.spaceNotVisited()) {\r\n\t\t\t\tArrayList<AgentAction> actions = currentState.getAllActions();\r\n\t\t\t\tfor(int i=1;i<actions.size(); i++) {\r\n\t\t\t\t\tSystem.out.println(\"null\");\r\n\t\t\t\t\tSystem.out.println(actions.get(i));\r\n\t\t\t\t\tnextMoves.add(actions.get(i));\r\n\t\t\t\t}\r\n\t\t\t\treturn currentState;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(visitedStates.containsKey(currentState.toString())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvisitedStates.put(currentState.toString(), true);\r\n\t\t\t\tWumpusState[] childrenOfCurrentChild = currentState.generateChildrenStates();\r\n\t\t\t\tfor(int j=0; j<childrenOfCurrentChild.length; j++) {\r\n\t\t\t\t\tif(childrenOfCurrentChild[j]!=null) {\r\n\t\t\t\t\t\tqueue.add(childrenOfCurrentChild[j]);\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\tgoldCollected = true;\r\n\t\treturn state;\r\n\t\t\r\n\t}",
"private Scorestreak getScorestreak(Player player) {\n Game game = Dogfight.instance.getGame(player);\n\n if (game != null) {\n return game.getScoreRegistry().getScorestreak(player);\n }\n\n return null; //No game found\n }",
"public int getSpins() {\n return spinsLeft;\n }",
"private void goKnight(Board B, Graph G) {\n\n int start = B.knight;\n int end = B.gold;\n\n Queue<Integer> q = new Queue<Integer>();\n for (int v = 0; v < G.V(); v++)\n distTo[v] = INFINITY;\n\n int v = -1;\n distTo[start] = 0;\n marked[start] = true;\n q.enqueue(start);\n\n while (!q.isEmpty() && end != v) {\n v = q.dequeue();\n\n\n int tl_dest_R = (v / B.width);\n int tl_dest_C = (v % B.width);\n\n ArrayList<Integer> destinations = new ArrayList<Integer>();\n\n for (Move M : G.moves) {\n\n\n if (validateMove(M, v, G, B)) {\n\n if (true) {\n\n //System.out.println(thereispath(M, B.a.get(tl_dest_R).get(tl_dest_C), newDestination(M, v, G, B), G, B));\n\n if (!marked[newDestination(M, v, G, B)]) {\n\n\n q.enqueue(newDestination(M, v, G, B));\n marked[newDestination(M, v, G, B)] = true;\n edgeTo[newDestination(M, v, G, B)] = v;\n distTo[newDestination(M, v, G, B)] = distTo[v] + 1;\n\n // System.out.println(newDestination(M, v, G, B) + \" \" + edgeTo[newDestination(M, v, G, B)]);\n\n }\n\n\n }\n\n // System.out.println();\n\n }\n\n }\n\n\n //break;\n }\n\n System.out.println();\n\n Stack<Integer> reverse = new Stack<Integer>();\n\n\n int temp = end;\n reverse.push(temp);\n\n while (true) {\n\n\n temp = edgeTo[temp];\n reverse.push(temp);\n\n if (temp == start)\n break;\n }\n\n int last = 0;\n\n int temp_row = 0, temp_column = 0;\n\n String te = \"\";\n\n while (!reverse.isEmpty()) {\n\n if (last != 0) {\n te += \" -> \";\n }\n\n\n last = reverse.pop();\n\n\n temp_row = last / B.width;\n temp_column = last % B.width;\n\n\n te += B.a.get(temp_row).get(temp_column).toT();\n\n\n }\n\n if (distTo[last] == INFINITY) {\n System.out.println(\"No path to the target.\");\n } else {\n\n int a = 0, b = 0;\n\n a = B.gold / B.width;\n b = B.gold % B.width;\n int c = 0, d = 0;\n\n c = B.knight / B.width;\n d = B.knight % B.width;\n\n System.out.println(distTo[last] + \" steps\");\n System.out.println(B.a.get(c).get(d).toT() + \" to \" + B.a.get(a).get(b).toT() + \": \" + te);\n\n }\n\n\n }",
"public int top() {\r\n return top;\r\n }",
"public int top() {\r\n return top;\r\n }",
"@Override\n public int getRunHeat() {\n return engine.getRunHeat();\n }",
"public int getTop() {\n return top;\n }",
"public int top() {\n return top;\n }",
"public Integer getTop() {\n return top;\n }",
"public int getBTStreak50()\n\t{\n\t\treturn battletowerCurrentStreakLvl50;\n\t}",
"public int top() {\n return top.value;\n }",
"private static List<Integer> getTopView(TreeNode root) {\n List<Integer> output = new ArrayList<>();\n if (root == null) return output;\n\n Map<Integer, Integer> treeMap = new TreeMap<>();\t/* TreeMap is sorted according to the natural ordering of its keys */\n\n Queue<Pair> queue = new LinkedList<>();\n queue.add(new Pair(root, 0));\n\n while (!queue.isEmpty()) {\n int queueSize = queue.size();\n\n while (queueSize-- > 0) {\n\n Pair pair = queue.poll();\n TreeNode currNode = pair.node;\n int horizontalDistance = pair.horizontalDistance;\n\n if (!treeMap.containsKey(horizontalDistance)) {\n treeMap.put(horizontalDistance, currNode.data);\n }\n\n if (currNode.left != null) queue.add(new Pair(currNode.left, horizontalDistance - 1));\n if (currNode.right != null) queue.add(new Pair(currNode.right, horizontalDistance + 1));\n }\n }\n\n output.addAll(treeMap.values());\n return output;\n }",
"int getNumberOfStonesLeftToPlace();",
"@Override\n public int getSprintHeat() {\n return engine.getSprintHeat();\n }",
"public float getTop() {\n return internalGroup.getTop();\n }",
"public List<Integer> topk() {\n Iterator it = minheap.iterator();\r\n List<Integer> result = new ArrayList<Integer>();\r\n while (it.hasNext()) {\r\n result.add((Integer) it.next());\r\n }\r\n Collections.sort(result, Collections.reverseOrder());\r\n return result;\r\n }",
"public int getTop() {\n\treturn top;\n }",
"public int numWaysTopDown(int n, int k) {\n Integer[] mem = new Integer[n + 1]; // memoized table\n return paint(n, k, mem); // call recursive helper\n }",
"public Piece[] getTopLine() {\n Piece[] topLine = new Piece[3];\n for (int i = 0; i < this.getBoard().length; i += 1) {\n topLine[i] = this.getBoard()[i][2];\n }\n return topLine;\n }",
"void lowerNumberOfStonesOnBoard();",
"public int top() {\n return objects.peek();\n }",
"public int getBTStreakAny()\n\t{\n\t\treturn battletowerCurrentStreakAnyLvl;\n\t}",
"public int top() {\n\t\treturn stack.peek();\n \n }",
"public static Integer getXWins() {\n return humanVsHuman.XWins;\n }",
"public int top() {\n return One.peek();\n }",
"public final List<Integer> getHierarchyGaps() {\r\n\t\tList<Integer> gaps = new ArrayList<Integer>();\r\n\t\tgaps.add(0);\r\n\t\tHeaderItem root = header.getFirstRoot();\r\n\t\tif(root == null)\r\n\t\t\treturn gaps;\r\n\t\twhile(root.hasRootsInNextLevel()) {\r\n\t\t\troot = root.getFirstRootInNextLevel();\r\n\t\t\tgaps.add(header.getWidgetTop(root));\r\n\t\t}\r\n\t\treturn gaps;\r\n\t}",
"public int top() {\n if(!stack2.isEmpty()) {\n Integer k = stack2.pop();\n stack2.push(k);\n return k;\n }\n else {\n while(!stack1.isEmpty()) {\n stack2.push(stack1.pop());\n }\n Integer k = stack2.pop();\n stack2.push(k);\n return k;\n }\n }",
"public int top() {\n return stack1.peek();\n }",
"public synchronized LinkedList[] getKHopNeighbors()\r\n {\r\n return kHopNeighbors;\r\n }",
"public int getTop() {\n\t\treturn this.top;\n\t}",
"@Test\n public void testKnightPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(0, chessBoard.getPiece(0, 1).getRow());\n assertEquals(1, chessBoard.getPiece(0, 1).getColumn());\n\n assertEquals(0, chessBoard.getPiece(0, 6).getRow());\n assertEquals(6, chessBoard.getPiece(0, 6).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 1).getRow());\n assertEquals(1, chessBoard.getPiece(7, 1).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 6).getRow());\n assertEquals(6, chessBoard.getPiece(7, 6).getColumn());\n }",
"public TakPiece getTop(Point p){\n return stacks[p.x][p.y].top();\n }",
"public void CountWhiteDisks(){\n int counter =0;\n for (int i=0; i<8; i++){\n for (int j=0; j<8; j++){\n if (gameboard[i][j]==W){\n counter++;\n }\n }\n }\n whitedisks = counter;\n }",
"public int top() {\n return (int) one.peek();\n \n }",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }",
"public GMap<Integer, Stack> getStacks();",
"public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }",
"private List<Double> getDistanceFromTopOfTopLayersToTopEdge(int nominalCoverTop) {\n List<Double> distanceFromCentreOfEachLayer = getDistanceFromCentreOfEachLayerToEdge(topDiameters, additionalTopDiameters, topVerticalSpacings, nominalCoverTop);\n List<Integer> maxDiameters = getMaxDiametersForEachLayer(topDiameters, additionalTopDiameters);\n\n return IntStream\n .range(0, distanceFromCentreOfEachLayer.size())\n .mapToObj(i -> distanceFromCentreOfEachLayer.get(i) - 0.5 * maxDiameters.get(i))\n .collect(Collectors.toList());\n }",
"public BHDict getHaystack() { return (BHDict)get(haystack); }",
"public int stackTop() {\r\n\t return array[top];\r\n\t }",
"public Knights()\r\n\t{\r\n\t\tsuper(Settings.COST_PRODUCTION_KNIGHT, Settings.TIME_COST_KNIGHT, \r\n\t\t\t\tSettings.SPEED_KNIGHT, Settings.DAMMAGES_KNIGHT, Settings.DAMMAGES_KNIGHT);\r\n\t}",
"private Cell getSnowballTarget() {\n Cell[][] blocks = gameState.map;\n int mostWormInRange = 0;\n Cell chosenCell = null;\n\n for (int i = currentWorm.position.x - 5; i <= currentWorm.position.x + 5; i++) {\n for (int j = currentWorm.position.y - 5; j <= currentWorm.position.y + 5; j++) {\n if (isValidCoordinate(i, j)\n && euclideanDistance(i, j, currentWorm.position.x, currentWorm.position.y) <= 5) {\n List<Cell> affectedCells = getSurroundingCells(i, j);\n affectedCells.add(blocks[j][i]);\n int wormInRange = 0;\n for (Cell cell : affectedCells) {\n for (Worm enemyWorm : opponent.worms) {\n if (enemyWorm.position.x == cell.x && enemyWorm.position.y == cell.y\n && enemyWorm.roundsUntilUnfrozen == 0 && enemyWorm.health > 0)\n wormInRange++;\n }\n for (Worm myWorm : player.worms) {\n if (myWorm.position.x == cell.x && myWorm.position.y == cell.y && myWorm.health > 0)\n wormInRange = -5;\n }\n }\n if (wormInRange > mostWormInRange) {\n mostWormInRange = wormInRange;\n chosenCell = blocks[j][i];\n }\n }\n }\n }\n\n return chosenCell;\n }",
"public int getCurrentPawnRow(){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\treturn curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\treturn curPos.getBlackPosition().getTile().getRow();\n\t\t}\r\n }",
"LinkedHashMap<String, Integer> getTopScores() {\n return this.topScores;\n }",
"static int minStepToReachTarget(int knightPos[], int targetPos[], int N) {\n // x and y direction, where a knight can move\n int dx[] = {-2, -1, 1, 2, -2, -1, 1, 2};\n int dy[] = {-1, -2, -2, -1, 1, 2, 2, 1};\n\n // queue for storing states of knight in board\n Queue<Cell> q = new LinkedList<>();\n\n // push starting position of knight with 0 distance\n q.add(new Cell(knightPos[0], knightPos[1], 0));\n\n Cell t;\n int x, y;\n boolean[][] visit = new boolean[N + 1][N + 1];\n\n // loop untill we have one element in queue\n while (!q.isEmpty()) {\n t = q.poll();\n if (visit[t.x][t.y]) \n continue;\n visit[t.x][t.y] = true;\n\n // if current cell is equal to target cell,\n // return its distance\n if (t.x == targetPos[0] && t.y == targetPos[1]) {\n return t.dis;\n }\n\n // loop for all reahable states\n for (int i = 0; i < 8; i++) {\n x = t.x + dx[i];\n y = t.y + dy[i];\n\n // If rechable state is not yet visited and\n // inside board, push that state into queue\n if (isInside(x, y, N) && !visit[x][y]) {\n q.add(new Cell(x, y, t.dis + 1));\n }\n }\n }\n return 0;\n }",
"public int top() {\n if (data.size() != 0) {\n return data.get(data.size() - 1);\n }\n throw new RuntimeException(\"top: 栈为空,非法操作\");\n }",
"int peek() {\r\n\t\treturn stack[top-1];\r\n\t}",
"public int top() {\n\t\treturn count == 0? -1 : st[count-1];\r\n\t}",
"public Integer getTopbs() {\n return topbs;\n }",
"public void PrintKNeighbours() {\n\t\t\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tSystem.out.print(ptr.dim_weight+\" \");\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");\n\t}",
"public int top() {\n return list.peek();\n }",
"public abstract Integer getStationRainGaugeDepth(int stationId, int datetimeId);",
"E top();",
"public int top() {\n return topElem;\n }",
"private void CreatingBeautyContentTopK() {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \tbestBranches=objGrapB.relativePositionDepthSearchTopK(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,maxScreens,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \r\n\t \tBranch objBranch=new Branch();\r\n\t \t//bestBranches=objBranch.sortBranches(bestBranches);\r\n\t \t\r\n\t \t//System.out.print( \"CounterStates\"+objGrapB.getCounterIDs() );\r\n\t \r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branches foundeded\r\n\t \r\n\t Iterator<Branch> nombreIterator = bestBranches.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBranch elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getHeuristicValue()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t \t//Just here to implement the n screens!\r\n\t for(int i=0;i<maxScreens;i++)\r\n\t {//block from Lelis and Reis (>class GeradorDeFasses)\r\n/*\t \ttry {\r\n\t \t\tLevel levelScreen=PaintElements(((Branch)bestBranches.get(i)).getStates(),this.clone());\t\t\t\t\t\r\n\t\t\t\t\tScreen objScreen=new Screen();\r\n\t\t\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n\t \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t\t\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t\t\t \r\n\t\t\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\t\t\tcopiador.copy(\"\" + i, \"Screens/\");\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}*/\r\n\t }\r\n\t \r\n\t\t\t\r\n\t\t}",
"public List<Map<String, Integer>> getTopCards() {\n return topCards;\n }",
"public ILocation top()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n return stack.get(top - 1);\n }\n }",
"private void TopView(NodeTopView root) { \n\t\t\tclass QueueObj { \n\t\t\t\tNodeTopView NodeTopView; \n\t\t\t\tint hd; \n\n\t\t\t\tQueueObj(NodeTopView NodeTopView, int hd) { \n\t\t\t\t\tthis.NodeTopView = NodeTopView; \n\t\t\t\t\tthis.hd = hd; \n\t\t\t\t} \n\t\t\t} \n\t\t\tQueue<QueueObj> q = new LinkedList<QueueObj>(); \n\t\t\tMap<Integer, NodeTopView> topViewMap = new TreeMap<Integer, NodeTopView>(); \n\n\t\t\tif (root == null) { \n\t\t\t\treturn; \n\t\t\t} else { \n\t\t\t\tq.add(new QueueObj(root, 0)); \n\t\t\t} \n\n\t\t\tSystem.out.println(\"The top view of the tree is : \"); \n\t\t\t\n\t\t\t// count function returns 1 if the container \n\t\t\t// contains an element whose key is equivalent \n\t\t\t// to hd, or returns zero otherwise. \n\t\t\twhile (!q.isEmpty()) { \n\t\t\t\tQueueObj tmpNodeTopView = q.poll(); \n\t\t\t\tif (!topViewMap.containsKey(tmpNodeTopView.hd)) { \n\t\t\t\t\ttopViewMap.put(tmpNodeTopView.hd, tmpNodeTopView.NodeTopView); \n\t\t\t\t} \n\n\t\t\t\tif (tmpNodeTopView.NodeTopView.left != null) { \n\t\t\t\t\tq.add(new QueueObj(tmpNodeTopView.NodeTopView.left, tmpNodeTopView.hd - 1)); \n\t\t\t\t} \n\t\t\t\tif (tmpNodeTopView.NodeTopView.right != null) { \n\t\t\t\t\tq.add(new QueueObj(tmpNodeTopView.NodeTopView.right, tmpNodeTopView.hd + 1)); \n\t\t\t\t} \n\n\t\t\t} \n\t\t\tfor (Entry<Integer, NodeTopView> entry : topViewMap.entrySet()) { \n\t\t\t\tSystem.out.print(entry.getValue().data + \" \"); \n\t\t\t} \n\t\t}",
"public KnightsPosition() {\r\n row = 0;\r\n column = 0;\r\n }",
"public int peek() {\n int result;\n while(!stack.isEmpty()){\n cache.add(stack.removeLast());\n }\n result = cache.getLast();\n while(!cache.isEmpty()){\n stack.add(cache.removeLast());\n }\n System.out.println(result);\n return result;\n }",
"private Cell searchPowerUp() {\n for (Cell[] row : gameState.map) {\n for (Cell column : row) {\n if (column.powerUp != null)\n return column;\n }\n }\n\n return null;\n }",
"public int top() {\n \treturn list.get(list.size()-1);\n }",
"int getLeftMonsterIndex();",
"@VisibleForTesting\n public TaskStack getTopStack() {\n return this.mTaskStackContainers.getTopStack();\n }",
"ArrayList<Integer> getStepCounterTileX();",
"private ProblemModel findCheapestNode(){\n\t\tProblemModel ret = unvisitedPM.peek();\n\t\t\n\t\tfor(ProblemModel p : unvisitedPM){ \n\t\t\t//f(s) = depth + cost to make this move\n\t\t\tif(p.getCost() + p.getDepth() <= ret.getCost() + ret.getDepth()) ret = p;\n\t\t}\n\t\tunvisitedPM.remove(ret);\n\t\treturn ret;\n\t}",
"ArrayList<Integer> getStepCounterTileY();",
"public abstract Object top();",
"protected int getGraphTop(int channel) {\r\n\t\treturn topEdge + channel * getGraphHeight();\r\n\t}",
"public int getRuns();",
"public Cell hunt() {\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n if (cells[i][j].isVisited() == false && getNeighbors(cells[i][j], true).length >= 1) {\n //mark the found cell as visited\n cells[i][j].visit();\n //find all visited neighbors\n Cell[] visitedNeighbors = getNeighbors(cells[i][j], true);\n //connect this cell and one of the visited neighbors (choose randomly)\n cells[i][j].carveThrough(visitedNeighbors[numberGenerator.nextInt(visitedNeighbors.length)]);\n return cells[i][j];\n }\n }\n }\n return null;\n }",
"int getLeftMonster();",
"public static void main(String[] args)\n {\n int N = 30;\n int[] moves = new int[N];\n /*for (int i = 0; i < N; i++)\n moves[i] = -1;*/\n Arrays.fill(moves,-1);\n\n // Ladders\n moves[2] = 21;\n moves[4] = 7;\n moves[10] = 25;\n moves[19] = 28;\n\n // Snakes\n moves[26] = 0;\n moves[20] = 8;\n moves[16] = 3;\n moves[18] = 6;\n //efficiently find shortest path using Breadth First Search of the graph.\n System.out.println(\"Min Dice throws required is \" + getMinDiceThrows(moves, N));\n }",
"public int getKillboardpoints() {\n return killboardpoints;\n }",
"public Streak[] findStreaks() {\n List<Streak> streaks = new LinkedList<>();\n Streak s;\n Piece[][] arrs = new Piece[4][4];\n Piece[][] diagArr = new Piece[2][4];\n int f;\n for (int row = 0; row < 4; row++) {\n f = 4 * row;\n s = Streak.gotStreak(Arrays.copyOfRange(board, f, f + 4), Streak.Orientation.HORIZONTAL, row);\n if (s != null) {\n streaks.add(s);\n }\n arrs[0][row] = board[f];\n arrs[1][row] = board[f + 1];\n arrs[2][row] = board[f + 2];\n arrs[3][row] = board[f + 3];\n\n diagArr[0][row] = board[f + row];\n diagArr[1][row] = board[4 * (3 - row) + row];\n }\n for (int col = 0; col < 4; col++) {\n s = Streak.gotStreak(arrs[col], Streak.Orientation.VERTICAL, col);\n if (s != null) {\n streaks.add(s);\n }\n }\n for (int diag = 0; diag < 2; diag++) {\n s = Streak.gotStreak(diagArr[diag], Streak.Orientation.DIAGONAL, diag);\n if (s != null) {\n streaks.add(s);\n }\n }\n Streak[] st = new Streak[streaks.size()];\n return streaks.toArray(st);\n }",
"public State hillClimbing(){\r\n\t\tState currentState = start;\r\n\t\t\r\n\t\twhile(true){\r\n\t\t\tArrayList<State> successors = currentState.generateNeighbours(currentState);\r\n\t\t\tStatesGenerated= StatesGenerated + successors.size();\r\n\t\t\t\r\n\t\t\tState nextState = null;\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<successors.size(); i++){\r\n\t\t\t\tif(successors.get(i).compareTo(currentState) < 0){\r\n\t\t\t\t\tnextState = successors.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(nextState==null)\r\n\t\t\t\treturn currentState;\r\n\t\t\t\r\n\t\t\tcurrentState = nextState;\r\n\t\t}\r\n\t}",
"public RoundTable afterNextKnightQuits() {\n if(lunghezza == 1) {\n IntSList knsb = knightsAfter.cons(knightsBefore.car()).reverse().cdr();\n IntSList knsa = IntSList.NULL_INTLIST;\n return new RoundTable(knsb, knsa, numeroCompl-1);\n } else if (lunghezza == 2) {\n IntSList knsb = knightsAfter.cons(knightsBefore.car()).reverse();\n IntSList knsa = IntSList.NULL_INTLIST;\n return new RoundTable(knsb, knsa, numeroCompl-1);\n } else {\n IntSList knsb = knightsBefore.cdr().cdr();\n IntSList knsa = knightsAfter.cons(knightsBefore.car());\n return new RoundTable(knsb, knsa, numeroCompl-1);\n }\n }",
"@VisibleForTesting\n public TaskStack getTopStack() {\n if (DisplayContent.this.mTaskStackContainers.getChildCount() > 0) {\n return (TaskStack) DisplayContent.this.mTaskStackContainers.getChildAt(DisplayContent.this.mTaskStackContainers.getChildCount() - 1);\n }\n return null;\n }",
"public List<Integer> getTopSpacings() {\n return topSpacings;\n }",
"public K topValue() {\n\t\tif(top!=null)\r\n\t\t\treturn top.data;\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public T top() {\n \treturn stack.get(stack.size() - 1);\n }",
"public static Cell findEmptyNest(Chess chess)\n {\n Cell cell;\n String cellId = chess.getColor().toString().toLowerCase() + \"Nest\";\n for(int i = 1; i < 5; i ++)\n {\n cell = getCell(cellId + i);\n if (cell.getChess() == null)\n return cell;\n }\n return null;\n }",
"public int getTop() {\n return position[0] - (size - 1) / 2;\n }",
"public void updatePossibleMovesKnights(){}",
"public int getElementAtTopOfStack() {\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\n return myarray[top];\n \n }",
"int getParentMonsterIndex();",
"public int getCheeseToppings() {\n return cheeseToppings;\n }",
"public String getTop5() {\n\t\tboolean boo = false;\n\t\tArrayList<String> keys = new ArrayList<String>();\n\t\tkeys.addAll(getConfig().getConfigurationSection(\"player.\").getKeys(false));\n\t\tArrayList<Integer> serious = new ArrayList<Integer>();\n\t\tHashMap<Integer, String> seriousp = new HashMap<Integer, String>();\n\t\tfor (int i = 0; i < keys.size(); i++) {\n\t\t\tserious.add(getConfig().getInt(\"player.\" + keys.get(i) + \".gp\"));\n\t\t\tseriousp.put(getConfig().getInt(\"player.\" + keys.get(i) + \".gp\"), keys.get(i));\n\t\t}\n\t\tComparator<Integer> comparator = Collections.<Integer> reverseOrder();\n\t\tCollections.sort(serious, comparator);\n\t\tString retstr = \"\";\n\t\tfor (int i = 0; i < serious.size(); i++) {\n\t\t\tretstr += serious.get(i).toString() + \" - \" + seriousp.get(serious.get(i)) + \"\\n\";\n\t\t\tif (i == 6) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn retstr;\n\t}",
"public Card drawCardFromTop() {\n Card temp = this.cards [this.topCardIndex];\n this.topCardIndex++;\n return temp;\n }"
] | [
"0.7620839",
"0.58072567",
"0.56363755",
"0.56321734",
"0.5602532",
"0.5592016",
"0.55864805",
"0.55523324",
"0.5509411",
"0.55070084",
"0.54650843",
"0.5375158",
"0.5344377",
"0.53319335",
"0.53201264",
"0.53201264",
"0.5315511",
"0.53035927",
"0.52943724",
"0.5281669",
"0.52610314",
"0.5255898",
"0.5254996",
"0.5251485",
"0.52488697",
"0.5246985",
"0.5233172",
"0.52315235",
"0.5220411",
"0.5213688",
"0.5211294",
"0.520929",
"0.5204747",
"0.52040625",
"0.5194359",
"0.5169447",
"0.51574403",
"0.5155471",
"0.5155465",
"0.5149956",
"0.5144088",
"0.5134363",
"0.51192236",
"0.51096237",
"0.510688",
"0.508617",
"0.50846314",
"0.5081256",
"0.50686425",
"0.5050394",
"0.5042495",
"0.50404793",
"0.5034622",
"0.50256485",
"0.50248337",
"0.5018084",
"0.5011704",
"0.5007621",
"0.5000545",
"0.50000954",
"0.49955565",
"0.49935853",
"0.49914438",
"0.49908993",
"0.49764776",
"0.49679986",
"0.4965735",
"0.49642867",
"0.49610946",
"0.49580336",
"0.49557784",
"0.49515948",
"0.49483886",
"0.49394703",
"0.49311784",
"0.49304718",
"0.49253273",
"0.4922302",
"0.49194983",
"0.4916396",
"0.49142832",
"0.4911783",
"0.49095017",
"0.49060267",
"0.49040306",
"0.49022365",
"0.49018714",
"0.48939598",
"0.48931852",
"0.4893063",
"0.48907414",
"0.4890521",
"0.4881102",
"0.4877115",
"0.48725417",
"0.48683652",
"0.4865702",
"0.48626545",
"0.4860297",
"0.48458332"
] | 0.54212946 | 11 |
Return the current winning Knight | public int topKnight() {
return knights[numKnights - 1];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int knightWithJugIn() {\n \n return knightsBefore.car();\n }",
"@Override\n public boolean isKnight() {\n return true;\n }",
"public int minKnight() {\r\n\t\treturn enviroment;\r\n\t}",
"private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }",
"@Override\n public int getWinner() {\n return this.board.getWinner();\n }",
"private int gameState() {\n\t\t\n\t\tint gameNotOver = 0;\n\t\tint gameOverWinnerX = 1;\n\t\tint gameOverWinnerO = 2;\n\t\tint gameOverTie = 3;\n\t\t\n\t\t\n\t\t\n\t\t//Win Vertically \n\t\t// 0 3 6 , 1 4 7 , 2 5 8\n\t\t\t\t\n\t\t//Win Horizontally\n\t\t//0 1 2 , 3 4 5 , 6 7 8 \n\t\t\t\t\n\t\t//Win Diagonally\n\t\t// 0 4 8 , 2 4 6\n\t\t\t\t\n\t\t//Assuming it's an equal grid\n\t\t\t\t\n\t\tMark winningMark = null;\n\t\t\t\t\n\t\tboolean hasFoundWinner = false;\n\t\t\t\t\n\t\tint row = 0;\n\t\tint column = 0;\n\t\t\t\t\n\t\t//Horizontal Winner Test\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[ROW_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\twhile (column < COLUMN_COUNT) {\n\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\tcolumn ++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tcolumn = 0;\n\t\t\trow++;\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t// Vertical Winner Test\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = 0;\n\n\t\twhile (!hasFoundWinner && column < COLUMN_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[ROW_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\trow = 0;\n\t\t\tcolumn++;\t\n\t\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//Diagonal Winner Test \"\\\"\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = 0;\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[COLUMN_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\t\t\t\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tcolumn++;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t//Diagonal Test \"/\"\n\t\t\t\t\n\t\trow = 0;\n\t\tcolumn = COLUMN_COUNT - 1;\n\t\t\t\t\n\t\twhile (!hasFoundWinner && row < ROW_COUNT) {\n\t\t\t\t\t\n\t\t\tMark[] markArray = new Mark[COLUMN_COUNT];\n\t\t\t\t\t\n\t\t\tint index = 0;\n\t\t\t\t\t\n\t\t\twhile (row < ROW_COUNT) {\n\t\t\t\t\t\t\n\t\t\t\tmarkArray[index] = getMark(row, column);\n\t\t\t\trow++;\n\t\t\t\tcolumn--;\n\t\t\t\tindex++;\n\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\tif (allElementsEqual(markArray)) {\n\t\t\t\thasFoundWinner = true;\n\t\t\t\twinningMark = markArray[0];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\tif (hasFoundWinner) {\n\t\t\tif (winningMark == Mark.X) {\n\t\t\t\treturn gameOverWinnerX;\n\t\t\t}\n\t\t\tif (winningMark == Mark.O) {\n\t\t\t\treturn gameOverWinnerO;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// If there are no moves left, and there is no winner, game ends inn a tie \n\t\t\n\t\tboolean foundNoMove = false;\n\t\tfor (int i = 0; i < movesArray.length; i++) {\n\t\t\tif (movesArray[i] == NO_MOVE) {\n\t\t\t\tfoundNoMove = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (!foundNoMove && !hasFoundWinner) {\n\t\t\treturn gameOverTie;\n\t\t}\n\t\t\n\t\t// If there is no winner and there are still moves left, game is not over\n\t\t\n\t\treturn gameNotOver;\n\t\t\n\t}",
"public int getWinner() {return winner();}",
"@Override\n public Player getWinningPlayer() {\n return wonGame ? currentPlayer : null;\n }",
"int getCurrentTurn();",
"public String win() {\r\n\t\tint blackCount = 0;\r\n\t\tint whiteCount = 0;\r\n\t\tfor (int i=0; i<piece.size(); i++) {\r\n\t\t\tif (piece.get(order[i]).chessPlayer.equals(\"black\")) {\r\n\t\t\t\tblackCount++;\r\n\t\t\t} else if (piece.get(order[i]).chessPlayer.equals(\"white\")) {\r\n\t\t\t\twhiteCount++;\r\n\t\t\t} else continue;\r\n\t\t}\r\n\t\tif (blackCount == 0) {\r\n\t\t\treturn \"white\";\r\n\t\t} else if (whiteCount == 0) {\r\n\t\t\treturn \"black\";\r\n\t\t} else return null;\r\n\t}",
"public Winner whoWins(){\r\n\r\n /* transfer the matrix to an array */\r\n Sign[] flatBoard = flattenBoard();\r\n\r\n /* check if someone has won */\r\n if (CompPlayer.compWon(flatBoard))\r\n return Winner.COMPUTER;\r\n else if (CompPlayer.playerWon(flatBoard))\r\n return Winner.PLAYER;\r\n else\r\n return Winner.NON;\r\n }",
"public Player round() {\n chooseFighter(player1, player2);\n // It's not allowed to construct a Fighter with Health (or Attack) equals 0\n\n Player winner = fight();\n\n gameOver = winner.scoreAPoint(winningScoreLimit);\n\n return winner;\n }",
"public GameState won() {\n if ( (board[0][0] != TileState.BLANK) && (board[0][0] == board[0][1]) && (board[0][0] == board[0][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[1][0] != TileState.BLANK) && (board[1][0] == board[1][1]) && (board[1][0] == board[1][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[2][0] != TileState.BLANK) && (board[2][0] == board[2][1]) && (board[2][0] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][0] != TileState.BLANK) && (board[0][0] == board[1][1]) && (board[0][0] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ( (board[0][2] != TileState.BLANK) && (board[0][2] == board[1][1]) && (board[0][2] == board[2][0])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][0] != TileState.BLANK) && (board[0][0] == board[1][0]) && (board[0][0] == board[2][0])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][1] != TileState.BLANK) && (board[0][1] == board[1][1]) && (board[0][1] == board[2][1])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if ((board[0][2] != TileState.BLANK) && (board[0][2] == board[1][2]) && (board[0][2] == board[2][2])) {\n if (playerOneTurn)\n return GameState.PLAYER_TWO;\n else\n return GameState.PLAYER_ONE;\n } else if (movesPlayed == 9)\n return GameState.DRAW;\n return GameState.IN_PROGRESS;\n }",
"public int evalBoard(){\n if (wins('o')){\n return 3;\n }\n // Return 0 if human wins\n else if (wins('b')){\n return 0;\n }\n //Return 2 if game is draw\n else if (isDraw()){\n return 2;\n }\n // Game is not a draw and no player has won. Game is still undecided.\n else {\n return 1;\n }\n }",
"@Override\n public int getWinner() {\n /*\n * To please the test as well as the game\n * Temporarily change the turn colour\n */\n int temp;\n if (whoseTurn() == RED) {\n temp = YELLOW;\n } else {\n temp = RED;\n }\n\n //test horizontally\n //set x to 1 as the placed counter will always be correct\n int x = 1;\n int i = 1;\n //to check if zero has been found\n boolean leftZeroFound = false;\n boolean rightZeroFound = false;\n while (!rightZeroFound || !leftZeroFound) {\n //check to right of last placed\n if (!rightZeroFound && inBounds(0, i)\n && board[lastPlacedRow][lastPlacedCol + i] == temp) {\n x++;\n } else {\n rightZeroFound = true;\n }\n\n //check to left of last placed\n if (!leftZeroFound && inBounds(0, -i)\n && board[lastPlacedRow][lastPlacedCol - i] == temp) {\n x++;\n } else {\n leftZeroFound = true;\n }\n\n i++;\n }\n //return the winning colour if a row has been found\n if (x >= NUM_IN_A_ROW_TO_WIN) {\n return temp;\n }\n\n //check vertically\n //reset x to 1 as the placed counter will always be correct\n x = 1;\n i = 1;\n //to check if zero has been found\n boolean zeroFound = false;\n while (!zeroFound) {\n //check below last placed\n if (inBounds(-i, 0) && board[lastPlacedRow - i][lastPlacedCol] == temp) {\n x++;\n } else {\n zeroFound = true;\n }\n\n i++;\n }\n //return the winning colour if a row has been found\n if (x >= NUM_IN_A_ROW_TO_WIN) {\n return temp;\n }\n\n //check top right diagonal\n //reset x to 1 as the placed counter will always be correct\n x = 1;\n i = 1;\n //to check if zero has been found\n leftZeroFound = false;\n rightZeroFound = false;\n while (!rightZeroFound || !leftZeroFound) {\n //check top right diagonal\n if (!rightZeroFound && inBounds(i, i)\n && board[lastPlacedRow + i][lastPlacedCol + i] == temp) {\n x++;\n } else {\n rightZeroFound = true;\n }\n\n //check bottom left\n if (!leftZeroFound && inBounds(-i, -i)\n && board[lastPlacedRow - i][lastPlacedCol - i] == temp) {\n x++;\n } else {\n leftZeroFound = true;\n }\n\n i++;\n }\n if (x >= NUM_IN_A_ROW_TO_WIN) {\n return temp;\n }\n\n //check top left\n //set x to 1 as the placed counter will always be correct\n x = 1;\n i = 1;\n //to check if zero has been found\n leftZeroFound = false;\n rightZeroFound = false;\n while (!rightZeroFound || !leftZeroFound) {\n //check top left\n if (!leftZeroFound && inBounds(i, -i)\n && board[lastPlacedRow + i][lastPlacedCol - i] == temp) {\n x++;\n } else {\n leftZeroFound = true;\n }\n\n //check bottom right\n if (!rightZeroFound && inBounds(-i, i)\n && board[lastPlacedRow - i][lastPlacedCol + i] == temp) {\n x++;\n } else {\n rightZeroFound = true;\n }\n\n i++;\n }\n //return the winning colour if a row has been found\n if (x >= NUM_IN_A_ROW_TO_WIN) {\n return temp;\n }\n\n //return Empty if a winner has not been found\n return EMPTY;\n }",
"public boolean getWin() {\n if (targetDistance == 25) {\n if (missDistance <= 1 && missDistance >= -1) { //checks 25m win\n return true;\n }\n else {\n return false;\n }\n }\n else if (targetDistance == 50) { //checks 50m win\n if (missDistance <= 2 && missDistance >= -2) {\n return true;\n }\n else {\n return false;\n }\n }\n else { //checks 100m win\n if (missDistance <= 3 && missDistance >= -3) {\n return true;\n }\n else {\n return false;\n }\n }\n }",
"public int getCurrentGameRound(){\n\t\treturn currentGameRound;\n\t}",
"public int whoWin(){\r\n int winner = -1;\r\n \r\n int highest = 0;\r\n \r\n for(Player player : discWorld.getPlayer_HASH().values()){\r\n if(getPlayerPoints(player) > highest){\r\n highest = getPlayerPoints(player);\r\n winner = player.getID();\r\n }\r\n \r\n }\r\n \r\n return winner;\r\n }",
"public int winner() {\n if(humanPlayerHits == 17) {\n return 1;\n }\n if(computerPlayerHits == 17){\n return 2;\n }\n return 0;\n }",
"public int getWinner() {\n return winner;\n }",
"public char getWinner() {\n WinScenario winScenario = getWinningScenario();\n if (winScenario == null) {\n return ' ';\n }\n\n return winScenario.getWinner();\n }",
"private WinScenario getWinningScenario() {\n Diagonal primaryDiagonal = new Diagonal(this, true);\n if (primaryDiagonal.isWon()) {\n return primaryDiagonal;\n }\n\n // Check for secondary diagonal\n Diagonal secondaryDiagonal = new Diagonal(this, false);\n if (secondaryDiagonal.isWon()) {\n return secondaryDiagonal;\n }\n\n // Check for a winning row or colum\n for (int i = 0; i < 3; i++) {\n Row row = new Row(this, i);\n if (row.isWon()) {\n return row;\n }\n\n Column column = new Column(this, i);\n if (column.isWon()) {\n return column;\n }\n }\n\n return null;\n }",
"public PlayerNumber winner() {\n\t\tif (someoneQuit) {\n\t\t\treturn onePlayerLeft;\n\t\t}\n\t\tif (winningPlayer == Game.FIRST_PLAYER) {\n\t\t\treturn Game.FIRST_PLAYER;\n\t\t}\n\t\tif (winningPlayer == Game.SECOND_PLAYER) {\n\t\t\treturn Game.SECOND_PLAYER;\n\t\t}\n\t\tif (movesLeft() > 0) {\n\t\t\treturn Game.GAME_NOT_OVER;\n\t\t}\n\t\treturn Game.DRAW;\n\t}",
"public int[][] getMovesKnight(Piece p) {\n x = p.getX();\n y = p.getY();\n int[][] legalMoves = new int[8][8];\n\n if ((x + 2) < 8 && (y + 1) < 8) {\n if (b.getPieceAt((y + 1), (x + 2)) != null) {\n if (b.getPieceAt((y + 1), (x + 2)).isWhite() != p.isWhite()) {\n legalMoves[y + 1][x + 2] = 1;\n }\n } else {\n legalMoves[y + 1][x + 2] = 1;\n }\n }\n if ((x + 2) < 8 && (y - 1) > -1) {\n if (b.getPieceAt((y - 1), (x + 2)) != null) {\n if (b.getPieceAt((y - 1), (x + 2)).isWhite() != p.isWhite()) {\n legalMoves[y - 1][x + 2] = 1;\n }\n } else {\n legalMoves[y - 1][x + 2] = 1;\n }\n }\n if ((x - 2) > -1 && (y + 1) < 8) {\n if (b.getPieceAt((y + 1), (x - 2)) != null) {\n if (b.getPieceAt((y + 1), (x - 2)).isWhite() != p.isWhite()) {\n legalMoves[y + 1][x - 2] = 1;\n }\n } else {\n legalMoves[y + 1][x - 2] = 1;\n }\n }\n if ((x - 2) > -1 && (y - 1) > -1) {\n if (b.getPieceAt((y - 1), (x - 2)) != null) {\n if (b.getPieceAt((y - 1), (x - 2)).isWhite() != p.isWhite()) {\n legalMoves[y - 1][x - 2] = 1;\n }\n } else {\n legalMoves[y - 1][x - 2] = 1;\n }\n }\n if ((x + 1) < 8 && (y + 2) < 8) {\n if (b.getPieceAt((y + 2), (x + 1)) != null) {\n if (b.getPieceAt((y + 2), (x + 1)).isWhite() != p.isWhite()) {\n legalMoves[y + 2][x + 1] = 1;\n }\n } else {\n legalMoves[y + 2][x + 1] = 1;\n }\n }\n if ((x - 1) > -1 && (y + 2) < 8) {\n if (b.getPieceAt((y + 2), (x - 1)) != null) {\n if (b.getPieceAt((y + 2), (x - 1)).isWhite() != p.isWhite()) {\n legalMoves[y + 2][x - 1] = 1;\n }\n } else {\n legalMoves[y + 2][x - 1] = 1;\n }\n }\n if ((x - 1) > -1 && (y - 2) > -1) {\n if (b.getPieceAt((y - 2), (x - 1)) != null) {\n if (b.getPieceAt((y - 2), (x - 1)).isWhite() != p.isWhite()) {\n legalMoves[y - 2][x - 1] = 1;\n }\n } else {\n legalMoves[y - 2][x - 1] = 1;\n }\n }\n if ((x + 1) < 8 && (y - 2) > -1) {\n if (b.getPieceAt((y - 2), (x + 1)) != null) {\n if (b.getPieceAt((y - 2), (x + 1)).isWhite() != p.isWhite()) {\n legalMoves[y - 2][x + 1] = 1;\n }\n } else {\n legalMoves[y - 2][x + 1] = 1;\n }\n }\n return legalMoves;\n }",
"public Winner whoWon() {\n\t\tif (!isGameOver()) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// REPLACE NEXT LINE WITH YOUR IMPLEMENTATION\n\t\tint countBLACK = discBlackCount();\n\t\tint countWHITE = discWhiteCount();\n\t\t\n\t\tif (countWHITE == countBLACK) {\n\t\t\t\n\t\t\treturn Winner.TIE;\n\t\t\t\n\t\t} else if (countWHITE > countBLACK) {\n\t\t\t\n\t\t\tif (player1Disc == Disc.WHITE) {\n\t\t\t\t\n\t\t\t\treturn Winner.PLAYER1;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\treturn Winner.PLAYER2;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tif (player1Disc == Disc.BLACK) {\n\t\t\t\t\n\t\t\t\treturn Winner.PLAYER1;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\treturn Winner.PLAYER2;\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"public Board twin() {\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tif (board[i][j] != 0) {\n\t\t\t\t\tif (i < (n-1) && board[i+1][j] != 0)\n\t\t\t\t\t\treturn move(i, j, i+1, j);\n\t\t\t\t\tif (j < (n-1) && board[i][j+1] != 0)\n\t\t\t\t\t\treturn move(i, j, i, j+1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public final boolean checkForWin() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n result = true;\r\n for(Tile tile : rail.getTiles()) {\r\n tile.setBackground(Color.GREEN);\r\n player = tile.getText();\r\n }\r\n if (player.equals(\"X\")) {\r\n winningPlayer = \"X\";\r\n this.xWins++;\r\n } else if (player.equals(\"0\")) {\r\n winningPlayer = \"0\";\r\n this.oWins++;\r\n }\r\n break;\r\n }\r\n }\r\n \r\n return result;\r\n }",
"public String getWinner(){\n\t\tswitch (hatGewonnen) {\n\t\tcase \"Spieler O\":\n\t\t\treturn \"o\";\n\t\tcase \"Spieler X\":\n\t\t\treturn \"x\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public String winner(){\n\t\tString winner =\"\";\n\t\tif(board.isWin() == \"blue\")\n\t\t\t{\n\t\t\twinner= \"blue\";\n\t\t\t}\n\t\telse if(board.isWin()==\"red\")\n\t\t\t{\n\t\t\twinner= \"red\";\n\t\t\t}\n\t\treturn winner; \n\t}",
"public Mark getWinner() {\n\t\t\n\t\tassert isGameOver();\n\t\t\n\t\tif (gameState() == 1) {\n\t\t\treturn Mark.X;\n\t\t}\n\t\tif (gameState() == 2) {\n\t\t\treturn Mark.O;\n\t\t}\n\t\tif (gameState() == 3) {\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t\t\n\t}",
"public int getCurrentTurn()\r\n {\r\n return currentTurn;\r\n }",
"@Override\n public int getWinner()\n {\n return currentPlayer;\n }",
"public int getWins() {\n return wins;\n }",
"private long opponent_winning_position() {\r\n return compute_winning_position(bitboard ^ mask, mask);\r\n }",
"public boolean isNight() {\r\n return hours < 6 || hours >= 20;\r\n }",
"public int getF_Wins() {\n return f_wins;\n }",
"@Test\n public void testKnightPosition() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n assertEquals(0, chessBoard.getPiece(0, 1).getRow());\n assertEquals(1, chessBoard.getPiece(0, 1).getColumn());\n\n assertEquals(0, chessBoard.getPiece(0, 6).getRow());\n assertEquals(6, chessBoard.getPiece(0, 6).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 1).getRow());\n assertEquals(1, chessBoard.getPiece(7, 1).getColumn());\n\n assertEquals(7, chessBoard.getPiece(7, 6).getRow());\n assertEquals(6, chessBoard.getPiece(7, 6).getColumn());\n }",
"public char findWinner() {\n char[] winners = {\n checkRowVictory(getTopRow()),\n checkRowVictory(getMidRow()),\n checkRowVictory(getLowRow()),\n checkRowVictory(getVerticalMidRow()),\n checkRowVictory(getVerticalLeftRow()),\n checkRowVictory(getVerticalRightRow()),\n checkDiagonalVictory()\n };\n\n for (char winner : winners) {\n if (winner != 0) {\n return winner;\n }\n }\n\n return 0;\n }",
"public int determineWinner() {\n\t\tif(board[1][1] != 0 && (\n\t\t\t(board[1][1] == board[0][0] && board[1][1] == board[2][2]) ||\n\t\t\t(board[1][1] == board[0][2] && board[1][1] == board[2][0]) ||\n\t\t\t(board[1][1] == board[0][1] && board[1][1] == board[2][1]) ||\n\t\t\t(board[1][1] == board[1][0] && board[1][1] == board[1][2]))){\n\t\t\treturn board[1][1];\n\t\t}\n\t\telse if (board[0][0] != 0 &&(\n\t\t\t(board[0][0] == board[0][1] && board[0][0] == board[0][2]) ||\n\t\t\t(board[0][0] == board[1][0] && board[0][0] == board[2][0]))){\n\t\t\treturn board[0][0];\n\t\t}\n\t\telse if (board [2][2] != 0 && (\n\t\t\t(board[2][2] == board[2][0] && board[2][2] == board[2][1]) ||\n\t\t\t(board[2][2] == board[0][2] && board[2][2] == board[1][2]))) {\n\t\t\treturn board[2][2];\n\t\t}\n\t\t\n\t\t//See if every square has been marked, return still in progress if not\n\t\tfor(int i = 0; i < 3; ++i) {\n\t\t\tfor(int j = 0; j < 3; ++j) {\n\t\t\t\tif (board[i][j] == 0)\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Return tie\n\t\treturn 3;\n\t}",
"public int getWins() {\n return wins;\n }",
"public int getCurrentPawnRow(){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\treturn curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\treturn curPos.getBlackPosition().getTile().getRow();\n\t\t}\r\n }",
"public Board twin() {\n if (tiles[0][0] != 0 && tiles[0][1] != 0)\n return new Board(tiles, new Position(0, 0), new Position(0, 1));\n else\n return new Board(tiles, new Position(1, 0), new Position(1, 1));\n }",
"public String getWinner(){\n if(whiteWins && blackWins){\n return \"ITS A DRAW\";\n } else if(whiteWins){\n return \"WHITE WINS\";\n } else if(blackWins){\n return \"BLACK WINS\";\n } else {\n return \"NO WINNER\";\n }\n }",
"public PlayerColor turn() {\n return board.getTurn();\n }",
"public int getDayOrNight() {\n return getStat(dayOrNight);\n }",
"public void fight(Knight otherKnight){\n System.out.println(\"Starting the great fight: \" + this.name + \" VS \" + otherKnight.name);\n if (this.sumEquipmentWeight() + this.weight < otherKnight.sumEquipmentWeight() + otherKnight.weight)\n System.out.println(\"Winner is \" + otherKnight.name);\n else if (this.sumEquipmentWeight() + this.weight > otherKnight.sumEquipmentWeight() + otherKnight.weight)\n System.out.println(\"Winner is \" + this.name);\n else if (this.sumEquipmentPrice() < otherKnight.sumEquipmentPrice())\n System.out.println(\"Winner is \" + otherKnight.name);\n else if (this.sumEquipmentPrice() > otherKnight.sumEquipmentPrice())\n System.out.println(\"Winner is \" + this.name);\n else System.out.println(\"We have no winner.\");\n }",
"public int getWinner();",
"public Board twin() {\n short[] s1;\n short[] s2;\n if (blank_r == 0 && blank_c == 0) {\n s1 = new short[]{0, 1};\n s2 = new short[]{1, 0};\n } else {\n s1 = new short[]{0, 0};\n if (blank_r == 1 && blank_c == 0) s2 = new short[]{0, 1};\n else s2 = new short[]{1, 0};\n }\n return swapTiles1d(s1, s2);\n }",
"public PlayerNumber whoseTurn() {\n\t\tif (isGameOver()) {\n\t\t\treturn Game.GAME_OVER;\n\t\t}\n\t\treturn nextPlayer;\n\t}",
"private int checkWinner() {\n if (this.turnCount >= 2) {\n int colWin = this.checkColumn();\n if (colWin > 0) {\n return colWin;\n }\n\n int rowWin = this.checkRow();\n if (rowWin > 0) {\n return rowWin;\n }\n\n int diagWin = checkDiagonal();\n if (diagWin > 0) {\n return diagWin;\n }\n }\n return 0;\n }",
"public Knight() {\r\n\thp = 150;\r\n\tstrength = 100;\r\n\tdefense = 60;\r\n\tattack = .2;\r\n\tevade=0;\r\n\tcrit=0;\r\n }",
"public int addWinningGame() {\n\t\tgamesWon++;\n\t\treturn gamesWon;\n\t}",
"@Override\n\tpublic void win() {\n\t\t\n\t\tfround[fighter1]++;\n\t fplatz[fighter1]=Math.round((float)fplatz[fighter1]/2); \n\t \n\t\tnextRound();\n\t}",
"public int checkForWinner() {\n\n // Check horizontal wins\n for (int i = 0; i <= 6; i += 3)\t{\n if (mBoard[i] == HUMAN_PLAYER &&\n mBoard[i+1] == HUMAN_PLAYER &&\n mBoard[i+2]== HUMAN_PLAYER)\n return 2;\n if (mBoard[i] == COMPUTER_PLAYER &&\n mBoard[i+1]== COMPUTER_PLAYER &&\n mBoard[i+2] == COMPUTER_PLAYER)\n return 3;\n }\n\n // Check vertical wins\n for (int i = 0; i <= 2; i++) {\n if (mBoard[i] == HUMAN_PLAYER &&\n mBoard[i+3] == HUMAN_PLAYER &&\n mBoard[i+6]== HUMAN_PLAYER)\n return 2;\n if (mBoard[i] == COMPUTER_PLAYER &&\n mBoard[i+3] == COMPUTER_PLAYER &&\n mBoard[i+6]== COMPUTER_PLAYER)\n return 3;\n }\n\n // Check for diagonal wins\n if ((mBoard[0] == HUMAN_PLAYER &&\n mBoard[4] == HUMAN_PLAYER &&\n mBoard[8] == HUMAN_PLAYER) ||\n (mBoard[2] == HUMAN_PLAYER &&\n mBoard[4] == HUMAN_PLAYER &&\n mBoard[6] == HUMAN_PLAYER))\n return 2;\n if ((mBoard[0] == COMPUTER_PLAYER &&\n mBoard[4] == COMPUTER_PLAYER &&\n mBoard[8] == COMPUTER_PLAYER) ||\n (mBoard[2] == COMPUTER_PLAYER &&\n mBoard[4] == COMPUTER_PLAYER &&\n mBoard[6] == COMPUTER_PLAYER))\n return 3;\n\n // Check for tie\n for (int i = 0; i < BOARD_SIZE; i++) {\n // If we find a number, then no one has won yet\n if (mBoard[i] != HUMAN_PLAYER && mBoard[i] != COMPUTER_PLAYER)\n return 0;\n }\n\n // If we make it through the previous loop, all places are taken, so it's a tie\n return 1;\n }",
"public int getWinRecord()\n {\n return gamesWon;\n }",
"public int getCurrentTurn() {\n return currentTurn;\n }",
"int getTurn();",
"public int winner() {\n if (player1Wins())\n return 1;\n if (player2Wins())\n return 2;\n return -1; // No one has won\n }",
"public Board twin() {\n exchangeFirstKeys(); // exchange (0,0) with (0,1)\n Board twinBoard = new Board(tiles);\n exchangeFirstKeys(); // roll it back\n return twinBoard;\n }",
"public Board twin() {\n Board twin;\n int[][] input = numArray(this.tiles);\n if (input[0][0] != 0 && input[0][1] != 0)\n twin = new Board(swap(input, 0, 0, 0, 1));\n else\n twin = new Board(swap(input, 1, 0, 1, 1));\n return twin;\n }",
"int getWins() {return _wins;}",
"public Board twin() {\n MatrixIndex nonFreeBlock1 = new MatrixIndex(0, 0);\n findNextBlock(nonFreeBlock1);\n\n MatrixIndex nonFreeBlock2 = new MatrixIndex(nonFreeBlock1.i, nonFreeBlock1.j);\n incrementMatrixIndex(nonFreeBlock2);\n findNextBlock(nonFreeBlock2);\n\n if (verbose) {\n System.out.println(nonFreeBlock1 + \" \" + nonFreeBlock2);\n }\n return createMovedBoard(nonFreeBlock1, nonFreeBlock2);\n }",
"private MNKCell findOneMoveWin(final MNKGameState winState) {\n for (MNKCell c : board.getFreeCells()) {\n MNKGameState result = board.markCell(c.i, c.j);\n board.unmarkCell();\n if (result == winState) return c;\n }\n return null;\n }",
"Piece getWinner();",
"public void addKnight(Knight knight) {\n currentKnight = knight;\n }",
"public ChessBoard(Knight knight) {\n BOARD_SIZE = 8;\n playingBoard = new Square[BOARD_SIZE][BOARD_SIZE];\n currentKnight = knight;\n\n createSquares();\n createHeuristics();\n }",
"public void winGame() {\n this.isWinner = true;\n }",
"public int status() \n {\n \tif (stonesCount(7,12) != 0 && stonesCount(0,5) != 0)\n \t\treturn GAME_NOT_OVER;\n \telse if (stonesCount(7,13) < stonesCount(0,6))\n \t\treturn GAME_OVER_WIN;\n \telse if (stonesCount(7,13) == stonesCount(0,6))\n \t\treturn GAME_OVER_TIE;\n \telse\n \t\treturn GAME_OVER_LOSE;\n }",
"public int winner(){\n getValidMoves();\n if(check(1)!=0) return 1;\n else if(check(-1)!=0) return -1;\n else if(validX.size()==0) return 2;\n else return 0;\n }",
"public Optional<String> getWinner() {\n for (int win = 0; win < 8; win++) {\n String line = null;\n switch (win) {\n case 0:\n line = boardArray[0][0] + boardArray[0][1] + boardArray[0][2];\n break;\n case 1:\n line = boardArray[1][0] + boardArray[1][1] + boardArray[1][2];\n break;\n case 2:\n line = boardArray[2][0] + boardArray[2][1] + boardArray[2][2];\n break;\n case 3:\n line = boardArray[0][0] + boardArray[1][0] + boardArray[2][0];\n break;\n case 4:\n line = boardArray[0][1] + boardArray[1][1] + boardArray[2][1];\n break;\n case 5:\n line = boardArray[0][2] + boardArray[1][2] + boardArray[2][2];\n break;\n case 6:\n line = boardArray[0][0] + boardArray[1][1] + boardArray[2][2];\n break;\n case 7:\n line = boardArray[0][2] + boardArray[1][1] + boardArray[2][0];\n break;\n }\n if (line.equals(\"XXX\")) {\n return Optional.of(\"X\");\n } else if (line.equals(\"OOO\")) {\n return Optional.of(\"O\");\n }\n }\n return Optional.empty();\n }",
"int checkGameWon(){\n int sx,sy,ex,ey;\n Point size = new Point();\n //get the size of current window\n Display display = getWindowManager().getDefaultDisplay();\n display.getSize(size);\n int width = size.x;\n int height = size.y;\n\n //win first row\n if (gameBoard[0] != 0 && gameBoard[0] == gameBoard[1] && gameBoard[0] == gameBoard[2]){\n sx = 0;\n sy =(int) (height * .30);\n\n ex = width;\n ey = (int) (height * .30);\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[0];\n }\n //win second row\n else if (gameBoard[3] != 0 && gameBoard[3] == gameBoard[4] && gameBoard[3] == gameBoard[5]){\n sx = 0;\n sy = (int) (height * .54);\n ex = width;\n ey = (int) (height * .54);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[3];\n }\n //win third row\n else if (gameBoard[6] != 0 && gameBoard[6] == gameBoard[7] && gameBoard[6] == gameBoard[8]){\n sx = 0;\n sy = (int) (height * .77);\n\n ex = width;\n ey = (int) (height * .77);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[6];\n }\n //win first colum\n else if (gameBoard[0] != 0 && gameBoard[0] == gameBoard[3] && gameBoard[0] == gameBoard[6]){\n sx = (int) (width *.15);\n sy = (int) (height * .18);\n ex = (int) (width * .15);\n ey=(int) (height * .89);\n\n drawLine(sx,sy,ex,sy,imageView10);\n return gameBoard[0];\n }\n //win second colum\n else if (gameBoard[1] != 0 && gameBoard[1] == gameBoard[4] && gameBoard[1] == gameBoard[7]){\n sx = (int) (width * .50);\n sy = (int) (height * .18);\n\n ex = (int) (width * .50);\n ey = (int) (height * .89);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[1];\n }\n //win third colum\n else if (gameBoard[2] != 0 && gameBoard[2] == gameBoard[5] && gameBoard[2] == gameBoard[8]){\n sx = (int) (width * .85);\n sy = (int) (height * .18);\n\n ex = (int) (width * .85);\n ey = (int) (height * .89);\n\n drawLine(sx,sy,ex,ey,imageView10);\n return gameBoard[2];\n }\n else{\n //game not won\n return 0;\n }\n }",
"public void win() {\n if (turn == 1) {\n p1.incrementLegs();\n if (p1.getLegs() == 5) {\n p1.incrementSets();\n p1.setLegs(0);\n p2.setSets(0);\n\n }\n if (p1LastScore > p1.getHighout()) {\n p1.setHighout(p1LastScore);\n\n }\n\n if (p1.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p1.getHighout();\n }\n } else if (turn == 2) {\n p2.incrementLegs();\n if (p2.getLegs() == 5) {\n p2.incrementSets();\n p2.setLegs(0);\n p1.setSets(0);\n\n }\n if (p2LastScore > p2.getHighout()) {\n p2.setHighout(p2LastScore);\n }\n\n if (p2.getHighout() > OVERALL_HIGH_OUT) {\n OVERALL_HIGH_OUT = p2.getHighout();\n }\n\n\n\n }\n changeFirstTurn();\n win = true;\n\n\n\n }",
"public void determineWinner() {\n\t\twinner = \"\";\n\t\tif (board[6] > board[13])\n\t\t\twinner = player1.getName();\n\t\telse if (board[6] < board[13])\n\t\t\twinner = player2.getName();\n\t\telse {\n\t\t\tSystem.out.println(\"The game is a tie\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(winner + \" is the winner\");\n\t}",
"Piece winner() {\r\n return _winner;\r\n }",
"public int getWhoseTurn() {\n if (gameStatus == null || gameStatus.getActivePlayer() == null) return -1;\n if (gameStatus.getActivePlayer().equals(gameStatus.getPlayerOne())) return 1;\n if (gameStatus.getActivePlayer().equals(gameStatus.getPlayerTwo())) return 2;\n return -2;\n }",
"public int getWinner()\n {\n //Loops to get the winner\n for(int i = 0; i < NUM_PLAYERS; i++){\n if(isPlayerWinner(i)) return i; //This player is a winner\n }\n return -1; //no one is a winner so far\n }",
"public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n data.victoryFlag = true;\r\n data.gameState = 5;\r\n }",
"public Gamestate myTurn() {\n\t\treturn this.iGoWhen;\n\t}",
"public char checkWinner() {\r\n // Vertical\r\n if (board[0][0] == board[0][1] && board[0][1] == board[0][2] && board[0][0] != '-') {\r\n return board[0][0];\r\n }\r\n else if (board[1][0] == board[1][1] && board[1][1] == board[1][2] && board[1][0] != '-') {\r\n return board[1][0];\r\n }\r\n else if (board[2][0] == board[2][1] && board[2][1] == board[2][2] && board[2][0] != '-') {\r\n return board[2][0];\r\n }\r\n // Horizontal\r\n else if (board[0][0] == board[1][0] && board[1][0] == board[2][0] && board[0][0] != '-') {\r\n return board[0][0];\r\n }\r\n else if (board[0][1] == board[1][1] && board[1][1] == board[2][1] && board[0][1] != '-') {\r\n return board[0][1];\r\n }\r\n else if (board[0][2] == board[1][2] && board[1][2] == board[2][2] && board[0][2] != '-') {\r\n return board[0][2];\r\n }\r\n // Diagonal\r\n else if (board[0][0] == board[1][1] && board[1][1] == board[2][2] && board[0][0] != '-') {\r\n return board[0][0];\r\n }\r\n else if (board[0][2] == board[1][1] && board[1][1] == board[2][0] && board[0][2] != '-') {\r\n return board[0][2];\r\n }\r\n // Tie\r\n else {\r\n for (int y = 0; y < 3; y++) {\r\n for (int x = 0; x < 3; x++) {\r\n if (board[x][y] == '-')\r\n return 'N';\r\n }\r\n }\r\n return 'T';\r\n }\r\n }",
"public char getWinner() {\n\t\treturn winner;\n\t}",
"public int getBTStreak50()\n\t{\n\t\treturn battletowerCurrentStreakLvl50;\n\t}",
"public int getSeatPlaying() {\n return this.seatPlaying;\n }",
"public PlayerColor getTurn() {\n return board.getTurn();\n }",
"public int gameState() {\n \tboolean check = isCheck(turn);\n \t\n \t//change this code to be some sort of checkmate detection\n \tif(check) {\n \t\t//we need to check whether there is a legal move that puts the king out of check\n \t\t//we need to loop through all pieces of the same color as the turn and make all legal moves\n \t\t//then after each move, check whether the king is still in check\n \t\t\n \t\t//first generate a list of all pieces for the turn color\n \t\tArrayList<Piece> pieces = getPieces(turn);\n \t\t\n \t\tboolean freedom;\n \t\t\n \t\t//now for each piece, check whether moving that piece can get the king out of check\n \t\tfor(int i = 0; i < pieces.size(); i++) {\n \t\t\tfreedom = simulate(pieces.get(i));\n \t\t\tif(freedom) {\n \t \t\tupdateCheckMove(false);\n \t \t\tSystem.out.println(\"Check on \" + turn + \" King!\");\n \t\t\t\treturn 2; //if the king can move, then the game isn't over yet\n \t\t\t}\n \t\t}\n \t\t\n \t\t//the game is over if we reach this far, so we can assume checkmate\n \t\t//resignation logic will probably be specific to Display class\n \t\t\n \t\tupdateCheckMove(true);\n \t\t\n \t\tif(turn == PieceColor.White) return -1; //black win if white king in check and can't move\n \t\tif(turn == PieceColor.Black) return 1;\n \t}\n \t\n \t//if all of these fail, the game isn't over yet\n \treturn 2;\n }",
"public int getCurrentTurn(){\n return m_currentTurn;\n }",
"public Result determineOutcome() {\n for (int row = 0; row < TicTacToeModel.BOARD_DIMENSION; row++) {\n if (rowScore[row] == TicTacToeModel.BOARD_DIMENSION){\n return Result.WIN;\n } else if (rowScore[row] == -TicTacToeModel.BOARD_DIMENSION) {\n return Result.LOSE;\n }\n }\n\n for (int col = 0; col < TicTacToeModel.BOARD_DIMENSION; col++) {\n if (colScore[col] == TicTacToeModel.BOARD_DIMENSION){\n return Result.WIN;\n } else if (colScore[col] == -TicTacToeModel.BOARD_DIMENSION) {\n return Result.LOSE;\n }\n }\n\n if (leftDiagScore == TicTacToeModel.BOARD_DIMENSION) return Result.WIN;\n if (rightDiagScore == TicTacToeModel.BOARD_DIMENSION) return Result.WIN;\n if (leftDiagScore == -TicTacToeModel.BOARD_DIMENSION) return Result.LOSE;\n if (rightDiagScore == -TicTacToeModel.BOARD_DIMENSION) return Result.LOSE;\n\n if (freeSpace == 0) return Result.DRAW;\n\n return Result.INCOMPLETE;\n }",
"public Player getWinner(){\r\n if(!hasMovements(model.getPlayerA().getColor()))\r\n return model.getPlayerB();\r\n if(!hasMovements(model.getPlayerB().getColor()))\r\n return model.getPlayerA();\r\n // In case of draw\r\n return null;\r\n }",
"public int get_cWins()\r\n {\r\n return cWins;\r\n }",
"public boolean winner(){ \r\n\t\tif (rowWin() || colWin() || diagWin()){ \r\n\t\t\tchangeTurn(); \r\n\t\t\tSystem.out.println(\"Winner: \" + playerToString(currentTurn) + \"!\"); \r\n\t\t\treturn true; \r\n\t\t}\r\n\t\telse if (tie()){\r\n\t\t\tSystem.out.println(\"There is a tie.\");\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse{ \r\n\t\t\tSystem.out.println(\"No winner yet.\\n\"); \r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}",
"public Mark getTurn() {\n\t\t\n\t\tif (isGameOver()) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < movesArray.length; i++) {\n\t\t\t\n\t\t\tif (movesArray[i] == -1) {\n\t\t\t\tif (i % 2 == 0) {\n\t\t\t\t\treturn Mark.X;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn Mark.O;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Marker gameWon() {\r\n for (int s : sums) {\r\n if (s == BOARD_SIZE) {\r\n return Marker.X;\r\n }\r\n else if (s == -BOARD_SIZE) {\r\n return Marker.O;\r\n }\r\n }\r\n\r\n return Marker.EMPTY;\r\n }",
"public String getWinner(){\n\tif (p1.getPoints()==p2.getPoints()){\n\t return \"Tie. Good food, bad outcome.\";\n\t}\n\treturn (p1.getPoints()>p2.getPoints()?\"Player Row\":\"Player Column\")+\" is the winner!\";\n }",
"@Override\n public int getWinner() {\n //TODO Implement this method\n return -1;\n }",
"public Board twin() {\n Board c = getClone();\n int firstTileRow = -1, firstTileCol = -1, secTileRow = -1, secTileCol = -1;\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (tiles[i][j] != 0) {\n firstTileRow = i;\n firstTileCol = j;\n break outerloop;\n }\n }\n }\n\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if ((tiles[i][j] != 0) && ((i != firstTileRow) || (j != firstTileCol))) {\n secTileRow = i;\n secTileCol = j;\n break outerloop;\n }\n }\n }\n\n int t = c.tiles[firstTileRow][firstTileCol];\n c.tiles[firstTileRow][firstTileCol] = c.tiles[secTileRow][secTileCol];\n c.tiles[secTileRow][secTileCol] = t;\n return c;\n }",
"private String getWinner() {\n\t\treturn winner;\n\t}",
"private void getWinner() {\r\n int nWhite = 0, nBlack = 0;\r\n if(nextPlayer.getChecks() == 0 && nextPlayer.getQueens() == 0){\r\n winner = currentPlayer;\r\n }\r\n else if(currentPlayer.getQueens() == nextPlayer.getQueens()){\r\n for (int i = 1; i<8; i++){\r\n for (int x = 0; x<8; x++) {\r\n if (checks[i][x] == 1) nBlack++;\r\n if (checks[7 - i][x] == 2) nWhite++;\r\n }\r\n if (nWhite>nBlack) winner = getPlayer(WHITE);\r\n else if(nBlack>nWhite)winner = getPlayer(BLACK);\r\n nWhite = 0;\r\n nBlack = 0;\r\n }\r\n }\r\n else if (currentPlayer.getQueens() > nextPlayer.getQueens()){ winner = currentPlayer;}\r\n else{winner = nextPlayer; }\r\n }",
"private Cell getSnowballTarget() {\n Cell[][] blocks = gameState.map;\n int mostWormInRange = 0;\n Cell chosenCell = null;\n\n for (int i = currentWorm.position.x - 5; i <= currentWorm.position.x + 5; i++) {\n for (int j = currentWorm.position.y - 5; j <= currentWorm.position.y + 5; j++) {\n if (isValidCoordinate(i, j)\n && euclideanDistance(i, j, currentWorm.position.x, currentWorm.position.y) <= 5) {\n List<Cell> affectedCells = getSurroundingCells(i, j);\n affectedCells.add(blocks[j][i]);\n int wormInRange = 0;\n for (Cell cell : affectedCells) {\n for (Worm enemyWorm : opponent.worms) {\n if (enemyWorm.position.x == cell.x && enemyWorm.position.y == cell.y\n && enemyWorm.roundsUntilUnfrozen == 0 && enemyWorm.health > 0)\n wormInRange++;\n }\n for (Worm myWorm : player.worms) {\n if (myWorm.position.x == cell.x && myWorm.position.y == cell.y && myWorm.health > 0)\n wormInRange = -5;\n }\n }\n if (wormInRange > mostWormInRange) {\n mostWormInRange = wormInRange;\n chosenCell = blocks[j][i];\n }\n }\n }\n }\n\n return chosenCell;\n }",
"public boolean checkForWin()\n {\n //Horizontal win\n for (int r = 0; r <= 5; r++)\n {\n for (int c = 0; c <= 3; c++)\n {\n if (current_board[c][r] == player_turn &&\n current_board[c+1][r] == player_turn &&\n current_board[c+2][r] == player_turn &&\n current_board[c+3][r] == player_turn)\n return true;\n }\n }\n //Vertical win\n for (int c = 0; c <= 6; c++)\n {\n for (int r = 0; r <= 2; r++)\n {\n if (current_board[c][r] == player_turn &&\n current_board[c][r+1] == player_turn &&\n current_board[c][r+2] == player_turn &&\n current_board[c][r+3] == player_turn)\n return true;\n }\n }\n //Shortest diagonals/anti diagonals (cell length == 4)\n //postive slope\n if (current_board[0][2] == player_turn && current_board[1][3] == player_turn && current_board[2][4] == player_turn && current_board[3][5] == player_turn)\n return true;\n if (current_board[3][0] == player_turn && current_board[4][1] == player_turn && current_board[5][2] == player_turn && current_board[6][3] == player_turn)\n return true;\n //negative slope\n if (current_board[0][3] == player_turn && current_board[1][2] == player_turn && current_board[2][1] == player_turn && current_board[3][0] == player_turn)\n return true;\n if (current_board[3][5] == player_turn && current_board[4][4] == player_turn && current_board[5][3] == player_turn && current_board[6][2] == player_turn)\n return true;\n\n //Medium-length diagonals/anti diagonals (cell length == 5)\n //positive slope\n if (current_board[0][1] == player_turn && current_board[1][2] == player_turn && current_board[2][3] == player_turn && current_board[3][4] == player_turn)\n return true;\n if (current_board[1][2] == player_turn && current_board[2][3] == player_turn && current_board[3][4] == player_turn && current_board[4][5] == player_turn)\n return true;\n if (current_board[2][0] == player_turn && current_board[3][1] == player_turn && current_board[4][2] == player_turn && current_board[5][3] == player_turn)\n return true;\n if (current_board[3][1] == player_turn && current_board[4][2] == player_turn && current_board[5][3] == player_turn && current_board[6][4] == player_turn)\n return true;\n //negative slope\n if (current_board[0][4] == player_turn && current_board[1][3] == player_turn && current_board[2][2] == player_turn && current_board[3][1] == player_turn)\n return true;\n if (current_board[1][3] == player_turn && current_board[2][2] == player_turn && current_board[3][1] == player_turn && current_board[4][0] == player_turn)\n return true;\n if (current_board[2][5] == player_turn && current_board[3][4] == player_turn && current_board[4][3] == player_turn && current_board[5][2] == player_turn)\n return true;\n if (current_board[3][4] == player_turn && current_board[4][3] == player_turn && current_board[5][2] == player_turn && current_board[6][1] == player_turn)\n return true;\n\n //Longest diagonals/anti diagonals (cell length == 6)\n //positive slope\n for (int c=0, r=0; c <= 2 && r <= 2; c++, r++)\n {\n if (current_board[c][r] == player_turn &&\n current_board[c+1][r+1] == player_turn &&\n current_board[c+2][r+2] == player_turn &&\n current_board[c+3][r+3] == player_turn)\n return true;\n }\n for (int c=1, r=0; c <= 3 && r <= 2; c++, r++)\n {\n if (current_board[c][r] == player_turn &&\n current_board[c+1][r+1] == player_turn &&\n current_board[c+2][r+2] == player_turn &&\n current_board[c+3][r+3] == player_turn)\n return true;\n }\n //negative slope\n for (int c=0, r=5; c <= 2 && r >= 3; c++, r--)\n {\n if (current_board[c][r] == player_turn &&\n current_board[c+1][r-1] == player_turn &&\n current_board[c+2][r-2] == player_turn &&\n current_board[c+3][r-3] == player_turn)\n return true;\n }\n for (int c=1, r=5; c <= 3 && r >= 3; c++, r--)\n {\n if (current_board[c][r] == player_turn &&\n current_board[c+1][r-1] == player_turn &&\n current_board[c+2][r-2] == player_turn &&\n current_board[c+3][r-3] == player_turn)\n return true;\n }\n\n return false;\n }",
"private static int iteration(int considerWinning) {\r\n boolean won = false;\r\n int weeks = 0;\r\n while(won == false) {\r\n int winning[] = calculateLotto();\r\n int collision = Arrays.containsSameValues(USER_LOTTERY, winning);\r\n weeks++;\r\n if(collision == considerWinning) {\r\n\r\n if(weeks < 52) {\r\n System.out.println(\"Got \"+ collision+\" right. Took \"+ weeks + \" weeks.\");\r\n } else {\r\n System.out.println(\"Got \"+ collision+\" right. Took \"+ weeks/52 + \" years.\");\r\n }\r\n\r\n won = true;\r\n }\r\n }\r\n\r\n return (int) weeks / 52;\r\n\r\n }",
"public BasicCharacter getWinner() {\n\n return win;\n\n }"
] | [
"0.70683336",
"0.6956835",
"0.69036776",
"0.667772",
"0.65258527",
"0.63773966",
"0.63530904",
"0.63501316",
"0.63396513",
"0.633157",
"0.62992877",
"0.62823415",
"0.6272624",
"0.62318915",
"0.62239254",
"0.62066185",
"0.6204708",
"0.6164562",
"0.61550564",
"0.6132057",
"0.60957265",
"0.6093376",
"0.6083012",
"0.60762143",
"0.60761833",
"0.60682315",
"0.6062186",
"0.6049874",
"0.60349405",
"0.60342956",
"0.6012077",
"0.600192",
"0.59995836",
"0.5999523",
"0.59900486",
"0.5987161",
"0.598707",
"0.59832007",
"0.5980551",
"0.59774864",
"0.5971429",
"0.59528637",
"0.5926757",
"0.5920307",
"0.5914381",
"0.59014446",
"0.58976465",
"0.58958346",
"0.5889165",
"0.5885949",
"0.58826864",
"0.58792126",
"0.5875133",
"0.5874872",
"0.587053",
"0.58699995",
"0.5867724",
"0.58459634",
"0.5838229",
"0.5835556",
"0.58309793",
"0.58204913",
"0.58194184",
"0.58188534",
"0.58089846",
"0.57966626",
"0.5787861",
"0.5787832",
"0.5781417",
"0.5777135",
"0.57710195",
"0.5766346",
"0.57579505",
"0.57572496",
"0.5756029",
"0.5745768",
"0.5745518",
"0.57452697",
"0.5736078",
"0.57360417",
"0.5731454",
"0.57216954",
"0.57188225",
"0.5714637",
"0.57099587",
"0.57088614",
"0.57085234",
"0.5708095",
"0.57066226",
"0.57001424",
"0.56987214",
"0.56959236",
"0.5691836",
"0.5685536",
"0.56818074",
"0.56805325",
"0.56804127",
"0.56798226",
"0.5664576",
"0.56641525"
] | 0.7437884 | 0 |
Return the required knights to take the Tile | public int minKnight() {
return enviroment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTileWidth() {\n return 8;\n }",
"public int getTileHeight() {\n return 8;\n }",
"public int getTileLevel()\n {\n return tileLevel;\n }",
"int getTileSize();",
"public int getActualTileWidth() {\n return 32;\n }",
"public int getActualTileHeight() {\n return 32;\n }",
"public static int getTileBits() {\n return TILE_BITS;\n }",
"private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }",
"public int topKnight() {\r\n\t\treturn knights[numKnights - 1];\r\n\t}",
"@Override\n public int getTileWidth() {\n return this.tileWidth;\n }",
"public int getWidth() {\n return getTileWidth() * getWidthInTiles();\n }",
"public void getTile_B8();",
"public int getHeight() {\n return getTileHeight() * getHeightInTiles();\n }",
"long getTileWidth()\n {\n return tileWidth;\n }",
"public int tilesRemain() {\n return tiles.size();\n }",
"int getNumberOfStonesOnBoard();",
"public static float getHalfTileHeight() {\r\n\t\treturn 32;\r\n\t}",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }",
"public static int getTileSize(){\n\t\treturn tileDim;\n\t}",
"public static int minimumNumberOfWhiteWallsOnBoard()\n {\n return 0;\n }",
"public int getActualWidthInTiles() {\n return getWidth() / getActualTileWidth();\n }",
"@Override\n public int getTileHeight() {\n return this.tileHeight;\n }",
"ArrayList<Integer> getStepCounterTileY();",
"public abstract int getSpotsNeeded();",
"private static int computeUnitsTrappedDynamicProgramming(int[] elevationMap) {\n int[] leftWalls = computeLeftWalls(elevationMap);\n int[] rightWalls = computeRightWalls(elevationMap);\n int units = 0;\n for (int x = 1; x < elevationMap.length; x++) {\n int current = elevationMap[x];\n int tallestLeft = leftWalls[x];\n int tallestRight = rightWalls[x];\n if (tallestLeft > current && tallestRight > current) {\n units += Math.min(tallestLeft, tallestRight) - current;\n }\n }\n return units;\n }",
"public static float getHalfTileWidth() {\r\n\t\treturn 64;\r\n\t}",
"public int getTileSize() {\r\n\t\treturn this.tileSize;\r\n\t}",
"public int getTileType() {\r\n\t\treturn 3;\r\n\t}",
"public int getActualHeightInTiles() {\n return getHeight() / getActualTileHeight();\n }",
"public static int minimumNumberOfBlackWallsOnBoard()\n {\n return 0;\n }",
"public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}",
"ArrayList<Integer> getStepCounterTileX();",
"@Override\n public int getRunHeat() {\n return engine.getRunHeat();\n }",
"@Override\n public int getNumYTiles() {\n return getMaxTileY() - getMinTileY() + 1;\n }",
"@Test\n public void testTerrainDimension() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_HEGHT / TerrainFactoryImpl.TERRAIN_ROWS);\n assertEquals(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.TERRAIN_WIDTH / TerrainFactoryImpl.TERRAIN_COLUMNS);\n level.levelUp(); \n });\n }",
"private Array<Tile>[] walk() {\n float targetY = currentTile.y + 1;\n Vector2 previousTile = new Vector2(currentTile.x, currentTile.y);\n\n Array<Vector2> tiles = new Array<Vector2>();\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n\n while(currentTile.y < targetY) {\n float rnd = random.nextFloat();\n\n if(rnd > 0.75f) { // up\n Array<Tile> grassRow = new Array<Tile>();\n Array<Tile> treeRow = new Array<Tile>();\n\n for(int x = 1; x <= 5; x++) {\n Vector2 vector = new Vector2(x, currentTile.y);\n\n GrassNEW grass = grassPool.obtain();\n grass.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n grassRow.add(grass);\n\n if(!tiles.contains(vector, false)) {\n if(random.nextFloat() > 0.3) {\n TreeNEW tree = treePool.obtain();\n tree.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n treeRow.add(tree);\n }\n } else {\n if(random.nextFloat() > 0.99) {\n Collectible power = new PowerUpSpikes(world, spikesTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(power);\n } else {\n if(random.nextFloat() > 0.5) {\n Coin coin = new Coin(world, coinTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(coin);\n }\n }\n }\n }\n\n currentTile.add(0, 1);\n\n Array<Tile>[] ret = new Array[2];\n ret[0] = grassRow;\n ret[1] = treeRow;\n\n return ret;\n } else if(rnd > 0.375) { // right\n if(currentTile.x < 5 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n } else { // left\n if(currentTile.x > 1 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(-1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n }\n }\n\n return null; // will never happen\n }",
"public void updatePossibleMovesKnights(){}",
"TileRenderProperties getTileRenderProperties();",
"public abstract Set<Tile> getNeighbors(Tile tile);",
"int getTileWidth(Long id) throws RemoteException;",
"int getNumberOfStonesLeftToPlace();",
"@Override\n public int getHeatCapacityWithWater() {\n if (hasLaserHeatSinks()) {\n return getHeatCapacity();\n }\n return getHeatCapacity() + Math.min(sinksUnderwater(), 6);\n }",
"void lowerNumberOfStonesOnBoard();",
"void loadCheckerBoard(int tileSize);",
"public void CountWhiteDisks(){\n int counter =0;\n for (int i=0; i<8; i++){\n for (int j=0; j<8; j++){\n if (gameboard[i][j]==W){\n counter++;\n }\n }\n }\n whitedisks = counter;\n }",
"public int getTile(int t) {\n switch (t) {\n case HARDFLOOR: return hardfloors[type];\n case HARDWALL: return hardwalls[type];\n case SOFTFLOOR: return softfloors[type];\n case SOFTWALL: return softwalls[type];\n case STREAM: return streams[type];\n case RIVER: return rivers[type];\n } \n return Tile.WALL;\n }",
"public Rect getTileRect(){\n return this.tileRect;\n }",
"@Override\n public int getMinTileY() {\n return convertYToTileY(getMinY());\n }",
"private static long getPawnWestAttacks(long board, int side) {\n\t\tlong result;\n\t\tif (side == 0) {\n\t\t\tresult = ((board << 7) & ~CoreConstants.FILE_H);\n\t\t} else {\n\t\t\tresult = ((board >>> 9) & ~CoreConstants.FILE_H);\n\t\t}\n\t\treturn result;\n\t}",
"private float[] getBounds(TileCoolantPipe tile) {\n float[] bounds = new float[6];\n boolean[] connected = tile.getConnectedSides();\n float hDiameter = cableDiameter / 2.0F;\n for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {\n float width = 0.5F;\n if (!connected[dir.ordinal()]) {//(sides & dir.flag) != dir.flag) {\n width = hDiameter;\n }\n if (dir.ordinal() % 2 == 0) {\n width *= -1;\n }\n bounds[dir.ordinal()] = 0.5F + width;\n }\n return bounds;\n }",
"private float getRunwayWidth() {\n\t\treturn runwayWidth;\n\t}",
"public List<Tile> getNeighbors() {\n List<Tile> list = new ArrayList<Tile>();\n\n if (this.tileNorth != null) {\n list.add(this.tileNorth);\n }\n\n if (this.tileEast != null) {\n list.add(this.tileEast);\n }\n\n if (this.tileSouth != null) {\n list.add(this.tileSouth);\n }\n\n if (this.tileWest != null) {\n list.add(this.tileWest);\n }\n\n return list;\n }",
"protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }",
"public int[][] getMovesKnight(Piece p) {\n x = p.getX();\n y = p.getY();\n int[][] legalMoves = new int[8][8];\n\n if ((x + 2) < 8 && (y + 1) < 8) {\n if (b.getPieceAt((y + 1), (x + 2)) != null) {\n if (b.getPieceAt((y + 1), (x + 2)).isWhite() != p.isWhite()) {\n legalMoves[y + 1][x + 2] = 1;\n }\n } else {\n legalMoves[y + 1][x + 2] = 1;\n }\n }\n if ((x + 2) < 8 && (y - 1) > -1) {\n if (b.getPieceAt((y - 1), (x + 2)) != null) {\n if (b.getPieceAt((y - 1), (x + 2)).isWhite() != p.isWhite()) {\n legalMoves[y - 1][x + 2] = 1;\n }\n } else {\n legalMoves[y - 1][x + 2] = 1;\n }\n }\n if ((x - 2) > -1 && (y + 1) < 8) {\n if (b.getPieceAt((y + 1), (x - 2)) != null) {\n if (b.getPieceAt((y + 1), (x - 2)).isWhite() != p.isWhite()) {\n legalMoves[y + 1][x - 2] = 1;\n }\n } else {\n legalMoves[y + 1][x - 2] = 1;\n }\n }\n if ((x - 2) > -1 && (y - 1) > -1) {\n if (b.getPieceAt((y - 1), (x - 2)) != null) {\n if (b.getPieceAt((y - 1), (x - 2)).isWhite() != p.isWhite()) {\n legalMoves[y - 1][x - 2] = 1;\n }\n } else {\n legalMoves[y - 1][x - 2] = 1;\n }\n }\n if ((x + 1) < 8 && (y + 2) < 8) {\n if (b.getPieceAt((y + 2), (x + 1)) != null) {\n if (b.getPieceAt((y + 2), (x + 1)).isWhite() != p.isWhite()) {\n legalMoves[y + 2][x + 1] = 1;\n }\n } else {\n legalMoves[y + 2][x + 1] = 1;\n }\n }\n if ((x - 1) > -1 && (y + 2) < 8) {\n if (b.getPieceAt((y + 2), (x - 1)) != null) {\n if (b.getPieceAt((y + 2), (x - 1)).isWhite() != p.isWhite()) {\n legalMoves[y + 2][x - 1] = 1;\n }\n } else {\n legalMoves[y + 2][x - 1] = 1;\n }\n }\n if ((x - 1) > -1 && (y - 2) > -1) {\n if (b.getPieceAt((y - 2), (x - 1)) != null) {\n if (b.getPieceAt((y - 2), (x - 1)).isWhite() != p.isWhite()) {\n legalMoves[y - 2][x - 1] = 1;\n }\n } else {\n legalMoves[y - 2][x - 1] = 1;\n }\n }\n if ((x + 1) < 8 && (y - 2) > -1) {\n if (b.getPieceAt((y - 2), (x + 1)) != null) {\n if (b.getPieceAt((y - 2), (x + 1)).isWhite() != p.isWhite()) {\n legalMoves[y - 2][x + 1] = 1;\n }\n } else {\n legalMoves[y - 2][x + 1] = 1;\n }\n }\n return legalMoves;\n }",
"public SetOfTiles getSetOfTiles();",
"public int getTileSize() {\r\n\t\treturn tSize;\r\n\t}",
"@Override\n public int getNumXTiles() {\n return getMaxTileX() - getMinTileX() + 1;\n }",
"public ResourceMap getActivateKnightCost(ProgressCardType type) {\n\t\tif (type == ProgressCardType.WARLORD)\n\t\t return new ResourceMap();\n\n return activateKnightCost;\n\t}",
"public static int getTileBitSize() {\n return TILE_BIT_SIZE;\n }",
"public boolean getWin() {\n if (targetDistance == 25) {\n if (missDistance <= 1 && missDistance >= -1) { //checks 25m win\n return true;\n }\n else {\n return false;\n }\n }\n else if (targetDistance == 50) { //checks 50m win\n if (missDistance <= 2 && missDistance >= -2) {\n return true;\n }\n else {\n return false;\n }\n }\n else { //checks 100m win\n if (missDistance <= 3 && missDistance >= -3) {\n return true;\n }\n else {\n return false;\n }\n }\n }",
"private void generateBorder() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tif (x == 0 || y == 0 || x == width - 1 || y == height - 1) {\n\t\t\t\t\ttiles[x + y * width] = Tile.darkGrass;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public int getSprintHeat() {\n return engine.getSprintHeat();\n }",
"public int getNumYTiles() { \r\n return numRows;\r\n }",
"int getMinTileY(Long id) throws RemoteException;",
"@Override\n public int getRemainingMines() {\n int numPlacedFlags = cells.stream()\n .mapToInt(b -> (int) b.stream().filter(c -> c.getFlagState() == 1).count()).sum();\n return numMines - numPlacedFlags;\n }",
"public short fitsOnBeginning(Tile tile);",
"@JsonIgnore\n public int getMilitaryPoints() { return this.resources.getBattlePoints(); }",
"public int knightWithJugIn() {\n \n return knightsBefore.car();\n }",
"public Board twin() {\n short[] s1;\n short[] s2;\n if (blank_r == 0 && blank_c == 0) {\n s1 = new short[]{0, 1};\n s2 = new short[]{1, 0};\n } else {\n s1 = new short[]{0, 0};\n if (blank_r == 1 && blank_c == 0) s2 = new short[]{0, 1};\n else s2 = new short[]{1, 0};\n }\n return swapTiles1d(s1, s2);\n }",
"public static byte[] getGoalTiles() {\n return GOAL_TILES;\n }",
"public abstract int getBreakDistance();",
"private int getCost(Game game) {\n\n // Represents the sum of each tile value multiplied by its column index (Gives a tendency to move to the left)\n int weightedSum = 0;\n\n // Represents the number of diagonal pairs of matching value on the board.\n int diagCount = 0;\n\n // The number of tiles on the grid\n int tileCount = 0;\n\n Tile[][] tiles = game.tiles;\n\n for (int x = 0; x < BOARD_X; x++) {\n for (int y = 0; y < BOARD_Y; y++) {\n Tile tile = tiles[x][y];\n\n // Skip empty squares\n if (tile == null) {\n continue;\n }\n\n // Increment the weighted sum with product of the row index and the tile's value\n weightedSum += x * tile.getValue();\n tileCount++;\n\n // If all squares are occupied, return an arbitrarily large value such that this option is not picked.\n if (tileCount == maxTileCount) {\n return 100000;\n }\n\n // Since only up right and down right diagonals are computed, ignore the last row as this would push\n // index's out of range.\n if (x == BOARD_X - 1) {\n continue;\n }\n\n // Retrieve the upper right tile and updates the diagonal counter\n if (y > 0) {\n Tile ur = tiles[x + 1][y - 1];\n if (ur != null) {\n diagCount += (ur.getValue() == tile.getValue()) ? 1 : 0;\n }\n }\n\n // Retrieve the lower right tile and updates the diagonal counter\n if (y < BOARD_Y - 1) {\n Tile dr = tiles[x + 1][y + 1];\n if (dr != null) {\n if (dr.getValue() == tile.getValue()) {\n diagCount += (dr.getValue() == tile.getValue()) ? 1 : 0;\n }\n }\n }\n }\n }\n\n return weightedSum + diagCount;\n }",
"public Board twin() {\n Board c = getClone();\n int firstTileRow = -1, firstTileCol = -1, secTileRow = -1, secTileCol = -1;\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (tiles[i][j] != 0) {\n firstTileRow = i;\n firstTileCol = j;\n break outerloop;\n }\n }\n }\n\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if ((tiles[i][j] != 0) && ((i != firstTileRow) || (j != firstTileCol))) {\n secTileRow = i;\n secTileCol = j;\n break outerloop;\n }\n }\n }\n\n int t = c.tiles[firstTileRow][firstTileCol];\n c.tiles[firstTileRow][firstTileCol] = c.tiles[secTileRow][secTileCol];\n c.tiles[secTileRow][secTileCol] = t;\n return c;\n }",
"public List<Tile> getNeighbours() {\n \r\n return neighbours;\r\n }",
"public int[] getGrassTileRaw() {\n return grassTileRaw;\n }",
"public int leastTiles(int[][] tiles) {\n\tint vertical = verticalCount(tiles);\n\tint horizontal = horizontalCount(tiles);\n\tint diff = vertical - horizontal;\n\tif (diff==0) return 0;\n\treturn diff > 0 ? 1 : 2; \n}",
"public static void initialiseKnightLookupTable() {\n\t\tfor (int square = 0; square < 64; square++) {\n\t\t\tlong target = 1L << square;\n\t\t\t// Each direction of the knight moves considered\n\t\t\t// The AND operator is used to stop moves from wrapping around the\n\t\t\t// board\n\t\t\tlong NNE = (target << 17) & ~CoreConstants.FILE_A;\n\t\t\tlong NEE = (target << 10) & ~CoreConstants.FILE_A & ~CoreConstants.FILE_B;\n\t\t\tlong SEE = (target >>> 6) & ~CoreConstants.FILE_A & ~CoreConstants.FILE_B;\n\t\t\tlong SSE = (target >>> 15) & ~CoreConstants.FILE_A;\n\t\t\tlong NNW = (target << 15) & ~CoreConstants.FILE_H;\n\t\t\tlong NWW = (target << 6) & ~CoreConstants.FILE_G & ~CoreConstants.FILE_H;\n\t\t\tlong SWW = (target >>> 10) & ~CoreConstants.FILE_G & ~CoreConstants.FILE_H;\n\t\t\tlong SSW = (target >>> 17) & ~CoreConstants.FILE_H;\n\n\t\t\tCoreConstants.KNIGHT_TABLE[square] = NNE | NEE | SEE | SSE | NNW | NWW | SWW | SSW;\n\t\t}\n\t}",
"public int[] getNeighborsWeights(){\n\t\tint[] weights = new int[4];\n\t\tweights[0] = getNeighbor(\"east\").weight;\n\t\tweights[1] = getNeighbor(\"north\").weight;\n\t\tweights[2] = getNeighbor(\"west\").weight;\n\t\tweights[3] = getNeighbor(\"south\").weight;\t\t\n\t\treturn weights;\n\t}",
"public int getTilesMoved () {\r\n\t\treturn this.tilesMoved;\r\n\t}",
"public int elevation(){\n return elevation;\n }",
"public Knights()\r\n\t{\r\n\t\tsuper(Settings.COST_PRODUCTION_KNIGHT, Settings.TIME_COST_KNIGHT, \r\n\t\t\t\tSettings.SPEED_KNIGHT, Settings.DAMMAGES_KNIGHT, Settings.DAMMAGES_KNIGHT);\r\n\t}",
"public int getNumMissiles(){\n return this.nunMissiles;\n }",
"private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}",
"private ArrayList<Tile> getPossibleRedTiles(){\n\t\tArrayList<Tile> toReturn = new ArrayList<>();\n\n\t\tGame game=Game.getInstance();\n\t\tArrayList<Tile> legalTiles= getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tArrayList<Tile> blockedTiles=new ArrayList<Tile>();\n\t\tlegalTiles.removeAll(coloredTilesList);\n\n\t\t//\t\tonly one soldier can move\n\t\tif(game.getTurn().isLastTileRed()) {\n\t\t\tPiece lastPMoved = game.getTurn().getLastPieceMoved();\n\t\t\tArrayList<Tile> possibleTiles=lastPMoved.getPossibleMoves(game.getCurrentPlayerColor());\n\t\t\tpossibleTiles.removeAll(coloredTilesList);\n\t\t\tif(!possibleTiles.isEmpty()) {\n\t\t\t\tfor(Tile t: possibleTiles) {\n\t\t\t\t\tPiece tempPiece=null;\n\t\t\t\t\tif(lastPMoved instanceof Soldier) {\n\t\t\t\t\t\ttempPiece=new Soldier(lastPMoved.getId(), lastPMoved.getColor(), t.getLocation());\n\t\t\t\t\t}else {\n\t\t\t\t\t\ttempPiece=new Queen(lastPMoved.getId(), lastPMoved.getColor(), t.getLocation());\n\t\t\t\t\t}\n\t\t\t\t\tif(tempPiece.getPossibleMoves(game.getCurrentPlayerColor()).isEmpty()) {\n\t\t\t\t\t\tblockedTiles.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpossibleTiles.removeAll(blockedTiles);\n\t\t\t}\n\t\t\ttoReturn = possibleTiles;\n\t\t}\n\t\telse {\n\t\t\tHashMap<Tile, ArrayList<Piece>> tempCollection = new HashMap<>();\n\n\t\t\tfor(Tile t:legalTiles) {\n\t\t\t\tfor(Piece p : getColorPieces(Game.getInstance().getCurrentPlayerColor())){\n\t\t\t\t\tboolean canMove = false;\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.UP_LEFT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.UP_RIGHT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.DOWN_RIGHT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.DOWN_LEFT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(canMove) {\n\t\t\t\t\t\tArrayList<Piece> pp = null;\n\t\t\t\t\t\tif(!tempCollection.containsKey(t)) {\n\t\t\t\t\t\t\tpp = new ArrayList<>();\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tpp = tempCollection.get(t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpp.add(p);\n\t\t\t\t\t\ttempCollection.put(t, pp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<Tile> tilesToRemove = new ArrayList<>();\n\n\t\t\tfor(Tile t : tempCollection.keySet()) {\n\t\t\t\tArrayList<Piece> pieces= tempCollection.get(t);\n\t\t\t\tfor(Piece p : pieces) {\n\t\t\t\t\tPiece tempPiece=null;\n\t\t\t\t\tif(p instanceof Soldier) {\n\t\t\t\t\t\ttempPiece=new Soldier(p.getId(), p.getColor(), t.getLocation());\n\t\t\t\t\t}else {\n\t\t\t\t\t\ttempPiece=new Queen(p.getId(), p.getColor(), t.getLocation());\n\t\t\t\t\t}\n\t\t\t\t\tif(tempPiece.getPossibleMoves(game.getCurrentPlayerColor()).isEmpty()) {\n\t\t\t\t\t\tif(!tilesToRemove.contains(t))\n\t\t\t\t\t\t\ttilesToRemove.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Tile t : tilesToRemove) {\n\t\t\t\ttempCollection.remove(t);\n\t\t\t}\n\n\t\t\ttoReturn = new ArrayList<Tile>(tempCollection.keySet());\t\n\t\t}\n\t\treturn toReturn;\n\t}",
"int getNumYTiles(Long id) throws RemoteException;",
"@Override\n public int getHeatCapacity() {\n return getHeatCapacity(true);\n }",
"int getMinimalPaletteDistance();",
"public int getMoveCost(Environment tile)\n {\n return getMoveCost(tile.weatherType, tile.terrainType);\n }",
"public int getNetworth();",
"private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"private void fetchTile() {\n\t\t\tif (tile.getRequest().isCancelled() || tile.isFinal()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tMapSource source = tile.getRequest().getSource();\n\t\t\tProjObj proj = tile.getRequest().getProjection();\n\t\t\tfinal int ppd = tile.getRequest().getPPD();\n\t\t\t\n\t\t\tfor (int fuzzyPPD = ppd/2 ; fuzzyPPD > 1 ; fuzzyPPD /= 2){\t\t\t\t\n\t\t\t\tint ratio = ppd / fuzzyPPD;\n\t\t\t\t\n\t\t\t\t// A tile has 256 pixels on a side.\n\t\t\t\t// Using this method, we can't upscale data to be fuzzy if it's more than 256 times larger \n\t\t\t\t// than the area we are looking to fill. Upscaling data more than 16 times seems unlikely to provide\n\t\t\t\t// any real benefit to the user, so we will quit our search at this point\n\t\t\t\tif (ratio>16) break;\n\t\t\t\t\n\t\t\t\tString tileName = CacheManager.getTileName(\n\t\t\t\t\tsource.getName(), proj, fuzzyPPD,\n\t\t\t\t\ttile.getXtile()/ratio, tile.getYtile()/ratio,\n\t\t\t\t\tsource.hasNumericKeyword());\n\t\t\t\t\n\t\t\t\tBufferedImage tileImage = CacheManager.getTile(source, tileName);\n\t\t\t\t\n\t\t\t\tif (tileImage==null) {\t\t\t\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint xtileindex = tile.getXtile() % ratio;\n\t\t\t\tint ytileindex = ratio - (tile.getYtile() % ratio) - 1;\n\t\t\t\t\n\t\t\t\tdouble fuzzyxstep = MapRetriever.tiler.getPixelWidth() / ratio;\n\t\t\t\tdouble fuzzyystep = MapRetriever.tiler.getPixelHeight() / ratio;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\ttileImage = tileImage.getSubimage((int)(xtileindex * fuzzyxstep), (int)(ytileindex * fuzzyystep), (int)fuzzyxstep, (int)fuzzyystep);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog(e);\n\t\t\t\t\tlog(\"xtileindex:\"+xtileindex+\" fuzzyxstep:\"+fuzzyxstep+\" ytileindex:\"+ytileindex+\" fuzzyystep:\"+fuzzyystep);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong outputImageSize = (tileImage.getWidth()*ratio)*(tileImage.getHeight()*ratio);\n\t\t\t\tif (outputImageSize <= 0 || outputImageSize > Integer.MAX_VALUE){\n\t\t\t\t\tlog(\"Scaling tile from \"+fuzzyPPD+\" to \"+ppd+\" will result in image size overflow.\"+\n\t\t\t\t\t\t\t\" Stopping further search for lower PPDs for this tile.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttileImage = CacheManager.scaleImage(tileImage, ratio);\n\t\t\t\t\n\t\t\t\tmyRetriever.fuzzyResponse(tile, tileImage);\n\t\t\t}\t\t\t\t\t\t\n\t\t}",
"public Board twin() {\n if (tiles[0][0] != 0 && tiles[0][1] != 0)\n return new Board(tiles, new Position(0, 0), new Position(0, 1));\n else\n return new Board(tiles, new Position(1, 0), new Position(1, 1));\n }",
"public Vector2i getSizeInTiles() {\n return new Vector2i(getWidthInTiles(), getHeightInTiles());\n }",
"float getWetness();",
"public final int getFourPerTileCount(int floorLevel) {\n/* 4859 */ if (this.vitems == null)\n/* 4860 */ return 0; \n/* 4861 */ return this.vitems.getFourPerTileCount(floorLevel);\n/* */ }",
"int getMines() {return mines;}",
"void raiseNumberOfStonesOnBoard();",
"public abstract TiledMapTileSet getTileSet();",
"public Marker gameWon() {\r\n for (int s : sums) {\r\n if (s == BOARD_SIZE) {\r\n return Marker.X;\r\n }\r\n else if (s == -BOARD_SIZE) {\r\n return Marker.O;\r\n }\r\n }\r\n\r\n return Marker.EMPTY;\r\n }",
"@Override\r\n\tpublic void getLegalMoves() {\r\n\t\tint pawnX = this.getX();\r\n\t\tint pawnY = this.getY();\r\n\t\tchar pawnColor = getColor();\r\n\t\tTile[][] chessBoard = SimpleChess.getChessBoard();\r\n\t\tcheckInFront(chessBoard,pawnX,pawnY,pawnColor);\r\n\t\tcheckDiagonal(chessBoard,pawnX,pawnY,pawnColor);\r\n\t}"
] | [
"0.6695432",
"0.6585491",
"0.6535262",
"0.6524665",
"0.6452372",
"0.63613045",
"0.63507444",
"0.62541986",
"0.6247743",
"0.6235268",
"0.6231381",
"0.6153087",
"0.6150639",
"0.6128358",
"0.6092957",
"0.6078748",
"0.60770035",
"0.6059524",
"0.60589147",
"0.6029841",
"0.60249287",
"0.5970616",
"0.59371674",
"0.59340537",
"0.59313047",
"0.5926451",
"0.59190404",
"0.59189403",
"0.5893508",
"0.588642",
"0.58812034",
"0.5863316",
"0.5821593",
"0.5789392",
"0.57871205",
"0.57670474",
"0.57643825",
"0.5763142",
"0.57491016",
"0.57158655",
"0.57032704",
"0.56969637",
"0.56930685",
"0.5671595",
"0.5665939",
"0.56565607",
"0.56453985",
"0.5644285",
"0.5627401",
"0.56238353",
"0.562158",
"0.5620912",
"0.5617226",
"0.561318",
"0.5599209",
"0.5597728",
"0.5596285",
"0.55848014",
"0.5580806",
"0.5579587",
"0.557914",
"0.5565486",
"0.5564672",
"0.55612284",
"0.55477446",
"0.5546891",
"0.5544633",
"0.5529023",
"0.5523452",
"0.55228335",
"0.5522406",
"0.5518855",
"0.55187255",
"0.5516606",
"0.5510755",
"0.5498257",
"0.5496466",
"0.54918855",
"0.54891855",
"0.54872143",
"0.5472467",
"0.54655135",
"0.5464187",
"0.5459147",
"0.54584444",
"0.5453495",
"0.5440837",
"0.54366666",
"0.54325956",
"0.5424204",
"0.54185325",
"0.54150873",
"0.54070514",
"0.54051137",
"0.54037297",
"0.53919995",
"0.53905356",
"0.53895587",
"0.5387053",
"0.5384961"
] | 0.5597945 | 55 |
Clear operation is not supported for Native Select. This operation has no effect on Native Select element. | @Override
public void clear() {
super.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder clearSelect() {\n\n select_ = getDefaultInstance().getSelect();\n onChanged();\n return this;\n }",
"@Override\n\tpublic void unselect() {\n\t}",
"public void clearAllSelected() {\n getSelectHelper().clearAllSelected();\n }",
"public void resetSelectPresentation();",
"@Override\r\n public void clear() {\r\n throw new UnsupportedOperationException(UNSUPPORTED);\r\n }",
"public void clearChoiceSelect() {\n choiceSelect = -1;\n }",
"public void clearChoiceSelect() {\n choiceSelect = -1;\n }",
"public void clearAccessibleSelection() {\n // To be fully implemented in a future release\n }",
"private void clear() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\n\tprotected void cmdClearWidgetSelected() {\n\t\tclearMode();\n\n\t}",
"public void clearSelection() {\n getElement().clearSelection();\n }",
"private void clearSelector() {\n \n selector_ = getDefaultInstance().getSelector();\n }",
"public void clearListSelection() {\n/* 494 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void clearSelection() {\n grid.getSelectionModel().deselectAll();\n }",
"@Override\r\n\tprotected Object getSelectData() {\n\t\treturn null;\r\n\t}",
"public void clearSelection() {\n buttonGroup.clearSelection();\n }",
"public void clearSelection()\n\t{\n\t\tgetObject().clearSelection();\n\t\treturn;\n\t}",
"public native void deselectAll() /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.deselectAll();\r\n }-*/;",
"public void clearSelection()\n/* */ {\n/* 166 */ if (isSelectionEmpty()) return;\n/* 167 */ clearSelectionImpl();\n/* 168 */ fireValueChanged(DateSelectionEvent.EventType.SELECTION_CLEARED);\n/* */ }",
"public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }",
"void clearSelection();",
"public void removeAllOptions() {\n\t\toptGroup.getOptions().clear();\n\t\tsetText(\"\");\n\t}",
"public abstract void clearAllSelections();",
"public void clear() throws ChangeVetoException;",
"public void clearComponentSelection(){\r\n ComponentSelectionTree.clearSelection();\r\n }",
"private void clearSelectionQuietly() {\n mRanger = null;\n\n if (!hasSelection()) {\n return;\n }\n\n Selection oldSelection = getSelection(new Selection());\n mSelection.clear();\n\n for (String id: oldSelection.getAll()) {\n notifyItemStateChanged(id, false);\n }\n }",
"public\n void\n clearTableSelection()\n {\n getRegisterPanel().clearTableSelection();\n }",
"private void getClearButtonSemantics() {\n //TODO implement method\n searchView.getSearchValueTextField().setText(\"\");\n searchView.getFieldComboBox().setSelectedIndex(-1);\n searchView.getResultsTextArea().setText(\"\");\n searchView.getSearchValueTextField().requestFocus();\n }",
"@Override\n protected void processUnselect() {\n \n }",
"@Test\r\n public void testRootNullMustClearSelection_39966() {\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n getView().setRoot(null);\r\n assertEmptySelection();\r\n }",
"private void helperSwitchSelectOff()\r\n\t{\r\n\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_SELECT);\r\n\r\n\t\tmainFormLink.getComponentToolbar().getComponentButtonSelect().setIcon(iconButton);\r\n\r\n\t\tFormMainMouse.isSampleSelectOn = false;\r\n\t}",
"private void toClear()\n {\n tfPaintId.setText(\"\");\n tfName.setText(\"\");\n tfPrice.setText(\"\");\n tfColor.setText(\"\");\n rwCombo.setSelectedIndex(0);\n bCombo.setSelectedIndex(0);\n typeCombo.setSelectedIndex(0);\n tfQuantity.setText(\"\");\n bg.clearSelection();\n \n }",
"private native void clearInput(Element input) /*-{\n if (input.selectionEnd)\n input.selectionEnd = input.selectionStart;\n else if ($doc.selection)\n $doc.selection.clear();\n }-*/;",
"public void reset() {\r\n availableOptionsModel.getObject().clear();\r\n selectedOptionsModel.getObject().clear();\r\n paletteForm.visitChildren(FormComponent.class, new IVisitor<Component>() {\r\n @Override\r\n public Object component(Component component) {\r\n ((FormComponent<?>) component).clearInput();\r\n return Component.IVisitor.CONTINUE_TRAVERSAL;\r\n }\r\n });\r\n paletteForm.getModelObject().setSearchString(\"\");\r\n }",
"public void clear() {\n m_selectors.clear();\n }",
"public void clearSelection() {\n\t\ttable.clearSelection();\n\t}",
"@Test\n\t@TestProperties(name = \"Clear element ${by}:${locator} selection\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void clearSelections() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}",
"@Override\n public void clear() {\n view.setText(\"\");\n view.setSelection(view.getText().length());\n }",
"public void deselectAll() {\n\t\tselected.clear();\n\t}",
"@Override\n\tpublic List selectList() {\n\t\treturn null;\n\t}",
"public void clear() {\n\t\tsuper.clear();\n\t\tthis.modelList.clear();\n\t\tif (elementoSeleccionar != null) {\n\t\t\tinsertItem(adapter.getListBoxDescription(elementoSeleccionar), elementoSeleccionar, 0);\n\t\t}\n\t}",
"@attribute(value = \"\", required = false, defaultValue=\"false\")\r\n\tpublic void removeAll() {\r\n\t\tcombo.removeAll();\r\n\t}",
"@Override\n public void clear() //Modify to take in Authenication ID for future logging function\n {\n super.clear();\n comboBoxModelSelectedItem = null;\n modelListenersNotify();\n }",
"@Override\n\tpublic void clear() {\n\n\t\tDisplay.findDisplay(uiThread).syncExec(new Runnable() {\n\n\t\t\tpublic void run() {\n\t\t\t\tclearInputs();\n\t\t\t\tsetDefaultValues();\n\t\t\t}\n\t\t});\n\n\t}",
"@Override\n public void deselectGolem() {\n }",
"public void ClearSearch(){\n \n SearchTF.setText(\"\");\n jComboBox1.setSelectedIndex(0);\n }",
"public void reinsertSelect()\r\n {\n\r\n HTMLSelectElement selectElem = comp.getHTMLSelectElement();\r\n comp.dispose();\r\n\r\n ((EventTarget)addRowsElem).removeEventListener(\"click\",this,false);\r\n ((EventTarget)removeRowsElem).removeEventListener(\"click\",this,false);\r\n ((EventTarget)reinsertSelect).removeEventListener(\"click\",this,false);\r\n ((EventTarget)changeOptions).removeEventListener(\"click\",this,false);\r\n\r\n Node parentNode = selectElem.getParentNode();\r\n Node nextNode = selectElem.getNextSibling();\r\n parentNode.removeChild(selectElem);\r\n parentNode.insertBefore(selectElem, nextNode);\r\n\r\n initListMultiple();\r\n }",
"public void resetSearchSelection() {\n this.quantSearchSelection = null;\n SelectionChanged(\"reset_quant_searching\");\n }",
"@Editor.Ignore\n T clear();",
"public void clearCombo() {\n\t\tcombo = false;\n\t}",
"public void clearSelection()\r\n {\r\n final ListSelectionModel selectionModel = jTable.getSelectionModel();\r\n selectionModel.clearSelection();\r\n }",
"public void clearSelected() {\n ObservableList<Extra> selected = extraSelected.getItems();\n for(int i =0; i < selected.size(); i++){\n sandwhich.remove(selected.get(i));\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n\n\n }",
"@FXML\n public void limpaCidade(){\n \ttxtNome.setText(\"\");\n \ttxtUf.getSelectionModel().clearSelection();\n }",
"public void clearMealBrowserFields(){\n mealMethod.clear();\n browseMealNutritionOne.setText(\"\");\n browseMealNutritionTwo.setText(\"\");\n mealIngred.getItems().clear();\n comboMealSelection.getSelectionModel().clearSelection();\n }",
"void cancelSelectMode();",
"public Builder clearSelector() {\n copyOnWrite();\n instance.clearSelector();\n return this;\n }",
"@Override\n public void formClearRegistry() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"@Override\n public void formClearRegistry() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"private void btn_clearAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_clearAllActionPerformed\n \n //Code to remove all selected items \n txt_inDate.setDate(null);\n txt_iniId.setText(\"\");\n cbo_iniName.setSelectedItem(0);\n txt_inQty.setText(\"\");\n }",
"public void clear()\n {\n for (SelectableGraphElement element : elements) {\n element.setSelected(false);\n }\n elements.clear();\n }",
"public void resetSelection(IClientContext context) throws Exception;",
"public void setClear()\n\t{\n\t\tsbm_consignCom1.db.remove(text_BookingID.getSelectedItem());\n\t\tsbm_consignCom1.cb.setSelectedItem(\"\");\n\t\ttext_advance.setText(\"\");\n\t\ttext_adults.setText(\"\");\n\t\ttext_children.setText(\"\");\n\t}",
"public void clear() {\n\t\tconfigurationToButtonMap.clear();\n\t\tselected.clear();\n\t\tsuper.removeAll();\n\t}",
"public void ClearAdd(){\n \n PID.setText(\"\");\n MN.setText(\"\");\n PN.setText(\"\");\n price.setText(\"\");\n category.setSelectedIndex(0);\n buttonGroup1.clearSelection();\n }",
"@Override\n public void clear() {\n sortOrder = null;\n selection = Selection.with();\n }",
"@Override\n public void clear() {\n \n }",
"@Override\n\tpublic void clear() {\n\t}",
"@FXML\n\tprivate void fieldSelectedAction(MouseEvent clickEvent) {\t\t\n\t\t\n\t\t((TextField)clickEvent.getSource()).clear();\n\t}",
"@Editor.Ignore\n T clear(boolean silent);",
"@Override\n\tvoid clear() {\n\n\t}",
"public void deselect();",
"void unsetControlType();",
"@Override\n public void clear()\n {\n\n }",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"protected void clear() {\r\n setValue(getDefault());\r\n }",
"@VisibleForTesting\n void cancelProvisionalSelection() {\n mProvisionalSelection.clear();\n }",
"@Override\n public void clear()\n {\n }",
"@Override\n protected void clear() {\n\n }",
"@Override\n\tpublic void clear() {\n\n\t}",
"public void clearTableSelectedSet(){\n\t\tselectionModel.clear();\n\t}",
"@Override public void clear() {\n }",
"public void clear() throws RemoteException, Error;",
"public native void clear();",
"private void clear() {\n\n machrefno.setText(null);\n machname.setText(null);\n manu.setSelectedItem(null);\n Date.setDate(null);\n dept.setSelectedItem(null);\n stat.setSelectedItem(null);\n \n }",
"public void clear() {\n lb.setText(\"\");\n }",
"@Override\r\n\tpublic void clear() {\n\r\n\t}",
"protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}",
"public void setClearEnabled() {\n clearIsEnabled = true;\n }",
"@Override\r\n\tpublic void clear() {\n\t\t\r\n\t}",
"public void Clear(View v) {\r\n ClearAll();\r\n ControlsSetEnabled();\r\n\r\n }",
"public void clearComboBox() {\n\t\tremove(QueryCombo);\n\t\tQueryCombo = new JComboBox();\n\t\tQueryCombo.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tMObjQueryResult qr = null;\n\t\t\t\tqr = (MObjQueryResult) QueryCombo.getSelectedItem();\n\t\t\t\tif (qr != null) {\n\t\t\t\t\tqr.clearSelection();\n\t\t\t\t\tQueryScrollPane.setViewportView(qr);\n\t\t\t\t} else\n\t\t\t\t\tQueryScrollPane.setViewportView(dummy);\n\t\t\t}\n\t\t});\n\t\tadd(QueryCombo, BorderLayout.NORTH);\n\t}",
"public void deselectAll()\n {\n map.deselectAll();\n mapComponent.repaint();\n mapper.resetMenus();\n }",
"@Override\n\tpublic List selectList() {\n\t\t\n\t\t\n\t\t\n\t\treturn null;\n\t}",
"@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}"
] | [
"0.7164514",
"0.6779094",
"0.67055905",
"0.67041135",
"0.6678043",
"0.664397",
"0.6614255",
"0.6605362",
"0.6574903",
"0.65296423",
"0.64471287",
"0.63624275",
"0.6334759",
"0.63079166",
"0.6304618",
"0.629037",
"0.6287902",
"0.6274167",
"0.6247206",
"0.624684",
"0.6238421",
"0.62278575",
"0.6224015",
"0.6220597",
"0.61218715",
"0.61169624",
"0.6101522",
"0.60575575",
"0.6035529",
"0.60318625",
"0.60088927",
"0.5976045",
"0.5970128",
"0.5958582",
"0.5941902",
"0.5899312",
"0.5894523",
"0.5879513",
"0.58572763",
"0.58470607",
"0.5826152",
"0.58200604",
"0.58046114",
"0.5798968",
"0.57904965",
"0.57762736",
"0.57674974",
"0.5767169",
"0.5757102",
"0.5750528",
"0.5747961",
"0.5722307",
"0.57219434",
"0.5712356",
"0.5698085",
"0.5692813",
"0.5687032",
"0.5687032",
"0.5679176",
"0.5675873",
"0.5661787",
"0.56605726",
"0.5659063",
"0.5652453",
"0.56371874",
"0.56241804",
"0.56215763",
"0.5621152",
"0.56193614",
"0.5613976",
"0.5607193",
"0.5605989",
"0.56022197",
"0.5596229",
"0.5596229",
"0.5596229",
"0.5596229",
"0.5596229",
"0.5596229",
"0.5596229",
"0.55928576",
"0.5588904",
"0.5588887",
"0.55884176",
"0.5587525",
"0.5585789",
"0.5583962",
"0.55824834",
"0.55796814",
"0.557554",
"0.55650276",
"0.55636173",
"0.5556935",
"0.55326056",
"0.553199",
"0.5516436",
"0.55006266",
"0.54934454",
"0.54890454",
"0.54759693",
"0.54759693"
] | 0.0 | -1 |
Return value of the selected item in the native select element | public String getValue() {
return selectElement.getFirstSelectedOption().getText();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getSelectItemValue(Element e) {\r\n String value = e.getAttribute(RichFaces.ATTR_SELECT_ITEM_LABEL);\r\n \r\n if (isBlank(value)) {\r\n value = e.getAttribute(RichFaces.ATTR_SELECT_ITEM_VALUE);\r\n if (ComponentUtil.isBlank(value)) {\r\n if (e.getNodeName().endsWith(SELECT_ITEMS)) {\r\n value = e.getAttribute(RichFaces.ATTR_VALUE);\r\n \r\n if (ComponentUtil.isBlank(value)) {\r\n value = EMPTY_SELECT_ITEMS_VALUE;\r\n }\r\n } else if (e.getNodeName().endsWith(SELECT_ITEM)) {\r\n value = EMPTY_SELECT_ITEM_VALUE;\r\n }\r\n }\r\n }\r\n return value;\r\n }",
"public T getSelectedValueOption() {\r\n return selectedValueOption;\r\n }",
"public int getValue(){\n return selectedValue;\n }",
"public String getSelectedValue() {\r\n\t\treturn selectedValue;\r\n\t}",
"public String getSelectedItem() {\n return (String) itsCombo.getSelectedItem();\n }",
"@Nullable\n public T getSelectedItem() {\n return SerDes.unmirror(getElement().getSelectedItem(), getItemClass());\n }",
"public T getSelectedOption() {\n return selectedIndex == -1 ? null : options.get(selectedIndex);\n }",
"public String getSelected ()\n {\n return ((GroupItem)gbox.getSelectedItem()).getSelected();\n }",
"public Object getSelectedObject() {\n return (String) itsCombo.getSelectedItem();\n }",
"public Item getSelectedItem() {\n return this.itemList.getSelectedValue();\n }",
"public String getSelectedItem() {\n if (selectedPosition != -1) {\n Toast.makeText(activity, \"Selected Item : \" + list.get(selectedPosition), Toast.LENGTH_SHORT).show();\n return list.get(selectedPosition);\n }\n return \"\";\n }",
"public boolean getSelectedValue() {\r\n\treturn this.selectedValue;\r\n }",
"public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}",
"public Item getSelectedItem() { return this.getSelectedSlot().getMappedItem(); }",
"public String getSelected()\r\n {\r\n if (selectedIndex == -1)\r\n return null;\r\n \r\n return towerTypes[selectedIndex];\r\n }",
"public S getSelected()\n\t\t{\n\t\t\treturn newValue;\n\t\t}",
"public int getSelectedValue() {\n\t\treturn this.slider.getValue();\n\t}",
"private String getSelectedString() {\n\t\treturn menuItem[selectedIndex];\r\n\t}",
"public ObservableValue<T> selectedItem() {\n return createObservableValue(this::getSelectedItem, this::setSelectedItem, \"selected-item-changed\");\n }",
"@Override\n\tpublic Object getSelection() {\n\t\tObject value = null;\n\t\tif (selectionNode instanceof Selectable) {\n\t\t\tvalue = ((Selectable) selectionNode).getSelection();\n\t\t}\n\t\treturn value;\n\t}",
"public String getValue_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getAttribute(\"value\");\r\n\t}",
"@Override\n\tpublic int getValueSelected()\n\t{\n\t\treturn 0;\n\t}",
"private Room RoomComboBoxValue()\r\n\t{\r\n\t\tRoom r = (Room) roomComboBox.getSelectedItem();\r\n\t\treturn r;\r\n\t}",
"public Selectable getValuableElement();",
"public int getSelected() {\n \t\treturn selected;\n \t}",
"public String getSelectedId() {\n OptionEntry o=getSelectedOption();\n if (o!=null) {\n return o.getId();\n } else {\n return null;\n }\n\n }",
"@Override\r\n protected TreeItem getSelectedItem() {\r\n return getSelectionModel().getSelectedItem();\r\n }",
"public HTMLSelectElement getElementCodigoEmpleado() { return this.$element_CodigoEmpleado; }",
"public String getSelectedAnswer() {\n\t\tList<Integer> selected = getSelectedIndexes();\n\t\treturn this.value.get(selected.get(0));\n\t}",
"public static String getSelectedOption(WebElement options) {\n\t\tString sSelectedOption = null;\n\t\ttry {\n\t\t\tlogger.info(\"INTO THE METHOD getSelectedOption\");\n\t\t\tSelect selectedOption = new Select(options);\n\t\t\tsSelectedOption = selectedOption.getFirstSelectedOption().getText();\n\t\t\tlogger.info(\"OUT OF METHOD getSelectedOption\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Some error came on function->select->\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t\treturn sSelectedOption;\n\t}",
"public String getOptionSelection(){\r\n\t\treturn optionSelection;\r\n\t}",
"public java.lang.Object getChoiceValue() {\n return this._choiceValue;\n }",
"public Gnome getSelectedItem() {\n return selectedItem;\n }",
"public T getSelectedItem() {\n\t\tT selectedItem = null;\n\t\tint position = spinner.getSelectedItemPosition();\n\t\tif(position >= 0) {\n\t\t\tselectedItem = adapter.getItem(position);\n\t\t}\n\t\treturn selectedItem;\n\t}",
"public Object getValue() {\n return spinner.getValue();\n }",
"public native MenuItem getSelectedItem();",
"private InnerTextView getSelectItem(){\n\t\tInnerTextView result = null;\n\t\tif (mCurrentSelect != -1) {\n\t\t\tif (mCurrentSelect < mTotalTexts.size() && mCurrentSelect >= 0) {\n\t\t\t\tresult = mTotalTexts.get(mCurrentSelect);\n\t\t\t} else {\n\t\t\t\tmCurrentSelect = -1;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public int getSelectNum() {\n\t\treturn comboBox.getItemAt(comboBox.getSelectedIndex()).intValue();\n\t}",
"@Deprecated\n @Override\n public Object getSelectedValue() {\n if (super.getSelectedValue() != null) {\n return super.getSelectedValue();\n }\n\n return getSelectedRowObject();\n }",
"public int getSelectedId() {\n return selectedId;\n }",
"String getSelect();",
"String getSelect();",
"public ImageFlowItem getSelectedValue()\r\n {\r\n if (getAvatars() == null || getAvatars().isEmpty() || getSelectedIndex() >= getAvatars().size() || getSelectedIndex() < 0)\r\n {\r\n return null;\r\n }\r\n\r\n return getAvatars().get(getSelectedIndex());\r\n }",
"public int getSelectedIndex() {\n return selectedIndex;\n }",
"public ItemT getSelectedItem() {\n return selectedItem;\n }",
"public E getSelected() {\n ButtonModel selection = selectedModelRef.get();\n //noinspection UseOfSystemOutOrSystemErr\n final String actionCommand = selection.getActionCommand();\n //noinspection HardCodedStringLiteral,UseOfSystemOutOrSystemErr\n return Objects.requireNonNull(textMap.get(actionCommand));\n }",
"public T getSelectedWarningValue() {\n return normalizedToValue(normalizedWarningValue);\n }",
"public String getSelectField() {\n return m_selectField;\n }",
"public native int getSelectedIndex();",
"protected Object getCurrentSelectedValues(FacesContext context, UIComponent component) {\r\n if (component instanceof UISelectMany) {\r\n // get the selected value for select many\r\n UISelectMany select = (UISelectMany) component;\r\n Object value = select.getValue();\r\n if (value instanceof List)\r\n return ((List) value).toArray();\r\n\r\n return value;\r\n }\r\n // get the selected value for select one\r\n UISelectOne select = (UISelectOne) component;\r\n Object returnObject = select.getValue();\r\n if (returnObject != null) {\r\n return new Object[]{returnObject};\r\n }\r\n return null;\r\n }",
"public int getSelectedItem() {\n return mSelectedItem;\n }",
"public BrowseItem getSelectedItem()\r\n\t{\r\n\t\treturn this.selectedItem;\r\n\t}",
"public String getSelection()\n\t{\n\t\tString hour = (String)cbHour.getSelectedItem();\n\t\tString minutes = (String)cbMinutes.getSelectedItem();\n\t\tString am_pm = (String)cb_Am_Pm.getSelectedItem();\n\t\t\n\t\treturn (hour+\":\"+minutes+\" \"+am_pm);\n\t\t\n\t}",
"public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }",
"public int getValue()\n { \n return table.get(getSelectedItem());\n }",
"public TreeItem getSelectedItem();",
"private String getChoice() {\n return searchChoiceBox.getValue();\n }",
"public String getValue(String _opt){\r\n\t\treturn getOption(_opt).getValue();\r\n\t}",
"@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String[] getSelected() {\n\t\treturn null;\r\n\t}",
"public ChooseValue getChooseValueDialog() {\n\t\treturn chooseValueDialog;\n\t}",
"public Object getSelectedKey()\n\t{\n\t\tif ( m_results.size() == 0)\n\t\t\treturn null;\n\t\treturn m_results.get(0);\n\t}",
"public String getValue() {\n return super.getAttributeValue();\n }",
"IProductInfo getM_piSelectedItem();",
"public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }",
"public DSLVariableValue getSelectedValue() {\n if ( oldVariableValue instanceof DSLComplexVariableValue ) {\n return new DSLComplexVariableValue( ( (DSLComplexVariableValue) oldVariableValue ).getId(),\n box.getText() );\n }\n return new DSLVariableValue( box.getText() );\n }",
"public String getSelectedNumber() {\n\t\treturn uNumber;\n\t}",
"public static void firstSelectedOption(WebElement element) {\n\t\tSelect s = new Select(element);\n\t\tString text = s.getFirstSelectedOption().getText();\n\t\tSystem.out.println(text);\n\t}",
"public String getChoice() {\r\n\t\ttype(ConfigurationItemType.CHOICE);\r\n\t\treturn stringValue;\r\n\t}",
"public String getItemValue() {\n return itemValue;\n }",
"private RoomType RoomTypeComboBoxValue()\r\n\t{\r\n\t\tRoomType o1 = (RoomType) rtComboBox.getSelectedItem();\r\n\t\treturn o1;\r\n\t}",
"public Object getSelection() {\n return selection;\n }",
"public static String gettreevalue(JTree tree ) {\n //Returns the last path element of the selection.\n //This method is useful only when the selection model allows a single selection.\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();\nString selected=null;\n if (node == null)\n //Nothing is selected. \n return null;\n\n Object nodeInfo = node.getUserObject();\n\n \n selected = (String)nodeInfo;\n // displayURL(book.bookURL);\n \n return selected;\n\n\n }",
"public List<F> getSelected() {\n return selected;\n }",
"@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n SpinnerValue = (String)spinner.getSelectedItem();\n }",
"protected Object doGetValue() {\n \t\tString aText = getText().getText();\n \n \t\t// handle value from collection editor dialog\n \t\tif (value instanceof ElementValue) {\n \t\t\t((ElementValue) value).setValue(aText);\n \t\t\treturn value;\n \t\t}\n \n \t\treturn aText;\n \t}",
"public CharSequence getSelectedLabel()\n\t{\n\t\treturn _current.label.getText();\n\t}",
"public final String getOnSelectAttribute() {\n return getAttributeValue(\"onselect\");\n }",
"public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass()));\n }\n }",
"@Nullable String pickItem();",
"Object getSelection();",
"public AppDescriptor getSelected()\n {\n DefaultMutableTreeNode nodeSelected = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent();\n AppDescriptor appDesc = null;\n \n if( (nodeSelected != null) && (nodeSelected.getUserObject() instanceof AppDescriptor) )\n appDesc = (AppDescriptor) nodeSelected.getUserObject();\n \n return appDesc;\n }",
"public String getSelectedIdentifier () {\n if (SwingUtilities.isEventDispatchThread()) {\n return getSelectedIdentifier_();\n } else {\n final String[] si = new String[1];\n try {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n si[0] = getSelectedIdentifier_();\n }\n });\n } catch (InvocationTargetException ex) {\n ErrorManager.getDefault().notify(ex.getTargetException());\n } catch (InterruptedException ex) {\n // interrupted, ignored.\n }\n return si[0];\n }\n }",
"SelectAlternative getSelectAlternative();",
"public String getSelected ()\n {\n ConfigTreeNode node = _tree.getSelectedNode();\n return (node == null)\n ? null\n : node.getName();\n }",
"@Override\n\t\tpublic V getValue() {\n\t\t\treturn v;\n\t\t}",
"public String productTypeSelected() {\n String productType = \"\";\n rbListAddElement();\n for (int i = 0; i < rbProductType.size(); i++) {\n if (rbProductType.get(i).isSelected()) {\n productType += (rbProductType.get(i).getText());\n System.out.println(\"Selected product type :\" + productType);\n }\n }\n return productType;\n }",
"private long getSelectedIndex() {\r\n if (selection != null && selection.getKeys().hasNext()) {\r\n return new Long((Integer) selection.getKeys().next());\r\n } else {\r\n return selectedRowId;\r\n }\r\n }",
"@Override\n\t\tpublic V getValue(){\n\t\t\treturn value;\n\t\t}",
"@Override\n public Object getCellEditorValue() {\n if (item_.allowed.length == 1) {\n if (item_.singleProp && item_.hasLimits) {\n return slider_.getText();\n } else if (item_.singlePropAllowed != null && item_.singlePropAllowed.length == 0) {\n return text_.getText();\n } else {\n return combo_.getSelectedItem();\n }\n } else {\n return combo_.getSelectedItem();\n }\n }",
"@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}",
"public String selection() {\n return inputter.selection();\n }",
"public Object getCellEditorValue() {\r\n return component.getText();\r\n }",
"public HTMLSelectElement getElementFproceso() { return this.$element_Fproceso; }",
"protected Object[] getSubmittedSelectedValues(FacesContext context,\r\n UIComponent component) {\r\n if (component instanceof UISelectMany) {\r\n // get submit value of select many component\r\n UISelectMany select = (UISelectMany) component;\r\n return (Object[]) select.getSubmittedValue();\r\n }\r\n\r\n UISelectOne select = (UISelectOne) component;\r\n Object returnObject;\r\n if (null != (returnObject = select.getSubmittedValue())) {\r\n // get submit value of select one component\r\n return new Object[]{returnObject};\r\n }\r\n return null;\r\n }",
"@Override\n public V getValue() {\n return m_value;\n }",
"public String getComboBoxValue() {\n\t\treturn comboBoxValue;\n\t}",
"private JComboBox getValue() {\n\t\tif (value == null) {\n\t\t\tvalue = new JComboBox();\n\t\t\tvalue.setModel(new DefaultComboBoxModel(new String [] {\"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\"}));\n\t\t}\n\t\treturn value;\n\t}",
"public Object getValue() {\n return element == null ? null : element.getValue();\n }",
"public T getSelection() {\n ButtonModel selected = buttonGroup.getSelection();\n if (selected == null) {\n return null;\n }\n T key = modelToKeyMap.get(selected);\n if (key == null) {\n throw new IllegalArgumentException(\"Key not found for selected radio button: \" + selected);\n }\n return (key != NULL ? key : null);\n }"
] | [
"0.7504858",
"0.7431765",
"0.73555386",
"0.7336961",
"0.69690377",
"0.6844897",
"0.6796859",
"0.6728005",
"0.6689814",
"0.66047096",
"0.659402",
"0.6514147",
"0.6513911",
"0.6505705",
"0.6439616",
"0.64358157",
"0.64108646",
"0.6396129",
"0.6391545",
"0.63893545",
"0.635244",
"0.63260174",
"0.6318516",
"0.6316496",
"0.6308974",
"0.6307209",
"0.6267904",
"0.6264626",
"0.6243184",
"0.6236652",
"0.6221174",
"0.6210891",
"0.62077534",
"0.6166577",
"0.61390513",
"0.6127007",
"0.611966",
"0.6095611",
"0.60541517",
"0.6044165",
"0.6037666",
"0.6037666",
"0.6033314",
"0.601046",
"0.6009105",
"0.5992159",
"0.5973741",
"0.5966915",
"0.5966196",
"0.595561",
"0.59394556",
"0.59386414",
"0.5912216",
"0.589533",
"0.5883038",
"0.5881378",
"0.58583814",
"0.58375096",
"0.583725",
"0.583725",
"0.5830397",
"0.58212566",
"0.58124936",
"0.58070654",
"0.58013844",
"0.5777766",
"0.5749838",
"0.57469624",
"0.57419753",
"0.57395655",
"0.5726577",
"0.5710212",
"0.5708709",
"0.5700412",
"0.5686021",
"0.56772244",
"0.5670459",
"0.5669282",
"0.56644046",
"0.5664389",
"0.56573725",
"0.5654088",
"0.56535685",
"0.5650313",
"0.5645308",
"0.5635933",
"0.56321293",
"0.56270206",
"0.56261533",
"0.5614752",
"0.56083304",
"0.5603713",
"0.5589767",
"0.5586594",
"0.5586275",
"0.5577297",
"0.5570205",
"0.5569539",
"0.5567804",
"0.5561334"
] | 0.7905363 | 0 |
Select item of the native select element with the specified value | public void setValue(CharSequence chars) throws ReadOnlyException {
selectByText((String) chars);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void selectValue(WebElement element,String value){\n\t\tSelect options = new Select(element);\n\t\toptions.selectByVisibleText(value);\n\t}",
"public static void selectValueFromDropDownByValue(WebElement element, String value) {\n \t\n \tselect = new Select(element);\n \tselect.selectByValue(value);\n \t\n }",
"public void selectFromDropdown_Using_Value(WebElement element, String value) {\n\t\ttry {\n\t\t\tSelect select = new Select(element);\n\t\t\tselect.selectByValue(value);\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void selectDropdownByValue(WebElement element,String value){\n Select select = new Select(element);\n select.selectByValue(value);\n }",
"public void selectByValue(WebElement webElement,String value)\n\t{\n\t\tSelect sel = new Select(webElement);\n\t\tsel.selectByValue(value);\n\t}",
"public void selectDropDownUsingValue(WebElement ele, String value) {\n\t\tSelect dropdown=new Select(ele);\r\n\t\tdropdown.selectByValue(value);\r\n\t}",
"public static void select(WebElement select1, String value) {\r\n\r\n\t\tSelect select = new Select(select1);\r\n\t\tselect.selectByVisibleText(value);\r\n\t\tReporter.log(\"Selecting from dropdown value as : \" + value);\r\n\r\n\t}",
"public void select(final String value) {\n\t\tif (value == null) {\n\t\t\treturn;\n\t\t}\n\t\twait(action(c -> {\n\t\t\tfor (int i = 0; i < c.getModel().getSize(); i++) {\n\t\t\t\tif (value.equals(c.getModel().getElementAt(i).toString())) {\n\t\t\t\t\tc.setSelectedIndex(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}).withReportText(\"selecting element \" + value));\n\t\tAssertions.assertTrue(getCachedElement().getSelectedIndex() >= 0,\n\t\t\t\t() -> name + \": element must have been selected: \" + value);\n\t}",
"public void selectByValue(By locator,String value){\n\n\t\tWebElement element = findElementClickable(locator);\n\n try {\n\n Select select=new Select(element);\n select.selectByValue(value);\n LOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass\");\n }catch(Exception e)\n {\n LOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n //e.printStackTrace();\n throw new NotFoundException(\"There is an error while selecting the value \"+value+\": with locator \"+locator+\". Exception \"+e);\n\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n }",
"public void selectValuefromDropDown(WebElement element, String text) {\n\t\tSelect dropDown = new Select(element);\n\t\tdropDown.selectByVisibleText(text);\n\t}",
"public void setSingleSelectValue(String value){\n WebElement select = driver.findElement(singleSelectLocator);\n Select sele = new Select(select);\n sele.selectByIndex(1);\n /*\n actions.click(select).sendKeys(value).build().perform();\n // WebElement datalist = driver.findElement(By.tagName(\"datalist\"));\n \n List<WebElement> allOptions = select.findElements(By.tagName(\"option\"));\n System.out.println(\"#of datalist options: \" + allOptions.size());\n actions.moveToElement(allOptions.get(1)).click().build().perform();\n */\n //shift + tab\n // actions.sendKeys(Keys.TAB).perform();\n WebElement empidField = driver.findElement(inputTextEmpidLocator); \n actions.click(empidField).perform();\n \n }",
"public void selectItemInDropDownByValue(WebElement elementDD, String valueInDD) {\r\n try {\r\n Select optionsFromDD = new Select(elementDD);\r\n optionsFromDD.selectByValue(valueInDD);\r\n logger.info(valueInDD + \" was select in DD\");\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Cannot work with element\");\r\n Assert.fail(\"Cannot work with element\");\r\n }\r\n\r\n }",
"public static void dropDownByValue(WebElement element, String value) {\r\n\t\ttry {\r\n\t\t\tSelect dropdown = new Select(element);\r\n\t\t\tdropdown.selectByValue(value);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"WebElement not found : \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void selectFromDropdownByValue(By by,String value)\n {\n Select select = new Select(driver.findElement(by));\n select.selectByValue(value);\n\n }",
"public Builder setSelect(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n select_ = value;\n onChanged();\n return this;\n }",
"public void selectOption(WebElement element,String text) {\nSelect s=new Select(element);\n//List<WebElement> options = s.getOptions();\n//WebElement webElement = options.get(index);\n//String text = webElement.getText();\ns.selectByVisibleText(text);\n\n\n}",
"public static void selectByValue(By element, String num)\n {\n new Select(driver.findElement(element)).selectByValue(num);\n }",
"public void selectDropDownUsingVisibleText(WebElement ele, String value) {\n\t\tSelect dropdown=new Select(ele);\r\n\t\tdropdown.selectByVisibleText(value);\r\n\t}",
"public static void selectFromList(WebElement select,\n\t\t\tString sValueToBeSelected) {\n\t\ttry {\n\t\t\tlogger.info(\"Inside getElementFromList method\");\n\t\t\tList<WebElement> options = select\n\t\t\t\t\t.findElements(By.tagName(\"option\"));\n\t\t\tlogger.info(\"Total elements having Option TAG :\" + options.size());\n\t\t\tfor (WebElement option : options) {\n\t\t\t\tlogger.info(option.getText());\n\t\t\t\tif (option.getText().trim()\n\t\t\t\t\t\t.equalsIgnoreCase(sValueToBeSelected.trim())) {\n\t\t\t\t\tlogger.info(\"Tag Name matched and will be clicked\");\n\t\t\t\t\toption.click();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error ocurred while selecting the element fron List\"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"protected void findWebElementAndSelect(By webElementSelector, String value){\n\t\ttry {\n\t\t\tSelect dropdown = new Select(findWebElement(webElementSelector));\n\t\t\tdropdown.selectByVisibleText(value);\n\t\t} catch (UnexpectedTagNameException e) {\n\t\t\tthrow new AssertionError(\"Cannot create select item basing on webElement \" + webElementSelector.toString());\n\t\t}\t\t\n\t}",
"public void selectvalueFromDropDown(String xpath,String value){\n\t\tList<WebElement> Options = driver.findElements(By.xpath(xpath));\n\t\tfor(WebElement option : Options){\n\t\t\tif(option.getText().equals(value)){\n\t\t\t\toption.click();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}",
"@Nonnull\n public ExternalMeetingRegistrantRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"public static void select_by_value(By locator, String value) throws CheetahException {\n\t\ttry {\n\t\t\twait_for_element(locator);\n\t\t\tSelect element = new Select(CheetahEngine.getDriverInstance().findElement(locator));\n\n\t\t\tWebElement elem = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(elem);\n\t\t\tdriverUtils.unHighlightElement(elem);\n\n\t\t\telement.selectByVisibleText(value);\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"@Nonnull\n public UserSettingsRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"public static void dropdownText(WebElement element, String value) {\n\t\ts = new Select(element);\n\t\ts.selectByVisibleText(value);\n\t}",
"@Nonnull\n public OnlineMeetingRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"public void selectTypeSelenium(String seleniumValue) {\n\t\treporterLog(\"select\"+seleniumValue+\"from dropdown\");\n\t\twaitForElementPresent(sdd_selenium);\n\t\tselectByValueDropdown(sdd_selenium, seleniumValue);\n\t\timplicitlyWait(2);\n\n\t}",
"public static void jqueryselectdropdown(By locator,String... value) {\n \t List<WebElement> selectchoice=driver.findElements(locator);\n \t\tSystem.out.println(selectchoice.size());\n \t\tif(! value[0].equalsIgnoreCase(\"all\")) {\n \t\t\t\t\n \t\tfor(int i=0;i<selectchoice.size();i++) {\n \t\t\tString text=selectchoice.get(i).getText();\n \t\t\tSystem.out.println(text);\n \t\t\t//if(text.equals(value)) {this is for singele value\n \t\t\t\t//ele.click();\n \t\t\t\t//break;\n \t\t\t//}\n \t\t\t\n \t\t\t\n \t\t\tfor(int j=0;j<value.length;j++) {\n \t\t\t\tif(text.equals(value[j])) {\n \t\t\t\t\tselectchoice.get(i).click();\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\n \t\t}\n \t\t}\n \t\t\n \t\t\t\n \t\t\n \t\telse {\n \t\t\ttry {\n \t\t\tfor(WebElement e:selectchoice) {\n \t\t\t\te.click();\n \t\t\t\t\n \t\t\t}\n \t\t\t}catch (Exception e) {\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t\t}",
"public static void dropdownIndex(WebElement element, String value) {\n\t\ts = new Select(element);\n\t\tInteger index = Integer.valueOf(value);\n\t\ts.selectByIndex(index);\n\t}",
"public boolean selectDropdownValueByValue(By locator,String valueAttributeText){\r\n\t\t\ttry {\r\n\t\t\t\tthis.waitForVisibilityOfElement(locator);\r\n\t\t\t\tWebElement dropdown = driver.findElement(locator);\r\n\t\t\t\tSelect select = new Select(dropdown);\r\n\t\t\t\tselect.selectByValue(valueAttributeText);\r\n\t\t\t\treturn true;\r\n\t\t\t} catch (NoSuchElementException e) {\r\n\t\t\t\tSystem.out.println(\"No Such Element Exception :\" + e.getMessage());\r\n\t\t\t\treturn false;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}",
"public void assertSelectedValue(final String selectLocator, final String valuePattern);",
"public void selectvalueFromList(String xpath,String value){\n\t\tList<WebElement> Options = driver.findElements(By.xpath(xpath));\n\t\tfor(WebElement option : Options){\n\t\t\tif(option.getText().equals(value)){\n\t\t\t\toption.click();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}",
"@Nonnull\n public ManagedAppPolicyRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"@Nonnull\n public DelegatedAdminCustomerRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"public void Click_selectmenu(String val, WebElement eleToClick, ExtentTest extentedReport) throws Exception {\n\t\ttry {\n\t\t\tSelect cotentsdropdown = new Select(eleToClick);\n\t\t\tcotentsdropdown.selectByValue(val);\n\t\t\tLog.message(\"Selected menu option: \" + val, extentedReport);\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\"Selected menu option\" + e);\n\t\t}\n\t}",
"public void selectDropdownvalueOnCheckoutOrderPage(String key, String value){\n\t\tselectDropdownvalue(key, value);\n\t}",
"@Nonnull\n public UserExperienceAnalyticsAnomalyDeviceRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"public static void selectFromDropdownByValue(By by, String text) {\n Select select = new Select(driver.findElement(by));\n select.selectByValue(text);\n }",
"public static String getSelectItemValue(Element e) {\r\n String value = e.getAttribute(RichFaces.ATTR_SELECT_ITEM_LABEL);\r\n \r\n if (isBlank(value)) {\r\n value = e.getAttribute(RichFaces.ATTR_SELECT_ITEM_VALUE);\r\n if (ComponentUtil.isBlank(value)) {\r\n if (e.getNodeName().endsWith(SELECT_ITEMS)) {\r\n value = e.getAttribute(RichFaces.ATTR_VALUE);\r\n \r\n if (ComponentUtil.isBlank(value)) {\r\n value = EMPTY_SELECT_ITEMS_VALUE;\r\n }\r\n } else if (e.getNodeName().endsWith(SELECT_ITEM)) {\r\n value = EMPTY_SELECT_ITEM_VALUE;\r\n }\r\n }\r\n }\r\n return value;\r\n }",
"@Test(priority = 13)\n public void selectDropdownTest() {\n Select colors = new Select(driver.findElement(By.cssSelector(\"div.colors select\")));\n colors.selectByVisibleText(\"Yellow\");\n }",
"WebElement getStatusSelectField();",
"public Selectable getValuableElement();",
"@Nonnull\n public PersonAnnotationRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"@Nonnull\n public AndroidWorkProfileCertificateProfileBaseRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"Select createSelect();",
"public static void select(Combo combo, Object value){\n\t\tfor (int i = 0; i <combo.getItems().length; i++) {\n\t\t\tif (value.equals(combo.getItem(i))){\n\t\t\t\tcombo.select(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Nonnull\n public SynchronizationJobCollectionRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"public boolean selectFor(String value, String place) {\n boolean result = clickSelectOption(place, value);\n if (!result) {\n // try to click the first element with right value\n result = click(value);\n }\n return result;\n }",
"public void Dropdownselection(WebElement ele) {\t\t\n\t\t\n\t Select dropdown = new Select(ele);\n\t//Get all options\n\tList<WebElement> dd = dropdown.getOptions();\n\t int iCnt = dd.size();\n Random num = new Random();\n int iSelect = num.nextInt(iCnt);\n dropdown.selectByIndex(iSelect);\n System.out.println(\"Element Name 1 : \" +ele.getAttribute(\"value\"));\n\t}",
"SelectAlternative getSelectAlternative();",
"public void selectItemInDropDownByVisibleText(WebElement elementDD, String textForSelect) {\r\n try {\r\n Select optionsFromDD = new Select(elementDD);\r\n optionsFromDD.selectByVisibleText(textForSelect);\r\n logger.info(textForSelect + \" was selected in DD\");\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Cannot work with element\");\r\n Assert.fail(\"Cannot work with element\");\r\n }\r\n\r\n }",
"public static void selectByValue(By by, String text) {\n Select select = new Select(driver.findElement(by));\n select.selectByValue(text);\n }",
"public void selectOption(WebDriver driver, Object selectionListXpath, String visibleText) throws InterruptedException{\n\t\t\tWebElement dropwDownListBox = driver.findElement(By.xpath(String.valueOf(selectionListXpath)));\n\t\t\tSelect clickThis = new Select(dropwDownListBox);\n\t\t\tThread.sleep(1000);\n\t\t clickThis.selectByVisibleText(visibleText); \n\t\t\tThread.sleep(1000);\n\t }",
"public void selectFromDropdown_Using_Text(WebElement element, String text) {\n\t\ttry {\n\t\t\tSelect select = new Select(element);\n\t\t\tselect.selectByVisibleText(text);\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean selectDropdownValueByIndex(By locator,int index){\r\n\t\ttry {\r\n\t\t\tthis.waitForVisibilityOfElement(locator);\r\n\t\t\tWebElement dropdown = driver.findElement(locator);\r\n\t\t\tSelect select = new Select(dropdown);\r\n\t\t\tselect.selectByIndex(index);\r\n\t\t\treturn true;\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tSystem.out.println(\"No Such Element Exception :\" + e.getMessage());\r\n\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void SelectValueByName(String Id, String Value) {\n\t\t\r\n\t}",
"IAccessPackageCatalogReferenceRequest select(final String value);",
"protected Select selecionarOpcao(WebElement elemento) {\n\t\taguardaElemento(ExpectedConditions.elementToBeClickable(elemento));\n\t\treturn new Select(elemento);\n\t}",
"public void select(T item) {\n getElement().select(SerDes.mirror(item));\n }",
"public IEntityType2Request select(final String value) {\n getQueryOptions().add(new com.microsoft.graph.options.QueryOption(\"$select\", value));\n return (EntityType2Request)this;\n }",
"public void selectFromDropdown_Using_index(WebElement element, int index) {\n\t\ttry {\n\t\t\tSelect select = new Select(element);\n\t\t\tselect.selectByIndex(index);\n\t\t} catch (NoSuchElementException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static Target selectQuantity(String quantity){\n\t\treturn Target.the(\"Select to quantity of dropdown list\").locatedBy(\"//option[@value='\"+quantity+\"']\");\t\n\t}",
"public static void getFirstSelectedoption(By by, String text) {\n Select select = new Select(driver.findElement(by));\n select.getFirstSelectedOption();\n }",
"public void setSelectedItem(T value) {\n getElement().setSelectedItem(SerDes.mirror(value));\n }",
"@Nonnull\n public DeviceManagementDomainJoinConnectorRequest select(@Nonnull final String value) {\n addSelectOption(value);\n return this;\n }",
"void select(int index) throws InvalidValueException;",
"public void selectDropDownUsingIndex(WebElement ele, int index) {\n\t\tSelect dropdown=new Select(ele);\r\n\t\tdropdown.selectByIndex(index);\r\n\t}",
"public static void firstSelectedOption(WebElement element) {\n\t\tSelect s = new Select(element);\n\t\tString text = s.getFirstSelectedOption().getText();\n\t\tSystem.out.println(text);\n\t}",
"public static void selectDdValue(WebElement element, int index) {\n\n\t\ttry {\n\t\t\tSelect select = new Select(element);\n\t\t\tint size = select.getOptions().size();\n\t\t\tif (size > index) {\n\t\t\t\tselect.deselectByIndex(index);\n\t\t\t}\n\n\t\t} catch (UnexpectedTagNameException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public HTMLSelectElement getElementCodigoEmpleado() { return this.$element_CodigoEmpleado; }",
"public static void select(StringComboViewer viewer, Object value){\n\t\t\n\t\tCollection<String> input = viewer.getInputCollection();\n\t\tint i = 0;\n\t\tfor (String name : input){\n\t\t\tif (value.equals(name)){\n\t\t\t\tviewer.setSelection(new StructuredSelection(viewer.getElementAt(i)));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}",
"public void selectOption(WebDriver driver, String secondaryPartialSelectionListID, String visibleText) throws InterruptedException{\n\t\t\tWebElement dropwDownListBox = driver.findElement(By.xpath(\n\t\t\t\t\t \"//*[contains(@id,'edit-field') and contains(@id,'\" +\n\t\t\t secondaryPartialSelectionListID + \n\t\t\t \"')]\"\n\t\t\t ));\n\t\t\tSelect clickThis = new Select(dropwDownListBox);\n\t\t\tThread.sleep(1000);\n\t\t clickThis.selectByVisibleText(visibleText); \n\t\t\tThread.sleep(1000);\n\t }",
"public void setComboboxValue(WebElement element, String value) throws InterruptedException {\n typeToElement(element, value + \"\\n\", true);\n waitSuggestBoxHide();\n }",
"public static void dropDownAction(WebDriver driver, String locatorType, String locatorValue, String testdata) throws Exception\r\n{\r\n\tif(locatorType.equalsIgnoreCase(\"xpath\"))\r\n\t{\r\n\t\tint value = Integer.parseInt(testdata);\r\n\t\tWebElement element = driver.findElement(By.xpath(locatorValue));\r\n\t\tSelect select = new Select(element);\r\n\t\tselect.selectByIndex(value);\r\n\t\t\r\n\t}\r\n\tif(locatorType.equalsIgnoreCase(\"id\"))\r\n\t{\r\n\t\tint value = Integer.parseInt(testdata);\r\n\t\tWebElement element = driver.findElement(By.xpath(locatorValue));\r\n\t\tSelect select = new Select(element);\r\n\t\tselect.selectByIndex(value);\r\n\t\t\r\n\t}\r\n}",
"public static void selectByVisibleText(WebElement element,String strValue) {\n\t\tSelect slc;\n\t\ttry {\n\t\t\twaitForElementVisibility(element);\n\t\t\tslc = new Select(element);\n\t\t\tslc.selectByVisibleText(strValue);\n\t\t}catch(Exception e) {\n\t\t\tlogger.info(e.getMessage());\n\t\t}\n\t}",
"public void selectDropDownByIndex(By locator, int index) {\n\t\tSelect dropdown = new Select(SharedSD.getDriver().findElement(locator));\n\t\tdropdown.selectByIndex(index);\n\t}",
"public void selectDropDown(By locator, String string) {\n\t\tSelect dropdown = new Select(SharedSD.getDriver().findElement(locator));\n\t\tdropdown.selectByVisibleText(string);\n\t}",
"public static void selectFromDropdownByIndex(By by, int index) {\n Select select = new Select(driver.findElement(by));\n select.selectByIndex(index);\n }",
"public boolean selectDropdownValueByVisibleText(By locator, String optionToSelect) {\r\n\t\ttry {\r\n\t\t\tthis.waitForVisibilityOfElement(locator);\r\n\t\t\tWebElement dropdown = driver.findElement(locator);\r\n\t\t\tSelect select = new Select(dropdown);\r\n\t\t\tList<WebElement> allOptions = select.getOptions();\r\n\t\t\tfor (WebElement option : allOptions) {\r\n\t\t\t\tString text = option.getText();\r\n\t\t\t\tif (text.equals(optionToSelect)) {\r\n\t\t\t\t\toption.click();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} catch (NoSuchElementException e) {\r\n\t\t\tSystem.out.println(\"No Such Element Exception :\" + e.getMessage());\r\n\t\t\treturn false;\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void applySelectedValue(JComboBox comboBox, Object value) {\r\n comboBox.removeItemListener(this);\r\n ValueLabelItem currentItem;\r\n for (int i = 0; i < comboBox.getItemCount(); i++) {\r\n currentItem = (ValueLabelItem) comboBox.getItemAt(i);\r\n if (currentItem.getValue().equals(value)) {\r\n comboBox.setSelectedIndex(i);\r\n break;\r\n }\r\n }\r\n comboBox.addItemListener(this);\r\n }",
"String getSelect();",
"String getSelect();",
"public T getSelectedValueOption() {\r\n return selectedValueOption;\r\n }",
"default public void clickSelect() {\n\t\tremoteControlAction(RemoteControlKeyword.SELECT);\n\t}",
"public static void select_by_visible_text(By locator, String value) throws CheetahException {\n\t\ttry {\n\t\t\twait_for_element(locator);\n\t\t\tSelect element = new Select(CheetahEngine.getDriverInstance().findElement(locator));\n\t\t\tWebElement elem = CheetahEngine.getDriverInstance().findElement(locator);\n\t\t\tdriverUtils.highlightElement(elem);\n\t\t\tdriverUtils.unHighlightElement(elem);\n\n\t\t\telement.selectByVisibleText(value);\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}",
"public static void selectDropDown(final String selectionType,\n\t\t\tfinal String objLocator, final String value, boolean trimFlg) {\n\t\tlogger.debug(\"Executing Test Step::\" + new Object() {\n\t\t}.getClass().getEnclosingMethod().getName());\n\n\t\tSelect select = new Select(getElementAfterLoaded(objLocator));\n\t\tList<WebElement> list = select.getOptions();\n\t\tboolean notFoundFlg = true;\n\t\tint index = 0;\n\t\tboolean condition;\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (trimFlg) {\n\t\t\t\tcondition = list.get(i).getText().trim()\n\t\t\t\t\t\t.equalsIgnoreCase(value.trim());\n\t\t\t} else {\n\t\t\t\tcondition = list.get(i).getText().equalsIgnoreCase(value);\n\t\t\t}\n\t\t\tif (condition) {\n\t\t\t\tlogger.debug(list.get(i).getText() + \"=\" + value);\n\t\t\t\tnotFoundFlg = false;\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (notFoundFlg) {\n\t\t\tAssert.fail(\"Given value [\" + value\n\t\t\t\t\t+ \"] is not available in the dropdown\");\n\t\t}\n\t\tif (selectionType.equals(GridpointConstants.DROPDOWN_BYINDEX)) {\n\t\t\tselect.selectByIndex(index);\n\t\t} else if (selectionType.equals(GridpointConstants.DROPDOWN_BYVALUE)) {\n\t\t\tselect.selectByValue(value);\n\t\t} else if (selectionType\n\t\t\t\t.equals(GridpointConstants.DROPDOWN_BYVISIBLETEXT)) {\n\t\t\tselect.selectByVisibleText(value);\n\t\t} else {\n\t\t\tlist.get(index).click();\n\t\t}\n\t}",
"public static void selectFromDropdownByText(By by,String text)\n {\n Select select = new Select(driver.findElement(by));\n select.selectByVisibleText(text);\n }",
"public void setSelectedValue(int value) {\n\t\tthis.labelValueSelected.setText(\"Select a value: \" + value);\n\t}",
"public void selectDropdownvalueOnCheckoutOrderPage(String key, int index){\n\t\tselectDropdownvalue(key, index);\n\t}",
"public HTMLSelectElement getElementFciclo() { return this.$element_Fciclo; }",
"public void select(WebElement element,String eventKey)\n {\n sel= new Select(element);\n sel.selectByVisibleText(eventKey);\n }",
"public void ListboxByValue(WebElement Element, String Value, String Desc)\n\t\t\tthrows RowsExceededException, WriteException, IOException {\n\t\tDesc =Desc+\" Select value: \"+Value;\n\t\ttry {\n\t\t\tListbox = new Select(Element);\n\t\t\tListbox.selectByValue(Value);\n\t\t\treport.addInLine(Desc, \"pass\", driver);\n\t\t}\n\n\t\tcatch (NoSuchElementException NSEE) {\n\n\t\t\tNSEE.printStackTrace();\n\t\t\treport.addInLine(Desc, \"fail\", driver);\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t\treport.addInLine(Desc, \"fail\", driver);\n\t\t}\n\t}",
"public void setSelectPresentationBackingList(java.util.Collection items, String valueProperty, String labelProperty);",
"public void selectDropDownListOptionByLabel(String sObject, String label) throws Exception {\n try {\n if (label != \"\") {\n log.info(\"Starting keyword selectDropDownListOptionByLabel ...\");\n\n Select select = new Select(driver.findElement(By.xpath(sObject)));\n select.selectByVisibleText(label);\n }\n } catch (Exception ex) {\n log.fail(\"[FAILED] - selectDropDownListOptionByLabel - Exception occurred:\\n\" + ex);\n throw ex;\n }\n log.info(\"[PASSED] - selectDropDownListOptionByLabel ran succesfully!\");\n }",
"public void select() {}",
"public void selectSource(String selection) {\r\n\t\tList<WebElement> elements = this.source.findElements(By\r\n\t\t\t\t.tagName(\"option\"));\r\n\t\tfor (WebElement element : elements) {\r\n\t\t\tif (element.getText().equalsIgnoreCase(selection)) {\r\n\t\t\t\telement.click();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public static void selectBy(WebElement element, String type, int index, String values) {\n\n\t\tif (type.equalsIgnoreCase(\"value\")) {\n\n\t\t\tSelect s = new Select(element);\n\t\t\ts.selectByValue(values);\n\n\t\t} else if (type.equalsIgnoreCase(\"index\")) {\n\t\t\tSelect s = new Select(element);\n\t\t\ts.selectByIndex(index);\n\t\t} else if (type.equalsIgnoreCase(\"visible\")) {\n\t\t\tSelect s = new Select(element);\n\t\t\ts.selectByVisibleText(values);\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid Type\");\n\t\t}\n\n\t}",
"public native final <T> Selection text(String value)/*-{\n\t\treturn this.text(value);\n\t}-*/;",
"public void SelectDropdownByIndex(WebElement wb, int index) {\n\t\tSelect sel = new Select(wb);\n\t\tsel.selectByIndex(index);\n\t}",
"public IDeviceManagementScriptDeviceStateRequest select(final String value) {\n getQueryOptions().add(new com.microsoft.graph.options.QueryOption(\"$select\", value));\n return (DeviceManagementScriptDeviceStateRequest)this;\n }",
"public void selectByindex(By locator,int index) {\n\n\t\tWebElement element = findElementClickable(locator);\n\n try {\n\n Select select=new Select(element);\n select.selectByIndex(index);\n LOGGER.info(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Pass\");\n }catch(Exception e)\n {\n LOGGER.error(\"Step : \"+Thread.currentThread().getStackTrace()[2].getMethodName()+\": Fail\");\n //e.printStackTrace();\n throw new NotFoundException(\"Exception \"+ e +\" thrown while selecting the value by index \"+index+\" using locator \"+locator);\n\t\n }\n\n\n }"
] | [
"0.76083857",
"0.74617594",
"0.7341798",
"0.7255073",
"0.7185019",
"0.7098579",
"0.70477563",
"0.6983061",
"0.6900862",
"0.68043697",
"0.67706287",
"0.67696965",
"0.6754585",
"0.67384636",
"0.6738245",
"0.66567993",
"0.6559938",
"0.6541722",
"0.6536854",
"0.65311515",
"0.6524156",
"0.6421562",
"0.63051593",
"0.627253",
"0.6204985",
"0.6203499",
"0.6201629",
"0.6194939",
"0.61748177",
"0.6172193",
"0.617002",
"0.61631453",
"0.6143991",
"0.61293447",
"0.6103116",
"0.6067273",
"0.60632247",
"0.6038932",
"0.60100186",
"0.59914356",
"0.59707856",
"0.59623176",
"0.59580964",
"0.59522057",
"0.59507453",
"0.5945917",
"0.5942949",
"0.59250456",
"0.59224534",
"0.59079635",
"0.5884899",
"0.58682525",
"0.5867396",
"0.584728",
"0.583162",
"0.5831124",
"0.58185196",
"0.5810321",
"0.5809195",
"0.58063227",
"0.5782092",
"0.5767786",
"0.5757791",
"0.5755791",
"0.5751622",
"0.57330585",
"0.5699647",
"0.5697743",
"0.56920564",
"0.56841135",
"0.5671745",
"0.5661745",
"0.5650056",
"0.563691",
"0.5625447",
"0.5614052",
"0.5612934",
"0.5602045",
"0.55852675",
"0.5569523",
"0.55669445",
"0.55669445",
"0.5563297",
"0.55575174",
"0.5553882",
"0.5549972",
"0.55465496",
"0.5546024",
"0.55460083",
"0.5513855",
"0.5500257",
"0.54997545",
"0.54927456",
"0.5492194",
"0.5476647",
"0.54729354",
"0.5468007",
"0.5467115",
"0.5461736",
"0.5458182",
"0.5453245"
] | 0.0 | -1 |
TODO Autogenerated method stub | public List listAllByDate(Date minDate) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void procesareMesajChat(MesajChat mesaj) {
if(mesaj.getDestinatie(). isEmpty() || mesaj.getDestinatie().equals("@Everyoane")) {
if(this.next!=null)
this.next.procesareMesajChat(mesaj);
}
else
{
//procesare mesaj privat
System.out.println(String.format("Mesaj privat pentru %s = %s",
mesaj.getDestinatie(), mesaj.getContinut()));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Buscamos cliente con el mismo id en clientes | public void cambiar(Cliente c) {
for (int i=0; i<noCliente; i++) {
if (clientes[i].id == c.id) {
//Cambiamos el elemento de la lista
clientes[i] = c;
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Client buscarClientePorId(String id){\n Client client = new Client();\n \n // Faltaaaa\n \n \n \n \n \n return client;\n }",
"@Override\n\t\tpublic Cliente buscarPorId(int id) throws ExceptionUtil {\n\t\t\treturn daoCliente.buscarPorId(id);\n\t\t}",
"@Override\n\t@Transactional(readOnly = true)\n\tpublic List<Cliente> buscarId(Integer idcliente) {\n\t\treturn clienteDao.buscarId(idcliente);\n\t}",
"@Override\n\tpublic Cliente buscarPorId(int id) throws ExceptionUtil {\n\t\treturn daoCliente.buscarPorId(id);\n\t}",
"private void buscarCliente(String id) {\r\n\t\ttry {\r\n\t\t\tif(txtNif.getText().equals(\"\")){\r\n\t\t\t\tString mensaje = \"Por favor, introduce el nif\";\r\n\t\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"ERROR\", JOptionPane.ERROR_MESSAGE);\t\t\r\n\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.RED));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tCliente cliente = new Cliente();\r\n\t\t\t\tcliente=manager.getClienteById(id);\r\n\t\t\t\tmodel.removeAllElements();\r\n\t\t\t\tif(cliente.getNif().equals(null)) {\r\n\t\t\t\t\tString mensaje = \"No existe ese cliente\";\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"NO EXISTE ESE CLIENTE\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.RED));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\tmodel.addElement(cliente);\t\t\t\t\r\n\t\t\t\tcliente.toString();\r\n\t\t\t\ttxtNif.setText(\"\");\r\n\t\t\t\ttxtNif.setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tString mensaje = \"No existe ese cliente\";\r\n\t\t\tJOptionPane.showMessageDialog(this, mensaje, \"ERROR\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\t\t\r\n\t}",
"@Override\n\tpublic List<Cliente> getByIdCliente(long id) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> clients =getCurrentSession().createQuery(\"from Cliente c join fetch c.grupos grupos join fetch grupos.clientes where c.id='\"+id+\"' and c.activo=1\" ).list();\n return clients;\n\t}",
"@Override\r\n\tpublic void buscarCliente(String dato) {\n\t\tList<Cliente> listaEncontrados = clienteDao.buscarContrato(dato);\r\n\t\tvistaCliente.mostrarClientes(listaEncontrados);\r\n\t}",
"public void carregarCliente() {\n\t\tgetConnection();\n\t\ttry {\n\t\t\tString sql = \"SELECT CLIENTE FROM CLIENTE ORDER BY CLIENTE\";\n\t\t\tst = con.createStatement();\n\t\t\trs = st.executeQuery(sql);\n\t\t\twhile(rs.next()) {\n\t\t\t\tcbCliente.addItem(rs.getString(\"CLIENTE\"));\n\t\t\t}\n\t\t}catch(SQLException e) {\n\t\t\tSystem.out.println(\"ERRO\" + e.toString());\n\t\t}\n\t}",
"@GetMapping(\"/clientes/{id}\")\n\tpublic Cliente buscarXid(@PathVariable Integer id) {\n\t\tCliente cliente = null;\n\t\ttry {\n\t\t\tcliente = this.getClienteService().findById(id);\n\t\t} catch (ExceptionService e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn cliente;\n\t}",
"@GET\n\t@Path(\"/gerente/consultarBuenosClientes/{id: \\\\d+}\")\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic Response consultarBuenosClientes(@PathParam(\"id\") int id)throws Exception\n\t{\n\t\tArrayList<Cliente> mens = null;\n\t\tMaster mas = Master.darInstancia(getPath());\n\t\ttry \n\t\t{\n\t\t\tmens = mas.consultarBuenosClientes(id);\n\t\t\tSystem.out.println(mens);\n\t\t} catch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(mens).build();\n\t}",
"private Client lireClientServ(int idClient) {\n\t\tClient client = daoclient.readClientDaoById(idClient);\n\t\treturn client;\n\t}",
"private void listaClient() {\n\t\t\r\n\t\tthis.listaClient.add(cliente);\r\n\t}",
"public Cliente carregarPorId(int id) throws Exception {\n \n Cliente c = new Cliente();\n String sql = \"SELECT * FROM cliente WHERE idCliente = ?\";\n PreparedStatement pst = conn.prepareStatement(sql);\n pst.setInt(1, id);\n ResultSet rs = pst.executeQuery();\n if (rs.next()) {\n c.setIdCliente(rs.getInt(\"idCliente\"));\n c.setEndereco(rs.getString(\"endereco\"));\n c.setCidade(rs.getString(\"cidade\"));\n c.setDdd(rs.getInt(\"ddd\"));\n c.setNome(rs.getString(\"nome\"));\n c.setUf(rs.getString(\"uf\"));\n c.setTelefone(rs.getString(\"telefone\"));\n Empresa e = new Empresa();\n EmpresaDAO ePB = new EmpresaDAO();\n ePB.conectar();\n e = ePB.carregarPorCnpj(rs.getString(\"Empresa_cnpj\"));\n ePB.desconectar();\n Usuario p = new Usuario();\n UsuarioDAO pPB = new UsuarioDAO();\n pPB.conectar();\n p = pPB.carregarPorId(rs.getInt(\"Usuario_idUsuario\"));\n pPB.desconectar();\n c.setEmpresa(e);\n c.setUsuario(p);\n }\n return c;\n }",
"public Cliente buscarCliente(int codigo) {\n Cliente cliente =new Cliente();\n try{\n\t\tString seleccion = \"SELECT codigo, nit, email, pais, fecharegistro, razonsocial, \"\n + \"idioma, categoria FROM clientes where codigo=? \";\n\t\tPreparedStatement ps = con.prepareStatement(seleccion);\n ps.setInt(1, codigo);\n\t\tSavepoint sp1 = con.setSavepoint(\"SAVE_POINT_ONE\");\n\t\tResultSet rs = ps.executeQuery();\n\t\tcon.commit();\n\t\twhile(rs.next()){\n cliente.setCodigo(rs.getInt(\"codigo\"));\n cliente.setNit(rs.getString(\"nit\"));\n cliente.setEmail(rs.getString(\"email\"));\n cliente.setPais(rs.getString(\"pais\"));\n cliente.setFechaRegistro(rs.getDate(\"fecharegistro\"));\n cliente.setRazonSocial(rs.getString(\"razonsocial\"));\n cliente.setIdioma(rs.getString(\"idioma\"));\n cliente.setCategoria(rs.getString(\"categoria\")); \n\t\t} \n }catch(Exception e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return cliente;\n\t}",
"public Cliente buscarClientePorDocumento(String id) throws ExceptionService {\n Optional<Cliente> verificar = repositorio.findById(Long.parseLong(id));\n if (verificar.isPresent()) { //verificamos que traiga un resultado\n Cliente cliente = verificar.get(); //con el get obtenemos del optional el objeto en este caso de tipo cliente\n return cliente;\n } else {\n throw new ExceptionService(\"no se encontro el cliente con el documento indicado\");\n }\n }",
"@Override\n\tpublic Cliente buscarUnCliente(Integer idcliente) {\n\t\treturn clienteDao.buscarUnCliente(idcliente);\n\t}",
"@Override\r\n public Cliente buscarCliente(String cedula) throws Exception {\r\n return entity.find(Cliente.class, cedula);//busca el cliente\r\n }",
"public List<Client> getClientsByConseillerId(long idConseiller) throws SQLException {\r\n\t\tPreparedStatement st = null;\r\n\t\tResultSet rs =null;\r\n\t\tClient client = new Client();\r\n\t\tList<Client> clients = new ArrayList<Client>();\r\n\t\tConnection connection = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconnection = getConnection();\r\n\t\t\tString selectSQL = \"select surname, name, email , adress from client where idConseiller = ?\";\r\n\t\t\tst = connection.prepareStatement(selectSQL);\r\n\t\t\tst.setLong(1, idConseiller);\r\n\t\t\t\r\n\t\t\trs = st.executeQuery();\r\n\t\t\t\r\n\t\t\t\r\n\t\twhile (rs.next()) {\r\n\t\t\t\r\n\t\t\tclient = new Client();\r\n\t\t\tclient.setSurname(rs.getString(\"surname\"));\r\n\t\t\tclient.setName(rs.getString(\"name\"));\r\n\t\t\tclient.setEmail(rs.getString(\"email\"));\r\n\t\t\tclient.setAdress(rs.getString(\"adress\"));\r\n\t\t\t\r\n\t\t\tclients.add(client);\r\n\t\t }\r\n\t\t\treturn clients;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (st != null)\r\n\t\t\t\t\tst.close();\r\n\t\t\t\tif (connection != null)\r\n\t\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor(int i=0; i<clients.size();i++) {\r\n\t\t\t\tSystem.out.println(\"la donnée associée à l'indice \"+ i + \" est \" + clients.get(i));\r\n\t\t\t}\r\n\t\t\treturn clients;\t\t\r\n\t\t\r\n\t}",
"private Cliente obtenerCliente(Long oidCliente, Solicitud solicitud)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerCliente(Long oidCliente,\"\n +\"Solicitud solicitud):Entrada\");\n\n /*Descripcion: este metodo retorna un objeto de la clase Cliente\n con todos sus datos recuperados.\n\n Implementacion:\n\n 1- Invocar al metodo obtenerDatosGeneralesCliente pasandole por\n parametro el oidCliente. Este metodo retornara un objeto de la clase\n Cliente el cual debe ser asignado a la propiedad cliente de la \n Solicitud.\n 2- Invocar al metodo obtenerTipificacionesCliente pasandole por\n parametro el objeto cliente. Este metodo creara un array de objetos\n de la clase TipificacionCliente el cual asignara al atributo\n tipificacionCliente del cliente pasado por parametro.\n 3- Invocar al metodo obtenerHistoricoEstatusCliente pasandole por\n parametro el objeto cliente. Este metodo asignara un array de objetos\n de la clase HistoricoEstatusCliente al atributo \n historicoEstatusCliente\n del cliente pasado por parametro.\n 4- Invocar al metodo obtenerPeriodosConPedidosCliente pasandole por\n parametro el objeto cliente. Este metodo asignara un array de objetos\n de la clase Periodo al atributo periodosConPedidos del cliente pasado\n por parametro.\n 5- Invocar al metodo obtenerClienteRecomendante pasandole por\n parametro el objeto cliente. Este metodo asignara un objeto de la\n calse ClienteRecomendante al atributo clienteRecomendante del cliente\n recibido por parametro.\n 6- Invocar al metodo obtenerDatosGerentes pasandole por parametro el\n objeto cliente.\n */\n\n //1\n Cliente cliente = this.obtenerDatosGeneralesCliente(oidCliente, \n solicitud.getPeriodo());\n solicitud.setCliente(cliente);\n\n //2\n UtilidadesLog.debug(\"****obtenerCliente 1****\");\n this.obtenerTipificacionesCliente(cliente);\n UtilidadesLog.debug(\"****obtenerCliente 2****\");\n\n //3\n this.obtenerHistoricoEstatusCliente(cliente);\n UtilidadesLog.debug(\"****obtenerCliente 3****\");\n\n //4\n this.obtenerPeriodosConPedidosCliente(cliente);\n UtilidadesLog.debug(\"****obtenerCliente 4****\");\n\n //5\n //jrivas 4/7/2005\n //Inc 16978 \n this.obtenerClienteRecomendante(cliente, solicitud.getOidPais());\n\n // 5.1\n // JVM - sicc 20070237, calling obtenerClienteRecomendado\n this.obtenerClienteRecomendado(cliente, solicitud.getOidPais());\n\n //6\n this.obtenerDatosGerentes(cliente, solicitud.getPeriodo());\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"Salio de obtenerCliente - DAOSolicitudes\");\n \n // vbongiov 22/9/2005 inc 20940\n cliente.setIndRecomendante(this.esClienteRecomendante(cliente.getOidCliente(), solicitud.getPeriodo()));\n\n // jrivas 30/8//2006 inc DBLG5000839\n cliente.setIndRecomendado(this.esClienteRecomendado(cliente.getOidCliente(), solicitud.getPeriodo()));\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerCliente(Long oidCliente, \"\n +\"Solicitud solicitud):Salida\");\n return cliente;\n }",
"public List<PedidoIndividual> obtenerCuentaCliente(Long idCliente,String claveMesa) throws QRocksException;",
"@Override\n\tpublic List<Cliente> getbyidAndGrupo(long id, Long idGrupo) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> clients =getCurrentSession().createQuery(\"from Cliente c join fetch c.grupos grupos where grupos.id='\"+idGrupo+\"' and c.id=\"+id+\" and c.activo=1\" ).list();\n \tif(clients != null){\n \treturn clients;}\n \telse {return null;}\n\t}",
"@Override\n\t@Transactional\n\tpublic List<Cliente> getAll(Long idCliente) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> client =getCurrentSession().createQuery(\"from Cliente where activo=true and id='\"+idCliente+\"'\").list();\n \treturn client;\n\t}",
"public List<Cliente> consultarClientes();",
"public void setIdCliente(Integer id_cliente){\n this.id_cliente=id_cliente;\n }",
"public List<Cliente> getListCliente(){//METODO QUE RETORNA LSITA DE CLIENTES DO BANCO\r\n\t\treturn dao.procurarCliente(atributoPesquisaCli, filtroPesquisaCli);\r\n\t}",
"public int getIdCliente() {\n return idCliente;\n }",
"public DTOCliente obtenerCliente(DTOOID oid) throws MareException {\n UtilidadesLog.info(\" DAOMAEMaestroClientes.obtenerCliente(DTOOID): Entrada\");\n\n Boolean bUsaGEOREFERENCIADOR = Boolean.FALSE;\n MONMantenimientoSEG mms;\n DTOCliente dtosalida = new DTOCliente();\n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n RecordSet resultado = new RecordSet();\n RecordSet rTipoSubtipo = null;\n RecordSet rIdentificacion = null;\n RecordSet rClienteMarca = null;\n RecordSet rClasificacion = null;\n RecordSet rVinculo = null;\n RecordSet rPreferencias = null;\n RecordSet rObservacion = null;\n RecordSet rComunicaciones = null;\n RecordSet rTarjetas = null;\n RecordSet rProblemaSolucion = null;\n RecordSet rPsicografia = null;\n StringBuffer query = new StringBuffer();\n \n\n try {\n\n DTOCrearClienteBasico dto = new DTOCrearClienteBasico();\n \n query.append(\" SELECT oid_clie_tipo_subt, vtipo.val_i18n, vsubtipo.val_i18n, \");\n query.append(\" ticl_oid_tipo_clie, sbti_oid_subt_clie, ind_ppal \");\n query.append(\" FROM mae_clien_tipo_subti t, \");\n query.append(\" v_gen_i18n_sicc vtipo, \");\n query.append(\" v_gen_i18n_sicc vsubtipo \");\n query.append(\" WHERE t.clie_oid_clie = \" + oid.getOid());\n query.append(\" AND vtipo.attr_enti = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND vtipo.idio_oid_idio = \" + oid.getOidIdioma());\n query.append(\" AND vtipo.attr_num_atri = 1 \");\n query.append(\" AND vtipo.val_oid = t.ticl_oid_tipo_clie \");\n query.append(\" AND vsubtipo.attr_enti = 'MAE_SUBTI_CLIEN' \");\n query.append(\" AND vsubtipo.idio_oid_idio = \" + oid.getOidIdioma());\n query.append(\" AND vsubtipo.attr_num_atri = 1 \");\n query.append(\" AND vsubtipo.val_oid = t.sbti_oid_subt_clie \");\n query.append(\" ORDER BY t.ind_ppal DESC \");\n rTipoSubtipo = bs.dbService.executeStaticQuery(query.toString());\n\n dto.setRTipoSubtipoCliente(rTipoSubtipo);\n\n //DTOIdentificacion[]\n query = new StringBuffer();\n\n query.append(\" SELECT oid_clie_iden, tdoc_oid_tipo_docu, \");\n query.append(\" num_docu_iden, num_docu_iden, \");\n query.append(\" decode (val_iden_docu_prin, 1, 'S', 'N'), val_iden_pers_empr \");\n query.append(\" FROM mae_clien_ident i \");\n query.append(\" WHERE i.clie_oid_clie = \" + oid.getOid()); \n\n rIdentificacion = bs.dbService.executeStaticQuery(query.toString());\n\n dto.setRIdentificacionCliente(rIdentificacion);\n\n query = new StringBuffer();\n query.append(\" select COD_CLIE, COD_DIGI_CTRL, VAL_APE1, VAL_APE2, VAL_APEL_CASA, VAL_NOM1, \");\n query.append(\" VAL_NOM2, VAL_TRAT, COD_SEXO, FEC_INGR, FOPA_OID_FORM_PAGO \");\n query.append(\" from MAE_CLIEN \");\n query.append(\" where OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (resultado.getRowCount() > 0) {\n dto.setCodigoCliente((String) resultado.getValueAt(0, 0));\n dto.setDigitoControl((String) resultado.getValueAt(0, 1));\n dto.setApellido1((String) resultado.getValueAt(0, 2));\n dto.setApellido2((String) resultado.getValueAt(0, 3));\n dto.setApellidoCasada((String) resultado.getValueAt(0, 4));\n dto.setNombre1((String) resultado.getValueAt(0, 5));\n dto.setNombre2((String) resultado.getValueAt(0, 6));\n dto.setTratamiento((String) resultado.getValueAt(0, 7));\n dto.setSexo((String) resultado.getValueAt(0, 8));\n dto.setFechaIngreso((Date) resultado.getValueAt(0, 9));\n\n BigDecimal formPago = (BigDecimal) resultado.getValueAt(0, 10);\n\n if (formPago != null) {\n dto.setFormaPago(new Long(formPago.longValue()));\n }\n }\n\n //DTOClienteMarca[]\n query = new StringBuffer();\n query.append(\" select OID_CLIE_MARC, MARC_OID_MARC, IND_PPAL \");\n query.append(\" from MAE_CLIEN_MARCA \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n /* rClienteMarca = bs.dbService.executeStaticQuery(query.toString()); */\n resultado = bs.dbService.executeStaticQuery(query.toString()); \n\n DTOClienteMarca[] dtots2 = new DTOClienteMarca[resultado.getRowCount()];\n DTOClienteMarca dtos2;\n\n for (int i = 0; i < resultado.getRowCount(); i++) {\n dtos2 = new DTOClienteMarca();\n dtos2.setOid(new Long(((BigDecimal) resultado.getValueAt(i, 0)).longValue()));\n dtos2.setMarca(new Long(((BigDecimal) resultado.getValueAt(i, 1)).longValue()));\n dtos2.setPrincipal((((BigDecimal) resultado.getValueAt(i, 2)).toString()).equals(\"1\") ? Boolean.TRUE : Boolean.FALSE);\n dtots2[i] = dtos2;\n }\n\n dto.setMarcas(dtots2);\n /* dto.setRClienteMarca(rClienteMarca); */\n \n\n //DTOClasificacionCliente[]\n query = new StringBuffer();\n\n query.append(\" SELECT c.oid_clie_clas, marca.des_marc, v3.val_i18n, v1.val_i18n, \");\n query.append(\" v2.val_i18n, v4.val_i18n, v5.val_i18n, p.marc_oid_marc, \");\n query.append(\" p.cana_oid_cana, ticl_oid_tipo_clie, t.sbti_oid_subt_clie, \");\n query.append(\" c.tccl_oid_tipo_clasi, c.clas_oid_clas, c.ind_ppal \");\n query.append(\" FROM mae_clien_clasi c, \");\n query.append(\" cra_perio p, \");\n query.append(\" mae_clien_tipo_subti t, \");\n query.append(\" v_gen_i18n_sicc v1, \");\n query.append(\" v_gen_i18n_sicc v2, \");\n query.append(\" seg_marca marca, \");\n query.append(\" v_gen_i18n_sicc v3, \");\n query.append(\" v_gen_i18n_sicc v4, \");\n query.append(\" v_gen_i18n_sicc v5 \");\n query.append(\" WHERE c.perd_oid_peri = p.oid_peri \");\n query.append(\" AND t.oid_clie_tipo_subt = c.ctsu_oid_clie_tipo_subt \");\n query.append(\" AND t.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND t.ticl_oid_tipo_clie = v1.val_oid \");\n query.append(\" AND p.marc_oid_marc = marca.oid_marc \");\n query.append(\" AND p.cana_oid_cana = v3.val_oid \");\n query.append(\" AND v3.attr_num_atri = 1 \");\n query.append(\" AND v3.idio_oid_idio = \" + oid.getOidIdioma().toString());\n query.append(\" AND v3.attr_enti = 'SEG_CANAL' \");\n query.append(\" AND t.ticl_oid_tipo_clie = v1.val_oid \");\n query.append(\" AND v1.attr_num_atri = 1 \");\n query.append(\" AND v1.idio_oid_idio = \" + oid.getOidIdioma().toString());\n query.append(\" AND v1.attr_enti = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND t.sbti_oid_subt_clie = v2.val_oid \");\n query.append(\" AND v2.attr_num_atri = 1 \");\n query.append(\" AND v2.idio_oid_idio = \" + oid.getOidIdioma().toString());\n query.append(\" AND v2.attr_enti = 'MAE_SUBTI_CLIEN' \");\n query.append(\" AND c.tccl_oid_tipo_clasi = v4.val_oid \");\n query.append(\" AND v4.attr_num_atri = 1 \");\n query.append(\" AND v4.idio_oid_idio = \" + oid.getOidIdioma().toString());\n query.append(\" AND v4.attr_enti = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" AND c.clas_oid_clas = v5.val_oid \");\n query.append(\" AND v5.attr_num_atri = 1 \");\n query.append(\" AND v5.idio_oid_idio = \" + oid.getOidIdioma().toString());\n query.append(\" AND v5.attr_enti = 'MAE_CLASI' \");\n query.append(\" ORDER BY c.ind_ppal DESC \");\n\n /* rClasificacion = bs.dbService.executeStaticQuery(query.toString());*/\n resultado = bs.dbService.executeStaticQuery(query.toString());\n int cantClasi = resultado.getRowCount();\n UtilidadesLog.debug(\"cantidad de Clasificaciones_\" + cantClasi);\n DTOClasificacionCliente[] dtots3 = new DTOClasificacionCliente[0];\n DTOClasificacionCliente dtos3;\n \n if (!resultado.esVacio()) {\n dtots3 = new DTOClasificacionCliente[cantClasi];\n for (int i = 0; i < cantClasi; i++) {\n dtos3 = new DTOClasificacionCliente();\n dtos3.setOid(new Long(((BigDecimal) resultado.getValueAt(i, 0)).longValue()));\n dtos3.setMarcaDesc((String) resultado.getValueAt(i, 1));\n dtos3.setCanalDesc((String) resultado.getValueAt(i, 2));\n dtos3.setTipoDesc((String) resultado.getValueAt(i, 3));\n dtos3.setSubtipoDesc((String) resultado.getValueAt(i, 4));\n dtos3.setTipoClasificacionDesc((String) resultado.getValueAt(i, 5));\n dtos3.setClasificacionDesc((String) resultado.getValueAt(i, 6));\n\n dtos3.setMarca(new Long(((BigDecimal) resultado.getValueAt(i, 7)).longValue()));\n dtos3.setCanal(new Long(((BigDecimal) resultado.getValueAt(i, 8)).longValue()));\n dtos3.setTipo(new Long(((BigDecimal) resultado.getValueAt(i, 9)).longValue()));\n dtos3.setSubtipo(new Long(((BigDecimal) resultado.getValueAt(i, 10)).longValue()));\n dtos3.setTipoClasificacion(new Long(((BigDecimal) resultado.getValueAt(i, 11)).longValue()));\n dtos3.setClasificacion(new Long(((BigDecimal) resultado.getValueAt(i, 12)).longValue()));\n dtos3.setPrincipal((((BigDecimal) resultado.getValueAt(i, 13)).toString()).equals(\"1\") ? Boolean.TRUE : Boolean.FALSE);\n dtots3[i] = dtos3;\n }\n } else {\n UtilidadesLog.debug(\"sin clasificaciones\");\n // BELC300023061 - 04/07/2006\n // Si no se obtuvo ninguna clasificacion para el cliente en la consulta anterior, \n // insertar una fila en el atributo clasificaciones, con el indicador principal activo, \n // sólo con la marca y el canal\n query = new StringBuffer();\n \n query.append(\" SELECT null OID_CLIE_CLAS, mar.DES_MARC, iCa.VAL_I18N, \");\n query.append(\" null VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N,\t\");\n query.append(\" per.MARC_OID_MARC, per.CANA_OID_CANA, \");\n query.append(\" null TICL_OID_TIPO_CLIE, null SBTI_OID_SUBT_CLIE, null TCCL_OID_TIPO_CLASI, null CLAS_OID_CLAS, null IND_PPAL \");\n query.append(\" FROM MAE_CLIEN_UNIDA_ADMIN uA, \");\n query.append(\" CRA_PERIO per, \t\");\n query.append(\" SEG_MARCA mar, \");\n query.append(\" V_GEN_I18N_SICC iCa \");\n query.append(\" WHERE uA.CLIE_OID_CLIE = \" + oid.getOid().toString());\n query.append(\" AND uA.IND_ACTI = 1 \");\n query.append(\" AND uA.PERD_OID_PERI_INI = per.OID_PERI \");\n query.append(\" AND per.MARC_OID_MARC = mar.OID_MARC \");\n query.append(\" AND per.CANA_OID_CANA = iCa.VAL_OID \");\n query.append(\" AND iCa.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND iCa.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND iCa.IDIO_OID_IDIO = \" + oid.getOidIdioma().toString());\n query.append(\" ORDER BY uA.OID_CLIE_UNID_ADMI ASC \");\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n \n if (!resultado.esVacio()) {\n dtos3 = new DTOClasificacionCliente();\n dtos3.setMarcaDesc((String) resultado.getValueAt(0, 1));\n dtos3.setCanalDesc((String) resultado.getValueAt(0, 2));\n dtos3.setMarca(new Long(((BigDecimal) resultado.getValueAt(0, 7)).longValue()));\n dtos3.setCanal(new Long(((BigDecimal) resultado.getValueAt(0, 8)).longValue()));\n dtos3.setPrincipal(Boolean.TRUE);\n \n dtots3 = new DTOClasificacionCliente[1];\n dtots3[0] = dtos3; \n }\n }\n \n dto.setClasificaciones(dtots3);\n \n /*dto.setRClasificacionCliente(rClasificacion);*/\n\n MONMantenimientoSEGHome mmsHome = SEGEjbLocators.getMONMantenimientoSEGHome();\n mms = mmsHome.create();\n bUsaGEOREFERENCIADOR = mms.usaGeoreferenciador(oid.getOidPais());\n dto.setUsaGeoreferenciador(bUsaGEOREFERENCIADOR);\n\n dtosalida.setBase(dto);\n\n //criterioBusqueda 1 y 2 queda a null\n dtosalida.setCriterioBusqueda1(null);\n dtosalida.setCriterioBusqueda2(null);\n\n //oid: dto.oid \n dtosalida.setOid(oid.getOid());\n\n //-fechaNacimiento, codigoEmpleado, nacionalidad, estadoCivil, \n //ocupacion, profesion, centroTrabajo, cargo, nivelEstudios, centroEstudios, \n //numeroHijos, personasDependientes, NSEP, cicloVida, deseaCorrespondencia, \n //cicloVida, deseaCorrespondencia, importeIngresos \n query = new StringBuffer();\n query.append(\" select FEC_NACI, COD_EMPL, IND_ACTI,SNON_OID_NACI, ESCV_OID_ESTA_CIVI, VAL_OCUP, VAL_PROF, \");\n query.append(\" VAL_CENT_TRAB, VAL_CARG_DESE, NIED_OID_NIVE_ESTU, VAL_CENT_ESTU, \");\n query.append(\" NUM_HIJO, NUM_PERS_DEPE, NSEP_OID_NSEP, TCLV_OID_CICL_VIDA, IND_CORR, IMP_INGR_FAMI \");\n query.append(\" from MAE_CLIEN_DATOS_ADICI \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (resultado.getRowCount() > 0) {\n dtosalida.setFechaNacimiento((Date) resultado.getValueAt(0, 0));\n dtosalida.setCodigoEmpleado((String) resultado.getValueAt(0, 1));\n //SICC-DMCO-MAE-GCC-006 - Cleal\n dtosalida.setIndicadorActivo((resultado.getValueAt(0, 2) != null) ? new Long(((BigDecimal) resultado.getValueAt(0, 2)).longValue()) : null);\n \n \n dtosalida.setNacionalidad((resultado.getValueAt(0, 3) != null) ? new Long(((BigDecimal) resultado.getValueAt(0, 3)).longValue()) : null);\n dtosalida.setEstadoCivil((resultado.getValueAt(0, 4) != null) ? new Long(((BigDecimal) resultado.getValueAt(0, 4)).longValue()) : null);\n \n dtosalida.setOcupacion((String) resultado.getValueAt(0, 5));\n\n dtosalida.setProfesion((String) resultado.getValueAt(0, 6));\n dtosalida.setCentroTrabajo((String) resultado.getValueAt(0, 7));\n dtosalida.setCargo((String) resultado.getValueAt(0, 8));\n dtosalida.setNivelEstudios((resultado.getValueAt(0, 9) != null) ? new Long(((BigDecimal) resultado.getValueAt(0, 9)).longValue()) : null);\n dtosalida.setCentroEstudios((String) resultado.getValueAt(0, 10));\n dtosalida.setNumeroHijos((resultado.getValueAt(0, 11) != null) ? new Byte(((BigDecimal) resultado.getValueAt(0, 11)).byteValue()) : null);\n dtosalida.setPersonasDependientes((resultado.getValueAt(0, 12) != null) ? new Byte(((BigDecimal) resultado.getValueAt(0, 12)).byteValue()) : null);\n dtosalida.setNSEP((resultado.getValueAt(0, 13) != null) ? new Long(((BigDecimal) resultado.getValueAt(0, 13)).longValue()) : null);\n dtosalida.setCicloVida((resultado.getValueAt(0, 14) != null) ? new Long(((BigDecimal) resultado.getValueAt(0, 14)).longValue()) : null);\n\n BigDecimal corres = (BigDecimal) resultado.getValueAt(0, 15);\n Boolean correspondencia = null;\n\n if (corres != null) {\n if (corres.toString().equals(\"1\")) {\n correspondencia = Boolean.TRUE;\n } else {\n correspondencia = Boolean.FALSE;\n }\n }\n\n dtosalida.setDeseaCorrespondencia(correspondencia);\n dtosalida.setImporteIngresos((resultado.getValueAt(0, 16) != null) ? new Double(((BigDecimal) resultado.getValueAt(0, 16)).doubleValue()) : null);\n \n }\n\n //DTOVinculo[]\n query = new StringBuffer();\n\n\n /* \n * Cambios a restriccion por xxx_vnte y vndo hechas por ssantana, \n * 07/04/2006, porque no tenian mucho sentido como estaban antes \n */ \n query.append(\" SELECT oid_clie_vinc, c.cod_clie, \");\n query.append(\" tivc_oid_tipo_vinc, fec_desd, fec_hast, \");\n query.append(\" ind_vinc_ppal \");\n query.append(\" FROM mae_clien_vincu, mae_tipo_vincu tv, seg_pais p, mae_clien c \");\n /*inicio modificado ciglesias 17/11/2006 incidencia 24377*/\n query.append(\" WHERE clie_oid_clie_vndo = \" + oid.getOid());\n query.append(\" AND mae_clien_vincu.tivc_oid_tipo_vinc = tv.oid_tipo_vinc \");\n query.append(\" AND mae_clien_vincu.clie_oid_clie_vnte = c.oid_clie \");\n /*fin modificado ciglesias 17/11/2006 incidencia 24377*/\n query.append(\" AND tv.pais_oid_pais = p.oid_pais \");\n query.append(\" ORDER BY ind_vinc_ppal DESC \");\n\n rVinculo = bs.dbService.executeStaticQuery(query.toString());\n\n\n \n dtosalida.setRVinculo(rVinculo);\n\n //DTOPreferencia[]\t\t\t\n query = new StringBuffer();\n query.append(\" select OID_CLIE_PREF, TIPF_OID_TIPO_PREF, DES_CLIE_PREF \");\n query.append(\" from MAE_CLIEN_PREFE \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n rPreferencias = bs.dbService.executeStaticQuery(query.toString());\n\n dtosalida.setRPreferencia(rPreferencias);\n\n //DTOObservacion[]\t\t\t\n query = new StringBuffer();\n query.append(\" select OID_OBSE, MARC_OID_MARC, NUM_OBSE, VAL_TEXT \");\n query.append(\" from MAE_CLIEN_OBSER \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n rObservacion = bs.dbService.executeStaticQuery(query.toString());\n\n dtosalida.setRObservaciones(rObservacion);\n\n //paisContactado, clienteContactado, oidClienteContactado, tipoClienteContactado, \n //tipoContacto, fechaPrimerContacto, fechaSiguienteContacto, fechaPrimerPedidoContacto\n query = new StringBuffer();\n\n // Nueva query by ssantana\n query.append(\" SELECT c.pais_oid_pais, c.cod_clie, t.clie_oid_clie, t.ticl_oid_tipo_clie, \");\n query.append(\" p.cod_tipo_cont, p.fec_cont, p.fec_sigu_cont, canal.oid_cana, \");\n query.append(\" marca.oid_marc, perio.oid_peri \");\n query.append(\" FROM mae_clien c, \");\n query.append(\" mae_clien_tipo_subti t, \");\n query.append(\" mae_clien_prime_conta p, \");\n query.append(\" seg_canal canal, \");\n query.append(\" seg_marca marca, \");\n query.append(\" cra_perio perio \");\n query.append(\" WHERE p.ctsu_clie_cont = t.oid_clie_tipo_subt \");\n query.append(\" AND t.clie_oid_clie = c.oid_clie \");\n query.append(\" AND p.clie_oid_clie = \" + oid.getOid().toString());\n \n // modif. - splatas - 25/10/2006 - DBLG700000168\n // query.append(\" AND t.ind_ppal = 1 \");\n \n query.append(\" AND p.cana_oid_cana = canal.oid_cana(+) \");\n query.append(\" AND p.marc_oid_marc = marca.oid_marc(+) \");\n query.append(\" AND p.perd_oid_peri = perio.oid_peri(+) \");\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (resultado.getRowCount() > 0) {\n BigDecimal buffer = null;\n dtosalida.setPaisContactado(new Long(((BigDecimal) resultado.getValueAt(0, 0)).longValue()));\n dtosalida.setClienteContactado((String) resultado.getValueAt(0, 1));\n dtosalida.setOidClienteContactado(new Long(((BigDecimal) resultado.getValueAt(0, 2)).longValue()));\n dtosalida.setTipoClienteContactado(new Long(((BigDecimal) resultado.getValueAt(0, 3)).longValue()));\n dtosalida.setTipoContacto((String) (resultado.getValueAt(0, 4)));\n dtosalida.setFechaPrimerContacto((Date) resultado.getValueAt(0, 5));\n dtosalida.setFechaSiguienteContacto((Date) resultado.getValueAt(0, 6));\n\n buffer = (BigDecimal) resultado.getValueAt(0, 7); // Canal Contacto\n\n if (buffer != null) {\n dtosalida.setCanalContacto(Long.valueOf(buffer.toString()));\n } else {\n dtosalida.setCanalContacto(null);\n }\n\n buffer = (BigDecimal) resultado.getValueAt(0, 8); // Marca Contacto\n\n if (buffer != null) {\n dtosalida.setMarcaContacto(new Long(buffer.longValue()));\n } else {\n dtosalida.setMarcaContacto(null);\n }\n\n buffer = (BigDecimal) resultado.getValueAt(0, 9); // Periodo Contacto\n\n if (buffer != null) {\n dtosalida.setPeriodoContacto(new Long(buffer.longValue()));\n } else {\n dtosalida.setPais(null);\n }\n }\n\n //tipoClienteContacto\n query = new StringBuffer();\n query.append(\" SELECT TICL_OID_TIPO_CLIE \");\n query.append(\" FROM MAE_CLIEN_TIPO_SUBTI \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND IND_PPAL = 1 \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (resultado.getRowCount() > 0) {\n dtosalida.setTipoClienteContacto(new Long(((BigDecimal) resultado.getValueAt(0, 0)).longValue()));\n }\n\n // DTODirecciones\n resultado = new RecordSet();\n UtilidadesLog.debug(\" Direcciones \");\n /*\n query = new StringBuffer();\n query.append(\" SELECT dir.OID_CLIE_DIRE, dir.TIDC_OID_TIPO_DIRE, dir.TIVI_OID_TIPO_VIA, \");\n query.append(\" val.OID_VALO_ESTR_GEOP, dir.ZVIA_OID_VIA, dir.NUM_PPAL, dir.VAL_COD_POST, \");\n query.append(\" dir.VAL_OBSE, dir.IND_DIRE_PPAL, dir.VAL_NOMB_VIA, val.DES_GEOG \");\n query.append(\" FROM MAE_CLIEN_DIREC dir, ZON_VALOR_ESTRU_GEOPO val, ZON_TERRI terr \");\n query.append(\" WHERE dir.CLIE_OID_CLIE = \" + oid.getOid() + \" AND \");\n query.append(\" dir.TERR_OID_TERR = terr.OID_TERR AND \");\n query.append(\" terr.VEPO_OID_VALO_ESTR_GEOP = val.OID_VALO_ESTR_GEOP \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n UtilidadesLog.info(\"resulado Dir: \" + resultado.toString());\n */\n if(Boolean.FALSE.equals(bUsaGEOREFERENCIADOR)){\n UtilidadesLog.debug(\"*** No usa GEO\");\n resultado = obtieneDireccionSinGEOModificar(oid);\n } else{\n UtilidadesLog.debug(\"*** Usa GEO\");\n resultado = obtieneDireccionConGEOModificar(oid);\n }\n if (resultado.getRowCount() == 0) {\n dto.setDirecciones(null);\n } else {\n int cantFilas = resultado.getRowCount();\n DTODireccion[] arrayDirecciones = new DTODireccion[cantFilas];\n DTODireccion dir = null;\n\n for (int i = 0; i < cantFilas; i++) {\n dir = new DTODireccion();\n\n if (resultado.getValueAt(i, 0) == null) {\n dir.setOid(null);\n } else {\n dir.setOid(new Long(((BigDecimal) resultado.getValueAt(i, 0)).longValue()));\n }\n\n if (resultado.getValueAt(i, 1) == null) {\n dir.setTipoDireccion(null);\n } else {\n dir.setTipoDireccion(new Long(((BigDecimal) resultado.getValueAt(i, 1)).longValue()));\n }\n\n if (resultado.getValueAt(i, 2) == null) {\n dir.setTipoVia(null);\n } else {\n dir.setTipoVia(new Long(((BigDecimal) resultado.getValueAt(i, 2)).longValue()));\n }\n\n if (resultado.getValueAt(i, 3) == null) {\n dir.setUnidadGeografica(null);\n } else {\n dir.setUnidadGeografica(new Long(((BigDecimal) resultado.getValueAt(i, 3)).longValue()));\n }\n\n if (resultado.getValueAt(i, 4) == null) {\n dir.setVia(null);\n } else {\n dir.setVia(new Long(((BigDecimal) resultado.getValueAt(i, 4)).longValue()));\n }\n\n if (resultado.getValueAt(i, 5) == null) {\n dir.setNumeroPrincipal(null);\n } else {\n /*\n * V-PED001 - dmorello, 06/10/2006\n * Cambio el tipo de numeroPrincipal de Integer a String\n */\n //dir.setNumeroPrincipal(new Integer(resultado.getValueAt(i, 5).toString()));\n dir.setNumeroPrincipal(resultado.getValueAt(i, 5).toString());\n }\n\n if (resultado.getValueAt(i, 6) == null) {\n dir.setCodigoPostal(null);\n } else {\n dir.setCodigoPostal(resultado.getValueAt(i, 6).toString());\n }\n\n if (resultado.getValueAt(i, 7) == null) {\n dir.setObservaciones(null);\n } else {\n dir.setObservaciones(resultado.getValueAt(i, 7).toString());\n }\n\n if (resultado.getValueAt(i, 8) == null) {\n dir.setEsDireccionPrincipal(null);\n } else {\n if (((BigDecimal) resultado.getValueAt(i, 8)).longValue() == 1) {\n dir.setEsDireccionPrincipal(new Boolean(true));\n } else {\n dir.setEsDireccionPrincipal(new Boolean(false));\n }\n }\n\n if (resultado.getValueAt(i, 9) == null) {\n dir.setNombreVia(null);\n } else {\n dir.setNombreVia(resultado.getValueAt(i, 9).toString());\n }\n\n if (resultado.getValueAt(i, 10) == null) {\n dir.setNombreUnidadGeografica(null);\n } else {\n dir.setNombreUnidadGeografica(resultado.getValueAt(i, 10).toString());\n }\n\n //UtilidadesLog.debug(\"bucle \" + i + \": \" + dir.toString());\n arrayDirecciones[i] = dir;\n }\n\n dto.setDirecciones(arrayDirecciones);\n }\n\n //DTOCliente\n //base: metemos el DTOCrearClienteBasico creado anteriormente \n dtosalida.setBase(dto);\n\n //DTOComunicacion[]\t\t\t\n query = new StringBuffer();\n /*query.append(\" SELECT OID_CLIE_COMU, TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, \");\n query.append(\" to_char(FEC_HORA_DESD, 'HH24:MI'), to_char(FEC_HORA_HAST, 'HH24:MI'), VAL_INTE_COMU, IND_COMU_PPAL \");\n query.append(\" FROM MAE_CLIEN_COMUN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n \n query.append(\" SELECT oid_clie_comu, ticm_oid_tipo_comu, val_dia_comu, val_text_comu, \");\n query.append(\" ind_comu_ppal, TO_CHAR (fec_hora_desd, 'HH24:MI'), \");\n query.append(\" TO_CHAR (fec_hora_hast, 'HH24:MI'), val_inte_comu \");\n query.append(\" FROM mae_clien_comun \");\n query.append(\" WHERE clie_oid_clie = \" + oid.getOid()); \n query.append(\" order by ind_comu_ppal desc \");\n rComunicaciones = bs.dbService.executeStaticQuery(query.toString());\n /*resultado = bs.dbService.executeStaticQuery(query.toString());\n\n DTOComunicacion[] dtots7 = new DTOComunicacion[resultado.getRowCount()];\n DTOComunicacion dtos7;\n\n for (int i = 0; i < resultado.getRowCount(); i++) {\n dtos7 = new DTOComunicacion();\n dtos7.setOid(new Long(((BigDecimal) resultado.getValueAt(i, 0)).longValue()));\n dtos7.setTipoComunicacion(new Long(((BigDecimal) resultado.getValueAt(i, 1)).longValue()));\n\n String diaComu = (String) resultado.getValueAt(i, 2);\n\n if ((diaComu != null) && !(diaComu.equals(\"\"))) {\n dtos7.setDiaComunicacion(new Character(diaComu.toCharArray()[0]));\n }\n\n dtos7.setTextoComunicacion((String) resultado.getValueAt(i, 3));\n\n String sHoraDesde = (String) resultado.getValueAt(i, 4);\n String sHoraHasta = (String) resultado.getValueAt(i, 5);\n\n UtilidadesLog.debug(\"HoraDesde: \" + sHoraDesde);\n UtilidadesLog.debug(\"HoraHasta: \" + sHoraHasta);\n\n SimpleDateFormat simpleDateHora = new SimpleDateFormat(\"HH:mm\");\n\n if ((sHoraDesde != null) && !sHoraDesde.equals(\"\")) {\n java.util.Date dateHoraDesde = simpleDateHora.parse(sHoraDesde);\n UtilidadesLog.debug(\"dateHoraDesde: \" + dateHoraDesde.toString());\n UtilidadesLog.debug(\"dateHoraDesde Long: \" + dateHoraDesde.getTime());\n\n Long longHoraDesde = new Long(dateHoraDesde.getTime());\n dtos7.setHoraDesde(longHoraDesde);\n }\n\n if ((sHoraHasta != null) && !sHoraHasta.equals(\"\")) {\n java.util.Date dateHoraHasta = simpleDateHora.parse(sHoraHasta);\n UtilidadesLog.debug(\"dateHoraHasta: \" + dateHoraHasta.toString());\n UtilidadesLog.debug(\"dateHoraHasta Long: \" + dateHoraHasta.getTime());\n\n Long longHoraHasta = new Long(dateHoraHasta.getTime());\n dtos7.setHoraHasta(longHoraHasta);\n }\n\n BigDecimal interva = (BigDecimal) resultado.getValueAt(i, 6);\n Boolean intervaloComuni = null;\n\n if (interva != null) {\n if (interva.toString().equals(\"1\")) {\n intervaloComuni = Boolean.TRUE;\n } else {\n intervaloComuni = Boolean.FALSE;\n }\n }\n\n dtos7.setIntervaloComunicacion(intervaloComuni);\n\n BigDecimal pric = (BigDecimal) resultado.getValueAt(i, 7);\n Boolean principal = null;\n\n if (pric != null) {\n if (pric.toString().equals(\"1\")) {\n principal = Boolean.TRUE;\n } else {\n principal = Boolean.FALSE;\n }\n }\n\n dtos7.setPrincipal(principal);\n dtots7[i] = dtos7;\n }\n \n dtosalida.setComunicaciones(dtots7); */\n dtosalida.setRComunicaciones(rComunicaciones);\n\n //DTOTarjeta[]\t\t\t\n query = new StringBuffer();\n query.append(\" SELECT OID_CLIE_TARJ, TITR_OID_TIPO_TARJ, CLTA_OID_CLAS_TARJ, CBAN_OID_BANC \");\n query.append(\" FROM MAE_CLIEN_TARJE \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n /* rTarjetas = bs.dbService.executeStaticQuery(query.toString()); */\n\n resultado= bs.dbService.executeStaticQuery(query.toString());\n DTOTarjeta[] dtots8 = new DTOTarjeta[resultado.getRowCount()];\n DTOTarjeta dtos8;\n\n for (int i = 0; i < resultado.getRowCount(); i++) {\n dtos8 = new DTOTarjeta();\n dtos8.setOid(new Long(((BigDecimal) resultado.getValueAt(i, 0)).longValue()));\n dtos8.setTipo(new Long(((BigDecimal) resultado.getValueAt(i, 1)).longValue()));\n dtos8.setClase((resultado.getValueAt(i, 2) != null) ? new Long(((BigDecimal) resultado.getValueAt(i, 2)).longValue()) : null);\n dtos8.setBanco((resultado.getValueAt(i, 3) != null) ? new Long(((BigDecimal) resultado.getValueAt(i, 3)).longValue()) : null);\n dtots8[i] = dtos8;\n }\n\n dtosalida.setTarjetas(dtots8);\n /*dtosalida.setRTarjeta(rTarjetas);*/\n\n //DTOProblemaSolucion\n query = new StringBuffer();\n query.append(\" SELECT OID_CLIE_PROB, DES_PROB, IND_SOLU, \");\n query.append(\" VAL_NEGO_PROD, TIPB_OID_TIPO_PROB, DES_SOLU, TSOC_OID_TIPO_SOLU \");\n query.append(\" FROM MAE_CLIEN_PROBL \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n\n /* rProblemaSolucion = bs.dbService.executeStaticQuery(query.toString()); */\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n DTOProblemaSolucion[] dtots9 = new DTOProblemaSolucion[resultado.getRowCount()];\n DTOProblemaSolucion dtos9;\n\n for (int i = 0; i < resultado.getRowCount(); i++) {\n dtos9 = new DTOProblemaSolucion();\n dtos9.setOid(new Long(((BigDecimal) resultado.getValueAt(i, 0)).longValue()));\n dtos9.setDescripcionProblema((String) resultado.getValueAt(i, 1));\n\n // dtos9.setSolucion(new Boolean((String) (resultado.getValueAt(i, 2))));\n if (resultado.getValueAt(i, 2) != null) {\n \n Long ind = null;\n ind = new Long(((BigDecimal) resultado.getValueAt(i, 2)).longValue());\n\n if (ind.intValue() == 1) {\n dtos9.setSolucion(new Boolean(true));\n } else {\n dtos9.setSolucion(new Boolean(false));\n }\n\n //Boolean valor = new Boolean( ((String)resultado.getValueAt(i, 2)).equals(\"1\") );\n }\n\n \n dtos9.setNegocio((String) resultado.getValueAt(i, 3));\n dtos9.setTipoProblema((resultado.getValueAt(i, 4) != null) ? new Long(((BigDecimal) resultado.getValueAt(i, 4)).longValue()) : null);\n dtos9.setDescripcionSolucion((String) resultado.getValueAt(i, 5));\n dtos9.setTipoSolucion((resultado.getValueAt(i, 6) != null) ? new Long(((BigDecimal) resultado.getValueAt(i, 6)).longValue()) : null);\n\n dtots9[i] = dtos9;\n }\n\n dtosalida.setProblemasSoluciones(dtots9);\n /* dtosalida.setRProblemaSolucion(rProblemaSolucion);*/\n\n //DTOPsicografia\n query = new StringBuffer();\n query.append(\" SELECT OID_PSIC, MARC_OID_MARC, TPOID_TIPO_PERF_PSIC, COD_TEST, FEC_PSIC \");\n query.append(\" FROM MAE_PSICO \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n /* rPsicografia = bs.dbService.executeStaticQuery(query.toString());*/\n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n DTOPsicografia[] dtots10 = new DTOPsicografia[resultado.getRowCount()];\n DTOPsicografia dtos10;\n\n for (int i = 0; i < resultado.getRowCount(); i++) {\n dtos10 = new DTOPsicografia();\n dtos10.setOid(new Long(((BigDecimal) resultado.getValueAt(i, 0)).longValue()));\n dtos10.setMarca(new Long(((BigDecimal) resultado.getValueAt(i, 1)).longValue()));\n dtos10.setTipoPerfil(new Long(((BigDecimal) resultado.getValueAt(i, 2)).longValue()));\n dtos10.setCodigoTest((String) (resultado.getValueAt(i, 3)));\n dtos10.setFecha((Date) (resultado.getValueAt(i, 4)));\n dtots10[i] = dtos10;\n }\n\n dtosalida.setPsicografias(dtots10);\n /* dtosalida.setRPsicografia(rPsicografia);*/\n } catch (CreateException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (RemoteException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (Exception e) {\n e.printStackTrace();\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n UtilidadesLog.debug(\"dtoSalida ObtenerCliente: \" + dtosalida);\n UtilidadesLog.info(\" DAOMAEMaestroClientes.obtenerCliente(DTOOID): Salida\");\n\n return dtosalida;\n }",
"@Override\n\t@Transactional\n\tpublic List<Cliente> getClienteByAnyWord(String nombre, Long idcliente, Long idGrupo, Long idPunto) {\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tList<Cliente> cliente =getCurrentSession().createQuery(\"select clientes from Grupo g join g.clientes clientes where clientes.nombre like '\"+nombre+\"%\"+\"'\"+\"and g.id=\"+idGrupo+\" and clientes.activo=1\").list();\n\n\t\t\t\treturn cliente;\n\t}",
"private static ArrayList<Compra> listComprasDoCliente(int idCliente) throws Exception {//Inicio mostraCompras\r\n ArrayList<Compra> lista = arqCompra.toList();\r\n lista.removeIf(c -> c.idCliente != idCliente);\r\n return lista;\r\n }",
"@Override\n\tpublic CLIENTE pesquisar(int id_cliente) {\n\t\t\n\t\tString sql = \"SELECT * FROM CLIENTE WHERE ID_CLIENTE = ?\";\n\t\t\n\t\tConnection conexao;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tconexao = JdbcUtil.getConexao();\n\t\t\t\n\t\t\tPreparedStatement ps = conexao.prepareStatement(sql);\n\t\t\t\n\t\t\tps.setInt(1, id_cliente);\n\t\t\t\n\t\t\tResultSet res = ps.executeQuery();\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\t\n\t\t\t\tcliente.setId_cliente(res.getInt(\"ID_CLIENTE\"));\n\t\t\t\tcliente.setNomeCliente(res.getString(\"NOME_CLIENTE\"));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tps.close();\n\t\t\tconexao.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn cliente;\n\t}",
"public void setIdcliente(java.lang.String idcliente) {\n this.idcliente = idcliente;\n }",
"private Cliente obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri):Entrada\");\n \n StringBuffer nombreCli = new StringBuffer();\n\n // crear cliente\n Cliente cliente = new Cliente();\n cliente.setOidCliente(oidCliente);\n\n // completar oidEstatus\n BigDecimal oidEstatus = null;\n\n {\n BelcorpService bs1;\n RecordSet respuesta1;\n String codigoError1;\n StringBuffer query1 = new StringBuffer();\n\n try {\n bs1 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError1 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError1));\n }\n\n try {\n query1.append(\" SELECT CLIE_OID_CLIE, \");\n query1.append(\" ESTA_OID_ESTA_CLIE \");\n query1.append(\" FROM MAE_CLIEN_DATOS_ADICI \");\n query1.append(\" WHERE CLIE_OID_CLIE = \" + oidCliente);\n respuesta1 = bs1.dbService.executeStaticQuery(query1.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta1 \" + respuesta1);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError1 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError1));\n }\n\n if (respuesta1.esVacio()) {\n cliente.setOidEstatus(null);\n } else {\n oidEstatus = (BigDecimal) respuesta1\n .getValueAt(0, \"ESTA_OID_ESTA_CLIE\");\n cliente.setOidEstatus((oidEstatus != null) ? new Long(\n oidEstatus.longValue()) : null);\n }\n }\n // completar oidEstatusFuturo\n {\n BelcorpService bs2;\n RecordSet respuesta2;\n String codigoError2;\n StringBuffer query2 = new StringBuffer();\n\n try {\n bs2 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError2 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError2));\n }\n\n try {\n query2.append(\" SELECT OID_ESTA_CLIE, \");\n query2.append(\" ESTA_OID_ESTA_CLIE \");\n query2.append(\" FROM MAE_ESTAT_CLIEN \");\n query2.append(\" WHERE OID_ESTA_CLIE = \" + oidEstatus);\n respuesta2 = bs2.dbService.executeStaticQuery(query2.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta2 \" + respuesta2); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError2 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError2));\n }\n\n if (respuesta2.esVacio()) {\n cliente.setOidEstatusFuturo(null);\n } else {\n {\n BigDecimal oidEstatusFuturo = (BigDecimal) respuesta2\n .getValueAt(0, \"ESTA_OID_ESTA_CLIE\");\n cliente.setOidEstatusFuturo((oidEstatusFuturo != null) \n ? new Long(oidEstatusFuturo.longValue()) : null);\n }\n }\n }\n // completar periodoPrimerContacto \n {\n BelcorpService bs3;\n RecordSet respuesta3;\n String codigoError3;\n StringBuffer query3 = new StringBuffer();\n\n try {\n bs3 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError3 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError3));\n }\n\n try {\n query3.append(\" SELECT A.CLIE_OID_CLIE, \");\n query3.append(\" A.PERD_OID_PERI, \");\n query3.append(\" B.PAIS_OID_PAIS, \");\n query3.append(\" B.CANA_OID_CANA, \");\n query3.append(\" B.MARC_OID_MARC, \");\n query3.append(\" B.FEC_INIC, \");\n query3.append(\" B.FEC_FINA, \");\n query3.append(\" C.COD_PERI \");\n query3.append(\" FROM MAE_CLIEN_PRIME_CONTA A, \");\n query3.append(\" CRA_PERIO B, \");\n query3.append(\" SEG_PERIO_CORPO C \");\n query3.append(\" WHERE A.CLIE_OID_CLIE = \" + oidCliente);\n query3.append(\" AND A.PERD_OID_PERI = B.OID_PERI \");\n query3.append(\" AND B.PERI_OID_PERI = C.OID_PERI \");\n respuesta3 = bs3.dbService.executeStaticQuery(query3.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta3 \" + respuesta3); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError3 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError3));\n }\n\n if (respuesta3.esVacio()) {\n cliente.setPeriodoPrimerContacto(null);\n } else {\n Periodo periodo = new Periodo();\n\n {\n BigDecimal oidPeriodo = (BigDecimal) respuesta3\n .getValueAt(0, \"PERD_OID_PERI\");\n periodo.setOidPeriodo((oidPeriodo != null) \n ? new Long(oidPeriodo.longValue()) : null);\n }\n\n periodo.setCodperiodo((String) respuesta3\n .getValueAt(0, \"COD_PERI\"));\n periodo.setFechaDesde((Date) respuesta3\n .getValueAt(0, \"FEC_INIC\"));\n periodo.setFechaHasta((Date) respuesta3\n .getValueAt(0, \"FEC_FINA\"));\n periodo.setOidPais(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"PAIS_OID_PAIS\")).longValue()));\n periodo.setOidCanal(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"CANA_OID_CANA\")).longValue()));\n periodo.setOidMarca(new Long(((BigDecimal) respuesta3\n .getValueAt(0, \"MARC_OID_MARC\")).longValue()));\n cliente.setPeriodoPrimerContacto(periodo);\n }\n }\n // completar AmbitoGeografico\n {\n BelcorpService bs4;\n RecordSet respuesta4;\n String codigoError4;\n StringBuffer query4 = new StringBuffer();\n\n try {\n bs4 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError4 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError4));\n }\n\n try {\n //jrivas 29/6/2005\n //Modificado INC. 19479\n SimpleDateFormat sdfFormato = new SimpleDateFormat(\"dd/MM/yyyy\");\n String fechaDesde = sdfFormato.format(peri.getFechaDesde());\n String fechaHasta = sdfFormato.format(peri.getFechaHasta());\n\n query4.append(\" SELECT sub.oid_subg_vent, reg.oid_regi, \");\n query4.append(\" zon.oid_zona, sec.oid_secc, \");\n query4.append(\" terr.terr_oid_terr, \");\n query4.append(\" sec.clie_oid_clie oid_lider, \");\n query4.append(\" zon.clie_oid_clie oid_gerente_zona, \");\n query4.append(\" reg.clie_oid_clie oid_gerente_region, \");\n query4.append(\" sub.clie_oid_clie oid_subgerente \");\n query4.append(\" FROM mae_clien_unida_admin una, \");\n query4.append(\" zon_terri_admin terr, \");\n query4.append(\" zon_secci sec, \");\n query4.append(\" zon_zona zon, \");\n query4.append(\" zon_regio reg, \");\n query4.append(\" zon_sub_geren_venta sub \");\n //jrivas 27/04/2006 INC DBLG50000361\n //query4.append(\" , cra_perio per1, \");\n //query4.append(\" cra_perio per2 \");\n query4.append(\" WHERE una.clie_oid_clie = \" + oidCliente);\n query4.append(\" AND una.ztad_oid_terr_admi = \");\n query4.append(\" terr.oid_terr_admi \");\n query4.append(\" AND terr.zscc_oid_secc = sec.oid_secc \");\n query4.append(\" AND sec.zzon_oid_zona = zon.oid_zona \");\n query4.append(\" AND zon.zorg_oid_regi = reg.oid_regi \");\n query4.append(\" AND reg.zsgv_oid_subg_vent = \");\n query4.append(\" sub.oid_subg_vent \");\n //jrivas 27/04/2006 INC DBLG50000361\n query4.append(\" AND una.perd_oid_peri_fin IS NULL \");\n \n // sapaza -- PER-SiCC-2013-0960 -- 03/09/2013\n //query4.append(\" AND una.ind_acti = 1 \");\n \n /*query4.append(\" AND una.perd_oid_peri_fin = \");\n query4.append(\" AND una.perd_oid_peri_ini = per1.oid_peri \");\n query4.append(\" per2.oid_peri(+) \");\n query4.append(\" AND per1.fec_inic <= TO_DATE ('\" + \n fechaDesde + \"', 'dd/MM/yyyy') \");\n query4.append(\" AND ( per2.fec_fina IS NULL OR \");\n query4.append(\" per2.fec_fina >= TO_DATE ('\" + fechaHasta \n + \"', 'dd/MM/yyyy') ) \");*/\n\n respuesta4 = bs4.dbService.executeStaticQuery(query4.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"respuesta4: \" + respuesta4);\n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError4 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError4));\n }\n\n Gerente lider = new Gerente();\n Gerente gerenteZona = new Gerente();\n Gerente gerenteRegion = new Gerente();\n Gerente subGerente = new Gerente();\n\n if (respuesta4.esVacio()) {\n cliente.setAmbitoGeografico(null);\n } else {\n AmbitoGeografico ambito = new AmbitoGeografico();\n ambito.setOidSubgerencia(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SUBG_VENT\")).longValue()));\n ambito.setOidRegion(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_REGI\")).longValue()));\n ambito.setOidZona(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_ZONA\")).longValue()));\n ambito.setOidSeccion(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SECC\")).longValue()));\n\n //jrivas 29/6/2005\n //Modificado INC. 19479\n ambito.setOidTerritorio(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"TERR_OID_TERR\")).longValue()));\n\n if (respuesta4.getValueAt(0, \"OID_LIDER\") != null) {\n lider.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_LIDER\")).longValue()));\n }\n\n if (respuesta4.getValueAt(0, \"OID_GERENTE_ZONA\") != null) {\n gerenteZona.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_GERENTE_ZONA\")).longValue()));\n ;\n }\n\n if (respuesta4.getValueAt(0, \"OID_GERENTE_REGION\") != null) {\n gerenteRegion.setOidCliente(new Long(((BigDecimal) \n respuesta4.getValueAt(0, \"OID_GERENTE_REGION\"))\n .longValue()));\n }\n\n if (respuesta4.getValueAt(0, \"OID_SUBGERENTE\") != null) {\n subGerente.setOidCliente(new Long(((BigDecimal) respuesta4\n .getValueAt(0, \"OID_SUBGERENTE\")).longValue()));\n }\n\n ambito.setLider(lider);\n ambito.setGerenteZona(gerenteZona);\n ambito.setGerenteRegion(gerenteRegion);\n ambito.setSubgerente(subGerente);\n\n cliente.setAmbitoGeografico(ambito);\n }\n }\n // completar nombre\n {\n BelcorpService bs5;\n RecordSet respuesta5;\n String codigoError5;\n StringBuffer query5 = new StringBuffer();\n\n try {\n bs5 = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError5 = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError5));\n }\n\n try {\n query5.append(\" SELECT OID_CLIE, \");\n query5.append(\" VAL_APE1, \");\n query5.append(\" VAL_APE2, \");\n query5.append(\" VAL_NOM1, \");\n query5.append(\" VAL_NOM2 \");\n query5.append(\" FROM MAE_CLIEN \");\n query5.append(\" WHERE OID_CLIE = \" + oidCliente.longValue());\n respuesta5 = bs5.dbService.executeStaticQuery(query5.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuesta5 \" + respuesta5);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError5 = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError5));\n }\n\n if (respuesta5.esVacio()) {\n cliente.setNombre(null);\n } else {\n \n if(respuesta5.getValueAt(0, \"VAL_NOM1\")!=null) {\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_NOM1\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_NOM2\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_NOM2\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_APE1\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_APE1\"));\n }\n \n if(respuesta5.getValueAt(0, \"VAL_APE2\")!=null) {\n if(nombreCli.length()!=0) {\n nombreCli.append(\" \");\n }\n nombreCli.append((String) respuesta5.getValueAt(0, \"VAL_APE2\"));\n }\n \n cliente.setNombre(nombreCli.toString());\n }\n }\n\n UtilidadesLog.info(\" DAOSolicitudes.obtenerDatosGeneralesCliente(Long oidCliente, Periodo peri):Salida\");\n return cliente;\n }",
"public void selecionarCliente() {\n int cod = tabCliente.getSelectionModel().getSelectedItem().getCodigo();\n cli = cli.buscar(cod);\n\n cxCPF.setText(cli.getCpf());\n cxNome.setText(cli.getNome());\n cxRua.setText(cli.getRua());\n cxNumero.setText(Integer.toString(cli.getNumero()));\n cxBairro.setText(cli.getBairro());\n cxComplemento.setText(cli.getComplemento());\n cxTelefone1.setText(cli.getTelefone1());\n cxTelefone2.setText(cli.getTelefone2());\n cxEmail.setText(cli.getEmail());\n btnSalvar.setText(\"Novo\");\n bloquear(false);\n }",
"public Interfaz_RegistroClientes() {\n initComponents();\n limpiar();\n }",
"public Cliente(){\r\n this.nome = \"\";\r\n this.email = \"\";\r\n this.endereco = \"\";\r\n this.id = -1;\r\n }",
"public void setIdCliente(int value) {\n this.idCliente = value;\n }",
"public List<Cliente> getClientes() {\n List<Cliente> cli = new ArrayList<>();\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(\"src/Archivo/archivo.txt\"));\n String record;\n\n while ((record = br.readLine()) != null) {\n\n StringTokenizer st = new StringTokenizer(record, \",\");\n \n String id = st.nextToken();\n String nombreCliente = st.nextToken();\n String nombreEmpresa = st.nextToken();\n String ciudad = st.nextToken();\n String deuda = st.nextToken();\n String precioVentaSaco = st.nextToken();\n\n Cliente cliente = new Cliente(\n Integer.parseInt(id),\n nombreCliente,\n nombreEmpresa,\n ciudad,\n Float.parseFloat(deuda),\n Float.parseFloat(precioVentaSaco)\n );\n\n cli.add(cliente);\n }\n\n br.close();\n } catch (Exception e) {\n System.err.println(e);\n }\n\n return cli;\n }",
"public ArrayList<Cliente> listarClientes(){\n ArrayList<Cliente> ls = new ArrayList<Cliente>();\n try{\n\t\tString seleccion = \"SELECT codigo, nit, email, pais, fecharegistro, razonsocial, idioma, categoria FROM clientes\";\n\t\tPreparedStatement ps = con.prepareStatement(seleccion);\n //para marca un punto de referencia en la transacción para hacer un ROLLBACK parcial.\n\t\tResultSet rs = ps.executeQuery();\n\t\tcon.commit();\n\t\twhile(rs.next()){\n Cliente cl = new Cliente();\n cl.setCodigo(rs.getInt(\"codigo\"));\n cl.setNit(rs.getString(\"nit\"));\n cl.setRazonSocial(rs.getString(\"razonsocial\"));\n cl.setCategoria(rs.getString(\"categoria\"));\n cl.setEmail(rs.getString(\"email\"));\n Calendar cal = new GregorianCalendar();\n cal.setTime(rs.getDate(\"fecharegistro\")); \n cl.setFechaRegistro(cal.getTime());\n cl.setIdioma(rs.getString(\"idioma\"));\n cl.setPais(rs.getString(\"pais\"));\n\t\t\tls.add(cl);\n\t\t}\n }catch(Exception e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n } \n return ls;\n\t}",
"private static Cliente llenarDatosCliente() {\r\n\t\tCliente cliente1 = new Cliente();\r\n\t\tcliente1.setApellido(\"De Assis\");\r\n\t\tcliente1.setDni(368638373);\r\n\t\tcliente1.setNombre(\"alexia\");\r\n\t\tcliente1.setId(100001);\r\n\r\n\t\treturn cliente1;\r\n\t}",
"public void ObtenerCliente(Connection conn, VOCliente voCli){\n\t\tString sqlBuscarCli=consultas.BuscarCliente();\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt=conn.prepareStatement(sqlBuscarCli);\r\n\t\t\tpstmt.setString(1, voCli.getsNroCli());\r\n\t\t\tpstmt.setInt(2, voCli.getiIdCli());\r\n\t\t\tResultSet rs=pstmt.executeQuery();\r\n\t\t\t\r\n\t\t\tif(rs.next()){\r\n\t\t\t\tvoCli.setiIdDepto(rs.getInt(\"idDepto\"));\r\n\t\t\t\tvoCli.setiHrCargables(rs.getInt(\"hsCargables\"));\r\n\t\t\t\tvoCli.setiHonorarios(rs.getInt(\"honorarios\"));\r\n\t\t\t\tvoCli.setiMoneda(rs.getInt(\"moneda\"));\r\n\t\t\t\tvoCli.setsRut(rs.getString(\"rut\"));\r\n\t\t\t\tvoCli.setsNroCli(rs.getString(\"nroCli\"));\r\n\t\t\t\tvoCli.setsTel(rs.getString(\"tel\"));\r\n\t\t\t\tvoCli.setsDireccion(rs.getString(\"direccion\"));\r\n\t\t\t\tvoCli.setsNomCli(rs.getString(\"nomCli\"));\r\n\t\t\t}\r\n\t\t\trs.close(); pstmt.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public Cliente BuscarCliente(String nif) throws SQLException {\n\t\t\n\t\t//boolean buscar = false;\n\t\tString sql = \"SELECT * FROM cliente WHERE nifCliente='\"+nif+\"'\"; // sentencia busqueda cliente\n\t\t\n\t\ttry {\n\t\t\tconn = conexion.getConexion(); // nueva conexion a la bbdd CREARLO EN TODOS LOS METODOS\n\t\t\tst=(Statement) conn.createStatement();\n\t\t\tresultado = st.executeQuery(sql);\n\t\t\t\twhile(resultado.next()) {\n\n\t\t\t\t\tcliente = new Cliente(); // creamos objeto cliente\n\t\t\t\t\tcliente.setId(resultado.getString(\"idCliente\"));\n\t\t\t\t\tcliente.setNif(resultado.getString(\"nifCliente\"));\n\t\t\t\t\tcliente.setNombre(resultado.getString(\"nombreCliente\"));\n\t\t\t\t\tcliente.setEmail(resultado.getString(\"emailCliente\"));\n\t\t\t\t\tcliente.setTelefono(resultado.getString(\"telefonoCliente\"));\n\t\t\t\t\tcliente.setDireccion(resultado.getString(\"direccionCliente\"));\n\t\t\t\t}// fin while\n\t\t}//fin try\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn cliente;\n\t}",
"public DTOConsultaCliente consultarCliente(DTOOID oid) throws MareException {\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Entrada\");\n\n Boolean bUsaGEOREFERENCIADOR = Boolean.FALSE;\n MONMantenimientoSEG mms;\n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n RecordSet resultado = new RecordSet();\n StringBuffer query = new StringBuffer();\n DTOConsultaCliente dtos = new DTOConsultaCliente();\n\n try {\n query.append(\" select TICL_OID_TIPO_CLIE, SBTI_OID_SUBT_CLIE, I1.VAL_I18N DESC_TIPO_CLIENTE, \");\n query.append(\" I2.VAL_I18N DESC_SUB_TIPO_CLIENTE\");\n query.append(\" from MAE_CLIEN_TIPO_SUBTI T, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = SBTI_OID_SUBT_CLIE \");\n query.append(\" and T.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" ORDER BY DESC_TIPO_CLIENTE ASC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTiposSubtipos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" select TDOC_OID_TIPO_DOCU, NUM_DOCU_IDEN, VAL_IDEN_DOCU_PRIN, VAL_IDEN_PERS_EMPR, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_DOCUM from MAE_CLIEN_IDENT I, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_DOCUM' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TDOC_OID_TIPO_DOCU \");\n query.append(\" and I.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setIdentificaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n // Se agrega campo \"cod_clie\" a la query.\n query.append(\" SELECT val_ape1, val_ape2, val_apel_casa, val_nom1, val_nom2, val_trat, \");\n query.append(\" cod_sexo, fec_ingr, fopa_oid_form_pago, i1.val_i18n desc_forma_pago, \");\n query.append(\" cod_clie \");\n query.append(\" FROM mae_clien m, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.val_oid(+) = fopa_oid_form_pago \");\n query.append(\" AND i1.attr_enti(+) = 'BEL_FORMA_PAGO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma());\n query.append(\" AND m.oid_clie = \" + oid.getOid()); \n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n dtos.setApellido1((String) resultado.getValueAt(0, 0));\n dtos.setApellido2((String) resultado.getValueAt(0, 1));\n dtos.setApellidoCasada((String) resultado.getValueAt(0, 2));\n dtos.setNombre1((String) resultado.getValueAt(0, 3));\n dtos.setNombre2((String) resultado.getValueAt(0, 4));\n\n String tratamiento = (String) resultado.getValueAt(0, 5);\n\n if ((tratamiento != null) && !(tratamiento.equals(\"\"))) {\n dtos.setTratamiento(new Byte(tratamiento));\n }\n\n String sexo = (String) resultado.getValueAt(0, 6);\n\n if ((sexo != null) && !(sexo.equals(\"\"))) {\n dtos.setSexo(new Character(sexo.toCharArray()[0]));\n }\n\n dtos.setFechaIngreso((Date) resultado.getValueAt(0, 7));\n dtos.setFormaPago((String) resultado.getValueAt(0, 9));\n \n // Agregado by ssantana, inc. BELC300021214\n // Se agrega asignacion de parametro CodigoCliente\n dtos.setCodigoCliente((String) resultado.getValueAt(0, 10) );\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT FEC_NACI, COD_EMPL, SNON_OID_NACI, VAL_EDAD, ESCV_OID_ESTA_CIVI, VAL_OCUP, \");\n query.append(\" VAL_PROF, VAL_CENT_TRAB, VAL_CARG_DESE, VAL_CENT_ESTU, NUM_HIJO, NUM_PERS_DEPE, \");\n query.append(\" NSEP_OID_NSEP, TCLV_OID_CICL_VIDA, IND_CORR, IMP_INGR_FAMI, I1.VAL_I18N DESC_NACION, \");\n query.append(\" I2.VAL_I18N DESC_EDO_CIVIL, I3.VAL_I18N DESC_NESP, I4.VAL_I18N DESC_CICLO_VIDA, \");\n query.append(\" NIED_OID_NIVE_ESTU, i5.VAL_I18N desc_nivel_estu, IND_ACTI \");\n query.append(\" FROM MAE_CLIEN_DATOS_ADICI , V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, v_gen_i18n_sicc i5 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_NACIO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = SNON_OID_NACI \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_ESTAD_CIVIL' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = ESCV_OID_ESTA_CIVI \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_TIPO_NIVEL_SOCEC_PERSO' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = NSEP_OID_NSEP \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_CICLO_VIDA' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = TCLV_OID_CICL_VIDA \");\n query.append(\" and i5.ATTR_ENTI(+) = 'MAE_NIVEL_ESTUD' \");\n query.append(\" AND i5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i5.VAL_OID(+) = NIED_OID_NIVE_ESTU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n UtilidadesLog.debug(\"resultado: \" + resultado);\n\n dtos.setFechaNacimiento((Date) resultado.getValueAt(0, 0));\n dtos.setCodigoEmpleado((String) resultado.getValueAt(0, 1));\n /*cleal incidencia 21311 fecha 28/10/2005*/\n // Modificado por ssantana, 8/11/2005\n // dtos.setNacionalidad((resultado.getValueAt(0, 2))!=null ? new String(((BigDecimal) resultado.getValueAt(0, 2)).toString()) : \"\");\n dtos.setNacionalidad((resultado.getValueAt(0, 16)) != null ? (String) resultado.getValueAt(0, 16) : \"\"); \n //(resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null\n\n // dtos.setEdad((String)resultado.getValueAt(0, 3));\n dtos.setEdad((resultado.getValueAt(0, 3) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 3)).toString()) : \"\");\n dtos.setEstadoCivil((String) resultado.getValueAt(0, 17));\n dtos.setOcupacion((String) resultado.getValueAt(0, 5));\n dtos.setProfesion((String) resultado.getValueAt(0, 6));\n dtos.setCentroTrabajo((String) resultado.getValueAt(0, 7));\n dtos.setCargo((String) resultado.getValueAt(0, 8));\n dtos.setCentro((String) resultado.getValueAt(0, 9));\n\n //dtos.setNumeroHijos((BigDecimal)resultado.getValueAt(0, 10));\n /* dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 10)).toString())\n : \"0\");*/\n dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null);\n\n //dtos.setPersonasDependientes((String)resultado.getValueAt(0, 11));\n /* dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 11)).toString())\n : \"0\");*/\n dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 11)).toString()) : null);\n\n dtos.setNSEP((String) resultado.getValueAt(0, 18));\n dtos.setCicloVidaFamiliar((String) resultado.getValueAt(0, 19));\n dtos.setNivelEstudios((String) resultado.getValueAt(0, 21));\n\n //String corres = (String)resultado.getValueAt(0, 14);\n String corres = (resultado.getValueAt(0, 14) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 14)).toString()) : null;\n\n //String corres = ((BigDecimal) resultado.getValueAt(0,14)).toString();\n Boolean correspondencia = null;\n\n if ((corres != null) && !(corres.equals(\"\"))) {\n if (corres.equals(\"1\")) {\n correspondencia = Boolean.TRUE;\n } else {\n correspondencia = Boolean.FALSE;\n }\n }\n\n dtos.setDeseaCorrespondencia(correspondencia);\n\n BigDecimal big = (BigDecimal) resultado.getValueAt(0, 15);\n\n if (big == null) {\n dtos.setImporteIngreso(\"\");\n } else {\n dtos.setImporteIngreso(big.toString());\n }\n \n //SICC-DMCO-MAE-GCC-006 - Cleal\n Boolean indActi = null;\n if(((BigDecimal) resultado.getValueAt(0, 22))!=null){\n\n if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==1){\n indActi = new Boolean(true);\n } else if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==0){\n indActi = new Boolean(false); \n }\n }\n dtos.setIndicadorActivo(indActi);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT I2.VAL_I18N, C.COD_CLIE, FEC_DESD, FEC_HAST, TIVC_OID_TIPO_VINC, IND_VINC_PPAL, I1.VAL_I18N DESC_TIPO_VINCU \");\n query.append(\" FROM MAE_CLIEN_VINCU, V_GEN_I18N_SICC I1, mae_tipo_vincu tv, seg_pais p, v_gen_i18n_sicc i2, mae_clien c \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_VINCU' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIVC_OID_TIPO_VINC \");\n \n /* inicio deshace modif ciglesias incidencia 24377 17/11/2006\n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n // query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n query.append(\" and CLIE_OID_CLIE_VNTE = \" + oid.getOid() + \" \");\n */\n query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n /*fin deshace ciglesias 24377*/\n \n query.append(\" AND mae_clien_vincu.TIVC_OID_TIPO_VINC = tv.OID_TIPO_VINC \");\n \n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNTE = c.OID_CLIE \"); //eiraola 30/11/2006 Incidencia DBLG7...165\n \n //query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNDO = c.OID_CLIE \");\n \n query.append(\" AND tv.PAIS_OID_PAIS = p.OID_PAIS \");\n query.append(\" AND i2.VAL_OID = p.OID_PAIS \");\n query.append(\" AND i2.ATTR_ENTI = 'SEG_PAIS' \");\n query.append(\" AND i2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n //UtilidadesLog.info(\"resultado Vinculo: \" + resultado.toString() );\n dtos.setVinculos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*query.append(\" SELECT DES_CLIE_PREF, TIPF_OID_TIPO_PREF, DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.VAL_I18N descripcionTipo , a.TIPF_OID_TIPO_PREF, a.DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE a , v_gen_i18n_sicc i1 \");\n query.append(\" where a.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and i1.ATTR_ENTI = 'MAE_TIPO_PREFE' \");\n query.append(\" and i1.VAL_OID = a.TIPF_OID_TIPO_PREF \");\n query.append(\" and i1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" and i1.ATTR_NUM_ATRI = 1 \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPreferencias(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, NUM_OBSE, VAL_TEXT, DES_MARC \");\n query.append(\" FROM MAE_CLIEN_OBSER M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setObservaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT c.PAIS_OID_PAIS , c.COD_CLIE, t. TICL_OID_TIPO_CLIE, p.COD_TIPO_CONT, \");\n query.append(\" p.FEC_CONT, p.FEC_SIGU_CONT, I1.VAL_I18N DESC_PAIS, I2.VAL_I18N DESC_TIPO_CLIENTE \");\n query.append(\" FROM MAE_CLIEN_PRIME_CONTA p, MAE_CLIEN c, MAE_CLIEN_TIPO_SUBTI t, V_GEN_I18N_SICC I1, \");\n query.append(\" V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_PAIS' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = c.PAIS_OID_PAIS \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" AND p.CTSU_CLIE_CONT = t.OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = c.OID_CLIE \");\n query.append(\" and p.CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n query.append(\" SELECT c.pais_oid_pais, c.cod_clie, t.ticl_oid_tipo_clie, p.cod_tipo_cont, \");\n query.append(\" p.fec_cont, p.fec_sigu_cont, i1.val_i18n desc_pais, \");\n query.append(\" i2.val_i18n desc_tipo_cliente, i3.val_i18n, perio.val_nomb_peri, marca.DES_MARC \");\n query.append(\" FROM mae_clien_prime_conta p, \");\n query.append(\" mae_clien c, \");\n query.append(\" mae_clien_tipo_subti t, \");\n query.append(\" seg_canal canal, \");\n query.append(\" cra_perio perio, \");\n query.append(\" seg_marca marca, \");\n query.append(\" v_gen_i18n_sicc i1, \");\n query.append(\" v_gen_i18n_sicc i2, \");\n query.append(\" v_gen_i18n_sicc i3 \");\n query.append(\" WHERE i1.attr_enti(+) = 'SEG_PAIS' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = c.pais_oid_pais \");\n query.append(\" AND i2.attr_enti(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND i2.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i2.val_oid(+) = ticl_oid_tipo_clie \");\n query.append(\" AND p.ctsu_clie_cont = t.oid_clie_tipo_subt \");\n query.append(\" AND t.clie_oid_clie = c.oid_clie \");\n query.append(\" AND p.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.perd_oid_peri = perio.oid_peri(+) \");\n query.append(\" AND p.cana_oid_cana = canal.oid_cana(+) \");\n query.append(\" AND canal.oid_cana = i3.val_oid(+) \");\n query.append(\" AND i3.attr_enti(+) = 'SEG_CANAL' \");\n query.append(\" AND i3.attr_num_atri(+) = 1 \");\n query.append(\" AND i3.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" and p.MARC_OID_MARC = marca.OID_MARC(+) \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n // by Ssantana, 29/7/04 - Se corren algunos indices en -1 al quitar\n // campo Primer Pedido Contacto. \n // 5/8//2004 - Se agregan descripciones de Marca, Canal y Periodo\n dtos.setPaisContactado((String) resultado.getValueAt(0, 6));\n dtos.setCodigoClienteContactado((String) resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String) resultado.getValueAt(0, 7));\n dtos.setTipoContacto((String) resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date) resultado.getValueAt(0, 4));\n dtos.setFechaSiguienteContacto((Date) resultado.getValueAt(0, 5));\n dtos.setMarcaContactoDesc((String) resultado.getValueAt(0, 10));\n dtos.setCanalContactoDesc((String) resultado.getValueAt(0, 8));\n dtos.setPeriodoContactoDesc((String) resultado.getValueAt(0, 9));\n\n /* dtos.setPaisContactado((String)resultado.getValueAt(0, 7));\n dtos.setCodigoClienteContactado((String)resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String)resultado.getValueAt(0, 8));\n dtos.setTipoContacto((String)resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date)resultado.getValueAt(0, 4));\n //dtos.setFechaPrimerPedido((Date)resultado.getValueAt(0, 5));\n dtos.setFechaSiguienteContacto((Date)resultado.getValueAt(0, 6));*/\n }\n //Cleal Mae-03\n MONMantenimientoSEGHome mmsHome = SEGEjbLocators.getMONMantenimientoSEGHome();\n mms = mmsHome.create();\n bUsaGEOREFERENCIADOR = mms.usaGeoreferenciador(oid.getOidPais());\n \n resultado = new RecordSet();\n if(Boolean.FALSE.equals(bUsaGEOREFERENCIADOR)){\n UtilidadesLog.debug(\"*** No usa GEO\");\n resultado = obtieneDireccionSinGEO(oid);\n } else{\n UtilidadesLog.debug(\"*** Usa GEO\");\n resultado = obtieneDireccionConGEO(oid);\n }//\n \n //\n /*\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT dir.TIDC_OID_TIPO_DIRE, dir.TIVI_OID_TIPO_VIA, \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" NVL(dir.VAL_NOMB_VIA,vi.NOM_VIA) AS VIA, \");\n \n query.append(\" dir.NUM_PPAL, dir.VAL_COD_POST, \");\n query.append(\" dir.VAL_OBSE, I1.VAL_I18N DESC_TIPO_DIREC, I2.VAL_I18N DESC_TIPO_VIA, ind_dire_ppal, VAL.DES_GEOG \");\n query.append(\" FROM MAE_CLIEN_DIREC dir, ZON_VIA vi, ZON_VALOR_ESTRU_GEOPO val, \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" ZON_TERRI terr, \");\n }\n //\n query.append(\" V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_DIREC' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIDC_OID_TIPO_DIRE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'SEG_TIPO_VIA' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n\n //query.append(\" and I2.VAL_OID(+) = vi.TIVI_OID_TIPO_VIA \");\n query.append(\" and I2.VAL_OID(+) = dir.tivi_oid_tipo_via \");\n query.append(\" and dir.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND dir.ZVIA_OID_VIA = vi.OID_VIA(+) \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" AND dir.TERR_OID_TERR = terr.OID_TERR \");\n query.append(\" AND terr.VEPO_OID_VALO_ESTR_GEOP = val.OID_VALO_ESTR_GEOP \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" AND vi.PAIS_OID_PAIS = \"+oid.getOidPais());\n } else{\n \n query.append(\" \");\n \n }\n resultado = bs.dbService.executeStaticQuery(query.toString());\n */\n dtos.setDirecciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.val_i18n desc_tipo_comun, val_dia_comu, val_text_comu, ind_comu_ppal, \");\n\n /* query.append(\" DECODE(to_char(FEC_HORA_DESD, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_DESD, 'HH24:MI')), \");\n query.append(\" DECODE(to_char(FEC_HORA_HAST, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_HAST, 'HH24:MI')), \");*/\n query.append(\" to_char(FEC_HORA_DESD, 'HH24:MI'), \");\n query.append(\" to_char(FEC_HORA_HAST, 'HH24:MI'), \");\n query.append(\" val_inte_comu \");\n query.append(\" FROM mae_clien_comun, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = ticm_oid_tipo_comu \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n resultado = bs.dbService.executeStaticQuery(query.toString());\n UtilidadesLog.debug(\"----- resultado Comunicaciones: \" + resultado);\n dtos.setComunicaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, S.DES_MARC \");\n query.append(\" FROM MAE_CLIEN_MARCA M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n String[] marcas = new String[resultado.getRowCount()];\n\n for (int i = 0; i < resultado.getRowCount(); i++)\n marcas[i] = (String) resultado.getValueAt(i, 1);\n\n dtos.setMarcas(marcas);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT TITR_OID_TIPO_TARJ, CLTA_OID_CLAS_TARJ, CBAN_OID_BANC, I1.VAL_I18N DESC_TIPO_TARJ, \");\n query.append(\" DES_CLAS_TARJ, DES_BANC \");\n query.append(\" FROM MAE_CLIEN_TARJE, V_GEN_I18N_SICC I1, MAE_CLASE_TARJE, CCC_BANCO \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_TARJE' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TITR_OID_TIPO_TARJ \");\n query.append(\" and CLTA_OID_CLAS_TARJ = OID_CLAS_TARJ \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and CBAN_OID_BANC = OID_BANC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTarjetas(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT t.TICL_OID_TIPO_CLIE, t.SBTI_OID_SUBT_CLIE, c.CLAS_OID_CLAS, c.TCCL_OID_TIPO_CLASI, \");\n query.append(\n \" c.FEC_CLAS, PERD_OID_PERI, I1.VAL_I18N DESC_TIPO_CLIENTE, I2.VAL_I18N DESC_SUB_TIPO_CLIENTE, I3.VAL_I18N DESC_CLASI, I4.VAL_I18N DESC_TIPO_CLASI_CLIENTE, I5.VAL_I18N DESC_PERIODO, \");\n query.append(\" i6.VAL_I18N desc_canal, m.DES_MARC desc_marca \");\n query.append(\" FROM MAE_CLIEN_TIPO_SUBTI t, MAE_CLIEN_CLASI c, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, \");\n query.append(\" V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, V_GEN_I18N_SICC I5, \");\n query.append(\" cra_perio p, seg_marca m, v_gen_i18n_sicc i6 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = t.TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = t.SBTI_OID_SUBT_CLIE \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_CLASI' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = c.CLAS_OID_CLAS \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = c.TCCL_OID_TIPO_CLASI \");\n query.append(\" and I5.ATTR_ENTI(+) = 'CRA_PERIO' \");\n query.append(\" and I5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I5.VAL_OID(+) = PERD_OID_PERI \");\n query.append(\" and t.OID_CLIE_TIPO_SUBT = c.CTSU_OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND perd_oid_peri = p.OID_PERI \");\n query.append(\" AND i6.VAL_OID(+) = p.CANA_OID_CANA \");\n query.append(\" AND i6.ATTR_ENTI(+) = 'SEG_CANAL' \");\n query.append(\" AND i6.IDIO_OID_IDIO = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i6.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); */\n query.append(\" SELECT m.DES_MARC, v1.VAL_I18N, v2.VAL_I18N, \");\n query.append(\" v3.VAL_I18N, v4.VAL_I18N, v5.VAL_I18N \");\n query.append(\" FROM mae_clien_tipo_subti t, mae_clien_clasi c, cra_perio p, seg_marca m, v_gen_i18n_sicc v1, \");\n query.append(\" v_gen_i18n_sicc v2, v_gen_i18n_sicc v3, v_gen_i18n_sicc v4, v_gen_i18n_sicc v5 \");\n query.append(\" WHERE t.oid_clie_tipo_subt = c.ctsu_oid_clie_tipo_subt \");\n query.append(\" AND c.perd_oid_peri = p.oid_peri \");\n query.append(\" AND t.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); // MARCA\n query.append(\" AND p.CANA_OID_CANA = v1.VAL_OID \"); // CANAL\n query.append(\" AND v1.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v1.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND v1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.TICL_OID_TIPO_CLIE = v2.VAL_OID \"); // TIPO CLIENTE\n query.append(\" AND v2.ATTR_ENTI = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND v2.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.SBTI_OID_SUBT_CLIE = v3.VAL_OID \"); // SUBTIPO CLIENTE\n query.append(\" AND v3.ATTR_ENTI = 'MAE_SUBTI_CLIEN' \");\n query.append(\" AND v3.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v3.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.TCCL_OID_TIPO_CLASI = v4.VAL_OID \"); // TIPO CLASIFICACION\n query.append(\" AND v4.ATTR_ENTI = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" AND v4.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v4.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.CLAS_OID_CLAS = v5.VAL_OID \"); // CLASIFICACION\n query.append(\" AND v5.ATTR_ENTI = 'MAE_CLASI' \");\n query.append(\" AND v5.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v5.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n \n // BELC300023061 - 04/07/2006\n // Si no se obtuvo ninguna clasificacion para el cliente en la consulta anterior, \n // insertar una fila en el atributo clasificaciones, con el indicador principal activo, \n // sólo con la marca y el canal\n if (!resultado.esVacio()) {\n dtos.setClasificaciones(resultado);\n } else {\n query = new StringBuffer();\n resultado = new RecordSet();\n \n query.append(\" SELECT mar.DES_MARC, \");\n query.append(\" \t\t iCa.VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N \");\n query.append(\" FROM MAE_CLIEN_UNIDA_ADMIN uA, \");\n query.append(\" \t CRA_PERIO per, \");\n query.append(\" \t\t SEG_MARCA mar, \");\n query.append(\" \t V_GEN_I18N_SICC iCa \");\n query.append(\" WHERE uA.CLIE_OID_CLIE = \" + oid.getOid().toString());\n query.append(\" AND uA.IND_ACTI = 1 \");\n query.append(\" \t AND uA.PERD_OID_PERI_INI = per.OID_PERI \");\n query.append(\" \t AND per.MARC_OID_MARC = mar.OID_MARC \");\n query.append(\" AND per.CANA_OID_CANA = iCa.VAL_OID \");\n query.append(\" AND iCa.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND iCa.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND iCa.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" ORDER BY uA.OID_CLIE_UNID_ADMI ASC \");\n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setClasificaciones(resultado);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n //el false se utiliza para indicar que estas filas son de problemas \n //el true indica que estas filas son de soluciones \n query.append(\" SELECT i1.VAL_I18N, DES_PROB, decode(IND_SOLU,0,'false',1,'true') IND_SOLU, I2.VAL_I18N TSOC_OID_TIPO_SOLU, DES_SOLU, VAL_NEGO_PROD \");\n query.append(\" FROM MAE_CLIEN_PROBL, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PROBL' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIPB_OID_TIPO_PROB \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_SOLUC' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TSOC_OID_TIPO_SOLU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setProblemasSoluciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic\n FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s\n WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO'\n AND i1.idio_oid_idio(+) = 1\n AND i1.val_oid(+) = tpoid_tipo_perf_psic\n AND clie_oid_clie = 152\n AND marc_oid_marc = s.oid_marc */\n query.append(\" SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic \");\n query.append(\" FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = tpoid_tipo_perf_psic \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND marc_oid_marc = s.oid_marc \");\n\n /* query.append(\" SELECT MARC_OID_MARC, TPOID_TIPO_PERF_PSIC, COD_TEST, FEC_PSIC, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_PERFIL_PSICO, S.DES_MARC \");\n query.append(\" FROM MAE_PSICO, V_GEN_I18N_SICC I1, SEG_MARCA S \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TPOID_TIPO_PERF_PSIC \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and MARC_OID_MARC = S.OID_MARC \");*/\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPsicografias(resultado);\n } catch (CreateException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (RemoteException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (Exception e) {\n e.printStackTrace();\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n UtilidadesLog.debug(\"DTO a retornar: \" + dtos.toString());\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Salida\");\n\n return dtos;\n }",
"void realizarSolicitud(Cliente cliente);",
"@GET(API_ROUTE + \"/contactos-cliente/{cli_id}\")\n Call<List<Persona>> getContactsByClientId(@Path(\"cli_id\") long cli_id);",
"public void getClientFromBon(int id) {\n\t\tClient client = clientOperations.getClientFromBon(id);\n\t\tSystem.out.println(client.toString());\n\t}",
"@Override\n\tpublic Clientes findByIdCliente(Long tdocCodigo) throws Exception {\n\t\treturn clienteLogic.findById(tdocCodigo);\n\t}",
"private void obtenerClienteRecomendado(Cliente clienteParametro, Long oidPais) throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendado(ClienteclienteParametro, Long oidPais):Entrada\");\n\n BelcorpService bsInc = null;\n RecordSet respuestaInc = null;\n StringBuffer queryInc = new StringBuffer();\n ArrayList lstRecomendados;\n\n if ( clienteParametro.getClienteRecomendante() != null){\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"oidClienteRecomendante=\"+clienteParametro.getClienteRecomendante().getRecomendante());\n }\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n try {\n queryInc.append(\" SELECT \");\n queryInc.append(\" CLIE_OID_CLIE_VNDO CLIE_OID_CLIE, \");\n queryInc.append(\" FEC_DESD FEC_INIC, \");\n queryInc.append(\" FEC_HAST FEC_FINA \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n queryInc.append(\" AND IND_RECO = 1 \");\n queryInc.append(\" AND CLIE_OID_CLIE_VNDO NOT IN ( \");\n \n // queryInc.append(\" SELECT RDO.CLIE_OID_CLIE, FEC_INIC, FEC_FINA \");\n queryInc.append(\" SELECT DISTINCT RDO.CLIE_OID_CLIE \");\n queryInc.append(\" FROM INC_CLIEN_RECDO RDO, CRA_PERIO, \");\n queryInc.append(\" INC_CLIEN_RECTE RECT \");\n queryInc.append(\" WHERE PERD_OID_PERI = OID_PERI \");\n queryInc.append(\" AND RECT.CLIE_OID_CLIE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND CLR3_OID_CLIE_RETE = OID_CLIE_RETE \");\n \n queryInc.append(\" ) \");\n \n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n //BelcorpService bsMae = null;\n RecordSet respuestaMae = null;\n //StringBuffer queryMae = new StringBuffer();\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n \n boolean hayRecomendado = false;\n Cliente clienteLocal = new Cliente();\n lstRecomendados = clienteParametro.getClienteRecomendado();\n\n if (!respuestaInc.esVacio()) {\n \n hayRecomendado = true;\n \n clienteParametro.setIndRecomendadosEnINC(true);\n \n /* vbongiov -- RI SiCC 20090941 -- 16/06/2009 \n * no lleno lstRecomendados con estos valores solo mantengo el indicador IndRecomendadosEnINC \n \n lstRecomendados.clear();\n \n for(int i=0; i<respuestaInc.getRowCount();i++){ \n ClienteRecomendado clienteRecomendado = new ClienteRecomendado(); \n\n clienteRecomendado.setRecomendante(clienteParametro.getOidCliente()); \n \n BigDecimal recomendado = (BigDecimal) respuestaInc.getValueAt(i, \"CLIE_OID_CLIE\");\n clienteRecomendado.setRecomendado((recomendado != null) ? new Long(recomendado.longValue()) : null);\n \n clienteRecomendado.setFechaInicio((Date) respuestaInc.getValueAt(i, \"FEC_INIC\"));\n Date fechaFin = (Date) respuestaInc.getValueAt(i, \"FEC_FINA\");\n clienteRecomendado.setFechaFin((fechaFin != null) ? fechaFin : null);\n\n clienteLocal.setOidCliente(clienteRecomendado.getRecomendado());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendado.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n \n lstRecomendados.add(clienteRecomendado); \n }*/\n } \n \n // vbongiov -- RI SiCC 20090941 -- 16/06/2009 \n // \n \n try {\n queryInc = new StringBuffer(); \n queryInc.append(\" SELECT CLIE_OID_CLIE_VNDO, FEC_DESD, FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n queryInc.append(\" AND IND_RECO = 1 \");\n\n respuestaMae = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMae \" + respuestaMae); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if (!respuestaMae.esVacio()) {\n \n hayRecomendado = true;\n \n clienteParametro.setIndRecomendadosEnMAE(true);\n \n lstRecomendados.clear();\n \n for(int i=0; i<respuestaMae.getRowCount();i++){ \n \n ClienteRecomendado clienteRecomendado = new ClienteRecomendado(); \n\n clienteRecomendado.setRecomendante(clienteParametro.getOidCliente());\n\n clienteRecomendado.setRecomendado(new Long(((BigDecimal) \n respuestaMae.getValueAt(i, \"CLIE_OID_CLIE_VNDO\")).longValue()));\n {\n Date fechaInicio = (Date) respuestaMae.getValueAt(i, \"FEC_DESD\");\n clienteRecomendado.setFechaInicio((fechaInicio != null) ? fechaInicio : null);\n }\n\n {\n Date fechaFin = (Date) respuestaMae.getValueAt(i, \"FEC_HAST\");\n clienteRecomendado.setFechaFin((fechaFin != null) ? fechaFin : null);\n }\n \n clienteLocal.setOidCliente(clienteRecomendado.getRecomendado());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendado.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n \n lstRecomendados.add(clienteRecomendado); \n \n }\n \n clienteParametro.setClienteRecomendado(lstRecomendados);\n \n } else {\n hayRecomendado = false;\n }\n\n if (!hayRecomendado) {\n clienteParametro.setClienteRecomendado(null);\n }\n \n // JVM, sicc 20070381, if, manejo del Recomendador, bloque de recuparacion de periodo\n if (lstRecomendados.size() > 0)\n { \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n \n RecordSet respuestaMaeRdr = null;\n\n try { \n queryInc = new StringBuffer();\n queryInc.append(\" SELECT DISTINCT CLIE_OID_CLIE_VNTE , FEC_DESD , FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n respuestaMaeRdr = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMaeRdr \" + respuestaMaeRdr); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n ClienteRecomendante clienteRecomendador = new ClienteRecomendante();\n \n if (!respuestaMaeRdr.esVacio()) {\n \n {\n BigDecimal recomendador = (BigDecimal) respuestaMaeRdr.getValueAt(0, \"CLIE_OID_CLIE_VNTE\");\n clienteRecomendador.setRecomendante((recomendador != null) ? new Long(recomendador.longValue()) : null);\n }\n \n clienteRecomendador.setFechaInicio((Date) respuestaMaeRdr.getValueAt(0, \"FEC_DESD\"));\n // fecha fin de INC\n {\n Date fechaFin = (Date) respuestaMaeRdr.getValueAt(0, \"FEC_HAST\");\n clienteRecomendador.setFechaFin((fechaFin != null)? fechaFin : null);\n }\n \n clienteParametro.setClienteRecomendador(clienteRecomendador);\n }\n \n for (int i=0; i<lstRecomendados.size(); i++){\n\n ClienteRecomendado clienteRecomendados = new ClienteRecomendado(); \n \n clienteRecomendados = (ClienteRecomendado) lstRecomendados.get(i);\n \n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n\n queryInc = new StringBuffer();\n \n try {\n queryInc.append(\" select x.n, x.oid_peri, x.fec_inic, x.fec_fina, x.pais_oid_pais, x.marc_oid_marc, x.cana_oid_cana \"); \n queryInc.append(\" from ( \"); \n queryInc.append(\" select 1 n, b.oid_peri as oid_peri, \"); \n queryInc.append(\" b.fec_inic as fec_inic, \"); \n queryInc.append(\" b.fec_fina as fec_fina, \"); \n queryInc.append(\" b.pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" b.marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" b.cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from mae_clien_prime_conta a, cra_perio b, seg_perio_corpo c \"); \n queryInc.append(\" where a.clie_oid_clie = \" + clienteRecomendados.getRecomendado()); \n queryInc.append(\" and a.perd_oid_peri = b.oid_peri \"); \n queryInc.append(\" and b.peri_oid_peri = c.oid_peri \"); \n queryInc.append(\" and b.oid_peri in ( \"); \n queryInc.append(\" select oid_peri \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD/MM/YYYY') <= fec_fina ) \");\n queryInc.append(\" union \"); \n queryInc.append(\" select rownum + 1 as n, oid_peri as oid_peri, \"); \n queryInc.append(\" fec_inic as fec_inic, \"); \n queryInc.append(\" fec_fina as fec_fina, \"); \n queryInc.append(\" pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') <= fec_fina \");\n queryInc.append(\" order by oid_peri asc \"); \n queryInc.append(\" ) x \"); \n queryInc.append(\" order by n \"); \n\n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n BigDecimal bd;\n \n if (!respuestaInc.esVacio()) {\n\n Periodo periodo = new Periodo();\n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"OID_PERI\");\n periodo.setOidPeriodo(new Long(bd.longValue()));\n \n periodo.setFechaDesde((Date) respuestaInc.getValueAt(0, \"FEC_INIC\"));\n\n periodo.setFechaHasta((Date) respuestaInc.getValueAt(0, \"FEC_FINA\")); \n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"PAIS_OID_PAIS\");\n periodo.setOidPais(new Long(bd.longValue()));\n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"MARC_OID_MARC\");\n periodo.setOidMarca(new Long(bd.longValue()));\n\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"CANA_OID_CANA\");\n periodo.setOidCanal(new Long(bd.longValue()));\n \n clienteRecomendados.setPeriodo(periodo);\n } \n }\n }\n\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"lstRecomendados(\"+lstRecomendados.size() + \n \") getIndRecomendadosEnMAE(\"+clienteParametro.getIndRecomendadosEnMAE() +\n \") getIndRecomendadosEnINC(\"+clienteParametro.getIndRecomendadosEnINC() +\")\"); \n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendado(ClienteclienteParametro, Long oidPais):Salida\"); \n \n }",
"@Override\n\tpublic List<String> listarFicherosCliente(int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\t\t\n \tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \tInterfaz.imprime(\"La lista de ficheros de la sesion: \" + idSesionCliente + \" ha sido enviada\");\n return datos.listarFicherosCliente(idSesionCliente);\n \n\t}",
"public void gravarCliente() {\n\t\tCliente cliente = new DAO<Cliente>(Cliente.class)\n\t\t\t\t.buscaPorId(this.clienteId);\n\t\tthis.solicitacao.adicionaCliente(cliente);\n\t\tSystem.out.println(\"Cliente a gravar é \" + cliente.getNome());\n\t}",
"public Cliente obtenerClienteId(Long id) throws Exception {\n\t\tCliente r=clienteRep.buscarClienteId(id);\n\t\tif(r==null) {\n\t\t\tthrow new Exception(\"No se encuentra autor en BDD\");\n\t\t}else {\n\t\t\treturn r;\n\t\t}\n\t}",
"public Cliente(Long id, String nome, int idade) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.nome = nome;\n\t\tthis.idade = idade;\n\t}",
"void grabarCliente(){\n RequestParams params = new RequestParams();\n params.put(\"nombre\",edtNombre.getText().toString().trim());\n params.put(\"apellido\",edtApellido.getText().toString().trim());\n params.put(\"correo\", edtCorreo.getText().toString().trim());\n String claveMD5 = edtClave.getText().toString().trim();\n try {\n params.put(\"clave\", ws.getMD5(claveMD5));\n } catch (Exception e) {\n e.printStackTrace();\n }\n params.put(\"id_cargo\",idCargo);\n params.put(\"autoriza\",validarCheckBoxAutoriza());\n crearUsuarioWS(params);\n }",
"@Override\r\n\tpublic Integer getId() {\n\t\treturn codigoCliente;\r\n\t}",
"public ClienteConsultas() {\n listadeClientes = new ArrayList<>();\n clienteSeleccionado = new ArrayList<>();\n }",
"@Override\n\tpublic void cadastrar(Cliente o) {\n\t\t\n\t}",
"public void recupera() {\n Cliente clienteActual;\n clienteActual=clienteDAO.buscaId(c.getId());\n if (clienteActual!=null) {\n c=clienteActual;\n } else {\n c=new Cliente();\n }\n }",
"@Override\r\n public List<Cliente> listarClientes() throws Exception {\r\n Query consulta = entity.createNamedQuery(Cliente.CONSULTA_TODOS_CLIENTES);\r\n List<Cliente> listaClientes = consulta.getResultList();//retorna una lista\r\n return listaClientes;\r\n }",
"public List<Cliente> mostrarClientes()\n\t{\n\t\tCliente p;\n\t\tif (! clientes.isEmpty())\n\t\t{\n\t\t\t\n\t\t\tSet<String> ll = clientes.keySet();\n\t\t\tList<String> li = new ArrayList<String>(ll);\n\t\t\tCollections.sort(li);\n\t\t\tListIterator<String> it = li.listIterator();\n\t\t\tList<Cliente> cc = new ArrayList<Cliente>();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tp = clientes.get(it.next());\n\t\t\t\tcc.add(p);\n\t\t\t\t\n\t\t\t}\n\t\t\t//Collections.sort(cc, new CompararCedulasClientes());\n\t\t\treturn cc;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic Client getClientById(int id) {\n\t\treturn null;\n\t}",
"public void cadastrar(Cliente cliente){\n\t\tSystem.out.println(cliente.toString());\r\n\t\tint tamanho = this.clientes.length;\r\n\t\tthis.clientes = Arrays.copyOf(this.clientes, this.clientes.length + 1);\r\n\t\tthis.clientes[tamanho - 1] = cliente;\r\n\t}",
"public List<Integer> getAllIDClient(){\n\t\tPreparedStatement ps = null;\n\t\tResultSet resultatRequete =null;\n\t\t\n\t\ttry {\n\t\t\tString requeteSqlGetAll=\"SELECT id_client FROM clients\";\n\t\t\tps = this.connection.prepareStatement(requeteSqlGetAll);\n\t\t\t\n\t\t\tresultatRequete = ps.executeQuery();\n\n\t\t\tClient client = null;\n\t\t\t\n\t\t\tList<Integer> listeIDClient = new ArrayList <>();\n\n\t\t\twhile (resultatRequete.next()) {\n\t\t\t\tint idClient = resultatRequete.getInt(1);\n\t\t\t\t\n\t\t\t\tlisteIDClient.add(idClient);\n\t\t\t\t\n\t\t\t}//end while\n\t\t\treturn listeIDClient;\n\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tif(resultatRequete!= null) resultatRequete.close();\n\t\t\t\tif(ps!= null) ps.close();\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private void peticionDeCliente() throws IOException, InterruptedException {\n\t\tString mensaje = null;\n\t\tboolean salir = false;\n\t\twhile(!salir) {\n\t\t\tmensaje = in.readLine();\n\t\t\tif(mensaje!=null && !mensaje.split(\";\")[0].equals(\"Comprobacion\")) {\n\t\t\t\tthis.tcpServidor.colaPeticion.put(mensaje); //ALMACENA SOLICITUD EN COLA_PETICIONES\n\t\t\t\tSystem.out.println(\"Peticion del cliente \"+this.idCliente+\": \"+ mensaje);\n\t\t\t}\n\t\t}\n\t}",
"public int getIdClient() {\r\n return idClient;\r\n }",
"public MainCliente(Sistema sistem, int id) {\n initComponents();\n this.sistem = sistem;\n this.id = id;\n }",
"@Override\n\tpublic void cargarClienteSinCobrador() {\n\t\tpopup.showPopup();\n\t\tif(UIHomeSesion.usuario!=null){\n\t\tlista = new ArrayList<ClienteProxy>();\n\t\tFACTORY.initialize(EVENTBUS);\n\t\tContextGestionCobranza context = FACTORY.contextGestionCobranza();\n\t\tRequest<List<ClienteProxy>> request = context.listarClienteSinCobrador(UIHomeSesion.usuario.getIdUsuario()).with(\"beanUsuario\");\n\t\trequest.fire(new Receiver<List<ClienteProxy>>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<ClienteProxy> response) {\n\t\t\t\tlista.addAll(response);\t\t\t\t\n\t\t\t\tgrid.setData(lista);\t\t\t\t\n\t\t\t\tgrid.getSelectionModel().clear();\n\t\t\t\tpopup.hidePopup();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n public void onFailure(ServerFailure error) {\n popup.hidePopup();\n //Window.alert(error.getMessage());\n Notification not=new Notification(Notification.WARNING,error.getMessage());\n not.showPopup();\n }\n\t\t\t\n\t\t});\n\t\t}\n\t}",
"@Override\n\t@Transactional\n\tpublic Cliente getClienteIdgrupoIdclienteUser(long id, Long idClienteUser,Long idGrupo) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> client =getCurrentSession().createQuery(\"from Cliente c join fetch c.grupos grupos join fetch grupos.clientes where grupos.id='\"+idGrupo+\"' and c.id='\"+id+\"'\").list();\n\t\tif(client!=null && !client.isEmpty()){\n\t\t\tCliente c =(Cliente)getCurrentSession().load(Cliente.class, id);\n\t\t\treturn c;\n\t\t}else{\n\n\t\treturn null;\n\t}\n\t\t}",
"public BCliente obtenerCliente(int codigo)throws SQLException{\r\n\t\tICliente daoCliente = new DCliente();\r\n\t\treturn daoCliente.obtenerCliente(codigo);\r\n\t}",
"public void run() {\n\t\ttry {\n\t\t\tin = new BufferedReader(new InputStreamReader(cliente.getInputStream()));\n\t\t\tmOut = new PrintWriter(new BufferedWriter(new OutputStreamWriter(cliente.getOutputStream())), true);\n\n\t\t\tint comparar = idCliente(); //recibe id del cliente\n\t\t\tif(comparar==0) { \n\t\t\t\t//ENVIA id PARA EL CLIENTE\n\t\t\t\tthis.tcpServidor.maxCliente++;\n\t\t\t\tenviarMensaje(\"ID;\"+this.tcpServidor.maxCliente);\n\t\t\t\t//ENVIA maxCliente A TODAS LAS REPLICAS\n\t\t\t\tfor (HiloReplica h : this.tcpServidor.hiloReplica) {\n\t\t\t\t\th.enviarMensaje(\"MAXCLIENTE;\"+this.tcpServidor.maxCliente);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.idCliente = comparar; //GUARDA id DEL CLIENTE\n\t\t\t}\n\t\n\t\t\tSystem.out.println(\"Cliente \"+this.idCliente+\" conectado a Balanceado \"+this.tcpServidor.id);\n\t\t\t\n\t\t\tpeticionDeCliente();\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t//System.out.println(\"HiloCliente\" + \": Error\" + e);\n\t\t}\n\t}",
"@RequestMapping(value=\"/by-id/{id}\",method=RequestMethod.GET)\r\n\tpublic ResponseEntity<?> listarById(@PathVariable(\"id\") long id) {\r\n\t\treturn new ResponseEntity<List<Cliente>>(clienteService.listarById(id), HttpStatus.OK);\r\n\t}",
"@Override\n\tpublic List<Cliente> listarClientes() {\n\t\treturn clienteDao.findAll();\n\t}",
"public List<Compte> getComptesClient(int numeroClient);",
"public static List<ClientesVO> listarClientes() throws Exception {\r\n\r\n List<ClientesVO> vetorClientes = new ArrayList<ClientesVO>();\r\n\r\n try {\r\n ConexaoDAO.abreConexao();\r\n } catch (Exception erro) {\r\n throw new Exception(erro.getMessage());\r\n }\r\n\r\n try {\r\n\r\n //Construçao do objeto Statement e ligaçao com a variavel de conexao\r\n stClientes = ConexaoDAO.connSistema.createStatement();\r\n\r\n //SELECT NO BANCO\r\n String sqlLista = \"Select * from clientes\";\r\n\r\n //Executando select e armazenando dados no ResultSet\r\n rsClientes = stClientes.executeQuery(sqlLista);\r\n\r\n while (rsClientes.next()) {//enquanto houver clientes\r\n ClientesVO tmpCliente = new ClientesVO();\r\n\r\n tmpCliente.setIdCliente(rsClientes.getInt(\"id_cliente\"));\r\n tmpCliente.setCodigo(rsClientes.getInt(\"cod_cliente\"));\r\n tmpCliente.setNome(rsClientes.getString(\"nome_cliente\"));\r\n tmpCliente.setCidade(rsClientes.getString(\"cid_cliente\"));\r\n tmpCliente.setTelefone(rsClientes.getString(\"tel_cliente\"));\r\n\r\n vetorClientes.add(tmpCliente);\r\n\r\n }\r\n\r\n } catch (Exception erro) {\r\n throw new Exception(\"Falha na listagem de dados. Verifique a sintaxe da instruçao SQL\\nErro Original:\" + erro.getMessage());\r\n }\r\n\r\n try {\r\n ConexaoDAO.fechaConexao();\r\n } catch (Exception erro) {\r\n throw new Exception(erro.getMessage());\r\n }\r\n\r\n return vetorClientes;\r\n }",
"public ArrayList<DataCliente> listarClientes();",
"public Cliente[] findWhereIdClienteEquals(int idCliente) throws ClienteDaoException;",
"public List<Client> displayClient ()\r\n {\r\n List<Client> clientListe = new ArrayList<Client>();\r\n String sqlrequest = \"SELECT idCLient,nom,prenom,email,nbrSignalisation FROM pi_dev.client ;\";\r\n try {\r\n PreparedStatement ps = MySQLConnection.getInstance().prepareStatement(sqlrequest);\r\n ResultSet resultat = ps.executeQuery(sqlrequest);\r\n while (resultat.next()){\r\n Client client = new Client();\r\n \r\n \r\n client.setEmail(resultat.getString(\"email\"));\r\n client.setIdClient(resultat.getInt(\"idClient\"));\r\n client.setNom(resultat.getString(\"nom\"));\r\n client.setPrenom(resultat.getString(\"prenom\"));\r\n client.setNbrSignalisation(resultat.getInt(\"nbrSignalisation\"));\r\n \r\n clientListe.add(client);\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ClientDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return clientListe;\r\n }",
"public ArrayList<Cliente> listaDeClientes() {\n\t\t\t ArrayList<Cliente> misClientes = new ArrayList<Cliente>();\n\t\t\t Conexion conex= new Conexion();\n\t\t\t \n\t\t\t try {\n\t\t\t PreparedStatement consulta = conex.getConnection().prepareStatement(\"SELECT * FROM clientes\");\n\t\t\t ResultSet res = consulta.executeQuery();\n\t\t\t while(res.next()){\n\t\t\t \n\t\t\t int cedula_cliente = Integer.parseInt(res.getString(\"cedula_cliente\"));\n\t\t\t String nombre= res.getString(\"nombre_cliente\");\n\t\t\t String direccion = res.getString(\"direccion_cliente\");\n\t\t\t String email = res.getString(\"email_cliente\");\n\t\t\t String telefono = res.getString(\"telefono_cliente\");\n\t\t\t Cliente persona= new Cliente(cedula_cliente, nombre, direccion, email, telefono);\n\t\t\t misClientes.add(persona);\n\t\t\t }\n\t\t\t res.close();\n\t\t\t consulta.close();\n\t\t\t conex.desconectar();\n\t\t\t \n\t\t\t } catch (Exception e) {\n\t\t\t //JOptionPane.showMessageDialog(null, \"no se pudo consultar la Persona\\n\"+e);\n\t\t\t\t System.out.println(\"No se pudo consultar la persona\\n\"+e);\t\n\t\t\t }\n\t\t\t return misClientes; \n\t\t\t }",
"@GetMapping(\"/clientes\")\r\n\tpublic List<Cliente> listar(){\r\n\t\treturn iClienteServicio.findAll();\r\n\t\t\r\n\t}",
"public Cliente[] findWhereIdVendedorConsignaEquals(int idVendedorConsigna) throws ClienteDaoException;",
"public ListaCliente() {\n\t\tClienteRepositorio repositorio = FabricaPersistencia.fabricarCliente();\n\t\tList<Cliente> clientes = null;\n\t\ttry {\n\t\t\tclientes = repositorio.getClientes();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tclientes = new ArrayList<Cliente>();\n\t\t}\n\t\tObject[][] grid = new Object[clientes.size()][3];\n\t\tfor (int ct = 0; ct < clientes.size(); ct++) {\n\t\t\tgrid[ct] = new Object[] {clientes.get(ct).getNome(),\n\t\t\t\t\tclientes.get(ct).getEmail()};\n\t\t}\n\t\tJTable table= new JTable(grid, new String[] {\"NOME\", \"EMAIL\"});\n\t\tJScrollPane scroll = new JScrollPane(table);\n\t\tgetContentPane().add(scroll, BorderLayout.CENTER);\n\t\tsetTitle(\"Clientes Cadastrados\");\n\t\tsetSize(600,400);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tsetLocationRelativeTo(null);\n\t}",
"public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + respuesta);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }",
"private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }",
"@Override\n\tpublic void altaCliente(Cliente cliente) {\n\t}",
"public void AfficherListClient() throws Exception{\n laListeClient = Client_Db_Connect.tousLesClients();\n laListeClient.forEach((c) -> {\n modelClient.addRow(new Object[]{ c.getIdent(),\n c.getRaison(),\n c.getTypeSo(),\n c.getDomaine(),\n c.getAdresse(),\n c.getTel(),\n c.getCa(),\n c.getComment(),\n c.getNbrEmp(),\n c.getDateContrat(),\n c.getAdresseMail()});\n });\n }",
"public Cliente getCliente() {\n return objCliente;\n }",
"@Override\r\n\tpublic void aggiornaUI() {\r\n\t\tString valore = input_ricerca_cliente.getText();\r\n\t\tthis.clienti.setAll(AppFacadeController.getInstance().getGestisciClientiController().cercaCliente(valore));\r\n\t}",
"public List<Client> listerClientsDeConseiller(Long idConseiller) throws DaoException {\n\t\ttry {\n\t\t\treturn daoClient.findByConseillerId(idConseiller);\n\t\t} catch (Exception e) {\n\t\t\tthrow new DaoException(\"ConseillerService.listerClientsDeConseiller\" + e);\n\t\t}\n\t}",
"public void setClienteID(java.lang.String clienteID) {\n this.clienteID = clienteID;\n }",
"public void setClienteID(java.lang.String clienteID) {\n this.clienteID = clienteID;\n }",
"public void pagarCuentaCliente(Long idCliente,String claveMesa) throws QRocksException;",
"public Lista obtenerListaClientesAdicionales(int codigoCuenta)throws SQLException{\r\n\t\tLista listadoCliente=null;\r\n\t\tICuenta daoCliente = new DCuenta();\r\n\t\t\r\n\t\tlistadoCliente = daoCliente.obtenerListadoCuentaAdicional(codigoCuenta);\r\n\t\t\r\n\t\treturn listadoCliente;\r\n\t}",
"public void localizarDados(int idOrcamento){\n OrcamentoCursoController orcamentoCursoController = new OrcamentoCursoController();\n this.orcamentocurso = orcamentoCursoController.consultar(idOrcamento);\n if (orcamentocurso!=null){\n ClienteController clienteController = new ClienteController();\n cliente = clienteController.consultar(orcamentocurso.getCliente());\n if (cliente!=null){\n parajTextField.setText(cliente.getEmail());\n }\n }\n }",
"public void verificarDatosConsola(Cliente cliente, List<Cuenta> listaCuentas) {\n\n int codigoCliente = cliente.getCodigo();\n\n System.out.println(\"Codigo: \"+cliente.getCodigo());\n System.out.println(\"Nombre: \"+cliente.getNombre());\n System.out.println(\"DPI: \"+cliente.getDPI());\n System.out.println(\"Direccion: \"+cliente.getDireccion());\n System.out.println(\"Sexo: \"+cliente.getSexo());\n System.out.println(\"Password: \"+cliente.getPassword());\n System.out.println(\"Tipo de Usuario: \"+ 3);\n\n System.out.println(\"Nacimiento: \"+cliente.getNacimiento());\n System.out.println(\"ArchivoDPI: \"+cliente.getDPIEscaneado());\n System.out.println(\"Estado: \"+cliente.isEstado());\n \n \n for (Cuenta cuenta : listaCuentas) {\n System.out.println(\"CUENTAS DEL CLIENTE\");\n System.out.println(\"Numero de Cuenta: \"+cuenta.getNoCuenta());\n System.out.println(\"Fecha de Creacion: \"+cuenta.getFechaCreacion());\n System.out.println(\"Saldo: \"+cuenta.getSaldo());\n System.out.println(\"Codigo del Dueño: \"+codigoCliente);\n \n }\n \n\n\n }",
"@Override\n\t\tpublic Client getClient(int idClient) {\n\t\t\treturn null;\n\t\t}",
"public List<Clientes> read(){\n Connection con = ConectionFactory.getConnection();\n PreparedStatement pst = null;\n ResultSet rs = null;\n \n List<Clientes> cliente = new ArrayList<>();\n \n try {\n pst = con.prepareStatement(\"SELECT * from clientes ORDER BY fantasia\");\n rs = pst.executeQuery();\n \n while (rs.next()) { \n Clientes clientes = new Clientes();\n clientes.setCodigo(rs.getInt(\"codigo\"));\n clientes.setFantasia(rs.getString(\"fantasia\"));\n clientes.setCep(rs.getString(\"cep\"));\n clientes.setUf(rs.getString(\"uf\"));\n clientes.setLogradouro(rs.getString(\"logradouro\"));\n clientes.setNr(rs.getString(\"nr\"));\n clientes.setCidade(rs.getString(\"cidade\"));\n clientes.setBairro(rs.getString(\"bairro\"));\n clientes.setContato(rs.getString(\"contato\"));\n clientes.setEmail(rs.getString(\"email\"));\n clientes.setFixo(rs.getString(\"fixo\"));\n clientes.setCelular(rs.getString(\"celular\"));\n clientes.setObs(rs.getString(\"obs\"));\n cliente.add(clientes); \n }\n } catch (SQLException ex) {\n \n }finally{\n ConectionFactory.closeConnection(con, pst, rs);\n }\n return cliente;\n}",
"@RequestMapping(value = \"/clients/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<Client> selectById(@PathVariable(\"id\") Long id) {\n\n\t\tClient client = clientService.selectById(id);\n\t\treturn new ResponseEntity<Client>(client, HttpStatus.OK);\n\t}",
"DetalleVenta buscarDetalleVentaPorId(Long id) throws Exception;",
"public AgregarClientes(Directorio directorio) {\n initComponents();\n this.directorio=directorio;\n \n \n }",
"public Cliente findByPrimaryKey(int idCliente) throws ClienteDaoException;",
"public String elimiinaClienteId(Long id){\n\t\tOptional <Cliente> optCliente = clienteRepository.findById(id);\n\t\tif(optCliente.isEmpty()){\n\t\t\tthrow new IllegalArgumentException(\"No se encontró el id del usuario\");\n\t\t}\n\t\tCliente cliente = optCliente.get();\n\t\t// Elimina sus tickets\n\t\tticketRepository.deleteAll(ticketRepository.findByClienteId(cliente.getId()));\n\t\t// Elimina el cliente\n\t\tcliente.setNegocio(null);\n\t\tclienteRepository.save(cliente);\n\t\tclienteRepository.delete(cliente);\n\t\t\n\t\treturn \"Se elimino el cliente con el id : \" + id;\n\t}",
"public java.lang.String getIdcliente() {\n return idcliente;\n }",
"public String buscarCliente(int cedulaCliente) {\n String mostrar = \"\";\n if (verificarCliente(cedulaCliente)) { //Verifica si el cliente a buscar existe o no, para entrar al for, o retornar un Strign vacio\n for (int i = 0; i < posicionActual; i++) { //Si el cliente existe procede a recorrer el vector.\n if (getCedulaCliente(i) == cedulaCliente) { //Pregunta si el cliente en la poscion actual, es el que se quiere mostrar\n mostrar += mostrarCliente(i); //almacena en el String la informacion del cliente en caso de qie la condicion anterior se cumpla\n }\n }\n }\n return mostrar; //Al final retorna la variable String vacia, si el cliente no existe, o con la informacion de este si esxiste\n }"
] | [
"0.8166449",
"0.7677907",
"0.7617981",
"0.76082724",
"0.7569471",
"0.7513811",
"0.73283404",
"0.72554016",
"0.7245662",
"0.71881",
"0.7165972",
"0.7100953",
"0.70952743",
"0.7038221",
"0.7034999",
"0.70278925",
"0.70083624",
"0.69941944",
"0.6976294",
"0.6927254",
"0.6884156",
"0.68218255",
"0.68185693",
"0.68069124",
"0.6797295",
"0.6795866",
"0.6730508",
"0.67290956",
"0.6711342",
"0.6702604",
"0.66963357",
"0.6693824",
"0.6680793",
"0.66807055",
"0.6671727",
"0.6651297",
"0.6650099",
"0.6595952",
"0.6590854",
"0.6587753",
"0.6587233",
"0.65804774",
"0.65734637",
"0.65261054",
"0.6523988",
"0.6522481",
"0.6501932",
"0.64999795",
"0.64966184",
"0.64929706",
"0.6489301",
"0.64810365",
"0.6475811",
"0.64678717",
"0.6466329",
"0.64662623",
"0.6462053",
"0.64617544",
"0.64587986",
"0.6452586",
"0.643632",
"0.642809",
"0.64229625",
"0.6417496",
"0.6408121",
"0.6407913",
"0.63996863",
"0.63938475",
"0.639247",
"0.6387523",
"0.63874626",
"0.6384027",
"0.63771945",
"0.63665473",
"0.63410294",
"0.6328233",
"0.63089085",
"0.6299349",
"0.6296179",
"0.62951994",
"0.6290295",
"0.62816024",
"0.62811804",
"0.62768316",
"0.62732804",
"0.62730956",
"0.62730354",
"0.62730354",
"0.6272657",
"0.6269318",
"0.6265772",
"0.6255127",
"0.6253079",
"0.62485045",
"0.6248084",
"0.6247455",
"0.6241449",
"0.6238741",
"0.62370247",
"0.6226505",
"0.6222906"
] | 0.0 | -1 |
This class was generated by Apache CXF 3.1.11 20170524T17:30:59.681Z Generated source version: 3.1.11 | @WebService(targetNamespace = "http://www.z2systems.com/schemas/neonws/", name = "MembershipService")
@XmlSeeAlso({com.z2systems.schemas.membership.ObjectFactory.class, com.z2systems.schemas.common.ObjectFactory.class, com.z2systems.schemas.account.ObjectFactory.class, com.z2systems.schemas.donation.ObjectFactory.class, com.z2systems.schemas.store.ObjectFactory.class, ObjectFactory.class, com.z2systems.schemas.event.ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface MembershipService {
@WebResult(name = "listMembershipsResponse", targetNamespace = "http://www.z2systems.com/schemas/neonws/", partName = "response")
@WebMethod
public com.z2systems.schemas.membership.ListMembershipsResponse listMemberships(
@WebParam(partName = "request", name = "listMembershipsRequest", targetNamespace = "http://www.z2systems.com/schemas/neonws/")
com.z2systems.schemas.membership.ListMembershipsRequest request
);
@WebResult(name = "retrieveMembershipStatsResponse", targetNamespace = "http://www.z2systems.com/schemas/neonws/", partName = "response")
@WebMethod
public com.z2systems.schemas.membership.RetrieveMembershipStatsResponse retrieveMembershipStats(
@WebParam(partName = "request", name = "retrieveMembershipStatsRequest", targetNamespace = "http://www.z2systems.com/schemas/neonws/")
com.z2systems.schemas.membership.RetrieveMembershipStatsRequest request
);
@WebResult(name = "listMembershipHistoryResponse", targetNamespace = "http://www.z2systems.com/schemas/neonws/", partName = "response")
@WebMethod
public com.z2systems.schemas.membership.ListMembershipHistoryResponse listMembershipHistory(
@WebParam(partName = "request", name = "listMembershipHistoryRequest", targetNamespace = "http://www.z2systems.com/schemas/neonws/")
com.z2systems.schemas.membership.ListMembershipHistoryRequest request
);
@WebResult(name = "listMembershipTermsResponse", targetNamespace = "http://www.z2systems.com/schemas/neonws/", partName = "response")
@WebMethod
public com.z2systems.schemas.membership.ListMembershipTermsResponse listMembershipTerms(
@WebParam(partName = "request", name = "listMembershipTermsRequest", targetNamespace = "http://www.z2systems.com/schemas/neonws/")
com.z2systems.schemas.membership.ListMembershipTermsRequest request
);
@WebResult(name = "addMembershipToAccountResponse", targetNamespace = "http://www.z2systems.com/schemas/neonws/", partName = "response")
@WebMethod
public com.z2systems.schemas.membership.AddMembershipToAccountResponse addMembershipToAccount(
@WebParam(partName = "request", name = "addMembershipToAccountRequest", targetNamespace = "http://www.z2systems.com/schemas/neonws/")
com.z2systems.schemas.membership.AddMembershipToAccountRequest request
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethod\")\n @ResponseWrapper(localName = \"serviceMethodResponse\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethodResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String serviceMethod();\n}",
"@WebService(targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", name = \"NotificationPort\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface NotificationPort {\n\n /**\n * Process a number of notifications.\n */\n @WebResult(name = \"Ack\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n @RequestWrapper(localName = \"notifications\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.Notifications\")\n @WebMethod\n @ResponseWrapper(localName = \"notificationsResponse\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\", className = \"com.barryku.cloud.cxf.NotificationsResponse\")\n public boolean notifications(\n @WebParam(name = \"OrganizationId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String organizationId,\n @WebParam(name = \"ActionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String actionId,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String sessionId,\n @WebParam(name = \"EnterpriseUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String enterpriseUrl,\n @WebParam(name = \"PartnerUrl\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.lang.String partnerUrl,\n @WebParam(name = \"Notification\", targetNamespace = \"http://soap.sforce.com/2005/09/outbound\")\n java.util.List<com.barryku.cloud.cxf.BookCNotification> notification\n );\n}",
"@WebService(targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", name = \"Baeldung\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Baeldung {\n\n @WebMethod\n @RequestWrapper(localName = \"helloStudent\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudent\")\n @ResponseWrapper(localName = \"helloStudentResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloStudentResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String helloStudent(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n com.uwefuchs.demo.soap.apachecxf.endpoint.Student arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n java.lang.String arg0\n );\n\n @WebMethod\n @RequestWrapper(localName = \"getStudents\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudents\")\n @ResponseWrapper(localName = \"getStudentsResponse\", targetNamespace = \"http://endpoint.apachecxf.soap.demo.uwefuchs.com/\", className = \"com.uwefuchs.demo.soap.apachecxf.endpoint.GetStudentsResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public com.uwefuchs.demo.soap.apachecxf.endpoint.StudentMap getStudents();\n}",
"@WebService(targetNamespace = \"http://interfaces.webService.xxdai.com/\", name = \"BaseInfoCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BaseInfoCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"alterBaseInfo\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"alterBaseInfoResponse\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfoResponse\")\n public java.lang.String alterBaseInfo(\n @WebParam(name = \"alterBaseInfoJson\", targetNamespace = \"\")\n java.lang.String alterBaseInfoJson\n );\n}",
"@WebService(name = \"HelloService\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface HelloService {\r\n\r\n\r\n /**\r\n * \r\n * @param name\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"say\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.Say\")\r\n @ResponseWrapper(localName = \"sayResponse\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.SayResponse\")\r\n public String say(\r\n @WebParam(name = \"name\", targetNamespace = \"\")\r\n String name);\r\n\r\n}",
"@WebService(name = \"CustomerSoapType\", targetNamespace = \"http://test.co.id/ws/customer/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerSoapType {\n\n\n /**\n * Request All Customer\n * \n * @return\n * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType\n */\n @WebMethod(operationName = \"GetAllCustomer\")\n @WebResult(name = \"GetAllCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public ListOfCustomerType getAllCustomer();\n\n /**\n * Insert Customer\n * \n * @param parameters\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"InsertCustomer\")\n @WebResult(name = \"InsertCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public String insertCustomer(\n @WebParam(name = \"InsertCustomer\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n CustomerType parameters);\n\n}",
"@WebService(wsdlLocation=\"https://salescloud-hostname/crmCommonSalesParties/AccountService?WSDL\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/\",\n name=\"AccountService\")\n@XmlSeeAlso(\n { ObjectFactory.class })\npublic interface AccountService\n{\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccountResponse\")\n @ResponseWrapper(localName=\"processCSAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountResponse\")\n @RequestWrapper(localName=\"processCSAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ProcessData processCSAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @RequestWrapper(localName=\"processCSAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountAsync\")\n @Oneway\n public void processCSAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHints/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHintsResponse\")\n @ResponseWrapper(localName=\"getDfltObjAttrHintsResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsResponse\")\n @RequestWrapper(localName=\"getDfltObjAttrHints\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHints\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ObjAttrHints getDfltObjAttrHints(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTime/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTimeResponse\")\n @ResponseWrapper(localName=\"getServiceLastUpdateTimeResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeResponse\")\n @RequestWrapper(localName=\"getServiceLastUpdateTime\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTime\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public XMLGregorianCalendar getServiceLastUpdateTime()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityList/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityListResponse\")\n @ResponseWrapper(localName=\"getEntityListResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListResponse\")\n @RequestWrapper(localName=\"getEntityList\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityList\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public List<ServiceViewInfo> getEntityList()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @RequestWrapper(localName=\"getEntityListAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListAsync\")\n @Oneway\n public void getEntityListAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @RequestWrapper(localName=\"getDfltObjAttrHintsAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsAsync\")\n @Oneway\n public void getDfltObjAttrHintsAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @RequestWrapper(localName=\"getServiceLastUpdateTimeAsync\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeAsync\")\n @Oneway\n public void getServiceLastUpdateTimeAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccountResponse\")\n @ResponseWrapper(localName=\"getAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountResponse\")\n @RequestWrapper(localName=\"getAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult getAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccountResponse\")\n @ResponseWrapper(localName=\"createAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountResponse\")\n @RequestWrapper(localName=\"createAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult createAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccountResponse\")\n @ResponseWrapper(localName=\"updateAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountResponse\")\n @RequestWrapper(localName=\"updateAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult updateAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccountResponse\")\n @ResponseWrapper(localName=\"deleteAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountResponse\")\n @RequestWrapper(localName=\"deleteAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public MethodResult deleteAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccountResponse\")\n @ResponseWrapper(localName=\"mergeAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountResponse\")\n @RequestWrapper(localName=\"mergeAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult mergeAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccountResponse\")\n @ResponseWrapper(localName=\"findAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountResponse\")\n @RequestWrapper(localName=\"findAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult findAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccountResponse\")\n @ResponseWrapper(localName=\"processAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountResponse\")\n @RequestWrapper(localName=\"processAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult processAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @RequestWrapper(localName=\"findAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountAsync\")\n @Oneway\n public void findAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @RequestWrapper(localName=\"updateAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountAsync\")\n @Oneway\n public void updateAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @RequestWrapper(localName=\"createAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountAsync\")\n @Oneway\n public void createAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @RequestWrapper(localName=\"mergeAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountAsync\")\n @Oneway\n public void mergeAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @RequestWrapper(localName=\"getAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountAsync\")\n @Oneway\n public void getAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @RequestWrapper(localName=\"processAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountAsync\")\n @Oneway\n public void processAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @RequestWrapper(localName=\"deleteAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountAsync\")\n @Oneway\n public void deleteAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n}",
"@WebService(targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", name = \"ZSDRFC_AMC_CONTRACT_VALIDATION\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface ZSDRFCAMCCONTRACTVALIDATION {\n\n @WebMethod(operationName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", action = \"urn:sap-com:document:sap:rfc:functions:ZSDRFC_AMC_CONTRACT_VALIDATION:ZSDRFC_AMC_CONTRACT_VALIDATIONRequest\")\n @RequestWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATION\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATION_Type\")\n @ResponseWrapper(localName = \"ZSDRFC_AMC_CONTRACT_VALIDATIONResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZSDRFCAMCCONTRACTVALIDATIONResponse\")\n public void zsdrfcAMCCONTRACTVALIDATION(\n @WebParam(name = \"CHASSIS_NO\", targetNamespace = \"\")\n java.lang.String chassisNO,\n @WebParam(name = \"CHASSIS_PL\", targetNamespace = \"\")\n java.lang.String chassisPL,\n @WebParam(name = \"CONTRACT_NO\", targetNamespace = \"\")\n java.lang.String contractNO,\n @WebParam(name = \"CRM_SALE_DATE\", targetNamespace = \"\")\n java.lang.String crmSALEDATE,\n @WebParam(mode = WebParam.Mode.INOUT, name = \"IT_AMC\", targetNamespace = \"\")\n javax.xml.ws.Holder<TABLEOFZSDAMCLINEITEM> itAMC,\n @WebParam(name = \"KMS\", targetNamespace = \"\")\n int kms,\n @WebParam(mode = WebParam.Mode.OUT, name = \"REMARKS\", targetNamespace = \"\")\n javax.xml.ws.Holder<java.lang.String> remarks\n );\n}",
"@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}",
"@WebService(name = \"zperson_communic\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZpersonCommunic {\n\n\n /**\n * \n * @param employeeId\n * @param lastnameM\n * @param fstnameM\n * @param telAts\n * @param orgtxt\n * @param job\n * @param orgUnit\n * @param jobtxt\n * @param checkCommunities\n * @param outTab\n * @return\n * returns test.Bapireturn\n */\n @WebMethod(operationName = \"ZPersonalSearch\")\n @WebResult(name = \"Return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZPersonalSearch\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearch\")\n @ResponseWrapper(localName = \"ZPersonalSearchResponse\", targetNamespace = \"urn:sap-com:document:sap:soap:functions:mc-style\", className = \"test.ZPersonalSearchResponse\")\n public Bapireturn zPersonalSearch(\n @WebParam(name = \"CheckCommunities\", targetNamespace = \"\")\n String checkCommunities,\n @WebParam(name = \"EmployeeId\", targetNamespace = \"\")\n String employeeId,\n @WebParam(name = \"FstnameM\", targetNamespace = \"\")\n String fstnameM,\n @WebParam(name = \"Job\", targetNamespace = \"\")\n String job,\n @WebParam(name = \"Jobtxt\", targetNamespace = \"\")\n String jobtxt,\n @WebParam(name = \"LastnameM\", targetNamespace = \"\")\n String lastnameM,\n @WebParam(name = \"OrgUnit\", targetNamespace = \"\")\n String orgUnit,\n @WebParam(name = \"Orgtxt\", targetNamespace = \"\")\n String orgtxt,\n @WebParam(name = \"OutTab\", targetNamespace = \"\", mode = WebParam.Mode.INOUT)\n Holder<TableOfZpernComm> outTab,\n @WebParam(name = \"TelAts\", targetNamespace = \"\")\n String telAts);\n\n}",
"@WebService(targetNamespace = \"http://webservice.question.xxdai.com/\", name = \"QuestionCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface QuestionCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveUseQuestionAnswer\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveUseQuestionAnswer\")\n @WebMethod\n @ResponseWrapper(localName = \"saveUseQuestionAnswerResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveUseQuestionAnswerResponse\")\n public java.lang.String saveUseQuestionAnswer(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryQuestionNaire\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionNaire\")\n @WebMethod\n @ResponseWrapper(localName = \"queryQuestionNaireResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionNaireResponse\")\n public java.lang.String queryQuestionNaire(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveQuestionUser\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveQuestionUser\")\n @WebMethod\n @ResponseWrapper(localName = \"saveQuestionUserResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.SaveQuestionUserResponse\")\n public java.lang.String saveQuestionUser(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryQuestion\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestion\")\n @WebMethod\n @ResponseWrapper(localName = \"queryQuestionResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryQuestionResponse\")\n public java.lang.String queryQuestion(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryNaireByCode\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryNaireByCode\")\n @WebMethod\n @ResponseWrapper(localName = \"queryNaireByCodeResponse\", targetNamespace = \"http://webservice.question.xxdai.com/\", className = \"com.xxdai.external.question.ws.QueryNaireByCodeResponse\")\n public java.lang.String queryNaireByCode(\n @WebParam(name = \"jsonstring\", targetNamespace = \"\")\n java.lang.String jsonstring\n );\n}",
"@WebService(targetNamespace = \"http://webservice.account.xxdai.com/\", name = \"AccountQueryCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface AccountQueryCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountLog2ByIdAndType\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLog2ByIdAndType\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountLog2ByIdAndTypeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLog2ByIdAndTypeResponse\")\n public java.lang.String selectAccountLog2ByIdAndType(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"selectMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectMoneyRecordResponse\")\n public java.lang.String selectMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountByIdAndType\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountByIdAndType\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountByIdAndTypeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountByIdAndTypeResponse\")\n public java.lang.String selectAccountByIdAndType(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"increaseAccountUsable\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.IncreaseAccountUsable\")\n @WebMethod\n @ResponseWrapper(localName = \"increaseAccountUsableResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.IncreaseAccountUsableResponse\")\n public java.lang.String increaseAccountUsable(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"counttMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CounttMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"counttMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CounttMoneyRecordResponse\")\n public java.lang.String counttMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"freezeAccount\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.FreezeAccount\")\n @WebMethod\n @ResponseWrapper(localName = \"freezeAccountResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.FreezeAccountResponse\")\n public java.lang.String freezeAccount(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"coinExchange\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CoinExchange\")\n @WebMethod\n @ResponseWrapper(localName = \"coinExchangeResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.CoinExchangeResponse\")\n public java.lang.String coinExchange(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectOverdueRepaymentByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectOverdueRepaymentByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectOverdueRepaymentByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectOverdueRepaymentByUserIdResponse\")\n public java.lang.String selectOverdueRepaymentByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccountLogSum\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountLogSum\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountLogSumResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountLogSumResponse\")\n public java.lang.String getAccountLogSum(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectUserAccountAndCoupon\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectUserAccountAndCoupon\")\n @WebMethod\n @ResponseWrapper(localName = \"selectUserAccountAndCouponResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectUserAccountAndCouponResponse\")\n public java.lang.String selectUserAccountAndCoupon(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectPageAccountMoneyRecord\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectPageAccountMoneyRecord\")\n @WebMethod\n @ResponseWrapper(localName = \"selectPageAccountMoneyRecordResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectPageAccountMoneyRecordResponse\")\n public java.lang.String selectPageAccountMoneyRecord(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectSixAccountLogByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectSixAccountLogByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectSixAccountLogByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectSixAccountLogByUserIdResponse\")\n public java.lang.String selectSixAccountLogByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"queryLevelLogList\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.QueryLevelLogList\")\n @WebMethod\n @ResponseWrapper(localName = \"queryLevelLogListResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.QueryLevelLogListResponse\")\n public java.lang.String queryLevelLogList(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getAccountSum\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountSum\")\n @WebMethod\n @ResponseWrapper(localName = \"getAccountSumResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.GetAccountSumResponse\")\n public java.lang.String getAccountSum(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"saveAccountLog\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SaveAccountLog\")\n @WebMethod\n @ResponseWrapper(localName = \"saveAccountLogResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SaveAccountLogResponse\")\n public java.lang.String saveAccountLog(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectAccountLogByUserId\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLogByUserId\")\n @WebMethod\n @ResponseWrapper(localName = \"selectAccountLogByUserIdResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectAccountLogByUserIdResponse\")\n public java.lang.String selectAccountLogByUserId(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"selectIsUserOverdue\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectIsUserOverdue\")\n @WebMethod\n @ResponseWrapper(localName = \"selectIsUserOverdueResponse\", targetNamespace = \"http://webservice.account.xxdai.com/\", className = \"com.xxdai.external.account.ws.SelectIsUserOverdueResponse\")\n public java.lang.String selectIsUserOverdue(\n @WebParam(name = \"param\", targetNamespace = \"\")\n java.lang.String param\n );\n}",
"@WebService(targetNamespace = \"http://tempuri.org/\", name = \"WebService1Soap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface WebService1Soap {\r\n\r\n @WebResult(name = \"SendMessageResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"SendMessage\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessage\")\r\n @WebMethod(operationName = \"SendMessage\", action = \"http://tempuri.org/SendMessage\")\r\n @ResponseWrapper(localName = \"SendMessageResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SendMessageResponse\")\r\n public java.lang.String sendMessage(\r\n @WebParam(name = \"strConnectorName\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strConnectorName,\r\n @WebParam(name = \"strDisServerHost\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strDisServerHost,\r\n @WebParam(name = \"strMessage\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessage,\r\n @WebParam(name = \"strMessageType\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageType,\r\n @WebParam(name = \"strMessageSchema\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strMessageSchema,\r\n @WebParam(name = \"strNull\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String strNull\r\n );\r\n}",
"@WebService(name = \"HelloWS\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HelloWS {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHello\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHello\")\n @ResponseWrapper(localName = \"getHelloResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloResponse\")\n public String getHello(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getHelloWithAuth\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuth\")\n @ResponseWrapper(localName = \"getHelloWithAuthResponse\", targetNamespace = \"http://ws.proxy.devwithimagination.com/\", className = \"com.devwithimagination.proxy.ws.one.GetHelloWithAuthResponse\")\n @Action(input = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthRequest\", output = \"http://ws.proxy.devwithimagination.com/HelloWS/getHelloWithAuthResponse\")\n public String getHelloWithAuth(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n}",
"@WebService(targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", name = \"BillingProcessWebServices\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BillingProcessWebServices {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"billingProcess\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcess\")\n @WebMethod\n @ResponseWrapper(localName = \"billingProcessResponse\", targetNamespace = \"http://ws.integration.pizzashack.nz.co/\", className = \"co.nz.pizzashack.client.integration.ws.client.stub.BillingProcessResponse\")\n public co.nz.pizzashack.client.integration.ws.client.stub.BillingResponse billingProcess(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n co.nz.pizzashack.client.integration.ws.client.stub.BillingDto arg0\n ) throws FaultMessage;\n}",
"@WebService(name = \"DocumentValidationSchemaService\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\")\n@XmlSeeAlso({\n pl.softfly.integ.doc.entity.ObjectFactory.class,\n pl.softfly.integ.endpoint.entity.ObjectFactory.class,\n pl.softfly.integ.entity.ObjectFactory.class,\n pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ObjectFactory.class,\n pl.softfly.integ.shipment.entity.ObjectFactory.class\n})\npublic interface DocumentValidationSchemaService {\n\n\n /**\n * @param arg0\n * @return returns pl.softfly.integ.doc.entity.DocumentHeader\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ValidateResponse\")\n public DocumentHeader validate(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n DocumentHeader arg0);\n\n}",
"@WebService(name = \"wsFoo\", targetNamespace = \"http://helloworldws.yv84.me/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WsFoo {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEcho\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEcho\")\n @ResponseWrapper(localName = \"getEchoResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetEchoResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getEchoRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getEchoResponse\")\n public String getEcho(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://helloworldws.yv84.me/\", className = \"me.yv84.helloworldws.GetListResponse\")\n @Action(input = \"http://helloworldws.yv84.me/wsFoo/getListRequest\", output = \"http://helloworldws.yv84.me/wsFoo/getListResponse\")\n public List<String> getList();\n\n}",
"@WebService(targetNamespace = \"http://iso8583.org/payload\", name = \"CoreServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.team5.bank.core.server.service.model.xsd.ObjectFactory.class})\npublic interface CoreServicePortType {\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getTransactionHistory\", output = \"urn:getTransactionHistoryResponse\")\n @RequestWrapper(localName = \"getTransactionHistory\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistory\")\n @WebMethod(action = \"urn:getTransactionHistory\")\n @ResponseWrapper(localName = \"getTransactionHistoryResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistoryResponse\")\n public java.util.List<org.team5.bank.core.server.service.model.xsd.Transaction> getTransactionHistory(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getBalance\", output = \"urn:getBalanceResponse\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalance\")\n @WebMethod(action = \"urn:getBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalanceResponse\")\n public java.lang.String getBalance(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getAccount\", output = \"urn:getAccountResponse\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccount\")\n @WebMethod(action = \"urn:getAccount\")\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccountResponse\")\n public org.team5.bank.core.server.service.model.xsd.Account getAccount(\n @WebParam(name = \"userId\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Long userId\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:withdraw\", output = \"urn:withdrawResponse\")\n @RequestWrapper(localName = \"withdraw\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Withdraw\")\n @WebMethod(action = \"urn:withdraw\")\n @ResponseWrapper(localName = \"withdrawResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.WithdrawResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse withdraw(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:fundTransfer\", output = \"urn:fundTransferResponse\")\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransfer\")\n @WebMethod(action = \"urn:fundTransfer\")\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransferResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse fundTransfer(\n @WebParam(name = \"from\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String from,\n @WebParam(name = \"to\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String to,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:deposit\", output = \"urn:depositResponse\")\n @RequestWrapper(localName = \"deposit\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Deposit\")\n @WebMethod(action = \"urn:deposit\")\n @ResponseWrapper(localName = \"depositResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.DepositResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse deposit(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n}",
"@WebService(name = \"ZWSVUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\r\npublic interface ZWSVURUPDSTATUS {\r\n\r\n\r\n /**\r\n * \r\n * @param iNROLIQ\r\n * @param eRETURN\r\n * @param iESTADO\r\n * @param eMESSAGE\r\n */\r\n @WebMethod(operationName = \"ZPSCDFM_VUR_UPDSTATUS\")\r\n @RequestWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUS\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUS\")\r\n @ResponseWrapper(localName = \"ZPSCDFM_VUR_UPDSTATUSResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"co.com.realtech.mariner.model.ejb.ws.sap.mappers.vur_updstatus.ZPSCDFMVURUPDSTATUSResponse\")\r\n public void zpscdfmVURUPDSTATUS(\r\n @WebParam(name = \"I_ESTADO\", targetNamespace = \"\")\r\n String iESTADO,\r\n @WebParam(name = \"I_NROLIQ\", targetNamespace = \"\")\r\n String iNROLIQ,\r\n @WebParam(name = \"E_MESSAGE\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<String> eMESSAGE,\r\n @WebParam(name = \"E_RETURN\", targetNamespace = \"\", mode = WebParam.Mode.OUT)\r\n Holder<Integer> eRETURN);\r\n\r\n}",
"@WebService(name = \"infra_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface InfraPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.IncidentRegisterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"incidentRegisterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public IncidentRegisterResponse incidentRegister(\n @WebParam(name = \"incidentRegisterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n IncidentRegisterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.DeviceStateCheckResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"deviceStateCheckResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public DeviceStateCheckResponse deviceStateCheck(\n @WebParam(name = \"deviceStateCheckRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n DeviceStateCheckRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListParameterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listParameterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListParameterResponse listParameter(\n @WebParam(name = \"listParameterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListParameterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListServiceResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listServiceResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListServiceResponse listService(\n @WebParam(name = \"listServiceRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListServiceRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeeResponse listFee(\n @WebParam(name = \"listFeeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListOfficeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listOfficeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListOfficeResponse listOffice(\n @WebParam(name = \"listOfficeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListOfficeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListSWPResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listSWPResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListSWPResponse listSWP(\n @WebParam(name = \"listSWPRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListSWPRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListCountryResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listCountryResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListCountryResponse listCountry(\n @WebParam(name = \"listCountryRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListCountryRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListDeviceInfoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listDeviceInfoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListDeviceInfoResponse listDeviceInfo(\n @WebParam(name = \"listDeviceInfoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListDeviceInfoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeDevicesResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeDevicesResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeDevicesResponse listFeDevices(\n @WebParam(name = \"listFeDevicesRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeDevicesRequest parameters)\n throws BloxFaultMessage\n ;\n\n}",
"@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}",
"@WebService(name = \"ProfilePort\", targetNamespace = \"http://ws.clkio.com\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n com.clkio.schemas.ObjectFactory.class,\n com.clkio.schemas.adjusting.ObjectFactory.class,\n com.clkio.schemas.clockinclockout.ObjectFactory.class,\n com.clkio.schemas.common.ObjectFactory.class,\n com.clkio.schemas.day.ObjectFactory.class,\n com.clkio.schemas.email.ObjectFactory.class,\n com.clkio.schemas.login.ObjectFactory.class,\n com.clkio.schemas.manualentering.ObjectFactory.class,\n com.clkio.schemas.profile.ObjectFactory.class,\n com.clkio.schemas.reason.ObjectFactory.class,\n com.clkio.schemas.resetpassword.ObjectFactory.class,\n com.clkio.schemas.timecard.ObjectFactory.class,\n com.clkio.schemas.user.ObjectFactory.class\n})\npublic interface ProfilePort {\n\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.profile.ListProfileResponse\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"listProfileResponse\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ListProfileResponse list(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"listProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n ListProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.ResponseCreated\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"responseCreated\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public ResponseCreated insert(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"insertProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n InsertProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response update(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"updateProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n UpdateProfileRequest request)\n throws ResponseException\n ;\n\n /**\n * \n * @param request\n * @param clkioLoginCode\n * @return\n * returns com.clkio.schemas.common.Response\n * @throws ResponseException\n */\n @WebMethod\n @WebResult(name = \"response\", targetNamespace = \"http://schemas.clkio.com\", partName = \"result\")\n public Response delete(\n @WebParam(name = \"clkioLoginCode\", targetNamespace = \"http://schemas.clkio.com\", header = true, partName = \"clkioLoginCode\")\n String clkioLoginCode,\n @WebParam(name = \"deleteProfileRequest\", targetNamespace = \"http://schemas.clkio.com\", partName = \"request\")\n DeleteProfileRequest request)\n throws ResponseException\n ;\n\n}",
"@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}",
"@WebService(name = \"GetAllProductsSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetAllProductsSoap {\n\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetAllProductsList\", action = \"http://tempuri.org/GetAllProductsList\")\n @WebResult(name = \"GetAllProductsListResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetAllProductsList\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsList\")\n @ResponseWrapper(localName = \"GetAllProductsListResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAllProductsListResponse\")\n public ArrayOfProductClass getAllProductsList();\n\n /**\n * \n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByServiceID\", action = \"http://tempuri.org/GetProductsByServiceID\")\n @WebResult(name = \"GetProductsByServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceID\")\n @ResponseWrapper(localName = \"GetProductsByServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByServiceIDResponse\")\n public ArrayOfProductClass getProductsByServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid);\n\n /**\n * \n * @param zip\n * @param serviceid\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetProductsByZipAndServiceID\", action = \"http://tempuri.org/GetProductsByZipAndServiceID\")\n @WebResult(name = \"GetProductsByZipAndServiceIDResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductsByZipAndServiceID\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceID\")\n @ResponseWrapper(localName = \"GetProductsByZipAndServiceIDResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductsByZipAndServiceIDResponse\")\n public ArrayOfProductClass getProductsByZipAndServiceID(\n @WebParam(name = \"serviceid\", targetNamespace = \"http://tempuri.org/\")\n String serviceid,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @param zip\n * @param stateCode\n * @return\n * returns org.tempuri.ArrayOfProductClass\n */\n @WebMethod(operationName = \"GetEnterpriseProducts\", action = \"http://tempuri.org/GetEnterpriseProducts\")\n @WebResult(name = \"GetEnterpriseProductsResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetEnterpriseProducts\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProducts\")\n @ResponseWrapper(localName = \"GetEnterpriseProductsResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetEnterpriseProductsResponse\")\n public ArrayOfProductClass getEnterpriseProducts(\n @WebParam(name = \"state_code\", targetNamespace = \"http://tempuri.org/\")\n String stateCode,\n @WebParam(name = \"zip\", targetNamespace = \"http://tempuri.org/\")\n int zip);\n\n /**\n * \n * @return\n * returns org.tempuri.ArrayOfProductRate\n */\n @WebMethod(operationName = \"GetProductRates\", action = \"http://tempuri.org/GetProductRates\")\n @WebResult(name = \"GetProductRatesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"GetProductRates\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRates\")\n @ResponseWrapper(localName = \"GetProductRatesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetProductRatesResponse\")\n public ArrayOfProductRate getProductRates();\n\n}",
"@WebService(targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", name = \"TestJaxWs\")\n@XmlSeeAlso({ObjectFactory.class})\n//@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)\n@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) //28.12.2018 forum advice\npublic interface TestJaxWs {\n\n @WebMethod(operationName = \"jaxWsTest1\", action = \"http://sap.com/xi/WebService/soap1.1\")\n @RequestWrapper(localName = \"jaxWsTest1\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1\")\n @ResponseWrapper(localName = \"jaxWsTest1Response\", targetNamespace = \"http://esb.z-t-z.ru/Integration/SAP\", className = \"com.example.sample.JaxWsTest1Response\")\n //@WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String jaxWsTest1(\n @WebParam(name = \"information\", targetNamespace = \"\")\n java.lang.String information,\n @WebParam(name = \"count\", targetNamespace = \"\")\n int count\n //@WebParam(name=\"jaxWsTest1\", targetNamespace = \"\")\n //JaxWsTest1 jaxWsTest1\n ) throws UserDefinedException;\n}",
"@WebService(targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", name = \"MDMTableConditionDataNew\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface MDMTableConditionDataNew {\n\n @WebMethod(action = \"process\")\n @RequestWrapper(localName = \"process\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.Process\")\n @ResponseWrapper(localName = \"processResponse\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\", className = \"com.microfar.ProcessResponse\")\n public void process(\n\n @WebParam(name = \"IN_SYS_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inSYSNAME,\n @WebParam(name = \"IN_MASTER_TYPE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inMASTERTYPE,\n @WebParam(name = \"IN_TABLE_NAME\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n String inTABLENAME,\n @WebParam(name = \"IN_FIELDS_VALUE_TABLE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n HAIERMDMFIELDSVALUETABLE inFIELDSVALUETABLE,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RESULT\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRESULT,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETMSG\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETMSG,\n @WebParam(mode = WebParam.Mode.OUT, name = \"OUT_RETCODE\", targetNamespace = \"http://xmlns.oracle.com/Interface/MDMTableConditionDataNew/MDMTableConditionDataNew\")\n javax.xml.ws.Holder<String> outRETCODE\n );\n}",
"@WebService(name = \"memberWs\", targetNamespace = \"http://webservice.cereme.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MemberWs {\r\n\r\n\r\n /**\r\n * \r\n */\r\n @WebMethod\r\n @RequestWrapper(localName = \"init\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.Init\")\r\n @ResponseWrapper(localName = \"initResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.InitResponse\")\r\n public void init();\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<org.cereme.digital.library.clientws.Member>\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findAll\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAll\")\r\n @ResponseWrapper(localName = \"findAllResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindAllResponse\")\r\n public List<Member> findAll();\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns org.cereme.digital.library.clientws.Member\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"findByUsername\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsername\")\r\n @ResponseWrapper(localName = \"findByUsernameResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.FindByUsernameResponse\")\r\n public Member findByUsername(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0);\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"updateMember\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMember\")\r\n @ResponseWrapper(localName = \"updateMemberResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.UpdateMemberResponse\")\r\n public String updateMember(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Member arg0);\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @return\r\n * returns boolean\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"isValidUser\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUser\")\r\n @ResponseWrapper(localName = \"isValidUserResponse\", targetNamespace = \"http://webservice.cereme.org/\", className = \"org.cereme.digital.library.clientws.IsValidUserResponse\")\r\n public boolean isValidUser(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", targetNamespace = \"\")\r\n String arg1);\r\n\r\n}",
"@WebService(targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/requester\", name = \"ConnectionRequesterPort\")\n@XmlSeeAlso({net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.ObjectFactory.class, net.es.nsi.lib.soap.gen.saml.assertion.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmlenc.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmldsig.ObjectFactory.class})\npublic interface ConnectionRequesterPort {\n\n /**\n * This reserveFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a reserve failure. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveFailed\")\n @RequestWrapper(localName = \"reserveFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This querySummaryConfirmed message is sent from the target NSA to\n * requesting NSA as an indication of a successful querySummary\n * operation. This is in response to an original querySummary request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/querySummaryConfirmed\")\n @RequestWrapper(localName = \"querySummaryConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void querySummaryConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This provisionConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful provision operation.\n * This is in response to an original provision request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/provisionConfirmed\")\n @RequestWrapper(localName = \"provisionConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void provisionConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * The error message is sent from a Provider NSA to Requester\n * NSA as an indication of the occurence of an error condition.\n * This is in response to an original request from the associated\n * Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This terminateConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful terminate operation.\n * This is in response to an original terminate request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/terminateConfirmed\")\n @RequestWrapper(localName = \"terminateConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void terminateConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This releaseConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful release operation.\n * This is in response to an original release request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/releaseConfirmed\")\n @RequestWrapper(localName = \"releaseConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void releaseConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous error message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/dataPlaneStateChange\")\n @RequestWrapper(localName = \"dataPlaneStateChange\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStateChangeRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void dataPlaneStateChange(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"dataPlaneStatus\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStatusType dataPlaneStatus,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveAbortConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveAbort.\n * This is in response to an original reserveAbort request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveAbortConfirmed\")\n @RequestWrapper(localName = \"reserveAbortConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveAbortConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/messageDeliveryTimeout\")\n @RequestWrapper(localName = \"messageDeliveryTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.MessageDeliveryTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void messageDeliveryTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"correlationId\", targetNamespace = \"\")\n java.lang.String correlationId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a modify failure. This\n * is in response to an original modify request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitFailed\")\n @RequestWrapper(localName = \"reserveCommitFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryNotificationConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryNotification\n * operation. This is in response to an original queryNotification request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryNotificationConfirmed\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n @WebResult(name = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", partName = \"acknowledgment\")\n public net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType queryNotificationConfirmed(\n @WebParam(partName = \"queryNotificationConfirmed\", name = \"queryNotificationConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryNotificationConfirmedType queryNotificationConfirmed,\n @WebParam(partName = \"header\", mode = WebParam.Mode.INOUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryResultConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryResult operation.\n * This is in response to an original queryResult request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryResultConfirmed\")\n @RequestWrapper(localName = \"queryResultConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryResultConfirmed(\n @WebParam(name = \"result\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultResponseType> result,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveCommit request.\n * This is in response to an original reserveCommit request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitConfirmed\")\n @RequestWrapper(localName = \"reserveCommitConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveTimeout\")\n @RequestWrapper(localName = \"reserveTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"timeoutValue\", targetNamespace = \"\")\n int timeoutValue,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reservation. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveConfirmed\")\n @RequestWrapper(localName = \"reserveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"globalReservationId\", targetNamespace = \"\")\n java.lang.String globalReservationId,\n @WebParam(name = \"description\", targetNamespace = \"\")\n java.lang.String description,\n @WebParam(name = \"criteria\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReservationConfirmCriteriaType criteria,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryRecursiveConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryRecursive\n * operation. This is in response to an original queryRecursive request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryRecursiveConfirmed\")\n @RequestWrapper(localName = \"queryRecursiveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryRecursiveConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n}",
"@WebService(name = \"CardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CardWS {\n\n\n /**\n * \n * @param plastic\n * @param fechaCorte\n * @param fechaAsignacion\n * @param client\n * @param canal\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"assignCardToClientWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWS\")\n @ResponseWrapper(localName = \"assignCardToClientWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.AssignCardToClientWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/assignCardToClientWSResponse\")\n public RespuestaDTO assignCardToClientWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"plastic\", targetNamespace = \"\")\n Plastic plastic,\n @WebParam(name = \"fechaCorte\", targetNamespace = \"\")\n String fechaCorte,\n @WebParam(name = \"fechaAsignacion\", targetNamespace = \"\")\n String fechaAsignacion,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param client\n * @param canal\n * @param status\n * @return\n * returns com.cbp1.ws.cbp.service.RespuestaDTO\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"cancelCardWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWS\")\n @ResponseWrapper(localName = \"cancelCardWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.CancelCardWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/cancelCardWSResponse\")\n public RespuestaDTO cancelCardWS(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"status\", targetNamespace = \"\")\n String status,\n @WebParam(name = \"canal\", targetNamespace = \"\")\n String canal);\n\n /**\n * \n * @param plasticNumber\n * @return\n * returns com.cbp1.ws.cbp.service.Plastic\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"consultPlasticByNumberWS\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWS\")\n @ResponseWrapper(localName = \"consultPlasticByNumberWSResponse\", targetNamespace = \"http://service.cbp.ws.cbp1.com/\", className = \"com.cbp1.ws.cbp.service.ConsultPlasticByNumberWSResponse\")\n @Action(input = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSRequest\", output = \"http://service.cbp.ws.cbp1.com/CardWS/consultPlasticByNumberWSResponse\")\n public Plastic consultPlasticByNumberWS(\n @WebParam(name = \"plasticNumber\", targetNamespace = \"\")\n String plasticNumber);\n\n}",
"@WebService(name = \"SharesBrokeringSystem\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharesBrokeringSystem {\n\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"sellShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SellShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/sellShares\")\n public void sellShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"companyList\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyList\")\n @ResponseWrapper(localName = \"companyListResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.CompanyListResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/companyListResponse\")\n public List<Company> companyList();\n\n /**\n * \n * @param company\n * @return\n * returns org.me.sharesbrokeringsystem.Company\n * @throws CertificateException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"moreCompanyInfo\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfo\")\n @ResponseWrapper(localName = \"moreCompanyInfoResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.MoreCompanyInfoResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfoResponse\", fault = {\n @FaultAction(className = CertificateException_Exception.class, value = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/moreCompanyInfo/Fault/CertificateException\")\n })\n public Company moreCompanyInfo(\n @WebParam(name = \"_company\", targetNamespace = \"\")\n Company company)\n throws CertificateException_Exception\n ;\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns org.me.sharesbrokeringsystem.Client\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logIn\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogIn\")\n @ResponseWrapper(localName = \"logInResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogInResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logInResponse\")\n public Client logIn(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param currentTrades\n * @return\n * returns org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompanies\")\n @ResponseWrapper(localName = \"updateCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.UpdateCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/updateCompaniesResponse\")\n public org.me.sharesbrokeringsystem.UpdateCompaniesResponse.Return updateCompanies(\n @WebParam(name = \"_currentTrades\", targetNamespace = \"\")\n org.me.sharesbrokeringsystem.UpdateCompanies.CurrentTrades currentTrades);\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"signUp\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUp\")\n @ResponseWrapper(localName = \"signUpResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.SignUpResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/signUpResponse\")\n public int signUp(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n /**\n * \n * @param client\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"logOut\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOut\")\n @ResponseWrapper(localName = \"logOutResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.LogOutResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/logOutResponse\")\n public int logOut(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client);\n\n /**\n * \n * @param amount\n * @param client\n * @param currency\n * @return\n * returns double\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"depositAmount\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmount\")\n @ResponseWrapper(localName = \"depositAmountResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.DepositAmountResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/depositAmountResponse\")\n public double depositAmount(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"amount\", targetNamespace = \"\")\n double amount,\n @WebParam(name = \"currency\", targetNamespace = \"\")\n String currency);\n\n /**\n * \n * @param volume\n * @param client\n * @param company\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"buyShares\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.BuyShares\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/buyShares\")\n public void buyShares(\n @WebParam(name = \"client\", targetNamespace = \"\")\n Client client,\n @WebParam(name = \"company\", targetNamespace = \"\")\n Company company,\n @WebParam(name = \"volume\", targetNamespace = \"\")\n int volume);\n\n /**\n * \n * @return\n * returns java.util.List<org.me.sharesbrokeringsystem.Company>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCompanies\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompanies\")\n @ResponseWrapper(localName = \"getCompaniesResponse\", targetNamespace = \"http://sharesbrokeringsystem.me.org/\", className = \"org.me.sharesbrokeringsystem.GetCompaniesResponse\")\n @Action(input = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesRequest\", output = \"http://sharesbrokeringsystem.me.org/SharesBrokeringSystem/getCompaniesResponse\")\n public List<Company> getCompanies();\n\n}",
"@WebService(name = \"Repositorio\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Repositorio {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaEstatusComprobante\n * @throws RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"EstatusComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/EstatusComprobante\")\n @WebResult(name = \"RespuestaEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaEstatusComprobante estatusComprobante(\n @WebParam(name = \"SolicitudEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudEstatusComprobante parameters)\n throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage, RepositorioEstatusComprobanteFallaSesionFaultFaultMessage, RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerComprobante\n * @throws RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaSesionFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerComprobante\")\n @WebResult(name = \"RespuestaObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerComprobante obtenerComprobante(\n @WebParam(name = \"SolicitudObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerComprobante parameters)\n throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage, RepositorioObtenerComprobanteFallaSesionFaultFaultMessage, RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaCancelaComprobante\n * @throws RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"CancelaComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/CancelaComprobante\")\n @WebResult(name = \"RespuestaCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaCancelaComprobante cancelaComprobante(\n @WebParam(name = \"SolicitudCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudCancelaComprobante parameters)\n throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage, RepositorioCancelaComprobanteFallaSesionFaultFaultMessage, RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerQR\n * @throws RepositorioObtenerQRFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaSesionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerQR\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerQR\")\n @WebResult(name = \"RespuestaObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerQR obtenerQR(\n @WebParam(name = \"SolicitudObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerQR parameters)\n throws RepositorioObtenerQRFallaServicioFaultFaultMessage, RepositorioObtenerQRFallaSesionFaultFaultMessage, RepositorioObtenerQRFallaValidacionFaultFaultMessage\n ;\n\n}",
"@WebService(targetNamespace = \"http://service.cxf.rain6.com/\", name = \"TestWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface TestWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"selectByPrimaryKey\", targetNamespace = \"http://service.cxf.rain6.com/\", className = \"com.rain6.cxf.service.SelectByPrimaryKey\")\n @ResponseWrapper(localName = \"selectByPrimaryKeyResponse\", targetNamespace = \"http://service.cxf.rain6.com/\", className = \"com.rain6.cxf.service.SelectByPrimaryKeyResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public Lawyer selectByPrimaryKey(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0\n );\n}",
"public sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse helloAuthenticated(\n\n sample.ws.HelloWorldWSStub.HelloAuthenticated helloAuthenticated8)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"helloAuthenticated\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n helloAuthenticated8,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"helloAuthenticated\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.HelloAuthenticatedResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }",
"@WebService(name = \"InformacionClientePort\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface InformacionClientePort {\n\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.ListaCLienteType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/consultarClientes\")\n @WebResult(name = \"consultarClientesRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public ListaCLienteType consultarClientes(@WebParam(name = \"consultarClientesRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.MoraType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/clientePoseeMora\")\n @WebResult(name = \"clientePoseeMoraRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public MoraType clientePoseeMora(@WebParam(name = \"clientePoseeMoraRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n}",
"public sample.ws.HelloWorldWSStub.HelloResponse hello(\n\n sample.ws.HelloWorldWSStub.Hello hello4)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"hello\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n hello4,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"hello\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.HelloResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.HelloResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }",
"@WebService(wsdlLocation=\"https://jcs.my-oraclecloudapps.com/HealthCare/HealthCarePort?WSDL\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", name=\"HealthCare\")\n@XmlSeeAlso(\n { com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.ObjectFactory.class })\npublic interface HealthCare\n{\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupResponse\")\n @ResponseWrapper(localName=\"isMedicationReadyToPickupResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickupResponse\")\n @RequestWrapper(localName=\"isMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickup\")\n @WebResult(targetNamespace=\"\")\n public boolean isMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusResponse\")\n @ResponseWrapper(localName=\"requestOrderStatusResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatusResponse\")\n @RequestWrapper(localName=\"requestOrderStatus\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatus\")\n @WebResult(targetNamespace=\"\")\n public String requestOrderStatus(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/setMedicationReadyToPickup\")\n @RequestWrapper(localName=\"setMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.SetMedicationReadyToPickup\")\n @Oneway\n public void setMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionResponse\")\n @ResponseWrapper(localName=\"loadPrescriptionResponse\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescriptionResponse\")\n @RequestWrapper(localName=\"loadPrescription\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescription\")\n @WebResult(targetNamespace=\"\")\n public String loadPrescription(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n}",
"@WebService(targetNamespace = \"http://jaxws.intergrupo.com.co/\", name = \"InterfaceWebService\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface InterfaceWebService {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoReportado\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportado\")\r\n @WebMethod(action = \"urn:vehiculoReportado\")\r\n @ResponseWrapper(localName = \"vehiculoReportadoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoReportadoResponse\")\r\n public boolean vehiculoReportado(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"saludo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.Saludo\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"saludoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.SaludoResponse\")\r\n public java.lang.String saludo(\r\n @WebParam(name = \"nombre\", targetNamespace = \"\")\r\n java.lang.String nombre\r\n );\r\n\r\n @WebResult(name = \"vehiculo\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"consultarVehiculo\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculo\")\r\n @WebMethod(action = \"urn:consultarVehiculo\")\r\n @ResponseWrapper(localName = \"consultarVehiculoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.ConsultarVehiculoResponse\")\r\n public co.com.intergrupo.cxf.Vehiculo consultarVehiculo(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"vehiculoAlDiaConImpuesto\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuesto\")\r\n @WebMethod(action = \"urn:vehiculoAlDiaConImpuesto\")\r\n @ResponseWrapper(localName = \"vehiculoAlDiaConImpuestoResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.VehiculoAlDiaConImpuestoResponse\")\r\n public boolean vehiculoAlDiaConImpuesto(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"registradoRunt\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRunt\")\r\n @WebMethod(action = \"urn:registradoRunt\")\r\n @ResponseWrapper(localName = \"registradoRuntResponse\", targetNamespace = \"http://jaxws.intergrupo.com.co/\", className = \"co.com.intergrupo.cxf.RegistradoRuntResponse\")\r\n public boolean registradoRunt(\r\n @WebParam(name = \"placa\", targetNamespace = \"\")\r\n java.lang.String placa\r\n );\r\n}",
"@WebService(targetNamespace = \"http://demo.grails.org/\", name = \"CustomerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CustomerService {\n\n @WebResult(name = \"Customer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"GetCustomer\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.GetCustomer\")\n @WebMethod(operationName = \"GetCustomer\")\n @ResponseWrapper(localName = \"GetCustomerResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.GetCustomerResponse\")\n public org.grails.demo.soap.customer.Customer getCustomer(\n @WebParam(name = \"CustomerId\", targetNamespace = \"\")\n int customerId,\n @WebParam(name = \"FirstName\", targetNamespace = \"\")\n java.lang.String firstName\n );\n\n @WebResult(name = \"Customers\", targetNamespace = \"\")\n @RequestWrapper(localName = \"GetCustomers\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.GetCustomers\")\n @WebMethod(operationName = \"GetCustomers\")\n @ResponseWrapper(localName = \"GetCustomersResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.GetCustomersResponse\")\n public java.util.List<org.grails.demo.soap.customer.Customer> getCustomers();\n\n @WebResult(name = \"Customer\", targetNamespace = \"\")\n @RequestWrapper(localName = \"MakePayment\", targetNamespace = \"http://demo.grails.org/\", className = \"org.grails.demo.soap.customer.MakePayment\")\n @WebMethod(operationName = \"MakePayment\")\n @ResponseWrapper(localName = \"MakePaymentResponse\", targetNamespace = \"http://demo.grails.org\", className = \"org.grails.demo.soap.customer.MakePaymentResponse\")\n public org.grails.demo.soap.customer.Customer makePayment(\n @WebParam(name = \"CustomerId\", targetNamespace = \"\")\n int customerId,\n @WebParam(name = \"PaymentDate\", targetNamespace = \"\")\n java.util.Date paymentDate,\n @WebParam(name = \"PaymentAmount\", targetNamespace = \"\")\n java.lang.Double paymentAmount\n );\n}",
"@WebService(targetNamespace = \"http://ws.jinouts.org/\", name = \"AndProxyClientRespTestWS\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface AndProxyClientRespTestWS {\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testPrimitiveResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testPrimitiveResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestPrimitiveResponseResponse\")\r\n public java.lang.String testPrimitiveResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user,\r\n @WebParam(name = \"pass\", targetNamespace = \"\")\r\n java.lang.String pass\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestComplexResponseObjectResponse\")\r\n public org.jinouts.ws.TestComplexResponse testComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListResponseResponse\")\r\n public java.util.List<java.lang.String> testListResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testDateResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testDateResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestDateResponseResponse\")\r\n public javax.xml.datatype.XMLGregorianCalendar testDateResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfComplexResponseObject\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObject\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfComplexResponseObjectResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfComplexResponseObjectResponse\")\r\n public java.util.List<org.jinouts.ws.TestComplexResponse> testListOfComplexResponseObject(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testArrayResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testArrayResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestArrayResponseResponse\")\r\n public java.util.List<java.lang.String> testArrayResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"testListOfObjResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponse\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"testListOfObjResponseResponse\", targetNamespace = \"http://ws.jinouts.org/\", className = \"org.jinouts.ws.TestListOfObjResponseResponse\")\r\n public java.util.List<org.jinouts.ws.MbrDetail> testListOfObjResponse(\r\n @WebParam(name = \"user\", targetNamespace = \"\")\r\n java.lang.String user\r\n );\r\n}",
"@WebService(name = \"ConfigurationService\", targetNamespace = \"http://ws.coverity.com/v7\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ConfigurationService {\n\n\n /**\n * \n * @param message\n * @param usernames\n * @param subject\n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"notify\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.Notify\")\n @ResponseWrapper(localName = \"notifyResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.NotifyResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/notifyRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/notifyResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/notify/Fault/CovRemoteServiceException\")\n })\n public List<String> notify(\n @WebParam(name = \"usernames\", targetNamespace = \"\")\n List<String> usernames,\n @WebParam(name = \"subject\", targetNamespace = \"\")\n String subject,\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.AttributeDefinitionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttributes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributes\")\n @ResponseWrapper(localName = \"getAttributesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesResponse\")\n public List<AttributeDefinitionDataObj> getAttributes();\n\n /**\n * \n * @param attributeDefinitionId\n * @return\n * returns com.coverity.ws.v7.AttributeDefinitionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttribute\")\n @ResponseWrapper(localName = \"getAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAttribute/Fault/CovRemoteServiceException\")\n })\n public AttributeDefinitionDataObj getAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.VersionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersionResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getVersionRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getVersionResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getVersion/Fault/CovRemoteServiceException\")\n })\n public VersionDataObj getVersion()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.GroupsPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroups\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroups\")\n @ResponseWrapper(localName = \"getGroupsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroups/Fault/CovRemoteServiceException\")\n })\n public GroupsPageDataObj getGroups(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n GroupFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.UsersPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsersResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUsersRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUsersResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUsers/Fault/CovRemoteServiceException\")\n })\n public UsersPageDataObj getUsers(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n UserFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @return\n * returns com.coverity.ws.v7.GroupDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroup\")\n @ResponseWrapper(localName = \"getGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroup/Fault/CovRemoteServiceException\")\n })\n public GroupDataObj getGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @return\n * returns com.coverity.ws.v7.RoleDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRole\")\n @ResponseWrapper(localName = \"getRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getRole/Fault/CovRemoteServiceException\")\n })\n public RoleDataObj getRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttribute\")\n @ResponseWrapper(localName = \"createAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createAttribute/Fault/CovRemoteServiceException\")\n })\n public void createAttribute(\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.RoleDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllRoles\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRoles\")\n @ResponseWrapper(localName = \"getAllRolesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRolesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesResponse\")\n public List<RoleDataObj> getAllRoles();\n\n /**\n * \n * @param groupSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroup\")\n @ResponseWrapper(localName = \"createGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createGroup/Fault/CovRemoteServiceException\")\n })\n public void createGroup(\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRole\")\n @ResponseWrapper(localName = \"createRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createRole/Fault/CovRemoteServiceException\")\n })\n public void createRole(\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroup\")\n @ResponseWrapper(localName = \"deleteGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroup/Fault/CovRemoteServiceException\")\n })\n public void deleteGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupSpec\n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroup\")\n @ResponseWrapper(localName = \"updateGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateGroup/Fault/CovRemoteServiceException\")\n })\n public void updateGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId,\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRole\")\n @ResponseWrapper(localName = \"updateRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateRole/Fault/CovRemoteServiceException\")\n })\n public void updateRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId,\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRole\")\n @ResponseWrapper(localName = \"deleteRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteRole/Fault/CovRemoteServiceException\")\n })\n public void deleteRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStream\")\n @ResponseWrapper(localName = \"createStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStream/Fault/CovRemoteServiceException\")\n })\n public void createStream(\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStream\")\n @ResponseWrapper(localName = \"updateStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateStream/Fault/CovRemoteServiceException\")\n })\n public void updateStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param onlyIfEmpty\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStream\")\n @ResponseWrapper(localName = \"deleteStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteStream/Fault/CovRemoteServiceException\")\n })\n public void deleteStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"onlyIfEmpty\", targetNamespace = \"\")\n boolean onlyIfEmpty)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUser\")\n @ResponseWrapper(localName = \"createUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createUser/Fault/CovRemoteServiceException\")\n })\n public void createUser(\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateUser/Fault/CovRemoteServiceException\")\n })\n public void updateUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteUser/Fault/CovRemoteServiceException\")\n })\n public void deleteUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllIntegrityControlPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissions\")\n @ResponseWrapper(localName = \"getAllIntegrityControlPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissions/Fault/CovRemoteServiceException\")\n })\n public List<PermissionDataObj> getAllIntegrityControlPermissions(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttribute\")\n @ResponseWrapper(localName = \"updateAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateAttribute/Fault/CovRemoteServiceException\")\n })\n public void updateAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId,\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttribute\")\n @ResponseWrapper(localName = \"deleteAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttribute/Fault/CovRemoteServiceException\")\n })\n public void deleteAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMap\")\n @ResponseWrapper(localName = \"createComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMap/Fault/CovRemoteServiceException\")\n })\n public void createComponentMap(\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMap\")\n @ResponseWrapper(localName = \"updateComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMap/Fault/CovRemoteServiceException\")\n })\n public void updateComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId,\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMap\")\n @ResponseWrapper(localName = \"deleteComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMap/Fault/CovRemoteServiceException\")\n })\n public void deleteComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProject\")\n @ResponseWrapper(localName = \"createProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createProject/Fault/CovRemoteServiceException\")\n })\n public void createProject(\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProject\")\n @ResponseWrapper(localName = \"updateProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateProject/Fault/CovRemoteServiceException\")\n })\n public void updateProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProject\")\n @ResponseWrapper(localName = \"deleteProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteProject/Fault/CovRemoteServiceException\")\n })\n public void deleteProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStore\")\n @ResponseWrapper(localName = \"createTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStore/Fault/CovRemoteServiceException\")\n })\n public void createTriageStore(\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStore\")\n @ResponseWrapper(localName = \"updateTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStore/Fault/CovRemoteServiceException\")\n })\n public void updateTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStore\")\n @ResponseWrapper(localName = \"deleteTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStore/Fault/CovRemoteServiceException\")\n })\n public void deleteTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentId\n * @return\n * returns com.coverity.ws.v7.ComponentDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponent\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponent\")\n @ResponseWrapper(localName = \"getComponentResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponent/Fault/CovRemoteServiceException\")\n })\n public ComponentDataObj getComponent(\n @WebParam(name = \"componentId\", targetNamespace = \"\")\n ComponentIdDataObj componentId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns com.coverity.ws.v7.UserDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUser\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUser/Fault/CovRemoteServiceException\")\n })\n public UserDataObj getUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.StreamDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStreams\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreams\")\n @ResponseWrapper(localName = \"getStreamsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreamsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getStreams/Fault/CovRemoteServiceException\")\n })\n public List<StreamDataObj> getStreams(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n StreamFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.CheckerPropertyDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCheckerProperties\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerProperties\")\n @ResponseWrapper(localName = \"getCheckerPropertiesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerPropertiesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerProperties/Fault/CovRemoteServiceException\")\n })\n public List<CheckerPropertyDataObj> getCheckerProperties(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n CheckerPropertyFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteSnapshot\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshot\")\n @ResponseWrapper(localName = \"deleteSnapshotResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshotResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshot/Fault/CovRemoteServiceException\")\n })\n public void deleteSnapshot(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param viewname\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"executeNotification\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotification\")\n @ResponseWrapper(localName = \"executeNotificationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotificationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/executeNotification/Fault/CovRemoteServiceException\")\n })\n public void executeNotification(\n @WebParam(name = \"viewname\", targetNamespace = \"\")\n String viewname)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ProjectDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProjects\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjects\")\n @ResponseWrapper(localName = \"getProjectsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjectsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getProjects/Fault/CovRemoteServiceException\")\n })\n public List<ProjectDataObj> getProjects(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ProjectFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @param sourceStreamId\n * @return\n * returns com.coverity.ws.v7.StreamDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"copyStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStream\")\n @ResponseWrapper(localName = \"copyStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/copyStream/Fault/CovRemoteServiceException\")\n })\n public StreamDataObj copyStream(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"sourceStreamId\", targetNamespace = \"\")\n StreamIdDataObj sourceStreamId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStreamInProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProject\")\n @ResponseWrapper(localName = \"createStreamInProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProject/Fault/CovRemoteServiceException\")\n })\n public void createStreamInProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setAcceptingNewCommits\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommits\")\n @ResponseWrapper(localName = \"setAcceptingNewCommitsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommitsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsResponse\")\n public void setAcceptingNewCommits(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n boolean arg0);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDay\")\n @ResponseWrapper(localName = \"getMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayResponse\")\n public String getMessageOfTheDay();\n\n /**\n * \n * @param message\n */\n @WebMethod\n @RequestWrapper(localName = \"setMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDay\")\n @ResponseWrapper(localName = \"setMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayResponse\")\n public void setMessageOfTheDay(\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message);\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.TriageStoreDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStores\")\n @ResponseWrapper(localName = \"getTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStores/Fault/CovRemoteServiceException\")\n })\n public List<TriageStoreDataObj> getTriageStores(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n TriageStoreFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.CommitStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCommitState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitState\")\n @ResponseWrapper(localName = \"getCommitStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateResponse\")\n public CommitStateDataObj getCommitState();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.ServerDomainIdDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLdapServerDomains\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomains\")\n @ResponseWrapper(localName = \"getLdapServerDomainsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomainsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsResponse\")\n public List<ServerDomainIdDataObj> getLdapServerDomains();\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.LicenseStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLicenseState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseState\")\n @ResponseWrapper(localName = \"getLicenseStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateResponse\")\n public LicenseStateDataObj getLicenseState();\n\n /**\n * \n * @param snapshotId\n * @param snapshotData\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateSnapshotInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfo\")\n @ResponseWrapper(localName = \"updateSnapshotInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfo/Fault/CovRemoteServiceException\")\n })\n public void updateSnapshotInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n SnapshotIdDataObj snapshotId,\n @WebParam(name = \"snapshotData\", targetNamespace = \"\")\n SnapshotInfoDataObj snapshotData)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.FeatureUpdateTimeDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLastUpdateTimes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimes\")\n @ResponseWrapper(localName = \"getLastUpdateTimesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesResponse\")\n public List<FeatureUpdateTimeDataObj> getLastUpdateTimes();\n\n /**\n * \n * @param ldapConfigurationSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfiguration\")\n @ResponseWrapper(localName = \"createLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void createLdapConfiguration(\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param ldapConfigurationSpec\n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfiguration\")\n @ResponseWrapper(localName = \"updateLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void updateLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj,\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.SnapshotPurgeDetailsObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"getSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public SnapshotPurgeDetailsObj getSnapshotPurgeDetails()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param purgeDetailsSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"setSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"setSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public void setSnapshotPurgeDetails(\n @WebParam(name = \"purgeDetailsSpec\", targetNamespace = \"\")\n SnapshotPurgeDetailsObj purgeDetailsSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param srcTriageStoreIds\n * @param triageStoreId\n * @param deleteSourceStores\n * @param assignStreamsToTargetStore\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mergeTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStores\")\n @ResponseWrapper(localName = \"mergeTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStores/Fault/CovRemoteServiceException\")\n })\n public void mergeTriageStores(\n @WebParam(name = \"srcTriageStoreIds\", targetNamespace = \"\")\n List<TriageStoreIdDataObj> srcTriageStoreIds,\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"deleteSourceStores\", targetNamespace = \"\")\n boolean deleteSourceStores,\n @WebParam(name = \"assignStreamsToTargetStore\", targetNamespace = \"\")\n boolean assignStreamsToTargetStore)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissions\")\n @ResponseWrapper(localName = \"getAllPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsResponse\")\n public List<PermissionDataObj> getAllPermissions();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.LdapConfigurationDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllLdapConfigurations\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurations\")\n @ResponseWrapper(localName = \"getAllLdapConfigurationsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurationsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurations/Fault/CovRemoteServiceException\")\n })\n public List<LdapConfigurationDataObj> getAllLdapConfigurations()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @return\n * returns java.util.List<com.coverity.ws.v7.DeleteSnapshotJobInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeleteSnapshotJobInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfo\")\n @ResponseWrapper(localName = \"getDeleteSnapshotJobInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfo/Fault/CovRemoteServiceException\")\n })\n public List<DeleteSnapshotJobInfoDataObj> getDeleteSnapshotJobInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotIdDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotsForStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStream\")\n @ResponseWrapper(localName = \"getSnapshotsForStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStream/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotIdDataObj> getSnapshotsForStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n SnapshotFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfiguration\")\n @ResponseWrapper(localName = \"deleteLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void deleteLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ComponentMapDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponentMaps\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMaps\")\n @ResponseWrapper(localName = \"getComponentMapsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMapsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMaps/Fault/CovRemoteServiceException\")\n })\n public List<ComponentMapDataObj> getComponentMaps(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ComponentMapFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDefectStatuses\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatuses\")\n @ResponseWrapper(localName = \"getDefectStatusesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatusesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatuses/Fault/CovRemoteServiceException\")\n })\n public List<String> getDefectStatuses()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotIds\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotInformation\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformation\")\n @ResponseWrapper(localName = \"getSnapshotInformationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformation/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotInfoDataObj> getSnapshotInformation(\n @WebParam(name = \"snapshotIds\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotIds)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServerTime\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTime\")\n @ResponseWrapper(localName = \"getServerTimeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTimeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getServerTime/Fault/CovRemoteServiceException\")\n })\n public XMLGregorianCalendar getServerTime()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.ConfigurationDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSystemConfig\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfig\")\n @ResponseWrapper(localName = \"getSystemConfigResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfigResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigResponse\")\n public ConfigurationDataObj getSystemConfig();\n\n}",
"@WebService(name = \"RPCLitSWA\", targetNamespace = \"http://org/apache/axis2/jaxws/proxy/rpclitswa\", wsdlLocation = \"RPCLitSWA.wsdl\")\r\n@SOAPBinding(style = Style.RPC)\r\npublic interface RPCLitSWA {\r\n\r\n\r\n /**\r\n * \r\n * @param request\r\n * @param dummyAttachmentINOUT\r\n * @param dummyAttachmentOUT\r\n * @param response\r\n * @param dummyAttachmentIN\r\n */\r\n @WebMethod\r\n public void echo(\r\n @WebParam(name = \"request\", partName = \"request\")\r\n String request,\r\n @WebParam(name = \"dummyAttachmentIN\", partName = \"dummyAttachmentIN\")\r\n String dummyAttachmentIN,\r\n @WebParam(name = \"dummyAttachmentINOUT\", mode = Mode.INOUT, partName = \"dummyAttachmentINOUT\")\r\n Holder<DataHandler> dummyAttachmentINOUT,\r\n @WebParam(name = \"response\", mode = Mode.OUT, partName = \"response\")\r\n Holder<String> response,\r\n @WebParam(name = \"dummyAttachmentOUT\", mode = Mode.OUT, partName = \"dummyAttachmentOUT\")\r\n Holder<String> dummyAttachmentOUT);\r\n\r\n}",
"public interface ClientService {\r\n\r\n String fpkj(String wsdlUrl);\r\n}",
"@WebService(name = \"SoapService\", targetNamespace = \"http://test/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapService {\n\n\n /**\n * \n * @param fileName\n * @return\n * returns java.lang.Integer\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResult\", targetNamespace = \"http://test/\", className = \"test.GetResult\")\n @ResponseWrapper(localName = \"getResultResponse\", targetNamespace = \"http://test/\", className = \"test.GetResultResponse\")\n @Action(input = \"http://test/SoapService/getResultRequest\", output = \"http://test/SoapService/getResultResponse\")\n public Integer getResult(\n @WebParam(name = \"fileName\", targetNamespace = \"\")\n String fileName);\n\n /**\n * \n * @param path\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"getFilePath\", targetNamespace = \"http://test/\", className = \"test.GetFilePath\")\n @Action(input = \"http://test/SoapService/getFilePath\")\n public void getFilePath(\n @WebParam(name = \"path\", targetNamespace = \"\")\n String path);\n\n}",
"@WebService(name = \"BankInterface\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BankInterface {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByID\")\n @ResponseWrapper(localName = \"getOperationByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationByIDResponse\")\n public String getOperationByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.SET\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getConti\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetConti\")\n @ResponseWrapper(localName = \"getContiResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetContiResponse\")\n public SET getConti();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getOperationsByClientID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientID\")\n @ResponseWrapper(localName = \"getOperationsByClientIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetOperationsByClientIDResponse\")\n public List<String> getOperationsByClientID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientIDs\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDs\")\n @ResponseWrapper(localName = \"getClientIDsResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientIDsResponse\")\n public List<String> getClientIDs();\n\n /**\n * \n * @return\n * returns com.mycompany.ws_bank.MAP\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDbop\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbop\")\n @ResponseWrapper(localName = \"getDbopResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetDbopResponse\")\n public MAP getDbop();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getClientByID\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByID\")\n @ResponseWrapper(localName = \"getClientByIDResponse\", targetNamespace = \"http://Bank.server_bank.mycompany.com/\", className = \"com.mycompany.ws_bank.GetClientByIDResponse\")\n public String getClientByID(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n}",
"@WebService(name = \"Servicio\", targetNamespace = \"http://Servicio/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Servicio {\n\n\n /**\n * \n * @return\n * returns java.util.List<servicio.Persona>\n */\n @WebMethod(operationName = \"ListPersons\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ListPersons\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersons\")\n @ResponseWrapper(localName = \"ListPersonsResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ListPersonsResponse\")\n @Action(input = \"http://Servicio/Servicio/ListPersonsRequest\", output = \"http://Servicio/Servicio/ListPersonsResponse\")\n public List<Persona> listPersons();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Object\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"readPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPerson\")\n @ResponseWrapper(localName = \"readPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.ReadPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/readPersonRequest\", output = \"http://Servicio/Servicio/readPersonResponse\")\n public Object readPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.UpdatePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/updatePersonRequest\", output = \"http://Servicio/Servicio/updatePersonResponse\")\n public String updatePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.DeletePersonResponse\")\n @Action(input = \"http://Servicio/Servicio/deletePersonRequest\", output = \"http://Servicio/Servicio/deletePersonResponse\")\n public String deletePerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg5\n * @param arg4\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"insertPerson\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPerson\")\n @ResponseWrapper(localName = \"insertPersonResponse\", targetNamespace = \"http://Servicio/\", className = \"servicio.InsertPersonResponse\")\n @Action(input = \"http://Servicio/Servicio/insertPersonRequest\", output = \"http://Servicio/Servicio/insertPersonResponse\")\n public String insertPerson(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n String arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3,\n @WebParam(name = \"arg4\", targetNamespace = \"\")\n String arg4,\n @WebParam(name = \"arg5\", targetNamespace = \"\")\n String arg5);\n\n}",
"@WebService(name = \"FileService\", targetNamespace = \"http://soap.web.lab/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface FileService extends lab.web.FileService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"writeFile\", targetNamespace = \"http://soap.web.lab/\", className = \"WriteFile\")\n @ResponseWrapper(localName = \"writeFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"WriteFileResponse\")\n public boolean writeFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0)\n throws ServiceException\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListAllFiles\", targetNamespace = \"http://soap.web.lab/\", className = \"GetListAllFiles\")\n @ResponseWrapper(localName = \"getListAllFilesResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"GetListAllFilesResponse\")\n public List<String> getListAllFiles();\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteFile\", targetNamespace = \"http://soap.web.lab/\", className = \"DeleteFile\")\n @ResponseWrapper(localName = \"deleteFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"DeleteFileResponse\")\n public boolean deleteFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0)\n throws ServiceException\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns boolean\n * @throws ServiceException\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"downloadFile\", targetNamespace = \"http://soap.web.lab/\", className = \"DownloadFile\")\n @ResponseWrapper(localName = \"downloadFileResponse\", targetNamespace = \"http://soap.web.lab/\", className = \"DownloadFileResponse\")\n public boolean downloadFile(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1)\n throws ServiceException\n ;\n\n}",
"@WebService(targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", name = \"PasswordGeneratorWSServer\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface PasswordGeneratorWSServer {\n\n @WebMethod(action = \"urn:GeneratePasswordAction\")\n @RequestWrapper(localName = \"generatePassword\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePassword\")\n @ResponseWrapper(localName = \"generatePasswordResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.GeneratePasswordResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String generatePassword(\n @WebParam(name = \"length\", targetNamespace = \"\")\n java.lang.String length\n );\n\n @WebMethod(action = \"urn:VersionAction\")\n @RequestWrapper(localName = \"version\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.Version\")\n @ResponseWrapper(localName = \"versionResponse\", targetNamespace = \"http://password_generator_ws.ws.campione_tech.com/\", className = \"com.campione_tech.client.password_generator_ws.VersionResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String version();\n}",
"@WebService(name = \"Authentication\", targetNamespace = \"urn:authws.services.ecm.opentext.com\")\r\n@XmlSeeAlso({\r\n com.opentext.ecm.api.ObjectFactory.class,\r\n com.opentext.ecm.services.authws.ObjectFactory.class\r\n})\r\npublic interface Authentication {\r\n\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetResourceId\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetResourceId\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceId\")\r\n @ResponseWrapper(localName = \"GetResourceIdResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetResourceIdResponse\")\r\n public String getResourceId()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param resourceId\r\n * @param username\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"GetTicketForUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"GetTicketForUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUser\")\r\n @ResponseWrapper(localName = \"GetTicketForUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.GetTicketForUserResponse\")\r\n public String getTicketForUser(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"resourceId\", targetNamespace = \"\")\r\n String resourceId)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"Authenticate\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"Authenticate\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.Authenticate\")\r\n @ResponseWrapper(localName = \"AuthenticateResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateResponse\")\r\n public String authenticate(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUser\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUser\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUser\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserResponse\")\r\n public String authenticateCurrentUser()\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateCurrentUserWithCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateCurrentUserWithCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCode\")\r\n @ResponseWrapper(localName = \"AuthenticateCurrentUserWithCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateCurrentUserWithCodeResponse\")\r\n public String authenticateCurrentUserWithCode(\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param code\r\n * @param password\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithPasswordAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithPasswordAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithPasswordAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithPasswordAndCodeResponse\")\r\n public String authenticateWithPasswordAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"password\", targetNamespace = \"\")\r\n String password,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithToken\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithToken\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithToken\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenResponse\")\r\n public String authenticateWithToken(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param username\r\n * @param token\r\n * @param code\r\n * @return\r\n * returns java.lang.String\r\n * @throws AuthenticationException_Exception\r\n */\r\n @WebMethod(operationName = \"AuthenticateWithTokenAndCode\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"AuthenticateWithTokenAndCode\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCode\")\r\n @ResponseWrapper(localName = \"AuthenticateWithTokenAndCodeResponse\", targetNamespace = \"urn:authws.services.ecm.opentext.com\", className = \"com.opentext.ecm.services.authws.AuthenticateWithTokenAndCodeResponse\")\r\n public String authenticateWithTokenAndCode(\r\n @WebParam(name = \"username\", targetNamespace = \"\")\r\n String username,\r\n @WebParam(name = \"token\", targetNamespace = \"\")\r\n byte[] token,\r\n @WebParam(name = \"code\", targetNamespace = \"\")\r\n String code)\r\n throws AuthenticationException_Exception\r\n ;\r\n\r\n}",
"@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}",
"private WebServicesFabrica(){}",
"@WebService(name = \"CreditReportServiceDelegate\", targetNamespace = \"http://webservice.icrqs.cfcc.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CreditReportServiceDelegate {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.cfcc.icrqs.webservice.CuResult\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public CuResult sendCuRequest(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n CuSingleRequest arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.cfcc.icrqs.webservice.CuSingleResult\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public CuSingleResult getCuResult(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n CuGetResult arg0);\n\n}",
"@WebService(name = \"PopuplistDtoServicewsEndpoint\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n@XmlSeeAlso({\n ObjectFactoryPopuplist.class\n})\npublic interface PopuplistDtoServicewsEndpoint {\n\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"updatePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"updatePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.UpdatePopuplistDtoServicewsResponse\")\n public PopuplistDto updatePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param entite\n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"searchPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"searchPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.SearchPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> searchPopuplistDtoServicews(\n @WebParam(name = \"entite\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n String entite);\n\n /**\n * \n * @return\n * returns java.util.List<org.sepro.parameterweb.serviceapi.PopuplistDto>\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"getAllPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicews\")\n @ResponseWrapper(localName = \"getAllPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.GetAllPopuplistDtoServicewsResponse\")\n public List<PopuplistDto> getAllPopuplistDtoServicews();\n\n /**\n * \n * @param popuplistDto\n * @return\n * returns org.sepro.parameterweb.serviceapi.PopuplistDto\n */\n @WebMethod\n @WebResult(targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n @RequestWrapper(localName = \"createPopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"createPopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.CreatePopuplistDtoServicewsResponse\")\n public PopuplistDto createPopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n /**\n * \n * @param popuplistDto\n */\n @WebMethod\n @RequestWrapper(localName = \"deletePopuplistDtoServicews\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicews\")\n @ResponseWrapper(localName = \"deletePopuplistDtoServicewsResponse\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\", className = \"org.sepro.parameterweb.serviceapi.DeletePopuplistDtoServicewsResponse\")\n public void deletePopuplistDtoServicews(\n @WebParam(name = \"popuplistDto\", targetNamespace = \"http://serviceapi.parameterweb.sepro.org/\")\n PopuplistDto popuplistDto);\n\n}",
"@WebService(name = \"OrderPortType\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface OrderPortType {\n\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"getDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType getDish(\n @WebParam(name = \"getDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.DishType\n */\n @WebMethod\n @WebResult(name = \"addDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public DishType addDish(\n @WebParam(name = \"addDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddDishRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetDishListResponse\n */\n @WebMethod\n @WebResult(name = \"getDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetDishListResponse getDishList(\n @WebParam(name = \"getDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"getOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType getOrder(\n @WebParam(name = \"getOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderType\n */\n @WebMethod\n @WebResult(name = \"addOrderResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderType addOrder(\n @WebParam(name = \"addOrderRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.GetOrderListResponse\n */\n @WebMethod\n @WebResult(name = \"getOrderListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public GetOrderListResponse getOrderList(\n @WebParam(name = \"getOrderListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishListType\n */\n @WebMethod\n @WebResult(name = \"getOrderDishListResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishListType getOrderDishList(\n @WebParam(name = \"getOrderDishListRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n GetOrderDishListRequest parameter);\n\n /**\n * \n * @param parameter\n * @return\n * returns ee.ttu.idu0075._2017.ws.restaurant2.OrderDishType\n */\n @WebMethod\n @WebResult(name = \"addOrderDishResponse\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n public OrderDishType addOrderDish(\n @WebParam(name = \"addOrderDishRequest\", targetNamespace = \"http://www.ttu.ee/idu0075/2017/ws/restaurant2\", partName = \"parameter\")\n AddOrderDishRequest parameter);\n\n}",
"public sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse initializeHelloWorldWS(\n\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWS initializeHelloWorldWS10)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"initializeCourseWS\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n initializeHelloWorldWS10,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"initializeHelloWorldWS\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }",
"@WebService(targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", name = \"CartWebService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface CartWebService {\n\n @WebMethod\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.ValidateResponse\")\n @WebResult(name = \"order_id\", targetNamespace = \"\")\n public java.lang.String validate(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws PaymentException_Exception, UnknownCustomerException_Exception, EmptyCartException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"removeItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCart\")\n @ResponseWrapper(localName = \"removeItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.RemoveItemToCustomerCartResponse\")\n public void removeItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"addItemToCustomerCart\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCart\")\n @ResponseWrapper(localName = \"addItemToCustomerCartResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.AddItemToCustomerCartResponse\")\n public void addItemToCustomerCart(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName,\n @WebParam(name = \"item\", targetNamespace = \"\")\n stubs.cart.Item item\n ) throws UnknownCustomerException_Exception;\n\n @WebMethod\n @RequestWrapper(localName = \"getCustomerCartContents\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContents\")\n @ResponseWrapper(localName = \"getCustomerCartContentsResponse\", targetNamespace = \"http://www.polytech.unice.fr/si/4a/isa/tcf/cart\", className = \"stubs.cart.GetCustomerCartContentsResponse\")\n @WebResult(name = \"cart_contents\", targetNamespace = \"\")\n public java.util.List<stubs.cart.Item> getCustomerCartContents(\n @WebParam(name = \"customer_name\", targetNamespace = \"\")\n java.lang.String customerName\n ) throws UnknownCustomerException_Exception;\n}",
"@WebService(name = \"databaseInfoService\", targetNamespace = \"urn:Vidal\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DatabaseInfoService {\n\n\n /**\n * \n * @param lapVersion\n * @param codeAdeli\n * @param userType\n * @param codeRpps\n * @param codeUserLap\n * @param codeLap\n * @return\n * returns com.whatever.DatabaseInfoService.VIDALAuthStatus\n */\n @WebMethod\n @WebResult(name = \"checkUser\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"checkUser\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUser\")\n @ResponseWrapper(localName = \"checkUserResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.CheckUserResponse\")\n public VIDALAuthStatus checkUser(\n @WebParam(name = \"codeUserLap\", targetNamespace = \"urn:Vidal\")\n String codeUserLap,\n @WebParam(name = \"codeLap\", targetNamespace = \"urn:Vidal\")\n String codeLap,\n @WebParam(name = \"lapVersion\", targetNamespace = \"urn:Vidal\")\n String lapVersion,\n @WebParam(name = \"userType\", targetNamespace = \"urn:Vidal\")\n String userType,\n @WebParam(name = \"codeRpps\", targetNamespace = \"urn:Vidal\")\n String codeRpps,\n @WebParam(name = \"codeAdeli\", targetNamespace = \"urn:Vidal\")\n String codeAdeli);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"CeMarkingLabel\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getCEMarkingLabel\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabel\")\n @ResponseWrapper(localName = \"getCEMarkingLabelResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetCEMarkingLabelResponse\")\n public String getCEMarkingLabel();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"expiryDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getDataExpiryDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDate\")\n @ResponseWrapper(localName = \"getDataExpiryDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetDataExpiryDateResponse\")\n public XMLGregorianCalendar getDataExpiryDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"extractionDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getExtractionDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDate\")\n @ResponseWrapper(localName = \"getExtractionDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetExtractionDateResponse\")\n public XMLGregorianCalendar getExtractionDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"graceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getGraceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDate\")\n @ResponseWrapper(localName = \"getGraceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetGraceEndDateResponse\")\n public XMLGregorianCalendar getGraceEndDate();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceEndDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceEndDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDate\")\n @ResponseWrapper(localName = \"getLicenceEndDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceEndDateResponse\")\n public XMLGregorianCalendar getLicenceEndDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.LicencingStatus\n */\n @WebMethod\n @WebResult(name = \"licenceOrGraceStatus\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceOrGraceStatus\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatus\")\n @ResponseWrapper(localName = \"getLicenceOrGraceStatusResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceOrGraceStatusResponse\")\n public LicencingStatus getLicenceOrGraceStatus();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"licenceStartDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getLicenceStartDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDate\")\n @ResponseWrapper(localName = \"getLicenceStartDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetLicenceStartDateResponse\")\n public XMLGregorianCalendar getLicenceStartDate();\n\n /**\n * \n * @return\n * returns com.whatever.DatabaseInfoService.ProductLineType\n */\n @WebMethod\n @WebResult(name = \"productLine\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getProductLine\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLine\")\n @ResponseWrapper(localName = \"getProductLineResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetProductLineResponse\")\n public ProductLineType getProductLine();\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(name = \"version\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetVersionResponse\")\n public String getVersion();\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n */\n @WebMethod\n @WebResult(name = \"warningDate\", targetNamespace = \"urn:Vidal\")\n @RequestWrapper(localName = \"getWarningDate\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDate\")\n @ResponseWrapper(localName = \"getWarningDateResponse\", targetNamespace = \"urn:Vidal\", className = \"com.whatever.DatabaseInfoService.GetWarningDateResponse\")\n public XMLGregorianCalendar getWarningDate();\n\n}",
"@WebService(name = \"BVAC_AGENCYSoap\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BVACAGENCYSoap {\r\n\r\n\r\n /**\r\n * L\\u1ea5y danh sách lo\\u1ea1i \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetDMLoaiAnChi\", action = \"http://tempuri.org/GetDMLoaiAnChi\")\r\n @WebResult(name = \"GetDMLoaiAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetDMLoaiAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChi\")\r\n @ResponseWrapper(localName = \"GetDMLoaiAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChiResponse\")\r\n public String getDMLoaiAnChi(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * L\\u1ea5y danh sách \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetAnChiByAgency\", action = \"http://tempuri.org/GetAnChiByAgency\")\r\n @WebResult(name = \"GetAnChiByAgencyResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetAnChiByAgency\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgency\")\r\n @ResponseWrapper(localName = \"GetAnChiByAgencyResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgencyResponse\")\r\n public String getAnChiByAgency(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * C\\u1eadp nh\\u1eadt danh sách \\u1ea5n ch\\u1ec9 \\u0111ã s\\u1eed d\\u1ee5ng\r\n * \r\n * @param anChis\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"UpdateListAnChi\", action = \"http://tempuri.org/UpdateListAnChi\")\r\n @WebResult(name = \"UpdateListAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"UpdateListAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChi\")\r\n @ResponseWrapper(localName = \"UpdateListAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChiResponse\")\r\n public String updateListAnChi(\r\n @WebParam(name = \"anChis\", targetNamespace = \"http://tempuri.org/\")\r\n String anChis);\r\n\r\n}",
"@WebService(name = \"serverPortType\", targetNamespace = \"urn:server\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ServerPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateRequestResponseType\n */\n @WebMethod(operationName = \"CreateRequest\", action = \"urn:server#CreateRequest\")\n @WebResult(name = \"CreateRequestResponse\", partName = \"parameters\")\n public CreateRequestResponseType createRequest(\n @WebParam(name = \"CreateRequest\", partName = \"parameters\")\n CreateRequestRequestType parameters);\n\n /**\n * \n * @param parameters\n * @return\n * returns server.CreateIncidentResponseType\n */\n @WebMethod(operationName = \"CreateIncident\", action = \"urn:server#CreateIncident\")\n @WebResult(name = \"CreateIncidentResponse\", partName = \"parameters\")\n public CreateIncidentResponseType createIncident(\n @WebParam(name = \"CreateIncident\", partName = \"parameters\")\n CreateIncidentRequestType parameters);\n\n}",
"@WebService(name = \"SharedGalleryServerSOAP\", targetNamespace = \"http://SOAP.svr.tp1.sd/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SharedGalleryServerSOAP {\n\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfAlbums\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbums\")\n @ResponseWrapper(localName = \"getListOfAlbumsResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfAlbumsResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfAlbumsResponse\")\n public List<String> getListOfAlbums();\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<java.lang.String>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getListOfPictures\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPictures\")\n @ResponseWrapper(localName = \"getListOfPicturesResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetListOfPicturesResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getListOfPicturesResponse\")\n public List<String> getListOfPictures(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns byte[]\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getPictureData\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureData\")\n @ResponseWrapper(localName = \"getPictureDataResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.GetPictureDataResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/getPictureDataResponse\")\n public byte[] getPictureData(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"createAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbum\")\n @ResponseWrapper(localName = \"createAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.CreateAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/createAlbumResponse\")\n public String createAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteAlbum\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbum\")\n @ResponseWrapper(localName = \"deleteAlbumResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeleteAlbumResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deleteAlbumResponse\")\n public Boolean deleteAlbum(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"uploadPicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPicture\")\n @ResponseWrapper(localName = \"uploadPictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.UploadPictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/uploadPictureResponse\")\n public String uploadPicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n byte[] arg2);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.Boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePicture\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePicture\")\n @ResponseWrapper(localName = \"deletePictureResponse\", targetNamespace = \"http://SOAP.svr.tp1.sd/\", className = \"sd.tp1.clt.ws.DeletePictureResponse\")\n @Action(input = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureRequest\", output = \"http://SOAP.svr.tp1.sd/SharedGalleryServerSOAP/deletePictureResponse\")\n public Boolean deletePicture(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}",
"@WebService(name = \"BonusOperationWebService\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BonusOperationWebService {\n\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundResponse tranformFrznBonusFund(\n @WebParam(name = \"tranformFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundCompensationResponse tranformBonusFundCompensation(\n @WebParam(name = \"tranformBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformBonusFundResponse tranformBonusFund(\n @WebParam(name = \"tranformBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundResponse tranformUnFrznBonusFund(\n @WebParam(name = \"tranformUnFrznBonusFund\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFund body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformUnFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformUnFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformUnFrznBonusFundCompensationResponse tranformUnFrznBonusFundCompensation(\n @WebParam(name = \"tranformUnFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformUnFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n /**\n * \n * @param body\n * @param header\n * @return\n * returns com.sgm.dms.service.agent.ws.bonus.TranformFrznBonusFundCompensationResponse\n * @throws SgmErrorFault\n */\n @WebMethod\n @WebResult(name = \"tranformFrznBonusFundCompensationResponse\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n public TranformFrznBonusFundCompensationResponse tranformFrznBonusFundCompensation(\n @WebParam(name = \"tranformFrznBonusFundCompensation\", targetNamespace = \"http://ws.agent.service.dms.sgm.com/\", partName = \"body\")\n TranformFrznBonusFundCompensation body,\n @WebParam(name = \"SGMCommonHeader\", targetNamespace = \"http://www.saic-gm.com/esb/schemas/common/SGMCommonHeader/v1\", header = true, mode = WebParam.Mode.INOUT, partName = \"header\")\n Holder<SGMCommonHeaderType> header)\n throws SgmErrorFault\n ;\n\n}",
"@WebService(name = \"GetUser\", targetNamespace = \"http://Eshan/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface GetUser {\n\n\n /**\n * \n * @param userID\n * @return\n * returns java.util.List<java.lang.Object>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUser_Type\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://Eshan/\", className = \"eshan.GetUserResponse\")\n @Action(input = \"http://Eshan/GetUser/getUserRequest\", output = \"http://Eshan/GetUser/getUserResponse\")\n public List<Object> getUser(\n @WebParam(name = \"UserID\", targetNamespace = \"\")\n int userID);\n\n}",
"@WebService(name = \"AppWebService\", targetNamespace = \"http://pingan.cn/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface AppWebService {\n\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceCompareResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceCompare\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompare\")\n @ResponseWrapper(localName = \"faceCompareResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceCompareResponse\")\n public String faceCompare(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getReturngoodsResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getReturngoods\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoods\")\n @ResponseWrapper(localName = \"getReturngoodsResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetReturngoodsResponse\")\n public String getReturngoods(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/boundBankcard\")\n @WebResult(name = \"boundBankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"boundBankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcard\")\n @ResponseWrapper(localName = \"boundBankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BoundBankcardResponse\")\n public String boundBankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/returnBtvOrder\")\n @WebResult(name = \"returnBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"returnBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrder\")\n @ResponseWrapper(localName = \"returnBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.ReturnBtvOrderResponse\")\n public String returnBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"bankcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"bankcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Bankcard\")\n @ResponseWrapper(localName = \"bankcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.BankcardResponse\")\n public String bankcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/updateLogisticsinfo\")\n @WebResult(name = \"updateLogisticsinfoResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"updateLogisticsinfo\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfo\")\n @ResponseWrapper(localName = \"updateLogisticsinfoResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.UpdateLogisticsinfoResponse\")\n public String updateLogisticsinfo(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"faceDetectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"faceDetect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetect\")\n @ResponseWrapper(localName = \"faceDetectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.FaceDetectResponse\")\n public String faceDetect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws SQLException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getCreditline\")\n @WebResult(name = \"getCreditlineResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getCreditline\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditline\")\n @ResponseWrapper(localName = \"getCreditlineResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetCreditlineResponse\")\n public String getCreditline(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws SQLException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"signCheckResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"signCheck\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheck\")\n @ResponseWrapper(localName = \"signCheckResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.SignCheckResponse\")\n public String signCheck(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansSelect\")\n @WebResult(name = \"repayPlansSelectResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansSelect\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelect\")\n @ResponseWrapper(localName = \"repayPlansSelectResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansSelectResponse\")\n public String repayPlansSelect(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansQuery\")\n @WebResult(name = \"repayPlansQueryResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansQuery\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQuery\")\n @ResponseWrapper(localName = \"repayPlansQueryResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansQueryResponse\")\n public String repayPlansQuery(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"queryPhoneZHHSResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"queryPhoneZHHS\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHS\")\n @ResponseWrapper(localName = \"queryPhoneZHHSResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.QueryPhoneZHHSResponse\")\n public String queryPhoneZHHS(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/repayPlansTrialResult\")\n @WebResult(name = \"repayPlansTrialResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"repayPlansTrial\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrial\")\n @ResponseWrapper(localName = \"repayPlansTrialResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RepayPlansTrialResponse\")\n public String repayPlansTrial(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(operationName = \"Idcard\", action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"IdcardResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"Idcard\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.Idcard\")\n @ResponseWrapper(localName = \"IdcardResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.IdcardResponse\")\n public String idcard(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/getOrder\")\n @WebResult(name = \"getOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"getOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrder\")\n @ResponseWrapper(localName = \"getOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.GetOrderResponse\")\n public String getOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n */\n @WebMethod(action = \"http://pingan.cn/registerBtvOrder\")\n @WebResult(name = \"registerBtvOrderResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"registerBtvOrder\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrder\")\n @ResponseWrapper(localName = \"registerBtvOrderResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.RegisterBtvOrderResponse\")\n public String registerBtvOrder(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception\n ;\n /**\n * \n * @param param\n * @return\n * returns java.lang.String\n * @throws Exception_Exception\n * @throws JBOException_Exception\n */\n @WebMethod(action = \"http://pingan.cn/pubTransLog\")\n @WebResult(name = \"pubTransLogResult\", targetNamespace = \"http://pingan.cn/\")\n @RequestWrapper(localName = \"pubTransLog\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLog\")\n @ResponseWrapper(localName = \"pubTransLogResponse\", targetNamespace = \"http://pingan.cn/\", className = \"cn.pingan.PubTransLogResponse\")\n public String pubTransLog(\n @WebParam(name = \"param\", targetNamespace = \"http://pingan.cn/\")\n String param)\n throws Exception_Exception, JBOException_Exception\n ;\n\n}",
"@WebService(name = \"EiccToKgdUniversalPortType\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EiccToKgdUniversalPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns ResponseMessage\n * @throws SendMessageException\n */\n @WebMethod(operationName = \"SendMessage\", action = \"http://10.8.255.50:1274/EiccToKgdUniversal/SendMessage\")\n @WebResult(name = \"sendMessageResponse\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n public ResponseMessage sendMessage(\n @WebParam(name = \"sendMessageRequest\", targetNamespace = \"http://nationalbank.kz/ws/EiccToKgdUniversal/\", partName = \"parameters\")\n RequestMessage parameters)\n throws SendMessageException\n ;\n\n}",
"@WebService(name = \"EntityServer\", targetNamespace=\"http://activitiderbysoapservice.spqr.de/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface EntityServer {\n @WebMethod @WebResult(partName = \"return\")String getTimeAsString();\n @WebMethod @WebResult(partName = \"return\")long getTimeAsElapsed();\n @WebMethod @WebResult(partName = \"return\")long orderParts(String part);\n @WebMethod @WebResult(partName = \"return\")boolean changeBackWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeDoorAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeFronWindowAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeEngineAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeTireAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")boolean changeWheelAmount(int amount);\n @WebMethod @WebResult(partName = \"return\")long amountOfParts(String part);\n \n}",
"@WebService(name = \"NumberGeneratorServiceSoap\", targetNamespace = \"NS_NumGen\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface NumberGeneratorServiceSoap {\n\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/primeRange\")\n @WebResult(name = \"primeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"primeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRange\")\n @ResponseWrapper(localName = \"primeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PrimeRangeResponse\")\n public String primeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/compositeRange\")\n @WebResult(name = \"compositeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"compositeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRange\")\n @ResponseWrapper(localName = \"compositeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.CompositeRangeResponse\")\n public String compositeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/perfectSquaresRange\")\n @WebResult(name = \"perfectSquaresRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"perfectSquaresRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRange\")\n @ResponseWrapper(localName = \"perfectSquaresRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PerfectSquaresRangeResponse\")\n public String perfectSquaresRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/fibonacciRange\")\n @WebResult(name = \"fibonacciRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"fibonacciRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRange\")\n @ResponseWrapper(localName = \"fibonacciRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.FibonacciRangeResponse\")\n public String fibonacciRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @param n\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/randomNumbers\")\n @WebResult(name = \"randomNumbersResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"randomNumbers\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbers\")\n @ResponseWrapper(localName = \"randomNumbersResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.RandomNumbersResponse\")\n public String randomNumbers(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high,\n @WebParam(name = \"n\", targetNamespace = \"NS_NumGen\")\n int n);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/powersofTwo\")\n @WebResult(name = \"powersofTwoResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"powersofTwo\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwo\")\n @ResponseWrapper(localName = \"powersofTwoResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PowersofTwoResponse\")\n public String powersofTwo(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/evenRange\")\n @WebResult(name = \"evenRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"evenRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRange\")\n @ResponseWrapper(localName = \"evenRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.EvenRangeResponse\")\n public String evenRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/oddRange\")\n @WebResult(name = \"oddRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"oddRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRange\")\n @ResponseWrapper(localName = \"oddRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.OddRangeResponse\")\n public String oddRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n /**\n * \n * @param high\n * @param low\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"NS_NumGen/palindromeRange\")\n @WebResult(name = \"palindromeRangeResult\", targetNamespace = \"NS_NumGen\")\n @RequestWrapper(localName = \"palindromeRange\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRange\")\n @ResponseWrapper(localName = \"palindromeRangeResponse\", targetNamespace = \"NS_NumGen\", className = \"ns_numgen.PalindromeRangeResponse\")\n public String palindromeRange(\n @WebParam(name = \"low\", targetNamespace = \"NS_NumGen\")\n int low,\n @WebParam(name = \"high\", targetNamespace = \"NS_NumGen\")\n int high);\n\n}",
"@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/AddressService\", name = \"AddressService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.addressservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AddressService {\r\n\r\n @WebResult(name = \"GetDoNotDisturbResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetDoNotDisturb\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetDoNotDisturbResponse getDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"GetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetDoNotDisturbException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetAddressCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"OriginateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"Originate\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/Originate\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ContactResponse originate(\r\n @WebParam(partName = \"parameters\", name = \"OriginateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressOriginateRequest parameters\r\n ) throws OriginateException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetDoNotDisturb\")\r\n public void setDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"SetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetDoNotDisturbRequest parameters\r\n ) throws SessionNotCreatedException, SetDoNotDisturbException;\r\n\r\n @WebResult(name = \"IsForwardedResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsForwarded\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsForwarded\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsForwardedResponse isForwarded(\r\n @WebParam(partName = \"parameters\", name = \"IsForwardedRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsForwardedException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetForwarding\")\r\n public void setForwarding(\r\n @WebParam(partName = \"parameters\", name = \"SetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetForwardingRequest parameters\r\n ) throws SetForwardingException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"CancelForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/CancelForwarding\")\r\n public void cancelForwarding(\r\n @WebParam(partName = \"parameters\", name = \"CancelForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, CancelForwardingException;\r\n\r\n @WebResult(name = \"GetStateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetState\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetState\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetStateResponse getState(\r\n @WebParam(partName = \"parameters\", name = \"GetStateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetStateException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminals\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminals\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalsResponse getTerminals(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetTerminalsException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetPresenceResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetPresence\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetPresence\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetPresenceResponse getPresence(\r\n @WebParam(partName = \"parameters\", name = \"GetPresenceRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetPresenceException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnection\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnection\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ConnectionResponse getConnection(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.ConnectionRequest parameters\r\n ) throws GetConnectionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetMessageWaitingResponse getMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"GetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalStatusResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminalStatus\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminalStatus\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalStatusResponse getTerminalStatus(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalStatusRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetTerminalStatusException;\r\n\r\n @WebMethod(operationName = \"PresenceSubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceSubscribe\")\r\n public void presenceSubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceSubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.PresenceSubscribeRequest parameters\r\n ) throws PresenceSubscribeException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnections\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnections\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetConnectionsResponse getConnections(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetConnectionsException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SendInstantMessage\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SendInstantMessage\")\r\n public void sendInstantMessage(\r\n @WebParam(partName = \"parameters\", name = \"SendInstantMessage\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.InstantMessageRequest parameters\r\n ) throws SessionNotCreatedException, SendInstantMessageException;\r\n\r\n @WebResult(name = \"GetUriResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetUri\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetUri\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetUriResponse getUri(\r\n @WebParam(partName = \"parameters\", name = \"GetUriRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetUriException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetForwardingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetForwarding\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetForwardingResponse getForwarding(\r\n @WebParam(partName = \"parameters\", name = \"GetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetForwardingException;\r\n\r\n @WebMethod(operationName = \"PresenceUnsubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceUnsubscribe\")\r\n public void presenceUnsubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceUnsubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws PresenceUnsubscribeException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetMessageWaiting\")\r\n public void setMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"SetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetMessageWaitingRequest parameters\r\n ) throws SetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"IsMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsMessageWaitingResponse isMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"IsMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsMessageWaitingException, SessionNotCreatedException;\r\n}",
"public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}",
"@WebService(name = \"BillingService\", targetNamespace = \"http://billing.jaxws.bt.com/\")\n@HandlerChain(file = \"BillingService_handler.xml\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n com.bt.jaxb.model.ObjectFactory.class,\n com.bt.jaxws.billing.ObjectFactory.class\n})\npublic interface BillingService {\n\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns javax.xml.ws.Response<com.bt.jaxws.billing.Invoice>\n */\n @WebMethod(operationName = \"getInvoice\")\n public Response<Invoice> getInvoiceAsync(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @param asyncHandler\n * @return\n * returns java.util.concurrent.Future<? extends java.lang.Object>\n */\n @WebMethod(operationName = \"getInvoice\")\n public Future<?> getInvoiceAsync(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1,\n @WebParam(name = \"asyncHandler\", partName = \"asyncHandler\")\n AsyncHandler<Invoice> asyncHandler);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.bt.jaxws.billing.Invoice\n * @throws InvalidCustomerException_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n @Action(input = \"http://billing.jaxws.bt.com/BillingService/getInvoiceRequest\", output = \"http://billing.jaxws.bt.com/BillingService/getInvoiceResponse\", fault = {\n @FaultAction(className = InvalidCustomerException_Exception.class, value = \"http://billing.jaxws.bt.com/BillingService/getInvoice/Fault/InvalidCustomerException\")\n })\n public Invoice getInvoice(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n Customer arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n String arg1)\n throws InvalidCustomerException_Exception\n ;\n\n}",
"@WebService(name = \"SendMTPortType\", targetNamespace = \"http://sms.neo\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SendMTPortType {\n\n\n /**\n * \n * @param rtype\n * @param timeend\n * @param password\n * @param receiver\n * @param repeat\n * @param brandname\n * @param timestart\n * @param loaisp\n * @param content\n * @param timesend\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendMessage\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendMessage\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessage\")\n @ResponseWrapper(localName = \"sendMessageResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendMessageResponse\")\n public String sendMessage(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"repeat\", targetNamespace = \"http://sms.neo\")\n Integer repeat,\n @WebParam(name = \"rtype\", targetNamespace = \"http://sms.neo\")\n Integer rtype,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"timestart\", targetNamespace = \"http://sms.neo\")\n String timestart,\n @WebParam(name = \"timeend\", targetNamespace = \"http://sms.neo\")\n String timeend,\n @WebParam(name = \"timesend\", targetNamespace = \"http://sms.neo\")\n String timesend,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromServiceNumber\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromServiceNumber\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumber\")\n @ResponseWrapper(localName = \"sendFromServiceNumberResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromServiceNumberResponse\")\n public String sendFromServiceNumber(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendFromBrandname\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendFromBrandname\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandname\")\n @ResponseWrapper(localName = \"sendFromBrandnameResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendFromBrandnameResponse\")\n public String sendFromBrandname(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n /**\n * \n * @param password\n * @param cardSerial\n * @param cardCode\n * @param issure\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:useCard\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"useCard\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCard\")\n @ResponseWrapper(localName = \"useCardResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.UseCardResponse\")\n public String useCard(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"issure\", targetNamespace = \"http://sms.neo\")\n String issure,\n @WebParam(name = \"cardCode\", targetNamespace = \"http://sms.neo\")\n String cardCode,\n @WebParam(name = \"cardSerial\", targetNamespace = \"http://sms.neo\")\n String cardSerial);\n\n /**\n * \n * @param password\n * @param receiver\n * @param brandname\n * @param loaisp\n * @param content\n * @param username\n * @param target\n * @return\n * returns java.lang.String\n */\n @WebMethod(action = \"urn:sendSMS\")\n @WebResult(targetNamespace = \"http://sms.neo\")\n @RequestWrapper(localName = \"sendSMS\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMS\")\n @ResponseWrapper(localName = \"sendSMSResponse\", targetNamespace = \"http://sms.neo\", className = \"neo.sms.SendSMSResponse\")\n public String sendSMS(\n @WebParam(name = \"username\", targetNamespace = \"http://sms.neo\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"http://sms.neo\")\n String password,\n @WebParam(name = \"receiver\", targetNamespace = \"http://sms.neo\")\n String receiver,\n @WebParam(name = \"content\", targetNamespace = \"http://sms.neo\")\n String content,\n @WebParam(name = \"loaisp\", targetNamespace = \"http://sms.neo\")\n Integer loaisp,\n @WebParam(name = \"brandname\", targetNamespace = \"http://sms.neo\")\n String brandname,\n @WebParam(name = \"target\", targetNamespace = \"http://sms.neo\")\n String target);\n\n}",
"@WebService(name = \"DomesticRemittanceByPartnerService\", targetNamespace = \"http://www.quantiguous.com/services\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DomesticRemittanceByPartnerService {\n\n\n /**\n * \n * @param beneficiaryAccountNo\n * @param remitterToBeneficiaryInfo\n * @param remitterAddress\n * @param remitterIFSC\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param remitterName\n * @param beneficiaryAddress\n * @param uniqueResponseNo\n * @param version\n * @param requestReferenceNo\n * @param beneficiaryIFSC\n * @param debitAccountNo\n * @param uniqueRequestNo\n * @param beneficiaryName\n * @param customerID\n * @param beneficiaryContact\n * @param transferType\n * @param attemptNo\n * @param transferCurrencyCode\n * @param remitterContact\n * @param remitterAccountNo\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/remit\")\n @RequestWrapper(localName = \"remit\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.Remit\")\n @ResponseWrapper(localName = \"remitResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.RemitResponse\")\n public void remit(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"uniqueRequestNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String uniqueRequestNo,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"debitAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String debitAccountNo,\n @WebParam(name = \"remitterAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterAccountNo,\n @WebParam(name = \"remitterIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterIFSC,\n @WebParam(name = \"remitterName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterName,\n @WebParam(name = \"remitterAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType remitterAddress,\n @WebParam(name = \"remitterContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType remitterContact,\n @WebParam(name = \"beneficiaryName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryName,\n @WebParam(name = \"beneficiaryAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType beneficiaryAddress,\n @WebParam(name = \"beneficiaryContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType beneficiaryContact,\n @WebParam(name = \"beneficiaryAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryAccountNo,\n @WebParam(name = \"beneficiaryIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryIFSC,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n CurrencyCodeType transferCurrencyCode,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\")\n BigDecimal transferAmount,\n @WebParam(name = \"remitterToBeneficiaryInfo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterToBeneficiaryInfo,\n @WebParam(name = \"uniqueResponseNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> uniqueResponseNo,\n @WebParam(name = \"attemptNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> attemptNo,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> requestReferenceNo,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param accountCurrencyCode\n * @param partnerCode\n * @param accountNo\n * @param accountBalanceAmount\n * @param customerID\n * @param version\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getBalance\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalanceResponse\")\n public void getBalance(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"accountCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> accountCurrencyCode,\n @WebParam(name = \"accountBalanceAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> accountBalanceAmount,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert);\n\n /**\n * \n * @param reqTransferType\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param transferType\n * @param transactionDate\n * @param version\n * @param transferCurrencyCode\n * @param requestReferenceNo\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getRemittanceStatus\")\n @RequestWrapper(localName = \"getRemittanceStatus\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatus\")\n @ResponseWrapper(localName = \"getRemittanceStatusResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatusResponse\")\n public void getRemittanceStatus(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String requestReferenceNo,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"reqTransferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> reqTransferType,\n @WebParam(name = \"transactionDate\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<XMLGregorianCalendar> transactionDate,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> transferAmount,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> transferCurrencyCode,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param numDebits\n * @param partnerCode\n * @param dateRange\n * @param accountNo\n * @param customerID\n * @param closingBalance\n * @param numTransactions\n * @param numCredits\n * @param version\n * @param openingBalance\n * @param transactionsArray\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getTransactions\")\n @RequestWrapper(localName = \"getTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactions\")\n @ResponseWrapper(localName = \"getTransactionsResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactionsResponse\")\n public void getTransactions(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"dateRange\", targetNamespace = \"http://www.quantiguous.com/services\")\n DateRangeType dateRange,\n @WebParam(name = \"openingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> openingBalance,\n @WebParam(name = \"numDebits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numDebits,\n @WebParam(name = \"numCredits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numCredits,\n @WebParam(name = \"closingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> closingBalance,\n @WebParam(name = \"numTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numTransactions,\n @WebParam(name = \"transactionsArray\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionsArrayType> transactionsArray);\n\n}",
"@WebService(name = \"WebServiceSoap\", targetNamespace = \"http://tempuri.org/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface WebServiceSoap {\n\n\n /**\n * \n * @param password\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Login\", action = \"http://tempuri.org/Login\")\n @WebResult(name = \"LoginResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"Login\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Login\")\n @ResponseWrapper(localName = \"LoginResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginResponse\")\n public String login(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"password\", targetNamespace = \"http://tempuri.org/\")\n String password);\n\n /**\n * \n * @param password\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginEx\", action = \"http://tempuri.org/LoginEx\")\n @WebResult(name = \"LoginExResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginEx\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginEx\")\n @ResponseWrapper(localName = \"LoginExResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginExResponse\")\n public String loginEx(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"password\", targetNamespace = \"http://tempuri.org/\")\n String password);\n\n /**\n * \n * @param value\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginByCookies\", action = \"http://tempuri.org/LoginByCookies\")\n @WebResult(name = \"LoginByCookiesResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginByCookies\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByCookies\")\n @ResponseWrapper(localName = \"LoginByCookiesResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByCookiesResponse\")\n public String loginByCookies(\n @WebParam(name = \"value\", targetNamespace = \"http://tempuri.org/\")\n String value);\n\n /**\n * \n */\n @WebMethod(operationName = \"SignOut\", action = \"http://tempuri.org/SignOut\")\n @RequestWrapper(localName = \"SignOut\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SignOut\")\n @ResponseWrapper(localName = \"SignOutResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.SignOutResponse\")\n public void signOut();\n\n /**\n * \n * @return\n * returns boolean\n */\n @WebMethod(operationName = \"IsAuthenticated\", action = \"http://tempuri.org/IsAuthenticated\")\n @WebResult(name = \"IsAuthenticatedResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"IsAuthenticated\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsAuthenticated\")\n @ResponseWrapper(localName = \"IsAuthenticatedResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsAuthenticatedResponse\")\n public boolean isAuthenticated();\n\n /**\n * \n * @param token\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"LoginByGoogleId\", action = \"http://tempuri.org/LoginByGoogleId\")\n @WebResult(name = \"LoginByGoogleIdResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"LoginByGoogleId\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByGoogleId\")\n @ResponseWrapper(localName = \"LoginByGoogleIdResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.LoginByGoogleIdResponse\")\n public String loginByGoogleId(\n @WebParam(name = \"token\", targetNamespace = \"http://tempuri.org/\")\n String token);\n\n /**\n * \n * @param args\n * @param calcId\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"Execute\", action = \"http://tempuri.org/Execute\")\n @WebResult(name = \"ExecuteResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"Execute\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.Execute\")\n @ResponseWrapper(localName = \"ExecuteResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteResponse\")\n public String execute(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args);\n\n /**\n * \n * @param args\n * @param ticket\n * @param calcId\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ExecuteEx\", action = \"http://tempuri.org/ExecuteEx\")\n @WebResult(name = \"ExecuteExResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ExecuteEx\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteEx\")\n @ResponseWrapper(localName = \"ExecuteExResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteExResponse\")\n public String executeEx(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket);\n\n /**\n * \n * @param args\n * @param ticket\n * @param calcId\n * @param timeout\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ExecuteWithTimeout\", action = \"http://tempuri.org/ExecuteWithTimeout\")\n @WebResult(name = \"ExecuteWithTimeoutResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ExecuteWithTimeout\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteWithTimeout\")\n @ResponseWrapper(localName = \"ExecuteWithTimeoutResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ExecuteWithTimeoutResponse\")\n public String executeWithTimeout(\n @WebParam(name = \"calcId\", targetNamespace = \"http://tempuri.org/\")\n String calcId,\n @WebParam(name = \"args\", targetNamespace = \"http://tempuri.org/\")\n String args,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket,\n @WebParam(name = \"timeout\", targetNamespace = \"http://tempuri.org/\")\n int timeout);\n\n /**\n * \n * @param ticket\n * @param sessionId\n */\n @WebMethod(operationName = \"UpdateSession\", action = \"http://tempuri.org/UpdateSession\")\n @RequestWrapper(localName = \"UpdateSession\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateSession\")\n @ResponseWrapper(localName = \"UpdateSessionResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateSessionResponse\")\n public void updateSession(\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket,\n @WebParam(name = \"sessionId\", targetNamespace = \"http://tempuri.org/\")\n String sessionId);\n\n /**\n * \n * @param ticket\n * @param oldPassword\n * @param newPassword\n * @param login\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"ChangePassword\", action = \"http://tempuri.org/ChangePassword\")\n @WebResult(name = \"ChangePasswordResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"ChangePassword\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ChangePassword\")\n @ResponseWrapper(localName = \"ChangePasswordResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.ChangePasswordResponse\")\n public String changePassword(\n @WebParam(name = \"login\", targetNamespace = \"http://tempuri.org/\")\n String login,\n @WebParam(name = \"oldPassword\", targetNamespace = \"http://tempuri.org/\")\n String oldPassword,\n @WebParam(name = \"newPassword\", targetNamespace = \"http://tempuri.org/\")\n String newPassword,\n @WebParam(name = \"ticket\", targetNamespace = \"http://tempuri.org/\")\n String ticket);\n\n /**\n * \n * @return\n * returns java.lang.Object\n */\n @WebMethod(operationName = \"IsEnabled\", action = \"http://tempuri.org/IsEnabled\")\n @WebResult(name = \"IsEnabledResult\", targetNamespace = \"http://tempuri.org/\")\n @RequestWrapper(localName = \"IsEnabled\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsEnabled\")\n @ResponseWrapper(localName = \"IsEnabledResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.IsEnabledResponse\")\n public Object isEnabled();\n\n}",
"public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}",
"@WebService(targetNamespace = \"http://www.example.org/BuyMart/\", name = \"BuyMartPortType\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface BuyMartPortType {\n\n @WebMethod(operationName = \"GetOrders\")\n @WebResult(name = \"GetOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public GetOrdersResponse getOrders(\n @WebParam(partName = \"parameters\", name = \"GetOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n GetOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"UpdateOrders\")\n @WebResult(name = \"UpdateOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public UpdateOrdersResponse updateOrders(\n @WebParam(partName = \"parameters\", name = \"UpdateOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n UpdateOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"CreateOrders\")\n @WebResult(name = \"CreateOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public CreateOrdersResponse createOrders(\n @WebParam(partName = \"parameters\", name = \"CreateOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n CreateOrdersRequest parameters\n );\n\n @WebMethod(operationName = \"DeleteOrders\")\n @WebResult(name = \"DeleteOrdersResponse\", targetNamespace = \"http://www.example.org/BuyMart/\", partName = \"parameters\")\n public DeleteOrdersResponse deleteOrders(\n @WebParam(partName = \"parameters\", name = \"DeleteOrdersRequest\", targetNamespace = \"http://www.example.org/BuyMart/\")\n DeleteOrdersRequest parameters\n );\n}",
"@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}",
"@WebService(name = \"UserService\", targetNamespace = \"http://services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UserService {\n\n\n /**\n * \n * @param id\n * @return\n * returns services.Anagrafica\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUserById\", targetNamespace = \"http://services/\", className = \"services.GetUserById\")\n @ResponseWrapper(localName = \"getUserByIdResponse\", targetNamespace = \"http://services/\", className = \"services.GetUserByIdResponse\")\n public Anagrafica getUserById(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id);\n\n /**\n * \n * @param id\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://services/\", className = \"services.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://services/\", className = \"services.DeleteUserResponse\")\n public void deleteUser(\n @WebParam(name = \"id\", targetNamespace = \"\")\n int id);\n\n /**\n * \n * @param anagrafica\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://services/\", className = \"services.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://services/\", className = \"services.UpdateUserResponse\")\n public void updateUser(\n @WebParam(name = \"anagrafica\", targetNamespace = \"http://services/\")\n Anagrafica anagrafica);\n\n /**\n * \n * @param cf\n * @param cognome\n * @param cellulare\n * @param nome\n * @param telefono\n * @param email\n */\n @WebMethod\n @RequestWrapper(localName = \"addUser\", targetNamespace = \"http://services/\", className = \"services.AddUser\")\n @ResponseWrapper(localName = \"addUserResponse\", targetNamespace = \"http://services/\", className = \"services.AddUserResponse\")\n public void addUser(\n @WebParam(name = \"nome\", targetNamespace = \"\")\n String nome,\n @WebParam(name = \"cognome\", targetNamespace = \"\")\n String cognome,\n @WebParam(name = \"cf\", targetNamespace = \"\")\n String cf,\n @WebParam(name = \"telefono\", targetNamespace = \"\")\n String telefono,\n @WebParam(name = \"cellulare\", targetNamespace = \"\")\n String cellulare,\n @WebParam(name = \"email\", targetNamespace = \"\")\n String email);\n\n /**\n * \n * @return\n * returns java.util.List<services.Anagrafica>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listUsers\", targetNamespace = \"http://services/\", className = \"services.ListUsers\")\n @ResponseWrapper(localName = \"listUsersResponse\", targetNamespace = \"http://services/\", className = \"services.ListUsersResponse\")\n public List<Anagrafica> listUsers();\n\n}",
"@WebService(targetNamespace = \"http://services.bookservice.atatorus.fr/\", name = \"Hello\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Hello {\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.Hello_Type\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"nom\", targetNamespace = \"\")\n java.lang.String nom\n );\n}",
"@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}",
"@WebService(name = \"WebServiceEntry\", targetNamespace = \"http://ws.adapter.bsoft.com/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface WebServiceEntry {\n\n\t/**\n\t * \n\t * @param arg4\n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String invoke(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") String arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3,\n\t\t\t@WebParam(name = \"arg4\", partName = \"arg4\") StringArray arg4)\n\t\t\tthrows Exception_Exception;\n\n\t/**\n * \n */\n\t@WebMethod\n\tpublic void startWs();\n\n\t/**\n\t * \n\t * @param arg3\n\t * @param arg2\n\t * @param arg1\n\t * @param arg0\n\t * @return returns java.lang.String\n\t * @throws Exception_Exception\n\t */\n\t@WebMethod\n\t@WebResult(partName = \"return\")\n\tpublic String transportData(\n\t\t\t@WebParam(name = \"arg0\", partName = \"arg0\") String arg0,\n\t\t\t@WebParam(name = \"arg1\", partName = \"arg1\") String arg1,\n\t\t\t@WebParam(name = \"arg2\", partName = \"arg2\") int arg2,\n\t\t\t@WebParam(name = \"arg3\", partName = \"arg3\") String arg3)\n\t\t\tthrows Exception_Exception;\n\n}",
"@WebService(name = \"CajaUnificadaWeb\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CajaUnificadaWeb {\n\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.StartupResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"startupResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"startup\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.Startup\")\n @ResponseWrapper(localName = \"startupResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.StartupResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startupResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/startup/Fault/CajaUnificadaWebException\")\n })\n public StartupResult startup(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param profileCode\n * @param stationName\n * @param nroInterno\n * @param codEmp\n * @param userCode\n * @return\n * returns cl.imperial.cajaunificada.ws.ValeGetResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"valeGetResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"valeGet\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGet\")\n @ResponseWrapper(localName = \"valeGetResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.ValeGetResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGetResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/valeGet/Fault/CajaUnificadaWebException\")\n })\n public ValeGetResult valeGet(\n @WebParam(name = \"userCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String userCode,\n @WebParam(name = \"profileCode\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n BigDecimal profileCode,\n @WebParam(name = \"stationName\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String stationName,\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno,\n @WebParam(name = \"codEmp\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n String codEmp)\n throws CajaUnificadaWebException\n ;\n\n /**\n * \n * @param nroInterno\n * @return\n * returns cl.imperial.cajaunificada.ws.RegistraPagoResult\n * @throws CajaUnificadaWebException\n */\n @WebMethod\n @WebResult(name = \"registraPagoResult\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n @RequestWrapper(localName = \"registraPago\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPago\")\n @ResponseWrapper(localName = \"registraPagoResponse\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\", className = \"cl.imperial.cajaunificada.ws.RegistraPagoResponse\")\n @Action(input = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoRequest\", output = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPagoResponse\", fault = {\n @FaultAction(className = CajaUnificadaWebException.class, value = \"http://ws.cajaunificada.imperial.cl/cajaunificada/CajaUnificadaWeb/registraPago/Fault/CajaUnificadaWebException\")\n })\n public RegistraPagoResult registraPago(\n @WebParam(name = \"nroInterno\", targetNamespace = \"http://ws.cajaunificada.imperial.cl/cajaunificada\")\n int nroInterno)\n throws CajaUnificadaWebException\n ;\n\n}",
"@WebService(targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", name = \"ClassifierZip\")\n@XmlSeeAlso({ObjectFactory.class, iac.cud.infosweb.ws.classif.common.ObjectFactory.class})\npublic interface ClassifierZip {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierByClassifierNameCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierName\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierByClassifierNameResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNameResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement52 getClassifierByClassifierName(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"Fullname\", targetNamespace = \"\")\n java.lang.String fullname,\n @WebParam(name = \"ActualDoc\", targetNamespace = \"\")\n int actualDoc\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierZipListByClassifierNameCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierName\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierZipListByClassifierNameResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNameResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement54 getClassifierZipListByClassifierName(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"Fullname\", targetNamespace = \"\")\n java.lang.String fullname\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierZipListByClassifierNumberCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNumber\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierZipListByClassifierNumberResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierZipListByClassifierNumberResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement53 getClassifierZipListByClassifierNumber(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"RegNumber\", targetNamespace = \"\")\n int regNumber\n );\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getClassifierByClassifierNumberCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNumber\")\n @WebMethod\n @ResponseWrapper(localName = \"getClassifierByClassifierNumberResponseCUD\", targetNamespace = \"http://ws.iac.spb.ru/ClassifierZip\", className = \"ru.spb.iac.ws.classifierzip.GetClassifierByClassifierNumberResponse\")\n public iac.cud.infosweb.ws.classifierzip.ResponseElement51 getClassifierByClassifierNumber(\n @WebParam(name = \"login\", targetNamespace = \"\")\n java.lang.String login,\n @WebParam(name = \"pass\", targetNamespace = \"\")\n java.lang.String pass,\n @WebParam(name = \"RegNumber\", targetNamespace = \"\")\n int regNumber,\n @WebParam(name = \"ActualDoc\", targetNamespace = \"\")\n int actualDoc\n );\n}",
"@WebService(name = \"HandSoapWeb\", targetNamespace = \"http://soapmanagement.jpdc.se/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface HandSoapWeb {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSoapsNyBrand\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrand\")\n @ResponseWrapper(localName = \"getSoapsNyBrandResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetSoapsNyBrandResponse\")\n public List<HandSoap> getSoapsNyBrand(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"addNewSoap\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoap\")\n @ResponseWrapper(localName = \"addNewSoapResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.AddNewSoapResponse\")\n public void addNewSoap(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n HandSoap arg0);\n\n /**\n * \n * @return\n * returns java.util.List<se.jpdc.soapmanagement.HandSoap>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllSoaps\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoaps\")\n @ResponseWrapper(localName = \"getAllSoapsResponse\", targetNamespace = \"http://soapmanagement.jpdc.se/\", className = \"se.jpdc.soapmanagement.GetAllSoapsResponse\")\n public List<HandSoap> getAllSoaps();\n\n}",
"@WebService(name = \"BillPayServiceAT\", targetNamespace = \"http://jaxws.billpay.wsat.edu.unf.com/\")\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BillPayServiceAT {\r\n\r\n\r\n /**\r\n * \r\n * @param arg1\r\n * @param arg0\r\n * @throws BillPayException\r\n */\r\n @WebMethod\r\n public void paybillamount(\r\n @WebParam(name = \"arg0\", partName = \"arg0\")\r\n String arg0,\r\n @WebParam(name = \"arg1\", partName = \"arg1\")\r\n long arg1)\r\n throws BillPayException\r\n ;\r\n\r\n}",
"@WebService(targetNamespace = \"http://ven.ws.pms.dhcc.com/\", name = \"OrderStateWServiceInterface\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface OrderStateWServiceInterface {\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult deliver(\r\n @WebParam(partName = \"deliveritms\", name = \"deliveritms\")\r\n VenDeliveritmArray deliveritms\r\n );\r\n\r\n @WebResult(name = \"operateResult\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"operateResult\")\r\n @WebMethod\r\n public OperateResult getVenInc(\r\n @WebParam(partName = \"venIncWeb\", name = \"venIncWeb\")\r\n VenIncWeb venIncWeb\r\n );\r\n\r\n @WebResult(name = \"orderWebVos\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"orderWebVos\")\r\n @WebMethod\r\n public OrderWebVoArray listOrderWS(\r\n @WebParam(partName = \"passWord\", name = \"passWord\")\r\n java.lang.String passWord,\r\n @WebParam(partName = \"userName\", name = \"userName\")\r\n java.lang.String userName\r\n );\r\n\r\n @WebResult(name = \"return\", targetNamespace = \"http://ven.ws.pms.dhcc.com/\", partName = \"return\")\r\n @WebMethod\r\n public OperateResult recievedMsg(\r\n @WebParam(partName = \"orderId\", name = \"orderId\")\r\n long orderId\r\n );\r\n}",
"@WebService(name = \"TempWs\", targetNamespace = \"http://temperature.ws.com\")\r\npublic interface TempWs {\r\n\r\n\r\n /**\r\n * \r\n * @param fahrenheit\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toCelsius\")\r\n @WebResult(name = \"returnFahrenheit\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toCelsius\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsius\")\r\n @ResponseWrapper(localName = \"toCelsiusResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToCelsiusResponse\")\r\n public float toCelsius(\r\n @WebParam(name = \"fahrenheit\", targetNamespace = \"\")\r\n float fahrenheit);\r\n\r\n /**\r\n * \r\n * @param celsius\r\n * @return\r\n * returns float\r\n */\r\n @WebMethod(action = \"http://temperature.ws.com/toFahrenheit\")\r\n @WebResult(name = \"returnCelsius\", targetNamespace = \"\")\r\n @RequestWrapper(localName = \"toFahrenheit\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheit\")\r\n @ResponseWrapper(localName = \"toFahrenheitResponse\", targetNamespace = \"http://temperature.ws.com\", className = \"com.ws.temperature.ToFahrenheitResponse\")\r\n public float toFahrenheit(\r\n @WebParam(name = \"celsius\", targetNamespace = \"\")\r\n float celsius);\r\n\r\n}",
"@WebService(name = \"TerminationCoordinatorPortType\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TerminationCoordinatorPortType {\n\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CompleteOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Complete\")\n @Oneway\n public void completeOperation(\n @WebParam(name = \"Complete\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CloseOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Close\")\n @Oneway\n public void closeOperation(\n @WebParam(name = \"Close\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n /**\n * \n * @param parameters\n */\n @WebMethod(operationName = \"CancelOperation\", action = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx/Cancel\")\n @Oneway\n public void cancelOperation(\n @WebParam(name = \"Cancel\", targetNamespace = \"http://schemas.arjuna.com/ws/2005/10/wsarjtx\", partName = \"parameters\")\n NotificationType parameters);\n\n}",
"@WebService(targetNamespace = \"urn:hl7-org:v3\", name = \"HL7MessageServerService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HL7MessageServerService {\n\n @WebMethod(operationName = \"HIPMessageServer\", action = \"HIPMessageServer\")\n @RequestWrapper(localName = \"HIPMessageServer\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServer\")\n @ResponseWrapper(localName = \"HIPMessageServerResponse\", targetNamespace = \"urn:hl7-org:v3\", className = \"org.hl7.v3.HIPMessageServerResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hipMessageServer(\n @WebParam(name = \"action\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String action,\n @WebParam(name = \"message\", targetNamespace = \"urn:hl7-org:v3\")\n java.lang.String message\n );\n}",
"@WebService(name = \"BookService\", targetNamespace = \"http://webservices.arabie.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BookService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.DeleteBook\")\n @ResponseWrapper(localName = \"deleteBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.DeleteBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/deleteBookRequest\", output = \"http://webservices.arabie.com/BookService/deleteBookResponse\")\n public boolean deleteBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.GetBook\")\n @ResponseWrapper(localName = \"getBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.GetBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/getBookRequest\", output = \"http://webservices.arabie.com/BookService/getBookResponse\")\n public Book getBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg3\n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"addBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.AddBook\")\n @ResponseWrapper(localName = \"addBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.AddBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/addBookRequest\", output = \"http://webservices.arabie.com/BookService/addBookResponse\")\n public Book addBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n int arg1,\n @WebParam(name = \"arg2\", targetNamespace = \"\")\n double arg2,\n @WebParam(name = \"arg3\", targetNamespace = \"\")\n String arg3);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns com.arabie.myservice.Book\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"updateBook\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.UpdateBook\")\n @ResponseWrapper(localName = \"updateBookResponse\", targetNamespace = \"http://webservices.arabie.com/\", className = \"com.arabie.myservice.UpdateBookResponse\")\n @Action(input = \"http://webservices.arabie.com/BookService/updateBookRequest\", output = \"http://webservices.arabie.com/BookService/updateBookResponse\")\n public Book updateBook(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n}",
"@WebService(name = \"LDBSVServiceSoap\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2012_01_13.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2013_11_28.token.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2014_02_20.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_05_14.ldbsv_ref.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2015_11_27.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2016_02_16.ldbsv.types.ObjectFactory.class,\r\n com.thalesgroup.rtti._2017_10_01.ldbsv.commontypes.ObjectFactory.class,\r\n com.thalesgroup.rtti._2007_10_10.ldb.commontypes.ObjectFactory.class\r\n})\r\npublic interface LDBSVServiceSoap {\r\n\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByCRS\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByCRS(\r\n @WebParam(name = \"GetArrivalDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByCRS\")\r\n @WebResult(name = \"GetArrivalBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByCRS(\r\n @WebParam(name = \"GetArrivalBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrivalBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetArrivalBoardByTIPLOC\")\r\n @WebResult(name = \"GetArrivalBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getArrivalBoardByTIPLOC(\r\n @WebParam(name = \"GetArrivalBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByCRS\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByCRS\")\r\n @WebResult(name = \"GetDepartureBoardByCRSResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByCRS(\r\n @WebParam(name = \"GetDepartureBoardByCRSRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepartureBoardByTIPLOC\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDepartureBoardByTIPLOC\")\r\n @WebResult(name = \"GetDepartureBoardByTIPLOCResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetBoardResponseType getDepartureBoardByTIPLOC(\r\n @WebParam(name = \"GetDepartureBoardByTIPLOCRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByTIPLOCParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetServiceDetailsByRID\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetServiceDetailsByRID\")\r\n @WebResult(name = \"GetServiceDetailsByRIDResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetServiceDetailsResponseType getServiceDetailsByRID(\r\n @WebParam(name = \"GetServiceDetailsByRIDRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetServiceDetailsByRIDParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryServices\")\r\n @WebResult(name = \"QueryServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryServicesResponseType queryServices(\r\n @WebParam(name = \"QueryServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCode\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCode\")\r\n @WebResult(name = \"GetReasonCodeResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeResponseType getReasonCode(\r\n @WebParam(name = \"GetReasonCodeRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetReasonCodeRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetReasonCodeListResponseType\r\n */\r\n @WebMethod(operationName = \"GetReasonCodeList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetReasonCodeList\")\r\n @WebResult(name = \"GetReasonCodeListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetReasonCodeListResponseType getReasonCodeList(\r\n @WebParam(name = \"GetReasonCodeListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetDisruptionListResponseType\r\n */\r\n @WebMethod(operationName = \"GetDisruptionList\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetDisruptionList\")\r\n @WebResult(name = \"GetDisruptionListResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetDisruptionListResponseType getDisruptionList(\r\n @WebParam(name = \"GetDisruptionListRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDisruptionListRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetSourceInstanceNamesResponseType\r\n */\r\n @WebMethod(operationName = \"GetSourceInstanceNames\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetSourceInstanceNames\")\r\n @WebResult(name = \"GetSourceInstanceNamesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetSourceInstanceNamesResponseType getSourceInstanceNames(\r\n @WebParam(name = \"GetSourceInstanceNamesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n VoidParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricDepartureBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricDepartureBoard\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricDepartureBoard\")\r\n @WebResult(name = \"GetHistoricDepartureBoardResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricDepartureBoardResponseType getHistoricDepartureBoard(\r\n @WebParam(name = \"GetHistoricDepartureBoardRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricDepartureBoardRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricServiceDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricServiceDetails\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricServiceDetails\")\r\n @WebResult(name = \"GetHistoricServiceDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricServiceDetailsResponseType getHistoricServiceDetails(\r\n @WebParam(name = \"GetHistoricServiceDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricServiceDetailsRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetHistoricTimeLineResponseType\r\n */\r\n @WebMethod(operationName = \"GetHistoricTimeLine\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/GetHistoricTimeLine\")\r\n @WebResult(name = \"GetHistoricTimeLineResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetHistoricTimeLineResponseType getHistoricTimeLine(\r\n @WebParam(name = \"GetHistoricTimeLineRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetHistoricTimeLineRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.QueryHistoricServicesResponseType\r\n */\r\n @WebMethod(operationName = \"QueryHistoricServices\", action = \"http://thalesgroup.com/RTTI/2012-01-13/ldbsv/QueryHistoricServices\")\r\n @WebResult(name = \"QueryHistoricServicesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public QueryHistoricServicesResponseType queryHistoricServices(\r\n @WebParam(name = \"QueryHistoricServicesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n QueryHistoricServicesRequestParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrDepBoardWithDetails\")\r\n @WebResult(name = \"GetArrDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrDepBoardWithDetails(\r\n @WebParam(name = \"GetArrDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetArrBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetArrBoardWithDetails\")\r\n @WebResult(name = \"GetArrBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getArrBoardWithDetails(\r\n @WebParam(name = \"GetArrBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.GetStationBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetDepBoardWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetDepBoardWithDetails\")\r\n @WebResult(name = \"GetDepBoardWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public GetStationBoardWithDetailsResponseType getDepBoardWithDetails(\r\n @WebParam(name = \"GetDepBoardWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetBoardByCRSParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDepartures\")\r\n @WebResult(name = \"GetNextDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getNextDepartures(\r\n @WebParam(name = \"GetNextDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDepartures\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDepartures\")\r\n @WebResult(name = \"GetFastestDeparturesResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardResponseType getFastestDepartures(\r\n @WebParam(name = \"GetFastestDeparturesRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetNextDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetNextDeparturesWithDetails\")\r\n @WebResult(name = \"GetNextDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getNextDeparturesWithDetails(\r\n @WebParam(name = \"GetNextDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n /**\r\n * \r\n * @param parameters\r\n * @return\r\n * returns com.thalesgroup.rtti._2017_10_01.ldbsv.DeparturesBoardWithDetailsResponseType\r\n */\r\n @WebMethod(operationName = \"GetFastestDeparturesWithDetails\", action = \"http://thalesgroup.com/RTTI/2015-05-14/ldbsv/GetFastestDeparturesWithDetails\")\r\n @WebResult(name = \"GetFastestDeparturesWithDetailsResponse\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n public DeparturesBoardWithDetailsResponseType getFastestDeparturesWithDetails(\r\n @WebParam(name = \"GetFastestDeparturesWithDetailsRequest\", targetNamespace = \"http://thalesgroup.com/RTTI/2017-10-01/ldbsv/\", partName = \"parameters\")\r\n GetDeparturesParams parameters);\r\n\r\n}",
"@WebService(targetNamespace = \"http://soa.agh.edu.pl/\", name = \"HelloWorld\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface HelloWorld {\n\n @WebMethod(operationName = \"Hi\")\n @RequestWrapper(localName = \"Hi\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hi\")\n @ResponseWrapper(localName = \"HiResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HiResponse\")\n @WebResult(name = \"ElementsWraper\", targetNamespace = \"\")\n public pl.edu.agh.soa.HiResponse.ElementsWraper hi(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n\n @WebMethod(action = \"Hello\")\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.Hello\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://soa.agh.edu.pl/\", className = \"pl.edu.agh.soa.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"name\", targetNamespace = \"\")\n java.lang.String name\n );\n}",
"@WebService(name = \"GodinezLunchPort\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/wsdl/1.0/GodinezLunchWS\")\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface GodinezLunchWS {\r\n\r\n\r\n /**\r\n * \r\n * @param calculateDistanceRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.CalculateDistanceResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/calculateDistance\")\r\n @WebResult(name = \"calculateDistanceResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceResponse\")\r\n public CalculateDistanceResponse calculateDistance(\r\n @WebParam(name = \"calculateDistanceRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"calculateDistanceRequest\")\r\n CalculateDistanceRequest calculateDistanceRequest);\r\n\r\n /**\r\n * \r\n * @param getNearbyPlacesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetNearbyPlacesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getNearbyPlaces\")\r\n @WebResult(name = \"getNearbyPlacesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesResponse\")\r\n public GetNearbyPlacesResponse getNearbyPlaces(\r\n @WebParam(name = \"getNearbyPlacesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getNearbyPlacesRequest\")\r\n GetNearbyPlacesRequest getNearbyPlacesRequest);\r\n\r\n /**\r\n * \r\n * @param getAllCategoriesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetAllCategoriesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getAllCategories\")\r\n @WebResult(name = \"getAllCategoriesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesResponse\")\r\n public GetAllCategoriesResponse getAllCategories(\r\n @WebParam(name = \"getAllCategoriesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getAllCategoriesRequest\")\r\n GetAllCategoriesRequest getAllCategoriesRequest);\r\n\r\n /**\r\n * \r\n * @param getMyFavoritesRequest\r\n * @return\r\n * returns com.mx.udev.godinez.web.types.GetMyFavoritesResponse\r\n */\r\n @WebMethod(action = \"http://www.udev.com/GodinezLunchWS/getMyFavorites\")\r\n @WebResult(name = \"getMyFavoritesResponse\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesResponse\")\r\n public GetMyFavoritesResponse getMyFavorites(\r\n @WebParam(name = \"getMyFavoritesRequest\", targetNamespace = \"http://www.xmlns.udev.com/GodinezLunch/GL/datatypes/1.0\", partName = \"getMyFavoritesRequest\")\r\n GetMyFavoritesRequest getMyFavoritesRequest);\r\n\r\n}",
"@WebService\npublic interface MessageService extends Serializable{\n\n /**\n * Sends messages to registered patients\n *\n * @param messages List of messages to be sent\n */\n @WebMethod\n public void sendPatientMessages(@WebParam(name=\"messages\") PatientMessage[] messages);\n\t\n /**\n * Sends a message to a registered patient\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param patientNumber Patient mobile contact number\n * @param patientNumberType Type of contact number. Possible values include PERSONAL, SHARED\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @param recipientId String unique identifier of the recipient\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendPatientMessage(@WebParam(name=\"messageId\") String messageId, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumber\") String patientNumber, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"patientNumberType\") ContactNumberType patientNumberType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"langCode\") String langCode, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"mediaType\") MediaType mediaType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"notificationType\") Long notificationType, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"startDate\")Date startDate, \n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"endDate\")Date endDate,\n \t\t\t\t\t\t\t\t\t\t@WebParam(name=\"recipientId\")String recipientId);\n\n /**\n * Sends a message to a registered CHPS worker\n *\n * @param messageId Id of the message to send\n * @param personalInfo List of name value pairs containing patient information\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients A List of patients requiring service from CHPS worker\n * @param langCode Code representing preferred communication language\n * @param mediaType Patient's preferred communication medium\n * @param notificationType Type of message to send to patient\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendCHPSMessage(@WebParam(name=\"messageId\") String messageId, @WebParam(name=\"personalInfo\") NameValuePair[] personalInfo, @WebParam(name=\"workerNumber\") String workerNumber, @WebParam(name=\"patients\") Patient[] patients, @WebParam(name=\"langCode\") String langCode, @WebParam(name=\"mediaType\") MediaType mediaType, @WebParam(name=\"notificationType\") Long notificationType, @WebParam(name=\"startDate\")Date startDate, @WebParam(name=\"endDate\")Date endDate);\n\n /**\n * Sends a list of care defaulters to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of patient care options which have defaulters\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDefaulterMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"cares\") Care[] cares,\n @WebParam(name = \"media\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of patients within a delivery schedule to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patients List of patients with matching delivery status\n * @param deliveryStatus Status of patient delivery. Expected values are 'Upcoming', 'Recent' and 'Overdue'\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendDeliveriesMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patients\") Patient[] patients,\n @WebParam(name = \"deliveryStatus\") String deliveryStatus,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends a list of upcoming care for a particular patient to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param patient patient due for care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendUpcomingCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Patient patient,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n\n /**\n * Sends an SMS message\n *\n * @param content the message to send\n * @param recipient the phone number to receive the message\n * @return\n */\n @WebMethod\n public MessageStatus sendMessage(@WebParam(name = \"content\") String content,\n @WebParam(name = \"recipient\") String recipient);\n\n /**\n * Sends multiple upcoming care messages to a CHPS worker\n *\n * @param messageId Id of the message to send\n * @param workerNumber CHPS worker's mobile contact number\n * @param cares List of upcoming care\n * @param mediaType Patient's preferred communication medium\n * @param startDate Date to begin message sending attempts\n * @param endDate Date to stop message sending attempts\n * @return The status of the message\n */\n @WebMethod\n public MessageStatus sendBulkCaresMessage(@WebParam(name = \"messageId\") String messageId,\n @WebParam(name = \"workerNumber\") String workerNumber,\n @WebParam(name = \"patient\") Care[] cares,\n @WebParam(name = \"mediaType\") MediaType mediaType,\n @WebParam(name = \"startDate\") Date startDate,\n @WebParam(name = \"endDate\") Date endDate);\n}",
"@WebService(targetNamespace = \"http://tempuri.org/\", name = \"YCJKServiceSoap\")\r\n@XmlSeeAlso({ObjectFactory.class})\r\npublic interface YCJKServiceSoap {\r\n\r\n @WebMethod(action = \"http://tempuri.org/saveYCJC\")\r\n @RequestWrapper(localName = \"saveYCJC\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJC\")\r\n @ResponseWrapper(localName = \"saveYCJCResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCResponse\")\r\n @WebResult(name = \"saveYCJCResult\", targetNamespace = \"http://tempuri.org/\")\r\n public java.lang.String saveYCJC(\r\n @WebParam(name = \"elements\", targetNamespace = \"http://tempuri.org/\")\r\n java.lang.String elements\r\n );\r\n\r\n @WebMethod(action = \"http://tempuri.org/saveYCJCArray\")\r\n @RequestWrapper(localName = \"saveYCJCArray\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCArray\")\r\n @ResponseWrapper(localName = \"saveYCJCArrayResponse\", targetNamespace = \"http://tempuri.org/\", className = \"com.webservice.xxxq.ws.SaveYCJCArrayResponse\")\r\n @WebResult(name = \"saveYCJCArrayResult\", targetNamespace = \"http://tempuri.org/\")\r\n public java.lang.String saveYCJCArray(\r\n @WebParam(name = \"elements\", targetNamespace = \"http://tempuri.org/\")\r\n com.webservice.xxxq.ws.ArrayOfArrayOfString elements\r\n );\r\n}",
"@WebService(name = \"ZBC_EVENT_RAISE_WEB\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ZBCEVENTRAISEWEB {\n\n\n /**\n * \n * @param eventparm\n * @param eventid\n * @param targetINSTANCE\n * @return\n * returns java.lang.String\n * @throws ZBCEVENTRAISEException\n */\n @WebMethod(operationName = \"ZBC_EVENT_RAISE\", action = \"urn:sap-com:document:sap:rfc:functions:ZBC_EVENT_RAISE_WEB:ZBC_EVENT_RAISERequest\")\n @WebResult(name = \"EV_SUCCESS\", targetNamespace = \"\")\n @RequestWrapper(localName = \"ZBC_EVENT_RAISE\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISE\")\n @ResponseWrapper(localName = \"ZBC_EVENT_RAISEResponse\", targetNamespace = \"urn:sap-com:document:sap:rfc:functions\", className = \"com.sap.document.sap.rfc.functions.ZBCEVENTRAISEResponse\")\n public String zbcEVENTRAISE(\n @WebParam(name = \"EVENTID\", targetNamespace = \"\")\n String eventid,\n @WebParam(name = \"EVENTPARM\", targetNamespace = \"\")\n String eventparm,\n @WebParam(name = \"TARGET_INSTANCE\", targetNamespace = \"\")\n String targetINSTANCE)\n throws ZBCEVENTRAISEException\n ;\n\n}",
"ServiceReferenceProxy getServiceReference();",
"public ClientSoapMBean() {\r\n\t}",
"@WebService(targetNamespace = \"http://payment.services.adyen.com\", name = \"PaymentPortType\")\r\n@XmlSeeAlso({com.adyen.services.common.ObjectFactory.class, ObjectFactory.class})\r\npublic interface PaymentPortType {\r\n\r\n @WebResult(name = \"captureResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"capture\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Capture\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"captureResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CaptureResponse\")\r\n public com.adyen.services.payment.ModificationResult capture(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"refundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Refund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundResponse\")\r\n public com.adyen.services.payment.ModificationResult refund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransfer\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.FundTransferResponse\")\r\n public com.adyen.services.payment.FundTransferResult fundTransfer(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.FundTransferRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"authoriseReferralResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authoriseReferral\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferral\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseReferralResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseReferralResponse\")\r\n public com.adyen.services.payment.ModificationResult authoriseReferral(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"result\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"refundWithData\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithData\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"refundWithDataResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.RefundWithDataResponse\")\r\n public com.adyen.services.payment.PaymentResult refundWithData(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancel\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Cancel\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelResponse\")\r\n public com.adyen.services.payment.ModificationResult cancel(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise3d\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3D\")\r\n @WebMethod(operationName = \"authorise3d\")\r\n @ResponseWrapper(localName = \"authorise3dResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise3DResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise3D(\r\n @WebParam(name = \"paymentRequest3d\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest3D paymentRequest3D\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"balanceCheck\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheck\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"balanceCheckResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.BalanceCheckResponse\")\r\n public com.adyen.services.payment.BalanceCheckResult balanceCheck(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.BalanceCheckRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"response\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"directdebit\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Directdebit\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"directdebitResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.DirectdebitResponse\")\r\n public com.adyen.services.payment.DirectDebitResponse2 directdebit(\r\n @WebParam(name = \"request\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.DirectDebitRequest request\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"cancelOrRefundResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"cancelOrRefund\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefund\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"cancelOrRefundResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CancelOrRefundResponse\")\r\n public com.adyen.services.payment.ModificationResult cancelOrRefund(\r\n @WebParam(name = \"modificationRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.ModificationRequest modificationRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"authorise\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.Authorise\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"authoriseResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.AuthoriseResponse\")\r\n public com.adyen.services.payment.PaymentResult authorise(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n\r\n @WebResult(name = \"paymentResult\", targetNamespace = \"http://payment.services.adyen.com\")\r\n @RequestWrapper(localName = \"checkFraud\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraud\")\r\n @WebMethod\r\n @ResponseWrapper(localName = \"checkFraudResponse\", targetNamespace = \"http://payment.services.adyen.com\", className = \"com.adyen.services.payment.CheckFraudResponse\")\r\n public com.adyen.services.payment.PaymentResult checkFraud(\r\n @WebParam(name = \"paymentRequest\", targetNamespace = \"http://payment.services.adyen.com\")\r\n com.adyen.services.payment.PaymentRequest paymentRequest\r\n ) throws ServiceException;\r\n}",
"@WebService(name = \"EmployeeManagementWebService\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EmployeeManagementWebService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.virtualpairprogrammers.employeemanagement.Employee\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEmployeeById\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeById\")\n @ResponseWrapper(localName = \"getEmployeeByIdResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeByIdResponse\")\n public Employee getEmployeeById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.virtualpairprogrammers.employeemanagement.Employee>\n * @throws ServiceUnavailableException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllEmployees\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployees\")\n @ResponseWrapper(localName = \"getAllEmployeesResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployeesResponse\")\n public List<Employee> getAllEmployees()\n throws ServiceUnavailableException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"registerEmployee\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployee\")\n @ResponseWrapper(localName = \"registerEmployeeResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployeeResponse\")\n public void registerEmployee(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Employee arg0);\n\n}",
"@WebService(name = \"TTTWebService\", targetNamespace = \"http://server.james.ttt/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface TTTWebService {\n\n\n /**\n * \n * @param password\n * @param surname\n * @param name\n * @param username\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"register\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Register\")\n @ResponseWrapper(localName = \"registerResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.RegisterResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/registerRequest\", output = \"http://server.james.ttt/TTTWebService/registerResponse\")\n public String register(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password,\n @WebParam(name = \"name\", targetNamespace = \"\")\n String name,\n @WebParam(name = \"surname\", targetNamespace = \"\")\n String surname);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"test\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Test\")\n @ResponseWrapper(localName = \"testResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TestResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/testRequest\", output = \"http://server.james.ttt/TTTWebService/testResponse\")\n public String test();\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"newGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.NewGame\")\n @ResponseWrapper(localName = \"newGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.NewGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/newGameRequest\", output = \"http://server.james.ttt/TTTWebService/newGameResponse\")\n public String newGame(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param uid\n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"joinGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.JoinGame\")\n @ResponseWrapper(localName = \"joinGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.JoinGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/joinGameRequest\", output = \"http://server.james.ttt/TTTWebService/joinGameResponse\")\n public String joinGame(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGameState\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetGameState\")\n @ResponseWrapper(localName = \"getGameStateResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetGameStateResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/getGameStateRequest\", output = \"http://server.james.ttt/TTTWebService/getGameStateResponse\")\n public String getGameState(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getBoard\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetBoard\")\n @ResponseWrapper(localName = \"getBoardResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.GetBoardResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/getBoardRequest\", output = \"http://server.james.ttt/TTTWebService/getBoardResponse\")\n public String getBoard(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @param gstate\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"setGameState\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.SetGameState\")\n @ResponseWrapper(localName = \"setGameStateResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.SetGameStateResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/setGameStateRequest\", output = \"http://server.james.ttt/TTTWebService/setGameStateResponse\")\n public String setGameState(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"gstate\", targetNamespace = \"\")\n int gstate);\n\n /**\n * \n * @param uid\n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteGame\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.DeleteGame\")\n @ResponseWrapper(localName = \"deleteGameResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.DeleteGameResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/deleteGameRequest\", output = \"http://server.james.ttt/TTTWebService/deleteGameResponse\")\n public String deleteGame(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showMyOpenGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowMyOpenGames\")\n @ResponseWrapper(localName = \"showMyOpenGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowMyOpenGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showMyOpenGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showMyOpenGamesResponse\")\n public String showMyOpenGames(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param gid\n * @param x\n * @param y\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"checkSquare\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckSquare\")\n @ResponseWrapper(localName = \"checkSquareResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckSquareResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/checkSquareRequest\", output = \"http://server.james.ttt/TTTWebService/checkSquareResponse\")\n public String checkSquare(\n @WebParam(name = \"x\", targetNamespace = \"\")\n int x,\n @WebParam(name = \"y\", targetNamespace = \"\")\n int y,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @param gid\n * @param x\n * @param y\n * @param pid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"takeSquare\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TakeSquare\")\n @ResponseWrapper(localName = \"takeSquareResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.TakeSquareResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/takeSquareRequest\", output = \"http://server.james.ttt/TTTWebService/takeSquareResponse\")\n public String takeSquare(\n @WebParam(name = \"x\", targetNamespace = \"\")\n int x,\n @WebParam(name = \"y\", targetNamespace = \"\")\n int y,\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid,\n @WebParam(name = \"pid\", targetNamespace = \"\")\n int pid);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"leagueTable\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LeagueTable\")\n @ResponseWrapper(localName = \"leagueTableResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LeagueTableResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/leagueTableRequest\", output = \"http://server.james.ttt/TTTWebService/leagueTableResponse\")\n public String leagueTable();\n\n /**\n * \n * @param uid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showAllMyGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowAllMyGames\")\n @ResponseWrapper(localName = \"showAllMyGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowAllMyGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showAllMyGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showAllMyGamesResponse\")\n public String showAllMyGames(\n @WebParam(name = \"uid\", targetNamespace = \"\")\n int uid);\n\n /**\n * \n * @param gid\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"checkWin\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckWin\")\n @ResponseWrapper(localName = \"checkWinResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.CheckWinResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/checkWinRequest\", output = \"http://server.james.ttt/TTTWebService/checkWinResponse\")\n public String checkWin(\n @WebParam(name = \"gid\", targetNamespace = \"\")\n int gid);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"showOpenGames\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowOpenGames\")\n @ResponseWrapper(localName = \"showOpenGamesResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.ShowOpenGamesResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/showOpenGamesRequest\", output = \"http://server.james.ttt/TTTWebService/showOpenGamesResponse\")\n public String showOpenGames();\n\n /**\n * \n * @param password\n * @param username\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"login\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.Login\")\n @ResponseWrapper(localName = \"loginResponse\", targetNamespace = \"http://server.james.ttt/\", className = \"TTTWebApplication.LoginResponse\")\n @Action(input = \"http://server.james.ttt/TTTWebService/loginRequest\", output = \"http://server.james.ttt/TTTWebService/loginResponse\")\n public int login(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"password\", targetNamespace = \"\")\n String password);\n\n}",
"public interface ClientRequestInfo extends ClientRequestInfoOperations, org.omg.PortableInterceptor.RequestInfo, org.omg.CORBA.portable.IDLEntity \n{\n}",
"@WebService(name = \"LegislationSearch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface LegislationSearch {\n\n\n /**\n * \n * @param startIndex\n * @param pageSize\n * @param constraints\n * @return\n * returns gov.ga.legis.legislation.LegislationSearchResultsPaged\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetLegislationSearchResultsPaged\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationSearchResultsPaged\")\n @WebResult(name = \"GetLegislationSearchResultsPagedResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationSearchResultsPaged\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPaged\")\n @ResponseWrapper(localName = \"GetLegislationSearchResultsPagedResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPagedResponse\")\n public LegislationSearchResultsPaged getLegislationSearchResultsPaged(\n @WebParam(name = \"Constraints\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationSearchConstraints constraints,\n @WebParam(name = \"PageSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer pageSize,\n @WebParam(name = \"StartIndex\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer startIndex)\n throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage, LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n ;\n\n /**\n * \n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndex\n */\n @WebMethod(operationName = \"GetLegislationForSession\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationForSession\")\n @WebResult(name = \"GetLegislationForSessionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationForSession\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSession\")\n @ResponseWrapper(localName = \"GetLegislationForSessionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSessionResponse\")\n public ArrayOfLegislationIndex getLegislationForSession(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param documentType\n * @param sessionId\n * @param rangeSize\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndexRangeSet\n */\n @WebMethod(operationName = \"GetLegislationRanges\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRanges\")\n @WebResult(name = \"GetLegislationRangesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRanges\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRanges\")\n @ResponseWrapper(localName = \"GetLegislationRangesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangesResponse\")\n public ArrayOfLegislationIndexRangeSet getLegislationRanges(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId,\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"RangeSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer rangeSize);\n\n /**\n * \n * @param range\n * @return\n * returns gov.ga.legis.legislation.LegislationIndexRange\n */\n @WebMethod(operationName = \"GetLegislationRange\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRange\")\n @WebResult(name = \"GetLegislationRangeResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRange\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRange\")\n @ResponseWrapper(localName = \"GetLegislationRangeResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangeResponse\")\n public LegislationIndexRange getLegislationRange(\n @WebParam(name = \"Range\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationIndexRangeSet range);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetail\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetail\")\n @WebResult(name = \"GetLegislationDetailResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetail\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetail\")\n @ResponseWrapper(localName = \"GetLegislationDetailResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailResponse\")\n public LegislationDetail getLegislationDetail(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param number\n * @param documentType\n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetailByDescription\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetailByDescription\")\n @WebResult(name = \"GetLegislationDetailByDescriptionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetailByDescription\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescription\")\n @ResponseWrapper(localName = \"GetLegislationDetailByDescriptionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescriptionResponse\")\n public LegislationDetail getLegislationDetailByDescription(\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"Number\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer number,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @return\n * returns gov.ga.legis.legislation.ArrayOfSubject\n */\n @WebMethod(operationName = \"GetTitles\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetTitles\")\n @WebResult(name = \"GetTitlesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetTitles\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitles\")\n @ResponseWrapper(localName = \"GetTitlesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitlesResponse\")\n public ArrayOfSubject getTitles();\n\n}"
] | [
"0.6592584",
"0.6446573",
"0.6385702",
"0.63722014",
"0.6343612",
"0.6331787",
"0.62849486",
"0.6189102",
"0.61656225",
"0.61559725",
"0.61371976",
"0.6131478",
"0.61262953",
"0.60968345",
"0.6096655",
"0.60563403",
"0.6045833",
"0.60404015",
"0.60163844",
"0.60059375",
"0.59910846",
"0.59508675",
"0.5903469",
"0.5895075",
"0.5894825",
"0.5894475",
"0.5894206",
"0.5885307",
"0.5883527",
"0.5881095",
"0.58808774",
"0.5876952",
"0.5865291",
"0.5864688",
"0.586247",
"0.58574444",
"0.5852651",
"0.5847747",
"0.58328533",
"0.5824962",
"0.5801843",
"0.5800836",
"0.5800413",
"0.5796667",
"0.5793823",
"0.57919335",
"0.57882905",
"0.5773484",
"0.5773154",
"0.577246",
"0.57669103",
"0.57584363",
"0.57472694",
"0.57346445",
"0.5731213",
"0.5729844",
"0.5729687",
"0.57253826",
"0.57134014",
"0.57119936",
"0.5711925",
"0.5711439",
"0.5708209",
"0.57025146",
"0.5691266",
"0.56897604",
"0.5682025",
"0.5676603",
"0.56735533",
"0.56648517",
"0.5664244",
"0.5657006",
"0.56560963",
"0.56556785",
"0.56436926",
"0.56409186",
"0.56200004",
"0.56199586",
"0.56110805",
"0.5609374",
"0.5594557",
"0.5594532",
"0.5584503",
"0.5580252",
"0.55759674",
"0.5564373",
"0.55590504",
"0.5556032",
"0.555093",
"0.5544651",
"0.5542201",
"0.55405897",
"0.5533393",
"0.55321026",
"0.5529721",
"0.55294186",
"0.5529249",
"0.5527342",
"0.55195427",
"0.5509296"
] | 0.55919105 | 82 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_account_remain);
parseUrl();
findViews();
initSize();
// getContents();
initTitle();
registerBoradcastReceiver();
showWindow(accountRemainTitle);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.